@intent-hq/web 2.315.0 → 2.316.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (263) hide show
  1. package/package.json +1 -1
  2. package/web/app/immutable/chunks/{B36kU0RI.js → 1glN8WZR.js} +1 -1
  3. package/web/app/immutable/chunks/{C-jm3uXv.js → 2zl9S940.js} +6 -6
  4. package/web/app/immutable/chunks/{CIkNpS3P.js → 4GOFpkFz.js} +1 -1
  5. package/web/app/immutable/chunks/{bS-VFUYb.js → 5doW_7tI.js} +1 -1
  6. package/web/app/immutable/chunks/{Cuq9exmb.js → 62Z5FdlR.js} +1 -1
  7. package/web/app/immutable/chunks/{BA8g-07b.js → 6TqymR4w.js} +1 -1
  8. package/web/app/immutable/chunks/{ZaCkwnYl.js → 74ywEOg9.js} +1 -1
  9. package/web/app/immutable/chunks/{CMqLPRJh.js → 8CCC493y.js} +1 -1
  10. package/web/app/immutable/chunks/{DEmaG7Ya.js → 8mzXJxUW.js} +1 -1
  11. package/web/app/immutable/chunks/9c5nR9-O.js +1 -0
  12. package/web/app/immutable/chunks/{-EpgQj88.js → AQblmNcP.js} +1 -1
  13. package/web/app/immutable/chunks/{CpELl9t1.js → AXIAXE42.js} +3 -3
  14. package/web/app/immutable/chunks/B2mK5Z0v.js +4 -0
  15. package/web/app/immutable/chunks/{Swkg1pRS.js → B4r7cJNO.js} +1 -1
  16. package/web/app/immutable/chunks/{CpnUYFMu.js → B555xbMg.js} +1 -1
  17. package/web/app/immutable/chunks/{BDIALQgX.js → B5JU_-gP.js} +1 -1
  18. package/web/app/immutable/chunks/{jn5owXje.js → B5hFXalj.js} +1 -1
  19. package/web/app/immutable/chunks/{Csa9LtrA.js → B8NcRhEG.js} +1 -1
  20. package/web/app/immutable/chunks/{9GP6SafJ.js → B8W3QKCn.js} +1 -1
  21. package/web/app/immutable/chunks/{B1h0QCy7.js → B9HMXORu.js} +1 -1
  22. package/web/app/immutable/chunks/{BS-r7N3W.js → B9Y6nB-h.js} +1 -1
  23. package/web/app/immutable/chunks/{Dj42fWMH.js → BAm6Imyt.js} +1 -1
  24. package/web/app/immutable/chunks/{CD3v15Ti.js → BAop6WWJ.js} +1 -1
  25. package/web/app/immutable/chunks/{D22I-TIV.js → BELPi3nC.js} +1 -1
  26. package/web/app/immutable/chunks/{CtO7SsM-.js → BEZid-wN.js} +1 -1
  27. package/web/app/immutable/chunks/{eYob4ynm.js → BEm-LQiN.js} +1 -1
  28. package/web/app/immutable/chunks/{CUjmBXfD.js → BErHxpt7.js} +1 -1
  29. package/web/app/immutable/chunks/{BHJ90Mf-.js → BFyDkIbG.js} +1 -1
  30. package/web/app/immutable/chunks/{CjCXWRTy.js → BHdeiQcg.js} +1 -1
  31. package/web/app/immutable/chunks/{dyJEvFNA.js → BJHfEwR6.js} +1 -1
  32. package/web/app/immutable/chunks/{PeOOhaLn.js → BJjB6NZq.js} +1 -1
  33. package/web/app/immutable/chunks/{uDDQZzPe.js → BKLi8eiR.js} +1 -1
  34. package/web/app/immutable/chunks/{DXHWw6vt.js → BKsZlIeb.js} +2 -2
  35. package/web/app/immutable/chunks/{BzVDQRgL.js → BLhV_JPM.js} +1 -1
  36. package/web/app/immutable/chunks/{wc9xM_2L.js → BM8QRBST.js} +1 -1
  37. package/web/app/immutable/chunks/{WVbSHjXl.js → BOAcRQ1a.js} +1 -1
  38. package/web/app/immutable/chunks/{CfHhYnBc.js → BPGcNKLB.js} +1 -1
  39. package/web/app/immutable/chunks/{CHXEA9Fi.js → BP_Rhsa3.js} +4 -4
  40. package/web/app/immutable/chunks/{B7ZHl5_Y.js → BT0R4C2H.js} +1 -1
  41. package/web/app/immutable/chunks/{C8LKnqUt.js → BT2B_S_L.js} +1 -1
  42. package/web/app/immutable/chunks/{hUiIfi2t.js → BTNnUZgK.js} +1 -1
  43. package/web/app/immutable/chunks/{45Qi4YFf.js → BThHq8_S.js} +1 -1
  44. package/web/app/immutable/chunks/{Cwy3o6zK.js → BTp-Xr0J.js} +1 -1
  45. package/web/app/immutable/chunks/{DxI6kRYN.js → BWOGoqnm.js} +1 -1
  46. package/web/app/immutable/chunks/{D0UXbQbI.js → BXHRKzIU.js} +1 -1
  47. package/web/app/immutable/chunks/{DRONnAVY.js → BYFOQUHX.js} +1 -1
  48. package/web/app/immutable/chunks/{BM62R-OM.js → BZyiigVh.js} +1 -1
  49. package/web/app/immutable/chunks/{r3MPkSU0.js → B_0kLtnu.js} +1 -1
  50. package/web/app/immutable/chunks/{BsB-PCKs.js → B_B8ZYTz.js} +1 -1
  51. package/web/app/immutable/chunks/{Clc6wozH.js → B_Uva0b1.js} +1 -1
  52. package/web/app/immutable/chunks/{BsZr4pOk.js → BaXfVVMz.js} +1 -1
  53. package/web/app/immutable/chunks/{Bg4RpIu7.js → Bbn8lLgV.js} +1 -1
  54. package/web/app/immutable/chunks/Bd-hefoB.js +175 -0
  55. package/web/app/immutable/chunks/{DSyGSHPH.js → Bd7xQNwJ.js} +1 -1
  56. package/web/app/immutable/chunks/{ZpSdOcUX.js → BdGv2V1p.js} +1 -1
  57. package/web/app/immutable/chunks/{17xFUwtQ.js → BfvWNMdY.js} +2 -2
  58. package/web/app/immutable/chunks/{DbrsPlQk.js → BhFD9JDw.js} +1 -1
  59. package/web/app/immutable/chunks/{D60vJvLR.js → BhK5x93Y.js} +1 -1
  60. package/web/app/immutable/chunks/{D441f0lY.js → BhXAuYWB.js} +43 -43
  61. package/web/app/immutable/chunks/{cE62vW_i.js → BhaDL5L2.js} +2 -2
  62. package/web/app/immutable/chunks/{C7ilG2WB.js → BiJhyKRr.js} +1 -1
  63. package/web/app/immutable/chunks/{CMMABWQi.js → BiLRO_7d.js} +1 -1
  64. package/web/app/immutable/chunks/{DUjsEo3X.js → BjZBSon4.js} +1 -1
  65. package/web/app/immutable/chunks/{CIOSdkrK.js → BkAtFENJ.js} +1 -1
  66. package/web/app/immutable/chunks/{CLGCkXvY.js → Bl6S6Gmn.js} +1 -1
  67. package/web/app/immutable/chunks/{Czd6tfZA.js → BlBXbDCF.js} +1 -1
  68. package/web/app/immutable/chunks/{DDIYUGOD.js → BmKIrGAr.js} +1 -1
  69. package/web/app/immutable/chunks/{BTxL9if-.js → BnY3EDnN.js} +3 -3
  70. package/web/app/immutable/chunks/{CBRfvExq.js → BqUqwkFB.js} +1 -1
  71. package/web/app/immutable/chunks/{DcBvBE74.js → BqjV2AQl.js} +1 -1
  72. package/web/app/immutable/chunks/{D5arKTNF.js → Bqva_xpl.js} +1 -1
  73. package/web/app/immutable/chunks/{Bjzk9M3D.js → BszyP2Xm.js} +1 -1
  74. package/web/app/immutable/chunks/{qmO_2WOw.js → Bt3aaFF4.js} +1 -1
  75. package/web/app/immutable/chunks/{ja3pdsid.js → Bt8I_YBy.js} +1 -1
  76. package/web/app/immutable/chunks/{DbHbiWFj.js → BuJ6T8t6.js} +1 -1
  77. package/web/app/immutable/chunks/{DGvAL7MJ.js → BuNSu9iM.js} +1 -1
  78. package/web/app/immutable/chunks/{fKsoycU6.js → BvHhinme.js} +1 -1
  79. package/web/app/immutable/chunks/{2UOzeX2M.js → Bwg81p3K.js} +1 -1
  80. package/web/app/immutable/chunks/{CwR0GP6W.js → Bwgf8uVs.js} +1 -1
  81. package/web/app/immutable/chunks/{2j5TR93A.js → Bwn_Ebjg.js} +1 -1
  82. package/web/app/immutable/chunks/{CzzsK_z0.js → BxKNCFnk.js} +1 -1
  83. package/web/app/immutable/chunks/{BoXSGPEf.js → BxcHqD0Y.js} +2 -2
  84. package/web/app/immutable/chunks/{BP6KtsDA.js → BxgdFxC5.js} +1 -1
  85. package/web/app/immutable/chunks/{B2jOlwPp.js → BzbMU544.js} +1 -1
  86. package/web/app/immutable/chunks/{D0UrvUQM.js → C0GDF9vt.js} +1 -1
  87. package/web/app/immutable/chunks/{CzdJ5DN4.js → C17uhWft.js} +1 -1
  88. package/web/app/immutable/chunks/{DnMKNs0X.js → C2G5AP53.js} +3 -3
  89. package/web/app/immutable/chunks/{Cufik1EG.js → C2WXNTdR.js} +1 -1
  90. package/web/app/immutable/chunks/{CFrKPVp-.js → C4RhwIf-.js} +1 -1
  91. package/web/app/immutable/chunks/{D2QAvk7S.js → C4u6LQEf.js} +1 -1
  92. package/web/app/immutable/chunks/{DM1ZHS3Y.js → C5_6YJsU.js} +1 -1
  93. package/web/app/immutable/chunks/{Deg5jWhG.js → C74GZ40P.js} +1 -1
  94. package/web/app/immutable/chunks/{D1h8l9Ve.js → C7AhvdhC.js} +1 -1
  95. package/web/app/immutable/chunks/{BKJB_6oY.js → C7v_m4nu.js} +4 -4
  96. package/web/app/immutable/chunks/{CTX2aXUF.js → C8fjy-FP.js} +1 -1
  97. package/web/app/immutable/chunks/{dUOQ5AaY.js → C8iHXc33.js} +1 -1
  98. package/web/app/immutable/chunks/{B-8kHUzd.js → C9Fu7eOC.js} +1 -1
  99. package/web/app/immutable/chunks/{BMMcARVk.js → C9I4tasT.js} +1 -1
  100. package/web/app/immutable/chunks/{BW4xwD_u.js → CBp0U57i.js} +1 -1
  101. package/web/app/immutable/chunks/{Dd-BRJYG.js → CDeRPDfg.js} +1 -1
  102. package/web/app/immutable/chunks/{CEoXgs7Q.js → CEB_6XsH.js} +1 -1
  103. package/web/app/immutable/chunks/{CS74N62e.js → CH-kj_g1.js} +1 -1
  104. package/web/app/immutable/chunks/{B-P4veSb.js → CH1mzr4Y.js} +1 -1
  105. package/web/app/immutable/chunks/{B6o2T7JU.js → CHzb4PSN.js} +1 -1
  106. package/web/app/immutable/chunks/{BlQxdvN2.js → CI2w5V5f.js} +1 -1
  107. package/web/app/immutable/chunks/{UWOPR8uY.js → CJ-bHdsA.js} +2 -2
  108. package/web/app/immutable/chunks/{BZmsmL8P.js → CK7B4YgF.js} +1 -1
  109. package/web/app/immutable/chunks/{B6MVuluU.js → CMxkSXKy.js} +1 -1
  110. package/web/app/immutable/chunks/{CJzNuuJO.js → CTC_IBI6.js} +1 -1
  111. package/web/app/immutable/chunks/{DQ13AkOA.js → CU7uaRH8.js} +1 -1
  112. package/web/app/immutable/chunks/{CLSvSGMY.js → CUbl5iZL.js} +1 -1
  113. package/web/app/immutable/chunks/{D56XXK4f.js → CVRU8SPX.js} +1 -1
  114. package/web/app/immutable/chunks/{B-2_r0A5.js → CVUE3R4M.js} +1 -1
  115. package/web/app/immutable/chunks/{DTsLO4aV.js → C_Q7MGH6.js} +1 -1
  116. package/web/app/immutable/chunks/{DQHfY0wY.js → C_jLGOhH.js} +1 -1
  117. package/web/app/immutable/chunks/{dRknRrDn.js → CaC6IVGK.js} +1 -1
  118. package/web/app/immutable/chunks/{DMKbkua9.js → Ce4gTFkK.js} +1 -1
  119. package/web/app/immutable/chunks/{ChLTaT6L.js → CeJ1IeC2.js} +1 -1
  120. package/web/app/immutable/chunks/{tVfn9CHP.js → CerYTaaK.js} +1 -1
  121. package/web/app/immutable/chunks/{daoeIyG_.js → CfwdqJQZ.js} +1 -1
  122. package/web/app/immutable/chunks/{DnouAZbM.js → Ch1H5x_J.js} +1 -1
  123. package/web/app/immutable/chunks/{DV6UkZ5a.js → Chd5ygT7.js} +1 -1
  124. package/web/app/immutable/chunks/{B9pexpLt.js → Cj4zs9c7.js} +1 -1
  125. package/web/app/immutable/chunks/{HpMdkrj7.js → ClUXFe3K.js} +1 -1
  126. package/web/app/immutable/chunks/{BGkYz2ud.js → ClcxSKls.js} +1 -1
  127. package/web/app/immutable/chunks/{DrxYPSVr.js → Cn8aeQJj.js} +1 -1
  128. package/web/app/immutable/chunks/{j-Hd81da.js → CnnMkIrL.js} +1 -1
  129. package/web/app/immutable/chunks/{DW_tfZdS.js → CpIRKvcy.js} +3 -3
  130. package/web/app/immutable/chunks/{JchQH-Q8.js → Cpp_fX-J.js} +1 -1
  131. package/web/app/immutable/chunks/{IIdGbw6g.js → Cq2f0FWN.js} +1 -1
  132. package/web/app/immutable/chunks/{hYDzZ9as.js → CqJpu93-.js} +1 -1
  133. package/web/app/immutable/chunks/{BLyNH-U9.js → CqR1Tb6M.js} +1 -1
  134. package/web/app/immutable/chunks/{B-7spAu4.js → CsEnNURD.js} +1 -1
  135. package/web/app/immutable/chunks/{Q95-G3Tv.js → Csc1-9uJ.js} +1 -1
  136. package/web/app/immutable/chunks/{CVr9pwFM.js → Cscrr3Bj.js} +1 -1
  137. package/web/app/immutable/chunks/{D38Ru3z6.js → Csm7pADB.js} +1 -1
  138. package/web/app/immutable/chunks/{gIgvBwPt.js → CtZ1ayFi.js} +1 -1
  139. package/web/app/immutable/chunks/{82qiqofo.js → Ctd97c_e.js} +1 -1
  140. package/web/app/immutable/chunks/{6Rt8MvWn.js → Cvz2UPkQ.js} +1 -1
  141. package/web/app/immutable/chunks/{CZikPtVV.js → Cy5dtLUp.js} +1 -1
  142. package/web/app/immutable/chunks/{DJZIU3cR.js → Cy_Sd6l-.js} +1 -1
  143. package/web/app/immutable/chunks/{CXnUJFR2.js → CzJ1Hiue.js} +1 -1
  144. package/web/app/immutable/chunks/{Dvap-Bcg.js → CzPegY-l.js} +2 -2
  145. package/web/app/immutable/chunks/{Br9IA-Ja.js → Czwx3NuT.js} +1 -1
  146. package/web/app/immutable/chunks/{1r2-2NoO.js → D-G3HkWg.js} +1 -1
  147. package/web/app/immutable/chunks/{AJN9mSFe.js → D0UbOYAT.js} +1 -1
  148. package/web/app/immutable/chunks/{_pUPWAkF.js → D2F-bT-3.js} +1 -1
  149. package/web/app/immutable/chunks/{C5DgMO0u.js → D3KzRi1O.js} +3 -3
  150. package/web/app/immutable/chunks/{yJa3kvR1.js → D3wKW8Yy.js} +1 -1
  151. package/web/app/immutable/chunks/{BcI-R0js.js → D5FE11xl.js} +1 -1
  152. package/web/app/immutable/chunks/{Co0AVCAv.js → D5eIiHgJ.js} +1 -1
  153. package/web/app/immutable/chunks/D5sm9-9m.js +1 -0
  154. package/web/app/immutable/chunks/{i8qNDIdz.js → DA9qzIbq.js} +1 -1
  155. package/web/app/immutable/chunks/{DLueLf8l.js → DBctQLOE.js} +1 -1
  156. package/web/app/immutable/chunks/{E-3i0Fur.js → DD-yOgIr.js} +3 -3
  157. package/web/app/immutable/chunks/{DmYZE-MO.js → DGcEmYiM.js} +3 -3
  158. package/web/app/immutable/chunks/{CoJeJSLc.js → DIAJO_LS.js} +1 -1
  159. package/web/app/immutable/chunks/{BhfbTmVQ.js → DJSQX3k0.js} +1 -1
  160. package/web/app/immutable/chunks/DJyvWKRG.js +324 -0
  161. package/web/app/immutable/chunks/{BkDFndY7.js → DLPrhDSX.js} +1 -1
  162. package/web/app/immutable/chunks/{B9xm9DK7.js → DMMQmvHP.js} +1 -1
  163. package/web/app/immutable/chunks/{Cso7NntT.js → DO2w7Gng.js} +1 -1
  164. package/web/app/immutable/chunks/{C3vS1byi.js → DQuBNfnJ.js} +1 -1
  165. package/web/app/immutable/chunks/{Cpn3qWfd.js → DRL0ipNV.js} +1 -1
  166. package/web/app/immutable/chunks/{BPhG_Xtj.js → DTDbbaAA.js} +2 -2
  167. package/web/app/immutable/chunks/{BL1pyapR.js → DTF_sUmd.js} +1 -1
  168. package/web/app/immutable/chunks/{CnodaVJ0.js → DTww5KdO.js} +2 -2
  169. package/web/app/immutable/chunks/{9CybJbHN.js → DUo2AvdE.js} +1 -1
  170. package/web/app/immutable/chunks/{D90jQ3ZZ.js → DVexJC2P.js} +1 -1
  171. package/web/app/immutable/chunks/{C4C2GjZ7.js → DYFYZyyQ.js} +1 -1
  172. package/web/app/immutable/chunks/{CqSXeJtk.js → DYpVqbU_.js} +1 -1
  173. package/web/app/immutable/chunks/{AStlTL_B.js → D_Jfn1sb.js} +1 -1
  174. package/web/app/immutable/chunks/{DhZDbKoP.js → Da50wjjU.js} +1 -1
  175. package/web/app/immutable/chunks/{CjGoJ5M9.js → Danz4ZHe.js} +2 -2
  176. package/web/app/immutable/chunks/{DNOlba2e.js → DeIPtFY7.js} +1 -1
  177. package/web/app/immutable/chunks/{BbGlxyDx.js → DghTaRWn.js} +1 -1
  178. package/web/app/immutable/chunks/{DZhHioOL.js → DhpN74ze.js} +1 -1
  179. package/web/app/immutable/chunks/{6vbvyEDW.js → DicP-4Ux.js} +1 -1
  180. package/web/app/immutable/chunks/DjccPgw3.js +1 -0
  181. package/web/app/immutable/chunks/{ClgzRlxs.js → DlpZXKDW.js} +1 -1
  182. package/web/app/immutable/chunks/{CrskbTlC.js → DoZKSrzO.js} +1 -1
  183. package/web/app/immutable/chunks/DrBgcA42.js +271 -0
  184. package/web/app/immutable/chunks/{CTKJUmq_.js → DrZ_vbcS.js} +1 -1
  185. package/web/app/immutable/chunks/Ds-VHujS.js +1 -0
  186. package/web/app/immutable/chunks/Ds24foTJ.js +1 -0
  187. package/web/app/immutable/chunks/{Uxor6krE.js → DtmpL-rV.js} +2 -2
  188. package/web/app/immutable/chunks/{etKulcEH.js → DwqmbD5O.js} +1 -1
  189. package/web/app/immutable/chunks/{h8IoI-w7.js → DzNB7FSW.js} +1 -1
  190. package/web/app/immutable/chunks/{DXYkWPe_.js → DzR_YoBw.js} +1 -1
  191. package/web/app/immutable/chunks/E2zwcBGL.js +1 -0
  192. package/web/app/immutable/chunks/{DBOoSzzw.js → EeKDICqL.js} +1 -1
  193. package/web/app/immutable/chunks/{DCdW5wmG.js → FFV3FwPO.js} +1 -1
  194. package/web/app/immutable/chunks/{BwdewdLu.js → HRWMjwjy.js} +1 -1
  195. package/web/app/immutable/chunks/{DyHgOFFg.js → HXa_-lAP.js} +1 -1
  196. package/web/app/immutable/chunks/{H0ZjbDhN.js → HpeAdZWP.js} +1 -1
  197. package/web/app/immutable/chunks/{4GsjZWx0.js → IbdXBatB.js} +1 -1
  198. package/web/app/immutable/chunks/{DdHsJ0nA.js → M-RI-1vB.js} +1 -1
  199. package/web/app/immutable/chunks/{QihShgnK.js → M2l9pCLN.js} +1 -1
  200. package/web/app/immutable/chunks/{DWhtEEhJ.js → McgjWRB8.js} +1 -1
  201. package/web/app/immutable/chunks/{BWdRpmh3.js → S0XLmGl_.js} +1 -1
  202. package/web/app/immutable/chunks/{CiJSzLSf.js → SOLcVUIP.js} +1 -1
  203. package/web/app/immutable/chunks/{CZBUuakO.js → SZtG0tfF.js} +2 -2
  204. package/web/app/immutable/chunks/{D-b9zJlt.js → SwYsdc6L.js} +1 -1
  205. package/web/app/immutable/chunks/{DCPTVyDU.js → TPQ55key.js} +21 -21
  206. package/web/app/immutable/chunks/{BW4yj8m7.js → Tb27NKxS.js} +1 -1
  207. package/web/app/immutable/chunks/{D43c7AFS.js → XFUNRL9U.js} +1 -1
  208. package/web/app/immutable/chunks/{DsRw0NLx.js → Y5wgJgL5.js} +2 -2
  209. package/web/app/immutable/chunks/{BX6Kopvz.js → ZEivDyvD.js} +1 -1
  210. package/web/app/immutable/chunks/{D8NOVJ50.js → _1A-m7jq.js} +1 -1
  211. package/web/app/immutable/chunks/{Dr41JWYu.js → cHqVrdKP.js} +1 -1
  212. package/web/app/immutable/chunks/{BYevJ1Pj.js → d-ok7Yxa.js} +1 -1
  213. package/web/app/immutable/chunks/{DNFEdIdv.js → fMqAYDMd.js} +1 -1
  214. package/web/app/immutable/chunks/{DaCSSt4n.js → fO0LvqUI.js} +1 -1
  215. package/web/app/immutable/chunks/{CV9PEzoB.js → fsEhp3Sj.js} +1 -1
  216. package/web/app/immutable/chunks/{BS1nq856.js → hr4poPaj.js} +1 -1
  217. package/web/app/immutable/chunks/{DIYS_mcw.js → jnCaD4Bx.js} +1 -1
  218. package/web/app/immutable/chunks/{Cti1rV_x.js → kWExXPwX.js} +1 -1
  219. package/web/app/immutable/chunks/{BQupMMp-.js → kzAypc75.js} +1 -1
  220. package/web/app/immutable/chunks/{CLkwa_R_.js → lgBKvbLS.js} +1 -1
  221. package/web/app/immutable/chunks/nSg13blK.js +2 -0
  222. package/web/app/immutable/chunks/{BI7cYdMD.js → oHcSo1N7.js} +3 -3
  223. package/web/app/immutable/chunks/{DE0RJrWM.js → oZs6h9cF.js} +1 -1
  224. package/web/app/immutable/chunks/{D9Da4bYx.js → odoS0oyP.js} +1 -1
  225. package/web/app/immutable/chunks/{DYlSkPA-.js → qj_I7waa.js} +1 -1
  226. package/web/app/immutable/chunks/{CPS8yuKp.js → s2lvYQ3O.js} +1 -1
  227. package/web/app/immutable/chunks/{Pb7J418u.js → udwlX3ME.js} +1 -1
  228. package/web/app/immutable/chunks/{C5-HTPPK.js → voSxo36n.js} +1 -1
  229. package/web/app/immutable/chunks/{Ch8MPJbT.js → yU3kgZB6.js} +1 -1
  230. package/web/app/immutable/entry/{app.rwgCwLre.js → app.CK6wucgi.js} +3 -3
  231. package/web/app/immutable/entry/start.C0Bjrt_E.js +1 -0
  232. package/web/app/immutable/nodes/{0.CAiwn7VU.js → 0.mmgsFnA_.js} +1 -1
  233. package/web/app/immutable/nodes/{1.4C-qOEjD.js → 1.B9qwueU_.js} +1 -1
  234. package/web/app/immutable/nodes/{10.CSnI2pUC.js → 10.BBnulRNq.js} +1 -1
  235. package/web/app/immutable/nodes/{11.DeNilyai.js → 11.CIaPPQvs.js} +1 -1
  236. package/web/app/immutable/nodes/{12.ySK4H8-2.js → 12.CO3XhA4p.js} +1 -1
  237. package/web/app/immutable/nodes/{13._q8cT7vQ.js → 13.x3qcbpU-.js} +3 -3
  238. package/web/app/immutable/nodes/{14.BVMi0m8a.js → 14.Dnzj-FkG.js} +3 -3
  239. package/web/app/immutable/nodes/{15.DZYm8wgy.js → 15.CQMgeYc5.js} +1 -1
  240. package/web/app/immutable/nodes/{16.2kka0tX2.js → 16.uElio-_B.js} +2 -2
  241. package/web/app/immutable/nodes/{2.BOqim1UO.js → 2.CWwIVRNX.js} +4 -4
  242. package/web/app/immutable/nodes/{3.rvoF1b9l.js → 3.jpKSaCNS.js} +1 -1
  243. package/web/app/immutable/nodes/{4.COWGFPUE.js → 4.CWq9I9HW.js} +1 -1
  244. package/web/app/immutable/nodes/{5.ClB4PiMc.js → 5.Didp-xcw.js} +2 -2
  245. package/web/app/immutable/nodes/{6.B09HHXQ8.js → 6.BGSR4qYh.js} +1 -1
  246. package/web/app/immutable/nodes/{7.ivApEpSz.js → 7.CUn8qcxK.js} +1 -1
  247. package/web/app/immutable/nodes/{8.BSIvYD1L.js → 8.LckDhQwk.js} +12 -12
  248. package/web/app/immutable/nodes/{9.C9K9J_Xm.js → 9.DAasT3Wd.js} +5 -5
  249. package/web/app/version.json +1 -1
  250. package/web/generated/paraglide.js +49 -49
  251. package/web/index.html +18 -18
  252. package/web/app/immutable/chunks/B3iaLYr6.js +0 -1
  253. package/web/app/immutable/chunks/BLUkoS8T.js +0 -2
  254. package/web/app/immutable/chunks/CA0a6eNp.js +0 -1
  255. package/web/app/immutable/chunks/CPxyG9KJ.js +0 -271
  256. package/web/app/immutable/chunks/DHNO0898.js +0 -175
  257. package/web/app/immutable/chunks/DMkYHym4.js +0 -324
  258. package/web/app/immutable/chunks/DhLTyNrj.js +0 -1
  259. package/web/app/immutable/chunks/DsAKyTjw.js +0 -4
  260. package/web/app/immutable/chunks/DuQiXW7a.js +0 -1
  261. package/web/app/immutable/chunks/FAATYx56.js +0 -1
  262. package/web/app/immutable/chunks/ye8JXfxU.js +0 -1
  263. package/web/app/immutable/entry/start.CHX_XseY.js +0 -1
@@ -1,6 +1,6 @@
1
- var Ju=Object.defineProperty;var e1=(t,e,r)=>e in t?Ju(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r;var se=(t,e,r)=>e1(t,typeof e!="symbol"?e+"":e,r);import{cA as Gt,aS as t1,dn as Rl,Z as z0,X as va,Y as r1,W as n1,a0 as a1,aa as i1,S as s1,dP as o1,L as l1,b8 as Dl,cD as o0,dm as Nl,aR as c1,aV as u1,cl as h1,c7 as d1,di as Va,dJ as m1,dC as p1,ax as Bn,ak as f1,as as Si,dz as g1,dE as _l,dB as v1}from"./Cti1rV_x.js";import{D as Ns,bq as b1,bH as y1,aX as w1}from"./BLUkoS8T.js";import{K as k1,D as n0}from"./CBRfvExq.js";import{xJ as fn,Hp as E,n5 as ve,n4 as Se,aQ as x1,g as Ll,y as Re,bi as l0,jK as Ai,lo as gn,an as Vt,ln as _s,lx as Ls,lu as Os,jh as Ol,gg as Ka,FW as S1,sg as A1,z3 as T1,o8 as E1,ma as vn,AE as M1,iq as C1,lH as I1,li as z1}from"./h8IoI-w7.js";import{bo as ne}from"./B3iaLYr6.js";import{t as rt}from"./6Rt8MvWn.js";import{T as R1,x as xr,y as Sr}from"./CMMABWQi.js";import{a as c0}from"./BJzHxIyr.js";import{o as me,r as jt,e as u0,s as V,_ as Xe,l as h0,g as D1,n as Le,c as lr,b as He,u as N1,d as _1}from"./UyBYtOpv.js";import{j as Pl}from"./BlOn95cv.js";import{r as L1}from"./DGvAL7MJ.js";import{b as O1}from"./Dr41JWYu.js";import{i as je}from"./Ch8MPJbT.js";import{l as ba,c as P1}from"./ChTqQfQN.js";import{ax as d0}from"./CpELl9t1.js";import{i as Ps}from"./CtO7SsM-.js";import{f as Ti,x as $l,y as Bl,j as $1,v as ql,o as B1,r as q1}from"./DLueLf8l.js";const We=[];for(let t=0;t<256;++t)We.push((t+256).toString(16).slice(1));function F1(t,e=0){return(We[t[e+0]]+We[t[e+1]]+We[t[e+2]]+We[t[e+3]]+"-"+We[t[e+4]]+We[t[e+5]]+"-"+We[t[e+6]]+We[t[e+7]]+"-"+We[t[e+8]]+We[t[e+9]]+"-"+We[t[e+10]]+We[t[e+11]]+We[t[e+12]]+We[t[e+13]]+We[t[e+14]]+We[t[e+15]]).toLowerCase()}const H1=new Uint8Array(16);function U1(){return crypto.getRandomValues(H1)}function Ei(t,e,r){return crypto.randomUUID?crypto.randomUUID():W1(t)}function W1(t,e,r){t=t||{};const n=t.random??t.rng?.()??U1();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,F1(n)}function Mi(t,e){if(t.repositoryIdentity===null)return null;if(t.repositoryIdentity){const{provider:a,instanceBaseUrl:i,projectPath:s}=t.repositoryIdentity,o=Mi({...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?k1(r.replace(/\.git\/?$/,""),e):null}function m5(t,e){return t.type==="local"?t.plainFolder?"folder":"local":Mi(t,e)?.provider==="gitlab"?"gitlab":"github"}function Fl(t){const e=t.split(/[\\/]/).filter(Boolean);return e[e.length-1]??""}function p5(t){if(t.type!=="local")return{ownerPrefix:t.owner,primary:t.name};const e=Fl(t.path)||t.name,r=t.owner?`${t.owner}/${t.name}`:void 0;return{primary:e,suffix:r}}function f5(t){return t.type==="local"&&t.path?t.path:void 0}const G1=["/.clones/","/.repo-cache/"];function g5(t){const e=t.replaceAll("\\","/");return G1.some(r=>e.includes(r))}function v5(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 j1(t){return t.includes("\\")||t.includes(":")||t.startsWith("/")?void 0:/^([^/]+)\/[^/]+$/.exec(t)?.[1]}function b5(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??j1(r)}}function y5(t,e){const r=e.trim().toLowerCase();return r===""?!0:[t.name,t.path,Fl(t.path),t.owner,t.owner?`${t.owner}/${t.name}`:void 0].some(a=>a?.toLowerCase().includes(r)??!1)}const V1="known-repos",K1=6e4;function X1({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=fn(s);a.has(o)||a.set(o,s)}else{for(const s of t)a.set(fn(s),s);for(const s of e.repos)a.set(fn(s),s)}const i=[...a.values()].filter(s=>!r[fn(s)]);return n==="all"?i:i.slice(0,9)}function w5(t){const e=t.lastUsedAt?Date.parse(t.lastUsedAt):NaN;return Number.isFinite(e)?e:0}function k5({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<K1?"skip":"load"}function x5(t,e){if(t.type==="local")return t.plainFolder?{repoPath:t.path,plainFolder:!0}:{repoPath:t.path};const r=Mi(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 Y1({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(Ns)?Ns:null;return s===null||!i(s)?null:s}const S5=E.createSelector(t=>t.workspaceInitializer.hydrated),A5=E.createSelector(t=>t.workspaceInitializer.compactFormState),T5=E.createSelector(t=>t.workspaceInitializer.onboardingFormState),E5=E.createSelector(t=>t.workspaceInitializer.lastSelectedRepo),M5=E.createSelector(t=>t.workspaceInitializer.branchByRepo),C5=E.createSelector(t=>t.workspaceInitializer.defaultParentPath),I5=E.createSelector(t=>ve(t.workspaceInitializer.recentRepos)),z5=E.createSelector((t,e)=>Se(t.workspaceInitializer.recentRepoRefreshes,e)),R5=E.createSelector((t,e)=>Se(t.workspaceInitializer.directoryStatusChecks,e)),D5=E.createSelector(t=>t.workspaceInitializer.dismissedRecentRepoKeys),N5=E.createSelector(t=>ve(t.workspaceInitializer.remoteSetups)),_5=E.createSelector(t=>t.workspaceInitializer.lastSubmittedAgent),L5=E.createSelector(t=>t.workspaceInitializer.agentByRepo),O5=E.createSelector(t=>t.workspaceInitializer.recentSpecialistIds),P5=E.createSelector((t,e)=>t.workspaceInitializer.agentByRepo[e]??null),$5=E.createSelector(t=>t.workspaceInitializer.pendingGitHubPrefill),B5=E.createSelector((t,e)=>({restore:Se(t.workspaceInitializer.draftRestores,e),clear:Se(t.workspaceInitializer.draftClears,e)})),q5=E.createSelector((t,e,r)=>{const n=Se(t.workspaceInitializer.initializationOutcomes,e);return n?.resourceId===r?n:void 0}),F5=E.createSelector((t,e)=>Se(t.workspaceInitializer.initializationOutcomes,e)),H5=E.createSelector((t,e)=>Se(t.workspaceInitializer.initializationResumes,e)),U5=E.createSelector(t=>Y1({compactFormState:t.workspaceInitializer.compactFormState,lastSubmittedAgent:t.workspaceInitializer.lastSubmittedAgent,specialists:y1.select(t),orchestratorId:b1.select(t)?.id??null})),Z1=E.createSelector(t=>{const e=t.workspaceInitializer.gitCheckRequest,r=Gt.select(t);return e&&r&&t1.select(t)?JSON.stringify([r,e]):null}),W5=E.createSelector(t=>{const e=Z1.select(t),r=t.workspaceInitializer.gitCheck;return e&&r?.context===e?r.available:null}),Q1=E.createSelector(t=>{const e=Se(t.workspaceInitializer.recentRepoRefreshes,V1),r=Gt.select(t);return X1({saved:ve(t.workspaceInitializer.recentRepos),source:e&&r&&e.admission===r?e:null,dismissed:t.workspaceInitializer.dismissedRecentRepoKeys,mode:"all"})}),G5=E.createSelector(t=>Rl.select(t)?Q1.select(t):[]),j5=E.createSelector(t=>w1.select(t)||void 0),$s="workspace-debug-flags",bn={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 J1{constructor(){se(this,"flags");se(this,"listeners",new Set);this.flags=this.loadFlags()}loadFlags(){if(typeof localStorage>"u")return bn;try{const e=localStorage.getItem($s);if(e)return{...bn,...JSON.parse(e)}}catch(e){ba.error("Failed to load debug flags:",e)}return bn}saveFlags(){if(!(typeof localStorage>"u")){try{localStorage.setItem($s,JSON.stringify(this.flags))}catch(e){ba.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={...bn},this.saveFlags()}getAll(){return{...this.flags}}subscribe(e){return this.listeners.add(e),()=>this.listeners.delete(e)}toggleDebugPanel(){this.toggle("showDebugInfo"),ba.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 ya=new J1;function V5(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 eh(t){return t.charAt(0).toUpperCase()+t.slice(1)}function K5(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 X5(t,e,r,n){return e&&r?`https://github.com/${e}/${r}/pull/${t}`:n||""}function Xa(t){return t==="Open"?"open":t==="Merged"?"merged":t==="Draft"?"draft":"closed"}function Y5(t,e){return`${e}:${t.agentId??"manual"}`}function th(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 rh(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 nh(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 Z5(t,e,r,n){const a=th(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 Q5(t,e,r){const n=rh(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 J5(t,e){const r=nh(t,e);return r===1?ne.workspace_sidebarChanges_undoCommit_one():ne.workspace_sidebarChanges_undoCommit_many({count:rt(r)})}function e3(t,e){return e===0&&t.length>0}function t3(t,e,r,n){return!r||n==null?!1:t===r&&e===n}function r3(t,e,r){const n=`${e?"staged":"unstaged"}:${t}`;return r.has(n)}function n3(t,e,r){return r?.path===t&&r?.staged===e}function a3(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 i3(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 ah(t){const e=t?.match(/^https?:\/\/github\.com\/([^/]+)\/([^/]+)\/pull\/\d+/i);return e?`${e[1]}/${e[2]}`:void 0}function s3(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=ah(s.url),h=c!==void 0&&c.toLowerCase()!==a?.toLowerCase()?c:void 0;return{number:s.number,title:n(s),url:o,htmlUrl:o,status:Xa(s.status),createdAt:s.createdAt,updatedAt:s.updatedAt,isInMergeQueue:s.isDraft?void 0:s.isInMergeQueue,crossRepo:h,crossRepoDisplay:h?Ci(h,i):void 0}})}return e?[{number:e.number,title:n(e),url:r(e.number,e.url),htmlUrl:r(e.number,e.url),status:Xa(e.status),createdAt:e.createdAt,updatedAt:e.updatedAt,isInMergeQueue:e.isDraft?void 0:e.isInMergeQueue}]:[]}function o3(t){const{prNumber:e,prUrl:r}=t;return e==null||!r?null:{id:`legacy-pr-${e}`,number:e,url:r,title:"",status:t.prStatus??x1.Open,createdAt:t.updatedAt,updatedAt:t.updatedAt}}function ih(t){const e=t.lastSnapshot?.state?.toLowerCase();return e==="merged"?"merged":e==="closed"?"closed":t.lastSnapshot?.isDraft?"draft":t.state==="completed"?"closed":"open"}function wa(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=z0(i),c=o.toLowerCase(),h=a.find(m=>!!o&&m.url.toLowerCase()===c||(i.resource||i.monitorAvailability?m.monitorIdentity===va(i):!m.resource&&!m.monitorAvailability&&(s?!m.crossRepo&&m.number===i.prNumber:m.crossRepo===i.repo&&m.number===i.prNumber)));if(h){h.monitorAgentId=i.agentId,h.resource=i.resource,h.monitorAvailability=i.monitorAvailability,h.monitorIdentity=i.resource||i.monitorAvailability?va(i):void 0,h.monitorSnapshot=i.lastSnapshot??h.monitorSnapshot;continue}a.push({number:i.prNumber,title:i.title??`${i.repo}${r1(i,i.prNumber)}`,resource:i.resource,monitorAvailability:i.monitorAvailability,monitorIdentity:i.resource||i.monitorAvailability?va(i):void 0,url:o,htmlUrl:o,status:ih(i),createdAt:i.createdAt,updatedAt:i.updatedAt,monitorAgentId:i.agentId,crossRepo:s?void 0:i.repo,crossRepoDisplay:s?void 0:Ci(i.repo,n),monitorSnapshot:i.lastSnapshot,monitorOnly:!0})}return a}function Ci(t,e){return e&&t.toLowerCase().startsWith(`${e.toLowerCase()}/`)?t.slice(e.length+1):t}function l3(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=[],h=[];if(t.some(S=>S.crossRepo)){o=[];for(const S of t)S.crossRepo?s.has(S.crossRepo.toLowerCase())?c.push(S):h.push(S):o.push(S)}const m=[],g=[],v=[];for(const S of e){const C=S.repo.toLowerCase();z0(S)&&o.some(W=>W.url===z0(S))||!S.resource&&!S.monitorAvailability&&(!i||C===i)?m.push(S):z0(S)&&c.some(W=>W.url===z0(S))||!S.resource&&!S.monitorAvailability&&s.has(C)?g.push(S):v.push(S)}const w=wa(o,m,r),A=r?.split("/")[0],M=new Set([...w,...c,...h].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 Y=`${C.toLowerCase()}#${W.number}`;if(M.has(Y))continue;M.add(Y);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:Xa(W.status),createdAt:W.createdAt,updatedAt:W.updatedAt,crossRepo:T?void 0:C,crossRepoDisplay:T?void 0:Ci(C,A)})}}return{own:w,otherRoots:wa(D,g,r),otherTracked:wa(h,v,r)}}function Bs(t){return t.status!=="open"?!1:t.monitorSnapshot?t.monitorSnapshot.isInMergeQueue===!0:t.isInMergeQueue===!0}function c3(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():Bs(t)?ne.workspace_prSection_statusQueued_label():ne.workspace_prSection_statusOpen_label(),r=[n1(t)??e],n=Bs(t)?R1(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(eh(a.mergeBlockedReason))),r.join(`
2
- `)}function u3(t,e){return e.has(t??"manual")}function h3(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 Hl=500;function d3(t,e=Hl){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 m3(t,e,r=Hl){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 p3(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 sh(t){if(!t)return{};try{const e=JSON.parse(t);return e&&typeof e=="object"?e:{}}catch{return{}}}function Ya(t){return t.startsWith("@")?t.slice(1):t}function oh(t,e,r,n){const a=t.fullPath||t.path||t.filename;if(a)return Ya(String(a));const i=[r,e,n.trim()].map(Ya).filter(Boolean),s=i.find(o=>o.includes("/"))??i[0];return s?a1(s).path:void 0}function lh(t){const e=t.line??t.startLine??t.range?.start;return typeof e=="number"&&Number.isFinite(e)?e:void 0}function ch(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=sh(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=oh(i,n,r,t.textContent||"");c&&(s.filePath=c);const h=lh(i);h!==void 0&&(s.line=h)}else if(e==="folder"||e==="source-folder"){const c=i.fullPath||i.path||r||n,h=c?Ya(String(c)).replace(/\/+$/,""):"";h&&(s.folderPath=h)}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 f3(t){return{sidebarTabId:"files",type:"file",filePath:`${t}/`}}function Ii(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}var Lr=Ii();function Ul(t){Lr=t}var Ir={exec:()=>null};function Kr(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(Ke.caret,"$1"),r=r.replace(a,s),n},getRegex:()=>new RegExp(r,e)};return n}var uh=((t="")=>{try{return!!new RegExp("(?<=1)(?<!1)"+t)}catch{return!1}})(),Ke={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:Kr(t=>new RegExp(`^ {0,${t}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`)),hrRegex:Kr(t=>new RegExp(`^ {0,${t}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`)),fencesBeginRegex:Kr(t=>new RegExp(`^ {0,${t}}(?:\`\`\`|~~~)`)),headingBeginRegex:Kr(t=>new RegExp(`^ {0,${t}}#`)),htmlBeginRegex:Kr(t=>new RegExp(`^ {0,${t}}<(?:[a-z].*>|!--)`,"i")),blockquoteBeginRegex:Kr(t=>new RegExp(`^ {0,${t}}>`))},hh=/^(?:[ \t]*(?:\n|$))+/,dh=/^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/,mh=/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,U0=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,ph=/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,zi=/ {0,3}(?:[*+-]|\d{1,9}[.)])/,Wl=/^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/,Gl=ce(Wl).replace(/bull/g,zi).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(),fh=ce(Wl).replace(/bull/g,zi).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(),Ri=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table|[ \t]+\n)[^\n]+)*)/,gh=/^[^\n]+/,Di=/(?!\s*\])(?:\\[\s\S]|[^\[\]\\])+/,vh=ce(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label",Di).replace("title",/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),bh=ce(/^(bull)([ \t][^\n]*?)?(?:\n|$)/).replace(/bull/g,zi).getRegex(),qn="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",Ni=/<!--(?:-?>|[\s\S]*?(?:-->|$))/,yh=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",Ni).replace("tag",qn).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),jl=t=>ce(Ri).replace("hr",U0).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",qn).getRegex(),wh=jl(/ {0,3}(?:[*+-]|1[.)])[ \t]+[^ \t\n]/),kh=jl(/ {0,3}(?:[*+-]|\d{1,9}[.)])(?:[ \t]|\n|$)/),xh=ce(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph",kh).getRegex(),_i={blockquote:xh,code:dh,def:vh,fences:mh,heading:ph,hr:U0,html:yh,lheading:Gl,list:bh,newline:hh,paragraph:wh,table:Ir,text:gh},qs=ce("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr",U0).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",qn).getRegex(),Sh={..._i,lheading:fh,table:qs,paragraph:ce(Ri).replace("hr",U0).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("table",qs).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",qn).getRegex()},Ah={..._i,html:ce(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",Ni).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(Ri).replace("hr",U0).replace("heading",` *#{1,6} *[^
3
- ]`).replace("lheading",Gl).replace("|table","").replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").replace("|tag","").getRegex()},Th=/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,Eh=/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,Vl=/^( {2,}|\\)\n(?!\s*$)/,Mh=/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,Kt=/[\p{P}\p{S}]/u,m0=/[\s\p{P}\p{S}]/u,W0=/[^\s\p{P}\p{S}]/u,Ch=ce(/^((?![*_])punctSpace)/,"u").replace(/punctSpace/g,m0).getRegex(),Ih=/[\p{Pi}\p{Ps}"']/u,Kl=/(?!~)[\p{P}\p{S}]/u,zh=/(?!~)[\s\p{P}\p{S}]/u,Rh=/(?:[^\s\p{P}\p{S}]|~)/u,Dh=ce(/link|precode-code|html/,"g").replace("link",/\[(?:[^\[\]`]|(?<a>`+)[^`]+\k<a>(?!`))*?\]\((?:\\[\s\S]|[^\\\(\)]|\((?:\\[\s\S]|[^\\\(\)])*\))*\)/).replace("precode-",uh?"(?<!`)()":"(^^|[^`])").replace("code",/(?<b>`+)[^`]+\k<b>(?!`)/).replace("html",/<(?! )[^<>]*?>/).getRegex(),Xl=/^(?:\*+(?:((?!\*)punct)|([^\s*]))?)|^_+(?:((?!_)punct)|([^\s_]))?/,Nh=ce(Xl,"u").replace(/punct/g,Kt).getRegex(),_h=ce(Xl,"u").replace(/punct/g,Kl).getRegex(),Lh=/^(?:\*+(?:((?!\*)(?!openQuote)punct)|([^\s*]))?)|^_+(?:((?!_)(?!openQuote)punct)|([^\s_]))?/,Oh=ce(Lh,"u").replace(/openQuote/g,Ih).replace(/punct/g,Kt).getRegex(),Yl="^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)",Ph=ce(Yl,"gu").replace(/notPunctSpace/g,W0).replace(/punctSpace/g,m0).replace(/punct/g,Kt).getRegex(),$h=ce(Yl,"gu").replace(/notPunctSpace/g,Rh).replace(/punctSpace/g,zh).replace(/punct/g,Kl).getRegex(),Bh="^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)[\\s](\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|(?:(?!\\*)punct|notPunctSpace)(\\*+)(?!\\*)(?=notPunctSpace)",qh=ce(Bh,"gu").replace(/notPunctSpace/g,W0).replace(/punctSpace/g,m0).replace(/punct/g,Kt).getRegex(),Fh=ce("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)","gu").replace(/notPunctSpace/g,W0).replace(/punctSpace/g,m0).replace(/punct/g,Kt).getRegex(),Hh="^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)[\\s](_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)|(?:(?!_)punct|notPunctSpace)(_+)(?!_)(?=notPunctSpace)",Uh=ce(Hh,"gu").replace(/notPunctSpace/g,W0).replace(/punctSpace/g,m0).replace(/punct/g,Kt).getRegex(),Wh=ce(/^~~?(?:((?!~)punct)|[^\s~])/,"u").replace(/punct/g,Kt).getRegex(),Gh="^[^~]+(?=[^~])|(?!~)punct(~~?)(?=[\\s]|$)|notPunctSpace(~~?)(?!~)(?=punctSpace|$)|(?!~)punctSpace(~~?)(?=notPunctSpace)|[\\s](~~?)(?!~)(?=punct)|(?!~)punct(~~?)(?!~)(?=punct)|notPunctSpace(~~?)(?=notPunctSpace)",jh=ce(Gh,"gu").replace(/notPunctSpace/g,W0).replace(/punctSpace/g,m0).replace(/punct/g,Kt).getRegex(),Vh=ce(/\\(punct)/,"gu").replace(/punct/g,Kt).getRegex(),Kh=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(),Xh=ce(Ni).replace("(?:-->|$)","-->").getRegex(),Yh=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",Xh).replace("attribute",/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(),Nn=/(?:\[(?:\\[\s\S]|[^\[\]\\])*\]|\\[\s\S]|`+(?!`)[^`]*?`+(?!`)|``+(?=\])|[^\[\]\\`])*?/,Zh=ce(/^!?\[(label)\]\(\s*(href)(?:(?:[ \t]+(?:\n[ \t]*)?|\n[ \t]*)(title))?\s*\)/).replace("label",Nn).replace("href",/<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]+|(?=\))/).replace("title",/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(),Zl=ce(/^!?\[(label)\]\[(ref)\]/).replace("label",Nn).replace("ref",Di).getRegex(),Ql=ce(/^!?\[(ref)\](?:\[\])?/).replace("ref",Di).getRegex(),Qh=ce("reflink|nolink(?!\\()","g").replace("reflink",Zl).replace("nolink",Ql).getRegex(),Fs=/[hH][tT][tT][pP][sS]?|[fF][tT][pP]/,Li={_backpedal:Ir,anyPunctuation:Vh,autolink:Kh,blockSkip:Dh,br:Vl,code:Eh,del:Ir,delLDelim:Ir,delRDelim:Ir,emStrongLDelim:Nh,emStrongRDelimAst:Ph,emStrongRDelimUnd:Fh,escape:Th,link:Zh,nolink:Ql,punctuation:Ch,reflink:Zl,reflinkSearch:Qh,tag:Yh,text:Mh,url:Ir},Jh={...Li,emStrongLDelim:Oh,emStrongRDelimAst:qh,emStrongRDelimUnd:Uh,link:ce(/^!?\[(label)\]\((.*?)\)/).replace("label",Nn).getRegex(),reflink:ce(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",Nn).getRegex()},Za={...Li,emStrongRDelimAst:$h,emStrongLDelim:_h,delLDelim:Wh,delRDelim:jh,url:ce(/^((?:protocol):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/).replace("protocol",Fs).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",Fs).getRegex()},ed={...Za,br:ce(Vl).replace("{2,}","*").getRegex(),text:ce(Za.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()},yn={normal:_i,gfm:Sh,pedantic:Ah},x0={normal:Li,gfm:Za,breaks:ed,pedantic:Jh},td={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},Hs=t=>td[t];function Dt(t,e){if(e){if(Ke.escapeTest.test(t))return t.replace(Ke.escapeReplace,Hs)}else if(Ke.escapeTestNoEncode.test(t))return t.replace(Ke.escapeReplaceNoEncode,Hs);return t}function Us(t){try{t=encodeURI(t).replace(Ke.percentDecode,"%")}catch{return null}return t}function Ws(t,e){let r=t.replace(Ke.findPipe,(i,s,o)=>{let c=!1,h=s;for(;--h>=0&&o[h]==="\\";)c=!c;return c?"|":" |"}),n=r.split(Ke.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(Ke.slashPipe,"|");return n}function rr(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 Gs(t){let e=t.split(`
1
+ var Ju=Object.defineProperty;var e1=(t,e,r)=>e in t?Ju(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r;var se=(t,e,r)=>e1(t,typeof e!="symbol"?e+"":e,r);import{cA as Gt,aS as t1,dn as Rl,Z as z0,X as va,Y as r1,W as n1,a0 as a1,aa as i1,S as s1,dP as o1,L as l1,b8 as Dl,cD as o0,dm as Nl,aR as c1,aV as u1,cl as h1,c7 as d1,di as Va,dJ as m1,dC as p1,ax as Bn,ak as f1,as as Si,dz as g1,dE as _l,dB as v1}from"./kWExXPwX.js";import{D as Ns,bs as b1,bJ as y1,aY as w1}from"./nSg13blK.js";import{K as k1,D as n0}from"./BqUqwkFB.js";import{xJ as fn,Hp as E,n5 as ve,n4 as Se,aQ as x1,g as Ll,y as Re,bi as l0,jK as Ai,lo as gn,an as Vt,ln as _s,lx as Ls,lu as Os,jh as Ol,gg as Ka,FW as S1,sg as A1,z3 as T1,o8 as E1,ma as vn,AE as M1,iq as C1,lH as I1,li as z1}from"./DzNB7FSW.js";import{bo as ne}from"./E2zwcBGL.js";import{t as rt}from"./Cvz2UPkQ.js";import{T as R1,x as xr,y as Sr}from"./BiLRO_7d.js";import{a as c0}from"./BJzHxIyr.js";import{o as me,r as jt,e as u0,s as V,_ as Ye,l as h0,g as D1,n as Le,c as lr,b as He,u as N1,d as _1}from"./UyBYtOpv.js";import{j as Pl}from"./BlOn95cv.js";import{r as L1}from"./BuNSu9iM.js";import{b as O1}from"./cHqVrdKP.js";import{i as je}from"./yU3kgZB6.js";import{l as ba,c as P1}from"./ChTqQfQN.js";import{ax as d0}from"./AXIAXE42.js";import{i as Ps}from"./BEZid-wN.js";import{f as Ti,x as $l,y as Bl,j as $1,v as ql,o as B1,r as q1}from"./DBctQLOE.js";const We=[];for(let t=0;t<256;++t)We.push((t+256).toString(16).slice(1));function F1(t,e=0){return(We[t[e+0]]+We[t[e+1]]+We[t[e+2]]+We[t[e+3]]+"-"+We[t[e+4]]+We[t[e+5]]+"-"+We[t[e+6]]+We[t[e+7]]+"-"+We[t[e+8]]+We[t[e+9]]+"-"+We[t[e+10]]+We[t[e+11]]+We[t[e+12]]+We[t[e+13]]+We[t[e+14]]+We[t[e+15]]).toLowerCase()}const H1=new Uint8Array(16);function U1(){return crypto.getRandomValues(H1)}function Ei(t,e,r){return crypto.randomUUID?crypto.randomUUID():W1(t)}function W1(t,e,r){t=t||{};const n=t.random??t.rng?.()??U1();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,F1(n)}function Mi(t,e){if(t.repositoryIdentity===null)return null;if(t.repositoryIdentity){const{provider:a,instanceBaseUrl:i,projectPath:s}=t.repositoryIdentity,o=Mi({...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?k1(r.replace(/\.git\/?$/,""),e):null}function m5(t,e){return t.type==="local"?t.plainFolder?"folder":"local":Mi(t,e)?.provider==="gitlab"?"gitlab":"github"}function Fl(t){const e=t.split(/[\\/]/).filter(Boolean);return e[e.length-1]??""}function p5(t){if(t.type!=="local")return{ownerPrefix:t.owner,primary:t.name};const e=Fl(t.path)||t.name,r=t.owner?`${t.owner}/${t.name}`:void 0;return{primary:e,suffix:r}}function f5(t){return t.type==="local"&&t.path?t.path:void 0}const G1=["/.clones/","/.repo-cache/"];function g5(t){const e=t.replaceAll("\\","/");return G1.some(r=>e.includes(r))}function v5(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 j1(t){return t.includes("\\")||t.includes(":")||t.startsWith("/")?void 0:/^([^/]+)\/[^/]+$/.exec(t)?.[1]}function b5(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??j1(r)}}function y5(t,e){const r=e.trim().toLowerCase();return r===""?!0:[t.name,t.path,Fl(t.path),t.owner,t.owner?`${t.owner}/${t.name}`:void 0].some(a=>a?.toLowerCase().includes(r)??!1)}const V1="known-repos",K1=6e4;function Y1({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=fn(s);a.has(o)||a.set(o,s)}else{for(const s of t)a.set(fn(s),s);for(const s of e.repos)a.set(fn(s),s)}const i=[...a.values()].filter(s=>!r[fn(s)]);return n==="all"?i:i.slice(0,9)}function w5(t){const e=t.lastUsedAt?Date.parse(t.lastUsedAt):NaN;return Number.isFinite(e)?e:0}function k5({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<K1?"skip":"load"}function x5(t,e){if(t.type==="local")return t.plainFolder?{repoPath:t.path,plainFolder:!0}:{repoPath:t.path};const r=Mi(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 X1({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(Ns)?Ns:null;return s===null||!i(s)?null:s}const S5=E.createSelector(t=>t.workspaceInitializer.hydrated),A5=E.createSelector(t=>t.workspaceInitializer.compactFormState),T5=E.createSelector(t=>t.workspaceInitializer.onboardingFormState),E5=E.createSelector(t=>t.workspaceInitializer.lastSelectedRepo),M5=E.createSelector(t=>t.workspaceInitializer.branchByRepo),C5=E.createSelector(t=>t.workspaceInitializer.defaultParentPath),I5=E.createSelector(t=>ve(t.workspaceInitializer.recentRepos)),z5=E.createSelector((t,e)=>Se(t.workspaceInitializer.recentRepoRefreshes,e)),R5=E.createSelector((t,e)=>Se(t.workspaceInitializer.directoryStatusChecks,e)),D5=E.createSelector(t=>t.workspaceInitializer.dismissedRecentRepoKeys),N5=E.createSelector(t=>ve(t.workspaceInitializer.remoteSetups)),_5=E.createSelector(t=>t.workspaceInitializer.lastSubmittedAgent),L5=E.createSelector(t=>t.workspaceInitializer.agentByRepo),O5=E.createSelector(t=>t.workspaceInitializer.recentSpecialistIds),P5=E.createSelector((t,e)=>t.workspaceInitializer.agentByRepo[e]??null),$5=E.createSelector(t=>t.workspaceInitializer.pendingGitHubPrefill),B5=E.createSelector((t,e)=>({restore:Se(t.workspaceInitializer.draftRestores,e),clear:Se(t.workspaceInitializer.draftClears,e)})),q5=E.createSelector((t,e,r)=>{const n=Se(t.workspaceInitializer.initializationOutcomes,e);return n?.resourceId===r?n:void 0}),F5=E.createSelector((t,e)=>Se(t.workspaceInitializer.initializationOutcomes,e)),H5=E.createSelector((t,e)=>Se(t.workspaceInitializer.initializationResumes,e)),U5=E.createSelector(t=>X1({compactFormState:t.workspaceInitializer.compactFormState,lastSubmittedAgent:t.workspaceInitializer.lastSubmittedAgent,specialists:y1.select(t),orchestratorId:b1.select(t)?.id??null})),Z1=E.createSelector(t=>{const e=t.workspaceInitializer.gitCheckRequest,r=Gt.select(t);return e&&r&&t1.select(t)?JSON.stringify([r,e]):null}),W5=E.createSelector(t=>{const e=Z1.select(t),r=t.workspaceInitializer.gitCheck;return e&&r?.context===e?r.available:null}),Q1=E.createSelector(t=>{const e=Se(t.workspaceInitializer.recentRepoRefreshes,V1),r=Gt.select(t);return Y1({saved:ve(t.workspaceInitializer.recentRepos),source:e&&r&&e.admission===r?e:null,dismissed:t.workspaceInitializer.dismissedRecentRepoKeys,mode:"all"})}),G5=E.createSelector(t=>Rl.select(t)?Q1.select(t):[]),j5=E.createSelector(t=>w1.select(t)||void 0),$s="workspace-debug-flags",bn={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 J1{constructor(){se(this,"flags");se(this,"listeners",new Set);this.flags=this.loadFlags()}loadFlags(){if(typeof localStorage>"u")return bn;try{const e=localStorage.getItem($s);if(e)return{...bn,...JSON.parse(e)}}catch(e){ba.error("Failed to load debug flags:",e)}return bn}saveFlags(){if(!(typeof localStorage>"u")){try{localStorage.setItem($s,JSON.stringify(this.flags))}catch(e){ba.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={...bn},this.saveFlags()}getAll(){return{...this.flags}}subscribe(e){return this.listeners.add(e),()=>this.listeners.delete(e)}toggleDebugPanel(){this.toggle("showDebugInfo"),ba.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 ya=new J1;function V5(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 eh(t){return t.charAt(0).toUpperCase()+t.slice(1)}function K5(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 Y5(t,e,r,n){return e&&r?`https://github.com/${e}/${r}/pull/${t}`:n||""}function Ya(t){return t==="Open"?"open":t==="Merged"?"merged":t==="Draft"?"draft":"closed"}function X5(t,e){return`${e}:${t.agentId??"manual"}`}function th(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 rh(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 nh(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 Z5(t,e,r,n){const a=th(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 Q5(t,e,r){const n=rh(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 J5(t,e){const r=nh(t,e);return r===1?ne.workspace_sidebarChanges_undoCommit_one():ne.workspace_sidebarChanges_undoCommit_many({count:rt(r)})}function e3(t,e){return e===0&&t.length>0}function t3(t,e,r,n){return!r||n==null?!1:t===r&&e===n}function r3(t,e,r){const n=`${e?"staged":"unstaged"}:${t}`;return r.has(n)}function n3(t,e,r){return r?.path===t&&r?.staged===e}function a3(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 i3(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 ah(t){const e=t?.match(/^https?:\/\/github\.com\/([^/]+)\/([^/]+)\/pull\/\d+/i);return e?`${e[1]}/${e[2]}`:void 0}function s3(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=ah(s.url),h=c!==void 0&&c.toLowerCase()!==a?.toLowerCase()?c:void 0;return{number:s.number,title:n(s),url:o,htmlUrl:o,status:Ya(s.status),createdAt:s.createdAt,updatedAt:s.updatedAt,isInMergeQueue:s.isDraft?void 0:s.isInMergeQueue,crossRepo:h,crossRepoDisplay:h?Ci(h,i):void 0}})}return e?[{number:e.number,title:n(e),url:r(e.number,e.url),htmlUrl:r(e.number,e.url),status:Ya(e.status),createdAt:e.createdAt,updatedAt:e.updatedAt,isInMergeQueue:e.isDraft?void 0:e.isInMergeQueue}]:[]}function o3(t){const{prNumber:e,prUrl:r}=t;return e==null||!r?null:{id:`legacy-pr-${e}`,number:e,url:r,title:"",status:t.prStatus??x1.Open,createdAt:t.updatedAt,updatedAt:t.updatedAt}}function ih(t){const e=t.lastSnapshot?.state?.toLowerCase();return e==="merged"?"merged":e==="closed"?"closed":t.lastSnapshot?.isDraft?"draft":t.state==="completed"?"closed":"open"}function wa(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=z0(i),c=o.toLowerCase(),h=a.find(m=>!!o&&m.url.toLowerCase()===c||(i.resource||i.monitorAvailability?m.monitorIdentity===va(i):!m.resource&&!m.monitorAvailability&&(s?!m.crossRepo&&m.number===i.prNumber:m.crossRepo===i.repo&&m.number===i.prNumber)));if(h){h.monitorAgentId=i.agentId,h.resource=i.resource,h.monitorAvailability=i.monitorAvailability,h.monitorIdentity=i.resource||i.monitorAvailability?va(i):void 0,h.monitorSnapshot=i.lastSnapshot??h.monitorSnapshot;continue}a.push({number:i.prNumber,title:i.title??`${i.repo}${r1(i,i.prNumber)}`,resource:i.resource,monitorAvailability:i.monitorAvailability,monitorIdentity:i.resource||i.monitorAvailability?va(i):void 0,url:o,htmlUrl:o,status:ih(i),createdAt:i.createdAt,updatedAt:i.updatedAt,monitorAgentId:i.agentId,crossRepo:s?void 0:i.repo,crossRepoDisplay:s?void 0:Ci(i.repo,n),monitorSnapshot:i.lastSnapshot,monitorOnly:!0})}return a}function Ci(t,e){return e&&t.toLowerCase().startsWith(`${e.toLowerCase()}/`)?t.slice(e.length+1):t}function l3(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=[],h=[];if(t.some(S=>S.crossRepo)){o=[];for(const S of t)S.crossRepo?s.has(S.crossRepo.toLowerCase())?c.push(S):h.push(S):o.push(S)}const m=[],g=[],v=[];for(const S of e){const C=S.repo.toLowerCase();z0(S)&&o.some(W=>W.url===z0(S))||!S.resource&&!S.monitorAvailability&&(!i||C===i)?m.push(S):z0(S)&&c.some(W=>W.url===z0(S))||!S.resource&&!S.monitorAvailability&&s.has(C)?g.push(S):v.push(S)}const w=wa(o,m,r),A=r?.split("/")[0],M=new Set([...w,...c,...h].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 X=`${C.toLowerCase()}#${W.number}`;if(M.has(X))continue;M.add(X);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:Ya(W.status),createdAt:W.createdAt,updatedAt:W.updatedAt,crossRepo:T?void 0:C,crossRepoDisplay:T?void 0:Ci(C,A)})}}return{own:w,otherRoots:wa(D,g,r),otherTracked:wa(h,v,r)}}function Bs(t){return t.status!=="open"?!1:t.monitorSnapshot?t.monitorSnapshot.isInMergeQueue===!0:t.isInMergeQueue===!0}function c3(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():Bs(t)?ne.workspace_prSection_statusQueued_label():ne.workspace_prSection_statusOpen_label(),r=[n1(t)??e],n=Bs(t)?R1(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(eh(a.mergeBlockedReason))),r.join(`
2
+ `)}function u3(t,e){return e.has(t??"manual")}function h3(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 Hl=500;function d3(t,e=Hl){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 m3(t,e,r=Hl){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 p3(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 sh(t){if(!t)return{};try{const e=JSON.parse(t);return e&&typeof e=="object"?e:{}}catch{return{}}}function Xa(t){return t.startsWith("@")?t.slice(1):t}function oh(t,e,r,n){const a=t.fullPath||t.path||t.filename;if(a)return Xa(String(a));const i=[r,e,n.trim()].map(Xa).filter(Boolean),s=i.find(o=>o.includes("/"))??i[0];return s?a1(s).path:void 0}function lh(t){const e=t.line??t.startLine??t.range?.start;return typeof e=="number"&&Number.isFinite(e)?e:void 0}function ch(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=sh(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=oh(i,n,r,t.textContent||"");c&&(s.filePath=c);const h=lh(i);h!==void 0&&(s.line=h)}else if(e==="folder"||e==="source-folder"){const c=i.fullPath||i.path||r||n,h=c?Xa(String(c)).replace(/\/+$/,""):"";h&&(s.folderPath=h)}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 f3(t){return{sidebarTabId:"files",type:"file",filePath:`${t}/`}}function Ii(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}var Lr=Ii();function Ul(t){Lr=t}var Ir={exec:()=>null};function Kr(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(Ke.caret,"$1"),r=r.replace(a,s),n},getRegex:()=>new RegExp(r,e)};return n}var uh=((t="")=>{try{return!!new RegExp("(?<=1)(?<!1)"+t)}catch{return!1}})(),Ke={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:Kr(t=>new RegExp(`^ {0,${t}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`)),hrRegex:Kr(t=>new RegExp(`^ {0,${t}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`)),fencesBeginRegex:Kr(t=>new RegExp(`^ {0,${t}}(?:\`\`\`|~~~)`)),headingBeginRegex:Kr(t=>new RegExp(`^ {0,${t}}#`)),htmlBeginRegex:Kr(t=>new RegExp(`^ {0,${t}}<(?:[a-z].*>|!--)`,"i")),blockquoteBeginRegex:Kr(t=>new RegExp(`^ {0,${t}}>`))},hh=/^(?:[ \t]*(?:\n|$))+/,dh=/^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/,mh=/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,U0=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,ph=/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,zi=/ {0,3}(?:[*+-]|\d{1,9}[.)])/,Wl=/^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/,Gl=ce(Wl).replace(/bull/g,zi).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(),fh=ce(Wl).replace(/bull/g,zi).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(),Ri=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table|[ \t]+\n)[^\n]+)*)/,gh=/^[^\n]+/,Di=/(?!\s*\])(?:\\[\s\S]|[^\[\]\\])+/,vh=ce(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label",Di).replace("title",/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),bh=ce(/^(bull)([ \t][^\n]*?)?(?:\n|$)/).replace(/bull/g,zi).getRegex(),qn="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",Ni=/<!--(?:-?>|[\s\S]*?(?:-->|$))/,yh=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",Ni).replace("tag",qn).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),jl=t=>ce(Ri).replace("hr",U0).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",qn).getRegex(),wh=jl(/ {0,3}(?:[*+-]|1[.)])[ \t]+[^ \t\n]/),kh=jl(/ {0,3}(?:[*+-]|\d{1,9}[.)])(?:[ \t]|\n|$)/),xh=ce(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph",kh).getRegex(),_i={blockquote:xh,code:dh,def:vh,fences:mh,heading:ph,hr:U0,html:yh,lheading:Gl,list:bh,newline:hh,paragraph:wh,table:Ir,text:gh},qs=ce("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr",U0).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",qn).getRegex(),Sh={..._i,lheading:fh,table:qs,paragraph:ce(Ri).replace("hr",U0).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("table",qs).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",qn).getRegex()},Ah={..._i,html:ce(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",Ni).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(Ri).replace("hr",U0).replace("heading",` *#{1,6} *[^
3
+ ]`).replace("lheading",Gl).replace("|table","").replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").replace("|tag","").getRegex()},Th=/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,Eh=/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,Vl=/^( {2,}|\\)\n(?!\s*$)/,Mh=/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,Kt=/[\p{P}\p{S}]/u,m0=/[\s\p{P}\p{S}]/u,W0=/[^\s\p{P}\p{S}]/u,Ch=ce(/^((?![*_])punctSpace)/,"u").replace(/punctSpace/g,m0).getRegex(),Ih=/[\p{Pi}\p{Ps}"']/u,Kl=/(?!~)[\p{P}\p{S}]/u,zh=/(?!~)[\s\p{P}\p{S}]/u,Rh=/(?:[^\s\p{P}\p{S}]|~)/u,Dh=ce(/link|precode-code|html/,"g").replace("link",/\[(?:[^\[\]`]|(?<a>`+)[^`]+\k<a>(?!`))*?\]\((?:\\[\s\S]|[^\\\(\)]|\((?:\\[\s\S]|[^\\\(\)])*\))*\)/).replace("precode-",uh?"(?<!`)()":"(^^|[^`])").replace("code",/(?<b>`+)[^`]+\k<b>(?!`)/).replace("html",/<(?! )[^<>]*?>/).getRegex(),Yl=/^(?:\*+(?:((?!\*)punct)|([^\s*]))?)|^_+(?:((?!_)punct)|([^\s_]))?/,Nh=ce(Yl,"u").replace(/punct/g,Kt).getRegex(),_h=ce(Yl,"u").replace(/punct/g,Kl).getRegex(),Lh=/^(?:\*+(?:((?!\*)(?!openQuote)punct)|([^\s*]))?)|^_+(?:((?!_)(?!openQuote)punct)|([^\s_]))?/,Oh=ce(Lh,"u").replace(/openQuote/g,Ih).replace(/punct/g,Kt).getRegex(),Xl="^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)",Ph=ce(Xl,"gu").replace(/notPunctSpace/g,W0).replace(/punctSpace/g,m0).replace(/punct/g,Kt).getRegex(),$h=ce(Xl,"gu").replace(/notPunctSpace/g,Rh).replace(/punctSpace/g,zh).replace(/punct/g,Kl).getRegex(),Bh="^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)[\\s](\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|(?:(?!\\*)punct|notPunctSpace)(\\*+)(?!\\*)(?=notPunctSpace)",qh=ce(Bh,"gu").replace(/notPunctSpace/g,W0).replace(/punctSpace/g,m0).replace(/punct/g,Kt).getRegex(),Fh=ce("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)","gu").replace(/notPunctSpace/g,W0).replace(/punctSpace/g,m0).replace(/punct/g,Kt).getRegex(),Hh="^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)[\\s](_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)|(?:(?!_)punct|notPunctSpace)(_+)(?!_)(?=notPunctSpace)",Uh=ce(Hh,"gu").replace(/notPunctSpace/g,W0).replace(/punctSpace/g,m0).replace(/punct/g,Kt).getRegex(),Wh=ce(/^~~?(?:((?!~)punct)|[^\s~])/,"u").replace(/punct/g,Kt).getRegex(),Gh="^[^~]+(?=[^~])|(?!~)punct(~~?)(?=[\\s]|$)|notPunctSpace(~~?)(?!~)(?=punctSpace|$)|(?!~)punctSpace(~~?)(?=notPunctSpace)|[\\s](~~?)(?!~)(?=punct)|(?!~)punct(~~?)(?!~)(?=punct)|notPunctSpace(~~?)(?=notPunctSpace)",jh=ce(Gh,"gu").replace(/notPunctSpace/g,W0).replace(/punctSpace/g,m0).replace(/punct/g,Kt).getRegex(),Vh=ce(/\\(punct)/,"gu").replace(/punct/g,Kt).getRegex(),Kh=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(),Yh=ce(Ni).replace("(?:-->|$)","-->").getRegex(),Xh=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",Yh).replace("attribute",/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(),Nn=/(?:\[(?:\\[\s\S]|[^\[\]\\])*\]|\\[\s\S]|`+(?!`)[^`]*?`+(?!`)|``+(?=\])|[^\[\]\\`])*?/,Zh=ce(/^!?\[(label)\]\(\s*(href)(?:(?:[ \t]+(?:\n[ \t]*)?|\n[ \t]*)(title))?\s*\)/).replace("label",Nn).replace("href",/<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]+|(?=\))/).replace("title",/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(),Zl=ce(/^!?\[(label)\]\[(ref)\]/).replace("label",Nn).replace("ref",Di).getRegex(),Ql=ce(/^!?\[(ref)\](?:\[\])?/).replace("ref",Di).getRegex(),Qh=ce("reflink|nolink(?!\\()","g").replace("reflink",Zl).replace("nolink",Ql).getRegex(),Fs=/[hH][tT][tT][pP][sS]?|[fF][tT][pP]/,Li={_backpedal:Ir,anyPunctuation:Vh,autolink:Kh,blockSkip:Dh,br:Vl,code:Eh,del:Ir,delLDelim:Ir,delRDelim:Ir,emStrongLDelim:Nh,emStrongRDelimAst:Ph,emStrongRDelimUnd:Fh,escape:Th,link:Zh,nolink:Ql,punctuation:Ch,reflink:Zl,reflinkSearch:Qh,tag:Xh,text:Mh,url:Ir},Jh={...Li,emStrongLDelim:Oh,emStrongRDelimAst:qh,emStrongRDelimUnd:Uh,link:ce(/^!?\[(label)\]\((.*?)\)/).replace("label",Nn).getRegex(),reflink:ce(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",Nn).getRegex()},Za={...Li,emStrongRDelimAst:$h,emStrongLDelim:_h,delLDelim:Wh,delRDelim:jh,url:ce(/^((?:protocol):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/).replace("protocol",Fs).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",Fs).getRegex()},ed={...Za,br:ce(Vl).replace("{2,}","*").getRegex(),text:ce(Za.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()},yn={normal:_i,gfm:Sh,pedantic:Ah},x0={normal:Li,gfm:Za,breaks:ed,pedantic:Jh},td={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},Hs=t=>td[t];function Dt(t,e){if(e){if(Ke.escapeTest.test(t))return t.replace(Ke.escapeReplace,Hs)}else if(Ke.escapeTestNoEncode.test(t))return t.replace(Ke.escapeReplaceNoEncode,Hs);return t}function Us(t){try{t=encodeURI(t).replace(Ke.percentDecode,"%")}catch{return null}return t}function Ws(t,e){let r=t.replace(Ke.findPipe,(i,s,o)=>{let c=!1,h=s;for(;--h>=0&&o[h]==="\\";)c=!c;return c?"|":" |"}),n=r.split(Ke.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(Ke.slashPipe,"|");return n}function rr(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 Gs(t){let e=t.split(`
4
4
  `),r=e.length-1;for(;r>=0&&Ke.blankLine.test(e[r]);)r--;return e.length-r<=2?t:e.slice(0,r+1).join(`
5
5
  `)}function rd(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 nd(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 js(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 h=n.state.linkEmitted,m=n.state.inRawBlock;n.state.linkEmitted=!1;let g=n.inlineTokens(o),v=n.state.linkEmitted;if(n.state.linkEmitted=h,n.state.inLink=!1,!c){if(v){n.state.inRawBlock=m;return}n.state.linkEmitted=!0}return{type:c?"image":"link",raw:r,href:i,title:s,text:o,tokens:g}}function ad(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(`
@@ -21,11 +21,11 @@ ${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,h="",m="";if(!(e=i.exec(t))||this.rules.block.hr.test(t))break;h=e[0],t=t.substring(h.length);let g=nd(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,m=g.trimStart()):w?A=e[1].length+1:(A=g.search(this.rules.other.nonSpaceChar),A=A>4?1:A,m=g.slice(A),A+=e[1].length),w&&this.rules.other.blankLine.test(v)&&(h+=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),Y=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)||Y.test(v)||M.test(v)||D.test(v))break;if(T.search(this.rules.other.nonSpaceChar)>=A||!v.trim())m+=`
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),X=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)||X.test(v)||M.test(v)||D.test(v))break;if(T.search(this.rules.other.nonSpaceChar)>=A||!v.trim())m+=`
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;m+=`
27
- `+v}w=!v.trim(),h+=X+`
28
- `,t=t.substring(X.length+1),g=T.slice(A)}}a.loose||(s?a.loose=!0:this.rules.other.doubleBlankLine.test(h)&&(s=!0)),a.items.push({type:"list_item",raw:h,task:!!this.options.gfm&&this.rules.other.listIsTask.test(m),loose:!1,text:m,tokens:[]}),a.raw+=h}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 h=c.tokens.filter(g=>g.type==="space"),m=h.length>0&&h.some(g=>this.rules.other.anyLine.test(g.raw));a.loose=m}for(let c of a.items){let h=c.tokens[0];if(c.task&&(h?.type==="text"||h?.type==="paragraph")){c.text=c.text.replace(this.rules.other.listReplaceTask,""),h.raw=h.raw.replace(this.rules.other.listReplaceTask,""),h.text=h.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 m=this.rules.other.listTaskCheckbox.exec(c.raw);if(m){let g={type:"checkbox",raw:m[0]+" ",checked:m[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 h of c.tokens)h.type==="text"&&(h.type="paragraph")}return a}}html(t){let e=this.rules.block.html.exec(t);if(e){let r=Gs(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:rr(e[0],`
27
+ `+v}w=!v.trim(),h+=Y+`
28
+ `,t=t.substring(Y.length+1),g=T.slice(A)}}a.loose||(s?a.loose=!0:this.rules.other.doubleBlankLine.test(h)&&(s=!0)),a.items.push({type:"list_item",raw:h,task:!!this.options.gfm&&this.rules.other.listIsTask.test(m),loose:!1,text:m,tokens:[]}),a.raw+=h}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 h=c.tokens.filter(g=>g.type==="space"),m=h.length>0&&h.some(g=>this.rules.other.anyLine.test(g.raw));a.loose=m}for(let c of a.items){let h=c.tokens[0];if(c.task&&(h?.type==="text"||h?.type==="paragraph")){c.text=c.text.replace(this.rules.other.listReplaceTask,""),h.raw=h.raw.replace(this.rules.other.listReplaceTask,""),h.text=h.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 m=this.rules.other.listTaskCheckbox.exec(c.raw);if(m){let g={type:"checkbox",raw:m[0]+" ",checked:m[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 h of c.tokens)h.type==="text"&&(h.type="paragraph")}return a}}html(t){let e=this.rules.block.html.exec(t);if(e){let r=Gs(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:rr(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=Ws(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:rr(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(Ws(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:rr(e[0],`
@@ -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 cd(t){const e=sd(t);if(e.length===0)return t;let r="",n=0;for(const a of e){r+=t.slice(n,a.start);const i=ec(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 ud(t){t.use({extensions:[{name:"taskBlock",level:"block",start(e){const r=e.match(/^@@@tasks?((?:[ \t][^\n]*)?)\r?\n/);return r&&ei(r[1])?0:void 0},tokenizer(e){const n=/^(@@@tasks?((?:[ \t][^\n]*)?)\r?\n([\s\S]*?)@@@)/.exec(e);if(n&&ei(n[2]))return{type:"taskBlock",raw:n[1],text:n[3],tokens:[]}},renderer(e){return ld(e.text)}}]})}const hd=P0.prototype.del,dd={tokenizer:{del(t,e,r){if(!t.startsWith("~~"))return;const n=hd.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,"$&̲"),h;a>15?h="…"+o.slice(a-15,a):h=o.slice(0,a);var m;i+15<o.length?m=o.slice(i,i+15)+"…":m=o.slice(i),n+=h+c+m}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 md=/([A-Z])/g,pd=t=>t.replace(md,"-$1").toLowerCase(),fd={"&":"&amp;",">":"&gt;","<":"&lt;",'"':"&quot;","'":"&#x27;"},gd=/[&><"']/g,Ye=t=>String(t).replace(gd,e=>fd[e]),In=t=>t.type==="ordgroup"||t.type==="color"?t.body.length===1?In(t.body[0]):t:t.type==="font"?In(t.body):t,vd=new Set(["mathord","textord","atom"]),Xt=t=>vd.has(In(t).type),bd=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"},Vs={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 yd(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 wd(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 yd(e)}function kd(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:wd(n)}class xd{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(Vs)){var n=Vs[r];n&&kd(this,r,e,n)}}isTrusted(e){if("url"in e&&e.url&&!e.protocol){var r=bd(e.url);if(r==null)return!1;e.protocol=r}var n=typeof this.trust=="function"?this.trust(e):this.trust;return!!n}}class nr{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[Sd[this.id]]}sub(){return Nt[Ad[this.id]]}fracNum(){return Nt[Td[this.id]]}fracDen(){return Nt[Ed[this.id]]}cramp(){return Nt[Md[this.id]]}text(){return Nt[Cd[this.id]]}isTight(){return this.size>=2}}var Pi=0,Ln=1,Jr=2,Wt=3,$0=4,Tt=5,a0=6,at=7,Nt=[new nr(Pi,0,!1),new nr(Ln,0,!0),new nr(Jr,1,!1),new nr(Wt,1,!0),new nr($0,2,!1),new nr(Tt,2,!0),new nr(a0,3,!1),new nr(at,3,!0)],Sd=[$0,Tt,$0,Tt,a0,at,a0,at],Ad=[Tt,Tt,Tt,Tt,at,at,at,at],Td=[Jr,Wt,$0,Tt,a0,at,a0,at],Ed=[Wt,Wt,Tt,Tt,at,at,at,at],Md=[Ln,Ln,Wt,Wt,Tt,Tt,at,at],Cd=[Pi,Ln,Jr,Wt,Jr,Wt,Jr,Wt],ae={DISPLAY:Nt[Pi],TEXT:Nt[Jr],SCRIPT:Nt[$0],SCRIPTSCRIPT:Nt[a0]},ti=[{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 Id(t){for(var e=0;e<ti.length;e++)for(var r=ti[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 zn=[];ti.forEach(t=>t.blocks.forEach(e=>zn.push(...e)));function tc(t){for(var e=0;e<zn.length;e+=2)if(t>=zn[e]&&t<=zn[e+1])return!0;return!1}var qe=t=>t+" "+t,Xr=80,zd=function(e,r){return"M95,"+(622+e+r)+`
79
+ `):a.body.trim(),n=a.end}return r+=t.slice(n),r}function ud(t){t.use({extensions:[{name:"taskBlock",level:"block",start(e){const r=e.match(/^@@@tasks?((?:[ \t][^\n]*)?)\r?\n/);return r&&ei(r[1])?0:void 0},tokenizer(e){const n=/^(@@@tasks?((?:[ \t][^\n]*)?)\r?\n([\s\S]*?)@@@)/.exec(e);if(n&&ei(n[2]))return{type:"taskBlock",raw:n[1],text:n[3],tokens:[]}},renderer(e){return ld(e.text)}}]})}const hd=P0.prototype.del,dd={tokenizer:{del(t,e,r){if(!t.startsWith("~~"))return;const n=hd.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,"$&̲"),h;a>15?h="…"+o.slice(a-15,a):h=o.slice(0,a);var m;i+15<o.length?m=o.slice(i,i+15)+"…":m=o.slice(i),n+=h+c+m}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 md=/([A-Z])/g,pd=t=>t.replace(md,"-$1").toLowerCase(),fd={"&":"&amp;",">":"&gt;","<":"&lt;",'"':"&quot;","'":"&#x27;"},gd=/[&><"']/g,Xe=t=>String(t).replace(gd,e=>fd[e]),In=t=>t.type==="ordgroup"||t.type==="color"?t.body.length===1?In(t.body[0]):t:t.type==="font"?In(t.body):t,vd=new Set(["mathord","textord","atom"]),Yt=t=>vd.has(In(t).type),bd=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"},Vs={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 yd(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 wd(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 yd(e)}function kd(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:wd(n)}class xd{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(Vs)){var n=Vs[r];n&&kd(this,r,e,n)}}isTrusted(e){if("url"in e&&e.url&&!e.protocol){var r=bd(e.url);if(r==null)return!1;e.protocol=r}var n=typeof this.trust=="function"?this.trust(e):this.trust;return!!n}}class nr{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[Sd[this.id]]}sub(){return Nt[Ad[this.id]]}fracNum(){return Nt[Td[this.id]]}fracDen(){return Nt[Ed[this.id]]}cramp(){return Nt[Md[this.id]]}text(){return Nt[Cd[this.id]]}isTight(){return this.size>=2}}var Pi=0,Ln=1,Jr=2,Wt=3,$0=4,Tt=5,a0=6,at=7,Nt=[new nr(Pi,0,!1),new nr(Ln,0,!0),new nr(Jr,1,!1),new nr(Wt,1,!0),new nr($0,2,!1),new nr(Tt,2,!0),new nr(a0,3,!1),new nr(at,3,!0)],Sd=[$0,Tt,$0,Tt,a0,at,a0,at],Ad=[Tt,Tt,Tt,Tt,at,at,at,at],Td=[Jr,Wt,$0,Tt,a0,at,a0,at],Ed=[Wt,Wt,Tt,Tt,at,at,at,at],Md=[Ln,Ln,Wt,Wt,Tt,Tt,at,at],Cd=[Pi,Ln,Jr,Wt,Jr,Wt,Jr,Wt],ae={DISPLAY:Nt[Pi],TEXT:Nt[Jr],SCRIPT:Nt[$0],SCRIPTSCRIPT:Nt[a0]},ti=[{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 Id(t){for(var e=0;e<ti.length;e++)for(var r=ti[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 zn=[];ti.forEach(t=>t.blocks.forEach(e=>zn.push(...e)));function tc(t){for(var e=0;e<zn.length;e+=2)if(t>=zn[e]&&t<=zn[e+1])return!0;return!1}var qe=t=>t+" "+t,Yr=80,zd=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
@@ -127,7 +127,7 @@ s76,-153,76,-153s77,-151,77,-151c0.7,0.7,35.7,202,105,604c67.3,400.7,102,602.7,1
127
127
  H742v`+a+`l-4 4-4 4c-.667.7 -2 1.5-4 2.5s-4.167 1.833-6.5 2.5-5.5 1-9.5 1
128
128
  h-12l-28-84c-16.667-52-96.667 -294.333-240-727l-212 -643 -85 170
129
129
  c-4-3.333-8.333-7.667-13 -13l-13-13l77-155 77-156c66 199.333 139 419.667
130
- 219 661 l218 661zM702 `+r+"H400000v"+(40+e)+"H742z"},Pd=function(e,r,n){r=1e3*r;var a="";switch(e){case"sqrtMain":a=zd(r,Xr);break;case"sqrtSize1":a=Rd(r,Xr);break;case"sqrtSize2":a=Dd(r,Xr);break;case"sqrtSize3":a=Nd(r,Xr);break;case"sqrtSize4":a=_d(r,Xr);break;case"sqrtTall":a=Od(r,Xr,n)}return a},$d=function(e,r){switch(e){case"⎜":return qe("M291 0 H417 V"+r+" H291z");case"∣":return qe("M145 0 H188 V"+r+" H145z");case"∥":return qe("M145 0 H188 V"+r+" H145z")+qe("M367 0 H410 V"+r+" H367z");case"⎟":return qe("M457 0 H583 V"+r+" H457z");case"⎢":return qe("M319 0 H403 V"+r+" H319z");case"⎥":return qe("M263 0 H347 V"+r+" H263z");case"⎪":return qe("M384 0 H504 V"+r+" H384z");case"⏐":return qe("M312 0 H355 V"+r+" H312z");case"‖":return qe("M257 0 H300 V"+r+" H257z")+qe("M478 0 H521 V"+r+" H478z");default:return""}},Ks={doubleleftarrow:`M262 157
130
+ 219 661 l218 661zM702 `+r+"H400000v"+(40+e)+"H742z"},Pd=function(e,r,n){r=1e3*r;var a="";switch(e){case"sqrtMain":a=zd(r,Yr);break;case"sqrtSize1":a=Rd(r,Yr);break;case"sqrtSize2":a=Dd(r,Yr);break;case"sqrtSize3":a=Nd(r,Yr);break;case"sqrtSize4":a=_d(r,Yr);break;case"sqrtTall":a=Od(r,Yr,n)}return a},$d=function(e,r){switch(e){case"⎜":return qe("M291 0 H417 V"+r+" H291z");case"∣":return qe("M145 0 H188 V"+r+" H145z");case"∥":return qe("M145 0 H188 V"+r+" H145z")+qe("M367 0 H410 V"+r+" H367z");case"⎟":return qe("M457 0 H583 V"+r+" H457z");case"⎢":return qe("M319 0 H403 V"+r+" H319z");case"⎥":return qe("M263 0 H347 V"+r+" H263z");case"⎪":return qe("M384 0 H504 V"+r+" H384z");case"⏐":return qe("M312 0 H355 V"+r+" H312z");case"‖":return qe("M257 0 H300 V"+r+" H257z")+qe("M478 0 H521 V"+r+" H478z");default:return""}},Ks={doubleleftarrow:`M262 157
131
131
  l10-10c34-36 62.7-77 86-123 3.3-8 5-13.3 5-16 0-5.3-6.7-8-20-8-7.3
132
132
  0-12.2.5-14.5 1.5-2.3 1-4.8 4.5-7.5 10.5-49.3 97.3-121.7 169.3-217 216-28
133
133
  14-57.3 25-88 33-6.7 2-11 3.8-13 5.5-2 1.7-3 4.2-3 7.5s1 5.8 3 7.5
@@ -326,13 +326,13 @@ 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 qd(t){return"toText"in t}class p0{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(qd(e))return e.toText();throw new Error("Expected MathDomNode with toText, got "+e.constructor.name)}).join("")}}var ri={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},Fd={ex:!0,em:!0,mu:!0},rc=function(e){return typeof e!="string"&&(e=e.unit),e in ri||e in Fd||e==="ex"},Ie=function(e,r){var n;if(e.unit in ri)n=ri[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"},hr=function(e){return e.filter(r=>r).join(" ")},$i=function(e){var r="";for(var n of Object.keys(e)){var a=e[n];a!==void 0&&(r+=pd(n)+":"+a+";")}return r},nc=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)}},ac=function(e){var r=document.createElement(e);r.className=hr(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},Hd=/[\s"'>/=\x00-\x1f]/,ic=function(e){var r="<"+e;this.classes.length&&(r+=' class="'+Ye(hr(this.classes))+'"');var n=$i(this.style);n&&(r+=' style="'+Ye(n)+'"');for(var a of Object.keys(this.attributes)){if(Hd.test(a))throw new B("Invalid attribute name '"+a+"'");r+=" "+a+'="'+Ye(this.attributes[a])+'"'}r+=">";for(var i=0;i<this.children.length;i++)r+=this.children[i].toMarkup();return r+="</"+e+">",r};class G0{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,nc.call(this,e,n,a),this.children=r||[]}setAttribute(e,r){this.attributes[e]=r}hasClass(e){return this.classes.includes(e)}toNode(){return ac.call(this,"span")}toMarkup(){return ic.call(this,"span")}}class Bi{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,nc.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 ac.call(this,"a")}toMarkup(){return ic.call(this,"a")}}class Ud{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="'+Ye(this.src)+'"'+(' alt="'+Ye(this.alt)+'"'),r=$i(this.style);return r&&(e+=' style="'+Ye(r)+'"'),e+="'/>",e}}var Wd={î:"ı̂",ï:"ı̈",í:"ı́",ì:"ı̀"};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 h=Id(this.text.charCodeAt(0));h&&this.classes.push(h+"_fallback"),/[îïíì]/.test(this.text)&&(this.text=Wd[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=hr(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+=Ye(hr(this.classes)),r+='"');var n="";this.italic>0&&(n+="margin-right:"+H(this.italic)+";"),n+=$i(this.style),n&&(e=!0,r+=' style="'+Ye(n)+'"');var a=Ye(this.text);return e?(r+=">",r+=a,r+="</span>",r):a}}class dr{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+'="'+Ye(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="'+Ye(this.alternate)+'"/>':'<path d="'+Ye(Ks[this.pathName])+'"/>'}}class Xs{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+'="'+Ye(this.attributes[r])+'"';return e+="/>",e}}function Gd(t){if(t instanceof Et)return t;throw new Error("Expected symbolNode but got "+String(t)+".")}function jd(t){if(t instanceof G0)return t;throw new Error("Expected span<HtmlDomNode> but got "+String(t)+".")}var Vd=t=>t instanceof G0||t instanceof Bi||t instanceof p0,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]}},ka={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]},Ys={Å:"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 qi(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 Ys&&(n=Ys[t[0]].charCodeAt(0),a=Ut[e][n]),!a&&r==="text"&&tc(n)&&(a=Ut[e][77]),a)return{depth:a[0],height:a[1],italic:a[2],skew:a[3],width:a[4]}}var xa={};function Kd(t){var e;if(t>=5?e=0:t>=3?e=1:e=2,!xa[e]){var r=xa[e]={cssEmPerMu:ka.quad[e]/18};for(var n of Object.keys(ka))r[n]=ka[n][e]}return xa[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",d="main",b="ams",Me="accent-token",j="bin",it="close",f0="inner",Q="mathord",$e="op-token",bt="open",j0="punct",y="rel",Yt="spacing",k="textord";l(u,d,y,"≡","\\equiv",!0);l(u,d,y,"≺","\\prec",!0);l(u,d,y,"≻","\\succ",!0);l(u,d,y,"∼","\\sim",!0);l(u,d,y,"⊥","\\perp");l(u,d,y,"⪯","\\preceq",!0);l(u,d,y,"⪰","\\succeq",!0);l(u,d,y,"≃","\\simeq",!0);l(u,d,y,"∣","\\mid",!0);l(u,d,y,"≪","\\ll",!0);l(u,d,y,"≫","\\gg",!0);l(u,d,y,"≍","\\asymp",!0);l(u,d,y,"∥","\\parallel");l(u,d,y,"⋈","\\bowtie",!0);l(u,d,y,"⌣","\\smile",!0);l(u,d,y,"⊑","\\sqsubseteq",!0);l(u,d,y,"⊒","\\sqsupseteq",!0);l(u,d,y,"≐","\\doteq",!0);l(u,d,y,"⌢","\\frown",!0);l(u,d,y,"∋","\\ni",!0);l(u,d,y,"∝","\\propto",!0);l(u,d,y,"⊢","\\vdash",!0);l(u,d,y,"⊣","\\dashv",!0);l(u,d,y,"∋","\\owns");l(u,d,j0,".","\\ldotp");l(u,d,j0,"⋅","\\cdotp");l(u,d,j0,"⋅","·");l(_,d,k,"⋅","·");l(u,d,k,"#","\\#");l(_,d,k,"#","\\#");l(u,d,k,"&","\\&");l(_,d,k,"&","\\&");l(u,d,k,"ℵ","\\aleph",!0);l(u,d,k,"∀","\\forall",!0);l(u,d,k,"ℏ","\\hbar",!0);l(u,d,k,"∃","\\exists",!0);l(u,d,k,"∇","\\nabla",!0);l(u,d,k,"♭","\\flat",!0);l(u,d,k,"ℓ","\\ell",!0);l(u,d,k,"♮","\\natural",!0);l(u,d,k,"♣","\\clubsuit",!0);l(u,d,k,"℘","\\wp",!0);l(u,d,k,"♯","\\sharp",!0);l(u,d,k,"♢","\\diamondsuit",!0);l(u,d,k,"ℜ","\\Re",!0);l(u,d,k,"♡","\\heartsuit",!0);l(u,d,k,"ℑ","\\Im",!0);l(u,d,k,"♠","\\spadesuit",!0);l(u,d,k,"§","\\S",!0);l(_,d,k,"§","\\S");l(u,d,k,"¶","\\P",!0);l(_,d,k,"¶","\\P");l(u,d,k,"†","\\dag");l(_,d,k,"†","\\dag");l(_,d,k,"†","\\textdagger");l(u,d,k,"‡","\\ddag");l(_,d,k,"‡","\\ddag");l(_,d,k,"‡","\\textdaggerdbl");l(u,d,it,"⎱","\\rmoustache",!0);l(u,d,bt,"⎰","\\lmoustache",!0);l(u,d,it,"⟯","\\rgroup",!0);l(u,d,bt,"⟮","\\lgroup",!0);l(u,d,j,"∓","\\mp",!0);l(u,d,j,"⊖","\\ominus",!0);l(u,d,j,"⊎","\\uplus",!0);l(u,d,j,"⊓","\\sqcap",!0);l(u,d,j,"∗","\\ast");l(u,d,j,"⊔","\\sqcup",!0);l(u,d,j,"◯","\\bigcirc",!0);l(u,d,j,"∙","\\bullet",!0);l(u,d,j,"‡","\\ddagger");l(u,d,j,"≀","\\wr",!0);l(u,d,j,"⨿","\\amalg");l(u,d,j,"&","\\And");l(u,d,y,"⟵","\\longleftarrow",!0);l(u,d,y,"⇐","\\Leftarrow",!0);l(u,d,y,"⟸","\\Longleftarrow",!0);l(u,d,y,"⟶","\\longrightarrow",!0);l(u,d,y,"⇒","\\Rightarrow",!0);l(u,d,y,"⟹","\\Longrightarrow",!0);l(u,d,y,"↔","\\leftrightarrow",!0);l(u,d,y,"⟷","\\longleftrightarrow",!0);l(u,d,y,"⇔","\\Leftrightarrow",!0);l(u,d,y,"⟺","\\Longleftrightarrow",!0);l(u,d,y,"↦","\\mapsto",!0);l(u,d,y,"⟼","\\longmapsto",!0);l(u,d,y,"↗","\\nearrow",!0);l(u,d,y,"↩","\\hookleftarrow",!0);l(u,d,y,"↪","\\hookrightarrow",!0);l(u,d,y,"↘","\\searrow",!0);l(u,d,y,"↼","\\leftharpoonup",!0);l(u,d,y,"⇀","\\rightharpoonup",!0);l(u,d,y,"↙","\\swarrow",!0);l(u,d,y,"↽","\\leftharpoondown",!0);l(u,d,y,"⇁","\\rightharpoondown",!0);l(u,d,y,"↖","\\nwarrow",!0);l(u,d,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(_,d,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,d,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,d,y,"⊶","\\origof",!0);l(u,d,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,d,k,"‘","`");l(u,d,k,"$","\\$");l(_,d,k,"$","\\$");l(_,d,k,"$","\\textdollar");l(u,d,k,"%","\\%");l(_,d,k,"%","\\%");l(u,d,k,"_","\\_");l(_,d,k,"_","\\_");l(_,d,k,"_","\\textunderscore");l(u,d,k,"∠","\\angle",!0);l(u,d,k,"∞","\\infty",!0);l(u,d,k,"′","\\prime");l(u,d,k,"△","\\triangle");l(u,d,k,"Γ","\\Gamma",!0);l(u,d,k,"Δ","\\Delta",!0);l(u,d,k,"Θ","\\Theta",!0);l(u,d,k,"Λ","\\Lambda",!0);l(u,d,k,"Ξ","\\Xi",!0);l(u,d,k,"Π","\\Pi",!0);l(u,d,k,"Σ","\\Sigma",!0);l(u,d,k,"Υ","\\Upsilon",!0);l(u,d,k,"Φ","\\Phi",!0);l(u,d,k,"Ψ","\\Psi",!0);l(u,d,k,"Ω","\\Omega",!0);l(u,d,k,"A","Α");l(u,d,k,"B","Β");l(u,d,k,"E","Ε");l(u,d,k,"Z","Ζ");l(u,d,k,"H","Η");l(u,d,k,"I","Ι");l(u,d,k,"K","Κ");l(u,d,k,"M","Μ");l(u,d,k,"N","Ν");l(u,d,k,"O","Ο");l(u,d,k,"P","Ρ");l(u,d,k,"T","Τ");l(u,d,k,"X","Χ");l(u,d,k,"¬","\\neg",!0);l(u,d,k,"¬","\\lnot");l(u,d,k,"⊤","\\top");l(u,d,k,"⊥","\\bot");l(u,d,k,"∅","\\emptyset");l(u,b,k,"∅","\\varnothing");l(u,d,Q,"α","\\alpha",!0);l(u,d,Q,"β","\\beta",!0);l(u,d,Q,"γ","\\gamma",!0);l(u,d,Q,"δ","\\delta",!0);l(u,d,Q,"ϵ","\\epsilon",!0);l(u,d,Q,"ζ","\\zeta",!0);l(u,d,Q,"η","\\eta",!0);l(u,d,Q,"θ","\\theta",!0);l(u,d,Q,"ι","\\iota",!0);l(u,d,Q,"κ","\\kappa",!0);l(u,d,Q,"λ","\\lambda",!0);l(u,d,Q,"μ","\\mu",!0);l(u,d,Q,"ν","\\nu",!0);l(u,d,Q,"ξ","\\xi",!0);l(u,d,Q,"ο","\\omicron",!0);l(u,d,Q,"π","\\pi",!0);l(u,d,Q,"ρ","\\rho",!0);l(u,d,Q,"σ","\\sigma",!0);l(u,d,Q,"τ","\\tau",!0);l(u,d,Q,"υ","\\upsilon",!0);l(u,d,Q,"ϕ","\\phi",!0);l(u,d,Q,"χ","\\chi",!0);l(u,d,Q,"ψ","\\psi",!0);l(u,d,Q,"ω","\\omega",!0);l(u,d,Q,"ε","\\varepsilon",!0);l(u,d,Q,"ϑ","\\vartheta",!0);l(u,d,Q,"ϖ","\\varpi",!0);l(u,d,Q,"ϱ","\\varrho",!0);l(u,d,Q,"ς","\\varsigma",!0);l(u,d,Q,"φ","\\varphi",!0);l(u,d,j,"∗","*",!0);l(u,d,j,"+","+");l(u,d,j,"−","-",!0);l(u,d,j,"⋅","\\cdot",!0);l(u,d,j,"∘","\\circ",!0);l(u,d,j,"÷","\\div",!0);l(u,d,j,"±","\\pm",!0);l(u,d,j,"×","\\times",!0);l(u,d,j,"∩","\\cap",!0);l(u,d,j,"∪","\\cup",!0);l(u,d,j,"∖","\\setminus",!0);l(u,d,j,"∧","\\land");l(u,d,j,"∨","\\lor");l(u,d,j,"∧","\\wedge",!0);l(u,d,j,"∨","\\vee",!0);l(u,d,k,"√","\\surd");l(u,d,bt,"⟨","\\langle",!0);l(u,d,bt,"∣","\\lvert");l(u,d,bt,"∥","\\lVert");l(u,d,it,"?","?");l(u,d,it,"!","!");l(u,d,it,"⟩","\\rangle",!0);l(u,d,it,"∣","\\rvert");l(u,d,it,"∥","\\rVert");l(u,d,y,"=","=");l(u,d,y,":",":");l(u,d,y,"≈","\\approx",!0);l(u,d,y,"≅","\\cong",!0);l(u,d,y,"≥","\\ge");l(u,d,y,"≥","\\geq",!0);l(u,d,y,"←","\\gets");l(u,d,y,">","\\gt",!0);l(u,d,y,"∈","\\in",!0);l(u,d,y,"","\\@not");l(u,d,y,"⊂","\\subset",!0);l(u,d,y,"⊃","\\supset",!0);l(u,d,y,"⊆","\\subseteq",!0);l(u,d,y,"⊇","\\supseteq",!0);l(u,b,y,"⊈","\\nsubseteq",!0);l(u,b,y,"⊉","\\nsupseteq",!0);l(u,d,y,"⊨","\\models");l(u,d,y,"←","\\leftarrow",!0);l(u,d,y,"≤","\\le");l(u,d,y,"≤","\\leq",!0);l(u,d,y,"<","\\lt",!0);l(u,d,y,"→","\\rightarrow",!0);l(u,d,y,"→","\\to");l(u,b,y,"≱","\\ngeq",!0);l(u,b,y,"≰","\\nleq",!0);l(u,d,Yt," ","\\ ");l(u,d,Yt," ","\\space");l(u,d,Yt," ","\\nobreakspace");l(_,d,Yt," ","\\ ");l(_,d,Yt," "," ");l(_,d,Yt," ","\\space");l(_,d,Yt," ","\\nobreakspace");l(u,d,Yt,"","\\nobreak");l(u,d,Yt,"","\\allowbreak");l(u,d,j0,",",",");l(u,d,j0,";",";");l(u,b,j,"⊼","\\barwedge",!0);l(u,b,j,"⊻","\\veebar",!0);l(u,d,j,"⊙","\\odot",!0);l(u,d,j,"⊕","\\oplus",!0);l(u,d,j,"⊗","\\otimes",!0);l(u,d,k,"∂","\\partial",!0);l(u,d,j,"⊘","\\oslash",!0);l(u,b,j,"⊚","\\circledcirc",!0);l(u,b,j,"⊡","\\boxdot",!0);l(u,d,j,"△","\\bigtriangleup");l(u,d,j,"▽","\\bigtriangledown");l(u,d,j,"†","\\dagger");l(u,d,j,"⋄","\\diamond");l(u,d,j,"⋆","\\star");l(u,d,j,"◃","\\triangleleft");l(u,d,j,"▹","\\triangleright");l(u,d,bt,"{","\\{");l(_,d,k,"{","\\{");l(_,d,k,"{","\\textbraceleft");l(u,d,it,"}","\\}");l(_,d,k,"}","\\}");l(_,d,k,"}","\\textbraceright");l(u,d,bt,"{","\\lbrace");l(u,d,it,"}","\\rbrace");l(u,d,bt,"[","\\lbrack",!0);l(_,d,k,"[","\\lbrack",!0);l(u,d,it,"]","\\rbrack",!0);l(_,d,k,"]","\\rbrack",!0);l(u,d,bt,"(","\\lparen",!0);l(u,d,it,")","\\rparen",!0);l(_,d,k,"<","\\textless",!0);l(_,d,k,">","\\textgreater",!0);l(u,d,bt,"⌊","\\lfloor",!0);l(u,d,it,"⌋","\\rfloor",!0);l(u,d,bt,"⌈","\\lceil",!0);l(u,d,it,"⌉","\\rceil",!0);l(u,d,k,"\\","\\backslash");l(u,d,k,"∣","|");l(u,d,k,"∣","\\vert");l(_,d,k,"|","\\textbar",!0);l(u,d,k,"∥","\\|");l(u,d,k,"∥","\\Vert");l(_,d,k,"∥","\\textbardbl");l(_,d,k,"~","\\textasciitilde");l(_,d,k,"\\","\\textbackslash");l(_,d,k,"^","\\textasciicircum");l(u,d,y,"↑","\\uparrow",!0);l(u,d,y,"⇑","\\Uparrow",!0);l(u,d,y,"↓","\\downarrow",!0);l(u,d,y,"⇓","\\Downarrow",!0);l(u,d,y,"↕","\\updownarrow",!0);l(u,d,y,"⇕","\\Updownarrow",!0);l(u,d,$e,"∐","\\coprod");l(u,d,$e,"⋁","\\bigvee");l(u,d,$e,"⋀","\\bigwedge");l(u,d,$e,"⨄","\\biguplus");l(u,d,$e,"⋂","\\bigcap");l(u,d,$e,"⋃","\\bigcup");l(u,d,$e,"∫","\\int");l(u,d,$e,"∫","\\intop");l(u,d,$e,"∬","\\iint");l(u,d,$e,"∭","\\iiint");l(u,d,$e,"∏","\\prod");l(u,d,$e,"∑","\\sum");l(u,d,$e,"⨂","\\bigotimes");l(u,d,$e,"⨁","\\bigoplus");l(u,d,$e,"⨀","\\bigodot");l(u,d,$e,"∮","\\oint");l(u,d,$e,"∯","\\oiint");l(u,d,$e,"∰","\\oiiint");l(u,d,$e,"⨆","\\bigsqcup");l(u,d,$e,"∫","\\smallint");l(_,d,f0,"…","\\textellipsis");l(u,d,f0,"…","\\mathellipsis");l(_,d,f0,"…","\\ldots",!0);l(u,d,f0,"…","\\ldots",!0);l(u,d,f0,"⋯","\\@cdots",!0);l(u,d,f0,"⋱","\\ddots",!0);l(u,d,k,"⋮","\\varvdots");l(_,d,k,"⋮","\\varvdots");l(u,d,Me,"ˊ","\\acute");l(u,d,Me,"ˋ","\\grave");l(u,d,Me,"¨","\\ddot");l(u,d,Me,"~","\\tilde");l(u,d,Me,"ˉ","\\bar");l(u,d,Me,"˘","\\breve");l(u,d,Me,"ˇ","\\check");l(u,d,Me,"^","\\hat");l(u,d,Me,"⃗","\\vec");l(u,d,Me,"˙","\\dot");l(u,d,Me,"˚","\\mathring");l(u,d,Q,"","\\@imath");l(u,d,Q,"","\\@jmath");l(u,d,k,"ı","ı");l(u,d,k,"ȷ","ȷ");l(_,d,k,"ı","\\i",!0);l(_,d,k,"ȷ","\\j",!0);l(_,d,k,"ß","\\ss",!0);l(_,d,k,"æ","\\ae",!0);l(_,d,k,"œ","\\oe",!0);l(_,d,k,"ø","\\o",!0);l(_,d,k,"Æ","\\AE",!0);l(_,d,k,"Œ","\\OE",!0);l(_,d,k,"Ø","\\O",!0);l(_,d,Me,"ˊ","\\'");l(_,d,Me,"ˋ","\\`");l(_,d,Me,"ˆ","\\^");l(_,d,Me,"˜","\\~");l(_,d,Me,"ˉ","\\=");l(_,d,Me,"˘","\\u");l(_,d,Me,"˙","\\.");l(_,d,Me,"¸","\\c");l(_,d,Me,"˚","\\r");l(_,d,Me,"ˇ","\\v");l(_,d,Me,"¨",'\\"');l(_,d,Me,"˝","\\H");l(_,d,Me,"◯","\\textcircled");var sc={"--":!0,"---":!0,"``":!0,"''":!0};l(_,d,k,"–","--",!0);l(_,d,k,"–","\\textendash");l(_,d,k,"—","---",!0);l(_,d,k,"—","\\textemdash");l(_,d,k,"‘","`",!0);l(_,d,k,"‘","\\textquoteleft");l(_,d,k,"’","'",!0);l(_,d,k,"’","\\textquoteright");l(_,d,k,"“","``",!0);l(_,d,k,"“","\\textquotedblleft");l(_,d,k,"”","''",!0);l(_,d,k,"”","\\textquotedblright");l(u,d,k,"°","\\degree",!0);l(_,d,k,"°","\\degree");l(_,d,k,"°","\\textdegree",!0);l(u,d,k,"£","\\pounds");l(u,d,k,"£","\\mathsterling",!0);l(_,d,k,"£","\\pounds");l(_,d,k,"£","\\textsterling",!0);l(u,b,k,"✠","\\maltese");l(_,b,k,"✠","\\maltese");var Zs='0123456789/@."';for(var Sa=0;Sa<Zs.length;Sa++){var Qs=Zs.charAt(Sa);l(u,d,k,Qs,Qs)}var Js='0123456789!@*()-=+";:?/.,';for(var Aa=0;Aa<Js.length;Aa++){var eo=Js.charAt(Aa);l(_,d,k,eo,eo)}var On="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz";for(var Ta=0;Ta<On.length;Ta++){var wn=On.charAt(Ta);l(u,d,Q,wn,wn),l(_,d,k,wn,wn)}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,d,Q,"h","ℎ");l(_,d,Q,"h","ℎ");var re;for(var tt=0;tt<On.length;tt++){var ze=On.charAt(tt);re=String.fromCharCode(55349,56320+tt),l(u,d,Q,ze,re),l(_,d,k,ze,re),re=String.fromCharCode(55349,56372+tt),l(u,d,Q,ze,re),l(_,d,k,ze,re),re=String.fromCharCode(55349,56424+tt),l(u,d,Q,ze,re),l(_,d,k,ze,re),re=String.fromCharCode(55349,56580+tt),l(u,d,Q,ze,re),l(_,d,k,ze,re),re=String.fromCharCode(55349,56684+tt),l(u,d,Q,ze,re),l(_,d,k,ze,re),re=String.fromCharCode(55349,56736+tt),l(u,d,Q,ze,re),l(_,d,k,ze,re),re=String.fromCharCode(55349,56788+tt),l(u,d,Q,ze,re),l(_,d,k,ze,re),re=String.fromCharCode(55349,56840+tt),l(u,d,Q,ze,re),l(_,d,k,ze,re),re=String.fromCharCode(55349,56944+tt),l(u,d,Q,ze,re),l(_,d,k,ze,re),tt<26&&(re=String.fromCharCode(55349,56632+tt),l(u,d,Q,ze,re),l(_,d,k,ze,re),re=String.fromCharCode(55349,56476+tt),l(u,d,Q,ze,re),l(_,d,k,ze,re))}re="𝕜";l(u,d,Q,"k",re);l(_,d,k,"k",re);for(var Ar=0;Ar<10;Ar++){var ar=Ar.toString();re=String.fromCharCode(55349,57294+Ar),l(u,d,Q,ar,re),l(_,d,k,ar,re),re=String.fromCharCode(55349,57314+Ar),l(u,d,Q,ar,re),l(_,d,k,ar,re),re=String.fromCharCode(55349,57324+Ar),l(u,d,Q,ar,re),l(_,d,k,ar,re),re=String.fromCharCode(55349,57334+Ar),l(u,d,Q,ar,re),l(_,d,k,ar,re)}var ni="ÐÞþ";for(var Ea=0;Ea<ni.length;Ea++){var kn=ni.charAt(Ea);l(u,d,Q,kn,kn),l(_,d,k,kn,kn)}var ai={mathClass:"mathbf",textClass:"textbf",font:"Main-Bold"},to={mathClass:"mathnormal",textClass:"textit",font:"Math-Italic"},ro={mathClass:"boldsymbol",textClass:"boldsymbol",font:"Main-BoldItalic"},Xd={mathClass:"mathscr",textClass:"textscr",font:"Script-Regular"},zr={mathClass:"",textClass:"",font:""},no={mathClass:"mathfrak",textClass:"textfrak",font:"Fraktur-Regular"},ao={mathClass:"mathbb",textClass:"textbb",font:"AMS-Regular"},io={mathClass:"mathboldfrak",textClass:"textboldfrak",font:"Fraktur-Regular"},ii={mathClass:"mathsf",textClass:"textsf",font:"SansSerif-Regular"},si={mathClass:"mathboldsf",textClass:"textboldsf",font:"SansSerif-Bold"},so={mathClass:"mathitsf",textClass:"textitsf",font:"SansSerif-Italic"},oi={mathClass:"mathtt",textClass:"texttt",font:"Typewriter-Regular"},oo=[ai,ai,to,to,ro,ro,Xd,zr,zr,zr,no,no,ao,ao,io,io,ii,ii,si,si,so,so,zr,zr,oi,oi],Yd=[ai,zr,ii,si,oi],Zd=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 oo[a]}else if(120782<=n&&n<=120831){var i=Math.floor((n-120782)/10);return Yd[i]}else{if(n===120485||n===120486)return oo[0];if(120486<n&&n<120782)return zr;throw new B("Unsupported character: "+t)}};function pt(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 Fn=function(e,r,n){if(Te[n][e]){var a=Te[n][e].replace;a&&(e=a)}return{value:e,metrics:qi(e,r,n)}},nt=function(e,r,n,a,i){var s=Fn(e,r,n),o=s.metrics;e=s.value;var c;if(o){var h=o.italic;(n==="text"||a&&a.font==="mathit")&&(h=0),c=new Et(e,o.height,o.depth,h,o.skew,o.width,i)}else pt({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 m=a.getColor();return m&&(c.style.color=m),c},Fi=function(e,r,n,a){return a===void 0&&(a=[]),n.font==="boldsymbol"&&Fn(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"]))},Qd=function(e,r,n){return n!=="textord"&&Fn(e,"Math-BoldItalic",r).metrics?{fontName:"Math-BoldItalic",fontClass:"boldsymbol"}:{fontName:"Main-Bold",fontClass:"mathbf"}},Hn=function(e,r){var n=e.type==="mathord"?"mathord":"textord",a=e.mode,i=e.text,s=["mord"],o=r.font,c=r.fontFamily,h=r.fontWeight,m=r.fontShape,g=a==="math"||a==="text"&&!!o,v=g?o:c,w="",A="";if(i.charCodeAt(0)===55349){var M=Zd(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=Qd(i,a,n);D=C.fontName,S=[C.fontClass]}else g?(D=li[o].fontName,S=[o]):(D=xn(c,h,m),S=[c,h,m]);if(Fn(i,D,a).metrics)return nt(i,D,a,r,s.concat(S));if(Object.prototype.hasOwnProperty.call(sc,i)&&D.slice(0,10)==="Typewriter"){for(var W=[],Y=0;Y<i.length;Y++)W.push(nt(i[Y],D,a,r,s.concat(S)));return Zt(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=xn("amsrm",h,m);return nt(i,T,a,r,s.concat("amsrm",h,m))}else if(X==="main"||!X){var R=xn("textrm",h,m);return nt(i,R,a,r,s.concat(h,m))}else{var U=xn(X,h,m);return nt(i,U,a,r,s.concat(U,h,m))}}else throw new Error("unexpected type: "+n+" in makeOrd")},Jd=(t,e)=>{if(hr(t.classes)!==hr(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},oc=t=>{for(var e=0;e<t.length-1;e++){var r=t[e],n=t[e+1];r instanceof Et&&n instanceof Et&&Jd(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},Hi=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},O=function(e,r,n,a){var i=new G0(e,r,n,a);return Hi(i),i},mr=(t,e,r,n)=>new G0(t,e,r,n),i0=function(e,r,n){var a=O([e],[],r);return a.height=Math.max(n||r.fontMetrics().defaultRuleThickness,r.minRuleThickness),a.style.borderBottomWidth=H(a.height),a.maxFontSize=1,a},em=function(e,r,n,a){var i=new Bi(e,r,n,a);return Hi(i),i},Zt=function(e){var r=new p0(e);return Hi(r),r},s0=function(e,r){return e instanceof p0?O([],[e],r):e},tm=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 h;if(e.positionType==="top"){for(var m=e.positionData,g=0;g<e.children.length;g++){var v=e.children[g];m-=v.type==="kern"?v.size:v.elem.height+v.elem.depth}h=m}else if(e.positionType==="bottom")h=-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")h=-w.elem.depth-e.positionData;else if(e.positionType==="firstBaseline")h=-w.elem.depth;else throw new Error("Invalid positionType "+e.positionType+".")}return{children:e.children,depth:h}},fe=function(e,r){for(var n=tm(e),a=n.children,i=n.depth,s=0,o=0;o<a.length;o++){var c=a[o];if(c.type==="elem"){var h=c.elem;s=Math.max(s,h.maxFontSize,h.height)}}s+=2;var m=O(["pstrut"],[]);m.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||{},Y=O(C,[m,S],void 0,W);Y.style.top=H(-s-A-S.depth),D.marginLeft&&(Y.style.marginLeft=D.marginLeft),D.marginRight&&(Y.style.marginRight=D.marginRight),g.push(Y),A+=S.height+S.depth}v=Math.min(v,A),w=Math.max(w,A)}var X=O(["vlist"],g);X.style.height=H(w);var T;if(v<0){var R=O([],[]),U=O(["vlist"],[R]);U.style.height=H(-v);var P=O(["vlist-s"],[new Et("​")]);T=[O(["vlist-r"],[X,P]),O(["vlist-r"],[U])]}else T=[O(["vlist-r"],[X])];var $=O(["vlist-t"],T);return T.length===2&&$.classes.push("vlist-t2"),$.height=w,$.depth=-v,$},lc=(t,e)=>{var r=O(["mspace"],[],e),n=Ie(t,e);return r.style.marginRight=H(n),r},xn=(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},li={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"}},cc={vec:["vec",.471,.714],oiintSize1:["oiintSize1",.957,.499],oiintSize2:["oiintSize2",1.472,.659],oiiintSize1:["oiiintSize1",1.304,.499],oiiintSize2:["oiiintSize2",1.98,.659]},uc=function(e,r){var n=cc[e],a=n[0],i=n[1],s=n[2],o=new Nr(a),c=new dr([o],{width:H(i),height:H(s),style:"width:"+H(i),viewBox:"0 0 "+1e3*i+" "+1e3*s,preserveAspectRatio:"xMinYMin"}),h=mr(["katex-overlay"],[c],r);return h.height=s,h.style.height=H(s),h.style.width=H(i),h},Ce={number:3,unit:"mu"},Tr={number:4,unit:"mu"},Bt={number:5,unit:"mu"},rm={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}},nm={mord:{mop:Ce},mop:{mord:Ce,mop:Ce},mbin:{},mrel:{},mopen:{},mclose:{mop:Ce},mpunct:{},minner:{mop:Ce}},hc={},B0={},q0={};function G(t){for(var e=t.type,r=t.names,n=t.htmlBuilder,a=t.mathmlBuilder,i=0;i<r.length;++i)hc[r[i]]=t;e&&(n&&(B0[e]=n),a&&(q0[e]=a))}function Or(t){var e=t.type,r=t.htmlBuilder,n=t.mathmlBuilder;r&&(B0[e]=r),n&&(q0[e]=n)}var F0=function(e){return e.type==="ordgroup"&&e.body.length===1?e.body[0]:e},Oe=function(e){return e.type==="ordgroup"?e.body:[e]},am=new Set(["leftmost","mbin","mopen","mrel","mop","mpunct"]),im=new Set(["rightmost","mrel","mclose","mpunct"]),sm={display:ae.DISPLAY,text:ae.TEXT,script:ae.SCRIPT,scriptscript:ae.SCRIPTSCRIPT},om={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=pe(e[s],r);if(o instanceof p0){var c=o.children;i.push(...c)}else i.push(o)}if(oc(i),!n)return i;var h=r;if(e.length===1){var m=e[0];m.type==="sizing"?h=r.havingSize(m.size):m.type==="styling"&&(h=r.havingStyle(sm[m.style]))}var g=O([a[0]||"leftmost"],[],r),v=O([a[1]||"rightmost"],[],r),w=n==="root";return ci(i,(A,M)=>{var D=M.classes[0],S=A.classes[0];D==="mbin"&&im.has(S)?M.classes[0]="mord":S==="mbin"&&am.has(D)&&(A.classes[0]="mord")},{node:g},v,w),ci(i,(A,M)=>{var D,S,C=hi(M),W=hi(A),Y=C&&W?A.hasClass("mtight")?(D=nm[C])==null?void 0:D[W]:(S=rm[C])==null?void 0:S[W]:null;if(Y)return lc(Y,h)},{node:g},v,w),i},ci=function(e,r,n,a,i){a&&e.push(a);for(var s=0;s<e.length;s++){var o=e[s],c=dc(o);if(c){ci(c.children,r,n,null,i);continue}var h=!o.hasClass("mspace");if(h){var m=r(o,n.node);m&&(n.insertAfter?n.insertAfter(m):(e.unshift(m),s++))}h?n.node=o:i&&o.hasClass("katex-newline")&&(n.node=O(["leftmost"])),n.insertAfter=(g=>v=>{e.splice(g+1,0,v),s++})(s)}a&&e.pop()},dc=function(e){return e instanceof p0||e instanceof Bi||e instanceof G0&&e.hasClass("enclosing")?e:null},ui=function(e,r){var n=dc(e);if(n){var a=n.children;if(a.length){if(r==="right")return ui(a[a.length-1],"right");if(r==="left")return ui(a[0],"left")}}return e},hi=function(e,r){if(!e)return null;r&&(e=ui(e,r));var n=e.classes[0];return om[n]||null},H0=function(e,r){var n=["nulldelimiter"].concat(e.baseSizingClasses());return O(r.concat(n))},pe=function(e,r,n){if(!e)return O();if(B0[e.type]){var a=B0[e.type](e,r);if(n&&r.size!==n.size){a=O(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 Sn(t,e){var r=O(["katex-base"],t,e),n=O(["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 lo(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(Sn(s,e)),s=[])}else n[o].hasClass("katex-newline")&&(s.pop(),s.length>0&&(i.push(Sn(s,e)),s=[]),i.push(n[o]));s.length>0&&i.push(Sn(s,e));var h;r?(h=Sn(Fe(r,e,!0),e),h.classes=["katex-tag"],i.push(h)):a&&i.push(a);var m=O(["katex-html"],i);if(m.setAttribute("aria-hidden","true"),h){var g=h.children[0];g.style.height=H(m.height+m.depth),m.depth&&(g.style.verticalAlign=H(-m.depth))}return m}function mc(t){return new p0(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=hr(this.classes));for(var i=0;i<this.children.length;i++)if(this.children[i]instanceof Pe&&this.children[i+1]instanceof Pe){for(var s=this.children[i].toText()+this.children[++i].toText();this.children[i+1]instanceof Pe;)s+=this.children[++i].toText();e.appendChild(new Pe(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+=Ye(a),e+='"'}this.classes.length>0&&(e+=' class ="'+Ye(hr(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 Pe{constructor(e){this.text=void 0,this.text=e}toNode(){return document.createTextNode(this.text)}toMarkup(){return Ye(this.toText())}toText(){return this.text}}class pc{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 lm=new Set(["\\imath","\\jmath"]),cm=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(sc,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 Pe(e)},Ui=function(e){return e.length===1?e[0]:new q("mrow",e)},um={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"},Wi=(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=um[r];if(a)return typeof a=="function"?a(t):a;var i=t.text;if(lm.has(i))return null;if(Te[n][i]){var s=Te[n][i].replace;s&&(i=s)}var o=li[r].fontName;return qi(i,o,n)?li[r].variant:null};function Ma(t){if(!t)return!1;if(t.type==="mi"&&t.children.length===1){var e=t.children[0];return e instanceof Pe&&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 Pe&&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(Ma(c)&&s.type==="mn"){s.children.push(...c.children);continue}else if(c.type==="mn"&&Ma(s))c.children=[...s.children,...c.children],i.pop();else if((c.type==="msup"||c.type==="msub")&&c.children.length>=1&&(s.type==="mn"||Ma(s))){var h=c.children[0];h instanceof q&&h.type==="mn"&&(h.children=[...s.children,...h.children],i.pop())}else if(s.type==="mi"&&s.children.length===1){var m=s.children[0];if(m instanceof Pe&&m.text==="̸"&&(c.type==="mo"||c.type==="mi"||c.type==="mn")){var g=c.children[0];g instanceof Pe&&g.text.length>0&&(g.text=g.text.slice(0,1)+"̸"+g.text.slice(1),i.pop())}}}i.push(c),s=c}return i},pr=function(e,r,n){return Ui(yt(e,r,n))},be=function(e,r){if(!e)return new q("mrow");if(q0[e.type])return q0[e.type](e,r);throw new B("Got group of unknown type: '"+e.type+"'")};function co(t,e,r,n,a){var i=yt(t,r),s;i.length===1&&i[0]instanceof q&&cm.has(i[0].type)?s=i[0]:s=new q("mrow",i);var o=new q("annotation",[new Pe(e)]);o.setAttribute("encoding","application/x-tex");var c=new q("semantics",[s,o]),h=new q("math",[c]);h.setAttribute("xmlns","http://www.w3.org/1998/Math/MathML"),n&&h.setAttribute("display","block");var m=a?"katex":"katex-mathml";return O([m],[h])}var hm=[[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]],uo=[.5,.6,.7,.8,.9,1,1.2,1.44,1.728,2.074,2.488],ho=function(e,r){return r.size<2?e:hm[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=uo[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:ho(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:uo[e-1]})}havingBaseStyle(e){e=e||this.style.text();var r=ho(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=Kd(this.size)),this._fontMetrics}getColor(){return this.phantom?"transparent":this.color}}Ht.BASESIZE=6;var dm=t=>new Ht({style:t.displayMode?ae.DISPLAY:ae.TEXT,maxSize:t.maxSize,minRuleThickness:t.minRuleThickness,strict:t.strict}),mm=function(e,r){if(r.displayMode){var n=["katex-display"];r.leqno&&n.push("leqno"),r.fleqn&&n.push("fleqn"),e=O(n,[e])}return e},pm=function(e,r,n){var a=dm(n),i;if(n.output==="mathml")return co(e,r,a,n.displayMode,!0);if(n.output==="html"){var s=lo(e,a);i=O(["katex"],[s])}else{var o=co(e,r,a,n.displayMode,!1),c=lo(e,a);i=O(["katex"],[o,c])}return mm(i,n)},fm={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":"="},Un=function(e){var r=new q("mo",[new Pe(fm[e.replace(/^\\/,"")])]);return r.setAttribute("stretchy","true"),r},gm={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]},vm=new Set(["widehat","widecheck","widetilde","utilde"]),Wn=function(e,r){function n(){var c=4e5,h=e.label.slice(1);if(vm.has(h)&&"base"in e){var m=e.base.type==="ordgroup"?e.base.body.length:1,g,v,w;if(m>5)h==="widehat"||h==="widecheck"?(g=420,c=2364,w=.42,v=h+"4"):(g=312,c=2340,w=.34,v="tilde4");else{var A=[1,1,2,2,3,3][m];h==="widehat"||h==="widecheck"?(c=[0,1062,2364,2364,2364][A],g=[0,239,300,360,420][A],w=[0,.24,.3,.3,.36,.42][A],v=h+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 dr([M],{width:"100%",height:H(w),viewBox:"0 0 "+c+" "+g,preserveAspectRatio:"none"});return{span:mr([],[D],r),minWidth:0,height:w}}else{var S=[],C=gm[h];if(!C)throw new Error('No SVG data for "'+h+'".');var W=C[0],Y=C[1],X=C[2],T=X/1e3,R=W.length,U,P;if(R===1){if(C.length!==4)throw new Error('Expected 4-tuple for single-path SVG data "'+h+'".');U=["hide-tail"],P=[C[3]]}else if(R===2)U=["halfarrow-left","halfarrow-right"],P=["xMinYMin","xMaxYMin"];else if(R===3)U=["brace-left","brace-center","brace-right"],P=["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 dr([L],{width:"400em",height:H(T),viewBox:"0 0 "+c+" "+X,preserveAspectRatio:P[$]+" slice"}),K=mr([U[$]],[F],r);if(R===1)return{span:K,minWidth:Y,height:T};K.style.height=H(T),S.push(K)}return{span:O(["katex-stretchy"],S,r),minWidth:Y,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},bm=function(e,r,n,a,i){var s,o=e.height+e.depth+n+a;if(/fbox|color|angl/.test(r)){if(s=O(["katex-stretchy",r],[],i),r==="fbox"){var c=i.color&&i.getColor();c&&(s.style.borderColor=c)}}else{var h=[];/^[bx]cancel$/.test(r)&&h.push(new Xs({x1:"0",y1:"0",x2:"100%",y2:"100%","stroke-width":"0.046em"})),/^x?cancel$/.test(r)&&h.push(new Xs({x1:"0",y1:"100%",x2:"100%",y2:"0","stroke-width":"0.046em"}));var m=new dr(h,{width:"100%",height:H(o)});s=mr([],[m],i)}return s.height=o,s.style.height=H(o),s},ym=["bin","close","inner","open","punct","rel"],wm=["accent-token","mathord","op-token","spacing","textord"],km=new Set(ym),xm=new Set(wm);function Sm(t){return km.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 Gn(t){var e=jn(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 jn(t){return t.type==="atom"||xm.has(t.type)?t:null}function Gi(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 fc=t=>{if(t instanceof Et)return t;if(Vd(t)&&t.children.length===1)return fc(t.children[0])},gc=(t,e)=>{var r,n,a;t&&t.type==="supsub"?(n=oe(t.base,"accent"),r=n.base,t.base=r,a=jd(pe(t,e)),t.base=n):(n=oe(t,"accent"),r=n.base);var i=pe(r,e.havingCrampedStyle()),s=n.isShifty&&Xt(r),o=0;if(s){var c,h;o=(c=(h=fc(i))==null?void 0:h.skew)!=null?c:0}var m=n.label==="\\c",g=m?i.height+i.depth:Math.min(i.height,e.fontMetrics().xHeight),v;if(n.isStretchy)v=Wn(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=uc("vec",e),A=cc.vec[1]):(w=Hn({type:"textord",mode:n.mode,text:n.label},e),w=Gd(w),w.italic=0,A=w.width,m&&(g+=w.depth)),v=O(["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=O(["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},Am=(t,e)=>{var r=t.isStretchy?Un(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},Tm=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=F0(e[0]),n=!Tm.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:gc,mathmlBuilder:Am});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"&&(pt({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=pe(t.base,e),n=Wn(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 O(["mord","accentunder"],[i],e)},mathmlBuilder:(t,e)=>{var r=Un(t.label),n=new q("munder",[be(t.base,e),r]);return n.setAttribute("accentunder","true"),n}});var An=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=s0(pe(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=s0(pe(t.below,n,e),e),s.classes.push(i+"-arrow-pad"));var o=Wn(t,e),c=-e.fontMetrics().axisHeight+.5*o.height,h=-e.fontMetrics().axisHeight-.5*o.height-.111;(a.depth>.25||t.label==="\\xleftequilibrium")&&(h-=a.depth);var m;if(s){var g=-e.fontMetrics().axisHeight+s.height+.5*o.height+.111;m=fe({positionType:"individualShift",children:[{type:"elem",elem:a,shift:h},{type:"elem",elem:o,shift:c,wrapperClasses:["svg-align"]},{type:"elem",elem:s,shift:g}]})}else m=fe({positionType:"individualShift",children:[{type:"elem",elem:a,shift:h},{type:"elem",elem:o,shift:c,wrapperClasses:["svg-align"]}]});return O(["mrel","x-arrow"],[m],e)},mathmlBuilder(t,e){var r=Un(t.label);r.setAttribute("minsize",t.label.charAt(0)==="x"?"1.75em":"3.0em");var n;if(t.body){var a=An(be(t.body,e));if(t.below){var i=An(be(t.below,e));n=new q("munderover",[r,i,a])}else n=new q("mover",[r,a])}else if(t.below){var s=An(be(t.below,e));n=new q("munder",[r,s])}else n=An(),n=new q("mover",[r,n]);return n}});function Em(t,e){var r=Fe(t.body,e,!0);return O([t.mclass],r,e)}function Mm(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:Oe(a),isCharacterBox:Xt(a)}},htmlBuilder:Em,mathmlBuilder:Mm});var Vn=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:Vn(e[0]),body:Oe(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=Vn(a):s="mrel";var o={type:"op",mode:a.mode,limits:!0,alwaysHandleSupSub:!0,parentIsSupSub:!1,symbol:!1,suppressBaseShift:n!=="\\stackrel",body:Oe(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:Vn(e[0]),body:Oe(e[0])}},htmlBuilder(t,e){var r=Fe(t.body,e,!0),n=O([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 Cm={">":"\\\\cdrightarrow","<":"\\\\cdleftarrow","=":"\\\\cdlongequal",A:"\\uparrow",V:"\\downarrow","|":"\\Vert",".":"no arrow"},mo=()=>({type:"styling",body:[],mode:"math",style:"display",resetFont:!0}),po=t=>t.type==="textord"&&t.text==="@",Im=(t,e)=>(t.type==="mathord"||t.type==="atom")&&t.text===e;function zm(t,e,r){var n=Cm[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 h={type:"textord",text:"\\Vert",mode:"math"};return r.callFunction("\\Big",[h],[])}default:return{type:"textord",text:" ",mode:"math"}}}function Rm(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=mo(),c=0;c<s.length;c++)if(!po(s[c]))o.body.push(s[c]);else{n.push(o),c+=1;var h=Gn(s[c]).text,m=new Array(2);if(m[0]={type:"ordgroup",mode:"math",body:[]},m[1]={type:"ordgroup",mode:"math",body:[]},!"=|.".includes(h))if("<>AV".includes(h))for(var g=0;g<2;g++){for(var v=!0,w=c+1;w<s.length;w++){if(Im(s[w],h)){v=!1,c=w;break}if(po(s[w]))throw new B("Missing a "+h+" character to complete a CD arrow.",s[w]);m[g].body.push(s[w])}if(v)throw new B("Missing a "+h+" character to complete a CD arrow.",s[c])}else throw new B('Expected one of "<>AV=|." after @',s[c]);var A=zm(h,m,t),M={type:"styling",body:[A],mode:"math",style:"display",resetFont:!0};n.push(M),o=mo()}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=s0(pe(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=s0(pe(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=Gi(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 Dm=(t,e)=>{var r=Fe(t.body,e.withColor(t.color),!1);return Zt(r)},Nm=(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:Oe(a)}},htmlBuilder:Dm,mathmlBuilder:Nm});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||!pt({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=O(["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 di={"\\global":"\\global","\\long":"\\\\globallong","\\\\globallong":"\\\\globallong","\\def":"\\gdef","\\gdef":"\\gdef","\\edef":"\\xdef","\\xdef":"\\xdef","\\let":"\\\\globallet","\\futurelet":"\\\\globalfuture"},vc=t=>{var e=t.text;if(/^(?:[\\{}$&#^_]|EOF)$/.test(e))throw new B("Expected a control sequence",t);return e},_m=t=>{var e=t.gullet.popToken();return e.text==="="&&(e=t.gullet.popToken(),e.text===" "&&(e=t.gullet.popToken())),e},bc=(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(di[n.text])return(r==="\\global"||r==="\\\\globallong")&&(n.text=di[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(),h=c.tokens;return s&&h.unshift(s),(r==="\\edef"||r==="\\xdef")&&(h=e.gullet.expandTokens(h),h.reverse()),e.gullet.macros.set(a,{tokens:h,numArgs:i,delimiters:o},r===di[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=vc(e.gullet.popToken());e.gullet.consumeSpaces();var a=_m(e);return bc(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=vc(e.gullet.popToken()),a=e.gullet.popToken(),i=e.gullet.popToken();return bc(e,n,i,r==="\\\\globalfuture"),e.gullet.pushToken(i),e.gullet.pushToken(a),{type:"internal",mode:e.mode}}});var D0=function(e,r,n){var a=Te.math[e]&&Te.math[e].replace,i=qi(a||e,r,n);if(!i)throw new Error("Unsupported symbol "+e+" and font size "+r+".");return i},ji=function(e,r,n,a){var i=n.havingBaseStyle(r),s=O(a.concat(i.sizingClasses(n)),[e],n),o=i.sizeMultiplier/n.sizeMultiplier;return s.height*=o,s.depth*=o,s.maxFontSize=i.sizeMultiplier,s},yc=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},Lm=function(e,r,n,a,i,s){var o=nt(e,"Main-Regular",i,a),c=ji(o,r,a,s);return yc(c,a,r),c},Om=function(e,r,n,a){return nt(e,"Size"+r+"-Regular",n,a)},wc=function(e,r,n,a,i,s){var o=Om(e,r,i,a),c=ji(O(["delimsizing","size"+r],[o],a),ae.TEXT,a,s);return n&&yc(c,a,ae.TEXT),c},Ca=function(e,r,n,a){var i;r==="Size1-Regular"?i="delim-size1":i="delim-size4";var s=O(["delimsizinginner",i],[O([],[nt(e,r,n,a)])]);return{type:"elem",elem:s}},Ia=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",$d(e,Math.round(1e3*r))),s=new dr([i],{width:H(a),height:H(r),style:"width:"+H(a),viewBox:"0 0 "+1e3*a+" "+Math.round(1e3*r),preserveAspectRatio:"xMinYMin"}),o=mr([],[s],n);return o.height=r,o.style.height=H(r),o.style.width=H(a),{type:"elem",elem:o}},mi=.008,Tn={type:"kern",size:-1*mi},Pm=new Set(["|","\\lvert","\\rvert","\\vert"]),$m=new Set(["\\|","\\lVert","\\rVert","\\Vert"]),kc=function(e,r,n,a,i,s){var o,c,h,m,g="",v=0;o=h=m=e,c=null;var w="Size1-Regular";e==="\\uparrow"?h=m="⏐":e==="\\Uparrow"?h=m="‖":e==="\\downarrow"?o=h="⏐":e==="\\Downarrow"?o=h="‖":e==="\\updownarrow"?(o="\\uparrow",h="⏐",m="\\downarrow"):e==="\\Updownarrow"?(o="\\Uparrow",h="‖",m="\\Downarrow"):Pm.has(e)?(h="∣",g="vert",v=333):$m.has(e)?(h="∥",g="doublevert",v=556):e==="["||e==="\\lbrack"?(o="⎡",h="⎢",m="⎣",w="Size4-Regular",g="lbrack",v=667):e==="]"||e==="\\rbrack"?(o="⎤",h="⎥",m="⎦",w="Size4-Regular",g="rbrack",v=667):e==="\\lfloor"||e==="⌊"?(h=o="⎢",m="⎣",w="Size4-Regular",g="lfloor",v=667):e==="\\lceil"||e==="⌈"?(o="⎡",h=m="⎢",w="Size4-Regular",g="lceil",v=667):e==="\\rfloor"||e==="⌋"?(h=o="⎥",m="⎦",w="Size4-Regular",g="rfloor",v=667):e==="\\rceil"||e==="⌉"?(o="⎤",h=m="⎥",w="Size4-Regular",g="rceil",v=667):e==="("||e==="\\lparen"?(o="⎛",h="⎜",m="⎝",w="Size4-Regular",g="lparen",v=875):e===")"||e==="\\rparen"?(o="⎞",h="⎟",m="⎠",w="Size4-Regular",g="rparen",v=875):e==="\\{"||e==="\\lbrace"?(o="⎧",c="⎨",m="⎩",h="⎪",w="Size4-Regular"):e==="\\}"||e==="\\rbrace"?(o="⎫",c="⎬",m="⎭",h="⎪",w="Size4-Regular"):e==="\\lgroup"||e==="⟮"?(o="⎧",m="⎩",h="⎪",w="Size4-Regular"):e==="\\rgroup"||e==="⟯"?(o="⎫",m="⎭",h="⎪",w="Size4-Regular"):e==="\\lmoustache"||e==="⎰"?(o="⎧",m="⎭",h="⎪",w="Size4-Regular"):(e==="\\rmoustache"||e==="⎱")&&(o="⎫",m="⎩",h="⎪",w="Size4-Regular");var A=D0(o,w,i),M=A.height+A.depth,D=D0(h,w,i),S=D.height+D.depth,C=D0(m,w,i),W=C.height+C.depth,Y=0,X=1;if(c!==null){var T=D0(c,w,i);Y=T.height+T.depth,X=2}var R=M+W+Y,U=Math.max(0,Math.ceil((r-R)/(X*S))),P=R+U*X*S,$=a.fontMetrics().axisHeight;n&&($*=a.sizeMultiplier);var L=P/2-$,F=[];if(g.length>0){var K=P-M-W,J=Math.round(P*1e3),ee=Bd(g,Math.round(K*1e3)),le=new Nr(g,ee),ue=H(v/1e3),De=H(J/1e3),ge=new dr([le],{width:ue,height:De,viewBox:"0 0 "+v+" "+J}),Ae=mr([],[ge],a);Ae.height=J/1e3,Ae.style.width=ue,Ae.style.height=De,F.push({type:"elem",elem:Ae})}else{if(F.push(Ca(m,w,i,a)),F.push(Tn),c===null){var st=P-M-W+2*mi;F.push(Ia(h,st,a))}else{var wt=(P-M-W-Y)/2+2*mi;F.push(Ia(h,wt,a)),F.push(Tn),F.push(Ca(c,w,i,a)),F.push(Tn),F.push(Ia(h,wt,a))}F.push(Tn),F.push(Ca(o,w,i,a))}var Ze=a.havingBaseStyle(ae.TEXT),Qe=fe({positionType:"bottom",positionData:L,children:F});return ji(O(["delimsizing","mult"],[Qe],Ze),ae.TEXT,a,s)},za=80,Ra=.08,Da=function(e,r,n,a,i){var s=Pd(e,a,n),o=new Nr(e,s),c=new dr([o],{width:"400em",height:H(r),viewBox:"0 0 400000 "+n,preserveAspectRatio:"xMinYMin slice"});return mr(["hide-tail"],[c],i)},Bm=function(e,r){var n=r.havingBaseSizing(),a=Ec("\\surd",e*n.sizeMultiplier,Tc,n),i=n.sizeMultiplier,s=Math.max(0,r.minRuleThickness-r.fontMetrics().sqrtRuleThickness),o,c,h,m,g;return a.type==="small"?(m=1e3+1e3*s+za,e<1?i=1:e<1.4&&(i=.7),c=(1+s+Ra)/i,h=(1+s)/i,o=Da("sqrtMain",c,m,s,r),o.style.minWidth="0.853em",g=.833/i):a.type==="large"?(m=(1e3+za)*_0[a.size],h=(_0[a.size]+s)/i,c=(_0[a.size]+s+Ra)/i,o=Da("sqrtSize"+a.size,c,m,s,r),o.style.minWidth="1.02em",g=1/i):(c=e+s+Ra,h=e+s,m=Math.floor(1e3*e+s)+za,o=Da("sqrtTall",c,m,s,r),o.style.minWidth="0.742em",g=1.056),o.height=h,o.style.height=H(c),{span:o,advanceWidth:g,ruleWidth:(r.fontMetrics().sqrtRuleThickness+s)*i}},xc=new Set(["(","\\lparen",")","\\rparen","[","\\lbrack","]","\\rbrack","\\{","\\lbrace","\\}","\\rbrace","\\lfloor","\\rfloor","⌊","⌋","\\lceil","\\rceil","⌈","⌉","\\surd"]),qm=new Set(["\\uparrow","\\downarrow","\\updownarrow","\\Uparrow","\\Downarrow","\\Updownarrow","|","\\|","\\vert","\\Vert","\\lvert","\\rvert","\\lVert","\\rVert","\\lgroup","\\rgroup","⟮","⟯","\\lmoustache","\\rmoustache","⎰","⎱"]),Sc=new Set(["<",">","\\langle","\\rangle","/","\\backslash","\\lt","\\gt"]),_0=[0,1.2,1.8,2.4,3],Ac=function(e,r,n,a,i){if(e==="<"||e==="\\lt"||e==="⟨"?e="\\langle":(e===">"||e==="\\gt"||e==="⟩")&&(e="\\rangle"),xc.has(e)||Sc.has(e))return wc(e,r,!1,n,a,i);if(qm.has(e))return kc(e,_0[r],!1,n,a,i);throw new B("Illegal delimiter: '"+e+"'")},Fm=[{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}],Hm=[{type:"small",style:ae.SCRIPTSCRIPT},{type:"small",style:ae.SCRIPT},{type:"small",style:ae.TEXT},{type:"stack"}],Tc=[{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"}],Um=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.")},Ec=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=D0(e,Um(o),"math"),h=c.height+c.depth;if(o.type==="small"){var m=a.havingBaseStyle(o.style);h*=m.sizeMultiplier}if(h>r)return o}return n[n.length-1]},pi=function(e,r,n,a,i,s){e==="<"||e==="\\lt"||e==="⟨"?e="\\langle":(e===">"||e==="\\gt"||e==="⟩")&&(e="\\rangle");var o;Sc.has(e)?o=Fm:xc.has(e)?o=Tc:o=Hm;var c=Ec(e,r,o,a);return c.type==="small"?Lm(e,c.style,n,a,i,s):c.type==="large"?wc(e,c.size,n,a,i,s):kc(e,r,n,a,i,s)},Na=function(e,r,n,a,i,s){var o=a.fontMetrics().axisHeight*a.sizeMultiplier,c=901,h=5/a.fontMetrics().ptPerEm,m=Math.max(r-o,n+o),g=Math.max(m/500*c,2*m-h);return pi(e,g,!0,a,i,s)},fo={"\\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}},Wm=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 go(t){return"isMiddle"in t}function Kn(t,e){var r=jn(t);if(r&&Wm.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(F0(e[0]),t);return{type:"delimsizing",mode:t.parser.mode,size:fo[t.funcName].size,mclass:fo[t.funcName].mclass,delim:r.text}},htmlBuilder:(t,e)=>t.delim==="."?O([t.mclass]):Ac(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(_0[t.size]);return r.setAttribute("minsize",n),r.setAttribute("maxsize",n),r}});function vo(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)=>{vo(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];go(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=H0(e,["mopen"]):c=Na(t.left,n,a,e,t.mode,["mopen"]),r.unshift(c),i)for(var h=1;h<r.length;h++){var m=r[h];if(go(m)){var g=m.isMiddle;r[h]=Na(g.delim,n,a,g.options,t.mode,[])}}var v;if(t.right===".")v=H0(e,["mclose"]);else{var w=t.rightColor?e.withColor(t.rightColor):e;v=Na(t.right,n,a,w,t.mode,["mclose"])}return r.push(v),O(["minner"],r,e)},mathmlBuilder:(t,e)=>{vo(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 Ui(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=H0(e,[]):(r=Ac(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 Gm=(t,e)=>{var r=s0(pe(t.body,e),e),n=t.label.slice(1),a=e.sizeMultiplier,i,s,o=Xt(t.body);if(n==="sout")i=O(["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),h=Ie({number:.35,unit:"ex"},e),m=e.havingBaseSizing();a=a/m.sizeMultiplier;var g=r.height+r.depth+c+h;r.style.paddingLeft=H(g/2+c);var v=Math.floor(1e3*g*a),w=Ld(v),A=new dr([new Nr("phase",w)],{width:"400em",height:H(v/1e3),viewBox:"0 0 400000 "+v,preserveAspectRatio:"xMinYMin slice"});i=mr(["hide-tail"],[A],e),i.style.height=H(g),s=r.depth+c+h}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=bm(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?O(["mord","cancel-lap"],[C],e):O(["mord"],[C],e)},jm=(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:Gm,mathmlBuilder:jm});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"&&pt({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 Mc={};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)Mc[r[c]]=o;i&&(B0[e]=i),s&&(q0[e]=s)}var Cc={};function p(t,e){Cc[t]=e}class mt{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 mt(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,mt.range(this,e))}}function bo(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 Xn=t=>{var e=t.parser.settings;if(!e.displayMode)throw new B("{"+t.envName+"} can be used only in display mode.")},Vm=new Set(["gather","gather*"]);function Vi(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,h=e.singleRow,m=e.emptySingleRow,g=e.maxNumCols,v=e.leqno;if(t.gullet.beginGroup(),h||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 Y(){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(bo(t));;){var X=t.parseExpression(!1,h?"\\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(h||o)throw new B("Too many tab characters: &",t.nextToken);pt({strict:t.settings.strict,errorCode:"textEnv",errorMsg:"Too few columns specified in the {array} column argument.",report:!0})}t.consume()}else if(R==="\\end"){Y(),A.length===1&&T.type==="styling"&&T.body.length===1&&T.body[0].type==="ordgroup"&&T.body[0].body.length===0&&(M.length>1||!m)&&!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),Y(),S.push(bo(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 Ot=function(e,r){var n,a,i=e.body.length,s=e.hLinesBeforeRow,o=0,c=new Array(i),h=[],m=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 Y(ot){for(var xt=0;xt<ot.length;++xt)xt>0&&(W+=.25),h.push({pos:W,isDashed:ot[xt]})}for(Y(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 P=pe(X[a],r);R<P.depth&&(R=P.depth),T<P.height&&(T=P.height),U.cells[a]=P}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,Y(s[n+1])}var F=W/2+r.fontMetrics().axisHeight,K=e.cols||[],J=[],ee,le,ue=[];if(e.tags&&e.tags.some(ot=>ot))for(n=0;n<i;++n){var De=c[n],ge=De.pos-F,Ae=e.tags[n],st=void 0;Ae===!0?st=O(["eqn-num"],[],r):Ae===!1?st=O([],[],r):st=O([],Fe(Ae,r,!0),r),st.depth=De.depth,st.height=De.height,ue.push({type:"elem",elem:st,shift:ge})}for(a=0,le=0;a<o||le<K.length;++a,++le){for(var wt,Ze=K[le],Qe=!0;((gr=Ze)==null?void 0:gr.type)==="separator";){var gr;if(Qe||(ee=O(["arraycolsep"],[]),ee.style.width=H(r.fontMetrics().doubleRuleSep),J.push(ee)),Ze.separator==="|"||Ze.separator===":"){var ye=Ze.separator==="|"?"solid":"dashed",Qt=O(["vertical-separator"],[],r);Qt.style.height=H(W),Qt.style.borderRightWidth=H(m),Qt.style.borderRightStyle=ye,Qt.style.margin="0 "+H(-m/2);var Q0=W-F;Q0&&(Qt.style.verticalAlign=H(-Q0)),J.push(Qt)}else throw new B("Invalid separator type: "+Ze.separator);le++,Ze=K[le],Qe=!1}if(!(a>=o)){var Jt=void 0;if(a>0||e.hskipBeforeAndAfter){var J0,en;Jt=(J0=(en=Ze)==null?void 0:en.pregap)!=null?J0:v,Jt!==0&&(ee=O(["arraycolsep"],[]),ee.style.width=H(Jt),J.push(ee))}var tn=[];for(n=0;n<i;++n){var vr=c[n],$r=vr.cells[a];if($r){var rn=vr.pos-F;$r.depth=vr.depth,$r.height=vr.height,tn.push({type:"elem",elem:$r,shift:rn})}}var xe=fe({positionType:"individualShift",children:tn}),g0=O(["col-align-"+(((wt=Ze)==null?void 0:wt.align)||"c")],[xe]);if(J.push(g0),a<o-1||e.hskipBeforeAndAfter){var we,Br;Jt=(we=(Br=Ze)==null?void 0:Br.postgap)!=null?we:v,Jt!==0&&(ee=O(["arraycolsep"],[]),ee.style.width=H(Jt),J.push(ee))}}}var Je=O(["mtable"],J);if(h.length>0){for(var br=i0("katex-hline",r,m),nn=i0("katex-hdashline",r,m),kt=[{type:"elem",elem:Je,shift:0}];h.length>0;){var v0=h.pop(),qr=v0.pos-F;v0.isDashed?kt.push({type:"elem",elem:nn,shift:qr}):kt.push({type:"elem",elem:br,shift:qr})}Je=fe({positionType:"individualShift",children:kt})}if(ue.length===0)return O(["mord"],[Je],r);var an=fe({positionType:"individualShift",children:ue}),b0=O(["katex-tag"],[an],r);return Zt([Je,b0])},Km={c:"center ",l:"left ",r:"right "},Pt=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=[],h=0;h<o.length;h++)c.push(new q("mtd",[be(o[h],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 m=new q("mtable",n),g=e.arraystretch===.5?.1:.16+e.arraystretch-1+(e.addJot?.09:0);m.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 Y=A[W];Y.type==="align"?(w+=Km[Y.align],D&&(M+="none "),D=!0):Y.type==="separator"&&D&&(M+=Y.separator==="|"?"solid ":"dashed ",D=!1)}m.setAttribute("columnalign",w.trim()),/[sd]/.test(M)&&m.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 ";m.setAttribute("columnspacing",T.trim())}else e.colSeparationType==="alignat"||e.colSeparationType==="gather"?m.setAttribute("columnspacing","0em"):e.colSeparationType==="small"?m.setAttribute("columnspacing","0.2778em"):e.colSeparationType==="CD"?m.setAttribute("columnspacing","0.5em"):m.setAttribute("columnspacing","1em");var U="",P=e.hLinesBeforeRow;v+=P[0].length>0?"left ":"",v+=P[P.length-1].length>0?"right ":"";for(var $=1;$<P.length-1;$++)U+=P[$].length===0?"none ":P[$][0]?"dashed ":"solid ";return/[sd]/.test(U)&&m.setAttribute("rowlines",U.trim()),v!==""&&(m=new q("menclose",[m]),m.setAttribute("notation",v.trim())),e.arraystretch&&e.arraystretch<1&&(m=new q("mstyle",[m]),m.setAttribute("scriptlevel","1")),m},Ic=function(e,r){e.envName.includes("ed")||Xn(e);var n=[],a=e.envName==="split",i=fr(e.parser,{cols:n,addJot:!0,autoTag:a?void 0:Vi(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 h="Number of columns should be a positive integer",m=Gi(r[0],h);if(!/^[0-9]+$/.test(m)||Number(m)<1)throw new B(h,r[0]);s=Number(m),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=jn(e[0]),n=r?[e[0]]:oe(e[0],"ordgroup").body,a=n.map(function(s){var o=Gn(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:Ot,mathmlBuilder:Pt});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:Ot,mathmlBuilder:Pt});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:Ot,mathmlBuilder:Pt});Lt({type:"array",names:["subarray"],props:{numArgs:1},handler(t,e){var r=jn(e[0]),n=r?[e[0]]:oe(e[0],"ordgroup").body,a=n.map(function(o){var c=Gn(o),h=c.text;if("lc".includes(h))return{type:"align",align:h};throw new B("Unknown column alignment: "+h,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:Ot,mathmlBuilder:Pt});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:Ot,mathmlBuilder:Pt});Lt({type:"array",names:["align","align*","aligned","split"],props:{numArgs:0},handler:Ic,htmlBuilder:Ot,mathmlBuilder:Pt});Lt({type:"array",names:["gathered","gather","gather*"],props:{numArgs:0},handler(t){Vm.has(t.envName)&&Xn(t);var e={cols:[{type:"align",align:"c"}],addJot:!0,colSeparationType:"gather",autoTag:Vi(t.envName),emptySingleRow:!0,leqno:t.parser.settings.leqno};return fr(t.parser,e,"display")},htmlBuilder:Ot,mathmlBuilder:Pt});Lt({type:"array",names:["alignat","alignat*","alignedat"],props:{numArgs:1},handler:Ic,htmlBuilder:Ot,mathmlBuilder:Pt});Lt({type:"array",names:["equation","equation*"],props:{numArgs:0},handler(t){Xn(t);var e={autoTag:Vi(t.envName),emptySingleRow:!0,singleRow:!0,maxNumCols:1,leqno:t.parser.settings.leqno};return fr(t.parser,e,"display")},htmlBuilder:Ot,mathmlBuilder:Pt});Lt({type:"array",names:["CD"],props:{numArgs:0},handler(t){return Xn(t),Rm(t.parser)},htmlBuilder:Ot,mathmlBuilder:Pt});p("\\nonumber","\\gdef\\@eqnsw{0}");p("\\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 yo=Mc;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=Gi(a,"Environment name should contain only text characters and spaces",!0);if(n==="\\begin"){if(!Object.prototype.hasOwnProperty.call(yo,i))throw new B("No such environment: "+i,a);var s=yo[i],o=r.parseArguments("\\begin{"+i+"}",s),c=o.args,h=o.optArgs,m={mode:r.mode,envName:i,parser:r},g=s.handler(m,c,h);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 Xm=(t,e)=>{var r=t.font,n=e.withFont(r);return pe(t.body,n)},Ym=(t,e)=>{var r=t.font,n=e.withFont(r);return be(t.body,n)},wo={"\\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=F0(e[0]),i=n in wo?wo[n]:n;return{type:"font",mode:r.mode,font:i.slice(1),body:a}},htmlBuilder:Xm,mathmlBuilder:Ym});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:Vn(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 Zm=(t,e)=>{var r=e.style,n=r.fracNum(),a=r.fracDen(),i;i=e.havingStyle(n);var s=pe(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 h=pe(t.denom,i,e),m,g,v;t.hasBarLine?(t.barSize?(g=Ie(t.barSize,e),m=i0("frac-line",e,g)):m=i0("frac-line",e),g=m.height,v=m.height):(m=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(m){var C=e.fontMetrics().axisHeight;w-s.depth-(C+.5*g)<A&&(w+=A-(w-s.depth-(C+.5*g))),C-.5*g-(h.height-M)<A&&(M+=A-(C-.5*g-(h.height-M)));var W=-(C-.5*g);D=fe({positionType:"individualShift",children:[{type:"elem",elem:h,shift:M},{type:"elem",elem:m,shift:W},{type:"elem",elem:s,shift:-w}]})}else{var S=w-s.depth-(h.height-M);S<A&&(w+=.5*(A-S),M+=.5*(A-S)),D=fe({positionType:"individualShift",children:[{type:"elem",elem:h,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 Y;r.size===ae.DISPLAY.size?Y=e.fontMetrics().delim1:r.size===ae.SCRIPTSCRIPT.size?Y=e.havingStyle(ae.SCRIPT).fontMetrics().delim2:Y=e.fontMetrics().delim2;var X,T;return t.leftDelim==null?X=H0(e,["mopen"]):X=pi(t.leftDelim,Y,!0,e.havingStyle(r),t.mode,["mopen"]),t.continued?T=O([]):t.rightDelim==null?T=H0(e,["mclose"]):T=pi(t.rightDelim,Y,!0,e.havingStyle(r),t.mode,["mclose"]),O(["mord"].concat(i.sizingClasses(e)),[X,O(["mfrac"],[D]),T],e)},Qm=(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 Pe(t.leftDelim.replace("\\",""))]);i.setAttribute("fence","true"),a.push(i)}if(a.push(r),t.rightDelim!=null){var s=new q("mo",[new Pe(t.rightDelim.replace("\\",""))]);s.setAttribute("fence","true"),a.push(s)}return Ui(a)}return r},zc=(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 h=n==="\\cfrac",m=null;return h||n.startsWith("\\d")?m="display":n.startsWith("\\t")&&(m="text"),zc({type:"genfrac",mode:r.mode,numer:a,denom:i,continued:h,hasBarLine:s,leftDelim:o,rightDelim:c,barSize:null},m)},htmlBuilder:Zm,mathmlBuilder:Qm});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 ko=["display","text","script","scriptscript"],xo=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=F0(e[0]),s=i.type==="atom"&&i.family==="open"?xo(i.text):null,o=F0(e[1]),c=o.type==="atom"&&o.family==="close"?xo(o.text):null,h=oe(e[2],"size"),m,g=null;h.isBlank?m=!0:(g=h.value,m=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=ko[Number(A.text)]}}else w=oe(w,"textord"),v=ko[Number(w.text)];return zc({type:"genfrac",mode:r.mode,numer:n,denom:a,continued:!1,hasBarLine:m,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 Rc=(t,e)=>{var r=e.style,n,a;t.type==="supsub"?(n=t.sup?pe(t.sup,e.havingStyle(r.sup()),e):pe(t.sub,e.havingStyle(r.sub()),e),a=oe(t.base,"horizBrace")):a=oe(t,"horizBrace");var i=pe(a.base,e.havingBaseStyle(ae.DISPLAY)),s=Wn(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=O(["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 O(["minner",a.isOver?"mover":"munder"],[o],e)},Jm=(t,e)=>{var r=Un(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:Rc,mathmlBuilder:Jm});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:Oe(n)}:r.formatUnsupportedCmd("\\href")},htmlBuilder:(t,e)=>{var r=Fe(t.body,e,!1);return em(t.href,[],r,e)},mathmlBuilder:(t,e)=>{var r=pr(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:Oe(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:Oe(e[0])}},htmlBuilder(t,e){var r=Fe(t.body,e.withFont(""),!1);return Zt(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&&pt({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="{,}",h=[],m="",g=0;g<a.length;g++)a.startsWith(c,g)?(m+=",",g+=c.length-1):a[g]===","?(h.push(m),m=""):m+=a[g];h.push(m);for(var v=0;v<h.length;v++){var w=h[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:Oe(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=O(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)=>pr(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:Oe(e[0]),mathml:Oe(e[1])}},htmlBuilder:(t,e)=>{var r=Fe(t.html,e,!1);return Zt(r)},mathmlBuilder:(t,e)=>pr(t.mathml,e)});var _a=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(!rc(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,h=c.split(","),m=0;m<h.length;m++){var g=h[m].split("=");if(g.length===2){var v=g[1].trim();switch(g[0].trim()){case"alt":o=v;break;case"width":a=_a(v);break;case"height":i=_a(v);break;case"totalheight":s=_a(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 Ud(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||pt({strict:r.settings.strict,errorCode:"mathVsTextUnits",errorMsg:"LaTeX's "+n+" supports only mu units, "+("not "+a.value.unit+" units"),report:!0}),r.mode!=="math"&&pt({strict:r.settings.strict,errorCode:"mathVsTextUnits",errorMsg:"LaTeX's "+n+" works only in math mode",report:!0})):s&&pt({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 lc(t.dimension,e)},mathmlBuilder(t,e){var r=Ie(t.dimension,e);return new pc(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=O([],[pe(t.body,e)]),r=O(["katex-inner"],[r],e)):r=O(["katex-inner"],[pe(t.body,e)]);var n=O(["katex-fix"],[]),a=O([t.alignment],[r,n],e),i=O(["katex-strut"]);return i.style.height=H(a.height+a.depth),a.depth&&(i.style.verticalAlign=H(-a.depth)),a.children.unshift(i),a=O(["katex-thinbox"],[a],e),O(["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 So=(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:Oe(e[0]),text:Oe(e[1]),script:Oe(e[2]),scriptscript:Oe(e[3])}},htmlBuilder:(t,e)=>{var r=So(t,e),n=Fe(r,e,!1);return Zt(n)},mathmlBuilder:(t,e)=>{var r=So(t,e);return pr(r,e)}});var Dc=(t,e,r,n,a,i,s)=>{t=O([],[t]);var o=r&&Xt(r),c,h;if(e){var m=pe(e,n.havingStyle(a.sup()),n);h={elem:m,kern:Math.max(n.fontMetrics().bigOpSpacing1,n.fontMetrics().bigOpSpacing3-m.depth)}}if(r){var g=pe(r,n.havingStyle(a.sub()),n);c={elem:g,kern:Math.max(n.fontMetrics().bigOpSpacing2,n.fontMetrics().bigOpSpacing4-g.height)}}var v;if(h&&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:h.kern},{type:"elem",elem:h.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(h){var M=t.depth+s;v=fe({positionType:"bottom",positionData:M,children:[{type:"elem",elem:t},{type:"kern",size:h.kern},{type:"elem",elem:h.elem,marginLeft:H(i)},{type:"kern",size:n.fontMetrics().bigOpSpacing5}]})}else return t;var D=[v];if(c&&i!==0&&!o){var S=O(["mspace"],[],n);S.style.marginRight=H(i),D.unshift(S)}return O(["mop","op-limits"],D,n)},Nc=new Set(["\\smallint"]),_c=(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&&!Nc.has(i.name)&&(o=!0);var c,h;if(i.symbol){var m=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,m,"math",e,["mop","op-symbol",o?"large-op":"small-op"]),h=c.italic,g.length>0){var v=uc(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=h}}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=O(["mop"],w,e)}else{for(var A=[],M=1;M<i.name.length;M++)A.push(Fi(i.name[M],i.mode,e));c=O(["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?Dc(c,r,n,e,s,S,D):(D&&(c.style.position="relative",c.style.top=H(D)),c)},ep=(t,e)=>{var r;if(t.symbol)r=new q("mo",[Mt(t.name,t.mode)]),Nc.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 Pe(t.name.slice(1))]);var n=new q("mo",[Mt("⁡","text")]);t.parentIsSupSub?r=new q("mrow",[r,n]):r=mc([r,n])}return r},tp={"∏":"\\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=tp[a]),{type:"op",mode:r.mode,limits:!0,parentIsSupSub:!1,symbol:!0,name:a}},htmlBuilder:_c,mathmlBuilder:ep});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:Oe(n)}}});var rp={"∫":"\\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=rp[n]),{type:"op",mode:e.mode,limits:!1,parentIsSupSub:!1,symbol:!0,name:n}}});var Lc=(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),h=0;h<c.length;h++){var m=c[h];m instanceof Et&&(m.text=m.text.replace(/\u2212/,"-").replace(/\u2217/,"*"))}s=O(["mop"],c,e)}else s=O(["mop"],[],e);return a?Dc(s,r,n,e,e.style,0,0):s},np=(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 pc))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 Pe?s.text=s.text.replace(/\u2212/,"-").replace(/\u2217/,"*"):n=!1;break}default:n=!1}else n=!1}if(n){var o=r.map(m=>m.toText()).join("");r=[new Pe(o)]}var c=new q("mi",r);c.setAttribute("mathvariant","normal");var h=new q("mo",[Mt("⁡","text")]);return t.parentIsSupSub?new q("mrow",[c,h]):mc([c,h])};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:Oe(a),alwaysHandleSupSub:n==="\\operatornamewithlimits",limits:!1,parentIsSupSub:!1}},htmlBuilder:Lc,mathmlBuilder:np});p("\\operatorname","\\@ifstar\\operatornamewithlimits\\operatorname@");Or({type:"ordgroup",htmlBuilder(t,e){return t.semisimple?Zt(Fe(t.body,e,!1)):O(["mord"],Fe(t.body,e,!0),e)},mathmlBuilder(t,e){return pr(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=pe(t.body,e.havingCrampedStyle()),n=i0("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 O(["mord","katex-overline"],[i],e)},mathmlBuilder(t,e){var r=new q("mo",[new Pe("‾")]);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:Oe(n)}},htmlBuilder:(t,e)=>{var r=Fe(t.body,e.withPhantom(),!1);return Zt(r)},mathmlBuilder:(t,e)=>{var r=yt(t.body,e);return new q("mphantom",r)}});p("\\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=O(["katex-inner"],[pe(t.body,e.withPhantom())]),n=O(["katex-fix"],[]);return O(["mord","rlap"],[r,n],e)},mathmlBuilder:(t,e)=>{var r=yt(Oe(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=pe(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 Oc=(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:Oc,htmlBuilder(t,e){return O(["mord","reflectbox"],[pe(t.body,e)],e)},mathmlBuilder(t,e){return be(t.body,e)}});G({type:"reflectbox",names:["\\mathreflectbox"],numArgs:1,argTypes:["math"],handler:Oc});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=O(["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 Pc(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 Zt(n)}var Ao=["\\tiny","\\sixptsize","\\scriptsize","\\footnotesize","\\small","\\normalsize","\\large","\\Large","\\LARGE","\\huge","\\Huge"],ap=(t,e)=>{var r=e.havingSize(t.size);return Pc(t.body,r,e)};G({type:"sizing",names:Ao,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:Ao.indexOf(n)+1,body:i}},htmlBuilder:ap,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 h=s.body[c];if(o=Gn(h).text,o==="t")a=!0;else if(o==="b")i=!0;else{a=!1,i=!1;break}}else a=!0,i=!0;var m=e[0];return{type:"smash",mode:n.mode,body:m,smashHeight:a,smashDepth:i}},htmlBuilder:(t,e)=>{var r=O([],[pe(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 O(["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 O(["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=pe(t.body,e.havingCrampedStyle());r.height===0&&(r.height=e.fontMetrics().xHeight),r=s0(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=Bm(o,e),h=c.span,m=c.ruleWidth,g=c.advanceWidth,v=h.height-m;v>r.height+r.depth+s&&(s=(s+v-r.height-r.depth)/2);var w=h.height-r.height-s-m;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:h},{type:"kern",size:m}]});if(t.index){var M=e.havingStyle(ae.SCRIPTSCRIPT),D=pe(t.index,M,e),S=.6*(A.height-A.depth),C=fe({positionType:"shift",positionData:-S,children:[{type:"elem",elem:D}]}),W=O(["katex-root"],[C]);return O(["mord","sqrt"],[W,A],e)}else return O(["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 fi={display:ae.DISPLAY,text:ae.TEXT,script:ae.SCRIPT,scriptscript:ae.SCRIPTSCRIPT};function ip(t){return t in fi}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(!ip(s))throw new Error("Unknown style: "+s);return{type:"styling",mode:a.mode,style:s,body:i}},htmlBuilder(t,e){var r=fi[t.style],n=e.havingStyle(r);return t.resetFont&&(n=n.withFont("")),Pc(t.body,n,e)},mathmlBuilder(t,e){var r=fi[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 sp=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?_c:null}else if(n.type==="operatorname"){var i=n.alwaysHandleSupSub&&(r.style.size===ae.DISPLAY.size||n.limits);return i?Lc:null}else{if(n.type==="accent")return Xt(n.base)?gc:null;if(n.type==="horizBrace"){var s=!e.sub;return s===n.isOver?Rc:null}else return null}else return null};Or({type:"supsub",htmlBuilder(t,e){var r=sp(t,e);if(r)return r(t,e);var n=t.base,a=t.sup,i=t.sub,s=pe(n,e),o,c,h=e.fontMetrics(),m=0,g=0,v=n&&Xt(n);if(a){var w=e.havingStyle(e.style.sup());o=pe(a,w,e),v||(m=s.height-w.fontMetrics().supDrop*w.sizeMultiplier/e.sizeMultiplier)}if(i){var A=e.havingStyle(e.style.sub());c=pe(i,A,e),v||(g=s.depth+A.fontMetrics().subDrop*A.sizeMultiplier/e.sizeMultiplier)}var M;e.style===ae.DISPLAY?M=h.sup1:e.style.cramped?M=h.sup3:M=h.sup2;var D=e.sizeMultiplier,S=H(.5/h.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 Y;C=H(-((Y=s.italic)!=null?Y:0))}}var X;if(o&&c){m=Math.max(m,M,o.depth+.25*h.xHeight),g=Math.max(g,h.sub2);var T=h.defaultRuleThickness,R=4*T;if(m-o.depth-(c.height-g)<R){g=R-(m-o.depth)+c.height;var U=.8*h.xHeight-(m-o.depth);U>0&&(m+=U,g-=U)}var P=[{type:"elem",elem:c,shift:g,marginRight:S,marginLeft:C},{type:"elem",elem:o,shift:-m,marginRight:S}];X=fe({positionType:"individualShift",children:P})}else if(c){g=Math.max(g,h.sub1,c.height-.8*h.xHeight);var $=[{type:"elem",elem:c,marginLeft:C,marginRight:S}];X=fe({positionType:"shift",positionData:g,children:$})}else if(o)m=Math.max(m,M,o.depth+.25*h.xHeight),X=fe({positionType:"shift",positionData:-m,children:[{type:"elem",elem:o,marginRight:S}]});else throw new Error("supsub must have either sup or sub.");var L=hi(s,"right")||"mord";return O([L],[s,O(["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 h=t.base;h&&h.type==="op"&&h.limits&&e.style===ae.DISPLAY||h&&h.type==="operatorname"&&h.alwaysHandleSupSub&&(e.style===ae.DISPLAY||h.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 Fi(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=Wi(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 $c={mi:"italic",mn:"normal",mtext:"normal"};Or({type:"mathord",htmlBuilder(t,e){return Hn(t,e)},mathmlBuilder(t,e){var r=new q("mi",[Mt(t.text,t.mode,e)]),n=Wi(t,e)||"italic";return n!==$c[r.type]&&r.setAttribute("mathvariant",n),r}});Or({type:"textord",htmlBuilder(t,e){return Hn(t,e)},mathmlBuilder(t,e){var r=Mt(t.text,t.mode,e),n=Wi(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!==$c[a.type]&&a.setAttribute("mathvariant",n),a}});var To=new Map([["\\nobreak","nobreak"],["\\allowbreak","allowbreak"]]),Eo=new Map([[" ",{}],["\\ ",{}],["~",{className:"nobreak"}],["\\space",{}],["\\nobreakspace",{className:"nobreak"}]]);Or({type:"spacing",htmlBuilder(t,e){var r=Eo.get(t.text),n=To.get(t.text);if(r){var a=r.className||"";if(t.mode==="text"){var i=Hn(t,e);return i.classes.push(a),i}else return O(["mspace",a],[Fi(t.text,t.mode,e)],e)}else{if(n)return O(["mspace",n],[],e);throw new B('Unknown type of space "'+t.text+'"')}},mathmlBuilder(t,e){var r;if(Eo.has(t.text))r=new q("mtext",[new Pe(" ")]);else{if(To.has(t.text))return new q("mspace");throw new B('Unknown type of space "'+t.text+'"')}return r}});var Mo=()=>{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",[Mo(),new q("mtd",[pr(t.body,e)]),Mo(),new q("mtd",[pr(t.tag,e)])])]);return r.setAttribute("width","100%"),r}});var Co={"\\text":void 0,"\\textrm":"textrm","\\textsf":"textsf","\\texttt":"texttt","\\textnormal":"textrm"},Io={"\\textbf":"textbf","\\textmd":"textmd"},op={"\\textit":"textit","\\textup":"textup"},zo=(t,e)=>{var r=t.font;if(r){if(Co[r])return e.withTextFontFamily(Co[r]);if(Io[r])return e.withTextFontWeight(Io[r]);if(r==="\\emph")return e.fontShape==="textit"?e.withTextFontShape("textup"):e.withTextFontShape("textit")}else return e;return e.withTextFontShape(op[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:Oe(a),font:n}},htmlBuilder(t,e){var r=zo(t,e),n=Fe(t.body,r,!0);return O(["mord","text"],n,r)},mathmlBuilder(t,e){var r=zo(t,e);return pr(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=pe(t.body,e),n=i0("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 O(["mord","katex-underline"],[i],e)},mathmlBuilder(t,e){var r=new q("mo",[new Pe("‾")]);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=pe(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=Ro(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 O(["mord","text"].concat(a.sizingClasses(e)),oc(n),a)},mathmlBuilder(t,e){var r=new Pe(Ro(t)),n=new q("mtext",[r]);return n.setAttribute("mathvariant","monospace"),n}});var Ro=t=>t.body.replace(/ /g,t.star?"␣":" "),or=hc,Bc=`[ \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 qd(t){return"toText"in t}class p0{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(qd(e))return e.toText();throw new Error("Expected MathDomNode with toText, got "+e.constructor.name)}).join("")}}var ri={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},Fd={ex:!0,em:!0,mu:!0},rc=function(e){return typeof e!="string"&&(e=e.unit),e in ri||e in Fd||e==="ex"},Ie=function(e,r){var n;if(e.unit in ri)n=ri[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"},hr=function(e){return e.filter(r=>r).join(" ")},$i=function(e){var r="";for(var n of Object.keys(e)){var a=e[n];a!==void 0&&(r+=pd(n)+":"+a+";")}return r},nc=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)}},ac=function(e){var r=document.createElement(e);r.className=hr(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},Hd=/[\s"'>/=\x00-\x1f]/,ic=function(e){var r="<"+e;this.classes.length&&(r+=' class="'+Xe(hr(this.classes))+'"');var n=$i(this.style);n&&(r+=' style="'+Xe(n)+'"');for(var a of Object.keys(this.attributes)){if(Hd.test(a))throw new B("Invalid attribute name '"+a+"'");r+=" "+a+'="'+Xe(this.attributes[a])+'"'}r+=">";for(var i=0;i<this.children.length;i++)r+=this.children[i].toMarkup();return r+="</"+e+">",r};class G0{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,nc.call(this,e,n,a),this.children=r||[]}setAttribute(e,r){this.attributes[e]=r}hasClass(e){return this.classes.includes(e)}toNode(){return ac.call(this,"span")}toMarkup(){return ic.call(this,"span")}}class Bi{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,nc.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 ac.call(this,"a")}toMarkup(){return ic.call(this,"a")}}class Ud{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="'+Xe(this.src)+'"'+(' alt="'+Xe(this.alt)+'"'),r=$i(this.style);return r&&(e+=' style="'+Xe(r)+'"'),e+="'/>",e}}var Wd={î:"ı̂",ï:"ı̈",í:"ı́",ì:"ı̀"};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 h=Id(this.text.charCodeAt(0));h&&this.classes.push(h+"_fallback"),/[îïíì]/.test(this.text)&&(this.text=Wd[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=hr(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+=Xe(hr(this.classes)),r+='"');var n="";this.italic>0&&(n+="margin-right:"+H(this.italic)+";"),n+=$i(this.style),n&&(e=!0,r+=' style="'+Xe(n)+'"');var a=Xe(this.text);return e?(r+=">",r+=a,r+="</span>",r):a}}class dr{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+'="'+Xe(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="'+Xe(this.alternate)+'"/>':'<path d="'+Xe(Ks[this.pathName])+'"/>'}}class Ys{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+'="'+Xe(this.attributes[r])+'"';return e+="/>",e}}function Gd(t){if(t instanceof Et)return t;throw new Error("Expected symbolNode but got "+String(t)+".")}function jd(t){if(t instanceof G0)return t;throw new Error("Expected span<HtmlDomNode> but got "+String(t)+".")}var Vd=t=>t instanceof G0||t instanceof Bi||t instanceof p0,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]}},ka={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]},Xs={Å:"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 qi(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 Xs&&(n=Xs[t[0]].charCodeAt(0),a=Ut[e][n]),!a&&r==="text"&&tc(n)&&(a=Ut[e][77]),a)return{depth:a[0],height:a[1],italic:a[2],skew:a[3],width:a[4]}}var xa={};function Kd(t){var e;if(t>=5?e=0:t>=3?e=1:e=2,!xa[e]){var r=xa[e]={cssEmPerMu:ka.quad[e]/18};for(var n of Object.keys(ka))r[n]=ka[n][e]}return xa[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",d="main",b="ams",Me="accent-token",j="bin",it="close",f0="inner",Q="mathord",$e="op-token",bt="open",j0="punct",y="rel",Xt="spacing",k="textord";l(u,d,y,"≡","\\equiv",!0);l(u,d,y,"≺","\\prec",!0);l(u,d,y,"≻","\\succ",!0);l(u,d,y,"∼","\\sim",!0);l(u,d,y,"⊥","\\perp");l(u,d,y,"⪯","\\preceq",!0);l(u,d,y,"⪰","\\succeq",!0);l(u,d,y,"≃","\\simeq",!0);l(u,d,y,"∣","\\mid",!0);l(u,d,y,"≪","\\ll",!0);l(u,d,y,"≫","\\gg",!0);l(u,d,y,"≍","\\asymp",!0);l(u,d,y,"∥","\\parallel");l(u,d,y,"⋈","\\bowtie",!0);l(u,d,y,"⌣","\\smile",!0);l(u,d,y,"⊑","\\sqsubseteq",!0);l(u,d,y,"⊒","\\sqsupseteq",!0);l(u,d,y,"≐","\\doteq",!0);l(u,d,y,"⌢","\\frown",!0);l(u,d,y,"∋","\\ni",!0);l(u,d,y,"∝","\\propto",!0);l(u,d,y,"⊢","\\vdash",!0);l(u,d,y,"⊣","\\dashv",!0);l(u,d,y,"∋","\\owns");l(u,d,j0,".","\\ldotp");l(u,d,j0,"⋅","\\cdotp");l(u,d,j0,"⋅","·");l(_,d,k,"⋅","·");l(u,d,k,"#","\\#");l(_,d,k,"#","\\#");l(u,d,k,"&","\\&");l(_,d,k,"&","\\&");l(u,d,k,"ℵ","\\aleph",!0);l(u,d,k,"∀","\\forall",!0);l(u,d,k,"ℏ","\\hbar",!0);l(u,d,k,"∃","\\exists",!0);l(u,d,k,"∇","\\nabla",!0);l(u,d,k,"♭","\\flat",!0);l(u,d,k,"ℓ","\\ell",!0);l(u,d,k,"♮","\\natural",!0);l(u,d,k,"♣","\\clubsuit",!0);l(u,d,k,"℘","\\wp",!0);l(u,d,k,"♯","\\sharp",!0);l(u,d,k,"♢","\\diamondsuit",!0);l(u,d,k,"ℜ","\\Re",!0);l(u,d,k,"♡","\\heartsuit",!0);l(u,d,k,"ℑ","\\Im",!0);l(u,d,k,"♠","\\spadesuit",!0);l(u,d,k,"§","\\S",!0);l(_,d,k,"§","\\S");l(u,d,k,"¶","\\P",!0);l(_,d,k,"¶","\\P");l(u,d,k,"†","\\dag");l(_,d,k,"†","\\dag");l(_,d,k,"†","\\textdagger");l(u,d,k,"‡","\\ddag");l(_,d,k,"‡","\\ddag");l(_,d,k,"‡","\\textdaggerdbl");l(u,d,it,"⎱","\\rmoustache",!0);l(u,d,bt,"⎰","\\lmoustache",!0);l(u,d,it,"⟯","\\rgroup",!0);l(u,d,bt,"⟮","\\lgroup",!0);l(u,d,j,"∓","\\mp",!0);l(u,d,j,"⊖","\\ominus",!0);l(u,d,j,"⊎","\\uplus",!0);l(u,d,j,"⊓","\\sqcap",!0);l(u,d,j,"∗","\\ast");l(u,d,j,"⊔","\\sqcup",!0);l(u,d,j,"◯","\\bigcirc",!0);l(u,d,j,"∙","\\bullet",!0);l(u,d,j,"‡","\\ddagger");l(u,d,j,"≀","\\wr",!0);l(u,d,j,"⨿","\\amalg");l(u,d,j,"&","\\And");l(u,d,y,"⟵","\\longleftarrow",!0);l(u,d,y,"⇐","\\Leftarrow",!0);l(u,d,y,"⟸","\\Longleftarrow",!0);l(u,d,y,"⟶","\\longrightarrow",!0);l(u,d,y,"⇒","\\Rightarrow",!0);l(u,d,y,"⟹","\\Longrightarrow",!0);l(u,d,y,"↔","\\leftrightarrow",!0);l(u,d,y,"⟷","\\longleftrightarrow",!0);l(u,d,y,"⇔","\\Leftrightarrow",!0);l(u,d,y,"⟺","\\Longleftrightarrow",!0);l(u,d,y,"↦","\\mapsto",!0);l(u,d,y,"⟼","\\longmapsto",!0);l(u,d,y,"↗","\\nearrow",!0);l(u,d,y,"↩","\\hookleftarrow",!0);l(u,d,y,"↪","\\hookrightarrow",!0);l(u,d,y,"↘","\\searrow",!0);l(u,d,y,"↼","\\leftharpoonup",!0);l(u,d,y,"⇀","\\rightharpoonup",!0);l(u,d,y,"↙","\\swarrow",!0);l(u,d,y,"↽","\\leftharpoondown",!0);l(u,d,y,"⇁","\\rightharpoondown",!0);l(u,d,y,"↖","\\nwarrow",!0);l(u,d,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(_,d,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,d,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,d,y,"⊶","\\origof",!0);l(u,d,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,d,k,"‘","`");l(u,d,k,"$","\\$");l(_,d,k,"$","\\$");l(_,d,k,"$","\\textdollar");l(u,d,k,"%","\\%");l(_,d,k,"%","\\%");l(u,d,k,"_","\\_");l(_,d,k,"_","\\_");l(_,d,k,"_","\\textunderscore");l(u,d,k,"∠","\\angle",!0);l(u,d,k,"∞","\\infty",!0);l(u,d,k,"′","\\prime");l(u,d,k,"△","\\triangle");l(u,d,k,"Γ","\\Gamma",!0);l(u,d,k,"Δ","\\Delta",!0);l(u,d,k,"Θ","\\Theta",!0);l(u,d,k,"Λ","\\Lambda",!0);l(u,d,k,"Ξ","\\Xi",!0);l(u,d,k,"Π","\\Pi",!0);l(u,d,k,"Σ","\\Sigma",!0);l(u,d,k,"Υ","\\Upsilon",!0);l(u,d,k,"Φ","\\Phi",!0);l(u,d,k,"Ψ","\\Psi",!0);l(u,d,k,"Ω","\\Omega",!0);l(u,d,k,"A","Α");l(u,d,k,"B","Β");l(u,d,k,"E","Ε");l(u,d,k,"Z","Ζ");l(u,d,k,"H","Η");l(u,d,k,"I","Ι");l(u,d,k,"K","Κ");l(u,d,k,"M","Μ");l(u,d,k,"N","Ν");l(u,d,k,"O","Ο");l(u,d,k,"P","Ρ");l(u,d,k,"T","Τ");l(u,d,k,"X","Χ");l(u,d,k,"¬","\\neg",!0);l(u,d,k,"¬","\\lnot");l(u,d,k,"⊤","\\top");l(u,d,k,"⊥","\\bot");l(u,d,k,"∅","\\emptyset");l(u,b,k,"∅","\\varnothing");l(u,d,Q,"α","\\alpha",!0);l(u,d,Q,"β","\\beta",!0);l(u,d,Q,"γ","\\gamma",!0);l(u,d,Q,"δ","\\delta",!0);l(u,d,Q,"ϵ","\\epsilon",!0);l(u,d,Q,"ζ","\\zeta",!0);l(u,d,Q,"η","\\eta",!0);l(u,d,Q,"θ","\\theta",!0);l(u,d,Q,"ι","\\iota",!0);l(u,d,Q,"κ","\\kappa",!0);l(u,d,Q,"λ","\\lambda",!0);l(u,d,Q,"μ","\\mu",!0);l(u,d,Q,"ν","\\nu",!0);l(u,d,Q,"ξ","\\xi",!0);l(u,d,Q,"ο","\\omicron",!0);l(u,d,Q,"π","\\pi",!0);l(u,d,Q,"ρ","\\rho",!0);l(u,d,Q,"σ","\\sigma",!0);l(u,d,Q,"τ","\\tau",!0);l(u,d,Q,"υ","\\upsilon",!0);l(u,d,Q,"ϕ","\\phi",!0);l(u,d,Q,"χ","\\chi",!0);l(u,d,Q,"ψ","\\psi",!0);l(u,d,Q,"ω","\\omega",!0);l(u,d,Q,"ε","\\varepsilon",!0);l(u,d,Q,"ϑ","\\vartheta",!0);l(u,d,Q,"ϖ","\\varpi",!0);l(u,d,Q,"ϱ","\\varrho",!0);l(u,d,Q,"ς","\\varsigma",!0);l(u,d,Q,"φ","\\varphi",!0);l(u,d,j,"∗","*",!0);l(u,d,j,"+","+");l(u,d,j,"−","-",!0);l(u,d,j,"⋅","\\cdot",!0);l(u,d,j,"∘","\\circ",!0);l(u,d,j,"÷","\\div",!0);l(u,d,j,"±","\\pm",!0);l(u,d,j,"×","\\times",!0);l(u,d,j,"∩","\\cap",!0);l(u,d,j,"∪","\\cup",!0);l(u,d,j,"∖","\\setminus",!0);l(u,d,j,"∧","\\land");l(u,d,j,"∨","\\lor");l(u,d,j,"∧","\\wedge",!0);l(u,d,j,"∨","\\vee",!0);l(u,d,k,"√","\\surd");l(u,d,bt,"⟨","\\langle",!0);l(u,d,bt,"∣","\\lvert");l(u,d,bt,"∥","\\lVert");l(u,d,it,"?","?");l(u,d,it,"!","!");l(u,d,it,"⟩","\\rangle",!0);l(u,d,it,"∣","\\rvert");l(u,d,it,"∥","\\rVert");l(u,d,y,"=","=");l(u,d,y,":",":");l(u,d,y,"≈","\\approx",!0);l(u,d,y,"≅","\\cong",!0);l(u,d,y,"≥","\\ge");l(u,d,y,"≥","\\geq",!0);l(u,d,y,"←","\\gets");l(u,d,y,">","\\gt",!0);l(u,d,y,"∈","\\in",!0);l(u,d,y,"","\\@not");l(u,d,y,"⊂","\\subset",!0);l(u,d,y,"⊃","\\supset",!0);l(u,d,y,"⊆","\\subseteq",!0);l(u,d,y,"⊇","\\supseteq",!0);l(u,b,y,"⊈","\\nsubseteq",!0);l(u,b,y,"⊉","\\nsupseteq",!0);l(u,d,y,"⊨","\\models");l(u,d,y,"←","\\leftarrow",!0);l(u,d,y,"≤","\\le");l(u,d,y,"≤","\\leq",!0);l(u,d,y,"<","\\lt",!0);l(u,d,y,"→","\\rightarrow",!0);l(u,d,y,"→","\\to");l(u,b,y,"≱","\\ngeq",!0);l(u,b,y,"≰","\\nleq",!0);l(u,d,Xt," ","\\ ");l(u,d,Xt," ","\\space");l(u,d,Xt," ","\\nobreakspace");l(_,d,Xt," ","\\ ");l(_,d,Xt," "," ");l(_,d,Xt," ","\\space");l(_,d,Xt," ","\\nobreakspace");l(u,d,Xt,"","\\nobreak");l(u,d,Xt,"","\\allowbreak");l(u,d,j0,",",",");l(u,d,j0,";",";");l(u,b,j,"⊼","\\barwedge",!0);l(u,b,j,"⊻","\\veebar",!0);l(u,d,j,"⊙","\\odot",!0);l(u,d,j,"⊕","\\oplus",!0);l(u,d,j,"⊗","\\otimes",!0);l(u,d,k,"∂","\\partial",!0);l(u,d,j,"⊘","\\oslash",!0);l(u,b,j,"⊚","\\circledcirc",!0);l(u,b,j,"⊡","\\boxdot",!0);l(u,d,j,"△","\\bigtriangleup");l(u,d,j,"▽","\\bigtriangledown");l(u,d,j,"†","\\dagger");l(u,d,j,"⋄","\\diamond");l(u,d,j,"⋆","\\star");l(u,d,j,"◃","\\triangleleft");l(u,d,j,"▹","\\triangleright");l(u,d,bt,"{","\\{");l(_,d,k,"{","\\{");l(_,d,k,"{","\\textbraceleft");l(u,d,it,"}","\\}");l(_,d,k,"}","\\}");l(_,d,k,"}","\\textbraceright");l(u,d,bt,"{","\\lbrace");l(u,d,it,"}","\\rbrace");l(u,d,bt,"[","\\lbrack",!0);l(_,d,k,"[","\\lbrack",!0);l(u,d,it,"]","\\rbrack",!0);l(_,d,k,"]","\\rbrack",!0);l(u,d,bt,"(","\\lparen",!0);l(u,d,it,")","\\rparen",!0);l(_,d,k,"<","\\textless",!0);l(_,d,k,">","\\textgreater",!0);l(u,d,bt,"⌊","\\lfloor",!0);l(u,d,it,"⌋","\\rfloor",!0);l(u,d,bt,"⌈","\\lceil",!0);l(u,d,it,"⌉","\\rceil",!0);l(u,d,k,"\\","\\backslash");l(u,d,k,"∣","|");l(u,d,k,"∣","\\vert");l(_,d,k,"|","\\textbar",!0);l(u,d,k,"∥","\\|");l(u,d,k,"∥","\\Vert");l(_,d,k,"∥","\\textbardbl");l(_,d,k,"~","\\textasciitilde");l(_,d,k,"\\","\\textbackslash");l(_,d,k,"^","\\textasciicircum");l(u,d,y,"↑","\\uparrow",!0);l(u,d,y,"⇑","\\Uparrow",!0);l(u,d,y,"↓","\\downarrow",!0);l(u,d,y,"⇓","\\Downarrow",!0);l(u,d,y,"↕","\\updownarrow",!0);l(u,d,y,"⇕","\\Updownarrow",!0);l(u,d,$e,"∐","\\coprod");l(u,d,$e,"⋁","\\bigvee");l(u,d,$e,"⋀","\\bigwedge");l(u,d,$e,"⨄","\\biguplus");l(u,d,$e,"⋂","\\bigcap");l(u,d,$e,"⋃","\\bigcup");l(u,d,$e,"∫","\\int");l(u,d,$e,"∫","\\intop");l(u,d,$e,"∬","\\iint");l(u,d,$e,"∭","\\iiint");l(u,d,$e,"∏","\\prod");l(u,d,$e,"∑","\\sum");l(u,d,$e,"⨂","\\bigotimes");l(u,d,$e,"⨁","\\bigoplus");l(u,d,$e,"⨀","\\bigodot");l(u,d,$e,"∮","\\oint");l(u,d,$e,"∯","\\oiint");l(u,d,$e,"∰","\\oiiint");l(u,d,$e,"⨆","\\bigsqcup");l(u,d,$e,"∫","\\smallint");l(_,d,f0,"…","\\textellipsis");l(u,d,f0,"…","\\mathellipsis");l(_,d,f0,"…","\\ldots",!0);l(u,d,f0,"…","\\ldots",!0);l(u,d,f0,"⋯","\\@cdots",!0);l(u,d,f0,"⋱","\\ddots",!0);l(u,d,k,"⋮","\\varvdots");l(_,d,k,"⋮","\\varvdots");l(u,d,Me,"ˊ","\\acute");l(u,d,Me,"ˋ","\\grave");l(u,d,Me,"¨","\\ddot");l(u,d,Me,"~","\\tilde");l(u,d,Me,"ˉ","\\bar");l(u,d,Me,"˘","\\breve");l(u,d,Me,"ˇ","\\check");l(u,d,Me,"^","\\hat");l(u,d,Me,"⃗","\\vec");l(u,d,Me,"˙","\\dot");l(u,d,Me,"˚","\\mathring");l(u,d,Q,"","\\@imath");l(u,d,Q,"","\\@jmath");l(u,d,k,"ı","ı");l(u,d,k,"ȷ","ȷ");l(_,d,k,"ı","\\i",!0);l(_,d,k,"ȷ","\\j",!0);l(_,d,k,"ß","\\ss",!0);l(_,d,k,"æ","\\ae",!0);l(_,d,k,"œ","\\oe",!0);l(_,d,k,"ø","\\o",!0);l(_,d,k,"Æ","\\AE",!0);l(_,d,k,"Œ","\\OE",!0);l(_,d,k,"Ø","\\O",!0);l(_,d,Me,"ˊ","\\'");l(_,d,Me,"ˋ","\\`");l(_,d,Me,"ˆ","\\^");l(_,d,Me,"˜","\\~");l(_,d,Me,"ˉ","\\=");l(_,d,Me,"˘","\\u");l(_,d,Me,"˙","\\.");l(_,d,Me,"¸","\\c");l(_,d,Me,"˚","\\r");l(_,d,Me,"ˇ","\\v");l(_,d,Me,"¨",'\\"');l(_,d,Me,"˝","\\H");l(_,d,Me,"◯","\\textcircled");var sc={"--":!0,"---":!0,"``":!0,"''":!0};l(_,d,k,"–","--",!0);l(_,d,k,"–","\\textendash");l(_,d,k,"—","---",!0);l(_,d,k,"—","\\textemdash");l(_,d,k,"‘","`",!0);l(_,d,k,"‘","\\textquoteleft");l(_,d,k,"’","'",!0);l(_,d,k,"’","\\textquoteright");l(_,d,k,"“","``",!0);l(_,d,k,"“","\\textquotedblleft");l(_,d,k,"”","''",!0);l(_,d,k,"”","\\textquotedblright");l(u,d,k,"°","\\degree",!0);l(_,d,k,"°","\\degree");l(_,d,k,"°","\\textdegree",!0);l(u,d,k,"£","\\pounds");l(u,d,k,"£","\\mathsterling",!0);l(_,d,k,"£","\\pounds");l(_,d,k,"£","\\textsterling",!0);l(u,b,k,"✠","\\maltese");l(_,b,k,"✠","\\maltese");var Zs='0123456789/@."';for(var Sa=0;Sa<Zs.length;Sa++){var Qs=Zs.charAt(Sa);l(u,d,k,Qs,Qs)}var Js='0123456789!@*()-=+";:?/.,';for(var Aa=0;Aa<Js.length;Aa++){var eo=Js.charAt(Aa);l(_,d,k,eo,eo)}var On="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz";for(var Ta=0;Ta<On.length;Ta++){var wn=On.charAt(Ta);l(u,d,Q,wn,wn),l(_,d,k,wn,wn)}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,d,Q,"h","ℎ");l(_,d,Q,"h","ℎ");var re;for(var tt=0;tt<On.length;tt++){var ze=On.charAt(tt);re=String.fromCharCode(55349,56320+tt),l(u,d,Q,ze,re),l(_,d,k,ze,re),re=String.fromCharCode(55349,56372+tt),l(u,d,Q,ze,re),l(_,d,k,ze,re),re=String.fromCharCode(55349,56424+tt),l(u,d,Q,ze,re),l(_,d,k,ze,re),re=String.fromCharCode(55349,56580+tt),l(u,d,Q,ze,re),l(_,d,k,ze,re),re=String.fromCharCode(55349,56684+tt),l(u,d,Q,ze,re),l(_,d,k,ze,re),re=String.fromCharCode(55349,56736+tt),l(u,d,Q,ze,re),l(_,d,k,ze,re),re=String.fromCharCode(55349,56788+tt),l(u,d,Q,ze,re),l(_,d,k,ze,re),re=String.fromCharCode(55349,56840+tt),l(u,d,Q,ze,re),l(_,d,k,ze,re),re=String.fromCharCode(55349,56944+tt),l(u,d,Q,ze,re),l(_,d,k,ze,re),tt<26&&(re=String.fromCharCode(55349,56632+tt),l(u,d,Q,ze,re),l(_,d,k,ze,re),re=String.fromCharCode(55349,56476+tt),l(u,d,Q,ze,re),l(_,d,k,ze,re))}re="𝕜";l(u,d,Q,"k",re);l(_,d,k,"k",re);for(var Ar=0;Ar<10;Ar++){var ar=Ar.toString();re=String.fromCharCode(55349,57294+Ar),l(u,d,Q,ar,re),l(_,d,k,ar,re),re=String.fromCharCode(55349,57314+Ar),l(u,d,Q,ar,re),l(_,d,k,ar,re),re=String.fromCharCode(55349,57324+Ar),l(u,d,Q,ar,re),l(_,d,k,ar,re),re=String.fromCharCode(55349,57334+Ar),l(u,d,Q,ar,re),l(_,d,k,ar,re)}var ni="ÐÞþ";for(var Ea=0;Ea<ni.length;Ea++){var kn=ni.charAt(Ea);l(u,d,Q,kn,kn),l(_,d,k,kn,kn)}var ai={mathClass:"mathbf",textClass:"textbf",font:"Main-Bold"},to={mathClass:"mathnormal",textClass:"textit",font:"Math-Italic"},ro={mathClass:"boldsymbol",textClass:"boldsymbol",font:"Main-BoldItalic"},Yd={mathClass:"mathscr",textClass:"textscr",font:"Script-Regular"},zr={mathClass:"",textClass:"",font:""},no={mathClass:"mathfrak",textClass:"textfrak",font:"Fraktur-Regular"},ao={mathClass:"mathbb",textClass:"textbb",font:"AMS-Regular"},io={mathClass:"mathboldfrak",textClass:"textboldfrak",font:"Fraktur-Regular"},ii={mathClass:"mathsf",textClass:"textsf",font:"SansSerif-Regular"},si={mathClass:"mathboldsf",textClass:"textboldsf",font:"SansSerif-Bold"},so={mathClass:"mathitsf",textClass:"textitsf",font:"SansSerif-Italic"},oi={mathClass:"mathtt",textClass:"texttt",font:"Typewriter-Regular"},oo=[ai,ai,to,to,ro,ro,Yd,zr,zr,zr,no,no,ao,ao,io,io,ii,ii,si,si,so,so,zr,zr,oi,oi],Xd=[ai,zr,ii,si,oi],Zd=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 oo[a]}else if(120782<=n&&n<=120831){var i=Math.floor((n-120782)/10);return Xd[i]}else{if(n===120485||n===120486)return oo[0];if(120486<n&&n<120782)return zr;throw new B("Unsupported character: "+t)}};function pt(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 Fn=function(e,r,n){if(Te[n][e]){var a=Te[n][e].replace;a&&(e=a)}return{value:e,metrics:qi(e,r,n)}},nt=function(e,r,n,a,i){var s=Fn(e,r,n),o=s.metrics;e=s.value;var c;if(o){var h=o.italic;(n==="text"||a&&a.font==="mathit")&&(h=0),c=new Et(e,o.height,o.depth,h,o.skew,o.width,i)}else pt({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 m=a.getColor();return m&&(c.style.color=m),c},Fi=function(e,r,n,a){return a===void 0&&(a=[]),n.font==="boldsymbol"&&Fn(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"]))},Qd=function(e,r,n){return n!=="textord"&&Fn(e,"Math-BoldItalic",r).metrics?{fontName:"Math-BoldItalic",fontClass:"boldsymbol"}:{fontName:"Main-Bold",fontClass:"mathbf"}},Hn=function(e,r){var n=e.type==="mathord"?"mathord":"textord",a=e.mode,i=e.text,s=["mord"],o=r.font,c=r.fontFamily,h=r.fontWeight,m=r.fontShape,g=a==="math"||a==="text"&&!!o,v=g?o:c,w="",A="";if(i.charCodeAt(0)===55349){var M=Zd(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=Qd(i,a,n);D=C.fontName,S=[C.fontClass]}else g?(D=li[o].fontName,S=[o]):(D=xn(c,h,m),S=[c,h,m]);if(Fn(i,D,a).metrics)return nt(i,D,a,r,s.concat(S));if(Object.prototype.hasOwnProperty.call(sc,i)&&D.slice(0,10)==="Typewriter"){for(var W=[],X=0;X<i.length;X++)W.push(nt(i[X],D,a,r,s.concat(S)));return Zt(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=xn("amsrm",h,m);return nt(i,T,a,r,s.concat("amsrm",h,m))}else if(Y==="main"||!Y){var R=xn("textrm",h,m);return nt(i,R,a,r,s.concat(h,m))}else{var U=xn(Y,h,m);return nt(i,U,a,r,s.concat(U,h,m))}}else throw new Error("unexpected type: "+n+" in makeOrd")},Jd=(t,e)=>{if(hr(t.classes)!==hr(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},oc=t=>{for(var e=0;e<t.length-1;e++){var r=t[e],n=t[e+1];r instanceof Et&&n instanceof Et&&Jd(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},Hi=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},O=function(e,r,n,a){var i=new G0(e,r,n,a);return Hi(i),i},mr=(t,e,r,n)=>new G0(t,e,r,n),i0=function(e,r,n){var a=O([e],[],r);return a.height=Math.max(n||r.fontMetrics().defaultRuleThickness,r.minRuleThickness),a.style.borderBottomWidth=H(a.height),a.maxFontSize=1,a},em=function(e,r,n,a){var i=new Bi(e,r,n,a);return Hi(i),i},Zt=function(e){var r=new p0(e);return Hi(r),r},s0=function(e,r){return e instanceof p0?O([],[e],r):e},tm=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 h;if(e.positionType==="top"){for(var m=e.positionData,g=0;g<e.children.length;g++){var v=e.children[g];m-=v.type==="kern"?v.size:v.elem.height+v.elem.depth}h=m}else if(e.positionType==="bottom")h=-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")h=-w.elem.depth-e.positionData;else if(e.positionType==="firstBaseline")h=-w.elem.depth;else throw new Error("Invalid positionType "+e.positionType+".")}return{children:e.children,depth:h}},fe=function(e,r){for(var n=tm(e),a=n.children,i=n.depth,s=0,o=0;o<a.length;o++){var c=a[o];if(c.type==="elem"){var h=c.elem;s=Math.max(s,h.maxFontSize,h.height)}}s+=2;var m=O(["pstrut"],[]);m.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||{},X=O(C,[m,S],void 0,W);X.style.top=H(-s-A-S.depth),D.marginLeft&&(X.style.marginLeft=D.marginLeft),D.marginRight&&(X.style.marginRight=D.marginRight),g.push(X),A+=S.height+S.depth}v=Math.min(v,A),w=Math.max(w,A)}var Y=O(["vlist"],g);Y.style.height=H(w);var T;if(v<0){var R=O([],[]),U=O(["vlist"],[R]);U.style.height=H(-v);var P=O(["vlist-s"],[new Et("​")]);T=[O(["vlist-r"],[Y,P]),O(["vlist-r"],[U])]}else T=[O(["vlist-r"],[Y])];var $=O(["vlist-t"],T);return T.length===2&&$.classes.push("vlist-t2"),$.height=w,$.depth=-v,$},lc=(t,e)=>{var r=O(["mspace"],[],e),n=Ie(t,e);return r.style.marginRight=H(n),r},xn=(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},li={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"}},cc={vec:["vec",.471,.714],oiintSize1:["oiintSize1",.957,.499],oiintSize2:["oiintSize2",1.472,.659],oiiintSize1:["oiiintSize1",1.304,.499],oiiintSize2:["oiiintSize2",1.98,.659]},uc=function(e,r){var n=cc[e],a=n[0],i=n[1],s=n[2],o=new Nr(a),c=new dr([o],{width:H(i),height:H(s),style:"width:"+H(i),viewBox:"0 0 "+1e3*i+" "+1e3*s,preserveAspectRatio:"xMinYMin"}),h=mr(["katex-overlay"],[c],r);return h.height=s,h.style.height=H(s),h.style.width=H(i),h},Ce={number:3,unit:"mu"},Tr={number:4,unit:"mu"},Bt={number:5,unit:"mu"},rm={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}},nm={mord:{mop:Ce},mop:{mord:Ce,mop:Ce},mbin:{},mrel:{},mopen:{},mclose:{mop:Ce},mpunct:{},minner:{mop:Ce}},hc={},B0={},q0={};function G(t){for(var e=t.type,r=t.names,n=t.htmlBuilder,a=t.mathmlBuilder,i=0;i<r.length;++i)hc[r[i]]=t;e&&(n&&(B0[e]=n),a&&(q0[e]=a))}function Or(t){var e=t.type,r=t.htmlBuilder,n=t.mathmlBuilder;r&&(B0[e]=r),n&&(q0[e]=n)}var F0=function(e){return e.type==="ordgroup"&&e.body.length===1?e.body[0]:e},Oe=function(e){return e.type==="ordgroup"?e.body:[e]},am=new Set(["leftmost","mbin","mopen","mrel","mop","mpunct"]),im=new Set(["rightmost","mrel","mclose","mpunct"]),sm={display:ae.DISPLAY,text:ae.TEXT,script:ae.SCRIPT,scriptscript:ae.SCRIPTSCRIPT},om={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=pe(e[s],r);if(o instanceof p0){var c=o.children;i.push(...c)}else i.push(o)}if(oc(i),!n)return i;var h=r;if(e.length===1){var m=e[0];m.type==="sizing"?h=r.havingSize(m.size):m.type==="styling"&&(h=r.havingStyle(sm[m.style]))}var g=O([a[0]||"leftmost"],[],r),v=O([a[1]||"rightmost"],[],r),w=n==="root";return ci(i,(A,M)=>{var D=M.classes[0],S=A.classes[0];D==="mbin"&&im.has(S)?M.classes[0]="mord":S==="mbin"&&am.has(D)&&(A.classes[0]="mord")},{node:g},v,w),ci(i,(A,M)=>{var D,S,C=hi(M),W=hi(A),X=C&&W?A.hasClass("mtight")?(D=nm[C])==null?void 0:D[W]:(S=rm[C])==null?void 0:S[W]:null;if(X)return lc(X,h)},{node:g},v,w),i},ci=function(e,r,n,a,i){a&&e.push(a);for(var s=0;s<e.length;s++){var o=e[s],c=dc(o);if(c){ci(c.children,r,n,null,i);continue}var h=!o.hasClass("mspace");if(h){var m=r(o,n.node);m&&(n.insertAfter?n.insertAfter(m):(e.unshift(m),s++))}h?n.node=o:i&&o.hasClass("katex-newline")&&(n.node=O(["leftmost"])),n.insertAfter=(g=>v=>{e.splice(g+1,0,v),s++})(s)}a&&e.pop()},dc=function(e){return e instanceof p0||e instanceof Bi||e instanceof G0&&e.hasClass("enclosing")?e:null},ui=function(e,r){var n=dc(e);if(n){var a=n.children;if(a.length){if(r==="right")return ui(a[a.length-1],"right");if(r==="left")return ui(a[0],"left")}}return e},hi=function(e,r){if(!e)return null;r&&(e=ui(e,r));var n=e.classes[0];return om[n]||null},H0=function(e,r){var n=["nulldelimiter"].concat(e.baseSizingClasses());return O(r.concat(n))},pe=function(e,r,n){if(!e)return O();if(B0[e.type]){var a=B0[e.type](e,r);if(n&&r.size!==n.size){a=O(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 Sn(t,e){var r=O(["katex-base"],t,e),n=O(["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 lo(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(Sn(s,e)),s=[])}else n[o].hasClass("katex-newline")&&(s.pop(),s.length>0&&(i.push(Sn(s,e)),s=[]),i.push(n[o]));s.length>0&&i.push(Sn(s,e));var h;r?(h=Sn(Fe(r,e,!0),e),h.classes=["katex-tag"],i.push(h)):a&&i.push(a);var m=O(["katex-html"],i);if(m.setAttribute("aria-hidden","true"),h){var g=h.children[0];g.style.height=H(m.height+m.depth),m.depth&&(g.style.verticalAlign=H(-m.depth))}return m}function mc(t){return new p0(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=hr(this.classes));for(var i=0;i<this.children.length;i++)if(this.children[i]instanceof Pe&&this.children[i+1]instanceof Pe){for(var s=this.children[i].toText()+this.children[++i].toText();this.children[i+1]instanceof Pe;)s+=this.children[++i].toText();e.appendChild(new Pe(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+=Xe(a),e+='"'}this.classes.length>0&&(e+=' class ="'+Xe(hr(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 Pe{constructor(e){this.text=void 0,this.text=e}toNode(){return document.createTextNode(this.text)}toMarkup(){return Xe(this.toText())}toText(){return this.text}}class pc{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 lm=new Set(["\\imath","\\jmath"]),cm=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(sc,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 Pe(e)},Ui=function(e){return e.length===1?e[0]:new q("mrow",e)},um={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"},Wi=(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=um[r];if(a)return typeof a=="function"?a(t):a;var i=t.text;if(lm.has(i))return null;if(Te[n][i]){var s=Te[n][i].replace;s&&(i=s)}var o=li[r].fontName;return qi(i,o,n)?li[r].variant:null};function Ma(t){if(!t)return!1;if(t.type==="mi"&&t.children.length===1){var e=t.children[0];return e instanceof Pe&&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 Pe&&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(Ma(c)&&s.type==="mn"){s.children.push(...c.children);continue}else if(c.type==="mn"&&Ma(s))c.children=[...s.children,...c.children],i.pop();else if((c.type==="msup"||c.type==="msub")&&c.children.length>=1&&(s.type==="mn"||Ma(s))){var h=c.children[0];h instanceof q&&h.type==="mn"&&(h.children=[...s.children,...h.children],i.pop())}else if(s.type==="mi"&&s.children.length===1){var m=s.children[0];if(m instanceof Pe&&m.text==="̸"&&(c.type==="mo"||c.type==="mi"||c.type==="mn")){var g=c.children[0];g instanceof Pe&&g.text.length>0&&(g.text=g.text.slice(0,1)+"̸"+g.text.slice(1),i.pop())}}}i.push(c),s=c}return i},pr=function(e,r,n){return Ui(yt(e,r,n))},be=function(e,r){if(!e)return new q("mrow");if(q0[e.type])return q0[e.type](e,r);throw new B("Got group of unknown type: '"+e.type+"'")};function co(t,e,r,n,a){var i=yt(t,r),s;i.length===1&&i[0]instanceof q&&cm.has(i[0].type)?s=i[0]:s=new q("mrow",i);var o=new q("annotation",[new Pe(e)]);o.setAttribute("encoding","application/x-tex");var c=new q("semantics",[s,o]),h=new q("math",[c]);h.setAttribute("xmlns","http://www.w3.org/1998/Math/MathML"),n&&h.setAttribute("display","block");var m=a?"katex":"katex-mathml";return O([m],[h])}var hm=[[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]],uo=[.5,.6,.7,.8,.9,1,1.2,1.44,1.728,2.074,2.488],ho=function(e,r){return r.size<2?e:hm[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=uo[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:ho(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:uo[e-1]})}havingBaseStyle(e){e=e||this.style.text();var r=ho(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=Kd(this.size)),this._fontMetrics}getColor(){return this.phantom?"transparent":this.color}}Ht.BASESIZE=6;var dm=t=>new Ht({style:t.displayMode?ae.DISPLAY:ae.TEXT,maxSize:t.maxSize,minRuleThickness:t.minRuleThickness,strict:t.strict}),mm=function(e,r){if(r.displayMode){var n=["katex-display"];r.leqno&&n.push("leqno"),r.fleqn&&n.push("fleqn"),e=O(n,[e])}return e},pm=function(e,r,n){var a=dm(n),i;if(n.output==="mathml")return co(e,r,a,n.displayMode,!0);if(n.output==="html"){var s=lo(e,a);i=O(["katex"],[s])}else{var o=co(e,r,a,n.displayMode,!1),c=lo(e,a);i=O(["katex"],[o,c])}return mm(i,n)},fm={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":"="},Un=function(e){var r=new q("mo",[new Pe(fm[e.replace(/^\\/,"")])]);return r.setAttribute("stretchy","true"),r},gm={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]},vm=new Set(["widehat","widecheck","widetilde","utilde"]),Wn=function(e,r){function n(){var c=4e5,h=e.label.slice(1);if(vm.has(h)&&"base"in e){var m=e.base.type==="ordgroup"?e.base.body.length:1,g,v,w;if(m>5)h==="widehat"||h==="widecheck"?(g=420,c=2364,w=.42,v=h+"4"):(g=312,c=2340,w=.34,v="tilde4");else{var A=[1,1,2,2,3,3][m];h==="widehat"||h==="widecheck"?(c=[0,1062,2364,2364,2364][A],g=[0,239,300,360,420][A],w=[0,.24,.3,.3,.36,.42][A],v=h+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 dr([M],{width:"100%",height:H(w),viewBox:"0 0 "+c+" "+g,preserveAspectRatio:"none"});return{span:mr([],[D],r),minWidth:0,height:w}}else{var S=[],C=gm[h];if(!C)throw new Error('No SVG data for "'+h+'".');var W=C[0],X=C[1],Y=C[2],T=Y/1e3,R=W.length,U,P;if(R===1){if(C.length!==4)throw new Error('Expected 4-tuple for single-path SVG data "'+h+'".');U=["hide-tail"],P=[C[3]]}else if(R===2)U=["halfarrow-left","halfarrow-right"],P=["xMinYMin","xMaxYMin"];else if(R===3)U=["brace-left","brace-center","brace-right"],P=["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 dr([L],{width:"400em",height:H(T),viewBox:"0 0 "+c+" "+Y,preserveAspectRatio:P[$]+" slice"}),K=mr([U[$]],[F],r);if(R===1)return{span:K,minWidth:X,height:T};K.style.height=H(T),S.push(K)}return{span:O(["katex-stretchy"],S,r),minWidth:X,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},bm=function(e,r,n,a,i){var s,o=e.height+e.depth+n+a;if(/fbox|color|angl/.test(r)){if(s=O(["katex-stretchy",r],[],i),r==="fbox"){var c=i.color&&i.getColor();c&&(s.style.borderColor=c)}}else{var h=[];/^[bx]cancel$/.test(r)&&h.push(new Ys({x1:"0",y1:"0",x2:"100%",y2:"100%","stroke-width":"0.046em"})),/^x?cancel$/.test(r)&&h.push(new Ys({x1:"0",y1:"100%",x2:"100%",y2:"0","stroke-width":"0.046em"}));var m=new dr(h,{width:"100%",height:H(o)});s=mr([],[m],i)}return s.height=o,s.style.height=H(o),s},ym=["bin","close","inner","open","punct","rel"],wm=["accent-token","mathord","op-token","spacing","textord"],km=new Set(ym),xm=new Set(wm);function Sm(t){return km.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 Gn(t){var e=jn(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 jn(t){return t.type==="atom"||xm.has(t.type)?t:null}function Gi(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 fc=t=>{if(t instanceof Et)return t;if(Vd(t)&&t.children.length===1)return fc(t.children[0])},gc=(t,e)=>{var r,n,a;t&&t.type==="supsub"?(n=oe(t.base,"accent"),r=n.base,t.base=r,a=jd(pe(t,e)),t.base=n):(n=oe(t,"accent"),r=n.base);var i=pe(r,e.havingCrampedStyle()),s=n.isShifty&&Yt(r),o=0;if(s){var c,h;o=(c=(h=fc(i))==null?void 0:h.skew)!=null?c:0}var m=n.label==="\\c",g=m?i.height+i.depth:Math.min(i.height,e.fontMetrics().xHeight),v;if(n.isStretchy)v=Wn(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=uc("vec",e),A=cc.vec[1]):(w=Hn({type:"textord",mode:n.mode,text:n.label},e),w=Gd(w),w.italic=0,A=w.width,m&&(g+=w.depth)),v=O(["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=O(["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},Am=(t,e)=>{var r=t.isStretchy?Un(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},Tm=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=F0(e[0]),n=!Tm.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:gc,mathmlBuilder:Am});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"&&(pt({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=pe(t.base,e),n=Wn(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 O(["mord","accentunder"],[i],e)},mathmlBuilder:(t,e)=>{var r=Un(t.label),n=new q("munder",[be(t.base,e),r]);return n.setAttribute("accentunder","true"),n}});var An=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=s0(pe(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=s0(pe(t.below,n,e),e),s.classes.push(i+"-arrow-pad"));var o=Wn(t,e),c=-e.fontMetrics().axisHeight+.5*o.height,h=-e.fontMetrics().axisHeight-.5*o.height-.111;(a.depth>.25||t.label==="\\xleftequilibrium")&&(h-=a.depth);var m;if(s){var g=-e.fontMetrics().axisHeight+s.height+.5*o.height+.111;m=fe({positionType:"individualShift",children:[{type:"elem",elem:a,shift:h},{type:"elem",elem:o,shift:c,wrapperClasses:["svg-align"]},{type:"elem",elem:s,shift:g}]})}else m=fe({positionType:"individualShift",children:[{type:"elem",elem:a,shift:h},{type:"elem",elem:o,shift:c,wrapperClasses:["svg-align"]}]});return O(["mrel","x-arrow"],[m],e)},mathmlBuilder(t,e){var r=Un(t.label);r.setAttribute("minsize",t.label.charAt(0)==="x"?"1.75em":"3.0em");var n;if(t.body){var a=An(be(t.body,e));if(t.below){var i=An(be(t.below,e));n=new q("munderover",[r,i,a])}else n=new q("mover",[r,a])}else if(t.below){var s=An(be(t.below,e));n=new q("munder",[r,s])}else n=An(),n=new q("mover",[r,n]);return n}});function Em(t,e){var r=Fe(t.body,e,!0);return O([t.mclass],r,e)}function Mm(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:Oe(a),isCharacterBox:Yt(a)}},htmlBuilder:Em,mathmlBuilder:Mm});var Vn=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:Vn(e[0]),body:Oe(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=Vn(a):s="mrel";var o={type:"op",mode:a.mode,limits:!0,alwaysHandleSupSub:!0,parentIsSupSub:!1,symbol:!1,suppressBaseShift:n!=="\\stackrel",body:Oe(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:Vn(e[0]),body:Oe(e[0])}},htmlBuilder(t,e){var r=Fe(t.body,e,!0),n=O([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 Cm={">":"\\\\cdrightarrow","<":"\\\\cdleftarrow","=":"\\\\cdlongequal",A:"\\uparrow",V:"\\downarrow","|":"\\Vert",".":"no arrow"},mo=()=>({type:"styling",body:[],mode:"math",style:"display",resetFont:!0}),po=t=>t.type==="textord"&&t.text==="@",Im=(t,e)=>(t.type==="mathord"||t.type==="atom")&&t.text===e;function zm(t,e,r){var n=Cm[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 h={type:"textord",text:"\\Vert",mode:"math"};return r.callFunction("\\Big",[h],[])}default:return{type:"textord",text:" ",mode:"math"}}}function Rm(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=mo(),c=0;c<s.length;c++)if(!po(s[c]))o.body.push(s[c]);else{n.push(o),c+=1;var h=Gn(s[c]).text,m=new Array(2);if(m[0]={type:"ordgroup",mode:"math",body:[]},m[1]={type:"ordgroup",mode:"math",body:[]},!"=|.".includes(h))if("<>AV".includes(h))for(var g=0;g<2;g++){for(var v=!0,w=c+1;w<s.length;w++){if(Im(s[w],h)){v=!1,c=w;break}if(po(s[w]))throw new B("Missing a "+h+" character to complete a CD arrow.",s[w]);m[g].body.push(s[w])}if(v)throw new B("Missing a "+h+" character to complete a CD arrow.",s[c])}else throw new B('Expected one of "<>AV=|." after @',s[c]);var A=zm(h,m,t),M={type:"styling",body:[A],mode:"math",style:"display",resetFont:!0};n.push(M),o=mo()}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=s0(pe(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=s0(pe(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=Gi(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 Dm=(t,e)=>{var r=Fe(t.body,e.withColor(t.color),!1);return Zt(r)},Nm=(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:Oe(a)}},htmlBuilder:Dm,mathmlBuilder:Nm});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||!pt({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=O(["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 di={"\\global":"\\global","\\long":"\\\\globallong","\\\\globallong":"\\\\globallong","\\def":"\\gdef","\\gdef":"\\gdef","\\edef":"\\xdef","\\xdef":"\\xdef","\\let":"\\\\globallet","\\futurelet":"\\\\globalfuture"},vc=t=>{var e=t.text;if(/^(?:[\\{}$&#^_]|EOF)$/.test(e))throw new B("Expected a control sequence",t);return e},_m=t=>{var e=t.gullet.popToken();return e.text==="="&&(e=t.gullet.popToken(),e.text===" "&&(e=t.gullet.popToken())),e},bc=(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(di[n.text])return(r==="\\global"||r==="\\\\globallong")&&(n.text=di[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(),h=c.tokens;return s&&h.unshift(s),(r==="\\edef"||r==="\\xdef")&&(h=e.gullet.expandTokens(h),h.reverse()),e.gullet.macros.set(a,{tokens:h,numArgs:i,delimiters:o},r===di[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=vc(e.gullet.popToken());e.gullet.consumeSpaces();var a=_m(e);return bc(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=vc(e.gullet.popToken()),a=e.gullet.popToken(),i=e.gullet.popToken();return bc(e,n,i,r==="\\\\globalfuture"),e.gullet.pushToken(i),e.gullet.pushToken(a),{type:"internal",mode:e.mode}}});var D0=function(e,r,n){var a=Te.math[e]&&Te.math[e].replace,i=qi(a||e,r,n);if(!i)throw new Error("Unsupported symbol "+e+" and font size "+r+".");return i},ji=function(e,r,n,a){var i=n.havingBaseStyle(r),s=O(a.concat(i.sizingClasses(n)),[e],n),o=i.sizeMultiplier/n.sizeMultiplier;return s.height*=o,s.depth*=o,s.maxFontSize=i.sizeMultiplier,s},yc=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},Lm=function(e,r,n,a,i,s){var o=nt(e,"Main-Regular",i,a),c=ji(o,r,a,s);return yc(c,a,r),c},Om=function(e,r,n,a){return nt(e,"Size"+r+"-Regular",n,a)},wc=function(e,r,n,a,i,s){var o=Om(e,r,i,a),c=ji(O(["delimsizing","size"+r],[o],a),ae.TEXT,a,s);return n&&yc(c,a,ae.TEXT),c},Ca=function(e,r,n,a){var i;r==="Size1-Regular"?i="delim-size1":i="delim-size4";var s=O(["delimsizinginner",i],[O([],[nt(e,r,n,a)])]);return{type:"elem",elem:s}},Ia=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",$d(e,Math.round(1e3*r))),s=new dr([i],{width:H(a),height:H(r),style:"width:"+H(a),viewBox:"0 0 "+1e3*a+" "+Math.round(1e3*r),preserveAspectRatio:"xMinYMin"}),o=mr([],[s],n);return o.height=r,o.style.height=H(r),o.style.width=H(a),{type:"elem",elem:o}},mi=.008,Tn={type:"kern",size:-1*mi},Pm=new Set(["|","\\lvert","\\rvert","\\vert"]),$m=new Set(["\\|","\\lVert","\\rVert","\\Vert"]),kc=function(e,r,n,a,i,s){var o,c,h,m,g="",v=0;o=h=m=e,c=null;var w="Size1-Regular";e==="\\uparrow"?h=m="⏐":e==="\\Uparrow"?h=m="‖":e==="\\downarrow"?o=h="⏐":e==="\\Downarrow"?o=h="‖":e==="\\updownarrow"?(o="\\uparrow",h="⏐",m="\\downarrow"):e==="\\Updownarrow"?(o="\\Uparrow",h="‖",m="\\Downarrow"):Pm.has(e)?(h="∣",g="vert",v=333):$m.has(e)?(h="∥",g="doublevert",v=556):e==="["||e==="\\lbrack"?(o="⎡",h="⎢",m="⎣",w="Size4-Regular",g="lbrack",v=667):e==="]"||e==="\\rbrack"?(o="⎤",h="⎥",m="⎦",w="Size4-Regular",g="rbrack",v=667):e==="\\lfloor"||e==="⌊"?(h=o="⎢",m="⎣",w="Size4-Regular",g="lfloor",v=667):e==="\\lceil"||e==="⌈"?(o="⎡",h=m="⎢",w="Size4-Regular",g="lceil",v=667):e==="\\rfloor"||e==="⌋"?(h=o="⎥",m="⎦",w="Size4-Regular",g="rfloor",v=667):e==="\\rceil"||e==="⌉"?(o="⎤",h=m="⎥",w="Size4-Regular",g="rceil",v=667):e==="("||e==="\\lparen"?(o="⎛",h="⎜",m="⎝",w="Size4-Regular",g="lparen",v=875):e===")"||e==="\\rparen"?(o="⎞",h="⎟",m="⎠",w="Size4-Regular",g="rparen",v=875):e==="\\{"||e==="\\lbrace"?(o="⎧",c="⎨",m="⎩",h="⎪",w="Size4-Regular"):e==="\\}"||e==="\\rbrace"?(o="⎫",c="⎬",m="⎭",h="⎪",w="Size4-Regular"):e==="\\lgroup"||e==="⟮"?(o="⎧",m="⎩",h="⎪",w="Size4-Regular"):e==="\\rgroup"||e==="⟯"?(o="⎫",m="⎭",h="⎪",w="Size4-Regular"):e==="\\lmoustache"||e==="⎰"?(o="⎧",m="⎭",h="⎪",w="Size4-Regular"):(e==="\\rmoustache"||e==="⎱")&&(o="⎫",m="⎩",h="⎪",w="Size4-Regular");var A=D0(o,w,i),M=A.height+A.depth,D=D0(h,w,i),S=D.height+D.depth,C=D0(m,w,i),W=C.height+C.depth,X=0,Y=1;if(c!==null){var T=D0(c,w,i);X=T.height+T.depth,Y=2}var R=M+W+X,U=Math.max(0,Math.ceil((r-R)/(Y*S))),P=R+U*Y*S,$=a.fontMetrics().axisHeight;n&&($*=a.sizeMultiplier);var L=P/2-$,F=[];if(g.length>0){var K=P-M-W,J=Math.round(P*1e3),ee=Bd(g,Math.round(K*1e3)),le=new Nr(g,ee),ue=H(v/1e3),De=H(J/1e3),ge=new dr([le],{width:ue,height:De,viewBox:"0 0 "+v+" "+J}),Ae=mr([],[ge],a);Ae.height=J/1e3,Ae.style.width=ue,Ae.style.height=De,F.push({type:"elem",elem:Ae})}else{if(F.push(Ca(m,w,i,a)),F.push(Tn),c===null){var st=P-M-W+2*mi;F.push(Ia(h,st,a))}else{var wt=(P-M-W-X)/2+2*mi;F.push(Ia(h,wt,a)),F.push(Tn),F.push(Ca(c,w,i,a)),F.push(Tn),F.push(Ia(h,wt,a))}F.push(Tn),F.push(Ca(o,w,i,a))}var Ze=a.havingBaseStyle(ae.TEXT),Qe=fe({positionType:"bottom",positionData:L,children:F});return ji(O(["delimsizing","mult"],[Qe],Ze),ae.TEXT,a,s)},za=80,Ra=.08,Da=function(e,r,n,a,i){var s=Pd(e,a,n),o=new Nr(e,s),c=new dr([o],{width:"400em",height:H(r),viewBox:"0 0 400000 "+n,preserveAspectRatio:"xMinYMin slice"});return mr(["hide-tail"],[c],i)},Bm=function(e,r){var n=r.havingBaseSizing(),a=Ec("\\surd",e*n.sizeMultiplier,Tc,n),i=n.sizeMultiplier,s=Math.max(0,r.minRuleThickness-r.fontMetrics().sqrtRuleThickness),o,c,h,m,g;return a.type==="small"?(m=1e3+1e3*s+za,e<1?i=1:e<1.4&&(i=.7),c=(1+s+Ra)/i,h=(1+s)/i,o=Da("sqrtMain",c,m,s,r),o.style.minWidth="0.853em",g=.833/i):a.type==="large"?(m=(1e3+za)*_0[a.size],h=(_0[a.size]+s)/i,c=(_0[a.size]+s+Ra)/i,o=Da("sqrtSize"+a.size,c,m,s,r),o.style.minWidth="1.02em",g=1/i):(c=e+s+Ra,h=e+s,m=Math.floor(1e3*e+s)+za,o=Da("sqrtTall",c,m,s,r),o.style.minWidth="0.742em",g=1.056),o.height=h,o.style.height=H(c),{span:o,advanceWidth:g,ruleWidth:(r.fontMetrics().sqrtRuleThickness+s)*i}},xc=new Set(["(","\\lparen",")","\\rparen","[","\\lbrack","]","\\rbrack","\\{","\\lbrace","\\}","\\rbrace","\\lfloor","\\rfloor","⌊","⌋","\\lceil","\\rceil","⌈","⌉","\\surd"]),qm=new Set(["\\uparrow","\\downarrow","\\updownarrow","\\Uparrow","\\Downarrow","\\Updownarrow","|","\\|","\\vert","\\Vert","\\lvert","\\rvert","\\lVert","\\rVert","\\lgroup","\\rgroup","⟮","⟯","\\lmoustache","\\rmoustache","⎰","⎱"]),Sc=new Set(["<",">","\\langle","\\rangle","/","\\backslash","\\lt","\\gt"]),_0=[0,1.2,1.8,2.4,3],Ac=function(e,r,n,a,i){if(e==="<"||e==="\\lt"||e==="⟨"?e="\\langle":(e===">"||e==="\\gt"||e==="⟩")&&(e="\\rangle"),xc.has(e)||Sc.has(e))return wc(e,r,!1,n,a,i);if(qm.has(e))return kc(e,_0[r],!1,n,a,i);throw new B("Illegal delimiter: '"+e+"'")},Fm=[{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}],Hm=[{type:"small",style:ae.SCRIPTSCRIPT},{type:"small",style:ae.SCRIPT},{type:"small",style:ae.TEXT},{type:"stack"}],Tc=[{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"}],Um=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.")},Ec=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=D0(e,Um(o),"math"),h=c.height+c.depth;if(o.type==="small"){var m=a.havingBaseStyle(o.style);h*=m.sizeMultiplier}if(h>r)return o}return n[n.length-1]},pi=function(e,r,n,a,i,s){e==="<"||e==="\\lt"||e==="⟨"?e="\\langle":(e===">"||e==="\\gt"||e==="⟩")&&(e="\\rangle");var o;Sc.has(e)?o=Fm:xc.has(e)?o=Tc:o=Hm;var c=Ec(e,r,o,a);return c.type==="small"?Lm(e,c.style,n,a,i,s):c.type==="large"?wc(e,c.size,n,a,i,s):kc(e,r,n,a,i,s)},Na=function(e,r,n,a,i,s){var o=a.fontMetrics().axisHeight*a.sizeMultiplier,c=901,h=5/a.fontMetrics().ptPerEm,m=Math.max(r-o,n+o),g=Math.max(m/500*c,2*m-h);return pi(e,g,!0,a,i,s)},fo={"\\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}},Wm=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 go(t){return"isMiddle"in t}function Kn(t,e){var r=jn(t);if(r&&Wm.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(F0(e[0]),t);return{type:"delimsizing",mode:t.parser.mode,size:fo[t.funcName].size,mclass:fo[t.funcName].mclass,delim:r.text}},htmlBuilder:(t,e)=>t.delim==="."?O([t.mclass]):Ac(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(_0[t.size]);return r.setAttribute("minsize",n),r.setAttribute("maxsize",n),r}});function vo(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)=>{vo(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];go(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=H0(e,["mopen"]):c=Na(t.left,n,a,e,t.mode,["mopen"]),r.unshift(c),i)for(var h=1;h<r.length;h++){var m=r[h];if(go(m)){var g=m.isMiddle;r[h]=Na(g.delim,n,a,g.options,t.mode,[])}}var v;if(t.right===".")v=H0(e,["mclose"]);else{var w=t.rightColor?e.withColor(t.rightColor):e;v=Na(t.right,n,a,w,t.mode,["mclose"])}return r.push(v),O(["minner"],r,e)},mathmlBuilder:(t,e)=>{vo(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 Ui(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=H0(e,[]):(r=Ac(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 Gm=(t,e)=>{var r=s0(pe(t.body,e),e),n=t.label.slice(1),a=e.sizeMultiplier,i,s,o=Yt(t.body);if(n==="sout")i=O(["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),h=Ie({number:.35,unit:"ex"},e),m=e.havingBaseSizing();a=a/m.sizeMultiplier;var g=r.height+r.depth+c+h;r.style.paddingLeft=H(g/2+c);var v=Math.floor(1e3*g*a),w=Ld(v),A=new dr([new Nr("phase",w)],{width:"400em",height:H(v/1e3),viewBox:"0 0 400000 "+v,preserveAspectRatio:"xMinYMin slice"});i=mr(["hide-tail"],[A],e),i.style.height=H(g),s=r.depth+c+h}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=bm(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?O(["mord","cancel-lap"],[C],e):O(["mord"],[C],e)},jm=(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:Gm,mathmlBuilder:jm});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"&&pt({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 Mc={};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)Mc[r[c]]=o;i&&(B0[e]=i),s&&(q0[e]=s)}var Cc={};function p(t,e){Cc[t]=e}class mt{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 mt(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,mt.range(this,e))}}function bo(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 Yn=t=>{var e=t.parser.settings;if(!e.displayMode)throw new B("{"+t.envName+"} can be used only in display mode.")},Vm=new Set(["gather","gather*"]);function Vi(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,h=e.singleRow,m=e.emptySingleRow,g=e.maxNumCols,v=e.leqno;if(t.gullet.beginGroup(),h||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 X(){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(bo(t));;){var Y=t.parseExpression(!1,h?"\\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(h||o)throw new B("Too many tab characters: &",t.nextToken);pt({strict:t.settings.strict,errorCode:"textEnv",errorMsg:"Too few columns specified in the {array} column argument.",report:!0})}t.consume()}else if(R==="\\end"){X(),A.length===1&&T.type==="styling"&&T.body.length===1&&T.body[0].type==="ordgroup"&&T.body[0].body.length===0&&(M.length>1||!m)&&!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),X(),S.push(bo(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 Ot=function(e,r){var n,a,i=e.body.length,s=e.hLinesBeforeRow,o=0,c=new Array(i),h=[],m=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 X(ot){for(var xt=0;xt<ot.length;++xt)xt>0&&(W+=.25),h.push({pos:W,isDashed:ot[xt]})}for(X(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 P=pe(Y[a],r);R<P.depth&&(R=P.depth),T<P.height&&(T=P.height),U.cells[a]=P}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,X(s[n+1])}var F=W/2+r.fontMetrics().axisHeight,K=e.cols||[],J=[],ee,le,ue=[];if(e.tags&&e.tags.some(ot=>ot))for(n=0;n<i;++n){var De=c[n],ge=De.pos-F,Ae=e.tags[n],st=void 0;Ae===!0?st=O(["eqn-num"],[],r):Ae===!1?st=O([],[],r):st=O([],Fe(Ae,r,!0),r),st.depth=De.depth,st.height=De.height,ue.push({type:"elem",elem:st,shift:ge})}for(a=0,le=0;a<o||le<K.length;++a,++le){for(var wt,Ze=K[le],Qe=!0;((gr=Ze)==null?void 0:gr.type)==="separator";){var gr;if(Qe||(ee=O(["arraycolsep"],[]),ee.style.width=H(r.fontMetrics().doubleRuleSep),J.push(ee)),Ze.separator==="|"||Ze.separator===":"){var ye=Ze.separator==="|"?"solid":"dashed",Qt=O(["vertical-separator"],[],r);Qt.style.height=H(W),Qt.style.borderRightWidth=H(m),Qt.style.borderRightStyle=ye,Qt.style.margin="0 "+H(-m/2);var Q0=W-F;Q0&&(Qt.style.verticalAlign=H(-Q0)),J.push(Qt)}else throw new B("Invalid separator type: "+Ze.separator);le++,Ze=K[le],Qe=!1}if(!(a>=o)){var Jt=void 0;if(a>0||e.hskipBeforeAndAfter){var J0,en;Jt=(J0=(en=Ze)==null?void 0:en.pregap)!=null?J0:v,Jt!==0&&(ee=O(["arraycolsep"],[]),ee.style.width=H(Jt),J.push(ee))}var tn=[];for(n=0;n<i;++n){var vr=c[n],$r=vr.cells[a];if($r){var rn=vr.pos-F;$r.depth=vr.depth,$r.height=vr.height,tn.push({type:"elem",elem:$r,shift:rn})}}var xe=fe({positionType:"individualShift",children:tn}),g0=O(["col-align-"+(((wt=Ze)==null?void 0:wt.align)||"c")],[xe]);if(J.push(g0),a<o-1||e.hskipBeforeAndAfter){var we,Br;Jt=(we=(Br=Ze)==null?void 0:Br.postgap)!=null?we:v,Jt!==0&&(ee=O(["arraycolsep"],[]),ee.style.width=H(Jt),J.push(ee))}}}var Je=O(["mtable"],J);if(h.length>0){for(var br=i0("katex-hline",r,m),nn=i0("katex-hdashline",r,m),kt=[{type:"elem",elem:Je,shift:0}];h.length>0;){var v0=h.pop(),qr=v0.pos-F;v0.isDashed?kt.push({type:"elem",elem:nn,shift:qr}):kt.push({type:"elem",elem:br,shift:qr})}Je=fe({positionType:"individualShift",children:kt})}if(ue.length===0)return O(["mord"],[Je],r);var an=fe({positionType:"individualShift",children:ue}),b0=O(["katex-tag"],[an],r);return Zt([Je,b0])},Km={c:"center ",l:"left ",r:"right "},Pt=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=[],h=0;h<o.length;h++)c.push(new q("mtd",[be(o[h],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 m=new q("mtable",n),g=e.arraystretch===.5?.1:.16+e.arraystretch-1+(e.addJot?.09:0);m.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 X=A[W];X.type==="align"?(w+=Km[X.align],D&&(M+="none "),D=!0):X.type==="separator"&&D&&(M+=X.separator==="|"?"solid ":"dashed ",D=!1)}m.setAttribute("columnalign",w.trim()),/[sd]/.test(M)&&m.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 ";m.setAttribute("columnspacing",T.trim())}else e.colSeparationType==="alignat"||e.colSeparationType==="gather"?m.setAttribute("columnspacing","0em"):e.colSeparationType==="small"?m.setAttribute("columnspacing","0.2778em"):e.colSeparationType==="CD"?m.setAttribute("columnspacing","0.5em"):m.setAttribute("columnspacing","1em");var U="",P=e.hLinesBeforeRow;v+=P[0].length>0?"left ":"",v+=P[P.length-1].length>0?"right ":"";for(var $=1;$<P.length-1;$++)U+=P[$].length===0?"none ":P[$][0]?"dashed ":"solid ";return/[sd]/.test(U)&&m.setAttribute("rowlines",U.trim()),v!==""&&(m=new q("menclose",[m]),m.setAttribute("notation",v.trim())),e.arraystretch&&e.arraystretch<1&&(m=new q("mstyle",[m]),m.setAttribute("scriptlevel","1")),m},Ic=function(e,r){e.envName.includes("ed")||Yn(e);var n=[],a=e.envName==="split",i=fr(e.parser,{cols:n,addJot:!0,autoTag:a?void 0:Vi(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 h="Number of columns should be a positive integer",m=Gi(r[0],h);if(!/^[0-9]+$/.test(m)||Number(m)<1)throw new B(h,r[0]);s=Number(m),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=jn(e[0]),n=r?[e[0]]:oe(e[0],"ordgroup").body,a=n.map(function(s){var o=Gn(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:Ot,mathmlBuilder:Pt});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:Ot,mathmlBuilder:Pt});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:Ot,mathmlBuilder:Pt});Lt({type:"array",names:["subarray"],props:{numArgs:1},handler(t,e){var r=jn(e[0]),n=r?[e[0]]:oe(e[0],"ordgroup").body,a=n.map(function(o){var c=Gn(o),h=c.text;if("lc".includes(h))return{type:"align",align:h};throw new B("Unknown column alignment: "+h,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:Ot,mathmlBuilder:Pt});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:Ot,mathmlBuilder:Pt});Lt({type:"array",names:["align","align*","aligned","split"],props:{numArgs:0},handler:Ic,htmlBuilder:Ot,mathmlBuilder:Pt});Lt({type:"array",names:["gathered","gather","gather*"],props:{numArgs:0},handler(t){Vm.has(t.envName)&&Yn(t);var e={cols:[{type:"align",align:"c"}],addJot:!0,colSeparationType:"gather",autoTag:Vi(t.envName),emptySingleRow:!0,leqno:t.parser.settings.leqno};return fr(t.parser,e,"display")},htmlBuilder:Ot,mathmlBuilder:Pt});Lt({type:"array",names:["alignat","alignat*","alignedat"],props:{numArgs:1},handler:Ic,htmlBuilder:Ot,mathmlBuilder:Pt});Lt({type:"array",names:["equation","equation*"],props:{numArgs:0},handler(t){Yn(t);var e={autoTag:Vi(t.envName),emptySingleRow:!0,singleRow:!0,maxNumCols:1,leqno:t.parser.settings.leqno};return fr(t.parser,e,"display")},htmlBuilder:Ot,mathmlBuilder:Pt});Lt({type:"array",names:["CD"],props:{numArgs:0},handler(t){return Yn(t),Rm(t.parser)},htmlBuilder:Ot,mathmlBuilder:Pt});p("\\nonumber","\\gdef\\@eqnsw{0}");p("\\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 yo=Mc;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=Gi(a,"Environment name should contain only text characters and spaces",!0);if(n==="\\begin"){if(!Object.prototype.hasOwnProperty.call(yo,i))throw new B("No such environment: "+i,a);var s=yo[i],o=r.parseArguments("\\begin{"+i+"}",s),c=o.args,h=o.optArgs,m={mode:r.mode,envName:i,parser:r},g=s.handler(m,c,h);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 Ym=(t,e)=>{var r=t.font,n=e.withFont(r);return pe(t.body,n)},Xm=(t,e)=>{var r=t.font,n=e.withFont(r);return be(t.body,n)},wo={"\\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=F0(e[0]),i=n in wo?wo[n]:n;return{type:"font",mode:r.mode,font:i.slice(1),body:a}},htmlBuilder:Ym,mathmlBuilder:Xm});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:Vn(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 Zm=(t,e)=>{var r=e.style,n=r.fracNum(),a=r.fracDen(),i;i=e.havingStyle(n);var s=pe(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 h=pe(t.denom,i,e),m,g,v;t.hasBarLine?(t.barSize?(g=Ie(t.barSize,e),m=i0("frac-line",e,g)):m=i0("frac-line",e),g=m.height,v=m.height):(m=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(m){var C=e.fontMetrics().axisHeight;w-s.depth-(C+.5*g)<A&&(w+=A-(w-s.depth-(C+.5*g))),C-.5*g-(h.height-M)<A&&(M+=A-(C-.5*g-(h.height-M)));var W=-(C-.5*g);D=fe({positionType:"individualShift",children:[{type:"elem",elem:h,shift:M},{type:"elem",elem:m,shift:W},{type:"elem",elem:s,shift:-w}]})}else{var S=w-s.depth-(h.height-M);S<A&&(w+=.5*(A-S),M+=.5*(A-S)),D=fe({positionType:"individualShift",children:[{type:"elem",elem:h,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 X;r.size===ae.DISPLAY.size?X=e.fontMetrics().delim1:r.size===ae.SCRIPTSCRIPT.size?X=e.havingStyle(ae.SCRIPT).fontMetrics().delim2:X=e.fontMetrics().delim2;var Y,T;return t.leftDelim==null?Y=H0(e,["mopen"]):Y=pi(t.leftDelim,X,!0,e.havingStyle(r),t.mode,["mopen"]),t.continued?T=O([]):t.rightDelim==null?T=H0(e,["mclose"]):T=pi(t.rightDelim,X,!0,e.havingStyle(r),t.mode,["mclose"]),O(["mord"].concat(i.sizingClasses(e)),[Y,O(["mfrac"],[D]),T],e)},Qm=(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 Pe(t.leftDelim.replace("\\",""))]);i.setAttribute("fence","true"),a.push(i)}if(a.push(r),t.rightDelim!=null){var s=new q("mo",[new Pe(t.rightDelim.replace("\\",""))]);s.setAttribute("fence","true"),a.push(s)}return Ui(a)}return r},zc=(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 h=n==="\\cfrac",m=null;return h||n.startsWith("\\d")?m="display":n.startsWith("\\t")&&(m="text"),zc({type:"genfrac",mode:r.mode,numer:a,denom:i,continued:h,hasBarLine:s,leftDelim:o,rightDelim:c,barSize:null},m)},htmlBuilder:Zm,mathmlBuilder:Qm});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 ko=["display","text","script","scriptscript"],xo=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=F0(e[0]),s=i.type==="atom"&&i.family==="open"?xo(i.text):null,o=F0(e[1]),c=o.type==="atom"&&o.family==="close"?xo(o.text):null,h=oe(e[2],"size"),m,g=null;h.isBlank?m=!0:(g=h.value,m=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=ko[Number(A.text)]}}else w=oe(w,"textord"),v=ko[Number(w.text)];return zc({type:"genfrac",mode:r.mode,numer:n,denom:a,continued:!1,hasBarLine:m,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 Rc=(t,e)=>{var r=e.style,n,a;t.type==="supsub"?(n=t.sup?pe(t.sup,e.havingStyle(r.sup()),e):pe(t.sub,e.havingStyle(r.sub()),e),a=oe(t.base,"horizBrace")):a=oe(t,"horizBrace");var i=pe(a.base,e.havingBaseStyle(ae.DISPLAY)),s=Wn(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=O(["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 O(["minner",a.isOver?"mover":"munder"],[o],e)},Jm=(t,e)=>{var r=Un(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:Rc,mathmlBuilder:Jm});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:Oe(n)}:r.formatUnsupportedCmd("\\href")},htmlBuilder:(t,e)=>{var r=Fe(t.body,e,!1);return em(t.href,[],r,e)},mathmlBuilder:(t,e)=>{var r=pr(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:Oe(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:Oe(e[0])}},htmlBuilder(t,e){var r=Fe(t.body,e.withFont(""),!1);return Zt(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&&pt({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="{,}",h=[],m="",g=0;g<a.length;g++)a.startsWith(c,g)?(m+=",",g+=c.length-1):a[g]===","?(h.push(m),m=""):m+=a[g];h.push(m);for(var v=0;v<h.length;v++){var w=h[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:Oe(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=O(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)=>pr(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:Oe(e[0]),mathml:Oe(e[1])}},htmlBuilder:(t,e)=>{var r=Fe(t.html,e,!1);return Zt(r)},mathmlBuilder:(t,e)=>pr(t.mathml,e)});var _a=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(!rc(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,h=c.split(","),m=0;m<h.length;m++){var g=h[m].split("=");if(g.length===2){var v=g[1].trim();switch(g[0].trim()){case"alt":o=v;break;case"width":a=_a(v);break;case"height":i=_a(v);break;case"totalheight":s=_a(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 Ud(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||pt({strict:r.settings.strict,errorCode:"mathVsTextUnits",errorMsg:"LaTeX's "+n+" supports only mu units, "+("not "+a.value.unit+" units"),report:!0}),r.mode!=="math"&&pt({strict:r.settings.strict,errorCode:"mathVsTextUnits",errorMsg:"LaTeX's "+n+" works only in math mode",report:!0})):s&&pt({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 lc(t.dimension,e)},mathmlBuilder(t,e){var r=Ie(t.dimension,e);return new pc(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=O([],[pe(t.body,e)]),r=O(["katex-inner"],[r],e)):r=O(["katex-inner"],[pe(t.body,e)]);var n=O(["katex-fix"],[]),a=O([t.alignment],[r,n],e),i=O(["katex-strut"]);return i.style.height=H(a.height+a.depth),a.depth&&(i.style.verticalAlign=H(-a.depth)),a.children.unshift(i),a=O(["katex-thinbox"],[a],e),O(["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 So=(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:Oe(e[0]),text:Oe(e[1]),script:Oe(e[2]),scriptscript:Oe(e[3])}},htmlBuilder:(t,e)=>{var r=So(t,e),n=Fe(r,e,!1);return Zt(n)},mathmlBuilder:(t,e)=>{var r=So(t,e);return pr(r,e)}});var Dc=(t,e,r,n,a,i,s)=>{t=O([],[t]);var o=r&&Yt(r),c,h;if(e){var m=pe(e,n.havingStyle(a.sup()),n);h={elem:m,kern:Math.max(n.fontMetrics().bigOpSpacing1,n.fontMetrics().bigOpSpacing3-m.depth)}}if(r){var g=pe(r,n.havingStyle(a.sub()),n);c={elem:g,kern:Math.max(n.fontMetrics().bigOpSpacing2,n.fontMetrics().bigOpSpacing4-g.height)}}var v;if(h&&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:h.kern},{type:"elem",elem:h.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(h){var M=t.depth+s;v=fe({positionType:"bottom",positionData:M,children:[{type:"elem",elem:t},{type:"kern",size:h.kern},{type:"elem",elem:h.elem,marginLeft:H(i)},{type:"kern",size:n.fontMetrics().bigOpSpacing5}]})}else return t;var D=[v];if(c&&i!==0&&!o){var S=O(["mspace"],[],n);S.style.marginRight=H(i),D.unshift(S)}return O(["mop","op-limits"],D,n)},Nc=new Set(["\\smallint"]),_c=(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&&!Nc.has(i.name)&&(o=!0);var c,h;if(i.symbol){var m=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,m,"math",e,["mop","op-symbol",o?"large-op":"small-op"]),h=c.italic,g.length>0){var v=uc(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=h}}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=O(["mop"],w,e)}else{for(var A=[],M=1;M<i.name.length;M++)A.push(Fi(i.name[M],i.mode,e));c=O(["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?Dc(c,r,n,e,s,S,D):(D&&(c.style.position="relative",c.style.top=H(D)),c)},ep=(t,e)=>{var r;if(t.symbol)r=new q("mo",[Mt(t.name,t.mode)]),Nc.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 Pe(t.name.slice(1))]);var n=new q("mo",[Mt("⁡","text")]);t.parentIsSupSub?r=new q("mrow",[r,n]):r=mc([r,n])}return r},tp={"∏":"\\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=tp[a]),{type:"op",mode:r.mode,limits:!0,parentIsSupSub:!1,symbol:!0,name:a}},htmlBuilder:_c,mathmlBuilder:ep});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:Oe(n)}}});var rp={"∫":"\\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=rp[n]),{type:"op",mode:e.mode,limits:!1,parentIsSupSub:!1,symbol:!0,name:n}}});var Lc=(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),h=0;h<c.length;h++){var m=c[h];m instanceof Et&&(m.text=m.text.replace(/\u2212/,"-").replace(/\u2217/,"*"))}s=O(["mop"],c,e)}else s=O(["mop"],[],e);return a?Dc(s,r,n,e,e.style,0,0):s},np=(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 pc))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 Pe?s.text=s.text.replace(/\u2212/,"-").replace(/\u2217/,"*"):n=!1;break}default:n=!1}else n=!1}if(n){var o=r.map(m=>m.toText()).join("");r=[new Pe(o)]}var c=new q("mi",r);c.setAttribute("mathvariant","normal");var h=new q("mo",[Mt("⁡","text")]);return t.parentIsSupSub?new q("mrow",[c,h]):mc([c,h])};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:Oe(a),alwaysHandleSupSub:n==="\\operatornamewithlimits",limits:!1,parentIsSupSub:!1}},htmlBuilder:Lc,mathmlBuilder:np});p("\\operatorname","\\@ifstar\\operatornamewithlimits\\operatorname@");Or({type:"ordgroup",htmlBuilder(t,e){return t.semisimple?Zt(Fe(t.body,e,!1)):O(["mord"],Fe(t.body,e,!0),e)},mathmlBuilder(t,e){return pr(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=pe(t.body,e.havingCrampedStyle()),n=i0("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 O(["mord","katex-overline"],[i],e)},mathmlBuilder(t,e){var r=new q("mo",[new Pe("‾")]);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:Oe(n)}},htmlBuilder:(t,e)=>{var r=Fe(t.body,e.withPhantom(),!1);return Zt(r)},mathmlBuilder:(t,e)=>{var r=yt(t.body,e);return new q("mphantom",r)}});p("\\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=O(["katex-inner"],[pe(t.body,e.withPhantom())]),n=O(["katex-fix"],[]);return O(["mord","rlap"],[r,n],e)},mathmlBuilder:(t,e)=>{var r=yt(Oe(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=pe(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 Oc=(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:Oc,htmlBuilder(t,e){return O(["mord","reflectbox"],[pe(t.body,e)],e)},mathmlBuilder(t,e){return be(t.body,e)}});G({type:"reflectbox",names:["\\mathreflectbox"],numArgs:1,argTypes:["math"],handler:Oc});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=O(["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 Pc(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 Zt(n)}var Ao=["\\tiny","\\sixptsize","\\scriptsize","\\footnotesize","\\small","\\normalsize","\\large","\\Large","\\LARGE","\\huge","\\Huge"],ap=(t,e)=>{var r=e.havingSize(t.size);return Pc(t.body,r,e)};G({type:"sizing",names:Ao,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:Ao.indexOf(n)+1,body:i}},htmlBuilder:ap,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 h=s.body[c];if(o=Gn(h).text,o==="t")a=!0;else if(o==="b")i=!0;else{a=!1,i=!1;break}}else a=!0,i=!0;var m=e[0];return{type:"smash",mode:n.mode,body:m,smashHeight:a,smashDepth:i}},htmlBuilder:(t,e)=>{var r=O([],[pe(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 O(["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 O(["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=pe(t.body,e.havingCrampedStyle());r.height===0&&(r.height=e.fontMetrics().xHeight),r=s0(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=Bm(o,e),h=c.span,m=c.ruleWidth,g=c.advanceWidth,v=h.height-m;v>r.height+r.depth+s&&(s=(s+v-r.height-r.depth)/2);var w=h.height-r.height-s-m;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:h},{type:"kern",size:m}]});if(t.index){var M=e.havingStyle(ae.SCRIPTSCRIPT),D=pe(t.index,M,e),S=.6*(A.height-A.depth),C=fe({positionType:"shift",positionData:-S,children:[{type:"elem",elem:D}]}),W=O(["katex-root"],[C]);return O(["mord","sqrt"],[W,A],e)}else return O(["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 fi={display:ae.DISPLAY,text:ae.TEXT,script:ae.SCRIPT,scriptscript:ae.SCRIPTSCRIPT};function ip(t){return t in fi}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(!ip(s))throw new Error("Unknown style: "+s);return{type:"styling",mode:a.mode,style:s,body:i}},htmlBuilder(t,e){var r=fi[t.style],n=e.havingStyle(r);return t.resetFont&&(n=n.withFont("")),Pc(t.body,n,e)},mathmlBuilder(t,e){var r=fi[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 sp=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?_c:null}else if(n.type==="operatorname"){var i=n.alwaysHandleSupSub&&(r.style.size===ae.DISPLAY.size||n.limits);return i?Lc:null}else{if(n.type==="accent")return Yt(n.base)?gc:null;if(n.type==="horizBrace"){var s=!e.sub;return s===n.isOver?Rc:null}else return null}else return null};Or({type:"supsub",htmlBuilder(t,e){var r=sp(t,e);if(r)return r(t,e);var n=t.base,a=t.sup,i=t.sub,s=pe(n,e),o,c,h=e.fontMetrics(),m=0,g=0,v=n&&Yt(n);if(a){var w=e.havingStyle(e.style.sup());o=pe(a,w,e),v||(m=s.height-w.fontMetrics().supDrop*w.sizeMultiplier/e.sizeMultiplier)}if(i){var A=e.havingStyle(e.style.sub());c=pe(i,A,e),v||(g=s.depth+A.fontMetrics().subDrop*A.sizeMultiplier/e.sizeMultiplier)}var M;e.style===ae.DISPLAY?M=h.sup1:e.style.cramped?M=h.sup3:M=h.sup2;var D=e.sizeMultiplier,S=H(.5/h.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 X;C=H(-((X=s.italic)!=null?X:0))}}var Y;if(o&&c){m=Math.max(m,M,o.depth+.25*h.xHeight),g=Math.max(g,h.sub2);var T=h.defaultRuleThickness,R=4*T;if(m-o.depth-(c.height-g)<R){g=R-(m-o.depth)+c.height;var U=.8*h.xHeight-(m-o.depth);U>0&&(m+=U,g-=U)}var P=[{type:"elem",elem:c,shift:g,marginRight:S,marginLeft:C},{type:"elem",elem:o,shift:-m,marginRight:S}];Y=fe({positionType:"individualShift",children:P})}else if(c){g=Math.max(g,h.sub1,c.height-.8*h.xHeight);var $=[{type:"elem",elem:c,marginLeft:C,marginRight:S}];Y=fe({positionType:"shift",positionData:g,children:$})}else if(o)m=Math.max(m,M,o.depth+.25*h.xHeight),Y=fe({positionType:"shift",positionData:-m,children:[{type:"elem",elem:o,marginRight:S}]});else throw new Error("supsub must have either sup or sub.");var L=hi(s,"right")||"mord";return O([L],[s,O(["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 h=t.base;h&&h.type==="op"&&h.limits&&e.style===ae.DISPLAY||h&&h.type==="operatorname"&&h.alwaysHandleSupSub&&(e.style===ae.DISPLAY||h.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 Fi(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=Wi(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 $c={mi:"italic",mn:"normal",mtext:"normal"};Or({type:"mathord",htmlBuilder(t,e){return Hn(t,e)},mathmlBuilder(t,e){var r=new q("mi",[Mt(t.text,t.mode,e)]),n=Wi(t,e)||"italic";return n!==$c[r.type]&&r.setAttribute("mathvariant",n),r}});Or({type:"textord",htmlBuilder(t,e){return Hn(t,e)},mathmlBuilder(t,e){var r=Mt(t.text,t.mode,e),n=Wi(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!==$c[a.type]&&a.setAttribute("mathvariant",n),a}});var To=new Map([["\\nobreak","nobreak"],["\\allowbreak","allowbreak"]]),Eo=new Map([[" ",{}],["\\ ",{}],["~",{className:"nobreak"}],["\\space",{}],["\\nobreakspace",{className:"nobreak"}]]);Or({type:"spacing",htmlBuilder(t,e){var r=Eo.get(t.text),n=To.get(t.text);if(r){var a=r.className||"";if(t.mode==="text"){var i=Hn(t,e);return i.classes.push(a),i}else return O(["mspace",a],[Fi(t.text,t.mode,e)],e)}else{if(n)return O(["mspace",n],[],e);throw new B('Unknown type of space "'+t.text+'"')}},mathmlBuilder(t,e){var r;if(Eo.has(t.text))r=new q("mtext",[new Pe(" ")]);else{if(To.has(t.text))return new q("mspace");throw new B('Unknown type of space "'+t.text+'"')}return r}});var Mo=()=>{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",[Mo(),new q("mtd",[pr(t.body,e)]),Mo(),new q("mtd",[pr(t.tag,e)])])]);return r.setAttribute("width","100%"),r}});var Co={"\\text":void 0,"\\textrm":"textrm","\\textsf":"textsf","\\texttt":"texttt","\\textnormal":"textrm"},Io={"\\textbf":"textbf","\\textmd":"textmd"},op={"\\textit":"textit","\\textup":"textup"},zo=(t,e)=>{var r=t.font;if(r){if(Co[r])return e.withTextFontFamily(Co[r]);if(Io[r])return e.withTextFontWeight(Io[r]);if(r==="\\emph")return e.fontShape==="textit"?e.withTextFontShape("textup"):e.withTextFontShape("textit")}else return e;return e.withTextFontShape(op[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:Oe(a),font:n}},htmlBuilder(t,e){var r=zo(t,e),n=Fe(t.body,r,!0);return O(["mord","text"],n,r)},mathmlBuilder(t,e){var r=zo(t,e);return pr(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=pe(t.body,e),n=i0("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 O(["mord","katex-underline"],[i],e)},mathmlBuilder(t,e){var r=new q("mo",[new Pe("‾")]);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=pe(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=Ro(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 O(["mord","text"].concat(a.sizingClasses(e)),oc(n),a)},mathmlBuilder(t,e){var r=new Pe(Ro(t)),n=new q("mtext",[r]);return n.setAttribute("mathvariant","monospace"),n}});var Ro=t=>t.body.replace(/ /g,t.star?"␣":" "),or=hc,Bc=`[ \r
331
331
  ]`,lp="\\\\[a-zA-Z@]+",cp="\\\\[^\uD800-\uDFFF]",up="("+lp+")"+Bc+"*",hp=`\\\\(
332
332
  |[ \r ]+
333
333
  ?)[ \r ]*`,gi="[̀-ͯ]",dp=new RegExp(gi+"+$"),mp="("+Bc+"+)|"+(hp+"|")+"([!-\\[\\]-‧‪-퟿豈-￿]"+(gi+"*")+"|[\uD800-\uDBFF][\uDC00-\uDFFF]"+(gi+"*")+"|\\\\verb\\*([^]).*?\\4|\\\\verb([^*a-zA-Z]).*?\\5"+("|"+up)+("|"+cp+")");class Do{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(mp,"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 mt(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 mt(this,r,r+1)));var a=n[6]||n[3]||(n[2]?"\\ ":" ");if(this.catcodes[a]===14){var i=e.indexOf(`
334
- `,this.tokenRegex.lastIndex);return i===-1?(this.tokenRegex.lastIndex=e.length,pt({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 mt(this,r,this.tokenRegex.lastIndex))}}class pp{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 fp=Cc;p("\\noexpand",function(t){var e=t.popToken();return t.isExpandable(e.text)&&(e.noexpand=!0,e.treatAsRelax=!0),{tokens:[e],numArgs:0}});p("\\expandafter",function(t){var e=t.popToken();return t.expandOnce(!0),{tokens:[e],numArgs:0}});p("\\@firstoftwo",function(t){var e=t.consumeArgs(2);return{tokens:e[0],numArgs:0}});p("\\@secondoftwo",function(t){var e=t.consumeArgs(2);return{tokens:e[1],numArgs:0}});p("\\@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}});p("\\@ifstar","\\@ifnextchar *{\\@firstoftwo{#1}}");p("\\TextOrMath",function(t){var e=t.consumeArgs(2);return t.mode==="text"?{tokens:e[0],numArgs:0}:{tokens:e[1],numArgs:0}});var No={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};p("\\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=No[e.text],n==null||n>=r)throw new B("Invalid base-"+r+" digit "+e.text);for(var a;(a=No[t.future().text])!=null&&a<r;)n*=r,n+=a,t.popToken()}return"\\@char{"+n+"}"});var Xi=(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="",h=t.expandNextToken();h.text!=="]"&&h.text!=="EOF";)c+=h.text,h=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}),""};p("\\newcommand",t=>Xi(t,!1,!0,!1));p("\\renewcommand",t=>Xi(t,!0,!1,!1));p("\\providecommand",t=>Xi(t,!0,!0,!0));p("\\message",t=>{var e=t.consumeArgs(1)[0];return console.log(e.reverse().map(r=>r.text).join("")),""});p("\\errmessage",t=>{var e=t.consumeArgs(1)[0];return console.error(e.reverse().map(r=>r.text).join("")),""});p("\\show",t=>{var e=t.popToken(),r=e.text;return console.log(e,t.macros.get(r),or[r],Te.math[r],Te.text[r]),""});p("\\bgroup","{");p("\\egroup","}");p("~","\\nobreakspace");p("\\lq","`");p("\\rq","'");p("\\aa","\\r a");p("\\AA","\\r A");p("\\textcopyright","\\html@mathml{\\textcircled{c}}{\\char`©}");p("\\copyright","\\TextOrMath{\\textcopyright}{\\text{\\textcopyright}}");p("\\textregistered","\\html@mathml{\\textcircled{\\scriptsize R}}{\\char`®}");p("ℬ","\\mathscr{B}");p("ℰ","\\mathscr{E}");p("ℱ","\\mathscr{F}");p("ℋ","\\mathscr{H}");p("ℐ","\\mathscr{I}");p("ℒ","\\mathscr{L}");p("ℳ","\\mathscr{M}");p("ℛ","\\mathscr{R}");p("ℭ","\\mathfrak{C}");p("ℌ","\\mathfrak{H}");p("ℨ","\\mathfrak{Z}");p("\\Bbbk","\\Bbb{k}");p("\\llap","\\mathllap{\\textrm{#1}}");p("\\rlap","\\mathrlap{\\textrm{#1}}");p("\\clap","\\mathclap{\\textrm{#1}}");p("\\mathstrut","\\vphantom{(}");p("\\underbar","\\underline{\\text{#1}}");p("\\not",'\\html@mathml{\\mathrel{\\mathrlap\\@not}\\nobreak}{\\char"338}');p("\\neq","\\html@mathml{\\mathrel{\\not=}}{\\mathrel{\\char`≠}}");p("\\ne","\\neq");p("≠","\\neq");p("\\notin","\\html@mathml{\\mathrel{{\\in}\\mathllap{/\\mskip1mu}}}{\\mathrel{\\char`∉}}");p("∉","\\notin");p("≘","\\html@mathml{\\mathrel{=\\kern{-1em}\\raisebox{0.4em}{$\\scriptsize\\frown$}}}{\\mathrel{\\char`≘}}");p("≙","\\html@mathml{\\stackrel{\\tiny\\wedge}{=}}{\\mathrel{\\char`≘}}");p("≚","\\html@mathml{\\stackrel{\\tiny\\vee}{=}}{\\mathrel{\\char`≚}}");p("≛","\\html@mathml{\\stackrel{\\scriptsize\\star}{=}}{\\mathrel{\\char`≛}}");p("≝","\\html@mathml{\\stackrel{\\tiny\\mathrm{def}}{=}}{\\mathrel{\\char`≝}}");p("≞","\\html@mathml{\\stackrel{\\tiny\\mathrm{m}}{=}}{\\mathrel{\\char`≞}}");p("≟","\\html@mathml{\\stackrel{\\tiny?}{=}}{\\mathrel{\\char`≟}}");p("⟂","\\perp");p("‼","\\mathclose{!\\mkern-0.8mu!}");p("∌","\\notni");p("⌜","\\ulcorner");p("⌝","\\urcorner");p("⌞","\\llcorner");p("⌟","\\lrcorner");p("©","\\copyright");p("®","\\textregistered");p("\\ulcorner",'\\html@mathml{\\@ulcorner}{\\mathop{\\char"231c}}');p("\\urcorner",'\\html@mathml{\\@urcorner}{\\mathop{\\char"231d}}');p("\\llcorner",'\\html@mathml{\\@llcorner}{\\mathop{\\char"231e}}');p("\\lrcorner",'\\html@mathml{\\@lrcorner}{\\mathop{\\char"231f}}');p("\\vdots","{\\varvdots\\rule{0pt}{15pt}}");p("⋮","\\vdots");p("\\varGamma","\\mathit{\\Gamma}");p("\\varDelta","\\mathit{\\Delta}");p("\\varTheta","\\mathit{\\Theta}");p("\\varLambda","\\mathit{\\Lambda}");p("\\varXi","\\mathit{\\Xi}");p("\\varPi","\\mathit{\\Pi}");p("\\varSigma","\\mathit{\\Sigma}");p("\\varUpsilon","\\mathit{\\Upsilon}");p("\\varPhi","\\mathit{\\Phi}");p("\\varPsi","\\mathit{\\Psi}");p("\\varOmega","\\mathit{\\Omega}");p("\\substack","\\begin{subarray}{c}#1\\end{subarray}");p("\\colon","\\nobreak\\mskip2mu\\mathpunct{}\\mathchoice{\\mkern-3mu}{\\mkern-3mu}{}{}{:}\\mskip6mu\\relax");p("\\boxed","\\fbox{$\\displaystyle{#1}$}");p("\\iff","\\DOTSB\\;\\Longleftrightarrow\\;");p("\\implies","\\DOTSB\\;\\Longrightarrow\\;");p("\\impliedby","\\DOTSB\\;\\Longleftarrow\\;");p("\\dddot","{\\overset{\\raisebox{-0.1ex}{\\normalsize ...}}{#1}}");p("\\ddddot","{\\overset{\\raisebox{-0.1ex}{\\normalsize ....}}{#1}}");var _o={",":"\\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"},gp=new Set(["bin","rel"]);p("\\dots",function(t){var e="\\dotso",r=t.expandAfterFuture().text;return r in _o?e=_o[r]:(r.slice(0,4)==="\\not"||r in Te.math&&gp.has(Te.math[r].group))&&(e="\\dotsb"),e});var Yi={")":!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};p("\\dotso",function(t){var e=t.future().text;return e in Yi?"\\ldots\\,":"\\ldots"});p("\\dotsc",function(t){var e=t.future().text;return e in Yi&&e!==","?"\\ldots\\,":"\\ldots"});p("\\cdots",function(t){var e=t.future().text;return e in Yi?"\\@cdots\\,":"\\@cdots"});p("\\dotsb","\\cdots");p("\\dotsm","\\cdots");p("\\dotsi","\\!\\cdots");p("\\dotsx","\\ldots\\,");p("\\DOTSI","\\relax");p("\\DOTSB","\\relax");p("\\DOTSX","\\relax");p("\\tmspace","\\TextOrMath{\\kern#1#3}{\\mskip#1#2}\\relax");p("\\,","\\tmspace+{3mu}{.1667em}");p("\\thinspace","\\,");p("\\>","\\mskip{4mu}");p("\\:","\\tmspace+{4mu}{.2222em}");p("\\medspace","\\:");p("\\;","\\tmspace+{5mu}{.2777em}");p("\\thickspace","\\;");p("\\!","\\tmspace-{3mu}{.1667em}");p("\\negthinspace","\\!");p("\\negmedspace","\\tmspace-{4mu}{.2222em}");p("\\negthickspace","\\tmspace-{5mu}{.277em}");p("\\enspace","\\kern.5em ");p("\\enskip","\\hskip.5em\\relax");p("\\quad","\\hskip1em\\relax");p("\\qquad","\\hskip2em\\relax");p("\\tag","\\@ifstar\\tag@literal\\tag@paren");p("\\tag@paren","\\tag@literal{({#1})}");p("\\tag@literal",t=>{if(t.macros.get("\\df@tag"))throw new B("Multiple \\tag");return"\\gdef\\df@tag{\\text{#1}}"});p("\\bmod","\\mathchoice{\\mskip1mu}{\\mskip1mu}{\\mskip5mu}{\\mskip5mu}\\mathbin{\\rm mod}\\mathchoice{\\mskip1mu}{\\mskip1mu}{\\mskip5mu}{\\mskip5mu}");p("\\pod","\\allowbreak\\mathchoice{\\mkern18mu}{\\mkern8mu}{\\mkern8mu}{\\mkern8mu}(#1)");p("\\pmod","\\pod{{\\rm mod}\\mkern6mu#1}");p("\\mod","\\allowbreak\\mathchoice{\\mkern18mu}{\\mkern12mu}{\\mkern12mu}{\\mkern12mu}{\\rm mod}\\,\\,#1");p("\\newline","\\\\\\relax");p("\\TeX","\\textrm{\\html@mathml{T\\kern-.1667em\\raisebox{-.5ex}{E}\\kern-.125emX}{TeX}}");var qc=H(Ut["Main-Regular"][84][1]-.7*Ut["Main-Regular"][65][1]);p("\\LaTeX","\\textrm{\\html@mathml{"+("L\\kern-.36em\\raisebox{"+qc+"}{\\scriptstyle A}")+"\\kern-.15em\\TeX}{LaTeX}}");p("\\KaTeX","\\textrm{\\html@mathml{"+("K\\kern-.17em\\raisebox{"+qc+"}{\\scriptstyle A}")+"\\kern-.15em\\TeX}{KaTeX}}");p("\\hspace","\\@ifstar\\@hspacer\\@hspace");p("\\@hspace","\\hskip #1\\relax");p("\\@hspacer","\\rule{0pt}{0pt}\\hskip #1\\relax");p("\\ordinarycolon",":");p("\\vcentcolon","\\mathrel{\\mathop\\ordinarycolon}");p("\\dblcolon",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-.9mu}\\vcentcolon}}{\\mathop{\\char"2237}}');p("\\coloneqq",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}=}}{\\mathop{\\char"2254}}');p("\\Coloneqq",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}=}}{\\mathop{\\char"2237\\char"3d}}');p("\\coloneq",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\mathrel{-}}}{\\mathop{\\char"3a\\char"2212}}');p("\\Coloneq",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\mathrel{-}}}{\\mathop{\\char"2237\\char"2212}}');p("\\eqqcolon",'\\html@mathml{\\mathrel{=\\mathrel{\\mkern-1.2mu}\\vcentcolon}}{\\mathop{\\char"2255}}');p("\\Eqqcolon",'\\html@mathml{\\mathrel{=\\mathrel{\\mkern-1.2mu}\\dblcolon}}{\\mathop{\\char"3d\\char"2237}}');p("\\eqcolon",'\\html@mathml{\\mathrel{\\mathrel{-}\\mathrel{\\mkern-1.2mu}\\vcentcolon}}{\\mathop{\\char"2239}}');p("\\Eqcolon",'\\html@mathml{\\mathrel{\\mathrel{-}\\mathrel{\\mkern-1.2mu}\\dblcolon}}{\\mathop{\\char"2212\\char"2237}}');p("\\colonapprox",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\approx}}{\\mathop{\\char"3a\\char"2248}}');p("\\Colonapprox",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\approx}}{\\mathop{\\char"2237\\char"2248}}');p("\\colonsim",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\sim}}{\\mathop{\\char"3a\\char"223c}}');p("\\Colonsim",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\sim}}{\\mathop{\\char"2237\\char"223c}}');p("∷","\\dblcolon");p("∹","\\eqcolon");p("≔","\\coloneqq");p("≕","\\eqqcolon");p("⩴","\\Coloneqq");p("\\ratio","\\vcentcolon");p("\\coloncolon","\\dblcolon");p("\\colonequals","\\coloneqq");p("\\coloncolonequals","\\Coloneqq");p("\\equalscolon","\\eqqcolon");p("\\equalscoloncolon","\\Eqqcolon");p("\\colonminus","\\coloneq");p("\\coloncolonminus","\\Coloneq");p("\\minuscolon","\\eqcolon");p("\\minuscoloncolon","\\Eqcolon");p("\\coloncolonapprox","\\Colonapprox");p("\\coloncolonsim","\\Colonsim");p("\\simcolon","\\mathrel{\\sim\\mathrel{\\mkern-1.2mu}\\vcentcolon}");p("\\simcoloncolon","\\mathrel{\\sim\\mathrel{\\mkern-1.2mu}\\dblcolon}");p("\\approxcolon","\\mathrel{\\approx\\mathrel{\\mkern-1.2mu}\\vcentcolon}");p("\\approxcoloncolon","\\mathrel{\\approx\\mathrel{\\mkern-1.2mu}\\dblcolon}");p("\\notni","\\html@mathml{\\not\\ni}{\\mathrel{\\char`∌}}");p("\\limsup","\\DOTSB\\operatorname*{lim\\,sup}");p("\\liminf","\\DOTSB\\operatorname*{lim\\,inf}");p("\\injlim","\\DOTSB\\operatorname*{inj\\,lim}");p("\\projlim","\\DOTSB\\operatorname*{proj\\,lim}");p("\\varlimsup","\\DOTSB\\operatorname*{\\overline{lim}}");p("\\varliminf","\\DOTSB\\operatorname*{\\underline{lim}}");p("\\varinjlim","\\DOTSB\\operatorname*{\\underrightarrow{lim}}");p("\\varprojlim","\\DOTSB\\operatorname*{\\underleftarrow{lim}}");p("\\gvertneqq","\\html@mathml{\\@gvertneqq}{≩}");p("\\lvertneqq","\\html@mathml{\\@lvertneqq}{≨}");p("\\ngeqq","\\html@mathml{\\@ngeqq}{≱}");p("\\ngeqslant","\\html@mathml{\\@ngeqslant}{≱}");p("\\nleqq","\\html@mathml{\\@nleqq}{≰}");p("\\nleqslant","\\html@mathml{\\@nleqslant}{≰}");p("\\nshortmid","\\html@mathml{\\@nshortmid}{∤}");p("\\nshortparallel","\\html@mathml{\\@nshortparallel}{∦}");p("\\nsubseteqq","\\html@mathml{\\@nsubseteqq}{⊈}");p("\\nsupseteqq","\\html@mathml{\\@nsupseteqq}{⊉}");p("\\varsubsetneq","\\html@mathml{\\@varsubsetneq}{⊊}");p("\\varsubsetneqq","\\html@mathml{\\@varsubsetneqq}{⫋}");p("\\varsupsetneq","\\html@mathml{\\@varsupsetneq}{⊋}");p("\\varsupsetneqq","\\html@mathml{\\@varsupsetneqq}{⫌}");p("\\imath","\\html@mathml{\\@imath}{ı}");p("\\jmath","\\html@mathml{\\@jmath}{ȷ}");p("\\llbracket","\\html@mathml{\\mathopen{[\\mkern-3.2mu[}}{\\mathopen{\\char`⟦}}");p("\\rrbracket","\\html@mathml{\\mathclose{]\\mkern-3.2mu]}}{\\mathclose{\\char`⟧}}");p("⟦","\\llbracket");p("⟧","\\rrbracket");p("\\lBrace","\\html@mathml{\\mathopen{\\{\\mkern-3.2mu[}}{\\mathopen{\\char`⦃}}");p("\\rBrace","\\html@mathml{\\mathclose{]\\mkern-3.2mu\\}}}{\\mathclose{\\char`⦄}}");p("↤","\\mapsfrom");p("\\mapsfrom","\\html@mathml{\\mathrel{\\mathreflectbox{\\mapsto}}}{\\mathrel{\\char`↤}}");p("⦃","\\lBrace");p("⦄","\\rBrace");p("\\minuso","\\mathbin{\\html@mathml{{\\mathrlap{\\mathchoice{\\kern{0.145em}}{\\kern{0.145em}}{\\kern{0.1015em}}{\\kern{0.0725em}}\\circ}{-}}}{\\char`⦵}}");p("⦵","\\minuso");p("\\darr","\\downarrow");p("\\dArr","\\Downarrow");p("\\Darr","\\Downarrow");p("\\lang","\\langle");p("\\rang","\\rangle");p("\\uarr","\\uparrow");p("\\uArr","\\Uparrow");p("\\Uarr","\\Uparrow");p("\\N","\\mathbb{N}");p("\\R","\\mathbb{R}");p("\\Z","\\mathbb{Z}");p("\\alef","\\aleph");p("\\alefsym","\\aleph");p("\\Alpha","\\mathrm{A}");p("\\Beta","\\mathrm{B}");p("\\bull","\\bullet");p("\\Chi","\\mathrm{X}");p("\\clubs","\\clubsuit");p("\\cnums","\\mathbb{C}");p("\\Complex","\\mathbb{C}");p("\\Dagger","\\ddagger");p("\\diamonds","\\diamondsuit");p("\\empty","\\emptyset");p("\\Epsilon","\\mathrm{E}");p("\\Eta","\\mathrm{H}");p("\\exist","\\exists");p("\\harr","\\leftrightarrow");p("\\hArr","\\Leftrightarrow");p("\\Harr","\\Leftrightarrow");p("\\hearts","\\heartsuit");p("\\image","\\Im");p("\\infin","\\infty");p("\\Iota","\\mathrm{I}");p("\\isin","\\in");p("\\Kappa","\\mathrm{K}");p("\\larr","\\leftarrow");p("\\lArr","\\Leftarrow");p("\\Larr","\\Leftarrow");p("\\lrarr","\\leftrightarrow");p("\\lrArr","\\Leftrightarrow");p("\\Lrarr","\\Leftrightarrow");p("\\Mu","\\mathrm{M}");p("\\natnums","\\mathbb{N}");p("\\Nu","\\mathrm{N}");p("\\Omicron","\\mathrm{O}");p("\\plusmn","\\pm");p("\\rarr","\\rightarrow");p("\\rArr","\\Rightarrow");p("\\Rarr","\\Rightarrow");p("\\real","\\Re");p("\\reals","\\mathbb{R}");p("\\Reals","\\mathbb{R}");p("\\Rho","\\mathrm{P}");p("\\sdot","\\cdot");p("\\sect","\\S");p("\\spades","\\spadesuit");p("\\sub","\\subset");p("\\sube","\\subseteq");p("\\supe","\\supseteq");p("\\Tau","\\mathrm{T}");p("\\thetasym","\\vartheta");p("\\weierp","\\wp");p("\\Zeta","\\mathrm{Z}");p("\\argmin","\\DOTSB\\operatorname*{arg\\,min}");p("\\argmax","\\DOTSB\\operatorname*{arg\\,max}");p("\\plim","\\DOTSB\\mathop{\\operatorname{plim}}\\limits");p("\\bra","\\mathinner{\\langle{#1}|}");p("\\ket","\\mathinner{|{#1}\\rangle}");p("\\braket","\\mathinner{\\langle{#1}\\rangle}");p("\\Bra","\\left\\langle#1\\right|");p("\\Ket","\\left|#1\\right\\rangle");var Fc=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 h=e.consumeArg().tokens,m=e.expandTokens([...i,...h,...r]);return e.macros.endGroup(),{tokens:m.reverse(),numArgs:0}};p("\\bra@ket",Fc(!1));p("\\bra@set",Fc(!0));p("\\Braket","\\bra@ket{\\left\\langle}{\\,\\middle\\vert\\,}{\\,\\middle\\vert\\,}{\\right\\rangle}");p("\\Set","\\bra@set{\\left\\{\\:}{\\;\\middle\\vert\\;}{\\;\\middle\\Vert\\;}{\\:\\right\\}}");p("\\set","\\bra@set{\\{\\,}{\\mid}{}{\\,\\}}");p("\\angln","{\\angl n}");p("\\blue","\\textcolor{##6495ed}{#1}");p("\\orange","\\textcolor{##ffa500}{#1}");p("\\pink","\\textcolor{##ff00af}{#1}");p("\\red","\\textcolor{##df0030}{#1}");p("\\green","\\textcolor{##28ae7b}{#1}");p("\\gray","\\textcolor{gray}{#1}");p("\\purple","\\textcolor{##9d38bd}{#1}");p("\\blueA","\\textcolor{##ccfaff}{#1}");p("\\blueB","\\textcolor{##80f6ff}{#1}");p("\\blueC","\\textcolor{##63d9ea}{#1}");p("\\blueD","\\textcolor{##11accd}{#1}");p("\\blueE","\\textcolor{##0c7f99}{#1}");p("\\tealA","\\textcolor{##94fff5}{#1}");p("\\tealB","\\textcolor{##26edd5}{#1}");p("\\tealC","\\textcolor{##01d1c1}{#1}");p("\\tealD","\\textcolor{##01a995}{#1}");p("\\tealE","\\textcolor{##208170}{#1}");p("\\greenA","\\textcolor{##b6ffb0}{#1}");p("\\greenB","\\textcolor{##8af281}{#1}");p("\\greenC","\\textcolor{##74cf70}{#1}");p("\\greenD","\\textcolor{##1fab54}{#1}");p("\\greenE","\\textcolor{##0d923f}{#1}");p("\\goldA","\\textcolor{##ffd0a9}{#1}");p("\\goldB","\\textcolor{##ffbb71}{#1}");p("\\goldC","\\textcolor{##ff9c39}{#1}");p("\\goldD","\\textcolor{##e07d10}{#1}");p("\\goldE","\\textcolor{##a75a05}{#1}");p("\\redA","\\textcolor{##fca9a9}{#1}");p("\\redB","\\textcolor{##ff8482}{#1}");p("\\redC","\\textcolor{##f9685d}{#1}");p("\\redD","\\textcolor{##e84d39}{#1}");p("\\redE","\\textcolor{##bc2612}{#1}");p("\\maroonA","\\textcolor{##ffbde0}{#1}");p("\\maroonB","\\textcolor{##ff92c6}{#1}");p("\\maroonC","\\textcolor{##ed5fa6}{#1}");p("\\maroonD","\\textcolor{##ca337c}{#1}");p("\\maroonE","\\textcolor{##9e034e}{#1}");p("\\purpleA","\\textcolor{##ddd7ff}{#1}");p("\\purpleB","\\textcolor{##c6b9fc}{#1}");p("\\purpleC","\\textcolor{##aa87ff}{#1}");p("\\purpleD","\\textcolor{##7854ab}{#1}");p("\\purpleE","\\textcolor{##543b78}{#1}");p("\\mintA","\\textcolor{##f5f9e8}{#1}");p("\\mintB","\\textcolor{##edf2df}{#1}");p("\\mintC","\\textcolor{##e0e5cc}{#1}");p("\\grayA","\\textcolor{##f6f7f7}{#1}");p("\\grayB","\\textcolor{##f0f1f2}{#1}");p("\\grayC","\\textcolor{##e3e5e6}{#1}");p("\\grayD","\\textcolor{##d6d8da}{#1}");p("\\grayE","\\textcolor{##babec2}{#1}");p("\\grayF","\\textcolor{##888d93}{#1}");p("\\grayG","\\textcolor{##626569}{#1}");p("\\grayH","\\textcolor{##3b3e40}{#1}");p("\\grayI","\\textcolor{##21242c}{#1}");p("\\kaBlue","\\textcolor{##314453}{#1}");p("\\kaGreen","\\textcolor{##71B307}{#1}");var Hc={"^":!0,_:!0,"\\limits":!0,"\\nolimits":!0};class vp{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 pp(fp,r.macros),this.mode=n,this.stack=[]}feed(e){this.lexer=new Do(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("",mt.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 Do(a,this.settings),c=[],h=o.lex();h.text!=="EOF";)c.push(h),h=o.lex();c.reverse();var m={tokens:c,numArgs:i};return m}return a}isDefined(e){return this.macros.has(e)||Object.prototype.hasOwnProperty.call(or,e)||Object.prototype.hasOwnProperty.call(Te.math,e)||Object.prototype.hasOwnProperty.call(Te.text,e)||Object.prototype.hasOwnProperty.call(Hc,e)}isExpandable(e){var r=this.macros.get(e);return r!=null?typeof r=="string"||typeof r=="function"||!r.unexpandable:Object.prototype.hasOwnProperty.call(or,e)&&!or[e].primitive}}var Lo=/^[₊₋₌₍₎₀₁₂₃₄₅₆₇₈₉ₐₑₕᵢⱼₖₗₘₙₒₚᵣₛₜᵤᵥₓᵦᵧᵨᵩᵪ]/,En=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","ᵝ":"β","ᵞ":"γ","ᵟ":"δ","ᵠ":"ϕ","ᵡ":"χ","ᶿ":"θ"}),La={"́":{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"}},Oo={á:"á",à:"à",ä:"ä",ǟ:"ǟ",ã:"ã",ā:"ā",ă:"ă",ắ:"ắ",ằ:"ằ",ẵ:"ẵ",ǎ:"ǎ",â:"â",ấ:"ấ",ầ:"ầ",ẫ:"ẫ",ȧ:"ȧ",ǡ:"ǡ",å:"å",ǻ:"ǻ",ḃ:"ḃ",ć:"ć",ḉ:"ḉ",č:"č",ĉ:"ĉ",ċ:"ċ",ç:"ç",ď:"ď",ḋ:"ḋ",ḑ:"ḑ",é:"é",è:"è",ë:"ë",ẽ:"ẽ",ē:"ē",ḗ:"ḗ",ḕ:"ḕ",ĕ:"ĕ",ḝ:"ḝ",ě:"ě",ê:"ê",ế:"ế",ề:"ề",ễ:"ễ",ė:"ė",ȩ:"ȩ",ḟ:"ḟ",ǵ:"ǵ",ḡ:"ḡ",ğ:"ğ",ǧ:"ǧ",ĝ:"ĝ",ġ:"ġ",ģ:"ģ",ḧ:"ḧ",ȟ:"ȟ",ĥ:"ĥ",ḣ:"ḣ",ḩ:"ḩ",í:"í",ì:"ì",ï:"ï",ḯ:"ḯ",ĩ:"ĩ",ī:"ī",ĭ:"ĭ",ǐ:"ǐ",î:"î",ǰ:"ǰ",ĵ:"ĵ",ḱ:"ḱ",ǩ:"ǩ",ķ:"ķ",ĺ:"ĺ",ľ:"ľ",ļ:"ļ",ḿ:"ḿ",ṁ:"ṁ",ń:"ń",ǹ:"ǹ",ñ:"ñ",ň:"ň",ṅ:"ṅ",ņ:"ņ",ó:"ó",ò:"ò",ö:"ö",ȫ:"ȫ",õ:"õ",ṍ:"ṍ",ṏ:"ṏ",ȭ:"ȭ",ō:"ō",ṓ:"ṓ",ṑ:"ṑ",ŏ:"ŏ",ǒ:"ǒ",ô:"ô",ố:"ố",ồ:"ồ",ỗ:"ỗ",ȯ:"ȯ",ȱ:"ȱ",ő:"ő",ṕ:"ṕ",ṗ:"ṗ",ŕ:"ŕ",ř:"ř",ṙ:"ṙ",ŗ:"ŗ",ś:"ś",ṥ:"ṥ",š:"š",ṧ:"ṧ",ŝ:"ŝ",ṡ:"ṡ",ş:"ş",ẗ:"ẗ",ť:"ť",ṫ:"ṫ",ţ:"ţ",ú:"ú",ù:"ù",ü:"ü",ǘ:"ǘ",ǜ:"ǜ",ǖ:"ǖ",ǚ:"ǚ",ũ:"ũ",ṹ:"ṹ",ū:"ū",ṻ:"ṻ",ŭ:"ŭ",ǔ:"ǔ",û:"û",ů:"ů",ű:"ű",ṽ:"ṽ",ẃ:"ẃ",ẁ:"ẁ",ẅ:"ẅ",ŵ:"ŵ",ẇ:"ẇ",ẘ:"ẘ",ẍ:"ẍ",ẋ:"ẋ",ý:"ý",ỳ:"ỳ",ÿ:"ÿ",ỹ:"ỹ",ȳ:"ȳ",ŷ:"ŷ",ẏ:"ẏ",ẙ:"ẙ",ź:"ź",ž:"ž",ẑ:"ẑ",ż:"ż",Á:"Á",À:"À",Ä:"Ä",Ǟ:"Ǟ",Ã:"Ã",Ā:"Ā",Ă:"Ă",Ắ:"Ắ",Ằ:"Ằ",Ẵ:"Ẵ",Ǎ:"Ǎ",Â:"Â",Ấ:"Ấ",Ầ:"Ầ",Ẫ:"Ẫ",Ȧ:"Ȧ",Ǡ:"Ǡ",Å:"Å",Ǻ:"Ǻ",Ḃ:"Ḃ",Ć:"Ć",Ḉ:"Ḉ",Č:"Č",Ĉ:"Ĉ",Ċ:"Ċ",Ç:"Ç",Ď:"Ď",Ḋ:"Ḋ",Ḑ:"Ḑ",É:"É",È:"È",Ë:"Ë",Ẽ:"Ẽ",Ē:"Ē",Ḗ:"Ḗ",Ḕ:"Ḕ",Ĕ:"Ĕ",Ḝ:"Ḝ",Ě:"Ě",Ê:"Ê",Ế:"Ế",Ề:"Ề",Ễ:"Ễ",Ė:"Ė",Ȩ:"Ȩ",Ḟ:"Ḟ",Ǵ:"Ǵ",Ḡ:"Ḡ",Ğ:"Ğ",Ǧ:"Ǧ",Ĝ:"Ĝ",Ġ:"Ġ",Ģ:"Ģ",Ḧ:"Ḧ",Ȟ:"Ȟ",Ĥ:"Ĥ",Ḣ:"Ḣ",Ḩ:"Ḩ",Í:"Í",Ì:"Ì",Ï:"Ï",Ḯ:"Ḯ",Ĩ:"Ĩ",Ī:"Ī",Ĭ:"Ĭ",Ǐ:"Ǐ",Î:"Î",İ:"İ",Ĵ:"Ĵ",Ḱ:"Ḱ",Ǩ:"Ǩ",Ķ:"Ķ",Ĺ:"Ĺ",Ľ:"Ľ",Ļ:"Ļ",Ḿ:"Ḿ",Ṁ:"Ṁ",Ń:"Ń",Ǹ:"Ǹ",Ñ:"Ñ",Ň:"Ň",Ṅ:"Ṅ",Ņ:"Ņ",Ó:"Ó",Ò:"Ò",Ö:"Ö",Ȫ:"Ȫ",Õ:"Õ",Ṍ:"Ṍ",Ṏ:"Ṏ",Ȭ:"Ȭ",Ō:"Ō",Ṓ:"Ṓ",Ṑ:"Ṑ",Ŏ:"Ŏ",Ǒ:"Ǒ",Ô:"Ô",Ố:"Ố",Ồ:"Ồ",Ỗ:"Ỗ",Ȯ:"Ȯ",Ȱ:"Ȱ",Ő:"Ő",Ṕ:"Ṕ",Ṗ:"Ṗ",Ŕ:"Ŕ",Ř:"Ř",Ṙ:"Ṙ",Ŗ:"Ŗ",Ś:"Ś",Ṥ:"Ṥ",Š:"Š",Ṧ:"Ṧ",Ŝ:"Ŝ",Ṡ:"Ṡ",Ş:"Ş",Ť:"Ť",Ṫ:"Ṫ",Ţ:"Ţ",Ú:"Ú",Ù:"Ù",Ü:"Ü",Ǘ:"Ǘ",Ǜ:"Ǜ",Ǖ:"Ǖ",Ǚ:"Ǚ",Ũ:"Ũ",Ṹ:"Ṹ",Ū:"Ū",Ṻ:"Ṻ",Ŭ:"Ŭ",Ǔ:"Ǔ",Û:"Û",Ů:"Ů",Ű:"Ű",Ṽ:"Ṽ",Ẃ:"Ẃ",Ẁ:"Ẁ",Ẅ:"Ẅ",Ŵ:"Ŵ",Ẇ:"Ẇ",Ẍ:"Ẍ",Ẋ:"Ẋ",Ý:"Ý",Ỳ:"Ỳ",Ÿ:"Ÿ",Ỹ:"Ỹ",Ȳ:"Ȳ",Ŷ:"Ŷ",Ẏ:"Ẏ",Ź:"Ź",Ž:"Ž",Ẑ:"Ẑ",Ż:"Ż",ά:"ά",ὰ:"ὰ",ᾱ:"ᾱ",ᾰ:"ᾰ",έ:"έ",ὲ:"ὲ",ή:"ή",ὴ:"ὴ",ί:"ί",ὶ:"ὶ",ϊ:"ϊ",ΐ:"ΐ",ῒ:"ῒ",ῑ:"ῑ",ῐ:"ῐ",ό:"ό",ὸ:"ὸ",ύ:"ύ",ὺ:"ὺ",ϋ:"ϋ",ΰ:"ΰ",ῢ:"ῢ",ῡ:"ῡ",ῠ:"ῠ",ώ:"ώ",ὼ:"ὼ",Ύ:"Ύ",Ὺ:"Ὺ",Ϋ:"Ϋ",Ῡ:"Ῡ",Ῠ:"Ῠ",Ώ:"Ώ",Ὼ:"Ὼ"};class Yn{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 vp(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(Yn.endOfExpression.has(a.text)||r&&a.text===r||e&&or[a.text]&&or[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),h=e.slice(r+1);c.length===1&&c[0].type==="ordgroup"?s=c[0]:s={type:"ordgroup",mode:this.mode,body:c},h.length===1&&h[0].type==="ordgroup"?o=h[0]:o={type:"ordgroup",mode:this.mode,body:h};var m;return n==="\\\\abovefrac"?m=this.callFunction(n,[s,e[r],o],[]):m=this.callFunction(n,[s,o],[]),[m]}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(En[i.text]){var c=Lo.test(i.text),h=[];for(h.push(new vt(En[i.text])),this.consume();;){var m=this.fetch().text;if(!En[m]||Lo.test(m)!==c)break;h.unshift(new vt(En[m])),this.consume()}var g=this.subparse(h);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=or[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=or[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 h,m=(h=r.argTypes)==null?void 0:h[c],g=c<a;("primitive"in r&&r.primitive&&m==null||r.type==="sqrt"&&c===1&&o[0]==null)&&(m="primitive");var v=this.parseGroupOfType("argument to '"+e+"'",m,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(!rc(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:mt.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(Hc,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:mt.range(a,o),text:"---"}),r-=2):(e.splice(n,2,{type:"textord",mode:"text",loc:mt.range(a,s),text:"--"}),r-=1)}(i==="'"||i==="`")&&s.text===i&&(e.splice(n,2,{type:"textord",mode:"text",loc:mt.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(Oo,r[0])&&!Te[this.mode][r[0]]&&(this.settings.strict&&this.mode==="math"&&pt({strict:this.settings.strict,errorCode:"unicodeTextInMathMode",errorMsg:'Accented Unicode text character "'+r[0]+'" used in math mode',report:!0,token:e}),r=Oo[r[0]]+r.slice(1));var i=dp.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"&&ni.includes(r)&&pt({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=mt.range(e),h;Sm(o)?h={type:"atom",mode:this.mode,family:o,loc:c,text:r}:h={type:o,mode:this.mode,loc:c,text:r},s=h}else if(r.charCodeAt(0)>=128)this.settings.strict&&(tc(r.charCodeAt(0))?this.mode==="math"&&pt({strict:this.settings.strict,errorCode:"unicodeTextInMathMode",errorMsg:'Unicode text character "'+r[0]+'" used in math mode',report:!0,token:e}):pt({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:mt.range(e),text:r};else return null;if(this.consume(),i)for(var m=0;m<i[0].length;m++){var g=i[0][m];if(!La[g])throw new B("Unknown accent ' "+g+"'",e);var v=La[g][this.mode]||La[g].text;if(!v)throw new B("Accent "+g+" unsupported in "+this.mode+" mode",e);s={type:"accent",mode:this.mode,loc:mt.range(e),label:v,isStretchy:!1,isShifty:!0,base:s}}return s}}Yn.endOfExpression=new Set(["}","\\endgroup","\\end","\\right","&"]);var bp=function(e,r){if(!(typeof e=="string"||e instanceof String))throw new TypeError("KaTeX can only parse string typed expression");var n=new Yn(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 yp=function(e,r){var n=kp(e,r).toMarkup();return n},wp=function(e,r,n){if(n.throwOnError||!(e instanceof B))throw e;var a=O(["katex-error"],[new Et(r)]);return a.setAttribute("title",e.toString()),a.setAttribute("style","color:"+n.errorColor),a},kp=function(e,r){var n=new xd(r);try{var a=bp(e,n);return pm(a,e,n)}catch(i){return wp(i,e,n)}};const Uc=4096,xp=t=>t==="symbolNotInFont"?"ignore":"error";function Wc(t,e){return yp(t,{displayMode:e,output:"htmlAndMathml",throwOnError:!1,strict:xp,trust:!1,maxExpand:100,maxSize:20})}const Zi=/<!--\s*anchor:[^:]+:[^-]+\s*-->/g,Po=/^<!--\s*anchor:[^:]+:end\s*-->$/;function V0(t){return t.replace(Zi,"")}function Sp(t){return t.startsWith("<!--")&&V0(t)!==""}function Gc(t){return t.replace(/&/g,"&amp;").replace(/"/g,"&quot;").replace(/</g,"&lt;")}function $o(t){return Gc(t).replace(/>/g,"&gt;")}function Bo(t){let e="",r=0;for(const n of t.matchAll(Zi))e+=$o(t.slice(r,n.index))+n[0],r=n.index+n[0].length;return e+$o(t.slice(r))}function qo(t,e){if(!e||t.literalOnly||t.text.length>Uc){const r=Bo(t.source);return t.displayMode?`<p>${r.replace(/\n/g,"<br>")}</p>
334
+ `,this.tokenRegex.lastIndex);return i===-1?(this.tokenRegex.lastIndex=e.length,pt({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 mt(this,r,this.tokenRegex.lastIndex))}}class pp{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 fp=Cc;p("\\noexpand",function(t){var e=t.popToken();return t.isExpandable(e.text)&&(e.noexpand=!0,e.treatAsRelax=!0),{tokens:[e],numArgs:0}});p("\\expandafter",function(t){var e=t.popToken();return t.expandOnce(!0),{tokens:[e],numArgs:0}});p("\\@firstoftwo",function(t){var e=t.consumeArgs(2);return{tokens:e[0],numArgs:0}});p("\\@secondoftwo",function(t){var e=t.consumeArgs(2);return{tokens:e[1],numArgs:0}});p("\\@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}});p("\\@ifstar","\\@ifnextchar *{\\@firstoftwo{#1}}");p("\\TextOrMath",function(t){var e=t.consumeArgs(2);return t.mode==="text"?{tokens:e[0],numArgs:0}:{tokens:e[1],numArgs:0}});var No={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};p("\\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=No[e.text],n==null||n>=r)throw new B("Invalid base-"+r+" digit "+e.text);for(var a;(a=No[t.future().text])!=null&&a<r;)n*=r,n+=a,t.popToken()}return"\\@char{"+n+"}"});var Yi=(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="",h=t.expandNextToken();h.text!=="]"&&h.text!=="EOF";)c+=h.text,h=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}),""};p("\\newcommand",t=>Yi(t,!1,!0,!1));p("\\renewcommand",t=>Yi(t,!0,!1,!1));p("\\providecommand",t=>Yi(t,!0,!0,!0));p("\\message",t=>{var e=t.consumeArgs(1)[0];return console.log(e.reverse().map(r=>r.text).join("")),""});p("\\errmessage",t=>{var e=t.consumeArgs(1)[0];return console.error(e.reverse().map(r=>r.text).join("")),""});p("\\show",t=>{var e=t.popToken(),r=e.text;return console.log(e,t.macros.get(r),or[r],Te.math[r],Te.text[r]),""});p("\\bgroup","{");p("\\egroup","}");p("~","\\nobreakspace");p("\\lq","`");p("\\rq","'");p("\\aa","\\r a");p("\\AA","\\r A");p("\\textcopyright","\\html@mathml{\\textcircled{c}}{\\char`©}");p("\\copyright","\\TextOrMath{\\textcopyright}{\\text{\\textcopyright}}");p("\\textregistered","\\html@mathml{\\textcircled{\\scriptsize R}}{\\char`®}");p("ℬ","\\mathscr{B}");p("ℰ","\\mathscr{E}");p("ℱ","\\mathscr{F}");p("ℋ","\\mathscr{H}");p("ℐ","\\mathscr{I}");p("ℒ","\\mathscr{L}");p("ℳ","\\mathscr{M}");p("ℛ","\\mathscr{R}");p("ℭ","\\mathfrak{C}");p("ℌ","\\mathfrak{H}");p("ℨ","\\mathfrak{Z}");p("\\Bbbk","\\Bbb{k}");p("\\llap","\\mathllap{\\textrm{#1}}");p("\\rlap","\\mathrlap{\\textrm{#1}}");p("\\clap","\\mathclap{\\textrm{#1}}");p("\\mathstrut","\\vphantom{(}");p("\\underbar","\\underline{\\text{#1}}");p("\\not",'\\html@mathml{\\mathrel{\\mathrlap\\@not}\\nobreak}{\\char"338}');p("\\neq","\\html@mathml{\\mathrel{\\not=}}{\\mathrel{\\char`≠}}");p("\\ne","\\neq");p("≠","\\neq");p("\\notin","\\html@mathml{\\mathrel{{\\in}\\mathllap{/\\mskip1mu}}}{\\mathrel{\\char`∉}}");p("∉","\\notin");p("≘","\\html@mathml{\\mathrel{=\\kern{-1em}\\raisebox{0.4em}{$\\scriptsize\\frown$}}}{\\mathrel{\\char`≘}}");p("≙","\\html@mathml{\\stackrel{\\tiny\\wedge}{=}}{\\mathrel{\\char`≘}}");p("≚","\\html@mathml{\\stackrel{\\tiny\\vee}{=}}{\\mathrel{\\char`≚}}");p("≛","\\html@mathml{\\stackrel{\\scriptsize\\star}{=}}{\\mathrel{\\char`≛}}");p("≝","\\html@mathml{\\stackrel{\\tiny\\mathrm{def}}{=}}{\\mathrel{\\char`≝}}");p("≞","\\html@mathml{\\stackrel{\\tiny\\mathrm{m}}{=}}{\\mathrel{\\char`≞}}");p("≟","\\html@mathml{\\stackrel{\\tiny?}{=}}{\\mathrel{\\char`≟}}");p("⟂","\\perp");p("‼","\\mathclose{!\\mkern-0.8mu!}");p("∌","\\notni");p("⌜","\\ulcorner");p("⌝","\\urcorner");p("⌞","\\llcorner");p("⌟","\\lrcorner");p("©","\\copyright");p("®","\\textregistered");p("\\ulcorner",'\\html@mathml{\\@ulcorner}{\\mathop{\\char"231c}}');p("\\urcorner",'\\html@mathml{\\@urcorner}{\\mathop{\\char"231d}}');p("\\llcorner",'\\html@mathml{\\@llcorner}{\\mathop{\\char"231e}}');p("\\lrcorner",'\\html@mathml{\\@lrcorner}{\\mathop{\\char"231f}}');p("\\vdots","{\\varvdots\\rule{0pt}{15pt}}");p("⋮","\\vdots");p("\\varGamma","\\mathit{\\Gamma}");p("\\varDelta","\\mathit{\\Delta}");p("\\varTheta","\\mathit{\\Theta}");p("\\varLambda","\\mathit{\\Lambda}");p("\\varXi","\\mathit{\\Xi}");p("\\varPi","\\mathit{\\Pi}");p("\\varSigma","\\mathit{\\Sigma}");p("\\varUpsilon","\\mathit{\\Upsilon}");p("\\varPhi","\\mathit{\\Phi}");p("\\varPsi","\\mathit{\\Psi}");p("\\varOmega","\\mathit{\\Omega}");p("\\substack","\\begin{subarray}{c}#1\\end{subarray}");p("\\colon","\\nobreak\\mskip2mu\\mathpunct{}\\mathchoice{\\mkern-3mu}{\\mkern-3mu}{}{}{:}\\mskip6mu\\relax");p("\\boxed","\\fbox{$\\displaystyle{#1}$}");p("\\iff","\\DOTSB\\;\\Longleftrightarrow\\;");p("\\implies","\\DOTSB\\;\\Longrightarrow\\;");p("\\impliedby","\\DOTSB\\;\\Longleftarrow\\;");p("\\dddot","{\\overset{\\raisebox{-0.1ex}{\\normalsize ...}}{#1}}");p("\\ddddot","{\\overset{\\raisebox{-0.1ex}{\\normalsize ....}}{#1}}");var _o={",":"\\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"},gp=new Set(["bin","rel"]);p("\\dots",function(t){var e="\\dotso",r=t.expandAfterFuture().text;return r in _o?e=_o[r]:(r.slice(0,4)==="\\not"||r in Te.math&&gp.has(Te.math[r].group))&&(e="\\dotsb"),e});var Xi={")":!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};p("\\dotso",function(t){var e=t.future().text;return e in Xi?"\\ldots\\,":"\\ldots"});p("\\dotsc",function(t){var e=t.future().text;return e in Xi&&e!==","?"\\ldots\\,":"\\ldots"});p("\\cdots",function(t){var e=t.future().text;return e in Xi?"\\@cdots\\,":"\\@cdots"});p("\\dotsb","\\cdots");p("\\dotsm","\\cdots");p("\\dotsi","\\!\\cdots");p("\\dotsx","\\ldots\\,");p("\\DOTSI","\\relax");p("\\DOTSB","\\relax");p("\\DOTSX","\\relax");p("\\tmspace","\\TextOrMath{\\kern#1#3}{\\mskip#1#2}\\relax");p("\\,","\\tmspace+{3mu}{.1667em}");p("\\thinspace","\\,");p("\\>","\\mskip{4mu}");p("\\:","\\tmspace+{4mu}{.2222em}");p("\\medspace","\\:");p("\\;","\\tmspace+{5mu}{.2777em}");p("\\thickspace","\\;");p("\\!","\\tmspace-{3mu}{.1667em}");p("\\negthinspace","\\!");p("\\negmedspace","\\tmspace-{4mu}{.2222em}");p("\\negthickspace","\\tmspace-{5mu}{.277em}");p("\\enspace","\\kern.5em ");p("\\enskip","\\hskip.5em\\relax");p("\\quad","\\hskip1em\\relax");p("\\qquad","\\hskip2em\\relax");p("\\tag","\\@ifstar\\tag@literal\\tag@paren");p("\\tag@paren","\\tag@literal{({#1})}");p("\\tag@literal",t=>{if(t.macros.get("\\df@tag"))throw new B("Multiple \\tag");return"\\gdef\\df@tag{\\text{#1}}"});p("\\bmod","\\mathchoice{\\mskip1mu}{\\mskip1mu}{\\mskip5mu}{\\mskip5mu}\\mathbin{\\rm mod}\\mathchoice{\\mskip1mu}{\\mskip1mu}{\\mskip5mu}{\\mskip5mu}");p("\\pod","\\allowbreak\\mathchoice{\\mkern18mu}{\\mkern8mu}{\\mkern8mu}{\\mkern8mu}(#1)");p("\\pmod","\\pod{{\\rm mod}\\mkern6mu#1}");p("\\mod","\\allowbreak\\mathchoice{\\mkern18mu}{\\mkern12mu}{\\mkern12mu}{\\mkern12mu}{\\rm mod}\\,\\,#1");p("\\newline","\\\\\\relax");p("\\TeX","\\textrm{\\html@mathml{T\\kern-.1667em\\raisebox{-.5ex}{E}\\kern-.125emX}{TeX}}");var qc=H(Ut["Main-Regular"][84][1]-.7*Ut["Main-Regular"][65][1]);p("\\LaTeX","\\textrm{\\html@mathml{"+("L\\kern-.36em\\raisebox{"+qc+"}{\\scriptstyle A}")+"\\kern-.15em\\TeX}{LaTeX}}");p("\\KaTeX","\\textrm{\\html@mathml{"+("K\\kern-.17em\\raisebox{"+qc+"}{\\scriptstyle A}")+"\\kern-.15em\\TeX}{KaTeX}}");p("\\hspace","\\@ifstar\\@hspacer\\@hspace");p("\\@hspace","\\hskip #1\\relax");p("\\@hspacer","\\rule{0pt}{0pt}\\hskip #1\\relax");p("\\ordinarycolon",":");p("\\vcentcolon","\\mathrel{\\mathop\\ordinarycolon}");p("\\dblcolon",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-.9mu}\\vcentcolon}}{\\mathop{\\char"2237}}');p("\\coloneqq",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}=}}{\\mathop{\\char"2254}}');p("\\Coloneqq",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}=}}{\\mathop{\\char"2237\\char"3d}}');p("\\coloneq",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\mathrel{-}}}{\\mathop{\\char"3a\\char"2212}}');p("\\Coloneq",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\mathrel{-}}}{\\mathop{\\char"2237\\char"2212}}');p("\\eqqcolon",'\\html@mathml{\\mathrel{=\\mathrel{\\mkern-1.2mu}\\vcentcolon}}{\\mathop{\\char"2255}}');p("\\Eqqcolon",'\\html@mathml{\\mathrel{=\\mathrel{\\mkern-1.2mu}\\dblcolon}}{\\mathop{\\char"3d\\char"2237}}');p("\\eqcolon",'\\html@mathml{\\mathrel{\\mathrel{-}\\mathrel{\\mkern-1.2mu}\\vcentcolon}}{\\mathop{\\char"2239}}');p("\\Eqcolon",'\\html@mathml{\\mathrel{\\mathrel{-}\\mathrel{\\mkern-1.2mu}\\dblcolon}}{\\mathop{\\char"2212\\char"2237}}');p("\\colonapprox",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\approx}}{\\mathop{\\char"3a\\char"2248}}');p("\\Colonapprox",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\approx}}{\\mathop{\\char"2237\\char"2248}}');p("\\colonsim",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\sim}}{\\mathop{\\char"3a\\char"223c}}');p("\\Colonsim",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\sim}}{\\mathop{\\char"2237\\char"223c}}');p("∷","\\dblcolon");p("∹","\\eqcolon");p("≔","\\coloneqq");p("≕","\\eqqcolon");p("⩴","\\Coloneqq");p("\\ratio","\\vcentcolon");p("\\coloncolon","\\dblcolon");p("\\colonequals","\\coloneqq");p("\\coloncolonequals","\\Coloneqq");p("\\equalscolon","\\eqqcolon");p("\\equalscoloncolon","\\Eqqcolon");p("\\colonminus","\\coloneq");p("\\coloncolonminus","\\Coloneq");p("\\minuscolon","\\eqcolon");p("\\minuscoloncolon","\\Eqcolon");p("\\coloncolonapprox","\\Colonapprox");p("\\coloncolonsim","\\Colonsim");p("\\simcolon","\\mathrel{\\sim\\mathrel{\\mkern-1.2mu}\\vcentcolon}");p("\\simcoloncolon","\\mathrel{\\sim\\mathrel{\\mkern-1.2mu}\\dblcolon}");p("\\approxcolon","\\mathrel{\\approx\\mathrel{\\mkern-1.2mu}\\vcentcolon}");p("\\approxcoloncolon","\\mathrel{\\approx\\mathrel{\\mkern-1.2mu}\\dblcolon}");p("\\notni","\\html@mathml{\\not\\ni}{\\mathrel{\\char`∌}}");p("\\limsup","\\DOTSB\\operatorname*{lim\\,sup}");p("\\liminf","\\DOTSB\\operatorname*{lim\\,inf}");p("\\injlim","\\DOTSB\\operatorname*{inj\\,lim}");p("\\projlim","\\DOTSB\\operatorname*{proj\\,lim}");p("\\varlimsup","\\DOTSB\\operatorname*{\\overline{lim}}");p("\\varliminf","\\DOTSB\\operatorname*{\\underline{lim}}");p("\\varinjlim","\\DOTSB\\operatorname*{\\underrightarrow{lim}}");p("\\varprojlim","\\DOTSB\\operatorname*{\\underleftarrow{lim}}");p("\\gvertneqq","\\html@mathml{\\@gvertneqq}{≩}");p("\\lvertneqq","\\html@mathml{\\@lvertneqq}{≨}");p("\\ngeqq","\\html@mathml{\\@ngeqq}{≱}");p("\\ngeqslant","\\html@mathml{\\@ngeqslant}{≱}");p("\\nleqq","\\html@mathml{\\@nleqq}{≰}");p("\\nleqslant","\\html@mathml{\\@nleqslant}{≰}");p("\\nshortmid","\\html@mathml{\\@nshortmid}{∤}");p("\\nshortparallel","\\html@mathml{\\@nshortparallel}{∦}");p("\\nsubseteqq","\\html@mathml{\\@nsubseteqq}{⊈}");p("\\nsupseteqq","\\html@mathml{\\@nsupseteqq}{⊉}");p("\\varsubsetneq","\\html@mathml{\\@varsubsetneq}{⊊}");p("\\varsubsetneqq","\\html@mathml{\\@varsubsetneqq}{⫋}");p("\\varsupsetneq","\\html@mathml{\\@varsupsetneq}{⊋}");p("\\varsupsetneqq","\\html@mathml{\\@varsupsetneqq}{⫌}");p("\\imath","\\html@mathml{\\@imath}{ı}");p("\\jmath","\\html@mathml{\\@jmath}{ȷ}");p("\\llbracket","\\html@mathml{\\mathopen{[\\mkern-3.2mu[}}{\\mathopen{\\char`⟦}}");p("\\rrbracket","\\html@mathml{\\mathclose{]\\mkern-3.2mu]}}{\\mathclose{\\char`⟧}}");p("⟦","\\llbracket");p("⟧","\\rrbracket");p("\\lBrace","\\html@mathml{\\mathopen{\\{\\mkern-3.2mu[}}{\\mathopen{\\char`⦃}}");p("\\rBrace","\\html@mathml{\\mathclose{]\\mkern-3.2mu\\}}}{\\mathclose{\\char`⦄}}");p("↤","\\mapsfrom");p("\\mapsfrom","\\html@mathml{\\mathrel{\\mathreflectbox{\\mapsto}}}{\\mathrel{\\char`↤}}");p("⦃","\\lBrace");p("⦄","\\rBrace");p("\\minuso","\\mathbin{\\html@mathml{{\\mathrlap{\\mathchoice{\\kern{0.145em}}{\\kern{0.145em}}{\\kern{0.1015em}}{\\kern{0.0725em}}\\circ}{-}}}{\\char`⦵}}");p("⦵","\\minuso");p("\\darr","\\downarrow");p("\\dArr","\\Downarrow");p("\\Darr","\\Downarrow");p("\\lang","\\langle");p("\\rang","\\rangle");p("\\uarr","\\uparrow");p("\\uArr","\\Uparrow");p("\\Uarr","\\Uparrow");p("\\N","\\mathbb{N}");p("\\R","\\mathbb{R}");p("\\Z","\\mathbb{Z}");p("\\alef","\\aleph");p("\\alefsym","\\aleph");p("\\Alpha","\\mathrm{A}");p("\\Beta","\\mathrm{B}");p("\\bull","\\bullet");p("\\Chi","\\mathrm{X}");p("\\clubs","\\clubsuit");p("\\cnums","\\mathbb{C}");p("\\Complex","\\mathbb{C}");p("\\Dagger","\\ddagger");p("\\diamonds","\\diamondsuit");p("\\empty","\\emptyset");p("\\Epsilon","\\mathrm{E}");p("\\Eta","\\mathrm{H}");p("\\exist","\\exists");p("\\harr","\\leftrightarrow");p("\\hArr","\\Leftrightarrow");p("\\Harr","\\Leftrightarrow");p("\\hearts","\\heartsuit");p("\\image","\\Im");p("\\infin","\\infty");p("\\Iota","\\mathrm{I}");p("\\isin","\\in");p("\\Kappa","\\mathrm{K}");p("\\larr","\\leftarrow");p("\\lArr","\\Leftarrow");p("\\Larr","\\Leftarrow");p("\\lrarr","\\leftrightarrow");p("\\lrArr","\\Leftrightarrow");p("\\Lrarr","\\Leftrightarrow");p("\\Mu","\\mathrm{M}");p("\\natnums","\\mathbb{N}");p("\\Nu","\\mathrm{N}");p("\\Omicron","\\mathrm{O}");p("\\plusmn","\\pm");p("\\rarr","\\rightarrow");p("\\rArr","\\Rightarrow");p("\\Rarr","\\Rightarrow");p("\\real","\\Re");p("\\reals","\\mathbb{R}");p("\\Reals","\\mathbb{R}");p("\\Rho","\\mathrm{P}");p("\\sdot","\\cdot");p("\\sect","\\S");p("\\spades","\\spadesuit");p("\\sub","\\subset");p("\\sube","\\subseteq");p("\\supe","\\supseteq");p("\\Tau","\\mathrm{T}");p("\\thetasym","\\vartheta");p("\\weierp","\\wp");p("\\Zeta","\\mathrm{Z}");p("\\argmin","\\DOTSB\\operatorname*{arg\\,min}");p("\\argmax","\\DOTSB\\operatorname*{arg\\,max}");p("\\plim","\\DOTSB\\mathop{\\operatorname{plim}}\\limits");p("\\bra","\\mathinner{\\langle{#1}|}");p("\\ket","\\mathinner{|{#1}\\rangle}");p("\\braket","\\mathinner{\\langle{#1}\\rangle}");p("\\Bra","\\left\\langle#1\\right|");p("\\Ket","\\left|#1\\right\\rangle");var Fc=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 h=e.consumeArg().tokens,m=e.expandTokens([...i,...h,...r]);return e.macros.endGroup(),{tokens:m.reverse(),numArgs:0}};p("\\bra@ket",Fc(!1));p("\\bra@set",Fc(!0));p("\\Braket","\\bra@ket{\\left\\langle}{\\,\\middle\\vert\\,}{\\,\\middle\\vert\\,}{\\right\\rangle}");p("\\Set","\\bra@set{\\left\\{\\:}{\\;\\middle\\vert\\;}{\\;\\middle\\Vert\\;}{\\:\\right\\}}");p("\\set","\\bra@set{\\{\\,}{\\mid}{}{\\,\\}}");p("\\angln","{\\angl n}");p("\\blue","\\textcolor{##6495ed}{#1}");p("\\orange","\\textcolor{##ffa500}{#1}");p("\\pink","\\textcolor{##ff00af}{#1}");p("\\red","\\textcolor{##df0030}{#1}");p("\\green","\\textcolor{##28ae7b}{#1}");p("\\gray","\\textcolor{gray}{#1}");p("\\purple","\\textcolor{##9d38bd}{#1}");p("\\blueA","\\textcolor{##ccfaff}{#1}");p("\\blueB","\\textcolor{##80f6ff}{#1}");p("\\blueC","\\textcolor{##63d9ea}{#1}");p("\\blueD","\\textcolor{##11accd}{#1}");p("\\blueE","\\textcolor{##0c7f99}{#1}");p("\\tealA","\\textcolor{##94fff5}{#1}");p("\\tealB","\\textcolor{##26edd5}{#1}");p("\\tealC","\\textcolor{##01d1c1}{#1}");p("\\tealD","\\textcolor{##01a995}{#1}");p("\\tealE","\\textcolor{##208170}{#1}");p("\\greenA","\\textcolor{##b6ffb0}{#1}");p("\\greenB","\\textcolor{##8af281}{#1}");p("\\greenC","\\textcolor{##74cf70}{#1}");p("\\greenD","\\textcolor{##1fab54}{#1}");p("\\greenE","\\textcolor{##0d923f}{#1}");p("\\goldA","\\textcolor{##ffd0a9}{#1}");p("\\goldB","\\textcolor{##ffbb71}{#1}");p("\\goldC","\\textcolor{##ff9c39}{#1}");p("\\goldD","\\textcolor{##e07d10}{#1}");p("\\goldE","\\textcolor{##a75a05}{#1}");p("\\redA","\\textcolor{##fca9a9}{#1}");p("\\redB","\\textcolor{##ff8482}{#1}");p("\\redC","\\textcolor{##f9685d}{#1}");p("\\redD","\\textcolor{##e84d39}{#1}");p("\\redE","\\textcolor{##bc2612}{#1}");p("\\maroonA","\\textcolor{##ffbde0}{#1}");p("\\maroonB","\\textcolor{##ff92c6}{#1}");p("\\maroonC","\\textcolor{##ed5fa6}{#1}");p("\\maroonD","\\textcolor{##ca337c}{#1}");p("\\maroonE","\\textcolor{##9e034e}{#1}");p("\\purpleA","\\textcolor{##ddd7ff}{#1}");p("\\purpleB","\\textcolor{##c6b9fc}{#1}");p("\\purpleC","\\textcolor{##aa87ff}{#1}");p("\\purpleD","\\textcolor{##7854ab}{#1}");p("\\purpleE","\\textcolor{##543b78}{#1}");p("\\mintA","\\textcolor{##f5f9e8}{#1}");p("\\mintB","\\textcolor{##edf2df}{#1}");p("\\mintC","\\textcolor{##e0e5cc}{#1}");p("\\grayA","\\textcolor{##f6f7f7}{#1}");p("\\grayB","\\textcolor{##f0f1f2}{#1}");p("\\grayC","\\textcolor{##e3e5e6}{#1}");p("\\grayD","\\textcolor{##d6d8da}{#1}");p("\\grayE","\\textcolor{##babec2}{#1}");p("\\grayF","\\textcolor{##888d93}{#1}");p("\\grayG","\\textcolor{##626569}{#1}");p("\\grayH","\\textcolor{##3b3e40}{#1}");p("\\grayI","\\textcolor{##21242c}{#1}");p("\\kaBlue","\\textcolor{##314453}{#1}");p("\\kaGreen","\\textcolor{##71B307}{#1}");var Hc={"^":!0,_:!0,"\\limits":!0,"\\nolimits":!0};class vp{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 pp(fp,r.macros),this.mode=n,this.stack=[]}feed(e){this.lexer=new Do(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("",mt.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 Do(a,this.settings),c=[],h=o.lex();h.text!=="EOF";)c.push(h),h=o.lex();c.reverse();var m={tokens:c,numArgs:i};return m}return a}isDefined(e){return this.macros.has(e)||Object.prototype.hasOwnProperty.call(or,e)||Object.prototype.hasOwnProperty.call(Te.math,e)||Object.prototype.hasOwnProperty.call(Te.text,e)||Object.prototype.hasOwnProperty.call(Hc,e)}isExpandable(e){var r=this.macros.get(e);return r!=null?typeof r=="string"||typeof r=="function"||!r.unexpandable:Object.prototype.hasOwnProperty.call(or,e)&&!or[e].primitive}}var Lo=/^[₊₋₌₍₎₀₁₂₃₄₅₆₇₈₉ₐₑₕᵢⱼₖₗₘₙₒₚᵣₛₜᵤᵥₓᵦᵧᵨᵩᵪ]/,En=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","ᵝ":"β","ᵞ":"γ","ᵟ":"δ","ᵠ":"ϕ","ᵡ":"χ","ᶿ":"θ"}),La={"́":{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"}},Oo={á:"á",à:"à",ä:"ä",ǟ:"ǟ",ã:"ã",ā:"ā",ă:"ă",ắ:"ắ",ằ:"ằ",ẵ:"ẵ",ǎ:"ǎ",â:"â",ấ:"ấ",ầ:"ầ",ẫ:"ẫ",ȧ:"ȧ",ǡ:"ǡ",å:"å",ǻ:"ǻ",ḃ:"ḃ",ć:"ć",ḉ:"ḉ",č:"č",ĉ:"ĉ",ċ:"ċ",ç:"ç",ď:"ď",ḋ:"ḋ",ḑ:"ḑ",é:"é",è:"è",ë:"ë",ẽ:"ẽ",ē:"ē",ḗ:"ḗ",ḕ:"ḕ",ĕ:"ĕ",ḝ:"ḝ",ě:"ě",ê:"ê",ế:"ế",ề:"ề",ễ:"ễ",ė:"ė",ȩ:"ȩ",ḟ:"ḟ",ǵ:"ǵ",ḡ:"ḡ",ğ:"ğ",ǧ:"ǧ",ĝ:"ĝ",ġ:"ġ",ģ:"ģ",ḧ:"ḧ",ȟ:"ȟ",ĥ:"ĥ",ḣ:"ḣ",ḩ:"ḩ",í:"í",ì:"ì",ï:"ï",ḯ:"ḯ",ĩ:"ĩ",ī:"ī",ĭ:"ĭ",ǐ:"ǐ",î:"î",ǰ:"ǰ",ĵ:"ĵ",ḱ:"ḱ",ǩ:"ǩ",ķ:"ķ",ĺ:"ĺ",ľ:"ľ",ļ:"ļ",ḿ:"ḿ",ṁ:"ṁ",ń:"ń",ǹ:"ǹ",ñ:"ñ",ň:"ň",ṅ:"ṅ",ņ:"ņ",ó:"ó",ò:"ò",ö:"ö",ȫ:"ȫ",õ:"õ",ṍ:"ṍ",ṏ:"ṏ",ȭ:"ȭ",ō:"ō",ṓ:"ṓ",ṑ:"ṑ",ŏ:"ŏ",ǒ:"ǒ",ô:"ô",ố:"ố",ồ:"ồ",ỗ:"ỗ",ȯ:"ȯ",ȱ:"ȱ",ő:"ő",ṕ:"ṕ",ṗ:"ṗ",ŕ:"ŕ",ř:"ř",ṙ:"ṙ",ŗ:"ŗ",ś:"ś",ṥ:"ṥ",š:"š",ṧ:"ṧ",ŝ:"ŝ",ṡ:"ṡ",ş:"ş",ẗ:"ẗ",ť:"ť",ṫ:"ṫ",ţ:"ţ",ú:"ú",ù:"ù",ü:"ü",ǘ:"ǘ",ǜ:"ǜ",ǖ:"ǖ",ǚ:"ǚ",ũ:"ũ",ṹ:"ṹ",ū:"ū",ṻ:"ṻ",ŭ:"ŭ",ǔ:"ǔ",û:"û",ů:"ů",ű:"ű",ṽ:"ṽ",ẃ:"ẃ",ẁ:"ẁ",ẅ:"ẅ",ŵ:"ŵ",ẇ:"ẇ",ẘ:"ẘ",ẍ:"ẍ",ẋ:"ẋ",ý:"ý",ỳ:"ỳ",ÿ:"ÿ",ỹ:"ỹ",ȳ:"ȳ",ŷ:"ŷ",ẏ:"ẏ",ẙ:"ẙ",ź:"ź",ž:"ž",ẑ:"ẑ",ż:"ż",Á:"Á",À:"À",Ä:"Ä",Ǟ:"Ǟ",Ã:"Ã",Ā:"Ā",Ă:"Ă",Ắ:"Ắ",Ằ:"Ằ",Ẵ:"Ẵ",Ǎ:"Ǎ",Â:"Â",Ấ:"Ấ",Ầ:"Ầ",Ẫ:"Ẫ",Ȧ:"Ȧ",Ǡ:"Ǡ",Å:"Å",Ǻ:"Ǻ",Ḃ:"Ḃ",Ć:"Ć",Ḉ:"Ḉ",Č:"Č",Ĉ:"Ĉ",Ċ:"Ċ",Ç:"Ç",Ď:"Ď",Ḋ:"Ḋ",Ḑ:"Ḑ",É:"É",È:"È",Ë:"Ë",Ẽ:"Ẽ",Ē:"Ē",Ḗ:"Ḗ",Ḕ:"Ḕ",Ĕ:"Ĕ",Ḝ:"Ḝ",Ě:"Ě",Ê:"Ê",Ế:"Ế",Ề:"Ề",Ễ:"Ễ",Ė:"Ė",Ȩ:"Ȩ",Ḟ:"Ḟ",Ǵ:"Ǵ",Ḡ:"Ḡ",Ğ:"Ğ",Ǧ:"Ǧ",Ĝ:"Ĝ",Ġ:"Ġ",Ģ:"Ģ",Ḧ:"Ḧ",Ȟ:"Ȟ",Ĥ:"Ĥ",Ḣ:"Ḣ",Ḩ:"Ḩ",Í:"Í",Ì:"Ì",Ï:"Ï",Ḯ:"Ḯ",Ĩ:"Ĩ",Ī:"Ī",Ĭ:"Ĭ",Ǐ:"Ǐ",Î:"Î",İ:"İ",Ĵ:"Ĵ",Ḱ:"Ḱ",Ǩ:"Ǩ",Ķ:"Ķ",Ĺ:"Ĺ",Ľ:"Ľ",Ļ:"Ļ",Ḿ:"Ḿ",Ṁ:"Ṁ",Ń:"Ń",Ǹ:"Ǹ",Ñ:"Ñ",Ň:"Ň",Ṅ:"Ṅ",Ņ:"Ņ",Ó:"Ó",Ò:"Ò",Ö:"Ö",Ȫ:"Ȫ",Õ:"Õ",Ṍ:"Ṍ",Ṏ:"Ṏ",Ȭ:"Ȭ",Ō:"Ō",Ṓ:"Ṓ",Ṑ:"Ṑ",Ŏ:"Ŏ",Ǒ:"Ǒ",Ô:"Ô",Ố:"Ố",Ồ:"Ồ",Ỗ:"Ỗ",Ȯ:"Ȯ",Ȱ:"Ȱ",Ő:"Ő",Ṕ:"Ṕ",Ṗ:"Ṗ",Ŕ:"Ŕ",Ř:"Ř",Ṙ:"Ṙ",Ŗ:"Ŗ",Ś:"Ś",Ṥ:"Ṥ",Š:"Š",Ṧ:"Ṧ",Ŝ:"Ŝ",Ṡ:"Ṡ",Ş:"Ş",Ť:"Ť",Ṫ:"Ṫ",Ţ:"Ţ",Ú:"Ú",Ù:"Ù",Ü:"Ü",Ǘ:"Ǘ",Ǜ:"Ǜ",Ǖ:"Ǖ",Ǚ:"Ǚ",Ũ:"Ũ",Ṹ:"Ṹ",Ū:"Ū",Ṻ:"Ṻ",Ŭ:"Ŭ",Ǔ:"Ǔ",Û:"Û",Ů:"Ů",Ű:"Ű",Ṽ:"Ṽ",Ẃ:"Ẃ",Ẁ:"Ẁ",Ẅ:"Ẅ",Ŵ:"Ŵ",Ẇ:"Ẇ",Ẍ:"Ẍ",Ẋ:"Ẋ",Ý:"Ý",Ỳ:"Ỳ",Ÿ:"Ÿ",Ỹ:"Ỹ",Ȳ:"Ȳ",Ŷ:"Ŷ",Ẏ:"Ẏ",Ź:"Ź",Ž:"Ž",Ẑ:"Ẑ",Ż:"Ż",ά:"ά",ὰ:"ὰ",ᾱ:"ᾱ",ᾰ:"ᾰ",έ:"έ",ὲ:"ὲ",ή:"ή",ὴ:"ὴ",ί:"ί",ὶ:"ὶ",ϊ:"ϊ",ΐ:"ΐ",ῒ:"ῒ",ῑ:"ῑ",ῐ:"ῐ",ό:"ό",ὸ:"ὸ",ύ:"ύ",ὺ:"ὺ",ϋ:"ϋ",ΰ:"ΰ",ῢ:"ῢ",ῡ:"ῡ",ῠ:"ῠ",ώ:"ώ",ὼ:"ὼ",Ύ:"Ύ",Ὺ:"Ὺ",Ϋ:"Ϋ",Ῡ:"Ῡ",Ῠ:"Ῠ",Ώ:"Ώ",Ὼ:"Ὼ"};class Xn{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 vp(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(Xn.endOfExpression.has(a.text)||r&&a.text===r||e&&or[a.text]&&or[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),h=e.slice(r+1);c.length===1&&c[0].type==="ordgroup"?s=c[0]:s={type:"ordgroup",mode:this.mode,body:c},h.length===1&&h[0].type==="ordgroup"?o=h[0]:o={type:"ordgroup",mode:this.mode,body:h};var m;return n==="\\\\abovefrac"?m=this.callFunction(n,[s,e[r],o],[]):m=this.callFunction(n,[s,o],[]),[m]}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(En[i.text]){var c=Lo.test(i.text),h=[];for(h.push(new vt(En[i.text])),this.consume();;){var m=this.fetch().text;if(!En[m]||Lo.test(m)!==c)break;h.unshift(new vt(En[m])),this.consume()}var g=this.subparse(h);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=or[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=or[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 h,m=(h=r.argTypes)==null?void 0:h[c],g=c<a;("primitive"in r&&r.primitive&&m==null||r.type==="sqrt"&&c===1&&o[0]==null)&&(m="primitive");var v=this.parseGroupOfType("argument to '"+e+"'",m,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(!rc(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:mt.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(Hc,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:mt.range(a,o),text:"---"}),r-=2):(e.splice(n,2,{type:"textord",mode:"text",loc:mt.range(a,s),text:"--"}),r-=1)}(i==="'"||i==="`")&&s.text===i&&(e.splice(n,2,{type:"textord",mode:"text",loc:mt.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(Oo,r[0])&&!Te[this.mode][r[0]]&&(this.settings.strict&&this.mode==="math"&&pt({strict:this.settings.strict,errorCode:"unicodeTextInMathMode",errorMsg:'Accented Unicode text character "'+r[0]+'" used in math mode',report:!0,token:e}),r=Oo[r[0]]+r.slice(1));var i=dp.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"&&ni.includes(r)&&pt({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=mt.range(e),h;Sm(o)?h={type:"atom",mode:this.mode,family:o,loc:c,text:r}:h={type:o,mode:this.mode,loc:c,text:r},s=h}else if(r.charCodeAt(0)>=128)this.settings.strict&&(tc(r.charCodeAt(0))?this.mode==="math"&&pt({strict:this.settings.strict,errorCode:"unicodeTextInMathMode",errorMsg:'Unicode text character "'+r[0]+'" used in math mode',report:!0,token:e}):pt({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:mt.range(e),text:r};else return null;if(this.consume(),i)for(var m=0;m<i[0].length;m++){var g=i[0][m];if(!La[g])throw new B("Unknown accent ' "+g+"'",e);var v=La[g][this.mode]||La[g].text;if(!v)throw new B("Accent "+g+" unsupported in "+this.mode+" mode",e);s={type:"accent",mode:this.mode,loc:mt.range(e),label:v,isStretchy:!1,isShifty:!0,base:s}}return s}}Xn.endOfExpression=new Set(["}","\\endgroup","\\end","\\right","&"]);var bp=function(e,r){if(!(typeof e=="string"||e instanceof String))throw new TypeError("KaTeX can only parse string typed expression");var n=new Xn(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 yp=function(e,r){var n=kp(e,r).toMarkup();return n},wp=function(e,r,n){if(n.throwOnError||!(e instanceof B))throw e;var a=O(["katex-error"],[new Et(r)]);return a.setAttribute("title",e.toString()),a.setAttribute("style","color:"+n.errorColor),a},kp=function(e,r){var n=new xd(r);try{var a=bp(e,n);return pm(a,e,n)}catch(i){return wp(i,e,n)}};const Uc=4096,xp=t=>t==="symbolNotInFont"?"ignore":"error";function Wc(t,e){return yp(t,{displayMode:e,output:"htmlAndMathml",throwOnError:!1,strict:xp,trust:!1,maxExpand:100,maxSize:20})}const Zi=/<!--\s*anchor:[^:]+:[^-]+\s*-->/g,Po=/^<!--\s*anchor:[^:]+:end\s*-->$/;function V0(t){return t.replace(Zi,"")}function Sp(t){return t.startsWith("<!--")&&V0(t)!==""}function Gc(t){return t.replace(/&/g,"&amp;").replace(/"/g,"&quot;").replace(/</g,"&lt;")}function $o(t){return Gc(t).replace(/>/g,"&gt;")}function Bo(t){let e="",r=0;for(const n of t.matchAll(Zi))e+=$o(t.slice(r,n.index))+n[0],r=n.index+n[0].length;return e+$o(t.slice(r))}function qo(t,e){if(!e||t.literalOnly||t.text.length>Uc){const r=Bo(t.source);return t.displayMode?`<p>${r.replace(/\n/g,"<br>")}</p>
336
336
  `:r}try{const r=Wc(t.text,t.displayMode),n=t.displayMode?"div":"span",a=t.displayMode?"math-display":"math-inline",i=t.displayMode?`
337
337
  `:"",s=Array.from(t.source.matchAll(Zi),m=>m[0]),o=s.filter(m=>!Po.test(m)).join(""),c=s.filter(m=>Po.test(m)).join(""),h=Gc(V0(t.source));return`${o}<${n} class="${a}" data-math-source="${h}">${r}</${n}>${c}${i}`}catch{return Bo(t.source)}}function Ap(t){if(t.startsWith("$$"))return;const e=/^\$((?:\\.|[^\\$\n])+?)\$/.exec(t);if(!e)return;const r=V0(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 Tp(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 Ep(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=V0(e[1]);return{type:"mathInline",raw:e[0],text:r,source:e[0],displayMode:!1,literalOnly:!r.trim()}}function jc(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=V0(n[2]);return{type:"mathDisplay",raw:n[0],text:i,source:a,displayMode:!0,literalOnly:!i.trim()}}function Vc(t){return Tp(t)??Ap(t)??Ep(t)}function Mp(t,e){const r=/\\.|\$/g,n=[];let a=0,i=-1,s=0,o;for(;o=r.exec(t);){const c=o.index,h=t.slice(c);if(c>i){const g=t.lastIndexOf(`
338
338
  `,c-1)+1,v=t.indexOf(`
@@ -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(Oa(n.tokens)):i=n.text||"";const{content:s,agentId:o}=Uo(i);i=s,(!i||i.trim()===""||i.trim()==="<p></p>")&&(i="<p></p>");const c=a?"done":"todo",h=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}"${h}><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(Ho);if(s){const h=s[1]!==" ";return`<li class="task-item flex items-start gap-2" data-type="taskItem" data-checked="${h}" data-status="${h?"done":"todo"}"><label><input type="checkbox" disabled${h?" checked":""}><span></span></label><div><p></p></div></li>`}const o=a.match(/^\[\/\]\s+(.*)$/)||i.match(/^-\s+\[\/\]\s+(.*)$/m);if(o){const h=o[1];let m="";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}}m=this.parser.parse(Oa(A))}else m=`<p>${h}</p>`;const{content:g,agentId:v}=Uo(m);return m=g,(!m||m.trim()===""||m.trim()==="<p></p>")&&(m="<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>${m}</div></li>`}let c="";if(n.tokens&&n.tokens.length>0)try{c=this.parser.parse(Oa(n.tokens))}catch{c=n.text||""}return`<li>${c}</li>`}}}}),e.use(dd),Cp(e,t.renderMath===!0),ud(e),e};function Kc(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,h=n.slice(i[0].length);r.push(`${s}${c}${o}${h}`)}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 Wo(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 zp(t){if(Array.isArray(t))return t}function Rp(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,h=!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(m){h=!0,a=m}finally{try{if(!c&&r.return!=null&&(s=r.return(),Object(s)!==s))return}finally{if(h)throw a}}return o}}function Dp(){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 Np(t,e){return zp(t)||Rp(t,e)||_p(t,e)||Dp()}function _p(t,e){if(t){if(typeof t=="string")return Wo(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)?Wo(t,e):void 0}}const Xc=Object.entries,Go=Object.setPrototypeOf,Lp=Object.isFrozen,Yc=Object.getPrototypeOf,Zc=Object.getOwnPropertyDescriptor;let Ue=Object.freeze,Ve=Object.seal,Yr=Object.create,Qc=typeof Reflect<"u"&&Reflect,vi=Qc.apply,bi=Qc.construct;Ue||(Ue=function(e){return e});Ve||(Ve=function(e){return e});vi||(vi=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)});bi||(bi=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),Op=Ee(Array.prototype.lastIndexOf),jo=Ee(Array.prototype.pop),A0=Ee(Array.prototype.push),Pp=Ee(Array.prototype.slice),$p=Ee(Array.prototype.splice),e0=Array.isArray,Pa=Jc(Set),$a=Ee(Set.prototype.add),T0=Ee(Set.prototype.has),Mr=Ee(String.prototype.toLowerCase),Ba=Ee(String.prototype.toString),Vo=Ee(String.prototype.match),E0=Ee(String.prototype.replace),Ko=Ee(String.prototype.indexOf),Bp=Ee(String.prototype.trim),qp=Ee(Number.prototype.toString),Fp=Ee(Boolean.prototype.toString),Xo=typeof BigInt>"u"?null:Ee(BigInt.prototype.toString),Yo=typeof Symbol>"u"?null:Ee(Symbol.prototype.toString),ht=Ee(Object.prototype.hasOwnProperty),M0=Ee(Object.prototype.toString),Ge=Ee(RegExp.prototype.test),Ft=Jc(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 vi(t,e,n)}}function Jc(t){return function(){for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];return bi(t,r)}}function he(t,e){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:Mr;if(Go&&Go(t,null),!e0(e))return t;let n=e.length;for(;n--;){let a=e[n];if(typeof a=="string"){const i=r(a);i!==a&&(Lp(e)||(e[n]=i),a=i)}t[a]=!0}return t}function Hp(t){for(let e=0;e<t.length;e++)ht(t,e)||(t[e]=null);return t}function gt(t){const e=Yr(null);for(const n of Xc(t)){var r=Np(n,2);const a=r[0],i=r[1];ht(t,a)&&(e0(i)?e[a]=Hp(i):i&&typeof i=="object"&&i.constructor===Object?e[a]=gt(i):e[a]=i)}return e}function Up(t){switch(typeof t){case"string":return t;case"number":return qp(t);case"boolean":return Fp(t);case"bigint":return Xo?Xo(t):"0";case"symbol":return Yo?Yo(t):"Symbol()";case"undefined":return M0(t);case"function":case"object":{if(t===null)return M0(t);const e=t,r=St(e,"toString");if(typeof r=="function"){const n=r(e);return typeof n=="string"?n:M0(n)}return M0(t)}default:return M0(t)}}function St(t,e){for(;t!==null;){const n=Zc(t,e);if(n){if(n.get)return Ee(n.get);if(typeof n.value=="function")return Ee(n.value)}t=Yc(t)}function r(){return null}return r}function Wp(t,e){for(;t!==null;){const r=Zc(t,e);if(r)return r.get?Ee(r.get):null;t=Yc(t)}return null}function Gp(t){try{return Ge(t,""),!0}catch{return!1}}const Zo=Ue(["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"]),qa=Ue(["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"]),Fa=Ue(["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"]),jp=Ue(["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"]),Ha=Ue(["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"]),Vp=Ue(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),Qo=Ue(["#text"]),Jo=Ue(["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"]),Ua=Ue(["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"]),el=Ue(["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"]),Mn=Ue(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),Kp=Ve(/{{[\w\W]*|^[\w\W]*}}/g),Xp=Ve(/<%[\w\W]*|^[\w\W]*%>/g),Yp=Ve(/\${[\w\W]*/g),Zp=Ve(/^data-[\-\w.\u00B7-\uFFFF]+$/),Qp=Ve(/^aria-[\-\w]+$/),tl=Ve(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),Jp=Ve(/^(?:\w+script|data):/i),e4=Ve(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),t4=Ve(/^html$/i),r4=Ve(/^[a-z][.\w]*(-[.\w]+)+$/i),Wa=Ve(/<[/\w!]/g),rl=Ve(/<[/\w]/g),n4=Ve(/<\/no(script|embed|frames)/i),nl=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},a4=Ue(he({},["style","script","xmp","iframe","noembed","noframes","plaintext","noscript"])),i4=function(){return typeof window>"u"?null:window},s4=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}},al=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}},ir=function(e,r,n,a){return ht(e,r)&&e0(e[r])?he(a.base?gt(a.base):{},e[r],a.transform):n},Ga=function(e,r,n){const a=ht(e,r)?e[r]:void 0;return a&&typeof a=="object"?gt(a):n()};function eu(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:i4();const e=N=>eu(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 h=t.DOMParser,m=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"),Y=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 Y?Y(f):f.nodeType},U=function(f){return X?X(f):f.nodeName},P=Wp(g,"namespaceURI"),$=function(f){return P?P(f):f.namespaceURI};if(typeof i=="function"){const N=r.createElement("template");N.content&&N.content.ownerDocument&&(r=N.content.ownerDocument)}let L,F="",K,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--}},ge=function(){return J||(K=s4(m,a),J=!0),K},Ae=r,st=Ae.implementation,wt=Ae.createNodeIterator,Ze=Ae.createDocumentFragment,Qe=Ae.getElementsByTagName,gr=n.importNode;let ye=al();e.isSupported=typeof Xc=="function"&&typeof S=="function"&&st&&st.createHTMLDocument!==void 0;const Qt=Kp,Q0=Xp,Jt=Yp,J0=Zp,en=Qp,tn=Jp,vr=e4,$r=r4;let rn=tl,xe=null;const g0=he({},[...Zo,...qa,...Fa,...Ha,...Qo]);let we=null;const Br=he({},[...Jo,...Ua,...el,...Mn]);let Je=Object.seal(Yr(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,nn=null;const kt=Object.seal(Yr(null,{tagCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeCheck:{writable:!0,configurable:!1,enumerable:!0,value:null}}));let v0=!0,qr=!0,an=!1,b0=!0,ot=!1,xt=!0,yr=!1,Jn=!1,sn=null,on=null,ea=!1,Fr=!1,ln=!1,cn=!1,cs=!0,us=!1;const hs="user-content-";let ta=!0,ra=!1,wr=null,Hr={},kr=null;const ds=he({},["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 ms=null;const ps=he({},["audio","video","img","source","image","track"]);let fs=null;const gs=he({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),un="http://www.w3.org/1998/Math/MathML",hn="http://www.w3.org/2000/svg",zt="http://www.w3.org/1999/xhtml";let Ur=zt,na=!1,aa=null;const Nu=he({},[un,hn,zt],Ba),vs=Ue(["mi","mo","mn","ms","mtext"]);let ia=he({},vs);const bs=Ue(["annotation-xml"]);let sa=he({},bs);const _u=he({},["title","style","font","a","script"]);let y0=null;const Lu=["application/xhtml+xml","text/html"],Ou="text/html";let Ne=null,Wr=null;const Pu=r.createElement("form"),ys=function(f){return f instanceof RegExp||f instanceof Function},oa=function(){let f=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(Wr&&Wr===f)return;(!f||typeof f!="object")&&(f={}),f=gt(f),y0=Lu.indexOf(f.PARSER_MEDIA_TYPE)===-1?Ou:f.PARSER_MEDIA_TYPE,Ne=y0==="application/xhtml+xml"?Ba:Mr,xe=ir(f,"ALLOWED_TAGS",g0,{transform:Ne}),we=ir(f,"ALLOWED_ATTR",Br,{transform:Ne}),aa=ir(f,"ALLOWED_NAMESPACES",Nu,{transform:Ba}),fs=ir(f,"ADD_URI_SAFE_ATTR",gs,{transform:Ne,base:gs}),ms=ir(f,"ADD_DATA_URI_TAGS",ps,{transform:Ne,base:ps}),kr=ir(f,"FORBID_CONTENTS",ds,{transform:Ne}),br=ir(f,"FORBID_TAGS",gt({}),{transform:Ne}),nn=ir(f,"FORBID_ATTR",gt({}),{transform:Ne}),Hr=ht(f,"USE_PROFILES")?f.USE_PROFILES&&typeof f.USE_PROFILES=="object"?gt(f.USE_PROFILES):f.USE_PROFILES:!1,v0=f.ALLOW_ARIA_ATTR!==!1,qr=f.ALLOW_DATA_ATTR!==!1,an=f.ALLOW_UNKNOWN_PROTOCOLS||!1,b0=f.ALLOW_SELF_CLOSE_IN_ATTR!==!1,ot=f.SAFE_FOR_TEMPLATES||!1,xt=f.SAFE_FOR_XML!==!1,yr=f.WHOLE_DOCUMENT||!1,Fr=f.RETURN_DOM||!1,ln=f.RETURN_DOM_FRAGMENT||!1,cn=f.RETURN_TRUSTED_TYPE||!1,ea=f.FORCE_BODY||!1,cs=f.SANITIZE_DOM!==!1,us=f.SANITIZE_NAMED_PROPS||!1,ta=f.KEEP_CONTENT!==!1,ra=f.IN_PLACE||!1,rn=Gp(f.ALLOWED_URI_REGEXP)?f.ALLOWED_URI_REGEXP:tl,Ur=typeof f.NAMESPACE=="string"?f.NAMESPACE:zt,ia=Ga(f,"MATHML_TEXT_INTEGRATION_POINTS",()=>he({},vs)),sa=Ga(f,"HTML_INTEGRATION_POINTS",()=>he({},bs));const x=Ga(f,"CUSTOM_ELEMENT_HANDLING",()=>Yr(null));if(Je=Yr(null),ht(x,"tagNameCheck")&&ys(x.tagNameCheck)&&(Je.tagNameCheck=x.tagNameCheck),ht(x,"attributeNameCheck")&&ys(x.attributeNameCheck)&&(Je.attributeNameCheck=x.attributeNameCheck),ht(x,"allowCustomizedBuiltInElements")&&typeof x.allowCustomizedBuiltInElements=="boolean"&&(Je.allowCustomizedBuiltInElements=x.allowCustomizedBuiltInElements),Ve(Je),ot&&(qr=!1),ln&&(Fr=!0),Hr&&(xe=he({},Qo),we=Yr(null),Hr.html===!0&&(he(xe,Zo),he(we,Jo)),Hr.svg===!0&&(he(xe,qa),he(we,Ua),he(we,Mn)),Hr.svgFilters===!0&&(he(xe,Fa),he(we,Ua),he(we,Mn)),Hr.mathMl===!0&&(he(xe,Ha),he(we,el),he(we,Mn))),kt.tagCheck=null,kt.attributeCheck=null,ht(f,"ADD_TAGS")&&(typeof f.ADD_TAGS=="function"?kt.tagCheck=f.ADD_TAGS:e0(f.ADD_TAGS)&&(xe===g0&&(xe=gt(xe)),he(xe,f.ADD_TAGS,Ne))),ht(f,"ADD_ATTR")&&(typeof f.ADD_ATTR=="function"?kt.attributeCheck=f.ADD_ATTR:e0(f.ADD_ATTR)&&(we===Br&&(we=gt(we)),he(we,f.ADD_ATTR,Ne))),ht(f,"ADD_FORBID_CONTENTS")&&e0(f.ADD_FORBID_CONTENTS)&&(kr===ds&&(kr=gt(kr)),he(kr,f.ADD_FORBID_CONTENTS,Ne)),ta&&(xe["#text"]=!0),yr&&he(xe,["html","head","body"]),xe.table&&(he(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=ge()),L&&typeof F=="string"&&(F=ue("")));Ue&&Ue(f),Wr=f},ws=he({},[...qa,...Fa,...jp]),ks=he({},[...Ha,...Vp]),$u=function(f,x,I){return x.namespaceURI===zt?f==="svg":x.namespaceURI===un?f==="svg"&&(I==="annotation-xml"||ia[I]):!!ws[f]},Bu=function(f,x,I){return x.namespaceURI===zt?f==="math":x.namespaceURI===hn?f==="math"&&sa[I]:!!ks[f]},qu=function(f,x,I){return x.namespaceURI===hn&&!sa[I]||x.namespaceURI===un&&!ia[I]?!1:!ks[f]&&(_u[f]||!ws[f])},Fu=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:Ur},te="template"),aa[x]?x===hn?$u(I,Z,te):x===un?Bu(I,Z,te):x===zt?qu(I,Z,te):!!(y0==="application/xhtml+xml"&&aa[x]):!1},er=function(f){A0(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")}},xs=function(f,x,I){try{A(f,x)}catch{try{f.removeAttribute(I)}catch{}}},la=function(f){ua(f);const x=D(f);x&&qt(Pp(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"&&xs(f,Z,te)}},Gr=function(f,x,I){if(!I)try{I=x.getAttributeNode(f)}catch{I=null}A0(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(Fr||ln)try{er(x)}catch{}else try{x.setAttribute(f,"")}catch{}},Ss=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)]||xs(f,z,Z)}},ca=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);tr(ie)&&z.push(ie)}const te=D(Z);if(te)for(let ie=te.length-1;ie>=0;--ie)z.push(te[ie])}},ua=function(f){ca(f,x=>{R(x)===_e.element&&Ss(x)})},ha=function(f){const x=[];return ca(f,I=>{x.push(I)},!0),x},Hu=function(f,x){const I=Pa();qt(ha(f),z=>{R(z)===_e.element&&$a(I,z)}),qt(x,z=>{R(z)===_e.element&&!T0(I,z)&&Ss(z)})},As=function(f,x){let I=!1;return qt(e.removed,z=>{z.element&&(I=I||z.element===f,ua(z.element))}),Hu(f,x),I},Uu=8,Wu=function(f,x){const I=wr;let z=null;const Z=()=>(z||(z=Pa(),qt(x,te=>{$a(z,te)})),z);for(let te=0;;te++){const ie=ha(f),Be=[f];let Rt=!1;if(qt(ie,et=>{R(et)===_e.documentFragment?A0(Be,et):!Rt&&!T0(I,et)&&(Rt=T0(Z(),et))}),!Rt)return;if(te>=Uu)throw Ft("the tree kept changing during in-place sanitization; refusing to return it");qt(Be,(et,lt)=>{Gu(et,lt>0,f,Z())})}},Gu=function(f,x,I,z){const Z=da(f);let te;for(;te=Z.nextNode();)!T0(z,te)||T0(wr,te)||(x&&Ct(ye.uponSanitizeShadowNode,te,null),pa(te,I),fa(te,I),tr(te.content)&&k0(te.content))},ju=function(f){wr&&$a(wr,f)},Ts=function(f,x){return xt?f==="patchsrc"?!0:f==="for"&&x!=="label"&&x!=="output":!1},Vu=function(f){xt&&ca(f,x=>{const I=R(x);if(I===_e.processingInstruction||I===_e.comment&&Ge(rl,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")&&Ts("for",Z)&&z.removeAttribute("for")}catch{}}return!0})},Es=function(f){let x=null,I=null;if(ea)f="<remove></remove>"+f;else{const te=Vo(f,/^[\r\n\t ]+/);I=te&&te[0]}y0==="application/xhtml+xml"&&Ur===zt&&(f='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+f+"</body></html>");const z=L?ue(f):f;if(Ur===zt)try{x=new h().parseFromString(z,y0)}catch{}if(!x||!x.documentElement){x=st.createDocument(Ur,"template",null);try{x.documentElement.innerHTML=na?F:z}catch{}}const Z=x.body||x.documentElement;return f&&I&&Z.insertBefore(r.createTextNode(I),Z.childNodes[0]||null),Ur===zt?Qe.call(x,yr?"html":"body")[0]:yr?x.documentElement:Z},da=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)},dn=function(f){return f=E0(f,Qt," "),f=E0(f,Q0," "),f=E0(f,Jt," "),f},ma=function(f){var x;Ms(f);const I=(x=f.querySelectorAll)===null||x===void 0?void 0:x.call(f,"template");I&&qt(I,z=>{tr(z.content)&&ma(z.content)})},Ms=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=dn(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!==Y(f)||f.childNodes!==D(f)},tr=function(f){if(!Y||typeof f!="object"||f===null)return!1;try{return Y(f)===_e.documentFragment}catch{return!1}},w0=function(f){if(!Y||typeof f!="object"||f===null)return!1;try{return typeof Y(f)=="number"}catch{return!1}};function Ct(N,f,x){N.length!==0&&qt(N,I=>{I.call(e,f,x,Wr)})}const Ku=function(f,x){return!!(xt&&f.hasChildNodes()&&!w0(f.firstElementChild)&&Ge(Wa,f.textContent)&&Ge(Wa,f.innerHTML)||xt&&a4[x]&&R(f)===_e.element&&$(f)===zt&&(w0(f.firstElementChild)||typeof f.textContent=="string"&&Ge(Wa,f.textContent))||f.nodeType===_e.processingInstruction||xt&&f.nodeType===_e.comment&&Ge(rl,f.data))},pn=function(f,x){if(f instanceof RegExp)return Ge(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},Xu=function(f,x,I){if(!br[x]&&zs(x)&&pn(Je.tagNameCheck,x))return!1;if(ta&&!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 er(f),!0},Cs=function(f,x,I,z){return f.length===0?x:x===I||x===z?gt(x):x},jr=function(f,x){return f===x||S(f)!==null?!1:(ra&&ua(f),!0)},pa=function(f,x){if(ju(f),Ct(ye.beforeSanitizeElements,f,null),jr(f,x))return!0;if(mn(f))return er(f),!0;const I=Ne(U(f));if(xe=Cs(ye.uponSanitizeElement,xe,g0,sn),Ct(ye.uponSanitizeElement,f,{tagName:I,allowedTags:xe}),jr(f,x))return!0;if(Ku(f,I))return er(f),!0;if(br[I]||!(kt.tagCheck instanceof Function&&kt.tagCheck(I))&&!xe[I]){const z=Xu(f,I,x);return z===!1&&(Ct(ye.afterSanitizeElements,f,null),jr(f,x))?!0:z}if(R(f)===_e.element&&!Fu(f)||(I==="noscript"||I==="noembed"||I==="noframes")&&Ge(n4,f.innerHTML))return er(f),!0;if(ot&&f.nodeType===_e.text){const z=dn(f.textContent);f.textContent!==z&&(A0(e.removed,{element:f.cloneNode()}),f.textContent=z)}return Ct(ye.afterSanitizeElements,f,null),jr(f,x)},Is=function(f,x,I){if(nn[x]||Ts(x,f)||cs&&(x==="id"||x==="name")&&(I in r||I in Pu))return!1;const z=we[x]||kt.attributeCheck instanceof Function&&kt.attributeCheck(x,f);return qr&&Ge(J0,x)||v0&&Ge(en,x)?!0:z?fs[x]||Ge(rn,E0(I,vr,""))||(x==="src"||x==="xlink:href"||x==="href")&&f!=="script"&&Ko(I,"data:")===0&&ms[f]||an&&!Ge(tn,E0(I,vr,""))?!0:!I:zs(f)&&pn(Je.tagNameCheck,f)&&pn(Je.attributeNameCheck,x,f)||x==="is"&&Je.allowCustomizedBuiltInElements&&pn(Je.tagNameCheck,I)},Yu=he({},["annotation-xml","color-profile","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","missing-glyph"]),zs=function(f){return!Yu[Mr(f)]&&Ge($r,f)},Zu=function(f,x,I,z){if(L&&typeof m=="object"&&typeof m.getAttributeType=="function"&&!I)switch(m.getAttributeType(f,x)){case"TrustedHTML":return ue(z);case"TrustedScriptURL":return De(z)}return z},Qu=function(f,x,I,z){try{return I?f.setAttributeNS(I,x,z):f.setAttribute(x,z),mn(f)?(er(f),!1):!0}catch{return Gr(x,f),!1}},Rs=function(f,x){return xt&&Ge(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i,x)?!0:Mr(f)==="attributename"&&Vo(x,"href")!==null},fa=function(f,x){if(Ct(ye.beforeSanitizeAttributes,f,null),jr(f,x))return;const I=f.attributes;if(!I||mn(f))return;we=Cs(ye.uponSanitizeAttribute,we,Br,on);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),Vr=et;let ct=Be==="value"?Vr:Bp(Vr),Ds=!1;if(z.attrName=lt,z.attrValue=ct,z.keepAttr=!0,z.forceKeepAttr=void 0,Ct(ye.uponSanitizeAttribute,f,z),ct=z.attrValue,us&&(lt==="id"||lt==="name")&&Ko(ct,hs)!==0&&(Gr(Be,f,ie),ct=hs+ct,Ds=!0),Rs(Be,ct)){Gr(Be,f,ie);continue}if(!z.forceKeepAttr){if(!z.keepAttr){Gr(Be,f,ie);continue}if(!b0&&Ge(nl,ct)){Gr(Be,f,ie);continue}if(ot&&(ct=dn(ct)),!Is(te,lt,ct)){Gr(Be,f,ie);continue}ct=Zu(te,lt,Rt,ct),ct!==Vr&&Qu(f,Be,Rt,ct)&&Ds&&jo(e.removed)}}Ct(ye.afterSanitizeAttributes,f,null),jr(f,x)},k0=function(f){let x=null;const I=da(f);for(Ct(ye.beforeSanitizeShadowDOM,f,null);x=I.nextNode();)if(Ct(ye.uponSanitizeShadowNode,x,null),pa(x,f),fa(x,f),tr(x.content)&&k0(x.content),R(x)===_e.element){const z=C(x);tr(z)&&(ga(z),k0(z))}ot&&Ms(f),Ct(ye.afterSanitizeShadowDOM,f,null)},ga=function(f){const x=[{node:f,shadow:null}];for(;x.length>0;){const I=x.pop();if(I.shadow){k0(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;tr(Be)&&x.push({node:Be,shadow:null})}}if(Z){const ie=C(z);tr(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(na=!N,na&&(N="<!-->"),typeof N!="string"&&!w0(N)&&(N=Up(N),typeof N!="string"))throw Ft("dirty is not a string, aborting");if(!e.isSupported)return N;Jn?(xe=sn,we=on):oa(f),(ye.uponSanitizeElement.length>0||ye.uponSanitizeAttribute.length>0)&&(xe=gt(xe)),ye.uponSanitizeAttribute.length>0&&(we=gt(we)),e.removed=[];const te=ra&&typeof N!="string"&&w0(N);let ie=[];const Be=wr;if(te){Vu(N);const lt=U(N);if(typeof lt=="string"){const Vr=Ne(lt);if(!xe[Vr]||br[Vr])throw la(N),Ft("root node is forbidden and cannot be sanitized in-place")}if(mn(N))throw la(N),Ft("root node is clobbered and cannot be sanitized in-place");ie=ha(N),wr=Pa()}else if(w0(N))x=Es("<!---->"),I=x.ownerDocument.importNode(N,!0),I.nodeType===_e.element&&I.nodeName==="BODY"||I.nodeName==="HTML"?x=I:x.appendChild(I),ga(x);else{if(!Fr&&!ot&&!yr&&N.indexOf("<")===-1)return L&&cn?ue(N):N;if(x=Es(N),!x)return Fr?null:cn?F:""}x&&ea&&er(x.firstChild);const Rt=te?N:x;try{te&&ga(N);const lt=da(Rt);for(;z=lt.nextNode();)pa(z,Rt),fa(z,Rt),tr(z.content)&&k0(z.content);te&&Wu(N,ie)}catch(lt){throw te&&(la(N),As(N,ie)),lt}finally{wr=Be}if(te){if(As(N,ie))throw Ft("a node selected for removal could not be safely returned; refusing to sanitize in place");return ot&&ma(N),N}if(Fr){if(ot&&ma(x),ln)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&&Ge(t4,x.ownerDocument.doctype.name)&&(et="<!DOCTYPE "+x.ownerDocument.doctype.name+`>
361
- `+et),ot&&(et=dn(et)),L&&cn?ue(et):et},e.setConfig=function(){let N=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};oa(N),Jn=!0,sn=xe,on=we},e.clearConfig=function(){Wr=null,Jn=!1,sn=null,on=null,L=K,F=""},e.isValidAttribute=function(N,f,x){Wr||oa({});const I=Ne(N),z=Ne(f);return typeof x=="string"&&(Rs(f,x)||!b0&&Ge(nl,x))?!1:Is(I,z,x)},e.addHook=function(N,f){typeof f=="function"&&ht(ye,N)&&A0(ye[N],f)},e.removeHook=function(N,f){if(ht(ye,N)){if(f!==void 0){const x=Op(ye[N],f);return x===-1?void 0:$p(ye[N],x,1)[0]}return jo(ye[N])}},e.removeHooks=function(N){ht(ye,N)&&(ye[N]=[])},e.removeAllHooks=function(){ye=al()},e}var Qi=eu();const Ji=/\.(?:png|jpe?g|gif|webp)$/i,tu=/\.(?:mp4|webm)$/i;function o4(t,e){return e.readOnly===!0&&t===Ll}function es(t){return Ji.test(t)?"image":tu.test(t)?"video":null}const l4=/^[A-Za-z0-9._-]+$/;function _r(t){try{return decodeURIComponent(t)}catch{return null}}function K0(t){return l4.test(t)&&t!=="."&&t!==".."}function c4(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 ru(t,e){if(t!==t.trim())return null;const r=/^workspace-asset:\/\/([^/?#]+)\/([^/?#]+)(\?[^#]*)?$/.exec(t);if(!r||!e||!K0(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 ts(t,e){const r=ru(t,e);return!r||!tu.test(r)?null:{kind:"workspace",url:t,mimeType:r.toLowerCase().endsWith(".webm")?"video/webm":"video/mp4"}}function v3(t,e){const r=ru(t,e);return r&&Ji.test(r)?t:null}function nu(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&&!o4(e,r))return null;o=g,c=s.slice(2)}else return null;if(!o||!K0(o)||c.length===0)return null;const h=[];for(const g of c){const v=_r(g);if(v===null||v.length===0||v==="."||v===".."||v.includes("/")||v.includes("\\"))return null;h.push(v)}if(/^[A-Za-z]:/.test(h[0]))return null;const m=h.map(g=>encodeURIComponent(g)).join("/");return{workspaceId:o,path:h.join("/"),encodedPath:m}}function u4(t,e,r={}){const n=nu(t,e,r);if(!n)return null;const a=es(n.path);return a?{url:`workspace-file://${n.workspaceId}/${n.encodedPath}`,kind:a}:null}function b3(t,e,r={}){const n=u4(t,e,r);return n?.kind==="image"?n.url:null}function il(t){if(!t.startsWith("workspace-file://"))return null;const e=t.slice(17).split(/[?#]/)[0],[r,...n]=e.split("/");if(!r||!K0(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])||!es(a[a.length-1])?null:`intent://local/file/${a.map(s=>encodeURIComponent(s)).join("/")}`}function yi(t){if(!t.startsWith("workspace-file://"))return null;const e=t.slice(17).split(/[?#]/)[0],[r,...n]=e.split("/");if(!r||!K0(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])||!Ji.test(a[a.length-1])?null:`intent://local/file/${a.map(s=>encodeURIComponent(s)).join("/")}`}const h4=/^[A-Za-z][A-Za-z0-9+.-]*:/;function d4(t,e){if(!t||t!==t.trim()||h4.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 Zr=t=>t.replace(/&/g,"&amp;").replace(/"/g,"&quot;"),m4=/^intent:\/\/[^/?#]+\/file\//,p4=/^intent:\/\/[^/?#]+\/([^/?#]+)\/file\//;function f4(t,e){if(m4.test(t))return e?"invalid-link":"workspace-unknown";const r=p4.exec(t);if(!r)return null;const n=_r(r[1]);return e&&n&&K0(n)&&n!==e?"other-workspace":"invalid-link"}const g4="v";let sl=0;function au(){return sl+=1,`${Date.now().toString(36)}-${sl.toString(36)}`}function y3(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(!yi(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",au()),`${r}?${a}`)}function v4(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]}?${g4}=${Zr(e)}"`):r}):t}function b4(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 y4(t,e){return t.includes("<img")?t.replace(/<img\b[^>]*>/gi,r=>{const n=/\ssrc="([^"]*)"/i.exec(r);if(!n)return r;const a=b4(n[1]),i=a===null?null:d4(a,e);if(!i)return r;const s=i.split("/").map(o=>encodeURIComponent(o)).join("/");return r.replace(n[0],` src="${Zr(`intent://local/file/${s}`)}"`)}):t}function w3(t){const e=t.getAttribute("data-media-unavailable");return e==="other-workspace"||e==="invalid-link"?e:"load-failed"}function w4(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=ts(i,e);if(s){const g=/\salt="([^"]*)"/i.exec(n)?.[1]??"";return`<video src="${Zr(s.url)}" controls preload="metadata" playsinline class="markdown-video" data-name="${g}"></video>`}if(!i.startsWith("intent://"))return n;const o=nu(i,e,r);if(!o){const g=f4(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=es(o.path);if(!c){const g=o.path.split(".").pop()?.toLowerCase()??"";return n.replace(/>$/,` data-media-unsupported="${Zr(g)}">`)}const h={url:`workspace-file://${o.workspaceId}/${o.encodedPath}`,kind:c};if(h.kind==="image")return n.replace(a[1],Zr(h.url));const m=/\salt="([^"]*)"/i.exec(n)?.[1]??"";return`<video src="${Zr(h.url)}" controls preload="metadata" playsinline class="markdown-video" data-name="${m}"></video>`})}const ol=new c0("html-sanitizer"),Pn=t=>/^[\s\u0000-\u001f]*workspace-file:/i.test(t);let cr,L0=!1,N0=!1,Rn=!1;const ll=/^-?(?:\d+(?:\.\d+)?|\.\d+)(?:em|px|%)$/,k4=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 x4(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+/);(k4.has(a)&&ll.test(i)||a==="margin"&&s.length<=4&&s.every(c=>c==="0"||ll.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 S4(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 iu(t){if(!Pn(t))return!1;const e=/^[\s\u0000-\u001f]*workspace-file:\/\/([^/?#]+)/i.exec(t);if(!e||!cr)return!1;try{const r=decodeURIComponent(e[1]);return Rn&&cr===Ll?/^[A-Za-z0-9._-]+$/.test(r)&&r!=="."&&r!=="..":r===cr}catch{return!1}}Qi.addHook("uponSanitizeElement",t=>{t instanceof Element&&t.nodeName==="VIDEO"&&!ts(t.getAttribute("src")??"",cr)&&(!Pn(t.getAttribute("src")??"")||L0&&!iu(t.getAttribute("src")??""))&&t.remove()});Qi.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(!N0||!(t instanceof Element)||!S4(t)){e.keepAttr=!1;return}e.attrValue=x4(e.attrValue),e.keepAttr=e.attrValue.length>0;return}if(t.nodeName==="IMG"&&e.attrName==="src"&&c4(e.attrValue)&&!ts(e.attrValue,cr)){e.keepAttr=!1;return}if(L0&&Pn(e.attrValue)&&!iu(e.attrValue)){e.keepAttr=!1;return}Pn(e.attrValue)&&!(e.attrName==="src"&&(t.nodeName==="IMG"||t.nodeName==="VIDEO"))&&(e.keepAttr=!1)});const su=["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"],cl={"*":["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"]},A4={ALLOWED_TAGS:su,ALLOWED_ATTR:Object.keys(cl).reduce((t,e)=>{const r=cl[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 T4(t,e={}){if(!t)return"";try{const r={...A4,...e},n=Qi.sanitize(t,r),a=typeof n=="string"?n:String(n);return a.length!==t.length&&ol.debug("HTML content was sanitized",{originalLength:t.length,sanitizedLength:a.length,modified:!0}),a}catch(r){return ol.error("Failed to sanitize HTML",r),""}}function O0(t,e,r={}){const n=cr,a=L0,i=N0,s=Rn;cr=e,L0=!0,N0=r.preserveKatexLayoutStyles??!1,Rn=r.readOnly??!1;try{return T4(t,{ALLOWED_TAGS:[...su,"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",...N0?["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{cr=n,L0=a,N0=i,Rn=s}}const X0=me({id:D1(),type:Xe(["reference","cli","agent_action","patch","diagram"]),version:h0(1),label:V().optional(),description:V().optional(),createdAt:n0(),createdBy:Xe(["user","agent","system"]),createdByAgentId:V().optional(),meta:jt(V(),u0()).optional()}),E4=me({kind:Xe(["symbol","file_range"]).optional().default("file_range"),semanticId:V().optional(),filePath:V().optional(),languageId:V().optional(),range:me({startLine:Le().nonnegative(),startColumn:Le().nonnegative().optional(),endLine:Le().nonnegative(),endColumn:Le().nonnegative().optional()}).optional()}),M4=me({code:V(),filePath:V(),languageId:V().optional()}),C4=me({collapsedByDefault:lr().optional(),showFilePath:lr().optional(),showSymbolName:lr().optional()}),I4=X0.extend({type:h0("reference"),target:E4,snapshot:M4.optional(),display:C4.optional()}),z4=me({status:Xe(["running","success","error","cancelled"]),exitCode:Le().optional(),startedAt:n0(),finishedAt:n0().optional()}),R4=me({stdout:V(),stderr:V()}),D4=me({collapsedOutputByDefault:lr().optional(),showCommandPrefix:V().optional()}),N4=X0.extend({type:h0("cli"),command:V(),cwd:V().optional(),env:jt(V(),V()).optional(),timeoutMs:Le().positive().optional(),lastRun:z4.optional(),outputSnapshot:R4.optional(),display:D4.optional(),terminalId:V().optional()}),_4=me({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()}),L4=me({temperature:Le().min(0).max(2).optional(),maxTokens:Le().positive().optional()}).passthrough(),O4=me({status:Xe(["pending","running","success","error"]),startedAt:n0(),finishedAt:n0().optional(),errorMessage:V().optional()}),P4=me({title:V().optional(),description:V().optional(),createdPrimitives:He(V()).optional()}),$4=X0.extend({type:h0("agent_action"),agentId:V(),goal:V(),inputs:He(_4),config:L4.optional(),lastRun:O4.optional(),resultSummary:P4.optional()}),B4=me({status:Xe(["success","conflict","error"]),appliedAt:n0(),errorMessage:V().optional()}),q4=me({filePath:V(),diff:V(),semanticRefs:He(V()).optional()}),F4=me({collapsedByDefault:lr().optional(),showFileNames:lr().optional()}),H4=X0.extend({type:h0("patch"),patches:He(q4),lastApply:B4.optional(),display:F4.optional()}),U4=Xe(["architecture","sequence","state_machine","data_flow","network","flowchart","timeline","dependency_graph"]),rs=Xe(["highlighted","muted","danger","success","inactive","warning","active"]),wi=me({type:Xe(["file","symbol","spec","note","timeline_event","metric","log","test"]),target:V(),metadata:jt(V(),u0()).optional()}),W4=me({id:V(),label:V(),kind:V().optional(),semanticStyle:rs.optional(),position:me({x:Le(),y:Le()}).optional(),size:me({width:Le(),height:Le()}).optional(),binding:wi.optional(),bindings:He(wi).optional(),group:V().optional(),metadata:jt(V(),u0()).optional()}),G4=me({id:V(),from:V(),to:V(),label:V().optional(),kind:V().optional(),semanticStyle:rs.optional(),animated:lr().optional(),dashed:lr().optional(),flowDirection:Xe(["forward","backward","bidirectional"]).optional(),bindings:He(wi).optional(),metadata:jt(V(),u0()).optional()}),j4=me({id:V(),label:V(),nodeIds:He(V()),semanticStyle:rs.optional(),metadata:jt(V(),u0()).optional()}),V4=me({nodes:He(W4),edges:He(G4),groups:He(j4).optional()}),K4=me({type:Xe(["layered","force","circular","tree","manual"]),direction:Xe(["LR","RL","TB","BT"]).optional(),spacing:Le().optional(),edgeRouting:Xe(["orthogonal","polyline","curved"]).optional()}),X4=jt(V(),me({class:V().optional(),style:jt(V(),V()).optional()})),Y4=me({layout:K4,semanticStyles:X4.optional(),zoom:Le().optional(),pan:me({x:Le(),y:Le()}).optional(),edgeRouting:Xe(["orthogonal","polyline","curved"]).optional()}),Z4=me({focus:V().optional(),zoom:Le().optional(),pan:me({x:Le(),y:Le()}).optional()}),Q4=me({title:V().optional(),text:V().optional()}),J4=me({type:V(),data:jt(V(),u0())}),ef=me({duration:Le().optional(),animate:He(Xe(["camera","visibleEdges","visibleNodes","semanticStyle"])).optional()}),tf=me({id:V(),label:V().optional(),visibleNodes:He(V()).optional(),visibleEdges:He(V()).optional(),visibleGroups:He(V()).optional(),highlightedNodes:He(V()).optional(),highlightedEdges:He(V()).optional(),camera:Z4.optional(),narrative:N1([Q4,V()]).optional(),overlays:He(J4).optional(),transition:ef.optional()}),rf=X0.extend({type:h0("diagram"),grammar:U4,model:V4,baseView:Y4,states:He(tf).optional(),currentStateId:V().optional()}),ou=_1("type",[I4,N4,$4,H4,rf]);function k3(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 x3(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 c0("NotesPrimitivesSerializer");function nf(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 af{constructor(){se(this,"logger",new c0("NotesPrimitivesSerializer"))}parseMarkdown(e,r={}){return lu(e,r)}serializeToMarkdown(e,r,n={}){return of(e,r,n)}tiptapNodeToPrimitive(e){return cf(e)}primitiveToTiptapNode(e){return uf(e)}generateId(){return uu()}createBasePrimitive(e,r="user"){return df(e,r)}}function lu(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 Np(t,e){return zp(t)||Rp(t,e)||_p(t,e)||Dp()}function _p(t,e){if(t){if(typeof t=="string")return Wo(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)?Wo(t,e):void 0}}const Yc=Object.entries,Go=Object.setPrototypeOf,Lp=Object.isFrozen,Xc=Object.getPrototypeOf,Zc=Object.getOwnPropertyDescriptor;let Ue=Object.freeze,Ve=Object.seal,Xr=Object.create,Qc=typeof Reflect<"u"&&Reflect,vi=Qc.apply,bi=Qc.construct;Ue||(Ue=function(e){return e});Ve||(Ve=function(e){return e});vi||(vi=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)});bi||(bi=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),Op=Ee(Array.prototype.lastIndexOf),jo=Ee(Array.prototype.pop),A0=Ee(Array.prototype.push),Pp=Ee(Array.prototype.slice),$p=Ee(Array.prototype.splice),e0=Array.isArray,Pa=Jc(Set),$a=Ee(Set.prototype.add),T0=Ee(Set.prototype.has),Mr=Ee(String.prototype.toLowerCase),Ba=Ee(String.prototype.toString),Vo=Ee(String.prototype.match),E0=Ee(String.prototype.replace),Ko=Ee(String.prototype.indexOf),Bp=Ee(String.prototype.trim),qp=Ee(Number.prototype.toString),Fp=Ee(Boolean.prototype.toString),Yo=typeof BigInt>"u"?null:Ee(BigInt.prototype.toString),Xo=typeof Symbol>"u"?null:Ee(Symbol.prototype.toString),ht=Ee(Object.prototype.hasOwnProperty),M0=Ee(Object.prototype.toString),Ge=Ee(RegExp.prototype.test),Ft=Jc(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 vi(t,e,n)}}function Jc(t){return function(){for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];return bi(t,r)}}function he(t,e){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:Mr;if(Go&&Go(t,null),!e0(e))return t;let n=e.length;for(;n--;){let a=e[n];if(typeof a=="string"){const i=r(a);i!==a&&(Lp(e)||(e[n]=i),a=i)}t[a]=!0}return t}function Hp(t){for(let e=0;e<t.length;e++)ht(t,e)||(t[e]=null);return t}function gt(t){const e=Xr(null);for(const n of Yc(t)){var r=Np(n,2);const a=r[0],i=r[1];ht(t,a)&&(e0(i)?e[a]=Hp(i):i&&typeof i=="object"&&i.constructor===Object?e[a]=gt(i):e[a]=i)}return e}function Up(t){switch(typeof t){case"string":return t;case"number":return qp(t);case"boolean":return Fp(t);case"bigint":return Yo?Yo(t):"0";case"symbol":return Xo?Xo(t):"Symbol()";case"undefined":return M0(t);case"function":case"object":{if(t===null)return M0(t);const e=t,r=St(e,"toString");if(typeof r=="function"){const n=r(e);return typeof n=="string"?n:M0(n)}return M0(t)}default:return M0(t)}}function St(t,e){for(;t!==null;){const n=Zc(t,e);if(n){if(n.get)return Ee(n.get);if(typeof n.value=="function")return Ee(n.value)}t=Xc(t)}function r(){return null}return r}function Wp(t,e){for(;t!==null;){const r=Zc(t,e);if(r)return r.get?Ee(r.get):null;t=Xc(t)}return null}function Gp(t){try{return Ge(t,""),!0}catch{return!1}}const Zo=Ue(["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"]),qa=Ue(["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"]),Fa=Ue(["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"]),jp=Ue(["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"]),Ha=Ue(["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"]),Vp=Ue(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),Qo=Ue(["#text"]),Jo=Ue(["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"]),Ua=Ue(["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"]),el=Ue(["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"]),Mn=Ue(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),Kp=Ve(/{{[\w\W]*|^[\w\W]*}}/g),Yp=Ve(/<%[\w\W]*|^[\w\W]*%>/g),Xp=Ve(/\${[\w\W]*/g),Zp=Ve(/^data-[\-\w.\u00B7-\uFFFF]+$/),Qp=Ve(/^aria-[\-\w]+$/),tl=Ve(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),Jp=Ve(/^(?:\w+script|data):/i),e4=Ve(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),t4=Ve(/^html$/i),r4=Ve(/^[a-z][.\w]*(-[.\w]+)+$/i),Wa=Ve(/<[/\w!]/g),rl=Ve(/<[/\w]/g),n4=Ve(/<\/no(script|embed|frames)/i),nl=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},a4=Ue(he({},["style","script","xmp","iframe","noembed","noframes","plaintext","noscript"])),i4=function(){return typeof window>"u"?null:window},s4=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}},al=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}},ir=function(e,r,n,a){return ht(e,r)&&e0(e[r])?he(a.base?gt(a.base):{},e[r],a.transform):n},Ga=function(e,r,n){const a=ht(e,r)?e[r]:void 0;return a&&typeof a=="object"?gt(a):n()};function eu(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:i4();const e=N=>eu(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 h=t.DOMParser,m=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"),X=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 X?X(f):f.nodeType},U=function(f){return Y?Y(f):f.nodeName},P=Wp(g,"namespaceURI"),$=function(f){return P?P(f):f.namespaceURI};if(typeof i=="function"){const N=r.createElement("template");N.content&&N.content.ownerDocument&&(r=N.content.ownerDocument)}let L,F="",K,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--}},ge=function(){return J||(K=s4(m,a),J=!0),K},Ae=r,st=Ae.implementation,wt=Ae.createNodeIterator,Ze=Ae.createDocumentFragment,Qe=Ae.getElementsByTagName,gr=n.importNode;let ye=al();e.isSupported=typeof Yc=="function"&&typeof S=="function"&&st&&st.createHTMLDocument!==void 0;const Qt=Kp,Q0=Yp,Jt=Xp,J0=Zp,en=Qp,tn=Jp,vr=e4,$r=r4;let rn=tl,xe=null;const g0=he({},[...Zo,...qa,...Fa,...Ha,...Qo]);let we=null;const Br=he({},[...Jo,...Ua,...el,...Mn]);let Je=Object.seal(Xr(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,nn=null;const kt=Object.seal(Xr(null,{tagCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeCheck:{writable:!0,configurable:!1,enumerable:!0,value:null}}));let v0=!0,qr=!0,an=!1,b0=!0,ot=!1,xt=!0,yr=!1,Jn=!1,sn=null,on=null,ea=!1,Fr=!1,ln=!1,cn=!1,cs=!0,us=!1;const hs="user-content-";let ta=!0,ra=!1,wr=null,Hr={},kr=null;const ds=he({},["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 ms=null;const ps=he({},["audio","video","img","source","image","track"]);let fs=null;const gs=he({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),un="http://www.w3.org/1998/Math/MathML",hn="http://www.w3.org/2000/svg",zt="http://www.w3.org/1999/xhtml";let Ur=zt,na=!1,aa=null;const Nu=he({},[un,hn,zt],Ba),vs=Ue(["mi","mo","mn","ms","mtext"]);let ia=he({},vs);const bs=Ue(["annotation-xml"]);let sa=he({},bs);const _u=he({},["title","style","font","a","script"]);let y0=null;const Lu=["application/xhtml+xml","text/html"],Ou="text/html";let Ne=null,Wr=null;const Pu=r.createElement("form"),ys=function(f){return f instanceof RegExp||f instanceof Function},oa=function(){let f=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(Wr&&Wr===f)return;(!f||typeof f!="object")&&(f={}),f=gt(f),y0=Lu.indexOf(f.PARSER_MEDIA_TYPE)===-1?Ou:f.PARSER_MEDIA_TYPE,Ne=y0==="application/xhtml+xml"?Ba:Mr,xe=ir(f,"ALLOWED_TAGS",g0,{transform:Ne}),we=ir(f,"ALLOWED_ATTR",Br,{transform:Ne}),aa=ir(f,"ALLOWED_NAMESPACES",Nu,{transform:Ba}),fs=ir(f,"ADD_URI_SAFE_ATTR",gs,{transform:Ne,base:gs}),ms=ir(f,"ADD_DATA_URI_TAGS",ps,{transform:Ne,base:ps}),kr=ir(f,"FORBID_CONTENTS",ds,{transform:Ne}),br=ir(f,"FORBID_TAGS",gt({}),{transform:Ne}),nn=ir(f,"FORBID_ATTR",gt({}),{transform:Ne}),Hr=ht(f,"USE_PROFILES")?f.USE_PROFILES&&typeof f.USE_PROFILES=="object"?gt(f.USE_PROFILES):f.USE_PROFILES:!1,v0=f.ALLOW_ARIA_ATTR!==!1,qr=f.ALLOW_DATA_ATTR!==!1,an=f.ALLOW_UNKNOWN_PROTOCOLS||!1,b0=f.ALLOW_SELF_CLOSE_IN_ATTR!==!1,ot=f.SAFE_FOR_TEMPLATES||!1,xt=f.SAFE_FOR_XML!==!1,yr=f.WHOLE_DOCUMENT||!1,Fr=f.RETURN_DOM||!1,ln=f.RETURN_DOM_FRAGMENT||!1,cn=f.RETURN_TRUSTED_TYPE||!1,ea=f.FORCE_BODY||!1,cs=f.SANITIZE_DOM!==!1,us=f.SANITIZE_NAMED_PROPS||!1,ta=f.KEEP_CONTENT!==!1,ra=f.IN_PLACE||!1,rn=Gp(f.ALLOWED_URI_REGEXP)?f.ALLOWED_URI_REGEXP:tl,Ur=typeof f.NAMESPACE=="string"?f.NAMESPACE:zt,ia=Ga(f,"MATHML_TEXT_INTEGRATION_POINTS",()=>he({},vs)),sa=Ga(f,"HTML_INTEGRATION_POINTS",()=>he({},bs));const x=Ga(f,"CUSTOM_ELEMENT_HANDLING",()=>Xr(null));if(Je=Xr(null),ht(x,"tagNameCheck")&&ys(x.tagNameCheck)&&(Je.tagNameCheck=x.tagNameCheck),ht(x,"attributeNameCheck")&&ys(x.attributeNameCheck)&&(Je.attributeNameCheck=x.attributeNameCheck),ht(x,"allowCustomizedBuiltInElements")&&typeof x.allowCustomizedBuiltInElements=="boolean"&&(Je.allowCustomizedBuiltInElements=x.allowCustomizedBuiltInElements),Ve(Je),ot&&(qr=!1),ln&&(Fr=!0),Hr&&(xe=he({},Qo),we=Xr(null),Hr.html===!0&&(he(xe,Zo),he(we,Jo)),Hr.svg===!0&&(he(xe,qa),he(we,Ua),he(we,Mn)),Hr.svgFilters===!0&&(he(xe,Fa),he(we,Ua),he(we,Mn)),Hr.mathMl===!0&&(he(xe,Ha),he(we,el),he(we,Mn))),kt.tagCheck=null,kt.attributeCheck=null,ht(f,"ADD_TAGS")&&(typeof f.ADD_TAGS=="function"?kt.tagCheck=f.ADD_TAGS:e0(f.ADD_TAGS)&&(xe===g0&&(xe=gt(xe)),he(xe,f.ADD_TAGS,Ne))),ht(f,"ADD_ATTR")&&(typeof f.ADD_ATTR=="function"?kt.attributeCheck=f.ADD_ATTR:e0(f.ADD_ATTR)&&(we===Br&&(we=gt(we)),he(we,f.ADD_ATTR,Ne))),ht(f,"ADD_FORBID_CONTENTS")&&e0(f.ADD_FORBID_CONTENTS)&&(kr===ds&&(kr=gt(kr)),he(kr,f.ADD_FORBID_CONTENTS,Ne)),ta&&(xe["#text"]=!0),yr&&he(xe,["html","head","body"]),xe.table&&(he(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=ge()),L&&typeof F=="string"&&(F=ue("")));Ue&&Ue(f),Wr=f},ws=he({},[...qa,...Fa,...jp]),ks=he({},[...Ha,...Vp]),$u=function(f,x,I){return x.namespaceURI===zt?f==="svg":x.namespaceURI===un?f==="svg"&&(I==="annotation-xml"||ia[I]):!!ws[f]},Bu=function(f,x,I){return x.namespaceURI===zt?f==="math":x.namespaceURI===hn?f==="math"&&sa[I]:!!ks[f]},qu=function(f,x,I){return x.namespaceURI===hn&&!sa[I]||x.namespaceURI===un&&!ia[I]?!1:!ks[f]&&(_u[f]||!ws[f])},Fu=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:Ur},te="template"),aa[x]?x===hn?$u(I,Z,te):x===un?Bu(I,Z,te):x===zt?qu(I,Z,te):!!(y0==="application/xhtml+xml"&&aa[x]):!1},er=function(f){A0(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")}},xs=function(f,x,I){try{A(f,x)}catch{try{f.removeAttribute(I)}catch{}}},la=function(f){ua(f);const x=D(f);x&&qt(Pp(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"&&xs(f,Z,te)}},Gr=function(f,x,I){if(!I)try{I=x.getAttributeNode(f)}catch{I=null}A0(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(Fr||ln)try{er(x)}catch{}else try{x.setAttribute(f,"")}catch{}},Ss=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)]||xs(f,z,Z)}},ca=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);tr(ie)&&z.push(ie)}const te=D(Z);if(te)for(let ie=te.length-1;ie>=0;--ie)z.push(te[ie])}},ua=function(f){ca(f,x=>{R(x)===_e.element&&Ss(x)})},ha=function(f){const x=[];return ca(f,I=>{x.push(I)},!0),x},Hu=function(f,x){const I=Pa();qt(ha(f),z=>{R(z)===_e.element&&$a(I,z)}),qt(x,z=>{R(z)===_e.element&&!T0(I,z)&&Ss(z)})},As=function(f,x){let I=!1;return qt(e.removed,z=>{z.element&&(I=I||z.element===f,ua(z.element))}),Hu(f,x),I},Uu=8,Wu=function(f,x){const I=wr;let z=null;const Z=()=>(z||(z=Pa(),qt(x,te=>{$a(z,te)})),z);for(let te=0;;te++){const ie=ha(f),Be=[f];let Rt=!1;if(qt(ie,et=>{R(et)===_e.documentFragment?A0(Be,et):!Rt&&!T0(I,et)&&(Rt=T0(Z(),et))}),!Rt)return;if(te>=Uu)throw Ft("the tree kept changing during in-place sanitization; refusing to return it");qt(Be,(et,lt)=>{Gu(et,lt>0,f,Z())})}},Gu=function(f,x,I,z){const Z=da(f);let te;for(;te=Z.nextNode();)!T0(z,te)||T0(wr,te)||(x&&Ct(ye.uponSanitizeShadowNode,te,null),pa(te,I),fa(te,I),tr(te.content)&&k0(te.content))},ju=function(f){wr&&$a(wr,f)},Ts=function(f,x){return xt?f==="patchsrc"?!0:f==="for"&&x!=="label"&&x!=="output":!1},Vu=function(f){xt&&ca(f,x=>{const I=R(x);if(I===_e.processingInstruction||I===_e.comment&&Ge(rl,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")&&Ts("for",Z)&&z.removeAttribute("for")}catch{}}return!0})},Es=function(f){let x=null,I=null;if(ea)f="<remove></remove>"+f;else{const te=Vo(f,/^[\r\n\t ]+/);I=te&&te[0]}y0==="application/xhtml+xml"&&Ur===zt&&(f='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+f+"</body></html>");const z=L?ue(f):f;if(Ur===zt)try{x=new h().parseFromString(z,y0)}catch{}if(!x||!x.documentElement){x=st.createDocument(Ur,"template",null);try{x.documentElement.innerHTML=na?F:z}catch{}}const Z=x.body||x.documentElement;return f&&I&&Z.insertBefore(r.createTextNode(I),Z.childNodes[0]||null),Ur===zt?Qe.call(x,yr?"html":"body")[0]:yr?x.documentElement:Z},da=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)},dn=function(f){return f=E0(f,Qt," "),f=E0(f,Q0," "),f=E0(f,Jt," "),f},ma=function(f){var x;Ms(f);const I=(x=f.querySelectorAll)===null||x===void 0?void 0:x.call(f,"template");I&&qt(I,z=>{tr(z.content)&&ma(z.content)})},Ms=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=dn(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!==X(f)||f.childNodes!==D(f)},tr=function(f){if(!X||typeof f!="object"||f===null)return!1;try{return X(f)===_e.documentFragment}catch{return!1}},w0=function(f){if(!X||typeof f!="object"||f===null)return!1;try{return typeof X(f)=="number"}catch{return!1}};function Ct(N,f,x){N.length!==0&&qt(N,I=>{I.call(e,f,x,Wr)})}const Ku=function(f,x){return!!(xt&&f.hasChildNodes()&&!w0(f.firstElementChild)&&Ge(Wa,f.textContent)&&Ge(Wa,f.innerHTML)||xt&&a4[x]&&R(f)===_e.element&&$(f)===zt&&(w0(f.firstElementChild)||typeof f.textContent=="string"&&Ge(Wa,f.textContent))||f.nodeType===_e.processingInstruction||xt&&f.nodeType===_e.comment&&Ge(rl,f.data))},pn=function(f,x){if(f instanceof RegExp)return Ge(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},Yu=function(f,x,I){if(!br[x]&&zs(x)&&pn(Je.tagNameCheck,x))return!1;if(ta&&!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 er(f),!0},Cs=function(f,x,I,z){return f.length===0?x:x===I||x===z?gt(x):x},jr=function(f,x){return f===x||S(f)!==null?!1:(ra&&ua(f),!0)},pa=function(f,x){if(ju(f),Ct(ye.beforeSanitizeElements,f,null),jr(f,x))return!0;if(mn(f))return er(f),!0;const I=Ne(U(f));if(xe=Cs(ye.uponSanitizeElement,xe,g0,sn),Ct(ye.uponSanitizeElement,f,{tagName:I,allowedTags:xe}),jr(f,x))return!0;if(Ku(f,I))return er(f),!0;if(br[I]||!(kt.tagCheck instanceof Function&&kt.tagCheck(I))&&!xe[I]){const z=Yu(f,I,x);return z===!1&&(Ct(ye.afterSanitizeElements,f,null),jr(f,x))?!0:z}if(R(f)===_e.element&&!Fu(f)||(I==="noscript"||I==="noembed"||I==="noframes")&&Ge(n4,f.innerHTML))return er(f),!0;if(ot&&f.nodeType===_e.text){const z=dn(f.textContent);f.textContent!==z&&(A0(e.removed,{element:f.cloneNode()}),f.textContent=z)}return Ct(ye.afterSanitizeElements,f,null),jr(f,x)},Is=function(f,x,I){if(nn[x]||Ts(x,f)||cs&&(x==="id"||x==="name")&&(I in r||I in Pu))return!1;const z=we[x]||kt.attributeCheck instanceof Function&&kt.attributeCheck(x,f);return qr&&Ge(J0,x)||v0&&Ge(en,x)?!0:z?fs[x]||Ge(rn,E0(I,vr,""))||(x==="src"||x==="xlink:href"||x==="href")&&f!=="script"&&Ko(I,"data:")===0&&ms[f]||an&&!Ge(tn,E0(I,vr,""))?!0:!I:zs(f)&&pn(Je.tagNameCheck,f)&&pn(Je.attributeNameCheck,x,f)||x==="is"&&Je.allowCustomizedBuiltInElements&&pn(Je.tagNameCheck,I)},Xu=he({},["annotation-xml","color-profile","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","missing-glyph"]),zs=function(f){return!Xu[Mr(f)]&&Ge($r,f)},Zu=function(f,x,I,z){if(L&&typeof m=="object"&&typeof m.getAttributeType=="function"&&!I)switch(m.getAttributeType(f,x)){case"TrustedHTML":return ue(z);case"TrustedScriptURL":return De(z)}return z},Qu=function(f,x,I,z){try{return I?f.setAttributeNS(I,x,z):f.setAttribute(x,z),mn(f)?(er(f),!1):!0}catch{return Gr(x,f),!1}},Rs=function(f,x){return xt&&Ge(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i,x)?!0:Mr(f)==="attributename"&&Vo(x,"href")!==null},fa=function(f,x){if(Ct(ye.beforeSanitizeAttributes,f,null),jr(f,x))return;const I=f.attributes;if(!I||mn(f))return;we=Cs(ye.uponSanitizeAttribute,we,Br,on);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),Vr=et;let ct=Be==="value"?Vr:Bp(Vr),Ds=!1;if(z.attrName=lt,z.attrValue=ct,z.keepAttr=!0,z.forceKeepAttr=void 0,Ct(ye.uponSanitizeAttribute,f,z),ct=z.attrValue,us&&(lt==="id"||lt==="name")&&Ko(ct,hs)!==0&&(Gr(Be,f,ie),ct=hs+ct,Ds=!0),Rs(Be,ct)){Gr(Be,f,ie);continue}if(!z.forceKeepAttr){if(!z.keepAttr){Gr(Be,f,ie);continue}if(!b0&&Ge(nl,ct)){Gr(Be,f,ie);continue}if(ot&&(ct=dn(ct)),!Is(te,lt,ct)){Gr(Be,f,ie);continue}ct=Zu(te,lt,Rt,ct),ct!==Vr&&Qu(f,Be,Rt,ct)&&Ds&&jo(e.removed)}}Ct(ye.afterSanitizeAttributes,f,null),jr(f,x)},k0=function(f){let x=null;const I=da(f);for(Ct(ye.beforeSanitizeShadowDOM,f,null);x=I.nextNode();)if(Ct(ye.uponSanitizeShadowNode,x,null),pa(x,f),fa(x,f),tr(x.content)&&k0(x.content),R(x)===_e.element){const z=C(x);tr(z)&&(ga(z),k0(z))}ot&&Ms(f),Ct(ye.afterSanitizeShadowDOM,f,null)},ga=function(f){const x=[{node:f,shadow:null}];for(;x.length>0;){const I=x.pop();if(I.shadow){k0(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;tr(Be)&&x.push({node:Be,shadow:null})}}if(Z){const ie=C(z);tr(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(na=!N,na&&(N="<!-->"),typeof N!="string"&&!w0(N)&&(N=Up(N),typeof N!="string"))throw Ft("dirty is not a string, aborting");if(!e.isSupported)return N;Jn?(xe=sn,we=on):oa(f),(ye.uponSanitizeElement.length>0||ye.uponSanitizeAttribute.length>0)&&(xe=gt(xe)),ye.uponSanitizeAttribute.length>0&&(we=gt(we)),e.removed=[];const te=ra&&typeof N!="string"&&w0(N);let ie=[];const Be=wr;if(te){Vu(N);const lt=U(N);if(typeof lt=="string"){const Vr=Ne(lt);if(!xe[Vr]||br[Vr])throw la(N),Ft("root node is forbidden and cannot be sanitized in-place")}if(mn(N))throw la(N),Ft("root node is clobbered and cannot be sanitized in-place");ie=ha(N),wr=Pa()}else if(w0(N))x=Es("<!---->"),I=x.ownerDocument.importNode(N,!0),I.nodeType===_e.element&&I.nodeName==="BODY"||I.nodeName==="HTML"?x=I:x.appendChild(I),ga(x);else{if(!Fr&&!ot&&!yr&&N.indexOf("<")===-1)return L&&cn?ue(N):N;if(x=Es(N),!x)return Fr?null:cn?F:""}x&&ea&&er(x.firstChild);const Rt=te?N:x;try{te&&ga(N);const lt=da(Rt);for(;z=lt.nextNode();)pa(z,Rt),fa(z,Rt),tr(z.content)&&k0(z.content);te&&Wu(N,ie)}catch(lt){throw te&&(la(N),As(N,ie)),lt}finally{wr=Be}if(te){if(As(N,ie))throw Ft("a node selected for removal could not be safely returned; refusing to sanitize in place");return ot&&ma(N),N}if(Fr){if(ot&&ma(x),ln)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&&Ge(t4,x.ownerDocument.doctype.name)&&(et="<!DOCTYPE "+x.ownerDocument.doctype.name+`>
361
+ `+et),ot&&(et=dn(et)),L&&cn?ue(et):et},e.setConfig=function(){let N=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};oa(N),Jn=!0,sn=xe,on=we},e.clearConfig=function(){Wr=null,Jn=!1,sn=null,on=null,L=K,F=""},e.isValidAttribute=function(N,f,x){Wr||oa({});const I=Ne(N),z=Ne(f);return typeof x=="string"&&(Rs(f,x)||!b0&&Ge(nl,x))?!1:Is(I,z,x)},e.addHook=function(N,f){typeof f=="function"&&ht(ye,N)&&A0(ye[N],f)},e.removeHook=function(N,f){if(ht(ye,N)){if(f!==void 0){const x=Op(ye[N],f);return x===-1?void 0:$p(ye[N],x,1)[0]}return jo(ye[N])}},e.removeHooks=function(N){ht(ye,N)&&(ye[N]=[])},e.removeAllHooks=function(){ye=al()},e}var Qi=eu();const Ji=/\.(?:png|jpe?g|gif|webp)$/i,tu=/\.(?:mp4|webm)$/i;function o4(t,e){return e.readOnly===!0&&t===Ll}function es(t){return Ji.test(t)?"image":tu.test(t)?"video":null}const l4=/^[A-Za-z0-9._-]+$/;function _r(t){try{return decodeURIComponent(t)}catch{return null}}function K0(t){return l4.test(t)&&t!=="."&&t!==".."}function c4(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 ru(t,e){if(t!==t.trim())return null;const r=/^workspace-asset:\/\/([^/?#]+)\/([^/?#]+)(\?[^#]*)?$/.exec(t);if(!r||!e||!K0(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 ts(t,e){const r=ru(t,e);return!r||!tu.test(r)?null:{kind:"workspace",url:t,mimeType:r.toLowerCase().endsWith(".webm")?"video/webm":"video/mp4"}}function v3(t,e){const r=ru(t,e);return r&&Ji.test(r)?t:null}function nu(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&&!o4(e,r))return null;o=g,c=s.slice(2)}else return null;if(!o||!K0(o)||c.length===0)return null;const h=[];for(const g of c){const v=_r(g);if(v===null||v.length===0||v==="."||v===".."||v.includes("/")||v.includes("\\"))return null;h.push(v)}if(/^[A-Za-z]:/.test(h[0]))return null;const m=h.map(g=>encodeURIComponent(g)).join("/");return{workspaceId:o,path:h.join("/"),encodedPath:m}}function u4(t,e,r={}){const n=nu(t,e,r);if(!n)return null;const a=es(n.path);return a?{url:`workspace-file://${n.workspaceId}/${n.encodedPath}`,kind:a}:null}function b3(t,e,r={}){const n=u4(t,e,r);return n?.kind==="image"?n.url:null}function il(t){if(!t.startsWith("workspace-file://"))return null;const e=t.slice(17).split(/[?#]/)[0],[r,...n]=e.split("/");if(!r||!K0(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])||!es(a[a.length-1])?null:`intent://local/file/${a.map(s=>encodeURIComponent(s)).join("/")}`}function yi(t){if(!t.startsWith("workspace-file://"))return null;const e=t.slice(17).split(/[?#]/)[0],[r,...n]=e.split("/");if(!r||!K0(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])||!Ji.test(a[a.length-1])?null:`intent://local/file/${a.map(s=>encodeURIComponent(s)).join("/")}`}const h4=/^[A-Za-z][A-Za-z0-9+.-]*:/;function d4(t,e){if(!t||t!==t.trim()||h4.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 Zr=t=>t.replace(/&/g,"&amp;").replace(/"/g,"&quot;"),m4=/^intent:\/\/[^/?#]+\/file\//,p4=/^intent:\/\/[^/?#]+\/([^/?#]+)\/file\//;function f4(t,e){if(m4.test(t))return e?"invalid-link":"workspace-unknown";const r=p4.exec(t);if(!r)return null;const n=_r(r[1]);return e&&n&&K0(n)&&n!==e?"other-workspace":"invalid-link"}const g4="v";let sl=0;function au(){return sl+=1,`${Date.now().toString(36)}-${sl.toString(36)}`}function y3(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(!yi(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",au()),`${r}?${a}`)}function v4(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]}?${g4}=${Zr(e)}"`):r}):t}function b4(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 y4(t,e){return t.includes("<img")?t.replace(/<img\b[^>]*>/gi,r=>{const n=/\ssrc="([^"]*)"/i.exec(r);if(!n)return r;const a=b4(n[1]),i=a===null?null:d4(a,e);if(!i)return r;const s=i.split("/").map(o=>encodeURIComponent(o)).join("/");return r.replace(n[0],` src="${Zr(`intent://local/file/${s}`)}"`)}):t}function w3(t){const e=t.getAttribute("data-media-unavailable");return e==="other-workspace"||e==="invalid-link"?e:"load-failed"}function w4(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=ts(i,e);if(s){const g=/\salt="([^"]*)"/i.exec(n)?.[1]??"";return`<video src="${Zr(s.url)}" controls preload="metadata" playsinline class="markdown-video" data-name="${g}"></video>`}if(!i.startsWith("intent://"))return n;const o=nu(i,e,r);if(!o){const g=f4(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=es(o.path);if(!c){const g=o.path.split(".").pop()?.toLowerCase()??"";return n.replace(/>$/,` data-media-unsupported="${Zr(g)}">`)}const h={url:`workspace-file://${o.workspaceId}/${o.encodedPath}`,kind:c};if(h.kind==="image")return n.replace(a[1],Zr(h.url));const m=/\salt="([^"]*)"/i.exec(n)?.[1]??"";return`<video src="${Zr(h.url)}" controls preload="metadata" playsinline class="markdown-video" data-name="${m}"></video>`})}const ol=new c0("html-sanitizer"),Pn=t=>/^[\s\u0000-\u001f]*workspace-file:/i.test(t);let cr,L0=!1,N0=!1,Rn=!1;const ll=/^-?(?:\d+(?:\.\d+)?|\.\d+)(?:em|px|%)$/,k4=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 x4(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+/);(k4.has(a)&&ll.test(i)||a==="margin"&&s.length<=4&&s.every(c=>c==="0"||ll.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 S4(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 iu(t){if(!Pn(t))return!1;const e=/^[\s\u0000-\u001f]*workspace-file:\/\/([^/?#]+)/i.exec(t);if(!e||!cr)return!1;try{const r=decodeURIComponent(e[1]);return Rn&&cr===Ll?/^[A-Za-z0-9._-]+$/.test(r)&&r!=="."&&r!=="..":r===cr}catch{return!1}}Qi.addHook("uponSanitizeElement",t=>{t instanceof Element&&t.nodeName==="VIDEO"&&!ts(t.getAttribute("src")??"",cr)&&(!Pn(t.getAttribute("src")??"")||L0&&!iu(t.getAttribute("src")??""))&&t.remove()});Qi.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(!N0||!(t instanceof Element)||!S4(t)){e.keepAttr=!1;return}e.attrValue=x4(e.attrValue),e.keepAttr=e.attrValue.length>0;return}if(t.nodeName==="IMG"&&e.attrName==="src"&&c4(e.attrValue)&&!ts(e.attrValue,cr)){e.keepAttr=!1;return}if(L0&&Pn(e.attrValue)&&!iu(e.attrValue)){e.keepAttr=!1;return}Pn(e.attrValue)&&!(e.attrName==="src"&&(t.nodeName==="IMG"||t.nodeName==="VIDEO"))&&(e.keepAttr=!1)});const su=["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"],cl={"*":["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"]},A4={ALLOWED_TAGS:su,ALLOWED_ATTR:Object.keys(cl).reduce((t,e)=>{const r=cl[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 T4(t,e={}){if(!t)return"";try{const r={...A4,...e},n=Qi.sanitize(t,r),a=typeof n=="string"?n:String(n);return a.length!==t.length&&ol.debug("HTML content was sanitized",{originalLength:t.length,sanitizedLength:a.length,modified:!0}),a}catch(r){return ol.error("Failed to sanitize HTML",r),""}}function O0(t,e,r={}){const n=cr,a=L0,i=N0,s=Rn;cr=e,L0=!0,N0=r.preserveKatexLayoutStyles??!1,Rn=r.readOnly??!1;try{return T4(t,{ALLOWED_TAGS:[...su,"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",...N0?["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{cr=n,L0=a,N0=i,Rn=s}}const Y0=me({id:D1(),type:Ye(["reference","cli","agent_action","patch","diagram"]),version:h0(1),label:V().optional(),description:V().optional(),createdAt:n0(),createdBy:Ye(["user","agent","system"]),createdByAgentId:V().optional(),meta:jt(V(),u0()).optional()}),E4=me({kind:Ye(["symbol","file_range"]).optional().default("file_range"),semanticId:V().optional(),filePath:V().optional(),languageId:V().optional(),range:me({startLine:Le().nonnegative(),startColumn:Le().nonnegative().optional(),endLine:Le().nonnegative(),endColumn:Le().nonnegative().optional()}).optional()}),M4=me({code:V(),filePath:V(),languageId:V().optional()}),C4=me({collapsedByDefault:lr().optional(),showFilePath:lr().optional(),showSymbolName:lr().optional()}),I4=Y0.extend({type:h0("reference"),target:E4,snapshot:M4.optional(),display:C4.optional()}),z4=me({status:Ye(["running","success","error","cancelled"]),exitCode:Le().optional(),startedAt:n0(),finishedAt:n0().optional()}),R4=me({stdout:V(),stderr:V()}),D4=me({collapsedOutputByDefault:lr().optional(),showCommandPrefix:V().optional()}),N4=Y0.extend({type:h0("cli"),command:V(),cwd:V().optional(),env:jt(V(),V()).optional(),timeoutMs:Le().positive().optional(),lastRun:z4.optional(),outputSnapshot:R4.optional(),display:D4.optional(),terminalId:V().optional()}),_4=me({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()}),L4=me({temperature:Le().min(0).max(2).optional(),maxTokens:Le().positive().optional()}).passthrough(),O4=me({status:Ye(["pending","running","success","error"]),startedAt:n0(),finishedAt:n0().optional(),errorMessage:V().optional()}),P4=me({title:V().optional(),description:V().optional(),createdPrimitives:He(V()).optional()}),$4=Y0.extend({type:h0("agent_action"),agentId:V(),goal:V(),inputs:He(_4),config:L4.optional(),lastRun:O4.optional(),resultSummary:P4.optional()}),B4=me({status:Ye(["success","conflict","error"]),appliedAt:n0(),errorMessage:V().optional()}),q4=me({filePath:V(),diff:V(),semanticRefs:He(V()).optional()}),F4=me({collapsedByDefault:lr().optional(),showFileNames:lr().optional()}),H4=Y0.extend({type:h0("patch"),patches:He(q4),lastApply:B4.optional(),display:F4.optional()}),U4=Ye(["architecture","sequence","state_machine","data_flow","network","flowchart","timeline","dependency_graph"]),rs=Ye(["highlighted","muted","danger","success","inactive","warning","active"]),wi=me({type:Ye(["file","symbol","spec","note","timeline_event","metric","log","test"]),target:V(),metadata:jt(V(),u0()).optional()}),W4=me({id:V(),label:V(),kind:V().optional(),semanticStyle:rs.optional(),position:me({x:Le(),y:Le()}).optional(),size:me({width:Le(),height:Le()}).optional(),binding:wi.optional(),bindings:He(wi).optional(),group:V().optional(),metadata:jt(V(),u0()).optional()}),G4=me({id:V(),from:V(),to:V(),label:V().optional(),kind:V().optional(),semanticStyle:rs.optional(),animated:lr().optional(),dashed:lr().optional(),flowDirection:Ye(["forward","backward","bidirectional"]).optional(),bindings:He(wi).optional(),metadata:jt(V(),u0()).optional()}),j4=me({id:V(),label:V(),nodeIds:He(V()),semanticStyle:rs.optional(),metadata:jt(V(),u0()).optional()}),V4=me({nodes:He(W4),edges:He(G4),groups:He(j4).optional()}),K4=me({type:Ye(["layered","force","circular","tree","manual"]),direction:Ye(["LR","RL","TB","BT"]).optional(),spacing:Le().optional(),edgeRouting:Ye(["orthogonal","polyline","curved"]).optional()}),Y4=jt(V(),me({class:V().optional(),style:jt(V(),V()).optional()})),X4=me({layout:K4,semanticStyles:Y4.optional(),zoom:Le().optional(),pan:me({x:Le(),y:Le()}).optional(),edgeRouting:Ye(["orthogonal","polyline","curved"]).optional()}),Z4=me({focus:V().optional(),zoom:Le().optional(),pan:me({x:Le(),y:Le()}).optional()}),Q4=me({title:V().optional(),text:V().optional()}),J4=me({type:V(),data:jt(V(),u0())}),ef=me({duration:Le().optional(),animate:He(Ye(["camera","visibleEdges","visibleNodes","semanticStyle"])).optional()}),tf=me({id:V(),label:V().optional(),visibleNodes:He(V()).optional(),visibleEdges:He(V()).optional(),visibleGroups:He(V()).optional(),highlightedNodes:He(V()).optional(),highlightedEdges:He(V()).optional(),camera:Z4.optional(),narrative:N1([Q4,V()]).optional(),overlays:He(J4).optional(),transition:ef.optional()}),rf=Y0.extend({type:h0("diagram"),grammar:U4,model:V4,baseView:X4,states:He(tf).optional(),currentStateId:V().optional()}),ou=_1("type",[I4,N4,$4,H4,rf]);function k3(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 x3(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 c0("NotesPrimitivesSerializer");function nf(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 af{constructor(){se(this,"logger",new c0("NotesPrimitivesSerializer"))}parseMarkdown(e,r={}){return lu(e,r)}serializeToMarkdown(e,r,n={}){return of(e,r,n)}tiptapNodeToPrimitive(e){return cf(e)}primitiveToTiptapNode(e){return uf(e)}generateId(){return uu()}createBasePrimitive(e,r="user"){return df(e,r)}}function lu(t,e={}){const{validateSchema:r=!0}=e,n=[],a=t.split(`
362
362
  `);let i=!1,s=-1,o=[],c="";for(let h=0;h<a.length;h++){const m=a[h];if(m.trim().startsWith("```ws-block")){i=!0,s=h,o=[];const g=m.trim().match(/^```ws-block:(\w+)/);c=g?g[1]:"";continue}if(m.trim().startsWith("```diagram")){Cr.info("[parseMarkdownToPrimitives] Found diagram block start",{line:h}),i=!0,s=h,o=[],c="diagram";continue}if(i&&m.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||!nf(v.id))&&(v.id=Ei()),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=ou.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:h,rawContent:a.slice(s,h+1).join(`
364
364
  `)})}catch(g){Cr.error("Failed to parse ws-block JSON",{error:g,content:o.join(`
@@ -382,7 +382,7 @@ ${i.join(`
382
382
 
383
383
  ${A}`;i=i.replace(h,W);continue}}i=i.replace(h,A)}return i}const ja="\0",Pf=/\u0000/g,pl=/^ {0,3}(`{3,}|~{3,})/,$f=/^@@@tasks?(?:[ \t]|$)/,Bf=/^@@@\s*$/,fl=/^[ \t]*(?:[-*+]|\d+[.)])\s/,gl=/^(?: {2,}|\t)/,qf=/^ {0,3}(?:#{1,6}(?:[ \t]|$)|>|(?:\*[ \t]*){3,}$|(?:-[ \t]*){3,}$|(?:_[ \t]*){3,}$|<[a-zA-Z!/?])/;function Ff(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 h=g=>{for(let v=0;v<g;v++)r.push("<p></p>","")},m=g=>{const v=i.length;v!==0&&(s?g===void 0||v>=2&&!gl.test(g)&&!(o&&fl.test(g))?(r.push(""),h(v-1)):r.push(...i):h(v),i=[])};for(const g of e){if(n){r.push(g);const D=pl.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),Bf.test(g)&&(a=!1),c=!1;continue}if(g.trim()===""){i.push(g);continue}const v=i.length>0;m(g),s=!0,r.push(g);const w=pl.exec(g),A=!w&&$f.test(g),M=w!==null||A||qf.test(g);fl.test(g)?o=!0:!gl.test(g)&&(M||v||!c)&&(o=!1),c=!M,w?n={char:w[1][0],length:w[1].length}:A&&(a=!0)}return m(void 0),r.join(`
385
- `)}async function A3(t,e={}){const{allowEmpty:r=!0,skipIfHTML:n=!0,allowSanitizedHtml:a=!1,preserveAnchors:i=!0,processPrimitives:s=!0,taskBlockRenderMode:o="placeholder",workspaceId:c,relativeMediaBase:h,renderRichFencesAsCode:m=!1,renderMath:g=!1,readOnly:v=!1,workspaceFileVersion:w}=e,A=S=>S.includes("workspace-file://")?v4(S,w??au()):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"))de.debug("Content looks like HTML but has ws-blocks, processing anyway");else return O0(t,c);const M=`${If(t)}:${t.length}|${r}|${n}|${i}|${s}|${o}|${c??""}|${h===void 0?"-":`base:${h}`}|${m}|${g}|${a}|${v}`,D=Rf(M);if(D!==null)return A(D);try{const S=t.length>Tf,C=S?performance.now():0;S&&de.info("[markdown-processor] Processing large content",{contentLength:t.length});const{body:W}=Sf(t),Y=o==="content"?cd(W):W,X=a?Y:_f(Y),T=S?performance.now():0;let R=X;if(s){R=Of(X);const ee=X.includes("```ws-block"),le=X.includes("```diagram"),ue=R.includes("data-primitive-type");(ee||le)&&de.debug("[markdown-processor] processWsBlocks result:",{hasWsBlocksInInput:ee,hasDiagramBlocksInInput:le,hasPrimitiveDivsInOutput:ue,inputPreview:X.substring(0,300),outputPreview:R.substring(0,300)})}R=Ff(R);const U=S?performance.now():0;let P;if(S)P=await Cf(R,{preserveAnchors:i,renderMath:g});else{const ee=i?Kc(R):R,ue=await hu(g).parse(ee);P=i?du(ue):ue}m&&(P=Lf(P));const $=S?performance.now():0;P=Hf(P),h!==void 0&&(P=y4(P,h)),P=w4(P,c,{readOnly:v});const L=S?performance.now():0,F=P.includes("data-primitive-type");S&&await Af(),P=O0(P,c,{preserveKatexLayoutStyles:g,readOnly:v});const K=S?performance.now():0,J=P.includes("data-primitive-type");return F&&!J&&de.warn("[markdown-processor] Primitive divs were stripped during sanitization"),S&&de.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(K-L),total:Math.round(K-C),contentLength:t.length,usedWorker:S}),dl(M,P),A(P)}catch(S){de.error("[markdown-processor] Failed to parse markdown:",S);const C=O0(`<p>${t}</p>`,c);return dl(M,C),C}}function du(t){return t.replace(Nf,(e,r,n)=>`<span data-anchor-id="${`${r}:${n}`}" data-anchor-type="${n}" data-comment-id="${r}" style="display:none"></span>`)}function Hf(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=i1(o,"markdown");if(c.length===0)return;const h=document.createDocumentFragment();let m=0;for(const g of c){g.index>m&&h.appendChild(document.createTextNode(o.slice(m,g.index)));const v=g.parsed?s1(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,h.appendChild(w)}else h.appendChild(document.createTextNode(g.text));m=g.index+g.text.length}m<o.length&&h.appendChild(document.createTextNode(o.slice(m))),s.parentNode?.replaceChild(h,s)},i=(s,o)=>{if(s.nodeType===Node.ELEMENT_NODE){const c=s,h=o||n.has(c.tagName)||c.hasAttribute("data-mention")||c.hasAttribute("data-math-source")||c.tagName==="A";for(const m of Array.from(c.childNodes))i(m,h)}else s.nodeType===Node.TEXT_NODE&&(o||a(s))};for(const s of Array.from(r.childNodes))i(s,!1);return e.innerHTML}function Uf(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 T3(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"),h=t.includes("agent_action_block"),m=t.includes("data-primitive");if(de.debug("[markdown-processor] processHTMLToMarkdown INPUT:",{htmlLength:t.length,hasPrimitiveType:a,hasDataType:i,hasReferenceBlock:s,hasCliBlock:o,hasPatchBlock:c,hasAgentActionBlock:h,hasDataPrimitive:m,htmlPreview:t.substring(0,500)}),!t||t.trim()==="<p></p>")return de.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"),P=T.tagName==="DIV"&&T.classList.contains("math-display");if(!R||!U&&!P)return;const $=U?/^\$((?:\\.|[^\\$\n])+?)\$$/.exec(R)??/^\\\(((?:\\.|[^\\\n])*?)\\\)$/.exec(R):/^\$\$[ \t]*([\s\S]*?)[ \t]*\$\$$/.exec(R)??/^\\\[[ \t]*([\s\S]*?)[ \t]*\\\]$/.exec(R);if($&&!($[1].length>Uc||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=Wc($[1],P),L.innerHTML=O0(F.outerHTML,n,{preserveKatexLayoutStyles:!0}),L.firstElementChild?.firstElementChild?.isEqualNode(T.firstElementChild)?R:void 0}catch{return}},v=r?Uf(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 P=U;P.data.startsWith("anchor:")&&(R+=`<!--${P.data}-->`)}else if(U.nodeType===Node.TEXT_NODE)R+=U.textContent||"";else if(U.nodeType===Node.ELEMENT_NODE){const P=U,$=g(P);if(P.tagName==="STRONG"||P.tagName==="B")R+=`**${A(P)}**`;else if(P.tagName==="EM"||P.tagName==="I")R+=`*${A(P)}*`;else if(P.tagName==="BR")R+=`
385
+ `)}async function A3(t,e={}){const{allowEmpty:r=!0,skipIfHTML:n=!0,allowSanitizedHtml:a=!1,preserveAnchors:i=!0,processPrimitives:s=!0,taskBlockRenderMode:o="placeholder",workspaceId:c,relativeMediaBase:h,renderRichFencesAsCode:m=!1,renderMath:g=!1,readOnly:v=!1,workspaceFileVersion:w}=e,A=S=>S.includes("workspace-file://")?v4(S,w??au()):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"))de.debug("Content looks like HTML but has ws-blocks, processing anyway");else return O0(t,c);const M=`${If(t)}:${t.length}|${r}|${n}|${i}|${s}|${o}|${c??""}|${h===void 0?"-":`base:${h}`}|${m}|${g}|${a}|${v}`,D=Rf(M);if(D!==null)return A(D);try{const S=t.length>Tf,C=S?performance.now():0;S&&de.info("[markdown-processor] Processing large content",{contentLength:t.length});const{body:W}=Sf(t),X=o==="content"?cd(W):W,Y=a?X:_f(X),T=S?performance.now():0;let R=Y;if(s){R=Of(Y);const ee=Y.includes("```ws-block"),le=Y.includes("```diagram"),ue=R.includes("data-primitive-type");(ee||le)&&de.debug("[markdown-processor] processWsBlocks result:",{hasWsBlocksInInput:ee,hasDiagramBlocksInInput:le,hasPrimitiveDivsInOutput:ue,inputPreview:Y.substring(0,300),outputPreview:R.substring(0,300)})}R=Ff(R);const U=S?performance.now():0;let P;if(S)P=await Cf(R,{preserveAnchors:i,renderMath:g});else{const ee=i?Kc(R):R,ue=await hu(g).parse(ee);P=i?du(ue):ue}m&&(P=Lf(P));const $=S?performance.now():0;P=Hf(P),h!==void 0&&(P=y4(P,h)),P=w4(P,c,{readOnly:v});const L=S?performance.now():0,F=P.includes("data-primitive-type");S&&await Af(),P=O0(P,c,{preserveKatexLayoutStyles:g,readOnly:v});const K=S?performance.now():0,J=P.includes("data-primitive-type");return F&&!J&&de.warn("[markdown-processor] Primitive divs were stripped during sanitization"),S&&de.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(K-L),total:Math.round(K-C),contentLength:t.length,usedWorker:S}),dl(M,P),A(P)}catch(S){de.error("[markdown-processor] Failed to parse markdown:",S);const C=O0(`<p>${t}</p>`,c);return dl(M,C),C}}function du(t){return t.replace(Nf,(e,r,n)=>`<span data-anchor-id="${`${r}:${n}`}" data-anchor-type="${n}" data-comment-id="${r}" style="display:none"></span>`)}function Hf(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=i1(o,"markdown");if(c.length===0)return;const h=document.createDocumentFragment();let m=0;for(const g of c){g.index>m&&h.appendChild(document.createTextNode(o.slice(m,g.index)));const v=g.parsed?s1(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,h.appendChild(w)}else h.appendChild(document.createTextNode(g.text));m=g.index+g.text.length}m<o.length&&h.appendChild(document.createTextNode(o.slice(m))),s.parentNode?.replaceChild(h,s)},i=(s,o)=>{if(s.nodeType===Node.ELEMENT_NODE){const c=s,h=o||n.has(c.tagName)||c.hasAttribute("data-mention")||c.hasAttribute("data-math-source")||c.tagName==="A";for(const m of Array.from(c.childNodes))i(m,h)}else s.nodeType===Node.TEXT_NODE&&(o||a(s))};for(const s of Array.from(r.childNodes))i(s,!1);return e.innerHTML}function Uf(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 T3(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"),h=t.includes("agent_action_block"),m=t.includes("data-primitive");if(de.debug("[markdown-processor] processHTMLToMarkdown INPUT:",{htmlLength:t.length,hasPrimitiveType:a,hasDataType:i,hasReferenceBlock:s,hasCliBlock:o,hasPatchBlock:c,hasAgentActionBlock:h,hasDataPrimitive:m,htmlPreview:t.substring(0,500)}),!t||t.trim()==="<p></p>")return de.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"),P=T.tagName==="DIV"&&T.classList.contains("math-display");if(!R||!U&&!P)return;const $=U?/^\$((?:\\.|[^\\$\n])+?)\$$/.exec(R)??/^\\\(((?:\\.|[^\\\n])*?)\\\)$/.exec(R):/^\$\$[ \t]*([\s\S]*?)[ \t]*\$\$$/.exec(R)??/^\\\[[ \t]*([\s\S]*?)[ \t]*\\\]$/.exec(R);if($&&!($[1].length>Uc||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=Wc($[1],P),L.innerHTML=O0(F.outerHTML,n,{preserveKatexLayoutStyles:!0}),L.firstElementChild?.firstElementChild?.isEqualNode(T.firstElementChild)?R:void 0}catch{return}},v=r?Uf(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 P=U;P.data.startsWith("anchor:")&&(R+=`<!--${P.data}-->`)}else if(U.nodeType===Node.TEXT_NODE)R+=U.textContent||"";else if(U.nodeType===Node.ELEMENT_NODE){const P=U,$=g(P);if(P.tagName==="STRONG"||P.tagName==="B")R+=`**${A(P)}**`;else if(P.tagName==="EM"||P.tagName==="I")R+=`*${A(P)}*`;else if(P.tagName==="BR")R+=`
386
386
  `;else if(P.tagName==="CODE")R+=`\`${P.textContent||""}\``;else if($)R+=$;else if(P.tagName==="SPAN"){const L=ch(P);if(L){const F=L.label||P.textContent||"";try{R+=o1({type:L.type,id:L.id||F,label:F,meta:L.meta})}catch{R+=F?`@${F}`:""}}else R+=A(P)}else if(P.tagName==="A"){const L=P.getAttribute("href")||"",F=A(P);L?R+=`[${F}](${L})`:R+=F}else if(P.tagName==="IMG"){const L=P.getAttribute("src")||"",F=yi(L)??L,K=P.getAttribute("alt")||"",J=P.getAttribute("title");J?R+=`![${K}](${F} "${J}")`:R+=`![${K}](${F})`}else if(P.tagName==="VIDEO"){const L=P.getAttribute("src")||"",F=il(L)??L,K=P.getAttribute("data-name")||"";F&&(R+=`![${K}](${F})`)}else P.tagName==="DIV"&&(P.hasAttribute("data-type")||P.hasAttribute("data-primitive-type"))?de.warn("[markdown-processor] Found primitive block DIV inside inline content, skipping",{dataType:P.getAttribute("data-type"),primitiveType:P.getAttribute("data-primitive-type")}):R+=P.textContent||""}return R},M=T=>{let R="";const U=$=>{let L="";for(const F of Array.from($))if(F.nodeType===Node.COMMENT_NODE){const K=F;K.data.startsWith("anchor:")&&(L+=`<!--${K.data}-->`)}else if(F.nodeType===Node.TEXT_NODE)L+=F.textContent||"";else if(F.nodeType===Node.ELEMENT_NODE){const K=F;(K.tagName==="P"||K.tagName!=="UL"&&K.tagName!=="OL")&&(L+=A(K))}return L},P=Array.from(T.children).filter($=>$.tagName==="DIV");if(de.debug("[markdown-processor] getListItemTextContent:",{liOuterHTML:T.outerHTML.substring(0,500),divsCount:P.length,divContents:P.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)}))}))}),P.length>0){const $=P[0];return R=U($.childNodes),de.debug("[markdown-processor] getListItemTextContent result from div:",{text:R.substring(0,100)}),R.trim()}return R=U(T.childNodes),de.debug("[markdown-processor] getListItemTextContent result from fallback:",{text:R.substring(0,100)}),R.trim()},D=(T,R=0)=>{let U="";const P=T.tagName==="OL",$=T.classList.contains("task-list")||T.getAttribute("data-type")==="taskList";let L="";R>0&&($?R===1?L=" ":L=` ${" ".repeat(R-1)}`:P?L=" ".repeat(R):L=" ".repeat(R));const F=T.children?Array.from(T.children).filter(K=>K.tagName==="LI"):[];return de.debug("[markdown-processor] Processing list:",{tagName:T.tagName,isTaskList:$,indentLevel:R,directChildrenCount:F.length}),F.forEach((K,J)=>{if($&&K.hasAttribute("data-type")&&K.getAttribute("data-type")==="taskItem"){const ee=K.getAttribute("data-checked"),le=K.getAttribute("data-status"),ue=K.querySelector('input[type="checkbox"]');let De="- [ ] ";le==="in-progress"?De="- [/] ":(ee==="true"||ee===null&&ue?.checked)&&(De="- [x] ");const ge=M(K),Ae=K.getAttribute("data-delegated-agent-id"),st=Ae?` <!--agent:${Ae}-->`:"";de.debug("[markdown-processor] Processing task item:",{index:J,indentLevel:R,dataChecked:ee,dataStatus:le,taskPrefix:De,taskText:ge,delegatedAgentId:Ae}),U+=`${L+De+ge}${st}
387
387
  `;const wt=[];wt.push(...Array.from(K.children).filter(Qe=>Qe.tagName==="UL"||Qe.tagName==="OL"));const Ze=Array.from(K.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(K);de.debug("[markdown-processor] Processing regular list item:",{index:J,indentLevel:R,prefix:ee,text:le}),U+=`${L+ee+le}
388
388
  `;const ue=[];ue.push(...Array.from(K.children).filter(ge=>ge.tagName==="UL"||ge.tagName==="OL"));const De=Array.from(K.children).filter(ge=>ge.tagName==="DIV");for(const ge of De)ue.push(...Array.from(ge.children).filter(Ae=>Ae.tagName==="UL"||Ae.tagName==="OL"));for(const ge of ue)U+=D(ge,R+1)}}),U},S=T=>{const R=g(T);if(R)return`${R}${T.tagName==="DIV"?`
@@ -459,12 +459,12 @@ ${JSON.stringify(J,null,2)}
459
459
 
460
460
  `):P};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 Y=0,X=null;for(const T of Array.from(w.childNodes)){const R=W(T,!0);if(R===ja?Y++:R.trim()!==""&&(Y=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")&&de.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 X=0,Y=null;for(const T of Array.from(w.childNodes)){const R=W(T,!0);if(R===ja?X++:R.trim()!==""&&(X=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")&&de.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()&&de.warn("[markdown-processor] Found top-level text node (treating as paragraph):",{textPreview:U.substring(0,100),textLength:U.length})}C+=R}if(Y===1&&X!==null&&X!=="P"){const T=C.lastIndexOf(ja);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()&&de.warn("[markdown-processor] Found top-level text node (treating as paragraph):",{textPreview:U.substring(0,100),textLength:U.length})}C+=R}if(X===1&&Y!==null&&Y!=="P"){const T=C.lastIndexOf(ja);C=C.slice(0,T)+C.slice(T+1)}return C=C.replace(/\n{3,}/g,`
465
465
 
466
466
  `).trim().replace(Pf,`
467
- `),de.debug("[markdown-processor] processHTMLToMarkdown OUTPUT:",{markdownLength:C.length,preservedAnchors:r}),C}typeof window<"u"&&(window.__clearMarkdownCache=Df);const vl={major:15,minor:3},mu="workspace-create:initializeGit",Wf="~/Documents",bl="~/Developer";function Gf(t){return Pl(t,vl.major,vl.minor)}function E3(t){return t.some(e=>!l1(e))}function M3(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 C3(t,e){switch(t){case"git-repo":return!e;case"new-repo":return!0;case"clone":return!1;default:return null}}function I3(t){try{const e=t?.getItem(mu);if(e==="true")return!0;if(e==="false")return!1}catch{}return null}function z3(t,e){try{t?.setItem(mu,String(e))}catch{}}function R3(t,e){return t&&t!==bl?t:e?Wf:bl}function jf(t,e){const r=n=>n.replace(/[\\/]+$/,"");return r(t)===r(e)}function D3(t,e){return e?t.filter(r=>[r.repositoryPath,r.worktreePath,r.path].some(n=>typeof n=="string"&&n.length>0&&jf(n,e))):[]}function N3(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 _3(t,e){return!t||t.isGitRepo||t.isSubdirectoryOfGitRepo?null:t.exists?t.isDirectory?"existing":null:e===!1?"new":null}function L3(t){return t.labsEnabled&&Gf(t.protocolVersion)&&t.githubSettled&&t.gitlabSettled&&!t.githubFailed&&!t.gitlabFailed&&!t.githubConnected&&!t.gitlabConnected}function O3(t,e){return!!t&&!t.plainFolder&&e.checked&&!e.available}const $t=E.createSelector(t=>Dl.select(t)?Gt.select(t):null),Vf=E.createSelector(t=>{const e=o0.select(t)?.principal;return e?JSON.stringify([t.connections.windowBackendId,e.id]):null}),P3=E.createSelector(t=>ve(t.workspace.workspaces).map(e=>String(e.id))),$3=E.createSelector((t,e,r=Re)=>{const n=$t.select(t),a=Se(t.workspace.workspaces,l0(e)),i=Ai(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}),Zn=E.createSelector(t=>{const e=t.workspaceDiscussion.owner;if(!e||!L1.select(t)||t.principal.status==="revoked"||t.principal.error==="incompatible-response"||t.connections.authRejected?.id===t.connections.windowBackendId)return!1;const r=Vf.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,l0(e))||!Zn.select(t))return gn;const a=Ai(t.workspaceDiscussion,e,r)??gn;return r!==Re&&r!==Vt&&(!a.authorized||!a.initialized&&t.workspaceDiscussion.conversationsSupported!==!0)?{...a,draft:"",agentMentions:[],principalMentions:[],messages:gn.messages,pending:gn.pending}:a}),Kf=E.createSelector((t,e,r=Re)=>_t.select(t,e,r).authorized?ve(_t.select(t,e,r).messages):[]),B3=E.createSelector((t,e,r=Re)=>_t.select(t,e,r).authorized?ve(_t.select(t,e,r).pending):[]),Xf=E.createSelector((t,e,r=Re)=>{const n=Se(t.workspace.workspaces,l0(e)),a=_t.select(t,e,r);return!!$t.select(t)&&!!n&&!t.workspaceDiscussion.deletedKeys.includes(JSON.stringify([e,r]))&&(r===Re||(r===Vt?t.workspaceDiscussion.managementSupported===!0:(t.workspaceDiscussion.conversationsSupported===!0||t.workspaceDiscussion.managementSupported===!0)&&a.authorized))&&!a.unsupported&&a.error!=="forbidden"}),q3=E.createSelector(t=>t.workspaceDiscussion.requestedIds),F3=E.createSelector(t=>t.workspaceDiscussion.requestedIds.filter(e=>{const[r,n]=JSON.parse(e);return!Ai(t.workspaceDiscussion,r,n)})),pu=E.createSelector((t,e)=>gu.select(t)===!0&&!!$t.select(t)&&!!Nl.select(t,e)),Yf=E.createSelector((t,e)=>pu.select(t,e)&&!fu.select(t)),Y0=E.createSelector((t,e)=>Zn.select(t)&&(t.workspaceDiscussion.conversationsSupported===!0||t.workspaceDiscussion.managementSupported===!0)?t.workspaceDiscussion.directories[e]??_s:_s),H3=E.createSelector((t,e)=>ve(Y0.select(t,e).conversations)),U3=E.createSelector((t,e)=>{if(Zn.select(t)&&t.workspaceDiscussion.deletedKeys.includes(JSON.stringify([e,Re])))return!1;if(t.workspaceDiscussion.managementSupported!==!0)return!0;const r=Y0.select(t,e);return!!Se(r.conversations,Re)||r.status!=="ready"||r.hasMore}),W3=E.createSelector((t,e)=>{const r=Zn.select(t)?t.workspaceDiscussion.recipients[e]??Ls:Ls,n=_t.select(t,e,Vt).recipientPrincipalIds;return{status:r.status,query:r.query,members:ve(r.members),selectedMembers:ve(r.knownMembers).filter(a=>n.includes(a.principalId)),hasMore:r.hasMore,error:r.error}});E.createSelector((t,e)=>_t.select(t,e,Vt).createdConversationId);const G3=E.createSelector(t=>t.workspaceDiscussion.conversationsSupported),j3=E.createSelector(t=>t.workspaceDiscussion.directoryRequestedIds),V3=E.createSelector((t,e)=>t.workspaceDiscussion.recipients[e]),Zf=E.createSelector(t=>{const e=o0.select(t)?.principal;return e?{principalId:e.id,login:e.login??null,displayName:e.displayName??null,avatarUrl:e.avatarUrl??null}:null}),K3=E.createSelector((t,e,r=Re)=>{const n=_t.select(t,e,r),a=t.workspaceDiscussion.owner,i=Zf.select(t)?.principalId??(a?JSON.parse(a)[1]:null),s=n.readSequence??0,o=Kf.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}}),fu=E.createSelector(t=>t.workspaceDiscussion.context===$t.select(t)&&t.workspaceDiscussion.sharingEnabled===!1),Z0=E.createSelector((t,e,r=Re)=>(r!==Vt||Yf.select(t,e))&&Xf.select(t,e,r)&&!fu.select(t)&&!r2.select(t,e,r)),X3=E.createSelector((t,e)=>c1.select(t)&&u1.select(t,e)),Y3=E.createSelector(t=>t.workspaceDiscussion.messageActionsSupported),Z3=E.createSelector((t,e,r=Re)=>r!==Vt&&t.workspaceDiscussion.messageActionsSupported===!0&&Z0.select(t,e,r)),Q3=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}),Qf=E.createSelector(t=>t.workspaceDiscussion.context===$t.select(t)?t.workspaceDiscussion.agentMessagingSupported:null),Jf=E.createSelector(t=>t.workspaceDiscussion.context===$t.select(t)?t.workspaceDiscussion.agentActivitySupported:null),J3=E.createSelector(t=>t.workspaceDiscussion.context===$t.select(t)?t.workspaceDiscussion.principalMentionsSupported:null),e6=E.createSelector((t,e,r=Re)=>r!==Vt&&n2.select(t,e,r)&&Jf.select(t)===!0&&Z0.select(t,e,r)),t6=E.createSelector((t,e,r=Re)=>ve(_t.select(t,e,r).agentControls).map(n=>n.key)),r6=E.createSelector(t=>t.workspaceDiscussion.context===$t.select(t)?t.workspaceDiscussion.reactionsSupported:null),gu=E.createSelector(t=>t.workspaceDiscussion.context===$t.select(t)?t.workspaceDiscussion.managementSupported:null),e2=E.createSelector((t,e)=>$t.select(t)===t.workspaceDiscussion.context?t.workspaceDiscussion.management[e]??Os:Os),t2=E.createSelector((t,e,r=Re)=>{const n=Nl.select(t,e);return pu.select(t,e)&&(n?.myRole==="owner"||n?.myRole==="manager")&&!t.workspaceDiscussion.deletedKeys.includes(JSON.stringify([e,r]))&&Se(Y0.select(t,e).conversations,r)?.kind==="workspace"}),n6=E.createSelector((t,e,r=Re)=>t2.select(t,e,r)&&h1.select(t,e)),a6=E.createSelector((t,e,r)=>{const n=e2.select(t,e);return n.pending!==null&&(r===void 0||n.conversationId===r)}),r2=E.createSelector((t,e,r=Re)=>{const n=Se(Y0.select(t,e).conversations,r);return!!n&&n.kind!=="workspace"}),n2=E.createSelector((t,e,r=Re)=>Qf.select(t)===!0&&Z0.select(t,e,r)&&(r===Re||gu.select(t)===!0&&(r===Vt||Se(Y0.select(t,e).conversations,r)?.kind==="workspace"))),i6=E.createSelector(t=>t.presence.profileRevision),s6=E.createSelector(t=>t.presence.windowVisible),o6=E.createSelector(t=>t.presence.captureDrawingActive),a2=E.createSelector(t=>Dl.select(t)?Gt.select(t):null),vu=t=>{const e=a2.select(t);return e!==null&&t.presence.context===e},l6=E.createSelector(t=>O1.select(t).filter(e=>!!Se(t.workspace.workspaces,l0(e)))),t0=[],r0=[],yl=[],i2=(t,e)=>{const r=t.rosters[e];return r?ve(r):t0},Pr=(t,e)=>{const r=Se(t.workspace.workspaces,l0(e));return vu(t)&&r&&(r.memberCount??1)>1?r:void 0},c6=E.createSelector((t,e)=>{const r=t.presence.ownPrincipalId;if(r===null||!Pr(t,e))return yl;const n=t.presence.members[e];return n?ve(n).filter(a=>a.principalId!==r&&!!a.login?.trim()):yl}),ns=(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}),s2=t=>t.some(e=>e.online&&!e.self),$n=t=>t.owner?0:t.online?1:2,bu=E.createSelector((t,e)=>{const r=t.presence.ownPrincipalId;if(r===null||!Pr(t,e))return r0;const n=t.presence.members[e];if(!n)return r0;const a=t.presence.rosters[e],i=ve(n).filter(s=>s.principalId!==r).map(s=>{const o=a?Se(a,s.principalId):void 0,c=o?{...s,...o}:s;return ns(c,{owner:c.hostRole?c.hostRole==="owner":s.role==="owner",online:o!==void 0,viewing:o?.focus.some(h=>h.workspaceId===e)??!1,self:!1})}).sort((s,o)=>$n(s)-$n(o));return i.length>0?i:r0}),u6=E.createSelector((t,e)=>{const r=o0.select(t)?.capabilities.hostMembership;return bu.select(t,e).filter(n=>r&&!n.hostRole?!1:!n.hostRole||n.hostRole==="guest"||n.online)}),o2=E.createSelector((t,e)=>{if(!Pr(t,e))return r0;const r=t.presence.members[e],n=t.presence.rosters[e],a=new Map;for(const s of r?ve(r):[])a.set(s.principalId,s);for(const s of n?ve(n):[])a.set(s.principalId,{...a.get(s.principalId),...s});const i=o0.select(t)?.principal;return i&&i.id===t.presence.ownPrincipalId&&!a.has(i.id)&&a.set(i.id,{...i,principalId:i.id}),[...a.values()]}),h6=E.createSelector((t,e)=>{const r=bu.select(t,e),n=t.presence.ownPrincipalId,a=o2.select(t,e).find(s=>s.principalId===n);if(!a)return r;const i=Pr(t,e);return[ns(a,{owner:a.hostRole?a.hostRole==="owner":i?.ownerPrincipalId===n,online:!0,viewing:!0,self:!0}),...r]}),d6=E.createSelector((t,e,r)=>{const n=t.presence.ownPrincipalId,a=Pr(t,e);if(n===null||!a)return r0;const i=i2(t.presence,e).filter(s=>s.principalId!==n&&s.focus.some(o=>o.workspaceId===e&&o.agentId===r)).map(s=>ns(s,{owner:s.principalId===a.ownerPrincipalId,online:!0,viewing:!0,self:!1})).sort((s,o)=>$n(s)-$n(o));return s2(i)?i:r0}),m6=E.createSelector((t,e,r)=>{const n=t.presence.liveTyping[e],a=t.presence.rosters[e];if(!n||!a)return t0;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?t0:ve(a).filter(s=>i.has(s.principalId))}),l2=E.createSelector(t=>{const e=t.presence.discussionComposerWorkspaceId;return e&&vu(t)&&Pr(t,e)&&t.presence.windowVisible&&t.tabState.currentTabId===e&&t.presence.discussionComposerConversationId!==Vt&&Z0.select(t,e,t.presence.discussionComposerConversationId)?e:null}),c2=E.createSelector(t=>{const e=l2.select(t);return e?Ol(e,t.presence.discussionComposerConversationId):null}),p6=E.createSelector((t,e,r=Re)=>{if(r!==Re&&!Z0.select(t,e,r)||!Pr(t,e)||t.presence.ownPrincipalId===null)return t0;const n=t.presence.liveDiscussionTyping[e],a=t.presence.rosters[e];if(!n||!a)return t0;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?ve(a).filter(s=>i.has(s.principalId)):t0}),f6=E.createSelector(t=>t.presence.liveDiscussionTyping),u2=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&&Ol(a.workspaceId,a.conversationId)===c2.select(t)?{discussionTyping:a}:{}}}),g6=E.createSelector(t=>JSON.stringify(u2.select(t))),v6=E.createSelector(t=>t.presence.liveTyping),b6=E.createSelector(t=>t.presence.ownPrincipalId),y6=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,l0(r))?.memberCount??1;n>1&&e.push(`${r}:${n}`)}return e.sort()});let ur=null;function w6(t){const e={};return ur={token:e,onCancel:t},e}function k6(t){return ur?.token===t}function x6(t){ur?.token===t&&(ur=null)}function S6(){return ur!==null}function A6(){if(ur===null)return!1;const{onCancel:t}=ur;return ur=null,t(),!0}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"},T6={async isAuthenticated(t){try{return await je(ft.IS_AUTHENTICATED,...t===void 0?[]:[{workspaceId:t}])}catch{return!1}},async getUser(t){try{return await je(ft.GET_USER,...t===void 0?[]:[{workspaceId:t}])}catch{return null}},async startAuth(t){return t?await je(ft.START_AUTH,t):await je(ft.START_AUTH)},async checkAuthComplete(){return await je(ft.POLL_FOR_TOKEN)},async cancelAuth(t){return t?je(ft.CANCEL_AUTH,t):je(ft.CANCEL_AUTH)},async logout(){return je(ft.LOGOUT)},async getAuthState(t){try{return await je(ft.GET_AUTH_STATE,...t===void 0?[]:[{workspaceId:t}])}catch{return{isAuthenticated:!1,requiresDaemonAuth:!0,user:null}}},async getStatus(t){try{return await je(ft.GET_STATUS,...t===void 0?[]:[{workspaceId:t}])}catch{return{isConfigured:!1,oauthUrl:"",configuredButNeedsUpdate:!1,updatedScopes:""}}},async listRepos(t,e){const r=await je(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 je(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 je(ft.SEARCH_USERS,{query:t,...e===void 0?{}:{workspaceId:e}})}catch(r){return{success:!1,error:r instanceof Error?r.message:String(r)}}}};class h2{constructor(){se(this,"metrics",new Map);se(this,"completedMetrics",[]);se(this,"maxCompletedMetrics",100)}start(e,r){ya.get("showPerformanceMetrics")&&this.metrics.set(e,{name:e,startTime:performance.now(),metadata:r})}end(e){if(!ya.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(),ya.get("logStateChanges")&&wl.info(`[Performance] ${e}: ${r.duration.toFixed(2)}ms`,r.metadata),r.duration):(wl.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 E6=new h2,wl=new c0("Performance"),kl=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 d2{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(h=>h.charCodeAt(0)).reduce((h,m)=>h+m,1),c=Math.floor(Number(o));return kl(c)}return kl(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 xl={separator:"_",dictionaries:[]},m2=t=>{const e=[...t&&t.dictionaries||xl.dictionaries],r={...xl,...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 d2(r).generate()};var p2=["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"],f2=["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 yu=/^[a-z]{2,15}-[a-z]{2,15}(-[0-9]+)?$/,wu=/^[a-z]{2,15}$/,ku=p2.filter(t=>wu.test(t)),xu=f2.filter(t=>wu.test(t));function M6(){return m2({dictionaries:[ku,xu],separator:"-",style:"lowerCase",length:2})}function C6(t,e){return`${t}-${e}`}function g2(t){const e=t.match(/^([a-z]{2,15}-[a-z]{2,15})(?:-[0-9]+)?$/);return e?e[1]:t}const Sl=new Set(ku),Al=new Set(xu),v2=new Set;function I6(t){return!t||typeof t!="string"?!1:yu.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 z6(t){if(!t||typeof t!="string")return!1;if(v2.has(t))return!0;if(yu.test(t)){const n=g2(t).split("-");if(n.length===2){const[a,i]=n;if(Sl.has(a)&&Al.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(Sl.has(n)&&Al.has(a))return!0}}return!1}const b2=P1("ContextAPI");function R6(t){return t.some(e=>e.placementStatus==="placing"||e.placementStatus==="failed")}async function Tl(t,e,r){return b2.debug("Placing attachment",{workspaceId:t,fileName:e,viaSourcePath:r.sourcePath!==void 0,keyed:r.idempotencyKey!==void 0}),await d0("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 y2(t,e,r,n,a={}){return await d0("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 Su=300*1e3;async function w2(t,e,r,n){return await d0("file.attachmentUpload.chunk",{uploadId:t,seq:e,data:r,...n!==void 0?{workspaceId:n}:{}},{timeoutMs:Su})}async function k2(t,e){return await d0("file.attachmentUpload.commit",{uploadId:t,...e!==void 0?{workspaceId:e}:{}},{timeoutMs:Su})}async function x2(t,e){return await d0("file.attachmentUpload.abort",{uploadId:t,...e!==void 0?{workspaceId:e}:{}})}async function S2(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 d0("file.getAttachmentInfo",e)}async function D6(t,e,r){return await je("file:download-attachment",{workspaceId:t,path:e,fileName:r})}const Au=25*1024*1024,El=1024*1024*1024,A2=16*1024*1024,Tu="attachment upload cancelled";function T2(t,e){return e?.aborted===!0||t instanceof Error&&t.message===Tu}function Dn(t){if(t?.aborted)throw new Error(Tu)}function E2(){return!d1.select(E.state)}function M2(t){return Pl(t,9,13)}function Eu(){return M2(E.state?.daemonHealth?.stats?.protocolVersion)}function N6(t){if(Eu())return t??crypto.randomUUID()}function Mu(t){if(!t||typeof t!="object")return!1;const{rpcCode:e,code:r}=t;return e===-32602||r==="INVALID_PARAMS"}function C2(t){return Mu(t)&&/already committed/i.test(String(t.message??""))}function I2(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 xi(t,e,r=S2){try{return I2(await r({workspaceId:t,idempotencyKey:e}))}catch{return}}function Cu(t,e,r){return e!==void 0&&!Mu(t)&&!T2(t,r)}async function Ml(t,e,r,n,a=()=>!0){try{return dt(a),await n()}catch(i){if(dt(a),Cu(i,e,r)){const s=await xi(t,e);if(s)return s}throw i}}const Iu="file:read returned an unexpected response",as="file:read failed";function is(t){if(!t||typeof t!="object"||!("success"in t))throw new Error(Iu);if(!t.success||t.data===void 0)throw new Error(t.error?.message??as);return t.data}async function z2(t){const e=await je("file:read",{path:t,encoding:"base64",maxSize:Au,truncateIfLarge:!1}),r=is(e);if(r.content===void 0)throw new Error(e.error?.message??as);return r.content}async function zu(t,e,r){const n=await je("file:read-chunk",{path:t,offset:e,length:r});return is(n)}async function R2(t){const{size:e}=await zu(t,0,1);return e}async function D2(t){const e=await je("file:hash",{path:t});return is(e).sha256}const N2=new Set(["Internal error","Backend request failed",Iu,as]);async function _6(t,e,r,n,a,i=()=>!0){dt(i);const s=Eu()?r.idempotencyKey:void 0,o=s!==void 0?{idempotencyKey:s}:{};if(!E2())return Ml(t,s,a,()=>Tl(t,e,{sourcePath:r.sourcePath,mimeType:r.mimeType,...o}),i);const c=await R2(r.sourcePath);if(dt(i),c>El)throw new Error(ne.chat_attachmentPlacement_tooLargeRemote_error({name:e,maxGb:Math.round(El/(1024*1024*1024))}));if(c>Au)return _2(t,e,{...r,idempotencyKey:s},c,n,a,i);const h=await z2(r.sourcePath);return dt(i),Dn(a),Ml(t,s,a,()=>Tl(t,e,{data:h,mimeType:r.mimeType,...o}),i)}async function _2(t,e,r,n,a,i,s=()=>!0){dt(s);const o=await D2(r.sourcePath);dt(s),Dn(i);let c,h;try{({uploadId:c,maxChunkBytes:h}=await y2(t,e,n,o,{mimeType:r.mimeType,...r.idempotencyKey!==void 0?{idempotencyKey:r.idempotencyKey}:{}}))}catch(w){if(dt(s),r.idempotencyKey!==void 0&&C2(w)){const A=await xi(t,r.idempotencyKey);if(A)return A}throw w}const m=Math.min(A2,h),g=Math.ceil(n/m);let v=!1;try{for(let w=0;w<g;w++){dt(s),Dn(i);const{content:A}=await zu(r.sourcePath,w*m,m);dt(s),await w2(c,w,A,t),dt(s),a?.((w+1)/g)}return Dn(i),dt(s),v=!0,await k2(c,t)}catch(w){if(dt(s),v&&Cu(w,r.idempotencyKey,i)){const A=await xi(t,r.idempotencyKey);if(A)return A}throw dt(s),await x2(c,t).catch(()=>{}),w}}function L6(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&&!N2.has(r.trim()))return r.trim()}function dt(t){if(!t())throw new DOMException("Obsolete attachment submission","AbortError")}function Ru(t){const e=t?.split(";")[0].trim().toLowerCase()??"";return e==="image/jpg"?"image/jpeg":e}function O6(t){return["image/png","image/jpeg","image/gif","image/webp"].includes(Ru(t))}const L2={"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 P6(t,e){const r=L2[Ru(t)]??"bin";return`${e}.${r}`}let O2=0;const ss=new WeakSet;function $6(t){const e=E.dispatch,r=E.state.connections.windowBackendId,n=Va.select(E.state,t.id);if(!n||E.state.workspace.pendingDeletions[t.id])return null;const a=`operation-${++O2}`;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()&&Gt.select(E.state)===n&&(i?o()&&E.state.workspace.invalidatedDeletions[t.id]!==a&&E.state.workspace.terminalDeletions[t.id]!==a:Va.select(E.state,t.id)===n),h={workspaceId:t.id,current:c,terminal(){return!i||!o()||Gt.select(E.state)!==n||E.state.workspace.terminalDeletions[t.id]!==a?null:E.state.workspace.invalidatedDeletions[t.id]===a?"denied":"removed"},begin(m=!0){return i||!c()||E.state.workspace.pendingDeletions[t.id]?!1:(e(A1(t.id,a)),m&&e(T1(t.id)),i=!0,c())},restore(){c()&&(e(Ka(t.id,a)),e(S1(t)))},expire(){o()&&e(Ka(t.id,a))}};return ss.add(h),h}function Cl(t,e){return ss.has(t)&&t.workspaceId===e&&t.current()}function P2(t,e){return ss.has(t)&&t.workspaceId===e&&t.terminal()==="removed"}function B6(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?Rl.select(E.state)?Gt.select(E.state):null:e?m1.select(E.state,t,e):Va.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()}),sr=new c0("WorkspaceClient"),$2=100;function I0(t){return{...t,path:t.path?.replaceAll("\\","/"),repositoryPath:t.repositoryPath?.replaceAll("\\","/"),worktreePath:t.worktreePath?.replaceAll("\\","/")}}class B2{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>$2;){const n=this.cache.keys().next().value;if(n===void 0)break;this.cache.delete(n)}}shouldCacheResponse(e){return e!==xr.LIST&&(e.includes(":get")||e.includes(":list"))}async invoke(e,r){try{const n=this.mutationCounter,a=this.getCacheKey(e,r)+(e===xr.LIST?JSON.stringify([E.state.connections.windowBackendId,Gt.select(E.state)]):"");this.pruneExpiredCacheEntries();const i=this.pendingRequests.get(a);if(i)return sr.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 sr.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(m){if(sr.error(`[WorkspaceClient] Data serialization failed for ${e}:`,{error:m,dataKeys:r?Object.keys(r):[]}),r&&typeof r=="object")for(const[g,v]of Object.entries(r))try{JSON.stringify(v)}catch{sr.error(`[WorkspaceClient] Non-serializable field: ${g}`,{type:typeof v,constructor:v?.constructor?.name})}throw new Error(`Data serialization failed: ${m instanceof Error?m.message:"Unknown error"}`)}const c=await Ps(e,o),h=this.normalizeResponse(c);return h.ok&&this.shouldCacheResponse(e)&&n===this.mutationCounter&&this.setCacheEntry(a,h.data),h}return{ok:!1,error:"IPC not available"}})();this.pendingRequests.set(a,s);try{return await s}finally{this.pendingRequests.delete(a)}}catch(n){return sr.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(xr.LIST,{lite:e?.lite});return r.ok?r.data&&"workspaces"in r.data?{ok:!0,data:r.data.workspaces.map(I0)}:{ok:!0,data:r.data.map(I0),complete:!0}:r}async create(e){const r=e.initialAgent;sr.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 Sr.workspaces.create(e);if(!n())return ut();if(sr.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:I0(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(xr.OPEN,{id:e});return r.ok?{ok:!0,data:I0(r.data)}:r}async update(e){const r=Er(e.id,Object.keys(e));if(!r())return ut();const n=await Sr.workspaces.update(e);return r()?n.success&&n.workspace?(this.clearCache(e.id),this.clearCache(),{ok:!0,data:I0(n.workspace)}):{ok:!1,error:n.error||ne.workspace_client_updateFailed_error()}:ut()}async delete(e,r,n){const a=n?()=>Cl(n,e):Er(e);if(!a())return{...ut(),obsolete:!0};const i=await Sr.workspaces.delete(e,r);return!a()&&!(n&&P2(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?()=>Cl(r,e):Er(e);if(!n())return{...ut(),obsolete:!0};const a=await Sr.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 Sr.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 Sr.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 Sr.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 Ps(e,r);return this.normalizeResponse(n)}return{ok:!1,error:"IPC not available"}}catch(n){return sr.error(`[WorkspaceClient] IPC error for ${e}:`,n),{ok:!1,error:n instanceof Error?n.message:"IPC call failed"}}}async getDiffSummary(e){return this.invokeFresh(xr.GET_DIFF_SUMMARY,{workspaceId:e})}async getGitSummary(e){return this.invokeFresh(xr.GET_GIT_SUMMARY,{workspaceId:e})}async getTasks(e){return this.invokeFresh(xr.GET_TASKS,{workspaceId:e})}}const q6=new B2;function Il(t,e){return{key:t.id,confirmedId:t.id,confirmed:t,content:t.content,imageBlocks:[...t.imageBlocks??[]],fileBlocks:[...t.fileBlocks??[]],deliveryGroups:t.deliveryGroups,contextItems:[...t.contextItems??[]],contributions:[],blocksMutations:e}}function zl(t){return!t.imageBlocks?.length&&!t.fileBlocks?.length}function Du(t,e){const r=t?.supported===!0,n=r&&(t.refreshNeeded||E1(t)),a=e.map(S=>Il(S,n));if(!t)return{conversation:[],processing:[],queue:a};const i=new Set(ve(t.seeds).flatMap(S=>vn(S,t.scope.principalId))),s=ve(t.submissions).filter(S=>!i.has(S.id)),o=new Set(e.flatMap(S=>vn(S,t.scope.principalId))),c=ve(t.processing).filter(S=>!vn(S,t.scope.principalId).some(C=>o.has(C))),h=s.filter(S=>S.destination==="conversation");if(!r)return{conversation:h,processing:c,queue:a};for(const S of ve(t.seeds)){const C=a.findIndex(X=>X.confirmedId===S.id),W=Il(S,!0),Y=vn(S,t.scope.principalId);W.contributions=ve(t.submissions).filter(X=>Y.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 m=e.filter(S=>S.mergeEligible===!0),g=!n&&m.length===1&&m[0].author?.principalId===t.scope.principalId&&m[0].submissionIds?.length&&!m[0].recoverySources?m[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&&zl(v)&&zl(S)?v:void 0;if(C)C.content=[C.content,S.content].filter(Boolean).join(`
467
+ `),de.debug("[markdown-processor] processHTMLToMarkdown OUTPUT:",{markdownLength:C.length,preservedAnchors:r}),C}typeof window<"u"&&(window.__clearMarkdownCache=Df);const vl={major:15,minor:3},mu="workspace-create:initializeGit",Wf="~/Documents",bl="~/Developer";function Gf(t){return Pl(t,vl.major,vl.minor)}function E3(t){return t.some(e=>!l1(e))}function M3(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 C3(t,e){switch(t){case"git-repo":return!e;case"new-repo":return!0;case"clone":return!1;default:return null}}function I3(t){try{const e=t?.getItem(mu);if(e==="true")return!0;if(e==="false")return!1}catch{}return null}function z3(t,e){try{t?.setItem(mu,String(e))}catch{}}function R3(t,e){return t&&t!==bl?t:e?Wf:bl}function jf(t,e){const r=n=>n.replace(/[\\/]+$/,"");return r(t)===r(e)}function D3(t,e){return e?t.filter(r=>[r.repositoryPath,r.worktreePath,r.path].some(n=>typeof n=="string"&&n.length>0&&jf(n,e))):[]}function N3(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 _3(t,e){return!t||t.isGitRepo||t.isSubdirectoryOfGitRepo?null:t.exists?t.isDirectory?"existing":null:e===!1?"new":null}function L3(t){return t.labsEnabled&&Gf(t.protocolVersion)&&t.githubSettled&&t.gitlabSettled&&!t.githubFailed&&!t.gitlabFailed&&!t.githubConnected&&!t.gitlabConnected}function O3(t,e){return!!t&&!t.plainFolder&&e.checked&&!e.available}const $t=E.createSelector(t=>Dl.select(t)?Gt.select(t):null),Vf=E.createSelector(t=>{const e=o0.select(t)?.principal;return e?JSON.stringify([t.connections.windowBackendId,e.id]):null}),P3=E.createSelector(t=>ve(t.workspace.workspaces).map(e=>String(e.id))),$3=E.createSelector((t,e,r=Re)=>{const n=$t.select(t),a=Se(t.workspace.workspaces,l0(e)),i=Ai(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}),Zn=E.createSelector(t=>{const e=t.workspaceDiscussion.owner;if(!e||!L1.select(t)||t.principal.status==="revoked"||t.principal.error==="incompatible-response"||t.connections.authRejected?.id===t.connections.windowBackendId)return!1;const r=Vf.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,l0(e))||!Zn.select(t))return gn;const a=Ai(t.workspaceDiscussion,e,r)??gn;return r!==Re&&r!==Vt&&(!a.authorized||!a.initialized&&t.workspaceDiscussion.conversationsSupported!==!0)?{...a,draft:"",agentMentions:[],principalMentions:[],messages:gn.messages,pending:gn.pending}:a}),Kf=E.createSelector((t,e,r=Re)=>_t.select(t,e,r).authorized?ve(_t.select(t,e,r).messages):[]),B3=E.createSelector((t,e,r=Re)=>_t.select(t,e,r).authorized?ve(_t.select(t,e,r).pending):[]),Yf=E.createSelector((t,e,r=Re)=>{const n=Se(t.workspace.workspaces,l0(e)),a=_t.select(t,e,r);return!!$t.select(t)&&!!n&&!t.workspaceDiscussion.deletedKeys.includes(JSON.stringify([e,r]))&&(r===Re||(r===Vt?t.workspaceDiscussion.managementSupported===!0:(t.workspaceDiscussion.conversationsSupported===!0||t.workspaceDiscussion.managementSupported===!0)&&a.authorized))&&!a.unsupported&&a.error!=="forbidden"}),q3=E.createSelector(t=>t.workspaceDiscussion.requestedIds),F3=E.createSelector(t=>t.workspaceDiscussion.requestedIds.filter(e=>{const[r,n]=JSON.parse(e);return!Ai(t.workspaceDiscussion,r,n)})),pu=E.createSelector((t,e)=>gu.select(t)===!0&&!!$t.select(t)&&!!Nl.select(t,e)),Xf=E.createSelector((t,e)=>pu.select(t,e)&&!fu.select(t)),X0=E.createSelector((t,e)=>Zn.select(t)&&(t.workspaceDiscussion.conversationsSupported===!0||t.workspaceDiscussion.managementSupported===!0)?t.workspaceDiscussion.directories[e]??_s:_s),H3=E.createSelector((t,e)=>ve(X0.select(t,e).conversations)),U3=E.createSelector((t,e)=>{if(Zn.select(t)&&t.workspaceDiscussion.deletedKeys.includes(JSON.stringify([e,Re])))return!1;if(t.workspaceDiscussion.managementSupported!==!0)return!0;const r=X0.select(t,e);return!!Se(r.conversations,Re)||r.status!=="ready"||r.hasMore}),W3=E.createSelector((t,e)=>{const r=Zn.select(t)?t.workspaceDiscussion.recipients[e]??Ls:Ls,n=_t.select(t,e,Vt).recipientPrincipalIds;return{status:r.status,query:r.query,members:ve(r.members),selectedMembers:ve(r.knownMembers).filter(a=>n.includes(a.principalId)),hasMore:r.hasMore,error:r.error}});E.createSelector((t,e)=>_t.select(t,e,Vt).createdConversationId);const G3=E.createSelector(t=>t.workspaceDiscussion.conversationsSupported),j3=E.createSelector(t=>t.workspaceDiscussion.directoryRequestedIds),V3=E.createSelector((t,e)=>t.workspaceDiscussion.recipients[e]),Zf=E.createSelector(t=>{const e=o0.select(t)?.principal;return e?{principalId:e.id,login:e.login??null,displayName:e.displayName??null,avatarUrl:e.avatarUrl??null}:null}),K3=E.createSelector((t,e,r=Re)=>{const n=_t.select(t,e,r),a=t.workspaceDiscussion.owner,i=Zf.select(t)?.principalId??(a?JSON.parse(a)[1]:null),s=n.readSequence??0,o=Kf.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}}),fu=E.createSelector(t=>t.workspaceDiscussion.context===$t.select(t)&&t.workspaceDiscussion.sharingEnabled===!1),Z0=E.createSelector((t,e,r=Re)=>(r!==Vt||Xf.select(t,e))&&Yf.select(t,e,r)&&!fu.select(t)&&!r2.select(t,e,r)),Y3=E.createSelector((t,e)=>c1.select(t)&&u1.select(t,e)),X3=E.createSelector(t=>t.workspaceDiscussion.messageActionsSupported),Z3=E.createSelector((t,e,r=Re)=>r!==Vt&&t.workspaceDiscussion.messageActionsSupported===!0&&Z0.select(t,e,r)),Q3=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}),Qf=E.createSelector(t=>t.workspaceDiscussion.context===$t.select(t)?t.workspaceDiscussion.agentMessagingSupported:null),Jf=E.createSelector(t=>t.workspaceDiscussion.context===$t.select(t)?t.workspaceDiscussion.agentActivitySupported:null),J3=E.createSelector(t=>t.workspaceDiscussion.context===$t.select(t)?t.workspaceDiscussion.principalMentionsSupported:null),e6=E.createSelector((t,e,r=Re)=>r!==Vt&&n2.select(t,e,r)&&Jf.select(t)===!0&&Z0.select(t,e,r)),t6=E.createSelector((t,e,r=Re)=>ve(_t.select(t,e,r).agentControls).map(n=>n.key)),r6=E.createSelector(t=>t.workspaceDiscussion.context===$t.select(t)?t.workspaceDiscussion.reactionsSupported:null),gu=E.createSelector(t=>t.workspaceDiscussion.context===$t.select(t)?t.workspaceDiscussion.managementSupported:null),e2=E.createSelector((t,e)=>$t.select(t)===t.workspaceDiscussion.context?t.workspaceDiscussion.management[e]??Os:Os),t2=E.createSelector((t,e,r=Re)=>{const n=Nl.select(t,e);return pu.select(t,e)&&(n?.myRole==="owner"||n?.myRole==="manager")&&!t.workspaceDiscussion.deletedKeys.includes(JSON.stringify([e,r]))&&Se(X0.select(t,e).conversations,r)?.kind==="workspace"}),n6=E.createSelector((t,e,r=Re)=>t2.select(t,e,r)&&h1.select(t,e)),a6=E.createSelector((t,e,r)=>{const n=e2.select(t,e);return n.pending!==null&&(r===void 0||n.conversationId===r)}),r2=E.createSelector((t,e,r=Re)=>{const n=Se(X0.select(t,e).conversations,r);return!!n&&n.kind!=="workspace"}),n2=E.createSelector((t,e,r=Re)=>Qf.select(t)===!0&&Z0.select(t,e,r)&&(r===Re||gu.select(t)===!0&&(r===Vt||Se(X0.select(t,e).conversations,r)?.kind==="workspace"))),i6=E.createSelector(t=>t.presence.profileRevision),s6=E.createSelector(t=>t.presence.windowVisible),o6=E.createSelector(t=>t.presence.captureDrawingActive),a2=E.createSelector(t=>Dl.select(t)?Gt.select(t):null),vu=t=>{const e=a2.select(t);return e!==null&&t.presence.context===e},l6=E.createSelector(t=>O1.select(t).filter(e=>!!Se(t.workspace.workspaces,l0(e)))),t0=[],r0=[],yl=[],i2=(t,e)=>{const r=t.rosters[e];return r?ve(r):t0},Pr=(t,e)=>{const r=Se(t.workspace.workspaces,l0(e));return vu(t)&&r&&(r.memberCount??1)>1?r:void 0},c6=E.createSelector((t,e)=>{const r=t.presence.ownPrincipalId;if(r===null||!Pr(t,e))return yl;const n=t.presence.members[e];return n?ve(n).filter(a=>a.principalId!==r&&!!a.login?.trim()):yl}),ns=(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}),s2=t=>t.some(e=>e.online&&!e.self),$n=t=>t.owner?0:t.online?1:2,bu=E.createSelector((t,e)=>{const r=t.presence.ownPrincipalId;if(r===null||!Pr(t,e))return r0;const n=t.presence.members[e];if(!n)return r0;const a=t.presence.rosters[e],i=ve(n).filter(s=>s.principalId!==r).map(s=>{const o=a?Se(a,s.principalId):void 0,c=o?{...s,...o}:s;return ns(c,{owner:c.hostRole?c.hostRole==="owner":s.role==="owner",online:o!==void 0,viewing:o?.focus.some(h=>h.workspaceId===e)??!1,self:!1})}).sort((s,o)=>$n(s)-$n(o));return i.length>0?i:r0}),u6=E.createSelector((t,e)=>{const r=o0.select(t)?.capabilities.hostMembership;return bu.select(t,e).filter(n=>r&&!n.hostRole?!1:!n.hostRole||n.hostRole==="guest"||n.online)}),o2=E.createSelector((t,e)=>{if(!Pr(t,e))return r0;const r=t.presence.members[e],n=t.presence.rosters[e],a=new Map;for(const s of r?ve(r):[])a.set(s.principalId,s);for(const s of n?ve(n):[])a.set(s.principalId,{...a.get(s.principalId),...s});const i=o0.select(t)?.principal;return i&&i.id===t.presence.ownPrincipalId&&!a.has(i.id)&&a.set(i.id,{...i,principalId:i.id}),[...a.values()]}),h6=E.createSelector((t,e)=>{const r=bu.select(t,e),n=t.presence.ownPrincipalId,a=o2.select(t,e).find(s=>s.principalId===n);if(!a)return r;const i=Pr(t,e);return[ns(a,{owner:a.hostRole?a.hostRole==="owner":i?.ownerPrincipalId===n,online:!0,viewing:!0,self:!0}),...r]}),d6=E.createSelector((t,e,r)=>{const n=t.presence.ownPrincipalId,a=Pr(t,e);if(n===null||!a)return r0;const i=i2(t.presence,e).filter(s=>s.principalId!==n&&s.focus.some(o=>o.workspaceId===e&&o.agentId===r)).map(s=>ns(s,{owner:s.principalId===a.ownerPrincipalId,online:!0,viewing:!0,self:!1})).sort((s,o)=>$n(s)-$n(o));return s2(i)?i:r0}),m6=E.createSelector((t,e,r)=>{const n=t.presence.liveTyping[e],a=t.presence.rosters[e];if(!n||!a)return t0;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?t0:ve(a).filter(s=>i.has(s.principalId))}),l2=E.createSelector(t=>{const e=t.presence.discussionComposerWorkspaceId;return e&&vu(t)&&Pr(t,e)&&t.presence.windowVisible&&t.tabState.currentTabId===e&&t.presence.discussionComposerConversationId!==Vt&&Z0.select(t,e,t.presence.discussionComposerConversationId)?e:null}),c2=E.createSelector(t=>{const e=l2.select(t);return e?Ol(e,t.presence.discussionComposerConversationId):null}),p6=E.createSelector((t,e,r=Re)=>{if(r!==Re&&!Z0.select(t,e,r)||!Pr(t,e)||t.presence.ownPrincipalId===null)return t0;const n=t.presence.liveDiscussionTyping[e],a=t.presence.rosters[e];if(!n||!a)return t0;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?ve(a).filter(s=>i.has(s.principalId)):t0}),f6=E.createSelector(t=>t.presence.liveDiscussionTyping),u2=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&&Ol(a.workspaceId,a.conversationId)===c2.select(t)?{discussionTyping:a}:{}}}),g6=E.createSelector(t=>JSON.stringify(u2.select(t))),v6=E.createSelector(t=>t.presence.liveTyping),b6=E.createSelector(t=>t.presence.ownPrincipalId),y6=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,l0(r))?.memberCount??1;n>1&&e.push(`${r}:${n}`)}return e.sort()});let ur=null;function w6(t){const e={};return ur={token:e,onCancel:t},e}function k6(t){return ur?.token===t}function x6(t){ur?.token===t&&(ur=null)}function S6(){return ur!==null}function A6(){if(ur===null)return!1;const{onCancel:t}=ur;return ur=null,t(),!0}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"},T6={async isAuthenticated(t){try{return await je(ft.IS_AUTHENTICATED,...t===void 0?[]:[{workspaceId:t}])}catch{return!1}},async getUser(t){try{return await je(ft.GET_USER,...t===void 0?[]:[{workspaceId:t}])}catch{return null}},async startAuth(t){return t?await je(ft.START_AUTH,t):await je(ft.START_AUTH)},async checkAuthComplete(){return await je(ft.POLL_FOR_TOKEN)},async cancelAuth(t){return t?je(ft.CANCEL_AUTH,t):je(ft.CANCEL_AUTH)},async logout(){return je(ft.LOGOUT)},async getAuthState(t){try{return await je(ft.GET_AUTH_STATE,...t===void 0?[]:[{workspaceId:t}])}catch{return{isAuthenticated:!1,requiresDaemonAuth:!0,user:null}}},async getStatus(t){try{return await je(ft.GET_STATUS,...t===void 0?[]:[{workspaceId:t}])}catch{return{isConfigured:!1,oauthUrl:"",configuredButNeedsUpdate:!1,updatedScopes:""}}},async listRepos(t,e){const r=await je(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 je(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 je(ft.SEARCH_USERS,{query:t,...e===void 0?{}:{workspaceId:e}})}catch(r){return{success:!1,error:r instanceof Error?r.message:String(r)}}}};class h2{constructor(){se(this,"metrics",new Map);se(this,"completedMetrics",[]);se(this,"maxCompletedMetrics",100)}start(e,r){ya.get("showPerformanceMetrics")&&this.metrics.set(e,{name:e,startTime:performance.now(),metadata:r})}end(e){if(!ya.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(),ya.get("logStateChanges")&&wl.info(`[Performance] ${e}: ${r.duration.toFixed(2)}ms`,r.metadata),r.duration):(wl.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 E6=new h2,wl=new c0("Performance"),kl=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 d2{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(h=>h.charCodeAt(0)).reduce((h,m)=>h+m,1),c=Math.floor(Number(o));return kl(c)}return kl(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 xl={separator:"_",dictionaries:[]},m2=t=>{const e=[...t&&t.dictionaries||xl.dictionaries],r={...xl,...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 d2(r).generate()};var p2=["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"],f2=["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 yu=/^[a-z]{2,15}-[a-z]{2,15}(-[0-9]+)?$/,wu=/^[a-z]{2,15}$/,ku=p2.filter(t=>wu.test(t)),xu=f2.filter(t=>wu.test(t));function M6(){return m2({dictionaries:[ku,xu],separator:"-",style:"lowerCase",length:2})}function C6(t,e){return`${t}-${e}`}function g2(t){const e=t.match(/^([a-z]{2,15}-[a-z]{2,15})(?:-[0-9]+)?$/);return e?e[1]:t}const Sl=new Set(ku),Al=new Set(xu),v2=new Set;function I6(t){return!t||typeof t!="string"?!1:yu.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 z6(t){if(!t||typeof t!="string")return!1;if(v2.has(t))return!0;if(yu.test(t)){const n=g2(t).split("-");if(n.length===2){const[a,i]=n;if(Sl.has(a)&&Al.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(Sl.has(n)&&Al.has(a))return!0}}return!1}const b2=P1("ContextAPI");function R6(t){return t.some(e=>e.placementStatus==="placing"||e.placementStatus==="failed")}async function Tl(t,e,r){return b2.debug("Placing attachment",{workspaceId:t,fileName:e,viaSourcePath:r.sourcePath!==void 0,keyed:r.idempotencyKey!==void 0}),await d0("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 y2(t,e,r,n,a={}){return await d0("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 Su=300*1e3;async function w2(t,e,r,n){return await d0("file.attachmentUpload.chunk",{uploadId:t,seq:e,data:r,...n!==void 0?{workspaceId:n}:{}},{timeoutMs:Su})}async function k2(t,e){return await d0("file.attachmentUpload.commit",{uploadId:t,...e!==void 0?{workspaceId:e}:{}},{timeoutMs:Su})}async function x2(t,e){return await d0("file.attachmentUpload.abort",{uploadId:t,...e!==void 0?{workspaceId:e}:{}})}async function S2(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 d0("file.getAttachmentInfo",e)}async function D6(t,e,r){return await je("file:download-attachment",{workspaceId:t,path:e,fileName:r})}const Au=25*1024*1024,El=1024*1024*1024,A2=16*1024*1024,Tu="attachment upload cancelled";function T2(t,e){return e?.aborted===!0||t instanceof Error&&t.message===Tu}function Dn(t){if(t?.aborted)throw new Error(Tu)}function E2(){return!d1.select(E.state)}function M2(t){return Pl(t,9,13)}function Eu(){return M2(E.state?.daemonHealth?.stats?.protocolVersion)}function N6(t){if(Eu())return t??crypto.randomUUID()}function Mu(t){if(!t||typeof t!="object")return!1;const{rpcCode:e,code:r}=t;return e===-32602||r==="INVALID_PARAMS"}function C2(t){return Mu(t)&&/already committed/i.test(String(t.message??""))}function I2(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 xi(t,e,r=S2){try{return I2(await r({workspaceId:t,idempotencyKey:e}))}catch{return}}function Cu(t,e,r){return e!==void 0&&!Mu(t)&&!T2(t,r)}async function Ml(t,e,r,n,a=()=>!0){try{return dt(a),await n()}catch(i){if(dt(a),Cu(i,e,r)){const s=await xi(t,e);if(s)return s}throw i}}const Iu="file:read returned an unexpected response",as="file:read failed";function is(t){if(!t||typeof t!="object"||!("success"in t))throw new Error(Iu);if(!t.success||t.data===void 0)throw new Error(t.error?.message??as);return t.data}async function z2(t){const e=await je("file:read",{path:t,encoding:"base64",maxSize:Au,truncateIfLarge:!1}),r=is(e);if(r.content===void 0)throw new Error(e.error?.message??as);return r.content}async function zu(t,e,r){const n=await je("file:read-chunk",{path:t,offset:e,length:r});return is(n)}async function R2(t){const{size:e}=await zu(t,0,1);return e}async function D2(t){const e=await je("file:hash",{path:t});return is(e).sha256}const N2=new Set(["Internal error","Backend request failed",Iu,as]);async function _6(t,e,r,n,a,i=()=>!0){dt(i);const s=Eu()?r.idempotencyKey:void 0,o=s!==void 0?{idempotencyKey:s}:{};if(!E2())return Ml(t,s,a,()=>Tl(t,e,{sourcePath:r.sourcePath,mimeType:r.mimeType,...o}),i);const c=await R2(r.sourcePath);if(dt(i),c>El)throw new Error(ne.chat_attachmentPlacement_tooLargeRemote_error({name:e,maxGb:Math.round(El/(1024*1024*1024))}));if(c>Au)return _2(t,e,{...r,idempotencyKey:s},c,n,a,i);const h=await z2(r.sourcePath);return dt(i),Dn(a),Ml(t,s,a,()=>Tl(t,e,{data:h,mimeType:r.mimeType,...o}),i)}async function _2(t,e,r,n,a,i,s=()=>!0){dt(s);const o=await D2(r.sourcePath);dt(s),Dn(i);let c,h;try{({uploadId:c,maxChunkBytes:h}=await y2(t,e,n,o,{mimeType:r.mimeType,...r.idempotencyKey!==void 0?{idempotencyKey:r.idempotencyKey}:{}}))}catch(w){if(dt(s),r.idempotencyKey!==void 0&&C2(w)){const A=await xi(t,r.idempotencyKey);if(A)return A}throw w}const m=Math.min(A2,h),g=Math.ceil(n/m);let v=!1;try{for(let w=0;w<g;w++){dt(s),Dn(i);const{content:A}=await zu(r.sourcePath,w*m,m);dt(s),await w2(c,w,A,t),dt(s),a?.((w+1)/g)}return Dn(i),dt(s),v=!0,await k2(c,t)}catch(w){if(dt(s),v&&Cu(w,r.idempotencyKey,i)){const A=await xi(t,r.idempotencyKey);if(A)return A}throw dt(s),await x2(c,t).catch(()=>{}),w}}function L6(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&&!N2.has(r.trim()))return r.trim()}function dt(t){if(!t())throw new DOMException("Obsolete attachment submission","AbortError")}function Ru(t){const e=t?.split(";")[0].trim().toLowerCase()??"";return e==="image/jpg"?"image/jpeg":e}function O6(t){return["image/png","image/jpeg","image/gif","image/webp"].includes(Ru(t))}const L2={"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 P6(t,e){const r=L2[Ru(t)]??"bin";return`${e}.${r}`}let O2=0;const ss=new WeakSet;function $6(t){const e=E.dispatch,r=E.state.connections.windowBackendId,n=Va.select(E.state,t.id);if(!n||E.state.workspace.pendingDeletions[t.id])return null;const a=`operation-${++O2}`;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()&&Gt.select(E.state)===n&&(i?o()&&E.state.workspace.invalidatedDeletions[t.id]!==a&&E.state.workspace.terminalDeletions[t.id]!==a:Va.select(E.state,t.id)===n),h={workspaceId:t.id,current:c,terminal(){return!i||!o()||Gt.select(E.state)!==n||E.state.workspace.terminalDeletions[t.id]!==a?null:E.state.workspace.invalidatedDeletions[t.id]===a?"denied":"removed"},begin(m=!0){return i||!c()||E.state.workspace.pendingDeletions[t.id]?!1:(e(A1(t.id,a)),m&&e(T1(t.id)),i=!0,c())},restore(){c()&&(e(Ka(t.id,a)),e(S1(t)))},expire(){o()&&e(Ka(t.id,a))}};return ss.add(h),h}function Cl(t,e){return ss.has(t)&&t.workspaceId===e&&t.current()}function P2(t,e){return ss.has(t)&&t.workspaceId===e&&t.terminal()==="removed"}function B6(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?Rl.select(E.state)?Gt.select(E.state):null:e?m1.select(E.state,t,e):Va.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()}),sr=new c0("WorkspaceClient"),$2=100;function I0(t){return{...t,path:t.path?.replaceAll("\\","/"),repositoryPath:t.repositoryPath?.replaceAll("\\","/"),worktreePath:t.worktreePath?.replaceAll("\\","/")}}class B2{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>$2;){const n=this.cache.keys().next().value;if(n===void 0)break;this.cache.delete(n)}}shouldCacheResponse(e){return e!==xr.LIST&&(e.includes(":get")||e.includes(":list"))}async invoke(e,r){try{const n=this.mutationCounter,a=this.getCacheKey(e,r)+(e===xr.LIST?JSON.stringify([E.state.connections.windowBackendId,Gt.select(E.state)]):"");this.pruneExpiredCacheEntries();const i=this.pendingRequests.get(a);if(i)return sr.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 sr.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(m){if(sr.error(`[WorkspaceClient] Data serialization failed for ${e}:`,{error:m,dataKeys:r?Object.keys(r):[]}),r&&typeof r=="object")for(const[g,v]of Object.entries(r))try{JSON.stringify(v)}catch{sr.error(`[WorkspaceClient] Non-serializable field: ${g}`,{type:typeof v,constructor:v?.constructor?.name})}throw new Error(`Data serialization failed: ${m instanceof Error?m.message:"Unknown error"}`)}const c=await Ps(e,o),h=this.normalizeResponse(c);return h.ok&&this.shouldCacheResponse(e)&&n===this.mutationCounter&&this.setCacheEntry(a,h.data),h}return{ok:!1,error:"IPC not available"}})();this.pendingRequests.set(a,s);try{return await s}finally{this.pendingRequests.delete(a)}}catch(n){return sr.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(xr.LIST,{lite:e?.lite});return r.ok?r.data&&"workspaces"in r.data?{ok:!0,data:r.data.workspaces.map(I0)}:{ok:!0,data:r.data.map(I0),complete:!0}:r}async create(e){const r=e.initialAgent;sr.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 Sr.workspaces.create(e);if(!n())return ut();if(sr.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:I0(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(xr.OPEN,{id:e});return r.ok?{ok:!0,data:I0(r.data)}:r}async update(e){const r=Er(e.id,Object.keys(e));if(!r())return ut();const n=await Sr.workspaces.update(e);return r()?n.success&&n.workspace?(this.clearCache(e.id),this.clearCache(),{ok:!0,data:I0(n.workspace)}):{ok:!1,error:n.error||ne.workspace_client_updateFailed_error()}:ut()}async delete(e,r,n){const a=n?()=>Cl(n,e):Er(e);if(!a())return{...ut(),obsolete:!0};const i=await Sr.workspaces.delete(e,r);return!a()&&!(n&&P2(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?()=>Cl(r,e):Er(e);if(!n())return{...ut(),obsolete:!0};const a=await Sr.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 Sr.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 Sr.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 Sr.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 Ps(e,r);return this.normalizeResponse(n)}return{ok:!1,error:"IPC not available"}}catch(n){return sr.error(`[WorkspaceClient] IPC error for ${e}:`,n),{ok:!1,error:n instanceof Error?n.message:"IPC call failed"}}}async getDiffSummary(e){return this.invokeFresh(xr.GET_DIFF_SUMMARY,{workspaceId:e})}async getGitSummary(e){return this.invokeFresh(xr.GET_GIT_SUMMARY,{workspaceId:e})}async getTasks(e){return this.invokeFresh(xr.GET_TASKS,{workspaceId:e})}}const q6=new B2;function Il(t,e){return{key:t.id,confirmedId:t.id,confirmed:t,content:t.content,imageBlocks:[...t.imageBlocks??[]],fileBlocks:[...t.fileBlocks??[]],deliveryGroups:t.deliveryGroups,contextItems:[...t.contextItems??[]],contributions:[],blocksMutations:e}}function zl(t){return!t.imageBlocks?.length&&!t.fileBlocks?.length}function Du(t,e){const r=t?.supported===!0,n=r&&(t.refreshNeeded||E1(t)),a=e.map(S=>Il(S,n));if(!t)return{conversation:[],processing:[],queue:a};const i=new Set(ve(t.seeds).flatMap(S=>vn(S,t.scope.principalId))),s=ve(t.submissions).filter(S=>!i.has(S.id)),o=new Set(e.flatMap(S=>vn(S,t.scope.principalId))),c=ve(t.processing).filter(S=>!vn(S,t.scope.principalId).some(C=>o.has(C))),h=s.filter(S=>S.destination==="conversation");if(!r)return{conversation:h,processing:c,queue:a};for(const S of ve(t.seeds)){const C=a.findIndex(Y=>Y.confirmedId===S.id),W=Il(S,!0),X=vn(S,t.scope.principalId);W.contributions=ve(t.submissions).filter(Y=>X.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 m=e.filter(S=>S.mergeEligible===!0),g=!n&&m.length===1&&m[0].author?.principalId===t.scope.principalId&&m[0].submissionIds?.length&&!m[0].recoverySources?m[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&&zl(v)&&zl(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,imageBlocks:[...S.imageBlocks??[]],fileBlocks:[...S.fileBlocks??[]],contextItems:[...S.contextItems??[]],contributions:[S],blocksMutations:!0};a.push(W),n||(v=W)}}const w=new Map(ve(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:h,processing:c,queue:a}}function q2(t,e){return t.some(r=>r.blocksMutations&&(!r.confirmedId||e===void 0||e===r.confirmedId||!!r.confirmed?.editingMessageId&&e===r.confirmed.editingMessageId))}const Qn=E.createSelector((t,e)=>{const r=t.pendingSubmissions?.byAgentId[e.agentId];if(!r||!M1(r.scope,e)||p1.select(t,e.workspaceId)!==e.participation||o0.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}),F2=E.createSelector((t,e)=>Du(Qn.select(t,e),Bn.select(t,e.agentId,e.workspaceId))),F6=E.createSelector(t=>t.pendingSubmissions),H6=E.createSelector((t,e)=>{const r=Qn.select(t,e.scope);return!!r&&(!!Se(r.operations,e.id)||!!Se(r.submissions,e.id))}),H2=E.createSelector((t,e,r)=>{const n=t.pendingSubmissions?.byAgentId[e]?.scope;return n?.workspaceId===r?F2.select(t,n):Du(void 0,Bn.select(t,e,r))}),U6=E.createSelector((t,e)=>{const r=Qn.select(t,e.scope);return!!r&&Se(r.operations,e.id)?.observed===!0}),W6=E.createSelector((t,e,r,n)=>q2(H2.select(t,e,r).queue,n));function os(t,e,r){const n=t.pendingSubmissions?.byAgentId[e]?.scope,a=n?Qn.select(t,n):void 0;return a?[...ve(a.submissions),...ve(a.processing),...ve(a.tombstones).filter(i=>i.reason==="history"||i.reason==="processing")].some(i=>B1({metadata:i.messageMetadata}).includes(r)):!1}function U2(t,e,r,n=!1){const a=f1.select(t,e),i=Bn.select(t,e),s=t.agentSessions?.byAgentId[e],o=Ti(s?.metadata?.pendingQuestionsMessageId),c=o.kind==="set"?r.find(w=>w.id===o.messageId)??Si.select(t,e,o.messageId):void 0,h=t.chatState?.byAgentId[e]?.pendingQuestionRecovery,m=o.kind==="set"&&!c&&h?.messageId===o.messageId&&h.status==="found"&&h.questions&&h.questions.length>0?{messageId:o.messageId,questions:h.questions}:null,g=o.kind==="set"&&c&&!r.includes(c)?[c,...r]:r,v=m?n||$l(r,m.messageId)||Bl(i,m.messageId)?null:m:$1(g,a,n,o.kind==="set"?o.messageId:o.kind==="cleared"?"":void 0,i);return!v||os(t,e,v.messageId)||ql(s?.metadata,v.messageId)?null:v}function W2(t){return t.role==="assistant"&&t.provisional!==!0&&t.isStreaming!==!0&&(t.contentBlocks??[]).some(e=>q1(e)!==null)}function G6(t,e,r){if(U2(t,e,r))return!0;const n=t.agentSessions?.byAgentId[e],a=Ti(n?.metadata?.pendingQuestionsMessageId);if(a.kind!=="set"||os(t,e,a.messageId)||ql(n?.metadata,a.messageId)||$l(r,a.messageId))return!1;const i=Bn.select(t,e);if(Bl(i,a.messageId))return!1;const s=r.find(h=>h.id===a.messageId)??Si.select(t,e,a.messageId);if(s)return!W2(s);const o=t.chatState?.byAgentId[e]?.pendingQuestionRecovery;return!(o?.messageId===a.messageId&&o.status==="found"&&!!o.questions&&o.questions.length>0)}function j6(t,e){const r=Ti(t.agentSessions?.byAgentId[e]?.metadata?.pendingQuestionsMessageId);if(r.kind!=="set"||os(t,e,r.messageId)||Si.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 G2=E.createSelector(t=>t.permission.requests),j2=E.createSelector(t=>ve(G2.select(t))),V2=E.createSelector((t,e)=>j2.select(t).filter(r=>r.sessionId===e)),V6=E.createSelector((t,e)=>V2.select(t,e).length),K6=E.createSelector(t=>{const e=Gt.select(t);if(!e||!g1.select(t,t.connections.windowBackendId))return null;const r=ve(t.workspace.workspaces).filter(n=>_l.select(t,n.id)!==null).map(n=>n.id).sort();return JSON.stringify([e,r])}),X6=E.createSelector(t=>JSON.stringify(Object.values(t.agentSessions.byAgentId).flatMap(e=>{if(!e.workspaceId)return[];const r=_l.select(t,e.workspaceId);return[[e.id,e.workspaceId,r,v1.select(t,e.workspaceId)]]}).sort((e,r)=>e[0].localeCompare(r[0])))),Y6=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 Z6(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 Q6(t){return/^agent-[a-f0-9-]{36}$/i.test(t)}const J6=E.createSelector(t=>t.uiLayout.lineWrapping),e7=E.createSelector(t=>t.uiLayout.foldUnchanged),t7=E.createSelector(t=>t.uiLayout.diffSideBySide),r7=E.createSelector(t=>t.uiLayout.diffIndicators),n7=E.createSelector(t=>t.uiLayout.sidebarWidth),a7=E.createSelector(t=>t.uiLayout.sidebarExpandedWidth),i7=E.createSelector(t=>t.uiLayout.sidebarCollapsed),s7=E.createSelector((t,e,r)=>{const n=t.uiLayout.panelVisibility.byWorkspaceId[e];return n?n[r]:C1[r]}),o7=E.createSelector(t=>t.uiLayout.spacesSidebarWidth),l7=E.createSelector(t=>t.uiLayout.spacesSidebarCollapsed),c7=E.createSelector(t=>t.uiLayout.tabbedSidebarPinned),u7=E.createSelector(t=>t.uiLayout.sidebarSide),h7=E.createSelector((t,e)=>t.uiLayout.resizablePanelSizes[e]),d7=E.createSelector((t,e)=>t.uiLayout.hydratedResizablePanelSizes[e]===!0),ls=E.createSelector((t,e)=>t.skills.byWorkspaceId[e]??I1),m7=E.createSelector((t,e)=>ls.select(t,e).skills),p7=E.createSelector((t,e)=>ls.select(t,e).loading),f7=E.createSelector((t,e)=>ls.select(t,e).error),g7=E.createSelector((t,e)=>t.skills.byAgentId?.[e]??z1),v7=E.createSelector((t,e)=>!!t.skills.byAgentId?.[e]),K2=E.createSelector(t=>o0.select(t)?.capabilities.remoteAgentSkills===1),b7=E.createSelector((t,e)=>{if(!e||!K2.select(t))return;const r=t.agentSessions?.byAgentId[e];if(r?.nodeId)return r.nodeName??ne.chat_slashSkillSuggestionList_unnamedMachine_label()}),y7=E.createSelector((t,e)=>t.agentSessions?.byAgentId[e]?.nodeState);export{Q5 as $,_f as A,g2 as B,L6 as C,rf as D,ke as E,f3 as F,ft as G,p3 as H,M6 as I,S2 as J,V1 as K,K5 as L,Au as M,af as N,b5 as O,Y5 as P,c3 as Q,Z5 as R,Mi as S,p5 as T,A2 as U,m5 as V,f5 as W,Fl as X,x3 as Y,Jl as Z,J5 as _,x2 as a,y7 as a$,v5 as a0,T6 as a1,S6 as a2,R6 as a3,E3 as a4,P6 as a5,y3 as a6,b3 as a7,u4 as a8,u3 as a9,O3 as aA,R3 as aB,Kc as aC,nu as aD,k3 as aE,E6 as aF,Tl as aG,_6 as aH,ah as aI,x5 as aJ,T3 as aK,A3 as aL,Du as aM,Mp as aN,Qi as aO,q2 as aP,ch as aQ,I3 as aR,xi as aS,M3 as aT,d4 as aU,O0 as aV,l3 as aW,Y6 as aX,d6 as aY,v7 as aZ,b7 as a_,C2 as aa,g5 as ab,t3 as ac,n3 as ad,r3 as ae,Z6 as af,L3 as ag,Bs as ah,T2 as ai,E2 as aj,O6 as ak,k6 as al,I6 as am,c4 as an,z6 as ao,w5 as ap,o3 as aq,d3 as ar,m3 as as,Q6 as at,s3 as au,w3 as av,y5 as aw,X1 as ax,wa as ay,N6 as az,a3 as b,a2 as b$,g7 as b0,H2 as b1,m6 as b2,A5 as b3,r7 as b4,t7 as b5,Jf as b6,t6 as b7,Qf as b8,Zf as b9,W3 as bA,Q3 as bB,q3 as bC,fu as bD,$3 as bE,p6 as bF,c2 as bG,F3 as bH,K3 as bI,P3 as bJ,e7 as bK,i7 as bL,j5 as bM,J6 as bN,U5 as bO,u2 as bP,g6 as bQ,G5 as bR,s7 as bS,V6 as bT,Qn as bU,F6 as bV,X6 as bW,K6 as bX,j2 as bY,G2 as bZ,o6 as b_,e6 as ba,Yf as bb,n6 as bc,X3 as bd,Z3 as be,t2 as bf,Z0 as bg,n2 as bh,G3 as bi,$t as bj,H3 as bk,U3 as bl,Y0 as bm,j3 as bn,e2 as bo,a6 as bp,gu as bq,Y3 as br,Kf as bs,Vf as bt,B3 as bu,J3 as bv,r6 as bw,r2 as bx,Xf as by,V3 as bz,C6 as c,f6 as c0,v6 as c1,y6 as c2,b6 as c3,i6 as c4,s6 as c5,l6 as c6,W6 as c7,h7 as c8,d7 as c9,_5 as cA,T5 as cB,$5 as cC,z5 as cD,I5 as cE,O5 as cF,N5 as cG,c6 as cH,o2 as cI,h6 as cJ,u6 as cK,w2 as cL,Cu as cM,C3 as cN,dd as cO,V5 as cP,Gf as cQ,h3 as cR,Ei as cS,S3 as cT,v3 as cU,ts as cV,q6 as cW,il as cX,D3 as cY,z3 as cZ,At as c_,a7 as ca,u7 as cb,n7 as cc,m7 as cd,f7 as ce,p7 as cf,l7 as cg,o7 as ch,H6 as ci,U6 as cj,c7 as ck,_t as cl,q5 as cm,F5 as cn,H5 as co,L5 as cp,P5 as cq,M5 as cr,C5 as cs,R5 as ct,D5 as cu,B5 as cv,W5 as cw,Z1 as cx,S5 as cy,E5 as cz,dt as d,y2 as e,w6 as f,N3 as g,e3 as h,A6 as i,Ru as j,B6 as k,$6 as l,_3 as m,k2 as n,i3 as o,X5 as p,Ip as q,au as r,ya as s,k5 as t,wf as u,G6 as v,j6 as w,U2 as x,D6 as y,x6 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,imageBlocks:[...S.imageBlocks??[]],fileBlocks:[...S.fileBlocks??[]],contextItems:[...S.contextItems??[]],contributions:[S],blocksMutations:!0};a.push(W),n||(v=W)}}const w=new Map(ve(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:h,processing:c,queue:a}}function q2(t,e){return t.some(r=>r.blocksMutations&&(!r.confirmedId||e===void 0||e===r.confirmedId||!!r.confirmed?.editingMessageId&&e===r.confirmed.editingMessageId))}const Qn=E.createSelector((t,e)=>{const r=t.pendingSubmissions?.byAgentId[e.agentId];if(!r||!M1(r.scope,e)||p1.select(t,e.workspaceId)!==e.participation||o0.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}),F2=E.createSelector((t,e)=>Du(Qn.select(t,e),Bn.select(t,e.agentId,e.workspaceId))),F6=E.createSelector(t=>t.pendingSubmissions),H6=E.createSelector((t,e)=>{const r=Qn.select(t,e.scope);return!!r&&(!!Se(r.operations,e.id)||!!Se(r.submissions,e.id))}),H2=E.createSelector((t,e,r)=>{const n=t.pendingSubmissions?.byAgentId[e]?.scope;return n?.workspaceId===r?F2.select(t,n):Du(void 0,Bn.select(t,e,r))}),U6=E.createSelector((t,e)=>{const r=Qn.select(t,e.scope);return!!r&&Se(r.operations,e.id)?.observed===!0}),W6=E.createSelector((t,e,r,n)=>q2(H2.select(t,e,r).queue,n));function os(t,e,r){const n=t.pendingSubmissions?.byAgentId[e]?.scope,a=n?Qn.select(t,n):void 0;return a?[...ve(a.submissions),...ve(a.processing),...ve(a.tombstones).filter(i=>i.reason==="history"||i.reason==="processing")].some(i=>B1({metadata:i.messageMetadata}).includes(r)):!1}function U2(t,e,r,n=!1){const a=f1.select(t,e),i=Bn.select(t,e),s=t.agentSessions?.byAgentId[e],o=Ti(s?.metadata?.pendingQuestionsMessageId),c=o.kind==="set"?r.find(w=>w.id===o.messageId)??Si.select(t,e,o.messageId):void 0,h=t.chatState?.byAgentId[e]?.pendingQuestionRecovery,m=o.kind==="set"&&!c&&h?.messageId===o.messageId&&h.status==="found"&&h.questions&&h.questions.length>0?{messageId:o.messageId,questions:h.questions}:null,g=o.kind==="set"&&c&&!r.includes(c)?[c,...r]:r,v=m?n||$l(r,m.messageId)||Bl(i,m.messageId)?null:m:$1(g,a,n,o.kind==="set"?o.messageId:o.kind==="cleared"?"":void 0,i);return!v||os(t,e,v.messageId)||ql(s?.metadata,v.messageId)?null:v}function W2(t){return t.role==="assistant"&&t.provisional!==!0&&t.isStreaming!==!0&&(t.contentBlocks??[]).some(e=>q1(e)!==null)}function G6(t,e,r){if(U2(t,e,r))return!0;const n=t.agentSessions?.byAgentId[e],a=Ti(n?.metadata?.pendingQuestionsMessageId);if(a.kind!=="set"||os(t,e,a.messageId)||ql(n?.metadata,a.messageId)||$l(r,a.messageId))return!1;const i=Bn.select(t,e);if(Bl(i,a.messageId))return!1;const s=r.find(h=>h.id===a.messageId)??Si.select(t,e,a.messageId);if(s)return!W2(s);const o=t.chatState?.byAgentId[e]?.pendingQuestionRecovery;return!(o?.messageId===a.messageId&&o.status==="found"&&!!o.questions&&o.questions.length>0)}function j6(t,e){const r=Ti(t.agentSessions?.byAgentId[e]?.metadata?.pendingQuestionsMessageId);if(r.kind!=="set"||os(t,e,r.messageId)||Si.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 G2=E.createSelector(t=>t.permission.requests),j2=E.createSelector(t=>ve(G2.select(t))),V2=E.createSelector((t,e)=>j2.select(t).filter(r=>r.sessionId===e)),V6=E.createSelector((t,e)=>V2.select(t,e).length),K6=E.createSelector(t=>{const e=Gt.select(t);if(!e||!g1.select(t,t.connections.windowBackendId))return null;const r=ve(t.workspace.workspaces).filter(n=>_l.select(t,n.id)!==null).map(n=>n.id).sort();return JSON.stringify([e,r])}),Y6=E.createSelector(t=>JSON.stringify(Object.values(t.agentSessions.byAgentId).flatMap(e=>{if(!e.workspaceId)return[];const r=_l.select(t,e.workspaceId);return[[e.id,e.workspaceId,r,v1.select(t,e.workspaceId)]]}).sort((e,r)=>e[0].localeCompare(r[0])))),X6=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 Z6(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 Q6(t){return/^agent-[a-f0-9-]{36}$/i.test(t)}const J6=E.createSelector(t=>t.uiLayout.lineWrapping),e7=E.createSelector(t=>t.uiLayout.foldUnchanged),t7=E.createSelector(t=>t.uiLayout.diffSideBySide),r7=E.createSelector(t=>t.uiLayout.diffIndicators),n7=E.createSelector(t=>t.uiLayout.sidebarWidth),a7=E.createSelector(t=>t.uiLayout.sidebarExpandedWidth),i7=E.createSelector(t=>t.uiLayout.sidebarCollapsed),s7=E.createSelector((t,e,r)=>{const n=t.uiLayout.panelVisibility.byWorkspaceId[e];return n?n[r]:C1[r]}),o7=E.createSelector(t=>t.uiLayout.spacesSidebarWidth),l7=E.createSelector(t=>t.uiLayout.spacesSidebarCollapsed),c7=E.createSelector(t=>t.uiLayout.tabbedSidebarPinned),u7=E.createSelector(t=>t.uiLayout.sidebarSide),h7=E.createSelector((t,e)=>t.uiLayout.resizablePanelSizes[e]),d7=E.createSelector((t,e)=>t.uiLayout.hydratedResizablePanelSizes[e]===!0),ls=E.createSelector((t,e)=>t.skills.byWorkspaceId[e]??I1),m7=E.createSelector((t,e)=>ls.select(t,e).skills),p7=E.createSelector((t,e)=>ls.select(t,e).loading),f7=E.createSelector((t,e)=>ls.select(t,e).error),g7=E.createSelector((t,e)=>t.skills.byAgentId?.[e]??z1),v7=E.createSelector((t,e)=>!!t.skills.byAgentId?.[e]),K2=E.createSelector(t=>o0.select(t)?.capabilities.remoteAgentSkills===1),b7=E.createSelector((t,e)=>{if(!e||!K2.select(t))return;const r=t.agentSessions?.byAgentId[e];if(r?.nodeId)return r.nodeName??ne.chat_slashSkillSuggestionList_unnamedMachine_label()}),y7=E.createSelector((t,e)=>t.agentSessions?.byAgentId[e]?.nodeState);export{Q5 as $,_f as A,g2 as B,L6 as C,rf as D,ke as E,f3 as F,ft as G,p3 as H,M6 as I,S2 as J,V1 as K,K5 as L,Au as M,af as N,b5 as O,X5 as P,c3 as Q,Z5 as R,Mi as S,p5 as T,A2 as U,m5 as V,f5 as W,Fl as X,x3 as Y,Jl as Z,J5 as _,x2 as a,y7 as a$,v5 as a0,T6 as a1,S6 as a2,R6 as a3,E3 as a4,P6 as a5,y3 as a6,b3 as a7,u4 as a8,u3 as a9,O3 as aA,R3 as aB,Kc as aC,nu as aD,k3 as aE,E6 as aF,Tl as aG,_6 as aH,ah as aI,x5 as aJ,T3 as aK,A3 as aL,Du as aM,Mp as aN,Qi as aO,q2 as aP,ch as aQ,I3 as aR,xi as aS,M3 as aT,d4 as aU,O0 as aV,l3 as aW,X6 as aX,d6 as aY,v7 as aZ,b7 as a_,C2 as aa,g5 as ab,t3 as ac,n3 as ad,r3 as ae,Z6 as af,L3 as ag,Bs as ah,T2 as ai,E2 as aj,O6 as ak,k6 as al,I6 as am,c4 as an,z6 as ao,w5 as ap,o3 as aq,d3 as ar,m3 as as,Q6 as at,s3 as au,w3 as av,y5 as aw,Y1 as ax,wa as ay,N6 as az,a3 as b,a2 as b$,g7 as b0,H2 as b1,m6 as b2,A5 as b3,r7 as b4,t7 as b5,Jf as b6,t6 as b7,Qf as b8,Zf as b9,W3 as bA,Q3 as bB,q3 as bC,fu as bD,$3 as bE,p6 as bF,c2 as bG,F3 as bH,K3 as bI,P3 as bJ,e7 as bK,i7 as bL,j5 as bM,J6 as bN,U5 as bO,u2 as bP,g6 as bQ,G5 as bR,s7 as bS,V6 as bT,Qn as bU,F6 as bV,Y6 as bW,K6 as bX,j2 as bY,G2 as bZ,o6 as b_,e6 as ba,Xf as bb,n6 as bc,Y3 as bd,Z3 as be,t2 as bf,Z0 as bg,n2 as bh,G3 as bi,$t as bj,H3 as bk,U3 as bl,X0 as bm,j3 as bn,e2 as bo,a6 as bp,gu as bq,X3 as br,Kf as bs,Vf as bt,B3 as bu,J3 as bv,r6 as bw,r2 as bx,Yf as by,V3 as bz,C6 as c,f6 as c0,v6 as c1,y6 as c2,b6 as c3,i6 as c4,s6 as c5,l6 as c6,W6 as c7,h7 as c8,d7 as c9,_5 as cA,T5 as cB,$5 as cC,z5 as cD,I5 as cE,O5 as cF,N5 as cG,c6 as cH,o2 as cI,h6 as cJ,u6 as cK,w2 as cL,Cu as cM,C3 as cN,dd as cO,V5 as cP,Gf as cQ,h3 as cR,Ei as cS,S3 as cT,v3 as cU,ts as cV,q6 as cW,il as cX,D3 as cY,z3 as cZ,At as c_,a7 as ca,u7 as cb,n7 as cc,m7 as cd,f7 as ce,p7 as cf,l7 as cg,o7 as ch,H6 as ci,U6 as cj,c7 as ck,_t as cl,q5 as cm,F5 as cn,H5 as co,L5 as cp,P5 as cq,M5 as cr,C5 as cs,R5 as ct,D5 as cu,B5 as cv,W5 as cw,Z1 as cx,S5 as cy,E5 as cz,dt as d,y2 as e,w6 as f,N3 as g,e3 as h,A6 as i,Ru as j,B6 as k,$6 as l,_3 as m,k2 as n,i3 as o,Y5 as p,Ip as q,au as r,ya as s,k5 as t,wf as u,G6 as v,j6 as w,U2 as x,D6 as y,x6 as z};