@intent-hq/web 2.344.0 → 2.345.1

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 (274) hide show
  1. package/package.json +1 -1
  2. package/web/app/immutable/chunks/{CPi3hzpu.js → -6JGlnE4.js} +1 -1
  3. package/web/app/immutable/chunks/{4GiF-64P.js → -7ARPWgR.js} +1 -1
  4. package/web/app/immutable/chunks/{DHP1DFPI.js → -SwunqO3.js} +1 -1
  5. package/web/app/immutable/chunks/{C-3coqYU.js → 34C5M9lk.js} +1 -1
  6. package/web/app/immutable/chunks/{DEnfRYcH.js → 3G6kqi6m.js} +1 -1
  7. package/web/app/immutable/chunks/{D6-Slo8_.js → 4UXIq5lZ.js} +5 -5
  8. package/web/app/immutable/chunks/{oYQw_s1S.js → 5MLUIYhU.js} +1 -1
  9. package/web/app/immutable/chunks/{DukOM-92.js → 7Zs8wY6y.js} +1 -1
  10. package/web/app/immutable/chunks/{CFLZAMP_.js → 8XhHIJcn.js} +1 -1
  11. package/web/app/immutable/chunks/{BW73Ve1a.js → 9HNwwiNt.js} +1 -1
  12. package/web/app/immutable/chunks/{CicdOSYm.js → A0r9TbR7.js} +2 -2
  13. package/web/app/immutable/chunks/{DWQSi293.js → A34-FDia.js} +1 -1
  14. package/web/app/immutable/chunks/{BycXuHIq.js → A8JjhnEv.js} +1 -1
  15. package/web/app/immutable/chunks/{UtZBgRek.js → AzoskYOh.js} +1 -1
  16. package/web/app/immutable/chunks/{Gobu28zb.js → B-jmn73b.js} +2 -2
  17. package/web/app/immutable/chunks/{CPYWKVyq.js → B0biUQQF.js} +1 -1
  18. package/web/app/immutable/chunks/{lI7T5mqw.js → B1C_jfbV.js} +1 -1
  19. package/web/app/immutable/chunks/{BYg2F-3D.js → B1Zj1zGG.js} +1 -1
  20. package/web/app/immutable/chunks/{CiTK-_b6.js → B203wRvP.js} +1 -1
  21. package/web/app/immutable/chunks/{Bev5K0J8.js → B39Mxie0.js} +4 -4
  22. package/web/app/immutable/chunks/{C91dOInA.js → B5tGFpkq.js} +1 -1
  23. package/web/app/immutable/chunks/{jbKFYOOg.js → B65N3w4u.js} +1 -1
  24. package/web/app/immutable/chunks/{Bo4mc4_O.js → B6iA2dvO.js} +1 -1
  25. package/web/app/immutable/chunks/{BnZrTj7m.js → B7o4NziF.js} +1 -1
  26. package/web/app/immutable/chunks/{CGXahRhf.js → BBasLmtQ.js} +1 -1
  27. package/web/app/immutable/chunks/{CJSrEfR4.js → BDACnpyW.js} +1 -1
  28. package/web/app/immutable/chunks/{Br0dSiCW.js → BESEELLz.js} +1 -1
  29. package/web/app/immutable/chunks/{BXbF11Gp.js → BFp6vZSQ.js} +1 -1
  30. package/web/app/immutable/chunks/{tcxAslUm.js → BI7MYBTt.js} +1 -1
  31. package/web/app/immutable/chunks/{DaaneYTG.js → BIEvH8pu.js} +1 -1
  32. package/web/app/immutable/chunks/{BSpir4qY.js → BIlaJXMS.js} +1 -1
  33. package/web/app/immutable/chunks/{ei2mFcvT.js → BIoLrYT0.js} +1 -1
  34. package/web/app/immutable/chunks/{BmB6-2Ft.js → BL8tUtYB.js} +1 -1
  35. package/web/app/immutable/chunks/{Cs-BSsj3.js → BL8utEbB.js} +1 -1
  36. package/web/app/immutable/chunks/{BkUAKnVY.js → BLR6m4ri.js} +1 -1
  37. package/web/app/immutable/chunks/{CI-nVEa_.js → BMaybjSV.js} +1 -1
  38. package/web/app/immutable/chunks/{CnJe4S2a.js → BMm9sGZ6.js} +1 -1
  39. package/web/app/immutable/chunks/{D6cqwcO2.js → BNuo4lAs.js} +1 -1
  40. package/web/app/immutable/chunks/{BdUSoBxL.js → BO67r0G6.js} +2 -2
  41. package/web/app/immutable/chunks/{KJX0Kw6L.js → BP5uyQTv.js} +3 -3
  42. package/web/app/immutable/chunks/{DGYr0_ON.js → BP7CI4Qx.js} +1 -1
  43. package/web/app/immutable/chunks/BPvruhgT.js +13 -0
  44. package/web/app/immutable/chunks/{Dp_2W12t.js → BQEszNiH.js} +1 -1
  45. package/web/app/immutable/chunks/{BmT6wRR1.js → BRww0MVx.js} +1 -1
  46. package/web/app/immutable/chunks/{D9ajM8uP.js → BVPvh88-.js} +1 -1
  47. package/web/app/immutable/chunks/{DAYo95RN.js → BVt_T8ao.js} +1 -1
  48. package/web/app/immutable/chunks/{quYX3pdL.js → BVviSubD.js} +1 -1
  49. package/web/app/immutable/chunks/{fCEIPyv5.js → BXeiKdwz.js} +1 -1
  50. package/web/app/immutable/chunks/{ixz6jb_3.js → BY-x4QLt.js} +1 -1
  51. package/web/app/immutable/chunks/{B_frQYKx.js → BYFJ74nm.js} +1 -1
  52. package/web/app/immutable/chunks/{DBSA3jai.js → BYMNRS4c.js} +1 -1
  53. package/web/app/immutable/chunks/{Dyra2UkJ.js → BZLRqiW7.js} +1 -1
  54. package/web/app/immutable/chunks/{B7_gjxTl.js → BZcpShp8.js} +1 -1
  55. package/web/app/immutable/chunks/{juQAMcx2.js → BZr7mr7Q.js} +1 -1
  56. package/web/app/immutable/chunks/{B1Hn0_Hu.js → BbNk8c_P.js} +1 -1
  57. package/web/app/immutable/chunks/{Wsz69q6g.js → BdD2ADMz.js} +1 -1
  58. package/web/app/immutable/chunks/{ClTZNeVO.js → BdkEw9JP.js} +1 -1
  59. package/web/app/immutable/chunks/{BPk8wgKn.js → BecPnSy0.js} +3 -3
  60. package/web/app/immutable/chunks/{DIHT0C7u.js → BgX4ALX_.js} +3 -3
  61. package/web/app/immutable/chunks/{BgN4cuBh.js → BhMsVKL2.js} +1 -1
  62. package/web/app/immutable/chunks/{2XZtwznc.js → BiRT6AoP.js} +4 -4
  63. package/web/app/immutable/chunks/{Cj2EKBCH.js → Bk8EDJRq.js} +1 -1
  64. package/web/app/immutable/chunks/BlZYlbA9.js +1 -0
  65. package/web/app/immutable/chunks/{nmrokYzj.js → BmP1Wws6.js} +1 -1
  66. package/web/app/immutable/chunks/{4NM3BVdw.js → BoCZH6mk.js} +1 -1
  67. package/web/app/immutable/chunks/{kHCC2X2-.js → BqQiAH0O.js} +1 -1
  68. package/web/app/immutable/chunks/{Bv5I7YDM.js → BqRoJfH0.js} +1 -1
  69. package/web/app/immutable/chunks/{BM1KP-FJ.js → BqqN40AD.js} +1 -1
  70. package/web/app/immutable/chunks/{B4yyNCE8.js → BrTyn-oU.js} +1 -1
  71. package/web/app/immutable/chunks/{BLHhhsG2.js → BsRwjCPo.js} +1 -1
  72. package/web/app/immutable/chunks/{HIyZggkg.js → BtXLgEvw.js} +4 -4
  73. package/web/app/immutable/chunks/{DcFwDOMt.js → BwSA3fCS.js} +1 -1
  74. package/web/app/immutable/chunks/{Ca3YR8yw.js → BxuxDWAX.js} +1 -1
  75. package/web/app/immutable/chunks/{XvLHDIL-.js → ByCIOkhM.js} +1 -1
  76. package/web/app/immutable/chunks/{Dq9eeDUE.js → BzbcgIXt.js} +1 -1
  77. package/web/app/immutable/chunks/{RNDWAc1K.js → BzzDMYz_.js} +6 -6
  78. package/web/app/immutable/chunks/{Cn3xolhp.js → C-M7eh_Z.js} +1 -1
  79. package/web/app/immutable/chunks/{CDFRnJ8k.js → C1nHAGLu.js} +1 -1
  80. package/web/app/immutable/chunks/{DN71oh5l.js → C3SYquhf.js} +1 -1
  81. package/web/app/immutable/chunks/C4dCVzfY.js +2 -0
  82. package/web/app/immutable/chunks/{BvSNOyzW.js → C4pN30lR.js} +2 -2
  83. package/web/app/immutable/chunks/{DIumxlqP.js → C52Qm4vO.js} +1 -1
  84. package/web/app/immutable/chunks/{CdN2Ihv_.js → C5AlgdZ0.js} +1 -1
  85. package/web/app/immutable/chunks/{iwClg1fT.js → C7tPYy06.js} +3 -3
  86. package/web/app/immutable/chunks/{CjZIABEV.js → C8BVjzNA.js} +1 -1
  87. package/web/app/immutable/chunks/{g9G7tvrf.js → C8dU7SM3.js} +2 -2
  88. package/web/app/immutable/chunks/{uPiYeMwS.js → CCwwkuT-.js} +1 -1
  89. package/web/app/immutable/chunks/{BSo5IXuX.js → CD-XXU5z.js} +1 -1
  90. package/web/app/immutable/chunks/{CClqWu60.js → CDQzU1Fp.js} +1 -1
  91. package/web/app/immutable/chunks/{BAR7XkP3.js → CEQZVenN.js} +1 -1
  92. package/web/app/immutable/chunks/{C46XexX0.js → CFduDdmx.js} +1 -1
  93. package/web/app/immutable/chunks/{_RGinDCt.js → CKzqOQI8.js} +1 -1
  94. package/web/app/immutable/chunks/{Cn19T3na.js → CL2hu5s-.js} +1 -1
  95. package/web/app/immutable/chunks/{DhtvToBX.js → CMxRuwYt.js} +1 -1
  96. package/web/app/immutable/chunks/{BjcX_fOv.js → CN-2rfdx.js} +1 -1
  97. package/web/app/immutable/chunks/{BRhVB6Sv.js → COrK0goa.js} +1 -1
  98. package/web/app/immutable/chunks/{DuIazAmY.js → CRQGIXhv.js} +1 -1
  99. package/web/app/immutable/chunks/{Bk2hJ8Ly.js → CSdIXJpO.js} +1 -1
  100. package/web/app/immutable/chunks/{C3MZ_izG.js → CVYjvOCP.js} +1 -1
  101. package/web/app/immutable/chunks/{DWiPdXwB.js → CW13jkE8.js} +1 -1
  102. package/web/app/immutable/chunks/{DTBnd4hM.js → CW41MFVu.js} +1 -1
  103. package/web/app/immutable/chunks/{BA55iEBB.js → CWE4oREl.js} +1 -1
  104. package/web/app/immutable/chunks/{BQAjCr1w.js → CWQrbZgx.js} +1 -1
  105. package/web/app/immutable/chunks/{CzQCBVm9.js → CW_fORnH.js} +1 -1
  106. package/web/app/immutable/chunks/{fI_J_To4.js → CWmsRWEf.js} +1 -1
  107. package/web/app/immutable/chunks/{BW1LTGV1.js → CYf2hryc.js} +1 -1
  108. package/web/app/immutable/chunks/{BrysY2Ec.js → Ca05Jmq3.js} +1 -1
  109. package/web/app/immutable/chunks/{B1SJZtm3.js → CaGwo1Kh.js} +1 -1
  110. package/web/app/immutable/chunks/{BEyWfhqM.js → CaxyE6o_.js} +1 -1
  111. package/web/app/immutable/chunks/{CWIcIgSm.js → CbCgON3R.js} +1 -1
  112. package/web/app/immutable/chunks/{sEcTUaec.js → CcPTLJNE.js} +1 -1
  113. package/web/app/immutable/chunks/{L30ES58t.js → CcXuSxXv.js} +1 -1
  114. package/web/app/immutable/chunks/{D8YFvJ64.js → Cc_BIXdP.js} +1 -1
  115. package/web/app/immutable/chunks/{D61HjMue.js → CcuS-fLp.js} +1 -1
  116. package/web/app/immutable/chunks/{BOa-AN22.js → CcvLGgrc.js} +1 -1
  117. package/web/app/immutable/chunks/{DAPhb2nP.js → CdZRK319.js} +45 -45
  118. package/web/app/immutable/chunks/{CwRpBR2e.js → CeswpNyE.js} +1 -1
  119. package/web/app/immutable/chunks/{CadpuSEK.js → Cf09_YLr.js} +1 -1
  120. package/web/app/immutable/chunks/{B461Cu-8.js → Cfj3Lc6y.js} +1 -1
  121. package/web/app/immutable/chunks/{DwSYIDzZ.js → CgQ2Q_uI.js} +1 -1
  122. package/web/app/immutable/chunks/{yl6pDKiQ.js → CgW9XFcu.js} +1 -1
  123. package/web/app/immutable/chunks/{D37kdZVn.js → Ch8P3vqn.js} +1 -1
  124. package/web/app/immutable/chunks/{BjnZ1Xf3.js → Ck9ZyE1n.js} +1 -1
  125. package/web/app/immutable/chunks/{BvrMTALy.js → ClTbUKJh.js} +1 -1
  126. package/web/app/immutable/chunks/{CrH1YN9o.js → CoDSLIZp.js} +1 -1
  127. package/web/app/immutable/chunks/{By0eqGj-.js → CoLl8pQb.js} +1 -1
  128. package/web/app/immutable/chunks/{BMs7t3_m.js → CoXBdOLx.js} +1 -1
  129. package/web/app/immutable/chunks/{C9gix5Ke.js → CpHZSST_.js} +1 -1
  130. package/web/app/immutable/chunks/{DA3kI_Ir.js → Cq0XJSNB.js} +1 -1
  131. package/web/app/immutable/chunks/{Ck9j_FHl.js → Cr_Liz2C.js} +1 -1
  132. package/web/app/immutable/chunks/{CxLPEkg7.js → CuhrgDBI.js} +1 -1
  133. package/web/app/immutable/chunks/{DxBvyCwr.js → CvGYkRzD.js} +1 -1
  134. package/web/app/immutable/chunks/{BgzyvwGo.js → CvWyDJGm.js} +1 -1
  135. package/web/app/immutable/chunks/{DkvJR80T.js → Cv_J2c72.js} +1 -1
  136. package/web/app/immutable/chunks/{DHApIXYn.js → CwqpuMd6.js} +1 -1
  137. package/web/app/immutable/chunks/{BtBKKn81.js → CxdrVCtW.js} +1 -1
  138. package/web/app/immutable/chunks/{DZmMN74z.js → D3mUsAm9.js} +1 -1
  139. package/web/app/immutable/chunks/D5jO2tMO.js +1 -0
  140. package/web/app/immutable/chunks/{D1uFLIU4.js → D6YDmdhV.js} +2 -2
  141. package/web/app/immutable/chunks/{B9dU3-fa.js → D6qSHwEu.js} +1 -1
  142. package/web/app/immutable/chunks/{PDh5csw9.js → DATvyyct.js} +1 -1
  143. package/web/app/immutable/chunks/{CgWXj0YG.js → DBN9LmpO.js} +2 -2
  144. package/web/app/immutable/chunks/{MioiZpXB.js → DC_750GV.js} +1 -1
  145. package/web/app/immutable/chunks/{BuFMu57Q.js → DEGVinbl.js} +1 -1
  146. package/web/app/immutable/chunks/{D8FYgRYk.js → DHNidPtN.js} +1 -1
  147. package/web/app/immutable/chunks/{DOrgOYHc.js → DKBMY4SO.js} +2 -2
  148. package/web/app/immutable/chunks/{CDRWYo_y.js → DLQToZFF.js} +1 -1
  149. package/web/app/immutable/chunks/{hX9Crt6i.js → DLqztIqC.js} +1 -1
  150. package/web/app/immutable/chunks/{BUUYjiKy.js → DOca_73f.js} +1 -1
  151. package/web/app/immutable/chunks/{NTeezaZ2.js → DOo17E8X.js} +1 -1
  152. package/web/app/immutable/chunks/{-IITeht6.js → DPHzX3VR.js} +1 -1
  153. package/web/app/immutable/chunks/{X4o7hGKf.js → DPLUjB3C.js} +4 -4
  154. package/web/app/immutable/chunks/{C59ujSMF.js → DSbO2mrE.js} +1 -1
  155. package/web/app/immutable/chunks/{DVH2puba.js → DSf8k2cE.js} +1 -1
  156. package/web/app/immutable/chunks/DTQYcznv.js +1 -0
  157. package/web/app/immutable/chunks/{TKg6aZ2_.js → DTXLkH8c.js} +1 -1
  158. package/web/app/immutable/chunks/{CMO4ot9F.js → DU8kuP6M.js} +1 -1
  159. package/web/app/immutable/chunks/{CdqlgErf.js → DXCE75Ih.js} +1 -1
  160. package/web/app/immutable/chunks/{BwScowY6.js → DXDMhDlS.js} +1 -1
  161. package/web/app/immutable/chunks/{zWI60sec.js → DYmPPjiq.js} +1 -1
  162. package/web/app/immutable/chunks/{DT4LiP7Y.js → DZNLst19.js} +1 -1
  163. package/web/app/immutable/chunks/{BBC8ZwBc.js → DZmwTozc.js} +1 -1
  164. package/web/app/immutable/chunks/{xBFqBq1j.js → D_2_kcuU.js} +1 -1
  165. package/web/app/immutable/chunks/{Cyfw6OkG.js → D_uYvQAH.js} +1 -1
  166. package/web/app/immutable/chunks/{DVsRM1tQ.js → DbGgneou.js} +2 -2
  167. package/web/app/immutable/chunks/{CgLCO0VS.js → DbK3CxeL.js} +1 -1
  168. package/web/app/immutable/chunks/DbSsu2ZZ.js +2 -0
  169. package/web/app/immutable/chunks/{CmSDhJgU.js → Dc64E_SR.js} +1 -1
  170. package/web/app/immutable/chunks/{BnrnoFjd.js → DdSX2jjJ.js} +1 -1
  171. package/web/app/immutable/chunks/{HLKPZgVy.js → Ddw98WmY.js} +1 -1
  172. package/web/app/immutable/chunks/{BpIeTy9w.js → DdxviGOy.js} +2 -2
  173. package/web/app/immutable/chunks/{gsElU_36.js → De4z9gHo.js} +1 -1
  174. package/web/app/immutable/chunks/{f5lTIPHi.js → DeBWJfUF.js} +1 -1
  175. package/web/app/immutable/chunks/{D8DQsqlL.js → DeBZgR-l.js} +1 -1
  176. package/web/app/immutable/chunks/{BdHmsKvO.js → Dj_XMlva.js} +1 -1
  177. package/web/app/immutable/chunks/{ozzjQyCh.js → Dk6iNNLu.js} +1 -1
  178. package/web/app/immutable/chunks/{CThb3iAk.js → DlN76n90.js} +1 -1
  179. package/web/app/immutable/chunks/{WyTFZ_7I.js → DlxIHej5.js} +1 -1
  180. package/web/app/immutable/chunks/{BZm5iyKH.js → DnpnDt-B.js} +1 -1
  181. package/web/app/immutable/chunks/{DhUtJEn_.js → Dnr9ynjr.js} +1 -1
  182. package/web/app/immutable/chunks/{SEJ8ae0u.js → DoBQR8Vx.js} +2 -2
  183. package/web/app/immutable/chunks/{DVYqzV0n.js → DpMTpLDQ.js} +1 -1
  184. package/web/app/immutable/chunks/{D__R5V-4.js → Drt5qRI8.js} +1 -1
  185. package/web/app/immutable/chunks/{D-J8Mlcm.js → DtTm3-vx.js} +2 -2
  186. package/web/app/immutable/chunks/{pAYxBetQ.js → Dt_vOHph.js} +1 -1
  187. package/web/app/immutable/chunks/DtftInpc.js +1 -0
  188. package/web/app/immutable/chunks/{DLykoDqY.js → DuLyqtXH.js} +1 -1
  189. package/web/app/immutable/chunks/{DTrgzOIA.js → Duypuh1W.js} +1 -1
  190. package/web/app/immutable/chunks/{C62A1TLT.js → DvCoPCgB.js} +2 -2
  191. package/web/app/immutable/chunks/{COMJNvT3.js → DxMV_lzZ.js} +1 -1
  192. package/web/app/immutable/chunks/{DjCFWz1t.js → DyASeQ3m.js} +2 -2
  193. package/web/app/immutable/chunks/{l6o3Xx95.js → Dz4sFk1c.js} +1 -1
  194. package/web/app/immutable/chunks/{tHDPdTwr.js → Ek5W6pp5.js} +1 -1
  195. package/web/app/immutable/chunks/{C8b2UIVX.js → FBAcw4MJ.js} +1 -1
  196. package/web/app/immutable/chunks/{DNM32kqo.js → H60Tbroe.js} +1 -1
  197. package/web/app/immutable/chunks/{Dl7ZwNmB.js → HKs3jfWW.js} +1 -1
  198. package/web/app/immutable/chunks/{SxNmK2GR.js → HvBMlLJP.js} +3 -3
  199. package/web/app/immutable/chunks/{D4pwA7AS.js → I2ER02OI.js} +2 -2
  200. package/web/app/immutable/chunks/JzAjTSJP.js +1 -0
  201. package/web/app/immutable/chunks/{DzX5UiFd.js → LeKgig9P.js} +1 -1
  202. package/web/app/immutable/chunks/{Cxz3q_28.js → PqUcZw1l.js} +1 -1
  203. package/web/app/immutable/chunks/{YRBYMsQ5.js → PrJr0a2j.js} +1 -1
  204. package/web/app/immutable/chunks/{bJswqAg7.js → Q-Oe5gQg.js} +1 -1
  205. package/web/app/immutable/chunks/{CqhKSPXA.js → QE-hjQtm.js} +1 -1
  206. package/web/app/immutable/chunks/{CztRrCMq.js → RL06_5hJ.js} +1 -1
  207. package/web/app/immutable/chunks/{CfaMHdWP.js → RvvsGyv8.js} +1 -1
  208. package/web/app/immutable/chunks/S3l_n0fN.js +1 -0
  209. package/web/app/immutable/chunks/{BhzRZYY1.js → SopK520R.js} +2 -2
  210. package/web/app/immutable/chunks/{CerTrxRJ.js → UYKGMt9K.js} +1 -1
  211. package/web/app/immutable/chunks/{_VCQMG81.js → VD4zAAAW.js} +1 -1
  212. package/web/app/immutable/chunks/{gsD5Xe0D.js → Vk-IHNCU.js} +4 -4
  213. package/web/app/immutable/chunks/{9cPLPH_O.js → WQwO_6NF.js} +1 -1
  214. package/web/app/immutable/chunks/{CjXLe_MO.js → X8W_BfF4.js} +1 -1
  215. package/web/app/immutable/chunks/{Ct8owPqN.js → XIXbmV8F.js} +1 -1
  216. package/web/app/immutable/chunks/{CIX0DuRO.js → XzMpMF29.js} +1 -1
  217. package/web/app/immutable/chunks/{BdNiI0PS.js → Z8gQAmFb.js} +4 -4
  218. package/web/app/immutable/chunks/{CVikHxT_.js → Z9xsSWyS.js} +3 -3
  219. package/web/app/immutable/chunks/{CoTJDQuc.js → _6kx8oz-.js} +1 -1
  220. package/web/app/immutable/chunks/{BUY1W-f0.js → _xNtAuSN.js} +1 -1
  221. package/web/app/immutable/chunks/{CTXbgIPd.js → dEUeoghd.js} +41 -41
  222. package/web/app/immutable/chunks/{Cfd0oFGI.js → dR3YHGeF.js} +1 -1
  223. package/web/app/immutable/chunks/{CHukbU1Q.js → domP6Duj.js} +1 -1
  224. package/web/app/immutable/chunks/{BIG4edn9.js → elYeRxWm.js} +1 -1
  225. package/web/app/immutable/chunks/{CdjPYGHf.js → exKuue_y.js} +1 -1
  226. package/web/app/immutable/chunks/{B10JrSzM.js → finAdq6c.js} +1 -1
  227. package/web/app/immutable/chunks/{C4Jo6GXP.js → gURPJ1oX.js} +1 -1
  228. package/web/app/immutable/chunks/{BnjfAdW_.js → h4-gUr-R.js} +1 -1
  229. package/web/app/immutable/chunks/{gJDgmD_2.js → hTzIX9qo.js} +1 -1
  230. package/web/app/immutable/chunks/{nLXSdbN2.js → hY1hM8g2.js} +1 -1
  231. package/web/app/immutable/chunks/{DhDeMWX_.js → jn3Rypn_.js} +1 -1
  232. package/web/app/immutable/chunks/{DGySvVDu.js → kjMhmnu9.js} +1 -1
  233. package/web/app/immutable/chunks/{DIyuJ_GU.js → m3ndyWcI.js} +1 -1
  234. package/web/app/immutable/chunks/{BIY2S7K4.js → n58mTCVv.js} +1 -1
  235. package/web/app/immutable/chunks/{BYRfWsRg.js → oPIupn-5.js} +1 -1
  236. package/web/app/immutable/chunks/{CHFUz5Rr.js → oilydQC6.js} +1 -1
  237. package/web/app/immutable/chunks/{Ba7k-40o.js → p3fN-Vr3.js} +1 -1
  238. package/web/app/immutable/chunks/{CnhilOhJ.js → rWjPMnbJ.js} +1 -1
  239. package/web/app/immutable/chunks/{C-s9_soQ.js → s_GzTTEG.js} +1 -1
  240. package/web/app/immutable/chunks/{DqWTOCbK.js → uo2kAWaz.js} +1 -1
  241. package/web/app/immutable/entry/{app.DfuiYuem.js → app.B3U21m46.js} +3 -3
  242. package/web/app/immutable/entry/start.BmptZn82.js +1 -0
  243. package/web/app/immutable/nodes/{0.D56mBX7M.js → 0.CWw0htIy.js} +1 -1
  244. package/web/app/immutable/nodes/{1.az7hmVZE.js → 1.CwxWqCh2.js} +1 -1
  245. package/web/app/immutable/nodes/{10.ijh736ED.js → 10.DsQSJA4U.js} +1 -1
  246. package/web/app/immutable/nodes/{11.CPz1gfx7.js → 11.C9N9_Xb9.js} +1 -1
  247. package/web/app/immutable/nodes/{12.IWuvbIEt.js → 12.CqRfopX4.js} +1 -1
  248. package/web/app/immutable/nodes/{13.K9ySk2sQ.js → 13.CscEwLVK.js} +3 -3
  249. package/web/app/immutable/nodes/{14.BvEshoLb.js → 14.CGbyYvxu.js} +1 -1
  250. package/web/app/immutable/nodes/{15.MdkxIvV5.js → 15.BWtoiI44.js} +1 -1
  251. package/web/app/immutable/nodes/{16.CKCeF79S.js → 16.Cfgb0nOQ.js} +1 -1
  252. package/web/app/immutable/nodes/{17.DnoEG3fq.js → 17.DFAwhIn_.js} +2 -2
  253. package/web/app/immutable/nodes/{2.B4faJzFv.js → 2.DTAk55p0.js} +11 -11
  254. package/web/app/immutable/nodes/{3.CXkOfW97.js → 3.DGPBblLK.js} +1 -1
  255. package/web/app/immutable/nodes/4.ReQ1u5-M.js +1 -0
  256. package/web/app/immutable/nodes/{5.DE5jTHSS.js → 5.Dp2B2lHQ.js} +2 -2
  257. package/web/app/immutable/nodes/{6.DhIYx_bX.js → 6.BpkWHnQJ.js} +1 -1
  258. package/web/app/immutable/nodes/{7.CqVh2822.js → 7.C7_Pil7L.js} +1 -1
  259. package/web/app/immutable/nodes/{8.CtwSJYpI.js → 8.bG-TRaEn.js} +12 -12
  260. package/web/app/immutable/nodes/{9.RM7Dv9Cl.js → 9.CBynOn0l.js} +20 -20
  261. package/web/app/version.json +1 -1
  262. package/web/generated/paraglide.js +9 -9
  263. package/web/index.html +19 -19
  264. package/web/app/immutable/chunks/7V9sfwkG.js +0 -1
  265. package/web/app/immutable/chunks/B5lHtLmV.js +0 -13
  266. package/web/app/immutable/chunks/CGWRZzdk.js +0 -1
  267. package/web/app/immutable/chunks/CsF8OjbK.js +0 -1
  268. package/web/app/immutable/chunks/DWBLeVMU.js +0 -1
  269. package/web/app/immutable/chunks/D_aUnmwC.js +0 -1
  270. package/web/app/immutable/chunks/DnzNFOP-.js +0 -1
  271. package/web/app/immutable/chunks/Dx9ju3Oy.js +0 -2
  272. package/web/app/immutable/chunks/PXetJRrh.js +0 -2
  273. package/web/app/immutable/entry/start.DDUK339f.js +0 -1
  274. package/web/app/immutable/nodes/4.DAQzul95.js +0 -1
@@ -1,8 +1,8 @@
1
- var a1=Object.defineProperty;var i1=(t,e,r)=>e in t?a1(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r;var se=(t,e,r)=>i1(t,typeof e!="symbol"?e+"":e,r);import{cD as ur,aU as s1,ds as _l,_ as R0,Y as ya,Z as o1,X as l1,a1 as c1,ab as u1,U as d1,dT as h1,M as p1,ba as Ll,cG as Lr,dr as Pl,aT as m1,aX as f1,co as g1,cE as v1,c9 as b1,dl as Xa,dN as y1,dG as w1,ay as Fn,al as k1,at as Ti,dq as Ol,dD as x1,dX as $l,dW as S1}from"./CPYWKVyq.js";import{D as Ls,bv as A1,bM as T1,aY as E1}from"./BrysY2Ec.js";import{M as M1,F as i0}from"./DHP1DFPI.js";import{yB as gn,Ix as E,nx as ge,nw as Se,aM as C1,g as Bl,y as Re,bd as c0,jS as Ei,lR as vn,aj as jt,lQ as Ps,l_ as Os,lX as $s,jp as ql,gi as Ka,GV as I1,t3 as z1,zY as R1,oA as D1,mD as bn,Bx as N1,iv as _1,m8 as L1,lL as P1}from"./CicdOSYm.js";import{bp as ne}from"./CGWRZzdk.js";import{t as rt}from"./BM1KP-FJ.js";import{k as O1,d as xr}from"./BAR7XkP3.js";import{a as u0}from"./BdWqymET.js";import{o as pe,r as Gt,e as d0,s as V,_ as Xe,l as h0,g as $1,n as Le,c as or,b as Ue,u as B1,d as q1}from"./CIyUrgF0.js";import{j as Fl}from"./uXuxG9cN.js";import{w as F1}from"./DaaneYTG.js";import{b as H1}from"./CnJe4S2a.js";import{i as He}from"./CDFRnJ8k.js";import{l as wa,c as Hl}from"./ChTqQfQN.js";import{f as Mi,C as Ul,D as Wl,l as U1,z as Gl,r as W1,u as G1}from"./g9G7tvrf.js";import{e as j1,h as Sr}from"./DAYo95RN.js";import{ax as p0}from"./KJX0Kw6L.js";import{i as Bs}from"./C91dOInA.js";const Ge=[];for(let t=0;t<256;++t)Ge.push((t+256).toString(16).slice(1));function V1(t,e=0){return(Ge[t[e+0]]+Ge[t[e+1]]+Ge[t[e+2]]+Ge[t[e+3]]+"-"+Ge[t[e+4]]+Ge[t[e+5]]+"-"+Ge[t[e+6]]+Ge[t[e+7]]+"-"+Ge[t[e+8]]+Ge[t[e+9]]+"-"+Ge[t[e+10]]+Ge[t[e+11]]+Ge[t[e+12]]+Ge[t[e+13]]+Ge[t[e+14]]+Ge[t[e+15]]).toLowerCase()}const Y1=new Uint8Array(16);function X1(){return crypto.getRandomValues(Y1)}function Ci(t,e,r){return crypto.randomUUID?crypto.randomUUID():K1(t)}function K1(t,e,r){t=t||{};const n=t.random??t.rng?.()??X1();if(n.length<16)throw new Error("Random bytes length must be >= 16");return n[6]=n[6]&15|64,n[8]=n[8]&63|128,V1(n)}function Ii(t,e){if(t.repositoryIdentity===null)return null;if(t.repositoryIdentity){const{provider:a,instanceBaseUrl:i,projectPath:s}=t.repositoryIdentity,o=Ii({...t,repositoryIdentity:void 0,githubUrl:`${i}/${s}`},a==="gitlab"?i:void 0);return o?.provider===a?o:null}const r=t.githubUrl;if(!r)return null;const n=/^(?:https:\/\/github\.com\/|git@github\.com:)([A-Za-z0-9_.-]+)\/([A-Za-z0-9_.-]+?)(?:\.git)?\/?$/i.exec(r);return n&&!n.slice(1).some(a=>a==="."||a==="..")?{provider:"github",instanceBaseUrl:"https://github.com",projectPath:`${n[1]}/${n[2]}`}:e?M1(r.replace(/\.git\/?$/,""),e):null}function w5(t,e){return t.type==="local"?t.plainFolder?"folder":"local":Ii(t,e)?.provider==="gitlab"?"gitlab":"github"}function jl(t){const e=t.split(/[\\/]/).filter(Boolean);return e[e.length-1]??""}function k5(t){if(t.type!=="local")return{ownerPrefix:t.owner,primary:t.name};const e=jl(t.path)||t.name,r=t.owner?`${t.owner}/${t.name}`:void 0;return{primary:e,suffix:r}}function x5(t){return t.type==="local"&&t.path?t.path:void 0}const Z1=["/.clones/","/.repo-cache/"];function S5(t){const e=t.replaceAll("\\","/");return Z1.some(r=>e.includes(r))}function A5(t){const e=new Set;for(const r of t){const{repositoryPath:n,worktreePath:a}=r;n&&a&&n===a&&e.add(n)}return e}function Q1(t){return t.includes("\\")||t.includes(":")||t.startsWith("/")?void 0:/^([^/]+)\/[^/]+$/.exec(t)?.[1]}function T5(t,e){const{selectedValue:r,selectedRepoType:n,confirmedGithubUrl:a}=t;if(!(n!=="github"||!r)){if(a){const i=e(a)?.owner;if(i)return i}return e(r)?.owner??Q1(r)}}function E5(t,e){const r=e.trim().toLowerCase();return r===""?!0:[t.name,t.path,jl(t.path),t.owner,t.owner?`${t.owner}/${t.name}`:void 0].some(a=>a?.toLowerCase().includes(r)??!1)}const J1="known-repos",ed=6e4;function td({saved:t,source:e,dismissed:r,mode:n}){if(!e)return[...t];const a=new Map;if(n==="all")for(const s of[...e.repos,...t]){const o=gn(s);a.has(o)||a.set(o,s)}else{for(const s of t)a.set(gn(s),s);for(const s of e.repos)a.set(gn(s),s)}const i=[...a.values()].filter(s=>!r[gn(s)]);return n==="all"?i:i.slice(0,9)}function M5(t){const e=t.lastUsedAt?Date.parse(t.lastUsedAt):NaN;return Number.isFinite(e)?e:0}function C5({visible:t,admission:e,entry:r,readyAt:n,now:a}){return!t||!e?"skip":!r||r.admission!==e?"load":r.status==="pending"?"reuse":r.status==="ready"&&n?.requestId===r.requestId&&a-n.at<ed?"skip":"load"}function I5(t,e){if(t.type==="local")return t.plainFolder?{repoPath:t.path,plainFolder:!0}:{repoPath:t.path};const r=Ii(t,e);return r?.provider==="gitlab"?{repositoryCheckoutDraft:{instanceBaseUrl:r.instanceBaseUrl,projectPath:r.projectPath}}:r?{githubUrl:`https://github.com/${r.projectPath}`,exactRemote:!0}:{githubUrl:t.githubUrl||`https://github.com/${t.path}`,exactRemote:!0}}function rd({compactFormState:t,lastSubmittedAgent:e,specialists:r,orchestratorId:n}){if(t?.isTeamMode??e?.isTeamMode??!1)return n;const i=o=>r.some(c=>c.id===o),s=t?.selectedSpecialist!==void 0?t.selectedSpecialist:e?.selectedSpecialist!==void 0?e.selectedSpecialist:i(Ls)?Ls:null;return s===null||!i(s)?null:s}const z5=E.createSelector(t=>t.workspaceInitializer.hydrated),R5=E.createSelector(t=>t.workspaceInitializer.compactFormState),D5=E.createSelector(t=>t.workspaceInitializer.onboardingFormState),N5=E.createSelector(t=>t.workspaceInitializer.lastSelectedRepo),_5=E.createSelector(t=>t.workspaceInitializer.branchByRepo),L5=E.createSelector(t=>t.workspaceInitializer.defaultParentPath),P5=E.createSelector(t=>ge(t.workspaceInitializer.recentRepos)),O5=E.createSelector((t,e)=>Se(t.workspaceInitializer.recentRepoRefreshes,e)),$5=E.createSelector((t,e)=>Se(t.workspaceInitializer.directoryStatusChecks,e)),B5=E.createSelector(t=>t.workspaceInitializer.dismissedRecentRepoKeys),q5=E.createSelector(t=>ge(t.workspaceInitializer.remoteSetups)),F5=E.createSelector(t=>t.workspaceInitializer.lastSubmittedAgent),H5=E.createSelector(t=>t.workspaceInitializer.agentByRepo),U5=E.createSelector(t=>t.workspaceInitializer.recentSpecialistIds),W5=E.createSelector((t,e)=>t.workspaceInitializer.agentByRepo[e]??null),G5=E.createSelector(t=>t.workspaceInitializer.pendingGitHubPrefill),j5=E.createSelector((t,e)=>({restore:Se(t.workspaceInitializer.draftRestores,e),clear:Se(t.workspaceInitializer.draftClears,e)})),V5=E.createSelector((t,e,r)=>{const n=Se(t.workspaceInitializer.initializationOutcomes,e);return n?.resourceId===r?n:void 0}),Y5=E.createSelector((t,e)=>Se(t.workspaceInitializer.initializationOutcomes,e)),X5=E.createSelector((t,e)=>Se(t.workspaceInitializer.initializationResumes,e)),K5=E.createSelector(t=>rd({compactFormState:t.workspaceInitializer.compactFormState,lastSubmittedAgent:t.workspaceInitializer.lastSubmittedAgent,specialists:T1.select(t),orchestratorId:A1.select(t)?.id??null})),nd=E.createSelector(t=>{const e=t.workspaceInitializer.gitCheckRequest,r=ur.select(t);return e&&r&&s1.select(t)?JSON.stringify([r,e]):null}),Z5=E.createSelector(t=>{const e=nd.select(t),r=t.workspaceInitializer.gitCheck;return e&&r?.context===e?r.available:null}),ad=E.createSelector(t=>{const e=Se(t.workspaceInitializer.recentRepoRefreshes,J1),r=ur.select(t);return td({saved:ge(t.workspaceInitializer.recentRepos),source:e&&r&&e.admission===r?e:null,dismissed:t.workspaceInitializer.dismissedRecentRepoKeys,mode:"all"})}),Q5=E.createSelector(t=>_l.select(t)?ad.select(t):[]),J5=E.createSelector(t=>E1.select(t)||void 0),qs="workspace-debug-flags",yn={enableCreationAnimation:!0,animationDuration:300,enablePageTransitions:!0,enableComponentTransitions:!0,showDebugInfo:!1,showPerformanceMetrics:!1,logStateChanges:!1,enableAutofocus:!0,enableBranchCaching:!0,enableFormPersistence:!0,simulateSlowNetwork:!1,simulateErrors:!1,networkDelay:0};class id{constructor(){se(this,"flags");se(this,"listeners",new Set);this.flags=this.loadFlags()}loadFlags(){if(typeof localStorage>"u")return yn;try{const e=localStorage.getItem(qs);if(e)return{...yn,...JSON.parse(e)}}catch(e){wa.error("Failed to load debug flags:",e)}return yn}saveFlags(){if(!(typeof localStorage>"u")){try{localStorage.setItem(qs,JSON.stringify(this.flags))}catch(e){wa.error("Failed to save debug flags:",e)}this.listeners.forEach(e=>e(this.flags))}}get(e){return this.flags[e]}set(e,r){this.flags[e]=r,this.saveFlags()}toggle(e){typeof this.flags[e]=="boolean"&&(this.flags[e]=!this.flags[e],this.saveFlags())}reset(){this.flags={...yn},this.saveFlags()}getAll(){return{...this.flags}}subscribe(e){return this.listeners.add(e),()=>this.listeners.delete(e)}toggleDebugPanel(){this.toggle("showDebugInfo"),wa.info("Debug panel:",this.flags.showDebugInfo?"ON":"OFF")}async simulateDelay(e){return this.flags.simulateSlowNetwork&&this.flags.networkDelay>0&&await new Promise(r=>setTimeout(r,this.flags.networkDelay)),e}}const ka=new id;function e3(t){if(!t)return"";let e=t;return e=e.replace(/\*\*(.+?)\*\*/g,"$1"),e=e.replace(/__(.+?)__/g,"$1"),e=e.replace(/(?<!\*)\*(?!\*)(.+?)(?<!\*)\*(?!\*)/g,"$1"),e=e.replace(/(?<!_)_(?!_)(.+?)(?<!_)_(?!_)/g,"$1"),e=e.replace(/~~(.+?)~~/g,"$1"),e=e.replace(/`([^`]+)`/g,"$1"),e=e.replace(/\[([^\]]+)\]\([^)]+\)/g,"$1"),e=e.replace(/^#{1,6}\s+/gm,""),e=e.replace(/^\*+\s*/gm,""),e=e.replace(/\s*\*+$/gm,""),e.trim()}function sd(t){return t.charAt(0).toUpperCase()+t.slice(1)}function t3(t){if(!t||t.trim().length===0)return ne.workspace_sidebarHeader_branchEmpty_error();if(/[\s~^:\\?*\[\\]/.test(t))return ne.workspace_sidebarHeader_branchInvalidChars_error();if(t.includes("@{"))return ne.workspace_sidebarChanges_branchAtBrace_error({seq:"@{"});if(t==="@")return ne.workspace_sidebarChanges_branchAt_error({symbol:"@"});if(t.startsWith("."))return ne.workspace_sidebarHeader_branchStartsDot_error();if(t.endsWith(".lock"))return ne.workspace_sidebarHeader_branchEndsLock_error();if(t.includes(".."))return ne.workspace_sidebarHeader_branchDoubleDot_error();if(t.startsWith("/")||t.endsWith("/"))return ne.workspace_sidebarHeader_branchSlashEnds_error();if(t.includes("//"))return ne.workspace_sidebarHeader_branchDoubleSlash_error();if(t.startsWith("-"))return ne.workspace_sidebarHeader_branchStartsDash_error();if(t.endsWith("."))return ne.workspace_sidebarChanges_branchEndsPeriod_error();const e=t.split("/");for(const r of e){if(r.startsWith("."))return ne.workspace_sidebarChanges_branchComponentStartsDot_error();if(r.endsWith(".lock"))return ne.workspace_sidebarChanges_branchComponentEndsLock_error()}if(t.length>250)return ne.workspace_sidebarHeader_branchTooLong_error()}function r3(t,e,r,n){return e&&r?`https://github.com/${e}/${r}/pull/${t}`:n||""}function Za(t){return t==="Open"?"open":t==="Merged"?"merged":t==="Draft"?"draft":"closed"}function n3(t,e){return`${e}:${t.agentId??"manual"}`}function od(t,e){if(t.length===0||e>=t.length)return 0;const r=Math.max(0,e);let n=0;for(let a=r;a<t.length;a++)t[a].isPushed||n++;return n}function ld(t,e){if(t.length===0||e<0)return 0;const r=Math.min(e,t.length-1);let n=0;for(let a=0;a<=r;a++)t[a].isPushed&&n++;return n}function cd(t,e){if(t.length===0||e<0)return 0;const r=Math.min(e,t.length-1);let n=0;for(let a=0;a<=r;a++)t[a].isPushed||n++;return n}function a3(t,e,r,n){const a=od(t,e),i=n?` (origin/${n})`:"";return r?a===1?ne.workspace_sidebarChanges_addToPr_one({suffix:i}):ne.workspace_sidebarChanges_addToPr_many({count:rt(a),suffix:i}):a===1?ne.workspace_sidebarChanges_pushToRemote_one({suffix:i}):ne.workspace_sidebarChanges_pushToRemote_many({count:rt(a),suffix:i})}function i3(t,e,r){const n=ld(t,e),a=r?` (origin/${r})`:"";return n===1?ne.workspace_sidebarChanges_undoPush_one({suffix:a}):ne.workspace_sidebarChanges_undoPush_many({count:rt(n),suffix:a})}function s3(t,e){const r=cd(t,e);return r===1?ne.workspace_sidebarChanges_undoCommit_one():ne.workspace_sidebarChanges_undoCommit_many({count:rt(r)})}function o3(t,e){return e===0&&t.length>0}function l3(t,e,r,n){return!r||n==null?!1:t===r&&e===n}function c3(t,e,r){const n=`${e?"staged":"unstaged"}:${t}`;return r.has(n)}function u3(t,e,r){return r?.path===t&&r?.staged===e}function d3(t){if(t.length===0)return[];const e=new Map,r=[...t].sort((n,a)=>n.timestamp-a.timestamp);for(const n of r)for(const a of n.files??[]){const i=e.get(a.path);i?e.set(a.path,{additions:i.additions+(a.additions||0),deletions:i.deletions+(a.deletions||0)}):e.set(a.path,{additions:a.additions||0,deletions:a.deletions||0})}return Array.from(e.entries()).map(([n,a])=>({path:n,additions:a.additions,deletions:a.deletions,staged:!1}))}function h3(t,e,r){const n=new Set;let a=0,i=0;for(const s of t)n.add(s.relativePath),a+=s.stats?.additions||0,i+=s.stats?.deletions||0;for(const s of e)n.add(s.relativePath),a+=s.stats?.additions||0,i+=s.stats?.deletions||0;for(const s of r)for(const o of s.files||[])n.add(o.path),a+=o.additions||0,i+=o.deletions||0;return{totalFilesChanged:n.size,totalAdditions:a,totalDeletions:i}}function ud(t){const e=t?.match(/^https?:\/\/github\.com\/([^/]+)\/([^/]+)\/pull\/\d+/i);return e?`${e[1]}/${e[2]}`:void 0}function p3(t,e,r,n,a){if(t&&t.length>0){const i=a?.split("/")[0];return t.map(s=>{const o=s.url||r(s.number),c=ud(s.url),d=c!==void 0&&c.toLowerCase()!==a?.toLowerCase()?c:void 0;return{number:s.number,title:n(s),url:o,htmlUrl:o,status:Za(s.status),createdAt:s.createdAt,updatedAt:s.updatedAt,isInMergeQueue:s.isDraft?void 0:s.isInMergeQueue,crossRepo:d,crossRepoDisplay:d?zi(d,i):void 0}})}return e?[{number:e.number,title:n(e),url:r(e.number,e.url),htmlUrl:r(e.number,e.url),status:Za(e.status),createdAt:e.createdAt,updatedAt:e.updatedAt,isInMergeQueue:e.isDraft?void 0:e.isInMergeQueue}]:[]}function m3(t){const{prNumber:e,prUrl:r}=t;return e==null||!r?null:{id:`legacy-pr-${e}`,number:e,url:r,title:"",status:t.prStatus??C1.Open,createdAt:t.updatedAt,updatedAt:t.updatedAt}}function dd(t){const e=t.lastSnapshot?.state?.toLowerCase();return e==="merged"?"merged":e==="closed"?"closed":t.lastSnapshot?.isDraft?"draft":t.state==="completed"?"closed":"open"}function xa(t,e,r){if(e.length===0)return t;const n=r?.split("/")[0],a=t.map(i=>({...i}));for(const i of e){const s=!i.resource&&!i.monitorAvailability&&(!r||i.repo===r),o=R0(i),c=o.toLowerCase(),d=a.find(p=>!!o&&p.url.toLowerCase()===c||(i.resource||i.monitorAvailability?p.monitorIdentity===ya(i):!p.resource&&!p.monitorAvailability&&(s?!p.crossRepo&&p.number===i.prNumber:p.crossRepo===i.repo&&p.number===i.prNumber)));if(d){d.monitorAgentId=i.agentId,d.resource=i.resource,d.monitorAvailability=i.monitorAvailability,d.monitorIdentity=i.resource||i.monitorAvailability?ya(i):void 0,d.monitorSnapshot=i.lastSnapshot??d.monitorSnapshot;continue}a.push({number:i.prNumber,title:i.title??`${i.repo}${o1(i,i.prNumber)}`,resource:i.resource,monitorAvailability:i.monitorAvailability,monitorIdentity:i.resource||i.monitorAvailability?ya(i):void 0,url:o,htmlUrl:o,status:dd(i),createdAt:i.createdAt,updatedAt:i.updatedAt,monitorAgentId:i.agentId,crossRepo:s?void 0:i.repo,crossRepoDisplay:s?void 0:zi(i.repo,n),monitorSnapshot:i.lastSnapshot,monitorOnly:!0})}return a}function zi(t,e){return e&&t.toLowerCase().startsWith(`${e.toLowerCase()}/`)?t.slice(e.length+1):t}function f3(t,e,r,n,a){const i=r?.toLowerCase(),s=new Set;for(const S of n)S.repoOwner&&S.repoName&&s.add(`${S.repoOwner}/${S.repoName}`.toLowerCase());let o=t;const c=[],d=[];if(t.some(S=>S.crossRepo)){o=[];for(const S of t)S.crossRepo?s.has(S.crossRepo.toLowerCase())?c.push(S):d.push(S):o.push(S)}const p=[],g=[],v=[];for(const S of e){const C=S.repo.toLowerCase();R0(S)&&o.some(W=>W.url===R0(S))||!S.resource&&!S.monitorAvailability&&(!i||C===i)?p.push(S):R0(S)&&c.some(W=>W.url===R0(S))||!S.resource&&!S.monitorAvailability&&s.has(C)?g.push(S):v.push(S)}const w=xa(o,p,r),A=r?.split("/")[0],M=new Set([...w,...c,...d].map(S=>`${(S.crossRepo??r??"").toLowerCase()}#${S.number}`)),D=[...c];for(const S of n){if(!S.repoOwner||!S.repoName)continue;const C=`${S.repoOwner}/${S.repoName}`;for(const W of S.pullRequests??[]){const K=`${C.toLowerCase()}#${W.number}`;if(M.has(K))continue;M.add(K);const X=W.url||`https://github.com/${C}/pull/${W.number}`,T=i!==void 0&&C.toLowerCase()===i;D.push({number:W.number,title:a(W),url:X,htmlUrl:X,status:Za(W.status),createdAt:W.createdAt,updatedAt:W.updatedAt,crossRepo:T?void 0:C,crossRepoDisplay:T?void 0:zi(C,A)})}}return{own:w,otherRoots:xa(D,g,r),otherTracked:xa(d,v,r)}}function Fs(t){return t.status!=="open"?!1:t.monitorSnapshot?t.monitorSnapshot.isInMergeQueue===!0:t.isInMergeQueue===!0}function g3(t){const e=t.status==="merged"?ne.workspace_prSection_merged_label():t.status==="closed"?ne.workspace_prSection_closed_label():t.status==="draft"?ne.workspace_prSection_statusDraft_label():Fs(t)?ne.workspace_prSection_statusQueued_label():ne.workspace_prSection_statusOpen_label(),r=[l1(t)??e],n=Fs(t)?O1(t.monitorSnapshot?.mergeQueue):null;n&&r.push(n);const a=t.status==="merged"||t.status==="closed"?void 0:t.monitorSnapshot;return a&&(a.checks.total===null||a.checks.passed===null||a.checks.failed===null||a.checks.pending===null||a.availability&&a.availability.checks!=="available"?r.push(ne.chat_monitoredPrs_hover_checksUnknown_label()):a.checks.total>0&&r.push(ne.workspace_prSection_statusChecks_tooltip({passed:rt(a.checks.passed),failed:rt(a.checks.failed),pending:rt(a.checks.pending)})),r.push(a.approvals.have===null||a.availability&&a.availability.approvals!=="available"?ne.chat_monitoredPrs_hover_approvalsUnknown_label():a.approvals.needed!=null?ne.workspace_prSection_statusApprovalsOfNeeded_tooltip({count:rt(a.approvals.have),needed:rt(a.approvals.needed)}):ne.workspace_prSection_statusApprovals_tooltip({count:rt(a.approvals.have)})),a.approvals.changesRequested!==null&&a.approvals.changesRequested>0&&r.push(ne.workspace_prSection_statusChangesRequested_tooltip({count:rt(a.approvals.changesRequested)})),a.availability&&a.availability.discussions!=="available"?r.push(ne.workspace_prSection_statusUnresolvedThreadsUnknown_tooltip()):typeof a.threads.unresolved=="number"?a.threads.unresolved>0&&r.push(ne.workspace_prSection_statusUnresolvedThreads_tooltip({count:rt(a.threads.unresolved)})):a.threads.resolutionRequired&&r.push(ne.workspace_prSection_statusUnresolvedThreadsUnknown_tooltip()),a.mergeBlockedReason&&r.push(sd(a.mergeBlockedReason))),r.join(`
2
- `)}function v3(t,e){return e.has(t??"manual")}function b3(t,e){return{path:t.relativePath,additions:t.stats.additions,deletions:t.stats.deletions,staged:e,status:t.status,attribution:t.attribution?.agent?{agentId:t.attribution.agent.agentId,agentName:t.attribution.agent.agentName,sessionId:t.attribution.agent.sessionId,turnNumber:t.attribution.agent.turnNumber,timestamp:t.attribution.timestamp}:void 0}}const Vl=500;function y3(t,e=Vl){const r=Math.max(0,Math.floor(e));return t.length<=r?{visible:t,shown:t.length,hiddenCount:0}:{visible:t.slice(0,r),shown:r,hiddenCount:t.length-r}}function w3(t,e,r=Vl){let n=Math.max(0,Math.floor(r)),a=0,i=0;return{groups:t.map(o=>{if(e(o))return{group:o,visibleFiles:[]};const c=Math.min(n,o.files.length);return n-=c,a+=c,i+=o.files.length-c,{group:o,visibleFiles:c===o.files.length?o.files:o.files.slice(0,c)}}),shown:a,hiddenCount:i}}function k3(t){if(t.hiddenCount<=0)return"";const e=rt(t.shown),r=rt(t.shown+t.hiddenCount);return t.hiddenCount===1?ne.workspace_fileChanges_hiddenFiles_one({shown:e,total:r}):ne.workspace_fileChanges_hiddenFiles_many({shown:e,total:r,count:rt(t.hiddenCount)})}function hd(t){if(!t)return{};try{const e=JSON.parse(t);return e&&typeof e=="object"?e:{}}catch{return{}}}function Qa(t){return t.startsWith("@")?t.slice(1):t}function pd(t,e,r,n){const a=t.fullPath||t.path||t.filename;if(a)return Qa(String(a));const i=[r,e,n.trim()].map(Qa).filter(Boolean),s=i.find(o=>o.includes("/"))??i[0];return s?c1(s).path:void 0}function md(t){const e=t.line??t.startLine??t.range?.start;return typeof e=="number"&&Number.isFinite(e)?e:void 0}function fd(t){if(!t||t.getAttribute("data-mention")===null)return null;const e=t.getAttribute("data-type")||"",r=t.getAttribute("data-id")||"",n=t.getAttribute("data-label")||"",a=t.getAttribute("data-uri")||"",i=hd(t.getAttribute("data-meta")),s={type:e,id:r,label:n,uri:a,meta:i},o=a.startsWith("intent://")?a:typeof i.fullUrl=="string"&&i.fullUrl.startsWith("intent://")?i.fullUrl:void 0;if(o&&(s.intentUrl=o),e==="file"||e==="file-range"){const c=pd(i,n,r,t.textContent||"");c&&(s.filePath=c);const d=md(i);d!==void 0&&(s.line=d)}else if(e==="folder"||e==="source-folder"){const c=i.fullPath||i.path||r||n,d=c?Qa(String(c)).replace(/\/+$/,""):"";d&&(s.folderPath=d)}else if(e==="note"||e==="note-range"){const c=i.noteId||r;c&&(s.note=i.isExternalLink&&i.workspaceId?{id:c,workspaceId:String(i.workspaceId)}:{id:c})}return s}function x3(t){return{sidebarTabId:"files",type:"file",filePath:`${t}/`}}function Ri(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}var Pr=Ri();function Yl(t){Pr=t}var Ir={exec:()=>null};function Xr(t){let e=[];return r=>{let n=Math.max(0,Math.min(3,r-1)),a=e[n];return a||(a=t(n),e[n]=a),a}}function ce(t,e=""){let r=typeof t=="string"?t:t.source,n={replace:(a,i)=>{let s=typeof i=="string"?i:i.source;return s=s.replace(Ye.caret,"$1"),r=r.replace(a,s),n},getRegex:()=>new RegExp(r,e)};return n}var gd=((t="")=>{try{return!!new RegExp("(?<=1)(?<!1)"+t)}catch{return!1}})(),Ye={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,listReplaceNesting:/^ {1,4}(?=( {4})*[^ ])/g,listIsTask:/^\[[ xX]\] +\S/,listReplaceTask:/^\[[ xX]\] +/,listTaskCheckbox:/\[[ 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,caret:/(^|[^\[])\^/g,percentDecode:/%25/g,findPipe:/\|/g,splitPipe:/ \|/,slashPipe:/\\\|/g,carriageReturn:/\r\n|\r/g,spaceLine:/^ +$/gm,notSpaceStart:/^\S*/,endingNewline:/\n$/,listItemRegex:t=>new RegExp(`^( {0,3}${t})((?:[ ][^\\n]*)?(?:\\n|$))`),nextBulletRegex:Xr(t=>new RegExp(`^ {0,${t}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`)),hrRegex:Xr(t=>new RegExp(`^ {0,${t}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`)),fencesBeginRegex:Xr(t=>new RegExp(`^ {0,${t}}(?:\`\`\`|~~~)`)),headingBeginRegex:Xr(t=>new RegExp(`^ {0,${t}}#`)),htmlBeginRegex:Xr(t=>new RegExp(`^ {0,${t}}<(?:[a-z].*>|!--)`,"i")),blockquoteBeginRegex:Xr(t=>new RegExp(`^ {0,${t}}>`))},vd=/^(?:[ \t]*(?:\n|$))+/,bd=/^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/,yd=/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,W0=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,wd=/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,Di=/ {0,3}(?:[*+-]|\d{1,9}[.)])/,Xl=/^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/,Kl=ce(Xl).replace(/bull/g,Di).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}(?:\s|$)/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/\|table/g,"").getRegex(),kd=ce(Xl).replace(/bull/g,Di).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}(?:\s|$)/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/table/g,/ {0,3}\|?(?:[:\- ]*\|)+[\:\- ]*\n/).getRegex(),Ni=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table|[ \t]+\n)[^\n]+)*)/,xd=/^[^\n]+/,_i=/(?!\s*\])(?:\\[\s\S]|[^\[\]\\])+/,Sd=ce(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label",_i).replace("title",/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),Ad=ce(/^(bull)([ \t][^\n]*?)?(?:\n|$)/).replace(/bull/g,Di).getRegex(),Hn="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",Li=/<!--(?:-?>|[\s\S]*?(?:-->|$))/,Td=ce("^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n*|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>[^\\n]*\\n*|$)|<![A-Z][\\s\\S]*?(?:>[^\\n]*\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>[^\\n]*\\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",Li).replace("tag",Hn).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),Zl=t=>ce(Ni).replace("hr",W0).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("|table","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*(?:\\n|$))|~~~)[^\\n]*(?:\\n|$)").replace("list",t).replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",Hn).getRegex(),Ed=Zl(/ {0,3}(?:[*+-]|1[.)])[ \t]+[^ \t\n]/),Md=Zl(/ {0,3}(?:[*+-]|\d{1,9}[.)])(?:[ \t]|\n|$)/),Cd=ce(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph",Md).getRegex(),Pi={blockquote:Cd,code:bd,def:Sd,fences:yd,heading:wd,hr:W0,html:Td,lheading:Kl,list:Ad,newline:vd,paragraph:Ed,table:Ir,text:xd},Hs=ce("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr",W0).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("blockquote"," {0,3}>").replace("code","(?: {4}| {0,3} )[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*(?:\\n|$))|~~~)[^\\n]*(?:\\n|$)").replace("list"," {0,3}(?:[*+-]|1[.)])[ \\t]").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",Hn).getRegex(),Id={...Pi,lheading:kd,table:Hs,paragraph:ce(Ni).replace("hr",W0).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("table",Hs).replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*(?:\\n|$))|~~~)[^\\n]*(?:\\n|$)").replace("list"," {0,3}(?:[*+-]|1[.)])[ \\t]+[^ \\t\\n]").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",Hn).getRegex()},zd={...Pi,html:ce(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",Li).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:Ir,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:ce(Ni).replace("hr",W0).replace("heading",` *#{1,6} *[^
3
- ]`).replace("lheading",Kl).replace("|table","").replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").replace("|tag","").getRegex()},Rd=/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,Dd=/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,Ql=/^( {2,}|\\)\n(?!\s*$)/,Nd=/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,Vt=/[\p{P}\p{S}]/u,m0=/[\s\p{P}\p{S}]/u,G0=/[^\s\p{P}\p{S}]/u,_d=ce(/^((?![*_])punctSpace)/,"u").replace(/punctSpace/g,m0).getRegex(),Ld=/[\p{Pi}\p{Ps}"']/u,Jl=/(?!~)[\p{P}\p{S}]/u,Pd=/(?!~)[\s\p{P}\p{S}]/u,Od=/(?:[^\s\p{P}\p{S}]|~)/u,$d=ce(/link|precode-code|html/,"g").replace("link",/\[(?:[^\[\]`]|(?<a>`+)[^`]+\k<a>(?!`))*?\]\((?:\\[\s\S]|[^\\\(\)]|\((?:\\[\s\S]|[^\\\(\)])*\))*\)/).replace("precode-",gd?"(?<!`)()":"(^^|[^`])").replace("code",/(?<b>`+)[^`]+\k<b>(?!`)/).replace("html",/<(?! )[^<>]*?>/).getRegex(),ec=/^(?:\*+(?:((?!\*)punct)|([^\s*]))?)|^_+(?:((?!_)punct)|([^\s_]))?/,Bd=ce(ec,"u").replace(/punct/g,Vt).getRegex(),qd=ce(ec,"u").replace(/punct/g,Jl).getRegex(),Fd=/^(?:\*+(?:((?!\*)(?!openQuote)punct)|([^\s*]))?)|^_+(?:((?!_)(?!openQuote)punct)|([^\s_]))?/,Hd=ce(Fd,"u").replace(/openQuote/g,Ld).replace(/punct/g,Vt).getRegex(),tc="^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)",Ud=ce(tc,"gu").replace(/notPunctSpace/g,G0).replace(/punctSpace/g,m0).replace(/punct/g,Vt).getRegex(),Wd=ce(tc,"gu").replace(/notPunctSpace/g,Od).replace(/punctSpace/g,Pd).replace(/punct/g,Jl).getRegex(),Gd="^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)[\\s](\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|(?:(?!\\*)punct|notPunctSpace)(\\*+)(?!\\*)(?=notPunctSpace)",jd=ce(Gd,"gu").replace(/notPunctSpace/g,G0).replace(/punctSpace/g,m0).replace(/punct/g,Vt).getRegex(),Vd=ce("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)","gu").replace(/notPunctSpace/g,G0).replace(/punctSpace/g,m0).replace(/punct/g,Vt).getRegex(),Yd="^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)[\\s](_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)|(?:(?!_)punct|notPunctSpace)(_+)(?!_)(?=notPunctSpace)",Xd=ce(Yd,"gu").replace(/notPunctSpace/g,G0).replace(/punctSpace/g,m0).replace(/punct/g,Vt).getRegex(),Kd=ce(/^~~?(?:((?!~)punct)|[^\s~])/,"u").replace(/punct/g,Vt).getRegex(),Zd="^[^~]+(?=[^~])|(?!~)punct(~~?)(?=[\\s]|$)|notPunctSpace(~~?)(?!~)(?=punctSpace|$)|(?!~)punctSpace(~~?)(?=notPunctSpace)|[\\s](~~?)(?!~)(?=punct)|(?!~)punct(~~?)(?!~)(?=punct)|notPunctSpace(~~?)(?=notPunctSpace)",Qd=ce(Zd,"gu").replace(/notPunctSpace/g,G0).replace(/punctSpace/g,m0).replace(/punct/g,Vt).getRegex(),Jd=ce(/\\(punct)/,"gu").replace(/punct/g,Vt).getRegex(),eh=ce(/^<(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(),th=ce(Li).replace("(?:-->|$)","-->").getRegex(),rh=ce("^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",th).replace("attribute",/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(),Ln=/(?:\[(?:\\[\s\S]|[^\[\]\\])*\]|\\[\s\S]|`+(?!`)[^`]*?`+(?!`)|``+(?=\])|[^\[\]\\`])*?/,nh=ce(/^!?\[(label)\]\(\s*(href)(?:(?:[ \t]+(?:\n[ \t]*)?|\n[ \t]*)(title))?\s*\)/).replace("label",Ln).replace("href",/<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]+|(?=\))/).replace("title",/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(),rc=ce(/^!?\[(label)\]\[(ref)\]/).replace("label",Ln).replace("ref",_i).getRegex(),nc=ce(/^!?\[(ref)\](?:\[\])?/).replace("ref",_i).getRegex(),ah=ce("reflink|nolink(?!\\()","g").replace("reflink",rc).replace("nolink",nc).getRegex(),Us=/[hH][tT][tT][pP][sS]?|[fF][tT][pP]/,Oi={_backpedal:Ir,anyPunctuation:Jd,autolink:eh,blockSkip:$d,br:Ql,code:Dd,del:Ir,delLDelim:Ir,delRDelim:Ir,emStrongLDelim:Bd,emStrongRDelimAst:Ud,emStrongRDelimUnd:Vd,escape:Rd,link:nh,nolink:nc,punctuation:_d,reflink:rc,reflinkSearch:ah,tag:rh,text:Nd,url:Ir},ih={...Oi,emStrongLDelim:Hd,emStrongRDelimAst:jd,emStrongRDelimUnd:Xd,link:ce(/^!?\[(label)\]\((.*?)\)/).replace("label",Ln).getRegex(),reflink:ce(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",Ln).getRegex()},Ja={...Oi,emStrongRDelimAst:Wd,emStrongLDelim:qd,delLDelim:Kd,delRDelim:Qd,url:ce(/^((?:protocol):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/).replace("protocol",Us).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:ce(/^(`+|~+|[^`~])(?:(?=[`~])|(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|protocol:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/).replace("protocol",Us).getRegex()},sh={...Ja,br:ce(Ql).replace("{2,}","*").getRegex(),text:ce(Ja.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()},wn={normal:Pi,gfm:Id,pedantic:zd},S0={normal:Oi,gfm:Ja,breaks:sh,pedantic:ih},oh={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},Ws=t=>oh[t];function Dt(t,e){if(e){if(Ye.escapeTest.test(t))return t.replace(Ye.escapeReplace,Ws)}else if(Ye.escapeTestNoEncode.test(t))return t.replace(Ye.escapeReplaceNoEncode,Ws);return t}function Gs(t){try{t=encodeURI(t).replace(Ye.percentDecode,"%")}catch{return null}return t}function js(t,e){let r=t.replace(Ye.findPipe,(i,s,o)=>{let c=!1,d=s;for(;--d>=0&&o[d]==="\\";)c=!c;return c?"|":" |"}),n=r.split(Ye.splitPipe),a=0;if(n[0].trim()||n.shift(),n.length>0&&!n.at(-1)?.trim()&&n.pop(),e)if(n.length>e)n.splice(e);else for(;n.length<e;)n.push("");for(;a<n.length;a++)n[a]=n[a].trim().replace(Ye.slashPipe,"|");return n}function tr(t,e,r){let n=t.length;if(n===0)return"";let a=0;for(;a<n&&t.charAt(n-a-1)===e;)a++;return t.slice(0,n-a)}function Vs(t){let e=t.split(`
4
- `),r=e.length-1;for(;r>=0&&Ye.blankLine.test(e[r]);)r--;return e.length-r<=2?t:e.slice(0,r+1).join(`
5
- `)}function lh(t,e){if(t.indexOf(e[1])===-1)return-1;let r=0;for(let n=0;n<t.length;n++)if(t[n]==="\\")n++;else if(t[n]===e[0])r++;else if(t[n]===e[1]&&(r--,r<0))return n;return r>0?-2:-1}function ch(t,e=0){let r=e,n="";for(let a of t)if(a===" "){let i=4-r%4;n+=" ".repeat(i),r+=i}else n+=a,r++;return n}function Ys(t,e,r,n,a){let i=e.href,s=e.title||null,o=t[1].replace(a.other.outputLinkReplace,"$1"),c=t[0].charAt(0)==="!";n.state.inLink=!0;let d=n.state.linkEmitted,p=n.state.inRawBlock;n.state.linkEmitted=!1;let g=n.inlineTokens(o),v=n.state.linkEmitted;if(n.state.linkEmitted=d,n.state.inLink=!1,!c){if(v){n.state.inRawBlock=p;return}n.state.linkEmitted=!0}return{type:c?"image":"link",raw:r,href:i,title:s,text:o,tokens:g}}function uh(t,e,r){let n=t.match(r.other.indentCodeCompensation);if(n===null)return e;let a=n[1];return e.split(`
1
+ var a1=Object.defineProperty;var i1=(t,e,r)=>e in t?a1(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r;var se=(t,e,r)=>i1(t,typeof e!="symbol"?e+"":e,r);import{cD as ur,aU as s1,ds as _l,_ as R0,Y as ya,Z as o1,X as l1,a1 as c1,ab as u1,U as d1,dT as h1,M as p1,ba as Ll,cG as Lr,dr as Pl,aT as m1,aX as f1,co as g1,cE as v1,c9 as b1,dl as Ya,dN as y1,dG as w1,ay as Fn,al as k1,at as Ti,dq as Ol,dD as x1,dX as $l,dW as S1}from"./B0biUQQF.js";import{D as Ls,bv as A1,bM as T1,aY as E1}from"./Ca05Jmq3.js";import{M as M1,F as i0}from"./-SwunqO3.js";import{yD as gn,Iz as E,nx as ge,nw as Se,aM as C1,g as Bl,y as Re,bd as c0,jS as Ei,lR as vn,aj as jt,lQ as Ps,l_ as Os,lX as $s,jp as ql,gi as Ka,GX as I1,t3 as z1,z_ as R1,oA as D1,mD as bn,Bz as N1,iv as _1,m8 as L1,lL as P1}from"./A0r9TbR7.js";import{bp as ne}from"./DTQYcznv.js";import{t as rt}from"./BqqN40AD.js";import{k as O1,d as xr}from"./CEQZVenN.js";import{a as u0}from"./BdWqymET.js";import{o as pe,r as Gt,e as d0,s as V,_ as Ye,l as h0,g as $1,n as Le,c as or,b as Ue,u as B1,d as q1}from"./CIyUrgF0.js";import{j as Fl}from"./uXuxG9cN.js";import{w as F1}from"./BIEvH8pu.js";import{b as H1}from"./BMm9sGZ6.js";import{i as He}from"./C1nHAGLu.js";import{l as wa,c as Hl}from"./ChTqQfQN.js";import{f as Mi,C as Ul,D as Wl,l as U1,z as Gl,r as W1,u as G1}from"./C8dU7SM3.js";import{e as j1,h as Sr}from"./BVt_T8ao.js";import{ax as p0}from"./BP5uyQTv.js";import{i as Bs}from"./B5tGFpkq.js";const Ge=[];for(let t=0;t<256;++t)Ge.push((t+256).toString(16).slice(1));function V1(t,e=0){return(Ge[t[e+0]]+Ge[t[e+1]]+Ge[t[e+2]]+Ge[t[e+3]]+"-"+Ge[t[e+4]]+Ge[t[e+5]]+"-"+Ge[t[e+6]]+Ge[t[e+7]]+"-"+Ge[t[e+8]]+Ge[t[e+9]]+"-"+Ge[t[e+10]]+Ge[t[e+11]]+Ge[t[e+12]]+Ge[t[e+13]]+Ge[t[e+14]]+Ge[t[e+15]]).toLowerCase()}const X1=new Uint8Array(16);function Y1(){return crypto.getRandomValues(X1)}function Ci(t,e,r){return crypto.randomUUID?crypto.randomUUID():K1(t)}function K1(t,e,r){t=t||{};const n=t.random??t.rng?.()??Y1();if(n.length<16)throw new Error("Random bytes length must be >= 16");return n[6]=n[6]&15|64,n[8]=n[8]&63|128,V1(n)}function Ii(t,e){if(t.repositoryIdentity===null)return null;if(t.repositoryIdentity){const{provider:a,instanceBaseUrl:i,projectPath:s}=t.repositoryIdentity,o=Ii({...t,repositoryIdentity:void 0,githubUrl:`${i}/${s}`},a==="gitlab"?i:void 0);return o?.provider===a?o:null}const r=t.githubUrl;if(!r)return null;const n=/^(?:https:\/\/github\.com\/|git@github\.com:)([A-Za-z0-9_.-]+)\/([A-Za-z0-9_.-]+?)(?:\.git)?\/?$/i.exec(r);return n&&!n.slice(1).some(a=>a==="."||a==="..")?{provider:"github",instanceBaseUrl:"https://github.com",projectPath:`${n[1]}/${n[2]}`}:e?M1(r.replace(/\.git\/?$/,""),e):null}function w5(t,e){return t.type==="local"?t.plainFolder?"folder":"local":Ii(t,e)?.provider==="gitlab"?"gitlab":"github"}function jl(t){const e=t.split(/[\\/]/).filter(Boolean);return e[e.length-1]??""}function k5(t){if(t.type!=="local")return{ownerPrefix:t.owner,primary:t.name};const e=jl(t.path)||t.name,r=t.owner?`${t.owner}/${t.name}`:void 0;return{primary:e,suffix:r}}function x5(t){return t.type==="local"&&t.path?t.path:void 0}const Z1=["/.clones/","/.repo-cache/"];function S5(t){const e=t.replaceAll("\\","/");return Z1.some(r=>e.includes(r))}function A5(t){const e=new Set;for(const r of t){const{repositoryPath:n,worktreePath:a}=r;n&&a&&n===a&&e.add(n)}return e}function Q1(t){return t.includes("\\")||t.includes(":")||t.startsWith("/")?void 0:/^([^/]+)\/[^/]+$/.exec(t)?.[1]}function T5(t,e){const{selectedValue:r,selectedRepoType:n,confirmedGithubUrl:a}=t;if(!(n!=="github"||!r)){if(a){const i=e(a)?.owner;if(i)return i}return e(r)?.owner??Q1(r)}}function E5(t,e){const r=e.trim().toLowerCase();return r===""?!0:[t.name,t.path,jl(t.path),t.owner,t.owner?`${t.owner}/${t.name}`:void 0].some(a=>a?.toLowerCase().includes(r)??!1)}const J1="known-repos",ed=6e4;function td({saved:t,source:e,dismissed:r,mode:n}){if(!e)return[...t];const a=new Map;if(n==="all")for(const s of[...e.repos,...t]){const o=gn(s);a.has(o)||a.set(o,s)}else{for(const s of t)a.set(gn(s),s);for(const s of e.repos)a.set(gn(s),s)}const i=[...a.values()].filter(s=>!r[gn(s)]);return n==="all"?i:i.slice(0,9)}function M5(t){const e=t.lastUsedAt?Date.parse(t.lastUsedAt):NaN;return Number.isFinite(e)?e:0}function C5({visible:t,admission:e,entry:r,readyAt:n,now:a}){return!t||!e?"skip":!r||r.admission!==e?"load":r.status==="pending"?"reuse":r.status==="ready"&&n?.requestId===r.requestId&&a-n.at<ed?"skip":"load"}function I5(t,e){if(t.type==="local")return t.plainFolder?{repoPath:t.path,plainFolder:!0}:{repoPath:t.path};const r=Ii(t,e);return r?.provider==="gitlab"?{repositoryCheckoutDraft:{instanceBaseUrl:r.instanceBaseUrl,projectPath:r.projectPath}}:r?{githubUrl:`https://github.com/${r.projectPath}`,exactRemote:!0}:{githubUrl:t.githubUrl||`https://github.com/${t.path}`,exactRemote:!0}}function rd({compactFormState:t,lastSubmittedAgent:e,specialists:r,orchestratorId:n}){if(t?.isTeamMode??e?.isTeamMode??!1)return n;const i=o=>r.some(c=>c.id===o),s=t?.selectedSpecialist!==void 0?t.selectedSpecialist:e?.selectedSpecialist!==void 0?e.selectedSpecialist:i(Ls)?Ls:null;return s===null||!i(s)?null:s}const z5=E.createSelector(t=>t.workspaceInitializer.hydrated),R5=E.createSelector(t=>t.workspaceInitializer.compactFormState),D5=E.createSelector(t=>t.workspaceInitializer.onboardingFormState),N5=E.createSelector(t=>t.workspaceInitializer.lastSelectedRepo),_5=E.createSelector(t=>t.workspaceInitializer.branchByRepo),L5=E.createSelector(t=>t.workspaceInitializer.defaultParentPath),P5=E.createSelector(t=>ge(t.workspaceInitializer.recentRepos)),O5=E.createSelector((t,e)=>Se(t.workspaceInitializer.recentRepoRefreshes,e)),$5=E.createSelector((t,e)=>Se(t.workspaceInitializer.directoryStatusChecks,e)),B5=E.createSelector(t=>t.workspaceInitializer.dismissedRecentRepoKeys),q5=E.createSelector(t=>ge(t.workspaceInitializer.remoteSetups)),F5=E.createSelector(t=>t.workspaceInitializer.lastSubmittedAgent),H5=E.createSelector(t=>t.workspaceInitializer.agentByRepo),U5=E.createSelector(t=>t.workspaceInitializer.recentSpecialistIds),W5=E.createSelector((t,e)=>t.workspaceInitializer.agentByRepo[e]??null),G5=E.createSelector(t=>t.workspaceInitializer.pendingGitHubPrefill),j5=E.createSelector((t,e)=>({restore:Se(t.workspaceInitializer.draftRestores,e),clear:Se(t.workspaceInitializer.draftClears,e)})),V5=E.createSelector((t,e,r)=>{const n=Se(t.workspaceInitializer.initializationOutcomes,e);return n?.resourceId===r?n:void 0}),X5=E.createSelector((t,e)=>Se(t.workspaceInitializer.initializationOutcomes,e)),Y5=E.createSelector((t,e)=>Se(t.workspaceInitializer.initializationResumes,e)),K5=E.createSelector(t=>rd({compactFormState:t.workspaceInitializer.compactFormState,lastSubmittedAgent:t.workspaceInitializer.lastSubmittedAgent,specialists:T1.select(t),orchestratorId:A1.select(t)?.id??null})),nd=E.createSelector(t=>{const e=t.workspaceInitializer.gitCheckRequest,r=ur.select(t);return e&&r&&s1.select(t)?JSON.stringify([r,e]):null}),Z5=E.createSelector(t=>{const e=nd.select(t),r=t.workspaceInitializer.gitCheck;return e&&r?.context===e?r.available:null}),ad=E.createSelector(t=>{const e=Se(t.workspaceInitializer.recentRepoRefreshes,J1),r=ur.select(t);return td({saved:ge(t.workspaceInitializer.recentRepos),source:e&&r&&e.admission===r?e:null,dismissed:t.workspaceInitializer.dismissedRecentRepoKeys,mode:"all"})}),Q5=E.createSelector(t=>_l.select(t)?ad.select(t):[]),J5=E.createSelector(t=>E1.select(t)||void 0),qs="workspace-debug-flags",yn={enableCreationAnimation:!0,animationDuration:300,enablePageTransitions:!0,enableComponentTransitions:!0,showDebugInfo:!1,showPerformanceMetrics:!1,logStateChanges:!1,enableAutofocus:!0,enableBranchCaching:!0,enableFormPersistence:!0,simulateSlowNetwork:!1,simulateErrors:!1,networkDelay:0};class id{constructor(){se(this,"flags");se(this,"listeners",new Set);this.flags=this.loadFlags()}loadFlags(){if(typeof localStorage>"u")return yn;try{const e=localStorage.getItem(qs);if(e)return{...yn,...JSON.parse(e)}}catch(e){wa.error("Failed to load debug flags:",e)}return yn}saveFlags(){if(!(typeof localStorage>"u")){try{localStorage.setItem(qs,JSON.stringify(this.flags))}catch(e){wa.error("Failed to save debug flags:",e)}this.listeners.forEach(e=>e(this.flags))}}get(e){return this.flags[e]}set(e,r){this.flags[e]=r,this.saveFlags()}toggle(e){typeof this.flags[e]=="boolean"&&(this.flags[e]=!this.flags[e],this.saveFlags())}reset(){this.flags={...yn},this.saveFlags()}getAll(){return{...this.flags}}subscribe(e){return this.listeners.add(e),()=>this.listeners.delete(e)}toggleDebugPanel(){this.toggle("showDebugInfo"),wa.info("Debug panel:",this.flags.showDebugInfo?"ON":"OFF")}async simulateDelay(e){return this.flags.simulateSlowNetwork&&this.flags.networkDelay>0&&await new Promise(r=>setTimeout(r,this.flags.networkDelay)),e}}const ka=new id;function e3(t){if(!t)return"";let e=t;return e=e.replace(/\*\*(.+?)\*\*/g,"$1"),e=e.replace(/__(.+?)__/g,"$1"),e=e.replace(/(?<!\*)\*(?!\*)(.+?)(?<!\*)\*(?!\*)/g,"$1"),e=e.replace(/(?<!_)_(?!_)(.+?)(?<!_)_(?!_)/g,"$1"),e=e.replace(/~~(.+?)~~/g,"$1"),e=e.replace(/`([^`]+)`/g,"$1"),e=e.replace(/\[([^\]]+)\]\([^)]+\)/g,"$1"),e=e.replace(/^#{1,6}\s+/gm,""),e=e.replace(/^\*+\s*/gm,""),e=e.replace(/\s*\*+$/gm,""),e.trim()}function sd(t){return t.charAt(0).toUpperCase()+t.slice(1)}function t3(t){if(!t||t.trim().length===0)return ne.workspace_sidebarHeader_branchEmpty_error();if(/[\s~^:\\?*\[\\]/.test(t))return ne.workspace_sidebarHeader_branchInvalidChars_error();if(t.includes("@{"))return ne.workspace_sidebarChanges_branchAtBrace_error({seq:"@{"});if(t==="@")return ne.workspace_sidebarChanges_branchAt_error({symbol:"@"});if(t.startsWith("."))return ne.workspace_sidebarHeader_branchStartsDot_error();if(t.endsWith(".lock"))return ne.workspace_sidebarHeader_branchEndsLock_error();if(t.includes(".."))return ne.workspace_sidebarHeader_branchDoubleDot_error();if(t.startsWith("/")||t.endsWith("/"))return ne.workspace_sidebarHeader_branchSlashEnds_error();if(t.includes("//"))return ne.workspace_sidebarHeader_branchDoubleSlash_error();if(t.startsWith("-"))return ne.workspace_sidebarHeader_branchStartsDash_error();if(t.endsWith("."))return ne.workspace_sidebarChanges_branchEndsPeriod_error();const e=t.split("/");for(const r of e){if(r.startsWith("."))return ne.workspace_sidebarChanges_branchComponentStartsDot_error();if(r.endsWith(".lock"))return ne.workspace_sidebarChanges_branchComponentEndsLock_error()}if(t.length>250)return ne.workspace_sidebarHeader_branchTooLong_error()}function r3(t,e,r,n){return e&&r?`https://github.com/${e}/${r}/pull/${t}`:n||""}function Za(t){return t==="Open"?"open":t==="Merged"?"merged":t==="Draft"?"draft":"closed"}function n3(t,e){return`${e}:${t.agentId??"manual"}`}function od(t,e){if(t.length===0||e>=t.length)return 0;const r=Math.max(0,e);let n=0;for(let a=r;a<t.length;a++)t[a].isPushed||n++;return n}function ld(t,e){if(t.length===0||e<0)return 0;const r=Math.min(e,t.length-1);let n=0;for(let a=0;a<=r;a++)t[a].isPushed&&n++;return n}function cd(t,e){if(t.length===0||e<0)return 0;const r=Math.min(e,t.length-1);let n=0;for(let a=0;a<=r;a++)t[a].isPushed||n++;return n}function a3(t,e,r,n){const a=od(t,e),i=n?` (origin/${n})`:"";return r?a===1?ne.workspace_sidebarChanges_addToPr_one({suffix:i}):ne.workspace_sidebarChanges_addToPr_many({count:rt(a),suffix:i}):a===1?ne.workspace_sidebarChanges_pushToRemote_one({suffix:i}):ne.workspace_sidebarChanges_pushToRemote_many({count:rt(a),suffix:i})}function i3(t,e,r){const n=ld(t,e),a=r?` (origin/${r})`:"";return n===1?ne.workspace_sidebarChanges_undoPush_one({suffix:a}):ne.workspace_sidebarChanges_undoPush_many({count:rt(n),suffix:a})}function s3(t,e){const r=cd(t,e);return r===1?ne.workspace_sidebarChanges_undoCommit_one():ne.workspace_sidebarChanges_undoCommit_many({count:rt(r)})}function o3(t,e){return e===0&&t.length>0}function l3(t,e,r,n){return!r||n==null?!1:t===r&&e===n}function c3(t,e,r){const n=`${e?"staged":"unstaged"}:${t}`;return r.has(n)}function u3(t,e,r){return r?.path===t&&r?.staged===e}function d3(t){if(t.length===0)return[];const e=new Map,r=[...t].sort((n,a)=>n.timestamp-a.timestamp);for(const n of r)for(const a of n.files??[]){const i=e.get(a.path);i?e.set(a.path,{additions:i.additions+(a.additions||0),deletions:i.deletions+(a.deletions||0)}):e.set(a.path,{additions:a.additions||0,deletions:a.deletions||0})}return Array.from(e.entries()).map(([n,a])=>({path:n,additions:a.additions,deletions:a.deletions,staged:!1}))}function h3(t,e,r){const n=new Set;let a=0,i=0;for(const s of t)n.add(s.relativePath),a+=s.stats?.additions||0,i+=s.stats?.deletions||0;for(const s of e)n.add(s.relativePath),a+=s.stats?.additions||0,i+=s.stats?.deletions||0;for(const s of r)for(const o of s.files||[])n.add(o.path),a+=o.additions||0,i+=o.deletions||0;return{totalFilesChanged:n.size,totalAdditions:a,totalDeletions:i}}function ud(t){const e=t?.match(/^https?:\/\/github\.com\/([^/]+)\/([^/]+)\/pull\/\d+/i);return e?`${e[1]}/${e[2]}`:void 0}function p3(t,e,r,n,a){if(t&&t.length>0){const i=a?.split("/")[0];return t.map(s=>{const o=s.url||r(s.number),c=ud(s.url),d=c!==void 0&&c.toLowerCase()!==a?.toLowerCase()?c:void 0;return{number:s.number,title:n(s),url:o,htmlUrl:o,status:Za(s.status),createdAt:s.createdAt,updatedAt:s.updatedAt,isInMergeQueue:s.isDraft?void 0:s.isInMergeQueue,crossRepo:d,crossRepoDisplay:d?zi(d,i):void 0}})}return e?[{number:e.number,title:n(e),url:r(e.number,e.url),htmlUrl:r(e.number,e.url),status:Za(e.status),createdAt:e.createdAt,updatedAt:e.updatedAt,isInMergeQueue:e.isDraft?void 0:e.isInMergeQueue}]:[]}function m3(t){const{prNumber:e,prUrl:r}=t;return e==null||!r?null:{id:`legacy-pr-${e}`,number:e,url:r,title:"",status:t.prStatus??C1.Open,createdAt:t.updatedAt,updatedAt:t.updatedAt}}function dd(t){const e=t.lastSnapshot?.state?.toLowerCase();return e==="merged"?"merged":e==="closed"?"closed":t.lastSnapshot?.isDraft?"draft":t.state==="completed"?"closed":"open"}function xa(t,e,r){if(e.length===0)return t;const n=r?.split("/")[0],a=t.map(i=>({...i}));for(const i of e){const s=!i.resource&&!i.monitorAvailability&&(!r||i.repo===r),o=R0(i),c=o.toLowerCase(),d=a.find(p=>!!o&&p.url.toLowerCase()===c||(i.resource||i.monitorAvailability?p.monitorIdentity===ya(i):!p.resource&&!p.monitorAvailability&&(s?!p.crossRepo&&p.number===i.prNumber:p.crossRepo===i.repo&&p.number===i.prNumber)));if(d){d.monitorAgentId=i.agentId,d.resource=i.resource,d.monitorAvailability=i.monitorAvailability,d.monitorIdentity=i.resource||i.monitorAvailability?ya(i):void 0,d.monitorSnapshot=i.lastSnapshot??d.monitorSnapshot;continue}a.push({number:i.prNumber,title:i.title??`${i.repo}${o1(i,i.prNumber)}`,resource:i.resource,monitorAvailability:i.monitorAvailability,monitorIdentity:i.resource||i.monitorAvailability?ya(i):void 0,url:o,htmlUrl:o,status:dd(i),createdAt:i.createdAt,updatedAt:i.updatedAt,monitorAgentId:i.agentId,crossRepo:s?void 0:i.repo,crossRepoDisplay:s?void 0:zi(i.repo,n),monitorSnapshot:i.lastSnapshot,monitorOnly:!0})}return a}function zi(t,e){return e&&t.toLowerCase().startsWith(`${e.toLowerCase()}/`)?t.slice(e.length+1):t}function f3(t,e,r,n,a){const i=r?.toLowerCase(),s=new Set;for(const S of n)S.repoOwner&&S.repoName&&s.add(`${S.repoOwner}/${S.repoName}`.toLowerCase());let o=t;const c=[],d=[];if(t.some(S=>S.crossRepo)){o=[];for(const S of t)S.crossRepo?s.has(S.crossRepo.toLowerCase())?c.push(S):d.push(S):o.push(S)}const p=[],g=[],v=[];for(const S of e){const C=S.repo.toLowerCase();R0(S)&&o.some(W=>W.url===R0(S))||!S.resource&&!S.monitorAvailability&&(!i||C===i)?p.push(S):R0(S)&&c.some(W=>W.url===R0(S))||!S.resource&&!S.monitorAvailability&&s.has(C)?g.push(S):v.push(S)}const w=xa(o,p,r),A=r?.split("/")[0],M=new Set([...w,...c,...d].map(S=>`${(S.crossRepo??r??"").toLowerCase()}#${S.number}`)),D=[...c];for(const S of n){if(!S.repoOwner||!S.repoName)continue;const C=`${S.repoOwner}/${S.repoName}`;for(const W of S.pullRequests??[]){const K=`${C.toLowerCase()}#${W.number}`;if(M.has(K))continue;M.add(K);const Y=W.url||`https://github.com/${C}/pull/${W.number}`,T=i!==void 0&&C.toLowerCase()===i;D.push({number:W.number,title:a(W),url:Y,htmlUrl:Y,status:Za(W.status),createdAt:W.createdAt,updatedAt:W.updatedAt,crossRepo:T?void 0:C,crossRepoDisplay:T?void 0:zi(C,A)})}}return{own:w,otherRoots:xa(D,g,r),otherTracked:xa(d,v,r)}}function Fs(t){return t.status!=="open"?!1:t.monitorSnapshot?t.monitorSnapshot.isInMergeQueue===!0:t.isInMergeQueue===!0}function g3(t){const e=t.status==="merged"?ne.workspace_prSection_merged_label():t.status==="closed"?ne.workspace_prSection_closed_label():t.status==="draft"?ne.workspace_prSection_statusDraft_label():Fs(t)?ne.workspace_prSection_statusQueued_label():ne.workspace_prSection_statusOpen_label(),r=[l1(t)??e],n=Fs(t)?O1(t.monitorSnapshot?.mergeQueue):null;n&&r.push(n);const a=t.status==="merged"||t.status==="closed"?void 0:t.monitorSnapshot;return a&&(a.checks.total===null||a.checks.passed===null||a.checks.failed===null||a.checks.pending===null||a.availability&&a.availability.checks!=="available"?r.push(ne.chat_monitoredPrs_hover_checksUnknown_label()):a.checks.total>0&&r.push(ne.workspace_prSection_statusChecks_tooltip({passed:rt(a.checks.passed),failed:rt(a.checks.failed),pending:rt(a.checks.pending)})),r.push(a.approvals.have===null||a.availability&&a.availability.approvals!=="available"?ne.chat_monitoredPrs_hover_approvalsUnknown_label():a.approvals.needed!=null?ne.workspace_prSection_statusApprovalsOfNeeded_tooltip({count:rt(a.approvals.have),needed:rt(a.approvals.needed)}):ne.workspace_prSection_statusApprovals_tooltip({count:rt(a.approvals.have)})),a.approvals.changesRequested!==null&&a.approvals.changesRequested>0&&r.push(ne.workspace_prSection_statusChangesRequested_tooltip({count:rt(a.approvals.changesRequested)})),a.availability&&a.availability.discussions!=="available"?r.push(ne.workspace_prSection_statusUnresolvedThreadsUnknown_tooltip()):typeof a.threads.unresolved=="number"?a.threads.unresolved>0&&r.push(ne.workspace_prSection_statusUnresolvedThreads_tooltip({count:rt(a.threads.unresolved)})):a.threads.resolutionRequired&&r.push(ne.workspace_prSection_statusUnresolvedThreadsUnknown_tooltip()),a.mergeBlockedReason&&r.push(sd(a.mergeBlockedReason))),r.join(`
2
+ `)}function v3(t,e){return e.has(t??"manual")}function b3(t,e){return{path:t.relativePath,additions:t.stats.additions,deletions:t.stats.deletions,staged:e,status:t.status,attribution:t.attribution?.agent?{agentId:t.attribution.agent.agentId,agentName:t.attribution.agent.agentName,sessionId:t.attribution.agent.sessionId,turnNumber:t.attribution.agent.turnNumber,timestamp:t.attribution.timestamp}:void 0}}const Vl=500;function y3(t,e=Vl){const r=Math.max(0,Math.floor(e));return t.length<=r?{visible:t,shown:t.length,hiddenCount:0}:{visible:t.slice(0,r),shown:r,hiddenCount:t.length-r}}function w3(t,e,r=Vl){let n=Math.max(0,Math.floor(r)),a=0,i=0;return{groups:t.map(o=>{if(e(o))return{group:o,visibleFiles:[]};const c=Math.min(n,o.files.length);return n-=c,a+=c,i+=o.files.length-c,{group:o,visibleFiles:c===o.files.length?o.files:o.files.slice(0,c)}}),shown:a,hiddenCount:i}}function k3(t){if(t.hiddenCount<=0)return"";const e=rt(t.shown),r=rt(t.shown+t.hiddenCount);return t.hiddenCount===1?ne.workspace_fileChanges_hiddenFiles_one({shown:e,total:r}):ne.workspace_fileChanges_hiddenFiles_many({shown:e,total:r,count:rt(t.hiddenCount)})}function hd(t){if(!t)return{};try{const e=JSON.parse(t);return e&&typeof e=="object"?e:{}}catch{return{}}}function Qa(t){return t.startsWith("@")?t.slice(1):t}function pd(t,e,r,n){const a=t.fullPath||t.path||t.filename;if(a)return Qa(String(a));const i=[r,e,n.trim()].map(Qa).filter(Boolean),s=i.find(o=>o.includes("/"))??i[0];return s?c1(s).path:void 0}function md(t){const e=t.line??t.startLine??t.range?.start;return typeof e=="number"&&Number.isFinite(e)?e:void 0}function fd(t){if(!t||t.getAttribute("data-mention")===null)return null;const e=t.getAttribute("data-type")||"",r=t.getAttribute("data-id")||"",n=t.getAttribute("data-label")||"",a=t.getAttribute("data-uri")||"",i=hd(t.getAttribute("data-meta")),s={type:e,id:r,label:n,uri:a,meta:i},o=a.startsWith("intent://")?a:typeof i.fullUrl=="string"&&i.fullUrl.startsWith("intent://")?i.fullUrl:void 0;if(o&&(s.intentUrl=o),e==="file"||e==="file-range"){const c=pd(i,n,r,t.textContent||"");c&&(s.filePath=c);const d=md(i);d!==void 0&&(s.line=d)}else if(e==="folder"||e==="source-folder"){const c=i.fullPath||i.path||r||n,d=c?Qa(String(c)).replace(/\/+$/,""):"";d&&(s.folderPath=d)}else if(e==="note"||e==="note-range"){const c=i.noteId||r;c&&(s.note=i.isExternalLink&&i.workspaceId?{id:c,workspaceId:String(i.workspaceId)}:{id:c})}return s}function x3(t){return{sidebarTabId:"files",type:"file",filePath:`${t}/`}}function Ri(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}var Pr=Ri();function Xl(t){Pr=t}var Ir={exec:()=>null};function Yr(t){let e=[];return r=>{let n=Math.max(0,Math.min(3,r-1)),a=e[n];return a||(a=t(n),e[n]=a),a}}function ce(t,e=""){let r=typeof t=="string"?t:t.source,n={replace:(a,i)=>{let s=typeof i=="string"?i:i.source;return s=s.replace(Xe.caret,"$1"),r=r.replace(a,s),n},getRegex:()=>new RegExp(r,e)};return n}var gd=((t="")=>{try{return!!new RegExp("(?<=1)(?<!1)"+t)}catch{return!1}})(),Xe={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,listReplaceNesting:/^ {1,4}(?=( {4})*[^ ])/g,listIsTask:/^\[[ xX]\] +\S/,listReplaceTask:/^\[[ xX]\] +/,listTaskCheckbox:/\[[ 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,caret:/(^|[^\[])\^/g,percentDecode:/%25/g,findPipe:/\|/g,splitPipe:/ \|/,slashPipe:/\\\|/g,carriageReturn:/\r\n|\r/g,spaceLine:/^ +$/gm,notSpaceStart:/^\S*/,endingNewline:/\n$/,listItemRegex:t=>new RegExp(`^( {0,3}${t})((?:[ ][^\\n]*)?(?:\\n|$))`),nextBulletRegex:Yr(t=>new RegExp(`^ {0,${t}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`)),hrRegex:Yr(t=>new RegExp(`^ {0,${t}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`)),fencesBeginRegex:Yr(t=>new RegExp(`^ {0,${t}}(?:\`\`\`|~~~)`)),headingBeginRegex:Yr(t=>new RegExp(`^ {0,${t}}#`)),htmlBeginRegex:Yr(t=>new RegExp(`^ {0,${t}}<(?:[a-z].*>|!--)`,"i")),blockquoteBeginRegex:Yr(t=>new RegExp(`^ {0,${t}}>`))},vd=/^(?:[ \t]*(?:\n|$))+/,bd=/^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/,yd=/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,W0=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,wd=/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,Di=/ {0,3}(?:[*+-]|\d{1,9}[.)])/,Yl=/^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/,Kl=ce(Yl).replace(/bull/g,Di).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}(?:\s|$)/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/\|table/g,"").getRegex(),kd=ce(Yl).replace(/bull/g,Di).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}(?:\s|$)/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/table/g,/ {0,3}\|?(?:[:\- ]*\|)+[\:\- ]*\n/).getRegex(),Ni=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table|[ \t]+\n)[^\n]+)*)/,xd=/^[^\n]+/,_i=/(?!\s*\])(?:\\[\s\S]|[^\[\]\\])+/,Sd=ce(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label",_i).replace("title",/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),Ad=ce(/^(bull)([ \t][^\n]*?)?(?:\n|$)/).replace(/bull/g,Di).getRegex(),Hn="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",Li=/<!--(?:-?>|[\s\S]*?(?:-->|$))/,Td=ce("^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n*|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>[^\\n]*\\n*|$)|<![A-Z][\\s\\S]*?(?:>[^\\n]*\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>[^\\n]*\\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",Li).replace("tag",Hn).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),Zl=t=>ce(Ni).replace("hr",W0).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("|table","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*(?:\\n|$))|~~~)[^\\n]*(?:\\n|$)").replace("list",t).replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",Hn).getRegex(),Ed=Zl(/ {0,3}(?:[*+-]|1[.)])[ \t]+[^ \t\n]/),Md=Zl(/ {0,3}(?:[*+-]|\d{1,9}[.)])(?:[ \t]|\n|$)/),Cd=ce(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph",Md).getRegex(),Pi={blockquote:Cd,code:bd,def:Sd,fences:yd,heading:wd,hr:W0,html:Td,lheading:Kl,list:Ad,newline:vd,paragraph:Ed,table:Ir,text:xd},Hs=ce("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr",W0).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("blockquote"," {0,3}>").replace("code","(?: {4}| {0,3} )[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*(?:\\n|$))|~~~)[^\\n]*(?:\\n|$)").replace("list"," {0,3}(?:[*+-]|1[.)])[ \\t]").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",Hn).getRegex(),Id={...Pi,lheading:kd,table:Hs,paragraph:ce(Ni).replace("hr",W0).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("table",Hs).replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*(?:\\n|$))|~~~)[^\\n]*(?:\\n|$)").replace("list"," {0,3}(?:[*+-]|1[.)])[ \\t]+[^ \\t\\n]").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",Hn).getRegex()},zd={...Pi,html:ce(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",Li).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:Ir,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:ce(Ni).replace("hr",W0).replace("heading",` *#{1,6} *[^
3
+ ]`).replace("lheading",Kl).replace("|table","").replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").replace("|tag","").getRegex()},Rd=/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,Dd=/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,Ql=/^( {2,}|\\)\n(?!\s*$)/,Nd=/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,Vt=/[\p{P}\p{S}]/u,m0=/[\s\p{P}\p{S}]/u,G0=/[^\s\p{P}\p{S}]/u,_d=ce(/^((?![*_])punctSpace)/,"u").replace(/punctSpace/g,m0).getRegex(),Ld=/[\p{Pi}\p{Ps}"']/u,Jl=/(?!~)[\p{P}\p{S}]/u,Pd=/(?!~)[\s\p{P}\p{S}]/u,Od=/(?:[^\s\p{P}\p{S}]|~)/u,$d=ce(/link|precode-code|html/,"g").replace("link",/\[(?:[^\[\]`]|(?<a>`+)[^`]+\k<a>(?!`))*?\]\((?:\\[\s\S]|[^\\\(\)]|\((?:\\[\s\S]|[^\\\(\)])*\))*\)/).replace("precode-",gd?"(?<!`)()":"(^^|[^`])").replace("code",/(?<b>`+)[^`]+\k<b>(?!`)/).replace("html",/<(?! )[^<>]*?>/).getRegex(),ec=/^(?:\*+(?:((?!\*)punct)|([^\s*]))?)|^_+(?:((?!_)punct)|([^\s_]))?/,Bd=ce(ec,"u").replace(/punct/g,Vt).getRegex(),qd=ce(ec,"u").replace(/punct/g,Jl).getRegex(),Fd=/^(?:\*+(?:((?!\*)(?!openQuote)punct)|([^\s*]))?)|^_+(?:((?!_)(?!openQuote)punct)|([^\s_]))?/,Hd=ce(Fd,"u").replace(/openQuote/g,Ld).replace(/punct/g,Vt).getRegex(),tc="^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)",Ud=ce(tc,"gu").replace(/notPunctSpace/g,G0).replace(/punctSpace/g,m0).replace(/punct/g,Vt).getRegex(),Wd=ce(tc,"gu").replace(/notPunctSpace/g,Od).replace(/punctSpace/g,Pd).replace(/punct/g,Jl).getRegex(),Gd="^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)[\\s](\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|(?:(?!\\*)punct|notPunctSpace)(\\*+)(?!\\*)(?=notPunctSpace)",jd=ce(Gd,"gu").replace(/notPunctSpace/g,G0).replace(/punctSpace/g,m0).replace(/punct/g,Vt).getRegex(),Vd=ce("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)","gu").replace(/notPunctSpace/g,G0).replace(/punctSpace/g,m0).replace(/punct/g,Vt).getRegex(),Xd="^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)[\\s](_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)|(?:(?!_)punct|notPunctSpace)(_+)(?!_)(?=notPunctSpace)",Yd=ce(Xd,"gu").replace(/notPunctSpace/g,G0).replace(/punctSpace/g,m0).replace(/punct/g,Vt).getRegex(),Kd=ce(/^~~?(?:((?!~)punct)|[^\s~])/,"u").replace(/punct/g,Vt).getRegex(),Zd="^[^~]+(?=[^~])|(?!~)punct(~~?)(?=[\\s]|$)|notPunctSpace(~~?)(?!~)(?=punctSpace|$)|(?!~)punctSpace(~~?)(?=notPunctSpace)|[\\s](~~?)(?!~)(?=punct)|(?!~)punct(~~?)(?!~)(?=punct)|notPunctSpace(~~?)(?=notPunctSpace)",Qd=ce(Zd,"gu").replace(/notPunctSpace/g,G0).replace(/punctSpace/g,m0).replace(/punct/g,Vt).getRegex(),Jd=ce(/\\(punct)/,"gu").replace(/punct/g,Vt).getRegex(),eh=ce(/^<(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(),th=ce(Li).replace("(?:-->|$)","-->").getRegex(),rh=ce("^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",th).replace("attribute",/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(),Ln=/(?:\[(?:\\[\s\S]|[^\[\]\\])*\]|\\[\s\S]|`+(?!`)[^`]*?`+(?!`)|``+(?=\])|[^\[\]\\`])*?/,nh=ce(/^!?\[(label)\]\(\s*(href)(?:(?:[ \t]+(?:\n[ \t]*)?|\n[ \t]*)(title))?\s*\)/).replace("label",Ln).replace("href",/<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]+|(?=\))/).replace("title",/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(),rc=ce(/^!?\[(label)\]\[(ref)\]/).replace("label",Ln).replace("ref",_i).getRegex(),nc=ce(/^!?\[(ref)\](?:\[\])?/).replace("ref",_i).getRegex(),ah=ce("reflink|nolink(?!\\()","g").replace("reflink",rc).replace("nolink",nc).getRegex(),Us=/[hH][tT][tT][pP][sS]?|[fF][tT][pP]/,Oi={_backpedal:Ir,anyPunctuation:Jd,autolink:eh,blockSkip:$d,br:Ql,code:Dd,del:Ir,delLDelim:Ir,delRDelim:Ir,emStrongLDelim:Bd,emStrongRDelimAst:Ud,emStrongRDelimUnd:Vd,escape:Rd,link:nh,nolink:nc,punctuation:_d,reflink:rc,reflinkSearch:ah,tag:rh,text:Nd,url:Ir},ih={...Oi,emStrongLDelim:Hd,emStrongRDelimAst:jd,emStrongRDelimUnd:Yd,link:ce(/^!?\[(label)\]\((.*?)\)/).replace("label",Ln).getRegex(),reflink:ce(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",Ln).getRegex()},Ja={...Oi,emStrongRDelimAst:Wd,emStrongLDelim:qd,delLDelim:Kd,delRDelim:Qd,url:ce(/^((?:protocol):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/).replace("protocol",Us).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:ce(/^(`+|~+|[^`~])(?:(?=[`~])|(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|protocol:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/).replace("protocol",Us).getRegex()},sh={...Ja,br:ce(Ql).replace("{2,}","*").getRegex(),text:ce(Ja.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()},wn={normal:Pi,gfm:Id,pedantic:zd},S0={normal:Oi,gfm:Ja,breaks:sh,pedantic:ih},oh={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},Ws=t=>oh[t];function Dt(t,e){if(e){if(Xe.escapeTest.test(t))return t.replace(Xe.escapeReplace,Ws)}else if(Xe.escapeTestNoEncode.test(t))return t.replace(Xe.escapeReplaceNoEncode,Ws);return t}function Gs(t){try{t=encodeURI(t).replace(Xe.percentDecode,"%")}catch{return null}return t}function js(t,e){let r=t.replace(Xe.findPipe,(i,s,o)=>{let c=!1,d=s;for(;--d>=0&&o[d]==="\\";)c=!c;return c?"|":" |"}),n=r.split(Xe.splitPipe),a=0;if(n[0].trim()||n.shift(),n.length>0&&!n.at(-1)?.trim()&&n.pop(),e)if(n.length>e)n.splice(e);else for(;n.length<e;)n.push("");for(;a<n.length;a++)n[a]=n[a].trim().replace(Xe.slashPipe,"|");return n}function tr(t,e,r){let n=t.length;if(n===0)return"";let a=0;for(;a<n&&t.charAt(n-a-1)===e;)a++;return t.slice(0,n-a)}function Vs(t){let e=t.split(`
4
+ `),r=e.length-1;for(;r>=0&&Xe.blankLine.test(e[r]);)r--;return e.length-r<=2?t:e.slice(0,r+1).join(`
5
+ `)}function lh(t,e){if(t.indexOf(e[1])===-1)return-1;let r=0;for(let n=0;n<t.length;n++)if(t[n]==="\\")n++;else if(t[n]===e[0])r++;else if(t[n]===e[1]&&(r--,r<0))return n;return r>0?-2:-1}function ch(t,e=0){let r=e,n="";for(let a of t)if(a===" "){let i=4-r%4;n+=" ".repeat(i),r+=i}else n+=a,r++;return n}function Xs(t,e,r,n,a){let i=e.href,s=e.title||null,o=t[1].replace(a.other.outputLinkReplace,"$1"),c=t[0].charAt(0)==="!";n.state.inLink=!0;let d=n.state.linkEmitted,p=n.state.inRawBlock;n.state.linkEmitted=!1;let g=n.inlineTokens(o),v=n.state.linkEmitted;if(n.state.linkEmitted=d,n.state.inLink=!1,!c){if(v){n.state.inRawBlock=p;return}n.state.linkEmitted=!0}return{type:c?"image":"link",raw:r,href:i,title:s,text:o,tokens:g}}function uh(t,e,r){let n=t.match(r.other.indentCodeCompensation);if(n===null)return e;let a=n[1];return e.split(`
6
6
  `).map(i=>{let s=i.match(r.other.beginningSpace);if(s===null)return i;let[o]=s;return o.length>=a.length?i.slice(a.length):i}).join(`
7
7
  `)}var $0=class{constructor(t){se(this,"options");se(this,"rules");se(this,"lexer");this.options=t||Pr}space(t){let e=this.rules.block.newline.exec(t);if(e&&e[0].length>0)return{type:"space",raw:e[0]}}code(t){let e=this.rules.block.code.exec(t);if(e){let r=this.options.pedantic?e[0]:Vs(e[0]),n=r.replace(this.rules.other.codeRemoveIndent,"");return{type:"code",raw:r,codeBlockStyle:"indented",text:n}}}fences(t){let e=this.rules.block.fences.exec(t);if(e){let r=e[0],n=uh(r,e[3]||"",this.rules);return{type:"code",raw:r,lang:e[2]?e[2].trim().replace(this.rules.inline.anyPunctuation,"$1"):e[2],text:n}}}heading(t){let e=this.rules.block.heading.exec(t);if(e){let r=e[2].trim();if(this.rules.other.endingHash.test(r)){let n=tr(r,"#");(this.options.pedantic||!n||this.rules.other.endingSpaceChar.test(n))&&(r=n.trim())}return{type:"heading",raw:tr(e[0],`
8
8
  `),depth:e[1].length,text:r,tokens:this.lexer.inline(r)}}}hr(t){let e=this.rules.block.hr.exec(t);if(e)return{type:"hr",raw:tr(e[0],`
@@ -21,17 +21,17 @@ ${A}`,a=a.substring(0,a.length-w.text.length)+D.text;break}else if(v?.type==="li
21
21
  `);continue}}return{type:"blockquote",raw:n,tokens:i,text:a}}}list(t){let e=this.rules.block.list.exec(t);if(e){let r=e[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(;t;){let c=!1,d="",p="";if(!(e=i.exec(t))||this.rules.block.hr.test(t))break;d=e[0],t=t.substring(d.length);let g=ch(e[2].split(`
22
22
  `,1)[0],e[1].length),v=t.split(`
23
23
  `,1)[0],w=!g.trim(),A=0;if(this.options.pedantic?(A=2,p=g.trimStart()):w?A=e[1].length+1:(A=g.search(this.rules.other.nonSpaceChar),A=A>4?1:A,p=g.slice(A),A+=e[1].length),w&&this.rules.other.blankLine.test(v)&&(d+=v+`
24
- `,t=t.substring(v.length+1),c=!0),!c){let M=this.rules.other.nextBulletRegex(A),D=this.rules.other.hrRegex(A),S=this.rules.other.fencesBeginRegex(A),C=this.rules.other.headingBeginRegex(A),W=this.rules.other.htmlBeginRegex(A),K=this.rules.other.blockquoteBeginRegex(A);for(;t;){let X=t.split(`
25
- `,1)[0],T;if(v=X,this.options.pedantic?(v=v.replace(this.rules.other.listReplaceNesting," "),T=v):T=v.replace(this.rules.other.tabCharGlobal," "),S.test(v)||C.test(v)||W.test(v)||K.test(v)||M.test(v)||D.test(v))break;if(T.search(this.rules.other.nonSpaceChar)>=A||!v.trim())p+=`
24
+ `,t=t.substring(v.length+1),c=!0),!c){let M=this.rules.other.nextBulletRegex(A),D=this.rules.other.hrRegex(A),S=this.rules.other.fencesBeginRegex(A),C=this.rules.other.headingBeginRegex(A),W=this.rules.other.htmlBeginRegex(A),K=this.rules.other.blockquoteBeginRegex(A);for(;t;){let Y=t.split(`
25
+ `,1)[0],T;if(v=Y,this.options.pedantic?(v=v.replace(this.rules.other.listReplaceNesting," "),T=v):T=v.replace(this.rules.other.tabCharGlobal," "),S.test(v)||C.test(v)||W.test(v)||K.test(v)||M.test(v)||D.test(v))break;if(T.search(this.rules.other.nonSpaceChar)>=A||!v.trim())p+=`
26
26
  `+T.slice(A);else{if(w||g.replace(this.rules.other.tabCharGlobal," ").search(this.rules.other.nonSpaceChar)>=4||S.test(g)||C.test(g)||D.test(g))break;p+=`
27
- `+v}w=!v.trim(),d+=X+`
28
- `,t=t.substring(X.length+1),g=T.slice(A)}}a.loose||(s?a.loose=!0:this.rules.other.doubleBlankLine.test(d)&&(s=!0)),a.items.push({type:"list_item",raw:d,task:!!this.options.gfm&&this.rules.other.listIsTask.test(p),loose:!1,text:p,tokens:[]}),a.raw+=d}let o=a.items.at(-1);if(o)o.raw=o.raw.trimEnd(),o.text=o.text.trimEnd();else return;a.raw=a.raw.trimEnd();for(let c of a.items)if(this.lexer.state.top=!1,c.tokens=this.lexer.blockTokens(c.text,[]),!a.loose){let d=c.tokens.filter(g=>g.type==="space"),p=d.length>0&&d.some(g=>this.rules.other.anyLine.test(g.raw));a.loose=p}for(let c of a.items){let d=c.tokens[0];if(c.task&&(d?.type==="text"||d?.type==="paragraph")){c.text=c.text.replace(this.rules.other.listReplaceTask,""),d.raw=d.raw.replace(this.rules.other.listReplaceTask,""),d.text=d.text.replace(this.rules.other.listReplaceTask,"");for(let g=this.lexer.inlineQueue.length-1;g>=0;g--)if(this.rules.other.listIsTask.test(this.lexer.inlineQueue[g].src)){this.lexer.inlineQueue[g].src=this.lexer.inlineQueue[g].src.replace(this.rules.other.listReplaceTask,"");break}let p=this.rules.other.listTaskCheckbox.exec(c.raw);if(p){let g={type:"checkbox",raw:p[0]+" ",checked:p[0]!=="[ ]"};c.checked=g.checked,a.loose?c.tokens[0]&&["paragraph","text"].includes(c.tokens[0].type)&&"tokens"in c.tokens[0]&&c.tokens[0].tokens?(c.tokens[0].raw=g.raw+c.tokens[0].raw,c.tokens[0].text=g.raw+c.tokens[0].text,c.tokens[0].tokens.unshift(g)):c.tokens.unshift({type:"paragraph",raw:g.raw,text:g.raw,tokens:[g]}):c.tokens.unshift(g)}}else c.task&&(c.task=!1)}if(a.loose)for(let c of a.items){c.loose=!0;for(let d of c.tokens)d.type==="text"&&(d.type="paragraph")}return a}}html(t){let e=this.rules.block.html.exec(t);if(e){let r=Vs(e[0]);return{type:"html",block:!0,raw:r,pre:e[1]==="pre"||e[1]==="script"||e[1]==="style",text:r}}}def(t){let e=this.rules.block.def.exec(t);if(e){let r=e[1].toLowerCase().replace(this.rules.other.multipleSpaceGlobal," "),n=e[2]?e[2].replace(this.rules.other.hrefBrackets,"$1").replace(this.rules.inline.anyPunctuation,"$1"):"",a=e[3]?e[3].substring(1,e[3].length-1).replace(this.rules.inline.anyPunctuation,"$1"):e[3];return{type:"def",tag:r,raw:tr(e[0],`
27
+ `+v}w=!v.trim(),d+=Y+`
28
+ `,t=t.substring(Y.length+1),g=T.slice(A)}}a.loose||(s?a.loose=!0:this.rules.other.doubleBlankLine.test(d)&&(s=!0)),a.items.push({type:"list_item",raw:d,task:!!this.options.gfm&&this.rules.other.listIsTask.test(p),loose:!1,text:p,tokens:[]}),a.raw+=d}let o=a.items.at(-1);if(o)o.raw=o.raw.trimEnd(),o.text=o.text.trimEnd();else return;a.raw=a.raw.trimEnd();for(let c of a.items)if(this.lexer.state.top=!1,c.tokens=this.lexer.blockTokens(c.text,[]),!a.loose){let d=c.tokens.filter(g=>g.type==="space"),p=d.length>0&&d.some(g=>this.rules.other.anyLine.test(g.raw));a.loose=p}for(let c of a.items){let d=c.tokens[0];if(c.task&&(d?.type==="text"||d?.type==="paragraph")){c.text=c.text.replace(this.rules.other.listReplaceTask,""),d.raw=d.raw.replace(this.rules.other.listReplaceTask,""),d.text=d.text.replace(this.rules.other.listReplaceTask,"");for(let g=this.lexer.inlineQueue.length-1;g>=0;g--)if(this.rules.other.listIsTask.test(this.lexer.inlineQueue[g].src)){this.lexer.inlineQueue[g].src=this.lexer.inlineQueue[g].src.replace(this.rules.other.listReplaceTask,"");break}let p=this.rules.other.listTaskCheckbox.exec(c.raw);if(p){let g={type:"checkbox",raw:p[0]+" ",checked:p[0]!=="[ ]"};c.checked=g.checked,a.loose?c.tokens[0]&&["paragraph","text"].includes(c.tokens[0].type)&&"tokens"in c.tokens[0]&&c.tokens[0].tokens?(c.tokens[0].raw=g.raw+c.tokens[0].raw,c.tokens[0].text=g.raw+c.tokens[0].text,c.tokens[0].tokens.unshift(g)):c.tokens.unshift({type:"paragraph",raw:g.raw,text:g.raw,tokens:[g]}):c.tokens.unshift(g)}}else c.task&&(c.task=!1)}if(a.loose)for(let c of a.items){c.loose=!0;for(let d of c.tokens)d.type==="text"&&(d.type="paragraph")}return a}}html(t){let e=this.rules.block.html.exec(t);if(e){let r=Vs(e[0]);return{type:"html",block:!0,raw:r,pre:e[1]==="pre"||e[1]==="script"||e[1]==="style",text:r}}}def(t){let e=this.rules.block.def.exec(t);if(e){let r=e[1].toLowerCase().replace(this.rules.other.multipleSpaceGlobal," "),n=e[2]?e[2].replace(this.rules.other.hrefBrackets,"$1").replace(this.rules.inline.anyPunctuation,"$1"):"",a=e[3]?e[3].substring(1,e[3].length-1).replace(this.rules.inline.anyPunctuation,"$1"):e[3];return{type:"def",tag:r,raw:tr(e[0],`
29
29
  `),href:n,title:a}}}table(t){let e=this.rules.block.table.exec(t);if(!e||!this.rules.other.tableDelimiter.test(e[2]))return;let r=js(e[1]),n=e[2].replace(this.rules.other.tableAlignChars,"").split("|"),a=e[3]?.trim()?e[3].replace(this.rules.other.tableRowBlankLine,"").split(`
30
30
  `):[],i={type:"table",raw:tr(e[0],`
31
31
  `),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(js(s,i.header.length).map((o,c)=>({text:o,tokens:this.lexer.inline(o),header:!1,align:i.align[c]})));return i}}lheading(t){let e=this.rules.block.lheading.exec(t);if(e){let r=e[1].trim();return{type:"heading",raw:tr(e[0],`
32
32
  `),depth:e[2].charAt(0)==="="?1:2,text:r,tokens:this.lexer.inline(r)}}}paragraph(t){let e=this.rules.block.paragraph.exec(t);if(e){let r=e[1].charAt(e[1].length-1)===`
33
- `?e[1].slice(0,-1):e[1];return{type:"paragraph",raw:e[0],text:r,tokens:this.lexer.inline(r)}}}text(t){let e=this.rules.block.text.exec(t);if(e)return{type:"text",raw:e[0],text:e[0],tokens:this.lexer.inline(e[0])}}escape(t){let e=this.rules.inline.escape.exec(t);if(e)return{type:"escape",raw:e[0],text:e[1]}}tag(t){let e=this.rules.inline.tag.exec(t);if(e)return!this.lexer.state.inLink&&this.rules.other.startATag.test(e[0])?this.lexer.state.inLink=!0:this.lexer.state.inLink&&this.rules.other.endATag.test(e[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&this.rules.other.startPreScriptTag.test(e[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&this.rules.other.endPreScriptTag.test(e[0])&&(this.lexer.state.inRawBlock=!1),{type:"html",raw:e[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,block:!1,text:e[0]}}link(t){let e=this.rules.inline.link.exec(t);if(e){let r=e[2].trim();if(!this.options.pedantic&&this.rules.other.startAngleBracket.test(r)){if(!this.rules.other.endAngleBracket.test(r))return;let i=tr(r.slice(0,-1),"\\");if((r.length-i.length)%2===0)return}else{let i=lh(e[2],"()");if(i===-2)return;if(i>-1){let s=(e[0].indexOf("!")===0?5:4)+e[1].length+i;e[2]=e[2].substring(0,i),e[0]=e[0].substring(0,s).trim(),e[3]=""}}let n=e[2],a="";if(this.options.pedantic){let i=this.rules.other.pedanticHrefTitle.exec(n);i&&(n=i[1],a=i[3])}else a=e[3]?e[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)),Ys(e,{href:n&&n.replace(this.rules.inline.anyPunctuation,"$1"),title:a&&a.replace(this.rules.inline.anyPunctuation,"$1")},e[0],this.lexer,this.rules)}}reflink(t,e){let r;if((r=this.rules.inline.reflink.exec(t))||(r=this.rules.inline.nolink.exec(t))){let n=(r[2]||r[1]).replace(this.rules.other.multipleSpaceGlobal," "),a=e[n.toLowerCase()];if(!a){let i=r[0].charAt(0);return{type:"text",raw:i,text:i}}return Ys(r,a,r[0],this.lexer,this.rules)}}emStrong(t,e,r=""){let n=this.rules.inline.emStrongLDelim.exec(t);if(!(!n||!n[1]&&!n[2]&&!n[3]&&!n[4]||n[4]&&r.match(this.rules.other.unicodeAlphaNumeric))&&(!(n[1]||n[3])||!r||this.rules.inline.punctuation.exec(r))){let a=[...n[0]].length-1,i,s,o=a,c=0,d=n[0][0],p=r===d,g=d==="*"?this.rules.inline.emStrongRDelimAst:this.rules.inline.emStrongRDelimUnd;for(g.lastIndex=0,e=e.slice(-1*t.length+a);(n=g.exec(e))!==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]){o+=s;continue}else if(n[5]||n[6]){if(a%3&&!((a+s)%3)){c+=s;continue}if(p)break}if(o-=s,o>0)continue;s=Math.min(s,s+o+c);let v=[...n[0]][0].length,w=t.slice(0,a+n.index+v+s);if(Math.min(a,s)%2){let M=w.slice(1,-1);return{type:"em",raw:w,text:M,tokens:this.lexer.inlineTokens(M)}}let A=w.slice(2,-2);return{type:"strong",raw:w,text:A,tokens:this.lexer.inlineTokens(A)}}}}codespan(t){let e=this.rules.inline.code.exec(t);if(e){let r=e[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:e[0],text:r}}}br(t){let e=this.rules.inline.br.exec(t);if(e)return{type:"br",raw:e[0]}}del(t,e,r=""){let n=this.rules.inline.delLDelim.exec(t);if(n&&(!n[1]||!r||this.rules.inline.punctuation.exec(r))){let a=[...n[0]].length-1,i,s,o=a,c=this.rules.inline.delRDelim;for(c.lastIndex=0,e=e.slice(-1*t.length+a);(n=c.exec(e))!==null;){if(i=n[1]||n[2]||n[3]||n[4]||n[5]||n[6],!i||(s=[...i].length,s!==a))continue;if(n[3]||n[4]){o+=s;continue}if(o-=s,o>0)continue;s=Math.min(s,s+o);let d=[...n[0]][0].length,p=t.slice(0,a+n.index+d+s),g=p.slice(a,-a);return{type:"del",raw:p,text:g,tokens:this.lexer.inlineTokens(g)}}}}autolink(t){let e=this.rules.inline.autolink.exec(t);if(e){let r,n;return e[2]==="@"?(r=e[1],n="mailto:"+r):(r=e[1],n=r),{type:"link",raw:e[0],text:r,href:n,tokens:[{type:"text",raw:r,text:r}]}}}url(t){let e;if(e=this.rules.inline.url.exec(t)){let r,n;if(e[2]==="@")r=e[0],n="mailto:"+r;else{let a;do a=e[0],e[0]=this.rules.inline._backpedal.exec(e[0])?.[0]??"";while(a!==e[0]);r=e[0],e[1]==="www."?n="http://"+e[0]:n=e[0]}return{type:"link",raw:e[0],text:r,href:n,tokens:[{type:"text",raw:r,text:r}]}}}inlineText(t){let e=this.rules.inline.text.exec(t);if(e){let r=this.lexer.state.inRawBlock;return{type:"text",raw:e[0],text:e[0],escaped:r}}}},At=class ei{constructor(e){se(this,"tokens");se(this,"options");se(this,"state");se(this,"inlineQueue");se(this,"tokenizer");this.tokens=[],this.tokens.links=Object.create(null),this.options=e||Pr,this.options.tokenizer=this.options.tokenizer||new $0,this.tokenizer=this.options.tokenizer,this.tokenizer.options=this.options,this.tokenizer.lexer=this,this.inlineQueue=[],this.state={inLink:!1,inRawBlock:!1,linkEmitted:!1,top:!0};let r={other:Ye,block:wn.normal,inline:S0.normal};this.options.pedantic?(r.block=wn.pedantic,r.inline=S0.pedantic):this.options.gfm&&(r.block=wn.gfm,this.options.breaks?r.inline=S0.breaks:r.inline=S0.gfm),this.tokenizer.rules=r}static get rules(){return{block:wn,inline:S0}}static lex(e,r){return new ei(r).lex(e)}static lexInline(e,r){return new ei(r).inlineTokens(e)}lex(e){e=e.replace(Ye.carriageReturn,`
34
- `),this.blockTokens(e,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(e,r=[],n=!1){this.tokenizer.lexer=this,this.options.pedantic&&(e=e.replace(Ye.tabCharGlobal," ").replace(Ye.spaceLine,""));let a=1/0;for(;e;){if(e.length<a)a=e.length;else{this.infiniteLoopError(e.charCodeAt(0));break}let i;if(this.options.extensions?.block?.some(o=>(i=o.call({lexer:this},e,r))?(e=e.substring(i.raw.length),r.push(i),!0):!1))continue;if(i=this.tokenizer.space(e)){e=e.substring(i.raw.length);let o=r.at(-1);i.raw.length===1&&o!==void 0?o.raw+=`
33
+ `?e[1].slice(0,-1):e[1];return{type:"paragraph",raw:e[0],text:r,tokens:this.lexer.inline(r)}}}text(t){let e=this.rules.block.text.exec(t);if(e)return{type:"text",raw:e[0],text:e[0],tokens:this.lexer.inline(e[0])}}escape(t){let e=this.rules.inline.escape.exec(t);if(e)return{type:"escape",raw:e[0],text:e[1]}}tag(t){let e=this.rules.inline.tag.exec(t);if(e)return!this.lexer.state.inLink&&this.rules.other.startATag.test(e[0])?this.lexer.state.inLink=!0:this.lexer.state.inLink&&this.rules.other.endATag.test(e[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&this.rules.other.startPreScriptTag.test(e[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&this.rules.other.endPreScriptTag.test(e[0])&&(this.lexer.state.inRawBlock=!1),{type:"html",raw:e[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,block:!1,text:e[0]}}link(t){let e=this.rules.inline.link.exec(t);if(e){let r=e[2].trim();if(!this.options.pedantic&&this.rules.other.startAngleBracket.test(r)){if(!this.rules.other.endAngleBracket.test(r))return;let i=tr(r.slice(0,-1),"\\");if((r.length-i.length)%2===0)return}else{let i=lh(e[2],"()");if(i===-2)return;if(i>-1){let s=(e[0].indexOf("!")===0?5:4)+e[1].length+i;e[2]=e[2].substring(0,i),e[0]=e[0].substring(0,s).trim(),e[3]=""}}let n=e[2],a="";if(this.options.pedantic){let i=this.rules.other.pedanticHrefTitle.exec(n);i&&(n=i[1],a=i[3])}else a=e[3]?e[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)),Xs(e,{href:n&&n.replace(this.rules.inline.anyPunctuation,"$1"),title:a&&a.replace(this.rules.inline.anyPunctuation,"$1")},e[0],this.lexer,this.rules)}}reflink(t,e){let r;if((r=this.rules.inline.reflink.exec(t))||(r=this.rules.inline.nolink.exec(t))){let n=(r[2]||r[1]).replace(this.rules.other.multipleSpaceGlobal," "),a=e[n.toLowerCase()];if(!a){let i=r[0].charAt(0);return{type:"text",raw:i,text:i}}return Xs(r,a,r[0],this.lexer,this.rules)}}emStrong(t,e,r=""){let n=this.rules.inline.emStrongLDelim.exec(t);if(!(!n||!n[1]&&!n[2]&&!n[3]&&!n[4]||n[4]&&r.match(this.rules.other.unicodeAlphaNumeric))&&(!(n[1]||n[3])||!r||this.rules.inline.punctuation.exec(r))){let a=[...n[0]].length-1,i,s,o=a,c=0,d=n[0][0],p=r===d,g=d==="*"?this.rules.inline.emStrongRDelimAst:this.rules.inline.emStrongRDelimUnd;for(g.lastIndex=0,e=e.slice(-1*t.length+a);(n=g.exec(e))!==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]){o+=s;continue}else if(n[5]||n[6]){if(a%3&&!((a+s)%3)){c+=s;continue}if(p)break}if(o-=s,o>0)continue;s=Math.min(s,s+o+c);let v=[...n[0]][0].length,w=t.slice(0,a+n.index+v+s);if(Math.min(a,s)%2){let M=w.slice(1,-1);return{type:"em",raw:w,text:M,tokens:this.lexer.inlineTokens(M)}}let A=w.slice(2,-2);return{type:"strong",raw:w,text:A,tokens:this.lexer.inlineTokens(A)}}}}codespan(t){let e=this.rules.inline.code.exec(t);if(e){let r=e[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:e[0],text:r}}}br(t){let e=this.rules.inline.br.exec(t);if(e)return{type:"br",raw:e[0]}}del(t,e,r=""){let n=this.rules.inline.delLDelim.exec(t);if(n&&(!n[1]||!r||this.rules.inline.punctuation.exec(r))){let a=[...n[0]].length-1,i,s,o=a,c=this.rules.inline.delRDelim;for(c.lastIndex=0,e=e.slice(-1*t.length+a);(n=c.exec(e))!==null;){if(i=n[1]||n[2]||n[3]||n[4]||n[5]||n[6],!i||(s=[...i].length,s!==a))continue;if(n[3]||n[4]){o+=s;continue}if(o-=s,o>0)continue;s=Math.min(s,s+o);let d=[...n[0]][0].length,p=t.slice(0,a+n.index+d+s),g=p.slice(a,-a);return{type:"del",raw:p,text:g,tokens:this.lexer.inlineTokens(g)}}}}autolink(t){let e=this.rules.inline.autolink.exec(t);if(e){let r,n;return e[2]==="@"?(r=e[1],n="mailto:"+r):(r=e[1],n=r),{type:"link",raw:e[0],text:r,href:n,tokens:[{type:"text",raw:r,text:r}]}}}url(t){let e;if(e=this.rules.inline.url.exec(t)){let r,n;if(e[2]==="@")r=e[0],n="mailto:"+r;else{let a;do a=e[0],e[0]=this.rules.inline._backpedal.exec(e[0])?.[0]??"";while(a!==e[0]);r=e[0],e[1]==="www."?n="http://"+e[0]:n=e[0]}return{type:"link",raw:e[0],text:r,href:n,tokens:[{type:"text",raw:r,text:r}]}}}inlineText(t){let e=this.rules.inline.text.exec(t);if(e){let r=this.lexer.state.inRawBlock;return{type:"text",raw:e[0],text:e[0],escaped:r}}}},At=class ei{constructor(e){se(this,"tokens");se(this,"options");se(this,"state");se(this,"inlineQueue");se(this,"tokenizer");this.tokens=[],this.tokens.links=Object.create(null),this.options=e||Pr,this.options.tokenizer=this.options.tokenizer||new $0,this.tokenizer=this.options.tokenizer,this.tokenizer.options=this.options,this.tokenizer.lexer=this,this.inlineQueue=[],this.state={inLink:!1,inRawBlock:!1,linkEmitted:!1,top:!0};let r={other:Xe,block:wn.normal,inline:S0.normal};this.options.pedantic?(r.block=wn.pedantic,r.inline=S0.pedantic):this.options.gfm&&(r.block=wn.gfm,this.options.breaks?r.inline=S0.breaks:r.inline=S0.gfm),this.tokenizer.rules=r}static get rules(){return{block:wn,inline:S0}}static lex(e,r){return new ei(r).lex(e)}static lexInline(e,r){return new ei(r).inlineTokens(e)}lex(e){e=e.replace(Xe.carriageReturn,`
34
+ `),this.blockTokens(e,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(e,r=[],n=!1){this.tokenizer.lexer=this,this.options.pedantic&&(e=e.replace(Xe.tabCharGlobal," ").replace(Xe.spaceLine,""));let a=1/0;for(;e;){if(e.length<a)a=e.length;else{this.infiniteLoopError(e.charCodeAt(0));break}let i;if(this.options.extensions?.block?.some(o=>(i=o.call({lexer:this},e,r))?(e=e.substring(i.raw.length),r.push(i),!0):!1))continue;if(i=this.tokenizer.space(e)){e=e.substring(i.raw.length);let o=r.at(-1);i.raw.length===1&&o!==void 0?o.raw+=`
35
35
  `:r.push(i);continue}if(i=this.tokenizer.code(e)){e=e.substring(i.raw.length);let o=r.at(-1);o?.type==="paragraph"||o?.type==="text"?(o.raw+=(o.raw.endsWith(`
36
36
  `)?"":`
37
37
  `)+i.raw,o.text+=`
@@ -44,7 +44,7 @@ ${A}`,a=a.substring(0,a.length-w.text.length)+D.text;break}else if(v?.type==="li
44
44
  `+i.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=o.text):r.push(i),n=s.length!==e.length,e=e.substring(i.raw.length);continue}if(i=this.tokenizer.text(e)){e=e.substring(i.raw.length);let o=r.at(-1);o?.type==="text"?(o.raw+=(o.raw.endsWith(`
45
45
  `)?"":`
46
46
  `)+i.raw,o.text+=`
47
- `+i.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=o.text):r.push(i);continue}if(e){this.infiniteLoopError(e.charCodeAt(0));break}}return this.state.top=!0,r}inline(e,r=[]){return this.inlineQueue.push({src:e,tokens:r}),r}linkInText(e){if(!e.includes("["))return!1;let r=this.tokenizer.rules.inline.link;for(let n of e.matchAll(this.tokenizer.rules.inline.blockSkip))if(r.test(n[0])&&e.charAt(n.index-1)!=="!")return!0;for(let n of e.matchAll(this.tokenizer.rules.inline.reflinkSearch)){let a=n[0],i=a.lastIndexOf("[");if(!(a.charAt(0)==="!"||!Object.hasOwn(this.tokens.links,a.slice(i+1,-1)))&&!(i>1&&this.linkInText(a.slice(1,i-1))))return!0}return!1}inlineTokens(e,r=[]){this.tokenizer.lexer=this;let n=e;if(this.tokens.links&&e.includes("[")){let o=this.tokenizer.rules.inline.reflinkSearch,c=d=>{let p=d.lastIndexOf("[");if(!Object.hasOwn(this.tokens.links,d.slice(p+1,-1)))return d;if(p>1&&d.charAt(0)!=="!"){let g=d.slice(1,p-1);if(this.linkInText(g))return"["+g.replace(o,c)+"]["+"a".repeat(d.length-p-2)+"]"}return"["+"a".repeat(d.length-2)+"]"};n=n.replace(o,c)}n=n.replace(this.tokenizer.rules.inline.anyPunctuation,o=>"+".repeat(o.length)),n=n.replace(this.tokenizer.rules.inline.blockSkip,(o,c,d)=>{let p=d?d.length:0;return o.slice(0,p)+"["+"a".repeat(o.length-p-2)+"]"}),n=this.options.hooks?.emStrongMask?.call({lexer:this},n)??n;let a=!1,i="",s=1/0;for(;e;){if(e.length<s)s=e.length;else{this.infiniteLoopError(e.charCodeAt(0));break}a||(i=""),a=!1;let o;if(this.options.extensions?.inline?.some(d=>(o=d.call({lexer:this},e,r))?(e=e.substring(o.raw.length),r.push(o),!0):!1))continue;if(o=this.tokenizer.escape(e)){e=e.substring(o.raw.length),r.push(o);continue}if(o=this.tokenizer.tag(e)){e=e.substring(o.raw.length),r.push(o);continue}if(o=this.tokenizer.link(e)){e=e.substring(o.raw.length),r.push(o);continue}if(o=this.tokenizer.reflink(e,this.tokens.links)){e=e.substring(o.raw.length);let d=r.at(-1);o.type==="text"&&d?.type==="text"?(d.raw+=o.raw,d.text+=o.text):r.push(o);continue}if(o=this.tokenizer.emStrong(e,n,i)){e=e.substring(o.raw.length),r.push(o);continue}if(o=this.tokenizer.codespan(e)){e=e.substring(o.raw.length),r.push(o);continue}if(o=this.tokenizer.br(e)){e=e.substring(o.raw.length),r.push(o);continue}if(o=this.tokenizer.del(e,n,i)){e=e.substring(o.raw.length),r.push(o);continue}if(o=this.tokenizer.autolink(e)){e=e.substring(o.raw.length),r.push(o);continue}if(!this.state.inLink&&(o=this.tokenizer.url(e))){e=e.substring(o.raw.length),r.push(o);continue}let c=e;if(this.options.extensions?.startInline){let d=1/0,p=e.slice(1),g;this.options.extensions.startInline.forEach(v=>{g=v.call({lexer:this},p),typeof g=="number"&&g>=0&&(d=Math.min(d,g))}),d<1/0&&d>=0&&(c=e.substring(0,d+1))}if(o=this.tokenizer.inlineText(c)){e=e.substring(o.raw.length),o.raw.slice(-1)!=="_"&&(i=o.raw.slice(-1)),a=!0;let d=r.at(-1);d?.type==="text"?(d.raw+=o.raw,d.text+=o.text):r.push(o);continue}if(e){this.infiniteLoopError(e.charCodeAt(0));break}}return r}infiniteLoopError(e){let r="Infinite loop on byte: "+e;if(this.options.silent)console.error(r);else throw new Error(r)}},Pn=class{constructor(t){se(this,"options");se(this,"parser");this.options=t||Pr}space(t){return""}code({text:t,lang:e,escaped:r}){let n=(e||"").match(Ye.notSpaceStart)?.[0],a=t.replace(Ye.endingNewline,"")+`
47
+ `+i.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=o.text):r.push(i);continue}if(e){this.infiniteLoopError(e.charCodeAt(0));break}}return this.state.top=!0,r}inline(e,r=[]){return this.inlineQueue.push({src:e,tokens:r}),r}linkInText(e){if(!e.includes("["))return!1;let r=this.tokenizer.rules.inline.link;for(let n of e.matchAll(this.tokenizer.rules.inline.blockSkip))if(r.test(n[0])&&e.charAt(n.index-1)!=="!")return!0;for(let n of e.matchAll(this.tokenizer.rules.inline.reflinkSearch)){let a=n[0],i=a.lastIndexOf("[");if(!(a.charAt(0)==="!"||!Object.hasOwn(this.tokens.links,a.slice(i+1,-1)))&&!(i>1&&this.linkInText(a.slice(1,i-1))))return!0}return!1}inlineTokens(e,r=[]){this.tokenizer.lexer=this;let n=e;if(this.tokens.links&&e.includes("[")){let o=this.tokenizer.rules.inline.reflinkSearch,c=d=>{let p=d.lastIndexOf("[");if(!Object.hasOwn(this.tokens.links,d.slice(p+1,-1)))return d;if(p>1&&d.charAt(0)!=="!"){let g=d.slice(1,p-1);if(this.linkInText(g))return"["+g.replace(o,c)+"]["+"a".repeat(d.length-p-2)+"]"}return"["+"a".repeat(d.length-2)+"]"};n=n.replace(o,c)}n=n.replace(this.tokenizer.rules.inline.anyPunctuation,o=>"+".repeat(o.length)),n=n.replace(this.tokenizer.rules.inline.blockSkip,(o,c,d)=>{let p=d?d.length:0;return o.slice(0,p)+"["+"a".repeat(o.length-p-2)+"]"}),n=this.options.hooks?.emStrongMask?.call({lexer:this},n)??n;let a=!1,i="",s=1/0;for(;e;){if(e.length<s)s=e.length;else{this.infiniteLoopError(e.charCodeAt(0));break}a||(i=""),a=!1;let o;if(this.options.extensions?.inline?.some(d=>(o=d.call({lexer:this},e,r))?(e=e.substring(o.raw.length),r.push(o),!0):!1))continue;if(o=this.tokenizer.escape(e)){e=e.substring(o.raw.length),r.push(o);continue}if(o=this.tokenizer.tag(e)){e=e.substring(o.raw.length),r.push(o);continue}if(o=this.tokenizer.link(e)){e=e.substring(o.raw.length),r.push(o);continue}if(o=this.tokenizer.reflink(e,this.tokens.links)){e=e.substring(o.raw.length);let d=r.at(-1);o.type==="text"&&d?.type==="text"?(d.raw+=o.raw,d.text+=o.text):r.push(o);continue}if(o=this.tokenizer.emStrong(e,n,i)){e=e.substring(o.raw.length),r.push(o);continue}if(o=this.tokenizer.codespan(e)){e=e.substring(o.raw.length),r.push(o);continue}if(o=this.tokenizer.br(e)){e=e.substring(o.raw.length),r.push(o);continue}if(o=this.tokenizer.del(e,n,i)){e=e.substring(o.raw.length),r.push(o);continue}if(o=this.tokenizer.autolink(e)){e=e.substring(o.raw.length),r.push(o);continue}if(!this.state.inLink&&(o=this.tokenizer.url(e))){e=e.substring(o.raw.length),r.push(o);continue}let c=e;if(this.options.extensions?.startInline){let d=1/0,p=e.slice(1),g;this.options.extensions.startInline.forEach(v=>{g=v.call({lexer:this},p),typeof g=="number"&&g>=0&&(d=Math.min(d,g))}),d<1/0&&d>=0&&(c=e.substring(0,d+1))}if(o=this.tokenizer.inlineText(c)){e=e.substring(o.raw.length),o.raw.slice(-1)!=="_"&&(i=o.raw.slice(-1)),a=!0;let d=r.at(-1);d?.type==="text"?(d.raw+=o.raw,d.text+=o.text):r.push(o);continue}if(e){this.infiniteLoopError(e.charCodeAt(0));break}}return r}infiniteLoopError(e){let r="Infinite loop on byte: "+e;if(this.options.silent)console.error(r);else throw new Error(r)}},Pn=class{constructor(t){se(this,"options");se(this,"parser");this.options=t||Pr}space(t){return""}code({text:t,lang:e,escaped:r}){let n=(e||"").match(Xe.notSpaceStart)?.[0],a=t.replace(Xe.endingNewline,"")+`
48
48
  `;return n?'<pre><code class="language-'+Dt(n)+'">'+(r?a:Dt(a,!0))+`</code></pre>
49
49
  `:"<pre><code>"+(r?a:Dt(a,!0))+`</code></pre>
50
50
  `}blockquote({tokens:t}){return`<blockquote>
@@ -63,7 +63,7 @@ ${this.parser.parse(t)}</blockquote>
63
63
  ${t}</tr>
64
64
  `}tablecell(t){let e=this.parser.parseInline(t.tokens),r=t.header?"th":"td";return(t.align?`<${r} align="${t.align}">`:`<${r}>`)+e+`</${r}>
65
65
  `}strong({tokens:t}){return`<strong>${this.parser.parseInline(t)}</strong>`}em({tokens:t}){return`<em>${this.parser.parseInline(t)}</em>`}codespan({text:t}){return`<code>${Dt(t,!0)}</code>`}br(t){return"<br>"}del({tokens:t}){return`<del>${this.parser.parseInline(t)}</del>`}link({href:t,title:e,tokens:r}){let n=this.parser.parseInline(r),a=Gs(t);if(a===null)return n;t=a;let i='<a href="'+t+'"';return e&&(i+=' title="'+Dt(e)+'"'),i+=">"+n+"</a>",i}image({href:t,title:e,text:r,tokens:n}){n&&(r=this.parser.parseInline(n,this.parser.textRenderer));let a=Gs(t);if(a===null)return Dt(r);t=a;let i=`<img src="${t}" alt="${Dt(r)}"`;return e&&(i+=` title="${Dt(e)}"`),i+=">",i}text(t){return"tokens"in t&&t.tokens?this.parser.parseInline(t.tokens):"escaped"in t&&t.escaped?t.text:Dt(t.text)}},$i=class{strong({text:t}){return t}em({text:t}){return t}codespan({text:t}){return t}del({text:t}){return t}html({text:t}){return t}text({text:t}){return t}link({text:t}){return""+t}image({text:t}){return""+t}br(){return""}checkbox({raw:t}){return t}},It=class ti{constructor(e){se(this,"options");se(this,"renderer");se(this,"textRenderer");this.options=e||Pr,this.options.renderer=this.options.renderer||new Pn,this.renderer=this.options.renderer,this.renderer.options=this.options,this.renderer.parser=this,this.textRenderer=new $i}static parse(e,r){return new ti(r).parse(e)}static parseInline(e,r){return new ti(r).parseInline(e)}parse(e){this.renderer.parser=this;let r="";for(let n=0;n<e.length;n++){let a=e[n];if(this.options.extensions?.renderers?.[a.type]){let s=a,o=this.options.extensions.renderers[s.type].call({parser:this},s);if(o!==!1||!["space","hr","heading","code","table","blockquote","list","checkbox","html","def","paragraph","text"].includes(s.type)){r+=o||"";continue}}let i=a;switch(i.type){case"space":{r+=this.renderer.space(i);break}case"hr":{r+=this.renderer.hr(i);break}case"heading":{r+=this.renderer.heading(i);break}case"code":{r+=this.renderer.code(i);break}case"table":{r+=this.renderer.table(i);break}case"blockquote":{r+=this.renderer.blockquote(i);break}case"list":{r+=this.renderer.list(i);break}case"checkbox":{r+=this.renderer.checkbox(i);break}case"html":{r+=this.renderer.html(i);break}case"def":{r+=this.renderer.def(i);break}case"paragraph":{r+=this.renderer.paragraph(i);break}case"text":{r+=this.renderer.text(i);break}default:{let s='Token with "'+i.type+'" type was not found.';if(this.options.silent)return console.error(s),"";throw new Error(s)}}}return r}parseInline(e,r=this.renderer){this.renderer.parser=this;let n="";for(let a=0;a<e.length;a++){let i=e[a];if(this.options.extensions?.renderers?.[i.type]){let o=this.options.extensions.renderers[i.type].call({parser:this},i);if(o!==!1||!["escape","html","link","image","checkbox","strong","em","codespan","br","del","text"].includes(i.type)){n+=o||"";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"checkbox":{n+=r.checkbox(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 o='Token with "'+s.type+'" type was not found.';if(this.options.silent)return console.error(o),"";throw new Error(o)}}}return n}},zn,D0=(zn=class{constructor(e){se(this,"options");se(this,"block");this.options=e||Pr}preprocess(e){return e}postprocess(e){return e}processAllTokens(e){return e}emStrongMask(e){return e}provideLexer(e=this.block){return e?At.lex:At.lexInline}provideParser(e=this.block){return e?It.parse:It.parseInline}},se(zn,"passThroughHooks",new Set(["preprocess","postprocess","processAllTokens","emStrongMask"])),se(zn,"passThroughHooksRespectAsync",new Set(["preprocess","postprocess","processAllTokens"])),zn),ac=class{constructor(...t){se(this,"defaults",Ri());se(this,"options",this.setOptions);se(this,"parse",this.parseMarkdown(!0));se(this,"parseInline",this.parseMarkdown(!1));se(this,"Parser",It);se(this,"Renderer",Pn);se(this,"TextRenderer",$i);se(this,"Lexer",At);se(this,"Tokenizer",$0);se(this,"Hooks",D0);this.use(...t)}walkTokens(t,e){let r=[];for(let n of t)switch(r=r.concat(e.call(this,n)),n.type){case"table":{let a=n;for(let i of a.header)r=r.concat(this.walkTokens(i.tokens,e));for(let i of a.rows)for(let s of i)r=r.concat(this.walkTokens(s.tokens,e));break}case"list":{let a=n;r=r.concat(this.walkTokens(a.items,e));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,e))}):a.tokens&&(r=r.concat(this.walkTokens(a.tokens,e)))}}return r}use(...t){let e=this.defaults.extensions||{renderers:{},childTokens:{}};return t.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=e.renderers[a.name];i?e.renderers[a.name]=function(...s){let o=a.renderer.apply(this,s);return o===!1&&(o=i.apply(this,s)),o}:e.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=e[a.level];i?i.unshift(a.tokenizer):e[a.level]=[a.tokenizer],a.start&&(a.level==="block"?e.startBlock?e.startBlock.push(a.start):e.startBlock=[a.start]:a.level==="inline"&&(e.startInline?e.startInline.push(a.start):e.startInline=[a.start]))}"childTokens"in a&&a.childTokens&&(e.childTokens[a.name]=a.childTokens)}),n.extensions=e),r.renderer){let a=this.defaults.renderer||new Pn(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,o=r.renderer[s],c=a[s];a[s]=(...d)=>{let p=o.apply(a,d);return p===!1&&(p=c.apply(a,d)),p||""}}n.renderer=a}if(r.tokenizer){let a=this.defaults.tokenizer||new $0(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,o=r.tokenizer[s],c=a[s];a[s]=(...d)=>{let p=o.apply(a,d);return p===!1&&(p=c.apply(a,d)),p}}n.tokenizer=a}if(r.hooks){let a=this.defaults.hooks||new D0;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,o=r.hooks[s],c=a[s];D0.passThroughHooks.has(i)?a[s]=d=>{if(this.defaults.async&&D0.passThroughHooksRespectAsync.has(i))return(async()=>{let g=await o.call(a,d);return c.call(a,g)})();let p=o.call(a,d);return c.call(a,p)}:a[s]=(...d)=>{if(this.defaults.async)return(async()=>{let g=await o.apply(a,d);return g===!1&&(g=await c.apply(a,d)),g})();let p=o.apply(a,d);return p===!1&&(p=c.apply(a,d)),p}}n.hooks=a}if(r.walkTokens){let a=this.defaults.walkTokens,i=r.walkTokens;n.walkTokens=function(s){let o=[];return o.push(i.call(this,s)),a&&(o=o.concat(a.call(this,s))),o}}this.defaults={...this.defaults,...n}}),this}setOptions(t){return this.defaults={...this.defaults,...t},this}lexer(t,e){return At.lex(t,e??this.defaults)}parser(t,e){return It.parse(t,e??this.defaults)}parseMarkdown(t){return(e,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 e>"u"||e===null)return i(new Error("marked(): input parameter is undefined or null"));if(typeof e!="string")return i(new Error("marked(): input parameter is of type "+Object.prototype.toString.call(e)+", string expected"));if(a.hooks&&(a.hooks.options=a,a.hooks.block=t),a.async)return(async()=>{let s=a.hooks?await a.hooks.preprocess(e):e,o=await(a.hooks?await a.hooks.provideLexer(t):t?At.lex:At.lexInline)(s,a),c=a.hooks?await a.hooks.processAllTokens(o):o;a.walkTokens&&await Promise.all(this.walkTokens(c,a.walkTokens));let d=await(a.hooks?await a.hooks.provideParser(t):t?It.parse:It.parseInline)(c,a);return a.hooks?await a.hooks.postprocess(d):d})().catch(i);try{a.hooks&&(e=a.hooks.preprocess(e));let s=(a.hooks?a.hooks.provideLexer(t):t?At.lex:At.lexInline)(e,a);a.hooks&&(s=a.hooks.processAllTokens(s)),a.walkTokens&&this.walkTokens(s,a.walkTokens);let o=(a.hooks?a.hooks.provideParser(t):t?It.parse:It.parseInline)(s,a);return a.hooks&&(o=a.hooks.postprocess(o)),o}catch(s){return i(s)}}}onError(t,e){return r=>{if(r.message+=`
66
- Please report this to https://github.com/markedjs/marked.`,t){let n="<p>An error occurred:</p><pre>"+Dt(r.message+"",!0)+"</pre>";return e?Promise.resolve(n):n}if(e)return Promise.reject(r);throw r}}},Dr=new ac;function ke(t,e){return Dr.parse(t,e)}ke.options=ke.setOptions=function(t){return Dr.setOptions(t),ke.defaults=Dr.defaults,Yl(ke.defaults),ke};ke.getDefaults=Ri;ke.defaults=Pr;function dh(...t){return Dr.use(...t),ke.defaults=Dr.defaults,Yl(ke.defaults),ke}ke.use=dh;ke.walkTokens=function(t,e){return Dr.walkTokens(t,e)};ke.parseInline=Dr.parseInline;ke.Parser=It;ke.parser=It.parse;ke.Renderer=Pn;ke.TextRenderer=$i;ke.Lexer=At;ke.lexer=At.lex;ke.Tokenizer=$0;ke.Hooks=D0;ke.parse=ke;ke.options;ke.setOptions;ke.walkTokens;ke.parseInline;It.parse;At.lex;const A0="@@@task";function ri(t){const e=t.endsWith("\r")?t.slice(0,-1):t;if(e.includes("\r"))return!1;const r=e.trim();if(r.length===0)return!0;const n=r.split(/\s+/),a=[];let i=0;for(;i<n.length;){let s=n[i];for(;i+1<n.length&&(s.endsWith(",")||n[i+1].startsWith(","));)i++,s+=n[i];a.push(s),i++}return a.every(s=>{const o=s.indexOf("=");return o===-1?!1:/^[A-Za-z0-9]+$/.test(s.slice(0,o))})}function hh(t){const e=[];let r=0;for(;;){const n=t.indexOf(A0,r);if(n===-1)break;let a=n+A0.length;t[a]==="s"&&a++;const i=t[a];if(i!==void 0&&i!==" "&&i!==" "&&i!=="\r"&&i!==`
66
+ Please report this to https://github.com/markedjs/marked.`,t){let n="<p>An error occurred:</p><pre>"+Dt(r.message+"",!0)+"</pre>";return e?Promise.resolve(n):n}if(e)return Promise.reject(r);throw r}}},Dr=new ac;function ke(t,e){return Dr.parse(t,e)}ke.options=ke.setOptions=function(t){return Dr.setOptions(t),ke.defaults=Dr.defaults,Xl(ke.defaults),ke};ke.getDefaults=Ri;ke.defaults=Pr;function dh(...t){return Dr.use(...t),ke.defaults=Dr.defaults,Xl(ke.defaults),ke}ke.use=dh;ke.walkTokens=function(t,e){return Dr.walkTokens(t,e)};ke.parseInline=Dr.parseInline;ke.Parser=It;ke.parser=It.parse;ke.Renderer=Pn;ke.TextRenderer=$i;ke.Lexer=At;ke.lexer=At.lex;ke.Tokenizer=$0;ke.Hooks=D0;ke.parse=ke;ke.options;ke.setOptions;ke.walkTokens;ke.parseInline;It.parse;At.lex;const A0="@@@task";function ri(t){const e=t.endsWith("\r")?t.slice(0,-1):t;if(e.includes("\r"))return!1;const r=e.trim();if(r.length===0)return!0;const n=r.split(/\s+/),a=[];let i=0;for(;i<n.length;){let s=n[i];for(;i+1<n.length&&(s.endsWith(",")||n[i+1].startsWith(","));)i++,s+=n[i];a.push(s),i++}return a.every(s=>{const o=s.indexOf("=");return o===-1?!1:/^[A-Za-z0-9]+$/.test(s.slice(0,o))})}function hh(t){const e=[];let r=0;for(;;){const n=t.indexOf(A0,r);if(n===-1)break;let a=n+A0.length;t[a]==="s"&&a++;const i=t[a];if(i!==void 0&&i!==" "&&i!==" "&&i!=="\r"&&i!==`
67
67
  `){r=n+A0.length;continue}const s=t.indexOf(`
68
68
  `,a);if(s===-1){r=n+A0.length;continue}if(!ri(t.slice(a,s))){r=n+A0.length;continue}const o=s+1,c=t.indexOf("@@@",o);if(c===-1)break;e.push({start:n,end:c+3,body:t.slice(o,c)}),r=c+3}return e}function ph(t){return t.replace(/\r\n/g,`
69
69
  `).replace(/\r/g,`
@@ -76,7 +76,7 @@ Please report this to https://github.com/markedjs/marked.`,t){let n="<p>An error
76
76
  </div>
77
77
  `:'<div data-type="task-block" class="task-block-empty"><p>No task defined (missing # title)</p></div>'}function fh(t){const e=hh(t);if(e.length===0)return t;let r="",n=0;for(const a of e){r+=t.slice(n,a.start);const i=ic(a.body);r+=i?[`### ${i.title}`,i.content.trim()].filter(Boolean).join(`
78
78
 
79
- `):a.body.trim(),n=a.end}return r+=t.slice(n),r}function gh(t){t.use({extensions:[{name:"taskBlock",level:"block",start(e){const r=e.match(/^@@@tasks?((?:[ \t][^\n]*)?)\r?\n/);return r&&ri(r[1])?0:void 0},tokenizer(e){const n=/^(@@@tasks?((?:[ \t][^\n]*)?)\r?\n([\s\S]*?)@@@)/.exec(e);if(n&&ri(n[2]))return{type:"taskBlock",raw:n[1],text:n[3],tokens:[]}},renderer(e){return mh(e.text)}}]})}const vh=$0.prototype.del,bh={tokenizer:{del(t,e,r){if(!t.startsWith("~~"))return;const n=vh.call(this,t,e,r);return n?.raw.startsWith("~~")?n:void 0}}};class B extends Error{constructor(e,r){var n="KaTeX parse error: "+e,a,i,s=r&&r.loc;if(s&&s.start<=s.end){var o=s.lexer.input;a=s.start,i=s.end,a===o.length?n+=" at end of input: ":n+=" at position "+(a+1)+": ";var c=o.slice(a,i).replace(/[^]/g,"$&̲"),d;a>15?d="…"+o.slice(a-15,a):d=o.slice(0,a);var p;i+15<o.length?p=o.slice(i,i+15)+"…":p=o.slice(i),n+=d+c+p}super(n),this.name="ParseError",this.position=void 0,this.length=void 0,this.rawMessage=void 0,Object.setPrototypeOf(this,B.prototype),this.position=a,a!=null&&i!=null&&(this.length=i-a),this.rawMessage=e}}var yh=/([A-Z])/g,wh=t=>t.replace(yh,"-$1").toLowerCase(),kh={"&":"&amp;",">":"&gt;","<":"&lt;",'"':"&quot;","'":"&#x27;"},xh=/[&><"']/g,Ke=t=>String(t).replace(xh,e=>kh[e]),Rn=t=>t.type==="ordgroup"||t.type==="color"?t.body.length===1?Rn(t.body[0]):t:t.type==="font"?Rn(t.body):t,Sh=new Set(["mathord","textord","atom"]),Yt=t=>Sh.has(Rn(t).type),Ah=t=>{var e=/^[\x00-\x20]*([^\\/#?]*?)(:|&#0*58|&#x0*3a|&colon)/i.exec(t);return e?e[2]!==":"||!/^[a-zA-Z][a-zA-Z0-9+\-.]*$/.test(e[1])?null:e[1].toLowerCase():"_relative"},Xs={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:t=>"#"+t},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:(t,e)=>(e.push(t),e)},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:t=>Math.max(0,t),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:t=>Math.max(0,t),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:t=>Math.max(0,t),cli:"-e, --max-expand <n>",cliProcessor:t=>t==="Infinity"?1/0:parseInt(t)},globalGroup:{type:"boolean",cli:!1}};function Th(t){if(typeof t!="string")return t.enum[0];switch(t){case"boolean":return!1;case"string":return"";case"number":return 0;case"object":return{};default:throw new Error("Unexpected schema type; settings must declare an explicit default.")}}function Eh(t){if(Object.prototype.hasOwnProperty.call(t,"default")&&t.default!==void 0)return t.default;var e=Array.isArray(t.type)?t.type[0]:t.type;return Th(e)}function Mh(t,e,r,n){var a=Object.prototype.hasOwnProperty.call(r,e)?r[e]:void 0,i=Object.prototype.hasOwnProperty.call(n,"processor")?n.processor:void 0;t[e]=a!==void 0?i?i(a):a:Eh(n)}class Ch{constructor(e){e===void 0&&(e={}),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,e=e||{};for(var r of Object.keys(Xs)){var n=Xs[r];n&&Mh(this,r,e,n)}}isTrusted(e){if("url"in e&&e.url&&!e.protocol){var r=Ah(e.url);if(r==null)return!1;e.protocol=r}var n=typeof this.trust=="function"?this.trust(e):this.trust;return!!n}}class rr{constructor(e,r,n){this.id=void 0,this.size=void 0,this.cramped=void 0,this.id=e,this.size=r,this.cramped=n}sup(){return Nt[Ih[this.id]]}sub(){return Nt[zh[this.id]]}fracNum(){return Nt[Rh[this.id]]}fracDen(){return Nt[Dh[this.id]]}cramp(){return Nt[Nh[this.id]]}text(){return Nt[_h[this.id]]}isTight(){return this.size>=2}}var Bi=0,On=1,t0=2,Wt=3,B0=4,Tt=5,s0=6,at=7,Nt=[new rr(Bi,0,!1),new rr(On,0,!0),new rr(t0,1,!1),new rr(Wt,1,!0),new rr(B0,2,!1),new rr(Tt,2,!0),new rr(s0,3,!1),new rr(at,3,!0)],Ih=[B0,Tt,B0,Tt,s0,at,s0,at],zh=[Tt,Tt,Tt,Tt,at,at,at,at],Rh=[t0,Wt,B0,Tt,s0,at,s0,at],Dh=[Wt,Wt,Tt,Tt,at,at,at,at],Nh=[On,On,Wt,Wt,Tt,Tt,at,at],_h=[Bi,On,t0,Wt,t0,Wt,t0,Wt],ae={DISPLAY:Nt[Bi],TEXT:Nt[t0],SCRIPT:Nt[B0],SCRIPTSCRIPT:Nt[s0]},ni=[{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 Lh(t){for(var e=0;e<ni.length;e++)for(var r=ni[e],n=0;n<r.blocks.length;n++){var a=r.blocks[n];if(t>=a[0]&&t<=a[1])return r.name}return null}var Dn=[];ni.forEach(t=>t.blocks.forEach(e=>Dn.push(...e)));function sc(t){for(var e=0;e<Dn.length;e+=2)if(t>=Dn[e]&&t<=Dn[e+1])return!0;return!1}var qe=t=>t+" "+t,Kr=80,Ph=function(e,r){return"M95,"+(622+e+r)+`
79
+ `):a.body.trim(),n=a.end}return r+=t.slice(n),r}function gh(t){t.use({extensions:[{name:"taskBlock",level:"block",start(e){const r=e.match(/^@@@tasks?((?:[ \t][^\n]*)?)\r?\n/);return r&&ri(r[1])?0:void 0},tokenizer(e){const n=/^(@@@tasks?((?:[ \t][^\n]*)?)\r?\n([\s\S]*?)@@@)/.exec(e);if(n&&ri(n[2]))return{type:"taskBlock",raw:n[1],text:n[3],tokens:[]}},renderer(e){return mh(e.text)}}]})}const vh=$0.prototype.del,bh={tokenizer:{del(t,e,r){if(!t.startsWith("~~"))return;const n=vh.call(this,t,e,r);return n?.raw.startsWith("~~")?n:void 0}}};class B extends Error{constructor(e,r){var n="KaTeX parse error: "+e,a,i,s=r&&r.loc;if(s&&s.start<=s.end){var o=s.lexer.input;a=s.start,i=s.end,a===o.length?n+=" at end of input: ":n+=" at position "+(a+1)+": ";var c=o.slice(a,i).replace(/[^]/g,"$&̲"),d;a>15?d="…"+o.slice(a-15,a):d=o.slice(0,a);var p;i+15<o.length?p=o.slice(i,i+15)+"…":p=o.slice(i),n+=d+c+p}super(n),this.name="ParseError",this.position=void 0,this.length=void 0,this.rawMessage=void 0,Object.setPrototypeOf(this,B.prototype),this.position=a,a!=null&&i!=null&&(this.length=i-a),this.rawMessage=e}}var yh=/([A-Z])/g,wh=t=>t.replace(yh,"-$1").toLowerCase(),kh={"&":"&amp;",">":"&gt;","<":"&lt;",'"':"&quot;","'":"&#x27;"},xh=/[&><"']/g,Ke=t=>String(t).replace(xh,e=>kh[e]),Rn=t=>t.type==="ordgroup"||t.type==="color"?t.body.length===1?Rn(t.body[0]):t:t.type==="font"?Rn(t.body):t,Sh=new Set(["mathord","textord","atom"]),Xt=t=>Sh.has(Rn(t).type),Ah=t=>{var e=/^[\x00-\x20]*([^\\/#?]*?)(:|&#0*58|&#x0*3a|&colon)/i.exec(t);return e?e[2]!==":"||!/^[a-zA-Z][a-zA-Z0-9+\-.]*$/.test(e[1])?null:e[1].toLowerCase():"_relative"},Ys={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:t=>"#"+t},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:(t,e)=>(e.push(t),e)},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:t=>Math.max(0,t),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:t=>Math.max(0,t),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:t=>Math.max(0,t),cli:"-e, --max-expand <n>",cliProcessor:t=>t==="Infinity"?1/0:parseInt(t)},globalGroup:{type:"boolean",cli:!1}};function Th(t){if(typeof t!="string")return t.enum[0];switch(t){case"boolean":return!1;case"string":return"";case"number":return 0;case"object":return{};default:throw new Error("Unexpected schema type; settings must declare an explicit default.")}}function Eh(t){if(Object.prototype.hasOwnProperty.call(t,"default")&&t.default!==void 0)return t.default;var e=Array.isArray(t.type)?t.type[0]:t.type;return Th(e)}function Mh(t,e,r,n){var a=Object.prototype.hasOwnProperty.call(r,e)?r[e]:void 0,i=Object.prototype.hasOwnProperty.call(n,"processor")?n.processor:void 0;t[e]=a!==void 0?i?i(a):a:Eh(n)}class Ch{constructor(e){e===void 0&&(e={}),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,e=e||{};for(var r of Object.keys(Ys)){var n=Ys[r];n&&Mh(this,r,e,n)}}isTrusted(e){if("url"in e&&e.url&&!e.protocol){var r=Ah(e.url);if(r==null)return!1;e.protocol=r}var n=typeof this.trust=="function"?this.trust(e):this.trust;return!!n}}class rr{constructor(e,r,n){this.id=void 0,this.size=void 0,this.cramped=void 0,this.id=e,this.size=r,this.cramped=n}sup(){return Nt[Ih[this.id]]}sub(){return Nt[zh[this.id]]}fracNum(){return Nt[Rh[this.id]]}fracDen(){return Nt[Dh[this.id]]}cramp(){return Nt[Nh[this.id]]}text(){return Nt[_h[this.id]]}isTight(){return this.size>=2}}var Bi=0,On=1,t0=2,Wt=3,B0=4,Tt=5,s0=6,at=7,Nt=[new rr(Bi,0,!1),new rr(On,0,!0),new rr(t0,1,!1),new rr(Wt,1,!0),new rr(B0,2,!1),new rr(Tt,2,!0),new rr(s0,3,!1),new rr(at,3,!0)],Ih=[B0,Tt,B0,Tt,s0,at,s0,at],zh=[Tt,Tt,Tt,Tt,at,at,at,at],Rh=[t0,Wt,B0,Tt,s0,at,s0,at],Dh=[Wt,Wt,Tt,Tt,at,at,at,at],Nh=[On,On,Wt,Wt,Tt,Tt,at,at],_h=[Bi,On,t0,Wt,t0,Wt,t0,Wt],ae={DISPLAY:Nt[Bi],TEXT:Nt[t0],SCRIPT:Nt[B0],SCRIPTSCRIPT:Nt[s0]},ni=[{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 Lh(t){for(var e=0;e<ni.length;e++)for(var r=ni[e],n=0;n<r.blocks.length;n++){var a=r.blocks[n];if(t>=a[0]&&t<=a[1])return r.name}return null}var Dn=[];ni.forEach(t=>t.blocks.forEach(e=>Dn.push(...e)));function sc(t){for(var e=0;e<Dn.length;e+=2)if(t>=Dn[e]&&t<=Dn[e+1])return!0;return!1}var qe=t=>t+" "+t,Kr=80,Ph=function(e,r){return"M95,"+(622+e+r)+`
80
80
  c-2.7,0,-7.17,-2.7,-13.5,-8c-5.8,-5.3,-9.5,-10,-9.5,-14
81
81
  c0,-2,0.3,-3.3,1,-4c1.3,-2.7,23.83,-20.7,67.5,-54
82
82
  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
@@ -326,15 +326,15 @@ 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
326
326
  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
327
327
  c242.7,-294.7,395.3,-681.7,458,-1161c21.3,-164.7,33.3,-350.7,36,-558
328
328
  l0,-`+(r+144)+`c-2,-159.3,-10,-310.7,-24,-454c-53.3,-528,-210,-949.7,
329
- -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.")}};function jh(t){return"toText"in t}class f0{constructor(e){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=e,this.classes=[],this.height=0,this.depth=0,this.maxFontSize=0,this.style={}}hasClass(e){return this.classes.includes(e)}toNode(){for(var e=document.createDocumentFragment(),r=0;r<this.children.length;r++)e.appendChild(this.children[r].toNode());return e}toMarkup(){for(var e="",r=0;r<this.children.length;r++)e+=this.children[r].toMarkup();return e}toText(){return this.children.map(e=>{if(jh(e))return e.toText();throw new Error("Expected MathDomNode with toText, got "+e.constructor.name)}).join("")}}var ai={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},Vh={ex:!0,em:!0,mu:!0},oc=function(e){return typeof e!="string"&&(e=e.unit),e in ai||e in Vh||e==="ex"},Ie=function(e,r){var n;if(e.unit in ai)n=ai[e.unit]/r.fontMetrics().ptPerEm/r.sizeMultiplier;else if(e.unit==="mu")n=r.fontMetrics().cssEmPerMu;else{var a;if(r.style.isTight()?a=r.havingStyle(r.style.text()):a=r,e.unit==="ex")n=a.fontMetrics().xHeight;else if(e.unit==="em")n=a.fontMetrics().quad;else throw new B("Invalid unit: '"+e.unit+"'");a!==r&&(n*=a.sizeMultiplier/r.sizeMultiplier)}return Math.min(e.number*n,r.maxSize)},H=function(e){return+e.toFixed(4)+"em"},dr=function(e){return e.filter(r=>r).join(" ")},qi=function(e){var r="";for(var n of Object.keys(e)){var a=e[n];a!==void 0&&(r+=wh(n)+":"+a+";")}return r},lc=function(e,r,n){if(this.classes=e||[],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)}},cc=function(e){var r=document.createElement(e);r.className=dr(this.classes),Object.assign(r.style,this.style);for(var n of Object.keys(this.attributes))r.setAttribute(n,this.attributes[n]);for(var a=0;a<this.children.length;a++)r.appendChild(this.children[a].toNode());return r},Yh=/[\s"'>/=\x00-\x1f]/,uc=function(e){var r="<"+e;this.classes.length&&(r+=' class="'+Ke(dr(this.classes))+'"');var n=qi(this.style);n&&(r+=' style="'+Ke(n)+'"');for(var a of Object.keys(this.attributes)){if(Yh.test(a))throw new B("Invalid attribute name '"+a+"'");r+=" "+a+'="'+Ke(this.attributes[a])+'"'}r+=">";for(var i=0;i<this.children.length;i++)r+=this.children[i].toMarkup();return r+="</"+e+">",r};class j0{constructor(e,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,this.italic=void 0,lc.call(this,e,n,a),this.children=r||[]}setAttribute(e,r){this.attributes[e]=r}hasClass(e){return this.classes.includes(e)}toNode(){return cc.call(this,"span")}toMarkup(){return uc.call(this,"span")}}class Fi{constructor(e,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,lc.call(this,r,a),this.children=n||[],this.setAttribute("href",e)}setAttribute(e,r){this.attributes[e]=r}hasClass(e){return this.classes.includes(e)}toNode(){return cc.call(this,"a")}toMarkup(){return uc.call(this,"a")}}class Xh{constructor(e,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=e,this.classes=["mord"],this.height=0,this.depth=0,this.maxFontSize=0,this.style=n}hasClass(e){return this.classes.includes(e)}toNode(){var e=document.createElement("img");return e.src=this.src,e.alt=this.alt,e.className="mord",Object.assign(e.style,this.style),e}toMarkup(){var e='<img src="'+Ke(this.src)+'"'+(' alt="'+Ke(this.alt)+'"'),r=qi(this.style);return r&&(e+=' style="'+Ke(r)+'"'),e+="'/>",e}}var Kh={î:"ı̂",ï:"ı̈",í:"ı́",ì:"ı̀"};class Et{constructor(e,r,n,a,i,s,o,c){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=e,this.height=r||0,this.depth=n||0,this.italic=a||0,this.skew=i||0,this.width=s||0,this.classes=o||[],this.style=c||{},this.maxFontSize=0;var d=Lh(this.text.charCodeAt(0));d&&this.classes.push(d+"_fallback"),/[îïíì]/.test(this.text)&&(this.text=Kh[this.text])}hasClass(e){return this.classes.includes(e)}toNode(){var e=document.createTextNode(this.text),r=null;return this.italic>0&&(r=document.createElement("span"),r.style.marginRight=H(this.italic)),this.classes.length>0&&(r=r||document.createElement("span"),r.className=dr(this.classes)),Object.keys(this.style).length>0&&(r=r||document.createElement("span"),Object.assign(r.style,this.style)),r?(r.appendChild(e),r):e}toMarkup(){var e=!1,r="<span";this.classes.length&&(e=!0,r+=' class="',r+=Ke(dr(this.classes)),r+='"');var n="";this.italic>0&&(n+="margin-right:"+H(this.italic)+";"),n+=qi(this.style),n&&(e=!0,r+=' style="'+Ke(n)+'"');var a=Ke(this.text);return e?(r+=">",r+=a,r+="</span>",r):a}}class hr{constructor(e,r){this.children=void 0,this.attributes=void 0,this.children=e||[],this.attributes=r||{}}toNode(){var e="http://www.w3.org/2000/svg",r=document.createElementNS(e,"svg");for(var n of Object.keys(this.attributes))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 e='<svg xmlns="http://www.w3.org/2000/svg"';for(var r of Object.keys(this.attributes))e+=" "+r+'="'+Ke(this.attributes[r])+'"';e+=">";for(var n=0;n<this.children.length;n++)e+=this.children[n].toMarkup();return e+="</svg>",e}}class Nr{constructor(e,r){this.pathName=void 0,this.alternate=void 0,this.pathName=e,this.alternate=r}toNode(){var e="http://www.w3.org/2000/svg",r=document.createElementNS(e,"path");return this.alternate?r.setAttribute("d",this.alternate):r.setAttribute("d",Ks[this.pathName]),r}toMarkup(){return this.alternate?'<path d="'+Ke(this.alternate)+'"/>':'<path d="'+Ke(Ks[this.pathName])+'"/>'}}class Zs{constructor(e){this.attributes=void 0,this.attributes=e||{}}toNode(){var e="http://www.w3.org/2000/svg",r=document.createElementNS(e,"line");for(var n of Object.keys(this.attributes))r.setAttribute(n,this.attributes[n]);return r}toMarkup(){var e="<line";for(var r of Object.keys(this.attributes))e+=" "+r+'="'+Ke(this.attributes[r])+'"';return e+="/>",e}}function Zh(t){if(t instanceof Et)return t;throw new Error("Expected symbolNode but got "+String(t)+".")}function Qh(t){if(t instanceof j0)return t;throw new Error("Expected span<HtmlDomNode> but got "+String(t)+".")}var Jh=t=>t instanceof j0||t instanceof Fi||t instanceof f0,Ut={"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]}},Sa={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]},Qs={Å:"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 Hi(t,e,r){if(!Ut[e])throw new Error("Font metrics not found for font: "+e+".");var n=t.charCodeAt(0),a=Ut[e][n];if(!a&&t[0]in Qs&&(n=Qs[t[0]].charCodeAt(0),a=Ut[e][n]),!a&&r==="text"&&sc(n)&&(a=Ut[e][77]),a)return{depth:a[0],height:a[1],italic:a[2],skew:a[3],width:a[4]}}var Aa={};function ep(t){var e;if(t>=5?e=0:t>=3?e=1:e=2,!Aa[e]){var r=Aa[e]={cssEmPerMu:Sa.quad[e]/18};for(var n of Object.keys(Sa))r[n]=Sa[n][e]}return Aa[e]}var Te={math:{},text:{}};function l(t,e,r,n,a,i){Te[t][a]={font:e,group:r,replace:n},i&&n&&(Te[t][n]=Te[t][a])}var u="math",_="text",h="main",b="ams",Me="accent-token",j="bin",it="close",g0="inner",Q="mathord",$e="op-token",bt="open",V0="punct",y="rel",Xt="spacing",k="textord";l(u,h,y,"≡","\\equiv",!0);l(u,h,y,"≺","\\prec",!0);l(u,h,y,"≻","\\succ",!0);l(u,h,y,"∼","\\sim",!0);l(u,h,y,"⊥","\\perp");l(u,h,y,"⪯","\\preceq",!0);l(u,h,y,"⪰","\\succeq",!0);l(u,h,y,"≃","\\simeq",!0);l(u,h,y,"∣","\\mid",!0);l(u,h,y,"≪","\\ll",!0);l(u,h,y,"≫","\\gg",!0);l(u,h,y,"≍","\\asymp",!0);l(u,h,y,"∥","\\parallel");l(u,h,y,"⋈","\\bowtie",!0);l(u,h,y,"⌣","\\smile",!0);l(u,h,y,"⊑","\\sqsubseteq",!0);l(u,h,y,"⊒","\\sqsupseteq",!0);l(u,h,y,"≐","\\doteq",!0);l(u,h,y,"⌢","\\frown",!0);l(u,h,y,"∋","\\ni",!0);l(u,h,y,"∝","\\propto",!0);l(u,h,y,"⊢","\\vdash",!0);l(u,h,y,"⊣","\\dashv",!0);l(u,h,y,"∋","\\owns");l(u,h,V0,".","\\ldotp");l(u,h,V0,"⋅","\\cdotp");l(u,h,V0,"⋅","·");l(_,h,k,"⋅","·");l(u,h,k,"#","\\#");l(_,h,k,"#","\\#");l(u,h,k,"&","\\&");l(_,h,k,"&","\\&");l(u,h,k,"ℵ","\\aleph",!0);l(u,h,k,"∀","\\forall",!0);l(u,h,k,"ℏ","\\hbar",!0);l(u,h,k,"∃","\\exists",!0);l(u,h,k,"∇","\\nabla",!0);l(u,h,k,"♭","\\flat",!0);l(u,h,k,"ℓ","\\ell",!0);l(u,h,k,"♮","\\natural",!0);l(u,h,k,"♣","\\clubsuit",!0);l(u,h,k,"℘","\\wp",!0);l(u,h,k,"♯","\\sharp",!0);l(u,h,k,"♢","\\diamondsuit",!0);l(u,h,k,"ℜ","\\Re",!0);l(u,h,k,"♡","\\heartsuit",!0);l(u,h,k,"ℑ","\\Im",!0);l(u,h,k,"♠","\\spadesuit",!0);l(u,h,k,"§","\\S",!0);l(_,h,k,"§","\\S");l(u,h,k,"¶","\\P",!0);l(_,h,k,"¶","\\P");l(u,h,k,"†","\\dag");l(_,h,k,"†","\\dag");l(_,h,k,"†","\\textdagger");l(u,h,k,"‡","\\ddag");l(_,h,k,"‡","\\ddag");l(_,h,k,"‡","\\textdaggerdbl");l(u,h,it,"⎱","\\rmoustache",!0);l(u,h,bt,"⎰","\\lmoustache",!0);l(u,h,it,"⟯","\\rgroup",!0);l(u,h,bt,"⟮","\\lgroup",!0);l(u,h,j,"∓","\\mp",!0);l(u,h,j,"⊖","\\ominus",!0);l(u,h,j,"⊎","\\uplus",!0);l(u,h,j,"⊓","\\sqcap",!0);l(u,h,j,"∗","\\ast");l(u,h,j,"⊔","\\sqcup",!0);l(u,h,j,"◯","\\bigcirc",!0);l(u,h,j,"∙","\\bullet",!0);l(u,h,j,"‡","\\ddagger");l(u,h,j,"≀","\\wr",!0);l(u,h,j,"⨿","\\amalg");l(u,h,j,"&","\\And");l(u,h,y,"⟵","\\longleftarrow",!0);l(u,h,y,"⇐","\\Leftarrow",!0);l(u,h,y,"⟸","\\Longleftarrow",!0);l(u,h,y,"⟶","\\longrightarrow",!0);l(u,h,y,"⇒","\\Rightarrow",!0);l(u,h,y,"⟹","\\Longrightarrow",!0);l(u,h,y,"↔","\\leftrightarrow",!0);l(u,h,y,"⟷","\\longleftrightarrow",!0);l(u,h,y,"⇔","\\Leftrightarrow",!0);l(u,h,y,"⟺","\\Longleftrightarrow",!0);l(u,h,y,"↦","\\mapsto",!0);l(u,h,y,"⟼","\\longmapsto",!0);l(u,h,y,"↗","\\nearrow",!0);l(u,h,y,"↩","\\hookleftarrow",!0);l(u,h,y,"↪","\\hookrightarrow",!0);l(u,h,y,"↘","\\searrow",!0);l(u,h,y,"↼","\\leftharpoonup",!0);l(u,h,y,"⇀","\\rightharpoonup",!0);l(u,h,y,"↙","\\swarrow",!0);l(u,h,y,"↽","\\leftharpoondown",!0);l(u,h,y,"⇁","\\rightharpoondown",!0);l(u,h,y,"↖","\\nwarrow",!0);l(u,h,y,"⇌","\\rightleftharpoons",!0);l(u,b,y,"≮","\\nless",!0);l(u,b,y,"","\\@nleqslant");l(u,b,y,"","\\@nleqq");l(u,b,y,"⪇","\\lneq",!0);l(u,b,y,"≨","\\lneqq",!0);l(u,b,y,"","\\@lvertneqq");l(u,b,y,"⋦","\\lnsim",!0);l(u,b,y,"⪉","\\lnapprox",!0);l(u,b,y,"⊀","\\nprec",!0);l(u,b,y,"⋠","\\npreceq",!0);l(u,b,y,"⋨","\\precnsim",!0);l(u,b,y,"⪹","\\precnapprox",!0);l(u,b,y,"≁","\\nsim",!0);l(u,b,y,"","\\@nshortmid");l(u,b,y,"∤","\\nmid",!0);l(u,b,y,"⊬","\\nvdash",!0);l(u,b,y,"⊭","\\nvDash",!0);l(u,b,y,"⋪","\\ntriangleleft");l(u,b,y,"⋬","\\ntrianglelefteq",!0);l(u,b,y,"⊊","\\subsetneq",!0);l(u,b,y,"","\\@varsubsetneq");l(u,b,y,"⫋","\\subsetneqq",!0);l(u,b,y,"","\\@varsubsetneqq");l(u,b,y,"≯","\\ngtr",!0);l(u,b,y,"","\\@ngeqslant");l(u,b,y,"","\\@ngeqq");l(u,b,y,"⪈","\\gneq",!0);l(u,b,y,"≩","\\gneqq",!0);l(u,b,y,"","\\@gvertneqq");l(u,b,y,"⋧","\\gnsim",!0);l(u,b,y,"⪊","\\gnapprox",!0);l(u,b,y,"⊁","\\nsucc",!0);l(u,b,y,"⋡","\\nsucceq",!0);l(u,b,y,"⋩","\\succnsim",!0);l(u,b,y,"⪺","\\succnapprox",!0);l(u,b,y,"≆","\\ncong",!0);l(u,b,y,"","\\@nshortparallel");l(u,b,y,"∦","\\nparallel",!0);l(u,b,y,"⊯","\\nVDash",!0);l(u,b,y,"⋫","\\ntriangleright");l(u,b,y,"⋭","\\ntrianglerighteq",!0);l(u,b,y,"","\\@nsupseteqq");l(u,b,y,"⊋","\\supsetneq",!0);l(u,b,y,"","\\@varsupsetneq");l(u,b,y,"⫌","\\supsetneqq",!0);l(u,b,y,"","\\@varsupsetneqq");l(u,b,y,"⊮","\\nVdash",!0);l(u,b,y,"⪵","\\precneqq",!0);l(u,b,y,"⪶","\\succneqq",!0);l(u,b,y,"","\\@nsubseteqq");l(u,b,j,"⊴","\\unlhd");l(u,b,j,"⊵","\\unrhd");l(u,b,y,"↚","\\nleftarrow",!0);l(u,b,y,"↛","\\nrightarrow",!0);l(u,b,y,"⇍","\\nLeftarrow",!0);l(u,b,y,"⇏","\\nRightarrow",!0);l(u,b,y,"↮","\\nleftrightarrow",!0);l(u,b,y,"⇎","\\nLeftrightarrow",!0);l(u,b,y,"△","\\vartriangle");l(u,b,k,"ℏ","\\hslash");l(u,b,k,"▽","\\triangledown");l(u,b,k,"◊","\\lozenge");l(u,b,k,"Ⓢ","\\circledS");l(u,b,k,"®","\\circledR");l(_,b,k,"®","\\circledR");l(u,b,k,"∡","\\measuredangle",!0);l(u,b,k,"∄","\\nexists");l(u,b,k,"℧","\\mho");l(u,b,k,"Ⅎ","\\Finv",!0);l(u,b,k,"⅁","\\Game",!0);l(u,b,k,"‵","\\backprime");l(u,b,k,"▲","\\blacktriangle");l(u,b,k,"▼","\\blacktriangledown");l(u,b,k,"■","\\blacksquare");l(u,b,k,"⧫","\\blacklozenge");l(u,b,k,"★","\\bigstar");l(u,b,k,"∢","\\sphericalangle",!0);l(u,b,k,"∁","\\complement",!0);l(u,b,k,"ð","\\eth",!0);l(_,h,k,"ð","ð");l(u,b,k,"╱","\\diagup");l(u,b,k,"╲","\\diagdown");l(u,b,k,"□","\\square");l(u,b,k,"□","\\Box");l(u,b,k,"◊","\\Diamond");l(u,b,k,"¥","\\yen",!0);l(_,b,k,"¥","\\yen",!0);l(u,b,k,"✓","\\checkmark",!0);l(_,b,k,"✓","\\checkmark");l(u,b,k,"ℶ","\\beth",!0);l(u,b,k,"ℸ","\\daleth",!0);l(u,b,k,"ℷ","\\gimel",!0);l(u,b,k,"ϝ","\\digamma",!0);l(u,b,k,"ϰ","\\varkappa");l(u,b,bt,"┌","\\@ulcorner",!0);l(u,b,it,"┐","\\@urcorner",!0);l(u,b,bt,"└","\\@llcorner",!0);l(u,b,it,"┘","\\@lrcorner",!0);l(u,b,y,"≦","\\leqq",!0);l(u,b,y,"⩽","\\leqslant",!0);l(u,b,y,"⪕","\\eqslantless",!0);l(u,b,y,"≲","\\lesssim",!0);l(u,b,y,"⪅","\\lessapprox",!0);l(u,b,y,"≊","\\approxeq",!0);l(u,b,j,"⋖","\\lessdot");l(u,b,y,"⋘","\\lll",!0);l(u,b,y,"≶","\\lessgtr",!0);l(u,b,y,"⋚","\\lesseqgtr",!0);l(u,b,y,"⪋","\\lesseqqgtr",!0);l(u,b,y,"≑","\\doteqdot");l(u,b,y,"≓","\\risingdotseq",!0);l(u,b,y,"≒","\\fallingdotseq",!0);l(u,b,y,"∽","\\backsim",!0);l(u,b,y,"⋍","\\backsimeq",!0);l(u,b,y,"⫅","\\subseteqq",!0);l(u,b,y,"⋐","\\Subset",!0);l(u,b,y,"⊏","\\sqsubset",!0);l(u,b,y,"≼","\\preccurlyeq",!0);l(u,b,y,"⋞","\\curlyeqprec",!0);l(u,b,y,"≾","\\precsim",!0);l(u,b,y,"⪷","\\precapprox",!0);l(u,b,y,"⊲","\\vartriangleleft");l(u,b,y,"⊴","\\trianglelefteq");l(u,b,y,"⊨","\\vDash",!0);l(u,b,y,"⊪","\\Vvdash",!0);l(u,b,y,"⌣","\\smallsmile");l(u,b,y,"⌢","\\smallfrown");l(u,b,y,"≏","\\bumpeq",!0);l(u,b,y,"≎","\\Bumpeq",!0);l(u,b,y,"≧","\\geqq",!0);l(u,b,y,"⩾","\\geqslant",!0);l(u,b,y,"⪖","\\eqslantgtr",!0);l(u,b,y,"≳","\\gtrsim",!0);l(u,b,y,"⪆","\\gtrapprox",!0);l(u,b,j,"⋗","\\gtrdot");l(u,b,y,"⋙","\\ggg",!0);l(u,b,y,"≷","\\gtrless",!0);l(u,b,y,"⋛","\\gtreqless",!0);l(u,b,y,"⪌","\\gtreqqless",!0);l(u,b,y,"≖","\\eqcirc",!0);l(u,b,y,"≗","\\circeq",!0);l(u,b,y,"≜","\\triangleq",!0);l(u,b,y,"∼","\\thicksim");l(u,b,y,"≈","\\thickapprox");l(u,b,y,"⫆","\\supseteqq",!0);l(u,b,y,"⋑","\\Supset",!0);l(u,b,y,"⊐","\\sqsupset",!0);l(u,b,y,"≽","\\succcurlyeq",!0);l(u,b,y,"⋟","\\curlyeqsucc",!0);l(u,b,y,"≿","\\succsim",!0);l(u,b,y,"⪸","\\succapprox",!0);l(u,b,y,"⊳","\\vartriangleright");l(u,b,y,"⊵","\\trianglerighteq");l(u,b,y,"⊩","\\Vdash",!0);l(u,b,y,"∣","\\shortmid");l(u,b,y,"∥","\\shortparallel");l(u,b,y,"≬","\\between",!0);l(u,b,y,"⋔","\\pitchfork",!0);l(u,b,y,"∝","\\varpropto");l(u,b,y,"◀","\\blacktriangleleft");l(u,b,y,"∴","\\therefore",!0);l(u,b,y,"∍","\\backepsilon");l(u,b,y,"▶","\\blacktriangleright");l(u,b,y,"∵","\\because",!0);l(u,b,y,"⋘","\\llless");l(u,b,y,"⋙","\\gggtr");l(u,b,j,"⊲","\\lhd");l(u,b,j,"⊳","\\rhd");l(u,b,y,"≂","\\eqsim",!0);l(u,h,y,"⋈","\\Join");l(u,b,y,"≑","\\Doteq",!0);l(u,b,j,"∔","\\dotplus",!0);l(u,b,j,"∖","\\smallsetminus");l(u,b,j,"⋒","\\Cap",!0);l(u,b,j,"⋓","\\Cup",!0);l(u,b,j,"⩞","\\doublebarwedge",!0);l(u,b,j,"⊟","\\boxminus",!0);l(u,b,j,"⊞","\\boxplus",!0);l(u,b,j,"⋇","\\divideontimes",!0);l(u,b,j,"⋉","\\ltimes",!0);l(u,b,j,"⋊","\\rtimes",!0);l(u,b,j,"⋋","\\leftthreetimes",!0);l(u,b,j,"⋌","\\rightthreetimes",!0);l(u,b,j,"⋏","\\curlywedge",!0);l(u,b,j,"⋎","\\curlyvee",!0);l(u,b,j,"⊝","\\circleddash",!0);l(u,b,j,"⊛","\\circledast",!0);l(u,b,j,"⋅","\\centerdot");l(u,b,j,"⊺","\\intercal",!0);l(u,b,j,"⋒","\\doublecap");l(u,b,j,"⋓","\\doublecup");l(u,b,j,"⊠","\\boxtimes",!0);l(u,b,y,"⇢","\\dashrightarrow",!0);l(u,b,y,"⇠","\\dashleftarrow",!0);l(u,b,y,"⇇","\\leftleftarrows",!0);l(u,b,y,"⇆","\\leftrightarrows",!0);l(u,b,y,"⇚","\\Lleftarrow",!0);l(u,b,y,"↞","\\twoheadleftarrow",!0);l(u,b,y,"↢","\\leftarrowtail",!0);l(u,b,y,"↫","\\looparrowleft",!0);l(u,b,y,"⇋","\\leftrightharpoons",!0);l(u,b,y,"↶","\\curvearrowleft",!0);l(u,b,y,"↺","\\circlearrowleft",!0);l(u,b,y,"↰","\\Lsh",!0);l(u,b,y,"⇈","\\upuparrows",!0);l(u,b,y,"↿","\\upharpoonleft",!0);l(u,b,y,"⇃","\\downharpoonleft",!0);l(u,h,y,"⊶","\\origof",!0);l(u,h,y,"⊷","\\imageof",!0);l(u,b,y,"⊸","\\multimap",!0);l(u,b,y,"↭","\\leftrightsquigarrow",!0);l(u,b,y,"⇉","\\rightrightarrows",!0);l(u,b,y,"⇄","\\rightleftarrows",!0);l(u,b,y,"↠","\\twoheadrightarrow",!0);l(u,b,y,"↣","\\rightarrowtail",!0);l(u,b,y,"↬","\\looparrowright",!0);l(u,b,y,"↷","\\curvearrowright",!0);l(u,b,y,"↻","\\circlearrowright",!0);l(u,b,y,"↱","\\Rsh",!0);l(u,b,y,"⇊","\\downdownarrows",!0);l(u,b,y,"↾","\\upharpoonright",!0);l(u,b,y,"⇂","\\downharpoonright",!0);l(u,b,y,"⇝","\\rightsquigarrow",!0);l(u,b,y,"⇝","\\leadsto");l(u,b,y,"⇛","\\Rrightarrow",!0);l(u,b,y,"↾","\\restriction");l(u,h,k,"‘","`");l(u,h,k,"$","\\$");l(_,h,k,"$","\\$");l(_,h,k,"$","\\textdollar");l(u,h,k,"%","\\%");l(_,h,k,"%","\\%");l(u,h,k,"_","\\_");l(_,h,k,"_","\\_");l(_,h,k,"_","\\textunderscore");l(u,h,k,"∠","\\angle",!0);l(u,h,k,"∞","\\infty",!0);l(u,h,k,"′","\\prime");l(u,h,k,"△","\\triangle");l(u,h,k,"Γ","\\Gamma",!0);l(u,h,k,"Δ","\\Delta",!0);l(u,h,k,"Θ","\\Theta",!0);l(u,h,k,"Λ","\\Lambda",!0);l(u,h,k,"Ξ","\\Xi",!0);l(u,h,k,"Π","\\Pi",!0);l(u,h,k,"Σ","\\Sigma",!0);l(u,h,k,"Υ","\\Upsilon",!0);l(u,h,k,"Φ","\\Phi",!0);l(u,h,k,"Ψ","\\Psi",!0);l(u,h,k,"Ω","\\Omega",!0);l(u,h,k,"A","Α");l(u,h,k,"B","Β");l(u,h,k,"E","Ε");l(u,h,k,"Z","Ζ");l(u,h,k,"H","Η");l(u,h,k,"I","Ι");l(u,h,k,"K","Κ");l(u,h,k,"M","Μ");l(u,h,k,"N","Ν");l(u,h,k,"O","Ο");l(u,h,k,"P","Ρ");l(u,h,k,"T","Τ");l(u,h,k,"X","Χ");l(u,h,k,"¬","\\neg",!0);l(u,h,k,"¬","\\lnot");l(u,h,k,"⊤","\\top");l(u,h,k,"⊥","\\bot");l(u,h,k,"∅","\\emptyset");l(u,b,k,"∅","\\varnothing");l(u,h,Q,"α","\\alpha",!0);l(u,h,Q,"β","\\beta",!0);l(u,h,Q,"γ","\\gamma",!0);l(u,h,Q,"δ","\\delta",!0);l(u,h,Q,"ϵ","\\epsilon",!0);l(u,h,Q,"ζ","\\zeta",!0);l(u,h,Q,"η","\\eta",!0);l(u,h,Q,"θ","\\theta",!0);l(u,h,Q,"ι","\\iota",!0);l(u,h,Q,"κ","\\kappa",!0);l(u,h,Q,"λ","\\lambda",!0);l(u,h,Q,"μ","\\mu",!0);l(u,h,Q,"ν","\\nu",!0);l(u,h,Q,"ξ","\\xi",!0);l(u,h,Q,"ο","\\omicron",!0);l(u,h,Q,"π","\\pi",!0);l(u,h,Q,"ρ","\\rho",!0);l(u,h,Q,"σ","\\sigma",!0);l(u,h,Q,"τ","\\tau",!0);l(u,h,Q,"υ","\\upsilon",!0);l(u,h,Q,"ϕ","\\phi",!0);l(u,h,Q,"χ","\\chi",!0);l(u,h,Q,"ψ","\\psi",!0);l(u,h,Q,"ω","\\omega",!0);l(u,h,Q,"ε","\\varepsilon",!0);l(u,h,Q,"ϑ","\\vartheta",!0);l(u,h,Q,"ϖ","\\varpi",!0);l(u,h,Q,"ϱ","\\varrho",!0);l(u,h,Q,"ς","\\varsigma",!0);l(u,h,Q,"φ","\\varphi",!0);l(u,h,j,"∗","*",!0);l(u,h,j,"+","+");l(u,h,j,"−","-",!0);l(u,h,j,"⋅","\\cdot",!0);l(u,h,j,"∘","\\circ",!0);l(u,h,j,"÷","\\div",!0);l(u,h,j,"±","\\pm",!0);l(u,h,j,"×","\\times",!0);l(u,h,j,"∩","\\cap",!0);l(u,h,j,"∪","\\cup",!0);l(u,h,j,"∖","\\setminus",!0);l(u,h,j,"∧","\\land");l(u,h,j,"∨","\\lor");l(u,h,j,"∧","\\wedge",!0);l(u,h,j,"∨","\\vee",!0);l(u,h,k,"√","\\surd");l(u,h,bt,"⟨","\\langle",!0);l(u,h,bt,"∣","\\lvert");l(u,h,bt,"∥","\\lVert");l(u,h,it,"?","?");l(u,h,it,"!","!");l(u,h,it,"⟩","\\rangle",!0);l(u,h,it,"∣","\\rvert");l(u,h,it,"∥","\\rVert");l(u,h,y,"=","=");l(u,h,y,":",":");l(u,h,y,"≈","\\approx",!0);l(u,h,y,"≅","\\cong",!0);l(u,h,y,"≥","\\ge");l(u,h,y,"≥","\\geq",!0);l(u,h,y,"←","\\gets");l(u,h,y,">","\\gt",!0);l(u,h,y,"∈","\\in",!0);l(u,h,y,"","\\@not");l(u,h,y,"⊂","\\subset",!0);l(u,h,y,"⊃","\\supset",!0);l(u,h,y,"⊆","\\subseteq",!0);l(u,h,y,"⊇","\\supseteq",!0);l(u,b,y,"⊈","\\nsubseteq",!0);l(u,b,y,"⊉","\\nsupseteq",!0);l(u,h,y,"⊨","\\models");l(u,h,y,"←","\\leftarrow",!0);l(u,h,y,"≤","\\le");l(u,h,y,"≤","\\leq",!0);l(u,h,y,"<","\\lt",!0);l(u,h,y,"→","\\rightarrow",!0);l(u,h,y,"→","\\to");l(u,b,y,"≱","\\ngeq",!0);l(u,b,y,"≰","\\nleq",!0);l(u,h,Xt," ","\\ ");l(u,h,Xt," ","\\space");l(u,h,Xt," ","\\nobreakspace");l(_,h,Xt," ","\\ ");l(_,h,Xt," "," ");l(_,h,Xt," ","\\space");l(_,h,Xt," ","\\nobreakspace");l(u,h,Xt,"","\\nobreak");l(u,h,Xt,"","\\allowbreak");l(u,h,V0,",",",");l(u,h,V0,";",";");l(u,b,j,"⊼","\\barwedge",!0);l(u,b,j,"⊻","\\veebar",!0);l(u,h,j,"⊙","\\odot",!0);l(u,h,j,"⊕","\\oplus",!0);l(u,h,j,"⊗","\\otimes",!0);l(u,h,k,"∂","\\partial",!0);l(u,h,j,"⊘","\\oslash",!0);l(u,b,j,"⊚","\\circledcirc",!0);l(u,b,j,"⊡","\\boxdot",!0);l(u,h,j,"△","\\bigtriangleup");l(u,h,j,"▽","\\bigtriangledown");l(u,h,j,"†","\\dagger");l(u,h,j,"⋄","\\diamond");l(u,h,j,"⋆","\\star");l(u,h,j,"◃","\\triangleleft");l(u,h,j,"▹","\\triangleright");l(u,h,bt,"{","\\{");l(_,h,k,"{","\\{");l(_,h,k,"{","\\textbraceleft");l(u,h,it,"}","\\}");l(_,h,k,"}","\\}");l(_,h,k,"}","\\textbraceright");l(u,h,bt,"{","\\lbrace");l(u,h,it,"}","\\rbrace");l(u,h,bt,"[","\\lbrack",!0);l(_,h,k,"[","\\lbrack",!0);l(u,h,it,"]","\\rbrack",!0);l(_,h,k,"]","\\rbrack",!0);l(u,h,bt,"(","\\lparen",!0);l(u,h,it,")","\\rparen",!0);l(_,h,k,"<","\\textless",!0);l(_,h,k,">","\\textgreater",!0);l(u,h,bt,"⌊","\\lfloor",!0);l(u,h,it,"⌋","\\rfloor",!0);l(u,h,bt,"⌈","\\lceil",!0);l(u,h,it,"⌉","\\rceil",!0);l(u,h,k,"\\","\\backslash");l(u,h,k,"∣","|");l(u,h,k,"∣","\\vert");l(_,h,k,"|","\\textbar",!0);l(u,h,k,"∥","\\|");l(u,h,k,"∥","\\Vert");l(_,h,k,"∥","\\textbardbl");l(_,h,k,"~","\\textasciitilde");l(_,h,k,"\\","\\textbackslash");l(_,h,k,"^","\\textasciicircum");l(u,h,y,"↑","\\uparrow",!0);l(u,h,y,"⇑","\\Uparrow",!0);l(u,h,y,"↓","\\downarrow",!0);l(u,h,y,"⇓","\\Downarrow",!0);l(u,h,y,"↕","\\updownarrow",!0);l(u,h,y,"⇕","\\Updownarrow",!0);l(u,h,$e,"∐","\\coprod");l(u,h,$e,"⋁","\\bigvee");l(u,h,$e,"⋀","\\bigwedge");l(u,h,$e,"⨄","\\biguplus");l(u,h,$e,"⋂","\\bigcap");l(u,h,$e,"⋃","\\bigcup");l(u,h,$e,"∫","\\int");l(u,h,$e,"∫","\\intop");l(u,h,$e,"∬","\\iint");l(u,h,$e,"∭","\\iiint");l(u,h,$e,"∏","\\prod");l(u,h,$e,"∑","\\sum");l(u,h,$e,"⨂","\\bigotimes");l(u,h,$e,"⨁","\\bigoplus");l(u,h,$e,"⨀","\\bigodot");l(u,h,$e,"∮","\\oint");l(u,h,$e,"∯","\\oiint");l(u,h,$e,"∰","\\oiiint");l(u,h,$e,"⨆","\\bigsqcup");l(u,h,$e,"∫","\\smallint");l(_,h,g0,"…","\\textellipsis");l(u,h,g0,"…","\\mathellipsis");l(_,h,g0,"…","\\ldots",!0);l(u,h,g0,"…","\\ldots",!0);l(u,h,g0,"⋯","\\@cdots",!0);l(u,h,g0,"⋱","\\ddots",!0);l(u,h,k,"⋮","\\varvdots");l(_,h,k,"⋮","\\varvdots");l(u,h,Me,"ˊ","\\acute");l(u,h,Me,"ˋ","\\grave");l(u,h,Me,"¨","\\ddot");l(u,h,Me,"~","\\tilde");l(u,h,Me,"ˉ","\\bar");l(u,h,Me,"˘","\\breve");l(u,h,Me,"ˇ","\\check");l(u,h,Me,"^","\\hat");l(u,h,Me,"⃗","\\vec");l(u,h,Me,"˙","\\dot");l(u,h,Me,"˚","\\mathring");l(u,h,Q,"","\\@imath");l(u,h,Q,"","\\@jmath");l(u,h,k,"ı","ı");l(u,h,k,"ȷ","ȷ");l(_,h,k,"ı","\\i",!0);l(_,h,k,"ȷ","\\j",!0);l(_,h,k,"ß","\\ss",!0);l(_,h,k,"æ","\\ae",!0);l(_,h,k,"œ","\\oe",!0);l(_,h,k,"ø","\\o",!0);l(_,h,k,"Æ","\\AE",!0);l(_,h,k,"Œ","\\OE",!0);l(_,h,k,"Ø","\\O",!0);l(_,h,Me,"ˊ","\\'");l(_,h,Me,"ˋ","\\`");l(_,h,Me,"ˆ","\\^");l(_,h,Me,"˜","\\~");l(_,h,Me,"ˉ","\\=");l(_,h,Me,"˘","\\u");l(_,h,Me,"˙","\\.");l(_,h,Me,"¸","\\c");l(_,h,Me,"˚","\\r");l(_,h,Me,"ˇ","\\v");l(_,h,Me,"¨",'\\"');l(_,h,Me,"˝","\\H");l(_,h,Me,"◯","\\textcircled");var dc={"--":!0,"---":!0,"``":!0,"''":!0};l(_,h,k,"–","--",!0);l(_,h,k,"–","\\textendash");l(_,h,k,"—","---",!0);l(_,h,k,"—","\\textemdash");l(_,h,k,"‘","`",!0);l(_,h,k,"‘","\\textquoteleft");l(_,h,k,"’","'",!0);l(_,h,k,"’","\\textquoteright");l(_,h,k,"“","``",!0);l(_,h,k,"“","\\textquotedblleft");l(_,h,k,"”","''",!0);l(_,h,k,"”","\\textquotedblright");l(u,h,k,"°","\\degree",!0);l(_,h,k,"°","\\degree");l(_,h,k,"°","\\textdegree",!0);l(u,h,k,"£","\\pounds");l(u,h,k,"£","\\mathsterling",!0);l(_,h,k,"£","\\pounds");l(_,h,k,"£","\\textsterling",!0);l(u,b,k,"✠","\\maltese");l(_,b,k,"✠","\\maltese");var Js='0123456789/@."';for(var Ta=0;Ta<Js.length;Ta++){var eo=Js.charAt(Ta);l(u,h,k,eo,eo)}var to='0123456789!@*()-=+";:?/.,';for(var Ea=0;Ea<to.length;Ea++){var ro=to.charAt(Ea);l(_,h,k,ro,ro)}var $n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz";for(var Ma=0;Ma<$n.length;Ma++){var kn=$n.charAt(Ma);l(u,h,Q,kn,kn),l(_,h,k,kn,kn)}l(u,b,k,"C","ℂ");l(_,b,k,"C","ℂ");l(u,b,k,"H","ℍ");l(_,b,k,"H","ℍ");l(u,b,k,"N","ℕ");l(_,b,k,"N","ℕ");l(u,b,k,"P","ℙ");l(_,b,k,"P","ℙ");l(u,b,k,"Q","ℚ");l(_,b,k,"Q","ℚ");l(u,b,k,"R","ℝ");l(_,b,k,"R","ℝ");l(u,b,k,"Z","ℤ");l(_,b,k,"Z","ℤ");l(u,h,Q,"h","ℎ");l(_,h,Q,"h","ℎ");var re;for(var tt=0;tt<$n.length;tt++){var ze=$n.charAt(tt);re=String.fromCharCode(55349,56320+tt),l(u,h,Q,ze,re),l(_,h,k,ze,re),re=String.fromCharCode(55349,56372+tt),l(u,h,Q,ze,re),l(_,h,k,ze,re),re=String.fromCharCode(55349,56424+tt),l(u,h,Q,ze,re),l(_,h,k,ze,re),re=String.fromCharCode(55349,56580+tt),l(u,h,Q,ze,re),l(_,h,k,ze,re),re=String.fromCharCode(55349,56684+tt),l(u,h,Q,ze,re),l(_,h,k,ze,re),re=String.fromCharCode(55349,56736+tt),l(u,h,Q,ze,re),l(_,h,k,ze,re),re=String.fromCharCode(55349,56788+tt),l(u,h,Q,ze,re),l(_,h,k,ze,re),re=String.fromCharCode(55349,56840+tt),l(u,h,Q,ze,re),l(_,h,k,ze,re),re=String.fromCharCode(55349,56944+tt),l(u,h,Q,ze,re),l(_,h,k,ze,re),tt<26&&(re=String.fromCharCode(55349,56632+tt),l(u,h,Q,ze,re),l(_,h,k,ze,re),re=String.fromCharCode(55349,56476+tt),l(u,h,Q,ze,re),l(_,h,k,ze,re))}re="𝕜";l(u,h,Q,"k",re);l(_,h,k,"k",re);for(var Ar=0;Ar<10;Ar++){var nr=Ar.toString();re=String.fromCharCode(55349,57294+Ar),l(u,h,Q,nr,re),l(_,h,k,nr,re),re=String.fromCharCode(55349,57314+Ar),l(u,h,Q,nr,re),l(_,h,k,nr,re),re=String.fromCharCode(55349,57324+Ar),l(u,h,Q,nr,re),l(_,h,k,nr,re),re=String.fromCharCode(55349,57334+Ar),l(u,h,Q,nr,re),l(_,h,k,nr,re)}var ii="ÐÞþ";for(var Ca=0;Ca<ii.length;Ca++){var xn=ii.charAt(Ca);l(u,h,Q,xn,xn),l(_,h,k,xn,xn)}var si={mathClass:"mathbf",textClass:"textbf",font:"Main-Bold"},no={mathClass:"mathnormal",textClass:"textit",font:"Math-Italic"},ao={mathClass:"boldsymbol",textClass:"boldsymbol",font:"Main-BoldItalic"},tp={mathClass:"mathscr",textClass:"textscr",font:"Script-Regular"},zr={mathClass:"",textClass:"",font:""},io={mathClass:"mathfrak",textClass:"textfrak",font:"Fraktur-Regular"},so={mathClass:"mathbb",textClass:"textbb",font:"AMS-Regular"},oo={mathClass:"mathboldfrak",textClass:"textboldfrak",font:"Fraktur-Regular"},oi={mathClass:"mathsf",textClass:"textsf",font:"SansSerif-Regular"},li={mathClass:"mathboldsf",textClass:"textboldsf",font:"SansSerif-Bold"},lo={mathClass:"mathitsf",textClass:"textitsf",font:"SansSerif-Italic"},ci={mathClass:"mathtt",textClass:"texttt",font:"Typewriter-Regular"},co=[si,si,no,no,ao,ao,tp,zr,zr,zr,io,io,so,so,oo,oo,oi,oi,li,li,lo,lo,zr,zr,ci,ci],rp=[si,zr,oi,li,ci],np=t=>{var e=t.charCodeAt(0),r=t.charCodeAt(1),n=(e-55296)*1024+(r-56320)+65536;if(119808<=n&&n<120484){var a=Math.floor((n-119808)/26);return co[a]}else if(120782<=n&&n<=120831){var i=Math.floor((n-120782)/10);return rp[i]}else{if(n===120485||n===120486)return co[0];if(120486<n&&n<120782)return zr;throw new B("Unsupported character: "+t)}};function mt(t){var e=t.strict,r=t.errorCode,n=t.errorMsg,a=t.token,i=t.report,s=e;if(typeof e=="function")if(i)s=e(r,n,a);else try{s=e(r,n,a)}catch{s="error"}switch(s){case!0:case"error":if(i)throw new B("LaTeX-incompatible input and strict mode is set to 'error': "+(n+" ["+r+"]"),a);return!0;case!1:case"ignore":if(!i)return!1;break;case"warn":default:if(typeof console<"u"&&console.warn("LaTeX-incompatible input and strict mode is set to 'warn': "+(n+" ["+r+"]")),!i)return!1;break}}var Un=function(e,r,n){if(Te[n][e]){var a=Te[n][e].replace;a&&(e=a)}return{value:e,metrics:Hi(e,r,n)}},nt=function(e,r,n,a,i){var s=Un(e,r,n),o=s.metrics;e=s.value;var c;if(o){var d=o.italic;(n==="text"||a&&a.font==="mathit")&&(d=0),c=new Et(e,o.height,o.depth,d,o.skew,o.width,i)}else mt({strict:a.strict,errorCode:"symbolNotInFont",errorMsg:"No character metrics for '"+e+"' in style '"+r+"' and mode '"+n+"'",report:!0}),c=new Et(e,0,0,0,0,0,i);c.maxFontSize=a.sizeMultiplier,a.style.isTight()&&c.classes.push("mtight");var p=a.getColor();return p&&(c.style.color=p),c},Ui=function(e,r,n,a){return a===void 0&&(a=[]),n.font==="boldsymbol"&&Un(e,"Main-Bold",r).metrics?nt(e,"Main-Bold",r,n,a.concat(["mathbf"])):e==="\\"||Te[r][e].font==="main"?nt(e,"Main-Regular",r,n,a):nt(e,"AMS-Regular",r,n,a.concat(["amsrm"]))},ap=function(e,r,n){return n!=="textord"&&Un(e,"Math-BoldItalic",r).metrics?{fontName:"Math-BoldItalic",fontClass:"boldsymbol"}:{fontName:"Main-Bold",fontClass:"mathbf"}},Wn=function(e,r){var n=e.type==="mathord"?"mathord":"textord",a=e.mode,i=e.text,s=["mord"],o=r.font,c=r.fontFamily,d=r.fontWeight,p=r.fontShape,g=a==="math"||a==="text"&&!!o,v=g?o:c,w="",A="";if(i.charCodeAt(0)===55349){var M=np(i);w=M.font,A=M[a+"Class"]}if(w)return nt(i,w,a,r,s.concat(A));if(v){var D,S;if(v==="boldsymbol"){var C=ap(i,a,n);D=C.fontName,S=[C.fontClass]}else g?(D=ui[o].fontName,S=[o]):(D=Sn(c,d,p),S=[c,d,p]);if(Un(i,D,a).metrics)return nt(i,D,a,r,s.concat(S));if(Object.prototype.hasOwnProperty.call(dc,i)&&D.slice(0,10)==="Typewriter"){for(var W=[],K=0;K<i.length;K++)W.push(nt(i[K],D,a,r,s.concat(S)));return Kt(W)}}if(n==="mathord")return nt(i,"Math-Italic",a,r,s.concat(["mathnormal"]));if(n==="textord"){var X=Te[a][i]&&Te[a][i].font;if(X==="ams"){var T=Sn("amsrm",d,p);return nt(i,T,a,r,s.concat("amsrm",d,p))}else if(X==="main"||!X){var R=Sn("textrm",d,p);return nt(i,R,a,r,s.concat(d,p))}else{var U=Sn(X,d,p);return nt(i,U,a,r,s.concat(U,d,p))}}else throw new Error("unexpected type: "+n+" in makeOrd")},ip=(t,e)=>{if(dr(t.classes)!==dr(e.classes)||t.skew!==e.skew||t.maxFontSize!==e.maxFontSize||t.italic!==0&&t.hasClass("mathnormal"))return!1;if(t.classes.length===1){var r=t.classes[0];if(r==="mbin"||r==="mord")return!1}for(var n of Object.keys(t.style))if(t.style[n]!==e.style[n])return!1;for(var a of Object.keys(e.style))if(t.style[a]!==e.style[a])return!1;return!0},hc=t=>{for(var e=0;e<t.length-1;e++){var r=t[e],n=t[e+1];r instanceof Et&&n instanceof Et&&ip(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,t.splice(e+1,1),e--)}return t},Wi=function(e){for(var r=0,n=0,a=0,i=0;i<e.children.length;i++){var s=e.children[i];s.height>r&&(r=s.height),s.depth>n&&(n=s.depth),s.maxFontSize>a&&(a=s.maxFontSize)}e.height=r,e.depth=n,e.maxFontSize=a},P=function(e,r,n,a){var i=new j0(e,r,n,a);return Wi(i),i},pr=(t,e,r,n)=>new j0(t,e,r,n),o0=function(e,r,n){var a=P([e],[],r);return a.height=Math.max(n||r.fontMetrics().defaultRuleThickness,r.minRuleThickness),a.style.borderBottomWidth=H(a.height),a.maxFontSize=1,a},sp=function(e,r,n,a){var i=new Fi(e,r,n,a);return Wi(i),i},Kt=function(e){var r=new f0(e);return Wi(r),r},l0=function(e,r){return e instanceof f0?P([],[e],r):e},op=function(e){if(e.positionType==="individualShift"){for(var r=e.children,n=[r[0]],a=-r[0].shift-r[0].elem.depth,i=a,s=1;s<r.length;s++){var o=-r[s].shift-i-r[s].elem.depth,c=o-(r[s-1].elem.height+r[s-1].elem.depth);i=i+o,n.push({type:"kern",size:c}),n.push(r[s])}return{children:n,depth:a}}var d;if(e.positionType==="top"){for(var p=e.positionData,g=0;g<e.children.length;g++){var v=e.children[g];p-=v.type==="kern"?v.size:v.elem.height+v.elem.depth}d=p}else if(e.positionType==="bottom")d=-e.positionData;else{var w=e.children[0];if(w.type!=="elem")throw new Error('First child must have type "elem".');if(e.positionType==="shift")d=-w.elem.depth-e.positionData;else if(e.positionType==="firstBaseline")d=-w.elem.depth;else throw new Error("Invalid positionType "+e.positionType+".")}return{children:e.children,depth:d}},fe=function(e,r){for(var n=op(e),a=n.children,i=n.depth,s=0,o=0;o<a.length;o++){var c=a[o];if(c.type==="elem"){var d=c.elem;s=Math.max(s,d.maxFontSize,d.height)}}s+=2;var p=P(["pstrut"],[]);p.style.height=H(s);for(var g=[],v=i,w=i,A=i,M=0;M<a.length;M++){var D=a[M];if(D.type==="kern")A+=D.size;else{var S=D.elem,C=D.wrapperClasses||[],W=D.wrapperStyle||{},K=P(C,[p,S],void 0,W);K.style.top=H(-s-A-S.depth),D.marginLeft&&(K.style.marginLeft=D.marginLeft),D.marginRight&&(K.style.marginRight=D.marginRight),g.push(K),A+=S.height+S.depth}v=Math.min(v,A),w=Math.max(w,A)}var X=P(["vlist"],g);X.style.height=H(w);var T;if(v<0){var R=P([],[]),U=P(["vlist"],[R]);U.style.height=H(-v);var O=P(["vlist-s"],[new Et("​")]);T=[P(["vlist-r"],[X,O]),P(["vlist-r"],[U])]}else T=[P(["vlist-r"],[X])];var $=P(["vlist-t"],T);return T.length===2&&$.classes.push("vlist-t2"),$.height=w,$.depth=-v,$},pc=(t,e)=>{var r=P(["mspace"],[],e),n=Ie(t,e);return r.style.marginRight=H(n),r},Sn=(t,e,r)=>{var n,a;switch(t){case"amsrm":n="AMS";break;case"textrm":n="Main";break;case"textsf":n="SansSerif";break;case"texttt":n="Typewriter";break;default:n=t}return e==="textbf"&&r==="textit"?a="BoldItalic":e==="textbf"?a="Bold":r==="textit"?a="Italic":a="Regular",n+"-"+a},ui={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"}},mc={vec:["vec",.471,.714],oiintSize1:["oiintSize1",.957,.499],oiintSize2:["oiintSize2",1.472,.659],oiiintSize1:["oiiintSize1",1.304,.499],oiiintSize2:["oiiintSize2",1.98,.659]},fc=function(e,r){var n=mc[e],a=n[0],i=n[1],s=n[2],o=new Nr(a),c=new hr([o],{width:H(i),height:H(s),style:"width:"+H(i),viewBox:"0 0 "+1e3*i+" "+1e3*s,preserveAspectRatio:"xMinYMin"}),d=pr(["katex-overlay"],[c],r);return d.height=s,d.style.height=H(s),d.style.width=H(i),d},Ce={number:3,unit:"mu"},Tr={number:4,unit:"mu"},Bt={number:5,unit:"mu"},lp={mord:{mop:Ce,mbin:Tr,mrel:Bt,minner:Ce},mop:{mord:Ce,mop:Ce,mrel:Bt,minner:Ce},mbin:{mord:Tr,mop:Tr,mopen:Tr,minner:Tr},mrel:{mord:Bt,mop:Bt,mopen:Bt,minner:Bt},mopen:{},mclose:{mop:Ce,mbin:Tr,mrel:Bt,minner:Ce},mpunct:{mord:Ce,mop:Ce,mrel:Bt,mopen:Ce,mclose:Ce,mpunct:Ce,minner:Ce},minner:{mord:Ce,mop:Ce,mbin:Tr,mrel:Bt,mopen:Ce,mpunct:Ce,minner:Ce}},cp={mord:{mop:Ce},mop:{mord:Ce,mop:Ce},mbin:{},mrel:{},mopen:{},mclose:{mop:Ce},mpunct:{},minner:{mop:Ce}},gc={},q0={},F0={};function G(t){for(var e=t.type,r=t.names,n=t.htmlBuilder,a=t.mathmlBuilder,i=0;i<r.length;++i)gc[r[i]]=t;e&&(n&&(q0[e]=n),a&&(F0[e]=a))}function Or(t){var e=t.type,r=t.htmlBuilder,n=t.mathmlBuilder;r&&(q0[e]=r),n&&(F0[e]=n)}var H0=function(e){return e.type==="ordgroup"&&e.body.length===1?e.body[0]:e},Pe=function(e){return e.type==="ordgroup"?e.body:[e]},up=new Set(["leftmost","mbin","mopen","mrel","mop","mpunct"]),dp=new Set(["rightmost","mrel","mclose","mpunct"]),hp={display:ae.DISPLAY,text:ae.TEXT,script:ae.SCRIPT,scriptscript:ae.SCRIPTSCRIPT},pp={mord:"mord",mop:"mop",mbin:"mbin",mrel:"mrel",mopen:"mopen",mclose:"mclose",mpunct:"mpunct",minner:"minner"},Fe=function(e,r,n,a){a===void 0&&(a=[null,null]);for(var i=[],s=0;s<e.length;s++){var o=me(e[s],r);if(o instanceof f0){var c=o.children;i.push(...c)}else i.push(o)}if(hc(i),!n)return i;var d=r;if(e.length===1){var p=e[0];p.type==="sizing"?d=r.havingSize(p.size):p.type==="styling"&&(d=r.havingStyle(hp[p.style]))}var g=P([a[0]||"leftmost"],[],r),v=P([a[1]||"rightmost"],[],r),w=n==="root";return di(i,(A,M)=>{var D=M.classes[0],S=A.classes[0];D==="mbin"&&dp.has(S)?M.classes[0]="mord":S==="mbin"&&up.has(D)&&(A.classes[0]="mord")},{node:g},v,w),di(i,(A,M)=>{var D,S,C=pi(M),W=pi(A),K=C&&W?A.hasClass("mtight")?(D=cp[C])==null?void 0:D[W]:(S=lp[C])==null?void 0:S[W]:null;if(K)return pc(K,d)},{node:g},v,w),i},di=function(e,r,n,a,i){a&&e.push(a);for(var s=0;s<e.length;s++){var o=e[s],c=vc(o);if(c){di(c.children,r,n,null,i);continue}var d=!o.hasClass("mspace");if(d){var p=r(o,n.node);p&&(n.insertAfter?n.insertAfter(p):(e.unshift(p),s++))}d?n.node=o:i&&o.hasClass("katex-newline")&&(n.node=P(["leftmost"])),n.insertAfter=(g=>v=>{e.splice(g+1,0,v),s++})(s)}a&&e.pop()},vc=function(e){return e instanceof f0||e instanceof Fi||e instanceof j0&&e.hasClass("enclosing")?e:null},hi=function(e,r){var n=vc(e);if(n){var a=n.children;if(a.length){if(r==="right")return hi(a[a.length-1],"right");if(r==="left")return hi(a[0],"left")}}return e},pi=function(e,r){if(!e)return null;r&&(e=hi(e,r));var n=e.classes[0];return pp[n]||null},U0=function(e,r){var n=["nulldelimiter"].concat(e.baseSizingClasses());return P(r.concat(n))},me=function(e,r,n){if(!e)return P();if(q0[e.type]){var a=q0[e.type](e,r);if(n&&r.size!==n.size){a=P(r.sizingClasses(n),[a],r);var i=r.sizeMultiplier/n.sizeMultiplier;a.height*=i,a.depth*=i}return a}else throw new B("Got group of unknown type: '"+e.type+"'")};function An(t,e){var r=P(["katex-base"],t,e),n=P(["katex-strut"]);return n.style.height=H(r.height+r.depth),r.depth&&(n.style.verticalAlign=H(-r.depth)),r.children.unshift(n),r}function uo(t,e){var r=null;t.length===1&&t[0].type==="tag"&&(r=t[0].tag,t=t[0].body);var n=Fe(t,e,"root"),a;n.length===2&&n[1].hasClass("katex-tag")&&(a=n.pop());for(var i=[],s=[],o=0;o<n.length;o++)if(s.push(n[o]),n[o].hasClass("mbin")||n[o].hasClass("mrel")||n[o].hasClass("allowbreak")){for(var c=!1;o<n.length-1&&n[o+1].hasClass("mspace")&&!n[o+1].hasClass("katex-newline");)o++,s.push(n[o]),n[o].hasClass("nobreak")&&(c=!0);c||(i.push(An(s,e)),s=[])}else n[o].hasClass("katex-newline")&&(s.pop(),s.length>0&&(i.push(An(s,e)),s=[]),i.push(n[o]));s.length>0&&i.push(An(s,e));var d;r?(d=An(Fe(r,e,!0),e),d.classes=["katex-tag"],i.push(d)):a&&i.push(a);var p=P(["katex-html"],i);if(p.setAttribute("aria-hidden","true"),d){var g=d.children[0];g.style.height=H(p.height+p.depth),p.depth&&(g.style.verticalAlign=H(-p.depth))}return p}function bc(t){return new f0(t)}class q{constructor(e,r,n){this.type=void 0,this.attributes=void 0,this.children=void 0,this.classes=void 0,this.type=e,this.attributes={},this.children=r||[],this.classes=n||[]}setAttribute(e,r){this.attributes[e]=r}getAttribute(e){return this.attributes[e]}toNode(){var e=document.createElementNS("http://www.w3.org/1998/Math/MathML",this.type);for(var r of Object.entries(this.attributes)){var n=r[0],a=r[1];e.setAttribute(n,a)}this.classes.length>0&&(e.className=dr(this.classes));for(var i=0;i<this.children.length;i++)if(this.children[i]instanceof Oe&&this.children[i+1]instanceof Oe){for(var s=this.children[i].toText()+this.children[++i].toText();this.children[i+1]instanceof Oe;)s+=this.children[++i].toText();e.appendChild(new Oe(s).toNode())}else e.appendChild(this.children[i].toNode());return e}toMarkup(){var e="<"+this.type;for(var r of Object.entries(this.attributes)){var n=r[0],a=r[1];e+=" "+n+'="',e+=Ke(a),e+='"'}this.classes.length>0&&(e+=' class ="'+Ke(dr(this.classes))+'"'),e+=">";for(var i=0;i<this.children.length;i++)e+=this.children[i].toMarkup();return e+="</"+this.type+">",e}toText(){return this.children.map(e=>e.toText()).join("")}}class Oe{constructor(e){this.text=void 0,this.text=e}toNode(){return document.createTextNode(this.text)}toMarkup(){return Ke(this.toText())}toText(){return this.text}}class yc{constructor(e){this.width=void 0,this.character=void 0,this.width=e,e>=.05555&&e<=.05556?this.character=" ":e>=.1666&&e<=.1667?this.character=" ":e>=.2222&&e<=.2223?this.character=" ":e>=.2777&&e<=.2778?this.character="  ":e>=-.05556&&e<=-.05555?this.character=" ⁣":e>=-.1667&&e<=-.1666?this.character=" ⁣":e>=-.2223&&e<=-.2222?this.character=" ⁣":e>=-.2778&&e<=-.2777?this.character=" ⁣":this.character=null}toNode(){if(this.character)return document.createTextNode(this.character);var e=document.createElementNS("http://www.w3.org/1998/Math/MathML","mspace");return e.setAttribute("width",H(this.width)),e}toMarkup(){return this.character?"<mtext>"+this.character+"</mtext>":'<mspace width="'+H(this.width)+'"/>'}toText(){return this.character?this.character:" "}}var mp=new Set(["\\imath","\\jmath"]),fp=new Set(["mrow","mtable"]),Mt=function(e,r,n){var a,i;return Te[r][e]&&Te[r][e].replace&&e.charCodeAt(0)!==55349&&!(Object.prototype.hasOwnProperty.call(dc,e)&&((n==null||(a=n.fontFamily)==null?void 0:a.slice(4,6))==="tt"||(n==null||(i=n.font)==null?void 0:i.slice(4,6))==="tt"))&&(e=Te[r][e].replace),new Oe(e)},Gi=function(e){return e.length===1?e[0]:new q("mrow",e)},gp={mathit:"italic",boldsymbol:t=>t.type==="textord"?"bold":"bold-italic",mathbf:"bold",mathbb:"double-struck",mathsfit:"sans-serif-italic",mathfrak:"fraktur",mathscr:"script",mathcal:"script",mathsf:"sans-serif",mathtt:"monospace"},ji=(t,e)=>{if(t.mode==="text"){if(e.fontFamily==="texttt")return"monospace";if(e.fontFamily==="textsf")return e.fontShape==="textit"&&e.fontWeight==="textbf"?"sans-serif-bold-italic":e.fontShape==="textit"?"sans-serif-italic":e.fontWeight==="textbf"?"bold-sans-serif":"sans-serif";if(e.fontShape==="textit"&&e.fontWeight==="textbf")return"bold-italic";if(e.fontShape==="textit")return"italic";if(e.fontWeight==="textbf")return"bold"}var r=e.font;if(!r||r==="mathnormal")return null;var n=t.mode,a=gp[r];if(a)return typeof a=="function"?a(t):a;var i=t.text;if(mp.has(i))return null;if(Te[n][i]){var s=Te[n][i].replace;s&&(i=s)}var o=ui[r].fontName;return Hi(i,o,n)?ui[r].variant:null};function Ia(t){if(!t)return!1;if(t.type==="mi"&&t.children.length===1){var e=t.children[0];return e instanceof Oe&&e.text==="."}else if(t.type==="mo"&&t.children.length===1&&t.getAttribute("separator")==="true"&&t.getAttribute("lspace")==="0em"&&t.getAttribute("rspace")==="0em"){var r=t.children[0];return r instanceof Oe&&r.text===","}else return!1}var yt=function(e,r,n){if(e.length===1){var a=be(e[0],r);return n&&a instanceof q&&a.type==="mo"&&(a.setAttribute("lspace","0em"),a.setAttribute("rspace","0em")),[a]}for(var i=[],s,o=0;o<e.length;o++){var c=be(e[o],r);if(c instanceof q&&s instanceof q){if(c.type==="mtext"&&s.type==="mtext"&&c.getAttribute("mathvariant")===s.getAttribute("mathvariant")){s.children.push(...c.children);continue}else if(c.type==="mn"&&s.type==="mn"){s.children.push(...c.children);continue}else if(Ia(c)&&s.type==="mn"){s.children.push(...c.children);continue}else if(c.type==="mn"&&Ia(s))c.children=[...s.children,...c.children],i.pop();else if((c.type==="msup"||c.type==="msub")&&c.children.length>=1&&(s.type==="mn"||Ia(s))){var d=c.children[0];d instanceof q&&d.type==="mn"&&(d.children=[...s.children,...d.children],i.pop())}else if(s.type==="mi"&&s.children.length===1){var p=s.children[0];if(p instanceof Oe&&p.text==="̸"&&(c.type==="mo"||c.type==="mi"||c.type==="mn")){var g=c.children[0];g instanceof Oe&&g.text.length>0&&(g.text=g.text.slice(0,1)+"̸"+g.text.slice(1),i.pop())}}}i.push(c),s=c}return i},mr=function(e,r,n){return Gi(yt(e,r,n))},be=function(e,r){if(!e)return new q("mrow");if(F0[e.type])return F0[e.type](e,r);throw new B("Got group of unknown type: '"+e.type+"'")};function ho(t,e,r,n,a){var i=yt(t,r),s;i.length===1&&i[0]instanceof q&&fp.has(i[0].type)?s=i[0]:s=new q("mrow",i);var o=new q("annotation",[new Oe(e)]);o.setAttribute("encoding","application/x-tex");var c=new q("semantics",[s,o]),d=new q("math",[c]);d.setAttribute("xmlns","http://www.w3.org/1998/Math/MathML"),n&&d.setAttribute("display","block");var p=a?"katex":"katex-mathml";return P([p],[d])}var vp=[[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]],po=[.5,.6,.7,.8,.9,1,1.2,1.44,1.728,2.074,2.488],mo=function(e,r){return r.size<2?e:vp[e-1][r.size-1]};class Ht{constructor(e){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.strict=void 0,this.style=e.style,this.color=e.color,this.size=e.size||Ht.BASESIZE,this.textSize=e.textSize||this.size,this.phantom=!!e.phantom,this.font=e.font||"",this.fontFamily=e.fontFamily||"",this.fontWeight=e.fontWeight||"",this.fontShape=e.fontShape||"",this.sizeMultiplier=po[this.size-1],this.maxSize=e.maxSize,this.minRuleThickness=e.minRuleThickness,this.strict=e.strict,this._fontMetrics=void 0}extend(e){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,strict:this.strict};return Object.assign(r,e),new Ht(r)}havingStyle(e){return this.style===e?this:this.extend({style:e,size:mo(this.textSize,e)})}havingCrampedStyle(){return this.havingStyle(this.style.cramp())}havingSize(e){return this.size===e&&this.textSize===e?this:this.extend({style:this.style.text(),size:e,textSize:e,sizeMultiplier:po[e-1]})}havingBaseStyle(e){e=e||this.style.text();var r=mo(Ht.BASESIZE,e);return this.size===r&&this.textSize===Ht.BASESIZE&&this.style===e?this:this.extend({style:e,size:r})}havingBaseSizing(){var e;switch(this.style.id){case 4:case 5:e=3;break;case 6:case 7:e=1;break;default:e=6}return this.extend({style:this.style.text(),size:e})}withColor(e){return this.extend({color:e})}withPhantom(){return this.extend({phantom:!0})}withFont(e){return this.extend({font:e})}withTextFontFamily(e){return this.extend({fontFamily:e,font:""})}withTextFontWeight(e){return this.extend({fontWeight:e,font:""})}withTextFontShape(e){return this.extend({fontShape:e,font:""})}sizingClasses(e){return e.size!==this.size?["katex-sizing","reset-size"+e.size,"size"+this.size]:[]}baseSizingClasses(){return this.size!==Ht.BASESIZE?["katex-sizing","reset-size"+this.size,"size"+Ht.BASESIZE]:[]}fontMetrics(){return this._fontMetrics||(this._fontMetrics=ep(this.size)),this._fontMetrics}getColor(){return this.phantom?"transparent":this.color}}Ht.BASESIZE=6;var bp=t=>new Ht({style:t.displayMode?ae.DISPLAY:ae.TEXT,maxSize:t.maxSize,minRuleThickness:t.minRuleThickness,strict:t.strict}),yp=function(e,r){if(r.displayMode){var n=["katex-display"];r.leqno&&n.push("leqno"),r.fleqn&&n.push("fleqn"),e=P(n,[e])}return e},wp=function(e,r,n){var a=bp(n),i;if(n.output==="mathml")return ho(e,r,a,n.displayMode,!0);if(n.output==="html"){var s=uo(e,a);i=P(["katex"],[s])}else{var o=ho(e,r,a,n.displayMode,!1),c=uo(e,a);i=P(["katex"],[o,c])}return yp(i,n)},kp={widehat:"^",widecheck:"ˇ",widetilde:"~",utilde:"~",overleftarrow:"←",underleftarrow:"←",xleftarrow:"←",overrightarrow:"→",underrightarrow:"→",xrightarrow:"→",underbrace:"⏟",overbrace:"⏞",underbracket:"⎵",overbracket:"⎴",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":"="},Gn=function(e){var r=new q("mo",[new Oe(kp[e.replace(/^\\/,"")])]);return r.setAttribute("stretchy","true"),r},xp={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],overbracket:[["leftbracketover","rightbracketover"],1.6,440],underbracket:[["leftbracketunder","rightbracketunder"],1.6,410],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]},Sp=new Set(["widehat","widecheck","widetilde","utilde"]),jn=function(e,r){function n(){var c=4e5,d=e.label.slice(1);if(Sp.has(d)&&"base"in e){var p=e.base.type==="ordgroup"?e.base.body.length:1,g,v,w;if(p>5)d==="widehat"||d==="widecheck"?(g=420,c=2364,w=.42,v=d+"4"):(g=312,c=2340,w=.34,v="tilde4");else{var A=[1,1,2,2,3,3][p];d==="widehat"||d==="widecheck"?(c=[0,1062,2364,2364,2364][A],g=[0,239,300,360,420][A],w=[0,.24,.3,.3,.36,.42][A],v=d+A):(c=[0,600,1033,2339,2340][A],g=[0,260,286,306,312][A],w=[0,.26,.286,.3,.306,.34][A],v="tilde"+A)}var M=new Nr(v),D=new hr([M],{width:"100%",height:H(w),viewBox:"0 0 "+c+" "+g,preserveAspectRatio:"none"});return{span:pr([],[D],r),minWidth:0,height:w}}else{var S=[],C=xp[d];if(!C)throw new Error('No SVG data for "'+d+'".');var W=C[0],K=C[1],X=C[2],T=X/1e3,R=W.length,U,O;if(R===1){if(C.length!==4)throw new Error('Expected 4-tuple for single-path SVG data "'+d+'".');U=["hide-tail"],O=[C[3]]}else if(R===2)U=["halfarrow-left","halfarrow-right"],O=["xMinYMin","xMaxYMin"];else if(R===3)U=["brace-left","brace-center","brace-right"],O=["xMinYMin","xMidYMin","xMaxYMin"];else throw new Error(`Correct katexImagesData or update code here to support
330
- `+R+" children.");for(var $=0;$<R;$++){var L=new Nr(W[$]),F=new hr([L],{width:"400em",height:H(T),viewBox:"0 0 "+c+" "+X,preserveAspectRatio:O[$]+" slice"}),Y=pr([U[$]],[F],r);if(R===1)return{span:Y,minWidth:K,height:T};Y.style.height=H(T),S.push(Y)}return{span:P(["katex-stretchy"],S,r),minWidth:K,height:T}}}var a=n(),i=a.span,s=a.minWidth,o=a.height;return i.height=o,i.style.height=H(o),s>0&&(i.style.minWidth=H(s)),i},Ap=function(e,r,n,a,i){var s,o=e.height+e.depth+n+a;if(/fbox|color|angl/.test(r)){if(s=P(["katex-stretchy",r],[],i),r==="fbox"){var c=i.color&&i.getColor();c&&(s.style.borderColor=c)}}else{var d=[];/^[bx]cancel$/.test(r)&&d.push(new Zs({x1:"0",y1:"0",x2:"100%",y2:"100%","stroke-width":"0.046em"})),/^x?cancel$/.test(r)&&d.push(new Zs({x1:"0",y1:"100%",x2:"100%",y2:"0","stroke-width":"0.046em"}));var p=new hr(d,{width:"100%",height:H(o)});s=pr([],[p],i)}return s.height=o,s.style.height=H(o),s},Tp=["bin","close","inner","open","punct","rel"],Ep=["accent-token","mathord","op-token","spacing","textord"],Mp=new Set(Tp),Cp=new Set(Ep);function Ip(t){return Mp.has(t)}function oe(t,e){if(!t||t.type!==e)throw new Error("Expected node of type "+e+", but got "+(t?"node of type "+t.type:String(t)));return t}function Vn(t){var e=Yn(t);if(!e)throw new Error("Expected node of symbol group type, but got "+(t?"node of type "+t.type:String(t)));return e}function Yn(t){return t.type==="atom"||Cp.has(t.type)?t:null}function Vi(t,e,r){var n="";for(var a of t.body)if(a.type==="textord")n+=a.text;else if(r&&a.type==="spacing"&&a.text===" ")n+=" ";else throw new B(e,t);return n}var wc=t=>{if(t instanceof Et)return t;if(Jh(t)&&t.children.length===1)return wc(t.children[0])},kc=(t,e)=>{var r,n,a;t&&t.type==="supsub"?(n=oe(t.base,"accent"),r=n.base,t.base=r,a=Qh(me(t,e)),t.base=n):(n=oe(t,"accent"),r=n.base);var i=me(r,e.havingCrampedStyle()),s=n.isShifty&&Yt(r),o=0;if(s){var c,d;o=(c=(d=wc(i))==null?void 0:d.skew)!=null?c:0}var p=n.label==="\\c",g=p?i.height+i.depth:Math.min(i.height,e.fontMetrics().xHeight),v;if(n.isStretchy)v=jn(n,e),v=fe({positionType:"firstBaseline",children:[{type:"elem",elem:i},{type:"elem",elem:v,wrapperClasses:["svg-align"],wrapperStyle:o>0?{width:"calc(100% - "+H(2*o)+")",marginLeft:H(2*o)}:void 0}]});else{var w,A;n.label==="\\vec"?(w=fc("vec",e),A=mc.vec[1]):(w=Wn({type:"textord",mode:n.mode,text:n.label},e),w=Zh(w),w.italic=0,A=w.width,p&&(g+=w.depth)),v=P(["accent-body"],[w]);var M=n.label==="\\textcircled";M&&(v.classes.push("accent-full"),g=i.height);var D=o;M||(D-=A/2),v.style.left=H(D),n.label==="\\textcircled"&&(v.style.top=".2em"),v=fe({positionType:"firstBaseline",children:[{type:"elem",elem:i},{type:"kern",size:-g},{type:"elem",elem:v}]})}var S=P(["mord","katex-accent"],[v],e);return a?(a.children[0]=S,a.height=Math.max(S.height,a.height),a.classes[0]="mord",a):S},zp=(t,e)=>{var r=t.isStretchy?Gn(t.label):new q("mo",[Mt(t.label,t.mode)]),n=new q("mover",[be(t.base,e),r]);return n.setAttribute("accent","true"),n},Rp=new RegExp(["\\acute","\\grave","\\ddot","\\tilde","\\bar","\\breve","\\check","\\hat","\\vec","\\dot","\\mathring"].map(t=>"\\"+t).join("|"));G({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"],numArgs:1,handler:(t,e)=>{var r=H0(e[0]),n=!Rp.test(t.funcName),a=!n||t.funcName==="\\widehat"||t.funcName==="\\widetilde"||t.funcName==="\\widecheck";return{type:"accent",mode:t.parser.mode,label:t.funcName,isStretchy:n,isShifty:a,base:r}},htmlBuilder:kc,mathmlBuilder:zp});G({type:"accent",names:["\\'","\\`","\\^","\\~","\\=","\\u","\\.",'\\"',"\\c","\\r","\\H","\\v","\\textcircled"],numArgs:1,allowedInText:!0,allowedInMath:!0,argTypes:["primitive"],handler:(t,e)=>{var r=e[0],n=t.parser.mode;return n==="math"&&(mt({strict:t.parser.settings.strict,errorCode:"mathVsTextAccents",errorMsg:"LaTeX's accent "+t.funcName+" works only in text mode",report:!0}),n="text"),{type:"accent",mode:n,label:t.funcName,isStretchy:!1,isShifty:!0,base:r}}});G({type:"accentUnder",names:["\\underleftarrow","\\underrightarrow","\\underleftrightarrow","\\undergroup","\\underlinesegment","\\utilde"],numArgs:1,handler:(t,e)=>{var r=t.parser,n=t.funcName,a=e[0];return{type:"accentUnder",mode:r.mode,label:n,base:a}},htmlBuilder:(t,e)=>{var r=me(t.base,e),n=jn(t,e),a=t.label==="\\utilde"?.12:0,i=fe({positionType:"top",positionData:r.height,children:[{type:"elem",elem:n,wrapperClasses:["svg-align"]},{type:"kern",size:a},{type:"elem",elem:r}]});return P(["mord","accentunder"],[i],e)},mathmlBuilder:(t,e)=>{var r=Gn(t.label),n=new q("munder",[be(t.base,e),r]);return n.setAttribute("accentunder","true"),n}});var Tn=t=>{var e=new q("mpadded",t?[t]:[]);return e.setAttribute("width","+0.6em"),e.setAttribute("lspace","0.3em"),e};G({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"],numArgs:1,numOptionalArgs:1,handler(t,e,r){var n=t.parser,a=t.funcName;return{type:"xArrow",mode:n.mode,label:a,body:e[0],below:r[0]}},htmlBuilder(t,e){var r=e.style,n=e.havingStyle(r.sup()),a=l0(me(t.body,n,e),e),i=t.label.slice(0,2)==="\\x"?"x":"cd";a.classes.push(i+"-arrow-pad");var s;t.below&&(n=e.havingStyle(r.sub()),s=l0(me(t.below,n,e),e),s.classes.push(i+"-arrow-pad"));var o=jn(t,e),c=-e.fontMetrics().axisHeight+.5*o.height,d=-e.fontMetrics().axisHeight-.5*o.height-.111;(a.depth>.25||t.label==="\\xleftequilibrium")&&(d-=a.depth);var p;if(s){var g=-e.fontMetrics().axisHeight+s.height+.5*o.height+.111;p=fe({positionType:"individualShift",children:[{type:"elem",elem:a,shift:d},{type:"elem",elem:o,shift:c,wrapperClasses:["svg-align"]},{type:"elem",elem:s,shift:g}]})}else p=fe({positionType:"individualShift",children:[{type:"elem",elem:a,shift:d},{type:"elem",elem:o,shift:c,wrapperClasses:["svg-align"]}]});return P(["mrel","x-arrow"],[p],e)},mathmlBuilder(t,e){var r=Gn(t.label);r.setAttribute("minsize",t.label.charAt(0)==="x"?"1.75em":"3.0em");var n;if(t.body){var a=Tn(be(t.body,e));if(t.below){var i=Tn(be(t.below,e));n=new q("munderover",[r,i,a])}else n=new q("mover",[r,a])}else if(t.below){var s=Tn(be(t.below,e));n=new q("munder",[r,s])}else n=Tn(),n=new q("mover",[r,n]);return n}});function Dp(t,e){var r=Fe(t.body,e,!0);return P([t.mclass],r,e)}function Np(t,e){var r,n=yt(t.body,e);return t.mclass==="minner"?r=new q("mpadded",n):t.mclass==="mord"?t.isCharacterBox?(r=n[0],r.type="mi"):r=new q("mi",n):(t.isCharacterBox?(r=n[0],r.type="mo"):r=new q("mo",n),t.mclass==="mbin"?(r.attributes.lspace="0.22em",r.attributes.rspace="0.22em"):t.mclass==="mpunct"?(r.attributes.lspace="0em",r.attributes.rspace="0.17em"):(t.mclass==="mopen"||t.mclass==="mclose")&&(r.attributes.lspace="0em",r.attributes.rspace="0em")),r}G({type:"mclass",names:["\\mathord","\\mathbin","\\mathrel","\\mathopen","\\mathclose","\\mathpunct","\\mathinner"],numArgs:1,primitive:!0,handler(t,e){var r=t.parser,n=t.funcName,a=e[0];return{type:"mclass",mode:r.mode,mclass:"m"+n.slice(5),body:Pe(a),isCharacterBox:Yt(a)}},htmlBuilder:Dp,mathmlBuilder:Np});var Xn=t=>{var e=t.type==="ordgroup"&&t.body.length?t.body[0]:t;return e.type==="atom"&&(e.family==="bin"||e.family==="rel")?"m"+e.family:"mord"};G({type:"mclass",names:["\\@binrel"],numArgs:2,handler(t,e){var r=t.parser;return{type:"mclass",mode:r.mode,mclass:Xn(e[0]),body:Pe(e[1]),isCharacterBox:Yt(e[1])}}});G({type:"mclass",names:["\\stackrel","\\overset","\\underset"],numArgs:2,handler(t,e){var r=t.parser,n=t.funcName,a=e[1],i=e[0],s;n!=="\\stackrel"?s=Xn(a):s="mrel";var o={type:"op",mode:a.mode,limits:!0,alwaysHandleSupSub:!0,parentIsSupSub:!1,symbol:!1,suppressBaseShift:n!=="\\stackrel",body:Pe(a)},c=n==="\\underset"?{type:"supsub",mode:i.mode,base:o,sub:i}:{type:"supsub",mode:i.mode,base:o,sup:i};return{type:"mclass",mode:r.mode,mclass:s,body:[c],isCharacterBox:Yt(c)}}});G({type:"pmb",names:["\\pmb"],numArgs:1,allowedInText:!0,handler(t,e){var r=t.parser;return{type:"pmb",mode:r.mode,mclass:Xn(e[0]),body:Pe(e[0])}},htmlBuilder(t,e){var r=Fe(t.body,e,!0),n=P([t.mclass],r,e);return n.style.textShadow="0.02em 0.01em 0.04px",n},mathmlBuilder(t,e){var r=yt(t.body,e),n=new q("mstyle",r);return n.setAttribute("style","text-shadow: 0.02em 0.01em 0.04px"),n}});var _p={">":"\\\\cdrightarrow","<":"\\\\cdleftarrow","=":"\\\\cdlongequal",A:"\\uparrow",V:"\\downarrow","|":"\\Vert",".":"no arrow"},fo=()=>({type:"styling",body:[],mode:"math",style:"display",resetFont:!0}),go=t=>t.type==="textord"&&t.text==="@",Lp=(t,e)=>(t.type==="mathord"||t.type==="atom")&&t.text===e;function Pp(t,e,r){var n=_p[t];switch(n){case"\\\\cdrightarrow":case"\\\\cdleftarrow":return r.callFunction(n,[e[0]],[e[1]]);case"\\uparrow":case"\\downarrow":{var a=r.callFunction("\\\\cdleft",[e[0]],[]),i={type:"atom",text:n,mode:"math",family:"rel"},s=r.callFunction("\\Big",[i],[]),o=r.callFunction("\\\\cdright",[e[1]],[]),c={type:"ordgroup",mode:"math",body:[a,s,o]};return r.callFunction("\\\\cdparent",[c],[])}case"\\\\cdlongequal":return r.callFunction("\\\\cdlongequal",[],[]);case"\\Vert":{var d={type:"textord",text:"\\Vert",mode:"math"};return r.callFunction("\\Big",[d],[])}default:return{type:"textord",text:" ",mode:"math"}}}function Op(t){var e=[];for(t.gullet.beginGroup(),t.gullet.macros.set("\\cr","\\\\\\relax"),t.gullet.beginGroup();;){e.push(t.parseExpression(!1,"\\\\")),t.gullet.endGroup(),t.gullet.beginGroup();var r=t.fetch().text;if(r==="&"||r==="\\\\")t.consume();else if(r==="\\end"){e[e.length-1].length===0&&e.pop();break}else throw new B("Expected \\\\ or \\cr or \\end",t.nextToken)}for(var n=[],a=[n],i=0;i<e.length;i++){for(var s=e[i],o=fo(),c=0;c<s.length;c++)if(!go(s[c]))o.body.push(s[c]);else{n.push(o),c+=1;var d=Vn(s[c]).text,p=new Array(2);if(p[0]={type:"ordgroup",mode:"math",body:[]},p[1]={type:"ordgroup",mode:"math",body:[]},!"=|.".includes(d))if("<>AV".includes(d))for(var g=0;g<2;g++){for(var v=!0,w=c+1;w<s.length;w++){if(Lp(s[w],d)){v=!1,c=w;break}if(go(s[w]))throw new B("Missing a "+d+" character to complete a CD arrow.",s[w]);p[g].body.push(s[w])}if(v)throw new B("Missing a "+d+" character to complete a CD arrow.",s[c])}else throw new B('Expected one of "<>AV=|." after @',s[c]);var A=Pp(d,p,t),M={type:"styling",body:[A],mode:"math",style:"display",resetFont:!0};n.push(M),o=fo()}i%2===0?n.push(o):n.shift(),n=[],a.push(n)}t.gullet.endGroup(),t.gullet.endGroup();var D=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:D,colSeparationType:"CD",hLinesBeforeRow:new Array(a.length+1).fill([])}}G({type:"cdlabel",names:["\\\\cdleft","\\\\cdright"],numArgs:1,handler(t,e){var r=t.parser,n=t.funcName;return{type:"cdlabel",mode:r.mode,side:n.slice(4),label:e[0]}},htmlBuilder(t,e){var r=e.havingStyle(e.style.sup()),n=l0(me(t.label,r,e),e);return n.classes.push("cd-label-"+t.side),n.style.bottom=H(.8-n.depth),n.height=0,n.depth=0,n},mathmlBuilder(t,e){var r=new q("mrow",[be(t.label,e)]);return r=new q("mpadded",[r]),r.setAttribute("width","0"),t.side==="left"&&r.setAttribute("lspace","-1width"),r.setAttribute("voffset","0.7em"),r=new q("mstyle",[r]),r.setAttribute("displaystyle","false"),r.setAttribute("scriptlevel","1"),r}});G({type:"cdlabelparent",names:["\\\\cdparent"],numArgs:1,handler(t,e){var r=t.parser;return{type:"cdlabelparent",mode:r.mode,fragment:e[0]}},htmlBuilder(t,e){var r=l0(me(t.fragment,e),e);return r.classes.push("cd-vert-arrow"),r},mathmlBuilder(t,e){return new q("mrow",[be(t.fragment,e)])}});G({type:"textord",names:["\\@char"],numArgs:1,allowedInText:!0,handler(t,e){var r=t.parser,n=oe(e[0],"ordgroup"),a=Vi(n,"\\@char has non-numeric argument"),i=parseInt(a),s;if(isNaN(i))throw new B("\\@char has non-numeric argument "+a);if(i<0||i>1114111)throw new B("\\@char with invalid code point "+a);return i<=65535?s=String.fromCharCode(i):(i-=65536,s=String.fromCharCode((i>>10)+55296,(i&1023)+56320)),{type:"textord",mode:r.mode,text:s}}});var $p=(t,e)=>{var r=Fe(t.body,e.withColor(t.color),!1);return Kt(r)},Bp=(t,e)=>{var r=yt(t.body,e.withColor(t.color)),n=new q("mstyle",r);return n.setAttribute("mathcolor",t.color),n};G({type:"color",names:["\\textcolor"],numArgs:2,allowedInText:!0,argTypes:["color","original"],handler(t,e){var r=t.parser,n=oe(e[0],"color-token").color,a=e[1];return{type:"color",mode:r.mode,color:n,body:Pe(a)}},htmlBuilder:$p,mathmlBuilder:Bp});G({type:"color",names:["\\color"],numArgs:1,allowedInText:!0,argTypes:["color"],handler(t,e){var r=t.parser,n=t.breakOnTokenText,a=oe(e[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}}});G({type:"cr",names:["\\\\"],numArgs:0,numOptionalArgs:0,allowedInText:!0,handler(t){var e=t.parser,r=e.gullet.future().text==="["?e.parseSizeGroup(!0):null,n=!e.settings.displayMode||!mt({strict:e.settings.strict,errorCode:"newLineInDisplayMode",errorMsg:"In LaTeX, \\\\ or \\newline does nothing in display mode",report:!1});return{type:"cr",mode:e.mode,newLine:n,size:r&&oe(r,"size").value}},htmlBuilder(t,e){var r=P(["mspace"],[],e);return t.newLine&&(r.classes.push("katex-newline"),t.size&&(r.style.marginTop=H(Ie(t.size,e)))),r},mathmlBuilder(t,e){var r=new q("mspace");return t.newLine&&(r.setAttribute("linebreak","newline"),t.size&&r.setAttribute("height",H(Ie(t.size,e)))),r}});var mi={"\\global":"\\global","\\long":"\\\\globallong","\\\\globallong":"\\\\globallong","\\def":"\\gdef","\\gdef":"\\gdef","\\edef":"\\xdef","\\xdef":"\\xdef","\\let":"\\\\globallet","\\futurelet":"\\\\globalfuture"},xc=t=>{var e=t.text;if(/^(?:[\\{}$&#^_]|EOF)$/.test(e))throw new B("Expected a control sequence",t);return e},qp=t=>{var e=t.gullet.popToken();return e.text==="="&&(e=t.gullet.popToken(),e.text===" "&&(e=t.gullet.popToken())),e},Sc=(t,e,r,n)=>{var a=t.gullet.macros.get(r.text);a==null&&(r.noexpand=!0,a={tokens:[r],numArgs:0,unexpandable:!t.gullet.isExpandable(r.text)}),t.gullet.macros.set(e,a,n)};G({type:"internal",names:["\\global","\\long","\\\\globallong"],numArgs:0,allowedInText:!0,handler(t){var e=t.parser,r=t.funcName;e.consumeSpaces();var n=e.fetch();if(mi[n.text])return(r==="\\global"||r==="\\\\globallong")&&(n.text=mi[n.text]),oe(e.parseFunction(),"internal");throw new B("Invalid token after macro prefix",n)}});G({type:"internal",names:["\\def","\\gdef","\\edef","\\xdef"],numArgs:0,allowedInText:!0,primitive:!0,handler(t){var e=t.parser,r=t.funcName,n=e.gullet.popToken(),a=n.text;if(/^(?:[\\{}$&#^_]|EOF)$/.test(a))throw new B("Expected a control sequence",n);for(var i=0,s,o=[[]];e.gullet.future().text!=="{";)if(n=e.gullet.popToken(),n.text==="#"){if(e.gullet.future().text==="{"){s=e.gullet.future(),o[i].push("{");break}if(n=e.gullet.popToken(),!/^[1-9]$/.test(n.text))throw new B('Invalid argument number "'+n.text+'"');if(parseInt(n.text)!==i+1)throw new B('Argument number "'+n.text+'" out of order');i++,o.push([])}else{if(n.text==="EOF")throw new B("Expected a macro definition");o[i].push(n.text)}var c=e.gullet.consumeArg(),d=c.tokens;return s&&d.unshift(s),(r==="\\edef"||r==="\\xdef")&&(d=e.gullet.expandTokens(d),d.reverse()),e.gullet.macros.set(a,{tokens:d,numArgs:i,delimiters:o},r===mi[r]),{type:"internal",mode:e.mode}}});G({type:"internal",names:["\\let","\\\\globallet"],numArgs:0,allowedInText:!0,primitive:!0,handler(t){var e=t.parser,r=t.funcName,n=xc(e.gullet.popToken());e.gullet.consumeSpaces();var a=qp(e);return Sc(e,n,a,r==="\\\\globallet"),{type:"internal",mode:e.mode}}});G({type:"internal",names:["\\futurelet","\\\\globalfuture"],numArgs:0,allowedInText:!0,primitive:!0,handler(t){var e=t.parser,r=t.funcName,n=xc(e.gullet.popToken()),a=e.gullet.popToken(),i=e.gullet.popToken();return Sc(e,n,i,r==="\\\\globalfuture"),e.gullet.pushToken(i),e.gullet.pushToken(a),{type:"internal",mode:e.mode}}});var N0=function(e,r,n){var a=Te.math[e]&&Te.math[e].replace,i=Hi(a||e,r,n);if(!i)throw new Error("Unsupported symbol "+e+" and font size "+r+".");return i},Yi=function(e,r,n,a){var i=n.havingBaseStyle(r),s=P(a.concat(i.sizingClasses(n)),[e],n),o=i.sizeMultiplier/n.sizeMultiplier;return s.height*=o,s.depth*=o,s.maxFontSize=i.sizeMultiplier,s},Ac=function(e,r,n){var a=r.havingBaseStyle(n),i=(1-r.sizeMultiplier/a.sizeMultiplier)*r.fontMetrics().axisHeight;e.classes.push("delimcenter"),e.style.top=H(i),e.height-=i,e.depth+=i},Fp=function(e,r,n,a,i,s){var o=nt(e,"Main-Regular",i,a),c=Yi(o,r,a,s);return Ac(c,a,r),c},Hp=function(e,r,n,a){return nt(e,"Size"+r+"-Regular",n,a)},Tc=function(e,r,n,a,i,s){var o=Hp(e,r,i,a),c=Yi(P(["delimsizing","size"+r],[o],a),ae.TEXT,a,s);return n&&Ac(c,a,ae.TEXT),c},za=function(e,r,n,a){var i;r==="Size1-Regular"?i="delim-size1":i="delim-size4";var s=P(["delimsizinginner",i],[P([],[nt(e,r,n,a)])]);return{type:"elem",elem:s}},Ra=function(e,r,n){var a=Ut["Size4-Regular"][e.charCodeAt(0)]?Ut["Size4-Regular"][e.charCodeAt(0)][4]:Ut["Size1-Regular"][e.charCodeAt(0)][4],i=new Nr("inner",Wh(e,Math.round(1e3*r))),s=new hr([i],{width:H(a),height:H(r),style:"width:"+H(a),viewBox:"0 0 "+1e3*a+" "+Math.round(1e3*r),preserveAspectRatio:"xMinYMin"}),o=pr([],[s],n);return o.height=r,o.style.height=H(r),o.style.width=H(a),{type:"elem",elem:o}},fi=.008,En={type:"kern",size:-1*fi},Up=new Set(["|","\\lvert","\\rvert","\\vert"]),Wp=new Set(["\\|","\\lVert","\\rVert","\\Vert"]),Ec=function(e,r,n,a,i,s){var o,c,d,p,g="",v=0;o=d=p=e,c=null;var w="Size1-Regular";e==="\\uparrow"?d=p="⏐":e==="\\Uparrow"?d=p="‖":e==="\\downarrow"?o=d="⏐":e==="\\Downarrow"?o=d="‖":e==="\\updownarrow"?(o="\\uparrow",d="⏐",p="\\downarrow"):e==="\\Updownarrow"?(o="\\Uparrow",d="‖",p="\\Downarrow"):Up.has(e)?(d="∣",g="vert",v=333):Wp.has(e)?(d="∥",g="doublevert",v=556):e==="["||e==="\\lbrack"?(o="⎡",d="⎢",p="⎣",w="Size4-Regular",g="lbrack",v=667):e==="]"||e==="\\rbrack"?(o="⎤",d="⎥",p="⎦",w="Size4-Regular",g="rbrack",v=667):e==="\\lfloor"||e==="⌊"?(d=o="⎢",p="⎣",w="Size4-Regular",g="lfloor",v=667):e==="\\lceil"||e==="⌈"?(o="⎡",d=p="⎢",w="Size4-Regular",g="lceil",v=667):e==="\\rfloor"||e==="⌋"?(d=o="⎥",p="⎦",w="Size4-Regular",g="rfloor",v=667):e==="\\rceil"||e==="⌉"?(o="⎤",d=p="⎥",w="Size4-Regular",g="rceil",v=667):e==="("||e==="\\lparen"?(o="⎛",d="⎜",p="⎝",w="Size4-Regular",g="lparen",v=875):e===")"||e==="\\rparen"?(o="⎞",d="⎟",p="⎠",w="Size4-Regular",g="rparen",v=875):e==="\\{"||e==="\\lbrace"?(o="⎧",c="⎨",p="⎩",d="⎪",w="Size4-Regular"):e==="\\}"||e==="\\rbrace"?(o="⎫",c="⎬",p="⎭",d="⎪",w="Size4-Regular"):e==="\\lgroup"||e==="⟮"?(o="⎧",p="⎩",d="⎪",w="Size4-Regular"):e==="\\rgroup"||e==="⟯"?(o="⎫",p="⎭",d="⎪",w="Size4-Regular"):e==="\\lmoustache"||e==="⎰"?(o="⎧",p="⎭",d="⎪",w="Size4-Regular"):(e==="\\rmoustache"||e==="⎱")&&(o="⎫",p="⎩",d="⎪",w="Size4-Regular");var A=N0(o,w,i),M=A.height+A.depth,D=N0(d,w,i),S=D.height+D.depth,C=N0(p,w,i),W=C.height+C.depth,K=0,X=1;if(c!==null){var T=N0(c,w,i);K=T.height+T.depth,X=2}var R=M+W+K,U=Math.max(0,Math.ceil((r-R)/(X*S))),O=R+U*X*S,$=a.fontMetrics().axisHeight;n&&($*=a.sizeMultiplier);var L=O/2-$,F=[];if(g.length>0){var Y=O-M-W,J=Math.round(O*1e3),ee=Gh(g,Math.round(Y*1e3)),le=new Nr(g,ee),ue=H(v/1e3),De=H(J/1e3),ve=new hr([le],{width:ue,height:De,viewBox:"0 0 "+v+" "+J}),Ae=pr([],[ve],a);Ae.height=J/1e3,Ae.style.width=ue,Ae.style.height=De,F.push({type:"elem",elem:Ae})}else{if(F.push(za(p,w,i,a)),F.push(En),c===null){var st=O-M-W+2*fi;F.push(Ra(d,st,a))}else{var wt=(O-M-W-K)/2+2*fi;F.push(Ra(d,wt,a)),F.push(En),F.push(za(c,w,i,a)),F.push(En),F.push(Ra(d,wt,a))}F.push(En),F.push(za(o,w,i,a))}var Ze=a.havingBaseStyle(ae.TEXT),Qe=fe({positionType:"bottom",positionData:L,children:F});return Yi(P(["delimsizing","mult"],[Qe],Ze),ae.TEXT,a,s)},Da=80,Na=.08,_a=function(e,r,n,a,i){var s=Uh(e,a,n),o=new Nr(e,s),c=new hr([o],{width:"400em",height:H(r),viewBox:"0 0 400000 "+n,preserveAspectRatio:"xMinYMin slice"});return pr(["hide-tail"],[c],i)},Gp=function(e,r){var n=r.havingBaseSizing(),a=Rc("\\surd",e*n.sizeMultiplier,zc,n),i=n.sizeMultiplier,s=Math.max(0,r.minRuleThickness-r.fontMetrics().sqrtRuleThickness),o,c,d,p,g;return a.type==="small"?(p=1e3+1e3*s+Da,e<1?i=1:e<1.4&&(i=.7),c=(1+s+Na)/i,d=(1+s)/i,o=_a("sqrtMain",c,p,s,r),o.style.minWidth="0.853em",g=.833/i):a.type==="large"?(p=(1e3+Da)*L0[a.size],d=(L0[a.size]+s)/i,c=(L0[a.size]+s+Na)/i,o=_a("sqrtSize"+a.size,c,p,s,r),o.style.minWidth="1.02em",g=1/i):(c=e+s+Na,d=e+s,p=Math.floor(1e3*e+s)+Da,o=_a("sqrtTall",c,p,s,r),o.style.minWidth="0.742em",g=1.056),o.height=d,o.style.height=H(c),{span:o,advanceWidth:g,ruleWidth:(r.fontMetrics().sqrtRuleThickness+s)*i}},Mc=new Set(["(","\\lparen",")","\\rparen","[","\\lbrack","]","\\rbrack","\\{","\\lbrace","\\}","\\rbrace","\\lfloor","\\rfloor","⌊","⌋","\\lceil","\\rceil","⌈","⌉","\\surd"]),jp=new Set(["\\uparrow","\\downarrow","\\updownarrow","\\Uparrow","\\Downarrow","\\Updownarrow","|","\\|","\\vert","\\Vert","\\lvert","\\rvert","\\lVert","\\rVert","\\lgroup","\\rgroup","⟮","⟯","\\lmoustache","\\rmoustache","⎰","⎱"]),Cc=new Set(["<",">","\\langle","\\rangle","/","\\backslash","\\lt","\\gt"]),L0=[0,1.2,1.8,2.4,3],Ic=function(e,r,n,a,i){if(e==="<"||e==="\\lt"||e==="⟨"?e="\\langle":(e===">"||e==="\\gt"||e==="⟩")&&(e="\\rangle"),Mc.has(e)||Cc.has(e))return Tc(e,r,!1,n,a,i);if(jp.has(e))return Ec(e,L0[r],!1,n,a,i);throw new B("Illegal delimiter: '"+e+"'")},Vp=[{type:"small",style:ae.SCRIPTSCRIPT},{type:"small",style:ae.SCRIPT},{type:"small",style:ae.TEXT},{type:"large",size:1},{type:"large",size:2},{type:"large",size:3},{type:"large",size:4}],Yp=[{type:"small",style:ae.SCRIPTSCRIPT},{type:"small",style:ae.SCRIPT},{type:"small",style:ae.TEXT},{type:"stack"}],zc=[{type:"small",style:ae.SCRIPTSCRIPT},{type:"small",style:ae.SCRIPT},{type:"small",style:ae.TEXT},{type:"large",size:1},{type:"large",size:2},{type:"large",size:3},{type:"large",size:4},{type:"stack"}],Xp=function(e){if(e.type==="small")return"Main-Regular";if(e.type==="large")return"Size"+e.size+"-Regular";if(e.type==="stack")return"Size4-Regular";var r=e.type;throw new Error("Add support for delim type '"+r+"' here.")},Rc=function(e,r,n,a){for(var i=Math.min(2,3-a.style.size),s=i;s<n.length;s++){var o=n[s];if(o.type==="stack")break;var c=N0(e,Xp(o),"math"),d=c.height+c.depth;if(o.type==="small"){var p=a.havingBaseStyle(o.style);d*=p.sizeMultiplier}if(d>r)return o}return n[n.length-1]},gi=function(e,r,n,a,i,s){e==="<"||e==="\\lt"||e==="⟨"?e="\\langle":(e===">"||e==="\\gt"||e==="⟩")&&(e="\\rangle");var o;Cc.has(e)?o=Vp:Mc.has(e)?o=zc:o=Yp;var c=Rc(e,r,o,a);return c.type==="small"?Fp(e,c.style,n,a,i,s):c.type==="large"?Tc(e,c.size,n,a,i,s):Ec(e,r,n,a,i,s)},La=function(e,r,n,a,i,s){var o=a.fontMetrics().axisHeight*a.sizeMultiplier,c=901,d=5/a.fontMetrics().ptPerEm,p=Math.max(r-o,n+o),g=Math.max(p/500*c,2*p-d);return gi(e,g,!0,a,i,s)},vo={"\\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}},Kp=new Set(["(","\\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 bo(t){return"isMiddle"in t}function Kn(t,e){var r=Yn(t);if(r&&Kp.has(r.text))return r;throw r?new B("Invalid delimiter '"+r.text+"' after '"+e.funcName+"'",t):new B("Invalid delimiter type '"+t.type+"'",t)}G({type:"delimsizing",names:["\\bigl","\\Bigl","\\biggl","\\Biggl","\\bigr","\\Bigr","\\biggr","\\Biggr","\\bigm","\\Bigm","\\biggm","\\Biggm","\\big","\\Big","\\bigg","\\Bigg"],numArgs:1,argTypes:["primitive"],handler:(t,e)=>{var r=Kn(H0(e[0]),t);return{type:"delimsizing",mode:t.parser.mode,size:vo[t.funcName].size,mclass:vo[t.funcName].mclass,delim:r.text}},htmlBuilder:(t,e)=>t.delim==="."?P([t.mclass]):Ic(t.delim,t.size,e,t.mode,[t.mclass]),mathmlBuilder:t=>{var e=[];t.delim!=="."&&e.push(Mt(t.delim,t.mode));var r=new q("mo",e);t.mclass==="mopen"||t.mclass==="mclose"?r.setAttribute("fence","true"):r.setAttribute("fence","false"),r.setAttribute("stretchy","true");var n=H(L0[t.size]);return r.setAttribute("minsize",n),r.setAttribute("maxsize",n),r}});function yo(t){if(!t.body)throw new Error("Bug: The leftright ParseNode wasn't fully parsed.")}G({type:"leftright-right",names:["\\right"],numArgs:1,primitive:!0,handler:(t,e)=>{var r=t.parser.gullet.macros.get("\\current@color");if(r&&typeof r!="string")throw new B("\\current@color set to non-string in \\right");return{type:"leftright-right",mode:t.parser.mode,delim:Kn(e[0],t).text,color:r}}});G({type:"leftright",names:["\\left"],numArgs:1,primitive:!0,handler:(t,e)=>{var r=Kn(e[0],t),n=t.parser;++n.leftrightDepth;var a=n.parseExpression(!1);--n.leftrightDepth,n.expect("\\right",!1);var i=oe(n.parseFunction(),"leftright-right");return{type:"leftright",mode:n.mode,body:a,left:r.text,right:i.delim,rightColor:i.color}},htmlBuilder:(t,e)=>{yo(t);for(var r=Fe(t.body,e,!0,["mopen","mclose"]),n=0,a=0,i=!1,s=0;s<r.length;s++){var o=r[s];bo(o)?i=!0:(n=Math.max(r[s].height,n),a=Math.max(r[s].depth,a))}n*=e.sizeMultiplier,a*=e.sizeMultiplier;var c;if(t.left==="."?c=U0(e,["mopen"]):c=La(t.left,n,a,e,t.mode,["mopen"]),r.unshift(c),i)for(var d=1;d<r.length;d++){var p=r[d];if(bo(p)){var g=p.isMiddle;r[d]=La(g.delim,n,a,g.options,t.mode,[])}}var v;if(t.right===".")v=U0(e,["mclose"]);else{var w=t.rightColor?e.withColor(t.rightColor):e;v=La(t.right,n,a,w,t.mode,["mclose"])}return r.push(v),P(["minner"],r,e)},mathmlBuilder:(t,e)=>{yo(t);var r=yt(t.body,e);if(t.left!=="."){var n=new q("mo",[Mt(t.left,t.mode)]);n.setAttribute("fence","true"),r.unshift(n)}if(t.right!=="."){var a=new q("mo",[Mt(t.right,t.mode)]);a.setAttribute("fence","true"),t.rightColor&&a.setAttribute("mathcolor",t.rightColor),r.push(a)}return Gi(r)}});G({type:"middle",names:["\\middle"],numArgs:1,primitive:!0,handler:(t,e)=>{var r=Kn(e[0],t);if(!t.parser.leftrightDepth)throw new B("\\middle without preceding \\left",r);return{type:"middle",mode:t.parser.mode,delim:r.text}},htmlBuilder:(t,e)=>{var r;return t.delim==="."?r=U0(e,[]):(r=Ic(t.delim,1,e,t.mode,[]),r.isMiddle={delim:t.delim,options:e}),r},mathmlBuilder:(t,e)=>{var r=t.delim==="\\vert"||t.delim==="|"?Mt("|","text"):Mt(t.delim,t.mode),n=new q("mo",[r]);return n.setAttribute("fence","true"),n.setAttribute("lspace","0.05em"),n.setAttribute("rspace","0.05em"),n}});var Zp=(t,e)=>{var r=l0(me(t.body,e),e),n=t.label.slice(1),a=e.sizeMultiplier,i,s,o=Yt(t.body);if(n==="sout")i=P(["katex-stretchy","katex-sout"]),i.height=e.fontMetrics().defaultRuleThickness/a,s=-.5*e.fontMetrics().xHeight;else if(n==="phase"){var c=Ie({number:.6,unit:"pt"},e),d=Ie({number:.35,unit:"ex"},e),p=e.havingBaseSizing();a=a/p.sizeMultiplier;var g=r.height+r.depth+c+d;r.style.paddingLeft=H(g/2+c);var v=Math.floor(1e3*g*a),w=Fh(v),A=new hr([new Nr("phase",w)],{width:"400em",height:H(v/1e3),viewBox:"0 0 400000 "+v,preserveAspectRatio:"xMinYMin slice"});i=pr(["hide-tail"],[A],e),i.style.height=H(g),s=r.depth+c+d}else{/cancel/.test(n)?o||r.classes.push("cancel-pad"):n==="angl"?r.classes.push("anglpad"):r.classes.push("boxpad");var M,D,S=0;/box/.test(n)?(S=Math.max(e.fontMetrics().fboxrule,e.minRuleThickness),M=e.fontMetrics().fboxsep+(n==="colorbox"?0:S),D=M):n==="angl"?(S=Math.max(e.fontMetrics().defaultRuleThickness,e.minRuleThickness),M=4*S,D=Math.max(0,.25-r.depth)):(M=o?.2:0,D=M),i=Ap(r,n,M,D,e),/fbox|boxed|fcolorbox/.test(n)?(i.style.borderStyle="solid",i.style.borderWidth=H(S)):n==="angl"&&S!==.049&&(i.style.borderTopWidth=H(S),i.style.borderRightWidth=H(S)),s=r.depth+D,t.backgroundColor&&(i.style.backgroundColor=t.backgroundColor,t.borderColor&&(i.style.borderColor=t.borderColor))}var C;if(t.backgroundColor)C=fe({positionType:"individualShift",children:[{type:"elem",elem:i,shift:s},{type:"elem",elem:r,shift:0}]});else{var W=/cancel|phase/.test(n)?["svg-align"]:[];C=fe({positionType:"individualShift",children:[{type:"elem",elem:r,shift:0},{type:"elem",elem:i,shift:s,wrapperClasses:W}]})}return/cancel/.test(n)&&(C.height=r.height,C.depth=r.depth),/cancel/.test(n)&&!o?P(["mord","cancel-lap"],[C],e):P(["mord"],[C],e)},Qp=(t,e)=>{var r,n=new q(t.label.includes("colorbox")?"mpadded":"menclose",[be(t.body,e)]);switch(t.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=e.fontMetrics().fboxsep*e.fontMetrics().ptPerEm,n.setAttribute("width","+"+2*r+"pt"),n.setAttribute("height","+"+2*r+"pt"),n.setAttribute("lspace",r+"pt"),n.setAttribute("voffset",r+"pt"),t.label==="\\fcolorbox"){var a=Math.max(e.fontMetrics().fboxrule,e.minRuleThickness);n.setAttribute("style","border: "+H(a)+" solid "+t.borderColor)}break;case"\\xcancel":n.setAttribute("notation","updiagonalstrike downdiagonalstrike");break}return t.backgroundColor&&n.setAttribute("mathbackground",t.backgroundColor),n};G({type:"enclose",names:["\\colorbox"],numArgs:2,allowedInText:!0,argTypes:["color","hbox"],handler(t,e,r){var n=t.parser,a=t.funcName,i=oe(e[0],"color-token").color,s=e[1];return{type:"enclose",mode:n.mode,label:a,backgroundColor:i,body:s}},htmlBuilder:Zp,mathmlBuilder:Qp});G({type:"enclose",names:["\\fcolorbox"],numArgs:3,allowedInText:!0,argTypes:["color","color","hbox"],handler(t,e,r){var n=t.parser,a=t.funcName,i=oe(e[0],"color-token").color,s=oe(e[1],"color-token").color,o=e[2];return{type:"enclose",mode:n.mode,label:a,backgroundColor:s,borderColor:i,body:o}}});G({type:"enclose",names:["\\fbox"],numArgs:1,argTypes:["hbox"],allowedInText:!0,handler(t,e){var r=t.parser;return{type:"enclose",mode:r.mode,label:"\\fbox",body:e[0]}}});G({type:"enclose",names:["\\cancel","\\bcancel","\\xcancel","\\phase"],numArgs:1,handler(t,e){var r=t.parser,n=t.funcName,a=e[0];return{type:"enclose",mode:r.mode,label:n,body:a}}});G({type:"enclose",names:["\\sout"],numArgs:1,allowedInText:!0,handler(t,e){var r=t.parser,n=t.funcName;r.mode==="math"&&mt({strict:r.settings.strict,errorCode:"mathVsSout",errorMsg:"LaTeX's \\sout works only in text mode",report:!0});var a=e[0];return{type:"enclose",mode:r.mode,label:n,body:a}}});G({type:"enclose",names:["\\angl"],numArgs:1,argTypes:["hbox"],allowedInText:!1,handler(t,e){var r=t.parser;return{type:"enclose",mode:r.mode,label:"\\angl",body:e[0]}}});var Dc={};function Lt(t){for(var e=t.type,r=t.names,n=t.props,a=t.handler,i=t.htmlBuilder,s=t.mathmlBuilder,o={type:e,numArgs:n.numArgs||0,allowedInText:!1,numOptionalArgs:0,handler:a},c=0;c<r.length;++c)Dc[r[c]]=o;i&&(q0[e]=i),s&&(F0[e]=s)}var Nc={};function m(t,e){Nc[t]=e}class pt{constructor(e,r,n){this.lexer=void 0,this.start=void 0,this.end=void 0,this.lexer=e,this.start=r,this.end=n}static range(e,r){return r?!e||!e.loc||!r.loc||e.loc.lexer!==r.loc.lexer?null:new pt(e.loc.lexer,e.loc.start,r.loc.end):e&&e.loc}}class vt{constructor(e,r){this.text=void 0,this.loc=void 0,this.noexpand=void 0,this.treatAsRelax=void 0,this.text=e,this.loc=r}range(e,r){return new vt(r,pt.range(this,e))}}function wo(t){var e=[];t.consumeSpaces();var r=t.fetch().text;for(r==="\\relax"&&(t.consume(),t.consumeSpaces(),r=t.fetch().text);r==="\\hline"||r==="\\hdashline";)t.consume(),e.push(r==="\\hdashline"),t.consumeSpaces(),r=t.fetch().text;return e}var Zn=t=>{var e=t.parser.settings;if(!e.displayMode)throw new B("{"+t.envName+"} can be used only in display mode.")},Jp=new Set(["gather","gather*"]);function Xi(t){if(!t.includes("ed"))return!t.includes("*")}function fr(t,e,r){var n=e.hskipBeforeAndAfter,a=e.addJot,i=e.cols,s=e.arraystretch,o=e.colSeparationType,c=e.autoTag,d=e.singleRow,p=e.emptySingleRow,g=e.maxNumCols,v=e.leqno;if(t.gullet.beginGroup(),d||t.gullet.macros.set("\\cr","\\\\\\relax"),!s){var w=t.gullet.expandMacroAsText("\\arraystretch");if(w==null)s=1;else if(s=parseFloat(w),!s||s<0)throw new B("Invalid \\arraystretch: "+w)}t.gullet.beginGroup();var A=[],M=[A],D=[],S=[],C=c!=null?[]:void 0;function W(){c&&t.gullet.macros.set("\\@eqnsw","1",!0)}function K(){C&&(t.gullet.macros.get("\\df@tag")?(C.push(t.subparse([new vt("\\df@tag")])),t.gullet.macros.set("\\df@tag",void 0,!0)):C.push(!!c&&t.gullet.macros.get("\\@eqnsw")==="1"))}for(W(),S.push(wo(t));;){var X=t.parseExpression(!1,d?"\\end":"\\\\");t.gullet.endGroup(),t.gullet.beginGroup();var T={type:"ordgroup",mode:t.mode,body:X};r&&(T={type:"styling",mode:t.mode,style:r,resetFont:!0,body:[T]}),A.push(T);var R=t.fetch().text;if(R==="&"){if(g&&A.length===g){if(d||o)throw new B("Too many tab characters: &",t.nextToken);mt({strict:t.settings.strict,errorCode:"textEnv",errorMsg:"Too few columns specified in the {array} column argument.",report:!0})}t.consume()}else if(R==="\\end"){K(),A.length===1&&T.type==="styling"&&T.body.length===1&&T.body[0].type==="ordgroup"&&T.body[0].body.length===0&&(M.length>1||!p)&&!Array.isArray(C?.[C.length-1])&&!(c&&C?.[C.length-1]===!0)&&M.pop(),S.length<M.length+1&&S.push([]);break}else if(R==="\\\\"){t.consume();var U=void 0;t.gullet.future().text!==" "&&(U=t.parseSizeGroup(!0)),D.push(U?U.value:null),K(),S.push(wo(t)),A=[],M.push(A),W()}else throw new B("Expected & or \\\\ or \\cr or \\end",t.nextToken)}return t.gullet.endGroup(),t.gullet.endGroup(),{type:"array",mode:t.mode,addJot:a,arraystretch:s,body:M,cols:i,rowGaps:D,hskipBeforeAndAfter:n,hLinesBeforeRow:S,colSeparationType:o,tags:C,leqno:v}}function Ki(t){return t.slice(0,1)==="d"?"display":"text"}var Pt=function(e,r){var n,a,i=e.body.length,s=e.hLinesBeforeRow,o=0,c=new Array(i),d=[],p=Math.max(r.fontMetrics().arrayRuleWidth,r.minRuleThickness),g=1/r.fontMetrics().ptPerEm,v=5*g;if(e.colSeparationType&&e.colSeparationType==="small"){var w=r.havingStyle(ae.SCRIPT).sizeMultiplier;v=.2778*(w/r.sizeMultiplier)}var A=e.colSeparationType==="CD"?Ie({number:3,unit:"ex"},r):12*g,M=3*g,D=e.arraystretch*A,S=.7*D,C=.3*D,W=0;function K(ot){for(var xt=0;xt<ot.length;++xt)xt>0&&(W+=.25),d.push({pos:W,isDashed:ot[xt]})}for(K(s[0]),n=0;n<e.body.length;++n){var X=e.body[n],T=S,R=C;o<X.length&&(o=X.length);var U={cells:new Array(X.length),height:0,depth:0,pos:0};for(a=0;a<X.length;++a){var O=me(X[a],r);R<O.depth&&(R=O.depth),T<O.height&&(T=O.height),U.cells[a]=O}var $=e.rowGaps[n],L=0;$&&(L=Ie($,r),L>0&&(L+=C,R<L&&(R=L),L=0)),e.addJot&&n<e.body.length-1&&(R+=M),U.height=T,U.depth=R,W+=T,U.pos=W,W+=R+L,c[n]=U,K(s[n+1])}var F=W/2+r.fontMetrics().axisHeight,Y=e.cols||[],J=[],ee,le,ue=[];if(e.tags&&e.tags.some(ot=>ot))for(n=0;n<i;++n){var De=c[n],ve=De.pos-F,Ae=e.tags[n],st=void 0;Ae===!0?st=P(["eqn-num"],[],r):Ae===!1?st=P([],[],r):st=P([],Fe(Ae,r,!0),r),st.depth=De.depth,st.height=De.height,ue.push({type:"elem",elem:st,shift:ve})}for(a=0,le=0;a<o||le<Y.length;++a,++le){for(var wt,Ze=Y[le],Qe=!0;((gr=Ze)==null?void 0:gr.type)==="separator";){var gr;if(Qe||(ee=P(["arraycolsep"],[]),ee.style.width=H(r.fontMetrics().doubleRuleSep),J.push(ee)),Ze.separator==="|"||Ze.separator===":"){var ye=Ze.separator==="|"?"solid":"dashed",Zt=P(["vertical-separator"],[],r);Zt.style.height=H(W),Zt.style.borderRightWidth=H(p),Zt.style.borderRightStyle=ye,Zt.style.margin="0 "+H(-p/2);var J0=W-F;J0&&(Zt.style.verticalAlign=H(-J0)),J.push(Zt)}else throw new B("Invalid separator type: "+Ze.separator);le++,Ze=Y[le],Qe=!1}if(!(a>=o)){var Qt=void 0;if(a>0||e.hskipBeforeAndAfter){var en,tn;Qt=(en=(tn=Ze)==null?void 0:tn.pregap)!=null?en:v,Qt!==0&&(ee=P(["arraycolsep"],[]),ee.style.width=H(Qt),J.push(ee))}var rn=[];for(n=0;n<i;++n){var vr=c[n],Br=vr.cells[a];if(Br){var nn=vr.pos-F;Br.depth=vr.depth,Br.height=vr.height,rn.push({type:"elem",elem:Br,shift:nn})}}var xe=fe({positionType:"individualShift",children:rn}),v0=P(["col-align-"+(((wt=Ze)==null?void 0:wt.align)||"c")],[xe]);if(J.push(v0),a<o-1||e.hskipBeforeAndAfter){var we,qr;Qt=(we=(qr=Ze)==null?void 0:qr.postgap)!=null?we:v,Qt!==0&&(ee=P(["arraycolsep"],[]),ee.style.width=H(Qt),J.push(ee))}}}var Je=P(["mtable"],J);if(d.length>0){for(var br=o0("katex-hline",r,p),an=o0("katex-hdashline",r,p),kt=[{type:"elem",elem:Je,shift:0}];d.length>0;){var b0=d.pop(),Fr=b0.pos-F;b0.isDashed?kt.push({type:"elem",elem:an,shift:Fr}):kt.push({type:"elem",elem:br,shift:Fr})}Je=fe({positionType:"individualShift",children:kt})}if(ue.length===0)return P(["mord"],[Je],r);var sn=fe({positionType:"individualShift",children:ue}),y0=P(["katex-tag"],[sn],r);return Kt([Je,y0])},em={c:"center ",l:"left ",r:"right "},Ot=function(e,r){for(var n=[],a=new q("mtd",[],["mtr-glue"]),i=new q("mtd",[],["mml-eqn-num"]),s=0;s<e.body.length;s++){for(var o=e.body[s],c=[],d=0;d<o.length;d++)c.push(new q("mtd",[be(o[d],r)]));e.tags&&e.tags[s]&&(c.unshift(a),c.push(a),e.leqno?c.unshift(i):c.push(i)),n.push(new q("mtr",c))}var p=new q("mtable",n),g=e.arraystretch===.5?.1:.16+e.arraystretch-1+(e.addJot?.09:0);p.setAttribute("rowspacing",H(g));var v="",w="";if(e.cols&&e.cols.length>0){var A=e.cols,M="",D=!1,S=0,C=A.length;A[0].type==="separator"&&(v+="top ",S=1),A[A.length-1].type==="separator"&&(v+="bottom ",C-=1);for(var W=S;W<C;W++){var K=A[W];K.type==="align"?(w+=em[K.align],D&&(M+="none "),D=!0):K.type==="separator"&&D&&(M+=K.separator==="|"?"solid ":"dashed ",D=!1)}p.setAttribute("columnalign",w.trim()),/[sd]/.test(M)&&p.setAttribute("columnlines",M.trim())}if(e.colSeparationType==="align"){for(var X=e.cols||[],T="",R=1;R<X.length;R++)T+=R%2?"0em ":"1em ";p.setAttribute("columnspacing",T.trim())}else e.colSeparationType==="alignat"||e.colSeparationType==="gather"?p.setAttribute("columnspacing","0em"):e.colSeparationType==="small"?p.setAttribute("columnspacing","0.2778em"):e.colSeparationType==="CD"?p.setAttribute("columnspacing","0.5em"):p.setAttribute("columnspacing","1em");var U="",O=e.hLinesBeforeRow;v+=O[0].length>0?"left ":"",v+=O[O.length-1].length>0?"right ":"";for(var $=1;$<O.length-1;$++)U+=O[$].length===0?"none ":O[$][0]?"dashed ":"solid ";return/[sd]/.test(U)&&p.setAttribute("rowlines",U.trim()),v!==""&&(p=new q("menclose",[p]),p.setAttribute("notation",v.trim())),e.arraystretch&&e.arraystretch<1&&(p=new q("mstyle",[p]),p.setAttribute("scriptlevel","1")),p},_c=function(e,r){e.envName.includes("ed")||Zn(e);var n=[],a=e.envName==="split",i=fr(e.parser,{cols:n,addJot:!0,autoTag:a?void 0:Xi(e.envName),emptySingleRow:!0,colSeparationType:e.envName.includes("at")?"alignat":"align",maxNumCols:a?2:void 0,leqno:e.parser.settings.leqno},"display"),s=0,o=0,c={type:"ordgroup",mode:e.mode,body:[]};if(r[0]&&r[0].type==="ordgroup"){var d="Number of columns should be a positive integer",p=Vi(r[0],d);if(!/^[0-9]+$/.test(p)||Number(p)<1)throw new B(d,r[0]);s=Number(p),o=s*2}var g=!o;i.body.forEach(function(M){for(var D=1;D<M.length;D+=2){var S=oe(M[D],"styling"),C=oe(S.body[0],"ordgroup");C.body.unshift(c)}if(g)o<M.length&&(o=M.length);else{var W=M.length/2;if(s<W)throw new B("Too many math in a row: "+("expected "+s+", but got "+W),M[0])}});for(var v=0;v<o;++v){var w="r",A=0;v%2===1?w="l":v>0&&g&&(A=1),n[v]={type:"align",align:w,pregap:A,postgap:0}}return i.colSeparationType=g?"align":"alignat",i};Lt({type:"array",names:["array","darray"],props:{numArgs:1},handler(t,e){var r=Yn(e[0]),n=r?[e[0]]:oe(e[0],"ordgroup").body,a=n.map(function(s){var o=Vn(s),c=o.text;if("lcr".includes(c))return{type:"align",align:c};if(c==="|")return{type:"separator",separator:"|"};if(c===":")return{type:"separator",separator:":"};throw new B("Unknown column alignment: "+c,s)}),i={cols:a,hskipBeforeAndAfter:!0,maxNumCols:a.length};return fr(t.parser,i,Ki(t.envName))},htmlBuilder:Pt,mathmlBuilder:Ot});Lt({type:"array",names:["matrix","pmatrix","bmatrix","Bmatrix","vmatrix","Vmatrix","matrix*","pmatrix*","bmatrix*","Bmatrix*","vmatrix*","Vmatrix*"],props:{numArgs:0},handler(t){var e={matrix:null,pmatrix:["(",")"],bmatrix:["[","]"],Bmatrix:["\\{","\\}"],vmatrix:["|","|"],Vmatrix:["\\Vert","\\Vert"]}[t.envName.replace("*","")],r="c",n={hskipBeforeAndAfter:!1,cols:[{type:"align",align:r}]};if(t.envName.charAt(t.envName.length-1)==="*"){var a=t.parser;if(a.consumeSpaces(),a.fetch().text==="["){if(a.consume(),a.consumeSpaces(),r=a.fetch().text,!"lcr".includes(r))throw new B("Expected l or c or r",a.nextToken);a.consume(),a.consumeSpaces(),a.expect("]"),a.consume(),n.cols=[{type:"align",align:r}]}}var i=fr(t.parser,n,Ki(t.envName)),s=Math.max(0,...i.body.map(o=>o.length));return i.cols=new Array(s).fill({type:"align",align:r}),e?{type:"leftright",mode:t.mode,body:[i],left:e[0],right:e[1],rightColor:void 0}:i},htmlBuilder:Pt,mathmlBuilder:Ot});Lt({type:"array",names:["smallmatrix"],props:{numArgs:0},handler(t){var e={arraystretch:.5},r=fr(t.parser,e,"script");return r.colSeparationType="small",r},htmlBuilder:Pt,mathmlBuilder:Ot});Lt({type:"array",names:["subarray"],props:{numArgs:1},handler(t,e){var r=Yn(e[0]),n=r?[e[0]]:oe(e[0],"ordgroup").body,a=n.map(function(o){var c=Vn(o),d=c.text;if("lc".includes(d))return{type:"align",align:d};throw new B("Unknown column alignment: "+d,o)});if(a.length>1)throw new B("{subarray} can contain only one column");var i={cols:a,hskipBeforeAndAfter:!1,arraystretch:.5},s=fr(t.parser,i,"script");if(s.body.length>0&&s.body[0].length>1)throw new B("{subarray} can contain only one column");return s},htmlBuilder:Pt,mathmlBuilder:Ot});Lt({type:"array",names:["cases","dcases","rcases","drcases"],props:{numArgs:0},handler(t){var e={arraystretch:1.2,cols:[{type:"align",align:"l",pregap:0,postgap:1},{type:"align",align:"l",pregap:0,postgap:0}]},r=fr(t.parser,e,Ki(t.envName));return{type:"leftright",mode:t.mode,body:[r],left:t.envName.includes("r")?".":"\\{",right:t.envName.includes("r")?"\\}":".",rightColor:void 0}},htmlBuilder:Pt,mathmlBuilder:Ot});Lt({type:"array",names:["align","align*","aligned","split"],props:{numArgs:0},handler:_c,htmlBuilder:Pt,mathmlBuilder:Ot});Lt({type:"array",names:["gathered","gather","gather*"],props:{numArgs:0},handler(t){Jp.has(t.envName)&&Zn(t);var e={cols:[{type:"align",align:"c"}],addJot:!0,colSeparationType:"gather",autoTag:Xi(t.envName),emptySingleRow:!0,leqno:t.parser.settings.leqno};return fr(t.parser,e,"display")},htmlBuilder:Pt,mathmlBuilder:Ot});Lt({type:"array",names:["alignat","alignat*","alignedat"],props:{numArgs:1},handler:_c,htmlBuilder:Pt,mathmlBuilder:Ot});Lt({type:"array",names:["equation","equation*"],props:{numArgs:0},handler(t){Zn(t);var e={autoTag:Xi(t.envName),emptySingleRow:!0,singleRow:!0,maxNumCols:1,leqno:t.parser.settings.leqno};return fr(t.parser,e,"display")},htmlBuilder:Pt,mathmlBuilder:Ot});Lt({type:"array",names:["CD"],props:{numArgs:0},handler(t){return Zn(t),Op(t.parser)},htmlBuilder:Pt,mathmlBuilder:Ot});m("\\nonumber","\\gdef\\@eqnsw{0}");m("\\notag","\\nonumber");G({type:"text",names:["\\hline","\\hdashline"],numArgs:0,allowedInText:!0,allowedInMath:!0,handler(t,e){throw new B(t.funcName+" valid only within array environment")}});var ko=Dc;G({type:"environment",names:["\\begin","\\end"],numArgs:1,argTypes:["text"],handler(t,e){var r=t.parser,n=t.funcName,a=e[0];if(a.type!=="ordgroup")throw new B("Invalid environment name",a);var i=Vi(a,"Environment name should contain only text characters and spaces",!0);if(n==="\\begin"){if(!Object.prototype.hasOwnProperty.call(ko,i))throw new B("No such environment: "+i,a);var s=ko[i],o=r.parseArguments("\\begin{"+i+"}",s),c=o.args,d=o.optArgs,p={mode:r.mode,envName:i,parser:r},g=s.handler(p,c,d);r.expect("\\end",!1);var v=r.nextToken,w=oe(r.parseFunction(),"environment");if(w.name!==i)throw new B("Mismatch: \\begin{"+i+"} matched by \\end{"+w.name+"}",v);return g}return{type:"environment",mode:r.mode,name:i,nameGroup:a}}});var tm=(t,e)=>{var r=t.font,n=e.withFont(r);return me(t.body,n)},rm=(t,e)=>{var r=t.font,n=e.withFont(r);return be(t.body,n)},xo={"\\Bbb":"\\mathbb","\\bold":"\\mathbf","\\frak":"\\mathfrak"};G({type:"font",names:["\\mathrm","\\mathit","\\mathbf","\\mathnormal","\\mathsfit","\\mathbb","\\mathcal","\\mathfrak","\\mathscr","\\mathsf","\\mathtt","\\Bbb","\\bold","\\frak"],numArgs:1,allowedInArgument:!0,handler:(t,e)=>{var r=t.parser,n=t.funcName,a=H0(e[0]),i=n in xo?xo[n]:n;return{type:"font",mode:r.mode,font:i.slice(1),body:a}},htmlBuilder:tm,mathmlBuilder:rm});G({type:"mclass",names:["\\boldsymbol","\\bm"],numArgs:1,handler:(t,e)=>{var r=t.parser,n=e[0];return{type:"mclass",mode:r.mode,mclass:Xn(n),body:[{type:"font",mode:r.mode,font:"boldsymbol",body:n}],isCharacterBox:Yt(n)}}});G({type:"font",names:["\\rm","\\sf","\\tt","\\bf","\\it","\\cal"],numArgs:0,allowedInText:!0,handler:(t,e)=>{var r=t.parser,n=t.funcName,a=t.breakOnTokenText,i=r.mode,s=r.parseExpression(!0,a);return{type:"font",mode:i,font:"math"+n.slice(1),body:{type:"ordgroup",mode:r.mode,body:s}}}});var nm=(t,e)=>{var r=e.style,n=r.fracNum(),a=r.fracDen(),i;i=e.havingStyle(n);var s=me(t.numer,i,e);if(t.continued){var o=8.5/e.fontMetrics().ptPerEm,c=3.5/e.fontMetrics().ptPerEm;s.height=s.height<o?o:s.height,s.depth=s.depth<c?c:s.depth}i=e.havingStyle(a);var d=me(t.denom,i,e),p,g,v;t.hasBarLine?(t.barSize?(g=Ie(t.barSize,e),p=o0("frac-line",e,g)):p=o0("frac-line",e),g=p.height,v=p.height):(p=null,g=0,v=e.fontMetrics().defaultRuleThickness);var w,A,M;r.size===ae.DISPLAY.size?(w=e.fontMetrics().num1,g>0?A=3*v:A=7*v,M=e.fontMetrics().denom1):(g>0?(w=e.fontMetrics().num2,A=v):(w=e.fontMetrics().num3,A=3*v),M=e.fontMetrics().denom2);var D;if(p){var C=e.fontMetrics().axisHeight;w-s.depth-(C+.5*g)<A&&(w+=A-(w-s.depth-(C+.5*g))),C-.5*g-(d.height-M)<A&&(M+=A-(C-.5*g-(d.height-M)));var W=-(C-.5*g);D=fe({positionType:"individualShift",children:[{type:"elem",elem:d,shift:M},{type:"elem",elem:p,shift:W},{type:"elem",elem:s,shift:-w}]})}else{var S=w-s.depth-(d.height-M);S<A&&(w+=.5*(A-S),M+=.5*(A-S)),D=fe({positionType:"individualShift",children:[{type:"elem",elem:d,shift:M},{type:"elem",elem:s,shift:-w}]})}i=e.havingStyle(r),D.height*=i.sizeMultiplier/e.sizeMultiplier,D.depth*=i.sizeMultiplier/e.sizeMultiplier;var K;r.size===ae.DISPLAY.size?K=e.fontMetrics().delim1:r.size===ae.SCRIPTSCRIPT.size?K=e.havingStyle(ae.SCRIPT).fontMetrics().delim2:K=e.fontMetrics().delim2;var X,T;return t.leftDelim==null?X=U0(e,["mopen"]):X=gi(t.leftDelim,K,!0,e.havingStyle(r),t.mode,["mopen"]),t.continued?T=P([]):t.rightDelim==null?T=U0(e,["mclose"]):T=gi(t.rightDelim,K,!0,e.havingStyle(r),t.mode,["mclose"]),P(["mord"].concat(i.sizingClasses(e)),[X,P(["mfrac"],[D]),T],e)},am=(t,e)=>{var r=new q("mfrac",[be(t.numer,e),be(t.denom,e)]);if(!t.hasBarLine)r.setAttribute("linethickness","0px");else if(t.barSize){var n=Ie(t.barSize,e);r.setAttribute("linethickness",H(n))}if(t.leftDelim!=null||t.rightDelim!=null){var a=[];if(t.leftDelim!=null){var i=new q("mo",[new Oe(t.leftDelim.replace("\\",""))]);i.setAttribute("fence","true"),a.push(i)}if(a.push(r),t.rightDelim!=null){var s=new q("mo",[new Oe(t.rightDelim.replace("\\",""))]);s.setAttribute("fence","true"),a.push(s)}return Gi(a)}return r},Lc=(t,e)=>{if(!e)return t;var r={type:"styling",mode:t.mode,style:e,body:[t]};return r};G({type:"genfrac",names:["\\cfrac","\\dfrac","\\frac","\\tfrac","\\dbinom","\\binom","\\tbinom","\\\\atopfrac","\\\\bracefrac","\\\\brackfrac"],numArgs:2,allowedInArgument:!0,handler:(t,e)=>{var r=t.parser,n=t.funcName,a=e[0],i=e[1],s,o=null,c=null;switch(n){case"\\cfrac":case"\\dfrac":case"\\frac":case"\\tfrac":s=!0;break;case"\\\\atopfrac":s=!1;break;case"\\dbinom":case"\\binom":case"\\tbinom":s=!1,o="(",c=")";break;case"\\\\bracefrac":s=!1,o="\\{",c="\\}";break;case"\\\\brackfrac":s=!1,o="[",c="]";break;default:throw new Error("Unrecognized genfrac command")}var d=n==="\\cfrac",p=null;return d||n.startsWith("\\d")?p="display":n.startsWith("\\t")&&(p="text"),Lc({type:"genfrac",mode:r.mode,numer:a,denom:i,continued:d,hasBarLine:s,leftDelim:o,rightDelim:c,barSize:null},p)},htmlBuilder:nm,mathmlBuilder:am});G({type:"infix",names:["\\over","\\choose","\\atop","\\brace","\\brack"],numArgs:0,infix:!0,handler(t){var e=t.parser,r=t.funcName,n=t.token,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:e.mode,replaceWith:a,token:n}}});var So=["display","text","script","scriptscript"],Ao=function(e){var r=null;return e.length>0&&(r=e,r=r==="."?null:r),r};G({type:"genfrac",names:["\\genfrac"],numArgs:6,allowedInArgument:!0,argTypes:["math","math","size","text","math","math"],handler(t,e){var r=t.parser,n=e[4],a=e[5],i=H0(e[0]),s=i.type==="atom"&&i.family==="open"?Ao(i.text):null,o=H0(e[1]),c=o.type==="atom"&&o.family==="close"?Ao(o.text):null,d=oe(e[2],"size"),p,g=null;d.isBlank?p=!0:(g=d.value,p=g.number>0);var v=null,w=e[3];if(w.type==="ordgroup"){if(w.body.length>0){var A=oe(w.body[0],"textord");v=So[Number(A.text)]}}else w=oe(w,"textord"),v=So[Number(w.text)];return Lc({type:"genfrac",mode:r.mode,numer:n,denom:a,continued:!1,hasBarLine:p,barSize:g,leftDelim:s,rightDelim:c},v)}});G({type:"infix",names:["\\above"],numArgs:1,argTypes:["size"],infix:!0,handler(t,e){var r=t.parser;t.funcName;var n=t.token;return{type:"infix",mode:r.mode,replaceWith:"\\\\abovefrac",size:oe(e[0],"size").value,token:n}}});G({type:"genfrac",names:["\\\\abovefrac"],numArgs:3,argTypes:["math","size","math"],handler:(t,e)=>{var r=t.parser;t.funcName;var n=e[0],a=oe(e[1],"infix").size;if(!a)throw new Error("\\\\abovefrac expected size, but got "+String(a));var i=e[2],s=a.number>0;return{type:"genfrac",mode:r.mode,numer:n,denom:i,continued:!1,hasBarLine:s,barSize:a,leftDelim:null,rightDelim:null}}});var Pc=(t,e)=>{var r=e.style,n,a;t.type==="supsub"?(n=t.sup?me(t.sup,e.havingStyle(r.sup()),e):me(t.sub,e.havingStyle(r.sub()),e),a=oe(t.base,"horizBrace")):a=oe(t,"horizBrace");var i=me(a.base,e.havingBaseStyle(ae.DISPLAY)),s=jn(a,e),o;if(a.isOver?o=fe({positionType:"firstBaseline",children:[{type:"elem",elem:i},{type:"kern",size:.1},{type:"elem",elem:s,wrapperClasses:["svg-align"]}]}):o=fe({positionType:"bottom",positionData:i.depth+.1+s.height,children:[{type:"elem",elem:s,wrapperClasses:["svg-align"]},{type:"kern",size:.1},{type:"elem",elem:i}]}),n){var c=P(["minner",a.isOver?"mover":"munder"],[o],e);a.isOver?o=fe({positionType:"firstBaseline",children:[{type:"elem",elem:c},{type:"kern",size:.2},{type:"elem",elem:n}]}):o=fe({positionType:"bottom",positionData:c.depth+.2+n.height+n.depth,children:[{type:"elem",elem:n},{type:"kern",size:.2},{type:"elem",elem:c}]})}return P(["minner",a.isOver?"mover":"munder"],[o],e)},im=(t,e)=>{var r=Gn(t.label);return new q(t.isOver?"mover":"munder",[be(t.base,e),r])};G({type:"horizBrace",names:["\\overbrace","\\underbrace","\\overbracket","\\underbracket"],numArgs:1,handler(t,e){var r=t.parser,n=t.funcName;return{type:"horizBrace",mode:r.mode,label:n,isOver:n.includes("\\over"),base:e[0]}},htmlBuilder:Pc,mathmlBuilder:im});G({type:"href",names:["\\href"],numArgs:2,argTypes:["url","original"],allowedInText:!0,handler:(t,e)=>{var r=t.parser,n=e[1],a=oe(e[0],"url").url;return r.settings.isTrusted({command:"\\href",url:a})?{type:"href",mode:r.mode,href:a,body:Pe(n)}:r.formatUnsupportedCmd("\\href")},htmlBuilder:(t,e)=>{var r=Fe(t.body,e,!1);return sp(t.href,[],r,e)},mathmlBuilder:(t,e)=>{var r=mr(t.body,e);return r instanceof q||(r=new q("mrow",[r])),r.setAttribute("href",t.href),r}});G({type:"href",names:["\\url"],numArgs:1,argTypes:["url"],allowedInText:!0,handler:(t,e)=>{var r=t.parser,n=oe(e[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 o={type:"text",mode:r.mode,font:"\\texttt",body:a};return{type:"href",mode:r.mode,href:n,body:Pe(o)}}});G({type:"hbox",names:["\\hbox"],numArgs:1,argTypes:["text"],allowedInText:!0,primitive:!0,handler(t,e){var r=t.parser;return{type:"hbox",mode:r.mode,body:Pe(e[0])}},htmlBuilder(t,e){var r=Fe(t.body,e.withFont(""),!1);return Kt(r)},mathmlBuilder(t,e){return new q("mrow",yt(t.body,e.withFont("")))}});G({type:"html",names:["\\htmlClass","\\htmlId","\\htmlStyle","\\htmlData"],numArgs:2,argTypes:["raw","original"],allowedInText:!0,handler:(t,e)=>{var r=t.parser,n=t.funcName;t.token;var a=oe(e[0],"raw").string,i=e[1];r.settings.strict&&mt({strict:r.settings.strict,errorCode:"htmlExtension",errorMsg:"HTML extension is disabled on strict mode",report:!0});var s,o={};switch(n){case"\\htmlClass":o.class=a,s={command:"\\htmlClass",class:a};break;case"\\htmlId":o.id=a,s={command:"\\htmlId",id:a};break;case"\\htmlStyle":o.style=a,s={command:"\\htmlStyle",style:a};break;case"\\htmlData":{for(var c="{,}",d=[],p="",g=0;g<a.length;g++)a.startsWith(c,g)?(p+=",",g+=c.length-1):a[g]===","?(d.push(p),p=""):p+=a[g];d.push(p);for(var v=0;v<d.length;v++){var w=d[v],A=w.indexOf("=");if(A<0)throw new B("\\htmlData key/value '"+w+"' missing equals sign");var M=w.slice(0,A),D=w.slice(A+1);o["data-"+M.trim()]=D}s={command:"\\htmlData",attributes:o};break}default:throw new Error("Unrecognized html command")}return r.settings.isTrusted(s)?{type:"html",mode:r.mode,attributes:o,body:Pe(i)}:r.formatUnsupportedCmd(n)},htmlBuilder:(t,e)=>{var r=Fe(t.body,e,!1),n=["enclosing"];t.attributes.class&&n.push(...t.attributes.class.trim().split(/\s+/));var a=P(n,r,e);for(var i of Object.entries(t.attributes)){var s=i[0],o=i[1];s!=="class"&&a.setAttribute(s,o)}return a},mathmlBuilder:(t,e)=>mr(t.body,e)});G({type:"htmlmathml",names:["\\html@mathml"],numArgs:2,allowedInArgument:!0,allowedInText:!0,handler:(t,e)=>{var r=t.parser;return{type:"htmlmathml",mode:r.mode,html:Pe(e[0]),mathml:Pe(e[1])}},htmlBuilder:(t,e)=>{var r=Fe(t.html,e,!1);return Kt(r)},mathmlBuilder:(t,e)=>mr(t.mathml,e)});var Pa=function(e){if(/^[-+]? *(\d+(\.\d*)?|\.\d+)$/.test(e))return{number:+e,unit:"bp"};var r=/([-+]?) *(\d+(?:\.\d*)?|\.\d+) *([a-z]{2})/.exec(e);if(!r)throw new B("Invalid size: '"+e+"' in \\includegraphics");var n={number:+(r[1]+r[2]),unit:r[3]};if(!oc(n))throw new B("Invalid unit: '"+n.unit+"' in \\includegraphics.");return n};G({type:"includegraphics",names:["\\includegraphics"],numArgs:1,numOptionalArgs:1,argTypes:["raw","url"],allowedInText:!1,handler:(t,e,r)=>{var n=t.parser,a={number:0,unit:"em"},i={number:.9,unit:"em"},s={number:0,unit:"em"},o="";if(r[0])for(var c=oe(r[0],"raw").string,d=c.split(","),p=0;p<d.length;p++){var g=d[p].split("=");if(g.length===2){var v=g[1].trim();switch(g[0].trim()){case"alt":o=v;break;case"width":a=Pa(v);break;case"height":i=Pa(v);break;case"totalheight":s=Pa(v);break;default:throw new B("Invalid key: '"+g[0]+"' in \\includegraphics.")}}}var w=oe(e[0],"url").url;return o===""&&(o=w,o=o.replace(/^.*[\\/]/,""),o=o.substring(0,o.lastIndexOf("."))),n.settings.isTrusted({command:"\\includegraphics",url:w})?{type:"includegraphics",mode:n.mode,alt:o,width:a,height:i,totalheight:s,src:w}:n.formatUnsupportedCmd("\\includegraphics")},htmlBuilder:(t,e)=>{var r=Ie(t.height,e),n=0;t.totalheight.number>0&&(n=Ie(t.totalheight,e)-r);var a=0;t.width.number>0&&(a=Ie(t.width,e));var i={height:H(r+n)};a>0&&(i.width=H(a)),n>0&&(i.verticalAlign=H(-n));var s=new Xh(t.src,t.alt,i);return s.height=r,s.depth=n,s},mathmlBuilder:(t,e)=>{var r=new q("mglyph",[]);r.setAttribute("alt",t.alt);var n=Ie(t.height,e),a=0;if(t.totalheight.number>0&&(a=Ie(t.totalheight,e)-n,r.setAttribute("valign",H(-a))),r.setAttribute("height",H(n+a)),t.width.number>0){var i=Ie(t.width,e);r.setAttribute("width",H(i))}return r.setAttribute("src",t.src),r}});G({type:"kern",names:["\\kern","\\mkern","\\hskip","\\mskip"],numArgs:1,argTypes:["size"],primitive:!0,allowedInText:!0,handler(t,e){var r=t.parser,n=t.funcName,a=oe(e[0],"size");if(r.settings.strict){var i=n[1]==="m",s=a.value.unit==="mu";i?(s||mt({strict:r.settings.strict,errorCode:"mathVsTextUnits",errorMsg:"LaTeX's "+n+" supports only mu units, "+("not "+a.value.unit+" units"),report:!0}),r.mode!=="math"&&mt({strict:r.settings.strict,errorCode:"mathVsTextUnits",errorMsg:"LaTeX's "+n+" works only in math mode",report:!0})):s&&mt({strict:r.settings.strict,errorCode:"mathVsTextUnits",errorMsg:"LaTeX's "+n+" doesn't support mu units",report:!0})}return{type:"kern",mode:r.mode,dimension:a.value}},htmlBuilder(t,e){return pc(t.dimension,e)},mathmlBuilder(t,e){var r=Ie(t.dimension,e);return new yc(r)}});G({type:"lap",names:["\\mathllap","\\mathrlap","\\mathclap"],numArgs:1,allowedInText:!0,handler:(t,e)=>{var r=t.parser,n=t.funcName,a=e[0];return{type:"lap",mode:r.mode,alignment:n.slice(5),body:a}},htmlBuilder:(t,e)=>{var r;t.alignment==="clap"?(r=P([],[me(t.body,e)]),r=P(["katex-inner"],[r],e)):r=P(["katex-inner"],[me(t.body,e)]);var n=P(["katex-fix"],[]),a=P([t.alignment],[r,n],e),i=P(["katex-strut"]);return i.style.height=H(a.height+a.depth),a.depth&&(i.style.verticalAlign=H(-a.depth)),a.children.unshift(i),a=P(["katex-thinbox"],[a],e),P(["mord","katex-vbox"],[a],e)},mathmlBuilder:(t,e)=>{var r=new q("mpadded",[be(t.body,e)]);if(t.alignment!=="rlap"){var n=t.alignment==="llap"?"-1":"-0.5";r.setAttribute("lspace",n+"width")}return r.setAttribute("width","0px"),r}});G({type:"styling",names:["\\(","$"],numArgs:0,allowedInText:!0,allowedInMath:!1,handler(t,e){var r=t.funcName,n=t.parser,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",resetFont:!0,body:s}}});G({type:"text",names:["\\)","\\]"],numArgs:0,allowedInText:!0,allowedInMath:!1,handler(t,e){throw new B("Mismatched "+t.funcName)}});var To=(t,e)=>{switch(e.style.size){case ae.DISPLAY.size:return t.display;case ae.TEXT.size:return t.text;case ae.SCRIPT.size:return t.script;case ae.SCRIPTSCRIPT.size:return t.scriptscript;default:return t.text}};G({type:"mathchoice",names:["\\mathchoice"],numArgs:4,primitive:!0,handler:(t,e)=>{var r=t.parser;return{type:"mathchoice",mode:r.mode,display:Pe(e[0]),text:Pe(e[1]),script:Pe(e[2]),scriptscript:Pe(e[3])}},htmlBuilder:(t,e)=>{var r=To(t,e),n=Fe(r,e,!1);return Kt(n)},mathmlBuilder:(t,e)=>{var r=To(t,e);return mr(r,e)}});var Oc=(t,e,r,n,a,i,s)=>{t=P([],[t]);var o=r&&Yt(r),c,d;if(e){var p=me(e,n.havingStyle(a.sup()),n);d={elem:p,kern:Math.max(n.fontMetrics().bigOpSpacing1,n.fontMetrics().bigOpSpacing3-p.depth)}}if(r){var g=me(r,n.havingStyle(a.sub()),n);c={elem:g,kern:Math.max(n.fontMetrics().bigOpSpacing2,n.fontMetrics().bigOpSpacing4-g.height)}}var v;if(d&&c){var w=n.fontMetrics().bigOpSpacing5+c.elem.height+c.elem.depth+c.kern+t.depth+s;v=fe({positionType:"bottom",positionData:w,children:[{type:"kern",size:n.fontMetrics().bigOpSpacing5},{type:"elem",elem:c.elem,marginLeft:H(-i)},{type:"kern",size:c.kern},{type:"elem",elem:t},{type:"kern",size:d.kern},{type:"elem",elem:d.elem,marginLeft:H(i)},{type:"kern",size:n.fontMetrics().bigOpSpacing5}]})}else if(c){var A=t.height-s;v=fe({positionType:"top",positionData:A,children:[{type:"kern",size:n.fontMetrics().bigOpSpacing5},{type:"elem",elem:c.elem,marginLeft:H(-i)},{type:"kern",size:c.kern},{type:"elem",elem:t}]})}else if(d){var M=t.depth+s;v=fe({positionType:"bottom",positionData:M,children:[{type:"elem",elem:t},{type:"kern",size:d.kern},{type:"elem",elem:d.elem,marginLeft:H(i)},{type:"kern",size:n.fontMetrics().bigOpSpacing5}]})}else return t;var D=[v];if(c&&i!==0&&!o){var S=P(["mspace"],[],n);S.style.marginRight=H(i),D.unshift(S)}return P(["mop","op-limits"],D,n)},$c=new Set(["\\smallint"]),Bc=(t,e)=>{var r,n,a=!1,i;t.type==="supsub"?(r=t.sup,n=t.sub,i=oe(t.base,"op"),a=!0):i=oe(t,"op");var s=e.style,o=!1;s.size===ae.DISPLAY.size&&i.symbol&&!$c.has(i.name)&&(o=!0);var c,d;if(i.symbol){var p=o?"Size2-Regular":"Size1-Regular",g="";if((i.name==="\\oiint"||i.name==="\\oiiint")&&(g=i.name.slice(1),i.name=g==="oiint"?"\\iint":"\\iiint"),c=nt(i.name,p,"math",e,["mop","op-symbol",o?"large-op":"small-op"]),d=c.italic,g.length>0){var v=fc(g+"Size"+(o?"2":"1"),e);c=fe({positionType:"individualShift",children:[{type:"elem",elem:c,shift:0},{type:"elem",elem:v,shift:o?.08:0}]}),i.name="\\"+g,c.classes.unshift("mop"),c.italic=d}}else if(i.body){var w=Fe(i.body,e,!0);w.length===1&&w[0]instanceof Et?(c=w[0],c.classes[0]="mop"):c=P(["mop"],w,e)}else{for(var A=[],M=1;M<i.name.length;M++)A.push(Ui(i.name[M],i.mode,e));c=P(["mop"],A,e)}var D=0,S=0;if((c instanceof Et||i.name==="\\oiint"||i.name==="\\oiiint")&&!i.suppressBaseShift){var C;D=(c.height-c.depth)/2-e.fontMetrics().axisHeight,S=(C=c.italic)!=null?C:0}return a?Oc(c,r,n,e,s,S,D):(D&&(c.style.position="relative",c.style.top=H(D)),c)},sm=(t,e)=>{var r;if(t.symbol)r=new q("mo",[Mt(t.name,t.mode)]),$c.has(t.name)&&r.setAttribute("largeop","false");else if(t.body)r=new q("mo",yt(t.body,e));else{r=new q("mi",[new Oe(t.name.slice(1))]);var n=new q("mo",[Mt("⁡","text")]);t.parentIsSupSub?r=new q("mrow",[r,n]):r=bc([r,n])}return r},om={"∏":"\\prod","∐":"\\coprod","∑":"\\sum","⋀":"\\bigwedge","⋁":"\\bigvee","⋂":"\\bigcap","⋃":"\\bigcup","⨀":"\\bigodot","⨁":"\\bigoplus","⨂":"\\bigotimes","⨄":"\\biguplus","⨆":"\\bigsqcup"};G({type:"op",names:["\\coprod","\\bigvee","\\bigwedge","\\biguplus","\\bigcap","\\bigcup","\\intop","\\prod","\\sum","\\bigotimes","\\bigoplus","\\bigodot","\\bigsqcup","\\smallint","∏","∐","∑","⋀","⋁","⋂","⋃","⨀","⨁","⨂","⨄","⨆"],numArgs:0,handler:(t,e)=>{var r=t.parser,n=t.funcName,a=n;return a.length===1&&(a=om[a]),{type:"op",mode:r.mode,limits:!0,parentIsSupSub:!1,symbol:!0,name:a}},htmlBuilder:Bc,mathmlBuilder:sm});G({type:"op",names:["\\mathop"],numArgs:1,primitive:!0,handler:(t,e)=>{var r=t.parser,n=e[0];return{type:"op",mode:r.mode,limits:!1,parentIsSupSub:!1,symbol:!1,body:Pe(n)}}});var lm={"∫":"\\int","∬":"\\iint","∭":"\\iiint","∮":"\\oint","∯":"\\oiint","∰":"\\oiiint"};G({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"],numArgs:0,handler(t){var e=t.parser,r=t.funcName;return{type:"op",mode:e.mode,limits:!1,parentIsSupSub:!1,symbol:!1,name:r}}});G({type:"op",names:["\\det","\\gcd","\\inf","\\lim","\\max","\\min","\\Pr","\\sup"],numArgs:0,handler(t){var e=t.parser,r=t.funcName;return{type:"op",mode:e.mode,limits:!0,parentIsSupSub:!1,symbol:!1,name:r}}});G({type:"op",names:["\\int","\\iint","\\iiint","\\oint","\\oiint","\\oiiint","∫","∬","∭","∮","∯","∰"],numArgs:0,allowedInArgument:!0,handler(t){var e=t.parser,r=t.funcName,n=r;return n.length===1&&(n=lm[n]),{type:"op",mode:e.mode,limits:!1,parentIsSupSub:!1,symbol:!0,name:n}}});var qc=(t,e)=>{var r,n,a=!1,i;t.type==="supsub"?(r=t.sup,n=t.sub,i=oe(t.base,"operatorname"),a=!0):i=oe(t,"operatorname");var s;if(i.body.length>0){for(var o=i.body.map(g=>{var v="text"in g?g.text:void 0;return typeof v=="string"?{type:"textord",mode:g.mode,text:v}:g}),c=Fe(o,e.withFont("mathrm"),!0),d=0;d<c.length;d++){var p=c[d];p instanceof Et&&(p.text=p.text.replace(/\u2212/,"-").replace(/\u2217/,"*"))}s=P(["mop"],c,e)}else s=P(["mop"],[],e);return a?Oc(s,r,n,e,e.style,0,0):s},cm=(t,e)=>{for(var r=yt(t.body,e.withFont("mathrm")),n=!0,a=0;a<r.length;a++){var i=r[a];if(!(i instanceof yc))if(i instanceof q)switch(i.type){case"mi":case"mn":case"mspace":case"mtext":break;case"mo":{var s=i.children[0];i.children.length===1&&s instanceof Oe?s.text=s.text.replace(/\u2212/,"-").replace(/\u2217/,"*"):n=!1;break}default:n=!1}else n=!1}if(n){var o=r.map(p=>p.toText()).join("");r=[new Oe(o)]}var c=new q("mi",r);c.setAttribute("mathvariant","normal");var d=new q("mo",[Mt("⁡","text")]);return t.parentIsSupSub?new q("mrow",[c,d]):bc([c,d])};G({type:"operatorname",names:["\\operatorname@","\\operatornamewithlimits"],numArgs:1,handler:(t,e)=>{var r=t.parser,n=t.funcName,a=e[0];return{type:"operatorname",mode:r.mode,body:Pe(a),alwaysHandleSupSub:n==="\\operatornamewithlimits",limits:!1,parentIsSupSub:!1}},htmlBuilder:qc,mathmlBuilder:cm});m("\\operatorname","\\@ifstar\\operatornamewithlimits\\operatorname@");Or({type:"ordgroup",htmlBuilder(t,e){return t.semisimple?Kt(Fe(t.body,e,!1)):P(["mord"],Fe(t.body,e,!0),e)},mathmlBuilder(t,e){return mr(t.body,e,!0)}});G({type:"overline",names:["\\overline"],numArgs:1,handler(t,e){var r=t.parser,n=e[0];return{type:"overline",mode:r.mode,body:n}},htmlBuilder(t,e){var r=me(t.body,e.havingCrampedStyle()),n=o0("overline-line",e),a=e.fontMetrics().defaultRuleThickness,i=fe({positionType:"firstBaseline",children:[{type:"elem",elem:r},{type:"kern",size:3*a},{type:"elem",elem:n},{type:"kern",size:a}]});return P(["mord","katex-overline"],[i],e)},mathmlBuilder(t,e){var r=new q("mo",[new Oe("‾")]);r.setAttribute("stretchy","true");var n=new q("mover",[be(t.body,e),r]);return n.setAttribute("accent","true"),n}});G({type:"phantom",names:["\\phantom"],numArgs:1,allowedInText:!0,handler:(t,e)=>{var r=t.parser,n=e[0];return{type:"phantom",mode:r.mode,body:Pe(n)}},htmlBuilder:(t,e)=>{var r=Fe(t.body,e.withPhantom(),!1);return Kt(r)},mathmlBuilder:(t,e)=>{var r=yt(t.body,e);return new q("mphantom",r)}});m("\\hphantom","\\smash{\\phantom{#1}}");G({type:"vphantom",names:["\\vphantom"],numArgs:1,allowedInText:!0,handler:(t,e)=>{var r=t.parser,n=e[0];return{type:"vphantom",mode:r.mode,body:n}},htmlBuilder:(t,e)=>{var r=P(["katex-inner"],[me(t.body,e.withPhantom())]),n=P(["katex-fix"],[]);return P(["mord","rlap"],[r,n],e)},mathmlBuilder:(t,e)=>{var r=yt(Pe(t.body),e),n=new q("mphantom",r),a=new q("mpadded",[n]);return a.setAttribute("width","0px"),a}});G({type:"raisebox",names:["\\raisebox"],numArgs:2,argTypes:["size","hbox"],allowedInText:!0,handler(t,e){var r=t.parser,n=oe(e[0],"size").value,a=e[1];return{type:"raisebox",mode:r.mode,dy:n,body:a}},htmlBuilder(t,e){var r=me(t.body,e),n=Ie(t.dy,e);return fe({positionType:"shift",positionData:-n,children:[{type:"elem",elem:r}]})},mathmlBuilder(t,e){var r=new q("mpadded",[be(t.body,e)]),n=t.dy.number+t.dy.unit;return r.setAttribute("voffset",n),r}});var Fc=(t,e)=>{var r=t.parser;return{type:"reflectbox",mode:r.mode,body:e[0]}};G({type:"reflectbox",names:["\\reflectbox"],numArgs:1,argTypes:["hbox"],allowedInText:!0,handler:Fc,htmlBuilder(t,e){return P(["mord","reflectbox"],[me(t.body,e)],e)},mathmlBuilder(t,e){return be(t.body,e)}});G({type:"reflectbox",names:["\\mathreflectbox"],numArgs:1,argTypes:["math"],handler:Fc});G({type:"internal",names:["\\relax"],numArgs:0,allowedInText:!0,allowedInArgument:!0,handler(t){var e=t.parser;return{type:"internal",mode:e.mode}}});G({type:"rule",names:["\\rule"],numArgs:2,numOptionalArgs:1,allowedInText:!0,allowedInMath:!0,argTypes:["size","size","size"],handler(t,e,r){var n=t.parser,a=r[0],i=oe(e[0],"size"),s=oe(e[1],"size");return{type:"rule",mode:n.mode,shift:a&&oe(a,"size").value,width:i.value,height:s.value}},htmlBuilder(t,e){var r=P(["mord","katex-rule"],[],e),n=Ie(t.width,e),a=Ie(t.height,e),i=t.shift?Ie(t.shift,e):0;return r.style.borderRightWidth=H(n),r.style.borderTopWidth=H(a),r.style.bottom=H(i),r.width=n,r.height=a+i,r.depth=-i,r.maxFontSize=a*1.125*e.sizeMultiplier,r},mathmlBuilder(t,e){var r=Ie(t.width,e),n=Ie(t.height,e),a=t.shift?Ie(t.shift,e):0,i=e.color&&e.getColor()||"black",s=new q("mspace");s.setAttribute("mathbackground",i),s.setAttribute("width",H(r)),s.setAttribute("height",H(n));var o=new q("mpadded",[s]);return a>=0?o.setAttribute("height",H(a)):(o.setAttribute("height",H(a)),o.setAttribute("depth",H(-a))),o.setAttribute("voffset",H(a)),o}});function Hc(t,e,r){for(var n=Fe(t,e,!1),a=e.sizeMultiplier/r.sizeMultiplier,i=0;i<n.length;i++){var s=n[i].classes.indexOf("katex-sizing");s<0?Array.prototype.push.apply(n[i].classes,e.sizingClasses(r)):n[i].classes[s+1]==="reset-size"+e.size&&(n[i].classes[s+1]="reset-size"+r.size),n[i].height*=a,n[i].depth*=a}return Kt(n)}var Eo=["\\tiny","\\sixptsize","\\scriptsize","\\footnotesize","\\small","\\normalsize","\\large","\\Large","\\LARGE","\\huge","\\Huge"],um=(t,e)=>{var r=e.havingSize(t.size);return Hc(t.body,r,e)};G({type:"sizing",names:Eo,numArgs:0,allowedInText:!0,handler:(t,e)=>{var r=t.breakOnTokenText,n=t.funcName,a=t.parser,i=a.parseExpression(!1,r);return{type:"sizing",mode:a.mode,size:Eo.indexOf(n)+1,body:i}},htmlBuilder:um,mathmlBuilder:(t,e)=>{var r=e.havingSize(t.size),n=yt(t.body,r),a=new q("mstyle",n);return a.setAttribute("mathsize",H(r.sizeMultiplier)),a}});G({type:"smash",names:["\\smash"],numArgs:1,numOptionalArgs:1,allowedInText:!0,handler:(t,e,r)=>{var n=t.parser,a=!1,i=!1,s=r[0]&&oe(r[0],"ordgroup");if(s)for(var o,c=0;c<s.body.length;++c){var d=s.body[c];if(o=Vn(d).text,o==="t")a=!0;else if(o==="b")i=!0;else{a=!1,i=!1;break}}else a=!0,i=!0;var p=e[0];return{type:"smash",mode:n.mode,body:p,smashHeight:a,smashDepth:i}},htmlBuilder:(t,e)=>{var r=P([],[me(t.body,e)]);if(!t.smashHeight&&!t.smashDepth)return r;if(t.smashHeight&&(r.height=0),t.smashDepth&&(r.depth=0),t.smashHeight&&t.smashDepth)return P(["mord","katex-smash"],[r],e);if(r.children)for(var n=0;n<r.children.length;n++)t.smashHeight&&(r.children[n].height=0),t.smashDepth&&(r.children[n].depth=0);var a=fe({positionType:"firstBaseline",children:[{type:"elem",elem:r}]});return P(["mord"],[a],e)},mathmlBuilder:(t,e)=>{var r=new q("mpadded",[be(t.body,e)]);return t.smashHeight&&r.setAttribute("height","0px"),t.smashDepth&&r.setAttribute("depth","0px"),r}});G({type:"sqrt",names:["\\sqrt"],numArgs:1,numOptionalArgs:1,handler(t,e,r){var n=t.parser,a=r[0],i=e[0];return{type:"sqrt",mode:n.mode,body:i,index:a}},htmlBuilder(t,e){var r=me(t.body,e.havingCrampedStyle());r.height===0&&(r.height=e.fontMetrics().xHeight),r=l0(r,e);var n=e.fontMetrics(),a=n.defaultRuleThickness,i=a;e.style.id<ae.TEXT.id&&(i=e.fontMetrics().xHeight);var s=a+i/4,o=r.height+r.depth+s+a,c=Gp(o,e),d=c.span,p=c.ruleWidth,g=c.advanceWidth,v=d.height-p;v>r.height+r.depth+s&&(s=(s+v-r.height-r.depth)/2);var w=d.height-r.height-s-p;r.style.paddingLeft=H(g);var A=fe({positionType:"firstBaseline",children:[{type:"elem",elem:r,wrapperClasses:["svg-align"]},{type:"kern",size:-(r.height+w)},{type:"elem",elem:d},{type:"kern",size:p}]});if(t.index){var M=e.havingStyle(ae.SCRIPTSCRIPT),D=me(t.index,M,e),S=.6*(A.height-A.depth),C=fe({positionType:"shift",positionData:-S,children:[{type:"elem",elem:D}]}),W=P(["katex-root"],[C]);return P(["mord","sqrt"],[W,A],e)}else return P(["mord","sqrt"],[A],e)},mathmlBuilder(t,e){var r=t.body,n=t.index;return n?new q("mroot",[be(r,e),be(n,e)]):new q("msqrt",[be(r,e)])}});var vi={display:ae.DISPLAY,text:ae.TEXT,script:ae.SCRIPT,scriptscript:ae.SCRIPTSCRIPT};function dm(t){return t in vi}G({type:"styling",names:["\\displaystyle","\\textstyle","\\scriptstyle","\\scriptscriptstyle"],numArgs:0,allowedInText:!0,primitive:!0,handler(t,e){var r=t.breakOnTokenText,n=t.funcName,a=t.parser,i=a.parseExpression(!0,r),s=n.slice(1,n.length-5);if(!dm(s))throw new Error("Unknown style: "+s);return{type:"styling",mode:a.mode,style:s,body:i}},htmlBuilder(t,e){var r=vi[t.style],n=e.havingStyle(r);return t.resetFont&&(n=n.withFont("")),Hc(t.body,n,e)},mathmlBuilder(t,e){var r=vi[t.style],n=e.havingStyle(r);t.resetFont&&(n=n.withFont(""));var a=yt(t.body,n),i=new q("mstyle",a),s={display:["0","true"],text:["0","false"],script:["1","false"],scriptscript:["2","false"]},o=s[t.style];return i.setAttribute("scriptlevel",o[0]),i.setAttribute("displaystyle",o[1]),i}});var hm=function(e,r){var n=e.base;if(n)if(n.type==="op"){var a=n.limits&&(r.style.size===ae.DISPLAY.size||n.alwaysHandleSupSub);return a?Bc:null}else if(n.type==="operatorname"){var i=n.alwaysHandleSupSub&&(r.style.size===ae.DISPLAY.size||n.limits);return i?qc:null}else{if(n.type==="accent")return Yt(n.base)?kc:null;if(n.type==="horizBrace"){var s=!e.sub;return s===n.isOver?Pc:null}else return null}else return null};Or({type:"supsub",htmlBuilder(t,e){var r=hm(t,e);if(r)return r(t,e);var n=t.base,a=t.sup,i=t.sub,s=me(n,e),o,c,d=e.fontMetrics(),p=0,g=0,v=n&&Yt(n);if(a){var w=e.havingStyle(e.style.sup());o=me(a,w,e),v||(p=s.height-w.fontMetrics().supDrop*w.sizeMultiplier/e.sizeMultiplier)}if(i){var A=e.havingStyle(e.style.sub());c=me(i,A,e),v||(g=s.depth+A.fontMetrics().subDrop*A.sizeMultiplier/e.sizeMultiplier)}var M;e.style===ae.DISPLAY?M=d.sup1:e.style.cramped?M=d.sup3:M=d.sup2;var D=e.sizeMultiplier,S=H(.5/d.ptPerEm/D),C=null;if(c){var W=t.base&&t.base.type==="op"&&t.base.name&&(t.base.name==="\\oiint"||t.base.name==="\\oiiint");if(s instanceof Et||W){var K;C=H(-((K=s.italic)!=null?K:0))}}var X;if(o&&c){p=Math.max(p,M,o.depth+.25*d.xHeight),g=Math.max(g,d.sub2);var T=d.defaultRuleThickness,R=4*T;if(p-o.depth-(c.height-g)<R){g=R-(p-o.depth)+c.height;var U=.8*d.xHeight-(p-o.depth);U>0&&(p+=U,g-=U)}var O=[{type:"elem",elem:c,shift:g,marginRight:S,marginLeft:C},{type:"elem",elem:o,shift:-p,marginRight:S}];X=fe({positionType:"individualShift",children:O})}else if(c){g=Math.max(g,d.sub1,c.height-.8*d.xHeight);var $=[{type:"elem",elem:c,marginLeft:C,marginRight:S}];X=fe({positionType:"shift",positionData:g,children:$})}else if(o)p=Math.max(p,M,o.depth+.25*d.xHeight),X=fe({positionType:"shift",positionData:-p,children:[{type:"elem",elem:o,marginRight:S}]});else throw new Error("supsub must have either sup or sub.");var L=pi(s,"right")||"mord";return P([L],[s,P(["msupsub"],[X])],e)},mathmlBuilder(t,e){var r=!1,n,a;t.base&&t.base.type==="horizBrace"&&(a=!!t.sup,a===t.base.isOver&&(r=!0,n=t.base.isOver)),t.base&&(t.base.type==="op"||t.base.type==="operatorname")&&(t.base.parentIsSupSub=!0);var i=[be(t.base,e)];t.sub&&i.push(be(t.sub,e)),t.sup&&i.push(be(t.sup,e));var s;if(r)s=n?"mover":"munder";else if(t.sub)if(t.sup){var d=t.base;d&&d.type==="op"&&d.limits&&e.style===ae.DISPLAY||d&&d.type==="operatorname"&&d.alwaysHandleSupSub&&(e.style===ae.DISPLAY||d.limits)?s="munderover":s="msubsup"}else{var c=t.base;c&&c.type==="op"&&c.limits&&(e.style===ae.DISPLAY||c.alwaysHandleSupSub)||c&&c.type==="operatorname"&&c.alwaysHandleSupSub&&(c.limits||e.style===ae.DISPLAY)?s="munder":s="msub"}else{var o=t.base;o&&o.type==="op"&&o.limits&&(e.style===ae.DISPLAY||o.alwaysHandleSupSub)||o&&o.type==="operatorname"&&o.alwaysHandleSupSub&&(o.limits||e.style===ae.DISPLAY)?s="mover":s="msup"}return new q(s,i)}});Or({type:"atom",htmlBuilder(t,e){return Ui(t.text,t.mode,e,["m"+t.family])},mathmlBuilder(t,e){var r=new q("mo",[Mt(t.text,t.mode)]);if(t.family==="bin"){var n=ji(t,e);n==="bold-italic"&&r.setAttribute("mathvariant",n)}else t.family==="punct"?r.setAttribute("separator","true"):(t.family==="open"||t.family==="close")&&r.setAttribute("stretchy","false");return r}});var Uc={mi:"italic",mn:"normal",mtext:"normal"};Or({type:"mathord",htmlBuilder(t,e){return Wn(t,e)},mathmlBuilder(t,e){var r=new q("mi",[Mt(t.text,t.mode,e)]),n=ji(t,e)||"italic";return n!==Uc[r.type]&&r.setAttribute("mathvariant",n),r}});Or({type:"textord",htmlBuilder(t,e){return Wn(t,e)},mathmlBuilder(t,e){var r=Mt(t.text,t.mode,e),n=ji(t,e)||"normal",a;return t.mode==="text"?a=new q("mtext",[r]):/[0-9]/.test(t.text)?a=new q("mn",[r]):t.text==="\\prime"?a=new q("mo",[r]):a=new q("mi",[r]),n!==Uc[a.type]&&a.setAttribute("mathvariant",n),a}});var Mo=new Map([["\\nobreak","nobreak"],["\\allowbreak","allowbreak"]]),Co=new Map([[" ",{}],["\\ ",{}],["~",{className:"nobreak"}],["\\space",{}],["\\nobreakspace",{className:"nobreak"}]]);Or({type:"spacing",htmlBuilder(t,e){var r=Co.get(t.text),n=Mo.get(t.text);if(r){var a=r.className||"";if(t.mode==="text"){var i=Wn(t,e);return i.classes.push(a),i}else return P(["mspace",a],[Ui(t.text,t.mode,e)],e)}else{if(n)return P(["mspace",n],[],e);throw new B('Unknown type of space "'+t.text+'"')}},mathmlBuilder(t,e){var r;if(Co.has(t.text))r=new q("mtext",[new Oe(" ")]);else{if(Mo.has(t.text))return new q("mspace");throw new B('Unknown type of space "'+t.text+'"')}return r}});var Io=()=>{var t=new q("mtd",[]);return t.setAttribute("width","50%"),t};Or({type:"tag",mathmlBuilder(t,e){var r=new q("mtable",[new q("mtr",[Io(),new q("mtd",[mr(t.body,e)]),Io(),new q("mtd",[mr(t.tag,e)])])]);return r.setAttribute("width","100%"),r}});var zo={"\\text":void 0,"\\textrm":"textrm","\\textsf":"textsf","\\texttt":"texttt","\\textnormal":"textrm"},Ro={"\\textbf":"textbf","\\textmd":"textmd"},pm={"\\textit":"textit","\\textup":"textup"},Do=(t,e)=>{var r=t.font;if(r){if(zo[r])return e.withTextFontFamily(zo[r]);if(Ro[r])return e.withTextFontWeight(Ro[r]);if(r==="\\emph")return e.fontShape==="textit"?e.withTextFontShape("textup"):e.withTextFontShape("textit")}else return e;return e.withTextFontShape(pm[r])};G({type:"text",names:["\\text","\\textrm","\\textsf","\\texttt","\\textnormal","\\textbf","\\textmd","\\textit","\\textup","\\emph"],numArgs:1,argTypes:["text"],allowedInArgument:!0,allowedInText:!0,handler(t,e){var r=t.parser,n=t.funcName,a=e[0];return{type:"text",mode:r.mode,body:Pe(a),font:n}},htmlBuilder(t,e){var r=Do(t,e),n=Fe(t.body,r,!0);return P(["mord","text"],n,r)},mathmlBuilder(t,e){var r=Do(t,e);return mr(t.body,r)}});G({type:"underline",names:["\\underline"],numArgs:1,allowedInText:!0,handler(t,e){var r=t.parser;return{type:"underline",mode:r.mode,body:e[0]}},htmlBuilder(t,e){var r=me(t.body,e),n=o0("underline-line",e),a=e.fontMetrics().defaultRuleThickness,i=fe({positionType:"top",positionData:r.height,children:[{type:"kern",size:a},{type:"elem",elem:n},{type:"kern",size:3*a},{type:"elem",elem:r}]});return P(["mord","katex-underline"],[i],e)},mathmlBuilder(t,e){var r=new q("mo",[new Oe("‾")]);r.setAttribute("stretchy","true");var n=new q("munder",[be(t.body,e),r]);return n.setAttribute("accentunder","true"),n}});G({type:"vcenter",names:["\\vcenter"],numArgs:1,argTypes:["original"],allowedInText:!1,handler(t,e){var r=t.parser;return{type:"vcenter",mode:r.mode,body:e[0]}},htmlBuilder(t,e){var r=me(t.body,e),n=e.fontMetrics().axisHeight,a=.5*(r.height-n-(r.depth+n));return fe({positionType:"shift",positionData:a,children:[{type:"elem",elem:r}]})},mathmlBuilder(t,e){var r=new q("mpadded",[be(t.body,e)],["vcenter"]);return new q("mrow",[r])}});G({type:"verb",names:["\\verb"],numArgs:0,allowedInText:!0,handler(t,e,r){throw new B("\\verb ended by end of line instead of matching delimiter")},htmlBuilder(t,e){for(var r=No(t),n=[],a=e.havingStyle(e.style.text()),i=0;i<r.length;i++){var s=r[i];s==="~"&&(s="\\textasciitilde"),n.push(nt(s,"Typewriter-Regular",t.mode,a,["mord","texttt"]))}return P(["mord","text"].concat(a.sizingClasses(e)),hc(n),a)},mathmlBuilder(t,e){var r=new Oe(No(t)),n=new q("mtext",[r]);return n.setAttribute("mathvariant","monospace"),n}});var No=t=>t.body.replace(/ /g,t.star?"␣":" "),sr=gc,Wc=`[ \r
329
+ -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.")}};function jh(t){return"toText"in t}class f0{constructor(e){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=e,this.classes=[],this.height=0,this.depth=0,this.maxFontSize=0,this.style={}}hasClass(e){return this.classes.includes(e)}toNode(){for(var e=document.createDocumentFragment(),r=0;r<this.children.length;r++)e.appendChild(this.children[r].toNode());return e}toMarkup(){for(var e="",r=0;r<this.children.length;r++)e+=this.children[r].toMarkup();return e}toText(){return this.children.map(e=>{if(jh(e))return e.toText();throw new Error("Expected MathDomNode with toText, got "+e.constructor.name)}).join("")}}var ai={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},Vh={ex:!0,em:!0,mu:!0},oc=function(e){return typeof e!="string"&&(e=e.unit),e in ai||e in Vh||e==="ex"},Ie=function(e,r){var n;if(e.unit in ai)n=ai[e.unit]/r.fontMetrics().ptPerEm/r.sizeMultiplier;else if(e.unit==="mu")n=r.fontMetrics().cssEmPerMu;else{var a;if(r.style.isTight()?a=r.havingStyle(r.style.text()):a=r,e.unit==="ex")n=a.fontMetrics().xHeight;else if(e.unit==="em")n=a.fontMetrics().quad;else throw new B("Invalid unit: '"+e.unit+"'");a!==r&&(n*=a.sizeMultiplier/r.sizeMultiplier)}return Math.min(e.number*n,r.maxSize)},H=function(e){return+e.toFixed(4)+"em"},dr=function(e){return e.filter(r=>r).join(" ")},qi=function(e){var r="";for(var n of Object.keys(e)){var a=e[n];a!==void 0&&(r+=wh(n)+":"+a+";")}return r},lc=function(e,r,n){if(this.classes=e||[],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)}},cc=function(e){var r=document.createElement(e);r.className=dr(this.classes),Object.assign(r.style,this.style);for(var n of Object.keys(this.attributes))r.setAttribute(n,this.attributes[n]);for(var a=0;a<this.children.length;a++)r.appendChild(this.children[a].toNode());return r},Xh=/[\s"'>/=\x00-\x1f]/,uc=function(e){var r="<"+e;this.classes.length&&(r+=' class="'+Ke(dr(this.classes))+'"');var n=qi(this.style);n&&(r+=' style="'+Ke(n)+'"');for(var a of Object.keys(this.attributes)){if(Xh.test(a))throw new B("Invalid attribute name '"+a+"'");r+=" "+a+'="'+Ke(this.attributes[a])+'"'}r+=">";for(var i=0;i<this.children.length;i++)r+=this.children[i].toMarkup();return r+="</"+e+">",r};class j0{constructor(e,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,this.italic=void 0,lc.call(this,e,n,a),this.children=r||[]}setAttribute(e,r){this.attributes[e]=r}hasClass(e){return this.classes.includes(e)}toNode(){return cc.call(this,"span")}toMarkup(){return uc.call(this,"span")}}class Fi{constructor(e,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,lc.call(this,r,a),this.children=n||[],this.setAttribute("href",e)}setAttribute(e,r){this.attributes[e]=r}hasClass(e){return this.classes.includes(e)}toNode(){return cc.call(this,"a")}toMarkup(){return uc.call(this,"a")}}class Yh{constructor(e,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=e,this.classes=["mord"],this.height=0,this.depth=0,this.maxFontSize=0,this.style=n}hasClass(e){return this.classes.includes(e)}toNode(){var e=document.createElement("img");return e.src=this.src,e.alt=this.alt,e.className="mord",Object.assign(e.style,this.style),e}toMarkup(){var e='<img src="'+Ke(this.src)+'"'+(' alt="'+Ke(this.alt)+'"'),r=qi(this.style);return r&&(e+=' style="'+Ke(r)+'"'),e+="'/>",e}}var Kh={î:"ı̂",ï:"ı̈",í:"ı́",ì:"ı̀"};class Et{constructor(e,r,n,a,i,s,o,c){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=e,this.height=r||0,this.depth=n||0,this.italic=a||0,this.skew=i||0,this.width=s||0,this.classes=o||[],this.style=c||{},this.maxFontSize=0;var d=Lh(this.text.charCodeAt(0));d&&this.classes.push(d+"_fallback"),/[îïíì]/.test(this.text)&&(this.text=Kh[this.text])}hasClass(e){return this.classes.includes(e)}toNode(){var e=document.createTextNode(this.text),r=null;return this.italic>0&&(r=document.createElement("span"),r.style.marginRight=H(this.italic)),this.classes.length>0&&(r=r||document.createElement("span"),r.className=dr(this.classes)),Object.keys(this.style).length>0&&(r=r||document.createElement("span"),Object.assign(r.style,this.style)),r?(r.appendChild(e),r):e}toMarkup(){var e=!1,r="<span";this.classes.length&&(e=!0,r+=' class="',r+=Ke(dr(this.classes)),r+='"');var n="";this.italic>0&&(n+="margin-right:"+H(this.italic)+";"),n+=qi(this.style),n&&(e=!0,r+=' style="'+Ke(n)+'"');var a=Ke(this.text);return e?(r+=">",r+=a,r+="</span>",r):a}}class hr{constructor(e,r){this.children=void 0,this.attributes=void 0,this.children=e||[],this.attributes=r||{}}toNode(){var e="http://www.w3.org/2000/svg",r=document.createElementNS(e,"svg");for(var n of Object.keys(this.attributes))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 e='<svg xmlns="http://www.w3.org/2000/svg"';for(var r of Object.keys(this.attributes))e+=" "+r+'="'+Ke(this.attributes[r])+'"';e+=">";for(var n=0;n<this.children.length;n++)e+=this.children[n].toMarkup();return e+="</svg>",e}}class Nr{constructor(e,r){this.pathName=void 0,this.alternate=void 0,this.pathName=e,this.alternate=r}toNode(){var e="http://www.w3.org/2000/svg",r=document.createElementNS(e,"path");return this.alternate?r.setAttribute("d",this.alternate):r.setAttribute("d",Ks[this.pathName]),r}toMarkup(){return this.alternate?'<path d="'+Ke(this.alternate)+'"/>':'<path d="'+Ke(Ks[this.pathName])+'"/>'}}class Zs{constructor(e){this.attributes=void 0,this.attributes=e||{}}toNode(){var e="http://www.w3.org/2000/svg",r=document.createElementNS(e,"line");for(var n of Object.keys(this.attributes))r.setAttribute(n,this.attributes[n]);return r}toMarkup(){var e="<line";for(var r of Object.keys(this.attributes))e+=" "+r+'="'+Ke(this.attributes[r])+'"';return e+="/>",e}}function Zh(t){if(t instanceof Et)return t;throw new Error("Expected symbolNode but got "+String(t)+".")}function Qh(t){if(t instanceof j0)return t;throw new Error("Expected span<HtmlDomNode> but got "+String(t)+".")}var Jh=t=>t instanceof j0||t instanceof Fi||t instanceof f0,Ut={"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]}},Sa={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]},Qs={Å:"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 Hi(t,e,r){if(!Ut[e])throw new Error("Font metrics not found for font: "+e+".");var n=t.charCodeAt(0),a=Ut[e][n];if(!a&&t[0]in Qs&&(n=Qs[t[0]].charCodeAt(0),a=Ut[e][n]),!a&&r==="text"&&sc(n)&&(a=Ut[e][77]),a)return{depth:a[0],height:a[1],italic:a[2],skew:a[3],width:a[4]}}var Aa={};function ep(t){var e;if(t>=5?e=0:t>=3?e=1:e=2,!Aa[e]){var r=Aa[e]={cssEmPerMu:Sa.quad[e]/18};for(var n of Object.keys(Sa))r[n]=Sa[n][e]}return Aa[e]}var Te={math:{},text:{}};function l(t,e,r,n,a,i){Te[t][a]={font:e,group:r,replace:n},i&&n&&(Te[t][n]=Te[t][a])}var u="math",_="text",h="main",b="ams",Me="accent-token",j="bin",it="close",g0="inner",Q="mathord",$e="op-token",bt="open",V0="punct",y="rel",Yt="spacing",k="textord";l(u,h,y,"≡","\\equiv",!0);l(u,h,y,"≺","\\prec",!0);l(u,h,y,"≻","\\succ",!0);l(u,h,y,"∼","\\sim",!0);l(u,h,y,"⊥","\\perp");l(u,h,y,"⪯","\\preceq",!0);l(u,h,y,"⪰","\\succeq",!0);l(u,h,y,"≃","\\simeq",!0);l(u,h,y,"∣","\\mid",!0);l(u,h,y,"≪","\\ll",!0);l(u,h,y,"≫","\\gg",!0);l(u,h,y,"≍","\\asymp",!0);l(u,h,y,"∥","\\parallel");l(u,h,y,"⋈","\\bowtie",!0);l(u,h,y,"⌣","\\smile",!0);l(u,h,y,"⊑","\\sqsubseteq",!0);l(u,h,y,"⊒","\\sqsupseteq",!0);l(u,h,y,"≐","\\doteq",!0);l(u,h,y,"⌢","\\frown",!0);l(u,h,y,"∋","\\ni",!0);l(u,h,y,"∝","\\propto",!0);l(u,h,y,"⊢","\\vdash",!0);l(u,h,y,"⊣","\\dashv",!0);l(u,h,y,"∋","\\owns");l(u,h,V0,".","\\ldotp");l(u,h,V0,"⋅","\\cdotp");l(u,h,V0,"⋅","·");l(_,h,k,"⋅","·");l(u,h,k,"#","\\#");l(_,h,k,"#","\\#");l(u,h,k,"&","\\&");l(_,h,k,"&","\\&");l(u,h,k,"ℵ","\\aleph",!0);l(u,h,k,"∀","\\forall",!0);l(u,h,k,"ℏ","\\hbar",!0);l(u,h,k,"∃","\\exists",!0);l(u,h,k,"∇","\\nabla",!0);l(u,h,k,"♭","\\flat",!0);l(u,h,k,"ℓ","\\ell",!0);l(u,h,k,"♮","\\natural",!0);l(u,h,k,"♣","\\clubsuit",!0);l(u,h,k,"℘","\\wp",!0);l(u,h,k,"♯","\\sharp",!0);l(u,h,k,"♢","\\diamondsuit",!0);l(u,h,k,"ℜ","\\Re",!0);l(u,h,k,"♡","\\heartsuit",!0);l(u,h,k,"ℑ","\\Im",!0);l(u,h,k,"♠","\\spadesuit",!0);l(u,h,k,"§","\\S",!0);l(_,h,k,"§","\\S");l(u,h,k,"¶","\\P",!0);l(_,h,k,"¶","\\P");l(u,h,k,"†","\\dag");l(_,h,k,"†","\\dag");l(_,h,k,"†","\\textdagger");l(u,h,k,"‡","\\ddag");l(_,h,k,"‡","\\ddag");l(_,h,k,"‡","\\textdaggerdbl");l(u,h,it,"⎱","\\rmoustache",!0);l(u,h,bt,"⎰","\\lmoustache",!0);l(u,h,it,"⟯","\\rgroup",!0);l(u,h,bt,"⟮","\\lgroup",!0);l(u,h,j,"∓","\\mp",!0);l(u,h,j,"⊖","\\ominus",!0);l(u,h,j,"⊎","\\uplus",!0);l(u,h,j,"⊓","\\sqcap",!0);l(u,h,j,"∗","\\ast");l(u,h,j,"⊔","\\sqcup",!0);l(u,h,j,"◯","\\bigcirc",!0);l(u,h,j,"∙","\\bullet",!0);l(u,h,j,"‡","\\ddagger");l(u,h,j,"≀","\\wr",!0);l(u,h,j,"⨿","\\amalg");l(u,h,j,"&","\\And");l(u,h,y,"⟵","\\longleftarrow",!0);l(u,h,y,"⇐","\\Leftarrow",!0);l(u,h,y,"⟸","\\Longleftarrow",!0);l(u,h,y,"⟶","\\longrightarrow",!0);l(u,h,y,"⇒","\\Rightarrow",!0);l(u,h,y,"⟹","\\Longrightarrow",!0);l(u,h,y,"↔","\\leftrightarrow",!0);l(u,h,y,"⟷","\\longleftrightarrow",!0);l(u,h,y,"⇔","\\Leftrightarrow",!0);l(u,h,y,"⟺","\\Longleftrightarrow",!0);l(u,h,y,"↦","\\mapsto",!0);l(u,h,y,"⟼","\\longmapsto",!0);l(u,h,y,"↗","\\nearrow",!0);l(u,h,y,"↩","\\hookleftarrow",!0);l(u,h,y,"↪","\\hookrightarrow",!0);l(u,h,y,"↘","\\searrow",!0);l(u,h,y,"↼","\\leftharpoonup",!0);l(u,h,y,"⇀","\\rightharpoonup",!0);l(u,h,y,"↙","\\swarrow",!0);l(u,h,y,"↽","\\leftharpoondown",!0);l(u,h,y,"⇁","\\rightharpoondown",!0);l(u,h,y,"↖","\\nwarrow",!0);l(u,h,y,"⇌","\\rightleftharpoons",!0);l(u,b,y,"≮","\\nless",!0);l(u,b,y,"","\\@nleqslant");l(u,b,y,"","\\@nleqq");l(u,b,y,"⪇","\\lneq",!0);l(u,b,y,"≨","\\lneqq",!0);l(u,b,y,"","\\@lvertneqq");l(u,b,y,"⋦","\\lnsim",!0);l(u,b,y,"⪉","\\lnapprox",!0);l(u,b,y,"⊀","\\nprec",!0);l(u,b,y,"⋠","\\npreceq",!0);l(u,b,y,"⋨","\\precnsim",!0);l(u,b,y,"⪹","\\precnapprox",!0);l(u,b,y,"≁","\\nsim",!0);l(u,b,y,"","\\@nshortmid");l(u,b,y,"∤","\\nmid",!0);l(u,b,y,"⊬","\\nvdash",!0);l(u,b,y,"⊭","\\nvDash",!0);l(u,b,y,"⋪","\\ntriangleleft");l(u,b,y,"⋬","\\ntrianglelefteq",!0);l(u,b,y,"⊊","\\subsetneq",!0);l(u,b,y,"","\\@varsubsetneq");l(u,b,y,"⫋","\\subsetneqq",!0);l(u,b,y,"","\\@varsubsetneqq");l(u,b,y,"≯","\\ngtr",!0);l(u,b,y,"","\\@ngeqslant");l(u,b,y,"","\\@ngeqq");l(u,b,y,"⪈","\\gneq",!0);l(u,b,y,"≩","\\gneqq",!0);l(u,b,y,"","\\@gvertneqq");l(u,b,y,"⋧","\\gnsim",!0);l(u,b,y,"⪊","\\gnapprox",!0);l(u,b,y,"⊁","\\nsucc",!0);l(u,b,y,"⋡","\\nsucceq",!0);l(u,b,y,"⋩","\\succnsim",!0);l(u,b,y,"⪺","\\succnapprox",!0);l(u,b,y,"≆","\\ncong",!0);l(u,b,y,"","\\@nshortparallel");l(u,b,y,"∦","\\nparallel",!0);l(u,b,y,"⊯","\\nVDash",!0);l(u,b,y,"⋫","\\ntriangleright");l(u,b,y,"⋭","\\ntrianglerighteq",!0);l(u,b,y,"","\\@nsupseteqq");l(u,b,y,"⊋","\\supsetneq",!0);l(u,b,y,"","\\@varsupsetneq");l(u,b,y,"⫌","\\supsetneqq",!0);l(u,b,y,"","\\@varsupsetneqq");l(u,b,y,"⊮","\\nVdash",!0);l(u,b,y,"⪵","\\precneqq",!0);l(u,b,y,"⪶","\\succneqq",!0);l(u,b,y,"","\\@nsubseteqq");l(u,b,j,"⊴","\\unlhd");l(u,b,j,"⊵","\\unrhd");l(u,b,y,"↚","\\nleftarrow",!0);l(u,b,y,"↛","\\nrightarrow",!0);l(u,b,y,"⇍","\\nLeftarrow",!0);l(u,b,y,"⇏","\\nRightarrow",!0);l(u,b,y,"↮","\\nleftrightarrow",!0);l(u,b,y,"⇎","\\nLeftrightarrow",!0);l(u,b,y,"△","\\vartriangle");l(u,b,k,"ℏ","\\hslash");l(u,b,k,"▽","\\triangledown");l(u,b,k,"◊","\\lozenge");l(u,b,k,"Ⓢ","\\circledS");l(u,b,k,"®","\\circledR");l(_,b,k,"®","\\circledR");l(u,b,k,"∡","\\measuredangle",!0);l(u,b,k,"∄","\\nexists");l(u,b,k,"℧","\\mho");l(u,b,k,"Ⅎ","\\Finv",!0);l(u,b,k,"⅁","\\Game",!0);l(u,b,k,"‵","\\backprime");l(u,b,k,"▲","\\blacktriangle");l(u,b,k,"▼","\\blacktriangledown");l(u,b,k,"■","\\blacksquare");l(u,b,k,"⧫","\\blacklozenge");l(u,b,k,"★","\\bigstar");l(u,b,k,"∢","\\sphericalangle",!0);l(u,b,k,"∁","\\complement",!0);l(u,b,k,"ð","\\eth",!0);l(_,h,k,"ð","ð");l(u,b,k,"╱","\\diagup");l(u,b,k,"╲","\\diagdown");l(u,b,k,"□","\\square");l(u,b,k,"□","\\Box");l(u,b,k,"◊","\\Diamond");l(u,b,k,"¥","\\yen",!0);l(_,b,k,"¥","\\yen",!0);l(u,b,k,"✓","\\checkmark",!0);l(_,b,k,"✓","\\checkmark");l(u,b,k,"ℶ","\\beth",!0);l(u,b,k,"ℸ","\\daleth",!0);l(u,b,k,"ℷ","\\gimel",!0);l(u,b,k,"ϝ","\\digamma",!0);l(u,b,k,"ϰ","\\varkappa");l(u,b,bt,"┌","\\@ulcorner",!0);l(u,b,it,"┐","\\@urcorner",!0);l(u,b,bt,"└","\\@llcorner",!0);l(u,b,it,"┘","\\@lrcorner",!0);l(u,b,y,"≦","\\leqq",!0);l(u,b,y,"⩽","\\leqslant",!0);l(u,b,y,"⪕","\\eqslantless",!0);l(u,b,y,"≲","\\lesssim",!0);l(u,b,y,"⪅","\\lessapprox",!0);l(u,b,y,"≊","\\approxeq",!0);l(u,b,j,"⋖","\\lessdot");l(u,b,y,"⋘","\\lll",!0);l(u,b,y,"≶","\\lessgtr",!0);l(u,b,y,"⋚","\\lesseqgtr",!0);l(u,b,y,"⪋","\\lesseqqgtr",!0);l(u,b,y,"≑","\\doteqdot");l(u,b,y,"≓","\\risingdotseq",!0);l(u,b,y,"≒","\\fallingdotseq",!0);l(u,b,y,"∽","\\backsim",!0);l(u,b,y,"⋍","\\backsimeq",!0);l(u,b,y,"⫅","\\subseteqq",!0);l(u,b,y,"⋐","\\Subset",!0);l(u,b,y,"⊏","\\sqsubset",!0);l(u,b,y,"≼","\\preccurlyeq",!0);l(u,b,y,"⋞","\\curlyeqprec",!0);l(u,b,y,"≾","\\precsim",!0);l(u,b,y,"⪷","\\precapprox",!0);l(u,b,y,"⊲","\\vartriangleleft");l(u,b,y,"⊴","\\trianglelefteq");l(u,b,y,"⊨","\\vDash",!0);l(u,b,y,"⊪","\\Vvdash",!0);l(u,b,y,"⌣","\\smallsmile");l(u,b,y,"⌢","\\smallfrown");l(u,b,y,"≏","\\bumpeq",!0);l(u,b,y,"≎","\\Bumpeq",!0);l(u,b,y,"≧","\\geqq",!0);l(u,b,y,"⩾","\\geqslant",!0);l(u,b,y,"⪖","\\eqslantgtr",!0);l(u,b,y,"≳","\\gtrsim",!0);l(u,b,y,"⪆","\\gtrapprox",!0);l(u,b,j,"⋗","\\gtrdot");l(u,b,y,"⋙","\\ggg",!0);l(u,b,y,"≷","\\gtrless",!0);l(u,b,y,"⋛","\\gtreqless",!0);l(u,b,y,"⪌","\\gtreqqless",!0);l(u,b,y,"≖","\\eqcirc",!0);l(u,b,y,"≗","\\circeq",!0);l(u,b,y,"≜","\\triangleq",!0);l(u,b,y,"∼","\\thicksim");l(u,b,y,"≈","\\thickapprox");l(u,b,y,"⫆","\\supseteqq",!0);l(u,b,y,"⋑","\\Supset",!0);l(u,b,y,"⊐","\\sqsupset",!0);l(u,b,y,"≽","\\succcurlyeq",!0);l(u,b,y,"⋟","\\curlyeqsucc",!0);l(u,b,y,"≿","\\succsim",!0);l(u,b,y,"⪸","\\succapprox",!0);l(u,b,y,"⊳","\\vartriangleright");l(u,b,y,"⊵","\\trianglerighteq");l(u,b,y,"⊩","\\Vdash",!0);l(u,b,y,"∣","\\shortmid");l(u,b,y,"∥","\\shortparallel");l(u,b,y,"≬","\\between",!0);l(u,b,y,"⋔","\\pitchfork",!0);l(u,b,y,"∝","\\varpropto");l(u,b,y,"◀","\\blacktriangleleft");l(u,b,y,"∴","\\therefore",!0);l(u,b,y,"∍","\\backepsilon");l(u,b,y,"▶","\\blacktriangleright");l(u,b,y,"∵","\\because",!0);l(u,b,y,"⋘","\\llless");l(u,b,y,"⋙","\\gggtr");l(u,b,j,"⊲","\\lhd");l(u,b,j,"⊳","\\rhd");l(u,b,y,"≂","\\eqsim",!0);l(u,h,y,"⋈","\\Join");l(u,b,y,"≑","\\Doteq",!0);l(u,b,j,"∔","\\dotplus",!0);l(u,b,j,"∖","\\smallsetminus");l(u,b,j,"⋒","\\Cap",!0);l(u,b,j,"⋓","\\Cup",!0);l(u,b,j,"⩞","\\doublebarwedge",!0);l(u,b,j,"⊟","\\boxminus",!0);l(u,b,j,"⊞","\\boxplus",!0);l(u,b,j,"⋇","\\divideontimes",!0);l(u,b,j,"⋉","\\ltimes",!0);l(u,b,j,"⋊","\\rtimes",!0);l(u,b,j,"⋋","\\leftthreetimes",!0);l(u,b,j,"⋌","\\rightthreetimes",!0);l(u,b,j,"⋏","\\curlywedge",!0);l(u,b,j,"⋎","\\curlyvee",!0);l(u,b,j,"⊝","\\circleddash",!0);l(u,b,j,"⊛","\\circledast",!0);l(u,b,j,"⋅","\\centerdot");l(u,b,j,"⊺","\\intercal",!0);l(u,b,j,"⋒","\\doublecap");l(u,b,j,"⋓","\\doublecup");l(u,b,j,"⊠","\\boxtimes",!0);l(u,b,y,"⇢","\\dashrightarrow",!0);l(u,b,y,"⇠","\\dashleftarrow",!0);l(u,b,y,"⇇","\\leftleftarrows",!0);l(u,b,y,"⇆","\\leftrightarrows",!0);l(u,b,y,"⇚","\\Lleftarrow",!0);l(u,b,y,"↞","\\twoheadleftarrow",!0);l(u,b,y,"↢","\\leftarrowtail",!0);l(u,b,y,"↫","\\looparrowleft",!0);l(u,b,y,"⇋","\\leftrightharpoons",!0);l(u,b,y,"↶","\\curvearrowleft",!0);l(u,b,y,"↺","\\circlearrowleft",!0);l(u,b,y,"↰","\\Lsh",!0);l(u,b,y,"⇈","\\upuparrows",!0);l(u,b,y,"↿","\\upharpoonleft",!0);l(u,b,y,"⇃","\\downharpoonleft",!0);l(u,h,y,"⊶","\\origof",!0);l(u,h,y,"⊷","\\imageof",!0);l(u,b,y,"⊸","\\multimap",!0);l(u,b,y,"↭","\\leftrightsquigarrow",!0);l(u,b,y,"⇉","\\rightrightarrows",!0);l(u,b,y,"⇄","\\rightleftarrows",!0);l(u,b,y,"↠","\\twoheadrightarrow",!0);l(u,b,y,"↣","\\rightarrowtail",!0);l(u,b,y,"↬","\\looparrowright",!0);l(u,b,y,"↷","\\curvearrowright",!0);l(u,b,y,"↻","\\circlearrowright",!0);l(u,b,y,"↱","\\Rsh",!0);l(u,b,y,"⇊","\\downdownarrows",!0);l(u,b,y,"↾","\\upharpoonright",!0);l(u,b,y,"⇂","\\downharpoonright",!0);l(u,b,y,"⇝","\\rightsquigarrow",!0);l(u,b,y,"⇝","\\leadsto");l(u,b,y,"⇛","\\Rrightarrow",!0);l(u,b,y,"↾","\\restriction");l(u,h,k,"‘","`");l(u,h,k,"$","\\$");l(_,h,k,"$","\\$");l(_,h,k,"$","\\textdollar");l(u,h,k,"%","\\%");l(_,h,k,"%","\\%");l(u,h,k,"_","\\_");l(_,h,k,"_","\\_");l(_,h,k,"_","\\textunderscore");l(u,h,k,"∠","\\angle",!0);l(u,h,k,"∞","\\infty",!0);l(u,h,k,"′","\\prime");l(u,h,k,"△","\\triangle");l(u,h,k,"Γ","\\Gamma",!0);l(u,h,k,"Δ","\\Delta",!0);l(u,h,k,"Θ","\\Theta",!0);l(u,h,k,"Λ","\\Lambda",!0);l(u,h,k,"Ξ","\\Xi",!0);l(u,h,k,"Π","\\Pi",!0);l(u,h,k,"Σ","\\Sigma",!0);l(u,h,k,"Υ","\\Upsilon",!0);l(u,h,k,"Φ","\\Phi",!0);l(u,h,k,"Ψ","\\Psi",!0);l(u,h,k,"Ω","\\Omega",!0);l(u,h,k,"A","Α");l(u,h,k,"B","Β");l(u,h,k,"E","Ε");l(u,h,k,"Z","Ζ");l(u,h,k,"H","Η");l(u,h,k,"I","Ι");l(u,h,k,"K","Κ");l(u,h,k,"M","Μ");l(u,h,k,"N","Ν");l(u,h,k,"O","Ο");l(u,h,k,"P","Ρ");l(u,h,k,"T","Τ");l(u,h,k,"X","Χ");l(u,h,k,"¬","\\neg",!0);l(u,h,k,"¬","\\lnot");l(u,h,k,"⊤","\\top");l(u,h,k,"⊥","\\bot");l(u,h,k,"∅","\\emptyset");l(u,b,k,"∅","\\varnothing");l(u,h,Q,"α","\\alpha",!0);l(u,h,Q,"β","\\beta",!0);l(u,h,Q,"γ","\\gamma",!0);l(u,h,Q,"δ","\\delta",!0);l(u,h,Q,"ϵ","\\epsilon",!0);l(u,h,Q,"ζ","\\zeta",!0);l(u,h,Q,"η","\\eta",!0);l(u,h,Q,"θ","\\theta",!0);l(u,h,Q,"ι","\\iota",!0);l(u,h,Q,"κ","\\kappa",!0);l(u,h,Q,"λ","\\lambda",!0);l(u,h,Q,"μ","\\mu",!0);l(u,h,Q,"ν","\\nu",!0);l(u,h,Q,"ξ","\\xi",!0);l(u,h,Q,"ο","\\omicron",!0);l(u,h,Q,"π","\\pi",!0);l(u,h,Q,"ρ","\\rho",!0);l(u,h,Q,"σ","\\sigma",!0);l(u,h,Q,"τ","\\tau",!0);l(u,h,Q,"υ","\\upsilon",!0);l(u,h,Q,"ϕ","\\phi",!0);l(u,h,Q,"χ","\\chi",!0);l(u,h,Q,"ψ","\\psi",!0);l(u,h,Q,"ω","\\omega",!0);l(u,h,Q,"ε","\\varepsilon",!0);l(u,h,Q,"ϑ","\\vartheta",!0);l(u,h,Q,"ϖ","\\varpi",!0);l(u,h,Q,"ϱ","\\varrho",!0);l(u,h,Q,"ς","\\varsigma",!0);l(u,h,Q,"φ","\\varphi",!0);l(u,h,j,"∗","*",!0);l(u,h,j,"+","+");l(u,h,j,"−","-",!0);l(u,h,j,"⋅","\\cdot",!0);l(u,h,j,"∘","\\circ",!0);l(u,h,j,"÷","\\div",!0);l(u,h,j,"±","\\pm",!0);l(u,h,j,"×","\\times",!0);l(u,h,j,"∩","\\cap",!0);l(u,h,j,"∪","\\cup",!0);l(u,h,j,"∖","\\setminus",!0);l(u,h,j,"∧","\\land");l(u,h,j,"∨","\\lor");l(u,h,j,"∧","\\wedge",!0);l(u,h,j,"∨","\\vee",!0);l(u,h,k,"√","\\surd");l(u,h,bt,"⟨","\\langle",!0);l(u,h,bt,"∣","\\lvert");l(u,h,bt,"∥","\\lVert");l(u,h,it,"?","?");l(u,h,it,"!","!");l(u,h,it,"⟩","\\rangle",!0);l(u,h,it,"∣","\\rvert");l(u,h,it,"∥","\\rVert");l(u,h,y,"=","=");l(u,h,y,":",":");l(u,h,y,"≈","\\approx",!0);l(u,h,y,"≅","\\cong",!0);l(u,h,y,"≥","\\ge");l(u,h,y,"≥","\\geq",!0);l(u,h,y,"←","\\gets");l(u,h,y,">","\\gt",!0);l(u,h,y,"∈","\\in",!0);l(u,h,y,"","\\@not");l(u,h,y,"⊂","\\subset",!0);l(u,h,y,"⊃","\\supset",!0);l(u,h,y,"⊆","\\subseteq",!0);l(u,h,y,"⊇","\\supseteq",!0);l(u,b,y,"⊈","\\nsubseteq",!0);l(u,b,y,"⊉","\\nsupseteq",!0);l(u,h,y,"⊨","\\models");l(u,h,y,"←","\\leftarrow",!0);l(u,h,y,"≤","\\le");l(u,h,y,"≤","\\leq",!0);l(u,h,y,"<","\\lt",!0);l(u,h,y,"→","\\rightarrow",!0);l(u,h,y,"→","\\to");l(u,b,y,"≱","\\ngeq",!0);l(u,b,y,"≰","\\nleq",!0);l(u,h,Yt," ","\\ ");l(u,h,Yt," ","\\space");l(u,h,Yt," ","\\nobreakspace");l(_,h,Yt," ","\\ ");l(_,h,Yt," "," ");l(_,h,Yt," ","\\space");l(_,h,Yt," ","\\nobreakspace");l(u,h,Yt,"","\\nobreak");l(u,h,Yt,"","\\allowbreak");l(u,h,V0,",",",");l(u,h,V0,";",";");l(u,b,j,"⊼","\\barwedge",!0);l(u,b,j,"⊻","\\veebar",!0);l(u,h,j,"⊙","\\odot",!0);l(u,h,j,"⊕","\\oplus",!0);l(u,h,j,"⊗","\\otimes",!0);l(u,h,k,"∂","\\partial",!0);l(u,h,j,"⊘","\\oslash",!0);l(u,b,j,"⊚","\\circledcirc",!0);l(u,b,j,"⊡","\\boxdot",!0);l(u,h,j,"△","\\bigtriangleup");l(u,h,j,"▽","\\bigtriangledown");l(u,h,j,"†","\\dagger");l(u,h,j,"⋄","\\diamond");l(u,h,j,"⋆","\\star");l(u,h,j,"◃","\\triangleleft");l(u,h,j,"▹","\\triangleright");l(u,h,bt,"{","\\{");l(_,h,k,"{","\\{");l(_,h,k,"{","\\textbraceleft");l(u,h,it,"}","\\}");l(_,h,k,"}","\\}");l(_,h,k,"}","\\textbraceright");l(u,h,bt,"{","\\lbrace");l(u,h,it,"}","\\rbrace");l(u,h,bt,"[","\\lbrack",!0);l(_,h,k,"[","\\lbrack",!0);l(u,h,it,"]","\\rbrack",!0);l(_,h,k,"]","\\rbrack",!0);l(u,h,bt,"(","\\lparen",!0);l(u,h,it,")","\\rparen",!0);l(_,h,k,"<","\\textless",!0);l(_,h,k,">","\\textgreater",!0);l(u,h,bt,"⌊","\\lfloor",!0);l(u,h,it,"⌋","\\rfloor",!0);l(u,h,bt,"⌈","\\lceil",!0);l(u,h,it,"⌉","\\rceil",!0);l(u,h,k,"\\","\\backslash");l(u,h,k,"∣","|");l(u,h,k,"∣","\\vert");l(_,h,k,"|","\\textbar",!0);l(u,h,k,"∥","\\|");l(u,h,k,"∥","\\Vert");l(_,h,k,"∥","\\textbardbl");l(_,h,k,"~","\\textasciitilde");l(_,h,k,"\\","\\textbackslash");l(_,h,k,"^","\\textasciicircum");l(u,h,y,"↑","\\uparrow",!0);l(u,h,y,"⇑","\\Uparrow",!0);l(u,h,y,"↓","\\downarrow",!0);l(u,h,y,"⇓","\\Downarrow",!0);l(u,h,y,"↕","\\updownarrow",!0);l(u,h,y,"⇕","\\Updownarrow",!0);l(u,h,$e,"∐","\\coprod");l(u,h,$e,"⋁","\\bigvee");l(u,h,$e,"⋀","\\bigwedge");l(u,h,$e,"⨄","\\biguplus");l(u,h,$e,"⋂","\\bigcap");l(u,h,$e,"⋃","\\bigcup");l(u,h,$e,"∫","\\int");l(u,h,$e,"∫","\\intop");l(u,h,$e,"∬","\\iint");l(u,h,$e,"∭","\\iiint");l(u,h,$e,"∏","\\prod");l(u,h,$e,"∑","\\sum");l(u,h,$e,"⨂","\\bigotimes");l(u,h,$e,"⨁","\\bigoplus");l(u,h,$e,"⨀","\\bigodot");l(u,h,$e,"∮","\\oint");l(u,h,$e,"∯","\\oiint");l(u,h,$e,"∰","\\oiiint");l(u,h,$e,"⨆","\\bigsqcup");l(u,h,$e,"∫","\\smallint");l(_,h,g0,"…","\\textellipsis");l(u,h,g0,"…","\\mathellipsis");l(_,h,g0,"…","\\ldots",!0);l(u,h,g0,"…","\\ldots",!0);l(u,h,g0,"⋯","\\@cdots",!0);l(u,h,g0,"⋱","\\ddots",!0);l(u,h,k,"⋮","\\varvdots");l(_,h,k,"⋮","\\varvdots");l(u,h,Me,"ˊ","\\acute");l(u,h,Me,"ˋ","\\grave");l(u,h,Me,"¨","\\ddot");l(u,h,Me,"~","\\tilde");l(u,h,Me,"ˉ","\\bar");l(u,h,Me,"˘","\\breve");l(u,h,Me,"ˇ","\\check");l(u,h,Me,"^","\\hat");l(u,h,Me,"⃗","\\vec");l(u,h,Me,"˙","\\dot");l(u,h,Me,"˚","\\mathring");l(u,h,Q,"","\\@imath");l(u,h,Q,"","\\@jmath");l(u,h,k,"ı","ı");l(u,h,k,"ȷ","ȷ");l(_,h,k,"ı","\\i",!0);l(_,h,k,"ȷ","\\j",!0);l(_,h,k,"ß","\\ss",!0);l(_,h,k,"æ","\\ae",!0);l(_,h,k,"œ","\\oe",!0);l(_,h,k,"ø","\\o",!0);l(_,h,k,"Æ","\\AE",!0);l(_,h,k,"Œ","\\OE",!0);l(_,h,k,"Ø","\\O",!0);l(_,h,Me,"ˊ","\\'");l(_,h,Me,"ˋ","\\`");l(_,h,Me,"ˆ","\\^");l(_,h,Me,"˜","\\~");l(_,h,Me,"ˉ","\\=");l(_,h,Me,"˘","\\u");l(_,h,Me,"˙","\\.");l(_,h,Me,"¸","\\c");l(_,h,Me,"˚","\\r");l(_,h,Me,"ˇ","\\v");l(_,h,Me,"¨",'\\"');l(_,h,Me,"˝","\\H");l(_,h,Me,"◯","\\textcircled");var dc={"--":!0,"---":!0,"``":!0,"''":!0};l(_,h,k,"–","--",!0);l(_,h,k,"–","\\textendash");l(_,h,k,"—","---",!0);l(_,h,k,"—","\\textemdash");l(_,h,k,"‘","`",!0);l(_,h,k,"‘","\\textquoteleft");l(_,h,k,"’","'",!0);l(_,h,k,"’","\\textquoteright");l(_,h,k,"“","``",!0);l(_,h,k,"“","\\textquotedblleft");l(_,h,k,"”","''",!0);l(_,h,k,"”","\\textquotedblright");l(u,h,k,"°","\\degree",!0);l(_,h,k,"°","\\degree");l(_,h,k,"°","\\textdegree",!0);l(u,h,k,"£","\\pounds");l(u,h,k,"£","\\mathsterling",!0);l(_,h,k,"£","\\pounds");l(_,h,k,"£","\\textsterling",!0);l(u,b,k,"✠","\\maltese");l(_,b,k,"✠","\\maltese");var Js='0123456789/@."';for(var Ta=0;Ta<Js.length;Ta++){var eo=Js.charAt(Ta);l(u,h,k,eo,eo)}var to='0123456789!@*()-=+";:?/.,';for(var Ea=0;Ea<to.length;Ea++){var ro=to.charAt(Ea);l(_,h,k,ro,ro)}var $n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz";for(var Ma=0;Ma<$n.length;Ma++){var kn=$n.charAt(Ma);l(u,h,Q,kn,kn),l(_,h,k,kn,kn)}l(u,b,k,"C","ℂ");l(_,b,k,"C","ℂ");l(u,b,k,"H","ℍ");l(_,b,k,"H","ℍ");l(u,b,k,"N","ℕ");l(_,b,k,"N","ℕ");l(u,b,k,"P","ℙ");l(_,b,k,"P","ℙ");l(u,b,k,"Q","ℚ");l(_,b,k,"Q","ℚ");l(u,b,k,"R","ℝ");l(_,b,k,"R","ℝ");l(u,b,k,"Z","ℤ");l(_,b,k,"Z","ℤ");l(u,h,Q,"h","ℎ");l(_,h,Q,"h","ℎ");var re;for(var tt=0;tt<$n.length;tt++){var ze=$n.charAt(tt);re=String.fromCharCode(55349,56320+tt),l(u,h,Q,ze,re),l(_,h,k,ze,re),re=String.fromCharCode(55349,56372+tt),l(u,h,Q,ze,re),l(_,h,k,ze,re),re=String.fromCharCode(55349,56424+tt),l(u,h,Q,ze,re),l(_,h,k,ze,re),re=String.fromCharCode(55349,56580+tt),l(u,h,Q,ze,re),l(_,h,k,ze,re),re=String.fromCharCode(55349,56684+tt),l(u,h,Q,ze,re),l(_,h,k,ze,re),re=String.fromCharCode(55349,56736+tt),l(u,h,Q,ze,re),l(_,h,k,ze,re),re=String.fromCharCode(55349,56788+tt),l(u,h,Q,ze,re),l(_,h,k,ze,re),re=String.fromCharCode(55349,56840+tt),l(u,h,Q,ze,re),l(_,h,k,ze,re),re=String.fromCharCode(55349,56944+tt),l(u,h,Q,ze,re),l(_,h,k,ze,re),tt<26&&(re=String.fromCharCode(55349,56632+tt),l(u,h,Q,ze,re),l(_,h,k,ze,re),re=String.fromCharCode(55349,56476+tt),l(u,h,Q,ze,re),l(_,h,k,ze,re))}re="𝕜";l(u,h,Q,"k",re);l(_,h,k,"k",re);for(var Ar=0;Ar<10;Ar++){var nr=Ar.toString();re=String.fromCharCode(55349,57294+Ar),l(u,h,Q,nr,re),l(_,h,k,nr,re),re=String.fromCharCode(55349,57314+Ar),l(u,h,Q,nr,re),l(_,h,k,nr,re),re=String.fromCharCode(55349,57324+Ar),l(u,h,Q,nr,re),l(_,h,k,nr,re),re=String.fromCharCode(55349,57334+Ar),l(u,h,Q,nr,re),l(_,h,k,nr,re)}var ii="ÐÞþ";for(var Ca=0;Ca<ii.length;Ca++){var xn=ii.charAt(Ca);l(u,h,Q,xn,xn),l(_,h,k,xn,xn)}var si={mathClass:"mathbf",textClass:"textbf",font:"Main-Bold"},no={mathClass:"mathnormal",textClass:"textit",font:"Math-Italic"},ao={mathClass:"boldsymbol",textClass:"boldsymbol",font:"Main-BoldItalic"},tp={mathClass:"mathscr",textClass:"textscr",font:"Script-Regular"},zr={mathClass:"",textClass:"",font:""},io={mathClass:"mathfrak",textClass:"textfrak",font:"Fraktur-Regular"},so={mathClass:"mathbb",textClass:"textbb",font:"AMS-Regular"},oo={mathClass:"mathboldfrak",textClass:"textboldfrak",font:"Fraktur-Regular"},oi={mathClass:"mathsf",textClass:"textsf",font:"SansSerif-Regular"},li={mathClass:"mathboldsf",textClass:"textboldsf",font:"SansSerif-Bold"},lo={mathClass:"mathitsf",textClass:"textitsf",font:"SansSerif-Italic"},ci={mathClass:"mathtt",textClass:"texttt",font:"Typewriter-Regular"},co=[si,si,no,no,ao,ao,tp,zr,zr,zr,io,io,so,so,oo,oo,oi,oi,li,li,lo,lo,zr,zr,ci,ci],rp=[si,zr,oi,li,ci],np=t=>{var e=t.charCodeAt(0),r=t.charCodeAt(1),n=(e-55296)*1024+(r-56320)+65536;if(119808<=n&&n<120484){var a=Math.floor((n-119808)/26);return co[a]}else if(120782<=n&&n<=120831){var i=Math.floor((n-120782)/10);return rp[i]}else{if(n===120485||n===120486)return co[0];if(120486<n&&n<120782)return zr;throw new B("Unsupported character: "+t)}};function mt(t){var e=t.strict,r=t.errorCode,n=t.errorMsg,a=t.token,i=t.report,s=e;if(typeof e=="function")if(i)s=e(r,n,a);else try{s=e(r,n,a)}catch{s="error"}switch(s){case!0:case"error":if(i)throw new B("LaTeX-incompatible input and strict mode is set to 'error': "+(n+" ["+r+"]"),a);return!0;case!1:case"ignore":if(!i)return!1;break;case"warn":default:if(typeof console<"u"&&console.warn("LaTeX-incompatible input and strict mode is set to 'warn': "+(n+" ["+r+"]")),!i)return!1;break}}var Un=function(e,r,n){if(Te[n][e]){var a=Te[n][e].replace;a&&(e=a)}return{value:e,metrics:Hi(e,r,n)}},nt=function(e,r,n,a,i){var s=Un(e,r,n),o=s.metrics;e=s.value;var c;if(o){var d=o.italic;(n==="text"||a&&a.font==="mathit")&&(d=0),c=new Et(e,o.height,o.depth,d,o.skew,o.width,i)}else mt({strict:a.strict,errorCode:"symbolNotInFont",errorMsg:"No character metrics for '"+e+"' in style '"+r+"' and mode '"+n+"'",report:!0}),c=new Et(e,0,0,0,0,0,i);c.maxFontSize=a.sizeMultiplier,a.style.isTight()&&c.classes.push("mtight");var p=a.getColor();return p&&(c.style.color=p),c},Ui=function(e,r,n,a){return a===void 0&&(a=[]),n.font==="boldsymbol"&&Un(e,"Main-Bold",r).metrics?nt(e,"Main-Bold",r,n,a.concat(["mathbf"])):e==="\\"||Te[r][e].font==="main"?nt(e,"Main-Regular",r,n,a):nt(e,"AMS-Regular",r,n,a.concat(["amsrm"]))},ap=function(e,r,n){return n!=="textord"&&Un(e,"Math-BoldItalic",r).metrics?{fontName:"Math-BoldItalic",fontClass:"boldsymbol"}:{fontName:"Main-Bold",fontClass:"mathbf"}},Wn=function(e,r){var n=e.type==="mathord"?"mathord":"textord",a=e.mode,i=e.text,s=["mord"],o=r.font,c=r.fontFamily,d=r.fontWeight,p=r.fontShape,g=a==="math"||a==="text"&&!!o,v=g?o:c,w="",A="";if(i.charCodeAt(0)===55349){var M=np(i);w=M.font,A=M[a+"Class"]}if(w)return nt(i,w,a,r,s.concat(A));if(v){var D,S;if(v==="boldsymbol"){var C=ap(i,a,n);D=C.fontName,S=[C.fontClass]}else g?(D=ui[o].fontName,S=[o]):(D=Sn(c,d,p),S=[c,d,p]);if(Un(i,D,a).metrics)return nt(i,D,a,r,s.concat(S));if(Object.prototype.hasOwnProperty.call(dc,i)&&D.slice(0,10)==="Typewriter"){for(var W=[],K=0;K<i.length;K++)W.push(nt(i[K],D,a,r,s.concat(S)));return Kt(W)}}if(n==="mathord")return nt(i,"Math-Italic",a,r,s.concat(["mathnormal"]));if(n==="textord"){var Y=Te[a][i]&&Te[a][i].font;if(Y==="ams"){var T=Sn("amsrm",d,p);return nt(i,T,a,r,s.concat("amsrm",d,p))}else if(Y==="main"||!Y){var R=Sn("textrm",d,p);return nt(i,R,a,r,s.concat(d,p))}else{var U=Sn(Y,d,p);return nt(i,U,a,r,s.concat(U,d,p))}}else throw new Error("unexpected type: "+n+" in makeOrd")},ip=(t,e)=>{if(dr(t.classes)!==dr(e.classes)||t.skew!==e.skew||t.maxFontSize!==e.maxFontSize||t.italic!==0&&t.hasClass("mathnormal"))return!1;if(t.classes.length===1){var r=t.classes[0];if(r==="mbin"||r==="mord")return!1}for(var n of Object.keys(t.style))if(t.style[n]!==e.style[n])return!1;for(var a of Object.keys(e.style))if(t.style[a]!==e.style[a])return!1;return!0},hc=t=>{for(var e=0;e<t.length-1;e++){var r=t[e],n=t[e+1];r instanceof Et&&n instanceof Et&&ip(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,t.splice(e+1,1),e--)}return t},Wi=function(e){for(var r=0,n=0,a=0,i=0;i<e.children.length;i++){var s=e.children[i];s.height>r&&(r=s.height),s.depth>n&&(n=s.depth),s.maxFontSize>a&&(a=s.maxFontSize)}e.height=r,e.depth=n,e.maxFontSize=a},P=function(e,r,n,a){var i=new j0(e,r,n,a);return Wi(i),i},pr=(t,e,r,n)=>new j0(t,e,r,n),o0=function(e,r,n){var a=P([e],[],r);return a.height=Math.max(n||r.fontMetrics().defaultRuleThickness,r.minRuleThickness),a.style.borderBottomWidth=H(a.height),a.maxFontSize=1,a},sp=function(e,r,n,a){var i=new Fi(e,r,n,a);return Wi(i),i},Kt=function(e){var r=new f0(e);return Wi(r),r},l0=function(e,r){return e instanceof f0?P([],[e],r):e},op=function(e){if(e.positionType==="individualShift"){for(var r=e.children,n=[r[0]],a=-r[0].shift-r[0].elem.depth,i=a,s=1;s<r.length;s++){var o=-r[s].shift-i-r[s].elem.depth,c=o-(r[s-1].elem.height+r[s-1].elem.depth);i=i+o,n.push({type:"kern",size:c}),n.push(r[s])}return{children:n,depth:a}}var d;if(e.positionType==="top"){for(var p=e.positionData,g=0;g<e.children.length;g++){var v=e.children[g];p-=v.type==="kern"?v.size:v.elem.height+v.elem.depth}d=p}else if(e.positionType==="bottom")d=-e.positionData;else{var w=e.children[0];if(w.type!=="elem")throw new Error('First child must have type "elem".');if(e.positionType==="shift")d=-w.elem.depth-e.positionData;else if(e.positionType==="firstBaseline")d=-w.elem.depth;else throw new Error("Invalid positionType "+e.positionType+".")}return{children:e.children,depth:d}},fe=function(e,r){for(var n=op(e),a=n.children,i=n.depth,s=0,o=0;o<a.length;o++){var c=a[o];if(c.type==="elem"){var d=c.elem;s=Math.max(s,d.maxFontSize,d.height)}}s+=2;var p=P(["pstrut"],[]);p.style.height=H(s);for(var g=[],v=i,w=i,A=i,M=0;M<a.length;M++){var D=a[M];if(D.type==="kern")A+=D.size;else{var S=D.elem,C=D.wrapperClasses||[],W=D.wrapperStyle||{},K=P(C,[p,S],void 0,W);K.style.top=H(-s-A-S.depth),D.marginLeft&&(K.style.marginLeft=D.marginLeft),D.marginRight&&(K.style.marginRight=D.marginRight),g.push(K),A+=S.height+S.depth}v=Math.min(v,A),w=Math.max(w,A)}var Y=P(["vlist"],g);Y.style.height=H(w);var T;if(v<0){var R=P([],[]),U=P(["vlist"],[R]);U.style.height=H(-v);var O=P(["vlist-s"],[new Et("​")]);T=[P(["vlist-r"],[Y,O]),P(["vlist-r"],[U])]}else T=[P(["vlist-r"],[Y])];var $=P(["vlist-t"],T);return T.length===2&&$.classes.push("vlist-t2"),$.height=w,$.depth=-v,$},pc=(t,e)=>{var r=P(["mspace"],[],e),n=Ie(t,e);return r.style.marginRight=H(n),r},Sn=(t,e,r)=>{var n,a;switch(t){case"amsrm":n="AMS";break;case"textrm":n="Main";break;case"textsf":n="SansSerif";break;case"texttt":n="Typewriter";break;default:n=t}return e==="textbf"&&r==="textit"?a="BoldItalic":e==="textbf"?a="Bold":r==="textit"?a="Italic":a="Regular",n+"-"+a},ui={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"}},mc={vec:["vec",.471,.714],oiintSize1:["oiintSize1",.957,.499],oiintSize2:["oiintSize2",1.472,.659],oiiintSize1:["oiiintSize1",1.304,.499],oiiintSize2:["oiiintSize2",1.98,.659]},fc=function(e,r){var n=mc[e],a=n[0],i=n[1],s=n[2],o=new Nr(a),c=new hr([o],{width:H(i),height:H(s),style:"width:"+H(i),viewBox:"0 0 "+1e3*i+" "+1e3*s,preserveAspectRatio:"xMinYMin"}),d=pr(["katex-overlay"],[c],r);return d.height=s,d.style.height=H(s),d.style.width=H(i),d},Ce={number:3,unit:"mu"},Tr={number:4,unit:"mu"},Bt={number:5,unit:"mu"},lp={mord:{mop:Ce,mbin:Tr,mrel:Bt,minner:Ce},mop:{mord:Ce,mop:Ce,mrel:Bt,minner:Ce},mbin:{mord:Tr,mop:Tr,mopen:Tr,minner:Tr},mrel:{mord:Bt,mop:Bt,mopen:Bt,minner:Bt},mopen:{},mclose:{mop:Ce,mbin:Tr,mrel:Bt,minner:Ce},mpunct:{mord:Ce,mop:Ce,mrel:Bt,mopen:Ce,mclose:Ce,mpunct:Ce,minner:Ce},minner:{mord:Ce,mop:Ce,mbin:Tr,mrel:Bt,mopen:Ce,mpunct:Ce,minner:Ce}},cp={mord:{mop:Ce},mop:{mord:Ce,mop:Ce},mbin:{},mrel:{},mopen:{},mclose:{mop:Ce},mpunct:{},minner:{mop:Ce}},gc={},q0={},F0={};function G(t){for(var e=t.type,r=t.names,n=t.htmlBuilder,a=t.mathmlBuilder,i=0;i<r.length;++i)gc[r[i]]=t;e&&(n&&(q0[e]=n),a&&(F0[e]=a))}function Or(t){var e=t.type,r=t.htmlBuilder,n=t.mathmlBuilder;r&&(q0[e]=r),n&&(F0[e]=n)}var H0=function(e){return e.type==="ordgroup"&&e.body.length===1?e.body[0]:e},Pe=function(e){return e.type==="ordgroup"?e.body:[e]},up=new Set(["leftmost","mbin","mopen","mrel","mop","mpunct"]),dp=new Set(["rightmost","mrel","mclose","mpunct"]),hp={display:ae.DISPLAY,text:ae.TEXT,script:ae.SCRIPT,scriptscript:ae.SCRIPTSCRIPT},pp={mord:"mord",mop:"mop",mbin:"mbin",mrel:"mrel",mopen:"mopen",mclose:"mclose",mpunct:"mpunct",minner:"minner"},Fe=function(e,r,n,a){a===void 0&&(a=[null,null]);for(var i=[],s=0;s<e.length;s++){var o=me(e[s],r);if(o instanceof f0){var c=o.children;i.push(...c)}else i.push(o)}if(hc(i),!n)return i;var d=r;if(e.length===1){var p=e[0];p.type==="sizing"?d=r.havingSize(p.size):p.type==="styling"&&(d=r.havingStyle(hp[p.style]))}var g=P([a[0]||"leftmost"],[],r),v=P([a[1]||"rightmost"],[],r),w=n==="root";return di(i,(A,M)=>{var D=M.classes[0],S=A.classes[0];D==="mbin"&&dp.has(S)?M.classes[0]="mord":S==="mbin"&&up.has(D)&&(A.classes[0]="mord")},{node:g},v,w),di(i,(A,M)=>{var D,S,C=pi(M),W=pi(A),K=C&&W?A.hasClass("mtight")?(D=cp[C])==null?void 0:D[W]:(S=lp[C])==null?void 0:S[W]:null;if(K)return pc(K,d)},{node:g},v,w),i},di=function(e,r,n,a,i){a&&e.push(a);for(var s=0;s<e.length;s++){var o=e[s],c=vc(o);if(c){di(c.children,r,n,null,i);continue}var d=!o.hasClass("mspace");if(d){var p=r(o,n.node);p&&(n.insertAfter?n.insertAfter(p):(e.unshift(p),s++))}d?n.node=o:i&&o.hasClass("katex-newline")&&(n.node=P(["leftmost"])),n.insertAfter=(g=>v=>{e.splice(g+1,0,v),s++})(s)}a&&e.pop()},vc=function(e){return e instanceof f0||e instanceof Fi||e instanceof j0&&e.hasClass("enclosing")?e:null},hi=function(e,r){var n=vc(e);if(n){var a=n.children;if(a.length){if(r==="right")return hi(a[a.length-1],"right");if(r==="left")return hi(a[0],"left")}}return e},pi=function(e,r){if(!e)return null;r&&(e=hi(e,r));var n=e.classes[0];return pp[n]||null},U0=function(e,r){var n=["nulldelimiter"].concat(e.baseSizingClasses());return P(r.concat(n))},me=function(e,r,n){if(!e)return P();if(q0[e.type]){var a=q0[e.type](e,r);if(n&&r.size!==n.size){a=P(r.sizingClasses(n),[a],r);var i=r.sizeMultiplier/n.sizeMultiplier;a.height*=i,a.depth*=i}return a}else throw new B("Got group of unknown type: '"+e.type+"'")};function An(t,e){var r=P(["katex-base"],t,e),n=P(["katex-strut"]);return n.style.height=H(r.height+r.depth),r.depth&&(n.style.verticalAlign=H(-r.depth)),r.children.unshift(n),r}function uo(t,e){var r=null;t.length===1&&t[0].type==="tag"&&(r=t[0].tag,t=t[0].body);var n=Fe(t,e,"root"),a;n.length===2&&n[1].hasClass("katex-tag")&&(a=n.pop());for(var i=[],s=[],o=0;o<n.length;o++)if(s.push(n[o]),n[o].hasClass("mbin")||n[o].hasClass("mrel")||n[o].hasClass("allowbreak")){for(var c=!1;o<n.length-1&&n[o+1].hasClass("mspace")&&!n[o+1].hasClass("katex-newline");)o++,s.push(n[o]),n[o].hasClass("nobreak")&&(c=!0);c||(i.push(An(s,e)),s=[])}else n[o].hasClass("katex-newline")&&(s.pop(),s.length>0&&(i.push(An(s,e)),s=[]),i.push(n[o]));s.length>0&&i.push(An(s,e));var d;r?(d=An(Fe(r,e,!0),e),d.classes=["katex-tag"],i.push(d)):a&&i.push(a);var p=P(["katex-html"],i);if(p.setAttribute("aria-hidden","true"),d){var g=d.children[0];g.style.height=H(p.height+p.depth),p.depth&&(g.style.verticalAlign=H(-p.depth))}return p}function bc(t){return new f0(t)}class q{constructor(e,r,n){this.type=void 0,this.attributes=void 0,this.children=void 0,this.classes=void 0,this.type=e,this.attributes={},this.children=r||[],this.classes=n||[]}setAttribute(e,r){this.attributes[e]=r}getAttribute(e){return this.attributes[e]}toNode(){var e=document.createElementNS("http://www.w3.org/1998/Math/MathML",this.type);for(var r of Object.entries(this.attributes)){var n=r[0],a=r[1];e.setAttribute(n,a)}this.classes.length>0&&(e.className=dr(this.classes));for(var i=0;i<this.children.length;i++)if(this.children[i]instanceof Oe&&this.children[i+1]instanceof Oe){for(var s=this.children[i].toText()+this.children[++i].toText();this.children[i+1]instanceof Oe;)s+=this.children[++i].toText();e.appendChild(new Oe(s).toNode())}else e.appendChild(this.children[i].toNode());return e}toMarkup(){var e="<"+this.type;for(var r of Object.entries(this.attributes)){var n=r[0],a=r[1];e+=" "+n+'="',e+=Ke(a),e+='"'}this.classes.length>0&&(e+=' class ="'+Ke(dr(this.classes))+'"'),e+=">";for(var i=0;i<this.children.length;i++)e+=this.children[i].toMarkup();return e+="</"+this.type+">",e}toText(){return this.children.map(e=>e.toText()).join("")}}class Oe{constructor(e){this.text=void 0,this.text=e}toNode(){return document.createTextNode(this.text)}toMarkup(){return Ke(this.toText())}toText(){return this.text}}class yc{constructor(e){this.width=void 0,this.character=void 0,this.width=e,e>=.05555&&e<=.05556?this.character=" ":e>=.1666&&e<=.1667?this.character=" ":e>=.2222&&e<=.2223?this.character=" ":e>=.2777&&e<=.2778?this.character="  ":e>=-.05556&&e<=-.05555?this.character=" ⁣":e>=-.1667&&e<=-.1666?this.character=" ⁣":e>=-.2223&&e<=-.2222?this.character=" ⁣":e>=-.2778&&e<=-.2777?this.character=" ⁣":this.character=null}toNode(){if(this.character)return document.createTextNode(this.character);var e=document.createElementNS("http://www.w3.org/1998/Math/MathML","mspace");return e.setAttribute("width",H(this.width)),e}toMarkup(){return this.character?"<mtext>"+this.character+"</mtext>":'<mspace width="'+H(this.width)+'"/>'}toText(){return this.character?this.character:" "}}var mp=new Set(["\\imath","\\jmath"]),fp=new Set(["mrow","mtable"]),Mt=function(e,r,n){var a,i;return Te[r][e]&&Te[r][e].replace&&e.charCodeAt(0)!==55349&&!(Object.prototype.hasOwnProperty.call(dc,e)&&((n==null||(a=n.fontFamily)==null?void 0:a.slice(4,6))==="tt"||(n==null||(i=n.font)==null?void 0:i.slice(4,6))==="tt"))&&(e=Te[r][e].replace),new Oe(e)},Gi=function(e){return e.length===1?e[0]:new q("mrow",e)},gp={mathit:"italic",boldsymbol:t=>t.type==="textord"?"bold":"bold-italic",mathbf:"bold",mathbb:"double-struck",mathsfit:"sans-serif-italic",mathfrak:"fraktur",mathscr:"script",mathcal:"script",mathsf:"sans-serif",mathtt:"monospace"},ji=(t,e)=>{if(t.mode==="text"){if(e.fontFamily==="texttt")return"monospace";if(e.fontFamily==="textsf")return e.fontShape==="textit"&&e.fontWeight==="textbf"?"sans-serif-bold-italic":e.fontShape==="textit"?"sans-serif-italic":e.fontWeight==="textbf"?"bold-sans-serif":"sans-serif";if(e.fontShape==="textit"&&e.fontWeight==="textbf")return"bold-italic";if(e.fontShape==="textit")return"italic";if(e.fontWeight==="textbf")return"bold"}var r=e.font;if(!r||r==="mathnormal")return null;var n=t.mode,a=gp[r];if(a)return typeof a=="function"?a(t):a;var i=t.text;if(mp.has(i))return null;if(Te[n][i]){var s=Te[n][i].replace;s&&(i=s)}var o=ui[r].fontName;return Hi(i,o,n)?ui[r].variant:null};function Ia(t){if(!t)return!1;if(t.type==="mi"&&t.children.length===1){var e=t.children[0];return e instanceof Oe&&e.text==="."}else if(t.type==="mo"&&t.children.length===1&&t.getAttribute("separator")==="true"&&t.getAttribute("lspace")==="0em"&&t.getAttribute("rspace")==="0em"){var r=t.children[0];return r instanceof Oe&&r.text===","}else return!1}var yt=function(e,r,n){if(e.length===1){var a=be(e[0],r);return n&&a instanceof q&&a.type==="mo"&&(a.setAttribute("lspace","0em"),a.setAttribute("rspace","0em")),[a]}for(var i=[],s,o=0;o<e.length;o++){var c=be(e[o],r);if(c instanceof q&&s instanceof q){if(c.type==="mtext"&&s.type==="mtext"&&c.getAttribute("mathvariant")===s.getAttribute("mathvariant")){s.children.push(...c.children);continue}else if(c.type==="mn"&&s.type==="mn"){s.children.push(...c.children);continue}else if(Ia(c)&&s.type==="mn"){s.children.push(...c.children);continue}else if(c.type==="mn"&&Ia(s))c.children=[...s.children,...c.children],i.pop();else if((c.type==="msup"||c.type==="msub")&&c.children.length>=1&&(s.type==="mn"||Ia(s))){var d=c.children[0];d instanceof q&&d.type==="mn"&&(d.children=[...s.children,...d.children],i.pop())}else if(s.type==="mi"&&s.children.length===1){var p=s.children[0];if(p instanceof Oe&&p.text==="̸"&&(c.type==="mo"||c.type==="mi"||c.type==="mn")){var g=c.children[0];g instanceof Oe&&g.text.length>0&&(g.text=g.text.slice(0,1)+"̸"+g.text.slice(1),i.pop())}}}i.push(c),s=c}return i},mr=function(e,r,n){return Gi(yt(e,r,n))},be=function(e,r){if(!e)return new q("mrow");if(F0[e.type])return F0[e.type](e,r);throw new B("Got group of unknown type: '"+e.type+"'")};function ho(t,e,r,n,a){var i=yt(t,r),s;i.length===1&&i[0]instanceof q&&fp.has(i[0].type)?s=i[0]:s=new q("mrow",i);var o=new q("annotation",[new Oe(e)]);o.setAttribute("encoding","application/x-tex");var c=new q("semantics",[s,o]),d=new q("math",[c]);d.setAttribute("xmlns","http://www.w3.org/1998/Math/MathML"),n&&d.setAttribute("display","block");var p=a?"katex":"katex-mathml";return P([p],[d])}var vp=[[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]],po=[.5,.6,.7,.8,.9,1,1.2,1.44,1.728,2.074,2.488],mo=function(e,r){return r.size<2?e:vp[e-1][r.size-1]};class Ht{constructor(e){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.strict=void 0,this.style=e.style,this.color=e.color,this.size=e.size||Ht.BASESIZE,this.textSize=e.textSize||this.size,this.phantom=!!e.phantom,this.font=e.font||"",this.fontFamily=e.fontFamily||"",this.fontWeight=e.fontWeight||"",this.fontShape=e.fontShape||"",this.sizeMultiplier=po[this.size-1],this.maxSize=e.maxSize,this.minRuleThickness=e.minRuleThickness,this.strict=e.strict,this._fontMetrics=void 0}extend(e){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,strict:this.strict};return Object.assign(r,e),new Ht(r)}havingStyle(e){return this.style===e?this:this.extend({style:e,size:mo(this.textSize,e)})}havingCrampedStyle(){return this.havingStyle(this.style.cramp())}havingSize(e){return this.size===e&&this.textSize===e?this:this.extend({style:this.style.text(),size:e,textSize:e,sizeMultiplier:po[e-1]})}havingBaseStyle(e){e=e||this.style.text();var r=mo(Ht.BASESIZE,e);return this.size===r&&this.textSize===Ht.BASESIZE&&this.style===e?this:this.extend({style:e,size:r})}havingBaseSizing(){var e;switch(this.style.id){case 4:case 5:e=3;break;case 6:case 7:e=1;break;default:e=6}return this.extend({style:this.style.text(),size:e})}withColor(e){return this.extend({color:e})}withPhantom(){return this.extend({phantom:!0})}withFont(e){return this.extend({font:e})}withTextFontFamily(e){return this.extend({fontFamily:e,font:""})}withTextFontWeight(e){return this.extend({fontWeight:e,font:""})}withTextFontShape(e){return this.extend({fontShape:e,font:""})}sizingClasses(e){return e.size!==this.size?["katex-sizing","reset-size"+e.size,"size"+this.size]:[]}baseSizingClasses(){return this.size!==Ht.BASESIZE?["katex-sizing","reset-size"+this.size,"size"+Ht.BASESIZE]:[]}fontMetrics(){return this._fontMetrics||(this._fontMetrics=ep(this.size)),this._fontMetrics}getColor(){return this.phantom?"transparent":this.color}}Ht.BASESIZE=6;var bp=t=>new Ht({style:t.displayMode?ae.DISPLAY:ae.TEXT,maxSize:t.maxSize,minRuleThickness:t.minRuleThickness,strict:t.strict}),yp=function(e,r){if(r.displayMode){var n=["katex-display"];r.leqno&&n.push("leqno"),r.fleqn&&n.push("fleqn"),e=P(n,[e])}return e},wp=function(e,r,n){var a=bp(n),i;if(n.output==="mathml")return ho(e,r,a,n.displayMode,!0);if(n.output==="html"){var s=uo(e,a);i=P(["katex"],[s])}else{var o=ho(e,r,a,n.displayMode,!1),c=uo(e,a);i=P(["katex"],[o,c])}return yp(i,n)},kp={widehat:"^",widecheck:"ˇ",widetilde:"~",utilde:"~",overleftarrow:"←",underleftarrow:"←",xleftarrow:"←",overrightarrow:"→",underrightarrow:"→",xrightarrow:"→",underbrace:"⏟",overbrace:"⏞",underbracket:"⎵",overbracket:"⎴",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":"="},Gn=function(e){var r=new q("mo",[new Oe(kp[e.replace(/^\\/,"")])]);return r.setAttribute("stretchy","true"),r},xp={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],overbracket:[["leftbracketover","rightbracketover"],1.6,440],underbracket:[["leftbracketunder","rightbracketunder"],1.6,410],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]},Sp=new Set(["widehat","widecheck","widetilde","utilde"]),jn=function(e,r){function n(){var c=4e5,d=e.label.slice(1);if(Sp.has(d)&&"base"in e){var p=e.base.type==="ordgroup"?e.base.body.length:1,g,v,w;if(p>5)d==="widehat"||d==="widecheck"?(g=420,c=2364,w=.42,v=d+"4"):(g=312,c=2340,w=.34,v="tilde4");else{var A=[1,1,2,2,3,3][p];d==="widehat"||d==="widecheck"?(c=[0,1062,2364,2364,2364][A],g=[0,239,300,360,420][A],w=[0,.24,.3,.3,.36,.42][A],v=d+A):(c=[0,600,1033,2339,2340][A],g=[0,260,286,306,312][A],w=[0,.26,.286,.3,.306,.34][A],v="tilde"+A)}var M=new Nr(v),D=new hr([M],{width:"100%",height:H(w),viewBox:"0 0 "+c+" "+g,preserveAspectRatio:"none"});return{span:pr([],[D],r),minWidth:0,height:w}}else{var S=[],C=xp[d];if(!C)throw new Error('No SVG data for "'+d+'".');var W=C[0],K=C[1],Y=C[2],T=Y/1e3,R=W.length,U,O;if(R===1){if(C.length!==4)throw new Error('Expected 4-tuple for single-path SVG data "'+d+'".');U=["hide-tail"],O=[C[3]]}else if(R===2)U=["halfarrow-left","halfarrow-right"],O=["xMinYMin","xMaxYMin"];else if(R===3)U=["brace-left","brace-center","brace-right"],O=["xMinYMin","xMidYMin","xMaxYMin"];else throw new Error(`Correct katexImagesData or update code here to support
330
+ `+R+" children.");for(var $=0;$<R;$++){var L=new Nr(W[$]),F=new hr([L],{width:"400em",height:H(T),viewBox:"0 0 "+c+" "+Y,preserveAspectRatio:O[$]+" slice"}),X=pr([U[$]],[F],r);if(R===1)return{span:X,minWidth:K,height:T};X.style.height=H(T),S.push(X)}return{span:P(["katex-stretchy"],S,r),minWidth:K,height:T}}}var a=n(),i=a.span,s=a.minWidth,o=a.height;return i.height=o,i.style.height=H(o),s>0&&(i.style.minWidth=H(s)),i},Ap=function(e,r,n,a,i){var s,o=e.height+e.depth+n+a;if(/fbox|color|angl/.test(r)){if(s=P(["katex-stretchy",r],[],i),r==="fbox"){var c=i.color&&i.getColor();c&&(s.style.borderColor=c)}}else{var d=[];/^[bx]cancel$/.test(r)&&d.push(new Zs({x1:"0",y1:"0",x2:"100%",y2:"100%","stroke-width":"0.046em"})),/^x?cancel$/.test(r)&&d.push(new Zs({x1:"0",y1:"100%",x2:"100%",y2:"0","stroke-width":"0.046em"}));var p=new hr(d,{width:"100%",height:H(o)});s=pr([],[p],i)}return s.height=o,s.style.height=H(o),s},Tp=["bin","close","inner","open","punct","rel"],Ep=["accent-token","mathord","op-token","spacing","textord"],Mp=new Set(Tp),Cp=new Set(Ep);function Ip(t){return Mp.has(t)}function oe(t,e){if(!t||t.type!==e)throw new Error("Expected node of type "+e+", but got "+(t?"node of type "+t.type:String(t)));return t}function Vn(t){var e=Xn(t);if(!e)throw new Error("Expected node of symbol group type, but got "+(t?"node of type "+t.type:String(t)));return e}function Xn(t){return t.type==="atom"||Cp.has(t.type)?t:null}function Vi(t,e,r){var n="";for(var a of t.body)if(a.type==="textord")n+=a.text;else if(r&&a.type==="spacing"&&a.text===" ")n+=" ";else throw new B(e,t);return n}var wc=t=>{if(t instanceof Et)return t;if(Jh(t)&&t.children.length===1)return wc(t.children[0])},kc=(t,e)=>{var r,n,a;t&&t.type==="supsub"?(n=oe(t.base,"accent"),r=n.base,t.base=r,a=Qh(me(t,e)),t.base=n):(n=oe(t,"accent"),r=n.base);var i=me(r,e.havingCrampedStyle()),s=n.isShifty&&Xt(r),o=0;if(s){var c,d;o=(c=(d=wc(i))==null?void 0:d.skew)!=null?c:0}var p=n.label==="\\c",g=p?i.height+i.depth:Math.min(i.height,e.fontMetrics().xHeight),v;if(n.isStretchy)v=jn(n,e),v=fe({positionType:"firstBaseline",children:[{type:"elem",elem:i},{type:"elem",elem:v,wrapperClasses:["svg-align"],wrapperStyle:o>0?{width:"calc(100% - "+H(2*o)+")",marginLeft:H(2*o)}:void 0}]});else{var w,A;n.label==="\\vec"?(w=fc("vec",e),A=mc.vec[1]):(w=Wn({type:"textord",mode:n.mode,text:n.label},e),w=Zh(w),w.italic=0,A=w.width,p&&(g+=w.depth)),v=P(["accent-body"],[w]);var M=n.label==="\\textcircled";M&&(v.classes.push("accent-full"),g=i.height);var D=o;M||(D-=A/2),v.style.left=H(D),n.label==="\\textcircled"&&(v.style.top=".2em"),v=fe({positionType:"firstBaseline",children:[{type:"elem",elem:i},{type:"kern",size:-g},{type:"elem",elem:v}]})}var S=P(["mord","katex-accent"],[v],e);return a?(a.children[0]=S,a.height=Math.max(S.height,a.height),a.classes[0]="mord",a):S},zp=(t,e)=>{var r=t.isStretchy?Gn(t.label):new q("mo",[Mt(t.label,t.mode)]),n=new q("mover",[be(t.base,e),r]);return n.setAttribute("accent","true"),n},Rp=new RegExp(["\\acute","\\grave","\\ddot","\\tilde","\\bar","\\breve","\\check","\\hat","\\vec","\\dot","\\mathring"].map(t=>"\\"+t).join("|"));G({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"],numArgs:1,handler:(t,e)=>{var r=H0(e[0]),n=!Rp.test(t.funcName),a=!n||t.funcName==="\\widehat"||t.funcName==="\\widetilde"||t.funcName==="\\widecheck";return{type:"accent",mode:t.parser.mode,label:t.funcName,isStretchy:n,isShifty:a,base:r}},htmlBuilder:kc,mathmlBuilder:zp});G({type:"accent",names:["\\'","\\`","\\^","\\~","\\=","\\u","\\.",'\\"',"\\c","\\r","\\H","\\v","\\textcircled"],numArgs:1,allowedInText:!0,allowedInMath:!0,argTypes:["primitive"],handler:(t,e)=>{var r=e[0],n=t.parser.mode;return n==="math"&&(mt({strict:t.parser.settings.strict,errorCode:"mathVsTextAccents",errorMsg:"LaTeX's accent "+t.funcName+" works only in text mode",report:!0}),n="text"),{type:"accent",mode:n,label:t.funcName,isStretchy:!1,isShifty:!0,base:r}}});G({type:"accentUnder",names:["\\underleftarrow","\\underrightarrow","\\underleftrightarrow","\\undergroup","\\underlinesegment","\\utilde"],numArgs:1,handler:(t,e)=>{var r=t.parser,n=t.funcName,a=e[0];return{type:"accentUnder",mode:r.mode,label:n,base:a}},htmlBuilder:(t,e)=>{var r=me(t.base,e),n=jn(t,e),a=t.label==="\\utilde"?.12:0,i=fe({positionType:"top",positionData:r.height,children:[{type:"elem",elem:n,wrapperClasses:["svg-align"]},{type:"kern",size:a},{type:"elem",elem:r}]});return P(["mord","accentunder"],[i],e)},mathmlBuilder:(t,e)=>{var r=Gn(t.label),n=new q("munder",[be(t.base,e),r]);return n.setAttribute("accentunder","true"),n}});var Tn=t=>{var e=new q("mpadded",t?[t]:[]);return e.setAttribute("width","+0.6em"),e.setAttribute("lspace","0.3em"),e};G({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"],numArgs:1,numOptionalArgs:1,handler(t,e,r){var n=t.parser,a=t.funcName;return{type:"xArrow",mode:n.mode,label:a,body:e[0],below:r[0]}},htmlBuilder(t,e){var r=e.style,n=e.havingStyle(r.sup()),a=l0(me(t.body,n,e),e),i=t.label.slice(0,2)==="\\x"?"x":"cd";a.classes.push(i+"-arrow-pad");var s;t.below&&(n=e.havingStyle(r.sub()),s=l0(me(t.below,n,e),e),s.classes.push(i+"-arrow-pad"));var o=jn(t,e),c=-e.fontMetrics().axisHeight+.5*o.height,d=-e.fontMetrics().axisHeight-.5*o.height-.111;(a.depth>.25||t.label==="\\xleftequilibrium")&&(d-=a.depth);var p;if(s){var g=-e.fontMetrics().axisHeight+s.height+.5*o.height+.111;p=fe({positionType:"individualShift",children:[{type:"elem",elem:a,shift:d},{type:"elem",elem:o,shift:c,wrapperClasses:["svg-align"]},{type:"elem",elem:s,shift:g}]})}else p=fe({positionType:"individualShift",children:[{type:"elem",elem:a,shift:d},{type:"elem",elem:o,shift:c,wrapperClasses:["svg-align"]}]});return P(["mrel","x-arrow"],[p],e)},mathmlBuilder(t,e){var r=Gn(t.label);r.setAttribute("minsize",t.label.charAt(0)==="x"?"1.75em":"3.0em");var n;if(t.body){var a=Tn(be(t.body,e));if(t.below){var i=Tn(be(t.below,e));n=new q("munderover",[r,i,a])}else n=new q("mover",[r,a])}else if(t.below){var s=Tn(be(t.below,e));n=new q("munder",[r,s])}else n=Tn(),n=new q("mover",[r,n]);return n}});function Dp(t,e){var r=Fe(t.body,e,!0);return P([t.mclass],r,e)}function Np(t,e){var r,n=yt(t.body,e);return t.mclass==="minner"?r=new q("mpadded",n):t.mclass==="mord"?t.isCharacterBox?(r=n[0],r.type="mi"):r=new q("mi",n):(t.isCharacterBox?(r=n[0],r.type="mo"):r=new q("mo",n),t.mclass==="mbin"?(r.attributes.lspace="0.22em",r.attributes.rspace="0.22em"):t.mclass==="mpunct"?(r.attributes.lspace="0em",r.attributes.rspace="0.17em"):(t.mclass==="mopen"||t.mclass==="mclose")&&(r.attributes.lspace="0em",r.attributes.rspace="0em")),r}G({type:"mclass",names:["\\mathord","\\mathbin","\\mathrel","\\mathopen","\\mathclose","\\mathpunct","\\mathinner"],numArgs:1,primitive:!0,handler(t,e){var r=t.parser,n=t.funcName,a=e[0];return{type:"mclass",mode:r.mode,mclass:"m"+n.slice(5),body:Pe(a),isCharacterBox:Xt(a)}},htmlBuilder:Dp,mathmlBuilder:Np});var Yn=t=>{var e=t.type==="ordgroup"&&t.body.length?t.body[0]:t;return e.type==="atom"&&(e.family==="bin"||e.family==="rel")?"m"+e.family:"mord"};G({type:"mclass",names:["\\@binrel"],numArgs:2,handler(t,e){var r=t.parser;return{type:"mclass",mode:r.mode,mclass:Yn(e[0]),body:Pe(e[1]),isCharacterBox:Xt(e[1])}}});G({type:"mclass",names:["\\stackrel","\\overset","\\underset"],numArgs:2,handler(t,e){var r=t.parser,n=t.funcName,a=e[1],i=e[0],s;n!=="\\stackrel"?s=Yn(a):s="mrel";var o={type:"op",mode:a.mode,limits:!0,alwaysHandleSupSub:!0,parentIsSupSub:!1,symbol:!1,suppressBaseShift:n!=="\\stackrel",body:Pe(a)},c=n==="\\underset"?{type:"supsub",mode:i.mode,base:o,sub:i}:{type:"supsub",mode:i.mode,base:o,sup:i};return{type:"mclass",mode:r.mode,mclass:s,body:[c],isCharacterBox:Xt(c)}}});G({type:"pmb",names:["\\pmb"],numArgs:1,allowedInText:!0,handler(t,e){var r=t.parser;return{type:"pmb",mode:r.mode,mclass:Yn(e[0]),body:Pe(e[0])}},htmlBuilder(t,e){var r=Fe(t.body,e,!0),n=P([t.mclass],r,e);return n.style.textShadow="0.02em 0.01em 0.04px",n},mathmlBuilder(t,e){var r=yt(t.body,e),n=new q("mstyle",r);return n.setAttribute("style","text-shadow: 0.02em 0.01em 0.04px"),n}});var _p={">":"\\\\cdrightarrow","<":"\\\\cdleftarrow","=":"\\\\cdlongequal",A:"\\uparrow",V:"\\downarrow","|":"\\Vert",".":"no arrow"},fo=()=>({type:"styling",body:[],mode:"math",style:"display",resetFont:!0}),go=t=>t.type==="textord"&&t.text==="@",Lp=(t,e)=>(t.type==="mathord"||t.type==="atom")&&t.text===e;function Pp(t,e,r){var n=_p[t];switch(n){case"\\\\cdrightarrow":case"\\\\cdleftarrow":return r.callFunction(n,[e[0]],[e[1]]);case"\\uparrow":case"\\downarrow":{var a=r.callFunction("\\\\cdleft",[e[0]],[]),i={type:"atom",text:n,mode:"math",family:"rel"},s=r.callFunction("\\Big",[i],[]),o=r.callFunction("\\\\cdright",[e[1]],[]),c={type:"ordgroup",mode:"math",body:[a,s,o]};return r.callFunction("\\\\cdparent",[c],[])}case"\\\\cdlongequal":return r.callFunction("\\\\cdlongequal",[],[]);case"\\Vert":{var d={type:"textord",text:"\\Vert",mode:"math"};return r.callFunction("\\Big",[d],[])}default:return{type:"textord",text:" ",mode:"math"}}}function Op(t){var e=[];for(t.gullet.beginGroup(),t.gullet.macros.set("\\cr","\\\\\\relax"),t.gullet.beginGroup();;){e.push(t.parseExpression(!1,"\\\\")),t.gullet.endGroup(),t.gullet.beginGroup();var r=t.fetch().text;if(r==="&"||r==="\\\\")t.consume();else if(r==="\\end"){e[e.length-1].length===0&&e.pop();break}else throw new B("Expected \\\\ or \\cr or \\end",t.nextToken)}for(var n=[],a=[n],i=0;i<e.length;i++){for(var s=e[i],o=fo(),c=0;c<s.length;c++)if(!go(s[c]))o.body.push(s[c]);else{n.push(o),c+=1;var d=Vn(s[c]).text,p=new Array(2);if(p[0]={type:"ordgroup",mode:"math",body:[]},p[1]={type:"ordgroup",mode:"math",body:[]},!"=|.".includes(d))if("<>AV".includes(d))for(var g=0;g<2;g++){for(var v=!0,w=c+1;w<s.length;w++){if(Lp(s[w],d)){v=!1,c=w;break}if(go(s[w]))throw new B("Missing a "+d+" character to complete a CD arrow.",s[w]);p[g].body.push(s[w])}if(v)throw new B("Missing a "+d+" character to complete a CD arrow.",s[c])}else throw new B('Expected one of "<>AV=|." after @',s[c]);var A=Pp(d,p,t),M={type:"styling",body:[A],mode:"math",style:"display",resetFont:!0};n.push(M),o=fo()}i%2===0?n.push(o):n.shift(),n=[],a.push(n)}t.gullet.endGroup(),t.gullet.endGroup();var D=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:D,colSeparationType:"CD",hLinesBeforeRow:new Array(a.length+1).fill([])}}G({type:"cdlabel",names:["\\\\cdleft","\\\\cdright"],numArgs:1,handler(t,e){var r=t.parser,n=t.funcName;return{type:"cdlabel",mode:r.mode,side:n.slice(4),label:e[0]}},htmlBuilder(t,e){var r=e.havingStyle(e.style.sup()),n=l0(me(t.label,r,e),e);return n.classes.push("cd-label-"+t.side),n.style.bottom=H(.8-n.depth),n.height=0,n.depth=0,n},mathmlBuilder(t,e){var r=new q("mrow",[be(t.label,e)]);return r=new q("mpadded",[r]),r.setAttribute("width","0"),t.side==="left"&&r.setAttribute("lspace","-1width"),r.setAttribute("voffset","0.7em"),r=new q("mstyle",[r]),r.setAttribute("displaystyle","false"),r.setAttribute("scriptlevel","1"),r}});G({type:"cdlabelparent",names:["\\\\cdparent"],numArgs:1,handler(t,e){var r=t.parser;return{type:"cdlabelparent",mode:r.mode,fragment:e[0]}},htmlBuilder(t,e){var r=l0(me(t.fragment,e),e);return r.classes.push("cd-vert-arrow"),r},mathmlBuilder(t,e){return new q("mrow",[be(t.fragment,e)])}});G({type:"textord",names:["\\@char"],numArgs:1,allowedInText:!0,handler(t,e){var r=t.parser,n=oe(e[0],"ordgroup"),a=Vi(n,"\\@char has non-numeric argument"),i=parseInt(a),s;if(isNaN(i))throw new B("\\@char has non-numeric argument "+a);if(i<0||i>1114111)throw new B("\\@char with invalid code point "+a);return i<=65535?s=String.fromCharCode(i):(i-=65536,s=String.fromCharCode((i>>10)+55296,(i&1023)+56320)),{type:"textord",mode:r.mode,text:s}}});var $p=(t,e)=>{var r=Fe(t.body,e.withColor(t.color),!1);return Kt(r)},Bp=(t,e)=>{var r=yt(t.body,e.withColor(t.color)),n=new q("mstyle",r);return n.setAttribute("mathcolor",t.color),n};G({type:"color",names:["\\textcolor"],numArgs:2,allowedInText:!0,argTypes:["color","original"],handler(t,e){var r=t.parser,n=oe(e[0],"color-token").color,a=e[1];return{type:"color",mode:r.mode,color:n,body:Pe(a)}},htmlBuilder:$p,mathmlBuilder:Bp});G({type:"color",names:["\\color"],numArgs:1,allowedInText:!0,argTypes:["color"],handler(t,e){var r=t.parser,n=t.breakOnTokenText,a=oe(e[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}}});G({type:"cr",names:["\\\\"],numArgs:0,numOptionalArgs:0,allowedInText:!0,handler(t){var e=t.parser,r=e.gullet.future().text==="["?e.parseSizeGroup(!0):null,n=!e.settings.displayMode||!mt({strict:e.settings.strict,errorCode:"newLineInDisplayMode",errorMsg:"In LaTeX, \\\\ or \\newline does nothing in display mode",report:!1});return{type:"cr",mode:e.mode,newLine:n,size:r&&oe(r,"size").value}},htmlBuilder(t,e){var r=P(["mspace"],[],e);return t.newLine&&(r.classes.push("katex-newline"),t.size&&(r.style.marginTop=H(Ie(t.size,e)))),r},mathmlBuilder(t,e){var r=new q("mspace");return t.newLine&&(r.setAttribute("linebreak","newline"),t.size&&r.setAttribute("height",H(Ie(t.size,e)))),r}});var mi={"\\global":"\\global","\\long":"\\\\globallong","\\\\globallong":"\\\\globallong","\\def":"\\gdef","\\gdef":"\\gdef","\\edef":"\\xdef","\\xdef":"\\xdef","\\let":"\\\\globallet","\\futurelet":"\\\\globalfuture"},xc=t=>{var e=t.text;if(/^(?:[\\{}$&#^_]|EOF)$/.test(e))throw new B("Expected a control sequence",t);return e},qp=t=>{var e=t.gullet.popToken();return e.text==="="&&(e=t.gullet.popToken(),e.text===" "&&(e=t.gullet.popToken())),e},Sc=(t,e,r,n)=>{var a=t.gullet.macros.get(r.text);a==null&&(r.noexpand=!0,a={tokens:[r],numArgs:0,unexpandable:!t.gullet.isExpandable(r.text)}),t.gullet.macros.set(e,a,n)};G({type:"internal",names:["\\global","\\long","\\\\globallong"],numArgs:0,allowedInText:!0,handler(t){var e=t.parser,r=t.funcName;e.consumeSpaces();var n=e.fetch();if(mi[n.text])return(r==="\\global"||r==="\\\\globallong")&&(n.text=mi[n.text]),oe(e.parseFunction(),"internal");throw new B("Invalid token after macro prefix",n)}});G({type:"internal",names:["\\def","\\gdef","\\edef","\\xdef"],numArgs:0,allowedInText:!0,primitive:!0,handler(t){var e=t.parser,r=t.funcName,n=e.gullet.popToken(),a=n.text;if(/^(?:[\\{}$&#^_]|EOF)$/.test(a))throw new B("Expected a control sequence",n);for(var i=0,s,o=[[]];e.gullet.future().text!=="{";)if(n=e.gullet.popToken(),n.text==="#"){if(e.gullet.future().text==="{"){s=e.gullet.future(),o[i].push("{");break}if(n=e.gullet.popToken(),!/^[1-9]$/.test(n.text))throw new B('Invalid argument number "'+n.text+'"');if(parseInt(n.text)!==i+1)throw new B('Argument number "'+n.text+'" out of order');i++,o.push([])}else{if(n.text==="EOF")throw new B("Expected a macro definition");o[i].push(n.text)}var c=e.gullet.consumeArg(),d=c.tokens;return s&&d.unshift(s),(r==="\\edef"||r==="\\xdef")&&(d=e.gullet.expandTokens(d),d.reverse()),e.gullet.macros.set(a,{tokens:d,numArgs:i,delimiters:o},r===mi[r]),{type:"internal",mode:e.mode}}});G({type:"internal",names:["\\let","\\\\globallet"],numArgs:0,allowedInText:!0,primitive:!0,handler(t){var e=t.parser,r=t.funcName,n=xc(e.gullet.popToken());e.gullet.consumeSpaces();var a=qp(e);return Sc(e,n,a,r==="\\\\globallet"),{type:"internal",mode:e.mode}}});G({type:"internal",names:["\\futurelet","\\\\globalfuture"],numArgs:0,allowedInText:!0,primitive:!0,handler(t){var e=t.parser,r=t.funcName,n=xc(e.gullet.popToken()),a=e.gullet.popToken(),i=e.gullet.popToken();return Sc(e,n,i,r==="\\\\globalfuture"),e.gullet.pushToken(i),e.gullet.pushToken(a),{type:"internal",mode:e.mode}}});var N0=function(e,r,n){var a=Te.math[e]&&Te.math[e].replace,i=Hi(a||e,r,n);if(!i)throw new Error("Unsupported symbol "+e+" and font size "+r+".");return i},Xi=function(e,r,n,a){var i=n.havingBaseStyle(r),s=P(a.concat(i.sizingClasses(n)),[e],n),o=i.sizeMultiplier/n.sizeMultiplier;return s.height*=o,s.depth*=o,s.maxFontSize=i.sizeMultiplier,s},Ac=function(e,r,n){var a=r.havingBaseStyle(n),i=(1-r.sizeMultiplier/a.sizeMultiplier)*r.fontMetrics().axisHeight;e.classes.push("delimcenter"),e.style.top=H(i),e.height-=i,e.depth+=i},Fp=function(e,r,n,a,i,s){var o=nt(e,"Main-Regular",i,a),c=Xi(o,r,a,s);return Ac(c,a,r),c},Hp=function(e,r,n,a){return nt(e,"Size"+r+"-Regular",n,a)},Tc=function(e,r,n,a,i,s){var o=Hp(e,r,i,a),c=Xi(P(["delimsizing","size"+r],[o],a),ae.TEXT,a,s);return n&&Ac(c,a,ae.TEXT),c},za=function(e,r,n,a){var i;r==="Size1-Regular"?i="delim-size1":i="delim-size4";var s=P(["delimsizinginner",i],[P([],[nt(e,r,n,a)])]);return{type:"elem",elem:s}},Ra=function(e,r,n){var a=Ut["Size4-Regular"][e.charCodeAt(0)]?Ut["Size4-Regular"][e.charCodeAt(0)][4]:Ut["Size1-Regular"][e.charCodeAt(0)][4],i=new Nr("inner",Wh(e,Math.round(1e3*r))),s=new hr([i],{width:H(a),height:H(r),style:"width:"+H(a),viewBox:"0 0 "+1e3*a+" "+Math.round(1e3*r),preserveAspectRatio:"xMinYMin"}),o=pr([],[s],n);return o.height=r,o.style.height=H(r),o.style.width=H(a),{type:"elem",elem:o}},fi=.008,En={type:"kern",size:-1*fi},Up=new Set(["|","\\lvert","\\rvert","\\vert"]),Wp=new Set(["\\|","\\lVert","\\rVert","\\Vert"]),Ec=function(e,r,n,a,i,s){var o,c,d,p,g="",v=0;o=d=p=e,c=null;var w="Size1-Regular";e==="\\uparrow"?d=p="⏐":e==="\\Uparrow"?d=p="‖":e==="\\downarrow"?o=d="⏐":e==="\\Downarrow"?o=d="‖":e==="\\updownarrow"?(o="\\uparrow",d="⏐",p="\\downarrow"):e==="\\Updownarrow"?(o="\\Uparrow",d="‖",p="\\Downarrow"):Up.has(e)?(d="∣",g="vert",v=333):Wp.has(e)?(d="∥",g="doublevert",v=556):e==="["||e==="\\lbrack"?(o="⎡",d="⎢",p="⎣",w="Size4-Regular",g="lbrack",v=667):e==="]"||e==="\\rbrack"?(o="⎤",d="⎥",p="⎦",w="Size4-Regular",g="rbrack",v=667):e==="\\lfloor"||e==="⌊"?(d=o="⎢",p="⎣",w="Size4-Regular",g="lfloor",v=667):e==="\\lceil"||e==="⌈"?(o="⎡",d=p="⎢",w="Size4-Regular",g="lceil",v=667):e==="\\rfloor"||e==="⌋"?(d=o="⎥",p="⎦",w="Size4-Regular",g="rfloor",v=667):e==="\\rceil"||e==="⌉"?(o="⎤",d=p="⎥",w="Size4-Regular",g="rceil",v=667):e==="("||e==="\\lparen"?(o="⎛",d="⎜",p="⎝",w="Size4-Regular",g="lparen",v=875):e===")"||e==="\\rparen"?(o="⎞",d="⎟",p="⎠",w="Size4-Regular",g="rparen",v=875):e==="\\{"||e==="\\lbrace"?(o="⎧",c="⎨",p="⎩",d="⎪",w="Size4-Regular"):e==="\\}"||e==="\\rbrace"?(o="⎫",c="⎬",p="⎭",d="⎪",w="Size4-Regular"):e==="\\lgroup"||e==="⟮"?(o="⎧",p="⎩",d="⎪",w="Size4-Regular"):e==="\\rgroup"||e==="⟯"?(o="⎫",p="⎭",d="⎪",w="Size4-Regular"):e==="\\lmoustache"||e==="⎰"?(o="⎧",p="⎭",d="⎪",w="Size4-Regular"):(e==="\\rmoustache"||e==="⎱")&&(o="⎫",p="⎩",d="⎪",w="Size4-Regular");var A=N0(o,w,i),M=A.height+A.depth,D=N0(d,w,i),S=D.height+D.depth,C=N0(p,w,i),W=C.height+C.depth,K=0,Y=1;if(c!==null){var T=N0(c,w,i);K=T.height+T.depth,Y=2}var R=M+W+K,U=Math.max(0,Math.ceil((r-R)/(Y*S))),O=R+U*Y*S,$=a.fontMetrics().axisHeight;n&&($*=a.sizeMultiplier);var L=O/2-$,F=[];if(g.length>0){var X=O-M-W,J=Math.round(O*1e3),ee=Gh(g,Math.round(X*1e3)),le=new Nr(g,ee),ue=H(v/1e3),De=H(J/1e3),ve=new hr([le],{width:ue,height:De,viewBox:"0 0 "+v+" "+J}),Ae=pr([],[ve],a);Ae.height=J/1e3,Ae.style.width=ue,Ae.style.height=De,F.push({type:"elem",elem:Ae})}else{if(F.push(za(p,w,i,a)),F.push(En),c===null){var st=O-M-W+2*fi;F.push(Ra(d,st,a))}else{var wt=(O-M-W-K)/2+2*fi;F.push(Ra(d,wt,a)),F.push(En),F.push(za(c,w,i,a)),F.push(En),F.push(Ra(d,wt,a))}F.push(En),F.push(za(o,w,i,a))}var Ze=a.havingBaseStyle(ae.TEXT),Qe=fe({positionType:"bottom",positionData:L,children:F});return Xi(P(["delimsizing","mult"],[Qe],Ze),ae.TEXT,a,s)},Da=80,Na=.08,_a=function(e,r,n,a,i){var s=Uh(e,a,n),o=new Nr(e,s),c=new hr([o],{width:"400em",height:H(r),viewBox:"0 0 400000 "+n,preserveAspectRatio:"xMinYMin slice"});return pr(["hide-tail"],[c],i)},Gp=function(e,r){var n=r.havingBaseSizing(),a=Rc("\\surd",e*n.sizeMultiplier,zc,n),i=n.sizeMultiplier,s=Math.max(0,r.minRuleThickness-r.fontMetrics().sqrtRuleThickness),o,c,d,p,g;return a.type==="small"?(p=1e3+1e3*s+Da,e<1?i=1:e<1.4&&(i=.7),c=(1+s+Na)/i,d=(1+s)/i,o=_a("sqrtMain",c,p,s,r),o.style.minWidth="0.853em",g=.833/i):a.type==="large"?(p=(1e3+Da)*L0[a.size],d=(L0[a.size]+s)/i,c=(L0[a.size]+s+Na)/i,o=_a("sqrtSize"+a.size,c,p,s,r),o.style.minWidth="1.02em",g=1/i):(c=e+s+Na,d=e+s,p=Math.floor(1e3*e+s)+Da,o=_a("sqrtTall",c,p,s,r),o.style.minWidth="0.742em",g=1.056),o.height=d,o.style.height=H(c),{span:o,advanceWidth:g,ruleWidth:(r.fontMetrics().sqrtRuleThickness+s)*i}},Mc=new Set(["(","\\lparen",")","\\rparen","[","\\lbrack","]","\\rbrack","\\{","\\lbrace","\\}","\\rbrace","\\lfloor","\\rfloor","⌊","⌋","\\lceil","\\rceil","⌈","⌉","\\surd"]),jp=new Set(["\\uparrow","\\downarrow","\\updownarrow","\\Uparrow","\\Downarrow","\\Updownarrow","|","\\|","\\vert","\\Vert","\\lvert","\\rvert","\\lVert","\\rVert","\\lgroup","\\rgroup","⟮","⟯","\\lmoustache","\\rmoustache","⎰","⎱"]),Cc=new Set(["<",">","\\langle","\\rangle","/","\\backslash","\\lt","\\gt"]),L0=[0,1.2,1.8,2.4,3],Ic=function(e,r,n,a,i){if(e==="<"||e==="\\lt"||e==="⟨"?e="\\langle":(e===">"||e==="\\gt"||e==="⟩")&&(e="\\rangle"),Mc.has(e)||Cc.has(e))return Tc(e,r,!1,n,a,i);if(jp.has(e))return Ec(e,L0[r],!1,n,a,i);throw new B("Illegal delimiter: '"+e+"'")},Vp=[{type:"small",style:ae.SCRIPTSCRIPT},{type:"small",style:ae.SCRIPT},{type:"small",style:ae.TEXT},{type:"large",size:1},{type:"large",size:2},{type:"large",size:3},{type:"large",size:4}],Xp=[{type:"small",style:ae.SCRIPTSCRIPT},{type:"small",style:ae.SCRIPT},{type:"small",style:ae.TEXT},{type:"stack"}],zc=[{type:"small",style:ae.SCRIPTSCRIPT},{type:"small",style:ae.SCRIPT},{type:"small",style:ae.TEXT},{type:"large",size:1},{type:"large",size:2},{type:"large",size:3},{type:"large",size:4},{type:"stack"}],Yp=function(e){if(e.type==="small")return"Main-Regular";if(e.type==="large")return"Size"+e.size+"-Regular";if(e.type==="stack")return"Size4-Regular";var r=e.type;throw new Error("Add support for delim type '"+r+"' here.")},Rc=function(e,r,n,a){for(var i=Math.min(2,3-a.style.size),s=i;s<n.length;s++){var o=n[s];if(o.type==="stack")break;var c=N0(e,Yp(o),"math"),d=c.height+c.depth;if(o.type==="small"){var p=a.havingBaseStyle(o.style);d*=p.sizeMultiplier}if(d>r)return o}return n[n.length-1]},gi=function(e,r,n,a,i,s){e==="<"||e==="\\lt"||e==="⟨"?e="\\langle":(e===">"||e==="\\gt"||e==="⟩")&&(e="\\rangle");var o;Cc.has(e)?o=Vp:Mc.has(e)?o=zc:o=Xp;var c=Rc(e,r,o,a);return c.type==="small"?Fp(e,c.style,n,a,i,s):c.type==="large"?Tc(e,c.size,n,a,i,s):Ec(e,r,n,a,i,s)},La=function(e,r,n,a,i,s){var o=a.fontMetrics().axisHeight*a.sizeMultiplier,c=901,d=5/a.fontMetrics().ptPerEm,p=Math.max(r-o,n+o),g=Math.max(p/500*c,2*p-d);return gi(e,g,!0,a,i,s)},vo={"\\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}},Kp=new Set(["(","\\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 bo(t){return"isMiddle"in t}function Kn(t,e){var r=Xn(t);if(r&&Kp.has(r.text))return r;throw r?new B("Invalid delimiter '"+r.text+"' after '"+e.funcName+"'",t):new B("Invalid delimiter type '"+t.type+"'",t)}G({type:"delimsizing",names:["\\bigl","\\Bigl","\\biggl","\\Biggl","\\bigr","\\Bigr","\\biggr","\\Biggr","\\bigm","\\Bigm","\\biggm","\\Biggm","\\big","\\Big","\\bigg","\\Bigg"],numArgs:1,argTypes:["primitive"],handler:(t,e)=>{var r=Kn(H0(e[0]),t);return{type:"delimsizing",mode:t.parser.mode,size:vo[t.funcName].size,mclass:vo[t.funcName].mclass,delim:r.text}},htmlBuilder:(t,e)=>t.delim==="."?P([t.mclass]):Ic(t.delim,t.size,e,t.mode,[t.mclass]),mathmlBuilder:t=>{var e=[];t.delim!=="."&&e.push(Mt(t.delim,t.mode));var r=new q("mo",e);t.mclass==="mopen"||t.mclass==="mclose"?r.setAttribute("fence","true"):r.setAttribute("fence","false"),r.setAttribute("stretchy","true");var n=H(L0[t.size]);return r.setAttribute("minsize",n),r.setAttribute("maxsize",n),r}});function yo(t){if(!t.body)throw new Error("Bug: The leftright ParseNode wasn't fully parsed.")}G({type:"leftright-right",names:["\\right"],numArgs:1,primitive:!0,handler:(t,e)=>{var r=t.parser.gullet.macros.get("\\current@color");if(r&&typeof r!="string")throw new B("\\current@color set to non-string in \\right");return{type:"leftright-right",mode:t.parser.mode,delim:Kn(e[0],t).text,color:r}}});G({type:"leftright",names:["\\left"],numArgs:1,primitive:!0,handler:(t,e)=>{var r=Kn(e[0],t),n=t.parser;++n.leftrightDepth;var a=n.parseExpression(!1);--n.leftrightDepth,n.expect("\\right",!1);var i=oe(n.parseFunction(),"leftright-right");return{type:"leftright",mode:n.mode,body:a,left:r.text,right:i.delim,rightColor:i.color}},htmlBuilder:(t,e)=>{yo(t);for(var r=Fe(t.body,e,!0,["mopen","mclose"]),n=0,a=0,i=!1,s=0;s<r.length;s++){var o=r[s];bo(o)?i=!0:(n=Math.max(r[s].height,n),a=Math.max(r[s].depth,a))}n*=e.sizeMultiplier,a*=e.sizeMultiplier;var c;if(t.left==="."?c=U0(e,["mopen"]):c=La(t.left,n,a,e,t.mode,["mopen"]),r.unshift(c),i)for(var d=1;d<r.length;d++){var p=r[d];if(bo(p)){var g=p.isMiddle;r[d]=La(g.delim,n,a,g.options,t.mode,[])}}var v;if(t.right===".")v=U0(e,["mclose"]);else{var w=t.rightColor?e.withColor(t.rightColor):e;v=La(t.right,n,a,w,t.mode,["mclose"])}return r.push(v),P(["minner"],r,e)},mathmlBuilder:(t,e)=>{yo(t);var r=yt(t.body,e);if(t.left!=="."){var n=new q("mo",[Mt(t.left,t.mode)]);n.setAttribute("fence","true"),r.unshift(n)}if(t.right!=="."){var a=new q("mo",[Mt(t.right,t.mode)]);a.setAttribute("fence","true"),t.rightColor&&a.setAttribute("mathcolor",t.rightColor),r.push(a)}return Gi(r)}});G({type:"middle",names:["\\middle"],numArgs:1,primitive:!0,handler:(t,e)=>{var r=Kn(e[0],t);if(!t.parser.leftrightDepth)throw new B("\\middle without preceding \\left",r);return{type:"middle",mode:t.parser.mode,delim:r.text}},htmlBuilder:(t,e)=>{var r;return t.delim==="."?r=U0(e,[]):(r=Ic(t.delim,1,e,t.mode,[]),r.isMiddle={delim:t.delim,options:e}),r},mathmlBuilder:(t,e)=>{var r=t.delim==="\\vert"||t.delim==="|"?Mt("|","text"):Mt(t.delim,t.mode),n=new q("mo",[r]);return n.setAttribute("fence","true"),n.setAttribute("lspace","0.05em"),n.setAttribute("rspace","0.05em"),n}});var Zp=(t,e)=>{var r=l0(me(t.body,e),e),n=t.label.slice(1),a=e.sizeMultiplier,i,s,o=Xt(t.body);if(n==="sout")i=P(["katex-stretchy","katex-sout"]),i.height=e.fontMetrics().defaultRuleThickness/a,s=-.5*e.fontMetrics().xHeight;else if(n==="phase"){var c=Ie({number:.6,unit:"pt"},e),d=Ie({number:.35,unit:"ex"},e),p=e.havingBaseSizing();a=a/p.sizeMultiplier;var g=r.height+r.depth+c+d;r.style.paddingLeft=H(g/2+c);var v=Math.floor(1e3*g*a),w=Fh(v),A=new hr([new Nr("phase",w)],{width:"400em",height:H(v/1e3),viewBox:"0 0 400000 "+v,preserveAspectRatio:"xMinYMin slice"});i=pr(["hide-tail"],[A],e),i.style.height=H(g),s=r.depth+c+d}else{/cancel/.test(n)?o||r.classes.push("cancel-pad"):n==="angl"?r.classes.push("anglpad"):r.classes.push("boxpad");var M,D,S=0;/box/.test(n)?(S=Math.max(e.fontMetrics().fboxrule,e.minRuleThickness),M=e.fontMetrics().fboxsep+(n==="colorbox"?0:S),D=M):n==="angl"?(S=Math.max(e.fontMetrics().defaultRuleThickness,e.minRuleThickness),M=4*S,D=Math.max(0,.25-r.depth)):(M=o?.2:0,D=M),i=Ap(r,n,M,D,e),/fbox|boxed|fcolorbox/.test(n)?(i.style.borderStyle="solid",i.style.borderWidth=H(S)):n==="angl"&&S!==.049&&(i.style.borderTopWidth=H(S),i.style.borderRightWidth=H(S)),s=r.depth+D,t.backgroundColor&&(i.style.backgroundColor=t.backgroundColor,t.borderColor&&(i.style.borderColor=t.borderColor))}var C;if(t.backgroundColor)C=fe({positionType:"individualShift",children:[{type:"elem",elem:i,shift:s},{type:"elem",elem:r,shift:0}]});else{var W=/cancel|phase/.test(n)?["svg-align"]:[];C=fe({positionType:"individualShift",children:[{type:"elem",elem:r,shift:0},{type:"elem",elem:i,shift:s,wrapperClasses:W}]})}return/cancel/.test(n)&&(C.height=r.height,C.depth=r.depth),/cancel/.test(n)&&!o?P(["mord","cancel-lap"],[C],e):P(["mord"],[C],e)},Qp=(t,e)=>{var r,n=new q(t.label.includes("colorbox")?"mpadded":"menclose",[be(t.body,e)]);switch(t.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=e.fontMetrics().fboxsep*e.fontMetrics().ptPerEm,n.setAttribute("width","+"+2*r+"pt"),n.setAttribute("height","+"+2*r+"pt"),n.setAttribute("lspace",r+"pt"),n.setAttribute("voffset",r+"pt"),t.label==="\\fcolorbox"){var a=Math.max(e.fontMetrics().fboxrule,e.minRuleThickness);n.setAttribute("style","border: "+H(a)+" solid "+t.borderColor)}break;case"\\xcancel":n.setAttribute("notation","updiagonalstrike downdiagonalstrike");break}return t.backgroundColor&&n.setAttribute("mathbackground",t.backgroundColor),n};G({type:"enclose",names:["\\colorbox"],numArgs:2,allowedInText:!0,argTypes:["color","hbox"],handler(t,e,r){var n=t.parser,a=t.funcName,i=oe(e[0],"color-token").color,s=e[1];return{type:"enclose",mode:n.mode,label:a,backgroundColor:i,body:s}},htmlBuilder:Zp,mathmlBuilder:Qp});G({type:"enclose",names:["\\fcolorbox"],numArgs:3,allowedInText:!0,argTypes:["color","color","hbox"],handler(t,e,r){var n=t.parser,a=t.funcName,i=oe(e[0],"color-token").color,s=oe(e[1],"color-token").color,o=e[2];return{type:"enclose",mode:n.mode,label:a,backgroundColor:s,borderColor:i,body:o}}});G({type:"enclose",names:["\\fbox"],numArgs:1,argTypes:["hbox"],allowedInText:!0,handler(t,e){var r=t.parser;return{type:"enclose",mode:r.mode,label:"\\fbox",body:e[0]}}});G({type:"enclose",names:["\\cancel","\\bcancel","\\xcancel","\\phase"],numArgs:1,handler(t,e){var r=t.parser,n=t.funcName,a=e[0];return{type:"enclose",mode:r.mode,label:n,body:a}}});G({type:"enclose",names:["\\sout"],numArgs:1,allowedInText:!0,handler(t,e){var r=t.parser,n=t.funcName;r.mode==="math"&&mt({strict:r.settings.strict,errorCode:"mathVsSout",errorMsg:"LaTeX's \\sout works only in text mode",report:!0});var a=e[0];return{type:"enclose",mode:r.mode,label:n,body:a}}});G({type:"enclose",names:["\\angl"],numArgs:1,argTypes:["hbox"],allowedInText:!1,handler(t,e){var r=t.parser;return{type:"enclose",mode:r.mode,label:"\\angl",body:e[0]}}});var Dc={};function Lt(t){for(var e=t.type,r=t.names,n=t.props,a=t.handler,i=t.htmlBuilder,s=t.mathmlBuilder,o={type:e,numArgs:n.numArgs||0,allowedInText:!1,numOptionalArgs:0,handler:a},c=0;c<r.length;++c)Dc[r[c]]=o;i&&(q0[e]=i),s&&(F0[e]=s)}var Nc={};function m(t,e){Nc[t]=e}class pt{constructor(e,r,n){this.lexer=void 0,this.start=void 0,this.end=void 0,this.lexer=e,this.start=r,this.end=n}static range(e,r){return r?!e||!e.loc||!r.loc||e.loc.lexer!==r.loc.lexer?null:new pt(e.loc.lexer,e.loc.start,r.loc.end):e&&e.loc}}class vt{constructor(e,r){this.text=void 0,this.loc=void 0,this.noexpand=void 0,this.treatAsRelax=void 0,this.text=e,this.loc=r}range(e,r){return new vt(r,pt.range(this,e))}}function wo(t){var e=[];t.consumeSpaces();var r=t.fetch().text;for(r==="\\relax"&&(t.consume(),t.consumeSpaces(),r=t.fetch().text);r==="\\hline"||r==="\\hdashline";)t.consume(),e.push(r==="\\hdashline"),t.consumeSpaces(),r=t.fetch().text;return e}var Zn=t=>{var e=t.parser.settings;if(!e.displayMode)throw new B("{"+t.envName+"} can be used only in display mode.")},Jp=new Set(["gather","gather*"]);function Yi(t){if(!t.includes("ed"))return!t.includes("*")}function fr(t,e,r){var n=e.hskipBeforeAndAfter,a=e.addJot,i=e.cols,s=e.arraystretch,o=e.colSeparationType,c=e.autoTag,d=e.singleRow,p=e.emptySingleRow,g=e.maxNumCols,v=e.leqno;if(t.gullet.beginGroup(),d||t.gullet.macros.set("\\cr","\\\\\\relax"),!s){var w=t.gullet.expandMacroAsText("\\arraystretch");if(w==null)s=1;else if(s=parseFloat(w),!s||s<0)throw new B("Invalid \\arraystretch: "+w)}t.gullet.beginGroup();var A=[],M=[A],D=[],S=[],C=c!=null?[]:void 0;function W(){c&&t.gullet.macros.set("\\@eqnsw","1",!0)}function K(){C&&(t.gullet.macros.get("\\df@tag")?(C.push(t.subparse([new vt("\\df@tag")])),t.gullet.macros.set("\\df@tag",void 0,!0)):C.push(!!c&&t.gullet.macros.get("\\@eqnsw")==="1"))}for(W(),S.push(wo(t));;){var Y=t.parseExpression(!1,d?"\\end":"\\\\");t.gullet.endGroup(),t.gullet.beginGroup();var T={type:"ordgroup",mode:t.mode,body:Y};r&&(T={type:"styling",mode:t.mode,style:r,resetFont:!0,body:[T]}),A.push(T);var R=t.fetch().text;if(R==="&"){if(g&&A.length===g){if(d||o)throw new B("Too many tab characters: &",t.nextToken);mt({strict:t.settings.strict,errorCode:"textEnv",errorMsg:"Too few columns specified in the {array} column argument.",report:!0})}t.consume()}else if(R==="\\end"){K(),A.length===1&&T.type==="styling"&&T.body.length===1&&T.body[0].type==="ordgroup"&&T.body[0].body.length===0&&(M.length>1||!p)&&!Array.isArray(C?.[C.length-1])&&!(c&&C?.[C.length-1]===!0)&&M.pop(),S.length<M.length+1&&S.push([]);break}else if(R==="\\\\"){t.consume();var U=void 0;t.gullet.future().text!==" "&&(U=t.parseSizeGroup(!0)),D.push(U?U.value:null),K(),S.push(wo(t)),A=[],M.push(A),W()}else throw new B("Expected & or \\\\ or \\cr or \\end",t.nextToken)}return t.gullet.endGroup(),t.gullet.endGroup(),{type:"array",mode:t.mode,addJot:a,arraystretch:s,body:M,cols:i,rowGaps:D,hskipBeforeAndAfter:n,hLinesBeforeRow:S,colSeparationType:o,tags:C,leqno:v}}function Ki(t){return t.slice(0,1)==="d"?"display":"text"}var Pt=function(e,r){var n,a,i=e.body.length,s=e.hLinesBeforeRow,o=0,c=new Array(i),d=[],p=Math.max(r.fontMetrics().arrayRuleWidth,r.minRuleThickness),g=1/r.fontMetrics().ptPerEm,v=5*g;if(e.colSeparationType&&e.colSeparationType==="small"){var w=r.havingStyle(ae.SCRIPT).sizeMultiplier;v=.2778*(w/r.sizeMultiplier)}var A=e.colSeparationType==="CD"?Ie({number:3,unit:"ex"},r):12*g,M=3*g,D=e.arraystretch*A,S=.7*D,C=.3*D,W=0;function K(ot){for(var xt=0;xt<ot.length;++xt)xt>0&&(W+=.25),d.push({pos:W,isDashed:ot[xt]})}for(K(s[0]),n=0;n<e.body.length;++n){var Y=e.body[n],T=S,R=C;o<Y.length&&(o=Y.length);var U={cells:new Array(Y.length),height:0,depth:0,pos:0};for(a=0;a<Y.length;++a){var O=me(Y[a],r);R<O.depth&&(R=O.depth),T<O.height&&(T=O.height),U.cells[a]=O}var $=e.rowGaps[n],L=0;$&&(L=Ie($,r),L>0&&(L+=C,R<L&&(R=L),L=0)),e.addJot&&n<e.body.length-1&&(R+=M),U.height=T,U.depth=R,W+=T,U.pos=W,W+=R+L,c[n]=U,K(s[n+1])}var F=W/2+r.fontMetrics().axisHeight,X=e.cols||[],J=[],ee,le,ue=[];if(e.tags&&e.tags.some(ot=>ot))for(n=0;n<i;++n){var De=c[n],ve=De.pos-F,Ae=e.tags[n],st=void 0;Ae===!0?st=P(["eqn-num"],[],r):Ae===!1?st=P([],[],r):st=P([],Fe(Ae,r,!0),r),st.depth=De.depth,st.height=De.height,ue.push({type:"elem",elem:st,shift:ve})}for(a=0,le=0;a<o||le<X.length;++a,++le){for(var wt,Ze=X[le],Qe=!0;((gr=Ze)==null?void 0:gr.type)==="separator";){var gr;if(Qe||(ee=P(["arraycolsep"],[]),ee.style.width=H(r.fontMetrics().doubleRuleSep),J.push(ee)),Ze.separator==="|"||Ze.separator===":"){var ye=Ze.separator==="|"?"solid":"dashed",Zt=P(["vertical-separator"],[],r);Zt.style.height=H(W),Zt.style.borderRightWidth=H(p),Zt.style.borderRightStyle=ye,Zt.style.margin="0 "+H(-p/2);var J0=W-F;J0&&(Zt.style.verticalAlign=H(-J0)),J.push(Zt)}else throw new B("Invalid separator type: "+Ze.separator);le++,Ze=X[le],Qe=!1}if(!(a>=o)){var Qt=void 0;if(a>0||e.hskipBeforeAndAfter){var en,tn;Qt=(en=(tn=Ze)==null?void 0:tn.pregap)!=null?en:v,Qt!==0&&(ee=P(["arraycolsep"],[]),ee.style.width=H(Qt),J.push(ee))}var rn=[];for(n=0;n<i;++n){var vr=c[n],Br=vr.cells[a];if(Br){var nn=vr.pos-F;Br.depth=vr.depth,Br.height=vr.height,rn.push({type:"elem",elem:Br,shift:nn})}}var xe=fe({positionType:"individualShift",children:rn}),v0=P(["col-align-"+(((wt=Ze)==null?void 0:wt.align)||"c")],[xe]);if(J.push(v0),a<o-1||e.hskipBeforeAndAfter){var we,qr;Qt=(we=(qr=Ze)==null?void 0:qr.postgap)!=null?we:v,Qt!==0&&(ee=P(["arraycolsep"],[]),ee.style.width=H(Qt),J.push(ee))}}}var Je=P(["mtable"],J);if(d.length>0){for(var br=o0("katex-hline",r,p),an=o0("katex-hdashline",r,p),kt=[{type:"elem",elem:Je,shift:0}];d.length>0;){var b0=d.pop(),Fr=b0.pos-F;b0.isDashed?kt.push({type:"elem",elem:an,shift:Fr}):kt.push({type:"elem",elem:br,shift:Fr})}Je=fe({positionType:"individualShift",children:kt})}if(ue.length===0)return P(["mord"],[Je],r);var sn=fe({positionType:"individualShift",children:ue}),y0=P(["katex-tag"],[sn],r);return Kt([Je,y0])},em={c:"center ",l:"left ",r:"right "},Ot=function(e,r){for(var n=[],a=new q("mtd",[],["mtr-glue"]),i=new q("mtd",[],["mml-eqn-num"]),s=0;s<e.body.length;s++){for(var o=e.body[s],c=[],d=0;d<o.length;d++)c.push(new q("mtd",[be(o[d],r)]));e.tags&&e.tags[s]&&(c.unshift(a),c.push(a),e.leqno?c.unshift(i):c.push(i)),n.push(new q("mtr",c))}var p=new q("mtable",n),g=e.arraystretch===.5?.1:.16+e.arraystretch-1+(e.addJot?.09:0);p.setAttribute("rowspacing",H(g));var v="",w="";if(e.cols&&e.cols.length>0){var A=e.cols,M="",D=!1,S=0,C=A.length;A[0].type==="separator"&&(v+="top ",S=1),A[A.length-1].type==="separator"&&(v+="bottom ",C-=1);for(var W=S;W<C;W++){var K=A[W];K.type==="align"?(w+=em[K.align],D&&(M+="none "),D=!0):K.type==="separator"&&D&&(M+=K.separator==="|"?"solid ":"dashed ",D=!1)}p.setAttribute("columnalign",w.trim()),/[sd]/.test(M)&&p.setAttribute("columnlines",M.trim())}if(e.colSeparationType==="align"){for(var Y=e.cols||[],T="",R=1;R<Y.length;R++)T+=R%2?"0em ":"1em ";p.setAttribute("columnspacing",T.trim())}else e.colSeparationType==="alignat"||e.colSeparationType==="gather"?p.setAttribute("columnspacing","0em"):e.colSeparationType==="small"?p.setAttribute("columnspacing","0.2778em"):e.colSeparationType==="CD"?p.setAttribute("columnspacing","0.5em"):p.setAttribute("columnspacing","1em");var U="",O=e.hLinesBeforeRow;v+=O[0].length>0?"left ":"",v+=O[O.length-1].length>0?"right ":"";for(var $=1;$<O.length-1;$++)U+=O[$].length===0?"none ":O[$][0]?"dashed ":"solid ";return/[sd]/.test(U)&&p.setAttribute("rowlines",U.trim()),v!==""&&(p=new q("menclose",[p]),p.setAttribute("notation",v.trim())),e.arraystretch&&e.arraystretch<1&&(p=new q("mstyle",[p]),p.setAttribute("scriptlevel","1")),p},_c=function(e,r){e.envName.includes("ed")||Zn(e);var n=[],a=e.envName==="split",i=fr(e.parser,{cols:n,addJot:!0,autoTag:a?void 0:Yi(e.envName),emptySingleRow:!0,colSeparationType:e.envName.includes("at")?"alignat":"align",maxNumCols:a?2:void 0,leqno:e.parser.settings.leqno},"display"),s=0,o=0,c={type:"ordgroup",mode:e.mode,body:[]};if(r[0]&&r[0].type==="ordgroup"){var d="Number of columns should be a positive integer",p=Vi(r[0],d);if(!/^[0-9]+$/.test(p)||Number(p)<1)throw new B(d,r[0]);s=Number(p),o=s*2}var g=!o;i.body.forEach(function(M){for(var D=1;D<M.length;D+=2){var S=oe(M[D],"styling"),C=oe(S.body[0],"ordgroup");C.body.unshift(c)}if(g)o<M.length&&(o=M.length);else{var W=M.length/2;if(s<W)throw new B("Too many math in a row: "+("expected "+s+", but got "+W),M[0])}});for(var v=0;v<o;++v){var w="r",A=0;v%2===1?w="l":v>0&&g&&(A=1),n[v]={type:"align",align:w,pregap:A,postgap:0}}return i.colSeparationType=g?"align":"alignat",i};Lt({type:"array",names:["array","darray"],props:{numArgs:1},handler(t,e){var r=Xn(e[0]),n=r?[e[0]]:oe(e[0],"ordgroup").body,a=n.map(function(s){var o=Vn(s),c=o.text;if("lcr".includes(c))return{type:"align",align:c};if(c==="|")return{type:"separator",separator:"|"};if(c===":")return{type:"separator",separator:":"};throw new B("Unknown column alignment: "+c,s)}),i={cols:a,hskipBeforeAndAfter:!0,maxNumCols:a.length};return fr(t.parser,i,Ki(t.envName))},htmlBuilder:Pt,mathmlBuilder:Ot});Lt({type:"array",names:["matrix","pmatrix","bmatrix","Bmatrix","vmatrix","Vmatrix","matrix*","pmatrix*","bmatrix*","Bmatrix*","vmatrix*","Vmatrix*"],props:{numArgs:0},handler(t){var e={matrix:null,pmatrix:["(",")"],bmatrix:["[","]"],Bmatrix:["\\{","\\}"],vmatrix:["|","|"],Vmatrix:["\\Vert","\\Vert"]}[t.envName.replace("*","")],r="c",n={hskipBeforeAndAfter:!1,cols:[{type:"align",align:r}]};if(t.envName.charAt(t.envName.length-1)==="*"){var a=t.parser;if(a.consumeSpaces(),a.fetch().text==="["){if(a.consume(),a.consumeSpaces(),r=a.fetch().text,!"lcr".includes(r))throw new B("Expected l or c or r",a.nextToken);a.consume(),a.consumeSpaces(),a.expect("]"),a.consume(),n.cols=[{type:"align",align:r}]}}var i=fr(t.parser,n,Ki(t.envName)),s=Math.max(0,...i.body.map(o=>o.length));return i.cols=new Array(s).fill({type:"align",align:r}),e?{type:"leftright",mode:t.mode,body:[i],left:e[0],right:e[1],rightColor:void 0}:i},htmlBuilder:Pt,mathmlBuilder:Ot});Lt({type:"array",names:["smallmatrix"],props:{numArgs:0},handler(t){var e={arraystretch:.5},r=fr(t.parser,e,"script");return r.colSeparationType="small",r},htmlBuilder:Pt,mathmlBuilder:Ot});Lt({type:"array",names:["subarray"],props:{numArgs:1},handler(t,e){var r=Xn(e[0]),n=r?[e[0]]:oe(e[0],"ordgroup").body,a=n.map(function(o){var c=Vn(o),d=c.text;if("lc".includes(d))return{type:"align",align:d};throw new B("Unknown column alignment: "+d,o)});if(a.length>1)throw new B("{subarray} can contain only one column");var i={cols:a,hskipBeforeAndAfter:!1,arraystretch:.5},s=fr(t.parser,i,"script");if(s.body.length>0&&s.body[0].length>1)throw new B("{subarray} can contain only one column");return s},htmlBuilder:Pt,mathmlBuilder:Ot});Lt({type:"array",names:["cases","dcases","rcases","drcases"],props:{numArgs:0},handler(t){var e={arraystretch:1.2,cols:[{type:"align",align:"l",pregap:0,postgap:1},{type:"align",align:"l",pregap:0,postgap:0}]},r=fr(t.parser,e,Ki(t.envName));return{type:"leftright",mode:t.mode,body:[r],left:t.envName.includes("r")?".":"\\{",right:t.envName.includes("r")?"\\}":".",rightColor:void 0}},htmlBuilder:Pt,mathmlBuilder:Ot});Lt({type:"array",names:["align","align*","aligned","split"],props:{numArgs:0},handler:_c,htmlBuilder:Pt,mathmlBuilder:Ot});Lt({type:"array",names:["gathered","gather","gather*"],props:{numArgs:0},handler(t){Jp.has(t.envName)&&Zn(t);var e={cols:[{type:"align",align:"c"}],addJot:!0,colSeparationType:"gather",autoTag:Yi(t.envName),emptySingleRow:!0,leqno:t.parser.settings.leqno};return fr(t.parser,e,"display")},htmlBuilder:Pt,mathmlBuilder:Ot});Lt({type:"array",names:["alignat","alignat*","alignedat"],props:{numArgs:1},handler:_c,htmlBuilder:Pt,mathmlBuilder:Ot});Lt({type:"array",names:["equation","equation*"],props:{numArgs:0},handler(t){Zn(t);var e={autoTag:Yi(t.envName),emptySingleRow:!0,singleRow:!0,maxNumCols:1,leqno:t.parser.settings.leqno};return fr(t.parser,e,"display")},htmlBuilder:Pt,mathmlBuilder:Ot});Lt({type:"array",names:["CD"],props:{numArgs:0},handler(t){return Zn(t),Op(t.parser)},htmlBuilder:Pt,mathmlBuilder:Ot});m("\\nonumber","\\gdef\\@eqnsw{0}");m("\\notag","\\nonumber");G({type:"text",names:["\\hline","\\hdashline"],numArgs:0,allowedInText:!0,allowedInMath:!0,handler(t,e){throw new B(t.funcName+" valid only within array environment")}});var ko=Dc;G({type:"environment",names:["\\begin","\\end"],numArgs:1,argTypes:["text"],handler(t,e){var r=t.parser,n=t.funcName,a=e[0];if(a.type!=="ordgroup")throw new B("Invalid environment name",a);var i=Vi(a,"Environment name should contain only text characters and spaces",!0);if(n==="\\begin"){if(!Object.prototype.hasOwnProperty.call(ko,i))throw new B("No such environment: "+i,a);var s=ko[i],o=r.parseArguments("\\begin{"+i+"}",s),c=o.args,d=o.optArgs,p={mode:r.mode,envName:i,parser:r},g=s.handler(p,c,d);r.expect("\\end",!1);var v=r.nextToken,w=oe(r.parseFunction(),"environment");if(w.name!==i)throw new B("Mismatch: \\begin{"+i+"} matched by \\end{"+w.name+"}",v);return g}return{type:"environment",mode:r.mode,name:i,nameGroup:a}}});var tm=(t,e)=>{var r=t.font,n=e.withFont(r);return me(t.body,n)},rm=(t,e)=>{var r=t.font,n=e.withFont(r);return be(t.body,n)},xo={"\\Bbb":"\\mathbb","\\bold":"\\mathbf","\\frak":"\\mathfrak"};G({type:"font",names:["\\mathrm","\\mathit","\\mathbf","\\mathnormal","\\mathsfit","\\mathbb","\\mathcal","\\mathfrak","\\mathscr","\\mathsf","\\mathtt","\\Bbb","\\bold","\\frak"],numArgs:1,allowedInArgument:!0,handler:(t,e)=>{var r=t.parser,n=t.funcName,a=H0(e[0]),i=n in xo?xo[n]:n;return{type:"font",mode:r.mode,font:i.slice(1),body:a}},htmlBuilder:tm,mathmlBuilder:rm});G({type:"mclass",names:["\\boldsymbol","\\bm"],numArgs:1,handler:(t,e)=>{var r=t.parser,n=e[0];return{type:"mclass",mode:r.mode,mclass:Yn(n),body:[{type:"font",mode:r.mode,font:"boldsymbol",body:n}],isCharacterBox:Xt(n)}}});G({type:"font",names:["\\rm","\\sf","\\tt","\\bf","\\it","\\cal"],numArgs:0,allowedInText:!0,handler:(t,e)=>{var r=t.parser,n=t.funcName,a=t.breakOnTokenText,i=r.mode,s=r.parseExpression(!0,a);return{type:"font",mode:i,font:"math"+n.slice(1),body:{type:"ordgroup",mode:r.mode,body:s}}}});var nm=(t,e)=>{var r=e.style,n=r.fracNum(),a=r.fracDen(),i;i=e.havingStyle(n);var s=me(t.numer,i,e);if(t.continued){var o=8.5/e.fontMetrics().ptPerEm,c=3.5/e.fontMetrics().ptPerEm;s.height=s.height<o?o:s.height,s.depth=s.depth<c?c:s.depth}i=e.havingStyle(a);var d=me(t.denom,i,e),p,g,v;t.hasBarLine?(t.barSize?(g=Ie(t.barSize,e),p=o0("frac-line",e,g)):p=o0("frac-line",e),g=p.height,v=p.height):(p=null,g=0,v=e.fontMetrics().defaultRuleThickness);var w,A,M;r.size===ae.DISPLAY.size?(w=e.fontMetrics().num1,g>0?A=3*v:A=7*v,M=e.fontMetrics().denom1):(g>0?(w=e.fontMetrics().num2,A=v):(w=e.fontMetrics().num3,A=3*v),M=e.fontMetrics().denom2);var D;if(p){var C=e.fontMetrics().axisHeight;w-s.depth-(C+.5*g)<A&&(w+=A-(w-s.depth-(C+.5*g))),C-.5*g-(d.height-M)<A&&(M+=A-(C-.5*g-(d.height-M)));var W=-(C-.5*g);D=fe({positionType:"individualShift",children:[{type:"elem",elem:d,shift:M},{type:"elem",elem:p,shift:W},{type:"elem",elem:s,shift:-w}]})}else{var S=w-s.depth-(d.height-M);S<A&&(w+=.5*(A-S),M+=.5*(A-S)),D=fe({positionType:"individualShift",children:[{type:"elem",elem:d,shift:M},{type:"elem",elem:s,shift:-w}]})}i=e.havingStyle(r),D.height*=i.sizeMultiplier/e.sizeMultiplier,D.depth*=i.sizeMultiplier/e.sizeMultiplier;var K;r.size===ae.DISPLAY.size?K=e.fontMetrics().delim1:r.size===ae.SCRIPTSCRIPT.size?K=e.havingStyle(ae.SCRIPT).fontMetrics().delim2:K=e.fontMetrics().delim2;var Y,T;return t.leftDelim==null?Y=U0(e,["mopen"]):Y=gi(t.leftDelim,K,!0,e.havingStyle(r),t.mode,["mopen"]),t.continued?T=P([]):t.rightDelim==null?T=U0(e,["mclose"]):T=gi(t.rightDelim,K,!0,e.havingStyle(r),t.mode,["mclose"]),P(["mord"].concat(i.sizingClasses(e)),[Y,P(["mfrac"],[D]),T],e)},am=(t,e)=>{var r=new q("mfrac",[be(t.numer,e),be(t.denom,e)]);if(!t.hasBarLine)r.setAttribute("linethickness","0px");else if(t.barSize){var n=Ie(t.barSize,e);r.setAttribute("linethickness",H(n))}if(t.leftDelim!=null||t.rightDelim!=null){var a=[];if(t.leftDelim!=null){var i=new q("mo",[new Oe(t.leftDelim.replace("\\",""))]);i.setAttribute("fence","true"),a.push(i)}if(a.push(r),t.rightDelim!=null){var s=new q("mo",[new Oe(t.rightDelim.replace("\\",""))]);s.setAttribute("fence","true"),a.push(s)}return Gi(a)}return r},Lc=(t,e)=>{if(!e)return t;var r={type:"styling",mode:t.mode,style:e,body:[t]};return r};G({type:"genfrac",names:["\\cfrac","\\dfrac","\\frac","\\tfrac","\\dbinom","\\binom","\\tbinom","\\\\atopfrac","\\\\bracefrac","\\\\brackfrac"],numArgs:2,allowedInArgument:!0,handler:(t,e)=>{var r=t.parser,n=t.funcName,a=e[0],i=e[1],s,o=null,c=null;switch(n){case"\\cfrac":case"\\dfrac":case"\\frac":case"\\tfrac":s=!0;break;case"\\\\atopfrac":s=!1;break;case"\\dbinom":case"\\binom":case"\\tbinom":s=!1,o="(",c=")";break;case"\\\\bracefrac":s=!1,o="\\{",c="\\}";break;case"\\\\brackfrac":s=!1,o="[",c="]";break;default:throw new Error("Unrecognized genfrac command")}var d=n==="\\cfrac",p=null;return d||n.startsWith("\\d")?p="display":n.startsWith("\\t")&&(p="text"),Lc({type:"genfrac",mode:r.mode,numer:a,denom:i,continued:d,hasBarLine:s,leftDelim:o,rightDelim:c,barSize:null},p)},htmlBuilder:nm,mathmlBuilder:am});G({type:"infix",names:["\\over","\\choose","\\atop","\\brace","\\brack"],numArgs:0,infix:!0,handler(t){var e=t.parser,r=t.funcName,n=t.token,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:e.mode,replaceWith:a,token:n}}});var So=["display","text","script","scriptscript"],Ao=function(e){var r=null;return e.length>0&&(r=e,r=r==="."?null:r),r};G({type:"genfrac",names:["\\genfrac"],numArgs:6,allowedInArgument:!0,argTypes:["math","math","size","text","math","math"],handler(t,e){var r=t.parser,n=e[4],a=e[5],i=H0(e[0]),s=i.type==="atom"&&i.family==="open"?Ao(i.text):null,o=H0(e[1]),c=o.type==="atom"&&o.family==="close"?Ao(o.text):null,d=oe(e[2],"size"),p,g=null;d.isBlank?p=!0:(g=d.value,p=g.number>0);var v=null,w=e[3];if(w.type==="ordgroup"){if(w.body.length>0){var A=oe(w.body[0],"textord");v=So[Number(A.text)]}}else w=oe(w,"textord"),v=So[Number(w.text)];return Lc({type:"genfrac",mode:r.mode,numer:n,denom:a,continued:!1,hasBarLine:p,barSize:g,leftDelim:s,rightDelim:c},v)}});G({type:"infix",names:["\\above"],numArgs:1,argTypes:["size"],infix:!0,handler(t,e){var r=t.parser;t.funcName;var n=t.token;return{type:"infix",mode:r.mode,replaceWith:"\\\\abovefrac",size:oe(e[0],"size").value,token:n}}});G({type:"genfrac",names:["\\\\abovefrac"],numArgs:3,argTypes:["math","size","math"],handler:(t,e)=>{var r=t.parser;t.funcName;var n=e[0],a=oe(e[1],"infix").size;if(!a)throw new Error("\\\\abovefrac expected size, but got "+String(a));var i=e[2],s=a.number>0;return{type:"genfrac",mode:r.mode,numer:n,denom:i,continued:!1,hasBarLine:s,barSize:a,leftDelim:null,rightDelim:null}}});var Pc=(t,e)=>{var r=e.style,n,a;t.type==="supsub"?(n=t.sup?me(t.sup,e.havingStyle(r.sup()),e):me(t.sub,e.havingStyle(r.sub()),e),a=oe(t.base,"horizBrace")):a=oe(t,"horizBrace");var i=me(a.base,e.havingBaseStyle(ae.DISPLAY)),s=jn(a,e),o;if(a.isOver?o=fe({positionType:"firstBaseline",children:[{type:"elem",elem:i},{type:"kern",size:.1},{type:"elem",elem:s,wrapperClasses:["svg-align"]}]}):o=fe({positionType:"bottom",positionData:i.depth+.1+s.height,children:[{type:"elem",elem:s,wrapperClasses:["svg-align"]},{type:"kern",size:.1},{type:"elem",elem:i}]}),n){var c=P(["minner",a.isOver?"mover":"munder"],[o],e);a.isOver?o=fe({positionType:"firstBaseline",children:[{type:"elem",elem:c},{type:"kern",size:.2},{type:"elem",elem:n}]}):o=fe({positionType:"bottom",positionData:c.depth+.2+n.height+n.depth,children:[{type:"elem",elem:n},{type:"kern",size:.2},{type:"elem",elem:c}]})}return P(["minner",a.isOver?"mover":"munder"],[o],e)},im=(t,e)=>{var r=Gn(t.label);return new q(t.isOver?"mover":"munder",[be(t.base,e),r])};G({type:"horizBrace",names:["\\overbrace","\\underbrace","\\overbracket","\\underbracket"],numArgs:1,handler(t,e){var r=t.parser,n=t.funcName;return{type:"horizBrace",mode:r.mode,label:n,isOver:n.includes("\\over"),base:e[0]}},htmlBuilder:Pc,mathmlBuilder:im});G({type:"href",names:["\\href"],numArgs:2,argTypes:["url","original"],allowedInText:!0,handler:(t,e)=>{var r=t.parser,n=e[1],a=oe(e[0],"url").url;return r.settings.isTrusted({command:"\\href",url:a})?{type:"href",mode:r.mode,href:a,body:Pe(n)}:r.formatUnsupportedCmd("\\href")},htmlBuilder:(t,e)=>{var r=Fe(t.body,e,!1);return sp(t.href,[],r,e)},mathmlBuilder:(t,e)=>{var r=mr(t.body,e);return r instanceof q||(r=new q("mrow",[r])),r.setAttribute("href",t.href),r}});G({type:"href",names:["\\url"],numArgs:1,argTypes:["url"],allowedInText:!0,handler:(t,e)=>{var r=t.parser,n=oe(e[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 o={type:"text",mode:r.mode,font:"\\texttt",body:a};return{type:"href",mode:r.mode,href:n,body:Pe(o)}}});G({type:"hbox",names:["\\hbox"],numArgs:1,argTypes:["text"],allowedInText:!0,primitive:!0,handler(t,e){var r=t.parser;return{type:"hbox",mode:r.mode,body:Pe(e[0])}},htmlBuilder(t,e){var r=Fe(t.body,e.withFont(""),!1);return Kt(r)},mathmlBuilder(t,e){return new q("mrow",yt(t.body,e.withFont("")))}});G({type:"html",names:["\\htmlClass","\\htmlId","\\htmlStyle","\\htmlData"],numArgs:2,argTypes:["raw","original"],allowedInText:!0,handler:(t,e)=>{var r=t.parser,n=t.funcName;t.token;var a=oe(e[0],"raw").string,i=e[1];r.settings.strict&&mt({strict:r.settings.strict,errorCode:"htmlExtension",errorMsg:"HTML extension is disabled on strict mode",report:!0});var s,o={};switch(n){case"\\htmlClass":o.class=a,s={command:"\\htmlClass",class:a};break;case"\\htmlId":o.id=a,s={command:"\\htmlId",id:a};break;case"\\htmlStyle":o.style=a,s={command:"\\htmlStyle",style:a};break;case"\\htmlData":{for(var c="{,}",d=[],p="",g=0;g<a.length;g++)a.startsWith(c,g)?(p+=",",g+=c.length-1):a[g]===","?(d.push(p),p=""):p+=a[g];d.push(p);for(var v=0;v<d.length;v++){var w=d[v],A=w.indexOf("=");if(A<0)throw new B("\\htmlData key/value '"+w+"' missing equals sign");var M=w.slice(0,A),D=w.slice(A+1);o["data-"+M.trim()]=D}s={command:"\\htmlData",attributes:o};break}default:throw new Error("Unrecognized html command")}return r.settings.isTrusted(s)?{type:"html",mode:r.mode,attributes:o,body:Pe(i)}:r.formatUnsupportedCmd(n)},htmlBuilder:(t,e)=>{var r=Fe(t.body,e,!1),n=["enclosing"];t.attributes.class&&n.push(...t.attributes.class.trim().split(/\s+/));var a=P(n,r,e);for(var i of Object.entries(t.attributes)){var s=i[0],o=i[1];s!=="class"&&a.setAttribute(s,o)}return a},mathmlBuilder:(t,e)=>mr(t.body,e)});G({type:"htmlmathml",names:["\\html@mathml"],numArgs:2,allowedInArgument:!0,allowedInText:!0,handler:(t,e)=>{var r=t.parser;return{type:"htmlmathml",mode:r.mode,html:Pe(e[0]),mathml:Pe(e[1])}},htmlBuilder:(t,e)=>{var r=Fe(t.html,e,!1);return Kt(r)},mathmlBuilder:(t,e)=>mr(t.mathml,e)});var Pa=function(e){if(/^[-+]? *(\d+(\.\d*)?|\.\d+)$/.test(e))return{number:+e,unit:"bp"};var r=/([-+]?) *(\d+(?:\.\d*)?|\.\d+) *([a-z]{2})/.exec(e);if(!r)throw new B("Invalid size: '"+e+"' in \\includegraphics");var n={number:+(r[1]+r[2]),unit:r[3]};if(!oc(n))throw new B("Invalid unit: '"+n.unit+"' in \\includegraphics.");return n};G({type:"includegraphics",names:["\\includegraphics"],numArgs:1,numOptionalArgs:1,argTypes:["raw","url"],allowedInText:!1,handler:(t,e,r)=>{var n=t.parser,a={number:0,unit:"em"},i={number:.9,unit:"em"},s={number:0,unit:"em"},o="";if(r[0])for(var c=oe(r[0],"raw").string,d=c.split(","),p=0;p<d.length;p++){var g=d[p].split("=");if(g.length===2){var v=g[1].trim();switch(g[0].trim()){case"alt":o=v;break;case"width":a=Pa(v);break;case"height":i=Pa(v);break;case"totalheight":s=Pa(v);break;default:throw new B("Invalid key: '"+g[0]+"' in \\includegraphics.")}}}var w=oe(e[0],"url").url;return o===""&&(o=w,o=o.replace(/^.*[\\/]/,""),o=o.substring(0,o.lastIndexOf("."))),n.settings.isTrusted({command:"\\includegraphics",url:w})?{type:"includegraphics",mode:n.mode,alt:o,width:a,height:i,totalheight:s,src:w}:n.formatUnsupportedCmd("\\includegraphics")},htmlBuilder:(t,e)=>{var r=Ie(t.height,e),n=0;t.totalheight.number>0&&(n=Ie(t.totalheight,e)-r);var a=0;t.width.number>0&&(a=Ie(t.width,e));var i={height:H(r+n)};a>0&&(i.width=H(a)),n>0&&(i.verticalAlign=H(-n));var s=new Yh(t.src,t.alt,i);return s.height=r,s.depth=n,s},mathmlBuilder:(t,e)=>{var r=new q("mglyph",[]);r.setAttribute("alt",t.alt);var n=Ie(t.height,e),a=0;if(t.totalheight.number>0&&(a=Ie(t.totalheight,e)-n,r.setAttribute("valign",H(-a))),r.setAttribute("height",H(n+a)),t.width.number>0){var i=Ie(t.width,e);r.setAttribute("width",H(i))}return r.setAttribute("src",t.src),r}});G({type:"kern",names:["\\kern","\\mkern","\\hskip","\\mskip"],numArgs:1,argTypes:["size"],primitive:!0,allowedInText:!0,handler(t,e){var r=t.parser,n=t.funcName,a=oe(e[0],"size");if(r.settings.strict){var i=n[1]==="m",s=a.value.unit==="mu";i?(s||mt({strict:r.settings.strict,errorCode:"mathVsTextUnits",errorMsg:"LaTeX's "+n+" supports only mu units, "+("not "+a.value.unit+" units"),report:!0}),r.mode!=="math"&&mt({strict:r.settings.strict,errorCode:"mathVsTextUnits",errorMsg:"LaTeX's "+n+" works only in math mode",report:!0})):s&&mt({strict:r.settings.strict,errorCode:"mathVsTextUnits",errorMsg:"LaTeX's "+n+" doesn't support mu units",report:!0})}return{type:"kern",mode:r.mode,dimension:a.value}},htmlBuilder(t,e){return pc(t.dimension,e)},mathmlBuilder(t,e){var r=Ie(t.dimension,e);return new yc(r)}});G({type:"lap",names:["\\mathllap","\\mathrlap","\\mathclap"],numArgs:1,allowedInText:!0,handler:(t,e)=>{var r=t.parser,n=t.funcName,a=e[0];return{type:"lap",mode:r.mode,alignment:n.slice(5),body:a}},htmlBuilder:(t,e)=>{var r;t.alignment==="clap"?(r=P([],[me(t.body,e)]),r=P(["katex-inner"],[r],e)):r=P(["katex-inner"],[me(t.body,e)]);var n=P(["katex-fix"],[]),a=P([t.alignment],[r,n],e),i=P(["katex-strut"]);return i.style.height=H(a.height+a.depth),a.depth&&(i.style.verticalAlign=H(-a.depth)),a.children.unshift(i),a=P(["katex-thinbox"],[a],e),P(["mord","katex-vbox"],[a],e)},mathmlBuilder:(t,e)=>{var r=new q("mpadded",[be(t.body,e)]);if(t.alignment!=="rlap"){var n=t.alignment==="llap"?"-1":"-0.5";r.setAttribute("lspace",n+"width")}return r.setAttribute("width","0px"),r}});G({type:"styling",names:["\\(","$"],numArgs:0,allowedInText:!0,allowedInMath:!1,handler(t,e){var r=t.funcName,n=t.parser,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",resetFont:!0,body:s}}});G({type:"text",names:["\\)","\\]"],numArgs:0,allowedInText:!0,allowedInMath:!1,handler(t,e){throw new B("Mismatched "+t.funcName)}});var To=(t,e)=>{switch(e.style.size){case ae.DISPLAY.size:return t.display;case ae.TEXT.size:return t.text;case ae.SCRIPT.size:return t.script;case ae.SCRIPTSCRIPT.size:return t.scriptscript;default:return t.text}};G({type:"mathchoice",names:["\\mathchoice"],numArgs:4,primitive:!0,handler:(t,e)=>{var r=t.parser;return{type:"mathchoice",mode:r.mode,display:Pe(e[0]),text:Pe(e[1]),script:Pe(e[2]),scriptscript:Pe(e[3])}},htmlBuilder:(t,e)=>{var r=To(t,e),n=Fe(r,e,!1);return Kt(n)},mathmlBuilder:(t,e)=>{var r=To(t,e);return mr(r,e)}});var Oc=(t,e,r,n,a,i,s)=>{t=P([],[t]);var o=r&&Xt(r),c,d;if(e){var p=me(e,n.havingStyle(a.sup()),n);d={elem:p,kern:Math.max(n.fontMetrics().bigOpSpacing1,n.fontMetrics().bigOpSpacing3-p.depth)}}if(r){var g=me(r,n.havingStyle(a.sub()),n);c={elem:g,kern:Math.max(n.fontMetrics().bigOpSpacing2,n.fontMetrics().bigOpSpacing4-g.height)}}var v;if(d&&c){var w=n.fontMetrics().bigOpSpacing5+c.elem.height+c.elem.depth+c.kern+t.depth+s;v=fe({positionType:"bottom",positionData:w,children:[{type:"kern",size:n.fontMetrics().bigOpSpacing5},{type:"elem",elem:c.elem,marginLeft:H(-i)},{type:"kern",size:c.kern},{type:"elem",elem:t},{type:"kern",size:d.kern},{type:"elem",elem:d.elem,marginLeft:H(i)},{type:"kern",size:n.fontMetrics().bigOpSpacing5}]})}else if(c){var A=t.height-s;v=fe({positionType:"top",positionData:A,children:[{type:"kern",size:n.fontMetrics().bigOpSpacing5},{type:"elem",elem:c.elem,marginLeft:H(-i)},{type:"kern",size:c.kern},{type:"elem",elem:t}]})}else if(d){var M=t.depth+s;v=fe({positionType:"bottom",positionData:M,children:[{type:"elem",elem:t},{type:"kern",size:d.kern},{type:"elem",elem:d.elem,marginLeft:H(i)},{type:"kern",size:n.fontMetrics().bigOpSpacing5}]})}else return t;var D=[v];if(c&&i!==0&&!o){var S=P(["mspace"],[],n);S.style.marginRight=H(i),D.unshift(S)}return P(["mop","op-limits"],D,n)},$c=new Set(["\\smallint"]),Bc=(t,e)=>{var r,n,a=!1,i;t.type==="supsub"?(r=t.sup,n=t.sub,i=oe(t.base,"op"),a=!0):i=oe(t,"op");var s=e.style,o=!1;s.size===ae.DISPLAY.size&&i.symbol&&!$c.has(i.name)&&(o=!0);var c,d;if(i.symbol){var p=o?"Size2-Regular":"Size1-Regular",g="";if((i.name==="\\oiint"||i.name==="\\oiiint")&&(g=i.name.slice(1),i.name=g==="oiint"?"\\iint":"\\iiint"),c=nt(i.name,p,"math",e,["mop","op-symbol",o?"large-op":"small-op"]),d=c.italic,g.length>0){var v=fc(g+"Size"+(o?"2":"1"),e);c=fe({positionType:"individualShift",children:[{type:"elem",elem:c,shift:0},{type:"elem",elem:v,shift:o?.08:0}]}),i.name="\\"+g,c.classes.unshift("mop"),c.italic=d}}else if(i.body){var w=Fe(i.body,e,!0);w.length===1&&w[0]instanceof Et?(c=w[0],c.classes[0]="mop"):c=P(["mop"],w,e)}else{for(var A=[],M=1;M<i.name.length;M++)A.push(Ui(i.name[M],i.mode,e));c=P(["mop"],A,e)}var D=0,S=0;if((c instanceof Et||i.name==="\\oiint"||i.name==="\\oiiint")&&!i.suppressBaseShift){var C;D=(c.height-c.depth)/2-e.fontMetrics().axisHeight,S=(C=c.italic)!=null?C:0}return a?Oc(c,r,n,e,s,S,D):(D&&(c.style.position="relative",c.style.top=H(D)),c)},sm=(t,e)=>{var r;if(t.symbol)r=new q("mo",[Mt(t.name,t.mode)]),$c.has(t.name)&&r.setAttribute("largeop","false");else if(t.body)r=new q("mo",yt(t.body,e));else{r=new q("mi",[new Oe(t.name.slice(1))]);var n=new q("mo",[Mt("⁡","text")]);t.parentIsSupSub?r=new q("mrow",[r,n]):r=bc([r,n])}return r},om={"∏":"\\prod","∐":"\\coprod","∑":"\\sum","⋀":"\\bigwedge","⋁":"\\bigvee","⋂":"\\bigcap","⋃":"\\bigcup","⨀":"\\bigodot","⨁":"\\bigoplus","⨂":"\\bigotimes","⨄":"\\biguplus","⨆":"\\bigsqcup"};G({type:"op",names:["\\coprod","\\bigvee","\\bigwedge","\\biguplus","\\bigcap","\\bigcup","\\intop","\\prod","\\sum","\\bigotimes","\\bigoplus","\\bigodot","\\bigsqcup","\\smallint","∏","∐","∑","⋀","⋁","⋂","⋃","⨀","⨁","⨂","⨄","⨆"],numArgs:0,handler:(t,e)=>{var r=t.parser,n=t.funcName,a=n;return a.length===1&&(a=om[a]),{type:"op",mode:r.mode,limits:!0,parentIsSupSub:!1,symbol:!0,name:a}},htmlBuilder:Bc,mathmlBuilder:sm});G({type:"op",names:["\\mathop"],numArgs:1,primitive:!0,handler:(t,e)=>{var r=t.parser,n=e[0];return{type:"op",mode:r.mode,limits:!1,parentIsSupSub:!1,symbol:!1,body:Pe(n)}}});var lm={"∫":"\\int","∬":"\\iint","∭":"\\iiint","∮":"\\oint","∯":"\\oiint","∰":"\\oiiint"};G({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"],numArgs:0,handler(t){var e=t.parser,r=t.funcName;return{type:"op",mode:e.mode,limits:!1,parentIsSupSub:!1,symbol:!1,name:r}}});G({type:"op",names:["\\det","\\gcd","\\inf","\\lim","\\max","\\min","\\Pr","\\sup"],numArgs:0,handler(t){var e=t.parser,r=t.funcName;return{type:"op",mode:e.mode,limits:!0,parentIsSupSub:!1,symbol:!1,name:r}}});G({type:"op",names:["\\int","\\iint","\\iiint","\\oint","\\oiint","\\oiiint","∫","∬","∭","∮","∯","∰"],numArgs:0,allowedInArgument:!0,handler(t){var e=t.parser,r=t.funcName,n=r;return n.length===1&&(n=lm[n]),{type:"op",mode:e.mode,limits:!1,parentIsSupSub:!1,symbol:!0,name:n}}});var qc=(t,e)=>{var r,n,a=!1,i;t.type==="supsub"?(r=t.sup,n=t.sub,i=oe(t.base,"operatorname"),a=!0):i=oe(t,"operatorname");var s;if(i.body.length>0){for(var o=i.body.map(g=>{var v="text"in g?g.text:void 0;return typeof v=="string"?{type:"textord",mode:g.mode,text:v}:g}),c=Fe(o,e.withFont("mathrm"),!0),d=0;d<c.length;d++){var p=c[d];p instanceof Et&&(p.text=p.text.replace(/\u2212/,"-").replace(/\u2217/,"*"))}s=P(["mop"],c,e)}else s=P(["mop"],[],e);return a?Oc(s,r,n,e,e.style,0,0):s},cm=(t,e)=>{for(var r=yt(t.body,e.withFont("mathrm")),n=!0,a=0;a<r.length;a++){var i=r[a];if(!(i instanceof yc))if(i instanceof q)switch(i.type){case"mi":case"mn":case"mspace":case"mtext":break;case"mo":{var s=i.children[0];i.children.length===1&&s instanceof Oe?s.text=s.text.replace(/\u2212/,"-").replace(/\u2217/,"*"):n=!1;break}default:n=!1}else n=!1}if(n){var o=r.map(p=>p.toText()).join("");r=[new Oe(o)]}var c=new q("mi",r);c.setAttribute("mathvariant","normal");var d=new q("mo",[Mt("⁡","text")]);return t.parentIsSupSub?new q("mrow",[c,d]):bc([c,d])};G({type:"operatorname",names:["\\operatorname@","\\operatornamewithlimits"],numArgs:1,handler:(t,e)=>{var r=t.parser,n=t.funcName,a=e[0];return{type:"operatorname",mode:r.mode,body:Pe(a),alwaysHandleSupSub:n==="\\operatornamewithlimits",limits:!1,parentIsSupSub:!1}},htmlBuilder:qc,mathmlBuilder:cm});m("\\operatorname","\\@ifstar\\operatornamewithlimits\\operatorname@");Or({type:"ordgroup",htmlBuilder(t,e){return t.semisimple?Kt(Fe(t.body,e,!1)):P(["mord"],Fe(t.body,e,!0),e)},mathmlBuilder(t,e){return mr(t.body,e,!0)}});G({type:"overline",names:["\\overline"],numArgs:1,handler(t,e){var r=t.parser,n=e[0];return{type:"overline",mode:r.mode,body:n}},htmlBuilder(t,e){var r=me(t.body,e.havingCrampedStyle()),n=o0("overline-line",e),a=e.fontMetrics().defaultRuleThickness,i=fe({positionType:"firstBaseline",children:[{type:"elem",elem:r},{type:"kern",size:3*a},{type:"elem",elem:n},{type:"kern",size:a}]});return P(["mord","katex-overline"],[i],e)},mathmlBuilder(t,e){var r=new q("mo",[new Oe("‾")]);r.setAttribute("stretchy","true");var n=new q("mover",[be(t.body,e),r]);return n.setAttribute("accent","true"),n}});G({type:"phantom",names:["\\phantom"],numArgs:1,allowedInText:!0,handler:(t,e)=>{var r=t.parser,n=e[0];return{type:"phantom",mode:r.mode,body:Pe(n)}},htmlBuilder:(t,e)=>{var r=Fe(t.body,e.withPhantom(),!1);return Kt(r)},mathmlBuilder:(t,e)=>{var r=yt(t.body,e);return new q("mphantom",r)}});m("\\hphantom","\\smash{\\phantom{#1}}");G({type:"vphantom",names:["\\vphantom"],numArgs:1,allowedInText:!0,handler:(t,e)=>{var r=t.parser,n=e[0];return{type:"vphantom",mode:r.mode,body:n}},htmlBuilder:(t,e)=>{var r=P(["katex-inner"],[me(t.body,e.withPhantom())]),n=P(["katex-fix"],[]);return P(["mord","rlap"],[r,n],e)},mathmlBuilder:(t,e)=>{var r=yt(Pe(t.body),e),n=new q("mphantom",r),a=new q("mpadded",[n]);return a.setAttribute("width","0px"),a}});G({type:"raisebox",names:["\\raisebox"],numArgs:2,argTypes:["size","hbox"],allowedInText:!0,handler(t,e){var r=t.parser,n=oe(e[0],"size").value,a=e[1];return{type:"raisebox",mode:r.mode,dy:n,body:a}},htmlBuilder(t,e){var r=me(t.body,e),n=Ie(t.dy,e);return fe({positionType:"shift",positionData:-n,children:[{type:"elem",elem:r}]})},mathmlBuilder(t,e){var r=new q("mpadded",[be(t.body,e)]),n=t.dy.number+t.dy.unit;return r.setAttribute("voffset",n),r}});var Fc=(t,e)=>{var r=t.parser;return{type:"reflectbox",mode:r.mode,body:e[0]}};G({type:"reflectbox",names:["\\reflectbox"],numArgs:1,argTypes:["hbox"],allowedInText:!0,handler:Fc,htmlBuilder(t,e){return P(["mord","reflectbox"],[me(t.body,e)],e)},mathmlBuilder(t,e){return be(t.body,e)}});G({type:"reflectbox",names:["\\mathreflectbox"],numArgs:1,argTypes:["math"],handler:Fc});G({type:"internal",names:["\\relax"],numArgs:0,allowedInText:!0,allowedInArgument:!0,handler(t){var e=t.parser;return{type:"internal",mode:e.mode}}});G({type:"rule",names:["\\rule"],numArgs:2,numOptionalArgs:1,allowedInText:!0,allowedInMath:!0,argTypes:["size","size","size"],handler(t,e,r){var n=t.parser,a=r[0],i=oe(e[0],"size"),s=oe(e[1],"size");return{type:"rule",mode:n.mode,shift:a&&oe(a,"size").value,width:i.value,height:s.value}},htmlBuilder(t,e){var r=P(["mord","katex-rule"],[],e),n=Ie(t.width,e),a=Ie(t.height,e),i=t.shift?Ie(t.shift,e):0;return r.style.borderRightWidth=H(n),r.style.borderTopWidth=H(a),r.style.bottom=H(i),r.width=n,r.height=a+i,r.depth=-i,r.maxFontSize=a*1.125*e.sizeMultiplier,r},mathmlBuilder(t,e){var r=Ie(t.width,e),n=Ie(t.height,e),a=t.shift?Ie(t.shift,e):0,i=e.color&&e.getColor()||"black",s=new q("mspace");s.setAttribute("mathbackground",i),s.setAttribute("width",H(r)),s.setAttribute("height",H(n));var o=new q("mpadded",[s]);return a>=0?o.setAttribute("height",H(a)):(o.setAttribute("height",H(a)),o.setAttribute("depth",H(-a))),o.setAttribute("voffset",H(a)),o}});function Hc(t,e,r){for(var n=Fe(t,e,!1),a=e.sizeMultiplier/r.sizeMultiplier,i=0;i<n.length;i++){var s=n[i].classes.indexOf("katex-sizing");s<0?Array.prototype.push.apply(n[i].classes,e.sizingClasses(r)):n[i].classes[s+1]==="reset-size"+e.size&&(n[i].classes[s+1]="reset-size"+r.size),n[i].height*=a,n[i].depth*=a}return Kt(n)}var Eo=["\\tiny","\\sixptsize","\\scriptsize","\\footnotesize","\\small","\\normalsize","\\large","\\Large","\\LARGE","\\huge","\\Huge"],um=(t,e)=>{var r=e.havingSize(t.size);return Hc(t.body,r,e)};G({type:"sizing",names:Eo,numArgs:0,allowedInText:!0,handler:(t,e)=>{var r=t.breakOnTokenText,n=t.funcName,a=t.parser,i=a.parseExpression(!1,r);return{type:"sizing",mode:a.mode,size:Eo.indexOf(n)+1,body:i}},htmlBuilder:um,mathmlBuilder:(t,e)=>{var r=e.havingSize(t.size),n=yt(t.body,r),a=new q("mstyle",n);return a.setAttribute("mathsize",H(r.sizeMultiplier)),a}});G({type:"smash",names:["\\smash"],numArgs:1,numOptionalArgs:1,allowedInText:!0,handler:(t,e,r)=>{var n=t.parser,a=!1,i=!1,s=r[0]&&oe(r[0],"ordgroup");if(s)for(var o,c=0;c<s.body.length;++c){var d=s.body[c];if(o=Vn(d).text,o==="t")a=!0;else if(o==="b")i=!0;else{a=!1,i=!1;break}}else a=!0,i=!0;var p=e[0];return{type:"smash",mode:n.mode,body:p,smashHeight:a,smashDepth:i}},htmlBuilder:(t,e)=>{var r=P([],[me(t.body,e)]);if(!t.smashHeight&&!t.smashDepth)return r;if(t.smashHeight&&(r.height=0),t.smashDepth&&(r.depth=0),t.smashHeight&&t.smashDepth)return P(["mord","katex-smash"],[r],e);if(r.children)for(var n=0;n<r.children.length;n++)t.smashHeight&&(r.children[n].height=0),t.smashDepth&&(r.children[n].depth=0);var a=fe({positionType:"firstBaseline",children:[{type:"elem",elem:r}]});return P(["mord"],[a],e)},mathmlBuilder:(t,e)=>{var r=new q("mpadded",[be(t.body,e)]);return t.smashHeight&&r.setAttribute("height","0px"),t.smashDepth&&r.setAttribute("depth","0px"),r}});G({type:"sqrt",names:["\\sqrt"],numArgs:1,numOptionalArgs:1,handler(t,e,r){var n=t.parser,a=r[0],i=e[0];return{type:"sqrt",mode:n.mode,body:i,index:a}},htmlBuilder(t,e){var r=me(t.body,e.havingCrampedStyle());r.height===0&&(r.height=e.fontMetrics().xHeight),r=l0(r,e);var n=e.fontMetrics(),a=n.defaultRuleThickness,i=a;e.style.id<ae.TEXT.id&&(i=e.fontMetrics().xHeight);var s=a+i/4,o=r.height+r.depth+s+a,c=Gp(o,e),d=c.span,p=c.ruleWidth,g=c.advanceWidth,v=d.height-p;v>r.height+r.depth+s&&(s=(s+v-r.height-r.depth)/2);var w=d.height-r.height-s-p;r.style.paddingLeft=H(g);var A=fe({positionType:"firstBaseline",children:[{type:"elem",elem:r,wrapperClasses:["svg-align"]},{type:"kern",size:-(r.height+w)},{type:"elem",elem:d},{type:"kern",size:p}]});if(t.index){var M=e.havingStyle(ae.SCRIPTSCRIPT),D=me(t.index,M,e),S=.6*(A.height-A.depth),C=fe({positionType:"shift",positionData:-S,children:[{type:"elem",elem:D}]}),W=P(["katex-root"],[C]);return P(["mord","sqrt"],[W,A],e)}else return P(["mord","sqrt"],[A],e)},mathmlBuilder(t,e){var r=t.body,n=t.index;return n?new q("mroot",[be(r,e),be(n,e)]):new q("msqrt",[be(r,e)])}});var vi={display:ae.DISPLAY,text:ae.TEXT,script:ae.SCRIPT,scriptscript:ae.SCRIPTSCRIPT};function dm(t){return t in vi}G({type:"styling",names:["\\displaystyle","\\textstyle","\\scriptstyle","\\scriptscriptstyle"],numArgs:0,allowedInText:!0,primitive:!0,handler(t,e){var r=t.breakOnTokenText,n=t.funcName,a=t.parser,i=a.parseExpression(!0,r),s=n.slice(1,n.length-5);if(!dm(s))throw new Error("Unknown style: "+s);return{type:"styling",mode:a.mode,style:s,body:i}},htmlBuilder(t,e){var r=vi[t.style],n=e.havingStyle(r);return t.resetFont&&(n=n.withFont("")),Hc(t.body,n,e)},mathmlBuilder(t,e){var r=vi[t.style],n=e.havingStyle(r);t.resetFont&&(n=n.withFont(""));var a=yt(t.body,n),i=new q("mstyle",a),s={display:["0","true"],text:["0","false"],script:["1","false"],scriptscript:["2","false"]},o=s[t.style];return i.setAttribute("scriptlevel",o[0]),i.setAttribute("displaystyle",o[1]),i}});var hm=function(e,r){var n=e.base;if(n)if(n.type==="op"){var a=n.limits&&(r.style.size===ae.DISPLAY.size||n.alwaysHandleSupSub);return a?Bc:null}else if(n.type==="operatorname"){var i=n.alwaysHandleSupSub&&(r.style.size===ae.DISPLAY.size||n.limits);return i?qc:null}else{if(n.type==="accent")return Xt(n.base)?kc:null;if(n.type==="horizBrace"){var s=!e.sub;return s===n.isOver?Pc:null}else return null}else return null};Or({type:"supsub",htmlBuilder(t,e){var r=hm(t,e);if(r)return r(t,e);var n=t.base,a=t.sup,i=t.sub,s=me(n,e),o,c,d=e.fontMetrics(),p=0,g=0,v=n&&Xt(n);if(a){var w=e.havingStyle(e.style.sup());o=me(a,w,e),v||(p=s.height-w.fontMetrics().supDrop*w.sizeMultiplier/e.sizeMultiplier)}if(i){var A=e.havingStyle(e.style.sub());c=me(i,A,e),v||(g=s.depth+A.fontMetrics().subDrop*A.sizeMultiplier/e.sizeMultiplier)}var M;e.style===ae.DISPLAY?M=d.sup1:e.style.cramped?M=d.sup3:M=d.sup2;var D=e.sizeMultiplier,S=H(.5/d.ptPerEm/D),C=null;if(c){var W=t.base&&t.base.type==="op"&&t.base.name&&(t.base.name==="\\oiint"||t.base.name==="\\oiiint");if(s instanceof Et||W){var K;C=H(-((K=s.italic)!=null?K:0))}}var Y;if(o&&c){p=Math.max(p,M,o.depth+.25*d.xHeight),g=Math.max(g,d.sub2);var T=d.defaultRuleThickness,R=4*T;if(p-o.depth-(c.height-g)<R){g=R-(p-o.depth)+c.height;var U=.8*d.xHeight-(p-o.depth);U>0&&(p+=U,g-=U)}var O=[{type:"elem",elem:c,shift:g,marginRight:S,marginLeft:C},{type:"elem",elem:o,shift:-p,marginRight:S}];Y=fe({positionType:"individualShift",children:O})}else if(c){g=Math.max(g,d.sub1,c.height-.8*d.xHeight);var $=[{type:"elem",elem:c,marginLeft:C,marginRight:S}];Y=fe({positionType:"shift",positionData:g,children:$})}else if(o)p=Math.max(p,M,o.depth+.25*d.xHeight),Y=fe({positionType:"shift",positionData:-p,children:[{type:"elem",elem:o,marginRight:S}]});else throw new Error("supsub must have either sup or sub.");var L=pi(s,"right")||"mord";return P([L],[s,P(["msupsub"],[Y])],e)},mathmlBuilder(t,e){var r=!1,n,a;t.base&&t.base.type==="horizBrace"&&(a=!!t.sup,a===t.base.isOver&&(r=!0,n=t.base.isOver)),t.base&&(t.base.type==="op"||t.base.type==="operatorname")&&(t.base.parentIsSupSub=!0);var i=[be(t.base,e)];t.sub&&i.push(be(t.sub,e)),t.sup&&i.push(be(t.sup,e));var s;if(r)s=n?"mover":"munder";else if(t.sub)if(t.sup){var d=t.base;d&&d.type==="op"&&d.limits&&e.style===ae.DISPLAY||d&&d.type==="operatorname"&&d.alwaysHandleSupSub&&(e.style===ae.DISPLAY||d.limits)?s="munderover":s="msubsup"}else{var c=t.base;c&&c.type==="op"&&c.limits&&(e.style===ae.DISPLAY||c.alwaysHandleSupSub)||c&&c.type==="operatorname"&&c.alwaysHandleSupSub&&(c.limits||e.style===ae.DISPLAY)?s="munder":s="msub"}else{var o=t.base;o&&o.type==="op"&&o.limits&&(e.style===ae.DISPLAY||o.alwaysHandleSupSub)||o&&o.type==="operatorname"&&o.alwaysHandleSupSub&&(o.limits||e.style===ae.DISPLAY)?s="mover":s="msup"}return new q(s,i)}});Or({type:"atom",htmlBuilder(t,e){return Ui(t.text,t.mode,e,["m"+t.family])},mathmlBuilder(t,e){var r=new q("mo",[Mt(t.text,t.mode)]);if(t.family==="bin"){var n=ji(t,e);n==="bold-italic"&&r.setAttribute("mathvariant",n)}else t.family==="punct"?r.setAttribute("separator","true"):(t.family==="open"||t.family==="close")&&r.setAttribute("stretchy","false");return r}});var Uc={mi:"italic",mn:"normal",mtext:"normal"};Or({type:"mathord",htmlBuilder(t,e){return Wn(t,e)},mathmlBuilder(t,e){var r=new q("mi",[Mt(t.text,t.mode,e)]),n=ji(t,e)||"italic";return n!==Uc[r.type]&&r.setAttribute("mathvariant",n),r}});Or({type:"textord",htmlBuilder(t,e){return Wn(t,e)},mathmlBuilder(t,e){var r=Mt(t.text,t.mode,e),n=ji(t,e)||"normal",a;return t.mode==="text"?a=new q("mtext",[r]):/[0-9]/.test(t.text)?a=new q("mn",[r]):t.text==="\\prime"?a=new q("mo",[r]):a=new q("mi",[r]),n!==Uc[a.type]&&a.setAttribute("mathvariant",n),a}});var Mo=new Map([["\\nobreak","nobreak"],["\\allowbreak","allowbreak"]]),Co=new Map([[" ",{}],["\\ ",{}],["~",{className:"nobreak"}],["\\space",{}],["\\nobreakspace",{className:"nobreak"}]]);Or({type:"spacing",htmlBuilder(t,e){var r=Co.get(t.text),n=Mo.get(t.text);if(r){var a=r.className||"";if(t.mode==="text"){var i=Wn(t,e);return i.classes.push(a),i}else return P(["mspace",a],[Ui(t.text,t.mode,e)],e)}else{if(n)return P(["mspace",n],[],e);throw new B('Unknown type of space "'+t.text+'"')}},mathmlBuilder(t,e){var r;if(Co.has(t.text))r=new q("mtext",[new Oe(" ")]);else{if(Mo.has(t.text))return new q("mspace");throw new B('Unknown type of space "'+t.text+'"')}return r}});var Io=()=>{var t=new q("mtd",[]);return t.setAttribute("width","50%"),t};Or({type:"tag",mathmlBuilder(t,e){var r=new q("mtable",[new q("mtr",[Io(),new q("mtd",[mr(t.body,e)]),Io(),new q("mtd",[mr(t.tag,e)])])]);return r.setAttribute("width","100%"),r}});var zo={"\\text":void 0,"\\textrm":"textrm","\\textsf":"textsf","\\texttt":"texttt","\\textnormal":"textrm"},Ro={"\\textbf":"textbf","\\textmd":"textmd"},pm={"\\textit":"textit","\\textup":"textup"},Do=(t,e)=>{var r=t.font;if(r){if(zo[r])return e.withTextFontFamily(zo[r]);if(Ro[r])return e.withTextFontWeight(Ro[r]);if(r==="\\emph")return e.fontShape==="textit"?e.withTextFontShape("textup"):e.withTextFontShape("textit")}else return e;return e.withTextFontShape(pm[r])};G({type:"text",names:["\\text","\\textrm","\\textsf","\\texttt","\\textnormal","\\textbf","\\textmd","\\textit","\\textup","\\emph"],numArgs:1,argTypes:["text"],allowedInArgument:!0,allowedInText:!0,handler(t,e){var r=t.parser,n=t.funcName,a=e[0];return{type:"text",mode:r.mode,body:Pe(a),font:n}},htmlBuilder(t,e){var r=Do(t,e),n=Fe(t.body,r,!0);return P(["mord","text"],n,r)},mathmlBuilder(t,e){var r=Do(t,e);return mr(t.body,r)}});G({type:"underline",names:["\\underline"],numArgs:1,allowedInText:!0,handler(t,e){var r=t.parser;return{type:"underline",mode:r.mode,body:e[0]}},htmlBuilder(t,e){var r=me(t.body,e),n=o0("underline-line",e),a=e.fontMetrics().defaultRuleThickness,i=fe({positionType:"top",positionData:r.height,children:[{type:"kern",size:a},{type:"elem",elem:n},{type:"kern",size:3*a},{type:"elem",elem:r}]});return P(["mord","katex-underline"],[i],e)},mathmlBuilder(t,e){var r=new q("mo",[new Oe("‾")]);r.setAttribute("stretchy","true");var n=new q("munder",[be(t.body,e),r]);return n.setAttribute("accentunder","true"),n}});G({type:"vcenter",names:["\\vcenter"],numArgs:1,argTypes:["original"],allowedInText:!1,handler(t,e){var r=t.parser;return{type:"vcenter",mode:r.mode,body:e[0]}},htmlBuilder(t,e){var r=me(t.body,e),n=e.fontMetrics().axisHeight,a=.5*(r.height-n-(r.depth+n));return fe({positionType:"shift",positionData:a,children:[{type:"elem",elem:r}]})},mathmlBuilder(t,e){var r=new q("mpadded",[be(t.body,e)],["vcenter"]);return new q("mrow",[r])}});G({type:"verb",names:["\\verb"],numArgs:0,allowedInText:!0,handler(t,e,r){throw new B("\\verb ended by end of line instead of matching delimiter")},htmlBuilder(t,e){for(var r=No(t),n=[],a=e.havingStyle(e.style.text()),i=0;i<r.length;i++){var s=r[i];s==="~"&&(s="\\textasciitilde"),n.push(nt(s,"Typewriter-Regular",t.mode,a,["mord","texttt"]))}return P(["mord","text"].concat(a.sizingClasses(e)),hc(n),a)},mathmlBuilder(t,e){var r=new Oe(No(t)),n=new q("mtext",[r]);return n.setAttribute("mathvariant","monospace"),n}});var No=t=>t.body.replace(/ /g,t.star?"␣":" "),sr=gc,Wc=`[ \r
331
331
  ]`,mm="\\\\[a-zA-Z@]+",fm="\\\\[^\uD800-\uDFFF]",gm="("+mm+")"+Wc+"*",vm=`\\\\(
332
332
  |[ \r ]+
333
333
  ?)[ \r ]*`,bi="[̀-ͯ]",bm=new RegExp(bi+"+$"),ym="("+Wc+"+)|"+(vm+"|")+"([!-\\[\\]-‧‪-퟿豈-￿]"+(bi+"*")+"|[\uD800-\uDBFF][\uDC00-\uDFFF]"+(bi+"*")+"|\\\\verb\\*([^]).*?\\4|\\\\verb([^*a-zA-Z]).*?\\5"+("|"+gm)+("|"+fm+")");class _o{constructor(e,r){this.input=void 0,this.settings=void 0,this.tokenRegex=void 0,this.catcodes=void 0,this.input=e,this.settings=r,this.tokenRegex=new RegExp(ym,"g"),this.catcodes={"%":14,"~":13}}setCatcode(e,r){this.catcodes[e]=r}lex(){var e=this.input,r=this.tokenRegex.lastIndex;if(r===e.length)return new vt("EOF",new pt(this,r,r));var n=this.tokenRegex.exec(e);if(n===null||n.index!==r)throw new B("Unexpected character: '"+e[r]+"'",new vt(e[r],new pt(this,r,r+1)));var a=n[6]||n[3]||(n[2]?"\\ ":" ");if(this.catcodes[a]===14){var i=e.indexOf(`
334
334
  `,this.tokenRegex.lastIndex);return i===-1?(this.tokenRegex.lastIndex=e.length,mt({strict:this.settings.strict,errorCode:"commentAtEnd",errorMsg:"% comment has no terminating newline; LaTeX would fail because of commenting the end of math mode (e.g. $)",report:!0})):this.tokenRegex.lastIndex=i+1,this.lex()}return new vt(a,new pt(this,r,this.tokenRegex.lastIndex))}}class wm{constructor(e,r){e===void 0&&(e={}),r===void 0&&(r={}),this.current=void 0,this.builtins=void 0,this.undefStack=void 0,this.current=r,this.builtins=e,this.undefStack=[]}beginGroup(){this.undefStack.push({})}endGroup(){if(this.undefStack.length===0)throw new B("Unbalanced namespace destruction: attempt to pop global namespace; please report this as a bug");var e=this.undefStack.pop();for(var r of Object.keys(e))e[r]===void 0?delete this.current[r]:this.current[r]=e[r]}endGroups(){for(;this.undefStack.length>0;)this.endGroup()}has(e){return Object.prototype.hasOwnProperty.call(this.current,e)||Object.prototype.hasOwnProperty.call(this.builtins,e)}get(e){return Object.prototype.hasOwnProperty.call(this.current,e)?this.current[e]:Object.prototype.hasOwnProperty.call(this.builtins,e)?this.builtins[e]:void 0}set(e,r,n){if(n===void 0&&(n=!1),n){for(var a=0;a<this.undefStack.length;a++)delete this.undefStack[a][e];this.undefStack.length>0&&(this.undefStack[this.undefStack.length-1][e]=r)}else{var i=this.undefStack[this.undefStack.length-1];i&&!Object.prototype.hasOwnProperty.call(i,e)&&(i[e]=Object.prototype.hasOwnProperty.call(this.current,e)?this.current[e]:void 0)}r==null?delete this.current[e]:this.current[e]=r}}var km=Nc;m("\\noexpand",function(t){var e=t.popToken();return t.isExpandable(e.text)&&(e.noexpand=!0,e.treatAsRelax=!0),{tokens:[e],numArgs:0}});m("\\expandafter",function(t){var e=t.popToken();return t.expandOnce(!0),{tokens:[e],numArgs:0}});m("\\@firstoftwo",function(t){var e=t.consumeArgs(2);return{tokens:e[0],numArgs:0}});m("\\@secondoftwo",function(t){var e=t.consumeArgs(2);return{tokens:e[1],numArgs:0}});m("\\@ifnextchar",function(t){var e=t.consumeArgs(3);t.consumeSpaces();var r=t.future();return e[0].length===1&&e[0][0].text===r.text?{tokens:e[1],numArgs:0}:{tokens:e[2],numArgs:0}});m("\\@ifstar","\\@ifnextchar *{\\@firstoftwo{#1}}");m("\\TextOrMath",function(t){var e=t.consumeArgs(2);return t.mode==="text"?{tokens:e[0],numArgs:0}:{tokens:e[1],numArgs:0}});var Lo={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};m("\\char",function(t){var e=t.popToken(),r,n=0;if(e.text==="'")r=8,e=t.popToken();else if(e.text==='"')r=16,e=t.popToken();else if(e.text==="`")if(e=t.popToken(),e.text[0]==="\\")n=e.text.charCodeAt(1);else{if(e.text==="EOF")throw new B("\\char` missing argument");n=e.text.charCodeAt(0)}else r=10;if(r){if(n=Lo[e.text],n==null||n>=r)throw new B("Invalid base-"+r+" digit "+e.text);for(var a;(a=Lo[t.future().text])!=null&&a<r;)n*=r,n+=a,t.popToken()}return"\\@char{"+n+"}"});var Zi=(t,e,r,n)=>{var a=t.consumeArg().tokens;if(a.length!==1)throw new B("\\newcommand's first argument must be a macro name");var i=a[0].text,s=t.isDefined(i);if(s&&!e)throw new B("\\newcommand{"+i+"} attempting to redefine "+(i+"; use \\renewcommand"));if(!s&&!r)throw new B("\\renewcommand{"+i+"} when command "+i+" does not yet exist; use \\newcommand");var o=0;if(a=t.consumeArg().tokens,a.length===1&&a[0].text==="["){for(var c="",d=t.expandNextToken();d.text!=="]"&&d.text!=="EOF";)c+=d.text,d=t.expandNextToken();if(!c.match(/^\s*[0-9]+\s*$/))throw new B("Invalid number of arguments: "+c);o=parseInt(c),a=t.consumeArg().tokens}return s&&n||t.macros.set(i,{tokens:a,numArgs:o}),""};m("\\newcommand",t=>Zi(t,!1,!0,!1));m("\\renewcommand",t=>Zi(t,!0,!1,!1));m("\\providecommand",t=>Zi(t,!0,!0,!0));m("\\message",t=>{var e=t.consumeArgs(1)[0];return console.log(e.reverse().map(r=>r.text).join("")),""});m("\\errmessage",t=>{var e=t.consumeArgs(1)[0];return console.error(e.reverse().map(r=>r.text).join("")),""});m("\\show",t=>{var e=t.popToken(),r=e.text;return console.log(e,t.macros.get(r),sr[r],Te.math[r],Te.text[r]),""});m("\\bgroup","{");m("\\egroup","}");m("~","\\nobreakspace");m("\\lq","`");m("\\rq","'");m("\\aa","\\r a");m("\\AA","\\r A");m("\\textcopyright","\\html@mathml{\\textcircled{c}}{\\char`©}");m("\\copyright","\\TextOrMath{\\textcopyright}{\\text{\\textcopyright}}");m("\\textregistered","\\html@mathml{\\textcircled{\\scriptsize R}}{\\char`®}");m("ℬ","\\mathscr{B}");m("ℰ","\\mathscr{E}");m("ℱ","\\mathscr{F}");m("ℋ","\\mathscr{H}");m("ℐ","\\mathscr{I}");m("ℒ","\\mathscr{L}");m("ℳ","\\mathscr{M}");m("ℛ","\\mathscr{R}");m("ℭ","\\mathfrak{C}");m("ℌ","\\mathfrak{H}");m("ℨ","\\mathfrak{Z}");m("\\Bbbk","\\Bbb{k}");m("\\llap","\\mathllap{\\textrm{#1}}");m("\\rlap","\\mathrlap{\\textrm{#1}}");m("\\clap","\\mathclap{\\textrm{#1}}");m("\\mathstrut","\\vphantom{(}");m("\\underbar","\\underline{\\text{#1}}");m("\\not",'\\html@mathml{\\mathrel{\\mathrlap\\@not}\\nobreak}{\\char"338}');m("\\neq","\\html@mathml{\\mathrel{\\not=}}{\\mathrel{\\char`≠}}");m("\\ne","\\neq");m("≠","\\neq");m("\\notin","\\html@mathml{\\mathrel{{\\in}\\mathllap{/\\mskip1mu}}}{\\mathrel{\\char`∉}}");m("∉","\\notin");m("≘","\\html@mathml{\\mathrel{=\\kern{-1em}\\raisebox{0.4em}{$\\scriptsize\\frown$}}}{\\mathrel{\\char`≘}}");m("≙","\\html@mathml{\\stackrel{\\tiny\\wedge}{=}}{\\mathrel{\\char`≘}}");m("≚","\\html@mathml{\\stackrel{\\tiny\\vee}{=}}{\\mathrel{\\char`≚}}");m("≛","\\html@mathml{\\stackrel{\\scriptsize\\star}{=}}{\\mathrel{\\char`≛}}");m("≝","\\html@mathml{\\stackrel{\\tiny\\mathrm{def}}{=}}{\\mathrel{\\char`≝}}");m("≞","\\html@mathml{\\stackrel{\\tiny\\mathrm{m}}{=}}{\\mathrel{\\char`≞}}");m("≟","\\html@mathml{\\stackrel{\\tiny?}{=}}{\\mathrel{\\char`≟}}");m("⟂","\\perp");m("‼","\\mathclose{!\\mkern-0.8mu!}");m("∌","\\notni");m("⌜","\\ulcorner");m("⌝","\\urcorner");m("⌞","\\llcorner");m("⌟","\\lrcorner");m("©","\\copyright");m("®","\\textregistered");m("\\ulcorner",'\\html@mathml{\\@ulcorner}{\\mathop{\\char"231c}}');m("\\urcorner",'\\html@mathml{\\@urcorner}{\\mathop{\\char"231d}}');m("\\llcorner",'\\html@mathml{\\@llcorner}{\\mathop{\\char"231e}}');m("\\lrcorner",'\\html@mathml{\\@lrcorner}{\\mathop{\\char"231f}}');m("\\vdots","{\\varvdots\\rule{0pt}{15pt}}");m("⋮","\\vdots");m("\\varGamma","\\mathit{\\Gamma}");m("\\varDelta","\\mathit{\\Delta}");m("\\varTheta","\\mathit{\\Theta}");m("\\varLambda","\\mathit{\\Lambda}");m("\\varXi","\\mathit{\\Xi}");m("\\varPi","\\mathit{\\Pi}");m("\\varSigma","\\mathit{\\Sigma}");m("\\varUpsilon","\\mathit{\\Upsilon}");m("\\varPhi","\\mathit{\\Phi}");m("\\varPsi","\\mathit{\\Psi}");m("\\varOmega","\\mathit{\\Omega}");m("\\substack","\\begin{subarray}{c}#1\\end{subarray}");m("\\colon","\\nobreak\\mskip2mu\\mathpunct{}\\mathchoice{\\mkern-3mu}{\\mkern-3mu}{}{}{:}\\mskip6mu\\relax");m("\\boxed","\\fbox{$\\displaystyle{#1}$}");m("\\iff","\\DOTSB\\;\\Longleftrightarrow\\;");m("\\implies","\\DOTSB\\;\\Longrightarrow\\;");m("\\impliedby","\\DOTSB\\;\\Longleftarrow\\;");m("\\dddot","{\\overset{\\raisebox{-0.1ex}{\\normalsize ...}}{#1}}");m("\\ddddot","{\\overset{\\raisebox{-0.1ex}{\\normalsize ....}}{#1}}");var Po={",":"\\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"},xm=new Set(["bin","rel"]);m("\\dots",function(t){var e="\\dotso",r=t.expandAfterFuture().text;return r in Po?e=Po[r]:(r.slice(0,4)==="\\not"||r in Te.math&&xm.has(Te.math[r].group))&&(e="\\dotsb"),e});var Qi={")":!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};m("\\dotso",function(t){var e=t.future().text;return e in Qi?"\\ldots\\,":"\\ldots"});m("\\dotsc",function(t){var e=t.future().text;return e in Qi&&e!==","?"\\ldots\\,":"\\ldots"});m("\\cdots",function(t){var e=t.future().text;return e in Qi?"\\@cdots\\,":"\\@cdots"});m("\\dotsb","\\cdots");m("\\dotsm","\\cdots");m("\\dotsi","\\!\\cdots");m("\\dotsx","\\ldots\\,");m("\\DOTSI","\\relax");m("\\DOTSB","\\relax");m("\\DOTSX","\\relax");m("\\tmspace","\\TextOrMath{\\kern#1#3}{\\mskip#1#2}\\relax");m("\\,","\\tmspace+{3mu}{.1667em}");m("\\thinspace","\\,");m("\\>","\\mskip{4mu}");m("\\:","\\tmspace+{4mu}{.2222em}");m("\\medspace","\\:");m("\\;","\\tmspace+{5mu}{.2777em}");m("\\thickspace","\\;");m("\\!","\\tmspace-{3mu}{.1667em}");m("\\negthinspace","\\!");m("\\negmedspace","\\tmspace-{4mu}{.2222em}");m("\\negthickspace","\\tmspace-{5mu}{.277em}");m("\\enspace","\\kern.5em ");m("\\enskip","\\hskip.5em\\relax");m("\\quad","\\hskip1em\\relax");m("\\qquad","\\hskip2em\\relax");m("\\tag","\\@ifstar\\tag@literal\\tag@paren");m("\\tag@paren","\\tag@literal{({#1})}");m("\\tag@literal",t=>{if(t.macros.get("\\df@tag"))throw new B("Multiple \\tag");return"\\gdef\\df@tag{\\text{#1}}"});m("\\bmod","\\mathchoice{\\mskip1mu}{\\mskip1mu}{\\mskip5mu}{\\mskip5mu}\\mathbin{\\rm mod}\\mathchoice{\\mskip1mu}{\\mskip1mu}{\\mskip5mu}{\\mskip5mu}");m("\\pod","\\allowbreak\\mathchoice{\\mkern18mu}{\\mkern8mu}{\\mkern8mu}{\\mkern8mu}(#1)");m("\\pmod","\\pod{{\\rm mod}\\mkern6mu#1}");m("\\mod","\\allowbreak\\mathchoice{\\mkern18mu}{\\mkern12mu}{\\mkern12mu}{\\mkern12mu}{\\rm mod}\\,\\,#1");m("\\newline","\\\\\\relax");m("\\TeX","\\textrm{\\html@mathml{T\\kern-.1667em\\raisebox{-.5ex}{E}\\kern-.125emX}{TeX}}");var Gc=H(Ut["Main-Regular"][84][1]-.7*Ut["Main-Regular"][65][1]);m("\\LaTeX","\\textrm{\\html@mathml{"+("L\\kern-.36em\\raisebox{"+Gc+"}{\\scriptstyle A}")+"\\kern-.15em\\TeX}{LaTeX}}");m("\\KaTeX","\\textrm{\\html@mathml{"+("K\\kern-.17em\\raisebox{"+Gc+"}{\\scriptstyle A}")+"\\kern-.15em\\TeX}{KaTeX}}");m("\\hspace","\\@ifstar\\@hspacer\\@hspace");m("\\@hspace","\\hskip #1\\relax");m("\\@hspacer","\\rule{0pt}{0pt}\\hskip #1\\relax");m("\\ordinarycolon",":");m("\\vcentcolon","\\mathrel{\\mathop\\ordinarycolon}");m("\\dblcolon",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-.9mu}\\vcentcolon}}{\\mathop{\\char"2237}}');m("\\coloneqq",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}=}}{\\mathop{\\char"2254}}');m("\\Coloneqq",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}=}}{\\mathop{\\char"2237\\char"3d}}');m("\\coloneq",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\mathrel{-}}}{\\mathop{\\char"3a\\char"2212}}');m("\\Coloneq",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\mathrel{-}}}{\\mathop{\\char"2237\\char"2212}}');m("\\eqqcolon",'\\html@mathml{\\mathrel{=\\mathrel{\\mkern-1.2mu}\\vcentcolon}}{\\mathop{\\char"2255}}');m("\\Eqqcolon",'\\html@mathml{\\mathrel{=\\mathrel{\\mkern-1.2mu}\\dblcolon}}{\\mathop{\\char"3d\\char"2237}}');m("\\eqcolon",'\\html@mathml{\\mathrel{\\mathrel{-}\\mathrel{\\mkern-1.2mu}\\vcentcolon}}{\\mathop{\\char"2239}}');m("\\Eqcolon",'\\html@mathml{\\mathrel{\\mathrel{-}\\mathrel{\\mkern-1.2mu}\\dblcolon}}{\\mathop{\\char"2212\\char"2237}}');m("\\colonapprox",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\approx}}{\\mathop{\\char"3a\\char"2248}}');m("\\Colonapprox",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\approx}}{\\mathop{\\char"2237\\char"2248}}');m("\\colonsim",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\sim}}{\\mathop{\\char"3a\\char"223c}}');m("\\Colonsim",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\sim}}{\\mathop{\\char"2237\\char"223c}}');m("∷","\\dblcolon");m("∹","\\eqcolon");m("≔","\\coloneqq");m("≕","\\eqqcolon");m("⩴","\\Coloneqq");m("\\ratio","\\vcentcolon");m("\\coloncolon","\\dblcolon");m("\\colonequals","\\coloneqq");m("\\coloncolonequals","\\Coloneqq");m("\\equalscolon","\\eqqcolon");m("\\equalscoloncolon","\\Eqqcolon");m("\\colonminus","\\coloneq");m("\\coloncolonminus","\\Coloneq");m("\\minuscolon","\\eqcolon");m("\\minuscoloncolon","\\Eqcolon");m("\\coloncolonapprox","\\Colonapprox");m("\\coloncolonsim","\\Colonsim");m("\\simcolon","\\mathrel{\\sim\\mathrel{\\mkern-1.2mu}\\vcentcolon}");m("\\simcoloncolon","\\mathrel{\\sim\\mathrel{\\mkern-1.2mu}\\dblcolon}");m("\\approxcolon","\\mathrel{\\approx\\mathrel{\\mkern-1.2mu}\\vcentcolon}");m("\\approxcoloncolon","\\mathrel{\\approx\\mathrel{\\mkern-1.2mu}\\dblcolon}");m("\\notni","\\html@mathml{\\not\\ni}{\\mathrel{\\char`∌}}");m("\\limsup","\\DOTSB\\operatorname*{lim\\,sup}");m("\\liminf","\\DOTSB\\operatorname*{lim\\,inf}");m("\\injlim","\\DOTSB\\operatorname*{inj\\,lim}");m("\\projlim","\\DOTSB\\operatorname*{proj\\,lim}");m("\\varlimsup","\\DOTSB\\operatorname*{\\overline{lim}}");m("\\varliminf","\\DOTSB\\operatorname*{\\underline{lim}}");m("\\varinjlim","\\DOTSB\\operatorname*{\\underrightarrow{lim}}");m("\\varprojlim","\\DOTSB\\operatorname*{\\underleftarrow{lim}}");m("\\gvertneqq","\\html@mathml{\\@gvertneqq}{≩}");m("\\lvertneqq","\\html@mathml{\\@lvertneqq}{≨}");m("\\ngeqq","\\html@mathml{\\@ngeqq}{≱}");m("\\ngeqslant","\\html@mathml{\\@ngeqslant}{≱}");m("\\nleqq","\\html@mathml{\\@nleqq}{≰}");m("\\nleqslant","\\html@mathml{\\@nleqslant}{≰}");m("\\nshortmid","\\html@mathml{\\@nshortmid}{∤}");m("\\nshortparallel","\\html@mathml{\\@nshortparallel}{∦}");m("\\nsubseteqq","\\html@mathml{\\@nsubseteqq}{⊈}");m("\\nsupseteqq","\\html@mathml{\\@nsupseteqq}{⊉}");m("\\varsubsetneq","\\html@mathml{\\@varsubsetneq}{⊊}");m("\\varsubsetneqq","\\html@mathml{\\@varsubsetneqq}{⫋}");m("\\varsupsetneq","\\html@mathml{\\@varsupsetneq}{⊋}");m("\\varsupsetneqq","\\html@mathml{\\@varsupsetneqq}{⫌}");m("\\imath","\\html@mathml{\\@imath}{ı}");m("\\jmath","\\html@mathml{\\@jmath}{ȷ}");m("\\llbracket","\\html@mathml{\\mathopen{[\\mkern-3.2mu[}}{\\mathopen{\\char`⟦}}");m("\\rrbracket","\\html@mathml{\\mathclose{]\\mkern-3.2mu]}}{\\mathclose{\\char`⟧}}");m("⟦","\\llbracket");m("⟧","\\rrbracket");m("\\lBrace","\\html@mathml{\\mathopen{\\{\\mkern-3.2mu[}}{\\mathopen{\\char`⦃}}");m("\\rBrace","\\html@mathml{\\mathclose{]\\mkern-3.2mu\\}}}{\\mathclose{\\char`⦄}}");m("↤","\\mapsfrom");m("\\mapsfrom","\\html@mathml{\\mathrel{\\mathreflectbox{\\mapsto}}}{\\mathrel{\\char`↤}}");m("⦃","\\lBrace");m("⦄","\\rBrace");m("\\minuso","\\mathbin{\\html@mathml{{\\mathrlap{\\mathchoice{\\kern{0.145em}}{\\kern{0.145em}}{\\kern{0.1015em}}{\\kern{0.0725em}}\\circ}{-}}}{\\char`⦵}}");m("⦵","\\minuso");m("\\darr","\\downarrow");m("\\dArr","\\Downarrow");m("\\Darr","\\Downarrow");m("\\lang","\\langle");m("\\rang","\\rangle");m("\\uarr","\\uparrow");m("\\uArr","\\Uparrow");m("\\Uarr","\\Uparrow");m("\\N","\\mathbb{N}");m("\\R","\\mathbb{R}");m("\\Z","\\mathbb{Z}");m("\\alef","\\aleph");m("\\alefsym","\\aleph");m("\\Alpha","\\mathrm{A}");m("\\Beta","\\mathrm{B}");m("\\bull","\\bullet");m("\\Chi","\\mathrm{X}");m("\\clubs","\\clubsuit");m("\\cnums","\\mathbb{C}");m("\\Complex","\\mathbb{C}");m("\\Dagger","\\ddagger");m("\\diamonds","\\diamondsuit");m("\\empty","\\emptyset");m("\\Epsilon","\\mathrm{E}");m("\\Eta","\\mathrm{H}");m("\\exist","\\exists");m("\\harr","\\leftrightarrow");m("\\hArr","\\Leftrightarrow");m("\\Harr","\\Leftrightarrow");m("\\hearts","\\heartsuit");m("\\image","\\Im");m("\\infin","\\infty");m("\\Iota","\\mathrm{I}");m("\\isin","\\in");m("\\Kappa","\\mathrm{K}");m("\\larr","\\leftarrow");m("\\lArr","\\Leftarrow");m("\\Larr","\\Leftarrow");m("\\lrarr","\\leftrightarrow");m("\\lrArr","\\Leftrightarrow");m("\\Lrarr","\\Leftrightarrow");m("\\Mu","\\mathrm{M}");m("\\natnums","\\mathbb{N}");m("\\Nu","\\mathrm{N}");m("\\Omicron","\\mathrm{O}");m("\\plusmn","\\pm");m("\\rarr","\\rightarrow");m("\\rArr","\\Rightarrow");m("\\Rarr","\\Rightarrow");m("\\real","\\Re");m("\\reals","\\mathbb{R}");m("\\Reals","\\mathbb{R}");m("\\Rho","\\mathrm{P}");m("\\sdot","\\cdot");m("\\sect","\\S");m("\\spades","\\spadesuit");m("\\sub","\\subset");m("\\sube","\\subseteq");m("\\supe","\\supseteq");m("\\Tau","\\mathrm{T}");m("\\thetasym","\\vartheta");m("\\weierp","\\wp");m("\\Zeta","\\mathrm{Z}");m("\\argmin","\\DOTSB\\operatorname*{arg\\,min}");m("\\argmax","\\DOTSB\\operatorname*{arg\\,max}");m("\\plim","\\DOTSB\\mathop{\\operatorname{plim}}\\limits");m("\\bra","\\mathinner{\\langle{#1}|}");m("\\ket","\\mathinner{|{#1}\\rangle}");m("\\braket","\\mathinner{\\langle{#1}\\rangle}");m("\\Bra","\\left\\langle#1\\right|");m("\\Ket","\\left|#1\\right\\rangle");var jc=t=>e=>{var r=e.consumeArg().tokens,n=e.consumeArg().tokens,a=e.consumeArg().tokens,i=e.consumeArg().tokens,s=e.macros.get("|"),o=e.macros.get("\\|");e.macros.beginGroup();var c=g=>v=>{t&&(v.macros.set("|",s),a.length&&v.macros.set("\\|",o));var w=g;if(!g&&a.length){var A=v.future();A.text==="|"&&(v.popToken(),w=!0)}return{tokens:w?a:n,numArgs:0}};e.macros.set("|",c(!1)),a.length&&e.macros.set("\\|",c(!0));var d=e.consumeArg().tokens,p=e.expandTokens([...i,...d,...r]);return e.macros.endGroup(),{tokens:p.reverse(),numArgs:0}};m("\\bra@ket",jc(!1));m("\\bra@set",jc(!0));m("\\Braket","\\bra@ket{\\left\\langle}{\\,\\middle\\vert\\,}{\\,\\middle\\vert\\,}{\\right\\rangle}");m("\\Set","\\bra@set{\\left\\{\\:}{\\;\\middle\\vert\\;}{\\;\\middle\\Vert\\;}{\\:\\right\\}}");m("\\set","\\bra@set{\\{\\,}{\\mid}{}{\\,\\}}");m("\\angln","{\\angl n}");m("\\blue","\\textcolor{##6495ed}{#1}");m("\\orange","\\textcolor{##ffa500}{#1}");m("\\pink","\\textcolor{##ff00af}{#1}");m("\\red","\\textcolor{##df0030}{#1}");m("\\green","\\textcolor{##28ae7b}{#1}");m("\\gray","\\textcolor{gray}{#1}");m("\\purple","\\textcolor{##9d38bd}{#1}");m("\\blueA","\\textcolor{##ccfaff}{#1}");m("\\blueB","\\textcolor{##80f6ff}{#1}");m("\\blueC","\\textcolor{##63d9ea}{#1}");m("\\blueD","\\textcolor{##11accd}{#1}");m("\\blueE","\\textcolor{##0c7f99}{#1}");m("\\tealA","\\textcolor{##94fff5}{#1}");m("\\tealB","\\textcolor{##26edd5}{#1}");m("\\tealC","\\textcolor{##01d1c1}{#1}");m("\\tealD","\\textcolor{##01a995}{#1}");m("\\tealE","\\textcolor{##208170}{#1}");m("\\greenA","\\textcolor{##b6ffb0}{#1}");m("\\greenB","\\textcolor{##8af281}{#1}");m("\\greenC","\\textcolor{##74cf70}{#1}");m("\\greenD","\\textcolor{##1fab54}{#1}");m("\\greenE","\\textcolor{##0d923f}{#1}");m("\\goldA","\\textcolor{##ffd0a9}{#1}");m("\\goldB","\\textcolor{##ffbb71}{#1}");m("\\goldC","\\textcolor{##ff9c39}{#1}");m("\\goldD","\\textcolor{##e07d10}{#1}");m("\\goldE","\\textcolor{##a75a05}{#1}");m("\\redA","\\textcolor{##fca9a9}{#1}");m("\\redB","\\textcolor{##ff8482}{#1}");m("\\redC","\\textcolor{##f9685d}{#1}");m("\\redD","\\textcolor{##e84d39}{#1}");m("\\redE","\\textcolor{##bc2612}{#1}");m("\\maroonA","\\textcolor{##ffbde0}{#1}");m("\\maroonB","\\textcolor{##ff92c6}{#1}");m("\\maroonC","\\textcolor{##ed5fa6}{#1}");m("\\maroonD","\\textcolor{##ca337c}{#1}");m("\\maroonE","\\textcolor{##9e034e}{#1}");m("\\purpleA","\\textcolor{##ddd7ff}{#1}");m("\\purpleB","\\textcolor{##c6b9fc}{#1}");m("\\purpleC","\\textcolor{##aa87ff}{#1}");m("\\purpleD","\\textcolor{##7854ab}{#1}");m("\\purpleE","\\textcolor{##543b78}{#1}");m("\\mintA","\\textcolor{##f5f9e8}{#1}");m("\\mintB","\\textcolor{##edf2df}{#1}");m("\\mintC","\\textcolor{##e0e5cc}{#1}");m("\\grayA","\\textcolor{##f6f7f7}{#1}");m("\\grayB","\\textcolor{##f0f1f2}{#1}");m("\\grayC","\\textcolor{##e3e5e6}{#1}");m("\\grayD","\\textcolor{##d6d8da}{#1}");m("\\grayE","\\textcolor{##babec2}{#1}");m("\\grayF","\\textcolor{##888d93}{#1}");m("\\grayG","\\textcolor{##626569}{#1}");m("\\grayH","\\textcolor{##3b3e40}{#1}");m("\\grayI","\\textcolor{##21242c}{#1}");m("\\kaBlue","\\textcolor{##314453}{#1}");m("\\kaGreen","\\textcolor{##71B307}{#1}");var Vc={"^":!0,_:!0,"\\limits":!0,"\\nolimits":!0};class Sm{constructor(e,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(e),this.macros=new wm(km,r.macros),this.mode=n,this.stack=[]}feed(e){this.lexer=new _o(e,this.settings)}switchMode(e){this.mode=e}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(e){this.stack.push(e)}pushTokens(e){this.stack.push(...e)}scanArgument(e){var r,n,a;if(e){if(this.consumeSpaces(),this.future().text!=="[")return null;r=this.popToken();var i=this.consumeArg(["]"]);a=i.tokens,n=i.end}else{var s=this.consumeArg();a=s.tokens,r=s.start,n=s.end}return this.pushToken(new vt("EOF",n.loc)),this.pushTokens(a),new vt("",pt.range(r,n))}consumeSpaces(){for(;;){var e=this.future();if(e.text===" ")this.stack.pop();else break}}consumeArg(e){var r=[],n=e&&e.length>0;n||this.consumeSpaces();var a=this.future(),i,s=0,o=0;do{if(i=this.popToken(),r.push(i),i.text==="{")++s;else if(i.text==="}"){if(--s,s===-1)throw new B("Extra }",i)}else if(i.text==="EOF")throw new B("Unexpected end of input in a macro argument, expected '"+(e&&n?e[o]:"}")+"'",i);if(e&&n)if((s===0||s===1&&e[o]==="{")&&i.text===e[o]){if(++o,o===e.length){r.splice(-o,o);break}}else o=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(e,r){if(r){if(r.length!==e+1)throw new B("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 B("Use of the macro doesn't match its definition",i)}}for(var s=[],o=0;o<e;o++)s.push(this.consumeArg(r&&r[o+1]).tokens);return s}countExpansion(e){if(this.expansionCount+=e,this.expansionCount>this.settings.maxExpand)throw new B("Too many expansions: infinite loop or need to increase maxExpand setting")}expandOnce(e){var r=this.popToken(),n=r.text,a=r.noexpand?null:this._getExpansion(n);if(a==null||e&&a.unexpandable){if(e&&a==null&&n[0]==="\\"&&!this.isDefined(n))throw new B("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 o=i.length-1;o>=0;--o){var c=i[o];if(c.text==="#"){if(o===0)throw new B("Incomplete placeholder at end of macro body",c);if(c=i[--o],c.text==="#")i.splice(o+1,1);else if(/^[1-9]$/.test(c.text))i.splice(o,2,...s[+c.text-1]);else throw new B("Not a valid argument number",c)}}}return this.pushTokens(i),i.length}expandAfterFuture(){return this.expandOnce(),this.future()}expandNextToken(){for(;;)if(this.expandOnce()===!1){var e=this.stack.pop();return e.treatAsRelax&&(e.text="\\relax"),e}}expandMacro(e){return this.macros.has(e)?this.expandTokens([new vt(e)]):void 0}expandTokens(e){var r=[],n=this.stack.length;for(this.pushTokens(e);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(e){var r=this.expandMacro(e);return r&&r.map(n=>n.text).join("")}_getExpansion(e){var r=this.macros.get(e);if(r==null)return r;if(e.length===1){var n=this.lexer.catcodes[e];if(n!=null&&n!==13)return}var a=typeof r=="function"?r(this):r;if(typeof a=="string"){var i=0;if(a.includes("#"))for(var s=a.replace(/##/g,"");s.includes("#"+(i+1));)++i;for(var o=new _o(a,this.settings),c=[],d=o.lex();d.text!=="EOF";)c.push(d),d=o.lex();c.reverse();var p={tokens:c,numArgs:i};return p}return a}isDefined(e){return this.macros.has(e)||Object.prototype.hasOwnProperty.call(sr,e)||Object.prototype.hasOwnProperty.call(Te.math,e)||Object.prototype.hasOwnProperty.call(Te.text,e)||Object.prototype.hasOwnProperty.call(Vc,e)}isExpandable(e){var r=this.macros.get(e);return r!=null?typeof r=="string"||typeof r=="function"||!r.unexpandable:Object.prototype.hasOwnProperty.call(sr,e)&&!sr[e].primitive}}var Oo=/^[₊₋₌₍₎₀₁₂₃₄₅₆₇₈₉ₐₑₕᵢⱼₖₗₘₙₒₚᵣₛₜᵤᵥₓᵦᵧᵨᵩᵪ]/,Mn=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","ᵝ":"β","ᵞ":"γ","ᵟ":"δ","ᵠ":"ϕ","ᵡ":"χ","ᶿ":"θ"}),Oa={"́":{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"}},$o={á:"á",à:"à",ä:"ä",ǟ:"ǟ",ã:"ã",ā:"ā",ă:"ă",ắ:"ắ",ằ:"ằ",ẵ:"ẵ",ǎ:"ǎ",â:"â",ấ:"ấ",ầ:"ầ",ẫ:"ẫ",ȧ:"ȧ",ǡ:"ǡ",å:"å",ǻ:"ǻ",ḃ:"ḃ",ć:"ć",ḉ:"ḉ",č:"č",ĉ:"ĉ",ċ:"ċ",ç:"ç",ď:"ď",ḋ:"ḋ",ḑ:"ḑ",é:"é",è:"è",ë:"ë",ẽ:"ẽ",ē:"ē",ḗ:"ḗ",ḕ:"ḕ",ĕ:"ĕ",ḝ:"ḝ",ě:"ě",ê:"ê",ế:"ế",ề:"ề",ễ:"ễ",ė:"ė",ȩ:"ȩ",ḟ:"ḟ",ǵ:"ǵ",ḡ:"ḡ",ğ:"ğ",ǧ:"ǧ",ĝ:"ĝ",ġ:"ġ",ģ:"ģ",ḧ:"ḧ",ȟ:"ȟ",ĥ:"ĥ",ḣ:"ḣ",ḩ:"ḩ",í:"í",ì:"ì",ï:"ï",ḯ:"ḯ",ĩ:"ĩ",ī:"ī",ĭ:"ĭ",ǐ:"ǐ",î:"î",ǰ:"ǰ",ĵ:"ĵ",ḱ:"ḱ",ǩ:"ǩ",ķ:"ķ",ĺ:"ĺ",ľ:"ľ",ļ:"ļ",ḿ:"ḿ",ṁ:"ṁ",ń:"ń",ǹ:"ǹ",ñ:"ñ",ň:"ň",ṅ:"ṅ",ņ:"ņ",ó:"ó",ò:"ò",ö:"ö",ȫ:"ȫ",õ:"õ",ṍ:"ṍ",ṏ:"ṏ",ȭ:"ȭ",ō:"ō",ṓ:"ṓ",ṑ:"ṑ",ŏ:"ŏ",ǒ:"ǒ",ô:"ô",ố:"ố",ồ:"ồ",ỗ:"ỗ",ȯ:"ȯ",ȱ:"ȱ",ő:"ő",ṕ:"ṕ",ṗ:"ṗ",ŕ:"ŕ",ř:"ř",ṙ:"ṙ",ŗ:"ŗ",ś:"ś",ṥ:"ṥ",š:"š",ṧ:"ṧ",ŝ:"ŝ",ṡ:"ṡ",ş:"ş",ẗ:"ẗ",ť:"ť",ṫ:"ṫ",ţ:"ţ",ú:"ú",ù:"ù",ü:"ü",ǘ:"ǘ",ǜ:"ǜ",ǖ:"ǖ",ǚ:"ǚ",ũ:"ũ",ṹ:"ṹ",ū:"ū",ṻ:"ṻ",ŭ:"ŭ",ǔ:"ǔ",û:"û",ů:"ů",ű:"ű",ṽ:"ṽ",ẃ:"ẃ",ẁ:"ẁ",ẅ:"ẅ",ŵ:"ŵ",ẇ:"ẇ",ẘ:"ẘ",ẍ:"ẍ",ẋ:"ẋ",ý:"ý",ỳ:"ỳ",ÿ:"ÿ",ỹ:"ỹ",ȳ:"ȳ",ŷ:"ŷ",ẏ:"ẏ",ẙ:"ẙ",ź:"ź",ž:"ž",ẑ:"ẑ",ż:"ż",Á:"Á",À:"À",Ä:"Ä",Ǟ:"Ǟ",Ã:"Ã",Ā:"Ā",Ă:"Ă",Ắ:"Ắ",Ằ:"Ằ",Ẵ:"Ẵ",Ǎ:"Ǎ",Â:"Â",Ấ:"Ấ",Ầ:"Ầ",Ẫ:"Ẫ",Ȧ:"Ȧ",Ǡ:"Ǡ",Å:"Å",Ǻ:"Ǻ",Ḃ:"Ḃ",Ć:"Ć",Ḉ:"Ḉ",Č:"Č",Ĉ:"Ĉ",Ċ:"Ċ",Ç:"Ç",Ď:"Ď",Ḋ:"Ḋ",Ḑ:"Ḑ",É:"É",È:"È",Ë:"Ë",Ẽ:"Ẽ",Ē:"Ē",Ḗ:"Ḗ",Ḕ:"Ḕ",Ĕ:"Ĕ",Ḝ:"Ḝ",Ě:"Ě",Ê:"Ê",Ế:"Ế",Ề:"Ề",Ễ:"Ễ",Ė:"Ė",Ȩ:"Ȩ",Ḟ:"Ḟ",Ǵ:"Ǵ",Ḡ:"Ḡ",Ğ:"Ğ",Ǧ:"Ǧ",Ĝ:"Ĝ",Ġ:"Ġ",Ģ:"Ģ",Ḧ:"Ḧ",Ȟ:"Ȟ",Ĥ:"Ĥ",Ḣ:"Ḣ",Ḩ:"Ḩ",Í:"Í",Ì:"Ì",Ï:"Ï",Ḯ:"Ḯ",Ĩ:"Ĩ",Ī:"Ī",Ĭ:"Ĭ",Ǐ:"Ǐ",Î:"Î",İ:"İ",Ĵ:"Ĵ",Ḱ:"Ḱ",Ǩ:"Ǩ",Ķ:"Ķ",Ĺ:"Ĺ",Ľ:"Ľ",Ļ:"Ļ",Ḿ:"Ḿ",Ṁ:"Ṁ",Ń:"Ń",Ǹ:"Ǹ",Ñ:"Ñ",Ň:"Ň",Ṅ:"Ṅ",Ņ:"Ņ",Ó:"Ó",Ò:"Ò",Ö:"Ö",Ȫ:"Ȫ",Õ:"Õ",Ṍ:"Ṍ",Ṏ:"Ṏ",Ȭ:"Ȭ",Ō:"Ō",Ṓ:"Ṓ",Ṑ:"Ṑ",Ŏ:"Ŏ",Ǒ:"Ǒ",Ô:"Ô",Ố:"Ố",Ồ:"Ồ",Ỗ:"Ỗ",Ȯ:"Ȯ",Ȱ:"Ȱ",Ő:"Ő",Ṕ:"Ṕ",Ṗ:"Ṗ",Ŕ:"Ŕ",Ř:"Ř",Ṙ:"Ṙ",Ŗ:"Ŗ",Ś:"Ś",Ṥ:"Ṥ",Š:"Š",Ṧ:"Ṧ",Ŝ:"Ŝ",Ṡ:"Ṡ",Ş:"Ş",Ť:"Ť",Ṫ:"Ṫ",Ţ:"Ţ",Ú:"Ú",Ù:"Ù",Ü:"Ü",Ǘ:"Ǘ",Ǜ:"Ǜ",Ǖ:"Ǖ",Ǚ:"Ǚ",Ũ:"Ũ",Ṹ:"Ṹ",Ū:"Ū",Ṻ:"Ṻ",Ŭ:"Ŭ",Ǔ:"Ǔ",Û:"Û",Ů:"Ů",Ű:"Ű",Ṽ:"Ṽ",Ẃ:"Ẃ",Ẁ:"Ẁ",Ẅ:"Ẅ",Ŵ:"Ŵ",Ẇ:"Ẇ",Ẍ:"Ẍ",Ẋ:"Ẋ",Ý:"Ý",Ỳ:"Ỳ",Ÿ:"Ÿ",Ỹ:"Ỹ",Ȳ:"Ȳ",Ŷ:"Ŷ",Ẏ:"Ẏ",Ź:"Ź",Ž:"Ž",Ẑ:"Ẑ",Ż:"Ż",ά:"ά",ὰ:"ὰ",ᾱ:"ᾱ",ᾰ:"ᾰ",έ:"έ",ὲ:"ὲ",ή:"ή",ὴ:"ὴ",ί:"ί",ὶ:"ὶ",ϊ:"ϊ",ΐ:"ΐ",ῒ:"ῒ",ῑ:"ῑ",ῐ:"ῐ",ό:"ό",ὸ:"ὸ",ύ:"ύ",ὺ:"ὺ",ϋ:"ϋ",ΰ:"ΰ",ῢ:"ῢ",ῡ:"ῡ",ῠ:"ῠ",ώ:"ώ",ὼ:"ὼ",Ύ:"Ύ",Ὺ:"Ὺ",Ϋ:"Ϋ",Ῡ:"Ῡ",Ῠ:"Ῠ",Ώ:"Ώ",Ὼ:"Ὼ"};class Qn{constructor(e,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 Sm(e,r,this.mode),this.settings=r,this.leftrightDepth=0,this.nextToken=null}expect(e,r){if(r===void 0&&(r=!0),this.fetch().text!==e)throw new B("Expected '"+e+"', 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(e){this.mode=e,this.gullet.switchMode(e)}parse(){this.settings.globalGroup||this.gullet.beginGroup(),this.settings.colorIsTextColor&&this.gullet.macros.set("\\color","\\textcolor");try{var e=this.parseExpression(!1);return this.expect("EOF"),this.settings.globalGroup||this.gullet.endGroup(),e}finally{this.gullet.endGroups()}}subparse(e){var r=this.nextToken;this.consume(),this.gullet.pushToken(new vt("}")),this.gullet.pushTokens(e);var n=this.parseExpression(!1);return this.expect("}"),this.nextToken=r,n}parseExpression(e,r){for(var n=[];;){this.mode==="math"&&this.consumeSpaces();var a=this.fetch();if(Qn.endOfExpression.has(a.text)||r&&a.text===r||e&&sr[a.text]&&sr[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(e){for(var r=-1,n,a=0;a<e.length;a++){var i=e[a];if(i.type==="infix"){if(r!==-1)throw new B("only one infix operator per group",i.token);r=a,n=i.replaceWith}}if(r!==-1&&n){var s,o,c=e.slice(0,r),d=e.slice(r+1);c.length===1&&c[0].type==="ordgroup"?s=c[0]:s={type:"ordgroup",mode:this.mode,body:c},d.length===1&&d[0].type==="ordgroup"?o=d[0]:o={type:"ordgroup",mode:this.mode,body:d};var p;return n==="\\\\abovefrac"?p=this.callFunction(n,[s,e[r],o],[]):p=this.callFunction(n,[s,o],[]),[p]}else return e}handleSupSubscript(e){var r=this.fetch(),n=r.text;this.consume(),this.consumeSpaces();var a;do{var i;a=this.parseGroup(e)}while(((i=a)==null?void 0:i.type)==="internal");if(!a)throw new B("Expected group after '"+n+"'",r);return a}formatUnsupportedCmd(e){for(var r=[],n=0;n<e.length;n++)r.push({type:"textord",mode:"text",text:e[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(e){var r=this.parseGroup("atom",e);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")r.limits=i.text==="\\limits",r.alwaysHandleSupSub=!0;else if(r&&r.type==="operatorname")r.alwaysHandleSupSub&&(r.limits=i.text==="\\limits");else throw new B("Limit controls must follow a math operator",i);this.consume()}else if(i.text==="^"){if(n)throw new B("Double superscript",i);n=this.handleSupSubscript("superscript")}else if(i.text==="_"){if(a)throw new B("Double subscript",i);a=this.handleSupSubscript("subscript")}else if(i.text==="'"){if(n)throw new B("Double superscript",i);var s={type:"textord",mode:this.mode,text:"\\prime"},o=[s];for(this.consume();this.fetch().text==="'";)o.push(s),this.consume();this.fetch().text==="^"&&o.push(this.handleSupSubscript("superscript")),n={type:"ordgroup",mode:this.mode,body:o}}else if(Mn[i.text]){var c=Oo.test(i.text),d=[];for(d.push(new vt(Mn[i.text])),this.consume();;){var p=this.fetch().text;if(!Mn[p]||Oo.test(p)!==c)break;d.unshift(new vt(Mn[p])),this.consume()}var g=this.subparse(d);c?a={type:"ordgroup",mode:"math",body:g}:n={type:"ordgroup",mode:"math",body:g}}else break}return n&&a?{type:"supsub",mode:this.mode,base:r,sup:n,sub:a}:n?{type:"supsub",mode:this.mode,base:r,sup:n}:a?{type:"supsub",mode:this.mode,base:r,sub:a}:r}parseFunction(e,r){var n=this.fetch(),a=n.text,i=sr[a];if(!i)return null;if(this.consume(),r&&r!=="atom"&&!i.allowedInArgument)throw new B("Got function '"+a+"' with no arguments"+(r?" as "+r:""),n);if(this.mode==="text"&&!i.allowedInText)throw new B("Can't use function '"+a+"' in text mode",n);if(this.mode==="math"&&i.allowedInMath===!1)throw new B("Can't use function '"+a+"' in math mode",n);var s=this.parseArguments(a,i),o=s.args,c=s.optArgs;return this.callFunction(a,o,c,n,e)}callFunction(e,r,n,a,i){var s={funcName:e,parser:this,token:a,breakOnTokenText:i},o=sr[e];if(o&&o.handler)return o.handler(s,r,n);throw new B("No function handler for "+e)}parseArguments(e,r){var n,a=(n=r.numOptionalArgs)!=null?n:0,i=r.numArgs+a;if(i===0)return{args:[],optArgs:[]};for(var s=[],o=[],c=0;c<i;c++){var d,p=(d=r.argTypes)==null?void 0:d[c],g=c<a;("primitive"in r&&r.primitive&&p==null||r.type==="sqrt"&&c===1&&o[0]==null)&&(p="primitive");var v=this.parseGroupOfType("argument to '"+e+"'",p,g);if(g)o.push(v);else if(v!=null)s.push(v);else throw new B("Null argument, please report this as a bug")}return{args:s,optArgs:o}}parseGroupOfType(e,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",resetFont:!0}:null}case"raw":{this.gullet.consumeSpaces();var i=this.gullet.lexer.catcodes["%"];this.gullet.lexer.setCatcode("%",12);var s=this.parseStringGroup(n);return this.gullet.lexer.setCatcode("%",i),s!=null?{type:"raw",mode:"text",string:s.text}:null}case"primitive":{if(n)throw new B("A primitive argument cannot be optional");var o=this.parseGroup(e);if(o==null)throw new B("Expected group as "+e,this.fetch());return o}case"original":case void 0:return this.parseArgumentGroup(n);default:throw new B("Unknown group type as "+e,this.fetch())}}consumeSpaces(){for(;this.fetch().text===" ";)this.consume()}parseStringGroup(e){var r=this.gullet.scanArgument(e);if(r==null)return null;for(var n="",a;(a=this.fetch()).text!=="EOF";)n+=a.text,this.consume();return this.consume(),r.text=n,r}parseRegexGroup(e,r){for(var n=this.fetch(),a=n,i="",s;(s=this.fetch()).text!=="EOF"&&e.test(i+s.text);)a=s,i+=a.text,this.consume();if(i==="")throw new B("Invalid "+r+": '"+n.text+"'",n);return n.range(a,i)}parseColorGroup(e){var r=this.parseStringGroup(e);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 B("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(e){var r,n=!1;if(this.gullet.consumeSpaces(),!e&&this.gullet.future().text!=="{"?r=this.parseRegexGroup(/^[-+]? *(?:$|\d+|\d+\.\d*|\.\d*) *[a-z]{0,2} *$/,"size"):r=this.parseStringGroup(e),!r)return null;!e&&r.text.length===0&&(r.text="0pt",n=!0);var a=/([-+]?) *(\d+(?:\.\d*)?|\.\d+) *([a-z]{2})/.exec(r.text);if(!a)throw new B("Invalid size: '"+r.text+"'",r);var i={number:+(a[1]+a[2]),unit:a[3]};if(!oc(i))throw new B("Invalid unit: '"+i.unit+"'",r);return{type:"size",mode:this.mode,value:i,isBlank:n}}parseUrlGroup(e){var r=this.gullet.lexer.catcodes["%"],n=this.gullet.lexer.catcodes["~"];this.gullet.lexer.setCatcode("%",13),this.gullet.lexer.setCatcode("~",12);var a=this.parseStringGroup(e);if(this.gullet.lexer.setCatcode("%",r),this.gullet.lexer.setCatcode("~",n),a==null)return null;var i=a.text.replace(/\\([#$%&~_^{}])/g,"$1");return{type:"url",mode:this.mode,url:i}}parseArgumentGroup(e,r){var n=this.gullet.scanArgument(e);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(e,r){var n=this.fetch(),a=n.text,i;if(a==="{"||a==="\\begingroup"){this.consume();var s=a==="{"?"}":"\\endgroup";this.gullet.beginGroup();var o=this.parseExpression(!1,s),c=this.fetch();this.expect(s),this.gullet.endGroup(),i={type:"ordgroup",mode:this.mode,loc:pt.range(n,c),body:o,semisimple:a==="\\begingroup"||void 0}}else if(i=this.parseFunction(r,e)||this.parseSymbol(),i==null&&a[0]==="\\"&&!Object.prototype.hasOwnProperty.call(Vc,a)){if(this.settings.throwOnError)throw new B("Undefined control sequence: "+a,n);i=this.formatUnsupportedCmd(a),this.consume()}return i}formLigatures(e){for(var r=e.length-1,n=0;n<r;++n){var a=e[n];if(a.type==="textord"){var i=a.text,s=e[n+1];if(!(!s||s.type!=="textord")){if(i==="-"&&s.text==="-"){var o=e[n+2];n+1<r&&o&&o.type==="textord"&&o.text==="-"?(e.splice(n,3,{type:"textord",mode:"text",loc:pt.range(a,o),text:"---"}),r-=2):(e.splice(n,2,{type:"textord",mode:"text",loc:pt.range(a,s),text:"--"}),r-=1)}(i==="'"||i==="`")&&s.text===i&&(e.splice(n,2,{type:"textord",mode:"text",loc:pt.range(a,s),text:i+i}),r-=1)}}}}parseSymbol(){var e=this.fetch(),r=e.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 B(`\\verb assertion failed --
335
- please report what input caused this bug`);return n=n.slice(1,-1),{type:"verb",mode:"text",body:n,star:a}}Object.prototype.hasOwnProperty.call($o,r[0])&&!Te[this.mode][r[0]]&&(this.settings.strict&&this.mode==="math"&&mt({strict:this.settings.strict,errorCode:"unicodeTextInMathMode",errorMsg:'Accented Unicode text character "'+r[0]+'" used in math mode',report:!0,token:e}),r=$o[r[0]]+r.slice(1));var i=bm.exec(r);i&&(r=r.substring(0,i.index),r==="i"?r="ı":r==="j"&&(r="ȷ"));var s;if(Te[this.mode][r]){this.settings.strict&&this.mode==="math"&&ii.includes(r)&&mt({strict:this.settings.strict,errorCode:"unicodeTextInMathMode",errorMsg:'Latin-1/Unicode text character "'+r[0]+'" used in math mode',report:!0,token:e});var o=Te[this.mode][r].group,c=pt.range(e),d;Ip(o)?d={type:"atom",mode:this.mode,family:o,loc:c,text:r}:d={type:o,mode:this.mode,loc:c,text:r},s=d}else if(r.charCodeAt(0)>=128)this.settings.strict&&(sc(r.charCodeAt(0))?this.mode==="math"&&mt({strict:this.settings.strict,errorCode:"unicodeTextInMathMode",errorMsg:'Unicode text character "'+r[0]+'" used in math mode',report:!0,token:e}):mt({strict:this.settings.strict,errorCode:"unknownSymbol",errorMsg:'Unrecognized Unicode character "'+r[0]+'"'+(" ("+r.charCodeAt(0)+")"),report:!0,token:e})),s={type:"textord",mode:"text",loc:pt.range(e),text:r};else return null;if(this.consume(),i)for(var p=0;p<i[0].length;p++){var g=i[0][p];if(!Oa[g])throw new B("Unknown accent ' "+g+"'",e);var v=Oa[g][this.mode]||Oa[g].text;if(!v)throw new B("Accent "+g+" unsupported in "+this.mode+" mode",e);s={type:"accent",mode:this.mode,loc:pt.range(e),label:v,isStretchy:!1,isShifty:!0,base:s}}return s}}Qn.endOfExpression=new Set(["}","\\endgroup","\\end","\\right","&"]);var Am=function(e,r){if(!(typeof e=="string"||e instanceof String))throw new TypeError("KaTeX can only parse string typed expression");var n=new Qn(e,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 B("\\tag works only in display equations");a=[{type:"tag",mode:"text",body:a,tag:n.subparse([new vt("\\df@tag")])}]}return 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.");var Tm=function(e,r){var n=Mm(e,r).toMarkup();return n},Em=function(e,r,n){if(n.throwOnError||!(e instanceof B))throw e;var a=P(["katex-error"],[new Et(r)]);return a.setAttribute("title",e.toString()),a.setAttribute("style","color:"+n.errorColor),a},Mm=function(e,r){var n=new Ch(r);try{var a=Am(e,n);return wp(a,e,n)}catch(i){return Em(i,e,n)}};const Yc=4096,Cm=t=>t==="symbolNotInFont"?"ignore":"error";function Xc(t,e){return Tm(t,{displayMode:e,output:"htmlAndMathml",throwOnError:!1,strict:Cm,trust:!1,maxExpand:100,maxSize:20})}const Ji=/<!--\s*anchor:[^:]+:[^-]+\s*-->/g,Bo=/^<!--\s*anchor:[^:]+:end\s*-->$/;function Y0(t){return t.replace(Ji,"")}function Im(t){return t.startsWith("<!--")&&Y0(t)!==""}function Kc(t){return t.replace(/&/g,"&amp;").replace(/"/g,"&quot;").replace(/</g,"&lt;")}function qo(t){return Kc(t).replace(/>/g,"&gt;")}function Fo(t){let e="",r=0;for(const n of t.matchAll(Ji))e+=qo(t.slice(r,n.index))+n[0],r=n.index+n[0].length;return e+qo(t.slice(r))}function Ho(t,e){if(!e||t.literalOnly||t.text.length>Yc){const r=Fo(t.source);return t.displayMode?`<p>${r.replace(/\n/g,"<br>")}</p>
336
- `:r}try{const r=Xc(t.text,t.displayMode),n=t.displayMode?"div":"span",a=t.displayMode?"math-display":"math-inline",i=t.displayMode?`
337
- `:"",s=Array.from(t.source.matchAll(Ji),p=>p[0]),o=s.filter(p=>!Bo.test(p)).join(""),c=s.filter(p=>Bo.test(p)).join(""),d=Kc(Y0(t.source));return`${o}<${n} class="${a}" data-math-source="${d}">${r}</${n}>${c}${i}`}catch{return Fo(t.source)}}function zm(t){if(t.startsWith("$$"))return;const e=/^\$((?:\\.|[^\\$\n])+?)\$/.exec(t);if(!e)return;const r=Y0(e[1]);if(/^\s|\s$/.test(r)||/^[\d.,]+$/.test(r))return;const n=t[e[0].length];if(!(n&&/\d/.test(n)))return{type:"mathInline",raw:e[0],text:r,source:e[0],displayMode:!1,literalOnly:!r}}function Rm(t){const e=/^\$\$[^\n]*?\$\$/.exec(t)?.[0]??/^\\\[[^\n]*?\\\]/.exec(t)?.[0];if(e)return{type:"mathInline",raw:e,text:"",source:e,displayMode:!1,literalOnly:!0}}function Dm(t){const e=/^\\\(((?:\\.|[^\\\n])*?)\\\)/.exec(t);if(!e){const n=/^\\\([^\n]*/.exec(t)?.[0];return n?{type:"mathInline",raw:n,text:"",source:n,displayMode:!1,literalOnly:!0}:void 0}const r=Y0(e[1]);return{type:"mathInline",raw:e[0],text:r,source:e[0],displayMode:!1,literalOnly:!r.trim()}}function Zc(t){const e=/^( {0,3})\$\$[ \t]*([\s\S]*?)[ \t]*\$\$(?:[ \t]*(?:\n|$))/.exec(t),r=/^( {0,3})\\\[[ \t]*([\s\S]*?)[ \t]*\\\](?:[ \t]*(?:\n|$))/.exec(t),n=e??r;if(!n){const s=/^( {0,3})(?:\$\$|\\\[)[^\n]*(?:\n|$)/.exec(t);if(!s)return;const o=s[0].trimEnd().slice(s[1].length);return{type:"mathDisplay",raw:s[0],text:"",source:o,displayMode:!0,literalOnly:!0}}const a=n[0].trimEnd().slice(n[1].length),i=Y0(n[2]);return{type:"mathDisplay",raw:n[0],text:i,source:a,displayMode:!0,literalOnly:!i.trim()}}function Qc(t){return Rm(t)??zm(t)??Dm(t)}function Nm(t,e){const r=/\\.|\$/g,n=[];let a=0,i=-1,s=0,o;for(;o=r.exec(t);){const c=o.index,d=t.slice(c);if(c>i){const g=t.lastIndexOf(`
335
+ please report what input caused this bug`);return n=n.slice(1,-1),{type:"verb",mode:"text",body:n,star:a}}Object.prototype.hasOwnProperty.call($o,r[0])&&!Te[this.mode][r[0]]&&(this.settings.strict&&this.mode==="math"&&mt({strict:this.settings.strict,errorCode:"unicodeTextInMathMode",errorMsg:'Accented Unicode text character "'+r[0]+'" used in math mode',report:!0,token:e}),r=$o[r[0]]+r.slice(1));var i=bm.exec(r);i&&(r=r.substring(0,i.index),r==="i"?r="ı":r==="j"&&(r="ȷ"));var s;if(Te[this.mode][r]){this.settings.strict&&this.mode==="math"&&ii.includes(r)&&mt({strict:this.settings.strict,errorCode:"unicodeTextInMathMode",errorMsg:'Latin-1/Unicode text character "'+r[0]+'" used in math mode',report:!0,token:e});var o=Te[this.mode][r].group,c=pt.range(e),d;Ip(o)?d={type:"atom",mode:this.mode,family:o,loc:c,text:r}:d={type:o,mode:this.mode,loc:c,text:r},s=d}else if(r.charCodeAt(0)>=128)this.settings.strict&&(sc(r.charCodeAt(0))?this.mode==="math"&&mt({strict:this.settings.strict,errorCode:"unicodeTextInMathMode",errorMsg:'Unicode text character "'+r[0]+'" used in math mode',report:!0,token:e}):mt({strict:this.settings.strict,errorCode:"unknownSymbol",errorMsg:'Unrecognized Unicode character "'+r[0]+'"'+(" ("+r.charCodeAt(0)+")"),report:!0,token:e})),s={type:"textord",mode:"text",loc:pt.range(e),text:r};else return null;if(this.consume(),i)for(var p=0;p<i[0].length;p++){var g=i[0][p];if(!Oa[g])throw new B("Unknown accent ' "+g+"'",e);var v=Oa[g][this.mode]||Oa[g].text;if(!v)throw new B("Accent "+g+" unsupported in "+this.mode+" mode",e);s={type:"accent",mode:this.mode,loc:pt.range(e),label:v,isStretchy:!1,isShifty:!0,base:s}}return s}}Qn.endOfExpression=new Set(["}","\\endgroup","\\end","\\right","&"]);var Am=function(e,r){if(!(typeof e=="string"||e instanceof String))throw new TypeError("KaTeX can only parse string typed expression");var n=new Qn(e,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 B("\\tag works only in display equations");a=[{type:"tag",mode:"text",body:a,tag:n.subparse([new vt("\\df@tag")])}]}return 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.");var Tm=function(e,r){var n=Mm(e,r).toMarkup();return n},Em=function(e,r,n){if(n.throwOnError||!(e instanceof B))throw e;var a=P(["katex-error"],[new Et(r)]);return a.setAttribute("title",e.toString()),a.setAttribute("style","color:"+n.errorColor),a},Mm=function(e,r){var n=new Ch(r);try{var a=Am(e,n);return wp(a,e,n)}catch(i){return Em(i,e,n)}};const Xc=4096,Cm=t=>t==="symbolNotInFont"?"ignore":"error";function Yc(t,e){return Tm(t,{displayMode:e,output:"htmlAndMathml",throwOnError:!1,strict:Cm,trust:!1,maxExpand:100,maxSize:20})}const Ji=/<!--\s*anchor:[^:]+:[^-]+\s*-->/g,Bo=/^<!--\s*anchor:[^:]+:end\s*-->$/;function X0(t){return t.replace(Ji,"")}function Im(t){return t.startsWith("<!--")&&X0(t)!==""}function Kc(t){return t.replace(/&/g,"&amp;").replace(/"/g,"&quot;").replace(/</g,"&lt;")}function qo(t){return Kc(t).replace(/>/g,"&gt;")}function Fo(t){let e="",r=0;for(const n of t.matchAll(Ji))e+=qo(t.slice(r,n.index))+n[0],r=n.index+n[0].length;return e+qo(t.slice(r))}function Ho(t,e){if(!e||t.literalOnly||t.text.length>Xc){const r=Fo(t.source);return t.displayMode?`<p>${r.replace(/\n/g,"<br>")}</p>
336
+ `:r}try{const r=Yc(t.text,t.displayMode),n=t.displayMode?"div":"span",a=t.displayMode?"math-display":"math-inline",i=t.displayMode?`
337
+ `:"",s=Array.from(t.source.matchAll(Ji),p=>p[0]),o=s.filter(p=>!Bo.test(p)).join(""),c=s.filter(p=>Bo.test(p)).join(""),d=Kc(X0(t.source));return`${o}<${n} class="${a}" data-math-source="${d}">${r}</${n}>${c}${i}`}catch{return Fo(t.source)}}function zm(t){if(t.startsWith("$$"))return;const e=/^\$((?:\\.|[^\\$\n])+?)\$/.exec(t);if(!e)return;const r=X0(e[1]);if(/^\s|\s$/.test(r)||/^[\d.,]+$/.test(r))return;const n=t[e[0].length];if(!(n&&/\d/.test(n)))return{type:"mathInline",raw:e[0],text:r,source:e[0],displayMode:!1,literalOnly:!r}}function Rm(t){const e=/^\$\$[^\n]*?\$\$/.exec(t)?.[0]??/^\\\[[^\n]*?\\\]/.exec(t)?.[0];if(e)return{type:"mathInline",raw:e,text:"",source:e,displayMode:!1,literalOnly:!0}}function Dm(t){const e=/^\\\(((?:\\.|[^\\\n])*?)\\\)/.exec(t);if(!e){const n=/^\\\([^\n]*/.exec(t)?.[0];return n?{type:"mathInline",raw:n,text:"",source:n,displayMode:!1,literalOnly:!0}:void 0}const r=X0(e[1]);return{type:"mathInline",raw:e[0],text:r,source:e[0],displayMode:!1,literalOnly:!r.trim()}}function Zc(t){const e=/^( {0,3})\$\$[ \t]*([\s\S]*?)[ \t]*\$\$(?:[ \t]*(?:\n|$))/.exec(t),r=/^( {0,3})\\\[[ \t]*([\s\S]*?)[ \t]*\\\](?:[ \t]*(?:\n|$))/.exec(t),n=e??r;if(!n){const s=/^( {0,3})(?:\$\$|\\\[)[^\n]*(?:\n|$)/.exec(t);if(!s)return;const o=s[0].trimEnd().slice(s[1].length);return{type:"mathDisplay",raw:s[0],text:"",source:o,displayMode:!0,literalOnly:!0}}const a=n[0].trimEnd().slice(n[1].length),i=X0(n[2]);return{type:"mathDisplay",raw:n[0],text:i,source:a,displayMode:!0,literalOnly:!i.trim()}}function Qc(t){return Rm(t)??zm(t)??Dm(t)}function Nm(t,e){const r=/\\.|\$/g,n=[];let a=0,i=-1,s=0,o;for(;o=r.exec(t);){const c=o.index,d=t.slice(c);if(c>i){const g=t.lastIndexOf(`
338
338
  `,c-1)+1,v=t.indexOf(`
339
339
  `,c);i=v<0?t.length:v;const w=/^(?: {0,3}>[ \t]?)*(?: {0,3}(?:[-+*]|\d+[.)])[ \t]+)? {0,3}/.exec(t.slice(g))?.[0]??"";s=g+w.length}const p=(c===s?Zc(d):void 0)??Qc(d);p&&(n.push(t.slice(a,c),e(p.raw)),a=c+p.raw.length,r.lastIndex=a)}return n.push(t.slice(a)),n.join("")}function _m(t,e){t.use({extensions:[{name:"mathHtmlParagraph",level:"block",tokenizer(r){if(!/^(?: {0,3})(?:<!--|<br\s*\/?>|<\/?(?:sub|sup)>)/i.test(r))return;const{pedantic:n,gfm:a,extensions:i}=this.lexer.options,s=At.rules.block[n?"pedantic":a?"gfm":"normal"];let o=r.length;const c=r.slice(1),d=i?.startBlock??[];for(const A of d){const M=A.call(this,c);typeof M=="number"&&M>=0&&(o=Math.min(o,M+1))}let p=s.paragraph.exec(r.slice(0,o))?.[0];if(!p)return;const g=p.split(`
340
340
  `);let v=g[0].length+1;for(const A of g.slice(1)){if(d.some(M=>M.call(this,`${A}
@@ -357,8 +357,8 @@ ${n.items.map(c=>this.listitem(c)).join(`
357
357
  `:!1},listitem(n){if(n.task===!0){const a=n.checked;let i="";n.tokens&&n.tokens.length>0?i=this.parser.parse($a(n.tokens)):i=n.text||"";const{content:s,agentId:o}=Go(i);i=s,(!i||i.trim()===""||i.trim()==="<p></p>")&&(i="<p></p>");const c=a?"done":"todo",d=o?` data-delegated-agent-id="${o}"`:"";return`<li class="task-item flex items-start gap-2" data-type="taskItem" data-checked="${a}" data-status="${c}"${d}><label><input type="checkbox" disabled${a?" checked":""}><span></span></label><div>${i}</div></li>`}else{const a=n.text||"",i=n.raw||"",s=a.match(Wo);if(s){const d=s[1]!==" ";return`<li class="task-item flex items-start gap-2" data-type="taskItem" data-checked="${d}" data-status="${d?"done":"todo"}"><label><input type="checkbox" disabled${d?" checked":""}><span></span></label><div><p></p></div></li>`}const o=a.match(/^\[\/\]\s+(.*)$/)||i.match(/^-\s+\[\/\]\s+(.*)$/m);if(o){const d=o[1];let p="";if(n.tokens&&n.tokens.length>0){const A=[...n.tokens];if(A[0]&&A[0].type==="text"){const M=A[0].tokens?[...A[0].tokens]:[];M[0]&&M[0].type==="text"&&(M[0]={...M[0],text:M[0].text.replace(/^\[\/\]\s+/,""),raw:M[0].raw?.replace(/^\[\/\]\s+/,"")}),A[0]={...A[0],text:A[0].text.replace(/^\[\/\]\s+/,""),raw:A[0].raw?.replace(/^\[\/\]\s+/,""),tokens:M}}p=this.parser.parse($a(A))}else p=`<p>${d}</p>`;const{content:g,agentId:v}=Go(p);return p=g,(!p||p.trim()===""||p.trim()==="<p></p>")&&(p="<p></p>"),`<li class="task-item flex items-start gap-2" data-type="taskItem" data-checked="false" data-status="in-progress"${v?` data-delegated-agent-id="${v}"`:""}><label><input type="checkbox" disabled><span></span></label><div>${p}</div></li>`}let c="";if(n.tokens&&n.tokens.length>0)try{c=this.parser.parse($a(n.tokens))}catch{c=n.text||""}return`<li>${c}</li>`}}}}),e.use(bh),_m(e,t.renderMath===!0),gh(e),e};function Jc(t){const e=t.split(`
358
358
  `),r=[];for(const n of e){const a=/^(\s*)((?:<!--anchor:[^>]+-->\s*)+)(#{1,6}\s+|-\s+\[[x ]\]\s+|[-*]\s+|\d+\.\s+|>\s+|```)/,i=n.match(a);if(i){const[,s,o,c]=i,d=n.slice(i[0].length);r.push(`${s}${c}${o}${d}`)}else r.push(n)}return r.join(`
359
359
  `)}/*! @license DOMPurify 3.4.17 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.4.17/LICENSE */function jo(t,e){(e==null||e>t.length)&&(e=t.length);for(var r=0,n=Array(e);r<e;r++)n[r]=t[r];return n}function Pm(t){if(Array.isArray(t))return t}function Om(t,e){var r=t==null?null:typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(r!=null){var n,a,i,s,o=[],c=!0,d=!1;try{if(i=(r=r.call(t)).next,e!==0)for(;!(c=(n=i.call(r)).done)&&(o.push(n.value),o.length!==e);c=!0);}catch(p){d=!0,a=p}finally{try{if(!c&&r.return!=null&&(s=r.return(),Object(s)!==s))return}finally{if(d)throw a}}return o}}function $m(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
360
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */function Bm(t,e){return Pm(t)||Om(t,e)||qm(t,e)||$m()}function qm(t,e){if(t){if(typeof t=="string")return jo(t,e);var r={}.toString.call(t).slice(8,-1);return r==="Object"&&t.constructor&&(r=t.constructor.name),r==="Map"||r==="Set"?Array.from(t):r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?jo(t,e):void 0}}const eu=Object.entries,Vo=Object.setPrototypeOf,Fm=Object.isFrozen,tu=Object.getPrototypeOf,ru=Object.getOwnPropertyDescriptor;let We=Object.freeze,Ve=Object.seal,Qr=Object.create,nu=typeof Reflect<"u"&&Reflect,yi=nu.apply,wi=nu.construct;We||(We=function(e){return e});Ve||(Ve=function(e){return e});yi||(yi=function(e,r){for(var n=arguments.length,a=new Array(n>2?n-2:0),i=2;i<n;i++)a[i-2]=arguments[i];return e.apply(r,a)});wi||(wi=function(e){for(var r=arguments.length,n=new Array(r>1?r-1:0),a=1;a<r;a++)n[a-1]=arguments[a];return new e(...n)});const qt=Ee(Array.prototype.forEach),Hm=Ee(Array.prototype.lastIndexOf),Yo=Ee(Array.prototype.pop),T0=Ee(Array.prototype.push),Um=Ee(Array.prototype.slice),Wm=Ee(Array.prototype.splice),r0=Array.isArray,Ba=au(Set),qa=Ee(Set.prototype.add),E0=Ee(Set.prototype.has),Mr=Ee(String.prototype.toLowerCase),Fa=Ee(String.prototype.toString),Xo=Ee(String.prototype.match),M0=Ee(String.prototype.replace),Ko=Ee(String.prototype.indexOf),Gm=Ee(String.prototype.trim),jm=Ee(Number.prototype.toString),Vm=Ee(Boolean.prototype.toString),Zo=typeof BigInt>"u"?null:Ee(BigInt.prototype.toString),Qo=typeof Symbol>"u"?null:Ee(Symbol.prototype.toString),dt=Ee(Object.prototype.hasOwnProperty),C0=Ee(Object.prototype.toString),je=Ee(RegExp.prototype.test),Ft=au(TypeError);function Ee(t){return function(e){e instanceof RegExp&&(e.lastIndex=0);for(var r=arguments.length,n=new Array(r>1?r-1:0),a=1;a<r;a++)n[a-1]=arguments[a];return yi(t,e,n)}}function au(t){return function(){for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];return wi(t,r)}}function de(t,e){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:Mr;if(Vo&&Vo(t,null),!r0(e))return t;let n=e.length;for(;n--;){let a=e[n];if(typeof a=="string"){const i=r(a);i!==a&&(Fm(e)||(e[n]=i),a=i)}t[a]=!0}return t}function Ym(t){for(let e=0;e<t.length;e++)dt(t,e)||(t[e]=null);return t}function gt(t){const e=Qr(null);for(const n of eu(t)){var r=Bm(n,2);const a=r[0],i=r[1];dt(t,a)&&(r0(i)?e[a]=Ym(i):i&&typeof i=="object"&&i.constructor===Object?e[a]=gt(i):e[a]=i)}return e}function Xm(t){switch(typeof t){case"string":return t;case"number":return jm(t);case"boolean":return Vm(t);case"bigint":return Zo?Zo(t):"0";case"symbol":return Qo?Qo(t):"Symbol()";case"undefined":return C0(t);case"function":case"object":{if(t===null)return C0(t);const e=t,r=St(e,"toString");if(typeof r=="function"){const n=r(e);return typeof n=="string"?n:C0(n)}return C0(t)}default:return C0(t)}}function St(t,e){for(;t!==null;){const n=ru(t,e);if(n){if(n.get)return Ee(n.get);if(typeof n.value=="function")return Ee(n.value)}t=tu(t)}function r(){return null}return r}function Km(t,e){for(;t!==null;){const r=ru(t,e);if(r)return r.get?Ee(r.get):null;t=tu(t)}return null}function Zm(t){try{return je(t,""),!0}catch{return!1}}const Jo=We(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","search","section","select","shadow","slot","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),Ha=We(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","enterkeyhint","exportparts","filter","font","g","glyph","glyphref","hkern","image","inputmode","line","lineargradient","marker","mask","metadata","mpath","part","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),Ua=We(["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"]),Qm=We(["animate","color-profile","cursor","discard","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),Wa=We(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover","mprescripts"]),Jm=We(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),el=We(["#text"]),tl=We(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","command","commandfor","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","exportparts","face","for","headers","height","hidden","high","href","hreflang","id","inert","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","part","pattern","placeholder","playsinline","popover","popovertarget","popovertargetaction","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","slot","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","wrap","xmlns"]),Ga=We(["accent-height","accumulate","additive","alignment-baseline","amplitude","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dominant-baseline","dur","edgemode","elevation","end","exponent","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","intercept","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","mask-type","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","pointer-events","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","slope","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","tablevalues","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-orientation","text-rendering","textlength","type","u1","u2","unicode","values","vector-effect","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),rl=We(["accent","accentunder","align","bevelled","close","columnalign","columnlines","columnspacing","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lquote","lspace","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),Cn=We(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),e4=Ve(/{{[\w\W]*|^[\w\W]*}}/g),t4=Ve(/<%[\w\W]*|^[\w\W]*%>/g),r4=Ve(/\${[\w\W]*/g),n4=Ve(/^data-[\-\w.\u00B7-\uFFFF]+$/),a4=Ve(/^aria-[\-\w]+$/),nl=Ve(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),i4=Ve(/^(?:\w+script|data):/i),s4=Ve(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),o4=Ve(/^html$/i),l4=Ve(/^[a-z][.\w]*(-[.\w]+)+$/i),ja=Ve(/<[/\w!]/g),al=Ve(/<[/\w]/g),c4=Ve(/<\/no(script|embed|frames)/i),il=Ve(/\/>/i),_e={element:1,attribute:2,text:3,cdataSection:4,entityReference:5,entityNode:6,processingInstruction:7,comment:8,document:9,documentType:10,documentFragment:11,notation:12},u4=We(de({},["style","script","xmp","iframe","noembed","noframes","plaintext","noscript"])),d4=function(){return typeof window>"u"?null:window},h4=function(e,r){if(typeof e!="object"||typeof e.createPolicy!="function")return null;let n=null;const a="data-tt-policy-suffix";r&&r.hasAttribute(a)&&(n=r.getAttribute(a));const i="dompurify"+(n?"#"+n:"");try{return e.createPolicy(i,{createHTML(s){return s},createScriptURL(s){return s}})}catch{return console.warn("TrustedTypes policy "+i+" could not be created."),null}},sl=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}},ar=function(e,r,n,a){return dt(e,r)&&r0(e[r])?de(a.base?gt(a.base):{},e[r],a.transform):n},Va=function(e,r,n){const a=dt(e,r)?e[r]:void 0;return a&&typeof a=="object"?gt(a):n()};function iu(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:d4();const e=N=>iu(N);if(e.version="3.4.17",e.removed=[],!t||!t.document||t.document.nodeType!==_e.document||!t.Element)return e.isSupported=!1,e;let r=t.document;const n=r,a=n.currentScript;t.DocumentFragment;const i=t.HTMLTemplateElement,s=t.Node,o=t.Element,c=t.NodeFilter;t.NamedNodeMap===void 0&&(t.NamedNodeMap||t.MozNamedAttrMap),t.HTMLFormElement;const d=t.DOMParser,p=t.trustedTypes,g=o.prototype,v=St(g,"cloneNode"),w=St(g,"remove"),A=St(g,"removeAttributeNode"),M=St(g,"nextSibling"),D=St(g,"childNodes"),S=St(g,"parentNode"),C=St(g,"shadowRoot"),W=St(g,"attributes"),K=s&&s.prototype?St(s.prototype,"nodeType"):null,X=s&&s.prototype?St(s.prototype,"nodeName"):null,T=s&&s.prototype?St(s.prototype,"ownerDocument"):null,R=function(f){return K?K(f):f.nodeType},U=function(f){return X?X(f):f.nodeName},O=Km(g,"namespaceURI"),$=function(f){return O?O(f):f.namespaceURI};if(typeof i=="function"){const N=r.createElement("template");N.content&&N.content.ownerDocument&&(r=N.content.ownerDocument)}let L,F="",Y,J=!1,ee=0;const le=function(){if(ee>0)throw Ft('A configured TRUSTED_TYPES_POLICY callback (createHTML or createScriptURL) must not call DOMPurify.sanitize, as that causes infinite recursion. Do not pass a policy whose callbacks wrap DOMPurify as TRUSTED_TYPES_POLICY; see the "DOMPurify and Trusted Types" section of the README.')},ue=function(f){le(),ee++;try{return L.createHTML(f)}finally{ee--}},De=function(f){le(),ee++;try{return L.createScriptURL(f)}finally{ee--}},ve=function(){return J||(Y=h4(p,a),J=!0),Y},Ae=r,st=Ae.implementation,wt=Ae.createNodeIterator,Ze=Ae.createDocumentFragment,Qe=Ae.getElementsByTagName,gr=n.importNode;let ye=sl();e.isSupported=typeof eu=="function"&&typeof S=="function"&&st&&st.createHTMLDocument!==void 0;const Zt=e4,J0=t4,Qt=r4,en=n4,tn=a4,rn=i4,vr=s4,Br=l4;let nn=nl,xe=null;const v0=de({},[...Jo,...Ha,...Ua,...Wa,...el]);let we=null;const qr=de({},[...tl,...Ga,...rl,...Cn]);let Je=Object.seal(Qr(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),br=null,an=null;const kt=Object.seal(Qr(null,{tagCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeCheck:{writable:!0,configurable:!1,enumerable:!0,value:null}}));let b0=!0,Fr=!0,sn=!1,y0=!0,ot=!1,xt=!0,yr=!1,ta=!1,on=null,ln=null,ra=!1,Hr=!1,cn=!1,un=!1,ds=!0,hs=!1;const ps="user-content-";let na=!0,aa=!1,wr=null,Ur={},kr=null;const ms=de({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","selectedcontent","style","svg","template","thead","title","video","xmp"]);let fs=null;const gs=de({},["audio","video","img","source","image","track"]);let vs=null;const bs=de({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),dn="http://www.w3.org/1998/Math/MathML",hn="http://www.w3.org/2000/svg",zt="http://www.w3.org/1999/xhtml";let Wr=zt,ia=!1,sa=null;const $u=de({},[dn,hn,zt],Fa),ys=We(["mi","mo","mn","ms","mtext"]);let oa=de({},ys);const ws=We(["annotation-xml"]);let la=de({},ws);const Bu=de({},["title","style","font","a","script"]);let w0=null;const qu=["application/xhtml+xml","text/html"],Fu="text/html";let Ne=null,Gr=null;const Hu=r.createElement("form"),ks=function(f){return f instanceof RegExp||f instanceof Function},ca=function(){let f=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(Gr&&Gr===f)return;(!f||typeof f!="object")&&(f={}),f=gt(f),w0=qu.indexOf(f.PARSER_MEDIA_TYPE)===-1?Fu:f.PARSER_MEDIA_TYPE,Ne=w0==="application/xhtml+xml"?Fa:Mr,xe=ar(f,"ALLOWED_TAGS",v0,{transform:Ne}),we=ar(f,"ALLOWED_ATTR",qr,{transform:Ne}),sa=ar(f,"ALLOWED_NAMESPACES",$u,{transform:Fa}),vs=ar(f,"ADD_URI_SAFE_ATTR",bs,{transform:Ne,base:bs}),fs=ar(f,"ADD_DATA_URI_TAGS",gs,{transform:Ne,base:gs}),kr=ar(f,"FORBID_CONTENTS",ms,{transform:Ne}),br=ar(f,"FORBID_TAGS",gt({}),{transform:Ne}),an=ar(f,"FORBID_ATTR",gt({}),{transform:Ne}),Ur=dt(f,"USE_PROFILES")?f.USE_PROFILES&&typeof f.USE_PROFILES=="object"?gt(f.USE_PROFILES):f.USE_PROFILES:!1,b0=f.ALLOW_ARIA_ATTR!==!1,Fr=f.ALLOW_DATA_ATTR!==!1,sn=f.ALLOW_UNKNOWN_PROTOCOLS||!1,y0=f.ALLOW_SELF_CLOSE_IN_ATTR!==!1,ot=f.SAFE_FOR_TEMPLATES||!1,xt=f.SAFE_FOR_XML!==!1,yr=f.WHOLE_DOCUMENT||!1,Hr=f.RETURN_DOM||!1,cn=f.RETURN_DOM_FRAGMENT||!1,un=f.RETURN_TRUSTED_TYPE||!1,ra=f.FORCE_BODY||!1,ds=f.SANITIZE_DOM!==!1,hs=f.SANITIZE_NAMED_PROPS||!1,na=f.KEEP_CONTENT!==!1,aa=f.IN_PLACE||!1,nn=Zm(f.ALLOWED_URI_REGEXP)?f.ALLOWED_URI_REGEXP:nl,Wr=typeof f.NAMESPACE=="string"?f.NAMESPACE:zt,oa=Va(f,"MATHML_TEXT_INTEGRATION_POINTS",()=>de({},ys)),la=Va(f,"HTML_INTEGRATION_POINTS",()=>de({},ws));const x=Va(f,"CUSTOM_ELEMENT_HANDLING",()=>Qr(null));if(Je=Qr(null),dt(x,"tagNameCheck")&&ks(x.tagNameCheck)&&(Je.tagNameCheck=x.tagNameCheck),dt(x,"attributeNameCheck")&&ks(x.attributeNameCheck)&&(Je.attributeNameCheck=x.attributeNameCheck),dt(x,"allowCustomizedBuiltInElements")&&typeof x.allowCustomizedBuiltInElements=="boolean"&&(Je.allowCustomizedBuiltInElements=x.allowCustomizedBuiltInElements),Ve(Je),ot&&(Fr=!1),cn&&(Hr=!0),Ur&&(xe=de({},el),we=Qr(null),Ur.html===!0&&(de(xe,Jo),de(we,tl)),Ur.svg===!0&&(de(xe,Ha),de(we,Ga),de(we,Cn)),Ur.svgFilters===!0&&(de(xe,Ua),de(we,Ga),de(we,Cn)),Ur.mathMl===!0&&(de(xe,Wa),de(we,rl),de(we,Cn))),kt.tagCheck=null,kt.attributeCheck=null,dt(f,"ADD_TAGS")&&(typeof f.ADD_TAGS=="function"?kt.tagCheck=f.ADD_TAGS:r0(f.ADD_TAGS)&&(xe===v0&&(xe=gt(xe)),de(xe,f.ADD_TAGS,Ne))),dt(f,"ADD_ATTR")&&(typeof f.ADD_ATTR=="function"?kt.attributeCheck=f.ADD_ATTR:r0(f.ADD_ATTR)&&(we===qr&&(we=gt(we)),de(we,f.ADD_ATTR,Ne))),dt(f,"ADD_FORBID_CONTENTS")&&r0(f.ADD_FORBID_CONTENTS)&&(kr===ms&&(kr=gt(kr)),de(kr,f.ADD_FORBID_CONTENTS,Ne)),na&&(xe["#text"]=!0),yr&&de(xe,["html","head","body"]),xe.table&&(de(xe,["tbody"]),delete br.tbody),f.TRUSTED_TYPES_POLICY){if(typeof f.TRUSTED_TYPES_POLICY.createHTML!="function")throw Ft('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof f.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw Ft('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');const I=L;L=f.TRUSTED_TYPES_POLICY;try{F=ue("")}catch(z){throw L=I,z}}else f.TRUSTED_TYPES_POLICY===null?(L=void 0,F=""):(L===void 0&&(L=ve()),L&&typeof F=="string"&&(F=ue("")));We&&We(f),Gr=f},xs=de({},[...Ha,...Ua,...Qm]),Ss=de({},[...Wa,...Jm]),Uu=function(f,x,I){return x.namespaceURI===zt?f==="svg":x.namespaceURI===dn?f==="svg"&&(I==="annotation-xml"||oa[I]):!!xs[f]},Wu=function(f,x,I){return x.namespaceURI===zt?f==="math":x.namespaceURI===hn?f==="math"&&la[I]:!!Ss[f]},Gu=function(f,x,I){return x.namespaceURI===hn&&!la[I]||x.namespaceURI===dn&&!oa[I]?!1:!Ss[f]&&(Bu[f]||!xs[f])},ju=function(f){const x=$(f),I=Mr(U(f)),z=S(f);let Z,te;return z&&R(z)===_e.element?(Z={namespaceURI:$(z)},te=Mr(U(z))):(Z={namespaceURI:Wr},te="template"),sa[x]?x===hn?Uu(I,Z,te):x===dn?Wu(I,Z,te):x===zt?Gu(I,Z,te):!!(w0==="application/xhtml+xml"&&sa[x]):!1},Jt=function(f){T0(e.removed,{element:f});try{S(f).removeChild(f)}catch{if(w(f),!S(f))throw Ft("a node selected for removal could not be detached from its tree and cannot be safely returned; refusing to sanitize in place")}},As=function(f,x,I){try{A(f,x)}catch{try{f.removeAttribute(I)}catch{}}},ua=function(f){ha(f);const x=D(f);x&&qt(Um(x),z=>{try{w(z)}catch{}});const I=R(f)===_e.element?W(f):null;if(I)for(let z=I.length-1;z>=0;--z){const Z=I[z],te=Z&&Z.name;typeof te=="string"&&As(f,Z,te)}},jr=function(f,x,I){if(!I)try{I=x.getAttributeNode(f)}catch{I=null}T0(e.removed,{attribute:I||null,from:x});try{I?A(x,I):x.removeAttribute(f)}catch{try{x.removeAttribute(f)}catch{}}if(f==="is")if(Hr||cn)try{Jt(x)}catch{}else try{x.setAttribute(f,"")}catch{}},Ts=function(f){const x=W(f);if(x)for(let I=x.length-1;I>=0;--I){const z=x[I],Z=z&&z.name;typeof Z!="string"||we[Ne(Z)]||As(f,z,Z)}},da=function(f,x){let I=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;const z=[f];for(;z.length>0;){const Z=z.pop();if(x(Z)===!1)continue;if(I&&R(Z)===_e.element){const ie=C(Z);er(ie)&&z.push(ie)}const te=D(Z);if(te)for(let ie=te.length-1;ie>=0;--ie)z.push(te[ie])}},ha=function(f){da(f,x=>{R(x)===_e.element&&Ts(x)})},pa=function(f){const x=[];return da(f,I=>{x.push(I)},!0),x},Vu=function(f,x){const I=Ba();qt(pa(f),z=>{R(z)===_e.element&&qa(I,z)}),qt(x,z=>{R(z)===_e.element&&!E0(I,z)&&Ts(z)})},Es=function(f,x){let I=!1;return qt(e.removed,z=>{z.element&&(I=I||z.element===f,ha(z.element))}),Vu(f,x),I},Yu=8,Xu=function(f,x){const I=wr;let z=null;const Z=()=>(z||(z=Ba(),qt(x,te=>{qa(z,te)})),z);for(let te=0;;te++){const ie=pa(f),Be=[f];let Rt=!1;if(qt(ie,et=>{R(et)===_e.documentFragment?T0(Be,et):!Rt&&!E0(I,et)&&(Rt=E0(Z(),et))}),!Rt)return;if(te>=Yu)throw Ft("the tree kept changing during in-place sanitization; refusing to return it");qt(Be,(et,lt)=>{Ku(et,lt>0,f,Z())})}},Ku=function(f,x,I,z){const Z=ma(f);let te;for(;te=Z.nextNode();)!E0(z,te)||E0(wr,te)||(x&&Ct(ye.uponSanitizeShadowNode,te,null),ga(te,I),va(te,I),er(te.content)&&x0(te.content))},Zu=function(f){wr&&qa(wr,f)},Ms=function(f,x){return xt?f==="patchsrc"?!0:f==="for"&&x!=="label"&&x!=="output":!1},Qu=function(f){xt&&da(f,x=>{const I=R(x);if(I===_e.processingInstruction||I===_e.comment&&je(al,x.data)){try{w(x)}catch{}return!1}if(I===_e.element){const z=x,Z=Ne(U(x));try{z.hasAttribute&&z.hasAttribute("patchsrc")&&z.removeAttribute("patchsrc"),z.hasAttribute&&z.hasAttribute("for")&&Ms("for",Z)&&z.removeAttribute("for")}catch{}}return!0})},Cs=function(f){let x=null,I=null;if(ra)f="<remove></remove>"+f;else{const te=Xo(f,/^[\r\n\t ]+/);I=te&&te[0]}w0==="application/xhtml+xml"&&Wr===zt&&(f='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+f+"</body></html>");const z=L?ue(f):f;if(Wr===zt)try{x=new d().parseFromString(z,w0)}catch{}if(!x||!x.documentElement){x=st.createDocument(Wr,"template",null);try{x.documentElement.innerHTML=ia?F:z}catch{}}const Z=x.body||x.documentElement;return f&&I&&Z.insertBefore(r.createTextNode(I),Z.childNodes[0]||null),Wr===zt?Qe.call(x,yr?"html":"body")[0]:yr?x.documentElement:Z},ma=function(f){const x=T?T(f):f.ownerDocument;return wt.call(x||f,f,c.SHOW_ELEMENT|c.SHOW_COMMENT|c.SHOW_TEXT|c.SHOW_PROCESSING_INSTRUCTION|c.SHOW_CDATA_SECTION,null)},pn=function(f){return f=M0(f,Zt," "),f=M0(f,J0," "),f=M0(f,Qt," "),f},fa=function(f){var x;Is(f);const I=(x=f.querySelectorAll)===null||x===void 0?void 0:x.call(f,"template");I&&qt(I,z=>{er(z.content)&&fa(z.content)})},Is=function(f){f.normalize();const x=T?T(f):f.ownerDocument,I=wt.call(x||f,f,c.SHOW_TEXT|c.SHOW_COMMENT|c.SHOW_CDATA_SECTION|c.SHOW_PROCESSING_INSTRUCTION,null);let z=I.nextNode();for(;z;)z.data=pn(z.data),z=I.nextNode()},mn=function(f){const x=X?X(f):null;return typeof x!="string"||Ne(x)!=="form"?!1:typeof f.nodeName!="string"||typeof f.textContent!="string"||typeof f.removeChild!="function"||f.attributes!==W(f)||typeof f.removeAttribute!="function"||typeof f.removeAttributeNode!="function"||typeof f.getAttributeNode!="function"||typeof f.setAttribute!="function"||typeof f.namespaceURI!="string"||typeof f.insertBefore!="function"||typeof f.hasChildNodes!="function"||f.nodeType!==K(f)||f.childNodes!==D(f)},er=function(f){if(!K||typeof f!="object"||f===null)return!1;try{return K(f)===_e.documentFragment}catch{return!1}},k0=function(f){if(!K||typeof f!="object"||f===null)return!1;try{return typeof K(f)=="number"}catch{return!1}};function Ct(N,f,x){N.length!==0&&qt(N,I=>{I.call(e,f,x,Gr)})}const Ju=function(f,x){return!!(xt&&f.hasChildNodes()&&!k0(f.firstElementChild)&&je(ja,f.textContent)&&je(ja,f.innerHTML)||xt&&u4[x]&&R(f)===_e.element&&$(f)===zt&&(k0(f.firstElementChild)||typeof f.textContent=="string"&&je(ja,f.textContent))||f.nodeType===_e.processingInstruction||xt&&f.nodeType===_e.comment&&je(al,f.data))},fn=function(f,x){if(f instanceof RegExp)return je(f,x);if(f instanceof Function){for(var I=arguments.length,z=new Array(I>2?I-2:0),Z=2;Z<I;Z++)z[Z-2]=arguments[Z];return!!f(x,...z)}return!1},e1=function(f,x,I){if(!br[x]&&Ds(x)&&fn(Je.tagNameCheck,x))return!1;if(na&&!kr[x]&&!kr[Mr(x)]){const z=S(f),Z=D(f);if(Z&&z){const te=Z.length;for(let ie=te-1;ie>=0;--ie){const Be=f===I?v(Z[ie],!0):Z[ie];z.insertBefore(Be,M(f))}}}return Jt(f),!0},zs=function(f,x,I,z){return f.length===0?x:x===I||x===z?gt(x):x},Vr=function(f,x){return f===x||S(f)!==null?!1:(aa&&ha(f),!0)},ga=function(f,x){if(Zu(f),Ct(ye.beforeSanitizeElements,f,null),Vr(f,x))return!0;if(mn(f))return Jt(f),!0;const I=Ne(U(f));if(xe=zs(ye.uponSanitizeElement,xe,v0,on),Ct(ye.uponSanitizeElement,f,{tagName:I,allowedTags:xe}),Vr(f,x))return!0;if(Ju(f,I))return Jt(f),!0;if(br[I]||!(kt.tagCheck instanceof Function&&kt.tagCheck(I))&&!xe[I]){const z=e1(f,I,x);return z===!1&&(Ct(ye.afterSanitizeElements,f,null),Vr(f,x))?!0:z}if(R(f)===_e.element&&!ju(f)||(I==="noscript"||I==="noembed"||I==="noframes")&&je(c4,f.innerHTML))return Jt(f),!0;if(ot&&f.nodeType===_e.text){const z=pn(f.textContent);f.textContent!==z&&(T0(e.removed,{element:f.cloneNode()}),f.textContent=z)}return Ct(ye.afterSanitizeElements,f,null),Vr(f,x)},Rs=function(f,x,I){if(an[x]||Ms(x,f)||ds&&(x==="id"||x==="name")&&(I in r||I in Hu))return!1;const z=we[x]||kt.attributeCheck instanceof Function&&kt.attributeCheck(x,f);return Fr&&je(en,x)||b0&&je(tn,x)?!0:z?vs[x]||je(nn,M0(I,vr,""))||(x==="src"||x==="xlink:href"||x==="href")&&f!=="script"&&Ko(I,"data:")===0&&fs[f]||sn&&!je(rn,M0(I,vr,""))?!0:!I:Ds(f)&&fn(Je.tagNameCheck,f)&&fn(Je.attributeNameCheck,x,f)||x==="is"&&Je.allowCustomizedBuiltInElements&&fn(Je.tagNameCheck,I)},t1=de({},["annotation-xml","color-profile","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","missing-glyph"]),Ds=function(f){return!t1[Mr(f)]&&je(Br,f)},r1=function(f,x,I,z){if(L&&typeof p=="object"&&typeof p.getAttributeType=="function"&&!I)switch(p.getAttributeType(f,x)){case"TrustedHTML":return ue(z);case"TrustedScriptURL":return De(z)}return z},n1=function(f,x,I,z){try{return I?f.setAttributeNS(I,x,z):f.setAttribute(x,z),mn(f)?(Jt(f),!1):!0}catch{return jr(x,f),!1}},Ns=function(f,x){return xt&&je(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i,x)?!0:Mr(f)==="attributename"&&Xo(x,"href")!==null},va=function(f,x){if(Ct(ye.beforeSanitizeAttributes,f,null),Vr(f,x))return;const I=f.attributes;if(!I||mn(f))return;we=zs(ye.uponSanitizeAttribute,we,qr,ln);const z={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:we,forceKeepAttr:void 0};let Z=I.length;const te=Ne(f.nodeName);for(;Z--;){const ie=I[Z],Be=ie.name,Rt=ie.namespaceURI,et=ie.value,lt=Ne(Be),Yr=et;let ct=Be==="value"?Yr:Gm(Yr),_s=!1;if(z.attrName=lt,z.attrValue=ct,z.keepAttr=!0,z.forceKeepAttr=void 0,Ct(ye.uponSanitizeAttribute,f,z),ct=z.attrValue,hs&&(lt==="id"||lt==="name")&&Ko(ct,ps)!==0&&(jr(Be,f,ie),ct=ps+ct,_s=!0),Ns(Be,ct)){jr(Be,f,ie);continue}if(!z.forceKeepAttr){if(!z.keepAttr){jr(Be,f,ie);continue}if(!y0&&je(il,ct)){jr(Be,f,ie);continue}if(ot&&(ct=pn(ct)),!Rs(te,lt,ct)){jr(Be,f,ie);continue}ct=r1(te,lt,Rt,ct),ct!==Yr&&n1(f,Be,Rt,ct)&&_s&&Yo(e.removed)}}Ct(ye.afterSanitizeAttributes,f,null),Vr(f,x)},x0=function(f){let x=null;const I=ma(f);for(Ct(ye.beforeSanitizeShadowDOM,f,null);x=I.nextNode();)if(Ct(ye.uponSanitizeShadowNode,x,null),ga(x,f),va(x,f),er(x.content)&&x0(x.content),R(x)===_e.element){const z=C(x);er(z)&&(ba(z),x0(z))}ot&&Is(f),Ct(ye.afterSanitizeShadowDOM,f,null)},ba=function(f){const x=[{node:f,shadow:null}];for(;x.length>0;){const I=x.pop();if(I.shadow){x0(I.shadow);continue}const z=I.node,Z=R(z)===_e.element,te=D(z);if(te)for(let ie=te.length-1;ie>=0;--ie)x.push({node:te[ie],shadow:null});if(Z){const ie=X?X(z):null;if(typeof ie=="string"&&Ne(ie)==="template"){const Be=z.content;er(Be)&&x.push({node:Be,shadow:null})}}if(Z){const ie=C(z);er(ie)&&x.push({node:null,shadow:ie},{node:ie,shadow:null})}}};return e.sanitize=function(N){let f=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},x=null,I=null,z=null,Z=null;if(ia=!N,ia&&(N="<!-->"),typeof N!="string"&&!k0(N)&&(N=Xm(N),typeof N!="string"))throw Ft("dirty is not a string, aborting");if(!e.isSupported)return N;ta?(xe=on,we=ln):ca(f),(ye.uponSanitizeElement.length>0||ye.uponSanitizeAttribute.length>0)&&(xe=gt(xe)),ye.uponSanitizeAttribute.length>0&&(we=gt(we)),e.removed=[];const te=aa&&typeof N!="string"&&k0(N);let ie=[];const Be=wr;if(te){Qu(N);const lt=U(N);if(typeof lt=="string"){const Yr=Ne(lt);if(!xe[Yr]||br[Yr])throw ua(N),Ft("root node is forbidden and cannot be sanitized in-place")}if(mn(N))throw ua(N),Ft("root node is clobbered and cannot be sanitized in-place");ie=pa(N),wr=Ba()}else if(k0(N))x=Cs("<!---->"),I=x.ownerDocument.importNode(N,!0),I.nodeType===_e.element&&I.nodeName==="BODY"||I.nodeName==="HTML"?x=I:x.appendChild(I),ba(x);else{if(!Hr&&!ot&&!yr&&N.indexOf("<")===-1)return L&&un?ue(N):N;if(x=Cs(N),!x)return Hr?null:un?F:""}x&&ra&&Jt(x.firstChild);const Rt=te?N:x;try{te&&ba(N);const lt=ma(Rt);for(;z=lt.nextNode();)ga(z,Rt),va(z,Rt),er(z.content)&&x0(z.content);te&&Xu(N,ie)}catch(lt){throw te&&(ua(N),Es(N,ie)),lt}finally{wr=Be}if(te){if(Es(N,ie))throw Ft("a node selected for removal could not be safely returned; refusing to sanitize in place");return ot&&fa(N),N}if(Hr){if(ot&&fa(x),cn)for(Z=Ze.call(x.ownerDocument);x.firstChild;)Z.appendChild(x.firstChild);else Z=x;return(we.shadowroot||we.shadowrootmode)&&(Z=gr.call(n,Z,!0)),Z}let et=yr?x.outerHTML:x.innerHTML;return yr&&xe["!doctype"]&&x.ownerDocument&&x.ownerDocument.doctype&&x.ownerDocument.doctype.name&&je(o4,x.ownerDocument.doctype.name)&&(et="<!DOCTYPE "+x.ownerDocument.doctype.name+`>
361
- `+et),ot&&(et=pn(et)),L&&un?ue(et):et},e.setConfig=function(){let N=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};ca(N),ta=!0,on=xe,ln=we},e.clearConfig=function(){Gr=null,ta=!1,on=null,ln=null,L=Y,F=""},e.isValidAttribute=function(N,f,x){Gr||ca({});const I=Ne(N),z=Ne(f);return typeof x=="string"&&(Ns(f,x)||!y0&&je(il,x))?!1:Rs(I,z,x)},e.addHook=function(N,f){typeof f=="function"&&dt(ye,N)&&T0(ye[N],f)},e.removeHook=function(N,f){if(dt(ye,N)){if(f!==void 0){const x=Hm(ye[N],f);return x===-1?void 0:Wm(ye[N],x,1)[0]}return Yo(ye[N])}},e.removeHooks=function(N){dt(ye,N)&&(ye[N]=[])},e.removeAllHooks=function(){ye=sl()},e}var es=iu();const ts=/\.(?:png|jpe?g|gif|webp)$/i,su=/\.(?:mp4|webm)$/i;function p4(t,e){return e.readOnly===!0&&t===Bl}function rs(t){return ts.test(t)?"image":su.test(t)?"video":null}const m4=/^[A-Za-z0-9._-]+$/;function _r(t){try{return decodeURIComponent(t)}catch{return null}}function X0(t){return m4.test(t)&&t!=="."&&t!==".."}function f4(t){if(!/^[\s\u0000-\u001f]*workspace-asset:/i.test(t))return!1;const e=t.split(/[?#]/)[0].replace(/%([a-f0-9]{2})/gi,(r,n)=>String.fromCharCode(Number.parseInt(n,16)));return/\.(?:mp4|webm)$/i.test(e.trim())}function ou(t,e){if(t!==t.trim())return null;const r=/^workspace-asset:\/\/([^/?#]+)\/([^/?#]+)(\?[^#]*)?$/.exec(t);if(!r||!e||!X0(e)||r[1]!==e)return null;const n=_r(r[2]);if(!n||!/^[A-Za-z0-9._-]+$/.test(n))return null;const a=r[3];if(a){if(!/^\?[^&=]+=[^&=]+(?:&[^&=]+=[^&=]+)*$/.test(a))return null;const i=new Set;for(const[s,o]of new URLSearchParams(a)){if(s!=="backend"&&s!=="v"||i.has(s)||!o||/[^A-Za-z0-9._-]/.test(o))return null;i.add(s)}}return n}function ns(t,e){const r=ou(t,e);return!r||!su.test(r)?null:{kind:"workspace",url:t,mimeType:r.toLowerCase().endsWith(".webm")?"video/webm":"video/mp4"}}function A3(t,e){const r=ou(t,e);return r&&ts.test(r)?t:null}function lu(t,e,r={}){if(!t.startsWith("intent://"))return null;const a=t.slice(9).split(/[?#]/)[0].split("/"),i=a[0],s=a.slice(1);if(!i)return null;let o,c;if(s[0]==="file")o=e,c=s.slice(1);else if(s.length>=3&&s[1]==="file"){const g=_r(s[0]);if(!g||g!==e&&!p4(e,r))return null;o=g,c=s.slice(2)}else return null;if(!o||!X0(o)||c.length===0)return null;const d=[];for(const g of c){const v=_r(g);if(v===null||v.length===0||v==="."||v===".."||v.includes("/")||v.includes("\\"))return null;d.push(v)}if(/^[A-Za-z]:/.test(d[0]))return null;const p=d.map(g=>encodeURIComponent(g)).join("/");return{workspaceId:o,path:d.join("/"),encodedPath:p}}function g4(t,e,r={}){const n=lu(t,e,r);if(!n)return null;const a=rs(n.path);return a?{url:`workspace-file://${n.workspaceId}/${n.encodedPath}`,kind:a}:null}function T3(t,e,r={}){const n=g4(t,e,r);return n?.kind==="image"?n.url:null}function ol(t){if(!t.startsWith("workspace-file://"))return null;const e=t.slice(17).split(/[?#]/)[0],[r,...n]=e.split("/");if(!r||!X0(r)||n.length===0)return null;const a=[];for(const s of n){const o=_r(s);if(o===null||o.length===0||o==="."||o===".."||o.includes("/")||o.includes("\\"))return null;a.push(o)}return/^[A-Za-z]:/.test(a[0])||!rs(a[a.length-1])?null:`intent://local/file/${a.map(s=>encodeURIComponent(s)).join("/")}`}function ki(t){if(!t.startsWith("workspace-file://"))return null;const e=t.slice(17).split(/[?#]/)[0],[r,...n]=e.split("/");if(!r||!X0(r)||n.length===0)return null;const a=[];for(const s of n){const o=_r(s);if(o===null||o.length===0||o==="."||o===".."||o.includes("/")||o.includes("\\"))return null;a.push(o)}return/^[A-Za-z]:/.test(a[0])||!ts.test(a[a.length-1])?null:`intent://local/file/${a.map(s=>encodeURIComponent(s)).join("/")}`}const v4=/^[A-Za-z][A-Za-z0-9+.-]*:/;function b4(t,e){if(!t||t!==t.trim()||v4.test(t)||/^[/\\#?]/.test(t))return null;const r=t.split(/[?#]/)[0];if(!r||r.includes("\\"))return null;const n=e?e.split("/"):[];if(n.some(a=>!a||a==="."||a===".."))return null;for(const a of r.split("/")){const i=_r(a);if(i===null||i.includes("/")||i.includes("\\")||i.includes("\0"))return null;if(!(i===""||i===".")){if(i===".."){if(n.length===0)return null;n.pop();continue}n.push(i)}}return n.length===0||/^[A-Za-z]:/.test(n[0])?null:n.join("/")}const Jr=t=>t.replace(/&/g,"&amp;").replace(/"/g,"&quot;"),y4=/^intent:\/\/[^/?#]+\/file\//,w4=/^intent:\/\/[^/?#]+\/([^/?#]+)\/file\//;function k4(t,e){if(y4.test(t))return e?"invalid-link":"workspace-unknown";const r=w4.exec(t);if(!r)return null;const n=_r(r[1]);return e&&n&&X0(n)&&n!==e?"other-workspace":"invalid-link"}const x4="v";let ll=0;function cu(){return ll+=1,`${Date.now().toString(36)}-${ll.toString(36)}`}function E3(t){if(/^https?:\/\//i.test(t))return t;if(t.includes("#"))return null;const e=t.indexOf("?"),r=e<0?t:t.slice(0,e),n=e<0?"":t.slice(e+1);if(t.startsWith("workspace-file://")){if(!ki(t))return null}else if(!/^workspace-asset:\/\/[A-Za-z0-9._-]+\/[A-Za-z0-9._-]+$/.test(r))return null;if(e>=0&&!/^(?:backend|v)=[A-Za-z0-9._-]+(?:&(?:backend|v)=[A-Za-z0-9._-]+)*$/.test(n))return null;const a=new URLSearchParams(n);return a.getAll("backend").length>1||a.getAll("v").length>1?null:(a.set("v",cu()),`${r}?${a}`)}function S4(t,e){return t.includes("workspace-file://")?t.replace(/<img\b[^>]*>/gi,r=>{const n=/\ssrc="(workspace-file:\/\/[^"?#]*)"/i.exec(r);return n?r.replace(n[0],` src="${n[1]}?${x4}=${Jr(e)}"`):r}):t}function A4(t){if(!t.includes("&"))return t;if(typeof document>"u")return null;const e=document.createElement("template");return e.innerHTML=`<img src="${t}">`,e.content.firstElementChild?.getAttribute("src")??null}function T4(t,e){return t.includes("<img")?t.replace(/<img\b[^>]*>/gi,r=>{const n=/\ssrc="([^"]*)"/i.exec(r);if(!n)return r;const a=A4(n[1]),i=a===null?null:b4(a,e);if(!i)return r;const s=i.split("/").map(o=>encodeURIComponent(o)).join("/");return r.replace(n[0],` src="${Jr(`intent://local/file/${s}`)}"`)}):t}function M3(t){const e=t.getAttribute("data-media-unavailable");return e==="other-workspace"||e==="invalid-link"?e:"load-failed"}function E4(t,e,r={}){return!t.includes("intent://")&&!t.includes("workspace-asset://")?t:t.replace(/<img\b[^>]*>/gi,n=>{const a=/\ssrc="([^"]*)"/i.exec(n);if(!a)return n;const i=a[1].replace(/&amp;/g,"&"),s=ns(i,e);if(s){const g=/\salt="([^"]*)"/i.exec(n)?.[1]??"";return`<video src="${Jr(s.url)}" controls preload="metadata" playsinline class="markdown-video" data-name="${g}"></video>`}if(!i.startsWith("intent://"))return n;const o=lu(i,e,r);if(!o){const g=k4(i,e);return!g||g!=="workspace-unknown"&&!r.readOnly?n:n.replace(a[0],` data-media-src="${a[1]}"`).replace(/>$/,` data-media-unavailable="${g}">`)}const c=rs(o.path);if(!c){const g=o.path.split(".").pop()?.toLowerCase()??"";return n.replace(/>$/,` data-media-unsupported="${Jr(g)}">`)}const d={url:`workspace-file://${o.workspaceId}/${o.encodedPath}`,kind:c};if(d.kind==="image")return n.replace(a[1],Jr(d.url));const p=/\salt="([^"]*)"/i.exec(n)?.[1]??"";return`<video src="${Jr(d.url)}" controls preload="metadata" playsinline class="markdown-video" data-name="${p}"></video>`})}const cl=new u0("html-sanitizer"),Bn=t=>/^[\s\u0000-\u001f]*workspace-file:/i.test(t);let lr,P0=!1,_0=!1,Nn=!1;const ul=/^-?(?:\d+(?:\.\d+)?|\.\d+)(?:em|px|%)$/,M4=new Set(["border-bottom-width","border-right-width","border-top-width","border-width","bottom","height","left","margin-left","margin-right","margin-top","min-width","padding-left","top","vertical-align","width"]);function C4(t){const e=[];for(const r of t.split(";")){const n=r.indexOf(":");if(n<0)continue;const a=r.slice(0,n).trim().toLowerCase(),i=r.slice(n+1).trim().toLowerCase(),s=i.split(/\s+/);(M4.has(a)&&ul.test(i)||a==="margin"&&s.length<=4&&s.every(c=>c==="0"||ul.test(c))||a==="position"&&i==="relative"||(a==="border-style"||a==="border-right-style")&&(i==="solid"||i==="dashed"))&&e.push(`${a}:${i}`)}return e.length?`${e.join(";")};`:""}function I4(t){const e=t.closest(".math-inline[data-math-source], .math-display[data-math-source]"),r=t.closest(".katex");return e!==null&&r!==null&&e.contains(r)}function uu(t){if(!Bn(t))return!1;const e=/^[\s\u0000-\u001f]*workspace-file:\/\/([^/?#]+)/i.exec(t);if(!e||!lr)return!1;try{const r=decodeURIComponent(e[1]);return Nn&&lr===Bl?/^[A-Za-z0-9._-]+$/.test(r)&&r!=="."&&r!=="..":r===lr}catch{return!1}}es.addHook("uponSanitizeElement",t=>{t instanceof Element&&t.nodeName==="VIDEO"&&!ns(t.getAttribute("src")??"",lr)&&(!Bn(t.getAttribute("src")??"")||P0&&!uu(t.getAttribute("src")??""))&&t.remove()});es.addHook("uponSanitizeAttribute",(t,e)=>{if(t.nodeName==="A"&&e.attrName==="href"&&/^[^/\\:?#\s]+\.[^/\\:?#\s]+:\d+(?::\d+)?$/.test(e.attrValue)&&(e.attrValue=`./${e.attrValue}`),e.attrName==="style"){if(!_0||!(t instanceof Element)||!I4(t)){e.keepAttr=!1;return}e.attrValue=C4(e.attrValue),e.keepAttr=e.attrValue.length>0;return}if(t.nodeName==="IMG"&&e.attrName==="src"&&f4(e.attrValue)&&!ns(e.attrValue,lr)){e.keepAttr=!1;return}if(P0&&Bn(e.attrValue)&&!uu(e.attrValue)){e.keepAttr=!1;return}Bn(e.attrValue)&&!(e.attrName==="src"&&(t.nodeName==="IMG"||t.nodeName==="VIDEO"))&&(e.keepAttr=!1)});const du=["p","br","span","div","strong","b","em","i","u","s","del","ins","mark","ul","ol","li","input","label","code","pre","kbd","samp","var","h1","h2","h3","h4","h5","h6","a","table","thead","tbody","tfoot","tr","th","td","blockquote","q","cite","abbr","address","article","aside","footer","header","main","nav","section","data","math","semantics","annotation","mrow","mi","mn","mo","mtext","mspace","mfrac","msqrt","mroot","mstyle","merror","mpadded","mphantom","menclose","msub","msup","msubsup","munder","mover","munderover","mmultiscripts","mtable","mtr","mtd","svg","path"],dl={"*":["class","id","title","dir","lang","data-anchor-id","data-anchor-type","data-comment-id","data-mention","data-mention-id","data-mention-type","data-math-source","aria-hidden","style"],a:["href","target","rel"],span:["data-mention","data-mention-id","data-mention-type","data-comment-id","data-anchor-id","data-anchor-type"],div:["data-comment-anchor","data-comment-id","data-mermaid-code","data-diff-code","data-type"],li:["data-type","data-checked"],ul:["data-type"],input:["type","checked","disabled"],label:["for"],code:["class"],pre:["class"],td:["colspan","rowspan"],th:["colspan","rowspan","scope"]},z4={ALLOWED_TAGS:du,ALLOWED_ATTR:Object.keys(dl).reduce((t,e)=>{const r=dl[e];return[...t,...r]},[]),ADD_ATTR:["data-type","data-checked"],ALLOW_DATA_ATTR:!0,KEEP_CONTENT:!0,RETURN_DOM:!1,RETURN_DOM_FRAGMENT:!1,SANITIZE_DOM:!0,ALLOWED_URI_REGEXP:/^(?:(?:https?|mailto|tel|sms|intent):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i};function R4(t,e={}){if(!t)return"";try{const r={...z4,...e},n=es.sanitize(t,r),a=typeof n=="string"?n:String(n);return a.length!==t.length&&cl.debug("HTML content was sanitized",{originalLength:t.length,sanitizedLength:a.length,modified:!0}),a}catch(r){return cl.error("Failed to sanitize HTML",r),""}}function O0(t,e,r={}){const n=lr,a=P0,i=_0,s=Nn;lr=e,P0=!0,_0=r.preserveKatexLayoutStyles??!1,Nn=r.readOnly??!1;try{return R4(t,{ALLOWED_TAGS:[...du,"img","video","hr","details","summary","sub","sup"],ALLOWED_ATTR:["class","id","title","dir","lang","href","target","rel","data-mention","data-mention-id","data-mention-type","data-id","data-label","data-uri","data-meta","data-comment-id","data-anchor-id","data-anchor-type","data-comment-anchor","data-mermaid-code","data-diff-code","data-type","data-checked","data-status","data-delegated-agent-id","data-question","data-options","data-selected","type","checked","disabled","src","alt","width","height","controls","preload","playsinline","poster","data-name","data-media-unsupported","data-media-unavailable","data-media-src","data-primitive","data-primitive-type","data-primitive-id","data-primitive-base64","data-item-type","data-provider","data-title","data-identifier","data-url","data-description","data-metadata","data-math-source","aria-hidden",..._0?["style"]:[],"display","encoding","xmlns","accent","accentunder","columnalign","columnspacing","columnlines","rowalign","rowspacing","rowlines","scriptlevel","displaystyle","fence","separator","stretchy","symmetric","minsize","maxsize","viewBox","preserveAspectRatio","d","open","tabindex"],ALLOWED_URI_REGEXP:/^(?:(?:https?|mailto|tel|sms|intent|workspace-asset|workspace-file):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i})}finally{lr=n,P0=a,_0=i,Nn=s}}const K0=pe({id:$1(),type:Xe(["reference","cli","agent_action","patch","diagram"]),version:h0(1),label:V().optional(),description:V().optional(),createdAt:i0(),createdBy:Xe(["user","agent","system"]),createdByAgentId:V().optional(),meta:Gt(V(),d0()).optional()}),D4=pe({kind:Xe(["symbol","file_range"]).optional().default("file_range"),semanticId:V().optional(),filePath:V().optional(),languageId:V().optional(),range:pe({startLine:Le().nonnegative(),startColumn:Le().nonnegative().optional(),endLine:Le().nonnegative(),endColumn:Le().nonnegative().optional()}).optional()}),N4=pe({code:V(),filePath:V(),languageId:V().optional()}),_4=pe({collapsedByDefault:or().optional(),showFilePath:or().optional(),showSymbolName:or().optional()}),L4=K0.extend({type:h0("reference"),target:D4,snapshot:N4.optional(),display:_4.optional()}),P4=pe({status:Xe(["running","success","error","cancelled"]),exitCode:Le().optional(),startedAt:i0(),finishedAt:i0().optional()}),O4=pe({stdout:V(),stderr:V()}),$4=pe({collapsedOutputByDefault:or().optional(),showCommandPrefix:V().optional()}),B4=K0.extend({type:h0("cli"),command:V(),cwd:V().optional(),env:Gt(V(),V()).optional(),timeoutMs:Le().positive().optional(),lastRun:P4.optional(),outputSnapshot:O4.optional(),display:$4.optional(),terminalId:V().optional()}),q4=pe({kind:Xe(["reference","semantic_ref","text","file_glob","note_section"]),refId:V().optional(),semanticId:V().optional(),content:V().optional(),pattern:V().optional(),heading:V().optional()}),F4=pe({temperature:Le().min(0).max(2).optional(),maxTokens:Le().positive().optional()}).passthrough(),H4=pe({status:Xe(["pending","running","success","error"]),startedAt:i0(),finishedAt:i0().optional(),errorMessage:V().optional()}),U4=pe({title:V().optional(),description:V().optional(),createdPrimitives:Ue(V()).optional()}),W4=K0.extend({type:h0("agent_action"),agentId:V(),goal:V(),inputs:Ue(q4),config:F4.optional(),lastRun:H4.optional(),resultSummary:U4.optional()}),G4=pe({status:Xe(["success","conflict","error"]),appliedAt:i0(),errorMessage:V().optional()}),j4=pe({filePath:V(),diff:V(),semanticRefs:Ue(V()).optional()}),V4=pe({collapsedByDefault:or().optional(),showFileNames:or().optional()}),Y4=K0.extend({type:h0("patch"),patches:Ue(j4),lastApply:G4.optional(),display:V4.optional()}),X4=Xe(["architecture","sequence","state_machine","data_flow","network","flowchart","timeline","dependency_graph"]),as=Xe(["highlighted","muted","danger","success","inactive","warning","active"]),xi=pe({type:Xe(["file","symbol","spec","note","timeline_event","metric","log","test"]),target:V(),metadata:Gt(V(),d0()).optional()}),K4=pe({id:V(),label:V(),kind:V().optional(),semanticStyle:as.optional(),position:pe({x:Le(),y:Le()}).optional(),size:pe({width:Le(),height:Le()}).optional(),binding:xi.optional(),bindings:Ue(xi).optional(),group:V().optional(),metadata:Gt(V(),d0()).optional()}),Z4=pe({id:V(),from:V(),to:V(),label:V().optional(),kind:V().optional(),semanticStyle:as.optional(),animated:or().optional(),dashed:or().optional(),flowDirection:Xe(["forward","backward","bidirectional"]).optional(),bindings:Ue(xi).optional(),metadata:Gt(V(),d0()).optional()}),Q4=pe({id:V(),label:V(),nodeIds:Ue(V()),semanticStyle:as.optional(),metadata:Gt(V(),d0()).optional()}),J4=pe({nodes:Ue(K4),edges:Ue(Z4),groups:Ue(Q4).optional()}),ef=pe({type:Xe(["layered","force","circular","tree","manual"]),direction:Xe(["LR","RL","TB","BT"]).optional(),spacing:Le().optional(),edgeRouting:Xe(["orthogonal","polyline","curved"]).optional()}),tf=Gt(V(),pe({class:V().optional(),style:Gt(V(),V()).optional()})),rf=pe({layout:ef,semanticStyles:tf.optional(),zoom:Le().optional(),pan:pe({x:Le(),y:Le()}).optional(),edgeRouting:Xe(["orthogonal","polyline","curved"]).optional()}),nf=pe({focus:V().optional(),zoom:Le().optional(),pan:pe({x:Le(),y:Le()}).optional()}),af=pe({title:V().optional(),text:V().optional()}),sf=pe({type:V(),data:Gt(V(),d0())}),of=pe({duration:Le().optional(),animate:Ue(Xe(["camera","visibleEdges","visibleNodes","semanticStyle"])).optional()}),lf=pe({id:V(),label:V().optional(),visibleNodes:Ue(V()).optional(),visibleEdges:Ue(V()).optional(),visibleGroups:Ue(V()).optional(),highlightedNodes:Ue(V()).optional(),highlightedEdges:Ue(V()).optional(),camera:nf.optional(),narrative:B1([af,V()]).optional(),overlays:Ue(sf).optional(),transition:of.optional()}),cf=K0.extend({type:h0("diagram"),grammar:X4,model:J4,baseView:rf,states:Ue(lf).optional(),currentStateId:V().optional()}),hu=q1("type",[L4,B4,W4,Y4,cf]);function C3(t){const e=t.match(/^(.+)#symbol:(.+)$/);if(e){const[,a,i]=e;return{filePath:a,type:"symbol",symbol:i}}const r=t.match(/^(.+)#L(\d+)(?:-(\d+))?$/);if(r){const[,a,i,s]=r,o={filePath:a,type:"line",startLine:parseInt(i,10)};return s&&(o.endLine=parseInt(s,10)),o}const n=t.match(/^(.+)#lines:(.+)$/);if(n){const[,a,i]=n;return{filePath:a,refSpec:{type:"lines",value:i}}}return t&&!t.includes("#")?{filePath:t,type:"file"}:null}function I3(t){return t.semanticId?t.semanticId:t.filePath?t.range?t.range.startLine===t.range.endLine?`${t.filePath}#L${t.range.startLine}`:`${t.filePath}#L${t.range.startLine}-${t.range.endLine}`:t.filePath:null}const Cr=new u0("NotesPrimitivesSerializer");function uf(t){return/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i.test(t)}class df{constructor(){se(this,"logger",new u0("NotesPrimitivesSerializer"))}parseMarkdown(e,r={}){return pu(e,r)}serializeToMarkdown(e,r,n={}){return pf(e,r,n)}tiptapNodeToPrimitive(e){return ff(e)}primitiveToTiptapNode(e){return gf(e)}generateId(){return fu()}createBasePrimitive(e,r="user"){return bf(e,r)}}function pu(t,e={}){const{validateSchema:r=!0}=e,n=[],a=t.split(`
360
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */function Bm(t,e){return Pm(t)||Om(t,e)||qm(t,e)||$m()}function qm(t,e){if(t){if(typeof t=="string")return jo(t,e);var r={}.toString.call(t).slice(8,-1);return r==="Object"&&t.constructor&&(r=t.constructor.name),r==="Map"||r==="Set"?Array.from(t):r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?jo(t,e):void 0}}const eu=Object.entries,Vo=Object.setPrototypeOf,Fm=Object.isFrozen,tu=Object.getPrototypeOf,ru=Object.getOwnPropertyDescriptor;let We=Object.freeze,Ve=Object.seal,Qr=Object.create,nu=typeof Reflect<"u"&&Reflect,yi=nu.apply,wi=nu.construct;We||(We=function(e){return e});Ve||(Ve=function(e){return e});yi||(yi=function(e,r){for(var n=arguments.length,a=new Array(n>2?n-2:0),i=2;i<n;i++)a[i-2]=arguments[i];return e.apply(r,a)});wi||(wi=function(e){for(var r=arguments.length,n=new Array(r>1?r-1:0),a=1;a<r;a++)n[a-1]=arguments[a];return new e(...n)});const qt=Ee(Array.prototype.forEach),Hm=Ee(Array.prototype.lastIndexOf),Xo=Ee(Array.prototype.pop),T0=Ee(Array.prototype.push),Um=Ee(Array.prototype.slice),Wm=Ee(Array.prototype.splice),r0=Array.isArray,Ba=au(Set),qa=Ee(Set.prototype.add),E0=Ee(Set.prototype.has),Mr=Ee(String.prototype.toLowerCase),Fa=Ee(String.prototype.toString),Yo=Ee(String.prototype.match),M0=Ee(String.prototype.replace),Ko=Ee(String.prototype.indexOf),Gm=Ee(String.prototype.trim),jm=Ee(Number.prototype.toString),Vm=Ee(Boolean.prototype.toString),Zo=typeof BigInt>"u"?null:Ee(BigInt.prototype.toString),Qo=typeof Symbol>"u"?null:Ee(Symbol.prototype.toString),dt=Ee(Object.prototype.hasOwnProperty),C0=Ee(Object.prototype.toString),je=Ee(RegExp.prototype.test),Ft=au(TypeError);function Ee(t){return function(e){e instanceof RegExp&&(e.lastIndex=0);for(var r=arguments.length,n=new Array(r>1?r-1:0),a=1;a<r;a++)n[a-1]=arguments[a];return yi(t,e,n)}}function au(t){return function(){for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];return wi(t,r)}}function de(t,e){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:Mr;if(Vo&&Vo(t,null),!r0(e))return t;let n=e.length;for(;n--;){let a=e[n];if(typeof a=="string"){const i=r(a);i!==a&&(Fm(e)||(e[n]=i),a=i)}t[a]=!0}return t}function Xm(t){for(let e=0;e<t.length;e++)dt(t,e)||(t[e]=null);return t}function gt(t){const e=Qr(null);for(const n of eu(t)){var r=Bm(n,2);const a=r[0],i=r[1];dt(t,a)&&(r0(i)?e[a]=Xm(i):i&&typeof i=="object"&&i.constructor===Object?e[a]=gt(i):e[a]=i)}return e}function Ym(t){switch(typeof t){case"string":return t;case"number":return jm(t);case"boolean":return Vm(t);case"bigint":return Zo?Zo(t):"0";case"symbol":return Qo?Qo(t):"Symbol()";case"undefined":return C0(t);case"function":case"object":{if(t===null)return C0(t);const e=t,r=St(e,"toString");if(typeof r=="function"){const n=r(e);return typeof n=="string"?n:C0(n)}return C0(t)}default:return C0(t)}}function St(t,e){for(;t!==null;){const n=ru(t,e);if(n){if(n.get)return Ee(n.get);if(typeof n.value=="function")return Ee(n.value)}t=tu(t)}function r(){return null}return r}function Km(t,e){for(;t!==null;){const r=ru(t,e);if(r)return r.get?Ee(r.get):null;t=tu(t)}return null}function Zm(t){try{return je(t,""),!0}catch{return!1}}const Jo=We(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","search","section","select","shadow","slot","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),Ha=We(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","enterkeyhint","exportparts","filter","font","g","glyph","glyphref","hkern","image","inputmode","line","lineargradient","marker","mask","metadata","mpath","part","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),Ua=We(["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"]),Qm=We(["animate","color-profile","cursor","discard","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),Wa=We(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover","mprescripts"]),Jm=We(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),el=We(["#text"]),tl=We(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","command","commandfor","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","exportparts","face","for","headers","height","hidden","high","href","hreflang","id","inert","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","part","pattern","placeholder","playsinline","popover","popovertarget","popovertargetaction","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","slot","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","wrap","xmlns"]),Ga=We(["accent-height","accumulate","additive","alignment-baseline","amplitude","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dominant-baseline","dur","edgemode","elevation","end","exponent","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","intercept","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","mask-type","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","pointer-events","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","slope","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","tablevalues","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-orientation","text-rendering","textlength","type","u1","u2","unicode","values","vector-effect","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),rl=We(["accent","accentunder","align","bevelled","close","columnalign","columnlines","columnspacing","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lquote","lspace","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),Cn=We(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),e4=Ve(/{{[\w\W]*|^[\w\W]*}}/g),t4=Ve(/<%[\w\W]*|^[\w\W]*%>/g),r4=Ve(/\${[\w\W]*/g),n4=Ve(/^data-[\-\w.\u00B7-\uFFFF]+$/),a4=Ve(/^aria-[\-\w]+$/),nl=Ve(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),i4=Ve(/^(?:\w+script|data):/i),s4=Ve(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),o4=Ve(/^html$/i),l4=Ve(/^[a-z][.\w]*(-[.\w]+)+$/i),ja=Ve(/<[/\w!]/g),al=Ve(/<[/\w]/g),c4=Ve(/<\/no(script|embed|frames)/i),il=Ve(/\/>/i),_e={element:1,attribute:2,text:3,cdataSection:4,entityReference:5,entityNode:6,processingInstruction:7,comment:8,document:9,documentType:10,documentFragment:11,notation:12},u4=We(de({},["style","script","xmp","iframe","noembed","noframes","plaintext","noscript"])),d4=function(){return typeof window>"u"?null:window},h4=function(e,r){if(typeof e!="object"||typeof e.createPolicy!="function")return null;let n=null;const a="data-tt-policy-suffix";r&&r.hasAttribute(a)&&(n=r.getAttribute(a));const i="dompurify"+(n?"#"+n:"");try{return e.createPolicy(i,{createHTML(s){return s},createScriptURL(s){return s}})}catch{return console.warn("TrustedTypes policy "+i+" could not be created."),null}},sl=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}},ar=function(e,r,n,a){return dt(e,r)&&r0(e[r])?de(a.base?gt(a.base):{},e[r],a.transform):n},Va=function(e,r,n){const a=dt(e,r)?e[r]:void 0;return a&&typeof a=="object"?gt(a):n()};function iu(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:d4();const e=N=>iu(N);if(e.version="3.4.17",e.removed=[],!t||!t.document||t.document.nodeType!==_e.document||!t.Element)return e.isSupported=!1,e;let r=t.document;const n=r,a=n.currentScript;t.DocumentFragment;const i=t.HTMLTemplateElement,s=t.Node,o=t.Element,c=t.NodeFilter;t.NamedNodeMap===void 0&&(t.NamedNodeMap||t.MozNamedAttrMap),t.HTMLFormElement;const d=t.DOMParser,p=t.trustedTypes,g=o.prototype,v=St(g,"cloneNode"),w=St(g,"remove"),A=St(g,"removeAttributeNode"),M=St(g,"nextSibling"),D=St(g,"childNodes"),S=St(g,"parentNode"),C=St(g,"shadowRoot"),W=St(g,"attributes"),K=s&&s.prototype?St(s.prototype,"nodeType"):null,Y=s&&s.prototype?St(s.prototype,"nodeName"):null,T=s&&s.prototype?St(s.prototype,"ownerDocument"):null,R=function(f){return K?K(f):f.nodeType},U=function(f){return Y?Y(f):f.nodeName},O=Km(g,"namespaceURI"),$=function(f){return O?O(f):f.namespaceURI};if(typeof i=="function"){const N=r.createElement("template");N.content&&N.content.ownerDocument&&(r=N.content.ownerDocument)}let L,F="",X,J=!1,ee=0;const le=function(){if(ee>0)throw Ft('A configured TRUSTED_TYPES_POLICY callback (createHTML or createScriptURL) must not call DOMPurify.sanitize, as that causes infinite recursion. Do not pass a policy whose callbacks wrap DOMPurify as TRUSTED_TYPES_POLICY; see the "DOMPurify and Trusted Types" section of the README.')},ue=function(f){le(),ee++;try{return L.createHTML(f)}finally{ee--}},De=function(f){le(),ee++;try{return L.createScriptURL(f)}finally{ee--}},ve=function(){return J||(X=h4(p,a),J=!0),X},Ae=r,st=Ae.implementation,wt=Ae.createNodeIterator,Ze=Ae.createDocumentFragment,Qe=Ae.getElementsByTagName,gr=n.importNode;let ye=sl();e.isSupported=typeof eu=="function"&&typeof S=="function"&&st&&st.createHTMLDocument!==void 0;const Zt=e4,J0=t4,Qt=r4,en=n4,tn=a4,rn=i4,vr=s4,Br=l4;let nn=nl,xe=null;const v0=de({},[...Jo,...Ha,...Ua,...Wa,...el]);let we=null;const qr=de({},[...tl,...Ga,...rl,...Cn]);let Je=Object.seal(Qr(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),br=null,an=null;const kt=Object.seal(Qr(null,{tagCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeCheck:{writable:!0,configurable:!1,enumerable:!0,value:null}}));let b0=!0,Fr=!0,sn=!1,y0=!0,ot=!1,xt=!0,yr=!1,ta=!1,on=null,ln=null,ra=!1,Hr=!1,cn=!1,un=!1,ds=!0,hs=!1;const ps="user-content-";let na=!0,aa=!1,wr=null,Ur={},kr=null;const ms=de({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","selectedcontent","style","svg","template","thead","title","video","xmp"]);let fs=null;const gs=de({},["audio","video","img","source","image","track"]);let vs=null;const bs=de({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),dn="http://www.w3.org/1998/Math/MathML",hn="http://www.w3.org/2000/svg",zt="http://www.w3.org/1999/xhtml";let Wr=zt,ia=!1,sa=null;const $u=de({},[dn,hn,zt],Fa),ys=We(["mi","mo","mn","ms","mtext"]);let oa=de({},ys);const ws=We(["annotation-xml"]);let la=de({},ws);const Bu=de({},["title","style","font","a","script"]);let w0=null;const qu=["application/xhtml+xml","text/html"],Fu="text/html";let Ne=null,Gr=null;const Hu=r.createElement("form"),ks=function(f){return f instanceof RegExp||f instanceof Function},ca=function(){let f=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(Gr&&Gr===f)return;(!f||typeof f!="object")&&(f={}),f=gt(f),w0=qu.indexOf(f.PARSER_MEDIA_TYPE)===-1?Fu:f.PARSER_MEDIA_TYPE,Ne=w0==="application/xhtml+xml"?Fa:Mr,xe=ar(f,"ALLOWED_TAGS",v0,{transform:Ne}),we=ar(f,"ALLOWED_ATTR",qr,{transform:Ne}),sa=ar(f,"ALLOWED_NAMESPACES",$u,{transform:Fa}),vs=ar(f,"ADD_URI_SAFE_ATTR",bs,{transform:Ne,base:bs}),fs=ar(f,"ADD_DATA_URI_TAGS",gs,{transform:Ne,base:gs}),kr=ar(f,"FORBID_CONTENTS",ms,{transform:Ne}),br=ar(f,"FORBID_TAGS",gt({}),{transform:Ne}),an=ar(f,"FORBID_ATTR",gt({}),{transform:Ne}),Ur=dt(f,"USE_PROFILES")?f.USE_PROFILES&&typeof f.USE_PROFILES=="object"?gt(f.USE_PROFILES):f.USE_PROFILES:!1,b0=f.ALLOW_ARIA_ATTR!==!1,Fr=f.ALLOW_DATA_ATTR!==!1,sn=f.ALLOW_UNKNOWN_PROTOCOLS||!1,y0=f.ALLOW_SELF_CLOSE_IN_ATTR!==!1,ot=f.SAFE_FOR_TEMPLATES||!1,xt=f.SAFE_FOR_XML!==!1,yr=f.WHOLE_DOCUMENT||!1,Hr=f.RETURN_DOM||!1,cn=f.RETURN_DOM_FRAGMENT||!1,un=f.RETURN_TRUSTED_TYPE||!1,ra=f.FORCE_BODY||!1,ds=f.SANITIZE_DOM!==!1,hs=f.SANITIZE_NAMED_PROPS||!1,na=f.KEEP_CONTENT!==!1,aa=f.IN_PLACE||!1,nn=Zm(f.ALLOWED_URI_REGEXP)?f.ALLOWED_URI_REGEXP:nl,Wr=typeof f.NAMESPACE=="string"?f.NAMESPACE:zt,oa=Va(f,"MATHML_TEXT_INTEGRATION_POINTS",()=>de({},ys)),la=Va(f,"HTML_INTEGRATION_POINTS",()=>de({},ws));const x=Va(f,"CUSTOM_ELEMENT_HANDLING",()=>Qr(null));if(Je=Qr(null),dt(x,"tagNameCheck")&&ks(x.tagNameCheck)&&(Je.tagNameCheck=x.tagNameCheck),dt(x,"attributeNameCheck")&&ks(x.attributeNameCheck)&&(Je.attributeNameCheck=x.attributeNameCheck),dt(x,"allowCustomizedBuiltInElements")&&typeof x.allowCustomizedBuiltInElements=="boolean"&&(Je.allowCustomizedBuiltInElements=x.allowCustomizedBuiltInElements),Ve(Je),ot&&(Fr=!1),cn&&(Hr=!0),Ur&&(xe=de({},el),we=Qr(null),Ur.html===!0&&(de(xe,Jo),de(we,tl)),Ur.svg===!0&&(de(xe,Ha),de(we,Ga),de(we,Cn)),Ur.svgFilters===!0&&(de(xe,Ua),de(we,Ga),de(we,Cn)),Ur.mathMl===!0&&(de(xe,Wa),de(we,rl),de(we,Cn))),kt.tagCheck=null,kt.attributeCheck=null,dt(f,"ADD_TAGS")&&(typeof f.ADD_TAGS=="function"?kt.tagCheck=f.ADD_TAGS:r0(f.ADD_TAGS)&&(xe===v0&&(xe=gt(xe)),de(xe,f.ADD_TAGS,Ne))),dt(f,"ADD_ATTR")&&(typeof f.ADD_ATTR=="function"?kt.attributeCheck=f.ADD_ATTR:r0(f.ADD_ATTR)&&(we===qr&&(we=gt(we)),de(we,f.ADD_ATTR,Ne))),dt(f,"ADD_FORBID_CONTENTS")&&r0(f.ADD_FORBID_CONTENTS)&&(kr===ms&&(kr=gt(kr)),de(kr,f.ADD_FORBID_CONTENTS,Ne)),na&&(xe["#text"]=!0),yr&&de(xe,["html","head","body"]),xe.table&&(de(xe,["tbody"]),delete br.tbody),f.TRUSTED_TYPES_POLICY){if(typeof f.TRUSTED_TYPES_POLICY.createHTML!="function")throw Ft('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof f.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw Ft('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');const I=L;L=f.TRUSTED_TYPES_POLICY;try{F=ue("")}catch(z){throw L=I,z}}else f.TRUSTED_TYPES_POLICY===null?(L=void 0,F=""):(L===void 0&&(L=ve()),L&&typeof F=="string"&&(F=ue("")));We&&We(f),Gr=f},xs=de({},[...Ha,...Ua,...Qm]),Ss=de({},[...Wa,...Jm]),Uu=function(f,x,I){return x.namespaceURI===zt?f==="svg":x.namespaceURI===dn?f==="svg"&&(I==="annotation-xml"||oa[I]):!!xs[f]},Wu=function(f,x,I){return x.namespaceURI===zt?f==="math":x.namespaceURI===hn?f==="math"&&la[I]:!!Ss[f]},Gu=function(f,x,I){return x.namespaceURI===hn&&!la[I]||x.namespaceURI===dn&&!oa[I]?!1:!Ss[f]&&(Bu[f]||!xs[f])},ju=function(f){const x=$(f),I=Mr(U(f)),z=S(f);let Z,te;return z&&R(z)===_e.element?(Z={namespaceURI:$(z)},te=Mr(U(z))):(Z={namespaceURI:Wr},te="template"),sa[x]?x===hn?Uu(I,Z,te):x===dn?Wu(I,Z,te):x===zt?Gu(I,Z,te):!!(w0==="application/xhtml+xml"&&sa[x]):!1},Jt=function(f){T0(e.removed,{element:f});try{S(f).removeChild(f)}catch{if(w(f),!S(f))throw Ft("a node selected for removal could not be detached from its tree and cannot be safely returned; refusing to sanitize in place")}},As=function(f,x,I){try{A(f,x)}catch{try{f.removeAttribute(I)}catch{}}},ua=function(f){ha(f);const x=D(f);x&&qt(Um(x),z=>{try{w(z)}catch{}});const I=R(f)===_e.element?W(f):null;if(I)for(let z=I.length-1;z>=0;--z){const Z=I[z],te=Z&&Z.name;typeof te=="string"&&As(f,Z,te)}},jr=function(f,x,I){if(!I)try{I=x.getAttributeNode(f)}catch{I=null}T0(e.removed,{attribute:I||null,from:x});try{I?A(x,I):x.removeAttribute(f)}catch{try{x.removeAttribute(f)}catch{}}if(f==="is")if(Hr||cn)try{Jt(x)}catch{}else try{x.setAttribute(f,"")}catch{}},Ts=function(f){const x=W(f);if(x)for(let I=x.length-1;I>=0;--I){const z=x[I],Z=z&&z.name;typeof Z!="string"||we[Ne(Z)]||As(f,z,Z)}},da=function(f,x){let I=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;const z=[f];for(;z.length>0;){const Z=z.pop();if(x(Z)===!1)continue;if(I&&R(Z)===_e.element){const ie=C(Z);er(ie)&&z.push(ie)}const te=D(Z);if(te)for(let ie=te.length-1;ie>=0;--ie)z.push(te[ie])}},ha=function(f){da(f,x=>{R(x)===_e.element&&Ts(x)})},pa=function(f){const x=[];return da(f,I=>{x.push(I)},!0),x},Vu=function(f,x){const I=Ba();qt(pa(f),z=>{R(z)===_e.element&&qa(I,z)}),qt(x,z=>{R(z)===_e.element&&!E0(I,z)&&Ts(z)})},Es=function(f,x){let I=!1;return qt(e.removed,z=>{z.element&&(I=I||z.element===f,ha(z.element))}),Vu(f,x),I},Xu=8,Yu=function(f,x){const I=wr;let z=null;const Z=()=>(z||(z=Ba(),qt(x,te=>{qa(z,te)})),z);for(let te=0;;te++){const ie=pa(f),Be=[f];let Rt=!1;if(qt(ie,et=>{R(et)===_e.documentFragment?T0(Be,et):!Rt&&!E0(I,et)&&(Rt=E0(Z(),et))}),!Rt)return;if(te>=Xu)throw Ft("the tree kept changing during in-place sanitization; refusing to return it");qt(Be,(et,lt)=>{Ku(et,lt>0,f,Z())})}},Ku=function(f,x,I,z){const Z=ma(f);let te;for(;te=Z.nextNode();)!E0(z,te)||E0(wr,te)||(x&&Ct(ye.uponSanitizeShadowNode,te,null),ga(te,I),va(te,I),er(te.content)&&x0(te.content))},Zu=function(f){wr&&qa(wr,f)},Ms=function(f,x){return xt?f==="patchsrc"?!0:f==="for"&&x!=="label"&&x!=="output":!1},Qu=function(f){xt&&da(f,x=>{const I=R(x);if(I===_e.processingInstruction||I===_e.comment&&je(al,x.data)){try{w(x)}catch{}return!1}if(I===_e.element){const z=x,Z=Ne(U(x));try{z.hasAttribute&&z.hasAttribute("patchsrc")&&z.removeAttribute("patchsrc"),z.hasAttribute&&z.hasAttribute("for")&&Ms("for",Z)&&z.removeAttribute("for")}catch{}}return!0})},Cs=function(f){let x=null,I=null;if(ra)f="<remove></remove>"+f;else{const te=Yo(f,/^[\r\n\t ]+/);I=te&&te[0]}w0==="application/xhtml+xml"&&Wr===zt&&(f='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+f+"</body></html>");const z=L?ue(f):f;if(Wr===zt)try{x=new d().parseFromString(z,w0)}catch{}if(!x||!x.documentElement){x=st.createDocument(Wr,"template",null);try{x.documentElement.innerHTML=ia?F:z}catch{}}const Z=x.body||x.documentElement;return f&&I&&Z.insertBefore(r.createTextNode(I),Z.childNodes[0]||null),Wr===zt?Qe.call(x,yr?"html":"body")[0]:yr?x.documentElement:Z},ma=function(f){const x=T?T(f):f.ownerDocument;return wt.call(x||f,f,c.SHOW_ELEMENT|c.SHOW_COMMENT|c.SHOW_TEXT|c.SHOW_PROCESSING_INSTRUCTION|c.SHOW_CDATA_SECTION,null)},pn=function(f){return f=M0(f,Zt," "),f=M0(f,J0," "),f=M0(f,Qt," "),f},fa=function(f){var x;Is(f);const I=(x=f.querySelectorAll)===null||x===void 0?void 0:x.call(f,"template");I&&qt(I,z=>{er(z.content)&&fa(z.content)})},Is=function(f){f.normalize();const x=T?T(f):f.ownerDocument,I=wt.call(x||f,f,c.SHOW_TEXT|c.SHOW_COMMENT|c.SHOW_CDATA_SECTION|c.SHOW_PROCESSING_INSTRUCTION,null);let z=I.nextNode();for(;z;)z.data=pn(z.data),z=I.nextNode()},mn=function(f){const x=Y?Y(f):null;return typeof x!="string"||Ne(x)!=="form"?!1:typeof f.nodeName!="string"||typeof f.textContent!="string"||typeof f.removeChild!="function"||f.attributes!==W(f)||typeof f.removeAttribute!="function"||typeof f.removeAttributeNode!="function"||typeof f.getAttributeNode!="function"||typeof f.setAttribute!="function"||typeof f.namespaceURI!="string"||typeof f.insertBefore!="function"||typeof f.hasChildNodes!="function"||f.nodeType!==K(f)||f.childNodes!==D(f)},er=function(f){if(!K||typeof f!="object"||f===null)return!1;try{return K(f)===_e.documentFragment}catch{return!1}},k0=function(f){if(!K||typeof f!="object"||f===null)return!1;try{return typeof K(f)=="number"}catch{return!1}};function Ct(N,f,x){N.length!==0&&qt(N,I=>{I.call(e,f,x,Gr)})}const Ju=function(f,x){return!!(xt&&f.hasChildNodes()&&!k0(f.firstElementChild)&&je(ja,f.textContent)&&je(ja,f.innerHTML)||xt&&u4[x]&&R(f)===_e.element&&$(f)===zt&&(k0(f.firstElementChild)||typeof f.textContent=="string"&&je(ja,f.textContent))||f.nodeType===_e.processingInstruction||xt&&f.nodeType===_e.comment&&je(al,f.data))},fn=function(f,x){if(f instanceof RegExp)return je(f,x);if(f instanceof Function){for(var I=arguments.length,z=new Array(I>2?I-2:0),Z=2;Z<I;Z++)z[Z-2]=arguments[Z];return!!f(x,...z)}return!1},e1=function(f,x,I){if(!br[x]&&Ds(x)&&fn(Je.tagNameCheck,x))return!1;if(na&&!kr[x]&&!kr[Mr(x)]){const z=S(f),Z=D(f);if(Z&&z){const te=Z.length;for(let ie=te-1;ie>=0;--ie){const Be=f===I?v(Z[ie],!0):Z[ie];z.insertBefore(Be,M(f))}}}return Jt(f),!0},zs=function(f,x,I,z){return f.length===0?x:x===I||x===z?gt(x):x},Vr=function(f,x){return f===x||S(f)!==null?!1:(aa&&ha(f),!0)},ga=function(f,x){if(Zu(f),Ct(ye.beforeSanitizeElements,f,null),Vr(f,x))return!0;if(mn(f))return Jt(f),!0;const I=Ne(U(f));if(xe=zs(ye.uponSanitizeElement,xe,v0,on),Ct(ye.uponSanitizeElement,f,{tagName:I,allowedTags:xe}),Vr(f,x))return!0;if(Ju(f,I))return Jt(f),!0;if(br[I]||!(kt.tagCheck instanceof Function&&kt.tagCheck(I))&&!xe[I]){const z=e1(f,I,x);return z===!1&&(Ct(ye.afterSanitizeElements,f,null),Vr(f,x))?!0:z}if(R(f)===_e.element&&!ju(f)||(I==="noscript"||I==="noembed"||I==="noframes")&&je(c4,f.innerHTML))return Jt(f),!0;if(ot&&f.nodeType===_e.text){const z=pn(f.textContent);f.textContent!==z&&(T0(e.removed,{element:f.cloneNode()}),f.textContent=z)}return Ct(ye.afterSanitizeElements,f,null),Vr(f,x)},Rs=function(f,x,I){if(an[x]||Ms(x,f)||ds&&(x==="id"||x==="name")&&(I in r||I in Hu))return!1;const z=we[x]||kt.attributeCheck instanceof Function&&kt.attributeCheck(x,f);return Fr&&je(en,x)||b0&&je(tn,x)?!0:z?vs[x]||je(nn,M0(I,vr,""))||(x==="src"||x==="xlink:href"||x==="href")&&f!=="script"&&Ko(I,"data:")===0&&fs[f]||sn&&!je(rn,M0(I,vr,""))?!0:!I:Ds(f)&&fn(Je.tagNameCheck,f)&&fn(Je.attributeNameCheck,x,f)||x==="is"&&Je.allowCustomizedBuiltInElements&&fn(Je.tagNameCheck,I)},t1=de({},["annotation-xml","color-profile","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","missing-glyph"]),Ds=function(f){return!t1[Mr(f)]&&je(Br,f)},r1=function(f,x,I,z){if(L&&typeof p=="object"&&typeof p.getAttributeType=="function"&&!I)switch(p.getAttributeType(f,x)){case"TrustedHTML":return ue(z);case"TrustedScriptURL":return De(z)}return z},n1=function(f,x,I,z){try{return I?f.setAttributeNS(I,x,z):f.setAttribute(x,z),mn(f)?(Jt(f),!1):!0}catch{return jr(x,f),!1}},Ns=function(f,x){return xt&&je(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i,x)?!0:Mr(f)==="attributename"&&Yo(x,"href")!==null},va=function(f,x){if(Ct(ye.beforeSanitizeAttributes,f,null),Vr(f,x))return;const I=f.attributes;if(!I||mn(f))return;we=zs(ye.uponSanitizeAttribute,we,qr,ln);const z={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:we,forceKeepAttr:void 0};let Z=I.length;const te=Ne(f.nodeName);for(;Z--;){const ie=I[Z],Be=ie.name,Rt=ie.namespaceURI,et=ie.value,lt=Ne(Be),Xr=et;let ct=Be==="value"?Xr:Gm(Xr),_s=!1;if(z.attrName=lt,z.attrValue=ct,z.keepAttr=!0,z.forceKeepAttr=void 0,Ct(ye.uponSanitizeAttribute,f,z),ct=z.attrValue,hs&&(lt==="id"||lt==="name")&&Ko(ct,ps)!==0&&(jr(Be,f,ie),ct=ps+ct,_s=!0),Ns(Be,ct)){jr(Be,f,ie);continue}if(!z.forceKeepAttr){if(!z.keepAttr){jr(Be,f,ie);continue}if(!y0&&je(il,ct)){jr(Be,f,ie);continue}if(ot&&(ct=pn(ct)),!Rs(te,lt,ct)){jr(Be,f,ie);continue}ct=r1(te,lt,Rt,ct),ct!==Xr&&n1(f,Be,Rt,ct)&&_s&&Xo(e.removed)}}Ct(ye.afterSanitizeAttributes,f,null),Vr(f,x)},x0=function(f){let x=null;const I=ma(f);for(Ct(ye.beforeSanitizeShadowDOM,f,null);x=I.nextNode();)if(Ct(ye.uponSanitizeShadowNode,x,null),ga(x,f),va(x,f),er(x.content)&&x0(x.content),R(x)===_e.element){const z=C(x);er(z)&&(ba(z),x0(z))}ot&&Is(f),Ct(ye.afterSanitizeShadowDOM,f,null)},ba=function(f){const x=[{node:f,shadow:null}];for(;x.length>0;){const I=x.pop();if(I.shadow){x0(I.shadow);continue}const z=I.node,Z=R(z)===_e.element,te=D(z);if(te)for(let ie=te.length-1;ie>=0;--ie)x.push({node:te[ie],shadow:null});if(Z){const ie=Y?Y(z):null;if(typeof ie=="string"&&Ne(ie)==="template"){const Be=z.content;er(Be)&&x.push({node:Be,shadow:null})}}if(Z){const ie=C(z);er(ie)&&x.push({node:null,shadow:ie},{node:ie,shadow:null})}}};return e.sanitize=function(N){let f=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},x=null,I=null,z=null,Z=null;if(ia=!N,ia&&(N="<!-->"),typeof N!="string"&&!k0(N)&&(N=Ym(N),typeof N!="string"))throw Ft("dirty is not a string, aborting");if(!e.isSupported)return N;ta?(xe=on,we=ln):ca(f),(ye.uponSanitizeElement.length>0||ye.uponSanitizeAttribute.length>0)&&(xe=gt(xe)),ye.uponSanitizeAttribute.length>0&&(we=gt(we)),e.removed=[];const te=aa&&typeof N!="string"&&k0(N);let ie=[];const Be=wr;if(te){Qu(N);const lt=U(N);if(typeof lt=="string"){const Xr=Ne(lt);if(!xe[Xr]||br[Xr])throw ua(N),Ft("root node is forbidden and cannot be sanitized in-place")}if(mn(N))throw ua(N),Ft("root node is clobbered and cannot be sanitized in-place");ie=pa(N),wr=Ba()}else if(k0(N))x=Cs("<!---->"),I=x.ownerDocument.importNode(N,!0),I.nodeType===_e.element&&I.nodeName==="BODY"||I.nodeName==="HTML"?x=I:x.appendChild(I),ba(x);else{if(!Hr&&!ot&&!yr&&N.indexOf("<")===-1)return L&&un?ue(N):N;if(x=Cs(N),!x)return Hr?null:un?F:""}x&&ra&&Jt(x.firstChild);const Rt=te?N:x;try{te&&ba(N);const lt=ma(Rt);for(;z=lt.nextNode();)ga(z,Rt),va(z,Rt),er(z.content)&&x0(z.content);te&&Yu(N,ie)}catch(lt){throw te&&(ua(N),Es(N,ie)),lt}finally{wr=Be}if(te){if(Es(N,ie))throw Ft("a node selected for removal could not be safely returned; refusing to sanitize in place");return ot&&fa(N),N}if(Hr){if(ot&&fa(x),cn)for(Z=Ze.call(x.ownerDocument);x.firstChild;)Z.appendChild(x.firstChild);else Z=x;return(we.shadowroot||we.shadowrootmode)&&(Z=gr.call(n,Z,!0)),Z}let et=yr?x.outerHTML:x.innerHTML;return yr&&xe["!doctype"]&&x.ownerDocument&&x.ownerDocument.doctype&&x.ownerDocument.doctype.name&&je(o4,x.ownerDocument.doctype.name)&&(et="<!DOCTYPE "+x.ownerDocument.doctype.name+`>
361
+ `+et),ot&&(et=pn(et)),L&&un?ue(et):et},e.setConfig=function(){let N=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};ca(N),ta=!0,on=xe,ln=we},e.clearConfig=function(){Gr=null,ta=!1,on=null,ln=null,L=X,F=""},e.isValidAttribute=function(N,f,x){Gr||ca({});const I=Ne(N),z=Ne(f);return typeof x=="string"&&(Ns(f,x)||!y0&&je(il,x))?!1:Rs(I,z,x)},e.addHook=function(N,f){typeof f=="function"&&dt(ye,N)&&T0(ye[N],f)},e.removeHook=function(N,f){if(dt(ye,N)){if(f!==void 0){const x=Hm(ye[N],f);return x===-1?void 0:Wm(ye[N],x,1)[0]}return Xo(ye[N])}},e.removeHooks=function(N){dt(ye,N)&&(ye[N]=[])},e.removeAllHooks=function(){ye=sl()},e}var es=iu();const ts=/\.(?:png|jpe?g|gif|webp)$/i,su=/\.(?:mp4|webm)$/i;function p4(t,e){return e.readOnly===!0&&t===Bl}function rs(t){return ts.test(t)?"image":su.test(t)?"video":null}const m4=/^[A-Za-z0-9._-]+$/;function _r(t){try{return decodeURIComponent(t)}catch{return null}}function Y0(t){return m4.test(t)&&t!=="."&&t!==".."}function f4(t){if(!/^[\s\u0000-\u001f]*workspace-asset:/i.test(t))return!1;const e=t.split(/[?#]/)[0].replace(/%([a-f0-9]{2})/gi,(r,n)=>String.fromCharCode(Number.parseInt(n,16)));return/\.(?:mp4|webm)$/i.test(e.trim())}function ou(t,e){if(t!==t.trim())return null;const r=/^workspace-asset:\/\/([^/?#]+)\/([^/?#]+)(\?[^#]*)?$/.exec(t);if(!r||!e||!Y0(e)||r[1]!==e)return null;const n=_r(r[2]);if(!n||!/^[A-Za-z0-9._-]+$/.test(n))return null;const a=r[3];if(a){if(!/^\?[^&=]+=[^&=]+(?:&[^&=]+=[^&=]+)*$/.test(a))return null;const i=new Set;for(const[s,o]of new URLSearchParams(a)){if(s!=="backend"&&s!=="v"||i.has(s)||!o||/[^A-Za-z0-9._-]/.test(o))return null;i.add(s)}}return n}function ns(t,e){const r=ou(t,e);return!r||!su.test(r)?null:{kind:"workspace",url:t,mimeType:r.toLowerCase().endsWith(".webm")?"video/webm":"video/mp4"}}function A3(t,e){const r=ou(t,e);return r&&ts.test(r)?t:null}function lu(t,e,r={}){if(!t.startsWith("intent://"))return null;const a=t.slice(9).split(/[?#]/)[0].split("/"),i=a[0],s=a.slice(1);if(!i)return null;let o,c;if(s[0]==="file")o=e,c=s.slice(1);else if(s.length>=3&&s[1]==="file"){const g=_r(s[0]);if(!g||g!==e&&!p4(e,r))return null;o=g,c=s.slice(2)}else return null;if(!o||!Y0(o)||c.length===0)return null;const d=[];for(const g of c){const v=_r(g);if(v===null||v.length===0||v==="."||v===".."||v.includes("/")||v.includes("\\"))return null;d.push(v)}if(/^[A-Za-z]:/.test(d[0]))return null;const p=d.map(g=>encodeURIComponent(g)).join("/");return{workspaceId:o,path:d.join("/"),encodedPath:p}}function g4(t,e,r={}){const n=lu(t,e,r);if(!n)return null;const a=rs(n.path);return a?{url:`workspace-file://${n.workspaceId}/${n.encodedPath}`,kind:a}:null}function T3(t,e,r={}){const n=g4(t,e,r);return n?.kind==="image"?n.url:null}function ol(t){if(!t.startsWith("workspace-file://"))return null;const e=t.slice(17).split(/[?#]/)[0],[r,...n]=e.split("/");if(!r||!Y0(r)||n.length===0)return null;const a=[];for(const s of n){const o=_r(s);if(o===null||o.length===0||o==="."||o===".."||o.includes("/")||o.includes("\\"))return null;a.push(o)}return/^[A-Za-z]:/.test(a[0])||!rs(a[a.length-1])?null:`intent://local/file/${a.map(s=>encodeURIComponent(s)).join("/")}`}function ki(t){if(!t.startsWith("workspace-file://"))return null;const e=t.slice(17).split(/[?#]/)[0],[r,...n]=e.split("/");if(!r||!Y0(r)||n.length===0)return null;const a=[];for(const s of n){const o=_r(s);if(o===null||o.length===0||o==="."||o===".."||o.includes("/")||o.includes("\\"))return null;a.push(o)}return/^[A-Za-z]:/.test(a[0])||!ts.test(a[a.length-1])?null:`intent://local/file/${a.map(s=>encodeURIComponent(s)).join("/")}`}const v4=/^[A-Za-z][A-Za-z0-9+.-]*:/;function b4(t,e){if(!t||t!==t.trim()||v4.test(t)||/^[/\\#?]/.test(t))return null;const r=t.split(/[?#]/)[0];if(!r||r.includes("\\"))return null;const n=e?e.split("/"):[];if(n.some(a=>!a||a==="."||a===".."))return null;for(const a of r.split("/")){const i=_r(a);if(i===null||i.includes("/")||i.includes("\\")||i.includes("\0"))return null;if(!(i===""||i===".")){if(i===".."){if(n.length===0)return null;n.pop();continue}n.push(i)}}return n.length===0||/^[A-Za-z]:/.test(n[0])?null:n.join("/")}const Jr=t=>t.replace(/&/g,"&amp;").replace(/"/g,"&quot;"),y4=/^intent:\/\/[^/?#]+\/file\//,w4=/^intent:\/\/[^/?#]+\/([^/?#]+)\/file\//;function k4(t,e){if(y4.test(t))return e?"invalid-link":"workspace-unknown";const r=w4.exec(t);if(!r)return null;const n=_r(r[1]);return e&&n&&Y0(n)&&n!==e?"other-workspace":"invalid-link"}const x4="v";let ll=0;function cu(){return ll+=1,`${Date.now().toString(36)}-${ll.toString(36)}`}function E3(t){if(/^https?:\/\//i.test(t))return t;if(t.includes("#"))return null;const e=t.indexOf("?"),r=e<0?t:t.slice(0,e),n=e<0?"":t.slice(e+1);if(t.startsWith("workspace-file://")){if(!ki(t))return null}else if(!/^workspace-asset:\/\/[A-Za-z0-9._-]+\/[A-Za-z0-9._-]+$/.test(r))return null;if(e>=0&&!/^(?:backend|v)=[A-Za-z0-9._-]+(?:&(?:backend|v)=[A-Za-z0-9._-]+)*$/.test(n))return null;const a=new URLSearchParams(n);return a.getAll("backend").length>1||a.getAll("v").length>1?null:(a.set("v",cu()),`${r}?${a}`)}function S4(t,e){return t.includes("workspace-file://")?t.replace(/<img\b[^>]*>/gi,r=>{const n=/\ssrc="(workspace-file:\/\/[^"?#]*)"/i.exec(r);return n?r.replace(n[0],` src="${n[1]}?${x4}=${Jr(e)}"`):r}):t}function A4(t){if(!t.includes("&"))return t;if(typeof document>"u")return null;const e=document.createElement("template");return e.innerHTML=`<img src="${t}">`,e.content.firstElementChild?.getAttribute("src")??null}function T4(t,e){return t.includes("<img")?t.replace(/<img\b[^>]*>/gi,r=>{const n=/\ssrc="([^"]*)"/i.exec(r);if(!n)return r;const a=A4(n[1]),i=a===null?null:b4(a,e);if(!i)return r;const s=i.split("/").map(o=>encodeURIComponent(o)).join("/");return r.replace(n[0],` src="${Jr(`intent://local/file/${s}`)}"`)}):t}function M3(t){const e=t.getAttribute("data-media-unavailable");return e==="other-workspace"||e==="invalid-link"?e:"load-failed"}function E4(t,e,r={}){return!t.includes("intent://")&&!t.includes("workspace-asset://")?t:t.replace(/<img\b[^>]*>/gi,n=>{const a=/\ssrc="([^"]*)"/i.exec(n);if(!a)return n;const i=a[1].replace(/&amp;/g,"&"),s=ns(i,e);if(s){const g=/\salt="([^"]*)"/i.exec(n)?.[1]??"";return`<video src="${Jr(s.url)}" controls preload="metadata" playsinline class="markdown-video" data-name="${g}"></video>`}if(!i.startsWith("intent://"))return n;const o=lu(i,e,r);if(!o){const g=k4(i,e);return!g||g!=="workspace-unknown"&&!r.readOnly?n:n.replace(a[0],` data-media-src="${a[1]}"`).replace(/>$/,` data-media-unavailable="${g}">`)}const c=rs(o.path);if(!c){const g=o.path.split(".").pop()?.toLowerCase()??"";return n.replace(/>$/,` data-media-unsupported="${Jr(g)}">`)}const d={url:`workspace-file://${o.workspaceId}/${o.encodedPath}`,kind:c};if(d.kind==="image")return n.replace(a[1],Jr(d.url));const p=/\salt="([^"]*)"/i.exec(n)?.[1]??"";return`<video src="${Jr(d.url)}" controls preload="metadata" playsinline class="markdown-video" data-name="${p}"></video>`})}const cl=new u0("html-sanitizer"),Bn=t=>/^[\s\u0000-\u001f]*workspace-file:/i.test(t);let lr,P0=!1,_0=!1,Nn=!1;const ul=/^-?(?:\d+(?:\.\d+)?|\.\d+)(?:em|px|%)$/,M4=new Set(["border-bottom-width","border-right-width","border-top-width","border-width","bottom","height","left","margin-left","margin-right","margin-top","min-width","padding-left","top","vertical-align","width"]);function C4(t){const e=[];for(const r of t.split(";")){const n=r.indexOf(":");if(n<0)continue;const a=r.slice(0,n).trim().toLowerCase(),i=r.slice(n+1).trim().toLowerCase(),s=i.split(/\s+/);(M4.has(a)&&ul.test(i)||a==="margin"&&s.length<=4&&s.every(c=>c==="0"||ul.test(c))||a==="position"&&i==="relative"||(a==="border-style"||a==="border-right-style")&&(i==="solid"||i==="dashed"))&&e.push(`${a}:${i}`)}return e.length?`${e.join(";")};`:""}function I4(t){const e=t.closest(".math-inline[data-math-source], .math-display[data-math-source]"),r=t.closest(".katex");return e!==null&&r!==null&&e.contains(r)}function uu(t){if(!Bn(t))return!1;const e=/^[\s\u0000-\u001f]*workspace-file:\/\/([^/?#]+)/i.exec(t);if(!e||!lr)return!1;try{const r=decodeURIComponent(e[1]);return Nn&&lr===Bl?/^[A-Za-z0-9._-]+$/.test(r)&&r!=="."&&r!=="..":r===lr}catch{return!1}}es.addHook("uponSanitizeElement",t=>{t instanceof Element&&t.nodeName==="VIDEO"&&!ns(t.getAttribute("src")??"",lr)&&(!Bn(t.getAttribute("src")??"")||P0&&!uu(t.getAttribute("src")??""))&&t.remove()});es.addHook("uponSanitizeAttribute",(t,e)=>{if(t.nodeName==="A"&&e.attrName==="href"&&/^[^/\\:?#\s]+\.[^/\\:?#\s]+:\d+(?::\d+)?$/.test(e.attrValue)&&(e.attrValue=`./${e.attrValue}`),e.attrName==="style"){if(!_0||!(t instanceof Element)||!I4(t)){e.keepAttr=!1;return}e.attrValue=C4(e.attrValue),e.keepAttr=e.attrValue.length>0;return}if(t.nodeName==="IMG"&&e.attrName==="src"&&f4(e.attrValue)&&!ns(e.attrValue,lr)){e.keepAttr=!1;return}if(P0&&Bn(e.attrValue)&&!uu(e.attrValue)){e.keepAttr=!1;return}Bn(e.attrValue)&&!(e.attrName==="src"&&(t.nodeName==="IMG"||t.nodeName==="VIDEO"))&&(e.keepAttr=!1)});const du=["p","br","span","div","strong","b","em","i","u","s","del","ins","mark","ul","ol","li","input","label","code","pre","kbd","samp","var","h1","h2","h3","h4","h5","h6","a","table","thead","tbody","tfoot","tr","th","td","blockquote","q","cite","abbr","address","article","aside","footer","header","main","nav","section","data","math","semantics","annotation","mrow","mi","mn","mo","mtext","mspace","mfrac","msqrt","mroot","mstyle","merror","mpadded","mphantom","menclose","msub","msup","msubsup","munder","mover","munderover","mmultiscripts","mtable","mtr","mtd","svg","path"],dl={"*":["class","id","title","dir","lang","data-anchor-id","data-anchor-type","data-comment-id","data-mention","data-mention-id","data-mention-type","data-math-source","aria-hidden","style"],a:["href","target","rel"],span:["data-mention","data-mention-id","data-mention-type","data-comment-id","data-anchor-id","data-anchor-type"],div:["data-comment-anchor","data-comment-id","data-mermaid-code","data-diff-code","data-type"],li:["data-type","data-checked"],ul:["data-type"],input:["type","checked","disabled"],label:["for"],code:["class"],pre:["class"],td:["colspan","rowspan"],th:["colspan","rowspan","scope"]},z4={ALLOWED_TAGS:du,ALLOWED_ATTR:Object.keys(dl).reduce((t,e)=>{const r=dl[e];return[...t,...r]},[]),ADD_ATTR:["data-type","data-checked"],ALLOW_DATA_ATTR:!0,KEEP_CONTENT:!0,RETURN_DOM:!1,RETURN_DOM_FRAGMENT:!1,SANITIZE_DOM:!0,ALLOWED_URI_REGEXP:/^(?:(?:https?|mailto|tel|sms|intent):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i};function R4(t,e={}){if(!t)return"";try{const r={...z4,...e},n=es.sanitize(t,r),a=typeof n=="string"?n:String(n);return a.length!==t.length&&cl.debug("HTML content was sanitized",{originalLength:t.length,sanitizedLength:a.length,modified:!0}),a}catch(r){return cl.error("Failed to sanitize HTML",r),""}}function O0(t,e,r={}){const n=lr,a=P0,i=_0,s=Nn;lr=e,P0=!0,_0=r.preserveKatexLayoutStyles??!1,Nn=r.readOnly??!1;try{return R4(t,{ALLOWED_TAGS:[...du,"img","video","hr","details","summary","sub","sup"],ALLOWED_ATTR:["class","id","title","dir","lang","href","target","rel","data-mention","data-mention-id","data-mention-type","data-id","data-label","data-uri","data-meta","data-comment-id","data-anchor-id","data-anchor-type","data-comment-anchor","data-mermaid-code","data-diff-code","data-type","data-checked","data-status","data-delegated-agent-id","data-question","data-options","data-selected","type","checked","disabled","src","alt","width","height","controls","preload","playsinline","poster","data-name","data-media-unsupported","data-media-unavailable","data-media-src","data-primitive","data-primitive-type","data-primitive-id","data-primitive-base64","data-item-type","data-provider","data-title","data-identifier","data-url","data-description","data-metadata","data-math-source","aria-hidden",..._0?["style"]:[],"display","encoding","xmlns","accent","accentunder","columnalign","columnspacing","columnlines","rowalign","rowspacing","rowlines","scriptlevel","displaystyle","fence","separator","stretchy","symmetric","minsize","maxsize","viewBox","preserveAspectRatio","d","open","tabindex"],ALLOWED_URI_REGEXP:/^(?:(?:https?|mailto|tel|sms|intent|workspace-asset|workspace-file):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i})}finally{lr=n,P0=a,_0=i,Nn=s}}const K0=pe({id:$1(),type:Ye(["reference","cli","agent_action","patch","diagram"]),version:h0(1),label:V().optional(),description:V().optional(),createdAt:i0(),createdBy:Ye(["user","agent","system"]),createdByAgentId:V().optional(),meta:Gt(V(),d0()).optional()}),D4=pe({kind:Ye(["symbol","file_range"]).optional().default("file_range"),semanticId:V().optional(),filePath:V().optional(),languageId:V().optional(),range:pe({startLine:Le().nonnegative(),startColumn:Le().nonnegative().optional(),endLine:Le().nonnegative(),endColumn:Le().nonnegative().optional()}).optional()}),N4=pe({code:V(),filePath:V(),languageId:V().optional()}),_4=pe({collapsedByDefault:or().optional(),showFilePath:or().optional(),showSymbolName:or().optional()}),L4=K0.extend({type:h0("reference"),target:D4,snapshot:N4.optional(),display:_4.optional()}),P4=pe({status:Ye(["running","success","error","cancelled"]),exitCode:Le().optional(),startedAt:i0(),finishedAt:i0().optional()}),O4=pe({stdout:V(),stderr:V()}),$4=pe({collapsedOutputByDefault:or().optional(),showCommandPrefix:V().optional()}),B4=K0.extend({type:h0("cli"),command:V(),cwd:V().optional(),env:Gt(V(),V()).optional(),timeoutMs:Le().positive().optional(),lastRun:P4.optional(),outputSnapshot:O4.optional(),display:$4.optional(),terminalId:V().optional()}),q4=pe({kind:Ye(["reference","semantic_ref","text","file_glob","note_section"]),refId:V().optional(),semanticId:V().optional(),content:V().optional(),pattern:V().optional(),heading:V().optional()}),F4=pe({temperature:Le().min(0).max(2).optional(),maxTokens:Le().positive().optional()}).passthrough(),H4=pe({status:Ye(["pending","running","success","error"]),startedAt:i0(),finishedAt:i0().optional(),errorMessage:V().optional()}),U4=pe({title:V().optional(),description:V().optional(),createdPrimitives:Ue(V()).optional()}),W4=K0.extend({type:h0("agent_action"),agentId:V(),goal:V(),inputs:Ue(q4),config:F4.optional(),lastRun:H4.optional(),resultSummary:U4.optional()}),G4=pe({status:Ye(["success","conflict","error"]),appliedAt:i0(),errorMessage:V().optional()}),j4=pe({filePath:V(),diff:V(),semanticRefs:Ue(V()).optional()}),V4=pe({collapsedByDefault:or().optional(),showFileNames:or().optional()}),X4=K0.extend({type:h0("patch"),patches:Ue(j4),lastApply:G4.optional(),display:V4.optional()}),Y4=Ye(["architecture","sequence","state_machine","data_flow","network","flowchart","timeline","dependency_graph"]),as=Ye(["highlighted","muted","danger","success","inactive","warning","active"]),xi=pe({type:Ye(["file","symbol","spec","note","timeline_event","metric","log","test"]),target:V(),metadata:Gt(V(),d0()).optional()}),K4=pe({id:V(),label:V(),kind:V().optional(),semanticStyle:as.optional(),position:pe({x:Le(),y:Le()}).optional(),size:pe({width:Le(),height:Le()}).optional(),binding:xi.optional(),bindings:Ue(xi).optional(),group:V().optional(),metadata:Gt(V(),d0()).optional()}),Z4=pe({id:V(),from:V(),to:V(),label:V().optional(),kind:V().optional(),semanticStyle:as.optional(),animated:or().optional(),dashed:or().optional(),flowDirection:Ye(["forward","backward","bidirectional"]).optional(),bindings:Ue(xi).optional(),metadata:Gt(V(),d0()).optional()}),Q4=pe({id:V(),label:V(),nodeIds:Ue(V()),semanticStyle:as.optional(),metadata:Gt(V(),d0()).optional()}),J4=pe({nodes:Ue(K4),edges:Ue(Z4),groups:Ue(Q4).optional()}),ef=pe({type:Ye(["layered","force","circular","tree","manual"]),direction:Ye(["LR","RL","TB","BT"]).optional(),spacing:Le().optional(),edgeRouting:Ye(["orthogonal","polyline","curved"]).optional()}),tf=Gt(V(),pe({class:V().optional(),style:Gt(V(),V()).optional()})),rf=pe({layout:ef,semanticStyles:tf.optional(),zoom:Le().optional(),pan:pe({x:Le(),y:Le()}).optional(),edgeRouting:Ye(["orthogonal","polyline","curved"]).optional()}),nf=pe({focus:V().optional(),zoom:Le().optional(),pan:pe({x:Le(),y:Le()}).optional()}),af=pe({title:V().optional(),text:V().optional()}),sf=pe({type:V(),data:Gt(V(),d0())}),of=pe({duration:Le().optional(),animate:Ue(Ye(["camera","visibleEdges","visibleNodes","semanticStyle"])).optional()}),lf=pe({id:V(),label:V().optional(),visibleNodes:Ue(V()).optional(),visibleEdges:Ue(V()).optional(),visibleGroups:Ue(V()).optional(),highlightedNodes:Ue(V()).optional(),highlightedEdges:Ue(V()).optional(),camera:nf.optional(),narrative:B1([af,V()]).optional(),overlays:Ue(sf).optional(),transition:of.optional()}),cf=K0.extend({type:h0("diagram"),grammar:Y4,model:J4,baseView:rf,states:Ue(lf).optional(),currentStateId:V().optional()}),hu=q1("type",[L4,B4,W4,X4,cf]);function C3(t){const e=t.match(/^(.+)#symbol:(.+)$/);if(e){const[,a,i]=e;return{filePath:a,type:"symbol",symbol:i}}const r=t.match(/^(.+)#L(\d+)(?:-(\d+))?$/);if(r){const[,a,i,s]=r,o={filePath:a,type:"line",startLine:parseInt(i,10)};return s&&(o.endLine=parseInt(s,10)),o}const n=t.match(/^(.+)#lines:(.+)$/);if(n){const[,a,i]=n;return{filePath:a,refSpec:{type:"lines",value:i}}}return t&&!t.includes("#")?{filePath:t,type:"file"}:null}function I3(t){return t.semanticId?t.semanticId:t.filePath?t.range?t.range.startLine===t.range.endLine?`${t.filePath}#L${t.range.startLine}`:`${t.filePath}#L${t.range.startLine}-${t.range.endLine}`:t.filePath:null}const Cr=new u0("NotesPrimitivesSerializer");function uf(t){return/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i.test(t)}class df{constructor(){se(this,"logger",new u0("NotesPrimitivesSerializer"))}parseMarkdown(e,r={}){return pu(e,r)}serializeToMarkdown(e,r,n={}){return pf(e,r,n)}tiptapNodeToPrimitive(e){return ff(e)}primitiveToTiptapNode(e){return gf(e)}generateId(){return fu()}createBasePrimitive(e,r="user"){return bf(e,r)}}function pu(t,e={}){const{validateSchema:r=!0}=e,n=[],a=t.split(`
362
362
  `);let i=!1,s=-1,o=[],c="";for(let d=0;d<a.length;d++){const p=a[d];if(p.trim().startsWith("```ws-block")){i=!0,s=d,o=[];const g=p.trim().match(/^```ws-block:(\w+)/);c=g?g[1]:"";continue}if(p.trim().startsWith("```diagram")){Cr.info("[parseMarkdownToPrimitives] Found diagram block start",{line:d}),i=!0,s=d,o=[],c="diagram";continue}if(i&&p.trim()==="```"){i=!1;try{const g=o.join(`
363
363
  `),v=JSON.parse(g);if(!v.type&&c&&(v.type=c,Cr.debug("[parseMarkdownToPrimitives] Inferred type from fence suffix",{type:c})),(!v.id||!uf(v.id))&&(v.id=Ci()),v.version||(v.version=1),v.createdAt||(v.createdAt=new Date().toISOString()),v.createdBy||(v.createdBy="agent"),v.type==="reference"){let w=!1;v.target||(v.target={}),!v.target.semanticId&&!v.target.filePath&&(v.semanticId&&(v.target.semanticId=v.semanticId,w=!0),(v.filePath||v.path)&&(v.target.filePath=v.filePath||v.path,w=!0),(v.startLine!==void 0||v.endLine!==void 0)&&!v.target.range&&(v.target.range={startLine:v.startLine??1,endLine:v.endLine??v.startLine??1},w=!0)),v.target.path&&!v.target.filePath&&(v.target.filePath=v.target.path,delete v.target.path),(v.target.startLine!==void 0||v.target.endLine!==void 0)&&!v.target.range&&(v.target.range={startLine:v.target.startLine??1,endLine:v.target.endLine??v.target.startLine??1},delete v.target.startLine,delete v.target.endLine);const A=v.target.kind==="symbol"||v.target.kind==="file_range";(w||!A)&&(v.target.kind=v.target.semanticId?.includes("#symbol:")?"symbol":"file_range")}if(v.type==="cli"&&(v.command||(v.command="")),v.type==="diagram"&&(Cr.info("[parseMarkdownToPrimitives] Normalizing diagram primitive",{id:v.id,hasModel:!!v.model,hasBaseView:!!v.baseView}),v.model||(v.model={nodes:[],edges:[]}),v.model.nodes||(v.model.nodes=[]),v.model.edges||(v.model.edges=[]),Array.isArray(v.model.groups)&&(v.model.groups=v.model.groups.filter(w=>w!==null&&typeof w=="object").map(w=>({...w,nodeIds:Array.isArray(w.nodeIds)?w.nodeIds:[]}))),v.baseView||(v.baseView={layout:{type:"layered",direction:"TB"}}),v.baseView.layout||(v.baseView.layout={type:"layered",direction:"TB"}),v.grammar||(v.grammar="architecture")),r){const w=hu.safeParse(v);if(!w.success){Cr.error("Invalid primitive schema",{errors:w.error.issues,primitiveType:v.type,primitiveId:v.id,content:g});continue}}n.push({primitive:v,startLine:s,endLine:d,rawContent:a.slice(s,d+1).join(`
364
364
  `)})}catch(g){Cr.error("Failed to parse ws-block JSON",{error:g,content:o.join(`
@@ -380,20 +380,20 @@ ${i.join(`
380
380
  `)}${r&&i.length>0?`
381
381
  `:""}`}function xf(t){try{if(/^[A-Za-z0-9+/=]+$/.test(t.trim()))return decodeURIComponent(escape(atob(t)))}catch{}return t}const Sf={"&lt;":"<","&gt;":">","&amp;":"&","&quot;":'"',"&#39;":"'","&#x27;":"'","&#x2F;":"/"},Af=/&(?:lt|gt|amp|quot|#39|#x27|#x2F);/g;function Tf(t){return t.replace(Af,e=>Sf[e]??e)}function Ef(t){return Tf(xf(t))}const he=new u0("MarkdownProcessor"),Mf=new df,Cf=/^---[ \t]*\r?\n([\s\S]*?)\r?\n---[ \t]*(?:\r?\n|$)/;function If(t){const e=t.match(Cf);return e?{frontMatter:e[0],body:t.slice(e[0].length)}:{frontMatter:null,body:t}}function zf(){return new Promise(t=>setTimeout(t,0))}const Rf=5e3;let I0=null,Df=0;const Si=new Map;function Nf(){return I0||(I0=new Worker(new URL("/app/immutable/workers/markdown-worker-CUMjuSWs.js",import.meta.url),{type:"module"}),I0.onmessage=t=>{const{id:e,html:r,error:n}=t.data,a=Si.get(e);a&&(n?a.reject(new Error(n)):a.resolve(r??""))},I0.onerror=t=>{he.error("[markdown-worker] Worker error",{message:t.message})}),I0}const hl=3e4;async function pl(t,e){const r=e?.preserveAnchors?Jc(t):t;let a=await gu(e?.renderMath).parse(r);return e?.preserveAnchors&&(a=vu(a)),a}function _f(t,e){return new Promise((r,n)=>{const a=Df++;let i=!1;const s=()=>i?!1:(i=!0,clearTimeout(o),Si.delete(a),!0),o=setTimeout(()=>{s()&&(he.warn("[markdown-worker] Worker timed out, falling back to main thread",{id:a,markdownLength:t.length,timeoutMs:hl}),pl(t,e).then(r,n))},hl);Si.set(a,{resolve:c=>{s()&&r(c)},reject:c=>{s()&&n(c)}});try{Nf().postMessage({id:a,markdown:t,pipeline:e})}catch(c){if(!s())return;he.warn("[markdown-worker] Failed to post to worker, falling back to main thread",c),pl(t,e).then(r,n)}})}function Lf(t){let e=3735928559,r=1103547991;for(let n=0;n<t.length;n++){const a=t.charCodeAt(n);e=Math.imul(e^a,2654435761),r=Math.imul(r^a,1597334677)}return e=Math.imul(e^e>>>16,2246822507),e^=Math.imul(r^r>>>13,3266489909),r=Math.imul(r^r>>>16,2246822507),r^=Math.imul(e^e>>>13,3266489909),(4294967296*(2097151&r)+(e>>>0)).toString(36)}const Pf=200,e0=new Map,Rr=[];function Of(t){const e=e0.get(t);if(e!==void 0){const r=Rr.indexOf(t);return r>-1&&(Rr.splice(r,1),Rr.push(t)),e}return null}function ml(t,e){if(e0.has(t)){e0.set(t,e);return}for(;Rr.length>=Pf;){const r=Rr.shift();r&&e0.delete(r)}e0.set(t,e),Rr.push(t)}function $f(){e0.clear(),Rr.length=0}const Bf=/<!--\s*anchor:([^:]+):([^-]+)\s*-->/g;function qf(t){let e="__MARKDOWN_SOURCE_";for(;t.includes(e);)e+="_";const r=[],n=s=>{const o=r.push(s)-1;return`${e}${o}__`},a=s=>s.replace(new RegExp(`${e}(\\d+)__`,"g"),(o,c)=>r[parseInt(c,10)]);let i=t;return i=i.replace(/```[\s\S]*?```/g,s=>n(s)),i=i.replace(/`([^`]+)`/g,s=>n(s)),i=Nm(i,s=>n(a(s))),i=i.replace(/<(\/?)\s*([a-zA-Z][a-zA-Z0-9_-]*)(\s*)([^>]*?)(\/?)>/g,(s,o,c,d,p,g)=>/^(?:<br\s*\/?>|<\/?(?:sub|sup)>)$/i.test(s)?s:`&lt;${o}${c}${d}${p}${g}&gt;`),i=a(i),i}const fl=new Map;function gu(t=!1){let e=fl.get(t);return e||(e=Lm({renderMath:t}),fl.set(t,e)),e}function Ff(t){return t.replace(/<div data-type="(mermaid|diff)-block" data-(?:mermaid|diff)-code="([^"]*)"><\/div>/g,(e,r,n)=>{const a=decodeURIComponent(escape(atob(n))).replace(/[&<>"']/g,i=>({"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"})[i]??i);return`<pre><code class="language-${r}">${a}</code></pre>`})}function Hf(t){const e=t.includes("```ws-block"),r=t.includes("```diagram"),n=t.includes("```\n{");if(!e&&!r&&!n)return t;const a=Mf.parseMarkdown(t);if(he.debug("[markdown-processor] processWsBlocks:",{hasWsBlocks:e,hasDiagramBlocks:r,hasBareCodeBlocks:n,primitivesFound:a.length,primitiveTypes:a.map(o=>o.primitive.type)}),a.length===0)return(e||r)&&he.warn("[markdown-processor] ws-blocks or diagram blocks found but no primitives parsed",{contentPreview:t.substring(0,500)}),t;let i=t;const s=[...a].sort((o,c)=>c.startLine-o.startLine);for(const o of s){const{primitive:c,rawContent:d}=o,p=JSON.stringify(c),g=new TextEncoder().encode(p);let v="";for(let C=0;C<g.length;C++)v+=String.fromCharCode(g[C]);const w=btoa(v),A=`<div data-primitive-type="${c.type}" data-primitive-id="${c.id}" data-primitive-base64="${w}"></div>`;he.debug("[markdown-processor] Replacing ws-block:",{type:c.type,id:c.id,rawContentPreview:d.substring(0,100)});const M=d.indexOf("```ws-block"),D=d.indexOf("```diagram"),S=M>=0?M:D;if(S>0){const C=d.substring(0,S).trim();if(C){he.info("[markdown-processor] Recovering text before corrupted primitive block fence:",{textBeforeFence:C.substring(0,100),primitiveId:c.id,primitiveType:c.type});const W=`${C}
382
382
 
383
- ${A}`;i=i.replace(d,W);continue}}i=i.replace(d,A)}return i}const Ya="\0",Uf=/\u0000/g,gl=/^ {0,3}(`{3,}|~{3,})/,Wf=/^@@@tasks?(?:[ \t]|$)/,Gf=/^@@@\s*$/,vl=/^[ \t]*(?:[-*+]|\d+[.)])\s/,bl=/^(?: {2,}|\t)/,jf=/^ {0,3}(?:#{1,6}(?:[ \t]|$)|>|(?:\*[ \t]*){3,}$|(?:-[ \t]*){3,}$|(?:_[ \t]*){3,}$|<[a-zA-Z!/?])/;function Vf(t){const e=t.split(`
383
+ ${A}`;i=i.replace(d,W);continue}}i=i.replace(d,A)}return i}const Xa="\0",Uf=/\u0000/g,gl=/^ {0,3}(`{3,}|~{3,})/,Wf=/^@@@tasks?(?:[ \t]|$)/,Gf=/^@@@\s*$/,vl=/^[ \t]*(?:[-*+]|\d+[.)])\s/,bl=/^(?: {2,}|\t)/,jf=/^ {0,3}(?:#{1,6}(?:[ \t]|$)|>|(?:\*[ \t]*){3,}$|(?:-[ \t]*){3,}$|(?:_[ \t]*){3,}$|<[a-zA-Z!/?])/;function Vf(t){const e=t.split(`
384
384
  `);e.length>1&&e[e.length-1]===""&&e.pop();const r=[];let n=null,a=!1,i=[],s=!1,o=!1,c=!1;const d=g=>{for(let v=0;v<g;v++)r.push("<p></p>","")},p=g=>{const v=i.length;v!==0&&(s?g===void 0||v>=2&&!bl.test(g)&&!(o&&vl.test(g))?(r.push(""),d(v-1)):r.push(...i):d(v),i=[])};for(const g of e){if(n){r.push(g);const D=gl.exec(g);D&&D[1][0]===n.char&&D[1].length>=n.length&&g.slice(D[0].length).trim()===""&&(n=null),c=!1;continue}if(a){r.push(g),Gf.test(g)&&(a=!1),c=!1;continue}if(g.trim()===""){i.push(g);continue}const v=i.length>0;p(g),s=!0,r.push(g);const w=gl.exec(g),A=!w&&Wf.test(g),M=w!==null||A||jf.test(g);vl.test(g)?o=!0:!bl.test(g)&&(M||v||!c)&&(o=!1),c=!M,w?n={char:w[1][0],length:w[1].length}:A&&(a=!0)}return p(void 0),r.join(`
385
- `)}async function R3(t,e={}){const{allowEmpty:r=!0,skipIfHTML:n=!0,allowSanitizedHtml:a=!1,preserveAnchors:i=!0,processPrimitives:s=!0,taskBlockRenderMode:o="placeholder",workspaceId:c,relativeMediaBase:d,renderRichFencesAsCode:p=!1,renderMath:g=!1,readOnly:v=!1,workspaceFileVersion:w}=e,A=S=>S.includes("workspace-file://")?S4(S,w??cu()):S;if(!t||t.trim()===""||t.trim()==="<p></p>")return r?"":"<p></p>";if(n&&t.trim().startsWith("<")&&!t.trim().startsWith("<!--anchor:"))if(t.includes("```ws-block"))he.debug("Content looks like HTML but has ws-blocks, processing anyway");else return O0(t,c);const M=`${Lf(t)}:${t.length}|${r}|${n}|${i}|${s}|${o}|${c??""}|${d===void 0?"-":`base:${d}`}|${p}|${g}|${a}|${v}`,D=Of(M);if(D!==null)return A(D);try{const S=t.length>Rf,C=S?performance.now():0;S&&he.info("[markdown-processor] Processing large content",{contentLength:t.length});const{body:W}=If(t),K=o==="content"?fh(W):W,X=a?K:qf(K),T=S?performance.now():0;let R=X;if(s){R=Hf(X);const ee=X.includes("```ws-block"),le=X.includes("```diagram"),ue=R.includes("data-primitive-type");(ee||le)&&he.debug("[markdown-processor] processWsBlocks result:",{hasWsBlocksInInput:ee,hasDiagramBlocksInInput:le,hasPrimitiveDivsInOutput:ue,inputPreview:X.substring(0,300),outputPreview:R.substring(0,300)})}R=Vf(R);const U=S?performance.now():0;let O;if(S)O=await _f(R,{preserveAnchors:i,renderMath:g});else{const ee=i?Jc(R):R,ue=await gu(g).parse(ee);O=i?vu(ue):ue}p&&(O=Ff(O));const $=S?performance.now():0;O=Yf(O),d!==void 0&&(O=T4(O,d)),O=E4(O,c,{readOnly:v});const L=S?performance.now():0,F=O.includes("data-primitive-type");S&&await zf(),O=O0(O,c,{preserveKatexLayoutStyles:g,readOnly:v});const Y=S?performance.now():0,J=O.includes("data-primitive-type");return F&&!J&&he.warn("[markdown-processor] Primitive divs were stripped during sanitization"),S&&he.info("[markdown-processor] Step timings (ms)",{escapeHtml:Math.round(T-C),wsBlocks:Math.round(U-T),workerPipeline:Math.round($-U),mentions:Math.round(L-$),sanitize:Math.round(Y-L),total:Math.round(Y-C),contentLength:t.length,usedWorker:S}),ml(M,O),A(O)}catch(S){he.error("[markdown-processor] Failed to parse markdown:",S);const C=O0(`<p>${t}</p>`,c);return ml(M,C),C}}function vu(t){return t.replace(Bf,(e,r,n)=>`<span data-anchor-id="${`${r}:${n}`}" data-anchor-type="${n}" data-comment-id="${r}" style="display:none"></span>`)}function Yf(t){if(typeof document>"u")return t;const e=document.createElement("template");e.innerHTML=t;const r=e.content,n=new Set(["CODE","PRE","SCRIPT","STYLE"]),a=s=>{const o=s.nodeValue||"",c=u1(o,"markdown");if(c.length===0)return;const d=document.createDocumentFragment();let p=0;for(const g of c){g.index>p&&d.appendChild(document.createTextNode(o.slice(p,g.index)));const v=g.parsed?d1(g.parsed):null;if(v){const w=document.createElement("span");for(const[A,M]of v.attributes)w.setAttribute(A,M);w.className=v.className,w.textContent=v.text,d.appendChild(w)}else d.appendChild(document.createTextNode(g.text));p=g.index+g.text.length}p<o.length&&d.appendChild(document.createTextNode(o.slice(p))),s.parentNode?.replaceChild(d,s)},i=(s,o)=>{if(s.nodeType===Node.ELEMENT_NODE){const c=s,d=o||n.has(c.tagName)||c.hasAttribute("data-mention")||c.hasAttribute("data-math-source")||c.tagName==="A";for(const p of Array.from(c.childNodes))i(p,d)}else s.nodeType===Node.TEXT_NODE&&(o||a(s))};for(const s of Array.from(r.childNodes))i(s,!1);return e.innerHTML}function Xf(t){const e=document.createElement("div");return e.innerHTML=t,e.querySelectorAll("span[data-anchor-id]").forEach(n=>{const a=n.getAttribute("data-anchor-id");if(a){const i=document.createComment(`anchor:${a}`);n.parentNode?.replaceChild(i,n)}}),e.innerHTML}function D3(t,e={}){const{preserveAnchors:r=!0,workspaceId:n}=e,a=t.includes("data-primitive-type"),i=t.includes("data-type="),s=t.includes("reference_block"),o=t.includes("cli_block"),c=t.includes("patch_block"),d=t.includes("agent_action_block"),p=t.includes("data-primitive");if(he.debug("[markdown-processor] processHTMLToMarkdown INPUT:",{htmlLength:t.length,hasPrimitiveType:a,hasDataType:i,hasReferenceBlock:s,hasCliBlock:o,hasPatchBlock:c,hasAgentActionBlock:d,hasDataPrimitive:p,htmlPreview:t.substring(0,500)}),!t||t.trim()==="<p></p>")return he.debug("[markdown-processor] processHTMLToMarkdown OUTPUT (empty)"),"";const g=T=>{const R=T.getAttribute("data-math-source"),U=T.tagName==="SPAN"&&T.classList.contains("math-inline"),O=T.tagName==="DIV"&&T.classList.contains("math-display");if(!R||!U&&!O)return;const $=U?/^\$((?:\\.|[^\\$\n])+?)\$$/.exec(R)??/^\\\(((?:\\.|[^\\\n])*?)\\\)$/.exec(R):/^\$\$[ \t]*([\s\S]*?)[ \t]*\$\$$/.exec(R)??/^\\\[[ \t]*([\s\S]*?)[ \t]*\\\]$/.exec(R);if($&&!($[1].length>Yc||T.childNodes.length!==1))try{const L=document.createElement("div"),F=document.createElement(U?"span":"div");return F.className=U?"math-inline":"math-display",F.setAttribute("data-math-source",R),F.innerHTML=Xc($[1],O),L.innerHTML=O0(F.outerHTML,n,{preserveKatexLayoutStyles:!0}),L.firstElementChild?.firstElementChild?.isEqualNode(T.firstElementChild)?R:void 0}catch{return}},v=r?Xf(t):t,w=document.createElement("div");if(r)w.innerHTML=v;else{const T=O0(v,n,{preserveKatexLayoutStyles:!0});w.innerHTML=T}const A=T=>{let R="";for(const U of Array.from(T.childNodes))if(U.nodeType===Node.COMMENT_NODE){const O=U;O.data.startsWith("anchor:")&&(R+=`<!--${O.data}-->`)}else if(U.nodeType===Node.TEXT_NODE)R+=U.textContent||"";else if(U.nodeType===Node.ELEMENT_NODE){const O=U,$=g(O);if(O.tagName==="STRONG"||O.tagName==="B")R+=`**${A(O)}**`;else if(O.tagName==="EM"||O.tagName==="I")R+=`*${A(O)}*`;else if(O.tagName==="BR")R+=`
386
- `;else if(O.tagName==="CODE")R+=`\`${O.textContent||""}\``;else if($)R+=$;else if(O.tagName==="SPAN"){const L=fd(O);if(L){const F=L.label||O.textContent||"";try{R+=h1({type:L.type,id:L.id||F,label:F,meta:L.meta})}catch{R+=F?`@${F}`:""}}else R+=A(O)}else if(O.tagName==="A"){const L=O.getAttribute("href")||"",F=A(O);L?R+=`[${F}](${L})`:R+=F}else if(O.tagName==="IMG"){const L=O.getAttribute("src")||"",F=ki(L)??L,Y=O.getAttribute("alt")||"",J=O.getAttribute("title");J?R+=`![${Y}](${F} "${J}")`:R+=`![${Y}](${F})`}else if(O.tagName==="VIDEO"){const L=O.getAttribute("src")||"",F=ol(L)??L,Y=O.getAttribute("data-name")||"";F&&(R+=`![${Y}](${F})`)}else O.tagName==="DIV"&&(O.hasAttribute("data-type")||O.hasAttribute("data-primitive-type"))?he.warn("[markdown-processor] Found primitive block DIV inside inline content, skipping",{dataType:O.getAttribute("data-type"),primitiveType:O.getAttribute("data-primitive-type")}):R+=O.textContent||""}return R},M=T=>{let R="";const U=$=>{let L="";for(const F of Array.from($))if(F.nodeType===Node.COMMENT_NODE){const Y=F;Y.data.startsWith("anchor:")&&(L+=`<!--${Y.data}-->`)}else if(F.nodeType===Node.TEXT_NODE)L+=F.textContent||"";else if(F.nodeType===Node.ELEMENT_NODE){const Y=F;(Y.tagName==="P"||Y.tagName!=="UL"&&Y.tagName!=="OL")&&(L+=A(Y))}return L},O=Array.from(T.children).filter($=>$.tagName==="DIV");if(he.debug("[markdown-processor] getListItemTextContent:",{liOuterHTML:T.outerHTML.substring(0,500),divsCount:O.length,divContents:O.map($=>({innerHTML:$.innerHTML.substring(0,200),childNodes:Array.from($.childNodes).map(L=>({type:L.nodeType,name:L.tagName||"#text",content:L.textContent?.substring(0,50)}))}))}),O.length>0){const $=O[0];return R=U($.childNodes),he.debug("[markdown-processor] getListItemTextContent result from div:",{text:R.substring(0,100)}),R.trim()}return R=U(T.childNodes),he.debug("[markdown-processor] getListItemTextContent result from fallback:",{text:R.substring(0,100)}),R.trim()},D=(T,R=0)=>{let U="";const O=T.tagName==="OL",$=T.classList.contains("task-list")||T.getAttribute("data-type")==="taskList";let L="";R>0&&($?R===1?L=" ":L=` ${" ".repeat(R-1)}`:O?L=" ".repeat(R):L=" ".repeat(R));const F=T.children?Array.from(T.children).filter(Y=>Y.tagName==="LI"):[];return he.debug("[markdown-processor] Processing list:",{tagName:T.tagName,isTaskList:$,indentLevel:R,directChildrenCount:F.length}),F.forEach((Y,J)=>{if($&&Y.hasAttribute("data-type")&&Y.getAttribute("data-type")==="taskItem"){const ee=Y.getAttribute("data-checked"),le=Y.getAttribute("data-status"),ue=Y.querySelector('input[type="checkbox"]');let De="- [ ] ";le==="in-progress"?De="- [/] ":(ee==="true"||ee===null&&ue?.checked)&&(De="- [x] ");const ve=M(Y),Ae=Y.getAttribute("data-delegated-agent-id"),st=Ae?` <!--agent:${Ae}-->`:"";he.debug("[markdown-processor] Processing task item:",{index:J,indentLevel:R,dataChecked:ee,dataStatus:le,taskPrefix:De,taskText:ve,delegatedAgentId:Ae}),U+=`${L+De+ve}${st}
387
- `;const wt=[];wt.push(...Array.from(Y.children).filter(Qe=>Qe.tagName==="UL"||Qe.tagName==="OL"));const Ze=Array.from(Y.children).filter(Qe=>Qe.tagName==="DIV");for(const Qe of Ze)wt.push(...Array.from(Qe.children).filter(gr=>gr.tagName==="UL"||gr.tagName==="OL"));for(const Qe of wt)U+=D(Qe,R+1)}else{const ee=T.tagName==="OL"?`${J+1}. `:"- ",le=M(Y);he.debug("[markdown-processor] Processing regular list item:",{index:J,indentLevel:R,prefix:ee,text:le}),U+=`${L+ee+le}
388
- `;const ue=[];ue.push(...Array.from(Y.children).filter(ve=>ve.tagName==="UL"||ve.tagName==="OL"));const De=Array.from(Y.children).filter(ve=>ve.tagName==="DIV");for(const ve of De)ue.push(...Array.from(ve.children).filter(Ae=>Ae.tagName==="UL"||Ae.tagName==="OL"));for(const ve of ue)U+=D(ve,R+1)}}),U},S=T=>{const R=g(T);if(R)return`${R}${T.tagName==="DIV"?`
385
+ `)}async function R3(t,e={}){const{allowEmpty:r=!0,skipIfHTML:n=!0,allowSanitizedHtml:a=!1,preserveAnchors:i=!0,processPrimitives:s=!0,taskBlockRenderMode:o="placeholder",workspaceId:c,relativeMediaBase:d,renderRichFencesAsCode:p=!1,renderMath:g=!1,readOnly:v=!1,workspaceFileVersion:w}=e,A=S=>S.includes("workspace-file://")?S4(S,w??cu()):S;if(!t||t.trim()===""||t.trim()==="<p></p>")return r?"":"<p></p>";if(n&&t.trim().startsWith("<")&&!t.trim().startsWith("<!--anchor:"))if(t.includes("```ws-block"))he.debug("Content looks like HTML but has ws-blocks, processing anyway");else return O0(t,c);const M=`${Lf(t)}:${t.length}|${r}|${n}|${i}|${s}|${o}|${c??""}|${d===void 0?"-":`base:${d}`}|${p}|${g}|${a}|${v}`,D=Of(M);if(D!==null)return A(D);try{const S=t.length>Rf,C=S?performance.now():0;S&&he.info("[markdown-processor] Processing large content",{contentLength:t.length});const{body:W}=If(t),K=o==="content"?fh(W):W,Y=a?K:qf(K),T=S?performance.now():0;let R=Y;if(s){R=Hf(Y);const ee=Y.includes("```ws-block"),le=Y.includes("```diagram"),ue=R.includes("data-primitive-type");(ee||le)&&he.debug("[markdown-processor] processWsBlocks result:",{hasWsBlocksInInput:ee,hasDiagramBlocksInInput:le,hasPrimitiveDivsInOutput:ue,inputPreview:Y.substring(0,300),outputPreview:R.substring(0,300)})}R=Vf(R);const U=S?performance.now():0;let O;if(S)O=await _f(R,{preserveAnchors:i,renderMath:g});else{const ee=i?Jc(R):R,ue=await gu(g).parse(ee);O=i?vu(ue):ue}p&&(O=Ff(O));const $=S?performance.now():0;O=Xf(O),d!==void 0&&(O=T4(O,d)),O=E4(O,c,{readOnly:v});const L=S?performance.now():0,F=O.includes("data-primitive-type");S&&await zf(),O=O0(O,c,{preserveKatexLayoutStyles:g,readOnly:v});const X=S?performance.now():0,J=O.includes("data-primitive-type");return F&&!J&&he.warn("[markdown-processor] Primitive divs were stripped during sanitization"),S&&he.info("[markdown-processor] Step timings (ms)",{escapeHtml:Math.round(T-C),wsBlocks:Math.round(U-T),workerPipeline:Math.round($-U),mentions:Math.round(L-$),sanitize:Math.round(X-L),total:Math.round(X-C),contentLength:t.length,usedWorker:S}),ml(M,O),A(O)}catch(S){he.error("[markdown-processor] Failed to parse markdown:",S);const C=O0(`<p>${t}</p>`,c);return ml(M,C),C}}function vu(t){return t.replace(Bf,(e,r,n)=>`<span data-anchor-id="${`${r}:${n}`}" data-anchor-type="${n}" data-comment-id="${r}" style="display:none"></span>`)}function Xf(t){if(typeof document>"u")return t;const e=document.createElement("template");e.innerHTML=t;const r=e.content,n=new Set(["CODE","PRE","SCRIPT","STYLE"]),a=s=>{const o=s.nodeValue||"",c=u1(o,"markdown");if(c.length===0)return;const d=document.createDocumentFragment();let p=0;for(const g of c){g.index>p&&d.appendChild(document.createTextNode(o.slice(p,g.index)));const v=g.parsed?d1(g.parsed):null;if(v){const w=document.createElement("span");for(const[A,M]of v.attributes)w.setAttribute(A,M);w.className=v.className,w.textContent=v.text,d.appendChild(w)}else d.appendChild(document.createTextNode(g.text));p=g.index+g.text.length}p<o.length&&d.appendChild(document.createTextNode(o.slice(p))),s.parentNode?.replaceChild(d,s)},i=(s,o)=>{if(s.nodeType===Node.ELEMENT_NODE){const c=s,d=o||n.has(c.tagName)||c.hasAttribute("data-mention")||c.hasAttribute("data-math-source")||c.tagName==="A";for(const p of Array.from(c.childNodes))i(p,d)}else s.nodeType===Node.TEXT_NODE&&(o||a(s))};for(const s of Array.from(r.childNodes))i(s,!1);return e.innerHTML}function Yf(t){const e=document.createElement("div");return e.innerHTML=t,e.querySelectorAll("span[data-anchor-id]").forEach(n=>{const a=n.getAttribute("data-anchor-id");if(a){const i=document.createComment(`anchor:${a}`);n.parentNode?.replaceChild(i,n)}}),e.innerHTML}function D3(t,e={}){const{preserveAnchors:r=!0,workspaceId:n}=e,a=t.includes("data-primitive-type"),i=t.includes("data-type="),s=t.includes("reference_block"),o=t.includes("cli_block"),c=t.includes("patch_block"),d=t.includes("agent_action_block"),p=t.includes("data-primitive");if(he.debug("[markdown-processor] processHTMLToMarkdown INPUT:",{htmlLength:t.length,hasPrimitiveType:a,hasDataType:i,hasReferenceBlock:s,hasCliBlock:o,hasPatchBlock:c,hasAgentActionBlock:d,hasDataPrimitive:p,htmlPreview:t.substring(0,500)}),!t||t.trim()==="<p></p>")return he.debug("[markdown-processor] processHTMLToMarkdown OUTPUT (empty)"),"";const g=T=>{const R=T.getAttribute("data-math-source"),U=T.tagName==="SPAN"&&T.classList.contains("math-inline"),O=T.tagName==="DIV"&&T.classList.contains("math-display");if(!R||!U&&!O)return;const $=U?/^\$((?:\\.|[^\\$\n])+?)\$$/.exec(R)??/^\\\(((?:\\.|[^\\\n])*?)\\\)$/.exec(R):/^\$\$[ \t]*([\s\S]*?)[ \t]*\$\$$/.exec(R)??/^\\\[[ \t]*([\s\S]*?)[ \t]*\\\]$/.exec(R);if($&&!($[1].length>Xc||T.childNodes.length!==1))try{const L=document.createElement("div"),F=document.createElement(U?"span":"div");return F.className=U?"math-inline":"math-display",F.setAttribute("data-math-source",R),F.innerHTML=Yc($[1],O),L.innerHTML=O0(F.outerHTML,n,{preserveKatexLayoutStyles:!0}),L.firstElementChild?.firstElementChild?.isEqualNode(T.firstElementChild)?R:void 0}catch{return}},v=r?Yf(t):t,w=document.createElement("div");if(r)w.innerHTML=v;else{const T=O0(v,n,{preserveKatexLayoutStyles:!0});w.innerHTML=T}const A=T=>{let R="";for(const U of Array.from(T.childNodes))if(U.nodeType===Node.COMMENT_NODE){const O=U;O.data.startsWith("anchor:")&&(R+=`<!--${O.data}-->`)}else if(U.nodeType===Node.TEXT_NODE)R+=U.textContent||"";else if(U.nodeType===Node.ELEMENT_NODE){const O=U,$=g(O);if(O.tagName==="STRONG"||O.tagName==="B")R+=`**${A(O)}**`;else if(O.tagName==="EM"||O.tagName==="I")R+=`*${A(O)}*`;else if(O.tagName==="BR")R+=`
386
+ `;else if(O.tagName==="CODE")R+=`\`${O.textContent||""}\``;else if($)R+=$;else if(O.tagName==="SPAN"){const L=fd(O);if(L){const F=L.label||O.textContent||"";try{R+=h1({type:L.type,id:L.id||F,label:F,meta:L.meta})}catch{R+=F?`@${F}`:""}}else R+=A(O)}else if(O.tagName==="A"){const L=O.getAttribute("href")||"",F=A(O);L?R+=`[${F}](${L})`:R+=F}else if(O.tagName==="IMG"){const L=O.getAttribute("src")||"",F=ki(L)??L,X=O.getAttribute("alt")||"",J=O.getAttribute("title");J?R+=`![${X}](${F} "${J}")`:R+=`![${X}](${F})`}else if(O.tagName==="VIDEO"){const L=O.getAttribute("src")||"",F=ol(L)??L,X=O.getAttribute("data-name")||"";F&&(R+=`![${X}](${F})`)}else O.tagName==="DIV"&&(O.hasAttribute("data-type")||O.hasAttribute("data-primitive-type"))?he.warn("[markdown-processor] Found primitive block DIV inside inline content, skipping",{dataType:O.getAttribute("data-type"),primitiveType:O.getAttribute("data-primitive-type")}):R+=O.textContent||""}return R},M=T=>{let R="";const U=$=>{let L="";for(const F of Array.from($))if(F.nodeType===Node.COMMENT_NODE){const X=F;X.data.startsWith("anchor:")&&(L+=`<!--${X.data}-->`)}else if(F.nodeType===Node.TEXT_NODE)L+=F.textContent||"";else if(F.nodeType===Node.ELEMENT_NODE){const X=F;(X.tagName==="P"||X.tagName!=="UL"&&X.tagName!=="OL")&&(L+=A(X))}return L},O=Array.from(T.children).filter($=>$.tagName==="DIV");if(he.debug("[markdown-processor] getListItemTextContent:",{liOuterHTML:T.outerHTML.substring(0,500),divsCount:O.length,divContents:O.map($=>({innerHTML:$.innerHTML.substring(0,200),childNodes:Array.from($.childNodes).map(L=>({type:L.nodeType,name:L.tagName||"#text",content:L.textContent?.substring(0,50)}))}))}),O.length>0){const $=O[0];return R=U($.childNodes),he.debug("[markdown-processor] getListItemTextContent result from div:",{text:R.substring(0,100)}),R.trim()}return R=U(T.childNodes),he.debug("[markdown-processor] getListItemTextContent result from fallback:",{text:R.substring(0,100)}),R.trim()},D=(T,R=0)=>{let U="";const O=T.tagName==="OL",$=T.classList.contains("task-list")||T.getAttribute("data-type")==="taskList";let L="";R>0&&($?R===1?L=" ":L=` ${" ".repeat(R-1)}`:O?L=" ".repeat(R):L=" ".repeat(R));const F=T.children?Array.from(T.children).filter(X=>X.tagName==="LI"):[];return he.debug("[markdown-processor] Processing list:",{tagName:T.tagName,isTaskList:$,indentLevel:R,directChildrenCount:F.length}),F.forEach((X,J)=>{if($&&X.hasAttribute("data-type")&&X.getAttribute("data-type")==="taskItem"){const ee=X.getAttribute("data-checked"),le=X.getAttribute("data-status"),ue=X.querySelector('input[type="checkbox"]');let De="- [ ] ";le==="in-progress"?De="- [/] ":(ee==="true"||ee===null&&ue?.checked)&&(De="- [x] ");const ve=M(X),Ae=X.getAttribute("data-delegated-agent-id"),st=Ae?` <!--agent:${Ae}-->`:"";he.debug("[markdown-processor] Processing task item:",{index:J,indentLevel:R,dataChecked:ee,dataStatus:le,taskPrefix:De,taskText:ve,delegatedAgentId:Ae}),U+=`${L+De+ve}${st}
387
+ `;const wt=[];wt.push(...Array.from(X.children).filter(Qe=>Qe.tagName==="UL"||Qe.tagName==="OL"));const Ze=Array.from(X.children).filter(Qe=>Qe.tagName==="DIV");for(const Qe of Ze)wt.push(...Array.from(Qe.children).filter(gr=>gr.tagName==="UL"||gr.tagName==="OL"));for(const Qe of wt)U+=D(Qe,R+1)}else{const ee=T.tagName==="OL"?`${J+1}. `:"- ",le=M(X);he.debug("[markdown-processor] Processing regular list item:",{index:J,indentLevel:R,prefix:ee,text:le}),U+=`${L+ee+le}
388
+ `;const ue=[];ue.push(...Array.from(X.children).filter(ve=>ve.tagName==="UL"||ve.tagName==="OL"));const De=Array.from(X.children).filter(ve=>ve.tagName==="DIV");for(const ve of De)ue.push(...Array.from(ve.children).filter(Ae=>Ae.tagName==="UL"||Ae.tagName==="OL"));for(const ve of ue)U+=D(ve,R+1)}}),U},S=T=>{const R=g(T);if(R)return`${R}${T.tagName==="DIV"?`
389
389
 
390
- `:""}`;if(T.tagName==="IMG"){const $=T.getAttribute("src")||"",L=ki($)??$,F=T.getAttribute("alt")||"",Y=T.getAttribute("title");return Y?`![${F}](${L} "${Y}")
390
+ `:""}`;if(T.tagName==="IMG"){const $=T.getAttribute("src")||"",L=ki($)??$,F=T.getAttribute("alt")||"",X=T.getAttribute("title");return X?`![${F}](${L} "${X}")
391
391
 
392
392
  `:`![${F}](${L})
393
393
 
394
394
  `}else if(T.tagName==="VIDEO"){const $=T.getAttribute("src")||"",L=ol($)??$,F=T.getAttribute("data-name")||"";return L?`![${F}](${L})
395
395
 
396
- `:""}else if(T.tagName==="P"){const $=A(T);return $.trim()===""?Ya:`${$}
396
+ `:""}else if(T.tagName==="P"){const $=A(T);return $.trim()===""?Xa:`${$}
397
397
 
398
398
  `}else{if(T.tagName==="H1")return`# ${A(T)}
399
399
 
@@ -416,23 +416,23 @@ ${A}`;i=i.replace(d,W);continue}}i=i.replace(d,A)}return i}const Ya="\0",Uf=/\u0
416
416
 
417
417
  `:`> ${A(T)}
418
418
 
419
- `}else{if(T.tagName==="CODE")return`\`${T.textContent}\``;if(T.tagName==="PRE"){const $=T.querySelector("code");let L="";if($){const J=Array.from($.classList).find(ee=>ee.startsWith("language-"));J&&(L=J.replace("language-",""))}const F=$||T,Y=F.innerText??F.textContent??"";return`\`\`\`${L}
420
- ${Y}
419
+ `}else{if(T.tagName==="CODE")return`\`${T.textContent}\``;if(T.tagName==="PRE"){const $=T.querySelector("code");let L="";if($){const J=Array.from($.classList).find(ee=>ee.startsWith("language-"));J&&(L=J.replace("language-",""))}const F=$||T,X=F.innerText??F.textContent??"";return`\`\`\`${L}
420
+ ${X}
421
421
  \`\`\`
422
422
 
423
423
  `}else if(T.tagName==="TABLE"){const $=[],L=[],F=T.querySelector("thead");if(F){const le=F.querySelector("tr");if(le){const ue=Array.from(le.querySelectorAll("th, td")),De=ue.map(ve=>A(ve).trim());$.push(De),ue.forEach(ve=>{const Ae=ve.getAttribute("align")||"left";L.push(Ae)})}}if((T.querySelector("tbody")||T).querySelectorAll("tr").forEach(le=>{if(F&&le.parentElement===F)return;const ue=Array.from(le.querySelectorAll("td, th")),De=ue.map(ve=>A(ve).trim());$.push(De),L.length===0&&ue.length>0&&ue.forEach(ve=>{const Ae=ve.getAttribute("align")||"left";L.push(Ae)})}),$.length===0)return"";let ee="";if($.length>0){ee+=`| ${$[0].join(" | ")} |
424
424
  `;const le=$[0].map((ue,De)=>{const ve=L[De]||"left";return ve==="center"?":---:":ve==="right"?"---:":"---"});ee+=`| ${le.join(" | ")} |
425
425
  `}for(let le=1;le<$.length;le++)ee+=`| ${$[le].join(" | ")} |
426
426
  `;return`${ee}
427
- `}else if(T.tagName==="DETAILS"){const $=T.querySelector("summary"),L=$?A($).trim():"",F=T.hasAttribute("open");let Y="";for(const ee of Array.from(T.children))if(ee.tagName!=="SUMMARY")if(ee.classList.contains("details-content"))for(const le of Array.from(ee.children))Y+=S(le);else Y+=S(ee);return`<details${F?" open":""}>
427
+ `}else if(T.tagName==="DETAILS"){const $=T.querySelector("summary"),L=$?A($).trim():"",F=T.hasAttribute("open");let X="";for(const ee of Array.from(T.children))if(ee.tagName!=="SUMMARY")if(ee.classList.contains("details-content"))for(const le of Array.from(ee.children))X+=S(le);else X+=S(ee);return`<details${F?" open":""}>
428
428
  <summary>${L}</summary>
429
429
 
430
- ${Y}</details>
430
+ ${X}</details>
431
431
 
432
- `}else if(T.tagName==="DIV"&&T.getAttribute("data-type")==="choice-block"){const L=T.querySelector('[data-type="choice-question"]')?.textContent?.trim()||"",F=T.querySelectorAll('[data-type="choice-option"]'),Y=Array.from(F).map(J=>{const ee=J.getAttribute("data-selected")==="true",le=J.textContent?.trim()||"";return`${ee?"(x)":"( )"} ${le}`}).join(`
432
+ `}else if(T.tagName==="DIV"&&T.getAttribute("data-type")==="choice-block"){const L=T.querySelector('[data-type="choice-question"]')?.textContent?.trim()||"",F=T.querySelectorAll('[data-type="choice-option"]'),X=Array.from(F).map(J=>{const ee=J.getAttribute("data-selected")==="true",le=J.textContent?.trim()||"";return`${ee?"(x)":"( )"} ${le}`}).join(`
433
433
  `);return`\`\`\`choice
434
434
  ${L}
435
- ${Y}
435
+ ${X}
436
436
  \`\`\`
437
437
 
438
438
  `}else if(T.tagName==="DIV"&&T.getAttribute("data-type")==="mermaid-block"){const $=T.getAttribute("data-mermaid-code")||"";let L=$;try{/^[A-Za-z0-9+/=]+$/.test($.trim())?L=decodeURIComponent(escape(atob($))):L=$.replace(/&lt;/g,"<").replace(/&gt;/g,">").replace(/&quot;/g,'"').replace(/&#39;/g,"'").replace(/&amp;/g,"&")}catch{}return`\`\`\`mermaid
@@ -451,20 +451,20 @@ ${JSON.stringify(L,null,2)}
451
451
  ${JSON.stringify(J,null,2)}
452
452
  \`\`\`
453
453
 
454
- `}catch(J){he.error("[markdown-processor] Failed to parse TipTap primitive data",J)}const Y=T.innerHTML.trim();if(Y.startsWith("{")&&Y.includes('"type"'))try{const J=JSON.parse(Y);if(J.type&&["reference","cli","agent_action","patch","diagram"].includes(J.type))return he.info("[markdown-processor] Recovered primitive from innerHTML",{type:J.type,id:J.id}),`\`\`\`ws-block
454
+ `}catch(J){he.error("[markdown-processor] Failed to parse TipTap primitive data",J)}const X=T.innerHTML.trim();if(X.startsWith("{")&&X.includes('"type"'))try{const J=JSON.parse(X);if(J.type&&["reference","cli","agent_action","patch","diagram"].includes(J.type))return he.info("[markdown-processor] Recovered primitive from innerHTML",{type:J.type,id:J.id}),`\`\`\`ws-block
455
455
  ${JSON.stringify(J,null,2)}
456
456
  \`\`\`
457
457
 
458
- `}catch{}return he.warn("[markdown-processor] Primitive block without data-primitive attribute",{dataType:$,innerHTML:Y.substring(0,200)}),""}}}}if(T.tagName==="DIV"&&T.querySelector("table, ul, ol, blockquote, pre, h1, h2, h3, h4, h5, h6, details")){let L="";for(const F of Array.from(T.children))L+=S(F);return L}const U=["DIV","SECTION","ARTICLE","HEADER","FOOTER","MAIN","ASIDE","NAV","H1","H2","H3","H4","H5","H6"],O=T.textContent||"";return U.includes(T.tagName)&&O.trim()?(he.debug("[markdown-processor] Fallback for block element:",{tagName:T.tagName,textPreview:O.substring(0,50)}),`${O}
458
+ `}catch{}return he.warn("[markdown-processor] Primitive block without data-primitive attribute",{dataType:$,innerHTML:X.substring(0,200)}),""}}}}if(T.tagName==="DIV"&&T.querySelector("table, ul, ol, blockquote, pre, h1, h2, h3, h4, h5, h6, details")){let L="";for(const F of Array.from(T.children))L+=S(F);return L}const U=["DIV","SECTION","ARTICLE","HEADER","FOOTER","MAIN","ASIDE","NAV","H1","H2","H3","H4","H5","H6"],O=T.textContent||"";return U.includes(T.tagName)&&O.trim()?(he.debug("[markdown-processor] Fallback for block element:",{tagName:T.tagName,textPreview:O.substring(0,50)}),`${O}
459
459
 
460
460
  `):O};let C="";const W=(T,R=!1)=>{if(T.nodeType===Node.COMMENT_NODE){const U=T;return U.data.startsWith("anchor:")?`<!--${U.data}-->`:""}else if(T.nodeType===Node.TEXT_NODE){const U=T.textContent||"";return R&&U.trim()?`${U}
461
461
 
462
- `:U}else if(T.nodeType===Node.ELEMENT_NODE)return S(T);return""};let K=0,X=null;for(const T of Array.from(w.childNodes)){const R=W(T,!0);if(R===Ya?K++:R.trim()!==""&&(K=0,X=T.nodeType===Node.ELEMENT_NODE?T.tagName:null),T.nodeType===Node.ELEMENT_NODE){const U=T;(U.hasAttribute("data-type")||U.hasAttribute("data-primitive-type")||U.tagName==="P")&&he.debug("[markdown-processor] Processing node:",{tagName:U.tagName,dataType:U.getAttribute("data-type"),primitiveType:U.getAttribute("data-primitive-type"),resultPreview:R.substring(0,100),resultEndsWithNewlines:R.endsWith(`
462
+ `:U}else if(T.nodeType===Node.ELEMENT_NODE)return S(T);return""};let K=0,Y=null;for(const T of Array.from(w.childNodes)){const R=W(T,!0);if(R===Xa?K++:R.trim()!==""&&(K=0,Y=T.nodeType===Node.ELEMENT_NODE?T.tagName:null),T.nodeType===Node.ELEMENT_NODE){const U=T;(U.hasAttribute("data-type")||U.hasAttribute("data-primitive-type")||U.tagName==="P")&&he.debug("[markdown-processor] Processing node:",{tagName:U.tagName,dataType:U.getAttribute("data-type"),primitiveType:U.getAttribute("data-primitive-type"),resultPreview:R.substring(0,100),resultEndsWithNewlines:R.endsWith(`
463
463
 
464
- `)})}else if(T.nodeType===Node.TEXT_NODE){const U=T.textContent||"";U.trim()&&he.warn("[markdown-processor] Found top-level text node (treating as paragraph):",{textPreview:U.substring(0,100),textLength:U.length})}C+=R}if(K===1&&X!==null&&X!=="P"){const T=C.lastIndexOf(Ya);C=C.slice(0,T)+C.slice(T+1)}return C=C.replace(/\n{3,}/g,`
464
+ `)})}else if(T.nodeType===Node.TEXT_NODE){const U=T.textContent||"";U.trim()&&he.warn("[markdown-processor] Found top-level text node (treating as paragraph):",{textPreview:U.substring(0,100),textLength:U.length})}C+=R}if(K===1&&Y!==null&&Y!=="P"){const T=C.lastIndexOf(Xa);C=C.slice(0,T)+C.slice(T+1)}return C=C.replace(/\n{3,}/g,`
465
465
 
466
466
  `).trim().replace(Uf,`
467
- `),he.debug("[markdown-processor] processHTMLToMarkdown OUTPUT:",{markdownLength:C.length,preservedAnchors:r}),C}typeof window<"u"&&(window.__clearMarkdownCache=$f);const yl={major:15,minor:3},bu="workspace-create:initializeGit",Kf="~/Documents",wl="~/Developer";function Zf(t){return Fl(t,yl.major,yl.minor)}function N3(t){return t.some(e=>!p1(e))}function _3(t){return t.rememberedChoice!==null?t.rememberedChoice:t.hasGitWorkspace||t.githubConnected||t.gitlabConnected||t.githubFailed||t.gitlabFailed?!0:!t.workspacesLoaded||!t.githubSettled||!t.gitlabSettled?null:!1}function L3(t,e){switch(t){case"git-repo":return!e;case"new-repo":return!0;case"clone":return!1;default:return null}}function P3(t){try{const e=t?.getItem(bu);if(e==="true")return!0;if(e==="false")return!1}catch{}return null}function O3(t,e){try{t?.setItem(bu,String(e))}catch{}}function $3(t,e){return t&&t!==wl?t:e?Kf:wl}function Qf(t,e){const r=n=>n.replace(/[\\/]+$/,"");return r(t)===r(e)}function B3(t,e){return e?t.filter(r=>[r.repositoryPath,r.worktreePath,r.path].some(n=>typeof n=="string"&&n.length>0&&Qf(n,e))):[]}function q3(t){const e=t.contextLinks?.filter(r=>r.kind!=="pr");return{title:t.title??"",repositoryPath:t.repositoryPath,plainFolder:!0,...e&&e.length>0?{contextLinks:e}:{},...t.linearIssue?{linearIssue:t.linearIssue}:{},...t.sentryIssue?{sentryIssue:t.sentryIssue}:{},...t.initialAgent?{initialAgent:t.initialAgent}:{}}}function F3(t,e){return!t||t.isGitRepo||t.isSubdirectoryOfGitRepo?null:t.exists?t.isDirectory?"existing":null:e===!1?"new":null}function H3(t){return t.labsEnabled&&Zf(t.protocolVersion)&&t.githubSettled&&t.gitlabSettled&&!t.githubFailed&&!t.gitlabFailed&&!t.githubConnected&&!t.gitlabConnected}function U3(t,e){return!!t&&!t.plainFolder&&e.checked&&!e.available}const $t=E.createSelector(t=>Ll.select(t)?ur.select(t):null),Jf=E.createSelector(t=>{const e=Lr.select(t)?.principal;return e?JSON.stringify([t.connections.windowBackendId,e.id]):null}),W3=E.createSelector(t=>ge(t.workspace.workspaces).map(e=>String(e.id))),G3=E.createSelector((t,e,r=Re)=>{const n=$t.select(t),a=Se(t.workspace.workspaces,c0(e)),i=Ei(t.workspaceDiscussion,e,r);return n&&t.workspaceDiscussion.context===n&&a&&t.workspaceDiscussion.workspaceIds.includes(e)&&i?{context:n,workspaceId:e,conversationId:r,epoch:i.epoch}:null}),Jn=E.createSelector(t=>{const e=t.workspaceDiscussion.owner;if(!e||!F1.select(t)||t.principal.status==="revoked"||t.principal.error==="incompatible-response"||t.connections.authRejected?.id===t.connections.windowBackendId)return!1;const r=Jf.select(t);if(r)return r===e;try{const[n,a]=JSON.parse(e),i=t.principal.boundPrincipalId??t.principal.snapshot?.principal.id;return n===t.connections.windowBackendId&&(i==null||i===a)}catch{return!1}}),_t=E.createSelector((t,e,r=Re)=>{if(!Se(t.workspace.workspaces,c0(e))||!Jn.select(t))return vn;const a=Ei(t.workspaceDiscussion,e,r)??vn;return r!==Re&&r!==jt&&(!a.authorized||!a.initialized&&t.workspaceDiscussion.conversationsSupported!==!0)?{...a,draft:"",agentMentions:[],principalMentions:[],messages:vn.messages,pending:vn.pending}:a}),e2=E.createSelector((t,e,r=Re)=>_t.select(t,e,r).authorized?ge(_t.select(t,e,r).messages):[]),j3=E.createSelector((t,e,r=Re)=>_t.select(t,e,r).authorized?ge(_t.select(t,e,r).pending):[]),t2=E.createSelector((t,e,r=Re)=>{const n=Se(t.workspace.workspaces,c0(e)),a=_t.select(t,e,r);return!!$t.select(t)&&!!n&&!t.workspaceDiscussion.deletedKeys.includes(JSON.stringify([e,r]))&&(r===Re||(r===jt?t.workspaceDiscussion.managementSupported===!0:(t.workspaceDiscussion.conversationsSupported===!0||t.workspaceDiscussion.managementSupported===!0)&&a.authorized))&&!a.unsupported&&a.error!=="forbidden"}),V3=E.createSelector(t=>t.workspaceDiscussion.requestedIds),Y3=E.createSelector(t=>t.workspaceDiscussion.requestedIds.filter(e=>{const[r,n]=JSON.parse(e);return!Ei(t.workspaceDiscussion,r,n)})),yu=E.createSelector((t,e)=>ku.select(t)===!0&&!!$t.select(t)&&!!Pl.select(t,e)),r2=E.createSelector((t,e)=>yu.select(t,e)&&!wu.select(t)),Z0=E.createSelector((t,e)=>Jn.select(t)&&(t.workspaceDiscussion.conversationsSupported===!0||t.workspaceDiscussion.managementSupported===!0)?t.workspaceDiscussion.directories[e]??Ps:Ps),X3=E.createSelector((t,e)=>ge(Z0.select(t,e).conversations)),K3=E.createSelector((t,e)=>{if(Jn.select(t)&&t.workspaceDiscussion.deletedKeys.includes(JSON.stringify([e,Re])))return!1;if(t.workspaceDiscussion.managementSupported!==!0)return!0;const r=Z0.select(t,e);return!!Se(r.conversations,Re)||r.status!=="ready"||r.hasMore}),Z3=E.createSelector((t,e)=>{const r=Jn.select(t)?t.workspaceDiscussion.recipients[e]??Os:Os,n=_t.select(t,e,jt).recipientPrincipalIds;return{status:r.status,query:r.query,members:ge(r.members),selectedMembers:ge(r.knownMembers).filter(a=>n.includes(a.principalId)),hasMore:r.hasMore,error:r.error}});E.createSelector((t,e)=>_t.select(t,e,jt).createdConversationId);const Q3=E.createSelector(t=>t.workspaceDiscussion.conversationsSupported),J3=E.createSelector(t=>t.workspaceDiscussion.directoryRequestedIds),e6=E.createSelector((t,e)=>t.workspaceDiscussion.recipients[e]),n2=E.createSelector(t=>{const e=Lr.select(t)?.principal;return e?{principalId:e.id,login:e.login??null,displayName:e.displayName??null,avatarUrl:e.avatarUrl??null}:null}),t6=E.createSelector((t,e,r=Re)=>{const n=_t.select(t,e,r),a=t.workspaceDiscussion.owner,i=n2.select(t)?.principalId??(a?JSON.parse(a)[1]:null),s=n.readSequence??0,o=e2.select(t,e,r).filter(c=>c.sequence>s&&(c.author.agentId!==void 0||c.author.principalId!==i));return{count:o.length,firstSequence:o[0]?.sequence??null}}),wu=E.createSelector(t=>t.workspaceDiscussion.context===$t.select(t)&&t.workspaceDiscussion.sharingEnabled===!1),Q0=E.createSelector((t,e,r=Re)=>(r!==jt||r2.select(t,e))&&t2.select(t,e,r)&&!wu.select(t)&&!l2.select(t,e,r)),r6=E.createSelector((t,e)=>m1.select(t)&&f1.select(t,e)),n6=E.createSelector(t=>t.workspaceDiscussion.messageActionsSupported),a6=E.createSelector((t,e,r=Re)=>r!==jt&&t.workspaceDiscussion.messageActionsSupported===!0&&Q0.select(t,e,r)),i6=E.createSelector((t,e,r=Re)=>{const n=_t.select(t,e,r);return n.replyToMessageId&&n.authorized?Se(n.messages,n.replyToMessageId)??null:null}),a2=E.createSelector(t=>t.workspaceDiscussion.context===$t.select(t)?t.workspaceDiscussion.agentMessagingSupported:null),i2=E.createSelector(t=>t.workspaceDiscussion.context===$t.select(t)?t.workspaceDiscussion.agentActivitySupported:null),s6=E.createSelector(t=>t.workspaceDiscussion.context===$t.select(t)?t.workspaceDiscussion.principalMentionsSupported:null),o6=E.createSelector((t,e,r=Re)=>r!==jt&&c2.select(t,e,r)&&i2.select(t)===!0&&Q0.select(t,e,r)),l6=E.createSelector((t,e,r=Re)=>ge(_t.select(t,e,r).agentControls).map(n=>n.key)),c6=E.createSelector(t=>t.workspaceDiscussion.context===$t.select(t)?t.workspaceDiscussion.reactionsSupported:null),ku=E.createSelector(t=>t.workspaceDiscussion.context===$t.select(t)?t.workspaceDiscussion.managementSupported:null),s2=E.createSelector((t,e)=>$t.select(t)===t.workspaceDiscussion.context?t.workspaceDiscussion.management[e]??$s:$s),o2=E.createSelector((t,e,r=Re)=>{const n=Pl.select(t,e);return yu.select(t,e)&&(n?.myRole==="owner"||n?.myRole==="manager")&&!t.workspaceDiscussion.deletedKeys.includes(JSON.stringify([e,r]))&&Se(Z0.select(t,e).conversations,r)?.kind==="workspace"}),u6=E.createSelector((t,e,r=Re)=>o2.select(t,e,r)&&g1.select(t,e)),d6=E.createSelector((t,e,r)=>{const n=s2.select(t,e);return n.pending!==null&&(r===void 0||n.conversationId===r)}),l2=E.createSelector((t,e,r=Re)=>{const n=Se(Z0.select(t,e).conversations,r);return!!n&&n.kind!=="workspace"}),c2=E.createSelector((t,e,r=Re)=>a2.select(t)===!0&&Q0.select(t,e,r)&&(r===Re||ku.select(t)===!0&&(r===jt||Se(Z0.select(t,e).conversations,r)?.kind==="workspace"))),h6=E.createSelector(t=>t.presence.profileRevision),p6=E.createSelector(t=>t.presence.windowVisible),m6=E.createSelector(t=>t.presence.captureDrawingActive),u2=E.createSelector(t=>Ll.select(t)?ur.select(t):null),xu=t=>{const e=u2.select(t);return e!==null&&t.presence.context===e},f6=E.createSelector(t=>H1.select(t).filter(e=>!!Se(t.workspace.workspaces,c0(e)))),n0=[],a0=[],kl=[],d2=(t,e)=>{const r=t.rosters[e];return r?ge(r):n0},$r=(t,e)=>{const r=Se(t.workspace.workspaces,c0(e));return xu(t)&&r&&(r.memberCount??1)>1?r:void 0},g6=E.createSelector((t,e)=>{const r=t.presence.ownPrincipalId;if(r===null||!$r(t,e))return kl;const n=t.presence.members[e];return n?ge(n).filter(a=>a.principalId!==r&&!!a.login?.trim()):kl}),is=(t,e)=>({principalId:t.principalId,login:t.login,displayName:t.displayName,avatarUrl:t.avatarUrl,...t.identity?{identity:t.identity}:{},...t.hostRole?{hostRole:t.hostRole}:{},...e}),h2=t=>t.some(e=>e.online&&!e.self),qn=t=>t.owner?0:t.online?1:2,Su=E.createSelector((t,e)=>{const r=t.presence.ownPrincipalId;if(r===null||!$r(t,e))return a0;const n=t.presence.members[e];if(!n)return a0;const a=t.presence.rosters[e],i=ge(n).filter(s=>s.principalId!==r).map(s=>{const o=a?Se(a,s.principalId):void 0,c=o?{...s,...o}:s;return is(c,{owner:c.hostRole?c.hostRole==="owner":s.role==="owner",online:o!==void 0,viewing:o?.focus.some(d=>d.workspaceId===e)??!1,self:!1})}).sort((s,o)=>qn(s)-qn(o));return i.length>0?i:a0}),v6=E.createSelector((t,e)=>{const r=Lr.select(t)?.capabilities.hostMembership;return Su.select(t,e).filter(n=>r&&!n.hostRole?!1:!n.hostRole||n.hostRole==="guest"||n.online)}),p2=E.createSelector((t,e)=>{if(!$r(t,e))return a0;const r=t.presence.members[e],n=t.presence.rosters[e],a=new Map;for(const s of r?ge(r):[])a.set(s.principalId,s);for(const s of n?ge(n):[])a.set(s.principalId,{...a.get(s.principalId),...s});const i=Lr.select(t)?.principal;return i&&i.id===t.presence.ownPrincipalId&&!a.has(i.id)&&a.set(i.id,{...i,principalId:i.id}),[...a.values()]}),b6=E.createSelector((t,e)=>{const r=Su.select(t,e),n=t.presence.ownPrincipalId,a=p2.select(t,e).find(s=>s.principalId===n);if(!a)return r;const i=$r(t,e);return[is(a,{owner:a.hostRole?a.hostRole==="owner":i?.ownerPrincipalId===n,online:!0,viewing:!0,self:!0}),...r]}),y6=E.createSelector((t,e,r)=>{const n=t.presence.ownPrincipalId,a=$r(t,e);if(n===null||!a)return a0;const i=d2(t.presence,e).filter(s=>s.principalId!==n&&s.focus.some(o=>o.workspaceId===e&&o.agentId===r)).map(s=>is(s,{owner:s.principalId===a.ownerPrincipalId,online:!0,viewing:!0,self:!1})).sort((s,o)=>qn(s)-qn(o));return h2(i)?i:a0}),w6=E.createSelector((t,e,r)=>{const n=t.presence.liveTyping[e],a=t.presence.rosters[e];if(!n||!a)return n0;const i=new Set;for(const s of Object.keys(n)){const o=n[s];o.expired||o.agentId!==r||s===t.presence.ownTypingSource||Se(a,o.principalId)&&i.add(o.principalId)}return i.size===0?n0:ge(a).filter(s=>i.has(s.principalId))}),m2=E.createSelector(t=>{const e=t.presence.discussionComposerWorkspaceId;return e&&xu(t)&&$r(t,e)&&t.presence.windowVisible&&t.tabState.currentTabId===e&&t.presence.discussionComposerConversationId!==jt&&Q0.select(t,e,t.presence.discussionComposerConversationId)?e:null}),f2=E.createSelector(t=>{const e=m2.select(t);return e?ql(e,t.presence.discussionComposerConversationId):null}),k6=E.createSelector((t,e,r=Re)=>{if(r!==Re&&!Q0.select(t,e,r)||!$r(t,e)||t.presence.ownPrincipalId===null)return n0;const n=t.presence.liveDiscussionTyping[e],a=t.presence.rosters[e];if(!n||!a)return n0;const i=new Set(Object.entries(n).filter(([s,o])=>!o.expired&&o.conversationId===r&&s!==t.presence.ownTypingSource&&o.principalId!==t.presence.ownPrincipalId).map(([,s])=>s.principalId));return i.size?ge(a).filter(s=>i.has(s.principalId)):n0}),x6=E.createSelector(t=>t.presence.liveDiscussionTyping),g2=E.createSelector(t=>{if(!t.presence.windowVisible)return{focus:[],typing:null};const e=t.tabState.currentTabId;if(!e)return{focus:[],typing:null};const r=[{workspaceId:e}],n=t.panelLayout.byWorkspaceId[e]?.panels??{};for(const i of Object.keys(n).sort()){const s=n[i],o=s.activeTabId?s.tabs.find(c=>c.id===s.activeTabId):void 0;o&&(o.type==="agent"&&o.agentId?r.push({workspaceId:e,agentId:o.agentId}):o.type==="note"&&o.noteId&&r.push({workspaceId:e,noteId:o.noteId}))}const a=t.presence.ownDiscussionTyping;return{focus:r,typing:t.presence.ownTyping,...a&&ql(a.workspaceId,a.conversationId)===f2.select(t)?{discussionTyping:a}:{}}}),S6=E.createSelector(t=>JSON.stringify(g2.select(t))),A6=E.createSelector(t=>t.presence.liveTyping),T6=E.createSelector(t=>t.presence.ownPrincipalId),E6=E.createSelector(t=>{const e=[];for(const r of Object.keys(t.tabState.openTabs)){if(t.tabState.openTabs[r]!==!0)continue;const n=Se(t.workspace.workspaces,c0(r))?.memberCount??1;n>1&&e.push(`${r}:${n}`)}return e.sort()});let cr=null;function M6(t){const e={};return cr={token:e,onCancel:t},e}function C6(t){return cr?.token===t}function I6(t){cr?.token===t&&(cr=null)}function z6(){return cr!==null}function R6(){if(cr===null)return!1;const{onCancel:t}=cr;return cr=null,t(),!0}const In=Hl("ProviderAvailabilityClient");let Zr=null;async function D6(){if(typeof window>"u")return In.debug("Skipping provider availability check - not in browser environment"),xl();const t=v1.select(E.state);if(Zr&&Zr.connection===t)return In.debug("Joining in-flight provider availability request"),Zr.promise;const e={},r=(async()=>{try{In.debug("Checking provider availability via IPC");const n=await He(j1.GET_AVAILABILITY);if(!n.success)throw new Error(n.error||"Failed to get provider availability");const a=n.data??xl();return In.debug("Provider availability fetched",{hasAnyProvider:a.hasAnyProvider,auggie:a.providers.auggie.available,claudeCode:a.providers.claudeCode.available,codex:a.providers.codex.available,cortex:a.providers.cortex.available,mock:a.providers.mock?.available??!1,opencode:a.providers.opencode.available,droid:a.providers.droid?.available??!1,grok:a.providers.grok?.available??!1,unsloth:a.providers.unsloth?.available??!1}),a}finally{Zr?.token===e&&(Zr=null)}})();return Zr={connection:t,token:e,promise:r},r}function xl(){return{hasAnyProvider:!1,providers:{auggie:{available:!1},claudeCode:{available:!1},codex:{available:!1},cortex:{available:!1},mock:{available:!1},opencode:{available:!1},pi:{available:!1},droid:{available:!1},grok:{available:!1},unsloth:{available:!1}}}}const ft={IS_AUTHENTICATED:"github-auth:is-authenticated",GET_USER:"github-auth:get-user",START_AUTH:"github-auth:start",POLL_FOR_TOKEN:"github-auth:poll",CANCEL_AUTH:"github-auth:cancel",LOGOUT:"github-auth:logout",GET_AUTH_STATE:"github-auth:get-auth-state",GET_STATUS:"github-auth:get-status",LIST_REPOS:"github-auth:list-repos",SEARCH_REPOS:"github-auth:search-repos",SEARCH_USERS:"github-auth:search-users"},N6={async isAuthenticated(t){try{return await He(ft.IS_AUTHENTICATED,...t===void 0?[]:[{workspaceId:t}])}catch{return!1}},async getUser(t){try{return await He(ft.GET_USER,...t===void 0?[]:[{workspaceId:t}])}catch{return null}},async startAuth(t){return t?await He(ft.START_AUTH,t):await He(ft.START_AUTH)},async checkAuthComplete(){return await He(ft.POLL_FOR_TOKEN)},async cancelAuth(t){return t?He(ft.CANCEL_AUTH,t):He(ft.CANCEL_AUTH)},async logout(){return He(ft.LOGOUT)},async getAuthState(t){try{return await He(ft.GET_AUTH_STATE,...t===void 0?[]:[{workspaceId:t}])}catch{return{isAuthenticated:!1,requiresDaemonAuth:!0,user:null}}},async getStatus(t){try{return await He(ft.GET_STATUS,...t===void 0?[]:[{workspaceId:t}])}catch{return{isConfigured:!1,oauthUrl:"",configuredButNeedsUpdate:!1,updatedScopes:""}}},async listRepos(t,e){const r=await He(ft.LIST_REPOS,{page:t,...e===void 0?{}:{workspaceId:e}});if(!r.success)throw new Error(r.error||"Repository discovery failed");return r.data??[]},async searchRepos(t,e){try{return await He(ft.SEARCH_REPOS,{query:t,...e===void 0?{}:{workspaceId:e}})}catch(r){return{success:!1,error:r instanceof Error?r.message:String(r)}}},async searchUsers(t,e){try{return await He(ft.SEARCH_USERS,{query:t,...e===void 0?{}:{workspaceId:e}})}catch(r){return{success:!1,error:r instanceof Error?r.message:String(r)}}}};class v2{constructor(){se(this,"metrics",new Map);se(this,"completedMetrics",[]);se(this,"maxCompletedMetrics",100)}start(e,r){ka.get("showPerformanceMetrics")&&this.metrics.set(e,{name:e,startTime:performance.now(),metadata:r})}end(e){if(!ka.get("showPerformanceMetrics"))return null;const r=this.metrics.get(e);return r?(r.endTime=performance.now(),r.duration=r.endTime-r.startTime,this.metrics.delete(e),this.completedMetrics.push(r),this.completedMetrics.length>this.maxCompletedMetrics&&this.completedMetrics.shift(),ka.get("logStateChanges")&&Sl.info(`[Performance] ${e}: ${r.duration.toFixed(2)}ms`,r.metadata),r.duration):(Sl.warn(`Performance metric "${e}" was not started`),null)}async measure(e,r,n){this.start(e,n);try{const a=await r();return this.end(e),a}catch(a){throw this.end(e),a}}getMetrics(){return[...this.completedMetrics]}clear(){this.metrics.clear(),this.completedMetrics=[]}}const _6=new v2,Sl=new u0("Performance"),Al=t=>{t=1831565813+(t|=0)|0;let e=Math.imul(t^t>>>15,1|t);return e=e+Math.imul(e^e>>>7,61|e)^e,((e^e>>>14)>>>0)/4294967296};class b2{constructor(e){this.dictionaries=void 0,this.length=void 0,this.separator=void 0,this.style=void 0,this.seed=void 0;const{length:r,separator:n,dictionaries:a,style:i,seed:s}=e;this.dictionaries=a,this.separator=n,this.length=r,this.style=i,this.seed=s}generate(){if(!this.dictionaries)throw new Error('Cannot find any dictionary. Please provide at least one, or leave the "dictionary" field empty in the config object');if(this.length<=0)throw new Error("Invalid length provided");if(this.length>this.dictionaries.length)throw new Error(`The length cannot be bigger than the number of dictionaries.
468
- Length provided: ${this.length}. Number of dictionaries provided: ${this.dictionaries.length}`);let e=this.seed;return this.dictionaries.slice(0,this.length).reduce((r,n)=>{let a;e?(a=(s=>{if(typeof s=="string"){const o=s.split("").map(d=>d.charCodeAt(0)).reduce((d,p)=>d+p,1),c=Math.floor(Number(o));return Al(c)}return Al(s)})(e),e=4294967296*a):a=Math.random();let i=n[Math.floor(a*n.length)]||"";if(this.style==="lowerCase")i=i.toLowerCase();else if(this.style==="capital"){const[s,...o]=i.split("");i=s.toUpperCase()+o.join("")}else this.style==="upperCase"&&(i=i.toUpperCase());return r?`${r}${this.separator}${i}`:`${i}`},"")}}const Tl={separator:"_",dictionaries:[]},y2=t=>{const e=[...t&&t.dictionaries||Tl.dictionaries],r={...Tl,...t,length:t&&t.length||e.length,dictionaries:e};if(!t||!t.dictionaries||!t.dictionaries.length)throw new Error('A "dictionaries" array must be provided. This is a breaking change introduced starting from Unique Name Generator v4. Read more about the breaking change here: https://github.com/andreasonny83/unique-names-generator#migration-guide');return new b2(r).generate()};var w2=["able","above","absent","absolute","abstract","abundant","academic","acceptable","accepted","accessible","accurate","accused","active","actual","acute","added","additional","adequate","adjacent","administrative","adorable","advanced","adverse","advisory","aesthetic","afraid","aggregate","aggressive","agreeable","agreed","agricultural","alert","alive","alleged","allied","alone","alright","alternative","amateur","amazing","ambitious","amused","ancient","angry","annoyed","annual","anonymous","anxious","appalling","apparent","applicable","appropriate","arbitrary","architectural","armed","arrogant","artificial","artistic","ashamed","asleep","assistant","associated","atomic","attractive","automatic","autonomous","available","average","awake","aware","awful","awkward","back","bad","balanced","bare","basic","beautiful","beneficial","better","bewildered","big","binding","biological","bitter","bizarre","blank","blind","blonde","bloody","blushing","boiling","bold","bored","boring","bottom","brainy","brave","breakable","breezy","brief","bright","brilliant","broad","broken","bumpy","burning","busy","calm","capable","capitalist","careful","casual","causal","cautious","central","certain","changing","characteristic","charming","cheap","cheerful","chemical","chief","chilly","chosen","christian","chronic","chubby","circular","civic","civil","civilian","classic","classical","clean","clear","clever","clinical","close","closed","cloudy","clumsy","coastal","cognitive","coherent","cold","collective","colonial","colorful","colossal","coloured","colourful","combative","combined","comfortable","coming","commercial","common","communist","compact","comparable","comparative","compatible","competent","competitive","complete","complex","complicated","comprehensive","compulsory","conceptual","concerned","concrete","condemned","confident","confidential","confused","conscious","conservation","conservative","considerable","consistent","constant","constitutional","contemporary","content","continental","continued","continuing","continuous","controlled","controversial","convenient","conventional","convinced","convincing","cooing","cool","cooperative","corporate","correct","corresponding","costly","courageous","crazy","creative","creepy","criminal","critical","crooked","crowded","crucial","crude","cruel","cuddly","cultural","curious","curly","current","curved","cute","daily","damaged","damp","dangerous","dark","dead","deaf","deafening","dear","decent","decisive","deep","defeated","defensive","defiant","definite","deliberate","delicate","delicious","delighted","delightful","democratic","dependent","depressed","desirable","desperate","detailed","determined","developed","developing","devoted","different","difficult","digital","diplomatic","direct","dirty","disabled","disappointed","disastrous","disciplinary","disgusted","distant","distinct","distinctive","distinguished","disturbed","disturbing","diverse","divine","dizzy","domestic","dominant","double","doubtful","drab","dramatic","dreadful","driving","drunk","dry","dual","due","dull","dusty","dutch","dying","dynamic","eager","early","eastern","easy","economic","educational","eerie","effective","efficient","elaborate","elated","elderly","eldest","electoral","electric","electrical","electronic","elegant","eligible","embarrassed","embarrassing","emotional","empirical","empty","enchanting","encouraging","endless","energetic","enormous","enthusiastic","entire","entitled","envious","environmental","equal","equivalent","essential","established","estimated","ethical","ethnic","eventual","everyday","evident","evil","evolutionary","exact","excellent","exceptional","excess","excessive","excited","exciting","exclusive","existing","exotic","expected","expensive","experienced","experimental","explicit","extended","extensive","external","extra","extraordinary","extreme","exuberant","faint","fair","faithful","familiar","famous","fancy","fantastic","far","fascinating","fashionable","fast","fat","fatal","favourable","favourite","federal","fellow","female","feminist","few","fierce","filthy","final","financial","fine","firm","fiscal","fit","fixed","flaky","flat","flexible","fluffy","fluttering","flying","following","fond","foolish","foreign","formal","formidable","forthcoming","fortunate","forward","fragile","frail","frantic","free","frequent","fresh","friendly","frightened","front","frozen","full","fun","functional","fundamental","funny","furious","future","fuzzy","gastric","gay","general","generous","genetic","gentle","genuine","geographical","giant","gigantic","given","glad","glamorous","gleaming","global","glorious","golden","good","gorgeous","gothic","governing","graceful","gradual","grand","grateful","greasy","great","grieving","grim","gross","grotesque","growing","grubby","grumpy","guilty","handicapped","handsome","happy","hard","harsh","head","healthy","heavy","helpful","helpless","hidden","high","hilarious","hissing","historic","historical","hollow","holy","homeless","homely","hon","honest","horizontal","horrible","hostile","hot","huge","human","hungry","hurt","hushed","husky","icy","ideal","identical","ideological","ill","illegal","imaginative","immediate","immense","imperial","implicit","important","impossible","impressed","impressive","improved","inadequate","inappropriate","inc","inclined","increased","increasing","incredible","independent","indirect","individual","industrial","inevitable","influential","informal","inherent","initial","injured","inland","inner","innocent","innovative","inquisitive","instant","institutional","insufficient","intact","integral","integrated","intellectual","intelligent","intense","intensive","interested","interesting","interim","interior","intermediate","internal","international","intimate","invisible","involved","irrelevant","isolated","itchy","jealous","jittery","joint","jolly","joyous","judicial","juicy","junior","just","keen","key","kind","known","labour","large","late","latin","lazy","leading","left","legal","legislative","legitimate","lengthy","lesser","level","lexical","liable","liberal","light","like","likely","limited","linear","linguistic","liquid","literary","little","live","lively","living","local","logical","lonely","long","loose","lost","loud","lovely","low","loyal","ltd","lucky","mad","magic","magnetic","magnificent","main","major","male","mammoth","managerial","managing","manual","many","marginal","marine","marked","married","marvellous","marxist","mass","massive","mathematical","mature","maximum","mean","meaningful","mechanical","medical","medieval","melodic","melted","mental","mere","metropolitan","mid","middle","mighty","mild","military","miniature","minimal","minimum","ministerial","minor","miserable","misleading","missing","misty","mixed","moaning","mobile","moderate","modern","modest","molecular","monetary","monthly","moral","motionless","muddy","multiple","mushy","musical","mute","mutual","mysterious","naked","narrow","nasty","national","native","natural","naughty","naval","near","nearby","neat","necessary","negative","neighbouring","nervous","net","neutral","new","nice","noble","noisy","normal","northern","nosy","notable","novel","nuclear","numerous","nursing","nutritious","nutty","obedient","objective","obliged","obnoxious","obvious","occasional","occupational","odd","official","ok","okay","old","olympic","only","open","operational","opposite","optimistic","oral","ordinary","organic","organisational","original","orthodox","other","outdoor","outer","outrageous","outside","outstanding","overall","overseas","overwhelming","painful","pale","panicky","parallel","parental","parliamentary","partial","particular","passing","passive","past","patient","payable","peaceful","peculiar","perfect","permanent","persistent","personal","petite","philosophical","physical","plain","planned","plastic","pleasant","pleased","poised","polite","political","poor","popular","positive","possible","potential","powerful","practical","precious","precise","preferred","pregnant","preliminary","premier","prepared","present","presidential","pretty","previous","prickly","primary","prime","primitive","principal","printed","prior","private","probable","productive","professional","profitable","profound","progressive","prominent","promising","proper","proposed","prospective","protective","protestant","proud","provincial","psychiatric","psychological","public","puny","pure","purring","puzzled","quaint","qualified","quarrelsome","querulous","quick","quickest","quiet","quintessential","quixotic","racial","radical","rainy","random","rapid","rare","raspy","rational","ratty","raw","ready","real","realistic","rear","reasonable","recent","reduced","redundant","regional","registered","regular","regulatory","related","relative","relaxed","relevant","reliable","relieved","religious","reluctant","remaining","remarkable","remote","renewed","representative","repulsive","required","resident","residential","resonant","respectable","respective","responsible","resulting","retail","retired","revolutionary","rich","ridiculous","right","rigid","ripe","rising","rival","roasted","robust","rolling","romantic","rotten","rough","round","royal","rubber","rude","ruling","running","rural","sacred","sad","safe","salty","satisfactory","satisfied","scared","scary","scattered","scientific","scornful","scrawny","screeching","secondary","secret","secure","select","selected","selective","selfish","semantic","senior","sensible","sensitive","separate","serious","severe","sexual","shaggy","shaky","shallow","shared","sharp","sheer","shiny","shivering","shocked","short","shrill","shy","sick","significant","silent","silky","silly","similar","simple","single","skilled","skinny","sleepy","slight","slim","slimy","slippery","slow","small","smart","smiling","smoggy","smooth","social","socialist","soft","solar","sole","solid","sophisticated","sore","sorry","sound","sour","southern","soviet","spare","sparkling","spatial","special","specific","specified","spectacular","spicy","spiritual","splendid","spontaneous","sporting","spotless","spotty","square","squealing","stable","stale","standard","static","statistical","statutory","steady","steep","sticky","stiff","still","stingy","stormy","straight","straightforward","strange","strategic","strict","striking","striped","strong","structural","stuck","stupid","subjective","subsequent","substantial","subtle","successful","successive","sudden","sufficient","suitable","sunny","super","superb","superior","supporting","supposed","supreme","sure","surprised","surprising","surrounding","surviving","suspicious","sweet","swift","symbolic","sympathetic","systematic","tall","tame","tart","tasteless","tasty","technical","technological","teenage","temporary","tender","tense","terrible","territorial","testy","then","theoretical","thick","thin","thirsty","thorough","thoughtful","thoughtless","thundering","tight","tiny","tired","top","tory","total","tough","toxic","traditional","tragic","tremendous","tricky","tropical","troubled","typical","ugliest","ugly","ultimate","unable","unacceptable","unaware","uncertain","unchanged","uncomfortable","unconscious","underground","underlying","unemployed","uneven","unexpected","unfair","unfortunate","unhappy","uniform","uninterested","unique","united","universal","unknown","unlikely","unnecessary","unpleasant","unsightly","unusual","unwilling","upper","upset","uptight","urban","urgent","used","useful","useless","usual","vague","valid","valuable","variable","varied","various","varying","vast","verbal","vertical","very","vicarious","vicious","victorious","violent","visible","visiting","visual","vital","vitreous","vivacious","vivid","vocal","vocational","voiceless","voluminous","voluntary","vulnerable","wandering","warm","wasteful","watery","weak","wealthy","weary","wee","weekly","weird","welcome","well","western","wet","whispering","whole","wicked","wide","widespread","wild","wilful","willing","willowy","wily","wise","wispy","wittering","witty","wonderful","wooden","working","worldwide","worried","worrying","worthwhile","worthy","written","wrong","xenacious","xenial","xenogeneic","xenophobic","xeric","xerothermic","yabbering","yammering","yappiest","yappy","yawning","yearling","yearning","yeasty","yelling","yelping","yielding","yodelling","young","youngest","youthful","ytterbic","yucky","yummy","zany","zealous","zeroth","zestful","zesty","zippy","zonal","zoophagous","zygomorphic","zygotic"],k2=["aardvark","aardwolf","albatross","alligator","alpaca","amphibian","anaconda","angelfish","anglerfish","ant","anteater","antelope","antlion","ape","aphid","armadillo","asp","baboon","badger","bandicoot","barnacle","barracuda","basilisk","bass","bat","bear","beaver","bedbug","bee","beetle","bird","bison","blackbird","boa","boar","bobcat","bobolink","bonobo","booby","bovid","bug","butterfly","buzzard","camel","canid","canidae","capybara","cardinal","caribou","carp","cat","caterpillar","catfish","catshark","cattle","centipede","cephalopod","chameleon","cheetah","chickadee","chicken","chimpanzee","chinchilla","chipmunk","cicada","clam","clownfish","cobra","cockroach","cod","condor","constrictor","coral","cougar","cow","coyote","crab","crane","crawdad","crayfish","cricket","crocodile","crow","cuckoo","damselfly","deer","dingo","dinosaur","dog","dolphin","donkey","dormouse","dove","dragon","dragonfly","duck","eagle","earthworm","earwig","echidna","eel","egret","elephant","elk","emu","ermine","falcon","felidae","ferret","finch","firefly","fish","flamingo","flea","fly","flyingfish","fowl","fox","frog","galliform","gamefowl","gayal","gazelle","gecko","gerbil","gibbon","giraffe","goat","goldfish","goose","gopher","gorilla","grasshopper","grouse","guan","guanaco","guineafowl","gull","guppy","haddock","halibut","hamster","hare","harrier","hawk","hedgehog","heron","herring","hippopotamus","hookworm","hornet","horse","hoverfly","hummingbird","hyena","iguana","impala","jackal","jaguar","jay","jellyfish","junglefowl","kangaroo","kingfisher","kite","kiwi","koala","koi","krill","ladybug","lamprey","landfowl","lark","leech","lemming","lemur","leopard","leopon","limpet","lion","lizard","llama","lobster","locust","loon","louse","lungfish","lynx","macaw","mackerel","magpie","mammal","manatee","mandrill","marlin","marmoset","marmot","marsupial","marten","mastodon","meadowlark","meerkat","mink","minnow","mite","mockingbird","mole","mollusk","mongoose","monkey","moose","mosquito","moth","mouse","mule","muskox","narwhal","newt","nightingale","ocelot","octopus","opossum","orangutan","orca","ostrich","otter","owl","ox","panda","panther","parakeet","parrot","parrotfish","partridge","peacock","peafowl","pelican","penguin","perch","pheasant","pig","pigeon","pike","pinniped","piranha","planarian","platypus","pony","porcupine","porpoise","possum","prawn","primate","ptarmigan","puffin","puma","python","quail","quelea","quokka","rabbit","raccoon","rat","rattlesnake","raven","reindeer","reptile","rhinoceros","roadrunner","rodent","rook","rooster","roundworm","sailfish","salamander","salmon","sawfish","scallop","scorpion","seahorse","shark","sheep","shrew","shrimp","silkworm","silverfish","skink","skunk","sloth","slug","smelt","snail","snake","snipe","sole","sparrow","spider","spoonbill","squid","squirrel","starfish","stingray","stoat","stork","sturgeon","swallow","swan","swift","swordfish","swordtail","tahr","takin","tapir","tarantula","tarsier","termite","tern","thrush","tick","tiger","tiglon","toad","tortoise","toucan","trout","tuna","turkey","turtle","tyrannosaurus","unicorn","urial","vicuna","viper","vole","vulture","wallaby","walrus","warbler","wasp","weasel","whale","whippet","whitefish","wildcat","wildebeest","wildfowl","wolf","wolverine","wombat","woodpecker","worm","wren","xerinae","yak","zebra"];const Au=/^[a-z]{2,15}-[a-z]{2,15}(-[0-9]+)?$/,Tu=/^[a-z]{2,15}$/,Eu=w2.filter(t=>Tu.test(t)),Mu=k2.filter(t=>Tu.test(t));function L6(){return y2({dictionaries:[Eu,Mu],separator:"-",style:"lowerCase",length:2})}function P6(t,e){return`${t}-${e}`}function x2(t){const e=t.match(/^([a-z]{2,15}-[a-z]{2,15})(?:-[0-9]+)?$/);return e?e[1]:t}const El=new Set(Eu),Ml=new Set(Mu),S2=new Set;function O6(t){return!t||typeof t!="string"?!1:Au.test(t)||/^[a-z]{2,15}-[a-z]{2,15}-[a-z0-9]{4}$/.test(t)?!0:/^[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}$/i.test(t)}function $6(t){if(!t||typeof t!="string")return!1;if(S2.has(t))return!0;if(Au.test(t)){const n=x2(t).split("-");if(n.length===2){const[a,i]=n;if(El.has(a)&&Ml.has(i))return!0}}if(/^[a-z]{2,15}-[a-z]{2,15}-[a-z0-9]{4}$/.test(t)){const r=t.split("-");if(r.length===3){const[n,a]=r;if(El.has(n)&&Ml.has(a))return!0}}return!1}const B6=E.createSelector(t=>Lr.select(t)?.capabilities.sessionImport===1),q6=E.createSelector(t=>{const e=t.importableSessions?.sessions;return e?ge(e):[]}),F6=E.createSelector(t=>{const e=t.importableSessions?.providers;return e?ge(e):[]}),H6=E.createSelector(t=>t.importableSessions?.status??"idle"),A2=Hl("ContextAPI");function U6(t){return t.some(e=>e.placementStatus==="placing"||e.placementStatus==="failed")}async function Cl(t,e,r){return A2.debug("Placing attachment",{workspaceId:t,fileName:e,viaSourcePath:r.sourcePath!==void 0,keyed:r.idempotencyKey!==void 0}),await p0("file.placeAttachment",{workspaceId:t,fileName:e,...r.data!==void 0?{data:r.data}:{},...r.sourcePath!==void 0?{sourcePath:r.sourcePath}:{},...r.mimeType!==void 0&&r.mimeType!==""?{mimeType:r.mimeType}:{},...r.idempotencyKey!==void 0?{idempotencyKey:r.idempotencyKey}:{},...r.rawScreenshot!==void 0?{rawScreenshot:r.rawScreenshot}:{}})}async function T2(t,e,r,n,a={}){return await p0("file.attachmentUpload.begin",{workspaceId:t,fileName:e,sizeBytes:r,sha256:n,...a.mimeType!==void 0&&a.mimeType!==""?{mimeType:a.mimeType}:{},...a.idempotencyKey!==void 0?{idempotencyKey:a.idempotencyKey}:{},...a.rawScreenshot!==void 0?{rawScreenshot:a.rawScreenshot}:{}})}const Cu=300*1e3;async function E2(t,e,r,n){return await p0("file.attachmentUpload.chunk",{uploadId:t,seq:e,data:r,...n!==void 0?{workspaceId:n}:{}},{timeoutMs:Cu})}async function M2(t,e){return await p0("file.attachmentUpload.commit",{uploadId:t,...e!==void 0?{workspaceId:e}:{}},{timeoutMs:Cu})}async function C2(t,e){return await p0("file.attachmentUpload.abort",{uploadId:t,...e!==void 0?{workspaceId:e}:{}})}async function I2(t){const e=typeof t=="string"?{attachmentId:t}:t.attachmentId!==void 0?{workspaceId:t.workspaceId,attachmentId:t.attachmentId}:{workspaceId:t.workspaceId,idempotencyKey:t.idempotencyKey};return await p0("file.getAttachmentInfo",e)}async function W6(t,e,r){return await He("file:download-attachment",{workspaceId:t,path:e,fileName:r})}const Iu=25*1024*1024,Il=1024*1024*1024,z2=16*1024*1024,zu="attachment upload cancelled";function R2(t,e){return e?.aborted===!0||t instanceof Error&&t.message===zu}function _n(t){if(t?.aborted)throw new Error(zu)}function D2(){return!b1.select(E.state)}function N2(t){return Fl(t,9,13)}function Ru(){return N2(E.state?.daemonHealth?.stats?.protocolVersion)}function G6(t){if(Ru())return t??crypto.randomUUID()}function Du(t){if(!t||typeof t!="object")return!1;const{rpcCode:e,code:r}=t;return e===-32602||r==="INVALID_PARAMS"}function _2(t){return Du(t)&&/already committed/i.test(String(t.message??""))}function L2(t){return{ok:!0,path:t.path,fileName:t.fileName,size:t.size,attachmentId:t.attachmentId,...t.mimeType!==void 0?{mimeType:t.mimeType}:{},uploadedAt:t.uploadedAt,replayed:!0,...t.rawScreenshot!==void 0?{rawScreenshot:t.rawScreenshot}:{}}}async function Ai(t,e,r=I2){try{return L2(await r({workspaceId:t,idempotencyKey:e}))}catch{return}}function Nu(t,e,r){return e!==void 0&&!Du(t)&&!R2(t,r)}async function zl(t,e,r,n,a=()=>!0){try{return ht(a),await n()}catch(i){if(ht(a),Nu(i,e,r)){const s=await Ai(t,e);if(s)return s}throw i}}const _u="file:read returned an unexpected response",ss="file:read failed";function os(t){if(!t||typeof t!="object"||!("success"in t))throw new Error(_u);if(!t.success||t.data===void 0)throw new Error(t.error?.message??ss);return t.data}async function P2(t){const e=await He("file:read",{path:t,encoding:"base64",maxSize:Iu,truncateIfLarge:!1}),r=os(e);if(r.content===void 0)throw new Error(e.error?.message??ss);return r.content}async function Lu(t,e,r){const n=await He("file:read-chunk",{path:t,offset:e,length:r});return os(n)}async function O2(t){const{size:e}=await Lu(t,0,1);return e}async function $2(t){const e=await He("file:hash",{path:t});return os(e).sha256}const B2=new Set(["Internal error","Backend request failed",_u,ss]);async function j6(t,e,r,n,a,i=()=>!0){ht(i);const s=Ru()?r.idempotencyKey:void 0,o=s!==void 0?{idempotencyKey:s}:{};if(!D2())return zl(t,s,a,()=>Cl(t,e,{sourcePath:r.sourcePath,mimeType:r.mimeType,...o}),i);const c=await O2(r.sourcePath);if(ht(i),c>Il)throw new Error(ne.chat_attachmentPlacement_tooLargeRemote_error({name:e,maxGb:Math.round(Il/(1024*1024*1024))}));if(c>Iu)return q2(t,e,{...r,idempotencyKey:s},c,n,a,i);const d=await P2(r.sourcePath);return ht(i),_n(a),zl(t,s,a,()=>Cl(t,e,{data:d,mimeType:r.mimeType,...o}),i)}async function q2(t,e,r,n,a,i,s=()=>!0){ht(s);const o=await $2(r.sourcePath);ht(s),_n(i);let c,d;try{({uploadId:c,maxChunkBytes:d}=await T2(t,e,n,o,{mimeType:r.mimeType,...r.idempotencyKey!==void 0?{idempotencyKey:r.idempotencyKey}:{}}))}catch(w){if(ht(s),r.idempotencyKey!==void 0&&_2(w)){const A=await Ai(t,r.idempotencyKey);if(A)return A}throw w}const p=Math.min(z2,d),g=Math.ceil(n/p);let v=!1;try{for(let w=0;w<g;w++){ht(s),_n(i);const{content:A}=await Lu(r.sourcePath,w*p,p);ht(s),await E2(c,w,A,t),ht(s),a?.((w+1)/g)}return _n(i),ht(s),v=!0,await M2(c,t)}catch(w){if(ht(s),v&&Nu(w,r.idempotencyKey,i)){const A=await Ai(t,r.idempotencyKey);if(A)return A}throw ht(s),await C2(c,t).catch(()=>{}),w}}function V6(t){if(!t||typeof t!="object")return;const e=t.data;if(e&&typeof e=="object"){const n=e.detail;if(typeof n=="string"&&n.trim().length>0)return n.trim()}const r=t.message;if(typeof r=="string"&&r.trim().length>0&&!B2.has(r.trim()))return r.trim()}function ht(t){if(!t())throw new DOMException("Obsolete attachment submission","AbortError")}function Pu(t){const e=t?.split(";")[0].trim().toLowerCase()??"";return e==="image/jpg"?"image/jpeg":e}function Y6(t){return["image/png","image/jpeg","image/gif","image/webp"].includes(Pu(t))}const F2={"image/png":"png","image/jpeg":"jpg","image/gif":"gif","image/webp":"webp","image/svg+xml":"svg","image/avif":"avif","image/bmp":"bmp","image/tiff":"tiff","image/x-icon":"ico","image/vnd.microsoft.icon":"ico","image/heic":"heic","image/heif":"heif","image/jxl":"jxl"};function X6(t,e){const r=F2[Pu(t)]??"bin";return`${e}.${r}`}let H2=0;const ls=new WeakSet;function K6(t){const e=E.dispatch,r=E.state.connections.windowBackendId,n=Xa.select(E.state,t.id);if(!n||E.state.workspace.pendingDeletions[t.id])return null;const a=`operation-${++H2}`;let i=!1;const s=()=>{try{return E.dispatch===e&&E.state.connections.windowBackendId===r}catch{return!1}},o=()=>s()&&E.state.workspace.deletionTokens[t.id]===a,c=()=>s()&&ur.select(E.state)===n&&(i?o()&&E.state.workspace.invalidatedDeletions[t.id]!==a&&E.state.workspace.terminalDeletions[t.id]!==a:Xa.select(E.state,t.id)===n),d={workspaceId:t.id,current:c,terminal(){return!i||!o()||ur.select(E.state)!==n||E.state.workspace.terminalDeletions[t.id]!==a?null:E.state.workspace.invalidatedDeletions[t.id]===a?"denied":"removed"},begin(p=!0){return i||!c()||E.state.workspace.pendingDeletions[t.id]?!1:(e(z1(t.id,a)),p&&e(R1(t.id)),i=!0,c())},restore(){c()&&(e(Ka(t.id,a)),e(I1(t)))},expire(){o()&&e(Ka(t.id,a))}};return ls.add(d),d}function Rl(t,e){return ls.has(t)&&t.workspaceId===e&&t.current()}function U2(t,e){return ls.has(t)&&t.workspaceId===e&&t.terminal()==="removed"}function Z6(t){const e=E.dispatch,r=E.state.connections.windowBackendId,n=E.state.workspace.deletionTokens[t];return()=>{try{n&&E.dispatch===e&&E.state.connections.windowBackendId===r&&e(Ka(t,n))}catch{}}}function Er(t,e){const r=()=>t===void 0?_l.select(E.state)?ur.select(E.state):null:e?y1.select(E.state,t,e):Xa.select(E.state,t),n=E.dispatch,a=r();return()=>{try{return E.dispatch===n&&a!==null&&a===r()}catch{return!1}}}const ut=()=>({ok:!1,error:ne.workspace_client_accessChanged_error()}),ir=new u0("WorkspaceClient"),W2=100;function z0(t){return{...t,path:t.path?.replaceAll("\\","/"),repositoryPath:t.repositoryPath?.replaceAll("\\","/"),worktreePath:t.worktreePath?.replaceAll("\\","/")}}class G2{constructor(){se(this,"pendingRequests",new Map);se(this,"cache",new Map);se(this,"CACHE_TTL",5e3);se(this,"mutationCounter",0)}getCacheKey(e,r){return`${e}:${JSON.stringify(r||{})}`}pruneExpiredCacheEntries(e=Date.now()){for(const[r,n]of this.cache)e-n.timestamp>=this.CACHE_TTL&&this.cache.delete(r)}setCacheEntry(e,r){for(this.pruneExpiredCacheEntries(),this.cache.delete(e),this.cache.set(e,{data:r,timestamp:Date.now()});this.cache.size>W2;){const n=this.cache.keys().next().value;if(n===void 0)break;this.cache.delete(n)}}shouldCacheResponse(e){return e!==Sr.LIST&&(e.includes(":get")||e.includes(":list"))}async invoke(e,r){try{const n=this.mutationCounter,a=this.getCacheKey(e,r)+(e===Sr.LIST?JSON.stringify([E.state.connections.windowBackendId,ur.select(E.state)]):"");this.pruneExpiredCacheEntries();const i=this.pendingRequests.get(a);if(i)return ir.debug(`[WorkspaceClient] Reusing pending request for ${e}`),i;if(this.shouldCacheResponse(e)){const o=this.cache.get(a);if(o&&Date.now()-o.timestamp<this.CACHE_TTL)return ir.debug(`[WorkspaceClient] Using cached response for ${e}`),{ok:!0,data:o.data};o&&this.cache.delete(a)}const s=(async()=>{if(typeof window<"u"&&window.electronAPI){let o=r;if(r!==void 0)try{o=JSON.parse(JSON.stringify(r))}catch(p){if(ir.error(`[WorkspaceClient] Data serialization failed for ${e}:`,{error:p,dataKeys:r?Object.keys(r):[]}),r&&typeof r=="object")for(const[g,v]of Object.entries(r))try{JSON.stringify(v)}catch{ir.error(`[WorkspaceClient] Non-serializable field: ${g}`,{type:typeof v,constructor:v?.constructor?.name})}throw new Error(`Data serialization failed: ${p instanceof Error?p.message:"Unknown error"}`)}const c=await Bs(e,o),d=this.normalizeResponse(c);return d.ok&&this.shouldCacheResponse(e)&&n===this.mutationCounter&&this.setCacheEntry(a,d.data),d}return{ok:!1,error:"IPC not available"}})();this.pendingRequests.set(a,s);try{return await s}finally{this.pendingRequests.delete(a)}}catch(n){return ir.error(`[WorkspaceClient] IPC error for ${e}:`,n),{ok:!1,error:n instanceof Error?n.message:"IPC call failed"}}}clearCache(e){if(this.mutationCounter++,e){for(const[r]of this.cache)r.includes(e)&&this.cache.delete(r);for(const[r]of this.pendingRequests)r.includes(e)&&this.pendingRequests.delete(r)}else this.cache.clear(),this.pendingRequests.clear()}normalizeResponse(e){return e==null?{ok:!1,error:"No response received"}:"ok"in e?e.ok?{ok:!0,data:e.data}:{ok:!1,error:e.error||"Unknown error"}:"success"in e?e.success?{ok:!0,data:e.data}:{ok:!1,error:e.error||"Unknown error"}:{ok:!1,error:"Invalid response format"}}async list(e){const r=await this.invoke(Sr.LIST,{lite:e?.lite});return r.ok?r.data&&"workspaces"in r.data?{ok:!0,data:r.data.workspaces.map(z0)}:{ok:!0,data:r.data.map(z0),complete:!0}:r}async create(e){const r=e.initialAgent;ir.info(`[WorkspaceClient] create called: title=${e.title}, hasInitialAgent=${!!r}, specialist=${r?.specialist}, model=${r?.model}, keys=${r?Object.keys(r).join(","):"none"}`);const n=Er();if(!n())return ut();const a=await xr.workspaces.create(e);if(!n())return ut();if(ir.info("[WorkspaceClient] create result",{success:a.success,scope:e.scope,initialAgentId:a.success?a.initialAgent?.id:void 0,error:a.success?void 0:a.error}),a.success&&a.workspace)return this.clearCache(),{ok:!0,data:{workspace:z0(a.workspace),initialAgent:a.initialAgent,...a.proposalOrigin?{proposalOrigin:a.proposalOrigin}:{}}};const i=a.error||ne.workspace_client_createFailed_error();return a.errorCode?{ok:!1,error:i,errorCode:a.errorCode,...a.launchFailure?{launchFailure:a.launchFailure}:{},...a.baseRefreshFailure?{baseRefreshFailure:a.baseRefreshFailure}:{}}:{ok:!1,error:i}}async open(e){const r=await this.invoke(Sr.OPEN,{id:e});return r.ok?{ok:!0,data:z0(r.data)}:r}async update(e){const r=Er(e.id,Object.keys(e));if(!r())return ut();const n=await xr.workspaces.update(e);return r()?n.success&&n.workspace?(this.clearCache(e.id),this.clearCache(),{ok:!0,data:z0(n.workspace)}):{ok:!1,error:n.error||ne.workspace_client_updateFailed_error()}:ut()}async delete(e,r,n){const a=n?()=>Rl(n,e):Er(e);if(!a())return{...ut(),obsolete:!0};const i=await xr.workspaces.delete(e,r);return!a()&&!(n&&U2(n,e))?{...ut(),obsolete:!0}:i.success?(this.clearCache(e),this.clearCache(),i.scheduled&&i.deleteAt?{ok:!0,data:{scheduled:!0,deleteAt:i.deleteAt}}:{ok:!0,data:void 0}):{ok:!1,error:i.error||ne.workspace_client_deleteFailed_error()}}async cancelDelete(e,r){const n=r?()=>Rl(r,e):Er(e);if(!n())return{...ut(),obsolete:!0};const a=await xr.workspaces.cancelDelete(e);return n()?a.success?(this.clearCache(e),this.clearCache(),{ok:!0,data:{cancelled:a.cancelled===!0}}):{ok:!1,error:a.error||ne.workspace_client_cancelDeleteFailed_error()}:{...ut(),obsolete:!0}}async archive(e){const r=Er(e);if(!r())return ut();const n=await xr.workspaces.archive(e);return r()?n.success?(this.clearCache(e),this.clearCache(),{ok:!0,data:void 0}):{ok:!1,error:n.error||ne.workspace_client_archiveFailed_error()}:ut()}async unarchive(e){const r=Er(e);if(!r())return ut();const n=await xr.workspaces.unarchive(e);return r()?n.success?(this.clearCache(e),this.clearCache(),{ok:!0,data:void 0}):{ok:!1,error:n.error||ne.workspace_client_unarchiveFailed_error()}:ut()}async retire(e){const r=Er(e);if(!r())return ut();const n=await xr.workspaces.retire(e);return r()?n.success?(this.clearCache(e),this.clearCache(),{ok:!0,data:n.workspace}):{ok:!1,error:n.error||ne.workspace_ops_purgeFailed_error(),...n.errorCode?{errorCode:n.errorCode}:{}}:ut()}async invokeFresh(e,r){try{if(typeof window<"u"&&window.electronAPI){const n=await Bs(e,r);return this.normalizeResponse(n)}return{ok:!1,error:"IPC not available"}}catch(n){return ir.error(`[WorkspaceClient] IPC error for ${e}:`,n),{ok:!1,error:n instanceof Error?n.message:"IPC call failed"}}}async getDiffSummary(e){return this.invokeFresh(Sr.GET_DIFF_SUMMARY,{workspaceId:e})}async getGitSummary(e){return this.invokeFresh(Sr.GET_GIT_SUMMARY,{workspaceId:e})}async getTasks(e){return this.invokeFresh(Sr.GET_TASKS,{workspaceId:e})}}const Q6=new G2;function Dl(t,e){return{key:t.id,confirmedId:t.id,confirmed:t,content:t.content,messageMetadata:t.messageMetadata,imageBlocks:[...t.imageBlocks??[]],fileBlocks:[...t.fileBlocks??[]],deliveryGroups:t.deliveryGroups,contextItems:[...t.contextItems??[]],contributions:[],blocksMutations:e}}function Nl(t){return!t.imageBlocks?.length&&!t.fileBlocks?.length}function Ou(t,e){const r=t?.supported===!0,n=r&&(t.refreshNeeded||D1(t)),a=e.map(S=>Dl(S,n));if(!t)return{conversation:[],processing:[],queue:a};const i=new Set(ge(t.seeds).flatMap(S=>bn(S,t.scope.principalId))),s=ge(t.submissions).filter(S=>!i.has(S.id)),o=new Set(e.flatMap(S=>bn(S,t.scope.principalId))),c=ge(t.processing).filter(S=>!bn(S,t.scope.principalId).some(C=>o.has(C))),d=s.filter(S=>S.destination==="conversation");if(!r)return{conversation:d,processing:c,queue:a};for(const S of ge(t.seeds)){const C=a.findIndex(X=>X.confirmedId===S.id),W=Dl(S,!0),K=bn(S,t.scope.principalId);W.contributions=ge(t.submissions).filter(X=>K.includes(X.id)),C>=0?(W.confirmed=a[C].confirmed,a[C]=W):(W.confirmedId=void 0,W.confirmed=void 0,a.push(W))}const p=e.filter(S=>S.mergeEligible===!0),g=!n&&p.length===1&&p[0].author?.principalId===t.scope.principalId&&p[0].submissionIds?.length&&!p[0].recoverySources?p[0].id:void 0;let v=g?a.find(S=>S.confirmedId===g):void 0;for(const S of s.filter(C=>C.destination==="queue")){const C=v&&Nl(v)&&Nl(S)?v:void 0;if(C)C.content=[C.content,S.content].filter(Boolean).join(`
467
+ `),he.debug("[markdown-processor] processHTMLToMarkdown OUTPUT:",{markdownLength:C.length,preservedAnchors:r}),C}typeof window<"u"&&(window.__clearMarkdownCache=$f);const yl={major:15,minor:3},bu="workspace-create:initializeGit",Kf="~/Documents",wl="~/Developer";function Zf(t){return Fl(t,yl.major,yl.minor)}function N3(t){return t.some(e=>!p1(e))}function _3(t){return t.rememberedChoice!==null?t.rememberedChoice:t.hasGitWorkspace||t.githubConnected||t.gitlabConnected||t.githubFailed||t.gitlabFailed?!0:!t.workspacesLoaded||!t.githubSettled||!t.gitlabSettled?null:!1}function L3(t,e){switch(t){case"git-repo":return!e;case"new-repo":return!0;case"clone":return!1;default:return null}}function P3(t){try{const e=t?.getItem(bu);if(e==="true")return!0;if(e==="false")return!1}catch{}return null}function O3(t,e){try{t?.setItem(bu,String(e))}catch{}}function $3(t,e){return t&&t!==wl?t:e?Kf:wl}function Qf(t,e){const r=n=>n.replace(/[\\/]+$/,"");return r(t)===r(e)}function B3(t,e){return e?t.filter(r=>[r.repositoryPath,r.worktreePath,r.path].some(n=>typeof n=="string"&&n.length>0&&Qf(n,e))):[]}function q3(t){const e=t.contextLinks?.filter(r=>r.kind!=="pr");return{title:t.title??"",repositoryPath:t.repositoryPath,plainFolder:!0,...e&&e.length>0?{contextLinks:e}:{},...t.linearIssue?{linearIssue:t.linearIssue}:{},...t.sentryIssue?{sentryIssue:t.sentryIssue}:{},...t.initialAgent?{initialAgent:t.initialAgent}:{}}}function F3(t,e){return!t||t.isGitRepo||t.isSubdirectoryOfGitRepo?null:t.exists?t.isDirectory?"existing":null:e===!1?"new":null}function H3(t){return t.labsEnabled&&Zf(t.protocolVersion)&&t.githubSettled&&t.gitlabSettled&&!t.githubFailed&&!t.gitlabFailed&&!t.githubConnected&&!t.gitlabConnected}function U3(t,e){return!!t&&!t.plainFolder&&e.checked&&!e.available}const $t=E.createSelector(t=>Ll.select(t)?ur.select(t):null),Jf=E.createSelector(t=>{const e=Lr.select(t)?.principal;return e?JSON.stringify([t.connections.windowBackendId,e.id]):null}),W3=E.createSelector(t=>ge(t.workspace.workspaces).map(e=>String(e.id))),G3=E.createSelector((t,e,r=Re)=>{const n=$t.select(t),a=Se(t.workspace.workspaces,c0(e)),i=Ei(t.workspaceDiscussion,e,r);return n&&t.workspaceDiscussion.context===n&&a&&t.workspaceDiscussion.workspaceIds.includes(e)&&i?{context:n,workspaceId:e,conversationId:r,epoch:i.epoch}:null}),Jn=E.createSelector(t=>{const e=t.workspaceDiscussion.owner;if(!e||!F1.select(t)||t.principal.status==="revoked"||t.principal.error==="incompatible-response"||t.connections.authRejected?.id===t.connections.windowBackendId)return!1;const r=Jf.select(t);if(r)return r===e;try{const[n,a]=JSON.parse(e),i=t.principal.boundPrincipalId??t.principal.snapshot?.principal.id;return n===t.connections.windowBackendId&&(i==null||i===a)}catch{return!1}}),_t=E.createSelector((t,e,r=Re)=>{if(!Se(t.workspace.workspaces,c0(e))||!Jn.select(t))return vn;const a=Ei(t.workspaceDiscussion,e,r)??vn;return r!==Re&&r!==jt&&(!a.authorized||!a.initialized&&t.workspaceDiscussion.conversationsSupported!==!0)?{...a,draft:"",agentMentions:[],principalMentions:[],messages:vn.messages,pending:vn.pending}:a}),e2=E.createSelector((t,e,r=Re)=>_t.select(t,e,r).authorized?ge(_t.select(t,e,r).messages):[]),j3=E.createSelector((t,e,r=Re)=>_t.select(t,e,r).authorized?ge(_t.select(t,e,r).pending):[]),t2=E.createSelector((t,e,r=Re)=>{const n=Se(t.workspace.workspaces,c0(e)),a=_t.select(t,e,r);return!!$t.select(t)&&!!n&&!t.workspaceDiscussion.deletedKeys.includes(JSON.stringify([e,r]))&&(r===Re||(r===jt?t.workspaceDiscussion.managementSupported===!0:(t.workspaceDiscussion.conversationsSupported===!0||t.workspaceDiscussion.managementSupported===!0)&&a.authorized))&&!a.unsupported&&a.error!=="forbidden"}),V3=E.createSelector(t=>t.workspaceDiscussion.requestedIds),X3=E.createSelector(t=>t.workspaceDiscussion.requestedIds.filter(e=>{const[r,n]=JSON.parse(e);return!Ei(t.workspaceDiscussion,r,n)})),yu=E.createSelector((t,e)=>ku.select(t)===!0&&!!$t.select(t)&&!!Pl.select(t,e)),r2=E.createSelector((t,e)=>yu.select(t,e)&&!wu.select(t)),Z0=E.createSelector((t,e)=>Jn.select(t)&&(t.workspaceDiscussion.conversationsSupported===!0||t.workspaceDiscussion.managementSupported===!0)?t.workspaceDiscussion.directories[e]??Ps:Ps),Y3=E.createSelector((t,e)=>ge(Z0.select(t,e).conversations)),K3=E.createSelector((t,e)=>{if(Jn.select(t)&&t.workspaceDiscussion.deletedKeys.includes(JSON.stringify([e,Re])))return!1;if(t.workspaceDiscussion.managementSupported!==!0)return!0;const r=Z0.select(t,e);return!!Se(r.conversations,Re)||r.status!=="ready"||r.hasMore}),Z3=E.createSelector((t,e)=>{const r=Jn.select(t)?t.workspaceDiscussion.recipients[e]??Os:Os,n=_t.select(t,e,jt).recipientPrincipalIds;return{status:r.status,query:r.query,members:ge(r.members),selectedMembers:ge(r.knownMembers).filter(a=>n.includes(a.principalId)),hasMore:r.hasMore,error:r.error}});E.createSelector((t,e)=>_t.select(t,e,jt).createdConversationId);const Q3=E.createSelector(t=>t.workspaceDiscussion.conversationsSupported),J3=E.createSelector(t=>t.workspaceDiscussion.directoryRequestedIds),e6=E.createSelector((t,e)=>t.workspaceDiscussion.recipients[e]),n2=E.createSelector(t=>{const e=Lr.select(t)?.principal;return e?{principalId:e.id,login:e.login??null,displayName:e.displayName??null,avatarUrl:e.avatarUrl??null}:null}),t6=E.createSelector((t,e,r=Re)=>{const n=_t.select(t,e,r),a=t.workspaceDiscussion.owner,i=n2.select(t)?.principalId??(a?JSON.parse(a)[1]:null),s=n.readSequence??0,o=e2.select(t,e,r).filter(c=>c.sequence>s&&(c.author.agentId!==void 0||c.author.principalId!==i));return{count:o.length,firstSequence:o[0]?.sequence??null}}),wu=E.createSelector(t=>t.workspaceDiscussion.context===$t.select(t)&&t.workspaceDiscussion.sharingEnabled===!1),Q0=E.createSelector((t,e,r=Re)=>(r!==jt||r2.select(t,e))&&t2.select(t,e,r)&&!wu.select(t)&&!l2.select(t,e,r)),r6=E.createSelector((t,e)=>m1.select(t)&&f1.select(t,e)),n6=E.createSelector(t=>t.workspaceDiscussion.messageActionsSupported),a6=E.createSelector((t,e,r=Re)=>r!==jt&&t.workspaceDiscussion.messageActionsSupported===!0&&Q0.select(t,e,r)),i6=E.createSelector((t,e,r=Re)=>{const n=_t.select(t,e,r);return n.replyToMessageId&&n.authorized?Se(n.messages,n.replyToMessageId)??null:null}),a2=E.createSelector(t=>t.workspaceDiscussion.context===$t.select(t)?t.workspaceDiscussion.agentMessagingSupported:null),i2=E.createSelector(t=>t.workspaceDiscussion.context===$t.select(t)?t.workspaceDiscussion.agentActivitySupported:null),s6=E.createSelector(t=>t.workspaceDiscussion.context===$t.select(t)?t.workspaceDiscussion.principalMentionsSupported:null),o6=E.createSelector((t,e,r=Re)=>r!==jt&&c2.select(t,e,r)&&i2.select(t)===!0&&Q0.select(t,e,r)),l6=E.createSelector((t,e,r=Re)=>ge(_t.select(t,e,r).agentControls).map(n=>n.key)),c6=E.createSelector(t=>t.workspaceDiscussion.context===$t.select(t)?t.workspaceDiscussion.reactionsSupported:null),ku=E.createSelector(t=>t.workspaceDiscussion.context===$t.select(t)?t.workspaceDiscussion.managementSupported:null),s2=E.createSelector((t,e)=>$t.select(t)===t.workspaceDiscussion.context?t.workspaceDiscussion.management[e]??$s:$s),o2=E.createSelector((t,e,r=Re)=>{const n=Pl.select(t,e);return yu.select(t,e)&&(n?.myRole==="owner"||n?.myRole==="manager")&&!t.workspaceDiscussion.deletedKeys.includes(JSON.stringify([e,r]))&&Se(Z0.select(t,e).conversations,r)?.kind==="workspace"}),u6=E.createSelector((t,e,r=Re)=>o2.select(t,e,r)&&g1.select(t,e)),d6=E.createSelector((t,e,r)=>{const n=s2.select(t,e);return n.pending!==null&&(r===void 0||n.conversationId===r)}),l2=E.createSelector((t,e,r=Re)=>{const n=Se(Z0.select(t,e).conversations,r);return!!n&&n.kind!=="workspace"}),c2=E.createSelector((t,e,r=Re)=>a2.select(t)===!0&&Q0.select(t,e,r)&&(r===Re||ku.select(t)===!0&&(r===jt||Se(Z0.select(t,e).conversations,r)?.kind==="workspace"))),h6=E.createSelector(t=>t.presence.profileRevision),p6=E.createSelector(t=>t.presence.windowVisible),m6=E.createSelector(t=>t.presence.captureDrawingActive),u2=E.createSelector(t=>Ll.select(t)?ur.select(t):null),xu=t=>{const e=u2.select(t);return e!==null&&t.presence.context===e},f6=E.createSelector(t=>H1.select(t).filter(e=>!!Se(t.workspace.workspaces,c0(e)))),n0=[],a0=[],kl=[],d2=(t,e)=>{const r=t.rosters[e];return r?ge(r):n0},$r=(t,e)=>{const r=Se(t.workspace.workspaces,c0(e));return xu(t)&&r&&(r.memberCount??1)>1?r:void 0},g6=E.createSelector((t,e)=>{const r=t.presence.ownPrincipalId;if(r===null||!$r(t,e))return kl;const n=t.presence.members[e];return n?ge(n).filter(a=>a.principalId!==r&&!!a.login?.trim()):kl}),is=(t,e)=>({principalId:t.principalId,login:t.login,displayName:t.displayName,avatarUrl:t.avatarUrl,...t.identity?{identity:t.identity}:{},...t.hostRole?{hostRole:t.hostRole}:{},...e}),h2=t=>t.some(e=>e.online&&!e.self),qn=t=>t.owner?0:t.online?1:2,Su=E.createSelector((t,e)=>{const r=t.presence.ownPrincipalId;if(r===null||!$r(t,e))return a0;const n=t.presence.members[e];if(!n)return a0;const a=t.presence.rosters[e],i=ge(n).filter(s=>s.principalId!==r).map(s=>{const o=a?Se(a,s.principalId):void 0,c=o?{...s,...o}:s;return is(c,{owner:c.hostRole?c.hostRole==="owner":s.role==="owner",online:o!==void 0,viewing:o?.focus.some(d=>d.workspaceId===e)??!1,self:!1})}).sort((s,o)=>qn(s)-qn(o));return i.length>0?i:a0}),v6=E.createSelector((t,e)=>{const r=Lr.select(t)?.capabilities.hostMembership;return Su.select(t,e).filter(n=>r&&!n.hostRole?!1:!n.hostRole||n.hostRole==="guest"||n.online)}),p2=E.createSelector((t,e)=>{if(!$r(t,e))return a0;const r=t.presence.members[e],n=t.presence.rosters[e],a=new Map;for(const s of r?ge(r):[])a.set(s.principalId,s);for(const s of n?ge(n):[])a.set(s.principalId,{...a.get(s.principalId),...s});const i=Lr.select(t)?.principal;return i&&i.id===t.presence.ownPrincipalId&&!a.has(i.id)&&a.set(i.id,{...i,principalId:i.id}),[...a.values()]}),b6=E.createSelector((t,e)=>{const r=Su.select(t,e),n=t.presence.ownPrincipalId,a=p2.select(t,e).find(s=>s.principalId===n);if(!a)return r;const i=$r(t,e);return[is(a,{owner:a.hostRole?a.hostRole==="owner":i?.ownerPrincipalId===n,online:!0,viewing:!0,self:!0}),...r]}),y6=E.createSelector((t,e,r)=>{const n=t.presence.ownPrincipalId,a=$r(t,e);if(n===null||!a)return a0;const i=d2(t.presence,e).filter(s=>s.principalId!==n&&s.focus.some(o=>o.workspaceId===e&&o.agentId===r)).map(s=>is(s,{owner:s.principalId===a.ownerPrincipalId,online:!0,viewing:!0,self:!1})).sort((s,o)=>qn(s)-qn(o));return h2(i)?i:a0}),w6=E.createSelector((t,e,r)=>{const n=t.presence.liveTyping[e],a=t.presence.rosters[e];if(!n||!a)return n0;const i=new Set;for(const s of Object.keys(n)){const o=n[s];o.expired||o.agentId!==r||s===t.presence.ownTypingSource||Se(a,o.principalId)&&i.add(o.principalId)}return i.size===0?n0:ge(a).filter(s=>i.has(s.principalId))}),m2=E.createSelector(t=>{const e=t.presence.discussionComposerWorkspaceId;return e&&xu(t)&&$r(t,e)&&t.presence.windowVisible&&t.tabState.currentTabId===e&&t.presence.discussionComposerConversationId!==jt&&Q0.select(t,e,t.presence.discussionComposerConversationId)?e:null}),f2=E.createSelector(t=>{const e=m2.select(t);return e?ql(e,t.presence.discussionComposerConversationId):null}),k6=E.createSelector((t,e,r=Re)=>{if(r!==Re&&!Q0.select(t,e,r)||!$r(t,e)||t.presence.ownPrincipalId===null)return n0;const n=t.presence.liveDiscussionTyping[e],a=t.presence.rosters[e];if(!n||!a)return n0;const i=new Set(Object.entries(n).filter(([s,o])=>!o.expired&&o.conversationId===r&&s!==t.presence.ownTypingSource&&o.principalId!==t.presence.ownPrincipalId).map(([,s])=>s.principalId));return i.size?ge(a).filter(s=>i.has(s.principalId)):n0}),x6=E.createSelector(t=>t.presence.liveDiscussionTyping),g2=E.createSelector(t=>{if(!t.presence.windowVisible)return{focus:[],typing:null};const e=t.tabState.currentTabId;if(!e)return{focus:[],typing:null};const r=[{workspaceId:e}],n=t.panelLayout.byWorkspaceId[e]?.panels??{};for(const i of Object.keys(n).sort()){const s=n[i],o=s.activeTabId?s.tabs.find(c=>c.id===s.activeTabId):void 0;o&&(o.type==="agent"&&o.agentId?r.push({workspaceId:e,agentId:o.agentId}):o.type==="note"&&o.noteId&&r.push({workspaceId:e,noteId:o.noteId}))}const a=t.presence.ownDiscussionTyping;return{focus:r,typing:t.presence.ownTyping,...a&&ql(a.workspaceId,a.conversationId)===f2.select(t)?{discussionTyping:a}:{}}}),S6=E.createSelector(t=>JSON.stringify(g2.select(t))),A6=E.createSelector(t=>t.presence.liveTyping),T6=E.createSelector(t=>t.presence.ownPrincipalId),E6=E.createSelector(t=>{const e=[];for(const r of Object.keys(t.tabState.openTabs)){if(t.tabState.openTabs[r]!==!0)continue;const n=Se(t.workspace.workspaces,c0(r))?.memberCount??1;n>1&&e.push(`${r}:${n}`)}return e.sort()});let cr=null;function M6(t){const e={};return cr={token:e,onCancel:t},e}function C6(t){return cr?.token===t}function I6(t){cr?.token===t&&(cr=null)}function z6(){return cr!==null}function R6(){if(cr===null)return!1;const{onCancel:t}=cr;return cr=null,t(),!0}const In=Hl("ProviderAvailabilityClient");let Zr=null;async function D6(){if(typeof window>"u")return In.debug("Skipping provider availability check - not in browser environment"),xl();const t=v1.select(E.state);if(Zr&&Zr.connection===t)return In.debug("Joining in-flight provider availability request"),Zr.promise;const e={},r=(async()=>{try{In.debug("Checking provider availability via IPC");const n=await He(j1.GET_AVAILABILITY);if(!n.success)throw new Error(n.error||"Failed to get provider availability");const a=n.data??xl();return In.debug("Provider availability fetched",{hasAnyProvider:a.hasAnyProvider,auggie:a.providers.auggie.available,claudeCode:a.providers.claudeCode.available,codex:a.providers.codex.available,cortex:a.providers.cortex.available,mock:a.providers.mock?.available??!1,opencode:a.providers.opencode.available,droid:a.providers.droid?.available??!1,grok:a.providers.grok?.available??!1,unsloth:a.providers.unsloth?.available??!1}),a}finally{Zr?.token===e&&(Zr=null)}})();return Zr={connection:t,token:e,promise:r},r}function xl(){return{hasAnyProvider:!1,providers:{auggie:{available:!1},claudeCode:{available:!1},codex:{available:!1},cortex:{available:!1},mock:{available:!1},opencode:{available:!1},pi:{available:!1},droid:{available:!1},grok:{available:!1},unsloth:{available:!1}}}}const ft={IS_AUTHENTICATED:"github-auth:is-authenticated",GET_USER:"github-auth:get-user",START_AUTH:"github-auth:start",POLL_FOR_TOKEN:"github-auth:poll",CANCEL_AUTH:"github-auth:cancel",LOGOUT:"github-auth:logout",GET_AUTH_STATE:"github-auth:get-auth-state",GET_STATUS:"github-auth:get-status",LIST_REPOS:"github-auth:list-repos",SEARCH_REPOS:"github-auth:search-repos",SEARCH_USERS:"github-auth:search-users"},N6={async isAuthenticated(t){try{return await He(ft.IS_AUTHENTICATED,...t===void 0?[]:[{workspaceId:t}])}catch{return!1}},async getUser(t){try{return await He(ft.GET_USER,...t===void 0?[]:[{workspaceId:t}])}catch{return null}},async startAuth(t){return t?await He(ft.START_AUTH,t):await He(ft.START_AUTH)},async checkAuthComplete(){return await He(ft.POLL_FOR_TOKEN)},async cancelAuth(t){return t?He(ft.CANCEL_AUTH,t):He(ft.CANCEL_AUTH)},async logout(){return He(ft.LOGOUT)},async getAuthState(t){try{return await He(ft.GET_AUTH_STATE,...t===void 0?[]:[{workspaceId:t}])}catch{return{isAuthenticated:!1,requiresDaemonAuth:!0,user:null}}},async getStatus(t){try{return await He(ft.GET_STATUS,...t===void 0?[]:[{workspaceId:t}])}catch{return{isConfigured:!1,oauthUrl:"",configuredButNeedsUpdate:!1,updatedScopes:""}}},async listRepos(t,e){const r=await He(ft.LIST_REPOS,{page:t,...e===void 0?{}:{workspaceId:e}});if(!r.success)throw new Error(r.error||"Repository discovery failed");return r.data??[]},async searchRepos(t,e){try{return await He(ft.SEARCH_REPOS,{query:t,...e===void 0?{}:{workspaceId:e}})}catch(r){return{success:!1,error:r instanceof Error?r.message:String(r)}}},async searchUsers(t,e){try{return await He(ft.SEARCH_USERS,{query:t,...e===void 0?{}:{workspaceId:e}})}catch(r){return{success:!1,error:r instanceof Error?r.message:String(r)}}}};class v2{constructor(){se(this,"metrics",new Map);se(this,"completedMetrics",[]);se(this,"maxCompletedMetrics",100)}start(e,r){ka.get("showPerformanceMetrics")&&this.metrics.set(e,{name:e,startTime:performance.now(),metadata:r})}end(e){if(!ka.get("showPerformanceMetrics"))return null;const r=this.metrics.get(e);return r?(r.endTime=performance.now(),r.duration=r.endTime-r.startTime,this.metrics.delete(e),this.completedMetrics.push(r),this.completedMetrics.length>this.maxCompletedMetrics&&this.completedMetrics.shift(),ka.get("logStateChanges")&&Sl.info(`[Performance] ${e}: ${r.duration.toFixed(2)}ms`,r.metadata),r.duration):(Sl.warn(`Performance metric "${e}" was not started`),null)}async measure(e,r,n){this.start(e,n);try{const a=await r();return this.end(e),a}catch(a){throw this.end(e),a}}getMetrics(){return[...this.completedMetrics]}clear(){this.metrics.clear(),this.completedMetrics=[]}}const _6=new v2,Sl=new u0("Performance"),Al=t=>{t=1831565813+(t|=0)|0;let e=Math.imul(t^t>>>15,1|t);return e=e+Math.imul(e^e>>>7,61|e)^e,((e^e>>>14)>>>0)/4294967296};class b2{constructor(e){this.dictionaries=void 0,this.length=void 0,this.separator=void 0,this.style=void 0,this.seed=void 0;const{length:r,separator:n,dictionaries:a,style:i,seed:s}=e;this.dictionaries=a,this.separator=n,this.length=r,this.style=i,this.seed=s}generate(){if(!this.dictionaries)throw new Error('Cannot find any dictionary. Please provide at least one, or leave the "dictionary" field empty in the config object');if(this.length<=0)throw new Error("Invalid length provided");if(this.length>this.dictionaries.length)throw new Error(`The length cannot be bigger than the number of dictionaries.
468
+ Length provided: ${this.length}. Number of dictionaries provided: ${this.dictionaries.length}`);let e=this.seed;return this.dictionaries.slice(0,this.length).reduce((r,n)=>{let a;e?(a=(s=>{if(typeof s=="string"){const o=s.split("").map(d=>d.charCodeAt(0)).reduce((d,p)=>d+p,1),c=Math.floor(Number(o));return Al(c)}return Al(s)})(e),e=4294967296*a):a=Math.random();let i=n[Math.floor(a*n.length)]||"";if(this.style==="lowerCase")i=i.toLowerCase();else if(this.style==="capital"){const[s,...o]=i.split("");i=s.toUpperCase()+o.join("")}else this.style==="upperCase"&&(i=i.toUpperCase());return r?`${r}${this.separator}${i}`:`${i}`},"")}}const Tl={separator:"_",dictionaries:[]},y2=t=>{const e=[...t&&t.dictionaries||Tl.dictionaries],r={...Tl,...t,length:t&&t.length||e.length,dictionaries:e};if(!t||!t.dictionaries||!t.dictionaries.length)throw new Error('A "dictionaries" array must be provided. This is a breaking change introduced starting from Unique Name Generator v4. Read more about the breaking change here: https://github.com/andreasonny83/unique-names-generator#migration-guide');return new b2(r).generate()};var w2=["able","above","absent","absolute","abstract","abundant","academic","acceptable","accepted","accessible","accurate","accused","active","actual","acute","added","additional","adequate","adjacent","administrative","adorable","advanced","adverse","advisory","aesthetic","afraid","aggregate","aggressive","agreeable","agreed","agricultural","alert","alive","alleged","allied","alone","alright","alternative","amateur","amazing","ambitious","amused","ancient","angry","annoyed","annual","anonymous","anxious","appalling","apparent","applicable","appropriate","arbitrary","architectural","armed","arrogant","artificial","artistic","ashamed","asleep","assistant","associated","atomic","attractive","automatic","autonomous","available","average","awake","aware","awful","awkward","back","bad","balanced","bare","basic","beautiful","beneficial","better","bewildered","big","binding","biological","bitter","bizarre","blank","blind","blonde","bloody","blushing","boiling","bold","bored","boring","bottom","brainy","brave","breakable","breezy","brief","bright","brilliant","broad","broken","bumpy","burning","busy","calm","capable","capitalist","careful","casual","causal","cautious","central","certain","changing","characteristic","charming","cheap","cheerful","chemical","chief","chilly","chosen","christian","chronic","chubby","circular","civic","civil","civilian","classic","classical","clean","clear","clever","clinical","close","closed","cloudy","clumsy","coastal","cognitive","coherent","cold","collective","colonial","colorful","colossal","coloured","colourful","combative","combined","comfortable","coming","commercial","common","communist","compact","comparable","comparative","compatible","competent","competitive","complete","complex","complicated","comprehensive","compulsory","conceptual","concerned","concrete","condemned","confident","confidential","confused","conscious","conservation","conservative","considerable","consistent","constant","constitutional","contemporary","content","continental","continued","continuing","continuous","controlled","controversial","convenient","conventional","convinced","convincing","cooing","cool","cooperative","corporate","correct","corresponding","costly","courageous","crazy","creative","creepy","criminal","critical","crooked","crowded","crucial","crude","cruel","cuddly","cultural","curious","curly","current","curved","cute","daily","damaged","damp","dangerous","dark","dead","deaf","deafening","dear","decent","decisive","deep","defeated","defensive","defiant","definite","deliberate","delicate","delicious","delighted","delightful","democratic","dependent","depressed","desirable","desperate","detailed","determined","developed","developing","devoted","different","difficult","digital","diplomatic","direct","dirty","disabled","disappointed","disastrous","disciplinary","disgusted","distant","distinct","distinctive","distinguished","disturbed","disturbing","diverse","divine","dizzy","domestic","dominant","double","doubtful","drab","dramatic","dreadful","driving","drunk","dry","dual","due","dull","dusty","dutch","dying","dynamic","eager","early","eastern","easy","economic","educational","eerie","effective","efficient","elaborate","elated","elderly","eldest","electoral","electric","electrical","electronic","elegant","eligible","embarrassed","embarrassing","emotional","empirical","empty","enchanting","encouraging","endless","energetic","enormous","enthusiastic","entire","entitled","envious","environmental","equal","equivalent","essential","established","estimated","ethical","ethnic","eventual","everyday","evident","evil","evolutionary","exact","excellent","exceptional","excess","excessive","excited","exciting","exclusive","existing","exotic","expected","expensive","experienced","experimental","explicit","extended","extensive","external","extra","extraordinary","extreme","exuberant","faint","fair","faithful","familiar","famous","fancy","fantastic","far","fascinating","fashionable","fast","fat","fatal","favourable","favourite","federal","fellow","female","feminist","few","fierce","filthy","final","financial","fine","firm","fiscal","fit","fixed","flaky","flat","flexible","fluffy","fluttering","flying","following","fond","foolish","foreign","formal","formidable","forthcoming","fortunate","forward","fragile","frail","frantic","free","frequent","fresh","friendly","frightened","front","frozen","full","fun","functional","fundamental","funny","furious","future","fuzzy","gastric","gay","general","generous","genetic","gentle","genuine","geographical","giant","gigantic","given","glad","glamorous","gleaming","global","glorious","golden","good","gorgeous","gothic","governing","graceful","gradual","grand","grateful","greasy","great","grieving","grim","gross","grotesque","growing","grubby","grumpy","guilty","handicapped","handsome","happy","hard","harsh","head","healthy","heavy","helpful","helpless","hidden","high","hilarious","hissing","historic","historical","hollow","holy","homeless","homely","hon","honest","horizontal","horrible","hostile","hot","huge","human","hungry","hurt","hushed","husky","icy","ideal","identical","ideological","ill","illegal","imaginative","immediate","immense","imperial","implicit","important","impossible","impressed","impressive","improved","inadequate","inappropriate","inc","inclined","increased","increasing","incredible","independent","indirect","individual","industrial","inevitable","influential","informal","inherent","initial","injured","inland","inner","innocent","innovative","inquisitive","instant","institutional","insufficient","intact","integral","integrated","intellectual","intelligent","intense","intensive","interested","interesting","interim","interior","intermediate","internal","international","intimate","invisible","involved","irrelevant","isolated","itchy","jealous","jittery","joint","jolly","joyous","judicial","juicy","junior","just","keen","key","kind","known","labour","large","late","latin","lazy","leading","left","legal","legislative","legitimate","lengthy","lesser","level","lexical","liable","liberal","light","like","likely","limited","linear","linguistic","liquid","literary","little","live","lively","living","local","logical","lonely","long","loose","lost","loud","lovely","low","loyal","ltd","lucky","mad","magic","magnetic","magnificent","main","major","male","mammoth","managerial","managing","manual","many","marginal","marine","marked","married","marvellous","marxist","mass","massive","mathematical","mature","maximum","mean","meaningful","mechanical","medical","medieval","melodic","melted","mental","mere","metropolitan","mid","middle","mighty","mild","military","miniature","minimal","minimum","ministerial","minor","miserable","misleading","missing","misty","mixed","moaning","mobile","moderate","modern","modest","molecular","monetary","monthly","moral","motionless","muddy","multiple","mushy","musical","mute","mutual","mysterious","naked","narrow","nasty","national","native","natural","naughty","naval","near","nearby","neat","necessary","negative","neighbouring","nervous","net","neutral","new","nice","noble","noisy","normal","northern","nosy","notable","novel","nuclear","numerous","nursing","nutritious","nutty","obedient","objective","obliged","obnoxious","obvious","occasional","occupational","odd","official","ok","okay","old","olympic","only","open","operational","opposite","optimistic","oral","ordinary","organic","organisational","original","orthodox","other","outdoor","outer","outrageous","outside","outstanding","overall","overseas","overwhelming","painful","pale","panicky","parallel","parental","parliamentary","partial","particular","passing","passive","past","patient","payable","peaceful","peculiar","perfect","permanent","persistent","personal","petite","philosophical","physical","plain","planned","plastic","pleasant","pleased","poised","polite","political","poor","popular","positive","possible","potential","powerful","practical","precious","precise","preferred","pregnant","preliminary","premier","prepared","present","presidential","pretty","previous","prickly","primary","prime","primitive","principal","printed","prior","private","probable","productive","professional","profitable","profound","progressive","prominent","promising","proper","proposed","prospective","protective","protestant","proud","provincial","psychiatric","psychological","public","puny","pure","purring","puzzled","quaint","qualified","quarrelsome","querulous","quick","quickest","quiet","quintessential","quixotic","racial","radical","rainy","random","rapid","rare","raspy","rational","ratty","raw","ready","real","realistic","rear","reasonable","recent","reduced","redundant","regional","registered","regular","regulatory","related","relative","relaxed","relevant","reliable","relieved","religious","reluctant","remaining","remarkable","remote","renewed","representative","repulsive","required","resident","residential","resonant","respectable","respective","responsible","resulting","retail","retired","revolutionary","rich","ridiculous","right","rigid","ripe","rising","rival","roasted","robust","rolling","romantic","rotten","rough","round","royal","rubber","rude","ruling","running","rural","sacred","sad","safe","salty","satisfactory","satisfied","scared","scary","scattered","scientific","scornful","scrawny","screeching","secondary","secret","secure","select","selected","selective","selfish","semantic","senior","sensible","sensitive","separate","serious","severe","sexual","shaggy","shaky","shallow","shared","sharp","sheer","shiny","shivering","shocked","short","shrill","shy","sick","significant","silent","silky","silly","similar","simple","single","skilled","skinny","sleepy","slight","slim","slimy","slippery","slow","small","smart","smiling","smoggy","smooth","social","socialist","soft","solar","sole","solid","sophisticated","sore","sorry","sound","sour","southern","soviet","spare","sparkling","spatial","special","specific","specified","spectacular","spicy","spiritual","splendid","spontaneous","sporting","spotless","spotty","square","squealing","stable","stale","standard","static","statistical","statutory","steady","steep","sticky","stiff","still","stingy","stormy","straight","straightforward","strange","strategic","strict","striking","striped","strong","structural","stuck","stupid","subjective","subsequent","substantial","subtle","successful","successive","sudden","sufficient","suitable","sunny","super","superb","superior","supporting","supposed","supreme","sure","surprised","surprising","surrounding","surviving","suspicious","sweet","swift","symbolic","sympathetic","systematic","tall","tame","tart","tasteless","tasty","technical","technological","teenage","temporary","tender","tense","terrible","territorial","testy","then","theoretical","thick","thin","thirsty","thorough","thoughtful","thoughtless","thundering","tight","tiny","tired","top","tory","total","tough","toxic","traditional","tragic","tremendous","tricky","tropical","troubled","typical","ugliest","ugly","ultimate","unable","unacceptable","unaware","uncertain","unchanged","uncomfortable","unconscious","underground","underlying","unemployed","uneven","unexpected","unfair","unfortunate","unhappy","uniform","uninterested","unique","united","universal","unknown","unlikely","unnecessary","unpleasant","unsightly","unusual","unwilling","upper","upset","uptight","urban","urgent","used","useful","useless","usual","vague","valid","valuable","variable","varied","various","varying","vast","verbal","vertical","very","vicarious","vicious","victorious","violent","visible","visiting","visual","vital","vitreous","vivacious","vivid","vocal","vocational","voiceless","voluminous","voluntary","vulnerable","wandering","warm","wasteful","watery","weak","wealthy","weary","wee","weekly","weird","welcome","well","western","wet","whispering","whole","wicked","wide","widespread","wild","wilful","willing","willowy","wily","wise","wispy","wittering","witty","wonderful","wooden","working","worldwide","worried","worrying","worthwhile","worthy","written","wrong","xenacious","xenial","xenogeneic","xenophobic","xeric","xerothermic","yabbering","yammering","yappiest","yappy","yawning","yearling","yearning","yeasty","yelling","yelping","yielding","yodelling","young","youngest","youthful","ytterbic","yucky","yummy","zany","zealous","zeroth","zestful","zesty","zippy","zonal","zoophagous","zygomorphic","zygotic"],k2=["aardvark","aardwolf","albatross","alligator","alpaca","amphibian","anaconda","angelfish","anglerfish","ant","anteater","antelope","antlion","ape","aphid","armadillo","asp","baboon","badger","bandicoot","barnacle","barracuda","basilisk","bass","bat","bear","beaver","bedbug","bee","beetle","bird","bison","blackbird","boa","boar","bobcat","bobolink","bonobo","booby","bovid","bug","butterfly","buzzard","camel","canid","canidae","capybara","cardinal","caribou","carp","cat","caterpillar","catfish","catshark","cattle","centipede","cephalopod","chameleon","cheetah","chickadee","chicken","chimpanzee","chinchilla","chipmunk","cicada","clam","clownfish","cobra","cockroach","cod","condor","constrictor","coral","cougar","cow","coyote","crab","crane","crawdad","crayfish","cricket","crocodile","crow","cuckoo","damselfly","deer","dingo","dinosaur","dog","dolphin","donkey","dormouse","dove","dragon","dragonfly","duck","eagle","earthworm","earwig","echidna","eel","egret","elephant","elk","emu","ermine","falcon","felidae","ferret","finch","firefly","fish","flamingo","flea","fly","flyingfish","fowl","fox","frog","galliform","gamefowl","gayal","gazelle","gecko","gerbil","gibbon","giraffe","goat","goldfish","goose","gopher","gorilla","grasshopper","grouse","guan","guanaco","guineafowl","gull","guppy","haddock","halibut","hamster","hare","harrier","hawk","hedgehog","heron","herring","hippopotamus","hookworm","hornet","horse","hoverfly","hummingbird","hyena","iguana","impala","jackal","jaguar","jay","jellyfish","junglefowl","kangaroo","kingfisher","kite","kiwi","koala","koi","krill","ladybug","lamprey","landfowl","lark","leech","lemming","lemur","leopard","leopon","limpet","lion","lizard","llama","lobster","locust","loon","louse","lungfish","lynx","macaw","mackerel","magpie","mammal","manatee","mandrill","marlin","marmoset","marmot","marsupial","marten","mastodon","meadowlark","meerkat","mink","minnow","mite","mockingbird","mole","mollusk","mongoose","monkey","moose","mosquito","moth","mouse","mule","muskox","narwhal","newt","nightingale","ocelot","octopus","opossum","orangutan","orca","ostrich","otter","owl","ox","panda","panther","parakeet","parrot","parrotfish","partridge","peacock","peafowl","pelican","penguin","perch","pheasant","pig","pigeon","pike","pinniped","piranha","planarian","platypus","pony","porcupine","porpoise","possum","prawn","primate","ptarmigan","puffin","puma","python","quail","quelea","quokka","rabbit","raccoon","rat","rattlesnake","raven","reindeer","reptile","rhinoceros","roadrunner","rodent","rook","rooster","roundworm","sailfish","salamander","salmon","sawfish","scallop","scorpion","seahorse","shark","sheep","shrew","shrimp","silkworm","silverfish","skink","skunk","sloth","slug","smelt","snail","snake","snipe","sole","sparrow","spider","spoonbill","squid","squirrel","starfish","stingray","stoat","stork","sturgeon","swallow","swan","swift","swordfish","swordtail","tahr","takin","tapir","tarantula","tarsier","termite","tern","thrush","tick","tiger","tiglon","toad","tortoise","toucan","trout","tuna","turkey","turtle","tyrannosaurus","unicorn","urial","vicuna","viper","vole","vulture","wallaby","walrus","warbler","wasp","weasel","whale","whippet","whitefish","wildcat","wildebeest","wildfowl","wolf","wolverine","wombat","woodpecker","worm","wren","xerinae","yak","zebra"];const Au=/^[a-z]{2,15}-[a-z]{2,15}(-[0-9]+)?$/,Tu=/^[a-z]{2,15}$/,Eu=w2.filter(t=>Tu.test(t)),Mu=k2.filter(t=>Tu.test(t));function L6(){return y2({dictionaries:[Eu,Mu],separator:"-",style:"lowerCase",length:2})}function P6(t,e){return`${t}-${e}`}function x2(t){const e=t.match(/^([a-z]{2,15}-[a-z]{2,15})(?:-[0-9]+)?$/);return e?e[1]:t}const El=new Set(Eu),Ml=new Set(Mu),S2=new Set;function O6(t){return!t||typeof t!="string"?!1:Au.test(t)||/^[a-z]{2,15}-[a-z]{2,15}-[a-z0-9]{4}$/.test(t)?!0:/^[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}$/i.test(t)}function $6(t){if(!t||typeof t!="string")return!1;if(S2.has(t))return!0;if(Au.test(t)){const n=x2(t).split("-");if(n.length===2){const[a,i]=n;if(El.has(a)&&Ml.has(i))return!0}}if(/^[a-z]{2,15}-[a-z]{2,15}-[a-z0-9]{4}$/.test(t)){const r=t.split("-");if(r.length===3){const[n,a]=r;if(El.has(n)&&Ml.has(a))return!0}}return!1}const B6=E.createSelector(t=>Lr.select(t)?.capabilities.sessionImport===1),q6=E.createSelector(t=>{const e=t.importableSessions?.sessions;return e?ge(e):[]}),F6=E.createSelector(t=>{const e=t.importableSessions?.providers;return e?ge(e):[]}),H6=E.createSelector(t=>t.importableSessions?.status??"idle"),A2=Hl("ContextAPI");function U6(t){return t.some(e=>e.placementStatus==="placing"||e.placementStatus==="failed")}async function Cl(t,e,r){return A2.debug("Placing attachment",{workspaceId:t,fileName:e,viaSourcePath:r.sourcePath!==void 0,keyed:r.idempotencyKey!==void 0}),await p0("file.placeAttachment",{workspaceId:t,fileName:e,...r.data!==void 0?{data:r.data}:{},...r.sourcePath!==void 0?{sourcePath:r.sourcePath}:{},...r.mimeType!==void 0&&r.mimeType!==""?{mimeType:r.mimeType}:{},...r.idempotencyKey!==void 0?{idempotencyKey:r.idempotencyKey}:{},...r.rawScreenshot!==void 0?{rawScreenshot:r.rawScreenshot}:{}})}async function T2(t,e,r,n,a={}){return await p0("file.attachmentUpload.begin",{workspaceId:t,fileName:e,sizeBytes:r,sha256:n,...a.mimeType!==void 0&&a.mimeType!==""?{mimeType:a.mimeType}:{},...a.idempotencyKey!==void 0?{idempotencyKey:a.idempotencyKey}:{},...a.rawScreenshot!==void 0?{rawScreenshot:a.rawScreenshot}:{}})}const Cu=300*1e3;async function E2(t,e,r,n){return await p0("file.attachmentUpload.chunk",{uploadId:t,seq:e,data:r,...n!==void 0?{workspaceId:n}:{}},{timeoutMs:Cu})}async function M2(t,e){return await p0("file.attachmentUpload.commit",{uploadId:t,...e!==void 0?{workspaceId:e}:{}},{timeoutMs:Cu})}async function C2(t,e){return await p0("file.attachmentUpload.abort",{uploadId:t,...e!==void 0?{workspaceId:e}:{}})}async function I2(t){const e=typeof t=="string"?{attachmentId:t}:t.attachmentId!==void 0?{workspaceId:t.workspaceId,attachmentId:t.attachmentId}:{workspaceId:t.workspaceId,idempotencyKey:t.idempotencyKey};return await p0("file.getAttachmentInfo",e)}async function W6(t,e,r){return await He("file:download-attachment",{workspaceId:t,path:e,fileName:r})}const Iu=25*1024*1024,Il=1024*1024*1024,z2=16*1024*1024,zu="attachment upload cancelled";function R2(t,e){return e?.aborted===!0||t instanceof Error&&t.message===zu}function _n(t){if(t?.aborted)throw new Error(zu)}function D2(){return!b1.select(E.state)}function N2(t){return Fl(t,9,13)}function Ru(){return N2(E.state?.daemonHealth?.stats?.protocolVersion)}function G6(t){if(Ru())return t??crypto.randomUUID()}function Du(t){if(!t||typeof t!="object")return!1;const{rpcCode:e,code:r}=t;return e===-32602||r==="INVALID_PARAMS"}function _2(t){return Du(t)&&/already committed/i.test(String(t.message??""))}function L2(t){return{ok:!0,path:t.path,fileName:t.fileName,size:t.size,attachmentId:t.attachmentId,...t.mimeType!==void 0?{mimeType:t.mimeType}:{},uploadedAt:t.uploadedAt,replayed:!0,...t.rawScreenshot!==void 0?{rawScreenshot:t.rawScreenshot}:{}}}async function Ai(t,e,r=I2){try{return L2(await r({workspaceId:t,idempotencyKey:e}))}catch{return}}function Nu(t,e,r){return e!==void 0&&!Du(t)&&!R2(t,r)}async function zl(t,e,r,n,a=()=>!0){try{return ht(a),await n()}catch(i){if(ht(a),Nu(i,e,r)){const s=await Ai(t,e);if(s)return s}throw i}}const _u="file:read returned an unexpected response",ss="file:read failed";function os(t){if(!t||typeof t!="object"||!("success"in t))throw new Error(_u);if(!t.success||t.data===void 0)throw new Error(t.error?.message??ss);return t.data}async function P2(t){const e=await He("file:read",{path:t,encoding:"base64",maxSize:Iu,truncateIfLarge:!1}),r=os(e);if(r.content===void 0)throw new Error(e.error?.message??ss);return r.content}async function Lu(t,e,r){const n=await He("file:read-chunk",{path:t,offset:e,length:r});return os(n)}async function O2(t){const{size:e}=await Lu(t,0,1);return e}async function $2(t){const e=await He("file:hash",{path:t});return os(e).sha256}const B2=new Set(["Internal error","Backend request failed",_u,ss]);async function j6(t,e,r,n,a,i=()=>!0){ht(i);const s=Ru()?r.idempotencyKey:void 0,o=s!==void 0?{idempotencyKey:s}:{};if(!D2())return zl(t,s,a,()=>Cl(t,e,{sourcePath:r.sourcePath,mimeType:r.mimeType,...o}),i);const c=await O2(r.sourcePath);if(ht(i),c>Il)throw new Error(ne.chat_attachmentPlacement_tooLargeRemote_error({name:e,maxGb:Math.round(Il/(1024*1024*1024))}));if(c>Iu)return q2(t,e,{...r,idempotencyKey:s},c,n,a,i);const d=await P2(r.sourcePath);return ht(i),_n(a),zl(t,s,a,()=>Cl(t,e,{data:d,mimeType:r.mimeType,...o}),i)}async function q2(t,e,r,n,a,i,s=()=>!0){ht(s);const o=await $2(r.sourcePath);ht(s),_n(i);let c,d;try{({uploadId:c,maxChunkBytes:d}=await T2(t,e,n,o,{mimeType:r.mimeType,...r.idempotencyKey!==void 0?{idempotencyKey:r.idempotencyKey}:{}}))}catch(w){if(ht(s),r.idempotencyKey!==void 0&&_2(w)){const A=await Ai(t,r.idempotencyKey);if(A)return A}throw w}const p=Math.min(z2,d),g=Math.ceil(n/p);let v=!1;try{for(let w=0;w<g;w++){ht(s),_n(i);const{content:A}=await Lu(r.sourcePath,w*p,p);ht(s),await E2(c,w,A,t),ht(s),a?.((w+1)/g)}return _n(i),ht(s),v=!0,await M2(c,t)}catch(w){if(ht(s),v&&Nu(w,r.idempotencyKey,i)){const A=await Ai(t,r.idempotencyKey);if(A)return A}throw ht(s),await C2(c,t).catch(()=>{}),w}}function V6(t){if(!t||typeof t!="object")return;const e=t.data;if(e&&typeof e=="object"){const n=e.detail;if(typeof n=="string"&&n.trim().length>0)return n.trim()}const r=t.message;if(typeof r=="string"&&r.trim().length>0&&!B2.has(r.trim()))return r.trim()}function ht(t){if(!t())throw new DOMException("Obsolete attachment submission","AbortError")}function Pu(t){const e=t?.split(";")[0].trim().toLowerCase()??"";return e==="image/jpg"?"image/jpeg":e}function X6(t){return["image/png","image/jpeg","image/gif","image/webp"].includes(Pu(t))}const F2={"image/png":"png","image/jpeg":"jpg","image/gif":"gif","image/webp":"webp","image/svg+xml":"svg","image/avif":"avif","image/bmp":"bmp","image/tiff":"tiff","image/x-icon":"ico","image/vnd.microsoft.icon":"ico","image/heic":"heic","image/heif":"heif","image/jxl":"jxl"};function Y6(t,e){const r=F2[Pu(t)]??"bin";return`${e}.${r}`}let H2=0;const ls=new WeakSet;function K6(t){const e=E.dispatch,r=E.state.connections.windowBackendId,n=Ya.select(E.state,t.id);if(!n||E.state.workspace.pendingDeletions[t.id])return null;const a=`operation-${++H2}`;let i=!1;const s=()=>{try{return E.dispatch===e&&E.state.connections.windowBackendId===r}catch{return!1}},o=()=>s()&&E.state.workspace.deletionTokens[t.id]===a,c=()=>s()&&ur.select(E.state)===n&&(i?o()&&E.state.workspace.invalidatedDeletions[t.id]!==a&&E.state.workspace.terminalDeletions[t.id]!==a:Ya.select(E.state,t.id)===n),d={workspaceId:t.id,current:c,terminal(){return!i||!o()||ur.select(E.state)!==n||E.state.workspace.terminalDeletions[t.id]!==a?null:E.state.workspace.invalidatedDeletions[t.id]===a?"denied":"removed"},begin(p=!0){return i||!c()||E.state.workspace.pendingDeletions[t.id]?!1:(e(z1(t.id,a)),p&&e(R1(t.id)),i=!0,c())},restore(){c()&&(e(Ka(t.id,a)),e(I1(t)))},expire(){o()&&e(Ka(t.id,a))}};return ls.add(d),d}function Rl(t,e){return ls.has(t)&&t.workspaceId===e&&t.current()}function U2(t,e){return ls.has(t)&&t.workspaceId===e&&t.terminal()==="removed"}function Z6(t){const e=E.dispatch,r=E.state.connections.windowBackendId,n=E.state.workspace.deletionTokens[t];return()=>{try{n&&E.dispatch===e&&E.state.connections.windowBackendId===r&&e(Ka(t,n))}catch{}}}function Er(t,e){const r=()=>t===void 0?_l.select(E.state)?ur.select(E.state):null:e?y1.select(E.state,t,e):Ya.select(E.state,t),n=E.dispatch,a=r();return()=>{try{return E.dispatch===n&&a!==null&&a===r()}catch{return!1}}}const ut=()=>({ok:!1,error:ne.workspace_client_accessChanged_error()}),ir=new u0("WorkspaceClient"),W2=100;function z0(t){return{...t,path:t.path?.replaceAll("\\","/"),repositoryPath:t.repositoryPath?.replaceAll("\\","/"),worktreePath:t.worktreePath?.replaceAll("\\","/")}}class G2{constructor(){se(this,"pendingRequests",new Map);se(this,"cache",new Map);se(this,"CACHE_TTL",5e3);se(this,"mutationCounter",0)}getCacheKey(e,r){return`${e}:${JSON.stringify(r||{})}`}pruneExpiredCacheEntries(e=Date.now()){for(const[r,n]of this.cache)e-n.timestamp>=this.CACHE_TTL&&this.cache.delete(r)}setCacheEntry(e,r){for(this.pruneExpiredCacheEntries(),this.cache.delete(e),this.cache.set(e,{data:r,timestamp:Date.now()});this.cache.size>W2;){const n=this.cache.keys().next().value;if(n===void 0)break;this.cache.delete(n)}}shouldCacheResponse(e){return e!==Sr.LIST&&(e.includes(":get")||e.includes(":list"))}async invoke(e,r){try{const n=this.mutationCounter,a=this.getCacheKey(e,r)+(e===Sr.LIST?JSON.stringify([E.state.connections.windowBackendId,ur.select(E.state)]):"");this.pruneExpiredCacheEntries();const i=this.pendingRequests.get(a);if(i)return ir.debug(`[WorkspaceClient] Reusing pending request for ${e}`),i;if(this.shouldCacheResponse(e)){const o=this.cache.get(a);if(o&&Date.now()-o.timestamp<this.CACHE_TTL)return ir.debug(`[WorkspaceClient] Using cached response for ${e}`),{ok:!0,data:o.data};o&&this.cache.delete(a)}const s=(async()=>{if(typeof window<"u"&&window.electronAPI){let o=r;if(r!==void 0)try{o=JSON.parse(JSON.stringify(r))}catch(p){if(ir.error(`[WorkspaceClient] Data serialization failed for ${e}:`,{error:p,dataKeys:r?Object.keys(r):[]}),r&&typeof r=="object")for(const[g,v]of Object.entries(r))try{JSON.stringify(v)}catch{ir.error(`[WorkspaceClient] Non-serializable field: ${g}`,{type:typeof v,constructor:v?.constructor?.name})}throw new Error(`Data serialization failed: ${p instanceof Error?p.message:"Unknown error"}`)}const c=await Bs(e,o),d=this.normalizeResponse(c);return d.ok&&this.shouldCacheResponse(e)&&n===this.mutationCounter&&this.setCacheEntry(a,d.data),d}return{ok:!1,error:"IPC not available"}})();this.pendingRequests.set(a,s);try{return await s}finally{this.pendingRequests.delete(a)}}catch(n){return ir.error(`[WorkspaceClient] IPC error for ${e}:`,n),{ok:!1,error:n instanceof Error?n.message:"IPC call failed"}}}clearCache(e){if(this.mutationCounter++,e){for(const[r]of this.cache)r.includes(e)&&this.cache.delete(r);for(const[r]of this.pendingRequests)r.includes(e)&&this.pendingRequests.delete(r)}else this.cache.clear(),this.pendingRequests.clear()}normalizeResponse(e){return e==null?{ok:!1,error:"No response received"}:"ok"in e?e.ok?{ok:!0,data:e.data}:{ok:!1,error:e.error||"Unknown error"}:"success"in e?e.success?{ok:!0,data:e.data}:{ok:!1,error:e.error||"Unknown error"}:{ok:!1,error:"Invalid response format"}}async list(e){const r=await this.invoke(Sr.LIST,{lite:e?.lite});return r.ok?r.data&&"workspaces"in r.data?{ok:!0,data:r.data.workspaces.map(z0)}:{ok:!0,data:r.data.map(z0),complete:!0}:r}async create(e){const r=e.initialAgent;ir.info(`[WorkspaceClient] create called: title=${e.title}, hasInitialAgent=${!!r}, specialist=${r?.specialist}, model=${r?.model}, keys=${r?Object.keys(r).join(","):"none"}`);const n=Er();if(!n())return ut();const a=await xr.workspaces.create(e);if(!n())return ut();if(ir.info("[WorkspaceClient] create result",{success:a.success,scope:e.scope,initialAgentId:a.success?a.initialAgent?.id:void 0,error:a.success?void 0:a.error}),a.success&&a.workspace)return this.clearCache(),{ok:!0,data:{workspace:z0(a.workspace),initialAgent:a.initialAgent,...a.proposalOrigin?{proposalOrigin:a.proposalOrigin}:{}}};const i=a.error||ne.workspace_client_createFailed_error();return a.errorCode?{ok:!1,error:i,errorCode:a.errorCode,...a.launchFailure?{launchFailure:a.launchFailure}:{},...a.baseRefreshFailure?{baseRefreshFailure:a.baseRefreshFailure}:{}}:{ok:!1,error:i}}async open(e){const r=await this.invoke(Sr.OPEN,{id:e});return r.ok?{ok:!0,data:z0(r.data)}:r}async update(e){const r=Er(e.id,Object.keys(e));if(!r())return ut();const n=await xr.workspaces.update(e);return r()?n.success&&n.workspace?(this.clearCache(e.id),this.clearCache(),{ok:!0,data:z0(n.workspace)}):{ok:!1,error:n.error||ne.workspace_client_updateFailed_error()}:ut()}async delete(e,r,n){const a=n?()=>Rl(n,e):Er(e);if(!a())return{...ut(),obsolete:!0};const i=await xr.workspaces.delete(e,r);return!a()&&!(n&&U2(n,e))?{...ut(),obsolete:!0}:i.success?(this.clearCache(e),this.clearCache(),i.scheduled&&i.deleteAt?{ok:!0,data:{scheduled:!0,deleteAt:i.deleteAt}}:{ok:!0,data:void 0}):{ok:!1,error:i.error||ne.workspace_client_deleteFailed_error()}}async cancelDelete(e,r){const n=r?()=>Rl(r,e):Er(e);if(!n())return{...ut(),obsolete:!0};const a=await xr.workspaces.cancelDelete(e);return n()?a.success?(this.clearCache(e),this.clearCache(),{ok:!0,data:{cancelled:a.cancelled===!0}}):{ok:!1,error:a.error||ne.workspace_client_cancelDeleteFailed_error()}:{...ut(),obsolete:!0}}async archive(e){const r=Er(e);if(!r())return ut();const n=await xr.workspaces.archive(e);return r()?n.success?(this.clearCache(e),this.clearCache(),{ok:!0,data:void 0}):{ok:!1,error:n.error||ne.workspace_client_archiveFailed_error()}:ut()}async unarchive(e){const r=Er(e);if(!r())return ut();const n=await xr.workspaces.unarchive(e);return r()?n.success?(this.clearCache(e),this.clearCache(),{ok:!0,data:void 0}):{ok:!1,error:n.error||ne.workspace_client_unarchiveFailed_error()}:ut()}async retire(e){const r=Er(e);if(!r())return ut();const n=await xr.workspaces.retire(e);return r()?n.success?(this.clearCache(e),this.clearCache(),{ok:!0,data:n.workspace}):{ok:!1,error:n.error||ne.workspace_ops_purgeFailed_error(),...n.errorCode?{errorCode:n.errorCode}:{}}:ut()}async invokeFresh(e,r){try{if(typeof window<"u"&&window.electronAPI){const n=await Bs(e,r);return this.normalizeResponse(n)}return{ok:!1,error:"IPC not available"}}catch(n){return ir.error(`[WorkspaceClient] IPC error for ${e}:`,n),{ok:!1,error:n instanceof Error?n.message:"IPC call failed"}}}async getDiffSummary(e){return this.invokeFresh(Sr.GET_DIFF_SUMMARY,{workspaceId:e})}async getGitSummary(e){return this.invokeFresh(Sr.GET_GIT_SUMMARY,{workspaceId:e})}async getTasks(e){return this.invokeFresh(Sr.GET_TASKS,{workspaceId:e})}}const Q6=new G2;function Dl(t,e){return{key:t.id,confirmedId:t.id,confirmed:t,content:t.content,messageMetadata:t.messageMetadata,imageBlocks:[...t.imageBlocks??[]],fileBlocks:[...t.fileBlocks??[]],deliveryGroups:t.deliveryGroups,contextItems:[...t.contextItems??[]],contributions:[],blocksMutations:e}}function Nl(t){return!t.imageBlocks?.length&&!t.fileBlocks?.length}function Ou(t,e){const r=t?.supported===!0,n=r&&(t.refreshNeeded||D1(t)),a=e.map(S=>Dl(S,n));if(!t)return{conversation:[],processing:[],queue:a};const i=new Set(ge(t.seeds).flatMap(S=>bn(S,t.scope.principalId))),s=ge(t.submissions).filter(S=>!i.has(S.id)),o=new Set(e.flatMap(S=>bn(S,t.scope.principalId))),c=ge(t.processing).filter(S=>!bn(S,t.scope.principalId).some(C=>o.has(C))),d=s.filter(S=>S.destination==="conversation");if(!r)return{conversation:d,processing:c,queue:a};for(const S of ge(t.seeds)){const C=a.findIndex(Y=>Y.confirmedId===S.id),W=Dl(S,!0),K=bn(S,t.scope.principalId);W.contributions=ge(t.submissions).filter(Y=>K.includes(Y.id)),C>=0?(W.confirmed=a[C].confirmed,a[C]=W):(W.confirmedId=void 0,W.confirmed=void 0,a.push(W))}const p=e.filter(S=>S.mergeEligible===!0),g=!n&&p.length===1&&p[0].author?.principalId===t.scope.principalId&&p[0].submissionIds?.length&&!p[0].recoverySources?p[0].id:void 0;let v=g?a.find(S=>S.confirmedId===g):void 0;for(const S of s.filter(C=>C.destination==="queue")){const C=v&&Nl(v)&&Nl(S)?v:void 0;if(C)C.content=[C.content,S.content].filter(Boolean).join(`
469
469
 
470
- `),C.imageBlocks.push(...S.imageBlocks??[]),C.fileBlocks.push(...S.fileBlocks??[]),C.contextItems.push(...S.contextItems??[]),C.contributions.push(S),C.blocksMutations=!0,v=C;else{const W={key:S.id,content:S.content,messageMetadata:S.messageMetadata,imageBlocks:[...S.imageBlocks??[]],fileBlocks:[...S.fileBlocks??[]],contextItems:[...S.contextItems??[]],contributions:[S],blocksMutations:!0};a.push(W),n||(v=W)}}const w=new Map(ge(t.submissions).map((S,C)=>[S.id,C])),A=S=>Math.min(...S.contributions.map(C=>w.get(C.id)??1/0)),M=a.filter(S=>!S.confirmedId).sort((S,C)=>A(S)-A(C));let D=0;for(let S=0;S<a.length;S+=1)a[S].confirmedId||(a[S]=M[D++]);return{conversation:d,processing:c,queue:a}}function j2(t,e){return t.some(r=>r.blocksMutations&&(!r.confirmedId||e===void 0||e===r.confirmedId||!!r.confirmed?.editingMessageId&&e===r.confirmed.editingMessageId))}const ea=E.createSelector((t,e)=>{const r=t.pendingSubmissions?.byAgentId[e.agentId];if(!r||!N1(r.scope,e)||w1.select(t,e.workspaceId)!==e.participation||Lr.select(t)?.principal.id!==e.principalId)return;const n=t.agentSessions?.byAgentId[e.agentId]?.workspaceId;return n!==void 0&&n!==e.workspaceId?void 0:r}),V2=E.createSelector((t,e)=>Ou(ea.select(t,e),Fn.select(t,e.agentId,e.workspaceId))),J6=E.createSelector(t=>t.pendingSubmissions),e7=E.createSelector((t,e)=>{const r=ea.select(t,e.scope);return!!r&&(!!Se(r.operations,e.id)||!!Se(r.submissions,e.id))}),Y2=E.createSelector((t,e,r)=>{const n=t.pendingSubmissions?.byAgentId[e]?.scope;return n?.workspaceId===r?V2.select(t,n):Ou(void 0,Fn.select(t,e,r))}),t7=E.createSelector((t,e)=>{const r=ea.select(t,e.scope);return!!r&&Se(r.operations,e.id)?.observed===!0}),r7=E.createSelector((t,e,r,n)=>j2(Y2.select(t,e,r).queue,n));function cs(t,e,r){const n=t.pendingSubmissions?.byAgentId[e]?.scope,a=n?ea.select(t,n):void 0;return a?[...ge(a.submissions),...ge(a.processing),...ge(a.tombstones).filter(i=>i.reason==="history"||i.reason==="processing")].some(i=>W1({metadata:i.messageMetadata}).includes(r)):!1}function X2(t,e,r,n=!1){const a=k1.select(t,e),i=Fn.select(t,e),s=t.agentSessions?.byAgentId[e],o=Mi(s?.metadata?.pendingQuestionsMessageId),c=o.kind==="set"?r.find(w=>w.id===o.messageId)??Ti.select(t,e,o.messageId):void 0,d=t.chatState?.byAgentId[e]?.pendingQuestionRecovery,p=o.kind==="set"&&!c&&d?.messageId===o.messageId&&d.status==="found"&&d.questions&&d.questions.length>0?{messageId:o.messageId,questions:d.questions}:null,g=o.kind==="set"&&c&&!r.includes(c)?[c,...r]:r,v=p?n||Ul(r,p.messageId)||Wl(i,p.messageId)?null:p:U1(g,a,n,o.kind==="set"?o.messageId:o.kind==="cleared"?"":void 0,i);return!v||cs(t,e,v.messageId)||Gl(s?.metadata,v.messageId)?null:v}function K2(t){return t.role==="assistant"&&t.provisional!==!0&&t.isStreaming!==!0&&(t.contentBlocks??[]).some(e=>G1(e)!==null)}function n7(t,e,r){if(X2(t,e,r))return!0;const n=t.agentSessions?.byAgentId[e],a=Mi(n?.metadata?.pendingQuestionsMessageId);if(a.kind!=="set"||cs(t,e,a.messageId)||Gl(n?.metadata,a.messageId)||Ul(r,a.messageId))return!1;const i=Fn.select(t,e);if(Wl(i,a.messageId))return!1;const s=r.find(d=>d.id===a.messageId)??Ti.select(t,e,a.messageId);if(s)return!K2(s);const o=t.chatState?.byAgentId[e]?.pendingQuestionRecovery;return!(o?.messageId===a.messageId&&o.status==="found"&&!!o.questions&&o.questions.length>0)}function a7(t,e){const r=Mi(t.agentSessions?.byAgentId[e]?.metadata?.pendingQuestionsMessageId);if(r.kind!=="set"||cs(t,e,r.messageId)||Ti.select(t,e,r.messageId))return null;const n=t.chatState?.byAgentId[e]?.pendingQuestionRecovery;if(n?.messageId===r.messageId){const a=n.status==="found"&&!!n.questions&&n.questions.length>0;return{messageId:r.messageId,shouldRequest:!1,loading:!a}}return{messageId:r.messageId,shouldRequest:!0,loading:!0}}const Z2=E.createSelector(t=>t.permission.requests),Q2=E.createSelector(t=>ge(Z2.select(t))),J2=E.createSelector((t,e)=>Q2.select(t).filter(r=>r.sessionId===e)),i7=E.createSelector((t,e)=>J2.select(t,e).length),s7=E.createSelector(t=>{const e=Ol.select(t),r=e.actionContext;if(!r||!x1.select(t,t.connections.windowBackendId))return null;const n=ge(t.workspace.workspaces).filter(a=>$l(e,a.id,()=>a)!==null).map(a=>a.id).sort();return JSON.stringify([r,n])}),o7=E.createSelector(t=>{const e=Ol.select(t),r=new Map,n=a=>{let i=r.get(a);if(!i){const s=()=>Se(t.workspace.workspaces,a);i=[$l(e,a,s),S1(e,a,s)],r.set(a,i)}return i};return JSON.stringify(Object.values(t.agentSessions.byAgentId).flatMap(a=>a.workspaceId?[[a.id,a.workspaceId,...n(a.workspaceId)]]:[]).sort((a,i)=>a[0].localeCompare(i[0])))}),l7=E.createSelector((t,e,r)=>{const n=t.agentMutationUi.byWorkspaceId[e],a=n?Se(n.consumers,r):void 0;return a&&!a.consumed?{...a,workspaceId:e}:void 0});function c7(t){if(!t)return!0;const e=t.trim().toLowerCase();return e==="new agent"||e==="orchestrator"||e==="assistant"||e.startsWith("thread ")||e.startsWith("workspace agent")||/^chat \d{1,2}-\d{2} (am|pm)$/i.test(e)}function u7(t){return/^agent-[a-f0-9-]{36}$/i.test(t)}const d7=E.createSelector(t=>t.uiLayout.lineWrapping),h7=E.createSelector(t=>t.uiLayout.foldUnchanged),p7=E.createSelector(t=>t.uiLayout.diffSideBySide),m7=E.createSelector(t=>t.uiLayout.diffIndicators),f7=E.createSelector(t=>t.uiLayout.sidebarWidth),g7=E.createSelector(t=>t.uiLayout.sidebarExpandedWidth),v7=E.createSelector(t=>t.uiLayout.sidebarCollapsed),b7=E.createSelector((t,e,r)=>{const n=t.uiLayout.panelVisibility.byWorkspaceId[e];return n?n[r]:_1[r]}),y7=E.createSelector(t=>t.uiLayout.spacesSidebarWidth),w7=E.createSelector(t=>t.uiLayout.spacesSidebarCollapsed),k7=E.createSelector(t=>t.uiLayout.tabbedSidebarPinned),x7=E.createSelector(t=>t.uiLayout.sidebarSide),S7=E.createSelector((t,e)=>t.uiLayout.resizablePanelSizes[e]),A7=E.createSelector((t,e)=>t.uiLayout.hydratedResizablePanelSizes[e]===!0),us=E.createSelector((t,e)=>t.skills.byWorkspaceId[e]??L1),T7=E.createSelector((t,e)=>us.select(t,e).skills),E7=E.createSelector((t,e)=>us.select(t,e).loading),M7=E.createSelector((t,e)=>us.select(t,e).error),C7=E.createSelector((t,e)=>t.skills.byAgentId?.[e]??P1),I7=E.createSelector((t,e)=>!!t.skills.byAgentId?.[e]),e5=E.createSelector(t=>Lr.select(t)?.capabilities.remoteAgentSkills===1),z7=E.createSelector((t,e)=>{if(!e||!e5.select(t))return;const r=t.agentSessions?.byAgentId[e];if(r?.nodeId)return r.nodeName??ne.chat_slashSkillSuggestionList_unnamedMachine_label()}),R7=E.createSelector((t,e)=>t.agentSessions?.byAgentId[e]?.nodeState);export{s3 as $,qf as A,x2 as B,V6 as C,cf as D,ke as E,x3 as F,ft as G,k3 as H,L6 as I,I2 as J,J1 as K,t3 as L,Iu as M,df as N,T5 as O,n3 as P,g3 as Q,D6 as R,a3 as S,Ii as T,z2 as U,k5 as V,w5 as W,x5 as X,jl as Y,ac as Z,I3 as _,C2 as a,z7 as a$,i3 as a0,A5 as a1,N6 as a2,z6 as a3,U6 as a4,N3 as a5,X6 as a6,E3 as a7,T3 as a8,g4 as a9,G6 as aA,U3 as aB,$3 as aC,Jc as aD,lu as aE,C3 as aF,_6 as aG,Cl as aH,j6 as aI,ud as aJ,I5 as aK,D3 as aL,R3 as aM,Ou as aN,Nm as aO,es as aP,j2 as aQ,fd as aR,P3 as aS,Ai as aT,_3 as aU,b4 as aV,O0 as aW,f3 as aX,l7 as aY,y6 as aZ,I7 as a_,v3 as aa,_2 as ab,S5 as ac,l3 as ad,u3 as ae,c3 as af,c7 as ag,H3 as ah,Fs as ai,R2 as aj,D2 as ak,Y6 as al,C6 as am,O6 as an,f4 as ao,$6 as ap,M5 as aq,m3 as ar,y3 as as,w3 as at,u7 as au,p3 as av,M3 as aw,E5 as ax,td as ay,xa as az,d3 as b,s7 as b$,R7 as b0,C7 as b1,Y2 as b2,w6 as b3,R5 as b4,m7 as b5,p7 as b6,i2 as b7,l6 as b8,a2 as b9,e6 as bA,Z3 as bB,i6 as bC,V3 as bD,wu as bE,G3 as bF,k6 as bG,f2 as bH,Y3 as bI,t6 as bJ,W3 as bK,h7 as bL,F6 as bM,q6 as bN,H6 as bO,v7 as bP,J5 as bQ,d7 as bR,K5 as bS,g2 as bT,S6 as bU,Q5 as bV,b7 as bW,i7 as bX,ea as bY,J6 as bZ,o7 as b_,n2 as ba,o6 as bb,r2 as bc,u6 as bd,r6 as be,a6 as bf,o2 as bg,Q0 as bh,c2 as bi,Q3 as bj,$t as bk,X3 as bl,K3 as bm,Z0 as bn,J3 as bo,s2 as bp,d6 as bq,ku as br,n6 as bs,e2 as bt,Jf as bu,j3 as bv,s6 as bw,c6 as bx,l2 as by,t2 as bz,P6 as c,Q6 as c$,Q2 as c0,Z2 as c1,m6 as c2,u2 as c3,x6 as c4,A6 as c5,E6 as c6,T6 as c7,h6 as c8,p6 as c9,j5 as cA,Z5 as cB,nd as cC,z5 as cD,N5 as cE,F5 as cF,D5 as cG,G5 as cH,O5 as cI,P5 as cJ,U5 as cK,q5 as cL,g6 as cM,p2 as cN,b6 as cO,v6 as cP,E2 as cQ,Nu as cR,L3 as cS,bh as cT,e3 as cU,Zf as cV,b3 as cW,Ci as cX,z3 as cY,A3 as cZ,ns as c_,f6 as ca,r7 as cb,S7 as cc,A7 as cd,B6 as ce,g7 as cf,x7 as cg,f7 as ch,T7 as ci,M7 as cj,E7 as ck,w7 as cl,y7 as cm,e7 as cn,t7 as co,k7 as cp,_t as cq,V5 as cr,Y5 as cs,X5 as ct,H5 as cu,W5 as cv,_5 as cw,L5 as cx,$5 as cy,B5 as cz,ht as d,ol as d0,B3 as d1,O3 as d2,At as d3,T2 as e,M6 as f,q3 as g,o3 as h,R6 as i,Pu as j,Z6 as k,K6 as l,F3 as m,M2 as n,h3 as o,r3 as p,Lm as q,cu as r,ka as s,C5 as t,Ef as u,n7 as v,a7 as w,X2 as x,W6 as y,I6 as z};
470
+ `),C.imageBlocks.push(...S.imageBlocks??[]),C.fileBlocks.push(...S.fileBlocks??[]),C.contextItems.push(...S.contextItems??[]),C.contributions.push(S),C.blocksMutations=!0,v=C;else{const W={key:S.id,content:S.content,messageMetadata:S.messageMetadata,imageBlocks:[...S.imageBlocks??[]],fileBlocks:[...S.fileBlocks??[]],contextItems:[...S.contextItems??[]],contributions:[S],blocksMutations:!0};a.push(W),n||(v=W)}}const w=new Map(ge(t.submissions).map((S,C)=>[S.id,C])),A=S=>Math.min(...S.contributions.map(C=>w.get(C.id)??1/0)),M=a.filter(S=>!S.confirmedId).sort((S,C)=>A(S)-A(C));let D=0;for(let S=0;S<a.length;S+=1)a[S].confirmedId||(a[S]=M[D++]);return{conversation:d,processing:c,queue:a}}function j2(t,e){return t.some(r=>r.blocksMutations&&(!r.confirmedId||e===void 0||e===r.confirmedId||!!r.confirmed?.editingMessageId&&e===r.confirmed.editingMessageId))}const ea=E.createSelector((t,e)=>{const r=t.pendingSubmissions?.byAgentId[e.agentId];if(!r||!N1(r.scope,e)||w1.select(t,e.workspaceId)!==e.participation||Lr.select(t)?.principal.id!==e.principalId)return;const n=t.agentSessions?.byAgentId[e.agentId]?.workspaceId;return n!==void 0&&n!==e.workspaceId?void 0:r}),V2=E.createSelector((t,e)=>Ou(ea.select(t,e),Fn.select(t,e.agentId,e.workspaceId))),J6=E.createSelector(t=>t.pendingSubmissions),e7=E.createSelector((t,e)=>{const r=ea.select(t,e.scope);return!!r&&(!!Se(r.operations,e.id)||!!Se(r.submissions,e.id))}),X2=E.createSelector((t,e,r)=>{const n=t.pendingSubmissions?.byAgentId[e]?.scope;return n?.workspaceId===r?V2.select(t,n):Ou(void 0,Fn.select(t,e,r))}),t7=E.createSelector((t,e)=>{const r=ea.select(t,e.scope);return!!r&&Se(r.operations,e.id)?.observed===!0}),r7=E.createSelector((t,e,r,n)=>j2(X2.select(t,e,r).queue,n));function cs(t,e,r){const n=t.pendingSubmissions?.byAgentId[e]?.scope,a=n?ea.select(t,n):void 0;return a?[...ge(a.submissions),...ge(a.processing),...ge(a.tombstones).filter(i=>i.reason==="history"||i.reason==="processing")].some(i=>W1({metadata:i.messageMetadata}).includes(r)):!1}function Y2(t,e,r,n=!1){const a=k1.select(t,e),i=Fn.select(t,e),s=t.agentSessions?.byAgentId[e],o=Mi(s?.metadata?.pendingQuestionsMessageId),c=o.kind==="set"?r.find(w=>w.id===o.messageId)??Ti.select(t,e,o.messageId):void 0,d=t.chatState?.byAgentId[e]?.pendingQuestionRecovery,p=o.kind==="set"&&!c&&d?.messageId===o.messageId&&d.status==="found"&&d.questions&&d.questions.length>0?{messageId:o.messageId,questions:d.questions}:null,g=o.kind==="set"&&c&&!r.includes(c)?[c,...r]:r,v=p?n||Ul(r,p.messageId)||Wl(i,p.messageId)?null:p:U1(g,a,n,o.kind==="set"?o.messageId:o.kind==="cleared"?"":void 0,i);return!v||cs(t,e,v.messageId)||Gl(s?.metadata,v.messageId)?null:v}function K2(t){return t.role==="assistant"&&t.provisional!==!0&&t.isStreaming!==!0&&(t.contentBlocks??[]).some(e=>G1(e)!==null)}function n7(t,e,r){if(Y2(t,e,r))return!0;const n=t.agentSessions?.byAgentId[e],a=Mi(n?.metadata?.pendingQuestionsMessageId);if(a.kind!=="set"||cs(t,e,a.messageId)||Gl(n?.metadata,a.messageId)||Ul(r,a.messageId))return!1;const i=Fn.select(t,e);if(Wl(i,a.messageId))return!1;const s=r.find(d=>d.id===a.messageId)??Ti.select(t,e,a.messageId);if(s)return!K2(s);const o=t.chatState?.byAgentId[e]?.pendingQuestionRecovery;return!(o?.messageId===a.messageId&&o.status==="found"&&!!o.questions&&o.questions.length>0)}function a7(t,e){const r=Mi(t.agentSessions?.byAgentId[e]?.metadata?.pendingQuestionsMessageId);if(r.kind!=="set"||cs(t,e,r.messageId)||Ti.select(t,e,r.messageId))return null;const n=t.chatState?.byAgentId[e]?.pendingQuestionRecovery;if(n?.messageId===r.messageId){const a=n.status==="found"&&!!n.questions&&n.questions.length>0;return{messageId:r.messageId,shouldRequest:!1,loading:!a}}return{messageId:r.messageId,shouldRequest:!0,loading:!0}}const Z2=E.createSelector(t=>t.permission.requests),Q2=E.createSelector(t=>ge(Z2.select(t))),J2=E.createSelector((t,e)=>Q2.select(t).filter(r=>r.sessionId===e)),i7=E.createSelector((t,e)=>J2.select(t,e).length),s7=E.createSelector(t=>{const e=Ol.select(t),r=e.actionContext;if(!r||!x1.select(t,t.connections.windowBackendId))return null;const n=ge(t.workspace.workspaces).filter(a=>$l(e,a.id,()=>a)!==null).map(a=>a.id).sort();return JSON.stringify([r,n])}),o7=E.createSelector(t=>{const e=Ol.select(t),r=new Map,n=a=>{let i=r.get(a);if(!i){const s=()=>Se(t.workspace.workspaces,a);i=[$l(e,a,s),S1(e,a,s)],r.set(a,i)}return i};return JSON.stringify(Object.values(t.agentSessions.byAgentId).flatMap(a=>a.workspaceId?[[a.id,a.workspaceId,...n(a.workspaceId)]]:[]).sort((a,i)=>a[0].localeCompare(i[0])))}),l7=E.createSelector((t,e,r)=>{const n=t.agentMutationUi.byWorkspaceId[e],a=n?Se(n.consumers,r):void 0;return a&&!a.consumed?{...a,workspaceId:e}:void 0});function c7(t){if(!t)return!0;const e=t.trim().toLowerCase();return e==="new agent"||e==="orchestrator"||e==="assistant"||e.startsWith("thread ")||e.startsWith("workspace agent")||/^chat \d{1,2}-\d{2} (am|pm)$/i.test(e)}function u7(t){return/^agent-[a-f0-9-]{36}$/i.test(t)}const d7=E.createSelector(t=>t.uiLayout.lineWrapping),h7=E.createSelector(t=>t.uiLayout.foldUnchanged),p7=E.createSelector(t=>t.uiLayout.diffSideBySide),m7=E.createSelector(t=>t.uiLayout.diffIndicators),f7=E.createSelector(t=>t.uiLayout.sidebarWidth),g7=E.createSelector(t=>t.uiLayout.sidebarExpandedWidth),v7=E.createSelector(t=>t.uiLayout.sidebarCollapsed),b7=E.createSelector((t,e,r)=>{const n=t.uiLayout.panelVisibility.byWorkspaceId[e];return n?n[r]:_1[r]}),y7=E.createSelector(t=>t.uiLayout.spacesSidebarWidth),w7=E.createSelector(t=>t.uiLayout.spacesSidebarCollapsed),k7=E.createSelector(t=>t.uiLayout.tabbedSidebarPinned),x7=E.createSelector(t=>t.uiLayout.sidebarSide),S7=E.createSelector((t,e)=>t.uiLayout.resizablePanelSizes[e]),A7=E.createSelector((t,e)=>t.uiLayout.hydratedResizablePanelSizes[e]===!0),us=E.createSelector((t,e)=>t.skills.byWorkspaceId[e]??L1),T7=E.createSelector((t,e)=>us.select(t,e).skills),E7=E.createSelector((t,e)=>us.select(t,e).loading),M7=E.createSelector((t,e)=>us.select(t,e).error),C7=E.createSelector((t,e)=>t.skills.byAgentId?.[e]??P1),I7=E.createSelector((t,e)=>!!t.skills.byAgentId?.[e]),e5=E.createSelector(t=>Lr.select(t)?.capabilities.remoteAgentSkills===1),z7=E.createSelector((t,e)=>{if(!e||!e5.select(t))return;const r=t.agentSessions?.byAgentId[e];if(r?.nodeId)return r.nodeName??ne.chat_slashSkillSuggestionList_unnamedMachine_label()}),R7=E.createSelector((t,e)=>t.agentSessions?.byAgentId[e]?.nodeState);export{s3 as $,qf as A,x2 as B,V6 as C,cf as D,ke as E,x3 as F,ft as G,k3 as H,L6 as I,I2 as J,J1 as K,t3 as L,Iu as M,df as N,T5 as O,n3 as P,g3 as Q,D6 as R,a3 as S,Ii as T,z2 as U,k5 as V,w5 as W,x5 as X,jl as Y,ac as Z,I3 as _,C2 as a,z7 as a$,i3 as a0,A5 as a1,N6 as a2,z6 as a3,U6 as a4,N3 as a5,Y6 as a6,E3 as a7,T3 as a8,g4 as a9,G6 as aA,U3 as aB,$3 as aC,Jc as aD,lu as aE,C3 as aF,_6 as aG,Cl as aH,j6 as aI,ud as aJ,I5 as aK,D3 as aL,R3 as aM,Ou as aN,Nm as aO,es as aP,j2 as aQ,fd as aR,P3 as aS,Ai as aT,_3 as aU,b4 as aV,O0 as aW,f3 as aX,l7 as aY,y6 as aZ,I7 as a_,v3 as aa,_2 as ab,S5 as ac,l3 as ad,u3 as ae,c3 as af,c7 as ag,H3 as ah,Fs as ai,R2 as aj,D2 as ak,X6 as al,C6 as am,O6 as an,f4 as ao,$6 as ap,M5 as aq,m3 as ar,y3 as as,w3 as at,u7 as au,p3 as av,M3 as aw,E5 as ax,td as ay,xa as az,d3 as b,s7 as b$,R7 as b0,C7 as b1,X2 as b2,w6 as b3,R5 as b4,m7 as b5,p7 as b6,i2 as b7,l6 as b8,a2 as b9,e6 as bA,Z3 as bB,i6 as bC,V3 as bD,wu as bE,G3 as bF,k6 as bG,f2 as bH,X3 as bI,t6 as bJ,W3 as bK,h7 as bL,F6 as bM,q6 as bN,H6 as bO,v7 as bP,J5 as bQ,d7 as bR,K5 as bS,g2 as bT,S6 as bU,Q5 as bV,b7 as bW,i7 as bX,ea as bY,J6 as bZ,o7 as b_,n2 as ba,o6 as bb,r2 as bc,u6 as bd,r6 as be,a6 as bf,o2 as bg,Q0 as bh,c2 as bi,Q3 as bj,$t as bk,Y3 as bl,K3 as bm,Z0 as bn,J3 as bo,s2 as bp,d6 as bq,ku as br,n6 as bs,e2 as bt,Jf as bu,j3 as bv,s6 as bw,c6 as bx,l2 as by,t2 as bz,P6 as c,Q6 as c$,Q2 as c0,Z2 as c1,m6 as c2,u2 as c3,x6 as c4,A6 as c5,E6 as c6,T6 as c7,h6 as c8,p6 as c9,j5 as cA,Z5 as cB,nd as cC,z5 as cD,N5 as cE,F5 as cF,D5 as cG,G5 as cH,O5 as cI,P5 as cJ,U5 as cK,q5 as cL,g6 as cM,p2 as cN,b6 as cO,v6 as cP,E2 as cQ,Nu as cR,L3 as cS,bh as cT,e3 as cU,Zf as cV,b3 as cW,Ci as cX,z3 as cY,A3 as cZ,ns as c_,f6 as ca,r7 as cb,S7 as cc,A7 as cd,B6 as ce,g7 as cf,x7 as cg,f7 as ch,T7 as ci,M7 as cj,E7 as ck,w7 as cl,y7 as cm,e7 as cn,t7 as co,k7 as cp,_t as cq,V5 as cr,X5 as cs,Y5 as ct,H5 as cu,W5 as cv,_5 as cw,L5 as cx,$5 as cy,B5 as cz,ht as d,ol as d0,B3 as d1,O3 as d2,At as d3,T2 as e,M6 as f,q3 as g,o3 as h,R6 as i,Pu as j,Z6 as k,K6 as l,F3 as m,M2 as n,h3 as o,r3 as p,Lm as q,cu as r,ka as s,C5 as t,Ef as u,n7 as v,a7 as w,Y2 as x,W6 as y,I6 as z};