@malloy-publisher/app 0.0.109 → 0.0.111

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 (302) hide show
  1. package/dist/assets/{Chip-DulNumvr.js → Chip-DFxjDMYx.js} +1 -1
  2. package/dist/assets/{Container-Dn_IEeIp.js → Container-DvcpwYS4.js} +1 -1
  3. package/dist/assets/{DialogTitle-CBoB5s1x.js → DialogTitle-D-8JHIhX.js} +1 -1
  4. package/dist/assets/{Edit-CnTAusNy.js → Edit-CY66B5e8.js} +1 -1
  5. package/dist/assets/FormControlContext-BW02KQZu.js +1 -0
  6. package/dist/assets/HomePage-Bov6-5AZ.js +3 -0
  7. package/dist/assets/{MainPage-6getdplb.js → MainPage-BYUYRBax.js} +1 -1
  8. package/dist/assets/{MenuItem-DE8NK-Xy.js → MenuItem-CpI-7eAr.js} +1 -1
  9. package/dist/assets/{Modal-PUsNPbDx.js → Modal-C-Euultz.js} +1 -1
  10. package/dist/assets/{ModelPage-Cuqbuu_v.js → ModelPage-BMg6IR4I.js} +2 -2
  11. package/dist/assets/{MoreVert-BqUb6vJH.js → MoreVert-BVtzLkHm.js} +1 -1
  12. package/dist/assets/{PackagePage-Cc5cjUZ9.js → PackagePage-Ca-5S4bY.js} +1 -1
  13. package/dist/assets/{ProjectPage-CJbF04bc.js → ProjectPage-Csve1erO.js} +1 -1
  14. package/dist/assets/{RouteError-CTlaesPV.js → RouteError-DVrYYQx8.js} +1 -1
  15. package/dist/assets/{WorkbookPage-CGJZfEXN.js → WorkbookPage-Bos3GG6c.js} +1 -1
  16. package/dist/assets/{index-BVlZ6i8j.js → index-B4eYfbqj.js} +1 -1
  17. package/dist/assets/{index-DycfvfsO.js → index-CUx2TJnu.js} +1 -1
  18. package/dist/assets/{index-DdF3z9Gd.js → index-CXVjjE47.js} +13 -13
  19. package/dist/assets/{index.es20-DlWN4z3R.js → index.es20-D_GGseeK.js} +1 -1
  20. package/dist/assets/{index.es23-BDdtxnbW.js → index.es23-BsVG9VR1.js} +2 -2
  21. package/dist/assets/{index.es310-AKXDC8rl.js → index.es311-B4I7CPCs.js} +1 -1
  22. package/dist/assets/{index.es311-CE0-K0fx.js → index.es312-D6Wb5Qbz.js} +1 -1
  23. package/dist/assets/{index.es314-CsD4AFJi.js → index.es315-De-j80TX.js} +1 -1
  24. package/dist/assets/{index.es319-BAaFF8nF.js → index.es320-BOD1ZJZT.js} +1 -1
  25. package/dist/assets/{index.es327-CLjg00CO.js → index.es328-CVyYL2Cb.js} +1 -1
  26. package/dist/assets/{index.es328-Dk49f56D.js → index.es329-C73tSnxx.js} +1 -1
  27. package/dist/assets/{index.es331-CNjOIk10.js → index.es332-pdJPCQ16.js} +1 -1
  28. package/dist/assets/{index.es335-BeNrivcI.js → index.es336-BW2O-pnR.js} +1 -1
  29. package/dist/assets/{index.es338-BhR7SkS5.js → index.es339-BaWHmQaH.js} +1 -1
  30. package/dist/assets/{index.es341-C_6PzCoq.js → index.es342-D2Lnssjt.js} +1 -1
  31. package/dist/assets/{index.es342-D1uAr8c1.js → index.es343-YbS6hTnA.js} +1 -1
  32. package/dist/assets/{index.es356-7PPXN4m3.js → index.es357-CoBUMGfg.js} +1 -1
  33. package/dist/assets/{index.es357-CJh2QG0N.js → index.es358-DbSm3pvF.js} +1 -1
  34. package/dist/assets/{index.es358-C_zZutkw.js → index.es359-DMGMoOZB.js} +1 -1
  35. package/dist/assets/{index.es360-DeQ44nE8.js → index.es361-BHceIWHs.js} +1 -1
  36. package/dist/assets/{index.es365-oFKdnBEe.js → index.es366-PXx-OsXN.js} +1 -1
  37. package/dist/assets/{index.es367-BUiiHWL7.js → index.es368-Cr9RaTtA.js} +1 -1
  38. package/dist/assets/{index.es368-Bb8Mmpp1.js → index.es369-C0mtzGRN.js} +1 -1
  39. package/dist/assets/{index.es373-C5Q5iXfG.js → index.es374-Drv5n-HJ.js} +1 -1
  40. package/dist/assets/{index.es374-s3ewK3v_.js → index.es375-U_De2V6q.js} +1 -1
  41. package/dist/assets/{index.es376-Dot0I9EF.js → index.es377-B3MRYiit.js} +1 -1
  42. package/dist/assets/{index.es377-B6TLwhtH.js → index.es378-DoTPPeUr.js} +1 -1
  43. package/dist/assets/{index.es378-mEifvHi6.js → index.es379-BPm5p9Tu.js} +1 -1
  44. package/dist/assets/{index.es381-DdV8KTBv.js → index.es382-DKIqkYbM.js} +1 -1
  45. package/dist/assets/{index.es383-B762Qvzb.js → index.es384-DXiKOUzH.js} +1 -1
  46. package/dist/assets/{index.es384-DBjLFE2E.js → index.es385-CLF2pcju.js} +1 -1
  47. package/dist/assets/{index.es385-DkDs29_v.js → index.es386-Bh-sEjq4.js} +1 -1
  48. package/dist/assets/{index.es391-BOBiTPht.js → index.es392-CRHao7mg.js} +1 -1
  49. package/dist/assets/{index.es392-BGdYwXRd.js → index.es393-Cm6sEy7_.js} +1 -1
  50. package/dist/assets/{index.es393-BnuSumNM.js → index.es394-B8ZpxCSt.js} +1 -1
  51. package/dist/assets/{index.es394-DMJpONen.js → index.es395-DkWbmmH5.js} +1 -1
  52. package/dist/assets/{index.es396-Dexy1Fdn.js → index.es397-CKDseQYx.js} +1 -1
  53. package/dist/assets/{index.es400-V_MXD6ds.js → index.es401-CtFcnffO.js} +1 -1
  54. package/dist/assets/{index.es401-CAcCA7it.js → index.es402-CxdH5hVg.js} +1 -1
  55. package/dist/assets/{index.es409-DgSxLsfq.js → index.es410-DUOnTx6Y.js} +1 -1
  56. package/dist/assets/{index.es412-wcTkTrNP.js → index.es413-o0g0o7a9.js} +1 -1
  57. package/dist/assets/{index.es415-hnSTt9Hn.js → index.es416-Dy45-wq4.js} +1 -1
  58. package/dist/assets/{index.es418-DwuHSZfi.js → index.es419-DltXKq7x.js} +1 -1
  59. package/dist/assets/{index.es422-DWsCMo9a.js → index.es423-CYo8sXPV.js} +1 -1
  60. package/dist/assets/{index.es424-CX2jVTDC.js → index.es425-8kqvQzEa.js} +1 -1
  61. package/dist/assets/{index.es432-DpOOpPot.js → index.es433-D_41FSTK.js} +1 -1
  62. package/dist/assets/{index.es433--E-hGrgp.js → index.es434-DeV3Y_jn.js} +1 -1
  63. package/dist/assets/{index.es440-NJaU5ncf.js → index.es441-Cj1Yw83T.js} +1 -1
  64. package/dist/assets/{index.es441-CR0Ohpvp.js → index.es442-BAhAeZbN.js} +1 -1
  65. package/dist/assets/{index.es451-sHTEx-Dl.js → index.es452-CPGmraR2.js} +1 -1
  66. package/dist/assets/{index.es455-9ZC7rz1G.js → index.es456-BdFu7nX3.js} +1 -1
  67. package/dist/assets/{index.es461-DAQjszqb.js → index.es462-D6GNpC-z.js} +1 -1
  68. package/dist/assets/{index.es466-sT_GOjPl.js → index.es467-ClH_GnCa.js} +1 -1
  69. package/dist/assets/{index.es467-D1qnNYJr.js → index.es468-Di3zYFeC.js} +1 -1
  70. package/dist/assets/{index.es469-DW1np4pg.js → index.es470-DgLPjbVB.js} +1 -1
  71. package/dist/assets/{index.es473-wVAdvQ6_.js → index.es474-B824aOrb.js} +1 -1
  72. package/dist/assets/{index.es475-CZM7KBU8.js → index.es476-BlPAYHhB.js} +1 -1
  73. package/dist/assets/{index.es477-OAyIdwW_.js → index.es478-BBy72e0U.js} +1 -1
  74. package/dist/assets/{index.es480-DSR8isSz.js → index.es481-Df-VYnz4.js} +1 -1
  75. package/dist/assets/{index.es481-CBydsWwB.js → index.es482-DNcoqtdL.js} +1 -1
  76. package/dist/assets/{index.es485-CJc4fpNV.js → index.es486-D8LYNoLQ.js} +1 -1
  77. package/dist/assets/{index.es487-C1wULFp4.js → index.es488-BUMxLwvA.js} +1 -1
  78. package/dist/assets/{index.es494-BLp6ucpV.js → index.es495-D-qd6FpS.js} +1 -1
  79. package/dist/assets/{index.es496-Tis1R15L.js → index.es497-LaARGtc9.js} +1 -1
  80. package/dist/assets/{index.es498-DnIxUf2o.js → index.es499-DUJgu_Bk.js} +1 -1
  81. package/dist/assets/{index.es502-DhEHE70J.js → index.es503-BJ9VRCwz.js} +1 -1
  82. package/dist/assets/{index.es512-B---8rhN.js → index.es513-DcdvkC6C.js} +1 -1
  83. package/dist/assets/{index.es513-BU_koFtA.js → index.es514-BR9aJ-oz.js} +1 -1
  84. package/dist/assets/{index.es520-ZlB1VPRK.js → index.es521-B5F1bSbk.js} +1 -1
  85. package/dist/assets/{index.es521-VBglaSPm.js → index.es522-DMB2cdTG.js} +1 -1
  86. package/dist/assets/index.es7-B-1xtkbo.js +1 -0
  87. package/dist/assets/{index.modern--uQhcQlR.js → index.modern-CUFHTrKB.js} +1 -1
  88. package/dist/assets/{index.umd-DraF67oa.js → index.umd-BkIL5b5A.js} +1 -1
  89. package/dist/assets/{listItemTextClasses-BY1YL8dW.js → listItemTextClasses-lEedVyO7.js} +1 -1
  90. package/dist/index.html +1 -1
  91. package/package.json +2 -2
  92. package/dist/assets/FormControlContext-BWbaVxQH.js +0 -1
  93. package/dist/assets/HomePage-vbEJVepI.js +0 -3
  94. package/dist/assets/index.es7-OgxBdVPl.js +0 -1
  95. /package/dist/assets/{index.es299-CG6Dc4jp.js → index.es300-CG6Dc4jp.js} +0 -0
  96. /package/dist/assets/{index.es307-DsBKuouk.js → index.es308-DsBKuouk.js} +0 -0
  97. /package/dist/assets/{index.es308-D_z4Izcz.js → index.es309-D_z4Izcz.js} +0 -0
  98. /package/dist/assets/{index.es309-727ZlQH0.js → index.es310-727ZlQH0.js} +0 -0
  99. /package/dist/assets/{index.es312-Dn00JSTd.js → index.es313-Dn00JSTd.js} +0 -0
  100. /package/dist/assets/{index.es313-COJ4H7py.js → index.es314-COJ4H7py.js} +0 -0
  101. /package/dist/assets/{index.es315-Bu5BbsvL.js → index.es316-Bu5BbsvL.js} +0 -0
  102. /package/dist/assets/{index.es316-7O62HKoU.js → index.es317-7O62HKoU.js} +0 -0
  103. /package/dist/assets/{index.es317-BPT9niGB.js → index.es318-BPT9niGB.js} +0 -0
  104. /package/dist/assets/{index.es318-Dhn9LcZ4.js → index.es319-Dhn9LcZ4.js} +0 -0
  105. /package/dist/assets/{index.es320-eg146-Ew.js → index.es321-eg146-Ew.js} +0 -0
  106. /package/dist/assets/{index.es321-Du268qiB.js → index.es322-Du268qiB.js} +0 -0
  107. /package/dist/assets/{index.es322-fje9CFhw.js → index.es323-fje9CFhw.js} +0 -0
  108. /package/dist/assets/{index.es323-BwXTMy5W.js → index.es324-BwXTMy5W.js} +0 -0
  109. /package/dist/assets/{index.es324-3xVqZejG.js → index.es325-3xVqZejG.js} +0 -0
  110. /package/dist/assets/{index.es325-xW4inM5L.js → index.es326-xW4inM5L.js} +0 -0
  111. /package/dist/assets/{index.es326-DHo0CJ0O.js → index.es327-DHo0CJ0O.js} +0 -0
  112. /package/dist/assets/{index.es329-C3t2pwGQ.js → index.es330-C3t2pwGQ.js} +0 -0
  113. /package/dist/assets/{index.es330-DNquZEk8.js → index.es331-DNquZEk8.js} +0 -0
  114. /package/dist/assets/{index.es332-BHOwM8T6.js → index.es333-BHOwM8T6.js} +0 -0
  115. /package/dist/assets/{index.es333-DxSadP1t.js → index.es334-DxSadP1t.js} +0 -0
  116. /package/dist/assets/{index.es334-DbXoA79R.js → index.es335-DbXoA79R.js} +0 -0
  117. /package/dist/assets/{index.es336-Bp6g37R7.js → index.es337-Bp6g37R7.js} +0 -0
  118. /package/dist/assets/{index.es337-sacFqUAJ.js → index.es338-sacFqUAJ.js} +0 -0
  119. /package/dist/assets/{index.es339-C7gG9l05.js → index.es340-C7gG9l05.js} +0 -0
  120. /package/dist/assets/{index.es340-Dsg_Bt_b.js → index.es341-Dsg_Bt_b.js} +0 -0
  121. /package/dist/assets/{index.es343-D9R-vmeu.js → index.es344-D9R-vmeu.js} +0 -0
  122. /package/dist/assets/{index.es344-BPhBrDlE.js → index.es345-BPhBrDlE.js} +0 -0
  123. /package/dist/assets/{index.es345-C-TU5hQ_.js → index.es346-C-TU5hQ_.js} +0 -0
  124. /package/dist/assets/{index.es346-DtFQj3wx.js → index.es347-DtFQj3wx.js} +0 -0
  125. /package/dist/assets/{index.es347-m2LEI-9-.js → index.es348-m2LEI-9-.js} +0 -0
  126. /package/dist/assets/{index.es348-BoXegm-a.js → index.es349-BoXegm-a.js} +0 -0
  127. /package/dist/assets/{index.es349-B9wLZaAG.js → index.es350-B9wLZaAG.js} +0 -0
  128. /package/dist/assets/{index.es350-ClGRhx96.js → index.es351-ClGRhx96.js} +0 -0
  129. /package/dist/assets/{index.es351-DEIpsLCJ.js → index.es352-DEIpsLCJ.js} +0 -0
  130. /package/dist/assets/{index.es352-BgYniUM_.js → index.es353-BgYniUM_.js} +0 -0
  131. /package/dist/assets/{index.es353-COcR7UxN.js → index.es354-COcR7UxN.js} +0 -0
  132. /package/dist/assets/{index.es354-BjQB5zDj.js → index.es355-BjQB5zDj.js} +0 -0
  133. /package/dist/assets/{index.es355-C-nORZOA.js → index.es356-C-nORZOA.js} +0 -0
  134. /package/dist/assets/{index.es359-BX77sIaO.js → index.es360-BX77sIaO.js} +0 -0
  135. /package/dist/assets/{index.es361-B-DoSBHF.js → index.es362-B-DoSBHF.js} +0 -0
  136. /package/dist/assets/{index.es362-bCA53EVm.js → index.es363-bCA53EVm.js} +0 -0
  137. /package/dist/assets/{index.es363-w-ucz2PV.js → index.es364-w-ucz2PV.js} +0 -0
  138. /package/dist/assets/{index.es364-Dayu4EKP.js → index.es365-Dayu4EKP.js} +0 -0
  139. /package/dist/assets/{index.es366-DKXYxT9g.js → index.es367-DKXYxT9g.js} +0 -0
  140. /package/dist/assets/{index.es369-DfxzS6Rs.js → index.es370-DfxzS6Rs.js} +0 -0
  141. /package/dist/assets/{index.es370-SKMF96pI.js → index.es371-SKMF96pI.js} +0 -0
  142. /package/dist/assets/{index.es371-ajMbGru0.js → index.es372-ajMbGru0.js} +0 -0
  143. /package/dist/assets/{index.es372--30QC5Em.js → index.es373--30QC5Em.js} +0 -0
  144. /package/dist/assets/{index.es375-B430Bg39.js → index.es376-B430Bg39.js} +0 -0
  145. /package/dist/assets/{index.es379-CM8KxXT1.js → index.es380-CM8KxXT1.js} +0 -0
  146. /package/dist/assets/{index.es380-B1SYOhNW.js → index.es381-B1SYOhNW.js} +0 -0
  147. /package/dist/assets/{index.es382-DkBy-JyN.js → index.es383-DkBy-JyN.js} +0 -0
  148. /package/dist/assets/{index.es386-BILxekzW.js → index.es387-BILxekzW.js} +0 -0
  149. /package/dist/assets/{index.es387-C5wWYbrZ.js → index.es388-C5wWYbrZ.js} +0 -0
  150. /package/dist/assets/{index.es388-HzYwdGDm.js → index.es389-HzYwdGDm.js} +0 -0
  151. /package/dist/assets/{index.es389-T-Tgc4AT.js → index.es390-T-Tgc4AT.js} +0 -0
  152. /package/dist/assets/{index.es390-ifBTmRxC.js → index.es391-ifBTmRxC.js} +0 -0
  153. /package/dist/assets/{index.es395-BMj5Y0dO.js → index.es396-BMj5Y0dO.js} +0 -0
  154. /package/dist/assets/{index.es397-BjABl1g7.js → index.es398-BjABl1g7.js} +0 -0
  155. /package/dist/assets/{index.es398-xI-RfyKK.js → index.es399-xI-RfyKK.js} +0 -0
  156. /package/dist/assets/{index.es399-ySlJ1b_l.js → index.es400-ySlJ1b_l.js} +0 -0
  157. /package/dist/assets/{index.es402-BQoSv7ci.js → index.es403-BQoSv7ci.js} +0 -0
  158. /package/dist/assets/{index.es403-w8dY5SsB.js → index.es404-w8dY5SsB.js} +0 -0
  159. /package/dist/assets/{index.es404-TU54ms6u.js → index.es405-TU54ms6u.js} +0 -0
  160. /package/dist/assets/{index.es405-DREVFZK8.js → index.es406-DREVFZK8.js} +0 -0
  161. /package/dist/assets/{index.es406-BfivnA6A.js → index.es407-BfivnA6A.js} +0 -0
  162. /package/dist/assets/{index.es407-P4WzXJd0.js → index.es408-P4WzXJd0.js} +0 -0
  163. /package/dist/assets/{index.es408-BAng5TT0.js → index.es409-BAng5TT0.js} +0 -0
  164. /package/dist/assets/{index.es410-B5lbUyaz.js → index.es411-B5lbUyaz.js} +0 -0
  165. /package/dist/assets/{index.es411-mebxcVVE.js → index.es412-mebxcVVE.js} +0 -0
  166. /package/dist/assets/{index.es413-XBlWyCtg.js → index.es414-XBlWyCtg.js} +0 -0
  167. /package/dist/assets/{index.es414-BfCpw3nA.js → index.es415-BfCpw3nA.js} +0 -0
  168. /package/dist/assets/{index.es416-Cc5clBb7.js → index.es417-Cc5clBb7.js} +0 -0
  169. /package/dist/assets/{index.es417-IuBKFhSY.js → index.es418-IuBKFhSY.js} +0 -0
  170. /package/dist/assets/{index.es419-Du5NY7AG.js → index.es420-Du5NY7AG.js} +0 -0
  171. /package/dist/assets/{index.es420-Bvotw-X0.js → index.es421-Bvotw-X0.js} +0 -0
  172. /package/dist/assets/{index.es421-UIAJJxZW.js → index.es422-UIAJJxZW.js} +0 -0
  173. /package/dist/assets/{index.es423-D9-PGadD.js → index.es424-D9-PGadD.js} +0 -0
  174. /package/dist/assets/{index.es425-sdHcTMYB.js → index.es426-sdHcTMYB.js} +0 -0
  175. /package/dist/assets/{index.es426-Ci6OQyBP.js → index.es427-Ci6OQyBP.js} +0 -0
  176. /package/dist/assets/{index.es427-BC5c_5Pe.js → index.es428-BC5c_5Pe.js} +0 -0
  177. /package/dist/assets/{index.es428-Tz6hzZYG.js → index.es429-Tz6hzZYG.js} +0 -0
  178. /package/dist/assets/{index.es429-DB_GagMm.js → index.es430-DB_GagMm.js} +0 -0
  179. /package/dist/assets/{index.es430-DLbgOhZU.js → index.es431-DLbgOhZU.js} +0 -0
  180. /package/dist/assets/{index.es431-B0XVJmRM.js → index.es432-B0XVJmRM.js} +0 -0
  181. /package/dist/assets/{index.es434-shcSOmrb.js → index.es435-shcSOmrb.js} +0 -0
  182. /package/dist/assets/{index.es435-D4Tzg5kh.js → index.es436-D4Tzg5kh.js} +0 -0
  183. /package/dist/assets/{index.es436-Deuh7S70.js → index.es437-Deuh7S70.js} +0 -0
  184. /package/dist/assets/{index.es437-BUEGK8hf.js → index.es438-BUEGK8hf.js} +0 -0
  185. /package/dist/assets/{index.es438-BNioltXt.js → index.es439-BNioltXt.js} +0 -0
  186. /package/dist/assets/{index.es439-JqZropPD.js → index.es440-JqZropPD.js} +0 -0
  187. /package/dist/assets/{index.es442-LKU2TuZ1.js → index.es443-LKU2TuZ1.js} +0 -0
  188. /package/dist/assets/{index.es443-BFLt1xDp.js → index.es444-BFLt1xDp.js} +0 -0
  189. /package/dist/assets/{index.es444-DKykz6zU.js → index.es445-DKykz6zU.js} +0 -0
  190. /package/dist/assets/{index.es445-B3ZDOciz.js → index.es446-B3ZDOciz.js} +0 -0
  191. /package/dist/assets/{index.es446-CSHBycmS.js → index.es447-CSHBycmS.js} +0 -0
  192. /package/dist/assets/{index.es447-BIEUsx6d.js → index.es448-BIEUsx6d.js} +0 -0
  193. /package/dist/assets/{index.es448-B48N-Iqd.js → index.es449-B48N-Iqd.js} +0 -0
  194. /package/dist/assets/{index.es449-BY-TUvya.js → index.es450-BY-TUvya.js} +0 -0
  195. /package/dist/assets/{index.es450-zocC4JxJ.js → index.es451-zocC4JxJ.js} +0 -0
  196. /package/dist/assets/{index.es452-Cza_XSSt.js → index.es453-Cza_XSSt.js} +0 -0
  197. /package/dist/assets/{index.es453-Bg-kzb6g.js → index.es454-Bg-kzb6g.js} +0 -0
  198. /package/dist/assets/{index.es454-DhUJRlN_.js → index.es455-DhUJRlN_.js} +0 -0
  199. /package/dist/assets/{index.es456-C8lEn-DE.js → index.es457-C8lEn-DE.js} +0 -0
  200. /package/dist/assets/{index.es457-DhMKtDLN.js → index.es458-DhMKtDLN.js} +0 -0
  201. /package/dist/assets/{index.es458-CwjWoCRV.js → index.es459-CwjWoCRV.js} +0 -0
  202. /package/dist/assets/{index.es459-CzouJOBO.js → index.es460-CzouJOBO.js} +0 -0
  203. /package/dist/assets/{index.es460-B1bQXN8T.js → index.es461-B1bQXN8T.js} +0 -0
  204. /package/dist/assets/{index.es462-5LuOXUq_.js → index.es463-5LuOXUq_.js} +0 -0
  205. /package/dist/assets/{index.es463-DWJ3fJO_.js → index.es464-DWJ3fJO_.js} +0 -0
  206. /package/dist/assets/{index.es464-DJlmqQ1C.js → index.es465-DJlmqQ1C.js} +0 -0
  207. /package/dist/assets/{index.es465-QhoSD0DR.js → index.es466-QhoSD0DR.js} +0 -0
  208. /package/dist/assets/{index.es468-Be6lgOlo.js → index.es469-Be6lgOlo.js} +0 -0
  209. /package/dist/assets/{index.es470-BJ4Li9vH.js → index.es471-BJ4Li9vH.js} +0 -0
  210. /package/dist/assets/{index.es471-DQVVAn-B.js → index.es472-DQVVAn-B.js} +0 -0
  211. /package/dist/assets/{index.es472-BJGe-b2p.js → index.es473-BJGe-b2p.js} +0 -0
  212. /package/dist/assets/{index.es474-BLhTXw86.js → index.es475-BLhTXw86.js} +0 -0
  213. /package/dist/assets/{index.es476-atvbtKCR.js → index.es477-atvbtKCR.js} +0 -0
  214. /package/dist/assets/{index.es478-DkLiglaE.js → index.es479-DkLiglaE.js} +0 -0
  215. /package/dist/assets/{index.es479-C1w2a3ep.js → index.es480-C1w2a3ep.js} +0 -0
  216. /package/dist/assets/{index.es482-Cf8iN4DR.js → index.es483-Cf8iN4DR.js} +0 -0
  217. /package/dist/assets/{index.es483-COK4E0Yg.js → index.es484-COK4E0Yg.js} +0 -0
  218. /package/dist/assets/{index.es484-BknIz3MU.js → index.es485-BknIz3MU.js} +0 -0
  219. /package/dist/assets/{index.es486-BeQkCIfX.js → index.es487-BeQkCIfX.js} +0 -0
  220. /package/dist/assets/{index.es488-BSxZ-RaX.js → index.es489-BSxZ-RaX.js} +0 -0
  221. /package/dist/assets/{index.es489-C7L56vO4.js → index.es490-C7L56vO4.js} +0 -0
  222. /package/dist/assets/{index.es490-CUnW07Te.js → index.es491-CUnW07Te.js} +0 -0
  223. /package/dist/assets/{index.es491-C1XDQQGZ.js → index.es492-C1XDQQGZ.js} +0 -0
  224. /package/dist/assets/{index.es492-CQjiPCtT.js → index.es493-CQjiPCtT.js} +0 -0
  225. /package/dist/assets/{index.es493-DQ1-QYvQ.js → index.es494-DQ1-QYvQ.js} +0 -0
  226. /package/dist/assets/{index.es495-BbSNqyBO.js → index.es496-BbSNqyBO.js} +0 -0
  227. /package/dist/assets/{index.es497-CB2ApiWb.js → index.es498-CB2ApiWb.js} +0 -0
  228. /package/dist/assets/{index.es499-B_m7g4N7.js → index.es500-B_m7g4N7.js} +0 -0
  229. /package/dist/assets/{index.es500-B6W0miNI.js → index.es501-B6W0miNI.js} +0 -0
  230. /package/dist/assets/{index.es501-BMR_PYu6.js → index.es502-BMR_PYu6.js} +0 -0
  231. /package/dist/assets/{index.es503-Dj6nwHGl.js → index.es504-Dj6nwHGl.js} +0 -0
  232. /package/dist/assets/{index.es504-BpWG_bgh.js → index.es505-BpWG_bgh.js} +0 -0
  233. /package/dist/assets/{index.es505-BVUVsWT6.js → index.es506-BVUVsWT6.js} +0 -0
  234. /package/dist/assets/{index.es506-CAQ2eGtk.js → index.es507-CAQ2eGtk.js} +0 -0
  235. /package/dist/assets/{index.es507-BFOHcciG.js → index.es508-BFOHcciG.js} +0 -0
  236. /package/dist/assets/{index.es508-CdO5JTpU.js → index.es509-CdO5JTpU.js} +0 -0
  237. /package/dist/assets/{index.es509-CJaU5se_.js → index.es510-CJaU5se_.js} +0 -0
  238. /package/dist/assets/{index.es510-DYoNaHQp.js → index.es511-DYoNaHQp.js} +0 -0
  239. /package/dist/assets/{index.es511-m4uW47V2.js → index.es512-m4uW47V2.js} +0 -0
  240. /package/dist/assets/{index.es514-nyqBNV6O.js → index.es515-nyqBNV6O.js} +0 -0
  241. /package/dist/assets/{index.es515-C6j12Q_x.js → index.es516-C6j12Q_x.js} +0 -0
  242. /package/dist/assets/{index.es516-7A4Fjokl.js → index.es517-7A4Fjokl.js} +0 -0
  243. /package/dist/assets/{index.es517-CB0Krxn9.js → index.es518-CB0Krxn9.js} +0 -0
  244. /package/dist/assets/{index.es518-DCE3LsBG.js → index.es519-DCE3LsBG.js} +0 -0
  245. /package/dist/assets/{index.es519-C3FkfJm5.js → index.es520-C3FkfJm5.js} +0 -0
  246. /package/dist/assets/{index.es522-CVw76BM1.js → index.es523-CVw76BM1.js} +0 -0
  247. /package/dist/assets/{index.es523-HnGAYVZD.js → index.es524-HnGAYVZD.js} +0 -0
  248. /package/dist/assets/{index.es524-BVz_zdnA.js → index.es525-BVz_zdnA.js} +0 -0
  249. /package/dist/assets/{index.es525-C3khCPGq.js → index.es526-C3khCPGq.js} +0 -0
  250. /package/dist/assets/{index.es526-D-2ljcwZ.js → index.es527-D-2ljcwZ.js} +0 -0
  251. /package/dist/assets/{index.es527-Cv9koXgw.js → index.es528-Cv9koXgw.js} +0 -0
  252. /package/dist/assets/{index.es528-CD_QflpE.js → index.es529-CD_QflpE.js} +0 -0
  253. /package/dist/assets/{index.es529-DRW-0cLl.js → index.es530-DRW-0cLl.js} +0 -0
  254. /package/dist/assets/{index.es530-C-_shW-Y.js → index.es531-C-_shW-Y.js} +0 -0
  255. /package/dist/assets/{index.es531-LGGdnPYs.js → index.es532-LGGdnPYs.js} +0 -0
  256. /package/dist/assets/{index.es532-C3mMm8J8.js → index.es533-C3mMm8J8.js} +0 -0
  257. /package/dist/assets/{index.es533-BzJJZx-M.js → index.es534-BzJJZx-M.js} +0 -0
  258. /package/dist/assets/{index.es534-BXkSAIEj.js → index.es535-BXkSAIEj.js} +0 -0
  259. /package/dist/assets/{index.es535-BgDCqdQA.js → index.es536-BgDCqdQA.js} +0 -0
  260. /package/dist/assets/{index.es536-C8M2exoo.js → index.es537-C8M2exoo.js} +0 -0
  261. /package/dist/assets/{index.es537-DHJKELXO.js → index.es538-DHJKELXO.js} +0 -0
  262. /package/dist/assets/{index.es538-Cuk6v7N8.js → index.es539-Cuk6v7N8.js} +0 -0
  263. /package/dist/assets/{index.es539-DH5Ifo-i.js → index.es540-DH5Ifo-i.js} +0 -0
  264. /package/dist/assets/{index.es540-E3gJ1_iC.js → index.es541-E3gJ1_iC.js} +0 -0
  265. /package/dist/assets/{index.es541-DAi9KRSo.js → index.es542-DAi9KRSo.js} +0 -0
  266. /package/dist/assets/{index.es542-D7oLnXFd.js → index.es543-D7oLnXFd.js} +0 -0
  267. /package/dist/assets/{index.es543-BfjtVDDH.js → index.es544-BfjtVDDH.js} +0 -0
  268. /package/dist/assets/{index.es544-DnULxvSX.js → index.es545-DnULxvSX.js} +0 -0
  269. /package/dist/assets/{index.es545-CkXjmgJE.js → index.es546-CkXjmgJE.js} +0 -0
  270. /package/dist/assets/{index.es546-CfQXZHmo.js → index.es547-CfQXZHmo.js} +0 -0
  271. /package/dist/assets/{index.es547-DWedfzmr.js → index.es548-DWedfzmr.js} +0 -0
  272. /package/dist/assets/{index.es548-DUszq2jm.js → index.es549-DUszq2jm.js} +0 -0
  273. /package/dist/assets/{index.es549-B7mTdjB0.js → index.es550-B7mTdjB0.js} +0 -0
  274. /package/dist/assets/{index.es550-D5KoaKCx.js → index.es551-D5KoaKCx.js} +0 -0
  275. /package/dist/assets/{index.es551-BfHTSMKl.js → index.es552-BfHTSMKl.js} +0 -0
  276. /package/dist/assets/{index.es552-B0m2ddpp.js → index.es553-B0m2ddpp.js} +0 -0
  277. /package/dist/assets/{index.es553-CyktbL80.js → index.es554-CyktbL80.js} +0 -0
  278. /package/dist/assets/{index.es554-Csfq5Kiy.js → index.es555-Csfq5Kiy.js} +0 -0
  279. /package/dist/assets/{index.es555-CafNBF8u.js → index.es556-CafNBF8u.js} +0 -0
  280. /package/dist/assets/{index.es556-CTRr51gU.js → index.es557-CTRr51gU.js} +0 -0
  281. /package/dist/assets/{index.es557-D4h5O-jR.js → index.es558-D4h5O-jR.js} +0 -0
  282. /package/dist/assets/{index.es558-C39BiMTA.js → index.es559-C39BiMTA.js} +0 -0
  283. /package/dist/assets/{index.es559-Ddv68eIx.js → index.es560-Ddv68eIx.js} +0 -0
  284. /package/dist/assets/{index.es560-GBQ2dnAY.js → index.es561-GBQ2dnAY.js} +0 -0
  285. /package/dist/assets/{index.es561-PoHY5YXO.js → index.es562-PoHY5YXO.js} +0 -0
  286. /package/dist/assets/{index.es562-3e1v2bzS.js → index.es563-3e1v2bzS.js} +0 -0
  287. /package/dist/assets/{index.es563-CS3Unz2-.js → index.es564-CS3Unz2-.js} +0 -0
  288. /package/dist/assets/{index.es564-bN70gL4F.js → index.es565-bN70gL4F.js} +0 -0
  289. /package/dist/assets/{index.es565-CmCqftbK.js → index.es566-CmCqftbK.js} +0 -0
  290. /package/dist/assets/{index.es566-Ds-gbosJ.js → index.es567-Ds-gbosJ.js} +0 -0
  291. /package/dist/assets/{index.es567-CjDtw9vr.js → index.es568-CjDtw9vr.js} +0 -0
  292. /package/dist/assets/{index.es568-BthQWCQV.js → index.es569-BthQWCQV.js} +0 -0
  293. /package/dist/assets/{index.es569-DqwNpetd.js → index.es570-DqwNpetd.js} +0 -0
  294. /package/dist/assets/{index.es570-Bw305WKR.js → index.es571-Bw305WKR.js} +0 -0
  295. /package/dist/assets/{index.es571-DXbdFlpD.js → index.es572-DXbdFlpD.js} +0 -0
  296. /package/dist/assets/{index.es572-L9t79GZl.js → index.es573-L9t79GZl.js} +0 -0
  297. /package/dist/assets/{index.es573-CbfX1IO0.js → index.es574-CbfX1IO0.js} +0 -0
  298. /package/dist/assets/{index.es574-DBQeEorK.js → index.es575-DBQeEorK.js} +0 -0
  299. /package/dist/assets/{index.es575-BEBZ7ncR.js → index.es576-BEBZ7ncR.js} +0 -0
  300. /package/dist/assets/{index.es576-Bkuqu6BP.js → index.es577-Bkuqu6BP.js} +0 -0
  301. /package/dist/assets/{index.es577-D0r3Knsf.js → index.es578-D0r3Knsf.js} +0 -0
  302. /package/dist/assets/{index.es578-CVO1_9PV.js → index.es579-CVO1_9PV.js} +0 -0
@@ -1,4 +1,4 @@
1
- const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/index.es310-AKXDC8rl.js","assets/index.es391-BOBiTPht.js","assets/index.es399-ySlJ1b_l.js","assets/index.es344-BPhBrDlE.js","assets/index.es311-CE0-K0fx.js","assets/index.es473-wVAdvQ6_.js","assets/index.es314-CsD4AFJi.js","assets/index.es520-ZlB1VPRK.js","assets/index.es398-xI-RfyKK.js","assets/index.es402-BQoSv7ci.js","assets/index.es319-BAaFF8nF.js","assets/index.es503-Dj6nwHGl.js","assets/index.es445-B3ZDOciz.js","assets/index.es327-CLjg00CO.js","assets/index.es483-COK4E0Yg.js","assets/index.es328-Dk49f56D.js","assets/index.es474-BLhTXw86.js","assets/index.es331-CNjOIk10.js","assets/index.es454-DhUJRlN_.js","assets/index.es335-BeNrivcI.js","assets/index.es338-BhR7SkS5.js","assets/index.es341-C_6PzCoq.js","assets/index.es463-DWJ3fJO_.js","assets/index.es378-mEifvHi6.js","assets/index.es329-C3t2pwGQ.js","assets/index.es342-D1uAr8c1.js","assets/index.es476-atvbtKCR.js","assets/index.es356-7PPXN4m3.js","assets/index.es392-BGdYwXRd.js","assets/index.es357-CJh2QG0N.js","assets/index.es358-C_zZutkw.js","assets/index.es360-DeQ44nE8.js","assets/index.es467-D1qnNYJr.js","assets/index.es384-DBjLFE2E.js","assets/index.es381-DdV8KTBv.js","assets/index.es408-BAng5TT0.js","assets/index.es500-B6W0miNI.js","assets/index.es418-DwuHSZfi.js","assets/index.es522-CVw76BM1.js","assets/index.es365-oFKdnBEe.js","assets/index.es366-DKXYxT9g.js","assets/index.es367-BUiiHWL7.js","assets/index.es421-UIAJJxZW.js","assets/index.es368-Bb8Mmpp1.js","assets/index.es370-SKMF96pI.js","assets/index.es369-DfxzS6Rs.js","assets/index.es373-C5Q5iXfG.js","assets/index.es352-BgYniUM_.js","assets/index.es374-s3ewK3v_.js","assets/index.es376-Dot0I9EF.js","assets/index.es377-B6TLwhtH.js","assets/index.es383-B762Qvzb.js","assets/index.es385-DkDs29_v.js","assets/index.es393-BnuSumNM.js","assets/index.es394-DMJpONen.js","assets/index.es387-C5wWYbrZ.js","assets/index.es396-Dexy1Fdn.js","assets/index.es400-V_MXD6ds.js","assets/index.es401-CAcCA7it.js","assets/index.es409-DgSxLsfq.js","assets/index.es458-CwjWoCRV.js","assets/index.es412-wcTkTrNP.js","assets/index.es496-Tis1R15L.js","assets/index.es415-hnSTt9Hn.js","assets/index.es422-DWsCMo9a.js","assets/index.es414-BfCpw3nA.js","assets/index.es424-CX2jVTDC.js","assets/index.es432-DpOOpPot.js","assets/index.es433--E-hGrgp.js","assets/index.es440-NJaU5ncf.js","assets/index.es441-CR0Ohpvp.js","assets/index.es451-sHTEx-Dl.js","assets/index.es455-9ZC7rz1G.js","assets/index.es461-DAQjszqb.js","assets/index.es343-D9R-vmeu.js","assets/index.es466-sT_GOjPl.js","assets/index.es334-DbXoA79R.js","assets/index.es469-DW1np4pg.js","assets/index.es475-CZM7KBU8.js","assets/index.es390-ifBTmRxC.js","assets/index.es477-OAyIdwW_.js","assets/index.es480-DSR8isSz.js","assets/index.es481-CBydsWwB.js","assets/index.es501-BMR_PYu6.js","assets/index.es485-CJc4fpNV.js","assets/index.es487-C1wULFp4.js","assets/index.es494-BLp6ucpV.js","assets/index.es380-B1SYOhNW.js","assets/index.es498-DnIxUf2o.js","assets/index.es502-DhEHE70J.js","assets/index.es512-B---8rhN.js","assets/index.es513-BU_koFtA.js","assets/index.es521-VBglaSPm.js","assets/index-DycfvfsO.js","assets/index-BVlZ6i8j.js","assets/index.umd-DraF67oa.js","assets/HomePage-vbEJVepI.js","assets/index.es20-DlWN4z3R.js","assets/MenuItem-DE8NK-Xy.js","assets/listItemTextClasses-BY1YL8dW.js","assets/Modal-PUsNPbDx.js","assets/MoreVert-BqUb6vJH.js","assets/Edit-CnTAusNy.js","assets/Container-Dn_IEeIp.js","assets/Chip-DulNumvr.js","assets/MainPage-6getdplb.js","assets/ModelPage-Cuqbuu_v.js","assets/index.es7-OgxBdVPl.js","assets/index.modern--uQhcQlR.js","assets/DialogTitle-CBoB5s1x.js","assets/PackagePage-Cc5cjUZ9.js","assets/FormControlContext-BWbaVxQH.js","assets/ProjectPage-CJbF04bc.js","assets/RouteError-CTlaesPV.js","assets/WorkbookPage-CGJZfEXN.js"])))=>i.map(i=>d[i]);
1
+ const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/index.es311-B4I7CPCs.js","assets/index.es392-CRHao7mg.js","assets/index.es400-ySlJ1b_l.js","assets/index.es345-BPhBrDlE.js","assets/index.es312-D6Wb5Qbz.js","assets/index.es474-B824aOrb.js","assets/index.es315-De-j80TX.js","assets/index.es521-B5F1bSbk.js","assets/index.es399-xI-RfyKK.js","assets/index.es403-BQoSv7ci.js","assets/index.es320-BOD1ZJZT.js","assets/index.es504-Dj6nwHGl.js","assets/index.es446-B3ZDOciz.js","assets/index.es328-CVyYL2Cb.js","assets/index.es484-COK4E0Yg.js","assets/index.es329-C73tSnxx.js","assets/index.es475-BLhTXw86.js","assets/index.es332-pdJPCQ16.js","assets/index.es455-DhUJRlN_.js","assets/index.es336-BW2O-pnR.js","assets/index.es339-BaWHmQaH.js","assets/index.es342-D2Lnssjt.js","assets/index.es464-DWJ3fJO_.js","assets/index.es379-BPm5p9Tu.js","assets/index.es330-C3t2pwGQ.js","assets/index.es343-YbS6hTnA.js","assets/index.es477-atvbtKCR.js","assets/index.es357-CoBUMGfg.js","assets/index.es393-Cm6sEy7_.js","assets/index.es358-DbSm3pvF.js","assets/index.es359-DMGMoOZB.js","assets/index.es361-BHceIWHs.js","assets/index.es468-Di3zYFeC.js","assets/index.es385-CLF2pcju.js","assets/index.es382-DKIqkYbM.js","assets/index.es409-BAng5TT0.js","assets/index.es501-B6W0miNI.js","assets/index.es419-DltXKq7x.js","assets/index.es523-CVw76BM1.js","assets/index.es366-PXx-OsXN.js","assets/index.es367-DKXYxT9g.js","assets/index.es368-Cr9RaTtA.js","assets/index.es422-UIAJJxZW.js","assets/index.es369-C0mtzGRN.js","assets/index.es371-SKMF96pI.js","assets/index.es370-DfxzS6Rs.js","assets/index.es374-Drv5n-HJ.js","assets/index.es353-BgYniUM_.js","assets/index.es375-U_De2V6q.js","assets/index.es377-B3MRYiit.js","assets/index.es378-DoTPPeUr.js","assets/index.es384-DXiKOUzH.js","assets/index.es386-Bh-sEjq4.js","assets/index.es394-B8ZpxCSt.js","assets/index.es395-DkWbmmH5.js","assets/index.es388-C5wWYbrZ.js","assets/index.es397-CKDseQYx.js","assets/index.es401-CtFcnffO.js","assets/index.es402-CxdH5hVg.js","assets/index.es410-DUOnTx6Y.js","assets/index.es459-CwjWoCRV.js","assets/index.es413-o0g0o7a9.js","assets/index.es497-LaARGtc9.js","assets/index.es416-Dy45-wq4.js","assets/index.es423-CYo8sXPV.js","assets/index.es415-BfCpw3nA.js","assets/index.es425-8kqvQzEa.js","assets/index.es433-D_41FSTK.js","assets/index.es434-DeV3Y_jn.js","assets/index.es441-Cj1Yw83T.js","assets/index.es442-BAhAeZbN.js","assets/index.es452-CPGmraR2.js","assets/index.es456-BdFu7nX3.js","assets/index.es462-D6GNpC-z.js","assets/index.es344-D9R-vmeu.js","assets/index.es467-ClH_GnCa.js","assets/index.es335-DbXoA79R.js","assets/index.es470-DgLPjbVB.js","assets/index.es476-BlPAYHhB.js","assets/index.es391-ifBTmRxC.js","assets/index.es478-BBy72e0U.js","assets/index.es481-Df-VYnz4.js","assets/index.es482-DNcoqtdL.js","assets/index.es502-BMR_PYu6.js","assets/index.es486-D8LYNoLQ.js","assets/index.es488-BUMxLwvA.js","assets/index.es495-D-qd6FpS.js","assets/index.es381-B1SYOhNW.js","assets/index.es499-DUJgu_Bk.js","assets/index.es503-BJ9VRCwz.js","assets/index.es513-DcdvkC6C.js","assets/index.es514-BR9aJ-oz.js","assets/index.es522-DMB2cdTG.js","assets/index-CUx2TJnu.js","assets/index-B4eYfbqj.js","assets/index.umd-BkIL5b5A.js","assets/HomePage-Bov6-5AZ.js","assets/index.es20-D_GGseeK.js","assets/MenuItem-CpI-7eAr.js","assets/listItemTextClasses-lEedVyO7.js","assets/Modal-C-Euultz.js","assets/MoreVert-BVtzLkHm.js","assets/Edit-CY66B5e8.js","assets/Container-DvcpwYS4.js","assets/Chip-DFxjDMYx.js","assets/MainPage-BYUYRBax.js","assets/ModelPage-BMg6IR4I.js","assets/index.es7-B-1xtkbo.js","assets/index.modern-CUFHTrKB.js","assets/DialogTitle-D-8JHIhX.js","assets/PackagePage-Ca-5S4bY.js","assets/FormControlContext-BW02KQZu.js","assets/ProjectPage-Csve1erO.js","assets/RouteError-DVrYYQx8.js","assets/WorkbookPage-Bos3GG6c.js"])))=>i.map(i=>d[i]);
2
2
  function i$(e,t){for(var n=0;n<t.length;n++){const r=t[n];if(typeof r!="string"&&!Array.isArray(r)){for(const a in r)if(a!=="default"&&!(a in e)){const o=Object.getOwnPropertyDescriptor(r,a);o&&Object.defineProperty(e,a,o.get?o:{enumerable:!0,get:()=>r[a]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const a of document.querySelectorAll('link[rel="modulepreload"]'))r(a);new MutationObserver(a=>{for(const o of a)if(o.type==="childList")for(const s of o.addedNodes)s.tagName==="LINK"&&s.rel==="modulepreload"&&r(s)}).observe(document,{childList:!0,subtree:!0});function n(a){const o={};return a.integrity&&(o.integrity=a.integrity),a.referrerPolicy&&(o.referrerPolicy=a.referrerPolicy),a.crossOrigin==="use-credentials"?o.credentials="include":a.crossOrigin==="anonymous"?o.credentials="omit":o.credentials="same-origin",o}function r(a){if(a.ep)return;a.ep=!0;const o=n(a);fetch(a.href,o)}})();var Rge=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function VO(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var bv={exports:{}},kd={};/**
3
3
  * @license React
4
4
  * react-jsx-runtime.production.js
@@ -223,9 +223,9 @@ const theme = ${JSON.stringify(t,null,2)};
223
223
  theme.breakpoints = createBreakpoints(theme.breakpoints || {});
224
224
  theme.transitions = createTransitions(theme.transitions || {});
225
225
 
226
- export default theme;`}const Iz=e=>{const t=Object.keys(e).map(n=>({key:n,val:e[n]}))||[];return t.sort((n,r)=>n.val-r.val),t.reduce((n,r)=>({...n,[r.key]:r.val}),{})};function Nz(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:n="px",step:r=5,...a}=e,o=Iz(t),s=Object.keys(o);function c(g){return`@media (min-width:${typeof t[g]=="number"?t[g]:g}${n})`}function u(g){return`@media (max-width:${(typeof t[g]=="number"?t[g]:g)-r/100}${n})`}function d(g,y){const b=s.indexOf(y);return`@media (min-width:${typeof t[g]=="number"?t[g]:g}${n}) and (max-width:${(b!==-1&&typeof t[s[b]]=="number"?t[s[b]]:y)-r/100}${n})`}function p(g){return s.indexOf(g)+1<s.length?d(g,s[s.indexOf(g)+1]):c(g)}function h(g){const y=s.indexOf(g);return y===0?c(s[1]):y===s.length-1?u(s[y]):d(g,s[s.indexOf(g)+1]).replace("@media","@media not all and")}return{keys:s,values:o,up:c,down:u,between:d,only:p,not:h,unit:n,...a}}const Lz={borderRadius:4};function pD(e,t){if(!e.containerQueries)return t;const n=Object.keys(t).filter(r=>r.startsWith("@container")).sort((r,a)=>{const o=/min-width:\s*([0-9.]+)/;return+(r.match(o)?.[1]||0)-+(a.match(o)?.[1]||0)});return n.length?n.reduce((r,a)=>{const o=t[a];return delete r[a],r[a]=o,r},{...t}):t}function Pz(e,t){return t==="@"||t.startsWith("@")&&(e.some(n=>t.startsWith(`@${n}`))||!!t.match(/^@\d/))}function Mz(e,t){const n=t.match(/^@([^/]+)?\/?(.+)?$/);if(!n)return null;const[,r,a]=n,o=Number.isNaN(+r)?r||0:+r;return e.containerQueries(a).up(o)}function $z(e){const t=(o,s)=>o.replace("@media",s?`@container ${s}`:"@container");function n(o,s){o.up=(...c)=>t(e.breakpoints.up(...c),s),o.down=(...c)=>t(e.breakpoints.down(...c),s),o.between=(...c)=>t(e.breakpoints.between(...c),s),o.only=(...c)=>t(e.breakpoints.only(...c),s),o.not=(...c)=>{const u=t(e.breakpoints.not(...c),s);return u.includes("not all and")?u.replace("not all and ","").replace("min-width:","width<").replace("max-width:","width>").replace("and","or"):u}}const r={},a=o=>(n(r,o),r);return n(a),{...e,containerQueries:a}}const by={xs:0,sm:600,md:900,lg:1200,xl:1536},hD={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${by[e]}px)`},Fz={containerQueries:e=>({up:t=>{let n=typeof t=="number"?t:by[t]||t;return typeof n=="number"&&(n=`${n}px`),e?`@container ${e} (min-width:${n})`:`@container (min-width:${n})`}})};function Mi(e,t,n){const r=e.theme||{};if(Array.isArray(t)){const a=r.breakpoints||hD;return t.reduce((o,s,c)=>(o[a.up(a.keys[c])]=n(t[c]),o),{})}if(typeof t=="object"){const a=r.breakpoints||hD;return Object.keys(t).reduce((o,s)=>{if(Pz(a.keys,s)){const c=Mz(r.containerQueries?r:Fz,s);c&&(o[c]=n(t[s],s))}else if(Object.keys(a.values||by).includes(s)){const c=a.up(s);o[c]=n(t[s],s)}else{const c=s;o[c]=t[c]}return o},{})}return n(t)}function Bz(e={}){return e.keys?.reduce((t,n)=>{const r=e.up(n);return t[r]={},t},{})||{}}function mD(e,t){return e.reduce((n,r)=>{const a=n[r];return(!a||Object.keys(a).length===0)&&delete n[r],n},t)}function rt(e){if(typeof e!="string")throw new Error(Pi(7));return e.charAt(0).toUpperCase()+e.slice(1)}function Ey(e,t,n=!0){if(!t||typeof t!="string")return null;if(e&&e.vars&&n){const r=`vars.${t}`.split(".").reduce((a,o)=>a&&a[o]?a[o]:null,e);if(r!=null)return r}return t.split(".").reduce((r,a)=>r&&r[a]!=null?r[a]:null,e)}function Eg(e,t,n,r=n){let a;return typeof e=="function"?a=e(n):Array.isArray(e)?a=e[n]||r:a=Ey(e,n)||r,t&&(a=t(a,r,e)),a}function nr(e){const{prop:t,cssProperty:n=e.prop,themeKey:r,transform:a}=e,o=s=>{if(s[t]==null)return null;const c=s[t],u=s.theme,d=Ey(u,r)||{};return Mi(s,c,p=>{let h=Eg(d,a,p);return p===h&&typeof p=="string"&&(h=Eg(d,a,`${t}${p==="default"?"":rt(p)}`,p)),n===!1?h:{[n]:h}})};return o.propTypes={},o.filterProps=[t],o}function vf(e,t){return t?$r(e,t,{clone:!1}):e}function Uz(e){const t={};return n=>(t[n]===void 0&&(t[n]=e(n)),t[n])}const jz={m:"margin",p:"padding"},Hz={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},gD={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},zz=Uz(e=>{if(e.length>2)if(gD[e])e=gD[e];else return[e];const[t,n]=e.split(""),r=jz[t],a=Hz[n]||"";return Array.isArray(a)?a.map(o=>r+o):[r+a]}),wS=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],DS=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];[...wS,...DS];function Dp(e,t,n,r){const a=Ey(e,t,!0)??n;return typeof a=="number"||typeof a=="string"?o=>typeof o=="string"?o:typeof a=="string"?a.startsWith("var(")&&o===0?0:a.startsWith("var(")&&o===1?a:`calc(${o} * ${a})`:a*o:Array.isArray(a)?o=>{if(typeof o=="string")return o;const s=Math.abs(o),c=a[s];return o>=0?c:typeof c=="number"?-c:typeof c=="string"&&c.startsWith("var(")?`calc(-1 * ${c})`:`-${c}`}:typeof a=="function"?a:()=>{}}function kS(e){return Dp(e,"spacing",8)}function kp(e,t){return typeof t=="string"||t==null?t:e(t)}function Vz(e,t){return n=>e.reduce((r,a)=>(r[a]=kp(t,n),r),{})}function Gz(e,t,n,r){if(!t.includes(n))return null;const a=zz(n),o=Vz(a,r),s=e[n];return Mi(e,s,o)}function L3(e,t){const n=kS(e.theme);return Object.keys(e).map(r=>Gz(e,t,r,n)).reduce(vf,{})}function Wn(e){return L3(e,wS)}Wn.propTypes={};Wn.filterProps=wS;function Yn(e){return L3(e,DS)}Yn.propTypes={};Yn.filterProps=DS;function qz(e=8,t=kS({spacing:e})){if(e.mui)return e;const n=(...r)=>(r.length===0?[1]:r).map(a=>{const o=t(a);return typeof o=="number"?`${o}px`:o}).join(" ");return n.mui=!0,n}function Ty(...e){const t=e.reduce((r,a)=>(a.filterProps.forEach(o=>{r[o]=a}),r),{}),n=r=>Object.keys(r).reduce((a,o)=>t[o]?vf(a,t[o](r)):a,{});return n.propTypes={},n.filterProps=e.reduce((r,a)=>r.concat(a.filterProps),[]),n}function Ra(e){return e<=1&&e!==0?`${e*100}%`:e}const Wz=nr({prop:"width",transform:Ra}),RS=e=>{if(e.maxWidth!==void 0&&e.maxWidth!==null){const t=n=>{const r=e.theme?.breakpoints?.values?.[n]||by[n];return r?e.theme?.breakpoints?.unit!=="px"?{maxWidth:`${r}${e.theme.breakpoints.unit}`}:{maxWidth:r}:{maxWidth:Ra(n)}};return Mi(e,e.maxWidth,t)}return null};RS.filterProps=["maxWidth"];const Yz=nr({prop:"minWidth",transform:Ra}),Qz=nr({prop:"height",transform:Ra}),Kz=nr({prop:"maxHeight",transform:Ra}),Xz=nr({prop:"minHeight",transform:Ra});nr({prop:"size",cssProperty:"width",transform:Ra});nr({prop:"size",cssProperty:"height",transform:Ra});const Zz=nr({prop:"boxSizing"});Ty(Wz,RS,Yz,Qz,Kz,Xz,Zz);const Sy=e=>{if(e.gap!==void 0&&e.gap!==null){const t=Dp(e.theme,"spacing",8),n=r=>({gap:kp(t,r)});return Mi(e,e.gap,n)}return null};Sy.propTypes={};Sy.filterProps=["gap"];const _y=e=>{if(e.columnGap!==void 0&&e.columnGap!==null){const t=Dp(e.theme,"spacing",8),n=r=>({columnGap:kp(t,r)});return Mi(e,e.columnGap,n)}return null};_y.propTypes={};_y.filterProps=["columnGap"];const Cy=e=>{if(e.rowGap!==void 0&&e.rowGap!==null){const t=Dp(e.theme,"spacing",8),n=r=>({rowGap:kp(t,r)});return Mi(e,e.rowGap,n)}return null};Cy.propTypes={};Cy.filterProps=["rowGap"];const Jz=nr({prop:"gridColumn"}),eV=nr({prop:"gridRow"}),tV=nr({prop:"gridAutoFlow"}),nV=nr({prop:"gridAutoColumns"}),rV=nr({prop:"gridAutoRows"}),aV=nr({prop:"gridTemplateColumns"}),oV=nr({prop:"gridTemplateRows"}),iV=nr({prop:"gridTemplateAreas"}),sV=nr({prop:"gridArea"});Ty(Sy,_y,Cy,Jz,eV,tV,nV,rV,aV,oV,iV,sV);function Jc(e,t){return t==="grey"?t:e}const lV=nr({prop:"color",themeKey:"palette",transform:Jc}),cV=nr({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:Jc}),uV=nr({prop:"backgroundColor",themeKey:"palette",transform:Jc});Ty(lV,cV,uV);function eo(e){return typeof e!="number"?e:`${e}px solid`}function fo(e,t){return nr({prop:e,themeKey:"borders",transform:t})}const dV=fo("border",eo),fV=fo("borderTop",eo),pV=fo("borderRight",eo),hV=fo("borderBottom",eo),mV=fo("borderLeft",eo),gV=fo("borderColor"),yV=fo("borderTopColor"),vV=fo("borderRightColor"),bV=fo("borderBottomColor"),EV=fo("borderLeftColor"),TV=fo("outline",eo),SV=fo("outlineColor"),Ay=e=>{if(e.borderRadius!==void 0&&e.borderRadius!==null){const t=Dp(e.theme,"shape.borderRadius",4),n=r=>({borderRadius:kp(t,r)});return Mi(e,e.borderRadius,n)}return null};Ay.propTypes={};Ay.filterProps=["borderRadius"];Ty(dV,fV,pV,hV,mV,gV,yV,vV,bV,EV,Ay,TV,SV);const Rp={border:{themeKey:"borders",transform:eo},borderTop:{themeKey:"borders",transform:eo},borderRight:{themeKey:"borders",transform:eo},borderBottom:{themeKey:"borders",transform:eo},borderLeft:{themeKey:"borders",transform:eo},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:eo},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:Ay},color:{themeKey:"palette",transform:Jc},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:Jc},backgroundColor:{themeKey:"palette",transform:Jc},p:{style:Yn},pt:{style:Yn},pr:{style:Yn},pb:{style:Yn},pl:{style:Yn},px:{style:Yn},py:{style:Yn},padding:{style:Yn},paddingTop:{style:Yn},paddingRight:{style:Yn},paddingBottom:{style:Yn},paddingLeft:{style:Yn},paddingX:{style:Yn},paddingY:{style:Yn},paddingInline:{style:Yn},paddingInlineStart:{style:Yn},paddingInlineEnd:{style:Yn},paddingBlock:{style:Yn},paddingBlockStart:{style:Yn},paddingBlockEnd:{style:Yn},m:{style:Wn},mt:{style:Wn},mr:{style:Wn},mb:{style:Wn},ml:{style:Wn},mx:{style:Wn},my:{style:Wn},margin:{style:Wn},marginTop:{style:Wn},marginRight:{style:Wn},marginBottom:{style:Wn},marginLeft:{style:Wn},marginX:{style:Wn},marginY:{style:Wn},marginInline:{style:Wn},marginInlineStart:{style:Wn},marginInlineEnd:{style:Wn},marginBlock:{style:Wn},marginBlockStart:{style:Wn},marginBlockEnd:{style:Wn},displayPrint:{cssProperty:!1,transform:e=>({"@media print":{display:e}})},display:{},overflow:{},textOverflow:{},visibility:{},whiteSpace:{},flexBasis:{},flexDirection:{},flexWrap:{},justifyContent:{},alignItems:{},alignContent:{},order:{},flex:{},flexGrow:{},flexShrink:{},alignSelf:{},justifyItems:{},justifySelf:{},gap:{style:Sy},rowGap:{style:Cy},columnGap:{style:_y},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:Ra},maxWidth:{style:RS},minWidth:{transform:Ra},height:{transform:Ra},maxHeight:{transform:Ra},minHeight:{transform:Ra},boxSizing:{},font:{themeKey:"font"},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}};function _V(...e){const t=e.reduce((r,a)=>r.concat(Object.keys(a)),[]),n=new Set(t);return e.every(r=>n.size===Object.keys(r).length)}function CV(e,t){return typeof e=="function"?e(t):e}function AV(){function e(n,r,a,o){const s={[n]:r,theme:a},c=o[n];if(!c)return{[n]:r};const{cssProperty:u=n,themeKey:d,transform:p,style:h}=c;if(r==null)return null;if(d==="typography"&&r==="inherit")return{[n]:r};const g=Ey(a,d)||{};return h?h(s):Mi(s,r,y=>{let b=Eg(g,p,y);return y===b&&typeof y=="string"&&(b=Eg(g,p,`${n}${y==="default"?"":rt(y)}`,y)),u===!1?b:{[u]:b}})}function t(n){const{sx:r,theme:a={},nested:o}=n||{};if(!r)return null;const s=a.unstable_sxConfig??Rp;function c(u){let d=u;if(typeof u=="function")d=u(a);else if(typeof u!="object")return u;if(!d)return null;const p=Bz(a.breakpoints),h=Object.keys(p);let g=p;return Object.keys(d).forEach(y=>{const b=CV(d[y],a);if(b!=null)if(typeof b=="object")if(s[y])g=vf(g,e(y,b,a,s));else{const E=Mi({theme:a},b,_=>({[y]:_}));_V(E,b)?g[y]=t({sx:b,theme:a,nested:!0}):g=vf(g,E)}else g=vf(g,e(y,b,a,s))}),!o&&a.modularCssLayers?{"@layer sx":pD(a,mD(h,g))}:pD(a,mD(h,g))}return Array.isArray(r)?r.map(c):c(r)}return t}const du=AV();du.filterProps=["sx"];function xV(e,t){const n=this;if(n.vars){if(!n.colorSchemes?.[e]||typeof n.getColorSchemeSelector!="function")return{};let r=n.getColorSchemeSelector(e);return r==="&"?t:((r.includes("data-")||r.includes("."))&&(r=`*:where(${r.replace(/\s*&$/,"")}) &`),{[r]:t})}return n.palette.mode===e?t:{}}function OS(e={},...t){const{breakpoints:n={},palette:r={},spacing:a,shape:o={},...s}=e,c=Nz(n),u=qz(a);let d=$r({breakpoints:c,direction:"ltr",components:{},palette:{mode:"light",...r},spacing:u,shape:{...Lz,...o}},s);return d=$z(d),d.applyStyles=xV,d=t.reduce((p,h)=>$r(p,h),d),d.unstable_sxConfig={...Rp,...s?.unstable_sxConfig},d.unstable_sx=function(p){return du({sx:p,theme:this})},d}function gE(e={},...t){const{breakpoints:n,mixins:r={},spacing:a,palette:o={},transitions:s={},typography:c={},shape:u,...d}=e;if(e.vars&&e.generateThemeVars===void 0)throw new Error(Pi(20));const p=xS(o),h=OS(e);let g=$r(h,{mixins:_z(h.breakpoints,r),palette:p,shadows:xz.slice(),typography:Az(p,c),transitions:kz(s),zIndex:{...Rz}});return g=$r(g,d),g=t.reduce((y,b)=>$r(y,b),g),g.unstable_sxConfig={...Rp,...d?.unstable_sxConfig},g.unstable_sx=function(y){return du({sx:y,theme:this})},g.toRuntimeSource=N3,g}function yE(e){let t;return e<1?t=5.11916*e**2:t=4.5*Math.log(e+1)+2,Math.round(t*10)/1e3}const wV=[...Array(25)].map((e,t)=>{if(t===0)return"none";const n=yE(t);return`linear-gradient(rgba(255 255 255 / ${n}), rgba(255 255 255 / ${n}))`});function P3(e){return{inputPlaceholder:e==="dark"?.5:.42,inputUnderline:e==="dark"?.7:.42,switchTrackDisabled:e==="dark"?.2:.12,switchTrack:e==="dark"?.3:.38}}function M3(e){return e==="dark"?wV:[]}function DV(e){const{palette:t={mode:"light"},opacity:n,overlays:r,...a}=e,o=xS(t);return{palette:o,opacity:{...P3(o.mode),...n},overlays:r||M3(o.mode),...a}}function kV(e){return!!e[0].match(/(cssVarPrefix|colorSchemeSelector|modularCssLayers|rootSelector|typography|mixins|breakpoints|direction|transitions)/)||!!e[0].match(/sxConfig$/)||e[0]==="palette"&&!!e[1]?.match(/(mode|contrastThreshold|tonalOffset)/)}const RV=e=>[...[...Array(25)].map((t,n)=>`--${e?`${e}-`:""}overlays-${n}`),`--${e?`${e}-`:""}palette-AppBar-darkBg`,`--${e?`${e}-`:""}palette-AppBar-darkColor`],OV=e=>(t,n)=>{const r=e.rootSelector||":root",a=e.colorSchemeSelector;let o=a;if(a==="class"&&(o=".%s"),a==="data"&&(o="[data-%s]"),a?.startsWith("data-")&&!a.includes("%s")&&(o=`[${a}="%s"]`),e.defaultColorScheme===t){if(t==="dark"){const s={};return RV(e.cssVarPrefix).forEach(c=>{s[c]=n[c],delete n[c]}),o==="media"?{[r]:n,"@media (prefers-color-scheme: dark)":{[r]:s}}:o?{[o.replace("%s",t)]:s,[`${r}, ${o.replace("%s",t)}`]:n}:{[r]:{...n,...s}}}if(o&&o!=="media")return`${r}, ${o.replace("%s",String(t))}`}else if(t){if(o==="media")return{[`@media (prefers-color-scheme: ${String(t)})`]:{[r]:n}};if(o)return o.replace("%s",String(t))}return r};function IV(e){const t={};return Object.entries(e).forEach(n=>{const[r,a]=n;typeof a=="object"&&(t[r]=`${a.fontStyle?`${a.fontStyle} `:""}${a.fontVariant?`${a.fontVariant} `:""}${a.fontWeight?`${a.fontWeight} `:""}${a.fontStretch?`${a.fontStretch} `:""}${a.fontSize||""}${a.lineHeight?`/${a.lineHeight} `:""}${a.fontFamily||""}`)}),t}const yD=(e,t,n,r=[])=>{let a=e;t.forEach((o,s)=>{s===t.length-1?Array.isArray(a)?a[Number(o)]=n:a&&typeof a=="object"&&(a[o]=n):a&&typeof a=="object"&&(a[o]||(a[o]=r.includes(o)?[]:{}),a=a[o])})},NV=(e,t,n)=>{function r(a,o=[],s=[]){Object.entries(a).forEach(([c,u])=>{(!n||n&&!n([...o,c]))&&u!=null&&(typeof u=="object"&&Object.keys(u).length>0?r(u,[...o,c],Array.isArray(u)?[...s,c]:s):t([...o,c],u,s))})}r(e)},LV=(e,t)=>typeof t=="number"?["lineHeight","fontWeight","opacity","zIndex"].some(n=>e.includes(n))||e[e.length-1].toLowerCase().includes("opacity")?t:`${t}px`:t;function jv(e,t){const{prefix:n,shouldSkipGeneratingVar:r}=t||{},a={},o={},s={};return NV(e,(c,u,d)=>{if((typeof u=="string"||typeof u=="number")&&(!r||!r(c,u))){const p=`--${n?`${n}-`:""}${c.join("-")}`,h=LV(c,u);Object.assign(a,{[p]:h}),yD(o,c,`var(${p})`,d),yD(s,c,`var(${p}, ${h})`,d)}},c=>c[0]==="vars"),{css:a,vars:o,varsWithDefaults:s}}function PV(e,t={}){const{getSelector:n=_,disableCssColorScheme:r,colorSchemeSelector:a}=t,{colorSchemes:o={},components:s,defaultColorScheme:c="light",...u}=e,{vars:d,css:p,varsWithDefaults:h}=jv(u,t);let g=h;const y={},{[c]:b,...E}=o;if(Object.entries(E||{}).forEach(([A,D])=>{const{vars:w,css:R,varsWithDefaults:O}=jv(D,t);g=$r(g,O),y[A]={css:R,vars:w}}),b){const{css:A,vars:D,varsWithDefaults:w}=jv(b,t);g=$r(g,w),y[c]={css:A,vars:D}}function _(A,D){let w=a;if(a==="class"&&(w=".%s"),a==="data"&&(w="[data-%s]"),a?.startsWith("data-")&&!a.includes("%s")&&(w=`[${a}="%s"]`),A){if(w==="media")return e.defaultColorScheme===A?":root":{[`@media (prefers-color-scheme: ${o[A]?.palette?.mode||A})`]:{":root":D}};if(w)return e.defaultColorScheme===A?`:root, ${w.replace("%s",String(A))}`:w.replace("%s",String(A))}return":root"}return{vars:g,generateThemeVars:()=>{let A={...d};return Object.entries(y).forEach(([,{vars:D}])=>{A=$r(A,D)}),A},generateStyleSheets:()=>{const A=[],D=e.defaultColorScheme||"light";function w(k,F){Object.keys(F).length&&A.push(typeof k=="string"?{[k]:{...F}}:k)}w(n(void 0,{...p}),p);const{[D]:R,...O}=y;if(R){const{css:k}=R,F=o[D]?.palette?.mode,G=!r&&F?{colorScheme:F,...k}:{...k};w(n(D,{...G}),G)}return Object.entries(O).forEach(([k,{css:F}])=>{const G=o[k]?.palette?.mode,j=!r&&G?{colorScheme:G,...F}:{...F};w(n(k,{...j}),j)}),A}}}function MV(e){return function(t){return e==="media"?`@media (prefers-color-scheme: ${t})`:e?e.startsWith("data-")&&!e.includes("%s")?`[${e}="${t}"] &`:e==="class"?`.${t} &`:e==="data"?`[data-${t}] &`:`${e.replace("%s",t)} &`:"&"}}function $V(e,t){t.forEach(n=>{e[n]||(e[n]={})})}function _e(e,t,n){!e[t]&&n&&(e[t]=n)}function uf(e){return typeof e!="string"||!e.startsWith("hsl")?e:k3(e)}function Ci(e,t){`${t}Channel`in e||(e[`${t}Channel`]=cf(uf(e[t])))}function FV(e){return typeof e=="number"?`${e}px`:typeof e=="string"||typeof e=="function"||Array.isArray(e)?e:"8px"}const Po=e=>{try{return e()}catch{}},BV=(e="mui")=>QI(e);function Hv(e,t,n,r){if(!t)return;t=t===!0?{}:t;const a=r==="dark"?"dark":"light";if(!n){e[r]=DV({...t,palette:{mode:a,...t?.palette}});return}const{palette:o,...s}=gE({...n,palette:{mode:a,...t?.palette}});return e[r]={...t,palette:o,opacity:{...P3(a),...t?.opacity},overlays:t?.overlays||M3(a)},s}function UV(e={},...t){const{colorSchemes:n={light:!0},defaultColorScheme:r,disableCssColorScheme:a=!1,cssVarPrefix:o="mui",shouldSkipGeneratingVar:s=kV,colorSchemeSelector:c=n.light&&n.dark?"media":void 0,rootSelector:u=":root",...d}=e,p=Object.keys(n)[0],h=r||(n.light&&p!=="light"?"light":p),g=BV(o),{[h]:y,light:b,dark:E,..._}=n,A={..._};let D=y;if((h==="dark"&&!("dark"in n)||h==="light"&&!("light"in n))&&(D=!0),!D)throw new Error(Pi(21,h));const w=Hv(A,D,d,h);b&&!A.light&&Hv(A,b,void 0,"light"),E&&!A.dark&&Hv(A,E,void 0,"dark");let R={defaultColorScheme:h,...w,cssVarPrefix:o,colorSchemeSelector:c,rootSelector:u,getCssVar:g,colorSchemes:A,font:{...IV(w.typography),...w.font},spacing:FV(d.spacing)};Object.keys(R.colorSchemes).forEach(j=>{const T=R.colorSchemes[j].palette,M=U=>{const B=U.split("-"),Y=B[1],X=B[2];return g(U,T[Y][X])};if(T.mode==="light"&&(_e(T.common,"background","#fff"),_e(T.common,"onBackground","#000")),T.mode==="dark"&&(_e(T.common,"background","#000"),_e(T.common,"onBackground","#fff")),$V(T,["Alert","AppBar","Avatar","Button","Chip","FilledInput","LinearProgress","Skeleton","Slider","SnackbarContent","SpeedDialAction","StepConnector","StepContent","Switch","TableCell","Tooltip"]),T.mode==="light"){_e(T.Alert,"errorColor",_n(T.error.light,.6)),_e(T.Alert,"infoColor",_n(T.info.light,.6)),_e(T.Alert,"successColor",_n(T.success.light,.6)),_e(T.Alert,"warningColor",_n(T.warning.light,.6)),_e(T.Alert,"errorFilledBg",M("palette-error-main")),_e(T.Alert,"infoFilledBg",M("palette-info-main")),_e(T.Alert,"successFilledBg",M("palette-success-main")),_e(T.Alert,"warningFilledBg",M("palette-warning-main")),_e(T.Alert,"errorFilledColor",Po(()=>T.getContrastText(T.error.main))),_e(T.Alert,"infoFilledColor",Po(()=>T.getContrastText(T.info.main))),_e(T.Alert,"successFilledColor",Po(()=>T.getContrastText(T.success.main))),_e(T.Alert,"warningFilledColor",Po(()=>T.getContrastText(T.warning.main))),_e(T.Alert,"errorStandardBg",Cn(T.error.light,.9)),_e(T.Alert,"infoStandardBg",Cn(T.info.light,.9)),_e(T.Alert,"successStandardBg",Cn(T.success.light,.9)),_e(T.Alert,"warningStandardBg",Cn(T.warning.light,.9)),_e(T.Alert,"errorIconColor",M("palette-error-main")),_e(T.Alert,"infoIconColor",M("palette-info-main")),_e(T.Alert,"successIconColor",M("palette-success-main")),_e(T.Alert,"warningIconColor",M("palette-warning-main")),_e(T.AppBar,"defaultBg",M("palette-grey-100")),_e(T.Avatar,"defaultBg",M("palette-grey-400")),_e(T.Button,"inheritContainedBg",M("palette-grey-300")),_e(T.Button,"inheritContainedHoverBg",M("palette-grey-A100")),_e(T.Chip,"defaultBorder",M("palette-grey-400")),_e(T.Chip,"defaultAvatarColor",M("palette-grey-700")),_e(T.Chip,"defaultIconColor",M("palette-grey-700")),_e(T.FilledInput,"bg","rgba(0, 0, 0, 0.06)"),_e(T.FilledInput,"hoverBg","rgba(0, 0, 0, 0.09)"),_e(T.FilledInput,"disabledBg","rgba(0, 0, 0, 0.12)"),_e(T.LinearProgress,"primaryBg",Cn(T.primary.main,.62)),_e(T.LinearProgress,"secondaryBg",Cn(T.secondary.main,.62)),_e(T.LinearProgress,"errorBg",Cn(T.error.main,.62)),_e(T.LinearProgress,"infoBg",Cn(T.info.main,.62)),_e(T.LinearProgress,"successBg",Cn(T.success.main,.62)),_e(T.LinearProgress,"warningBg",Cn(T.warning.main,.62)),_e(T.Skeleton,"bg",`rgba(${M("palette-text-primaryChannel")} / 0.11)`),_e(T.Slider,"primaryTrack",Cn(T.primary.main,.62)),_e(T.Slider,"secondaryTrack",Cn(T.secondary.main,.62)),_e(T.Slider,"errorTrack",Cn(T.error.main,.62)),_e(T.Slider,"infoTrack",Cn(T.info.main,.62)),_e(T.Slider,"successTrack",Cn(T.success.main,.62)),_e(T.Slider,"warningTrack",Cn(T.warning.main,.62));const U=gm(T.background.default,.8);_e(T.SnackbarContent,"bg",U),_e(T.SnackbarContent,"color",Po(()=>T.getContrastText(U))),_e(T.SpeedDialAction,"fabHoverBg",gm(T.background.paper,.15)),_e(T.StepConnector,"border",M("palette-grey-400")),_e(T.StepContent,"border",M("palette-grey-400")),_e(T.Switch,"defaultColor",M("palette-common-white")),_e(T.Switch,"defaultDisabledColor",M("palette-grey-100")),_e(T.Switch,"primaryDisabledColor",Cn(T.primary.main,.62)),_e(T.Switch,"secondaryDisabledColor",Cn(T.secondary.main,.62)),_e(T.Switch,"errorDisabledColor",Cn(T.error.main,.62)),_e(T.Switch,"infoDisabledColor",Cn(T.info.main,.62)),_e(T.Switch,"successDisabledColor",Cn(T.success.main,.62)),_e(T.Switch,"warningDisabledColor",Cn(T.warning.main,.62)),_e(T.TableCell,"border",Cn(mm(T.divider,1),.88)),_e(T.Tooltip,"bg",mm(T.grey[700],.92))}if(T.mode==="dark"){_e(T.Alert,"errorColor",Cn(T.error.light,.6)),_e(T.Alert,"infoColor",Cn(T.info.light,.6)),_e(T.Alert,"successColor",Cn(T.success.light,.6)),_e(T.Alert,"warningColor",Cn(T.warning.light,.6)),_e(T.Alert,"errorFilledBg",M("palette-error-dark")),_e(T.Alert,"infoFilledBg",M("palette-info-dark")),_e(T.Alert,"successFilledBg",M("palette-success-dark")),_e(T.Alert,"warningFilledBg",M("palette-warning-dark")),_e(T.Alert,"errorFilledColor",Po(()=>T.getContrastText(T.error.dark))),_e(T.Alert,"infoFilledColor",Po(()=>T.getContrastText(T.info.dark))),_e(T.Alert,"successFilledColor",Po(()=>T.getContrastText(T.success.dark))),_e(T.Alert,"warningFilledColor",Po(()=>T.getContrastText(T.warning.dark))),_e(T.Alert,"errorStandardBg",_n(T.error.light,.9)),_e(T.Alert,"infoStandardBg",_n(T.info.light,.9)),_e(T.Alert,"successStandardBg",_n(T.success.light,.9)),_e(T.Alert,"warningStandardBg",_n(T.warning.light,.9)),_e(T.Alert,"errorIconColor",M("palette-error-main")),_e(T.Alert,"infoIconColor",M("palette-info-main")),_e(T.Alert,"successIconColor",M("palette-success-main")),_e(T.Alert,"warningIconColor",M("palette-warning-main")),_e(T.AppBar,"defaultBg",M("palette-grey-900")),_e(T.AppBar,"darkBg",M("palette-background-paper")),_e(T.AppBar,"darkColor",M("palette-text-primary")),_e(T.Avatar,"defaultBg",M("palette-grey-600")),_e(T.Button,"inheritContainedBg",M("palette-grey-800")),_e(T.Button,"inheritContainedHoverBg",M("palette-grey-700")),_e(T.Chip,"defaultBorder",M("palette-grey-700")),_e(T.Chip,"defaultAvatarColor",M("palette-grey-300")),_e(T.Chip,"defaultIconColor",M("palette-grey-300")),_e(T.FilledInput,"bg","rgba(255, 255, 255, 0.09)"),_e(T.FilledInput,"hoverBg","rgba(255, 255, 255, 0.13)"),_e(T.FilledInput,"disabledBg","rgba(255, 255, 255, 0.12)"),_e(T.LinearProgress,"primaryBg",_n(T.primary.main,.5)),_e(T.LinearProgress,"secondaryBg",_n(T.secondary.main,.5)),_e(T.LinearProgress,"errorBg",_n(T.error.main,.5)),_e(T.LinearProgress,"infoBg",_n(T.info.main,.5)),_e(T.LinearProgress,"successBg",_n(T.success.main,.5)),_e(T.LinearProgress,"warningBg",_n(T.warning.main,.5)),_e(T.Skeleton,"bg",`rgba(${M("palette-text-primaryChannel")} / 0.13)`),_e(T.Slider,"primaryTrack",_n(T.primary.main,.5)),_e(T.Slider,"secondaryTrack",_n(T.secondary.main,.5)),_e(T.Slider,"errorTrack",_n(T.error.main,.5)),_e(T.Slider,"infoTrack",_n(T.info.main,.5)),_e(T.Slider,"successTrack",_n(T.success.main,.5)),_e(T.Slider,"warningTrack",_n(T.warning.main,.5));const U=gm(T.background.default,.98);_e(T.SnackbarContent,"bg",U),_e(T.SnackbarContent,"color",Po(()=>T.getContrastText(U))),_e(T.SpeedDialAction,"fabHoverBg",gm(T.background.paper,.15)),_e(T.StepConnector,"border",M("palette-grey-600")),_e(T.StepContent,"border",M("palette-grey-600")),_e(T.Switch,"defaultColor",M("palette-grey-300")),_e(T.Switch,"defaultDisabledColor",M("palette-grey-600")),_e(T.Switch,"primaryDisabledColor",_n(T.primary.main,.55)),_e(T.Switch,"secondaryDisabledColor",_n(T.secondary.main,.55)),_e(T.Switch,"errorDisabledColor",_n(T.error.main,.55)),_e(T.Switch,"infoDisabledColor",_n(T.info.main,.55)),_e(T.Switch,"successDisabledColor",_n(T.success.main,.55)),_e(T.Switch,"warningDisabledColor",_n(T.warning.main,.55)),_e(T.TableCell,"border",_n(mm(T.divider,1),.68)),_e(T.Tooltip,"bg",mm(T.grey[700],.92))}Ci(T.background,"default"),Ci(T.background,"paper"),Ci(T.common,"background"),Ci(T.common,"onBackground"),Ci(T,"divider"),Object.keys(T).forEach(U=>{const B=T[U];U!=="tonalOffset"&&B&&typeof B=="object"&&(B.main&&_e(T[U],"mainChannel",cf(uf(B.main))),B.light&&_e(T[U],"lightChannel",cf(uf(B.light))),B.dark&&_e(T[U],"darkChannel",cf(uf(B.dark))),B.contrastText&&_e(T[U],"contrastTextChannel",cf(uf(B.contrastText))),U==="text"&&(Ci(T[U],"primary"),Ci(T[U],"secondary")),U==="action"&&(B.active&&Ci(T[U],"active"),B.selected&&Ci(T[U],"selected")))})}),R=t.reduce((j,T)=>$r(j,T),R);const O={prefix:o,disableCssColorScheme:a,shouldSkipGeneratingVar:s,getSelector:OV(R)},{vars:k,generateThemeVars:F,generateStyleSheets:G}=PV(R,O);return R.vars=k,Object.entries(R.colorSchemes[R.defaultColorScheme]).forEach(([j,T])=>{R[j]=T}),R.generateThemeVars=F,R.generateStyleSheets=G,R.generateSpacing=function(){return QT(d.spacing,kS(this))},R.getColorSchemeSelector=MV(c),R.spacing=R.generateSpacing(),R.shouldSkipGeneratingVar=s,R.unstable_sxConfig={...Rp,...d?.unstable_sxConfig},R.unstable_sx=function(j){return du({sx:j,theme:this})},R.toRuntimeSource=N3,R}function vD(e,t,n){e.colorSchemes&&n&&(e.colorSchemes[t]={...n!==!0&&n,palette:xS({...n===!0?{}:n.palette,mode:t})})}function jV(e={},...t){const{palette:n,cssVariables:r=!1,colorSchemes:a=n?void 0:{light:!0},defaultColorScheme:o=n?.mode,...s}=e,c=o||"light",u=a?.[c],d={...a,...n?{[c]:{...typeof u!="boolean"&&u,palette:n}}:void 0};if(r===!1){if(!("colorSchemes"in e))return gE(e,...t);let p=n;"palette"in e||d[c]&&(d[c]!==!0?p=d[c].palette:c==="dark"&&(p={mode:"dark"}));const h=gE({...e,palette:p},...t);return h.defaultColorScheme=c,h.colorSchemes=d,h.palette.mode==="light"&&(h.colorSchemes.light={...d.light!==!0&&d.light,palette:h.palette},vD(h,"dark",d.dark)),h.palette.mode==="dark"&&(h.colorSchemes.dark={...d.dark!==!0&&d.dark,palette:h.palette},vD(h,"light",d.light)),h}return!n&&!("light"in d)&&c==="light"&&(d.light=!0),UV({...s,colorSchemes:d,defaultColorScheme:c,...typeof r!="boolean"&&r},...t)}const xy=jV(),wy="$$material";function $3(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const ea=e=>$3(e)&&e!=="classes";function HV(e){for(var t=0,n,r=0,a=e.length;a>=4;++r,a-=4)n=e.charCodeAt(r)&255|(e.charCodeAt(++r)&255)<<8|(e.charCodeAt(++r)&255)<<16|(e.charCodeAt(++r)&255)<<24,n=(n&65535)*1540483477+((n>>>16)*59797<<16),n^=n>>>24,t=(n&65535)*1540483477+((n>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(a){case 3:t^=(e.charCodeAt(r+2)&255)<<16;case 2:t^=(e.charCodeAt(r+1)&255)<<8;case 1:t^=e.charCodeAt(r)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}var zV={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,scale:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1};function VV(e){var t=Object.create(null);return function(n){return t[n]===void 0&&(t[n]=e(n)),t[n]}}var GV=/[A-Z]|^ms/g,qV=/_EMO_([^_]+?)_([^]*?)_EMO_/g,F3=function(e){return e.charCodeAt(1)===45},bD=function(e){return e!=null&&typeof e!="boolean"},zv=VV(function(e){return F3(e)?e:e.replace(GV,"-$&").toLowerCase()}),ED=function(e,t){switch(e){case"animation":case"animationName":if(typeof t=="string")return t.replace(qV,function(n,r,a){return Ts={name:r,styles:a,next:Ts},r})}return zV[e]!==1&&!F3(e)&&typeof t=="number"&&t!==0?t+"px":t};function Tg(e,t,n){if(n==null)return"";var r=n;if(r.__emotion_styles!==void 0)return r;switch(typeof n){case"boolean":return"";case"object":{var a=n;if(a.anim===1)return Ts={name:a.name,styles:a.styles,next:Ts},a.name;var o=n;if(o.styles!==void 0){var s=o.next;if(s!==void 0)for(;s!==void 0;)Ts={name:s.name,styles:s.styles,next:Ts},s=s.next;var c=o.styles+";";return c}return WV(e,t,n)}}var u=n;return u}function WV(e,t,n){var r="";if(Array.isArray(n))for(var a=0;a<n.length;a++)r+=Tg(e,t,n[a])+";";else for(var o in n){var s=n[o];if(typeof s!="object"){var c=s;bD(c)&&(r+=zv(o)+":"+ED(o,c)+";")}else if(Array.isArray(s)&&typeof s[0]=="string"&&t==null)for(var u=0;u<s.length;u++)bD(s[u])&&(r+=zv(o)+":"+ED(o,s[u])+";");else{var d=Tg(e,t,s);switch(o){case"animation":case"animationName":{r+=zv(o)+":"+d+";";break}default:r+=o+"{"+d+"}"}}}return r}var TD=/label:\s*([^\s;{]+)\s*(;|$)/g,Ts;function YV(e,t,n){if(e.length===1&&typeof e[0]=="object"&&e[0]!==null&&e[0].styles!==void 0)return e[0];var r=!0,a="";Ts=void 0;var o=e[0];if(o==null||o.raw===void 0)r=!1,a+=Tg(n,t,o);else{var s=o;a+=s[0]}for(var c=1;c<e.length;c++)if(a+=Tg(n,t,e[c]),r){var u=o;a+=u[c]}TD.lastIndex=0;for(var d="",p;(p=TD.exec(a))!==null;)d+="-"+p[1];var h=HV(a)+d;return{name:h,styles:a,next:Ts}}function QV(e,t){return hg(e,t)}function KV(e,t){Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))}const SD=[];function _l(e){return SD[0]=e,YV(SD)}function XV(e){const{variants:t,...n}=e,r={variants:t,style:_l(n),isProcessed:!0};return r.style===n||t&&t.forEach(a=>{typeof a.style!="function"&&(a.style=_l(a.style))}),r}const ZV=OS();function ws(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}function ml(e,t){return t&&e&&typeof e=="object"&&e.styles&&!e.styles.startsWith("@layer")&&(e.styles=`@layer ${t}{${String(e.styles)}}`),e}function JV(e){return e?(t,n)=>n[e]:null}function eG(e,t,n){e.theme=nG(e.theme)?n:e.theme[t]||e.theme}function Gm(e,t,n){const r=typeof t=="function"?t(e):t;if(Array.isArray(r))return r.flatMap(a=>Gm(e,a,n));if(Array.isArray(r?.variants)){let a;if(r.isProcessed)a=n?ml(r.style,n):r.style;else{const{variants:o,...s}=r;a=n?ml(_l(s),n):s}return B3(e,r.variants,[a],n)}return r?.isProcessed?n?ml(_l(r.style),n):r.style:n?ml(_l(r),n):r}function B3(e,t,n=[],r=void 0){let a;e:for(let o=0;o<t.length;o+=1){const s=t[o];if(typeof s.props=="function"){if(a??={...e,...e.ownerState,ownerState:e.ownerState},!s.props(a))continue}else for(const c in s.props)if(e[c]!==s.props[c]&&e.ownerState?.[c]!==s.props[c])continue e;typeof s.style=="function"?(a??={...e,...e.ownerState,ownerState:e.ownerState},n.push(r?ml(_l(s.style(a)),r):s.style(a))):n.push(r?ml(_l(s.style),r):s.style)}return n}function tG(e={}){const{themeId:t,defaultTheme:n=ZV,rootShouldForwardProp:r=ws,slotShouldForwardProp:a=ws}=e;function o(s){eG(s,t,n)}return(s,c={})=>{KV(s,O=>O.filter(k=>k!==du));const{name:u,slot:d,skipVariantsResolver:p,skipSx:h,overridesResolver:g=JV(aG(d)),...y}=c,b=u&&u.startsWith("Mui")||d?"components":"custom",E=p!==void 0?p:d&&d!=="Root"&&d!=="root"||!1,_=h||!1;let A=ws;d==="Root"||d==="root"?A=r:d?A=a:rG(s)&&(A=void 0);const D=QV(s,{shouldForwardProp:A,label:void 0,...y}),w=O=>{if(O.__emotion_real===O)return O;if(typeof O=="function")return function(k){return Gm(k,O,k.theme.modularCssLayers?b:void 0)};if(Wo(O)){const k=XV(O);return function(F){return k.variants?Gm(F,k,F.theme.modularCssLayers?b:void 0):F.theme.modularCssLayers?ml(k.style,b):k.style}}return O},R=(...O)=>{const k=[],F=O.map(w),G=[];if(k.push(o),u&&g&&G.push(function(M){const U=M.theme.components?.[u]?.styleOverrides;if(!U)return null;const B={};for(const Y in U)B[Y]=Gm(M,U[Y],M.theme.modularCssLayers?"theme":void 0);return g(M,B)}),u&&!E&&G.push(function(M){const U=M.theme?.components?.[u]?.variants;return U?B3(M,U,[],M.theme.modularCssLayers?"theme":void 0):null}),_||G.push(du),Array.isArray(F[0])){const M=F.shift(),U=new Array(k.length).fill(""),B=new Array(G.length).fill("");let Y;Y=[...U,...M,...B],Y.raw=[...U,...M.raw,...B],k.unshift(Y)}const j=[...k,...F,...G],T=D(...j);return s.muiName&&(T.muiName=s.muiName),T};return D.withConfig&&(R.withConfig=D.withConfig),R}}function nG(e){for(const t in e)return!1;return!0}function rG(e){return typeof e=="string"&&e.charCodeAt(0)>96}function aG(e){return e&&e.charAt(0).toLowerCase()+e.slice(1)}const ze=tG({themeId:wy,defaultTheme:xy,rootShouldForwardProp:ea});function zt(e,t,n=void 0){const r={};for(const a in e){const o=e[a];let s="",c=!0;for(let u=0;u<o.length;u+=1){const d=o[u];d&&(s+=(c===!0?"":" ")+t(d),c=!1,n&&n[d]&&(s+=" "+n[d]))}r[a]=s}return r}const oG=e=>{const{color:t,fontSize:n,classes:r}=e,a={root:["root",t!=="inherit"&&`color${rt(t)}`,`fontSize${rt(n)}`]};return zt(a,oz,r)},iG=ze("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.color!=="inherit"&&t[`color${rt(n.color)}`],t[`fontSize${rt(n.fontSize)}`]]}})(fn(({theme:e})=>({userSelect:"none",width:"1em",height:"1em",display:"inline-block",flexShrink:0,transition:e.transitions?.create?.("fill",{duration:(e.vars??e).transitions?.duration?.shorter}),variants:[{props:t=>!t.hasSvgAsChild,style:{fill:"currentColor"}},{props:{fontSize:"inherit"},style:{fontSize:"inherit"}},{props:{fontSize:"small"},style:{fontSize:e.typography?.pxToRem?.(20)||"1.25rem"}},{props:{fontSize:"medium"},style:{fontSize:e.typography?.pxToRem?.(24)||"1.5rem"}},{props:{fontSize:"large"},style:{fontSize:e.typography?.pxToRem?.(35)||"2.1875rem"}},...Object.entries((e.vars??e).palette).filter(([,t])=>t&&t.main).map(([t])=>({props:{color:t},style:{color:(e.vars??e).palette?.[t]?.main}})),{props:{color:"action"},style:{color:(e.vars??e).palette?.action?.active}},{props:{color:"disabled"},style:{color:(e.vars??e).palette?.action?.disabled}},{props:{color:"inherit"},style:{color:void 0}}]}))),vE=x.forwardRef(function(e,t){const n=Yt({props:e,name:"MuiSvgIcon"}),{children:r,className:a,color:o="inherit",component:s="svg",fontSize:c="medium",htmlColor:u,inheritViewBox:d=!1,titleAccess:p,viewBox:h="0 0 24 24",...g}=n,y=x.isValidElement(r)&&r.type==="svg",b={...n,color:o,component:s,fontSize:c,instanceFontSize:e.fontSize,inheritViewBox:d,viewBox:h,hasSvgAsChild:y},E={};d||(E.viewBox=h);const _=oG(b);return P.jsxs(iG,{as:s,className:mt(_.root,a),focusable:"false",color:u,"aria-hidden":p?void 0:!0,role:p?"img":void 0,ref:t,...E,...g,...y&&r.props,ownerState:b,children:[y?r.props.children:r,p?P.jsx("title",{children:p}):null]})});vE.muiName="SvgIcon";function wn(e,t){function n(r,a){return P.jsx(vE,{"data-testid":void 0,ref:a,...r,children:e})}return n.muiName=vE.muiName,x.memo(x.forwardRef(n))}const Lge=wn(P.jsx("path",{d:"M15.5 14h-.79l-.28-.27C15.41 12.59 16 11.11 16 9.5 16 5.91 13.09 3 9.5 3S3 5.91 3 9.5 5.91 16 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14"}));function bE({text:e,size:t=20,color:n="primary",thickness:r=3.6,centered:a=!0,spacing:o=2,textVariant:s="body2"}){const c=P.jsxs(Sl,{sx:{display:"flex",flexDirection:"column",alignItems:"center",gap:o},children:[P.jsx(pS,{size:t,color:n,thickness:r}),e&&P.jsx(hS,{variant:s,color:"text.secondary",children:e})]});return a?P.jsx(Sl,{sx:{display:"flex",justifyContent:"center",alignItems:"center",minHeight:"200px",width:"100%"},children:c}):c}const sG=xt(_3)({display:"flex",flexDirection:"column",height:"100%",boxShadow:"none",border:"none",backgroundColor:"transparent"}),lG=xt(C3)({display:"flex",flexDirection:"column",padding:"0",flexGrow:1}),U3=xt(jH)({padding:"0"}),Pge=xt("div")({backgroundColor:"#ffffff",padding:"0 32px 32px 32px",borderRadius:"12px",boxShadow:"none",border:"none",maxWidth:"1200px",margin:"0 auto"});xt("div")({marginBottom:"40px",paddingBottom:"24px",borderBottom:"1px solid #f0f0f0"});const Mge=xt("div")({marginBottom:"48px",padding:"0",backgroundColor:"transparent",border:"none",boxShadow:"none"}),$ge=xt("div")({marginBottom:"0",padding:"0",backgroundColor:"transparent",border:"none",boxShadow:"none"}),Fge=xt("div")({backgroundColor:"#ffffff",padding:"24px",borderRadius:"8px",border:"1px solid #f0f0f0",boxShadow:"0 1px 3px rgba(0, 0, 0, 0.04)",marginBottom:"0",transition:"box-shadow 0.2s ease-in-out","&:hover":{boxShadow:"0 2px 6px rgba(0, 0, 0, 0.08)"}});xt("div")({backgroundColor:"#f8f9fa",padding:"16px",borderRadius:"8px",border:"1px solid #e9ecef",fontFamily:"'Monaco', 'Menlo', 'Ubuntu Mono', monospace",fontSize:"13px",lineHeight:"1.5",overflowX:"auto"});xt("div")({backgroundColor:"#f8f9fa",padding:"12px 16px",borderRadius:"8px",border:"1px solid #e9ecef",marginBottom:"16px",display:"flex",justifyContent:"space-between",alignItems:"center"});const cG=xt("div")({height:"100%"});xt("div")({height:"30px",backgroundColor:"rgba(225, 240, 255, 1)",display:"flex",padding:"4px",alignItems:"center"});const j3=xt("div")({height:"75vh",width:"100%",overflowY:"auto"});xt("div")({position:"relative",height:"100%",flex:"0 0 auto"});const Bge=xt(_3)({backgroundColor:"#ffffff",padding:"24px",borderRadius:"8px",border:"1px solid #f0f0f0",boxShadow:"0 1px 3px rgba(0, 0, 0, 0.04)",height:"100%",transition:"box-shadow 0.2s ease-in-out","&:hover":{boxShadow:"0 2px 6px rgba(0, 0, 0, 0.08)"}}),Uge=xt(C3)({padding:"0","&:last-child":{paddingBottom:"0"}}),jge=xt("div")({fontSize:"12px",fontWeight:"600",color:"#666666",textTransform:"uppercase",letterSpacing:"0.5px",marginBottom:"16px",paddingBottom:"8px",borderBottom:"1px solid #f0f0f0"}),Hge=xt("div")({padding:"32px",maxWidth:"1400px",margin:"0 auto",minHeight:"100vh"});var Tu=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(e){return this.listeners.add(e),this.onSubscribe(),()=>{this.listeners.delete(e),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},Il=typeof window>"u"||"Deno"in globalThis;function qr(){}function uG(e,t){return typeof e=="function"?e(t):e}function EE(e){return typeof e=="number"&&e>=0&&e!==1/0}function H3(e,t){return Math.max(e+(t||0)-Date.now(),0)}function Ds(e,t){return typeof e=="function"?e(t):e}function Xa(e,t){return typeof e=="function"?e(t):e}function _D(e,t){const{type:n="all",exact:r,fetchStatus:a,predicate:o,queryKey:s,stale:c}=e;if(s){if(r){if(t.queryHash!==IS(s,t.options))return!1}else if(!Qf(t.queryKey,s))return!1}if(n!=="all"){const u=t.isActive();if(n==="active"&&!u||n==="inactive"&&u)return!1}return!(typeof c=="boolean"&&t.isStale()!==c||a&&a!==t.state.fetchStatus||o&&!o(t))}function CD(e,t){const{exact:n,status:r,predicate:a,mutationKey:o}=e;if(o){if(!t.options.mutationKey)return!1;if(n){if(Nl(t.options.mutationKey)!==Nl(o))return!1}else if(!Qf(t.options.mutationKey,o))return!1}return!(r&&t.state.status!==r||a&&!a(t))}function IS(e,t){return(t?.queryKeyHashFn||Nl)(e)}function Nl(e){return JSON.stringify(e,(t,n)=>TE(n)?Object.keys(n).sort().reduce((r,a)=>(r[a]=n[a],r),{}):n)}function Qf(e,t){return e===t?!0:typeof e!=typeof t?!1:e&&t&&typeof e=="object"&&typeof t=="object"?Object.keys(t).every(n=>Qf(e[n],t[n])):!1}function z3(e,t){if(e===t)return e;const n=AD(e)&&AD(t);if(n||TE(e)&&TE(t)){const r=n?e:Object.keys(e),a=r.length,o=n?t:Object.keys(t),s=o.length,c=n?[]:{},u=new Set(r);let d=0;for(let p=0;p<s;p++){const h=n?p:o[p];(!n&&u.has(h)||n)&&e[h]===void 0&&t[h]===void 0?(c[h]=void 0,d++):(c[h]=z3(e[h],t[h]),c[h]===e[h]&&e[h]!==void 0&&d++)}return a===s&&d===a?e:c}return t}function Sg(e,t){if(!t||Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e)if(e[n]!==t[n])return!1;return!0}function AD(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function TE(e){if(!xD(e))return!1;const t=e.constructor;if(t===void 0)return!0;const n=t.prototype;return!(!xD(n)||!n.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(e)!==Object.prototype)}function xD(e){return Object.prototype.toString.call(e)==="[object Object]"}function dG(e){return new Promise(t=>{setTimeout(t,e)})}function SE(e,t,n){return typeof n.structuralSharing=="function"?n.structuralSharing(e,t):n.structuralSharing!==!1?z3(e,t):t}function fG(e,t,n=0){const r=[...e,t];return n&&r.length>n?r.slice(1):r}function pG(e,t,n=0){const r=[t,...e];return n&&r.length>n?r.slice(0,-1):r}var NS=Symbol();function V3(e,t){return!e.queryFn&&t?.initialPromise?()=>t.initialPromise:!e.queryFn||e.queryFn===NS?()=>Promise.reject(new Error(`Missing queryFn: '${e.queryHash}'`)):e.queryFn}function G3(e,t){return typeof e=="function"?e(...t):!!e}var hG=class extends Tu{#t;#e;#n;constructor(){super(),this.#n=e=>{if(!Il&&window.addEventListener){const t=()=>e();return window.addEventListener("visibilitychange",t,!1),()=>{window.removeEventListener("visibilitychange",t)}}}}onSubscribe(){this.#e||this.setEventListener(this.#n)}onUnsubscribe(){this.hasListeners()||(this.#e?.(),this.#e=void 0)}setEventListener(e){this.#n=e,this.#e?.(),this.#e=e(t=>{typeof t=="boolean"?this.setFocused(t):this.onFocus()})}setFocused(e){this.#t!==e&&(this.#t=e,this.onFocus())}onFocus(){const e=this.isFocused();this.listeners.forEach(t=>{t(e)})}isFocused(){return typeof this.#t=="boolean"?this.#t:globalThis.document?.visibilityState!=="hidden"}},LS=new hG,mG=class extends Tu{#t=!0;#e;#n;constructor(){super(),this.#n=e=>{if(!Il&&window.addEventListener){const t=()=>e(!0),n=()=>e(!1);return window.addEventListener("online",t,!1),window.addEventListener("offline",n,!1),()=>{window.removeEventListener("online",t),window.removeEventListener("offline",n)}}}}onSubscribe(){this.#e||this.setEventListener(this.#n)}onUnsubscribe(){this.hasListeners()||(this.#e?.(),this.#e=void 0)}setEventListener(e){this.#n=e,this.#e?.(),this.#e=e(this.setOnline.bind(this))}setOnline(e){this.#t!==e&&(this.#t=e,this.listeners.forEach(n=>{n(e)}))}isOnline(){return this.#t}},_g=new mG;function _E(){let e,t;const n=new Promise((a,o)=>{e=a,t=o});n.status="pending",n.catch(()=>{});function r(a){Object.assign(n,a),delete n.resolve,delete n.reject}return n.resolve=a=>{r({status:"fulfilled",value:a}),e(a)},n.reject=a=>{r({status:"rejected",reason:a}),t(a)},n}function gG(e){return Math.min(1e3*2**e,3e4)}function q3(e){return(e??"online")==="online"?_g.isOnline():!0}var W3=class extends Error{constructor(e){super("CancelledError"),this.revert=e?.revert,this.silent=e?.silent}};function Vv(e){return e instanceof W3}function Y3(e){let t=!1,n=0,r=!1,a;const o=_E(),s=E=>{r||(g(new W3(E)),e.abort?.())},c=()=>{t=!0},u=()=>{t=!1},d=()=>LS.isFocused()&&(e.networkMode==="always"||_g.isOnline())&&e.canRun(),p=()=>q3(e.networkMode)&&e.canRun(),h=E=>{r||(r=!0,e.onSuccess?.(E),a?.(),o.resolve(E))},g=E=>{r||(r=!0,e.onError?.(E),a?.(),o.reject(E))},y=()=>new Promise(E=>{a=_=>{(r||d())&&E(_)},e.onPause?.()}).then(()=>{a=void 0,r||e.onContinue?.()}),b=()=>{if(r)return;let E;const _=n===0?e.initialPromise:void 0;try{E=_??e.fn()}catch(A){E=Promise.reject(A)}Promise.resolve(E).then(h).catch(A=>{if(r)return;const D=e.retry??(Il?0:3),w=e.retryDelay??gG,R=typeof w=="function"?w(n,A):w,O=D===!0||typeof D=="number"&&n<D||typeof D=="function"&&D(n,A);if(t||!O){g(A);return}n++,e.onFail?.(n,A),dG(R).then(()=>d()?void 0:y()).then(()=>{t?g(A):b()})})};return{promise:o,cancel:s,continue:()=>(a?.(),o),cancelRetry:c,continueRetry:u,canStart:p,start:()=>(p()?b():y().then(b),o)}}var yG=e=>setTimeout(e,0);function vG(){let e=[],t=0,n=c=>{c()},r=c=>{c()},a=yG;const o=c=>{t?e.push(c):a(()=>{n(c)})},s=()=>{const c=e;e=[],c.length&&a(()=>{r(()=>{c.forEach(u=>{n(u)})})})};return{batch:c=>{let u;t++;try{u=c()}finally{t--,t||s()}return u},batchCalls:c=>(...u)=>{o(()=>{c(...u)})},schedule:o,setNotifyFunction:c=>{n=c},setBatchNotifyFunction:c=>{r=c},setScheduler:c=>{a=c}}}var pr=vG(),Q3=class{#t;destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),EE(this.gcTime)&&(this.#t=setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(Il?1/0:300*1e3))}clearGcTimeout(){this.#t&&(clearTimeout(this.#t),this.#t=void 0)}},bG=class extends Q3{#t;#e;#n;#r;#a;#i;#s;constructor(e){super(),this.#s=!1,this.#i=e.defaultOptions,this.setOptions(e.options),this.observers=[],this.#r=e.client,this.#n=this.#r.getQueryCache(),this.queryKey=e.queryKey,this.queryHash=e.queryHash,this.#t=EG(this.options),this.state=e.state??this.#t,this.scheduleGc()}get meta(){return this.options.meta}get promise(){return this.#a?.promise}setOptions(e){this.options={...this.#i,...e},this.updateGcTime(this.options.gcTime)}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&this.#n.remove(this)}setData(e,t){const n=SE(this.state.data,e,this.options);return this.#o({data:n,type:"success",dataUpdatedAt:t?.updatedAt,manual:t?.manual}),n}setState(e,t){this.#o({type:"setState",state:e,setStateOptions:t})}cancel(e){const t=this.#a?.promise;return this.#a?.cancel(e),t?t.then(qr).catch(qr):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(this.#t)}isActive(){return this.observers.some(e=>Xa(e.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===NS||this.state.dataUpdateCount+this.state.errorUpdateCount===0}isStatic(){return this.getObserversCount()>0?this.observers.some(e=>Ds(e.options.staleTime,this)==="static"):!1}isStale(){return this.getObserversCount()>0?this.observers.some(e=>e.getCurrentResult().isStale):this.state.data===void 0||this.state.isInvalidated}isStaleByTime(e=0){return this.state.data===void 0?!0:e==="static"?!1:this.state.isInvalidated?!0:!H3(this.state.dataUpdatedAt,e)}onFocus(){this.observers.find(t=>t.shouldFetchOnWindowFocus())?.refetch({cancelRefetch:!1}),this.#a?.continue()}onOnline(){this.observers.find(t=>t.shouldFetchOnReconnect())?.refetch({cancelRefetch:!1}),this.#a?.continue()}addObserver(e){this.observers.includes(e)||(this.observers.push(e),this.clearGcTimeout(),this.#n.notify({type:"observerAdded",query:this,observer:e}))}removeObserver(e){this.observers.includes(e)&&(this.observers=this.observers.filter(t=>t!==e),this.observers.length||(this.#a&&(this.#s?this.#a.cancel({revert:!0}):this.#a.cancelRetry()),this.scheduleGc()),this.#n.notify({type:"observerRemoved",query:this,observer:e}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||this.#o({type:"invalidate"})}fetch(e,t){if(this.state.fetchStatus!=="idle"){if(this.state.data!==void 0&&t?.cancelRefetch)this.cancel({silent:!0});else if(this.#a)return this.#a.continueRetry(),this.#a.promise}if(e&&this.setOptions(e),!this.options.queryFn){const u=this.observers.find(d=>d.options.queryFn);u&&this.setOptions(u.options)}const n=new AbortController,r=u=>{Object.defineProperty(u,"signal",{enumerable:!0,get:()=>(this.#s=!0,n.signal)})},a=()=>{const u=V3(this.options,t),p=(()=>{const h={client:this.#r,queryKey:this.queryKey,meta:this.meta};return r(h),h})();return this.#s=!1,this.options.persister?this.options.persister(u,p,this):u(p)},s=(()=>{const u={fetchOptions:t,options:this.options,queryKey:this.queryKey,client:this.#r,state:this.state,fetchFn:a};return r(u),u})();this.options.behavior?.onFetch(s,this),this.#e=this.state,(this.state.fetchStatus==="idle"||this.state.fetchMeta!==s.fetchOptions?.meta)&&this.#o({type:"fetch",meta:s.fetchOptions?.meta});const c=u=>{Vv(u)&&u.silent||this.#o({type:"error",error:u}),Vv(u)||(this.#n.config.onError?.(u,this),this.#n.config.onSettled?.(this.state.data,u,this)),this.scheduleGc()};return this.#a=Y3({initialPromise:t?.initialPromise,fn:s.fetchFn,abort:n.abort.bind(n),onSuccess:u=>{if(u===void 0){c(new Error(`${this.queryHash} data is undefined`));return}try{this.setData(u)}catch(d){c(d);return}this.#n.config.onSuccess?.(u,this),this.#n.config.onSettled?.(u,this.state.error,this),this.scheduleGc()},onError:c,onFail:(u,d)=>{this.#o({type:"failed",failureCount:u,error:d})},onPause:()=>{this.#o({type:"pause"})},onContinue:()=>{this.#o({type:"continue"})},retry:s.options.retry,retryDelay:s.options.retryDelay,networkMode:s.options.networkMode,canRun:()=>!0}),this.#a.start()}#o(e){const t=n=>{switch(e.type){case"failed":return{...n,fetchFailureCount:e.failureCount,fetchFailureReason:e.error};case"pause":return{...n,fetchStatus:"paused"};case"continue":return{...n,fetchStatus:"fetching"};case"fetch":return{...n,...K3(n.data,this.options),fetchMeta:e.meta??null};case"success":return this.#e=void 0,{...n,data:e.data,dataUpdateCount:n.dataUpdateCount+1,dataUpdatedAt:e.dataUpdatedAt??Date.now(),error:null,isInvalidated:!1,status:"success",...!e.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};case"error":const r=e.error;return Vv(r)&&r.revert&&this.#e?{...this.#e,fetchStatus:"idle"}:{...n,error:r,errorUpdateCount:n.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:n.fetchFailureCount+1,fetchFailureReason:r,fetchStatus:"idle",status:"error"};case"invalidate":return{...n,isInvalidated:!0};case"setState":return{...n,...e.state}}};this.state=t(this.state),pr.batch(()=>{this.observers.forEach(n=>{n.onQueryUpdate()}),this.#n.notify({query:this,type:"updated",action:e})})}};function K3(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:q3(t.networkMode)?"fetching":"paused",...e===void 0&&{error:null,status:"pending"}}}function EG(e){const t=typeof e.initialData=="function"?e.initialData():e.initialData,n=t!==void 0,r=n?typeof e.initialDataUpdatedAt=="function"?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:n?r??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:n?"success":"pending",fetchStatus:"idle"}}var TG=class extends Tu{constructor(e={}){super(),this.config=e,this.#t=new Map}#t;build(e,t,n){const r=t.queryKey,a=t.queryHash??IS(r,t);let o=this.get(a);return o||(o=new bG({client:e,queryKey:r,queryHash:a,options:e.defaultQueryOptions(t),state:n,defaultOptions:e.getQueryDefaults(r)}),this.add(o)),o}add(e){this.#t.has(e.queryHash)||(this.#t.set(e.queryHash,e),this.notify({type:"added",query:e}))}remove(e){const t=this.#t.get(e.queryHash);t&&(e.destroy(),t===e&&this.#t.delete(e.queryHash),this.notify({type:"removed",query:e}))}clear(){pr.batch(()=>{this.getAll().forEach(e=>{this.remove(e)})})}get(e){return this.#t.get(e)}getAll(){return[...this.#t.values()]}find(e){const t={exact:!0,...e};return this.getAll().find(n=>_D(t,n))}findAll(e={}){const t=this.getAll();return Object.keys(e).length>0?t.filter(n=>_D(e,n)):t}notify(e){pr.batch(()=>{this.listeners.forEach(t=>{t(e)})})}onFocus(){pr.batch(()=>{this.getAll().forEach(e=>{e.onFocus()})})}onOnline(){pr.batch(()=>{this.getAll().forEach(e=>{e.onOnline()})})}},SG=class extends Q3{#t;#e;#n;constructor(e){super(),this.mutationId=e.mutationId,this.#e=e.mutationCache,this.#t=[],this.state=e.state||X3(),this.setOptions(e.options),this.scheduleGc()}setOptions(e){this.options=e,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(e){this.#t.includes(e)||(this.#t.push(e),this.clearGcTimeout(),this.#e.notify({type:"observerAdded",mutation:this,observer:e}))}removeObserver(e){this.#t=this.#t.filter(t=>t!==e),this.scheduleGc(),this.#e.notify({type:"observerRemoved",mutation:this,observer:e})}optionalRemove(){this.#t.length||(this.state.status==="pending"?this.scheduleGc():this.#e.remove(this))}continue(){return this.#n?.continue()??this.execute(this.state.variables)}async execute(e){const t=()=>{this.#r({type:"continue"})};this.#n=Y3({fn:()=>this.options.mutationFn?this.options.mutationFn(e):Promise.reject(new Error("No mutationFn found")),onFail:(a,o)=>{this.#r({type:"failed",failureCount:a,error:o})},onPause:()=>{this.#r({type:"pause"})},onContinue:t,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>this.#e.canRun(this)});const n=this.state.status==="pending",r=!this.#n.canStart();try{if(n)t();else{this.#r({type:"pending",variables:e,isPaused:r}),await this.#e.config.onMutate?.(e,this);const o=await this.options.onMutate?.(e);o!==this.state.context&&this.#r({type:"pending",context:o,variables:e,isPaused:r})}const a=await this.#n.start();return await this.#e.config.onSuccess?.(a,e,this.state.context,this),await this.options.onSuccess?.(a,e,this.state.context),await this.#e.config.onSettled?.(a,null,this.state.variables,this.state.context,this),await this.options.onSettled?.(a,null,e,this.state.context),this.#r({type:"success",data:a}),a}catch(a){try{throw await this.#e.config.onError?.(a,e,this.state.context,this),await this.options.onError?.(a,e,this.state.context),await this.#e.config.onSettled?.(void 0,a,this.state.variables,this.state.context,this),await this.options.onSettled?.(void 0,a,e,this.state.context),a}finally{this.#r({type:"error",error:a})}}finally{this.#e.runNext(this)}}#r(e){const t=n=>{switch(e.type){case"failed":return{...n,failureCount:e.failureCount,failureReason:e.error};case"pause":return{...n,isPaused:!0};case"continue":return{...n,isPaused:!1};case"pending":return{...n,context:e.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:e.isPaused,status:"pending",variables:e.variables,submittedAt:Date.now()};case"success":return{...n,data:e.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...n,data:void 0,error:e.error,failureCount:n.failureCount+1,failureReason:e.error,isPaused:!1,status:"error"}}};this.state=t(this.state),pr.batch(()=>{this.#t.forEach(n=>{n.onMutationUpdate(e)}),this.#e.notify({mutation:this,type:"updated",action:e})})}};function X3(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var _G=class extends Tu{constructor(e={}){super(),this.config=e,this.#t=new Set,this.#e=new Map,this.#n=0}#t;#e;#n;build(e,t,n){const r=new SG({mutationCache:this,mutationId:++this.#n,options:e.defaultMutationOptions(t),state:n});return this.add(r),r}add(e){this.#t.add(e);const t=ym(e);if(typeof t=="string"){const n=this.#e.get(t);n?n.push(e):this.#e.set(t,[e])}this.notify({type:"added",mutation:e})}remove(e){if(this.#t.delete(e)){const t=ym(e);if(typeof t=="string"){const n=this.#e.get(t);if(n)if(n.length>1){const r=n.indexOf(e);r!==-1&&n.splice(r,1)}else n[0]===e&&this.#e.delete(t)}}this.notify({type:"removed",mutation:e})}canRun(e){const t=ym(e);if(typeof t=="string"){const r=this.#e.get(t)?.find(a=>a.state.status==="pending");return!r||r===e}else return!0}runNext(e){const t=ym(e);return typeof t=="string"?this.#e.get(t)?.find(r=>r!==e&&r.state.isPaused)?.continue()??Promise.resolve():Promise.resolve()}clear(){pr.batch(()=>{this.#t.forEach(e=>{this.notify({type:"removed",mutation:e})}),this.#t.clear(),this.#e.clear()})}getAll(){return Array.from(this.#t)}find(e){const t={exact:!0,...e};return this.getAll().find(n=>CD(t,n))}findAll(e={}){return this.getAll().filter(t=>CD(e,t))}notify(e){pr.batch(()=>{this.listeners.forEach(t=>{t(e)})})}resumePausedMutations(){const e=this.getAll().filter(t=>t.state.isPaused);return pr.batch(()=>Promise.all(e.map(t=>t.continue().catch(qr))))}};function ym(e){return e.options.scope?.id}function wD(e){return{onFetch:(t,n)=>{const r=t.options,a=t.fetchOptions?.meta?.fetchMore?.direction,o=t.state.data?.pages||[],s=t.state.data?.pageParams||[];let c={pages:[],pageParams:[]},u=0;const d=async()=>{let p=!1;const h=b=>{Object.defineProperty(b,"signal",{enumerable:!0,get:()=>(t.signal.aborted?p=!0:t.signal.addEventListener("abort",()=>{p=!0}),t.signal)})},g=V3(t.options,t.fetchOptions),y=async(b,E,_)=>{if(p)return Promise.reject();if(E==null&&b.pages.length)return Promise.resolve(b);const D=(()=>{const k={client:t.client,queryKey:t.queryKey,pageParam:E,direction:_?"backward":"forward",meta:t.options.meta};return h(k),k})(),w=await g(D),{maxPages:R}=t.options,O=_?pG:fG;return{pages:O(b.pages,w,R),pageParams:O(b.pageParams,E,R)}};if(a&&o.length){const b=a==="backward",E=b?CG:DD,_={pages:o,pageParams:s},A=E(r,_);c=await y(_,A,b)}else{const b=e??o.length;do{const E=u===0?s[0]??r.initialPageParam:DD(r,c);if(u>0&&E==null)break;c=await y(c,E),u++}while(u<b)}return c};t.options.persister?t.fetchFn=()=>t.options.persister?.(d,{client:t.client,queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},n):t.fetchFn=d}}}function DD(e,{pages:t,pageParams:n}){const r=t.length-1;return t.length>0?e.getNextPageParam(t[r],t,n[r],n):void 0}function CG(e,{pages:t,pageParams:n}){return t.length>0?e.getPreviousPageParam?.(t[0],t,n[0],n):void 0}var AG=class{#t;#e;#n;#r;#a;#i;#s;#o;constructor(e={}){this.#t=e.queryCache||new TG,this.#e=e.mutationCache||new _G,this.#n=e.defaultOptions||{},this.#r=new Map,this.#a=new Map,this.#i=0}mount(){this.#i++,this.#i===1&&(this.#s=LS.subscribe(async e=>{e&&(await this.resumePausedMutations(),this.#t.onFocus())}),this.#o=_g.subscribe(async e=>{e&&(await this.resumePausedMutations(),this.#t.onOnline())}))}unmount(){this.#i--,this.#i===0&&(this.#s?.(),this.#s=void 0,this.#o?.(),this.#o=void 0)}isFetching(e){return this.#t.findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return this.#e.findAll({...e,status:"pending"}).length}getQueryData(e){const t=this.defaultQueryOptions({queryKey:e});return this.#t.get(t.queryHash)?.state.data}ensureQueryData(e){const t=this.defaultQueryOptions(e),n=this.#t.build(this,t),r=n.state.data;return r===void 0?this.fetchQuery(e):(e.revalidateIfStale&&n.isStaleByTime(Ds(t.staleTime,n))&&this.prefetchQuery(t),Promise.resolve(r))}getQueriesData(e){return this.#t.findAll(e).map(({queryKey:t,state:n})=>{const r=n.data;return[t,r]})}setQueryData(e,t,n){const r=this.defaultQueryOptions({queryKey:e}),o=this.#t.get(r.queryHash)?.state.data,s=uG(t,o);if(s!==void 0)return this.#t.build(this,r).setData(s,{...n,manual:!0})}setQueriesData(e,t,n){return pr.batch(()=>this.#t.findAll(e).map(({queryKey:r})=>[r,this.setQueryData(r,t,n)]))}getQueryState(e){const t=this.defaultQueryOptions({queryKey:e});return this.#t.get(t.queryHash)?.state}removeQueries(e){const t=this.#t;pr.batch(()=>{t.findAll(e).forEach(n=>{t.remove(n)})})}resetQueries(e,t){const n=this.#t;return pr.batch(()=>(n.findAll(e).forEach(r=>{r.reset()}),this.refetchQueries({type:"active",...e},t)))}cancelQueries(e,t={}){const n={revert:!0,...t},r=pr.batch(()=>this.#t.findAll(e).map(a=>a.cancel(n)));return Promise.all(r).then(qr).catch(qr)}invalidateQueries(e,t={}){return pr.batch(()=>(this.#t.findAll(e).forEach(n=>{n.invalidate()}),e?.refetchType==="none"?Promise.resolve():this.refetchQueries({...e,type:e?.refetchType??e?.type??"active"},t)))}refetchQueries(e,t={}){const n={...t,cancelRefetch:t.cancelRefetch??!0},r=pr.batch(()=>this.#t.findAll(e).filter(a=>!a.isDisabled()&&!a.isStatic()).map(a=>{let o=a.fetch(void 0,n);return n.throwOnError||(o=o.catch(qr)),a.state.fetchStatus==="paused"?Promise.resolve():o}));return Promise.all(r).then(qr)}fetchQuery(e){const t=this.defaultQueryOptions(e);t.retry===void 0&&(t.retry=!1);const n=this.#t.build(this,t);return n.isStaleByTime(Ds(t.staleTime,n))?n.fetch(t):Promise.resolve(n.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(qr).catch(qr)}fetchInfiniteQuery(e){return e.behavior=wD(e.pages),this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(qr).catch(qr)}ensureInfiniteQueryData(e){return e.behavior=wD(e.pages),this.ensureQueryData(e)}resumePausedMutations(){return _g.isOnline()?this.#e.resumePausedMutations():Promise.resolve()}getQueryCache(){return this.#t}getMutationCache(){return this.#e}getDefaultOptions(){return this.#n}setDefaultOptions(e){this.#n=e}setQueryDefaults(e,t){this.#r.set(Nl(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){const t=[...this.#r.values()],n={};return t.forEach(r=>{Qf(e,r.queryKey)&&Object.assign(n,r.defaultOptions)}),n}setMutationDefaults(e,t){this.#a.set(Nl(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){const t=[...this.#a.values()],n={};return t.forEach(r=>{Qf(e,r.mutationKey)&&Object.assign(n,r.defaultOptions)}),n}defaultQueryOptions(e){if(e._defaulted)return e;const t={...this.#n.queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||(t.queryHash=IS(t.queryKey,t)),t.refetchOnReconnect===void 0&&(t.refetchOnReconnect=t.networkMode!=="always"),t.throwOnError===void 0&&(t.throwOnError=!!t.suspense),!t.networkMode&&t.persister&&(t.networkMode="offlineFirst"),t.queryFn===NS&&(t.enabled=!1),t}defaultMutationOptions(e){return e?._defaulted?e:{...this.#n.mutations,...e?.mutationKey&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){this.#t.clear(),this.#e.clear()}},xG=class extends Tu{constructor(e,t){super(),this.options=t,this.#t=e,this.#o=null,this.#s=_E(),this.options.experimental_prefetchInRender||this.#s.reject(new Error("experimental_prefetchInRender feature flag is not enabled")),this.bindMethods(),this.setOptions(t)}#t;#e=void 0;#n=void 0;#r=void 0;#a;#i;#s;#o;#m;#f;#p;#c;#u;#l;#h=new Set;bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(this.#e.addObserver(this),kD(this.#e,this.options)?this.#d():this.updateResult(),this.#b())}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return CE(this.#e,this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return CE(this.#e,this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,this.#E(),this.#T(),this.#e.removeObserver(this)}setOptions(e){const t=this.options,n=this.#e;if(this.options=this.#t.defaultQueryOptions(e),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean"&&typeof this.options.enabled!="function"&&typeof Xa(this.options.enabled,this.#e)!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");this.#S(),this.#e.setOptions(this.options),t._defaulted&&!Sg(this.options,t)&&this.#t.getQueryCache().notify({type:"observerOptionsUpdated",query:this.#e,observer:this});const r=this.hasListeners();r&&RD(this.#e,n,this.options,t)&&this.#d(),this.updateResult(),r&&(this.#e!==n||Xa(this.options.enabled,this.#e)!==Xa(t.enabled,this.#e)||Ds(this.options.staleTime,this.#e)!==Ds(t.staleTime,this.#e))&&this.#g();const a=this.#y();r&&(this.#e!==n||Xa(this.options.enabled,this.#e)!==Xa(t.enabled,this.#e)||a!==this.#l)&&this.#v(a)}getOptimisticResult(e){const t=this.#t.getQueryCache().build(this.#t,e),n=this.createResult(t,e);return DG(this,n)&&(this.#r=n,this.#i=this.options,this.#a=this.#e.state),n}getCurrentResult(){return this.#r}trackResult(e,t){return new Proxy(e,{get:(n,r)=>(this.trackProp(r),t?.(r),Reflect.get(n,r))})}trackProp(e){this.#h.add(e)}getCurrentQuery(){return this.#e}refetch({...e}={}){return this.fetch({...e})}fetchOptimistic(e){const t=this.#t.defaultQueryOptions(e),n=this.#t.getQueryCache().build(this.#t,t);return n.fetch().then(()=>this.createResult(n,t))}fetch(e){return this.#d({...e,cancelRefetch:e.cancelRefetch??!0}).then(()=>(this.updateResult(),this.#r))}#d(e){this.#S();let t=this.#e.fetch(this.options,e);return e?.throwOnError||(t=t.catch(qr)),t}#g(){this.#E();const e=Ds(this.options.staleTime,this.#e);if(Il||this.#r.isStale||!EE(e))return;const n=H3(this.#r.dataUpdatedAt,e)+1;this.#c=setTimeout(()=>{this.#r.isStale||this.updateResult()},n)}#y(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(this.#e):this.options.refetchInterval)??!1}#v(e){this.#T(),this.#l=e,!(Il||Xa(this.options.enabled,this.#e)===!1||!EE(this.#l)||this.#l===0)&&(this.#u=setInterval(()=>{(this.options.refetchIntervalInBackground||LS.isFocused())&&this.#d()},this.#l))}#b(){this.#g(),this.#v(this.#y())}#E(){this.#c&&(clearTimeout(this.#c),this.#c=void 0)}#T(){this.#u&&(clearInterval(this.#u),this.#u=void 0)}createResult(e,t){const n=this.#e,r=this.options,a=this.#r,o=this.#a,s=this.#i,u=e!==n?e.state:this.#n,{state:d}=e;let p={...d},h=!1,g;if(t._optimisticResults){const G=this.hasListeners(),j=!G&&kD(e,t),T=G&&RD(e,n,t,r);(j||T)&&(p={...p,...K3(d.data,e.options)}),t._optimisticResults==="isRestoring"&&(p.fetchStatus="idle")}let{error:y,errorUpdatedAt:b,status:E}=p;g=p.data;let _=!1;if(t.placeholderData!==void 0&&g===void 0&&E==="pending"){let G;a?.isPlaceholderData&&t.placeholderData===s?.placeholderData?(G=a.data,_=!0):G=typeof t.placeholderData=="function"?t.placeholderData(this.#p?.state.data,this.#p):t.placeholderData,G!==void 0&&(E="success",g=SE(a?.data,G,t),h=!0)}if(t.select&&g!==void 0&&!_)if(a&&g===o?.data&&t.select===this.#m)g=this.#f;else try{this.#m=t.select,g=t.select(g),g=SE(a?.data,g,t),this.#f=g,this.#o=null}catch(G){this.#o=G}this.#o&&(y=this.#o,g=this.#f,b=Date.now(),E="error");const A=p.fetchStatus==="fetching",D=E==="pending",w=E==="error",R=D&&A,O=g!==void 0,F={status:E,fetchStatus:p.fetchStatus,isPending:D,isSuccess:E==="success",isError:w,isInitialLoading:R,isLoading:R,data:g,dataUpdatedAt:p.dataUpdatedAt,error:y,errorUpdatedAt:b,failureCount:p.fetchFailureCount,failureReason:p.fetchFailureReason,errorUpdateCount:p.errorUpdateCount,isFetched:p.dataUpdateCount>0||p.errorUpdateCount>0,isFetchedAfterMount:p.dataUpdateCount>u.dataUpdateCount||p.errorUpdateCount>u.errorUpdateCount,isFetching:A,isRefetching:A&&!D,isLoadingError:w&&!O,isPaused:p.fetchStatus==="paused",isPlaceholderData:h,isRefetchError:w&&O,isStale:PS(e,t),refetch:this.refetch,promise:this.#s,isEnabled:Xa(t.enabled,e)!==!1};if(this.options.experimental_prefetchInRender){const G=M=>{F.status==="error"?M.reject(F.error):F.data!==void 0&&M.resolve(F.data)},j=()=>{const M=this.#s=F.promise=_E();G(M)},T=this.#s;switch(T.status){case"pending":e.queryHash===n.queryHash&&G(T);break;case"fulfilled":(F.status==="error"||F.data!==T.value)&&j();break;case"rejected":(F.status!=="error"||F.error!==T.reason)&&j();break}}return F}updateResult(){const e=this.#r,t=this.createResult(this.#e,this.options);if(this.#a=this.#e.state,this.#i=this.options,this.#a.data!==void 0&&(this.#p=this.#e),Sg(t,e))return;this.#r=t;const n=()=>{if(!e)return!0;const{notifyOnChangeProps:r}=this.options,a=typeof r=="function"?r():r;if(a==="all"||!a&&!this.#h.size)return!0;const o=new Set(a??this.#h);return this.options.throwOnError&&o.add("error"),Object.keys(this.#r).some(s=>{const c=s;return this.#r[c]!==e[c]&&o.has(c)})};this.#_({listeners:n()})}#S(){const e=this.#t.getQueryCache().build(this.#t,this.options);if(e===this.#e)return;const t=this.#e;this.#e=e,this.#n=e.state,this.hasListeners()&&(t?.removeObserver(this),e.addObserver(this))}onQueryUpdate(){this.updateResult(),this.hasListeners()&&this.#b()}#_(e){pr.batch(()=>{e.listeners&&this.listeners.forEach(t=>{t(this.#r)}),this.#t.getQueryCache().notify({query:this.#e,type:"observerResultsUpdated"})})}};function wG(e,t){return Xa(t.enabled,e)!==!1&&e.state.data===void 0&&!(e.state.status==="error"&&t.retryOnMount===!1)}function kD(e,t){return wG(e,t)||e.state.data!==void 0&&CE(e,t,t.refetchOnMount)}function CE(e,t,n){if(Xa(t.enabled,e)!==!1&&Ds(t.staleTime,e)!=="static"){const r=typeof n=="function"?n(e):n;return r==="always"||r!==!1&&PS(e,t)}return!1}function RD(e,t,n,r){return(e!==t||Xa(r.enabled,e)===!1)&&(!n.suspense||e.state.status!=="error")&&PS(e,n)}function PS(e,t){return Xa(t.enabled,e)!==!1&&e.isStaleByTime(Ds(t.staleTime,e))}function DG(e,t){return!Sg(e.getCurrentResult(),t)}var kG=class extends Tu{#t;#e=void 0;#n;#r;constructor(t,n){super(),this.#t=t,this.setOptions(n),this.bindMethods(),this.#a()}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(t){const n=this.options;this.options=this.#t.defaultMutationOptions(t),Sg(this.options,n)||this.#t.getMutationCache().notify({type:"observerOptionsUpdated",mutation:this.#n,observer:this}),n?.mutationKey&&this.options.mutationKey&&Nl(n.mutationKey)!==Nl(this.options.mutationKey)?this.reset():this.#n?.state.status==="pending"&&this.#n.setOptions(this.options)}onUnsubscribe(){this.hasListeners()||this.#n?.removeObserver(this)}onMutationUpdate(t){this.#a(),this.#i(t)}getCurrentResult(){return this.#e}reset(){this.#n?.removeObserver(this),this.#n=void 0,this.#a(),this.#i()}mutate(t,n){return this.#r=n,this.#n?.removeObserver(this),this.#n=this.#t.getMutationCache().build(this.#t,this.options),this.#n.addObserver(this),this.#n.execute(t)}#a(){const t=this.#n?.state??X3();this.#e={...t,isPending:t.status==="pending",isSuccess:t.status==="success",isError:t.status==="error",isIdle:t.status==="idle",mutate:this.mutate,reset:this.reset}}#i(t){pr.batch(()=>{if(this.#r&&this.hasListeners()){const n=this.#e.variables,r=this.#e.context;t?.type==="success"?(this.#r.onSuccess?.(t.data,n,r),this.#r.onSettled?.(t.data,null,n,r)):t?.type==="error"&&(this.#r.onError?.(t.error,n,r),this.#r.onSettled?.(void 0,t.error,n,r))}this.listeners.forEach(n=>{n(this.#e)})})}},Z3=x.createContext(void 0),J3=e=>{const t=x.useContext(Z3);if(e)return e;if(!t)throw new Error("No QueryClient set, use QueryClientProvider to set one");return t},RG=({client:e,children:t})=>(x.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),P.jsx(Z3.Provider,{value:e,children:t})),eN=x.createContext(!1),OG=()=>x.useContext(eN);eN.Provider;function IG(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}var NG=x.createContext(IG()),LG=()=>x.useContext(NG),PG=(e,t)=>{(e.suspense||e.throwOnError||e.experimental_prefetchInRender)&&(t.isReset()||(e.retryOnMount=!1))},MG=e=>{x.useEffect(()=>{e.clearReset()},[e])},$G=({result:e,errorResetBoundary:t,throwOnError:n,query:r,suspense:a})=>e.isError&&!t.isReset()&&!e.isFetching&&r&&(a&&e.data===void 0||G3(n,[e.error,r])),FG=e=>{if(e.suspense){const t=r=>r==="static"?r:Math.max(r??1e3,1e3),n=e.staleTime;e.staleTime=typeof n=="function"?(...r)=>t(n(...r)):t(n),typeof e.gcTime=="number"&&(e.gcTime=Math.max(e.gcTime,1e3))}},BG=(e,t)=>e.isLoading&&e.isFetching&&!t,UG=(e,t)=>e?.suspense&&t.isPending,OD=(e,t,n)=>t.fetchOptimistic(e).catch(()=>{n.clearReset()});function jG(e,t,n){const r=OG(),a=LG(),o=J3(n),s=o.defaultQueryOptions(e);o.getDefaultOptions().queries?._experimental_beforeQuery?.(s),s._optimisticResults=r?"isRestoring":"optimistic",FG(s),PG(s,a),MG(a);const c=!o.getQueryCache().get(s.queryHash),[u]=x.useState(()=>new t(o,s)),d=u.getOptimisticResult(s),p=!r&&e.subscribed!==!1;if(x.useSyncExternalStore(x.useCallback(h=>{const g=p?u.subscribe(pr.batchCalls(h)):qr;return u.updateResult(),g},[u,p]),()=>u.getCurrentResult(),()=>u.getCurrentResult()),x.useEffect(()=>{u.setOptions(s)},[s,u]),UG(s,d))throw OD(s,u,a);if($G({result:d,errorResetBoundary:a,throwOnError:s.throwOnError,query:o.getQueryCache().get(s.queryHash),suspense:s.suspense}))throw d.error;return o.getDefaultOptions().queries?._experimental_afterQuery?.(s,d),s.experimental_prefetchInRender&&!Il&&BG(d,r)&&(c?OD(s,u,a):o.getQueryCache().get(s.queryHash)?.promise)?.catch(qr).finally(()=>{u.updateResult()}),s.notifyOnChangeProps?d:u.trackResult(d)}function HG(e,t){return jG(e,xG,t)}function zG(e,t){const n=J3(t),[r]=x.useState(()=>new kG(n,e));x.useEffect(()=>{r.setOptions(e)},[r,e]);const a=x.useSyncExternalStore(x.useCallback(s=>r.subscribe(pr.batchCalls(s)),[r]),()=>r.getCurrentResult(),()=>r.getCurrentResult()),o=x.useCallback((s,c)=>{r.mutate(s,c).catch(qr)},[r]);if(a.error&&G3(r.options.throwOnError,[a.error]))throw a.error;return{...a,mutate:o,mutateAsync:a.mutate}}const tN=[{id:"abap",name:"ABAP",import:()=>V(()=>import("./index.es307-DsBKuouk.js"),[])},{id:"actionscript-3",name:"ActionScript",import:()=>V(()=>import("./index.es308-D_z4Izcz.js"),[])},{id:"ada",name:"Ada",import:()=>V(()=>import("./index.es309-727ZlQH0.js"),[])},{id:"angular-html",name:"Angular HTML",import:()=>V(()=>import("./index.es310-AKXDC8rl.js").then(e=>e.i),__vite__mapDeps([0,1,2,3]))},{id:"angular-ts",name:"Angular TypeScript",import:()=>V(()=>import("./index.es311-CE0-K0fx.js"),__vite__mapDeps([4,0,1,2,3,5]))},{id:"apache",name:"Apache Conf",import:()=>V(()=>import("./index.es312-Dn00JSTd.js"),[])},{id:"apex",name:"Apex",import:()=>V(()=>import("./index.es313-COJ4H7py.js"),[])},{id:"apl",name:"APL",import:()=>V(()=>import("./index.es314-CsD4AFJi.js"),__vite__mapDeps([6,1,2,3,7,8,9]))},{id:"applescript",name:"AppleScript",import:()=>V(()=>import("./index.es315-Bu5BbsvL.js"),[])},{id:"ara",name:"Ara",import:()=>V(()=>import("./index.es316-7O62HKoU.js"),[])},{id:"asciidoc",name:"AsciiDoc",aliases:["adoc"],import:()=>V(()=>import("./index.es317-BPT9niGB.js"),[])},{id:"asm",name:"Assembly",import:()=>V(()=>import("./index.es318-Dhn9LcZ4.js"),[])},{id:"astro",name:"Astro",import:()=>V(()=>import("./index.es319-BAaFF8nF.js"),__vite__mapDeps([10,9,2,11,3,12]))},{id:"awk",name:"AWK",import:()=>V(()=>import("./index.es320-eg146-Ew.js"),[])},{id:"ballerina",name:"Ballerina",import:()=>V(()=>import("./index.es321-Du268qiB.js"),[])},{id:"bat",name:"Batch File",aliases:["batch"],import:()=>V(()=>import("./index.es322-fje9CFhw.js"),[])},{id:"beancount",name:"Beancount",import:()=>V(()=>import("./index.es323-BwXTMy5W.js"),[])},{id:"berry",name:"Berry",aliases:["be"],import:()=>V(()=>import("./index.es324-3xVqZejG.js"),[])},{id:"bibtex",name:"BibTeX",import:()=>V(()=>import("./index.es325-xW4inM5L.js"),[])},{id:"bicep",name:"Bicep",import:()=>V(()=>import("./index.es326-DHo0CJ0O.js"),[])},{id:"blade",name:"Blade",import:()=>V(()=>import("./index.es327-CLjg00CO.js"),__vite__mapDeps([13,1,2,3,7,8,14,9]))},{id:"bsl",name:"1C (Enterprise)",aliases:["1c"],import:()=>V(()=>import("./index.es328-Dk49f56D.js"),__vite__mapDeps([15,16]))},{id:"c",name:"C",import:()=>V(()=>import("./index.es329-C3t2pwGQ.js"),[])},{id:"cadence",name:"Cadence",aliases:["cdc"],import:()=>V(()=>import("./index.es330-DNquZEk8.js"),[])},{id:"cairo",name:"Cairo",import:()=>V(()=>import("./index.es331-CNjOIk10.js"),__vite__mapDeps([17,18]))},{id:"clarity",name:"Clarity",import:()=>V(()=>import("./index.es332-BHOwM8T6.js"),[])},{id:"clojure",name:"Clojure",aliases:["clj"],import:()=>V(()=>import("./index.es333-DxSadP1t.js"),[])},{id:"cmake",name:"CMake",import:()=>V(()=>import("./index.es334-DbXoA79R.js"),[])},{id:"cobol",name:"COBOL",import:()=>V(()=>import("./index.es335-BeNrivcI.js"),__vite__mapDeps([19,1,2,3,8]))},{id:"codeowners",name:"CODEOWNERS",import:()=>V(()=>import("./index.es336-Bp6g37R7.js"),[])},{id:"codeql",name:"CodeQL",aliases:["ql"],import:()=>V(()=>import("./index.es337-sacFqUAJ.js"),[])},{id:"coffee",name:"CoffeeScript",aliases:["coffeescript"],import:()=>V(()=>import("./index.es338-BhR7SkS5.js"),__vite__mapDeps([20,2]))},{id:"common-lisp",name:"Common Lisp",aliases:["lisp"],import:()=>V(()=>import("./index.es339-C7gG9l05.js"),[])},{id:"coq",name:"Coq",import:()=>V(()=>import("./index.es340-Dsg_Bt_b.js"),[])},{id:"cpp",name:"C++",aliases:["c++"],import:()=>V(()=>import("./index.es341-C_6PzCoq.js"),__vite__mapDeps([21,22,23,24,14]))},{id:"crystal",name:"Crystal",import:()=>V(()=>import("./index.es342-D1uAr8c1.js"),__vite__mapDeps([25,1,2,3,14,24,26]))},{id:"csharp",name:"C#",aliases:["c#","cs"],import:()=>V(()=>import("./index.es343-D9R-vmeu.js"),[])},{id:"css",name:"CSS",import:()=>V(()=>import("./index.es344-BPhBrDlE.js"),[])},{id:"csv",name:"CSV",import:()=>V(()=>import("./index.es345-C-TU5hQ_.js"),[])},{id:"cue",name:"CUE",import:()=>V(()=>import("./index.es346-DtFQj3wx.js"),[])},{id:"cypher",name:"Cypher",aliases:["cql"],import:()=>V(()=>import("./index.es347-m2LEI-9-.js"),[])},{id:"d",name:"D",import:()=>V(()=>import("./index.es348-BoXegm-a.js"),[])},{id:"dart",name:"Dart",import:()=>V(()=>import("./index.es349-B9wLZaAG.js"),[])},{id:"dax",name:"DAX",import:()=>V(()=>import("./index.es350-ClGRhx96.js"),[])},{id:"desktop",name:"Desktop",import:()=>V(()=>import("./index.es351-DEIpsLCJ.js"),[])},{id:"diff",name:"Diff",import:()=>V(()=>import("./index.es352-BgYniUM_.js"),[])},{id:"docker",name:"Dockerfile",aliases:["dockerfile"],import:()=>V(()=>import("./index.es353-COcR7UxN.js"),[])},{id:"dotenv",name:"dotEnv",import:()=>V(()=>import("./index.es354-BjQB5zDj.js"),[])},{id:"dream-maker",name:"Dream Maker",import:()=>V(()=>import("./index.es355-C-nORZOA.js"),[])},{id:"edge",name:"Edge",import:()=>V(()=>import("./index.es356-7PPXN4m3.js"),__vite__mapDeps([27,11,1,2,3,28]))},{id:"elixir",name:"Elixir",import:()=>V(()=>import("./index.es357-CJh2QG0N.js"),__vite__mapDeps([29,1,2,3]))},{id:"elm",name:"Elm",import:()=>V(()=>import("./index.es358-C_zZutkw.js"),__vite__mapDeps([30,23,24]))},{id:"emacs-lisp",name:"Emacs Lisp",aliases:["elisp"],import:()=>V(()=>import("./index.es359-BX77sIaO.js"),[])},{id:"erb",name:"ERB",import:()=>V(()=>import("./index.es360-DeQ44nE8.js"),__vite__mapDeps([31,1,2,3,32,33,7,8,14,34,11,35,36,21,22,23,24,26,37,38]))},{id:"erlang",name:"Erlang",aliases:["erl"],import:()=>V(()=>import("./index.es361-B-DoSBHF.js"),[])},{id:"fennel",name:"Fennel",import:()=>V(()=>import("./index.es362-bCA53EVm.js"),[])},{id:"fish",name:"Fish",import:()=>V(()=>import("./index.es363-w-ucz2PV.js"),[])},{id:"fluent",name:"Fluent",aliases:["ftl"],import:()=>V(()=>import("./index.es364-Dayu4EKP.js"),[])},{id:"fortran-fixed-form",name:"Fortran (Fixed Form)",aliases:["f","for","f77"],import:()=>V(()=>import("./index.es365-oFKdnBEe.js"),__vite__mapDeps([39,40]))},{id:"fortran-free-form",name:"Fortran (Free Form)",aliases:["f90","f95","f03","f08","f18"],import:()=>V(()=>import("./index.es366-DKXYxT9g.js"),[])},{id:"fsharp",name:"F#",aliases:["f#","fs"],import:()=>V(()=>import("./index.es367-BUiiHWL7.js"),__vite__mapDeps([41,42]))},{id:"gdresource",name:"GDResource",import:()=>V(()=>import("./index.es368-Bb8Mmpp1.js"),__vite__mapDeps([43,44,45]))},{id:"gdscript",name:"GDScript",import:()=>V(()=>import("./index.es369-DfxzS6Rs.js"),[])},{id:"gdshader",name:"GDShader",import:()=>V(()=>import("./index.es370-SKMF96pI.js"),[])},{id:"genie",name:"Genie",import:()=>V(()=>import("./index.es371-ajMbGru0.js"),[])},{id:"gherkin",name:"Gherkin",import:()=>V(()=>import("./index.es372--30QC5Em.js"),[])},{id:"git-commit",name:"Git Commit Message",import:()=>V(()=>import("./index.es373-C5Q5iXfG.js"),__vite__mapDeps([46,47]))},{id:"git-rebase",name:"Git Rebase Message",import:()=>V(()=>import("./index.es374-s3ewK3v_.js"),__vite__mapDeps([48,26]))},{id:"gleam",name:"Gleam",import:()=>V(()=>import("./index.es375-B430Bg39.js"),[])},{id:"glimmer-js",name:"Glimmer JS",aliases:["gjs"],import:()=>V(()=>import("./index.es376-Dot0I9EF.js"),__vite__mapDeps([49,2,11,3,1]))},{id:"glimmer-ts",name:"Glimmer TS",aliases:["gts"],import:()=>V(()=>import("./index.es377-B6TLwhtH.js"),__vite__mapDeps([50,11,3,2,1]))},{id:"glsl",name:"GLSL",import:()=>V(()=>import("./index.es378-mEifvHi6.js"),__vite__mapDeps([23,24]))},{id:"gnuplot",name:"Gnuplot",import:()=>V(()=>import("./index.es379-CM8KxXT1.js"),[])},{id:"go",name:"Go",import:()=>V(()=>import("./index.es380-B1SYOhNW.js"),[])},{id:"graphql",name:"GraphQL",aliases:["gql"],import:()=>V(()=>import("./index.es381-DdV8KTBv.js"),__vite__mapDeps([34,2,11,35,36]))},{id:"groovy",name:"Groovy",import:()=>V(()=>import("./index.es382-DkBy-JyN.js"),[])},{id:"hack",name:"Hack",import:()=>V(()=>import("./index.es383-B762Qvzb.js"),__vite__mapDeps([51,1,2,3,14]))},{id:"haml",name:"Ruby Haml",import:()=>V(()=>import("./index.es384-DBjLFE2E.js"),__vite__mapDeps([33,2,3]))},{id:"handlebars",name:"Handlebars",aliases:["hbs"],import:()=>V(()=>import("./index.es385-DkDs29_v.js"),__vite__mapDeps([52,1,2,3,38]))},{id:"haskell",name:"Haskell",aliases:["hs"],import:()=>V(()=>import("./index.es386-BILxekzW.js"),[])},{id:"haxe",name:"Haxe",import:()=>V(()=>import("./index.es387-C5wWYbrZ.js"),[])},{id:"hcl",name:"HashiCorp HCL",import:()=>V(()=>import("./index.es388-HzYwdGDm.js"),[])},{id:"hjson",name:"Hjson",import:()=>V(()=>import("./index.es389-T-Tgc4AT.js"),[])},{id:"hlsl",name:"HLSL",import:()=>V(()=>import("./index.es390-ifBTmRxC.js"),[])},{id:"html",name:"HTML",import:()=>V(()=>import("./index.es391-BOBiTPht.js"),__vite__mapDeps([1,2,3]))},{id:"html-derivative",name:"HTML (Derivative)",import:()=>V(()=>import("./index.es392-BGdYwXRd.js"),__vite__mapDeps([28,1,2,3]))},{id:"http",name:"HTTP",import:()=>V(()=>import("./index.es393-BnuSumNM.js"),__vite__mapDeps([53,26,9,7,8,34,2,11,35,36]))},{id:"hxml",name:"HXML",import:()=>V(()=>import("./index.es394-DMJpONen.js"),__vite__mapDeps([54,55]))},{id:"hy",name:"Hy",import:()=>V(()=>import("./index.es395-BMj5Y0dO.js"),[])},{id:"imba",name:"Imba",import:()=>V(()=>import("./index.es396-Dexy1Fdn.js"),__vite__mapDeps([56,11]))},{id:"ini",name:"INI",aliases:["properties"],import:()=>V(()=>import("./index.es397-BjABl1g7.js"),[])},{id:"java",name:"Java",import:()=>V(()=>import("./index.es398-xI-RfyKK.js"),[])},{id:"javascript",name:"JavaScript",aliases:["js"],import:()=>V(()=>import("./index.es399-ySlJ1b_l.js"),[])},{id:"jinja",name:"Jinja",import:()=>V(()=>import("./index.es400-V_MXD6ds.js"),__vite__mapDeps([57,1,2,3]))},{id:"jison",name:"Jison",import:()=>V(()=>import("./index.es401-CAcCA7it.js"),__vite__mapDeps([58,2]))},{id:"json",name:"JSON",import:()=>V(()=>import("./index.es402-BQoSv7ci.js"),[])},{id:"json5",name:"JSON5",import:()=>V(()=>import("./index.es403-w8dY5SsB.js"),[])},{id:"jsonc",name:"JSON with Comments",import:()=>V(()=>import("./index.es404-TU54ms6u.js"),[])},{id:"jsonl",name:"JSON Lines",import:()=>V(()=>import("./index.es405-DREVFZK8.js"),[])},{id:"jsonnet",name:"Jsonnet",import:()=>V(()=>import("./index.es406-BfivnA6A.js"),[])},{id:"jssm",name:"JSSM",aliases:["fsl"],import:()=>V(()=>import("./index.es407-P4WzXJd0.js"),[])},{id:"jsx",name:"JSX",import:()=>V(()=>import("./index.es408-BAng5TT0.js"),[])},{id:"julia",name:"Julia",aliases:["jl"],import:()=>V(()=>import("./index.es409-DgSxLsfq.js"),__vite__mapDeps([59,21,22,23,24,14,18,2,60]))},{id:"kotlin",name:"Kotlin",aliases:["kt","kts"],import:()=>V(()=>import("./index.es410-B5lbUyaz.js"),[])},{id:"kusto",name:"Kusto",aliases:["kql"],import:()=>V(()=>import("./index.es411-mebxcVVE.js"),[])},{id:"latex",name:"LaTeX",import:()=>V(()=>import("./index.es412-wcTkTrNP.js"),__vite__mapDeps([61,62,60]))},{id:"lean",name:"Lean 4",aliases:["lean4"],import:()=>V(()=>import("./index.es413-XBlWyCtg.js"),[])},{id:"less",name:"Less",import:()=>V(()=>import("./index.es414-BfCpw3nA.js"),[])},{id:"liquid",name:"Liquid",import:()=>V(()=>import("./index.es415-hnSTt9Hn.js"),__vite__mapDeps([63,1,2,3,9]))},{id:"log",name:"Log file",import:()=>V(()=>import("./index.es416-Cc5clBb7.js"),[])},{id:"logo",name:"Logo",import:()=>V(()=>import("./index.es417-IuBKFhSY.js"),[])},{id:"lua",name:"Lua",import:()=>V(()=>import("./index.es418-DwuHSZfi.js"),__vite__mapDeps([37,24]))},{id:"luau",name:"Luau",import:()=>V(()=>import("./index.es419-Du5NY7AG.js"),[])},{id:"make",name:"Makefile",aliases:["makefile"],import:()=>V(()=>import("./index.es420-Bvotw-X0.js"),[])},{id:"markdown",name:"Markdown",aliases:["md"],import:()=>V(()=>import("./index.es421-UIAJJxZW.js"),[])},{id:"marko",name:"Marko",import:()=>V(()=>import("./index.es422-DWsCMo9a.js"),__vite__mapDeps([64,3,65,5,2]))},{id:"matlab",name:"MATLAB",import:()=>V(()=>import("./index.es423-D9-PGadD.js"),[])},{id:"mdc",name:"MDC",import:()=>V(()=>import("./index.es424-CX2jVTDC.js"),__vite__mapDeps([66,42,38,28,1,2,3]))},{id:"mdx",name:"MDX",import:()=>V(()=>import("./index.es425-sdHcTMYB.js"),[])},{id:"mermaid",name:"Mermaid",aliases:["mmd"],import:()=>V(()=>import("./index.es426-Ci6OQyBP.js"),[])},{id:"mipsasm",name:"MIPS Assembly",aliases:["mips"],import:()=>V(()=>import("./index.es427-BC5c_5Pe.js"),[])},{id:"mojo",name:"Mojo",import:()=>V(()=>import("./index.es428-Tz6hzZYG.js"),[])},{id:"move",name:"Move",import:()=>V(()=>import("./index.es429-DB_GagMm.js"),[])},{id:"narrat",name:"Narrat Language",aliases:["nar"],import:()=>V(()=>import("./index.es430-DLbgOhZU.js"),[])},{id:"nextflow",name:"Nextflow",aliases:["nf"],import:()=>V(()=>import("./index.es431-B0XVJmRM.js"),[])},{id:"nginx",name:"Nginx",import:()=>V(()=>import("./index.es432-DpOOpPot.js"),__vite__mapDeps([67,37,24]))},{id:"nim",name:"Nim",import:()=>V(()=>import("./index.es433--E-hGrgp.js"),__vite__mapDeps([68,24,1,2,3,7,8,23,42]))},{id:"nix",name:"Nix",import:()=>V(()=>import("./index.es434-shcSOmrb.js"),[])},{id:"nushell",name:"nushell",aliases:["nu"],import:()=>V(()=>import("./index.es435-D4Tzg5kh.js"),[])},{id:"objective-c",name:"Objective-C",aliases:["objc"],import:()=>V(()=>import("./index.es436-Deuh7S70.js"),[])},{id:"objective-cpp",name:"Objective-C++",import:()=>V(()=>import("./index.es437-BUEGK8hf.js"),[])},{id:"ocaml",name:"OCaml",import:()=>V(()=>import("./index.es438-BNioltXt.js"),[])},{id:"pascal",name:"Pascal",import:()=>V(()=>import("./index.es439-JqZropPD.js"),[])},{id:"perl",name:"Perl",import:()=>V(()=>import("./index.es440-NJaU5ncf.js"),__vite__mapDeps([69,1,2,3,7,8,14]))},{id:"php",name:"PHP",import:()=>V(()=>import("./index.es441-CR0Ohpvp.js"),__vite__mapDeps([70,1,2,3,7,8,14,9]))},{id:"plsql",name:"PL/SQL",import:()=>V(()=>import("./index.es442-LKU2TuZ1.js"),[])},{id:"po",name:"Gettext PO",aliases:["pot","potx"],import:()=>V(()=>import("./index.es443-BFLt1xDp.js"),[])},{id:"polar",name:"Polar",import:()=>V(()=>import("./index.es444-DKykz6zU.js"),[])},{id:"postcss",name:"PostCSS",import:()=>V(()=>import("./index.es445-B3ZDOciz.js"),[])},{id:"powerquery",name:"PowerQuery",import:()=>V(()=>import("./index.es446-CSHBycmS.js"),[])},{id:"powershell",name:"PowerShell",aliases:["ps","ps1"],import:()=>V(()=>import("./index.es447-BIEUsx6d.js"),[])},{id:"prisma",name:"Prisma",import:()=>V(()=>import("./index.es448-B48N-Iqd.js"),[])},{id:"prolog",name:"Prolog",import:()=>V(()=>import("./index.es449-BY-TUvya.js"),[])},{id:"proto",name:"Protocol Buffer 3",aliases:["protobuf"],import:()=>V(()=>import("./index.es450-zocC4JxJ.js"),[])},{id:"pug",name:"Pug",aliases:["jade"],import:()=>V(()=>import("./index.es451-sHTEx-Dl.js"),__vite__mapDeps([71,2,3,1]))},{id:"puppet",name:"Puppet",import:()=>V(()=>import("./index.es452-Cza_XSSt.js"),[])},{id:"purescript",name:"PureScript",import:()=>V(()=>import("./index.es453-Bg-kzb6g.js"),[])},{id:"python",name:"Python",aliases:["py"],import:()=>V(()=>import("./index.es454-DhUJRlN_.js"),[])},{id:"qml",name:"QML",import:()=>V(()=>import("./index.es455-9ZC7rz1G.js"),__vite__mapDeps([72,2]))},{id:"qmldir",name:"QML Directory",import:()=>V(()=>import("./index.es456-C8lEn-DE.js"),[])},{id:"qss",name:"Qt Style Sheets",import:()=>V(()=>import("./index.es457-DhMKtDLN.js"),[])},{id:"r",name:"R",import:()=>V(()=>import("./index.es458-CwjWoCRV.js"),[])},{id:"racket",name:"Racket",import:()=>V(()=>import("./index.es459-CzouJOBO.js"),[])},{id:"raku",name:"Raku",aliases:["perl6"],import:()=>V(()=>import("./index.es460-B1bQXN8T.js"),[])},{id:"razor",name:"ASP.NET Razor",import:()=>V(()=>import("./index.es461-DAQjszqb.js"),__vite__mapDeps([73,1,2,3,74]))},{id:"reg",name:"Windows Registry Script",import:()=>V(()=>import("./index.es462-5LuOXUq_.js"),[])},{id:"regexp",name:"RegExp",aliases:["regex"],import:()=>V(()=>import("./index.es463-DWJ3fJO_.js"),[])},{id:"rel",name:"Rel",import:()=>V(()=>import("./index.es464-DJlmqQ1C.js"),[])},{id:"riscv",name:"RISC-V",import:()=>V(()=>import("./index.es465-QhoSD0DR.js"),[])},{id:"rst",name:"reStructuredText",import:()=>V(()=>import("./index.es466-sT_GOjPl.js"),__vite__mapDeps([75,28,1,2,3,21,22,23,24,14,18,26,38,76,32,33,7,8,34,11,35,36,37]))},{id:"ruby",name:"Ruby",aliases:["rb"],import:()=>V(()=>import("./index.es467-D1qnNYJr.js"),__vite__mapDeps([32,1,2,3,33,7,8,14,34,11,35,36,21,22,23,24,26,37,38]))},{id:"rust",name:"Rust",aliases:["rs"],import:()=>V(()=>import("./index.es468-Be6lgOlo.js"),[])},{id:"sas",name:"SAS",import:()=>V(()=>import("./index.es469-DW1np4pg.js"),__vite__mapDeps([77,14]))},{id:"sass",name:"Sass",import:()=>V(()=>import("./index.es470-BJ4Li9vH.js"),[])},{id:"scala",name:"Scala",import:()=>V(()=>import("./index.es471-DQVVAn-B.js"),[])},{id:"scheme",name:"Scheme",import:()=>V(()=>import("./index.es472-BJGe-b2p.js"),[])},{id:"scss",name:"SCSS",import:()=>V(()=>import("./index.es473-wVAdvQ6_.js"),__vite__mapDeps([5,3]))},{id:"sdbl",name:"1C (Query)",aliases:["1c-query"],import:()=>V(()=>import("./index.es474-BLhTXw86.js"),[])},{id:"shaderlab",name:"ShaderLab",aliases:["shader"],import:()=>V(()=>import("./index.es475-CZM7KBU8.js"),__vite__mapDeps([78,79]))},{id:"shellscript",name:"Shell",aliases:["bash","sh","shell","zsh"],import:()=>V(()=>import("./index.es476-atvbtKCR.js"),[])},{id:"shellsession",name:"Shell Session",aliases:["console"],import:()=>V(()=>import("./index.es477-OAyIdwW_.js"),__vite__mapDeps([80,26]))},{id:"smalltalk",name:"Smalltalk",import:()=>V(()=>import("./index.es478-DkLiglaE.js"),[])},{id:"solidity",name:"Solidity",import:()=>V(()=>import("./index.es479-C1w2a3ep.js"),[])},{id:"soy",name:"Closure Templates",aliases:["closure-templates"],import:()=>V(()=>import("./index.es480-DSR8isSz.js"),__vite__mapDeps([81,1,2,3]))},{id:"sparql",name:"SPARQL",import:()=>V(()=>import("./index.es481-CBydsWwB.js"),__vite__mapDeps([82,83]))},{id:"splunk",name:"Splunk Query Language",aliases:["spl"],import:()=>V(()=>import("./index.es482-Cf8iN4DR.js"),[])},{id:"sql",name:"SQL",import:()=>V(()=>import("./index.es483-COK4E0Yg.js"),[])},{id:"ssh-config",name:"SSH Config",import:()=>V(()=>import("./index.es484-BknIz3MU.js"),[])},{id:"stata",name:"Stata",import:()=>V(()=>import("./index.es485-CJc4fpNV.js"),__vite__mapDeps([84,14]))},{id:"stylus",name:"Stylus",aliases:["styl"],import:()=>V(()=>import("./index.es486-BeQkCIfX.js"),[])},{id:"svelte",name:"Svelte",import:()=>V(()=>import("./index.es487-C1wULFp4.js"),__vite__mapDeps([85,2,11,3,12]))},{id:"swift",name:"Swift",import:()=>V(()=>import("./index.es488-BSxZ-RaX.js"),[])},{id:"system-verilog",name:"SystemVerilog",import:()=>V(()=>import("./index.es489-C7L56vO4.js"),[])},{id:"systemd",name:"Systemd Units",import:()=>V(()=>import("./index.es490-CUnW07Te.js"),[])},{id:"talonscript",name:"TalonScript",aliases:["talon"],import:()=>V(()=>import("./index.es491-C1XDQQGZ.js"),[])},{id:"tasl",name:"Tasl",import:()=>V(()=>import("./index.es492-CQjiPCtT.js"),[])},{id:"tcl",name:"Tcl",import:()=>V(()=>import("./index.es493-DQ1-QYvQ.js"),[])},{id:"templ",name:"Templ",import:()=>V(()=>import("./index.es494-BLp6ucpV.js"),__vite__mapDeps([86,87,2,3]))},{id:"terraform",name:"Terraform",aliases:["tf","tfvars"],import:()=>V(()=>import("./index.es495-BbSNqyBO.js"),[])},{id:"tex",name:"TeX",import:()=>V(()=>import("./index.es496-Tis1R15L.js"),__vite__mapDeps([62,60]))},{id:"toml",name:"TOML",import:()=>V(()=>import("./index.es497-CB2ApiWb.js"),[])},{id:"ts-tags",name:"TypeScript with Tags",aliases:["lit"],import:()=>V(()=>import("./index.es498-DnIxUf2o.js"),__vite__mapDeps([88,11,3,2,23,24,1,14,7,8]))},{id:"tsv",name:"TSV",import:()=>V(()=>import("./index.es499-B_m7g4N7.js"),[])},{id:"tsx",name:"TSX",import:()=>V(()=>import("./index.es500-B6W0miNI.js"),[])},{id:"turtle",name:"Turtle",import:()=>V(()=>import("./index.es501-BMR_PYu6.js"),[])},{id:"twig",name:"Twig",import:()=>V(()=>import("./index.es502-DhEHE70J.js"),__vite__mapDeps([89,3,2,5,70,1,7,8,14,9,18,32,33,34,11,35,36,21,22,23,24,26,37,38]))},{id:"typescript",name:"TypeScript",aliases:["ts"],import:()=>V(()=>import("./index.es503-Dj6nwHGl.js"),[])},{id:"typespec",name:"TypeSpec",aliases:["tsp"],import:()=>V(()=>import("./index.es504-BpWG_bgh.js"),[])},{id:"typst",name:"Typst",aliases:["typ"],import:()=>V(()=>import("./index.es505-BVUVsWT6.js"),[])},{id:"v",name:"V",import:()=>V(()=>import("./index.es506-CAQ2eGtk.js"),[])},{id:"vala",name:"Vala",import:()=>V(()=>import("./index.es507-BFOHcciG.js"),[])},{id:"vb",name:"Visual Basic",aliases:["cmd"],import:()=>V(()=>import("./index.es508-CdO5JTpU.js"),[])},{id:"verilog",name:"Verilog",import:()=>V(()=>import("./index.es509-CJaU5se_.js"),[])},{id:"vhdl",name:"VHDL",import:()=>V(()=>import("./index.es510-DYoNaHQp.js"),[])},{id:"viml",name:"Vim Script",aliases:["vim","vimscript"],import:()=>V(()=>import("./index.es511-m4uW47V2.js"),[])},{id:"vue",name:"Vue",import:()=>V(()=>import("./index.es512-B---8rhN.js"),__vite__mapDeps([90,1,2,3,11,9,28]))},{id:"vue-html",name:"Vue HTML",import:()=>V(()=>import("./index.es513-BU_koFtA.js"),__vite__mapDeps([91,90,1,2,3,11,9,28]))},{id:"vyper",name:"Vyper",aliases:["vy"],import:()=>V(()=>import("./index.es514-nyqBNV6O.js"),[])},{id:"wasm",name:"WebAssembly",import:()=>V(()=>import("./index.es515-C6j12Q_x.js"),[])},{id:"wenyan",name:"Wenyan",aliases:["文言"],import:()=>V(()=>import("./index.es516-7A4Fjokl.js"),[])},{id:"wgsl",name:"WGSL",import:()=>V(()=>import("./index.es517-CB0Krxn9.js"),[])},{id:"wikitext",name:"Wikitext",aliases:["mediawiki","wiki"],import:()=>V(()=>import("./index.es518-DCE3LsBG.js"),[])},{id:"wolfram",name:"Wolfram",aliases:["wl"],import:()=>V(()=>import("./index.es519-C3FkfJm5.js"),[])},{id:"xml",name:"XML",import:()=>V(()=>import("./index.es520-ZlB1VPRK.js"),__vite__mapDeps([7,8]))},{id:"xsl",name:"XSL",import:()=>V(()=>import("./index.es521-VBglaSPm.js"),__vite__mapDeps([92,7,8]))},{id:"yaml",name:"YAML",aliases:["yml"],import:()=>V(()=>import("./index.es522-CVw76BM1.js"),[])},{id:"zenscript",name:"ZenScript",import:()=>V(()=>import("./index.es523-HnGAYVZD.js"),[])},{id:"zig",name:"Zig",import:()=>V(()=>import("./index.es524-BVz_zdnA.js"),[])}],VG=Object.fromEntries(tN.map(e=>[e.id,e.import])),GG=Object.fromEntries(tN.flatMap(e=>e.aliases?.map(t=>[t,e.import])||[])),qG={...VG,...GG},WG=[{id:"andromeeda",displayName:"Andromeeda",type:"dark",import:()=>V(()=>import("./index.es525-C3khCPGq.js"),[])},{id:"aurora-x",displayName:"Aurora X",type:"dark",import:()=>V(()=>import("./index.es526-D-2ljcwZ.js"),[])},{id:"ayu-dark",displayName:"Ayu Dark",type:"dark",import:()=>V(()=>import("./index.es527-Cv9koXgw.js"),[])},{id:"catppuccin-frappe",displayName:"Catppuccin Frappé",type:"dark",import:()=>V(()=>import("./index.es528-CD_QflpE.js"),[])},{id:"catppuccin-latte",displayName:"Catppuccin Latte",type:"light",import:()=>V(()=>import("./index.es529-DRW-0cLl.js"),[])},{id:"catppuccin-macchiato",displayName:"Catppuccin Macchiato",type:"dark",import:()=>V(()=>import("./index.es530-C-_shW-Y.js"),[])},{id:"catppuccin-mocha",displayName:"Catppuccin Mocha",type:"dark",import:()=>V(()=>import("./index.es531-LGGdnPYs.js"),[])},{id:"dark-plus",displayName:"Dark Plus",type:"dark",import:()=>V(()=>import("./index.es532-C3mMm8J8.js"),[])},{id:"dracula",displayName:"Dracula Theme",type:"dark",import:()=>V(()=>import("./index.es533-BzJJZx-M.js"),[])},{id:"dracula-soft",displayName:"Dracula Theme Soft",type:"dark",import:()=>V(()=>import("./index.es534-BXkSAIEj.js"),[])},{id:"everforest-dark",displayName:"Everforest Dark",type:"dark",import:()=>V(()=>import("./index.es535-BgDCqdQA.js"),[])},{id:"everforest-light",displayName:"Everforest Light",type:"light",import:()=>V(()=>import("./index.es536-C8M2exoo.js"),[])},{id:"github-dark",displayName:"GitHub Dark",type:"dark",import:()=>V(()=>import("./index.es537-DHJKELXO.js"),[])},{id:"github-dark-default",displayName:"GitHub Dark Default",type:"dark",import:()=>V(()=>import("./index.es538-Cuk6v7N8.js"),[])},{id:"github-dark-dimmed",displayName:"GitHub Dark Dimmed",type:"dark",import:()=>V(()=>import("./index.es539-DH5Ifo-i.js"),[])},{id:"github-dark-high-contrast",displayName:"GitHub Dark High Contrast",type:"dark",import:()=>V(()=>import("./index.es540-E3gJ1_iC.js"),[])},{id:"github-light",displayName:"GitHub Light",type:"light",import:()=>V(()=>import("./index.es541-DAi9KRSo.js"),[])},{id:"github-light-default",displayName:"GitHub Light Default",type:"light",import:()=>V(()=>import("./index.es542-D7oLnXFd.js"),[])},{id:"github-light-high-contrast",displayName:"GitHub Light High Contrast",type:"light",import:()=>V(()=>import("./index.es543-BfjtVDDH.js"),[])},{id:"houston",displayName:"Houston",type:"dark",import:()=>V(()=>import("./index.es544-DnULxvSX.js"),[])},{id:"kanagawa-dragon",displayName:"Kanagawa Dragon",type:"dark",import:()=>V(()=>import("./index.es545-CkXjmgJE.js"),[])},{id:"kanagawa-lotus",displayName:"Kanagawa Lotus",type:"light",import:()=>V(()=>import("./index.es546-CfQXZHmo.js"),[])},{id:"kanagawa-wave",displayName:"Kanagawa Wave",type:"dark",import:()=>V(()=>import("./index.es547-DWedfzmr.js"),[])},{id:"laserwave",displayName:"LaserWave",type:"dark",import:()=>V(()=>import("./index.es548-DUszq2jm.js"),[])},{id:"light-plus",displayName:"Light Plus",type:"light",import:()=>V(()=>import("./index.es549-B7mTdjB0.js"),[])},{id:"material-theme",displayName:"Material Theme",type:"dark",import:()=>V(()=>import("./index.es550-D5KoaKCx.js"),[])},{id:"material-theme-darker",displayName:"Material Theme Darker",type:"dark",import:()=>V(()=>import("./index.es551-BfHTSMKl.js"),[])},{id:"material-theme-lighter",displayName:"Material Theme Lighter",type:"light",import:()=>V(()=>import("./index.es552-B0m2ddpp.js"),[])},{id:"material-theme-ocean",displayName:"Material Theme Ocean",type:"dark",import:()=>V(()=>import("./index.es553-CyktbL80.js"),[])},{id:"material-theme-palenight",displayName:"Material Theme Palenight",type:"dark",import:()=>V(()=>import("./index.es554-Csfq5Kiy.js"),[])},{id:"min-dark",displayName:"Min Dark",type:"dark",import:()=>V(()=>import("./index.es555-CafNBF8u.js"),[])},{id:"min-light",displayName:"Min Light",type:"light",import:()=>V(()=>import("./index.es556-CTRr51gU.js"),[])},{id:"monokai",displayName:"Monokai",type:"dark",import:()=>V(()=>import("./index.es557-D4h5O-jR.js"),[])},{id:"night-owl",displayName:"Night Owl",type:"dark",import:()=>V(()=>import("./index.es558-C39BiMTA.js"),[])},{id:"nord",displayName:"Nord",type:"dark",import:()=>V(()=>import("./index.es559-Ddv68eIx.js"),[])},{id:"one-dark-pro",displayName:"One Dark Pro",type:"dark",import:()=>V(()=>import("./index.es560-GBQ2dnAY.js"),[])},{id:"one-light",displayName:"One Light",type:"light",import:()=>V(()=>import("./index.es561-PoHY5YXO.js"),[])},{id:"plastic",displayName:"Plastic",type:"dark",import:()=>V(()=>import("./index.es562-3e1v2bzS.js"),[])},{id:"poimandres",displayName:"Poimandres",type:"dark",import:()=>V(()=>import("./index.es563-CS3Unz2-.js"),[])},{id:"red",displayName:"Red",type:"dark",import:()=>V(()=>import("./index.es564-bN70gL4F.js"),[])},{id:"rose-pine",displayName:"Rosé Pine",type:"dark",import:()=>V(()=>import("./index.es565-CmCqftbK.js"),[])},{id:"rose-pine-dawn",displayName:"Rosé Pine Dawn",type:"light",import:()=>V(()=>import("./index.es566-Ds-gbosJ.js"),[])},{id:"rose-pine-moon",displayName:"Rosé Pine Moon",type:"dark",import:()=>V(()=>import("./index.es567-CjDtw9vr.js"),[])},{id:"slack-dark",displayName:"Slack Dark",type:"dark",import:()=>V(()=>import("./index.es568-BthQWCQV.js"),[])},{id:"slack-ochin",displayName:"Slack Ochin",type:"light",import:()=>V(()=>import("./index.es569-DqwNpetd.js"),[])},{id:"snazzy-light",displayName:"Snazzy Light",type:"light",import:()=>V(()=>import("./index.es570-Bw305WKR.js"),[])},{id:"solarized-dark",displayName:"Solarized Dark",type:"dark",import:()=>V(()=>import("./index.es571-DXbdFlpD.js"),[])},{id:"solarized-light",displayName:"Solarized Light",type:"light",import:()=>V(()=>import("./index.es572-L9t79GZl.js"),[])},{id:"synthwave-84",displayName:"Synthwave '84",type:"dark",import:()=>V(()=>import("./index.es573-CbfX1IO0.js"),[])},{id:"tokyo-night",displayName:"Tokyo Night",type:"dark",import:()=>V(()=>import("./index.es574-DBQeEorK.js"),[])},{id:"vesper",displayName:"Vesper",type:"dark",import:()=>V(()=>import("./index.es575-BEBZ7ncR.js"),[])},{id:"vitesse-black",displayName:"Vitesse Black",type:"dark",import:()=>V(()=>import("./index.es576-Bkuqu6BP.js"),[])},{id:"vitesse-dark",displayName:"Vitesse Dark",type:"dark",import:()=>V(()=>import("./index.es577-D0r3Knsf.js"),[])},{id:"vitesse-light",displayName:"Vitesse Light",type:"light",import:()=>V(()=>import("./index.es578-CVO1_9PV.js"),[])}],YG=Object.fromEntries(WG.map(e=>[e.id,e.import]));let Ii=class extends Error{constructor(t){super(t),this.name="ShikiError"}},MS=class extends Error{constructor(t){super(t),this.name="ShikiError"}};function QG(){return 2147483648}function KG(){return typeof performance<"u"?performance.now():Date.now()}const XG=(e,t)=>e+(t-e%t)%t;async function ZG(e){let t,n;const r={};function a(y){n=y,r.HEAPU8=new Uint8Array(y),r.HEAPU32=new Uint32Array(y)}function o(y,b,E){r.HEAPU8.copyWithin(y,b,b+E)}function s(y){try{return t.grow(y-n.byteLength+65535>>>16),a(t.buffer),1}catch{}}function c(y){const b=r.HEAPU8.length;y=y>>>0;const E=QG();if(y>E)return!1;for(let _=1;_<=4;_*=2){let A=b*(1+.2/_);A=Math.min(A,y+100663296);const D=Math.min(E,XG(Math.max(y,A),65536));if(s(D))return!0}return!1}const u=typeof TextDecoder<"u"?new TextDecoder("utf8"):void 0;function d(y,b,E=1024){const _=b+E;let A=b;for(;y[A]&&!(A>=_);)++A;if(A-b>16&&y.buffer&&u)return u.decode(y.subarray(b,A));let D="";for(;b<A;){let w=y[b++];if(!(w&128)){D+=String.fromCharCode(w);continue}const R=y[b++]&63;if((w&224)===192){D+=String.fromCharCode((w&31)<<6|R);continue}const O=y[b++]&63;if((w&240)===224?w=(w&15)<<12|R<<6|O:w=(w&7)<<18|R<<12|O<<6|y[b++]&63,w<65536)D+=String.fromCharCode(w);else{const k=w-65536;D+=String.fromCharCode(55296|k>>10,56320|k&1023)}}return D}function p(y,b){return y?d(r.HEAPU8,y,b):""}const h={emscripten_get_now:KG,emscripten_memcpy_big:o,emscripten_resize_heap:c,fd_write:()=>0};async function g(){const y=await e({env:h,wasi_snapshot_preview1:h});t=y.memory,a(t.buffer),Object.assign(r,y),r.UTF8ToString=p}return await g(),r}var JG=Object.defineProperty,eq=(e,t,n)=>t in e?JG(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,fr=(e,t,n)=>(eq(e,typeof t!="symbol"?t+"":t,n),n);let Tr=null;function tq(e){throw new MS(e.UTF8ToString(e.getLastOnigError()))}let nN=class rN{constructor(t){fr(this,"utf16Length"),fr(this,"utf8Length"),fr(this,"utf16Value"),fr(this,"utf8Value"),fr(this,"utf16OffsetToUtf8"),fr(this,"utf8OffsetToUtf16");const n=t.length,r=rN._utf8ByteLength(t),a=r!==n,o=a?new Uint32Array(n+1):null;a&&(o[n]=r);const s=a?new Uint32Array(r+1):null;a&&(s[r]=n);const c=new Uint8Array(r);let u=0;for(let d=0;d<n;d++){const p=t.charCodeAt(d);let h=p,g=!1;if(p>=55296&&p<=56319&&d+1<n){const y=t.charCodeAt(d+1);y>=56320&&y<=57343&&(h=(p-55296<<10)+65536|y-56320,g=!0)}a&&(o[d]=u,g&&(o[d+1]=u),h<=127?s[u+0]=d:h<=2047?(s[u+0]=d,s[u+1]=d):h<=65535?(s[u+0]=d,s[u+1]=d,s[u+2]=d):(s[u+0]=d,s[u+1]=d,s[u+2]=d,s[u+3]=d)),h<=127?c[u++]=h:h<=2047?(c[u++]=192|(h&1984)>>>6,c[u++]=128|(h&63)>>>0):h<=65535?(c[u++]=224|(h&61440)>>>12,c[u++]=128|(h&4032)>>>6,c[u++]=128|(h&63)>>>0):(c[u++]=240|(h&1835008)>>>18,c[u++]=128|(h&258048)>>>12,c[u++]=128|(h&4032)>>>6,c[u++]=128|(h&63)>>>0),g&&d++}this.utf16Length=n,this.utf8Length=r,this.utf16Value=t,this.utf8Value=c,this.utf16OffsetToUtf8=o,this.utf8OffsetToUtf16=s}static _utf8ByteLength(t){let n=0;for(let r=0,a=t.length;r<a;r++){const o=t.charCodeAt(r);let s=o,c=!1;if(o>=55296&&o<=56319&&r+1<a){const u=t.charCodeAt(r+1);u>=56320&&u<=57343&&(s=(o-55296<<10)+65536|u-56320,c=!0)}s<=127?n+=1:s<=2047?n+=2:s<=65535?n+=3:n+=4,c&&r++}return n}createString(t){const n=t.omalloc(this.utf8Length);return t.HEAPU8.set(this.utf8Value,n),n}};const Fo=class{constructor(t){if(fr(this,"id",++Fo.LAST_ID),fr(this,"_onigBinding"),fr(this,"content"),fr(this,"utf16Length"),fr(this,"utf8Length"),fr(this,"utf16OffsetToUtf8"),fr(this,"utf8OffsetToUtf16"),fr(this,"ptr"),!Tr)throw new MS("Must invoke loadWasm first.");this._onigBinding=Tr,this.content=t;const n=new nN(t);this.utf16Length=n.utf16Length,this.utf8Length=n.utf8Length,this.utf16OffsetToUtf8=n.utf16OffsetToUtf8,this.utf8OffsetToUtf16=n.utf8OffsetToUtf16,this.utf8Length<1e4&&!Fo._sharedPtrInUse?(Fo._sharedPtr||(Fo._sharedPtr=Tr.omalloc(1e4)),Fo._sharedPtrInUse=!0,Tr.HEAPU8.set(n.utf8Value,Fo._sharedPtr),this.ptr=Fo._sharedPtr):this.ptr=n.createString(Tr)}convertUtf8OffsetToUtf16(t){return this.utf8OffsetToUtf16?t<0?0:t>this.utf8Length?this.utf16Length:this.utf8OffsetToUtf16[t]:t}convertUtf16OffsetToUtf8(t){return this.utf16OffsetToUtf8?t<0?0:t>this.utf16Length?this.utf8Length:this.utf16OffsetToUtf8[t]:t}dispose(){this.ptr===Fo._sharedPtr?Fo._sharedPtrInUse=!1:this._onigBinding.ofree(this.ptr)}};let Op=Fo;fr(Op,"LAST_ID",0);fr(Op,"_sharedPtr",0);fr(Op,"_sharedPtrInUse",!1);let nq=class{constructor(t){if(fr(this,"_onigBinding"),fr(this,"_ptr"),!Tr)throw new MS("Must invoke loadWasm first.");const n=[],r=[];for(let c=0,u=t.length;c<u;c++){const d=new nN(t[c]);n[c]=d.createString(Tr),r[c]=d.utf8Length}const a=Tr.omalloc(4*t.length);Tr.HEAPU32.set(n,a/4);const o=Tr.omalloc(4*t.length);Tr.HEAPU32.set(r,o/4);const s=Tr.createOnigScanner(a,o,t.length);for(let c=0,u=t.length;c<u;c++)Tr.ofree(n[c]);Tr.ofree(o),Tr.ofree(a),s===0&&tq(Tr),this._onigBinding=Tr,this._ptr=s}dispose(){this._onigBinding.freeOnigScanner(this._ptr)}findNextMatchSync(t,n,r){let a=0;if(typeof r=="number"&&(a=r),typeof t=="string"){t=new Op(t);const o=this._findNextMatchSync(t,n,!1,a);return t.dispose(),o}return this._findNextMatchSync(t,n,!1,a)}_findNextMatchSync(t,n,r,a){const o=this._onigBinding,s=o.findNextOnigScannerMatch(this._ptr,t.id,t.ptr,t.utf8Length,t.convertUtf16OffsetToUtf8(n),a);if(s===0)return null;const c=o.HEAPU32;let u=s/4;const d=c[u++],p=c[u++],h=[];for(let g=0;g<p;g++){const y=t.convertUtf8OffsetToUtf16(c[u++]),b=t.convertUtf8OffsetToUtf16(c[u++]);h[g]={start:y,end:b,length:b-y}}return{index:d,captureIndices:h}}};function rq(e){return typeof e.instantiator=="function"}function aq(e){return typeof e.default=="function"}function oq(e){return typeof e.data<"u"}function iq(e){return typeof Response<"u"&&e instanceof Response}function sq(e){return typeof ArrayBuffer<"u"&&(e instanceof ArrayBuffer||ArrayBuffer.isView(e))||typeof Buffer<"u"&&Buffer.isBuffer?.(e)||typeof SharedArrayBuffer<"u"&&e instanceof SharedArrayBuffer||typeof Uint32Array<"u"&&e instanceof Uint32Array}let vm;function lq(e){if(vm)return vm;async function t(){Tr=await ZG(async n=>{let r=e;return r=await r,typeof r=="function"&&(r=await r(n)),typeof r=="function"&&(r=await r(n)),rq(r)?r=await r.instantiator(n):aq(r)?r=await r.default(n):(oq(r)&&(r=r.data),iq(r)?typeof WebAssembly.instantiateStreaming=="function"?r=await cq(r)(n):r=await uq(r)(n):sq(r)?r=await Gv(r)(n):r instanceof WebAssembly.Module?r=await Gv(r)(n):"default"in r&&r.default instanceof WebAssembly.Module&&(r=await Gv(r.default)(n))),"instance"in r&&(r=r.instance),"exports"in r&&(r=r.exports),r})}return vm=t(),vm}function Gv(e){return t=>WebAssembly.instantiate(e,t)}function cq(e){return t=>WebAssembly.instantiateStreaming(e,t)}function uq(e){return async t=>{const n=await e.arrayBuffer();return WebAssembly.instantiate(n,t)}}let dq;function fq(){return dq}async function aN(e){return e&&await lq(e),{createScanner(t){return new nq(t.map(n=>typeof n=="string"?n:n.source))},createString(t){return new Op(t)}}}function pq(e){return $S(e)}function $S(e){return Array.isArray(e)?hq(e):e instanceof RegExp?e:typeof e=="object"?mq(e):e}function hq(e){let t=[];for(let n=0,r=e.length;n<r;n++)t[n]=$S(e[n]);return t}function mq(e){let t={};for(let n in e)t[n]=$S(e[n]);return t}function oN(e,...t){return t.forEach(n=>{for(let r in n)e[r]=n[r]}),e}function iN(e){const t=~e.lastIndexOf("/")||~e.lastIndexOf("\\");return t===0?e:~t===e.length-1?iN(e.substring(0,e.length-1)):e.substr(~t+1)}var qv=/\$(\d+)|\${(\d+):\/(downcase|upcase)}/g,bm=class{static hasCaptures(t){return t===null?!1:(qv.lastIndex=0,qv.test(t))}static replaceCaptures(t,n,r){return t.replace(qv,(a,o,s,c)=>{let u=r[parseInt(o||s,10)];if(u){let d=n.substring(u.start,u.end);for(;d[0]===".";)d=d.substring(1);switch(c){case"downcase":return d.toLowerCase();case"upcase":return d.toUpperCase();default:return d}}else return a})}};function sN(e,t){return e<t?-1:e>t?1:0}function lN(e,t){if(e===null&&t===null)return 0;if(!e)return-1;if(!t)return 1;let n=e.length,r=t.length;if(n===r){for(let a=0;a<n;a++){let o=sN(e[a],t[a]);if(o!==0)return o}return 0}return n-r}function ID(e){return!!(/^#[0-9a-f]{6}$/i.test(e)||/^#[0-9a-f]{8}$/i.test(e)||/^#[0-9a-f]{3}$/i.test(e)||/^#[0-9a-f]{4}$/i.test(e))}function cN(e){return e.replace(/[\-\\\{\}\*\+\?\|\^\$\.\,\[\]\(\)\#\s]/g,"\\$&")}var uN=class{constructor(t){this.fn=t}cache=new Map;get(t){if(this.cache.has(t))return this.cache.get(t);const n=this.fn(t);return this.cache.set(t,n),n}},Cg=class{constructor(t,n,r){this._colorMap=t,this._defaults=n,this._root=r}static createFromRawTheme(t,n){return this.createFromParsedTheme(vq(t),n)}static createFromParsedTheme(t,n){return Eq(t,n)}_cachedMatchRoot=new uN(t=>this._root.match(t));getColorMap(){return this._colorMap.getColorMap()}getDefaults(){return this._defaults}match(t){if(t===null)return this._defaults;const n=t.scopeName,r=this._cachedMatchRoot.get(n).find(a=>gq(t.parent,a.parentScopes));return r?new dN(r.fontStyle,r.foreground,r.background):null}},Wv=class qm{constructor(t,n){this.parent=t,this.scopeName=n}static push(t,n){for(const r of n)t=new qm(t,r);return t}static from(...t){let n=null;for(let r=0;r<t.length;r++)n=new qm(n,t[r]);return n}push(t){return new qm(this,t)}getSegments(){let t=this;const n=[];for(;t;)n.push(t.scopeName),t=t.parent;return n.reverse(),n}toString(){return this.getSegments().join(" ")}extends(t){return this===t?!0:this.parent===null?!1:this.parent.extends(t)}getExtensionIfDefined(t){const n=[];let r=this;for(;r&&r!==t;)n.push(r.scopeName),r=r.parent;return r===t?n.reverse():void 0}};function gq(e,t){if(t.length===0)return!0;for(let n=0;n<t.length;n++){let r=t[n],a=!1;if(r===">"){if(n===t.length-1)return!1;r=t[++n],a=!0}for(;e&&!yq(e.scopeName,r);){if(a)return!1;e=e.parent}if(!e)return!1;e=e.parent}return!0}function yq(e,t){return t===e||e.startsWith(t)&&e[t.length]==="."}var dN=class{constructor(t,n,r){this.fontStyle=t,this.foregroundId=n,this.backgroundId=r}};function vq(e){if(!e)return[];if(!e.settings||!Array.isArray(e.settings))return[];let t=e.settings,n=[],r=0;for(let a=0,o=t.length;a<o;a++){let s=t[a];if(!s.settings)continue;let c;if(typeof s.scope=="string"){let h=s.scope;h=h.replace(/^[,]+/,""),h=h.replace(/[,]+$/,""),c=h.split(",")}else Array.isArray(s.scope)?c=s.scope:c=[""];let u=-1;if(typeof s.settings.fontStyle=="string"){u=0;let h=s.settings.fontStyle.split(" ");for(let g=0,y=h.length;g<y;g++)switch(h[g]){case"italic":u=u|1;break;case"bold":u=u|2;break;case"underline":u=u|4;break;case"strikethrough":u=u|8;break}}let d=null;typeof s.settings.foreground=="string"&&ID(s.settings.foreground)&&(d=s.settings.foreground);let p=null;typeof s.settings.background=="string"&&ID(s.settings.background)&&(p=s.settings.background);for(let h=0,g=c.length;h<g;h++){let y=c[h].trim().split(" "),b=y[y.length-1],E=null;y.length>1&&(E=y.slice(0,y.length-1),E.reverse()),n[r++]=new bq(b,E,a,u,d,p)}}return n}var bq=class{constructor(t,n,r,a,o,s){this.scope=t,this.parentScopes=n,this.index=r,this.fontStyle=a,this.foreground=o,this.background=s}},Ri=(e=>(e[e.NotSet=-1]="NotSet",e[e.None=0]="None",e[e.Italic=1]="Italic",e[e.Bold=2]="Bold",e[e.Underline=4]="Underline",e[e.Strikethrough=8]="Strikethrough",e))(Ri||{});function Eq(e,t){e.sort((u,d)=>{let p=sN(u.scope,d.scope);return p!==0||(p=lN(u.parentScopes,d.parentScopes),p!==0)?p:u.index-d.index});let n=0,r="#000000",a="#ffffff";for(;e.length>=1&&e[0].scope==="";){let u=e.shift();u.fontStyle!==-1&&(n=u.fontStyle),u.foreground!==null&&(r=u.foreground),u.background!==null&&(a=u.background)}let o=new Tq(t),s=new dN(n,o.getId(r),o.getId(a)),c=new _q(new AE(0,null,-1,0,0),[]);for(let u=0,d=e.length;u<d;u++){let p=e[u];c.insert(0,p.scope,p.parentScopes,p.fontStyle,o.getId(p.foreground),o.getId(p.background))}return new Cg(o,s,c)}var Tq=class{_isFrozen;_lastColorId;_id2color;_color2id;constructor(t){if(this._lastColorId=0,this._id2color=[],this._color2id=Object.create(null),Array.isArray(t)){this._isFrozen=!0;for(let n=0,r=t.length;n<r;n++)this._color2id[t[n]]=n,this._id2color[n]=t[n]}else this._isFrozen=!1}getId(t){if(t===null)return 0;t=t.toUpperCase();let n=this._color2id[t];if(n)return n;if(this._isFrozen)throw new Error(`Missing color in color map - ${t}`);return n=++this._lastColorId,this._color2id[t]=n,this._id2color[n]=t,n}getColorMap(){return this._id2color.slice(0)}},Sq=Object.freeze([]),AE=class fN{scopeDepth;parentScopes;fontStyle;foreground;background;constructor(t,n,r,a,o){this.scopeDepth=t,this.parentScopes=n||Sq,this.fontStyle=r,this.foreground=a,this.background=o}clone(){return new fN(this.scopeDepth,this.parentScopes,this.fontStyle,this.foreground,this.background)}static cloneArr(t){let n=[];for(let r=0,a=t.length;r<a;r++)n[r]=t[r].clone();return n}acceptOverwrite(t,n,r,a){this.scopeDepth>t?console.log("how did this happen?"):this.scopeDepth=t,n!==-1&&(this.fontStyle=n),r!==0&&(this.foreground=r),a!==0&&(this.background=a)}},_q=class xE{constructor(t,n=[],r={}){this._mainRule=t,this._children=r,this._rulesWithParentScopes=n}_rulesWithParentScopes;static _cmpBySpecificity(t,n){if(t.scopeDepth!==n.scopeDepth)return n.scopeDepth-t.scopeDepth;let r=0,a=0;for(;t.parentScopes[r]===">"&&r++,n.parentScopes[a]===">"&&a++,!(r>=t.parentScopes.length||a>=n.parentScopes.length);){const o=n.parentScopes[a].length-t.parentScopes[r].length;if(o!==0)return o;r++,a++}return n.parentScopes.length-t.parentScopes.length}match(t){if(t!==""){let r=t.indexOf("."),a,o;if(r===-1?(a=t,o=""):(a=t.substring(0,r),o=t.substring(r+1)),this._children.hasOwnProperty(a))return this._children[a].match(o)}const n=this._rulesWithParentScopes.concat(this._mainRule);return n.sort(xE._cmpBySpecificity),n}insert(t,n,r,a,o,s){if(n===""){this._doInsertHere(t,r,a,o,s);return}let c=n.indexOf("."),u,d;c===-1?(u=n,d=""):(u=n.substring(0,c),d=n.substring(c+1));let p;this._children.hasOwnProperty(u)?p=this._children[u]:(p=new xE(this._mainRule.clone(),AE.cloneArr(this._rulesWithParentScopes)),this._children[u]=p),p.insert(t+1,d,r,a,o,s)}_doInsertHere(t,n,r,a,o){if(n===null){this._mainRule.acceptOverwrite(t,r,a,o);return}for(let s=0,c=this._rulesWithParentScopes.length;s<c;s++){let u=this._rulesWithParentScopes[s];if(lN(u.parentScopes,n)===0){u.acceptOverwrite(t,r,a,o);return}}r===-1&&(r=this._mainRule.fontStyle),a===0&&(a=this._mainRule.foreground),o===0&&(o=this._mainRule.background),this._rulesWithParentScopes.push(new AE(t,n,r,a,o))}},fu=class Ya{static toBinaryStr(t){return t.toString(2).padStart(32,"0")}static print(t){const n=Ya.getLanguageId(t),r=Ya.getTokenType(t),a=Ya.getFontStyle(t),o=Ya.getForeground(t),s=Ya.getBackground(t);console.log({languageId:n,tokenType:r,fontStyle:a,foreground:o,background:s})}static getLanguageId(t){return(t&255)>>>0}static getTokenType(t){return(t&768)>>>8}static containsBalancedBrackets(t){return(t&1024)!==0}static getFontStyle(t){return(t&30720)>>>11}static getForeground(t){return(t&16744448)>>>15}static getBackground(t){return(t&4278190080)>>>24}static set(t,n,r,a,o,s,c){let u=Ya.getLanguageId(t),d=Ya.getTokenType(t),p=Ya.containsBalancedBrackets(t)?1:0,h=Ya.getFontStyle(t),g=Ya.getForeground(t),y=Ya.getBackground(t);return n!==0&&(u=n),r!==8&&(d=r),a!==null&&(p=a?1:0),o!==-1&&(h=o),s!==0&&(g=s),c!==0&&(y=c),(u<<0|d<<8|p<<10|h<<11|g<<15|y<<24)>>>0}};function Ag(e,t){const n=[],r=Cq(e);let a=r.next();for(;a!==null;){let u=0;if(a.length===2&&a.charAt(1)===":"){switch(a.charAt(0)){case"R":u=1;break;case"L":u=-1;break;default:console.log(`Unknown priority ${a} in scope selector`)}a=r.next()}let d=s();if(n.push({matcher:d,priority:u}),a!==",")break;a=r.next()}return n;function o(){if(a==="-"){a=r.next();const u=o();return d=>!!u&&!u(d)}if(a==="("){a=r.next();const u=c();return a===")"&&(a=r.next()),u}if(ND(a)){const u=[];do u.push(a),a=r.next();while(ND(a));return d=>t(u,d)}return null}function s(){const u=[];let d=o();for(;d;)u.push(d),d=o();return p=>u.every(h=>h(p))}function c(){const u=[];let d=s();for(;d&&(u.push(d),a==="|"||a===",");){do a=r.next();while(a==="|"||a===",");d=s()}return p=>u.some(h=>h(p))}}function ND(e){return!!e&&!!e.match(/[\w\.:]+/)}function Cq(e){let t=/([LR]:|[\w\.:][\w\.:\-]*|[\,\|\-\(\)])/g,n=t.exec(e);return{next:()=>{if(!n)return null;const r=n[0];return n=t.exec(e),r}}}function pN(e){typeof e.dispose=="function"&&e.dispose()}var Kf=class{constructor(t){this.scopeName=t}toKey(){return this.scopeName}},Aq=class{constructor(t,n){this.scopeName=t,this.ruleName=n}toKey(){return`${this.scopeName}#${this.ruleName}`}},xq=class{_references=[];_seenReferenceKeys=new Set;get references(){return this._references}visitedRule=new Set;add(t){const n=t.toKey();this._seenReferenceKeys.has(n)||(this._seenReferenceKeys.add(n),this._references.push(t))}},wq=class{constructor(t,n){this.repo=t,this.initialScopeName=n,this.seenFullScopeRequests.add(this.initialScopeName),this.Q=[new Kf(this.initialScopeName)]}seenFullScopeRequests=new Set;seenPartialScopeRequests=new Set;Q;processQueue(){const t=this.Q;this.Q=[];const n=new xq;for(const r of t)Dq(r,this.initialScopeName,this.repo,n);for(const r of n.references)if(r instanceof Kf){if(this.seenFullScopeRequests.has(r.scopeName))continue;this.seenFullScopeRequests.add(r.scopeName),this.Q.push(r)}else{if(this.seenFullScopeRequests.has(r.scopeName)||this.seenPartialScopeRequests.has(r.toKey()))continue;this.seenPartialScopeRequests.add(r.toKey()),this.Q.push(r)}}};function Dq(e,t,n,r){const a=n.lookup(e.scopeName);if(!a){if(e.scopeName===t)throw new Error(`No grammar provided for <${t}>`);return}const o=n.lookup(t);e instanceof Kf?Wm({baseGrammar:o,selfGrammar:a},r):wE(e.ruleName,{baseGrammar:o,selfGrammar:a,repository:a.repository},r);const s=n.injections(e.scopeName);if(s)for(const c of s)r.add(new Kf(c))}function wE(e,t,n){if(t.repository&&t.repository[e]){const r=t.repository[e];xg([r],t,n)}}function Wm(e,t){e.selfGrammar.patterns&&Array.isArray(e.selfGrammar.patterns)&&xg(e.selfGrammar.patterns,{...e,repository:e.selfGrammar.repository},t),e.selfGrammar.injections&&xg(Object.values(e.selfGrammar.injections),{...e,repository:e.selfGrammar.repository},t)}function xg(e,t,n){for(const r of e){if(n.visitedRule.has(r))continue;n.visitedRule.add(r);const a=r.repository?oN({},t.repository,r.repository):t.repository;Array.isArray(r.patterns)&&xg(r.patterns,{...t,repository:a},n);const o=r.include;if(!o)continue;const s=hN(o);switch(s.kind){case 0:Wm({...t,selfGrammar:t.baseGrammar},n);break;case 1:Wm(t,n);break;case 2:wE(s.ruleName,{...t,repository:a},n);break;case 3:case 4:const c=s.scopeName===t.selfGrammar.scopeName?t.selfGrammar:s.scopeName===t.baseGrammar.scopeName?t.baseGrammar:void 0;if(c){const u={baseGrammar:t.baseGrammar,selfGrammar:c,repository:a};s.kind===4?wE(s.ruleName,u,n):Wm(u,n)}else s.kind===4?n.add(new Aq(s.scopeName,s.ruleName)):n.add(new Kf(s.scopeName));break}}}var kq=class{kind=0},Rq=class{kind=1},Oq=class{constructor(t){this.ruleName=t}kind=2},Iq=class{constructor(t){this.scopeName=t}kind=3},Nq=class{constructor(t,n){this.scopeName=t,this.ruleName=n}kind=4};function hN(e){if(e==="$base")return new kq;if(e==="$self")return new Rq;const t=e.indexOf("#");if(t===-1)return new Iq(e);if(t===0)return new Oq(e.substring(1));{const n=e.substring(0,t),r=e.substring(t+1);return new Nq(n,r)}}var Lq=/\\(\d+)/,LD=/\\(\d+)/g,Pq=-1,mN=-2,Ip=class{$location;id;_nameIsCapturing;_name;_contentNameIsCapturing;_contentName;constructor(t,n,r,a){this.$location=t,this.id=n,this._name=r||null,this._nameIsCapturing=bm.hasCaptures(this._name),this._contentName=a||null,this._contentNameIsCapturing=bm.hasCaptures(this._contentName)}get debugName(){const t=this.$location?`${iN(this.$location.filename)}:${this.$location.line}`:"unknown";return`${this.constructor.name}#${this.id} @ ${t}`}getName(t,n){return!this._nameIsCapturing||this._name===null||t===null||n===null?this._name:bm.replaceCaptures(this._name,t,n)}getContentName(t,n){return!this._contentNameIsCapturing||this._contentName===null?this._contentName:bm.replaceCaptures(this._contentName,t,n)}},Mq=class extends Ip{retokenizeCapturedWithRuleId;constructor(t,n,r,a,o){super(t,n,r,a),this.retokenizeCapturedWithRuleId=o}dispose(){}collectPatterns(t,n){throw new Error("Not supported!")}compile(t,n){throw new Error("Not supported!")}compileAG(t,n,r,a){throw new Error("Not supported!")}},$q=class extends Ip{_match;captures;_cachedCompiledPatterns;constructor(t,n,r,a,o){super(t,n,r,null),this._match=new Xf(a,this.id),this.captures=o,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null)}get debugMatchRegExp(){return`${this._match.source}`}collectPatterns(t,n){n.push(this._match)}compile(t,n){return this._getCachedCompiledPatterns(t).compile(t)}compileAG(t,n,r,a){return this._getCachedCompiledPatterns(t).compileAG(t,r,a)}_getCachedCompiledPatterns(t){return this._cachedCompiledPatterns||(this._cachedCompiledPatterns=new Zf,this.collectPatterns(t,this._cachedCompiledPatterns)),this._cachedCompiledPatterns}},PD=class extends Ip{hasMissingPatterns;patterns;_cachedCompiledPatterns;constructor(t,n,r,a,o){super(t,n,r,a),this.patterns=o.patterns,this.hasMissingPatterns=o.hasMissingPatterns,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null)}collectPatterns(t,n){for(const r of this.patterns)t.getRule(r).collectPatterns(t,n)}compile(t,n){return this._getCachedCompiledPatterns(t).compile(t)}compileAG(t,n,r,a){return this._getCachedCompiledPatterns(t).compileAG(t,r,a)}_getCachedCompiledPatterns(t){return this._cachedCompiledPatterns||(this._cachedCompiledPatterns=new Zf,this.collectPatterns(t,this._cachedCompiledPatterns)),this._cachedCompiledPatterns}},DE=class extends Ip{_begin;beginCaptures;_end;endHasBackReferences;endCaptures;applyEndPatternLast;hasMissingPatterns;patterns;_cachedCompiledPatterns;constructor(t,n,r,a,o,s,c,u,d,p){super(t,n,r,a),this._begin=new Xf(o,this.id),this.beginCaptures=s,this._end=new Xf(c||"￿",-1),this.endHasBackReferences=this._end.hasBackReferences,this.endCaptures=u,this.applyEndPatternLast=d||!1,this.patterns=p.patterns,this.hasMissingPatterns=p.hasMissingPatterns,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null)}get debugBeginRegExp(){return`${this._begin.source}`}get debugEndRegExp(){return`${this._end.source}`}getEndWithResolvedBackReferences(t,n){return this._end.resolveBackReferences(t,n)}collectPatterns(t,n){n.push(this._begin)}compile(t,n){return this._getCachedCompiledPatterns(t,n).compile(t)}compileAG(t,n,r,a){return this._getCachedCompiledPatterns(t,n).compileAG(t,r,a)}_getCachedCompiledPatterns(t,n){if(!this._cachedCompiledPatterns){this._cachedCompiledPatterns=new Zf;for(const r of this.patterns)t.getRule(r).collectPatterns(t,this._cachedCompiledPatterns);this.applyEndPatternLast?this._cachedCompiledPatterns.push(this._end.hasBackReferences?this._end.clone():this._end):this._cachedCompiledPatterns.unshift(this._end.hasBackReferences?this._end.clone():this._end)}return this._end.hasBackReferences&&(this.applyEndPatternLast?this._cachedCompiledPatterns.setSource(this._cachedCompiledPatterns.length()-1,n):this._cachedCompiledPatterns.setSource(0,n)),this._cachedCompiledPatterns}},wg=class extends Ip{_begin;beginCaptures;whileCaptures;_while;whileHasBackReferences;hasMissingPatterns;patterns;_cachedCompiledPatterns;_cachedCompiledWhilePatterns;constructor(t,n,r,a,o,s,c,u,d){super(t,n,r,a),this._begin=new Xf(o,this.id),this.beginCaptures=s,this.whileCaptures=u,this._while=new Xf(c,mN),this.whileHasBackReferences=this._while.hasBackReferences,this.patterns=d.patterns,this.hasMissingPatterns=d.hasMissingPatterns,this._cachedCompiledPatterns=null,this._cachedCompiledWhilePatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null),this._cachedCompiledWhilePatterns&&(this._cachedCompiledWhilePatterns.dispose(),this._cachedCompiledWhilePatterns=null)}get debugBeginRegExp(){return`${this._begin.source}`}get debugWhileRegExp(){return`${this._while.source}`}getWhileWithResolvedBackReferences(t,n){return this._while.resolveBackReferences(t,n)}collectPatterns(t,n){n.push(this._begin)}compile(t,n){return this._getCachedCompiledPatterns(t).compile(t)}compileAG(t,n,r,a){return this._getCachedCompiledPatterns(t).compileAG(t,r,a)}_getCachedCompiledPatterns(t){if(!this._cachedCompiledPatterns){this._cachedCompiledPatterns=new Zf;for(const n of this.patterns)t.getRule(n).collectPatterns(t,this._cachedCompiledPatterns)}return this._cachedCompiledPatterns}compileWhile(t,n){return this._getCachedCompiledWhilePatterns(t,n).compile(t)}compileWhileAG(t,n,r,a){return this._getCachedCompiledWhilePatterns(t,n).compileAG(t,r,a)}_getCachedCompiledWhilePatterns(t,n){return this._cachedCompiledWhilePatterns||(this._cachedCompiledWhilePatterns=new Zf,this._cachedCompiledWhilePatterns.push(this._while.hasBackReferences?this._while.clone():this._while)),this._while.hasBackReferences&&this._cachedCompiledWhilePatterns.setSource(0,n||"￿"),this._cachedCompiledWhilePatterns}},gN=class Ir{static createCaptureRule(t,n,r,a,o){return t.registerRule(s=>new Mq(n,s,r,a,o))}static getCompiledRuleId(t,n,r){return t.id||n.registerRule(a=>{if(t.id=a,t.match)return new $q(t.$vscodeTextmateLocation,t.id,t.name,t.match,Ir._compileCaptures(t.captures,n,r));if(typeof t.begin>"u"){t.repository&&(r=oN({},r,t.repository));let o=t.patterns;return typeof o>"u"&&t.include&&(o=[{include:t.include}]),new PD(t.$vscodeTextmateLocation,t.id,t.name,t.contentName,Ir._compilePatterns(o,n,r))}return t.while?new wg(t.$vscodeTextmateLocation,t.id,t.name,t.contentName,t.begin,Ir._compileCaptures(t.beginCaptures||t.captures,n,r),t.while,Ir._compileCaptures(t.whileCaptures||t.captures,n,r),Ir._compilePatterns(t.patterns,n,r)):new DE(t.$vscodeTextmateLocation,t.id,t.name,t.contentName,t.begin,Ir._compileCaptures(t.beginCaptures||t.captures,n,r),t.end,Ir._compileCaptures(t.endCaptures||t.captures,n,r),t.applyEndPatternLast,Ir._compilePatterns(t.patterns,n,r))}),t.id}static _compileCaptures(t,n,r){let a=[];if(t){let o=0;for(const s in t){if(s==="$vscodeTextmateLocation")continue;const c=parseInt(s,10);c>o&&(o=c)}for(let s=0;s<=o;s++)a[s]=null;for(const s in t){if(s==="$vscodeTextmateLocation")continue;const c=parseInt(s,10);let u=0;t[s].patterns&&(u=Ir.getCompiledRuleId(t[s],n,r)),a[c]=Ir.createCaptureRule(n,t[s].$vscodeTextmateLocation,t[s].name,t[s].contentName,u)}}return a}static _compilePatterns(t,n,r){let a=[];if(t)for(let o=0,s=t.length;o<s;o++){const c=t[o];let u=-1;if(c.include){const d=hN(c.include);switch(d.kind){case 0:case 1:u=Ir.getCompiledRuleId(r[c.include],n,r);break;case 2:let p=r[d.ruleName];p&&(u=Ir.getCompiledRuleId(p,n,r));break;case 3:case 4:const h=d.scopeName,g=d.kind===4?d.ruleName:null,y=n.getExternalGrammar(h,r);if(y)if(g){let b=y.repository[g];b&&(u=Ir.getCompiledRuleId(b,n,y.repository))}else u=Ir.getCompiledRuleId(y.repository.$self,n,y.repository);break}}else u=Ir.getCompiledRuleId(c,n,r);if(u!==-1){const d=n.getRule(u);let p=!1;if((d instanceof PD||d instanceof DE||d instanceof wg)&&d.hasMissingPatterns&&d.patterns.length===0&&(p=!0),p)continue;a.push(u)}}return{patterns:a,hasMissingPatterns:(t?t.length:0)!==a.length}}},Xf=class yN{source;ruleId;hasAnchor;hasBackReferences;_anchorCache;constructor(t,n){if(t&&typeof t=="string"){const r=t.length;let a=0,o=[],s=!1;for(let c=0;c<r;c++)if(t.charAt(c)==="\\"&&c+1<r){const u=t.charAt(c+1);u==="z"?(o.push(t.substring(a,c)),o.push("$(?!\\n)(?<!\\n)"),a=c+2):(u==="A"||u==="G")&&(s=!0),c++}this.hasAnchor=s,a===0?this.source=t:(o.push(t.substring(a,r)),this.source=o.join(""))}else this.hasAnchor=!1,this.source=t;this.hasAnchor?this._anchorCache=this._buildAnchorCache():this._anchorCache=null,this.ruleId=n,typeof this.source=="string"?this.hasBackReferences=Lq.test(this.source):this.hasBackReferences=!1}clone(){return new yN(this.source,this.ruleId)}setSource(t){this.source!==t&&(this.source=t,this.hasAnchor&&(this._anchorCache=this._buildAnchorCache()))}resolveBackReferences(t,n){if(typeof this.source!="string")throw new Error("This method should only be called if the source is a string");let r=n.map(a=>t.substring(a.start,a.end));return LD.lastIndex=0,this.source.replace(LD,(a,o)=>cN(r[parseInt(o,10)]||""))}_buildAnchorCache(){if(typeof this.source!="string")throw new Error("This method should only be called if the source is a string");let t=[],n=[],r=[],a=[],o,s,c,u;for(o=0,s=this.source.length;o<s;o++)c=this.source.charAt(o),t[o]=c,n[o]=c,r[o]=c,a[o]=c,c==="\\"&&o+1<s&&(u=this.source.charAt(o+1),u==="A"?(t[o+1]="￿",n[o+1]="￿",r[o+1]="A",a[o+1]="A"):u==="G"?(t[o+1]="￿",n[o+1]="G",r[o+1]="￿",a[o+1]="G"):(t[o+1]=u,n[o+1]=u,r[o+1]=u,a[o+1]=u),o++);return{A0_G0:t.join(""),A0_G1:n.join(""),A1_G0:r.join(""),A1_G1:a.join("")}}resolveAnchors(t,n){return!this.hasAnchor||!this._anchorCache||typeof this.source!="string"?this.source:t?n?this._anchorCache.A1_G1:this._anchorCache.A1_G0:n?this._anchorCache.A0_G1:this._anchorCache.A0_G0}},Zf=class{_items;_hasAnchors;_cached;_anchorCache;constructor(){this._items=[],this._hasAnchors=!1,this._cached=null,this._anchorCache={A0_G0:null,A0_G1:null,A1_G0:null,A1_G1:null}}dispose(){this._disposeCaches()}_disposeCaches(){this._cached&&(this._cached.dispose(),this._cached=null),this._anchorCache.A0_G0&&(this._anchorCache.A0_G0.dispose(),this._anchorCache.A0_G0=null),this._anchorCache.A0_G1&&(this._anchorCache.A0_G1.dispose(),this._anchorCache.A0_G1=null),this._anchorCache.A1_G0&&(this._anchorCache.A1_G0.dispose(),this._anchorCache.A1_G0=null),this._anchorCache.A1_G1&&(this._anchorCache.A1_G1.dispose(),this._anchorCache.A1_G1=null)}push(t){this._items.push(t),this._hasAnchors=this._hasAnchors||t.hasAnchor}unshift(t){this._items.unshift(t),this._hasAnchors=this._hasAnchors||t.hasAnchor}length(){return this._items.length}setSource(t,n){this._items[t].source!==n&&(this._disposeCaches(),this._items[t].setSource(n))}compile(t){if(!this._cached){let n=this._items.map(r=>r.source);this._cached=new MD(t,n,this._items.map(r=>r.ruleId))}return this._cached}compileAG(t,n,r){return this._hasAnchors?n?r?(this._anchorCache.A1_G1||(this._anchorCache.A1_G1=this._resolveAnchors(t,n,r)),this._anchorCache.A1_G1):(this._anchorCache.A1_G0||(this._anchorCache.A1_G0=this._resolveAnchors(t,n,r)),this._anchorCache.A1_G0):r?(this._anchorCache.A0_G1||(this._anchorCache.A0_G1=this._resolveAnchors(t,n,r)),this._anchorCache.A0_G1):(this._anchorCache.A0_G0||(this._anchorCache.A0_G0=this._resolveAnchors(t,n,r)),this._anchorCache.A0_G0):this.compile(t)}_resolveAnchors(t,n,r){let a=this._items.map(o=>o.resolveAnchors(n,r));return new MD(t,a,this._items.map(o=>o.ruleId))}},MD=class{constructor(t,n,r){this.regExps=n,this.rules=r,this.scanner=t.createOnigScanner(n)}scanner;dispose(){typeof this.scanner.dispose=="function"&&this.scanner.dispose()}toString(){const t=[];for(let n=0,r=this.rules.length;n<r;n++)t.push(" - "+this.rules[n]+": "+this.regExps[n]);return t.join(`
226
+ export default theme;`}const Iz=e=>{const t=Object.keys(e).map(n=>({key:n,val:e[n]}))||[];return t.sort((n,r)=>n.val-r.val),t.reduce((n,r)=>({...n,[r.key]:r.val}),{})};function Nz(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:n="px",step:r=5,...a}=e,o=Iz(t),s=Object.keys(o);function c(g){return`@media (min-width:${typeof t[g]=="number"?t[g]:g}${n})`}function u(g){return`@media (max-width:${(typeof t[g]=="number"?t[g]:g)-r/100}${n})`}function d(g,y){const b=s.indexOf(y);return`@media (min-width:${typeof t[g]=="number"?t[g]:g}${n}) and (max-width:${(b!==-1&&typeof t[s[b]]=="number"?t[s[b]]:y)-r/100}${n})`}function p(g){return s.indexOf(g)+1<s.length?d(g,s[s.indexOf(g)+1]):c(g)}function h(g){const y=s.indexOf(g);return y===0?c(s[1]):y===s.length-1?u(s[y]):d(g,s[s.indexOf(g)+1]).replace("@media","@media not all and")}return{keys:s,values:o,up:c,down:u,between:d,only:p,not:h,unit:n,...a}}const Lz={borderRadius:4};function pD(e,t){if(!e.containerQueries)return t;const n=Object.keys(t).filter(r=>r.startsWith("@container")).sort((r,a)=>{const o=/min-width:\s*([0-9.]+)/;return+(r.match(o)?.[1]||0)-+(a.match(o)?.[1]||0)});return n.length?n.reduce((r,a)=>{const o=t[a];return delete r[a],r[a]=o,r},{...t}):t}function Pz(e,t){return t==="@"||t.startsWith("@")&&(e.some(n=>t.startsWith(`@${n}`))||!!t.match(/^@\d/))}function Mz(e,t){const n=t.match(/^@([^/]+)?\/?(.+)?$/);if(!n)return null;const[,r,a]=n,o=Number.isNaN(+r)?r||0:+r;return e.containerQueries(a).up(o)}function $z(e){const t=(o,s)=>o.replace("@media",s?`@container ${s}`:"@container");function n(o,s){o.up=(...c)=>t(e.breakpoints.up(...c),s),o.down=(...c)=>t(e.breakpoints.down(...c),s),o.between=(...c)=>t(e.breakpoints.between(...c),s),o.only=(...c)=>t(e.breakpoints.only(...c),s),o.not=(...c)=>{const u=t(e.breakpoints.not(...c),s);return u.includes("not all and")?u.replace("not all and ","").replace("min-width:","width<").replace("max-width:","width>").replace("and","or"):u}}const r={},a=o=>(n(r,o),r);return n(a),{...e,containerQueries:a}}const by={xs:0,sm:600,md:900,lg:1200,xl:1536},hD={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${by[e]}px)`},Fz={containerQueries:e=>({up:t=>{let n=typeof t=="number"?t:by[t]||t;return typeof n=="number"&&(n=`${n}px`),e?`@container ${e} (min-width:${n})`:`@container (min-width:${n})`}})};function Mi(e,t,n){const r=e.theme||{};if(Array.isArray(t)){const a=r.breakpoints||hD;return t.reduce((o,s,c)=>(o[a.up(a.keys[c])]=n(t[c]),o),{})}if(typeof t=="object"){const a=r.breakpoints||hD;return Object.keys(t).reduce((o,s)=>{if(Pz(a.keys,s)){const c=Mz(r.containerQueries?r:Fz,s);c&&(o[c]=n(t[s],s))}else if(Object.keys(a.values||by).includes(s)){const c=a.up(s);o[c]=n(t[s],s)}else{const c=s;o[c]=t[c]}return o},{})}return n(t)}function Bz(e={}){return e.keys?.reduce((t,n)=>{const r=e.up(n);return t[r]={},t},{})||{}}function mD(e,t){return e.reduce((n,r)=>{const a=n[r];return(!a||Object.keys(a).length===0)&&delete n[r],n},t)}function rt(e){if(typeof e!="string")throw new Error(Pi(7));return e.charAt(0).toUpperCase()+e.slice(1)}function Ey(e,t,n=!0){if(!t||typeof t!="string")return null;if(e&&e.vars&&n){const r=`vars.${t}`.split(".").reduce((a,o)=>a&&a[o]?a[o]:null,e);if(r!=null)return r}return t.split(".").reduce((r,a)=>r&&r[a]!=null?r[a]:null,e)}function Eg(e,t,n,r=n){let a;return typeof e=="function"?a=e(n):Array.isArray(e)?a=e[n]||r:a=Ey(e,n)||r,t&&(a=t(a,r,e)),a}function nr(e){const{prop:t,cssProperty:n=e.prop,themeKey:r,transform:a}=e,o=s=>{if(s[t]==null)return null;const c=s[t],u=s.theme,d=Ey(u,r)||{};return Mi(s,c,p=>{let h=Eg(d,a,p);return p===h&&typeof p=="string"&&(h=Eg(d,a,`${t}${p==="default"?"":rt(p)}`,p)),n===!1?h:{[n]:h}})};return o.propTypes={},o.filterProps=[t],o}function vf(e,t){return t?$r(e,t,{clone:!1}):e}function Uz(e){const t={};return n=>(t[n]===void 0&&(t[n]=e(n)),t[n])}const jz={m:"margin",p:"padding"},Hz={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},gD={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},zz=Uz(e=>{if(e.length>2)if(gD[e])e=gD[e];else return[e];const[t,n]=e.split(""),r=jz[t],a=Hz[n]||"";return Array.isArray(a)?a.map(o=>r+o):[r+a]}),wS=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],DS=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];[...wS,...DS];function Dp(e,t,n,r){const a=Ey(e,t,!0)??n;return typeof a=="number"||typeof a=="string"?o=>typeof o=="string"?o:typeof a=="string"?a.startsWith("var(")&&o===0?0:a.startsWith("var(")&&o===1?a:`calc(${o} * ${a})`:a*o:Array.isArray(a)?o=>{if(typeof o=="string")return o;const s=Math.abs(o),c=a[s];return o>=0?c:typeof c=="number"?-c:typeof c=="string"&&c.startsWith("var(")?`calc(-1 * ${c})`:`-${c}`}:typeof a=="function"?a:()=>{}}function kS(e){return Dp(e,"spacing",8)}function kp(e,t){return typeof t=="string"||t==null?t:e(t)}function Vz(e,t){return n=>e.reduce((r,a)=>(r[a]=kp(t,n),r),{})}function Gz(e,t,n,r){if(!t.includes(n))return null;const a=zz(n),o=Vz(a,r),s=e[n];return Mi(e,s,o)}function L3(e,t){const n=kS(e.theme);return Object.keys(e).map(r=>Gz(e,t,r,n)).reduce(vf,{})}function Wn(e){return L3(e,wS)}Wn.propTypes={};Wn.filterProps=wS;function Yn(e){return L3(e,DS)}Yn.propTypes={};Yn.filterProps=DS;function qz(e=8,t=kS({spacing:e})){if(e.mui)return e;const n=(...r)=>(r.length===0?[1]:r).map(a=>{const o=t(a);return typeof o=="number"?`${o}px`:o}).join(" ");return n.mui=!0,n}function Ty(...e){const t=e.reduce((r,a)=>(a.filterProps.forEach(o=>{r[o]=a}),r),{}),n=r=>Object.keys(r).reduce((a,o)=>t[o]?vf(a,t[o](r)):a,{});return n.propTypes={},n.filterProps=e.reduce((r,a)=>r.concat(a.filterProps),[]),n}function Ra(e){return e<=1&&e!==0?`${e*100}%`:e}const Wz=nr({prop:"width",transform:Ra}),RS=e=>{if(e.maxWidth!==void 0&&e.maxWidth!==null){const t=n=>{const r=e.theme?.breakpoints?.values?.[n]||by[n];return r?e.theme?.breakpoints?.unit!=="px"?{maxWidth:`${r}${e.theme.breakpoints.unit}`}:{maxWidth:r}:{maxWidth:Ra(n)}};return Mi(e,e.maxWidth,t)}return null};RS.filterProps=["maxWidth"];const Yz=nr({prop:"minWidth",transform:Ra}),Qz=nr({prop:"height",transform:Ra}),Kz=nr({prop:"maxHeight",transform:Ra}),Xz=nr({prop:"minHeight",transform:Ra});nr({prop:"size",cssProperty:"width",transform:Ra});nr({prop:"size",cssProperty:"height",transform:Ra});const Zz=nr({prop:"boxSizing"});Ty(Wz,RS,Yz,Qz,Kz,Xz,Zz);const Sy=e=>{if(e.gap!==void 0&&e.gap!==null){const t=Dp(e.theme,"spacing",8),n=r=>({gap:kp(t,r)});return Mi(e,e.gap,n)}return null};Sy.propTypes={};Sy.filterProps=["gap"];const _y=e=>{if(e.columnGap!==void 0&&e.columnGap!==null){const t=Dp(e.theme,"spacing",8),n=r=>({columnGap:kp(t,r)});return Mi(e,e.columnGap,n)}return null};_y.propTypes={};_y.filterProps=["columnGap"];const Cy=e=>{if(e.rowGap!==void 0&&e.rowGap!==null){const t=Dp(e.theme,"spacing",8),n=r=>({rowGap:kp(t,r)});return Mi(e,e.rowGap,n)}return null};Cy.propTypes={};Cy.filterProps=["rowGap"];const Jz=nr({prop:"gridColumn"}),eV=nr({prop:"gridRow"}),tV=nr({prop:"gridAutoFlow"}),nV=nr({prop:"gridAutoColumns"}),rV=nr({prop:"gridAutoRows"}),aV=nr({prop:"gridTemplateColumns"}),oV=nr({prop:"gridTemplateRows"}),iV=nr({prop:"gridTemplateAreas"}),sV=nr({prop:"gridArea"});Ty(Sy,_y,Cy,Jz,eV,tV,nV,rV,aV,oV,iV,sV);function Jc(e,t){return t==="grey"?t:e}const lV=nr({prop:"color",themeKey:"palette",transform:Jc}),cV=nr({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:Jc}),uV=nr({prop:"backgroundColor",themeKey:"palette",transform:Jc});Ty(lV,cV,uV);function eo(e){return typeof e!="number"?e:`${e}px solid`}function fo(e,t){return nr({prop:e,themeKey:"borders",transform:t})}const dV=fo("border",eo),fV=fo("borderTop",eo),pV=fo("borderRight",eo),hV=fo("borderBottom",eo),mV=fo("borderLeft",eo),gV=fo("borderColor"),yV=fo("borderTopColor"),vV=fo("borderRightColor"),bV=fo("borderBottomColor"),EV=fo("borderLeftColor"),TV=fo("outline",eo),SV=fo("outlineColor"),Ay=e=>{if(e.borderRadius!==void 0&&e.borderRadius!==null){const t=Dp(e.theme,"shape.borderRadius",4),n=r=>({borderRadius:kp(t,r)});return Mi(e,e.borderRadius,n)}return null};Ay.propTypes={};Ay.filterProps=["borderRadius"];Ty(dV,fV,pV,hV,mV,gV,yV,vV,bV,EV,Ay,TV,SV);const Rp={border:{themeKey:"borders",transform:eo},borderTop:{themeKey:"borders",transform:eo},borderRight:{themeKey:"borders",transform:eo},borderBottom:{themeKey:"borders",transform:eo},borderLeft:{themeKey:"borders",transform:eo},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:eo},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:Ay},color:{themeKey:"palette",transform:Jc},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:Jc},backgroundColor:{themeKey:"palette",transform:Jc},p:{style:Yn},pt:{style:Yn},pr:{style:Yn},pb:{style:Yn},pl:{style:Yn},px:{style:Yn},py:{style:Yn},padding:{style:Yn},paddingTop:{style:Yn},paddingRight:{style:Yn},paddingBottom:{style:Yn},paddingLeft:{style:Yn},paddingX:{style:Yn},paddingY:{style:Yn},paddingInline:{style:Yn},paddingInlineStart:{style:Yn},paddingInlineEnd:{style:Yn},paddingBlock:{style:Yn},paddingBlockStart:{style:Yn},paddingBlockEnd:{style:Yn},m:{style:Wn},mt:{style:Wn},mr:{style:Wn},mb:{style:Wn},ml:{style:Wn},mx:{style:Wn},my:{style:Wn},margin:{style:Wn},marginTop:{style:Wn},marginRight:{style:Wn},marginBottom:{style:Wn},marginLeft:{style:Wn},marginX:{style:Wn},marginY:{style:Wn},marginInline:{style:Wn},marginInlineStart:{style:Wn},marginInlineEnd:{style:Wn},marginBlock:{style:Wn},marginBlockStart:{style:Wn},marginBlockEnd:{style:Wn},displayPrint:{cssProperty:!1,transform:e=>({"@media print":{display:e}})},display:{},overflow:{},textOverflow:{},visibility:{},whiteSpace:{},flexBasis:{},flexDirection:{},flexWrap:{},justifyContent:{},alignItems:{},alignContent:{},order:{},flex:{},flexGrow:{},flexShrink:{},alignSelf:{},justifyItems:{},justifySelf:{},gap:{style:Sy},rowGap:{style:Cy},columnGap:{style:_y},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:Ra},maxWidth:{style:RS},minWidth:{transform:Ra},height:{transform:Ra},maxHeight:{transform:Ra},minHeight:{transform:Ra},boxSizing:{},font:{themeKey:"font"},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}};function _V(...e){const t=e.reduce((r,a)=>r.concat(Object.keys(a)),[]),n=new Set(t);return e.every(r=>n.size===Object.keys(r).length)}function CV(e,t){return typeof e=="function"?e(t):e}function AV(){function e(n,r,a,o){const s={[n]:r,theme:a},c=o[n];if(!c)return{[n]:r};const{cssProperty:u=n,themeKey:d,transform:p,style:h}=c;if(r==null)return null;if(d==="typography"&&r==="inherit")return{[n]:r};const g=Ey(a,d)||{};return h?h(s):Mi(s,r,y=>{let b=Eg(g,p,y);return y===b&&typeof y=="string"&&(b=Eg(g,p,`${n}${y==="default"?"":rt(y)}`,y)),u===!1?b:{[u]:b}})}function t(n){const{sx:r,theme:a={},nested:o}=n||{};if(!r)return null;const s=a.unstable_sxConfig??Rp;function c(u){let d=u;if(typeof u=="function")d=u(a);else if(typeof u!="object")return u;if(!d)return null;const p=Bz(a.breakpoints),h=Object.keys(p);let g=p;return Object.keys(d).forEach(y=>{const b=CV(d[y],a);if(b!=null)if(typeof b=="object")if(s[y])g=vf(g,e(y,b,a,s));else{const E=Mi({theme:a},b,_=>({[y]:_}));_V(E,b)?g[y]=t({sx:b,theme:a,nested:!0}):g=vf(g,E)}else g=vf(g,e(y,b,a,s))}),!o&&a.modularCssLayers?{"@layer sx":pD(a,mD(h,g))}:pD(a,mD(h,g))}return Array.isArray(r)?r.map(c):c(r)}return t}const du=AV();du.filterProps=["sx"];function xV(e,t){const n=this;if(n.vars){if(!n.colorSchemes?.[e]||typeof n.getColorSchemeSelector!="function")return{};let r=n.getColorSchemeSelector(e);return r==="&"?t:((r.includes("data-")||r.includes("."))&&(r=`*:where(${r.replace(/\s*&$/,"")}) &`),{[r]:t})}return n.palette.mode===e?t:{}}function OS(e={},...t){const{breakpoints:n={},palette:r={},spacing:a,shape:o={},...s}=e,c=Nz(n),u=qz(a);let d=$r({breakpoints:c,direction:"ltr",components:{},palette:{mode:"light",...r},spacing:u,shape:{...Lz,...o}},s);return d=$z(d),d.applyStyles=xV,d=t.reduce((p,h)=>$r(p,h),d),d.unstable_sxConfig={...Rp,...s?.unstable_sxConfig},d.unstable_sx=function(p){return du({sx:p,theme:this})},d}function gE(e={},...t){const{breakpoints:n,mixins:r={},spacing:a,palette:o={},transitions:s={},typography:c={},shape:u,...d}=e;if(e.vars&&e.generateThemeVars===void 0)throw new Error(Pi(20));const p=xS(o),h=OS(e);let g=$r(h,{mixins:_z(h.breakpoints,r),palette:p,shadows:xz.slice(),typography:Az(p,c),transitions:kz(s),zIndex:{...Rz}});return g=$r(g,d),g=t.reduce((y,b)=>$r(y,b),g),g.unstable_sxConfig={...Rp,...d?.unstable_sxConfig},g.unstable_sx=function(y){return du({sx:y,theme:this})},g.toRuntimeSource=N3,g}function yE(e){let t;return e<1?t=5.11916*e**2:t=4.5*Math.log(e+1)+2,Math.round(t*10)/1e3}const wV=[...Array(25)].map((e,t)=>{if(t===0)return"none";const n=yE(t);return`linear-gradient(rgba(255 255 255 / ${n}), rgba(255 255 255 / ${n}))`});function P3(e){return{inputPlaceholder:e==="dark"?.5:.42,inputUnderline:e==="dark"?.7:.42,switchTrackDisabled:e==="dark"?.2:.12,switchTrack:e==="dark"?.3:.38}}function M3(e){return e==="dark"?wV:[]}function DV(e){const{palette:t={mode:"light"},opacity:n,overlays:r,...a}=e,o=xS(t);return{palette:o,opacity:{...P3(o.mode),...n},overlays:r||M3(o.mode),...a}}function kV(e){return!!e[0].match(/(cssVarPrefix|colorSchemeSelector|modularCssLayers|rootSelector|typography|mixins|breakpoints|direction|transitions)/)||!!e[0].match(/sxConfig$/)||e[0]==="palette"&&!!e[1]?.match(/(mode|contrastThreshold|tonalOffset)/)}const RV=e=>[...[...Array(25)].map((t,n)=>`--${e?`${e}-`:""}overlays-${n}`),`--${e?`${e}-`:""}palette-AppBar-darkBg`,`--${e?`${e}-`:""}palette-AppBar-darkColor`],OV=e=>(t,n)=>{const r=e.rootSelector||":root",a=e.colorSchemeSelector;let o=a;if(a==="class"&&(o=".%s"),a==="data"&&(o="[data-%s]"),a?.startsWith("data-")&&!a.includes("%s")&&(o=`[${a}="%s"]`),e.defaultColorScheme===t){if(t==="dark"){const s={};return RV(e.cssVarPrefix).forEach(c=>{s[c]=n[c],delete n[c]}),o==="media"?{[r]:n,"@media (prefers-color-scheme: dark)":{[r]:s}}:o?{[o.replace("%s",t)]:s,[`${r}, ${o.replace("%s",t)}`]:n}:{[r]:{...n,...s}}}if(o&&o!=="media")return`${r}, ${o.replace("%s",String(t))}`}else if(t){if(o==="media")return{[`@media (prefers-color-scheme: ${String(t)})`]:{[r]:n}};if(o)return o.replace("%s",String(t))}return r};function IV(e){const t={};return Object.entries(e).forEach(n=>{const[r,a]=n;typeof a=="object"&&(t[r]=`${a.fontStyle?`${a.fontStyle} `:""}${a.fontVariant?`${a.fontVariant} `:""}${a.fontWeight?`${a.fontWeight} `:""}${a.fontStretch?`${a.fontStretch} `:""}${a.fontSize||""}${a.lineHeight?`/${a.lineHeight} `:""}${a.fontFamily||""}`)}),t}const yD=(e,t,n,r=[])=>{let a=e;t.forEach((o,s)=>{s===t.length-1?Array.isArray(a)?a[Number(o)]=n:a&&typeof a=="object"&&(a[o]=n):a&&typeof a=="object"&&(a[o]||(a[o]=r.includes(o)?[]:{}),a=a[o])})},NV=(e,t,n)=>{function r(a,o=[],s=[]){Object.entries(a).forEach(([c,u])=>{(!n||n&&!n([...o,c]))&&u!=null&&(typeof u=="object"&&Object.keys(u).length>0?r(u,[...o,c],Array.isArray(u)?[...s,c]:s):t([...o,c],u,s))})}r(e)},LV=(e,t)=>typeof t=="number"?["lineHeight","fontWeight","opacity","zIndex"].some(n=>e.includes(n))||e[e.length-1].toLowerCase().includes("opacity")?t:`${t}px`:t;function jv(e,t){const{prefix:n,shouldSkipGeneratingVar:r}=t||{},a={},o={},s={};return NV(e,(c,u,d)=>{if((typeof u=="string"||typeof u=="number")&&(!r||!r(c,u))){const p=`--${n?`${n}-`:""}${c.join("-")}`,h=LV(c,u);Object.assign(a,{[p]:h}),yD(o,c,`var(${p})`,d),yD(s,c,`var(${p}, ${h})`,d)}},c=>c[0]==="vars"),{css:a,vars:o,varsWithDefaults:s}}function PV(e,t={}){const{getSelector:n=_,disableCssColorScheme:r,colorSchemeSelector:a}=t,{colorSchemes:o={},components:s,defaultColorScheme:c="light",...u}=e,{vars:d,css:p,varsWithDefaults:h}=jv(u,t);let g=h;const y={},{[c]:b,...E}=o;if(Object.entries(E||{}).forEach(([A,D])=>{const{vars:w,css:R,varsWithDefaults:O}=jv(D,t);g=$r(g,O),y[A]={css:R,vars:w}}),b){const{css:A,vars:D,varsWithDefaults:w}=jv(b,t);g=$r(g,w),y[c]={css:A,vars:D}}function _(A,D){let w=a;if(a==="class"&&(w=".%s"),a==="data"&&(w="[data-%s]"),a?.startsWith("data-")&&!a.includes("%s")&&(w=`[${a}="%s"]`),A){if(w==="media")return e.defaultColorScheme===A?":root":{[`@media (prefers-color-scheme: ${o[A]?.palette?.mode||A})`]:{":root":D}};if(w)return e.defaultColorScheme===A?`:root, ${w.replace("%s",String(A))}`:w.replace("%s",String(A))}return":root"}return{vars:g,generateThemeVars:()=>{let A={...d};return Object.entries(y).forEach(([,{vars:D}])=>{A=$r(A,D)}),A},generateStyleSheets:()=>{const A=[],D=e.defaultColorScheme||"light";function w(k,F){Object.keys(F).length&&A.push(typeof k=="string"?{[k]:{...F}}:k)}w(n(void 0,{...p}),p);const{[D]:R,...O}=y;if(R){const{css:k}=R,F=o[D]?.palette?.mode,G=!r&&F?{colorScheme:F,...k}:{...k};w(n(D,{...G}),G)}return Object.entries(O).forEach(([k,{css:F}])=>{const G=o[k]?.palette?.mode,j=!r&&G?{colorScheme:G,...F}:{...F};w(n(k,{...j}),j)}),A}}}function MV(e){return function(t){return e==="media"?`@media (prefers-color-scheme: ${t})`:e?e.startsWith("data-")&&!e.includes("%s")?`[${e}="${t}"] &`:e==="class"?`.${t} &`:e==="data"?`[data-${t}] &`:`${e.replace("%s",t)} &`:"&"}}function $V(e,t){t.forEach(n=>{e[n]||(e[n]={})})}function _e(e,t,n){!e[t]&&n&&(e[t]=n)}function uf(e){return typeof e!="string"||!e.startsWith("hsl")?e:k3(e)}function Ci(e,t){`${t}Channel`in e||(e[`${t}Channel`]=cf(uf(e[t])))}function FV(e){return typeof e=="number"?`${e}px`:typeof e=="string"||typeof e=="function"||Array.isArray(e)?e:"8px"}const Po=e=>{try{return e()}catch{}},BV=(e="mui")=>QI(e);function Hv(e,t,n,r){if(!t)return;t=t===!0?{}:t;const a=r==="dark"?"dark":"light";if(!n){e[r]=DV({...t,palette:{mode:a,...t?.palette}});return}const{palette:o,...s}=gE({...n,palette:{mode:a,...t?.palette}});return e[r]={...t,palette:o,opacity:{...P3(a),...t?.opacity},overlays:t?.overlays||M3(a)},s}function UV(e={},...t){const{colorSchemes:n={light:!0},defaultColorScheme:r,disableCssColorScheme:a=!1,cssVarPrefix:o="mui",shouldSkipGeneratingVar:s=kV,colorSchemeSelector:c=n.light&&n.dark?"media":void 0,rootSelector:u=":root",...d}=e,p=Object.keys(n)[0],h=r||(n.light&&p!=="light"?"light":p),g=BV(o),{[h]:y,light:b,dark:E,..._}=n,A={..._};let D=y;if((h==="dark"&&!("dark"in n)||h==="light"&&!("light"in n))&&(D=!0),!D)throw new Error(Pi(21,h));const w=Hv(A,D,d,h);b&&!A.light&&Hv(A,b,void 0,"light"),E&&!A.dark&&Hv(A,E,void 0,"dark");let R={defaultColorScheme:h,...w,cssVarPrefix:o,colorSchemeSelector:c,rootSelector:u,getCssVar:g,colorSchemes:A,font:{...IV(w.typography),...w.font},spacing:FV(d.spacing)};Object.keys(R.colorSchemes).forEach(j=>{const T=R.colorSchemes[j].palette,M=U=>{const B=U.split("-"),Y=B[1],X=B[2];return g(U,T[Y][X])};if(T.mode==="light"&&(_e(T.common,"background","#fff"),_e(T.common,"onBackground","#000")),T.mode==="dark"&&(_e(T.common,"background","#000"),_e(T.common,"onBackground","#fff")),$V(T,["Alert","AppBar","Avatar","Button","Chip","FilledInput","LinearProgress","Skeleton","Slider","SnackbarContent","SpeedDialAction","StepConnector","StepContent","Switch","TableCell","Tooltip"]),T.mode==="light"){_e(T.Alert,"errorColor",_n(T.error.light,.6)),_e(T.Alert,"infoColor",_n(T.info.light,.6)),_e(T.Alert,"successColor",_n(T.success.light,.6)),_e(T.Alert,"warningColor",_n(T.warning.light,.6)),_e(T.Alert,"errorFilledBg",M("palette-error-main")),_e(T.Alert,"infoFilledBg",M("palette-info-main")),_e(T.Alert,"successFilledBg",M("palette-success-main")),_e(T.Alert,"warningFilledBg",M("palette-warning-main")),_e(T.Alert,"errorFilledColor",Po(()=>T.getContrastText(T.error.main))),_e(T.Alert,"infoFilledColor",Po(()=>T.getContrastText(T.info.main))),_e(T.Alert,"successFilledColor",Po(()=>T.getContrastText(T.success.main))),_e(T.Alert,"warningFilledColor",Po(()=>T.getContrastText(T.warning.main))),_e(T.Alert,"errorStandardBg",Cn(T.error.light,.9)),_e(T.Alert,"infoStandardBg",Cn(T.info.light,.9)),_e(T.Alert,"successStandardBg",Cn(T.success.light,.9)),_e(T.Alert,"warningStandardBg",Cn(T.warning.light,.9)),_e(T.Alert,"errorIconColor",M("palette-error-main")),_e(T.Alert,"infoIconColor",M("palette-info-main")),_e(T.Alert,"successIconColor",M("palette-success-main")),_e(T.Alert,"warningIconColor",M("palette-warning-main")),_e(T.AppBar,"defaultBg",M("palette-grey-100")),_e(T.Avatar,"defaultBg",M("palette-grey-400")),_e(T.Button,"inheritContainedBg",M("palette-grey-300")),_e(T.Button,"inheritContainedHoverBg",M("palette-grey-A100")),_e(T.Chip,"defaultBorder",M("palette-grey-400")),_e(T.Chip,"defaultAvatarColor",M("palette-grey-700")),_e(T.Chip,"defaultIconColor",M("palette-grey-700")),_e(T.FilledInput,"bg","rgba(0, 0, 0, 0.06)"),_e(T.FilledInput,"hoverBg","rgba(0, 0, 0, 0.09)"),_e(T.FilledInput,"disabledBg","rgba(0, 0, 0, 0.12)"),_e(T.LinearProgress,"primaryBg",Cn(T.primary.main,.62)),_e(T.LinearProgress,"secondaryBg",Cn(T.secondary.main,.62)),_e(T.LinearProgress,"errorBg",Cn(T.error.main,.62)),_e(T.LinearProgress,"infoBg",Cn(T.info.main,.62)),_e(T.LinearProgress,"successBg",Cn(T.success.main,.62)),_e(T.LinearProgress,"warningBg",Cn(T.warning.main,.62)),_e(T.Skeleton,"bg",`rgba(${M("palette-text-primaryChannel")} / 0.11)`),_e(T.Slider,"primaryTrack",Cn(T.primary.main,.62)),_e(T.Slider,"secondaryTrack",Cn(T.secondary.main,.62)),_e(T.Slider,"errorTrack",Cn(T.error.main,.62)),_e(T.Slider,"infoTrack",Cn(T.info.main,.62)),_e(T.Slider,"successTrack",Cn(T.success.main,.62)),_e(T.Slider,"warningTrack",Cn(T.warning.main,.62));const U=gm(T.background.default,.8);_e(T.SnackbarContent,"bg",U),_e(T.SnackbarContent,"color",Po(()=>T.getContrastText(U))),_e(T.SpeedDialAction,"fabHoverBg",gm(T.background.paper,.15)),_e(T.StepConnector,"border",M("palette-grey-400")),_e(T.StepContent,"border",M("palette-grey-400")),_e(T.Switch,"defaultColor",M("palette-common-white")),_e(T.Switch,"defaultDisabledColor",M("palette-grey-100")),_e(T.Switch,"primaryDisabledColor",Cn(T.primary.main,.62)),_e(T.Switch,"secondaryDisabledColor",Cn(T.secondary.main,.62)),_e(T.Switch,"errorDisabledColor",Cn(T.error.main,.62)),_e(T.Switch,"infoDisabledColor",Cn(T.info.main,.62)),_e(T.Switch,"successDisabledColor",Cn(T.success.main,.62)),_e(T.Switch,"warningDisabledColor",Cn(T.warning.main,.62)),_e(T.TableCell,"border",Cn(mm(T.divider,1),.88)),_e(T.Tooltip,"bg",mm(T.grey[700],.92))}if(T.mode==="dark"){_e(T.Alert,"errorColor",Cn(T.error.light,.6)),_e(T.Alert,"infoColor",Cn(T.info.light,.6)),_e(T.Alert,"successColor",Cn(T.success.light,.6)),_e(T.Alert,"warningColor",Cn(T.warning.light,.6)),_e(T.Alert,"errorFilledBg",M("palette-error-dark")),_e(T.Alert,"infoFilledBg",M("palette-info-dark")),_e(T.Alert,"successFilledBg",M("palette-success-dark")),_e(T.Alert,"warningFilledBg",M("palette-warning-dark")),_e(T.Alert,"errorFilledColor",Po(()=>T.getContrastText(T.error.dark))),_e(T.Alert,"infoFilledColor",Po(()=>T.getContrastText(T.info.dark))),_e(T.Alert,"successFilledColor",Po(()=>T.getContrastText(T.success.dark))),_e(T.Alert,"warningFilledColor",Po(()=>T.getContrastText(T.warning.dark))),_e(T.Alert,"errorStandardBg",_n(T.error.light,.9)),_e(T.Alert,"infoStandardBg",_n(T.info.light,.9)),_e(T.Alert,"successStandardBg",_n(T.success.light,.9)),_e(T.Alert,"warningStandardBg",_n(T.warning.light,.9)),_e(T.Alert,"errorIconColor",M("palette-error-main")),_e(T.Alert,"infoIconColor",M("palette-info-main")),_e(T.Alert,"successIconColor",M("palette-success-main")),_e(T.Alert,"warningIconColor",M("palette-warning-main")),_e(T.AppBar,"defaultBg",M("palette-grey-900")),_e(T.AppBar,"darkBg",M("palette-background-paper")),_e(T.AppBar,"darkColor",M("palette-text-primary")),_e(T.Avatar,"defaultBg",M("palette-grey-600")),_e(T.Button,"inheritContainedBg",M("palette-grey-800")),_e(T.Button,"inheritContainedHoverBg",M("palette-grey-700")),_e(T.Chip,"defaultBorder",M("palette-grey-700")),_e(T.Chip,"defaultAvatarColor",M("palette-grey-300")),_e(T.Chip,"defaultIconColor",M("palette-grey-300")),_e(T.FilledInput,"bg","rgba(255, 255, 255, 0.09)"),_e(T.FilledInput,"hoverBg","rgba(255, 255, 255, 0.13)"),_e(T.FilledInput,"disabledBg","rgba(255, 255, 255, 0.12)"),_e(T.LinearProgress,"primaryBg",_n(T.primary.main,.5)),_e(T.LinearProgress,"secondaryBg",_n(T.secondary.main,.5)),_e(T.LinearProgress,"errorBg",_n(T.error.main,.5)),_e(T.LinearProgress,"infoBg",_n(T.info.main,.5)),_e(T.LinearProgress,"successBg",_n(T.success.main,.5)),_e(T.LinearProgress,"warningBg",_n(T.warning.main,.5)),_e(T.Skeleton,"bg",`rgba(${M("palette-text-primaryChannel")} / 0.13)`),_e(T.Slider,"primaryTrack",_n(T.primary.main,.5)),_e(T.Slider,"secondaryTrack",_n(T.secondary.main,.5)),_e(T.Slider,"errorTrack",_n(T.error.main,.5)),_e(T.Slider,"infoTrack",_n(T.info.main,.5)),_e(T.Slider,"successTrack",_n(T.success.main,.5)),_e(T.Slider,"warningTrack",_n(T.warning.main,.5));const U=gm(T.background.default,.98);_e(T.SnackbarContent,"bg",U),_e(T.SnackbarContent,"color",Po(()=>T.getContrastText(U))),_e(T.SpeedDialAction,"fabHoverBg",gm(T.background.paper,.15)),_e(T.StepConnector,"border",M("palette-grey-600")),_e(T.StepContent,"border",M("palette-grey-600")),_e(T.Switch,"defaultColor",M("palette-grey-300")),_e(T.Switch,"defaultDisabledColor",M("palette-grey-600")),_e(T.Switch,"primaryDisabledColor",_n(T.primary.main,.55)),_e(T.Switch,"secondaryDisabledColor",_n(T.secondary.main,.55)),_e(T.Switch,"errorDisabledColor",_n(T.error.main,.55)),_e(T.Switch,"infoDisabledColor",_n(T.info.main,.55)),_e(T.Switch,"successDisabledColor",_n(T.success.main,.55)),_e(T.Switch,"warningDisabledColor",_n(T.warning.main,.55)),_e(T.TableCell,"border",_n(mm(T.divider,1),.68)),_e(T.Tooltip,"bg",mm(T.grey[700],.92))}Ci(T.background,"default"),Ci(T.background,"paper"),Ci(T.common,"background"),Ci(T.common,"onBackground"),Ci(T,"divider"),Object.keys(T).forEach(U=>{const B=T[U];U!=="tonalOffset"&&B&&typeof B=="object"&&(B.main&&_e(T[U],"mainChannel",cf(uf(B.main))),B.light&&_e(T[U],"lightChannel",cf(uf(B.light))),B.dark&&_e(T[U],"darkChannel",cf(uf(B.dark))),B.contrastText&&_e(T[U],"contrastTextChannel",cf(uf(B.contrastText))),U==="text"&&(Ci(T[U],"primary"),Ci(T[U],"secondary")),U==="action"&&(B.active&&Ci(T[U],"active"),B.selected&&Ci(T[U],"selected")))})}),R=t.reduce((j,T)=>$r(j,T),R);const O={prefix:o,disableCssColorScheme:a,shouldSkipGeneratingVar:s,getSelector:OV(R)},{vars:k,generateThemeVars:F,generateStyleSheets:G}=PV(R,O);return R.vars=k,Object.entries(R.colorSchemes[R.defaultColorScheme]).forEach(([j,T])=>{R[j]=T}),R.generateThemeVars=F,R.generateStyleSheets=G,R.generateSpacing=function(){return QT(d.spacing,kS(this))},R.getColorSchemeSelector=MV(c),R.spacing=R.generateSpacing(),R.shouldSkipGeneratingVar=s,R.unstable_sxConfig={...Rp,...d?.unstable_sxConfig},R.unstable_sx=function(j){return du({sx:j,theme:this})},R.toRuntimeSource=N3,R}function vD(e,t,n){e.colorSchemes&&n&&(e.colorSchemes[t]={...n!==!0&&n,palette:xS({...n===!0?{}:n.palette,mode:t})})}function jV(e={},...t){const{palette:n,cssVariables:r=!1,colorSchemes:a=n?void 0:{light:!0},defaultColorScheme:o=n?.mode,...s}=e,c=o||"light",u=a?.[c],d={...a,...n?{[c]:{...typeof u!="boolean"&&u,palette:n}}:void 0};if(r===!1){if(!("colorSchemes"in e))return gE(e,...t);let p=n;"palette"in e||d[c]&&(d[c]!==!0?p=d[c].palette:c==="dark"&&(p={mode:"dark"}));const h=gE({...e,palette:p},...t);return h.defaultColorScheme=c,h.colorSchemes=d,h.palette.mode==="light"&&(h.colorSchemes.light={...d.light!==!0&&d.light,palette:h.palette},vD(h,"dark",d.dark)),h.palette.mode==="dark"&&(h.colorSchemes.dark={...d.dark!==!0&&d.dark,palette:h.palette},vD(h,"light",d.light)),h}return!n&&!("light"in d)&&c==="light"&&(d.light=!0),UV({...s,colorSchemes:d,defaultColorScheme:c,...typeof r!="boolean"&&r},...t)}const xy=jV(),wy="$$material";function $3(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const ea=e=>$3(e)&&e!=="classes";function HV(e){for(var t=0,n,r=0,a=e.length;a>=4;++r,a-=4)n=e.charCodeAt(r)&255|(e.charCodeAt(++r)&255)<<8|(e.charCodeAt(++r)&255)<<16|(e.charCodeAt(++r)&255)<<24,n=(n&65535)*1540483477+((n>>>16)*59797<<16),n^=n>>>24,t=(n&65535)*1540483477+((n>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(a){case 3:t^=(e.charCodeAt(r+2)&255)<<16;case 2:t^=(e.charCodeAt(r+1)&255)<<8;case 1:t^=e.charCodeAt(r)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}var zV={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,scale:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1};function VV(e){var t=Object.create(null);return function(n){return t[n]===void 0&&(t[n]=e(n)),t[n]}}var GV=/[A-Z]|^ms/g,qV=/_EMO_([^_]+?)_([^]*?)_EMO_/g,F3=function(e){return e.charCodeAt(1)===45},bD=function(e){return e!=null&&typeof e!="boolean"},zv=VV(function(e){return F3(e)?e:e.replace(GV,"-$&").toLowerCase()}),ED=function(e,t){switch(e){case"animation":case"animationName":if(typeof t=="string")return t.replace(qV,function(n,r,a){return Ts={name:r,styles:a,next:Ts},r})}return zV[e]!==1&&!F3(e)&&typeof t=="number"&&t!==0?t+"px":t};function Tg(e,t,n){if(n==null)return"";var r=n;if(r.__emotion_styles!==void 0)return r;switch(typeof n){case"boolean":return"";case"object":{var a=n;if(a.anim===1)return Ts={name:a.name,styles:a.styles,next:Ts},a.name;var o=n;if(o.styles!==void 0){var s=o.next;if(s!==void 0)for(;s!==void 0;)Ts={name:s.name,styles:s.styles,next:Ts},s=s.next;var c=o.styles+";";return c}return WV(e,t,n)}}var u=n;return u}function WV(e,t,n){var r="";if(Array.isArray(n))for(var a=0;a<n.length;a++)r+=Tg(e,t,n[a])+";";else for(var o in n){var s=n[o];if(typeof s!="object"){var c=s;bD(c)&&(r+=zv(o)+":"+ED(o,c)+";")}else if(Array.isArray(s)&&typeof s[0]=="string"&&t==null)for(var u=0;u<s.length;u++)bD(s[u])&&(r+=zv(o)+":"+ED(o,s[u])+";");else{var d=Tg(e,t,s);switch(o){case"animation":case"animationName":{r+=zv(o)+":"+d+";";break}default:r+=o+"{"+d+"}"}}}return r}var TD=/label:\s*([^\s;{]+)\s*(;|$)/g,Ts;function YV(e,t,n){if(e.length===1&&typeof e[0]=="object"&&e[0]!==null&&e[0].styles!==void 0)return e[0];var r=!0,a="";Ts=void 0;var o=e[0];if(o==null||o.raw===void 0)r=!1,a+=Tg(n,t,o);else{var s=o;a+=s[0]}for(var c=1;c<e.length;c++)if(a+=Tg(n,t,e[c]),r){var u=o;a+=u[c]}TD.lastIndex=0;for(var d="",p;(p=TD.exec(a))!==null;)d+="-"+p[1];var h=HV(a)+d;return{name:h,styles:a,next:Ts}}function QV(e,t){return hg(e,t)}function KV(e,t){Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))}const SD=[];function _l(e){return SD[0]=e,YV(SD)}function XV(e){const{variants:t,...n}=e,r={variants:t,style:_l(n),isProcessed:!0};return r.style===n||t&&t.forEach(a=>{typeof a.style!="function"&&(a.style=_l(a.style))}),r}const ZV=OS();function ws(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}function ml(e,t){return t&&e&&typeof e=="object"&&e.styles&&!e.styles.startsWith("@layer")&&(e.styles=`@layer ${t}{${String(e.styles)}}`),e}function JV(e){return e?(t,n)=>n[e]:null}function eG(e,t,n){e.theme=nG(e.theme)?n:e.theme[t]||e.theme}function Gm(e,t,n){const r=typeof t=="function"?t(e):t;if(Array.isArray(r))return r.flatMap(a=>Gm(e,a,n));if(Array.isArray(r?.variants)){let a;if(r.isProcessed)a=n?ml(r.style,n):r.style;else{const{variants:o,...s}=r;a=n?ml(_l(s),n):s}return B3(e,r.variants,[a],n)}return r?.isProcessed?n?ml(_l(r.style),n):r.style:n?ml(_l(r),n):r}function B3(e,t,n=[],r=void 0){let a;e:for(let o=0;o<t.length;o+=1){const s=t[o];if(typeof s.props=="function"){if(a??={...e,...e.ownerState,ownerState:e.ownerState},!s.props(a))continue}else for(const c in s.props)if(e[c]!==s.props[c]&&e.ownerState?.[c]!==s.props[c])continue e;typeof s.style=="function"?(a??={...e,...e.ownerState,ownerState:e.ownerState},n.push(r?ml(_l(s.style(a)),r):s.style(a))):n.push(r?ml(_l(s.style),r):s.style)}return n}function tG(e={}){const{themeId:t,defaultTheme:n=ZV,rootShouldForwardProp:r=ws,slotShouldForwardProp:a=ws}=e;function o(s){eG(s,t,n)}return(s,c={})=>{KV(s,O=>O.filter(k=>k!==du));const{name:u,slot:d,skipVariantsResolver:p,skipSx:h,overridesResolver:g=JV(aG(d)),...y}=c,b=u&&u.startsWith("Mui")||d?"components":"custom",E=p!==void 0?p:d&&d!=="Root"&&d!=="root"||!1,_=h||!1;let A=ws;d==="Root"||d==="root"?A=r:d?A=a:rG(s)&&(A=void 0);const D=QV(s,{shouldForwardProp:A,label:void 0,...y}),w=O=>{if(O.__emotion_real===O)return O;if(typeof O=="function")return function(k){return Gm(k,O,k.theme.modularCssLayers?b:void 0)};if(Wo(O)){const k=XV(O);return function(F){return k.variants?Gm(F,k,F.theme.modularCssLayers?b:void 0):F.theme.modularCssLayers?ml(k.style,b):k.style}}return O},R=(...O)=>{const k=[],F=O.map(w),G=[];if(k.push(o),u&&g&&G.push(function(M){const U=M.theme.components?.[u]?.styleOverrides;if(!U)return null;const B={};for(const Y in U)B[Y]=Gm(M,U[Y],M.theme.modularCssLayers?"theme":void 0);return g(M,B)}),u&&!E&&G.push(function(M){const U=M.theme?.components?.[u]?.variants;return U?B3(M,U,[],M.theme.modularCssLayers?"theme":void 0):null}),_||G.push(du),Array.isArray(F[0])){const M=F.shift(),U=new Array(k.length).fill(""),B=new Array(G.length).fill("");let Y;Y=[...U,...M,...B],Y.raw=[...U,...M.raw,...B],k.unshift(Y)}const j=[...k,...F,...G],T=D(...j);return s.muiName&&(T.muiName=s.muiName),T};return D.withConfig&&(R.withConfig=D.withConfig),R}}function nG(e){for(const t in e)return!1;return!0}function rG(e){return typeof e=="string"&&e.charCodeAt(0)>96}function aG(e){return e&&e.charAt(0).toLowerCase()+e.slice(1)}const ze=tG({themeId:wy,defaultTheme:xy,rootShouldForwardProp:ea});function zt(e,t,n=void 0){const r={};for(const a in e){const o=e[a];let s="",c=!0;for(let u=0;u<o.length;u+=1){const d=o[u];d&&(s+=(c===!0?"":" ")+t(d),c=!1,n&&n[d]&&(s+=" "+n[d]))}r[a]=s}return r}const oG=e=>{const{color:t,fontSize:n,classes:r}=e,a={root:["root",t!=="inherit"&&`color${rt(t)}`,`fontSize${rt(n)}`]};return zt(a,oz,r)},iG=ze("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.color!=="inherit"&&t[`color${rt(n.color)}`],t[`fontSize${rt(n.fontSize)}`]]}})(fn(({theme:e})=>({userSelect:"none",width:"1em",height:"1em",display:"inline-block",flexShrink:0,transition:e.transitions?.create?.("fill",{duration:(e.vars??e).transitions?.duration?.shorter}),variants:[{props:t=>!t.hasSvgAsChild,style:{fill:"currentColor"}},{props:{fontSize:"inherit"},style:{fontSize:"inherit"}},{props:{fontSize:"small"},style:{fontSize:e.typography?.pxToRem?.(20)||"1.25rem"}},{props:{fontSize:"medium"},style:{fontSize:e.typography?.pxToRem?.(24)||"1.5rem"}},{props:{fontSize:"large"},style:{fontSize:e.typography?.pxToRem?.(35)||"2.1875rem"}},...Object.entries((e.vars??e).palette).filter(([,t])=>t&&t.main).map(([t])=>({props:{color:t},style:{color:(e.vars??e).palette?.[t]?.main}})),{props:{color:"action"},style:{color:(e.vars??e).palette?.action?.active}},{props:{color:"disabled"},style:{color:(e.vars??e).palette?.action?.disabled}},{props:{color:"inherit"},style:{color:void 0}}]}))),vE=x.forwardRef(function(e,t){const n=Yt({props:e,name:"MuiSvgIcon"}),{children:r,className:a,color:o="inherit",component:s="svg",fontSize:c="medium",htmlColor:u,inheritViewBox:d=!1,titleAccess:p,viewBox:h="0 0 24 24",...g}=n,y=x.isValidElement(r)&&r.type==="svg",b={...n,color:o,component:s,fontSize:c,instanceFontSize:e.fontSize,inheritViewBox:d,viewBox:h,hasSvgAsChild:y},E={};d||(E.viewBox=h);const _=oG(b);return P.jsxs(iG,{as:s,className:mt(_.root,a),focusable:"false",color:u,"aria-hidden":p?void 0:!0,role:p?"img":void 0,ref:t,...E,...g,...y&&r.props,ownerState:b,children:[y?r.props.children:r,p?P.jsx("title",{children:p}):null]})});vE.muiName="SvgIcon";function wn(e,t){function n(r,a){return P.jsx(vE,{"data-testid":void 0,ref:a,...r,children:e})}return n.muiName=vE.muiName,x.memo(x.forwardRef(n))}const Lge=wn(P.jsx("path",{d:"M15.5 14h-.79l-.28-.27C15.41 12.59 16 11.11 16 9.5 16 5.91 13.09 3 9.5 3S3 5.91 3 9.5 5.91 16 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14"}));function bE({text:e,size:t=20,color:n="primary",thickness:r=3.6,centered:a=!0,spacing:o=2,textVariant:s="body2"}){const c=P.jsxs(Sl,{sx:{display:"flex",flexDirection:"column",alignItems:"center",gap:o},children:[P.jsx(pS,{size:t,color:n,thickness:r}),e&&P.jsx(hS,{variant:s,color:"text.secondary",children:e})]});return a?P.jsx(Sl,{sx:{display:"flex",justifyContent:"center",alignItems:"center",minHeight:"200px",width:"100%"},children:c}):c}const Dy=e=>{const t=new URL(e),n={};if(t.protocol!=="publisher:")throw new Error(`Failed to parse resource URI: ${e}`);const r=(t.hostname+t.pathname).split("/");for(let a=0;a<r.length;a+=2){const o=r[a];o==="projects"?n.projectName=decodeURI(r[a+1])||void 0:o==="packages"?n.packageName=decodeURI(r[a+1])||void 0:o==="connections"?n.connectionName=decodeURI(r[a+1])||void 0:o==="models"&&(n.modelPath=decodeURI(r[a+1])||void 0)}if(n.versionId=t.searchParams.get("versionId")||void 0,!n.projectName)throw new Error(`Failed to parse resource URI: ${e}`);return n},Pge=e=>{if(!e.projectName)throw new Error(`Failed to encode resource URI, missing project name: ${e}`);let t=`publisher://projects/${e.projectName}`;return e.packageName&&(t+=`/packages/${e.packageName}`),e.connectionName&&(t+=`/connections/${e.connectionName}`),e.modelPath&&(t+=`/models/${e.modelPath}`),e.packageName&&e.versionId&&(t+=`?versionId=${e.versionId}`),t},sG=xt(_3)({display:"flex",flexDirection:"column",height:"100%",boxShadow:"none",border:"none",backgroundColor:"transparent"}),lG=xt(C3)({display:"flex",flexDirection:"column",padding:"0",flexGrow:1}),U3=xt(jH)({padding:"0"}),Mge=xt("div")({backgroundColor:"#ffffff",padding:"0 32px 32px 32px",borderRadius:"12px",boxShadow:"none",border:"none",maxWidth:"1200px",margin:"0 auto"});xt("div")({marginBottom:"40px",paddingBottom:"24px",borderBottom:"1px solid #f0f0f0"});const $ge=xt("div")({marginBottom:"48px",padding:"0",backgroundColor:"transparent",border:"none",boxShadow:"none"}),Fge=xt("div")({marginBottom:"0",padding:"0",backgroundColor:"transparent",border:"none",boxShadow:"none"}),Bge=xt("div")({backgroundColor:"#ffffff",padding:"24px",borderRadius:"8px",border:"1px solid #f0f0f0",boxShadow:"0 1px 3px rgba(0, 0, 0, 0.04)",marginBottom:"0",transition:"box-shadow 0.2s ease-in-out","&:hover":{boxShadow:"0 2px 6px rgba(0, 0, 0, 0.08)"}});xt("div")({backgroundColor:"#f8f9fa",padding:"16px",borderRadius:"8px",border:"1px solid #e9ecef",fontFamily:"'Monaco', 'Menlo', 'Ubuntu Mono', monospace",fontSize:"13px",lineHeight:"1.5",overflowX:"auto"});xt("div")({backgroundColor:"#f8f9fa",padding:"12px 16px",borderRadius:"8px",border:"1px solid #e9ecef",marginBottom:"16px",display:"flex",justifyContent:"space-between",alignItems:"center"});const cG=xt("div")({height:"100%"});xt("div")({height:"30px",backgroundColor:"rgba(225, 240, 255, 1)",display:"flex",padding:"4px",alignItems:"center"});const j3=xt("div")({height:"75vh",width:"100%",overflowY:"auto"});xt("div")({position:"relative",height:"100%",flex:"0 0 auto"});const Uge=xt(_3)({backgroundColor:"#ffffff",padding:"24px",borderRadius:"8px",border:"1px solid #f0f0f0",boxShadow:"0 1px 3px rgba(0, 0, 0, 0.04)",height:"100%",transition:"box-shadow 0.2s ease-in-out","&:hover":{boxShadow:"0 2px 6px rgba(0, 0, 0, 0.08)"}}),jge=xt(C3)({padding:"0","&:last-child":{paddingBottom:"0"}}),Hge=xt("div")({fontSize:"12px",fontWeight:"600",color:"#666666",textTransform:"uppercase",letterSpacing:"0.5px",marginBottom:"16px",paddingBottom:"8px",borderBottom:"1px solid #f0f0f0"}),zge=xt("div")({padding:"32px",maxWidth:"1400px",margin:"0 auto",minHeight:"100vh"});var Tu=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(e){return this.listeners.add(e),this.onSubscribe(),()=>{this.listeners.delete(e),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},Il=typeof window>"u"||"Deno"in globalThis;function qr(){}function uG(e,t){return typeof e=="function"?e(t):e}function EE(e){return typeof e=="number"&&e>=0&&e!==1/0}function H3(e,t){return Math.max(e+(t||0)-Date.now(),0)}function Ds(e,t){return typeof e=="function"?e(t):e}function Xa(e,t){return typeof e=="function"?e(t):e}function _D(e,t){const{type:n="all",exact:r,fetchStatus:a,predicate:o,queryKey:s,stale:c}=e;if(s){if(r){if(t.queryHash!==IS(s,t.options))return!1}else if(!Qf(t.queryKey,s))return!1}if(n!=="all"){const u=t.isActive();if(n==="active"&&!u||n==="inactive"&&u)return!1}return!(typeof c=="boolean"&&t.isStale()!==c||a&&a!==t.state.fetchStatus||o&&!o(t))}function CD(e,t){const{exact:n,status:r,predicate:a,mutationKey:o}=e;if(o){if(!t.options.mutationKey)return!1;if(n){if(Nl(t.options.mutationKey)!==Nl(o))return!1}else if(!Qf(t.options.mutationKey,o))return!1}return!(r&&t.state.status!==r||a&&!a(t))}function IS(e,t){return(t?.queryKeyHashFn||Nl)(e)}function Nl(e){return JSON.stringify(e,(t,n)=>TE(n)?Object.keys(n).sort().reduce((r,a)=>(r[a]=n[a],r),{}):n)}function Qf(e,t){return e===t?!0:typeof e!=typeof t?!1:e&&t&&typeof e=="object"&&typeof t=="object"?Object.keys(t).every(n=>Qf(e[n],t[n])):!1}function z3(e,t){if(e===t)return e;const n=AD(e)&&AD(t);if(n||TE(e)&&TE(t)){const r=n?e:Object.keys(e),a=r.length,o=n?t:Object.keys(t),s=o.length,c=n?[]:{},u=new Set(r);let d=0;for(let p=0;p<s;p++){const h=n?p:o[p];(!n&&u.has(h)||n)&&e[h]===void 0&&t[h]===void 0?(c[h]=void 0,d++):(c[h]=z3(e[h],t[h]),c[h]===e[h]&&e[h]!==void 0&&d++)}return a===s&&d===a?e:c}return t}function Sg(e,t){if(!t||Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e)if(e[n]!==t[n])return!1;return!0}function AD(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function TE(e){if(!xD(e))return!1;const t=e.constructor;if(t===void 0)return!0;const n=t.prototype;return!(!xD(n)||!n.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(e)!==Object.prototype)}function xD(e){return Object.prototype.toString.call(e)==="[object Object]"}function dG(e){return new Promise(t=>{setTimeout(t,e)})}function SE(e,t,n){return typeof n.structuralSharing=="function"?n.structuralSharing(e,t):n.structuralSharing!==!1?z3(e,t):t}function fG(e,t,n=0){const r=[...e,t];return n&&r.length>n?r.slice(1):r}function pG(e,t,n=0){const r=[t,...e];return n&&r.length>n?r.slice(0,-1):r}var NS=Symbol();function V3(e,t){return!e.queryFn&&t?.initialPromise?()=>t.initialPromise:!e.queryFn||e.queryFn===NS?()=>Promise.reject(new Error(`Missing queryFn: '${e.queryHash}'`)):e.queryFn}function G3(e,t){return typeof e=="function"?e(...t):!!e}var hG=class extends Tu{#t;#e;#n;constructor(){super(),this.#n=e=>{if(!Il&&window.addEventListener){const t=()=>e();return window.addEventListener("visibilitychange",t,!1),()=>{window.removeEventListener("visibilitychange",t)}}}}onSubscribe(){this.#e||this.setEventListener(this.#n)}onUnsubscribe(){this.hasListeners()||(this.#e?.(),this.#e=void 0)}setEventListener(e){this.#n=e,this.#e?.(),this.#e=e(t=>{typeof t=="boolean"?this.setFocused(t):this.onFocus()})}setFocused(e){this.#t!==e&&(this.#t=e,this.onFocus())}onFocus(){const e=this.isFocused();this.listeners.forEach(t=>{t(e)})}isFocused(){return typeof this.#t=="boolean"?this.#t:globalThis.document?.visibilityState!=="hidden"}},LS=new hG,mG=class extends Tu{#t=!0;#e;#n;constructor(){super(),this.#n=e=>{if(!Il&&window.addEventListener){const t=()=>e(!0),n=()=>e(!1);return window.addEventListener("online",t,!1),window.addEventListener("offline",n,!1),()=>{window.removeEventListener("online",t),window.removeEventListener("offline",n)}}}}onSubscribe(){this.#e||this.setEventListener(this.#n)}onUnsubscribe(){this.hasListeners()||(this.#e?.(),this.#e=void 0)}setEventListener(e){this.#n=e,this.#e?.(),this.#e=e(this.setOnline.bind(this))}setOnline(e){this.#t!==e&&(this.#t=e,this.listeners.forEach(n=>{n(e)}))}isOnline(){return this.#t}},_g=new mG;function _E(){let e,t;const n=new Promise((a,o)=>{e=a,t=o});n.status="pending",n.catch(()=>{});function r(a){Object.assign(n,a),delete n.resolve,delete n.reject}return n.resolve=a=>{r({status:"fulfilled",value:a}),e(a)},n.reject=a=>{r({status:"rejected",reason:a}),t(a)},n}function gG(e){return Math.min(1e3*2**e,3e4)}function q3(e){return(e??"online")==="online"?_g.isOnline():!0}var W3=class extends Error{constructor(e){super("CancelledError"),this.revert=e?.revert,this.silent=e?.silent}};function Vv(e){return e instanceof W3}function Y3(e){let t=!1,n=0,r=!1,a;const o=_E(),s=E=>{r||(g(new W3(E)),e.abort?.())},c=()=>{t=!0},u=()=>{t=!1},d=()=>LS.isFocused()&&(e.networkMode==="always"||_g.isOnline())&&e.canRun(),p=()=>q3(e.networkMode)&&e.canRun(),h=E=>{r||(r=!0,e.onSuccess?.(E),a?.(),o.resolve(E))},g=E=>{r||(r=!0,e.onError?.(E),a?.(),o.reject(E))},y=()=>new Promise(E=>{a=_=>{(r||d())&&E(_)},e.onPause?.()}).then(()=>{a=void 0,r||e.onContinue?.()}),b=()=>{if(r)return;let E;const _=n===0?e.initialPromise:void 0;try{E=_??e.fn()}catch(A){E=Promise.reject(A)}Promise.resolve(E).then(h).catch(A=>{if(r)return;const D=e.retry??(Il?0:3),w=e.retryDelay??gG,R=typeof w=="function"?w(n,A):w,O=D===!0||typeof D=="number"&&n<D||typeof D=="function"&&D(n,A);if(t||!O){g(A);return}n++,e.onFail?.(n,A),dG(R).then(()=>d()?void 0:y()).then(()=>{t?g(A):b()})})};return{promise:o,cancel:s,continue:()=>(a?.(),o),cancelRetry:c,continueRetry:u,canStart:p,start:()=>(p()?b():y().then(b),o)}}var yG=e=>setTimeout(e,0);function vG(){let e=[],t=0,n=c=>{c()},r=c=>{c()},a=yG;const o=c=>{t?e.push(c):a(()=>{n(c)})},s=()=>{const c=e;e=[],c.length&&a(()=>{r(()=>{c.forEach(u=>{n(u)})})})};return{batch:c=>{let u;t++;try{u=c()}finally{t--,t||s()}return u},batchCalls:c=>(...u)=>{o(()=>{c(...u)})},schedule:o,setNotifyFunction:c=>{n=c},setBatchNotifyFunction:c=>{r=c},setScheduler:c=>{a=c}}}var pr=vG(),Q3=class{#t;destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),EE(this.gcTime)&&(this.#t=setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(Il?1/0:300*1e3))}clearGcTimeout(){this.#t&&(clearTimeout(this.#t),this.#t=void 0)}},bG=class extends Q3{#t;#e;#n;#r;#a;#i;#s;constructor(e){super(),this.#s=!1,this.#i=e.defaultOptions,this.setOptions(e.options),this.observers=[],this.#r=e.client,this.#n=this.#r.getQueryCache(),this.queryKey=e.queryKey,this.queryHash=e.queryHash,this.#t=EG(this.options),this.state=e.state??this.#t,this.scheduleGc()}get meta(){return this.options.meta}get promise(){return this.#a?.promise}setOptions(e){this.options={...this.#i,...e},this.updateGcTime(this.options.gcTime)}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&this.#n.remove(this)}setData(e,t){const n=SE(this.state.data,e,this.options);return this.#o({data:n,type:"success",dataUpdatedAt:t?.updatedAt,manual:t?.manual}),n}setState(e,t){this.#o({type:"setState",state:e,setStateOptions:t})}cancel(e){const t=this.#a?.promise;return this.#a?.cancel(e),t?t.then(qr).catch(qr):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(this.#t)}isActive(){return this.observers.some(e=>Xa(e.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===NS||this.state.dataUpdateCount+this.state.errorUpdateCount===0}isStatic(){return this.getObserversCount()>0?this.observers.some(e=>Ds(e.options.staleTime,this)==="static"):!1}isStale(){return this.getObserversCount()>0?this.observers.some(e=>e.getCurrentResult().isStale):this.state.data===void 0||this.state.isInvalidated}isStaleByTime(e=0){return this.state.data===void 0?!0:e==="static"?!1:this.state.isInvalidated?!0:!H3(this.state.dataUpdatedAt,e)}onFocus(){this.observers.find(t=>t.shouldFetchOnWindowFocus())?.refetch({cancelRefetch:!1}),this.#a?.continue()}onOnline(){this.observers.find(t=>t.shouldFetchOnReconnect())?.refetch({cancelRefetch:!1}),this.#a?.continue()}addObserver(e){this.observers.includes(e)||(this.observers.push(e),this.clearGcTimeout(),this.#n.notify({type:"observerAdded",query:this,observer:e}))}removeObserver(e){this.observers.includes(e)&&(this.observers=this.observers.filter(t=>t!==e),this.observers.length||(this.#a&&(this.#s?this.#a.cancel({revert:!0}):this.#a.cancelRetry()),this.scheduleGc()),this.#n.notify({type:"observerRemoved",query:this,observer:e}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||this.#o({type:"invalidate"})}fetch(e,t){if(this.state.fetchStatus!=="idle"){if(this.state.data!==void 0&&t?.cancelRefetch)this.cancel({silent:!0});else if(this.#a)return this.#a.continueRetry(),this.#a.promise}if(e&&this.setOptions(e),!this.options.queryFn){const u=this.observers.find(d=>d.options.queryFn);u&&this.setOptions(u.options)}const n=new AbortController,r=u=>{Object.defineProperty(u,"signal",{enumerable:!0,get:()=>(this.#s=!0,n.signal)})},a=()=>{const u=V3(this.options,t),p=(()=>{const h={client:this.#r,queryKey:this.queryKey,meta:this.meta};return r(h),h})();return this.#s=!1,this.options.persister?this.options.persister(u,p,this):u(p)},s=(()=>{const u={fetchOptions:t,options:this.options,queryKey:this.queryKey,client:this.#r,state:this.state,fetchFn:a};return r(u),u})();this.options.behavior?.onFetch(s,this),this.#e=this.state,(this.state.fetchStatus==="idle"||this.state.fetchMeta!==s.fetchOptions?.meta)&&this.#o({type:"fetch",meta:s.fetchOptions?.meta});const c=u=>{Vv(u)&&u.silent||this.#o({type:"error",error:u}),Vv(u)||(this.#n.config.onError?.(u,this),this.#n.config.onSettled?.(this.state.data,u,this)),this.scheduleGc()};return this.#a=Y3({initialPromise:t?.initialPromise,fn:s.fetchFn,abort:n.abort.bind(n),onSuccess:u=>{if(u===void 0){c(new Error(`${this.queryHash} data is undefined`));return}try{this.setData(u)}catch(d){c(d);return}this.#n.config.onSuccess?.(u,this),this.#n.config.onSettled?.(u,this.state.error,this),this.scheduleGc()},onError:c,onFail:(u,d)=>{this.#o({type:"failed",failureCount:u,error:d})},onPause:()=>{this.#o({type:"pause"})},onContinue:()=>{this.#o({type:"continue"})},retry:s.options.retry,retryDelay:s.options.retryDelay,networkMode:s.options.networkMode,canRun:()=>!0}),this.#a.start()}#o(e){const t=n=>{switch(e.type){case"failed":return{...n,fetchFailureCount:e.failureCount,fetchFailureReason:e.error};case"pause":return{...n,fetchStatus:"paused"};case"continue":return{...n,fetchStatus:"fetching"};case"fetch":return{...n,...K3(n.data,this.options),fetchMeta:e.meta??null};case"success":return this.#e=void 0,{...n,data:e.data,dataUpdateCount:n.dataUpdateCount+1,dataUpdatedAt:e.dataUpdatedAt??Date.now(),error:null,isInvalidated:!1,status:"success",...!e.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};case"error":const r=e.error;return Vv(r)&&r.revert&&this.#e?{...this.#e,fetchStatus:"idle"}:{...n,error:r,errorUpdateCount:n.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:n.fetchFailureCount+1,fetchFailureReason:r,fetchStatus:"idle",status:"error"};case"invalidate":return{...n,isInvalidated:!0};case"setState":return{...n,...e.state}}};this.state=t(this.state),pr.batch(()=>{this.observers.forEach(n=>{n.onQueryUpdate()}),this.#n.notify({query:this,type:"updated",action:e})})}};function K3(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:q3(t.networkMode)?"fetching":"paused",...e===void 0&&{error:null,status:"pending"}}}function EG(e){const t=typeof e.initialData=="function"?e.initialData():e.initialData,n=t!==void 0,r=n?typeof e.initialDataUpdatedAt=="function"?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:n?r??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:n?"success":"pending",fetchStatus:"idle"}}var TG=class extends Tu{constructor(e={}){super(),this.config=e,this.#t=new Map}#t;build(e,t,n){const r=t.queryKey,a=t.queryHash??IS(r,t);let o=this.get(a);return o||(o=new bG({client:e,queryKey:r,queryHash:a,options:e.defaultQueryOptions(t),state:n,defaultOptions:e.getQueryDefaults(r)}),this.add(o)),o}add(e){this.#t.has(e.queryHash)||(this.#t.set(e.queryHash,e),this.notify({type:"added",query:e}))}remove(e){const t=this.#t.get(e.queryHash);t&&(e.destroy(),t===e&&this.#t.delete(e.queryHash),this.notify({type:"removed",query:e}))}clear(){pr.batch(()=>{this.getAll().forEach(e=>{this.remove(e)})})}get(e){return this.#t.get(e)}getAll(){return[...this.#t.values()]}find(e){const t={exact:!0,...e};return this.getAll().find(n=>_D(t,n))}findAll(e={}){const t=this.getAll();return Object.keys(e).length>0?t.filter(n=>_D(e,n)):t}notify(e){pr.batch(()=>{this.listeners.forEach(t=>{t(e)})})}onFocus(){pr.batch(()=>{this.getAll().forEach(e=>{e.onFocus()})})}onOnline(){pr.batch(()=>{this.getAll().forEach(e=>{e.onOnline()})})}},SG=class extends Q3{#t;#e;#n;constructor(e){super(),this.mutationId=e.mutationId,this.#e=e.mutationCache,this.#t=[],this.state=e.state||X3(),this.setOptions(e.options),this.scheduleGc()}setOptions(e){this.options=e,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(e){this.#t.includes(e)||(this.#t.push(e),this.clearGcTimeout(),this.#e.notify({type:"observerAdded",mutation:this,observer:e}))}removeObserver(e){this.#t=this.#t.filter(t=>t!==e),this.scheduleGc(),this.#e.notify({type:"observerRemoved",mutation:this,observer:e})}optionalRemove(){this.#t.length||(this.state.status==="pending"?this.scheduleGc():this.#e.remove(this))}continue(){return this.#n?.continue()??this.execute(this.state.variables)}async execute(e){const t=()=>{this.#r({type:"continue"})};this.#n=Y3({fn:()=>this.options.mutationFn?this.options.mutationFn(e):Promise.reject(new Error("No mutationFn found")),onFail:(a,o)=>{this.#r({type:"failed",failureCount:a,error:o})},onPause:()=>{this.#r({type:"pause"})},onContinue:t,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>this.#e.canRun(this)});const n=this.state.status==="pending",r=!this.#n.canStart();try{if(n)t();else{this.#r({type:"pending",variables:e,isPaused:r}),await this.#e.config.onMutate?.(e,this);const o=await this.options.onMutate?.(e);o!==this.state.context&&this.#r({type:"pending",context:o,variables:e,isPaused:r})}const a=await this.#n.start();return await this.#e.config.onSuccess?.(a,e,this.state.context,this),await this.options.onSuccess?.(a,e,this.state.context),await this.#e.config.onSettled?.(a,null,this.state.variables,this.state.context,this),await this.options.onSettled?.(a,null,e,this.state.context),this.#r({type:"success",data:a}),a}catch(a){try{throw await this.#e.config.onError?.(a,e,this.state.context,this),await this.options.onError?.(a,e,this.state.context),await this.#e.config.onSettled?.(void 0,a,this.state.variables,this.state.context,this),await this.options.onSettled?.(void 0,a,e,this.state.context),a}finally{this.#r({type:"error",error:a})}}finally{this.#e.runNext(this)}}#r(e){const t=n=>{switch(e.type){case"failed":return{...n,failureCount:e.failureCount,failureReason:e.error};case"pause":return{...n,isPaused:!0};case"continue":return{...n,isPaused:!1};case"pending":return{...n,context:e.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:e.isPaused,status:"pending",variables:e.variables,submittedAt:Date.now()};case"success":return{...n,data:e.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...n,data:void 0,error:e.error,failureCount:n.failureCount+1,failureReason:e.error,isPaused:!1,status:"error"}}};this.state=t(this.state),pr.batch(()=>{this.#t.forEach(n=>{n.onMutationUpdate(e)}),this.#e.notify({mutation:this,type:"updated",action:e})})}};function X3(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var _G=class extends Tu{constructor(e={}){super(),this.config=e,this.#t=new Set,this.#e=new Map,this.#n=0}#t;#e;#n;build(e,t,n){const r=new SG({mutationCache:this,mutationId:++this.#n,options:e.defaultMutationOptions(t),state:n});return this.add(r),r}add(e){this.#t.add(e);const t=ym(e);if(typeof t=="string"){const n=this.#e.get(t);n?n.push(e):this.#e.set(t,[e])}this.notify({type:"added",mutation:e})}remove(e){if(this.#t.delete(e)){const t=ym(e);if(typeof t=="string"){const n=this.#e.get(t);if(n)if(n.length>1){const r=n.indexOf(e);r!==-1&&n.splice(r,1)}else n[0]===e&&this.#e.delete(t)}}this.notify({type:"removed",mutation:e})}canRun(e){const t=ym(e);if(typeof t=="string"){const r=this.#e.get(t)?.find(a=>a.state.status==="pending");return!r||r===e}else return!0}runNext(e){const t=ym(e);return typeof t=="string"?this.#e.get(t)?.find(r=>r!==e&&r.state.isPaused)?.continue()??Promise.resolve():Promise.resolve()}clear(){pr.batch(()=>{this.#t.forEach(e=>{this.notify({type:"removed",mutation:e})}),this.#t.clear(),this.#e.clear()})}getAll(){return Array.from(this.#t)}find(e){const t={exact:!0,...e};return this.getAll().find(n=>CD(t,n))}findAll(e={}){return this.getAll().filter(t=>CD(e,t))}notify(e){pr.batch(()=>{this.listeners.forEach(t=>{t(e)})})}resumePausedMutations(){const e=this.getAll().filter(t=>t.state.isPaused);return pr.batch(()=>Promise.all(e.map(t=>t.continue().catch(qr))))}};function ym(e){return e.options.scope?.id}function wD(e){return{onFetch:(t,n)=>{const r=t.options,a=t.fetchOptions?.meta?.fetchMore?.direction,o=t.state.data?.pages||[],s=t.state.data?.pageParams||[];let c={pages:[],pageParams:[]},u=0;const d=async()=>{let p=!1;const h=b=>{Object.defineProperty(b,"signal",{enumerable:!0,get:()=>(t.signal.aborted?p=!0:t.signal.addEventListener("abort",()=>{p=!0}),t.signal)})},g=V3(t.options,t.fetchOptions),y=async(b,E,_)=>{if(p)return Promise.reject();if(E==null&&b.pages.length)return Promise.resolve(b);const D=(()=>{const k={client:t.client,queryKey:t.queryKey,pageParam:E,direction:_?"backward":"forward",meta:t.options.meta};return h(k),k})(),w=await g(D),{maxPages:R}=t.options,O=_?pG:fG;return{pages:O(b.pages,w,R),pageParams:O(b.pageParams,E,R)}};if(a&&o.length){const b=a==="backward",E=b?CG:DD,_={pages:o,pageParams:s},A=E(r,_);c=await y(_,A,b)}else{const b=e??o.length;do{const E=u===0?s[0]??r.initialPageParam:DD(r,c);if(u>0&&E==null)break;c=await y(c,E),u++}while(u<b)}return c};t.options.persister?t.fetchFn=()=>t.options.persister?.(d,{client:t.client,queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},n):t.fetchFn=d}}}function DD(e,{pages:t,pageParams:n}){const r=t.length-1;return t.length>0?e.getNextPageParam(t[r],t,n[r],n):void 0}function CG(e,{pages:t,pageParams:n}){return t.length>0?e.getPreviousPageParam?.(t[0],t,n[0],n):void 0}var AG=class{#t;#e;#n;#r;#a;#i;#s;#o;constructor(e={}){this.#t=e.queryCache||new TG,this.#e=e.mutationCache||new _G,this.#n=e.defaultOptions||{},this.#r=new Map,this.#a=new Map,this.#i=0}mount(){this.#i++,this.#i===1&&(this.#s=LS.subscribe(async e=>{e&&(await this.resumePausedMutations(),this.#t.onFocus())}),this.#o=_g.subscribe(async e=>{e&&(await this.resumePausedMutations(),this.#t.onOnline())}))}unmount(){this.#i--,this.#i===0&&(this.#s?.(),this.#s=void 0,this.#o?.(),this.#o=void 0)}isFetching(e){return this.#t.findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return this.#e.findAll({...e,status:"pending"}).length}getQueryData(e){const t=this.defaultQueryOptions({queryKey:e});return this.#t.get(t.queryHash)?.state.data}ensureQueryData(e){const t=this.defaultQueryOptions(e),n=this.#t.build(this,t),r=n.state.data;return r===void 0?this.fetchQuery(e):(e.revalidateIfStale&&n.isStaleByTime(Ds(t.staleTime,n))&&this.prefetchQuery(t),Promise.resolve(r))}getQueriesData(e){return this.#t.findAll(e).map(({queryKey:t,state:n})=>{const r=n.data;return[t,r]})}setQueryData(e,t,n){const r=this.defaultQueryOptions({queryKey:e}),o=this.#t.get(r.queryHash)?.state.data,s=uG(t,o);if(s!==void 0)return this.#t.build(this,r).setData(s,{...n,manual:!0})}setQueriesData(e,t,n){return pr.batch(()=>this.#t.findAll(e).map(({queryKey:r})=>[r,this.setQueryData(r,t,n)]))}getQueryState(e){const t=this.defaultQueryOptions({queryKey:e});return this.#t.get(t.queryHash)?.state}removeQueries(e){const t=this.#t;pr.batch(()=>{t.findAll(e).forEach(n=>{t.remove(n)})})}resetQueries(e,t){const n=this.#t;return pr.batch(()=>(n.findAll(e).forEach(r=>{r.reset()}),this.refetchQueries({type:"active",...e},t)))}cancelQueries(e,t={}){const n={revert:!0,...t},r=pr.batch(()=>this.#t.findAll(e).map(a=>a.cancel(n)));return Promise.all(r).then(qr).catch(qr)}invalidateQueries(e,t={}){return pr.batch(()=>(this.#t.findAll(e).forEach(n=>{n.invalidate()}),e?.refetchType==="none"?Promise.resolve():this.refetchQueries({...e,type:e?.refetchType??e?.type??"active"},t)))}refetchQueries(e,t={}){const n={...t,cancelRefetch:t.cancelRefetch??!0},r=pr.batch(()=>this.#t.findAll(e).filter(a=>!a.isDisabled()&&!a.isStatic()).map(a=>{let o=a.fetch(void 0,n);return n.throwOnError||(o=o.catch(qr)),a.state.fetchStatus==="paused"?Promise.resolve():o}));return Promise.all(r).then(qr)}fetchQuery(e){const t=this.defaultQueryOptions(e);t.retry===void 0&&(t.retry=!1);const n=this.#t.build(this,t);return n.isStaleByTime(Ds(t.staleTime,n))?n.fetch(t):Promise.resolve(n.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(qr).catch(qr)}fetchInfiniteQuery(e){return e.behavior=wD(e.pages),this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(qr).catch(qr)}ensureInfiniteQueryData(e){return e.behavior=wD(e.pages),this.ensureQueryData(e)}resumePausedMutations(){return _g.isOnline()?this.#e.resumePausedMutations():Promise.resolve()}getQueryCache(){return this.#t}getMutationCache(){return this.#e}getDefaultOptions(){return this.#n}setDefaultOptions(e){this.#n=e}setQueryDefaults(e,t){this.#r.set(Nl(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){const t=[...this.#r.values()],n={};return t.forEach(r=>{Qf(e,r.queryKey)&&Object.assign(n,r.defaultOptions)}),n}setMutationDefaults(e,t){this.#a.set(Nl(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){const t=[...this.#a.values()],n={};return t.forEach(r=>{Qf(e,r.mutationKey)&&Object.assign(n,r.defaultOptions)}),n}defaultQueryOptions(e){if(e._defaulted)return e;const t={...this.#n.queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||(t.queryHash=IS(t.queryKey,t)),t.refetchOnReconnect===void 0&&(t.refetchOnReconnect=t.networkMode!=="always"),t.throwOnError===void 0&&(t.throwOnError=!!t.suspense),!t.networkMode&&t.persister&&(t.networkMode="offlineFirst"),t.queryFn===NS&&(t.enabled=!1),t}defaultMutationOptions(e){return e?._defaulted?e:{...this.#n.mutations,...e?.mutationKey&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){this.#t.clear(),this.#e.clear()}},xG=class extends Tu{constructor(e,t){super(),this.options=t,this.#t=e,this.#o=null,this.#s=_E(),this.options.experimental_prefetchInRender||this.#s.reject(new Error("experimental_prefetchInRender feature flag is not enabled")),this.bindMethods(),this.setOptions(t)}#t;#e=void 0;#n=void 0;#r=void 0;#a;#i;#s;#o;#m;#f;#p;#c;#u;#l;#h=new Set;bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(this.#e.addObserver(this),kD(this.#e,this.options)?this.#d():this.updateResult(),this.#b())}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return CE(this.#e,this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return CE(this.#e,this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,this.#E(),this.#T(),this.#e.removeObserver(this)}setOptions(e){const t=this.options,n=this.#e;if(this.options=this.#t.defaultQueryOptions(e),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean"&&typeof this.options.enabled!="function"&&typeof Xa(this.options.enabled,this.#e)!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");this.#S(),this.#e.setOptions(this.options),t._defaulted&&!Sg(this.options,t)&&this.#t.getQueryCache().notify({type:"observerOptionsUpdated",query:this.#e,observer:this});const r=this.hasListeners();r&&RD(this.#e,n,this.options,t)&&this.#d(),this.updateResult(),r&&(this.#e!==n||Xa(this.options.enabled,this.#e)!==Xa(t.enabled,this.#e)||Ds(this.options.staleTime,this.#e)!==Ds(t.staleTime,this.#e))&&this.#g();const a=this.#y();r&&(this.#e!==n||Xa(this.options.enabled,this.#e)!==Xa(t.enabled,this.#e)||a!==this.#l)&&this.#v(a)}getOptimisticResult(e){const t=this.#t.getQueryCache().build(this.#t,e),n=this.createResult(t,e);return DG(this,n)&&(this.#r=n,this.#i=this.options,this.#a=this.#e.state),n}getCurrentResult(){return this.#r}trackResult(e,t){return new Proxy(e,{get:(n,r)=>(this.trackProp(r),t?.(r),Reflect.get(n,r))})}trackProp(e){this.#h.add(e)}getCurrentQuery(){return this.#e}refetch({...e}={}){return this.fetch({...e})}fetchOptimistic(e){const t=this.#t.defaultQueryOptions(e),n=this.#t.getQueryCache().build(this.#t,t);return n.fetch().then(()=>this.createResult(n,t))}fetch(e){return this.#d({...e,cancelRefetch:e.cancelRefetch??!0}).then(()=>(this.updateResult(),this.#r))}#d(e){this.#S();let t=this.#e.fetch(this.options,e);return e?.throwOnError||(t=t.catch(qr)),t}#g(){this.#E();const e=Ds(this.options.staleTime,this.#e);if(Il||this.#r.isStale||!EE(e))return;const n=H3(this.#r.dataUpdatedAt,e)+1;this.#c=setTimeout(()=>{this.#r.isStale||this.updateResult()},n)}#y(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(this.#e):this.options.refetchInterval)??!1}#v(e){this.#T(),this.#l=e,!(Il||Xa(this.options.enabled,this.#e)===!1||!EE(this.#l)||this.#l===0)&&(this.#u=setInterval(()=>{(this.options.refetchIntervalInBackground||LS.isFocused())&&this.#d()},this.#l))}#b(){this.#g(),this.#v(this.#y())}#E(){this.#c&&(clearTimeout(this.#c),this.#c=void 0)}#T(){this.#u&&(clearInterval(this.#u),this.#u=void 0)}createResult(e,t){const n=this.#e,r=this.options,a=this.#r,o=this.#a,s=this.#i,u=e!==n?e.state:this.#n,{state:d}=e;let p={...d},h=!1,g;if(t._optimisticResults){const G=this.hasListeners(),j=!G&&kD(e,t),T=G&&RD(e,n,t,r);(j||T)&&(p={...p,...K3(d.data,e.options)}),t._optimisticResults==="isRestoring"&&(p.fetchStatus="idle")}let{error:y,errorUpdatedAt:b,status:E}=p;g=p.data;let _=!1;if(t.placeholderData!==void 0&&g===void 0&&E==="pending"){let G;a?.isPlaceholderData&&t.placeholderData===s?.placeholderData?(G=a.data,_=!0):G=typeof t.placeholderData=="function"?t.placeholderData(this.#p?.state.data,this.#p):t.placeholderData,G!==void 0&&(E="success",g=SE(a?.data,G,t),h=!0)}if(t.select&&g!==void 0&&!_)if(a&&g===o?.data&&t.select===this.#m)g=this.#f;else try{this.#m=t.select,g=t.select(g),g=SE(a?.data,g,t),this.#f=g,this.#o=null}catch(G){this.#o=G}this.#o&&(y=this.#o,g=this.#f,b=Date.now(),E="error");const A=p.fetchStatus==="fetching",D=E==="pending",w=E==="error",R=D&&A,O=g!==void 0,F={status:E,fetchStatus:p.fetchStatus,isPending:D,isSuccess:E==="success",isError:w,isInitialLoading:R,isLoading:R,data:g,dataUpdatedAt:p.dataUpdatedAt,error:y,errorUpdatedAt:b,failureCount:p.fetchFailureCount,failureReason:p.fetchFailureReason,errorUpdateCount:p.errorUpdateCount,isFetched:p.dataUpdateCount>0||p.errorUpdateCount>0,isFetchedAfterMount:p.dataUpdateCount>u.dataUpdateCount||p.errorUpdateCount>u.errorUpdateCount,isFetching:A,isRefetching:A&&!D,isLoadingError:w&&!O,isPaused:p.fetchStatus==="paused",isPlaceholderData:h,isRefetchError:w&&O,isStale:PS(e,t),refetch:this.refetch,promise:this.#s,isEnabled:Xa(t.enabled,e)!==!1};if(this.options.experimental_prefetchInRender){const G=M=>{F.status==="error"?M.reject(F.error):F.data!==void 0&&M.resolve(F.data)},j=()=>{const M=this.#s=F.promise=_E();G(M)},T=this.#s;switch(T.status){case"pending":e.queryHash===n.queryHash&&G(T);break;case"fulfilled":(F.status==="error"||F.data!==T.value)&&j();break;case"rejected":(F.status!=="error"||F.error!==T.reason)&&j();break}}return F}updateResult(){const e=this.#r,t=this.createResult(this.#e,this.options);if(this.#a=this.#e.state,this.#i=this.options,this.#a.data!==void 0&&(this.#p=this.#e),Sg(t,e))return;this.#r=t;const n=()=>{if(!e)return!0;const{notifyOnChangeProps:r}=this.options,a=typeof r=="function"?r():r;if(a==="all"||!a&&!this.#h.size)return!0;const o=new Set(a??this.#h);return this.options.throwOnError&&o.add("error"),Object.keys(this.#r).some(s=>{const c=s;return this.#r[c]!==e[c]&&o.has(c)})};this.#_({listeners:n()})}#S(){const e=this.#t.getQueryCache().build(this.#t,this.options);if(e===this.#e)return;const t=this.#e;this.#e=e,this.#n=e.state,this.hasListeners()&&(t?.removeObserver(this),e.addObserver(this))}onQueryUpdate(){this.updateResult(),this.hasListeners()&&this.#b()}#_(e){pr.batch(()=>{e.listeners&&this.listeners.forEach(t=>{t(this.#r)}),this.#t.getQueryCache().notify({query:this.#e,type:"observerResultsUpdated"})})}};function wG(e,t){return Xa(t.enabled,e)!==!1&&e.state.data===void 0&&!(e.state.status==="error"&&t.retryOnMount===!1)}function kD(e,t){return wG(e,t)||e.state.data!==void 0&&CE(e,t,t.refetchOnMount)}function CE(e,t,n){if(Xa(t.enabled,e)!==!1&&Ds(t.staleTime,e)!=="static"){const r=typeof n=="function"?n(e):n;return r==="always"||r!==!1&&PS(e,t)}return!1}function RD(e,t,n,r){return(e!==t||Xa(r.enabled,e)===!1)&&(!n.suspense||e.state.status!=="error")&&PS(e,n)}function PS(e,t){return Xa(t.enabled,e)!==!1&&e.isStaleByTime(Ds(t.staleTime,e))}function DG(e,t){return!Sg(e.getCurrentResult(),t)}var kG=class extends Tu{#t;#e=void 0;#n;#r;constructor(t,n){super(),this.#t=t,this.setOptions(n),this.bindMethods(),this.#a()}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(t){const n=this.options;this.options=this.#t.defaultMutationOptions(t),Sg(this.options,n)||this.#t.getMutationCache().notify({type:"observerOptionsUpdated",mutation:this.#n,observer:this}),n?.mutationKey&&this.options.mutationKey&&Nl(n.mutationKey)!==Nl(this.options.mutationKey)?this.reset():this.#n?.state.status==="pending"&&this.#n.setOptions(this.options)}onUnsubscribe(){this.hasListeners()||this.#n?.removeObserver(this)}onMutationUpdate(t){this.#a(),this.#i(t)}getCurrentResult(){return this.#e}reset(){this.#n?.removeObserver(this),this.#n=void 0,this.#a(),this.#i()}mutate(t,n){return this.#r=n,this.#n?.removeObserver(this),this.#n=this.#t.getMutationCache().build(this.#t,this.options),this.#n.addObserver(this),this.#n.execute(t)}#a(){const t=this.#n?.state??X3();this.#e={...t,isPending:t.status==="pending",isSuccess:t.status==="success",isError:t.status==="error",isIdle:t.status==="idle",mutate:this.mutate,reset:this.reset}}#i(t){pr.batch(()=>{if(this.#r&&this.hasListeners()){const n=this.#e.variables,r=this.#e.context;t?.type==="success"?(this.#r.onSuccess?.(t.data,n,r),this.#r.onSettled?.(t.data,null,n,r)):t?.type==="error"&&(this.#r.onError?.(t.error,n,r),this.#r.onSettled?.(void 0,t.error,n,r))}this.listeners.forEach(n=>{n(this.#e)})})}},Z3=x.createContext(void 0),J3=e=>{const t=x.useContext(Z3);if(e)return e;if(!t)throw new Error("No QueryClient set, use QueryClientProvider to set one");return t},RG=({client:e,children:t})=>(x.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),P.jsx(Z3.Provider,{value:e,children:t})),eN=x.createContext(!1),OG=()=>x.useContext(eN);eN.Provider;function IG(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}var NG=x.createContext(IG()),LG=()=>x.useContext(NG),PG=(e,t)=>{(e.suspense||e.throwOnError||e.experimental_prefetchInRender)&&(t.isReset()||(e.retryOnMount=!1))},MG=e=>{x.useEffect(()=>{e.clearReset()},[e])},$G=({result:e,errorResetBoundary:t,throwOnError:n,query:r,suspense:a})=>e.isError&&!t.isReset()&&!e.isFetching&&r&&(a&&e.data===void 0||G3(n,[e.error,r])),FG=e=>{if(e.suspense){const t=r=>r==="static"?r:Math.max(r??1e3,1e3),n=e.staleTime;e.staleTime=typeof n=="function"?(...r)=>t(n(...r)):t(n),typeof e.gcTime=="number"&&(e.gcTime=Math.max(e.gcTime,1e3))}},BG=(e,t)=>e.isLoading&&e.isFetching&&!t,UG=(e,t)=>e?.suspense&&t.isPending,OD=(e,t,n)=>t.fetchOptimistic(e).catch(()=>{n.clearReset()});function jG(e,t,n){const r=OG(),a=LG(),o=J3(n),s=o.defaultQueryOptions(e);o.getDefaultOptions().queries?._experimental_beforeQuery?.(s),s._optimisticResults=r?"isRestoring":"optimistic",FG(s),PG(s,a),MG(a);const c=!o.getQueryCache().get(s.queryHash),[u]=x.useState(()=>new t(o,s)),d=u.getOptimisticResult(s),p=!r&&e.subscribed!==!1;if(x.useSyncExternalStore(x.useCallback(h=>{const g=p?u.subscribe(pr.batchCalls(h)):qr;return u.updateResult(),g},[u,p]),()=>u.getCurrentResult(),()=>u.getCurrentResult()),x.useEffect(()=>{u.setOptions(s)},[s,u]),UG(s,d))throw OD(s,u,a);if($G({result:d,errorResetBoundary:a,throwOnError:s.throwOnError,query:o.getQueryCache().get(s.queryHash),suspense:s.suspense}))throw d.error;return o.getDefaultOptions().queries?._experimental_afterQuery?.(s,d),s.experimental_prefetchInRender&&!Il&&BG(d,r)&&(c?OD(s,u,a):o.getQueryCache().get(s.queryHash)?.promise)?.catch(qr).finally(()=>{u.updateResult()}),s.notifyOnChangeProps?d:u.trackResult(d)}function HG(e,t){return jG(e,xG,t)}function zG(e,t){const n=J3(t),[r]=x.useState(()=>new kG(n,e));x.useEffect(()=>{r.setOptions(e)},[r,e]);const a=x.useSyncExternalStore(x.useCallback(s=>r.subscribe(pr.batchCalls(s)),[r]),()=>r.getCurrentResult(),()=>r.getCurrentResult()),o=x.useCallback((s,c)=>{r.mutate(s,c).catch(qr)},[r]);if(a.error&&G3(r.options.throwOnError,[a.error]))throw a.error;return{...a,mutate:o,mutateAsync:a.mutate}}const tN=[{id:"abap",name:"ABAP",import:()=>V(()=>import("./index.es308-DsBKuouk.js"),[])},{id:"actionscript-3",name:"ActionScript",import:()=>V(()=>import("./index.es309-D_z4Izcz.js"),[])},{id:"ada",name:"Ada",import:()=>V(()=>import("./index.es310-727ZlQH0.js"),[])},{id:"angular-html",name:"Angular HTML",import:()=>V(()=>import("./index.es311-B4I7CPCs.js").then(e=>e.i),__vite__mapDeps([0,1,2,3]))},{id:"angular-ts",name:"Angular TypeScript",import:()=>V(()=>import("./index.es312-D6Wb5Qbz.js"),__vite__mapDeps([4,0,1,2,3,5]))},{id:"apache",name:"Apache Conf",import:()=>V(()=>import("./index.es313-Dn00JSTd.js"),[])},{id:"apex",name:"Apex",import:()=>V(()=>import("./index.es314-COJ4H7py.js"),[])},{id:"apl",name:"APL",import:()=>V(()=>import("./index.es315-De-j80TX.js"),__vite__mapDeps([6,1,2,3,7,8,9]))},{id:"applescript",name:"AppleScript",import:()=>V(()=>import("./index.es316-Bu5BbsvL.js"),[])},{id:"ara",name:"Ara",import:()=>V(()=>import("./index.es317-7O62HKoU.js"),[])},{id:"asciidoc",name:"AsciiDoc",aliases:["adoc"],import:()=>V(()=>import("./index.es318-BPT9niGB.js"),[])},{id:"asm",name:"Assembly",import:()=>V(()=>import("./index.es319-Dhn9LcZ4.js"),[])},{id:"astro",name:"Astro",import:()=>V(()=>import("./index.es320-BOD1ZJZT.js"),__vite__mapDeps([10,9,2,11,3,12]))},{id:"awk",name:"AWK",import:()=>V(()=>import("./index.es321-eg146-Ew.js"),[])},{id:"ballerina",name:"Ballerina",import:()=>V(()=>import("./index.es322-Du268qiB.js"),[])},{id:"bat",name:"Batch File",aliases:["batch"],import:()=>V(()=>import("./index.es323-fje9CFhw.js"),[])},{id:"beancount",name:"Beancount",import:()=>V(()=>import("./index.es324-BwXTMy5W.js"),[])},{id:"berry",name:"Berry",aliases:["be"],import:()=>V(()=>import("./index.es325-3xVqZejG.js"),[])},{id:"bibtex",name:"BibTeX",import:()=>V(()=>import("./index.es326-xW4inM5L.js"),[])},{id:"bicep",name:"Bicep",import:()=>V(()=>import("./index.es327-DHo0CJ0O.js"),[])},{id:"blade",name:"Blade",import:()=>V(()=>import("./index.es328-CVyYL2Cb.js"),__vite__mapDeps([13,1,2,3,7,8,14,9]))},{id:"bsl",name:"1C (Enterprise)",aliases:["1c"],import:()=>V(()=>import("./index.es329-C73tSnxx.js"),__vite__mapDeps([15,16]))},{id:"c",name:"C",import:()=>V(()=>import("./index.es330-C3t2pwGQ.js"),[])},{id:"cadence",name:"Cadence",aliases:["cdc"],import:()=>V(()=>import("./index.es331-DNquZEk8.js"),[])},{id:"cairo",name:"Cairo",import:()=>V(()=>import("./index.es332-pdJPCQ16.js"),__vite__mapDeps([17,18]))},{id:"clarity",name:"Clarity",import:()=>V(()=>import("./index.es333-BHOwM8T6.js"),[])},{id:"clojure",name:"Clojure",aliases:["clj"],import:()=>V(()=>import("./index.es334-DxSadP1t.js"),[])},{id:"cmake",name:"CMake",import:()=>V(()=>import("./index.es335-DbXoA79R.js"),[])},{id:"cobol",name:"COBOL",import:()=>V(()=>import("./index.es336-BW2O-pnR.js"),__vite__mapDeps([19,1,2,3,8]))},{id:"codeowners",name:"CODEOWNERS",import:()=>V(()=>import("./index.es337-Bp6g37R7.js"),[])},{id:"codeql",name:"CodeQL",aliases:["ql"],import:()=>V(()=>import("./index.es338-sacFqUAJ.js"),[])},{id:"coffee",name:"CoffeeScript",aliases:["coffeescript"],import:()=>V(()=>import("./index.es339-BaWHmQaH.js"),__vite__mapDeps([20,2]))},{id:"common-lisp",name:"Common Lisp",aliases:["lisp"],import:()=>V(()=>import("./index.es340-C7gG9l05.js"),[])},{id:"coq",name:"Coq",import:()=>V(()=>import("./index.es341-Dsg_Bt_b.js"),[])},{id:"cpp",name:"C++",aliases:["c++"],import:()=>V(()=>import("./index.es342-D2Lnssjt.js"),__vite__mapDeps([21,22,23,24,14]))},{id:"crystal",name:"Crystal",import:()=>V(()=>import("./index.es343-YbS6hTnA.js"),__vite__mapDeps([25,1,2,3,14,24,26]))},{id:"csharp",name:"C#",aliases:["c#","cs"],import:()=>V(()=>import("./index.es344-D9R-vmeu.js"),[])},{id:"css",name:"CSS",import:()=>V(()=>import("./index.es345-BPhBrDlE.js"),[])},{id:"csv",name:"CSV",import:()=>V(()=>import("./index.es346-C-TU5hQ_.js"),[])},{id:"cue",name:"CUE",import:()=>V(()=>import("./index.es347-DtFQj3wx.js"),[])},{id:"cypher",name:"Cypher",aliases:["cql"],import:()=>V(()=>import("./index.es348-m2LEI-9-.js"),[])},{id:"d",name:"D",import:()=>V(()=>import("./index.es349-BoXegm-a.js"),[])},{id:"dart",name:"Dart",import:()=>V(()=>import("./index.es350-B9wLZaAG.js"),[])},{id:"dax",name:"DAX",import:()=>V(()=>import("./index.es351-ClGRhx96.js"),[])},{id:"desktop",name:"Desktop",import:()=>V(()=>import("./index.es352-DEIpsLCJ.js"),[])},{id:"diff",name:"Diff",import:()=>V(()=>import("./index.es353-BgYniUM_.js"),[])},{id:"docker",name:"Dockerfile",aliases:["dockerfile"],import:()=>V(()=>import("./index.es354-COcR7UxN.js"),[])},{id:"dotenv",name:"dotEnv",import:()=>V(()=>import("./index.es355-BjQB5zDj.js"),[])},{id:"dream-maker",name:"Dream Maker",import:()=>V(()=>import("./index.es356-C-nORZOA.js"),[])},{id:"edge",name:"Edge",import:()=>V(()=>import("./index.es357-CoBUMGfg.js"),__vite__mapDeps([27,11,1,2,3,28]))},{id:"elixir",name:"Elixir",import:()=>V(()=>import("./index.es358-DbSm3pvF.js"),__vite__mapDeps([29,1,2,3]))},{id:"elm",name:"Elm",import:()=>V(()=>import("./index.es359-DMGMoOZB.js"),__vite__mapDeps([30,23,24]))},{id:"emacs-lisp",name:"Emacs Lisp",aliases:["elisp"],import:()=>V(()=>import("./index.es360-BX77sIaO.js"),[])},{id:"erb",name:"ERB",import:()=>V(()=>import("./index.es361-BHceIWHs.js"),__vite__mapDeps([31,1,2,3,32,33,7,8,14,34,11,35,36,21,22,23,24,26,37,38]))},{id:"erlang",name:"Erlang",aliases:["erl"],import:()=>V(()=>import("./index.es362-B-DoSBHF.js"),[])},{id:"fennel",name:"Fennel",import:()=>V(()=>import("./index.es363-bCA53EVm.js"),[])},{id:"fish",name:"Fish",import:()=>V(()=>import("./index.es364-w-ucz2PV.js"),[])},{id:"fluent",name:"Fluent",aliases:["ftl"],import:()=>V(()=>import("./index.es365-Dayu4EKP.js"),[])},{id:"fortran-fixed-form",name:"Fortran (Fixed Form)",aliases:["f","for","f77"],import:()=>V(()=>import("./index.es366-PXx-OsXN.js"),__vite__mapDeps([39,40]))},{id:"fortran-free-form",name:"Fortran (Free Form)",aliases:["f90","f95","f03","f08","f18"],import:()=>V(()=>import("./index.es367-DKXYxT9g.js"),[])},{id:"fsharp",name:"F#",aliases:["f#","fs"],import:()=>V(()=>import("./index.es368-Cr9RaTtA.js"),__vite__mapDeps([41,42]))},{id:"gdresource",name:"GDResource",import:()=>V(()=>import("./index.es369-C0mtzGRN.js"),__vite__mapDeps([43,44,45]))},{id:"gdscript",name:"GDScript",import:()=>V(()=>import("./index.es370-DfxzS6Rs.js"),[])},{id:"gdshader",name:"GDShader",import:()=>V(()=>import("./index.es371-SKMF96pI.js"),[])},{id:"genie",name:"Genie",import:()=>V(()=>import("./index.es372-ajMbGru0.js"),[])},{id:"gherkin",name:"Gherkin",import:()=>V(()=>import("./index.es373--30QC5Em.js"),[])},{id:"git-commit",name:"Git Commit Message",import:()=>V(()=>import("./index.es374-Drv5n-HJ.js"),__vite__mapDeps([46,47]))},{id:"git-rebase",name:"Git Rebase Message",import:()=>V(()=>import("./index.es375-U_De2V6q.js"),__vite__mapDeps([48,26]))},{id:"gleam",name:"Gleam",import:()=>V(()=>import("./index.es376-B430Bg39.js"),[])},{id:"glimmer-js",name:"Glimmer JS",aliases:["gjs"],import:()=>V(()=>import("./index.es377-B3MRYiit.js"),__vite__mapDeps([49,2,11,3,1]))},{id:"glimmer-ts",name:"Glimmer TS",aliases:["gts"],import:()=>V(()=>import("./index.es378-DoTPPeUr.js"),__vite__mapDeps([50,11,3,2,1]))},{id:"glsl",name:"GLSL",import:()=>V(()=>import("./index.es379-BPm5p9Tu.js"),__vite__mapDeps([23,24]))},{id:"gnuplot",name:"Gnuplot",import:()=>V(()=>import("./index.es380-CM8KxXT1.js"),[])},{id:"go",name:"Go",import:()=>V(()=>import("./index.es381-B1SYOhNW.js"),[])},{id:"graphql",name:"GraphQL",aliases:["gql"],import:()=>V(()=>import("./index.es382-DKIqkYbM.js"),__vite__mapDeps([34,2,11,35,36]))},{id:"groovy",name:"Groovy",import:()=>V(()=>import("./index.es383-DkBy-JyN.js"),[])},{id:"hack",name:"Hack",import:()=>V(()=>import("./index.es384-DXiKOUzH.js"),__vite__mapDeps([51,1,2,3,14]))},{id:"haml",name:"Ruby Haml",import:()=>V(()=>import("./index.es385-CLF2pcju.js"),__vite__mapDeps([33,2,3]))},{id:"handlebars",name:"Handlebars",aliases:["hbs"],import:()=>V(()=>import("./index.es386-Bh-sEjq4.js"),__vite__mapDeps([52,1,2,3,38]))},{id:"haskell",name:"Haskell",aliases:["hs"],import:()=>V(()=>import("./index.es387-BILxekzW.js"),[])},{id:"haxe",name:"Haxe",import:()=>V(()=>import("./index.es388-C5wWYbrZ.js"),[])},{id:"hcl",name:"HashiCorp HCL",import:()=>V(()=>import("./index.es389-HzYwdGDm.js"),[])},{id:"hjson",name:"Hjson",import:()=>V(()=>import("./index.es390-T-Tgc4AT.js"),[])},{id:"hlsl",name:"HLSL",import:()=>V(()=>import("./index.es391-ifBTmRxC.js"),[])},{id:"html",name:"HTML",import:()=>V(()=>import("./index.es392-CRHao7mg.js"),__vite__mapDeps([1,2,3]))},{id:"html-derivative",name:"HTML (Derivative)",import:()=>V(()=>import("./index.es393-Cm6sEy7_.js"),__vite__mapDeps([28,1,2,3]))},{id:"http",name:"HTTP",import:()=>V(()=>import("./index.es394-B8ZpxCSt.js"),__vite__mapDeps([53,26,9,7,8,34,2,11,35,36]))},{id:"hxml",name:"HXML",import:()=>V(()=>import("./index.es395-DkWbmmH5.js"),__vite__mapDeps([54,55]))},{id:"hy",name:"Hy",import:()=>V(()=>import("./index.es396-BMj5Y0dO.js"),[])},{id:"imba",name:"Imba",import:()=>V(()=>import("./index.es397-CKDseQYx.js"),__vite__mapDeps([56,11]))},{id:"ini",name:"INI",aliases:["properties"],import:()=>V(()=>import("./index.es398-BjABl1g7.js"),[])},{id:"java",name:"Java",import:()=>V(()=>import("./index.es399-xI-RfyKK.js"),[])},{id:"javascript",name:"JavaScript",aliases:["js"],import:()=>V(()=>import("./index.es400-ySlJ1b_l.js"),[])},{id:"jinja",name:"Jinja",import:()=>V(()=>import("./index.es401-CtFcnffO.js"),__vite__mapDeps([57,1,2,3]))},{id:"jison",name:"Jison",import:()=>V(()=>import("./index.es402-CxdH5hVg.js"),__vite__mapDeps([58,2]))},{id:"json",name:"JSON",import:()=>V(()=>import("./index.es403-BQoSv7ci.js"),[])},{id:"json5",name:"JSON5",import:()=>V(()=>import("./index.es404-w8dY5SsB.js"),[])},{id:"jsonc",name:"JSON with Comments",import:()=>V(()=>import("./index.es405-TU54ms6u.js"),[])},{id:"jsonl",name:"JSON Lines",import:()=>V(()=>import("./index.es406-DREVFZK8.js"),[])},{id:"jsonnet",name:"Jsonnet",import:()=>V(()=>import("./index.es407-BfivnA6A.js"),[])},{id:"jssm",name:"JSSM",aliases:["fsl"],import:()=>V(()=>import("./index.es408-P4WzXJd0.js"),[])},{id:"jsx",name:"JSX",import:()=>V(()=>import("./index.es409-BAng5TT0.js"),[])},{id:"julia",name:"Julia",aliases:["jl"],import:()=>V(()=>import("./index.es410-DUOnTx6Y.js"),__vite__mapDeps([59,21,22,23,24,14,18,2,60]))},{id:"kotlin",name:"Kotlin",aliases:["kt","kts"],import:()=>V(()=>import("./index.es411-B5lbUyaz.js"),[])},{id:"kusto",name:"Kusto",aliases:["kql"],import:()=>V(()=>import("./index.es412-mebxcVVE.js"),[])},{id:"latex",name:"LaTeX",import:()=>V(()=>import("./index.es413-o0g0o7a9.js"),__vite__mapDeps([61,62,60]))},{id:"lean",name:"Lean 4",aliases:["lean4"],import:()=>V(()=>import("./index.es414-XBlWyCtg.js"),[])},{id:"less",name:"Less",import:()=>V(()=>import("./index.es415-BfCpw3nA.js"),[])},{id:"liquid",name:"Liquid",import:()=>V(()=>import("./index.es416-Dy45-wq4.js"),__vite__mapDeps([63,1,2,3,9]))},{id:"log",name:"Log file",import:()=>V(()=>import("./index.es417-Cc5clBb7.js"),[])},{id:"logo",name:"Logo",import:()=>V(()=>import("./index.es418-IuBKFhSY.js"),[])},{id:"lua",name:"Lua",import:()=>V(()=>import("./index.es419-DltXKq7x.js"),__vite__mapDeps([37,24]))},{id:"luau",name:"Luau",import:()=>V(()=>import("./index.es420-Du5NY7AG.js"),[])},{id:"make",name:"Makefile",aliases:["makefile"],import:()=>V(()=>import("./index.es421-Bvotw-X0.js"),[])},{id:"markdown",name:"Markdown",aliases:["md"],import:()=>V(()=>import("./index.es422-UIAJJxZW.js"),[])},{id:"marko",name:"Marko",import:()=>V(()=>import("./index.es423-CYo8sXPV.js"),__vite__mapDeps([64,3,65,5,2]))},{id:"matlab",name:"MATLAB",import:()=>V(()=>import("./index.es424-D9-PGadD.js"),[])},{id:"mdc",name:"MDC",import:()=>V(()=>import("./index.es425-8kqvQzEa.js"),__vite__mapDeps([66,42,38,28,1,2,3]))},{id:"mdx",name:"MDX",import:()=>V(()=>import("./index.es426-sdHcTMYB.js"),[])},{id:"mermaid",name:"Mermaid",aliases:["mmd"],import:()=>V(()=>import("./index.es427-Ci6OQyBP.js"),[])},{id:"mipsasm",name:"MIPS Assembly",aliases:["mips"],import:()=>V(()=>import("./index.es428-BC5c_5Pe.js"),[])},{id:"mojo",name:"Mojo",import:()=>V(()=>import("./index.es429-Tz6hzZYG.js"),[])},{id:"move",name:"Move",import:()=>V(()=>import("./index.es430-DB_GagMm.js"),[])},{id:"narrat",name:"Narrat Language",aliases:["nar"],import:()=>V(()=>import("./index.es431-DLbgOhZU.js"),[])},{id:"nextflow",name:"Nextflow",aliases:["nf"],import:()=>V(()=>import("./index.es432-B0XVJmRM.js"),[])},{id:"nginx",name:"Nginx",import:()=>V(()=>import("./index.es433-D_41FSTK.js"),__vite__mapDeps([67,37,24]))},{id:"nim",name:"Nim",import:()=>V(()=>import("./index.es434-DeV3Y_jn.js"),__vite__mapDeps([68,24,1,2,3,7,8,23,42]))},{id:"nix",name:"Nix",import:()=>V(()=>import("./index.es435-shcSOmrb.js"),[])},{id:"nushell",name:"nushell",aliases:["nu"],import:()=>V(()=>import("./index.es436-D4Tzg5kh.js"),[])},{id:"objective-c",name:"Objective-C",aliases:["objc"],import:()=>V(()=>import("./index.es437-Deuh7S70.js"),[])},{id:"objective-cpp",name:"Objective-C++",import:()=>V(()=>import("./index.es438-BUEGK8hf.js"),[])},{id:"ocaml",name:"OCaml",import:()=>V(()=>import("./index.es439-BNioltXt.js"),[])},{id:"pascal",name:"Pascal",import:()=>V(()=>import("./index.es440-JqZropPD.js"),[])},{id:"perl",name:"Perl",import:()=>V(()=>import("./index.es441-Cj1Yw83T.js"),__vite__mapDeps([69,1,2,3,7,8,14]))},{id:"php",name:"PHP",import:()=>V(()=>import("./index.es442-BAhAeZbN.js"),__vite__mapDeps([70,1,2,3,7,8,14,9]))},{id:"plsql",name:"PL/SQL",import:()=>V(()=>import("./index.es443-LKU2TuZ1.js"),[])},{id:"po",name:"Gettext PO",aliases:["pot","potx"],import:()=>V(()=>import("./index.es444-BFLt1xDp.js"),[])},{id:"polar",name:"Polar",import:()=>V(()=>import("./index.es445-DKykz6zU.js"),[])},{id:"postcss",name:"PostCSS",import:()=>V(()=>import("./index.es446-B3ZDOciz.js"),[])},{id:"powerquery",name:"PowerQuery",import:()=>V(()=>import("./index.es447-CSHBycmS.js"),[])},{id:"powershell",name:"PowerShell",aliases:["ps","ps1"],import:()=>V(()=>import("./index.es448-BIEUsx6d.js"),[])},{id:"prisma",name:"Prisma",import:()=>V(()=>import("./index.es449-B48N-Iqd.js"),[])},{id:"prolog",name:"Prolog",import:()=>V(()=>import("./index.es450-BY-TUvya.js"),[])},{id:"proto",name:"Protocol Buffer 3",aliases:["protobuf"],import:()=>V(()=>import("./index.es451-zocC4JxJ.js"),[])},{id:"pug",name:"Pug",aliases:["jade"],import:()=>V(()=>import("./index.es452-CPGmraR2.js"),__vite__mapDeps([71,2,3,1]))},{id:"puppet",name:"Puppet",import:()=>V(()=>import("./index.es453-Cza_XSSt.js"),[])},{id:"purescript",name:"PureScript",import:()=>V(()=>import("./index.es454-Bg-kzb6g.js"),[])},{id:"python",name:"Python",aliases:["py"],import:()=>V(()=>import("./index.es455-DhUJRlN_.js"),[])},{id:"qml",name:"QML",import:()=>V(()=>import("./index.es456-BdFu7nX3.js"),__vite__mapDeps([72,2]))},{id:"qmldir",name:"QML Directory",import:()=>V(()=>import("./index.es457-C8lEn-DE.js"),[])},{id:"qss",name:"Qt Style Sheets",import:()=>V(()=>import("./index.es458-DhMKtDLN.js"),[])},{id:"r",name:"R",import:()=>V(()=>import("./index.es459-CwjWoCRV.js"),[])},{id:"racket",name:"Racket",import:()=>V(()=>import("./index.es460-CzouJOBO.js"),[])},{id:"raku",name:"Raku",aliases:["perl6"],import:()=>V(()=>import("./index.es461-B1bQXN8T.js"),[])},{id:"razor",name:"ASP.NET Razor",import:()=>V(()=>import("./index.es462-D6GNpC-z.js"),__vite__mapDeps([73,1,2,3,74]))},{id:"reg",name:"Windows Registry Script",import:()=>V(()=>import("./index.es463-5LuOXUq_.js"),[])},{id:"regexp",name:"RegExp",aliases:["regex"],import:()=>V(()=>import("./index.es464-DWJ3fJO_.js"),[])},{id:"rel",name:"Rel",import:()=>V(()=>import("./index.es465-DJlmqQ1C.js"),[])},{id:"riscv",name:"RISC-V",import:()=>V(()=>import("./index.es466-QhoSD0DR.js"),[])},{id:"rst",name:"reStructuredText",import:()=>V(()=>import("./index.es467-ClH_GnCa.js"),__vite__mapDeps([75,28,1,2,3,21,22,23,24,14,18,26,38,76,32,33,7,8,34,11,35,36,37]))},{id:"ruby",name:"Ruby",aliases:["rb"],import:()=>V(()=>import("./index.es468-Di3zYFeC.js"),__vite__mapDeps([32,1,2,3,33,7,8,14,34,11,35,36,21,22,23,24,26,37,38]))},{id:"rust",name:"Rust",aliases:["rs"],import:()=>V(()=>import("./index.es469-Be6lgOlo.js"),[])},{id:"sas",name:"SAS",import:()=>V(()=>import("./index.es470-DgLPjbVB.js"),__vite__mapDeps([77,14]))},{id:"sass",name:"Sass",import:()=>V(()=>import("./index.es471-BJ4Li9vH.js"),[])},{id:"scala",name:"Scala",import:()=>V(()=>import("./index.es472-DQVVAn-B.js"),[])},{id:"scheme",name:"Scheme",import:()=>V(()=>import("./index.es473-BJGe-b2p.js"),[])},{id:"scss",name:"SCSS",import:()=>V(()=>import("./index.es474-B824aOrb.js"),__vite__mapDeps([5,3]))},{id:"sdbl",name:"1C (Query)",aliases:["1c-query"],import:()=>V(()=>import("./index.es475-BLhTXw86.js"),[])},{id:"shaderlab",name:"ShaderLab",aliases:["shader"],import:()=>V(()=>import("./index.es476-BlPAYHhB.js"),__vite__mapDeps([78,79]))},{id:"shellscript",name:"Shell",aliases:["bash","sh","shell","zsh"],import:()=>V(()=>import("./index.es477-atvbtKCR.js"),[])},{id:"shellsession",name:"Shell Session",aliases:["console"],import:()=>V(()=>import("./index.es478-BBy72e0U.js"),__vite__mapDeps([80,26]))},{id:"smalltalk",name:"Smalltalk",import:()=>V(()=>import("./index.es479-DkLiglaE.js"),[])},{id:"solidity",name:"Solidity",import:()=>V(()=>import("./index.es480-C1w2a3ep.js"),[])},{id:"soy",name:"Closure Templates",aliases:["closure-templates"],import:()=>V(()=>import("./index.es481-Df-VYnz4.js"),__vite__mapDeps([81,1,2,3]))},{id:"sparql",name:"SPARQL",import:()=>V(()=>import("./index.es482-DNcoqtdL.js"),__vite__mapDeps([82,83]))},{id:"splunk",name:"Splunk Query Language",aliases:["spl"],import:()=>V(()=>import("./index.es483-Cf8iN4DR.js"),[])},{id:"sql",name:"SQL",import:()=>V(()=>import("./index.es484-COK4E0Yg.js"),[])},{id:"ssh-config",name:"SSH Config",import:()=>V(()=>import("./index.es485-BknIz3MU.js"),[])},{id:"stata",name:"Stata",import:()=>V(()=>import("./index.es486-D8LYNoLQ.js"),__vite__mapDeps([84,14]))},{id:"stylus",name:"Stylus",aliases:["styl"],import:()=>V(()=>import("./index.es487-BeQkCIfX.js"),[])},{id:"svelte",name:"Svelte",import:()=>V(()=>import("./index.es488-BUMxLwvA.js"),__vite__mapDeps([85,2,11,3,12]))},{id:"swift",name:"Swift",import:()=>V(()=>import("./index.es489-BSxZ-RaX.js"),[])},{id:"system-verilog",name:"SystemVerilog",import:()=>V(()=>import("./index.es490-C7L56vO4.js"),[])},{id:"systemd",name:"Systemd Units",import:()=>V(()=>import("./index.es491-CUnW07Te.js"),[])},{id:"talonscript",name:"TalonScript",aliases:["talon"],import:()=>V(()=>import("./index.es492-C1XDQQGZ.js"),[])},{id:"tasl",name:"Tasl",import:()=>V(()=>import("./index.es493-CQjiPCtT.js"),[])},{id:"tcl",name:"Tcl",import:()=>V(()=>import("./index.es494-DQ1-QYvQ.js"),[])},{id:"templ",name:"Templ",import:()=>V(()=>import("./index.es495-D-qd6FpS.js"),__vite__mapDeps([86,87,2,3]))},{id:"terraform",name:"Terraform",aliases:["tf","tfvars"],import:()=>V(()=>import("./index.es496-BbSNqyBO.js"),[])},{id:"tex",name:"TeX",import:()=>V(()=>import("./index.es497-LaARGtc9.js"),__vite__mapDeps([62,60]))},{id:"toml",name:"TOML",import:()=>V(()=>import("./index.es498-CB2ApiWb.js"),[])},{id:"ts-tags",name:"TypeScript with Tags",aliases:["lit"],import:()=>V(()=>import("./index.es499-DUJgu_Bk.js"),__vite__mapDeps([88,11,3,2,23,24,1,14,7,8]))},{id:"tsv",name:"TSV",import:()=>V(()=>import("./index.es500-B_m7g4N7.js"),[])},{id:"tsx",name:"TSX",import:()=>V(()=>import("./index.es501-B6W0miNI.js"),[])},{id:"turtle",name:"Turtle",import:()=>V(()=>import("./index.es502-BMR_PYu6.js"),[])},{id:"twig",name:"Twig",import:()=>V(()=>import("./index.es503-BJ9VRCwz.js"),__vite__mapDeps([89,3,2,5,70,1,7,8,14,9,18,32,33,34,11,35,36,21,22,23,24,26,37,38]))},{id:"typescript",name:"TypeScript",aliases:["ts"],import:()=>V(()=>import("./index.es504-Dj6nwHGl.js"),[])},{id:"typespec",name:"TypeSpec",aliases:["tsp"],import:()=>V(()=>import("./index.es505-BpWG_bgh.js"),[])},{id:"typst",name:"Typst",aliases:["typ"],import:()=>V(()=>import("./index.es506-BVUVsWT6.js"),[])},{id:"v",name:"V",import:()=>V(()=>import("./index.es507-CAQ2eGtk.js"),[])},{id:"vala",name:"Vala",import:()=>V(()=>import("./index.es508-BFOHcciG.js"),[])},{id:"vb",name:"Visual Basic",aliases:["cmd"],import:()=>V(()=>import("./index.es509-CdO5JTpU.js"),[])},{id:"verilog",name:"Verilog",import:()=>V(()=>import("./index.es510-CJaU5se_.js"),[])},{id:"vhdl",name:"VHDL",import:()=>V(()=>import("./index.es511-DYoNaHQp.js"),[])},{id:"viml",name:"Vim Script",aliases:["vim","vimscript"],import:()=>V(()=>import("./index.es512-m4uW47V2.js"),[])},{id:"vue",name:"Vue",import:()=>V(()=>import("./index.es513-DcdvkC6C.js"),__vite__mapDeps([90,1,2,3,11,9,28]))},{id:"vue-html",name:"Vue HTML",import:()=>V(()=>import("./index.es514-BR9aJ-oz.js"),__vite__mapDeps([91,90,1,2,3,11,9,28]))},{id:"vyper",name:"Vyper",aliases:["vy"],import:()=>V(()=>import("./index.es515-nyqBNV6O.js"),[])},{id:"wasm",name:"WebAssembly",import:()=>V(()=>import("./index.es516-C6j12Q_x.js"),[])},{id:"wenyan",name:"Wenyan",aliases:["文言"],import:()=>V(()=>import("./index.es517-7A4Fjokl.js"),[])},{id:"wgsl",name:"WGSL",import:()=>V(()=>import("./index.es518-CB0Krxn9.js"),[])},{id:"wikitext",name:"Wikitext",aliases:["mediawiki","wiki"],import:()=>V(()=>import("./index.es519-DCE3LsBG.js"),[])},{id:"wolfram",name:"Wolfram",aliases:["wl"],import:()=>V(()=>import("./index.es520-C3FkfJm5.js"),[])},{id:"xml",name:"XML",import:()=>V(()=>import("./index.es521-B5F1bSbk.js"),__vite__mapDeps([7,8]))},{id:"xsl",name:"XSL",import:()=>V(()=>import("./index.es522-DMB2cdTG.js"),__vite__mapDeps([92,7,8]))},{id:"yaml",name:"YAML",aliases:["yml"],import:()=>V(()=>import("./index.es523-CVw76BM1.js"),[])},{id:"zenscript",name:"ZenScript",import:()=>V(()=>import("./index.es524-HnGAYVZD.js"),[])},{id:"zig",name:"Zig",import:()=>V(()=>import("./index.es525-BVz_zdnA.js"),[])}],VG=Object.fromEntries(tN.map(e=>[e.id,e.import])),GG=Object.fromEntries(tN.flatMap(e=>e.aliases?.map(t=>[t,e.import])||[])),qG={...VG,...GG},WG=[{id:"andromeeda",displayName:"Andromeeda",type:"dark",import:()=>V(()=>import("./index.es526-C3khCPGq.js"),[])},{id:"aurora-x",displayName:"Aurora X",type:"dark",import:()=>V(()=>import("./index.es527-D-2ljcwZ.js"),[])},{id:"ayu-dark",displayName:"Ayu Dark",type:"dark",import:()=>V(()=>import("./index.es528-Cv9koXgw.js"),[])},{id:"catppuccin-frappe",displayName:"Catppuccin Frappé",type:"dark",import:()=>V(()=>import("./index.es529-CD_QflpE.js"),[])},{id:"catppuccin-latte",displayName:"Catppuccin Latte",type:"light",import:()=>V(()=>import("./index.es530-DRW-0cLl.js"),[])},{id:"catppuccin-macchiato",displayName:"Catppuccin Macchiato",type:"dark",import:()=>V(()=>import("./index.es531-C-_shW-Y.js"),[])},{id:"catppuccin-mocha",displayName:"Catppuccin Mocha",type:"dark",import:()=>V(()=>import("./index.es532-LGGdnPYs.js"),[])},{id:"dark-plus",displayName:"Dark Plus",type:"dark",import:()=>V(()=>import("./index.es533-C3mMm8J8.js"),[])},{id:"dracula",displayName:"Dracula Theme",type:"dark",import:()=>V(()=>import("./index.es534-BzJJZx-M.js"),[])},{id:"dracula-soft",displayName:"Dracula Theme Soft",type:"dark",import:()=>V(()=>import("./index.es535-BXkSAIEj.js"),[])},{id:"everforest-dark",displayName:"Everforest Dark",type:"dark",import:()=>V(()=>import("./index.es536-BgDCqdQA.js"),[])},{id:"everforest-light",displayName:"Everforest Light",type:"light",import:()=>V(()=>import("./index.es537-C8M2exoo.js"),[])},{id:"github-dark",displayName:"GitHub Dark",type:"dark",import:()=>V(()=>import("./index.es538-DHJKELXO.js"),[])},{id:"github-dark-default",displayName:"GitHub Dark Default",type:"dark",import:()=>V(()=>import("./index.es539-Cuk6v7N8.js"),[])},{id:"github-dark-dimmed",displayName:"GitHub Dark Dimmed",type:"dark",import:()=>V(()=>import("./index.es540-DH5Ifo-i.js"),[])},{id:"github-dark-high-contrast",displayName:"GitHub Dark High Contrast",type:"dark",import:()=>V(()=>import("./index.es541-E3gJ1_iC.js"),[])},{id:"github-light",displayName:"GitHub Light",type:"light",import:()=>V(()=>import("./index.es542-DAi9KRSo.js"),[])},{id:"github-light-default",displayName:"GitHub Light Default",type:"light",import:()=>V(()=>import("./index.es543-D7oLnXFd.js"),[])},{id:"github-light-high-contrast",displayName:"GitHub Light High Contrast",type:"light",import:()=>V(()=>import("./index.es544-BfjtVDDH.js"),[])},{id:"houston",displayName:"Houston",type:"dark",import:()=>V(()=>import("./index.es545-DnULxvSX.js"),[])},{id:"kanagawa-dragon",displayName:"Kanagawa Dragon",type:"dark",import:()=>V(()=>import("./index.es546-CkXjmgJE.js"),[])},{id:"kanagawa-lotus",displayName:"Kanagawa Lotus",type:"light",import:()=>V(()=>import("./index.es547-CfQXZHmo.js"),[])},{id:"kanagawa-wave",displayName:"Kanagawa Wave",type:"dark",import:()=>V(()=>import("./index.es548-DWedfzmr.js"),[])},{id:"laserwave",displayName:"LaserWave",type:"dark",import:()=>V(()=>import("./index.es549-DUszq2jm.js"),[])},{id:"light-plus",displayName:"Light Plus",type:"light",import:()=>V(()=>import("./index.es550-B7mTdjB0.js"),[])},{id:"material-theme",displayName:"Material Theme",type:"dark",import:()=>V(()=>import("./index.es551-D5KoaKCx.js"),[])},{id:"material-theme-darker",displayName:"Material Theme Darker",type:"dark",import:()=>V(()=>import("./index.es552-BfHTSMKl.js"),[])},{id:"material-theme-lighter",displayName:"Material Theme Lighter",type:"light",import:()=>V(()=>import("./index.es553-B0m2ddpp.js"),[])},{id:"material-theme-ocean",displayName:"Material Theme Ocean",type:"dark",import:()=>V(()=>import("./index.es554-CyktbL80.js"),[])},{id:"material-theme-palenight",displayName:"Material Theme Palenight",type:"dark",import:()=>V(()=>import("./index.es555-Csfq5Kiy.js"),[])},{id:"min-dark",displayName:"Min Dark",type:"dark",import:()=>V(()=>import("./index.es556-CafNBF8u.js"),[])},{id:"min-light",displayName:"Min Light",type:"light",import:()=>V(()=>import("./index.es557-CTRr51gU.js"),[])},{id:"monokai",displayName:"Monokai",type:"dark",import:()=>V(()=>import("./index.es558-D4h5O-jR.js"),[])},{id:"night-owl",displayName:"Night Owl",type:"dark",import:()=>V(()=>import("./index.es559-C39BiMTA.js"),[])},{id:"nord",displayName:"Nord",type:"dark",import:()=>V(()=>import("./index.es560-Ddv68eIx.js"),[])},{id:"one-dark-pro",displayName:"One Dark Pro",type:"dark",import:()=>V(()=>import("./index.es561-GBQ2dnAY.js"),[])},{id:"one-light",displayName:"One Light",type:"light",import:()=>V(()=>import("./index.es562-PoHY5YXO.js"),[])},{id:"plastic",displayName:"Plastic",type:"dark",import:()=>V(()=>import("./index.es563-3e1v2bzS.js"),[])},{id:"poimandres",displayName:"Poimandres",type:"dark",import:()=>V(()=>import("./index.es564-CS3Unz2-.js"),[])},{id:"red",displayName:"Red",type:"dark",import:()=>V(()=>import("./index.es565-bN70gL4F.js"),[])},{id:"rose-pine",displayName:"Rosé Pine",type:"dark",import:()=>V(()=>import("./index.es566-CmCqftbK.js"),[])},{id:"rose-pine-dawn",displayName:"Rosé Pine Dawn",type:"light",import:()=>V(()=>import("./index.es567-Ds-gbosJ.js"),[])},{id:"rose-pine-moon",displayName:"Rosé Pine Moon",type:"dark",import:()=>V(()=>import("./index.es568-CjDtw9vr.js"),[])},{id:"slack-dark",displayName:"Slack Dark",type:"dark",import:()=>V(()=>import("./index.es569-BthQWCQV.js"),[])},{id:"slack-ochin",displayName:"Slack Ochin",type:"light",import:()=>V(()=>import("./index.es570-DqwNpetd.js"),[])},{id:"snazzy-light",displayName:"Snazzy Light",type:"light",import:()=>V(()=>import("./index.es571-Bw305WKR.js"),[])},{id:"solarized-dark",displayName:"Solarized Dark",type:"dark",import:()=>V(()=>import("./index.es572-DXbdFlpD.js"),[])},{id:"solarized-light",displayName:"Solarized Light",type:"light",import:()=>V(()=>import("./index.es573-L9t79GZl.js"),[])},{id:"synthwave-84",displayName:"Synthwave '84",type:"dark",import:()=>V(()=>import("./index.es574-CbfX1IO0.js"),[])},{id:"tokyo-night",displayName:"Tokyo Night",type:"dark",import:()=>V(()=>import("./index.es575-DBQeEorK.js"),[])},{id:"vesper",displayName:"Vesper",type:"dark",import:()=>V(()=>import("./index.es576-BEBZ7ncR.js"),[])},{id:"vitesse-black",displayName:"Vitesse Black",type:"dark",import:()=>V(()=>import("./index.es577-Bkuqu6BP.js"),[])},{id:"vitesse-dark",displayName:"Vitesse Dark",type:"dark",import:()=>V(()=>import("./index.es578-D0r3Knsf.js"),[])},{id:"vitesse-light",displayName:"Vitesse Light",type:"light",import:()=>V(()=>import("./index.es579-CVO1_9PV.js"),[])}],YG=Object.fromEntries(WG.map(e=>[e.id,e.import]));let Ii=class extends Error{constructor(t){super(t),this.name="ShikiError"}},MS=class extends Error{constructor(t){super(t),this.name="ShikiError"}};function QG(){return 2147483648}function KG(){return typeof performance<"u"?performance.now():Date.now()}const XG=(e,t)=>e+(t-e%t)%t;async function ZG(e){let t,n;const r={};function a(y){n=y,r.HEAPU8=new Uint8Array(y),r.HEAPU32=new Uint32Array(y)}function o(y,b,E){r.HEAPU8.copyWithin(y,b,b+E)}function s(y){try{return t.grow(y-n.byteLength+65535>>>16),a(t.buffer),1}catch{}}function c(y){const b=r.HEAPU8.length;y=y>>>0;const E=QG();if(y>E)return!1;for(let _=1;_<=4;_*=2){let A=b*(1+.2/_);A=Math.min(A,y+100663296);const D=Math.min(E,XG(Math.max(y,A),65536));if(s(D))return!0}return!1}const u=typeof TextDecoder<"u"?new TextDecoder("utf8"):void 0;function d(y,b,E=1024){const _=b+E;let A=b;for(;y[A]&&!(A>=_);)++A;if(A-b>16&&y.buffer&&u)return u.decode(y.subarray(b,A));let D="";for(;b<A;){let w=y[b++];if(!(w&128)){D+=String.fromCharCode(w);continue}const R=y[b++]&63;if((w&224)===192){D+=String.fromCharCode((w&31)<<6|R);continue}const O=y[b++]&63;if((w&240)===224?w=(w&15)<<12|R<<6|O:w=(w&7)<<18|R<<12|O<<6|y[b++]&63,w<65536)D+=String.fromCharCode(w);else{const k=w-65536;D+=String.fromCharCode(55296|k>>10,56320|k&1023)}}return D}function p(y,b){return y?d(r.HEAPU8,y,b):""}const h={emscripten_get_now:KG,emscripten_memcpy_big:o,emscripten_resize_heap:c,fd_write:()=>0};async function g(){const y=await e({env:h,wasi_snapshot_preview1:h});t=y.memory,a(t.buffer),Object.assign(r,y),r.UTF8ToString=p}return await g(),r}var JG=Object.defineProperty,eq=(e,t,n)=>t in e?JG(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,fr=(e,t,n)=>(eq(e,typeof t!="symbol"?t+"":t,n),n);let Tr=null;function tq(e){throw new MS(e.UTF8ToString(e.getLastOnigError()))}let nN=class rN{constructor(t){fr(this,"utf16Length"),fr(this,"utf8Length"),fr(this,"utf16Value"),fr(this,"utf8Value"),fr(this,"utf16OffsetToUtf8"),fr(this,"utf8OffsetToUtf16");const n=t.length,r=rN._utf8ByteLength(t),a=r!==n,o=a?new Uint32Array(n+1):null;a&&(o[n]=r);const s=a?new Uint32Array(r+1):null;a&&(s[r]=n);const c=new Uint8Array(r);let u=0;for(let d=0;d<n;d++){const p=t.charCodeAt(d);let h=p,g=!1;if(p>=55296&&p<=56319&&d+1<n){const y=t.charCodeAt(d+1);y>=56320&&y<=57343&&(h=(p-55296<<10)+65536|y-56320,g=!0)}a&&(o[d]=u,g&&(o[d+1]=u),h<=127?s[u+0]=d:h<=2047?(s[u+0]=d,s[u+1]=d):h<=65535?(s[u+0]=d,s[u+1]=d,s[u+2]=d):(s[u+0]=d,s[u+1]=d,s[u+2]=d,s[u+3]=d)),h<=127?c[u++]=h:h<=2047?(c[u++]=192|(h&1984)>>>6,c[u++]=128|(h&63)>>>0):h<=65535?(c[u++]=224|(h&61440)>>>12,c[u++]=128|(h&4032)>>>6,c[u++]=128|(h&63)>>>0):(c[u++]=240|(h&1835008)>>>18,c[u++]=128|(h&258048)>>>12,c[u++]=128|(h&4032)>>>6,c[u++]=128|(h&63)>>>0),g&&d++}this.utf16Length=n,this.utf8Length=r,this.utf16Value=t,this.utf8Value=c,this.utf16OffsetToUtf8=o,this.utf8OffsetToUtf16=s}static _utf8ByteLength(t){let n=0;for(let r=0,a=t.length;r<a;r++){const o=t.charCodeAt(r);let s=o,c=!1;if(o>=55296&&o<=56319&&r+1<a){const u=t.charCodeAt(r+1);u>=56320&&u<=57343&&(s=(o-55296<<10)+65536|u-56320,c=!0)}s<=127?n+=1:s<=2047?n+=2:s<=65535?n+=3:n+=4,c&&r++}return n}createString(t){const n=t.omalloc(this.utf8Length);return t.HEAPU8.set(this.utf8Value,n),n}};const Fo=class{constructor(t){if(fr(this,"id",++Fo.LAST_ID),fr(this,"_onigBinding"),fr(this,"content"),fr(this,"utf16Length"),fr(this,"utf8Length"),fr(this,"utf16OffsetToUtf8"),fr(this,"utf8OffsetToUtf16"),fr(this,"ptr"),!Tr)throw new MS("Must invoke loadWasm first.");this._onigBinding=Tr,this.content=t;const n=new nN(t);this.utf16Length=n.utf16Length,this.utf8Length=n.utf8Length,this.utf16OffsetToUtf8=n.utf16OffsetToUtf8,this.utf8OffsetToUtf16=n.utf8OffsetToUtf16,this.utf8Length<1e4&&!Fo._sharedPtrInUse?(Fo._sharedPtr||(Fo._sharedPtr=Tr.omalloc(1e4)),Fo._sharedPtrInUse=!0,Tr.HEAPU8.set(n.utf8Value,Fo._sharedPtr),this.ptr=Fo._sharedPtr):this.ptr=n.createString(Tr)}convertUtf8OffsetToUtf16(t){return this.utf8OffsetToUtf16?t<0?0:t>this.utf8Length?this.utf16Length:this.utf8OffsetToUtf16[t]:t}convertUtf16OffsetToUtf8(t){return this.utf16OffsetToUtf8?t<0?0:t>this.utf16Length?this.utf8Length:this.utf16OffsetToUtf8[t]:t}dispose(){this.ptr===Fo._sharedPtr?Fo._sharedPtrInUse=!1:this._onigBinding.ofree(this.ptr)}};let Op=Fo;fr(Op,"LAST_ID",0);fr(Op,"_sharedPtr",0);fr(Op,"_sharedPtrInUse",!1);let nq=class{constructor(t){if(fr(this,"_onigBinding"),fr(this,"_ptr"),!Tr)throw new MS("Must invoke loadWasm first.");const n=[],r=[];for(let c=0,u=t.length;c<u;c++){const d=new nN(t[c]);n[c]=d.createString(Tr),r[c]=d.utf8Length}const a=Tr.omalloc(4*t.length);Tr.HEAPU32.set(n,a/4);const o=Tr.omalloc(4*t.length);Tr.HEAPU32.set(r,o/4);const s=Tr.createOnigScanner(a,o,t.length);for(let c=0,u=t.length;c<u;c++)Tr.ofree(n[c]);Tr.ofree(o),Tr.ofree(a),s===0&&tq(Tr),this._onigBinding=Tr,this._ptr=s}dispose(){this._onigBinding.freeOnigScanner(this._ptr)}findNextMatchSync(t,n,r){let a=0;if(typeof r=="number"&&(a=r),typeof t=="string"){t=new Op(t);const o=this._findNextMatchSync(t,n,!1,a);return t.dispose(),o}return this._findNextMatchSync(t,n,!1,a)}_findNextMatchSync(t,n,r,a){const o=this._onigBinding,s=o.findNextOnigScannerMatch(this._ptr,t.id,t.ptr,t.utf8Length,t.convertUtf16OffsetToUtf8(n),a);if(s===0)return null;const c=o.HEAPU32;let u=s/4;const d=c[u++],p=c[u++],h=[];for(let g=0;g<p;g++){const y=t.convertUtf8OffsetToUtf16(c[u++]),b=t.convertUtf8OffsetToUtf16(c[u++]);h[g]={start:y,end:b,length:b-y}}return{index:d,captureIndices:h}}};function rq(e){return typeof e.instantiator=="function"}function aq(e){return typeof e.default=="function"}function oq(e){return typeof e.data<"u"}function iq(e){return typeof Response<"u"&&e instanceof Response}function sq(e){return typeof ArrayBuffer<"u"&&(e instanceof ArrayBuffer||ArrayBuffer.isView(e))||typeof Buffer<"u"&&Buffer.isBuffer?.(e)||typeof SharedArrayBuffer<"u"&&e instanceof SharedArrayBuffer||typeof Uint32Array<"u"&&e instanceof Uint32Array}let vm;function lq(e){if(vm)return vm;async function t(){Tr=await ZG(async n=>{let r=e;return r=await r,typeof r=="function"&&(r=await r(n)),typeof r=="function"&&(r=await r(n)),rq(r)?r=await r.instantiator(n):aq(r)?r=await r.default(n):(oq(r)&&(r=r.data),iq(r)?typeof WebAssembly.instantiateStreaming=="function"?r=await cq(r)(n):r=await uq(r)(n):sq(r)?r=await Gv(r)(n):r instanceof WebAssembly.Module?r=await Gv(r)(n):"default"in r&&r.default instanceof WebAssembly.Module&&(r=await Gv(r.default)(n))),"instance"in r&&(r=r.instance),"exports"in r&&(r=r.exports),r})}return vm=t(),vm}function Gv(e){return t=>WebAssembly.instantiate(e,t)}function cq(e){return t=>WebAssembly.instantiateStreaming(e,t)}function uq(e){return async t=>{const n=await e.arrayBuffer();return WebAssembly.instantiate(n,t)}}let dq;function fq(){return dq}async function aN(e){return e&&await lq(e),{createScanner(t){return new nq(t.map(n=>typeof n=="string"?n:n.source))},createString(t){return new Op(t)}}}function pq(e){return $S(e)}function $S(e){return Array.isArray(e)?hq(e):e instanceof RegExp?e:typeof e=="object"?mq(e):e}function hq(e){let t=[];for(let n=0,r=e.length;n<r;n++)t[n]=$S(e[n]);return t}function mq(e){let t={};for(let n in e)t[n]=$S(e[n]);return t}function oN(e,...t){return t.forEach(n=>{for(let r in n)e[r]=n[r]}),e}function iN(e){const t=~e.lastIndexOf("/")||~e.lastIndexOf("\\");return t===0?e:~t===e.length-1?iN(e.substring(0,e.length-1)):e.substr(~t+1)}var qv=/\$(\d+)|\${(\d+):\/(downcase|upcase)}/g,bm=class{static hasCaptures(t){return t===null?!1:(qv.lastIndex=0,qv.test(t))}static replaceCaptures(t,n,r){return t.replace(qv,(a,o,s,c)=>{let u=r[parseInt(o||s,10)];if(u){let d=n.substring(u.start,u.end);for(;d[0]===".";)d=d.substring(1);switch(c){case"downcase":return d.toLowerCase();case"upcase":return d.toUpperCase();default:return d}}else return a})}};function sN(e,t){return e<t?-1:e>t?1:0}function lN(e,t){if(e===null&&t===null)return 0;if(!e)return-1;if(!t)return 1;let n=e.length,r=t.length;if(n===r){for(let a=0;a<n;a++){let o=sN(e[a],t[a]);if(o!==0)return o}return 0}return n-r}function ID(e){return!!(/^#[0-9a-f]{6}$/i.test(e)||/^#[0-9a-f]{8}$/i.test(e)||/^#[0-9a-f]{3}$/i.test(e)||/^#[0-9a-f]{4}$/i.test(e))}function cN(e){return e.replace(/[\-\\\{\}\*\+\?\|\^\$\.\,\[\]\(\)\#\s]/g,"\\$&")}var uN=class{constructor(t){this.fn=t}cache=new Map;get(t){if(this.cache.has(t))return this.cache.get(t);const n=this.fn(t);return this.cache.set(t,n),n}},Cg=class{constructor(t,n,r){this._colorMap=t,this._defaults=n,this._root=r}static createFromRawTheme(t,n){return this.createFromParsedTheme(vq(t),n)}static createFromParsedTheme(t,n){return Eq(t,n)}_cachedMatchRoot=new uN(t=>this._root.match(t));getColorMap(){return this._colorMap.getColorMap()}getDefaults(){return this._defaults}match(t){if(t===null)return this._defaults;const n=t.scopeName,r=this._cachedMatchRoot.get(n).find(a=>gq(t.parent,a.parentScopes));return r?new dN(r.fontStyle,r.foreground,r.background):null}},Wv=class qm{constructor(t,n){this.parent=t,this.scopeName=n}static push(t,n){for(const r of n)t=new qm(t,r);return t}static from(...t){let n=null;for(let r=0;r<t.length;r++)n=new qm(n,t[r]);return n}push(t){return new qm(this,t)}getSegments(){let t=this;const n=[];for(;t;)n.push(t.scopeName),t=t.parent;return n.reverse(),n}toString(){return this.getSegments().join(" ")}extends(t){return this===t?!0:this.parent===null?!1:this.parent.extends(t)}getExtensionIfDefined(t){const n=[];let r=this;for(;r&&r!==t;)n.push(r.scopeName),r=r.parent;return r===t?n.reverse():void 0}};function gq(e,t){if(t.length===0)return!0;for(let n=0;n<t.length;n++){let r=t[n],a=!1;if(r===">"){if(n===t.length-1)return!1;r=t[++n],a=!0}for(;e&&!yq(e.scopeName,r);){if(a)return!1;e=e.parent}if(!e)return!1;e=e.parent}return!0}function yq(e,t){return t===e||e.startsWith(t)&&e[t.length]==="."}var dN=class{constructor(t,n,r){this.fontStyle=t,this.foregroundId=n,this.backgroundId=r}};function vq(e){if(!e)return[];if(!e.settings||!Array.isArray(e.settings))return[];let t=e.settings,n=[],r=0;for(let a=0,o=t.length;a<o;a++){let s=t[a];if(!s.settings)continue;let c;if(typeof s.scope=="string"){let h=s.scope;h=h.replace(/^[,]+/,""),h=h.replace(/[,]+$/,""),c=h.split(",")}else Array.isArray(s.scope)?c=s.scope:c=[""];let u=-1;if(typeof s.settings.fontStyle=="string"){u=0;let h=s.settings.fontStyle.split(" ");for(let g=0,y=h.length;g<y;g++)switch(h[g]){case"italic":u=u|1;break;case"bold":u=u|2;break;case"underline":u=u|4;break;case"strikethrough":u=u|8;break}}let d=null;typeof s.settings.foreground=="string"&&ID(s.settings.foreground)&&(d=s.settings.foreground);let p=null;typeof s.settings.background=="string"&&ID(s.settings.background)&&(p=s.settings.background);for(let h=0,g=c.length;h<g;h++){let y=c[h].trim().split(" "),b=y[y.length-1],E=null;y.length>1&&(E=y.slice(0,y.length-1),E.reverse()),n[r++]=new bq(b,E,a,u,d,p)}}return n}var bq=class{constructor(t,n,r,a,o,s){this.scope=t,this.parentScopes=n,this.index=r,this.fontStyle=a,this.foreground=o,this.background=s}},Ri=(e=>(e[e.NotSet=-1]="NotSet",e[e.None=0]="None",e[e.Italic=1]="Italic",e[e.Bold=2]="Bold",e[e.Underline=4]="Underline",e[e.Strikethrough=8]="Strikethrough",e))(Ri||{});function Eq(e,t){e.sort((u,d)=>{let p=sN(u.scope,d.scope);return p!==0||(p=lN(u.parentScopes,d.parentScopes),p!==0)?p:u.index-d.index});let n=0,r="#000000",a="#ffffff";for(;e.length>=1&&e[0].scope==="";){let u=e.shift();u.fontStyle!==-1&&(n=u.fontStyle),u.foreground!==null&&(r=u.foreground),u.background!==null&&(a=u.background)}let o=new Tq(t),s=new dN(n,o.getId(r),o.getId(a)),c=new _q(new AE(0,null,-1,0,0),[]);for(let u=0,d=e.length;u<d;u++){let p=e[u];c.insert(0,p.scope,p.parentScopes,p.fontStyle,o.getId(p.foreground),o.getId(p.background))}return new Cg(o,s,c)}var Tq=class{_isFrozen;_lastColorId;_id2color;_color2id;constructor(t){if(this._lastColorId=0,this._id2color=[],this._color2id=Object.create(null),Array.isArray(t)){this._isFrozen=!0;for(let n=0,r=t.length;n<r;n++)this._color2id[t[n]]=n,this._id2color[n]=t[n]}else this._isFrozen=!1}getId(t){if(t===null)return 0;t=t.toUpperCase();let n=this._color2id[t];if(n)return n;if(this._isFrozen)throw new Error(`Missing color in color map - ${t}`);return n=++this._lastColorId,this._color2id[t]=n,this._id2color[n]=t,n}getColorMap(){return this._id2color.slice(0)}},Sq=Object.freeze([]),AE=class fN{scopeDepth;parentScopes;fontStyle;foreground;background;constructor(t,n,r,a,o){this.scopeDepth=t,this.parentScopes=n||Sq,this.fontStyle=r,this.foreground=a,this.background=o}clone(){return new fN(this.scopeDepth,this.parentScopes,this.fontStyle,this.foreground,this.background)}static cloneArr(t){let n=[];for(let r=0,a=t.length;r<a;r++)n[r]=t[r].clone();return n}acceptOverwrite(t,n,r,a){this.scopeDepth>t?console.log("how did this happen?"):this.scopeDepth=t,n!==-1&&(this.fontStyle=n),r!==0&&(this.foreground=r),a!==0&&(this.background=a)}},_q=class xE{constructor(t,n=[],r={}){this._mainRule=t,this._children=r,this._rulesWithParentScopes=n}_rulesWithParentScopes;static _cmpBySpecificity(t,n){if(t.scopeDepth!==n.scopeDepth)return n.scopeDepth-t.scopeDepth;let r=0,a=0;for(;t.parentScopes[r]===">"&&r++,n.parentScopes[a]===">"&&a++,!(r>=t.parentScopes.length||a>=n.parentScopes.length);){const o=n.parentScopes[a].length-t.parentScopes[r].length;if(o!==0)return o;r++,a++}return n.parentScopes.length-t.parentScopes.length}match(t){if(t!==""){let r=t.indexOf("."),a,o;if(r===-1?(a=t,o=""):(a=t.substring(0,r),o=t.substring(r+1)),this._children.hasOwnProperty(a))return this._children[a].match(o)}const n=this._rulesWithParentScopes.concat(this._mainRule);return n.sort(xE._cmpBySpecificity),n}insert(t,n,r,a,o,s){if(n===""){this._doInsertHere(t,r,a,o,s);return}let c=n.indexOf("."),u,d;c===-1?(u=n,d=""):(u=n.substring(0,c),d=n.substring(c+1));let p;this._children.hasOwnProperty(u)?p=this._children[u]:(p=new xE(this._mainRule.clone(),AE.cloneArr(this._rulesWithParentScopes)),this._children[u]=p),p.insert(t+1,d,r,a,o,s)}_doInsertHere(t,n,r,a,o){if(n===null){this._mainRule.acceptOverwrite(t,r,a,o);return}for(let s=0,c=this._rulesWithParentScopes.length;s<c;s++){let u=this._rulesWithParentScopes[s];if(lN(u.parentScopes,n)===0){u.acceptOverwrite(t,r,a,o);return}}r===-1&&(r=this._mainRule.fontStyle),a===0&&(a=this._mainRule.foreground),o===0&&(o=this._mainRule.background),this._rulesWithParentScopes.push(new AE(t,n,r,a,o))}},fu=class Ya{static toBinaryStr(t){return t.toString(2).padStart(32,"0")}static print(t){const n=Ya.getLanguageId(t),r=Ya.getTokenType(t),a=Ya.getFontStyle(t),o=Ya.getForeground(t),s=Ya.getBackground(t);console.log({languageId:n,tokenType:r,fontStyle:a,foreground:o,background:s})}static getLanguageId(t){return(t&255)>>>0}static getTokenType(t){return(t&768)>>>8}static containsBalancedBrackets(t){return(t&1024)!==0}static getFontStyle(t){return(t&30720)>>>11}static getForeground(t){return(t&16744448)>>>15}static getBackground(t){return(t&4278190080)>>>24}static set(t,n,r,a,o,s,c){let u=Ya.getLanguageId(t),d=Ya.getTokenType(t),p=Ya.containsBalancedBrackets(t)?1:0,h=Ya.getFontStyle(t),g=Ya.getForeground(t),y=Ya.getBackground(t);return n!==0&&(u=n),r!==8&&(d=r),a!==null&&(p=a?1:0),o!==-1&&(h=o),s!==0&&(g=s),c!==0&&(y=c),(u<<0|d<<8|p<<10|h<<11|g<<15|y<<24)>>>0}};function Ag(e,t){const n=[],r=Cq(e);let a=r.next();for(;a!==null;){let u=0;if(a.length===2&&a.charAt(1)===":"){switch(a.charAt(0)){case"R":u=1;break;case"L":u=-1;break;default:console.log(`Unknown priority ${a} in scope selector`)}a=r.next()}let d=s();if(n.push({matcher:d,priority:u}),a!==",")break;a=r.next()}return n;function o(){if(a==="-"){a=r.next();const u=o();return d=>!!u&&!u(d)}if(a==="("){a=r.next();const u=c();return a===")"&&(a=r.next()),u}if(ND(a)){const u=[];do u.push(a),a=r.next();while(ND(a));return d=>t(u,d)}return null}function s(){const u=[];let d=o();for(;d;)u.push(d),d=o();return p=>u.every(h=>h(p))}function c(){const u=[];let d=s();for(;d&&(u.push(d),a==="|"||a===",");){do a=r.next();while(a==="|"||a===",");d=s()}return p=>u.some(h=>h(p))}}function ND(e){return!!e&&!!e.match(/[\w\.:]+/)}function Cq(e){let t=/([LR]:|[\w\.:][\w\.:\-]*|[\,\|\-\(\)])/g,n=t.exec(e);return{next:()=>{if(!n)return null;const r=n[0];return n=t.exec(e),r}}}function pN(e){typeof e.dispose=="function"&&e.dispose()}var Kf=class{constructor(t){this.scopeName=t}toKey(){return this.scopeName}},Aq=class{constructor(t,n){this.scopeName=t,this.ruleName=n}toKey(){return`${this.scopeName}#${this.ruleName}`}},xq=class{_references=[];_seenReferenceKeys=new Set;get references(){return this._references}visitedRule=new Set;add(t){const n=t.toKey();this._seenReferenceKeys.has(n)||(this._seenReferenceKeys.add(n),this._references.push(t))}},wq=class{constructor(t,n){this.repo=t,this.initialScopeName=n,this.seenFullScopeRequests.add(this.initialScopeName),this.Q=[new Kf(this.initialScopeName)]}seenFullScopeRequests=new Set;seenPartialScopeRequests=new Set;Q;processQueue(){const t=this.Q;this.Q=[];const n=new xq;for(const r of t)Dq(r,this.initialScopeName,this.repo,n);for(const r of n.references)if(r instanceof Kf){if(this.seenFullScopeRequests.has(r.scopeName))continue;this.seenFullScopeRequests.add(r.scopeName),this.Q.push(r)}else{if(this.seenFullScopeRequests.has(r.scopeName)||this.seenPartialScopeRequests.has(r.toKey()))continue;this.seenPartialScopeRequests.add(r.toKey()),this.Q.push(r)}}};function Dq(e,t,n,r){const a=n.lookup(e.scopeName);if(!a){if(e.scopeName===t)throw new Error(`No grammar provided for <${t}>`);return}const o=n.lookup(t);e instanceof Kf?Wm({baseGrammar:o,selfGrammar:a},r):wE(e.ruleName,{baseGrammar:o,selfGrammar:a,repository:a.repository},r);const s=n.injections(e.scopeName);if(s)for(const c of s)r.add(new Kf(c))}function wE(e,t,n){if(t.repository&&t.repository[e]){const r=t.repository[e];xg([r],t,n)}}function Wm(e,t){e.selfGrammar.patterns&&Array.isArray(e.selfGrammar.patterns)&&xg(e.selfGrammar.patterns,{...e,repository:e.selfGrammar.repository},t),e.selfGrammar.injections&&xg(Object.values(e.selfGrammar.injections),{...e,repository:e.selfGrammar.repository},t)}function xg(e,t,n){for(const r of e){if(n.visitedRule.has(r))continue;n.visitedRule.add(r);const a=r.repository?oN({},t.repository,r.repository):t.repository;Array.isArray(r.patterns)&&xg(r.patterns,{...t,repository:a},n);const o=r.include;if(!o)continue;const s=hN(o);switch(s.kind){case 0:Wm({...t,selfGrammar:t.baseGrammar},n);break;case 1:Wm(t,n);break;case 2:wE(s.ruleName,{...t,repository:a},n);break;case 3:case 4:const c=s.scopeName===t.selfGrammar.scopeName?t.selfGrammar:s.scopeName===t.baseGrammar.scopeName?t.baseGrammar:void 0;if(c){const u={baseGrammar:t.baseGrammar,selfGrammar:c,repository:a};s.kind===4?wE(s.ruleName,u,n):Wm(u,n)}else s.kind===4?n.add(new Aq(s.scopeName,s.ruleName)):n.add(new Kf(s.scopeName));break}}}var kq=class{kind=0},Rq=class{kind=1},Oq=class{constructor(t){this.ruleName=t}kind=2},Iq=class{constructor(t){this.scopeName=t}kind=3},Nq=class{constructor(t,n){this.scopeName=t,this.ruleName=n}kind=4};function hN(e){if(e==="$base")return new kq;if(e==="$self")return new Rq;const t=e.indexOf("#");if(t===-1)return new Iq(e);if(t===0)return new Oq(e.substring(1));{const n=e.substring(0,t),r=e.substring(t+1);return new Nq(n,r)}}var Lq=/\\(\d+)/,LD=/\\(\d+)/g,Pq=-1,mN=-2,Ip=class{$location;id;_nameIsCapturing;_name;_contentNameIsCapturing;_contentName;constructor(t,n,r,a){this.$location=t,this.id=n,this._name=r||null,this._nameIsCapturing=bm.hasCaptures(this._name),this._contentName=a||null,this._contentNameIsCapturing=bm.hasCaptures(this._contentName)}get debugName(){const t=this.$location?`${iN(this.$location.filename)}:${this.$location.line}`:"unknown";return`${this.constructor.name}#${this.id} @ ${t}`}getName(t,n){return!this._nameIsCapturing||this._name===null||t===null||n===null?this._name:bm.replaceCaptures(this._name,t,n)}getContentName(t,n){return!this._contentNameIsCapturing||this._contentName===null?this._contentName:bm.replaceCaptures(this._contentName,t,n)}},Mq=class extends Ip{retokenizeCapturedWithRuleId;constructor(t,n,r,a,o){super(t,n,r,a),this.retokenizeCapturedWithRuleId=o}dispose(){}collectPatterns(t,n){throw new Error("Not supported!")}compile(t,n){throw new Error("Not supported!")}compileAG(t,n,r,a){throw new Error("Not supported!")}},$q=class extends Ip{_match;captures;_cachedCompiledPatterns;constructor(t,n,r,a,o){super(t,n,r,null),this._match=new Xf(a,this.id),this.captures=o,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null)}get debugMatchRegExp(){return`${this._match.source}`}collectPatterns(t,n){n.push(this._match)}compile(t,n){return this._getCachedCompiledPatterns(t).compile(t)}compileAG(t,n,r,a){return this._getCachedCompiledPatterns(t).compileAG(t,r,a)}_getCachedCompiledPatterns(t){return this._cachedCompiledPatterns||(this._cachedCompiledPatterns=new Zf,this.collectPatterns(t,this._cachedCompiledPatterns)),this._cachedCompiledPatterns}},PD=class extends Ip{hasMissingPatterns;patterns;_cachedCompiledPatterns;constructor(t,n,r,a,o){super(t,n,r,a),this.patterns=o.patterns,this.hasMissingPatterns=o.hasMissingPatterns,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null)}collectPatterns(t,n){for(const r of this.patterns)t.getRule(r).collectPatterns(t,n)}compile(t,n){return this._getCachedCompiledPatterns(t).compile(t)}compileAG(t,n,r,a){return this._getCachedCompiledPatterns(t).compileAG(t,r,a)}_getCachedCompiledPatterns(t){return this._cachedCompiledPatterns||(this._cachedCompiledPatterns=new Zf,this.collectPatterns(t,this._cachedCompiledPatterns)),this._cachedCompiledPatterns}},DE=class extends Ip{_begin;beginCaptures;_end;endHasBackReferences;endCaptures;applyEndPatternLast;hasMissingPatterns;patterns;_cachedCompiledPatterns;constructor(t,n,r,a,o,s,c,u,d,p){super(t,n,r,a),this._begin=new Xf(o,this.id),this.beginCaptures=s,this._end=new Xf(c||"￿",-1),this.endHasBackReferences=this._end.hasBackReferences,this.endCaptures=u,this.applyEndPatternLast=d||!1,this.patterns=p.patterns,this.hasMissingPatterns=p.hasMissingPatterns,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null)}get debugBeginRegExp(){return`${this._begin.source}`}get debugEndRegExp(){return`${this._end.source}`}getEndWithResolvedBackReferences(t,n){return this._end.resolveBackReferences(t,n)}collectPatterns(t,n){n.push(this._begin)}compile(t,n){return this._getCachedCompiledPatterns(t,n).compile(t)}compileAG(t,n,r,a){return this._getCachedCompiledPatterns(t,n).compileAG(t,r,a)}_getCachedCompiledPatterns(t,n){if(!this._cachedCompiledPatterns){this._cachedCompiledPatterns=new Zf;for(const r of this.patterns)t.getRule(r).collectPatterns(t,this._cachedCompiledPatterns);this.applyEndPatternLast?this._cachedCompiledPatterns.push(this._end.hasBackReferences?this._end.clone():this._end):this._cachedCompiledPatterns.unshift(this._end.hasBackReferences?this._end.clone():this._end)}return this._end.hasBackReferences&&(this.applyEndPatternLast?this._cachedCompiledPatterns.setSource(this._cachedCompiledPatterns.length()-1,n):this._cachedCompiledPatterns.setSource(0,n)),this._cachedCompiledPatterns}},wg=class extends Ip{_begin;beginCaptures;whileCaptures;_while;whileHasBackReferences;hasMissingPatterns;patterns;_cachedCompiledPatterns;_cachedCompiledWhilePatterns;constructor(t,n,r,a,o,s,c,u,d){super(t,n,r,a),this._begin=new Xf(o,this.id),this.beginCaptures=s,this.whileCaptures=u,this._while=new Xf(c,mN),this.whileHasBackReferences=this._while.hasBackReferences,this.patterns=d.patterns,this.hasMissingPatterns=d.hasMissingPatterns,this._cachedCompiledPatterns=null,this._cachedCompiledWhilePatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null),this._cachedCompiledWhilePatterns&&(this._cachedCompiledWhilePatterns.dispose(),this._cachedCompiledWhilePatterns=null)}get debugBeginRegExp(){return`${this._begin.source}`}get debugWhileRegExp(){return`${this._while.source}`}getWhileWithResolvedBackReferences(t,n){return this._while.resolveBackReferences(t,n)}collectPatterns(t,n){n.push(this._begin)}compile(t,n){return this._getCachedCompiledPatterns(t).compile(t)}compileAG(t,n,r,a){return this._getCachedCompiledPatterns(t).compileAG(t,r,a)}_getCachedCompiledPatterns(t){if(!this._cachedCompiledPatterns){this._cachedCompiledPatterns=new Zf;for(const n of this.patterns)t.getRule(n).collectPatterns(t,this._cachedCompiledPatterns)}return this._cachedCompiledPatterns}compileWhile(t,n){return this._getCachedCompiledWhilePatterns(t,n).compile(t)}compileWhileAG(t,n,r,a){return this._getCachedCompiledWhilePatterns(t,n).compileAG(t,r,a)}_getCachedCompiledWhilePatterns(t,n){return this._cachedCompiledWhilePatterns||(this._cachedCompiledWhilePatterns=new Zf,this._cachedCompiledWhilePatterns.push(this._while.hasBackReferences?this._while.clone():this._while)),this._while.hasBackReferences&&this._cachedCompiledWhilePatterns.setSource(0,n||"￿"),this._cachedCompiledWhilePatterns}},gN=class Ir{static createCaptureRule(t,n,r,a,o){return t.registerRule(s=>new Mq(n,s,r,a,o))}static getCompiledRuleId(t,n,r){return t.id||n.registerRule(a=>{if(t.id=a,t.match)return new $q(t.$vscodeTextmateLocation,t.id,t.name,t.match,Ir._compileCaptures(t.captures,n,r));if(typeof t.begin>"u"){t.repository&&(r=oN({},r,t.repository));let o=t.patterns;return typeof o>"u"&&t.include&&(o=[{include:t.include}]),new PD(t.$vscodeTextmateLocation,t.id,t.name,t.contentName,Ir._compilePatterns(o,n,r))}return t.while?new wg(t.$vscodeTextmateLocation,t.id,t.name,t.contentName,t.begin,Ir._compileCaptures(t.beginCaptures||t.captures,n,r),t.while,Ir._compileCaptures(t.whileCaptures||t.captures,n,r),Ir._compilePatterns(t.patterns,n,r)):new DE(t.$vscodeTextmateLocation,t.id,t.name,t.contentName,t.begin,Ir._compileCaptures(t.beginCaptures||t.captures,n,r),t.end,Ir._compileCaptures(t.endCaptures||t.captures,n,r),t.applyEndPatternLast,Ir._compilePatterns(t.patterns,n,r))}),t.id}static _compileCaptures(t,n,r){let a=[];if(t){let o=0;for(const s in t){if(s==="$vscodeTextmateLocation")continue;const c=parseInt(s,10);c>o&&(o=c)}for(let s=0;s<=o;s++)a[s]=null;for(const s in t){if(s==="$vscodeTextmateLocation")continue;const c=parseInt(s,10);let u=0;t[s].patterns&&(u=Ir.getCompiledRuleId(t[s],n,r)),a[c]=Ir.createCaptureRule(n,t[s].$vscodeTextmateLocation,t[s].name,t[s].contentName,u)}}return a}static _compilePatterns(t,n,r){let a=[];if(t)for(let o=0,s=t.length;o<s;o++){const c=t[o];let u=-1;if(c.include){const d=hN(c.include);switch(d.kind){case 0:case 1:u=Ir.getCompiledRuleId(r[c.include],n,r);break;case 2:let p=r[d.ruleName];p&&(u=Ir.getCompiledRuleId(p,n,r));break;case 3:case 4:const h=d.scopeName,g=d.kind===4?d.ruleName:null,y=n.getExternalGrammar(h,r);if(y)if(g){let b=y.repository[g];b&&(u=Ir.getCompiledRuleId(b,n,y.repository))}else u=Ir.getCompiledRuleId(y.repository.$self,n,y.repository);break}}else u=Ir.getCompiledRuleId(c,n,r);if(u!==-1){const d=n.getRule(u);let p=!1;if((d instanceof PD||d instanceof DE||d instanceof wg)&&d.hasMissingPatterns&&d.patterns.length===0&&(p=!0),p)continue;a.push(u)}}return{patterns:a,hasMissingPatterns:(t?t.length:0)!==a.length}}},Xf=class yN{source;ruleId;hasAnchor;hasBackReferences;_anchorCache;constructor(t,n){if(t&&typeof t=="string"){const r=t.length;let a=0,o=[],s=!1;for(let c=0;c<r;c++)if(t.charAt(c)==="\\"&&c+1<r){const u=t.charAt(c+1);u==="z"?(o.push(t.substring(a,c)),o.push("$(?!\\n)(?<!\\n)"),a=c+2):(u==="A"||u==="G")&&(s=!0),c++}this.hasAnchor=s,a===0?this.source=t:(o.push(t.substring(a,r)),this.source=o.join(""))}else this.hasAnchor=!1,this.source=t;this.hasAnchor?this._anchorCache=this._buildAnchorCache():this._anchorCache=null,this.ruleId=n,typeof this.source=="string"?this.hasBackReferences=Lq.test(this.source):this.hasBackReferences=!1}clone(){return new yN(this.source,this.ruleId)}setSource(t){this.source!==t&&(this.source=t,this.hasAnchor&&(this._anchorCache=this._buildAnchorCache()))}resolveBackReferences(t,n){if(typeof this.source!="string")throw new Error("This method should only be called if the source is a string");let r=n.map(a=>t.substring(a.start,a.end));return LD.lastIndex=0,this.source.replace(LD,(a,o)=>cN(r[parseInt(o,10)]||""))}_buildAnchorCache(){if(typeof this.source!="string")throw new Error("This method should only be called if the source is a string");let t=[],n=[],r=[],a=[],o,s,c,u;for(o=0,s=this.source.length;o<s;o++)c=this.source.charAt(o),t[o]=c,n[o]=c,r[o]=c,a[o]=c,c==="\\"&&o+1<s&&(u=this.source.charAt(o+1),u==="A"?(t[o+1]="￿",n[o+1]="￿",r[o+1]="A",a[o+1]="A"):u==="G"?(t[o+1]="￿",n[o+1]="G",r[o+1]="￿",a[o+1]="G"):(t[o+1]=u,n[o+1]=u,r[o+1]=u,a[o+1]=u),o++);return{A0_G0:t.join(""),A0_G1:n.join(""),A1_G0:r.join(""),A1_G1:a.join("")}}resolveAnchors(t,n){return!this.hasAnchor||!this._anchorCache||typeof this.source!="string"?this.source:t?n?this._anchorCache.A1_G1:this._anchorCache.A1_G0:n?this._anchorCache.A0_G1:this._anchorCache.A0_G0}},Zf=class{_items;_hasAnchors;_cached;_anchorCache;constructor(){this._items=[],this._hasAnchors=!1,this._cached=null,this._anchorCache={A0_G0:null,A0_G1:null,A1_G0:null,A1_G1:null}}dispose(){this._disposeCaches()}_disposeCaches(){this._cached&&(this._cached.dispose(),this._cached=null),this._anchorCache.A0_G0&&(this._anchorCache.A0_G0.dispose(),this._anchorCache.A0_G0=null),this._anchorCache.A0_G1&&(this._anchorCache.A0_G1.dispose(),this._anchorCache.A0_G1=null),this._anchorCache.A1_G0&&(this._anchorCache.A1_G0.dispose(),this._anchorCache.A1_G0=null),this._anchorCache.A1_G1&&(this._anchorCache.A1_G1.dispose(),this._anchorCache.A1_G1=null)}push(t){this._items.push(t),this._hasAnchors=this._hasAnchors||t.hasAnchor}unshift(t){this._items.unshift(t),this._hasAnchors=this._hasAnchors||t.hasAnchor}length(){return this._items.length}setSource(t,n){this._items[t].source!==n&&(this._disposeCaches(),this._items[t].setSource(n))}compile(t){if(!this._cached){let n=this._items.map(r=>r.source);this._cached=new MD(t,n,this._items.map(r=>r.ruleId))}return this._cached}compileAG(t,n,r){return this._hasAnchors?n?r?(this._anchorCache.A1_G1||(this._anchorCache.A1_G1=this._resolveAnchors(t,n,r)),this._anchorCache.A1_G1):(this._anchorCache.A1_G0||(this._anchorCache.A1_G0=this._resolveAnchors(t,n,r)),this._anchorCache.A1_G0):r?(this._anchorCache.A0_G1||(this._anchorCache.A0_G1=this._resolveAnchors(t,n,r)),this._anchorCache.A0_G1):(this._anchorCache.A0_G0||(this._anchorCache.A0_G0=this._resolveAnchors(t,n,r)),this._anchorCache.A0_G0):this.compile(t)}_resolveAnchors(t,n,r){let a=this._items.map(o=>o.resolveAnchors(n,r));return new MD(t,a,this._items.map(o=>o.ruleId))}},MD=class{constructor(t,n,r){this.regExps=n,this.rules=r,this.scanner=t.createOnigScanner(n)}scanner;dispose(){typeof this.scanner.dispose=="function"&&this.scanner.dispose()}toString(){const t=[];for(let n=0,r=this.rules.length;n<r;n++)t.push(" - "+this.rules[n]+": "+this.regExps[n]);return t.join(`
227
227
  `)}findNextMatchSync(t,n,r){const a=this.scanner.findNextMatchSync(t,n,r);return a?{ruleId:this.rules[a.index],captureIndices:a.captureIndices}:null}},Yv=class{constructor(t,n){this.languageId=t,this.tokenType=n}},Fq=class kE{_defaultAttributes;_embeddedLanguagesMatcher;constructor(t,n){this._defaultAttributes=new Yv(t,8),this._embeddedLanguagesMatcher=new Bq(Object.entries(n||{}))}getDefaultAttributes(){return this._defaultAttributes}getBasicScopeAttributes(t){return t===null?kE._NULL_SCOPE_METADATA:this._getBasicScopeAttributes.get(t)}static _NULL_SCOPE_METADATA=new Yv(0,0);_getBasicScopeAttributes=new uN(t=>{const n=this._scopeToLanguage(t),r=this._toStandardTokenType(t);return new Yv(n,r)});_scopeToLanguage(t){return this._embeddedLanguagesMatcher.match(t)||0}_toStandardTokenType(t){const n=t.match(kE.STANDARD_TOKEN_TYPE_REGEXP);if(!n)return 8;switch(n[1]){case"comment":return 1;case"string":return 2;case"regex":return 3;case"meta.embedded":return 0}throw new Error("Unexpected match for standard token type!")}static STANDARD_TOKEN_TYPE_REGEXP=/\b(comment|string|regex|meta\.embedded)\b/},Bq=class{values;scopesRegExp;constructor(t){if(t.length===0)this.values=null,this.scopesRegExp=null;else{this.values=new Map(t);const n=t.map(([r,a])=>cN(r));n.sort(),n.reverse(),this.scopesRegExp=new RegExp(`^((${n.join(")|(")}))($|\\.)`,"")}}match(t){if(!this.scopesRegExp)return;const n=t.match(this.scopesRegExp);if(n)return this.values.get(n[1])}},$D=class{constructor(t,n){this.stack=t,this.stoppedEarly=n}};function vN(e,t,n,r,a,o,s,c){const u=t.content.length;let d=!1,p=-1;if(s){const y=Uq(e,t,n,r,a,o);a=y.stack,r=y.linePos,n=y.isFirstLine,p=y.anchorPosition}const h=Date.now();for(;!d;){if(c!==0&&Date.now()-h>c)return new $D(a,!0);g()}return new $D(a,!1);function g(){const y=jq(e,t,n,r,a,p);if(!y){o.produce(a,u),d=!0;return}const b=y.captureIndices,E=y.matchedRuleId,_=b&&b.length>0?b[0].end>r:!1;if(E===Pq){const A=a.getRule(e);o.produce(a,b[0].start),a=a.withContentNameScopesList(a.nameScopesList),df(e,t,n,a,o,A.endCaptures,b),o.produce(a,b[0].end);const D=a;if(a=a.parent,p=D.getAnchorPos(),!_&&D.getEnterPos()===r){a=D,o.produce(a,u),d=!0;return}}else{const A=e.getRule(E);o.produce(a,b[0].start);const D=a,w=A.getName(t.content,b),R=a.contentNameScopesList.pushAttributed(w,e);if(a=a.push(E,r,p,b[0].end===u,null,R,R),A instanceof DE){const O=A;df(e,t,n,a,o,O.beginCaptures,b),o.produce(a,b[0].end),p=b[0].end;const k=O.getContentName(t.content,b),F=R.pushAttributed(k,e);if(a=a.withContentNameScopesList(F),O.endHasBackReferences&&(a=a.withEndRule(O.getEndWithResolvedBackReferences(t.content,b))),!_&&D.hasSameRuleAs(a)){a=a.pop(),o.produce(a,u),d=!0;return}}else if(A instanceof wg){const O=A;df(e,t,n,a,o,O.beginCaptures,b),o.produce(a,b[0].end),p=b[0].end;const k=O.getContentName(t.content,b),F=R.pushAttributed(k,e);if(a=a.withContentNameScopesList(F),O.whileHasBackReferences&&(a=a.withEndRule(O.getWhileWithResolvedBackReferences(t.content,b))),!_&&D.hasSameRuleAs(a)){a=a.pop(),o.produce(a,u),d=!0;return}}else if(df(e,t,n,a,o,A.captures,b),o.produce(a,b[0].end),a=a.pop(),!_){a=a.safePop(),o.produce(a,u),d=!0;return}}b[0].end>r&&(r=b[0].end,n=!1)}}function Uq(e,t,n,r,a,o){let s=a.beginRuleCapturedEOL?0:-1;const c=[];for(let u=a;u;u=u.pop()){const d=u.getRule(e);d instanceof wg&&c.push({rule:d,stack:u})}for(let u=c.pop();u;u=c.pop()){const{ruleScanner:d,findOptions:p}=Vq(u.rule,e,u.stack.endRule,n,r===s),h=d.findNextMatchSync(t,r,p);if(h){if(h.ruleId!==mN){a=u.stack.pop();break}h.captureIndices&&h.captureIndices.length&&(o.produce(u.stack,h.captureIndices[0].start),df(e,t,n,u.stack,o,u.rule.whileCaptures,h.captureIndices),o.produce(u.stack,h.captureIndices[0].end),s=h.captureIndices[0].end,h.captureIndices[0].end>r&&(r=h.captureIndices[0].end,n=!1))}else{a=u.stack.pop();break}}return{stack:a,linePos:r,anchorPosition:s,isFirstLine:n}}function jq(e,t,n,r,a,o){const s=Hq(e,t,n,r,a,o),c=e.getInjections();if(c.length===0)return s;const u=zq(c,e,t,n,r,a,o);if(!u)return s;if(!s)return u;const d=s.captureIndices[0].start,p=u.captureIndices[0].start;return p<d||u.priorityMatch&&p===d?u:s}function Hq(e,t,n,r,a,o){const s=a.getRule(e),{ruleScanner:c,findOptions:u}=bN(s,e,a.endRule,n,r===o),d=c.findNextMatchSync(t,r,u);return d?{captureIndices:d.captureIndices,matchedRuleId:d.ruleId}:null}function zq(e,t,n,r,a,o,s){let c=Number.MAX_VALUE,u=null,d,p=0;const h=o.contentNameScopesList.getScopeNames();for(let g=0,y=e.length;g<y;g++){const b=e[g];if(!b.matcher(h))continue;const E=t.getRule(b.ruleId),{ruleScanner:_,findOptions:A}=bN(E,t,null,r,a===s),D=_.findNextMatchSync(n,a,A);if(!D)continue;const w=D.captureIndices[0].start;if(!(w>=c)&&(c=w,u=D.captureIndices,d=D.ruleId,p=b.priority,c===a))break}return u?{priorityMatch:p===-1,captureIndices:u,matchedRuleId:d}:null}function bN(e,t,n,r,a){return{ruleScanner:e.compileAG(t,n,r,a),findOptions:0}}function Vq(e,t,n,r,a){return{ruleScanner:e.compileWhileAG(t,n,r,a),findOptions:0}}function df(e,t,n,r,a,o,s){if(o.length===0)return;const c=t.content,u=Math.min(o.length,s.length),d=[],p=s[0].end;for(let h=0;h<u;h++){const g=o[h];if(g===null)continue;const y=s[h];if(y.length===0)continue;if(y.start>p)break;for(;d.length>0&&d[d.length-1].endPos<=y.start;)a.produceFromScopes(d[d.length-1].scopes,d[d.length-1].endPos),d.pop();if(d.length>0?a.produceFromScopes(d[d.length-1].scopes,y.start):a.produce(r,y.start),g.retokenizeCapturedWithRuleId){const E=g.getName(c,s),_=r.contentNameScopesList.pushAttributed(E,e),A=g.getContentName(c,s),D=_.pushAttributed(A,e),w=r.push(g.retokenizeCapturedWithRuleId,y.start,-1,!1,null,_,D),R=e.createOnigString(c.substring(0,y.end));vN(e,R,n&&y.start===0,y.start,w,a,!1,0),pN(R);continue}const b=g.getName(c,s);if(b!==null){const E=(d.length>0?d[d.length-1].scopes:r.contentNameScopesList).pushAttributed(b,e);d.push(new Gq(E,y.end))}}for(;d.length>0;)a.produceFromScopes(d[d.length-1].scopes,d[d.length-1].endPos),d.pop()}var Gq=class{scopes;endPos;constructor(t,n){this.scopes=t,this.endPos=n}};function qq(e,t,n,r,a,o,s,c){return new Yq(e,t,n,r,a,o,s,c)}function FD(e,t,n,r,a){const o=Ag(t,Dg),s=gN.getCompiledRuleId(n,r,a.repository);for(const c of o)e.push({debugSelector:t,matcher:c.matcher,ruleId:s,grammar:a,priority:c.priority})}function Dg(e,t){if(t.length<e.length)return!1;let n=0;return e.every(r=>{for(let a=n;a<t.length;a++)if(Wq(t[a],r))return n=a+1,!0;return!1})}function Wq(e,t){if(!e)return!1;if(e===t)return!0;const n=t.length;return e.length>n&&e.substr(0,n)===t&&e[n]==="."}var Yq=class{constructor(t,n,r,a,o,s,c,u){if(this._rootScopeName=t,this.balancedBracketSelectors=s,this._onigLib=u,this._basicScopeAttributesProvider=new Fq(r,a),this._rootId=-1,this._lastRuleId=0,this._ruleId2desc=[null],this._includedGrammars={},this._grammarRepository=c,this._grammar=BD(n,null),this._injections=null,this._tokenTypeMatchers=[],o)for(const d of Object.keys(o)){const p=Ag(d,Dg);for(const h of p)this._tokenTypeMatchers.push({matcher:h.matcher,type:o[d]})}}_rootId;_lastRuleId;_ruleId2desc;_includedGrammars;_grammarRepository;_grammar;_injections;_basicScopeAttributesProvider;_tokenTypeMatchers;get themeProvider(){return this._grammarRepository}dispose(){for(const t of this._ruleId2desc)t&&t.dispose()}createOnigScanner(t){return this._onigLib.createOnigScanner(t)}createOnigString(t){return this._onigLib.createOnigString(t)}getMetadataForScope(t){return this._basicScopeAttributesProvider.getBasicScopeAttributes(t)}_collectInjections(){const t={lookup:o=>o===this._rootScopeName?this._grammar:this.getExternalGrammar(o),injections:o=>this._grammarRepository.injections(o)},n=[],r=this._rootScopeName,a=t.lookup(r);if(a){const o=a.injections;if(o)for(let c in o)FD(n,c,o[c],this,a);const s=this._grammarRepository.injections(r);s&&s.forEach(c=>{const u=this.getExternalGrammar(c);if(u){const d=u.injectionSelector;d&&FD(n,d,u,this,u)}})}return n.sort((o,s)=>o.priority-s.priority),n}getInjections(){return this._injections===null&&(this._injections=this._collectInjections()),this._injections}registerRule(t){const n=++this._lastRuleId,r=t(n);return this._ruleId2desc[n]=r,r}getRule(t){return this._ruleId2desc[t]}getExternalGrammar(t,n){if(this._includedGrammars[t])return this._includedGrammars[t];if(this._grammarRepository){const r=this._grammarRepository.lookup(t);if(r)return this._includedGrammars[t]=BD(r,n&&n.$base),this._includedGrammars[t]}}tokenizeLine(t,n,r=0){const a=this._tokenize(t,n,!1,r);return{tokens:a.lineTokens.getResult(a.ruleStack,a.lineLength),ruleStack:a.ruleStack,stoppedEarly:a.stoppedEarly}}tokenizeLine2(t,n,r=0){const a=this._tokenize(t,n,!0,r);return{tokens:a.lineTokens.getBinaryResult(a.ruleStack,a.lineLength),ruleStack:a.ruleStack,stoppedEarly:a.stoppedEarly}}_tokenize(t,n,r,a){this._rootId===-1&&(this._rootId=gN.getCompiledRuleId(this._grammar.repository.$self,this,this._grammar.repository),this.getInjections());let o;if(!n||n===RE.NULL){o=!0;const p=this._basicScopeAttributesProvider.getDefaultAttributes(),h=this.themeProvider.getDefaults(),g=fu.set(0,p.languageId,p.tokenType,null,h.fontStyle,h.foregroundId,h.backgroundId),y=this.getRule(this._rootId).getName(null,null);let b;y?b=bf.createRootAndLookUpScopeName(y,g,this):b=bf.createRoot("unknown",g),n=new RE(null,this._rootId,-1,-1,!1,null,b,b)}else o=!1,n.reset();t=t+`
228
- `;const s=this.createOnigString(t),c=s.content.length,u=new Kq(r,t,this._tokenTypeMatchers,this.balancedBracketSelectors),d=vN(this,s,o,0,n,u,!0,a);return pN(s),{lineLength:c,lineTokens:u,ruleStack:d.stack,stoppedEarly:d.stoppedEarly}}};function BD(e,t){return e=pq(e),e.repository=e.repository||{},e.repository.$self={$vscodeTextmateLocation:e.$vscodeTextmateLocation,patterns:e.patterns,name:e.scopeName},e.repository.$base=t||e.repository.$self,e}var bf=class Bo{constructor(t,n,r){this.parent=t,this.scopePath=n,this.tokenAttributes=r}static fromExtension(t,n){let r=t,a=t?.scopePath??null;for(const o of n)a=Wv.push(a,o.scopeNames),r=new Bo(r,a,o.encodedTokenAttributes);return r}static createRoot(t,n){return new Bo(null,new Wv(null,t),n)}static createRootAndLookUpScopeName(t,n,r){const a=r.getMetadataForScope(t),o=new Wv(null,t),s=r.themeProvider.themeMatch(o),c=Bo.mergeAttributes(n,a,s);return new Bo(null,o,c)}get scopeName(){return this.scopePath.scopeName}toString(){return this.getScopeNames().join(" ")}equals(t){return Bo.equals(this,t)}static equals(t,n){do{if(t===n||!t&&!n)return!0;if(!t||!n||t.scopeName!==n.scopeName||t.tokenAttributes!==n.tokenAttributes)return!1;t=t.parent,n=n.parent}while(!0)}static mergeAttributes(t,n,r){let a=-1,o=0,s=0;return r!==null&&(a=r.fontStyle,o=r.foregroundId,s=r.backgroundId),fu.set(t,n.languageId,n.tokenType,null,a,o,s)}pushAttributed(t,n){if(t===null)return this;if(t.indexOf(" ")===-1)return Bo._pushAttributed(this,t,n);const r=t.split(/ /g);let a=this;for(const o of r)a=Bo._pushAttributed(a,o,n);return a}static _pushAttributed(t,n,r){const a=r.getMetadataForScope(n),o=t.scopePath.push(n),s=r.themeProvider.themeMatch(o),c=Bo.mergeAttributes(t.tokenAttributes,a,s);return new Bo(t,o,c)}getScopeNames(){return this.scopePath.getSegments()}getExtensionIfDefined(t){const n=[];let r=this;for(;r&&r!==t;)n.push({encodedTokenAttributes:r.tokenAttributes,scopeNames:r.scopePath.getExtensionIfDefined(r.parent?.scopePath??null)}),r=r.parent;return r===t?n.reverse():void 0}},RE=class sl{constructor(t,n,r,a,o,s,c,u){this.parent=t,this.ruleId=n,this.beginRuleCapturedEOL=o,this.endRule=s,this.nameScopesList=c,this.contentNameScopesList=u,this.depth=this.parent?this.parent.depth+1:1,this._enterPos=r,this._anchorPos=a}_stackElementBrand=void 0;static NULL=new sl(null,0,0,0,!1,null,null,null);_enterPos;_anchorPos;depth;equals(t){return t===null?!1:sl._equals(this,t)}static _equals(t,n){return t===n?!0:this._structuralEquals(t,n)?bf.equals(t.contentNameScopesList,n.contentNameScopesList):!1}static _structuralEquals(t,n){do{if(t===n||!t&&!n)return!0;if(!t||!n||t.depth!==n.depth||t.ruleId!==n.ruleId||t.endRule!==n.endRule)return!1;t=t.parent,n=n.parent}while(!0)}clone(){return this}static _reset(t){for(;t;)t._enterPos=-1,t._anchorPos=-1,t=t.parent}reset(){sl._reset(this)}pop(){return this.parent}safePop(){return this.parent?this.parent:this}push(t,n,r,a,o,s,c){return new sl(this,t,n,r,a,o,s,c)}getEnterPos(){return this._enterPos}getAnchorPos(){return this._anchorPos}getRule(t){return t.getRule(this.ruleId)}toString(){const t=[];return this._writeString(t,0),"["+t.join(",")+"]"}_writeString(t,n){return this.parent&&(n=this.parent._writeString(t,n)),t[n++]=`(${this.ruleId}, ${this.nameScopesList?.toString()}, ${this.contentNameScopesList?.toString()})`,n}withContentNameScopesList(t){return this.contentNameScopesList===t?this:this.parent.push(this.ruleId,this._enterPos,this._anchorPos,this.beginRuleCapturedEOL,this.endRule,this.nameScopesList,t)}withEndRule(t){return this.endRule===t?this:new sl(this.parent,this.ruleId,this._enterPos,this._anchorPos,this.beginRuleCapturedEOL,t,this.nameScopesList,this.contentNameScopesList)}hasSameRuleAs(t){let n=this;for(;n&&n._enterPos===t._enterPos;){if(n.ruleId===t.ruleId)return!0;n=n.parent}return!1}toStateStackFrame(){return{ruleId:this.ruleId,beginRuleCapturedEOL:this.beginRuleCapturedEOL,endRule:this.endRule,nameScopesList:this.nameScopesList?.getExtensionIfDefined(this.parent?.nameScopesList??null)??[],contentNameScopesList:this.contentNameScopesList?.getExtensionIfDefined(this.nameScopesList)??[]}}static pushFrame(t,n){const r=bf.fromExtension(t?.nameScopesList??null,n.nameScopesList);return new sl(t,n.ruleId,n.enterPos??-1,n.anchorPos??-1,n.beginRuleCapturedEOL,n.endRule,r,bf.fromExtension(r,n.contentNameScopesList))}},Qq=class{balancedBracketScopes;unbalancedBracketScopes;allowAny=!1;constructor(t,n){this.balancedBracketScopes=t.flatMap(r=>r==="*"?(this.allowAny=!0,[]):Ag(r,Dg).map(a=>a.matcher)),this.unbalancedBracketScopes=n.flatMap(r=>Ag(r,Dg).map(a=>a.matcher))}get matchesAlways(){return this.allowAny&&this.unbalancedBracketScopes.length===0}get matchesNever(){return this.balancedBracketScopes.length===0&&!this.allowAny}match(t){for(const n of this.unbalancedBracketScopes)if(n(t))return!1;for(const n of this.balancedBracketScopes)if(n(t))return!0;return this.allowAny}},Kq=class{constructor(t,n,r,a){this.balancedBracketSelectors=a,this._emitBinaryTokens=t,this._tokenTypeOverrides=r,this._lineText=null,this._tokens=[],this._binaryTokens=[],this._lastTokenEndIndex=0}_emitBinaryTokens;_lineText;_tokens;_binaryTokens;_lastTokenEndIndex;_tokenTypeOverrides;produce(t,n){this.produceFromScopes(t.contentNameScopesList,n)}produceFromScopes(t,n){if(this._lastTokenEndIndex>=n)return;if(this._emitBinaryTokens){let a=t?.tokenAttributes??0,o=!1;if(this.balancedBracketSelectors?.matchesAlways&&(o=!0),this._tokenTypeOverrides.length>0||this.balancedBracketSelectors&&!this.balancedBracketSelectors.matchesAlways&&!this.balancedBracketSelectors.matchesNever){const s=t?.getScopeNames()??[];for(const c of this._tokenTypeOverrides)c.matcher(s)&&(a=fu.set(a,0,c.type,null,-1,0,0));this.balancedBracketSelectors&&(o=this.balancedBracketSelectors.match(s))}if(o&&(a=fu.set(a,0,8,o,-1,0,0)),this._binaryTokens.length>0&&this._binaryTokens[this._binaryTokens.length-1]===a){this._lastTokenEndIndex=n;return}this._binaryTokens.push(this._lastTokenEndIndex),this._binaryTokens.push(a),this._lastTokenEndIndex=n;return}const r=t?.getScopeNames()??[];this._tokens.push({startIndex:this._lastTokenEndIndex,endIndex:n,scopes:r}),this._lastTokenEndIndex=n}getResult(t,n){return this._tokens.length>0&&this._tokens[this._tokens.length-1].startIndex===n-1&&this._tokens.pop(),this._tokens.length===0&&(this._lastTokenEndIndex=-1,this.produce(t,n),this._tokens[this._tokens.length-1].startIndex=0),this._tokens}getBinaryResult(t,n){this._binaryTokens.length>0&&this._binaryTokens[this._binaryTokens.length-2]===n-1&&(this._binaryTokens.pop(),this._binaryTokens.pop()),this._binaryTokens.length===0&&(this._lastTokenEndIndex=-1,this.produce(t,n),this._binaryTokens[this._binaryTokens.length-2]=0);const r=new Uint32Array(this._binaryTokens.length);for(let a=0,o=this._binaryTokens.length;a<o;a++)r[a]=this._binaryTokens[a];return r}},Xq=class{constructor(t,n){this._onigLib=n,this._theme=t}_grammars=new Map;_rawGrammars=new Map;_injectionGrammars=new Map;_theme;dispose(){for(const t of this._grammars.values())t.dispose()}setTheme(t){this._theme=t}getColorMap(){return this._theme.getColorMap()}addGrammar(t,n){this._rawGrammars.set(t.scopeName,t),n&&this._injectionGrammars.set(t.scopeName,n)}lookup(t){return this._rawGrammars.get(t)}injections(t){return this._injectionGrammars.get(t)}getDefaults(){return this._theme.getDefaults()}themeMatch(t){return this._theme.match(t)}grammarForScopeName(t,n,r,a,o){if(!this._grammars.has(t)){let s=this._rawGrammars.get(t);if(!s)return null;this._grammars.set(t,qq(t,s,n,r,a,o,this,this._onigLib))}return this._grammars.get(t)}},Zq=class{_options;_syncRegistry;_ensureGrammarCache;constructor(t){this._options=t,this._syncRegistry=new Xq(Cg.createFromRawTheme(t.theme,t.colorMap),t.onigLib),this._ensureGrammarCache=new Map}dispose(){this._syncRegistry.dispose()}setTheme(t,n){this._syncRegistry.setTheme(Cg.createFromRawTheme(t,n))}getColorMap(){return this._syncRegistry.getColorMap()}loadGrammarWithEmbeddedLanguages(t,n,r){return this.loadGrammarWithConfiguration(t,n,{embeddedLanguages:r})}loadGrammarWithConfiguration(t,n,r){return this._loadGrammar(t,n,r.embeddedLanguages,r.tokenTypes,new Qq(r.balancedBracketSelectors||[],r.unbalancedBracketSelectors||[]))}loadGrammar(t){return this._loadGrammar(t,0,null,null,null)}_loadGrammar(t,n,r,a,o){const s=new wq(this._syncRegistry,t);for(;s.Q.length>0;)s.Q.map(c=>this._loadSingleGrammar(c.scopeName)),s.processQueue();return this._grammarForScopeName(t,n,r,a,o)}_loadSingleGrammar(t){this._ensureGrammarCache.has(t)||(this._doLoadSingleGrammar(t),this._ensureGrammarCache.set(t,!0))}_doLoadSingleGrammar(t){const n=this._options.loadGrammar(t);if(n){const r=typeof this._options.getInjections=="function"?this._options.getInjections(t):void 0;this._syncRegistry.addGrammar(n,r)}}addGrammar(t,n=[],r=0,a=null){return this._syncRegistry.addGrammar(t,n),this._grammarForScopeName(t.scopeName,r,a)}_grammarForScopeName(t,n=0,r=null,a=null,o=null){return this._syncRegistry.grammarForScopeName(t,n,r,a,o)}},OE=RE.NULL;const EN=["area","base","basefont","bgsound","br","col","command","embed","frame","hr","image","img","input","keygen","link","meta","param","source","track","wbr"];let Np=class{constructor(t,n,r){this.normal=n,this.property=t,r&&(this.space=r)}};Np.prototype.normal={};Np.prototype.property={};Np.prototype.space=void 0;function TN(e,t){const n={},r={};for(const a of e)Object.assign(n,a.property),Object.assign(r,a.normal);return new Np(n,r,t)}function Jf(e){return e.toLowerCase()}let ga=class{constructor(t,n){this.attribute=n,this.property=t}};ga.prototype.attribute="";ga.prototype.booleanish=!1;ga.prototype.boolean=!1;ga.prototype.commaOrSpaceSeparated=!1;ga.prototype.commaSeparated=!1;ga.prototype.defined=!1;ga.prototype.mustUseProperty=!1;ga.prototype.number=!1;ga.prototype.overloadedBoolean=!1;ga.prototype.property="";ga.prototype.spaceSeparated=!1;ga.prototype.space=void 0;let Jq=0;const kt=jl(),ir=jl(),IE=jl(),$e=jl(),Rn=jl(),eu=jl(),xa=jl();function jl(){return 2**++Jq}const NE=Object.freeze(Object.defineProperty({__proto__:null,boolean:kt,booleanish:ir,commaOrSpaceSeparated:xa,commaSeparated:eu,number:$e,overloadedBoolean:IE,spaceSeparated:Rn},Symbol.toStringTag,{value:"Module"})),Qv=Object.keys(NE);let FS=class extends ga{constructor(t,n,r,a){let o=-1;if(super(t,n),UD(this,"space",a),typeof r=="number")for(;++o<Qv.length;){const s=Qv[o];UD(this,Qv[o],(r&NE[s])===NE[s])}}};FS.prototype.defined=!0;function UD(e,t,n){n&&(e[t]=n)}function Su(e){const t={},n={};for(const[r,a]of Object.entries(e.properties)){const o=new FS(r,e.transform(e.attributes||{},r),a,e.space);e.mustUseProperty&&e.mustUseProperty.includes(r)&&(o.mustUseProperty=!0),t[r]=o,n[Jf(r)]=r,n[Jf(o.attribute)]=r}return new Np(t,n,e.space)}const SN=Su({properties:{ariaActiveDescendant:null,ariaAtomic:ir,ariaAutoComplete:null,ariaBusy:ir,ariaChecked:ir,ariaColCount:$e,ariaColIndex:$e,ariaColSpan:$e,ariaControls:Rn,ariaCurrent:null,ariaDescribedBy:Rn,ariaDetails:null,ariaDisabled:ir,ariaDropEffect:Rn,ariaErrorMessage:null,ariaExpanded:ir,ariaFlowTo:Rn,ariaGrabbed:ir,ariaHasPopup:null,ariaHidden:ir,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:Rn,ariaLevel:$e,ariaLive:null,ariaModal:ir,ariaMultiLine:ir,ariaMultiSelectable:ir,ariaOrientation:null,ariaOwns:Rn,ariaPlaceholder:null,ariaPosInSet:$e,ariaPressed:ir,ariaReadOnly:ir,ariaRelevant:null,ariaRequired:ir,ariaRoleDescription:Rn,ariaRowCount:$e,ariaRowIndex:$e,ariaRowSpan:$e,ariaSelected:ir,ariaSetSize:$e,ariaSort:null,ariaValueMax:$e,ariaValueMin:$e,ariaValueNow:$e,ariaValueText:null,role:null},transform(e,t){return t==="role"?t:"aria-"+t.slice(4).toLowerCase()}});function _N(e,t){return t in e?e[t]:t}function CN(e,t){return _N(e,t.toLowerCase())}const eW=Su({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:eu,acceptCharset:Rn,accessKey:Rn,action:null,allow:null,allowFullScreen:kt,allowPaymentRequest:kt,allowUserMedia:kt,alt:null,as:null,async:kt,autoCapitalize:null,autoComplete:Rn,autoFocus:kt,autoPlay:kt,blocking:Rn,capture:null,charSet:null,checked:kt,cite:null,className:Rn,cols:$e,colSpan:null,content:null,contentEditable:ir,controls:kt,controlsList:Rn,coords:$e|eu,crossOrigin:null,data:null,dateTime:null,decoding:null,default:kt,defer:kt,dir:null,dirName:null,disabled:kt,download:IE,draggable:ir,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:kt,formTarget:null,headers:Rn,height:$e,hidden:IE,high:$e,href:null,hrefLang:null,htmlFor:Rn,httpEquiv:Rn,id:null,imageSizes:null,imageSrcSet:null,inert:kt,inputMode:null,integrity:null,is:null,isMap:kt,itemId:null,itemProp:Rn,itemRef:Rn,itemScope:kt,itemType:Rn,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:kt,low:$e,manifest:null,max:null,maxLength:$e,media:null,method:null,min:null,minLength:$e,multiple:kt,muted:kt,name:null,nonce:null,noModule:kt,noValidate:kt,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforeMatch:null,onBeforePrint:null,onBeforeToggle:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextLost:null,onContextMenu:null,onContextRestored:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onScrollEnd:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:kt,optimum:$e,pattern:null,ping:Rn,placeholder:null,playsInline:kt,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:kt,referrerPolicy:null,rel:Rn,required:kt,reversed:kt,rows:$e,rowSpan:$e,sandbox:Rn,scope:null,scoped:kt,seamless:kt,selected:kt,shadowRootClonable:kt,shadowRootDelegatesFocus:kt,shadowRootMode:null,shape:null,size:$e,sizes:null,slot:null,span:$e,spellCheck:ir,src:null,srcDoc:null,srcLang:null,srcSet:null,start:$e,step:null,style:null,tabIndex:$e,target:null,title:null,translate:null,type:null,typeMustMatch:kt,useMap:null,value:ir,width:$e,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:Rn,axis:null,background:null,bgColor:null,border:$e,borderColor:null,bottomMargin:$e,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:kt,declare:kt,event:null,face:null,frame:null,frameBorder:null,hSpace:$e,leftMargin:$e,link:null,longDesc:null,lowSrc:null,marginHeight:$e,marginWidth:$e,noResize:kt,noHref:kt,noShade:kt,noWrap:kt,object:null,profile:null,prompt:null,rev:null,rightMargin:$e,rules:null,scheme:null,scrolling:ir,standby:null,summary:null,text:null,topMargin:$e,valueType:null,version:null,vAlign:null,vLink:null,vSpace:$e,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:kt,disableRemotePlayback:kt,prefix:null,property:null,results:$e,security:null,unselectable:null},space:"html",transform:CN}),tW=Su({attributes:{accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",className:"class",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",crossOrigin:"crossorigin",dataType:"datatype",dominantBaseline:"dominant-baseline",enableBackground:"enable-background",fillOpacity:"fill-opacity",fillRule:"fill-rule",floodColor:"flood-color",floodOpacity:"flood-opacity",fontFamily:"font-family",fontSize:"font-size",fontSizeAdjust:"font-size-adjust",fontStretch:"font-stretch",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",glyphName:"glyph-name",glyphOrientationHorizontal:"glyph-orientation-horizontal",glyphOrientationVertical:"glyph-orientation-vertical",hrefLang:"hreflang",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",horizOriginY:"horiz-origin-y",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",navDown:"nav-down",navDownLeft:"nav-down-left",navDownRight:"nav-down-right",navLeft:"nav-left",navNext:"nav-next",navPrev:"nav-prev",navRight:"nav-right",navUp:"nav-up",navUpLeft:"nav-up-left",navUpRight:"nav-up-right",onAbort:"onabort",onActivate:"onactivate",onAfterPrint:"onafterprint",onBeforePrint:"onbeforeprint",onBegin:"onbegin",onCancel:"oncancel",onCanPlay:"oncanplay",onCanPlayThrough:"oncanplaythrough",onChange:"onchange",onClick:"onclick",onClose:"onclose",onCopy:"oncopy",onCueChange:"oncuechange",onCut:"oncut",onDblClick:"ondblclick",onDrag:"ondrag",onDragEnd:"ondragend",onDragEnter:"ondragenter",onDragExit:"ondragexit",onDragLeave:"ondragleave",onDragOver:"ondragover",onDragStart:"ondragstart",onDrop:"ondrop",onDurationChange:"ondurationchange",onEmptied:"onemptied",onEnd:"onend",onEnded:"onended",onError:"onerror",onFocus:"onfocus",onFocusIn:"onfocusin",onFocusOut:"onfocusout",onHashChange:"onhashchange",onInput:"oninput",onInvalid:"oninvalid",onKeyDown:"onkeydown",onKeyPress:"onkeypress",onKeyUp:"onkeyup",onLoad:"onload",onLoadedData:"onloadeddata",onLoadedMetadata:"onloadedmetadata",onLoadStart:"onloadstart",onMessage:"onmessage",onMouseDown:"onmousedown",onMouseEnter:"onmouseenter",onMouseLeave:"onmouseleave",onMouseMove:"onmousemove",onMouseOut:"onmouseout",onMouseOver:"onmouseover",onMouseUp:"onmouseup",onMouseWheel:"onmousewheel",onOffline:"onoffline",onOnline:"ononline",onPageHide:"onpagehide",onPageShow:"onpageshow",onPaste:"onpaste",onPause:"onpause",onPlay:"onplay",onPlaying:"onplaying",onPopState:"onpopstate",onProgress:"onprogress",onRateChange:"onratechange",onRepeat:"onrepeat",onReset:"onreset",onResize:"onresize",onScroll:"onscroll",onSeeked:"onseeked",onSeeking:"onseeking",onSelect:"onselect",onShow:"onshow",onStalled:"onstalled",onStorage:"onstorage",onSubmit:"onsubmit",onSuspend:"onsuspend",onTimeUpdate:"ontimeupdate",onToggle:"ontoggle",onUnload:"onunload",onVolumeChange:"onvolumechange",onWaiting:"onwaiting",onZoom:"onzoom",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",referrerPolicy:"referrerpolicy",renderingIntent:"rendering-intent",shapeRendering:"shape-rendering",stopColor:"stop-color",stopOpacity:"stop-opacity",strikethroughPosition:"strikethrough-position",strikethroughThickness:"strikethrough-thickness",strokeDashArray:"stroke-dasharray",strokeDashOffset:"stroke-dashoffset",strokeLineCap:"stroke-linecap",strokeLineJoin:"stroke-linejoin",strokeMiterLimit:"stroke-miterlimit",strokeOpacity:"stroke-opacity",strokeWidth:"stroke-width",tabIndex:"tabindex",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",transformOrigin:"transform-origin",typeOf:"typeof",underlinePosition:"underline-position",underlineThickness:"underline-thickness",unicodeBidi:"unicode-bidi",unicodeRange:"unicode-range",unitsPerEm:"units-per-em",vAlphabetic:"v-alphabetic",vHanging:"v-hanging",vIdeographic:"v-ideographic",vMathematical:"v-mathematical",vectorEffect:"vector-effect",vertAdvY:"vert-adv-y",vertOriginX:"vert-origin-x",vertOriginY:"vert-origin-y",wordSpacing:"word-spacing",writingMode:"writing-mode",xHeight:"x-height",playbackOrder:"playbackorder",timelineBegin:"timelinebegin"},properties:{about:xa,accentHeight:$e,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:$e,amplitude:$e,arabicForm:null,ascent:$e,attributeName:null,attributeType:null,azimuth:$e,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:$e,by:null,calcMode:null,capHeight:$e,className:Rn,clip:null,clipPath:null,clipPathUnits:null,clipRule:null,color:null,colorInterpolation:null,colorInterpolationFilters:null,colorProfile:null,colorRendering:null,content:null,contentScriptType:null,contentStyleType:null,crossOrigin:null,cursor:null,cx:null,cy:null,d:null,dataType:null,defaultAction:null,descent:$e,diffuseConstant:$e,direction:null,display:null,dur:null,divisor:$e,dominantBaseline:null,download:kt,dx:null,dy:null,edgeMode:null,editable:null,elevation:$e,enableBackground:null,end:null,event:null,exponent:$e,externalResourcesRequired:null,fill:null,fillOpacity:$e,fillRule:null,filter:null,filterRes:null,filterUnits:null,floodColor:null,floodOpacity:null,focusable:null,focusHighlight:null,fontFamily:null,fontSize:null,fontSizeAdjust:null,fontStretch:null,fontStyle:null,fontVariant:null,fontWeight:null,format:null,fr:null,from:null,fx:null,fy:null,g1:eu,g2:eu,glyphName:eu,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:$e,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:$e,horizOriginX:$e,horizOriginY:$e,id:null,ideographic:$e,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:$e,k:$e,k1:$e,k2:$e,k3:$e,k4:$e,kernelMatrix:xa,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:$e,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:$e,mediaTime:null,method:null,min:null,mode:null,name:null,navDown:null,navDownLeft:null,navDownRight:null,navLeft:null,navNext:null,navPrev:null,navRight:null,navUp:null,navUpLeft:null,navUpRight:null,numOctaves:null,observer:null,offset:null,onAbort:null,onActivate:null,onAfterPrint:null,onBeforePrint:null,onBegin:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnd:null,onEnded:null,onError:null,onFocus:null,onFocusIn:null,onFocusOut:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadStart:null,onMessage:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onMouseWheel:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRepeat:null,onReset:null,onResize:null,onScroll:null,onSeeked:null,onSeeking:null,onSelect:null,onShow:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnload:null,onVolumeChange:null,onWaiting:null,onZoom:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:$e,overlineThickness:$e,paintOrder:null,panose1:null,path:null,pathLength:$e,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:Rn,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:$e,pointsAtY:$e,pointsAtZ:$e,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:xa,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:xa,rev:xa,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:xa,requiredFeatures:xa,requiredFonts:xa,requiredFormats:xa,resource:null,restart:null,result:null,rotate:null,rx:null,ry:null,scale:null,seed:null,shapeRendering:null,side:null,slope:null,snapshotTime:null,specularConstant:$e,specularExponent:$e,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:$e,strikethroughThickness:$e,string:null,stroke:null,strokeDashArray:xa,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:$e,strokeOpacity:$e,strokeWidth:null,style:null,surfaceScale:$e,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:xa,tabIndex:$e,tableValues:null,target:null,targetX:$e,targetY:$e,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:xa,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:$e,underlineThickness:$e,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:$e,values:null,vAlphabetic:$e,vMathematical:$e,vectorEffect:null,vHanging:$e,vIdeographic:$e,version:null,vertAdvY:$e,vertOriginX:$e,vertOriginY:$e,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:$e,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:_N}),AN=Su({properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null},space:"xlink",transform(e,t){return"xlink:"+t.slice(5).toLowerCase()}}),xN=Su({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:CN}),wN=Su({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform(e,t){return"xml:"+t.slice(3).toLowerCase()}}),_u=TN([SN,eW,AN,xN,wN],"html"),Bi=TN([SN,tW,AN,xN,wN],"svg"),jD={}.hasOwnProperty;function Dy(e,t){const n=t||{};function r(a,...o){let s=r.invalid;const c=r.handlers;if(a&&jD.call(a,e)){const u=String(a[e]);s=jD.call(c,u)?c[u]:r.unknown}if(s)return s.call(this,a,...o)}return r.handlers=n.handlers||{},r.invalid=n.invalid,r.unknown=n.unknown,r}const nW=/["&'<>`]/g,rW=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,aW=/[\x01-\t\v\f\x0E-\x1F\x7F\x81\x8D\x8F\x90\x9D\xA0-\uFFFF]/g,oW=/[|\\{}()[\]^$+*?.]/g,HD=new WeakMap;function iW(e,t){if(e=e.replace(t.subset?sW(t.subset):nW,r),t.subset||t.escapeOnly)return e;return e.replace(rW,n).replace(aW,r);function n(a,o,s){return t.format((a.charCodeAt(0)-55296)*1024+a.charCodeAt(1)-56320+65536,s.charCodeAt(o+2),t)}function r(a,o,s){return t.format(a.charCodeAt(0),s.charCodeAt(o+1),t)}}function sW(e){let t=HD.get(e);return t||(t=lW(e),HD.set(e,t)),t}function lW(e){const t=[];let n=-1;for(;++n<e.length;)t.push(e[n].replace(oW,"\\$&"));return new RegExp("(?:"+t.join("|")+")","g")}const cW=/[\dA-Fa-f]/;function uW(e,t,n){const r="&#x"+e.toString(16).toUpperCase();return n&&t&&!cW.test(String.fromCharCode(t))?r:r+";"}const dW=/\d/;function fW(e,t,n){const r="&#"+String(e);return n&&t&&!dW.test(String.fromCharCode(t))?r:r+";"}const pW=["AElig","AMP","Aacute","Acirc","Agrave","Aring","Atilde","Auml","COPY","Ccedil","ETH","Eacute","Ecirc","Egrave","Euml","GT","Iacute","Icirc","Igrave","Iuml","LT","Ntilde","Oacute","Ocirc","Ograve","Oslash","Otilde","Ouml","QUOT","REG","THORN","Uacute","Ucirc","Ugrave","Uuml","Yacute","aacute","acirc","acute","aelig","agrave","amp","aring","atilde","auml","brvbar","ccedil","cedil","cent","copy","curren","deg","divide","eacute","ecirc","egrave","eth","euml","frac12","frac14","frac34","gt","iacute","icirc","iexcl","igrave","iquest","iuml","laquo","lt","macr","micro","middot","nbsp","not","ntilde","oacute","ocirc","ograve","ordf","ordm","oslash","otilde","ouml","para","plusmn","pound","quot","raquo","reg","sect","shy","sup1","sup2","sup3","szlig","thorn","times","uacute","ucirc","ugrave","uml","uuml","yacute","yen","yuml"],Kv={nbsp:" ",iexcl:"¡",cent:"¢",pound:"£",curren:"¤",yen:"¥",brvbar:"¦",sect:"§",uml:"¨",copy:"©",ordf:"ª",laquo:"«",not:"¬",shy:"­",reg:"®",macr:"¯",deg:"°",plusmn:"±",sup2:"²",sup3:"³",acute:"´",micro:"µ",para:"¶",middot:"·",cedil:"¸",sup1:"¹",ordm:"º",raquo:"»",frac14:"¼",frac12:"½",frac34:"¾",iquest:"¿",Agrave:"À",Aacute:"Á",Acirc:"Â",Atilde:"Ã",Auml:"Ä",Aring:"Å",AElig:"Æ",Ccedil:"Ç",Egrave:"È",Eacute:"É",Ecirc:"Ê",Euml:"Ë",Igrave:"Ì",Iacute:"Í",Icirc:"Î",Iuml:"Ï",ETH:"Ð",Ntilde:"Ñ",Ograve:"Ò",Oacute:"Ó",Ocirc:"Ô",Otilde:"Õ",Ouml:"Ö",times:"×",Oslash:"Ø",Ugrave:"Ù",Uacute:"Ú",Ucirc:"Û",Uuml:"Ü",Yacute:"Ý",THORN:"Þ",szlig:"ß",agrave:"à",aacute:"á",acirc:"â",atilde:"ã",auml:"ä",aring:"å",aelig:"æ",ccedil:"ç",egrave:"è",eacute:"é",ecirc:"ê",euml:"ë",igrave:"ì",iacute:"í",icirc:"î",iuml:"ï",eth:"ð",ntilde:"ñ",ograve:"ò",oacute:"ó",ocirc:"ô",otilde:"õ",ouml:"ö",divide:"÷",oslash:"ø",ugrave:"ù",uacute:"ú",ucirc:"û",uuml:"ü",yacute:"ý",thorn:"þ",yuml:"ÿ",fnof:"ƒ",Alpha:"Α",Beta:"Β",Gamma:"Γ",Delta:"Δ",Epsilon:"Ε",Zeta:"Ζ",Eta:"Η",Theta:"Θ",Iota:"Ι",Kappa:"Κ",Lambda:"Λ",Mu:"Μ",Nu:"Ν",Xi:"Ξ",Omicron:"Ο",Pi:"Π",Rho:"Ρ",Sigma:"Σ",Tau:"Τ",Upsilon:"Υ",Phi:"Φ",Chi:"Χ",Psi:"Ψ",Omega:"Ω",alpha:"α",beta:"β",gamma:"γ",delta:"δ",epsilon:"ε",zeta:"ζ",eta:"η",theta:"θ",iota:"ι",kappa:"κ",lambda:"λ",mu:"μ",nu:"ν",xi:"ξ",omicron:"ο",pi:"π",rho:"ρ",sigmaf:"ς",sigma:"σ",tau:"τ",upsilon:"υ",phi:"φ",chi:"χ",psi:"ψ",omega:"ω",thetasym:"ϑ",upsih:"ϒ",piv:"ϖ",bull:"•",hellip:"…",prime:"′",Prime:"″",oline:"‾",frasl:"⁄",weierp:"℘",image:"ℑ",real:"ℜ",trade:"™",alefsym:"ℵ",larr:"←",uarr:"↑",rarr:"→",darr:"↓",harr:"↔",crarr:"↵",lArr:"⇐",uArr:"⇑",rArr:"⇒",dArr:"⇓",hArr:"⇔",forall:"∀",part:"∂",exist:"∃",empty:"∅",nabla:"∇",isin:"∈",notin:"∉",ni:"∋",prod:"∏",sum:"∑",minus:"−",lowast:"∗",radic:"√",prop:"∝",infin:"∞",ang:"∠",and:"∧",or:"∨",cap:"∩",cup:"∪",int:"∫",there4:"∴",sim:"∼",cong:"≅",asymp:"≈",ne:"≠",equiv:"≡",le:"≤",ge:"≥",sub:"⊂",sup:"⊃",nsub:"⊄",sube:"⊆",supe:"⊇",oplus:"⊕",otimes:"⊗",perp:"⊥",sdot:"⋅",lceil:"⌈",rceil:"⌉",lfloor:"⌊",rfloor:"⌋",lang:"〈",rang:"〉",loz:"◊",spades:"♠",clubs:"♣",hearts:"♥",diams:"♦",quot:'"',amp:"&",lt:"<",gt:">",OElig:"Œ",oelig:"œ",Scaron:"Š",scaron:"š",Yuml:"Ÿ",circ:"ˆ",tilde:"˜",ensp:" ",emsp:" ",thinsp:" ",zwnj:"‌",zwj:"‍",lrm:"‎",rlm:"‏",ndash:"–",mdash:"—",lsquo:"‘",rsquo:"’",sbquo:"‚",ldquo:"“",rdquo:"”",bdquo:"„",dagger:"†",Dagger:"‡",permil:"‰",lsaquo:"‹",rsaquo:"›",euro:"€"},hW=["cent","copy","divide","gt","lt","not","para","times"],DN={}.hasOwnProperty,LE={};let Em;for(Em in Kv)DN.call(Kv,Em)&&(LE[Kv[Em]]=Em);const mW=/[^\dA-Za-z]/;function gW(e,t,n,r){const a=String.fromCharCode(e);if(DN.call(LE,a)){const o=LE[a],s="&"+o;return n&&pW.includes(o)&&!hW.includes(o)&&(!r||t&&t!==61&&mW.test(String.fromCharCode(t)))?s:s+";"}return""}function yW(e,t,n){let r=uW(e,t,n.omitOptionalSemicolons),a;if((n.useNamedReferences||n.useShortestReferences)&&(a=gW(e,t,n.omitOptionalSemicolons,n.attribute)),(n.useShortestReferences||!a)&&n.useShortestReferences){const o=fW(e,t,n.omitOptionalSemicolons);o.length<r.length&&(r=o)}return a&&(!n.useShortestReferences||a.length<r.length)?a:r}function tu(e,t){return iW(e,Object.assign({format:yW},t))}const vW=/^>|^->|<!--|-->|--!>|<!-$/g,bW=[">"],EW=["<",">"];function TW(e,t,n,r){return r.settings.bogusComments?"<?"+tu(e.value,Object.assign({},r.settings.characterReferences,{subset:bW}))+">":"<!--"+e.value.replace(vW,a)+"-->";function a(o){return tu(o,Object.assign({},r.settings.characterReferences,{subset:EW}))}}function SW(e,t,n,r){return"<!"+(r.settings.upperDoctype?"DOCTYPE":"doctype")+(r.settings.tightDoctype?"":" ")+"html>"}function kg(e,t){const n=String(e);if(typeof t!="string")throw new TypeError("Expected character");let r=0,a=n.indexOf(t);for(;a!==-1;)r++,a=n.indexOf(t,a+t.length);return r}function PE(e){const t=[],n=String(e||"");let r=n.indexOf(","),a=0,o=!1;for(;!o;){r===-1&&(r=n.length,o=!0);const s=n.slice(a,r).trim();(s||!o)&&t.push(s),a=r+1,r=n.indexOf(",",a)}return t}function ky(e,t){const n=t||{};return(e[e.length-1]===""?[...e,""]:e).join((n.padRight?" ":"")+","+(n.padLeft===!1?"":" ")).trim()}function ME(e){const t=String(e||"").trim();return t?t.split(/[ \t\n\r\f]+/g):[]}function Ry(e){return e.join(" ").trim()}const _W=/[ \t\n\f\r]/g;function Lp(e){return typeof e=="object"?e.type==="text"?zD(e.value):!1:zD(e)}function zD(e){return e.replace(_W,"")===""}const hr=RN(1),kN=RN(-1),CW=[];function RN(e){return t;function t(n,r,a){const o=n?n.children:CW;let s=(r||0)+e,c=o[s];if(!a)for(;c&&Lp(c);)s+=e,c=o[s];return c}}const AW={}.hasOwnProperty;function ON(e){return t;function t(n,r,a){return AW.call(e,n.tagName)&&e[n.tagName](n,r,a)}}const BS=ON({body:wW,caption:Xv,colgroup:Xv,dd:OW,dt:RW,head:Xv,html:xW,li:kW,optgroup:IW,option:NW,p:DW,rp:VD,rt:VD,tbody:PW,td:GD,tfoot:MW,th:GD,thead:LW,tr:$W});function Xv(e,t,n){const r=hr(n,t,!0);return!r||r.type!=="comment"&&!(r.type==="text"&&Lp(r.value.charAt(0)))}function xW(e,t,n){const r=hr(n,t);return!r||r.type!=="comment"}function wW(e,t,n){const r=hr(n,t);return!r||r.type!=="comment"}function DW(e,t,n){const r=hr(n,t);return r?r.type==="element"&&(r.tagName==="address"||r.tagName==="article"||r.tagName==="aside"||r.tagName==="blockquote"||r.tagName==="details"||r.tagName==="div"||r.tagName==="dl"||r.tagName==="fieldset"||r.tagName==="figcaption"||r.tagName==="figure"||r.tagName==="footer"||r.tagName==="form"||r.tagName==="h1"||r.tagName==="h2"||r.tagName==="h3"||r.tagName==="h4"||r.tagName==="h5"||r.tagName==="h6"||r.tagName==="header"||r.tagName==="hgroup"||r.tagName==="hr"||r.tagName==="main"||r.tagName==="menu"||r.tagName==="nav"||r.tagName==="ol"||r.tagName==="p"||r.tagName==="pre"||r.tagName==="section"||r.tagName==="table"||r.tagName==="ul"):!n||!(n.type==="element"&&(n.tagName==="a"||n.tagName==="audio"||n.tagName==="del"||n.tagName==="ins"||n.tagName==="map"||n.tagName==="noscript"||n.tagName==="video"))}function kW(e,t,n){const r=hr(n,t);return!r||r.type==="element"&&r.tagName==="li"}function RW(e,t,n){const r=hr(n,t);return!!(r&&r.type==="element"&&(r.tagName==="dt"||r.tagName==="dd"))}function OW(e,t,n){const r=hr(n,t);return!r||r.type==="element"&&(r.tagName==="dt"||r.tagName==="dd")}function VD(e,t,n){const r=hr(n,t);return!r||r.type==="element"&&(r.tagName==="rp"||r.tagName==="rt")}function IW(e,t,n){const r=hr(n,t);return!r||r.type==="element"&&r.tagName==="optgroup"}function NW(e,t,n){const r=hr(n,t);return!r||r.type==="element"&&(r.tagName==="option"||r.tagName==="optgroup")}function LW(e,t,n){const r=hr(n,t);return!!(r&&r.type==="element"&&(r.tagName==="tbody"||r.tagName==="tfoot"))}function PW(e,t,n){const r=hr(n,t);return!r||r.type==="element"&&(r.tagName==="tbody"||r.tagName==="tfoot")}function MW(e,t,n){return!hr(n,t)}function $W(e,t,n){const r=hr(n,t);return!r||r.type==="element"&&r.tagName==="tr"}function GD(e,t,n){const r=hr(n,t);return!r||r.type==="element"&&(r.tagName==="td"||r.tagName==="th")}const FW=ON({body:jW,colgroup:HW,head:UW,html:BW,tbody:zW});function BW(e){const t=hr(e,-1);return!t||t.type!=="comment"}function UW(e){const t=new Set;for(const r of e.children)if(r.type==="element"&&(r.tagName==="base"||r.tagName==="title")){if(t.has(r.tagName))return!1;t.add(r.tagName)}const n=e.children[0];return!n||n.type==="element"}function jW(e){const t=hr(e,-1,!0);return!t||t.type!=="comment"&&!(t.type==="text"&&Lp(t.value.charAt(0)))&&!(t.type==="element"&&(t.tagName==="meta"||t.tagName==="link"||t.tagName==="script"||t.tagName==="style"||t.tagName==="template"))}function HW(e,t,n){const r=kN(n,t),a=hr(e,-1,!0);return n&&r&&r.type==="element"&&r.tagName==="colgroup"&&BS(r,n.children.indexOf(r),n)?!1:!!(a&&a.type==="element"&&a.tagName==="col")}function zW(e,t,n){const r=kN(n,t),a=hr(e,-1);return n&&r&&r.type==="element"&&(r.tagName==="thead"||r.tagName==="tbody")&&BS(r,n.children.indexOf(r),n)?!1:!!(a&&a.type==="element"&&a.tagName==="tr")}const VW=/[A-Z]/g,qD=/-[a-z]/g,GW=/^data[-\w.:]+$/i;function Pp(e,t){const n=Jf(t);let r=t,a=ga;if(n in e.normal)return e.property[e.normal[n]];if(n.length>4&&n.slice(0,4)==="data"&&GW.test(t)){if(t.charAt(4)==="-"){const o=t.slice(5).replace(qD,WW);r="data"+o.charAt(0).toUpperCase()+o.slice(1)}else{const o=t.slice(4);if(!qD.test(o)){let s=o.replace(VW,qW);s.charAt(0)!=="-"&&(s="-"+s),t="data"+s}}a=FS}return new a(r,t)}function qW(e){return"-"+e.toLowerCase()}function WW(e){return e.charAt(1).toUpperCase()}const Tm={name:[[`
228
+ `;const s=this.createOnigString(t),c=s.content.length,u=new Kq(r,t,this._tokenTypeMatchers,this.balancedBracketSelectors),d=vN(this,s,o,0,n,u,!0,a);return pN(s),{lineLength:c,lineTokens:u,ruleStack:d.stack,stoppedEarly:d.stoppedEarly}}};function BD(e,t){return e=pq(e),e.repository=e.repository||{},e.repository.$self={$vscodeTextmateLocation:e.$vscodeTextmateLocation,patterns:e.patterns,name:e.scopeName},e.repository.$base=t||e.repository.$self,e}var bf=class Bo{constructor(t,n,r){this.parent=t,this.scopePath=n,this.tokenAttributes=r}static fromExtension(t,n){let r=t,a=t?.scopePath??null;for(const o of n)a=Wv.push(a,o.scopeNames),r=new Bo(r,a,o.encodedTokenAttributes);return r}static createRoot(t,n){return new Bo(null,new Wv(null,t),n)}static createRootAndLookUpScopeName(t,n,r){const a=r.getMetadataForScope(t),o=new Wv(null,t),s=r.themeProvider.themeMatch(o),c=Bo.mergeAttributes(n,a,s);return new Bo(null,o,c)}get scopeName(){return this.scopePath.scopeName}toString(){return this.getScopeNames().join(" ")}equals(t){return Bo.equals(this,t)}static equals(t,n){do{if(t===n||!t&&!n)return!0;if(!t||!n||t.scopeName!==n.scopeName||t.tokenAttributes!==n.tokenAttributes)return!1;t=t.parent,n=n.parent}while(!0)}static mergeAttributes(t,n,r){let a=-1,o=0,s=0;return r!==null&&(a=r.fontStyle,o=r.foregroundId,s=r.backgroundId),fu.set(t,n.languageId,n.tokenType,null,a,o,s)}pushAttributed(t,n){if(t===null)return this;if(t.indexOf(" ")===-1)return Bo._pushAttributed(this,t,n);const r=t.split(/ /g);let a=this;for(const o of r)a=Bo._pushAttributed(a,o,n);return a}static _pushAttributed(t,n,r){const a=r.getMetadataForScope(n),o=t.scopePath.push(n),s=r.themeProvider.themeMatch(o),c=Bo.mergeAttributes(t.tokenAttributes,a,s);return new Bo(t,o,c)}getScopeNames(){return this.scopePath.getSegments()}getExtensionIfDefined(t){const n=[];let r=this;for(;r&&r!==t;)n.push({encodedTokenAttributes:r.tokenAttributes,scopeNames:r.scopePath.getExtensionIfDefined(r.parent?.scopePath??null)}),r=r.parent;return r===t?n.reverse():void 0}},RE=class sl{constructor(t,n,r,a,o,s,c,u){this.parent=t,this.ruleId=n,this.beginRuleCapturedEOL=o,this.endRule=s,this.nameScopesList=c,this.contentNameScopesList=u,this.depth=this.parent?this.parent.depth+1:1,this._enterPos=r,this._anchorPos=a}_stackElementBrand=void 0;static NULL=new sl(null,0,0,0,!1,null,null,null);_enterPos;_anchorPos;depth;equals(t){return t===null?!1:sl._equals(this,t)}static _equals(t,n){return t===n?!0:this._structuralEquals(t,n)?bf.equals(t.contentNameScopesList,n.contentNameScopesList):!1}static _structuralEquals(t,n){do{if(t===n||!t&&!n)return!0;if(!t||!n||t.depth!==n.depth||t.ruleId!==n.ruleId||t.endRule!==n.endRule)return!1;t=t.parent,n=n.parent}while(!0)}clone(){return this}static _reset(t){for(;t;)t._enterPos=-1,t._anchorPos=-1,t=t.parent}reset(){sl._reset(this)}pop(){return this.parent}safePop(){return this.parent?this.parent:this}push(t,n,r,a,o,s,c){return new sl(this,t,n,r,a,o,s,c)}getEnterPos(){return this._enterPos}getAnchorPos(){return this._anchorPos}getRule(t){return t.getRule(this.ruleId)}toString(){const t=[];return this._writeString(t,0),"["+t.join(",")+"]"}_writeString(t,n){return this.parent&&(n=this.parent._writeString(t,n)),t[n++]=`(${this.ruleId}, ${this.nameScopesList?.toString()}, ${this.contentNameScopesList?.toString()})`,n}withContentNameScopesList(t){return this.contentNameScopesList===t?this:this.parent.push(this.ruleId,this._enterPos,this._anchorPos,this.beginRuleCapturedEOL,this.endRule,this.nameScopesList,t)}withEndRule(t){return this.endRule===t?this:new sl(this.parent,this.ruleId,this._enterPos,this._anchorPos,this.beginRuleCapturedEOL,t,this.nameScopesList,this.contentNameScopesList)}hasSameRuleAs(t){let n=this;for(;n&&n._enterPos===t._enterPos;){if(n.ruleId===t.ruleId)return!0;n=n.parent}return!1}toStateStackFrame(){return{ruleId:this.ruleId,beginRuleCapturedEOL:this.beginRuleCapturedEOL,endRule:this.endRule,nameScopesList:this.nameScopesList?.getExtensionIfDefined(this.parent?.nameScopesList??null)??[],contentNameScopesList:this.contentNameScopesList?.getExtensionIfDefined(this.nameScopesList)??[]}}static pushFrame(t,n){const r=bf.fromExtension(t?.nameScopesList??null,n.nameScopesList);return new sl(t,n.ruleId,n.enterPos??-1,n.anchorPos??-1,n.beginRuleCapturedEOL,n.endRule,r,bf.fromExtension(r,n.contentNameScopesList))}},Qq=class{balancedBracketScopes;unbalancedBracketScopes;allowAny=!1;constructor(t,n){this.balancedBracketScopes=t.flatMap(r=>r==="*"?(this.allowAny=!0,[]):Ag(r,Dg).map(a=>a.matcher)),this.unbalancedBracketScopes=n.flatMap(r=>Ag(r,Dg).map(a=>a.matcher))}get matchesAlways(){return this.allowAny&&this.unbalancedBracketScopes.length===0}get matchesNever(){return this.balancedBracketScopes.length===0&&!this.allowAny}match(t){for(const n of this.unbalancedBracketScopes)if(n(t))return!1;for(const n of this.balancedBracketScopes)if(n(t))return!0;return this.allowAny}},Kq=class{constructor(t,n,r,a){this.balancedBracketSelectors=a,this._emitBinaryTokens=t,this._tokenTypeOverrides=r,this._lineText=null,this._tokens=[],this._binaryTokens=[],this._lastTokenEndIndex=0}_emitBinaryTokens;_lineText;_tokens;_binaryTokens;_lastTokenEndIndex;_tokenTypeOverrides;produce(t,n){this.produceFromScopes(t.contentNameScopesList,n)}produceFromScopes(t,n){if(this._lastTokenEndIndex>=n)return;if(this._emitBinaryTokens){let a=t?.tokenAttributes??0,o=!1;if(this.balancedBracketSelectors?.matchesAlways&&(o=!0),this._tokenTypeOverrides.length>0||this.balancedBracketSelectors&&!this.balancedBracketSelectors.matchesAlways&&!this.balancedBracketSelectors.matchesNever){const s=t?.getScopeNames()??[];for(const c of this._tokenTypeOverrides)c.matcher(s)&&(a=fu.set(a,0,c.type,null,-1,0,0));this.balancedBracketSelectors&&(o=this.balancedBracketSelectors.match(s))}if(o&&(a=fu.set(a,0,8,o,-1,0,0)),this._binaryTokens.length>0&&this._binaryTokens[this._binaryTokens.length-1]===a){this._lastTokenEndIndex=n;return}this._binaryTokens.push(this._lastTokenEndIndex),this._binaryTokens.push(a),this._lastTokenEndIndex=n;return}const r=t?.getScopeNames()??[];this._tokens.push({startIndex:this._lastTokenEndIndex,endIndex:n,scopes:r}),this._lastTokenEndIndex=n}getResult(t,n){return this._tokens.length>0&&this._tokens[this._tokens.length-1].startIndex===n-1&&this._tokens.pop(),this._tokens.length===0&&(this._lastTokenEndIndex=-1,this.produce(t,n),this._tokens[this._tokens.length-1].startIndex=0),this._tokens}getBinaryResult(t,n){this._binaryTokens.length>0&&this._binaryTokens[this._binaryTokens.length-2]===n-1&&(this._binaryTokens.pop(),this._binaryTokens.pop()),this._binaryTokens.length===0&&(this._lastTokenEndIndex=-1,this.produce(t,n),this._binaryTokens[this._binaryTokens.length-2]=0);const r=new Uint32Array(this._binaryTokens.length);for(let a=0,o=this._binaryTokens.length;a<o;a++)r[a]=this._binaryTokens[a];return r}},Xq=class{constructor(t,n){this._onigLib=n,this._theme=t}_grammars=new Map;_rawGrammars=new Map;_injectionGrammars=new Map;_theme;dispose(){for(const t of this._grammars.values())t.dispose()}setTheme(t){this._theme=t}getColorMap(){return this._theme.getColorMap()}addGrammar(t,n){this._rawGrammars.set(t.scopeName,t),n&&this._injectionGrammars.set(t.scopeName,n)}lookup(t){return this._rawGrammars.get(t)}injections(t){return this._injectionGrammars.get(t)}getDefaults(){return this._theme.getDefaults()}themeMatch(t){return this._theme.match(t)}grammarForScopeName(t,n,r,a,o){if(!this._grammars.has(t)){let s=this._rawGrammars.get(t);if(!s)return null;this._grammars.set(t,qq(t,s,n,r,a,o,this,this._onigLib))}return this._grammars.get(t)}},Zq=class{_options;_syncRegistry;_ensureGrammarCache;constructor(t){this._options=t,this._syncRegistry=new Xq(Cg.createFromRawTheme(t.theme,t.colorMap),t.onigLib),this._ensureGrammarCache=new Map}dispose(){this._syncRegistry.dispose()}setTheme(t,n){this._syncRegistry.setTheme(Cg.createFromRawTheme(t,n))}getColorMap(){return this._syncRegistry.getColorMap()}loadGrammarWithEmbeddedLanguages(t,n,r){return this.loadGrammarWithConfiguration(t,n,{embeddedLanguages:r})}loadGrammarWithConfiguration(t,n,r){return this._loadGrammar(t,n,r.embeddedLanguages,r.tokenTypes,new Qq(r.balancedBracketSelectors||[],r.unbalancedBracketSelectors||[]))}loadGrammar(t){return this._loadGrammar(t,0,null,null,null)}_loadGrammar(t,n,r,a,o){const s=new wq(this._syncRegistry,t);for(;s.Q.length>0;)s.Q.map(c=>this._loadSingleGrammar(c.scopeName)),s.processQueue();return this._grammarForScopeName(t,n,r,a,o)}_loadSingleGrammar(t){this._ensureGrammarCache.has(t)||(this._doLoadSingleGrammar(t),this._ensureGrammarCache.set(t,!0))}_doLoadSingleGrammar(t){const n=this._options.loadGrammar(t);if(n){const r=typeof this._options.getInjections=="function"?this._options.getInjections(t):void 0;this._syncRegistry.addGrammar(n,r)}}addGrammar(t,n=[],r=0,a=null){return this._syncRegistry.addGrammar(t,n),this._grammarForScopeName(t.scopeName,r,a)}_grammarForScopeName(t,n=0,r=null,a=null,o=null){return this._syncRegistry.grammarForScopeName(t,n,r,a,o)}},OE=RE.NULL;const EN=["area","base","basefont","bgsound","br","col","command","embed","frame","hr","image","img","input","keygen","link","meta","param","source","track","wbr"];let Np=class{constructor(t,n,r){this.normal=n,this.property=t,r&&(this.space=r)}};Np.prototype.normal={};Np.prototype.property={};Np.prototype.space=void 0;function TN(e,t){const n={},r={};for(const a of e)Object.assign(n,a.property),Object.assign(r,a.normal);return new Np(n,r,t)}function Jf(e){return e.toLowerCase()}let ga=class{constructor(t,n){this.attribute=n,this.property=t}};ga.prototype.attribute="";ga.prototype.booleanish=!1;ga.prototype.boolean=!1;ga.prototype.commaOrSpaceSeparated=!1;ga.prototype.commaSeparated=!1;ga.prototype.defined=!1;ga.prototype.mustUseProperty=!1;ga.prototype.number=!1;ga.prototype.overloadedBoolean=!1;ga.prototype.property="";ga.prototype.spaceSeparated=!1;ga.prototype.space=void 0;let Jq=0;const kt=jl(),ir=jl(),IE=jl(),$e=jl(),Rn=jl(),eu=jl(),xa=jl();function jl(){return 2**++Jq}const NE=Object.freeze(Object.defineProperty({__proto__:null,boolean:kt,booleanish:ir,commaOrSpaceSeparated:xa,commaSeparated:eu,number:$e,overloadedBoolean:IE,spaceSeparated:Rn},Symbol.toStringTag,{value:"Module"})),Qv=Object.keys(NE);let FS=class extends ga{constructor(t,n,r,a){let o=-1;if(super(t,n),UD(this,"space",a),typeof r=="number")for(;++o<Qv.length;){const s=Qv[o];UD(this,Qv[o],(r&NE[s])===NE[s])}}};FS.prototype.defined=!0;function UD(e,t,n){n&&(e[t]=n)}function Su(e){const t={},n={};for(const[r,a]of Object.entries(e.properties)){const o=new FS(r,e.transform(e.attributes||{},r),a,e.space);e.mustUseProperty&&e.mustUseProperty.includes(r)&&(o.mustUseProperty=!0),t[r]=o,n[Jf(r)]=r,n[Jf(o.attribute)]=r}return new Np(t,n,e.space)}const SN=Su({properties:{ariaActiveDescendant:null,ariaAtomic:ir,ariaAutoComplete:null,ariaBusy:ir,ariaChecked:ir,ariaColCount:$e,ariaColIndex:$e,ariaColSpan:$e,ariaControls:Rn,ariaCurrent:null,ariaDescribedBy:Rn,ariaDetails:null,ariaDisabled:ir,ariaDropEffect:Rn,ariaErrorMessage:null,ariaExpanded:ir,ariaFlowTo:Rn,ariaGrabbed:ir,ariaHasPopup:null,ariaHidden:ir,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:Rn,ariaLevel:$e,ariaLive:null,ariaModal:ir,ariaMultiLine:ir,ariaMultiSelectable:ir,ariaOrientation:null,ariaOwns:Rn,ariaPlaceholder:null,ariaPosInSet:$e,ariaPressed:ir,ariaReadOnly:ir,ariaRelevant:null,ariaRequired:ir,ariaRoleDescription:Rn,ariaRowCount:$e,ariaRowIndex:$e,ariaRowSpan:$e,ariaSelected:ir,ariaSetSize:$e,ariaSort:null,ariaValueMax:$e,ariaValueMin:$e,ariaValueNow:$e,ariaValueText:null,role:null},transform(e,t){return t==="role"?t:"aria-"+t.slice(4).toLowerCase()}});function _N(e,t){return t in e?e[t]:t}function CN(e,t){return _N(e,t.toLowerCase())}const eW=Su({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:eu,acceptCharset:Rn,accessKey:Rn,action:null,allow:null,allowFullScreen:kt,allowPaymentRequest:kt,allowUserMedia:kt,alt:null,as:null,async:kt,autoCapitalize:null,autoComplete:Rn,autoFocus:kt,autoPlay:kt,blocking:Rn,capture:null,charSet:null,checked:kt,cite:null,className:Rn,cols:$e,colSpan:null,content:null,contentEditable:ir,controls:kt,controlsList:Rn,coords:$e|eu,crossOrigin:null,data:null,dateTime:null,decoding:null,default:kt,defer:kt,dir:null,dirName:null,disabled:kt,download:IE,draggable:ir,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:kt,formTarget:null,headers:Rn,height:$e,hidden:IE,high:$e,href:null,hrefLang:null,htmlFor:Rn,httpEquiv:Rn,id:null,imageSizes:null,imageSrcSet:null,inert:kt,inputMode:null,integrity:null,is:null,isMap:kt,itemId:null,itemProp:Rn,itemRef:Rn,itemScope:kt,itemType:Rn,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:kt,low:$e,manifest:null,max:null,maxLength:$e,media:null,method:null,min:null,minLength:$e,multiple:kt,muted:kt,name:null,nonce:null,noModule:kt,noValidate:kt,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforeMatch:null,onBeforePrint:null,onBeforeToggle:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextLost:null,onContextMenu:null,onContextRestored:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onScrollEnd:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:kt,optimum:$e,pattern:null,ping:Rn,placeholder:null,playsInline:kt,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:kt,referrerPolicy:null,rel:Rn,required:kt,reversed:kt,rows:$e,rowSpan:$e,sandbox:Rn,scope:null,scoped:kt,seamless:kt,selected:kt,shadowRootClonable:kt,shadowRootDelegatesFocus:kt,shadowRootMode:null,shape:null,size:$e,sizes:null,slot:null,span:$e,spellCheck:ir,src:null,srcDoc:null,srcLang:null,srcSet:null,start:$e,step:null,style:null,tabIndex:$e,target:null,title:null,translate:null,type:null,typeMustMatch:kt,useMap:null,value:ir,width:$e,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:Rn,axis:null,background:null,bgColor:null,border:$e,borderColor:null,bottomMargin:$e,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:kt,declare:kt,event:null,face:null,frame:null,frameBorder:null,hSpace:$e,leftMargin:$e,link:null,longDesc:null,lowSrc:null,marginHeight:$e,marginWidth:$e,noResize:kt,noHref:kt,noShade:kt,noWrap:kt,object:null,profile:null,prompt:null,rev:null,rightMargin:$e,rules:null,scheme:null,scrolling:ir,standby:null,summary:null,text:null,topMargin:$e,valueType:null,version:null,vAlign:null,vLink:null,vSpace:$e,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:kt,disableRemotePlayback:kt,prefix:null,property:null,results:$e,security:null,unselectable:null},space:"html",transform:CN}),tW=Su({attributes:{accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",className:"class",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",crossOrigin:"crossorigin",dataType:"datatype",dominantBaseline:"dominant-baseline",enableBackground:"enable-background",fillOpacity:"fill-opacity",fillRule:"fill-rule",floodColor:"flood-color",floodOpacity:"flood-opacity",fontFamily:"font-family",fontSize:"font-size",fontSizeAdjust:"font-size-adjust",fontStretch:"font-stretch",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",glyphName:"glyph-name",glyphOrientationHorizontal:"glyph-orientation-horizontal",glyphOrientationVertical:"glyph-orientation-vertical",hrefLang:"hreflang",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",horizOriginY:"horiz-origin-y",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",navDown:"nav-down",navDownLeft:"nav-down-left",navDownRight:"nav-down-right",navLeft:"nav-left",navNext:"nav-next",navPrev:"nav-prev",navRight:"nav-right",navUp:"nav-up",navUpLeft:"nav-up-left",navUpRight:"nav-up-right",onAbort:"onabort",onActivate:"onactivate",onAfterPrint:"onafterprint",onBeforePrint:"onbeforeprint",onBegin:"onbegin",onCancel:"oncancel",onCanPlay:"oncanplay",onCanPlayThrough:"oncanplaythrough",onChange:"onchange",onClick:"onclick",onClose:"onclose",onCopy:"oncopy",onCueChange:"oncuechange",onCut:"oncut",onDblClick:"ondblclick",onDrag:"ondrag",onDragEnd:"ondragend",onDragEnter:"ondragenter",onDragExit:"ondragexit",onDragLeave:"ondragleave",onDragOver:"ondragover",onDragStart:"ondragstart",onDrop:"ondrop",onDurationChange:"ondurationchange",onEmptied:"onemptied",onEnd:"onend",onEnded:"onended",onError:"onerror",onFocus:"onfocus",onFocusIn:"onfocusin",onFocusOut:"onfocusout",onHashChange:"onhashchange",onInput:"oninput",onInvalid:"oninvalid",onKeyDown:"onkeydown",onKeyPress:"onkeypress",onKeyUp:"onkeyup",onLoad:"onload",onLoadedData:"onloadeddata",onLoadedMetadata:"onloadedmetadata",onLoadStart:"onloadstart",onMessage:"onmessage",onMouseDown:"onmousedown",onMouseEnter:"onmouseenter",onMouseLeave:"onmouseleave",onMouseMove:"onmousemove",onMouseOut:"onmouseout",onMouseOver:"onmouseover",onMouseUp:"onmouseup",onMouseWheel:"onmousewheel",onOffline:"onoffline",onOnline:"ononline",onPageHide:"onpagehide",onPageShow:"onpageshow",onPaste:"onpaste",onPause:"onpause",onPlay:"onplay",onPlaying:"onplaying",onPopState:"onpopstate",onProgress:"onprogress",onRateChange:"onratechange",onRepeat:"onrepeat",onReset:"onreset",onResize:"onresize",onScroll:"onscroll",onSeeked:"onseeked",onSeeking:"onseeking",onSelect:"onselect",onShow:"onshow",onStalled:"onstalled",onStorage:"onstorage",onSubmit:"onsubmit",onSuspend:"onsuspend",onTimeUpdate:"ontimeupdate",onToggle:"ontoggle",onUnload:"onunload",onVolumeChange:"onvolumechange",onWaiting:"onwaiting",onZoom:"onzoom",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",referrerPolicy:"referrerpolicy",renderingIntent:"rendering-intent",shapeRendering:"shape-rendering",stopColor:"stop-color",stopOpacity:"stop-opacity",strikethroughPosition:"strikethrough-position",strikethroughThickness:"strikethrough-thickness",strokeDashArray:"stroke-dasharray",strokeDashOffset:"stroke-dashoffset",strokeLineCap:"stroke-linecap",strokeLineJoin:"stroke-linejoin",strokeMiterLimit:"stroke-miterlimit",strokeOpacity:"stroke-opacity",strokeWidth:"stroke-width",tabIndex:"tabindex",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",transformOrigin:"transform-origin",typeOf:"typeof",underlinePosition:"underline-position",underlineThickness:"underline-thickness",unicodeBidi:"unicode-bidi",unicodeRange:"unicode-range",unitsPerEm:"units-per-em",vAlphabetic:"v-alphabetic",vHanging:"v-hanging",vIdeographic:"v-ideographic",vMathematical:"v-mathematical",vectorEffect:"vector-effect",vertAdvY:"vert-adv-y",vertOriginX:"vert-origin-x",vertOriginY:"vert-origin-y",wordSpacing:"word-spacing",writingMode:"writing-mode",xHeight:"x-height",playbackOrder:"playbackorder",timelineBegin:"timelinebegin"},properties:{about:xa,accentHeight:$e,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:$e,amplitude:$e,arabicForm:null,ascent:$e,attributeName:null,attributeType:null,azimuth:$e,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:$e,by:null,calcMode:null,capHeight:$e,className:Rn,clip:null,clipPath:null,clipPathUnits:null,clipRule:null,color:null,colorInterpolation:null,colorInterpolationFilters:null,colorProfile:null,colorRendering:null,content:null,contentScriptType:null,contentStyleType:null,crossOrigin:null,cursor:null,cx:null,cy:null,d:null,dataType:null,defaultAction:null,descent:$e,diffuseConstant:$e,direction:null,display:null,dur:null,divisor:$e,dominantBaseline:null,download:kt,dx:null,dy:null,edgeMode:null,editable:null,elevation:$e,enableBackground:null,end:null,event:null,exponent:$e,externalResourcesRequired:null,fill:null,fillOpacity:$e,fillRule:null,filter:null,filterRes:null,filterUnits:null,floodColor:null,floodOpacity:null,focusable:null,focusHighlight:null,fontFamily:null,fontSize:null,fontSizeAdjust:null,fontStretch:null,fontStyle:null,fontVariant:null,fontWeight:null,format:null,fr:null,from:null,fx:null,fy:null,g1:eu,g2:eu,glyphName:eu,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:$e,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:$e,horizOriginX:$e,horizOriginY:$e,id:null,ideographic:$e,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:$e,k:$e,k1:$e,k2:$e,k3:$e,k4:$e,kernelMatrix:xa,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:$e,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:$e,mediaTime:null,method:null,min:null,mode:null,name:null,navDown:null,navDownLeft:null,navDownRight:null,navLeft:null,navNext:null,navPrev:null,navRight:null,navUp:null,navUpLeft:null,navUpRight:null,numOctaves:null,observer:null,offset:null,onAbort:null,onActivate:null,onAfterPrint:null,onBeforePrint:null,onBegin:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnd:null,onEnded:null,onError:null,onFocus:null,onFocusIn:null,onFocusOut:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadStart:null,onMessage:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onMouseWheel:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRepeat:null,onReset:null,onResize:null,onScroll:null,onSeeked:null,onSeeking:null,onSelect:null,onShow:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnload:null,onVolumeChange:null,onWaiting:null,onZoom:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:$e,overlineThickness:$e,paintOrder:null,panose1:null,path:null,pathLength:$e,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:Rn,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:$e,pointsAtY:$e,pointsAtZ:$e,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:xa,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:xa,rev:xa,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:xa,requiredFeatures:xa,requiredFonts:xa,requiredFormats:xa,resource:null,restart:null,result:null,rotate:null,rx:null,ry:null,scale:null,seed:null,shapeRendering:null,side:null,slope:null,snapshotTime:null,specularConstant:$e,specularExponent:$e,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:$e,strikethroughThickness:$e,string:null,stroke:null,strokeDashArray:xa,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:$e,strokeOpacity:$e,strokeWidth:null,style:null,surfaceScale:$e,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:xa,tabIndex:$e,tableValues:null,target:null,targetX:$e,targetY:$e,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:xa,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:$e,underlineThickness:$e,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:$e,values:null,vAlphabetic:$e,vMathematical:$e,vectorEffect:null,vHanging:$e,vIdeographic:$e,version:null,vertAdvY:$e,vertOriginX:$e,vertOriginY:$e,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:$e,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:_N}),AN=Su({properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null},space:"xlink",transform(e,t){return"xlink:"+t.slice(5).toLowerCase()}}),xN=Su({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:CN}),wN=Su({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform(e,t){return"xml:"+t.slice(3).toLowerCase()}}),_u=TN([SN,eW,AN,xN,wN],"html"),Bi=TN([SN,tW,AN,xN,wN],"svg"),jD={}.hasOwnProperty;function ky(e,t){const n=t||{};function r(a,...o){let s=r.invalid;const c=r.handlers;if(a&&jD.call(a,e)){const u=String(a[e]);s=jD.call(c,u)?c[u]:r.unknown}if(s)return s.call(this,a,...o)}return r.handlers=n.handlers||{},r.invalid=n.invalid,r.unknown=n.unknown,r}const nW=/["&'<>`]/g,rW=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,aW=/[\x01-\t\v\f\x0E-\x1F\x7F\x81\x8D\x8F\x90\x9D\xA0-\uFFFF]/g,oW=/[|\\{}()[\]^$+*?.]/g,HD=new WeakMap;function iW(e,t){if(e=e.replace(t.subset?sW(t.subset):nW,r),t.subset||t.escapeOnly)return e;return e.replace(rW,n).replace(aW,r);function n(a,o,s){return t.format((a.charCodeAt(0)-55296)*1024+a.charCodeAt(1)-56320+65536,s.charCodeAt(o+2),t)}function r(a,o,s){return t.format(a.charCodeAt(0),s.charCodeAt(o+1),t)}}function sW(e){let t=HD.get(e);return t||(t=lW(e),HD.set(e,t)),t}function lW(e){const t=[];let n=-1;for(;++n<e.length;)t.push(e[n].replace(oW,"\\$&"));return new RegExp("(?:"+t.join("|")+")","g")}const cW=/[\dA-Fa-f]/;function uW(e,t,n){const r="&#x"+e.toString(16).toUpperCase();return n&&t&&!cW.test(String.fromCharCode(t))?r:r+";"}const dW=/\d/;function fW(e,t,n){const r="&#"+String(e);return n&&t&&!dW.test(String.fromCharCode(t))?r:r+";"}const pW=["AElig","AMP","Aacute","Acirc","Agrave","Aring","Atilde","Auml","COPY","Ccedil","ETH","Eacute","Ecirc","Egrave","Euml","GT","Iacute","Icirc","Igrave","Iuml","LT","Ntilde","Oacute","Ocirc","Ograve","Oslash","Otilde","Ouml","QUOT","REG","THORN","Uacute","Ucirc","Ugrave","Uuml","Yacute","aacute","acirc","acute","aelig","agrave","amp","aring","atilde","auml","brvbar","ccedil","cedil","cent","copy","curren","deg","divide","eacute","ecirc","egrave","eth","euml","frac12","frac14","frac34","gt","iacute","icirc","iexcl","igrave","iquest","iuml","laquo","lt","macr","micro","middot","nbsp","not","ntilde","oacute","ocirc","ograve","ordf","ordm","oslash","otilde","ouml","para","plusmn","pound","quot","raquo","reg","sect","shy","sup1","sup2","sup3","szlig","thorn","times","uacute","ucirc","ugrave","uml","uuml","yacute","yen","yuml"],Kv={nbsp:" ",iexcl:"¡",cent:"¢",pound:"£",curren:"¤",yen:"¥",brvbar:"¦",sect:"§",uml:"¨",copy:"©",ordf:"ª",laquo:"«",not:"¬",shy:"­",reg:"®",macr:"¯",deg:"°",plusmn:"±",sup2:"²",sup3:"³",acute:"´",micro:"µ",para:"¶",middot:"·",cedil:"¸",sup1:"¹",ordm:"º",raquo:"»",frac14:"¼",frac12:"½",frac34:"¾",iquest:"¿",Agrave:"À",Aacute:"Á",Acirc:"Â",Atilde:"Ã",Auml:"Ä",Aring:"Å",AElig:"Æ",Ccedil:"Ç",Egrave:"È",Eacute:"É",Ecirc:"Ê",Euml:"Ë",Igrave:"Ì",Iacute:"Í",Icirc:"Î",Iuml:"Ï",ETH:"Ð",Ntilde:"Ñ",Ograve:"Ò",Oacute:"Ó",Ocirc:"Ô",Otilde:"Õ",Ouml:"Ö",times:"×",Oslash:"Ø",Ugrave:"Ù",Uacute:"Ú",Ucirc:"Û",Uuml:"Ü",Yacute:"Ý",THORN:"Þ",szlig:"ß",agrave:"à",aacute:"á",acirc:"â",atilde:"ã",auml:"ä",aring:"å",aelig:"æ",ccedil:"ç",egrave:"è",eacute:"é",ecirc:"ê",euml:"ë",igrave:"ì",iacute:"í",icirc:"î",iuml:"ï",eth:"ð",ntilde:"ñ",ograve:"ò",oacute:"ó",ocirc:"ô",otilde:"õ",ouml:"ö",divide:"÷",oslash:"ø",ugrave:"ù",uacute:"ú",ucirc:"û",uuml:"ü",yacute:"ý",thorn:"þ",yuml:"ÿ",fnof:"ƒ",Alpha:"Α",Beta:"Β",Gamma:"Γ",Delta:"Δ",Epsilon:"Ε",Zeta:"Ζ",Eta:"Η",Theta:"Θ",Iota:"Ι",Kappa:"Κ",Lambda:"Λ",Mu:"Μ",Nu:"Ν",Xi:"Ξ",Omicron:"Ο",Pi:"Π",Rho:"Ρ",Sigma:"Σ",Tau:"Τ",Upsilon:"Υ",Phi:"Φ",Chi:"Χ",Psi:"Ψ",Omega:"Ω",alpha:"α",beta:"β",gamma:"γ",delta:"δ",epsilon:"ε",zeta:"ζ",eta:"η",theta:"θ",iota:"ι",kappa:"κ",lambda:"λ",mu:"μ",nu:"ν",xi:"ξ",omicron:"ο",pi:"π",rho:"ρ",sigmaf:"ς",sigma:"σ",tau:"τ",upsilon:"υ",phi:"φ",chi:"χ",psi:"ψ",omega:"ω",thetasym:"ϑ",upsih:"ϒ",piv:"ϖ",bull:"•",hellip:"…",prime:"′",Prime:"″",oline:"‾",frasl:"⁄",weierp:"℘",image:"ℑ",real:"ℜ",trade:"™",alefsym:"ℵ",larr:"←",uarr:"↑",rarr:"→",darr:"↓",harr:"↔",crarr:"↵",lArr:"⇐",uArr:"⇑",rArr:"⇒",dArr:"⇓",hArr:"⇔",forall:"∀",part:"∂",exist:"∃",empty:"∅",nabla:"∇",isin:"∈",notin:"∉",ni:"∋",prod:"∏",sum:"∑",minus:"−",lowast:"∗",radic:"√",prop:"∝",infin:"∞",ang:"∠",and:"∧",or:"∨",cap:"∩",cup:"∪",int:"∫",there4:"∴",sim:"∼",cong:"≅",asymp:"≈",ne:"≠",equiv:"≡",le:"≤",ge:"≥",sub:"⊂",sup:"⊃",nsub:"⊄",sube:"⊆",supe:"⊇",oplus:"⊕",otimes:"⊗",perp:"⊥",sdot:"⋅",lceil:"⌈",rceil:"⌉",lfloor:"⌊",rfloor:"⌋",lang:"〈",rang:"〉",loz:"◊",spades:"♠",clubs:"♣",hearts:"♥",diams:"♦",quot:'"',amp:"&",lt:"<",gt:">",OElig:"Œ",oelig:"œ",Scaron:"Š",scaron:"š",Yuml:"Ÿ",circ:"ˆ",tilde:"˜",ensp:" ",emsp:" ",thinsp:" ",zwnj:"‌",zwj:"‍",lrm:"‎",rlm:"‏",ndash:"–",mdash:"—",lsquo:"‘",rsquo:"’",sbquo:"‚",ldquo:"“",rdquo:"”",bdquo:"„",dagger:"†",Dagger:"‡",permil:"‰",lsaquo:"‹",rsaquo:"›",euro:"€"},hW=["cent","copy","divide","gt","lt","not","para","times"],DN={}.hasOwnProperty,LE={};let Em;for(Em in Kv)DN.call(Kv,Em)&&(LE[Kv[Em]]=Em);const mW=/[^\dA-Za-z]/;function gW(e,t,n,r){const a=String.fromCharCode(e);if(DN.call(LE,a)){const o=LE[a],s="&"+o;return n&&pW.includes(o)&&!hW.includes(o)&&(!r||t&&t!==61&&mW.test(String.fromCharCode(t)))?s:s+";"}return""}function yW(e,t,n){let r=uW(e,t,n.omitOptionalSemicolons),a;if((n.useNamedReferences||n.useShortestReferences)&&(a=gW(e,t,n.omitOptionalSemicolons,n.attribute)),(n.useShortestReferences||!a)&&n.useShortestReferences){const o=fW(e,t,n.omitOptionalSemicolons);o.length<r.length&&(r=o)}return a&&(!n.useShortestReferences||a.length<r.length)?a:r}function tu(e,t){return iW(e,Object.assign({format:yW},t))}const vW=/^>|^->|<!--|-->|--!>|<!-$/g,bW=[">"],EW=["<",">"];function TW(e,t,n,r){return r.settings.bogusComments?"<?"+tu(e.value,Object.assign({},r.settings.characterReferences,{subset:bW}))+">":"<!--"+e.value.replace(vW,a)+"-->";function a(o){return tu(o,Object.assign({},r.settings.characterReferences,{subset:EW}))}}function SW(e,t,n,r){return"<!"+(r.settings.upperDoctype?"DOCTYPE":"doctype")+(r.settings.tightDoctype?"":" ")+"html>"}function kg(e,t){const n=String(e);if(typeof t!="string")throw new TypeError("Expected character");let r=0,a=n.indexOf(t);for(;a!==-1;)r++,a=n.indexOf(t,a+t.length);return r}function PE(e){const t=[],n=String(e||"");let r=n.indexOf(","),a=0,o=!1;for(;!o;){r===-1&&(r=n.length,o=!0);const s=n.slice(a,r).trim();(s||!o)&&t.push(s),a=r+1,r=n.indexOf(",",a)}return t}function Ry(e,t){const n=t||{};return(e[e.length-1]===""?[...e,""]:e).join((n.padRight?" ":"")+","+(n.padLeft===!1?"":" ")).trim()}function ME(e){const t=String(e||"").trim();return t?t.split(/[ \t\n\r\f]+/g):[]}function Oy(e){return e.join(" ").trim()}const _W=/[ \t\n\f\r]/g;function Lp(e){return typeof e=="object"?e.type==="text"?zD(e.value):!1:zD(e)}function zD(e){return e.replace(_W,"")===""}const hr=RN(1),kN=RN(-1),CW=[];function RN(e){return t;function t(n,r,a){const o=n?n.children:CW;let s=(r||0)+e,c=o[s];if(!a)for(;c&&Lp(c);)s+=e,c=o[s];return c}}const AW={}.hasOwnProperty;function ON(e){return t;function t(n,r,a){return AW.call(e,n.tagName)&&e[n.tagName](n,r,a)}}const BS=ON({body:wW,caption:Xv,colgroup:Xv,dd:OW,dt:RW,head:Xv,html:xW,li:kW,optgroup:IW,option:NW,p:DW,rp:VD,rt:VD,tbody:PW,td:GD,tfoot:MW,th:GD,thead:LW,tr:$W});function Xv(e,t,n){const r=hr(n,t,!0);return!r||r.type!=="comment"&&!(r.type==="text"&&Lp(r.value.charAt(0)))}function xW(e,t,n){const r=hr(n,t);return!r||r.type!=="comment"}function wW(e,t,n){const r=hr(n,t);return!r||r.type!=="comment"}function DW(e,t,n){const r=hr(n,t);return r?r.type==="element"&&(r.tagName==="address"||r.tagName==="article"||r.tagName==="aside"||r.tagName==="blockquote"||r.tagName==="details"||r.tagName==="div"||r.tagName==="dl"||r.tagName==="fieldset"||r.tagName==="figcaption"||r.tagName==="figure"||r.tagName==="footer"||r.tagName==="form"||r.tagName==="h1"||r.tagName==="h2"||r.tagName==="h3"||r.tagName==="h4"||r.tagName==="h5"||r.tagName==="h6"||r.tagName==="header"||r.tagName==="hgroup"||r.tagName==="hr"||r.tagName==="main"||r.tagName==="menu"||r.tagName==="nav"||r.tagName==="ol"||r.tagName==="p"||r.tagName==="pre"||r.tagName==="section"||r.tagName==="table"||r.tagName==="ul"):!n||!(n.type==="element"&&(n.tagName==="a"||n.tagName==="audio"||n.tagName==="del"||n.tagName==="ins"||n.tagName==="map"||n.tagName==="noscript"||n.tagName==="video"))}function kW(e,t,n){const r=hr(n,t);return!r||r.type==="element"&&r.tagName==="li"}function RW(e,t,n){const r=hr(n,t);return!!(r&&r.type==="element"&&(r.tagName==="dt"||r.tagName==="dd"))}function OW(e,t,n){const r=hr(n,t);return!r||r.type==="element"&&(r.tagName==="dt"||r.tagName==="dd")}function VD(e,t,n){const r=hr(n,t);return!r||r.type==="element"&&(r.tagName==="rp"||r.tagName==="rt")}function IW(e,t,n){const r=hr(n,t);return!r||r.type==="element"&&r.tagName==="optgroup"}function NW(e,t,n){const r=hr(n,t);return!r||r.type==="element"&&(r.tagName==="option"||r.tagName==="optgroup")}function LW(e,t,n){const r=hr(n,t);return!!(r&&r.type==="element"&&(r.tagName==="tbody"||r.tagName==="tfoot"))}function PW(e,t,n){const r=hr(n,t);return!r||r.type==="element"&&(r.tagName==="tbody"||r.tagName==="tfoot")}function MW(e,t,n){return!hr(n,t)}function $W(e,t,n){const r=hr(n,t);return!r||r.type==="element"&&r.tagName==="tr"}function GD(e,t,n){const r=hr(n,t);return!r||r.type==="element"&&(r.tagName==="td"||r.tagName==="th")}const FW=ON({body:jW,colgroup:HW,head:UW,html:BW,tbody:zW});function BW(e){const t=hr(e,-1);return!t||t.type!=="comment"}function UW(e){const t=new Set;for(const r of e.children)if(r.type==="element"&&(r.tagName==="base"||r.tagName==="title")){if(t.has(r.tagName))return!1;t.add(r.tagName)}const n=e.children[0];return!n||n.type==="element"}function jW(e){const t=hr(e,-1,!0);return!t||t.type!=="comment"&&!(t.type==="text"&&Lp(t.value.charAt(0)))&&!(t.type==="element"&&(t.tagName==="meta"||t.tagName==="link"||t.tagName==="script"||t.tagName==="style"||t.tagName==="template"))}function HW(e,t,n){const r=kN(n,t),a=hr(e,-1,!0);return n&&r&&r.type==="element"&&r.tagName==="colgroup"&&BS(r,n.children.indexOf(r),n)?!1:!!(a&&a.type==="element"&&a.tagName==="col")}function zW(e,t,n){const r=kN(n,t),a=hr(e,-1);return n&&r&&r.type==="element"&&(r.tagName==="thead"||r.tagName==="tbody")&&BS(r,n.children.indexOf(r),n)?!1:!!(a&&a.type==="element"&&a.tagName==="tr")}const VW=/[A-Z]/g,qD=/-[a-z]/g,GW=/^data[-\w.:]+$/i;function Pp(e,t){const n=Jf(t);let r=t,a=ga;if(n in e.normal)return e.property[e.normal[n]];if(n.length>4&&n.slice(0,4)==="data"&&GW.test(t)){if(t.charAt(4)==="-"){const o=t.slice(5).replace(qD,WW);r="data"+o.charAt(0).toUpperCase()+o.slice(1)}else{const o=t.slice(4);if(!qD.test(o)){let s=o.replace(VW,qW);s.charAt(0)!=="-"&&(s="-"+s),t="data"+s}}a=FS}return new a(r,t)}function qW(e){return"-"+e.toLowerCase()}function WW(e){return e.charAt(1).toUpperCase()}const Tm={name:[[`
229
229
  \f\r &/=>`.split(""),`
230
230
  \f\r "&'/=>\``.split("")],[`\0
231
231
  \f\r "&'/<=>`.split(""),`\0
@@ -233,13 +233,13 @@ export default theme;`}const Iz=e=>{const t=Object.keys(e).map(n=>({key:n,val:e[
233
233
  \f\r &>`.split(""),`\0
234
234
  \f\r "&'<=>\``.split("")],[`\0
235
235
  \f\r "&'<=>\``.split(""),`\0
236
- \f\r "&'<=>\``.split("")]],single:[["&'".split(""),"\"&'`".split("")],["\0&'".split(""),"\0\"&'`".split("")]],double:[['"&'.split(""),"\"&'`".split("")],['\0"&'.split(""),"\0\"&'`".split("")]]};function YW(e,t,n,r){const a=r.schema,o=a.space==="svg"?!1:r.settings.omitOptionalTags;let s=a.space==="svg"?r.settings.closeEmptyElements:r.settings.voids.includes(e.tagName.toLowerCase());const c=[];let u;a.space==="html"&&e.tagName==="svg"&&(r.schema=Bi);const d=QW(r,e.properties),p=r.all(a.space==="html"&&e.tagName==="template"?e.content:e);return r.schema=a,p&&(s=!1),(d||!o||!FW(e,t,n))&&(c.push("<",e.tagName,d?" "+d:""),s&&(a.space==="svg"||r.settings.closeSelfClosing)&&(u=d.charAt(d.length-1),(!r.settings.tightSelfClosing||u==="/"||u&&u!=='"'&&u!=="'")&&c.push(" "),c.push("/")),c.push(">")),c.push(p),!s&&(!o||!BS(e,t,n))&&c.push("</"+e.tagName+">"),c.join("")}function QW(e,t){const n=[];let r=-1,a;if(t){for(a in t)if(t[a]!==null&&t[a]!==void 0){const o=KW(e,a,t[a]);o&&n.push(o)}}for(;++r<n.length;){const o=e.settings.tightAttributes?n[r].charAt(n[r].length-1):void 0;r!==n.length-1&&o!=='"'&&o!=="'"&&(n[r]+=" ")}return n.join("")}function KW(e,t,n){const r=Pp(e.schema,t),a=e.settings.allowParseErrors&&e.schema.space==="html"?0:1,o=e.settings.allowDangerousCharacters?0:1;let s=e.quote,c;if(r.overloadedBoolean&&(n===r.attribute||n==="")?n=!0:(r.boolean||r.overloadedBoolean)&&(typeof n!="string"||n===r.attribute||n==="")&&(n=!!n),n==null||n===!1||typeof n=="number"&&Number.isNaN(n))return"";const u=tu(r.attribute,Object.assign({},e.settings.characterReferences,{subset:Tm.name[a][o]}));return n===!0||(n=Array.isArray(n)?(r.commaSeparated?ky:Ry)(n,{padLeft:!e.settings.tightCommaSeparatedLists}):String(n),e.settings.collapseEmptyAttributes&&!n)?u:(e.settings.preferUnquoted&&(c=tu(n,Object.assign({},e.settings.characterReferences,{attribute:!0,subset:Tm.unquoted[a][o]}))),c!==n&&(e.settings.quoteSmart&&kg(n,s)>kg(n,e.alternative)&&(s=e.alternative),c=s+tu(n,Object.assign({},e.settings.characterReferences,{subset:(s==="'"?Tm.single:Tm.double)[a][o],attribute:!0}))+s),u+(c&&"="+c))}const XW=["<","&"];function IN(e,t,n,r){return n&&n.type==="element"&&(n.tagName==="script"||n.tagName==="style")?e.value:tu(e.value,Object.assign({},r.settings.characterReferences,{subset:XW}))}function ZW(e,t,n,r){return r.settings.allowDangerousHtml?e.value:IN(e,t,n,r)}function JW(e,t,n,r){return r.all(e)}const eY=Dy("type",{invalid:tY,unknown:nY,handlers:{comment:TW,doctype:SW,element:YW,raw:ZW,root:JW,text:IN}});function tY(e){throw new Error("Expected node, not `"+e+"`")}function nY(e){const t=e;throw new Error("Cannot compile unknown node `"+t.type+"`")}const rY={},aY={},oY=[];function iY(e,t){const n=rY,r=n.quote||'"',a=r==='"'?"'":'"';if(r!=='"'&&r!=="'")throw new Error("Invalid quote `"+r+"`, expected `'` or `\"`");return{one:sY,all:lY,settings:{omitOptionalTags:n.omitOptionalTags||!1,allowParseErrors:n.allowParseErrors||!1,allowDangerousCharacters:n.allowDangerousCharacters||!1,quoteSmart:n.quoteSmart||!1,preferUnquoted:n.preferUnquoted||!1,tightAttributes:n.tightAttributes||!1,upperDoctype:n.upperDoctype||!1,tightDoctype:n.tightDoctype||!1,bogusComments:n.bogusComments||!1,tightCommaSeparatedLists:n.tightCommaSeparatedLists||!1,tightSelfClosing:n.tightSelfClosing||!1,collapseEmptyAttributes:n.collapseEmptyAttributes||!1,allowDangerousHtml:n.allowDangerousHtml||!1,voids:n.voids||EN,characterReferences:n.characterReferences||aY,closeSelfClosing:n.closeSelfClosing||!1,closeEmptyElements:n.closeEmptyElements||!1},schema:n.space==="svg"?Bi:_u,quote:r,alternative:a}.one(Array.isArray(e)?{type:"root",children:e}:e,void 0,void 0)}function sY(e,t,n){return eY(e,t,n,this)}function lY(e){const t=[],n=e&&e.children||oY;let r=-1;for(;++r<n.length;)t[r]=this.one(n[r],r,e);return t.join("")}function cY(e){return Array.isArray(e)?e:[e]}function Oy(e,t=!1){const n=e.split(/(\r?\n)/g);let r=0;const a=[];for(let o=0;o<n.length;o+=2){const s=t?n[o]+(n[o+1]||""):n[o];a.push([s,r]),r+=n[o].length,r+=n[o+1]?.length||0}return a}function US(e){return!e||["plaintext","txt","text","plain"].includes(e)}function NN(e){return e==="ansi"||US(e)}function jS(e){return e==="none"}function LN(e){return jS(e)}function PN(e,t){if(!t)return e;e.properties||={},e.properties.class||=[],typeof e.properties.class=="string"&&(e.properties.class=e.properties.class.split(/\s+/g)),Array.isArray(e.properties.class)||(e.properties.class=[]);const n=Array.isArray(t)?t:t.split(/\s+/g);for(const r of n)r&&!e.properties.class.includes(r)&&e.properties.class.push(r);return e}function uY(e,t){let n=0;const r=[];for(const a of t)a>n&&r.push({...e,content:e.content.slice(n,a),offset:e.offset+n}),n=a;return n<e.content.length&&r.push({...e,content:e.content.slice(n),offset:e.offset+n}),r}function dY(e,t){const n=Array.from(t instanceof Set?t:new Set(t)).sort((r,a)=>r-a);return n.length?e.map(r=>r.flatMap(a=>{const o=n.filter(s=>a.offset<s&&s<a.offset+a.content.length).map(s=>s-a.offset).sort((s,c)=>s-c);return o.length?uY(a,o):a})):e}async function MN(e){return Promise.resolve(typeof e=="function"?e():e).then(t=>t.default||t)}function Rg(e,t){const n=typeof e=="string"?{}:{...e.colorReplacements},r=typeof e=="string"?e:e.name;for(const[a,o]of Object.entries(t?.colorReplacements||{}))typeof o=="string"?n[a]=o:a===r&&Object.assign(n,o);return n}function gl(e,t){return e&&(t?.[e?.toLowerCase()]||e)}function $N(e){const t={};return e.color&&(t.color=e.color),e.bgColor&&(t["background-color"]=e.bgColor),e.fontStyle&&(e.fontStyle&Ri.Italic&&(t["font-style"]="italic"),e.fontStyle&Ri.Bold&&(t["font-weight"]="bold"),e.fontStyle&Ri.Underline&&(t["text-decoration"]="underline")),t}function fY(e){return typeof e=="string"?e:Object.entries(e).map(([t,n])=>`${t}:${n}`).join(";")}function pY(e){const t=Oy(e,!0).map(([a])=>a);function n(a){if(a===e.length)return{line:t.length-1,character:t[t.length-1].length};let o=a,s=0;for(const c of t){if(o<c.length)break;o-=c.length,s++}return{line:s,character:o}}function r(a,o){let s=0;for(let c=0;c<a;c++)s+=t[c].length;return s+=o,s}return{lines:t,indexToPos:n,posToIndex:r}}let Wr=class extends Error{constructor(t){super(t),this.name="ShikiError"}};const FN=new WeakMap;function Iy(e,t){FN.set(e,t)}function ep(e){return FN.get(e)}let Ny=class BN{_stacks={};lang;get themes(){return Object.keys(this._stacks)}get theme(){return this.themes[0]}get _stack(){return this._stacks[this.theme]}static initial(t,n){return new BN(Object.fromEntries(cY(n).map(r=>[r,OE])),t)}constructor(...t){if(t.length===2){const[n,r]=t;this.lang=r,this._stacks=n}else{const[n,r,a]=t;this.lang=r,this._stacks={[a]:n}}}getInternalStack(t=this.theme){return this._stacks[t]}get scopes(){return WD(this._stacks[this.theme])}getScopes(t=this.theme){return WD(this._stacks[t])}toJSON(){return{lang:this.lang,theme:this.theme,themes:this.themes,scopes:this.scopes}}};function WD(e){const t=[],n=new Set;function r(a){if(n.has(a))return;n.add(a);const o=a?.nameScopesList?.scopeName;o&&t.push(o),a.parent&&r(a.parent)}return r(e),t}function hY(e,t){if(!(e instanceof Ny))throw new Wr("Invalid grammar state");return e.getInternalStack(t)}function mY(){const e=new WeakMap;function t(n){if(!e.has(n.meta)){let r=function(s){if(typeof s=="number"){if(s<0||s>n.source.length)throw new Wr(`Invalid decoration offset: ${s}. Code length: ${n.source.length}`);return{...a.indexToPos(s),offset:s}}else{const c=a.lines[s.line];if(c===void 0)throw new Wr(`Invalid decoration position ${JSON.stringify(s)}. Lines length: ${a.lines.length}`);if(s.character<0||s.character>c.length)throw new Wr(`Invalid decoration position ${JSON.stringify(s)}. Line ${s.line} length: ${c.length}`);return{...s,offset:a.posToIndex(s.line,s.character)}}};const a=pY(n.source),o=(n.options.decorations||[]).map(s=>({...s,start:r(s.start),end:r(s.end)}));gY(o),e.set(n.meta,{decorations:o,converter:a,source:n.source})}return e.get(n.meta)}return{name:"shiki:decorations",tokens(n){if(!this.options.decorations?.length)return;const r=t(this).decorations.flatMap(a=>[a.start.offset,a.end.offset]);return dY(n,r)},code(n){if(!this.options.decorations?.length)return;const r=t(this),a=Array.from(n.children).filter(p=>p.type==="element"&&p.tagName==="span");if(a.length!==r.converter.lines.length)throw new Wr(`Number of lines in code element (${a.length}) does not match the number of lines in the source (${r.converter.lines.length}). Failed to apply decorations.`);function o(p,h,g,y){const b=a[p];let E="",_=-1,A=-1;if(h===0&&(_=0),g===0&&(A=0),g===Number.POSITIVE_INFINITY&&(A=b.children.length),_===-1||A===-1)for(let w=0;w<b.children.length;w++)E+=UN(b.children[w]),_===-1&&E.length===h&&(_=w+1),A===-1&&E.length===g&&(A=w+1);if(_===-1)throw new Wr(`Failed to find start index for decoration ${JSON.stringify(y.start)}`);if(A===-1)throw new Wr(`Failed to find end index for decoration ${JSON.stringify(y.end)}`);const D=b.children.slice(_,A);if(!y.alwaysWrap&&D.length===b.children.length)c(b,y,"line");else if(!y.alwaysWrap&&D.length===1&&D[0].type==="element")c(D[0],y,"token");else{const w={type:"element",tagName:"span",properties:{},children:D};c(w,y,"wrapper"),b.children.splice(_,D.length,w)}}function s(p,h){a[p]=c(a[p],h,"line")}function c(p,h,g){const y=h.properties||{},b=h.transform||(E=>E);return p.tagName=h.tagName||"span",p.properties={...p.properties,...y,class:p.properties.class},h.properties?.class&&PN(p,h.properties.class),p=b(p,g)||p,p}const u=[],d=r.decorations.sort((p,h)=>h.start.offset-p.start.offset);for(const p of d){const{start:h,end:g}=p;if(h.line===g.line)o(h.line,h.character,g.character,p);else if(h.line<g.line){o(h.line,h.character,Number.POSITIVE_INFINITY,p);for(let y=h.line+1;y<g.line;y++)u.unshift(()=>s(y,p));o(g.line,0,g.character,p)}}u.forEach(p=>p())}}}function gY(e){for(let t=0;t<e.length;t++){const n=e[t];if(n.start.offset>n.end.offset)throw new Wr(`Invalid decoration range: ${JSON.stringify(n.start)} - ${JSON.stringify(n.end)}`);for(let r=t+1;r<e.length;r++){const a=e[r],o=n.start.offset<a.start.offset&&a.start.offset<n.end.offset,s=n.start.offset<a.end.offset&&a.end.offset<n.end.offset,c=a.start.offset<n.start.offset&&n.start.offset<a.end.offset,u=a.start.offset<n.end.offset&&n.end.offset<a.end.offset;if(o||s||c||u){if(s&&s||c&&u)continue;throw new Wr(`Decorations ${JSON.stringify(n.start)} and ${JSON.stringify(a.start)} intersect.`)}}}}function UN(e){return e.type==="text"?e.value:e.type==="element"?e.children.map(UN).join(""):""}const yY=[mY()];function Og(e){return[...e.transformers||[],...yY]}var yl=["black","red","green","yellow","blue","magenta","cyan","white","brightBlack","brightRed","brightGreen","brightYellow","brightBlue","brightMagenta","brightCyan","brightWhite"],Zv={1:"bold",2:"dim",3:"italic",4:"underline",7:"reverse",9:"strikethrough"};function vY(e,t){const n=e.indexOf("\x1B[",t);if(n!==-1){const r=e.indexOf("m",n);return{sequence:e.substring(n+2,r).split(";"),startPosition:n,position:r+1}}return{position:e.length}}function YD(e,t){let n=1;const r=e[t+n++];let a;if(r==="2"){const o=[e[t+n++],e[t+n++],e[t+n]].map(s=>Number.parseInt(s));o.length===3&&!o.some(s=>Number.isNaN(s))&&(a={type:"rgb",rgb:o})}else if(r==="5"){const o=Number.parseInt(e[t+n]);Number.isNaN(o)||(a={type:"table",index:Number(o)})}return[n,a]}function bY(e){const t=[];for(let n=0;n<e.length;n++){const r=e[n],a=Number.parseInt(r);if(!Number.isNaN(a))if(a===0)t.push({type:"resetAll"});else if(a<=9)Zv[a]&&t.push({type:"setDecoration",value:Zv[a]});else if(a<=29){const o=Zv[a-20];o&&t.push({type:"resetDecoration",value:o})}else if(a<=37)t.push({type:"setForegroundColor",value:{type:"named",name:yl[a-30]}});else if(a===38){const[o,s]=YD(e,n);s&&t.push({type:"setForegroundColor",value:s}),n+=o}else if(a===39)t.push({type:"resetForegroundColor"});else if(a<=47)t.push({type:"setBackgroundColor",value:{type:"named",name:yl[a-40]}});else if(a===48){const[o,s]=YD(e,n);s&&t.push({type:"setBackgroundColor",value:s}),n+=o}else a===49?t.push({type:"resetBackgroundColor"}):a>=90&&a<=97?t.push({type:"setForegroundColor",value:{type:"named",name:yl[a-90+8]}}):a>=100&&a<=107&&t.push({type:"setBackgroundColor",value:{type:"named",name:yl[a-100+8]}})}return t}function EY(){let e=null,t=null,n=new Set;return{parse(r){const a=[];let o=0;do{const s=vY(r,o),c=s.sequence?r.substring(o,s.startPosition):r.substring(o);if(c.length>0&&a.push({value:c,foreground:e,background:t,decorations:new Set(n)}),s.sequence){const u=bY(s.sequence);for(const d of u)d.type==="resetAll"?(e=null,t=null,n.clear()):d.type==="resetForegroundColor"?e=null:d.type==="resetBackgroundColor"?t=null:d.type==="resetDecoration"&&n.delete(d.value);for(const d of u)d.type==="setForegroundColor"?e=d.value:d.type==="setBackgroundColor"?t=d.value:d.type==="setDecoration"&&n.add(d.value)}o=s.position}while(o<r.length);return a}}}var TY={black:"#000000",red:"#bb0000",green:"#00bb00",yellow:"#bbbb00",blue:"#0000bb",magenta:"#ff00ff",cyan:"#00bbbb",white:"#eeeeee",brightBlack:"#555555",brightRed:"#ff5555",brightGreen:"#00ff00",brightYellow:"#ffff55",brightBlue:"#5555ff",brightMagenta:"#ff55ff",brightCyan:"#55ffff",brightWhite:"#ffffff"};function SY(e=TY){function t(c){return e[c]}function n(c){return`#${c.map(u=>Math.max(0,Math.min(u,255)).toString(16).padStart(2,"0")).join("")}`}let r;function a(){if(r)return r;r=[];for(let d=0;d<yl.length;d++)r.push(t(yl[d]));let c=[0,95,135,175,215,255];for(let d=0;d<6;d++)for(let p=0;p<6;p++)for(let h=0;h<6;h++)r.push(n([c[d],c[p],c[h]]));let u=8;for(let d=0;d<24;d++,u+=10)r.push(n([u,u,u]));return r}function o(c){return a()[c]}function s(c){switch(c.type){case"named":return t(c.name);case"rgb":return n(c.rgb);case"table":return o(c.index)}}return{value:s}}function _Y(e,t,n){const r=Rg(e,n),a=Oy(t),o=SY(Object.fromEntries(yl.map(c=>[c,e.colors?.[`terminal.ansi${c[0].toUpperCase()}${c.substring(1)}`]]))),s=EY();return a.map(c=>s.parse(c[0]).map(u=>{let d,p;u.decorations.has("reverse")?(d=u.background?o.value(u.background):e.bg,p=u.foreground?o.value(u.foreground):e.fg):(d=u.foreground?o.value(u.foreground):e.fg,p=u.background?o.value(u.background):void 0),d=gl(d,r),p=gl(p,r),u.decorations.has("dim")&&(d=CY(d));let h=Ri.None;return u.decorations.has("bold")&&(h|=Ri.Bold),u.decorations.has("italic")&&(h|=Ri.Italic),u.decorations.has("underline")&&(h|=Ri.Underline),{content:u.value,offset:c[1],color:d,bgColor:p,fontStyle:h}}))}function CY(e){const t=e.match(/#([0-9a-f]{3})([0-9a-f]{3})?([0-9a-f]{2})?/);if(t)if(t[3]){const r=Math.round(Number.parseInt(t[3],16)/2).toString(16).padStart(2,"0");return`#${t[1]}${t[2]}${r}`}else return t[2]?`#${t[1]}${t[2]}80`:`#${Array.from(t[1]).map(r=>`${r}${r}`).join("")}80`;const n=e.match(/var\((--[\w-]+-ansi-[\w-]+)\)/);return n?`var(${n[1]}-dim)`:e}function HS(e,t,n={}){const{lang:r="text",theme:a=e.getLoadedThemes()[0]}=n;if(US(r)||jS(a))return Oy(t).map(u=>[{content:u[0],offset:u[1]}]);const{theme:o,colorMap:s}=e.setTheme(a);if(r==="ansi")return _Y(o,t,n);const c=e.getLanguage(r);if(n.grammarState){if(n.grammarState.lang!==c.name)throw new Ii(`Grammar state language "${n.grammarState.lang}" does not match highlight language "${c.name}"`);if(!n.grammarState.themes.includes(o.name))throw new Ii(`Grammar state themes "${n.grammarState.themes}" do not contain highlight theme "${o.name}"`)}return xY(t,c,o,s,n)}function AY(...e){if(e.length===2)return ep(e[1]);const[t,n,r={}]=e,{lang:a="text",theme:o=t.getLoadedThemes()[0]}=r;if(US(a)||jS(o))throw new Ii("Plain language does not have grammar state");if(a==="ansi")throw new Ii("ANSI language does not have grammar state");const{theme:s,colorMap:c}=t.setTheme(o),u=t.getLanguage(a);return new Ny(Ig(n,u,s,c,r).stateStack,u.name,s.name)}function xY(e,t,n,r,a){const o=Ig(e,t,n,r,a),s=new Ny(Ig(e,t,n,r,a).stateStack,t.name,n.name);return Iy(o.tokens,s),o.tokens}function Ig(e,t,n,r,a){const o=Rg(n,a),{tokenizeMaxLineLength:s=0,tokenizeTimeLimit:c=500}=a,u=Oy(e);let d=a.grammarState?hY(a.grammarState,n.name)??OE:a.grammarContextCode!=null?Ig(a.grammarContextCode,t,n,r,{...a,grammarState:void 0,grammarContextCode:void 0}).stateStack:OE,p=[];const h=[];for(let g=0,y=u.length;g<y;g++){const[b,E]=u[g];if(b===""){p=[],h.push([]);continue}if(s>0&&b.length>=s){p=[],h.push([{content:b,offset:E,color:"",fontStyle:0}]);continue}let _,A,D;a.includeExplanation&&(_=t.tokenizeLine(b,d),A=_.tokens,D=0);const w=t.tokenizeLine2(b,d,c),R=w.tokens.length/2;for(let O=0;O<R;O++){const k=w.tokens[2*O],F=O+1<R?w.tokens[2*O+2]:b.length;if(k===F)continue;const G=w.tokens[2*O+1],j=gl(r[fu.getForeground(G)],o),T=fu.getFontStyle(G),M={content:b.substring(k,F),offset:E+k,color:j,fontStyle:T};if(a.includeExplanation){const U=[];if(a.includeExplanation!=="scopeName")for(const Y of n.settings){let X;switch(typeof Y.scope){case"string":X=Y.scope.split(/,/).map(z=>z.trim());break;case"object":X=Y.scope;break;default:continue}U.push({settings:Y,selectors:X.map(z=>z.split(/ /))})}M.explanation=[];let B=0;for(;k+B<F;){const Y=A[D],X=b.substring(Y.startIndex,Y.endIndex);B+=X.length,M.explanation.push({content:X,scopes:a.includeExplanation==="scopeName"?wY(Y.scopes):DY(U,Y.scopes)}),D+=1}}p.push(M)}h.push(p),p=[],d=w.ruleStack}return{tokens:h,stateStack:d}}function wY(e){return e.map(t=>({scopeName:t}))}function DY(e,t){const n=[];for(let r=0,a=t.length;r<a;r++){const o=t[r];n[r]={scopeName:o,themeMatches:RY(e,o,t.slice(0,r))}}return n}function QD(e,t){return e===t||t.substring(0,e.length)===e&&t[e.length]==="."}function kY(e,t,n){if(!QD(e[e.length-1],t))return!1;let r=e.length-2,a=n.length-1;for(;r>=0&&a>=0;)QD(e[r],n[a])&&(r-=1),a-=1;return r===-1}function RY(e,t,n){const r=[];for(const{selectors:a,settings:o}of e)for(const s of a)if(kY(s,t,n)){r.push(o);break}return r}function jN(e,t,n){const r=Object.entries(n.themes).filter(u=>u[1]).map(u=>({color:u[0],theme:u[1]})),a=r.map(u=>{const d=HS(e,t,{...n,theme:u.theme}),p=ep(d),h=typeof u.theme=="string"?u.theme:u.theme.name;return{tokens:d,state:p,theme:h}}),o=OY(...a.map(u=>u.tokens)),s=o[0].map((u,d)=>u.map((p,h)=>{const g={content:p.content,variants:{},offset:p.offset};return"includeExplanation"in n&&n.includeExplanation&&(g.explanation=p.explanation),o.forEach((y,b)=>{const{content:E,explanation:_,offset:A,...D}=y[d][h];g.variants[r[b].color]=D}),g})),c=a[0].state?new Ny(Object.fromEntries(a.map(u=>[u.theme,u.state?.getInternalStack(u.theme)])),a[0].state.lang):void 0;return c&&Iy(s,c),s}function OY(...e){const t=e.map(()=>[]),n=e.length;for(let r=0;r<e[0].length;r++){const a=e.map(u=>u[r]),o=t.map(()=>[]);t.forEach((u,d)=>u.push(o[d]));const s=a.map(()=>0),c=a.map(u=>u[0]);for(;c.every(u=>u);){const u=Math.min(...c.map(d=>d.content.length));for(let d=0;d<n;d++){const p=c[d];p.content.length===u?(o[d].push(p),s[d]+=1,c[d]=a[d][s[d]]):(o[d].push({...p,content:p.content.slice(0,u)}),c[d]={...p,content:p.content.slice(u),offset:p.offset+u})}}}return t}function Ng(e,t,n){let r,a,o,s,c,u;if("themes"in n){const{defaultColor:d="light",cssVariablePrefix:p="--shiki-"}=n,h=Object.entries(n.themes).filter(_=>_[1]).map(_=>({color:_[0],theme:_[1]})).sort((_,A)=>_.color===d?-1:A.color===d?1:0);if(h.length===0)throw new Ii("`themes` option must not be empty");const g=jN(e,t,n);if(u=ep(g),d&&!h.find(_=>_.color===d))throw new Ii(`\`themes\` option must contain the defaultColor key \`${d}\``);const y=h.map(_=>e.getTheme(_.theme)),b=h.map(_=>_.color);o=g.map(_=>_.map(A=>IY(A,b,p,d))),u&&Iy(o,u);const E=h.map(_=>Rg(_.theme,n));a=h.map((_,A)=>(A===0&&d?"":`${p+_.color}:`)+(gl(y[A].fg,E[A])||"inherit")).join(";"),r=h.map((_,A)=>(A===0&&d?"":`${p+_.color}-bg:`)+(gl(y[A].bg,E[A])||"inherit")).join(";"),s=`shiki-themes ${y.map(_=>_.name).join(" ")}`,c=d?void 0:[a,r].join(";")}else if("theme"in n){const d=Rg(n.theme,n);o=HS(e,t,n);const p=e.getTheme(n.theme);r=gl(p.bg,d),a=gl(p.fg,d),s=p.name,u=ep(o)}else throw new Ii("Invalid options, either `theme` or `themes` must be provided");return{tokens:o,fg:a,bg:r,themeName:s,rootStyle:c,grammarState:u}}function IY(e,t,n,r){const a={content:e.content,explanation:e.explanation,offset:e.offset},o=t.map(u=>$N(e.variants[u])),s=new Set(o.flatMap(u=>Object.keys(u))),c={};return o.forEach((u,d)=>{for(const p of s){const h=u[p]||"inherit";if(d===0&&r)c[p]=h;else{const g=p==="color"?"":p==="background-color"?"-bg":`-${p}`,y=n+t[d]+(p==="color"?"":g);c[y]=h}}}),a.htmlStyle=c,a}function Lg(e,t,n,r={meta:{},options:n,codeToHast:(a,o)=>Lg(e,a,o),codeToTokens:(a,o)=>Ng(e,a,o)}){let a=t;for(const y of Og(n))a=y.preprocess?.call(r,a,n)||a;let{tokens:o,fg:s,bg:c,themeName:u,rootStyle:d,grammarState:p}=Ng(e,a,n);const{mergeWhitespaces:h=!0}=n;h===!0?o=LY(o):h==="never"&&(o=PY(o));const g={...r,get source(){return a}};for(const y of Og(n))o=y.tokens?.call(g,o)||o;return NY(o,{...n,fg:s,bg:c,themeName:u,rootStyle:d},g,p)}function NY(e,t,n,r=ep(e)){const a=Og(t),o=[],s={type:"root",children:[]},{structure:c="classic",tabindex:u="0"}=t;let d={type:"element",tagName:"pre",properties:{class:`shiki ${t.themeName||""}`,style:t.rootStyle||`background-color:${t.bg};color:${t.fg}`,...u!==!1&&u!=null?{tabindex:u.toString()}:{},...Object.fromEntries(Array.from(Object.entries(t.meta||{})).filter(([b])=>!b.startsWith("_")))},children:[]},p={type:"element",tagName:"code",properties:{},children:o};const h=[],g={...n,structure:c,addClassToHast:PN,get source(){return n.source},get tokens(){return e},get options(){return t},get root(){return s},get pre(){return d},get code(){return p},get lines(){return h}};if(e.forEach((b,E)=>{E&&(c==="inline"?s.children.push({type:"element",tagName:"br",properties:{},children:[]}):c==="classic"&&o.push({type:"text",value:`
237
- `}));let _={type:"element",tagName:"span",properties:{class:"line"},children:[]},A=0;for(const D of b){let w={type:"element",tagName:"span",properties:{...D.htmlAttrs},children:[{type:"text",value:D.content}]};D.htmlStyle;const R=fY(D.htmlStyle||$N(D));R&&(w.properties.style=R);for(const O of a)w=O?.span?.call(g,w,E+1,A,_,D)||w;c==="inline"?s.children.push(w):c==="classic"&&_.children.push(w),A+=D.content.length}if(c==="classic"){for(const D of a)_=D?.line?.call(g,_,E+1)||_;h.push(_),o.push(_)}}),c==="classic"){for(const b of a)p=b?.code?.call(g,p)||p;d.children.push(p);for(const b of a)d=b?.pre?.call(g,d)||d;s.children.push(d)}let y=s;for(const b of a)y=b?.root?.call(g,y)||y;return r&&Iy(y,r),y}function LY(e){return e.map(t=>{const n=[];let r="",a=0;return t.forEach((o,s)=>{const c=!(o.fontStyle&&o.fontStyle&Ri.Underline);c&&o.content.match(/^\s+$/)&&t[s+1]?(a||(a=o.offset),r+=o.content):r?(c?n.push({...o,offset:a,content:r+o.content}):n.push({content:r,offset:a},o),a=0,r=""):n.push(o)}),n})}function PY(e){return e.map(t=>t.flatMap(n=>{if(n.content.match(/^\s+$/))return n;const r=n.content.match(/^(\s*)(.*?)(\s*)$/);if(!r)return n;const[,a,o,s]=r;if(!a&&!s)return n;const c=[{...n,offset:n.offset+a.length,content:o}];return a&&c.unshift({content:a,offset:n.offset}),s&&c.push({content:s,offset:n.offset+a.length+o.length}),c}))}function MY(e,t,n){const r={meta:{},options:n,codeToHast:(o,s)=>Lg(e,o,s),codeToTokens:(o,s)=>Ng(e,o,s)};let a=iY(Lg(e,t,n,r));for(const o of Og(n))a=o.postprocess?.call(r,a,n)||a;return a}const KD={light:"#333333",dark:"#bbbbbb"},XD={light:"#fffffe",dark:"#1e1e1e"},ZD="__shiki_resolved";function zS(e){if(e?.[ZD])return e;const t={...e};t.tokenColors&&!t.settings&&(t.settings=t.tokenColors,delete t.tokenColors),t.type||="dark",t.colorReplacements={...t.colorReplacements},t.settings||=[];let{bg:n,fg:r}=t;if(!n||!r){const c=t.settings?t.settings.find(u=>!u.name&&!u.scope):void 0;c?.settings?.foreground&&(r=c.settings.foreground),c?.settings?.background&&(n=c.settings.background),!r&&t?.colors?.["editor.foreground"]&&(r=t.colors["editor.foreground"]),!n&&t?.colors?.["editor.background"]&&(n=t.colors["editor.background"]),r||(r=t.type==="light"?KD.light:KD.dark),n||(n=t.type==="light"?XD.light:XD.dark),t.fg=r,t.bg=n}t.settings[0]&&t.settings[0].settings&&!t.settings[0].scope||t.settings.unshift({settings:{foreground:t.fg,background:t.bg}});let a=0;const o=new Map;function s(c){if(o.has(c))return o.get(c);a+=1;const u=`#${a.toString(16).padStart(8,"0").toLowerCase()}`;return t.colorReplacements?.[`#${u}`]?s(c):(o.set(c,u),u)}t.settings=t.settings.map(c=>{const u=c.settings?.foreground&&!c.settings.foreground.startsWith("#"),d=c.settings?.background&&!c.settings.background.startsWith("#");if(!u&&!d)return c;const p={...c,settings:{...c.settings}};if(u){const h=s(c.settings.foreground);t.colorReplacements[h]=c.settings.foreground,p.settings.foreground=h}if(d){const h=s(c.settings.background);t.colorReplacements[h]=c.settings.background,p.settings.background=h}return p});for(const c of Object.keys(t.colors||{}))if((c==="editor.foreground"||c==="editor.background"||c.startsWith("terminal.ansi"))&&!t.colors[c]?.startsWith("#")){const u=s(t.colors[c]);t.colorReplacements[u]=t.colors[c],t.colors[c]=u}return Object.defineProperty(t,ZD,{enumerable:!1,writable:!1,value:!0}),t}async function HN(e){return Array.from(new Set((await Promise.all(e.filter(t=>!NN(t)).map(async t=>await MN(t).then(n=>Array.isArray(n)?n:[n])))).flat()))}async function zN(e){return(await Promise.all(e.map(async t=>LN(t)?null:zS(await MN(t))))).filter(t=>!!t)}let $Y=class extends Zq{constructor(t,n,r,a={}){super(t),this._resolver=t,this._themes=n,this._langs=r,this._alias=a,this._themes.map(o=>this.loadTheme(o)),this.loadLanguages(this._langs)}_resolvedThemes=new Map;_resolvedGrammars=new Map;_langMap=new Map;_langGraph=new Map;_textmateThemeCache=new WeakMap;_loadedThemesCache=null;_loadedLanguagesCache=null;getTheme(t){return typeof t=="string"?this._resolvedThemes.get(t):this.loadTheme(t)}loadTheme(t){const n=zS(t);return n.name&&(this._resolvedThemes.set(n.name,n),this._loadedThemesCache=null),n}getLoadedThemes(){return this._loadedThemesCache||(this._loadedThemesCache=[...this._resolvedThemes.keys()]),this._loadedThemesCache}setTheme(t){let n=this._textmateThemeCache.get(t);n||(n=Cg.createFromRawTheme(t),this._textmateThemeCache.set(t,n)),this._syncRegistry.setTheme(n)}getGrammar(t){if(this._alias[t]){const n=new Set([t]);for(;this._alias[t];){if(t=this._alias[t],n.has(t))throw new Wr(`Circular alias \`${Array.from(n).join(" -> ")} -> ${t}\``);n.add(t)}}return this._resolvedGrammars.get(t)}loadLanguage(t){if(this.getGrammar(t.name))return;const n=new Set([...this._langMap.values()].filter(o=>o.embeddedLangsLazy?.includes(t.name)));this._resolver.addLanguage(t);const r={balancedBracketSelectors:t.balancedBracketSelectors||["*"],unbalancedBracketSelectors:t.unbalancedBracketSelectors||[]};this._syncRegistry._rawGrammars.set(t.scopeName,t);const a=this.loadGrammarWithConfiguration(t.scopeName,1,r);if(a.name=t.name,this._resolvedGrammars.set(t.name,a),t.aliases&&t.aliases.forEach(o=>{this._alias[o]=t.name}),this._loadedLanguagesCache=null,n.size)for(const o of n)this._resolvedGrammars.delete(o.name),this._loadedLanguagesCache=null,this._syncRegistry?._injectionGrammars?.delete(o.scopeName),this._syncRegistry?._grammars?.delete(o.scopeName),this.loadLanguage(this._langMap.get(o.name))}dispose(){super.dispose(),this._resolvedThemes.clear(),this._resolvedGrammars.clear(),this._langMap.clear(),this._langGraph.clear(),this._loadedThemesCache=null}loadLanguages(t){for(const a of t)this.resolveEmbeddedLanguages(a);const n=Array.from(this._langGraph.entries()),r=n.filter(([a,o])=>!o);if(r.length){const a=n.filter(([o,s])=>s&&s.embeddedLangs?.some(c=>r.map(([u])=>u).includes(c))).filter(o=>!r.includes(o));throw new Wr(`Missing languages ${r.map(([o])=>`\`${o}\``).join(", ")}, required by ${a.map(([o])=>`\`${o}\``).join(", ")}`)}for(const[a,o]of n)this._resolver.addLanguage(o);for(const[a,o]of n)this.loadLanguage(o)}getLoadedLanguages(){return this._loadedLanguagesCache||(this._loadedLanguagesCache=[...new Set([...this._resolvedGrammars.keys(),...Object.keys(this._alias)])]),this._loadedLanguagesCache}resolveEmbeddedLanguages(t){if(this._langMap.set(t.name,t),this._langGraph.set(t.name,t),t.embeddedLangs)for(const n of t.embeddedLangs)this._langGraph.set(n,this._langMap.get(n))}},FY=class{_langs=new Map;_scopeToLang=new Map;_injections=new Map;_onigLib;constructor(t,n){this._onigLib={createOnigScanner:r=>t.createScanner(r),createOnigString:r=>t.createString(r)},n.forEach(r=>this.addLanguage(r))}get onigLib(){return this._onigLib}getLangRegistration(t){return this._langs.get(t)}loadGrammar(t){return this._scopeToLang.get(t)}addLanguage(t){this._langs.set(t.name,t),t.aliases&&t.aliases.forEach(n=>{this._langs.set(n,t)}),this._scopeToLang.set(t.scopeName,t),t.injectTo&&t.injectTo.forEach(n=>{this._injections.get(n)||this._injections.set(n,[]),this._injections.get(n).push(t.scopeName)})}getInjections(t){const n=t.split(".");let r=[];for(let a=1;a<=n.length;a++){const o=n.slice(0,a).join(".");r=[...r,...this._injections.get(o)||[]]}return r}},Bd=0;function BY(e){Bd+=1,e.warnings!==!1&&Bd>=10&&Bd%10===0&&console.warn(`[Shiki] ${Bd} instances have been created. Shiki is supposed to be used as a singleton, consider refactoring your code to cache your highlighter instance; Or call \`highlighter.dispose()\` to release unused instances.`);let t=!1;if(!e.engine)throw new Wr("`engine` option is required for synchronous mode");const n=(e.langs||[]).flat(1),r=(e.themes||[]).flat(1).map(zS),a=new FY(e.engine,n),o=new $Y(a,r,n,e.langAlias);let s;function c(D){_();const w=o.getGrammar(typeof D=="string"?D:D.name);if(!w)throw new Wr(`Language \`${D}\` not found, you may need to load it first`);return w}function u(D){if(D==="none")return{bg:"",fg:"",name:"none",settings:[],type:"dark"};_();const w=o.getTheme(D);if(!w)throw new Wr(`Theme \`${D}\` not found, you may need to load it first`);return w}function d(D){_();const w=u(D);s!==D&&(o.setTheme(w),s=D);const R=o.getColorMap();return{theme:w,colorMap:R}}function p(){return _(),o.getLoadedThemes()}function h(){return _(),o.getLoadedLanguages()}function g(...D){_(),o.loadLanguages(D.flat(1))}async function y(...D){return g(await HN(D))}function b(...D){_();for(const w of D.flat(1))o.loadTheme(w)}async function E(...D){return _(),b(await zN(D))}function _(){if(t)throw new Wr("Shiki instance has been disposed")}function A(){t||(t=!0,o.dispose(),Bd-=1)}return{setTheme:d,getTheme:u,getLanguage:c,getLoadedThemes:p,getLoadedLanguages:h,loadLanguage:y,loadLanguageSync:g,loadTheme:E,loadThemeSync:b,dispose:A,[Symbol.dispose]:A}}async function UY(e={}){e.loadWasm;const[t,n,r]=await Promise.all([zN(e.themes||[]),HN(e.langs||[]),e.engine||aN(e.loadWasm||fq())]);return BY({...e,themes:t,langs:n,engine:r})}async function jY(e={}){const t=await UY(e);return{getLastGrammarState:(...n)=>AY(t,...n),codeToTokensBase:(n,r)=>HS(t,n,r),codeToTokensWithThemes:(n,r)=>jN(t,n,r),codeToTokens:(n,r)=>Ng(t,n,r),codeToHast:(n,r)=>Lg(t,n,r),codeToHtml:(n,r)=>MY(t,n,r),...t,getInternalContext:()=>t}}function HY(e,t,n){let r,a,o;{const c=e;r=c.langs,a=c.themes,o=c.engine}async function s(c){function u(y){if(typeof y=="string"){if(NN(y))return[];const b=r[y];if(!b)throw new Ii(`Language \`${y}\` is not included in this bundle. You may want to load it from external source.`);return b}return y}function d(y){if(LN(y))return"none";if(typeof y=="string"){const b=a[y];if(!b)throw new Ii(`Theme \`${y}\` is not included in this bundle. You may want to load it from external source.`);return b}return y}const p=(c.themes??[]).map(y=>d(y)),h=(c.langs??[]).map(y=>u(y)),g=await jY({engine:c.engine??o(),...c,themes:p,langs:h});return{...g,loadLanguage(...y){return g.loadLanguage(...y.map(u))},loadTheme(...y){return g.loadTheme(...y.map(d))}}}return s}const zY=HY({langs:qG,themes:YG,engine:()=>aN(V(()=>import("./index.es299-CG6Dc4jp.js"),[]))}),Jv={scopeName:"source.malloy",patterns:[{include:"#malloy-language"}],repository:{"malloy-language":{patterns:[{include:"#sql-string"},{include:"#comments"},{include:"#tags"},{include:"#strings"},{include:"#numbers"},{include:"#keywords"},{include:"#properties"},{include:"#functions"},{include:"#datetimes"},{include:"#identifiers-quoted"},{include:"#types"},{include:"#constants"},{include:"#timeframes"},{include:"#identifiers-unquoted"}]},"malloy-matched":{begin:"{",end:"}",patterns:[{include:"#malloy-matched"},{include:"#malloy-language"}]},"malloy-in-sql":{begin:"%{",name:"source.malloy-in-sql",end:"}%?",patterns:[{include:"#malloy-matched"},{include:"#malloy-language"}]},"sql-string":{patterns:[{begin:'(\\b[A-Za-z_][A-Za-z_0-9]*)(\\s*\\.\\s*)(sql)(\\s*\\(\\s*)(""")',end:'"""',beginCaptures:{1:{name:"variable.other"},3:{name:"keyword.control.sql"},5:{name:"punctuation.sql-block.open"}},endCaptures:{0:{name:"punctuation.sql-block.close"}},name:"source.sql",patterns:[{include:"#malloy-in-sql"},{include:"source.sql"}]}]},functions:{patterns:[{match:"(?i)\\b(count)(\\s*\\()(distinct)",captures:{1:{name:"entity.name.function"},3:{name:"entity.name.function.modifier"}}},{match:"(?i)\\b(AVG|COUNT|FIRST|FORMAT|LAST|LCASE|LEN|MAX|MID|MIN|MOD|NOW|ROUND|SUM|UCASE|UNGROUPED)(\\s*\\()",captures:{1:{name:"entity.name.function"}}},{match:"(?i)\\b([a-zA-Z_][a-zA-Z_0-9]*)(\\s*\\()",captures:{1:{name:"entity.name.function"}}},{match:"(?i)\\b([a-zA-Z_][a-zA-Z_0-9]*)(!)(timestamp|number|string|boolean|date)?(\\s*\\()",captures:{1:{name:"entity.name.function"},3:{name:"entity.name.type"}}}]},datetimes:{patterns:[{match:"(?i)@[0-9]{4}-[0-9]{2}-[0-9]{2}[ T][0-9]{2}:[0-9]{2}((:[0-9]{2})(([\\.,][0-9]+)(\\[[A-Za-z_/]+\\])?)?)?",name:"constant.numeric.timestamp"},{match:"(?i)@[0-9]{4}(-Q[1-4]|-[0-9]{2}(-[0-9]{2}(-WK)?)?)?",name:"constant.numeric.date"}]},"identifiers-quoted":{patterns:[{match:"`[^`]*`",name:"variable.other.quoted"}]},"identifiers-unquoted":{patterns:[{match:"(?i)\\b[A-Za-z_][A-Za-z_0-9]*\\b",name:"variable.other"}]},timeframes:{patterns:[{match:"(?i)\\b((year|quarter|month|week|day|hour|minute|second)s?)\\b",name:"keyword.other.timeframe"},{match:"(?i)\\b(day_of_year|day_of_month)\\b",name:"keyword.other.timeframe"}]},comments:{patterns:[{begin:"/\\*",end:"\\*/",beginCaptures:{0:{name:"punctuation.definition.comment.begin"}},endCaptures:{0:{name:"punctuation.definition.comment.end"}},name:"comment.block"},{begin:"//",end:"\\n",beginCaptures:{0:{name:"punctuation.definition.comment"}},name:"comment.line.double-slash"},{begin:"--",end:"\\n",beginCaptures:{0:{name:"punctuation.definition.comment"}},name:"comment.line.double-hyphen"}]},tags:{patterns:[{match:"##\\n",name:"string.quoted",captures:{0:{name:"string.quoted"}}},{begin:'#"',end:"\\n",beginCaptures:{0:{name:"punctuation.definition.comment"}},name:"comment.line.double-slash"},{match:"#\\n",name:"string.quoted",captures:{0:{name:"string.quoted"}}},{begin:"#\\s",end:"\\n",beginCaptures:{0:{name:"support.type.property-name.json"}},name:"comment.line.double-slash",patterns:[{include:"#tag-values"}]},{begin:"##\\s",end:"\\n",beginCaptures:{0:{name:"support.type.property-name.json"}},name:"comment.line.double-slash",patterns:[{include:"#tag-values"}]},{begin:"#",end:"\\n",beginCaptures:{0:{name:"string.quoted"}},name:"string.quoted"}],repository:{"tag-values":{name:"support.type.property-name.json",match:'(-)?((?:[^\\s=#]+)|(?:"[^#]+"))(?:\\s*(=)\\s*((?:[^\\s=#]+)|(?:"[^#]+")))?',captures:{1:{name:"keyword.control.negate"},2:{name:"support.type.property-name.json"},3:{name:"keyword.operator.comparison.ts"},4:{name:"string.quoted"}}}}},strings:{patterns:[{begin:"'",end:"'",beginCaptures:{0:{name:"punctuation.definition.string.begin"}},endCaptures:{0:{name:"punctuation.definition.string.end"}},name:"string.quoted.single",patterns:[{include:"#escapes"}]},{begin:'"',end:'"',beginCaptures:{0:{name:"punctuation.definition.string.begin"}},endCaptures:{0:{name:"punctuation.definition.string.end"}},name:"string.quoted.double",patterns:[{include:"#escapes"}]},{begin:'"""',end:'"""',beginCaptures:{0:{name:"punctuation.definition.string.begin"}},endCaptures:{0:{name:"punctuation.definition.string.end"}},name:"string.quoted.triple"},{begin:"(?i)[r|/]'",end:"'",name:"string.regexp",patterns:[{include:"#regex-escapes"}]}],repository:{escapes:{name:"constant.character.escape",match:"\\\\(u[A-Fa-f0-9]{4}|.)",captures:{0:{name:"constant.character.escape"}}},"regex-escapes":{name:"constant.character.escape",match:"\\\\.",captures:{0:{name:"constant.character.escape"}}}}},numbers:{match:"(?i)(\\b((0|[1-9][0-9]*)(E[+-]?[0-9]+|\\.[0-9]*)?)|\\.[0-9]+)",name:"constant.numeric"},constants:{patterns:[{match:"(?i)\\bnull\\b",name:"constant.language.null"},{match:"(?i)\\btrue\\b",name:"constant.language.true"},{match:"(?i)\\bfalse\\b",name:"constant.language.false"}]},types:{patterns:[{match:"(?i)\\bstring\\b",name:"entity.name.type.string"},{match:"(?i)\\bnumber\\b",name:"entity.name.type.number"},{match:"(?i)\\bdate\\b",name:"entity.name.type.date"},{match:"(?i)\\btimestamp\\b",name:"entity.name.type.timestamp"},{match:"(?i)\\bboolean\\b",name:"entity.name.type.boolean"}]},properties:{patterns:[{match:"(?i)\\baccept\\b",name:"keyword.control.accept"},{match:"(?i)\\bselect\\b",name:"keyword.control.select"},{match:"(?i)\\bconnection\\b",name:"keyword.control.connection"},{match:"(?i)\\brun\\b",name:"keyword.control.run"},{match:"(?i)\\bextend\\b",name:"keyword.control.extend"},{match:"(?i)\\brefine\\b",name:"keyword.control.refine"},{match:"(?i)\\baggregate\\b",name:"keyword.control.aggregate"},{match:"(?i)\\bsample\\b",name:"keyword.control.sample"},{match:"(?i)\\bcalculate\\b",name:"keyword.control.calculate"},{match:"(?i)\\btimezone\\b",name:"keyword.control.timezone"},{match:"(?i)\\bdimension\\b",name:"keyword.control.dimension"},{match:"(?i)\\bexcept\\b",name:"keyword.control.except"},{match:"(?i)\\bsource\\b",name:"keyword.control.source"},{match:"(?i)\\bgroup_by\\b",name:"keyword.control.group_by"},{match:"(?i)\\bhaving\\b",name:"keyword.control.having"},{match:"(?i)\\bindex\\b",name:"keyword.control.index"},{match:"(?i)\\bjoin_one\\b",name:"keyword.control.join_one"},{match:"(?i)\\bwith\\b",name:"keyword.control.with"},{match:"(?i)\\bjoin_many\\b",name:"keyword.control.join_many"},{match:"(?i)\\bjoin_cross\\b",name:"keyword.control.join_cross"},{match:"(?i)\\blimit\\b",name:"keyword.control.limit"},{match:"(?i)\\bmeasure\\b",name:"keyword.control.measure"},{match:"(?i)\\bnest\\b",name:"keyword.control.nest"},{match:"(?i)\\border_by\\b",name:"keyword.control.order_by"},{match:"(?i)\\bpartition_by\\b",name:"keyword.control.partition_by"},{match:"(?i)\\bprimary_key\\b",name:"keyword.control.primary_key"},{match:"(?i)\\bproject\\b",name:"keyword.control.project"},{match:"(?i)\\bquery\\b",name:"keyword.control.query"},{match:"(?i)\\brename\\b",name:"keyword.control.rename"},{match:"(?i)\\btop\\b",name:"keyword.control.top"},{match:"(?i)\\bview\\b",name:"keyword.control.view"},{match:"(?i)\\bwhere\\b",name:"keyword.control.where"},{match:"(?i)\\bdeclare\\b",name:"keyword.control.declare"}]},keywords:{patterns:[{match:"(?i)\\bis\\b",name:"keyword.control.is"},{match:"(?i)\\bon\\b",name:"keyword.control.on"},{match:"(?i)\\bnot\\b",name:"keyword.other.not"},{match:"(?i)\\bor\\b",name:"keyword.other.or"},{match:"(?i)\\bdesc\\b",name:"keyword.control.desc"},{match:"(?i)\\bby\\b",name:"keyword.control.by"},{match:"(?i)\\band\\b",name:"keyword.other.and"},{match:"(?i)\\basc\\b",name:"keyword.control.asc"},{match:"(?i)\\bfor\\b",name:"keyword.other.for"},{match:"(?i)\\belse\\b",name:"keyword.other.else"},{match:"(?i)\\bto\\b",name:"keyword.other.to"},{match:"(?i)\\bwhen\\b",name:"keyword.other.when"},{match:"(?i)\\bpick\\b",name:"keyword.other.pick"},{match:"(?i)\\bimport\\b",name:"keyword.control.import"}]}}},VY={...Jv,patterns:[...Jv.patterns,{include:"#docvar"}],repository:{...Jv.repository,docvar:{patterns:[{match:"\\<\\<[^(\\>\\>)]*\\>\\>",beginCaptures:{0:{name:"punctuation.definition.comment.begin"}},endCaptures:{0:{name:"punctuation.definition.comment.end"}},name:"markup.italic.markdown"}]}}},GY={name:"Malloy SQL",scopeName:"source.malloy-sql",patterns:[{include:"#malloysql-sql"}],repository:{"malloysql-sql":{beginCaptures:{0:{name:"entity.other.attribute.malloy-sql"},1:{name:"entity.other.attribute.malloy-sql"},3:{name:"comment.line.double-slash"}},name:"meta.embedded.block.malloysql.sql",patterns:[{include:"#comments"},{begin:"%{",end:"}%",beginCaptures:{0:{name:"punctuation.definition.malloy-sql"}},endCaptures:{0:{name:"punctuation.definition.malloy-sql"}},name:"meta.embedded.block.malloy",patterns:[{include:"source.malloy"}]},{include:"source.sql"}]},comments:{patterns:[{begin:"/\\*",end:"\\*/",beginCaptures:{0:{name:"punctuation.definition.comment.begin"}},endCaptures:{0:{name:"punctuation.definition.comment.end"}},name:"comment.block"},{begin:"//",end:"\\n",beginCaptures:{0:{name:"punctuation.definition.comment"}},name:"comment.line.double-slash"},{begin:"--",end:"\\n",beginCaptures:{0:{name:"punctuation.definition.comment"}},name:"comment.line.double-hyphen"}]}}},VN="github-light",qY=zY({themes:[VN],langs:["sql","json","typescript",{name:"malloy",scopeName:"source.malloy",embeddedLangs:["sql"],...VY},{name:"malloysql",scopeName:"source.malloy-sql",embeddedLangs:["sql"],...GY}]});async function Iye(e,t){return(await qY).codeToHtml(e,{lang:t,theme:VN})}const WY=a3(P.jsx("path",{d:"m12 8-6 6 1.41 1.41L12 10.83l4.59 4.58L18 14z"})),YY=a3(P.jsx("path",{d:"M16.59 8.59 12 13.17 7.41 8.59 6 10l6 6 6-6z"})),QY=x.lazy(()=>V(()=>import("./index.es23-BDdtxnbW.js"),[]));function Nye({result:e,minHeight:t,maxHeight:n,hideToggle:r=!1}){const[a,o]=x.useState(!1),[s,c]=x.useState(0),[u,d]=x.useState(!1),p=x.useRef(null),h=x.useRef(null),[g,y]=x.useState(void 0),[b,E]=x.useState(!1),_=x.useCallback(()=>{const O=a;o(!a),O&&h.current&&setTimeout(()=>{h.current?.scrollIntoView({behavior:"smooth",block:"start"})},100)},[a]),A=x.useCallback(O=>{c(O)},[]);if(x.useEffect(()=>{if(r){d(!1);return}if(b){d(!0);return}if(s===0){d(!1);return}const O=t-20,k=s>O;s<O&&y(s+20),d(k)},[s,b,t,r]),!e)return null;const D=P.jsx(bE,{text:"Loading...",centered:!0,size:32}),w=b?a?n-40:t-40:void 0,R=g?{minHeight:`${g}px`,height:"100%"}:{height:"100%"};return P.jsx(P.Fragment,{children:P.jsxs(Sl,{ref:h,sx:{position:"relative",minHeight:`${t}px`,maxHeight:`${a?n:t}px`,border:"0px",borderRadius:0,overflow:"hidden",display:"flex",flexDirection:"column",...R},children:[P.jsx(Sl,{ref:p,sx:{flex:1,overflow:"scroll",p:0,pb:u?"40px":1},children:e&&P.jsx(x.Suspense,{fallback:D,children:P.jsx(QY,{result:e,height:w,isFillElement:O=>{E(O)},onSizeChange:A})})||D}),u&&P.jsx(Sl,{sx:{position:"absolute",bottom:0,left:0,right:0,height:"32px",backgroundColor:"rgba(255,255,255,0.75)",display:"flex",alignItems:"center",justifyContent:"center"},children:P.jsx(KU,{size:"small",onClick:_,sx:{color:"text.secondary","&:hover":{backgroundColor:"rgba(0, 0, 0, 0.04)"}},title:a?"Collapse to original size":"Expand to full size",children:a?P.jsx(WY,{sx:{fontSize:30}}):P.jsx(YY,{sx:{fontSize:30}})})})]})})}function GN(e,t){return function(){return e.apply(t,arguments)}}const{toString:KY}=Object.prototype,{getPrototypeOf:VS}=Object,{iterator:Ly,toStringTag:qN}=Symbol,Py=(e=>t=>{const n=KY.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),Ao=e=>(e=e.toLowerCase(),t=>Py(t)===e),My=e=>t=>typeof t===e,{isArray:Cu}=Array,tp=My("undefined");function Mp(e){return e!==null&&!tp(e)&&e.constructor!==null&&!tp(e.constructor)&&da(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const WN=Ao("ArrayBuffer");function XY(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&WN(e.buffer),t}const ZY=My("string"),da=My("function"),YN=My("number"),$p=e=>e!==null&&typeof e=="object",JY=e=>e===!0||e===!1,Ym=e=>{if(Py(e)!=="object")return!1;const t=VS(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(qN in e)&&!(Ly in e)},eQ=e=>{if(!$p(e)||Mp(e))return!1;try{return Object.keys(e).length===0&&Object.getPrototypeOf(e)===Object.prototype}catch{return!1}},tQ=Ao("Date"),nQ=Ao("File"),rQ=Ao("Blob"),aQ=Ao("FileList"),oQ=e=>$p(e)&&da(e.pipe),iQ=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||da(e.append)&&((t=Py(e))==="formdata"||t==="object"&&da(e.toString)&&e.toString()==="[object FormData]"))},sQ=Ao("URLSearchParams"),[lQ,cQ,uQ,dQ]=["ReadableStream","Request","Response","Headers"].map(Ao),fQ=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function Fp(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let r,a;if(typeof e!="object"&&(e=[e]),Cu(e))for(r=0,a=e.length;r<a;r++)t.call(null,e[r],r,e);else{if(Mp(e))return;const o=n?Object.getOwnPropertyNames(e):Object.keys(e),s=o.length;let c;for(r=0;r<s;r++)c=o[r],t.call(null,e[c],c,e)}}function QN(e,t){if(Mp(e))return null;t=t.toLowerCase();const n=Object.keys(e);let r=n.length,a;for(;r-- >0;)if(a=n[r],t===a.toLowerCase())return a;return null}const vl=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,KN=e=>!tp(e)&&e!==vl;function $E(){const{caseless:e}=KN(this)&&this||{},t={},n=(r,a)=>{const o=e&&QN(t,a)||a;Ym(t[o])&&Ym(r)?t[o]=$E(t[o],r):Ym(r)?t[o]=$E({},r):Cu(r)?t[o]=r.slice():t[o]=r};for(let r=0,a=arguments.length;r<a;r++)arguments[r]&&Fp(arguments[r],n);return t}const pQ=(e,t,n,{allOwnKeys:r}={})=>(Fp(t,(a,o)=>{n&&da(a)?e[o]=GN(a,n):e[o]=a},{allOwnKeys:r}),e),hQ=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),mQ=(e,t,n,r)=>{e.prototype=Object.create(t.prototype,r),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},gQ=(e,t,n,r)=>{let a,o,s;const c={};if(t=t||{},e==null)return t;do{for(a=Object.getOwnPropertyNames(e),o=a.length;o-- >0;)s=a[o],(!r||r(s,e,t))&&!c[s]&&(t[s]=e[s],c[s]=!0);e=n!==!1&&VS(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},yQ=(e,t,n)=>{e=String(e),(n===void 0||n>e.length)&&(n=e.length),n-=t.length;const r=e.indexOf(t,n);return r!==-1&&r===n},vQ=e=>{if(!e)return null;if(Cu(e))return e;let t=e.length;if(!YN(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},bQ=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&VS(Uint8Array)),EQ=(e,t)=>{const r=(e&&e[Ly]).call(e);let a;for(;(a=r.next())&&!a.done;){const o=a.value;t.call(e,o[0],o[1])}},TQ=(e,t)=>{let n;const r=[];for(;(n=e.exec(t))!==null;)r.push(n);return r},SQ=Ao("HTMLFormElement"),_Q=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,r,a){return r.toUpperCase()+a}),JD=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),CQ=Ao("RegExp"),XN=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};Fp(n,(a,o)=>{let s;(s=t(a,o,e))!==!1&&(r[o]=s||a)}),Object.defineProperties(e,r)},AQ=e=>{XN(e,(t,n)=>{if(da(e)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const r=e[n];if(da(r)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},xQ=(e,t)=>{const n={},r=a=>{a.forEach(o=>{n[o]=!0})};return Cu(e)?r(e):r(String(e).split(t)),n},wQ=()=>{},DQ=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t;function kQ(e){return!!(e&&da(e.append)&&e[qN]==="FormData"&&e[Ly])}const RQ=e=>{const t=new Array(10),n=(r,a)=>{if($p(r)){if(t.indexOf(r)>=0)return;if(Mp(r))return r;if(!("toJSON"in r)){t[a]=r;const o=Cu(r)?[]:{};return Fp(r,(s,c)=>{const u=n(s,a+1);!tp(u)&&(o[c]=u)}),t[a]=void 0,o}}return r};return n(e,0)},OQ=Ao("AsyncFunction"),IQ=e=>e&&($p(e)||da(e))&&da(e.then)&&da(e.catch),ZN=((e,t)=>e?setImmediate:t?((n,r)=>(vl.addEventListener("message",({source:a,data:o})=>{a===vl&&o===n&&r.length&&r.shift()()},!1),a=>{r.push(a),vl.postMessage(n,"*")}))(`axios@${Math.random()}`,[]):n=>setTimeout(n))(typeof setImmediate=="function",da(vl.postMessage)),NQ=typeof queueMicrotask<"u"?queueMicrotask.bind(vl):typeof process<"u"&&process.nextTick||ZN,LQ=e=>e!=null&&da(e[Ly]),ye={isArray:Cu,isArrayBuffer:WN,isBuffer:Mp,isFormData:iQ,isArrayBufferView:XY,isString:ZY,isNumber:YN,isBoolean:JY,isObject:$p,isPlainObject:Ym,isEmptyObject:eQ,isReadableStream:lQ,isRequest:cQ,isResponse:uQ,isHeaders:dQ,isUndefined:tp,isDate:tQ,isFile:nQ,isBlob:rQ,isRegExp:CQ,isFunction:da,isStream:oQ,isURLSearchParams:sQ,isTypedArray:bQ,isFileList:aQ,forEach:Fp,merge:$E,extend:pQ,trim:fQ,stripBOM:hQ,inherits:mQ,toFlatObject:gQ,kindOf:Py,kindOfTest:Ao,endsWith:yQ,toArray:vQ,forEachEntry:EQ,matchAll:TQ,isHTMLForm:SQ,hasOwnProperty:JD,hasOwnProp:JD,reduceDescriptors:XN,freezeMethods:AQ,toObjectSet:xQ,toCamelCase:_Q,noop:wQ,toFiniteNumber:DQ,findKey:QN,global:vl,isContextDefined:KN,isSpecCompliantForm:kQ,toJSONObject:RQ,isAsyncFn:OQ,isThenable:IQ,setImmediate:ZN,asap:NQ,isIterable:LQ};function At(e,t,n,r,a){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),r&&(this.request=r),a&&(this.response=a,this.status=a.status?a.status:null)}ye.inherits(At,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:ye.toJSONObject(this.config),code:this.code,status:this.status}}});const JN=At.prototype,e5={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{e5[e]={value:e}});Object.defineProperties(At,e5);Object.defineProperty(JN,"isAxiosError",{value:!0});At.from=(e,t,n,r,a,o)=>{const s=Object.create(JN);return ye.toFlatObject(e,s,function(u){return u!==Error.prototype},c=>c!=="isAxiosError"),At.call(s,e.message,t,n,r,a),s.cause=e,s.name=e.name,o&&Object.assign(s,o),s};const PQ=null;function FE(e){return ye.isPlainObject(e)||ye.isArray(e)}function t5(e){return ye.endsWith(e,"[]")?e.slice(0,-2):e}function ek(e,t,n){return e?e.concat(t).map(function(a,o){return a=t5(a),!n&&o?"["+a+"]":a}).join(n?".":""):t}function MQ(e){return ye.isArray(e)&&!e.some(FE)}const $Q=ye.toFlatObject(ye,{},null,function(t){return/^is[A-Z]/.test(t)});function $y(e,t,n){if(!ye.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,n=ye.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(E,_){return!ye.isUndefined(_[E])});const r=n.metaTokens,a=n.visitor||p,o=n.dots,s=n.indexes,u=(n.Blob||typeof Blob<"u"&&Blob)&&ye.isSpecCompliantForm(t);if(!ye.isFunction(a))throw new TypeError("visitor must be a function");function d(b){if(b===null)return"";if(ye.isDate(b))return b.toISOString();if(ye.isBoolean(b))return b.toString();if(!u&&ye.isBlob(b))throw new At("Blob is not supported. Use a Buffer instead.");return ye.isArrayBuffer(b)||ye.isTypedArray(b)?u&&typeof Blob=="function"?new Blob([b]):Buffer.from(b):b}function p(b,E,_){let A=b;if(b&&!_&&typeof b=="object"){if(ye.endsWith(E,"{}"))E=r?E:E.slice(0,-2),b=JSON.stringify(b);else if(ye.isArray(b)&&MQ(b)||(ye.isFileList(b)||ye.endsWith(E,"[]"))&&(A=ye.toArray(b)))return E=t5(E),A.forEach(function(w,R){!(ye.isUndefined(w)||w===null)&&t.append(s===!0?ek([E],R,o):s===null?E:E+"[]",d(w))}),!1}return FE(b)?!0:(t.append(ek(_,E,o),d(b)),!1)}const h=[],g=Object.assign($Q,{defaultVisitor:p,convertValue:d,isVisitable:FE});function y(b,E){if(!ye.isUndefined(b)){if(h.indexOf(b)!==-1)throw Error("Circular reference detected in "+E.join("."));h.push(b),ye.forEach(b,function(A,D){(!(ye.isUndefined(A)||A===null)&&a.call(t,A,ye.isString(D)?D.trim():D,E,g))===!0&&y(A,E?E.concat(D):[D])}),h.pop()}}if(!ye.isObject(e))throw new TypeError("data must be an object");return y(e),t}function tk(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(r){return t[r]})}function GS(e,t){this._pairs=[],e&&$y(e,this,t)}const n5=GS.prototype;n5.append=function(t,n){this._pairs.push([t,n])};n5.toString=function(t){const n=t?function(r){return t.call(this,r,tk)}:tk;return this._pairs.map(function(a){return n(a[0])+"="+n(a[1])},"").join("&")};function FQ(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function r5(e,t,n){if(!t)return e;const r=n&&n.encode||FQ;ye.isFunction(n)&&(n={serialize:n});const a=n&&n.serialize;let o;if(a?o=a(t,n):o=ye.isURLSearchParams(t)?t.toString():new GS(t,n).toString(r),o){const s=e.indexOf("#");s!==-1&&(e=e.slice(0,s)),e+=(e.indexOf("?")===-1?"?":"&")+o}return e}class nk{constructor(){this.handlers=[]}use(t,n,r){return this.handlers.push({fulfilled:t,rejected:n,synchronous:r?r.synchronous:!1,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){ye.forEach(this.handlers,function(r){r!==null&&t(r)})}}const a5={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},BQ=typeof URLSearchParams<"u"?URLSearchParams:GS,UQ=typeof FormData<"u"?FormData:null,jQ=typeof Blob<"u"?Blob:null,HQ={isBrowser:!0,classes:{URLSearchParams:BQ,FormData:UQ,Blob:jQ},protocols:["http","https","file","blob","url","data"]},qS=typeof window<"u"&&typeof document<"u",BE=typeof navigator=="object"&&navigator||void 0,zQ=qS&&(!BE||["ReactNative","NativeScript","NS"].indexOf(BE.product)<0),VQ=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",GQ=qS&&window.location.href||"http://localhost",qQ=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:qS,hasStandardBrowserEnv:zQ,hasStandardBrowserWebWorkerEnv:VQ,navigator:BE,origin:GQ},Symbol.toStringTag,{value:"Module"})),Lr={...qQ,...HQ};function WQ(e,t){return $y(e,new Lr.classes.URLSearchParams,{visitor:function(n,r,a,o){return Lr.isNode&&ye.isBuffer(n)?(this.append(r,n.toString("base64")),!1):o.defaultVisitor.apply(this,arguments)},...t})}function YQ(e){return ye.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function QQ(e){const t={},n=Object.keys(e);let r;const a=n.length;let o;for(r=0;r<a;r++)o=n[r],t[o]=e[o];return t}function o5(e){function t(n,r,a,o){let s=n[o++];if(s==="__proto__")return!0;const c=Number.isFinite(+s),u=o>=n.length;return s=!s&&ye.isArray(a)?a.length:s,u?(ye.hasOwnProp(a,s)?a[s]=[a[s],r]:a[s]=r,!c):((!a[s]||!ye.isObject(a[s]))&&(a[s]=[]),t(n,r,a[s],o)&&ye.isArray(a[s])&&(a[s]=QQ(a[s])),!c)}if(ye.isFormData(e)&&ye.isFunction(e.entries)){const n={};return ye.forEachEntry(e,(r,a)=>{t(YQ(r),a,n,0)}),n}return null}function KQ(e,t,n){if(ye.isString(e))try{return(t||JSON.parse)(e),ye.trim(e)}catch(r){if(r.name!=="SyntaxError")throw r}return(n||JSON.stringify)(e)}const Bp={transitional:a5,adapter:["xhr","http","fetch"],transformRequest:[function(t,n){const r=n.getContentType()||"",a=r.indexOf("application/json")>-1,o=ye.isObject(t);if(o&&ye.isHTMLForm(t)&&(t=new FormData(t)),ye.isFormData(t))return a?JSON.stringify(o5(t)):t;if(ye.isArrayBuffer(t)||ye.isBuffer(t)||ye.isStream(t)||ye.isFile(t)||ye.isBlob(t)||ye.isReadableStream(t))return t;if(ye.isArrayBufferView(t))return t.buffer;if(ye.isURLSearchParams(t))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let c;if(o){if(r.indexOf("application/x-www-form-urlencoded")>-1)return WQ(t,this.formSerializer).toString();if((c=ye.isFileList(t))||r.indexOf("multipart/form-data")>-1){const u=this.env&&this.env.FormData;return $y(c?{"files[]":t}:t,u&&new u,this.formSerializer)}}return o||a?(n.setContentType("application/json",!1),KQ(t)):t}],transformResponse:[function(t){const n=this.transitional||Bp.transitional,r=n&&n.forcedJSONParsing,a=this.responseType==="json";if(ye.isResponse(t)||ye.isReadableStream(t))return t;if(t&&ye.isString(t)&&(r&&!this.responseType||a)){const s=!(n&&n.silentJSONParsing)&&a;try{return JSON.parse(t)}catch(c){if(s)throw c.name==="SyntaxError"?At.from(c,At.ERR_BAD_RESPONSE,this,null,this.response):c}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:Lr.classes.FormData,Blob:Lr.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};ye.forEach(["delete","get","head","post","put","patch"],e=>{Bp.headers[e]={}});const XQ=ye.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),ZQ=e=>{const t={};let n,r,a;return e&&e.split(`
236
+ \f\r "&'<=>\``.split("")]],single:[["&'".split(""),"\"&'`".split("")],["\0&'".split(""),"\0\"&'`".split("")]],double:[['"&'.split(""),"\"&'`".split("")],['\0"&'.split(""),"\0\"&'`".split("")]]};function YW(e,t,n,r){const a=r.schema,o=a.space==="svg"?!1:r.settings.omitOptionalTags;let s=a.space==="svg"?r.settings.closeEmptyElements:r.settings.voids.includes(e.tagName.toLowerCase());const c=[];let u;a.space==="html"&&e.tagName==="svg"&&(r.schema=Bi);const d=QW(r,e.properties),p=r.all(a.space==="html"&&e.tagName==="template"?e.content:e);return r.schema=a,p&&(s=!1),(d||!o||!FW(e,t,n))&&(c.push("<",e.tagName,d?" "+d:""),s&&(a.space==="svg"||r.settings.closeSelfClosing)&&(u=d.charAt(d.length-1),(!r.settings.tightSelfClosing||u==="/"||u&&u!=='"'&&u!=="'")&&c.push(" "),c.push("/")),c.push(">")),c.push(p),!s&&(!o||!BS(e,t,n))&&c.push("</"+e.tagName+">"),c.join("")}function QW(e,t){const n=[];let r=-1,a;if(t){for(a in t)if(t[a]!==null&&t[a]!==void 0){const o=KW(e,a,t[a]);o&&n.push(o)}}for(;++r<n.length;){const o=e.settings.tightAttributes?n[r].charAt(n[r].length-1):void 0;r!==n.length-1&&o!=='"'&&o!=="'"&&(n[r]+=" ")}return n.join("")}function KW(e,t,n){const r=Pp(e.schema,t),a=e.settings.allowParseErrors&&e.schema.space==="html"?0:1,o=e.settings.allowDangerousCharacters?0:1;let s=e.quote,c;if(r.overloadedBoolean&&(n===r.attribute||n==="")?n=!0:(r.boolean||r.overloadedBoolean)&&(typeof n!="string"||n===r.attribute||n==="")&&(n=!!n),n==null||n===!1||typeof n=="number"&&Number.isNaN(n))return"";const u=tu(r.attribute,Object.assign({},e.settings.characterReferences,{subset:Tm.name[a][o]}));return n===!0||(n=Array.isArray(n)?(r.commaSeparated?Ry:Oy)(n,{padLeft:!e.settings.tightCommaSeparatedLists}):String(n),e.settings.collapseEmptyAttributes&&!n)?u:(e.settings.preferUnquoted&&(c=tu(n,Object.assign({},e.settings.characterReferences,{attribute:!0,subset:Tm.unquoted[a][o]}))),c!==n&&(e.settings.quoteSmart&&kg(n,s)>kg(n,e.alternative)&&(s=e.alternative),c=s+tu(n,Object.assign({},e.settings.characterReferences,{subset:(s==="'"?Tm.single:Tm.double)[a][o],attribute:!0}))+s),u+(c&&"="+c))}const XW=["<","&"];function IN(e,t,n,r){return n&&n.type==="element"&&(n.tagName==="script"||n.tagName==="style")?e.value:tu(e.value,Object.assign({},r.settings.characterReferences,{subset:XW}))}function ZW(e,t,n,r){return r.settings.allowDangerousHtml?e.value:IN(e,t,n,r)}function JW(e,t,n,r){return r.all(e)}const eY=ky("type",{invalid:tY,unknown:nY,handlers:{comment:TW,doctype:SW,element:YW,raw:ZW,root:JW,text:IN}});function tY(e){throw new Error("Expected node, not `"+e+"`")}function nY(e){const t=e;throw new Error("Cannot compile unknown node `"+t.type+"`")}const rY={},aY={},oY=[];function iY(e,t){const n=rY,r=n.quote||'"',a=r==='"'?"'":'"';if(r!=='"'&&r!=="'")throw new Error("Invalid quote `"+r+"`, expected `'` or `\"`");return{one:sY,all:lY,settings:{omitOptionalTags:n.omitOptionalTags||!1,allowParseErrors:n.allowParseErrors||!1,allowDangerousCharacters:n.allowDangerousCharacters||!1,quoteSmart:n.quoteSmart||!1,preferUnquoted:n.preferUnquoted||!1,tightAttributes:n.tightAttributes||!1,upperDoctype:n.upperDoctype||!1,tightDoctype:n.tightDoctype||!1,bogusComments:n.bogusComments||!1,tightCommaSeparatedLists:n.tightCommaSeparatedLists||!1,tightSelfClosing:n.tightSelfClosing||!1,collapseEmptyAttributes:n.collapseEmptyAttributes||!1,allowDangerousHtml:n.allowDangerousHtml||!1,voids:n.voids||EN,characterReferences:n.characterReferences||aY,closeSelfClosing:n.closeSelfClosing||!1,closeEmptyElements:n.closeEmptyElements||!1},schema:n.space==="svg"?Bi:_u,quote:r,alternative:a}.one(Array.isArray(e)?{type:"root",children:e}:e,void 0,void 0)}function sY(e,t,n){return eY(e,t,n,this)}function lY(e){const t=[],n=e&&e.children||oY;let r=-1;for(;++r<n.length;)t[r]=this.one(n[r],r,e);return t.join("")}function cY(e){return Array.isArray(e)?e:[e]}function Iy(e,t=!1){const n=e.split(/(\r?\n)/g);let r=0;const a=[];for(let o=0;o<n.length;o+=2){const s=t?n[o]+(n[o+1]||""):n[o];a.push([s,r]),r+=n[o].length,r+=n[o+1]?.length||0}return a}function US(e){return!e||["plaintext","txt","text","plain"].includes(e)}function NN(e){return e==="ansi"||US(e)}function jS(e){return e==="none"}function LN(e){return jS(e)}function PN(e,t){if(!t)return e;e.properties||={},e.properties.class||=[],typeof e.properties.class=="string"&&(e.properties.class=e.properties.class.split(/\s+/g)),Array.isArray(e.properties.class)||(e.properties.class=[]);const n=Array.isArray(t)?t:t.split(/\s+/g);for(const r of n)r&&!e.properties.class.includes(r)&&e.properties.class.push(r);return e}function uY(e,t){let n=0;const r=[];for(const a of t)a>n&&r.push({...e,content:e.content.slice(n,a),offset:e.offset+n}),n=a;return n<e.content.length&&r.push({...e,content:e.content.slice(n),offset:e.offset+n}),r}function dY(e,t){const n=Array.from(t instanceof Set?t:new Set(t)).sort((r,a)=>r-a);return n.length?e.map(r=>r.flatMap(a=>{const o=n.filter(s=>a.offset<s&&s<a.offset+a.content.length).map(s=>s-a.offset).sort((s,c)=>s-c);return o.length?uY(a,o):a})):e}async function MN(e){return Promise.resolve(typeof e=="function"?e():e).then(t=>t.default||t)}function Rg(e,t){const n=typeof e=="string"?{}:{...e.colorReplacements},r=typeof e=="string"?e:e.name;for(const[a,o]of Object.entries(t?.colorReplacements||{}))typeof o=="string"?n[a]=o:a===r&&Object.assign(n,o);return n}function gl(e,t){return e&&(t?.[e?.toLowerCase()]||e)}function $N(e){const t={};return e.color&&(t.color=e.color),e.bgColor&&(t["background-color"]=e.bgColor),e.fontStyle&&(e.fontStyle&Ri.Italic&&(t["font-style"]="italic"),e.fontStyle&Ri.Bold&&(t["font-weight"]="bold"),e.fontStyle&Ri.Underline&&(t["text-decoration"]="underline")),t}function fY(e){return typeof e=="string"?e:Object.entries(e).map(([t,n])=>`${t}:${n}`).join(";")}function pY(e){const t=Iy(e,!0).map(([a])=>a);function n(a){if(a===e.length)return{line:t.length-1,character:t[t.length-1].length};let o=a,s=0;for(const c of t){if(o<c.length)break;o-=c.length,s++}return{line:s,character:o}}function r(a,o){let s=0;for(let c=0;c<a;c++)s+=t[c].length;return s+=o,s}return{lines:t,indexToPos:n,posToIndex:r}}let Wr=class extends Error{constructor(t){super(t),this.name="ShikiError"}};const FN=new WeakMap;function Ny(e,t){FN.set(e,t)}function ep(e){return FN.get(e)}let Ly=class BN{_stacks={};lang;get themes(){return Object.keys(this._stacks)}get theme(){return this.themes[0]}get _stack(){return this._stacks[this.theme]}static initial(t,n){return new BN(Object.fromEntries(cY(n).map(r=>[r,OE])),t)}constructor(...t){if(t.length===2){const[n,r]=t;this.lang=r,this._stacks=n}else{const[n,r,a]=t;this.lang=r,this._stacks={[a]:n}}}getInternalStack(t=this.theme){return this._stacks[t]}get scopes(){return WD(this._stacks[this.theme])}getScopes(t=this.theme){return WD(this._stacks[t])}toJSON(){return{lang:this.lang,theme:this.theme,themes:this.themes,scopes:this.scopes}}};function WD(e){const t=[],n=new Set;function r(a){if(n.has(a))return;n.add(a);const o=a?.nameScopesList?.scopeName;o&&t.push(o),a.parent&&r(a.parent)}return r(e),t}function hY(e,t){if(!(e instanceof Ly))throw new Wr("Invalid grammar state");return e.getInternalStack(t)}function mY(){const e=new WeakMap;function t(n){if(!e.has(n.meta)){let r=function(s){if(typeof s=="number"){if(s<0||s>n.source.length)throw new Wr(`Invalid decoration offset: ${s}. Code length: ${n.source.length}`);return{...a.indexToPos(s),offset:s}}else{const c=a.lines[s.line];if(c===void 0)throw new Wr(`Invalid decoration position ${JSON.stringify(s)}. Lines length: ${a.lines.length}`);if(s.character<0||s.character>c.length)throw new Wr(`Invalid decoration position ${JSON.stringify(s)}. Line ${s.line} length: ${c.length}`);return{...s,offset:a.posToIndex(s.line,s.character)}}};const a=pY(n.source),o=(n.options.decorations||[]).map(s=>({...s,start:r(s.start),end:r(s.end)}));gY(o),e.set(n.meta,{decorations:o,converter:a,source:n.source})}return e.get(n.meta)}return{name:"shiki:decorations",tokens(n){if(!this.options.decorations?.length)return;const r=t(this).decorations.flatMap(a=>[a.start.offset,a.end.offset]);return dY(n,r)},code(n){if(!this.options.decorations?.length)return;const r=t(this),a=Array.from(n.children).filter(p=>p.type==="element"&&p.tagName==="span");if(a.length!==r.converter.lines.length)throw new Wr(`Number of lines in code element (${a.length}) does not match the number of lines in the source (${r.converter.lines.length}). Failed to apply decorations.`);function o(p,h,g,y){const b=a[p];let E="",_=-1,A=-1;if(h===0&&(_=0),g===0&&(A=0),g===Number.POSITIVE_INFINITY&&(A=b.children.length),_===-1||A===-1)for(let w=0;w<b.children.length;w++)E+=UN(b.children[w]),_===-1&&E.length===h&&(_=w+1),A===-1&&E.length===g&&(A=w+1);if(_===-1)throw new Wr(`Failed to find start index for decoration ${JSON.stringify(y.start)}`);if(A===-1)throw new Wr(`Failed to find end index for decoration ${JSON.stringify(y.end)}`);const D=b.children.slice(_,A);if(!y.alwaysWrap&&D.length===b.children.length)c(b,y,"line");else if(!y.alwaysWrap&&D.length===1&&D[0].type==="element")c(D[0],y,"token");else{const w={type:"element",tagName:"span",properties:{},children:D};c(w,y,"wrapper"),b.children.splice(_,D.length,w)}}function s(p,h){a[p]=c(a[p],h,"line")}function c(p,h,g){const y=h.properties||{},b=h.transform||(E=>E);return p.tagName=h.tagName||"span",p.properties={...p.properties,...y,class:p.properties.class},h.properties?.class&&PN(p,h.properties.class),p=b(p,g)||p,p}const u=[],d=r.decorations.sort((p,h)=>h.start.offset-p.start.offset);for(const p of d){const{start:h,end:g}=p;if(h.line===g.line)o(h.line,h.character,g.character,p);else if(h.line<g.line){o(h.line,h.character,Number.POSITIVE_INFINITY,p);for(let y=h.line+1;y<g.line;y++)u.unshift(()=>s(y,p));o(g.line,0,g.character,p)}}u.forEach(p=>p())}}}function gY(e){for(let t=0;t<e.length;t++){const n=e[t];if(n.start.offset>n.end.offset)throw new Wr(`Invalid decoration range: ${JSON.stringify(n.start)} - ${JSON.stringify(n.end)}`);for(let r=t+1;r<e.length;r++){const a=e[r],o=n.start.offset<a.start.offset&&a.start.offset<n.end.offset,s=n.start.offset<a.end.offset&&a.end.offset<n.end.offset,c=a.start.offset<n.start.offset&&n.start.offset<a.end.offset,u=a.start.offset<n.end.offset&&n.end.offset<a.end.offset;if(o||s||c||u){if(s&&s||c&&u)continue;throw new Wr(`Decorations ${JSON.stringify(n.start)} and ${JSON.stringify(a.start)} intersect.`)}}}}function UN(e){return e.type==="text"?e.value:e.type==="element"?e.children.map(UN).join(""):""}const yY=[mY()];function Og(e){return[...e.transformers||[],...yY]}var yl=["black","red","green","yellow","blue","magenta","cyan","white","brightBlack","brightRed","brightGreen","brightYellow","brightBlue","brightMagenta","brightCyan","brightWhite"],Zv={1:"bold",2:"dim",3:"italic",4:"underline",7:"reverse",9:"strikethrough"};function vY(e,t){const n=e.indexOf("\x1B[",t);if(n!==-1){const r=e.indexOf("m",n);return{sequence:e.substring(n+2,r).split(";"),startPosition:n,position:r+1}}return{position:e.length}}function YD(e,t){let n=1;const r=e[t+n++];let a;if(r==="2"){const o=[e[t+n++],e[t+n++],e[t+n]].map(s=>Number.parseInt(s));o.length===3&&!o.some(s=>Number.isNaN(s))&&(a={type:"rgb",rgb:o})}else if(r==="5"){const o=Number.parseInt(e[t+n]);Number.isNaN(o)||(a={type:"table",index:Number(o)})}return[n,a]}function bY(e){const t=[];for(let n=0;n<e.length;n++){const r=e[n],a=Number.parseInt(r);if(!Number.isNaN(a))if(a===0)t.push({type:"resetAll"});else if(a<=9)Zv[a]&&t.push({type:"setDecoration",value:Zv[a]});else if(a<=29){const o=Zv[a-20];o&&t.push({type:"resetDecoration",value:o})}else if(a<=37)t.push({type:"setForegroundColor",value:{type:"named",name:yl[a-30]}});else if(a===38){const[o,s]=YD(e,n);s&&t.push({type:"setForegroundColor",value:s}),n+=o}else if(a===39)t.push({type:"resetForegroundColor"});else if(a<=47)t.push({type:"setBackgroundColor",value:{type:"named",name:yl[a-40]}});else if(a===48){const[o,s]=YD(e,n);s&&t.push({type:"setBackgroundColor",value:s}),n+=o}else a===49?t.push({type:"resetBackgroundColor"}):a>=90&&a<=97?t.push({type:"setForegroundColor",value:{type:"named",name:yl[a-90+8]}}):a>=100&&a<=107&&t.push({type:"setBackgroundColor",value:{type:"named",name:yl[a-100+8]}})}return t}function EY(){let e=null,t=null,n=new Set;return{parse(r){const a=[];let o=0;do{const s=vY(r,o),c=s.sequence?r.substring(o,s.startPosition):r.substring(o);if(c.length>0&&a.push({value:c,foreground:e,background:t,decorations:new Set(n)}),s.sequence){const u=bY(s.sequence);for(const d of u)d.type==="resetAll"?(e=null,t=null,n.clear()):d.type==="resetForegroundColor"?e=null:d.type==="resetBackgroundColor"?t=null:d.type==="resetDecoration"&&n.delete(d.value);for(const d of u)d.type==="setForegroundColor"?e=d.value:d.type==="setBackgroundColor"?t=d.value:d.type==="setDecoration"&&n.add(d.value)}o=s.position}while(o<r.length);return a}}}var TY={black:"#000000",red:"#bb0000",green:"#00bb00",yellow:"#bbbb00",blue:"#0000bb",magenta:"#ff00ff",cyan:"#00bbbb",white:"#eeeeee",brightBlack:"#555555",brightRed:"#ff5555",brightGreen:"#00ff00",brightYellow:"#ffff55",brightBlue:"#5555ff",brightMagenta:"#ff55ff",brightCyan:"#55ffff",brightWhite:"#ffffff"};function SY(e=TY){function t(c){return e[c]}function n(c){return`#${c.map(u=>Math.max(0,Math.min(u,255)).toString(16).padStart(2,"0")).join("")}`}let r;function a(){if(r)return r;r=[];for(let d=0;d<yl.length;d++)r.push(t(yl[d]));let c=[0,95,135,175,215,255];for(let d=0;d<6;d++)for(let p=0;p<6;p++)for(let h=0;h<6;h++)r.push(n([c[d],c[p],c[h]]));let u=8;for(let d=0;d<24;d++,u+=10)r.push(n([u,u,u]));return r}function o(c){return a()[c]}function s(c){switch(c.type){case"named":return t(c.name);case"rgb":return n(c.rgb);case"table":return o(c.index)}}return{value:s}}function _Y(e,t,n){const r=Rg(e,n),a=Iy(t),o=SY(Object.fromEntries(yl.map(c=>[c,e.colors?.[`terminal.ansi${c[0].toUpperCase()}${c.substring(1)}`]]))),s=EY();return a.map(c=>s.parse(c[0]).map(u=>{let d,p;u.decorations.has("reverse")?(d=u.background?o.value(u.background):e.bg,p=u.foreground?o.value(u.foreground):e.fg):(d=u.foreground?o.value(u.foreground):e.fg,p=u.background?o.value(u.background):void 0),d=gl(d,r),p=gl(p,r),u.decorations.has("dim")&&(d=CY(d));let h=Ri.None;return u.decorations.has("bold")&&(h|=Ri.Bold),u.decorations.has("italic")&&(h|=Ri.Italic),u.decorations.has("underline")&&(h|=Ri.Underline),{content:u.value,offset:c[1],color:d,bgColor:p,fontStyle:h}}))}function CY(e){const t=e.match(/#([0-9a-f]{3})([0-9a-f]{3})?([0-9a-f]{2})?/);if(t)if(t[3]){const r=Math.round(Number.parseInt(t[3],16)/2).toString(16).padStart(2,"0");return`#${t[1]}${t[2]}${r}`}else return t[2]?`#${t[1]}${t[2]}80`:`#${Array.from(t[1]).map(r=>`${r}${r}`).join("")}80`;const n=e.match(/var\((--[\w-]+-ansi-[\w-]+)\)/);return n?`var(${n[1]}-dim)`:e}function HS(e,t,n={}){const{lang:r="text",theme:a=e.getLoadedThemes()[0]}=n;if(US(r)||jS(a))return Iy(t).map(u=>[{content:u[0],offset:u[1]}]);const{theme:o,colorMap:s}=e.setTheme(a);if(r==="ansi")return _Y(o,t,n);const c=e.getLanguage(r);if(n.grammarState){if(n.grammarState.lang!==c.name)throw new Ii(`Grammar state language "${n.grammarState.lang}" does not match highlight language "${c.name}"`);if(!n.grammarState.themes.includes(o.name))throw new Ii(`Grammar state themes "${n.grammarState.themes}" do not contain highlight theme "${o.name}"`)}return xY(t,c,o,s,n)}function AY(...e){if(e.length===2)return ep(e[1]);const[t,n,r={}]=e,{lang:a="text",theme:o=t.getLoadedThemes()[0]}=r;if(US(a)||jS(o))throw new Ii("Plain language does not have grammar state");if(a==="ansi")throw new Ii("ANSI language does not have grammar state");const{theme:s,colorMap:c}=t.setTheme(o),u=t.getLanguage(a);return new Ly(Ig(n,u,s,c,r).stateStack,u.name,s.name)}function xY(e,t,n,r,a){const o=Ig(e,t,n,r,a),s=new Ly(Ig(e,t,n,r,a).stateStack,t.name,n.name);return Ny(o.tokens,s),o.tokens}function Ig(e,t,n,r,a){const o=Rg(n,a),{tokenizeMaxLineLength:s=0,tokenizeTimeLimit:c=500}=a,u=Iy(e);let d=a.grammarState?hY(a.grammarState,n.name)??OE:a.grammarContextCode!=null?Ig(a.grammarContextCode,t,n,r,{...a,grammarState:void 0,grammarContextCode:void 0}).stateStack:OE,p=[];const h=[];for(let g=0,y=u.length;g<y;g++){const[b,E]=u[g];if(b===""){p=[],h.push([]);continue}if(s>0&&b.length>=s){p=[],h.push([{content:b,offset:E,color:"",fontStyle:0}]);continue}let _,A,D;a.includeExplanation&&(_=t.tokenizeLine(b,d),A=_.tokens,D=0);const w=t.tokenizeLine2(b,d,c),R=w.tokens.length/2;for(let O=0;O<R;O++){const k=w.tokens[2*O],F=O+1<R?w.tokens[2*O+2]:b.length;if(k===F)continue;const G=w.tokens[2*O+1],j=gl(r[fu.getForeground(G)],o),T=fu.getFontStyle(G),M={content:b.substring(k,F),offset:E+k,color:j,fontStyle:T};if(a.includeExplanation){const U=[];if(a.includeExplanation!=="scopeName")for(const Y of n.settings){let X;switch(typeof Y.scope){case"string":X=Y.scope.split(/,/).map(z=>z.trim());break;case"object":X=Y.scope;break;default:continue}U.push({settings:Y,selectors:X.map(z=>z.split(/ /))})}M.explanation=[];let B=0;for(;k+B<F;){const Y=A[D],X=b.substring(Y.startIndex,Y.endIndex);B+=X.length,M.explanation.push({content:X,scopes:a.includeExplanation==="scopeName"?wY(Y.scopes):DY(U,Y.scopes)}),D+=1}}p.push(M)}h.push(p),p=[],d=w.ruleStack}return{tokens:h,stateStack:d}}function wY(e){return e.map(t=>({scopeName:t}))}function DY(e,t){const n=[];for(let r=0,a=t.length;r<a;r++){const o=t[r];n[r]={scopeName:o,themeMatches:RY(e,o,t.slice(0,r))}}return n}function QD(e,t){return e===t||t.substring(0,e.length)===e&&t[e.length]==="."}function kY(e,t,n){if(!QD(e[e.length-1],t))return!1;let r=e.length-2,a=n.length-1;for(;r>=0&&a>=0;)QD(e[r],n[a])&&(r-=1),a-=1;return r===-1}function RY(e,t,n){const r=[];for(const{selectors:a,settings:o}of e)for(const s of a)if(kY(s,t,n)){r.push(o);break}return r}function jN(e,t,n){const r=Object.entries(n.themes).filter(u=>u[1]).map(u=>({color:u[0],theme:u[1]})),a=r.map(u=>{const d=HS(e,t,{...n,theme:u.theme}),p=ep(d),h=typeof u.theme=="string"?u.theme:u.theme.name;return{tokens:d,state:p,theme:h}}),o=OY(...a.map(u=>u.tokens)),s=o[0].map((u,d)=>u.map((p,h)=>{const g={content:p.content,variants:{},offset:p.offset};return"includeExplanation"in n&&n.includeExplanation&&(g.explanation=p.explanation),o.forEach((y,b)=>{const{content:E,explanation:_,offset:A,...D}=y[d][h];g.variants[r[b].color]=D}),g})),c=a[0].state?new Ly(Object.fromEntries(a.map(u=>[u.theme,u.state?.getInternalStack(u.theme)])),a[0].state.lang):void 0;return c&&Ny(s,c),s}function OY(...e){const t=e.map(()=>[]),n=e.length;for(let r=0;r<e[0].length;r++){const a=e.map(u=>u[r]),o=t.map(()=>[]);t.forEach((u,d)=>u.push(o[d]));const s=a.map(()=>0),c=a.map(u=>u[0]);for(;c.every(u=>u);){const u=Math.min(...c.map(d=>d.content.length));for(let d=0;d<n;d++){const p=c[d];p.content.length===u?(o[d].push(p),s[d]+=1,c[d]=a[d][s[d]]):(o[d].push({...p,content:p.content.slice(0,u)}),c[d]={...p,content:p.content.slice(u),offset:p.offset+u})}}}return t}function Ng(e,t,n){let r,a,o,s,c,u;if("themes"in n){const{defaultColor:d="light",cssVariablePrefix:p="--shiki-"}=n,h=Object.entries(n.themes).filter(_=>_[1]).map(_=>({color:_[0],theme:_[1]})).sort((_,A)=>_.color===d?-1:A.color===d?1:0);if(h.length===0)throw new Ii("`themes` option must not be empty");const g=jN(e,t,n);if(u=ep(g),d&&!h.find(_=>_.color===d))throw new Ii(`\`themes\` option must contain the defaultColor key \`${d}\``);const y=h.map(_=>e.getTheme(_.theme)),b=h.map(_=>_.color);o=g.map(_=>_.map(A=>IY(A,b,p,d))),u&&Ny(o,u);const E=h.map(_=>Rg(_.theme,n));a=h.map((_,A)=>(A===0&&d?"":`${p+_.color}:`)+(gl(y[A].fg,E[A])||"inherit")).join(";"),r=h.map((_,A)=>(A===0&&d?"":`${p+_.color}-bg:`)+(gl(y[A].bg,E[A])||"inherit")).join(";"),s=`shiki-themes ${y.map(_=>_.name).join(" ")}`,c=d?void 0:[a,r].join(";")}else if("theme"in n){const d=Rg(n.theme,n);o=HS(e,t,n);const p=e.getTheme(n.theme);r=gl(p.bg,d),a=gl(p.fg,d),s=p.name,u=ep(o)}else throw new Ii("Invalid options, either `theme` or `themes` must be provided");return{tokens:o,fg:a,bg:r,themeName:s,rootStyle:c,grammarState:u}}function IY(e,t,n,r){const a={content:e.content,explanation:e.explanation,offset:e.offset},o=t.map(u=>$N(e.variants[u])),s=new Set(o.flatMap(u=>Object.keys(u))),c={};return o.forEach((u,d)=>{for(const p of s){const h=u[p]||"inherit";if(d===0&&r)c[p]=h;else{const g=p==="color"?"":p==="background-color"?"-bg":`-${p}`,y=n+t[d]+(p==="color"?"":g);c[y]=h}}}),a.htmlStyle=c,a}function Lg(e,t,n,r={meta:{},options:n,codeToHast:(a,o)=>Lg(e,a,o),codeToTokens:(a,o)=>Ng(e,a,o)}){let a=t;for(const y of Og(n))a=y.preprocess?.call(r,a,n)||a;let{tokens:o,fg:s,bg:c,themeName:u,rootStyle:d,grammarState:p}=Ng(e,a,n);const{mergeWhitespaces:h=!0}=n;h===!0?o=LY(o):h==="never"&&(o=PY(o));const g={...r,get source(){return a}};for(const y of Og(n))o=y.tokens?.call(g,o)||o;return NY(o,{...n,fg:s,bg:c,themeName:u,rootStyle:d},g,p)}function NY(e,t,n,r=ep(e)){const a=Og(t),o=[],s={type:"root",children:[]},{structure:c="classic",tabindex:u="0"}=t;let d={type:"element",tagName:"pre",properties:{class:`shiki ${t.themeName||""}`,style:t.rootStyle||`background-color:${t.bg};color:${t.fg}`,...u!==!1&&u!=null?{tabindex:u.toString()}:{},...Object.fromEntries(Array.from(Object.entries(t.meta||{})).filter(([b])=>!b.startsWith("_")))},children:[]},p={type:"element",tagName:"code",properties:{},children:o};const h=[],g={...n,structure:c,addClassToHast:PN,get source(){return n.source},get tokens(){return e},get options(){return t},get root(){return s},get pre(){return d},get code(){return p},get lines(){return h}};if(e.forEach((b,E)=>{E&&(c==="inline"?s.children.push({type:"element",tagName:"br",properties:{},children:[]}):c==="classic"&&o.push({type:"text",value:`
237
+ `}));let _={type:"element",tagName:"span",properties:{class:"line"},children:[]},A=0;for(const D of b){let w={type:"element",tagName:"span",properties:{...D.htmlAttrs},children:[{type:"text",value:D.content}]};D.htmlStyle;const R=fY(D.htmlStyle||$N(D));R&&(w.properties.style=R);for(const O of a)w=O?.span?.call(g,w,E+1,A,_,D)||w;c==="inline"?s.children.push(w):c==="classic"&&_.children.push(w),A+=D.content.length}if(c==="classic"){for(const D of a)_=D?.line?.call(g,_,E+1)||_;h.push(_),o.push(_)}}),c==="classic"){for(const b of a)p=b?.code?.call(g,p)||p;d.children.push(p);for(const b of a)d=b?.pre?.call(g,d)||d;s.children.push(d)}let y=s;for(const b of a)y=b?.root?.call(g,y)||y;return r&&Ny(y,r),y}function LY(e){return e.map(t=>{const n=[];let r="",a=0;return t.forEach((o,s)=>{const c=!(o.fontStyle&&o.fontStyle&Ri.Underline);c&&o.content.match(/^\s+$/)&&t[s+1]?(a||(a=o.offset),r+=o.content):r?(c?n.push({...o,offset:a,content:r+o.content}):n.push({content:r,offset:a},o),a=0,r=""):n.push(o)}),n})}function PY(e){return e.map(t=>t.flatMap(n=>{if(n.content.match(/^\s+$/))return n;const r=n.content.match(/^(\s*)(.*?)(\s*)$/);if(!r)return n;const[,a,o,s]=r;if(!a&&!s)return n;const c=[{...n,offset:n.offset+a.length,content:o}];return a&&c.unshift({content:a,offset:n.offset}),s&&c.push({content:s,offset:n.offset+a.length+o.length}),c}))}function MY(e,t,n){const r={meta:{},options:n,codeToHast:(o,s)=>Lg(e,o,s),codeToTokens:(o,s)=>Ng(e,o,s)};let a=iY(Lg(e,t,n,r));for(const o of Og(n))a=o.postprocess?.call(r,a,n)||a;return a}const KD={light:"#333333",dark:"#bbbbbb"},XD={light:"#fffffe",dark:"#1e1e1e"},ZD="__shiki_resolved";function zS(e){if(e?.[ZD])return e;const t={...e};t.tokenColors&&!t.settings&&(t.settings=t.tokenColors,delete t.tokenColors),t.type||="dark",t.colorReplacements={...t.colorReplacements},t.settings||=[];let{bg:n,fg:r}=t;if(!n||!r){const c=t.settings?t.settings.find(u=>!u.name&&!u.scope):void 0;c?.settings?.foreground&&(r=c.settings.foreground),c?.settings?.background&&(n=c.settings.background),!r&&t?.colors?.["editor.foreground"]&&(r=t.colors["editor.foreground"]),!n&&t?.colors?.["editor.background"]&&(n=t.colors["editor.background"]),r||(r=t.type==="light"?KD.light:KD.dark),n||(n=t.type==="light"?XD.light:XD.dark),t.fg=r,t.bg=n}t.settings[0]&&t.settings[0].settings&&!t.settings[0].scope||t.settings.unshift({settings:{foreground:t.fg,background:t.bg}});let a=0;const o=new Map;function s(c){if(o.has(c))return o.get(c);a+=1;const u=`#${a.toString(16).padStart(8,"0").toLowerCase()}`;return t.colorReplacements?.[`#${u}`]?s(c):(o.set(c,u),u)}t.settings=t.settings.map(c=>{const u=c.settings?.foreground&&!c.settings.foreground.startsWith("#"),d=c.settings?.background&&!c.settings.background.startsWith("#");if(!u&&!d)return c;const p={...c,settings:{...c.settings}};if(u){const h=s(c.settings.foreground);t.colorReplacements[h]=c.settings.foreground,p.settings.foreground=h}if(d){const h=s(c.settings.background);t.colorReplacements[h]=c.settings.background,p.settings.background=h}return p});for(const c of Object.keys(t.colors||{}))if((c==="editor.foreground"||c==="editor.background"||c.startsWith("terminal.ansi"))&&!t.colors[c]?.startsWith("#")){const u=s(t.colors[c]);t.colorReplacements[u]=t.colors[c],t.colors[c]=u}return Object.defineProperty(t,ZD,{enumerable:!1,writable:!1,value:!0}),t}async function HN(e){return Array.from(new Set((await Promise.all(e.filter(t=>!NN(t)).map(async t=>await MN(t).then(n=>Array.isArray(n)?n:[n])))).flat()))}async function zN(e){return(await Promise.all(e.map(async t=>LN(t)?null:zS(await MN(t))))).filter(t=>!!t)}let $Y=class extends Zq{constructor(t,n,r,a={}){super(t),this._resolver=t,this._themes=n,this._langs=r,this._alias=a,this._themes.map(o=>this.loadTheme(o)),this.loadLanguages(this._langs)}_resolvedThemes=new Map;_resolvedGrammars=new Map;_langMap=new Map;_langGraph=new Map;_textmateThemeCache=new WeakMap;_loadedThemesCache=null;_loadedLanguagesCache=null;getTheme(t){return typeof t=="string"?this._resolvedThemes.get(t):this.loadTheme(t)}loadTheme(t){const n=zS(t);return n.name&&(this._resolvedThemes.set(n.name,n),this._loadedThemesCache=null),n}getLoadedThemes(){return this._loadedThemesCache||(this._loadedThemesCache=[...this._resolvedThemes.keys()]),this._loadedThemesCache}setTheme(t){let n=this._textmateThemeCache.get(t);n||(n=Cg.createFromRawTheme(t),this._textmateThemeCache.set(t,n)),this._syncRegistry.setTheme(n)}getGrammar(t){if(this._alias[t]){const n=new Set([t]);for(;this._alias[t];){if(t=this._alias[t],n.has(t))throw new Wr(`Circular alias \`${Array.from(n).join(" -> ")} -> ${t}\``);n.add(t)}}return this._resolvedGrammars.get(t)}loadLanguage(t){if(this.getGrammar(t.name))return;const n=new Set([...this._langMap.values()].filter(o=>o.embeddedLangsLazy?.includes(t.name)));this._resolver.addLanguage(t);const r={balancedBracketSelectors:t.balancedBracketSelectors||["*"],unbalancedBracketSelectors:t.unbalancedBracketSelectors||[]};this._syncRegistry._rawGrammars.set(t.scopeName,t);const a=this.loadGrammarWithConfiguration(t.scopeName,1,r);if(a.name=t.name,this._resolvedGrammars.set(t.name,a),t.aliases&&t.aliases.forEach(o=>{this._alias[o]=t.name}),this._loadedLanguagesCache=null,n.size)for(const o of n)this._resolvedGrammars.delete(o.name),this._loadedLanguagesCache=null,this._syncRegistry?._injectionGrammars?.delete(o.scopeName),this._syncRegistry?._grammars?.delete(o.scopeName),this.loadLanguage(this._langMap.get(o.name))}dispose(){super.dispose(),this._resolvedThemes.clear(),this._resolvedGrammars.clear(),this._langMap.clear(),this._langGraph.clear(),this._loadedThemesCache=null}loadLanguages(t){for(const a of t)this.resolveEmbeddedLanguages(a);const n=Array.from(this._langGraph.entries()),r=n.filter(([a,o])=>!o);if(r.length){const a=n.filter(([o,s])=>s&&s.embeddedLangs?.some(c=>r.map(([u])=>u).includes(c))).filter(o=>!r.includes(o));throw new Wr(`Missing languages ${r.map(([o])=>`\`${o}\``).join(", ")}, required by ${a.map(([o])=>`\`${o}\``).join(", ")}`)}for(const[a,o]of n)this._resolver.addLanguage(o);for(const[a,o]of n)this.loadLanguage(o)}getLoadedLanguages(){return this._loadedLanguagesCache||(this._loadedLanguagesCache=[...new Set([...this._resolvedGrammars.keys(),...Object.keys(this._alias)])]),this._loadedLanguagesCache}resolveEmbeddedLanguages(t){if(this._langMap.set(t.name,t),this._langGraph.set(t.name,t),t.embeddedLangs)for(const n of t.embeddedLangs)this._langGraph.set(n,this._langMap.get(n))}},FY=class{_langs=new Map;_scopeToLang=new Map;_injections=new Map;_onigLib;constructor(t,n){this._onigLib={createOnigScanner:r=>t.createScanner(r),createOnigString:r=>t.createString(r)},n.forEach(r=>this.addLanguage(r))}get onigLib(){return this._onigLib}getLangRegistration(t){return this._langs.get(t)}loadGrammar(t){return this._scopeToLang.get(t)}addLanguage(t){this._langs.set(t.name,t),t.aliases&&t.aliases.forEach(n=>{this._langs.set(n,t)}),this._scopeToLang.set(t.scopeName,t),t.injectTo&&t.injectTo.forEach(n=>{this._injections.get(n)||this._injections.set(n,[]),this._injections.get(n).push(t.scopeName)})}getInjections(t){const n=t.split(".");let r=[];for(let a=1;a<=n.length;a++){const o=n.slice(0,a).join(".");r=[...r,...this._injections.get(o)||[]]}return r}},Bd=0;function BY(e){Bd+=1,e.warnings!==!1&&Bd>=10&&Bd%10===0&&console.warn(`[Shiki] ${Bd} instances have been created. Shiki is supposed to be used as a singleton, consider refactoring your code to cache your highlighter instance; Or call \`highlighter.dispose()\` to release unused instances.`);let t=!1;if(!e.engine)throw new Wr("`engine` option is required for synchronous mode");const n=(e.langs||[]).flat(1),r=(e.themes||[]).flat(1).map(zS),a=new FY(e.engine,n),o=new $Y(a,r,n,e.langAlias);let s;function c(D){_();const w=o.getGrammar(typeof D=="string"?D:D.name);if(!w)throw new Wr(`Language \`${D}\` not found, you may need to load it first`);return w}function u(D){if(D==="none")return{bg:"",fg:"",name:"none",settings:[],type:"dark"};_();const w=o.getTheme(D);if(!w)throw new Wr(`Theme \`${D}\` not found, you may need to load it first`);return w}function d(D){_();const w=u(D);s!==D&&(o.setTheme(w),s=D);const R=o.getColorMap();return{theme:w,colorMap:R}}function p(){return _(),o.getLoadedThemes()}function h(){return _(),o.getLoadedLanguages()}function g(...D){_(),o.loadLanguages(D.flat(1))}async function y(...D){return g(await HN(D))}function b(...D){_();for(const w of D.flat(1))o.loadTheme(w)}async function E(...D){return _(),b(await zN(D))}function _(){if(t)throw new Wr("Shiki instance has been disposed")}function A(){t||(t=!0,o.dispose(),Bd-=1)}return{setTheme:d,getTheme:u,getLanguage:c,getLoadedThemes:p,getLoadedLanguages:h,loadLanguage:y,loadLanguageSync:g,loadTheme:E,loadThemeSync:b,dispose:A,[Symbol.dispose]:A}}async function UY(e={}){e.loadWasm;const[t,n,r]=await Promise.all([zN(e.themes||[]),HN(e.langs||[]),e.engine||aN(e.loadWasm||fq())]);return BY({...e,themes:t,langs:n,engine:r})}async function jY(e={}){const t=await UY(e);return{getLastGrammarState:(...n)=>AY(t,...n),codeToTokensBase:(n,r)=>HS(t,n,r),codeToTokensWithThemes:(n,r)=>jN(t,n,r),codeToTokens:(n,r)=>Ng(t,n,r),codeToHast:(n,r)=>Lg(t,n,r),codeToHtml:(n,r)=>MY(t,n,r),...t,getInternalContext:()=>t}}function HY(e,t,n){let r,a,o;{const c=e;r=c.langs,a=c.themes,o=c.engine}async function s(c){function u(y){if(typeof y=="string"){if(NN(y))return[];const b=r[y];if(!b)throw new Ii(`Language \`${y}\` is not included in this bundle. You may want to load it from external source.`);return b}return y}function d(y){if(LN(y))return"none";if(typeof y=="string"){const b=a[y];if(!b)throw new Ii(`Theme \`${y}\` is not included in this bundle. You may want to load it from external source.`);return b}return y}const p=(c.themes??[]).map(y=>d(y)),h=(c.langs??[]).map(y=>u(y)),g=await jY({engine:c.engine??o(),...c,themes:p,langs:h});return{...g,loadLanguage(...y){return g.loadLanguage(...y.map(u))},loadTheme(...y){return g.loadTheme(...y.map(d))}}}return s}const zY=HY({langs:qG,themes:YG,engine:()=>aN(V(()=>import("./index.es300-CG6Dc4jp.js"),[]))}),Jv={scopeName:"source.malloy",patterns:[{include:"#malloy-language"}],repository:{"malloy-language":{patterns:[{include:"#sql-string"},{include:"#comments"},{include:"#tags"},{include:"#strings"},{include:"#numbers"},{include:"#keywords"},{include:"#properties"},{include:"#functions"},{include:"#datetimes"},{include:"#identifiers-quoted"},{include:"#types"},{include:"#constants"},{include:"#timeframes"},{include:"#identifiers-unquoted"}]},"malloy-matched":{begin:"{",end:"}",patterns:[{include:"#malloy-matched"},{include:"#malloy-language"}]},"malloy-in-sql":{begin:"%{",name:"source.malloy-in-sql",end:"}%?",patterns:[{include:"#malloy-matched"},{include:"#malloy-language"}]},"sql-string":{patterns:[{begin:'(\\b[A-Za-z_][A-Za-z_0-9]*)(\\s*\\.\\s*)(sql)(\\s*\\(\\s*)(""")',end:'"""',beginCaptures:{1:{name:"variable.other"},3:{name:"keyword.control.sql"},5:{name:"punctuation.sql-block.open"}},endCaptures:{0:{name:"punctuation.sql-block.close"}},name:"source.sql",patterns:[{include:"#malloy-in-sql"},{include:"source.sql"}]}]},functions:{patterns:[{match:"(?i)\\b(count)(\\s*\\()(distinct)",captures:{1:{name:"entity.name.function"},3:{name:"entity.name.function.modifier"}}},{match:"(?i)\\b(AVG|COUNT|FIRST|FORMAT|LAST|LCASE|LEN|MAX|MID|MIN|MOD|NOW|ROUND|SUM|UCASE|UNGROUPED)(\\s*\\()",captures:{1:{name:"entity.name.function"}}},{match:"(?i)\\b([a-zA-Z_][a-zA-Z_0-9]*)(\\s*\\()",captures:{1:{name:"entity.name.function"}}},{match:"(?i)\\b([a-zA-Z_][a-zA-Z_0-9]*)(!)(timestamp|number|string|boolean|date)?(\\s*\\()",captures:{1:{name:"entity.name.function"},3:{name:"entity.name.type"}}}]},datetimes:{patterns:[{match:"(?i)@[0-9]{4}-[0-9]{2}-[0-9]{2}[ T][0-9]{2}:[0-9]{2}((:[0-9]{2})(([\\.,][0-9]+)(\\[[A-Za-z_/]+\\])?)?)?",name:"constant.numeric.timestamp"},{match:"(?i)@[0-9]{4}(-Q[1-4]|-[0-9]{2}(-[0-9]{2}(-WK)?)?)?",name:"constant.numeric.date"}]},"identifiers-quoted":{patterns:[{match:"`[^`]*`",name:"variable.other.quoted"}]},"identifiers-unquoted":{patterns:[{match:"(?i)\\b[A-Za-z_][A-Za-z_0-9]*\\b",name:"variable.other"}]},timeframes:{patterns:[{match:"(?i)\\b((year|quarter|month|week|day|hour|minute|second)s?)\\b",name:"keyword.other.timeframe"},{match:"(?i)\\b(day_of_year|day_of_month)\\b",name:"keyword.other.timeframe"}]},comments:{patterns:[{begin:"/\\*",end:"\\*/",beginCaptures:{0:{name:"punctuation.definition.comment.begin"}},endCaptures:{0:{name:"punctuation.definition.comment.end"}},name:"comment.block"},{begin:"//",end:"\\n",beginCaptures:{0:{name:"punctuation.definition.comment"}},name:"comment.line.double-slash"},{begin:"--",end:"\\n",beginCaptures:{0:{name:"punctuation.definition.comment"}},name:"comment.line.double-hyphen"}]},tags:{patterns:[{match:"##\\n",name:"string.quoted",captures:{0:{name:"string.quoted"}}},{begin:'#"',end:"\\n",beginCaptures:{0:{name:"punctuation.definition.comment"}},name:"comment.line.double-slash"},{match:"#\\n",name:"string.quoted",captures:{0:{name:"string.quoted"}}},{begin:"#\\s",end:"\\n",beginCaptures:{0:{name:"support.type.property-name.json"}},name:"comment.line.double-slash",patterns:[{include:"#tag-values"}]},{begin:"##\\s",end:"\\n",beginCaptures:{0:{name:"support.type.property-name.json"}},name:"comment.line.double-slash",patterns:[{include:"#tag-values"}]},{begin:"#",end:"\\n",beginCaptures:{0:{name:"string.quoted"}},name:"string.quoted"}],repository:{"tag-values":{name:"support.type.property-name.json",match:'(-)?((?:[^\\s=#]+)|(?:"[^#]+"))(?:\\s*(=)\\s*((?:[^\\s=#]+)|(?:"[^#]+")))?',captures:{1:{name:"keyword.control.negate"},2:{name:"support.type.property-name.json"},3:{name:"keyword.operator.comparison.ts"},4:{name:"string.quoted"}}}}},strings:{patterns:[{begin:"'",end:"'",beginCaptures:{0:{name:"punctuation.definition.string.begin"}},endCaptures:{0:{name:"punctuation.definition.string.end"}},name:"string.quoted.single",patterns:[{include:"#escapes"}]},{begin:'"',end:'"',beginCaptures:{0:{name:"punctuation.definition.string.begin"}},endCaptures:{0:{name:"punctuation.definition.string.end"}},name:"string.quoted.double",patterns:[{include:"#escapes"}]},{begin:'"""',end:'"""',beginCaptures:{0:{name:"punctuation.definition.string.begin"}},endCaptures:{0:{name:"punctuation.definition.string.end"}},name:"string.quoted.triple"},{begin:"(?i)[r|/]'",end:"'",name:"string.regexp",patterns:[{include:"#regex-escapes"}]}],repository:{escapes:{name:"constant.character.escape",match:"\\\\(u[A-Fa-f0-9]{4}|.)",captures:{0:{name:"constant.character.escape"}}},"regex-escapes":{name:"constant.character.escape",match:"\\\\.",captures:{0:{name:"constant.character.escape"}}}}},numbers:{match:"(?i)(\\b((0|[1-9][0-9]*)(E[+-]?[0-9]+|\\.[0-9]*)?)|\\.[0-9]+)",name:"constant.numeric"},constants:{patterns:[{match:"(?i)\\bnull\\b",name:"constant.language.null"},{match:"(?i)\\btrue\\b",name:"constant.language.true"},{match:"(?i)\\bfalse\\b",name:"constant.language.false"}]},types:{patterns:[{match:"(?i)\\bstring\\b",name:"entity.name.type.string"},{match:"(?i)\\bnumber\\b",name:"entity.name.type.number"},{match:"(?i)\\bdate\\b",name:"entity.name.type.date"},{match:"(?i)\\btimestamp\\b",name:"entity.name.type.timestamp"},{match:"(?i)\\bboolean\\b",name:"entity.name.type.boolean"}]},properties:{patterns:[{match:"(?i)\\baccept\\b",name:"keyword.control.accept"},{match:"(?i)\\bselect\\b",name:"keyword.control.select"},{match:"(?i)\\bconnection\\b",name:"keyword.control.connection"},{match:"(?i)\\brun\\b",name:"keyword.control.run"},{match:"(?i)\\bextend\\b",name:"keyword.control.extend"},{match:"(?i)\\brefine\\b",name:"keyword.control.refine"},{match:"(?i)\\baggregate\\b",name:"keyword.control.aggregate"},{match:"(?i)\\bsample\\b",name:"keyword.control.sample"},{match:"(?i)\\bcalculate\\b",name:"keyword.control.calculate"},{match:"(?i)\\btimezone\\b",name:"keyword.control.timezone"},{match:"(?i)\\bdimension\\b",name:"keyword.control.dimension"},{match:"(?i)\\bexcept\\b",name:"keyword.control.except"},{match:"(?i)\\bsource\\b",name:"keyword.control.source"},{match:"(?i)\\bgroup_by\\b",name:"keyword.control.group_by"},{match:"(?i)\\bhaving\\b",name:"keyword.control.having"},{match:"(?i)\\bindex\\b",name:"keyword.control.index"},{match:"(?i)\\bjoin_one\\b",name:"keyword.control.join_one"},{match:"(?i)\\bwith\\b",name:"keyword.control.with"},{match:"(?i)\\bjoin_many\\b",name:"keyword.control.join_many"},{match:"(?i)\\bjoin_cross\\b",name:"keyword.control.join_cross"},{match:"(?i)\\blimit\\b",name:"keyword.control.limit"},{match:"(?i)\\bmeasure\\b",name:"keyword.control.measure"},{match:"(?i)\\bnest\\b",name:"keyword.control.nest"},{match:"(?i)\\border_by\\b",name:"keyword.control.order_by"},{match:"(?i)\\bpartition_by\\b",name:"keyword.control.partition_by"},{match:"(?i)\\bprimary_key\\b",name:"keyword.control.primary_key"},{match:"(?i)\\bproject\\b",name:"keyword.control.project"},{match:"(?i)\\bquery\\b",name:"keyword.control.query"},{match:"(?i)\\brename\\b",name:"keyword.control.rename"},{match:"(?i)\\btop\\b",name:"keyword.control.top"},{match:"(?i)\\bview\\b",name:"keyword.control.view"},{match:"(?i)\\bwhere\\b",name:"keyword.control.where"},{match:"(?i)\\bdeclare\\b",name:"keyword.control.declare"}]},keywords:{patterns:[{match:"(?i)\\bis\\b",name:"keyword.control.is"},{match:"(?i)\\bon\\b",name:"keyword.control.on"},{match:"(?i)\\bnot\\b",name:"keyword.other.not"},{match:"(?i)\\bor\\b",name:"keyword.other.or"},{match:"(?i)\\bdesc\\b",name:"keyword.control.desc"},{match:"(?i)\\bby\\b",name:"keyword.control.by"},{match:"(?i)\\band\\b",name:"keyword.other.and"},{match:"(?i)\\basc\\b",name:"keyword.control.asc"},{match:"(?i)\\bfor\\b",name:"keyword.other.for"},{match:"(?i)\\belse\\b",name:"keyword.other.else"},{match:"(?i)\\bto\\b",name:"keyword.other.to"},{match:"(?i)\\bwhen\\b",name:"keyword.other.when"},{match:"(?i)\\bpick\\b",name:"keyword.other.pick"},{match:"(?i)\\bimport\\b",name:"keyword.control.import"}]}}},VY={...Jv,patterns:[...Jv.patterns,{include:"#docvar"}],repository:{...Jv.repository,docvar:{patterns:[{match:"\\<\\<[^(\\>\\>)]*\\>\\>",beginCaptures:{0:{name:"punctuation.definition.comment.begin"}},endCaptures:{0:{name:"punctuation.definition.comment.end"}},name:"markup.italic.markdown"}]}}},GY={name:"Malloy SQL",scopeName:"source.malloy-sql",patterns:[{include:"#malloysql-sql"}],repository:{"malloysql-sql":{beginCaptures:{0:{name:"entity.other.attribute.malloy-sql"},1:{name:"entity.other.attribute.malloy-sql"},3:{name:"comment.line.double-slash"}},name:"meta.embedded.block.malloysql.sql",patterns:[{include:"#comments"},{begin:"%{",end:"}%",beginCaptures:{0:{name:"punctuation.definition.malloy-sql"}},endCaptures:{0:{name:"punctuation.definition.malloy-sql"}},name:"meta.embedded.block.malloy",patterns:[{include:"source.malloy"}]},{include:"source.sql"}]},comments:{patterns:[{begin:"/\\*",end:"\\*/",beginCaptures:{0:{name:"punctuation.definition.comment.begin"}},endCaptures:{0:{name:"punctuation.definition.comment.end"}},name:"comment.block"},{begin:"//",end:"\\n",beginCaptures:{0:{name:"punctuation.definition.comment"}},name:"comment.line.double-slash"},{begin:"--",end:"\\n",beginCaptures:{0:{name:"punctuation.definition.comment"}},name:"comment.line.double-hyphen"}]}}},VN="github-light",qY=zY({themes:[VN],langs:["sql","json","typescript",{name:"malloy",scopeName:"source.malloy",embeddedLangs:["sql"],...VY},{name:"malloysql",scopeName:"source.malloy-sql",embeddedLangs:["sql"],...GY}]});async function Nye(e,t){return(await qY).codeToHtml(e,{lang:t,theme:VN})}const WY=a3(P.jsx("path",{d:"m12 8-6 6 1.41 1.41L12 10.83l4.59 4.58L18 14z"})),YY=a3(P.jsx("path",{d:"M16.59 8.59 12 13.17 7.41 8.59 6 10l6 6 6-6z"})),QY=x.lazy(()=>V(()=>import("./index.es23-BsVG9VR1.js"),[]));function Lye({result:e,minHeight:t,maxHeight:n,hideToggle:r=!1}){const[a,o]=x.useState(!1),[s,c]=x.useState(0),[u,d]=x.useState(!1),p=x.useRef(null),h=x.useRef(null),[g,y]=x.useState(void 0),[b,E]=x.useState(!1),_=x.useCallback(()=>{const O=a;o(!a),O&&h.current&&setTimeout(()=>{h.current?.scrollIntoView({behavior:"smooth",block:"start"})},100)},[a]),A=x.useCallback(O=>{c(O)},[]);if(x.useEffect(()=>{if(r){d(!1);return}if(b){d(!0);return}if(s===0){d(!1);return}const O=t-20,k=s>O;s<O&&y(s+20),d(k)},[s,b,t,r]),!e)return null;const D=P.jsx(bE,{text:"Loading...",centered:!0,size:32}),w=b?a?n-40:t-40:void 0,R=g?{minHeight:`${g}px`,height:"100%"}:{height:"100%"};return P.jsx(P.Fragment,{children:P.jsxs(Sl,{ref:h,sx:{position:"relative",minHeight:`${t}px`,maxHeight:`${a?n:t}px`,border:"0px",borderRadius:0,overflow:"hidden",display:"flex",flexDirection:"column",...R},children:[P.jsx(Sl,{ref:p,sx:{flex:1,overflow:"scroll",p:0,pb:u?"40px":1},children:e&&P.jsx(x.Suspense,{fallback:D,children:P.jsx(QY,{result:e,height:w,isFillElement:O=>{E(O)},onSizeChange:A})})||D}),u&&P.jsx(Sl,{sx:{position:"absolute",bottom:0,left:0,right:0,height:"32px",backgroundColor:"rgba(255,255,255,0.75)",display:"flex",alignItems:"center",justifyContent:"center"},children:P.jsx(KU,{size:"small",onClick:_,sx:{color:"text.secondary","&:hover":{backgroundColor:"rgba(0, 0, 0, 0.04)"}},title:a?"Collapse to original size":"Expand to full size",children:a?P.jsx(WY,{sx:{fontSize:30}}):P.jsx(YY,{sx:{fontSize:30}})})})]})})}function GN(e,t){return function(){return e.apply(t,arguments)}}const{toString:KY}=Object.prototype,{getPrototypeOf:VS}=Object,{iterator:Py,toStringTag:qN}=Symbol,My=(e=>t=>{const n=KY.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),Ao=e=>(e=e.toLowerCase(),t=>My(t)===e),$y=e=>t=>typeof t===e,{isArray:Cu}=Array,tp=$y("undefined");function Mp(e){return e!==null&&!tp(e)&&e.constructor!==null&&!tp(e.constructor)&&da(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const WN=Ao("ArrayBuffer");function XY(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&WN(e.buffer),t}const ZY=$y("string"),da=$y("function"),YN=$y("number"),$p=e=>e!==null&&typeof e=="object",JY=e=>e===!0||e===!1,Ym=e=>{if(My(e)!=="object")return!1;const t=VS(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(qN in e)&&!(Py in e)},eQ=e=>{if(!$p(e)||Mp(e))return!1;try{return Object.keys(e).length===0&&Object.getPrototypeOf(e)===Object.prototype}catch{return!1}},tQ=Ao("Date"),nQ=Ao("File"),rQ=Ao("Blob"),aQ=Ao("FileList"),oQ=e=>$p(e)&&da(e.pipe),iQ=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||da(e.append)&&((t=My(e))==="formdata"||t==="object"&&da(e.toString)&&e.toString()==="[object FormData]"))},sQ=Ao("URLSearchParams"),[lQ,cQ,uQ,dQ]=["ReadableStream","Request","Response","Headers"].map(Ao),fQ=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function Fp(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let r,a;if(typeof e!="object"&&(e=[e]),Cu(e))for(r=0,a=e.length;r<a;r++)t.call(null,e[r],r,e);else{if(Mp(e))return;const o=n?Object.getOwnPropertyNames(e):Object.keys(e),s=o.length;let c;for(r=0;r<s;r++)c=o[r],t.call(null,e[c],c,e)}}function QN(e,t){if(Mp(e))return null;t=t.toLowerCase();const n=Object.keys(e);let r=n.length,a;for(;r-- >0;)if(a=n[r],t===a.toLowerCase())return a;return null}const vl=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,KN=e=>!tp(e)&&e!==vl;function $E(){const{caseless:e}=KN(this)&&this||{},t={},n=(r,a)=>{const o=e&&QN(t,a)||a;Ym(t[o])&&Ym(r)?t[o]=$E(t[o],r):Ym(r)?t[o]=$E({},r):Cu(r)?t[o]=r.slice():t[o]=r};for(let r=0,a=arguments.length;r<a;r++)arguments[r]&&Fp(arguments[r],n);return t}const pQ=(e,t,n,{allOwnKeys:r}={})=>(Fp(t,(a,o)=>{n&&da(a)?e[o]=GN(a,n):e[o]=a},{allOwnKeys:r}),e),hQ=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),mQ=(e,t,n,r)=>{e.prototype=Object.create(t.prototype,r),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},gQ=(e,t,n,r)=>{let a,o,s;const c={};if(t=t||{},e==null)return t;do{for(a=Object.getOwnPropertyNames(e),o=a.length;o-- >0;)s=a[o],(!r||r(s,e,t))&&!c[s]&&(t[s]=e[s],c[s]=!0);e=n!==!1&&VS(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},yQ=(e,t,n)=>{e=String(e),(n===void 0||n>e.length)&&(n=e.length),n-=t.length;const r=e.indexOf(t,n);return r!==-1&&r===n},vQ=e=>{if(!e)return null;if(Cu(e))return e;let t=e.length;if(!YN(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},bQ=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&VS(Uint8Array)),EQ=(e,t)=>{const r=(e&&e[Py]).call(e);let a;for(;(a=r.next())&&!a.done;){const o=a.value;t.call(e,o[0],o[1])}},TQ=(e,t)=>{let n;const r=[];for(;(n=e.exec(t))!==null;)r.push(n);return r},SQ=Ao("HTMLFormElement"),_Q=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,r,a){return r.toUpperCase()+a}),JD=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),CQ=Ao("RegExp"),XN=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};Fp(n,(a,o)=>{let s;(s=t(a,o,e))!==!1&&(r[o]=s||a)}),Object.defineProperties(e,r)},AQ=e=>{XN(e,(t,n)=>{if(da(e)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const r=e[n];if(da(r)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},xQ=(e,t)=>{const n={},r=a=>{a.forEach(o=>{n[o]=!0})};return Cu(e)?r(e):r(String(e).split(t)),n},wQ=()=>{},DQ=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t;function kQ(e){return!!(e&&da(e.append)&&e[qN]==="FormData"&&e[Py])}const RQ=e=>{const t=new Array(10),n=(r,a)=>{if($p(r)){if(t.indexOf(r)>=0)return;if(Mp(r))return r;if(!("toJSON"in r)){t[a]=r;const o=Cu(r)?[]:{};return Fp(r,(s,c)=>{const u=n(s,a+1);!tp(u)&&(o[c]=u)}),t[a]=void 0,o}}return r};return n(e,0)},OQ=Ao("AsyncFunction"),IQ=e=>e&&($p(e)||da(e))&&da(e.then)&&da(e.catch),ZN=((e,t)=>e?setImmediate:t?((n,r)=>(vl.addEventListener("message",({source:a,data:o})=>{a===vl&&o===n&&r.length&&r.shift()()},!1),a=>{r.push(a),vl.postMessage(n,"*")}))(`axios@${Math.random()}`,[]):n=>setTimeout(n))(typeof setImmediate=="function",da(vl.postMessage)),NQ=typeof queueMicrotask<"u"?queueMicrotask.bind(vl):typeof process<"u"&&process.nextTick||ZN,LQ=e=>e!=null&&da(e[Py]),ye={isArray:Cu,isArrayBuffer:WN,isBuffer:Mp,isFormData:iQ,isArrayBufferView:XY,isString:ZY,isNumber:YN,isBoolean:JY,isObject:$p,isPlainObject:Ym,isEmptyObject:eQ,isReadableStream:lQ,isRequest:cQ,isResponse:uQ,isHeaders:dQ,isUndefined:tp,isDate:tQ,isFile:nQ,isBlob:rQ,isRegExp:CQ,isFunction:da,isStream:oQ,isURLSearchParams:sQ,isTypedArray:bQ,isFileList:aQ,forEach:Fp,merge:$E,extend:pQ,trim:fQ,stripBOM:hQ,inherits:mQ,toFlatObject:gQ,kindOf:My,kindOfTest:Ao,endsWith:yQ,toArray:vQ,forEachEntry:EQ,matchAll:TQ,isHTMLForm:SQ,hasOwnProperty:JD,hasOwnProp:JD,reduceDescriptors:XN,freezeMethods:AQ,toObjectSet:xQ,toCamelCase:_Q,noop:wQ,toFiniteNumber:DQ,findKey:QN,global:vl,isContextDefined:KN,isSpecCompliantForm:kQ,toJSONObject:RQ,isAsyncFn:OQ,isThenable:IQ,setImmediate:ZN,asap:NQ,isIterable:LQ};function At(e,t,n,r,a){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),r&&(this.request=r),a&&(this.response=a,this.status=a.status?a.status:null)}ye.inherits(At,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:ye.toJSONObject(this.config),code:this.code,status:this.status}}});const JN=At.prototype,e5={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{e5[e]={value:e}});Object.defineProperties(At,e5);Object.defineProperty(JN,"isAxiosError",{value:!0});At.from=(e,t,n,r,a,o)=>{const s=Object.create(JN);return ye.toFlatObject(e,s,function(u){return u!==Error.prototype},c=>c!=="isAxiosError"),At.call(s,e.message,t,n,r,a),s.cause=e,s.name=e.name,o&&Object.assign(s,o),s};const PQ=null;function FE(e){return ye.isPlainObject(e)||ye.isArray(e)}function t5(e){return ye.endsWith(e,"[]")?e.slice(0,-2):e}function ek(e,t,n){return e?e.concat(t).map(function(a,o){return a=t5(a),!n&&o?"["+a+"]":a}).join(n?".":""):t}function MQ(e){return ye.isArray(e)&&!e.some(FE)}const $Q=ye.toFlatObject(ye,{},null,function(t){return/^is[A-Z]/.test(t)});function Fy(e,t,n){if(!ye.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,n=ye.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(E,_){return!ye.isUndefined(_[E])});const r=n.metaTokens,a=n.visitor||p,o=n.dots,s=n.indexes,u=(n.Blob||typeof Blob<"u"&&Blob)&&ye.isSpecCompliantForm(t);if(!ye.isFunction(a))throw new TypeError("visitor must be a function");function d(b){if(b===null)return"";if(ye.isDate(b))return b.toISOString();if(ye.isBoolean(b))return b.toString();if(!u&&ye.isBlob(b))throw new At("Blob is not supported. Use a Buffer instead.");return ye.isArrayBuffer(b)||ye.isTypedArray(b)?u&&typeof Blob=="function"?new Blob([b]):Buffer.from(b):b}function p(b,E,_){let A=b;if(b&&!_&&typeof b=="object"){if(ye.endsWith(E,"{}"))E=r?E:E.slice(0,-2),b=JSON.stringify(b);else if(ye.isArray(b)&&MQ(b)||(ye.isFileList(b)||ye.endsWith(E,"[]"))&&(A=ye.toArray(b)))return E=t5(E),A.forEach(function(w,R){!(ye.isUndefined(w)||w===null)&&t.append(s===!0?ek([E],R,o):s===null?E:E+"[]",d(w))}),!1}return FE(b)?!0:(t.append(ek(_,E,o),d(b)),!1)}const h=[],g=Object.assign($Q,{defaultVisitor:p,convertValue:d,isVisitable:FE});function y(b,E){if(!ye.isUndefined(b)){if(h.indexOf(b)!==-1)throw Error("Circular reference detected in "+E.join("."));h.push(b),ye.forEach(b,function(A,D){(!(ye.isUndefined(A)||A===null)&&a.call(t,A,ye.isString(D)?D.trim():D,E,g))===!0&&y(A,E?E.concat(D):[D])}),h.pop()}}if(!ye.isObject(e))throw new TypeError("data must be an object");return y(e),t}function tk(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(r){return t[r]})}function GS(e,t){this._pairs=[],e&&Fy(e,this,t)}const n5=GS.prototype;n5.append=function(t,n){this._pairs.push([t,n])};n5.toString=function(t){const n=t?function(r){return t.call(this,r,tk)}:tk;return this._pairs.map(function(a){return n(a[0])+"="+n(a[1])},"").join("&")};function FQ(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function r5(e,t,n){if(!t)return e;const r=n&&n.encode||FQ;ye.isFunction(n)&&(n={serialize:n});const a=n&&n.serialize;let o;if(a?o=a(t,n):o=ye.isURLSearchParams(t)?t.toString():new GS(t,n).toString(r),o){const s=e.indexOf("#");s!==-1&&(e=e.slice(0,s)),e+=(e.indexOf("?")===-1?"?":"&")+o}return e}class nk{constructor(){this.handlers=[]}use(t,n,r){return this.handlers.push({fulfilled:t,rejected:n,synchronous:r?r.synchronous:!1,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){ye.forEach(this.handlers,function(r){r!==null&&t(r)})}}const a5={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},BQ=typeof URLSearchParams<"u"?URLSearchParams:GS,UQ=typeof FormData<"u"?FormData:null,jQ=typeof Blob<"u"?Blob:null,HQ={isBrowser:!0,classes:{URLSearchParams:BQ,FormData:UQ,Blob:jQ},protocols:["http","https","file","blob","url","data"]},qS=typeof window<"u"&&typeof document<"u",BE=typeof navigator=="object"&&navigator||void 0,zQ=qS&&(!BE||["ReactNative","NativeScript","NS"].indexOf(BE.product)<0),VQ=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",GQ=qS&&window.location.href||"http://localhost",qQ=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:qS,hasStandardBrowserEnv:zQ,hasStandardBrowserWebWorkerEnv:VQ,navigator:BE,origin:GQ},Symbol.toStringTag,{value:"Module"})),Lr={...qQ,...HQ};function WQ(e,t){return Fy(e,new Lr.classes.URLSearchParams,{visitor:function(n,r,a,o){return Lr.isNode&&ye.isBuffer(n)?(this.append(r,n.toString("base64")),!1):o.defaultVisitor.apply(this,arguments)},...t})}function YQ(e){return ye.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function QQ(e){const t={},n=Object.keys(e);let r;const a=n.length;let o;for(r=0;r<a;r++)o=n[r],t[o]=e[o];return t}function o5(e){function t(n,r,a,o){let s=n[o++];if(s==="__proto__")return!0;const c=Number.isFinite(+s),u=o>=n.length;return s=!s&&ye.isArray(a)?a.length:s,u?(ye.hasOwnProp(a,s)?a[s]=[a[s],r]:a[s]=r,!c):((!a[s]||!ye.isObject(a[s]))&&(a[s]=[]),t(n,r,a[s],o)&&ye.isArray(a[s])&&(a[s]=QQ(a[s])),!c)}if(ye.isFormData(e)&&ye.isFunction(e.entries)){const n={};return ye.forEachEntry(e,(r,a)=>{t(YQ(r),a,n,0)}),n}return null}function KQ(e,t,n){if(ye.isString(e))try{return(t||JSON.parse)(e),ye.trim(e)}catch(r){if(r.name!=="SyntaxError")throw r}return(n||JSON.stringify)(e)}const Bp={transitional:a5,adapter:["xhr","http","fetch"],transformRequest:[function(t,n){const r=n.getContentType()||"",a=r.indexOf("application/json")>-1,o=ye.isObject(t);if(o&&ye.isHTMLForm(t)&&(t=new FormData(t)),ye.isFormData(t))return a?JSON.stringify(o5(t)):t;if(ye.isArrayBuffer(t)||ye.isBuffer(t)||ye.isStream(t)||ye.isFile(t)||ye.isBlob(t)||ye.isReadableStream(t))return t;if(ye.isArrayBufferView(t))return t.buffer;if(ye.isURLSearchParams(t))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let c;if(o){if(r.indexOf("application/x-www-form-urlencoded")>-1)return WQ(t,this.formSerializer).toString();if((c=ye.isFileList(t))||r.indexOf("multipart/form-data")>-1){const u=this.env&&this.env.FormData;return Fy(c?{"files[]":t}:t,u&&new u,this.formSerializer)}}return o||a?(n.setContentType("application/json",!1),KQ(t)):t}],transformResponse:[function(t){const n=this.transitional||Bp.transitional,r=n&&n.forcedJSONParsing,a=this.responseType==="json";if(ye.isResponse(t)||ye.isReadableStream(t))return t;if(t&&ye.isString(t)&&(r&&!this.responseType||a)){const s=!(n&&n.silentJSONParsing)&&a;try{return JSON.parse(t)}catch(c){if(s)throw c.name==="SyntaxError"?At.from(c,At.ERR_BAD_RESPONSE,this,null,this.response):c}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:Lr.classes.FormData,Blob:Lr.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};ye.forEach(["delete","get","head","post","put","patch"],e=>{Bp.headers[e]={}});const XQ=ye.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),ZQ=e=>{const t={};let n,r,a;return e&&e.split(`
238
238
  `).forEach(function(s){a=s.indexOf(":"),n=s.substring(0,a).trim().toLowerCase(),r=s.substring(a+1).trim(),!(!n||t[n]&&XQ[n])&&(n==="set-cookie"?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)}),t},rk=Symbol("internals");function Ud(e){return e&&String(e).trim().toLowerCase()}function Qm(e){return e===!1||e==null?e:ye.isArray(e)?e.map(Qm):String(e)}function JQ(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=n.exec(e);)t[r[1]]=r[2];return t}const eK=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function eb(e,t,n,r,a){if(ye.isFunction(r))return r.call(this,t,n);if(a&&(t=n),!!ye.isString(t)){if(ye.isString(r))return t.indexOf(r)!==-1;if(ye.isRegExp(r))return r.test(t)}}function tK(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,r)=>n.toUpperCase()+r)}function nK(e,t){const n=ye.toCamelCase(" "+t);["get","set","has"].forEach(r=>{Object.defineProperty(e,r+n,{value:function(a,o,s){return this[r].call(this,t,a,o,s)},configurable:!0})})}let fa=class{constructor(t){t&&this.set(t)}set(t,n,r){const a=this;function o(c,u,d){const p=Ud(u);if(!p)throw new Error("header name must be a non-empty string");const h=ye.findKey(a,p);(!h||a[h]===void 0||d===!0||d===void 0&&a[h]!==!1)&&(a[h||u]=Qm(c))}const s=(c,u)=>ye.forEach(c,(d,p)=>o(d,p,u));if(ye.isPlainObject(t)||t instanceof this.constructor)s(t,n);else if(ye.isString(t)&&(t=t.trim())&&!eK(t))s(ZQ(t),n);else if(ye.isObject(t)&&ye.isIterable(t)){let c={},u,d;for(const p of t){if(!ye.isArray(p))throw TypeError("Object iterator must return a key-value pair");c[d=p[0]]=(u=c[d])?ye.isArray(u)?[...u,p[1]]:[u,p[1]]:p[1]}s(c,n)}else t!=null&&o(n,t,r);return this}get(t,n){if(t=Ud(t),t){const r=ye.findKey(this,t);if(r){const a=this[r];if(!n)return a;if(n===!0)return JQ(a);if(ye.isFunction(n))return n.call(this,a,r);if(ye.isRegExp(n))return n.exec(a);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,n){if(t=Ud(t),t){const r=ye.findKey(this,t);return!!(r&&this[r]!==void 0&&(!n||eb(this,this[r],r,n)))}return!1}delete(t,n){const r=this;let a=!1;function o(s){if(s=Ud(s),s){const c=ye.findKey(r,s);c&&(!n||eb(r,r[c],c,n))&&(delete r[c],a=!0)}}return ye.isArray(t)?t.forEach(o):o(t),a}clear(t){const n=Object.keys(this);let r=n.length,a=!1;for(;r--;){const o=n[r];(!t||eb(this,this[o],o,t,!0))&&(delete this[o],a=!0)}return a}normalize(t){const n=this,r={};return ye.forEach(this,(a,o)=>{const s=ye.findKey(r,o);if(s){n[s]=Qm(a),delete n[o];return}const c=t?tK(o):String(o).trim();c!==o&&delete n[o],n[c]=Qm(a),r[c]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const n=Object.create(null);return ye.forEach(this,(r,a)=>{r!=null&&r!==!1&&(n[a]=t&&ye.isArray(r)?r.join(", "):r)}),n}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,n])=>t+": "+n).join(`
239
- `)}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...n){const r=new this(t);return n.forEach(a=>r.set(a)),r}static accessor(t){const r=(this[rk]=this[rk]={accessors:{}}).accessors,a=this.prototype;function o(s){const c=Ud(s);r[c]||(nK(a,s),r[c]=!0)}return ye.isArray(t)?t.forEach(o):o(t),this}};fa.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);ye.reduceDescriptors(fa.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(r){this[n]=r}}});ye.freezeMethods(fa);function tb(e,t){const n=this||Bp,r=t||n,a=fa.from(r.headers);let o=r.data;return ye.forEach(e,function(c){o=c.call(n,o,a.normalize(),t?t.status:void 0)}),a.normalize(),o}function i5(e){return!!(e&&e.__CANCEL__)}function Au(e,t,n){At.call(this,e??"canceled",At.ERR_CANCELED,t,n),this.name="CanceledError"}ye.inherits(Au,At,{__CANCEL__:!0});function s5(e,t,n){const r=n.config.validateStatus;!n.status||!r||r(n.status)?e(n):t(new At("Request failed with status code "+n.status,[At.ERR_BAD_REQUEST,At.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}function rK(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function aK(e,t){e=e||10;const n=new Array(e),r=new Array(e);let a=0,o=0,s;return t=t!==void 0?t:1e3,function(u){const d=Date.now(),p=r[o];s||(s=d),n[a]=u,r[a]=d;let h=o,g=0;for(;h!==a;)g+=n[h++],h=h%e;if(a=(a+1)%e,a===o&&(o=(o+1)%e),d-s<t)return;const y=p&&d-p;return y?Math.round(g*1e3/y):void 0}}function oK(e,t){let n=0,r=1e3/t,a,o;const s=(d,p=Date.now())=>{n=p,a=null,o&&(clearTimeout(o),o=null),e(...d)};return[(...d)=>{const p=Date.now(),h=p-n;h>=r?s(d,p):(a=d,o||(o=setTimeout(()=>{o=null,s(a)},r-h)))},()=>a&&s(a)]}const Pg=(e,t,n=3)=>{let r=0;const a=aK(50,250);return oK(o=>{const s=o.loaded,c=o.lengthComputable?o.total:void 0,u=s-r,d=a(u),p=s<=c;r=s;const h={loaded:s,total:c,progress:c?s/c:void 0,bytes:u,rate:d||void 0,estimated:d&&c&&p?(c-s)/d:void 0,event:o,lengthComputable:c!=null,[t?"download":"upload"]:!0};e(h)},n)},ak=(e,t)=>{const n=e!=null;return[r=>t[0]({lengthComputable:n,total:e,loaded:r}),t[1]]},ok=e=>(...t)=>ye.asap(()=>e(...t)),iK=Lr.hasStandardBrowserEnv?((e,t)=>n=>(n=new URL(n,Lr.origin),e.protocol===n.protocol&&e.host===n.host&&(t||e.port===n.port)))(new URL(Lr.origin),Lr.navigator&&/(msie|trident)/i.test(Lr.navigator.userAgent)):()=>!0,sK=Lr.hasStandardBrowserEnv?{write(e,t,n,r,a,o){const s=[e+"="+encodeURIComponent(t)];ye.isNumber(n)&&s.push("expires="+new Date(n).toGMTString()),ye.isString(r)&&s.push("path="+r),ye.isString(a)&&s.push("domain="+a),o===!0&&s.push("secure"),document.cookie=s.join("; ")},read(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function lK(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function cK(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function l5(e,t,n){let r=!lK(t);return e&&(r||n==!1)?cK(e,t):t}const ik=e=>e instanceof fa?{...e}:e;function Ll(e,t){t=t||{};const n={};function r(d,p,h,g){return ye.isPlainObject(d)&&ye.isPlainObject(p)?ye.merge.call({caseless:g},d,p):ye.isPlainObject(p)?ye.merge({},p):ye.isArray(p)?p.slice():p}function a(d,p,h,g){if(ye.isUndefined(p)){if(!ye.isUndefined(d))return r(void 0,d,h,g)}else return r(d,p,h,g)}function o(d,p){if(!ye.isUndefined(p))return r(void 0,p)}function s(d,p){if(ye.isUndefined(p)){if(!ye.isUndefined(d))return r(void 0,d)}else return r(void 0,p)}function c(d,p,h){if(h in t)return r(d,p);if(h in e)return r(void 0,d)}const u={url:o,method:o,data:o,baseURL:s,transformRequest:s,transformResponse:s,paramsSerializer:s,timeout:s,timeoutMessage:s,withCredentials:s,withXSRFToken:s,adapter:s,responseType:s,xsrfCookieName:s,xsrfHeaderName:s,onUploadProgress:s,onDownloadProgress:s,decompress:s,maxContentLength:s,maxBodyLength:s,beforeRedirect:s,transport:s,httpAgent:s,httpsAgent:s,cancelToken:s,socketPath:s,responseEncoding:s,validateStatus:c,headers:(d,p,h)=>a(ik(d),ik(p),h,!0)};return ye.forEach(Object.keys({...e,...t}),function(p){const h=u[p]||a,g=h(e[p],t[p],p);ye.isUndefined(g)&&h!==c||(n[p]=g)}),n}const c5=e=>{const t=Ll({},e);let{data:n,withXSRFToken:r,xsrfHeaderName:a,xsrfCookieName:o,headers:s,auth:c}=t;t.headers=s=fa.from(s),t.url=r5(l5(t.baseURL,t.url,t.allowAbsoluteUrls),e.params,e.paramsSerializer),c&&s.set("Authorization","Basic "+btoa((c.username||"")+":"+(c.password?unescape(encodeURIComponent(c.password)):"")));let u;if(ye.isFormData(n)){if(Lr.hasStandardBrowserEnv||Lr.hasStandardBrowserWebWorkerEnv)s.setContentType(void 0);else if((u=s.getContentType())!==!1){const[d,...p]=u?u.split(";").map(h=>h.trim()).filter(Boolean):[];s.setContentType([d||"multipart/form-data",...p].join("; "))}}if(Lr.hasStandardBrowserEnv&&(r&&ye.isFunction(r)&&(r=r(t)),r||r!==!1&&iK(t.url))){const d=a&&o&&sK.read(o);d&&s.set(a,d)}return t},uK=typeof XMLHttpRequest<"u",dK=uK&&function(e){return new Promise(function(n,r){const a=c5(e);let o=a.data;const s=fa.from(a.headers).normalize();let{responseType:c,onUploadProgress:u,onDownloadProgress:d}=a,p,h,g,y,b;function E(){y&&y(),b&&b(),a.cancelToken&&a.cancelToken.unsubscribe(p),a.signal&&a.signal.removeEventListener("abort",p)}let _=new XMLHttpRequest;_.open(a.method.toUpperCase(),a.url,!0),_.timeout=a.timeout;function A(){if(!_)return;const w=fa.from("getAllResponseHeaders"in _&&_.getAllResponseHeaders()),O={data:!c||c==="text"||c==="json"?_.responseText:_.response,status:_.status,statusText:_.statusText,headers:w,config:e,request:_};s5(function(F){n(F),E()},function(F){r(F),E()},O),_=null}"onloadend"in _?_.onloadend=A:_.onreadystatechange=function(){!_||_.readyState!==4||_.status===0&&!(_.responseURL&&_.responseURL.indexOf("file:")===0)||setTimeout(A)},_.onabort=function(){_&&(r(new At("Request aborted",At.ECONNABORTED,e,_)),_=null)},_.onerror=function(){r(new At("Network Error",At.ERR_NETWORK,e,_)),_=null},_.ontimeout=function(){let R=a.timeout?"timeout of "+a.timeout+"ms exceeded":"timeout exceeded";const O=a.transitional||a5;a.timeoutErrorMessage&&(R=a.timeoutErrorMessage),r(new At(R,O.clarifyTimeoutError?At.ETIMEDOUT:At.ECONNABORTED,e,_)),_=null},o===void 0&&s.setContentType(null),"setRequestHeader"in _&&ye.forEach(s.toJSON(),function(R,O){_.setRequestHeader(O,R)}),ye.isUndefined(a.withCredentials)||(_.withCredentials=!!a.withCredentials),c&&c!=="json"&&(_.responseType=a.responseType),d&&([g,b]=Pg(d,!0),_.addEventListener("progress",g)),u&&_.upload&&([h,y]=Pg(u),_.upload.addEventListener("progress",h),_.upload.addEventListener("loadend",y)),(a.cancelToken||a.signal)&&(p=w=>{_&&(r(!w||w.type?new Au(null,e,_):w),_.abort(),_=null)},a.cancelToken&&a.cancelToken.subscribe(p),a.signal&&(a.signal.aborted?p():a.signal.addEventListener("abort",p)));const D=rK(a.url);if(D&&Lr.protocols.indexOf(D)===-1){r(new At("Unsupported protocol "+D+":",At.ERR_BAD_REQUEST,e));return}_.send(o||null)})},fK=(e,t)=>{const{length:n}=e=e?e.filter(Boolean):[];if(t||n){let r=new AbortController,a;const o=function(d){if(!a){a=!0,c();const p=d instanceof Error?d:this.reason;r.abort(p instanceof At?p:new Au(p instanceof Error?p.message:p))}};let s=t&&setTimeout(()=>{s=null,o(new At(`timeout ${t} of ms exceeded`,At.ETIMEDOUT))},t);const c=()=>{e&&(s&&clearTimeout(s),s=null,e.forEach(d=>{d.unsubscribe?d.unsubscribe(o):d.removeEventListener("abort",o)}),e=null)};e.forEach(d=>d.addEventListener("abort",o));const{signal:u}=r;return u.unsubscribe=()=>ye.asap(c),u}},pK=function*(e,t){let n=e.byteLength;if(n<t){yield e;return}let r=0,a;for(;r<n;)a=r+t,yield e.slice(r,a),r=a},hK=async function*(e,t){for await(const n of mK(e))yield*pK(n,t)},mK=async function*(e){if(e[Symbol.asyncIterator]){yield*e;return}const t=e.getReader();try{for(;;){const{done:n,value:r}=await t.read();if(n)break;yield r}}finally{await t.cancel()}},sk=(e,t,n,r)=>{const a=hK(e,t);let o=0,s,c=u=>{s||(s=!0,r&&r(u))};return new ReadableStream({async pull(u){try{const{done:d,value:p}=await a.next();if(d){c(),u.close();return}let h=p.byteLength;if(n){let g=o+=h;n(g)}u.enqueue(new Uint8Array(p))}catch(d){throw c(d),d}},cancel(u){return c(u),a.return()}},{highWaterMark:2})},Fy=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",u5=Fy&&typeof ReadableStream=="function",gK=Fy&&(typeof TextEncoder=="function"?(e=>t=>e.encode(t))(new TextEncoder):async e=>new Uint8Array(await new Response(e).arrayBuffer())),d5=(e,...t)=>{try{return!!e(...t)}catch{return!1}},yK=u5&&d5(()=>{let e=!1;const t=new Request(Lr.origin,{body:new ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t}),lk=64*1024,UE=u5&&d5(()=>ye.isReadableStream(new Response("").body)),Mg={stream:UE&&(e=>e.body)};Fy&&(e=>{["text","arrayBuffer","blob","formData","stream"].forEach(t=>{!Mg[t]&&(Mg[t]=ye.isFunction(e[t])?n=>n[t]():(n,r)=>{throw new At(`Response type '${t}' is not supported`,At.ERR_NOT_SUPPORT,r)})})})(new Response);const vK=async e=>{if(e==null)return 0;if(ye.isBlob(e))return e.size;if(ye.isSpecCompliantForm(e))return(await new Request(Lr.origin,{method:"POST",body:e}).arrayBuffer()).byteLength;if(ye.isArrayBufferView(e)||ye.isArrayBuffer(e))return e.byteLength;if(ye.isURLSearchParams(e)&&(e=e+""),ye.isString(e))return(await gK(e)).byteLength},bK=async(e,t)=>{const n=ye.toFiniteNumber(e.getContentLength());return n??vK(t)},EK=Fy&&(async e=>{let{url:t,method:n,data:r,signal:a,cancelToken:o,timeout:s,onDownloadProgress:c,onUploadProgress:u,responseType:d,headers:p,withCredentials:h="same-origin",fetchOptions:g}=c5(e);d=d?(d+"").toLowerCase():"text";let y=fK([a,o&&o.toAbortSignal()],s),b;const E=y&&y.unsubscribe&&(()=>{y.unsubscribe()});let _;try{if(u&&yK&&n!=="get"&&n!=="head"&&(_=await bK(p,r))!==0){let O=new Request(t,{method:"POST",body:r,duplex:"half"}),k;if(ye.isFormData(r)&&(k=O.headers.get("content-type"))&&p.setContentType(k),O.body){const[F,G]=ak(_,Pg(ok(u)));r=sk(O.body,lk,F,G)}}ye.isString(h)||(h=h?"include":"omit");const A="credentials"in Request.prototype;b=new Request(t,{...g,signal:y,method:n.toUpperCase(),headers:p.normalize().toJSON(),body:r,duplex:"half",credentials:A?h:void 0});let D=await fetch(b,g);const w=UE&&(d==="stream"||d==="response");if(UE&&(c||w&&E)){const O={};["status","statusText","headers"].forEach(j=>{O[j]=D[j]});const k=ye.toFiniteNumber(D.headers.get("content-length")),[F,G]=c&&ak(k,Pg(ok(c),!0))||[];D=new Response(sk(D.body,lk,F,()=>{G&&G(),E&&E()}),O)}d=d||"text";let R=await Mg[ye.findKey(Mg,d)||"text"](D,e);return!w&&E&&E(),await new Promise((O,k)=>{s5(O,k,{data:R,headers:fa.from(D.headers),status:D.status,statusText:D.statusText,config:e,request:b})})}catch(A){throw E&&E(),A&&A.name==="TypeError"&&/Load failed|fetch/i.test(A.message)?Object.assign(new At("Network Error",At.ERR_NETWORK,e,b),{cause:A.cause||A}):At.from(A,A&&A.code,e,b)}}),jE={http:PQ,xhr:dK,fetch:EK};ye.forEach(jE,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const ck=e=>`- ${e}`,TK=e=>ye.isFunction(e)||e===null||e===!1,f5={getAdapter:e=>{e=ye.isArray(e)?e:[e];const{length:t}=e;let n,r;const a={};for(let o=0;o<t;o++){n=e[o];let s;if(r=n,!TK(n)&&(r=jE[(s=String(n)).toLowerCase()],r===void 0))throw new At(`Unknown adapter '${s}'`);if(r)break;a[s||"#"+o]=r}if(!r){const o=Object.entries(a).map(([c,u])=>`adapter ${c} `+(u===!1?"is not supported by the environment":"is not available in the build"));let s=t?o.length>1?`since :
239
+ `)}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...n){const r=new this(t);return n.forEach(a=>r.set(a)),r}static accessor(t){const r=(this[rk]=this[rk]={accessors:{}}).accessors,a=this.prototype;function o(s){const c=Ud(s);r[c]||(nK(a,s),r[c]=!0)}return ye.isArray(t)?t.forEach(o):o(t),this}};fa.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);ye.reduceDescriptors(fa.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(r){this[n]=r}}});ye.freezeMethods(fa);function tb(e,t){const n=this||Bp,r=t||n,a=fa.from(r.headers);let o=r.data;return ye.forEach(e,function(c){o=c.call(n,o,a.normalize(),t?t.status:void 0)}),a.normalize(),o}function i5(e){return!!(e&&e.__CANCEL__)}function Au(e,t,n){At.call(this,e??"canceled",At.ERR_CANCELED,t,n),this.name="CanceledError"}ye.inherits(Au,At,{__CANCEL__:!0});function s5(e,t,n){const r=n.config.validateStatus;!n.status||!r||r(n.status)?e(n):t(new At("Request failed with status code "+n.status,[At.ERR_BAD_REQUEST,At.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}function rK(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function aK(e,t){e=e||10;const n=new Array(e),r=new Array(e);let a=0,o=0,s;return t=t!==void 0?t:1e3,function(u){const d=Date.now(),p=r[o];s||(s=d),n[a]=u,r[a]=d;let h=o,g=0;for(;h!==a;)g+=n[h++],h=h%e;if(a=(a+1)%e,a===o&&(o=(o+1)%e),d-s<t)return;const y=p&&d-p;return y?Math.round(g*1e3/y):void 0}}function oK(e,t){let n=0,r=1e3/t,a,o;const s=(d,p=Date.now())=>{n=p,a=null,o&&(clearTimeout(o),o=null),e(...d)};return[(...d)=>{const p=Date.now(),h=p-n;h>=r?s(d,p):(a=d,o||(o=setTimeout(()=>{o=null,s(a)},r-h)))},()=>a&&s(a)]}const Pg=(e,t,n=3)=>{let r=0;const a=aK(50,250);return oK(o=>{const s=o.loaded,c=o.lengthComputable?o.total:void 0,u=s-r,d=a(u),p=s<=c;r=s;const h={loaded:s,total:c,progress:c?s/c:void 0,bytes:u,rate:d||void 0,estimated:d&&c&&p?(c-s)/d:void 0,event:o,lengthComputable:c!=null,[t?"download":"upload"]:!0};e(h)},n)},ak=(e,t)=>{const n=e!=null;return[r=>t[0]({lengthComputable:n,total:e,loaded:r}),t[1]]},ok=e=>(...t)=>ye.asap(()=>e(...t)),iK=Lr.hasStandardBrowserEnv?((e,t)=>n=>(n=new URL(n,Lr.origin),e.protocol===n.protocol&&e.host===n.host&&(t||e.port===n.port)))(new URL(Lr.origin),Lr.navigator&&/(msie|trident)/i.test(Lr.navigator.userAgent)):()=>!0,sK=Lr.hasStandardBrowserEnv?{write(e,t,n,r,a,o){const s=[e+"="+encodeURIComponent(t)];ye.isNumber(n)&&s.push("expires="+new Date(n).toGMTString()),ye.isString(r)&&s.push("path="+r),ye.isString(a)&&s.push("domain="+a),o===!0&&s.push("secure"),document.cookie=s.join("; ")},read(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function lK(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function cK(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function l5(e,t,n){let r=!lK(t);return e&&(r||n==!1)?cK(e,t):t}const ik=e=>e instanceof fa?{...e}:e;function Ll(e,t){t=t||{};const n={};function r(d,p,h,g){return ye.isPlainObject(d)&&ye.isPlainObject(p)?ye.merge.call({caseless:g},d,p):ye.isPlainObject(p)?ye.merge({},p):ye.isArray(p)?p.slice():p}function a(d,p,h,g){if(ye.isUndefined(p)){if(!ye.isUndefined(d))return r(void 0,d,h,g)}else return r(d,p,h,g)}function o(d,p){if(!ye.isUndefined(p))return r(void 0,p)}function s(d,p){if(ye.isUndefined(p)){if(!ye.isUndefined(d))return r(void 0,d)}else return r(void 0,p)}function c(d,p,h){if(h in t)return r(d,p);if(h in e)return r(void 0,d)}const u={url:o,method:o,data:o,baseURL:s,transformRequest:s,transformResponse:s,paramsSerializer:s,timeout:s,timeoutMessage:s,withCredentials:s,withXSRFToken:s,adapter:s,responseType:s,xsrfCookieName:s,xsrfHeaderName:s,onUploadProgress:s,onDownloadProgress:s,decompress:s,maxContentLength:s,maxBodyLength:s,beforeRedirect:s,transport:s,httpAgent:s,httpsAgent:s,cancelToken:s,socketPath:s,responseEncoding:s,validateStatus:c,headers:(d,p,h)=>a(ik(d),ik(p),h,!0)};return ye.forEach(Object.keys({...e,...t}),function(p){const h=u[p]||a,g=h(e[p],t[p],p);ye.isUndefined(g)&&h!==c||(n[p]=g)}),n}const c5=e=>{const t=Ll({},e);let{data:n,withXSRFToken:r,xsrfHeaderName:a,xsrfCookieName:o,headers:s,auth:c}=t;t.headers=s=fa.from(s),t.url=r5(l5(t.baseURL,t.url,t.allowAbsoluteUrls),e.params,e.paramsSerializer),c&&s.set("Authorization","Basic "+btoa((c.username||"")+":"+(c.password?unescape(encodeURIComponent(c.password)):"")));let u;if(ye.isFormData(n)){if(Lr.hasStandardBrowserEnv||Lr.hasStandardBrowserWebWorkerEnv)s.setContentType(void 0);else if((u=s.getContentType())!==!1){const[d,...p]=u?u.split(";").map(h=>h.trim()).filter(Boolean):[];s.setContentType([d||"multipart/form-data",...p].join("; "))}}if(Lr.hasStandardBrowserEnv&&(r&&ye.isFunction(r)&&(r=r(t)),r||r!==!1&&iK(t.url))){const d=a&&o&&sK.read(o);d&&s.set(a,d)}return t},uK=typeof XMLHttpRequest<"u",dK=uK&&function(e){return new Promise(function(n,r){const a=c5(e);let o=a.data;const s=fa.from(a.headers).normalize();let{responseType:c,onUploadProgress:u,onDownloadProgress:d}=a,p,h,g,y,b;function E(){y&&y(),b&&b(),a.cancelToken&&a.cancelToken.unsubscribe(p),a.signal&&a.signal.removeEventListener("abort",p)}let _=new XMLHttpRequest;_.open(a.method.toUpperCase(),a.url,!0),_.timeout=a.timeout;function A(){if(!_)return;const w=fa.from("getAllResponseHeaders"in _&&_.getAllResponseHeaders()),O={data:!c||c==="text"||c==="json"?_.responseText:_.response,status:_.status,statusText:_.statusText,headers:w,config:e,request:_};s5(function(F){n(F),E()},function(F){r(F),E()},O),_=null}"onloadend"in _?_.onloadend=A:_.onreadystatechange=function(){!_||_.readyState!==4||_.status===0&&!(_.responseURL&&_.responseURL.indexOf("file:")===0)||setTimeout(A)},_.onabort=function(){_&&(r(new At("Request aborted",At.ECONNABORTED,e,_)),_=null)},_.onerror=function(){r(new At("Network Error",At.ERR_NETWORK,e,_)),_=null},_.ontimeout=function(){let R=a.timeout?"timeout of "+a.timeout+"ms exceeded":"timeout exceeded";const O=a.transitional||a5;a.timeoutErrorMessage&&(R=a.timeoutErrorMessage),r(new At(R,O.clarifyTimeoutError?At.ETIMEDOUT:At.ECONNABORTED,e,_)),_=null},o===void 0&&s.setContentType(null),"setRequestHeader"in _&&ye.forEach(s.toJSON(),function(R,O){_.setRequestHeader(O,R)}),ye.isUndefined(a.withCredentials)||(_.withCredentials=!!a.withCredentials),c&&c!=="json"&&(_.responseType=a.responseType),d&&([g,b]=Pg(d,!0),_.addEventListener("progress",g)),u&&_.upload&&([h,y]=Pg(u),_.upload.addEventListener("progress",h),_.upload.addEventListener("loadend",y)),(a.cancelToken||a.signal)&&(p=w=>{_&&(r(!w||w.type?new Au(null,e,_):w),_.abort(),_=null)},a.cancelToken&&a.cancelToken.subscribe(p),a.signal&&(a.signal.aborted?p():a.signal.addEventListener("abort",p)));const D=rK(a.url);if(D&&Lr.protocols.indexOf(D)===-1){r(new At("Unsupported protocol "+D+":",At.ERR_BAD_REQUEST,e));return}_.send(o||null)})},fK=(e,t)=>{const{length:n}=e=e?e.filter(Boolean):[];if(t||n){let r=new AbortController,a;const o=function(d){if(!a){a=!0,c();const p=d instanceof Error?d:this.reason;r.abort(p instanceof At?p:new Au(p instanceof Error?p.message:p))}};let s=t&&setTimeout(()=>{s=null,o(new At(`timeout ${t} of ms exceeded`,At.ETIMEDOUT))},t);const c=()=>{e&&(s&&clearTimeout(s),s=null,e.forEach(d=>{d.unsubscribe?d.unsubscribe(o):d.removeEventListener("abort",o)}),e=null)};e.forEach(d=>d.addEventListener("abort",o));const{signal:u}=r;return u.unsubscribe=()=>ye.asap(c),u}},pK=function*(e,t){let n=e.byteLength;if(n<t){yield e;return}let r=0,a;for(;r<n;)a=r+t,yield e.slice(r,a),r=a},hK=async function*(e,t){for await(const n of mK(e))yield*pK(n,t)},mK=async function*(e){if(e[Symbol.asyncIterator]){yield*e;return}const t=e.getReader();try{for(;;){const{done:n,value:r}=await t.read();if(n)break;yield r}}finally{await t.cancel()}},sk=(e,t,n,r)=>{const a=hK(e,t);let o=0,s,c=u=>{s||(s=!0,r&&r(u))};return new ReadableStream({async pull(u){try{const{done:d,value:p}=await a.next();if(d){c(),u.close();return}let h=p.byteLength;if(n){let g=o+=h;n(g)}u.enqueue(new Uint8Array(p))}catch(d){throw c(d),d}},cancel(u){return c(u),a.return()}},{highWaterMark:2})},By=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",u5=By&&typeof ReadableStream=="function",gK=By&&(typeof TextEncoder=="function"?(e=>t=>e.encode(t))(new TextEncoder):async e=>new Uint8Array(await new Response(e).arrayBuffer())),d5=(e,...t)=>{try{return!!e(...t)}catch{return!1}},yK=u5&&d5(()=>{let e=!1;const t=new Request(Lr.origin,{body:new ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t}),lk=64*1024,UE=u5&&d5(()=>ye.isReadableStream(new Response("").body)),Mg={stream:UE&&(e=>e.body)};By&&(e=>{["text","arrayBuffer","blob","formData","stream"].forEach(t=>{!Mg[t]&&(Mg[t]=ye.isFunction(e[t])?n=>n[t]():(n,r)=>{throw new At(`Response type '${t}' is not supported`,At.ERR_NOT_SUPPORT,r)})})})(new Response);const vK=async e=>{if(e==null)return 0;if(ye.isBlob(e))return e.size;if(ye.isSpecCompliantForm(e))return(await new Request(Lr.origin,{method:"POST",body:e}).arrayBuffer()).byteLength;if(ye.isArrayBufferView(e)||ye.isArrayBuffer(e))return e.byteLength;if(ye.isURLSearchParams(e)&&(e=e+""),ye.isString(e))return(await gK(e)).byteLength},bK=async(e,t)=>{const n=ye.toFiniteNumber(e.getContentLength());return n??vK(t)},EK=By&&(async e=>{let{url:t,method:n,data:r,signal:a,cancelToken:o,timeout:s,onDownloadProgress:c,onUploadProgress:u,responseType:d,headers:p,withCredentials:h="same-origin",fetchOptions:g}=c5(e);d=d?(d+"").toLowerCase():"text";let y=fK([a,o&&o.toAbortSignal()],s),b;const E=y&&y.unsubscribe&&(()=>{y.unsubscribe()});let _;try{if(u&&yK&&n!=="get"&&n!=="head"&&(_=await bK(p,r))!==0){let O=new Request(t,{method:"POST",body:r,duplex:"half"}),k;if(ye.isFormData(r)&&(k=O.headers.get("content-type"))&&p.setContentType(k),O.body){const[F,G]=ak(_,Pg(ok(u)));r=sk(O.body,lk,F,G)}}ye.isString(h)||(h=h?"include":"omit");const A="credentials"in Request.prototype;b=new Request(t,{...g,signal:y,method:n.toUpperCase(),headers:p.normalize().toJSON(),body:r,duplex:"half",credentials:A?h:void 0});let D=await fetch(b,g);const w=UE&&(d==="stream"||d==="response");if(UE&&(c||w&&E)){const O={};["status","statusText","headers"].forEach(j=>{O[j]=D[j]});const k=ye.toFiniteNumber(D.headers.get("content-length")),[F,G]=c&&ak(k,Pg(ok(c),!0))||[];D=new Response(sk(D.body,lk,F,()=>{G&&G(),E&&E()}),O)}d=d||"text";let R=await Mg[ye.findKey(Mg,d)||"text"](D,e);return!w&&E&&E(),await new Promise((O,k)=>{s5(O,k,{data:R,headers:fa.from(D.headers),status:D.status,statusText:D.statusText,config:e,request:b})})}catch(A){throw E&&E(),A&&A.name==="TypeError"&&/Load failed|fetch/i.test(A.message)?Object.assign(new At("Network Error",At.ERR_NETWORK,e,b),{cause:A.cause||A}):At.from(A,A&&A.code,e,b)}}),jE={http:PQ,xhr:dK,fetch:EK};ye.forEach(jE,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const ck=e=>`- ${e}`,TK=e=>ye.isFunction(e)||e===null||e===!1,f5={getAdapter:e=>{e=ye.isArray(e)?e:[e];const{length:t}=e;let n,r;const a={};for(let o=0;o<t;o++){n=e[o];let s;if(r=n,!TK(n)&&(r=jE[(s=String(n)).toLowerCase()],r===void 0))throw new At(`Unknown adapter '${s}'`);if(r)break;a[s||"#"+o]=r}if(!r){const o=Object.entries(a).map(([c,u])=>`adapter ${c} `+(u===!1?"is not supported by the environment":"is not available in the build"));let s=t?o.length>1?`since :
240
240
  `+o.map(ck).join(`
241
- `):" "+ck(o[0]):"as no adapter specified";throw new At("There is no suitable adapter to dispatch the request "+s,"ERR_NOT_SUPPORT")}return r},adapters:jE};function nb(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new Au(null,e)}function uk(e){return nb(e),e.headers=fa.from(e.headers),e.data=tb.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),f5.getAdapter(e.adapter||Bp.adapter)(e).then(function(r){return nb(e),r.data=tb.call(e,e.transformResponse,r),r.headers=fa.from(r.headers),r},function(r){return i5(r)||(nb(e),r&&r.response&&(r.response.data=tb.call(e,e.transformResponse,r.response),r.response.headers=fa.from(r.response.headers))),Promise.reject(r)})}const p5="1.11.0",By={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{By[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});const dk={};By.transitional=function(t,n,r){function a(o,s){return"[Axios v"+p5+"] Transitional option '"+o+"'"+s+(r?". "+r:"")}return(o,s,c)=>{if(t===!1)throw new At(a(s," has been removed"+(n?" in "+n:"")),At.ERR_DEPRECATED);return n&&!dk[s]&&(dk[s]=!0,console.warn(a(s," has been deprecated since v"+n+" and will be removed in the near future"))),t?t(o,s,c):!0}};By.spelling=function(t){return(n,r)=>(console.warn(`${r} is likely a misspelling of ${t}`),!0)};function SK(e,t,n){if(typeof e!="object")throw new At("options must be an object",At.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let a=r.length;for(;a-- >0;){const o=r[a],s=t[o];if(s){const c=e[o],u=c===void 0||s(c,o,e);if(u!==!0)throw new At("option "+o+" must be "+u,At.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new At("Unknown option "+o,At.ERR_BAD_OPTION)}}const Km={assertOptions:SK,validators:By},Mo=Km.validators;let Cl=class{constructor(t){this.defaults=t||{},this.interceptors={request:new nk,response:new nk}}async request(t,n){try{return await this._request(t,n)}catch(r){if(r instanceof Error){let a={};Error.captureStackTrace?Error.captureStackTrace(a):a=new Error;const o=a.stack?a.stack.replace(/^.+\n/,""):"";try{r.stack?o&&!String(r.stack).endsWith(o.replace(/^.+\n.+\n/,""))&&(r.stack+=`
242
- `+o):r.stack=o}catch{}}throw r}}_request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=Ll(this.defaults,n);const{transitional:r,paramsSerializer:a,headers:o}=n;r!==void 0&&Km.assertOptions(r,{silentJSONParsing:Mo.transitional(Mo.boolean),forcedJSONParsing:Mo.transitional(Mo.boolean),clarifyTimeoutError:Mo.transitional(Mo.boolean)},!1),a!=null&&(ye.isFunction(a)?n.paramsSerializer={serialize:a}:Km.assertOptions(a,{encode:Mo.function,serialize:Mo.function},!0)),n.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?n.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:n.allowAbsoluteUrls=!0),Km.assertOptions(n,{baseUrl:Mo.spelling("baseURL"),withXsrfToken:Mo.spelling("withXSRFToken")},!0),n.method=(n.method||this.defaults.method||"get").toLowerCase();let s=o&&ye.merge(o.common,o[n.method]);o&&ye.forEach(["delete","get","head","post","put","patch","common"],b=>{delete o[b]}),n.headers=fa.concat(s,o);const c=[];let u=!0;this.interceptors.request.forEach(function(E){typeof E.runWhen=="function"&&E.runWhen(n)===!1||(u=u&&E.synchronous,c.unshift(E.fulfilled,E.rejected))});const d=[];this.interceptors.response.forEach(function(E){d.push(E.fulfilled,E.rejected)});let p,h=0,g;if(!u){const b=[uk.bind(this),void 0];for(b.unshift(...c),b.push(...d),g=b.length,p=Promise.resolve(n);h<g;)p=p.then(b[h++],b[h++]);return p}g=c.length;let y=n;for(h=0;h<g;){const b=c[h++],E=c[h++];try{y=b(y)}catch(_){E.call(this,_);break}}try{p=uk.call(this,y)}catch(b){return Promise.reject(b)}for(h=0,g=d.length;h<g;)p=p.then(d[h++],d[h++]);return p}getUri(t){t=Ll(this.defaults,t);const n=l5(t.baseURL,t.url,t.allowAbsoluteUrls);return r5(n,t.params,t.paramsSerializer)}};ye.forEach(["delete","get","head","options"],function(t){Cl.prototype[t]=function(n,r){return this.request(Ll(r||{},{method:t,url:n,data:(r||{}).data}))}});ye.forEach(["post","put","patch"],function(t){function n(r){return function(o,s,c){return this.request(Ll(c||{},{method:t,headers:r?{"Content-Type":"multipart/form-data"}:{},url:o,data:s}))}}Cl.prototype[t]=n(),Cl.prototype[t+"Form"]=n(!0)});let _K=class h5{constructor(t){if(typeof t!="function")throw new TypeError("executor must be a function.");let n;this.promise=new Promise(function(o){n=o});const r=this;this.promise.then(a=>{if(!r._listeners)return;let o=r._listeners.length;for(;o-- >0;)r._listeners[o](a);r._listeners=null}),this.promise.then=a=>{let o;const s=new Promise(c=>{r.subscribe(c),o=c}).then(a);return s.cancel=function(){r.unsubscribe(o)},s},t(function(o,s,c){r.reason||(r.reason=new Au(o,s,c),n(r.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const n=this._listeners.indexOf(t);n!==-1&&this._listeners.splice(n,1)}toAbortSignal(){const t=new AbortController,n=r=>{t.abort(r)};return this.subscribe(n),t.signal.unsubscribe=()=>this.unsubscribe(n),t.signal}static source(){let t;return{token:new h5(function(a){t=a}),cancel:t}}};function CK(e){return function(n){return e.apply(null,n)}}function AK(e){return ye.isObject(e)&&e.isAxiosError===!0}const HE={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(HE).forEach(([e,t])=>{HE[t]=e});function m5(e){const t=new Cl(e),n=GN(Cl.prototype.request,t);return ye.extend(n,Cl.prototype,t,{allOwnKeys:!0}),ye.extend(n,t,null,{allOwnKeys:!0}),n.create=function(a){return m5(Ll(e,a))},n}const ct=m5(Bp);ct.Axios=Cl;ct.CanceledError=Au;ct.CancelToken=_K;ct.isCancel=i5;ct.VERSION=p5;ct.toFormData=$y;ct.AxiosError=At;ct.Cancel=ct.CanceledError;ct.all=function(t){return Promise.all(t)};ct.spread=CK;ct.isAxiosError=AK;ct.mergeConfig=Ll;ct.AxiosHeaders=fa;ct.formToJSON=e=>o5(ye.isHTMLForm(e)?new FormData(e):e);ct.getAdapter=f5.getAdapter;ct.HttpStatusCode=HE;ct.default=ct;const{Axios:Mye,AxiosError:$ye,CanceledError:Fye,isCancel:Bye,CancelToken:Uye,VERSION:jye,all:Hye,Cancel:zye,isAxiosError:Vye,spread:Gye,toFormData:qye,AxiosHeaders:Wye,HttpStatusCode:Yye,formToJSON:Qye,getAdapter:Kye,mergeConfig:Xye}=ct,qt="http://localhost/api/v0".replace(/\/+$/,"");let Ui=class{constructor(t,n=qt,r=ct){this.basePath=n,this.axios=r,t&&(this.configuration=t,this.basePath=t.basePath??n)}configuration},xK=class extends Error{constructor(t,n){super(n),this.field=t,this.name="RequiredError"}};const Kt={},Xt="https://example.com",tt=function(e,t,n){if(n==null)throw new xK(t,`Required parameter ${t} was null or undefined when calling ${e}.`)};function zE(e,t,n=""){t!=null&&(typeof t=="object"?Array.isArray(t)?t.forEach(r=>zE(e,r,n)):Object.keys(t).forEach(r=>zE(e,t[r],`${n}${n!==""?".":""}${r}`)):e.has(n)?e.append(n,t):e.set(n,t))}const Zt=function(e,...t){const n=new URLSearchParams(e.search);zE(n,t),e.search=n.toString()},Oi=function(e,t,n){const r=typeof e!="string";return(r&&n&&n.isJsonMime?n.isJsonMime(t.headers["Content-Type"]):r)?JSON.stringify(e!==void 0?e:{}):e||""},Jt=function(e){return e.pathname+e.search+e.hash},en=function(e,t,n,r){return(a=t,o=n)=>{const s={...e.options,url:(a.defaults.baseURL?"":r?.basePath??o)+e.url};return a.request(s)}},e0e={Postgres:"postgres",Bigquery:"bigquery",Snowflake:"snowflake",Trino:"trino",Mysql:"mysql"},wK=function(e){return{getConnection:async(t,n,r={})=>{tt("getConnection","projectName",t),tt("getConnection","connectionName",n);const a="/projects/{projectName}/connections/{connectionName}".replace("{projectName}",encodeURIComponent(String(t))).replace("{connectionName}",encodeURIComponent(String(n))),o=new URL(a,Xt);let s;e&&(s=e.baseOptions);const c={method:"GET",...s,...r},u={};Zt(o,{});let d=s&&s.headers?s.headers:{};return c.headers={...u,...d,...r.headers},{url:Jt(o),options:c}},getQuerydata:async(t,n,r,a,o={})=>{tt("getQuerydata","projectName",t),tt("getQuerydata","connectionName",n);const s="/projects/{projectName}/connections/{connectionName}/queryData".replace("{projectName}",encodeURIComponent(String(t))).replace("{connectionName}",encodeURIComponent(String(n))),c=new URL(s,Xt);let u;e&&(u=e.baseOptions);const d={method:"GET",...u,...o},p={},h={};r!==void 0&&(h.sqlStatement=r),a!==void 0&&(h.options=a),Zt(c,h);let g=u&&u.headers?u.headers:{};return d.headers={...p,...g,...o.headers},{url:Jt(c),options:d}},getSqlsource:async(t,n,r,a={})=>{tt("getSqlsource","projectName",t),tt("getSqlsource","connectionName",n);const o="/projects/{projectName}/connections/{connectionName}/sqlSource".replace("{projectName}",encodeURIComponent(String(t))).replace("{connectionName}",encodeURIComponent(String(n))),s=new URL(o,Xt);let c;e&&(c=e.baseOptions);const u={method:"GET",...c,...a},d={},p={};r!==void 0&&(p.sqlStatement=r),Zt(s,p);let h=c&&c.headers?c.headers:{};return u.headers={...d,...h,...a.headers},{url:Jt(s),options:u}},getTablesource:async(t,n,r,a,o={})=>{tt("getTablesource","projectName",t),tt("getTablesource","connectionName",n);const s="/projects/{projectName}/connections/{connectionName}/tableSource".replace("{projectName}",encodeURIComponent(String(t))).replace("{connectionName}",encodeURIComponent(String(n))),c=new URL(s,Xt);let u;e&&(u=e.baseOptions);const d={method:"GET",...u,...o},p={},h={};r!==void 0&&(h.tableKey=r),a!==void 0&&(h.tablePath=a),Zt(c,h);let g=u&&u.headers?u.headers:{};return d.headers={...p,...g,...o.headers},{url:Jt(c),options:d}},getTemporarytable:async(t,n,r,a={})=>{tt("getTemporarytable","projectName",t),tt("getTemporarytable","connectionName",n);const o="/projects/{projectName}/connections/{connectionName}/temporaryTable".replace("{projectName}",encodeURIComponent(String(t))).replace("{connectionName}",encodeURIComponent(String(n))),s=new URL(o,Xt);let c;e&&(c=e.baseOptions);const u={method:"GET",...c,...a},d={},p={};r!==void 0&&(p.sqlStatement=r),Zt(s,p);let h=c&&c.headers?c.headers:{};return u.headers={...d,...h,...a.headers},{url:Jt(s),options:u}},listConnections:async(t,n={})=>{tt("listConnections","projectName",t);const r="/projects/{projectName}/connections".replace("{projectName}",encodeURIComponent(String(t))),a=new URL(r,Xt);let o;e&&(o=e.baseOptions);const s={method:"GET",...o,...n},c={};Zt(a,{});let u=o&&o.headers?o.headers:{};return s.headers={...c,...u,...n.headers},{url:Jt(a),options:s}},listSchemas:async(t,n,r={})=>{tt("listSchemas","projectName",t),tt("listSchemas","connectionName",n);const a="/projects/{projectName}/connections/{connectionName}/schemas".replace("{projectName}",encodeURIComponent(String(t))).replace("{connectionName}",encodeURIComponent(String(n))),o=new URL(a,Xt);let s;e&&(s=e.baseOptions);const c={method:"GET",...s,...r},u={};Zt(o,{});let d=s&&s.headers?s.headers:{};return c.headers={...u,...d,...r.headers},{url:Jt(o),options:c}},listTables:async(t,n,r,a={})=>{tt("listTables","projectName",t),tt("listTables","connectionName",n),tt("listTables","schemaName",r);const o="/projects/{projectName}/connections/{connectionName}/schemas/{schemaName}/tables".replace("{projectName}",encodeURIComponent(String(t))).replace("{connectionName}",encodeURIComponent(String(n))).replace("{schemaName}",encodeURIComponent(String(r))),s=new URL(o,Xt);let c;e&&(c=e.baseOptions);const u={method:"GET",...c,...a},d={};Zt(s,{});let p=c&&c.headers?c.headers:{};return u.headers={...d,...p,...a.headers},{url:Jt(s),options:u}},postQuerydata:async(t,n,r,a,o={})=>{tt("postQuerydata","projectName",t),tt("postQuerydata","connectionName",n),tt("postQuerydata","postSqlsourceRequest",r);const s="/projects/{projectName}/connections/{connectionName}/queryData".replace("{projectName}",encodeURIComponent(String(t))).replace("{connectionName}",encodeURIComponent(String(n))),c=new URL(s,Xt);let u;e&&(u=e.baseOptions);const d={method:"POST",...u,...o},p={},h={};a!==void 0&&(h.options=a),p["Content-Type"]="application/json",Zt(c,h);let g=u&&u.headers?u.headers:{};return d.headers={...p,...g,...o.headers},d.data=Oi(r,d,e),{url:Jt(c),options:d}},postSqlsource:async(t,n,r,a={})=>{tt("postSqlsource","projectName",t),tt("postSqlsource","connectionName",n),tt("postSqlsource","postSqlsourceRequest",r);const o="/projects/{projectName}/connections/{connectionName}/sqlSource".replace("{projectName}",encodeURIComponent(String(t))).replace("{connectionName}",encodeURIComponent(String(n))),s=new URL(o,Xt);let c;e&&(c=e.baseOptions);const u={method:"POST",...c,...a},d={},p={};d["Content-Type"]="application/json",Zt(s,p);let h=c&&c.headers?c.headers:{};return u.headers={...d,...h,...a.headers},u.data=Oi(r,u,e),{url:Jt(s),options:u}},postTemporarytable:async(t,n,r,a={})=>{tt("postTemporarytable","projectName",t),tt("postTemporarytable","connectionName",n),tt("postTemporarytable","postSqlsourceRequest",r);const o="/projects/{projectName}/connections/{connectionName}/temporaryTable".replace("{projectName}",encodeURIComponent(String(t))).replace("{connectionName}",encodeURIComponent(String(n))),s=new URL(o,Xt);let c;e&&(c=e.baseOptions);const u={method:"POST",...c,...a},d={},p={};d["Content-Type"]="application/json",Zt(s,p);let h=c&&c.headers?c.headers:{};return u.headers={...d,...h,...a.headers},u.data=Oi(r,u,e),{url:Jt(s),options:u}},testConnection:async(t,n,r={})=>{tt("testConnection","projectName",t),tt("testConnection","connectionName",n);const a="/projects/{projectName}/connections/{connectionName}/test".replace("{projectName}",encodeURIComponent(String(t))).replace("{connectionName}",encodeURIComponent(String(n))),o=new URL(a,Xt);let s;e&&(s=e.baseOptions);const c={method:"GET",...s,...r},u={};Zt(o,{});let d=s&&s.headers?s.headers:{};return c.headers={...u,...d,...r.headers},{url:Jt(o),options:c}},testConnectionConfiguration:async(t,n={})=>{tt("testConnectionConfiguration","connection",t);const r="/connections/test",a=new URL(r,Xt);let o;e&&(o=e.baseOptions);const s={method:"POST",...o,...n},c={},u={};c["Content-Type"]="application/json",Zt(a,u);let d=o&&o.headers?o.headers:{};return s.headers={...c,...d,...n.headers},s.data=Oi(t,s,e),{url:Jt(a),options:s}}}},Aa=function(e){const t=wK(e);return{async getConnection(n,r,a){const o=await t.getConnection(n,r,a),s=e?.serverIndex??0,c=Kt["ConnectionsApi.getConnection"]?.[s]?.url;return(u,d)=>en(o,ct,qt,e)(u,c||d)},async getQuerydata(n,r,a,o,s){const c=await t.getQuerydata(n,r,a,o,s),u=e?.serverIndex??0,d=Kt["ConnectionsApi.getQuerydata"]?.[u]?.url;return(p,h)=>en(c,ct,qt,e)(p,d||h)},async getSqlsource(n,r,a,o){const s=await t.getSqlsource(n,r,a,o),c=e?.serverIndex??0,u=Kt["ConnectionsApi.getSqlsource"]?.[c]?.url;return(d,p)=>en(s,ct,qt,e)(d,u||p)},async getTablesource(n,r,a,o,s){const c=await t.getTablesource(n,r,a,o,s),u=e?.serverIndex??0,d=Kt["ConnectionsApi.getTablesource"]?.[u]?.url;return(p,h)=>en(c,ct,qt,e)(p,d||h)},async getTemporarytable(n,r,a,o){const s=await t.getTemporarytable(n,r,a,o),c=e?.serverIndex??0,u=Kt["ConnectionsApi.getTemporarytable"]?.[c]?.url;return(d,p)=>en(s,ct,qt,e)(d,u||p)},async listConnections(n,r){const a=await t.listConnections(n,r),o=e?.serverIndex??0,s=Kt["ConnectionsApi.listConnections"]?.[o]?.url;return(c,u)=>en(a,ct,qt,e)(c,s||u)},async listSchemas(n,r,a){const o=await t.listSchemas(n,r,a),s=e?.serverIndex??0,c=Kt["ConnectionsApi.listSchemas"]?.[s]?.url;return(u,d)=>en(o,ct,qt,e)(u,c||d)},async listTables(n,r,a,o){const s=await t.listTables(n,r,a,o),c=e?.serverIndex??0,u=Kt["ConnectionsApi.listTables"]?.[c]?.url;return(d,p)=>en(s,ct,qt,e)(d,u||p)},async postQuerydata(n,r,a,o,s){const c=await t.postQuerydata(n,r,a,o,s),u=e?.serverIndex??0,d=Kt["ConnectionsApi.postQuerydata"]?.[u]?.url;return(p,h)=>en(c,ct,qt,e)(p,d||h)},async postSqlsource(n,r,a,o){const s=await t.postSqlsource(n,r,a,o),c=e?.serverIndex??0,u=Kt["ConnectionsApi.postSqlsource"]?.[c]?.url;return(d,p)=>en(s,ct,qt,e)(d,u||p)},async postTemporarytable(n,r,a,o){const s=await t.postTemporarytable(n,r,a,o),c=e?.serverIndex??0,u=Kt["ConnectionsApi.postTemporarytable"]?.[c]?.url;return(d,p)=>en(s,ct,qt,e)(d,u||p)},async testConnection(n,r,a){const o=await t.testConnection(n,r,a),s=e?.serverIndex??0,c=Kt["ConnectionsApi.testConnection"]?.[s]?.url;return(u,d)=>en(o,ct,qt,e)(u,c||d)},async testConnectionConfiguration(n,r){const a=await t.testConnectionConfiguration(n,r),o=e?.serverIndex??0,s=Kt["ConnectionsApi.testConnectionConfiguration"]?.[o]?.url;return(c,u)=>en(a,ct,qt,e)(c,s||u)}}};let DK=class extends Ui{getConnection(t,n,r){return Aa(this.configuration).getConnection(t,n,r).then(a=>a(this.axios,this.basePath))}getQuerydata(t,n,r,a,o){return Aa(this.configuration).getQuerydata(t,n,r,a,o).then(s=>s(this.axios,this.basePath))}getSqlsource(t,n,r,a){return Aa(this.configuration).getSqlsource(t,n,r,a).then(o=>o(this.axios,this.basePath))}getTablesource(t,n,r,a,o){return Aa(this.configuration).getTablesource(t,n,r,a,o).then(s=>s(this.axios,this.basePath))}getTemporarytable(t,n,r,a){return Aa(this.configuration).getTemporarytable(t,n,r,a).then(o=>o(this.axios,this.basePath))}listConnections(t,n){return Aa(this.configuration).listConnections(t,n).then(r=>r(this.axios,this.basePath))}listSchemas(t,n,r){return Aa(this.configuration).listSchemas(t,n,r).then(a=>a(this.axios,this.basePath))}listTables(t,n,r,a){return Aa(this.configuration).listTables(t,n,r,a).then(o=>o(this.axios,this.basePath))}postQuerydata(t,n,r,a,o){return Aa(this.configuration).postQuerydata(t,n,r,a,o).then(s=>s(this.axios,this.basePath))}postSqlsource(t,n,r,a){return Aa(this.configuration).postSqlsource(t,n,r,a).then(o=>o(this.axios,this.basePath))}postTemporarytable(t,n,r,a){return Aa(this.configuration).postTemporarytable(t,n,r,a).then(o=>o(this.axios,this.basePath))}testConnection(t,n,r){return Aa(this.configuration).testConnection(t,n,r).then(a=>a(this.axios,this.basePath))}testConnectionConfiguration(t,n){return Aa(this.configuration).testConnectionConfiguration(t,n).then(r=>r(this.axios,this.basePath))}};const kK=function(e){return{listDatabases:async(t,n,r,a={})=>{tt("listDatabases","projectName",t),tt("listDatabases","packageName",n);const o="/projects/{projectName}/packages/{packageName}/databases".replace("{projectName}",encodeURIComponent(String(t))).replace("{packageName}",encodeURIComponent(String(n))),s=new URL(o,Xt);let c;e&&(c=e.baseOptions);const u={method:"GET",...c,...a},d={},p={};r!==void 0&&(p.versionId=r),Zt(s,p);let h=c&&c.headers?c.headers:{};return u.headers={...d,...h,...a.headers},{url:Jt(s),options:u}}}},RK=function(e){const t=kK(e);return{async listDatabases(n,r,a,o){const s=await t.listDatabases(n,r,a,o),c=e?.serverIndex??0,u=Kt["DatabasesApi.listDatabases"]?.[c]?.url;return(d,p)=>en(s,ct,qt,e)(d,u||p)}}};let OK=class extends Ui{listDatabases(t,n,r,a){return RK(this.configuration).listDatabases(t,n,r,a).then(o=>o(this.axios,this.basePath))}};const IK=function(e){return{getModel:async(t,n,r,a,o={})=>{tt("getModel","projectName",t),tt("getModel","packageName",n),tt("getModel","path",r);const s="/projects/{projectName}/packages/{packageName}/models/{path}".replace("{projectName}",encodeURIComponent(String(t))).replace("{packageName}",encodeURIComponent(String(n))).replace("{path}",encodeURIComponent(String(r))),c=new URL(s,Xt);let u;e&&(u=e.baseOptions);const d={method:"GET",...u,...o},p={},h={};a!==void 0&&(h.versionId=a),Zt(c,h);let g=u&&u.headers?u.headers:{};return d.headers={...p,...g,...o.headers},{url:Jt(c),options:d}},listModels:async(t,n,r,a={})=>{tt("listModels","projectName",t),tt("listModels","packageName",n);const o="/projects/{projectName}/packages/{packageName}/models".replace("{projectName}",encodeURIComponent(String(t))).replace("{packageName}",encodeURIComponent(String(n))),s=new URL(o,Xt);let c;e&&(c=e.baseOptions);const u={method:"GET",...c,...a},d={},p={};r!==void 0&&(p.versionId=r),Zt(s,p);let h=c&&c.headers?c.headers:{};return u.headers={...d,...h,...a.headers},{url:Jt(s),options:u}}}},fk=function(e){const t=IK(e);return{async getModel(n,r,a,o,s){const c=await t.getModel(n,r,a,o,s),u=e?.serverIndex??0,d=Kt["ModelsApi.getModel"]?.[u]?.url;return(p,h)=>en(c,ct,qt,e)(p,d||h)},async listModels(n,r,a,o){const s=await t.listModels(n,r,a,o),c=e?.serverIndex??0,u=Kt["ModelsApi.listModels"]?.[c]?.url;return(d,p)=>en(s,ct,qt,e)(d,u||p)}}};let NK=class extends Ui{getModel(t,n,r,a,o){return fk(this.configuration).getModel(t,n,r,a,o).then(s=>s(this.axios,this.basePath))}listModels(t,n,r,a){return fk(this.configuration).listModels(t,n,r,a).then(o=>o(this.axios,this.basePath))}};const LK=function(e){return{getNotebook:async(t,n,r,a,o={})=>{tt("getNotebook","projectName",t),tt("getNotebook","packageName",n),tt("getNotebook","path",r);const s="/projects/{projectName}/packages/{packageName}/notebooks/{path}".replace("{projectName}",encodeURIComponent(String(t))).replace("{packageName}",encodeURIComponent(String(n))).replace("{path}",encodeURIComponent(String(r))),c=new URL(s,Xt);let u;e&&(u=e.baseOptions);const d={method:"GET",...u,...o},p={},h={};a!==void 0&&(h.versionId=a),Zt(c,h);let g=u&&u.headers?u.headers:{};return d.headers={...p,...g,...o.headers},{url:Jt(c),options:d}},listNotebooks:async(t,n,r,a={})=>{tt("listNotebooks","projectName",t),tt("listNotebooks","packageName",n);const o="/projects/{projectName}/packages/{packageName}/notebooks".replace("{projectName}",encodeURIComponent(String(t))).replace("{packageName}",encodeURIComponent(String(n))),s=new URL(o,Xt);let c;e&&(c=e.baseOptions);const u={method:"GET",...c,...a},d={},p={};r!==void 0&&(p.versionId=r),Zt(s,p);let h=c&&c.headers?c.headers:{};return u.headers={...d,...h,...a.headers},{url:Jt(s),options:u}}}},pk=function(e){const t=LK(e);return{async getNotebook(n,r,a,o,s){const c=await t.getNotebook(n,r,a,o,s),u=e?.serverIndex??0,d=Kt["NotebooksApi.getNotebook"]?.[u]?.url;return(p,h)=>en(c,ct,qt,e)(p,d||h)},async listNotebooks(n,r,a,o){const s=await t.listNotebooks(n,r,a,o),c=e?.serverIndex??0,u=Kt["NotebooksApi.listNotebooks"]?.[c]?.url;return(d,p)=>en(s,ct,qt,e)(d,u||p)}}};let PK=class extends Ui{getNotebook(t,n,r,a,o){return pk(this.configuration).getNotebook(t,n,r,a,o).then(s=>s(this.axios,this.basePath))}listNotebooks(t,n,r,a){return pk(this.configuration).listNotebooks(t,n,r,a).then(o=>o(this.axios,this.basePath))}};const MK=function(e){return{createPackage:async(t,n,r={})=>{tt("createPackage","projectName",t),tt("createPackage","body",n);const a="/projects/{projectName}/packages".replace("{projectName}",encodeURIComponent(String(t))),o=new URL(a,Xt);let s;e&&(s=e.baseOptions);const c={method:"POST",...s,...r},u={},d={};u["Content-Type"]="application/json",Zt(o,d);let p=s&&s.headers?s.headers:{};return c.headers={...u,...p,...r.headers},c.data=Oi(n,c,e),{url:Jt(o),options:c}},deletePackage:async(t,n,r={})=>{tt("deletePackage","projectName",t),tt("deletePackage","packageName",n);const a="/projects/{projectName}/packages/{packageName}".replace("{projectName}",encodeURIComponent(String(t))).replace("{packageName}",encodeURIComponent(String(n))),o=new URL(a,Xt);let s;e&&(s=e.baseOptions);const c={method:"DELETE",...s,...r},u={};Zt(o,{});let d=s&&s.headers?s.headers:{};return c.headers={...u,...d,...r.headers},{url:Jt(o),options:c}},getPackage:async(t,n,r,a,o={})=>{tt("getPackage","projectName",t),tt("getPackage","packageName",n);const s="/projects/{projectName}/packages/{packageName}".replace("{projectName}",encodeURIComponent(String(t))).replace("{packageName}",encodeURIComponent(String(n))),c=new URL(s,Xt);let u;e&&(u=e.baseOptions);const d={method:"GET",...u,...o},p={},h={};r!==void 0&&(h.versionId=r),a!==void 0&&(h.reload=a),Zt(c,h);let g=u&&u.headers?u.headers:{};return d.headers={...p,...g,...o.headers},{url:Jt(c),options:d}},listPackages:async(t,n={})=>{tt("listPackages","projectName",t);const r="/projects/{projectName}/packages".replace("{projectName}",encodeURIComponent(String(t))),a=new URL(r,Xt);let o;e&&(o=e.baseOptions);const s={method:"GET",...o,...n},c={};Zt(a,{});let u=o&&o.headers?o.headers:{};return s.headers={...c,...u,...n.headers},{url:Jt(a),options:s}},updatePackage:async(t,n,r,a={})=>{tt("updatePackage","projectName",t),tt("updatePackage","packageName",n),tt("updatePackage","body",r);const o="/projects/{projectName}/packages/{packageName}".replace("{projectName}",encodeURIComponent(String(t))).replace("{packageName}",encodeURIComponent(String(n))),s=new URL(o,Xt);let c;e&&(c=e.baseOptions);const u={method:"PATCH",...c,...a},d={},p={};d["Content-Type"]="application/json",Zt(s,p);let h=c&&c.headers?c.headers:{};return u.headers={...d,...h,...a.headers},u.data=Oi(r,u,e),{url:Jt(s),options:u}}}},jd=function(e){const t=MK(e);return{async createPackage(n,r,a){const o=await t.createPackage(n,r,a),s=e?.serverIndex??0,c=Kt["PackagesApi.createPackage"]?.[s]?.url;return(u,d)=>en(o,ct,qt,e)(u,c||d)},async deletePackage(n,r,a){const o=await t.deletePackage(n,r,a),s=e?.serverIndex??0,c=Kt["PackagesApi.deletePackage"]?.[s]?.url;return(u,d)=>en(o,ct,qt,e)(u,c||d)},async getPackage(n,r,a,o,s){const c=await t.getPackage(n,r,a,o,s),u=e?.serverIndex??0,d=Kt["PackagesApi.getPackage"]?.[u]?.url;return(p,h)=>en(c,ct,qt,e)(p,d||h)},async listPackages(n,r){const a=await t.listPackages(n,r),o=e?.serverIndex??0,s=Kt["PackagesApi.listPackages"]?.[o]?.url;return(c,u)=>en(a,ct,qt,e)(c,s||u)},async updatePackage(n,r,a,o){const s=await t.updatePackage(n,r,a,o),c=e?.serverIndex??0,u=Kt["PackagesApi.updatePackage"]?.[c]?.url;return(d,p)=>en(s,ct,qt,e)(d,u||p)}}};let $K=class extends Ui{createPackage(t,n,r){return jd(this.configuration).createPackage(t,n,r).then(a=>a(this.axios,this.basePath))}deletePackage(t,n,r){return jd(this.configuration).deletePackage(t,n,r).then(a=>a(this.axios,this.basePath))}getPackage(t,n,r,a,o){return jd(this.configuration).getPackage(t,n,r,a,o).then(s=>s(this.axios,this.basePath))}listPackages(t,n){return jd(this.configuration).listPackages(t,n).then(r=>r(this.axios,this.basePath))}updatePackage(t,n,r,a){return jd(this.configuration).updatePackage(t,n,r,a).then(o=>o(this.axios,this.basePath))}};const FK=function(e){return{createProject:async(t,n={})=>{tt("createProject","body",t);const r="/projects",a=new URL(r,Xt);let o;e&&(o=e.baseOptions);const s={method:"POST",...o,...n},c={},u={};c["Content-Type"]="application/json",Zt(a,u);let d=o&&o.headers?o.headers:{};return s.headers={...c,...d,...n.headers},s.data=Oi(t,s,e),{url:Jt(a),options:s}},deleteProject:async(t,n={})=>{tt("deleteProject","projectName",t);const r="/projects/{projectName}".replace("{projectName}",encodeURIComponent(String(t))),a=new URL(r,Xt);let o;e&&(o=e.baseOptions);const s={method:"DELETE",...o,...n},c={};Zt(a,{});let u=o&&o.headers?o.headers:{};return s.headers={...c,...u,...n.headers},{url:Jt(a),options:s}},getProject:async(t,n,r={})=>{tt("getProject","projectName",t);const a="/projects/{projectName}".replace("{projectName}",encodeURIComponent(String(t))),o=new URL(a,Xt);let s;e&&(s=e.baseOptions);const c={method:"GET",...s,...r},u={},d={};n!==void 0&&(d.reload=n),Zt(o,d);let p=s&&s.headers?s.headers:{};return c.headers={...u,...p,...r.headers},{url:Jt(o),options:c}},listProjects:async(t={})=>{const n="/projects",r=new URL(n,Xt);let a;e&&(a=e.baseOptions);const o={method:"GET",...a,...t},s={};Zt(r,{});let c=a&&a.headers?a.headers:{};return o.headers={...s,...c,...t.headers},{url:Jt(r),options:o}},updateProject:async(t,n,r={})=>{tt("updateProject","projectName",t),tt("updateProject","body",n);const a="/projects/{projectName}".replace("{projectName}",encodeURIComponent(String(t))),o=new URL(a,Xt);let s;e&&(s=e.baseOptions);const c={method:"PATCH",...s,...r},u={},d={};u["Content-Type"]="application/json",Zt(o,d);let p=s&&s.headers?s.headers:{};return c.headers={...u,...p,...r.headers},c.data=Oi(n,c,e),{url:Jt(o),options:c}}}},Hd=function(e){const t=FK(e);return{async createProject(n,r){const a=await t.createProject(n,r),o=e?.serverIndex??0,s=Kt["ProjectsApi.createProject"]?.[o]?.url;return(c,u)=>en(a,ct,qt,e)(c,s||u)},async deleteProject(n,r){const a=await t.deleteProject(n,r),o=e?.serverIndex??0,s=Kt["ProjectsApi.deleteProject"]?.[o]?.url;return(c,u)=>en(a,ct,qt,e)(c,s||u)},async getProject(n,r,a){const o=await t.getProject(n,r,a),s=e?.serverIndex??0,c=Kt["ProjectsApi.getProject"]?.[s]?.url;return(u,d)=>en(o,ct,qt,e)(u,c||d)},async listProjects(n){const r=await t.listProjects(n),a=e?.serverIndex??0,o=Kt["ProjectsApi.listProjects"]?.[a]?.url;return(s,c)=>en(r,ct,qt,e)(s,o||c)},async updateProject(n,r,a){const o=await t.updateProject(n,r,a),s=e?.serverIndex??0,c=Kt["ProjectsApi.updateProject"]?.[s]?.url;return(u,d)=>en(o,ct,qt,e)(u,c||d)}}};let BK=class extends Ui{createProject(t,n){return Hd(this.configuration).createProject(t,n).then(r=>r(this.axios,this.basePath))}deleteProject(t,n){return Hd(this.configuration).deleteProject(t,n).then(r=>r(this.axios,this.basePath))}getProject(t,n,r){return Hd(this.configuration).getProject(t,n,r).then(a=>a(this.axios,this.basePath))}listProjects(t){return Hd(this.configuration).listProjects(t).then(n=>n(this.axios,this.basePath))}updateProject(t,n,r){return Hd(this.configuration).updateProject(t,n,r).then(a=>a(this.axios,this.basePath))}};const UK=function(e){return{executeQuery:async(t,n,r,a,o,s,c,u={})=>{tt("executeQuery","projectName",t),tt("executeQuery","packageName",n),tt("executeQuery","path",r);const d="/projects/{projectName}/packages/{packageName}/queryResults/{path}".replace("{projectName}",encodeURIComponent(String(t))).replace("{packageName}",encodeURIComponent(String(n))).replace("{path}",encodeURIComponent(String(r))),p=new URL(d,Xt);let h;e&&(h=e.baseOptions);const g={method:"GET",...h,...u},y={},b={};a!==void 0&&(b.query=a),o!==void 0&&(b.sourceName=o),s!==void 0&&(b.queryName=s),c!==void 0&&(b.versionId=c),Zt(p,b);let E=h&&h.headers?h.headers:{};return g.headers={...y,...E,...u.headers},{url:Jt(p),options:g}}}},jK=function(e){const t=UK(e);return{async executeQuery(n,r,a,o,s,c,u,d){const p=await t.executeQuery(n,r,a,o,s,c,u,d),h=e?.serverIndex??0,g=Kt["QueryresultsApi.executeQuery"]?.[h]?.url;return(y,b)=>en(p,ct,qt,e)(y,g||b)}}};let HK=class extends Ui{executeQuery(t,n,r,a,o,s,c,u){return jK(this.configuration).executeQuery(t,n,r,a,o,s,c,u).then(d=>d(this.axios,this.basePath))}};const zK=function(e){return{listSchedules:async(t,n,r,a={})=>{tt("listSchedules","projectName",t),tt("listSchedules","packageName",n);const o="/projects/{projectName}/packages/{packageName}/schedules".replace("{projectName}",encodeURIComponent(String(t))).replace("{packageName}",encodeURIComponent(String(n))),s=new URL(o,Xt);let c;e&&(c=e.baseOptions);const u={method:"GET",...c,...a},d={},p={};r!==void 0&&(p.versionId=r),Zt(s,p);let h=c&&c.headers?c.headers:{};return u.headers={...d,...h,...a.headers},{url:Jt(s),options:u}}}},VK=function(e){const t=zK(e);return{async listSchedules(n,r,a,o){const s=await t.listSchedules(n,r,a,o),c=e?.serverIndex??0,u=Kt["SchedulesApi.listSchedules"]?.[c]?.url;return(d,p)=>en(s,ct,qt,e)(d,u||p)}}};let GK=class extends Ui{listSchedules(t,n,r,a){return VK(this.configuration).listSchedules(t,n,r,a).then(o=>o(this.axios,this.basePath))}};const qK=function(e){return{getWatchStatus:async(t={})=>{const n="/watch-mode/status",r=new URL(n,Xt);let a;e&&(a=e.baseOptions);const o={method:"GET",...a,...t},s={};Zt(r,{});let c=a&&a.headers?a.headers:{};return o.headers={...s,...c,...t.headers},{url:Jt(r),options:o}},startWatching:async(t,n={})=>{tt("startWatching","startWatchRequest",t);const r="/watch-mode/start",a=new URL(r,Xt);let o;e&&(o=e.baseOptions);const s={method:"POST",...o,...n},c={},u={};c["Content-Type"]="application/json",Zt(a,u);let d=o&&o.headers?o.headers:{};return s.headers={...c,...d,...n.headers},s.data=Oi(t,s,e),{url:Jt(a),options:s}},stopWatching:async(t={})=>{const n="/watch-mode/stop",r=new URL(n,Xt);let a;e&&(a=e.baseOptions);const o={method:"POST",...a,...t},s={};Zt(r,{});let c=a&&a.headers?a.headers:{};return o.headers={...s,...c,...t.headers},{url:Jt(r),options:o}}}},rb=function(e){const t=qK(e);return{async getWatchStatus(n){const r=await t.getWatchStatus(n),a=e?.serverIndex??0,o=Kt["WatchModeApi.getWatchStatus"]?.[a]?.url;return(s,c)=>en(r,ct,qt,e)(s,o||c)},async startWatching(n,r){const a=await t.startWatching(n,r),o=e?.serverIndex??0,s=Kt["WatchModeApi.startWatching"]?.[o]?.url;return(c,u)=>en(a,ct,qt,e)(c,s||u)},async stopWatching(n){const r=await t.stopWatching(n),a=e?.serverIndex??0,o=Kt["WatchModeApi.stopWatching"]?.[a]?.url;return(s,c)=>en(r,ct,qt,e)(s,o||c)}}};class WK extends Ui{getWatchStatus(t){return rb(this.configuration).getWatchStatus(t).then(n=>n(this.axios,this.basePath))}startWatching(t,n){return rb(this.configuration).startWatching(t,n).then(r=>r(this.axios,this.basePath))}stopWatching(t){return rb(this.configuration).stopWatching(t).then(n=>n(this.axios,this.basePath))}}let YK=class{apiKey;username;password;accessToken;basePath;serverIndex;baseOptions;formDataCtor;constructor(t={}){this.apiKey=t.apiKey,this.username=t.username,this.password=t.password,this.accessToken=t.accessToken,this.basePath=t.basePath,this.serverIndex=t.serverIndex,this.baseOptions={...t.baseOptions,headers:{...t.baseOptions?.headers}},this.formDataCtor=t.formDataCtor}isJsonMime(t){const n=new RegExp("^(application/json|[^;/ ]+/[^;/ ]+[+]json)[ ]*(;.*)?$","i");return t!==null&&(n.test(t)||t.toLowerCase()==="application/json-patch+json")}};const g5=x.createContext(void 0),QK=(e,t)=>{const n=`${window.location.protocol}//${window.location.host}/api/v0`,r=ct.create({baseURL:e||n,withCredentials:!0});r.interceptors.request.use(async o=>(o.headers.Authorization=await t?.()??"",o));const a=new YK({basePath:n});return{queryResults:new HK(a,n,r),models:new NK(a,n,r),projects:new BK(a,n,r),packages:new $K(a,n,r),notebooks:new PK(a,n,r),connections:new DK(a,n,r),databases:new OK(a,n,r),schedules:new GK(a,n,r),watchMode:new WK(a,n,r)}},KK=({children:e,getAccessToken:t,baseURL:n,mutable:r=!0})=>{const a=x.useMemo(()=>QK(n,t),[n,t]),o={server:n||`${window.location.protocol}//${window.location.host}/api/v0`,getAccessToken:t,apiClients:a,mutable:r};return P.jsx(RG,{client:z_,children:P.jsx(g5.Provider,{value:o,children:e})})},WS=()=>{const e=x.useContext(g5);if(e===void 0)throw new Error("useServer must be used within a ServerProvider");return e},Uy=e=>{const t=new URL(e),n={};if(t.protocol!=="publisher:")throw new Error(`Failed to parse resource URI: ${e}`);const r=(t.hostname+t.pathname).split("/");for(let a=0;a<r.length;a+=2){const o=r[a];o==="projects"?n.projectName=r[a+1]||void 0:o==="packages"?n.packageName=r[a+1]||void 0:o==="connections"?n.connectionName=r[a+1]||void 0:o==="models"&&(n.modelPath=r[a+1]||void 0)}if(n.versionId=t.searchParams.get("versionId")||void 0,!n.projectName)throw new Error(`Failed to parse resource URI: ${e}`);return n},u0e=e=>{if(!e.projectName)throw new Error(`Failed to encode resource URI, missing project name: ${e}`);let t=`publisher://projects/${e.projectName}`;return e.packageName&&(t+=`/packages/${e.packageName}`),e.connectionName&&(t+=`/connections/${e.connectionName}`),e.modelPath&&(t+=`/models/${e.modelPath}`),e.packageName&&e.versionId&&(t+=`?versionId=${e.versionId}`),t};x.lazy(()=>V(()=>import("./index.es23-BDdtxnbW.js"),[]));function d0e(e){const{projectName:t,packageName:n}=Uy(e.resourceUri);if(!t||!n)throw new Error("Project and Package name must be provided for query embedding.");return JSON.stringify({...e})}function Ne(){return Ne=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Ne.apply(null,arguments)}function Pr(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}const jy=(function(e){if(e==null)return eX;if(typeof e=="function")return Hy(e);if(typeof e=="object")return Array.isArray(e)?XK(e):ZK(e);if(typeof e=="string")return JK(e);throw new Error("Expected function, string, or object as test")});function XK(e){const t=[];let n=-1;for(;++n<e.length;)t[n]=jy(e[n]);return Hy(r);function r(...a){let o=-1;for(;++o<t.length;)if(t[o].apply(this,a))return!0;return!1}}function ZK(e){const t=e;return Hy(n);function n(r){const a=r;let o;for(o in e)if(a[o]!==t[o])return!1;return!0}}function JK(e){return Hy(t);function t(n){return n&&n.type===e}}function Hy(e){return t;function t(n,r,a){return!!(tX(n)&&e.call(this,n,typeof r=="number"?r:void 0,a||void 0))}}function eX(){return!0}function tX(e){return e!==null&&typeof e=="object"&&"type"in e}const y5=[],nX=!0,$g=!1,Ef="skip";function v5(e,t,n,r){let a;typeof t=="function"&&typeof n!="function"?(r=n,n=t):a=t;const o=jy(a),s=r?-1:1;c(e,void 0,[])();function c(u,d,p){const h=u&&typeof u=="object"?u:{};if(typeof h.type=="string"){const y=typeof h.tagName=="string"?h.tagName:typeof h.name=="string"?h.name:void 0;Object.defineProperty(g,"name",{value:"node ("+(u.type+(y?"<"+y+">":""))+")"})}return g;function g(){let y=y5,b,E,_;if((!t||o(u,d,p[p.length-1]||void 0))&&(y=rX(n(u,p)),y[0]===$g))return y;if("children"in u&&u.children){const A=u;if(A.children&&y[0]!==Ef)for(E=(r?A.children.length:-1)+s,_=p.concat(A);E>-1&&E<A.children.length;){const D=A.children[E];if(b=c(D,E,_)(),b[0]===$g)return b;E=typeof b[1]=="number"?b[1]:E+s}}return y}}}function rX(e){return Array.isArray(e)?e:typeof e=="number"?[nX,e]:e==null?y5:[e]}function ha(e,t,n,r){let a,o,s;typeof t=="function"&&typeof n!="function"?(o=void 0,s=t,a=n):(o=t,s=n,a=r),v5(e,o,c,a);function c(u,d){const p=d[d.length-1],h=p?p.children.indexOf(u):void 0;return s(u,h,p)}}const aX=/^\[!(NOTE|TIP|IMPORTANT|WARNING|CAUTION)\]/i,oX=/^\[!(NOTE|TIP|IMPORTANT|WARNING|CAUTION)(\/.*)?\]/i,iX=({legacyTitle:e=!1,tagName:t="div"}={})=>n=>{ha(n,"blockquote",(r,a,o)=>{let s="",c="",u=!0,d=r.children.map(p=>{if(u&&p.type==="paragraph"){const h=p.children[0],g=h.type==="text"?h.value:"",y=e?oX:aX,b=g.match(y);if(b&&(u=!1,s=b[1].toLocaleLowerCase(),c=e&&b[2]||s.toLocaleUpperCase(),g.includes(`
241
+ `):" "+ck(o[0]):"as no adapter specified";throw new At("There is no suitable adapter to dispatch the request "+s,"ERR_NOT_SUPPORT")}return r},adapters:jE};function nb(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new Au(null,e)}function uk(e){return nb(e),e.headers=fa.from(e.headers),e.data=tb.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),f5.getAdapter(e.adapter||Bp.adapter)(e).then(function(r){return nb(e),r.data=tb.call(e,e.transformResponse,r),r.headers=fa.from(r.headers),r},function(r){return i5(r)||(nb(e),r&&r.response&&(r.response.data=tb.call(e,e.transformResponse,r.response),r.response.headers=fa.from(r.response.headers))),Promise.reject(r)})}const p5="1.11.0",Uy={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{Uy[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});const dk={};Uy.transitional=function(t,n,r){function a(o,s){return"[Axios v"+p5+"] Transitional option '"+o+"'"+s+(r?". "+r:"")}return(o,s,c)=>{if(t===!1)throw new At(a(s," has been removed"+(n?" in "+n:"")),At.ERR_DEPRECATED);return n&&!dk[s]&&(dk[s]=!0,console.warn(a(s," has been deprecated since v"+n+" and will be removed in the near future"))),t?t(o,s,c):!0}};Uy.spelling=function(t){return(n,r)=>(console.warn(`${r} is likely a misspelling of ${t}`),!0)};function SK(e,t,n){if(typeof e!="object")throw new At("options must be an object",At.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let a=r.length;for(;a-- >0;){const o=r[a],s=t[o];if(s){const c=e[o],u=c===void 0||s(c,o,e);if(u!==!0)throw new At("option "+o+" must be "+u,At.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new At("Unknown option "+o,At.ERR_BAD_OPTION)}}const Km={assertOptions:SK,validators:Uy},Mo=Km.validators;let Cl=class{constructor(t){this.defaults=t||{},this.interceptors={request:new nk,response:new nk}}async request(t,n){try{return await this._request(t,n)}catch(r){if(r instanceof Error){let a={};Error.captureStackTrace?Error.captureStackTrace(a):a=new Error;const o=a.stack?a.stack.replace(/^.+\n/,""):"";try{r.stack?o&&!String(r.stack).endsWith(o.replace(/^.+\n.+\n/,""))&&(r.stack+=`
242
+ `+o):r.stack=o}catch{}}throw r}}_request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=Ll(this.defaults,n);const{transitional:r,paramsSerializer:a,headers:o}=n;r!==void 0&&Km.assertOptions(r,{silentJSONParsing:Mo.transitional(Mo.boolean),forcedJSONParsing:Mo.transitional(Mo.boolean),clarifyTimeoutError:Mo.transitional(Mo.boolean)},!1),a!=null&&(ye.isFunction(a)?n.paramsSerializer={serialize:a}:Km.assertOptions(a,{encode:Mo.function,serialize:Mo.function},!0)),n.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?n.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:n.allowAbsoluteUrls=!0),Km.assertOptions(n,{baseUrl:Mo.spelling("baseURL"),withXsrfToken:Mo.spelling("withXSRFToken")},!0),n.method=(n.method||this.defaults.method||"get").toLowerCase();let s=o&&ye.merge(o.common,o[n.method]);o&&ye.forEach(["delete","get","head","post","put","patch","common"],b=>{delete o[b]}),n.headers=fa.concat(s,o);const c=[];let u=!0;this.interceptors.request.forEach(function(E){typeof E.runWhen=="function"&&E.runWhen(n)===!1||(u=u&&E.synchronous,c.unshift(E.fulfilled,E.rejected))});const d=[];this.interceptors.response.forEach(function(E){d.push(E.fulfilled,E.rejected)});let p,h=0,g;if(!u){const b=[uk.bind(this),void 0];for(b.unshift(...c),b.push(...d),g=b.length,p=Promise.resolve(n);h<g;)p=p.then(b[h++],b[h++]);return p}g=c.length;let y=n;for(h=0;h<g;){const b=c[h++],E=c[h++];try{y=b(y)}catch(_){E.call(this,_);break}}try{p=uk.call(this,y)}catch(b){return Promise.reject(b)}for(h=0,g=d.length;h<g;)p=p.then(d[h++],d[h++]);return p}getUri(t){t=Ll(this.defaults,t);const n=l5(t.baseURL,t.url,t.allowAbsoluteUrls);return r5(n,t.params,t.paramsSerializer)}};ye.forEach(["delete","get","head","options"],function(t){Cl.prototype[t]=function(n,r){return this.request(Ll(r||{},{method:t,url:n,data:(r||{}).data}))}});ye.forEach(["post","put","patch"],function(t){function n(r){return function(o,s,c){return this.request(Ll(c||{},{method:t,headers:r?{"Content-Type":"multipart/form-data"}:{},url:o,data:s}))}}Cl.prototype[t]=n(),Cl.prototype[t+"Form"]=n(!0)});let _K=class h5{constructor(t){if(typeof t!="function")throw new TypeError("executor must be a function.");let n;this.promise=new Promise(function(o){n=o});const r=this;this.promise.then(a=>{if(!r._listeners)return;let o=r._listeners.length;for(;o-- >0;)r._listeners[o](a);r._listeners=null}),this.promise.then=a=>{let o;const s=new Promise(c=>{r.subscribe(c),o=c}).then(a);return s.cancel=function(){r.unsubscribe(o)},s},t(function(o,s,c){r.reason||(r.reason=new Au(o,s,c),n(r.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const n=this._listeners.indexOf(t);n!==-1&&this._listeners.splice(n,1)}toAbortSignal(){const t=new AbortController,n=r=>{t.abort(r)};return this.subscribe(n),t.signal.unsubscribe=()=>this.unsubscribe(n),t.signal}static source(){let t;return{token:new h5(function(a){t=a}),cancel:t}}};function CK(e){return function(n){return e.apply(null,n)}}function AK(e){return ye.isObject(e)&&e.isAxiosError===!0}const HE={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(HE).forEach(([e,t])=>{HE[t]=e});function m5(e){const t=new Cl(e),n=GN(Cl.prototype.request,t);return ye.extend(n,Cl.prototype,t,{allOwnKeys:!0}),ye.extend(n,t,null,{allOwnKeys:!0}),n.create=function(a){return m5(Ll(e,a))},n}const ct=m5(Bp);ct.Axios=Cl;ct.CanceledError=Au;ct.CancelToken=_K;ct.isCancel=i5;ct.VERSION=p5;ct.toFormData=Fy;ct.AxiosError=At;ct.Cancel=ct.CanceledError;ct.all=function(t){return Promise.all(t)};ct.spread=CK;ct.isAxiosError=AK;ct.mergeConfig=Ll;ct.AxiosHeaders=fa;ct.formToJSON=e=>o5(ye.isHTMLForm(e)?new FormData(e):e);ct.getAdapter=f5.getAdapter;ct.HttpStatusCode=HE;ct.default=ct;const{Axios:$ye,AxiosError:Fye,CanceledError:Bye,isCancel:Uye,CancelToken:jye,VERSION:Hye,all:zye,Cancel:Vye,isAxiosError:Gye,spread:qye,toFormData:Wye,AxiosHeaders:Yye,HttpStatusCode:Qye,formToJSON:Kye,getAdapter:Xye,mergeConfig:Zye}=ct,qt="http://localhost/api/v0".replace(/\/+$/,"");let Ui=class{constructor(t,n=qt,r=ct){this.basePath=n,this.axios=r,t&&(this.configuration=t,this.basePath=t.basePath??n)}configuration},xK=class extends Error{constructor(t,n){super(n),this.field=t,this.name="RequiredError"}};const Kt={},Xt="https://example.com",tt=function(e,t,n){if(n==null)throw new xK(t,`Required parameter ${t} was null or undefined when calling ${e}.`)};function zE(e,t,n=""){t!=null&&(typeof t=="object"?Array.isArray(t)?t.forEach(r=>zE(e,r,n)):Object.keys(t).forEach(r=>zE(e,t[r],`${n}${n!==""?".":""}${r}`)):e.has(n)?e.append(n,t):e.set(n,t))}const Zt=function(e,...t){const n=new URLSearchParams(e.search);zE(n,t),e.search=n.toString()},Oi=function(e,t,n){const r=typeof e!="string";return(r&&n&&n.isJsonMime?n.isJsonMime(t.headers["Content-Type"]):r)?JSON.stringify(e!==void 0?e:{}):e||""},Jt=function(e){return e.pathname+e.search+e.hash},en=function(e,t,n,r){return(a=t,o=n)=>{const s={...e.options,url:(a.defaults.baseURL?"":r?.basePath??o)+e.url};return a.request(s)}},t0e={Postgres:"postgres",Bigquery:"bigquery",Snowflake:"snowflake",Trino:"trino",Mysql:"mysql"},wK=function(e){return{getConnection:async(t,n,r={})=>{tt("getConnection","projectName",t),tt("getConnection","connectionName",n);const a="/projects/{projectName}/connections/{connectionName}".replace("{projectName}",encodeURIComponent(String(t))).replace("{connectionName}",encodeURIComponent(String(n))),o=new URL(a,Xt);let s;e&&(s=e.baseOptions);const c={method:"GET",...s,...r},u={};Zt(o,{});let d=s&&s.headers?s.headers:{};return c.headers={...u,...d,...r.headers},{url:Jt(o),options:c}},getQuerydata:async(t,n,r,a,o={})=>{tt("getQuerydata","projectName",t),tt("getQuerydata","connectionName",n);const s="/projects/{projectName}/connections/{connectionName}/queryData".replace("{projectName}",encodeURIComponent(String(t))).replace("{connectionName}",encodeURIComponent(String(n))),c=new URL(s,Xt);let u;e&&(u=e.baseOptions);const d={method:"GET",...u,...o},p={},h={};r!==void 0&&(h.sqlStatement=r),a!==void 0&&(h.options=a),Zt(c,h);let g=u&&u.headers?u.headers:{};return d.headers={...p,...g,...o.headers},{url:Jt(c),options:d}},getSqlsource:async(t,n,r,a={})=>{tt("getSqlsource","projectName",t),tt("getSqlsource","connectionName",n);const o="/projects/{projectName}/connections/{connectionName}/sqlSource".replace("{projectName}",encodeURIComponent(String(t))).replace("{connectionName}",encodeURIComponent(String(n))),s=new URL(o,Xt);let c;e&&(c=e.baseOptions);const u={method:"GET",...c,...a},d={},p={};r!==void 0&&(p.sqlStatement=r),Zt(s,p);let h=c&&c.headers?c.headers:{};return u.headers={...d,...h,...a.headers},{url:Jt(s),options:u}},getTablesource:async(t,n,r,a,o={})=>{tt("getTablesource","projectName",t),tt("getTablesource","connectionName",n);const s="/projects/{projectName}/connections/{connectionName}/tableSource".replace("{projectName}",encodeURIComponent(String(t))).replace("{connectionName}",encodeURIComponent(String(n))),c=new URL(s,Xt);let u;e&&(u=e.baseOptions);const d={method:"GET",...u,...o},p={},h={};r!==void 0&&(h.tableKey=r),a!==void 0&&(h.tablePath=a),Zt(c,h);let g=u&&u.headers?u.headers:{};return d.headers={...p,...g,...o.headers},{url:Jt(c),options:d}},getTemporarytable:async(t,n,r,a={})=>{tt("getTemporarytable","projectName",t),tt("getTemporarytable","connectionName",n);const o="/projects/{projectName}/connections/{connectionName}/temporaryTable".replace("{projectName}",encodeURIComponent(String(t))).replace("{connectionName}",encodeURIComponent(String(n))),s=new URL(o,Xt);let c;e&&(c=e.baseOptions);const u={method:"GET",...c,...a},d={},p={};r!==void 0&&(p.sqlStatement=r),Zt(s,p);let h=c&&c.headers?c.headers:{};return u.headers={...d,...h,...a.headers},{url:Jt(s),options:u}},listConnections:async(t,n={})=>{tt("listConnections","projectName",t);const r="/projects/{projectName}/connections".replace("{projectName}",encodeURIComponent(String(t))),a=new URL(r,Xt);let o;e&&(o=e.baseOptions);const s={method:"GET",...o,...n},c={};Zt(a,{});let u=o&&o.headers?o.headers:{};return s.headers={...c,...u,...n.headers},{url:Jt(a),options:s}},listSchemas:async(t,n,r={})=>{tt("listSchemas","projectName",t),tt("listSchemas","connectionName",n);const a="/projects/{projectName}/connections/{connectionName}/schemas".replace("{projectName}",encodeURIComponent(String(t))).replace("{connectionName}",encodeURIComponent(String(n))),o=new URL(a,Xt);let s;e&&(s=e.baseOptions);const c={method:"GET",...s,...r},u={};Zt(o,{});let d=s&&s.headers?s.headers:{};return c.headers={...u,...d,...r.headers},{url:Jt(o),options:c}},listTables:async(t,n,r,a={})=>{tt("listTables","projectName",t),tt("listTables","connectionName",n),tt("listTables","schemaName",r);const o="/projects/{projectName}/connections/{connectionName}/schemas/{schemaName}/tables".replace("{projectName}",encodeURIComponent(String(t))).replace("{connectionName}",encodeURIComponent(String(n))).replace("{schemaName}",encodeURIComponent(String(r))),s=new URL(o,Xt);let c;e&&(c=e.baseOptions);const u={method:"GET",...c,...a},d={};Zt(s,{});let p=c&&c.headers?c.headers:{};return u.headers={...d,...p,...a.headers},{url:Jt(s),options:u}},postQuerydata:async(t,n,r,a,o={})=>{tt("postQuerydata","projectName",t),tt("postQuerydata","connectionName",n),tt("postQuerydata","postSqlsourceRequest",r);const s="/projects/{projectName}/connections/{connectionName}/queryData".replace("{projectName}",encodeURIComponent(String(t))).replace("{connectionName}",encodeURIComponent(String(n))),c=new URL(s,Xt);let u;e&&(u=e.baseOptions);const d={method:"POST",...u,...o},p={},h={};a!==void 0&&(h.options=a),p["Content-Type"]="application/json",Zt(c,h);let g=u&&u.headers?u.headers:{};return d.headers={...p,...g,...o.headers},d.data=Oi(r,d,e),{url:Jt(c),options:d}},postSqlsource:async(t,n,r,a={})=>{tt("postSqlsource","projectName",t),tt("postSqlsource","connectionName",n),tt("postSqlsource","postSqlsourceRequest",r);const o="/projects/{projectName}/connections/{connectionName}/sqlSource".replace("{projectName}",encodeURIComponent(String(t))).replace("{connectionName}",encodeURIComponent(String(n))),s=new URL(o,Xt);let c;e&&(c=e.baseOptions);const u={method:"POST",...c,...a},d={},p={};d["Content-Type"]="application/json",Zt(s,p);let h=c&&c.headers?c.headers:{};return u.headers={...d,...h,...a.headers},u.data=Oi(r,u,e),{url:Jt(s),options:u}},postTemporarytable:async(t,n,r,a={})=>{tt("postTemporarytable","projectName",t),tt("postTemporarytable","connectionName",n),tt("postTemporarytable","postSqlsourceRequest",r);const o="/projects/{projectName}/connections/{connectionName}/temporaryTable".replace("{projectName}",encodeURIComponent(String(t))).replace("{connectionName}",encodeURIComponent(String(n))),s=new URL(o,Xt);let c;e&&(c=e.baseOptions);const u={method:"POST",...c,...a},d={},p={};d["Content-Type"]="application/json",Zt(s,p);let h=c&&c.headers?c.headers:{};return u.headers={...d,...h,...a.headers},u.data=Oi(r,u,e),{url:Jt(s),options:u}},testConnection:async(t,n,r={})=>{tt("testConnection","projectName",t),tt("testConnection","connectionName",n);const a="/projects/{projectName}/connections/{connectionName}/test".replace("{projectName}",encodeURIComponent(String(t))).replace("{connectionName}",encodeURIComponent(String(n))),o=new URL(a,Xt);let s;e&&(s=e.baseOptions);const c={method:"GET",...s,...r},u={};Zt(o,{});let d=s&&s.headers?s.headers:{};return c.headers={...u,...d,...r.headers},{url:Jt(o),options:c}},testConnectionConfiguration:async(t,n={})=>{tt("testConnectionConfiguration","connection",t);const r="/connections/test",a=new URL(r,Xt);let o;e&&(o=e.baseOptions);const s={method:"POST",...o,...n},c={},u={};c["Content-Type"]="application/json",Zt(a,u);let d=o&&o.headers?o.headers:{};return s.headers={...c,...d,...n.headers},s.data=Oi(t,s,e),{url:Jt(a),options:s}}}},Aa=function(e){const t=wK(e);return{async getConnection(n,r,a){const o=await t.getConnection(n,r,a),s=e?.serverIndex??0,c=Kt["ConnectionsApi.getConnection"]?.[s]?.url;return(u,d)=>en(o,ct,qt,e)(u,c||d)},async getQuerydata(n,r,a,o,s){const c=await t.getQuerydata(n,r,a,o,s),u=e?.serverIndex??0,d=Kt["ConnectionsApi.getQuerydata"]?.[u]?.url;return(p,h)=>en(c,ct,qt,e)(p,d||h)},async getSqlsource(n,r,a,o){const s=await t.getSqlsource(n,r,a,o),c=e?.serverIndex??0,u=Kt["ConnectionsApi.getSqlsource"]?.[c]?.url;return(d,p)=>en(s,ct,qt,e)(d,u||p)},async getTablesource(n,r,a,o,s){const c=await t.getTablesource(n,r,a,o,s),u=e?.serverIndex??0,d=Kt["ConnectionsApi.getTablesource"]?.[u]?.url;return(p,h)=>en(c,ct,qt,e)(p,d||h)},async getTemporarytable(n,r,a,o){const s=await t.getTemporarytable(n,r,a,o),c=e?.serverIndex??0,u=Kt["ConnectionsApi.getTemporarytable"]?.[c]?.url;return(d,p)=>en(s,ct,qt,e)(d,u||p)},async listConnections(n,r){const a=await t.listConnections(n,r),o=e?.serverIndex??0,s=Kt["ConnectionsApi.listConnections"]?.[o]?.url;return(c,u)=>en(a,ct,qt,e)(c,s||u)},async listSchemas(n,r,a){const o=await t.listSchemas(n,r,a),s=e?.serverIndex??0,c=Kt["ConnectionsApi.listSchemas"]?.[s]?.url;return(u,d)=>en(o,ct,qt,e)(u,c||d)},async listTables(n,r,a,o){const s=await t.listTables(n,r,a,o),c=e?.serverIndex??0,u=Kt["ConnectionsApi.listTables"]?.[c]?.url;return(d,p)=>en(s,ct,qt,e)(d,u||p)},async postQuerydata(n,r,a,o,s){const c=await t.postQuerydata(n,r,a,o,s),u=e?.serverIndex??0,d=Kt["ConnectionsApi.postQuerydata"]?.[u]?.url;return(p,h)=>en(c,ct,qt,e)(p,d||h)},async postSqlsource(n,r,a,o){const s=await t.postSqlsource(n,r,a,o),c=e?.serverIndex??0,u=Kt["ConnectionsApi.postSqlsource"]?.[c]?.url;return(d,p)=>en(s,ct,qt,e)(d,u||p)},async postTemporarytable(n,r,a,o){const s=await t.postTemporarytable(n,r,a,o),c=e?.serverIndex??0,u=Kt["ConnectionsApi.postTemporarytable"]?.[c]?.url;return(d,p)=>en(s,ct,qt,e)(d,u||p)},async testConnection(n,r,a){const o=await t.testConnection(n,r,a),s=e?.serverIndex??0,c=Kt["ConnectionsApi.testConnection"]?.[s]?.url;return(u,d)=>en(o,ct,qt,e)(u,c||d)},async testConnectionConfiguration(n,r){const a=await t.testConnectionConfiguration(n,r),o=e?.serverIndex??0,s=Kt["ConnectionsApi.testConnectionConfiguration"]?.[o]?.url;return(c,u)=>en(a,ct,qt,e)(c,s||u)}}};let DK=class extends Ui{getConnection(t,n,r){return Aa(this.configuration).getConnection(t,n,r).then(a=>a(this.axios,this.basePath))}getQuerydata(t,n,r,a,o){return Aa(this.configuration).getQuerydata(t,n,r,a,o).then(s=>s(this.axios,this.basePath))}getSqlsource(t,n,r,a){return Aa(this.configuration).getSqlsource(t,n,r,a).then(o=>o(this.axios,this.basePath))}getTablesource(t,n,r,a,o){return Aa(this.configuration).getTablesource(t,n,r,a,o).then(s=>s(this.axios,this.basePath))}getTemporarytable(t,n,r,a){return Aa(this.configuration).getTemporarytable(t,n,r,a).then(o=>o(this.axios,this.basePath))}listConnections(t,n){return Aa(this.configuration).listConnections(t,n).then(r=>r(this.axios,this.basePath))}listSchemas(t,n,r){return Aa(this.configuration).listSchemas(t,n,r).then(a=>a(this.axios,this.basePath))}listTables(t,n,r,a){return Aa(this.configuration).listTables(t,n,r,a).then(o=>o(this.axios,this.basePath))}postQuerydata(t,n,r,a,o){return Aa(this.configuration).postQuerydata(t,n,r,a,o).then(s=>s(this.axios,this.basePath))}postSqlsource(t,n,r,a){return Aa(this.configuration).postSqlsource(t,n,r,a).then(o=>o(this.axios,this.basePath))}postTemporarytable(t,n,r,a){return Aa(this.configuration).postTemporarytable(t,n,r,a).then(o=>o(this.axios,this.basePath))}testConnection(t,n,r){return Aa(this.configuration).testConnection(t,n,r).then(a=>a(this.axios,this.basePath))}testConnectionConfiguration(t,n){return Aa(this.configuration).testConnectionConfiguration(t,n).then(r=>r(this.axios,this.basePath))}};const kK=function(e){return{listDatabases:async(t,n,r,a={})=>{tt("listDatabases","projectName",t),tt("listDatabases","packageName",n);const o="/projects/{projectName}/packages/{packageName}/databases".replace("{projectName}",encodeURIComponent(String(t))).replace("{packageName}",encodeURIComponent(String(n))),s=new URL(o,Xt);let c;e&&(c=e.baseOptions);const u={method:"GET",...c,...a},d={},p={};r!==void 0&&(p.versionId=r),Zt(s,p);let h=c&&c.headers?c.headers:{};return u.headers={...d,...h,...a.headers},{url:Jt(s),options:u}}}},RK=function(e){const t=kK(e);return{async listDatabases(n,r,a,o){const s=await t.listDatabases(n,r,a,o),c=e?.serverIndex??0,u=Kt["DatabasesApi.listDatabases"]?.[c]?.url;return(d,p)=>en(s,ct,qt,e)(d,u||p)}}};let OK=class extends Ui{listDatabases(t,n,r,a){return RK(this.configuration).listDatabases(t,n,r,a).then(o=>o(this.axios,this.basePath))}};const IK=function(e){return{getModel:async(t,n,r,a,o={})=>{tt("getModel","projectName",t),tt("getModel","packageName",n),tt("getModel","path",r);const s="/projects/{projectName}/packages/{packageName}/models/{path}".replace("{projectName}",encodeURIComponent(String(t))).replace("{packageName}",encodeURIComponent(String(n))).replace("{path}",encodeURIComponent(String(r))),c=new URL(s,Xt);let u;e&&(u=e.baseOptions);const d={method:"GET",...u,...o},p={},h={};a!==void 0&&(h.versionId=a),Zt(c,h);let g=u&&u.headers?u.headers:{};return d.headers={...p,...g,...o.headers},{url:Jt(c),options:d}},listModels:async(t,n,r,a={})=>{tt("listModels","projectName",t),tt("listModels","packageName",n);const o="/projects/{projectName}/packages/{packageName}/models".replace("{projectName}",encodeURIComponent(String(t))).replace("{packageName}",encodeURIComponent(String(n))),s=new URL(o,Xt);let c;e&&(c=e.baseOptions);const u={method:"GET",...c,...a},d={},p={};r!==void 0&&(p.versionId=r),Zt(s,p);let h=c&&c.headers?c.headers:{};return u.headers={...d,...h,...a.headers},{url:Jt(s),options:u}}}},fk=function(e){const t=IK(e);return{async getModel(n,r,a,o,s){const c=await t.getModel(n,r,a,o,s),u=e?.serverIndex??0,d=Kt["ModelsApi.getModel"]?.[u]?.url;return(p,h)=>en(c,ct,qt,e)(p,d||h)},async listModels(n,r,a,o){const s=await t.listModels(n,r,a,o),c=e?.serverIndex??0,u=Kt["ModelsApi.listModels"]?.[c]?.url;return(d,p)=>en(s,ct,qt,e)(d,u||p)}}};let NK=class extends Ui{getModel(t,n,r,a,o){return fk(this.configuration).getModel(t,n,r,a,o).then(s=>s(this.axios,this.basePath))}listModels(t,n,r,a){return fk(this.configuration).listModels(t,n,r,a).then(o=>o(this.axios,this.basePath))}};const LK=function(e){return{getNotebook:async(t,n,r,a,o={})=>{tt("getNotebook","projectName",t),tt("getNotebook","packageName",n),tt("getNotebook","path",r);const s="/projects/{projectName}/packages/{packageName}/notebooks/{path}".replace("{projectName}",encodeURIComponent(String(t))).replace("{packageName}",encodeURIComponent(String(n))).replace("{path}",encodeURIComponent(String(r))),c=new URL(s,Xt);let u;e&&(u=e.baseOptions);const d={method:"GET",...u,...o},p={},h={};a!==void 0&&(h.versionId=a),Zt(c,h);let g=u&&u.headers?u.headers:{};return d.headers={...p,...g,...o.headers},{url:Jt(c),options:d}},listNotebooks:async(t,n,r,a={})=>{tt("listNotebooks","projectName",t),tt("listNotebooks","packageName",n);const o="/projects/{projectName}/packages/{packageName}/notebooks".replace("{projectName}",encodeURIComponent(String(t))).replace("{packageName}",encodeURIComponent(String(n))),s=new URL(o,Xt);let c;e&&(c=e.baseOptions);const u={method:"GET",...c,...a},d={},p={};r!==void 0&&(p.versionId=r),Zt(s,p);let h=c&&c.headers?c.headers:{};return u.headers={...d,...h,...a.headers},{url:Jt(s),options:u}}}},pk=function(e){const t=LK(e);return{async getNotebook(n,r,a,o,s){const c=await t.getNotebook(n,r,a,o,s),u=e?.serverIndex??0,d=Kt["NotebooksApi.getNotebook"]?.[u]?.url;return(p,h)=>en(c,ct,qt,e)(p,d||h)},async listNotebooks(n,r,a,o){const s=await t.listNotebooks(n,r,a,o),c=e?.serverIndex??0,u=Kt["NotebooksApi.listNotebooks"]?.[c]?.url;return(d,p)=>en(s,ct,qt,e)(d,u||p)}}};let PK=class extends Ui{getNotebook(t,n,r,a,o){return pk(this.configuration).getNotebook(t,n,r,a,o).then(s=>s(this.axios,this.basePath))}listNotebooks(t,n,r,a){return pk(this.configuration).listNotebooks(t,n,r,a).then(o=>o(this.axios,this.basePath))}};const MK=function(e){return{createPackage:async(t,n,r={})=>{tt("createPackage","projectName",t),tt("createPackage","body",n);const a="/projects/{projectName}/packages".replace("{projectName}",encodeURIComponent(String(t))),o=new URL(a,Xt);let s;e&&(s=e.baseOptions);const c={method:"POST",...s,...r},u={},d={};u["Content-Type"]="application/json",Zt(o,d);let p=s&&s.headers?s.headers:{};return c.headers={...u,...p,...r.headers},c.data=Oi(n,c,e),{url:Jt(o),options:c}},deletePackage:async(t,n,r={})=>{tt("deletePackage","projectName",t),tt("deletePackage","packageName",n);const a="/projects/{projectName}/packages/{packageName}".replace("{projectName}",encodeURIComponent(String(t))).replace("{packageName}",encodeURIComponent(String(n))),o=new URL(a,Xt);let s;e&&(s=e.baseOptions);const c={method:"DELETE",...s,...r},u={};Zt(o,{});let d=s&&s.headers?s.headers:{};return c.headers={...u,...d,...r.headers},{url:Jt(o),options:c}},getPackage:async(t,n,r,a,o={})=>{tt("getPackage","projectName",t),tt("getPackage","packageName",n);const s="/projects/{projectName}/packages/{packageName}".replace("{projectName}",encodeURIComponent(String(t))).replace("{packageName}",encodeURIComponent(String(n))),c=new URL(s,Xt);let u;e&&(u=e.baseOptions);const d={method:"GET",...u,...o},p={},h={};r!==void 0&&(h.versionId=r),a!==void 0&&(h.reload=a),Zt(c,h);let g=u&&u.headers?u.headers:{};return d.headers={...p,...g,...o.headers},{url:Jt(c),options:d}},listPackages:async(t,n={})=>{tt("listPackages","projectName",t);const r="/projects/{projectName}/packages".replace("{projectName}",encodeURIComponent(String(t))),a=new URL(r,Xt);let o;e&&(o=e.baseOptions);const s={method:"GET",...o,...n},c={};Zt(a,{});let u=o&&o.headers?o.headers:{};return s.headers={...c,...u,...n.headers},{url:Jt(a),options:s}},updatePackage:async(t,n,r,a={})=>{tt("updatePackage","projectName",t),tt("updatePackage","packageName",n),tt("updatePackage","body",r);const o="/projects/{projectName}/packages/{packageName}".replace("{projectName}",encodeURIComponent(String(t))).replace("{packageName}",encodeURIComponent(String(n))),s=new URL(o,Xt);let c;e&&(c=e.baseOptions);const u={method:"PATCH",...c,...a},d={},p={};d["Content-Type"]="application/json",Zt(s,p);let h=c&&c.headers?c.headers:{};return u.headers={...d,...h,...a.headers},u.data=Oi(r,u,e),{url:Jt(s),options:u}}}},jd=function(e){const t=MK(e);return{async createPackage(n,r,a){const o=await t.createPackage(n,r,a),s=e?.serverIndex??0,c=Kt["PackagesApi.createPackage"]?.[s]?.url;return(u,d)=>en(o,ct,qt,e)(u,c||d)},async deletePackage(n,r,a){const o=await t.deletePackage(n,r,a),s=e?.serverIndex??0,c=Kt["PackagesApi.deletePackage"]?.[s]?.url;return(u,d)=>en(o,ct,qt,e)(u,c||d)},async getPackage(n,r,a,o,s){const c=await t.getPackage(n,r,a,o,s),u=e?.serverIndex??0,d=Kt["PackagesApi.getPackage"]?.[u]?.url;return(p,h)=>en(c,ct,qt,e)(p,d||h)},async listPackages(n,r){const a=await t.listPackages(n,r),o=e?.serverIndex??0,s=Kt["PackagesApi.listPackages"]?.[o]?.url;return(c,u)=>en(a,ct,qt,e)(c,s||u)},async updatePackage(n,r,a,o){const s=await t.updatePackage(n,r,a,o),c=e?.serverIndex??0,u=Kt["PackagesApi.updatePackage"]?.[c]?.url;return(d,p)=>en(s,ct,qt,e)(d,u||p)}}};let $K=class extends Ui{createPackage(t,n,r){return jd(this.configuration).createPackage(t,n,r).then(a=>a(this.axios,this.basePath))}deletePackage(t,n,r){return jd(this.configuration).deletePackage(t,n,r).then(a=>a(this.axios,this.basePath))}getPackage(t,n,r,a,o){return jd(this.configuration).getPackage(t,n,r,a,o).then(s=>s(this.axios,this.basePath))}listPackages(t,n){return jd(this.configuration).listPackages(t,n).then(r=>r(this.axios,this.basePath))}updatePackage(t,n,r,a){return jd(this.configuration).updatePackage(t,n,r,a).then(o=>o(this.axios,this.basePath))}};const FK=function(e){return{createProject:async(t,n={})=>{tt("createProject","body",t);const r="/projects",a=new URL(r,Xt);let o;e&&(o=e.baseOptions);const s={method:"POST",...o,...n},c={},u={};c["Content-Type"]="application/json",Zt(a,u);let d=o&&o.headers?o.headers:{};return s.headers={...c,...d,...n.headers},s.data=Oi(t,s,e),{url:Jt(a),options:s}},deleteProject:async(t,n={})=>{tt("deleteProject","projectName",t);const r="/projects/{projectName}".replace("{projectName}",encodeURIComponent(String(t))),a=new URL(r,Xt);let o;e&&(o=e.baseOptions);const s={method:"DELETE",...o,...n},c={};Zt(a,{});let u=o&&o.headers?o.headers:{};return s.headers={...c,...u,...n.headers},{url:Jt(a),options:s}},getProject:async(t,n,r={})=>{tt("getProject","projectName",t);const a="/projects/{projectName}".replace("{projectName}",encodeURIComponent(String(t))),o=new URL(a,Xt);let s;e&&(s=e.baseOptions);const c={method:"GET",...s,...r},u={},d={};n!==void 0&&(d.reload=n),Zt(o,d);let p=s&&s.headers?s.headers:{};return c.headers={...u,...p,...r.headers},{url:Jt(o),options:c}},listProjects:async(t={})=>{const n="/projects",r=new URL(n,Xt);let a;e&&(a=e.baseOptions);const o={method:"GET",...a,...t},s={};Zt(r,{});let c=a&&a.headers?a.headers:{};return o.headers={...s,...c,...t.headers},{url:Jt(r),options:o}},updateProject:async(t,n,r={})=>{tt("updateProject","projectName",t),tt("updateProject","body",n);const a="/projects/{projectName}".replace("{projectName}",encodeURIComponent(String(t))),o=new URL(a,Xt);let s;e&&(s=e.baseOptions);const c={method:"PATCH",...s,...r},u={},d={};u["Content-Type"]="application/json",Zt(o,d);let p=s&&s.headers?s.headers:{};return c.headers={...u,...p,...r.headers},c.data=Oi(n,c,e),{url:Jt(o),options:c}}}},Hd=function(e){const t=FK(e);return{async createProject(n,r){const a=await t.createProject(n,r),o=e?.serverIndex??0,s=Kt["ProjectsApi.createProject"]?.[o]?.url;return(c,u)=>en(a,ct,qt,e)(c,s||u)},async deleteProject(n,r){const a=await t.deleteProject(n,r),o=e?.serverIndex??0,s=Kt["ProjectsApi.deleteProject"]?.[o]?.url;return(c,u)=>en(a,ct,qt,e)(c,s||u)},async getProject(n,r,a){const o=await t.getProject(n,r,a),s=e?.serverIndex??0,c=Kt["ProjectsApi.getProject"]?.[s]?.url;return(u,d)=>en(o,ct,qt,e)(u,c||d)},async listProjects(n){const r=await t.listProjects(n),a=e?.serverIndex??0,o=Kt["ProjectsApi.listProjects"]?.[a]?.url;return(s,c)=>en(r,ct,qt,e)(s,o||c)},async updateProject(n,r,a){const o=await t.updateProject(n,r,a),s=e?.serverIndex??0,c=Kt["ProjectsApi.updateProject"]?.[s]?.url;return(u,d)=>en(o,ct,qt,e)(u,c||d)}}};let BK=class extends Ui{createProject(t,n){return Hd(this.configuration).createProject(t,n).then(r=>r(this.axios,this.basePath))}deleteProject(t,n){return Hd(this.configuration).deleteProject(t,n).then(r=>r(this.axios,this.basePath))}getProject(t,n,r){return Hd(this.configuration).getProject(t,n,r).then(a=>a(this.axios,this.basePath))}listProjects(t){return Hd(this.configuration).listProjects(t).then(n=>n(this.axios,this.basePath))}updateProject(t,n,r){return Hd(this.configuration).updateProject(t,n,r).then(a=>a(this.axios,this.basePath))}};const UK=function(e){return{executeQuery:async(t,n,r,a,o,s,c,u={})=>{tt("executeQuery","projectName",t),tt("executeQuery","packageName",n),tt("executeQuery","path",r);const d="/projects/{projectName}/packages/{packageName}/queryResults/{path}".replace("{projectName}",encodeURIComponent(String(t))).replace("{packageName}",encodeURIComponent(String(n))).replace("{path}",encodeURIComponent(String(r))),p=new URL(d,Xt);let h;e&&(h=e.baseOptions);const g={method:"GET",...h,...u},y={},b={};a!==void 0&&(b.query=a),o!==void 0&&(b.sourceName=o),s!==void 0&&(b.queryName=s),c!==void 0&&(b.versionId=c),Zt(p,b);let E=h&&h.headers?h.headers:{};return g.headers={...y,...E,...u.headers},{url:Jt(p),options:g}}}},jK=function(e){const t=UK(e);return{async executeQuery(n,r,a,o,s,c,u,d){const p=await t.executeQuery(n,r,a,o,s,c,u,d),h=e?.serverIndex??0,g=Kt["QueryresultsApi.executeQuery"]?.[h]?.url;return(y,b)=>en(p,ct,qt,e)(y,g||b)}}};let HK=class extends Ui{executeQuery(t,n,r,a,o,s,c,u){return jK(this.configuration).executeQuery(t,n,r,a,o,s,c,u).then(d=>d(this.axios,this.basePath))}};const zK=function(e){return{listSchedules:async(t,n,r,a={})=>{tt("listSchedules","projectName",t),tt("listSchedules","packageName",n);const o="/projects/{projectName}/packages/{packageName}/schedules".replace("{projectName}",encodeURIComponent(String(t))).replace("{packageName}",encodeURIComponent(String(n))),s=new URL(o,Xt);let c;e&&(c=e.baseOptions);const u={method:"GET",...c,...a},d={},p={};r!==void 0&&(p.versionId=r),Zt(s,p);let h=c&&c.headers?c.headers:{};return u.headers={...d,...h,...a.headers},{url:Jt(s),options:u}}}},VK=function(e){const t=zK(e);return{async listSchedules(n,r,a,o){const s=await t.listSchedules(n,r,a,o),c=e?.serverIndex??0,u=Kt["SchedulesApi.listSchedules"]?.[c]?.url;return(d,p)=>en(s,ct,qt,e)(d,u||p)}}};let GK=class extends Ui{listSchedules(t,n,r,a){return VK(this.configuration).listSchedules(t,n,r,a).then(o=>o(this.axios,this.basePath))}};const qK=function(e){return{getWatchStatus:async(t={})=>{const n="/watch-mode/status",r=new URL(n,Xt);let a;e&&(a=e.baseOptions);const o={method:"GET",...a,...t},s={};Zt(r,{});let c=a&&a.headers?a.headers:{};return o.headers={...s,...c,...t.headers},{url:Jt(r),options:o}},startWatching:async(t,n={})=>{tt("startWatching","startWatchRequest",t);const r="/watch-mode/start",a=new URL(r,Xt);let o;e&&(o=e.baseOptions);const s={method:"POST",...o,...n},c={},u={};c["Content-Type"]="application/json",Zt(a,u);let d=o&&o.headers?o.headers:{};return s.headers={...c,...d,...n.headers},s.data=Oi(t,s,e),{url:Jt(a),options:s}},stopWatching:async(t={})=>{const n="/watch-mode/stop",r=new URL(n,Xt);let a;e&&(a=e.baseOptions);const o={method:"POST",...a,...t},s={};Zt(r,{});let c=a&&a.headers?a.headers:{};return o.headers={...s,...c,...t.headers},{url:Jt(r),options:o}}}},rb=function(e){const t=qK(e);return{async getWatchStatus(n){const r=await t.getWatchStatus(n),a=e?.serverIndex??0,o=Kt["WatchModeApi.getWatchStatus"]?.[a]?.url;return(s,c)=>en(r,ct,qt,e)(s,o||c)},async startWatching(n,r){const a=await t.startWatching(n,r),o=e?.serverIndex??0,s=Kt["WatchModeApi.startWatching"]?.[o]?.url;return(c,u)=>en(a,ct,qt,e)(c,s||u)},async stopWatching(n){const r=await t.stopWatching(n),a=e?.serverIndex??0,o=Kt["WatchModeApi.stopWatching"]?.[a]?.url;return(s,c)=>en(r,ct,qt,e)(s,o||c)}}};class WK extends Ui{getWatchStatus(t){return rb(this.configuration).getWatchStatus(t).then(n=>n(this.axios,this.basePath))}startWatching(t,n){return rb(this.configuration).startWatching(t,n).then(r=>r(this.axios,this.basePath))}stopWatching(t){return rb(this.configuration).stopWatching(t).then(n=>n(this.axios,this.basePath))}}let YK=class{apiKey;username;password;accessToken;basePath;serverIndex;baseOptions;formDataCtor;constructor(t={}){this.apiKey=t.apiKey,this.username=t.username,this.password=t.password,this.accessToken=t.accessToken,this.basePath=t.basePath,this.serverIndex=t.serverIndex,this.baseOptions={...t.baseOptions,headers:{...t.baseOptions?.headers}},this.formDataCtor=t.formDataCtor}isJsonMime(t){const n=new RegExp("^(application/json|[^;/ ]+/[^;/ ]+[+]json)[ ]*(;.*)?$","i");return t!==null&&(n.test(t)||t.toLowerCase()==="application/json-patch+json")}};const g5=x.createContext(void 0),QK=(e,t)=>{const n=`${window.location.protocol}//${window.location.host}/api/v0`,r=ct.create({baseURL:e||n,withCredentials:!0});r.interceptors.request.use(async o=>{const s=await t?.();return o.headers.Authorization=s?`Bearer ${s}`:"",o});const a=new YK({basePath:n});return{queryResults:new HK(a,n,r),models:new NK(a,n,r),projects:new BK(a,n,r),packages:new $K(a,n,r),notebooks:new PK(a,n,r),connections:new DK(a,n,r),databases:new OK(a,n,r),schedules:new GK(a,n,r),watchMode:new WK(a,n,r)}},KK=({children:e,getAccessToken:t,baseURL:n,mutable:r=!0})=>{const a=x.useMemo(()=>QK(n,t),[n,t]),o={server:n||`${window.location.protocol}//${window.location.host}/api/v0`,getAccessToken:t,apiClients:a,mutable:r};return P.jsx(RG,{client:z_,children:P.jsx(g5.Provider,{value:o,children:e})})},WS=()=>{const e=x.useContext(g5);if(e===void 0)throw new Error("useServer must be used within a ServerProvider");return e};x.lazy(()=>V(()=>import("./index.es23-BsVG9VR1.js"),[]));function d0e(e){const{projectName:t,packageName:n}=Dy(e.resourceUri);if(!t||!n)throw new Error("Project and Package name must be provided for query embedding.");return JSON.stringify({...e})}function Ne(){return Ne=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Ne.apply(null,arguments)}function Pr(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}const jy=(function(e){if(e==null)return eX;if(typeof e=="function")return Hy(e);if(typeof e=="object")return Array.isArray(e)?XK(e):ZK(e);if(typeof e=="string")return JK(e);throw new Error("Expected function, string, or object as test")});function XK(e){const t=[];let n=-1;for(;++n<e.length;)t[n]=jy(e[n]);return Hy(r);function r(...a){let o=-1;for(;++o<t.length;)if(t[o].apply(this,a))return!0;return!1}}function ZK(e){const t=e;return Hy(n);function n(r){const a=r;let o;for(o in e)if(a[o]!==t[o])return!1;return!0}}function JK(e){return Hy(t);function t(n){return n&&n.type===e}}function Hy(e){return t;function t(n,r,a){return!!(tX(n)&&e.call(this,n,typeof r=="number"?r:void 0,a||void 0))}}function eX(){return!0}function tX(e){return e!==null&&typeof e=="object"&&"type"in e}const y5=[],nX=!0,$g=!1,Ef="skip";function v5(e,t,n,r){let a;typeof t=="function"&&typeof n!="function"?(r=n,n=t):a=t;const o=jy(a),s=r?-1:1;c(e,void 0,[])();function c(u,d,p){const h=u&&typeof u=="object"?u:{};if(typeof h.type=="string"){const y=typeof h.tagName=="string"?h.tagName:typeof h.name=="string"?h.name:void 0;Object.defineProperty(g,"name",{value:"node ("+(u.type+(y?"<"+y+">":""))+")"})}return g;function g(){let y=y5,b,E,_;if((!t||o(u,d,p[p.length-1]||void 0))&&(y=rX(n(u,p)),y[0]===$g))return y;if("children"in u&&u.children){const A=u;if(A.children&&y[0]!==Ef)for(E=(r?A.children.length:-1)+s,_=p.concat(A);E>-1&&E<A.children.length;){const D=A.children[E];if(b=c(D,E,_)(),b[0]===$g)return b;E=typeof b[1]=="number"?b[1]:E+s}}return y}}}function rX(e){return Array.isArray(e)?e:typeof e=="number"?[nX,e]:e==null?y5:[e]}function ha(e,t,n,r){let a,o,s;typeof t=="function"&&typeof n!="function"?(o=void 0,s=t,a=n):(o=t,s=n,a=r),v5(e,o,c,a);function c(u,d){const p=d[d.length-1],h=p?p.children.indexOf(u):void 0;return s(u,h,p)}}const aX=/^\[!(NOTE|TIP|IMPORTANT|WARNING|CAUTION)\]/i,oX=/^\[!(NOTE|TIP|IMPORTANT|WARNING|CAUTION)(\/.*)?\]/i,iX=({legacyTitle:e=!1,tagName:t="div"}={})=>n=>{ha(n,"blockquote",(r,a,o)=>{let s="",c="",u=!0,d=r.children.map(p=>{if(u&&p.type==="paragraph"){const h=p.children[0],g=h.type==="text"?h.value:"",y=e?oX:aX,b=g.match(y);if(b&&(u=!1,s=b[1].toLocaleLowerCase(),c=e&&b[2]||s.toLocaleUpperCase(),g.includes(`
243
243
  `)&&(p.children[0]={type:"text",value:g.replace(y,"").replace(/^\n+/,"")}),!g.includes(`
244
244
  `))){const E=[];p.children.forEach((_,A)=>{A!=0&&(A==1&&_.type==="break"||E.push(_))}),p.children=[...E]}}return p});s&&(r.data={hName:t,hProperties:{class:`markdown-alert markdown-alert-${s}`,dir:"auto"}},d.unshift({type:"paragraph",children:[sX(s),{type:"text",value:c.replace(/^\//,"")}],data:{hProperties:{class:"markdown-alert-title",dir:"auto"}}})),r.children=[...d]})};function sX(e){let t=lX[e]??"";return{type:"emphasis",data:{hName:"svg",hProperties:{class:"octicon",viewBox:"0 0 16 16",width:"16",height:"16",ariaHidden:"true"}},children:[{type:"emphasis",data:{hName:"path",hProperties:{d:t}},children:[]}]}}const lX={note:"M0 8a8 8 0 1 1 16 0A8 8 0 0 1 0 8Zm8-6.5a6.5 6.5 0 1 0 0 13 6.5 6.5 0 0 0 0-13ZM6.5 7.75A.75.75 0 0 1 7.25 7h1a.75.75 0 0 1 .75.75v2.75h.25a.75.75 0 0 1 0 1.5h-2a.75.75 0 0 1 0-1.5h.25v-2h-.25a.75.75 0 0 1-.75-.75ZM8 6a1 1 0 1 1 0-2 1 1 0 0 1 0 2Z",tip:"M8 1.5c-2.363 0-4 1.69-4 3.75 0 .984.424 1.625.984 2.304l.214.253c.223.264.47.556.673.848.284.411.537.896.621 1.49a.75.75 0 0 1-1.484.211c-.04-.282-.163-.547-.37-.847a8.456 8.456 0 0 0-.542-.68c-.084-.1-.173-.205-.268-.32C3.201 7.75 2.5 6.766 2.5 5.25 2.5 2.31 4.863 0 8 0s5.5 2.31 5.5 5.25c0 1.516-.701 2.5-1.328 3.259-.095.115-.184.22-.268.319-.207.245-.383.453-.541.681-.208.3-.33.565-.37.847a.751.751 0 0 1-1.485-.212c.084-.593.337-1.078.621-1.489.203-.292.45-.584.673-.848.075-.088.147-.173.213-.253.561-.679.985-1.32.985-2.304 0-2.06-1.637-3.75-4-3.75ZM5.75 12h4.5a.75.75 0 0 1 0 1.5h-4.5a.75.75 0 0 1 0-1.5ZM6 15.25a.75.75 0 0 1 .75-.75h2.5a.75.75 0 0 1 0 1.5h-2.5a.75.75 0 0 1-.75-.75Z",important:"M0 1.75C0 .784.784 0 1.75 0h12.5C15.216 0 16 .784 16 1.75v9.5A1.75 1.75 0 0 1 14.25 13H8.06l-2.573 2.573A1.458 1.458 0 0 1 3 14.543V13H1.75A1.75 1.75 0 0 1 0 11.25Zm1.75-.25a.25.25 0 0 0-.25.25v9.5c0 .138.112.25.25.25h2a.75.75 0 0 1 .75.75v2.19l2.72-2.72a.749.749 0 0 1 .53-.22h6.5a.25.25 0 0 0 .25-.25v-9.5a.25.25 0 0 0-.25-.25Zm7 2.25v2.5a.75.75 0 0 1-1.5 0v-2.5a.75.75 0 0 1 1.5 0ZM9 9a1 1 0 1 1-2 0 1 1 0 0 1 2 0Z",warning:"M6.457 1.047c.659-1.234 2.427-1.234 3.086 0l6.082 11.378A1.75 1.75 0 0 1 14.082 15H1.918a1.75 1.75 0 0 1-1.543-2.575Zm1.763.707a.25.25 0 0 0-.44 0L1.698 13.132a.25.25 0 0 0 .22.368h12.164a.25.25 0 0 0 .22-.368Zm.53 3.996v2.5a.75.75 0 0 1-1.5 0v-2.5a.75.75 0 0 1 1.5 0ZM9 11a1 1 0 1 1-2 0 1 1 0 0 1 2 0Z",caution:"M4.47.22A.749.749 0 0 1 5 0h6c.199 0 .389.079.53.22l4.25 4.25c.141.14.22.331.22.53v6a.749.749 0 0 1-.22.53l-4.25 4.25A.749.749 0 0 1 11 16H5a.749.749 0 0 1-.53-.22L.22 11.53A.749.749 0 0 1 0 11V5c0-.199.079-.389.22-.53Zm.84 1.28L1.5 5.31v5.38l3.81 3.81h5.38l3.81-3.81V5.31L10.69 1.5ZM8 4a.75.75 0 0 1 .75.75v3.5a.75.75 0 0 1-1.5 0v-3.5A.75.75 0 0 1 8 4Zm0 8a1 1 0 1 1 0-2 1 1 0 0 1 0 2Z"};function cX(e,t){if(typeof document>"u")return;const n=document.createElement("textarea");n.value=e,n.setAttribute("readonly",""),n.style={position:"absolute",left:"-9999px"},document.body.appendChild(n);const r=document.getSelection().rangeCount>0?document.getSelection().getRangeAt(0):!1;n.select();let a=!1;try{a=!!document.execCommand("copy")}catch{a=!1}document.body.removeChild(n),r&&document.getSelection&&(document.getSelection().removeAllRanges(),document.getSelection().addRange(r)),t&&t(a)}function b5(e){if(!e)return null;var t=e;return t.dataset.code&&t.classList.contains("copied")?t:t.parentElement?b5(t.parentElement):null}function uX(e){var t=n=>{var r=b5(n.target);r&&(r.classList.add("active"),cX(r.dataset.code,function(){setTimeout(()=>{r.classList.remove("active")},2e3)}))};x.useEffect(()=>{var n,r;return(n=e.current)==null||n.removeEventListener("click",t,!1),(r=e.current)==null||r.addEventListener("click",t,!1),()=>{var a;(a=e.current)==null||a.removeEventListener("click",t,!1)}},[e])}function Na(e,t,n,r){const a=e.length;let o=0,s;if(t<0?t=-t>a?0:a+t:t=t>a?a:t,n=n>0?n:0,r.length<1e4)s=Array.from(r),s.unshift(t,n),e.splice(...s);else for(n&&e.splice(t,n);o<r.length;)s=r.slice(o,o+1e4),s.unshift(t,0),e.splice(...s),o+=1e4,t+=1e4}function to(e,t){return e.length>0?(Na(e,e.length,0,t),e):t}const hk={}.hasOwnProperty;function E5(e){const t={};let n=-1;for(;++n<e.length;)dX(t,e[n]);return t}function dX(e,t){let n;for(n in t){const r=(hk.call(e,n)?e[n]:void 0)||(e[n]={}),a=t[n];let o;if(a)for(o in a){hk.call(r,o)||(r[o]=[]);const s=a[o];fX(r[o],Array.isArray(s)?s:s?[s]:[])}}}function fX(e,t){let n=-1;const r=[];for(;++n<t.length;)(t[n].add==="after"?e:r).push(t[n]);Na(e,0,0,r)}const Yr=$s(/[A-Za-z]/),Mr=$s(/[\dA-Za-z]/),pX=$s(/[#-'*+\--9=?A-Z^-~]/);function Fg(e){return e!==null&&(e<32||e===127)}const VE=$s(/\d/),hX=$s(/[\dA-Fa-f]/),mX=$s(/[!-/:-@[-`{-~]/);function dt(e){return e!==null&&e<-2}function xn(e){return e!==null&&(e<0||e===32)}function jt(e){return e===-2||e===-1||e===32}const zy=$s(/\p{P}|\p{S}/u),Pl=$s(/\s/);function $s(e){return t;function t(n){return n!==null&&n>-1&&e.test(String.fromCharCode(n))}}const gX={tokenize:SX,partial:!0},T5={tokenize:_X,partial:!0},S5={tokenize:CX,partial:!0},_5={tokenize:AX,partial:!0},yX={tokenize:xX,partial:!0},C5={name:"wwwAutolink",tokenize:EX,previous:x5},A5={name:"protocolAutolink",tokenize:TX,previous:w5},ji={name:"emailAutolink",tokenize:bX,previous:D5},ni={};function vX(){return{text:ni}}let nl=48;for(;nl<123;)ni[nl]=ji,nl++,nl===58?nl=65:nl===91&&(nl=97);ni[43]=ji;ni[45]=ji;ni[46]=ji;ni[95]=ji;ni[72]=[ji,A5];ni[104]=[ji,A5];ni[87]=[ji,C5];ni[119]=[ji,C5];function bX(e,t,n){const r=this;let a,o;return s;function s(h){return!GE(h)||!D5.call(r,r.previous)||YS(r.events)?n(h):(e.enter("literalAutolink"),e.enter("literalAutolinkEmail"),c(h))}function c(h){return GE(h)?(e.consume(h),c):h===64?(e.consume(h),u):n(h)}function u(h){return h===46?e.check(yX,p,d)(h):h===45||h===95||Mr(h)?(o=!0,e.consume(h),u):p(h)}function d(h){return e.consume(h),a=!0,u}function p(h){return o&&a&&Yr(r.previous)?(e.exit("literalAutolinkEmail"),e.exit("literalAutolink"),t(h)):n(h)}}function EX(e,t,n){const r=this;return a;function a(s){return s!==87&&s!==119||!x5.call(r,r.previous)||YS(r.events)?n(s):(e.enter("literalAutolink"),e.enter("literalAutolinkWww"),e.check(gX,e.attempt(T5,e.attempt(S5,o),n),n)(s))}function o(s){return e.exit("literalAutolinkWww"),e.exit("literalAutolink"),t(s)}}function TX(e,t,n){const r=this;let a="",o=!1;return s;function s(h){return(h===72||h===104)&&w5.call(r,r.previous)&&!YS(r.events)?(e.enter("literalAutolink"),e.enter("literalAutolinkHttp"),a+=String.fromCodePoint(h),e.consume(h),c):n(h)}function c(h){if(Yr(h)&&a.length<5)return a+=String.fromCodePoint(h),e.consume(h),c;if(h===58){const g=a.toLowerCase();if(g==="http"||g==="https")return e.consume(h),u}return n(h)}function u(h){return h===47?(e.consume(h),o?d:(o=!0,u)):n(h)}function d(h){return h===null||Fg(h)||xn(h)||Pl(h)||zy(h)?n(h):e.attempt(T5,e.attempt(S5,p),n)(h)}function p(h){return e.exit("literalAutolinkHttp"),e.exit("literalAutolink"),t(h)}}function SX(e,t,n){let r=0;return a;function a(s){return(s===87||s===119)&&r<3?(r++,e.consume(s),a):s===46&&r===3?(e.consume(s),o):n(s)}function o(s){return s===null?n(s):t(s)}}function _X(e,t,n){let r,a,o;return s;function s(d){return d===46||d===95?e.check(_5,u,c)(d):d===null||xn(d)||Pl(d)||d!==45&&zy(d)?u(d):(o=!0,e.consume(d),s)}function c(d){return d===95?r=!0:(a=r,r=void 0),e.consume(d),s}function u(d){return a||r||!o?n(d):t(d)}}function CX(e,t){let n=0,r=0;return a;function a(s){return s===40?(n++,e.consume(s),a):s===41&&r<n?o(s):s===33||s===34||s===38||s===39||s===41||s===42||s===44||s===46||s===58||s===59||s===60||s===63||s===93||s===95||s===126?e.check(_5,t,o)(s):s===null||xn(s)||Pl(s)?t(s):(e.consume(s),a)}function o(s){return s===41&&r++,e.consume(s),a}}function AX(e,t,n){return r;function r(c){return c===33||c===34||c===39||c===41||c===42||c===44||c===46||c===58||c===59||c===63||c===95||c===126?(e.consume(c),r):c===38?(e.consume(c),o):c===93?(e.consume(c),a):c===60||c===null||xn(c)||Pl(c)?t(c):n(c)}function a(c){return c===null||c===40||c===91||xn(c)||Pl(c)?t(c):r(c)}function o(c){return Yr(c)?s(c):n(c)}function s(c){return c===59?(e.consume(c),r):Yr(c)?(e.consume(c),s):n(c)}}function xX(e,t,n){return r;function r(o){return e.consume(o),a}function a(o){return Mr(o)?n(o):t(o)}}function x5(e){return e===null||e===40||e===42||e===95||e===91||e===93||e===126||xn(e)}function w5(e){return!Yr(e)}function D5(e){return!(e===47||GE(e))}function GE(e){return e===43||e===45||e===46||e===95||Mr(e)}function YS(e){let t=e.length,n=!1;for(;t--;){const r=e[t][1];if((r.type==="labelLink"||r.type==="labelImage")&&!r._balanced){n=!0;break}if(r._gfmAutolinkLiteralWalkedInto){n=!1;break}}return e.length>0&&!n&&(e[e.length-1][1]._gfmAutolinkLiteralWalkedInto=!0),n}function Wt(e,t,n,r){const a=r?r-1:Number.POSITIVE_INFINITY;let o=0;return s;function s(u){return jt(u)?(e.enter(n),c(u)):t(u)}function c(u){return jt(u)&&o++<a?(e.consume(u),c):(e.exit(n),t(u))}}function bo(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const Up={partial:!0,tokenize:wX};function wX(e,t,n){return r;function r(o){return jt(o)?Wt(e,a,"linePrefix")(o):a(o)}function a(o){return o===null||dt(o)?t(o):n(o)}}const DX={tokenize:MX,partial:!0};function kX(){return{document:{91:{name:"gfmFootnoteDefinition",tokenize:NX,continuation:{tokenize:LX},exit:PX}},text:{91:{name:"gfmFootnoteCall",tokenize:IX},93:{name:"gfmPotentialFootnoteCall",add:"after",tokenize:RX,resolveTo:OX}}}}function RX(e,t,n){const r=this;let a=r.events.length;const o=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let s;for(;a--;){const u=r.events[a][1];if(u.type==="labelImage"){s=u;break}if(u.type==="gfmFootnoteCall"||u.type==="labelLink"||u.type==="label"||u.type==="image"||u.type==="link")break}return c;function c(u){if(!s||!s._balanced)return n(u);const d=bo(r.sliceSerialize({start:s.end,end:r.now()}));return d.codePointAt(0)!==94||!o.includes(d.slice(1))?n(u):(e.enter("gfmFootnoteCallLabelMarker"),e.consume(u),e.exit("gfmFootnoteCallLabelMarker"),t(u))}}function OX(e,t){let n=e.length;for(;n--;)if(e[n][1].type==="labelImage"&&e[n][0]==="enter"){e[n][1];break}e[n+1][1].type="data",e[n+3][1].type="gfmFootnoteCallLabelMarker";const r={type:"gfmFootnoteCall",start:Object.assign({},e[n+3][1].start),end:Object.assign({},e[e.length-1][1].end)},a={type:"gfmFootnoteCallMarker",start:Object.assign({},e[n+3][1].end),end:Object.assign({},e[n+3][1].end)};a.end.column++,a.end.offset++,a.end._bufferIndex++;const o={type:"gfmFootnoteCallString",start:Object.assign({},a.end),end:Object.assign({},e[e.length-1][1].start)},s={type:"chunkString",contentType:"string",start:Object.assign({},o.start),end:Object.assign({},o.end)},c=[e[n+1],e[n+2],["enter",r,t],e[n+3],e[n+4],["enter",a,t],["exit",a,t],["enter",o,t],["enter",s,t],["exit",s,t],["exit",o,t],e[e.length-2],e[e.length-1],["exit",r,t]];return e.splice(n,e.length-n+1,...c),e}function IX(e,t,n){const r=this,a=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let o=0,s;return c;function c(h){return e.enter("gfmFootnoteCall"),e.enter("gfmFootnoteCallLabelMarker"),e.consume(h),e.exit("gfmFootnoteCallLabelMarker"),u}function u(h){return h!==94?n(h):(e.enter("gfmFootnoteCallMarker"),e.consume(h),e.exit("gfmFootnoteCallMarker"),e.enter("gfmFootnoteCallString"),e.enter("chunkString").contentType="string",d)}function d(h){if(o>999||h===93&&!s||h===null||h===91||xn(h))return n(h);if(h===93){e.exit("chunkString");const g=e.exit("gfmFootnoteCallString");return a.includes(bo(r.sliceSerialize(g)))?(e.enter("gfmFootnoteCallLabelMarker"),e.consume(h),e.exit("gfmFootnoteCallLabelMarker"),e.exit("gfmFootnoteCall"),t):n(h)}return xn(h)||(s=!0),o++,e.consume(h),h===92?p:d}function p(h){return h===91||h===92||h===93?(e.consume(h),o++,d):d(h)}}function NX(e,t,n){const r=this,a=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let o,s=0,c;return u;function u(b){return e.enter("gfmFootnoteDefinition")._container=!0,e.enter("gfmFootnoteDefinitionLabel"),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(b),e.exit("gfmFootnoteDefinitionLabelMarker"),d}function d(b){return b===94?(e.enter("gfmFootnoteDefinitionMarker"),e.consume(b),e.exit("gfmFootnoteDefinitionMarker"),e.enter("gfmFootnoteDefinitionLabelString"),e.enter("chunkString").contentType="string",p):n(b)}function p(b){if(s>999||b===93&&!c||b===null||b===91||xn(b))return n(b);if(b===93){e.exit("chunkString");const E=e.exit("gfmFootnoteDefinitionLabelString");return o=bo(r.sliceSerialize(E)),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(b),e.exit("gfmFootnoteDefinitionLabelMarker"),e.exit("gfmFootnoteDefinitionLabel"),g}return xn(b)||(c=!0),s++,e.consume(b),b===92?h:p}function h(b){return b===91||b===92||b===93?(e.consume(b),s++,p):p(b)}function g(b){return b===58?(e.enter("definitionMarker"),e.consume(b),e.exit("definitionMarker"),a.includes(o)||a.push(o),Wt(e,y,"gfmFootnoteDefinitionWhitespace")):n(b)}function y(b){return t(b)}}function LX(e,t,n){return e.check(Up,t,e.attempt(DX,t,n))}function PX(e){e.exit("gfmFootnoteDefinition")}function MX(e,t,n){const r=this;return Wt(e,a,"gfmFootnoteDefinitionIndent",5);function a(o){const s=r.events[r.events.length-1];return s&&s[1].type==="gfmFootnoteDefinitionIndent"&&s[2].sliceSerialize(s[1],!0).length===4?t(o):n(o)}}function pu(e){if(e===null||xn(e)||Pl(e))return 1;if(zy(e))return 2}function Vy(e,t,n){const r=[];let a=-1;for(;++a<e.length;){const o=e[a].resolveAll;o&&!r.includes(o)&&(t=o(t,n),r.push(o))}return t}function $X(e){let t=(e||{}).singleTilde;const n={name:"strikethrough",tokenize:a,resolveAll:r};return t==null&&(t=!0),{text:{126:n},insideSpan:{null:[n]},attentionMarkers:{null:[126]}};function r(o,s){let c=-1;for(;++c<o.length;)if(o[c][0]==="enter"&&o[c][1].type==="strikethroughSequenceTemporary"&&o[c][1]._close){let u=c;for(;u--;)if(o[u][0]==="exit"&&o[u][1].type==="strikethroughSequenceTemporary"&&o[u][1]._open&&o[c][1].end.offset-o[c][1].start.offset===o[u][1].end.offset-o[u][1].start.offset){o[c][1].type="strikethroughSequence",o[u][1].type="strikethroughSequence";const d={type:"strikethrough",start:Object.assign({},o[u][1].start),end:Object.assign({},o[c][1].end)},p={type:"strikethroughText",start:Object.assign({},o[u][1].end),end:Object.assign({},o[c][1].start)},h=[["enter",d,s],["enter",o[u][1],s],["exit",o[u][1],s],["enter",p,s]],g=s.parser.constructs.insideSpan.null;g&&Na(h,h.length,0,Vy(g,o.slice(u+1,c),s)),Na(h,h.length,0,[["exit",p,s],["enter",o[c][1],s],["exit",o[c][1],s],["exit",d,s]]),Na(o,u-1,c-u+3,h),c=u+h.length-2;break}}for(c=-1;++c<o.length;)o[c][1].type==="strikethroughSequenceTemporary"&&(o[c][1].type="data");return o}function a(o,s,c){const u=this.previous,d=this.events;let p=0;return h;function h(y){return u===126&&d[d.length-1][1].type!=="characterEscape"?c(y):(o.enter("strikethroughSequenceTemporary"),g(y))}function g(y){const b=pu(u);if(y===126)return p>1?c(y):(o.consume(y),p++,g);if(p<2&&!t)return c(y);const E=o.exit("strikethroughSequenceTemporary"),_=pu(y);return E._open=!_||_===2&&!!b,E._close=!b||b===2&&!!_,s(y)}}}let FX=class{constructor(){this.map=[]}add(t,n,r){BX(this,t,n,r)}consume(t){if(this.map.sort(function(o,s){return o[0]-s[0]}),this.map.length===0)return;let n=this.map.length;const r=[];for(;n>0;)n-=1,r.push(t.slice(this.map[n][0]+this.map[n][1]),this.map[n][2]),t.length=this.map[n][0];r.push(t.slice()),t.length=0;let a=r.pop();for(;a;){for(const o of a)t.push(o);a=r.pop()}this.map.length=0}};function BX(e,t,n,r){let a=0;if(!(n===0&&r.length===0)){for(;a<e.map.length;){if(e.map[a][0]===t){e.map[a][1]+=n,e.map[a][2].push(...r);return}a+=1}e.map.push([t,n,r])}}function UX(e,t){let n=!1;const r=[];for(;t<e.length;){const a=e[t];if(n){if(a[0]==="enter")a[1].type==="tableContent"&&r.push(e[t+1][1].type==="tableDelimiterMarker"?"left":"none");else if(a[1].type==="tableContent"){if(e[t-1][1].type==="tableDelimiterMarker"){const o=r.length-1;r[o]=r[o]==="left"?"center":"right"}}else if(a[1].type==="tableDelimiterRow")break}else a[0]==="enter"&&a[1].type==="tableDelimiterRow"&&(n=!0);t+=1}return r}function jX(){return{flow:{null:{name:"table",tokenize:HX,resolveAll:zX}}}}function HX(e,t,n){const r=this;let a=0,o=0,s;return c;function c(T){let M=r.events.length-1;for(;M>-1;){const Y=r.events[M][1].type;if(Y==="lineEnding"||Y==="linePrefix")M--;else break}const U=M>-1?r.events[M][1].type:null,B=U==="tableHead"||U==="tableRow"?k:u;return B===k&&r.parser.lazy[r.now().line]?n(T):B(T)}function u(T){return e.enter("tableHead"),e.enter("tableRow"),d(T)}function d(T){return T===124||(s=!0,o+=1),p(T)}function p(T){return T===null?n(T):dt(T)?o>1?(o=0,r.interrupt=!0,e.exit("tableRow"),e.enter("lineEnding"),e.consume(T),e.exit("lineEnding"),y):n(T):jt(T)?Wt(e,p,"whitespace")(T):(o+=1,s&&(s=!1,a+=1),T===124?(e.enter("tableCellDivider"),e.consume(T),e.exit("tableCellDivider"),s=!0,p):(e.enter("data"),h(T)))}function h(T){return T===null||T===124||xn(T)?(e.exit("data"),p(T)):(e.consume(T),T===92?g:h)}function g(T){return T===92||T===124?(e.consume(T),h):h(T)}function y(T){return r.interrupt=!1,r.parser.lazy[r.now().line]?n(T):(e.enter("tableDelimiterRow"),s=!1,jt(T)?Wt(e,b,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(T):b(T))}function b(T){return T===45||T===58?_(T):T===124?(s=!0,e.enter("tableCellDivider"),e.consume(T),e.exit("tableCellDivider"),E):O(T)}function E(T){return jt(T)?Wt(e,_,"whitespace")(T):_(T)}function _(T){return T===58?(o+=1,s=!0,e.enter("tableDelimiterMarker"),e.consume(T),e.exit("tableDelimiterMarker"),A):T===45?(o+=1,A(T)):T===null||dt(T)?R(T):O(T)}function A(T){return T===45?(e.enter("tableDelimiterFiller"),D(T)):O(T)}function D(T){return T===45?(e.consume(T),D):T===58?(s=!0,e.exit("tableDelimiterFiller"),e.enter("tableDelimiterMarker"),e.consume(T),e.exit("tableDelimiterMarker"),w):(e.exit("tableDelimiterFiller"),w(T))}function w(T){return jt(T)?Wt(e,R,"whitespace")(T):R(T)}function R(T){return T===124?b(T):T===null||dt(T)?!s||a!==o?O(T):(e.exit("tableDelimiterRow"),e.exit("tableHead"),t(T)):O(T)}function O(T){return n(T)}function k(T){return e.enter("tableRow"),F(T)}function F(T){return T===124?(e.enter("tableCellDivider"),e.consume(T),e.exit("tableCellDivider"),F):T===null||dt(T)?(e.exit("tableRow"),t(T)):jt(T)?Wt(e,F,"whitespace")(T):(e.enter("data"),G(T))}function G(T){return T===null||T===124||xn(T)?(e.exit("data"),F(T)):(e.consume(T),T===92?j:G)}function j(T){return T===92||T===124?(e.consume(T),G):G(T)}}function zX(e,t){let n=-1,r=!0,a=0,o=[0,0,0,0],s=[0,0,0,0],c=!1,u=0,d,p,h;const g=new FX;for(;++n<e.length;){const y=e[n],b=y[1];y[0]==="enter"?b.type==="tableHead"?(c=!1,u!==0&&(mk(g,t,u,d,p),p=void 0,u=0),d={type:"table",start:Object.assign({},b.start),end:Object.assign({},b.end)},g.add(n,0,[["enter",d,t]])):b.type==="tableRow"||b.type==="tableDelimiterRow"?(r=!0,h=void 0,o=[0,0,0,0],s=[0,n+1,0,0],c&&(c=!1,p={type:"tableBody",start:Object.assign({},b.start),end:Object.assign({},b.end)},g.add(n,0,[["enter",p,t]])),a=b.type==="tableDelimiterRow"?2:p?3:1):a&&(b.type==="data"||b.type==="tableDelimiterMarker"||b.type==="tableDelimiterFiller")?(r=!1,s[2]===0&&(o[1]!==0&&(s[0]=s[1],h=Sm(g,t,o,a,void 0,h),o=[0,0,0,0]),s[2]=n)):b.type==="tableCellDivider"&&(r?r=!1:(o[1]!==0&&(s[0]=s[1],h=Sm(g,t,o,a,void 0,h)),o=s,s=[o[1],n,0,0])):b.type==="tableHead"?(c=!0,u=n):b.type==="tableRow"||b.type==="tableDelimiterRow"?(u=n,o[1]!==0?(s[0]=s[1],h=Sm(g,t,o,a,n,h)):s[1]!==0&&(h=Sm(g,t,s,a,n,h)),a=0):a&&(b.type==="data"||b.type==="tableDelimiterMarker"||b.type==="tableDelimiterFiller")&&(s[3]=n)}for(u!==0&&mk(g,t,u,d,p),g.consume(t.events),n=-1;++n<t.events.length;){const y=t.events[n];y[0]==="enter"&&y[1].type==="table"&&(y[1]._align=UX(t.events,n))}return e}function Sm(e,t,n,r,a,o){const s=r===1?"tableHeader":r===2?"tableDelimiter":"tableData",c="tableContent";n[0]!==0&&(o.end=Object.assign({},Vc(t.events,n[0])),e.add(n[0],0,[["exit",o,t]]));const u=Vc(t.events,n[1]);if(o={type:s,start:Object.assign({},u),end:Object.assign({},u)},e.add(n[1],0,[["enter",o,t]]),n[2]!==0){const d=Vc(t.events,n[2]),p=Vc(t.events,n[3]),h={type:c,start:Object.assign({},d),end:Object.assign({},p)};if(e.add(n[2],0,[["enter",h,t]]),r!==2){const g=t.events[n[2]],y=t.events[n[3]];if(g[1].end=Object.assign({},y[1].end),g[1].type="chunkText",g[1].contentType="text",n[3]>n[2]+1){const b=n[2]+1,E=n[3]-n[2]-1;e.add(b,E,[])}}e.add(n[3]+1,0,[["exit",h,t]])}return a!==void 0&&(o.end=Object.assign({},Vc(t.events,a)),e.add(a,0,[["exit",o,t]]),o=void 0),o}function mk(e,t,n,r,a){const o=[],s=Vc(t.events,n);a&&(a.end=Object.assign({},s),o.push(["exit",a,t])),r.end=Object.assign({},s),o.push(["exit",r,t]),e.add(n+1,0,o)}function Vc(e,t){const n=e[t],r=n[0]==="enter"?"start":"end";return n[1][r]}const VX={name:"tasklistCheck",tokenize:qX};function GX(){return{text:{91:VX}}}function qX(e,t,n){const r=this;return a;function a(u){return r.previous!==null||!r._gfmTasklistFirstContentOfListItem?n(u):(e.enter("taskListCheck"),e.enter("taskListCheckMarker"),e.consume(u),e.exit("taskListCheckMarker"),o)}function o(u){return xn(u)?(e.enter("taskListCheckValueUnchecked"),e.consume(u),e.exit("taskListCheckValueUnchecked"),s):u===88||u===120?(e.enter("taskListCheckValueChecked"),e.consume(u),e.exit("taskListCheckValueChecked"),s):n(u)}function s(u){return u===93?(e.enter("taskListCheckMarker"),e.consume(u),e.exit("taskListCheckMarker"),e.exit("taskListCheck"),c):n(u)}function c(u){return dt(u)?t(u):jt(u)?e.check({tokenize:WX},t,n)(u):n(u)}}function WX(e,t,n){return Wt(e,r,"whitespace");function r(a){return a===null?n(a):t(a)}}function YX(e){return E5([vX(),kX(),$X(e),jX(),GX()])}function QX(e){if(typeof e!="string")throw new TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}function KX(e,t,n){const r=jy((n||{}).ignore||[]),a=XX(t);let o=-1;for(;++o<a.length;)v5(e,"text",s);function s(u,d){let p=-1,h;for(;++p<d.length;){const g=d[p],y=h?h.children:void 0;if(r(g,y?y.indexOf(g):void 0,h))return;h=g}if(h)return c(u,d)}function c(u,d){const p=d[d.length-1],h=a[o][0],g=a[o][1];let y=0;const b=p.children.indexOf(u);let E=!1,_=[];h.lastIndex=0;let A=h.exec(u.value);for(;A;){const D=A.index,w={index:A.index,input:A.input,stack:[...d,u]};let R=g(...A,w);if(typeof R=="string"&&(R=R.length>0?{type:"text",value:R}:void 0),R===!1?h.lastIndex=D+1:(y!==D&&_.push({type:"text",value:u.value.slice(y,D)}),Array.isArray(R)?_.push(...R):R&&_.push(R),y=D+A[0].length,E=!0),!h.global)break;A=h.exec(u.value)}return E?(y<u.value.length&&_.push({type:"text",value:u.value.slice(y)}),p.children.splice(b,1,..._)):_=[u],b+_.length}}function XX(e){const t=[];if(!Array.isArray(e))throw new TypeError("Expected find and replace tuple or list of tuples");const n=!e[0]||Array.isArray(e[0])?e:[e];let r=-1;for(;++r<n.length;){const a=n[r];t.push([ZX(a[0]),JX(a[1])])}return t}function ZX(e){return typeof e=="string"?new RegExp(QX(e),"g"):e}function JX(e){return typeof e=="function"?e:function(){return e}}const ab="phrasing",ob=["autolink","link","image","label"];function eZ(){return{transforms:[sZ],enter:{literalAutolink:nZ,literalAutolinkEmail:ib,literalAutolinkHttp:ib,literalAutolinkWww:ib},exit:{literalAutolink:iZ,literalAutolinkEmail:oZ,literalAutolinkHttp:rZ,literalAutolinkWww:aZ}}}function tZ(){return{unsafe:[{character:"@",before:"[+\\-.\\w]",after:"[\\-.\\w]",inConstruct:ab,notInConstruct:ob},{character:".",before:"[Ww]",after:"[\\-.\\w]",inConstruct:ab,notInConstruct:ob},{character:":",before:"[ps]",after:"\\/",inConstruct:ab,notInConstruct:ob}]}}function nZ(e){this.enter({type:"link",title:null,url:"",children:[]},e)}function ib(e){this.config.enter.autolinkProtocol.call(this,e)}function rZ(e){this.config.exit.autolinkProtocol.call(this,e)}function aZ(e){this.config.exit.data.call(this,e);const t=this.stack[this.stack.length-1];t.type,t.url="http://"+this.sliceSerialize(e)}function oZ(e){this.config.exit.autolinkEmail.call(this,e)}function iZ(e){this.exit(e)}function sZ(e){KX(e,[[/(https?:\/\/|www(?=\.))([-.\w]+)([^ \t\r\n]*)/gi,lZ],[/(?<=^|\s|\p{P}|\p{S})([-.\w+]+)@([-\w]+(?:\.[-\w]+)+)/gu,cZ]],{ignore:["link","linkReference"]})}function lZ(e,t,n,r,a){let o="";if(!k5(a)||(/^w/i.test(t)&&(n=t+n,t="",o="http://"),!uZ(n)))return!1;const s=dZ(n+r);if(!s[0])return!1;const c={type:"link",title:null,url:o+t+s[0],children:[{type:"text",value:t+s[0]}]};return s[1]?[c,{type:"text",value:s[1]}]:c}function cZ(e,t,n,r){return!k5(r,!0)||/[-\d_]$/.test(n)?!1:{type:"link",title:null,url:"mailto:"+t+"@"+n,children:[{type:"text",value:t+"@"+n}]}}function uZ(e){const t=e.split(".");return!(t.length<2||t[t.length-1]&&(/_/.test(t[t.length-1])||!/[a-zA-Z\d]/.test(t[t.length-1]))||t[t.length-2]&&(/_/.test(t[t.length-2])||!/[a-zA-Z\d]/.test(t[t.length-2])))}function dZ(e){const t=/[!"&'),.:;<>?\]}]+$/.exec(e);if(!t)return[e,void 0];e=e.slice(0,t.index);let n=t[0],r=n.indexOf(")");const a=kg(e,"(");let o=kg(e,")");for(;r!==-1&&a>o;)e+=n.slice(0,r+1),n=n.slice(r+1),r=n.indexOf(")"),o++;return[e,n]}function k5(e,t){const n=e.input.charCodeAt(e.index-1);return(e.index===0||Pl(n)||zy(n))&&(!t||n!==47)}R5.peek=EZ;function fZ(){this.buffer()}function pZ(e){this.enter({type:"footnoteReference",identifier:"",label:""},e)}function hZ(){this.buffer()}function mZ(e){this.enter({type:"footnoteDefinition",identifier:"",label:"",children:[]},e)}function gZ(e){const t=this.resume(),n=this.stack[this.stack.length-1];n.type,n.identifier=bo(this.sliceSerialize(e)).toLowerCase(),n.label=t}function yZ(e){this.exit(e)}function vZ(e){const t=this.resume(),n=this.stack[this.stack.length-1];n.type,n.identifier=bo(this.sliceSerialize(e)).toLowerCase(),n.label=t}function bZ(e){this.exit(e)}function EZ(){return"["}function R5(e,t,n,r){const a=n.createTracker(r);let o=a.move("[^");const s=n.enter("footnoteReference"),c=n.enter("reference");return o+=a.move(n.safe(n.associationId(e),{after:"]",before:o})),c(),s(),o+=a.move("]"),o}function TZ(){return{enter:{gfmFootnoteCallString:fZ,gfmFootnoteCall:pZ,gfmFootnoteDefinitionLabelString:hZ,gfmFootnoteDefinition:mZ},exit:{gfmFootnoteCallString:gZ,gfmFootnoteCall:yZ,gfmFootnoteDefinitionLabelString:vZ,gfmFootnoteDefinition:bZ}}}function SZ(e){let t=!1;return e&&e.firstLineBlank&&(t=!0),{handlers:{footnoteDefinition:n,footnoteReference:R5},unsafe:[{character:"[",inConstruct:["label","phrasing","reference"]}]};function n(r,a,o,s){const c=o.createTracker(s);let u=c.move("[^");const d=o.enter("footnoteDefinition"),p=o.enter("label");return u+=c.move(o.safe(o.associationId(r),{before:u,after:"]"})),p(),u+=c.move("]:"),r.children&&r.children.length>0&&(c.shift(4),u+=c.move((t?`
245
245
  `:" ")+o.indentLines(o.containerFlow(r,c.current()),t?O5:_Z))),d(),u}}function _Z(e,t,n){return t===0?e:O5(e,t,n)}function O5(e,t,n){return(n?"":" ")+e}const CZ=["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"];I5.peek=kZ;function AZ(){return{canContainEols:["delete"],enter:{strikethrough:wZ},exit:{strikethrough:DZ}}}function xZ(){return{unsafe:[{character:"~",inConstruct:"phrasing",notInConstruct:CZ}],handlers:{delete:I5}}}function wZ(e){this.enter({type:"delete",children:[]},e)}function DZ(e){this.exit(e)}function I5(e,t,n,r){const a=n.createTracker(r),o=n.enter("strikethrough");let s=a.move("~~");return s+=n.containerPhrasing(e,{...a.current(),before:s,after:"~"}),s+=a.move("~~"),o(),s}function kZ(){return"~"}function RZ(e){return e.length}function OZ(e,t){const n=t||{},r=(n.align||[]).concat(),a=n.stringLength||RZ,o=[],s=[],c=[],u=[];let d=0,p=-1;for(;++p<e.length;){const E=[],_=[];let A=-1;for(e[p].length>d&&(d=e[p].length);++A<e[p].length;){const D=IZ(e[p][A]);if(n.alignDelimiters!==!1){const w=a(D);_[A]=w,(u[A]===void 0||w>u[A])&&(u[A]=w)}E.push(D)}s[p]=E,c[p]=_}let h=-1;if(typeof r=="object"&&"length"in r)for(;++h<d;)o[h]=gk(r[h]);else{const E=gk(r);for(;++h<d;)o[h]=E}h=-1;const g=[],y=[];for(;++h<d;){const E=o[h];let _="",A="";E===99?(_=":",A=":"):E===108?_=":":E===114&&(A=":");let D=n.alignDelimiters===!1?1:Math.max(1,u[h]-_.length-A.length);const w=_+"-".repeat(D)+A;n.alignDelimiters!==!1&&(D=_.length+D+A.length,D>u[h]&&(u[h]=D),y[h]=D),g[h]=w}s.splice(1,0,g),c.splice(1,0,y),p=-1;const b=[];for(;++p<s.length;){const E=s[p],_=c[p];h=-1;const A=[];for(;++h<d;){const D=E[h]||"";let w="",R="";if(n.alignDelimiters!==!1){const O=u[h]-(_[h]||0),k=o[h];k===114?w=" ".repeat(O):k===99?O%2?(w=" ".repeat(O/2+.5),R=" ".repeat(O/2-.5)):(w=" ".repeat(O/2),R=w):R=" ".repeat(O)}n.delimiterStart!==!1&&!h&&A.push("|"),n.padding!==!1&&!(n.alignDelimiters===!1&&D==="")&&(n.delimiterStart!==!1||h)&&A.push(" "),n.alignDelimiters!==!1&&A.push(w),A.push(D),n.alignDelimiters!==!1&&A.push(R),n.padding!==!1&&A.push(" "),(n.delimiterEnd!==!1||h!==d-1)&&A.push("|")}b.push(n.delimiterEnd===!1?A.join("").replace(/ +$/,""):A.join(""))}return b.join(`
@@ -269,12 +269,12 @@ export default theme;`}const Iz=e=>{const t=Object.keys(e).map(n=>({key:n,val:e[
269
269
  `}),n.push(e[r]);return t&&e.length>0&&n.push({type:"text",value:`
270
270
  `}),n}function Hk(e){let t=0,n=e.charCodeAt(t);for(;n===9||n===32;)t++,n=e.charCodeAt(t);return e.slice(t)}function zk(e,t){const n=Ane(e,t),r=n.one(e,void 0),a=Kte(n),o=Array.isArray(r)?{type:"root",children:r}:r||{type:"root",children:[]};return a&&o.children.push({type:"text",value:`
271
271
  `},a),o}function Rne(e,t){return e&&"run"in e?async function(n,r){const a=zk(n,{file:r,...t});await e.run(a,r)}:function(n,r){return zk(n,{file:r,...e||t})}}var Fc={},vb,Vk;function One(){if(Vk)return vb;Vk=1;var e=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,t=/\n/g,n=/^\s*/,r=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,a=/^:\s*/,o=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,s=/^[;\s]*/,c=/^\s+|\s+$/g,u=`
272
- `,d="/",p="*",h="",g="comment",y="declaration";vb=function(E,_){if(typeof E!="string")throw new TypeError("First argument must be a string");if(!E)return[];_=_||{};var A=1,D=1;function w(B){var Y=B.match(t);Y&&(A+=Y.length);var X=B.lastIndexOf(u);D=~X?B.length-X:D+B.length}function R(){var B={line:A,column:D};return function(Y){return Y.position=new O(B),G(),Y}}function O(B){this.start=B,this.end={line:A,column:D},this.source=_.source}O.prototype.content=E;function k(B){var Y=new Error(_.source+":"+A+":"+D+": "+B);if(Y.reason=B,Y.filename=_.source,Y.line=A,Y.column=D,Y.source=E,!_.silent)throw Y}function F(B){var Y=B.exec(E);if(Y){var X=Y[0];return w(X),E=E.slice(X.length),Y}}function G(){F(n)}function j(B){var Y;for(B=B||[];Y=T();)Y!==!1&&B.push(Y);return B}function T(){var B=R();if(!(d!=E.charAt(0)||p!=E.charAt(1))){for(var Y=2;h!=E.charAt(Y)&&(p!=E.charAt(Y)||d!=E.charAt(Y+1));)++Y;if(Y+=2,h===E.charAt(Y-1))return k("End of comment missing");var X=E.slice(2,Y-2);return D+=2,w(X),E=E.slice(Y),D+=2,B({type:g,comment:X})}}function M(){var B=R(),Y=F(r);if(Y){if(T(),!F(a))return k("property missing ':'");var X=F(o),z=B({type:y,property:b(Y[0].replace(e,h)),value:X?b(X[0].replace(e,h)):h});return F(s),z}}function U(){var B=[];j(B);for(var Y;Y=M();)Y!==!1&&(B.push(Y),j(B));return B}return G(),U()};function b(E){return E?E.replace(c,h):h}return vb}var Gk;function Ine(){if(Gk)return Fc;Gk=1;var e=Fc&&Fc.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(Fc,"__esModule",{value:!0}),Fc.default=n;var t=e(One());function n(r,a){var o=null;if(!r||typeof r!="string")return o;var s=(0,t.default)(r),c=typeof a=="function";return s.forEach(function(u){if(u.type==="declaration"){var d=u.property,p=u.value;c?a(d,p,u):p&&(o=o||{},o[d]=p)}}),o}return Fc}var Gd={},qk;function Nne(){if(qk)return Gd;qk=1,Object.defineProperty(Gd,"__esModule",{value:!0}),Gd.camelCase=void 0;var e=/^--[a-zA-Z0-9_-]+$/,t=/-([a-z])/g,n=/^[^-]+$/,r=/^-(webkit|moz|ms|o|khtml)-/,a=/^-(ms)-/,o=function(d){return!d||n.test(d)||e.test(d)},s=function(d,p){return p.toUpperCase()},c=function(d,p){return"".concat(p,"-")},u=function(d,p){return p===void 0&&(p={}),o(d)?d:(d=d.toLowerCase(),p.reactCompat?d=d.replace(a,c):d=d.replace(r,c),d.replace(t,s))};return Gd.camelCase=u,Gd}var qd,Wk;function Lne(){if(Wk)return qd;Wk=1;var e=qd&&qd.__importDefault||function(a){return a&&a.__esModule?a:{default:a}},t=e(Ine()),n=Nne();function r(a,o){var s={};return!a||typeof a!="string"||(0,t.default)(a,function(c,u){c&&u&&(s[(0,n.camelCase)(c,o)]=u)}),s}return r.default=r,qd=r,qd}var Pne=Lne();const Mne=Gy(Pne),$ne=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,Fne=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,Bne={};function Yk(e,t){return(Bne.jsx?Fne:$ne).test(e)}const Une={classId:"classID",dataType:"datatype",itemId:"itemID",strokeDashArray:"strokeDasharray",strokeDashOffset:"strokeDashoffset",strokeLineCap:"strokeLinecap",strokeLineJoin:"strokeLinejoin",strokeMiterLimit:"strokeMiterlimit",typeOf:"typeof",xLinkActuate:"xlinkActuate",xLinkArcRole:"xlinkArcrole",xLinkHref:"xlinkHref",xLinkRole:"xlinkRole",xLinkShow:"xlinkShow",xLinkTitle:"xlinkTitle",xLinkType:"xlinkType",xmlnsXLink:"xmlnsXlink"},a_={}.hasOwnProperty,jne=new Map,Hne=/[A-Z]/g,zne=new Set(["table","tbody","thead","tfoot","tr"]),Vne=new Set(["td","th"]),d4="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function Gne(e,t){if(!t||t.Fragment===void 0)throw new TypeError("Expected `Fragment` in options");const n=t.filePath||void 0;let r;if(t.development){if(typeof t.jsxDEV!="function")throw new TypeError("Expected `jsxDEV` in options when `development: true`");r=Jne(n,t.jsxDEV)}else{if(typeof t.jsx!="function")throw new TypeError("Expected `jsx` in production options");if(typeof t.jsxs!="function")throw new TypeError("Expected `jsxs` in production options");r=Zne(n,t.jsx,t.jsxs)}const a={Fragment:t.Fragment,ancestors:[],components:t.components||{},create:r,elementAttributeNameCase:t.elementAttributeNameCase||"react",evaluater:t.createEvaluater?t.createEvaluater():void 0,filePath:n,ignoreInvalidStyle:t.ignoreInvalidStyle||!1,passKeys:t.passKeys!==!1,passNode:t.passNode||!1,schema:t.space==="svg"?Bi:_u,stylePropertyNameCase:t.stylePropertyNameCase||"dom",tableCellAlignToStyle:t.tableCellAlignToStyle!==!1},o=f4(a,e,void 0);return o&&typeof o!="string"?o:a.create(e,a.Fragment,{children:o||void 0},void 0)}function f4(e,t,n){if(t.type==="element")return qne(e,t,n);if(t.type==="mdxFlowExpression"||t.type==="mdxTextExpression")return Wne(e,t);if(t.type==="mdxJsxFlowElement"||t.type==="mdxJsxTextElement")return Qne(e,t,n);if(t.type==="mdxjsEsm")return Yne(e,t);if(t.type==="root")return Kne(e,t,n);if(t.type==="text")return Xne(e,t)}function qne(e,t,n){const r=e.schema;let a=r;t.tagName.toLowerCase()==="svg"&&r.space==="html"&&(a=Bi,e.schema=a),e.ancestors.push(t);const o=h4(e,t.tagName,!1),s=ere(e,t);let c=i_(e,t);return zne.has(t.tagName)&&(c=c.filter(function(u){return typeof u=="string"?!Lp(u):!0})),p4(e,s,o,t),o_(s,c),e.ancestors.pop(),e.schema=r,e.create(t,o,s,n)}function Wne(e,t){if(t.data&&t.data.estree&&e.evaluater){const n=t.data.estree.body[0];return n.type,e.evaluater.evaluateExpression(n.expression)}rp(e,t.position)}function Yne(e,t){if(t.data&&t.data.estree&&e.evaluater)return e.evaluater.evaluateProgram(t.data.estree);rp(e,t.position)}function Qne(e,t,n){const r=e.schema;let a=r;t.name==="svg"&&r.space==="html"&&(a=Bi,e.schema=a),e.ancestors.push(t);const o=t.name===null?e.Fragment:h4(e,t.name,!0),s=tre(e,t),c=i_(e,t);return p4(e,s,o,t),o_(s,c),e.ancestors.pop(),e.schema=r,e.create(t,o,s,n)}function Kne(e,t,n){const r={};return o_(r,i_(e,t)),e.create(t,e.Fragment,r,n)}function Xne(e,t){return t.value}function p4(e,t,n,r){typeof n!="string"&&n!==e.Fragment&&e.passNode&&(t.node=r)}function o_(e,t){if(t.length>0){const n=t.length>1?t:t[0];n&&(e.children=n)}}function Zne(e,t,n){return r;function r(a,o,s,c){const u=Array.isArray(s.children)?n:t;return c?u(o,s,c):u(o,s)}}function Jne(e,t){return n;function n(r,a,o,s){const c=Array.isArray(o.children),u=ri(r);return t(a,o,s,c,{columnNumber:u?u.column-1:void 0,fileName:e,lineNumber:u?u.line:void 0},void 0)}}function ere(e,t){const n={};let r,a;for(a in t.properties)if(a!=="children"&&a_.call(t.properties,a)){const o=nre(e,a,t.properties[a]);if(o){const[s,c]=o;e.tableCellAlignToStyle&&s==="align"&&typeof c=="string"&&Vne.has(t.tagName)?r=c:n[s]=c}}if(r){const o=n.style||(n.style={});o[e.stylePropertyNameCase==="css"?"text-align":"textAlign"]=r}return n}function tre(e,t){const n={};for(const r of t.attributes)if(r.type==="mdxJsxExpressionAttribute")if(r.data&&r.data.estree&&e.evaluater){const a=r.data.estree.body[0];a.type;const o=a.expression;o.type;const s=o.properties[0];s.type,Object.assign(n,e.evaluater.evaluateExpression(s.argument))}else rp(e,t.position);else{const a=r.name;let o;if(r.value&&typeof r.value=="object")if(r.value.data&&r.value.data.estree&&e.evaluater){const s=r.value.data.estree.body[0];s.type,o=e.evaluater.evaluateExpression(s.expression)}else rp(e,t.position);else o=r.value===null?!0:r.value;n[a]=o}return n}function i_(e,t){const n=[];let r=-1;const a=e.passKeys?new Map:jne;for(;++r<t.children.length;){const o=t.children[r];let s;if(e.passKeys){const u=o.type==="element"?o.tagName:o.type==="mdxJsxFlowElement"||o.type==="mdxJsxTextElement"?o.name:void 0;if(u){const d=a.get(u)||0;s=u+"-"+d,a.set(u,d+1)}}const c=f4(e,o,s);c!==void 0&&n.push(c)}return n}function nre(e,t,n){const r=Pp(e.schema,t);if(!(n==null||typeof n=="number"&&Number.isNaN(n))){if(Array.isArray(n)&&(n=r.commaSeparated?ky(n):Ry(n)),r.property==="style"){let a=typeof n=="object"?n:rre(e,String(n));return e.stylePropertyNameCase==="css"&&(a=are(a)),["style",a]}return[e.elementAttributeNameCase==="react"&&r.space?Une[r.property]||r.property:r.attribute,n]}}function rre(e,t){try{return Mne(t,{reactCompat:!0})}catch(n){if(e.ignoreInvalidStyle)return{};const r=n,a=new Br("Cannot parse `style` attribute",{ancestors:e.ancestors,cause:r,ruleId:"style",source:"hast-util-to-jsx-runtime"});throw a.file=e.filePath||void 0,a.url=d4+"#cannot-parse-style-attribute",a}}function h4(e,t,n){let r;if(!n)r={type:"Literal",value:t};else if(t.includes(".")){const a=t.split(".");let o=-1,s;for(;++o<a.length;){const c=Yk(a[o])?{type:"Identifier",name:a[o]}:{type:"Literal",value:a[o]};s=s?{type:"MemberExpression",object:s,property:c,computed:!!(o&&c.type==="Literal"),optional:!1}:c}r=s}else r=Yk(t)&&!/^[a-z]/.test(t)?{type:"Identifier",name:t}:{type:"Literal",value:t};if(r.type==="Literal"){const a=r.value;return a_.call(e.components,a)?e.components[a]:a}if(e.evaluater)return e.evaluater.evaluateExpression(r);rp(e)}function rp(e,t){const n=new Br("Cannot handle MDX estrees without `createEvaluater`",{ancestors:e.ancestors,place:t,ruleId:"mdx-estree",source:"hast-util-to-jsx-runtime"});throw n.file=e.filePath||void 0,n.url=d4+"#cannot-handle-mdx-estrees-without-createevaluater",n}function are(e){const t={};let n;for(n in e)a_.call(e,n)&&(t[ore(n)]=e[n]);return t}function ore(e){let t=e.replace(Hne,ire);return t.slice(0,3)==="ms-"&&(t="-"+t),t}function ire(e){return"-"+e.toLowerCase()}const bb={action:["form"],cite:["blockquote","del","ins","q"],data:["object"],formAction:["button","input"],href:["a","area","base","link"],icon:["menuitem"],itemId:null,manifest:["html"],ping:["a","area"],poster:["video"],src:["audio","embed","iframe","img","input","script","source","track","video"]},sre="https://github.com/remarkjs/react-markdown/blob/main/changelog.md",Qk=[],Kk={allowDangerousHtml:!0},lre=/^(https?|ircs?|mailto|xmpp)$/i,cre=[{from:"astPlugins",id:"remove-buggy-html-in-markdown-parser"},{from:"allowDangerousHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"allowNode",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowElement"},{from:"allowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowedElements"},{from:"disallowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"disallowedElements"},{from:"escapeHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"includeElementIndex",id:"#remove-includeelementindex"},{from:"includeNodeIndex",id:"change-includenodeindex-to-includeelementindex"},{from:"linkTarget",id:"remove-linktarget"},{from:"plugins",id:"change-plugins-to-remarkplugins",to:"remarkPlugins"},{from:"rawSourcePos",id:"#remove-rawsourcepos"},{from:"renderers",id:"change-renderers-to-components",to:"components"},{from:"source",id:"change-source-to-children",to:"children"},{from:"sourcePos",id:"#remove-sourcepos"},{from:"transformImageUri",id:"#add-urltransform",to:"urlTransform"},{from:"transformLinkUri",id:"#add-urltransform",to:"urlTransform"}];function ure(e){const t=e.allowedElements,n=e.allowElement,r=e.children||"",a=e.className,o=e.components,s=e.disallowedElements,c=e.rehypePlugins||Qk,u=e.remarkPlugins||Qk,d=e.remarkRehypeOptions?{...e.remarkRehypeOptions,...Kk}:Kk,p=e.skipHtml,h=e.unwrapDisallowed,g=e.urlTransform||dre,y=qJ().use(zte).use(u).use(Rne,d).use(c),b=new G5;typeof r=="string"&&(b.value=r);for(const D of cre)Object.hasOwn(e,D.from)&&(""+D.from+(D.to?"use `"+D.to+"` instead":"remove it")+sre+D.id,void 0);const E=y.parse(b);let _=y.runSync(E,b);return a&&(_={type:"element",tagName:"div",properties:{className:a},children:_.type==="root"?_.children:[_]}),ha(_,A),Gne(_,{Fragment:P.Fragment,components:o,ignoreInvalidStyle:!0,jsx:P.jsx,jsxs:P.jsxs,passKeys:!0,passNode:!0});function A(D,w,R){if(D.type==="raw"&&R&&typeof w=="number")return p?R.children.splice(w,1):R.children[w]={type:"text",value:D.value},w;if(D.type==="element"){let O;for(O in bb)if(Object.hasOwn(bb,O)&&Object.hasOwn(D.properties,O)){const k=D.properties[O],F=bb[O];(F===null||F.includes(D.tagName))&&(D.properties[O]=g(String(k||""),O,D))}}if(D.type==="element"){let O=t?!t.includes(D.tagName):s?s.includes(D.tagName):!1;if(!O&&n&&typeof w=="number"&&(O=!n(D,w,R)),O&&R&&typeof w=="number")return h&&D.children?R.children.splice(w,1,...D.children):R.children.splice(w,1),w}}}function dre(e){const t=e.indexOf(":"),n=e.indexOf("?"),r=e.indexOf("#"),a=e.indexOf("/");return t===-1||a!==-1&&t>a||n!==-1&&t>n||r!==-1&&t>r||lre.test(e.slice(0,t))?e:""}const fre=new Set([65534,65535,131070,131071,196606,196607,262142,262143,327678,327679,393214,393215,458750,458751,524286,524287,589822,589823,655358,655359,720894,720895,786430,786431,851966,851967,917502,917503,983038,983039,1048574,1048575,1114110,1114111]),$n="�";var H;(function(e){e[e.EOF=-1]="EOF",e[e.NULL=0]="NULL",e[e.TABULATION=9]="TABULATION",e[e.CARRIAGE_RETURN=13]="CARRIAGE_RETURN",e[e.LINE_FEED=10]="LINE_FEED",e[e.FORM_FEED=12]="FORM_FEED",e[e.SPACE=32]="SPACE",e[e.EXCLAMATION_MARK=33]="EXCLAMATION_MARK",e[e.QUOTATION_MARK=34]="QUOTATION_MARK",e[e.AMPERSAND=38]="AMPERSAND",e[e.APOSTROPHE=39]="APOSTROPHE",e[e.HYPHEN_MINUS=45]="HYPHEN_MINUS",e[e.SOLIDUS=47]="SOLIDUS",e[e.DIGIT_0=48]="DIGIT_0",e[e.DIGIT_9=57]="DIGIT_9",e[e.SEMICOLON=59]="SEMICOLON",e[e.LESS_THAN_SIGN=60]="LESS_THAN_SIGN",e[e.EQUALS_SIGN=61]="EQUALS_SIGN",e[e.GREATER_THAN_SIGN=62]="GREATER_THAN_SIGN",e[e.QUESTION_MARK=63]="QUESTION_MARK",e[e.LATIN_CAPITAL_A=65]="LATIN_CAPITAL_A",e[e.LATIN_CAPITAL_Z=90]="LATIN_CAPITAL_Z",e[e.RIGHT_SQUARE_BRACKET=93]="RIGHT_SQUARE_BRACKET",e[e.GRAVE_ACCENT=96]="GRAVE_ACCENT",e[e.LATIN_SMALL_A=97]="LATIN_SMALL_A",e[e.LATIN_SMALL_Z=122]="LATIN_SMALL_Z"})(H||(H={}));const oa={DASH_DASH:"--",CDATA_START:"[CDATA[",DOCTYPE:"doctype",SCRIPT:"script",PUBLIC:"public",SYSTEM:"system"};function m4(e){return e>=55296&&e<=57343}function pre(e){return e>=56320&&e<=57343}function hre(e,t){return(e-55296)*1024+9216+t}function g4(e){return e!==32&&e!==10&&e!==13&&e!==9&&e!==12&&e>=1&&e<=31||e>=127&&e<=159}function y4(e){return e>=64976&&e<=65007||fre.has(e)}var ve;(function(e){e.controlCharacterInInputStream="control-character-in-input-stream",e.noncharacterInInputStream="noncharacter-in-input-stream",e.surrogateInInputStream="surrogate-in-input-stream",e.nonVoidHtmlElementStartTagWithTrailingSolidus="non-void-html-element-start-tag-with-trailing-solidus",e.endTagWithAttributes="end-tag-with-attributes",e.endTagWithTrailingSolidus="end-tag-with-trailing-solidus",e.unexpectedSolidusInTag="unexpected-solidus-in-tag",e.unexpectedNullCharacter="unexpected-null-character",e.unexpectedQuestionMarkInsteadOfTagName="unexpected-question-mark-instead-of-tag-name",e.invalidFirstCharacterOfTagName="invalid-first-character-of-tag-name",e.unexpectedEqualsSignBeforeAttributeName="unexpected-equals-sign-before-attribute-name",e.missingEndTagName="missing-end-tag-name",e.unexpectedCharacterInAttributeName="unexpected-character-in-attribute-name",e.unknownNamedCharacterReference="unknown-named-character-reference",e.missingSemicolonAfterCharacterReference="missing-semicolon-after-character-reference",e.unexpectedCharacterAfterDoctypeSystemIdentifier="unexpected-character-after-doctype-system-identifier",e.unexpectedCharacterInUnquotedAttributeValue="unexpected-character-in-unquoted-attribute-value",e.eofBeforeTagName="eof-before-tag-name",e.eofInTag="eof-in-tag",e.missingAttributeValue="missing-attribute-value",e.missingWhitespaceBetweenAttributes="missing-whitespace-between-attributes",e.missingWhitespaceAfterDoctypePublicKeyword="missing-whitespace-after-doctype-public-keyword",e.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers="missing-whitespace-between-doctype-public-and-system-identifiers",e.missingWhitespaceAfterDoctypeSystemKeyword="missing-whitespace-after-doctype-system-keyword",e.missingQuoteBeforeDoctypePublicIdentifier="missing-quote-before-doctype-public-identifier",e.missingQuoteBeforeDoctypeSystemIdentifier="missing-quote-before-doctype-system-identifier",e.missingDoctypePublicIdentifier="missing-doctype-public-identifier",e.missingDoctypeSystemIdentifier="missing-doctype-system-identifier",e.abruptDoctypePublicIdentifier="abrupt-doctype-public-identifier",e.abruptDoctypeSystemIdentifier="abrupt-doctype-system-identifier",e.cdataInHtmlContent="cdata-in-html-content",e.incorrectlyOpenedComment="incorrectly-opened-comment",e.eofInScriptHtmlCommentLikeText="eof-in-script-html-comment-like-text",e.eofInDoctype="eof-in-doctype",e.nestedComment="nested-comment",e.abruptClosingOfEmptyComment="abrupt-closing-of-empty-comment",e.eofInComment="eof-in-comment",e.incorrectlyClosedComment="incorrectly-closed-comment",e.eofInCdata="eof-in-cdata",e.absenceOfDigitsInNumericCharacterReference="absence-of-digits-in-numeric-character-reference",e.nullCharacterReference="null-character-reference",e.surrogateCharacterReference="surrogate-character-reference",e.characterReferenceOutsideUnicodeRange="character-reference-outside-unicode-range",e.controlCharacterReference="control-character-reference",e.noncharacterCharacterReference="noncharacter-character-reference",e.missingWhitespaceBeforeDoctypeName="missing-whitespace-before-doctype-name",e.missingDoctypeName="missing-doctype-name",e.invalidCharacterSequenceAfterDoctypeName="invalid-character-sequence-after-doctype-name",e.duplicateAttribute="duplicate-attribute",e.nonConformingDoctype="non-conforming-doctype",e.missingDoctype="missing-doctype",e.misplacedDoctype="misplaced-doctype",e.endTagWithoutMatchingOpenElement="end-tag-without-matching-open-element",e.closingOfElementWithOpenChildElements="closing-of-element-with-open-child-elements",e.disallowedContentInNoscriptInHead="disallowed-content-in-noscript-in-head",e.openElementsLeftAfterEof="open-elements-left-after-eof",e.abandonedHeadElementChild="abandoned-head-element-child",e.misplacedStartTagForHeadElement="misplaced-start-tag-for-head-element",e.nestedNoscriptInHead="nested-noscript-in-head",e.eofInElementThatCanContainOnlyText="eof-in-element-that-can-contain-only-text"})(ve||(ve={}));const mre=65536;let gre=class{constructor(t){this.handler=t,this.html="",this.pos=-1,this.lastGapPos=-2,this.gapStack=[],this.skipNextNewLine=!1,this.lastChunkWritten=!1,this.endOfChunkHit=!1,this.bufferWaterline=mre,this.isEol=!1,this.lineStartPos=0,this.droppedBufferSize=0,this.line=1,this.lastErrOffset=-1}get col(){return this.pos-this.lineStartPos+ +(this.lastGapPos!==this.pos)}get offset(){return this.droppedBufferSize+this.pos}getError(t,n){const{line:r,col:a,offset:o}=this,s=a+n,c=o+n;return{code:t,startLine:r,endLine:r,startCol:s,endCol:s,startOffset:c,endOffset:c}}_err(t){this.handler.onParseError&&this.lastErrOffset!==this.offset&&(this.lastErrOffset=this.offset,this.handler.onParseError(this.getError(t,0)))}_addGap(){this.gapStack.push(this.lastGapPos),this.lastGapPos=this.pos}_processSurrogate(t){if(this.pos!==this.html.length-1){const n=this.html.charCodeAt(this.pos+1);if(pre(n))return this.pos++,this._addGap(),hre(t,n)}else if(!this.lastChunkWritten)return this.endOfChunkHit=!0,H.EOF;return this._err(ve.surrogateInInputStream),t}willDropParsedChunk(){return this.pos>this.bufferWaterline}dropParsedChunk(){this.willDropParsedChunk()&&(this.html=this.html.substring(this.pos),this.lineStartPos-=this.pos,this.droppedBufferSize+=this.pos,this.pos=0,this.lastGapPos=-2,this.gapStack.length=0)}write(t,n){this.html.length>0?this.html+=t:this.html=t,this.endOfChunkHit=!1,this.lastChunkWritten=n}insertHtmlAtCurrentPos(t){this.html=this.html.substring(0,this.pos+1)+t+this.html.substring(this.pos+1),this.endOfChunkHit=!1}startsWith(t,n){if(this.pos+t.length>this.html.length)return this.endOfChunkHit=!this.lastChunkWritten,!1;if(n)return this.html.startsWith(t,this.pos);for(let r=0;r<t.length;r++)if((this.html.charCodeAt(this.pos+r)|32)!==t.charCodeAt(r))return!1;return!0}peek(t){const n=this.pos+t;if(n>=this.html.length)return this.endOfChunkHit=!this.lastChunkWritten,H.EOF;const r=this.html.charCodeAt(n);return r===H.CARRIAGE_RETURN?H.LINE_FEED:r}advance(){if(this.pos++,this.isEol&&(this.isEol=!1,this.line++,this.lineStartPos=this.pos),this.pos>=this.html.length)return this.endOfChunkHit=!this.lastChunkWritten,H.EOF;let t=this.html.charCodeAt(this.pos);return t===H.CARRIAGE_RETURN?(this.isEol=!0,this.skipNextNewLine=!0,H.LINE_FEED):t===H.LINE_FEED&&(this.isEol=!0,this.skipNextNewLine)?(this.line--,this.skipNextNewLine=!1,this._addGap(),this.advance()):(this.skipNextNewLine=!1,m4(t)&&(t=this._processSurrogate(t)),this.handler.onParseError===null||t>31&&t<127||t===H.LINE_FEED||t===H.CARRIAGE_RETURN||t>159&&t<64976||this._checkForProblematicCharacters(t),t)}_checkForProblematicCharacters(t){g4(t)?this._err(ve.controlCharacterInInputStream):y4(t)&&this._err(ve.noncharacterInInputStream)}retreat(t){for(this.pos-=t;this.pos<this.lastGapPos;)this.lastGapPos=this.gapStack.pop(),this.pos--;this.isEol=!1}};var $t;(function(e){e[e.CHARACTER=0]="CHARACTER",e[e.NULL_CHARACTER=1]="NULL_CHARACTER",e[e.WHITESPACE_CHARACTER=2]="WHITESPACE_CHARACTER",e[e.START_TAG=3]="START_TAG",e[e.END_TAG=4]="END_TAG",e[e.COMMENT=5]="COMMENT",e[e.DOCTYPE=6]="DOCTYPE",e[e.EOF=7]="EOF",e[e.HIBERNATION=8]="HIBERNATION"})($t||($t={}));function v4(e,t){for(let n=e.attrs.length-1;n>=0;n--)if(e.attrs[n].name===t)return e.attrs[n].value;return null}const yre=new Map([[0,65533],[128,8364],[130,8218],[131,402],[132,8222],[133,8230],[134,8224],[135,8225],[136,710],[137,8240],[138,352],[139,8249],[140,338],[142,381],[145,8216],[146,8217],[147,8220],[148,8221],[149,8226],[150,8211],[151,8212],[152,732],[153,8482],[154,353],[155,8250],[156,339],[158,382],[159,376]]);function vre(e){var t;return e>=55296&&e<=57343||e>1114111?65533:(t=yre.get(e))!==null&&t!==void 0?t:e}var Sr;(function(e){e[e.NUM=35]="NUM",e[e.SEMI=59]="SEMI",e[e.EQUALS=61]="EQUALS",e[e.ZERO=48]="ZERO",e[e.NINE=57]="NINE",e[e.LOWER_A=97]="LOWER_A",e[e.LOWER_F=102]="LOWER_F",e[e.LOWER_X=120]="LOWER_X",e[e.LOWER_Z=122]="LOWER_Z",e[e.UPPER_A=65]="UPPER_A",e[e.UPPER_F=70]="UPPER_F",e[e.UPPER_Z=90]="UPPER_Z"})(Sr||(Sr={}));const bre=32;var Ss;(function(e){e[e.VALUE_LENGTH=49152]="VALUE_LENGTH",e[e.BRANCH_LENGTH=16256]="BRANCH_LENGTH",e[e.JUMP_TABLE=127]="JUMP_TABLE"})(Ss||(Ss={}));function XE(e){return e>=Sr.ZERO&&e<=Sr.NINE}function Ere(e){return e>=Sr.UPPER_A&&e<=Sr.UPPER_F||e>=Sr.LOWER_A&&e<=Sr.LOWER_F}function Tre(e){return e>=Sr.UPPER_A&&e<=Sr.UPPER_Z||e>=Sr.LOWER_A&&e<=Sr.LOWER_Z||XE(e)}function Sre(e){return e===Sr.EQUALS||Tre(e)}var Er;(function(e){e[e.EntityStart=0]="EntityStart",e[e.NumericStart=1]="NumericStart",e[e.NumericDecimal=2]="NumericDecimal",e[e.NumericHex=3]="NumericHex",e[e.NamedEntity=4]="NamedEntity"})(Er||(Er={}));var ki;(function(e){e[e.Legacy=0]="Legacy",e[e.Strict=1]="Strict",e[e.Attribute=2]="Attribute"})(ki||(ki={}));let _re=class{constructor(t,n,r){this.decodeTree=t,this.emitCodePoint=n,this.errors=r,this.state=Er.EntityStart,this.consumed=1,this.result=0,this.treeIndex=0,this.excess=1,this.decodeMode=ki.Strict}startEntity(t){this.decodeMode=t,this.state=Er.EntityStart,this.result=0,this.treeIndex=0,this.excess=1,this.consumed=1}write(t,n){switch(this.state){case Er.EntityStart:return t.charCodeAt(n)===Sr.NUM?(this.state=Er.NumericStart,this.consumed+=1,this.stateNumericStart(t,n+1)):(this.state=Er.NamedEntity,this.stateNamedEntity(t,n));case Er.NumericStart:return this.stateNumericStart(t,n);case Er.NumericDecimal:return this.stateNumericDecimal(t,n);case Er.NumericHex:return this.stateNumericHex(t,n);case Er.NamedEntity:return this.stateNamedEntity(t,n)}}stateNumericStart(t,n){return n>=t.length?-1:(t.charCodeAt(n)|bre)===Sr.LOWER_X?(this.state=Er.NumericHex,this.consumed+=1,this.stateNumericHex(t,n+1)):(this.state=Er.NumericDecimal,this.stateNumericDecimal(t,n))}addToNumericResult(t,n,r,a){if(n!==r){const o=r-n;this.result=this.result*Math.pow(a,o)+Number.parseInt(t.substr(n,o),a),this.consumed+=o}}stateNumericHex(t,n){const r=n;for(;n<t.length;){const a=t.charCodeAt(n);if(XE(a)||Ere(a))n+=1;else return this.addToNumericResult(t,r,n,16),this.emitNumericEntity(a,3)}return this.addToNumericResult(t,r,n,16),-1}stateNumericDecimal(t,n){const r=n;for(;n<t.length;){const a=t.charCodeAt(n);if(XE(a))n+=1;else return this.addToNumericResult(t,r,n,10),this.emitNumericEntity(a,2)}return this.addToNumericResult(t,r,n,10),-1}emitNumericEntity(t,n){var r;if(this.consumed<=n)return(r=this.errors)===null||r===void 0||r.absenceOfDigitsInNumericCharacterReference(this.consumed),0;if(t===Sr.SEMI)this.consumed+=1;else if(this.decodeMode===ki.Strict)return 0;return this.emitCodePoint(vre(this.result),this.consumed),this.errors&&(t!==Sr.SEMI&&this.errors.missingSemicolonAfterCharacterReference(),this.errors.validateNumericCharacterReference(this.result)),this.consumed}stateNamedEntity(t,n){const{decodeTree:r}=this;let a=r[this.treeIndex],o=(a&Ss.VALUE_LENGTH)>>14;for(;n<t.length;n++,this.excess++){const s=t.charCodeAt(n);if(this.treeIndex=Cre(r,a,this.treeIndex+Math.max(1,o),s),this.treeIndex<0)return this.result===0||this.decodeMode===ki.Attribute&&(o===0||Sre(s))?0:this.emitNotTerminatedNamedEntity();if(a=r[this.treeIndex],o=(a&Ss.VALUE_LENGTH)>>14,o!==0){if(s===Sr.SEMI)return this.emitNamedEntityData(this.treeIndex,o,this.consumed+this.excess);this.decodeMode!==ki.Strict&&(this.result=this.treeIndex,this.consumed+=this.excess,this.excess=0)}}return-1}emitNotTerminatedNamedEntity(){var t;const{result:n,decodeTree:r}=this,a=(r[n]&Ss.VALUE_LENGTH)>>14;return this.emitNamedEntityData(n,a,this.consumed),(t=this.errors)===null||t===void 0||t.missingSemicolonAfterCharacterReference(),this.consumed}emitNamedEntityData(t,n,r){const{decodeTree:a}=this;return this.emitCodePoint(n===1?a[t]&~Ss.VALUE_LENGTH:a[t+1],r),n===3&&this.emitCodePoint(a[t+2],r),r}end(){var t;switch(this.state){case Er.NamedEntity:return this.result!==0&&(this.decodeMode!==ki.Attribute||this.result===this.treeIndex)?this.emitNotTerminatedNamedEntity():0;case Er.NumericDecimal:return this.emitNumericEntity(0,2);case Er.NumericHex:return this.emitNumericEntity(0,3);case Er.NumericStart:return(t=this.errors)===null||t===void 0||t.absenceOfDigitsInNumericCharacterReference(this.consumed),0;case Er.EntityStart:return 0}}};function Cre(e,t,n,r){const a=(t&Ss.BRANCH_LENGTH)>>7,o=t&Ss.JUMP_TABLE;if(a===0)return o!==0&&r===o?n:-1;if(o){const u=r-o;return u<0||u>=a?-1:e[n+u]-1}let s=n,c=s+a-1;for(;s<=c;){const u=s+c>>>1,d=e[u];if(d<r)s=u+1;else if(d>r)c=u-1;else return e[u+a]}return-1}var Re;(function(e){e.HTML="http://www.w3.org/1999/xhtml",e.MATHML="http://www.w3.org/1998/Math/MathML",e.SVG="http://www.w3.org/2000/svg",e.XLINK="http://www.w3.org/1999/xlink",e.XML="http://www.w3.org/XML/1998/namespace",e.XMLNS="http://www.w3.org/2000/xmlns/"})(Re||(Re={}));var Al;(function(e){e.TYPE="type",e.ACTION="action",e.ENCODING="encoding",e.PROMPT="prompt",e.NAME="name",e.COLOR="color",e.FACE="face",e.SIZE="size"})(Al||(Al={}));var no;(function(e){e.NO_QUIRKS="no-quirks",e.QUIRKS="quirks",e.LIMITED_QUIRKS="limited-quirks"})(no||(no={}));var le;(function(e){e.A="a",e.ADDRESS="address",e.ANNOTATION_XML="annotation-xml",e.APPLET="applet",e.AREA="area",e.ARTICLE="article",e.ASIDE="aside",e.B="b",e.BASE="base",e.BASEFONT="basefont",e.BGSOUND="bgsound",e.BIG="big",e.BLOCKQUOTE="blockquote",e.BODY="body",e.BR="br",e.BUTTON="button",e.CAPTION="caption",e.CENTER="center",e.CODE="code",e.COL="col",e.COLGROUP="colgroup",e.DD="dd",e.DESC="desc",e.DETAILS="details",e.DIALOG="dialog",e.DIR="dir",e.DIV="div",e.DL="dl",e.DT="dt",e.EM="em",e.EMBED="embed",e.FIELDSET="fieldset",e.FIGCAPTION="figcaption",e.FIGURE="figure",e.FONT="font",e.FOOTER="footer",e.FOREIGN_OBJECT="foreignObject",e.FORM="form",e.FRAME="frame",e.FRAMESET="frameset",e.H1="h1",e.H2="h2",e.H3="h3",e.H4="h4",e.H5="h5",e.H6="h6",e.HEAD="head",e.HEADER="header",e.HGROUP="hgroup",e.HR="hr",e.HTML="html",e.I="i",e.IMG="img",e.IMAGE="image",e.INPUT="input",e.IFRAME="iframe",e.KEYGEN="keygen",e.LABEL="label",e.LI="li",e.LINK="link",e.LISTING="listing",e.MAIN="main",e.MALIGNMARK="malignmark",e.MARQUEE="marquee",e.MATH="math",e.MENU="menu",e.META="meta",e.MGLYPH="mglyph",e.MI="mi",e.MO="mo",e.MN="mn",e.MS="ms",e.MTEXT="mtext",e.NAV="nav",e.NOBR="nobr",e.NOFRAMES="noframes",e.NOEMBED="noembed",e.NOSCRIPT="noscript",e.OBJECT="object",e.OL="ol",e.OPTGROUP="optgroup",e.OPTION="option",e.P="p",e.PARAM="param",e.PLAINTEXT="plaintext",e.PRE="pre",e.RB="rb",e.RP="rp",e.RT="rt",e.RTC="rtc",e.RUBY="ruby",e.S="s",e.SCRIPT="script",e.SEARCH="search",e.SECTION="section",e.SELECT="select",e.SOURCE="source",e.SMALL="small",e.SPAN="span",e.STRIKE="strike",e.STRONG="strong",e.STYLE="style",e.SUB="sub",e.SUMMARY="summary",e.SUP="sup",e.TABLE="table",e.TBODY="tbody",e.TEMPLATE="template",e.TEXTAREA="textarea",e.TFOOT="tfoot",e.TD="td",e.TH="th",e.THEAD="thead",e.TITLE="title",e.TR="tr",e.TRACK="track",e.TT="tt",e.U="u",e.UL="ul",e.SVG="svg",e.VAR="var",e.WBR="wbr",e.XMP="xmp"})(le||(le={}));var C;(function(e){e[e.UNKNOWN=0]="UNKNOWN",e[e.A=1]="A",e[e.ADDRESS=2]="ADDRESS",e[e.ANNOTATION_XML=3]="ANNOTATION_XML",e[e.APPLET=4]="APPLET",e[e.AREA=5]="AREA",e[e.ARTICLE=6]="ARTICLE",e[e.ASIDE=7]="ASIDE",e[e.B=8]="B",e[e.BASE=9]="BASE",e[e.BASEFONT=10]="BASEFONT",e[e.BGSOUND=11]="BGSOUND",e[e.BIG=12]="BIG",e[e.BLOCKQUOTE=13]="BLOCKQUOTE",e[e.BODY=14]="BODY",e[e.BR=15]="BR",e[e.BUTTON=16]="BUTTON",e[e.CAPTION=17]="CAPTION",e[e.CENTER=18]="CENTER",e[e.CODE=19]="CODE",e[e.COL=20]="COL",e[e.COLGROUP=21]="COLGROUP",e[e.DD=22]="DD",e[e.DESC=23]="DESC",e[e.DETAILS=24]="DETAILS",e[e.DIALOG=25]="DIALOG",e[e.DIR=26]="DIR",e[e.DIV=27]="DIV",e[e.DL=28]="DL",e[e.DT=29]="DT",e[e.EM=30]="EM",e[e.EMBED=31]="EMBED",e[e.FIELDSET=32]="FIELDSET",e[e.FIGCAPTION=33]="FIGCAPTION",e[e.FIGURE=34]="FIGURE",e[e.FONT=35]="FONT",e[e.FOOTER=36]="FOOTER",e[e.FOREIGN_OBJECT=37]="FOREIGN_OBJECT",e[e.FORM=38]="FORM",e[e.FRAME=39]="FRAME",e[e.FRAMESET=40]="FRAMESET",e[e.H1=41]="H1",e[e.H2=42]="H2",e[e.H3=43]="H3",e[e.H4=44]="H4",e[e.H5=45]="H5",e[e.H6=46]="H6",e[e.HEAD=47]="HEAD",e[e.HEADER=48]="HEADER",e[e.HGROUP=49]="HGROUP",e[e.HR=50]="HR",e[e.HTML=51]="HTML",e[e.I=52]="I",e[e.IMG=53]="IMG",e[e.IMAGE=54]="IMAGE",e[e.INPUT=55]="INPUT",e[e.IFRAME=56]="IFRAME",e[e.KEYGEN=57]="KEYGEN",e[e.LABEL=58]="LABEL",e[e.LI=59]="LI",e[e.LINK=60]="LINK",e[e.LISTING=61]="LISTING",e[e.MAIN=62]="MAIN",e[e.MALIGNMARK=63]="MALIGNMARK",e[e.MARQUEE=64]="MARQUEE",e[e.MATH=65]="MATH",e[e.MENU=66]="MENU",e[e.META=67]="META",e[e.MGLYPH=68]="MGLYPH",e[e.MI=69]="MI",e[e.MO=70]="MO",e[e.MN=71]="MN",e[e.MS=72]="MS",e[e.MTEXT=73]="MTEXT",e[e.NAV=74]="NAV",e[e.NOBR=75]="NOBR",e[e.NOFRAMES=76]="NOFRAMES",e[e.NOEMBED=77]="NOEMBED",e[e.NOSCRIPT=78]="NOSCRIPT",e[e.OBJECT=79]="OBJECT",e[e.OL=80]="OL",e[e.OPTGROUP=81]="OPTGROUP",e[e.OPTION=82]="OPTION",e[e.P=83]="P",e[e.PARAM=84]="PARAM",e[e.PLAINTEXT=85]="PLAINTEXT",e[e.PRE=86]="PRE",e[e.RB=87]="RB",e[e.RP=88]="RP",e[e.RT=89]="RT",e[e.RTC=90]="RTC",e[e.RUBY=91]="RUBY",e[e.S=92]="S",e[e.SCRIPT=93]="SCRIPT",e[e.SEARCH=94]="SEARCH",e[e.SECTION=95]="SECTION",e[e.SELECT=96]="SELECT",e[e.SOURCE=97]="SOURCE",e[e.SMALL=98]="SMALL",e[e.SPAN=99]="SPAN",e[e.STRIKE=100]="STRIKE",e[e.STRONG=101]="STRONG",e[e.STYLE=102]="STYLE",e[e.SUB=103]="SUB",e[e.SUMMARY=104]="SUMMARY",e[e.SUP=105]="SUP",e[e.TABLE=106]="TABLE",e[e.TBODY=107]="TBODY",e[e.TEMPLATE=108]="TEMPLATE",e[e.TEXTAREA=109]="TEXTAREA",e[e.TFOOT=110]="TFOOT",e[e.TD=111]="TD",e[e.TH=112]="TH",e[e.THEAD=113]="THEAD",e[e.TITLE=114]="TITLE",e[e.TR=115]="TR",e[e.TRACK=116]="TRACK",e[e.TT=117]="TT",e[e.U=118]="U",e[e.UL=119]="UL",e[e.SVG=120]="SVG",e[e.VAR=121]="VAR",e[e.WBR=122]="WBR",e[e.XMP=123]="XMP"})(C||(C={}));const Are=new Map([[le.A,C.A],[le.ADDRESS,C.ADDRESS],[le.ANNOTATION_XML,C.ANNOTATION_XML],[le.APPLET,C.APPLET],[le.AREA,C.AREA],[le.ARTICLE,C.ARTICLE],[le.ASIDE,C.ASIDE],[le.B,C.B],[le.BASE,C.BASE],[le.BASEFONT,C.BASEFONT],[le.BGSOUND,C.BGSOUND],[le.BIG,C.BIG],[le.BLOCKQUOTE,C.BLOCKQUOTE],[le.BODY,C.BODY],[le.BR,C.BR],[le.BUTTON,C.BUTTON],[le.CAPTION,C.CAPTION],[le.CENTER,C.CENTER],[le.CODE,C.CODE],[le.COL,C.COL],[le.COLGROUP,C.COLGROUP],[le.DD,C.DD],[le.DESC,C.DESC],[le.DETAILS,C.DETAILS],[le.DIALOG,C.DIALOG],[le.DIR,C.DIR],[le.DIV,C.DIV],[le.DL,C.DL],[le.DT,C.DT],[le.EM,C.EM],[le.EMBED,C.EMBED],[le.FIELDSET,C.FIELDSET],[le.FIGCAPTION,C.FIGCAPTION],[le.FIGURE,C.FIGURE],[le.FONT,C.FONT],[le.FOOTER,C.FOOTER],[le.FOREIGN_OBJECT,C.FOREIGN_OBJECT],[le.FORM,C.FORM],[le.FRAME,C.FRAME],[le.FRAMESET,C.FRAMESET],[le.H1,C.H1],[le.H2,C.H2],[le.H3,C.H3],[le.H4,C.H4],[le.H5,C.H5],[le.H6,C.H6],[le.HEAD,C.HEAD],[le.HEADER,C.HEADER],[le.HGROUP,C.HGROUP],[le.HR,C.HR],[le.HTML,C.HTML],[le.I,C.I],[le.IMG,C.IMG],[le.IMAGE,C.IMAGE],[le.INPUT,C.INPUT],[le.IFRAME,C.IFRAME],[le.KEYGEN,C.KEYGEN],[le.LABEL,C.LABEL],[le.LI,C.LI],[le.LINK,C.LINK],[le.LISTING,C.LISTING],[le.MAIN,C.MAIN],[le.MALIGNMARK,C.MALIGNMARK],[le.MARQUEE,C.MARQUEE],[le.MATH,C.MATH],[le.MENU,C.MENU],[le.META,C.META],[le.MGLYPH,C.MGLYPH],[le.MI,C.MI],[le.MO,C.MO],[le.MN,C.MN],[le.MS,C.MS],[le.MTEXT,C.MTEXT],[le.NAV,C.NAV],[le.NOBR,C.NOBR],[le.NOFRAMES,C.NOFRAMES],[le.NOEMBED,C.NOEMBED],[le.NOSCRIPT,C.NOSCRIPT],[le.OBJECT,C.OBJECT],[le.OL,C.OL],[le.OPTGROUP,C.OPTGROUP],[le.OPTION,C.OPTION],[le.P,C.P],[le.PARAM,C.PARAM],[le.PLAINTEXT,C.PLAINTEXT],[le.PRE,C.PRE],[le.RB,C.RB],[le.RP,C.RP],[le.RT,C.RT],[le.RTC,C.RTC],[le.RUBY,C.RUBY],[le.S,C.S],[le.SCRIPT,C.SCRIPT],[le.SEARCH,C.SEARCH],[le.SECTION,C.SECTION],[le.SELECT,C.SELECT],[le.SOURCE,C.SOURCE],[le.SMALL,C.SMALL],[le.SPAN,C.SPAN],[le.STRIKE,C.STRIKE],[le.STRONG,C.STRONG],[le.STYLE,C.STYLE],[le.SUB,C.SUB],[le.SUMMARY,C.SUMMARY],[le.SUP,C.SUP],[le.TABLE,C.TABLE],[le.TBODY,C.TBODY],[le.TEMPLATE,C.TEMPLATE],[le.TEXTAREA,C.TEXTAREA],[le.TFOOT,C.TFOOT],[le.TD,C.TD],[le.TH,C.TH],[le.THEAD,C.THEAD],[le.TITLE,C.TITLE],[le.TR,C.TR],[le.TRACK,C.TRACK],[le.TT,C.TT],[le.U,C.U],[le.UL,C.UL],[le.SVG,C.SVG],[le.VAR,C.VAR],[le.WBR,C.WBR],[le.XMP,C.XMP]]);function wu(e){var t;return(t=Are.get(e))!==null&&t!==void 0?t:C.UNKNOWN}const Le=C,xre={[Re.HTML]:new Set([Le.ADDRESS,Le.APPLET,Le.AREA,Le.ARTICLE,Le.ASIDE,Le.BASE,Le.BASEFONT,Le.BGSOUND,Le.BLOCKQUOTE,Le.BODY,Le.BR,Le.BUTTON,Le.CAPTION,Le.CENTER,Le.COL,Le.COLGROUP,Le.DD,Le.DETAILS,Le.DIR,Le.DIV,Le.DL,Le.DT,Le.EMBED,Le.FIELDSET,Le.FIGCAPTION,Le.FIGURE,Le.FOOTER,Le.FORM,Le.FRAME,Le.FRAMESET,Le.H1,Le.H2,Le.H3,Le.H4,Le.H5,Le.H6,Le.HEAD,Le.HEADER,Le.HGROUP,Le.HR,Le.HTML,Le.IFRAME,Le.IMG,Le.INPUT,Le.LI,Le.LINK,Le.LISTING,Le.MAIN,Le.MARQUEE,Le.MENU,Le.META,Le.NAV,Le.NOEMBED,Le.NOFRAMES,Le.NOSCRIPT,Le.OBJECT,Le.OL,Le.P,Le.PARAM,Le.PLAINTEXT,Le.PRE,Le.SCRIPT,Le.SECTION,Le.SELECT,Le.SOURCE,Le.STYLE,Le.SUMMARY,Le.TABLE,Le.TBODY,Le.TD,Le.TEMPLATE,Le.TEXTAREA,Le.TFOOT,Le.TH,Le.THEAD,Le.TITLE,Le.TR,Le.TRACK,Le.UL,Le.WBR,Le.XMP]),[Re.MATHML]:new Set([Le.MI,Le.MO,Le.MN,Le.MS,Le.MTEXT,Le.ANNOTATION_XML]),[Re.SVG]:new Set([Le.TITLE,Le.FOREIGN_OBJECT,Le.DESC]),[Re.XLINK]:new Set,[Re.XML]:new Set,[Re.XMLNS]:new Set},ZE=new Set([Le.H1,Le.H2,Le.H3,Le.H4,Le.H5,Le.H6]);le.STYLE,le.SCRIPT,le.XMP,le.IFRAME,le.NOEMBED,le.NOFRAMES,le.PLAINTEXT;const wre=new Uint16Array('ᵁ<Õıʊҝջאٵ۞ޢߖࠏ੊ઑඡ๭༉༦჊ረዡᐕᒝᓃᓟᔥ\0\0\0\0\0\0ᕫᛍᦍᰒᷝ὾⁠↰⊍⏀⏻⑂⠤⤒ⴈ⹈⿎〖㊺㘹㞬㣾㨨㩱㫠㬮ࠀEMabcfglmnoprstu\\bfms„‹•˜¦³¹ÈÏlig耻Æ䃆P耻&䀦cute耻Á䃁reve;䄂Āiyx}rc耻Â䃂;䐐r;쀀𝔄rave耻À䃀pha;䎑acr;䄀d;橓Āgp¡on;䄄f;쀀𝔸plyFunction;恡ing耻Å䃅Ācs¾Ãr;쀀𝒜ign;扔ilde耻Ã䃃ml耻Ä䃄ЀaceforsuåûþėĜĢħĪĀcrêòkslash;或Ŷöø;櫧ed;挆y;䐑ƀcrtąċĔause;戵noullis;愬a;䎒r;쀀𝔅pf;쀀𝔹eve;䋘còēmpeq;扎܀HOacdefhilorsuōőŖƀƞƢƵƷƺǜȕɳɸɾcy;䐧PY耻©䂩ƀcpyŝŢźute;䄆Ā;iŧŨ拒talDifferentialD;慅leys;愭ȀaeioƉƎƔƘron;䄌dil耻Ç䃇rc;䄈nint;戰ot;䄊ĀdnƧƭilla;䂸terDot;䂷òſi;䎧rcleȀDMPTLJNjǑǖot;抙inus;抖lus;投imes;抗oĀcsǢǸkwiseContourIntegral;戲eCurlyĀDQȃȏoubleQuote;思uote;怙ȀlnpuȞȨɇɕonĀ;eȥȦ户;橴ƀgitȯȶȺruent;扡nt;戯ourIntegral;戮ĀfrɌɎ;愂oduct;成nterClockwiseContourIntegral;戳oss;樯cr;쀀𝒞pĀ;Cʄʅ拓ap;才րDJSZacefiosʠʬʰʴʸˋ˗ˡ˦̳ҍĀ;oŹʥtrahd;椑cy;䐂cy;䐅cy;䐏ƀgrsʿ˄ˇger;怡r;憡hv;櫤Āayː˕ron;䄎;䐔lĀ;t˝˞戇a;䎔r;쀀𝔇Āaf˫̧Ācm˰̢riticalȀADGT̖̜̀̆cute;䂴oŴ̋̍;䋙bleAcute;䋝rave;䁠ilde;䋜ond;拄ferentialD;慆Ѱ̽\0\0\0͔͂\0Ѕf;쀀𝔻ƀ;DE͈͉͍䂨ot;惜qual;扐blèCDLRUVͣͲ΂ϏϢϸontourIntegraìȹoɴ͹\0\0ͻ»͉nArrow;懓Āeo·ΤftƀARTΐΖΡrrow;懐ightArrow;懔eåˊngĀLRΫτeftĀARγιrrow;柸ightArrow;柺ightArrow;柹ightĀATϘϞrrow;懒ee;抨pɁϩ\0\0ϯrrow;懑ownArrow;懕erticalBar;戥ǹABLRTaВЪаўѿͼrrowƀ;BUНОТ憓ar;椓pArrow;懵reve;䌑eft˒к\0ц\0ѐightVector;楐eeVector;楞ectorĀ;Bљњ憽ar;楖ightǔѧ\0ѱeeVector;楟ectorĀ;BѺѻ懁ar;楗eeĀ;A҆҇护rrow;憧ĀctҒҗr;쀀𝒟rok;䄐ࠀNTacdfglmopqstuxҽӀӄӋӞӢӧӮӵԡԯԶՒ՝ՠեG;䅊H耻Ð䃐cute耻É䃉ƀaiyӒӗӜron;䄚rc耻Ê䃊;䐭ot;䄖r;쀀𝔈rave耻È䃈ement;戈ĀapӺӾcr;䄒tyɓԆ\0\0ԒmallSquare;旻erySmallSquare;斫ĀgpԦԪon;䄘f;쀀𝔼silon;䎕uĀaiԼՉlĀ;TՂՃ橵ilde;扂librium;懌Āci՗՚r;愰m;橳a;䎗ml耻Ë䃋Āipժկsts;戃onentialE;慇ʀcfiosօֈ֍ֲ׌y;䐤r;쀀𝔉lledɓ֗\0\0֣mallSquare;旼erySmallSquare;斪Ͱֺ\0ֿ\0\0ׄf;쀀𝔽All;戀riertrf;愱cò׋؀JTabcdfgorstר׬ׯ׺؀ؒؖ؛؝أ٬ٲcy;䐃耻>䀾mmaĀ;d׷׸䎓;䏜reve;䄞ƀeiy؇،ؐdil;䄢rc;䄜;䐓ot;䄠r;쀀𝔊;拙pf;쀀𝔾eater̀EFGLSTصلَٖٛ٦qualĀ;Lؾؿ扥ess;招ullEqual;执reater;檢ess;扷lantEqual;橾ilde;扳cr;쀀𝒢;扫ЀAacfiosuڅڋږڛڞڪھۊRDcy;䐪Āctڐڔek;䋇;䁞irc;䄤r;愌lbertSpace;愋ǰگ\0ڲf;愍izontalLine;攀Āctۃۅòکrok;䄦mpńېۘownHumðįqual;扏܀EJOacdfgmnostuۺ۾܃܇܎ܚܞܡܨ݄ݸދޏޕcy;䐕lig;䄲cy;䐁cute耻Í䃍Āiyܓܘrc耻Î䃎;䐘ot;䄰r;愑rave耻Ì䃌ƀ;apܠܯܿĀcgܴܷr;䄪inaryI;慈lieóϝǴ݉\0ݢĀ;eݍݎ戬Āgrݓݘral;戫section;拂isibleĀCTݬݲomma;恣imes;恢ƀgptݿރވon;䄮f;쀀𝕀a;䎙cr;愐ilde;䄨ǫޚ\0ޞcy;䐆l耻Ï䃏ʀcfosuެ޷޼߂ߐĀiyޱ޵rc;䄴;䐙r;쀀𝔍pf;쀀𝕁ǣ߇\0ߌr;쀀𝒥rcy;䐈kcy;䐄΀HJacfosߤߨ߽߬߱ࠂࠈcy;䐥cy;䐌ppa;䎚Āey߶߻dil;䄶;䐚r;쀀𝔎pf;쀀𝕂cr;쀀𝒦րJTaceflmostࠥࠩࠬࡐࡣ঳সে্਷ੇcy;䐉耻<䀼ʀcmnpr࠷࠼ࡁࡄࡍute;䄹bda;䎛g;柪lacetrf;愒r;憞ƀaeyࡗ࡜ࡡron;䄽dil;䄻;䐛Āfsࡨ॰tԀACDFRTUVarࡾࢩࢱࣦ࣠ࣼयज़ΐ४Ānrࢃ࢏gleBracket;柨rowƀ;BR࢙࢚࢞憐ar;懤ightArrow;懆eiling;挈oǵࢷ\0ࣃbleBracket;柦nǔࣈ\0࣒eeVector;楡ectorĀ;Bࣛࣜ懃ar;楙loor;挊ightĀAV࣯ࣵrrow;憔ector;楎Āerँगeƀ;AVउऊऐ抣rrow;憤ector;楚iangleƀ;BEतथऩ抲ar;槏qual;抴pƀDTVषूौownVector;楑eeVector;楠ectorĀ;Bॖॗ憿ar;楘ectorĀ;B॥०憼ar;楒ightáΜs̀EFGLSTॾঋকঝঢভqualGreater;拚ullEqual;扦reater;扶ess;檡lantEqual;橽ilde;扲r;쀀𝔏Ā;eঽা拘ftarrow;懚idot;䄿ƀnpw৔ਖਛgȀLRlr৞৷ਂਐeftĀAR০৬rrow;柵ightArrow;柷ightArrow;柶eftĀarγਊightáοightáϊf;쀀𝕃erĀLRਢਬeftArrow;憙ightArrow;憘ƀchtਾੀੂòࡌ;憰rok;䅁;扪Ѐacefiosuਗ਼੝੠੷੼અઋ઎p;椅y;䐜Ādl੥੯iumSpace;恟lintrf;愳r;쀀𝔐nusPlus;戓pf;쀀𝕄cò੶;䎜ҀJacefostuણધભીଔଙඑ඗ඞcy;䐊cute;䅃ƀaey઴હાron;䅇dil;䅅;䐝ƀgswે૰଎ativeƀMTV૓૟૨ediumSpace;怋hiĀcn૦૘ë૙eryThiî૙tedĀGL૸ଆreaterGreateòٳessLesóੈLine;䀊r;쀀𝔑ȀBnptଢନଷ଺reak;恠BreakingSpace;䂠f;愕ڀ;CDEGHLNPRSTV୕ୖ୪୼஡௫ఄ౞಄ದ೘ൡඅ櫬Āou୛୤ngruent;扢pCap;扭oubleVerticalBar;戦ƀlqxஃஊ஛ement;戉ualĀ;Tஒஓ扠ilde;쀀≂̸ists;戄reater΀;EFGLSTஶஷ஽௉௓௘௥扯qual;扱ullEqual;쀀≧̸reater;쀀≫̸ess;批lantEqual;쀀⩾̸ilde;扵umpń௲௽ownHump;쀀≎̸qual;쀀≏̸eĀfsఊధtTriangleƀ;BEచఛడ拪ar;쀀⧏̸qual;括s̀;EGLSTవశ఼ౄోౘ扮qual;扰reater;扸ess;쀀≪̸lantEqual;쀀⩽̸ilde;扴estedĀGL౨౹reaterGreater;쀀⪢̸essLess;쀀⪡̸recedesƀ;ESಒಓಛ技qual;쀀⪯̸lantEqual;拠ĀeiಫಹverseElement;戌ghtTriangleƀ;BEೋೌ೒拫ar;쀀⧐̸qual;拭ĀquೝഌuareSuĀbp೨೹setĀ;E೰ೳ쀀⊏̸qual;拢ersetĀ;Eഃആ쀀⊐̸qual;拣ƀbcpഓതൎsetĀ;Eഛഞ쀀⊂⃒qual;抈ceedsȀ;ESTലള഻െ抁qual;쀀⪰̸lantEqual;拡ilde;쀀≿̸ersetĀ;E൘൛쀀⊃⃒qual;抉ildeȀ;EFT൮൯൵ൿ扁qual;扄ullEqual;扇ilde;扉erticalBar;戤cr;쀀𝒩ilde耻Ñ䃑;䎝܀Eacdfgmoprstuvලෂ෉෕ෛ෠෧෼ขภยา฿ไlig;䅒cute耻Ó䃓Āiy෎ීrc耻Ô䃔;䐞blac;䅐r;쀀𝔒rave耻Ò䃒ƀaei෮ෲ෶cr;䅌ga;䎩cron;䎟pf;쀀𝕆enCurlyĀDQฎบoubleQuote;怜uote;怘;橔Āclวฬr;쀀𝒪ash耻Ø䃘iŬื฼de耻Õ䃕es;樷ml耻Ö䃖erĀBP๋๠Āar๐๓r;怾acĀek๚๜;揞et;掴arenthesis;揜Ҁacfhilors๿ງຊຏຒດຝະ໼rtialD;戂y;䐟r;쀀𝔓i;䎦;䎠usMinus;䂱Āipຢອncareplanåڝf;愙Ȁ;eio຺ູ໠໤檻cedesȀ;EST່້໏໚扺qual;檯lantEqual;扼ilde;找me;怳Ādp໩໮uct;戏ortionĀ;aȥ໹l;戝Āci༁༆r;쀀𝒫;䎨ȀUfos༑༖༛༟OT耻"䀢r;쀀𝔔pf;愚cr;쀀𝒬؀BEacefhiorsu༾གྷཇའཱིྦྷྪྭ႖ႩႴႾarr;椐G耻®䂮ƀcnrཎནབute;䅔g;柫rĀ;tཛྷཝ憠l;椖ƀaeyཧཬཱron;䅘dil;䅖;䐠Ā;vླྀཹ愜erseĀEUྂྙĀlq྇ྎement;戋uilibrium;懋pEquilibrium;楯r»ཹo;䎡ghtЀACDFTUVa࿁࿫࿳ဢဨၛႇϘĀnr࿆࿒gleBracket;柩rowƀ;BL࿜࿝࿡憒ar;懥eftArrow;懄eiling;按oǵ࿹\0စbleBracket;柧nǔည\0နeeVector;楝ectorĀ;Bဝသ懂ar;楕loor;挋Āerိ၃eƀ;AVဵံြ抢rrow;憦ector;楛iangleƀ;BEၐၑၕ抳ar;槐qual;抵pƀDTVၣၮၸownVector;楏eeVector;楜ectorĀ;Bႂႃ憾ar;楔ectorĀ;B႑႒懀ar;楓Āpuႛ႞f;愝ndImplies;楰ightarrow;懛ĀchႹႼr;愛;憱leDelayed;槴ڀHOacfhimoqstuფჱჷჽᄙᄞᅑᅖᅡᅧᆵᆻᆿĀCcჩხHcy;䐩y;䐨FTcy;䐬cute;䅚ʀ;aeiyᄈᄉᄎᄓᄗ檼ron;䅠dil;䅞rc;䅜;䐡r;쀀𝔖ortȀDLRUᄪᄴᄾᅉownArrow»ОeftArrow»࢚ightArrow»࿝pArrow;憑gma;䎣allCircle;战pf;쀀𝕊ɲᅭ\0\0ᅰt;戚areȀ;ISUᅻᅼᆉᆯ斡ntersection;抓uĀbpᆏᆞsetĀ;Eᆗᆘ抏qual;抑ersetĀ;Eᆨᆩ抐qual;抒nion;抔cr;쀀𝒮ar;拆ȀbcmpᇈᇛሉላĀ;sᇍᇎ拐etĀ;Eᇍᇕqual;抆ĀchᇠህeedsȀ;ESTᇭᇮᇴᇿ扻qual;檰lantEqual;扽ilde;承Tháྌ;我ƀ;esሒሓሣ拑rsetĀ;Eሜም抃qual;抇et»ሓրHRSacfhiorsሾቄ቉ቕ቞ቱቶኟዂወዑORN耻Þ䃞ADE;愢ĀHc቎ቒcy;䐋y;䐦Ābuቚቜ;䀉;䎤ƀaeyብቪቯron;䅤dil;䅢;䐢r;쀀𝔗Āeiቻ኉Dzኀ\0ኇefore;戴a;䎘Ācn኎ኘkSpace;쀀  Space;怉ldeȀ;EFTካኬኲኼ戼qual;扃ullEqual;扅ilde;扈pf;쀀𝕋ipleDot;惛Āctዖዛr;쀀𝒯rok;䅦ૡዷጎጚጦ\0ጬጱ\0\0\0\0\0ጸጽ፷ᎅ\0᏿ᐄᐊᐐĀcrዻጁute耻Ú䃚rĀ;oጇገ憟cir;楉rǣጓ\0጖y;䐎ve;䅬Āiyጞጣrc耻Û䃛;䐣blac;䅰r;쀀𝔘rave耻Ù䃙acr;䅪Ādiፁ፩erĀBPፈ፝Āarፍፐr;䁟acĀekፗፙ;揟et;掵arenthesis;揝onĀ;P፰፱拃lus;抎Āgp፻፿on;䅲f;쀀𝕌ЀADETadps᎕ᎮᎸᏄϨᏒᏗᏳrrowƀ;BDᅐᎠᎤar;椒ownArrow;懅ownArrow;憕quilibrium;楮eeĀ;AᏋᏌ报rrow;憥ownáϳerĀLRᏞᏨeftArrow;憖ightArrow;憗iĀ;lᏹᏺ䏒on;䎥ing;䅮cr;쀀𝒰ilde;䅨ml耻Ü䃜ҀDbcdefosvᐧᐬᐰᐳᐾᒅᒊᒐᒖash;披ar;櫫y;䐒ashĀ;lᐻᐼ抩;櫦Āerᑃᑅ;拁ƀbtyᑌᑐᑺar;怖Ā;iᑏᑕcalȀBLSTᑡᑥᑪᑴar;戣ine;䁼eparator;杘ilde;所ThinSpace;怊r;쀀𝔙pf;쀀𝕍cr;쀀𝒱dash;抪ʀcefosᒧᒬᒱᒶᒼirc;䅴dge;拀r;쀀𝔚pf;쀀𝕎cr;쀀𝒲Ȁfiosᓋᓐᓒᓘr;쀀𝔛;䎞pf;쀀𝕏cr;쀀𝒳ҀAIUacfosuᓱᓵᓹᓽᔄᔏᔔᔚᔠcy;䐯cy;䐇cy;䐮cute耻Ý䃝Āiyᔉᔍrc;䅶;䐫r;쀀𝔜pf;쀀𝕐cr;쀀𝒴ml;䅸ЀHacdefosᔵᔹᔿᕋᕏᕝᕠᕤcy;䐖cute;䅹Āayᕄᕉron;䅽;䐗ot;䅻Dzᕔ\0ᕛoWidtè૙a;䎖r;愨pf;愤cr;쀀𝒵௡ᖃᖊᖐ\0ᖰᖶᖿ\0\0\0\0ᗆᗛᗫᙟ᙭\0ᚕ᚛ᚲᚹ\0ᚾcute耻á䃡reve;䄃̀;Ediuyᖜᖝᖡᖣᖨᖭ戾;쀀∾̳;房rc耻â䃢te肻´̆;䐰lig耻æ䃦Ā;r²ᖺ;쀀𝔞rave耻à䃠ĀepᗊᗖĀfpᗏᗔsym;愵èᗓha;䎱ĀapᗟcĀclᗤᗧr;䄁g;樿ɤᗰ\0\0ᘊʀ;adsvᗺᗻᗿᘁᘇ戧nd;橕;橜lope;橘;橚΀;elmrszᘘᘙᘛᘞᘿᙏᙙ戠;榤e»ᘙsdĀ;aᘥᘦ戡ѡᘰᘲᘴᘶᘸᘺᘼᘾ;榨;榩;榪;榫;榬;榭;榮;榯tĀ;vᙅᙆ戟bĀ;dᙌᙍ抾;榝Āptᙔᙗh;戢»¹arr;捼Āgpᙣᙧon;䄅f;쀀𝕒΀;Eaeiop዁ᙻᙽᚂᚄᚇᚊ;橰cir;橯;扊d;手s;䀧roxĀ;e዁ᚒñᚃing耻å䃥ƀctyᚡᚦᚨr;쀀𝒶;䀪mpĀ;e዁ᚯñʈilde耻ã䃣ml耻ä䃤Āciᛂᛈoninôɲnt;樑ࠀNabcdefiklnoprsu᛭ᛱᜰ᜼ᝃᝈ᝸᝽០៦ᠹᡐᜍ᤽᥈ᥰot;櫭Ācrᛶ᜞kȀcepsᜀᜅᜍᜓong;扌psilon;䏶rime;怵imĀ;e᜚᜛戽q;拍Ŷᜢᜦee;抽edĀ;gᜬᜭ挅e»ᜭrkĀ;t፜᜷brk;掶Āoyᜁᝁ;䐱quo;怞ʀcmprtᝓ᝛ᝡᝤᝨausĀ;eĊĉptyv;榰séᜌnoõēƀahwᝯ᝱ᝳ;䎲;愶een;扬r;쀀𝔟g΀costuvwឍឝឳេ៕៛៞ƀaiuបពរðݠrc;旯p»፱ƀdptឤឨឭot;樀lus;樁imes;樂ɱឹ\0\0ើcup;樆ar;昅riangleĀdu៍្own;施p;斳plus;樄eåᑄåᒭarow;植ƀako៭ᠦᠵĀcn៲ᠣkƀlst៺֫᠂ozenge;槫riangleȀ;dlr᠒᠓᠘᠝斴own;斾eft;旂ight;斸k;搣Ʊᠫ\0ᠳƲᠯ\0ᠱ;斒;斑4;斓ck;斈ĀeoᠾᡍĀ;qᡃᡆ쀀=⃥uiv;쀀≡⃥t;挐Ȁptwxᡙᡞᡧᡬf;쀀𝕓Ā;tᏋᡣom»Ꮜtie;拈؀DHUVbdhmptuvᢅᢖᢪᢻᣗᣛᣬ᣿ᤅᤊᤐᤡȀLRlrᢎᢐᢒᢔ;敗;敔;敖;敓ʀ;DUduᢡᢢᢤᢦᢨ敐;敦;敩;敤;敧ȀLRlrᢳᢵᢷᢹ;敝;敚;敜;教΀;HLRhlrᣊᣋᣍᣏᣑᣓᣕ救;敬;散;敠;敫;敢;敟ox;槉ȀLRlrᣤᣦᣨᣪ;敕;敒;攐;攌ʀ;DUduڽ᣷᣹᣻᣽;敥;敨;攬;攴inus;抟lus;択imes;抠ȀLRlrᤙᤛᤝ᤟;敛;敘;攘;攔΀;HLRhlrᤰᤱᤳᤵᤷ᤻᤹攂;敪;敡;敞;攼;攤;攜Āevģ᥂bar耻¦䂦Ȁceioᥑᥖᥚᥠr;쀀𝒷mi;恏mĀ;e᜚᜜lƀ;bhᥨᥩᥫ䁜;槅sub;柈Ŭᥴ᥾lĀ;e᥹᥺怢t»᥺pƀ;Eeįᦅᦇ;檮Ā;qۜۛೡᦧ\0᧨ᨑᨕᨲ\0ᨷᩐ\0\0᪴\0\0᫁\0\0ᬡᬮ᭍᭒\0᯽\0ᰌƀcpr᦭ᦲ᧝ute;䄇̀;abcdsᦿᧀᧄ᧊᧕᧙戩nd;橄rcup;橉Āau᧏᧒p;橋p;橇ot;橀;쀀∩︀Āeo᧢᧥t;恁îړȀaeiu᧰᧻ᨁᨅǰ᧵\0᧸s;橍on;䄍dil耻ç䃧rc;䄉psĀ;sᨌᨍ橌m;橐ot;䄋ƀdmnᨛᨠᨦil肻¸ƭptyv;榲t脀¢;eᨭᨮ䂢räƲr;쀀𝔠ƀceiᨽᩀᩍy;䑇ckĀ;mᩇᩈ朓ark»ᩈ;䏇r΀;Ecefms᩟᩠ᩢᩫ᪤᪪᪮旋;槃ƀ;elᩩᩪᩭ䋆q;扗eɡᩴ\0\0᪈rrowĀlr᩼᪁eft;憺ight;憻ʀRSacd᪒᪔᪖᪚᪟»ཇ;擈st;抛irc;抚ash;抝nint;樐id;櫯cir;槂ubsĀ;u᪻᪼晣it»᪼ˬ᫇᫔᫺\0ᬊonĀ;eᫍᫎ䀺Ā;qÇÆɭ᫙\0\0᫢aĀ;t᫞᫟䀬;䁀ƀ;fl᫨᫩᫫戁îᅠeĀmx᫱᫶ent»᫩eóɍǧ᫾\0ᬇĀ;dኻᬂot;橭nôɆƀfryᬐᬔᬗ;쀀𝕔oäɔ脀©;sŕᬝr;愗Āaoᬥᬩrr;憵ss;朗Ācuᬲᬷr;쀀𝒸Ābpᬼ᭄Ā;eᭁᭂ櫏;櫑Ā;eᭉᭊ櫐;櫒dot;拯΀delprvw᭠᭬᭷ᮂᮬᯔ᯹arrĀlr᭨᭪;椸;椵ɰ᭲\0\0᭵r;拞c;拟arrĀ;p᭿ᮀ憶;椽̀;bcdosᮏᮐᮖᮡᮥᮨ截rcap;橈Āauᮛᮞp;橆p;橊ot;抍r;橅;쀀∪︀Ȁalrv᮵ᮿᯞᯣrrĀ;mᮼᮽ憷;椼yƀevwᯇᯔᯘqɰᯎ\0\0ᯒreã᭳uã᭵ee;拎edge;拏en耻¤䂤earrowĀlrᯮ᯳eft»ᮀight»ᮽeäᯝĀciᰁᰇoninôǷnt;戱lcty;挭ঀAHabcdefhijlorstuwz᰸᰻᰿ᱝᱩᱵᲊᲞᲬᲷ᳻᳿ᴍᵻᶑᶫᶻ᷆᷍rò΁ar;楥Ȁglrs᱈ᱍ᱒᱔ger;怠eth;愸òᄳhĀ;vᱚᱛ怐»ऊūᱡᱧarow;椏aã̕Āayᱮᱳron;䄏;䐴ƀ;ao̲ᱼᲄĀgrʿᲁr;懊tseq;橷ƀglmᲑᲔᲘ耻°䂰ta;䎴ptyv;榱ĀirᲣᲨsht;楿;쀀𝔡arĀlrᲳᲵ»ࣜ»သʀaegsv᳂͸᳖᳜᳠mƀ;oș᳊᳔ndĀ;ș᳑uit;晦amma;䏝in;拲ƀ;io᳧᳨᳸䃷de脀÷;o᳧ᳰntimes;拇nø᳷cy;䑒cɯᴆ\0\0ᴊrn;挞op;挍ʀlptuwᴘᴝᴢᵉᵕlar;䀤f;쀀𝕕ʀ;emps̋ᴭᴷᴽᵂqĀ;d͒ᴳot;扑inus;戸lus;戔quare;抡blebarwedgåúnƀadhᄮᵝᵧownarrowóᲃarpoonĀlrᵲᵶefôᲴighôᲶŢᵿᶅkaro÷གɯᶊ\0\0ᶎrn;挟op;挌ƀcotᶘᶣᶦĀryᶝᶡ;쀀𝒹;䑕l;槶rok;䄑Ādrᶰᶴot;拱iĀ;fᶺ᠖斿Āah᷀᷃ròЩaòྦangle;榦Āci᷒ᷕy;䑟grarr;柿ऀDacdefglmnopqrstuxḁḉḙḸոḼṉṡṾấắẽỡἪἷὄ὎὚ĀDoḆᴴoôᲉĀcsḎḔute耻é䃩ter;橮ȀaioyḢḧḱḶron;䄛rĀ;cḭḮ扖耻ê䃪lon;払;䑍ot;䄗ĀDrṁṅot;扒;쀀𝔢ƀ;rsṐṑṗ檚ave耻è䃨Ā;dṜṝ檖ot;檘Ȁ;ilsṪṫṲṴ檙nters;揧;愓Ā;dṹṺ檕ot;檗ƀapsẅẉẗcr;䄓tyƀ;svẒẓẕ戅et»ẓpĀ1;ẝẤijạả;怄;怅怃ĀgsẪẬ;䅋p;怂ĀgpẴẸon;䄙f;쀀𝕖ƀalsỄỎỒrĀ;sỊị拕l;槣us;橱iƀ;lvỚớở䎵on»ớ;䏵ȀcsuvỪỳἋἣĀioữḱrc»Ḯɩỹ\0\0ỻíՈantĀglἂἆtr»ṝess»Ṻƀaeiἒ἖Ἒls;䀽st;扟vĀ;DȵἠD;橸parsl;槥ĀDaἯἳot;打rr;楱ƀcdiἾὁỸr;愯oô͒ĀahὉὋ;䎷耻ð䃰Āmrὓὗl耻ë䃫o;悬ƀcipὡὤὧl;䀡sôծĀeoὬὴctatioîՙnentialåչৡᾒ\0ᾞ\0ᾡᾧ\0\0ῆῌ\0ΐ\0ῦῪ \0 ⁚llingdotseñṄy;䑄male;晀ƀilrᾭᾳ῁lig;耀ffiɩᾹ\0\0᾽g;耀ffig;耀ffl;쀀𝔣lig;耀filig;쀀fjƀaltῙ῜ῡt;晭ig;耀flns;斱of;䆒ǰ΅\0ῳf;쀀𝕗ĀakֿῷĀ;vῼ´拔;櫙artint;樍Āao‌⁕Ācs‑⁒ႉ‸⁅⁈\0⁐β•‥‧‪‬\0‮耻½䂽;慓耻¼䂼;慕;慙;慛Ƴ‴\0‶;慔;慖ʴ‾⁁\0\0⁃耻¾䂾;慗;慜5;慘ƶ⁌\0⁎;慚;慝8;慞l;恄wn;挢cr;쀀𝒻ࢀEabcdefgijlnorstv₂₉₟₥₰₴⃰⃵⃺⃿℃ℒℸ̗ℾ⅒↞Ā;lٍ₇;檌ƀcmpₐₕ₝ute;䇵maĀ;dₜ᳚䎳;檆reve;䄟Āiy₪₮rc;䄝;䐳ot;䄡Ȁ;lqsؾق₽⃉ƀ;qsؾٌ⃄lanô٥Ȁ;cdl٥⃒⃥⃕c;檩otĀ;o⃜⃝檀Ā;l⃢⃣檂;檄Ā;e⃪⃭쀀⋛︀s;檔r;쀀𝔤Ā;gٳ؛mel;愷cy;䑓Ȁ;Eajٚℌℎℐ;檒;檥;檤ȀEaesℛℝ℩ℴ;扩pĀ;p℣ℤ檊rox»ℤĀ;q℮ℯ檈Ā;q℮ℛim;拧pf;쀀𝕘Āci⅃ⅆr;愊mƀ;el٫ⅎ⅐;檎;檐茀>;cdlqr׮ⅠⅪⅮⅳⅹĀciⅥⅧ;檧r;橺ot;拗Par;榕uest;橼ʀadelsↄⅪ←ٖ↛ǰ↉\0↎proø₞r;楸qĀlqؿ↖lesó₈ií٫Āen↣↭rtneqq;쀀≩︀Å↪ԀAabcefkosy⇄⇇⇱⇵⇺∘∝∯≨≽ròΠȀilmr⇐⇔⇗⇛rsðᒄf»․ilôکĀdr⇠⇤cy;䑊ƀ;cwࣴ⇫⇯ir;楈;憭ar;意irc;䄥ƀalr∁∎∓rtsĀ;u∉∊晥it»∊lip;怦con;抹r;쀀𝔥sĀew∣∩arow;椥arow;椦ʀamopr∺∾≃≞≣rr;懿tht;戻kĀlr≉≓eftarrow;憩ightarrow;憪f;쀀𝕙bar;怕ƀclt≯≴≸r;쀀𝒽asè⇴rok;䄧Ābp⊂⊇ull;恃hen»ᱛૡ⊣\0⊪\0⊸⋅⋎\0⋕⋳\0\0⋸⌢⍧⍢⍿\0⎆⎪⎴cute耻í䃭ƀ;iyݱ⊰⊵rc耻î䃮;䐸Ācx⊼⊿y;䐵cl耻¡䂡ĀfrΟ⋉;쀀𝔦rave耻ì䃬Ȁ;inoܾ⋝⋩⋮Āin⋢⋦nt;樌t;戭fin;槜ta;愩lig;䄳ƀaop⋾⌚⌝ƀcgt⌅⌈⌗r;䄫ƀelpܟ⌏⌓inåގarôܠh;䄱f;抷ed;䆵ʀ;cfotӴ⌬⌱⌽⍁are;愅inĀ;t⌸⌹戞ie;槝doô⌙ʀ;celpݗ⍌⍐⍛⍡al;抺Āgr⍕⍙eróᕣã⍍arhk;樗rod;樼Ȁcgpt⍯⍲⍶⍻y;䑑on;䄯f;쀀𝕚a;䎹uest耻¿䂿Āci⎊⎏r;쀀𝒾nʀ;EdsvӴ⎛⎝⎡ӳ;拹ot;拵Ā;v⎦⎧拴;拳Ā;iݷ⎮lde;䄩ǫ⎸\0⎼cy;䑖l耻ï䃯̀cfmosu⏌⏗⏜⏡⏧⏵Āiy⏑⏕rc;䄵;䐹r;쀀𝔧ath;䈷pf;쀀𝕛ǣ⏬\0⏱r;쀀𝒿rcy;䑘kcy;䑔Ѐacfghjos␋␖␢␧␭␱␵␻ppaĀ;v␓␔䎺;䏰Āey␛␠dil;䄷;䐺r;쀀𝔨reen;䄸cy;䑅cy;䑜pf;쀀𝕜cr;쀀𝓀஀ABEHabcdefghjlmnoprstuv⑰⒁⒆⒍⒑┎┽╚▀♎♞♥♹♽⚚⚲⛘❝❨➋⟀⠁⠒ƀart⑷⑺⑼rò৆òΕail;椛arr;椎Ā;gঔ⒋;檋ar;楢ॣ⒥\0⒪\0⒱\0\0\0\0\0⒵Ⓔ\0ⓆⓈⓍ\0⓹ute;䄺mptyv;榴raîࡌbda;䎻gƀ;dlࢎⓁⓃ;榑åࢎ;檅uo耻«䂫rЀ;bfhlpst࢙ⓞⓦⓩ⓫⓮⓱⓵Ā;f࢝ⓣs;椟s;椝ë≒p;憫l;椹im;楳l;憢ƀ;ae⓿─┄檫il;椙Ā;s┉┊檭;쀀⪭︀ƀabr┕┙┝rr;椌rk;杲Āak┢┬cĀek┨┪;䁻;䁛Āes┱┳;榋lĀdu┹┻;榏;榍Ȁaeuy╆╋╖╘ron;䄾Ādi═╔il;䄼ìࢰâ┩;䐻Ȁcqrs╣╦╭╽a;椶uoĀ;rนᝆĀdu╲╷har;楧shar;楋h;憲ʀ;fgqs▋▌উ◳◿扤tʀahlrt▘▤▷◂◨rrowĀ;t࢙□aé⓶arpoonĀdu▯▴own»њp»०eftarrows;懇ightƀahs◍◖◞rrowĀ;sࣴࢧarpoonó྘quigarro÷⇰hreetimes;拋ƀ;qs▋ও◺lanôবʀ;cdgsব☊☍☝☨c;檨otĀ;o☔☕橿Ā;r☚☛檁;檃Ā;e☢☥쀀⋚︀s;檓ʀadegs☳☹☽♉♋pproøⓆot;拖qĀgq♃♅ôউgtò⒌ôছiíলƀilr♕࣡♚sht;楼;쀀𝔩Ā;Eজ♣;檑š♩♶rĀdu▲♮Ā;l॥♳;楪lk;斄cy;䑙ʀ;achtੈ⚈⚋⚑⚖rò◁orneòᴈard;楫ri;旺Āio⚟⚤dot;䅀ustĀ;a⚬⚭掰che»⚭ȀEaes⚻⚽⛉⛔;扨pĀ;p⛃⛄檉rox»⛄Ā;q⛎⛏檇Ā;q⛎⚻im;拦Ѐabnoptwz⛩⛴⛷✚✯❁❇❐Ānr⛮⛱g;柬r;懽rëࣁgƀlmr⛿✍✔eftĀar০✇ightá৲apsto;柼ightá৽parrowĀlr✥✩efô⓭ight;憬ƀafl✶✹✽r;榅;쀀𝕝us;樭imes;樴š❋❏st;戗áፎƀ;ef❗❘᠀旊nge»❘arĀ;l❤❥䀨t;榓ʀachmt❳❶❼➅➇ròࢨorneòᶌarĀ;d྘➃;業;怎ri;抿̀achiqt➘➝ੀ➢➮➻quo;怹r;쀀𝓁mƀ;egল➪➬;檍;檏Ābu┪➳oĀ;rฟ➹;怚rok;䅂萀<;cdhilqrࠫ⟒☹⟜⟠⟥⟪⟰Āci⟗⟙;檦r;橹reå◲mes;拉arr;楶uest;橻ĀPi⟵⟹ar;榖ƀ;ef⠀भ᠛旃rĀdu⠇⠍shar;楊har;楦Āen⠗⠡rtneqq;쀀≨︀Å⠞܀Dacdefhilnopsu⡀⡅⢂⢎⢓⢠⢥⢨⣚⣢⣤ઃ⣳⤂Dot;戺Ȁclpr⡎⡒⡣⡽r耻¯䂯Āet⡗⡙;時Ā;e⡞⡟朠se»⡟Ā;sျ⡨toȀ;dluျ⡳⡷⡻owîҌefôएðᏑker;斮Āoy⢇⢌mma;権;䐼ash;怔asuredangle»ᘦr;쀀𝔪o;愧ƀcdn⢯⢴⣉ro耻µ䂵Ȁ;acdᑤ⢽⣀⣄sôᚧir;櫰ot肻·Ƶusƀ;bd⣒ᤃ⣓戒Ā;uᴼ⣘;横ţ⣞⣡p;櫛ò−ðઁĀdp⣩⣮els;抧f;쀀𝕞Āct⣸⣽r;쀀𝓂pos»ᖝƀ;lm⤉⤊⤍䎼timap;抸ఀGLRVabcdefghijlmoprstuvw⥂⥓⥾⦉⦘⧚⧩⨕⨚⩘⩝⪃⪕⪤⪨⬄⬇⭄⭿⮮ⰴⱧⱼ⳩Āgt⥇⥋;쀀⋙̸Ā;v⥐௏쀀≫⃒ƀelt⥚⥲⥶ftĀar⥡⥧rrow;懍ightarrow;懎;쀀⋘̸Ā;v⥻ే쀀≪⃒ightarrow;懏ĀDd⦎⦓ash;抯ash;抮ʀbcnpt⦣⦧⦬⦱⧌la»˞ute;䅄g;쀀∠⃒ʀ;Eiop඄⦼⧀⧅⧈;쀀⩰̸d;쀀≋̸s;䅉roø඄urĀ;a⧓⧔普lĀ;s⧓ସdz⧟\0⧣p肻 ଷmpĀ;e௹ఀʀaeouy⧴⧾⨃⨐⨓ǰ⧹\0⧻;橃on;䅈dil;䅆ngĀ;dൾ⨊ot;쀀⩭̸p;橂;䐽ash;怓΀;Aadqsxஒ⨩⨭⨻⩁⩅⩐rr;懗rĀhr⨳⨶k;椤Ā;oᏲᏰot;쀀≐̸uiöୣĀei⩊⩎ar;椨í஘istĀ;s஠டr;쀀𝔫ȀEest௅⩦⩹⩼ƀ;qs஼⩭௡ƀ;qs஼௅⩴lanô௢ií௪Ā;rஶ⪁»ஷƀAap⪊⪍⪑rò⥱rr;憮ar;櫲ƀ;svྍ⪜ྌĀ;d⪡⪢拼;拺cy;䑚΀AEadest⪷⪺⪾⫂⫅⫶⫹rò⥦;쀀≦̸rr;憚r;急Ȁ;fqs఻⫎⫣⫯tĀar⫔⫙rro÷⫁ightarro÷⪐ƀ;qs఻⪺⫪lanôౕĀ;sౕ⫴»శiíౝĀ;rవ⫾iĀ;eచథiäඐĀpt⬌⬑f;쀀𝕟膀¬;in⬙⬚⬶䂬nȀ;Edvஉ⬤⬨⬮;쀀⋹̸ot;쀀⋵̸ǡஉ⬳⬵;拷;拶iĀ;vಸ⬼ǡಸ⭁⭃;拾;拽ƀaor⭋⭣⭩rȀ;ast୻⭕⭚⭟lleì୻l;쀀⫽⃥;쀀∂̸lint;樔ƀ;ceಒ⭰⭳uåಥĀ;cಘ⭸Ā;eಒ⭽ñಘȀAait⮈⮋⮝⮧rò⦈rrƀ;cw⮔⮕⮙憛;쀀⤳̸;쀀↝̸ghtarrow»⮕riĀ;eೋೖ΀chimpqu⮽⯍⯙⬄୸⯤⯯Ȁ;cerല⯆ഷ⯉uå൅;쀀𝓃ortɭ⬅\0\0⯖ará⭖mĀ;e൮⯟Ā;q൴൳suĀbp⯫⯭å೸åഋƀbcp⯶ⰑⰙȀ;Ees⯿ⰀഢⰄ抄;쀀⫅̸etĀ;eഛⰋqĀ;qണⰀcĀ;eലⰗñസȀ;EesⰢⰣൟⰧ抅;쀀⫆̸etĀ;e൘ⰮqĀ;qൠⰣȀgilrⰽⰿⱅⱇìௗlde耻ñ䃱çృiangleĀlrⱒⱜeftĀ;eచⱚñదightĀ;eೋⱥñ೗Ā;mⱬⱭ䎽ƀ;esⱴⱵⱹ䀣ro;愖p;怇ҀDHadgilrsⲏⲔⲙⲞⲣⲰⲶⳓⳣash;抭arr;椄p;쀀≍⃒ash;抬ĀetⲨⲬ;쀀≥⃒;쀀>⃒nfin;槞ƀAetⲽⳁⳅrr;椂;쀀≤⃒Ā;rⳊⳍ쀀<⃒ie;쀀⊴⃒ĀAtⳘⳜrr;椃rie;쀀⊵⃒im;쀀∼⃒ƀAan⳰⳴ⴂrr;懖rĀhr⳺⳽k;椣Ā;oᏧᏥear;椧ቓ᪕\0\0\0\0\0\0\0\0\0\0\0\0\0ⴭ\0ⴸⵈⵠⵥ⵲ⶄᬇ\0\0ⶍⶫ\0ⷈⷎ\0ⷜ⸙⸫⸾⹃Ācsⴱ᪗ute耻ó䃳ĀiyⴼⵅrĀ;c᪞ⵂ耻ô䃴;䐾ʀabios᪠ⵒⵗLjⵚlac;䅑v;樸old;榼lig;䅓Ācr⵩⵭ir;榿;쀀𝔬ͯ⵹\0\0⵼\0ⶂn;䋛ave耻ò䃲;槁Ābmⶈ෴ar;榵Ȁacitⶕ⶘ⶥⶨrò᪀Āir⶝ⶠr;榾oss;榻nå๒;槀ƀaeiⶱⶵⶹcr;䅍ga;䏉ƀcdnⷀⷅǍron;䎿;榶pf;쀀𝕠ƀaelⷔ⷗ǒr;榷rp;榹΀;adiosvⷪⷫⷮ⸈⸍⸐⸖戨rò᪆Ȁ;efmⷷⷸ⸂⸅橝rĀ;oⷾⷿ愴f»ⷿ耻ª䂪耻º䂺gof;抶r;橖lope;橗;橛ƀclo⸟⸡⸧ò⸁ash耻ø䃸l;折iŬⸯ⸴de耻õ䃵esĀ;aǛ⸺s;樶ml耻ö䃶bar;挽ૡ⹞\0⹽\0⺀⺝\0⺢⺹\0\0⻋ຜ\0⼓\0\0⼫⾼\0⿈rȀ;astЃ⹧⹲຅脀¶;l⹭⹮䂶leìЃɩ⹸\0\0⹻m;櫳;櫽y;䐿rʀcimpt⺋⺏⺓ᡥ⺗nt;䀥od;䀮il;怰enk;怱r;쀀𝔭ƀimo⺨⺰⺴Ā;v⺭⺮䏆;䏕maô੶ne;明ƀ;tv⺿⻀⻈䏀chfork»´;䏖Āau⻏⻟nĀck⻕⻝kĀ;h⇴⻛;愎ö⇴sҀ;abcdemst⻳⻴ᤈ⻹⻽⼄⼆⼊⼎䀫cir;樣ir;樢Āouᵀ⼂;樥;橲n肻±ຝim;樦wo;樧ƀipu⼙⼠⼥ntint;樕f;쀀𝕡nd耻£䂣Ԁ;Eaceinosu່⼿⽁⽄⽇⾁⾉⾒⽾⾶;檳p;檷uå໙Ā;c໎⽌̀;acens່⽙⽟⽦⽨⽾pproø⽃urlyeñ໙ñ໎ƀaes⽯⽶⽺pprox;檹qq;檵im;拨iíໟmeĀ;s⾈ຮ怲ƀEas⽸⾐⽺ð⽵ƀdfp໬⾙⾯ƀals⾠⾥⾪lar;挮ine;挒urf;挓Ā;t໻⾴ï໻rel;抰Āci⿀⿅r;쀀𝓅;䏈ncsp;怈̀fiopsu⿚⋢⿟⿥⿫⿱r;쀀𝔮pf;쀀𝕢rime;恗cr;쀀𝓆ƀaeo⿸〉〓tĀei⿾々rnionóڰnt;樖stĀ;e【】䀿ñἙô༔઀ABHabcdefhilmnoprstux぀けさすムㄎㄫㅇㅢㅲㆎ㈆㈕㈤㈩㉘㉮㉲㊐㊰㊷ƀartぇおがròႳòϝail;検aròᱥar;楤΀cdenqrtとふへみわゔヌĀeuねぱ;쀀∽̱te;䅕iãᅮmptyv;榳gȀ;del࿑らるろ;榒;榥å࿑uo耻»䂻rր;abcfhlpstw࿜ガクシスゼゾダッデナp;極Ā;f࿠ゴs;椠;椳s;椞ë≝ð✮l;楅im;楴l;憣;憝Āaiパフil;椚oĀ;nホボ戶aló༞ƀabrョリヮrò៥rk;杳ĀakンヽcĀekヹ・;䁽;䁝Āes㄂㄄;榌lĀduㄊㄌ;榎;榐Ȁaeuyㄗㄜㄧㄩron;䅙Ādiㄡㄥil;䅗ì࿲âヺ;䑀Ȁclqsㄴㄷㄽㅄa;椷dhar;楩uoĀ;rȎȍh;憳ƀacgㅎㅟངlȀ;ipsླྀㅘㅛႜnåႻarôྩt;断ƀilrㅩဣㅮsht;楽;쀀𝔯ĀaoㅷㆆrĀduㅽㅿ»ѻĀ;l႑ㆄ;楬Ā;vㆋㆌ䏁;䏱ƀgns㆕ㇹㇼht̀ahlrstㆤㆰ㇂㇘㇤㇮rrowĀ;t࿜ㆭaéトarpoonĀduㆻㆿowîㅾp»႒eftĀah㇊㇐rrowó࿪arpoonóՑightarrows;應quigarro÷ニhreetimes;拌g;䋚ingdotseñἲƀahm㈍㈐㈓rò࿪aòՑ;怏oustĀ;a㈞㈟掱che»㈟mid;櫮Ȁabpt㈲㈽㉀㉒Ānr㈷㈺g;柭r;懾rëဃƀafl㉇㉊㉎r;榆;쀀𝕣us;樮imes;樵Āap㉝㉧rĀ;g㉣㉤䀩t;榔olint;樒arò㇣Ȁachq㉻㊀Ⴜ㊅quo;怺r;쀀𝓇Ābu・㊊oĀ;rȔȓƀhir㊗㊛㊠reåㇸmes;拊iȀ;efl㊪ၙᠡ㊫方tri;槎luhar;楨;愞ൡ㋕㋛㋟㌬㌸㍱\0㍺㎤\0\0㏬㏰\0㐨㑈㑚㒭㒱㓊㓱\0㘖\0\0㘳cute;䅛quï➺Ԁ;Eaceinpsyᇭ㋳㋵㋿㌂㌋㌏㌟㌦㌩;檴ǰ㋺\0㋼;檸on;䅡uåᇾĀ;dᇳ㌇il;䅟rc;䅝ƀEas㌖㌘㌛;檶p;檺im;择olint;樓iíሄ;䑁otƀ;be㌴ᵇ㌵担;橦΀Aacmstx㍆㍊㍗㍛㍞㍣㍭rr;懘rĀhr㍐㍒ë∨Ā;oਸ਼਴t耻§䂧i;䀻war;椩mĀin㍩ðnuóñt;朶rĀ;o㍶⁕쀀𝔰Ȁacoy㎂㎆㎑㎠rp;景Āhy㎋㎏cy;䑉;䑈rtɭ㎙\0\0㎜iäᑤaraì⹯耻­䂭Āgm㎨㎴maƀ;fv㎱㎲㎲䏃;䏂Ѐ;deglnprካ㏅㏉㏎㏖㏞㏡㏦ot;橪Ā;q኱ኰĀ;E㏓㏔檞;檠Ā;E㏛㏜檝;檟e;扆lus;樤arr;楲aròᄽȀaeit㏸㐈㐏㐗Āls㏽㐄lsetmé㍪hp;樳parsl;槤Ādlᑣ㐔e;挣Ā;e㐜㐝檪Ā;s㐢㐣檬;쀀⪬︀ƀflp㐮㐳㑂tcy;䑌Ā;b㐸㐹䀯Ā;a㐾㐿槄r;挿f;쀀𝕤aĀdr㑍ЂesĀ;u㑔㑕晠it»㑕ƀcsu㑠㑹㒟Āau㑥㑯pĀ;sᆈ㑫;쀀⊓︀pĀ;sᆴ㑵;쀀⊔︀uĀbp㑿㒏ƀ;esᆗᆜ㒆etĀ;eᆗ㒍ñᆝƀ;esᆨᆭ㒖etĀ;eᆨ㒝ñᆮƀ;afᅻ㒦ְrť㒫ֱ»ᅼaròᅈȀcemt㒹㒾㓂㓅r;쀀𝓈tmîñiì㐕aræᆾĀar㓎㓕rĀ;f㓔ឿ昆Āan㓚㓭ightĀep㓣㓪psiloîỠhé⺯s»⡒ʀbcmnp㓻㕞ሉ㖋㖎Ҁ;Edemnprs㔎㔏㔑㔕㔞㔣㔬㔱㔶抂;櫅ot;檽Ā;dᇚ㔚ot;櫃ult;櫁ĀEe㔨㔪;櫋;把lus;檿arr;楹ƀeiu㔽㕒㕕tƀ;en㔎㕅㕋qĀ;qᇚ㔏eqĀ;q㔫㔨m;櫇Ābp㕚㕜;櫕;櫓c̀;acensᇭ㕬㕲㕹㕻㌦pproø㋺urlyeñᇾñᇳƀaes㖂㖈㌛pproø㌚qñ㌗g;晪ڀ123;Edehlmnps㖩㖬㖯ሜ㖲㖴㗀㗉㗕㗚㗟㗨㗭耻¹䂹耻²䂲耻³䂳;櫆Āos㖹㖼t;檾ub;櫘Ā;dሢ㗅ot;櫄sĀou㗏㗒l;柉b;櫗arr;楻ult;櫂ĀEe㗤㗦;櫌;抋lus;櫀ƀeiu㗴㘉㘌tƀ;enሜ㗼㘂qĀ;qሢ㖲eqĀ;q㗧㗤m;櫈Ābp㘑㘓;櫔;櫖ƀAan㘜㘠㘭rr;懙rĀhr㘦㘨ë∮Ā;oਫ਩war;椪lig耻ß䃟௡㙑㙝㙠ዎ㙳㙹\0㙾㛂\0\0\0\0\0㛛㜃\0㜉㝬\0\0\0㞇ɲ㙖\0\0㙛get;挖;䏄rë๟ƀaey㙦㙫㙰ron;䅥dil;䅣;䑂lrec;挕r;쀀𝔱Ȁeiko㚆㚝㚵㚼Dz㚋\0㚑eĀ4fኄኁaƀ;sv㚘㚙㚛䎸ym;䏑Ācn㚢㚲kĀas㚨㚮pproø዁im»ኬsðኞĀas㚺㚮ð዁rn耻þ䃾Ǭ̟㛆⋧es膀×;bd㛏㛐㛘䃗Ā;aᤏ㛕r;樱;樰ƀeps㛡㛣㜀á⩍Ȁ;bcf҆㛬㛰㛴ot;挶ir;櫱Ā;o㛹㛼쀀𝕥rk;櫚á㍢rime;怴ƀaip㜏㜒㝤dåቈ΀adempst㜡㝍㝀㝑㝗㝜㝟ngleʀ;dlqr㜰㜱㜶㝀㝂斵own»ᶻeftĀ;e⠀㜾ñम;扜ightĀ;e㊪㝋ñၚot;旬inus;樺lus;樹b;槍ime;樻ezium;揢ƀcht㝲㝽㞁Āry㝷㝻;쀀𝓉;䑆cy;䑛rok;䅧Āio㞋㞎xô᝷headĀlr㞗㞠eftarro÷ࡏightarrow»ཝऀAHabcdfghlmoprstuw㟐㟓㟗㟤㟰㟼㠎㠜㠣㠴㡑㡝㡫㢩㣌㣒㣪㣶ròϭar;楣Ācr㟜㟢ute耻ú䃺òᅐrǣ㟪\0㟭y;䑞ve;䅭Āiy㟵㟺rc耻û䃻;䑃ƀabh㠃㠆㠋ròᎭlac;䅱aòᏃĀir㠓㠘sht;楾;쀀𝔲rave耻ù䃹š㠧㠱rĀlr㠬㠮»ॗ»ႃlk;斀Āct㠹㡍ɯ㠿\0\0㡊rnĀ;e㡅㡆挜r»㡆op;挏ri;旸Āal㡖㡚cr;䅫肻¨͉Āgp㡢㡦on;䅳f;쀀𝕦̀adhlsuᅋ㡸㡽፲㢑㢠ownáᎳarpoonĀlr㢈㢌efô㠭ighô㠯iƀ;hl㢙㢚㢜䏅»ᏺon»㢚parrows;懈ƀcit㢰㣄㣈ɯ㢶\0\0㣁rnĀ;e㢼㢽挝r»㢽op;挎ng;䅯ri;旹cr;쀀𝓊ƀdir㣙㣝㣢ot;拰lde;䅩iĀ;f㜰㣨»᠓Āam㣯㣲rò㢨l耻ü䃼angle;榧ހABDacdeflnoprsz㤜㤟㤩㤭㦵㦸㦽㧟㧤㧨㧳㧹㧽㨁㨠ròϷarĀ;v㤦㤧櫨;櫩asèϡĀnr㤲㤷grt;榜΀eknprst㓣㥆㥋㥒㥝㥤㦖appá␕othinçẖƀhir㓫⻈㥙opô⾵Ā;hᎷ㥢ïㆍĀiu㥩㥭gmá㎳Ābp㥲㦄setneqĀ;q㥽㦀쀀⊊︀;쀀⫋︀setneqĀ;q㦏㦒쀀⊋︀;쀀⫌︀Āhr㦛㦟etá㚜iangleĀlr㦪㦯eft»थight»ၑy;䐲ash»ံƀelr㧄㧒㧗ƀ;beⷪ㧋㧏ar;抻q;扚lip;拮Ābt㧜ᑨaòᑩr;쀀𝔳tré㦮suĀbp㧯㧱»ജ»൙pf;쀀𝕧roð໻tré㦴Ācu㨆㨋r;쀀𝓋Ābp㨐㨘nĀEe㦀㨖»㥾nĀEe㦒㨞»㦐igzag;榚΀cefoprs㨶㨻㩖㩛㩔㩡㩪irc;䅵Ādi㩀㩑Ābg㩅㩉ar;機eĀ;qᗺ㩏;扙erp;愘r;쀀𝔴pf;쀀𝕨Ā;eᑹ㩦atèᑹcr;쀀𝓌ૣណ㪇\0㪋\0㪐㪛\0\0㪝㪨㪫㪯\0\0㫃㫎\0㫘ៜ៟tré៑r;쀀𝔵ĀAa㪔㪗ròσrò৶;䎾ĀAa㪡㪤ròθrò৫að✓is;拻ƀdptឤ㪵㪾Āfl㪺ឩ;쀀𝕩imåឲĀAa㫇㫊ròώròਁĀcq㫒ីr;쀀𝓍Āpt៖㫜ré។Ѐacefiosu㫰㫽㬈㬌㬑㬕㬛㬡cĀuy㫶㫻te耻ý䃽;䑏Āiy㬂㬆rc;䅷;䑋n耻¥䂥r;쀀𝔶cy;䑗pf;쀀𝕪cr;쀀𝓎Ācm㬦㬩y;䑎l耻ÿ䃿Ԁacdefhiosw㭂㭈㭔㭘㭤㭩㭭㭴㭺㮀cute;䅺Āay㭍㭒ron;䅾;䐷ot;䅼Āet㭝㭡træᕟa;䎶r;쀀𝔷cy;䐶grarr;懝pf;쀀𝕫cr;쀀𝓏Ājn㮅㮇;怍j;怌'.split("").map(e=>e.charCodeAt(0)));var q;(function(e){e[e.DATA=0]="DATA",e[e.RCDATA=1]="RCDATA",e[e.RAWTEXT=2]="RAWTEXT",e[e.SCRIPT_DATA=3]="SCRIPT_DATA",e[e.PLAINTEXT=4]="PLAINTEXT",e[e.TAG_OPEN=5]="TAG_OPEN",e[e.END_TAG_OPEN=6]="END_TAG_OPEN",e[e.TAG_NAME=7]="TAG_NAME",e[e.RCDATA_LESS_THAN_SIGN=8]="RCDATA_LESS_THAN_SIGN",e[e.RCDATA_END_TAG_OPEN=9]="RCDATA_END_TAG_OPEN",e[e.RCDATA_END_TAG_NAME=10]="RCDATA_END_TAG_NAME",e[e.RAWTEXT_LESS_THAN_SIGN=11]="RAWTEXT_LESS_THAN_SIGN",e[e.RAWTEXT_END_TAG_OPEN=12]="RAWTEXT_END_TAG_OPEN",e[e.RAWTEXT_END_TAG_NAME=13]="RAWTEXT_END_TAG_NAME",e[e.SCRIPT_DATA_LESS_THAN_SIGN=14]="SCRIPT_DATA_LESS_THAN_SIGN",e[e.SCRIPT_DATA_END_TAG_OPEN=15]="SCRIPT_DATA_END_TAG_OPEN",e[e.SCRIPT_DATA_END_TAG_NAME=16]="SCRIPT_DATA_END_TAG_NAME",e[e.SCRIPT_DATA_ESCAPE_START=17]="SCRIPT_DATA_ESCAPE_START",e[e.SCRIPT_DATA_ESCAPE_START_DASH=18]="SCRIPT_DATA_ESCAPE_START_DASH",e[e.SCRIPT_DATA_ESCAPED=19]="SCRIPT_DATA_ESCAPED",e[e.SCRIPT_DATA_ESCAPED_DASH=20]="SCRIPT_DATA_ESCAPED_DASH",e[e.SCRIPT_DATA_ESCAPED_DASH_DASH=21]="SCRIPT_DATA_ESCAPED_DASH_DASH",e[e.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN=22]="SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN",e[e.SCRIPT_DATA_ESCAPED_END_TAG_OPEN=23]="SCRIPT_DATA_ESCAPED_END_TAG_OPEN",e[e.SCRIPT_DATA_ESCAPED_END_TAG_NAME=24]="SCRIPT_DATA_ESCAPED_END_TAG_NAME",e[e.SCRIPT_DATA_DOUBLE_ESCAPE_START=25]="SCRIPT_DATA_DOUBLE_ESCAPE_START",e[e.SCRIPT_DATA_DOUBLE_ESCAPED=26]="SCRIPT_DATA_DOUBLE_ESCAPED",e[e.SCRIPT_DATA_DOUBLE_ESCAPED_DASH=27]="SCRIPT_DATA_DOUBLE_ESCAPED_DASH",e[e.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH=28]="SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH",e[e.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN=29]="SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN",e[e.SCRIPT_DATA_DOUBLE_ESCAPE_END=30]="SCRIPT_DATA_DOUBLE_ESCAPE_END",e[e.BEFORE_ATTRIBUTE_NAME=31]="BEFORE_ATTRIBUTE_NAME",e[e.ATTRIBUTE_NAME=32]="ATTRIBUTE_NAME",e[e.AFTER_ATTRIBUTE_NAME=33]="AFTER_ATTRIBUTE_NAME",e[e.BEFORE_ATTRIBUTE_VALUE=34]="BEFORE_ATTRIBUTE_VALUE",e[e.ATTRIBUTE_VALUE_DOUBLE_QUOTED=35]="ATTRIBUTE_VALUE_DOUBLE_QUOTED",e[e.ATTRIBUTE_VALUE_SINGLE_QUOTED=36]="ATTRIBUTE_VALUE_SINGLE_QUOTED",e[e.ATTRIBUTE_VALUE_UNQUOTED=37]="ATTRIBUTE_VALUE_UNQUOTED",e[e.AFTER_ATTRIBUTE_VALUE_QUOTED=38]="AFTER_ATTRIBUTE_VALUE_QUOTED",e[e.SELF_CLOSING_START_TAG=39]="SELF_CLOSING_START_TAG",e[e.BOGUS_COMMENT=40]="BOGUS_COMMENT",e[e.MARKUP_DECLARATION_OPEN=41]="MARKUP_DECLARATION_OPEN",e[e.COMMENT_START=42]="COMMENT_START",e[e.COMMENT_START_DASH=43]="COMMENT_START_DASH",e[e.COMMENT=44]="COMMENT",e[e.COMMENT_LESS_THAN_SIGN=45]="COMMENT_LESS_THAN_SIGN",e[e.COMMENT_LESS_THAN_SIGN_BANG=46]="COMMENT_LESS_THAN_SIGN_BANG",e[e.COMMENT_LESS_THAN_SIGN_BANG_DASH=47]="COMMENT_LESS_THAN_SIGN_BANG_DASH",e[e.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH=48]="COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH",e[e.COMMENT_END_DASH=49]="COMMENT_END_DASH",e[e.COMMENT_END=50]="COMMENT_END",e[e.COMMENT_END_BANG=51]="COMMENT_END_BANG",e[e.DOCTYPE=52]="DOCTYPE",e[e.BEFORE_DOCTYPE_NAME=53]="BEFORE_DOCTYPE_NAME",e[e.DOCTYPE_NAME=54]="DOCTYPE_NAME",e[e.AFTER_DOCTYPE_NAME=55]="AFTER_DOCTYPE_NAME",e[e.AFTER_DOCTYPE_PUBLIC_KEYWORD=56]="AFTER_DOCTYPE_PUBLIC_KEYWORD",e[e.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER=57]="BEFORE_DOCTYPE_PUBLIC_IDENTIFIER",e[e.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED=58]="DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED",e[e.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED=59]="DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED",e[e.AFTER_DOCTYPE_PUBLIC_IDENTIFIER=60]="AFTER_DOCTYPE_PUBLIC_IDENTIFIER",e[e.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS=61]="BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS",e[e.AFTER_DOCTYPE_SYSTEM_KEYWORD=62]="AFTER_DOCTYPE_SYSTEM_KEYWORD",e[e.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER=63]="BEFORE_DOCTYPE_SYSTEM_IDENTIFIER",e[e.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED=64]="DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED",e[e.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED=65]="DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED",e[e.AFTER_DOCTYPE_SYSTEM_IDENTIFIER=66]="AFTER_DOCTYPE_SYSTEM_IDENTIFIER",e[e.BOGUS_DOCTYPE=67]="BOGUS_DOCTYPE",e[e.CDATA_SECTION=68]="CDATA_SECTION",e[e.CDATA_SECTION_BRACKET=69]="CDATA_SECTION_BRACKET",e[e.CDATA_SECTION_END=70]="CDATA_SECTION_END",e[e.CHARACTER_REFERENCE=71]="CHARACTER_REFERENCE",e[e.AMBIGUOUS_AMPERSAND=72]="AMBIGUOUS_AMPERSAND"})(q||(q={}));const er={DATA:q.DATA,RCDATA:q.RCDATA,RAWTEXT:q.RAWTEXT,SCRIPT_DATA:q.SCRIPT_DATA,PLAINTEXT:q.PLAINTEXT,CDATA_SECTION:q.CDATA_SECTION};function Dre(e){return e>=H.DIGIT_0&&e<=H.DIGIT_9}function ff(e){return e>=H.LATIN_CAPITAL_A&&e<=H.LATIN_CAPITAL_Z}function kre(e){return e>=H.LATIN_SMALL_A&&e<=H.LATIN_SMALL_Z}function ys(e){return kre(e)||ff(e)}function Xk(e){return ys(e)||Dre(e)}function xm(e){return e+32}function b4(e){return e===H.SPACE||e===H.LINE_FEED||e===H.TABULATION||e===H.FORM_FEED}function Zk(e){return b4(e)||e===H.SOLIDUS||e===H.GREATER_THAN_SIGN}function Rre(e){return e===H.NULL?ve.nullCharacterReference:e>1114111?ve.characterReferenceOutsideUnicodeRange:m4(e)?ve.surrogateCharacterReference:y4(e)?ve.noncharacterCharacterReference:g4(e)||e===H.CARRIAGE_RETURN?ve.controlCharacterReference:null}let Ore=class{constructor(t,n){this.options=t,this.handler=n,this.paused=!1,this.inLoop=!1,this.inForeignNode=!1,this.lastStartTagName="",this.active=!1,this.state=q.DATA,this.returnState=q.DATA,this.entityStartPos=0,this.consumedAfterSnapshot=-1,this.currentCharacterToken=null,this.currentToken=null,this.currentAttr={name:"",value:""},this.preprocessor=new gre(n),this.currentLocation=this.getCurrentLocation(-1),this.entityDecoder=new _re(wre,(r,a)=>{this.preprocessor.pos=this.entityStartPos+a-1,this._flushCodePointConsumedAsCharacterReference(r)},n.onParseError?{missingSemicolonAfterCharacterReference:()=>{this._err(ve.missingSemicolonAfterCharacterReference,1)},absenceOfDigitsInNumericCharacterReference:r=>{this._err(ve.absenceOfDigitsInNumericCharacterReference,this.entityStartPos-this.preprocessor.pos+r)},validateNumericCharacterReference:r=>{const a=Rre(r);a&&this._err(a,1)}}:void 0)}_err(t,n=0){var r,a;(a=(r=this.handler).onParseError)===null||a===void 0||a.call(r,this.preprocessor.getError(t,n))}getCurrentLocation(t){return this.options.sourceCodeLocationInfo?{startLine:this.preprocessor.line,startCol:this.preprocessor.col-t,startOffset:this.preprocessor.offset-t,endLine:-1,endCol:-1,endOffset:-1}:null}_runParsingLoop(){if(!this.inLoop){for(this.inLoop=!0;this.active&&!this.paused;){this.consumedAfterSnapshot=0;const t=this._consume();this._ensureHibernation()||this._callState(t)}this.inLoop=!1}}pause(){this.paused=!0}resume(t){if(!this.paused)throw new Error("Parser was already resumed");this.paused=!1,!this.inLoop&&(this._runParsingLoop(),this.paused||t?.())}write(t,n,r){this.active=!0,this.preprocessor.write(t,n),this._runParsingLoop(),this.paused||r?.()}insertHtmlAtCurrentPos(t){this.active=!0,this.preprocessor.insertHtmlAtCurrentPos(t),this._runParsingLoop()}_ensureHibernation(){return this.preprocessor.endOfChunkHit?(this.preprocessor.retreat(this.consumedAfterSnapshot),this.consumedAfterSnapshot=0,this.active=!1,!0):!1}_consume(){return this.consumedAfterSnapshot++,this.preprocessor.advance()}_advanceBy(t){this.consumedAfterSnapshot+=t;for(let n=0;n<t;n++)this.preprocessor.advance()}_consumeSequenceIfMatch(t,n){return this.preprocessor.startsWith(t,n)?(this._advanceBy(t.length-1),!0):!1}_createStartTagToken(){this.currentToken={type:$t.START_TAG,tagName:"",tagID:C.UNKNOWN,selfClosing:!1,ackSelfClosing:!1,attrs:[],location:this.getCurrentLocation(1)}}_createEndTagToken(){this.currentToken={type:$t.END_TAG,tagName:"",tagID:C.UNKNOWN,selfClosing:!1,ackSelfClosing:!1,attrs:[],location:this.getCurrentLocation(2)}}_createCommentToken(t){this.currentToken={type:$t.COMMENT,data:"",location:this.getCurrentLocation(t)}}_createDoctypeToken(t){this.currentToken={type:$t.DOCTYPE,name:t,forceQuirks:!1,publicId:null,systemId:null,location:this.currentLocation}}_createCharacterToken(t,n){this.currentCharacterToken={type:t,chars:n,location:this.currentLocation}}_createAttr(t){this.currentAttr={name:t,value:""},this.currentLocation=this.getCurrentLocation(0)}_leaveAttrName(){var t,n;const r=this.currentToken;if(v4(r,this.currentAttr.name)===null){if(r.attrs.push(this.currentAttr),r.location&&this.currentLocation){const a=(t=(n=r.location).attrs)!==null&&t!==void 0?t:n.attrs=Object.create(null);a[this.currentAttr.name]=this.currentLocation,this._leaveAttrValue()}}else this._err(ve.duplicateAttribute)}_leaveAttrValue(){this.currentLocation&&(this.currentLocation.endLine=this.preprocessor.line,this.currentLocation.endCol=this.preprocessor.col,this.currentLocation.endOffset=this.preprocessor.offset)}prepareToken(t){this._emitCurrentCharacterToken(t.location),this.currentToken=null,t.location&&(t.location.endLine=this.preprocessor.line,t.location.endCol=this.preprocessor.col+1,t.location.endOffset=this.preprocessor.offset+1),this.currentLocation=this.getCurrentLocation(-1)}emitCurrentTagToken(){const t=this.currentToken;this.prepareToken(t),t.tagID=wu(t.tagName),t.type===$t.START_TAG?(this.lastStartTagName=t.tagName,this.handler.onStartTag(t)):(t.attrs.length>0&&this._err(ve.endTagWithAttributes),t.selfClosing&&this._err(ve.endTagWithTrailingSolidus),this.handler.onEndTag(t)),this.preprocessor.dropParsedChunk()}emitCurrentComment(t){this.prepareToken(t),this.handler.onComment(t),this.preprocessor.dropParsedChunk()}emitCurrentDoctype(t){this.prepareToken(t),this.handler.onDoctype(t),this.preprocessor.dropParsedChunk()}_emitCurrentCharacterToken(t){if(this.currentCharacterToken){switch(t&&this.currentCharacterToken.location&&(this.currentCharacterToken.location.endLine=t.startLine,this.currentCharacterToken.location.endCol=t.startCol,this.currentCharacterToken.location.endOffset=t.startOffset),this.currentCharacterToken.type){case $t.CHARACTER:{this.handler.onCharacter(this.currentCharacterToken);break}case $t.NULL_CHARACTER:{this.handler.onNullCharacter(this.currentCharacterToken);break}case $t.WHITESPACE_CHARACTER:{this.handler.onWhitespaceCharacter(this.currentCharacterToken);break}}this.currentCharacterToken=null}}_emitEOFToken(){const t=this.getCurrentLocation(0);t&&(t.endLine=t.startLine,t.endCol=t.startCol,t.endOffset=t.startOffset),this._emitCurrentCharacterToken(t),this.handler.onEof({type:$t.EOF,location:t}),this.active=!1}_appendCharToCurrentCharacterToken(t,n){if(this.currentCharacterToken)if(this.currentCharacterToken.type===t){this.currentCharacterToken.chars+=n;return}else this.currentLocation=this.getCurrentLocation(0),this._emitCurrentCharacterToken(this.currentLocation),this.preprocessor.dropParsedChunk();this._createCharacterToken(t,n)}_emitCodePoint(t){const n=b4(t)?$t.WHITESPACE_CHARACTER:t===H.NULL?$t.NULL_CHARACTER:$t.CHARACTER;this._appendCharToCurrentCharacterToken(n,String.fromCodePoint(t))}_emitChars(t){this._appendCharToCurrentCharacterToken($t.CHARACTER,t)}_startCharacterReference(){this.returnState=this.state,this.state=q.CHARACTER_REFERENCE,this.entityStartPos=this.preprocessor.pos,this.entityDecoder.startEntity(this._isCharacterReferenceInAttribute()?ki.Attribute:ki.Legacy)}_isCharacterReferenceInAttribute(){return this.returnState===q.ATTRIBUTE_VALUE_DOUBLE_QUOTED||this.returnState===q.ATTRIBUTE_VALUE_SINGLE_QUOTED||this.returnState===q.ATTRIBUTE_VALUE_UNQUOTED}_flushCodePointConsumedAsCharacterReference(t){this._isCharacterReferenceInAttribute()?this.currentAttr.value+=String.fromCodePoint(t):this._emitCodePoint(t)}_callState(t){switch(this.state){case q.DATA:{this._stateData(t);break}case q.RCDATA:{this._stateRcdata(t);break}case q.RAWTEXT:{this._stateRawtext(t);break}case q.SCRIPT_DATA:{this._stateScriptData(t);break}case q.PLAINTEXT:{this._statePlaintext(t);break}case q.TAG_OPEN:{this._stateTagOpen(t);break}case q.END_TAG_OPEN:{this._stateEndTagOpen(t);break}case q.TAG_NAME:{this._stateTagName(t);break}case q.RCDATA_LESS_THAN_SIGN:{this._stateRcdataLessThanSign(t);break}case q.RCDATA_END_TAG_OPEN:{this._stateRcdataEndTagOpen(t);break}case q.RCDATA_END_TAG_NAME:{this._stateRcdataEndTagName(t);break}case q.RAWTEXT_LESS_THAN_SIGN:{this._stateRawtextLessThanSign(t);break}case q.RAWTEXT_END_TAG_OPEN:{this._stateRawtextEndTagOpen(t);break}case q.RAWTEXT_END_TAG_NAME:{this._stateRawtextEndTagName(t);break}case q.SCRIPT_DATA_LESS_THAN_SIGN:{this._stateScriptDataLessThanSign(t);break}case q.SCRIPT_DATA_END_TAG_OPEN:{this._stateScriptDataEndTagOpen(t);break}case q.SCRIPT_DATA_END_TAG_NAME:{this._stateScriptDataEndTagName(t);break}case q.SCRIPT_DATA_ESCAPE_START:{this._stateScriptDataEscapeStart(t);break}case q.SCRIPT_DATA_ESCAPE_START_DASH:{this._stateScriptDataEscapeStartDash(t);break}case q.SCRIPT_DATA_ESCAPED:{this._stateScriptDataEscaped(t);break}case q.SCRIPT_DATA_ESCAPED_DASH:{this._stateScriptDataEscapedDash(t);break}case q.SCRIPT_DATA_ESCAPED_DASH_DASH:{this._stateScriptDataEscapedDashDash(t);break}case q.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN:{this._stateScriptDataEscapedLessThanSign(t);break}case q.SCRIPT_DATA_ESCAPED_END_TAG_OPEN:{this._stateScriptDataEscapedEndTagOpen(t);break}case q.SCRIPT_DATA_ESCAPED_END_TAG_NAME:{this._stateScriptDataEscapedEndTagName(t);break}case q.SCRIPT_DATA_DOUBLE_ESCAPE_START:{this._stateScriptDataDoubleEscapeStart(t);break}case q.SCRIPT_DATA_DOUBLE_ESCAPED:{this._stateScriptDataDoubleEscaped(t);break}case q.SCRIPT_DATA_DOUBLE_ESCAPED_DASH:{this._stateScriptDataDoubleEscapedDash(t);break}case q.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH:{this._stateScriptDataDoubleEscapedDashDash(t);break}case q.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN:{this._stateScriptDataDoubleEscapedLessThanSign(t);break}case q.SCRIPT_DATA_DOUBLE_ESCAPE_END:{this._stateScriptDataDoubleEscapeEnd(t);break}case q.BEFORE_ATTRIBUTE_NAME:{this._stateBeforeAttributeName(t);break}case q.ATTRIBUTE_NAME:{this._stateAttributeName(t);break}case q.AFTER_ATTRIBUTE_NAME:{this._stateAfterAttributeName(t);break}case q.BEFORE_ATTRIBUTE_VALUE:{this._stateBeforeAttributeValue(t);break}case q.ATTRIBUTE_VALUE_DOUBLE_QUOTED:{this._stateAttributeValueDoubleQuoted(t);break}case q.ATTRIBUTE_VALUE_SINGLE_QUOTED:{this._stateAttributeValueSingleQuoted(t);break}case q.ATTRIBUTE_VALUE_UNQUOTED:{this._stateAttributeValueUnquoted(t);break}case q.AFTER_ATTRIBUTE_VALUE_QUOTED:{this._stateAfterAttributeValueQuoted(t);break}case q.SELF_CLOSING_START_TAG:{this._stateSelfClosingStartTag(t);break}case q.BOGUS_COMMENT:{this._stateBogusComment(t);break}case q.MARKUP_DECLARATION_OPEN:{this._stateMarkupDeclarationOpen(t);break}case q.COMMENT_START:{this._stateCommentStart(t);break}case q.COMMENT_START_DASH:{this._stateCommentStartDash(t);break}case q.COMMENT:{this._stateComment(t);break}case q.COMMENT_LESS_THAN_SIGN:{this._stateCommentLessThanSign(t);break}case q.COMMENT_LESS_THAN_SIGN_BANG:{this._stateCommentLessThanSignBang(t);break}case q.COMMENT_LESS_THAN_SIGN_BANG_DASH:{this._stateCommentLessThanSignBangDash(t);break}case q.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH:{this._stateCommentLessThanSignBangDashDash(t);break}case q.COMMENT_END_DASH:{this._stateCommentEndDash(t);break}case q.COMMENT_END:{this._stateCommentEnd(t);break}case q.COMMENT_END_BANG:{this._stateCommentEndBang(t);break}case q.DOCTYPE:{this._stateDoctype(t);break}case q.BEFORE_DOCTYPE_NAME:{this._stateBeforeDoctypeName(t);break}case q.DOCTYPE_NAME:{this._stateDoctypeName(t);break}case q.AFTER_DOCTYPE_NAME:{this._stateAfterDoctypeName(t);break}case q.AFTER_DOCTYPE_PUBLIC_KEYWORD:{this._stateAfterDoctypePublicKeyword(t);break}case q.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER:{this._stateBeforeDoctypePublicIdentifier(t);break}case q.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED:{this._stateDoctypePublicIdentifierDoubleQuoted(t);break}case q.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED:{this._stateDoctypePublicIdentifierSingleQuoted(t);break}case q.AFTER_DOCTYPE_PUBLIC_IDENTIFIER:{this._stateAfterDoctypePublicIdentifier(t);break}case q.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS:{this._stateBetweenDoctypePublicAndSystemIdentifiers(t);break}case q.AFTER_DOCTYPE_SYSTEM_KEYWORD:{this._stateAfterDoctypeSystemKeyword(t);break}case q.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER:{this._stateBeforeDoctypeSystemIdentifier(t);break}case q.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED:{this._stateDoctypeSystemIdentifierDoubleQuoted(t);break}case q.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED:{this._stateDoctypeSystemIdentifierSingleQuoted(t);break}case q.AFTER_DOCTYPE_SYSTEM_IDENTIFIER:{this._stateAfterDoctypeSystemIdentifier(t);break}case q.BOGUS_DOCTYPE:{this._stateBogusDoctype(t);break}case q.CDATA_SECTION:{this._stateCdataSection(t);break}case q.CDATA_SECTION_BRACKET:{this._stateCdataSectionBracket(t);break}case q.CDATA_SECTION_END:{this._stateCdataSectionEnd(t);break}case q.CHARACTER_REFERENCE:{this._stateCharacterReference();break}case q.AMBIGUOUS_AMPERSAND:{this._stateAmbiguousAmpersand(t);break}default:throw new Error("Unknown state")}}_stateData(t){switch(t){case H.LESS_THAN_SIGN:{this.state=q.TAG_OPEN;break}case H.AMPERSAND:{this._startCharacterReference();break}case H.NULL:{this._err(ve.unexpectedNullCharacter),this._emitCodePoint(t);break}case H.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateRcdata(t){switch(t){case H.AMPERSAND:{this._startCharacterReference();break}case H.LESS_THAN_SIGN:{this.state=q.RCDATA_LESS_THAN_SIGN;break}case H.NULL:{this._err(ve.unexpectedNullCharacter),this._emitChars($n);break}case H.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateRawtext(t){switch(t){case H.LESS_THAN_SIGN:{this.state=q.RAWTEXT_LESS_THAN_SIGN;break}case H.NULL:{this._err(ve.unexpectedNullCharacter),this._emitChars($n);break}case H.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateScriptData(t){switch(t){case H.LESS_THAN_SIGN:{this.state=q.SCRIPT_DATA_LESS_THAN_SIGN;break}case H.NULL:{this._err(ve.unexpectedNullCharacter),this._emitChars($n);break}case H.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_statePlaintext(t){switch(t){case H.NULL:{this._err(ve.unexpectedNullCharacter),this._emitChars($n);break}case H.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateTagOpen(t){if(ys(t))this._createStartTagToken(),this.state=q.TAG_NAME,this._stateTagName(t);else switch(t){case H.EXCLAMATION_MARK:{this.state=q.MARKUP_DECLARATION_OPEN;break}case H.SOLIDUS:{this.state=q.END_TAG_OPEN;break}case H.QUESTION_MARK:{this._err(ve.unexpectedQuestionMarkInsteadOfTagName),this._createCommentToken(1),this.state=q.BOGUS_COMMENT,this._stateBogusComment(t);break}case H.EOF:{this._err(ve.eofBeforeTagName),this._emitChars("<"),this._emitEOFToken();break}default:this._err(ve.invalidFirstCharacterOfTagName),this._emitChars("<"),this.state=q.DATA,this._stateData(t)}}_stateEndTagOpen(t){if(ys(t))this._createEndTagToken(),this.state=q.TAG_NAME,this._stateTagName(t);else switch(t){case H.GREATER_THAN_SIGN:{this._err(ve.missingEndTagName),this.state=q.DATA;break}case H.EOF:{this._err(ve.eofBeforeTagName),this._emitChars("</"),this._emitEOFToken();break}default:this._err(ve.invalidFirstCharacterOfTagName),this._createCommentToken(2),this.state=q.BOGUS_COMMENT,this._stateBogusComment(t)}}_stateTagName(t){const n=this.currentToken;switch(t){case H.SPACE:case H.LINE_FEED:case H.TABULATION:case H.FORM_FEED:{this.state=q.BEFORE_ATTRIBUTE_NAME;break}case H.SOLIDUS:{this.state=q.SELF_CLOSING_START_TAG;break}case H.GREATER_THAN_SIGN:{this.state=q.DATA,this.emitCurrentTagToken();break}case H.NULL:{this._err(ve.unexpectedNullCharacter),n.tagName+=$n;break}case H.EOF:{this._err(ve.eofInTag),this._emitEOFToken();break}default:n.tagName+=String.fromCodePoint(ff(t)?xm(t):t)}}_stateRcdataLessThanSign(t){t===H.SOLIDUS?this.state=q.RCDATA_END_TAG_OPEN:(this._emitChars("<"),this.state=q.RCDATA,this._stateRcdata(t))}_stateRcdataEndTagOpen(t){ys(t)?(this.state=q.RCDATA_END_TAG_NAME,this._stateRcdataEndTagName(t)):(this._emitChars("</"),this.state=q.RCDATA,this._stateRcdata(t))}handleSpecialEndTag(t){if(!this.preprocessor.startsWith(this.lastStartTagName,!1))return!this._ensureHibernation();this._createEndTagToken();const n=this.currentToken;switch(n.tagName=this.lastStartTagName,this.preprocessor.peek(this.lastStartTagName.length)){case H.SPACE:case H.LINE_FEED:case H.TABULATION:case H.FORM_FEED:return this._advanceBy(this.lastStartTagName.length),this.state=q.BEFORE_ATTRIBUTE_NAME,!1;case H.SOLIDUS:return this._advanceBy(this.lastStartTagName.length),this.state=q.SELF_CLOSING_START_TAG,!1;case H.GREATER_THAN_SIGN:return this._advanceBy(this.lastStartTagName.length),this.emitCurrentTagToken(),this.state=q.DATA,!1;default:return!this._ensureHibernation()}}_stateRcdataEndTagName(t){this.handleSpecialEndTag(t)&&(this._emitChars("</"),this.state=q.RCDATA,this._stateRcdata(t))}_stateRawtextLessThanSign(t){t===H.SOLIDUS?this.state=q.RAWTEXT_END_TAG_OPEN:(this._emitChars("<"),this.state=q.RAWTEXT,this._stateRawtext(t))}_stateRawtextEndTagOpen(t){ys(t)?(this.state=q.RAWTEXT_END_TAG_NAME,this._stateRawtextEndTagName(t)):(this._emitChars("</"),this.state=q.RAWTEXT,this._stateRawtext(t))}_stateRawtextEndTagName(t){this.handleSpecialEndTag(t)&&(this._emitChars("</"),this.state=q.RAWTEXT,this._stateRawtext(t))}_stateScriptDataLessThanSign(t){switch(t){case H.SOLIDUS:{this.state=q.SCRIPT_DATA_END_TAG_OPEN;break}case H.EXCLAMATION_MARK:{this.state=q.SCRIPT_DATA_ESCAPE_START,this._emitChars("<!");break}default:this._emitChars("<"),this.state=q.SCRIPT_DATA,this._stateScriptData(t)}}_stateScriptDataEndTagOpen(t){ys(t)?(this.state=q.SCRIPT_DATA_END_TAG_NAME,this._stateScriptDataEndTagName(t)):(this._emitChars("</"),this.state=q.SCRIPT_DATA,this._stateScriptData(t))}_stateScriptDataEndTagName(t){this.handleSpecialEndTag(t)&&(this._emitChars("</"),this.state=q.SCRIPT_DATA,this._stateScriptData(t))}_stateScriptDataEscapeStart(t){t===H.HYPHEN_MINUS?(this.state=q.SCRIPT_DATA_ESCAPE_START_DASH,this._emitChars("-")):(this.state=q.SCRIPT_DATA,this._stateScriptData(t))}_stateScriptDataEscapeStartDash(t){t===H.HYPHEN_MINUS?(this.state=q.SCRIPT_DATA_ESCAPED_DASH_DASH,this._emitChars("-")):(this.state=q.SCRIPT_DATA,this._stateScriptData(t))}_stateScriptDataEscaped(t){switch(t){case H.HYPHEN_MINUS:{this.state=q.SCRIPT_DATA_ESCAPED_DASH,this._emitChars("-");break}case H.LESS_THAN_SIGN:{this.state=q.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN;break}case H.NULL:{this._err(ve.unexpectedNullCharacter),this._emitChars($n);break}case H.EOF:{this._err(ve.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateScriptDataEscapedDash(t){switch(t){case H.HYPHEN_MINUS:{this.state=q.SCRIPT_DATA_ESCAPED_DASH_DASH,this._emitChars("-");break}case H.LESS_THAN_SIGN:{this.state=q.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN;break}case H.NULL:{this._err(ve.unexpectedNullCharacter),this.state=q.SCRIPT_DATA_ESCAPED,this._emitChars($n);break}case H.EOF:{this._err(ve.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this.state=q.SCRIPT_DATA_ESCAPED,this._emitCodePoint(t)}}_stateScriptDataEscapedDashDash(t){switch(t){case H.HYPHEN_MINUS:{this._emitChars("-");break}case H.LESS_THAN_SIGN:{this.state=q.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN;break}case H.GREATER_THAN_SIGN:{this.state=q.SCRIPT_DATA,this._emitChars(">");break}case H.NULL:{this._err(ve.unexpectedNullCharacter),this.state=q.SCRIPT_DATA_ESCAPED,this._emitChars($n);break}case H.EOF:{this._err(ve.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this.state=q.SCRIPT_DATA_ESCAPED,this._emitCodePoint(t)}}_stateScriptDataEscapedLessThanSign(t){t===H.SOLIDUS?this.state=q.SCRIPT_DATA_ESCAPED_END_TAG_OPEN:ys(t)?(this._emitChars("<"),this.state=q.SCRIPT_DATA_DOUBLE_ESCAPE_START,this._stateScriptDataDoubleEscapeStart(t)):(this._emitChars("<"),this.state=q.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(t))}_stateScriptDataEscapedEndTagOpen(t){ys(t)?(this.state=q.SCRIPT_DATA_ESCAPED_END_TAG_NAME,this._stateScriptDataEscapedEndTagName(t)):(this._emitChars("</"),this.state=q.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(t))}_stateScriptDataEscapedEndTagName(t){this.handleSpecialEndTag(t)&&(this._emitChars("</"),this.state=q.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(t))}_stateScriptDataDoubleEscapeStart(t){if(this.preprocessor.startsWith(oa.SCRIPT,!1)&&Zk(this.preprocessor.peek(oa.SCRIPT.length))){this._emitCodePoint(t);for(let n=0;n<oa.SCRIPT.length;n++)this._emitCodePoint(this._consume());this.state=q.SCRIPT_DATA_DOUBLE_ESCAPED}else this._ensureHibernation()||(this.state=q.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(t))}_stateScriptDataDoubleEscaped(t){switch(t){case H.HYPHEN_MINUS:{this.state=q.SCRIPT_DATA_DOUBLE_ESCAPED_DASH,this._emitChars("-");break}case H.LESS_THAN_SIGN:{this.state=q.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN,this._emitChars("<");break}case H.NULL:{this._err(ve.unexpectedNullCharacter),this._emitChars($n);break}case H.EOF:{this._err(ve.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateScriptDataDoubleEscapedDash(t){switch(t){case H.HYPHEN_MINUS:{this.state=q.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH,this._emitChars("-");break}case H.LESS_THAN_SIGN:{this.state=q.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN,this._emitChars("<");break}case H.NULL:{this._err(ve.unexpectedNullCharacter),this.state=q.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitChars($n);break}case H.EOF:{this._err(ve.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this.state=q.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitCodePoint(t)}}_stateScriptDataDoubleEscapedDashDash(t){switch(t){case H.HYPHEN_MINUS:{this._emitChars("-");break}case H.LESS_THAN_SIGN:{this.state=q.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN,this._emitChars("<");break}case H.GREATER_THAN_SIGN:{this.state=q.SCRIPT_DATA,this._emitChars(">");break}case H.NULL:{this._err(ve.unexpectedNullCharacter),this.state=q.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitChars($n);break}case H.EOF:{this._err(ve.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this.state=q.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitCodePoint(t)}}_stateScriptDataDoubleEscapedLessThanSign(t){t===H.SOLIDUS?(this.state=q.SCRIPT_DATA_DOUBLE_ESCAPE_END,this._emitChars("/")):(this.state=q.SCRIPT_DATA_DOUBLE_ESCAPED,this._stateScriptDataDoubleEscaped(t))}_stateScriptDataDoubleEscapeEnd(t){if(this.preprocessor.startsWith(oa.SCRIPT,!1)&&Zk(this.preprocessor.peek(oa.SCRIPT.length))){this._emitCodePoint(t);for(let n=0;n<oa.SCRIPT.length;n++)this._emitCodePoint(this._consume());this.state=q.SCRIPT_DATA_ESCAPED}else this._ensureHibernation()||(this.state=q.SCRIPT_DATA_DOUBLE_ESCAPED,this._stateScriptDataDoubleEscaped(t))}_stateBeforeAttributeName(t){switch(t){case H.SPACE:case H.LINE_FEED:case H.TABULATION:case H.FORM_FEED:break;case H.SOLIDUS:case H.GREATER_THAN_SIGN:case H.EOF:{this.state=q.AFTER_ATTRIBUTE_NAME,this._stateAfterAttributeName(t);break}case H.EQUALS_SIGN:{this._err(ve.unexpectedEqualsSignBeforeAttributeName),this._createAttr("="),this.state=q.ATTRIBUTE_NAME;break}default:this._createAttr(""),this.state=q.ATTRIBUTE_NAME,this._stateAttributeName(t)}}_stateAttributeName(t){switch(t){case H.SPACE:case H.LINE_FEED:case H.TABULATION:case H.FORM_FEED:case H.SOLIDUS:case H.GREATER_THAN_SIGN:case H.EOF:{this._leaveAttrName(),this.state=q.AFTER_ATTRIBUTE_NAME,this._stateAfterAttributeName(t);break}case H.EQUALS_SIGN:{this._leaveAttrName(),this.state=q.BEFORE_ATTRIBUTE_VALUE;break}case H.QUOTATION_MARK:case H.APOSTROPHE:case H.LESS_THAN_SIGN:{this._err(ve.unexpectedCharacterInAttributeName),this.currentAttr.name+=String.fromCodePoint(t);break}case H.NULL:{this._err(ve.unexpectedNullCharacter),this.currentAttr.name+=$n;break}default:this.currentAttr.name+=String.fromCodePoint(ff(t)?xm(t):t)}}_stateAfterAttributeName(t){switch(t){case H.SPACE:case H.LINE_FEED:case H.TABULATION:case H.FORM_FEED:break;case H.SOLIDUS:{this.state=q.SELF_CLOSING_START_TAG;break}case H.EQUALS_SIGN:{this.state=q.BEFORE_ATTRIBUTE_VALUE;break}case H.GREATER_THAN_SIGN:{this.state=q.DATA,this.emitCurrentTagToken();break}case H.EOF:{this._err(ve.eofInTag),this._emitEOFToken();break}default:this._createAttr(""),this.state=q.ATTRIBUTE_NAME,this._stateAttributeName(t)}}_stateBeforeAttributeValue(t){switch(t){case H.SPACE:case H.LINE_FEED:case H.TABULATION:case H.FORM_FEED:break;case H.QUOTATION_MARK:{this.state=q.ATTRIBUTE_VALUE_DOUBLE_QUOTED;break}case H.APOSTROPHE:{this.state=q.ATTRIBUTE_VALUE_SINGLE_QUOTED;break}case H.GREATER_THAN_SIGN:{this._err(ve.missingAttributeValue),this.state=q.DATA,this.emitCurrentTagToken();break}default:this.state=q.ATTRIBUTE_VALUE_UNQUOTED,this._stateAttributeValueUnquoted(t)}}_stateAttributeValueDoubleQuoted(t){switch(t){case H.QUOTATION_MARK:{this.state=q.AFTER_ATTRIBUTE_VALUE_QUOTED;break}case H.AMPERSAND:{this._startCharacterReference();break}case H.NULL:{this._err(ve.unexpectedNullCharacter),this.currentAttr.value+=$n;break}case H.EOF:{this._err(ve.eofInTag),this._emitEOFToken();break}default:this.currentAttr.value+=String.fromCodePoint(t)}}_stateAttributeValueSingleQuoted(t){switch(t){case H.APOSTROPHE:{this.state=q.AFTER_ATTRIBUTE_VALUE_QUOTED;break}case H.AMPERSAND:{this._startCharacterReference();break}case H.NULL:{this._err(ve.unexpectedNullCharacter),this.currentAttr.value+=$n;break}case H.EOF:{this._err(ve.eofInTag),this._emitEOFToken();break}default:this.currentAttr.value+=String.fromCodePoint(t)}}_stateAttributeValueUnquoted(t){switch(t){case H.SPACE:case H.LINE_FEED:case H.TABULATION:case H.FORM_FEED:{this._leaveAttrValue(),this.state=q.BEFORE_ATTRIBUTE_NAME;break}case H.AMPERSAND:{this._startCharacterReference();break}case H.GREATER_THAN_SIGN:{this._leaveAttrValue(),this.state=q.DATA,this.emitCurrentTagToken();break}case H.NULL:{this._err(ve.unexpectedNullCharacter),this.currentAttr.value+=$n;break}case H.QUOTATION_MARK:case H.APOSTROPHE:case H.LESS_THAN_SIGN:case H.EQUALS_SIGN:case H.GRAVE_ACCENT:{this._err(ve.unexpectedCharacterInUnquotedAttributeValue),this.currentAttr.value+=String.fromCodePoint(t);break}case H.EOF:{this._err(ve.eofInTag),this._emitEOFToken();break}default:this.currentAttr.value+=String.fromCodePoint(t)}}_stateAfterAttributeValueQuoted(t){switch(t){case H.SPACE:case H.LINE_FEED:case H.TABULATION:case H.FORM_FEED:{this._leaveAttrValue(),this.state=q.BEFORE_ATTRIBUTE_NAME;break}case H.SOLIDUS:{this._leaveAttrValue(),this.state=q.SELF_CLOSING_START_TAG;break}case H.GREATER_THAN_SIGN:{this._leaveAttrValue(),this.state=q.DATA,this.emitCurrentTagToken();break}case H.EOF:{this._err(ve.eofInTag),this._emitEOFToken();break}default:this._err(ve.missingWhitespaceBetweenAttributes),this.state=q.BEFORE_ATTRIBUTE_NAME,this._stateBeforeAttributeName(t)}}_stateSelfClosingStartTag(t){switch(t){case H.GREATER_THAN_SIGN:{const n=this.currentToken;n.selfClosing=!0,this.state=q.DATA,this.emitCurrentTagToken();break}case H.EOF:{this._err(ve.eofInTag),this._emitEOFToken();break}default:this._err(ve.unexpectedSolidusInTag),this.state=q.BEFORE_ATTRIBUTE_NAME,this._stateBeforeAttributeName(t)}}_stateBogusComment(t){const n=this.currentToken;switch(t){case H.GREATER_THAN_SIGN:{this.state=q.DATA,this.emitCurrentComment(n);break}case H.EOF:{this.emitCurrentComment(n),this._emitEOFToken();break}case H.NULL:{this._err(ve.unexpectedNullCharacter),n.data+=$n;break}default:n.data+=String.fromCodePoint(t)}}_stateMarkupDeclarationOpen(t){this._consumeSequenceIfMatch(oa.DASH_DASH,!0)?(this._createCommentToken(oa.DASH_DASH.length+1),this.state=q.COMMENT_START):this._consumeSequenceIfMatch(oa.DOCTYPE,!1)?(this.currentLocation=this.getCurrentLocation(oa.DOCTYPE.length+1),this.state=q.DOCTYPE):this._consumeSequenceIfMatch(oa.CDATA_START,!0)?this.inForeignNode?this.state=q.CDATA_SECTION:(this._err(ve.cdataInHtmlContent),this._createCommentToken(oa.CDATA_START.length+1),this.currentToken.data="[CDATA[",this.state=q.BOGUS_COMMENT):this._ensureHibernation()||(this._err(ve.incorrectlyOpenedComment),this._createCommentToken(2),this.state=q.BOGUS_COMMENT,this._stateBogusComment(t))}_stateCommentStart(t){switch(t){case H.HYPHEN_MINUS:{this.state=q.COMMENT_START_DASH;break}case H.GREATER_THAN_SIGN:{this._err(ve.abruptClosingOfEmptyComment),this.state=q.DATA;const n=this.currentToken;this.emitCurrentComment(n);break}default:this.state=q.COMMENT,this._stateComment(t)}}_stateCommentStartDash(t){const n=this.currentToken;switch(t){case H.HYPHEN_MINUS:{this.state=q.COMMENT_END;break}case H.GREATER_THAN_SIGN:{this._err(ve.abruptClosingOfEmptyComment),this.state=q.DATA,this.emitCurrentComment(n);break}case H.EOF:{this._err(ve.eofInComment),this.emitCurrentComment(n),this._emitEOFToken();break}default:n.data+="-",this.state=q.COMMENT,this._stateComment(t)}}_stateComment(t){const n=this.currentToken;switch(t){case H.HYPHEN_MINUS:{this.state=q.COMMENT_END_DASH;break}case H.LESS_THAN_SIGN:{n.data+="<",this.state=q.COMMENT_LESS_THAN_SIGN;break}case H.NULL:{this._err(ve.unexpectedNullCharacter),n.data+=$n;break}case H.EOF:{this._err(ve.eofInComment),this.emitCurrentComment(n),this._emitEOFToken();break}default:n.data+=String.fromCodePoint(t)}}_stateCommentLessThanSign(t){const n=this.currentToken;switch(t){case H.EXCLAMATION_MARK:{n.data+="!",this.state=q.COMMENT_LESS_THAN_SIGN_BANG;break}case H.LESS_THAN_SIGN:{n.data+="<";break}default:this.state=q.COMMENT,this._stateComment(t)}}_stateCommentLessThanSignBang(t){t===H.HYPHEN_MINUS?this.state=q.COMMENT_LESS_THAN_SIGN_BANG_DASH:(this.state=q.COMMENT,this._stateComment(t))}_stateCommentLessThanSignBangDash(t){t===H.HYPHEN_MINUS?this.state=q.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH:(this.state=q.COMMENT_END_DASH,this._stateCommentEndDash(t))}_stateCommentLessThanSignBangDashDash(t){t!==H.GREATER_THAN_SIGN&&t!==H.EOF&&this._err(ve.nestedComment),this.state=q.COMMENT_END,this._stateCommentEnd(t)}_stateCommentEndDash(t){const n=this.currentToken;switch(t){case H.HYPHEN_MINUS:{this.state=q.COMMENT_END;break}case H.EOF:{this._err(ve.eofInComment),this.emitCurrentComment(n),this._emitEOFToken();break}default:n.data+="-",this.state=q.COMMENT,this._stateComment(t)}}_stateCommentEnd(t){const n=this.currentToken;switch(t){case H.GREATER_THAN_SIGN:{this.state=q.DATA,this.emitCurrentComment(n);break}case H.EXCLAMATION_MARK:{this.state=q.COMMENT_END_BANG;break}case H.HYPHEN_MINUS:{n.data+="-";break}case H.EOF:{this._err(ve.eofInComment),this.emitCurrentComment(n),this._emitEOFToken();break}default:n.data+="--",this.state=q.COMMENT,this._stateComment(t)}}_stateCommentEndBang(t){const n=this.currentToken;switch(t){case H.HYPHEN_MINUS:{n.data+="--!",this.state=q.COMMENT_END_DASH;break}case H.GREATER_THAN_SIGN:{this._err(ve.incorrectlyClosedComment),this.state=q.DATA,this.emitCurrentComment(n);break}case H.EOF:{this._err(ve.eofInComment),this.emitCurrentComment(n),this._emitEOFToken();break}default:n.data+="--!",this.state=q.COMMENT,this._stateComment(t)}}_stateDoctype(t){switch(t){case H.SPACE:case H.LINE_FEED:case H.TABULATION:case H.FORM_FEED:{this.state=q.BEFORE_DOCTYPE_NAME;break}case H.GREATER_THAN_SIGN:{this.state=q.BEFORE_DOCTYPE_NAME,this._stateBeforeDoctypeName(t);break}case H.EOF:{this._err(ve.eofInDoctype),this._createDoctypeToken(null);const n=this.currentToken;n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(ve.missingWhitespaceBeforeDoctypeName),this.state=q.BEFORE_DOCTYPE_NAME,this._stateBeforeDoctypeName(t)}}_stateBeforeDoctypeName(t){if(ff(t))this._createDoctypeToken(String.fromCharCode(xm(t))),this.state=q.DOCTYPE_NAME;else switch(t){case H.SPACE:case H.LINE_FEED:case H.TABULATION:case H.FORM_FEED:break;case H.NULL:{this._err(ve.unexpectedNullCharacter),this._createDoctypeToken($n),this.state=q.DOCTYPE_NAME;break}case H.GREATER_THAN_SIGN:{this._err(ve.missingDoctypeName),this._createDoctypeToken(null);const n=this.currentToken;n.forceQuirks=!0,this.emitCurrentDoctype(n),this.state=q.DATA;break}case H.EOF:{this._err(ve.eofInDoctype),this._createDoctypeToken(null);const n=this.currentToken;n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._createDoctypeToken(String.fromCodePoint(t)),this.state=q.DOCTYPE_NAME}}_stateDoctypeName(t){const n=this.currentToken;switch(t){case H.SPACE:case H.LINE_FEED:case H.TABULATION:case H.FORM_FEED:{this.state=q.AFTER_DOCTYPE_NAME;break}case H.GREATER_THAN_SIGN:{this.state=q.DATA,this.emitCurrentDoctype(n);break}case H.NULL:{this._err(ve.unexpectedNullCharacter),n.name+=$n;break}case H.EOF:{this._err(ve.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:n.name+=String.fromCodePoint(ff(t)?xm(t):t)}}_stateAfterDoctypeName(t){const n=this.currentToken;switch(t){case H.SPACE:case H.LINE_FEED:case H.TABULATION:case H.FORM_FEED:break;case H.GREATER_THAN_SIGN:{this.state=q.DATA,this.emitCurrentDoctype(n);break}case H.EOF:{this._err(ve.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._consumeSequenceIfMatch(oa.PUBLIC,!1)?this.state=q.AFTER_DOCTYPE_PUBLIC_KEYWORD:this._consumeSequenceIfMatch(oa.SYSTEM,!1)?this.state=q.AFTER_DOCTYPE_SYSTEM_KEYWORD:this._ensureHibernation()||(this._err(ve.invalidCharacterSequenceAfterDoctypeName),n.forceQuirks=!0,this.state=q.BOGUS_DOCTYPE,this._stateBogusDoctype(t))}}_stateAfterDoctypePublicKeyword(t){const n=this.currentToken;switch(t){case H.SPACE:case H.LINE_FEED:case H.TABULATION:case H.FORM_FEED:{this.state=q.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER;break}case H.QUOTATION_MARK:{this._err(ve.missingWhitespaceAfterDoctypePublicKeyword),n.publicId="",this.state=q.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED;break}case H.APOSTROPHE:{this._err(ve.missingWhitespaceAfterDoctypePublicKeyword),n.publicId="",this.state=q.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED;break}case H.GREATER_THAN_SIGN:{this._err(ve.missingDoctypePublicIdentifier),n.forceQuirks=!0,this.state=q.DATA,this.emitCurrentDoctype(n);break}case H.EOF:{this._err(ve.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(ve.missingQuoteBeforeDoctypePublicIdentifier),n.forceQuirks=!0,this.state=q.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateBeforeDoctypePublicIdentifier(t){const n=this.currentToken;switch(t){case H.SPACE:case H.LINE_FEED:case H.TABULATION:case H.FORM_FEED:break;case H.QUOTATION_MARK:{n.publicId="",this.state=q.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED;break}case H.APOSTROPHE:{n.publicId="",this.state=q.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED;break}case H.GREATER_THAN_SIGN:{this._err(ve.missingDoctypePublicIdentifier),n.forceQuirks=!0,this.state=q.DATA,this.emitCurrentDoctype(n);break}case H.EOF:{this._err(ve.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(ve.missingQuoteBeforeDoctypePublicIdentifier),n.forceQuirks=!0,this.state=q.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateDoctypePublicIdentifierDoubleQuoted(t){const n=this.currentToken;switch(t){case H.QUOTATION_MARK:{this.state=q.AFTER_DOCTYPE_PUBLIC_IDENTIFIER;break}case H.NULL:{this._err(ve.unexpectedNullCharacter),n.publicId+=$n;break}case H.GREATER_THAN_SIGN:{this._err(ve.abruptDoctypePublicIdentifier),n.forceQuirks=!0,this.emitCurrentDoctype(n),this.state=q.DATA;break}case H.EOF:{this._err(ve.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:n.publicId+=String.fromCodePoint(t)}}_stateDoctypePublicIdentifierSingleQuoted(t){const n=this.currentToken;switch(t){case H.APOSTROPHE:{this.state=q.AFTER_DOCTYPE_PUBLIC_IDENTIFIER;break}case H.NULL:{this._err(ve.unexpectedNullCharacter),n.publicId+=$n;break}case H.GREATER_THAN_SIGN:{this._err(ve.abruptDoctypePublicIdentifier),n.forceQuirks=!0,this.emitCurrentDoctype(n),this.state=q.DATA;break}case H.EOF:{this._err(ve.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:n.publicId+=String.fromCodePoint(t)}}_stateAfterDoctypePublicIdentifier(t){const n=this.currentToken;switch(t){case H.SPACE:case H.LINE_FEED:case H.TABULATION:case H.FORM_FEED:{this.state=q.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS;break}case H.GREATER_THAN_SIGN:{this.state=q.DATA,this.emitCurrentDoctype(n);break}case H.QUOTATION_MARK:{this._err(ve.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers),n.systemId="",this.state=q.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break}case H.APOSTROPHE:{this._err(ve.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers),n.systemId="",this.state=q.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break}case H.EOF:{this._err(ve.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(ve.missingQuoteBeforeDoctypeSystemIdentifier),n.forceQuirks=!0,this.state=q.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateBetweenDoctypePublicAndSystemIdentifiers(t){const n=this.currentToken;switch(t){case H.SPACE:case H.LINE_FEED:case H.TABULATION:case H.FORM_FEED:break;case H.GREATER_THAN_SIGN:{this.emitCurrentDoctype(n),this.state=q.DATA;break}case H.QUOTATION_MARK:{n.systemId="",this.state=q.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break}case H.APOSTROPHE:{n.systemId="",this.state=q.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break}case H.EOF:{this._err(ve.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(ve.missingQuoteBeforeDoctypeSystemIdentifier),n.forceQuirks=!0,this.state=q.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateAfterDoctypeSystemKeyword(t){const n=this.currentToken;switch(t){case H.SPACE:case H.LINE_FEED:case H.TABULATION:case H.FORM_FEED:{this.state=q.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER;break}case H.QUOTATION_MARK:{this._err(ve.missingWhitespaceAfterDoctypeSystemKeyword),n.systemId="",this.state=q.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break}case H.APOSTROPHE:{this._err(ve.missingWhitespaceAfterDoctypeSystemKeyword),n.systemId="",this.state=q.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break}case H.GREATER_THAN_SIGN:{this._err(ve.missingDoctypeSystemIdentifier),n.forceQuirks=!0,this.state=q.DATA,this.emitCurrentDoctype(n);break}case H.EOF:{this._err(ve.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(ve.missingQuoteBeforeDoctypeSystemIdentifier),n.forceQuirks=!0,this.state=q.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateBeforeDoctypeSystemIdentifier(t){const n=this.currentToken;switch(t){case H.SPACE:case H.LINE_FEED:case H.TABULATION:case H.FORM_FEED:break;case H.QUOTATION_MARK:{n.systemId="",this.state=q.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break}case H.APOSTROPHE:{n.systemId="",this.state=q.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break}case H.GREATER_THAN_SIGN:{this._err(ve.missingDoctypeSystemIdentifier),n.forceQuirks=!0,this.state=q.DATA,this.emitCurrentDoctype(n);break}case H.EOF:{this._err(ve.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(ve.missingQuoteBeforeDoctypeSystemIdentifier),n.forceQuirks=!0,this.state=q.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateDoctypeSystemIdentifierDoubleQuoted(t){const n=this.currentToken;switch(t){case H.QUOTATION_MARK:{this.state=q.AFTER_DOCTYPE_SYSTEM_IDENTIFIER;break}case H.NULL:{this._err(ve.unexpectedNullCharacter),n.systemId+=$n;break}case H.GREATER_THAN_SIGN:{this._err(ve.abruptDoctypeSystemIdentifier),n.forceQuirks=!0,this.emitCurrentDoctype(n),this.state=q.DATA;break}case H.EOF:{this._err(ve.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:n.systemId+=String.fromCodePoint(t)}}_stateDoctypeSystemIdentifierSingleQuoted(t){const n=this.currentToken;switch(t){case H.APOSTROPHE:{this.state=q.AFTER_DOCTYPE_SYSTEM_IDENTIFIER;break}case H.NULL:{this._err(ve.unexpectedNullCharacter),n.systemId+=$n;break}case H.GREATER_THAN_SIGN:{this._err(ve.abruptDoctypeSystemIdentifier),n.forceQuirks=!0,this.emitCurrentDoctype(n),this.state=q.DATA;break}case H.EOF:{this._err(ve.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:n.systemId+=String.fromCodePoint(t)}}_stateAfterDoctypeSystemIdentifier(t){const n=this.currentToken;switch(t){case H.SPACE:case H.LINE_FEED:case H.TABULATION:case H.FORM_FEED:break;case H.GREATER_THAN_SIGN:{this.emitCurrentDoctype(n),this.state=q.DATA;break}case H.EOF:{this._err(ve.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(ve.unexpectedCharacterAfterDoctypeSystemIdentifier),this.state=q.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateBogusDoctype(t){const n=this.currentToken;switch(t){case H.GREATER_THAN_SIGN:{this.emitCurrentDoctype(n),this.state=q.DATA;break}case H.NULL:{this._err(ve.unexpectedNullCharacter);break}case H.EOF:{this.emitCurrentDoctype(n),this._emitEOFToken();break}}}_stateCdataSection(t){switch(t){case H.RIGHT_SQUARE_BRACKET:{this.state=q.CDATA_SECTION_BRACKET;break}case H.EOF:{this._err(ve.eofInCdata),this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateCdataSectionBracket(t){t===H.RIGHT_SQUARE_BRACKET?this.state=q.CDATA_SECTION_END:(this._emitChars("]"),this.state=q.CDATA_SECTION,this._stateCdataSection(t))}_stateCdataSectionEnd(t){switch(t){case H.GREATER_THAN_SIGN:{this.state=q.DATA;break}case H.RIGHT_SQUARE_BRACKET:{this._emitChars("]");break}default:this._emitChars("]]"),this.state=q.CDATA_SECTION,this._stateCdataSection(t)}}_stateCharacterReference(){let t=this.entityDecoder.write(this.preprocessor.html,this.preprocessor.pos);if(t<0)if(this.preprocessor.lastChunkWritten)t=this.entityDecoder.end();else{this.active=!1,this.preprocessor.pos=this.preprocessor.html.length-1,this.consumedAfterSnapshot=0,this.preprocessor.endOfChunkHit=!0;return}t===0?(this.preprocessor.pos=this.entityStartPos,this._flushCodePointConsumedAsCharacterReference(H.AMPERSAND),this.state=!this._isCharacterReferenceInAttribute()&&Xk(this.preprocessor.peek(1))?q.AMBIGUOUS_AMPERSAND:this.returnState):this.state=this.returnState}_stateAmbiguousAmpersand(t){Xk(t)?this._flushCodePointConsumedAsCharacterReference(t):(t===H.SEMICOLON&&this._err(ve.unknownNamedCharacterReference),this.state=this.returnState,this._callState(t))}};const E4=new Set([C.DD,C.DT,C.LI,C.OPTGROUP,C.OPTION,C.P,C.RB,C.RP,C.RT,C.RTC]),Jk=new Set([...E4,C.CAPTION,C.COLGROUP,C.TBODY,C.TD,C.TFOOT,C.TH,C.THEAD,C.TR]),jg=new Set([C.APPLET,C.CAPTION,C.HTML,C.MARQUEE,C.OBJECT,C.TABLE,C.TD,C.TEMPLATE,C.TH]),Ire=new Set([...jg,C.OL,C.UL]),Nre=new Set([...jg,C.BUTTON]),eR=new Set([C.ANNOTATION_XML,C.MI,C.MN,C.MO,C.MS,C.MTEXT]),tR=new Set([C.DESC,C.FOREIGN_OBJECT,C.TITLE]),Lre=new Set([C.TR,C.TEMPLATE,C.HTML]),Pre=new Set([C.TBODY,C.TFOOT,C.THEAD,C.TEMPLATE,C.HTML]),Mre=new Set([C.TABLE,C.TEMPLATE,C.HTML]),$re=new Set([C.TD,C.TH]);let Fre=class{get currentTmplContentOrNode(){return this._isInTemplate()?this.treeAdapter.getTemplateContent(this.current):this.current}constructor(t,n,r){this.treeAdapter=n,this.handler=r,this.items=[],this.tagIDs=[],this.stackTop=-1,this.tmplCount=0,this.currentTagId=C.UNKNOWN,this.current=t}_indexOf(t){return this.items.lastIndexOf(t,this.stackTop)}_isInTemplate(){return this.currentTagId===C.TEMPLATE&&this.treeAdapter.getNamespaceURI(this.current)===Re.HTML}_updateCurrentElement(){this.current=this.items[this.stackTop],this.currentTagId=this.tagIDs[this.stackTop]}push(t,n){this.stackTop++,this.items[this.stackTop]=t,this.current=t,this.tagIDs[this.stackTop]=n,this.currentTagId=n,this._isInTemplate()&&this.tmplCount++,this.handler.onItemPush(t,n,!0)}pop(){const t=this.current;this.tmplCount>0&&this._isInTemplate()&&this.tmplCount--,this.stackTop--,this._updateCurrentElement(),this.handler.onItemPop(t,!0)}replace(t,n){const r=this._indexOf(t);this.items[r]=n,r===this.stackTop&&(this.current=n)}insertAfter(t,n,r){const a=this._indexOf(t)+1;this.items.splice(a,0,n),this.tagIDs.splice(a,0,r),this.stackTop++,a===this.stackTop&&this._updateCurrentElement(),this.current&&this.currentTagId!==void 0&&this.handler.onItemPush(this.current,this.currentTagId,a===this.stackTop)}popUntilTagNamePopped(t){let n=this.stackTop+1;do n=this.tagIDs.lastIndexOf(t,n-1);while(n>0&&this.treeAdapter.getNamespaceURI(this.items[n])!==Re.HTML);this.shortenToLength(Math.max(n,0))}shortenToLength(t){for(;this.stackTop>=t;){const n=this.current;this.tmplCount>0&&this._isInTemplate()&&(this.tmplCount-=1),this.stackTop--,this._updateCurrentElement(),this.handler.onItemPop(n,this.stackTop<t)}}popUntilElementPopped(t){const n=this._indexOf(t);this.shortenToLength(Math.max(n,0))}popUntilPopped(t,n){const r=this._indexOfTagNames(t,n);this.shortenToLength(Math.max(r,0))}popUntilNumberedHeaderPopped(){this.popUntilPopped(ZE,Re.HTML)}popUntilTableCellPopped(){this.popUntilPopped($re,Re.HTML)}popAllUpToHtmlElement(){this.tmplCount=0,this.shortenToLength(1)}_indexOfTagNames(t,n){for(let r=this.stackTop;r>=0;r--)if(t.has(this.tagIDs[r])&&this.treeAdapter.getNamespaceURI(this.items[r])===n)return r;return-1}clearBackTo(t,n){const r=this._indexOfTagNames(t,n);this.shortenToLength(r+1)}clearBackToTableContext(){this.clearBackTo(Mre,Re.HTML)}clearBackToTableBodyContext(){this.clearBackTo(Pre,Re.HTML)}clearBackToTableRowContext(){this.clearBackTo(Lre,Re.HTML)}remove(t){const n=this._indexOf(t);n>=0&&(n===this.stackTop?this.pop():(this.items.splice(n,1),this.tagIDs.splice(n,1),this.stackTop--,this._updateCurrentElement(),this.handler.onItemPop(t,!1)))}tryPeekProperlyNestedBodyElement(){return this.stackTop>=1&&this.tagIDs[1]===C.BODY?this.items[1]:null}contains(t){return this._indexOf(t)>-1}getCommonAncestor(t){const n=this._indexOf(t)-1;return n>=0?this.items[n]:null}isRootHtmlElementCurrent(){return this.stackTop===0&&this.tagIDs[0]===C.HTML}hasInDynamicScope(t,n){for(let r=this.stackTop;r>=0;r--){const a=this.tagIDs[r];switch(this.treeAdapter.getNamespaceURI(this.items[r])){case Re.HTML:{if(a===t)return!0;if(n.has(a))return!1;break}case Re.SVG:{if(tR.has(a))return!1;break}case Re.MATHML:{if(eR.has(a))return!1;break}}}return!0}hasInScope(t){return this.hasInDynamicScope(t,jg)}hasInListItemScope(t){return this.hasInDynamicScope(t,Ire)}hasInButtonScope(t){return this.hasInDynamicScope(t,Nre)}hasNumberedHeaderInScope(){for(let t=this.stackTop;t>=0;t--){const n=this.tagIDs[t];switch(this.treeAdapter.getNamespaceURI(this.items[t])){case Re.HTML:{if(ZE.has(n))return!0;if(jg.has(n))return!1;break}case Re.SVG:{if(tR.has(n))return!1;break}case Re.MATHML:{if(eR.has(n))return!1;break}}}return!0}hasInTableScope(t){for(let n=this.stackTop;n>=0;n--)if(this.treeAdapter.getNamespaceURI(this.items[n])===Re.HTML)switch(this.tagIDs[n]){case t:return!0;case C.TABLE:case C.HTML:return!1}return!0}hasTableBodyContextInTableScope(){for(let t=this.stackTop;t>=0;t--)if(this.treeAdapter.getNamespaceURI(this.items[t])===Re.HTML)switch(this.tagIDs[t]){case C.TBODY:case C.THEAD:case C.TFOOT:return!0;case C.TABLE:case C.HTML:return!1}return!0}hasInSelectScope(t){for(let n=this.stackTop;n>=0;n--)if(this.treeAdapter.getNamespaceURI(this.items[n])===Re.HTML)switch(this.tagIDs[n]){case t:return!0;case C.OPTION:case C.OPTGROUP:break;default:return!1}return!0}generateImpliedEndTags(){for(;this.currentTagId!==void 0&&E4.has(this.currentTagId);)this.pop()}generateImpliedEndTagsThoroughly(){for(;this.currentTagId!==void 0&&Jk.has(this.currentTagId);)this.pop()}generateImpliedEndTagsWithExclusion(t){for(;this.currentTagId!==void 0&&this.currentTagId!==t&&Jk.has(this.currentTagId);)this.pop()}};var Vo;(function(e){e[e.Marker=0]="Marker",e[e.Element=1]="Element"})(Vo||(Vo={}));const nR={type:Vo.Marker};let Bre=class{constructor(t){this.treeAdapter=t,this.entries=[],this.bookmark=null}_getNoahArkConditionCandidates(t,n){const r=[],a=n.length,o=this.treeAdapter.getTagName(t),s=this.treeAdapter.getNamespaceURI(t);for(let c=0;c<this.entries.length;c++){const u=this.entries[c];if(u.type===Vo.Marker)break;const{element:d}=u;if(this.treeAdapter.getTagName(d)===o&&this.treeAdapter.getNamespaceURI(d)===s){const p=this.treeAdapter.getAttrList(d);p.length===a&&r.push({idx:c,attrs:p})}}return r}_ensureNoahArkCondition(t){if(this.entries.length<3)return;const n=this.treeAdapter.getAttrList(t),r=this._getNoahArkConditionCandidates(t,n);if(r.length<3)return;const a=new Map(n.map(s=>[s.name,s.value]));let o=0;for(let s=0;s<r.length;s++){const c=r[s];c.attrs.every(u=>a.get(u.name)===u.value)&&(o+=1,o>=3&&this.entries.splice(c.idx,1))}}insertMarker(){this.entries.unshift(nR)}pushElement(t,n){this._ensureNoahArkCondition(t),this.entries.unshift({type:Vo.Element,element:t,token:n})}insertElementAfterBookmark(t,n){const r=this.entries.indexOf(this.bookmark);this.entries.splice(r,0,{type:Vo.Element,element:t,token:n})}removeEntry(t){const n=this.entries.indexOf(t);n!==-1&&this.entries.splice(n,1)}clearToLastMarker(){const t=this.entries.indexOf(nR);t===-1?this.entries.length=0:this.entries.splice(0,t+1)}getElementEntryInScopeWithTagName(t){const n=this.entries.find(r=>r.type===Vo.Marker||this.treeAdapter.getTagName(r.element)===t);return n&&n.type===Vo.Element?n:null}getElementEntry(t){return this.entries.find(n=>n.type===Vo.Element&&n.element===t)}};const vs={createDocument(){return{nodeName:"#document",mode:no.NO_QUIRKS,childNodes:[]}},createDocumentFragment(){return{nodeName:"#document-fragment",childNodes:[]}},createElement(e,t,n){return{nodeName:e,tagName:e,attrs:n,namespaceURI:t,childNodes:[],parentNode:null}},createCommentNode(e){return{nodeName:"#comment",data:e,parentNode:null}},createTextNode(e){return{nodeName:"#text",value:e,parentNode:null}},appendChild(e,t){e.childNodes.push(t),t.parentNode=e},insertBefore(e,t,n){const r=e.childNodes.indexOf(n);e.childNodes.splice(r,0,t),t.parentNode=e},setTemplateContent(e,t){e.content=t},getTemplateContent(e){return e.content},setDocumentType(e,t,n,r){const a=e.childNodes.find(o=>o.nodeName==="#documentType");if(a)a.name=t,a.publicId=n,a.systemId=r;else{const o={nodeName:"#documentType",name:t,publicId:n,systemId:r,parentNode:null};vs.appendChild(e,o)}},setDocumentMode(e,t){e.mode=t},getDocumentMode(e){return e.mode},detachNode(e){if(e.parentNode){const t=e.parentNode.childNodes.indexOf(e);e.parentNode.childNodes.splice(t,1),e.parentNode=null}},insertText(e,t){if(e.childNodes.length>0){const n=e.childNodes[e.childNodes.length-1];if(vs.isTextNode(n)){n.value+=t;return}}vs.appendChild(e,vs.createTextNode(t))},insertTextBefore(e,t,n){const r=e.childNodes[e.childNodes.indexOf(n)-1];r&&vs.isTextNode(r)?r.value+=t:vs.insertBefore(e,vs.createTextNode(t),n)},adoptAttributes(e,t){const n=new Set(e.attrs.map(r=>r.name));for(let r=0;r<t.length;r++)n.has(t[r].name)||e.attrs.push(t[r])},getFirstChild(e){return e.childNodes[0]},getChildNodes(e){return e.childNodes},getParentNode(e){return e.parentNode},getAttrList(e){return e.attrs},getTagName(e){return e.tagName},getNamespaceURI(e){return e.namespaceURI},getTextNodeContent(e){return e.value},getCommentNodeContent(e){return e.data},getDocumentTypeNodeName(e){return e.name},getDocumentTypeNodePublicId(e){return e.publicId},getDocumentTypeNodeSystemId(e){return e.systemId},isTextNode(e){return e.nodeName==="#text"},isCommentNode(e){return e.nodeName==="#comment"},isDocumentTypeNode(e){return e.nodeName==="#documentType"},isElementNode(e){return Object.prototype.hasOwnProperty.call(e,"tagName")},setNodeSourceCodeLocation(e,t){e.sourceCodeLocation=t},getNodeSourceCodeLocation(e){return e.sourceCodeLocation},updateNodeSourceCodeLocation(e,t){e.sourceCodeLocation={...e.sourceCodeLocation,...t}}},T4="html",Ure="about:legacy-compat",jre="http://www.ibm.com/data/dtd/v11/ibmxhtml1-transitional.dtd",S4=["+//silmaril//dtd html pro v0r11 19970101//","-//as//dtd html 3.0 aswedit + extensions//","-//advasoft ltd//dtd html 3.0 aswedit + extensions//","-//ietf//dtd html 2.0 level 1//","-//ietf//dtd html 2.0 level 2//","-//ietf//dtd html 2.0 strict level 1//","-//ietf//dtd html 2.0 strict level 2//","-//ietf//dtd html 2.0 strict//","-//ietf//dtd html 2.0//","-//ietf//dtd html 2.1e//","-//ietf//dtd html 3.0//","-//ietf//dtd html 3.2 final//","-//ietf//dtd html 3.2//","-//ietf//dtd html 3//","-//ietf//dtd html level 0//","-//ietf//dtd html level 1//","-//ietf//dtd html level 2//","-//ietf//dtd html level 3//","-//ietf//dtd html strict level 0//","-//ietf//dtd html strict level 1//","-//ietf//dtd html strict level 2//","-//ietf//dtd html strict level 3//","-//ietf//dtd html strict//","-//ietf//dtd html//","-//metrius//dtd metrius presentational//","-//microsoft//dtd internet explorer 2.0 html strict//","-//microsoft//dtd internet explorer 2.0 html//","-//microsoft//dtd internet explorer 2.0 tables//","-//microsoft//dtd internet explorer 3.0 html strict//","-//microsoft//dtd internet explorer 3.0 html//","-//microsoft//dtd internet explorer 3.0 tables//","-//netscape comm. corp.//dtd html//","-//netscape comm. corp.//dtd strict html//","-//o'reilly and associates//dtd html 2.0//","-//o'reilly and associates//dtd html extended 1.0//","-//o'reilly and associates//dtd html extended relaxed 1.0//","-//sq//dtd html 2.0 hotmetal + extensions//","-//softquad software//dtd hotmetal pro 6.0::19990601::extensions to html 4.0//","-//softquad//dtd hotmetal pro 4.0::19971010::extensions to html 4.0//","-//spyglass//dtd html 2.0 extended//","-//sun microsystems corp.//dtd hotjava html//","-//sun microsystems corp.//dtd hotjava strict html//","-//w3c//dtd html 3 1995-03-24//","-//w3c//dtd html 3.2 draft//","-//w3c//dtd html 3.2 final//","-//w3c//dtd html 3.2//","-//w3c//dtd html 3.2s draft//","-//w3c//dtd html 4.0 frameset//","-//w3c//dtd html 4.0 transitional//","-//w3c//dtd html experimental 19960712//","-//w3c//dtd html experimental 970421//","-//w3c//dtd w3 html//","-//w3o//dtd w3 html 3.0//","-//webtechs//dtd mozilla html 2.0//","-//webtechs//dtd mozilla html//"],Hre=[...S4,"-//w3c//dtd html 4.01 frameset//","-//w3c//dtd html 4.01 transitional//"],zre=new Set(["-//w3o//dtd w3 html strict 3.0//en//","-/w3c/dtd html 4.0 transitional/en","html"]),_4=["-//w3c//dtd xhtml 1.0 frameset//","-//w3c//dtd xhtml 1.0 transitional//"],Vre=[..._4,"-//w3c//dtd html 4.01 frameset//","-//w3c//dtd html 4.01 transitional//"];function rR(e,t){return t.some(n=>e.startsWith(n))}function Gre(e){return e.name===T4&&e.publicId===null&&(e.systemId===null||e.systemId===Ure)}function qre(e){if(e.name!==T4)return no.QUIRKS;const{systemId:t}=e;if(t&&t.toLowerCase()===jre)return no.QUIRKS;let{publicId:n}=e;if(n!==null){if(n=n.toLowerCase(),zre.has(n))return no.QUIRKS;let r=t===null?Hre:S4;if(rR(n,r))return no.QUIRKS;if(r=t===null?_4:Vre,rR(n,r))return no.LIMITED_QUIRKS}return no.NO_QUIRKS}const aR={TEXT_HTML:"text/html",APPLICATION_XML:"application/xhtml+xml"},Wre="definitionurl",Yre="definitionURL",Qre=new Map(["attributeName","attributeType","baseFrequency","baseProfile","calcMode","clipPathUnits","diffuseConstant","edgeMode","filterUnits","glyphRef","gradientTransform","gradientUnits","kernelMatrix","kernelUnitLength","keyPoints","keySplines","keyTimes","lengthAdjust","limitingConeAngle","markerHeight","markerUnits","markerWidth","maskContentUnits","maskUnits","numOctaves","pathLength","patternContentUnits","patternTransform","patternUnits","pointsAtX","pointsAtY","pointsAtZ","preserveAlpha","preserveAspectRatio","primitiveUnits","refX","refY","repeatCount","repeatDur","requiredExtensions","requiredFeatures","specularConstant","specularExponent","spreadMethod","startOffset","stdDeviation","stitchTiles","surfaceScale","systemLanguage","tableValues","targetX","targetY","textLength","viewBox","viewTarget","xChannelSelector","yChannelSelector","zoomAndPan"].map(e=>[e.toLowerCase(),e])),Kre=new Map([["xlink:actuate",{prefix:"xlink",name:"actuate",namespace:Re.XLINK}],["xlink:arcrole",{prefix:"xlink",name:"arcrole",namespace:Re.XLINK}],["xlink:href",{prefix:"xlink",name:"href",namespace:Re.XLINK}],["xlink:role",{prefix:"xlink",name:"role",namespace:Re.XLINK}],["xlink:show",{prefix:"xlink",name:"show",namespace:Re.XLINK}],["xlink:title",{prefix:"xlink",name:"title",namespace:Re.XLINK}],["xlink:type",{prefix:"xlink",name:"type",namespace:Re.XLINK}],["xml:lang",{prefix:"xml",name:"lang",namespace:Re.XML}],["xml:space",{prefix:"xml",name:"space",namespace:Re.XML}],["xmlns",{prefix:"",name:"xmlns",namespace:Re.XMLNS}],["xmlns:xlink",{prefix:"xmlns",name:"xlink",namespace:Re.XMLNS}]]),Xre=new Map(["altGlyph","altGlyphDef","altGlyphItem","animateColor","animateMotion","animateTransform","clipPath","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","foreignObject","glyphRef","linearGradient","radialGradient","textPath"].map(e=>[e.toLowerCase(),e])),Zre=new Set([C.B,C.BIG,C.BLOCKQUOTE,C.BODY,C.BR,C.CENTER,C.CODE,C.DD,C.DIV,C.DL,C.DT,C.EM,C.EMBED,C.H1,C.H2,C.H3,C.H4,C.H5,C.H6,C.HEAD,C.HR,C.I,C.IMG,C.LI,C.LISTING,C.MENU,C.META,C.NOBR,C.OL,C.P,C.PRE,C.RUBY,C.S,C.SMALL,C.SPAN,C.STRONG,C.STRIKE,C.SUB,C.SUP,C.TABLE,C.TT,C.U,C.UL,C.VAR]);function Jre(e){const t=e.tagID;return t===C.FONT&&e.attrs.some(({name:n})=>n===Al.COLOR||n===Al.SIZE||n===Al.FACE)||Zre.has(t)}function C4(e){for(let t=0;t<e.attrs.length;t++)if(e.attrs[t].name===Wre){e.attrs[t].name=Yre;break}}function A4(e){for(let t=0;t<e.attrs.length;t++){const n=Qre.get(e.attrs[t].name);n!=null&&(e.attrs[t].name=n)}}function s_(e){for(let t=0;t<e.attrs.length;t++){const n=Kre.get(e.attrs[t].name);n&&(e.attrs[t].prefix=n.prefix,e.attrs[t].name=n.name,e.attrs[t].namespace=n.namespace)}}function eae(e){const t=Xre.get(e.tagName);t!=null&&(e.tagName=t,e.tagID=wu(e.tagName))}function tae(e,t){return t===Re.MATHML&&(e===C.MI||e===C.MO||e===C.MN||e===C.MS||e===C.MTEXT)}function nae(e,t,n){if(t===Re.MATHML&&e===C.ANNOTATION_XML){for(let r=0;r<n.length;r++)if(n[r].name===Al.ENCODING){const a=n[r].value.toLowerCase();return a===aR.TEXT_HTML||a===aR.APPLICATION_XML}}return t===Re.SVG&&(e===C.FOREIGN_OBJECT||e===C.DESC||e===C.TITLE)}function rae(e,t,n,r){return(!r||r===Re.HTML)&&nae(e,t,n)||(!r||r===Re.MATHML)&&tae(e,t)}const aae="hidden",oae=8,iae=3;var W;(function(e){e[e.INITIAL=0]="INITIAL",e[e.BEFORE_HTML=1]="BEFORE_HTML",e[e.BEFORE_HEAD=2]="BEFORE_HEAD",e[e.IN_HEAD=3]="IN_HEAD",e[e.IN_HEAD_NO_SCRIPT=4]="IN_HEAD_NO_SCRIPT",e[e.AFTER_HEAD=5]="AFTER_HEAD",e[e.IN_BODY=6]="IN_BODY",e[e.TEXT=7]="TEXT",e[e.IN_TABLE=8]="IN_TABLE",e[e.IN_TABLE_TEXT=9]="IN_TABLE_TEXT",e[e.IN_CAPTION=10]="IN_CAPTION",e[e.IN_COLUMN_GROUP=11]="IN_COLUMN_GROUP",e[e.IN_TABLE_BODY=12]="IN_TABLE_BODY",e[e.IN_ROW=13]="IN_ROW",e[e.IN_CELL=14]="IN_CELL",e[e.IN_SELECT=15]="IN_SELECT",e[e.IN_SELECT_IN_TABLE=16]="IN_SELECT_IN_TABLE",e[e.IN_TEMPLATE=17]="IN_TEMPLATE",e[e.AFTER_BODY=18]="AFTER_BODY",e[e.IN_FRAMESET=19]="IN_FRAMESET",e[e.AFTER_FRAMESET=20]="AFTER_FRAMESET",e[e.AFTER_AFTER_BODY=21]="AFTER_AFTER_BODY",e[e.AFTER_AFTER_FRAMESET=22]="AFTER_AFTER_FRAMESET"})(W||(W={}));const sae={startLine:-1,startCol:-1,startOffset:-1,endLine:-1,endCol:-1,endOffset:-1},x4=new Set([C.TABLE,C.TBODY,C.TFOOT,C.THEAD,C.TR]),oR={scriptingEnabled:!0,sourceCodeLocationInfo:!1,treeAdapter:vs,onParseError:null};class iR{constructor(t,n,r=null,a=null){this.fragmentContext=r,this.scriptHandler=a,this.currentToken=null,this.stopped=!1,this.insertionMode=W.INITIAL,this.originalInsertionMode=W.INITIAL,this.headElement=null,this.formElement=null,this.currentNotInHTML=!1,this.tmplInsertionModeStack=[],this.pendingCharacterTokens=[],this.hasNonWhitespacePendingCharacterToken=!1,this.framesetOk=!0,this.skipNextNewLine=!1,this.fosterParentingEnabled=!1,this.options={...oR,...t},this.treeAdapter=this.options.treeAdapter,this.onParseError=this.options.onParseError,this.onParseError&&(this.options.sourceCodeLocationInfo=!0),this.document=n??this.treeAdapter.createDocument(),this.tokenizer=new Ore(this.options,this),this.activeFormattingElements=new Bre(this.treeAdapter),this.fragmentContextID=r?wu(this.treeAdapter.getTagName(r)):C.UNKNOWN,this._setContextModes(r??this.document,this.fragmentContextID),this.openElements=new Fre(this.document,this.treeAdapter,this)}static parse(t,n){const r=new this(n);return r.tokenizer.write(t,!0),r.document}static getFragmentParser(t,n){const r={...oR,...n};t??(t=r.treeAdapter.createElement(le.TEMPLATE,Re.HTML,[]));const a=r.treeAdapter.createElement("documentmock",Re.HTML,[]),o=new this(r,a,t);return o.fragmentContextID===C.TEMPLATE&&o.tmplInsertionModeStack.unshift(W.IN_TEMPLATE),o._initTokenizerForFragmentParsing(),o._insertFakeRootElement(),o._resetInsertionMode(),o._findFormInFragmentContext(),o}getFragment(){const t=this.treeAdapter.getFirstChild(this.document),n=this.treeAdapter.createDocumentFragment();return this._adoptNodes(t,n),n}_err(t,n,r){var a;if(!this.onParseError)return;const o=(a=t.location)!==null&&a!==void 0?a:sae,s={code:n,startLine:o.startLine,startCol:o.startCol,startOffset:o.startOffset,endLine:r?o.startLine:o.endLine,endCol:r?o.startCol:o.endCol,endOffset:r?o.startOffset:o.endOffset};this.onParseError(s)}onItemPush(t,n,r){var a,o;(o=(a=this.treeAdapter).onItemPush)===null||o===void 0||o.call(a,t),r&&this.openElements.stackTop>0&&this._setContextModes(t,n)}onItemPop(t,n){var r,a;if(this.options.sourceCodeLocationInfo&&this._setEndLocation(t,this.currentToken),(a=(r=this.treeAdapter).onItemPop)===null||a===void 0||a.call(r,t,this.openElements.current),n){let o,s;this.openElements.stackTop===0&&this.fragmentContext?(o=this.fragmentContext,s=this.fragmentContextID):{current:o,currentTagId:s}=this.openElements,this._setContextModes(o,s)}}_setContextModes(t,n){const r=t===this.document||t&&this.treeAdapter.getNamespaceURI(t)===Re.HTML;this.currentNotInHTML=!r,this.tokenizer.inForeignNode=!r&&t!==void 0&&n!==void 0&&!this._isIntegrationPoint(n,t)}_switchToTextParsing(t,n){this._insertElement(t,Re.HTML),this.tokenizer.state=n,this.originalInsertionMode=this.insertionMode,this.insertionMode=W.TEXT}switchToPlaintextParsing(){this.insertionMode=W.TEXT,this.originalInsertionMode=W.IN_BODY,this.tokenizer.state=er.PLAINTEXT}_getAdjustedCurrentElement(){return this.openElements.stackTop===0&&this.fragmentContext?this.fragmentContext:this.openElements.current}_findFormInFragmentContext(){let t=this.fragmentContext;for(;t;){if(this.treeAdapter.getTagName(t)===le.FORM){this.formElement=t;break}t=this.treeAdapter.getParentNode(t)}}_initTokenizerForFragmentParsing(){if(!(!this.fragmentContext||this.treeAdapter.getNamespaceURI(this.fragmentContext)!==Re.HTML))switch(this.fragmentContextID){case C.TITLE:case C.TEXTAREA:{this.tokenizer.state=er.RCDATA;break}case C.STYLE:case C.XMP:case C.IFRAME:case C.NOEMBED:case C.NOFRAMES:case C.NOSCRIPT:{this.tokenizer.state=er.RAWTEXT;break}case C.SCRIPT:{this.tokenizer.state=er.SCRIPT_DATA;break}case C.PLAINTEXT:{this.tokenizer.state=er.PLAINTEXT;break}}}_setDocumentType(t){const n=t.name||"",r=t.publicId||"",a=t.systemId||"";if(this.treeAdapter.setDocumentType(this.document,n,r,a),t.location){const o=this.treeAdapter.getChildNodes(this.document).find(s=>this.treeAdapter.isDocumentTypeNode(s));o&&this.treeAdapter.setNodeSourceCodeLocation(o,t.location)}}_attachElementToTree(t,n){if(this.options.sourceCodeLocationInfo){const r=n&&{...n,startTag:n};this.treeAdapter.setNodeSourceCodeLocation(t,r)}if(this._shouldFosterParentOnInsertion())this._fosterParentElement(t);else{const r=this.openElements.currentTmplContentOrNode;this.treeAdapter.appendChild(r??this.document,t)}}_appendElement(t,n){const r=this.treeAdapter.createElement(t.tagName,n,t.attrs);this._attachElementToTree(r,t.location)}_insertElement(t,n){const r=this.treeAdapter.createElement(t.tagName,n,t.attrs);this._attachElementToTree(r,t.location),this.openElements.push(r,t.tagID)}_insertFakeElement(t,n){const r=this.treeAdapter.createElement(t,Re.HTML,[]);this._attachElementToTree(r,null),this.openElements.push(r,n)}_insertTemplate(t){const n=this.treeAdapter.createElement(t.tagName,Re.HTML,t.attrs),r=this.treeAdapter.createDocumentFragment();this.treeAdapter.setTemplateContent(n,r),this._attachElementToTree(n,t.location),this.openElements.push(n,t.tagID),this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(r,null)}_insertFakeRootElement(){const t=this.treeAdapter.createElement(le.HTML,Re.HTML,[]);this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(t,null),this.treeAdapter.appendChild(this.openElements.current,t),this.openElements.push(t,C.HTML)}_appendCommentNode(t,n){const r=this.treeAdapter.createCommentNode(t.data);this.treeAdapter.appendChild(n,r),this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(r,t.location)}_insertCharacters(t){let n,r;if(this._shouldFosterParentOnInsertion()?({parent:n,beforeElement:r}=this._findFosterParentingLocation(),r?this.treeAdapter.insertTextBefore(n,t.chars,r):this.treeAdapter.insertText(n,t.chars)):(n=this.openElements.currentTmplContentOrNode,this.treeAdapter.insertText(n,t.chars)),!t.location)return;const a=this.treeAdapter.getChildNodes(n),o=r?a.lastIndexOf(r):a.length,s=a[o-1];if(this.treeAdapter.getNodeSourceCodeLocation(s)){const{endLine:c,endCol:u,endOffset:d}=t.location;this.treeAdapter.updateNodeSourceCodeLocation(s,{endLine:c,endCol:u,endOffset:d})}else this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(s,t.location)}_adoptNodes(t,n){for(let r=this.treeAdapter.getFirstChild(t);r;r=this.treeAdapter.getFirstChild(t))this.treeAdapter.detachNode(r),this.treeAdapter.appendChild(n,r)}_setEndLocation(t,n){if(this.treeAdapter.getNodeSourceCodeLocation(t)&&n.location){const r=n.location,a=this.treeAdapter.getTagName(t),o=n.type===$t.END_TAG&&a===n.tagName?{endTag:{...r},endLine:r.endLine,endCol:r.endCol,endOffset:r.endOffset}:{endLine:r.startLine,endCol:r.startCol,endOffset:r.startOffset};this.treeAdapter.updateNodeSourceCodeLocation(t,o)}}shouldProcessStartTagTokenInForeignContent(t){if(!this.currentNotInHTML)return!1;let n,r;return this.openElements.stackTop===0&&this.fragmentContext?(n=this.fragmentContext,r=this.fragmentContextID):{current:n,currentTagId:r}=this.openElements,t.tagID===C.SVG&&this.treeAdapter.getTagName(n)===le.ANNOTATION_XML&&this.treeAdapter.getNamespaceURI(n)===Re.MATHML?!1:this.tokenizer.inForeignNode||(t.tagID===C.MGLYPH||t.tagID===C.MALIGNMARK)&&r!==void 0&&!this._isIntegrationPoint(r,n,Re.HTML)}_processToken(t){switch(t.type){case $t.CHARACTER:{this.onCharacter(t);break}case $t.NULL_CHARACTER:{this.onNullCharacter(t);break}case $t.COMMENT:{this.onComment(t);break}case $t.DOCTYPE:{this.onDoctype(t);break}case $t.START_TAG:{this._processStartTag(t);break}case $t.END_TAG:{this.onEndTag(t);break}case $t.EOF:{this.onEof(t);break}case $t.WHITESPACE_CHARACTER:{this.onWhitespaceCharacter(t);break}}}_isIntegrationPoint(t,n,r){const a=this.treeAdapter.getNamespaceURI(n),o=this.treeAdapter.getAttrList(n);return rae(t,a,o,r)}_reconstructActiveFormattingElements(){const t=this.activeFormattingElements.entries.length;if(t){const n=this.activeFormattingElements.entries.findIndex(a=>a.type===Vo.Marker||this.openElements.contains(a.element)),r=n===-1?t-1:n-1;for(let a=r;a>=0;a--){const o=this.activeFormattingElements.entries[a];this._insertElement(o.token,this.treeAdapter.getNamespaceURI(o.element)),o.element=this.openElements.current}}}_closeTableCell(){this.openElements.generateImpliedEndTags(),this.openElements.popUntilTableCellPopped(),this.activeFormattingElements.clearToLastMarker(),this.insertionMode=W.IN_ROW}_closePElement(){this.openElements.generateImpliedEndTagsWithExclusion(C.P),this.openElements.popUntilTagNamePopped(C.P)}_resetInsertionMode(){for(let t=this.openElements.stackTop;t>=0;t--)switch(t===0&&this.fragmentContext?this.fragmentContextID:this.openElements.tagIDs[t]){case C.TR:{this.insertionMode=W.IN_ROW;return}case C.TBODY:case C.THEAD:case C.TFOOT:{this.insertionMode=W.IN_TABLE_BODY;return}case C.CAPTION:{this.insertionMode=W.IN_CAPTION;return}case C.COLGROUP:{this.insertionMode=W.IN_COLUMN_GROUP;return}case C.TABLE:{this.insertionMode=W.IN_TABLE;return}case C.BODY:{this.insertionMode=W.IN_BODY;return}case C.FRAMESET:{this.insertionMode=W.IN_FRAMESET;return}case C.SELECT:{this._resetInsertionModeForSelect(t);return}case C.TEMPLATE:{this.insertionMode=this.tmplInsertionModeStack[0];return}case C.HTML:{this.insertionMode=this.headElement?W.AFTER_HEAD:W.BEFORE_HEAD;return}case C.TD:case C.TH:{if(t>0){this.insertionMode=W.IN_CELL;return}break}case C.HEAD:{if(t>0){this.insertionMode=W.IN_HEAD;return}break}}this.insertionMode=W.IN_BODY}_resetInsertionModeForSelect(t){if(t>0)for(let n=t-1;n>0;n--){const r=this.openElements.tagIDs[n];if(r===C.TEMPLATE)break;if(r===C.TABLE){this.insertionMode=W.IN_SELECT_IN_TABLE;return}}this.insertionMode=W.IN_SELECT}_isElementCausesFosterParenting(t){return x4.has(t)}_shouldFosterParentOnInsertion(){return this.fosterParentingEnabled&&this.openElements.currentTagId!==void 0&&this._isElementCausesFosterParenting(this.openElements.currentTagId)}_findFosterParentingLocation(){for(let t=this.openElements.stackTop;t>=0;t--){const n=this.openElements.items[t];switch(this.openElements.tagIDs[t]){case C.TEMPLATE:{if(this.treeAdapter.getNamespaceURI(n)===Re.HTML)return{parent:this.treeAdapter.getTemplateContent(n),beforeElement:null};break}case C.TABLE:{const r=this.treeAdapter.getParentNode(n);return r?{parent:r,beforeElement:n}:{parent:this.openElements.items[t-1],beforeElement:null}}}}return{parent:this.openElements.items[0],beforeElement:null}}_fosterParentElement(t){const n=this._findFosterParentingLocation();n.beforeElement?this.treeAdapter.insertBefore(n.parent,t,n.beforeElement):this.treeAdapter.appendChild(n.parent,t)}_isSpecialElement(t,n){const r=this.treeAdapter.getNamespaceURI(t);return xre[r].has(n)}onCharacter(t){if(this.skipNextNewLine=!1,this.tokenizer.inForeignNode){$oe(this,t);return}switch(this.insertionMode){case W.INITIAL:{Wd(this,t);break}case W.BEFORE_HTML:{Cf(this,t);break}case W.BEFORE_HEAD:{Af(this,t);break}case W.IN_HEAD:{xf(this,t);break}case W.IN_HEAD_NO_SCRIPT:{wf(this,t);break}case W.AFTER_HEAD:{Df(this,t);break}case W.IN_BODY:case W.IN_CAPTION:case W.IN_CELL:case W.IN_TEMPLATE:{D4(this,t);break}case W.TEXT:case W.IN_SELECT:case W.IN_SELECT_IN_TABLE:{this._insertCharacters(t);break}case W.IN_TABLE:case W.IN_TABLE_BODY:case W.IN_ROW:{Eb(this,t);break}case W.IN_TABLE_TEXT:{L4(this,t);break}case W.IN_COLUMN_GROUP:{Hg(this,t);break}case W.AFTER_BODY:{zg(this,t);break}case W.AFTER_AFTER_BODY:{Zm(this,t);break}}}onNullCharacter(t){if(this.skipNextNewLine=!1,this.tokenizer.inForeignNode){Moe(this,t);return}switch(this.insertionMode){case W.INITIAL:{Wd(this,t);break}case W.BEFORE_HTML:{Cf(this,t);break}case W.BEFORE_HEAD:{Af(this,t);break}case W.IN_HEAD:{xf(this,t);break}case W.IN_HEAD_NO_SCRIPT:{wf(this,t);break}case W.AFTER_HEAD:{Df(this,t);break}case W.TEXT:{this._insertCharacters(t);break}case W.IN_TABLE:case W.IN_TABLE_BODY:case W.IN_ROW:{Eb(this,t);break}case W.IN_COLUMN_GROUP:{Hg(this,t);break}case W.AFTER_BODY:{zg(this,t);break}case W.AFTER_AFTER_BODY:{Zm(this,t);break}}}onComment(t){if(this.skipNextNewLine=!1,this.currentNotInHTML){JE(this,t);return}switch(this.insertionMode){case W.INITIAL:case W.BEFORE_HTML:case W.BEFORE_HEAD:case W.IN_HEAD:case W.IN_HEAD_NO_SCRIPT:case W.AFTER_HEAD:case W.IN_BODY:case W.IN_TABLE:case W.IN_CAPTION:case W.IN_COLUMN_GROUP:case W.IN_TABLE_BODY:case W.IN_ROW:case W.IN_CELL:case W.IN_SELECT:case W.IN_SELECT_IN_TABLE:case W.IN_TEMPLATE:case W.IN_FRAMESET:case W.AFTER_FRAMESET:{JE(this,t);break}case W.IN_TABLE_TEXT:{Yd(this,t);break}case W.AFTER_BODY:{hae(this,t);break}case W.AFTER_AFTER_BODY:case W.AFTER_AFTER_FRAMESET:{mae(this,t);break}}}onDoctype(t){switch(this.skipNextNewLine=!1,this.insertionMode){case W.INITIAL:{gae(this,t);break}case W.BEFORE_HEAD:case W.IN_HEAD:case W.IN_HEAD_NO_SCRIPT:case W.AFTER_HEAD:{this._err(t,ve.misplacedDoctype);break}case W.IN_TABLE_TEXT:{Yd(this,t);break}}}onStartTag(t){this.skipNextNewLine=!1,this.currentToken=t,this._processStartTag(t),t.selfClosing&&!t.ackSelfClosing&&this._err(t,ve.nonVoidHtmlElementStartTagWithTrailingSolidus)}_processStartTag(t){this.shouldProcessStartTagTokenInForeignContent(t)?Foe(this,t):this._startTagOutsideForeignContent(t)}_startTagOutsideForeignContent(t){switch(this.insertionMode){case W.INITIAL:{Wd(this,t);break}case W.BEFORE_HTML:{yae(this,t);break}case W.BEFORE_HEAD:{bae(this,t);break}case W.IN_HEAD:{xo(this,t);break}case W.IN_HEAD_NO_SCRIPT:{Sae(this,t);break}case W.AFTER_HEAD:{Cae(this,t);break}case W.IN_BODY:{Ur(this,t);break}case W.IN_TABLE:{hu(this,t);break}case W.IN_TABLE_TEXT:{Yd(this,t);break}case W.IN_CAPTION:{Eoe(this,t);break}case W.IN_COLUMN_GROUP:{u_(this,t);break}case W.IN_TABLE_BODY:{Ky(this,t);break}case W.IN_ROW:{Xy(this,t);break}case W.IN_CELL:{_oe(this,t);break}case W.IN_SELECT:{$4(this,t);break}case W.IN_SELECT_IN_TABLE:{Aoe(this,t);break}case W.IN_TEMPLATE:{woe(this,t);break}case W.AFTER_BODY:{koe(this,t);break}case W.IN_FRAMESET:{Roe(this,t);break}case W.AFTER_FRAMESET:{Ioe(this,t);break}case W.AFTER_AFTER_BODY:{Loe(this,t);break}case W.AFTER_AFTER_FRAMESET:{Poe(this,t);break}}}onEndTag(t){this.skipNextNewLine=!1,this.currentToken=t,this.currentNotInHTML?Boe(this,t):this._endTagOutsideForeignContent(t)}_endTagOutsideForeignContent(t){switch(this.insertionMode){case W.INITIAL:{Wd(this,t);break}case W.BEFORE_HTML:{vae(this,t);break}case W.BEFORE_HEAD:{Eae(this,t);break}case W.IN_HEAD:{Tae(this,t);break}case W.IN_HEAD_NO_SCRIPT:{_ae(this,t);break}case W.AFTER_HEAD:{Aae(this,t);break}case W.IN_BODY:{Qy(this,t);break}case W.TEXT:{uoe(this,t);break}case W.IN_TABLE:{ap(this,t);break}case W.IN_TABLE_TEXT:{Yd(this,t);break}case W.IN_CAPTION:{Toe(this,t);break}case W.IN_COLUMN_GROUP:{Soe(this,t);break}case W.IN_TABLE_BODY:{eT(this,t);break}case W.IN_ROW:{M4(this,t);break}case W.IN_CELL:{Coe(this,t);break}case W.IN_SELECT:{F4(this,t);break}case W.IN_SELECT_IN_TABLE:{xoe(this,t);break}case W.IN_TEMPLATE:{Doe(this,t);break}case W.AFTER_BODY:{U4(this,t);break}case W.IN_FRAMESET:{Ooe(this,t);break}case W.AFTER_FRAMESET:{Noe(this,t);break}case W.AFTER_AFTER_BODY:{Zm(this,t);break}}}onEof(t){switch(this.insertionMode){case W.INITIAL:{Wd(this,t);break}case W.BEFORE_HTML:{Cf(this,t);break}case W.BEFORE_HEAD:{Af(this,t);break}case W.IN_HEAD:{xf(this,t);break}case W.IN_HEAD_NO_SCRIPT:{wf(this,t);break}case W.AFTER_HEAD:{Df(this,t);break}case W.IN_BODY:case W.IN_TABLE:case W.IN_CAPTION:case W.IN_COLUMN_GROUP:case W.IN_TABLE_BODY:case W.IN_ROW:case W.IN_CELL:case W.IN_SELECT:case W.IN_SELECT_IN_TABLE:{I4(this,t);break}case W.TEXT:{doe(this,t);break}case W.IN_TABLE_TEXT:{Yd(this,t);break}case W.IN_TEMPLATE:{B4(this,t);break}case W.AFTER_BODY:case W.IN_FRAMESET:case W.AFTER_FRAMESET:case W.AFTER_AFTER_BODY:case W.AFTER_AFTER_FRAMESET:{c_(this,t);break}}}onWhitespaceCharacter(t){if(this.skipNextNewLine&&(this.skipNextNewLine=!1,t.chars.charCodeAt(0)===H.LINE_FEED)){if(t.chars.length===1)return;t.chars=t.chars.substr(1)}if(this.tokenizer.inForeignNode){this._insertCharacters(t);return}switch(this.insertionMode){case W.IN_HEAD:case W.IN_HEAD_NO_SCRIPT:case W.AFTER_HEAD:case W.TEXT:case W.IN_COLUMN_GROUP:case W.IN_SELECT:case W.IN_SELECT_IN_TABLE:case W.IN_FRAMESET:case W.AFTER_FRAMESET:{this._insertCharacters(t);break}case W.IN_BODY:case W.IN_CAPTION:case W.IN_CELL:case W.IN_TEMPLATE:case W.AFTER_BODY:case W.AFTER_AFTER_BODY:case W.AFTER_AFTER_FRAMESET:{w4(this,t);break}case W.IN_TABLE:case W.IN_TABLE_BODY:case W.IN_ROW:{Eb(this,t);break}case W.IN_TABLE_TEXT:{N4(this,t);break}}}}function lae(e,t){let n=e.activeFormattingElements.getElementEntryInScopeWithTagName(t.tagName);return n?e.openElements.contains(n.element)?e.openElements.hasInScope(t.tagID)||(n=null):(e.activeFormattingElements.removeEntry(n),n=null):O4(e,t),n}function cae(e,t){let n=null,r=e.openElements.stackTop;for(;r>=0;r--){const a=e.openElements.items[r];if(a===t.element)break;e._isSpecialElement(a,e.openElements.tagIDs[r])&&(n=a)}return n||(e.openElements.shortenToLength(Math.max(r,0)),e.activeFormattingElements.removeEntry(t)),n}function uae(e,t,n){let r=t,a=e.openElements.getCommonAncestor(t);for(let o=0,s=a;s!==n;o++,s=a){a=e.openElements.getCommonAncestor(s);const c=e.activeFormattingElements.getElementEntry(s),u=c&&o>=iae;!c||u?(u&&e.activeFormattingElements.removeEntry(c),e.openElements.remove(s)):(s=dae(e,c),r===t&&(e.activeFormattingElements.bookmark=c),e.treeAdapter.detachNode(r),e.treeAdapter.appendChild(s,r),r=s)}return r}function dae(e,t){const n=e.treeAdapter.getNamespaceURI(t.element),r=e.treeAdapter.createElement(t.token.tagName,n,t.token.attrs);return e.openElements.replace(t.element,r),t.element=r,r}function fae(e,t,n){const r=e.treeAdapter.getTagName(t),a=wu(r);if(e._isElementCausesFosterParenting(a))e._fosterParentElement(n);else{const o=e.treeAdapter.getNamespaceURI(t);a===C.TEMPLATE&&o===Re.HTML&&(t=e.treeAdapter.getTemplateContent(t)),e.treeAdapter.appendChild(t,n)}}function pae(e,t,n){const r=e.treeAdapter.getNamespaceURI(n.element),{token:a}=n,o=e.treeAdapter.createElement(a.tagName,r,a.attrs);e._adoptNodes(t,o),e.treeAdapter.appendChild(t,o),e.activeFormattingElements.insertElementAfterBookmark(o,a),e.activeFormattingElements.removeEntry(n),e.openElements.remove(n.element),e.openElements.insertAfter(t,o,a.tagID)}function l_(e,t){for(let n=0;n<oae;n++){const r=lae(e,t);if(!r)break;const a=cae(e,r);if(!a)break;e.activeFormattingElements.bookmark=r;const o=uae(e,a,r.element),s=e.openElements.getCommonAncestor(r.element);e.treeAdapter.detachNode(o),s&&fae(e,s,o),pae(e,a,r)}}function JE(e,t){e._appendCommentNode(t,e.openElements.currentTmplContentOrNode)}function hae(e,t){e._appendCommentNode(t,e.openElements.items[0])}function mae(e,t){e._appendCommentNode(t,e.document)}function c_(e,t){if(e.stopped=!0,t.location){const n=e.fragmentContext?0:2;for(let r=e.openElements.stackTop;r>=n;r--)e._setEndLocation(e.openElements.items[r],t);if(!e.fragmentContext&&e.openElements.stackTop>=0){const r=e.openElements.items[0],a=e.treeAdapter.getNodeSourceCodeLocation(r);if(a&&!a.endTag&&(e._setEndLocation(r,t),e.openElements.stackTop>=1)){const o=e.openElements.items[1],s=e.treeAdapter.getNodeSourceCodeLocation(o);s&&!s.endTag&&e._setEndLocation(o,t)}}}}function gae(e,t){e._setDocumentType(t);const n=t.forceQuirks?no.QUIRKS:qre(t);Gre(t)||e._err(t,ve.nonConformingDoctype),e.treeAdapter.setDocumentMode(e.document,n),e.insertionMode=W.BEFORE_HTML}function Wd(e,t){e._err(t,ve.missingDoctype,!0),e.treeAdapter.setDocumentMode(e.document,no.QUIRKS),e.insertionMode=W.BEFORE_HTML,e._processToken(t)}function yae(e,t){t.tagID===C.HTML?(e._insertElement(t,Re.HTML),e.insertionMode=W.BEFORE_HEAD):Cf(e,t)}function vae(e,t){const n=t.tagID;(n===C.HTML||n===C.HEAD||n===C.BODY||n===C.BR)&&Cf(e,t)}function Cf(e,t){e._insertFakeRootElement(),e.insertionMode=W.BEFORE_HEAD,e._processToken(t)}function bae(e,t){switch(t.tagID){case C.HTML:{Ur(e,t);break}case C.HEAD:{e._insertElement(t,Re.HTML),e.headElement=e.openElements.current,e.insertionMode=W.IN_HEAD;break}default:Af(e,t)}}function Eae(e,t){const n=t.tagID;n===C.HEAD||n===C.BODY||n===C.HTML||n===C.BR?Af(e,t):e._err(t,ve.endTagWithoutMatchingOpenElement)}function Af(e,t){e._insertFakeElement(le.HEAD,C.HEAD),e.headElement=e.openElements.current,e.insertionMode=W.IN_HEAD,e._processToken(t)}function xo(e,t){switch(t.tagID){case C.HTML:{Ur(e,t);break}case C.BASE:case C.BASEFONT:case C.BGSOUND:case C.LINK:case C.META:{e._appendElement(t,Re.HTML),t.ackSelfClosing=!0;break}case C.TITLE:{e._switchToTextParsing(t,er.RCDATA);break}case C.NOSCRIPT:{e.options.scriptingEnabled?e._switchToTextParsing(t,er.RAWTEXT):(e._insertElement(t,Re.HTML),e.insertionMode=W.IN_HEAD_NO_SCRIPT);break}case C.NOFRAMES:case C.STYLE:{e._switchToTextParsing(t,er.RAWTEXT);break}case C.SCRIPT:{e._switchToTextParsing(t,er.SCRIPT_DATA);break}case C.TEMPLATE:{e._insertTemplate(t),e.activeFormattingElements.insertMarker(),e.framesetOk=!1,e.insertionMode=W.IN_TEMPLATE,e.tmplInsertionModeStack.unshift(W.IN_TEMPLATE);break}case C.HEAD:{e._err(t,ve.misplacedStartTagForHeadElement);break}default:xf(e,t)}}function Tae(e,t){switch(t.tagID){case C.HEAD:{e.openElements.pop(),e.insertionMode=W.AFTER_HEAD;break}case C.BODY:case C.BR:case C.HTML:{xf(e,t);break}case C.TEMPLATE:{Hl(e,t);break}default:e._err(t,ve.endTagWithoutMatchingOpenElement)}}function Hl(e,t){e.openElements.tmplCount>0?(e.openElements.generateImpliedEndTagsThoroughly(),e.openElements.currentTagId!==C.TEMPLATE&&e._err(t,ve.closingOfElementWithOpenChildElements),e.openElements.popUntilTagNamePopped(C.TEMPLATE),e.activeFormattingElements.clearToLastMarker(),e.tmplInsertionModeStack.shift(),e._resetInsertionMode()):e._err(t,ve.endTagWithoutMatchingOpenElement)}function xf(e,t){e.openElements.pop(),e.insertionMode=W.AFTER_HEAD,e._processToken(t)}function Sae(e,t){switch(t.tagID){case C.HTML:{Ur(e,t);break}case C.BASEFONT:case C.BGSOUND:case C.HEAD:case C.LINK:case C.META:case C.NOFRAMES:case C.STYLE:{xo(e,t);break}case C.NOSCRIPT:{e._err(t,ve.nestedNoscriptInHead);break}default:wf(e,t)}}function _ae(e,t){switch(t.tagID){case C.NOSCRIPT:{e.openElements.pop(),e.insertionMode=W.IN_HEAD;break}case C.BR:{wf(e,t);break}default:e._err(t,ve.endTagWithoutMatchingOpenElement)}}function wf(e,t){const n=t.type===$t.EOF?ve.openElementsLeftAfterEof:ve.disallowedContentInNoscriptInHead;e._err(t,n),e.openElements.pop(),e.insertionMode=W.IN_HEAD,e._processToken(t)}function Cae(e,t){switch(t.tagID){case C.HTML:{Ur(e,t);break}case C.BODY:{e._insertElement(t,Re.HTML),e.framesetOk=!1,e.insertionMode=W.IN_BODY;break}case C.FRAMESET:{e._insertElement(t,Re.HTML),e.insertionMode=W.IN_FRAMESET;break}case C.BASE:case C.BASEFONT:case C.BGSOUND:case C.LINK:case C.META:case C.NOFRAMES:case C.SCRIPT:case C.STYLE:case C.TEMPLATE:case C.TITLE:{e._err(t,ve.abandonedHeadElementChild),e.openElements.push(e.headElement,C.HEAD),xo(e,t),e.openElements.remove(e.headElement);break}case C.HEAD:{e._err(t,ve.misplacedStartTagForHeadElement);break}default:Df(e,t)}}function Aae(e,t){switch(t.tagID){case C.BODY:case C.HTML:case C.BR:{Df(e,t);break}case C.TEMPLATE:{Hl(e,t);break}default:e._err(t,ve.endTagWithoutMatchingOpenElement)}}function Df(e,t){e._insertFakeElement(le.BODY,C.BODY),e.insertionMode=W.IN_BODY,Yy(e,t)}function Yy(e,t){switch(t.type){case $t.CHARACTER:{D4(e,t);break}case $t.WHITESPACE_CHARACTER:{w4(e,t);break}case $t.COMMENT:{JE(e,t);break}case $t.START_TAG:{Ur(e,t);break}case $t.END_TAG:{Qy(e,t);break}case $t.EOF:{I4(e,t);break}}}function w4(e,t){e._reconstructActiveFormattingElements(),e._insertCharacters(t)}function D4(e,t){e._reconstructActiveFormattingElements(),e._insertCharacters(t),e.framesetOk=!1}function xae(e,t){e.openElements.tmplCount===0&&e.treeAdapter.adoptAttributes(e.openElements.items[0],t.attrs)}function wae(e,t){const n=e.openElements.tryPeekProperlyNestedBodyElement();n&&e.openElements.tmplCount===0&&(e.framesetOk=!1,e.treeAdapter.adoptAttributes(n,t.attrs))}function Dae(e,t){const n=e.openElements.tryPeekProperlyNestedBodyElement();e.framesetOk&&n&&(e.treeAdapter.detachNode(n),e.openElements.popAllUpToHtmlElement(),e._insertElement(t,Re.HTML),e.insertionMode=W.IN_FRAMESET)}function kae(e,t){e.openElements.hasInButtonScope(C.P)&&e._closePElement(),e._insertElement(t,Re.HTML)}function Rae(e,t){e.openElements.hasInButtonScope(C.P)&&e._closePElement(),e.openElements.currentTagId!==void 0&&ZE.has(e.openElements.currentTagId)&&e.openElements.pop(),e._insertElement(t,Re.HTML)}function Oae(e,t){e.openElements.hasInButtonScope(C.P)&&e._closePElement(),e._insertElement(t,Re.HTML),e.skipNextNewLine=!0,e.framesetOk=!1}function Iae(e,t){const n=e.openElements.tmplCount>0;(!e.formElement||n)&&(e.openElements.hasInButtonScope(C.P)&&e._closePElement(),e._insertElement(t,Re.HTML),n||(e.formElement=e.openElements.current))}function Nae(e,t){e.framesetOk=!1;const n=t.tagID;for(let r=e.openElements.stackTop;r>=0;r--){const a=e.openElements.tagIDs[r];if(n===C.LI&&a===C.LI||(n===C.DD||n===C.DT)&&(a===C.DD||a===C.DT)){e.openElements.generateImpliedEndTagsWithExclusion(a),e.openElements.popUntilTagNamePopped(a);break}if(a!==C.ADDRESS&&a!==C.DIV&&a!==C.P&&e._isSpecialElement(e.openElements.items[r],a))break}e.openElements.hasInButtonScope(C.P)&&e._closePElement(),e._insertElement(t,Re.HTML)}function Lae(e,t){e.openElements.hasInButtonScope(C.P)&&e._closePElement(),e._insertElement(t,Re.HTML),e.tokenizer.state=er.PLAINTEXT}function Pae(e,t){e.openElements.hasInScope(C.BUTTON)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(C.BUTTON)),e._reconstructActiveFormattingElements(),e._insertElement(t,Re.HTML),e.framesetOk=!1}function Mae(e,t){const n=e.activeFormattingElements.getElementEntryInScopeWithTagName(le.A);n&&(l_(e,t),e.openElements.remove(n.element),e.activeFormattingElements.removeEntry(n)),e._reconstructActiveFormattingElements(),e._insertElement(t,Re.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}function $ae(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,Re.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}function Fae(e,t){e._reconstructActiveFormattingElements(),e.openElements.hasInScope(C.NOBR)&&(l_(e,t),e._reconstructActiveFormattingElements()),e._insertElement(t,Re.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}function Bae(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,Re.HTML),e.activeFormattingElements.insertMarker(),e.framesetOk=!1}function Uae(e,t){e.treeAdapter.getDocumentMode(e.document)!==no.QUIRKS&&e.openElements.hasInButtonScope(C.P)&&e._closePElement(),e._insertElement(t,Re.HTML),e.framesetOk=!1,e.insertionMode=W.IN_TABLE}function k4(e,t){e._reconstructActiveFormattingElements(),e._appendElement(t,Re.HTML),e.framesetOk=!1,t.ackSelfClosing=!0}function R4(e){const t=v4(e,Al.TYPE);return t!=null&&t.toLowerCase()===aae}function jae(e,t){e._reconstructActiveFormattingElements(),e._appendElement(t,Re.HTML),R4(t)||(e.framesetOk=!1),t.ackSelfClosing=!0}function Hae(e,t){e._appendElement(t,Re.HTML),t.ackSelfClosing=!0}function zae(e,t){e.openElements.hasInButtonScope(C.P)&&e._closePElement(),e._appendElement(t,Re.HTML),e.framesetOk=!1,t.ackSelfClosing=!0}function Vae(e,t){t.tagName=le.IMG,t.tagID=C.IMG,k4(e,t)}function Gae(e,t){e._insertElement(t,Re.HTML),e.skipNextNewLine=!0,e.tokenizer.state=er.RCDATA,e.originalInsertionMode=e.insertionMode,e.framesetOk=!1,e.insertionMode=W.TEXT}function qae(e,t){e.openElements.hasInButtonScope(C.P)&&e._closePElement(),e._reconstructActiveFormattingElements(),e.framesetOk=!1,e._switchToTextParsing(t,er.RAWTEXT)}function Wae(e,t){e.framesetOk=!1,e._switchToTextParsing(t,er.RAWTEXT)}function sR(e,t){e._switchToTextParsing(t,er.RAWTEXT)}function Yae(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,Re.HTML),e.framesetOk=!1,e.insertionMode=e.insertionMode===W.IN_TABLE||e.insertionMode===W.IN_CAPTION||e.insertionMode===W.IN_TABLE_BODY||e.insertionMode===W.IN_ROW||e.insertionMode===W.IN_CELL?W.IN_SELECT_IN_TABLE:W.IN_SELECT}function Qae(e,t){e.openElements.currentTagId===C.OPTION&&e.openElements.pop(),e._reconstructActiveFormattingElements(),e._insertElement(t,Re.HTML)}function Kae(e,t){e.openElements.hasInScope(C.RUBY)&&e.openElements.generateImpliedEndTags(),e._insertElement(t,Re.HTML)}function Xae(e,t){e.openElements.hasInScope(C.RUBY)&&e.openElements.generateImpliedEndTagsWithExclusion(C.RTC),e._insertElement(t,Re.HTML)}function Zae(e,t){e._reconstructActiveFormattingElements(),C4(t),s_(t),t.selfClosing?e._appendElement(t,Re.MATHML):e._insertElement(t,Re.MATHML),t.ackSelfClosing=!0}function Jae(e,t){e._reconstructActiveFormattingElements(),A4(t),s_(t),t.selfClosing?e._appendElement(t,Re.SVG):e._insertElement(t,Re.SVG),t.ackSelfClosing=!0}function lR(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,Re.HTML)}function Ur(e,t){switch(t.tagID){case C.I:case C.S:case C.B:case C.U:case C.EM:case C.TT:case C.BIG:case C.CODE:case C.FONT:case C.SMALL:case C.STRIKE:case C.STRONG:{$ae(e,t);break}case C.A:{Mae(e,t);break}case C.H1:case C.H2:case C.H3:case C.H4:case C.H5:case C.H6:{Rae(e,t);break}case C.P:case C.DL:case C.OL:case C.UL:case C.DIV:case C.DIR:case C.NAV:case C.MAIN:case C.MENU:case C.ASIDE:case C.CENTER:case C.FIGURE:case C.FOOTER:case C.HEADER:case C.HGROUP:case C.DIALOG:case C.DETAILS:case C.ADDRESS:case C.ARTICLE:case C.SEARCH:case C.SECTION:case C.SUMMARY:case C.FIELDSET:case C.BLOCKQUOTE:case C.FIGCAPTION:{kae(e,t);break}case C.LI:case C.DD:case C.DT:{Nae(e,t);break}case C.BR:case C.IMG:case C.WBR:case C.AREA:case C.EMBED:case C.KEYGEN:{k4(e,t);break}case C.HR:{zae(e,t);break}case C.RB:case C.RTC:{Kae(e,t);break}case C.RT:case C.RP:{Xae(e,t);break}case C.PRE:case C.LISTING:{Oae(e,t);break}case C.XMP:{qae(e,t);break}case C.SVG:{Jae(e,t);break}case C.HTML:{xae(e,t);break}case C.BASE:case C.LINK:case C.META:case C.STYLE:case C.TITLE:case C.SCRIPT:case C.BGSOUND:case C.BASEFONT:case C.TEMPLATE:{xo(e,t);break}case C.BODY:{wae(e,t);break}case C.FORM:{Iae(e,t);break}case C.NOBR:{Fae(e,t);break}case C.MATH:{Zae(e,t);break}case C.TABLE:{Uae(e,t);break}case C.INPUT:{jae(e,t);break}case C.PARAM:case C.TRACK:case C.SOURCE:{Hae(e,t);break}case C.IMAGE:{Vae(e,t);break}case C.BUTTON:{Pae(e,t);break}case C.APPLET:case C.OBJECT:case C.MARQUEE:{Bae(e,t);break}case C.IFRAME:{Wae(e,t);break}case C.SELECT:{Yae(e,t);break}case C.OPTION:case C.OPTGROUP:{Qae(e,t);break}case C.NOEMBED:case C.NOFRAMES:{sR(e,t);break}case C.FRAMESET:{Dae(e,t);break}case C.TEXTAREA:{Gae(e,t);break}case C.NOSCRIPT:{e.options.scriptingEnabled?sR(e,t):lR(e,t);break}case C.PLAINTEXT:{Lae(e,t);break}case C.COL:case C.TH:case C.TD:case C.TR:case C.HEAD:case C.FRAME:case C.TBODY:case C.TFOOT:case C.THEAD:case C.CAPTION:case C.COLGROUP:break;default:lR(e,t)}}function eoe(e,t){if(e.openElements.hasInScope(C.BODY)&&(e.insertionMode=W.AFTER_BODY,e.options.sourceCodeLocationInfo)){const n=e.openElements.tryPeekProperlyNestedBodyElement();n&&e._setEndLocation(n,t)}}function toe(e,t){e.openElements.hasInScope(C.BODY)&&(e.insertionMode=W.AFTER_BODY,U4(e,t))}function noe(e,t){const n=t.tagID;e.openElements.hasInScope(n)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(n))}function roe(e){const t=e.openElements.tmplCount>0,{formElement:n}=e;t||(e.formElement=null),(n||t)&&e.openElements.hasInScope(C.FORM)&&(e.openElements.generateImpliedEndTags(),t?e.openElements.popUntilTagNamePopped(C.FORM):n&&e.openElements.remove(n))}function aoe(e){e.openElements.hasInButtonScope(C.P)||e._insertFakeElement(le.P,C.P),e._closePElement()}function ooe(e){e.openElements.hasInListItemScope(C.LI)&&(e.openElements.generateImpliedEndTagsWithExclusion(C.LI),e.openElements.popUntilTagNamePopped(C.LI))}function ioe(e,t){const n=t.tagID;e.openElements.hasInScope(n)&&(e.openElements.generateImpliedEndTagsWithExclusion(n),e.openElements.popUntilTagNamePopped(n))}function soe(e){e.openElements.hasNumberedHeaderInScope()&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilNumberedHeaderPopped())}function loe(e,t){const n=t.tagID;e.openElements.hasInScope(n)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(n),e.activeFormattingElements.clearToLastMarker())}function coe(e){e._reconstructActiveFormattingElements(),e._insertFakeElement(le.BR,C.BR),e.openElements.pop(),e.framesetOk=!1}function O4(e,t){const n=t.tagName,r=t.tagID;for(let a=e.openElements.stackTop;a>0;a--){const o=e.openElements.items[a],s=e.openElements.tagIDs[a];if(r===s&&(r!==C.UNKNOWN||e.treeAdapter.getTagName(o)===n)){e.openElements.generateImpliedEndTagsWithExclusion(r),e.openElements.stackTop>=a&&e.openElements.shortenToLength(a);break}if(e._isSpecialElement(o,s))break}}function Qy(e,t){switch(t.tagID){case C.A:case C.B:case C.I:case C.S:case C.U:case C.EM:case C.TT:case C.BIG:case C.CODE:case C.FONT:case C.NOBR:case C.SMALL:case C.STRIKE:case C.STRONG:{l_(e,t);break}case C.P:{aoe(e);break}case C.DL:case C.UL:case C.OL:case C.DIR:case C.DIV:case C.NAV:case C.PRE:case C.MAIN:case C.MENU:case C.ASIDE:case C.BUTTON:case C.CENTER:case C.FIGURE:case C.FOOTER:case C.HEADER:case C.HGROUP:case C.DIALOG:case C.ADDRESS:case C.ARTICLE:case C.DETAILS:case C.SEARCH:case C.SECTION:case C.SUMMARY:case C.LISTING:case C.FIELDSET:case C.BLOCKQUOTE:case C.FIGCAPTION:{noe(e,t);break}case C.LI:{ooe(e);break}case C.DD:case C.DT:{ioe(e,t);break}case C.H1:case C.H2:case C.H3:case C.H4:case C.H5:case C.H6:{soe(e);break}case C.BR:{coe(e);break}case C.BODY:{eoe(e,t);break}case C.HTML:{toe(e,t);break}case C.FORM:{roe(e);break}case C.APPLET:case C.OBJECT:case C.MARQUEE:{loe(e,t);break}case C.TEMPLATE:{Hl(e,t);break}default:O4(e,t)}}function I4(e,t){e.tmplInsertionModeStack.length>0?B4(e,t):c_(e,t)}function uoe(e,t){var n;t.tagID===C.SCRIPT&&((n=e.scriptHandler)===null||n===void 0||n.call(e,e.openElements.current)),e.openElements.pop(),e.insertionMode=e.originalInsertionMode}function doe(e,t){e._err(t,ve.eofInElementThatCanContainOnlyText),e.openElements.pop(),e.insertionMode=e.originalInsertionMode,e.onEof(t)}function Eb(e,t){if(e.openElements.currentTagId!==void 0&&x4.has(e.openElements.currentTagId))switch(e.pendingCharacterTokens.length=0,e.hasNonWhitespacePendingCharacterToken=!1,e.originalInsertionMode=e.insertionMode,e.insertionMode=W.IN_TABLE_TEXT,t.type){case $t.CHARACTER:{L4(e,t);break}case $t.WHITESPACE_CHARACTER:{N4(e,t);break}}else Hp(e,t)}function foe(e,t){e.openElements.clearBackToTableContext(),e.activeFormattingElements.insertMarker(),e._insertElement(t,Re.HTML),e.insertionMode=W.IN_CAPTION}function poe(e,t){e.openElements.clearBackToTableContext(),e._insertElement(t,Re.HTML),e.insertionMode=W.IN_COLUMN_GROUP}function hoe(e,t){e.openElements.clearBackToTableContext(),e._insertFakeElement(le.COLGROUP,C.COLGROUP),e.insertionMode=W.IN_COLUMN_GROUP,u_(e,t)}function moe(e,t){e.openElements.clearBackToTableContext(),e._insertElement(t,Re.HTML),e.insertionMode=W.IN_TABLE_BODY}function goe(e,t){e.openElements.clearBackToTableContext(),e._insertFakeElement(le.TBODY,C.TBODY),e.insertionMode=W.IN_TABLE_BODY,Ky(e,t)}function yoe(e,t){e.openElements.hasInTableScope(C.TABLE)&&(e.openElements.popUntilTagNamePopped(C.TABLE),e._resetInsertionMode(),e._processStartTag(t))}function voe(e,t){R4(t)?e._appendElement(t,Re.HTML):Hp(e,t),t.ackSelfClosing=!0}function boe(e,t){!e.formElement&&e.openElements.tmplCount===0&&(e._insertElement(t,Re.HTML),e.formElement=e.openElements.current,e.openElements.pop())}function hu(e,t){switch(t.tagID){case C.TD:case C.TH:case C.TR:{goe(e,t);break}case C.STYLE:case C.SCRIPT:case C.TEMPLATE:{xo(e,t);break}case C.COL:{hoe(e,t);break}case C.FORM:{boe(e,t);break}case C.TABLE:{yoe(e,t);break}case C.TBODY:case C.TFOOT:case C.THEAD:{moe(e,t);break}case C.INPUT:{voe(e,t);break}case C.CAPTION:{foe(e,t);break}case C.COLGROUP:{poe(e,t);break}default:Hp(e,t)}}function ap(e,t){switch(t.tagID){case C.TABLE:{e.openElements.hasInTableScope(C.TABLE)&&(e.openElements.popUntilTagNamePopped(C.TABLE),e._resetInsertionMode());break}case C.TEMPLATE:{Hl(e,t);break}case C.BODY:case C.CAPTION:case C.COL:case C.COLGROUP:case C.HTML:case C.TBODY:case C.TD:case C.TFOOT:case C.TH:case C.THEAD:case C.TR:break;default:Hp(e,t)}}function Hp(e,t){const n=e.fosterParentingEnabled;e.fosterParentingEnabled=!0,Yy(e,t),e.fosterParentingEnabled=n}function N4(e,t){e.pendingCharacterTokens.push(t)}function L4(e,t){e.pendingCharacterTokens.push(t),e.hasNonWhitespacePendingCharacterToken=!0}function Yd(e,t){let n=0;if(e.hasNonWhitespacePendingCharacterToken)for(;n<e.pendingCharacterTokens.length;n++)Hp(e,e.pendingCharacterTokens[n]);else for(;n<e.pendingCharacterTokens.length;n++)e._insertCharacters(e.pendingCharacterTokens[n]);e.insertionMode=e.originalInsertionMode,e._processToken(t)}const P4=new Set([C.CAPTION,C.COL,C.COLGROUP,C.TBODY,C.TD,C.TFOOT,C.TH,C.THEAD,C.TR]);function Eoe(e,t){const n=t.tagID;P4.has(n)?e.openElements.hasInTableScope(C.CAPTION)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(C.CAPTION),e.activeFormattingElements.clearToLastMarker(),e.insertionMode=W.IN_TABLE,hu(e,t)):Ur(e,t)}function Toe(e,t){const n=t.tagID;switch(n){case C.CAPTION:case C.TABLE:{e.openElements.hasInTableScope(C.CAPTION)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(C.CAPTION),e.activeFormattingElements.clearToLastMarker(),e.insertionMode=W.IN_TABLE,n===C.TABLE&&ap(e,t));break}case C.BODY:case C.COL:case C.COLGROUP:case C.HTML:case C.TBODY:case C.TD:case C.TFOOT:case C.TH:case C.THEAD:case C.TR:break;default:Qy(e,t)}}function u_(e,t){switch(t.tagID){case C.HTML:{Ur(e,t);break}case C.COL:{e._appendElement(t,Re.HTML),t.ackSelfClosing=!0;break}case C.TEMPLATE:{xo(e,t);break}default:Hg(e,t)}}function Soe(e,t){switch(t.tagID){case C.COLGROUP:{e.openElements.currentTagId===C.COLGROUP&&(e.openElements.pop(),e.insertionMode=W.IN_TABLE);break}case C.TEMPLATE:{Hl(e,t);break}case C.COL:break;default:Hg(e,t)}}function Hg(e,t){e.openElements.currentTagId===C.COLGROUP&&(e.openElements.pop(),e.insertionMode=W.IN_TABLE,e._processToken(t))}function Ky(e,t){switch(t.tagID){case C.TR:{e.openElements.clearBackToTableBodyContext(),e._insertElement(t,Re.HTML),e.insertionMode=W.IN_ROW;break}case C.TH:case C.TD:{e.openElements.clearBackToTableBodyContext(),e._insertFakeElement(le.TR,C.TR),e.insertionMode=W.IN_ROW,Xy(e,t);break}case C.CAPTION:case C.COL:case C.COLGROUP:case C.TBODY:case C.TFOOT:case C.THEAD:{e.openElements.hasTableBodyContextInTableScope()&&(e.openElements.clearBackToTableBodyContext(),e.openElements.pop(),e.insertionMode=W.IN_TABLE,hu(e,t));break}default:hu(e,t)}}function eT(e,t){const n=t.tagID;switch(t.tagID){case C.TBODY:case C.TFOOT:case C.THEAD:{e.openElements.hasInTableScope(n)&&(e.openElements.clearBackToTableBodyContext(),e.openElements.pop(),e.insertionMode=W.IN_TABLE);break}case C.TABLE:{e.openElements.hasTableBodyContextInTableScope()&&(e.openElements.clearBackToTableBodyContext(),e.openElements.pop(),e.insertionMode=W.IN_TABLE,ap(e,t));break}case C.BODY:case C.CAPTION:case C.COL:case C.COLGROUP:case C.HTML:case C.TD:case C.TH:case C.TR:break;default:ap(e,t)}}function Xy(e,t){switch(t.tagID){case C.TH:case C.TD:{e.openElements.clearBackToTableRowContext(),e._insertElement(t,Re.HTML),e.insertionMode=W.IN_CELL,e.activeFormattingElements.insertMarker();break}case C.CAPTION:case C.COL:case C.COLGROUP:case C.TBODY:case C.TFOOT:case C.THEAD:case C.TR:{e.openElements.hasInTableScope(C.TR)&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=W.IN_TABLE_BODY,Ky(e,t));break}default:hu(e,t)}}function M4(e,t){switch(t.tagID){case C.TR:{e.openElements.hasInTableScope(C.TR)&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=W.IN_TABLE_BODY);break}case C.TABLE:{e.openElements.hasInTableScope(C.TR)&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=W.IN_TABLE_BODY,eT(e,t));break}case C.TBODY:case C.TFOOT:case C.THEAD:{(e.openElements.hasInTableScope(t.tagID)||e.openElements.hasInTableScope(C.TR))&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=W.IN_TABLE_BODY,eT(e,t));break}case C.BODY:case C.CAPTION:case C.COL:case C.COLGROUP:case C.HTML:case C.TD:case C.TH:break;default:ap(e,t)}}function _oe(e,t){const n=t.tagID;P4.has(n)?(e.openElements.hasInTableScope(C.TD)||e.openElements.hasInTableScope(C.TH))&&(e._closeTableCell(),Xy(e,t)):Ur(e,t)}function Coe(e,t){const n=t.tagID;switch(n){case C.TD:case C.TH:{e.openElements.hasInTableScope(n)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(n),e.activeFormattingElements.clearToLastMarker(),e.insertionMode=W.IN_ROW);break}case C.TABLE:case C.TBODY:case C.TFOOT:case C.THEAD:case C.TR:{e.openElements.hasInTableScope(n)&&(e._closeTableCell(),M4(e,t));break}case C.BODY:case C.CAPTION:case C.COL:case C.COLGROUP:case C.HTML:break;default:Qy(e,t)}}function $4(e,t){switch(t.tagID){case C.HTML:{Ur(e,t);break}case C.OPTION:{e.openElements.currentTagId===C.OPTION&&e.openElements.pop(),e._insertElement(t,Re.HTML);break}case C.OPTGROUP:{e.openElements.currentTagId===C.OPTION&&e.openElements.pop(),e.openElements.currentTagId===C.OPTGROUP&&e.openElements.pop(),e._insertElement(t,Re.HTML);break}case C.HR:{e.openElements.currentTagId===C.OPTION&&e.openElements.pop(),e.openElements.currentTagId===C.OPTGROUP&&e.openElements.pop(),e._appendElement(t,Re.HTML),t.ackSelfClosing=!0;break}case C.INPUT:case C.KEYGEN:case C.TEXTAREA:case C.SELECT:{e.openElements.hasInSelectScope(C.SELECT)&&(e.openElements.popUntilTagNamePopped(C.SELECT),e._resetInsertionMode(),t.tagID!==C.SELECT&&e._processStartTag(t));break}case C.SCRIPT:case C.TEMPLATE:{xo(e,t);break}}}function F4(e,t){switch(t.tagID){case C.OPTGROUP:{e.openElements.stackTop>0&&e.openElements.currentTagId===C.OPTION&&e.openElements.tagIDs[e.openElements.stackTop-1]===C.OPTGROUP&&e.openElements.pop(),e.openElements.currentTagId===C.OPTGROUP&&e.openElements.pop();break}case C.OPTION:{e.openElements.currentTagId===C.OPTION&&e.openElements.pop();break}case C.SELECT:{e.openElements.hasInSelectScope(C.SELECT)&&(e.openElements.popUntilTagNamePopped(C.SELECT),e._resetInsertionMode());break}case C.TEMPLATE:{Hl(e,t);break}}}function Aoe(e,t){const n=t.tagID;n===C.CAPTION||n===C.TABLE||n===C.TBODY||n===C.TFOOT||n===C.THEAD||n===C.TR||n===C.TD||n===C.TH?(e.openElements.popUntilTagNamePopped(C.SELECT),e._resetInsertionMode(),e._processStartTag(t)):$4(e,t)}function xoe(e,t){const n=t.tagID;n===C.CAPTION||n===C.TABLE||n===C.TBODY||n===C.TFOOT||n===C.THEAD||n===C.TR||n===C.TD||n===C.TH?e.openElements.hasInTableScope(n)&&(e.openElements.popUntilTagNamePopped(C.SELECT),e._resetInsertionMode(),e.onEndTag(t)):F4(e,t)}function woe(e,t){switch(t.tagID){case C.BASE:case C.BASEFONT:case C.BGSOUND:case C.LINK:case C.META:case C.NOFRAMES:case C.SCRIPT:case C.STYLE:case C.TEMPLATE:case C.TITLE:{xo(e,t);break}case C.CAPTION:case C.COLGROUP:case C.TBODY:case C.TFOOT:case C.THEAD:{e.tmplInsertionModeStack[0]=W.IN_TABLE,e.insertionMode=W.IN_TABLE,hu(e,t);break}case C.COL:{e.tmplInsertionModeStack[0]=W.IN_COLUMN_GROUP,e.insertionMode=W.IN_COLUMN_GROUP,u_(e,t);break}case C.TR:{e.tmplInsertionModeStack[0]=W.IN_TABLE_BODY,e.insertionMode=W.IN_TABLE_BODY,Ky(e,t);break}case C.TD:case C.TH:{e.tmplInsertionModeStack[0]=W.IN_ROW,e.insertionMode=W.IN_ROW,Xy(e,t);break}default:e.tmplInsertionModeStack[0]=W.IN_BODY,e.insertionMode=W.IN_BODY,Ur(e,t)}}function Doe(e,t){t.tagID===C.TEMPLATE&&Hl(e,t)}function B4(e,t){e.openElements.tmplCount>0?(e.openElements.popUntilTagNamePopped(C.TEMPLATE),e.activeFormattingElements.clearToLastMarker(),e.tmplInsertionModeStack.shift(),e._resetInsertionMode(),e.onEof(t)):c_(e,t)}function koe(e,t){t.tagID===C.HTML?Ur(e,t):zg(e,t)}function U4(e,t){var n;if(t.tagID===C.HTML){if(e.fragmentContext||(e.insertionMode=W.AFTER_AFTER_BODY),e.options.sourceCodeLocationInfo&&e.openElements.tagIDs[0]===C.HTML){e._setEndLocation(e.openElements.items[0],t);const r=e.openElements.items[1];r&&!(!((n=e.treeAdapter.getNodeSourceCodeLocation(r))===null||n===void 0)&&n.endTag)&&e._setEndLocation(r,t)}}else zg(e,t)}function zg(e,t){e.insertionMode=W.IN_BODY,Yy(e,t)}function Roe(e,t){switch(t.tagID){case C.HTML:{Ur(e,t);break}case C.FRAMESET:{e._insertElement(t,Re.HTML);break}case C.FRAME:{e._appendElement(t,Re.HTML),t.ackSelfClosing=!0;break}case C.NOFRAMES:{xo(e,t);break}}}function Ooe(e,t){t.tagID===C.FRAMESET&&!e.openElements.isRootHtmlElementCurrent()&&(e.openElements.pop(),!e.fragmentContext&&e.openElements.currentTagId!==C.FRAMESET&&(e.insertionMode=W.AFTER_FRAMESET))}function Ioe(e,t){switch(t.tagID){case C.HTML:{Ur(e,t);break}case C.NOFRAMES:{xo(e,t);break}}}function Noe(e,t){t.tagID===C.HTML&&(e.insertionMode=W.AFTER_AFTER_FRAMESET)}function Loe(e,t){t.tagID===C.HTML?Ur(e,t):Zm(e,t)}function Zm(e,t){e.insertionMode=W.IN_BODY,Yy(e,t)}function Poe(e,t){switch(t.tagID){case C.HTML:{Ur(e,t);break}case C.NOFRAMES:{xo(e,t);break}}}function Moe(e,t){t.chars=$n,e._insertCharacters(t)}function $oe(e,t){e._insertCharacters(t),e.framesetOk=!1}function j4(e){for(;e.treeAdapter.getNamespaceURI(e.openElements.current)!==Re.HTML&&e.openElements.currentTagId!==void 0&&!e._isIntegrationPoint(e.openElements.currentTagId,e.openElements.current);)e.openElements.pop()}function Foe(e,t){if(Jre(t))j4(e),e._startTagOutsideForeignContent(t);else{const n=e._getAdjustedCurrentElement(),r=e.treeAdapter.getNamespaceURI(n);r===Re.MATHML?C4(t):r===Re.SVG&&(eae(t),A4(t)),s_(t),t.selfClosing?e._appendElement(t,r):e._insertElement(t,r),t.ackSelfClosing=!0}}function Boe(e,t){if(t.tagID===C.P||t.tagID===C.BR){j4(e),e._endTagOutsideForeignContent(t);return}for(let n=e.openElements.stackTop;n>0;n--){const r=e.openElements.items[n];if(e.treeAdapter.getNamespaceURI(r)===Re.HTML){e._endTagOutsideForeignContent(t);break}const a=e.treeAdapter.getTagName(r);if(a.toLowerCase()===t.tagName){t.tagName=a,e.openElements.shortenToLength(n);break}}}le.AREA,le.BASE,le.BASEFONT,le.BGSOUND,le.BR,le.COL,le.EMBED,le.FRAME,le.HR,le.IMG,le.INPUT,le.KEYGEN,le.LINK,le.META,le.PARAM,le.SOURCE,le.TRACK,le.WBR;const bl={html:"http://www.w3.org/1999/xhtml",mathml:"http://www.w3.org/1998/Math/MathML",svg:"http://www.w3.org/2000/svg",xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"},cR=/[#.]/g;function Uoe(e,t){const n=e||"",r={};let a=0,o,s;for(;a<n.length;){cR.lastIndex=a;const c=cR.exec(n),u=n.slice(a,c?c.index:n.length);u&&(o?o==="#"?r.id=u:Array.isArray(r.className)?r.className.push(u):r.className=[u]:s=u,a+=u.length),c&&(o=c[0],a++)}return{type:"element",tagName:s||t||"div",properties:r,children:[]}}function H4(e,t,n){const r=n?Voe(n):void 0;function a(o,s,...c){let u;if(o==null){u={type:"root",children:[]};const d=s;c.unshift(d)}else{u=Uoe(o,t);const d=u.tagName.toLowerCase(),p=r?r.get(d):void 0;if(u.tagName=p||d,joe(s))c.unshift(s);else for(const[h,g]of Object.entries(s))Hoe(e,u.properties,h,g)}for(const d of c)tT(u.children,d);return u.type==="element"&&u.tagName==="template"&&(u.content={type:"root",children:u.children},u.children=[]),u}return a}function joe(e){if(e===null||typeof e!="object"||Array.isArray(e))return!0;if(typeof e.type!="string")return!1;const t=e,n=Object.keys(e);for(const r of n){const a=t[r];if(a&&typeof a=="object"){if(!Array.isArray(a))return!0;const o=a;for(const s of o)if(typeof s!="number"&&typeof s!="string")return!0}}return!!("children"in e&&Array.isArray(e.children))}function Hoe(e,t,n,r){const a=Pp(e,n);let o;if(r!=null){if(typeof r=="number"){if(Number.isNaN(r))return;o=r}else typeof r=="boolean"?o=r:typeof r=="string"?a.spaceSeparated?o=ME(r):a.commaSeparated?o=PE(r):a.commaOrSpaceSeparated?o=ME(PE(r).join(" ")):o=uR(a,a.property,r):Array.isArray(r)?o=[...r]:o=a.property==="style"?zoe(r):String(r);if(Array.isArray(o)){const s=[];for(const c of o)s.push(uR(a,a.property,c));o=s}a.property==="className"&&Array.isArray(t.className)&&(o=t.className.concat(o)),t[a.property]=o}}function tT(e,t){if(t!=null)if(typeof t=="number"||typeof t=="string")e.push({type:"text",value:String(t)});else if(Array.isArray(t))for(const n of t)tT(e,n);else if(typeof t=="object"&&"type"in t)t.type==="root"?tT(e,t.children):e.push(t);else throw new Error("Expected node, nodes, or string, got `"+t+"`")}function uR(e,t,n){if(typeof n=="string"){if(e.number&&n&&!Number.isNaN(Number(n)))return Number(n);if((e.boolean||e.overloadedBoolean)&&(n===""||Jf(n)===Jf(t)))return!0}return n}function zoe(e){const t=[];for(const[n,r]of Object.entries(e))t.push([n,r].join(": "));return t.join("; ")}function Voe(e){const t=new Map;for(const n of e)t.set(n.toLowerCase(),n);return t}const Goe=["altGlyph","altGlyphDef","altGlyphItem","animateColor","animateMotion","animateTransform","clipPath","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","foreignObject","glyphRef","linearGradient","radialGradient","solidColor","textArea","textPath"],qoe=H4(_u,"div"),Woe=H4(Bi,"g",Goe);function Yoe(e){const t=String(e),n=[];return{toOffset:a,toPoint:r};function r(o){if(typeof o=="number"&&o>-1&&o<=t.length){let s=0;for(;;){let c=n[s];if(c===void 0){const u=dR(t,n[s-1]);c=u===-1?t.length+1:u+1,n[s]=c}if(c>o)return{line:s+1,column:o-(s>0?n[s-1]:0)+1,offset:o};s++}}}function a(o){if(o&&typeof o.line=="number"&&typeof o.column=="number"&&!Number.isNaN(o.line)&&!Number.isNaN(o.column)){for(;n.length<o.line;){const c=n[n.length-1],u=dR(t,c),d=u===-1?t.length+1:u+1;if(c===d)break;n.push(d)}const s=(o.line>1?n[o.line-2]:0)+o.column-1;if(s<n[o.line-1])return s}}}function dR(e,t){const n=e.indexOf("\r",t),r=e.indexOf(`
273
- `,t);return r===-1?n:n===-1||n+1===r?r:n<r?n:r}const z4={}.hasOwnProperty,Qoe=Object.prototype;function Koe(e,t){const n=t||{};return d_({file:n.file||void 0,location:!1,schema:n.space==="svg"?Bi:_u,verbose:n.verbose||!1},e)}function d_(e,t){let n;switch(t.nodeName){case"#comment":{const r=t;return n={type:"comment",value:r.data},Jm(e,r,n),n}case"#document":case"#document-fragment":{const r=t,a="mode"in r?r.mode==="quirks"||r.mode==="limited-quirks":!1;if(n={type:"root",children:V4(e,t.childNodes),data:{quirksMode:a}},e.file&&e.location){const o=String(e.file),s=Yoe(o),c=s.toPoint(0),u=s.toPoint(o.length);n.position={start:c,end:u}}return n}case"#documentType":{const r=t;return n={type:"doctype"},Jm(e,r,n),n}case"#text":{const r=t;return n={type:"text",value:r.value},Jm(e,r,n),n}default:return n=Xoe(e,t),n}}function V4(e,t){let n=-1;const r=[];for(;++n<t.length;){const a=d_(e,t[n]);r.push(a)}return r}function Xoe(e,t){const n=e.schema;e.schema=t.namespaceURI===bl.svg?Bi:_u;let r=-1;const a={};for(;++r<t.attrs.length;){const s=t.attrs[r],c=(s.prefix?s.prefix+":":"")+s.name;z4.call(Qoe,c)||(a[c]=s.value)}const o=(e.schema.space==="svg"?Woe:qoe)(t.tagName,a,V4(e,t.childNodes));if(Jm(e,t,o),o.tagName==="template"){const s=t,c=s.sourceCodeLocation,u=c&&c.startTag&&Wc(c.startTag),d=c&&c.endTag&&Wc(c.endTag),p=d_(e,s.content);u&&d&&e.file&&(p.position={start:u.end,end:d.start}),o.content=p}return e.schema=n,o}function Jm(e,t,n){if("sourceCodeLocation"in t&&t.sourceCodeLocation&&e.file){const r=Zoe(e,n,t.sourceCodeLocation);r&&(e.location=!0,n.position=r)}}function Zoe(e,t,n){const r=Wc(n);if(t.type==="element"){const a=t.children[t.children.length-1];if(r&&!n.endTag&&a&&a.position&&a.position.end&&(r.end=Object.assign({},a.position.end)),e.verbose){const o={};let s;if(n.attrs)for(s in n.attrs)z4.call(n.attrs,s)&&(o[Pp(e.schema,s).property]=Wc(n.attrs[s]));n.startTag;const c=Wc(n.startTag),u=n.endTag?Wc(n.endTag):void 0,d={opening:c};u&&(d.closing=u),d.properties=o,t.data={position:d}}}return r}function Wc(e){const t=fR({line:e.startLine,column:e.startCol,offset:e.startOffset}),n=fR({line:e.endLine,column:e.endCol,offset:e.endOffset});return t||n?{start:t,end:n}:void 0}function fR(e){return e.line&&e.column?e:void 0}let zp=class{constructor(t,n,r){this.property=t,this.normal=n,r&&(this.space=r)}};zp.prototype.property={};zp.prototype.normal={};zp.prototype.space=null;function G4(e,t){const n={},r={};let a=-1;for(;++a<e.length;)Object.assign(n,e[a].property),Object.assign(r,e[a].normal);return new zp(n,r,t)}function nT(e){return e.toLowerCase()}let po=class{constructor(t,n){this.property=t,this.attribute=n}};po.prototype.space=null;po.prototype.boolean=!1;po.prototype.booleanish=!1;po.prototype.overloadedBoolean=!1;po.prototype.number=!1;po.prototype.commaSeparated=!1;po.prototype.spaceSeparated=!1;po.prototype.commaOrSpaceSeparated=!1;po.prototype.mustUseProperty=!1;po.prototype.defined=!1;let Joe=0;const Ct=zl(),sr=zl(),q4=zl(),Fe=zl(),On=zl(),nu=zl(),wa=zl();function zl(){return 2**++Joe}const rT=Object.freeze(Object.defineProperty({__proto__:null,boolean:Ct,booleanish:sr,commaOrSpaceSeparated:wa,commaSeparated:nu,number:Fe,overloadedBoolean:q4,spaceSeparated:On},Symbol.toStringTag,{value:"Module"})),Tb=Object.keys(rT);let f_=class extends po{constructor(t,n,r,a){let o=-1;if(super(t,n),pR(this,"space",a),typeof r=="number")for(;++o<Tb.length;){const s=Tb[o];pR(this,Tb[o],(r&rT[s])===rT[s])}}};f_.prototype.defined=!0;function pR(e,t,n){n&&(e[t]=n)}const eie={}.hasOwnProperty;function Du(e){const t={},n={};let r;for(r in e.properties)if(eie.call(e.properties,r)){const a=e.properties[r],o=new f_(r,e.transform(e.attributes||{},r),a,e.space);e.mustUseProperty&&e.mustUseProperty.includes(r)&&(o.mustUseProperty=!0),t[r]=o,n[nT(r)]=r,n[nT(o.attribute)]=r}return new zp(t,n,e.space)}const W4=Du({space:"xlink",transform(e,t){return"xlink:"+t.slice(5).toLowerCase()},properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null}}),Y4=Du({space:"xml",transform(e,t){return"xml:"+t.slice(3).toLowerCase()},properties:{xmlLang:null,xmlBase:null,xmlSpace:null}});function Q4(e,t){return t in e?e[t]:t}function K4(e,t){return Q4(e,t.toLowerCase())}const X4=Du({space:"xmlns",attributes:{xmlnsxlink:"xmlns:xlink"},transform:K4,properties:{xmlns:null,xmlnsXLink:null}}),Z4=Du({transform(e,t){return t==="role"?t:"aria-"+t.slice(4).toLowerCase()},properties:{ariaActiveDescendant:null,ariaAtomic:sr,ariaAutoComplete:null,ariaBusy:sr,ariaChecked:sr,ariaColCount:Fe,ariaColIndex:Fe,ariaColSpan:Fe,ariaControls:On,ariaCurrent:null,ariaDescribedBy:On,ariaDetails:null,ariaDisabled:sr,ariaDropEffect:On,ariaErrorMessage:null,ariaExpanded:sr,ariaFlowTo:On,ariaGrabbed:sr,ariaHasPopup:null,ariaHidden:sr,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:On,ariaLevel:Fe,ariaLive:null,ariaModal:sr,ariaMultiLine:sr,ariaMultiSelectable:sr,ariaOrientation:null,ariaOwns:On,ariaPlaceholder:null,ariaPosInSet:Fe,ariaPressed:sr,ariaReadOnly:sr,ariaRelevant:null,ariaRequired:sr,ariaRoleDescription:On,ariaRowCount:Fe,ariaRowIndex:Fe,ariaRowSpan:Fe,ariaSelected:sr,ariaSetSize:Fe,ariaSort:null,ariaValueMax:Fe,ariaValueMin:Fe,ariaValueNow:Fe,ariaValueText:null,role:null}}),tie=Du({space:"html",attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},transform:K4,mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:nu,acceptCharset:On,accessKey:On,action:null,allow:null,allowFullScreen:Ct,allowPaymentRequest:Ct,allowUserMedia:Ct,alt:null,as:null,async:Ct,autoCapitalize:null,autoComplete:On,autoFocus:Ct,autoPlay:Ct,blocking:On,capture:null,charSet:null,checked:Ct,cite:null,className:On,cols:Fe,colSpan:null,content:null,contentEditable:sr,controls:Ct,controlsList:On,coords:Fe|nu,crossOrigin:null,data:null,dateTime:null,decoding:null,default:Ct,defer:Ct,dir:null,dirName:null,disabled:Ct,download:q4,draggable:sr,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:Ct,formTarget:null,headers:On,height:Fe,hidden:Ct,high:Fe,href:null,hrefLang:null,htmlFor:On,httpEquiv:On,id:null,imageSizes:null,imageSrcSet:null,inert:Ct,inputMode:null,integrity:null,is:null,isMap:Ct,itemId:null,itemProp:On,itemRef:On,itemScope:Ct,itemType:On,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:Ct,low:Fe,manifest:null,max:null,maxLength:Fe,media:null,method:null,min:null,minLength:Fe,multiple:Ct,muted:Ct,name:null,nonce:null,noModule:Ct,noValidate:Ct,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforeMatch:null,onBeforePrint:null,onBeforeToggle:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextLost:null,onContextMenu:null,onContextRestored:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onScrollEnd:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:Ct,optimum:Fe,pattern:null,ping:On,placeholder:null,playsInline:Ct,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:Ct,referrerPolicy:null,rel:On,required:Ct,reversed:Ct,rows:Fe,rowSpan:Fe,sandbox:On,scope:null,scoped:Ct,seamless:Ct,selected:Ct,shadowRootClonable:Ct,shadowRootDelegatesFocus:Ct,shadowRootMode:null,shape:null,size:Fe,sizes:null,slot:null,span:Fe,spellCheck:sr,src:null,srcDoc:null,srcLang:null,srcSet:null,start:Fe,step:null,style:null,tabIndex:Fe,target:null,title:null,translate:null,type:null,typeMustMatch:Ct,useMap:null,value:sr,width:Fe,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:On,axis:null,background:null,bgColor:null,border:Fe,borderColor:null,bottomMargin:Fe,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:Ct,declare:Ct,event:null,face:null,frame:null,frameBorder:null,hSpace:Fe,leftMargin:Fe,link:null,longDesc:null,lowSrc:null,marginHeight:Fe,marginWidth:Fe,noResize:Ct,noHref:Ct,noShade:Ct,noWrap:Ct,object:null,profile:null,prompt:null,rev:null,rightMargin:Fe,rules:null,scheme:null,scrolling:sr,standby:null,summary:null,text:null,topMargin:Fe,valueType:null,version:null,vAlign:null,vLink:null,vSpace:Fe,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:Ct,disableRemotePlayback:Ct,prefix:null,property:null,results:Fe,security:null,unselectable:null}}),nie=Du({space:"svg",attributes:{accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",className:"class",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",crossOrigin:"crossorigin",dataType:"datatype",dominantBaseline:"dominant-baseline",enableBackground:"enable-background",fillOpacity:"fill-opacity",fillRule:"fill-rule",floodColor:"flood-color",floodOpacity:"flood-opacity",fontFamily:"font-family",fontSize:"font-size",fontSizeAdjust:"font-size-adjust",fontStretch:"font-stretch",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",glyphName:"glyph-name",glyphOrientationHorizontal:"glyph-orientation-horizontal",glyphOrientationVertical:"glyph-orientation-vertical",hrefLang:"hreflang",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",horizOriginY:"horiz-origin-y",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",navDown:"nav-down",navDownLeft:"nav-down-left",navDownRight:"nav-down-right",navLeft:"nav-left",navNext:"nav-next",navPrev:"nav-prev",navRight:"nav-right",navUp:"nav-up",navUpLeft:"nav-up-left",navUpRight:"nav-up-right",onAbort:"onabort",onActivate:"onactivate",onAfterPrint:"onafterprint",onBeforePrint:"onbeforeprint",onBegin:"onbegin",onCancel:"oncancel",onCanPlay:"oncanplay",onCanPlayThrough:"oncanplaythrough",onChange:"onchange",onClick:"onclick",onClose:"onclose",onCopy:"oncopy",onCueChange:"oncuechange",onCut:"oncut",onDblClick:"ondblclick",onDrag:"ondrag",onDragEnd:"ondragend",onDragEnter:"ondragenter",onDragExit:"ondragexit",onDragLeave:"ondragleave",onDragOver:"ondragover",onDragStart:"ondragstart",onDrop:"ondrop",onDurationChange:"ondurationchange",onEmptied:"onemptied",onEnd:"onend",onEnded:"onended",onError:"onerror",onFocus:"onfocus",onFocusIn:"onfocusin",onFocusOut:"onfocusout",onHashChange:"onhashchange",onInput:"oninput",onInvalid:"oninvalid",onKeyDown:"onkeydown",onKeyPress:"onkeypress",onKeyUp:"onkeyup",onLoad:"onload",onLoadedData:"onloadeddata",onLoadedMetadata:"onloadedmetadata",onLoadStart:"onloadstart",onMessage:"onmessage",onMouseDown:"onmousedown",onMouseEnter:"onmouseenter",onMouseLeave:"onmouseleave",onMouseMove:"onmousemove",onMouseOut:"onmouseout",onMouseOver:"onmouseover",onMouseUp:"onmouseup",onMouseWheel:"onmousewheel",onOffline:"onoffline",onOnline:"ononline",onPageHide:"onpagehide",onPageShow:"onpageshow",onPaste:"onpaste",onPause:"onpause",onPlay:"onplay",onPlaying:"onplaying",onPopState:"onpopstate",onProgress:"onprogress",onRateChange:"onratechange",onRepeat:"onrepeat",onReset:"onreset",onResize:"onresize",onScroll:"onscroll",onSeeked:"onseeked",onSeeking:"onseeking",onSelect:"onselect",onShow:"onshow",onStalled:"onstalled",onStorage:"onstorage",onSubmit:"onsubmit",onSuspend:"onsuspend",onTimeUpdate:"ontimeupdate",onToggle:"ontoggle",onUnload:"onunload",onVolumeChange:"onvolumechange",onWaiting:"onwaiting",onZoom:"onzoom",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",referrerPolicy:"referrerpolicy",renderingIntent:"rendering-intent",shapeRendering:"shape-rendering",stopColor:"stop-color",stopOpacity:"stop-opacity",strikethroughPosition:"strikethrough-position",strikethroughThickness:"strikethrough-thickness",strokeDashArray:"stroke-dasharray",strokeDashOffset:"stroke-dashoffset",strokeLineCap:"stroke-linecap",strokeLineJoin:"stroke-linejoin",strokeMiterLimit:"stroke-miterlimit",strokeOpacity:"stroke-opacity",strokeWidth:"stroke-width",tabIndex:"tabindex",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",transformOrigin:"transform-origin",typeOf:"typeof",underlinePosition:"underline-position",underlineThickness:"underline-thickness",unicodeBidi:"unicode-bidi",unicodeRange:"unicode-range",unitsPerEm:"units-per-em",vAlphabetic:"v-alphabetic",vHanging:"v-hanging",vIdeographic:"v-ideographic",vMathematical:"v-mathematical",vectorEffect:"vector-effect",vertAdvY:"vert-adv-y",vertOriginX:"vert-origin-x",vertOriginY:"vert-origin-y",wordSpacing:"word-spacing",writingMode:"writing-mode",xHeight:"x-height",playbackOrder:"playbackorder",timelineBegin:"timelinebegin"},transform:Q4,properties:{about:wa,accentHeight:Fe,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:Fe,amplitude:Fe,arabicForm:null,ascent:Fe,attributeName:null,attributeType:null,azimuth:Fe,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:Fe,by:null,calcMode:null,capHeight:Fe,className:On,clip:null,clipPath:null,clipPathUnits:null,clipRule:null,color:null,colorInterpolation:null,colorInterpolationFilters:null,colorProfile:null,colorRendering:null,content:null,contentScriptType:null,contentStyleType:null,crossOrigin:null,cursor:null,cx:null,cy:null,d:null,dataType:null,defaultAction:null,descent:Fe,diffuseConstant:Fe,direction:null,display:null,dur:null,divisor:Fe,dominantBaseline:null,download:Ct,dx:null,dy:null,edgeMode:null,editable:null,elevation:Fe,enableBackground:null,end:null,event:null,exponent:Fe,externalResourcesRequired:null,fill:null,fillOpacity:Fe,fillRule:null,filter:null,filterRes:null,filterUnits:null,floodColor:null,floodOpacity:null,focusable:null,focusHighlight:null,fontFamily:null,fontSize:null,fontSizeAdjust:null,fontStretch:null,fontStyle:null,fontVariant:null,fontWeight:null,format:null,fr:null,from:null,fx:null,fy:null,g1:nu,g2:nu,glyphName:nu,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:Fe,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:Fe,horizOriginX:Fe,horizOriginY:Fe,id:null,ideographic:Fe,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:Fe,k:Fe,k1:Fe,k2:Fe,k3:Fe,k4:Fe,kernelMatrix:wa,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:Fe,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:Fe,mediaTime:null,method:null,min:null,mode:null,name:null,navDown:null,navDownLeft:null,navDownRight:null,navLeft:null,navNext:null,navPrev:null,navRight:null,navUp:null,navUpLeft:null,navUpRight:null,numOctaves:null,observer:null,offset:null,onAbort:null,onActivate:null,onAfterPrint:null,onBeforePrint:null,onBegin:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnd:null,onEnded:null,onError:null,onFocus:null,onFocusIn:null,onFocusOut:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadStart:null,onMessage:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onMouseWheel:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRepeat:null,onReset:null,onResize:null,onScroll:null,onSeeked:null,onSeeking:null,onSelect:null,onShow:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnload:null,onVolumeChange:null,onWaiting:null,onZoom:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:Fe,overlineThickness:Fe,paintOrder:null,panose1:null,path:null,pathLength:Fe,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:On,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:Fe,pointsAtY:Fe,pointsAtZ:Fe,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:wa,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:wa,rev:wa,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:wa,requiredFeatures:wa,requiredFonts:wa,requiredFormats:wa,resource:null,restart:null,result:null,rotate:null,rx:null,ry:null,scale:null,seed:null,shapeRendering:null,side:null,slope:null,snapshotTime:null,specularConstant:Fe,specularExponent:Fe,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:Fe,strikethroughThickness:Fe,string:null,stroke:null,strokeDashArray:wa,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:Fe,strokeOpacity:Fe,strokeWidth:null,style:null,surfaceScale:Fe,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:wa,tabIndex:Fe,tableValues:null,target:null,targetX:Fe,targetY:Fe,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:wa,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:Fe,underlineThickness:Fe,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:Fe,values:null,vAlphabetic:Fe,vMathematical:Fe,vectorEffect:null,vHanging:Fe,vIdeographic:Fe,version:null,vertAdvY:Fe,vertOriginX:Fe,vertOriginY:Fe,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:Fe,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null}}),rie=G4([Y4,W4,X4,Z4,tie],"html"),J4=G4([Y4,W4,X4,Z4,nie],"svg"),aie=/^data[-\w.:]+$/i,hR=/-[a-z]/g,oie=/[A-Z]/g;function iie(e,t){const n=nT(t);let r=t,a=po;if(n in e.normal)return e.property[e.normal[n]];if(n.length>4&&n.slice(0,4)==="data"&&aie.test(t)){if(t.charAt(4)==="-"){const o=t.slice(5).replace(hR,lie);r="data"+o.charAt(0).toUpperCase()+o.slice(1)}else{const o=t.slice(4);if(!hR.test(o)){let s=o.replace(oie,sie);s.charAt(0)!=="-"&&(s="-"+s),t="data"+s}}a=f_}return new a(r,t)}function sie(e){return"-"+e.toLowerCase()}function lie(e){return e.charAt(1).toUpperCase()}const cie={},uie={}.hasOwnProperty,eL=Dy("type",{handlers:{root:fie,element:yie,text:mie,comment:gie,doctype:hie}});function die(e,t){const n=(t||cie).space;return eL(e,n==="svg"?J4:rie)}function fie(e,t){const n={nodeName:"#document",mode:(e.data||{}).quirksMode?"quirks":"no-quirks",childNodes:[]};return n.childNodes=p_(e.children,n,t),ku(e,n),n}function pie(e,t){const n={nodeName:"#document-fragment",childNodes:[]};return n.childNodes=p_(e.children,n,t),ku(e,n),n}function hie(e){const t={nodeName:"#documentType",name:"html",publicId:"",systemId:"",parentNode:null};return ku(e,t),t}function mie(e){const t={nodeName:"#text",value:e.value,parentNode:null};return ku(e,t),t}function gie(e){const t={nodeName:"#comment",data:e.value,parentNode:null};return ku(e,t),t}function yie(e,t){const n=t;let r=n;e.type==="element"&&e.tagName.toLowerCase()==="svg"&&n.space==="html"&&(r=J4);const a=[];let o;if(e.properties){for(o in e.properties)if(o!=="children"&&uie.call(e.properties,o)){const u=vie(r,o,e.properties[o]);u&&a.push(u)}}const s=r.space,c={nodeName:e.tagName,tagName:e.tagName,attrs:a,namespaceURI:bl[s],childNodes:[],parentNode:null};return c.childNodes=p_(e.children,c,r),ku(e,c),e.tagName==="template"&&e.content&&(c.content=pie(e.content,r)),c}function vie(e,t,n){const r=iie(e,t);if(n===!1||n===null||n===void 0||typeof n=="number"&&Number.isNaN(n)||!n&&r.boolean)return;Array.isArray(n)&&(n=r.commaSeparated?ky(n):Ry(n));const a={name:r.attribute,value:n===!0?"":String(n)};if(r.space&&r.space!=="html"&&r.space!=="svg"){const o=a.name.indexOf(":");o<0?a.prefix="":(a.name=a.name.slice(o+1),a.prefix=r.attribute.slice(0,o)),a.namespace=bl[r.space]}return a}function p_(e,t,n){let r=-1;const a=[];if(e)for(;++r<e.length;){const o=eL(e[r],n);o.parentNode=t,a.push(o)}return a}function ku(e,t){const n=e.position;n&&n.start&&n.end&&(n.start.offset,n.end.offset,t.sourceCodeLocation={startLine:n.start.line,startCol:n.start.column,startOffset:n.start.offset,endLine:n.end.line,endCol:n.end.column,endOffset:n.end.offset})}const bie=/<(\/?)(iframe|noembed|noframes|plaintext|script|style|textarea|title|xmp)(?=[\t\n\f\r />])/gi,Eie=new Set(["mdxFlowExpression","mdxJsxFlowElement","mdxJsxTextElement","mdxTextExpression","mdxjsEsm"]),mR={sourceCodeLocationInfo:!0,scriptingEnabled:!1};function tL(e,t){const n=Rie(e),r=Dy("type",{handlers:{root:Tie,element:Sie,text:_ie,comment:rL,doctype:Cie,raw:xie},unknown:wie}),a={parser:n?new iR(mR):iR.getFragmentParser(void 0,mR),handle(c){r(c,a)},stitches:!1,options:t||{}};r(e,a),Ru(a,ri());const o=n?a.parser.document:a.parser.getFragment(),s=Koe(o,{file:a.options.file});return a.stitches&&ha(s,"comment",function(c,u,d){const p=c;if(p.value.stitch&&d&&u!==void 0){const h=d.children;return h[u]=p.value.stitch,u}}),s.type==="root"&&s.children.length===1&&s.children[0].type===e.type?s.children[0]:s}function nL(e,t){let n=-1;if(e)for(;++n<e.length;)t.handle(e[n])}function Tie(e,t){nL(e.children,t)}function Sie(e,t){Die(e,t),nL(e.children,t),kie(e,t)}function _ie(e,t){t.parser.tokenizer.state>4&&(t.parser.tokenizer.state=0);const n={type:$t.CHARACTER,chars:e.value,location:Vp(e)};Ru(t,ri(e)),t.parser.currentToken=n,t.parser._processToken(t.parser.currentToken)}function Cie(e,t){const n={type:$t.DOCTYPE,name:"html",forceQuirks:!1,publicId:"",systemId:"",location:Vp(e)};Ru(t,ri(e)),t.parser.currentToken=n,t.parser._processToken(t.parser.currentToken)}function Aie(e,t){t.stitches=!0;const n=Oie(e);if("children"in e&&"children"in n){const r=tL({type:"root",children:e.children},t.options);n.children=r.children}rL({type:"comment",value:{stitch:n}},t)}function rL(e,t){const n=e.value,r={type:$t.COMMENT,data:n,location:Vp(e)};Ru(t,ri(e)),t.parser.currentToken=r,t.parser._processToken(t.parser.currentToken)}function xie(e,t){if(t.parser.tokenizer.preprocessor.html="",t.parser.tokenizer.preprocessor.pos=-1,t.parser.tokenizer.preprocessor.lastGapPos=-2,t.parser.tokenizer.preprocessor.gapStack=[],t.parser.tokenizer.preprocessor.skipNextNewLine=!1,t.parser.tokenizer.preprocessor.lastChunkWritten=!1,t.parser.tokenizer.preprocessor.endOfChunkHit=!1,t.parser.tokenizer.preprocessor.isEol=!1,aL(t,ri(e)),t.parser.tokenizer.write(t.options.tagfilter?e.value.replace(bie,"&lt;$1$2"):e.value,!1),t.parser.tokenizer._runParsingLoop(),t.parser.tokenizer.state===72||t.parser.tokenizer.state===78){t.parser.tokenizer.preprocessor.lastChunkWritten=!0;const n=t.parser.tokenizer._consume();t.parser.tokenizer._callState(n)}}function wie(e,t){const n=e;if(t.options.passThrough&&t.options.passThrough.includes(n.type))Aie(n,t);else{let r="";throw Eie.has(n.type)&&(r=". It looks like you are using MDX nodes with `hast-util-raw` (or `rehype-raw`). If you use this because you are using remark or rehype plugins that inject `'html'` nodes, then please raise an issue with that plugin, as its a bad and slow idea. If you use this because you are using markdown syntax, then you have to configure this utility (or plugin) to pass through these nodes (see `passThrough` in docs), but you can also migrate to use the MDX syntax"),new Error("Cannot compile `"+n.type+"` node"+r)}}function Ru(e,t){aL(e,t);const n=e.parser.tokenizer.currentCharacterToken;n&&n.location&&(n.location.endLine=e.parser.tokenizer.preprocessor.line,n.location.endCol=e.parser.tokenizer.preprocessor.col+1,n.location.endOffset=e.parser.tokenizer.preprocessor.offset+1,e.parser.currentToken=n,e.parser._processToken(e.parser.currentToken)),e.parser.tokenizer.paused=!1,e.parser.tokenizer.inLoop=!1,e.parser.tokenizer.active=!1,e.parser.tokenizer.returnState=er.DATA,e.parser.tokenizer.charRefCode=-1,e.parser.tokenizer.consumedAfterSnapshot=-1,e.parser.tokenizer.currentLocation=null,e.parser.tokenizer.currentCharacterToken=null,e.parser.tokenizer.currentToken=null,e.parser.tokenizer.currentAttr={name:"",value:""}}function aL(e,t){if(t&&t.offset!==void 0){const n={startLine:t.line,startCol:t.column,startOffset:t.offset,endLine:-1,endCol:-1,endOffset:-1};e.parser.tokenizer.preprocessor.lineStartPos=-t.column+1,e.parser.tokenizer.preprocessor.droppedBufferSize=t.offset,e.parser.tokenizer.preprocessor.line=t.line,e.parser.tokenizer.currentLocation=n}}function Die(e,t){const n=e.tagName.toLowerCase();if(t.parser.tokenizer.state===er.PLAINTEXT)return;Ru(t,ri(e));const r=t.parser.openElements.current;let a="namespaceURI"in r?r.namespaceURI:bl.html;a===bl.html&&n==="svg"&&(a=bl.svg);const o=die({...e,children:[]},{space:a===bl.svg?"svg":"html"}),s={type:$t.START_TAG,tagName:n,tagID:wu(n),selfClosing:!1,ackSelfClosing:!1,attrs:"attrs"in o?o.attrs:[],location:Vp(e)};t.parser.currentToken=s,t.parser._processToken(t.parser.currentToken),t.parser.tokenizer.lastStartTagName=n}function kie(e,t){const n=e.tagName.toLowerCase();if(!t.parser.tokenizer.inForeignNode&&EN.includes(n)||t.parser.tokenizer.state===er.PLAINTEXT)return;Ru(t,Wy(e));const r={type:$t.END_TAG,tagName:n,tagID:wu(n),selfClosing:!1,ackSelfClosing:!1,attrs:[],location:Vp(e)};t.parser.currentToken=r,t.parser._processToken(t.parser.currentToken),n===t.parser.tokenizer.lastStartTagName&&(t.parser.tokenizer.state===er.RCDATA||t.parser.tokenizer.state===er.RAWTEXT||t.parser.tokenizer.state===er.SCRIPT_DATA)&&(t.parser.tokenizer.state=er.DATA)}function Rie(e){const t=e.type==="root"?e.children[0]:e;return!!(t&&(t.type==="doctype"||t.type==="element"&&t.tagName.toLowerCase()==="html"))}function Vp(e){const t=ri(e)||{line:void 0,column:void 0,offset:void 0},n=Wy(e)||{line:void 0,column:void 0,offset:void 0};return{startLine:t.line,startCol:t.column,startOffset:t.offset,endLine:n.line,endCol:n.column,endOffset:n.offset}}function Oie(e){return"children"in e?Ml({...e,children:[]}):Ml(e)}function Iie(e){return function(t,n){return tL(t,{...e,file:n})}}var Nie=["prefixCls","className","source","style","disableCopy","skipHtml","onScroll","onMouseOver","pluginsFilter","rehypeRewrite","wrapperElement","warpperElement","urlTransform"],Lie=e=>e;const Pie=Tt.forwardRef((e,t)=>{var{prefixCls:n="wmde-markdown wmde-markdown-color",className:r,source:a,style:o,disableCopy:s=!1,skipHtml:c=!0,onScroll:u,onMouseOver:d,pluginsFilter:p,wrapperElement:h={},warpperElement:g={},urlTransform:y}=e,b=Pr(e,Nie),E=Tt.useRef(null);x.useImperativeHandle(t,()=>Ne({},e,{mdp:E}),[E,e]);var _=(n||"")+" "+(r||"");uX(E);var A=[...b.rehypePlugins||[]],D={allowElement:(O,k,F)=>b.allowElement?b.allowElement(O,k,F):/^[A-Za-z0-9]+$/.test(O.tagName)};c||A.push(Iie);var w=[iX,...b.remarkPlugins||[],wJ],R=Ne({},g,h);return P.jsx("div",Ne({ref:E,onScroll:u,onMouseOver:d},R,{className:_,style:o,children:P.jsx(ure,Ne({},D,b,{skipHtml:!c,urlTransform:y||Lie,rehypePlugins:p?p("rehype",A):A,remarkPlugins:p?p("remark",w):w,children:a||""}))}))});var eg={},aT={};function Mie(e,t){for(var n=t,r=0;r<e.length;r++){var a=r===e.length-1,o=e.charAt(r),s=n[o]||(n[o]={chars:{}});a&&(s.self=e),n=s.chars}}function gR(e){if(e.length===0)return eg;for(var t={},n=0,r=e;n<r.length;n++){var a=r[n];Mie(a,t)}return t}function $ie(e){if(e.length===0)return aT;for(var t={},n=0,r=e;n<r.length;n++){var a=r[n];t[a]=!0}return t}var wm={},yR={type:"String",optional:!0};function Fie(e){var t={type:"NoArgument",optional:!1};function n(s){if(t.type&&t.type!==s&&t.type!=="NoArgument")throw new Error('Conflicting pseudo-class argument type: "'.concat(t.type,'" vs "').concat(s,'".'));t.type=s}for(var r=0,a=e;r<a.length;r++){var o=a[r];o==="NoArgument"&&(t.optional=!0),o==="Formula"&&n("Formula"),o==="FormulaOfSelector"&&(n("Formula"),t.ofSelector=!0),o==="String"&&n("String"),o==="Selector"&&n("Selector")}return t}function Bie(e){for(var t={},n=0,r=Object.keys(e);n<r.length;n++){var a=r[n],o=e[a];if(o)for(var s=0,c=o;s<c.length;s++){var u=c[s];(t[u]||(t[u]=[])).push(a)}}return t}function vR(e){for(var t=Bie(e),n={},r=0,a=Object.keys(t);r<a.length;r++){var o=a[r],s=t[o];s&&(n[o]=Fie(s))}return n}var mu=function(){return mu=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++){t=arguments[n];for(var a in t)Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a])}return e},mu.apply(this,arguments)},Uie={},oT={wildcard:!0};function jie(e){return e?typeof e=="boolean"?oT:e:Uie}function Hie(e,t){return function(n,r){return t(e(n),e(r))}}function zie(e){return function(t,n){var r=e(t,n);if(!r)throw new Error("Syntax definition cannot be null or undefined.");return r}}function bR(e,t){return function(n,r){return r===!0?e:t(n===!0?e:n,r)}}function Bc(e){return function(t,n){if(!n||!t)return n;if(typeof n!="object"||n===null)throw new Error("Unexpected syntax definition extension type: ".concat(n,"."));for(var r=mu({},t),a=0,o=Object.entries(n);a<o.length;a++){var s=o[a],c=s[0],u=s[1];if(c!=="latest"){var d=e[c];r[c]=d(t[c],u)}}return r}}function Ai(e,t){return t!==void 0?t:e}function Dm(e,t){return t?e?e.concat(t):t:e}function ER(e,t){if(!t)return e;if(!e)return t;for(var n=mu({},e),r=0,a=Object.entries(t);r<a.length;r++){var o=a[r],s=o[0],c=o[1];if(!c){delete n[s];continue}var u=e[s];if(!u){n[s]=c;continue}n[s]=u.concat(c)}return n}var xl=zie(Bc({baseSyntax:Ai,modules:Dm,tag:bR(oT,Bc({wildcard:Ai})),ids:Ai,classNames:Ai,namespace:bR(oT,Bc({wildcard:Ai})),combinators:Dm,attributes:Bc({operators:Dm,caseSensitivityModifiers:Dm,unknownCaseSensitivityModifiers:Ai}),pseudoClasses:Bc({unknown:Ai,definitions:ER}),pseudoElements:Bc({unknown:Ai,notation:Ai,definitions:Hie(function(e){return Array.isArray(e)?{NoArgument:e}:e},ER)})})),oL={tag:{},ids:!0,classNames:!0,combinators:[],pseudoElements:{unknown:"reject",notation:"singleColon",definitions:["first-letter","first-line"]},pseudoClasses:{unknown:"reject",definitions:{NoArgument:["link","visited","active"]}}},iL=xl(oL,{tag:{wildcard:!0},combinators:[">","+"],attributes:{unknownCaseSensitivityModifiers:"reject",operators:["=","~=","|="]},pseudoElements:{definitions:["before","after"]},pseudoClasses:{unknown:"reject",definitions:{NoArgument:["hover","focus","first-child"],String:["lang"]}}}),iT=xl(iL,{namespace:{wildcard:!0},combinators:["~"],attributes:{operators:["^=","$=","*="]},pseudoElements:{notation:"both"},pseudoClasses:{definitions:{NoArgument:["root","last-child","first-of-type","last-of-type","only-child","only-of-type","empty","target","enabled","disabled","checked","indeterminate"],Formula:["nth-child","nth-last-child","nth-of-type","nth-last-of-type"],Selector:["not"]}}}),sL=xl(iT,{combinators:["||"],attributes:{caseSensitivityModifiers:["i","I","s","S"]},pseudoClasses:{definitions:{NoArgument:["any-link","local-link","target-within","scope","current","past","future","focus-within","focus-visible","read-write","read-only","placeholder-shown","default","valid","invalid","in-range","out-of-range","required","optional","blank","user-invalid","playing","paused","autofill","modal","fullscreen","picture-in-picture","defined","loading","popover-open"],Formula:["nth-col","nth-last-col"],String:["dir"],FormulaOfSelector:["nth-child","nth-last-child"],Selector:["current","is","where","has","state"]}},pseudoElements:{definitions:{NoArgument:["marker"]}}}),Vg={"css-position-1":{latest:!1,pseudoClasses:{definitions:{NoArgument:["static","relative","absolute"]}}},"css-position-2":{latest:!1,pseudoClasses:{definitions:{NoArgument:["static","relative","absolute","fixed"]}}},"css-position-3":{latest:!1,pseudoClasses:{definitions:{NoArgument:["sticky","fixed","absolute","relative","static"]}}},"css-position-4":{latest:!0,pseudoClasses:{definitions:{NoArgument:["sticky","fixed","absolute","relative","static","initial"]}}},"css-scoping-1":{latest:!0,pseudoClasses:{definitions:{NoArgument:["host","host-context"],Selector:["host","host-context"]}},pseudoElements:{definitions:{Selector:["slotted"]}}},"css-pseudo-4":{latest:!0,pseudoElements:{definitions:{NoArgument:["marker","selection","target-text","search-text","spelling-error","grammar-error","backdrop","file-selector-button","prefix","postfix","placeholder","details-content"],String:["highlight"]}}},"css-shadow-parts-1":{latest:!0,pseudoElements:{definitions:{String:["part"]}}}},lL=mu(mu({},sL),{modules:Object.entries(Vg).filter(function(e){var t=e[1].latest;return t}).map(function(e){var t=e[0];return t})}),Vie=xl(lL,{pseudoElements:{unknown:"accept"},pseudoClasses:{unknown:"accept"},attributes:{unknownCaseSensitivityModifiers:"accept"}}),sT={css1:oL,css2:iL,css3:iT,"selectors-3":iT,"selectors-4":sL,latest:lL,progressive:Vie};function Gie(){for(var e={pseudoClasses:{},pseudoElements:{}},t=["css1","css2","css3","selectors-3","selectors-4"],n=0,r=t;n<r.length;n++){var a=r[n],o=sT[a];if(o.pseudoClasses&&typeof o.pseudoClasses=="object"){var s=o.pseudoClasses.definitions;if(s)for(var c=0,u=Object.entries(s);c<u.length;c++)for(var d=u[c],p=d[1],h=0,g=p;h<g.length;h++){var y=g[h];e.pseudoClasses[y]||(e.pseudoClasses[y]=[]),e.pseudoClasses[y].includes(a)||e.pseudoClasses[y].push(a)}}if(o.pseudoElements&&typeof o.pseudoElements=="object"){var s=o.pseudoElements.definitions;if(s)if(Array.isArray(s))for(var b=0,E=s;b<E.length;b++){var _=E[b];e.pseudoElements[_]||(e.pseudoElements[_]=[]),e.pseudoElements[_].includes(a)||e.pseudoElements[_].push(a)}else for(var A=0,D=Object.values(s);A<D.length;A++)for(var p=D[A],w=0,R=p;w<R.length;w++){var O=R[w];e.pseudoElements[O]||(e.pseudoElements[O]=[]),e.pseudoElements[O].includes(a)||e.pseudoElements[O].push(a)}}}for(var k=0,F=Object.entries(Vg);k<F.length;k++){var G=F[k],j=G[0],T=G[1];if(T.pseudoClasses&&typeof T.pseudoClasses=="object"){var s=T.pseudoClasses.definitions;if(s)for(var M=0,U=Object.values(s);M<U.length;M++)for(var p=U[M],B=0,Y=p;B<Y.length;B++){var X=Y[B];e.pseudoClasses[X]||(e.pseudoClasses[X]=[]),e.pseudoClasses[X].includes(j)||e.pseudoClasses[X].push(j)}}if(T.pseudoElements&&typeof T.pseudoElements=="object"){var s=T.pseudoElements.definitions;if(s)if(Array.isArray(s))for(var z=0,Z=s;z<Z.length;z++){var J=Z[z];e.pseudoElements[J]||(e.pseudoElements[J]=[]),e.pseudoElements[J].includes(j)||e.pseudoElements[J].push(j)}else for(var oe=0,I=Object.values(s);oe<I.length;oe++)for(var p=I[oe],re=0,ee=p;re<ee.length;re++){var L=ee[re];e.pseudoElements[L]||(e.pseudoElements[L]=[]),e.pseudoElements[L].includes(j)||e.pseudoElements[L].push(j)}}}return e}var TR=Gie();function Qd(e){return e>="a"&&e<="z"||e>="A"&&e<="Z"||e==="-"||e==="_"||e==="\\"||e>=" "}function SR(e){return e>="a"&&e<="z"||e>="A"&&e<="Z"||e>="0"&&e<="9"||e==="-"||e==="_"||e>=" "}function Kd(e){return e>="a"&&e<="f"||e>="A"&&e<="F"||e>="0"&&e<="9"}var qie={" ":!0," ":!0,"\n":!0,"\r":!0,"\f":!0},Wie={'"':!0,"'":!0},Sb={0:!0,1:!0,2:!0,3:!0,4:!0,5:!0,6:!0,7:!0,8:!0,9:!0},Yie=6,_b="css-selector-parser parse error: ";function Qie(e){e===void 0&&(e={});var t=e.syntax,n=t===void 0?"latest":t,r=e.substitutes,a=e.strict,o=a===void 0?!0:a,s=e.modules,c=typeof n=="object"?n:sT[n];if(c.baseSyntax&&(c=xl(sT[c.baseSyntax],c)),c.modules&&c.modules.length>0)for(var u=0,d=c.modules;u<d.length;u++){var p=d[u],h=Vg[p];h&&(c=xl(h,c))}if(s&&s.length>0)for(var g=0,y=s;g<y.length;g++){var b=y[g],h=Vg[b];h&&(c=xl(h,c))}var E=c.tag?[!0,!!jie(c.tag).wildcard]:[!1,!1],_=E[0],A=E[1],D=!!c.ids,w=!!c.classNames,R=!!c.namespace,O=c.namespace&&(c.namespace===!0||c.namespace.wildcard===!0);if(R&&!_)throw new Error("".concat(_b,"Namespaces cannot be enabled while tags are disabled."));var k=!!r,F=c.combinators?gR(c.combinators):eg,G=c.attributes?[!0,c.attributes.operators?gR(c.attributes.operators):eg,c.attributes.caseSensitivityModifiers?$ie(c.attributes.caseSensitivityModifiers):aT,c.attributes.unknownCaseSensitivityModifiers==="accept"]:[!1,eg,aT,!1],j=G[0],T=G[1],M=G[2],U=G[3],B=U||Object.keys(M).length>0,Y=c.pseudoClasses?[!0,c.pseudoClasses.definitions?vR(c.pseudoClasses.definitions):wm,c.pseudoClasses.unknown==="accept"]:[!1,wm,!1],X=Y[0],z=Y[1],Z=Y[2],J=c.pseudoElements?[!0,c.pseudoElements.notation==="singleColon"||c.pseudoElements.notation==="both",!c.pseudoElements.notation||c.pseudoElements.notation==="doubleColon"||c.pseudoElements.notation==="both",c.pseudoElements.definitions?vR(Array.isArray(c.pseudoElements.definitions)?{NoArgument:c.pseudoElements.definitions}:c.pseudoElements.definitions):wm,c.pseudoElements.unknown==="accept"]:[!1,!1,!1,wm,!1],oe=J[0],I=J[1],re=J[2],ee=J[3],L=J[4],te="",be=te.length,de=0,xe="",ge=function(Ee){return xe===Ee},Oe=function(){return ge("*")||Qd(xe)},Ue=function(Ee){de=Ee,xe=te.charAt(de)},Ie=function(){de++,xe=te.charAt(de)},Ye=function(){var Ee=xe;return de++,xe=te.charAt(de),Ee};function Ve(Ee){var Te=Math.min(be-1,de),ut=new Error("".concat(_b).concat(Ee," Pos: ").concat(Te,"."));throw ut.position=Te,ut.name="ParserError",ut}function ke(Ee,Te){if(!Ee)return Ve(Te)}var Rt=function(){ke(de<be,"Unexpected end of input.")},Et=function(){return de>=be},je=function(Ee){ke(de<be,'Expected "'.concat(Ee,'" but end of input reached.')),ke(xe===Ee,'Expected "'.concat(Ee,'" but "').concat(xe,'" found.')),de++,xe=te.charAt(de)};function St(Ee){var Te=ot(Ee,de);if(Te)return de+=Te.length,xe=te.charAt(de),Te}function ot(Ee,Te){var ut=te.charAt(Te),nt=Ee[ut];if(nt){var Fn=ot(nt.chars,Te+1);if(Fn)return Fn;if(nt.self)return nt.self}}function Ze(){for(var Ee=Ye(),Te=1;Kd(xe)&&Te<Yie;)Ee+=Ye(),Te++;return Dn(),String.fromCharCode(parseInt(Ee,16))}function Ge(Ee){var Te="";for(je(Ee);de<be;){if(ge(Ee))return Ie(),Te;ge("\\")?(Ie(),ge(Ee)?(Te+=Ee,Ie()):xe===`
272
+ `,d="/",p="*",h="",g="comment",y="declaration";vb=function(E,_){if(typeof E!="string")throw new TypeError("First argument must be a string");if(!E)return[];_=_||{};var A=1,D=1;function w(B){var Y=B.match(t);Y&&(A+=Y.length);var X=B.lastIndexOf(u);D=~X?B.length-X:D+B.length}function R(){var B={line:A,column:D};return function(Y){return Y.position=new O(B),G(),Y}}function O(B){this.start=B,this.end={line:A,column:D},this.source=_.source}O.prototype.content=E;function k(B){var Y=new Error(_.source+":"+A+":"+D+": "+B);if(Y.reason=B,Y.filename=_.source,Y.line=A,Y.column=D,Y.source=E,!_.silent)throw Y}function F(B){var Y=B.exec(E);if(Y){var X=Y[0];return w(X),E=E.slice(X.length),Y}}function G(){F(n)}function j(B){var Y;for(B=B||[];Y=T();)Y!==!1&&B.push(Y);return B}function T(){var B=R();if(!(d!=E.charAt(0)||p!=E.charAt(1))){for(var Y=2;h!=E.charAt(Y)&&(p!=E.charAt(Y)||d!=E.charAt(Y+1));)++Y;if(Y+=2,h===E.charAt(Y-1))return k("End of comment missing");var X=E.slice(2,Y-2);return D+=2,w(X),E=E.slice(Y),D+=2,B({type:g,comment:X})}}function M(){var B=R(),Y=F(r);if(Y){if(T(),!F(a))return k("property missing ':'");var X=F(o),z=B({type:y,property:b(Y[0].replace(e,h)),value:X?b(X[0].replace(e,h)):h});return F(s),z}}function U(){var B=[];j(B);for(var Y;Y=M();)Y!==!1&&(B.push(Y),j(B));return B}return G(),U()};function b(E){return E?E.replace(c,h):h}return vb}var Gk;function Ine(){if(Gk)return Fc;Gk=1;var e=Fc&&Fc.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(Fc,"__esModule",{value:!0}),Fc.default=n;var t=e(One());function n(r,a){var o=null;if(!r||typeof r!="string")return o;var s=(0,t.default)(r),c=typeof a=="function";return s.forEach(function(u){if(u.type==="declaration"){var d=u.property,p=u.value;c?a(d,p,u):p&&(o=o||{},o[d]=p)}}),o}return Fc}var Gd={},qk;function Nne(){if(qk)return Gd;qk=1,Object.defineProperty(Gd,"__esModule",{value:!0}),Gd.camelCase=void 0;var e=/^--[a-zA-Z0-9_-]+$/,t=/-([a-z])/g,n=/^[^-]+$/,r=/^-(webkit|moz|ms|o|khtml)-/,a=/^-(ms)-/,o=function(d){return!d||n.test(d)||e.test(d)},s=function(d,p){return p.toUpperCase()},c=function(d,p){return"".concat(p,"-")},u=function(d,p){return p===void 0&&(p={}),o(d)?d:(d=d.toLowerCase(),p.reactCompat?d=d.replace(a,c):d=d.replace(r,c),d.replace(t,s))};return Gd.camelCase=u,Gd}var qd,Wk;function Lne(){if(Wk)return qd;Wk=1;var e=qd&&qd.__importDefault||function(a){return a&&a.__esModule?a:{default:a}},t=e(Ine()),n=Nne();function r(a,o){var s={};return!a||typeof a!="string"||(0,t.default)(a,function(c,u){c&&u&&(s[(0,n.camelCase)(c,o)]=u)}),s}return r.default=r,qd=r,qd}var Pne=Lne();const Mne=Gy(Pne),$ne=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,Fne=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,Bne={};function Yk(e,t){return(Bne.jsx?Fne:$ne).test(e)}const Une={classId:"classID",dataType:"datatype",itemId:"itemID",strokeDashArray:"strokeDasharray",strokeDashOffset:"strokeDashoffset",strokeLineCap:"strokeLinecap",strokeLineJoin:"strokeLinejoin",strokeMiterLimit:"strokeMiterlimit",typeOf:"typeof",xLinkActuate:"xlinkActuate",xLinkArcRole:"xlinkArcrole",xLinkHref:"xlinkHref",xLinkRole:"xlinkRole",xLinkShow:"xlinkShow",xLinkTitle:"xlinkTitle",xLinkType:"xlinkType",xmlnsXLink:"xmlnsXlink"},a_={}.hasOwnProperty,jne=new Map,Hne=/[A-Z]/g,zne=new Set(["table","tbody","thead","tfoot","tr"]),Vne=new Set(["td","th"]),d4="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function Gne(e,t){if(!t||t.Fragment===void 0)throw new TypeError("Expected `Fragment` in options");const n=t.filePath||void 0;let r;if(t.development){if(typeof t.jsxDEV!="function")throw new TypeError("Expected `jsxDEV` in options when `development: true`");r=Jne(n,t.jsxDEV)}else{if(typeof t.jsx!="function")throw new TypeError("Expected `jsx` in production options");if(typeof t.jsxs!="function")throw new TypeError("Expected `jsxs` in production options");r=Zne(n,t.jsx,t.jsxs)}const a={Fragment:t.Fragment,ancestors:[],components:t.components||{},create:r,elementAttributeNameCase:t.elementAttributeNameCase||"react",evaluater:t.createEvaluater?t.createEvaluater():void 0,filePath:n,ignoreInvalidStyle:t.ignoreInvalidStyle||!1,passKeys:t.passKeys!==!1,passNode:t.passNode||!1,schema:t.space==="svg"?Bi:_u,stylePropertyNameCase:t.stylePropertyNameCase||"dom",tableCellAlignToStyle:t.tableCellAlignToStyle!==!1},o=f4(a,e,void 0);return o&&typeof o!="string"?o:a.create(e,a.Fragment,{children:o||void 0},void 0)}function f4(e,t,n){if(t.type==="element")return qne(e,t,n);if(t.type==="mdxFlowExpression"||t.type==="mdxTextExpression")return Wne(e,t);if(t.type==="mdxJsxFlowElement"||t.type==="mdxJsxTextElement")return Qne(e,t,n);if(t.type==="mdxjsEsm")return Yne(e,t);if(t.type==="root")return Kne(e,t,n);if(t.type==="text")return Xne(e,t)}function qne(e,t,n){const r=e.schema;let a=r;t.tagName.toLowerCase()==="svg"&&r.space==="html"&&(a=Bi,e.schema=a),e.ancestors.push(t);const o=h4(e,t.tagName,!1),s=ere(e,t);let c=i_(e,t);return zne.has(t.tagName)&&(c=c.filter(function(u){return typeof u=="string"?!Lp(u):!0})),p4(e,s,o,t),o_(s,c),e.ancestors.pop(),e.schema=r,e.create(t,o,s,n)}function Wne(e,t){if(t.data&&t.data.estree&&e.evaluater){const n=t.data.estree.body[0];return n.type,e.evaluater.evaluateExpression(n.expression)}rp(e,t.position)}function Yne(e,t){if(t.data&&t.data.estree&&e.evaluater)return e.evaluater.evaluateProgram(t.data.estree);rp(e,t.position)}function Qne(e,t,n){const r=e.schema;let a=r;t.name==="svg"&&r.space==="html"&&(a=Bi,e.schema=a),e.ancestors.push(t);const o=t.name===null?e.Fragment:h4(e,t.name,!0),s=tre(e,t),c=i_(e,t);return p4(e,s,o,t),o_(s,c),e.ancestors.pop(),e.schema=r,e.create(t,o,s,n)}function Kne(e,t,n){const r={};return o_(r,i_(e,t)),e.create(t,e.Fragment,r,n)}function Xne(e,t){return t.value}function p4(e,t,n,r){typeof n!="string"&&n!==e.Fragment&&e.passNode&&(t.node=r)}function o_(e,t){if(t.length>0){const n=t.length>1?t:t[0];n&&(e.children=n)}}function Zne(e,t,n){return r;function r(a,o,s,c){const u=Array.isArray(s.children)?n:t;return c?u(o,s,c):u(o,s)}}function Jne(e,t){return n;function n(r,a,o,s){const c=Array.isArray(o.children),u=ri(r);return t(a,o,s,c,{columnNumber:u?u.column-1:void 0,fileName:e,lineNumber:u?u.line:void 0},void 0)}}function ere(e,t){const n={};let r,a;for(a in t.properties)if(a!=="children"&&a_.call(t.properties,a)){const o=nre(e,a,t.properties[a]);if(o){const[s,c]=o;e.tableCellAlignToStyle&&s==="align"&&typeof c=="string"&&Vne.has(t.tagName)?r=c:n[s]=c}}if(r){const o=n.style||(n.style={});o[e.stylePropertyNameCase==="css"?"text-align":"textAlign"]=r}return n}function tre(e,t){const n={};for(const r of t.attributes)if(r.type==="mdxJsxExpressionAttribute")if(r.data&&r.data.estree&&e.evaluater){const a=r.data.estree.body[0];a.type;const o=a.expression;o.type;const s=o.properties[0];s.type,Object.assign(n,e.evaluater.evaluateExpression(s.argument))}else rp(e,t.position);else{const a=r.name;let o;if(r.value&&typeof r.value=="object")if(r.value.data&&r.value.data.estree&&e.evaluater){const s=r.value.data.estree.body[0];s.type,o=e.evaluater.evaluateExpression(s.expression)}else rp(e,t.position);else o=r.value===null?!0:r.value;n[a]=o}return n}function i_(e,t){const n=[];let r=-1;const a=e.passKeys?new Map:jne;for(;++r<t.children.length;){const o=t.children[r];let s;if(e.passKeys){const u=o.type==="element"?o.tagName:o.type==="mdxJsxFlowElement"||o.type==="mdxJsxTextElement"?o.name:void 0;if(u){const d=a.get(u)||0;s=u+"-"+d,a.set(u,d+1)}}const c=f4(e,o,s);c!==void 0&&n.push(c)}return n}function nre(e,t,n){const r=Pp(e.schema,t);if(!(n==null||typeof n=="number"&&Number.isNaN(n))){if(Array.isArray(n)&&(n=r.commaSeparated?Ry(n):Oy(n)),r.property==="style"){let a=typeof n=="object"?n:rre(e,String(n));return e.stylePropertyNameCase==="css"&&(a=are(a)),["style",a]}return[e.elementAttributeNameCase==="react"&&r.space?Une[r.property]||r.property:r.attribute,n]}}function rre(e,t){try{return Mne(t,{reactCompat:!0})}catch(n){if(e.ignoreInvalidStyle)return{};const r=n,a=new Br("Cannot parse `style` attribute",{ancestors:e.ancestors,cause:r,ruleId:"style",source:"hast-util-to-jsx-runtime"});throw a.file=e.filePath||void 0,a.url=d4+"#cannot-parse-style-attribute",a}}function h4(e,t,n){let r;if(!n)r={type:"Literal",value:t};else if(t.includes(".")){const a=t.split(".");let o=-1,s;for(;++o<a.length;){const c=Yk(a[o])?{type:"Identifier",name:a[o]}:{type:"Literal",value:a[o]};s=s?{type:"MemberExpression",object:s,property:c,computed:!!(o&&c.type==="Literal"),optional:!1}:c}r=s}else r=Yk(t)&&!/^[a-z]/.test(t)?{type:"Identifier",name:t}:{type:"Literal",value:t};if(r.type==="Literal"){const a=r.value;return a_.call(e.components,a)?e.components[a]:a}if(e.evaluater)return e.evaluater.evaluateExpression(r);rp(e)}function rp(e,t){const n=new Br("Cannot handle MDX estrees without `createEvaluater`",{ancestors:e.ancestors,place:t,ruleId:"mdx-estree",source:"hast-util-to-jsx-runtime"});throw n.file=e.filePath||void 0,n.url=d4+"#cannot-handle-mdx-estrees-without-createevaluater",n}function are(e){const t={};let n;for(n in e)a_.call(e,n)&&(t[ore(n)]=e[n]);return t}function ore(e){let t=e.replace(Hne,ire);return t.slice(0,3)==="ms-"&&(t="-"+t),t}function ire(e){return"-"+e.toLowerCase()}const bb={action:["form"],cite:["blockquote","del","ins","q"],data:["object"],formAction:["button","input"],href:["a","area","base","link"],icon:["menuitem"],itemId:null,manifest:["html"],ping:["a","area"],poster:["video"],src:["audio","embed","iframe","img","input","script","source","track","video"]},sre="https://github.com/remarkjs/react-markdown/blob/main/changelog.md",Qk=[],Kk={allowDangerousHtml:!0},lre=/^(https?|ircs?|mailto|xmpp)$/i,cre=[{from:"astPlugins",id:"remove-buggy-html-in-markdown-parser"},{from:"allowDangerousHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"allowNode",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowElement"},{from:"allowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowedElements"},{from:"disallowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"disallowedElements"},{from:"escapeHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"includeElementIndex",id:"#remove-includeelementindex"},{from:"includeNodeIndex",id:"change-includenodeindex-to-includeelementindex"},{from:"linkTarget",id:"remove-linktarget"},{from:"plugins",id:"change-plugins-to-remarkplugins",to:"remarkPlugins"},{from:"rawSourcePos",id:"#remove-rawsourcepos"},{from:"renderers",id:"change-renderers-to-components",to:"components"},{from:"source",id:"change-source-to-children",to:"children"},{from:"sourcePos",id:"#remove-sourcepos"},{from:"transformImageUri",id:"#add-urltransform",to:"urlTransform"},{from:"transformLinkUri",id:"#add-urltransform",to:"urlTransform"}];function ure(e){const t=e.allowedElements,n=e.allowElement,r=e.children||"",a=e.className,o=e.components,s=e.disallowedElements,c=e.rehypePlugins||Qk,u=e.remarkPlugins||Qk,d=e.remarkRehypeOptions?{...e.remarkRehypeOptions,...Kk}:Kk,p=e.skipHtml,h=e.unwrapDisallowed,g=e.urlTransform||dre,y=qJ().use(zte).use(u).use(Rne,d).use(c),b=new G5;typeof r=="string"&&(b.value=r);for(const D of cre)Object.hasOwn(e,D.from)&&(""+D.from+(D.to?"use `"+D.to+"` instead":"remove it")+sre+D.id,void 0);const E=y.parse(b);let _=y.runSync(E,b);return a&&(_={type:"element",tagName:"div",properties:{className:a},children:_.type==="root"?_.children:[_]}),ha(_,A),Gne(_,{Fragment:P.Fragment,components:o,ignoreInvalidStyle:!0,jsx:P.jsx,jsxs:P.jsxs,passKeys:!0,passNode:!0});function A(D,w,R){if(D.type==="raw"&&R&&typeof w=="number")return p?R.children.splice(w,1):R.children[w]={type:"text",value:D.value},w;if(D.type==="element"){let O;for(O in bb)if(Object.hasOwn(bb,O)&&Object.hasOwn(D.properties,O)){const k=D.properties[O],F=bb[O];(F===null||F.includes(D.tagName))&&(D.properties[O]=g(String(k||""),O,D))}}if(D.type==="element"){let O=t?!t.includes(D.tagName):s?s.includes(D.tagName):!1;if(!O&&n&&typeof w=="number"&&(O=!n(D,w,R)),O&&R&&typeof w=="number")return h&&D.children?R.children.splice(w,1,...D.children):R.children.splice(w,1),w}}}function dre(e){const t=e.indexOf(":"),n=e.indexOf("?"),r=e.indexOf("#"),a=e.indexOf("/");return t===-1||a!==-1&&t>a||n!==-1&&t>n||r!==-1&&t>r||lre.test(e.slice(0,t))?e:""}const fre=new Set([65534,65535,131070,131071,196606,196607,262142,262143,327678,327679,393214,393215,458750,458751,524286,524287,589822,589823,655358,655359,720894,720895,786430,786431,851966,851967,917502,917503,983038,983039,1048574,1048575,1114110,1114111]),$n="�";var H;(function(e){e[e.EOF=-1]="EOF",e[e.NULL=0]="NULL",e[e.TABULATION=9]="TABULATION",e[e.CARRIAGE_RETURN=13]="CARRIAGE_RETURN",e[e.LINE_FEED=10]="LINE_FEED",e[e.FORM_FEED=12]="FORM_FEED",e[e.SPACE=32]="SPACE",e[e.EXCLAMATION_MARK=33]="EXCLAMATION_MARK",e[e.QUOTATION_MARK=34]="QUOTATION_MARK",e[e.AMPERSAND=38]="AMPERSAND",e[e.APOSTROPHE=39]="APOSTROPHE",e[e.HYPHEN_MINUS=45]="HYPHEN_MINUS",e[e.SOLIDUS=47]="SOLIDUS",e[e.DIGIT_0=48]="DIGIT_0",e[e.DIGIT_9=57]="DIGIT_9",e[e.SEMICOLON=59]="SEMICOLON",e[e.LESS_THAN_SIGN=60]="LESS_THAN_SIGN",e[e.EQUALS_SIGN=61]="EQUALS_SIGN",e[e.GREATER_THAN_SIGN=62]="GREATER_THAN_SIGN",e[e.QUESTION_MARK=63]="QUESTION_MARK",e[e.LATIN_CAPITAL_A=65]="LATIN_CAPITAL_A",e[e.LATIN_CAPITAL_Z=90]="LATIN_CAPITAL_Z",e[e.RIGHT_SQUARE_BRACKET=93]="RIGHT_SQUARE_BRACKET",e[e.GRAVE_ACCENT=96]="GRAVE_ACCENT",e[e.LATIN_SMALL_A=97]="LATIN_SMALL_A",e[e.LATIN_SMALL_Z=122]="LATIN_SMALL_Z"})(H||(H={}));const oa={DASH_DASH:"--",CDATA_START:"[CDATA[",DOCTYPE:"doctype",SCRIPT:"script",PUBLIC:"public",SYSTEM:"system"};function m4(e){return e>=55296&&e<=57343}function pre(e){return e>=56320&&e<=57343}function hre(e,t){return(e-55296)*1024+9216+t}function g4(e){return e!==32&&e!==10&&e!==13&&e!==9&&e!==12&&e>=1&&e<=31||e>=127&&e<=159}function y4(e){return e>=64976&&e<=65007||fre.has(e)}var ve;(function(e){e.controlCharacterInInputStream="control-character-in-input-stream",e.noncharacterInInputStream="noncharacter-in-input-stream",e.surrogateInInputStream="surrogate-in-input-stream",e.nonVoidHtmlElementStartTagWithTrailingSolidus="non-void-html-element-start-tag-with-trailing-solidus",e.endTagWithAttributes="end-tag-with-attributes",e.endTagWithTrailingSolidus="end-tag-with-trailing-solidus",e.unexpectedSolidusInTag="unexpected-solidus-in-tag",e.unexpectedNullCharacter="unexpected-null-character",e.unexpectedQuestionMarkInsteadOfTagName="unexpected-question-mark-instead-of-tag-name",e.invalidFirstCharacterOfTagName="invalid-first-character-of-tag-name",e.unexpectedEqualsSignBeforeAttributeName="unexpected-equals-sign-before-attribute-name",e.missingEndTagName="missing-end-tag-name",e.unexpectedCharacterInAttributeName="unexpected-character-in-attribute-name",e.unknownNamedCharacterReference="unknown-named-character-reference",e.missingSemicolonAfterCharacterReference="missing-semicolon-after-character-reference",e.unexpectedCharacterAfterDoctypeSystemIdentifier="unexpected-character-after-doctype-system-identifier",e.unexpectedCharacterInUnquotedAttributeValue="unexpected-character-in-unquoted-attribute-value",e.eofBeforeTagName="eof-before-tag-name",e.eofInTag="eof-in-tag",e.missingAttributeValue="missing-attribute-value",e.missingWhitespaceBetweenAttributes="missing-whitespace-between-attributes",e.missingWhitespaceAfterDoctypePublicKeyword="missing-whitespace-after-doctype-public-keyword",e.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers="missing-whitespace-between-doctype-public-and-system-identifiers",e.missingWhitespaceAfterDoctypeSystemKeyword="missing-whitespace-after-doctype-system-keyword",e.missingQuoteBeforeDoctypePublicIdentifier="missing-quote-before-doctype-public-identifier",e.missingQuoteBeforeDoctypeSystemIdentifier="missing-quote-before-doctype-system-identifier",e.missingDoctypePublicIdentifier="missing-doctype-public-identifier",e.missingDoctypeSystemIdentifier="missing-doctype-system-identifier",e.abruptDoctypePublicIdentifier="abrupt-doctype-public-identifier",e.abruptDoctypeSystemIdentifier="abrupt-doctype-system-identifier",e.cdataInHtmlContent="cdata-in-html-content",e.incorrectlyOpenedComment="incorrectly-opened-comment",e.eofInScriptHtmlCommentLikeText="eof-in-script-html-comment-like-text",e.eofInDoctype="eof-in-doctype",e.nestedComment="nested-comment",e.abruptClosingOfEmptyComment="abrupt-closing-of-empty-comment",e.eofInComment="eof-in-comment",e.incorrectlyClosedComment="incorrectly-closed-comment",e.eofInCdata="eof-in-cdata",e.absenceOfDigitsInNumericCharacterReference="absence-of-digits-in-numeric-character-reference",e.nullCharacterReference="null-character-reference",e.surrogateCharacterReference="surrogate-character-reference",e.characterReferenceOutsideUnicodeRange="character-reference-outside-unicode-range",e.controlCharacterReference="control-character-reference",e.noncharacterCharacterReference="noncharacter-character-reference",e.missingWhitespaceBeforeDoctypeName="missing-whitespace-before-doctype-name",e.missingDoctypeName="missing-doctype-name",e.invalidCharacterSequenceAfterDoctypeName="invalid-character-sequence-after-doctype-name",e.duplicateAttribute="duplicate-attribute",e.nonConformingDoctype="non-conforming-doctype",e.missingDoctype="missing-doctype",e.misplacedDoctype="misplaced-doctype",e.endTagWithoutMatchingOpenElement="end-tag-without-matching-open-element",e.closingOfElementWithOpenChildElements="closing-of-element-with-open-child-elements",e.disallowedContentInNoscriptInHead="disallowed-content-in-noscript-in-head",e.openElementsLeftAfterEof="open-elements-left-after-eof",e.abandonedHeadElementChild="abandoned-head-element-child",e.misplacedStartTagForHeadElement="misplaced-start-tag-for-head-element",e.nestedNoscriptInHead="nested-noscript-in-head",e.eofInElementThatCanContainOnlyText="eof-in-element-that-can-contain-only-text"})(ve||(ve={}));const mre=65536;let gre=class{constructor(t){this.handler=t,this.html="",this.pos=-1,this.lastGapPos=-2,this.gapStack=[],this.skipNextNewLine=!1,this.lastChunkWritten=!1,this.endOfChunkHit=!1,this.bufferWaterline=mre,this.isEol=!1,this.lineStartPos=0,this.droppedBufferSize=0,this.line=1,this.lastErrOffset=-1}get col(){return this.pos-this.lineStartPos+ +(this.lastGapPos!==this.pos)}get offset(){return this.droppedBufferSize+this.pos}getError(t,n){const{line:r,col:a,offset:o}=this,s=a+n,c=o+n;return{code:t,startLine:r,endLine:r,startCol:s,endCol:s,startOffset:c,endOffset:c}}_err(t){this.handler.onParseError&&this.lastErrOffset!==this.offset&&(this.lastErrOffset=this.offset,this.handler.onParseError(this.getError(t,0)))}_addGap(){this.gapStack.push(this.lastGapPos),this.lastGapPos=this.pos}_processSurrogate(t){if(this.pos!==this.html.length-1){const n=this.html.charCodeAt(this.pos+1);if(pre(n))return this.pos++,this._addGap(),hre(t,n)}else if(!this.lastChunkWritten)return this.endOfChunkHit=!0,H.EOF;return this._err(ve.surrogateInInputStream),t}willDropParsedChunk(){return this.pos>this.bufferWaterline}dropParsedChunk(){this.willDropParsedChunk()&&(this.html=this.html.substring(this.pos),this.lineStartPos-=this.pos,this.droppedBufferSize+=this.pos,this.pos=0,this.lastGapPos=-2,this.gapStack.length=0)}write(t,n){this.html.length>0?this.html+=t:this.html=t,this.endOfChunkHit=!1,this.lastChunkWritten=n}insertHtmlAtCurrentPos(t){this.html=this.html.substring(0,this.pos+1)+t+this.html.substring(this.pos+1),this.endOfChunkHit=!1}startsWith(t,n){if(this.pos+t.length>this.html.length)return this.endOfChunkHit=!this.lastChunkWritten,!1;if(n)return this.html.startsWith(t,this.pos);for(let r=0;r<t.length;r++)if((this.html.charCodeAt(this.pos+r)|32)!==t.charCodeAt(r))return!1;return!0}peek(t){const n=this.pos+t;if(n>=this.html.length)return this.endOfChunkHit=!this.lastChunkWritten,H.EOF;const r=this.html.charCodeAt(n);return r===H.CARRIAGE_RETURN?H.LINE_FEED:r}advance(){if(this.pos++,this.isEol&&(this.isEol=!1,this.line++,this.lineStartPos=this.pos),this.pos>=this.html.length)return this.endOfChunkHit=!this.lastChunkWritten,H.EOF;let t=this.html.charCodeAt(this.pos);return t===H.CARRIAGE_RETURN?(this.isEol=!0,this.skipNextNewLine=!0,H.LINE_FEED):t===H.LINE_FEED&&(this.isEol=!0,this.skipNextNewLine)?(this.line--,this.skipNextNewLine=!1,this._addGap(),this.advance()):(this.skipNextNewLine=!1,m4(t)&&(t=this._processSurrogate(t)),this.handler.onParseError===null||t>31&&t<127||t===H.LINE_FEED||t===H.CARRIAGE_RETURN||t>159&&t<64976||this._checkForProblematicCharacters(t),t)}_checkForProblematicCharacters(t){g4(t)?this._err(ve.controlCharacterInInputStream):y4(t)&&this._err(ve.noncharacterInInputStream)}retreat(t){for(this.pos-=t;this.pos<this.lastGapPos;)this.lastGapPos=this.gapStack.pop(),this.pos--;this.isEol=!1}};var $t;(function(e){e[e.CHARACTER=0]="CHARACTER",e[e.NULL_CHARACTER=1]="NULL_CHARACTER",e[e.WHITESPACE_CHARACTER=2]="WHITESPACE_CHARACTER",e[e.START_TAG=3]="START_TAG",e[e.END_TAG=4]="END_TAG",e[e.COMMENT=5]="COMMENT",e[e.DOCTYPE=6]="DOCTYPE",e[e.EOF=7]="EOF",e[e.HIBERNATION=8]="HIBERNATION"})($t||($t={}));function v4(e,t){for(let n=e.attrs.length-1;n>=0;n--)if(e.attrs[n].name===t)return e.attrs[n].value;return null}const yre=new Map([[0,65533],[128,8364],[130,8218],[131,402],[132,8222],[133,8230],[134,8224],[135,8225],[136,710],[137,8240],[138,352],[139,8249],[140,338],[142,381],[145,8216],[146,8217],[147,8220],[148,8221],[149,8226],[150,8211],[151,8212],[152,732],[153,8482],[154,353],[155,8250],[156,339],[158,382],[159,376]]);function vre(e){var t;return e>=55296&&e<=57343||e>1114111?65533:(t=yre.get(e))!==null&&t!==void 0?t:e}var Sr;(function(e){e[e.NUM=35]="NUM",e[e.SEMI=59]="SEMI",e[e.EQUALS=61]="EQUALS",e[e.ZERO=48]="ZERO",e[e.NINE=57]="NINE",e[e.LOWER_A=97]="LOWER_A",e[e.LOWER_F=102]="LOWER_F",e[e.LOWER_X=120]="LOWER_X",e[e.LOWER_Z=122]="LOWER_Z",e[e.UPPER_A=65]="UPPER_A",e[e.UPPER_F=70]="UPPER_F",e[e.UPPER_Z=90]="UPPER_Z"})(Sr||(Sr={}));const bre=32;var Ss;(function(e){e[e.VALUE_LENGTH=49152]="VALUE_LENGTH",e[e.BRANCH_LENGTH=16256]="BRANCH_LENGTH",e[e.JUMP_TABLE=127]="JUMP_TABLE"})(Ss||(Ss={}));function XE(e){return e>=Sr.ZERO&&e<=Sr.NINE}function Ere(e){return e>=Sr.UPPER_A&&e<=Sr.UPPER_F||e>=Sr.LOWER_A&&e<=Sr.LOWER_F}function Tre(e){return e>=Sr.UPPER_A&&e<=Sr.UPPER_Z||e>=Sr.LOWER_A&&e<=Sr.LOWER_Z||XE(e)}function Sre(e){return e===Sr.EQUALS||Tre(e)}var Er;(function(e){e[e.EntityStart=0]="EntityStart",e[e.NumericStart=1]="NumericStart",e[e.NumericDecimal=2]="NumericDecimal",e[e.NumericHex=3]="NumericHex",e[e.NamedEntity=4]="NamedEntity"})(Er||(Er={}));var ki;(function(e){e[e.Legacy=0]="Legacy",e[e.Strict=1]="Strict",e[e.Attribute=2]="Attribute"})(ki||(ki={}));let _re=class{constructor(t,n,r){this.decodeTree=t,this.emitCodePoint=n,this.errors=r,this.state=Er.EntityStart,this.consumed=1,this.result=0,this.treeIndex=0,this.excess=1,this.decodeMode=ki.Strict}startEntity(t){this.decodeMode=t,this.state=Er.EntityStart,this.result=0,this.treeIndex=0,this.excess=1,this.consumed=1}write(t,n){switch(this.state){case Er.EntityStart:return t.charCodeAt(n)===Sr.NUM?(this.state=Er.NumericStart,this.consumed+=1,this.stateNumericStart(t,n+1)):(this.state=Er.NamedEntity,this.stateNamedEntity(t,n));case Er.NumericStart:return this.stateNumericStart(t,n);case Er.NumericDecimal:return this.stateNumericDecimal(t,n);case Er.NumericHex:return this.stateNumericHex(t,n);case Er.NamedEntity:return this.stateNamedEntity(t,n)}}stateNumericStart(t,n){return n>=t.length?-1:(t.charCodeAt(n)|bre)===Sr.LOWER_X?(this.state=Er.NumericHex,this.consumed+=1,this.stateNumericHex(t,n+1)):(this.state=Er.NumericDecimal,this.stateNumericDecimal(t,n))}addToNumericResult(t,n,r,a){if(n!==r){const o=r-n;this.result=this.result*Math.pow(a,o)+Number.parseInt(t.substr(n,o),a),this.consumed+=o}}stateNumericHex(t,n){const r=n;for(;n<t.length;){const a=t.charCodeAt(n);if(XE(a)||Ere(a))n+=1;else return this.addToNumericResult(t,r,n,16),this.emitNumericEntity(a,3)}return this.addToNumericResult(t,r,n,16),-1}stateNumericDecimal(t,n){const r=n;for(;n<t.length;){const a=t.charCodeAt(n);if(XE(a))n+=1;else return this.addToNumericResult(t,r,n,10),this.emitNumericEntity(a,2)}return this.addToNumericResult(t,r,n,10),-1}emitNumericEntity(t,n){var r;if(this.consumed<=n)return(r=this.errors)===null||r===void 0||r.absenceOfDigitsInNumericCharacterReference(this.consumed),0;if(t===Sr.SEMI)this.consumed+=1;else if(this.decodeMode===ki.Strict)return 0;return this.emitCodePoint(vre(this.result),this.consumed),this.errors&&(t!==Sr.SEMI&&this.errors.missingSemicolonAfterCharacterReference(),this.errors.validateNumericCharacterReference(this.result)),this.consumed}stateNamedEntity(t,n){const{decodeTree:r}=this;let a=r[this.treeIndex],o=(a&Ss.VALUE_LENGTH)>>14;for(;n<t.length;n++,this.excess++){const s=t.charCodeAt(n);if(this.treeIndex=Cre(r,a,this.treeIndex+Math.max(1,o),s),this.treeIndex<0)return this.result===0||this.decodeMode===ki.Attribute&&(o===0||Sre(s))?0:this.emitNotTerminatedNamedEntity();if(a=r[this.treeIndex],o=(a&Ss.VALUE_LENGTH)>>14,o!==0){if(s===Sr.SEMI)return this.emitNamedEntityData(this.treeIndex,o,this.consumed+this.excess);this.decodeMode!==ki.Strict&&(this.result=this.treeIndex,this.consumed+=this.excess,this.excess=0)}}return-1}emitNotTerminatedNamedEntity(){var t;const{result:n,decodeTree:r}=this,a=(r[n]&Ss.VALUE_LENGTH)>>14;return this.emitNamedEntityData(n,a,this.consumed),(t=this.errors)===null||t===void 0||t.missingSemicolonAfterCharacterReference(),this.consumed}emitNamedEntityData(t,n,r){const{decodeTree:a}=this;return this.emitCodePoint(n===1?a[t]&~Ss.VALUE_LENGTH:a[t+1],r),n===3&&this.emitCodePoint(a[t+2],r),r}end(){var t;switch(this.state){case Er.NamedEntity:return this.result!==0&&(this.decodeMode!==ki.Attribute||this.result===this.treeIndex)?this.emitNotTerminatedNamedEntity():0;case Er.NumericDecimal:return this.emitNumericEntity(0,2);case Er.NumericHex:return this.emitNumericEntity(0,3);case Er.NumericStart:return(t=this.errors)===null||t===void 0||t.absenceOfDigitsInNumericCharacterReference(this.consumed),0;case Er.EntityStart:return 0}}};function Cre(e,t,n,r){const a=(t&Ss.BRANCH_LENGTH)>>7,o=t&Ss.JUMP_TABLE;if(a===0)return o!==0&&r===o?n:-1;if(o){const u=r-o;return u<0||u>=a?-1:e[n+u]-1}let s=n,c=s+a-1;for(;s<=c;){const u=s+c>>>1,d=e[u];if(d<r)s=u+1;else if(d>r)c=u-1;else return e[u+a]}return-1}var Re;(function(e){e.HTML="http://www.w3.org/1999/xhtml",e.MATHML="http://www.w3.org/1998/Math/MathML",e.SVG="http://www.w3.org/2000/svg",e.XLINK="http://www.w3.org/1999/xlink",e.XML="http://www.w3.org/XML/1998/namespace",e.XMLNS="http://www.w3.org/2000/xmlns/"})(Re||(Re={}));var Al;(function(e){e.TYPE="type",e.ACTION="action",e.ENCODING="encoding",e.PROMPT="prompt",e.NAME="name",e.COLOR="color",e.FACE="face",e.SIZE="size"})(Al||(Al={}));var no;(function(e){e.NO_QUIRKS="no-quirks",e.QUIRKS="quirks",e.LIMITED_QUIRKS="limited-quirks"})(no||(no={}));var le;(function(e){e.A="a",e.ADDRESS="address",e.ANNOTATION_XML="annotation-xml",e.APPLET="applet",e.AREA="area",e.ARTICLE="article",e.ASIDE="aside",e.B="b",e.BASE="base",e.BASEFONT="basefont",e.BGSOUND="bgsound",e.BIG="big",e.BLOCKQUOTE="blockquote",e.BODY="body",e.BR="br",e.BUTTON="button",e.CAPTION="caption",e.CENTER="center",e.CODE="code",e.COL="col",e.COLGROUP="colgroup",e.DD="dd",e.DESC="desc",e.DETAILS="details",e.DIALOG="dialog",e.DIR="dir",e.DIV="div",e.DL="dl",e.DT="dt",e.EM="em",e.EMBED="embed",e.FIELDSET="fieldset",e.FIGCAPTION="figcaption",e.FIGURE="figure",e.FONT="font",e.FOOTER="footer",e.FOREIGN_OBJECT="foreignObject",e.FORM="form",e.FRAME="frame",e.FRAMESET="frameset",e.H1="h1",e.H2="h2",e.H3="h3",e.H4="h4",e.H5="h5",e.H6="h6",e.HEAD="head",e.HEADER="header",e.HGROUP="hgroup",e.HR="hr",e.HTML="html",e.I="i",e.IMG="img",e.IMAGE="image",e.INPUT="input",e.IFRAME="iframe",e.KEYGEN="keygen",e.LABEL="label",e.LI="li",e.LINK="link",e.LISTING="listing",e.MAIN="main",e.MALIGNMARK="malignmark",e.MARQUEE="marquee",e.MATH="math",e.MENU="menu",e.META="meta",e.MGLYPH="mglyph",e.MI="mi",e.MO="mo",e.MN="mn",e.MS="ms",e.MTEXT="mtext",e.NAV="nav",e.NOBR="nobr",e.NOFRAMES="noframes",e.NOEMBED="noembed",e.NOSCRIPT="noscript",e.OBJECT="object",e.OL="ol",e.OPTGROUP="optgroup",e.OPTION="option",e.P="p",e.PARAM="param",e.PLAINTEXT="plaintext",e.PRE="pre",e.RB="rb",e.RP="rp",e.RT="rt",e.RTC="rtc",e.RUBY="ruby",e.S="s",e.SCRIPT="script",e.SEARCH="search",e.SECTION="section",e.SELECT="select",e.SOURCE="source",e.SMALL="small",e.SPAN="span",e.STRIKE="strike",e.STRONG="strong",e.STYLE="style",e.SUB="sub",e.SUMMARY="summary",e.SUP="sup",e.TABLE="table",e.TBODY="tbody",e.TEMPLATE="template",e.TEXTAREA="textarea",e.TFOOT="tfoot",e.TD="td",e.TH="th",e.THEAD="thead",e.TITLE="title",e.TR="tr",e.TRACK="track",e.TT="tt",e.U="u",e.UL="ul",e.SVG="svg",e.VAR="var",e.WBR="wbr",e.XMP="xmp"})(le||(le={}));var C;(function(e){e[e.UNKNOWN=0]="UNKNOWN",e[e.A=1]="A",e[e.ADDRESS=2]="ADDRESS",e[e.ANNOTATION_XML=3]="ANNOTATION_XML",e[e.APPLET=4]="APPLET",e[e.AREA=5]="AREA",e[e.ARTICLE=6]="ARTICLE",e[e.ASIDE=7]="ASIDE",e[e.B=8]="B",e[e.BASE=9]="BASE",e[e.BASEFONT=10]="BASEFONT",e[e.BGSOUND=11]="BGSOUND",e[e.BIG=12]="BIG",e[e.BLOCKQUOTE=13]="BLOCKQUOTE",e[e.BODY=14]="BODY",e[e.BR=15]="BR",e[e.BUTTON=16]="BUTTON",e[e.CAPTION=17]="CAPTION",e[e.CENTER=18]="CENTER",e[e.CODE=19]="CODE",e[e.COL=20]="COL",e[e.COLGROUP=21]="COLGROUP",e[e.DD=22]="DD",e[e.DESC=23]="DESC",e[e.DETAILS=24]="DETAILS",e[e.DIALOG=25]="DIALOG",e[e.DIR=26]="DIR",e[e.DIV=27]="DIV",e[e.DL=28]="DL",e[e.DT=29]="DT",e[e.EM=30]="EM",e[e.EMBED=31]="EMBED",e[e.FIELDSET=32]="FIELDSET",e[e.FIGCAPTION=33]="FIGCAPTION",e[e.FIGURE=34]="FIGURE",e[e.FONT=35]="FONT",e[e.FOOTER=36]="FOOTER",e[e.FOREIGN_OBJECT=37]="FOREIGN_OBJECT",e[e.FORM=38]="FORM",e[e.FRAME=39]="FRAME",e[e.FRAMESET=40]="FRAMESET",e[e.H1=41]="H1",e[e.H2=42]="H2",e[e.H3=43]="H3",e[e.H4=44]="H4",e[e.H5=45]="H5",e[e.H6=46]="H6",e[e.HEAD=47]="HEAD",e[e.HEADER=48]="HEADER",e[e.HGROUP=49]="HGROUP",e[e.HR=50]="HR",e[e.HTML=51]="HTML",e[e.I=52]="I",e[e.IMG=53]="IMG",e[e.IMAGE=54]="IMAGE",e[e.INPUT=55]="INPUT",e[e.IFRAME=56]="IFRAME",e[e.KEYGEN=57]="KEYGEN",e[e.LABEL=58]="LABEL",e[e.LI=59]="LI",e[e.LINK=60]="LINK",e[e.LISTING=61]="LISTING",e[e.MAIN=62]="MAIN",e[e.MALIGNMARK=63]="MALIGNMARK",e[e.MARQUEE=64]="MARQUEE",e[e.MATH=65]="MATH",e[e.MENU=66]="MENU",e[e.META=67]="META",e[e.MGLYPH=68]="MGLYPH",e[e.MI=69]="MI",e[e.MO=70]="MO",e[e.MN=71]="MN",e[e.MS=72]="MS",e[e.MTEXT=73]="MTEXT",e[e.NAV=74]="NAV",e[e.NOBR=75]="NOBR",e[e.NOFRAMES=76]="NOFRAMES",e[e.NOEMBED=77]="NOEMBED",e[e.NOSCRIPT=78]="NOSCRIPT",e[e.OBJECT=79]="OBJECT",e[e.OL=80]="OL",e[e.OPTGROUP=81]="OPTGROUP",e[e.OPTION=82]="OPTION",e[e.P=83]="P",e[e.PARAM=84]="PARAM",e[e.PLAINTEXT=85]="PLAINTEXT",e[e.PRE=86]="PRE",e[e.RB=87]="RB",e[e.RP=88]="RP",e[e.RT=89]="RT",e[e.RTC=90]="RTC",e[e.RUBY=91]="RUBY",e[e.S=92]="S",e[e.SCRIPT=93]="SCRIPT",e[e.SEARCH=94]="SEARCH",e[e.SECTION=95]="SECTION",e[e.SELECT=96]="SELECT",e[e.SOURCE=97]="SOURCE",e[e.SMALL=98]="SMALL",e[e.SPAN=99]="SPAN",e[e.STRIKE=100]="STRIKE",e[e.STRONG=101]="STRONG",e[e.STYLE=102]="STYLE",e[e.SUB=103]="SUB",e[e.SUMMARY=104]="SUMMARY",e[e.SUP=105]="SUP",e[e.TABLE=106]="TABLE",e[e.TBODY=107]="TBODY",e[e.TEMPLATE=108]="TEMPLATE",e[e.TEXTAREA=109]="TEXTAREA",e[e.TFOOT=110]="TFOOT",e[e.TD=111]="TD",e[e.TH=112]="TH",e[e.THEAD=113]="THEAD",e[e.TITLE=114]="TITLE",e[e.TR=115]="TR",e[e.TRACK=116]="TRACK",e[e.TT=117]="TT",e[e.U=118]="U",e[e.UL=119]="UL",e[e.SVG=120]="SVG",e[e.VAR=121]="VAR",e[e.WBR=122]="WBR",e[e.XMP=123]="XMP"})(C||(C={}));const Are=new Map([[le.A,C.A],[le.ADDRESS,C.ADDRESS],[le.ANNOTATION_XML,C.ANNOTATION_XML],[le.APPLET,C.APPLET],[le.AREA,C.AREA],[le.ARTICLE,C.ARTICLE],[le.ASIDE,C.ASIDE],[le.B,C.B],[le.BASE,C.BASE],[le.BASEFONT,C.BASEFONT],[le.BGSOUND,C.BGSOUND],[le.BIG,C.BIG],[le.BLOCKQUOTE,C.BLOCKQUOTE],[le.BODY,C.BODY],[le.BR,C.BR],[le.BUTTON,C.BUTTON],[le.CAPTION,C.CAPTION],[le.CENTER,C.CENTER],[le.CODE,C.CODE],[le.COL,C.COL],[le.COLGROUP,C.COLGROUP],[le.DD,C.DD],[le.DESC,C.DESC],[le.DETAILS,C.DETAILS],[le.DIALOG,C.DIALOG],[le.DIR,C.DIR],[le.DIV,C.DIV],[le.DL,C.DL],[le.DT,C.DT],[le.EM,C.EM],[le.EMBED,C.EMBED],[le.FIELDSET,C.FIELDSET],[le.FIGCAPTION,C.FIGCAPTION],[le.FIGURE,C.FIGURE],[le.FONT,C.FONT],[le.FOOTER,C.FOOTER],[le.FOREIGN_OBJECT,C.FOREIGN_OBJECT],[le.FORM,C.FORM],[le.FRAME,C.FRAME],[le.FRAMESET,C.FRAMESET],[le.H1,C.H1],[le.H2,C.H2],[le.H3,C.H3],[le.H4,C.H4],[le.H5,C.H5],[le.H6,C.H6],[le.HEAD,C.HEAD],[le.HEADER,C.HEADER],[le.HGROUP,C.HGROUP],[le.HR,C.HR],[le.HTML,C.HTML],[le.I,C.I],[le.IMG,C.IMG],[le.IMAGE,C.IMAGE],[le.INPUT,C.INPUT],[le.IFRAME,C.IFRAME],[le.KEYGEN,C.KEYGEN],[le.LABEL,C.LABEL],[le.LI,C.LI],[le.LINK,C.LINK],[le.LISTING,C.LISTING],[le.MAIN,C.MAIN],[le.MALIGNMARK,C.MALIGNMARK],[le.MARQUEE,C.MARQUEE],[le.MATH,C.MATH],[le.MENU,C.MENU],[le.META,C.META],[le.MGLYPH,C.MGLYPH],[le.MI,C.MI],[le.MO,C.MO],[le.MN,C.MN],[le.MS,C.MS],[le.MTEXT,C.MTEXT],[le.NAV,C.NAV],[le.NOBR,C.NOBR],[le.NOFRAMES,C.NOFRAMES],[le.NOEMBED,C.NOEMBED],[le.NOSCRIPT,C.NOSCRIPT],[le.OBJECT,C.OBJECT],[le.OL,C.OL],[le.OPTGROUP,C.OPTGROUP],[le.OPTION,C.OPTION],[le.P,C.P],[le.PARAM,C.PARAM],[le.PLAINTEXT,C.PLAINTEXT],[le.PRE,C.PRE],[le.RB,C.RB],[le.RP,C.RP],[le.RT,C.RT],[le.RTC,C.RTC],[le.RUBY,C.RUBY],[le.S,C.S],[le.SCRIPT,C.SCRIPT],[le.SEARCH,C.SEARCH],[le.SECTION,C.SECTION],[le.SELECT,C.SELECT],[le.SOURCE,C.SOURCE],[le.SMALL,C.SMALL],[le.SPAN,C.SPAN],[le.STRIKE,C.STRIKE],[le.STRONG,C.STRONG],[le.STYLE,C.STYLE],[le.SUB,C.SUB],[le.SUMMARY,C.SUMMARY],[le.SUP,C.SUP],[le.TABLE,C.TABLE],[le.TBODY,C.TBODY],[le.TEMPLATE,C.TEMPLATE],[le.TEXTAREA,C.TEXTAREA],[le.TFOOT,C.TFOOT],[le.TD,C.TD],[le.TH,C.TH],[le.THEAD,C.THEAD],[le.TITLE,C.TITLE],[le.TR,C.TR],[le.TRACK,C.TRACK],[le.TT,C.TT],[le.U,C.U],[le.UL,C.UL],[le.SVG,C.SVG],[le.VAR,C.VAR],[le.WBR,C.WBR],[le.XMP,C.XMP]]);function wu(e){var t;return(t=Are.get(e))!==null&&t!==void 0?t:C.UNKNOWN}const Le=C,xre={[Re.HTML]:new Set([Le.ADDRESS,Le.APPLET,Le.AREA,Le.ARTICLE,Le.ASIDE,Le.BASE,Le.BASEFONT,Le.BGSOUND,Le.BLOCKQUOTE,Le.BODY,Le.BR,Le.BUTTON,Le.CAPTION,Le.CENTER,Le.COL,Le.COLGROUP,Le.DD,Le.DETAILS,Le.DIR,Le.DIV,Le.DL,Le.DT,Le.EMBED,Le.FIELDSET,Le.FIGCAPTION,Le.FIGURE,Le.FOOTER,Le.FORM,Le.FRAME,Le.FRAMESET,Le.H1,Le.H2,Le.H3,Le.H4,Le.H5,Le.H6,Le.HEAD,Le.HEADER,Le.HGROUP,Le.HR,Le.HTML,Le.IFRAME,Le.IMG,Le.INPUT,Le.LI,Le.LINK,Le.LISTING,Le.MAIN,Le.MARQUEE,Le.MENU,Le.META,Le.NAV,Le.NOEMBED,Le.NOFRAMES,Le.NOSCRIPT,Le.OBJECT,Le.OL,Le.P,Le.PARAM,Le.PLAINTEXT,Le.PRE,Le.SCRIPT,Le.SECTION,Le.SELECT,Le.SOURCE,Le.STYLE,Le.SUMMARY,Le.TABLE,Le.TBODY,Le.TD,Le.TEMPLATE,Le.TEXTAREA,Le.TFOOT,Le.TH,Le.THEAD,Le.TITLE,Le.TR,Le.TRACK,Le.UL,Le.WBR,Le.XMP]),[Re.MATHML]:new Set([Le.MI,Le.MO,Le.MN,Le.MS,Le.MTEXT,Le.ANNOTATION_XML]),[Re.SVG]:new Set([Le.TITLE,Le.FOREIGN_OBJECT,Le.DESC]),[Re.XLINK]:new Set,[Re.XML]:new Set,[Re.XMLNS]:new Set},ZE=new Set([Le.H1,Le.H2,Le.H3,Le.H4,Le.H5,Le.H6]);le.STYLE,le.SCRIPT,le.XMP,le.IFRAME,le.NOEMBED,le.NOFRAMES,le.PLAINTEXT;const wre=new Uint16Array('ᵁ<Õıʊҝջאٵ۞ޢߖࠏ੊ઑඡ๭༉༦჊ረዡᐕᒝᓃᓟᔥ\0\0\0\0\0\0ᕫᛍᦍᰒᷝ὾⁠↰⊍⏀⏻⑂⠤⤒ⴈ⹈⿎〖㊺㘹㞬㣾㨨㩱㫠㬮ࠀEMabcfglmnoprstu\\bfms„‹•˜¦³¹ÈÏlig耻Æ䃆P耻&䀦cute耻Á䃁reve;䄂Āiyx}rc耻Â䃂;䐐r;쀀𝔄rave耻À䃀pha;䎑acr;䄀d;橓Āgp¡on;䄄f;쀀𝔸plyFunction;恡ing耻Å䃅Ācs¾Ãr;쀀𝒜ign;扔ilde耻Ã䃃ml耻Ä䃄ЀaceforsuåûþėĜĢħĪĀcrêòkslash;或Ŷöø;櫧ed;挆y;䐑ƀcrtąċĔause;戵noullis;愬a;䎒r;쀀𝔅pf;쀀𝔹eve;䋘còēmpeq;扎܀HOacdefhilorsuōőŖƀƞƢƵƷƺǜȕɳɸɾcy;䐧PY耻©䂩ƀcpyŝŢźute;䄆Ā;iŧŨ拒talDifferentialD;慅leys;愭ȀaeioƉƎƔƘron;䄌dil耻Ç䃇rc;䄈nint;戰ot;䄊ĀdnƧƭilla;䂸terDot;䂷òſi;䎧rcleȀDMPTLJNjǑǖot;抙inus;抖lus;投imes;抗oĀcsǢǸkwiseContourIntegral;戲eCurlyĀDQȃȏoubleQuote;思uote;怙ȀlnpuȞȨɇɕonĀ;eȥȦ户;橴ƀgitȯȶȺruent;扡nt;戯ourIntegral;戮ĀfrɌɎ;愂oduct;成nterClockwiseContourIntegral;戳oss;樯cr;쀀𝒞pĀ;Cʄʅ拓ap;才րDJSZacefiosʠʬʰʴʸˋ˗ˡ˦̳ҍĀ;oŹʥtrahd;椑cy;䐂cy;䐅cy;䐏ƀgrsʿ˄ˇger;怡r;憡hv;櫤Āayː˕ron;䄎;䐔lĀ;t˝˞戇a;䎔r;쀀𝔇Āaf˫̧Ācm˰̢riticalȀADGT̖̜̀̆cute;䂴oŴ̋̍;䋙bleAcute;䋝rave;䁠ilde;䋜ond;拄ferentialD;慆Ѱ̽\0\0\0͔͂\0Ѕf;쀀𝔻ƀ;DE͈͉͍䂨ot;惜qual;扐blèCDLRUVͣͲ΂ϏϢϸontourIntegraìȹoɴ͹\0\0ͻ»͉nArrow;懓Āeo·ΤftƀARTΐΖΡrrow;懐ightArrow;懔eåˊngĀLRΫτeftĀARγιrrow;柸ightArrow;柺ightArrow;柹ightĀATϘϞrrow;懒ee;抨pɁϩ\0\0ϯrrow;懑ownArrow;懕erticalBar;戥ǹABLRTaВЪаўѿͼrrowƀ;BUНОТ憓ar;椓pArrow;懵reve;䌑eft˒к\0ц\0ѐightVector;楐eeVector;楞ectorĀ;Bљњ憽ar;楖ightǔѧ\0ѱeeVector;楟ectorĀ;BѺѻ懁ar;楗eeĀ;A҆҇护rrow;憧ĀctҒҗr;쀀𝒟rok;䄐ࠀNTacdfglmopqstuxҽӀӄӋӞӢӧӮӵԡԯԶՒ՝ՠեG;䅊H耻Ð䃐cute耻É䃉ƀaiyӒӗӜron;䄚rc耻Ê䃊;䐭ot;䄖r;쀀𝔈rave耻È䃈ement;戈ĀapӺӾcr;䄒tyɓԆ\0\0ԒmallSquare;旻erySmallSquare;斫ĀgpԦԪon;䄘f;쀀𝔼silon;䎕uĀaiԼՉlĀ;TՂՃ橵ilde;扂librium;懌Āci՗՚r;愰m;橳a;䎗ml耻Ë䃋Āipժկsts;戃onentialE;慇ʀcfiosօֈ֍ֲ׌y;䐤r;쀀𝔉lledɓ֗\0\0֣mallSquare;旼erySmallSquare;斪Ͱֺ\0ֿ\0\0ׄf;쀀𝔽All;戀riertrf;愱cò׋؀JTabcdfgorstר׬ׯ׺؀ؒؖ؛؝أ٬ٲcy;䐃耻>䀾mmaĀ;d׷׸䎓;䏜reve;䄞ƀeiy؇،ؐdil;䄢rc;䄜;䐓ot;䄠r;쀀𝔊;拙pf;쀀𝔾eater̀EFGLSTصلَٖٛ٦qualĀ;Lؾؿ扥ess;招ullEqual;执reater;檢ess;扷lantEqual;橾ilde;扳cr;쀀𝒢;扫ЀAacfiosuڅڋږڛڞڪھۊRDcy;䐪Āctڐڔek;䋇;䁞irc;䄤r;愌lbertSpace;愋ǰگ\0ڲf;愍izontalLine;攀Āctۃۅòکrok;䄦mpńېۘownHumðįqual;扏܀EJOacdfgmnostuۺ۾܃܇܎ܚܞܡܨ݄ݸދޏޕcy;䐕lig;䄲cy;䐁cute耻Í䃍Āiyܓܘrc耻Î䃎;䐘ot;䄰r;愑rave耻Ì䃌ƀ;apܠܯܿĀcgܴܷr;䄪inaryI;慈lieóϝǴ݉\0ݢĀ;eݍݎ戬Āgrݓݘral;戫section;拂isibleĀCTݬݲomma;恣imes;恢ƀgptݿރވon;䄮f;쀀𝕀a;䎙cr;愐ilde;䄨ǫޚ\0ޞcy;䐆l耻Ï䃏ʀcfosuެ޷޼߂ߐĀiyޱ޵rc;䄴;䐙r;쀀𝔍pf;쀀𝕁ǣ߇\0ߌr;쀀𝒥rcy;䐈kcy;䐄΀HJacfosߤߨ߽߬߱ࠂࠈcy;䐥cy;䐌ppa;䎚Āey߶߻dil;䄶;䐚r;쀀𝔎pf;쀀𝕂cr;쀀𝒦րJTaceflmostࠥࠩࠬࡐࡣ঳সে্਷ੇcy;䐉耻<䀼ʀcmnpr࠷࠼ࡁࡄࡍute;䄹bda;䎛g;柪lacetrf;愒r;憞ƀaeyࡗ࡜ࡡron;䄽dil;䄻;䐛Āfsࡨ॰tԀACDFRTUVarࡾࢩࢱࣦ࣠ࣼयज़ΐ४Ānrࢃ࢏gleBracket;柨rowƀ;BR࢙࢚࢞憐ar;懤ightArrow;懆eiling;挈oǵࢷ\0ࣃbleBracket;柦nǔࣈ\0࣒eeVector;楡ectorĀ;Bࣛࣜ懃ar;楙loor;挊ightĀAV࣯ࣵrrow;憔ector;楎Āerँगeƀ;AVउऊऐ抣rrow;憤ector;楚iangleƀ;BEतथऩ抲ar;槏qual;抴pƀDTVषूौownVector;楑eeVector;楠ectorĀ;Bॖॗ憿ar;楘ectorĀ;B॥०憼ar;楒ightáΜs̀EFGLSTॾঋকঝঢভqualGreater;拚ullEqual;扦reater;扶ess;檡lantEqual;橽ilde;扲r;쀀𝔏Ā;eঽা拘ftarrow;懚idot;䄿ƀnpw৔ਖਛgȀLRlr৞৷ਂਐeftĀAR০৬rrow;柵ightArrow;柷ightArrow;柶eftĀarγਊightáοightáϊf;쀀𝕃erĀLRਢਬeftArrow;憙ightArrow;憘ƀchtਾੀੂòࡌ;憰rok;䅁;扪Ѐacefiosuਗ਼੝੠੷੼અઋ઎p;椅y;䐜Ādl੥੯iumSpace;恟lintrf;愳r;쀀𝔐nusPlus;戓pf;쀀𝕄cò੶;䎜ҀJacefostuણધભીଔଙඑ඗ඞcy;䐊cute;䅃ƀaey઴હાron;䅇dil;䅅;䐝ƀgswે૰଎ativeƀMTV૓૟૨ediumSpace;怋hiĀcn૦૘ë૙eryThiî૙tedĀGL૸ଆreaterGreateòٳessLesóੈLine;䀊r;쀀𝔑ȀBnptଢନଷ଺reak;恠BreakingSpace;䂠f;愕ڀ;CDEGHLNPRSTV୕ୖ୪୼஡௫ఄ౞಄ದ೘ൡඅ櫬Āou୛୤ngruent;扢pCap;扭oubleVerticalBar;戦ƀlqxஃஊ஛ement;戉ualĀ;Tஒஓ扠ilde;쀀≂̸ists;戄reater΀;EFGLSTஶஷ஽௉௓௘௥扯qual;扱ullEqual;쀀≧̸reater;쀀≫̸ess;批lantEqual;쀀⩾̸ilde;扵umpń௲௽ownHump;쀀≎̸qual;쀀≏̸eĀfsఊధtTriangleƀ;BEచఛడ拪ar;쀀⧏̸qual;括s̀;EGLSTవశ఼ౄోౘ扮qual;扰reater;扸ess;쀀≪̸lantEqual;쀀⩽̸ilde;扴estedĀGL౨౹reaterGreater;쀀⪢̸essLess;쀀⪡̸recedesƀ;ESಒಓಛ技qual;쀀⪯̸lantEqual;拠ĀeiಫಹverseElement;戌ghtTriangleƀ;BEೋೌ೒拫ar;쀀⧐̸qual;拭ĀquೝഌuareSuĀbp೨೹setĀ;E೰ೳ쀀⊏̸qual;拢ersetĀ;Eഃആ쀀⊐̸qual;拣ƀbcpഓതൎsetĀ;Eഛഞ쀀⊂⃒qual;抈ceedsȀ;ESTലള഻െ抁qual;쀀⪰̸lantEqual;拡ilde;쀀≿̸ersetĀ;E൘൛쀀⊃⃒qual;抉ildeȀ;EFT൮൯൵ൿ扁qual;扄ullEqual;扇ilde;扉erticalBar;戤cr;쀀𝒩ilde耻Ñ䃑;䎝܀Eacdfgmoprstuvලෂ෉෕ෛ෠෧෼ขภยา฿ไlig;䅒cute耻Ó䃓Āiy෎ීrc耻Ô䃔;䐞blac;䅐r;쀀𝔒rave耻Ò䃒ƀaei෮ෲ෶cr;䅌ga;䎩cron;䎟pf;쀀𝕆enCurlyĀDQฎบoubleQuote;怜uote;怘;橔Āclวฬr;쀀𝒪ash耻Ø䃘iŬื฼de耻Õ䃕es;樷ml耻Ö䃖erĀBP๋๠Āar๐๓r;怾acĀek๚๜;揞et;掴arenthesis;揜Ҁacfhilors๿ງຊຏຒດຝະ໼rtialD;戂y;䐟r;쀀𝔓i;䎦;䎠usMinus;䂱Āipຢອncareplanåڝf;愙Ȁ;eio຺ູ໠໤檻cedesȀ;EST່້໏໚扺qual;檯lantEqual;扼ilde;找me;怳Ādp໩໮uct;戏ortionĀ;aȥ໹l;戝Āci༁༆r;쀀𝒫;䎨ȀUfos༑༖༛༟OT耻"䀢r;쀀𝔔pf;愚cr;쀀𝒬؀BEacefhiorsu༾གྷཇའཱིྦྷྪྭ႖ႩႴႾarr;椐G耻®䂮ƀcnrཎནབute;䅔g;柫rĀ;tཛྷཝ憠l;椖ƀaeyཧཬཱron;䅘dil;䅖;䐠Ā;vླྀཹ愜erseĀEUྂྙĀlq྇ྎement;戋uilibrium;懋pEquilibrium;楯r»ཹo;䎡ghtЀACDFTUVa࿁࿫࿳ဢဨၛႇϘĀnr࿆࿒gleBracket;柩rowƀ;BL࿜࿝࿡憒ar;懥eftArrow;懄eiling;按oǵ࿹\0စbleBracket;柧nǔည\0နeeVector;楝ectorĀ;Bဝသ懂ar;楕loor;挋Āerိ၃eƀ;AVဵံြ抢rrow;憦ector;楛iangleƀ;BEၐၑၕ抳ar;槐qual;抵pƀDTVၣၮၸownVector;楏eeVector;楜ectorĀ;Bႂႃ憾ar;楔ectorĀ;B႑႒懀ar;楓Āpuႛ႞f;愝ndImplies;楰ightarrow;懛ĀchႹႼr;愛;憱leDelayed;槴ڀHOacfhimoqstuფჱჷჽᄙᄞᅑᅖᅡᅧᆵᆻᆿĀCcჩხHcy;䐩y;䐨FTcy;䐬cute;䅚ʀ;aeiyᄈᄉᄎᄓᄗ檼ron;䅠dil;䅞rc;䅜;䐡r;쀀𝔖ortȀDLRUᄪᄴᄾᅉownArrow»ОeftArrow»࢚ightArrow»࿝pArrow;憑gma;䎣allCircle;战pf;쀀𝕊ɲᅭ\0\0ᅰt;戚areȀ;ISUᅻᅼᆉᆯ斡ntersection;抓uĀbpᆏᆞsetĀ;Eᆗᆘ抏qual;抑ersetĀ;Eᆨᆩ抐qual;抒nion;抔cr;쀀𝒮ar;拆ȀbcmpᇈᇛሉላĀ;sᇍᇎ拐etĀ;Eᇍᇕqual;抆ĀchᇠህeedsȀ;ESTᇭᇮᇴᇿ扻qual;檰lantEqual;扽ilde;承Tháྌ;我ƀ;esሒሓሣ拑rsetĀ;Eሜም抃qual;抇et»ሓրHRSacfhiorsሾቄ቉ቕ቞ቱቶኟዂወዑORN耻Þ䃞ADE;愢ĀHc቎ቒcy;䐋y;䐦Ābuቚቜ;䀉;䎤ƀaeyብቪቯron;䅤dil;䅢;䐢r;쀀𝔗Āeiቻ኉Dzኀ\0ኇefore;戴a;䎘Ācn኎ኘkSpace;쀀  Space;怉ldeȀ;EFTካኬኲኼ戼qual;扃ullEqual;扅ilde;扈pf;쀀𝕋ipleDot;惛Āctዖዛr;쀀𝒯rok;䅦ૡዷጎጚጦ\0ጬጱ\0\0\0\0\0ጸጽ፷ᎅ\0᏿ᐄᐊᐐĀcrዻጁute耻Ú䃚rĀ;oጇገ憟cir;楉rǣጓ\0጖y;䐎ve;䅬Āiyጞጣrc耻Û䃛;䐣blac;䅰r;쀀𝔘rave耻Ù䃙acr;䅪Ādiፁ፩erĀBPፈ፝Āarፍፐr;䁟acĀekፗፙ;揟et;掵arenthesis;揝onĀ;P፰፱拃lus;抎Āgp፻፿on;䅲f;쀀𝕌ЀADETadps᎕ᎮᎸᏄϨᏒᏗᏳrrowƀ;BDᅐᎠᎤar;椒ownArrow;懅ownArrow;憕quilibrium;楮eeĀ;AᏋᏌ报rrow;憥ownáϳerĀLRᏞᏨeftArrow;憖ightArrow;憗iĀ;lᏹᏺ䏒on;䎥ing;䅮cr;쀀𝒰ilde;䅨ml耻Ü䃜ҀDbcdefosvᐧᐬᐰᐳᐾᒅᒊᒐᒖash;披ar;櫫y;䐒ashĀ;lᐻᐼ抩;櫦Āerᑃᑅ;拁ƀbtyᑌᑐᑺar;怖Ā;iᑏᑕcalȀBLSTᑡᑥᑪᑴar;戣ine;䁼eparator;杘ilde;所ThinSpace;怊r;쀀𝔙pf;쀀𝕍cr;쀀𝒱dash;抪ʀcefosᒧᒬᒱᒶᒼirc;䅴dge;拀r;쀀𝔚pf;쀀𝕎cr;쀀𝒲Ȁfiosᓋᓐᓒᓘr;쀀𝔛;䎞pf;쀀𝕏cr;쀀𝒳ҀAIUacfosuᓱᓵᓹᓽᔄᔏᔔᔚᔠcy;䐯cy;䐇cy;䐮cute耻Ý䃝Āiyᔉᔍrc;䅶;䐫r;쀀𝔜pf;쀀𝕐cr;쀀𝒴ml;䅸ЀHacdefosᔵᔹᔿᕋᕏᕝᕠᕤcy;䐖cute;䅹Āayᕄᕉron;䅽;䐗ot;䅻Dzᕔ\0ᕛoWidtè૙a;䎖r;愨pf;愤cr;쀀𝒵௡ᖃᖊᖐ\0ᖰᖶᖿ\0\0\0\0ᗆᗛᗫᙟ᙭\0ᚕ᚛ᚲᚹ\0ᚾcute耻á䃡reve;䄃̀;Ediuyᖜᖝᖡᖣᖨᖭ戾;쀀∾̳;房rc耻â䃢te肻´̆;䐰lig耻æ䃦Ā;r²ᖺ;쀀𝔞rave耻à䃠ĀepᗊᗖĀfpᗏᗔsym;愵èᗓha;䎱ĀapᗟcĀclᗤᗧr;䄁g;樿ɤᗰ\0\0ᘊʀ;adsvᗺᗻᗿᘁᘇ戧nd;橕;橜lope;橘;橚΀;elmrszᘘᘙᘛᘞᘿᙏᙙ戠;榤e»ᘙsdĀ;aᘥᘦ戡ѡᘰᘲᘴᘶᘸᘺᘼᘾ;榨;榩;榪;榫;榬;榭;榮;榯tĀ;vᙅᙆ戟bĀ;dᙌᙍ抾;榝Āptᙔᙗh;戢»¹arr;捼Āgpᙣᙧon;䄅f;쀀𝕒΀;Eaeiop዁ᙻᙽᚂᚄᚇᚊ;橰cir;橯;扊d;手s;䀧roxĀ;e዁ᚒñᚃing耻å䃥ƀctyᚡᚦᚨr;쀀𝒶;䀪mpĀ;e዁ᚯñʈilde耻ã䃣ml耻ä䃤Āciᛂᛈoninôɲnt;樑ࠀNabcdefiklnoprsu᛭ᛱᜰ᜼ᝃᝈ᝸᝽០៦ᠹᡐᜍ᤽᥈ᥰot;櫭Ācrᛶ᜞kȀcepsᜀᜅᜍᜓong;扌psilon;䏶rime;怵imĀ;e᜚᜛戽q;拍Ŷᜢᜦee;抽edĀ;gᜬᜭ挅e»ᜭrkĀ;t፜᜷brk;掶Āoyᜁᝁ;䐱quo;怞ʀcmprtᝓ᝛ᝡᝤᝨausĀ;eĊĉptyv;榰séᜌnoõēƀahwᝯ᝱ᝳ;䎲;愶een;扬r;쀀𝔟g΀costuvwឍឝឳេ៕៛៞ƀaiuបពរðݠrc;旯p»፱ƀdptឤឨឭot;樀lus;樁imes;樂ɱឹ\0\0ើcup;樆ar;昅riangleĀdu៍្own;施p;斳plus;樄eåᑄåᒭarow;植ƀako៭ᠦᠵĀcn៲ᠣkƀlst៺֫᠂ozenge;槫riangleȀ;dlr᠒᠓᠘᠝斴own;斾eft;旂ight;斸k;搣Ʊᠫ\0ᠳƲᠯ\0ᠱ;斒;斑4;斓ck;斈ĀeoᠾᡍĀ;qᡃᡆ쀀=⃥uiv;쀀≡⃥t;挐Ȁptwxᡙᡞᡧᡬf;쀀𝕓Ā;tᏋᡣom»Ꮜtie;拈؀DHUVbdhmptuvᢅᢖᢪᢻᣗᣛᣬ᣿ᤅᤊᤐᤡȀLRlrᢎᢐᢒᢔ;敗;敔;敖;敓ʀ;DUduᢡᢢᢤᢦᢨ敐;敦;敩;敤;敧ȀLRlrᢳᢵᢷᢹ;敝;敚;敜;教΀;HLRhlrᣊᣋᣍᣏᣑᣓᣕ救;敬;散;敠;敫;敢;敟ox;槉ȀLRlrᣤᣦᣨᣪ;敕;敒;攐;攌ʀ;DUduڽ᣷᣹᣻᣽;敥;敨;攬;攴inus;抟lus;択imes;抠ȀLRlrᤙᤛᤝ᤟;敛;敘;攘;攔΀;HLRhlrᤰᤱᤳᤵᤷ᤻᤹攂;敪;敡;敞;攼;攤;攜Āevģ᥂bar耻¦䂦Ȁceioᥑᥖᥚᥠr;쀀𝒷mi;恏mĀ;e᜚᜜lƀ;bhᥨᥩᥫ䁜;槅sub;柈Ŭᥴ᥾lĀ;e᥹᥺怢t»᥺pƀ;Eeįᦅᦇ;檮Ā;qۜۛೡᦧ\0᧨ᨑᨕᨲ\0ᨷᩐ\0\0᪴\0\0᫁\0\0ᬡᬮ᭍᭒\0᯽\0ᰌƀcpr᦭ᦲ᧝ute;䄇̀;abcdsᦿᧀᧄ᧊᧕᧙戩nd;橄rcup;橉Āau᧏᧒p;橋p;橇ot;橀;쀀∩︀Āeo᧢᧥t;恁îړȀaeiu᧰᧻ᨁᨅǰ᧵\0᧸s;橍on;䄍dil耻ç䃧rc;䄉psĀ;sᨌᨍ橌m;橐ot;䄋ƀdmnᨛᨠᨦil肻¸ƭptyv;榲t脀¢;eᨭᨮ䂢räƲr;쀀𝔠ƀceiᨽᩀᩍy;䑇ckĀ;mᩇᩈ朓ark»ᩈ;䏇r΀;Ecefms᩟᩠ᩢᩫ᪤᪪᪮旋;槃ƀ;elᩩᩪᩭ䋆q;扗eɡᩴ\0\0᪈rrowĀlr᩼᪁eft;憺ight;憻ʀRSacd᪒᪔᪖᪚᪟»ཇ;擈st;抛irc;抚ash;抝nint;樐id;櫯cir;槂ubsĀ;u᪻᪼晣it»᪼ˬ᫇᫔᫺\0ᬊonĀ;eᫍᫎ䀺Ā;qÇÆɭ᫙\0\0᫢aĀ;t᫞᫟䀬;䁀ƀ;fl᫨᫩᫫戁îᅠeĀmx᫱᫶ent»᫩eóɍǧ᫾\0ᬇĀ;dኻᬂot;橭nôɆƀfryᬐᬔᬗ;쀀𝕔oäɔ脀©;sŕᬝr;愗Āaoᬥᬩrr;憵ss;朗Ācuᬲᬷr;쀀𝒸Ābpᬼ᭄Ā;eᭁᭂ櫏;櫑Ā;eᭉᭊ櫐;櫒dot;拯΀delprvw᭠᭬᭷ᮂᮬᯔ᯹arrĀlr᭨᭪;椸;椵ɰ᭲\0\0᭵r;拞c;拟arrĀ;p᭿ᮀ憶;椽̀;bcdosᮏᮐᮖᮡᮥᮨ截rcap;橈Āauᮛᮞp;橆p;橊ot;抍r;橅;쀀∪︀Ȁalrv᮵ᮿᯞᯣrrĀ;mᮼᮽ憷;椼yƀevwᯇᯔᯘqɰᯎ\0\0ᯒreã᭳uã᭵ee;拎edge;拏en耻¤䂤earrowĀlrᯮ᯳eft»ᮀight»ᮽeäᯝĀciᰁᰇoninôǷnt;戱lcty;挭ঀAHabcdefhijlorstuwz᰸᰻᰿ᱝᱩᱵᲊᲞᲬᲷ᳻᳿ᴍᵻᶑᶫᶻ᷆᷍rò΁ar;楥Ȁglrs᱈ᱍ᱒᱔ger;怠eth;愸òᄳhĀ;vᱚᱛ怐»ऊūᱡᱧarow;椏aã̕Āayᱮᱳron;䄏;䐴ƀ;ao̲ᱼᲄĀgrʿᲁr;懊tseq;橷ƀglmᲑᲔᲘ耻°䂰ta;䎴ptyv;榱ĀirᲣᲨsht;楿;쀀𝔡arĀlrᲳᲵ»ࣜ»သʀaegsv᳂͸᳖᳜᳠mƀ;oș᳊᳔ndĀ;ș᳑uit;晦amma;䏝in;拲ƀ;io᳧᳨᳸䃷de脀÷;o᳧ᳰntimes;拇nø᳷cy;䑒cɯᴆ\0\0ᴊrn;挞op;挍ʀlptuwᴘᴝᴢᵉᵕlar;䀤f;쀀𝕕ʀ;emps̋ᴭᴷᴽᵂqĀ;d͒ᴳot;扑inus;戸lus;戔quare;抡blebarwedgåúnƀadhᄮᵝᵧownarrowóᲃarpoonĀlrᵲᵶefôᲴighôᲶŢᵿᶅkaro÷གɯᶊ\0\0ᶎrn;挟op;挌ƀcotᶘᶣᶦĀryᶝᶡ;쀀𝒹;䑕l;槶rok;䄑Ādrᶰᶴot;拱iĀ;fᶺ᠖斿Āah᷀᷃ròЩaòྦangle;榦Āci᷒ᷕy;䑟grarr;柿ऀDacdefglmnopqrstuxḁḉḙḸոḼṉṡṾấắẽỡἪἷὄ὎὚ĀDoḆᴴoôᲉĀcsḎḔute耻é䃩ter;橮ȀaioyḢḧḱḶron;䄛rĀ;cḭḮ扖耻ê䃪lon;払;䑍ot;䄗ĀDrṁṅot;扒;쀀𝔢ƀ;rsṐṑṗ檚ave耻è䃨Ā;dṜṝ檖ot;檘Ȁ;ilsṪṫṲṴ檙nters;揧;愓Ā;dṹṺ檕ot;檗ƀapsẅẉẗcr;䄓tyƀ;svẒẓẕ戅et»ẓpĀ1;ẝẤijạả;怄;怅怃ĀgsẪẬ;䅋p;怂ĀgpẴẸon;䄙f;쀀𝕖ƀalsỄỎỒrĀ;sỊị拕l;槣us;橱iƀ;lvỚớở䎵on»ớ;䏵ȀcsuvỪỳἋἣĀioữḱrc»Ḯɩỹ\0\0ỻíՈantĀglἂἆtr»ṝess»Ṻƀaeiἒ἖Ἒls;䀽st;扟vĀ;DȵἠD;橸parsl;槥ĀDaἯἳot;打rr;楱ƀcdiἾὁỸr;愯oô͒ĀahὉὋ;䎷耻ð䃰Āmrὓὗl耻ë䃫o;悬ƀcipὡὤὧl;䀡sôծĀeoὬὴctatioîՙnentialåչৡᾒ\0ᾞ\0ᾡᾧ\0\0ῆῌ\0ΐ\0ῦῪ \0 ⁚llingdotseñṄy;䑄male;晀ƀilrᾭᾳ῁lig;耀ffiɩᾹ\0\0᾽g;耀ffig;耀ffl;쀀𝔣lig;耀filig;쀀fjƀaltῙ῜ῡt;晭ig;耀flns;斱of;䆒ǰ΅\0ῳf;쀀𝕗ĀakֿῷĀ;vῼ´拔;櫙artint;樍Āao‌⁕Ācs‑⁒ႉ‸⁅⁈\0⁐β•‥‧‪‬\0‮耻½䂽;慓耻¼䂼;慕;慙;慛Ƴ‴\0‶;慔;慖ʴ‾⁁\0\0⁃耻¾䂾;慗;慜5;慘ƶ⁌\0⁎;慚;慝8;慞l;恄wn;挢cr;쀀𝒻ࢀEabcdefgijlnorstv₂₉₟₥₰₴⃰⃵⃺⃿℃ℒℸ̗ℾ⅒↞Ā;lٍ₇;檌ƀcmpₐₕ₝ute;䇵maĀ;dₜ᳚䎳;檆reve;䄟Āiy₪₮rc;䄝;䐳ot;䄡Ȁ;lqsؾق₽⃉ƀ;qsؾٌ⃄lanô٥Ȁ;cdl٥⃒⃥⃕c;檩otĀ;o⃜⃝檀Ā;l⃢⃣檂;檄Ā;e⃪⃭쀀⋛︀s;檔r;쀀𝔤Ā;gٳ؛mel;愷cy;䑓Ȁ;Eajٚℌℎℐ;檒;檥;檤ȀEaesℛℝ℩ℴ;扩pĀ;p℣ℤ檊rox»ℤĀ;q℮ℯ檈Ā;q℮ℛim;拧pf;쀀𝕘Āci⅃ⅆr;愊mƀ;el٫ⅎ⅐;檎;檐茀>;cdlqr׮ⅠⅪⅮⅳⅹĀciⅥⅧ;檧r;橺ot;拗Par;榕uest;橼ʀadelsↄⅪ←ٖ↛ǰ↉\0↎proø₞r;楸qĀlqؿ↖lesó₈ií٫Āen↣↭rtneqq;쀀≩︀Å↪ԀAabcefkosy⇄⇇⇱⇵⇺∘∝∯≨≽ròΠȀilmr⇐⇔⇗⇛rsðᒄf»․ilôکĀdr⇠⇤cy;䑊ƀ;cwࣴ⇫⇯ir;楈;憭ar;意irc;䄥ƀalr∁∎∓rtsĀ;u∉∊晥it»∊lip;怦con;抹r;쀀𝔥sĀew∣∩arow;椥arow;椦ʀamopr∺∾≃≞≣rr;懿tht;戻kĀlr≉≓eftarrow;憩ightarrow;憪f;쀀𝕙bar;怕ƀclt≯≴≸r;쀀𝒽asè⇴rok;䄧Ābp⊂⊇ull;恃hen»ᱛૡ⊣\0⊪\0⊸⋅⋎\0⋕⋳\0\0⋸⌢⍧⍢⍿\0⎆⎪⎴cute耻í䃭ƀ;iyݱ⊰⊵rc耻î䃮;䐸Ācx⊼⊿y;䐵cl耻¡䂡ĀfrΟ⋉;쀀𝔦rave耻ì䃬Ȁ;inoܾ⋝⋩⋮Āin⋢⋦nt;樌t;戭fin;槜ta;愩lig;䄳ƀaop⋾⌚⌝ƀcgt⌅⌈⌗r;䄫ƀelpܟ⌏⌓inåގarôܠh;䄱f;抷ed;䆵ʀ;cfotӴ⌬⌱⌽⍁are;愅inĀ;t⌸⌹戞ie;槝doô⌙ʀ;celpݗ⍌⍐⍛⍡al;抺Āgr⍕⍙eróᕣã⍍arhk;樗rod;樼Ȁcgpt⍯⍲⍶⍻y;䑑on;䄯f;쀀𝕚a;䎹uest耻¿䂿Āci⎊⎏r;쀀𝒾nʀ;EdsvӴ⎛⎝⎡ӳ;拹ot;拵Ā;v⎦⎧拴;拳Ā;iݷ⎮lde;䄩ǫ⎸\0⎼cy;䑖l耻ï䃯̀cfmosu⏌⏗⏜⏡⏧⏵Āiy⏑⏕rc;䄵;䐹r;쀀𝔧ath;䈷pf;쀀𝕛ǣ⏬\0⏱r;쀀𝒿rcy;䑘kcy;䑔Ѐacfghjos␋␖␢␧␭␱␵␻ppaĀ;v␓␔䎺;䏰Āey␛␠dil;䄷;䐺r;쀀𝔨reen;䄸cy;䑅cy;䑜pf;쀀𝕜cr;쀀𝓀஀ABEHabcdefghjlmnoprstuv⑰⒁⒆⒍⒑┎┽╚▀♎♞♥♹♽⚚⚲⛘❝❨➋⟀⠁⠒ƀart⑷⑺⑼rò৆òΕail;椛arr;椎Ā;gঔ⒋;檋ar;楢ॣ⒥\0⒪\0⒱\0\0\0\0\0⒵Ⓔ\0ⓆⓈⓍ\0⓹ute;䄺mptyv;榴raîࡌbda;䎻gƀ;dlࢎⓁⓃ;榑åࢎ;檅uo耻«䂫rЀ;bfhlpst࢙ⓞⓦⓩ⓫⓮⓱⓵Ā;f࢝ⓣs;椟s;椝ë≒p;憫l;椹im;楳l;憢ƀ;ae⓿─┄檫il;椙Ā;s┉┊檭;쀀⪭︀ƀabr┕┙┝rr;椌rk;杲Āak┢┬cĀek┨┪;䁻;䁛Āes┱┳;榋lĀdu┹┻;榏;榍Ȁaeuy╆╋╖╘ron;䄾Ādi═╔il;䄼ìࢰâ┩;䐻Ȁcqrs╣╦╭╽a;椶uoĀ;rนᝆĀdu╲╷har;楧shar;楋h;憲ʀ;fgqs▋▌উ◳◿扤tʀahlrt▘▤▷◂◨rrowĀ;t࢙□aé⓶arpoonĀdu▯▴own»њp»०eftarrows;懇ightƀahs◍◖◞rrowĀ;sࣴࢧarpoonó྘quigarro÷⇰hreetimes;拋ƀ;qs▋ও◺lanôবʀ;cdgsব☊☍☝☨c;檨otĀ;o☔☕橿Ā;r☚☛檁;檃Ā;e☢☥쀀⋚︀s;檓ʀadegs☳☹☽♉♋pproøⓆot;拖qĀgq♃♅ôউgtò⒌ôছiíলƀilr♕࣡♚sht;楼;쀀𝔩Ā;Eজ♣;檑š♩♶rĀdu▲♮Ā;l॥♳;楪lk;斄cy;䑙ʀ;achtੈ⚈⚋⚑⚖rò◁orneòᴈard;楫ri;旺Āio⚟⚤dot;䅀ustĀ;a⚬⚭掰che»⚭ȀEaes⚻⚽⛉⛔;扨pĀ;p⛃⛄檉rox»⛄Ā;q⛎⛏檇Ā;q⛎⚻im;拦Ѐabnoptwz⛩⛴⛷✚✯❁❇❐Ānr⛮⛱g;柬r;懽rëࣁgƀlmr⛿✍✔eftĀar০✇ightá৲apsto;柼ightá৽parrowĀlr✥✩efô⓭ight;憬ƀafl✶✹✽r;榅;쀀𝕝us;樭imes;樴š❋❏st;戗áፎƀ;ef❗❘᠀旊nge»❘arĀ;l❤❥䀨t;榓ʀachmt❳❶❼➅➇ròࢨorneòᶌarĀ;d྘➃;業;怎ri;抿̀achiqt➘➝ੀ➢➮➻quo;怹r;쀀𝓁mƀ;egল➪➬;檍;檏Ābu┪➳oĀ;rฟ➹;怚rok;䅂萀<;cdhilqrࠫ⟒☹⟜⟠⟥⟪⟰Āci⟗⟙;檦r;橹reå◲mes;拉arr;楶uest;橻ĀPi⟵⟹ar;榖ƀ;ef⠀भ᠛旃rĀdu⠇⠍shar;楊har;楦Āen⠗⠡rtneqq;쀀≨︀Å⠞܀Dacdefhilnopsu⡀⡅⢂⢎⢓⢠⢥⢨⣚⣢⣤ઃ⣳⤂Dot;戺Ȁclpr⡎⡒⡣⡽r耻¯䂯Āet⡗⡙;時Ā;e⡞⡟朠se»⡟Ā;sျ⡨toȀ;dluျ⡳⡷⡻owîҌefôएðᏑker;斮Āoy⢇⢌mma;権;䐼ash;怔asuredangle»ᘦr;쀀𝔪o;愧ƀcdn⢯⢴⣉ro耻µ䂵Ȁ;acdᑤ⢽⣀⣄sôᚧir;櫰ot肻·Ƶusƀ;bd⣒ᤃ⣓戒Ā;uᴼ⣘;横ţ⣞⣡p;櫛ò−ðઁĀdp⣩⣮els;抧f;쀀𝕞Āct⣸⣽r;쀀𝓂pos»ᖝƀ;lm⤉⤊⤍䎼timap;抸ఀGLRVabcdefghijlmoprstuvw⥂⥓⥾⦉⦘⧚⧩⨕⨚⩘⩝⪃⪕⪤⪨⬄⬇⭄⭿⮮ⰴⱧⱼ⳩Āgt⥇⥋;쀀⋙̸Ā;v⥐௏쀀≫⃒ƀelt⥚⥲⥶ftĀar⥡⥧rrow;懍ightarrow;懎;쀀⋘̸Ā;v⥻ే쀀≪⃒ightarrow;懏ĀDd⦎⦓ash;抯ash;抮ʀbcnpt⦣⦧⦬⦱⧌la»˞ute;䅄g;쀀∠⃒ʀ;Eiop඄⦼⧀⧅⧈;쀀⩰̸d;쀀≋̸s;䅉roø඄urĀ;a⧓⧔普lĀ;s⧓ସdz⧟\0⧣p肻 ଷmpĀ;e௹ఀʀaeouy⧴⧾⨃⨐⨓ǰ⧹\0⧻;橃on;䅈dil;䅆ngĀ;dൾ⨊ot;쀀⩭̸p;橂;䐽ash;怓΀;Aadqsxஒ⨩⨭⨻⩁⩅⩐rr;懗rĀhr⨳⨶k;椤Ā;oᏲᏰot;쀀≐̸uiöୣĀei⩊⩎ar;椨í஘istĀ;s஠டr;쀀𝔫ȀEest௅⩦⩹⩼ƀ;qs஼⩭௡ƀ;qs஼௅⩴lanô௢ií௪Ā;rஶ⪁»ஷƀAap⪊⪍⪑rò⥱rr;憮ar;櫲ƀ;svྍ⪜ྌĀ;d⪡⪢拼;拺cy;䑚΀AEadest⪷⪺⪾⫂⫅⫶⫹rò⥦;쀀≦̸rr;憚r;急Ȁ;fqs఻⫎⫣⫯tĀar⫔⫙rro÷⫁ightarro÷⪐ƀ;qs఻⪺⫪lanôౕĀ;sౕ⫴»శiíౝĀ;rవ⫾iĀ;eచథiäඐĀpt⬌⬑f;쀀𝕟膀¬;in⬙⬚⬶䂬nȀ;Edvஉ⬤⬨⬮;쀀⋹̸ot;쀀⋵̸ǡஉ⬳⬵;拷;拶iĀ;vಸ⬼ǡಸ⭁⭃;拾;拽ƀaor⭋⭣⭩rȀ;ast୻⭕⭚⭟lleì୻l;쀀⫽⃥;쀀∂̸lint;樔ƀ;ceಒ⭰⭳uåಥĀ;cಘ⭸Ā;eಒ⭽ñಘȀAait⮈⮋⮝⮧rò⦈rrƀ;cw⮔⮕⮙憛;쀀⤳̸;쀀↝̸ghtarrow»⮕riĀ;eೋೖ΀chimpqu⮽⯍⯙⬄୸⯤⯯Ȁ;cerല⯆ഷ⯉uå൅;쀀𝓃ortɭ⬅\0\0⯖ará⭖mĀ;e൮⯟Ā;q൴൳suĀbp⯫⯭å೸åഋƀbcp⯶ⰑⰙȀ;Ees⯿ⰀഢⰄ抄;쀀⫅̸etĀ;eഛⰋqĀ;qണⰀcĀ;eലⰗñസȀ;EesⰢⰣൟⰧ抅;쀀⫆̸etĀ;e൘ⰮqĀ;qൠⰣȀgilrⰽⰿⱅⱇìௗlde耻ñ䃱çృiangleĀlrⱒⱜeftĀ;eచⱚñదightĀ;eೋⱥñ೗Ā;mⱬⱭ䎽ƀ;esⱴⱵⱹ䀣ro;愖p;怇ҀDHadgilrsⲏⲔⲙⲞⲣⲰⲶⳓⳣash;抭arr;椄p;쀀≍⃒ash;抬ĀetⲨⲬ;쀀≥⃒;쀀>⃒nfin;槞ƀAetⲽⳁⳅrr;椂;쀀≤⃒Ā;rⳊⳍ쀀<⃒ie;쀀⊴⃒ĀAtⳘⳜrr;椃rie;쀀⊵⃒im;쀀∼⃒ƀAan⳰⳴ⴂrr;懖rĀhr⳺⳽k;椣Ā;oᏧᏥear;椧ቓ᪕\0\0\0\0\0\0\0\0\0\0\0\0\0ⴭ\0ⴸⵈⵠⵥ⵲ⶄᬇ\0\0ⶍⶫ\0ⷈⷎ\0ⷜ⸙⸫⸾⹃Ācsⴱ᪗ute耻ó䃳ĀiyⴼⵅrĀ;c᪞ⵂ耻ô䃴;䐾ʀabios᪠ⵒⵗLjⵚlac;䅑v;樸old;榼lig;䅓Ācr⵩⵭ir;榿;쀀𝔬ͯ⵹\0\0⵼\0ⶂn;䋛ave耻ò䃲;槁Ābmⶈ෴ar;榵Ȁacitⶕ⶘ⶥⶨrò᪀Āir⶝ⶠr;榾oss;榻nå๒;槀ƀaeiⶱⶵⶹcr;䅍ga;䏉ƀcdnⷀⷅǍron;䎿;榶pf;쀀𝕠ƀaelⷔ⷗ǒr;榷rp;榹΀;adiosvⷪⷫⷮ⸈⸍⸐⸖戨rò᪆Ȁ;efmⷷⷸ⸂⸅橝rĀ;oⷾⷿ愴f»ⷿ耻ª䂪耻º䂺gof;抶r;橖lope;橗;橛ƀclo⸟⸡⸧ò⸁ash耻ø䃸l;折iŬⸯ⸴de耻õ䃵esĀ;aǛ⸺s;樶ml耻ö䃶bar;挽ૡ⹞\0⹽\0⺀⺝\0⺢⺹\0\0⻋ຜ\0⼓\0\0⼫⾼\0⿈rȀ;astЃ⹧⹲຅脀¶;l⹭⹮䂶leìЃɩ⹸\0\0⹻m;櫳;櫽y;䐿rʀcimpt⺋⺏⺓ᡥ⺗nt;䀥od;䀮il;怰enk;怱r;쀀𝔭ƀimo⺨⺰⺴Ā;v⺭⺮䏆;䏕maô੶ne;明ƀ;tv⺿⻀⻈䏀chfork»´;䏖Āau⻏⻟nĀck⻕⻝kĀ;h⇴⻛;愎ö⇴sҀ;abcdemst⻳⻴ᤈ⻹⻽⼄⼆⼊⼎䀫cir;樣ir;樢Āouᵀ⼂;樥;橲n肻±ຝim;樦wo;樧ƀipu⼙⼠⼥ntint;樕f;쀀𝕡nd耻£䂣Ԁ;Eaceinosu່⼿⽁⽄⽇⾁⾉⾒⽾⾶;檳p;檷uå໙Ā;c໎⽌̀;acens່⽙⽟⽦⽨⽾pproø⽃urlyeñ໙ñ໎ƀaes⽯⽶⽺pprox;檹qq;檵im;拨iíໟmeĀ;s⾈ຮ怲ƀEas⽸⾐⽺ð⽵ƀdfp໬⾙⾯ƀals⾠⾥⾪lar;挮ine;挒urf;挓Ā;t໻⾴ï໻rel;抰Āci⿀⿅r;쀀𝓅;䏈ncsp;怈̀fiopsu⿚⋢⿟⿥⿫⿱r;쀀𝔮pf;쀀𝕢rime;恗cr;쀀𝓆ƀaeo⿸〉〓tĀei⿾々rnionóڰnt;樖stĀ;e【】䀿ñἙô༔઀ABHabcdefhilmnoprstux぀けさすムㄎㄫㅇㅢㅲㆎ㈆㈕㈤㈩㉘㉮㉲㊐㊰㊷ƀartぇおがròႳòϝail;検aròᱥar;楤΀cdenqrtとふへみわゔヌĀeuねぱ;쀀∽̱te;䅕iãᅮmptyv;榳gȀ;del࿑らるろ;榒;榥å࿑uo耻»䂻rր;abcfhlpstw࿜ガクシスゼゾダッデナp;極Ā;f࿠ゴs;椠;椳s;椞ë≝ð✮l;楅im;楴l;憣;憝Āaiパフil;椚oĀ;nホボ戶aló༞ƀabrョリヮrò៥rk;杳ĀakンヽcĀekヹ・;䁽;䁝Āes㄂㄄;榌lĀduㄊㄌ;榎;榐Ȁaeuyㄗㄜㄧㄩron;䅙Ādiㄡㄥil;䅗ì࿲âヺ;䑀Ȁclqsㄴㄷㄽㅄa;椷dhar;楩uoĀ;rȎȍh;憳ƀacgㅎㅟངlȀ;ipsླྀㅘㅛႜnåႻarôྩt;断ƀilrㅩဣㅮsht;楽;쀀𝔯ĀaoㅷㆆrĀduㅽㅿ»ѻĀ;l႑ㆄ;楬Ā;vㆋㆌ䏁;䏱ƀgns㆕ㇹㇼht̀ahlrstㆤㆰ㇂㇘㇤㇮rrowĀ;t࿜ㆭaéトarpoonĀduㆻㆿowîㅾp»႒eftĀah㇊㇐rrowó࿪arpoonóՑightarrows;應quigarro÷ニhreetimes;拌g;䋚ingdotseñἲƀahm㈍㈐㈓rò࿪aòՑ;怏oustĀ;a㈞㈟掱che»㈟mid;櫮Ȁabpt㈲㈽㉀㉒Ānr㈷㈺g;柭r;懾rëဃƀafl㉇㉊㉎r;榆;쀀𝕣us;樮imes;樵Āap㉝㉧rĀ;g㉣㉤䀩t;榔olint;樒arò㇣Ȁachq㉻㊀Ⴜ㊅quo;怺r;쀀𝓇Ābu・㊊oĀ;rȔȓƀhir㊗㊛㊠reåㇸmes;拊iȀ;efl㊪ၙᠡ㊫方tri;槎luhar;楨;愞ൡ㋕㋛㋟㌬㌸㍱\0㍺㎤\0\0㏬㏰\0㐨㑈㑚㒭㒱㓊㓱\0㘖\0\0㘳cute;䅛quï➺Ԁ;Eaceinpsyᇭ㋳㋵㋿㌂㌋㌏㌟㌦㌩;檴ǰ㋺\0㋼;檸on;䅡uåᇾĀ;dᇳ㌇il;䅟rc;䅝ƀEas㌖㌘㌛;檶p;檺im;择olint;樓iíሄ;䑁otƀ;be㌴ᵇ㌵担;橦΀Aacmstx㍆㍊㍗㍛㍞㍣㍭rr;懘rĀhr㍐㍒ë∨Ā;oਸ਼਴t耻§䂧i;䀻war;椩mĀin㍩ðnuóñt;朶rĀ;o㍶⁕쀀𝔰Ȁacoy㎂㎆㎑㎠rp;景Āhy㎋㎏cy;䑉;䑈rtɭ㎙\0\0㎜iäᑤaraì⹯耻­䂭Āgm㎨㎴maƀ;fv㎱㎲㎲䏃;䏂Ѐ;deglnprካ㏅㏉㏎㏖㏞㏡㏦ot;橪Ā;q኱ኰĀ;E㏓㏔檞;檠Ā;E㏛㏜檝;檟e;扆lus;樤arr;楲aròᄽȀaeit㏸㐈㐏㐗Āls㏽㐄lsetmé㍪hp;樳parsl;槤Ādlᑣ㐔e;挣Ā;e㐜㐝檪Ā;s㐢㐣檬;쀀⪬︀ƀflp㐮㐳㑂tcy;䑌Ā;b㐸㐹䀯Ā;a㐾㐿槄r;挿f;쀀𝕤aĀdr㑍ЂesĀ;u㑔㑕晠it»㑕ƀcsu㑠㑹㒟Āau㑥㑯pĀ;sᆈ㑫;쀀⊓︀pĀ;sᆴ㑵;쀀⊔︀uĀbp㑿㒏ƀ;esᆗᆜ㒆etĀ;eᆗ㒍ñᆝƀ;esᆨᆭ㒖etĀ;eᆨ㒝ñᆮƀ;afᅻ㒦ְrť㒫ֱ»ᅼaròᅈȀcemt㒹㒾㓂㓅r;쀀𝓈tmîñiì㐕aræᆾĀar㓎㓕rĀ;f㓔ឿ昆Āan㓚㓭ightĀep㓣㓪psiloîỠhé⺯s»⡒ʀbcmnp㓻㕞ሉ㖋㖎Ҁ;Edemnprs㔎㔏㔑㔕㔞㔣㔬㔱㔶抂;櫅ot;檽Ā;dᇚ㔚ot;櫃ult;櫁ĀEe㔨㔪;櫋;把lus;檿arr;楹ƀeiu㔽㕒㕕tƀ;en㔎㕅㕋qĀ;qᇚ㔏eqĀ;q㔫㔨m;櫇Ābp㕚㕜;櫕;櫓c̀;acensᇭ㕬㕲㕹㕻㌦pproø㋺urlyeñᇾñᇳƀaes㖂㖈㌛pproø㌚qñ㌗g;晪ڀ123;Edehlmnps㖩㖬㖯ሜ㖲㖴㗀㗉㗕㗚㗟㗨㗭耻¹䂹耻²䂲耻³䂳;櫆Āos㖹㖼t;檾ub;櫘Ā;dሢ㗅ot;櫄sĀou㗏㗒l;柉b;櫗arr;楻ult;櫂ĀEe㗤㗦;櫌;抋lus;櫀ƀeiu㗴㘉㘌tƀ;enሜ㗼㘂qĀ;qሢ㖲eqĀ;q㗧㗤m;櫈Ābp㘑㘓;櫔;櫖ƀAan㘜㘠㘭rr;懙rĀhr㘦㘨ë∮Ā;oਫ਩war;椪lig耻ß䃟௡㙑㙝㙠ዎ㙳㙹\0㙾㛂\0\0\0\0\0㛛㜃\0㜉㝬\0\0\0㞇ɲ㙖\0\0㙛get;挖;䏄rë๟ƀaey㙦㙫㙰ron;䅥dil;䅣;䑂lrec;挕r;쀀𝔱Ȁeiko㚆㚝㚵㚼Dz㚋\0㚑eĀ4fኄኁaƀ;sv㚘㚙㚛䎸ym;䏑Ācn㚢㚲kĀas㚨㚮pproø዁im»ኬsðኞĀas㚺㚮ð዁rn耻þ䃾Ǭ̟㛆⋧es膀×;bd㛏㛐㛘䃗Ā;aᤏ㛕r;樱;樰ƀeps㛡㛣㜀á⩍Ȁ;bcf҆㛬㛰㛴ot;挶ir;櫱Ā;o㛹㛼쀀𝕥rk;櫚á㍢rime;怴ƀaip㜏㜒㝤dåቈ΀adempst㜡㝍㝀㝑㝗㝜㝟ngleʀ;dlqr㜰㜱㜶㝀㝂斵own»ᶻeftĀ;e⠀㜾ñम;扜ightĀ;e㊪㝋ñၚot;旬inus;樺lus;樹b;槍ime;樻ezium;揢ƀcht㝲㝽㞁Āry㝷㝻;쀀𝓉;䑆cy;䑛rok;䅧Āio㞋㞎xô᝷headĀlr㞗㞠eftarro÷ࡏightarrow»ཝऀAHabcdfghlmoprstuw㟐㟓㟗㟤㟰㟼㠎㠜㠣㠴㡑㡝㡫㢩㣌㣒㣪㣶ròϭar;楣Ācr㟜㟢ute耻ú䃺òᅐrǣ㟪\0㟭y;䑞ve;䅭Āiy㟵㟺rc耻û䃻;䑃ƀabh㠃㠆㠋ròᎭlac;䅱aòᏃĀir㠓㠘sht;楾;쀀𝔲rave耻ù䃹š㠧㠱rĀlr㠬㠮»ॗ»ႃlk;斀Āct㠹㡍ɯ㠿\0\0㡊rnĀ;e㡅㡆挜r»㡆op;挏ri;旸Āal㡖㡚cr;䅫肻¨͉Āgp㡢㡦on;䅳f;쀀𝕦̀adhlsuᅋ㡸㡽፲㢑㢠ownáᎳarpoonĀlr㢈㢌efô㠭ighô㠯iƀ;hl㢙㢚㢜䏅»ᏺon»㢚parrows;懈ƀcit㢰㣄㣈ɯ㢶\0\0㣁rnĀ;e㢼㢽挝r»㢽op;挎ng;䅯ri;旹cr;쀀𝓊ƀdir㣙㣝㣢ot;拰lde;䅩iĀ;f㜰㣨»᠓Āam㣯㣲rò㢨l耻ü䃼angle;榧ހABDacdeflnoprsz㤜㤟㤩㤭㦵㦸㦽㧟㧤㧨㧳㧹㧽㨁㨠ròϷarĀ;v㤦㤧櫨;櫩asèϡĀnr㤲㤷grt;榜΀eknprst㓣㥆㥋㥒㥝㥤㦖appá␕othinçẖƀhir㓫⻈㥙opô⾵Ā;hᎷ㥢ïㆍĀiu㥩㥭gmá㎳Ābp㥲㦄setneqĀ;q㥽㦀쀀⊊︀;쀀⫋︀setneqĀ;q㦏㦒쀀⊋︀;쀀⫌︀Āhr㦛㦟etá㚜iangleĀlr㦪㦯eft»थight»ၑy;䐲ash»ံƀelr㧄㧒㧗ƀ;beⷪ㧋㧏ar;抻q;扚lip;拮Ābt㧜ᑨaòᑩr;쀀𝔳tré㦮suĀbp㧯㧱»ജ»൙pf;쀀𝕧roð໻tré㦴Ācu㨆㨋r;쀀𝓋Ābp㨐㨘nĀEe㦀㨖»㥾nĀEe㦒㨞»㦐igzag;榚΀cefoprs㨶㨻㩖㩛㩔㩡㩪irc;䅵Ādi㩀㩑Ābg㩅㩉ar;機eĀ;qᗺ㩏;扙erp;愘r;쀀𝔴pf;쀀𝕨Ā;eᑹ㩦atèᑹcr;쀀𝓌ૣណ㪇\0㪋\0㪐㪛\0\0㪝㪨㪫㪯\0\0㫃㫎\0㫘ៜ៟tré៑r;쀀𝔵ĀAa㪔㪗ròσrò৶;䎾ĀAa㪡㪤ròθrò৫að✓is;拻ƀdptឤ㪵㪾Āfl㪺ឩ;쀀𝕩imåឲĀAa㫇㫊ròώròਁĀcq㫒ីr;쀀𝓍Āpt៖㫜ré។Ѐacefiosu㫰㫽㬈㬌㬑㬕㬛㬡cĀuy㫶㫻te耻ý䃽;䑏Āiy㬂㬆rc;䅷;䑋n耻¥䂥r;쀀𝔶cy;䑗pf;쀀𝕪cr;쀀𝓎Ācm㬦㬩y;䑎l耻ÿ䃿Ԁacdefhiosw㭂㭈㭔㭘㭤㭩㭭㭴㭺㮀cute;䅺Āay㭍㭒ron;䅾;䐷ot;䅼Āet㭝㭡træᕟa;䎶r;쀀𝔷cy;䐶grarr;懝pf;쀀𝕫cr;쀀𝓏Ājn㮅㮇;怍j;怌'.split("").map(e=>e.charCodeAt(0)));var q;(function(e){e[e.DATA=0]="DATA",e[e.RCDATA=1]="RCDATA",e[e.RAWTEXT=2]="RAWTEXT",e[e.SCRIPT_DATA=3]="SCRIPT_DATA",e[e.PLAINTEXT=4]="PLAINTEXT",e[e.TAG_OPEN=5]="TAG_OPEN",e[e.END_TAG_OPEN=6]="END_TAG_OPEN",e[e.TAG_NAME=7]="TAG_NAME",e[e.RCDATA_LESS_THAN_SIGN=8]="RCDATA_LESS_THAN_SIGN",e[e.RCDATA_END_TAG_OPEN=9]="RCDATA_END_TAG_OPEN",e[e.RCDATA_END_TAG_NAME=10]="RCDATA_END_TAG_NAME",e[e.RAWTEXT_LESS_THAN_SIGN=11]="RAWTEXT_LESS_THAN_SIGN",e[e.RAWTEXT_END_TAG_OPEN=12]="RAWTEXT_END_TAG_OPEN",e[e.RAWTEXT_END_TAG_NAME=13]="RAWTEXT_END_TAG_NAME",e[e.SCRIPT_DATA_LESS_THAN_SIGN=14]="SCRIPT_DATA_LESS_THAN_SIGN",e[e.SCRIPT_DATA_END_TAG_OPEN=15]="SCRIPT_DATA_END_TAG_OPEN",e[e.SCRIPT_DATA_END_TAG_NAME=16]="SCRIPT_DATA_END_TAG_NAME",e[e.SCRIPT_DATA_ESCAPE_START=17]="SCRIPT_DATA_ESCAPE_START",e[e.SCRIPT_DATA_ESCAPE_START_DASH=18]="SCRIPT_DATA_ESCAPE_START_DASH",e[e.SCRIPT_DATA_ESCAPED=19]="SCRIPT_DATA_ESCAPED",e[e.SCRIPT_DATA_ESCAPED_DASH=20]="SCRIPT_DATA_ESCAPED_DASH",e[e.SCRIPT_DATA_ESCAPED_DASH_DASH=21]="SCRIPT_DATA_ESCAPED_DASH_DASH",e[e.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN=22]="SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN",e[e.SCRIPT_DATA_ESCAPED_END_TAG_OPEN=23]="SCRIPT_DATA_ESCAPED_END_TAG_OPEN",e[e.SCRIPT_DATA_ESCAPED_END_TAG_NAME=24]="SCRIPT_DATA_ESCAPED_END_TAG_NAME",e[e.SCRIPT_DATA_DOUBLE_ESCAPE_START=25]="SCRIPT_DATA_DOUBLE_ESCAPE_START",e[e.SCRIPT_DATA_DOUBLE_ESCAPED=26]="SCRIPT_DATA_DOUBLE_ESCAPED",e[e.SCRIPT_DATA_DOUBLE_ESCAPED_DASH=27]="SCRIPT_DATA_DOUBLE_ESCAPED_DASH",e[e.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH=28]="SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH",e[e.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN=29]="SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN",e[e.SCRIPT_DATA_DOUBLE_ESCAPE_END=30]="SCRIPT_DATA_DOUBLE_ESCAPE_END",e[e.BEFORE_ATTRIBUTE_NAME=31]="BEFORE_ATTRIBUTE_NAME",e[e.ATTRIBUTE_NAME=32]="ATTRIBUTE_NAME",e[e.AFTER_ATTRIBUTE_NAME=33]="AFTER_ATTRIBUTE_NAME",e[e.BEFORE_ATTRIBUTE_VALUE=34]="BEFORE_ATTRIBUTE_VALUE",e[e.ATTRIBUTE_VALUE_DOUBLE_QUOTED=35]="ATTRIBUTE_VALUE_DOUBLE_QUOTED",e[e.ATTRIBUTE_VALUE_SINGLE_QUOTED=36]="ATTRIBUTE_VALUE_SINGLE_QUOTED",e[e.ATTRIBUTE_VALUE_UNQUOTED=37]="ATTRIBUTE_VALUE_UNQUOTED",e[e.AFTER_ATTRIBUTE_VALUE_QUOTED=38]="AFTER_ATTRIBUTE_VALUE_QUOTED",e[e.SELF_CLOSING_START_TAG=39]="SELF_CLOSING_START_TAG",e[e.BOGUS_COMMENT=40]="BOGUS_COMMENT",e[e.MARKUP_DECLARATION_OPEN=41]="MARKUP_DECLARATION_OPEN",e[e.COMMENT_START=42]="COMMENT_START",e[e.COMMENT_START_DASH=43]="COMMENT_START_DASH",e[e.COMMENT=44]="COMMENT",e[e.COMMENT_LESS_THAN_SIGN=45]="COMMENT_LESS_THAN_SIGN",e[e.COMMENT_LESS_THAN_SIGN_BANG=46]="COMMENT_LESS_THAN_SIGN_BANG",e[e.COMMENT_LESS_THAN_SIGN_BANG_DASH=47]="COMMENT_LESS_THAN_SIGN_BANG_DASH",e[e.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH=48]="COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH",e[e.COMMENT_END_DASH=49]="COMMENT_END_DASH",e[e.COMMENT_END=50]="COMMENT_END",e[e.COMMENT_END_BANG=51]="COMMENT_END_BANG",e[e.DOCTYPE=52]="DOCTYPE",e[e.BEFORE_DOCTYPE_NAME=53]="BEFORE_DOCTYPE_NAME",e[e.DOCTYPE_NAME=54]="DOCTYPE_NAME",e[e.AFTER_DOCTYPE_NAME=55]="AFTER_DOCTYPE_NAME",e[e.AFTER_DOCTYPE_PUBLIC_KEYWORD=56]="AFTER_DOCTYPE_PUBLIC_KEYWORD",e[e.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER=57]="BEFORE_DOCTYPE_PUBLIC_IDENTIFIER",e[e.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED=58]="DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED",e[e.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED=59]="DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED",e[e.AFTER_DOCTYPE_PUBLIC_IDENTIFIER=60]="AFTER_DOCTYPE_PUBLIC_IDENTIFIER",e[e.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS=61]="BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS",e[e.AFTER_DOCTYPE_SYSTEM_KEYWORD=62]="AFTER_DOCTYPE_SYSTEM_KEYWORD",e[e.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER=63]="BEFORE_DOCTYPE_SYSTEM_IDENTIFIER",e[e.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED=64]="DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED",e[e.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED=65]="DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED",e[e.AFTER_DOCTYPE_SYSTEM_IDENTIFIER=66]="AFTER_DOCTYPE_SYSTEM_IDENTIFIER",e[e.BOGUS_DOCTYPE=67]="BOGUS_DOCTYPE",e[e.CDATA_SECTION=68]="CDATA_SECTION",e[e.CDATA_SECTION_BRACKET=69]="CDATA_SECTION_BRACKET",e[e.CDATA_SECTION_END=70]="CDATA_SECTION_END",e[e.CHARACTER_REFERENCE=71]="CHARACTER_REFERENCE",e[e.AMBIGUOUS_AMPERSAND=72]="AMBIGUOUS_AMPERSAND"})(q||(q={}));const er={DATA:q.DATA,RCDATA:q.RCDATA,RAWTEXT:q.RAWTEXT,SCRIPT_DATA:q.SCRIPT_DATA,PLAINTEXT:q.PLAINTEXT,CDATA_SECTION:q.CDATA_SECTION};function Dre(e){return e>=H.DIGIT_0&&e<=H.DIGIT_9}function ff(e){return e>=H.LATIN_CAPITAL_A&&e<=H.LATIN_CAPITAL_Z}function kre(e){return e>=H.LATIN_SMALL_A&&e<=H.LATIN_SMALL_Z}function ys(e){return kre(e)||ff(e)}function Xk(e){return ys(e)||Dre(e)}function xm(e){return e+32}function b4(e){return e===H.SPACE||e===H.LINE_FEED||e===H.TABULATION||e===H.FORM_FEED}function Zk(e){return b4(e)||e===H.SOLIDUS||e===H.GREATER_THAN_SIGN}function Rre(e){return e===H.NULL?ve.nullCharacterReference:e>1114111?ve.characterReferenceOutsideUnicodeRange:m4(e)?ve.surrogateCharacterReference:y4(e)?ve.noncharacterCharacterReference:g4(e)||e===H.CARRIAGE_RETURN?ve.controlCharacterReference:null}let Ore=class{constructor(t,n){this.options=t,this.handler=n,this.paused=!1,this.inLoop=!1,this.inForeignNode=!1,this.lastStartTagName="",this.active=!1,this.state=q.DATA,this.returnState=q.DATA,this.entityStartPos=0,this.consumedAfterSnapshot=-1,this.currentCharacterToken=null,this.currentToken=null,this.currentAttr={name:"",value:""},this.preprocessor=new gre(n),this.currentLocation=this.getCurrentLocation(-1),this.entityDecoder=new _re(wre,(r,a)=>{this.preprocessor.pos=this.entityStartPos+a-1,this._flushCodePointConsumedAsCharacterReference(r)},n.onParseError?{missingSemicolonAfterCharacterReference:()=>{this._err(ve.missingSemicolonAfterCharacterReference,1)},absenceOfDigitsInNumericCharacterReference:r=>{this._err(ve.absenceOfDigitsInNumericCharacterReference,this.entityStartPos-this.preprocessor.pos+r)},validateNumericCharacterReference:r=>{const a=Rre(r);a&&this._err(a,1)}}:void 0)}_err(t,n=0){var r,a;(a=(r=this.handler).onParseError)===null||a===void 0||a.call(r,this.preprocessor.getError(t,n))}getCurrentLocation(t){return this.options.sourceCodeLocationInfo?{startLine:this.preprocessor.line,startCol:this.preprocessor.col-t,startOffset:this.preprocessor.offset-t,endLine:-1,endCol:-1,endOffset:-1}:null}_runParsingLoop(){if(!this.inLoop){for(this.inLoop=!0;this.active&&!this.paused;){this.consumedAfterSnapshot=0;const t=this._consume();this._ensureHibernation()||this._callState(t)}this.inLoop=!1}}pause(){this.paused=!0}resume(t){if(!this.paused)throw new Error("Parser was already resumed");this.paused=!1,!this.inLoop&&(this._runParsingLoop(),this.paused||t?.())}write(t,n,r){this.active=!0,this.preprocessor.write(t,n),this._runParsingLoop(),this.paused||r?.()}insertHtmlAtCurrentPos(t){this.active=!0,this.preprocessor.insertHtmlAtCurrentPos(t),this._runParsingLoop()}_ensureHibernation(){return this.preprocessor.endOfChunkHit?(this.preprocessor.retreat(this.consumedAfterSnapshot),this.consumedAfterSnapshot=0,this.active=!1,!0):!1}_consume(){return this.consumedAfterSnapshot++,this.preprocessor.advance()}_advanceBy(t){this.consumedAfterSnapshot+=t;for(let n=0;n<t;n++)this.preprocessor.advance()}_consumeSequenceIfMatch(t,n){return this.preprocessor.startsWith(t,n)?(this._advanceBy(t.length-1),!0):!1}_createStartTagToken(){this.currentToken={type:$t.START_TAG,tagName:"",tagID:C.UNKNOWN,selfClosing:!1,ackSelfClosing:!1,attrs:[],location:this.getCurrentLocation(1)}}_createEndTagToken(){this.currentToken={type:$t.END_TAG,tagName:"",tagID:C.UNKNOWN,selfClosing:!1,ackSelfClosing:!1,attrs:[],location:this.getCurrentLocation(2)}}_createCommentToken(t){this.currentToken={type:$t.COMMENT,data:"",location:this.getCurrentLocation(t)}}_createDoctypeToken(t){this.currentToken={type:$t.DOCTYPE,name:t,forceQuirks:!1,publicId:null,systemId:null,location:this.currentLocation}}_createCharacterToken(t,n){this.currentCharacterToken={type:t,chars:n,location:this.currentLocation}}_createAttr(t){this.currentAttr={name:t,value:""},this.currentLocation=this.getCurrentLocation(0)}_leaveAttrName(){var t,n;const r=this.currentToken;if(v4(r,this.currentAttr.name)===null){if(r.attrs.push(this.currentAttr),r.location&&this.currentLocation){const a=(t=(n=r.location).attrs)!==null&&t!==void 0?t:n.attrs=Object.create(null);a[this.currentAttr.name]=this.currentLocation,this._leaveAttrValue()}}else this._err(ve.duplicateAttribute)}_leaveAttrValue(){this.currentLocation&&(this.currentLocation.endLine=this.preprocessor.line,this.currentLocation.endCol=this.preprocessor.col,this.currentLocation.endOffset=this.preprocessor.offset)}prepareToken(t){this._emitCurrentCharacterToken(t.location),this.currentToken=null,t.location&&(t.location.endLine=this.preprocessor.line,t.location.endCol=this.preprocessor.col+1,t.location.endOffset=this.preprocessor.offset+1),this.currentLocation=this.getCurrentLocation(-1)}emitCurrentTagToken(){const t=this.currentToken;this.prepareToken(t),t.tagID=wu(t.tagName),t.type===$t.START_TAG?(this.lastStartTagName=t.tagName,this.handler.onStartTag(t)):(t.attrs.length>0&&this._err(ve.endTagWithAttributes),t.selfClosing&&this._err(ve.endTagWithTrailingSolidus),this.handler.onEndTag(t)),this.preprocessor.dropParsedChunk()}emitCurrentComment(t){this.prepareToken(t),this.handler.onComment(t),this.preprocessor.dropParsedChunk()}emitCurrentDoctype(t){this.prepareToken(t),this.handler.onDoctype(t),this.preprocessor.dropParsedChunk()}_emitCurrentCharacterToken(t){if(this.currentCharacterToken){switch(t&&this.currentCharacterToken.location&&(this.currentCharacterToken.location.endLine=t.startLine,this.currentCharacterToken.location.endCol=t.startCol,this.currentCharacterToken.location.endOffset=t.startOffset),this.currentCharacterToken.type){case $t.CHARACTER:{this.handler.onCharacter(this.currentCharacterToken);break}case $t.NULL_CHARACTER:{this.handler.onNullCharacter(this.currentCharacterToken);break}case $t.WHITESPACE_CHARACTER:{this.handler.onWhitespaceCharacter(this.currentCharacterToken);break}}this.currentCharacterToken=null}}_emitEOFToken(){const t=this.getCurrentLocation(0);t&&(t.endLine=t.startLine,t.endCol=t.startCol,t.endOffset=t.startOffset),this._emitCurrentCharacterToken(t),this.handler.onEof({type:$t.EOF,location:t}),this.active=!1}_appendCharToCurrentCharacterToken(t,n){if(this.currentCharacterToken)if(this.currentCharacterToken.type===t){this.currentCharacterToken.chars+=n;return}else this.currentLocation=this.getCurrentLocation(0),this._emitCurrentCharacterToken(this.currentLocation),this.preprocessor.dropParsedChunk();this._createCharacterToken(t,n)}_emitCodePoint(t){const n=b4(t)?$t.WHITESPACE_CHARACTER:t===H.NULL?$t.NULL_CHARACTER:$t.CHARACTER;this._appendCharToCurrentCharacterToken(n,String.fromCodePoint(t))}_emitChars(t){this._appendCharToCurrentCharacterToken($t.CHARACTER,t)}_startCharacterReference(){this.returnState=this.state,this.state=q.CHARACTER_REFERENCE,this.entityStartPos=this.preprocessor.pos,this.entityDecoder.startEntity(this._isCharacterReferenceInAttribute()?ki.Attribute:ki.Legacy)}_isCharacterReferenceInAttribute(){return this.returnState===q.ATTRIBUTE_VALUE_DOUBLE_QUOTED||this.returnState===q.ATTRIBUTE_VALUE_SINGLE_QUOTED||this.returnState===q.ATTRIBUTE_VALUE_UNQUOTED}_flushCodePointConsumedAsCharacterReference(t){this._isCharacterReferenceInAttribute()?this.currentAttr.value+=String.fromCodePoint(t):this._emitCodePoint(t)}_callState(t){switch(this.state){case q.DATA:{this._stateData(t);break}case q.RCDATA:{this._stateRcdata(t);break}case q.RAWTEXT:{this._stateRawtext(t);break}case q.SCRIPT_DATA:{this._stateScriptData(t);break}case q.PLAINTEXT:{this._statePlaintext(t);break}case q.TAG_OPEN:{this._stateTagOpen(t);break}case q.END_TAG_OPEN:{this._stateEndTagOpen(t);break}case q.TAG_NAME:{this._stateTagName(t);break}case q.RCDATA_LESS_THAN_SIGN:{this._stateRcdataLessThanSign(t);break}case q.RCDATA_END_TAG_OPEN:{this._stateRcdataEndTagOpen(t);break}case q.RCDATA_END_TAG_NAME:{this._stateRcdataEndTagName(t);break}case q.RAWTEXT_LESS_THAN_SIGN:{this._stateRawtextLessThanSign(t);break}case q.RAWTEXT_END_TAG_OPEN:{this._stateRawtextEndTagOpen(t);break}case q.RAWTEXT_END_TAG_NAME:{this._stateRawtextEndTagName(t);break}case q.SCRIPT_DATA_LESS_THAN_SIGN:{this._stateScriptDataLessThanSign(t);break}case q.SCRIPT_DATA_END_TAG_OPEN:{this._stateScriptDataEndTagOpen(t);break}case q.SCRIPT_DATA_END_TAG_NAME:{this._stateScriptDataEndTagName(t);break}case q.SCRIPT_DATA_ESCAPE_START:{this._stateScriptDataEscapeStart(t);break}case q.SCRIPT_DATA_ESCAPE_START_DASH:{this._stateScriptDataEscapeStartDash(t);break}case q.SCRIPT_DATA_ESCAPED:{this._stateScriptDataEscaped(t);break}case q.SCRIPT_DATA_ESCAPED_DASH:{this._stateScriptDataEscapedDash(t);break}case q.SCRIPT_DATA_ESCAPED_DASH_DASH:{this._stateScriptDataEscapedDashDash(t);break}case q.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN:{this._stateScriptDataEscapedLessThanSign(t);break}case q.SCRIPT_DATA_ESCAPED_END_TAG_OPEN:{this._stateScriptDataEscapedEndTagOpen(t);break}case q.SCRIPT_DATA_ESCAPED_END_TAG_NAME:{this._stateScriptDataEscapedEndTagName(t);break}case q.SCRIPT_DATA_DOUBLE_ESCAPE_START:{this._stateScriptDataDoubleEscapeStart(t);break}case q.SCRIPT_DATA_DOUBLE_ESCAPED:{this._stateScriptDataDoubleEscaped(t);break}case q.SCRIPT_DATA_DOUBLE_ESCAPED_DASH:{this._stateScriptDataDoubleEscapedDash(t);break}case q.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH:{this._stateScriptDataDoubleEscapedDashDash(t);break}case q.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN:{this._stateScriptDataDoubleEscapedLessThanSign(t);break}case q.SCRIPT_DATA_DOUBLE_ESCAPE_END:{this._stateScriptDataDoubleEscapeEnd(t);break}case q.BEFORE_ATTRIBUTE_NAME:{this._stateBeforeAttributeName(t);break}case q.ATTRIBUTE_NAME:{this._stateAttributeName(t);break}case q.AFTER_ATTRIBUTE_NAME:{this._stateAfterAttributeName(t);break}case q.BEFORE_ATTRIBUTE_VALUE:{this._stateBeforeAttributeValue(t);break}case q.ATTRIBUTE_VALUE_DOUBLE_QUOTED:{this._stateAttributeValueDoubleQuoted(t);break}case q.ATTRIBUTE_VALUE_SINGLE_QUOTED:{this._stateAttributeValueSingleQuoted(t);break}case q.ATTRIBUTE_VALUE_UNQUOTED:{this._stateAttributeValueUnquoted(t);break}case q.AFTER_ATTRIBUTE_VALUE_QUOTED:{this._stateAfterAttributeValueQuoted(t);break}case q.SELF_CLOSING_START_TAG:{this._stateSelfClosingStartTag(t);break}case q.BOGUS_COMMENT:{this._stateBogusComment(t);break}case q.MARKUP_DECLARATION_OPEN:{this._stateMarkupDeclarationOpen(t);break}case q.COMMENT_START:{this._stateCommentStart(t);break}case q.COMMENT_START_DASH:{this._stateCommentStartDash(t);break}case q.COMMENT:{this._stateComment(t);break}case q.COMMENT_LESS_THAN_SIGN:{this._stateCommentLessThanSign(t);break}case q.COMMENT_LESS_THAN_SIGN_BANG:{this._stateCommentLessThanSignBang(t);break}case q.COMMENT_LESS_THAN_SIGN_BANG_DASH:{this._stateCommentLessThanSignBangDash(t);break}case q.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH:{this._stateCommentLessThanSignBangDashDash(t);break}case q.COMMENT_END_DASH:{this._stateCommentEndDash(t);break}case q.COMMENT_END:{this._stateCommentEnd(t);break}case q.COMMENT_END_BANG:{this._stateCommentEndBang(t);break}case q.DOCTYPE:{this._stateDoctype(t);break}case q.BEFORE_DOCTYPE_NAME:{this._stateBeforeDoctypeName(t);break}case q.DOCTYPE_NAME:{this._stateDoctypeName(t);break}case q.AFTER_DOCTYPE_NAME:{this._stateAfterDoctypeName(t);break}case q.AFTER_DOCTYPE_PUBLIC_KEYWORD:{this._stateAfterDoctypePublicKeyword(t);break}case q.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER:{this._stateBeforeDoctypePublicIdentifier(t);break}case q.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED:{this._stateDoctypePublicIdentifierDoubleQuoted(t);break}case q.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED:{this._stateDoctypePublicIdentifierSingleQuoted(t);break}case q.AFTER_DOCTYPE_PUBLIC_IDENTIFIER:{this._stateAfterDoctypePublicIdentifier(t);break}case q.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS:{this._stateBetweenDoctypePublicAndSystemIdentifiers(t);break}case q.AFTER_DOCTYPE_SYSTEM_KEYWORD:{this._stateAfterDoctypeSystemKeyword(t);break}case q.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER:{this._stateBeforeDoctypeSystemIdentifier(t);break}case q.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED:{this._stateDoctypeSystemIdentifierDoubleQuoted(t);break}case q.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED:{this._stateDoctypeSystemIdentifierSingleQuoted(t);break}case q.AFTER_DOCTYPE_SYSTEM_IDENTIFIER:{this._stateAfterDoctypeSystemIdentifier(t);break}case q.BOGUS_DOCTYPE:{this._stateBogusDoctype(t);break}case q.CDATA_SECTION:{this._stateCdataSection(t);break}case q.CDATA_SECTION_BRACKET:{this._stateCdataSectionBracket(t);break}case q.CDATA_SECTION_END:{this._stateCdataSectionEnd(t);break}case q.CHARACTER_REFERENCE:{this._stateCharacterReference();break}case q.AMBIGUOUS_AMPERSAND:{this._stateAmbiguousAmpersand(t);break}default:throw new Error("Unknown state")}}_stateData(t){switch(t){case H.LESS_THAN_SIGN:{this.state=q.TAG_OPEN;break}case H.AMPERSAND:{this._startCharacterReference();break}case H.NULL:{this._err(ve.unexpectedNullCharacter),this._emitCodePoint(t);break}case H.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateRcdata(t){switch(t){case H.AMPERSAND:{this._startCharacterReference();break}case H.LESS_THAN_SIGN:{this.state=q.RCDATA_LESS_THAN_SIGN;break}case H.NULL:{this._err(ve.unexpectedNullCharacter),this._emitChars($n);break}case H.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateRawtext(t){switch(t){case H.LESS_THAN_SIGN:{this.state=q.RAWTEXT_LESS_THAN_SIGN;break}case H.NULL:{this._err(ve.unexpectedNullCharacter),this._emitChars($n);break}case H.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateScriptData(t){switch(t){case H.LESS_THAN_SIGN:{this.state=q.SCRIPT_DATA_LESS_THAN_SIGN;break}case H.NULL:{this._err(ve.unexpectedNullCharacter),this._emitChars($n);break}case H.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_statePlaintext(t){switch(t){case H.NULL:{this._err(ve.unexpectedNullCharacter),this._emitChars($n);break}case H.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateTagOpen(t){if(ys(t))this._createStartTagToken(),this.state=q.TAG_NAME,this._stateTagName(t);else switch(t){case H.EXCLAMATION_MARK:{this.state=q.MARKUP_DECLARATION_OPEN;break}case H.SOLIDUS:{this.state=q.END_TAG_OPEN;break}case H.QUESTION_MARK:{this._err(ve.unexpectedQuestionMarkInsteadOfTagName),this._createCommentToken(1),this.state=q.BOGUS_COMMENT,this._stateBogusComment(t);break}case H.EOF:{this._err(ve.eofBeforeTagName),this._emitChars("<"),this._emitEOFToken();break}default:this._err(ve.invalidFirstCharacterOfTagName),this._emitChars("<"),this.state=q.DATA,this._stateData(t)}}_stateEndTagOpen(t){if(ys(t))this._createEndTagToken(),this.state=q.TAG_NAME,this._stateTagName(t);else switch(t){case H.GREATER_THAN_SIGN:{this._err(ve.missingEndTagName),this.state=q.DATA;break}case H.EOF:{this._err(ve.eofBeforeTagName),this._emitChars("</"),this._emitEOFToken();break}default:this._err(ve.invalidFirstCharacterOfTagName),this._createCommentToken(2),this.state=q.BOGUS_COMMENT,this._stateBogusComment(t)}}_stateTagName(t){const n=this.currentToken;switch(t){case H.SPACE:case H.LINE_FEED:case H.TABULATION:case H.FORM_FEED:{this.state=q.BEFORE_ATTRIBUTE_NAME;break}case H.SOLIDUS:{this.state=q.SELF_CLOSING_START_TAG;break}case H.GREATER_THAN_SIGN:{this.state=q.DATA,this.emitCurrentTagToken();break}case H.NULL:{this._err(ve.unexpectedNullCharacter),n.tagName+=$n;break}case H.EOF:{this._err(ve.eofInTag),this._emitEOFToken();break}default:n.tagName+=String.fromCodePoint(ff(t)?xm(t):t)}}_stateRcdataLessThanSign(t){t===H.SOLIDUS?this.state=q.RCDATA_END_TAG_OPEN:(this._emitChars("<"),this.state=q.RCDATA,this._stateRcdata(t))}_stateRcdataEndTagOpen(t){ys(t)?(this.state=q.RCDATA_END_TAG_NAME,this._stateRcdataEndTagName(t)):(this._emitChars("</"),this.state=q.RCDATA,this._stateRcdata(t))}handleSpecialEndTag(t){if(!this.preprocessor.startsWith(this.lastStartTagName,!1))return!this._ensureHibernation();this._createEndTagToken();const n=this.currentToken;switch(n.tagName=this.lastStartTagName,this.preprocessor.peek(this.lastStartTagName.length)){case H.SPACE:case H.LINE_FEED:case H.TABULATION:case H.FORM_FEED:return this._advanceBy(this.lastStartTagName.length),this.state=q.BEFORE_ATTRIBUTE_NAME,!1;case H.SOLIDUS:return this._advanceBy(this.lastStartTagName.length),this.state=q.SELF_CLOSING_START_TAG,!1;case H.GREATER_THAN_SIGN:return this._advanceBy(this.lastStartTagName.length),this.emitCurrentTagToken(),this.state=q.DATA,!1;default:return!this._ensureHibernation()}}_stateRcdataEndTagName(t){this.handleSpecialEndTag(t)&&(this._emitChars("</"),this.state=q.RCDATA,this._stateRcdata(t))}_stateRawtextLessThanSign(t){t===H.SOLIDUS?this.state=q.RAWTEXT_END_TAG_OPEN:(this._emitChars("<"),this.state=q.RAWTEXT,this._stateRawtext(t))}_stateRawtextEndTagOpen(t){ys(t)?(this.state=q.RAWTEXT_END_TAG_NAME,this._stateRawtextEndTagName(t)):(this._emitChars("</"),this.state=q.RAWTEXT,this._stateRawtext(t))}_stateRawtextEndTagName(t){this.handleSpecialEndTag(t)&&(this._emitChars("</"),this.state=q.RAWTEXT,this._stateRawtext(t))}_stateScriptDataLessThanSign(t){switch(t){case H.SOLIDUS:{this.state=q.SCRIPT_DATA_END_TAG_OPEN;break}case H.EXCLAMATION_MARK:{this.state=q.SCRIPT_DATA_ESCAPE_START,this._emitChars("<!");break}default:this._emitChars("<"),this.state=q.SCRIPT_DATA,this._stateScriptData(t)}}_stateScriptDataEndTagOpen(t){ys(t)?(this.state=q.SCRIPT_DATA_END_TAG_NAME,this._stateScriptDataEndTagName(t)):(this._emitChars("</"),this.state=q.SCRIPT_DATA,this._stateScriptData(t))}_stateScriptDataEndTagName(t){this.handleSpecialEndTag(t)&&(this._emitChars("</"),this.state=q.SCRIPT_DATA,this._stateScriptData(t))}_stateScriptDataEscapeStart(t){t===H.HYPHEN_MINUS?(this.state=q.SCRIPT_DATA_ESCAPE_START_DASH,this._emitChars("-")):(this.state=q.SCRIPT_DATA,this._stateScriptData(t))}_stateScriptDataEscapeStartDash(t){t===H.HYPHEN_MINUS?(this.state=q.SCRIPT_DATA_ESCAPED_DASH_DASH,this._emitChars("-")):(this.state=q.SCRIPT_DATA,this._stateScriptData(t))}_stateScriptDataEscaped(t){switch(t){case H.HYPHEN_MINUS:{this.state=q.SCRIPT_DATA_ESCAPED_DASH,this._emitChars("-");break}case H.LESS_THAN_SIGN:{this.state=q.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN;break}case H.NULL:{this._err(ve.unexpectedNullCharacter),this._emitChars($n);break}case H.EOF:{this._err(ve.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateScriptDataEscapedDash(t){switch(t){case H.HYPHEN_MINUS:{this.state=q.SCRIPT_DATA_ESCAPED_DASH_DASH,this._emitChars("-");break}case H.LESS_THAN_SIGN:{this.state=q.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN;break}case H.NULL:{this._err(ve.unexpectedNullCharacter),this.state=q.SCRIPT_DATA_ESCAPED,this._emitChars($n);break}case H.EOF:{this._err(ve.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this.state=q.SCRIPT_DATA_ESCAPED,this._emitCodePoint(t)}}_stateScriptDataEscapedDashDash(t){switch(t){case H.HYPHEN_MINUS:{this._emitChars("-");break}case H.LESS_THAN_SIGN:{this.state=q.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN;break}case H.GREATER_THAN_SIGN:{this.state=q.SCRIPT_DATA,this._emitChars(">");break}case H.NULL:{this._err(ve.unexpectedNullCharacter),this.state=q.SCRIPT_DATA_ESCAPED,this._emitChars($n);break}case H.EOF:{this._err(ve.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this.state=q.SCRIPT_DATA_ESCAPED,this._emitCodePoint(t)}}_stateScriptDataEscapedLessThanSign(t){t===H.SOLIDUS?this.state=q.SCRIPT_DATA_ESCAPED_END_TAG_OPEN:ys(t)?(this._emitChars("<"),this.state=q.SCRIPT_DATA_DOUBLE_ESCAPE_START,this._stateScriptDataDoubleEscapeStart(t)):(this._emitChars("<"),this.state=q.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(t))}_stateScriptDataEscapedEndTagOpen(t){ys(t)?(this.state=q.SCRIPT_DATA_ESCAPED_END_TAG_NAME,this._stateScriptDataEscapedEndTagName(t)):(this._emitChars("</"),this.state=q.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(t))}_stateScriptDataEscapedEndTagName(t){this.handleSpecialEndTag(t)&&(this._emitChars("</"),this.state=q.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(t))}_stateScriptDataDoubleEscapeStart(t){if(this.preprocessor.startsWith(oa.SCRIPT,!1)&&Zk(this.preprocessor.peek(oa.SCRIPT.length))){this._emitCodePoint(t);for(let n=0;n<oa.SCRIPT.length;n++)this._emitCodePoint(this._consume());this.state=q.SCRIPT_DATA_DOUBLE_ESCAPED}else this._ensureHibernation()||(this.state=q.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(t))}_stateScriptDataDoubleEscaped(t){switch(t){case H.HYPHEN_MINUS:{this.state=q.SCRIPT_DATA_DOUBLE_ESCAPED_DASH,this._emitChars("-");break}case H.LESS_THAN_SIGN:{this.state=q.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN,this._emitChars("<");break}case H.NULL:{this._err(ve.unexpectedNullCharacter),this._emitChars($n);break}case H.EOF:{this._err(ve.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateScriptDataDoubleEscapedDash(t){switch(t){case H.HYPHEN_MINUS:{this.state=q.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH,this._emitChars("-");break}case H.LESS_THAN_SIGN:{this.state=q.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN,this._emitChars("<");break}case H.NULL:{this._err(ve.unexpectedNullCharacter),this.state=q.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitChars($n);break}case H.EOF:{this._err(ve.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this.state=q.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitCodePoint(t)}}_stateScriptDataDoubleEscapedDashDash(t){switch(t){case H.HYPHEN_MINUS:{this._emitChars("-");break}case H.LESS_THAN_SIGN:{this.state=q.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN,this._emitChars("<");break}case H.GREATER_THAN_SIGN:{this.state=q.SCRIPT_DATA,this._emitChars(">");break}case H.NULL:{this._err(ve.unexpectedNullCharacter),this.state=q.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitChars($n);break}case H.EOF:{this._err(ve.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this.state=q.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitCodePoint(t)}}_stateScriptDataDoubleEscapedLessThanSign(t){t===H.SOLIDUS?(this.state=q.SCRIPT_DATA_DOUBLE_ESCAPE_END,this._emitChars("/")):(this.state=q.SCRIPT_DATA_DOUBLE_ESCAPED,this._stateScriptDataDoubleEscaped(t))}_stateScriptDataDoubleEscapeEnd(t){if(this.preprocessor.startsWith(oa.SCRIPT,!1)&&Zk(this.preprocessor.peek(oa.SCRIPT.length))){this._emitCodePoint(t);for(let n=0;n<oa.SCRIPT.length;n++)this._emitCodePoint(this._consume());this.state=q.SCRIPT_DATA_ESCAPED}else this._ensureHibernation()||(this.state=q.SCRIPT_DATA_DOUBLE_ESCAPED,this._stateScriptDataDoubleEscaped(t))}_stateBeforeAttributeName(t){switch(t){case H.SPACE:case H.LINE_FEED:case H.TABULATION:case H.FORM_FEED:break;case H.SOLIDUS:case H.GREATER_THAN_SIGN:case H.EOF:{this.state=q.AFTER_ATTRIBUTE_NAME,this._stateAfterAttributeName(t);break}case H.EQUALS_SIGN:{this._err(ve.unexpectedEqualsSignBeforeAttributeName),this._createAttr("="),this.state=q.ATTRIBUTE_NAME;break}default:this._createAttr(""),this.state=q.ATTRIBUTE_NAME,this._stateAttributeName(t)}}_stateAttributeName(t){switch(t){case H.SPACE:case H.LINE_FEED:case H.TABULATION:case H.FORM_FEED:case H.SOLIDUS:case H.GREATER_THAN_SIGN:case H.EOF:{this._leaveAttrName(),this.state=q.AFTER_ATTRIBUTE_NAME,this._stateAfterAttributeName(t);break}case H.EQUALS_SIGN:{this._leaveAttrName(),this.state=q.BEFORE_ATTRIBUTE_VALUE;break}case H.QUOTATION_MARK:case H.APOSTROPHE:case H.LESS_THAN_SIGN:{this._err(ve.unexpectedCharacterInAttributeName),this.currentAttr.name+=String.fromCodePoint(t);break}case H.NULL:{this._err(ve.unexpectedNullCharacter),this.currentAttr.name+=$n;break}default:this.currentAttr.name+=String.fromCodePoint(ff(t)?xm(t):t)}}_stateAfterAttributeName(t){switch(t){case H.SPACE:case H.LINE_FEED:case H.TABULATION:case H.FORM_FEED:break;case H.SOLIDUS:{this.state=q.SELF_CLOSING_START_TAG;break}case H.EQUALS_SIGN:{this.state=q.BEFORE_ATTRIBUTE_VALUE;break}case H.GREATER_THAN_SIGN:{this.state=q.DATA,this.emitCurrentTagToken();break}case H.EOF:{this._err(ve.eofInTag),this._emitEOFToken();break}default:this._createAttr(""),this.state=q.ATTRIBUTE_NAME,this._stateAttributeName(t)}}_stateBeforeAttributeValue(t){switch(t){case H.SPACE:case H.LINE_FEED:case H.TABULATION:case H.FORM_FEED:break;case H.QUOTATION_MARK:{this.state=q.ATTRIBUTE_VALUE_DOUBLE_QUOTED;break}case H.APOSTROPHE:{this.state=q.ATTRIBUTE_VALUE_SINGLE_QUOTED;break}case H.GREATER_THAN_SIGN:{this._err(ve.missingAttributeValue),this.state=q.DATA,this.emitCurrentTagToken();break}default:this.state=q.ATTRIBUTE_VALUE_UNQUOTED,this._stateAttributeValueUnquoted(t)}}_stateAttributeValueDoubleQuoted(t){switch(t){case H.QUOTATION_MARK:{this.state=q.AFTER_ATTRIBUTE_VALUE_QUOTED;break}case H.AMPERSAND:{this._startCharacterReference();break}case H.NULL:{this._err(ve.unexpectedNullCharacter),this.currentAttr.value+=$n;break}case H.EOF:{this._err(ve.eofInTag),this._emitEOFToken();break}default:this.currentAttr.value+=String.fromCodePoint(t)}}_stateAttributeValueSingleQuoted(t){switch(t){case H.APOSTROPHE:{this.state=q.AFTER_ATTRIBUTE_VALUE_QUOTED;break}case H.AMPERSAND:{this._startCharacterReference();break}case H.NULL:{this._err(ve.unexpectedNullCharacter),this.currentAttr.value+=$n;break}case H.EOF:{this._err(ve.eofInTag),this._emitEOFToken();break}default:this.currentAttr.value+=String.fromCodePoint(t)}}_stateAttributeValueUnquoted(t){switch(t){case H.SPACE:case H.LINE_FEED:case H.TABULATION:case H.FORM_FEED:{this._leaveAttrValue(),this.state=q.BEFORE_ATTRIBUTE_NAME;break}case H.AMPERSAND:{this._startCharacterReference();break}case H.GREATER_THAN_SIGN:{this._leaveAttrValue(),this.state=q.DATA,this.emitCurrentTagToken();break}case H.NULL:{this._err(ve.unexpectedNullCharacter),this.currentAttr.value+=$n;break}case H.QUOTATION_MARK:case H.APOSTROPHE:case H.LESS_THAN_SIGN:case H.EQUALS_SIGN:case H.GRAVE_ACCENT:{this._err(ve.unexpectedCharacterInUnquotedAttributeValue),this.currentAttr.value+=String.fromCodePoint(t);break}case H.EOF:{this._err(ve.eofInTag),this._emitEOFToken();break}default:this.currentAttr.value+=String.fromCodePoint(t)}}_stateAfterAttributeValueQuoted(t){switch(t){case H.SPACE:case H.LINE_FEED:case H.TABULATION:case H.FORM_FEED:{this._leaveAttrValue(),this.state=q.BEFORE_ATTRIBUTE_NAME;break}case H.SOLIDUS:{this._leaveAttrValue(),this.state=q.SELF_CLOSING_START_TAG;break}case H.GREATER_THAN_SIGN:{this._leaveAttrValue(),this.state=q.DATA,this.emitCurrentTagToken();break}case H.EOF:{this._err(ve.eofInTag),this._emitEOFToken();break}default:this._err(ve.missingWhitespaceBetweenAttributes),this.state=q.BEFORE_ATTRIBUTE_NAME,this._stateBeforeAttributeName(t)}}_stateSelfClosingStartTag(t){switch(t){case H.GREATER_THAN_SIGN:{const n=this.currentToken;n.selfClosing=!0,this.state=q.DATA,this.emitCurrentTagToken();break}case H.EOF:{this._err(ve.eofInTag),this._emitEOFToken();break}default:this._err(ve.unexpectedSolidusInTag),this.state=q.BEFORE_ATTRIBUTE_NAME,this._stateBeforeAttributeName(t)}}_stateBogusComment(t){const n=this.currentToken;switch(t){case H.GREATER_THAN_SIGN:{this.state=q.DATA,this.emitCurrentComment(n);break}case H.EOF:{this.emitCurrentComment(n),this._emitEOFToken();break}case H.NULL:{this._err(ve.unexpectedNullCharacter),n.data+=$n;break}default:n.data+=String.fromCodePoint(t)}}_stateMarkupDeclarationOpen(t){this._consumeSequenceIfMatch(oa.DASH_DASH,!0)?(this._createCommentToken(oa.DASH_DASH.length+1),this.state=q.COMMENT_START):this._consumeSequenceIfMatch(oa.DOCTYPE,!1)?(this.currentLocation=this.getCurrentLocation(oa.DOCTYPE.length+1),this.state=q.DOCTYPE):this._consumeSequenceIfMatch(oa.CDATA_START,!0)?this.inForeignNode?this.state=q.CDATA_SECTION:(this._err(ve.cdataInHtmlContent),this._createCommentToken(oa.CDATA_START.length+1),this.currentToken.data="[CDATA[",this.state=q.BOGUS_COMMENT):this._ensureHibernation()||(this._err(ve.incorrectlyOpenedComment),this._createCommentToken(2),this.state=q.BOGUS_COMMENT,this._stateBogusComment(t))}_stateCommentStart(t){switch(t){case H.HYPHEN_MINUS:{this.state=q.COMMENT_START_DASH;break}case H.GREATER_THAN_SIGN:{this._err(ve.abruptClosingOfEmptyComment),this.state=q.DATA;const n=this.currentToken;this.emitCurrentComment(n);break}default:this.state=q.COMMENT,this._stateComment(t)}}_stateCommentStartDash(t){const n=this.currentToken;switch(t){case H.HYPHEN_MINUS:{this.state=q.COMMENT_END;break}case H.GREATER_THAN_SIGN:{this._err(ve.abruptClosingOfEmptyComment),this.state=q.DATA,this.emitCurrentComment(n);break}case H.EOF:{this._err(ve.eofInComment),this.emitCurrentComment(n),this._emitEOFToken();break}default:n.data+="-",this.state=q.COMMENT,this._stateComment(t)}}_stateComment(t){const n=this.currentToken;switch(t){case H.HYPHEN_MINUS:{this.state=q.COMMENT_END_DASH;break}case H.LESS_THAN_SIGN:{n.data+="<",this.state=q.COMMENT_LESS_THAN_SIGN;break}case H.NULL:{this._err(ve.unexpectedNullCharacter),n.data+=$n;break}case H.EOF:{this._err(ve.eofInComment),this.emitCurrentComment(n),this._emitEOFToken();break}default:n.data+=String.fromCodePoint(t)}}_stateCommentLessThanSign(t){const n=this.currentToken;switch(t){case H.EXCLAMATION_MARK:{n.data+="!",this.state=q.COMMENT_LESS_THAN_SIGN_BANG;break}case H.LESS_THAN_SIGN:{n.data+="<";break}default:this.state=q.COMMENT,this._stateComment(t)}}_stateCommentLessThanSignBang(t){t===H.HYPHEN_MINUS?this.state=q.COMMENT_LESS_THAN_SIGN_BANG_DASH:(this.state=q.COMMENT,this._stateComment(t))}_stateCommentLessThanSignBangDash(t){t===H.HYPHEN_MINUS?this.state=q.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH:(this.state=q.COMMENT_END_DASH,this._stateCommentEndDash(t))}_stateCommentLessThanSignBangDashDash(t){t!==H.GREATER_THAN_SIGN&&t!==H.EOF&&this._err(ve.nestedComment),this.state=q.COMMENT_END,this._stateCommentEnd(t)}_stateCommentEndDash(t){const n=this.currentToken;switch(t){case H.HYPHEN_MINUS:{this.state=q.COMMENT_END;break}case H.EOF:{this._err(ve.eofInComment),this.emitCurrentComment(n),this._emitEOFToken();break}default:n.data+="-",this.state=q.COMMENT,this._stateComment(t)}}_stateCommentEnd(t){const n=this.currentToken;switch(t){case H.GREATER_THAN_SIGN:{this.state=q.DATA,this.emitCurrentComment(n);break}case H.EXCLAMATION_MARK:{this.state=q.COMMENT_END_BANG;break}case H.HYPHEN_MINUS:{n.data+="-";break}case H.EOF:{this._err(ve.eofInComment),this.emitCurrentComment(n),this._emitEOFToken();break}default:n.data+="--",this.state=q.COMMENT,this._stateComment(t)}}_stateCommentEndBang(t){const n=this.currentToken;switch(t){case H.HYPHEN_MINUS:{n.data+="--!",this.state=q.COMMENT_END_DASH;break}case H.GREATER_THAN_SIGN:{this._err(ve.incorrectlyClosedComment),this.state=q.DATA,this.emitCurrentComment(n);break}case H.EOF:{this._err(ve.eofInComment),this.emitCurrentComment(n),this._emitEOFToken();break}default:n.data+="--!",this.state=q.COMMENT,this._stateComment(t)}}_stateDoctype(t){switch(t){case H.SPACE:case H.LINE_FEED:case H.TABULATION:case H.FORM_FEED:{this.state=q.BEFORE_DOCTYPE_NAME;break}case H.GREATER_THAN_SIGN:{this.state=q.BEFORE_DOCTYPE_NAME,this._stateBeforeDoctypeName(t);break}case H.EOF:{this._err(ve.eofInDoctype),this._createDoctypeToken(null);const n=this.currentToken;n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(ve.missingWhitespaceBeforeDoctypeName),this.state=q.BEFORE_DOCTYPE_NAME,this._stateBeforeDoctypeName(t)}}_stateBeforeDoctypeName(t){if(ff(t))this._createDoctypeToken(String.fromCharCode(xm(t))),this.state=q.DOCTYPE_NAME;else switch(t){case H.SPACE:case H.LINE_FEED:case H.TABULATION:case H.FORM_FEED:break;case H.NULL:{this._err(ve.unexpectedNullCharacter),this._createDoctypeToken($n),this.state=q.DOCTYPE_NAME;break}case H.GREATER_THAN_SIGN:{this._err(ve.missingDoctypeName),this._createDoctypeToken(null);const n=this.currentToken;n.forceQuirks=!0,this.emitCurrentDoctype(n),this.state=q.DATA;break}case H.EOF:{this._err(ve.eofInDoctype),this._createDoctypeToken(null);const n=this.currentToken;n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._createDoctypeToken(String.fromCodePoint(t)),this.state=q.DOCTYPE_NAME}}_stateDoctypeName(t){const n=this.currentToken;switch(t){case H.SPACE:case H.LINE_FEED:case H.TABULATION:case H.FORM_FEED:{this.state=q.AFTER_DOCTYPE_NAME;break}case H.GREATER_THAN_SIGN:{this.state=q.DATA,this.emitCurrentDoctype(n);break}case H.NULL:{this._err(ve.unexpectedNullCharacter),n.name+=$n;break}case H.EOF:{this._err(ve.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:n.name+=String.fromCodePoint(ff(t)?xm(t):t)}}_stateAfterDoctypeName(t){const n=this.currentToken;switch(t){case H.SPACE:case H.LINE_FEED:case H.TABULATION:case H.FORM_FEED:break;case H.GREATER_THAN_SIGN:{this.state=q.DATA,this.emitCurrentDoctype(n);break}case H.EOF:{this._err(ve.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._consumeSequenceIfMatch(oa.PUBLIC,!1)?this.state=q.AFTER_DOCTYPE_PUBLIC_KEYWORD:this._consumeSequenceIfMatch(oa.SYSTEM,!1)?this.state=q.AFTER_DOCTYPE_SYSTEM_KEYWORD:this._ensureHibernation()||(this._err(ve.invalidCharacterSequenceAfterDoctypeName),n.forceQuirks=!0,this.state=q.BOGUS_DOCTYPE,this._stateBogusDoctype(t))}}_stateAfterDoctypePublicKeyword(t){const n=this.currentToken;switch(t){case H.SPACE:case H.LINE_FEED:case H.TABULATION:case H.FORM_FEED:{this.state=q.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER;break}case H.QUOTATION_MARK:{this._err(ve.missingWhitespaceAfterDoctypePublicKeyword),n.publicId="",this.state=q.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED;break}case H.APOSTROPHE:{this._err(ve.missingWhitespaceAfterDoctypePublicKeyword),n.publicId="",this.state=q.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED;break}case H.GREATER_THAN_SIGN:{this._err(ve.missingDoctypePublicIdentifier),n.forceQuirks=!0,this.state=q.DATA,this.emitCurrentDoctype(n);break}case H.EOF:{this._err(ve.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(ve.missingQuoteBeforeDoctypePublicIdentifier),n.forceQuirks=!0,this.state=q.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateBeforeDoctypePublicIdentifier(t){const n=this.currentToken;switch(t){case H.SPACE:case H.LINE_FEED:case H.TABULATION:case H.FORM_FEED:break;case H.QUOTATION_MARK:{n.publicId="",this.state=q.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED;break}case H.APOSTROPHE:{n.publicId="",this.state=q.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED;break}case H.GREATER_THAN_SIGN:{this._err(ve.missingDoctypePublicIdentifier),n.forceQuirks=!0,this.state=q.DATA,this.emitCurrentDoctype(n);break}case H.EOF:{this._err(ve.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(ve.missingQuoteBeforeDoctypePublicIdentifier),n.forceQuirks=!0,this.state=q.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateDoctypePublicIdentifierDoubleQuoted(t){const n=this.currentToken;switch(t){case H.QUOTATION_MARK:{this.state=q.AFTER_DOCTYPE_PUBLIC_IDENTIFIER;break}case H.NULL:{this._err(ve.unexpectedNullCharacter),n.publicId+=$n;break}case H.GREATER_THAN_SIGN:{this._err(ve.abruptDoctypePublicIdentifier),n.forceQuirks=!0,this.emitCurrentDoctype(n),this.state=q.DATA;break}case H.EOF:{this._err(ve.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:n.publicId+=String.fromCodePoint(t)}}_stateDoctypePublicIdentifierSingleQuoted(t){const n=this.currentToken;switch(t){case H.APOSTROPHE:{this.state=q.AFTER_DOCTYPE_PUBLIC_IDENTIFIER;break}case H.NULL:{this._err(ve.unexpectedNullCharacter),n.publicId+=$n;break}case H.GREATER_THAN_SIGN:{this._err(ve.abruptDoctypePublicIdentifier),n.forceQuirks=!0,this.emitCurrentDoctype(n),this.state=q.DATA;break}case H.EOF:{this._err(ve.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:n.publicId+=String.fromCodePoint(t)}}_stateAfterDoctypePublicIdentifier(t){const n=this.currentToken;switch(t){case H.SPACE:case H.LINE_FEED:case H.TABULATION:case H.FORM_FEED:{this.state=q.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS;break}case H.GREATER_THAN_SIGN:{this.state=q.DATA,this.emitCurrentDoctype(n);break}case H.QUOTATION_MARK:{this._err(ve.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers),n.systemId="",this.state=q.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break}case H.APOSTROPHE:{this._err(ve.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers),n.systemId="",this.state=q.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break}case H.EOF:{this._err(ve.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(ve.missingQuoteBeforeDoctypeSystemIdentifier),n.forceQuirks=!0,this.state=q.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateBetweenDoctypePublicAndSystemIdentifiers(t){const n=this.currentToken;switch(t){case H.SPACE:case H.LINE_FEED:case H.TABULATION:case H.FORM_FEED:break;case H.GREATER_THAN_SIGN:{this.emitCurrentDoctype(n),this.state=q.DATA;break}case H.QUOTATION_MARK:{n.systemId="",this.state=q.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break}case H.APOSTROPHE:{n.systemId="",this.state=q.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break}case H.EOF:{this._err(ve.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(ve.missingQuoteBeforeDoctypeSystemIdentifier),n.forceQuirks=!0,this.state=q.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateAfterDoctypeSystemKeyword(t){const n=this.currentToken;switch(t){case H.SPACE:case H.LINE_FEED:case H.TABULATION:case H.FORM_FEED:{this.state=q.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER;break}case H.QUOTATION_MARK:{this._err(ve.missingWhitespaceAfterDoctypeSystemKeyword),n.systemId="",this.state=q.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break}case H.APOSTROPHE:{this._err(ve.missingWhitespaceAfterDoctypeSystemKeyword),n.systemId="",this.state=q.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break}case H.GREATER_THAN_SIGN:{this._err(ve.missingDoctypeSystemIdentifier),n.forceQuirks=!0,this.state=q.DATA,this.emitCurrentDoctype(n);break}case H.EOF:{this._err(ve.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(ve.missingQuoteBeforeDoctypeSystemIdentifier),n.forceQuirks=!0,this.state=q.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateBeforeDoctypeSystemIdentifier(t){const n=this.currentToken;switch(t){case H.SPACE:case H.LINE_FEED:case H.TABULATION:case H.FORM_FEED:break;case H.QUOTATION_MARK:{n.systemId="",this.state=q.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break}case H.APOSTROPHE:{n.systemId="",this.state=q.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break}case H.GREATER_THAN_SIGN:{this._err(ve.missingDoctypeSystemIdentifier),n.forceQuirks=!0,this.state=q.DATA,this.emitCurrentDoctype(n);break}case H.EOF:{this._err(ve.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(ve.missingQuoteBeforeDoctypeSystemIdentifier),n.forceQuirks=!0,this.state=q.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateDoctypeSystemIdentifierDoubleQuoted(t){const n=this.currentToken;switch(t){case H.QUOTATION_MARK:{this.state=q.AFTER_DOCTYPE_SYSTEM_IDENTIFIER;break}case H.NULL:{this._err(ve.unexpectedNullCharacter),n.systemId+=$n;break}case H.GREATER_THAN_SIGN:{this._err(ve.abruptDoctypeSystemIdentifier),n.forceQuirks=!0,this.emitCurrentDoctype(n),this.state=q.DATA;break}case H.EOF:{this._err(ve.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:n.systemId+=String.fromCodePoint(t)}}_stateDoctypeSystemIdentifierSingleQuoted(t){const n=this.currentToken;switch(t){case H.APOSTROPHE:{this.state=q.AFTER_DOCTYPE_SYSTEM_IDENTIFIER;break}case H.NULL:{this._err(ve.unexpectedNullCharacter),n.systemId+=$n;break}case H.GREATER_THAN_SIGN:{this._err(ve.abruptDoctypeSystemIdentifier),n.forceQuirks=!0,this.emitCurrentDoctype(n),this.state=q.DATA;break}case H.EOF:{this._err(ve.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:n.systemId+=String.fromCodePoint(t)}}_stateAfterDoctypeSystemIdentifier(t){const n=this.currentToken;switch(t){case H.SPACE:case H.LINE_FEED:case H.TABULATION:case H.FORM_FEED:break;case H.GREATER_THAN_SIGN:{this.emitCurrentDoctype(n),this.state=q.DATA;break}case H.EOF:{this._err(ve.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(ve.unexpectedCharacterAfterDoctypeSystemIdentifier),this.state=q.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateBogusDoctype(t){const n=this.currentToken;switch(t){case H.GREATER_THAN_SIGN:{this.emitCurrentDoctype(n),this.state=q.DATA;break}case H.NULL:{this._err(ve.unexpectedNullCharacter);break}case H.EOF:{this.emitCurrentDoctype(n),this._emitEOFToken();break}}}_stateCdataSection(t){switch(t){case H.RIGHT_SQUARE_BRACKET:{this.state=q.CDATA_SECTION_BRACKET;break}case H.EOF:{this._err(ve.eofInCdata),this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateCdataSectionBracket(t){t===H.RIGHT_SQUARE_BRACKET?this.state=q.CDATA_SECTION_END:(this._emitChars("]"),this.state=q.CDATA_SECTION,this._stateCdataSection(t))}_stateCdataSectionEnd(t){switch(t){case H.GREATER_THAN_SIGN:{this.state=q.DATA;break}case H.RIGHT_SQUARE_BRACKET:{this._emitChars("]");break}default:this._emitChars("]]"),this.state=q.CDATA_SECTION,this._stateCdataSection(t)}}_stateCharacterReference(){let t=this.entityDecoder.write(this.preprocessor.html,this.preprocessor.pos);if(t<0)if(this.preprocessor.lastChunkWritten)t=this.entityDecoder.end();else{this.active=!1,this.preprocessor.pos=this.preprocessor.html.length-1,this.consumedAfterSnapshot=0,this.preprocessor.endOfChunkHit=!0;return}t===0?(this.preprocessor.pos=this.entityStartPos,this._flushCodePointConsumedAsCharacterReference(H.AMPERSAND),this.state=!this._isCharacterReferenceInAttribute()&&Xk(this.preprocessor.peek(1))?q.AMBIGUOUS_AMPERSAND:this.returnState):this.state=this.returnState}_stateAmbiguousAmpersand(t){Xk(t)?this._flushCodePointConsumedAsCharacterReference(t):(t===H.SEMICOLON&&this._err(ve.unknownNamedCharacterReference),this.state=this.returnState,this._callState(t))}};const E4=new Set([C.DD,C.DT,C.LI,C.OPTGROUP,C.OPTION,C.P,C.RB,C.RP,C.RT,C.RTC]),Jk=new Set([...E4,C.CAPTION,C.COLGROUP,C.TBODY,C.TD,C.TFOOT,C.TH,C.THEAD,C.TR]),jg=new Set([C.APPLET,C.CAPTION,C.HTML,C.MARQUEE,C.OBJECT,C.TABLE,C.TD,C.TEMPLATE,C.TH]),Ire=new Set([...jg,C.OL,C.UL]),Nre=new Set([...jg,C.BUTTON]),eR=new Set([C.ANNOTATION_XML,C.MI,C.MN,C.MO,C.MS,C.MTEXT]),tR=new Set([C.DESC,C.FOREIGN_OBJECT,C.TITLE]),Lre=new Set([C.TR,C.TEMPLATE,C.HTML]),Pre=new Set([C.TBODY,C.TFOOT,C.THEAD,C.TEMPLATE,C.HTML]),Mre=new Set([C.TABLE,C.TEMPLATE,C.HTML]),$re=new Set([C.TD,C.TH]);let Fre=class{get currentTmplContentOrNode(){return this._isInTemplate()?this.treeAdapter.getTemplateContent(this.current):this.current}constructor(t,n,r){this.treeAdapter=n,this.handler=r,this.items=[],this.tagIDs=[],this.stackTop=-1,this.tmplCount=0,this.currentTagId=C.UNKNOWN,this.current=t}_indexOf(t){return this.items.lastIndexOf(t,this.stackTop)}_isInTemplate(){return this.currentTagId===C.TEMPLATE&&this.treeAdapter.getNamespaceURI(this.current)===Re.HTML}_updateCurrentElement(){this.current=this.items[this.stackTop],this.currentTagId=this.tagIDs[this.stackTop]}push(t,n){this.stackTop++,this.items[this.stackTop]=t,this.current=t,this.tagIDs[this.stackTop]=n,this.currentTagId=n,this._isInTemplate()&&this.tmplCount++,this.handler.onItemPush(t,n,!0)}pop(){const t=this.current;this.tmplCount>0&&this._isInTemplate()&&this.tmplCount--,this.stackTop--,this._updateCurrentElement(),this.handler.onItemPop(t,!0)}replace(t,n){const r=this._indexOf(t);this.items[r]=n,r===this.stackTop&&(this.current=n)}insertAfter(t,n,r){const a=this._indexOf(t)+1;this.items.splice(a,0,n),this.tagIDs.splice(a,0,r),this.stackTop++,a===this.stackTop&&this._updateCurrentElement(),this.current&&this.currentTagId!==void 0&&this.handler.onItemPush(this.current,this.currentTagId,a===this.stackTop)}popUntilTagNamePopped(t){let n=this.stackTop+1;do n=this.tagIDs.lastIndexOf(t,n-1);while(n>0&&this.treeAdapter.getNamespaceURI(this.items[n])!==Re.HTML);this.shortenToLength(Math.max(n,0))}shortenToLength(t){for(;this.stackTop>=t;){const n=this.current;this.tmplCount>0&&this._isInTemplate()&&(this.tmplCount-=1),this.stackTop--,this._updateCurrentElement(),this.handler.onItemPop(n,this.stackTop<t)}}popUntilElementPopped(t){const n=this._indexOf(t);this.shortenToLength(Math.max(n,0))}popUntilPopped(t,n){const r=this._indexOfTagNames(t,n);this.shortenToLength(Math.max(r,0))}popUntilNumberedHeaderPopped(){this.popUntilPopped(ZE,Re.HTML)}popUntilTableCellPopped(){this.popUntilPopped($re,Re.HTML)}popAllUpToHtmlElement(){this.tmplCount=0,this.shortenToLength(1)}_indexOfTagNames(t,n){for(let r=this.stackTop;r>=0;r--)if(t.has(this.tagIDs[r])&&this.treeAdapter.getNamespaceURI(this.items[r])===n)return r;return-1}clearBackTo(t,n){const r=this._indexOfTagNames(t,n);this.shortenToLength(r+1)}clearBackToTableContext(){this.clearBackTo(Mre,Re.HTML)}clearBackToTableBodyContext(){this.clearBackTo(Pre,Re.HTML)}clearBackToTableRowContext(){this.clearBackTo(Lre,Re.HTML)}remove(t){const n=this._indexOf(t);n>=0&&(n===this.stackTop?this.pop():(this.items.splice(n,1),this.tagIDs.splice(n,1),this.stackTop--,this._updateCurrentElement(),this.handler.onItemPop(t,!1)))}tryPeekProperlyNestedBodyElement(){return this.stackTop>=1&&this.tagIDs[1]===C.BODY?this.items[1]:null}contains(t){return this._indexOf(t)>-1}getCommonAncestor(t){const n=this._indexOf(t)-1;return n>=0?this.items[n]:null}isRootHtmlElementCurrent(){return this.stackTop===0&&this.tagIDs[0]===C.HTML}hasInDynamicScope(t,n){for(let r=this.stackTop;r>=0;r--){const a=this.tagIDs[r];switch(this.treeAdapter.getNamespaceURI(this.items[r])){case Re.HTML:{if(a===t)return!0;if(n.has(a))return!1;break}case Re.SVG:{if(tR.has(a))return!1;break}case Re.MATHML:{if(eR.has(a))return!1;break}}}return!0}hasInScope(t){return this.hasInDynamicScope(t,jg)}hasInListItemScope(t){return this.hasInDynamicScope(t,Ire)}hasInButtonScope(t){return this.hasInDynamicScope(t,Nre)}hasNumberedHeaderInScope(){for(let t=this.stackTop;t>=0;t--){const n=this.tagIDs[t];switch(this.treeAdapter.getNamespaceURI(this.items[t])){case Re.HTML:{if(ZE.has(n))return!0;if(jg.has(n))return!1;break}case Re.SVG:{if(tR.has(n))return!1;break}case Re.MATHML:{if(eR.has(n))return!1;break}}}return!0}hasInTableScope(t){for(let n=this.stackTop;n>=0;n--)if(this.treeAdapter.getNamespaceURI(this.items[n])===Re.HTML)switch(this.tagIDs[n]){case t:return!0;case C.TABLE:case C.HTML:return!1}return!0}hasTableBodyContextInTableScope(){for(let t=this.stackTop;t>=0;t--)if(this.treeAdapter.getNamespaceURI(this.items[t])===Re.HTML)switch(this.tagIDs[t]){case C.TBODY:case C.THEAD:case C.TFOOT:return!0;case C.TABLE:case C.HTML:return!1}return!0}hasInSelectScope(t){for(let n=this.stackTop;n>=0;n--)if(this.treeAdapter.getNamespaceURI(this.items[n])===Re.HTML)switch(this.tagIDs[n]){case t:return!0;case C.OPTION:case C.OPTGROUP:break;default:return!1}return!0}generateImpliedEndTags(){for(;this.currentTagId!==void 0&&E4.has(this.currentTagId);)this.pop()}generateImpliedEndTagsThoroughly(){for(;this.currentTagId!==void 0&&Jk.has(this.currentTagId);)this.pop()}generateImpliedEndTagsWithExclusion(t){for(;this.currentTagId!==void 0&&this.currentTagId!==t&&Jk.has(this.currentTagId);)this.pop()}};var Vo;(function(e){e[e.Marker=0]="Marker",e[e.Element=1]="Element"})(Vo||(Vo={}));const nR={type:Vo.Marker};let Bre=class{constructor(t){this.treeAdapter=t,this.entries=[],this.bookmark=null}_getNoahArkConditionCandidates(t,n){const r=[],a=n.length,o=this.treeAdapter.getTagName(t),s=this.treeAdapter.getNamespaceURI(t);for(let c=0;c<this.entries.length;c++){const u=this.entries[c];if(u.type===Vo.Marker)break;const{element:d}=u;if(this.treeAdapter.getTagName(d)===o&&this.treeAdapter.getNamespaceURI(d)===s){const p=this.treeAdapter.getAttrList(d);p.length===a&&r.push({idx:c,attrs:p})}}return r}_ensureNoahArkCondition(t){if(this.entries.length<3)return;const n=this.treeAdapter.getAttrList(t),r=this._getNoahArkConditionCandidates(t,n);if(r.length<3)return;const a=new Map(n.map(s=>[s.name,s.value]));let o=0;for(let s=0;s<r.length;s++){const c=r[s];c.attrs.every(u=>a.get(u.name)===u.value)&&(o+=1,o>=3&&this.entries.splice(c.idx,1))}}insertMarker(){this.entries.unshift(nR)}pushElement(t,n){this._ensureNoahArkCondition(t),this.entries.unshift({type:Vo.Element,element:t,token:n})}insertElementAfterBookmark(t,n){const r=this.entries.indexOf(this.bookmark);this.entries.splice(r,0,{type:Vo.Element,element:t,token:n})}removeEntry(t){const n=this.entries.indexOf(t);n!==-1&&this.entries.splice(n,1)}clearToLastMarker(){const t=this.entries.indexOf(nR);t===-1?this.entries.length=0:this.entries.splice(0,t+1)}getElementEntryInScopeWithTagName(t){const n=this.entries.find(r=>r.type===Vo.Marker||this.treeAdapter.getTagName(r.element)===t);return n&&n.type===Vo.Element?n:null}getElementEntry(t){return this.entries.find(n=>n.type===Vo.Element&&n.element===t)}};const vs={createDocument(){return{nodeName:"#document",mode:no.NO_QUIRKS,childNodes:[]}},createDocumentFragment(){return{nodeName:"#document-fragment",childNodes:[]}},createElement(e,t,n){return{nodeName:e,tagName:e,attrs:n,namespaceURI:t,childNodes:[],parentNode:null}},createCommentNode(e){return{nodeName:"#comment",data:e,parentNode:null}},createTextNode(e){return{nodeName:"#text",value:e,parentNode:null}},appendChild(e,t){e.childNodes.push(t),t.parentNode=e},insertBefore(e,t,n){const r=e.childNodes.indexOf(n);e.childNodes.splice(r,0,t),t.parentNode=e},setTemplateContent(e,t){e.content=t},getTemplateContent(e){return e.content},setDocumentType(e,t,n,r){const a=e.childNodes.find(o=>o.nodeName==="#documentType");if(a)a.name=t,a.publicId=n,a.systemId=r;else{const o={nodeName:"#documentType",name:t,publicId:n,systemId:r,parentNode:null};vs.appendChild(e,o)}},setDocumentMode(e,t){e.mode=t},getDocumentMode(e){return e.mode},detachNode(e){if(e.parentNode){const t=e.parentNode.childNodes.indexOf(e);e.parentNode.childNodes.splice(t,1),e.parentNode=null}},insertText(e,t){if(e.childNodes.length>0){const n=e.childNodes[e.childNodes.length-1];if(vs.isTextNode(n)){n.value+=t;return}}vs.appendChild(e,vs.createTextNode(t))},insertTextBefore(e,t,n){const r=e.childNodes[e.childNodes.indexOf(n)-1];r&&vs.isTextNode(r)?r.value+=t:vs.insertBefore(e,vs.createTextNode(t),n)},adoptAttributes(e,t){const n=new Set(e.attrs.map(r=>r.name));for(let r=0;r<t.length;r++)n.has(t[r].name)||e.attrs.push(t[r])},getFirstChild(e){return e.childNodes[0]},getChildNodes(e){return e.childNodes},getParentNode(e){return e.parentNode},getAttrList(e){return e.attrs},getTagName(e){return e.tagName},getNamespaceURI(e){return e.namespaceURI},getTextNodeContent(e){return e.value},getCommentNodeContent(e){return e.data},getDocumentTypeNodeName(e){return e.name},getDocumentTypeNodePublicId(e){return e.publicId},getDocumentTypeNodeSystemId(e){return e.systemId},isTextNode(e){return e.nodeName==="#text"},isCommentNode(e){return e.nodeName==="#comment"},isDocumentTypeNode(e){return e.nodeName==="#documentType"},isElementNode(e){return Object.prototype.hasOwnProperty.call(e,"tagName")},setNodeSourceCodeLocation(e,t){e.sourceCodeLocation=t},getNodeSourceCodeLocation(e){return e.sourceCodeLocation},updateNodeSourceCodeLocation(e,t){e.sourceCodeLocation={...e.sourceCodeLocation,...t}}},T4="html",Ure="about:legacy-compat",jre="http://www.ibm.com/data/dtd/v11/ibmxhtml1-transitional.dtd",S4=["+//silmaril//dtd html pro v0r11 19970101//","-//as//dtd html 3.0 aswedit + extensions//","-//advasoft ltd//dtd html 3.0 aswedit + extensions//","-//ietf//dtd html 2.0 level 1//","-//ietf//dtd html 2.0 level 2//","-//ietf//dtd html 2.0 strict level 1//","-//ietf//dtd html 2.0 strict level 2//","-//ietf//dtd html 2.0 strict//","-//ietf//dtd html 2.0//","-//ietf//dtd html 2.1e//","-//ietf//dtd html 3.0//","-//ietf//dtd html 3.2 final//","-//ietf//dtd html 3.2//","-//ietf//dtd html 3//","-//ietf//dtd html level 0//","-//ietf//dtd html level 1//","-//ietf//dtd html level 2//","-//ietf//dtd html level 3//","-//ietf//dtd html strict level 0//","-//ietf//dtd html strict level 1//","-//ietf//dtd html strict level 2//","-//ietf//dtd html strict level 3//","-//ietf//dtd html strict//","-//ietf//dtd html//","-//metrius//dtd metrius presentational//","-//microsoft//dtd internet explorer 2.0 html strict//","-//microsoft//dtd internet explorer 2.0 html//","-//microsoft//dtd internet explorer 2.0 tables//","-//microsoft//dtd internet explorer 3.0 html strict//","-//microsoft//dtd internet explorer 3.0 html//","-//microsoft//dtd internet explorer 3.0 tables//","-//netscape comm. corp.//dtd html//","-//netscape comm. corp.//dtd strict html//","-//o'reilly and associates//dtd html 2.0//","-//o'reilly and associates//dtd html extended 1.0//","-//o'reilly and associates//dtd html extended relaxed 1.0//","-//sq//dtd html 2.0 hotmetal + extensions//","-//softquad software//dtd hotmetal pro 6.0::19990601::extensions to html 4.0//","-//softquad//dtd hotmetal pro 4.0::19971010::extensions to html 4.0//","-//spyglass//dtd html 2.0 extended//","-//sun microsystems corp.//dtd hotjava html//","-//sun microsystems corp.//dtd hotjava strict html//","-//w3c//dtd html 3 1995-03-24//","-//w3c//dtd html 3.2 draft//","-//w3c//dtd html 3.2 final//","-//w3c//dtd html 3.2//","-//w3c//dtd html 3.2s draft//","-//w3c//dtd html 4.0 frameset//","-//w3c//dtd html 4.0 transitional//","-//w3c//dtd html experimental 19960712//","-//w3c//dtd html experimental 970421//","-//w3c//dtd w3 html//","-//w3o//dtd w3 html 3.0//","-//webtechs//dtd mozilla html 2.0//","-//webtechs//dtd mozilla html//"],Hre=[...S4,"-//w3c//dtd html 4.01 frameset//","-//w3c//dtd html 4.01 transitional//"],zre=new Set(["-//w3o//dtd w3 html strict 3.0//en//","-/w3c/dtd html 4.0 transitional/en","html"]),_4=["-//w3c//dtd xhtml 1.0 frameset//","-//w3c//dtd xhtml 1.0 transitional//"],Vre=[..._4,"-//w3c//dtd html 4.01 frameset//","-//w3c//dtd html 4.01 transitional//"];function rR(e,t){return t.some(n=>e.startsWith(n))}function Gre(e){return e.name===T4&&e.publicId===null&&(e.systemId===null||e.systemId===Ure)}function qre(e){if(e.name!==T4)return no.QUIRKS;const{systemId:t}=e;if(t&&t.toLowerCase()===jre)return no.QUIRKS;let{publicId:n}=e;if(n!==null){if(n=n.toLowerCase(),zre.has(n))return no.QUIRKS;let r=t===null?Hre:S4;if(rR(n,r))return no.QUIRKS;if(r=t===null?_4:Vre,rR(n,r))return no.LIMITED_QUIRKS}return no.NO_QUIRKS}const aR={TEXT_HTML:"text/html",APPLICATION_XML:"application/xhtml+xml"},Wre="definitionurl",Yre="definitionURL",Qre=new Map(["attributeName","attributeType","baseFrequency","baseProfile","calcMode","clipPathUnits","diffuseConstant","edgeMode","filterUnits","glyphRef","gradientTransform","gradientUnits","kernelMatrix","kernelUnitLength","keyPoints","keySplines","keyTimes","lengthAdjust","limitingConeAngle","markerHeight","markerUnits","markerWidth","maskContentUnits","maskUnits","numOctaves","pathLength","patternContentUnits","patternTransform","patternUnits","pointsAtX","pointsAtY","pointsAtZ","preserveAlpha","preserveAspectRatio","primitiveUnits","refX","refY","repeatCount","repeatDur","requiredExtensions","requiredFeatures","specularConstant","specularExponent","spreadMethod","startOffset","stdDeviation","stitchTiles","surfaceScale","systemLanguage","tableValues","targetX","targetY","textLength","viewBox","viewTarget","xChannelSelector","yChannelSelector","zoomAndPan"].map(e=>[e.toLowerCase(),e])),Kre=new Map([["xlink:actuate",{prefix:"xlink",name:"actuate",namespace:Re.XLINK}],["xlink:arcrole",{prefix:"xlink",name:"arcrole",namespace:Re.XLINK}],["xlink:href",{prefix:"xlink",name:"href",namespace:Re.XLINK}],["xlink:role",{prefix:"xlink",name:"role",namespace:Re.XLINK}],["xlink:show",{prefix:"xlink",name:"show",namespace:Re.XLINK}],["xlink:title",{prefix:"xlink",name:"title",namespace:Re.XLINK}],["xlink:type",{prefix:"xlink",name:"type",namespace:Re.XLINK}],["xml:lang",{prefix:"xml",name:"lang",namespace:Re.XML}],["xml:space",{prefix:"xml",name:"space",namespace:Re.XML}],["xmlns",{prefix:"",name:"xmlns",namespace:Re.XMLNS}],["xmlns:xlink",{prefix:"xmlns",name:"xlink",namespace:Re.XMLNS}]]),Xre=new Map(["altGlyph","altGlyphDef","altGlyphItem","animateColor","animateMotion","animateTransform","clipPath","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","foreignObject","glyphRef","linearGradient","radialGradient","textPath"].map(e=>[e.toLowerCase(),e])),Zre=new Set([C.B,C.BIG,C.BLOCKQUOTE,C.BODY,C.BR,C.CENTER,C.CODE,C.DD,C.DIV,C.DL,C.DT,C.EM,C.EMBED,C.H1,C.H2,C.H3,C.H4,C.H5,C.H6,C.HEAD,C.HR,C.I,C.IMG,C.LI,C.LISTING,C.MENU,C.META,C.NOBR,C.OL,C.P,C.PRE,C.RUBY,C.S,C.SMALL,C.SPAN,C.STRONG,C.STRIKE,C.SUB,C.SUP,C.TABLE,C.TT,C.U,C.UL,C.VAR]);function Jre(e){const t=e.tagID;return t===C.FONT&&e.attrs.some(({name:n})=>n===Al.COLOR||n===Al.SIZE||n===Al.FACE)||Zre.has(t)}function C4(e){for(let t=0;t<e.attrs.length;t++)if(e.attrs[t].name===Wre){e.attrs[t].name=Yre;break}}function A4(e){for(let t=0;t<e.attrs.length;t++){const n=Qre.get(e.attrs[t].name);n!=null&&(e.attrs[t].name=n)}}function s_(e){for(let t=0;t<e.attrs.length;t++){const n=Kre.get(e.attrs[t].name);n&&(e.attrs[t].prefix=n.prefix,e.attrs[t].name=n.name,e.attrs[t].namespace=n.namespace)}}function eae(e){const t=Xre.get(e.tagName);t!=null&&(e.tagName=t,e.tagID=wu(e.tagName))}function tae(e,t){return t===Re.MATHML&&(e===C.MI||e===C.MO||e===C.MN||e===C.MS||e===C.MTEXT)}function nae(e,t,n){if(t===Re.MATHML&&e===C.ANNOTATION_XML){for(let r=0;r<n.length;r++)if(n[r].name===Al.ENCODING){const a=n[r].value.toLowerCase();return a===aR.TEXT_HTML||a===aR.APPLICATION_XML}}return t===Re.SVG&&(e===C.FOREIGN_OBJECT||e===C.DESC||e===C.TITLE)}function rae(e,t,n,r){return(!r||r===Re.HTML)&&nae(e,t,n)||(!r||r===Re.MATHML)&&tae(e,t)}const aae="hidden",oae=8,iae=3;var W;(function(e){e[e.INITIAL=0]="INITIAL",e[e.BEFORE_HTML=1]="BEFORE_HTML",e[e.BEFORE_HEAD=2]="BEFORE_HEAD",e[e.IN_HEAD=3]="IN_HEAD",e[e.IN_HEAD_NO_SCRIPT=4]="IN_HEAD_NO_SCRIPT",e[e.AFTER_HEAD=5]="AFTER_HEAD",e[e.IN_BODY=6]="IN_BODY",e[e.TEXT=7]="TEXT",e[e.IN_TABLE=8]="IN_TABLE",e[e.IN_TABLE_TEXT=9]="IN_TABLE_TEXT",e[e.IN_CAPTION=10]="IN_CAPTION",e[e.IN_COLUMN_GROUP=11]="IN_COLUMN_GROUP",e[e.IN_TABLE_BODY=12]="IN_TABLE_BODY",e[e.IN_ROW=13]="IN_ROW",e[e.IN_CELL=14]="IN_CELL",e[e.IN_SELECT=15]="IN_SELECT",e[e.IN_SELECT_IN_TABLE=16]="IN_SELECT_IN_TABLE",e[e.IN_TEMPLATE=17]="IN_TEMPLATE",e[e.AFTER_BODY=18]="AFTER_BODY",e[e.IN_FRAMESET=19]="IN_FRAMESET",e[e.AFTER_FRAMESET=20]="AFTER_FRAMESET",e[e.AFTER_AFTER_BODY=21]="AFTER_AFTER_BODY",e[e.AFTER_AFTER_FRAMESET=22]="AFTER_AFTER_FRAMESET"})(W||(W={}));const sae={startLine:-1,startCol:-1,startOffset:-1,endLine:-1,endCol:-1,endOffset:-1},x4=new Set([C.TABLE,C.TBODY,C.TFOOT,C.THEAD,C.TR]),oR={scriptingEnabled:!0,sourceCodeLocationInfo:!1,treeAdapter:vs,onParseError:null};class iR{constructor(t,n,r=null,a=null){this.fragmentContext=r,this.scriptHandler=a,this.currentToken=null,this.stopped=!1,this.insertionMode=W.INITIAL,this.originalInsertionMode=W.INITIAL,this.headElement=null,this.formElement=null,this.currentNotInHTML=!1,this.tmplInsertionModeStack=[],this.pendingCharacterTokens=[],this.hasNonWhitespacePendingCharacterToken=!1,this.framesetOk=!0,this.skipNextNewLine=!1,this.fosterParentingEnabled=!1,this.options={...oR,...t},this.treeAdapter=this.options.treeAdapter,this.onParseError=this.options.onParseError,this.onParseError&&(this.options.sourceCodeLocationInfo=!0),this.document=n??this.treeAdapter.createDocument(),this.tokenizer=new Ore(this.options,this),this.activeFormattingElements=new Bre(this.treeAdapter),this.fragmentContextID=r?wu(this.treeAdapter.getTagName(r)):C.UNKNOWN,this._setContextModes(r??this.document,this.fragmentContextID),this.openElements=new Fre(this.document,this.treeAdapter,this)}static parse(t,n){const r=new this(n);return r.tokenizer.write(t,!0),r.document}static getFragmentParser(t,n){const r={...oR,...n};t??(t=r.treeAdapter.createElement(le.TEMPLATE,Re.HTML,[]));const a=r.treeAdapter.createElement("documentmock",Re.HTML,[]),o=new this(r,a,t);return o.fragmentContextID===C.TEMPLATE&&o.tmplInsertionModeStack.unshift(W.IN_TEMPLATE),o._initTokenizerForFragmentParsing(),o._insertFakeRootElement(),o._resetInsertionMode(),o._findFormInFragmentContext(),o}getFragment(){const t=this.treeAdapter.getFirstChild(this.document),n=this.treeAdapter.createDocumentFragment();return this._adoptNodes(t,n),n}_err(t,n,r){var a;if(!this.onParseError)return;const o=(a=t.location)!==null&&a!==void 0?a:sae,s={code:n,startLine:o.startLine,startCol:o.startCol,startOffset:o.startOffset,endLine:r?o.startLine:o.endLine,endCol:r?o.startCol:o.endCol,endOffset:r?o.startOffset:o.endOffset};this.onParseError(s)}onItemPush(t,n,r){var a,o;(o=(a=this.treeAdapter).onItemPush)===null||o===void 0||o.call(a,t),r&&this.openElements.stackTop>0&&this._setContextModes(t,n)}onItemPop(t,n){var r,a;if(this.options.sourceCodeLocationInfo&&this._setEndLocation(t,this.currentToken),(a=(r=this.treeAdapter).onItemPop)===null||a===void 0||a.call(r,t,this.openElements.current),n){let o,s;this.openElements.stackTop===0&&this.fragmentContext?(o=this.fragmentContext,s=this.fragmentContextID):{current:o,currentTagId:s}=this.openElements,this._setContextModes(o,s)}}_setContextModes(t,n){const r=t===this.document||t&&this.treeAdapter.getNamespaceURI(t)===Re.HTML;this.currentNotInHTML=!r,this.tokenizer.inForeignNode=!r&&t!==void 0&&n!==void 0&&!this._isIntegrationPoint(n,t)}_switchToTextParsing(t,n){this._insertElement(t,Re.HTML),this.tokenizer.state=n,this.originalInsertionMode=this.insertionMode,this.insertionMode=W.TEXT}switchToPlaintextParsing(){this.insertionMode=W.TEXT,this.originalInsertionMode=W.IN_BODY,this.tokenizer.state=er.PLAINTEXT}_getAdjustedCurrentElement(){return this.openElements.stackTop===0&&this.fragmentContext?this.fragmentContext:this.openElements.current}_findFormInFragmentContext(){let t=this.fragmentContext;for(;t;){if(this.treeAdapter.getTagName(t)===le.FORM){this.formElement=t;break}t=this.treeAdapter.getParentNode(t)}}_initTokenizerForFragmentParsing(){if(!(!this.fragmentContext||this.treeAdapter.getNamespaceURI(this.fragmentContext)!==Re.HTML))switch(this.fragmentContextID){case C.TITLE:case C.TEXTAREA:{this.tokenizer.state=er.RCDATA;break}case C.STYLE:case C.XMP:case C.IFRAME:case C.NOEMBED:case C.NOFRAMES:case C.NOSCRIPT:{this.tokenizer.state=er.RAWTEXT;break}case C.SCRIPT:{this.tokenizer.state=er.SCRIPT_DATA;break}case C.PLAINTEXT:{this.tokenizer.state=er.PLAINTEXT;break}}}_setDocumentType(t){const n=t.name||"",r=t.publicId||"",a=t.systemId||"";if(this.treeAdapter.setDocumentType(this.document,n,r,a),t.location){const o=this.treeAdapter.getChildNodes(this.document).find(s=>this.treeAdapter.isDocumentTypeNode(s));o&&this.treeAdapter.setNodeSourceCodeLocation(o,t.location)}}_attachElementToTree(t,n){if(this.options.sourceCodeLocationInfo){const r=n&&{...n,startTag:n};this.treeAdapter.setNodeSourceCodeLocation(t,r)}if(this._shouldFosterParentOnInsertion())this._fosterParentElement(t);else{const r=this.openElements.currentTmplContentOrNode;this.treeAdapter.appendChild(r??this.document,t)}}_appendElement(t,n){const r=this.treeAdapter.createElement(t.tagName,n,t.attrs);this._attachElementToTree(r,t.location)}_insertElement(t,n){const r=this.treeAdapter.createElement(t.tagName,n,t.attrs);this._attachElementToTree(r,t.location),this.openElements.push(r,t.tagID)}_insertFakeElement(t,n){const r=this.treeAdapter.createElement(t,Re.HTML,[]);this._attachElementToTree(r,null),this.openElements.push(r,n)}_insertTemplate(t){const n=this.treeAdapter.createElement(t.tagName,Re.HTML,t.attrs),r=this.treeAdapter.createDocumentFragment();this.treeAdapter.setTemplateContent(n,r),this._attachElementToTree(n,t.location),this.openElements.push(n,t.tagID),this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(r,null)}_insertFakeRootElement(){const t=this.treeAdapter.createElement(le.HTML,Re.HTML,[]);this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(t,null),this.treeAdapter.appendChild(this.openElements.current,t),this.openElements.push(t,C.HTML)}_appendCommentNode(t,n){const r=this.treeAdapter.createCommentNode(t.data);this.treeAdapter.appendChild(n,r),this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(r,t.location)}_insertCharacters(t){let n,r;if(this._shouldFosterParentOnInsertion()?({parent:n,beforeElement:r}=this._findFosterParentingLocation(),r?this.treeAdapter.insertTextBefore(n,t.chars,r):this.treeAdapter.insertText(n,t.chars)):(n=this.openElements.currentTmplContentOrNode,this.treeAdapter.insertText(n,t.chars)),!t.location)return;const a=this.treeAdapter.getChildNodes(n),o=r?a.lastIndexOf(r):a.length,s=a[o-1];if(this.treeAdapter.getNodeSourceCodeLocation(s)){const{endLine:c,endCol:u,endOffset:d}=t.location;this.treeAdapter.updateNodeSourceCodeLocation(s,{endLine:c,endCol:u,endOffset:d})}else this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(s,t.location)}_adoptNodes(t,n){for(let r=this.treeAdapter.getFirstChild(t);r;r=this.treeAdapter.getFirstChild(t))this.treeAdapter.detachNode(r),this.treeAdapter.appendChild(n,r)}_setEndLocation(t,n){if(this.treeAdapter.getNodeSourceCodeLocation(t)&&n.location){const r=n.location,a=this.treeAdapter.getTagName(t),o=n.type===$t.END_TAG&&a===n.tagName?{endTag:{...r},endLine:r.endLine,endCol:r.endCol,endOffset:r.endOffset}:{endLine:r.startLine,endCol:r.startCol,endOffset:r.startOffset};this.treeAdapter.updateNodeSourceCodeLocation(t,o)}}shouldProcessStartTagTokenInForeignContent(t){if(!this.currentNotInHTML)return!1;let n,r;return this.openElements.stackTop===0&&this.fragmentContext?(n=this.fragmentContext,r=this.fragmentContextID):{current:n,currentTagId:r}=this.openElements,t.tagID===C.SVG&&this.treeAdapter.getTagName(n)===le.ANNOTATION_XML&&this.treeAdapter.getNamespaceURI(n)===Re.MATHML?!1:this.tokenizer.inForeignNode||(t.tagID===C.MGLYPH||t.tagID===C.MALIGNMARK)&&r!==void 0&&!this._isIntegrationPoint(r,n,Re.HTML)}_processToken(t){switch(t.type){case $t.CHARACTER:{this.onCharacter(t);break}case $t.NULL_CHARACTER:{this.onNullCharacter(t);break}case $t.COMMENT:{this.onComment(t);break}case $t.DOCTYPE:{this.onDoctype(t);break}case $t.START_TAG:{this._processStartTag(t);break}case $t.END_TAG:{this.onEndTag(t);break}case $t.EOF:{this.onEof(t);break}case $t.WHITESPACE_CHARACTER:{this.onWhitespaceCharacter(t);break}}}_isIntegrationPoint(t,n,r){const a=this.treeAdapter.getNamespaceURI(n),o=this.treeAdapter.getAttrList(n);return rae(t,a,o,r)}_reconstructActiveFormattingElements(){const t=this.activeFormattingElements.entries.length;if(t){const n=this.activeFormattingElements.entries.findIndex(a=>a.type===Vo.Marker||this.openElements.contains(a.element)),r=n===-1?t-1:n-1;for(let a=r;a>=0;a--){const o=this.activeFormattingElements.entries[a];this._insertElement(o.token,this.treeAdapter.getNamespaceURI(o.element)),o.element=this.openElements.current}}}_closeTableCell(){this.openElements.generateImpliedEndTags(),this.openElements.popUntilTableCellPopped(),this.activeFormattingElements.clearToLastMarker(),this.insertionMode=W.IN_ROW}_closePElement(){this.openElements.generateImpliedEndTagsWithExclusion(C.P),this.openElements.popUntilTagNamePopped(C.P)}_resetInsertionMode(){for(let t=this.openElements.stackTop;t>=0;t--)switch(t===0&&this.fragmentContext?this.fragmentContextID:this.openElements.tagIDs[t]){case C.TR:{this.insertionMode=W.IN_ROW;return}case C.TBODY:case C.THEAD:case C.TFOOT:{this.insertionMode=W.IN_TABLE_BODY;return}case C.CAPTION:{this.insertionMode=W.IN_CAPTION;return}case C.COLGROUP:{this.insertionMode=W.IN_COLUMN_GROUP;return}case C.TABLE:{this.insertionMode=W.IN_TABLE;return}case C.BODY:{this.insertionMode=W.IN_BODY;return}case C.FRAMESET:{this.insertionMode=W.IN_FRAMESET;return}case C.SELECT:{this._resetInsertionModeForSelect(t);return}case C.TEMPLATE:{this.insertionMode=this.tmplInsertionModeStack[0];return}case C.HTML:{this.insertionMode=this.headElement?W.AFTER_HEAD:W.BEFORE_HEAD;return}case C.TD:case C.TH:{if(t>0){this.insertionMode=W.IN_CELL;return}break}case C.HEAD:{if(t>0){this.insertionMode=W.IN_HEAD;return}break}}this.insertionMode=W.IN_BODY}_resetInsertionModeForSelect(t){if(t>0)for(let n=t-1;n>0;n--){const r=this.openElements.tagIDs[n];if(r===C.TEMPLATE)break;if(r===C.TABLE){this.insertionMode=W.IN_SELECT_IN_TABLE;return}}this.insertionMode=W.IN_SELECT}_isElementCausesFosterParenting(t){return x4.has(t)}_shouldFosterParentOnInsertion(){return this.fosterParentingEnabled&&this.openElements.currentTagId!==void 0&&this._isElementCausesFosterParenting(this.openElements.currentTagId)}_findFosterParentingLocation(){for(let t=this.openElements.stackTop;t>=0;t--){const n=this.openElements.items[t];switch(this.openElements.tagIDs[t]){case C.TEMPLATE:{if(this.treeAdapter.getNamespaceURI(n)===Re.HTML)return{parent:this.treeAdapter.getTemplateContent(n),beforeElement:null};break}case C.TABLE:{const r=this.treeAdapter.getParentNode(n);return r?{parent:r,beforeElement:n}:{parent:this.openElements.items[t-1],beforeElement:null}}}}return{parent:this.openElements.items[0],beforeElement:null}}_fosterParentElement(t){const n=this._findFosterParentingLocation();n.beforeElement?this.treeAdapter.insertBefore(n.parent,t,n.beforeElement):this.treeAdapter.appendChild(n.parent,t)}_isSpecialElement(t,n){const r=this.treeAdapter.getNamespaceURI(t);return xre[r].has(n)}onCharacter(t){if(this.skipNextNewLine=!1,this.tokenizer.inForeignNode){$oe(this,t);return}switch(this.insertionMode){case W.INITIAL:{Wd(this,t);break}case W.BEFORE_HTML:{Cf(this,t);break}case W.BEFORE_HEAD:{Af(this,t);break}case W.IN_HEAD:{xf(this,t);break}case W.IN_HEAD_NO_SCRIPT:{wf(this,t);break}case W.AFTER_HEAD:{Df(this,t);break}case W.IN_BODY:case W.IN_CAPTION:case W.IN_CELL:case W.IN_TEMPLATE:{D4(this,t);break}case W.TEXT:case W.IN_SELECT:case W.IN_SELECT_IN_TABLE:{this._insertCharacters(t);break}case W.IN_TABLE:case W.IN_TABLE_BODY:case W.IN_ROW:{Eb(this,t);break}case W.IN_TABLE_TEXT:{L4(this,t);break}case W.IN_COLUMN_GROUP:{Hg(this,t);break}case W.AFTER_BODY:{zg(this,t);break}case W.AFTER_AFTER_BODY:{Zm(this,t);break}}}onNullCharacter(t){if(this.skipNextNewLine=!1,this.tokenizer.inForeignNode){Moe(this,t);return}switch(this.insertionMode){case W.INITIAL:{Wd(this,t);break}case W.BEFORE_HTML:{Cf(this,t);break}case W.BEFORE_HEAD:{Af(this,t);break}case W.IN_HEAD:{xf(this,t);break}case W.IN_HEAD_NO_SCRIPT:{wf(this,t);break}case W.AFTER_HEAD:{Df(this,t);break}case W.TEXT:{this._insertCharacters(t);break}case W.IN_TABLE:case W.IN_TABLE_BODY:case W.IN_ROW:{Eb(this,t);break}case W.IN_COLUMN_GROUP:{Hg(this,t);break}case W.AFTER_BODY:{zg(this,t);break}case W.AFTER_AFTER_BODY:{Zm(this,t);break}}}onComment(t){if(this.skipNextNewLine=!1,this.currentNotInHTML){JE(this,t);return}switch(this.insertionMode){case W.INITIAL:case W.BEFORE_HTML:case W.BEFORE_HEAD:case W.IN_HEAD:case W.IN_HEAD_NO_SCRIPT:case W.AFTER_HEAD:case W.IN_BODY:case W.IN_TABLE:case W.IN_CAPTION:case W.IN_COLUMN_GROUP:case W.IN_TABLE_BODY:case W.IN_ROW:case W.IN_CELL:case W.IN_SELECT:case W.IN_SELECT_IN_TABLE:case W.IN_TEMPLATE:case W.IN_FRAMESET:case W.AFTER_FRAMESET:{JE(this,t);break}case W.IN_TABLE_TEXT:{Yd(this,t);break}case W.AFTER_BODY:{hae(this,t);break}case W.AFTER_AFTER_BODY:case W.AFTER_AFTER_FRAMESET:{mae(this,t);break}}}onDoctype(t){switch(this.skipNextNewLine=!1,this.insertionMode){case W.INITIAL:{gae(this,t);break}case W.BEFORE_HEAD:case W.IN_HEAD:case W.IN_HEAD_NO_SCRIPT:case W.AFTER_HEAD:{this._err(t,ve.misplacedDoctype);break}case W.IN_TABLE_TEXT:{Yd(this,t);break}}}onStartTag(t){this.skipNextNewLine=!1,this.currentToken=t,this._processStartTag(t),t.selfClosing&&!t.ackSelfClosing&&this._err(t,ve.nonVoidHtmlElementStartTagWithTrailingSolidus)}_processStartTag(t){this.shouldProcessStartTagTokenInForeignContent(t)?Foe(this,t):this._startTagOutsideForeignContent(t)}_startTagOutsideForeignContent(t){switch(this.insertionMode){case W.INITIAL:{Wd(this,t);break}case W.BEFORE_HTML:{yae(this,t);break}case W.BEFORE_HEAD:{bae(this,t);break}case W.IN_HEAD:{xo(this,t);break}case W.IN_HEAD_NO_SCRIPT:{Sae(this,t);break}case W.AFTER_HEAD:{Cae(this,t);break}case W.IN_BODY:{Ur(this,t);break}case W.IN_TABLE:{hu(this,t);break}case W.IN_TABLE_TEXT:{Yd(this,t);break}case W.IN_CAPTION:{Eoe(this,t);break}case W.IN_COLUMN_GROUP:{u_(this,t);break}case W.IN_TABLE_BODY:{Ky(this,t);break}case W.IN_ROW:{Xy(this,t);break}case W.IN_CELL:{_oe(this,t);break}case W.IN_SELECT:{$4(this,t);break}case W.IN_SELECT_IN_TABLE:{Aoe(this,t);break}case W.IN_TEMPLATE:{woe(this,t);break}case W.AFTER_BODY:{koe(this,t);break}case W.IN_FRAMESET:{Roe(this,t);break}case W.AFTER_FRAMESET:{Ioe(this,t);break}case W.AFTER_AFTER_BODY:{Loe(this,t);break}case W.AFTER_AFTER_FRAMESET:{Poe(this,t);break}}}onEndTag(t){this.skipNextNewLine=!1,this.currentToken=t,this.currentNotInHTML?Boe(this,t):this._endTagOutsideForeignContent(t)}_endTagOutsideForeignContent(t){switch(this.insertionMode){case W.INITIAL:{Wd(this,t);break}case W.BEFORE_HTML:{vae(this,t);break}case W.BEFORE_HEAD:{Eae(this,t);break}case W.IN_HEAD:{Tae(this,t);break}case W.IN_HEAD_NO_SCRIPT:{_ae(this,t);break}case W.AFTER_HEAD:{Aae(this,t);break}case W.IN_BODY:{Qy(this,t);break}case W.TEXT:{uoe(this,t);break}case W.IN_TABLE:{ap(this,t);break}case W.IN_TABLE_TEXT:{Yd(this,t);break}case W.IN_CAPTION:{Toe(this,t);break}case W.IN_COLUMN_GROUP:{Soe(this,t);break}case W.IN_TABLE_BODY:{eT(this,t);break}case W.IN_ROW:{M4(this,t);break}case W.IN_CELL:{Coe(this,t);break}case W.IN_SELECT:{F4(this,t);break}case W.IN_SELECT_IN_TABLE:{xoe(this,t);break}case W.IN_TEMPLATE:{Doe(this,t);break}case W.AFTER_BODY:{U4(this,t);break}case W.IN_FRAMESET:{Ooe(this,t);break}case W.AFTER_FRAMESET:{Noe(this,t);break}case W.AFTER_AFTER_BODY:{Zm(this,t);break}}}onEof(t){switch(this.insertionMode){case W.INITIAL:{Wd(this,t);break}case W.BEFORE_HTML:{Cf(this,t);break}case W.BEFORE_HEAD:{Af(this,t);break}case W.IN_HEAD:{xf(this,t);break}case W.IN_HEAD_NO_SCRIPT:{wf(this,t);break}case W.AFTER_HEAD:{Df(this,t);break}case W.IN_BODY:case W.IN_TABLE:case W.IN_CAPTION:case W.IN_COLUMN_GROUP:case W.IN_TABLE_BODY:case W.IN_ROW:case W.IN_CELL:case W.IN_SELECT:case W.IN_SELECT_IN_TABLE:{I4(this,t);break}case W.TEXT:{doe(this,t);break}case W.IN_TABLE_TEXT:{Yd(this,t);break}case W.IN_TEMPLATE:{B4(this,t);break}case W.AFTER_BODY:case W.IN_FRAMESET:case W.AFTER_FRAMESET:case W.AFTER_AFTER_BODY:case W.AFTER_AFTER_FRAMESET:{c_(this,t);break}}}onWhitespaceCharacter(t){if(this.skipNextNewLine&&(this.skipNextNewLine=!1,t.chars.charCodeAt(0)===H.LINE_FEED)){if(t.chars.length===1)return;t.chars=t.chars.substr(1)}if(this.tokenizer.inForeignNode){this._insertCharacters(t);return}switch(this.insertionMode){case W.IN_HEAD:case W.IN_HEAD_NO_SCRIPT:case W.AFTER_HEAD:case W.TEXT:case W.IN_COLUMN_GROUP:case W.IN_SELECT:case W.IN_SELECT_IN_TABLE:case W.IN_FRAMESET:case W.AFTER_FRAMESET:{this._insertCharacters(t);break}case W.IN_BODY:case W.IN_CAPTION:case W.IN_CELL:case W.IN_TEMPLATE:case W.AFTER_BODY:case W.AFTER_AFTER_BODY:case W.AFTER_AFTER_FRAMESET:{w4(this,t);break}case W.IN_TABLE:case W.IN_TABLE_BODY:case W.IN_ROW:{Eb(this,t);break}case W.IN_TABLE_TEXT:{N4(this,t);break}}}}function lae(e,t){let n=e.activeFormattingElements.getElementEntryInScopeWithTagName(t.tagName);return n?e.openElements.contains(n.element)?e.openElements.hasInScope(t.tagID)||(n=null):(e.activeFormattingElements.removeEntry(n),n=null):O4(e,t),n}function cae(e,t){let n=null,r=e.openElements.stackTop;for(;r>=0;r--){const a=e.openElements.items[r];if(a===t.element)break;e._isSpecialElement(a,e.openElements.tagIDs[r])&&(n=a)}return n||(e.openElements.shortenToLength(Math.max(r,0)),e.activeFormattingElements.removeEntry(t)),n}function uae(e,t,n){let r=t,a=e.openElements.getCommonAncestor(t);for(let o=0,s=a;s!==n;o++,s=a){a=e.openElements.getCommonAncestor(s);const c=e.activeFormattingElements.getElementEntry(s),u=c&&o>=iae;!c||u?(u&&e.activeFormattingElements.removeEntry(c),e.openElements.remove(s)):(s=dae(e,c),r===t&&(e.activeFormattingElements.bookmark=c),e.treeAdapter.detachNode(r),e.treeAdapter.appendChild(s,r),r=s)}return r}function dae(e,t){const n=e.treeAdapter.getNamespaceURI(t.element),r=e.treeAdapter.createElement(t.token.tagName,n,t.token.attrs);return e.openElements.replace(t.element,r),t.element=r,r}function fae(e,t,n){const r=e.treeAdapter.getTagName(t),a=wu(r);if(e._isElementCausesFosterParenting(a))e._fosterParentElement(n);else{const o=e.treeAdapter.getNamespaceURI(t);a===C.TEMPLATE&&o===Re.HTML&&(t=e.treeAdapter.getTemplateContent(t)),e.treeAdapter.appendChild(t,n)}}function pae(e,t,n){const r=e.treeAdapter.getNamespaceURI(n.element),{token:a}=n,o=e.treeAdapter.createElement(a.tagName,r,a.attrs);e._adoptNodes(t,o),e.treeAdapter.appendChild(t,o),e.activeFormattingElements.insertElementAfterBookmark(o,a),e.activeFormattingElements.removeEntry(n),e.openElements.remove(n.element),e.openElements.insertAfter(t,o,a.tagID)}function l_(e,t){for(let n=0;n<oae;n++){const r=lae(e,t);if(!r)break;const a=cae(e,r);if(!a)break;e.activeFormattingElements.bookmark=r;const o=uae(e,a,r.element),s=e.openElements.getCommonAncestor(r.element);e.treeAdapter.detachNode(o),s&&fae(e,s,o),pae(e,a,r)}}function JE(e,t){e._appendCommentNode(t,e.openElements.currentTmplContentOrNode)}function hae(e,t){e._appendCommentNode(t,e.openElements.items[0])}function mae(e,t){e._appendCommentNode(t,e.document)}function c_(e,t){if(e.stopped=!0,t.location){const n=e.fragmentContext?0:2;for(let r=e.openElements.stackTop;r>=n;r--)e._setEndLocation(e.openElements.items[r],t);if(!e.fragmentContext&&e.openElements.stackTop>=0){const r=e.openElements.items[0],a=e.treeAdapter.getNodeSourceCodeLocation(r);if(a&&!a.endTag&&(e._setEndLocation(r,t),e.openElements.stackTop>=1)){const o=e.openElements.items[1],s=e.treeAdapter.getNodeSourceCodeLocation(o);s&&!s.endTag&&e._setEndLocation(o,t)}}}}function gae(e,t){e._setDocumentType(t);const n=t.forceQuirks?no.QUIRKS:qre(t);Gre(t)||e._err(t,ve.nonConformingDoctype),e.treeAdapter.setDocumentMode(e.document,n),e.insertionMode=W.BEFORE_HTML}function Wd(e,t){e._err(t,ve.missingDoctype,!0),e.treeAdapter.setDocumentMode(e.document,no.QUIRKS),e.insertionMode=W.BEFORE_HTML,e._processToken(t)}function yae(e,t){t.tagID===C.HTML?(e._insertElement(t,Re.HTML),e.insertionMode=W.BEFORE_HEAD):Cf(e,t)}function vae(e,t){const n=t.tagID;(n===C.HTML||n===C.HEAD||n===C.BODY||n===C.BR)&&Cf(e,t)}function Cf(e,t){e._insertFakeRootElement(),e.insertionMode=W.BEFORE_HEAD,e._processToken(t)}function bae(e,t){switch(t.tagID){case C.HTML:{Ur(e,t);break}case C.HEAD:{e._insertElement(t,Re.HTML),e.headElement=e.openElements.current,e.insertionMode=W.IN_HEAD;break}default:Af(e,t)}}function Eae(e,t){const n=t.tagID;n===C.HEAD||n===C.BODY||n===C.HTML||n===C.BR?Af(e,t):e._err(t,ve.endTagWithoutMatchingOpenElement)}function Af(e,t){e._insertFakeElement(le.HEAD,C.HEAD),e.headElement=e.openElements.current,e.insertionMode=W.IN_HEAD,e._processToken(t)}function xo(e,t){switch(t.tagID){case C.HTML:{Ur(e,t);break}case C.BASE:case C.BASEFONT:case C.BGSOUND:case C.LINK:case C.META:{e._appendElement(t,Re.HTML),t.ackSelfClosing=!0;break}case C.TITLE:{e._switchToTextParsing(t,er.RCDATA);break}case C.NOSCRIPT:{e.options.scriptingEnabled?e._switchToTextParsing(t,er.RAWTEXT):(e._insertElement(t,Re.HTML),e.insertionMode=W.IN_HEAD_NO_SCRIPT);break}case C.NOFRAMES:case C.STYLE:{e._switchToTextParsing(t,er.RAWTEXT);break}case C.SCRIPT:{e._switchToTextParsing(t,er.SCRIPT_DATA);break}case C.TEMPLATE:{e._insertTemplate(t),e.activeFormattingElements.insertMarker(),e.framesetOk=!1,e.insertionMode=W.IN_TEMPLATE,e.tmplInsertionModeStack.unshift(W.IN_TEMPLATE);break}case C.HEAD:{e._err(t,ve.misplacedStartTagForHeadElement);break}default:xf(e,t)}}function Tae(e,t){switch(t.tagID){case C.HEAD:{e.openElements.pop(),e.insertionMode=W.AFTER_HEAD;break}case C.BODY:case C.BR:case C.HTML:{xf(e,t);break}case C.TEMPLATE:{Hl(e,t);break}default:e._err(t,ve.endTagWithoutMatchingOpenElement)}}function Hl(e,t){e.openElements.tmplCount>0?(e.openElements.generateImpliedEndTagsThoroughly(),e.openElements.currentTagId!==C.TEMPLATE&&e._err(t,ve.closingOfElementWithOpenChildElements),e.openElements.popUntilTagNamePopped(C.TEMPLATE),e.activeFormattingElements.clearToLastMarker(),e.tmplInsertionModeStack.shift(),e._resetInsertionMode()):e._err(t,ve.endTagWithoutMatchingOpenElement)}function xf(e,t){e.openElements.pop(),e.insertionMode=W.AFTER_HEAD,e._processToken(t)}function Sae(e,t){switch(t.tagID){case C.HTML:{Ur(e,t);break}case C.BASEFONT:case C.BGSOUND:case C.HEAD:case C.LINK:case C.META:case C.NOFRAMES:case C.STYLE:{xo(e,t);break}case C.NOSCRIPT:{e._err(t,ve.nestedNoscriptInHead);break}default:wf(e,t)}}function _ae(e,t){switch(t.tagID){case C.NOSCRIPT:{e.openElements.pop(),e.insertionMode=W.IN_HEAD;break}case C.BR:{wf(e,t);break}default:e._err(t,ve.endTagWithoutMatchingOpenElement)}}function wf(e,t){const n=t.type===$t.EOF?ve.openElementsLeftAfterEof:ve.disallowedContentInNoscriptInHead;e._err(t,n),e.openElements.pop(),e.insertionMode=W.IN_HEAD,e._processToken(t)}function Cae(e,t){switch(t.tagID){case C.HTML:{Ur(e,t);break}case C.BODY:{e._insertElement(t,Re.HTML),e.framesetOk=!1,e.insertionMode=W.IN_BODY;break}case C.FRAMESET:{e._insertElement(t,Re.HTML),e.insertionMode=W.IN_FRAMESET;break}case C.BASE:case C.BASEFONT:case C.BGSOUND:case C.LINK:case C.META:case C.NOFRAMES:case C.SCRIPT:case C.STYLE:case C.TEMPLATE:case C.TITLE:{e._err(t,ve.abandonedHeadElementChild),e.openElements.push(e.headElement,C.HEAD),xo(e,t),e.openElements.remove(e.headElement);break}case C.HEAD:{e._err(t,ve.misplacedStartTagForHeadElement);break}default:Df(e,t)}}function Aae(e,t){switch(t.tagID){case C.BODY:case C.HTML:case C.BR:{Df(e,t);break}case C.TEMPLATE:{Hl(e,t);break}default:e._err(t,ve.endTagWithoutMatchingOpenElement)}}function Df(e,t){e._insertFakeElement(le.BODY,C.BODY),e.insertionMode=W.IN_BODY,Yy(e,t)}function Yy(e,t){switch(t.type){case $t.CHARACTER:{D4(e,t);break}case $t.WHITESPACE_CHARACTER:{w4(e,t);break}case $t.COMMENT:{JE(e,t);break}case $t.START_TAG:{Ur(e,t);break}case $t.END_TAG:{Qy(e,t);break}case $t.EOF:{I4(e,t);break}}}function w4(e,t){e._reconstructActiveFormattingElements(),e._insertCharacters(t)}function D4(e,t){e._reconstructActiveFormattingElements(),e._insertCharacters(t),e.framesetOk=!1}function xae(e,t){e.openElements.tmplCount===0&&e.treeAdapter.adoptAttributes(e.openElements.items[0],t.attrs)}function wae(e,t){const n=e.openElements.tryPeekProperlyNestedBodyElement();n&&e.openElements.tmplCount===0&&(e.framesetOk=!1,e.treeAdapter.adoptAttributes(n,t.attrs))}function Dae(e,t){const n=e.openElements.tryPeekProperlyNestedBodyElement();e.framesetOk&&n&&(e.treeAdapter.detachNode(n),e.openElements.popAllUpToHtmlElement(),e._insertElement(t,Re.HTML),e.insertionMode=W.IN_FRAMESET)}function kae(e,t){e.openElements.hasInButtonScope(C.P)&&e._closePElement(),e._insertElement(t,Re.HTML)}function Rae(e,t){e.openElements.hasInButtonScope(C.P)&&e._closePElement(),e.openElements.currentTagId!==void 0&&ZE.has(e.openElements.currentTagId)&&e.openElements.pop(),e._insertElement(t,Re.HTML)}function Oae(e,t){e.openElements.hasInButtonScope(C.P)&&e._closePElement(),e._insertElement(t,Re.HTML),e.skipNextNewLine=!0,e.framesetOk=!1}function Iae(e,t){const n=e.openElements.tmplCount>0;(!e.formElement||n)&&(e.openElements.hasInButtonScope(C.P)&&e._closePElement(),e._insertElement(t,Re.HTML),n||(e.formElement=e.openElements.current))}function Nae(e,t){e.framesetOk=!1;const n=t.tagID;for(let r=e.openElements.stackTop;r>=0;r--){const a=e.openElements.tagIDs[r];if(n===C.LI&&a===C.LI||(n===C.DD||n===C.DT)&&(a===C.DD||a===C.DT)){e.openElements.generateImpliedEndTagsWithExclusion(a),e.openElements.popUntilTagNamePopped(a);break}if(a!==C.ADDRESS&&a!==C.DIV&&a!==C.P&&e._isSpecialElement(e.openElements.items[r],a))break}e.openElements.hasInButtonScope(C.P)&&e._closePElement(),e._insertElement(t,Re.HTML)}function Lae(e,t){e.openElements.hasInButtonScope(C.P)&&e._closePElement(),e._insertElement(t,Re.HTML),e.tokenizer.state=er.PLAINTEXT}function Pae(e,t){e.openElements.hasInScope(C.BUTTON)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(C.BUTTON)),e._reconstructActiveFormattingElements(),e._insertElement(t,Re.HTML),e.framesetOk=!1}function Mae(e,t){const n=e.activeFormattingElements.getElementEntryInScopeWithTagName(le.A);n&&(l_(e,t),e.openElements.remove(n.element),e.activeFormattingElements.removeEntry(n)),e._reconstructActiveFormattingElements(),e._insertElement(t,Re.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}function $ae(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,Re.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}function Fae(e,t){e._reconstructActiveFormattingElements(),e.openElements.hasInScope(C.NOBR)&&(l_(e,t),e._reconstructActiveFormattingElements()),e._insertElement(t,Re.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}function Bae(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,Re.HTML),e.activeFormattingElements.insertMarker(),e.framesetOk=!1}function Uae(e,t){e.treeAdapter.getDocumentMode(e.document)!==no.QUIRKS&&e.openElements.hasInButtonScope(C.P)&&e._closePElement(),e._insertElement(t,Re.HTML),e.framesetOk=!1,e.insertionMode=W.IN_TABLE}function k4(e,t){e._reconstructActiveFormattingElements(),e._appendElement(t,Re.HTML),e.framesetOk=!1,t.ackSelfClosing=!0}function R4(e){const t=v4(e,Al.TYPE);return t!=null&&t.toLowerCase()===aae}function jae(e,t){e._reconstructActiveFormattingElements(),e._appendElement(t,Re.HTML),R4(t)||(e.framesetOk=!1),t.ackSelfClosing=!0}function Hae(e,t){e._appendElement(t,Re.HTML),t.ackSelfClosing=!0}function zae(e,t){e.openElements.hasInButtonScope(C.P)&&e._closePElement(),e._appendElement(t,Re.HTML),e.framesetOk=!1,t.ackSelfClosing=!0}function Vae(e,t){t.tagName=le.IMG,t.tagID=C.IMG,k4(e,t)}function Gae(e,t){e._insertElement(t,Re.HTML),e.skipNextNewLine=!0,e.tokenizer.state=er.RCDATA,e.originalInsertionMode=e.insertionMode,e.framesetOk=!1,e.insertionMode=W.TEXT}function qae(e,t){e.openElements.hasInButtonScope(C.P)&&e._closePElement(),e._reconstructActiveFormattingElements(),e.framesetOk=!1,e._switchToTextParsing(t,er.RAWTEXT)}function Wae(e,t){e.framesetOk=!1,e._switchToTextParsing(t,er.RAWTEXT)}function sR(e,t){e._switchToTextParsing(t,er.RAWTEXT)}function Yae(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,Re.HTML),e.framesetOk=!1,e.insertionMode=e.insertionMode===W.IN_TABLE||e.insertionMode===W.IN_CAPTION||e.insertionMode===W.IN_TABLE_BODY||e.insertionMode===W.IN_ROW||e.insertionMode===W.IN_CELL?W.IN_SELECT_IN_TABLE:W.IN_SELECT}function Qae(e,t){e.openElements.currentTagId===C.OPTION&&e.openElements.pop(),e._reconstructActiveFormattingElements(),e._insertElement(t,Re.HTML)}function Kae(e,t){e.openElements.hasInScope(C.RUBY)&&e.openElements.generateImpliedEndTags(),e._insertElement(t,Re.HTML)}function Xae(e,t){e.openElements.hasInScope(C.RUBY)&&e.openElements.generateImpliedEndTagsWithExclusion(C.RTC),e._insertElement(t,Re.HTML)}function Zae(e,t){e._reconstructActiveFormattingElements(),C4(t),s_(t),t.selfClosing?e._appendElement(t,Re.MATHML):e._insertElement(t,Re.MATHML),t.ackSelfClosing=!0}function Jae(e,t){e._reconstructActiveFormattingElements(),A4(t),s_(t),t.selfClosing?e._appendElement(t,Re.SVG):e._insertElement(t,Re.SVG),t.ackSelfClosing=!0}function lR(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,Re.HTML)}function Ur(e,t){switch(t.tagID){case C.I:case C.S:case C.B:case C.U:case C.EM:case C.TT:case C.BIG:case C.CODE:case C.FONT:case C.SMALL:case C.STRIKE:case C.STRONG:{$ae(e,t);break}case C.A:{Mae(e,t);break}case C.H1:case C.H2:case C.H3:case C.H4:case C.H5:case C.H6:{Rae(e,t);break}case C.P:case C.DL:case C.OL:case C.UL:case C.DIV:case C.DIR:case C.NAV:case C.MAIN:case C.MENU:case C.ASIDE:case C.CENTER:case C.FIGURE:case C.FOOTER:case C.HEADER:case C.HGROUP:case C.DIALOG:case C.DETAILS:case C.ADDRESS:case C.ARTICLE:case C.SEARCH:case C.SECTION:case C.SUMMARY:case C.FIELDSET:case C.BLOCKQUOTE:case C.FIGCAPTION:{kae(e,t);break}case C.LI:case C.DD:case C.DT:{Nae(e,t);break}case C.BR:case C.IMG:case C.WBR:case C.AREA:case C.EMBED:case C.KEYGEN:{k4(e,t);break}case C.HR:{zae(e,t);break}case C.RB:case C.RTC:{Kae(e,t);break}case C.RT:case C.RP:{Xae(e,t);break}case C.PRE:case C.LISTING:{Oae(e,t);break}case C.XMP:{qae(e,t);break}case C.SVG:{Jae(e,t);break}case C.HTML:{xae(e,t);break}case C.BASE:case C.LINK:case C.META:case C.STYLE:case C.TITLE:case C.SCRIPT:case C.BGSOUND:case C.BASEFONT:case C.TEMPLATE:{xo(e,t);break}case C.BODY:{wae(e,t);break}case C.FORM:{Iae(e,t);break}case C.NOBR:{Fae(e,t);break}case C.MATH:{Zae(e,t);break}case C.TABLE:{Uae(e,t);break}case C.INPUT:{jae(e,t);break}case C.PARAM:case C.TRACK:case C.SOURCE:{Hae(e,t);break}case C.IMAGE:{Vae(e,t);break}case C.BUTTON:{Pae(e,t);break}case C.APPLET:case C.OBJECT:case C.MARQUEE:{Bae(e,t);break}case C.IFRAME:{Wae(e,t);break}case C.SELECT:{Yae(e,t);break}case C.OPTION:case C.OPTGROUP:{Qae(e,t);break}case C.NOEMBED:case C.NOFRAMES:{sR(e,t);break}case C.FRAMESET:{Dae(e,t);break}case C.TEXTAREA:{Gae(e,t);break}case C.NOSCRIPT:{e.options.scriptingEnabled?sR(e,t):lR(e,t);break}case C.PLAINTEXT:{Lae(e,t);break}case C.COL:case C.TH:case C.TD:case C.TR:case C.HEAD:case C.FRAME:case C.TBODY:case C.TFOOT:case C.THEAD:case C.CAPTION:case C.COLGROUP:break;default:lR(e,t)}}function eoe(e,t){if(e.openElements.hasInScope(C.BODY)&&(e.insertionMode=W.AFTER_BODY,e.options.sourceCodeLocationInfo)){const n=e.openElements.tryPeekProperlyNestedBodyElement();n&&e._setEndLocation(n,t)}}function toe(e,t){e.openElements.hasInScope(C.BODY)&&(e.insertionMode=W.AFTER_BODY,U4(e,t))}function noe(e,t){const n=t.tagID;e.openElements.hasInScope(n)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(n))}function roe(e){const t=e.openElements.tmplCount>0,{formElement:n}=e;t||(e.formElement=null),(n||t)&&e.openElements.hasInScope(C.FORM)&&(e.openElements.generateImpliedEndTags(),t?e.openElements.popUntilTagNamePopped(C.FORM):n&&e.openElements.remove(n))}function aoe(e){e.openElements.hasInButtonScope(C.P)||e._insertFakeElement(le.P,C.P),e._closePElement()}function ooe(e){e.openElements.hasInListItemScope(C.LI)&&(e.openElements.generateImpliedEndTagsWithExclusion(C.LI),e.openElements.popUntilTagNamePopped(C.LI))}function ioe(e,t){const n=t.tagID;e.openElements.hasInScope(n)&&(e.openElements.generateImpliedEndTagsWithExclusion(n),e.openElements.popUntilTagNamePopped(n))}function soe(e){e.openElements.hasNumberedHeaderInScope()&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilNumberedHeaderPopped())}function loe(e,t){const n=t.tagID;e.openElements.hasInScope(n)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(n),e.activeFormattingElements.clearToLastMarker())}function coe(e){e._reconstructActiveFormattingElements(),e._insertFakeElement(le.BR,C.BR),e.openElements.pop(),e.framesetOk=!1}function O4(e,t){const n=t.tagName,r=t.tagID;for(let a=e.openElements.stackTop;a>0;a--){const o=e.openElements.items[a],s=e.openElements.tagIDs[a];if(r===s&&(r!==C.UNKNOWN||e.treeAdapter.getTagName(o)===n)){e.openElements.generateImpliedEndTagsWithExclusion(r),e.openElements.stackTop>=a&&e.openElements.shortenToLength(a);break}if(e._isSpecialElement(o,s))break}}function Qy(e,t){switch(t.tagID){case C.A:case C.B:case C.I:case C.S:case C.U:case C.EM:case C.TT:case C.BIG:case C.CODE:case C.FONT:case C.NOBR:case C.SMALL:case C.STRIKE:case C.STRONG:{l_(e,t);break}case C.P:{aoe(e);break}case C.DL:case C.UL:case C.OL:case C.DIR:case C.DIV:case C.NAV:case C.PRE:case C.MAIN:case C.MENU:case C.ASIDE:case C.BUTTON:case C.CENTER:case C.FIGURE:case C.FOOTER:case C.HEADER:case C.HGROUP:case C.DIALOG:case C.ADDRESS:case C.ARTICLE:case C.DETAILS:case C.SEARCH:case C.SECTION:case C.SUMMARY:case C.LISTING:case C.FIELDSET:case C.BLOCKQUOTE:case C.FIGCAPTION:{noe(e,t);break}case C.LI:{ooe(e);break}case C.DD:case C.DT:{ioe(e,t);break}case C.H1:case C.H2:case C.H3:case C.H4:case C.H5:case C.H6:{soe(e);break}case C.BR:{coe(e);break}case C.BODY:{eoe(e,t);break}case C.HTML:{toe(e,t);break}case C.FORM:{roe(e);break}case C.APPLET:case C.OBJECT:case C.MARQUEE:{loe(e,t);break}case C.TEMPLATE:{Hl(e,t);break}default:O4(e,t)}}function I4(e,t){e.tmplInsertionModeStack.length>0?B4(e,t):c_(e,t)}function uoe(e,t){var n;t.tagID===C.SCRIPT&&((n=e.scriptHandler)===null||n===void 0||n.call(e,e.openElements.current)),e.openElements.pop(),e.insertionMode=e.originalInsertionMode}function doe(e,t){e._err(t,ve.eofInElementThatCanContainOnlyText),e.openElements.pop(),e.insertionMode=e.originalInsertionMode,e.onEof(t)}function Eb(e,t){if(e.openElements.currentTagId!==void 0&&x4.has(e.openElements.currentTagId))switch(e.pendingCharacterTokens.length=0,e.hasNonWhitespacePendingCharacterToken=!1,e.originalInsertionMode=e.insertionMode,e.insertionMode=W.IN_TABLE_TEXT,t.type){case $t.CHARACTER:{L4(e,t);break}case $t.WHITESPACE_CHARACTER:{N4(e,t);break}}else Hp(e,t)}function foe(e,t){e.openElements.clearBackToTableContext(),e.activeFormattingElements.insertMarker(),e._insertElement(t,Re.HTML),e.insertionMode=W.IN_CAPTION}function poe(e,t){e.openElements.clearBackToTableContext(),e._insertElement(t,Re.HTML),e.insertionMode=W.IN_COLUMN_GROUP}function hoe(e,t){e.openElements.clearBackToTableContext(),e._insertFakeElement(le.COLGROUP,C.COLGROUP),e.insertionMode=W.IN_COLUMN_GROUP,u_(e,t)}function moe(e,t){e.openElements.clearBackToTableContext(),e._insertElement(t,Re.HTML),e.insertionMode=W.IN_TABLE_BODY}function goe(e,t){e.openElements.clearBackToTableContext(),e._insertFakeElement(le.TBODY,C.TBODY),e.insertionMode=W.IN_TABLE_BODY,Ky(e,t)}function yoe(e,t){e.openElements.hasInTableScope(C.TABLE)&&(e.openElements.popUntilTagNamePopped(C.TABLE),e._resetInsertionMode(),e._processStartTag(t))}function voe(e,t){R4(t)?e._appendElement(t,Re.HTML):Hp(e,t),t.ackSelfClosing=!0}function boe(e,t){!e.formElement&&e.openElements.tmplCount===0&&(e._insertElement(t,Re.HTML),e.formElement=e.openElements.current,e.openElements.pop())}function hu(e,t){switch(t.tagID){case C.TD:case C.TH:case C.TR:{goe(e,t);break}case C.STYLE:case C.SCRIPT:case C.TEMPLATE:{xo(e,t);break}case C.COL:{hoe(e,t);break}case C.FORM:{boe(e,t);break}case C.TABLE:{yoe(e,t);break}case C.TBODY:case C.TFOOT:case C.THEAD:{moe(e,t);break}case C.INPUT:{voe(e,t);break}case C.CAPTION:{foe(e,t);break}case C.COLGROUP:{poe(e,t);break}default:Hp(e,t)}}function ap(e,t){switch(t.tagID){case C.TABLE:{e.openElements.hasInTableScope(C.TABLE)&&(e.openElements.popUntilTagNamePopped(C.TABLE),e._resetInsertionMode());break}case C.TEMPLATE:{Hl(e,t);break}case C.BODY:case C.CAPTION:case C.COL:case C.COLGROUP:case C.HTML:case C.TBODY:case C.TD:case C.TFOOT:case C.TH:case C.THEAD:case C.TR:break;default:Hp(e,t)}}function Hp(e,t){const n=e.fosterParentingEnabled;e.fosterParentingEnabled=!0,Yy(e,t),e.fosterParentingEnabled=n}function N4(e,t){e.pendingCharacterTokens.push(t)}function L4(e,t){e.pendingCharacterTokens.push(t),e.hasNonWhitespacePendingCharacterToken=!0}function Yd(e,t){let n=0;if(e.hasNonWhitespacePendingCharacterToken)for(;n<e.pendingCharacterTokens.length;n++)Hp(e,e.pendingCharacterTokens[n]);else for(;n<e.pendingCharacterTokens.length;n++)e._insertCharacters(e.pendingCharacterTokens[n]);e.insertionMode=e.originalInsertionMode,e._processToken(t)}const P4=new Set([C.CAPTION,C.COL,C.COLGROUP,C.TBODY,C.TD,C.TFOOT,C.TH,C.THEAD,C.TR]);function Eoe(e,t){const n=t.tagID;P4.has(n)?e.openElements.hasInTableScope(C.CAPTION)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(C.CAPTION),e.activeFormattingElements.clearToLastMarker(),e.insertionMode=W.IN_TABLE,hu(e,t)):Ur(e,t)}function Toe(e,t){const n=t.tagID;switch(n){case C.CAPTION:case C.TABLE:{e.openElements.hasInTableScope(C.CAPTION)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(C.CAPTION),e.activeFormattingElements.clearToLastMarker(),e.insertionMode=W.IN_TABLE,n===C.TABLE&&ap(e,t));break}case C.BODY:case C.COL:case C.COLGROUP:case C.HTML:case C.TBODY:case C.TD:case C.TFOOT:case C.TH:case C.THEAD:case C.TR:break;default:Qy(e,t)}}function u_(e,t){switch(t.tagID){case C.HTML:{Ur(e,t);break}case C.COL:{e._appendElement(t,Re.HTML),t.ackSelfClosing=!0;break}case C.TEMPLATE:{xo(e,t);break}default:Hg(e,t)}}function Soe(e,t){switch(t.tagID){case C.COLGROUP:{e.openElements.currentTagId===C.COLGROUP&&(e.openElements.pop(),e.insertionMode=W.IN_TABLE);break}case C.TEMPLATE:{Hl(e,t);break}case C.COL:break;default:Hg(e,t)}}function Hg(e,t){e.openElements.currentTagId===C.COLGROUP&&(e.openElements.pop(),e.insertionMode=W.IN_TABLE,e._processToken(t))}function Ky(e,t){switch(t.tagID){case C.TR:{e.openElements.clearBackToTableBodyContext(),e._insertElement(t,Re.HTML),e.insertionMode=W.IN_ROW;break}case C.TH:case C.TD:{e.openElements.clearBackToTableBodyContext(),e._insertFakeElement(le.TR,C.TR),e.insertionMode=W.IN_ROW,Xy(e,t);break}case C.CAPTION:case C.COL:case C.COLGROUP:case C.TBODY:case C.TFOOT:case C.THEAD:{e.openElements.hasTableBodyContextInTableScope()&&(e.openElements.clearBackToTableBodyContext(),e.openElements.pop(),e.insertionMode=W.IN_TABLE,hu(e,t));break}default:hu(e,t)}}function eT(e,t){const n=t.tagID;switch(t.tagID){case C.TBODY:case C.TFOOT:case C.THEAD:{e.openElements.hasInTableScope(n)&&(e.openElements.clearBackToTableBodyContext(),e.openElements.pop(),e.insertionMode=W.IN_TABLE);break}case C.TABLE:{e.openElements.hasTableBodyContextInTableScope()&&(e.openElements.clearBackToTableBodyContext(),e.openElements.pop(),e.insertionMode=W.IN_TABLE,ap(e,t));break}case C.BODY:case C.CAPTION:case C.COL:case C.COLGROUP:case C.HTML:case C.TD:case C.TH:case C.TR:break;default:ap(e,t)}}function Xy(e,t){switch(t.tagID){case C.TH:case C.TD:{e.openElements.clearBackToTableRowContext(),e._insertElement(t,Re.HTML),e.insertionMode=W.IN_CELL,e.activeFormattingElements.insertMarker();break}case C.CAPTION:case C.COL:case C.COLGROUP:case C.TBODY:case C.TFOOT:case C.THEAD:case C.TR:{e.openElements.hasInTableScope(C.TR)&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=W.IN_TABLE_BODY,Ky(e,t));break}default:hu(e,t)}}function M4(e,t){switch(t.tagID){case C.TR:{e.openElements.hasInTableScope(C.TR)&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=W.IN_TABLE_BODY);break}case C.TABLE:{e.openElements.hasInTableScope(C.TR)&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=W.IN_TABLE_BODY,eT(e,t));break}case C.TBODY:case C.TFOOT:case C.THEAD:{(e.openElements.hasInTableScope(t.tagID)||e.openElements.hasInTableScope(C.TR))&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=W.IN_TABLE_BODY,eT(e,t));break}case C.BODY:case C.CAPTION:case C.COL:case C.COLGROUP:case C.HTML:case C.TD:case C.TH:break;default:ap(e,t)}}function _oe(e,t){const n=t.tagID;P4.has(n)?(e.openElements.hasInTableScope(C.TD)||e.openElements.hasInTableScope(C.TH))&&(e._closeTableCell(),Xy(e,t)):Ur(e,t)}function Coe(e,t){const n=t.tagID;switch(n){case C.TD:case C.TH:{e.openElements.hasInTableScope(n)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(n),e.activeFormattingElements.clearToLastMarker(),e.insertionMode=W.IN_ROW);break}case C.TABLE:case C.TBODY:case C.TFOOT:case C.THEAD:case C.TR:{e.openElements.hasInTableScope(n)&&(e._closeTableCell(),M4(e,t));break}case C.BODY:case C.CAPTION:case C.COL:case C.COLGROUP:case C.HTML:break;default:Qy(e,t)}}function $4(e,t){switch(t.tagID){case C.HTML:{Ur(e,t);break}case C.OPTION:{e.openElements.currentTagId===C.OPTION&&e.openElements.pop(),e._insertElement(t,Re.HTML);break}case C.OPTGROUP:{e.openElements.currentTagId===C.OPTION&&e.openElements.pop(),e.openElements.currentTagId===C.OPTGROUP&&e.openElements.pop(),e._insertElement(t,Re.HTML);break}case C.HR:{e.openElements.currentTagId===C.OPTION&&e.openElements.pop(),e.openElements.currentTagId===C.OPTGROUP&&e.openElements.pop(),e._appendElement(t,Re.HTML),t.ackSelfClosing=!0;break}case C.INPUT:case C.KEYGEN:case C.TEXTAREA:case C.SELECT:{e.openElements.hasInSelectScope(C.SELECT)&&(e.openElements.popUntilTagNamePopped(C.SELECT),e._resetInsertionMode(),t.tagID!==C.SELECT&&e._processStartTag(t));break}case C.SCRIPT:case C.TEMPLATE:{xo(e,t);break}}}function F4(e,t){switch(t.tagID){case C.OPTGROUP:{e.openElements.stackTop>0&&e.openElements.currentTagId===C.OPTION&&e.openElements.tagIDs[e.openElements.stackTop-1]===C.OPTGROUP&&e.openElements.pop(),e.openElements.currentTagId===C.OPTGROUP&&e.openElements.pop();break}case C.OPTION:{e.openElements.currentTagId===C.OPTION&&e.openElements.pop();break}case C.SELECT:{e.openElements.hasInSelectScope(C.SELECT)&&(e.openElements.popUntilTagNamePopped(C.SELECT),e._resetInsertionMode());break}case C.TEMPLATE:{Hl(e,t);break}}}function Aoe(e,t){const n=t.tagID;n===C.CAPTION||n===C.TABLE||n===C.TBODY||n===C.TFOOT||n===C.THEAD||n===C.TR||n===C.TD||n===C.TH?(e.openElements.popUntilTagNamePopped(C.SELECT),e._resetInsertionMode(),e._processStartTag(t)):$4(e,t)}function xoe(e,t){const n=t.tagID;n===C.CAPTION||n===C.TABLE||n===C.TBODY||n===C.TFOOT||n===C.THEAD||n===C.TR||n===C.TD||n===C.TH?e.openElements.hasInTableScope(n)&&(e.openElements.popUntilTagNamePopped(C.SELECT),e._resetInsertionMode(),e.onEndTag(t)):F4(e,t)}function woe(e,t){switch(t.tagID){case C.BASE:case C.BASEFONT:case C.BGSOUND:case C.LINK:case C.META:case C.NOFRAMES:case C.SCRIPT:case C.STYLE:case C.TEMPLATE:case C.TITLE:{xo(e,t);break}case C.CAPTION:case C.COLGROUP:case C.TBODY:case C.TFOOT:case C.THEAD:{e.tmplInsertionModeStack[0]=W.IN_TABLE,e.insertionMode=W.IN_TABLE,hu(e,t);break}case C.COL:{e.tmplInsertionModeStack[0]=W.IN_COLUMN_GROUP,e.insertionMode=W.IN_COLUMN_GROUP,u_(e,t);break}case C.TR:{e.tmplInsertionModeStack[0]=W.IN_TABLE_BODY,e.insertionMode=W.IN_TABLE_BODY,Ky(e,t);break}case C.TD:case C.TH:{e.tmplInsertionModeStack[0]=W.IN_ROW,e.insertionMode=W.IN_ROW,Xy(e,t);break}default:e.tmplInsertionModeStack[0]=W.IN_BODY,e.insertionMode=W.IN_BODY,Ur(e,t)}}function Doe(e,t){t.tagID===C.TEMPLATE&&Hl(e,t)}function B4(e,t){e.openElements.tmplCount>0?(e.openElements.popUntilTagNamePopped(C.TEMPLATE),e.activeFormattingElements.clearToLastMarker(),e.tmplInsertionModeStack.shift(),e._resetInsertionMode(),e.onEof(t)):c_(e,t)}function koe(e,t){t.tagID===C.HTML?Ur(e,t):zg(e,t)}function U4(e,t){var n;if(t.tagID===C.HTML){if(e.fragmentContext||(e.insertionMode=W.AFTER_AFTER_BODY),e.options.sourceCodeLocationInfo&&e.openElements.tagIDs[0]===C.HTML){e._setEndLocation(e.openElements.items[0],t);const r=e.openElements.items[1];r&&!(!((n=e.treeAdapter.getNodeSourceCodeLocation(r))===null||n===void 0)&&n.endTag)&&e._setEndLocation(r,t)}}else zg(e,t)}function zg(e,t){e.insertionMode=W.IN_BODY,Yy(e,t)}function Roe(e,t){switch(t.tagID){case C.HTML:{Ur(e,t);break}case C.FRAMESET:{e._insertElement(t,Re.HTML);break}case C.FRAME:{e._appendElement(t,Re.HTML),t.ackSelfClosing=!0;break}case C.NOFRAMES:{xo(e,t);break}}}function Ooe(e,t){t.tagID===C.FRAMESET&&!e.openElements.isRootHtmlElementCurrent()&&(e.openElements.pop(),!e.fragmentContext&&e.openElements.currentTagId!==C.FRAMESET&&(e.insertionMode=W.AFTER_FRAMESET))}function Ioe(e,t){switch(t.tagID){case C.HTML:{Ur(e,t);break}case C.NOFRAMES:{xo(e,t);break}}}function Noe(e,t){t.tagID===C.HTML&&(e.insertionMode=W.AFTER_AFTER_FRAMESET)}function Loe(e,t){t.tagID===C.HTML?Ur(e,t):Zm(e,t)}function Zm(e,t){e.insertionMode=W.IN_BODY,Yy(e,t)}function Poe(e,t){switch(t.tagID){case C.HTML:{Ur(e,t);break}case C.NOFRAMES:{xo(e,t);break}}}function Moe(e,t){t.chars=$n,e._insertCharacters(t)}function $oe(e,t){e._insertCharacters(t),e.framesetOk=!1}function j4(e){for(;e.treeAdapter.getNamespaceURI(e.openElements.current)!==Re.HTML&&e.openElements.currentTagId!==void 0&&!e._isIntegrationPoint(e.openElements.currentTagId,e.openElements.current);)e.openElements.pop()}function Foe(e,t){if(Jre(t))j4(e),e._startTagOutsideForeignContent(t);else{const n=e._getAdjustedCurrentElement(),r=e.treeAdapter.getNamespaceURI(n);r===Re.MATHML?C4(t):r===Re.SVG&&(eae(t),A4(t)),s_(t),t.selfClosing?e._appendElement(t,r):e._insertElement(t,r),t.ackSelfClosing=!0}}function Boe(e,t){if(t.tagID===C.P||t.tagID===C.BR){j4(e),e._endTagOutsideForeignContent(t);return}for(let n=e.openElements.stackTop;n>0;n--){const r=e.openElements.items[n];if(e.treeAdapter.getNamespaceURI(r)===Re.HTML){e._endTagOutsideForeignContent(t);break}const a=e.treeAdapter.getTagName(r);if(a.toLowerCase()===t.tagName){t.tagName=a,e.openElements.shortenToLength(n);break}}}le.AREA,le.BASE,le.BASEFONT,le.BGSOUND,le.BR,le.COL,le.EMBED,le.FRAME,le.HR,le.IMG,le.INPUT,le.KEYGEN,le.LINK,le.META,le.PARAM,le.SOURCE,le.TRACK,le.WBR;const bl={html:"http://www.w3.org/1999/xhtml",mathml:"http://www.w3.org/1998/Math/MathML",svg:"http://www.w3.org/2000/svg",xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"},cR=/[#.]/g;function Uoe(e,t){const n=e||"",r={};let a=0,o,s;for(;a<n.length;){cR.lastIndex=a;const c=cR.exec(n),u=n.slice(a,c?c.index:n.length);u&&(o?o==="#"?r.id=u:Array.isArray(r.className)?r.className.push(u):r.className=[u]:s=u,a+=u.length),c&&(o=c[0],a++)}return{type:"element",tagName:s||t||"div",properties:r,children:[]}}function H4(e,t,n){const r=n?Voe(n):void 0;function a(o,s,...c){let u;if(o==null){u={type:"root",children:[]};const d=s;c.unshift(d)}else{u=Uoe(o,t);const d=u.tagName.toLowerCase(),p=r?r.get(d):void 0;if(u.tagName=p||d,joe(s))c.unshift(s);else for(const[h,g]of Object.entries(s))Hoe(e,u.properties,h,g)}for(const d of c)tT(u.children,d);return u.type==="element"&&u.tagName==="template"&&(u.content={type:"root",children:u.children},u.children=[]),u}return a}function joe(e){if(e===null||typeof e!="object"||Array.isArray(e))return!0;if(typeof e.type!="string")return!1;const t=e,n=Object.keys(e);for(const r of n){const a=t[r];if(a&&typeof a=="object"){if(!Array.isArray(a))return!0;const o=a;for(const s of o)if(typeof s!="number"&&typeof s!="string")return!0}}return!!("children"in e&&Array.isArray(e.children))}function Hoe(e,t,n,r){const a=Pp(e,n);let o;if(r!=null){if(typeof r=="number"){if(Number.isNaN(r))return;o=r}else typeof r=="boolean"?o=r:typeof r=="string"?a.spaceSeparated?o=ME(r):a.commaSeparated?o=PE(r):a.commaOrSpaceSeparated?o=ME(PE(r).join(" ")):o=uR(a,a.property,r):Array.isArray(r)?o=[...r]:o=a.property==="style"?zoe(r):String(r);if(Array.isArray(o)){const s=[];for(const c of o)s.push(uR(a,a.property,c));o=s}a.property==="className"&&Array.isArray(t.className)&&(o=t.className.concat(o)),t[a.property]=o}}function tT(e,t){if(t!=null)if(typeof t=="number"||typeof t=="string")e.push({type:"text",value:String(t)});else if(Array.isArray(t))for(const n of t)tT(e,n);else if(typeof t=="object"&&"type"in t)t.type==="root"?tT(e,t.children):e.push(t);else throw new Error("Expected node, nodes, or string, got `"+t+"`")}function uR(e,t,n){if(typeof n=="string"){if(e.number&&n&&!Number.isNaN(Number(n)))return Number(n);if((e.boolean||e.overloadedBoolean)&&(n===""||Jf(n)===Jf(t)))return!0}return n}function zoe(e){const t=[];for(const[n,r]of Object.entries(e))t.push([n,r].join(": "));return t.join("; ")}function Voe(e){const t=new Map;for(const n of e)t.set(n.toLowerCase(),n);return t}const Goe=["altGlyph","altGlyphDef","altGlyphItem","animateColor","animateMotion","animateTransform","clipPath","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","foreignObject","glyphRef","linearGradient","radialGradient","solidColor","textArea","textPath"],qoe=H4(_u,"div"),Woe=H4(Bi,"g",Goe);function Yoe(e){const t=String(e),n=[];return{toOffset:a,toPoint:r};function r(o){if(typeof o=="number"&&o>-1&&o<=t.length){let s=0;for(;;){let c=n[s];if(c===void 0){const u=dR(t,n[s-1]);c=u===-1?t.length+1:u+1,n[s]=c}if(c>o)return{line:s+1,column:o-(s>0?n[s-1]:0)+1,offset:o};s++}}}function a(o){if(o&&typeof o.line=="number"&&typeof o.column=="number"&&!Number.isNaN(o.line)&&!Number.isNaN(o.column)){for(;n.length<o.line;){const c=n[n.length-1],u=dR(t,c),d=u===-1?t.length+1:u+1;if(c===d)break;n.push(d)}const s=(o.line>1?n[o.line-2]:0)+o.column-1;if(s<n[o.line-1])return s}}}function dR(e,t){const n=e.indexOf("\r",t),r=e.indexOf(`
273
+ `,t);return r===-1?n:n===-1||n+1===r?r:n<r?n:r}const z4={}.hasOwnProperty,Qoe=Object.prototype;function Koe(e,t){const n=t||{};return d_({file:n.file||void 0,location:!1,schema:n.space==="svg"?Bi:_u,verbose:n.verbose||!1},e)}function d_(e,t){let n;switch(t.nodeName){case"#comment":{const r=t;return n={type:"comment",value:r.data},Jm(e,r,n),n}case"#document":case"#document-fragment":{const r=t,a="mode"in r?r.mode==="quirks"||r.mode==="limited-quirks":!1;if(n={type:"root",children:V4(e,t.childNodes),data:{quirksMode:a}},e.file&&e.location){const o=String(e.file),s=Yoe(o),c=s.toPoint(0),u=s.toPoint(o.length);n.position={start:c,end:u}}return n}case"#documentType":{const r=t;return n={type:"doctype"},Jm(e,r,n),n}case"#text":{const r=t;return n={type:"text",value:r.value},Jm(e,r,n),n}default:return n=Xoe(e,t),n}}function V4(e,t){let n=-1;const r=[];for(;++n<t.length;){const a=d_(e,t[n]);r.push(a)}return r}function Xoe(e,t){const n=e.schema;e.schema=t.namespaceURI===bl.svg?Bi:_u;let r=-1;const a={};for(;++r<t.attrs.length;){const s=t.attrs[r],c=(s.prefix?s.prefix+":":"")+s.name;z4.call(Qoe,c)||(a[c]=s.value)}const o=(e.schema.space==="svg"?Woe:qoe)(t.tagName,a,V4(e,t.childNodes));if(Jm(e,t,o),o.tagName==="template"){const s=t,c=s.sourceCodeLocation,u=c&&c.startTag&&Wc(c.startTag),d=c&&c.endTag&&Wc(c.endTag),p=d_(e,s.content);u&&d&&e.file&&(p.position={start:u.end,end:d.start}),o.content=p}return e.schema=n,o}function Jm(e,t,n){if("sourceCodeLocation"in t&&t.sourceCodeLocation&&e.file){const r=Zoe(e,n,t.sourceCodeLocation);r&&(e.location=!0,n.position=r)}}function Zoe(e,t,n){const r=Wc(n);if(t.type==="element"){const a=t.children[t.children.length-1];if(r&&!n.endTag&&a&&a.position&&a.position.end&&(r.end=Object.assign({},a.position.end)),e.verbose){const o={};let s;if(n.attrs)for(s in n.attrs)z4.call(n.attrs,s)&&(o[Pp(e.schema,s).property]=Wc(n.attrs[s]));n.startTag;const c=Wc(n.startTag),u=n.endTag?Wc(n.endTag):void 0,d={opening:c};u&&(d.closing=u),d.properties=o,t.data={position:d}}}return r}function Wc(e){const t=fR({line:e.startLine,column:e.startCol,offset:e.startOffset}),n=fR({line:e.endLine,column:e.endCol,offset:e.endOffset});return t||n?{start:t,end:n}:void 0}function fR(e){return e.line&&e.column?e:void 0}let zp=class{constructor(t,n,r){this.property=t,this.normal=n,r&&(this.space=r)}};zp.prototype.property={};zp.prototype.normal={};zp.prototype.space=null;function G4(e,t){const n={},r={};let a=-1;for(;++a<e.length;)Object.assign(n,e[a].property),Object.assign(r,e[a].normal);return new zp(n,r,t)}function nT(e){return e.toLowerCase()}let po=class{constructor(t,n){this.property=t,this.attribute=n}};po.prototype.space=null;po.prototype.boolean=!1;po.prototype.booleanish=!1;po.prototype.overloadedBoolean=!1;po.prototype.number=!1;po.prototype.commaSeparated=!1;po.prototype.spaceSeparated=!1;po.prototype.commaOrSpaceSeparated=!1;po.prototype.mustUseProperty=!1;po.prototype.defined=!1;let Joe=0;const Ct=zl(),sr=zl(),q4=zl(),Fe=zl(),On=zl(),nu=zl(),wa=zl();function zl(){return 2**++Joe}const rT=Object.freeze(Object.defineProperty({__proto__:null,boolean:Ct,booleanish:sr,commaOrSpaceSeparated:wa,commaSeparated:nu,number:Fe,overloadedBoolean:q4,spaceSeparated:On},Symbol.toStringTag,{value:"Module"})),Tb=Object.keys(rT);let f_=class extends po{constructor(t,n,r,a){let o=-1;if(super(t,n),pR(this,"space",a),typeof r=="number")for(;++o<Tb.length;){const s=Tb[o];pR(this,Tb[o],(r&rT[s])===rT[s])}}};f_.prototype.defined=!0;function pR(e,t,n){n&&(e[t]=n)}const eie={}.hasOwnProperty;function Du(e){const t={},n={};let r;for(r in e.properties)if(eie.call(e.properties,r)){const a=e.properties[r],o=new f_(r,e.transform(e.attributes||{},r),a,e.space);e.mustUseProperty&&e.mustUseProperty.includes(r)&&(o.mustUseProperty=!0),t[r]=o,n[nT(r)]=r,n[nT(o.attribute)]=r}return new zp(t,n,e.space)}const W4=Du({space:"xlink",transform(e,t){return"xlink:"+t.slice(5).toLowerCase()},properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null}}),Y4=Du({space:"xml",transform(e,t){return"xml:"+t.slice(3).toLowerCase()},properties:{xmlLang:null,xmlBase:null,xmlSpace:null}});function Q4(e,t){return t in e?e[t]:t}function K4(e,t){return Q4(e,t.toLowerCase())}const X4=Du({space:"xmlns",attributes:{xmlnsxlink:"xmlns:xlink"},transform:K4,properties:{xmlns:null,xmlnsXLink:null}}),Z4=Du({transform(e,t){return t==="role"?t:"aria-"+t.slice(4).toLowerCase()},properties:{ariaActiveDescendant:null,ariaAtomic:sr,ariaAutoComplete:null,ariaBusy:sr,ariaChecked:sr,ariaColCount:Fe,ariaColIndex:Fe,ariaColSpan:Fe,ariaControls:On,ariaCurrent:null,ariaDescribedBy:On,ariaDetails:null,ariaDisabled:sr,ariaDropEffect:On,ariaErrorMessage:null,ariaExpanded:sr,ariaFlowTo:On,ariaGrabbed:sr,ariaHasPopup:null,ariaHidden:sr,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:On,ariaLevel:Fe,ariaLive:null,ariaModal:sr,ariaMultiLine:sr,ariaMultiSelectable:sr,ariaOrientation:null,ariaOwns:On,ariaPlaceholder:null,ariaPosInSet:Fe,ariaPressed:sr,ariaReadOnly:sr,ariaRelevant:null,ariaRequired:sr,ariaRoleDescription:On,ariaRowCount:Fe,ariaRowIndex:Fe,ariaRowSpan:Fe,ariaSelected:sr,ariaSetSize:Fe,ariaSort:null,ariaValueMax:Fe,ariaValueMin:Fe,ariaValueNow:Fe,ariaValueText:null,role:null}}),tie=Du({space:"html",attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},transform:K4,mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:nu,acceptCharset:On,accessKey:On,action:null,allow:null,allowFullScreen:Ct,allowPaymentRequest:Ct,allowUserMedia:Ct,alt:null,as:null,async:Ct,autoCapitalize:null,autoComplete:On,autoFocus:Ct,autoPlay:Ct,blocking:On,capture:null,charSet:null,checked:Ct,cite:null,className:On,cols:Fe,colSpan:null,content:null,contentEditable:sr,controls:Ct,controlsList:On,coords:Fe|nu,crossOrigin:null,data:null,dateTime:null,decoding:null,default:Ct,defer:Ct,dir:null,dirName:null,disabled:Ct,download:q4,draggable:sr,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:Ct,formTarget:null,headers:On,height:Fe,hidden:Ct,high:Fe,href:null,hrefLang:null,htmlFor:On,httpEquiv:On,id:null,imageSizes:null,imageSrcSet:null,inert:Ct,inputMode:null,integrity:null,is:null,isMap:Ct,itemId:null,itemProp:On,itemRef:On,itemScope:Ct,itemType:On,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:Ct,low:Fe,manifest:null,max:null,maxLength:Fe,media:null,method:null,min:null,minLength:Fe,multiple:Ct,muted:Ct,name:null,nonce:null,noModule:Ct,noValidate:Ct,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforeMatch:null,onBeforePrint:null,onBeforeToggle:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextLost:null,onContextMenu:null,onContextRestored:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onScrollEnd:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:Ct,optimum:Fe,pattern:null,ping:On,placeholder:null,playsInline:Ct,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:Ct,referrerPolicy:null,rel:On,required:Ct,reversed:Ct,rows:Fe,rowSpan:Fe,sandbox:On,scope:null,scoped:Ct,seamless:Ct,selected:Ct,shadowRootClonable:Ct,shadowRootDelegatesFocus:Ct,shadowRootMode:null,shape:null,size:Fe,sizes:null,slot:null,span:Fe,spellCheck:sr,src:null,srcDoc:null,srcLang:null,srcSet:null,start:Fe,step:null,style:null,tabIndex:Fe,target:null,title:null,translate:null,type:null,typeMustMatch:Ct,useMap:null,value:sr,width:Fe,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:On,axis:null,background:null,bgColor:null,border:Fe,borderColor:null,bottomMargin:Fe,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:Ct,declare:Ct,event:null,face:null,frame:null,frameBorder:null,hSpace:Fe,leftMargin:Fe,link:null,longDesc:null,lowSrc:null,marginHeight:Fe,marginWidth:Fe,noResize:Ct,noHref:Ct,noShade:Ct,noWrap:Ct,object:null,profile:null,prompt:null,rev:null,rightMargin:Fe,rules:null,scheme:null,scrolling:sr,standby:null,summary:null,text:null,topMargin:Fe,valueType:null,version:null,vAlign:null,vLink:null,vSpace:Fe,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:Ct,disableRemotePlayback:Ct,prefix:null,property:null,results:Fe,security:null,unselectable:null}}),nie=Du({space:"svg",attributes:{accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",className:"class",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",crossOrigin:"crossorigin",dataType:"datatype",dominantBaseline:"dominant-baseline",enableBackground:"enable-background",fillOpacity:"fill-opacity",fillRule:"fill-rule",floodColor:"flood-color",floodOpacity:"flood-opacity",fontFamily:"font-family",fontSize:"font-size",fontSizeAdjust:"font-size-adjust",fontStretch:"font-stretch",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",glyphName:"glyph-name",glyphOrientationHorizontal:"glyph-orientation-horizontal",glyphOrientationVertical:"glyph-orientation-vertical",hrefLang:"hreflang",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",horizOriginY:"horiz-origin-y",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",navDown:"nav-down",navDownLeft:"nav-down-left",navDownRight:"nav-down-right",navLeft:"nav-left",navNext:"nav-next",navPrev:"nav-prev",navRight:"nav-right",navUp:"nav-up",navUpLeft:"nav-up-left",navUpRight:"nav-up-right",onAbort:"onabort",onActivate:"onactivate",onAfterPrint:"onafterprint",onBeforePrint:"onbeforeprint",onBegin:"onbegin",onCancel:"oncancel",onCanPlay:"oncanplay",onCanPlayThrough:"oncanplaythrough",onChange:"onchange",onClick:"onclick",onClose:"onclose",onCopy:"oncopy",onCueChange:"oncuechange",onCut:"oncut",onDblClick:"ondblclick",onDrag:"ondrag",onDragEnd:"ondragend",onDragEnter:"ondragenter",onDragExit:"ondragexit",onDragLeave:"ondragleave",onDragOver:"ondragover",onDragStart:"ondragstart",onDrop:"ondrop",onDurationChange:"ondurationchange",onEmptied:"onemptied",onEnd:"onend",onEnded:"onended",onError:"onerror",onFocus:"onfocus",onFocusIn:"onfocusin",onFocusOut:"onfocusout",onHashChange:"onhashchange",onInput:"oninput",onInvalid:"oninvalid",onKeyDown:"onkeydown",onKeyPress:"onkeypress",onKeyUp:"onkeyup",onLoad:"onload",onLoadedData:"onloadeddata",onLoadedMetadata:"onloadedmetadata",onLoadStart:"onloadstart",onMessage:"onmessage",onMouseDown:"onmousedown",onMouseEnter:"onmouseenter",onMouseLeave:"onmouseleave",onMouseMove:"onmousemove",onMouseOut:"onmouseout",onMouseOver:"onmouseover",onMouseUp:"onmouseup",onMouseWheel:"onmousewheel",onOffline:"onoffline",onOnline:"ononline",onPageHide:"onpagehide",onPageShow:"onpageshow",onPaste:"onpaste",onPause:"onpause",onPlay:"onplay",onPlaying:"onplaying",onPopState:"onpopstate",onProgress:"onprogress",onRateChange:"onratechange",onRepeat:"onrepeat",onReset:"onreset",onResize:"onresize",onScroll:"onscroll",onSeeked:"onseeked",onSeeking:"onseeking",onSelect:"onselect",onShow:"onshow",onStalled:"onstalled",onStorage:"onstorage",onSubmit:"onsubmit",onSuspend:"onsuspend",onTimeUpdate:"ontimeupdate",onToggle:"ontoggle",onUnload:"onunload",onVolumeChange:"onvolumechange",onWaiting:"onwaiting",onZoom:"onzoom",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",referrerPolicy:"referrerpolicy",renderingIntent:"rendering-intent",shapeRendering:"shape-rendering",stopColor:"stop-color",stopOpacity:"stop-opacity",strikethroughPosition:"strikethrough-position",strikethroughThickness:"strikethrough-thickness",strokeDashArray:"stroke-dasharray",strokeDashOffset:"stroke-dashoffset",strokeLineCap:"stroke-linecap",strokeLineJoin:"stroke-linejoin",strokeMiterLimit:"stroke-miterlimit",strokeOpacity:"stroke-opacity",strokeWidth:"stroke-width",tabIndex:"tabindex",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",transformOrigin:"transform-origin",typeOf:"typeof",underlinePosition:"underline-position",underlineThickness:"underline-thickness",unicodeBidi:"unicode-bidi",unicodeRange:"unicode-range",unitsPerEm:"units-per-em",vAlphabetic:"v-alphabetic",vHanging:"v-hanging",vIdeographic:"v-ideographic",vMathematical:"v-mathematical",vectorEffect:"vector-effect",vertAdvY:"vert-adv-y",vertOriginX:"vert-origin-x",vertOriginY:"vert-origin-y",wordSpacing:"word-spacing",writingMode:"writing-mode",xHeight:"x-height",playbackOrder:"playbackorder",timelineBegin:"timelinebegin"},transform:Q4,properties:{about:wa,accentHeight:Fe,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:Fe,amplitude:Fe,arabicForm:null,ascent:Fe,attributeName:null,attributeType:null,azimuth:Fe,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:Fe,by:null,calcMode:null,capHeight:Fe,className:On,clip:null,clipPath:null,clipPathUnits:null,clipRule:null,color:null,colorInterpolation:null,colorInterpolationFilters:null,colorProfile:null,colorRendering:null,content:null,contentScriptType:null,contentStyleType:null,crossOrigin:null,cursor:null,cx:null,cy:null,d:null,dataType:null,defaultAction:null,descent:Fe,diffuseConstant:Fe,direction:null,display:null,dur:null,divisor:Fe,dominantBaseline:null,download:Ct,dx:null,dy:null,edgeMode:null,editable:null,elevation:Fe,enableBackground:null,end:null,event:null,exponent:Fe,externalResourcesRequired:null,fill:null,fillOpacity:Fe,fillRule:null,filter:null,filterRes:null,filterUnits:null,floodColor:null,floodOpacity:null,focusable:null,focusHighlight:null,fontFamily:null,fontSize:null,fontSizeAdjust:null,fontStretch:null,fontStyle:null,fontVariant:null,fontWeight:null,format:null,fr:null,from:null,fx:null,fy:null,g1:nu,g2:nu,glyphName:nu,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:Fe,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:Fe,horizOriginX:Fe,horizOriginY:Fe,id:null,ideographic:Fe,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:Fe,k:Fe,k1:Fe,k2:Fe,k3:Fe,k4:Fe,kernelMatrix:wa,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:Fe,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:Fe,mediaTime:null,method:null,min:null,mode:null,name:null,navDown:null,navDownLeft:null,navDownRight:null,navLeft:null,navNext:null,navPrev:null,navRight:null,navUp:null,navUpLeft:null,navUpRight:null,numOctaves:null,observer:null,offset:null,onAbort:null,onActivate:null,onAfterPrint:null,onBeforePrint:null,onBegin:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnd:null,onEnded:null,onError:null,onFocus:null,onFocusIn:null,onFocusOut:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadStart:null,onMessage:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onMouseWheel:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRepeat:null,onReset:null,onResize:null,onScroll:null,onSeeked:null,onSeeking:null,onSelect:null,onShow:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnload:null,onVolumeChange:null,onWaiting:null,onZoom:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:Fe,overlineThickness:Fe,paintOrder:null,panose1:null,path:null,pathLength:Fe,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:On,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:Fe,pointsAtY:Fe,pointsAtZ:Fe,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:wa,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:wa,rev:wa,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:wa,requiredFeatures:wa,requiredFonts:wa,requiredFormats:wa,resource:null,restart:null,result:null,rotate:null,rx:null,ry:null,scale:null,seed:null,shapeRendering:null,side:null,slope:null,snapshotTime:null,specularConstant:Fe,specularExponent:Fe,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:Fe,strikethroughThickness:Fe,string:null,stroke:null,strokeDashArray:wa,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:Fe,strokeOpacity:Fe,strokeWidth:null,style:null,surfaceScale:Fe,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:wa,tabIndex:Fe,tableValues:null,target:null,targetX:Fe,targetY:Fe,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:wa,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:Fe,underlineThickness:Fe,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:Fe,values:null,vAlphabetic:Fe,vMathematical:Fe,vectorEffect:null,vHanging:Fe,vIdeographic:Fe,version:null,vertAdvY:Fe,vertOriginX:Fe,vertOriginY:Fe,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:Fe,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null}}),rie=G4([Y4,W4,X4,Z4,tie],"html"),J4=G4([Y4,W4,X4,Z4,nie],"svg"),aie=/^data[-\w.:]+$/i,hR=/-[a-z]/g,oie=/[A-Z]/g;function iie(e,t){const n=nT(t);let r=t,a=po;if(n in e.normal)return e.property[e.normal[n]];if(n.length>4&&n.slice(0,4)==="data"&&aie.test(t)){if(t.charAt(4)==="-"){const o=t.slice(5).replace(hR,lie);r="data"+o.charAt(0).toUpperCase()+o.slice(1)}else{const o=t.slice(4);if(!hR.test(o)){let s=o.replace(oie,sie);s.charAt(0)!=="-"&&(s="-"+s),t="data"+s}}a=f_}return new a(r,t)}function sie(e){return"-"+e.toLowerCase()}function lie(e){return e.charAt(1).toUpperCase()}const cie={},uie={}.hasOwnProperty,eL=ky("type",{handlers:{root:fie,element:yie,text:mie,comment:gie,doctype:hie}});function die(e,t){const n=(t||cie).space;return eL(e,n==="svg"?J4:rie)}function fie(e,t){const n={nodeName:"#document",mode:(e.data||{}).quirksMode?"quirks":"no-quirks",childNodes:[]};return n.childNodes=p_(e.children,n,t),ku(e,n),n}function pie(e,t){const n={nodeName:"#document-fragment",childNodes:[]};return n.childNodes=p_(e.children,n,t),ku(e,n),n}function hie(e){const t={nodeName:"#documentType",name:"html",publicId:"",systemId:"",parentNode:null};return ku(e,t),t}function mie(e){const t={nodeName:"#text",value:e.value,parentNode:null};return ku(e,t),t}function gie(e){const t={nodeName:"#comment",data:e.value,parentNode:null};return ku(e,t),t}function yie(e,t){const n=t;let r=n;e.type==="element"&&e.tagName.toLowerCase()==="svg"&&n.space==="html"&&(r=J4);const a=[];let o;if(e.properties){for(o in e.properties)if(o!=="children"&&uie.call(e.properties,o)){const u=vie(r,o,e.properties[o]);u&&a.push(u)}}const s=r.space,c={nodeName:e.tagName,tagName:e.tagName,attrs:a,namespaceURI:bl[s],childNodes:[],parentNode:null};return c.childNodes=p_(e.children,c,r),ku(e,c),e.tagName==="template"&&e.content&&(c.content=pie(e.content,r)),c}function vie(e,t,n){const r=iie(e,t);if(n===!1||n===null||n===void 0||typeof n=="number"&&Number.isNaN(n)||!n&&r.boolean)return;Array.isArray(n)&&(n=r.commaSeparated?Ry(n):Oy(n));const a={name:r.attribute,value:n===!0?"":String(n)};if(r.space&&r.space!=="html"&&r.space!=="svg"){const o=a.name.indexOf(":");o<0?a.prefix="":(a.name=a.name.slice(o+1),a.prefix=r.attribute.slice(0,o)),a.namespace=bl[r.space]}return a}function p_(e,t,n){let r=-1;const a=[];if(e)for(;++r<e.length;){const o=eL(e[r],n);o.parentNode=t,a.push(o)}return a}function ku(e,t){const n=e.position;n&&n.start&&n.end&&(n.start.offset,n.end.offset,t.sourceCodeLocation={startLine:n.start.line,startCol:n.start.column,startOffset:n.start.offset,endLine:n.end.line,endCol:n.end.column,endOffset:n.end.offset})}const bie=/<(\/?)(iframe|noembed|noframes|plaintext|script|style|textarea|title|xmp)(?=[\t\n\f\r />])/gi,Eie=new Set(["mdxFlowExpression","mdxJsxFlowElement","mdxJsxTextElement","mdxTextExpression","mdxjsEsm"]),mR={sourceCodeLocationInfo:!0,scriptingEnabled:!1};function tL(e,t){const n=Rie(e),r=ky("type",{handlers:{root:Tie,element:Sie,text:_ie,comment:rL,doctype:Cie,raw:xie},unknown:wie}),a={parser:n?new iR(mR):iR.getFragmentParser(void 0,mR),handle(c){r(c,a)},stitches:!1,options:t||{}};r(e,a),Ru(a,ri());const o=n?a.parser.document:a.parser.getFragment(),s=Koe(o,{file:a.options.file});return a.stitches&&ha(s,"comment",function(c,u,d){const p=c;if(p.value.stitch&&d&&u!==void 0){const h=d.children;return h[u]=p.value.stitch,u}}),s.type==="root"&&s.children.length===1&&s.children[0].type===e.type?s.children[0]:s}function nL(e,t){let n=-1;if(e)for(;++n<e.length;)t.handle(e[n])}function Tie(e,t){nL(e.children,t)}function Sie(e,t){Die(e,t),nL(e.children,t),kie(e,t)}function _ie(e,t){t.parser.tokenizer.state>4&&(t.parser.tokenizer.state=0);const n={type:$t.CHARACTER,chars:e.value,location:Vp(e)};Ru(t,ri(e)),t.parser.currentToken=n,t.parser._processToken(t.parser.currentToken)}function Cie(e,t){const n={type:$t.DOCTYPE,name:"html",forceQuirks:!1,publicId:"",systemId:"",location:Vp(e)};Ru(t,ri(e)),t.parser.currentToken=n,t.parser._processToken(t.parser.currentToken)}function Aie(e,t){t.stitches=!0;const n=Oie(e);if("children"in e&&"children"in n){const r=tL({type:"root",children:e.children},t.options);n.children=r.children}rL({type:"comment",value:{stitch:n}},t)}function rL(e,t){const n=e.value,r={type:$t.COMMENT,data:n,location:Vp(e)};Ru(t,ri(e)),t.parser.currentToken=r,t.parser._processToken(t.parser.currentToken)}function xie(e,t){if(t.parser.tokenizer.preprocessor.html="",t.parser.tokenizer.preprocessor.pos=-1,t.parser.tokenizer.preprocessor.lastGapPos=-2,t.parser.tokenizer.preprocessor.gapStack=[],t.parser.tokenizer.preprocessor.skipNextNewLine=!1,t.parser.tokenizer.preprocessor.lastChunkWritten=!1,t.parser.tokenizer.preprocessor.endOfChunkHit=!1,t.parser.tokenizer.preprocessor.isEol=!1,aL(t,ri(e)),t.parser.tokenizer.write(t.options.tagfilter?e.value.replace(bie,"&lt;$1$2"):e.value,!1),t.parser.tokenizer._runParsingLoop(),t.parser.tokenizer.state===72||t.parser.tokenizer.state===78){t.parser.tokenizer.preprocessor.lastChunkWritten=!0;const n=t.parser.tokenizer._consume();t.parser.tokenizer._callState(n)}}function wie(e,t){const n=e;if(t.options.passThrough&&t.options.passThrough.includes(n.type))Aie(n,t);else{let r="";throw Eie.has(n.type)&&(r=". It looks like you are using MDX nodes with `hast-util-raw` (or `rehype-raw`). If you use this because you are using remark or rehype plugins that inject `'html'` nodes, then please raise an issue with that plugin, as its a bad and slow idea. If you use this because you are using markdown syntax, then you have to configure this utility (or plugin) to pass through these nodes (see `passThrough` in docs), but you can also migrate to use the MDX syntax"),new Error("Cannot compile `"+n.type+"` node"+r)}}function Ru(e,t){aL(e,t);const n=e.parser.tokenizer.currentCharacterToken;n&&n.location&&(n.location.endLine=e.parser.tokenizer.preprocessor.line,n.location.endCol=e.parser.tokenizer.preprocessor.col+1,n.location.endOffset=e.parser.tokenizer.preprocessor.offset+1,e.parser.currentToken=n,e.parser._processToken(e.parser.currentToken)),e.parser.tokenizer.paused=!1,e.parser.tokenizer.inLoop=!1,e.parser.tokenizer.active=!1,e.parser.tokenizer.returnState=er.DATA,e.parser.tokenizer.charRefCode=-1,e.parser.tokenizer.consumedAfterSnapshot=-1,e.parser.tokenizer.currentLocation=null,e.parser.tokenizer.currentCharacterToken=null,e.parser.tokenizer.currentToken=null,e.parser.tokenizer.currentAttr={name:"",value:""}}function aL(e,t){if(t&&t.offset!==void 0){const n={startLine:t.line,startCol:t.column,startOffset:t.offset,endLine:-1,endCol:-1,endOffset:-1};e.parser.tokenizer.preprocessor.lineStartPos=-t.column+1,e.parser.tokenizer.preprocessor.droppedBufferSize=t.offset,e.parser.tokenizer.preprocessor.line=t.line,e.parser.tokenizer.currentLocation=n}}function Die(e,t){const n=e.tagName.toLowerCase();if(t.parser.tokenizer.state===er.PLAINTEXT)return;Ru(t,ri(e));const r=t.parser.openElements.current;let a="namespaceURI"in r?r.namespaceURI:bl.html;a===bl.html&&n==="svg"&&(a=bl.svg);const o=die({...e,children:[]},{space:a===bl.svg?"svg":"html"}),s={type:$t.START_TAG,tagName:n,tagID:wu(n),selfClosing:!1,ackSelfClosing:!1,attrs:"attrs"in o?o.attrs:[],location:Vp(e)};t.parser.currentToken=s,t.parser._processToken(t.parser.currentToken),t.parser.tokenizer.lastStartTagName=n}function kie(e,t){const n=e.tagName.toLowerCase();if(!t.parser.tokenizer.inForeignNode&&EN.includes(n)||t.parser.tokenizer.state===er.PLAINTEXT)return;Ru(t,Wy(e));const r={type:$t.END_TAG,tagName:n,tagID:wu(n),selfClosing:!1,ackSelfClosing:!1,attrs:[],location:Vp(e)};t.parser.currentToken=r,t.parser._processToken(t.parser.currentToken),n===t.parser.tokenizer.lastStartTagName&&(t.parser.tokenizer.state===er.RCDATA||t.parser.tokenizer.state===er.RAWTEXT||t.parser.tokenizer.state===er.SCRIPT_DATA)&&(t.parser.tokenizer.state=er.DATA)}function Rie(e){const t=e.type==="root"?e.children[0]:e;return!!(t&&(t.type==="doctype"||t.type==="element"&&t.tagName.toLowerCase()==="html"))}function Vp(e){const t=ri(e)||{line:void 0,column:void 0,offset:void 0},n=Wy(e)||{line:void 0,column:void 0,offset:void 0};return{startLine:t.line,startCol:t.column,startOffset:t.offset,endLine:n.line,endCol:n.column,endOffset:n.offset}}function Oie(e){return"children"in e?Ml({...e,children:[]}):Ml(e)}function Iie(e){return function(t,n){return tL(t,{...e,file:n})}}var Nie=["prefixCls","className","source","style","disableCopy","skipHtml","onScroll","onMouseOver","pluginsFilter","rehypeRewrite","wrapperElement","warpperElement","urlTransform"],Lie=e=>e;const Pie=Tt.forwardRef((e,t)=>{var{prefixCls:n="wmde-markdown wmde-markdown-color",className:r,source:a,style:o,disableCopy:s=!1,skipHtml:c=!0,onScroll:u,onMouseOver:d,pluginsFilter:p,wrapperElement:h={},warpperElement:g={},urlTransform:y}=e,b=Pr(e,Nie),E=Tt.useRef(null);x.useImperativeHandle(t,()=>Ne({},e,{mdp:E}),[E,e]);var _=(n||"")+" "+(r||"");uX(E);var A=[...b.rehypePlugins||[]],D={allowElement:(O,k,F)=>b.allowElement?b.allowElement(O,k,F):/^[A-Za-z0-9]+$/.test(O.tagName)};c||A.push(Iie);var w=[iX,...b.remarkPlugins||[],wJ],R=Ne({},g,h);return P.jsx("div",Ne({ref:E,onScroll:u,onMouseOver:d},R,{className:_,style:o,children:P.jsx(ure,Ne({},D,b,{skipHtml:!c,urlTransform:y||Lie,rehypePlugins:p?p("rehype",A):A,remarkPlugins:p?p("remark",w):w,children:a||""}))}))});var eg={},aT={};function Mie(e,t){for(var n=t,r=0;r<e.length;r++){var a=r===e.length-1,o=e.charAt(r),s=n[o]||(n[o]={chars:{}});a&&(s.self=e),n=s.chars}}function gR(e){if(e.length===0)return eg;for(var t={},n=0,r=e;n<r.length;n++){var a=r[n];Mie(a,t)}return t}function $ie(e){if(e.length===0)return aT;for(var t={},n=0,r=e;n<r.length;n++){var a=r[n];t[a]=!0}return t}var wm={},yR={type:"String",optional:!0};function Fie(e){var t={type:"NoArgument",optional:!1};function n(s){if(t.type&&t.type!==s&&t.type!=="NoArgument")throw new Error('Conflicting pseudo-class argument type: "'.concat(t.type,'" vs "').concat(s,'".'));t.type=s}for(var r=0,a=e;r<a.length;r++){var o=a[r];o==="NoArgument"&&(t.optional=!0),o==="Formula"&&n("Formula"),o==="FormulaOfSelector"&&(n("Formula"),t.ofSelector=!0),o==="String"&&n("String"),o==="Selector"&&n("Selector")}return t}function Bie(e){for(var t={},n=0,r=Object.keys(e);n<r.length;n++){var a=r[n],o=e[a];if(o)for(var s=0,c=o;s<c.length;s++){var u=c[s];(t[u]||(t[u]=[])).push(a)}}return t}function vR(e){for(var t=Bie(e),n={},r=0,a=Object.keys(t);r<a.length;r++){var o=a[r],s=t[o];s&&(n[o]=Fie(s))}return n}var mu=function(){return mu=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++){t=arguments[n];for(var a in t)Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a])}return e},mu.apply(this,arguments)},Uie={},oT={wildcard:!0};function jie(e){return e?typeof e=="boolean"?oT:e:Uie}function Hie(e,t){return function(n,r){return t(e(n),e(r))}}function zie(e){return function(t,n){var r=e(t,n);if(!r)throw new Error("Syntax definition cannot be null or undefined.");return r}}function bR(e,t){return function(n,r){return r===!0?e:t(n===!0?e:n,r)}}function Bc(e){return function(t,n){if(!n||!t)return n;if(typeof n!="object"||n===null)throw new Error("Unexpected syntax definition extension type: ".concat(n,"."));for(var r=mu({},t),a=0,o=Object.entries(n);a<o.length;a++){var s=o[a],c=s[0],u=s[1];if(c!=="latest"){var d=e[c];r[c]=d(t[c],u)}}return r}}function Ai(e,t){return t!==void 0?t:e}function Dm(e,t){return t?e?e.concat(t):t:e}function ER(e,t){if(!t)return e;if(!e)return t;for(var n=mu({},e),r=0,a=Object.entries(t);r<a.length;r++){var o=a[r],s=o[0],c=o[1];if(!c){delete n[s];continue}var u=e[s];if(!u){n[s]=c;continue}n[s]=u.concat(c)}return n}var xl=zie(Bc({baseSyntax:Ai,modules:Dm,tag:bR(oT,Bc({wildcard:Ai})),ids:Ai,classNames:Ai,namespace:bR(oT,Bc({wildcard:Ai})),combinators:Dm,attributes:Bc({operators:Dm,caseSensitivityModifiers:Dm,unknownCaseSensitivityModifiers:Ai}),pseudoClasses:Bc({unknown:Ai,definitions:ER}),pseudoElements:Bc({unknown:Ai,notation:Ai,definitions:Hie(function(e){return Array.isArray(e)?{NoArgument:e}:e},ER)})})),oL={tag:{},ids:!0,classNames:!0,combinators:[],pseudoElements:{unknown:"reject",notation:"singleColon",definitions:["first-letter","first-line"]},pseudoClasses:{unknown:"reject",definitions:{NoArgument:["link","visited","active"]}}},iL=xl(oL,{tag:{wildcard:!0},combinators:[">","+"],attributes:{unknownCaseSensitivityModifiers:"reject",operators:["=","~=","|="]},pseudoElements:{definitions:["before","after"]},pseudoClasses:{unknown:"reject",definitions:{NoArgument:["hover","focus","first-child"],String:["lang"]}}}),iT=xl(iL,{namespace:{wildcard:!0},combinators:["~"],attributes:{operators:["^=","$=","*="]},pseudoElements:{notation:"both"},pseudoClasses:{definitions:{NoArgument:["root","last-child","first-of-type","last-of-type","only-child","only-of-type","empty","target","enabled","disabled","checked","indeterminate"],Formula:["nth-child","nth-last-child","nth-of-type","nth-last-of-type"],Selector:["not"]}}}),sL=xl(iT,{combinators:["||"],attributes:{caseSensitivityModifiers:["i","I","s","S"]},pseudoClasses:{definitions:{NoArgument:["any-link","local-link","target-within","scope","current","past","future","focus-within","focus-visible","read-write","read-only","placeholder-shown","default","valid","invalid","in-range","out-of-range","required","optional","blank","user-invalid","playing","paused","autofill","modal","fullscreen","picture-in-picture","defined","loading","popover-open"],Formula:["nth-col","nth-last-col"],String:["dir"],FormulaOfSelector:["nth-child","nth-last-child"],Selector:["current","is","where","has","state"]}},pseudoElements:{definitions:{NoArgument:["marker"]}}}),Vg={"css-position-1":{latest:!1,pseudoClasses:{definitions:{NoArgument:["static","relative","absolute"]}}},"css-position-2":{latest:!1,pseudoClasses:{definitions:{NoArgument:["static","relative","absolute","fixed"]}}},"css-position-3":{latest:!1,pseudoClasses:{definitions:{NoArgument:["sticky","fixed","absolute","relative","static"]}}},"css-position-4":{latest:!0,pseudoClasses:{definitions:{NoArgument:["sticky","fixed","absolute","relative","static","initial"]}}},"css-scoping-1":{latest:!0,pseudoClasses:{definitions:{NoArgument:["host","host-context"],Selector:["host","host-context"]}},pseudoElements:{definitions:{Selector:["slotted"]}}},"css-pseudo-4":{latest:!0,pseudoElements:{definitions:{NoArgument:["marker","selection","target-text","search-text","spelling-error","grammar-error","backdrop","file-selector-button","prefix","postfix","placeholder","details-content"],String:["highlight"]}}},"css-shadow-parts-1":{latest:!0,pseudoElements:{definitions:{String:["part"]}}}},lL=mu(mu({},sL),{modules:Object.entries(Vg).filter(function(e){var t=e[1].latest;return t}).map(function(e){var t=e[0];return t})}),Vie=xl(lL,{pseudoElements:{unknown:"accept"},pseudoClasses:{unknown:"accept"},attributes:{unknownCaseSensitivityModifiers:"accept"}}),sT={css1:oL,css2:iL,css3:iT,"selectors-3":iT,"selectors-4":sL,latest:lL,progressive:Vie};function Gie(){for(var e={pseudoClasses:{},pseudoElements:{}},t=["css1","css2","css3","selectors-3","selectors-4"],n=0,r=t;n<r.length;n++){var a=r[n],o=sT[a];if(o.pseudoClasses&&typeof o.pseudoClasses=="object"){var s=o.pseudoClasses.definitions;if(s)for(var c=0,u=Object.entries(s);c<u.length;c++)for(var d=u[c],p=d[1],h=0,g=p;h<g.length;h++){var y=g[h];e.pseudoClasses[y]||(e.pseudoClasses[y]=[]),e.pseudoClasses[y].includes(a)||e.pseudoClasses[y].push(a)}}if(o.pseudoElements&&typeof o.pseudoElements=="object"){var s=o.pseudoElements.definitions;if(s)if(Array.isArray(s))for(var b=0,E=s;b<E.length;b++){var _=E[b];e.pseudoElements[_]||(e.pseudoElements[_]=[]),e.pseudoElements[_].includes(a)||e.pseudoElements[_].push(a)}else for(var A=0,D=Object.values(s);A<D.length;A++)for(var p=D[A],w=0,R=p;w<R.length;w++){var O=R[w];e.pseudoElements[O]||(e.pseudoElements[O]=[]),e.pseudoElements[O].includes(a)||e.pseudoElements[O].push(a)}}}for(var k=0,F=Object.entries(Vg);k<F.length;k++){var G=F[k],j=G[0],T=G[1];if(T.pseudoClasses&&typeof T.pseudoClasses=="object"){var s=T.pseudoClasses.definitions;if(s)for(var M=0,U=Object.values(s);M<U.length;M++)for(var p=U[M],B=0,Y=p;B<Y.length;B++){var X=Y[B];e.pseudoClasses[X]||(e.pseudoClasses[X]=[]),e.pseudoClasses[X].includes(j)||e.pseudoClasses[X].push(j)}}if(T.pseudoElements&&typeof T.pseudoElements=="object"){var s=T.pseudoElements.definitions;if(s)if(Array.isArray(s))for(var z=0,Z=s;z<Z.length;z++){var J=Z[z];e.pseudoElements[J]||(e.pseudoElements[J]=[]),e.pseudoElements[J].includes(j)||e.pseudoElements[J].push(j)}else for(var oe=0,I=Object.values(s);oe<I.length;oe++)for(var p=I[oe],re=0,ee=p;re<ee.length;re++){var L=ee[re];e.pseudoElements[L]||(e.pseudoElements[L]=[]),e.pseudoElements[L].includes(j)||e.pseudoElements[L].push(j)}}}return e}var TR=Gie();function Qd(e){return e>="a"&&e<="z"||e>="A"&&e<="Z"||e==="-"||e==="_"||e==="\\"||e>=" "}function SR(e){return e>="a"&&e<="z"||e>="A"&&e<="Z"||e>="0"&&e<="9"||e==="-"||e==="_"||e>=" "}function Kd(e){return e>="a"&&e<="f"||e>="A"&&e<="F"||e>="0"&&e<="9"}var qie={" ":!0," ":!0,"\n":!0,"\r":!0,"\f":!0},Wie={'"':!0,"'":!0},Sb={0:!0,1:!0,2:!0,3:!0,4:!0,5:!0,6:!0,7:!0,8:!0,9:!0},Yie=6,_b="css-selector-parser parse error: ";function Qie(e){e===void 0&&(e={});var t=e.syntax,n=t===void 0?"latest":t,r=e.substitutes,a=e.strict,o=a===void 0?!0:a,s=e.modules,c=typeof n=="object"?n:sT[n];if(c.baseSyntax&&(c=xl(sT[c.baseSyntax],c)),c.modules&&c.modules.length>0)for(var u=0,d=c.modules;u<d.length;u++){var p=d[u],h=Vg[p];h&&(c=xl(h,c))}if(s&&s.length>0)for(var g=0,y=s;g<y.length;g++){var b=y[g],h=Vg[b];h&&(c=xl(h,c))}var E=c.tag?[!0,!!jie(c.tag).wildcard]:[!1,!1],_=E[0],A=E[1],D=!!c.ids,w=!!c.classNames,R=!!c.namespace,O=c.namespace&&(c.namespace===!0||c.namespace.wildcard===!0);if(R&&!_)throw new Error("".concat(_b,"Namespaces cannot be enabled while tags are disabled."));var k=!!r,F=c.combinators?gR(c.combinators):eg,G=c.attributes?[!0,c.attributes.operators?gR(c.attributes.operators):eg,c.attributes.caseSensitivityModifiers?$ie(c.attributes.caseSensitivityModifiers):aT,c.attributes.unknownCaseSensitivityModifiers==="accept"]:[!1,eg,aT,!1],j=G[0],T=G[1],M=G[2],U=G[3],B=U||Object.keys(M).length>0,Y=c.pseudoClasses?[!0,c.pseudoClasses.definitions?vR(c.pseudoClasses.definitions):wm,c.pseudoClasses.unknown==="accept"]:[!1,wm,!1],X=Y[0],z=Y[1],Z=Y[2],J=c.pseudoElements?[!0,c.pseudoElements.notation==="singleColon"||c.pseudoElements.notation==="both",!c.pseudoElements.notation||c.pseudoElements.notation==="doubleColon"||c.pseudoElements.notation==="both",c.pseudoElements.definitions?vR(Array.isArray(c.pseudoElements.definitions)?{NoArgument:c.pseudoElements.definitions}:c.pseudoElements.definitions):wm,c.pseudoElements.unknown==="accept"]:[!1,!1,!1,wm,!1],oe=J[0],I=J[1],re=J[2],ee=J[3],L=J[4],te="",be=te.length,de=0,xe="",ge=function(Ee){return xe===Ee},Oe=function(){return ge("*")||Qd(xe)},Ue=function(Ee){de=Ee,xe=te.charAt(de)},Ie=function(){de++,xe=te.charAt(de)},Ye=function(){var Ee=xe;return de++,xe=te.charAt(de),Ee};function Ve(Ee){var Te=Math.min(be-1,de),ut=new Error("".concat(_b).concat(Ee," Pos: ").concat(Te,"."));throw ut.position=Te,ut.name="ParserError",ut}function ke(Ee,Te){if(!Ee)return Ve(Te)}var Rt=function(){ke(de<be,"Unexpected end of input.")},Et=function(){return de>=be},je=function(Ee){ke(de<be,'Expected "'.concat(Ee,'" but end of input reached.')),ke(xe===Ee,'Expected "'.concat(Ee,'" but "').concat(xe,'" found.')),de++,xe=te.charAt(de)};function St(Ee){var Te=ot(Ee,de);if(Te)return de+=Te.length,xe=te.charAt(de),Te}function ot(Ee,Te){var ut=te.charAt(Te),nt=Ee[ut];if(nt){var Fn=ot(nt.chars,Te+1);if(Fn)return Fn;if(nt.self)return nt.self}}function Ze(){for(var Ee=Ye(),Te=1;Kd(xe)&&Te<Yie;)Ee+=Ye(),Te++;return Dn(),String.fromCharCode(parseInt(Ee,16))}function Ge(Ee){var Te="";for(je(Ee);de<be;){if(ge(Ee))return Ie(),Te;ge("\\")?(Ie(),ge(Ee)?(Te+=Ee,Ie()):xe===`
274
274
  `||xe==="\f"?Ie():xe==="\r"?(Ie(),ge(`
275
275
  `)&&Ie()):Kd(xe)?Te+=Ze():(Te+=xe,Ie())):(Te+=xe,Ie())}return Te}function Pe(){if(!Qd(xe))return null;for(var Ee="";ge("-");)Ee+=xe,Ie();for(Ee==="-"&&!SR(xe)&&!ge("\\")&&Ve("Identifiers cannot consist of a single hyphen."),o&&Ee.length>=2&&Ve("Identifiers cannot start with two hyphens with strict mode on."),Sb[xe]&&Ve("Identifiers cannot start with hyphens followed by digits.");de<be;)if(SR(xe))Ee+=Ye();else if(ge("\\"))Ie(),Rt(),Kd(xe)?Ee+=Ze():Ee+=Ye();else break;return Ee}function Ot(){for(var Ee="";de<be&&!ge(")");)if(ge("\\")){if(Ie(),Et()&&!o)return(Ee+"\\").trim();Rt(),Kd(xe)?Ee+=Ze():Ee+=Ye()}else Ee+=Ye();return Ee.trim()}function Dn(){if(xe===" "||xe===" "||xe==="\f"||xe===`
276
276
  `){Ie();return}xe==="\r"&&Ie(),xe===`
277
- `&&Ie()}function bt(){for(;qie[xe];)Ie()}function ce(Ee){Ee===void 0&&(Ee=!1),bt();for(var Te=[qe(Ee)];ge(",");)Ie(),bt(),Te.push(qe(Ee));return{type:"Selector",rules:Te}}function me(){je("["),bt();var Ee;if(ge("|")){ke(R,"Namespaces are not enabled."),Ie();var Te=Pe();ke(Te,"Expected attribute name."),Ee={type:"Attribute",name:Te,namespace:{type:"NoNamespace"}}}else if(ge("*")){ke(R,"Namespaces are not enabled."),ke(O,"Wildcard namespace is not enabled."),Ie(),je("|");var ut=Pe();ke(ut,"Expected attribute name."),Ee={type:"Attribute",name:ut,namespace:{type:"WildcardNamespace"}}}else{var nt=Pe();if(ke(nt,"Expected attribute name."),Ee={type:"Attribute",name:nt},ge("|")){var Fn=de;if(Ie(),Qd(xe)){ke(R,"Namespaces are not enabled.");var jr=Pe();ke(jr,"Expected attribute name."),Ee={type:"Attribute",name:jr,namespace:{type:"NamespaceName",name:nt}}}else Ue(Fn)}}if(ke(Ee.name,"Expected attribute name."),bt(),Et()&&!o)return Ee;if(ge("]"))Ie();else{if(Ee.operator=St(T),ke(Ee.operator,"Expected a valid attribute selector operator."),bt(),Rt(),Wie[xe])Ee.value={type:"String",value:Ge(xe)};else if(k&&ge("$")){Ie();var _r=Pe();ke(_r,"Expected substitute name."),Ee.value={type:"Substitution",name:_r}}else{var mr=Pe();ke(mr,"Expected attribute value."),Ee.value={type:"String",value:mr}}if(bt(),Et()&&!o)return Ee;if(!ge("]")){var gr=Pe();if(ke(gr,"Expected end of attribute selector."),Ee.caseSensitivityModifier=gr,ke(B,"Attribute case sensitivity modifiers are not enabled."),ke(U||M[Ee.caseSensitivityModifier],"Unknown attribute case sensitivity modifier."),bt(),Et()&&!o)return Ee}je("]")}return Ee}function Be(){for(var Ee="";Sb[xe];)Ee+=Ye();return ke(Ee!=="","Formula parse error."),parseInt(Ee)}var We=function(){return ge("-")||ge("+")||Sb[xe]};function Qe(){if(ge("e")||ge("o")){var Ee=Pe();if(Ee==="even")return bt(),[2,0];if(Ee==="odd")return bt(),[2,1]}var Te=null,ut=1;if(ge("-")&&(Ie(),ut=-1),We()&&(ge("+")&&Ie(),Te=Be(),!ge("\\")&&!ge("n")))return[0,Te*ut];Te===null&&(Te=1),Te*=ut;var nt;if(ge("\\")?(Ie(),Kd(xe)?nt=Ze():nt=Ye()):nt=Ye(),ke(nt==="n",'Formula parse error: expected "n".'),bt(),ge("+")||ge("-")){var Fn=ge("+")?1:-1;return Ie(),bt(),[Te,Fn*Be()]}else return[Te,0]}function gt(Ee,Te,ut){var nt;if(ge("(")){if(Ie(),bt(),k&&ge("$")){Ie();var Fn=Pe();ke(Fn,"Expected substitute name."),nt={type:"Substitution",name:Fn}}else if(ut.type==="String")nt={type:"String",value:Ot()},ke(nt.value,"Expected ".concat(Te," argument value."));else if(ut.type==="Selector")nt=ce(!0);else if(ut.type==="Formula"){var jr=Qe(),_r=jr[0],mr=jr[1];if(nt={type:"Formula",a:_r,b:mr},ut.ofSelector&&(bt(),ge("o")||ge("\\"))){var gr=Pe();ke(gr==="of","Formula of selector parse error."),bt(),nt={type:"FormulaOfSelector",a:_r,b:mr,selector:qe()}}}else return Ve("Invalid ".concat(Te," signature."));if(bt(),Et()&&!o)return nt;je(")")}else ke(ut.optional,"Argument is required for ".concat(Te,' "').concat(Ee,'".'));return nt}function ln(){if(ge("*"))return ke(A,"Wildcard tag name is not enabled."),Ie(),{type:"WildcardTag"};if(Qd(xe)){ke(_,"Tag names are not enabled.");var Ee=Pe();return ke(Ee,"Expected tag name."),{type:"TagName",name:Ee}}else return Ve("Expected tag name.")}function Qt(){if(ge("*")){var Ee=de;if(Ie(),!ge("|")||(Ie(),!Oe()))return Ue(Ee),ln();ke(R,"Namespaces are not enabled."),ke(O,"Wildcard namespace is not enabled.");var Te=ln();return Te.namespace={type:"WildcardNamespace"},Te}else if(ge("|")){ke(R,"Namespaces are not enabled."),Ie();var Te=ln();return Te.namespace={type:"NoNamespace"},Te}else if(Qd(xe)){var ut=Pe();if(ke(ut,"Expected tag name."),!ge("|"))return ke(_,"Tag names are not enabled."),{type:"TagName",name:ut};var Ee=de;if(Ie(),!Oe())return Ue(Ee),{type:"TagName",name:ut};ke(R,"Namespaces are not enabled.");var Te=ln();return Te.namespace={type:"NamespaceName",name:ut},Te}else return Ve("Expected tag name.")}function qe(Ee){var Te,ut;Ee===void 0&&(Ee=!1);var nt={type:"Rule",items:[]};if(Ee){var Fn=St(F);Fn&&(nt.combinator=Fn,bt())}for(;de<be;)if(Oe())ke(nt.items.length===0,"Unexpected tag/namespace start."),nt.items.push(Qt());else if(ge("|")){var jr=de;if(Ie(),Oe())ke(nt.items.length===0,"Unexpected tag/namespace start."),Ue(jr),nt.items.push(Qt());else{Ue(jr);break}}else if(ge(".")){ke(w,"Class names are not enabled."),Ie();var _r=Pe();ke(_r,"Expected class name."),nt.items.push({type:"ClassName",name:_r})}else if(ge("#")){ke(D,"IDs are not enabled."),Ie();var mr=Pe();ke(mr,"Expected ID name."),nt.items.push({type:"Id",name:mr})}else if(ge("["))ke(j,"Attributes are not enabled."),nt.items.push(me());else if(ge(":")){var gr=!1,Ma=!1;Ie(),ge(":")&&(ke(oe,"Pseudo elements are not enabled."),ke(re,"Pseudo elements double colon notation is not enabled."),gr=!0,Ie());var In=Pe();if(ke(gr||In,"Expected pseudo-class name."),ke(!gr||In,"Expected pseudo-element name."),ke(In,"Expected pseudo-class name."),!(!gr||L||Object.prototype.hasOwnProperty.call(ee,In))){var Hr=TR.pseudoElements[In],ft='Unknown pseudo-element "'.concat(In,'"');Hr&&Hr.length>0&&(ft+=". It is defined in: ".concat(Hr.join(", "))),Ve(ft+".")}if(Ma=oe&&(gr||!gr&&I&&Object.prototype.hasOwnProperty.call(ee,In)),Ma){var K=(Te=ee[In])!==null&&Te!==void 0?Te:L&&yR,ie={type:"PseudoElement",name:In},pe=gt(In,"pseudo-element",K);pe&&(ke(pe.type!=="Formula"&&pe.type!=="FormulaOfSelector","Pseudo-elements cannot have formula argument."),ie.argument=pe),nt.items.push(ie)}else{ke(X,"Pseudo-classes are not enabled.");var K=(ut=z[In])!==null&&ut!==void 0?ut:Z&&yR;if(!K){var Hr=TR.pseudoClasses[In],ft='Unknown pseudo-class: "'.concat(In,'"');Hr&&Hr.length>0&&(ft+=". It is defined in: ".concat(Hr.join(", "))),Ve(ft+".")}var pe=gt(In,"pseudo-class",K),De={type:"PseudoClass",name:In};pe&&(De.argument=pe),nt.items.push(De)}}else break;if(nt.items.length===0)return Et()?Ve("Expected rule but end of input reached."):Ve('Expected rule but "'.concat(xe,'" found.'));if(bt(),!Et()&&!ge(",")&&!ge(")")){var Fn=St(F);bt(),nt.nestedRule=qe(),nt.nestedRule.combinator=Fn}return nt}return function(Ee){if(typeof Ee!="string")throw new Error("".concat(_b,"Expected string input."));return te=Ee,be=te.length,de=0,xe=te.charAt(0),ce()}}const Kie=Qie({syntax:"selectors-4"});function Xie(e){if(typeof e!="string")throw new TypeError("Expected `string` as selector, not `"+e+"`");return Kie(e)}const cL="֑-߿יִ-﷽ﹰ-ﻼ",uL="A-Za-zÀ-ÖØ-öø-ʸ̀-֐ࠀ-῿‎Ⰰ-﬜︀-﹯﻽-￿",Zie=new RegExp("^[^"+uL+"]*["+cL+"]"),Jie=new RegExp("^[^"+cL+"]*["+uL+"]");function ese(e){const t=String(e||"");return Zie.test(t)?"rtl":Jie.test(t)?"ltr":"neutral"}function dL(e){return"children"in e?fL(e):"value"in e?e.value:""}function tse(e){return e.type==="text"?e.value:"children"in e?fL(e):""}function fL(e){let t=-1;const n=[];for(;++t<e.children.length;)n[t]=tse(e.children[t]);return n.join("")}function nse(e,t){const n=e.schema,r=e.language,a=e.direction,o=e.editableOrEditingHost;let s;if(t.type==="element"){const d=t.properties.xmlLang||t.properties.lang,p=t.properties.type||"text",h=_R(t);d!=null&&(e.language=String(d)),n&&n.space==="html"?(t.properties.contentEditable==="true"&&(e.editableOrEditingHost=!0),t.tagName==="svg"&&(e.schema=Bi),h==="rtl"?s=h:h==="ltr"||h!=="auto"&&t.tagName==="html"||h!=="auto"&&t.tagName==="input"&&p==="tel"?s="ltr":(h==="auto"||t.tagName==="bdi")&&(t.tagName==="textarea"?s=Cb(dL(t)):t.tagName==="input"&&(p==="email"||p==="search"||p==="tel"||p==="text")?s=t.properties.value?Cb(String(t.properties.value)):"ltr":ha(t,u)),s&&(e.direction=s)):e.editableOrEditingHost&&(e.editableOrEditingHost=!1)}return c;function c(){e.schema=n,e.language=r,e.direction=a,e.editableOrEditingHost=o}function u(d){if(d.type==="text")return s=Cb(d.value),s?$g:void 0;if(d!==t&&d.type==="element"&&(d.tagName==="bdi"||d.tagName==="script"||d.tagName==="style"||d.tagName==="textare"||_R(d)))return Ef}}function Cb(e){const t=ese(e);return t==="neutral"?void 0:t}function _R(e){const t=e.type==="element"&&typeof e.properties.dir=="string"?e.properties.dir.toLowerCase():void 0;return t==="auto"||t==="ltr"||t==="rtl"?t:void 0}function rse(e,t,n){const r=Pp(n,e.name),a=t.properties[r.property];let o=ase(a,r);if(!e.value)return o!==void 0;e.value.type;let s=e.value.value;if(e.caseSensitivityModifier==="i"&&(s=s.toLowerCase(),o&&(o=o.toLowerCase())),o!==void 0)switch(e.operator){case"=":return s===o;case"$=":return s===o.slice(-s.length);case"*=":return o.includes(s);case"^=":return s===o.slice(0,s.length);case"|=":return s===o||s===o.slice(0,s.length)&&o.charAt(s.length)==="-";case"~=":return s===o||ME(o).includes(s)}return!1}function ase(e,t){if(e!=null)if(typeof e=="boolean"){if(e)return t.attribute}else if(Array.isArray(e)){if(e.length>0)return(t.commaSeparated?ky:Ry)(e)}else return String(e)}const ose=[];function ise(e,t){return(t.properties.className||ose).includes(e.name)}function sse(e,t){return t.properties.id===e.name}function lse(e,t){return e.name===t.tagName}function cse(e,t){return function(n,r){let a=CR(n,"tag");const o=CR(r??"*","range"),s=[];let c=-1;for(;++c<o.length;){const u=o[c].toLowerCase();let d=-1;const p=[];for(;++d<a.length;)e(a[d].toLowerCase(),u)?s.push(a[d]):p.push(a[d]);a=p}return s}}const use=cse(function(e,t){const n=e.split("-"),r=t.split("-");let a=0,o=0;if(r[o]!=="*"&&n[a]!==r[o])return!1;for(a++,o++;o<r.length;){if(r[o]==="*"){o++;continue}if(!n[a])return!1;if(n[a]===r[o]){a++,o++;continue}if(n[a].length===1)return!1;a++}return!0});function CR(e,t){const n=e&&typeof e=="string"?[e]:e;if(!n||typeof n!="object"||!("length"in n))throw new Error("Invalid "+t+" `"+n+"`, expected non-empty string");return n}const dse=new Set([9,10,12,13,32]),AR=48,fse=57;function pse(e){if(e=e.trim().toLowerCase(),e==="even")return[2,0];if(e==="odd")return[2,1];let t=0,n=0,r=o(),a=s();if(t<e.length&&e.charAt(t)==="n"&&(t++,n=r*(a??1),c(),t<e.length?(r=o(),c(),a=s()):r=a=0),a===null||t<e.length)throw new Error(`n-th rule couldn't be parsed ('${e}')`);return[n,r*a];function o(){return e.charAt(t)==="-"?(t++,-1):(e.charAt(t)==="+"&&t++,1)}function s(){const u=t;let d=0;for(;t<e.length&&e.charCodeAt(t)>=AR&&e.charCodeAt(t)<=fse;)d=d*10+(e.charCodeAt(t)-AR),t++;return t===u?null:d}function c(){for(;t<e.length&&dse.has(e.charCodeAt(t));)t++}}var xR,wR;function hse(){return wR||(wR=1,xR={trueFunc:function(){return!0},falseFunc:function(){return!1}}),xR}var mse=hse();const DR=Gy(mse);function gse(e){const t=e[0],n=e[1]-1;if(n<0&&t<=0)return DR.falseFunc;if(t===-1)return o=>o<=n;if(t===0)return o=>o===n;if(t===1)return n<0?DR.trueFunc:o=>o>=n;const r=Math.abs(t),a=(n%r+r)%r;return t>1?o=>o>=n&&o%r===a:o=>o<=n&&o%r===a}function kR(e){return gse(pse(e))}const yse={}.hasOwnProperty;function $l(e,t){const n=e.type==="element"&&yse.call(e.properties,t)&&e.properties[t];return n!=null&&n!==!1}const vse=kR.default||kR,bse=Dy("name",{handlers:{"any-link":Ese,blank:Tse,checked:Sse,dir:_se,disabled:pL,empty:Cse,enabled:Ase,"first-child":xse,"first-of-type":wse,has:Dse,is:hL,lang:Rse,"last-child":Ose,"last-of-type":Ise,not:Nse,"nth-child":Lse,"nth-last-child":Pse,"nth-last-of-type":Mse,"nth-of-type":$se,"only-child":Fse,"only-of-type":Bse,optional:Use,"read-only":jse,"read-write":mL,required:gL,root:Hse,scope:zse},invalid:kse,unknown:Vse});function Ese(e,t){return(t.tagName==="a"||t.tagName==="area"||t.tagName==="link")&&$l(t,"href")}function ai(e,t){if(e.shallow)throw new Error("Cannot use `:"+t.name+"` without parent")}function Tse(e,t){return!yL(t,n);function n(r){return r.type==="element"||r.type==="text"&&!Lp(r)}}function Sse(e,t){return t.tagName==="input"||t.tagName==="menuitem"?!!((t.properties.type==="checkbox"||t.properties.type==="radio")&&$l(t,"checked")):t.tagName==="option"?$l(t,"selected"):!1}function _se(e,t,n,r,a){return e.argument,e.argument.type,a.direction===e.argument.value}function pL(e,t){return(t.tagName==="button"||t.tagName==="input"||t.tagName==="select"||t.tagName==="textarea"||t.tagName==="optgroup"||t.tagName==="option"||t.tagName==="menuitem"||t.tagName==="fieldset")&&$l(t,"disabled")}function Cse(e,t){return!yL(t,n);function n(r){return r.type==="element"||r.type==="text"}}function Ase(e,t){return!pL(e,t)}function xse(e,t,n,r,a){return ai(a,e),a.elementIndex===0}function wse(e,t,n,r,a){return ai(a,e),a.typeIndex===0}function Zy(e){let t=e._cachedFn;if(!t){const n=e.argument;if(n.type!=="Formula")throw new Error("Expected `nth` formula, such as `even` or `2n+1` (`of` is not yet supported)");t=vse(n.a+"n+"+n.b),e._cachedFn=t}return t}function Dse(e,t,n,r,a){e.argument,e.argument.type;const o={...a,found:!1,one:!0,results:[],rootQuery:e.argument,scopeElements:[t],shallow:!1};return h_(o,{type:"root",children:t.children}),o.results.length>0}function kse(){}function hL(e,t,n,r,a){e.argument,e.argument.type;const o={...a,found:!1,one:!0,results:[],rootQuery:e.argument,scopeElements:[t],shallow:!1};return h_(o,t),o.results[0]===t}function Rse(e,t,n,r,a){return e.argument,e.argument.type,a.language!==""&&a.language!==void 0&&use(a.language,PE(e.argument.value)).length>0}function Ose(e,t,n,r,a){return ai(a,e),!!(a.elementCount&&a.elementIndex===a.elementCount-1)}function Ise(e,t,n,r,a){return ai(a,e),typeof a.typeIndex=="number"&&typeof a.typeCount=="number"&&a.typeIndex===a.typeCount-1}function Nse(e,t,n,r,a){return!hL(e,t,n,r,a)}function Lse(e,t,n,r,a){const o=Zy(e);return ai(a,e),typeof a.elementIndex=="number"&&o(a.elementIndex)}function Pse(e,t,n,r,a){const o=Zy(e);return ai(a,e),!!(typeof a.elementCount=="number"&&typeof a.elementIndex=="number"&&o(a.elementCount-a.elementIndex-1))}function Mse(e,t,n,r,a){const o=Zy(e);return ai(a,e),typeof a.typeCount=="number"&&typeof a.typeIndex=="number"&&o(a.typeCount-1-a.typeIndex)}function $se(e,t,n,r,a){const o=Zy(e);return ai(a,e),typeof a.typeIndex=="number"&&o(a.typeIndex)}function Fse(e,t,n,r,a){return ai(a,e),a.elementCount===1}function Bse(e,t,n,r,a){return ai(a,e),a.typeCount===1}function Use(e,t){return!gL(e,t)}function jse(e,t,n,r,a){return!mL(e,t,n,r,a)}function mL(e,t,n,r,a){return t.tagName==="input"||t.tagName==="textarea"?!$l(t,"readOnly")&&!$l(t,"disabled"):!!a.editableOrEditingHost}function gL(e,t){return(t.tagName==="input"||t.tagName==="textarea"||t.tagName==="select")&&$l(t,"required")}function Hse(e,t,n,r,a){return!!((!r||r.type==="root")&&a.schema&&(a.schema.space==="html"||a.schema.space==="svg")&&(t.tagName==="html"||t.tagName==="svg"))}function zse(e,t,n,r,a){return a.scopeElements.includes(t)}function yL(e,t){const n=e.children;let r=-1;for(;++r<n.length;)if(t(n[r]))return!0;return!1}function Vse(e){const t=e;throw new Error("Unknown pseudo-selector `"+t.name+"`")}function Gse(e,t,n,r,a){for(const o of e.items)if(o.type==="Attribute"){if(!rse(o,t,a.schema))return!1}else if(o.type==="Id"){if(!sse(o,t))return!1}else if(o.type==="ClassName"){if(!ise(o,t))return!1}else if(o.type==="PseudoClass"){if(!bse(o,t,n,r,a))return!1}else{if(o.type==="PseudoElement")throw new Error("Invalid selector: `::"+o.name+"`");if(o.type==="TagName"&&!lse(o,t))return!1}return!0}const qse=[];function h_(e,t){t&&vL(e,[],t,void 0,void 0,t)}function Ab(e,t,n){const r=e[t];r?r.push(n):e[t]=[n]}function Wse(e,t,n,r){const a=tg(t.descendant,t.directChild);let o,s=-1;const c={count:0,types:new Map},u={count:0,types:new Map};for(;++s<n.children.length;)RR(c,n.children[s]);for(s=-1;++s<n.children.length;){const d=n.children[s],p=d.type==="element"?d.tagName.toUpperCase():void 0;if(e.elementIndex=u.count,e.typeIndex=p&&u.types.get(p)||0,e.elementCount=c.count,e.typeCount=p?c.types.get(p):0,"children"in d){const h=tg(a,o),g=vL(e,h,n.children[s],s,n,r);o=tg(g.generalSibling,g.adjacentSibling)}if(e.one&&e.found)break;RR(u,n.children[s])}}function Yse(e,t,n,r,a){const o={adjacentSibling:void 0,descendant:void 0,directChild:void 0,generalSibling:void 0};let s=-1;for(;++s<t.length;){const c=t[s];if(e.one&&e.found)break;if(e.shallow&&c.nestedRule)throw new Error("Expected selector without nesting");if(Gse(c,n,r,a,e)){const u=c.nestedRule;if(u){const d=u.combinator==="+"?"adjacentSibling":u.combinator==="~"?"generalSibling":u.combinator===">"?"directChild":"descendant";Ab(o,d,u)}else e.found=!0,e.results.includes(n)||e.results.push(n)}c.combinator===void 0?Ab(o,"descendant",c):c.combinator==="~"&&Ab(o,"generalSibling",c)}return o}function tg(e,t){return e&&t&&e.length>0&&t.length>0?[...e,...t]:e&&e.length>0?e:t&&t.length>0?t:qse}function RR(e,t){if(t.type==="element"){const n=t.tagName.toUpperCase(),r=(e.types.get(n)||0)+1;e.count++,e.types.set(n,r)}}function vL(e,t,n,r,a,o){let s={adjacentSibling:void 0,descendant:void 0,directChild:void 0,generalSibling:void 0};const c=nse(e,n);if(n.type==="element"){let u=e.rootQuery.rules;a&&a!==o&&(u=e.rootQuery.rules.filter(d=>d.combinator===void 0||d.combinator===">"&&a===o)),s=Yse(e,tg(t,u),n,r,a)}return"children"in n&&!e.shallow&&!(e.one&&e.found)&&Wse(e,s,n,o),c(),s}function Qse(e,t,n){const r=Kse(e,t);return h_(r,t||void 0),r.results}function Kse(e,t,n){return{direction:"ltr",editableOrEditingHost:!1,elementCount:void 0,elementIndex:void 0,found:!1,language:void 0,one:!1,results:[],rootQuery:Xie(e),schema:_u,scopeElements:t?t.type==="root"?t.children:[t]:[],shallow:!1,typeIndex:void 0,typeCount:void 0}}const bL=(e=[],t="")=>(e.forEach(n=>{n.type==="text"?t+=n.value:n.type==="element"&&n.children&&Array.isArray(n.children)&&(t+=bL(n.children))}),t),Xse=e=>{const{selector:t,rewrite:n}=e||{};return r=>{if(!(!n||typeof n!="function")){if(t&&typeof t=="string"){const a=Qse(t,r);a&&a.length>0&&ha(r,a,(o,s,c)=>{n(o,s,c)});return}ha(r,(a,o,s)=>{n(a,o,s)})}}},Zse=(e="")=>(e.match(/([^?=&]+)(=([^&]*))/g)||[]).reduce((t,n)=>(t[n.slice(0,n.indexOf("="))]=n.slice(n.indexOf("=")+1),t),{}),Jse=(e=[],t)=>{let n=t;for(;n>-1;){if(n--,!e[n])return;if(e[n]&&e[n].value&&e[n].value.replace(/(\n|\s)/g,"")!==""||e[n].type!=="text")return!/^rehype:/.test(e[n].value)||e[n].type!=="comment"?void 0:e[n]}},EL=(e=[],t,n,r)=>{let a=t;for(;a<e.length;)if(a++,n){const o=e[a];if(o&&o.value&&o.value.replace(/(\n|\s)/g,"")!==""||e[a]&&e[a].type==="element")return o.tagName===n?o:void 0}else{const o=e[a];if(!o||o.type==="element"||o.type==="text"&&o.value.replace(/(\n|\s)/g,"")!=="")return;if(o.type&&/^(comment|raw)$/ig.test(o.type))return o.value&&!/^rehype:/.test(o.value.replace(/^(\s+)?<!--(.*?)-->/,"$2")||"")?void 0:r?EL(e,a,"pre",r)?void 0:(o.value=(o.value||"").replace(/^(\n|\s)+/,""),o):(o.value=(o.value||"").replace(/^(\n|\s)+/,""),o)}},OR=({value:e=""})=>{const t=Zse(e.replace(/^<!--(.*?)-->/,"$1").replace(/^rehype:/,""));return Object.keys(t).forEach(n=>{t[n]==="true"&&(t[n]=!0),t[n]==="false"&&(t[n]=!1),typeof t[n]=="string"&&!/^0/.test(t[n])&&!isNaN(+t[n])&&(t[n]=+t[n])}),t},IR=(e,t,n)=>n==="string"?{...e,"data-config":JSON.stringify({...t,rehyp:!0})}:n==="attr"?{...e,...t}:{...e,"data-config":{...t,rehyp:!0}},ele=(e={})=>{const{properties:t="data",codeBlockParames:n=!0}=e;return r=>{ha(r,"element",(a,o,s)=>{if(n&&a.tagName==="pre"&&a&&Array.isArray(a.children)&&s&&Array.isArray(s.children)&&s.children.length>1){const c=a.children[0];if(c&&c.tagName==="code"&&typeof o=="number"){const u=Jse(s.children,o);if(u){const d=OR(u);Object.keys(d).length>0&&(a.properties={...a.properties,"data-type":"rehyp"},c.properties=IR(c.properties,d,t))}}}if(/^(em|strong|b|a|i|p|pre|kbd|blockquote|h(1|2|3|4|5|6)|code|table|img|del|ul|ol)$/.test(a.tagName)&&s&&Array.isArray(s.children)&&typeof o=="number"){const c=EL(s.children,o,"",n);if(c){const u=OR(c);Object.keys(u).length>0&&(a.properties=IR(a.properties,u,t))}}})}};var tle=function(e){return t=>{ha(t,n=>{n.type==="element"&&n.tagName==="code"&&n.data&&n.data.meta&&(n.properties=Ne({},n.properties,{"data-meta":String(n.data.meta)}))})}},nle=function(e){return t=>{ha(t,n=>{if(n.type==="element"&&n.tagName==="code"&&n.properties&&n.properties.dataMeta){n.data||(n.data={});var r=n.properties.dataMeta;typeof r=="string"&&(n.data.meta=r),delete n.properties.dataMeta}})}};const rle=(e={})=>{const{openDelimiter:t="rehype:ignore:start",closeDelimiter:n="rehype:ignore:end"}=e;return r=>{ha(r,(a,o,s)=>{if(a.type==="element"||a.type==="root"){let c=!1;a.children=a.children.filter(u=>{if(u.type==="raw"||u.type==="comment"){let d=(u.value||"").trim();if(d=d.replace(/^<!--(.*?)-->/,"$1"),d===t)return c=!0,!1;if(d===n)return c=!1,!1}return!c})}})}};var ale={type:"element",tagName:"svg",properties:{className:"octicon octicon-link",viewBox:"0 0 16 16",version:"1.1",width:"16",height:"16",ariaHidden:"true"},children:[{type:"element",tagName:"path",children:[],properties:{fillRule:"evenodd",d:"M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"}}]};function ole(e){return e===void 0&&(e=""),{type:"element",tagName:"div",properties:{class:"copied","data-code":e},children:[{type:"element",tagName:"svg",properties:{className:"octicon-copy",ariaHidden:"true",viewBox:"0 0 16 16",fill:"currentColor",height:12,width:12},children:[{type:"element",tagName:"path",properties:{fillRule:"evenodd",d:"M0 6.75C0 5.784.784 5 1.75 5h1.5a.75.75 0 010 1.5h-1.5a.25.25 0 00-.25.25v7.5c0 .138.112.25.25.25h7.5a.25.25 0 00.25-.25v-1.5a.75.75 0 011.5 0v1.5A1.75 1.75 0 019.25 16h-7.5A1.75 1.75 0 010 14.25v-7.5z"},children:[]},{type:"element",tagName:"path",properties:{fillRule:"evenodd",d:"M5 1.75C5 .784 5.784 0 6.75 0h7.5C15.216 0 16 .784 16 1.75v7.5A1.75 1.75 0 0114.25 11h-7.5A1.75 1.75 0 015 9.25v-7.5zm1.75-.25a.25.25 0 00-.25.25v7.5c0 .138.112.25.25.25h7.5a.25.25 0 00.25-.25v-7.5a.25.25 0 00-.25-.25h-7.5z"},children:[]}]},{type:"element",tagName:"svg",properties:{className:"octicon-check",ariaHidden:"true",viewBox:"0 0 16 16",fill:"currentColor",height:12,width:12},children:[{type:"element",tagName:"path",properties:{fillRule:"evenodd",d:"M13.78 4.22a.75.75 0 010 1.06l-7.25 7.25a.75.75 0 01-1.06 0L2.22 9.28a.75.75 0 011.06-1.06L6 10.94l6.72-6.72a.75.75 0 011.06 0z"},children:[]}]}]}}const ile=/[\0-\x1F!-,\.\/:-@\[-\^`\{-\xA9\xAB-\xB4\xB6-\xB9\xBB-\xBF\xD7\xF7\u02C2-\u02C5\u02D2-\u02DF\u02E5-\u02EB\u02ED\u02EF-\u02FF\u0375\u0378\u0379\u037E\u0380-\u0385\u0387\u038B\u038D\u03A2\u03F6\u0482\u0530\u0557\u0558\u055A-\u055F\u0589-\u0590\u05BE\u05C0\u05C3\u05C6\u05C8-\u05CF\u05EB-\u05EE\u05F3-\u060F\u061B-\u061F\u066A-\u066D\u06D4\u06DD\u06DE\u06E9\u06FD\u06FE\u0700-\u070F\u074B\u074C\u07B2-\u07BF\u07F6-\u07F9\u07FB\u07FC\u07FE\u07FF\u082E-\u083F\u085C-\u085F\u086B-\u089F\u08B5\u08C8-\u08D2\u08E2\u0964\u0965\u0970\u0984\u098D\u098E\u0991\u0992\u09A9\u09B1\u09B3-\u09B5\u09BA\u09BB\u09C5\u09C6\u09C9\u09CA\u09CF-\u09D6\u09D8-\u09DB\u09DE\u09E4\u09E5\u09F2-\u09FB\u09FD\u09FF\u0A00\u0A04\u0A0B-\u0A0E\u0A11\u0A12\u0A29\u0A31\u0A34\u0A37\u0A3A\u0A3B\u0A3D\u0A43-\u0A46\u0A49\u0A4A\u0A4E-\u0A50\u0A52-\u0A58\u0A5D\u0A5F-\u0A65\u0A76-\u0A80\u0A84\u0A8E\u0A92\u0AA9\u0AB1\u0AB4\u0ABA\u0ABB\u0AC6\u0ACA\u0ACE\u0ACF\u0AD1-\u0ADF\u0AE4\u0AE5\u0AF0-\u0AF8\u0B00\u0B04\u0B0D\u0B0E\u0B11\u0B12\u0B29\u0B31\u0B34\u0B3A\u0B3B\u0B45\u0B46\u0B49\u0B4A\u0B4E-\u0B54\u0B58-\u0B5B\u0B5E\u0B64\u0B65\u0B70\u0B72-\u0B81\u0B84\u0B8B-\u0B8D\u0B91\u0B96-\u0B98\u0B9B\u0B9D\u0BA0-\u0BA2\u0BA5-\u0BA7\u0BAB-\u0BAD\u0BBA-\u0BBD\u0BC3-\u0BC5\u0BC9\u0BCE\u0BCF\u0BD1-\u0BD6\u0BD8-\u0BE5\u0BF0-\u0BFF\u0C0D\u0C11\u0C29\u0C3A-\u0C3C\u0C45\u0C49\u0C4E-\u0C54\u0C57\u0C5B-\u0C5F\u0C64\u0C65\u0C70-\u0C7F\u0C84\u0C8D\u0C91\u0CA9\u0CB4\u0CBA\u0CBB\u0CC5\u0CC9\u0CCE-\u0CD4\u0CD7-\u0CDD\u0CDF\u0CE4\u0CE5\u0CF0\u0CF3-\u0CFF\u0D0D\u0D11\u0D45\u0D49\u0D4F-\u0D53\u0D58-\u0D5E\u0D64\u0D65\u0D70-\u0D79\u0D80\u0D84\u0D97-\u0D99\u0DB2\u0DBC\u0DBE\u0DBF\u0DC7-\u0DC9\u0DCB-\u0DCE\u0DD5\u0DD7\u0DE0-\u0DE5\u0DF0\u0DF1\u0DF4-\u0E00\u0E3B-\u0E3F\u0E4F\u0E5A-\u0E80\u0E83\u0E85\u0E8B\u0EA4\u0EA6\u0EBE\u0EBF\u0EC5\u0EC7\u0ECE\u0ECF\u0EDA\u0EDB\u0EE0-\u0EFF\u0F01-\u0F17\u0F1A-\u0F1F\u0F2A-\u0F34\u0F36\u0F38\u0F3A-\u0F3D\u0F48\u0F6D-\u0F70\u0F85\u0F98\u0FBD-\u0FC5\u0FC7-\u0FFF\u104A-\u104F\u109E\u109F\u10C6\u10C8-\u10CC\u10CE\u10CF\u10FB\u1249\u124E\u124F\u1257\u1259\u125E\u125F\u1289\u128E\u128F\u12B1\u12B6\u12B7\u12BF\u12C1\u12C6\u12C7\u12D7\u1311\u1316\u1317\u135B\u135C\u1360-\u137F\u1390-\u139F\u13F6\u13F7\u13FE-\u1400\u166D\u166E\u1680\u169B-\u169F\u16EB-\u16ED\u16F9-\u16FF\u170D\u1715-\u171F\u1735-\u173F\u1754-\u175F\u176D\u1771\u1774-\u177F\u17D4-\u17D6\u17D8-\u17DB\u17DE\u17DF\u17EA-\u180A\u180E\u180F\u181A-\u181F\u1879-\u187F\u18AB-\u18AF\u18F6-\u18FF\u191F\u192C-\u192F\u193C-\u1945\u196E\u196F\u1975-\u197F\u19AC-\u19AF\u19CA-\u19CF\u19DA-\u19FF\u1A1C-\u1A1F\u1A5F\u1A7D\u1A7E\u1A8A-\u1A8F\u1A9A-\u1AA6\u1AA8-\u1AAF\u1AC1-\u1AFF\u1B4C-\u1B4F\u1B5A-\u1B6A\u1B74-\u1B7F\u1BF4-\u1BFF\u1C38-\u1C3F\u1C4A-\u1C4C\u1C7E\u1C7F\u1C89-\u1C8F\u1CBB\u1CBC\u1CC0-\u1CCF\u1CD3\u1CFB-\u1CFF\u1DFA\u1F16\u1F17\u1F1E\u1F1F\u1F46\u1F47\u1F4E\u1F4F\u1F58\u1F5A\u1F5C\u1F5E\u1F7E\u1F7F\u1FB5\u1FBD\u1FBF-\u1FC1\u1FC5\u1FCD-\u1FCF\u1FD4\u1FD5\u1FDC-\u1FDF\u1FED-\u1FF1\u1FF5\u1FFD-\u203E\u2041-\u2053\u2055-\u2070\u2072-\u207E\u2080-\u208F\u209D-\u20CF\u20F1-\u2101\u2103-\u2106\u2108\u2109\u2114\u2116-\u2118\u211E-\u2123\u2125\u2127\u2129\u212E\u213A\u213B\u2140-\u2144\u214A-\u214D\u214F-\u215F\u2189-\u24B5\u24EA-\u2BFF\u2C2F\u2C5F\u2CE5-\u2CEA\u2CF4-\u2CFF\u2D26\u2D28-\u2D2C\u2D2E\u2D2F\u2D68-\u2D6E\u2D70-\u2D7E\u2D97-\u2D9F\u2DA7\u2DAF\u2DB7\u2DBF\u2DC7\u2DCF\u2DD7\u2DDF\u2E00-\u2E2E\u2E30-\u3004\u3008-\u3020\u3030\u3036\u3037\u303D-\u3040\u3097\u3098\u309B\u309C\u30A0\u30FB\u3100-\u3104\u3130\u318F-\u319F\u31C0-\u31EF\u3200-\u33FF\u4DC0-\u4DFF\u9FFD-\u9FFF\uA48D-\uA4CF\uA4FE\uA4FF\uA60D-\uA60F\uA62C-\uA63F\uA673\uA67E\uA6F2-\uA716\uA720\uA721\uA789\uA78A\uA7C0\uA7C1\uA7CB-\uA7F4\uA828-\uA82B\uA82D-\uA83F\uA874-\uA87F\uA8C6-\uA8CF\uA8DA-\uA8DF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA954-\uA95F\uA97D-\uA97F\uA9C1-\uA9CE\uA9DA-\uA9DF\uA9FF\uAA37-\uAA3F\uAA4E\uAA4F\uAA5A-\uAA5F\uAA77-\uAA79\uAAC3-\uAADA\uAADE\uAADF\uAAF0\uAAF1\uAAF7-\uAB00\uAB07\uAB08\uAB0F\uAB10\uAB17-\uAB1F\uAB27\uAB2F\uAB5B\uAB6A-\uAB6F\uABEB\uABEE\uABEF\uABFA-\uABFF\uD7A4-\uD7AF\uD7C7-\uD7CA\uD7FC-\uD7FF\uE000-\uF8FF\uFA6E\uFA6F\uFADA-\uFAFF\uFB07-\uFB12\uFB18-\uFB1C\uFB29\uFB37\uFB3D\uFB3F\uFB42\uFB45\uFBB2-\uFBD2\uFD3E-\uFD4F\uFD90\uFD91\uFDC8-\uFDEF\uFDFC-\uFDFF\uFE10-\uFE1F\uFE30-\uFE32\uFE35-\uFE4C\uFE50-\uFE6F\uFE75\uFEFD-\uFF0F\uFF1A-\uFF20\uFF3B-\uFF3E\uFF40\uFF5B-\uFF65\uFFBF-\uFFC1\uFFC8\uFFC9\uFFD0\uFFD1\uFFD8\uFFD9\uFFDD-\uFFFF]|\uD800[\uDC0C\uDC27\uDC3B\uDC3E\uDC4E\uDC4F\uDC5E-\uDC7F\uDCFB-\uDD3F\uDD75-\uDDFC\uDDFE-\uDE7F\uDE9D-\uDE9F\uDED1-\uDEDF\uDEE1-\uDEFF\uDF20-\uDF2C\uDF4B-\uDF4F\uDF7B-\uDF7F\uDF9E\uDF9F\uDFC4-\uDFC7\uDFD0\uDFD6-\uDFFF]|\uD801[\uDC9E\uDC9F\uDCAA-\uDCAF\uDCD4-\uDCD7\uDCFC-\uDCFF\uDD28-\uDD2F\uDD64-\uDDFF\uDF37-\uDF3F\uDF56-\uDF5F\uDF68-\uDFFF]|\uD802[\uDC06\uDC07\uDC09\uDC36\uDC39-\uDC3B\uDC3D\uDC3E\uDC56-\uDC5F\uDC77-\uDC7F\uDC9F-\uDCDF\uDCF3\uDCF6-\uDCFF\uDD16-\uDD1F\uDD3A-\uDD7F\uDDB8-\uDDBD\uDDC0-\uDDFF\uDE04\uDE07-\uDE0B\uDE14\uDE18\uDE36\uDE37\uDE3B-\uDE3E\uDE40-\uDE5F\uDE7D-\uDE7F\uDE9D-\uDEBF\uDEC8\uDEE7-\uDEFF\uDF36-\uDF3F\uDF56-\uDF5F\uDF73-\uDF7F\uDF92-\uDFFF]|\uD803[\uDC49-\uDC7F\uDCB3-\uDCBF\uDCF3-\uDCFF\uDD28-\uDD2F\uDD3A-\uDE7F\uDEAA\uDEAD-\uDEAF\uDEB2-\uDEFF\uDF1D-\uDF26\uDF28-\uDF2F\uDF51-\uDFAF\uDFC5-\uDFDF\uDFF7-\uDFFF]|\uD804[\uDC47-\uDC65\uDC70-\uDC7E\uDCBB-\uDCCF\uDCE9-\uDCEF\uDCFA-\uDCFF\uDD35\uDD40-\uDD43\uDD48-\uDD4F\uDD74\uDD75\uDD77-\uDD7F\uDDC5-\uDDC8\uDDCD\uDDDB\uDDDD-\uDDFF\uDE12\uDE38-\uDE3D\uDE3F-\uDE7F\uDE87\uDE89\uDE8E\uDE9E\uDEA9-\uDEAF\uDEEB-\uDEEF\uDEFA-\uDEFF\uDF04\uDF0D\uDF0E\uDF11\uDF12\uDF29\uDF31\uDF34\uDF3A\uDF45\uDF46\uDF49\uDF4A\uDF4E\uDF4F\uDF51-\uDF56\uDF58-\uDF5C\uDF64\uDF65\uDF6D-\uDF6F\uDF75-\uDFFF]|\uD805[\uDC4B-\uDC4F\uDC5A-\uDC5D\uDC62-\uDC7F\uDCC6\uDCC8-\uDCCF\uDCDA-\uDD7F\uDDB6\uDDB7\uDDC1-\uDDD7\uDDDE-\uDDFF\uDE41-\uDE43\uDE45-\uDE4F\uDE5A-\uDE7F\uDEB9-\uDEBF\uDECA-\uDEFF\uDF1B\uDF1C\uDF2C-\uDF2F\uDF3A-\uDFFF]|\uD806[\uDC3B-\uDC9F\uDCEA-\uDCFE\uDD07\uDD08\uDD0A\uDD0B\uDD14\uDD17\uDD36\uDD39\uDD3A\uDD44-\uDD4F\uDD5A-\uDD9F\uDDA8\uDDA9\uDDD8\uDDD9\uDDE2\uDDE5-\uDDFF\uDE3F-\uDE46\uDE48-\uDE4F\uDE9A-\uDE9C\uDE9E-\uDEBF\uDEF9-\uDFFF]|\uD807[\uDC09\uDC37\uDC41-\uDC4F\uDC5A-\uDC71\uDC90\uDC91\uDCA8\uDCB7-\uDCFF\uDD07\uDD0A\uDD37-\uDD39\uDD3B\uDD3E\uDD48-\uDD4F\uDD5A-\uDD5F\uDD66\uDD69\uDD8F\uDD92\uDD99-\uDD9F\uDDAA-\uDEDF\uDEF7-\uDFAF\uDFB1-\uDFFF]|\uD808[\uDF9A-\uDFFF]|\uD809[\uDC6F-\uDC7F\uDD44-\uDFFF]|[\uD80A\uD80B\uD80E-\uD810\uD812-\uD819\uD824-\uD82B\uD82D\uD82E\uD830-\uD833\uD837\uD839\uD83D\uD83F\uD87B-\uD87D\uD87F\uD885-\uDB3F\uDB41-\uDBFF][\uDC00-\uDFFF]|\uD80D[\uDC2F-\uDFFF]|\uD811[\uDE47-\uDFFF]|\uD81A[\uDE39-\uDE3F\uDE5F\uDE6A-\uDECF\uDEEE\uDEEF\uDEF5-\uDEFF\uDF37-\uDF3F\uDF44-\uDF4F\uDF5A-\uDF62\uDF78-\uDF7C\uDF90-\uDFFF]|\uD81B[\uDC00-\uDE3F\uDE80-\uDEFF\uDF4B-\uDF4E\uDF88-\uDF8E\uDFA0-\uDFDF\uDFE2\uDFE5-\uDFEF\uDFF2-\uDFFF]|\uD821[\uDFF8-\uDFFF]|\uD823[\uDCD6-\uDCFF\uDD09-\uDFFF]|\uD82C[\uDD1F-\uDD4F\uDD53-\uDD63\uDD68-\uDD6F\uDEFC-\uDFFF]|\uD82F[\uDC6B-\uDC6F\uDC7D-\uDC7F\uDC89-\uDC8F\uDC9A-\uDC9C\uDC9F-\uDFFF]|\uD834[\uDC00-\uDD64\uDD6A-\uDD6C\uDD73-\uDD7A\uDD83\uDD84\uDD8C-\uDDA9\uDDAE-\uDE41\uDE45-\uDFFF]|\uD835[\uDC55\uDC9D\uDCA0\uDCA1\uDCA3\uDCA4\uDCA7\uDCA8\uDCAD\uDCBA\uDCBC\uDCC4\uDD06\uDD0B\uDD0C\uDD15\uDD1D\uDD3A\uDD3F\uDD45\uDD47-\uDD49\uDD51\uDEA6\uDEA7\uDEC1\uDEDB\uDEFB\uDF15\uDF35\uDF4F\uDF6F\uDF89\uDFA9\uDFC3\uDFCC\uDFCD]|\uD836[\uDC00-\uDDFF\uDE37-\uDE3A\uDE6D-\uDE74\uDE76-\uDE83\uDE85-\uDE9A\uDEA0\uDEB0-\uDFFF]|\uD838[\uDC07\uDC19\uDC1A\uDC22\uDC25\uDC2B-\uDCFF\uDD2D-\uDD2F\uDD3E\uDD3F\uDD4A-\uDD4D\uDD4F-\uDEBF\uDEFA-\uDFFF]|\uD83A[\uDCC5-\uDCCF\uDCD7-\uDCFF\uDD4C-\uDD4F\uDD5A-\uDFFF]|\uD83B[\uDC00-\uDDFF\uDE04\uDE20\uDE23\uDE25\uDE26\uDE28\uDE33\uDE38\uDE3A\uDE3C-\uDE41\uDE43-\uDE46\uDE48\uDE4A\uDE4C\uDE50\uDE53\uDE55\uDE56\uDE58\uDE5A\uDE5C\uDE5E\uDE60\uDE63\uDE65\uDE66\uDE6B\uDE73\uDE78\uDE7D\uDE7F\uDE8A\uDE9C-\uDEA0\uDEA4\uDEAA\uDEBC-\uDFFF]|\uD83C[\uDC00-\uDD2F\uDD4A-\uDD4F\uDD6A-\uDD6F\uDD8A-\uDFFF]|\uD83E[\uDC00-\uDFEF\uDFFA-\uDFFF]|\uD869[\uDEDE-\uDEFF]|\uD86D[\uDF35-\uDF3F]|\uD86E[\uDC1E\uDC1F]|\uD873[\uDEA2-\uDEAF]|\uD87A[\uDFE1-\uDFFF]|\uD87E[\uDE1E-\uDFFF]|\uD884[\uDF4B-\uDFFF]|\uDB40[\uDC00-\uDCFF\uDDF0-\uDFFF]/g,sle=Object.hasOwnProperty;let lle=class{constructor(){this.occurrences,this.reset()}slug(t,n){const r=this;let a=cle(t,n===!0);const o=a;for(;sle.call(r.occurrences,a);)r.occurrences[o]++,a=o+"-"+r.occurrences[o];return r.occurrences[a]=0,a}reset(){this.occurrences=Object.create(null)}};function cle(e,t){return typeof e!="string"?"":(t||(e=e.toLowerCase()),e.replace(ile,"").replace(/ /g,"-"))}function TL(e){const t=e.type==="element"?e.tagName.toLowerCase():"",n=t.length===2&&t.charCodeAt(0)===104?t.charCodeAt(1):0;return n>48&&n<55?n-48:void 0}const ule={},NR=new lle;function dle(e){const t=(e||ule).prefix||"";return function(n){NR.reset(),ha(n,"element",function(r){TL(r)&&!r.properties.id&&(r.properties.id=t+NR.slug(dL(r)))})}}const SL=(function(e){if(e==null)return hle;if(typeof e=="string")return ple(e);if(typeof e=="object")return fle(e);if(typeof e=="function")return m_(e);throw new Error("Expected function, string, or array as `test`")});function fle(e){const t=[];let n=-1;for(;++n<e.length;)t[n]=SL(e[n]);return m_(r);function r(...a){let o=-1;for(;++o<t.length;)if(t[o].apply(this,a))return!0;return!1}}function ple(e){return m_(t);function t(n){return n.tagName===e}}function m_(e){return t;function t(n,r,a){return!!(mle(n)&&e.call(this,n,typeof r=="number"?r:void 0,a||void 0))}}function hle(e){return!!(e&&typeof e=="object"&&"type"in e&&e.type==="element"&&"tagName"in e&&typeof e.tagName=="string")}function mle(e){return e!==null&&typeof e=="object"&&"type"in e&&"tagName"in e}const LR={type:"element",tagName:"span",properties:{className:["icon","icon-link"]},children:[]},gle={};function yle(e){const t=e||gle;let n=t.properties;const r=t.headingProperties,a=t.behavior||"prepend",o=t.content,s=t.group,c=SL(t.test);let u;return a==="after"||a==="before"?u=p:a==="wrap"?u=h:(u=d,n||(n={ariaHidden:"true",tabIndex:-1})),function(g){ha(g,"element",function(y,b,E){if(TL(y)&&y.properties.id&&c(y,b,E))return Object.assign(y.properties,km(r,y)),u(y,b,E)})};function d(g){const y=PR(o||LR,g);return g.children[a==="prepend"?"unshift":"push"](xb(g,km(n,g),y)),[Ef]}function p(g,y,b){if(typeof y!="number"||!b)return;const E=PR(o||LR,g),_=xb(g,km(n,g),E);let A=a==="before"?[_,g]:[g,_];if(s){const D=_L(s,g);D&&!Array.isArray(D)&&D.type==="element"&&(D.children=A,A=[D])}return b.children.splice(y,1,...A),[Ef,y+A.length]}function h(g){let y=g.children,b=[];return typeof o=="function"?(y=[],b=o(g)):o&&(b=g_(o)),g.children=[xb(g,km(n,g),Array.isArray(b)?[...y,...b]:[...y,b])],[Ef]}}function g_(e){return Ml(e)}function xb(e,t,n){return{type:"element",tagName:"a",properties:{...t,href:"#"+e.properties.id},children:n}}function PR(e,t){const n=_L(e,t);return Array.isArray(n)?n:[n]}function _L(e,t){return typeof e=="function"?e(t):g_(e)}function km(e,t){return typeof e=="function"?e(t):e?g_(e):{}}var vle=(e,t)=>(n,r,a)=>{if(n.type==="element"&&a&&a.type==="root"&&/h(1|2|3|4|5|6)/.test(n.tagName)){var o=n.children&&n.children[0];o&&o.properties&&o.properties.ariaHidden==="true"&&(o.properties=Ne({class:"anchor"},o.properties),o.children=[ale])}if(n.type==="element"&&n.tagName==="pre"&&!e){var s=bL(n.children);n.children.push(ole(s))}t&&t(n,r===null?void 0:r,a===null?void 0:a)},ble=[dle,yle,rle];const CL=Tt.forwardRef((e,t)=>{var n,r=[tle,nle,...ble,[Xse,{rewrite:vle((n=e.disableCopy)!=null?n:!1,e.rehypeRewrite)}],[ele,{properties:"attr"}],...e.rehypePlugins||[]];return P.jsx(Pie,Ne({},e,{rehypePlugins:r,ref:t}))});function Ele(e,t){return Ne({},e,t)}var Ou=Tt.createContext({markdown:""});function AL(e,t){return e===void 0&&(e=[]),t===void 0&&(t={}),e.forEach(n=>{n.children&&Array.isArray(n.children)?t=Ne({},t,AL(n.children||[])):n.keyCommand&&n.shortcuts&&n.execute&&(t[n.shortcuts.toLocaleLowerCase()]=n)}),t}function xL(e,t,n,r,a){t===void 0&&(t=[]);var o=AL(t||[]),s=[];if(e.altKey&&s.push("alt"),e.shiftKey&&s.push("shift"),e.metaKey&&s.push("cmd"),e.ctrlKey&&s.push("ctrl"),s.length>0&&!/(control|alt|meta|shift)/.test(e.key.toLocaleLowerCase())&&s.push(e.key.toLocaleLowerCase()),/escape/.test(e.key.toLocaleLowerCase())&&s.push("escape"),!(s.length<1)){var c=!!o[s.join("+")],u=c?o[s.join("+")]:void 0;if(Object.keys(o).forEach(d=>{var p=d.split("+").every(h=>/ctrlcmd/.test(h)?s.includes("ctrl")||s.includes("cmd"):s.includes(h));p&&(u=o[d])}),u&&n){e.stopPropagation(),e.preventDefault(),n.executeCommand(u,r,a,s);return}}}var wb;function MR(e){if(e.nodeName!=="TEXTAREA")return!1;if(typeof wb>"u"){var t=document.createElement("textarea");t.value="1",wb=!!t.firstChild}return wb}function ru(e,t){if(e.focus(),document.selection){var n=document.selection.createRange();n.text=t,n.collapse(!1),n.select();return}var r=!1;if(t!==""?r=document.execCommand&&document.execCommand("insertText",!1,t):r=document.execCommand&&document.execCommand("delete",!1),!r){var a=e.selectionStart,o=e.selectionEnd;if(typeof e.setRangeText=="function")e.setRangeText(t);else{var s=document.createRange(),c=document.createTextNode(t);if(MR(e)){var u=e.firstChild;if(!u)e.appendChild(c);else{for(var d=0,p=null,h=null;u&&(p===null||h===null);){var g=u.nodeValue.length;a>=d&&a<=d+g&&s.setStart(p=u,a-d),o>=d&&o<=d+g&&s.setEnd(h=u,o-d),d+=g,u=u.nextSibling}a!==o&&s.deleteContents()}}if(MR(e)&&s.commonAncestorContainer.nodeName==="#text")s.insertNode(c);else{var y=e.value;e.value=y.slice(0,a)+t+y.slice(o)}}e.setSelectionRange(a+t.length,a+t.length);var b=document.createEvent("UIEvent");b.initEvent("input",!0,!1),e.dispatchEvent(b)}}function Xr(e){var{text:t,selection:n,prefix:r,suffix:a=r}=e,o=n;if(t&&t.length&&n.start===n.end&&(o=Tle(t,n.start)),o.start>=r.length&&o.end<=t.length-a.length){var s=t.slice(o.start-r.length,o.end+a.length);if(s.startsWith(r)&&s.endsWith(a))return{start:o.start-r.length,end:o.end+a.length}}return o}function kf(e){var{text:t,selection:n}=e,r=t.slice(0,n.start).lastIndexOf(`
277
+ `&&Ie()}function bt(){for(;qie[xe];)Ie()}function ce(Ee){Ee===void 0&&(Ee=!1),bt();for(var Te=[qe(Ee)];ge(",");)Ie(),bt(),Te.push(qe(Ee));return{type:"Selector",rules:Te}}function me(){je("["),bt();var Ee;if(ge("|")){ke(R,"Namespaces are not enabled."),Ie();var Te=Pe();ke(Te,"Expected attribute name."),Ee={type:"Attribute",name:Te,namespace:{type:"NoNamespace"}}}else if(ge("*")){ke(R,"Namespaces are not enabled."),ke(O,"Wildcard namespace is not enabled."),Ie(),je("|");var ut=Pe();ke(ut,"Expected attribute name."),Ee={type:"Attribute",name:ut,namespace:{type:"WildcardNamespace"}}}else{var nt=Pe();if(ke(nt,"Expected attribute name."),Ee={type:"Attribute",name:nt},ge("|")){var Fn=de;if(Ie(),Qd(xe)){ke(R,"Namespaces are not enabled.");var jr=Pe();ke(jr,"Expected attribute name."),Ee={type:"Attribute",name:jr,namespace:{type:"NamespaceName",name:nt}}}else Ue(Fn)}}if(ke(Ee.name,"Expected attribute name."),bt(),Et()&&!o)return Ee;if(ge("]"))Ie();else{if(Ee.operator=St(T),ke(Ee.operator,"Expected a valid attribute selector operator."),bt(),Rt(),Wie[xe])Ee.value={type:"String",value:Ge(xe)};else if(k&&ge("$")){Ie();var _r=Pe();ke(_r,"Expected substitute name."),Ee.value={type:"Substitution",name:_r}}else{var mr=Pe();ke(mr,"Expected attribute value."),Ee.value={type:"String",value:mr}}if(bt(),Et()&&!o)return Ee;if(!ge("]")){var gr=Pe();if(ke(gr,"Expected end of attribute selector."),Ee.caseSensitivityModifier=gr,ke(B,"Attribute case sensitivity modifiers are not enabled."),ke(U||M[Ee.caseSensitivityModifier],"Unknown attribute case sensitivity modifier."),bt(),Et()&&!o)return Ee}je("]")}return Ee}function Be(){for(var Ee="";Sb[xe];)Ee+=Ye();return ke(Ee!=="","Formula parse error."),parseInt(Ee)}var We=function(){return ge("-")||ge("+")||Sb[xe]};function Qe(){if(ge("e")||ge("o")){var Ee=Pe();if(Ee==="even")return bt(),[2,0];if(Ee==="odd")return bt(),[2,1]}var Te=null,ut=1;if(ge("-")&&(Ie(),ut=-1),We()&&(ge("+")&&Ie(),Te=Be(),!ge("\\")&&!ge("n")))return[0,Te*ut];Te===null&&(Te=1),Te*=ut;var nt;if(ge("\\")?(Ie(),Kd(xe)?nt=Ze():nt=Ye()):nt=Ye(),ke(nt==="n",'Formula parse error: expected "n".'),bt(),ge("+")||ge("-")){var Fn=ge("+")?1:-1;return Ie(),bt(),[Te,Fn*Be()]}else return[Te,0]}function gt(Ee,Te,ut){var nt;if(ge("(")){if(Ie(),bt(),k&&ge("$")){Ie();var Fn=Pe();ke(Fn,"Expected substitute name."),nt={type:"Substitution",name:Fn}}else if(ut.type==="String")nt={type:"String",value:Ot()},ke(nt.value,"Expected ".concat(Te," argument value."));else if(ut.type==="Selector")nt=ce(!0);else if(ut.type==="Formula"){var jr=Qe(),_r=jr[0],mr=jr[1];if(nt={type:"Formula",a:_r,b:mr},ut.ofSelector&&(bt(),ge("o")||ge("\\"))){var gr=Pe();ke(gr==="of","Formula of selector parse error."),bt(),nt={type:"FormulaOfSelector",a:_r,b:mr,selector:qe()}}}else return Ve("Invalid ".concat(Te," signature."));if(bt(),Et()&&!o)return nt;je(")")}else ke(ut.optional,"Argument is required for ".concat(Te,' "').concat(Ee,'".'));return nt}function ln(){if(ge("*"))return ke(A,"Wildcard tag name is not enabled."),Ie(),{type:"WildcardTag"};if(Qd(xe)){ke(_,"Tag names are not enabled.");var Ee=Pe();return ke(Ee,"Expected tag name."),{type:"TagName",name:Ee}}else return Ve("Expected tag name.")}function Qt(){if(ge("*")){var Ee=de;if(Ie(),!ge("|")||(Ie(),!Oe()))return Ue(Ee),ln();ke(R,"Namespaces are not enabled."),ke(O,"Wildcard namespace is not enabled.");var Te=ln();return Te.namespace={type:"WildcardNamespace"},Te}else if(ge("|")){ke(R,"Namespaces are not enabled."),Ie();var Te=ln();return Te.namespace={type:"NoNamespace"},Te}else if(Qd(xe)){var ut=Pe();if(ke(ut,"Expected tag name."),!ge("|"))return ke(_,"Tag names are not enabled."),{type:"TagName",name:ut};var Ee=de;if(Ie(),!Oe())return Ue(Ee),{type:"TagName",name:ut};ke(R,"Namespaces are not enabled.");var Te=ln();return Te.namespace={type:"NamespaceName",name:ut},Te}else return Ve("Expected tag name.")}function qe(Ee){var Te,ut;Ee===void 0&&(Ee=!1);var nt={type:"Rule",items:[]};if(Ee){var Fn=St(F);Fn&&(nt.combinator=Fn,bt())}for(;de<be;)if(Oe())ke(nt.items.length===0,"Unexpected tag/namespace start."),nt.items.push(Qt());else if(ge("|")){var jr=de;if(Ie(),Oe())ke(nt.items.length===0,"Unexpected tag/namespace start."),Ue(jr),nt.items.push(Qt());else{Ue(jr);break}}else if(ge(".")){ke(w,"Class names are not enabled."),Ie();var _r=Pe();ke(_r,"Expected class name."),nt.items.push({type:"ClassName",name:_r})}else if(ge("#")){ke(D,"IDs are not enabled."),Ie();var mr=Pe();ke(mr,"Expected ID name."),nt.items.push({type:"Id",name:mr})}else if(ge("["))ke(j,"Attributes are not enabled."),nt.items.push(me());else if(ge(":")){var gr=!1,Ma=!1;Ie(),ge(":")&&(ke(oe,"Pseudo elements are not enabled."),ke(re,"Pseudo elements double colon notation is not enabled."),gr=!0,Ie());var In=Pe();if(ke(gr||In,"Expected pseudo-class name."),ke(!gr||In,"Expected pseudo-element name."),ke(In,"Expected pseudo-class name."),!(!gr||L||Object.prototype.hasOwnProperty.call(ee,In))){var Hr=TR.pseudoElements[In],ft='Unknown pseudo-element "'.concat(In,'"');Hr&&Hr.length>0&&(ft+=". It is defined in: ".concat(Hr.join(", "))),Ve(ft+".")}if(Ma=oe&&(gr||!gr&&I&&Object.prototype.hasOwnProperty.call(ee,In)),Ma){var K=(Te=ee[In])!==null&&Te!==void 0?Te:L&&yR,ie={type:"PseudoElement",name:In},pe=gt(In,"pseudo-element",K);pe&&(ke(pe.type!=="Formula"&&pe.type!=="FormulaOfSelector","Pseudo-elements cannot have formula argument."),ie.argument=pe),nt.items.push(ie)}else{ke(X,"Pseudo-classes are not enabled.");var K=(ut=z[In])!==null&&ut!==void 0?ut:Z&&yR;if(!K){var Hr=TR.pseudoClasses[In],ft='Unknown pseudo-class: "'.concat(In,'"');Hr&&Hr.length>0&&(ft+=". It is defined in: ".concat(Hr.join(", "))),Ve(ft+".")}var pe=gt(In,"pseudo-class",K),De={type:"PseudoClass",name:In};pe&&(De.argument=pe),nt.items.push(De)}}else break;if(nt.items.length===0)return Et()?Ve("Expected rule but end of input reached."):Ve('Expected rule but "'.concat(xe,'" found.'));if(bt(),!Et()&&!ge(",")&&!ge(")")){var Fn=St(F);bt(),nt.nestedRule=qe(),nt.nestedRule.combinator=Fn}return nt}return function(Ee){if(typeof Ee!="string")throw new Error("".concat(_b,"Expected string input."));return te=Ee,be=te.length,de=0,xe=te.charAt(0),ce()}}const Kie=Qie({syntax:"selectors-4"});function Xie(e){if(typeof e!="string")throw new TypeError("Expected `string` as selector, not `"+e+"`");return Kie(e)}const cL="֑-߿יִ-﷽ﹰ-ﻼ",uL="A-Za-zÀ-ÖØ-öø-ʸ̀-֐ࠀ-῿‎Ⰰ-﬜︀-﹯﻽-￿",Zie=new RegExp("^[^"+uL+"]*["+cL+"]"),Jie=new RegExp("^[^"+cL+"]*["+uL+"]");function ese(e){const t=String(e||"");return Zie.test(t)?"rtl":Jie.test(t)?"ltr":"neutral"}function dL(e){return"children"in e?fL(e):"value"in e?e.value:""}function tse(e){return e.type==="text"?e.value:"children"in e?fL(e):""}function fL(e){let t=-1;const n=[];for(;++t<e.children.length;)n[t]=tse(e.children[t]);return n.join("")}function nse(e,t){const n=e.schema,r=e.language,a=e.direction,o=e.editableOrEditingHost;let s;if(t.type==="element"){const d=t.properties.xmlLang||t.properties.lang,p=t.properties.type||"text",h=_R(t);d!=null&&(e.language=String(d)),n&&n.space==="html"?(t.properties.contentEditable==="true"&&(e.editableOrEditingHost=!0),t.tagName==="svg"&&(e.schema=Bi),h==="rtl"?s=h:h==="ltr"||h!=="auto"&&t.tagName==="html"||h!=="auto"&&t.tagName==="input"&&p==="tel"?s="ltr":(h==="auto"||t.tagName==="bdi")&&(t.tagName==="textarea"?s=Cb(dL(t)):t.tagName==="input"&&(p==="email"||p==="search"||p==="tel"||p==="text")?s=t.properties.value?Cb(String(t.properties.value)):"ltr":ha(t,u)),s&&(e.direction=s)):e.editableOrEditingHost&&(e.editableOrEditingHost=!1)}return c;function c(){e.schema=n,e.language=r,e.direction=a,e.editableOrEditingHost=o}function u(d){if(d.type==="text")return s=Cb(d.value),s?$g:void 0;if(d!==t&&d.type==="element"&&(d.tagName==="bdi"||d.tagName==="script"||d.tagName==="style"||d.tagName==="textare"||_R(d)))return Ef}}function Cb(e){const t=ese(e);return t==="neutral"?void 0:t}function _R(e){const t=e.type==="element"&&typeof e.properties.dir=="string"?e.properties.dir.toLowerCase():void 0;return t==="auto"||t==="ltr"||t==="rtl"?t:void 0}function rse(e,t,n){const r=Pp(n,e.name),a=t.properties[r.property];let o=ase(a,r);if(!e.value)return o!==void 0;e.value.type;let s=e.value.value;if(e.caseSensitivityModifier==="i"&&(s=s.toLowerCase(),o&&(o=o.toLowerCase())),o!==void 0)switch(e.operator){case"=":return s===o;case"$=":return s===o.slice(-s.length);case"*=":return o.includes(s);case"^=":return s===o.slice(0,s.length);case"|=":return s===o||s===o.slice(0,s.length)&&o.charAt(s.length)==="-";case"~=":return s===o||ME(o).includes(s)}return!1}function ase(e,t){if(e!=null)if(typeof e=="boolean"){if(e)return t.attribute}else if(Array.isArray(e)){if(e.length>0)return(t.commaSeparated?Ry:Oy)(e)}else return String(e)}const ose=[];function ise(e,t){return(t.properties.className||ose).includes(e.name)}function sse(e,t){return t.properties.id===e.name}function lse(e,t){return e.name===t.tagName}function cse(e,t){return function(n,r){let a=CR(n,"tag");const o=CR(r??"*","range"),s=[];let c=-1;for(;++c<o.length;){const u=o[c].toLowerCase();let d=-1;const p=[];for(;++d<a.length;)e(a[d].toLowerCase(),u)?s.push(a[d]):p.push(a[d]);a=p}return s}}const use=cse(function(e,t){const n=e.split("-"),r=t.split("-");let a=0,o=0;if(r[o]!=="*"&&n[a]!==r[o])return!1;for(a++,o++;o<r.length;){if(r[o]==="*"){o++;continue}if(!n[a])return!1;if(n[a]===r[o]){a++,o++;continue}if(n[a].length===1)return!1;a++}return!0});function CR(e,t){const n=e&&typeof e=="string"?[e]:e;if(!n||typeof n!="object"||!("length"in n))throw new Error("Invalid "+t+" `"+n+"`, expected non-empty string");return n}const dse=new Set([9,10,12,13,32]),AR=48,fse=57;function pse(e){if(e=e.trim().toLowerCase(),e==="even")return[2,0];if(e==="odd")return[2,1];let t=0,n=0,r=o(),a=s();if(t<e.length&&e.charAt(t)==="n"&&(t++,n=r*(a??1),c(),t<e.length?(r=o(),c(),a=s()):r=a=0),a===null||t<e.length)throw new Error(`n-th rule couldn't be parsed ('${e}')`);return[n,r*a];function o(){return e.charAt(t)==="-"?(t++,-1):(e.charAt(t)==="+"&&t++,1)}function s(){const u=t;let d=0;for(;t<e.length&&e.charCodeAt(t)>=AR&&e.charCodeAt(t)<=fse;)d=d*10+(e.charCodeAt(t)-AR),t++;return t===u?null:d}function c(){for(;t<e.length&&dse.has(e.charCodeAt(t));)t++}}var xR,wR;function hse(){return wR||(wR=1,xR={trueFunc:function(){return!0},falseFunc:function(){return!1}}),xR}var mse=hse();const DR=Gy(mse);function gse(e){const t=e[0],n=e[1]-1;if(n<0&&t<=0)return DR.falseFunc;if(t===-1)return o=>o<=n;if(t===0)return o=>o===n;if(t===1)return n<0?DR.trueFunc:o=>o>=n;const r=Math.abs(t),a=(n%r+r)%r;return t>1?o=>o>=n&&o%r===a:o=>o<=n&&o%r===a}function kR(e){return gse(pse(e))}const yse={}.hasOwnProperty;function $l(e,t){const n=e.type==="element"&&yse.call(e.properties,t)&&e.properties[t];return n!=null&&n!==!1}const vse=kR.default||kR,bse=ky("name",{handlers:{"any-link":Ese,blank:Tse,checked:Sse,dir:_se,disabled:pL,empty:Cse,enabled:Ase,"first-child":xse,"first-of-type":wse,has:Dse,is:hL,lang:Rse,"last-child":Ose,"last-of-type":Ise,not:Nse,"nth-child":Lse,"nth-last-child":Pse,"nth-last-of-type":Mse,"nth-of-type":$se,"only-child":Fse,"only-of-type":Bse,optional:Use,"read-only":jse,"read-write":mL,required:gL,root:Hse,scope:zse},invalid:kse,unknown:Vse});function Ese(e,t){return(t.tagName==="a"||t.tagName==="area"||t.tagName==="link")&&$l(t,"href")}function ai(e,t){if(e.shallow)throw new Error("Cannot use `:"+t.name+"` without parent")}function Tse(e,t){return!yL(t,n);function n(r){return r.type==="element"||r.type==="text"&&!Lp(r)}}function Sse(e,t){return t.tagName==="input"||t.tagName==="menuitem"?!!((t.properties.type==="checkbox"||t.properties.type==="radio")&&$l(t,"checked")):t.tagName==="option"?$l(t,"selected"):!1}function _se(e,t,n,r,a){return e.argument,e.argument.type,a.direction===e.argument.value}function pL(e,t){return(t.tagName==="button"||t.tagName==="input"||t.tagName==="select"||t.tagName==="textarea"||t.tagName==="optgroup"||t.tagName==="option"||t.tagName==="menuitem"||t.tagName==="fieldset")&&$l(t,"disabled")}function Cse(e,t){return!yL(t,n);function n(r){return r.type==="element"||r.type==="text"}}function Ase(e,t){return!pL(e,t)}function xse(e,t,n,r,a){return ai(a,e),a.elementIndex===0}function wse(e,t,n,r,a){return ai(a,e),a.typeIndex===0}function Zy(e){let t=e._cachedFn;if(!t){const n=e.argument;if(n.type!=="Formula")throw new Error("Expected `nth` formula, such as `even` or `2n+1` (`of` is not yet supported)");t=vse(n.a+"n+"+n.b),e._cachedFn=t}return t}function Dse(e,t,n,r,a){e.argument,e.argument.type;const o={...a,found:!1,one:!0,results:[],rootQuery:e.argument,scopeElements:[t],shallow:!1};return h_(o,{type:"root",children:t.children}),o.results.length>0}function kse(){}function hL(e,t,n,r,a){e.argument,e.argument.type;const o={...a,found:!1,one:!0,results:[],rootQuery:e.argument,scopeElements:[t],shallow:!1};return h_(o,t),o.results[0]===t}function Rse(e,t,n,r,a){return e.argument,e.argument.type,a.language!==""&&a.language!==void 0&&use(a.language,PE(e.argument.value)).length>0}function Ose(e,t,n,r,a){return ai(a,e),!!(a.elementCount&&a.elementIndex===a.elementCount-1)}function Ise(e,t,n,r,a){return ai(a,e),typeof a.typeIndex=="number"&&typeof a.typeCount=="number"&&a.typeIndex===a.typeCount-1}function Nse(e,t,n,r,a){return!hL(e,t,n,r,a)}function Lse(e,t,n,r,a){const o=Zy(e);return ai(a,e),typeof a.elementIndex=="number"&&o(a.elementIndex)}function Pse(e,t,n,r,a){const o=Zy(e);return ai(a,e),!!(typeof a.elementCount=="number"&&typeof a.elementIndex=="number"&&o(a.elementCount-a.elementIndex-1))}function Mse(e,t,n,r,a){const o=Zy(e);return ai(a,e),typeof a.typeCount=="number"&&typeof a.typeIndex=="number"&&o(a.typeCount-1-a.typeIndex)}function $se(e,t,n,r,a){const o=Zy(e);return ai(a,e),typeof a.typeIndex=="number"&&o(a.typeIndex)}function Fse(e,t,n,r,a){return ai(a,e),a.elementCount===1}function Bse(e,t,n,r,a){return ai(a,e),a.typeCount===1}function Use(e,t){return!gL(e,t)}function jse(e,t,n,r,a){return!mL(e,t,n,r,a)}function mL(e,t,n,r,a){return t.tagName==="input"||t.tagName==="textarea"?!$l(t,"readOnly")&&!$l(t,"disabled"):!!a.editableOrEditingHost}function gL(e,t){return(t.tagName==="input"||t.tagName==="textarea"||t.tagName==="select")&&$l(t,"required")}function Hse(e,t,n,r,a){return!!((!r||r.type==="root")&&a.schema&&(a.schema.space==="html"||a.schema.space==="svg")&&(t.tagName==="html"||t.tagName==="svg"))}function zse(e,t,n,r,a){return a.scopeElements.includes(t)}function yL(e,t){const n=e.children;let r=-1;for(;++r<n.length;)if(t(n[r]))return!0;return!1}function Vse(e){const t=e;throw new Error("Unknown pseudo-selector `"+t.name+"`")}function Gse(e,t,n,r,a){for(const o of e.items)if(o.type==="Attribute"){if(!rse(o,t,a.schema))return!1}else if(o.type==="Id"){if(!sse(o,t))return!1}else if(o.type==="ClassName"){if(!ise(o,t))return!1}else if(o.type==="PseudoClass"){if(!bse(o,t,n,r,a))return!1}else{if(o.type==="PseudoElement")throw new Error("Invalid selector: `::"+o.name+"`");if(o.type==="TagName"&&!lse(o,t))return!1}return!0}const qse=[];function h_(e,t){t&&vL(e,[],t,void 0,void 0,t)}function Ab(e,t,n){const r=e[t];r?r.push(n):e[t]=[n]}function Wse(e,t,n,r){const a=tg(t.descendant,t.directChild);let o,s=-1;const c={count:0,types:new Map},u={count:0,types:new Map};for(;++s<n.children.length;)RR(c,n.children[s]);for(s=-1;++s<n.children.length;){const d=n.children[s],p=d.type==="element"?d.tagName.toUpperCase():void 0;if(e.elementIndex=u.count,e.typeIndex=p&&u.types.get(p)||0,e.elementCount=c.count,e.typeCount=p?c.types.get(p):0,"children"in d){const h=tg(a,o),g=vL(e,h,n.children[s],s,n,r);o=tg(g.generalSibling,g.adjacentSibling)}if(e.one&&e.found)break;RR(u,n.children[s])}}function Yse(e,t,n,r,a){const o={adjacentSibling:void 0,descendant:void 0,directChild:void 0,generalSibling:void 0};let s=-1;for(;++s<t.length;){const c=t[s];if(e.one&&e.found)break;if(e.shallow&&c.nestedRule)throw new Error("Expected selector without nesting");if(Gse(c,n,r,a,e)){const u=c.nestedRule;if(u){const d=u.combinator==="+"?"adjacentSibling":u.combinator==="~"?"generalSibling":u.combinator===">"?"directChild":"descendant";Ab(o,d,u)}else e.found=!0,e.results.includes(n)||e.results.push(n)}c.combinator===void 0?Ab(o,"descendant",c):c.combinator==="~"&&Ab(o,"generalSibling",c)}return o}function tg(e,t){return e&&t&&e.length>0&&t.length>0?[...e,...t]:e&&e.length>0?e:t&&t.length>0?t:qse}function RR(e,t){if(t.type==="element"){const n=t.tagName.toUpperCase(),r=(e.types.get(n)||0)+1;e.count++,e.types.set(n,r)}}function vL(e,t,n,r,a,o){let s={adjacentSibling:void 0,descendant:void 0,directChild:void 0,generalSibling:void 0};const c=nse(e,n);if(n.type==="element"){let u=e.rootQuery.rules;a&&a!==o&&(u=e.rootQuery.rules.filter(d=>d.combinator===void 0||d.combinator===">"&&a===o)),s=Yse(e,tg(t,u),n,r,a)}return"children"in n&&!e.shallow&&!(e.one&&e.found)&&Wse(e,s,n,o),c(),s}function Qse(e,t,n){const r=Kse(e,t);return h_(r,t||void 0),r.results}function Kse(e,t,n){return{direction:"ltr",editableOrEditingHost:!1,elementCount:void 0,elementIndex:void 0,found:!1,language:void 0,one:!1,results:[],rootQuery:Xie(e),schema:_u,scopeElements:t?t.type==="root"?t.children:[t]:[],shallow:!1,typeIndex:void 0,typeCount:void 0}}const bL=(e=[],t="")=>(e.forEach(n=>{n.type==="text"?t+=n.value:n.type==="element"&&n.children&&Array.isArray(n.children)&&(t+=bL(n.children))}),t),Xse=e=>{const{selector:t,rewrite:n}=e||{};return r=>{if(!(!n||typeof n!="function")){if(t&&typeof t=="string"){const a=Qse(t,r);a&&a.length>0&&ha(r,a,(o,s,c)=>{n(o,s,c)});return}ha(r,(a,o,s)=>{n(a,o,s)})}}},Zse=(e="")=>(e.match(/([^?=&]+)(=([^&]*))/g)||[]).reduce((t,n)=>(t[n.slice(0,n.indexOf("="))]=n.slice(n.indexOf("=")+1),t),{}),Jse=(e=[],t)=>{let n=t;for(;n>-1;){if(n--,!e[n])return;if(e[n]&&e[n].value&&e[n].value.replace(/(\n|\s)/g,"")!==""||e[n].type!=="text")return!/^rehype:/.test(e[n].value)||e[n].type!=="comment"?void 0:e[n]}},EL=(e=[],t,n,r)=>{let a=t;for(;a<e.length;)if(a++,n){const o=e[a];if(o&&o.value&&o.value.replace(/(\n|\s)/g,"")!==""||e[a]&&e[a].type==="element")return o.tagName===n?o:void 0}else{const o=e[a];if(!o||o.type==="element"||o.type==="text"&&o.value.replace(/(\n|\s)/g,"")!=="")return;if(o.type&&/^(comment|raw)$/ig.test(o.type))return o.value&&!/^rehype:/.test(o.value.replace(/^(\s+)?<!--(.*?)-->/,"$2")||"")?void 0:r?EL(e,a,"pre",r)?void 0:(o.value=(o.value||"").replace(/^(\n|\s)+/,""),o):(o.value=(o.value||"").replace(/^(\n|\s)+/,""),o)}},OR=({value:e=""})=>{const t=Zse(e.replace(/^<!--(.*?)-->/,"$1").replace(/^rehype:/,""));return Object.keys(t).forEach(n=>{t[n]==="true"&&(t[n]=!0),t[n]==="false"&&(t[n]=!1),typeof t[n]=="string"&&!/^0/.test(t[n])&&!isNaN(+t[n])&&(t[n]=+t[n])}),t},IR=(e,t,n)=>n==="string"?{...e,"data-config":JSON.stringify({...t,rehyp:!0})}:n==="attr"?{...e,...t}:{...e,"data-config":{...t,rehyp:!0}},ele=(e={})=>{const{properties:t="data",codeBlockParames:n=!0}=e;return r=>{ha(r,"element",(a,o,s)=>{if(n&&a.tagName==="pre"&&a&&Array.isArray(a.children)&&s&&Array.isArray(s.children)&&s.children.length>1){const c=a.children[0];if(c&&c.tagName==="code"&&typeof o=="number"){const u=Jse(s.children,o);if(u){const d=OR(u);Object.keys(d).length>0&&(a.properties={...a.properties,"data-type":"rehyp"},c.properties=IR(c.properties,d,t))}}}if(/^(em|strong|b|a|i|p|pre|kbd|blockquote|h(1|2|3|4|5|6)|code|table|img|del|ul|ol)$/.test(a.tagName)&&s&&Array.isArray(s.children)&&typeof o=="number"){const c=EL(s.children,o,"",n);if(c){const u=OR(c);Object.keys(u).length>0&&(a.properties=IR(a.properties,u,t))}}})}};var tle=function(e){return t=>{ha(t,n=>{n.type==="element"&&n.tagName==="code"&&n.data&&n.data.meta&&(n.properties=Ne({},n.properties,{"data-meta":String(n.data.meta)}))})}},nle=function(e){return t=>{ha(t,n=>{if(n.type==="element"&&n.tagName==="code"&&n.properties&&n.properties.dataMeta){n.data||(n.data={});var r=n.properties.dataMeta;typeof r=="string"&&(n.data.meta=r),delete n.properties.dataMeta}})}};const rle=(e={})=>{const{openDelimiter:t="rehype:ignore:start",closeDelimiter:n="rehype:ignore:end"}=e;return r=>{ha(r,(a,o,s)=>{if(a.type==="element"||a.type==="root"){let c=!1;a.children=a.children.filter(u=>{if(u.type==="raw"||u.type==="comment"){let d=(u.value||"").trim();if(d=d.replace(/^<!--(.*?)-->/,"$1"),d===t)return c=!0,!1;if(d===n)return c=!1,!1}return!c})}})}};var ale={type:"element",tagName:"svg",properties:{className:"octicon octicon-link",viewBox:"0 0 16 16",version:"1.1",width:"16",height:"16",ariaHidden:"true"},children:[{type:"element",tagName:"path",children:[],properties:{fillRule:"evenodd",d:"M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"}}]};function ole(e){return e===void 0&&(e=""),{type:"element",tagName:"div",properties:{class:"copied","data-code":e},children:[{type:"element",tagName:"svg",properties:{className:"octicon-copy",ariaHidden:"true",viewBox:"0 0 16 16",fill:"currentColor",height:12,width:12},children:[{type:"element",tagName:"path",properties:{fillRule:"evenodd",d:"M0 6.75C0 5.784.784 5 1.75 5h1.5a.75.75 0 010 1.5h-1.5a.25.25 0 00-.25.25v7.5c0 .138.112.25.25.25h7.5a.25.25 0 00.25-.25v-1.5a.75.75 0 011.5 0v1.5A1.75 1.75 0 019.25 16h-7.5A1.75 1.75 0 010 14.25v-7.5z"},children:[]},{type:"element",tagName:"path",properties:{fillRule:"evenodd",d:"M5 1.75C5 .784 5.784 0 6.75 0h7.5C15.216 0 16 .784 16 1.75v7.5A1.75 1.75 0 0114.25 11h-7.5A1.75 1.75 0 015 9.25v-7.5zm1.75-.25a.25.25 0 00-.25.25v7.5c0 .138.112.25.25.25h7.5a.25.25 0 00.25-.25v-7.5a.25.25 0 00-.25-.25h-7.5z"},children:[]}]},{type:"element",tagName:"svg",properties:{className:"octicon-check",ariaHidden:"true",viewBox:"0 0 16 16",fill:"currentColor",height:12,width:12},children:[{type:"element",tagName:"path",properties:{fillRule:"evenodd",d:"M13.78 4.22a.75.75 0 010 1.06l-7.25 7.25a.75.75 0 01-1.06 0L2.22 9.28a.75.75 0 011.06-1.06L6 10.94l6.72-6.72a.75.75 0 011.06 0z"},children:[]}]}]}}const ile=/[\0-\x1F!-,\.\/:-@\[-\^`\{-\xA9\xAB-\xB4\xB6-\xB9\xBB-\xBF\xD7\xF7\u02C2-\u02C5\u02D2-\u02DF\u02E5-\u02EB\u02ED\u02EF-\u02FF\u0375\u0378\u0379\u037E\u0380-\u0385\u0387\u038B\u038D\u03A2\u03F6\u0482\u0530\u0557\u0558\u055A-\u055F\u0589-\u0590\u05BE\u05C0\u05C3\u05C6\u05C8-\u05CF\u05EB-\u05EE\u05F3-\u060F\u061B-\u061F\u066A-\u066D\u06D4\u06DD\u06DE\u06E9\u06FD\u06FE\u0700-\u070F\u074B\u074C\u07B2-\u07BF\u07F6-\u07F9\u07FB\u07FC\u07FE\u07FF\u082E-\u083F\u085C-\u085F\u086B-\u089F\u08B5\u08C8-\u08D2\u08E2\u0964\u0965\u0970\u0984\u098D\u098E\u0991\u0992\u09A9\u09B1\u09B3-\u09B5\u09BA\u09BB\u09C5\u09C6\u09C9\u09CA\u09CF-\u09D6\u09D8-\u09DB\u09DE\u09E4\u09E5\u09F2-\u09FB\u09FD\u09FF\u0A00\u0A04\u0A0B-\u0A0E\u0A11\u0A12\u0A29\u0A31\u0A34\u0A37\u0A3A\u0A3B\u0A3D\u0A43-\u0A46\u0A49\u0A4A\u0A4E-\u0A50\u0A52-\u0A58\u0A5D\u0A5F-\u0A65\u0A76-\u0A80\u0A84\u0A8E\u0A92\u0AA9\u0AB1\u0AB4\u0ABA\u0ABB\u0AC6\u0ACA\u0ACE\u0ACF\u0AD1-\u0ADF\u0AE4\u0AE5\u0AF0-\u0AF8\u0B00\u0B04\u0B0D\u0B0E\u0B11\u0B12\u0B29\u0B31\u0B34\u0B3A\u0B3B\u0B45\u0B46\u0B49\u0B4A\u0B4E-\u0B54\u0B58-\u0B5B\u0B5E\u0B64\u0B65\u0B70\u0B72-\u0B81\u0B84\u0B8B-\u0B8D\u0B91\u0B96-\u0B98\u0B9B\u0B9D\u0BA0-\u0BA2\u0BA5-\u0BA7\u0BAB-\u0BAD\u0BBA-\u0BBD\u0BC3-\u0BC5\u0BC9\u0BCE\u0BCF\u0BD1-\u0BD6\u0BD8-\u0BE5\u0BF0-\u0BFF\u0C0D\u0C11\u0C29\u0C3A-\u0C3C\u0C45\u0C49\u0C4E-\u0C54\u0C57\u0C5B-\u0C5F\u0C64\u0C65\u0C70-\u0C7F\u0C84\u0C8D\u0C91\u0CA9\u0CB4\u0CBA\u0CBB\u0CC5\u0CC9\u0CCE-\u0CD4\u0CD7-\u0CDD\u0CDF\u0CE4\u0CE5\u0CF0\u0CF3-\u0CFF\u0D0D\u0D11\u0D45\u0D49\u0D4F-\u0D53\u0D58-\u0D5E\u0D64\u0D65\u0D70-\u0D79\u0D80\u0D84\u0D97-\u0D99\u0DB2\u0DBC\u0DBE\u0DBF\u0DC7-\u0DC9\u0DCB-\u0DCE\u0DD5\u0DD7\u0DE0-\u0DE5\u0DF0\u0DF1\u0DF4-\u0E00\u0E3B-\u0E3F\u0E4F\u0E5A-\u0E80\u0E83\u0E85\u0E8B\u0EA4\u0EA6\u0EBE\u0EBF\u0EC5\u0EC7\u0ECE\u0ECF\u0EDA\u0EDB\u0EE0-\u0EFF\u0F01-\u0F17\u0F1A-\u0F1F\u0F2A-\u0F34\u0F36\u0F38\u0F3A-\u0F3D\u0F48\u0F6D-\u0F70\u0F85\u0F98\u0FBD-\u0FC5\u0FC7-\u0FFF\u104A-\u104F\u109E\u109F\u10C6\u10C8-\u10CC\u10CE\u10CF\u10FB\u1249\u124E\u124F\u1257\u1259\u125E\u125F\u1289\u128E\u128F\u12B1\u12B6\u12B7\u12BF\u12C1\u12C6\u12C7\u12D7\u1311\u1316\u1317\u135B\u135C\u1360-\u137F\u1390-\u139F\u13F6\u13F7\u13FE-\u1400\u166D\u166E\u1680\u169B-\u169F\u16EB-\u16ED\u16F9-\u16FF\u170D\u1715-\u171F\u1735-\u173F\u1754-\u175F\u176D\u1771\u1774-\u177F\u17D4-\u17D6\u17D8-\u17DB\u17DE\u17DF\u17EA-\u180A\u180E\u180F\u181A-\u181F\u1879-\u187F\u18AB-\u18AF\u18F6-\u18FF\u191F\u192C-\u192F\u193C-\u1945\u196E\u196F\u1975-\u197F\u19AC-\u19AF\u19CA-\u19CF\u19DA-\u19FF\u1A1C-\u1A1F\u1A5F\u1A7D\u1A7E\u1A8A-\u1A8F\u1A9A-\u1AA6\u1AA8-\u1AAF\u1AC1-\u1AFF\u1B4C-\u1B4F\u1B5A-\u1B6A\u1B74-\u1B7F\u1BF4-\u1BFF\u1C38-\u1C3F\u1C4A-\u1C4C\u1C7E\u1C7F\u1C89-\u1C8F\u1CBB\u1CBC\u1CC0-\u1CCF\u1CD3\u1CFB-\u1CFF\u1DFA\u1F16\u1F17\u1F1E\u1F1F\u1F46\u1F47\u1F4E\u1F4F\u1F58\u1F5A\u1F5C\u1F5E\u1F7E\u1F7F\u1FB5\u1FBD\u1FBF-\u1FC1\u1FC5\u1FCD-\u1FCF\u1FD4\u1FD5\u1FDC-\u1FDF\u1FED-\u1FF1\u1FF5\u1FFD-\u203E\u2041-\u2053\u2055-\u2070\u2072-\u207E\u2080-\u208F\u209D-\u20CF\u20F1-\u2101\u2103-\u2106\u2108\u2109\u2114\u2116-\u2118\u211E-\u2123\u2125\u2127\u2129\u212E\u213A\u213B\u2140-\u2144\u214A-\u214D\u214F-\u215F\u2189-\u24B5\u24EA-\u2BFF\u2C2F\u2C5F\u2CE5-\u2CEA\u2CF4-\u2CFF\u2D26\u2D28-\u2D2C\u2D2E\u2D2F\u2D68-\u2D6E\u2D70-\u2D7E\u2D97-\u2D9F\u2DA7\u2DAF\u2DB7\u2DBF\u2DC7\u2DCF\u2DD7\u2DDF\u2E00-\u2E2E\u2E30-\u3004\u3008-\u3020\u3030\u3036\u3037\u303D-\u3040\u3097\u3098\u309B\u309C\u30A0\u30FB\u3100-\u3104\u3130\u318F-\u319F\u31C0-\u31EF\u3200-\u33FF\u4DC0-\u4DFF\u9FFD-\u9FFF\uA48D-\uA4CF\uA4FE\uA4FF\uA60D-\uA60F\uA62C-\uA63F\uA673\uA67E\uA6F2-\uA716\uA720\uA721\uA789\uA78A\uA7C0\uA7C1\uA7CB-\uA7F4\uA828-\uA82B\uA82D-\uA83F\uA874-\uA87F\uA8C6-\uA8CF\uA8DA-\uA8DF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA954-\uA95F\uA97D-\uA97F\uA9C1-\uA9CE\uA9DA-\uA9DF\uA9FF\uAA37-\uAA3F\uAA4E\uAA4F\uAA5A-\uAA5F\uAA77-\uAA79\uAAC3-\uAADA\uAADE\uAADF\uAAF0\uAAF1\uAAF7-\uAB00\uAB07\uAB08\uAB0F\uAB10\uAB17-\uAB1F\uAB27\uAB2F\uAB5B\uAB6A-\uAB6F\uABEB\uABEE\uABEF\uABFA-\uABFF\uD7A4-\uD7AF\uD7C7-\uD7CA\uD7FC-\uD7FF\uE000-\uF8FF\uFA6E\uFA6F\uFADA-\uFAFF\uFB07-\uFB12\uFB18-\uFB1C\uFB29\uFB37\uFB3D\uFB3F\uFB42\uFB45\uFBB2-\uFBD2\uFD3E-\uFD4F\uFD90\uFD91\uFDC8-\uFDEF\uFDFC-\uFDFF\uFE10-\uFE1F\uFE30-\uFE32\uFE35-\uFE4C\uFE50-\uFE6F\uFE75\uFEFD-\uFF0F\uFF1A-\uFF20\uFF3B-\uFF3E\uFF40\uFF5B-\uFF65\uFFBF-\uFFC1\uFFC8\uFFC9\uFFD0\uFFD1\uFFD8\uFFD9\uFFDD-\uFFFF]|\uD800[\uDC0C\uDC27\uDC3B\uDC3E\uDC4E\uDC4F\uDC5E-\uDC7F\uDCFB-\uDD3F\uDD75-\uDDFC\uDDFE-\uDE7F\uDE9D-\uDE9F\uDED1-\uDEDF\uDEE1-\uDEFF\uDF20-\uDF2C\uDF4B-\uDF4F\uDF7B-\uDF7F\uDF9E\uDF9F\uDFC4-\uDFC7\uDFD0\uDFD6-\uDFFF]|\uD801[\uDC9E\uDC9F\uDCAA-\uDCAF\uDCD4-\uDCD7\uDCFC-\uDCFF\uDD28-\uDD2F\uDD64-\uDDFF\uDF37-\uDF3F\uDF56-\uDF5F\uDF68-\uDFFF]|\uD802[\uDC06\uDC07\uDC09\uDC36\uDC39-\uDC3B\uDC3D\uDC3E\uDC56-\uDC5F\uDC77-\uDC7F\uDC9F-\uDCDF\uDCF3\uDCF6-\uDCFF\uDD16-\uDD1F\uDD3A-\uDD7F\uDDB8-\uDDBD\uDDC0-\uDDFF\uDE04\uDE07-\uDE0B\uDE14\uDE18\uDE36\uDE37\uDE3B-\uDE3E\uDE40-\uDE5F\uDE7D-\uDE7F\uDE9D-\uDEBF\uDEC8\uDEE7-\uDEFF\uDF36-\uDF3F\uDF56-\uDF5F\uDF73-\uDF7F\uDF92-\uDFFF]|\uD803[\uDC49-\uDC7F\uDCB3-\uDCBF\uDCF3-\uDCFF\uDD28-\uDD2F\uDD3A-\uDE7F\uDEAA\uDEAD-\uDEAF\uDEB2-\uDEFF\uDF1D-\uDF26\uDF28-\uDF2F\uDF51-\uDFAF\uDFC5-\uDFDF\uDFF7-\uDFFF]|\uD804[\uDC47-\uDC65\uDC70-\uDC7E\uDCBB-\uDCCF\uDCE9-\uDCEF\uDCFA-\uDCFF\uDD35\uDD40-\uDD43\uDD48-\uDD4F\uDD74\uDD75\uDD77-\uDD7F\uDDC5-\uDDC8\uDDCD\uDDDB\uDDDD-\uDDFF\uDE12\uDE38-\uDE3D\uDE3F-\uDE7F\uDE87\uDE89\uDE8E\uDE9E\uDEA9-\uDEAF\uDEEB-\uDEEF\uDEFA-\uDEFF\uDF04\uDF0D\uDF0E\uDF11\uDF12\uDF29\uDF31\uDF34\uDF3A\uDF45\uDF46\uDF49\uDF4A\uDF4E\uDF4F\uDF51-\uDF56\uDF58-\uDF5C\uDF64\uDF65\uDF6D-\uDF6F\uDF75-\uDFFF]|\uD805[\uDC4B-\uDC4F\uDC5A-\uDC5D\uDC62-\uDC7F\uDCC6\uDCC8-\uDCCF\uDCDA-\uDD7F\uDDB6\uDDB7\uDDC1-\uDDD7\uDDDE-\uDDFF\uDE41-\uDE43\uDE45-\uDE4F\uDE5A-\uDE7F\uDEB9-\uDEBF\uDECA-\uDEFF\uDF1B\uDF1C\uDF2C-\uDF2F\uDF3A-\uDFFF]|\uD806[\uDC3B-\uDC9F\uDCEA-\uDCFE\uDD07\uDD08\uDD0A\uDD0B\uDD14\uDD17\uDD36\uDD39\uDD3A\uDD44-\uDD4F\uDD5A-\uDD9F\uDDA8\uDDA9\uDDD8\uDDD9\uDDE2\uDDE5-\uDDFF\uDE3F-\uDE46\uDE48-\uDE4F\uDE9A-\uDE9C\uDE9E-\uDEBF\uDEF9-\uDFFF]|\uD807[\uDC09\uDC37\uDC41-\uDC4F\uDC5A-\uDC71\uDC90\uDC91\uDCA8\uDCB7-\uDCFF\uDD07\uDD0A\uDD37-\uDD39\uDD3B\uDD3E\uDD48-\uDD4F\uDD5A-\uDD5F\uDD66\uDD69\uDD8F\uDD92\uDD99-\uDD9F\uDDAA-\uDEDF\uDEF7-\uDFAF\uDFB1-\uDFFF]|\uD808[\uDF9A-\uDFFF]|\uD809[\uDC6F-\uDC7F\uDD44-\uDFFF]|[\uD80A\uD80B\uD80E-\uD810\uD812-\uD819\uD824-\uD82B\uD82D\uD82E\uD830-\uD833\uD837\uD839\uD83D\uD83F\uD87B-\uD87D\uD87F\uD885-\uDB3F\uDB41-\uDBFF][\uDC00-\uDFFF]|\uD80D[\uDC2F-\uDFFF]|\uD811[\uDE47-\uDFFF]|\uD81A[\uDE39-\uDE3F\uDE5F\uDE6A-\uDECF\uDEEE\uDEEF\uDEF5-\uDEFF\uDF37-\uDF3F\uDF44-\uDF4F\uDF5A-\uDF62\uDF78-\uDF7C\uDF90-\uDFFF]|\uD81B[\uDC00-\uDE3F\uDE80-\uDEFF\uDF4B-\uDF4E\uDF88-\uDF8E\uDFA0-\uDFDF\uDFE2\uDFE5-\uDFEF\uDFF2-\uDFFF]|\uD821[\uDFF8-\uDFFF]|\uD823[\uDCD6-\uDCFF\uDD09-\uDFFF]|\uD82C[\uDD1F-\uDD4F\uDD53-\uDD63\uDD68-\uDD6F\uDEFC-\uDFFF]|\uD82F[\uDC6B-\uDC6F\uDC7D-\uDC7F\uDC89-\uDC8F\uDC9A-\uDC9C\uDC9F-\uDFFF]|\uD834[\uDC00-\uDD64\uDD6A-\uDD6C\uDD73-\uDD7A\uDD83\uDD84\uDD8C-\uDDA9\uDDAE-\uDE41\uDE45-\uDFFF]|\uD835[\uDC55\uDC9D\uDCA0\uDCA1\uDCA3\uDCA4\uDCA7\uDCA8\uDCAD\uDCBA\uDCBC\uDCC4\uDD06\uDD0B\uDD0C\uDD15\uDD1D\uDD3A\uDD3F\uDD45\uDD47-\uDD49\uDD51\uDEA6\uDEA7\uDEC1\uDEDB\uDEFB\uDF15\uDF35\uDF4F\uDF6F\uDF89\uDFA9\uDFC3\uDFCC\uDFCD]|\uD836[\uDC00-\uDDFF\uDE37-\uDE3A\uDE6D-\uDE74\uDE76-\uDE83\uDE85-\uDE9A\uDEA0\uDEB0-\uDFFF]|\uD838[\uDC07\uDC19\uDC1A\uDC22\uDC25\uDC2B-\uDCFF\uDD2D-\uDD2F\uDD3E\uDD3F\uDD4A-\uDD4D\uDD4F-\uDEBF\uDEFA-\uDFFF]|\uD83A[\uDCC5-\uDCCF\uDCD7-\uDCFF\uDD4C-\uDD4F\uDD5A-\uDFFF]|\uD83B[\uDC00-\uDDFF\uDE04\uDE20\uDE23\uDE25\uDE26\uDE28\uDE33\uDE38\uDE3A\uDE3C-\uDE41\uDE43-\uDE46\uDE48\uDE4A\uDE4C\uDE50\uDE53\uDE55\uDE56\uDE58\uDE5A\uDE5C\uDE5E\uDE60\uDE63\uDE65\uDE66\uDE6B\uDE73\uDE78\uDE7D\uDE7F\uDE8A\uDE9C-\uDEA0\uDEA4\uDEAA\uDEBC-\uDFFF]|\uD83C[\uDC00-\uDD2F\uDD4A-\uDD4F\uDD6A-\uDD6F\uDD8A-\uDFFF]|\uD83E[\uDC00-\uDFEF\uDFFA-\uDFFF]|\uD869[\uDEDE-\uDEFF]|\uD86D[\uDF35-\uDF3F]|\uD86E[\uDC1E\uDC1F]|\uD873[\uDEA2-\uDEAF]|\uD87A[\uDFE1-\uDFFF]|\uD87E[\uDE1E-\uDFFF]|\uD884[\uDF4B-\uDFFF]|\uDB40[\uDC00-\uDCFF\uDDF0-\uDFFF]/g,sle=Object.hasOwnProperty;let lle=class{constructor(){this.occurrences,this.reset()}slug(t,n){const r=this;let a=cle(t,n===!0);const o=a;for(;sle.call(r.occurrences,a);)r.occurrences[o]++,a=o+"-"+r.occurrences[o];return r.occurrences[a]=0,a}reset(){this.occurrences=Object.create(null)}};function cle(e,t){return typeof e!="string"?"":(t||(e=e.toLowerCase()),e.replace(ile,"").replace(/ /g,"-"))}function TL(e){const t=e.type==="element"?e.tagName.toLowerCase():"",n=t.length===2&&t.charCodeAt(0)===104?t.charCodeAt(1):0;return n>48&&n<55?n-48:void 0}const ule={},NR=new lle;function dle(e){const t=(e||ule).prefix||"";return function(n){NR.reset(),ha(n,"element",function(r){TL(r)&&!r.properties.id&&(r.properties.id=t+NR.slug(dL(r)))})}}const SL=(function(e){if(e==null)return hle;if(typeof e=="string")return ple(e);if(typeof e=="object")return fle(e);if(typeof e=="function")return m_(e);throw new Error("Expected function, string, or array as `test`")});function fle(e){const t=[];let n=-1;for(;++n<e.length;)t[n]=SL(e[n]);return m_(r);function r(...a){let o=-1;for(;++o<t.length;)if(t[o].apply(this,a))return!0;return!1}}function ple(e){return m_(t);function t(n){return n.tagName===e}}function m_(e){return t;function t(n,r,a){return!!(mle(n)&&e.call(this,n,typeof r=="number"?r:void 0,a||void 0))}}function hle(e){return!!(e&&typeof e=="object"&&"type"in e&&e.type==="element"&&"tagName"in e&&typeof e.tagName=="string")}function mle(e){return e!==null&&typeof e=="object"&&"type"in e&&"tagName"in e}const LR={type:"element",tagName:"span",properties:{className:["icon","icon-link"]},children:[]},gle={};function yle(e){const t=e||gle;let n=t.properties;const r=t.headingProperties,a=t.behavior||"prepend",o=t.content,s=t.group,c=SL(t.test);let u;return a==="after"||a==="before"?u=p:a==="wrap"?u=h:(u=d,n||(n={ariaHidden:"true",tabIndex:-1})),function(g){ha(g,"element",function(y,b,E){if(TL(y)&&y.properties.id&&c(y,b,E))return Object.assign(y.properties,km(r,y)),u(y,b,E)})};function d(g){const y=PR(o||LR,g);return g.children[a==="prepend"?"unshift":"push"](xb(g,km(n,g),y)),[Ef]}function p(g,y,b){if(typeof y!="number"||!b)return;const E=PR(o||LR,g),_=xb(g,km(n,g),E);let A=a==="before"?[_,g]:[g,_];if(s){const D=_L(s,g);D&&!Array.isArray(D)&&D.type==="element"&&(D.children=A,A=[D])}return b.children.splice(y,1,...A),[Ef,y+A.length]}function h(g){let y=g.children,b=[];return typeof o=="function"?(y=[],b=o(g)):o&&(b=g_(o)),g.children=[xb(g,km(n,g),Array.isArray(b)?[...y,...b]:[...y,b])],[Ef]}}function g_(e){return Ml(e)}function xb(e,t,n){return{type:"element",tagName:"a",properties:{...t,href:"#"+e.properties.id},children:n}}function PR(e,t){const n=_L(e,t);return Array.isArray(n)?n:[n]}function _L(e,t){return typeof e=="function"?e(t):g_(e)}function km(e,t){return typeof e=="function"?e(t):e?g_(e):{}}var vle=(e,t)=>(n,r,a)=>{if(n.type==="element"&&a&&a.type==="root"&&/h(1|2|3|4|5|6)/.test(n.tagName)){var o=n.children&&n.children[0];o&&o.properties&&o.properties.ariaHidden==="true"&&(o.properties=Ne({class:"anchor"},o.properties),o.children=[ale])}if(n.type==="element"&&n.tagName==="pre"&&!e){var s=bL(n.children);n.children.push(ole(s))}t&&t(n,r===null?void 0:r,a===null?void 0:a)},ble=[dle,yle,rle];const CL=Tt.forwardRef((e,t)=>{var n,r=[tle,nle,...ble,[Xse,{rewrite:vle((n=e.disableCopy)!=null?n:!1,e.rehypeRewrite)}],[ele,{properties:"attr"}],...e.rehypePlugins||[]];return P.jsx(Pie,Ne({},e,{rehypePlugins:r,ref:t}))});function Ele(e,t){return Ne({},e,t)}var Ou=Tt.createContext({markdown:""});function AL(e,t){return e===void 0&&(e=[]),t===void 0&&(t={}),e.forEach(n=>{n.children&&Array.isArray(n.children)?t=Ne({},t,AL(n.children||[])):n.keyCommand&&n.shortcuts&&n.execute&&(t[n.shortcuts.toLocaleLowerCase()]=n)}),t}function xL(e,t,n,r,a){t===void 0&&(t=[]);var o=AL(t||[]),s=[];if(e.altKey&&s.push("alt"),e.shiftKey&&s.push("shift"),e.metaKey&&s.push("cmd"),e.ctrlKey&&s.push("ctrl"),s.length>0&&!/(control|alt|meta|shift)/.test(e.key.toLocaleLowerCase())&&s.push(e.key.toLocaleLowerCase()),/escape/.test(e.key.toLocaleLowerCase())&&s.push("escape"),!(s.length<1)){var c=!!o[s.join("+")],u=c?o[s.join("+")]:void 0;if(Object.keys(o).forEach(d=>{var p=d.split("+").every(h=>/ctrlcmd/.test(h)?s.includes("ctrl")||s.includes("cmd"):s.includes(h));p&&(u=o[d])}),u&&n){e.stopPropagation(),e.preventDefault(),n.executeCommand(u,r,a,s);return}}}var wb;function MR(e){if(e.nodeName!=="TEXTAREA")return!1;if(typeof wb>"u"){var t=document.createElement("textarea");t.value="1",wb=!!t.firstChild}return wb}function ru(e,t){if(e.focus(),document.selection){var n=document.selection.createRange();n.text=t,n.collapse(!1),n.select();return}var r=!1;if(t!==""?r=document.execCommand&&document.execCommand("insertText",!1,t):r=document.execCommand&&document.execCommand("delete",!1),!r){var a=e.selectionStart,o=e.selectionEnd;if(typeof e.setRangeText=="function")e.setRangeText(t);else{var s=document.createRange(),c=document.createTextNode(t);if(MR(e)){var u=e.firstChild;if(!u)e.appendChild(c);else{for(var d=0,p=null,h=null;u&&(p===null||h===null);){var g=u.nodeValue.length;a>=d&&a<=d+g&&s.setStart(p=u,a-d),o>=d&&o<=d+g&&s.setEnd(h=u,o-d),d+=g,u=u.nextSibling}a!==o&&s.deleteContents()}}if(MR(e)&&s.commonAncestorContainer.nodeName==="#text")s.insertNode(c);else{var y=e.value;e.value=y.slice(0,a)+t+y.slice(o)}}e.setSelectionRange(a+t.length,a+t.length);var b=document.createEvent("UIEvent");b.initEvent("input",!0,!1),e.dispatchEvent(b)}}function Xr(e){var{text:t,selection:n,prefix:r,suffix:a=r}=e,o=n;if(t&&t.length&&n.start===n.end&&(o=Tle(t,n.start)),o.start>=r.length&&o.end<=t.length-a.length){var s=t.slice(o.start-r.length,o.end+a.length);if(s.startsWith(r)&&s.endsWith(a))return{start:o.start-r.length,end:o.end+a.length}}return o}function kf(e){var{text:t,selection:n}=e,r=t.slice(0,n.start).lastIndexOf(`
278
278
  `)+1,a=t.slice(n.end).indexOf(`
279
279
  `)+n.end;return a===n.end-1&&(a=t.length),{start:r,end:a}}function wL(e,t){if(e===void 0&&(e=""),t===0)return 0;for(var n=2,r=!0,a=t-1;a>=0&&n>=0;a--)switch(e.charCodeAt(a)){case 32:continue;case 10:n--,r=!1;break;default:return n}return r?0:n}function DL(e,t){if(e===void 0&&(e=""),t===e.length-1)return 0;for(var n=2,r=!0,a=t;a<e.length&&n>=0;a++)switch(e.charCodeAt(a)){case 32:continue;case 10:{n--,r=!1;break}default:return n}return r?0:n}function Tle(e,t){if(!e)throw Error("Argument 'text' should be truthy");for(var n=c=>c===" "||c.charCodeAt(0)===10,r=0,a=e.length,o=t;o-1>-1;o--)if(n(e[o-1])){r=o;break}for(var s=t;s<e.length;s++)if(n(e[s])){a=s;break}return{start:r,end:a}}function Dr(e){var{api:t,selectedText:n,selection:r,prefix:a,suffix:o=a}=e;n.length>=a.length+o.length&&n.startsWith(a)&&n.endsWith(o)?(t.replaceSelection(n.slice(a.length,o.length?-o.length:void 0)),t.setSelectionRange({start:r.start-a.length,end:r.end-a.length})):(t.replaceSelection(""+a+n+o),t.setSelectionRange({start:r.start+a.length,end:r.end+a.length}))}function y_(e,t){var n=e.split(/\n/),r=0,a=n.map((o,s)=>{if(typeof t=="string")return o.startsWith(t)?(r-=t.length,o.slice(t.length)):(r+=t.length,t+o);if(typeof t=="function"){if(o.startsWith(t(o,s)))return r-=t(o,s).length,o.slice(t(o,s).length);var c=t(o,s);return r+=c.length,t(o,s)+o}throw Error("insertion is expected to be either a string or a function")}).join(`
280
280
  `);return{modifiedText:a,insertionLength:r}}var Sle={name:"bold",keyCommand:"bold",shortcuts:"ctrlcmd+b",prefix:"**",buttonProps:{"aria-label":"Add bold text (ctrl + b)",title:"Add bold text (ctrl + b)"},icon:P.jsx("svg",{role:"img",width:"12",height:"12",viewBox:"0 0 384 512",children:P.jsx("path",{fill:"currentColor",d:"M304.793 243.891c33.639-18.537 53.657-54.16 53.657-95.693 0-48.236-26.25-87.626-68.626-104.179C265.138 34.01 240.849 32 209.661 32H24c-8.837 0-16 7.163-16 16v33.049c0 8.837 7.163 16 16 16h33.113v318.53H24c-8.837 0-16 7.163-16 16V464c0 8.837 7.163 16 16 16h195.69c24.203 0 44.834-1.289 66.866-7.584C337.52 457.193 376 410.647 376 350.014c0-52.168-26.573-91.684-71.207-106.123zM142.217 100.809h67.444c16.294 0 27.536 2.019 37.525 6.717 15.828 8.479 24.906 26.502 24.906 49.446 0 35.029-20.32 56.79-53.029 56.79h-76.846V100.809zm112.642 305.475c-10.14 4.056-22.677 4.907-31.409 4.907h-81.233V281.943h84.367c39.645 0 63.057 25.38 63.057 63.057.001 28.425-13.66 52.483-34.782 61.284z"})}),execute:(e,t)=>{var n=Xr({text:e.text,selection:e.selection,prefix:e.command.prefix}),r=t.setSelectionRange(n);Dr({api:t,selectedText:r.selectedText,selection:e.selection,prefix:e.command.prefix})}},kL={name:"codeBlock",keyCommand:"codeBlock",shortcuts:"ctrlcmd+shift+j",prefix:"```",buttonProps:{"aria-label":"Insert Code Block (ctrl + shift + j)",title:"Insert Code Block (ctrl + shift +j)"},icon:P.jsx("svg",{width:"13",height:"13",role:"img",viewBox:"0 0 156 156",children:P.jsx("path",{fill:"currentColor",d:"M110.85 120.575 43.7 120.483333 43.7083334 110.091667 110.85 110.191667 110.841667 120.583333 110.85 120.575ZM85.1333334 87.1916666 43.625 86.7083332 43.7083334 76.3166666 85.2083334 76.7916666 85.1333334 87.1916666 85.1333334 87.1916666ZM110.841667 53.4166666 43.7 53.3166666 43.7083334 42.925 110.85 43.025 110.841667 53.4166666ZM36 138C27.2916666 138 20.75 136.216667 16.4 132.666667 12.1333334 129.2 10 124.308333 10 118L10 95.3333332C10 91.0666666 9.25 88.1333332 7.7333334 86.5333332 6.3166668 84.8416666 3.7333334 84 0 84L0 72C3.7333334 72 6.3083334 71.2 7.7333334 69.6 9.2416668 67.9083334 10 64.9333334 10 60.6666666L10 38C10 31.775 12.1333334 26.8833334 16.4 23.3333332 20.7583334 19.7749998 27.2916666 18 36 18L40.6666668 18 40.6666668 30 36 30C34.0212222 29.9719277 32.1263151 30.7979128 30.8 32.2666666 29.3605875 33.8216362 28.5938182 35.8823287 28.6666668 38L28.6666668 60.6666666C28.6666668 67.5083332 26.6666668 72.4 22.6666668 75.3333332 20.9317416 76.7274684 18.8640675 77.6464347 16.6666668 78 18.8916668 78.35 20.8916668 79.2416666 22.6666668 80.6666666 26.6666668 83.95 28.6666668 88.8416666 28.6666668 95.3333332L28.6666668 118C28.6666668 120.308333 29.3750002 122.216667 30.8 123.733333 32.2166666 125.241667 33.9583334 126 36 126L40.6666668 126 40.6666668 138 36 138 36 138ZM114.116667 126 118.783333 126C120.833333 126 122.566667 125.241667 123.983333 123.733333 125.422746 122.178364 126.189515 120.117671 126.116667 118L126.116667 95.3333332C126.116667 88.8333332 128.116667 83.9499998 132.116667 80.6666666 133.9 79.2416666 135.9 78.35 138.116667 78 135.919156 77.6468047 133.851391 76.7277979 132.116667 75.3333332 128.116667 72.3999998 126.116667 67.5 126.116667 60.6666666L126.116667 38C126.189515 35.8823287 125.422746 33.8216361 123.983333 32.2666666 122.657018 30.7979128 120.762111 29.9719277 118.783333 30L114.116667 30 114.116667 18 118.783333 18C127.5 18 133.983333 19.775 138.25 23.3333332 142.608333 26.8833332 144.783333 31.7749998 144.783333 38L144.783333 60.6666666C144.783333 64.9333332 145.5 67.9083332 146.916667 69.6 148.433333 71.2 151.05 72 154.783333 72L154.783333 84C151.05 84 148.433333 84.8333334 146.916667 86.5333332 145.5 88.1333332 144.783333 91.0666666 144.783333 95.3333332L144.783333 118C144.783333 124.308333 142.616667 129.2 138.25 132.666667 133.983333 136.216667 127.5 138 118.783333 138L114.116667 138 114.116667 126 114.116667 126Z"})}),execute:(e,t)=>{var n=Xr({text:e.text,selection:e.selection,prefix:"```\n",suffix:"\n```"}),r=t.setSelectionRange(n),a="\n```\n",o="\n```\n";r.selectedText.length>=a.length+o.length-2&&r.selectedText.startsWith(a)&&r.selectedText.endsWith(o)?(a="```\n",o="\n```"):((r.selection.start>=1&&e.text.slice(r.selection.start-1,r.selection.start)===`
@@ -388,7 +388,7 @@ export default theme;`}const Iz=e=>{const t=Object.keys(e).map(n=>({key:n,val:e[
388
388
  `,Tde=x.forwardRef(function(e,t){const n=Yt({props:e,name:"MuiTouchRipple"}),{center:r=!1,classes:a={},className:o,...s}=n,[c,u]=x.useState([]),d=x.useRef(0),p=x.useRef(null);x.useEffect(()=>{p.current&&(p.current(),p.current=null)},[c]);const h=x.useRef(!1),g=s0(),y=x.useRef(null),b=x.useRef(null),E=x.useCallback(w=>{const{pulsate:R,rippleX:O,rippleY:k,rippleSize:F,cb:G}=w;u(j=>[...j,P.jsx(Ede,{classes:{ripple:mt(a.ripple,Za.ripple),rippleVisible:mt(a.rippleVisible,Za.rippleVisible),ripplePulsate:mt(a.ripplePulsate,Za.ripplePulsate),child:mt(a.child,Za.child),childLeaving:mt(a.childLeaving,Za.childLeaving),childPulsate:mt(a.childPulsate,Za.childPulsate)},timeout:TT,pulsate:R,rippleX:O,rippleY:k,rippleSize:F},d.current)]),d.current+=1,p.current=G},[a]),_=x.useCallback((w={},R={},O=()=>{})=>{const{pulsate:k=!1,center:F=r||R.pulsate,fakeElement:G=!1}=R;if(w?.type==="mousedown"&&h.current){h.current=!1;return}w?.type==="touchstart"&&(h.current=!0);const j=G?null:b.current,T=j?j.getBoundingClientRect():{width:0,height:0,left:0,top:0};let M,U,B;if(F||w===void 0||w.clientX===0&&w.clientY===0||!w.clientX&&!w.touches)M=Math.round(T.width/2),U=Math.round(T.height/2);else{const{clientX:Y,clientY:X}=w.touches&&w.touches.length>0?w.touches[0]:w;M=Math.round(Y-T.left),U=Math.round(X-T.top)}if(F)B=Math.sqrt((2*T.width**2+T.height**2)/3),B%2===0&&(B+=1);else{const Y=Math.max(Math.abs((j?j.clientWidth:0)-M),M)*2+2,X=Math.max(Math.abs((j?j.clientHeight:0)-U),U)*2+2;B=Math.sqrt(Y**2+X**2)}w?.touches?y.current===null&&(y.current=()=>{E({pulsate:k,rippleX:M,rippleY:U,rippleSize:B,cb:O})},g.start(mde,()=>{y.current&&(y.current(),y.current=null)})):E({pulsate:k,rippleX:M,rippleY:U,rippleSize:B,cb:O})},[r,E,g]),A=x.useCallback(()=>{_({},{pulsate:!0})},[_]),D=x.useCallback((w,R)=>{if(g.clear(),w?.type==="touchend"&&y.current){y.current(),y.current=null,g.start(0,()=>{D(w,R)});return}y.current=null,u(O=>O.length>0?O.slice(1):O),p.current=R},[g]);return x.useImperativeHandle(t,()=>({pulsate:A,start:_,stop:D}),[A,_,D]),P.jsx(bde,{className:mt(Za.root,a.root,o),ref:b,...s,children:P.jsx(U_,{component:null,exit:!0,children:c})})});function Sde(e){return Ht("MuiButtonBase",e)}const _de=Nt("MuiButtonBase",["root","disabled","focusVisible"]);let Cde=class ST{static create(){return new ST}static use(){const t=TP(ST.create).current,[n,r]=x.useState(!1);return t.shouldMount=n,t.setShouldMount=r,x.useEffect(t.mountEffect,[n]),t}constructor(){this.ref={current:null},this.mounted=null,this.didMount=!1,this.shouldMount=!1,this.setShouldMount=null}mount(){return this.mounted||(this.mounted=xde(),this.shouldMount=!0,this.setShouldMount(this.shouldMount)),this.mounted}mountEffect=()=>{this.shouldMount&&!this.didMount&&this.ref.current!==null&&(this.didMount=!0,this.mounted.resolve())};start(...t){this.mount().then(()=>this.ref.current?.start(...t))}stop(...t){this.mount().then(()=>this.ref.current?.stop(...t))}pulsate(...t){this.mount().then(()=>this.ref.current?.pulsate(...t))}};function Ade(){return Cde.use()}function xde(){let e,t;const n=new Promise((r,a)=>{e=r,t=a});return n.resolve=e,n.reject=t,n}const Ls=typeof window<"u"?x.useLayoutEffect:x.useEffect;function Fr(e){const t=x.useRef(e);return Ls(()=>{t.current=e}),x.useRef((...n)=>(0,t.current)(...n)).current}function mO(e){try{return e.matches(":focus-visible")}catch{}return!1}const wde=e=>{const{disabled:t,focusVisible:n,focusVisibleClassName:r,classes:a}=e,o=zt({root:["root",t&&"disabled",n&&"focusVisible"]},Sde,a);return n&&r&&(o.root+=` ${r}`),o},Dde=ze("button",{name:"MuiButtonBase",slot:"Root"})({display:"inline-flex",alignItems:"center",justifyContent:"center",position:"relative",boxSizing:"border-box",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle",MozAppearance:"none",WebkitAppearance:"none",textDecoration:"none",color:"inherit","&::-moz-focus-inner":{borderStyle:"none"},[`&.${_de.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),l0=x.forwardRef(function(e,t){const n=Yt({props:e,name:"MuiButtonBase"}),{action:r,centerRipple:a=!1,children:o,className:s,component:c="button",disabled:u=!1,disableRipple:d=!1,disableTouchRipple:p=!1,focusRipple:h=!1,focusVisibleClassName:g,LinkComponent:y="a",onBlur:b,onClick:E,onContextMenu:_,onDragLeave:A,onFocus:D,onFocusVisible:w,onKeyDown:R,onKeyUp:O,onMouseDown:k,onMouseLeave:F,onMouseUp:G,onTouchEnd:j,onTouchMove:T,onTouchStart:M,tabIndex:U=0,TouchRippleProps:B,touchRippleRef:Y,type:X,...z}=n,Z=x.useRef(null),J=Ade(),oe=Kn(J.ref,Y),[I,re]=x.useState(!1);u&&I&&re(!1),x.useImperativeHandle(r,()=>({focusVisible:()=>{re(!0),Z.current.focus()}}),[]);const ee=J.shouldMount&&!d&&!u;x.useEffect(()=>{I&&h&&!d&&J.pulsate()},[d,h,I,J]);const L=xi(J,"start",k,p),te=xi(J,"stop",_,p),be=xi(J,"stop",A,p),de=xi(J,"stop",G,p),xe=xi(J,"stop",Ge=>{I&&Ge.preventDefault(),F&&F(Ge)},p),ge=xi(J,"start",M,p),Oe=xi(J,"stop",j,p),Ue=xi(J,"stop",T,p),Ie=xi(J,"stop",Ge=>{mO(Ge.target)||re(!1),b&&b(Ge)},!1),Ye=Fr(Ge=>{Z.current||(Z.current=Ge.currentTarget),mO(Ge.target)&&(re(!0),w&&w(Ge)),D&&D(Ge)}),Ve=()=>{const Ge=Z.current;return c&&c!=="button"&&!(Ge.tagName==="A"&&Ge.href)},ke=Fr(Ge=>{h&&!Ge.repeat&&I&&Ge.key===" "&&J.stop(Ge,()=>{J.start(Ge)}),Ge.target===Ge.currentTarget&&Ve()&&Ge.key===" "&&Ge.preventDefault(),R&&R(Ge),Ge.target===Ge.currentTarget&&Ve()&&Ge.key==="Enter"&&!u&&(Ge.preventDefault(),E&&E(Ge))}),Rt=Fr(Ge=>{h&&Ge.key===" "&&I&&!Ge.defaultPrevented&&J.stop(Ge,()=>{J.pulsate(Ge)}),O&&O(Ge),E&&Ge.target===Ge.currentTarget&&Ve()&&Ge.key===" "&&!Ge.defaultPrevented&&E(Ge)});let Et=c;Et==="button"&&(z.href||z.to)&&(Et=y);const je={};Et==="button"?(je.type=X===void 0?"button":X,je.disabled=u):(!z.href&&!z.to&&(je.role="button"),u&&(je["aria-disabled"]=u));const St=Kn(t,Z),ot={...n,centerRipple:a,component:c,disabled:u,disableRipple:d,disableTouchRipple:p,focusRipple:h,tabIndex:U,focusVisible:I},Ze=wde(ot);return P.jsxs(Dde,{as:Et,className:mt(Ze.root,s),ownerState:ot,onBlur:Ie,onClick:E,onContextMenu:te,onFocus:Ye,onKeyDown:ke,onKeyUp:Rt,onMouseDown:L,onMouseLeave:xe,onMouseUp:de,onDragLeave:be,onTouchEnd:Oe,onTouchMove:Ue,onTouchStart:ge,ref:St,tabIndex:u?-1:U,type:X,...je,...z,children:[o,ee?P.jsx(Tde,{ref:oe,center:a,...B}):null]})});function xi(e,t,n,r=!1){return Fr(a=>(n&&n(a),r||e[t](a),!0))}const kde=e=>{const{classes:t,checked:n,disabled:r,edge:a}=e,o={root:["root",n&&"checked",r&&"disabled",a&&`edge${rt(a)}`],input:["input"]};return zt(o,ide,t)},Rde=ze(l0,{name:"MuiSwitchBase"})({padding:9,borderRadius:"50%",variants:[{props:{edge:"start",size:"small"},style:{marginLeft:-3}},{props:({edge:e,ownerState:t})=>e==="start"&&t.size!=="small",style:{marginLeft:-12}},{props:{edge:"end",size:"small"},style:{marginRight:-3}},{props:({edge:e,ownerState:t})=>e==="end"&&t.size!=="small",style:{marginRight:-12}}]}),Ode=ze("input",{name:"MuiSwitchBase",shouldForwardProp:ea})({cursor:"inherit",position:"absolute",opacity:0,width:"100%",height:"100%",top:0,left:0,margin:0,padding:0,zIndex:1}),Ide=x.forwardRef(function(e,t){const{autoFocus:n,checked:r,checkedIcon:a,defaultChecked:o,disabled:s,disableFocusRipple:c=!1,edge:u=!1,icon:d,id:p,inputProps:h,inputRef:g,name:y,onBlur:b,onChange:E,onFocus:_,readOnly:A,required:D=!1,tabIndex:w,type:R,value:O,slots:k={},slotProps:F={},...G}=e,[j,T]=ET({controlled:r,default:!!o,name:"SwitchBase",state:"checked"}),M=Gl(),U=te=>{_&&_(te),M&&M.onFocus&&M.onFocus(te)},B=te=>{b&&b(te),M&&M.onBlur&&M.onBlur(te)},Y=te=>{if(te.nativeEvent.defaultPrevented)return;const be=te.target.checked;T(be),E&&E(te,be)};let X=s;M&&typeof X>"u"&&(X=M.disabled);const z=R==="checkbox"||R==="radio",Z={...e,checked:j,disabled:X,disableFocusRipple:c,edge:u},J=kde(Z),oe={slots:k,slotProps:{input:h,...F}},[I,re]=bn("root",{ref:t,elementType:Rde,className:J.root,shouldForwardComponentProp:!0,externalForwardedProps:{...oe,component:"span",...G},getSlotProps:te=>({...te,onFocus:be=>{te.onFocus?.(be),U(be)},onBlur:be=>{te.onBlur?.(be),B(be)}}),ownerState:Z,additionalProps:{centerRipple:!0,focusRipple:!c,disabled:X,role:void 0,tabIndex:null}}),[ee,L]=bn("input",{ref:g,elementType:Ode,className:J.input,externalForwardedProps:oe,getSlotProps:te=>({...te,onChange:be=>{te.onChange?.(be),Y(be)}}),ownerState:Z,additionalProps:{autoFocus:n,checked:r,defaultChecked:o,disabled:X,id:z?p:void 0,name:y,readOnly:A,required:D,tabIndex:w,type:R,...R==="checkbox"&&O===void 0?{}:{value:O}}});return P.jsxs(I,{...re,children:[P.jsx(ee,{...L}),j?a:d]})}),Nde=wn(P.jsx("path",{d:"M19 5v14H5V5h14m0-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2z"})),Lde=wn(P.jsx("path",{d:"M19 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.11 0 2-.9 2-2V5c0-1.1-.89-2-2-2zm-9 14l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z"})),Pde=wn(P.jsx("path",{d:"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-2 10H7v-2h10v2z"}));function Mde(e){return Ht("MuiCheckbox",e)}const $b=Nt("MuiCheckbox",["root","checked","disabled","indeterminate","colorPrimary","colorSecondary","sizeSmall","sizeMedium"]);function $de(e){return typeof e.main=="string"}function Fde(e,t=[]){if(!$de(e))return!1;for(const n of t)if(!e.hasOwnProperty(n)||typeof e[n]!="string")return!1;return!0}function _o(e=[]){return([,t])=>t&&Fde(t,e)}function Bde(e,t){const n=e.charCodeAt(2);return e[0]==="o"&&e[1]==="n"&&n>=65&&n<=90&&typeof t=="function"}function AP(e,t){if(!e)return t;function n(s,c){const u={};return Object.keys(c).forEach(d=>{Bde(d,c[d])&&typeof s[d]=="function"&&(u[d]=(...p)=>{s[d](...p),c[d](...p)})}),u}if(typeof e=="function"||typeof t=="function")return s=>{const c=typeof t=="function"?t(s):t,u=typeof e=="function"?e({...s,...c}):e,d=mt(s?.className,c?.className,u?.className),p=n(u,c);return{...c,...u,...p,...!!d&&{className:d},...c?.style&&u?.style&&{style:{...c.style,...u.style}},...c?.sx&&u?.sx&&{sx:[...Array.isArray(c.sx)?c.sx:[c.sx],...Array.isArray(u.sx)?u.sx:[u.sx]]}}};const r=t,a=n(e,r),o=mt(r?.className,e?.className);return{...t,...e,...a,...!!o&&{className:o},...r?.style&&e?.style&&{style:{...r.style,...e.style}},...r?.sx&&e?.sx&&{sx:[...Array.isArray(r.sx)?r.sx:[r.sx],...Array.isArray(e.sx)?e.sx:[e.sx]]}}}const Ude=e=>{const{classes:t,indeterminate:n,color:r,size:a}=e,o={root:["root",n&&"indeterminate",`color${rt(r)}`,`size${rt(a)}`]},s=zt(o,Mde,t);return{...t,...s}},jde=ze(Ide,{shouldForwardProp:e=>ea(e)||e==="classes",name:"MuiCheckbox",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.indeterminate&&t.indeterminate,t[`size${rt(n.size)}`],n.color!=="default"&&t[`color${rt(n.color)}`]]}})(fn(({theme:e})=>({color:(e.vars||e).palette.text.secondary,variants:[{props:{color:"default",disableRipple:!1},style:{"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:Nr(e.palette.action.active,e.palette.action.hoverOpacity)}}},...Object.entries(e.palette).filter(_o()).map(([t])=>({props:{color:t,disableRipple:!1},style:{"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette[t].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Nr(e.palette[t].main,e.palette.action.hoverOpacity)}}})),...Object.entries(e.palette).filter(_o()).map(([t])=>({props:{color:t},style:{[`&.${$b.checked}, &.${$b.indeterminate}`]:{color:(e.vars||e).palette[t].main},[`&.${$b.disabled}`]:{color:(e.vars||e).palette.action.disabled}}})),{props:{disableRipple:!1},style:{"&:hover":{"@media (hover: none)":{backgroundColor:"transparent"}}}}]}))),Hde=P.jsx(Lde,{}),zde=P.jsx(Nde,{}),Vde=P.jsx(Pde,{}),xP=x.forwardRef(function(e,t){const n=Yt({props:e,name:"MuiCheckbox"}),{checkedIcon:r=Hde,color:a="primary",icon:o=zde,indeterminate:s=!1,indeterminateIcon:c=Vde,inputProps:u,size:d="medium",disableRipple:p=!1,className:h,slots:g={},slotProps:y={},...b}=n,E=s?c:o,_=s?c:r,A={...n,disableRipple:p,color:a,indeterminate:s,size:d},D=Ude(A),w=y.input??u,[R,O]=bn("root",{ref:t,elementType:jde,className:mt(D.root,h),shouldForwardComponentProp:!0,externalForwardedProps:{slots:g,slotProps:y,...b},ownerState:A,additionalProps:{type:"checkbox",icon:x.cloneElement(E,{fontSize:E.props.fontSize??d}),checkedIcon:x.cloneElement(_,{fontSize:_.props.fontSize??d}),disableRipple:p,slots:g,slotProps:{input:AP(typeof w=="function"?w(A):w,{"data-indeterminate":s})}}});return P.jsx(R,{...O,classes:D})}),Gde=["visible"],qde=ze("li",{name:"MuiTreeItem2",slot:"Root",overridesResolver:(e,t)=>t.root})({listStyle:"none",margin:0,padding:0,outline:0}),Wde=ze("div",{name:"MuiTreeItem2",slot:"Content",overridesResolver:(e,t)=>t.content,shouldForwardProp:e=>ws(e)&&e!=="status"&&e!=="indentationAtItemLevel"})(({theme:e})=>({padding:e.spacing(.5,1),borderRadius:e.shape.borderRadius,width:"100%",boxSizing:"border-box",position:"relative",display:"flex",alignItems:"center",gap:e.spacing(1),cursor:"pointer",WebkitTapHighlightColor:"transparent","&:hover":{backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},variants:[{props:{indentationAtItemLevel:!0},style:{paddingLeft:`calc(${e.spacing(1)} + var(--TreeView-itemChildrenIndentation) * var(--TreeView-itemDepth))`}},{props:({status:t})=>t.disabled,style:{opacity:(e.vars||e).palette.action.disabledOpacity,backgroundColor:"transparent"}},{props:({status:t})=>t.focused,style:{backgroundColor:(e.vars||e).palette.action.focus}},{props:({status:t})=>t.selected,style:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:Jn(e.palette.primary.main,e.palette.action.selectedOpacity),"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:Jn(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:Jn(e.palette.primary.main,e.palette.action.selectedOpacity)}}}},{props:({status:t})=>t.selected&&t.focused,style:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:Jn(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}}]})),Yde=ze("div",{name:"MuiTreeItem2",slot:"Label",overridesResolver:(e,t)=>t.label,shouldForwardProp:e=>ws(e)&&e!=="editable"})(({theme:e})=>Ne({width:"100%",boxSizing:"border-box",minWidth:0,position:"relative",overflow:"hidden"},e.typography.body1,{variants:[{props:({editable:t})=>t,style:{paddingLeft:"2px"}}]})),Qde=ze("div",{name:"MuiTreeItem2",slot:"IconContainer",overridesResolver:(e,t)=>t.iconContainer})({width:16,display:"flex",flexShrink:0,justifyContent:"center","& svg":{fontSize:18}});ze(mp,{name:"MuiTreeItem2",slot:"GroupTransition",overridesResolver:(e,t)=>t.groupTransition,shouldForwardProp:e=>ws(e)&&e!=="indentationAtItemLevel"})({margin:0,padding:0,paddingLeft:"var(--TreeView-itemChildrenIndentation)",variants:[{props:{indentationAtItemLevel:!0},style:{paddingLeft:0}}]});ze(x.forwardRef((e,t)=>{const{visible:n}=e,r=Pr(e,Gde);return n?P.jsx(xP,Ne({},r,{ref:t})):null}),{name:"MuiTreeItem2",slot:"Checkbox",overridesResolver:(e,t)=>t.checkbox})({padding:0});function As(e){const{elementType:t,externalSlotProps:n,ownerState:r,skipResolvingSlotProps:a=!1,...o}=e,s=a?{}:Go(n,r),{props:c,internalRef:u}=_P({...o,externalSlotProps:s}),d=Kn(u,s?.ref,e.additionalProps?.ref);return CP(t,{...c,ref:d},r)}const wP=wn(P.jsx("path",{d:"M10 6 8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"})),DP=wn(P.jsx("path",{d:"M16.59 8.59 12 13.17 7.41 8.59 6 10l6 6 6-6z"}));function Kde(e){const{slots:t,slotProps:n,status:r}=e,a=Vl(),o=Ne({},a.icons.slots,{expandIcon:a.icons.slots.expandIcon??wP,collapseIcon:a.icons.slots.collapseIcon??DP}),s=a.icons.slotProps;let c;t?.icon?c="icon":r.expandable?r.expanded?c="collapseIcon":c="expandIcon":c="endIcon";const u=t?.[c]??o[c],d=As({elementType:u,externalSlotProps:p=>Ne({},Go(s[c],p),Go(n?.[c],p)),ownerState:{}});return u?P.jsx(u,Ne({},d)):null}function Xde(e){return Ht("MuiRichTreeView",e)}Nt("MuiRichTreeView",["root"]);function Zde(e){const{theme:t,name:n,props:r}=e;return!t||!t.components||!t.components[n]||!t.components[n].defaultProps?r:Wf(t.components[n].defaultProps,r)}function Jde(e){return Object.keys(e).length===0}function efe(e=null){const t=x.useContext(Eu);return!t||Jde(t)?e:t}const tfe=OS();function nfe(e=tfe){return efe(e)}function rfe({props:e,name:t,defaultTheme:n,themeId:r}){let a=nfe(n);return a=a[r]||a,Zde({theme:a,name:t,props:e})}function afe({props:e,name:t}){return rfe({props:e,name:t,defaultTheme:xy,themeId:wy})}function kP(e){return afe}const ofe=(e,t,n)=>{e.$$publishEvent(t,n)},Yc="__TREE_VIEW_ROOT_PARENT_ID__",ife=e=>{const t={};return e.forEach((n,r)=>{t[n]=r}),t},sfe=["children"],RP=({items:e,isItemDisabled:t,getItemLabel:n,getItemId:r})=>{const a={},o={},s={[Yc]:[]},c=(d,p,h)=>{const g=r?r(d):d.id;if(g==null)throw new Error(["MUI X: The Tree View component requires all items to have a unique `id` property.","Alternatively, you can use the `getItemId` prop to specify a custom id for each item.","An item was provided without id in the `items` prop:",JSON.stringify(d)].join(`
389
389
  `));if(a[g]!=null)throw new Error(["MUI X: The Tree View component requires all items to have a unique `id` property.","Alternatively, you can use the `getItemId` prop to specify a custom id for each item.",`Two items were provided with the same id in the \`items\` prop: "${g}"`].join(`
390
390
  `));const y=n?n(d):d.label;if(y==null)throw new Error(["MUI X: The Tree View component requires all items to have a `label` property.","Alternatively, you can use the `getItemLabel` prop to specify a custom label for each item.","An item was provided without label in the `items` prop:",JSON.stringify(d)].join(`
391
- `));a[g]={id:g,label:y,parentId:h,idAttribute:void 0,expandable:!!d.children?.length,disabled:t?t(d):!1,depth:p},o[g]=d;const b=h??Yc;s[b]||(s[b]=[]),s[b].push(g),d.children?.forEach(E=>c(E,p+1,g))};e.forEach(d=>c(d,0,null));const u={};return Object.keys(s).forEach(d=>{u[d]=ife(s[d])}),{itemMetaMap:a,itemMap:o,itemOrderedChildrenIds:s,itemChildrenIndexes:u}},Wp=({instance:e,params:t,state:n,setState:r,experimentalFeatures:a})=>{const o=x.useCallback(_=>n.items.itemMetaMap[_],[n.items.itemMetaMap]),s=x.useCallback(_=>n.items.itemMap[_],[n.items.itemMap]),c=x.useCallback(()=>{const _=A=>{const D=n.items.itemMap[A],w=Pr(D,sfe),R=n.items.itemOrderedChildrenIds[A];return R&&(w.children=R.map(_)),w};return n.items.itemOrderedChildrenIds[Yc].map(_)},[n.items.itemMap,n.items.itemOrderedChildrenIds]),u=x.useCallback(_=>{if(_==null)return!1;let A=e.getItemMeta(_);if(!A)return!1;if(A.disabled)return!0;for(;A.parentId!=null;)if(A=e.getItemMeta(A.parentId),A.disabled)return!0;return!1},[e]),d=x.useCallback(_=>{const A=e.getItemMeta(_).parentId??Yc;return n.items.itemChildrenIndexes[A][_]},[e,n.items.itemChildrenIndexes]),p=x.useCallback(_=>n.items.itemOrderedChildrenIds[_??Yc]??[],[n.items.itemOrderedChildrenIds]),h=_=>{const A=e.getItemMeta(_);return A==null?null:document.getElementById(T_({treeId:n.id.treeId,itemId:_,id:A.idAttribute}))},g=_=>t.disabledItemsFocusable?!0:!e.isItemDisabled(_),y=x.useRef(!1),b=x.useCallback(()=>{y.current=!0},[]),E=x.useCallback(()=>y.current,[]);return x.useEffect(()=>{e.areItemUpdatesPrevented()||r(_=>{const A=RP({items:t.items,isItemDisabled:t.isItemDisabled,getItemId:t.getItemId,getItemLabel:t.getItemLabel});return Object.values(_.items.itemMetaMap).forEach(D=>{A.itemMetaMap[D.id]||ofe(e,"removeItem",{id:D.id})}),Ne({},_,{items:A})})},[e,r,t.items,t.isItemDisabled,t.getItemId,t.getItemLabel]),{getRootProps:()=>({style:{"--TreeView-itemChildrenIndentation":typeof t.itemChildrenIndentation=="number"?`${t.itemChildrenIndentation}px`:t.itemChildrenIndentation}}),publicAPI:{getItem:s,getItemDOMElement:h,getItemTree:c,getItemOrderedChildrenIds:p},instance:{getItemMeta:o,getItem:s,getItemTree:c,getItemsToRender:()=>{const _=A=>{const D=n.items.itemMetaMap[A];return{label:D.label,itemId:D.id,id:D.idAttribute,children:n.items.itemOrderedChildrenIds[A]?.map(_)}};return n.items.itemOrderedChildrenIds[Yc].map(_)},getItemIndex:d,getItemDOMElement:h,getItemOrderedChildrenIds:p,isItemDisabled:u,isItemNavigable:g,preventItemUpdates:b,areItemUpdatesPrevented:E},contextValue:{items:{onItemClick:t.onItemClick,disabledItemsFocusable:t.disabledItemsFocusable,indentationAtItemLevel:a.indentationAtItemLevel??!1}}}};Wp.getInitialState=e=>({items:RP({items:e.items,isItemDisabled:e.isItemDisabled,getItemId:e.getItemId,getItemLabel:e.getItemLabel})});Wp.getDefaultizedParams=({params:e})=>Ne({},e,{disabledItemsFocusable:e.disabledItemsFocusable??!1,itemChildrenIndentation:e.itemChildrenIndentation??"12px"});Wp.wrapRoot=({children:e,instance:t})=>P.jsx(S_.Provider,{value:n=>t.getItemMeta(n)?.depth??0,children:e});Wp.params={disabledItemsFocusable:!0,items:!0,isItemDisabled:!0,getItemLabel:!0,getItemId:!0,onItemClick:!0,itemChildrenIndentation:!0};const c0=({instance:e,params:t,models:n})=>{const r=x.useMemo(()=>{const h=new Map;return n.expandedItems.value.forEach(g=>{h.set(g,!0)}),h},[n.expandedItems.value]),a=(h,g)=>{t.onExpandedItemsChange?.(h,g),n.expandedItems.setControlledValue(g)},o=x.useCallback(h=>r.has(h),[r]),s=x.useCallback(h=>!!e.getItemMeta(h)?.expandable,[e]),c=Fr((h,g)=>{const y=e.isItemExpanded(g);e.setItemExpansion(h,g,!y)}),u=Fr((h,g,y)=>{if(e.isItemExpanded(g)===y)return;let b;y?b=[g].concat(n.expandedItems.value):b=n.expandedItems.value.filter(E=>E!==g),t.onItemExpansionToggle&&t.onItemExpansionToggle(h,g,y),a(h,b)}),d=(h,g)=>{const y=e.getItemMeta(g),b=e.getItemOrderedChildrenIds(y.parentId).filter(_=>e.isItemExpandable(_)&&!e.isItemExpanded(_)),E=n.expandedItems.value.concat(b);b.length>0&&(t.onItemExpansionToggle&&b.forEach(_=>{t.onItemExpansionToggle(h,_,!0)}),a(h,E))},p=x.useMemo(()=>t.expansionTrigger?t.expansionTrigger:e.isTreeViewEditable?"iconContainer":"content",[t.expansionTrigger,e.isTreeViewEditable]);return{publicAPI:{setItemExpansion:u},instance:{isItemExpanded:o,isItemExpandable:s,setItemExpansion:u,toggleItemExpansion:c,expandAllSiblings:d},contextValue:{expansion:{expansionTrigger:p}}}};c0.models={expandedItems:{getDefaultValue:e=>e.defaultExpandedItems}};const lfe=[];c0.getDefaultizedParams=({params:e})=>Ne({},e,{defaultExpandedItems:e.defaultExpandedItems??lfe});c0.params={expandedItems:!0,defaultExpandedItems:!0,onExpandedItemsChange:!0,onItemExpansionToggle:!0,expansionTrigger:!0};const sg=e=>Array.isArray(e)?e:e!=null?[e]:[],Fb=e=>{const t={};return e.forEach(n=>{t[n]=!0}),t},u0=({instance:e,params:t,models:n})=>{const r=x.useRef(null),a=x.useRef({}),o=x.useMemo(()=>{const p=new Map;return Array.isArray(n.selectedItems.value)?n.selectedItems.value.forEach(h=>{p.set(h,!0)}):n.selectedItems.value!=null&&p.set(n.selectedItems.value,!0),p},[n.selectedItems.value]),s=(p,h)=>{if(t.onItemSelectionToggle)if(t.multiSelect){const g=h.filter(b=>!e.isItemSelected(b)),y=n.selectedItems.value.filter(b=>!h.includes(b));g.forEach(b=>{t.onItemSelectionToggle(p,b,!0)}),y.forEach(b=>{t.onItemSelectionToggle(p,b,!1)})}else h!==n.selectedItems.value&&(n.selectedItems.value!=null&&t.onItemSelectionToggle(p,n.selectedItems.value,!1),h!=null&&t.onItemSelectionToggle(p,h,!0));t.onSelectedItemsChange&&t.onSelectedItemsChange(p,h),n.selectedItems.setControlledValue(h)},c=p=>o.has(p),u=({event:p,itemId:h,keepExistingSelection:g=!1,shouldBeSelected:y})=>{if(t.disableSelection)return;let b;if(g){const E=sg(n.selectedItems.value),_=e.isItemSelected(h);_&&(y===!1||y==null)?b=E.filter(A=>A!==h):!_&&(y===!0||y==null)?b=[h].concat(E):b=E}else y===!1||y==null&&e.isItemSelected(h)?b=t.multiSelect?[]:null:b=t.multiSelect?[h]:h;s(p,b),r.current=h,a.current={}},d=(p,[h,g])=>{if(t.disableSelection||!t.multiSelect)return;let y=sg(n.selectedItems.value).slice();Object.keys(a.current).length>0&&(y=y.filter(A=>!a.current[A]));const b=Fb(y),E=hce(e,h,g),_=E.filter(A=>!b[A]);y=y.concat(_),s(p,y),a.current=Fb(E)};return{getRootProps:()=>({"aria-multiselectable":t.multiSelect}),publicAPI:{selectItem:u},instance:{isItemSelected:c,selectItem:u,selectAllNavigableItems:p=>{if(t.disableSelection||!t.multiSelect)return;const h=mce(e);s(p,h),a.current=Fb(h)},expandSelectionRange:(p,h)=>{if(r.current!=null){const[g,y]=ML(e,h,r.current);d(p,[g,y])}},selectRangeFromStartToItem:(p,h)=>{d(p,[op(e),h])},selectRangeFromItemToEnd:(p,h)=>{d(p,[h,PL(e)])},selectItemFromArrowNavigation:(p,h,g)=>{if(t.disableSelection||!t.multiSelect)return;let y=sg(n.selectedItems.value).slice();Object.keys(a.current).length===0?(y.push(g),a.current={[h]:!0,[g]:!0}):(a.current[h]||(a.current={}),a.current[g]?(y=y.filter(b=>b!==h),delete a.current[h]):(y.push(g),a.current[g]=!0)),s(p,y)}},contextValue:{selection:{multiSelect:t.multiSelect,checkboxSelection:t.checkboxSelection,disableSelection:t.disableSelection}}}};u0.models={selectedItems:{getDefaultValue:e=>e.defaultSelectedItems}};const cfe=[];u0.getDefaultizedParams=({params:e})=>Ne({},e,{disableSelection:e.disableSelection??!1,multiSelect:e.multiSelect??!1,checkboxSelection:e.checkboxSelection??!1,defaultSelectedItems:e.defaultSelectedItems??(e.multiSelect?cfe:null)});u0.params={disableSelection:!0,multiSelect:!0,checkboxSelection:!0,defaultSelectedItems:!0,selectedItems:!0,onSelectedItemsChange:!0,onItemSelectionToggle:!0};let ufe=class{constructor(t=1e3){this.timeouts=new Map,this.cleanupTimeout=1e3,this.cleanupTimeout=t}register(t,n,r){this.timeouts||(this.timeouts=new Map);const a=setTimeout(()=>{typeof n=="function"&&n(),this.timeouts.delete(r.cleanupToken)},this.cleanupTimeout);this.timeouts.set(r.cleanupToken,a)}unregister(t){const n=this.timeouts.get(t.cleanupToken);n&&(this.timeouts.delete(t.cleanupToken),clearTimeout(n))}reset(){this.timeouts&&(this.timeouts.forEach((t,n)=>{this.unregister({cleanupToken:n})}),this.timeouts=void 0)}},dfe=class{constructor(){this.registry=new FinalizationRegistry(t=>{typeof t=="function"&&t()})}register(t,n,r){this.registry.register(t,n,r)}unregister(t){this.registry.unregister(t)}reset(){}},ffe=class{};function pfe(e){let t=0;return function(n,r,a){e.registry===null&&(e.registry=typeof FinalizationRegistry<"u"?new dfe:new ufe);const[o]=x.useState(new ffe),s=x.useRef(null),c=x.useRef(void 0);c.current=a;const u=x.useRef(null);if(!s.current&&c.current){const d=(p,h)=>{h.defaultMuiPrevented||c.current?.(p,h)};s.current=n.$$subscribeEvent(r,d),t+=1,u.current={cleanupToken:t},e.registry.register(o,()=>{s.current?.(),s.current=null,u.current=null},u.current)}else!c.current&&s.current&&(s.current(),s.current=null,u.current&&(e.registry.unregister(u.current),u.current=null));x.useEffect(()=>{if(!s.current&&c.current){const d=(p,h)=>{h.defaultMuiPrevented||c.current?.(p,h)};s.current=n.$$subscribeEvent(r,d)}return u.current&&e.registry&&(e.registry.unregister(u.current),u.current=null),()=>{s.current?.(),s.current=null}},[n,r])}}const hfe={registry:null},mfe=pfe(hfe),OP=(e=document)=>{const t=e.activeElement;return t?t.shadowRoot?OP(t.shadowRoot):t:null};function Kr(e){return e&&e.ownerDocument||document}const gfe=(e,t)=>{let n=sg(t).find(r=>{if(!e.isItemNavigable(r))return!1;const a=e.getItemMeta(r);return a&&(a.parentId==null||e.isItemExpanded(a.parentId))});return n==null&&(n=op(e)),n},j_=({instance:e,params:t,state:n,setState:r,models:a,rootRef:o})=>{const s=gfe(e,a.selectedItems.value),c=Fr(_=>{const A=typeof _=="function"?_(n.focusedItemId):_;n.focusedItemId!==A&&r(D=>Ne({},D,{focusedItemId:A}))}),u=x.useCallback(()=>!!o.current&&o.current.contains(OP(Kr(o.current))),[o]),d=x.useCallback(_=>n.focusedItemId===_&&u(),[n.focusedItemId,u]),p=_=>{const A=e.getItemMeta(_);return A&&(A.parentId==null||e.isItemExpanded(A.parentId))},h=(_,A)=>{const D=e.getItemDOMElement(A);D&&D.focus(),c(A),t.onItemFocus&&t.onItemFocus(_,A)},g=Fr((_,A)=>{p(A)&&h(_,A)}),y=Fr(()=>{if(n.focusedItemId!=null){if(e.getItemMeta(n.focusedItemId)){const _=e.getItemDOMElement(n.focusedItemId);_&&_.blur()}c(null)}}),b=_=>_===s;mfe(e,"removeItem",({id:_})=>{n.focusedItemId===_&&h(null,s)});const E=_=>A=>{_.onFocus?.(A),!A.defaultMuiPrevented&&A.target===A.currentTarget&&h(A,s)};return{getRootProps:_=>({onFocus:E(_)}),publicAPI:{focusItem:g},instance:{isItemFocused:d,canItemBeTabbed:b,focusItem:g,removeFocusedItem:y}}};j_.getInitialState=()=>({focusedItemId:null});j_.params={onItemFocus:!0};const yfe=x.createContext(),IP=()=>x.useContext(yfe)??!1;function vfe(e){return!!e&&e.length===1&&!!e.match(/\S/)}const NP=({instance:e,params:t,state:n})=>{const r=IP(),a=x.useRef({}),o=Fr(d=>{a.current=d(a.current)});x.useEffect(()=>{if(e.areItemUpdatesPrevented())return;const d={},p=h=>{d[h.id]=h.label.substring(0,1).toLowerCase()};Object.values(n.items.itemMetaMap).forEach(p),a.current=d},[n.items.itemMetaMap,t.getItemId,e]);const s=(d,p)=>{const h=p.toLowerCase(),g=_=>{const A=ag(e,_);return A===null?op(e):A};let y=null,b=g(d);const E={};for(;y==null&&!E[b];)a.current[b]===h?y=b:(E[b]=!0,b=g(b));return y},c=d=>!t.disableSelection&&!e.isItemDisabled(d),u=d=>!e.isItemDisabled(d)&&e.isItemExpandable(d);return{instance:{updateFirstCharMap:o,handleItemKeyDown:(d,p)=>{if(d.defaultMuiPrevented||d.altKey||ip(d.target,d.currentTarget))return;const h=d.ctrlKey||d.metaKey,g=d.key;switch(!0){case(g===" "&&c(p)):{d.preventDefault(),t.multiSelect&&d.shiftKey?e.expandSelectionRange(d,p):e.selectItem({event:d,itemId:p,keepExistingSelection:t.multiSelect,shouldBeSelected:t.multiSelect?void 0:!0});break}case g==="Enter":{wl(e,io)&&e.isItemEditable(p)&&!e.isItemBeingEdited(p)?e.setEditedItemId(p):u(p)?(e.toggleItemExpansion(d,p),d.preventDefault()):c(p)&&(t.multiSelect?(d.preventDefault(),e.selectItem({event:d,itemId:p,keepExistingSelection:!0})):e.isItemSelected(p)||(e.selectItem({event:d,itemId:p}),d.preventDefault()));break}case g==="ArrowDown":{const y=ag(e,p);y&&(d.preventDefault(),e.focusItem(d,y),t.multiSelect&&d.shiftKey&&c(y)&&e.selectItemFromArrowNavigation(d,p,y));break}case g==="ArrowUp":{const y=LL(e,p);y&&(d.preventDefault(),e.focusItem(d,y),t.multiSelect&&d.shiftKey&&c(y)&&e.selectItemFromArrowNavigation(d,p,y));break}case(g==="ArrowRight"&&!r||g==="ArrowLeft"&&r):{if(h)return;if(e.isItemExpanded(p)){const y=ag(e,p);y&&(e.focusItem(d,y),d.preventDefault())}else u(p)&&(e.toggleItemExpansion(d,p),d.preventDefault());break}case(g==="ArrowLeft"&&!r||g==="ArrowRight"&&r):{if(h)return;if(u(p)&&e.isItemExpanded(p))e.toggleItemExpansion(d,p),d.preventDefault();else{const y=e.getItemMeta(p).parentId;y&&(e.focusItem(d,y),d.preventDefault())}break}case g==="Home":{c(p)&&t.multiSelect&&h&&d.shiftKey?e.selectRangeFromStartToItem(d,p):e.focusItem(d,op(e)),d.preventDefault();break}case g==="End":{c(p)&&t.multiSelect&&h&&d.shiftKey?e.selectRangeFromItemToEnd(d,p):e.focusItem(d,PL(e)),d.preventDefault();break}case g==="*":{e.expandAllSiblings(d,p),d.preventDefault();break}case(String.fromCharCode(d.keyCode)==="A"&&h&&t.multiSelect&&!t.disableSelection):{e.selectAllNavigableItems(d),d.preventDefault();break}case(!h&&!d.shiftKey&&vfe(g)):{const y=s(p,g);y!=null&&(e.focusItem(d,y),d.preventDefault());break}}}}}};NP.params={};const LP=({slots:e,slotProps:t})=>({contextValue:{icons:{slots:{collapseIcon:e.collapseIcon,expandIcon:e.expandIcon,endIcon:e.endIcon},slotProps:{collapseIcon:t.collapseIcon,expandIcon:t.expandIcon,endIcon:t.endIcon}}}});LP.params={};const bfe=[Wp,c0,u0,j_,NP,LP,io];function PP(e){const{instance:t,items:{onItemClick:n},selection:{multiSelect:r,checkboxSelection:a,disableSelection:o},expansion:{expansionTrigger:s}}=Vl(),c=t.isItemExpandable(e),u=t.isItemExpanded(e),d=t.isItemFocused(e),p=t.isItemSelected(e),h=t.isItemDisabled(e),g=t?.isItemBeingEdited?t?.isItemBeingEdited(e):!1,y=t.isItemEditable?t.isItemEditable(e):!1,b=w=>{if(!h){d||t.focusItem(w,e);const R=r&&(w.shiftKey||w.ctrlKey||w.metaKey);c&&!(R&&t.isItemExpanded(e))&&t.toggleItemExpansion(w,e)}},E=w=>{h||(!d&&!g&&t.focusItem(w,e),r&&(w.shiftKey||w.ctrlKey||w.metaKey)?w.shiftKey?t.expandSelectionRange(w,e):t.selectItem({event:w,itemId:e,keepExistingSelection:!0}):t.selectItem({event:w,itemId:e,shouldBeSelected:!0}))},_=w=>{if(o||h)return;const R=w.nativeEvent.shiftKey;r&&R?t.expandSelectionRange(w,e):t.selectItem({event:w,itemId:e,keepExistingSelection:r,shouldBeSelected:w.target.checked})},A=w=>{(w.shiftKey||w.ctrlKey||w.metaKey||h)&&w.preventDefault()},D=()=>{wl(t,io)&&t.isItemEditable(e)&&(t.isItemBeingEdited(e)?t.setEditedItemId(null):t.setEditedItemId(e))};return{disabled:h,expanded:u,selected:p,focused:d,editable:y,editing:g,disableSelection:o,checkboxSelection:a,handleExpansion:b,handleSelection:E,handleCheckboxSelection:_,handleContentClick:n,preventSelection:A,expansionTrigger:s,toggleItemEditing:D,handleSaveItemLabel:(w,R)=>{wl(t,io)&&t.isItemBeingEditedRef(e)&&(t.updateItemLabel(e,R),D(),t.focusItem(w,e))},handleCancelItemLabelEditing:w=>{wl(t,io)&&t.isItemBeingEditedRef(e)&&(D(),t.focusItem(w,e))}}}const Efe=ze("input",{name:"MuiTreeItem2",slot:"LabelInput",overridesResolver:(e,t)=>t.labelInput})(({theme:e})=>Ne({},e.typography.body1,{width:"100%",backgroundColor:e.palette.background.paper,borderRadius:e.shape.borderRadius,border:"none",padding:"0 2px",boxSizing:"border-box","&:focus":{outline:`1px solid ${e.palette.primary.main}`}})),Tfe=ze("div",{name:"MuiTreeItem2DragAndDropOverlay",slot:"Root",overridesResolver:(e,t)=>t.root,shouldForwardProp:e=>jm(e)&&e!=="action"})(({theme:e})=>({position:"absolute",left:0,display:"flex",top:0,bottom:0,right:0,pointerEvents:"none",variants:[{props:{action:"make-child"},style:{marginLeft:"calc(var(--TreeView-indentMultiplier) * var(--TreeView-itemDepth))",borderRadius:e.shape.borderRadius,backgroundColor:e.vars?`rgba(${e.vars.palette.primary.darkChannel} / ${e.vars.palette.action.focusOpacity})`:Jn(e.palette.primary.dark,e.palette.action.focusOpacity)}},{props:{action:"reorder-above"},style:{marginLeft:"calc(var(--TreeView-indentMultiplier) * var(--TreeView-itemDepth))",borderTop:`1px solid ${(e.vars||e).palette.action.active}`}},{props:{action:"reorder-below"},style:{marginLeft:"calc(var(--TreeView-indentMultiplier) * var(--TreeView-itemDepth))",borderBottom:`1px solid ${(e.vars||e).palette.action.active}`}},{props:{action:"move-to-parent"},style:{marginLeft:"calc(var(--TreeView-indentMultiplier) * calc(var(--TreeView-itemDepth) - 1))",borderBottom:`1px solid ${(e.vars||e).palette.action.active}`}}]}));function Sfe(e){return e.action==null?null:P.jsx(Tfe,Ne({},e))}const _fe=["classes","className","displayIcon","expansionIcon","icon","label","itemId","onClick","onMouseDown","dragAndDropOverlayProps","labelInputProps"],MP=x.forwardRef(function(e,t){const{classes:n,className:r,displayIcon:a,expansionIcon:o,icon:s,label:c,itemId:u,onClick:d,onMouseDown:p,dragAndDropOverlayProps:h,labelInputProps:g}=e,y=Pr(e,_fe),{disabled:b,expanded:E,selected:_,focused:A,editing:D,editable:w,disableSelection:R,checkboxSelection:O,handleExpansion:k,handleSelection:F,handleCheckboxSelection:G,handleContentClick:j,preventSelection:T,expansionTrigger:M,toggleItemEditing:U}=PP(u),B=s||o||a,Y=x.useRef(null),X=J=>{T(J),p&&p(J)},z=J=>{j?.(J,u),!Y.current?.contains(J.target)&&(M==="content"&&k(J),O||F(J),d&&d(J))},Z=J=>{J.defaultMuiPrevented||U()};return P.jsxs("div",Ne({},y,{className:mt(n.root,r,E&&n.expanded,_&&n.selected,A&&n.focused,b&&n.disabled,D&&n.editing,w&&n.editable),onClick:z,onMouseDown:X,ref:t,children:[P.jsx("div",{className:n.iconContainer,children:B}),O&&P.jsx(xP,{className:n.checkbox,checked:_,onChange:G,disabled:b||R,ref:Y,tabIndex:-1}),D?P.jsx(Efe,Ne({},g,{className:n.labelInput})):P.jsx("div",Ne({className:n.label},w&&{onDoubleClick:Z},{children:c})),h&&P.jsx(Sfe,Ne({},h))]}))});function Cfe(e){return Ht("MuiTreeItem",e)}const wi=Nt("MuiTreeItem",["root","groupTransition","content","expanded","selected","focused","disabled","iconContainer","label","checkbox","labelInput","editable","editing","dragAndDropOverlay"]),Afe=["children","className","slots","slotProps","ContentComponent","ContentProps","itemId","id","label","onClick","onMouseDown","onFocus","onBlur","onKeyDown"],xfe=["ownerState"],wfe=["ownerState"],Dfe=["ownerState"],kfe=kP(),Rfe=e=>{const{classes:t}=e;return zt({root:["root"],content:["content"],expanded:["expanded"],selected:["selected"],focused:["focused"],disabled:["disabled"],iconContainer:["iconContainer"],checkbox:["checkbox"],label:["label"],labelInput:["labelInput"],editing:["editing"],editable:["editable"],groupTransition:["groupTransition"]},Cfe,t)},Ofe=ze("li",{name:"MuiTreeItem",slot:"Root",overridesResolver:(e,t)=>t.root})({listStyle:"none",margin:0,padding:0,outline:0}),Ife=ze(MP,{name:"MuiTreeItem",slot:"Content",overridesResolver:(e,t)=>[t.content,t.iconContainer&&{[`& .${wi.iconContainer}`]:t.iconContainer},t.label&&{[`& .${wi.label}`]:t.label}],shouldForwardProp:e=>ws(e)&&e!=="indentationAtItemLevel"})(({theme:e})=>({padding:e.spacing(.5,1),borderRadius:e.shape.borderRadius,width:"100%",boxSizing:"border-box",position:"relative",display:"flex",alignItems:"center",gap:e.spacing(1),cursor:"pointer",WebkitTapHighlightColor:"transparent","&:hover":{backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${wi.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity,backgroundColor:"transparent"},[`&.${wi.focused}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${wi.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:Jn(e.palette.primary.main,e.palette.action.selectedOpacity),"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:Jn(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:Jn(e.palette.primary.main,e.palette.action.selectedOpacity)}},[`&.${wi.focused}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:Jn(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`& .${wi.iconContainer}`]:{width:16,display:"flex",flexShrink:0,justifyContent:"center","& svg":{fontSize:18}},[`& .${wi.label}`]:Ne({width:"100%",boxSizing:"border-box",minWidth:0,position:"relative"},e.typography.body1),[`& .${wi.checkbox}`]:{padding:0},variants:[{props:{indentationAtItemLevel:!0},style:{paddingLeft:`calc(${e.spacing(1)} + var(--TreeView-itemChildrenIndentation) * var(--TreeView-itemDepth))`}}]})),Nfe=ze(mp,{name:"MuiTreeItem",slot:"GroupTransition",overridesResolver:(e,t)=>t.groupTransition,shouldForwardProp:e=>ws(e)&&e!=="indentationAtItemLevel"})({margin:0,padding:0,paddingLeft:"var(--TreeView-itemChildrenIndentation)",variants:[{props:{indentationAtItemLevel:!0},style:{paddingLeft:0}}]}),Lfe=x.forwardRef(function(e,t){const{icons:n,runItemPlugins:r,items:{disabledItemsFocusable:a,indentationAtItemLevel:o},selection:{disableSelection:s},expansion:{expansionTrigger:c},treeId:u,instance:d}=Vl(),p=x.useContext(S_),h=kfe({props:e,name:"MuiTreeItem"}),{children:g,className:y,slots:b,slotProps:E,ContentComponent:_=MP,ContentProps:A,itemId:D,id:w,label:R,onClick:O,onMouseDown:k,onBlur:F,onKeyDown:G}=h,j=Pr(h,Afe),{expanded:T,focused:M,selected:U,disabled:B,editing:Y,handleExpansion:X,handleCancelItemLabelEditing:z,handleSaveItemLabel:Z}=PP(D),{contentRef:J,rootRef:oe,propsEnhancers:I}=r(h),re=x.useRef(null),ee=x.useRef(null),L=Kn(t,oe,re),te=Kn(A?.ref,J,ee),be={expandIcon:b?.expandIcon??n.slots.expandIcon??wP,collapseIcon:b?.collapseIcon??n.slots.collapseIcon??DP,endIcon:b?.endIcon??n.slots.endIcon,icon:b?.icon,groupTransition:b?.groupTransition},de=Te=>Array.isArray(Te)?Te.length>0&&Te.some(de):!!Te,xe=de(g),ge=Ne({},h,{expanded:T,focused:M,selected:U,disabled:B,indentationAtItemLevel:o}),Oe=Rfe(ge),Ue=be.groupTransition??void 0,Ie=As({elementType:Ue,ownerState:{},externalSlotProps:E?.groupTransition,additionalProps:Ne({unmountOnExit:!0,in:T,component:"ul",role:"group"},o?{indentationAtItemLevel:!0}:{}),className:Oe.groupTransition}),Ye=Te=>{c==="iconContainer"&&X(Te)},Ve=T?be.collapseIcon:be.expandIcon,ke=As({elementType:Ve,ownerState:{},externalSlotProps:Te=>T?Ne({},Go(n.slotProps.collapseIcon,Te),Go(E?.collapseIcon,Te)):Ne({},Go(n.slotProps.expandIcon,Te),Go(E?.expandIcon,Te)),additionalProps:{onClick:Ye}}),Rt=Pr(ke,xfe),Et=xe&&Ve?P.jsx(Ve,Ne({},Rt)):null,je=xe?void 0:be.endIcon,St=As({elementType:je,ownerState:{},externalSlotProps:Te=>xe?{}:Ne({},Go(n.slotProps.endIcon,Te),Go(E?.endIcon,Te))}),ot=Pr(St,wfe),Ze=je?P.jsx(je,Ne({},ot)):null,Ge=be.icon,Pe=As({elementType:Ge,ownerState:{},externalSlotProps:E?.icon}),Ot=Pr(Pe,Dfe),Dn=Ge?P.jsx(Ge,Ne({},Ot)):null;let bt;U?bt=!0:s||B?bt=void 0:bt=!1;function ce(Te){!M&&(!B||a)&&Te.currentTarget===Te.target&&d.focusItem(Te,D)}function me(Te){F?.(Te),!(Y||Te.relatedTarget&&ip(Te.relatedTarget,re.current)&&(Te.target&&Te.target?.dataset?.element==="labelInput"&&ip(Te.target,re.current)||Te.relatedTarget?.dataset?.element==="labelInput"))&&d.removeFocusedItem()}const Be=Te=>{G?.(Te),Te.target?.dataset?.element!=="labelInput"&&d.handleItemKeyDown(Te,D)},We=T_({itemId:D,treeId:u,id:w}),Qe=d.canItemBeTabbed(D)?0:-1,gt={rootRefObject:re,contentRefObject:ee,interactions:{handleSaveItemLabel:Z,handleCancelItemLabelEditing:z}},ln=I.root?.(Ne({},gt,{externalEventHandlers:Gr(j)}))??{},Qt=I.content?.(Ne({},gt,{externalEventHandlers:Gr(A)}))??{},qe=I.dragAndDropOverlay?.(Ne({},gt,{externalEventHandlers:{}}))??{},Ee=I.labelInput?.(Ne({},gt,{externalEventHandlers:{}}))??{};return P.jsx($_,{itemId:D,children:P.jsxs(Ofe,Ne({className:mt(Oe.root,y),role:"treeitem","aria-expanded":xe?T:void 0,"aria-selected":bt,"aria-disabled":B||void 0,id:We,tabIndex:Qe},j,{ownerState:ge,onFocus:ce,onBlur:me,onKeyDown:Be,ref:L,style:o?Ne({},j.style,{"--TreeView-itemDepth":typeof p=="function"?p(D):p}):j.style},ln,{children:[P.jsx(Ife,Ne({as:_,classes:{root:Oe.content,expanded:Oe.expanded,selected:Oe.selected,focused:Oe.focused,disabled:Oe.disabled,editable:Oe.editable,editing:Oe.editing,iconContainer:Oe.iconContainer,label:Oe.label,labelInput:Oe.labelInput,checkbox:Oe.checkbox},label:R,itemId:D,onClick:O,onMouseDown:k,icon:Dn,expansionIcon:Et,displayIcon:Ze,ownerState:ge},A,Qt,qe.action==null?{}:{dragAndDropOverlayProps:qe},Ee.value==null?{}:{labelInputProps:Ee},{ref:te})),g&&P.jsx(Nfe,Ne({as:Ue},Ie,{children:g}))]}))})}),Pfe=["ownerState"];function Mfe({slots:e,slotProps:t,label:n,id:r,itemId:a,itemsToRender:o}){const s=e?.item??Lfe,c=As({elementType:s,externalSlotProps:t?.item,additionalProps:{itemId:a,id:r,label:n},ownerState:{itemId:a,label:n}}),u=Pr(c,Pfe),d=x.useMemo(()=>o?P.jsx($P,{itemsToRender:o,slots:e,slotProps:t}):null,[o,e,t]);return P.jsx(s,Ne({},u,{children:d}))}function $P(e){const{itemsToRender:t,slots:n,slotProps:r}=e;return P.jsx(x.Fragment,{children:t.map(a=>P.jsx(Mfe,{slots:n,slotProps:r,label:a.label,id:a.id,itemId:a.itemId,itemsToRender:a.children},a.itemId))})}const $fe=(e,t)=>{const n=x.useRef({}),[r,a]=x.useState(()=>{const o={};return e.forEach(s=>{s.models&&Object.entries(s.models).forEach(([c,u])=>{n.current[c]={isControlled:t[c]!==void 0,getDefaultValue:u.getDefaultValue},o[c]=u.getDefaultValue(t)})}),o});return Object.fromEntries(Object.entries(n.current).map(([o,s])=>{const c=t[o]??r[o];return[o,{value:c,setControlledValue:u=>{s.isControlled||a(d=>Ne({},d,{[o]:u}))}}]}))},Ffe=["slots","slotProps","apiRef","experimentalFeatures"],Bfe=e=>{let{props:{slots:t,slotProps:n,apiRef:r,experimentalFeatures:a},plugins:o}=e,s=Pr(e.props,Ffe);const c={};o.forEach(g=>{Object.assign(c,g.params)});const u={},d={};Object.keys(s).forEach(g=>{const y=s[g];c[g]?u[g]=y:d[g]=y});const p=a??{},h=o.reduce((g,y)=>y.getDefaultizedParams?y.getDefaultizedParams({params:g,experimentalFeatures:p}):g,u);return{apiRef:r,forwardedProps:d,pluginParams:h,slots:t??{},slotProps:n??{},experimentalFeatures:p}},Ufe=({plugins:e,instance:t,publicAPI:n,rootRef:r})=>({runItemPlugins:a=>{let o=null,s=null;const c=[],u={};e.forEach(h=>{if(!h.itemPlugin)return;const g=h.itemPlugin({props:a,rootRef:o,contentRef:s});g?.rootRef&&(o=g.rootRef),g?.contentRef&&(s=g.contentRef),g?.propsEnhancers&&(c.push(g.propsEnhancers),Object.keys(g.propsEnhancers).forEach(y=>{u[y]=!0}))});const d=h=>g=>{const y={};return c.forEach(b=>{const E=b[h];E!=null&&Object.assign(y,E(g))}),y},p=Object.fromEntries(Object.keys(u).map(h=>[h,d(h)]));return{contentRef:s,rootRef:o,propsEnhancers:p}},wrapItem:({itemId:a,children:o})=>{let s=o;for(let c=e.length-1;c>=0;c-=1){const u=e[c];u.wrapItem&&(s=u.wrapItem({itemId:a,children:s,instance:t}))}return s},wrapRoot:({children:a})=>{let o=a;for(let s=e.length-1;s>=0;s-=1){const c=e[s];c.wrapRoot&&(o=c.wrapRoot({children:o,instance:t}))}return o},instance:t,rootRef:r,publicAPI:n});let jfe=class{constructor(){this.maxListeners=20,this.warnOnce=!1,this.events={}}on(t,n,r={}){let a=this.events[t];a||(a={highPriority:new Map,regular:new Map},this.events[t]=a),r.isFirst?a.highPriority.set(n,!0):a.regular.set(n,!0)}removeListener(t,n){this.events[t]&&(this.events[t].regular.delete(n),this.events[t].highPriority.delete(n))}removeAllListeners(){this.events={}}emit(t,...n){const r=this.events[t];if(!r)return;const a=Array.from(r.highPriority.keys()),o=Array.from(r.regular.keys());for(let s=a.length-1;s>=0;s-=1){const c=a[s];r.highPriority.has(c)&&c.apply(this,n)}for(let s=0;s<o.length;s+=1){const c=o[s];r.regular.has(c)&&c.apply(this,n)}}once(t,n){const r=this;this.on(t,function a(...o){r.removeListener(t,a),n.apply(r,o)})}};const Hfe=e=>e.isPropagationStopped!==void 0,FP=()=>{const[e]=x.useState(()=>new jfe),t=x.useCallback((...r)=>{const[a,o,s={}]=r;s.defaultMuiPrevented=!1,!(Hfe(s)&&s.isPropagationStopped())&&e.emit(a,o,s)},[e]),n=x.useCallback((r,a)=>(e.on(r,a),()=>{e.removeListener(r,a)}),[e]);return{instance:{$$publishEvent:t,$$subscribeEvent:n}}};FP.params={};const BP=({plugins:e})=>{const t=new Set(e);return{instance:{getAvailablePlugins:()=>t}}};BP.params={};const H_=({params:e,state:t,setState:n})=>{x.useEffect(()=>{n(a=>a.id.treeId===e.id&&a.id.treeId!==void 0?a:Ne({},a,{id:Ne({},a.id,{treeId:e.id??gce()})}))},[n,e.id]);const r=e.id??t.id.treeId;return{getRootProps:()=>({id:r}),contextValue:{treeId:r}}};H_.params={id:!0};H_.getInitialState=({id:e})=>({id:{treeId:e??void 0}});const zfe=[FP,BP,H_];function Vfe(e){const t=x.useRef({});return e?(e.current==null&&(e.current={}),e.current):t.current}const Gfe=({plugins:e,rootRef:t,props:n})=>{const r=[...zfe,...e],{pluginParams:a,forwardedProps:o,apiRef:s,experimentalFeatures:c,slots:u,slotProps:d}=Bfe({plugins:r,props:n}),p=$fe(r,a),h=x.useRef({}).current,g=Vfe(s),y=x.useRef(null),b=Kn(y,t),E=Ufe({plugins:r,instance:h,publicAPI:g,rootRef:y}),[_,A]=x.useState(()=>{const R={};return r.forEach(O=>{O.getInitialState&&Object.assign(R,O.getInitialState(a))}),R}),D=[],w=R=>{const O=R({instance:h,params:a,slots:u,slotProps:d,experimentalFeatures:c,state:_,setState:A,rootRef:y,models:p,plugins:r});O.getRootProps&&D.push(O.getRootProps),O.publicAPI&&Object.assign(g,O.publicAPI),O.instance&&Object.assign(h,O.instance),O.contextValue&&Object.assign(E,O.contextValue)};return r.forEach(w),{getRootProps:(R={})=>{const O=Ne({role:"tree"},o,R,{ref:b});return D.forEach(k=>{Object.assign(O,k(R))}),O},rootRef:b,contextValue:E,instance:h}};function qfe(e){const{value:t,children:n}=e;return P.jsx($L.Provider,{value:t,children:t.wrapRoot({children:n,instance:t.instance})})}const Wfe=kP(),Yfe=e=>{const{classes:t}=e;return zt({root:["root"]},Xde,t)},Qfe=ze("ul",{name:"MuiRichTreeView",slot:"Root",overridesResolver:(e,t)=>t.root})({padding:0,margin:0,listStyle:"none",outline:0,position:"relative"}),Kfe=x.forwardRef(function(e,t){const n=Wfe({props:e,name:"MuiRichTreeView"}),{getRootProps:r,contextValue:a,instance:o}=Gfe({plugins:bfe,rootRef:t,props:n}),{slots:s,slotProps:c}=n,u=Yfe(n),d=s?.root??Qfe,p=As({elementType:d,externalSlotProps:c?.root,className:u.root,getSlotProps:r,ownerState:n});return P.jsx(qfe,{value:a,children:P.jsx(d,Ne({},p,{children:P.jsx($P,{slots:s,slotProps:c,itemsToRender:o.getItemsToRender()})}))})});function I0e({items:e,defaultExpandedItems:t,onClickTreeNode:n}){return P.jsx(Kfe,{items:tpe(e,n),defaultExpandedItems:t,slots:{item:epe}})}const Xfe=Vue(mp);function Zfe(e){const t=Rue({to:{opacity:e.in?1:0,transform:`translate3d(0,${e.in?0:20}px,0)`}});return P.jsx(Xfe,{style:t,...e})}function Jfe({item:e,...t}){const n=P.jsxs(Yde,{...t,sx:{display:"flex",alignItems:"center",color:e.error?"error.main":"grey.600"},children:[e.fileType==="directory"&&P.jsx(Tce,{})||e.fileType==="notebook"&&P.jsx(Sce,{})||e.fileType==="model"&&P.jsx(que,{})||e.fileType=="database"&&P.jsx(Gue,{})||P.jsx(_ce,{}),P.jsx(hS,{variant:"body2",sx:{marginLeft:"5px"},color:e.error?"error.main":e.link?"primary.main":"grey.600",children:e.label})]});return e.error?P.jsx(ez,{title:e.error,placement:"right",children:n}):n}const epe=x.forwardRef(function(e,t){const{id:n,itemId:r,label:a,children:o,disabled:s,...c}=e,{getRootProps:u,getContentProps:d,getLabelProps:p,getIconContainerProps:h,getGroupTransitionProps:g,status:y,publicAPI:b}=Ece({id:n,itemId:r,children:o,label:a,disabled:s,rootRef:t}),E=b.getItem(r);return y.selected=!1,y.focused=!1,P.jsx($_,{itemId:r,children:P.jsxs(qde,{...u(c),children:[P.jsxs(Wde,{...d(),...E.link&&{onClick:_=>E.link(_)},sx:{pointerEvents:!E.selectable&&"none"},children:[P.jsx(Qde,{...h(),children:P.jsx(Kde,{status:y})}),P.jsx(Jfe,{...p({item:E})})]}),o&&P.jsx(Zfe,{...g()})]})})});function tpe(e,t){const n=new Map;return e.map(r=>{let a=n;const o=r.path.split("/");o.forEach((s,c)=>{c===o.length-1?a.set(s,r):(a.has(s)||a.set(s,new Map),a=a.get(s))})}),UP(n,"",t)}function UP(e,t,n){const r=[];return e.forEach((a,o)=>{const s=o.endsWith(".malloy")&&"model"||o.endsWith(".malloynb")&&"notebook"||o.endsWith(".parquet")&&"database"||"unknown";if(s!=="unknown"){const c=a;r.push({id:t+o,label:o,fileType:s,link:s==="model"||s==="notebook"?u=>n(t+o,u):void 0,selectable:s==="model"||s==="notebook",error:"error"in c?c.error:void 0})}else t+=`${o}/`,r.push({id:t,label:o,fileType:"directory",selectable:!0,link:void 0,children:UP(a,t,n)})}),r}const z_=new AG({defaultOptions:{queries:{retry:!1,throwOnError:!1},mutations:{retry:!1,throwOnError:!1}}});function npe(e){const{server:t}=WS(),n={...e,queryKey:[...e.queryKey,t],queryFn:async()=>{try{return await e.queryFn()}catch(r){if(r&&typeof r=="object"&&"response"in r){const a=r;if(a.response?.data){const o=new Error(a.response.data.message||a.message);throw o.status=a.response.status,o.data=a.response.data,o}}throw r}},retry:!1,throwOnError:!1};return HG(n,z_)}function rpe(e){const t={...e,mutationFn:async n=>{try{return await e.mutationFn(n)}catch(r){if(r&&typeof r=="object"&&"response"in r){const a=r;if(a.response?.data){const o=new Error(a.response.data.message||a.message);throw o.status=a.response.status,o.data=a.response.data,o}}throw r}},retry:!1,throwOnError:!1};return zG(t,z_)}function ape({sourceAndPaths:e,selectedSourceIndex:t,existingQuery:n,onQueryChange:r,onSourceChange:a,resourceUri:o}){return Tt.useEffect(()=>{a&&a(t)},[t,a]),P.jsx(U3,{children:P.jsxs(EB,{spacing:2,component:"section",children:[P.jsx(ipe,{sourceAndPath:e[t],existingQuery:n,onChange:s=>{r&&r(s)},resourceUri:o}),P.jsx(kF,{height:"5px"})]})})}function Bb(){return{query:void 0,malloyQuery:void 0,malloyResult:void 0}}function ope({sourceAndPath:e,onChange:t,existingQuery:n,explorerComponents:r,QueryBuilder:a,resourceUri:o}){const[s,c]=Tt.useState(n||Bb());Tt.useEffect(()=>{n&&c(n)},[n]);const[u,d]=Tt.useState([]),{MalloyExplorerProvider:p,QueryPanel:h,ResizableCollapsiblePanel:g,ResultPanel:y,SourcePanel:b}=r;Tt.useEffect(()=>{t&&t(s)},[t,s]);const{projectName:E,packageName:_,versionId:A}=Uy(o),{apiClients:D}=WS(),w=rpe({mutationFn:()=>{const F=new a.ASTQuery({source:e.sourceInfo,query:s?.malloyQuery}).toMalloy();return c({...s,query:F}),D.queryResults.executeQuery(E,_,e.modelPath,F,void 0,void 0,A)},onSuccess:F=>{if(F){const G=JSON.parse(F.data.result);c({...s,malloyResult:G})}}}),[R,O]=Tt.useState(e.sourceInfo.name);Tt.useEffect(()=>{R!==e.sourceInfo.name&&(O(e.sourceInfo.name),c(Bb()))},[e,R]);const k=Tt.useCallback(F=>{c({...s,malloyQuery:F,malloyResult:void 0})},[s]);return R!==e.sourceInfo.name?P.jsx("div",{children:"Loading..."}):P.jsx(j3,{sx:{border:"1px solid #e0e0e0",borderRadius:"8px",overflow:"hidden"},children:P.jsx(p,{source:e.sourceInfo,query:s?.malloyQuery,onQueryChange:k,focusedNestViewPath:u,onFocusedNestViewPathChange:d,onDrill:F=>{console.info(F)},children:P.jsxs("div",{style:{display:"flex",height:"100%",overflowY:"auto"},children:[P.jsx(g,{isInitiallyExpanded:!0,initialWidth:180,minWidth:180,icon:"database",title:e.sourceInfo.name,children:P.jsx(b,{onRefresh:()=>c(Bb())})}),P.jsx(g,{isInitiallyExpanded:!0,initialWidth:280,minWidth:280,icon:"filterSliders",title:"Query",children:P.jsx(h,{runQuery:()=>{console.log(`running query with: ${s?.malloyQuery}`);try{w.mutate()}catch(F){console.error("Error running query:",F)}}})}),P.jsx(y,{source:e.sourceInfo,draftQuery:s?.malloyQuery,setDraftQuery:F=>c({...s,malloyQuery:F}),submittedQuery:s?.malloyQuery?{executionState:w.isPending?"running":"finished",response:{result:s.malloyResult},query:s.malloyQuery,queryResolutionStartMillis:Date.now(),onCancel:w.reset}:void 0,options:{showRawQuery:!0}})]})})},e.sourceInfo.name)}function ipe(e){const[t,n]=x.useState(null),[r,a]=x.useState(null),[o,s]=x.useState(!0);return x.useEffect(()=>{let c=!0;return Promise.all([V(()=>import("./index-DycfvfsO.js"),__vite__mapDeps([93,94,95])),V(()=>import("./index-BVlZ6i8j.js").then(u=>u.i),[])]).then(([u,d])=>{c&&(n(u),a(d),s(!1))}).catch(u=>{console.error("Failed to load Malloy components:",u),c&&s(!1)}),()=>{c=!1}},[]),o||!t||!r?P.jsx(cG,{children:P.jsx(j3,{children:P.jsx("div",{style:{alignItems:"center",justifyContent:"center",height:"200px",color:"#666"},children:"Loading explorer..."})})}):P.jsx(ope,{...e,explorerComponents:t,QueryBuilder:r,resourceUri:e.resourceUri})}function spe(e){const{modelPath:t,projectName:n,packageName:r,versionId:a}=Uy(e),{apiClients:o}=WS();return npe({queryKey:["package",n,r,t,a],queryFn:async()=>(await o.models.getModel(n,r,t,a)).data})}const lpe=ze(Sl)(({theme:e})=>({display:"flex",flexWrap:"wrap",gap:e.spacing(1),borderBottom:"1px solid #f0f0f0",minHeight:48,paddingBottom:"8px"})),cpe=ze(kH)(({theme:e,selected:t})=>({minHeight:32,padding:e.spacing(.75,2),borderRadius:"6px",background:t?"#f8f9fa":"transparent",color:t?"#495057":"#666666",fontWeight:t?600:500,border:t?"1px solid #e9ecef":"1px solid transparent",boxShadow:"none",textTransform:"none",fontSize:"15px","&:hover":{background:t?"#f8f9fa":"#fafafa",border:t?"1px solid #e9ecef":"1px solid #f0f0f0"}}));function N0e({data:e,onChange:t,existingQuery:n,initialSelectedSourceIndex:r=0,onSourceChange:a,resourceUri:o}){const[s,c]=Tt.useState(r);Tt.useEffect(()=>{c(r)},[r]);const{data:u,isError:d,isLoading:p,error:h}=spe(o),{modelPath:g}=Uy(o),y=e||u;return p&&!e?P.jsx(bE,{text:"Fetching Model..."}):d&&!e?(console.log("error",h),P.jsx(tz,{error:h,context:`ModelExplorer > ${g}`})):y?P.jsxs(sG,{variant:"outlined",children:[P.jsx(lG,{children:P.jsx(aD,{sx:{flexDirection:"row",justifyContent:"space-between"},children:Array.isArray(y.sourceInfos)&&y.sourceInfos.length>0&&P.jsx(lpe,{children:y.sourceInfos.map((b,E)=>{let _;try{_=JSON.parse(b)}catch{_={name:String(E)}}return P.jsx(cpe,{selected:s===E,onClick:()=>{c(E),a&&a(E)},children:_.name||`Source ${E+1}`},_.name||E)})})})}),P.jsx(U3,{children:P.jsxs(aD,{spacing:2,component:"section",children:[Array.isArray(y.sourceInfos)&&y.sourceInfos.length>0&&P.jsx(ape,{sourceAndPaths:y.sourceInfos.map(b=>({sourceInfo:JSON.parse(b),modelPath:g})),selectedSourceIndex:s,existingQuery:n,onQueryChange:t,resourceUri:o}),P.jsx(Sl,{height:"5px"})]})})]}):P.jsx(bE,{text:"Loading..."})}const L0e=wn(P.jsx("path",{d:"M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"})),P0e=wn(P.jsx("path",{d:"M9.4 16.6 4.8 12l4.6-4.6L8 6l-6 6 6 6zm5.2 0 4.6-4.6-4.6-4.6L16 6l6 6-6 6z"})),M0e=wn(P.jsx("path",{d:"M16 1H4c-1.1 0-2 .9-2 2v14h2V3h12zm3 4H8c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h11c1.1 0 2-.9 2-2V7c0-1.1-.9-2-2-2m0 16H8V7h11z"})),$0e=wn(P.jsx("path",{d:"M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6z"})),F0e=wn(P.jsx("path",{d:"M9 16.17 4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z"})),B0e=wn(P.jsx("path",{d:"m14.06 9.02.92.92L5.92 19H5v-.92zM17.66 3c-.25 0-.51.1-.7.29l-1.83 1.83 3.75 3.75 1.83-1.83c.39-.39.39-1.02 0-1.41l-2.34-2.34c-.2-.2-.45-.29-.71-.29m-3.6 3.19L3 17.25V21h3.75L17.81 9.94z"})),U0e=wn(P.jsx("path",{d:"M17 7h-4v2h4c1.65 0 3 1.35 3 3s-1.35 3-3 3h-4v2h4c2.76 0 5-2.24 5-5s-2.24-5-5-5m-6 8H7c-1.65 0-3-1.35-3-3s1.35-3 3-3h4V7H7c-2.76 0-5 2.24-5 5s2.24 5 5 5h4zm-3-4h8v2H8z"})),j0e=wn(P.jsx("path",{d:"M18 15v3H6v-3H4v3c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2v-3zM7 9l1.41 1.41L11 7.83V16h2V7.83l2.59 2.58L17 9l-5-5z"})),H0e=sS({createStyledComponent:ze("div",{name:"MuiStack",slot:"Root"}),useThemeProps:e=>Yt({props:e,name:"MuiStack"})}),gO="Local";let upe=class{async listWorkspaces(t){return Promise.resolve([{name:gO,description:"Stored locally- only accessible to this browser",writeable:!0}])}async listWorkbooks(t){const n=[];for(let r=0;r<localStorage.length;r++){const a=localStorage.key(r);n.push({path:a,workspace:gO})}return n}async getWorkbook(t){const n=localStorage.getItem(t.path);if(n===null)throw new Error(`Notebook not found at path: ${t}`);return n}async deleteWorkbook(t){if(localStorage.getItem(t.path)===null)throw new Error(`Notebook not found at path: ${t}`);localStorage.removeItem(t.path)}async saveWorkbook(t,n){localStorage.setItem(t.path,n)}async moveWorkbook(t,n){const r=localStorage.getItem(t.path);if(r===null)throw new Error(`Notebook not found at path: ${t.path}`);localStorage.setItem(n.path,r),localStorage.removeItem(t.path)}};function dpe(e){return Ht("MuiButton",e)}const rl=Nt("MuiButton",["root","text","textInherit","textPrimary","textSecondary","textSuccess","textError","textInfo","textWarning","outlined","outlinedInherit","outlinedPrimary","outlinedSecondary","outlinedSuccess","outlinedError","outlinedInfo","outlinedWarning","contained","containedInherit","containedPrimary","containedSecondary","containedSuccess","containedError","containedInfo","containedWarning","disableElevation","focusVisible","disabled","colorInherit","colorPrimary","colorSecondary","colorSuccess","colorError","colorInfo","colorWarning","textSizeSmall","textSizeMedium","textSizeLarge","outlinedSizeSmall","outlinedSizeMedium","outlinedSizeLarge","containedSizeSmall","containedSizeMedium","containedSizeLarge","sizeMedium","sizeSmall","sizeLarge","fullWidth","startIcon","endIcon","icon","iconSizeSmall","iconSizeMedium","iconSizeLarge","loading","loadingWrapper","loadingIconPlaceholder","loadingIndicator","loadingPositionCenter","loadingPositionStart","loadingPositionEnd"]),fpe=x.createContext({}),ppe=x.createContext(void 0);let yO=0;function hpe(e){const[t,n]=x.useState(e),r=e||t;return x.useEffect(()=>{t==null&&(yO+=1,n(`mui-${yO}`))},[t]),r}const mpe={...lg},vO=mpe.useId;function Yp(e){if(vO!==void 0){const t=vO();return e??t}return hpe(e)}function gpe(e){return Ht("MuiCircularProgress",e)}Nt("MuiCircularProgress",["root","determinate","indeterminate","colorPrimary","colorSecondary","svg","circle","circleDeterminate","circleIndeterminate","circleDisableShrink"]);const ms=44,_T=ti`
391
+ `));a[g]={id:g,label:y,parentId:h,idAttribute:void 0,expandable:!!d.children?.length,disabled:t?t(d):!1,depth:p},o[g]=d;const b=h??Yc;s[b]||(s[b]=[]),s[b].push(g),d.children?.forEach(E=>c(E,p+1,g))};e.forEach(d=>c(d,0,null));const u={};return Object.keys(s).forEach(d=>{u[d]=ife(s[d])}),{itemMetaMap:a,itemMap:o,itemOrderedChildrenIds:s,itemChildrenIndexes:u}},Wp=({instance:e,params:t,state:n,setState:r,experimentalFeatures:a})=>{const o=x.useCallback(_=>n.items.itemMetaMap[_],[n.items.itemMetaMap]),s=x.useCallback(_=>n.items.itemMap[_],[n.items.itemMap]),c=x.useCallback(()=>{const _=A=>{const D=n.items.itemMap[A],w=Pr(D,sfe),R=n.items.itemOrderedChildrenIds[A];return R&&(w.children=R.map(_)),w};return n.items.itemOrderedChildrenIds[Yc].map(_)},[n.items.itemMap,n.items.itemOrderedChildrenIds]),u=x.useCallback(_=>{if(_==null)return!1;let A=e.getItemMeta(_);if(!A)return!1;if(A.disabled)return!0;for(;A.parentId!=null;)if(A=e.getItemMeta(A.parentId),A.disabled)return!0;return!1},[e]),d=x.useCallback(_=>{const A=e.getItemMeta(_).parentId??Yc;return n.items.itemChildrenIndexes[A][_]},[e,n.items.itemChildrenIndexes]),p=x.useCallback(_=>n.items.itemOrderedChildrenIds[_??Yc]??[],[n.items.itemOrderedChildrenIds]),h=_=>{const A=e.getItemMeta(_);return A==null?null:document.getElementById(T_({treeId:n.id.treeId,itemId:_,id:A.idAttribute}))},g=_=>t.disabledItemsFocusable?!0:!e.isItemDisabled(_),y=x.useRef(!1),b=x.useCallback(()=>{y.current=!0},[]),E=x.useCallback(()=>y.current,[]);return x.useEffect(()=>{e.areItemUpdatesPrevented()||r(_=>{const A=RP({items:t.items,isItemDisabled:t.isItemDisabled,getItemId:t.getItemId,getItemLabel:t.getItemLabel});return Object.values(_.items.itemMetaMap).forEach(D=>{A.itemMetaMap[D.id]||ofe(e,"removeItem",{id:D.id})}),Ne({},_,{items:A})})},[e,r,t.items,t.isItemDisabled,t.getItemId,t.getItemLabel]),{getRootProps:()=>({style:{"--TreeView-itemChildrenIndentation":typeof t.itemChildrenIndentation=="number"?`${t.itemChildrenIndentation}px`:t.itemChildrenIndentation}}),publicAPI:{getItem:s,getItemDOMElement:h,getItemTree:c,getItemOrderedChildrenIds:p},instance:{getItemMeta:o,getItem:s,getItemTree:c,getItemsToRender:()=>{const _=A=>{const D=n.items.itemMetaMap[A];return{label:D.label,itemId:D.id,id:D.idAttribute,children:n.items.itemOrderedChildrenIds[A]?.map(_)}};return n.items.itemOrderedChildrenIds[Yc].map(_)},getItemIndex:d,getItemDOMElement:h,getItemOrderedChildrenIds:p,isItemDisabled:u,isItemNavigable:g,preventItemUpdates:b,areItemUpdatesPrevented:E},contextValue:{items:{onItemClick:t.onItemClick,disabledItemsFocusable:t.disabledItemsFocusable,indentationAtItemLevel:a.indentationAtItemLevel??!1}}}};Wp.getInitialState=e=>({items:RP({items:e.items,isItemDisabled:e.isItemDisabled,getItemId:e.getItemId,getItemLabel:e.getItemLabel})});Wp.getDefaultizedParams=({params:e})=>Ne({},e,{disabledItemsFocusable:e.disabledItemsFocusable??!1,itemChildrenIndentation:e.itemChildrenIndentation??"12px"});Wp.wrapRoot=({children:e,instance:t})=>P.jsx(S_.Provider,{value:n=>t.getItemMeta(n)?.depth??0,children:e});Wp.params={disabledItemsFocusable:!0,items:!0,isItemDisabled:!0,getItemLabel:!0,getItemId:!0,onItemClick:!0,itemChildrenIndentation:!0};const c0=({instance:e,params:t,models:n})=>{const r=x.useMemo(()=>{const h=new Map;return n.expandedItems.value.forEach(g=>{h.set(g,!0)}),h},[n.expandedItems.value]),a=(h,g)=>{t.onExpandedItemsChange?.(h,g),n.expandedItems.setControlledValue(g)},o=x.useCallback(h=>r.has(h),[r]),s=x.useCallback(h=>!!e.getItemMeta(h)?.expandable,[e]),c=Fr((h,g)=>{const y=e.isItemExpanded(g);e.setItemExpansion(h,g,!y)}),u=Fr((h,g,y)=>{if(e.isItemExpanded(g)===y)return;let b;y?b=[g].concat(n.expandedItems.value):b=n.expandedItems.value.filter(E=>E!==g),t.onItemExpansionToggle&&t.onItemExpansionToggle(h,g,y),a(h,b)}),d=(h,g)=>{const y=e.getItemMeta(g),b=e.getItemOrderedChildrenIds(y.parentId).filter(_=>e.isItemExpandable(_)&&!e.isItemExpanded(_)),E=n.expandedItems.value.concat(b);b.length>0&&(t.onItemExpansionToggle&&b.forEach(_=>{t.onItemExpansionToggle(h,_,!0)}),a(h,E))},p=x.useMemo(()=>t.expansionTrigger?t.expansionTrigger:e.isTreeViewEditable?"iconContainer":"content",[t.expansionTrigger,e.isTreeViewEditable]);return{publicAPI:{setItemExpansion:u},instance:{isItemExpanded:o,isItemExpandable:s,setItemExpansion:u,toggleItemExpansion:c,expandAllSiblings:d},contextValue:{expansion:{expansionTrigger:p}}}};c0.models={expandedItems:{getDefaultValue:e=>e.defaultExpandedItems}};const lfe=[];c0.getDefaultizedParams=({params:e})=>Ne({},e,{defaultExpandedItems:e.defaultExpandedItems??lfe});c0.params={expandedItems:!0,defaultExpandedItems:!0,onExpandedItemsChange:!0,onItemExpansionToggle:!0,expansionTrigger:!0};const sg=e=>Array.isArray(e)?e:e!=null?[e]:[],Fb=e=>{const t={};return e.forEach(n=>{t[n]=!0}),t},u0=({instance:e,params:t,models:n})=>{const r=x.useRef(null),a=x.useRef({}),o=x.useMemo(()=>{const p=new Map;return Array.isArray(n.selectedItems.value)?n.selectedItems.value.forEach(h=>{p.set(h,!0)}):n.selectedItems.value!=null&&p.set(n.selectedItems.value,!0),p},[n.selectedItems.value]),s=(p,h)=>{if(t.onItemSelectionToggle)if(t.multiSelect){const g=h.filter(b=>!e.isItemSelected(b)),y=n.selectedItems.value.filter(b=>!h.includes(b));g.forEach(b=>{t.onItemSelectionToggle(p,b,!0)}),y.forEach(b=>{t.onItemSelectionToggle(p,b,!1)})}else h!==n.selectedItems.value&&(n.selectedItems.value!=null&&t.onItemSelectionToggle(p,n.selectedItems.value,!1),h!=null&&t.onItemSelectionToggle(p,h,!0));t.onSelectedItemsChange&&t.onSelectedItemsChange(p,h),n.selectedItems.setControlledValue(h)},c=p=>o.has(p),u=({event:p,itemId:h,keepExistingSelection:g=!1,shouldBeSelected:y})=>{if(t.disableSelection)return;let b;if(g){const E=sg(n.selectedItems.value),_=e.isItemSelected(h);_&&(y===!1||y==null)?b=E.filter(A=>A!==h):!_&&(y===!0||y==null)?b=[h].concat(E):b=E}else y===!1||y==null&&e.isItemSelected(h)?b=t.multiSelect?[]:null:b=t.multiSelect?[h]:h;s(p,b),r.current=h,a.current={}},d=(p,[h,g])=>{if(t.disableSelection||!t.multiSelect)return;let y=sg(n.selectedItems.value).slice();Object.keys(a.current).length>0&&(y=y.filter(A=>!a.current[A]));const b=Fb(y),E=hce(e,h,g),_=E.filter(A=>!b[A]);y=y.concat(_),s(p,y),a.current=Fb(E)};return{getRootProps:()=>({"aria-multiselectable":t.multiSelect}),publicAPI:{selectItem:u},instance:{isItemSelected:c,selectItem:u,selectAllNavigableItems:p=>{if(t.disableSelection||!t.multiSelect)return;const h=mce(e);s(p,h),a.current=Fb(h)},expandSelectionRange:(p,h)=>{if(r.current!=null){const[g,y]=ML(e,h,r.current);d(p,[g,y])}},selectRangeFromStartToItem:(p,h)=>{d(p,[op(e),h])},selectRangeFromItemToEnd:(p,h)=>{d(p,[h,PL(e)])},selectItemFromArrowNavigation:(p,h,g)=>{if(t.disableSelection||!t.multiSelect)return;let y=sg(n.selectedItems.value).slice();Object.keys(a.current).length===0?(y.push(g),a.current={[h]:!0,[g]:!0}):(a.current[h]||(a.current={}),a.current[g]?(y=y.filter(b=>b!==h),delete a.current[h]):(y.push(g),a.current[g]=!0)),s(p,y)}},contextValue:{selection:{multiSelect:t.multiSelect,checkboxSelection:t.checkboxSelection,disableSelection:t.disableSelection}}}};u0.models={selectedItems:{getDefaultValue:e=>e.defaultSelectedItems}};const cfe=[];u0.getDefaultizedParams=({params:e})=>Ne({},e,{disableSelection:e.disableSelection??!1,multiSelect:e.multiSelect??!1,checkboxSelection:e.checkboxSelection??!1,defaultSelectedItems:e.defaultSelectedItems??(e.multiSelect?cfe:null)});u0.params={disableSelection:!0,multiSelect:!0,checkboxSelection:!0,defaultSelectedItems:!0,selectedItems:!0,onSelectedItemsChange:!0,onItemSelectionToggle:!0};let ufe=class{constructor(t=1e3){this.timeouts=new Map,this.cleanupTimeout=1e3,this.cleanupTimeout=t}register(t,n,r){this.timeouts||(this.timeouts=new Map);const a=setTimeout(()=>{typeof n=="function"&&n(),this.timeouts.delete(r.cleanupToken)},this.cleanupTimeout);this.timeouts.set(r.cleanupToken,a)}unregister(t){const n=this.timeouts.get(t.cleanupToken);n&&(this.timeouts.delete(t.cleanupToken),clearTimeout(n))}reset(){this.timeouts&&(this.timeouts.forEach((t,n)=>{this.unregister({cleanupToken:n})}),this.timeouts=void 0)}},dfe=class{constructor(){this.registry=new FinalizationRegistry(t=>{typeof t=="function"&&t()})}register(t,n,r){this.registry.register(t,n,r)}unregister(t){this.registry.unregister(t)}reset(){}},ffe=class{};function pfe(e){let t=0;return function(n,r,a){e.registry===null&&(e.registry=typeof FinalizationRegistry<"u"?new dfe:new ufe);const[o]=x.useState(new ffe),s=x.useRef(null),c=x.useRef(void 0);c.current=a;const u=x.useRef(null);if(!s.current&&c.current){const d=(p,h)=>{h.defaultMuiPrevented||c.current?.(p,h)};s.current=n.$$subscribeEvent(r,d),t+=1,u.current={cleanupToken:t},e.registry.register(o,()=>{s.current?.(),s.current=null,u.current=null},u.current)}else!c.current&&s.current&&(s.current(),s.current=null,u.current&&(e.registry.unregister(u.current),u.current=null));x.useEffect(()=>{if(!s.current&&c.current){const d=(p,h)=>{h.defaultMuiPrevented||c.current?.(p,h)};s.current=n.$$subscribeEvent(r,d)}return u.current&&e.registry&&(e.registry.unregister(u.current),u.current=null),()=>{s.current?.(),s.current=null}},[n,r])}}const hfe={registry:null},mfe=pfe(hfe),OP=(e=document)=>{const t=e.activeElement;return t?t.shadowRoot?OP(t.shadowRoot):t:null};function Kr(e){return e&&e.ownerDocument||document}const gfe=(e,t)=>{let n=sg(t).find(r=>{if(!e.isItemNavigable(r))return!1;const a=e.getItemMeta(r);return a&&(a.parentId==null||e.isItemExpanded(a.parentId))});return n==null&&(n=op(e)),n},j_=({instance:e,params:t,state:n,setState:r,models:a,rootRef:o})=>{const s=gfe(e,a.selectedItems.value),c=Fr(_=>{const A=typeof _=="function"?_(n.focusedItemId):_;n.focusedItemId!==A&&r(D=>Ne({},D,{focusedItemId:A}))}),u=x.useCallback(()=>!!o.current&&o.current.contains(OP(Kr(o.current))),[o]),d=x.useCallback(_=>n.focusedItemId===_&&u(),[n.focusedItemId,u]),p=_=>{const A=e.getItemMeta(_);return A&&(A.parentId==null||e.isItemExpanded(A.parentId))},h=(_,A)=>{const D=e.getItemDOMElement(A);D&&D.focus(),c(A),t.onItemFocus&&t.onItemFocus(_,A)},g=Fr((_,A)=>{p(A)&&h(_,A)}),y=Fr(()=>{if(n.focusedItemId!=null){if(e.getItemMeta(n.focusedItemId)){const _=e.getItemDOMElement(n.focusedItemId);_&&_.blur()}c(null)}}),b=_=>_===s;mfe(e,"removeItem",({id:_})=>{n.focusedItemId===_&&h(null,s)});const E=_=>A=>{_.onFocus?.(A),!A.defaultMuiPrevented&&A.target===A.currentTarget&&h(A,s)};return{getRootProps:_=>({onFocus:E(_)}),publicAPI:{focusItem:g},instance:{isItemFocused:d,canItemBeTabbed:b,focusItem:g,removeFocusedItem:y}}};j_.getInitialState=()=>({focusedItemId:null});j_.params={onItemFocus:!0};const yfe=x.createContext(),IP=()=>x.useContext(yfe)??!1;function vfe(e){return!!e&&e.length===1&&!!e.match(/\S/)}const NP=({instance:e,params:t,state:n})=>{const r=IP(),a=x.useRef({}),o=Fr(d=>{a.current=d(a.current)});x.useEffect(()=>{if(e.areItemUpdatesPrevented())return;const d={},p=h=>{d[h.id]=h.label.substring(0,1).toLowerCase()};Object.values(n.items.itemMetaMap).forEach(p),a.current=d},[n.items.itemMetaMap,t.getItemId,e]);const s=(d,p)=>{const h=p.toLowerCase(),g=_=>{const A=ag(e,_);return A===null?op(e):A};let y=null,b=g(d);const E={};for(;y==null&&!E[b];)a.current[b]===h?y=b:(E[b]=!0,b=g(b));return y},c=d=>!t.disableSelection&&!e.isItemDisabled(d),u=d=>!e.isItemDisabled(d)&&e.isItemExpandable(d);return{instance:{updateFirstCharMap:o,handleItemKeyDown:(d,p)=>{if(d.defaultMuiPrevented||d.altKey||ip(d.target,d.currentTarget))return;const h=d.ctrlKey||d.metaKey,g=d.key;switch(!0){case(g===" "&&c(p)):{d.preventDefault(),t.multiSelect&&d.shiftKey?e.expandSelectionRange(d,p):e.selectItem({event:d,itemId:p,keepExistingSelection:t.multiSelect,shouldBeSelected:t.multiSelect?void 0:!0});break}case g==="Enter":{wl(e,io)&&e.isItemEditable(p)&&!e.isItemBeingEdited(p)?e.setEditedItemId(p):u(p)?(e.toggleItemExpansion(d,p),d.preventDefault()):c(p)&&(t.multiSelect?(d.preventDefault(),e.selectItem({event:d,itemId:p,keepExistingSelection:!0})):e.isItemSelected(p)||(e.selectItem({event:d,itemId:p}),d.preventDefault()));break}case g==="ArrowDown":{const y=ag(e,p);y&&(d.preventDefault(),e.focusItem(d,y),t.multiSelect&&d.shiftKey&&c(y)&&e.selectItemFromArrowNavigation(d,p,y));break}case g==="ArrowUp":{const y=LL(e,p);y&&(d.preventDefault(),e.focusItem(d,y),t.multiSelect&&d.shiftKey&&c(y)&&e.selectItemFromArrowNavigation(d,p,y));break}case(g==="ArrowRight"&&!r||g==="ArrowLeft"&&r):{if(h)return;if(e.isItemExpanded(p)){const y=ag(e,p);y&&(e.focusItem(d,y),d.preventDefault())}else u(p)&&(e.toggleItemExpansion(d,p),d.preventDefault());break}case(g==="ArrowLeft"&&!r||g==="ArrowRight"&&r):{if(h)return;if(u(p)&&e.isItemExpanded(p))e.toggleItemExpansion(d,p),d.preventDefault();else{const y=e.getItemMeta(p).parentId;y&&(e.focusItem(d,y),d.preventDefault())}break}case g==="Home":{c(p)&&t.multiSelect&&h&&d.shiftKey?e.selectRangeFromStartToItem(d,p):e.focusItem(d,op(e)),d.preventDefault();break}case g==="End":{c(p)&&t.multiSelect&&h&&d.shiftKey?e.selectRangeFromItemToEnd(d,p):e.focusItem(d,PL(e)),d.preventDefault();break}case g==="*":{e.expandAllSiblings(d,p),d.preventDefault();break}case(String.fromCharCode(d.keyCode)==="A"&&h&&t.multiSelect&&!t.disableSelection):{e.selectAllNavigableItems(d),d.preventDefault();break}case(!h&&!d.shiftKey&&vfe(g)):{const y=s(p,g);y!=null&&(e.focusItem(d,y),d.preventDefault());break}}}}}};NP.params={};const LP=({slots:e,slotProps:t})=>({contextValue:{icons:{slots:{collapseIcon:e.collapseIcon,expandIcon:e.expandIcon,endIcon:e.endIcon},slotProps:{collapseIcon:t.collapseIcon,expandIcon:t.expandIcon,endIcon:t.endIcon}}}});LP.params={};const bfe=[Wp,c0,u0,j_,NP,LP,io];function PP(e){const{instance:t,items:{onItemClick:n},selection:{multiSelect:r,checkboxSelection:a,disableSelection:o},expansion:{expansionTrigger:s}}=Vl(),c=t.isItemExpandable(e),u=t.isItemExpanded(e),d=t.isItemFocused(e),p=t.isItemSelected(e),h=t.isItemDisabled(e),g=t?.isItemBeingEdited?t?.isItemBeingEdited(e):!1,y=t.isItemEditable?t.isItemEditable(e):!1,b=w=>{if(!h){d||t.focusItem(w,e);const R=r&&(w.shiftKey||w.ctrlKey||w.metaKey);c&&!(R&&t.isItemExpanded(e))&&t.toggleItemExpansion(w,e)}},E=w=>{h||(!d&&!g&&t.focusItem(w,e),r&&(w.shiftKey||w.ctrlKey||w.metaKey)?w.shiftKey?t.expandSelectionRange(w,e):t.selectItem({event:w,itemId:e,keepExistingSelection:!0}):t.selectItem({event:w,itemId:e,shouldBeSelected:!0}))},_=w=>{if(o||h)return;const R=w.nativeEvent.shiftKey;r&&R?t.expandSelectionRange(w,e):t.selectItem({event:w,itemId:e,keepExistingSelection:r,shouldBeSelected:w.target.checked})},A=w=>{(w.shiftKey||w.ctrlKey||w.metaKey||h)&&w.preventDefault()},D=()=>{wl(t,io)&&t.isItemEditable(e)&&(t.isItemBeingEdited(e)?t.setEditedItemId(null):t.setEditedItemId(e))};return{disabled:h,expanded:u,selected:p,focused:d,editable:y,editing:g,disableSelection:o,checkboxSelection:a,handleExpansion:b,handleSelection:E,handleCheckboxSelection:_,handleContentClick:n,preventSelection:A,expansionTrigger:s,toggleItemEditing:D,handleSaveItemLabel:(w,R)=>{wl(t,io)&&t.isItemBeingEditedRef(e)&&(t.updateItemLabel(e,R),D(),t.focusItem(w,e))},handleCancelItemLabelEditing:w=>{wl(t,io)&&t.isItemBeingEditedRef(e)&&(D(),t.focusItem(w,e))}}}const Efe=ze("input",{name:"MuiTreeItem2",slot:"LabelInput",overridesResolver:(e,t)=>t.labelInput})(({theme:e})=>Ne({},e.typography.body1,{width:"100%",backgroundColor:e.palette.background.paper,borderRadius:e.shape.borderRadius,border:"none",padding:"0 2px",boxSizing:"border-box","&:focus":{outline:`1px solid ${e.palette.primary.main}`}})),Tfe=ze("div",{name:"MuiTreeItem2DragAndDropOverlay",slot:"Root",overridesResolver:(e,t)=>t.root,shouldForwardProp:e=>jm(e)&&e!=="action"})(({theme:e})=>({position:"absolute",left:0,display:"flex",top:0,bottom:0,right:0,pointerEvents:"none",variants:[{props:{action:"make-child"},style:{marginLeft:"calc(var(--TreeView-indentMultiplier) * var(--TreeView-itemDepth))",borderRadius:e.shape.borderRadius,backgroundColor:e.vars?`rgba(${e.vars.palette.primary.darkChannel} / ${e.vars.palette.action.focusOpacity})`:Jn(e.palette.primary.dark,e.palette.action.focusOpacity)}},{props:{action:"reorder-above"},style:{marginLeft:"calc(var(--TreeView-indentMultiplier) * var(--TreeView-itemDepth))",borderTop:`1px solid ${(e.vars||e).palette.action.active}`}},{props:{action:"reorder-below"},style:{marginLeft:"calc(var(--TreeView-indentMultiplier) * var(--TreeView-itemDepth))",borderBottom:`1px solid ${(e.vars||e).palette.action.active}`}},{props:{action:"move-to-parent"},style:{marginLeft:"calc(var(--TreeView-indentMultiplier) * calc(var(--TreeView-itemDepth) - 1))",borderBottom:`1px solid ${(e.vars||e).palette.action.active}`}}]}));function Sfe(e){return e.action==null?null:P.jsx(Tfe,Ne({},e))}const _fe=["classes","className","displayIcon","expansionIcon","icon","label","itemId","onClick","onMouseDown","dragAndDropOverlayProps","labelInputProps"],MP=x.forwardRef(function(e,t){const{classes:n,className:r,displayIcon:a,expansionIcon:o,icon:s,label:c,itemId:u,onClick:d,onMouseDown:p,dragAndDropOverlayProps:h,labelInputProps:g}=e,y=Pr(e,_fe),{disabled:b,expanded:E,selected:_,focused:A,editing:D,editable:w,disableSelection:R,checkboxSelection:O,handleExpansion:k,handleSelection:F,handleCheckboxSelection:G,handleContentClick:j,preventSelection:T,expansionTrigger:M,toggleItemEditing:U}=PP(u),B=s||o||a,Y=x.useRef(null),X=J=>{T(J),p&&p(J)},z=J=>{j?.(J,u),!Y.current?.contains(J.target)&&(M==="content"&&k(J),O||F(J),d&&d(J))},Z=J=>{J.defaultMuiPrevented||U()};return P.jsxs("div",Ne({},y,{className:mt(n.root,r,E&&n.expanded,_&&n.selected,A&&n.focused,b&&n.disabled,D&&n.editing,w&&n.editable),onClick:z,onMouseDown:X,ref:t,children:[P.jsx("div",{className:n.iconContainer,children:B}),O&&P.jsx(xP,{className:n.checkbox,checked:_,onChange:G,disabled:b||R,ref:Y,tabIndex:-1}),D?P.jsx(Efe,Ne({},g,{className:n.labelInput})):P.jsx("div",Ne({className:n.label},w&&{onDoubleClick:Z},{children:c})),h&&P.jsx(Sfe,Ne({},h))]}))});function Cfe(e){return Ht("MuiTreeItem",e)}const wi=Nt("MuiTreeItem",["root","groupTransition","content","expanded","selected","focused","disabled","iconContainer","label","checkbox","labelInput","editable","editing","dragAndDropOverlay"]),Afe=["children","className","slots","slotProps","ContentComponent","ContentProps","itemId","id","label","onClick","onMouseDown","onFocus","onBlur","onKeyDown"],xfe=["ownerState"],wfe=["ownerState"],Dfe=["ownerState"],kfe=kP(),Rfe=e=>{const{classes:t}=e;return zt({root:["root"],content:["content"],expanded:["expanded"],selected:["selected"],focused:["focused"],disabled:["disabled"],iconContainer:["iconContainer"],checkbox:["checkbox"],label:["label"],labelInput:["labelInput"],editing:["editing"],editable:["editable"],groupTransition:["groupTransition"]},Cfe,t)},Ofe=ze("li",{name:"MuiTreeItem",slot:"Root",overridesResolver:(e,t)=>t.root})({listStyle:"none",margin:0,padding:0,outline:0}),Ife=ze(MP,{name:"MuiTreeItem",slot:"Content",overridesResolver:(e,t)=>[t.content,t.iconContainer&&{[`& .${wi.iconContainer}`]:t.iconContainer},t.label&&{[`& .${wi.label}`]:t.label}],shouldForwardProp:e=>ws(e)&&e!=="indentationAtItemLevel"})(({theme:e})=>({padding:e.spacing(.5,1),borderRadius:e.shape.borderRadius,width:"100%",boxSizing:"border-box",position:"relative",display:"flex",alignItems:"center",gap:e.spacing(1),cursor:"pointer",WebkitTapHighlightColor:"transparent","&:hover":{backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${wi.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity,backgroundColor:"transparent"},[`&.${wi.focused}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${wi.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:Jn(e.palette.primary.main,e.palette.action.selectedOpacity),"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:Jn(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:Jn(e.palette.primary.main,e.palette.action.selectedOpacity)}},[`&.${wi.focused}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:Jn(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`& .${wi.iconContainer}`]:{width:16,display:"flex",flexShrink:0,justifyContent:"center","& svg":{fontSize:18}},[`& .${wi.label}`]:Ne({width:"100%",boxSizing:"border-box",minWidth:0,position:"relative"},e.typography.body1),[`& .${wi.checkbox}`]:{padding:0},variants:[{props:{indentationAtItemLevel:!0},style:{paddingLeft:`calc(${e.spacing(1)} + var(--TreeView-itemChildrenIndentation) * var(--TreeView-itemDepth))`}}]})),Nfe=ze(mp,{name:"MuiTreeItem",slot:"GroupTransition",overridesResolver:(e,t)=>t.groupTransition,shouldForwardProp:e=>ws(e)&&e!=="indentationAtItemLevel"})({margin:0,padding:0,paddingLeft:"var(--TreeView-itemChildrenIndentation)",variants:[{props:{indentationAtItemLevel:!0},style:{paddingLeft:0}}]}),Lfe=x.forwardRef(function(e,t){const{icons:n,runItemPlugins:r,items:{disabledItemsFocusable:a,indentationAtItemLevel:o},selection:{disableSelection:s},expansion:{expansionTrigger:c},treeId:u,instance:d}=Vl(),p=x.useContext(S_),h=kfe({props:e,name:"MuiTreeItem"}),{children:g,className:y,slots:b,slotProps:E,ContentComponent:_=MP,ContentProps:A,itemId:D,id:w,label:R,onClick:O,onMouseDown:k,onBlur:F,onKeyDown:G}=h,j=Pr(h,Afe),{expanded:T,focused:M,selected:U,disabled:B,editing:Y,handleExpansion:X,handleCancelItemLabelEditing:z,handleSaveItemLabel:Z}=PP(D),{contentRef:J,rootRef:oe,propsEnhancers:I}=r(h),re=x.useRef(null),ee=x.useRef(null),L=Kn(t,oe,re),te=Kn(A?.ref,J,ee),be={expandIcon:b?.expandIcon??n.slots.expandIcon??wP,collapseIcon:b?.collapseIcon??n.slots.collapseIcon??DP,endIcon:b?.endIcon??n.slots.endIcon,icon:b?.icon,groupTransition:b?.groupTransition},de=Te=>Array.isArray(Te)?Te.length>0&&Te.some(de):!!Te,xe=de(g),ge=Ne({},h,{expanded:T,focused:M,selected:U,disabled:B,indentationAtItemLevel:o}),Oe=Rfe(ge),Ue=be.groupTransition??void 0,Ie=As({elementType:Ue,ownerState:{},externalSlotProps:E?.groupTransition,additionalProps:Ne({unmountOnExit:!0,in:T,component:"ul",role:"group"},o?{indentationAtItemLevel:!0}:{}),className:Oe.groupTransition}),Ye=Te=>{c==="iconContainer"&&X(Te)},Ve=T?be.collapseIcon:be.expandIcon,ke=As({elementType:Ve,ownerState:{},externalSlotProps:Te=>T?Ne({},Go(n.slotProps.collapseIcon,Te),Go(E?.collapseIcon,Te)):Ne({},Go(n.slotProps.expandIcon,Te),Go(E?.expandIcon,Te)),additionalProps:{onClick:Ye}}),Rt=Pr(ke,xfe),Et=xe&&Ve?P.jsx(Ve,Ne({},Rt)):null,je=xe?void 0:be.endIcon,St=As({elementType:je,ownerState:{},externalSlotProps:Te=>xe?{}:Ne({},Go(n.slotProps.endIcon,Te),Go(E?.endIcon,Te))}),ot=Pr(St,wfe),Ze=je?P.jsx(je,Ne({},ot)):null,Ge=be.icon,Pe=As({elementType:Ge,ownerState:{},externalSlotProps:E?.icon}),Ot=Pr(Pe,Dfe),Dn=Ge?P.jsx(Ge,Ne({},Ot)):null;let bt;U?bt=!0:s||B?bt=void 0:bt=!1;function ce(Te){!M&&(!B||a)&&Te.currentTarget===Te.target&&d.focusItem(Te,D)}function me(Te){F?.(Te),!(Y||Te.relatedTarget&&ip(Te.relatedTarget,re.current)&&(Te.target&&Te.target?.dataset?.element==="labelInput"&&ip(Te.target,re.current)||Te.relatedTarget?.dataset?.element==="labelInput"))&&d.removeFocusedItem()}const Be=Te=>{G?.(Te),Te.target?.dataset?.element!=="labelInput"&&d.handleItemKeyDown(Te,D)},We=T_({itemId:D,treeId:u,id:w}),Qe=d.canItemBeTabbed(D)?0:-1,gt={rootRefObject:re,contentRefObject:ee,interactions:{handleSaveItemLabel:Z,handleCancelItemLabelEditing:z}},ln=I.root?.(Ne({},gt,{externalEventHandlers:Gr(j)}))??{},Qt=I.content?.(Ne({},gt,{externalEventHandlers:Gr(A)}))??{},qe=I.dragAndDropOverlay?.(Ne({},gt,{externalEventHandlers:{}}))??{},Ee=I.labelInput?.(Ne({},gt,{externalEventHandlers:{}}))??{};return P.jsx($_,{itemId:D,children:P.jsxs(Ofe,Ne({className:mt(Oe.root,y),role:"treeitem","aria-expanded":xe?T:void 0,"aria-selected":bt,"aria-disabled":B||void 0,id:We,tabIndex:Qe},j,{ownerState:ge,onFocus:ce,onBlur:me,onKeyDown:Be,ref:L,style:o?Ne({},j.style,{"--TreeView-itemDepth":typeof p=="function"?p(D):p}):j.style},ln,{children:[P.jsx(Ife,Ne({as:_,classes:{root:Oe.content,expanded:Oe.expanded,selected:Oe.selected,focused:Oe.focused,disabled:Oe.disabled,editable:Oe.editable,editing:Oe.editing,iconContainer:Oe.iconContainer,label:Oe.label,labelInput:Oe.labelInput,checkbox:Oe.checkbox},label:R,itemId:D,onClick:O,onMouseDown:k,icon:Dn,expansionIcon:Et,displayIcon:Ze,ownerState:ge},A,Qt,qe.action==null?{}:{dragAndDropOverlayProps:qe},Ee.value==null?{}:{labelInputProps:Ee},{ref:te})),g&&P.jsx(Nfe,Ne({as:Ue},Ie,{children:g}))]}))})}),Pfe=["ownerState"];function Mfe({slots:e,slotProps:t,label:n,id:r,itemId:a,itemsToRender:o}){const s=e?.item??Lfe,c=As({elementType:s,externalSlotProps:t?.item,additionalProps:{itemId:a,id:r,label:n},ownerState:{itemId:a,label:n}}),u=Pr(c,Pfe),d=x.useMemo(()=>o?P.jsx($P,{itemsToRender:o,slots:e,slotProps:t}):null,[o,e,t]);return P.jsx(s,Ne({},u,{children:d}))}function $P(e){const{itemsToRender:t,slots:n,slotProps:r}=e;return P.jsx(x.Fragment,{children:t.map(a=>P.jsx(Mfe,{slots:n,slotProps:r,label:a.label,id:a.id,itemId:a.itemId,itemsToRender:a.children},a.itemId))})}const $fe=(e,t)=>{const n=x.useRef({}),[r,a]=x.useState(()=>{const o={};return e.forEach(s=>{s.models&&Object.entries(s.models).forEach(([c,u])=>{n.current[c]={isControlled:t[c]!==void 0,getDefaultValue:u.getDefaultValue},o[c]=u.getDefaultValue(t)})}),o});return Object.fromEntries(Object.entries(n.current).map(([o,s])=>{const c=t[o]??r[o];return[o,{value:c,setControlledValue:u=>{s.isControlled||a(d=>Ne({},d,{[o]:u}))}}]}))},Ffe=["slots","slotProps","apiRef","experimentalFeatures"],Bfe=e=>{let{props:{slots:t,slotProps:n,apiRef:r,experimentalFeatures:a},plugins:o}=e,s=Pr(e.props,Ffe);const c={};o.forEach(g=>{Object.assign(c,g.params)});const u={},d={};Object.keys(s).forEach(g=>{const y=s[g];c[g]?u[g]=y:d[g]=y});const p=a??{},h=o.reduce((g,y)=>y.getDefaultizedParams?y.getDefaultizedParams({params:g,experimentalFeatures:p}):g,u);return{apiRef:r,forwardedProps:d,pluginParams:h,slots:t??{},slotProps:n??{},experimentalFeatures:p}},Ufe=({plugins:e,instance:t,publicAPI:n,rootRef:r})=>({runItemPlugins:a=>{let o=null,s=null;const c=[],u={};e.forEach(h=>{if(!h.itemPlugin)return;const g=h.itemPlugin({props:a,rootRef:o,contentRef:s});g?.rootRef&&(o=g.rootRef),g?.contentRef&&(s=g.contentRef),g?.propsEnhancers&&(c.push(g.propsEnhancers),Object.keys(g.propsEnhancers).forEach(y=>{u[y]=!0}))});const d=h=>g=>{const y={};return c.forEach(b=>{const E=b[h];E!=null&&Object.assign(y,E(g))}),y},p=Object.fromEntries(Object.keys(u).map(h=>[h,d(h)]));return{contentRef:s,rootRef:o,propsEnhancers:p}},wrapItem:({itemId:a,children:o})=>{let s=o;for(let c=e.length-1;c>=0;c-=1){const u=e[c];u.wrapItem&&(s=u.wrapItem({itemId:a,children:s,instance:t}))}return s},wrapRoot:({children:a})=>{let o=a;for(let s=e.length-1;s>=0;s-=1){const c=e[s];c.wrapRoot&&(o=c.wrapRoot({children:o,instance:t}))}return o},instance:t,rootRef:r,publicAPI:n});let jfe=class{constructor(){this.maxListeners=20,this.warnOnce=!1,this.events={}}on(t,n,r={}){let a=this.events[t];a||(a={highPriority:new Map,regular:new Map},this.events[t]=a),r.isFirst?a.highPriority.set(n,!0):a.regular.set(n,!0)}removeListener(t,n){this.events[t]&&(this.events[t].regular.delete(n),this.events[t].highPriority.delete(n))}removeAllListeners(){this.events={}}emit(t,...n){const r=this.events[t];if(!r)return;const a=Array.from(r.highPriority.keys()),o=Array.from(r.regular.keys());for(let s=a.length-1;s>=0;s-=1){const c=a[s];r.highPriority.has(c)&&c.apply(this,n)}for(let s=0;s<o.length;s+=1){const c=o[s];r.regular.has(c)&&c.apply(this,n)}}once(t,n){const r=this;this.on(t,function a(...o){r.removeListener(t,a),n.apply(r,o)})}};const Hfe=e=>e.isPropagationStopped!==void 0,FP=()=>{const[e]=x.useState(()=>new jfe),t=x.useCallback((...r)=>{const[a,o,s={}]=r;s.defaultMuiPrevented=!1,!(Hfe(s)&&s.isPropagationStopped())&&e.emit(a,o,s)},[e]),n=x.useCallback((r,a)=>(e.on(r,a),()=>{e.removeListener(r,a)}),[e]);return{instance:{$$publishEvent:t,$$subscribeEvent:n}}};FP.params={};const BP=({plugins:e})=>{const t=new Set(e);return{instance:{getAvailablePlugins:()=>t}}};BP.params={};const H_=({params:e,state:t,setState:n})=>{x.useEffect(()=>{n(a=>a.id.treeId===e.id&&a.id.treeId!==void 0?a:Ne({},a,{id:Ne({},a.id,{treeId:e.id??gce()})}))},[n,e.id]);const r=e.id??t.id.treeId;return{getRootProps:()=>({id:r}),contextValue:{treeId:r}}};H_.params={id:!0};H_.getInitialState=({id:e})=>({id:{treeId:e??void 0}});const zfe=[FP,BP,H_];function Vfe(e){const t=x.useRef({});return e?(e.current==null&&(e.current={}),e.current):t.current}const Gfe=({plugins:e,rootRef:t,props:n})=>{const r=[...zfe,...e],{pluginParams:a,forwardedProps:o,apiRef:s,experimentalFeatures:c,slots:u,slotProps:d}=Bfe({plugins:r,props:n}),p=$fe(r,a),h=x.useRef({}).current,g=Vfe(s),y=x.useRef(null),b=Kn(y,t),E=Ufe({plugins:r,instance:h,publicAPI:g,rootRef:y}),[_,A]=x.useState(()=>{const R={};return r.forEach(O=>{O.getInitialState&&Object.assign(R,O.getInitialState(a))}),R}),D=[],w=R=>{const O=R({instance:h,params:a,slots:u,slotProps:d,experimentalFeatures:c,state:_,setState:A,rootRef:y,models:p,plugins:r});O.getRootProps&&D.push(O.getRootProps),O.publicAPI&&Object.assign(g,O.publicAPI),O.instance&&Object.assign(h,O.instance),O.contextValue&&Object.assign(E,O.contextValue)};return r.forEach(w),{getRootProps:(R={})=>{const O=Ne({role:"tree"},o,R,{ref:b});return D.forEach(k=>{Object.assign(O,k(R))}),O},rootRef:b,contextValue:E,instance:h}};function qfe(e){const{value:t,children:n}=e;return P.jsx($L.Provider,{value:t,children:t.wrapRoot({children:n,instance:t.instance})})}const Wfe=kP(),Yfe=e=>{const{classes:t}=e;return zt({root:["root"]},Xde,t)},Qfe=ze("ul",{name:"MuiRichTreeView",slot:"Root",overridesResolver:(e,t)=>t.root})({padding:0,margin:0,listStyle:"none",outline:0,position:"relative"}),Kfe=x.forwardRef(function(e,t){const n=Wfe({props:e,name:"MuiRichTreeView"}),{getRootProps:r,contextValue:a,instance:o}=Gfe({plugins:bfe,rootRef:t,props:n}),{slots:s,slotProps:c}=n,u=Yfe(n),d=s?.root??Qfe,p=As({elementType:d,externalSlotProps:c?.root,className:u.root,getSlotProps:r,ownerState:n});return P.jsx(qfe,{value:a,children:P.jsx(d,Ne({},p,{children:P.jsx($P,{slots:s,slotProps:c,itemsToRender:o.getItemsToRender()})}))})});function I0e({items:e,defaultExpandedItems:t,onClickTreeNode:n}){return P.jsx(Kfe,{items:tpe(e,n),defaultExpandedItems:t,slots:{item:epe}})}const Xfe=Vue(mp);function Zfe(e){const t=Rue({to:{opacity:e.in?1:0,transform:`translate3d(0,${e.in?0:20}px,0)`}});return P.jsx(Xfe,{style:t,...e})}function Jfe({item:e,...t}){const n=P.jsxs(Yde,{...t,sx:{display:"flex",alignItems:"center",color:e.error?"error.main":"grey.600"},children:[e.fileType==="directory"&&P.jsx(Tce,{})||e.fileType==="notebook"&&P.jsx(Sce,{})||e.fileType==="model"&&P.jsx(que,{})||e.fileType=="database"&&P.jsx(Gue,{})||P.jsx(_ce,{}),P.jsx(hS,{variant:"body2",sx:{marginLeft:"5px"},color:e.error?"error.main":e.link?"primary.main":"grey.600",children:e.label})]});return e.error?P.jsx(ez,{title:e.error,placement:"right",children:n}):n}const epe=x.forwardRef(function(e,t){const{id:n,itemId:r,label:a,children:o,disabled:s,...c}=e,{getRootProps:u,getContentProps:d,getLabelProps:p,getIconContainerProps:h,getGroupTransitionProps:g,status:y,publicAPI:b}=Ece({id:n,itemId:r,children:o,label:a,disabled:s,rootRef:t}),E=b.getItem(r);return y.selected=!1,y.focused=!1,P.jsx($_,{itemId:r,children:P.jsxs(qde,{...u(c),children:[P.jsxs(Wde,{...d(),...E.link&&{onClick:_=>E.link(_)},sx:{pointerEvents:!E.selectable&&"none"},children:[P.jsx(Qde,{...h(),children:P.jsx(Kde,{status:y})}),P.jsx(Jfe,{...p({item:E})})]}),o&&P.jsx(Zfe,{...g()})]})})});function tpe(e,t){const n=new Map;return e.map(r=>{let a=n;const o=r.path.split("/");o.forEach((s,c)=>{c===o.length-1?a.set(s,r):(a.has(s)||a.set(s,new Map),a=a.get(s))})}),UP(n,"",t)}function UP(e,t,n){const r=[];return e.forEach((a,o)=>{const s=o.endsWith(".malloy")&&"model"||o.endsWith(".malloynb")&&"notebook"||o.endsWith(".parquet")&&"database"||"unknown";if(s!=="unknown"){const c=a;r.push({id:t+o,label:o,fileType:s,link:s==="model"||s==="notebook"?u=>n(t+o,u):void 0,selectable:s==="model"||s==="notebook",error:"error"in c?c.error:void 0})}else t+=`${o}/`,r.push({id:t,label:o,fileType:"directory",selectable:!0,link:void 0,children:UP(a,t,n)})}),r}const z_=new AG({defaultOptions:{queries:{retry:!1,throwOnError:!1},mutations:{retry:!1,throwOnError:!1}}});function npe(e){const{server:t}=WS(),n={...e,queryKey:[...e.queryKey,t],queryFn:async()=>{try{return await e.queryFn()}catch(r){if(r&&typeof r=="object"&&"response"in r){const a=r;if(a.response?.data){const o=new Error(a.response.data.message||a.message);throw o.status=a.response.status,o.data=a.response.data,o}}throw r}},retry:!1,throwOnError:!1};return HG(n,z_)}function rpe(e){const t={...e,mutationFn:async n=>{try{return await e.mutationFn(n)}catch(r){if(r&&typeof r=="object"&&"response"in r){const a=r;if(a.response?.data){const o=new Error(a.response.data.message||a.message);throw o.status=a.response.status,o.data=a.response.data,o}}throw r}},retry:!1,throwOnError:!1};return zG(t,z_)}function ape({sourceAndPaths:e,selectedSourceIndex:t,existingQuery:n,onQueryChange:r,onSourceChange:a,resourceUri:o}){return Tt.useEffect(()=>{a&&a(t)},[t,a]),P.jsx(U3,{children:P.jsxs(EB,{spacing:2,component:"section",children:[P.jsx(ipe,{sourceAndPath:e[t],existingQuery:n,onChange:s=>{r&&r(s)},resourceUri:o}),P.jsx(kF,{height:"5px"})]})})}function Bb(){return{query:void 0,malloyQuery:void 0,malloyResult:void 0}}function ope({sourceAndPath:e,onChange:t,existingQuery:n,explorerComponents:r,QueryBuilder:a,resourceUri:o}){const[s,c]=Tt.useState(n||Bb());Tt.useEffect(()=>{n&&c(n)},[n]);const[u,d]=Tt.useState([]),{MalloyExplorerProvider:p,QueryPanel:h,ResizableCollapsiblePanel:g,ResultPanel:y,SourcePanel:b}=r;Tt.useEffect(()=>{t&&t(s)},[t,s]);const{projectName:E,packageName:_,versionId:A}=Dy(o),{apiClients:D}=WS(),w=rpe({mutationFn:()=>{const F=new a.ASTQuery({source:e.sourceInfo,query:s?.malloyQuery}).toMalloy();return c({...s,query:F}),D.queryResults.executeQuery(E,_,e.modelPath,F,void 0,void 0,A)},onSuccess:F=>{if(F){const G=JSON.parse(F.data.result);c({...s,malloyResult:G})}}}),[R,O]=Tt.useState(e.sourceInfo.name);Tt.useEffect(()=>{R!==e.sourceInfo.name&&(O(e.sourceInfo.name),c(Bb()))},[e,R]);const k=Tt.useCallback(F=>{c({...s,malloyQuery:F,malloyResult:void 0})},[s]);return R!==e.sourceInfo.name?P.jsx("div",{children:"Loading..."}):P.jsx(j3,{sx:{border:"1px solid #e0e0e0",borderRadius:"8px",overflow:"hidden"},children:P.jsx(p,{source:e.sourceInfo,query:s?.malloyQuery,onQueryChange:k,focusedNestViewPath:u,onFocusedNestViewPathChange:d,onDrill:F=>{console.info(F)},children:P.jsxs("div",{style:{display:"flex",height:"100%",overflowY:"auto"},children:[P.jsx(g,{isInitiallyExpanded:!0,initialWidth:180,minWidth:180,icon:"database",title:e.sourceInfo.name,children:P.jsx(b,{onRefresh:()=>c(Bb())})}),P.jsx(g,{isInitiallyExpanded:!0,initialWidth:280,minWidth:280,icon:"filterSliders",title:"Query",children:P.jsx(h,{runQuery:()=>{console.log(`running query with: ${s?.malloyQuery}`);try{w.mutate()}catch(F){console.error("Error running query:",F)}}})}),P.jsx(y,{source:e.sourceInfo,draftQuery:s?.malloyQuery,setDraftQuery:F=>c({...s,malloyQuery:F}),submittedQuery:s?.malloyQuery?{executionState:w.isPending?"running":"finished",response:{result:s.malloyResult},query:s.malloyQuery,queryResolutionStartMillis:Date.now(),onCancel:w.reset}:void 0,options:{showRawQuery:!0}})]})})},e.sourceInfo.name)}function ipe(e){const[t,n]=x.useState(null),[r,a]=x.useState(null),[o,s]=x.useState(!0);return x.useEffect(()=>{let c=!0;return Promise.all([V(()=>import("./index-CUx2TJnu.js"),__vite__mapDeps([93,94,95])),V(()=>import("./index-B4eYfbqj.js").then(u=>u.i),[])]).then(([u,d])=>{c&&(n(u),a(d),s(!1))}).catch(u=>{console.error("Failed to load Malloy components:",u),c&&s(!1)}),()=>{c=!1}},[]),o||!t||!r?P.jsx(cG,{children:P.jsx(j3,{children:P.jsx("div",{style:{alignItems:"center",justifyContent:"center",height:"200px",color:"#666"},children:"Loading explorer..."})})}):P.jsx(ope,{...e,explorerComponents:t,QueryBuilder:r,resourceUri:e.resourceUri})}function spe(e,t=!0){const{modelPath:n,projectName:r,packageName:a,versionId:o}=Dy(e),{apiClients:s}=WS();return npe({queryKey:["package",r,a,n,o],queryFn:async()=>(await s.models.getModel(r,a,n,o)).data,enabled:t})}const lpe=ze(Sl)(({theme:e})=>({display:"flex",flexWrap:"wrap",gap:e.spacing(1),borderBottom:"1px solid #f0f0f0",minHeight:48,paddingBottom:"8px"})),cpe=ze(kH)(({theme:e,selected:t})=>({minHeight:32,padding:e.spacing(.75,2),borderRadius:"6px",background:t?"#f8f9fa":"transparent",color:t?"#495057":"#666666",fontWeight:t?600:500,border:t?"1px solid #e9ecef":"1px solid transparent",boxShadow:"none",textTransform:"none",fontSize:"15px","&:hover":{background:t?"#f8f9fa":"#fafafa",border:t?"1px solid #e9ecef":"1px solid #f0f0f0"}}));function N0e({data:e,onChange:t,existingQuery:n,initialSelectedSourceIndex:r=0,onSourceChange:a,resourceUri:o}){const[s,c]=Tt.useState(r);Tt.useEffect(()=>{c(r)},[r]);const{data:u,isError:d,isLoading:p,error:h}=spe(o,!e),{modelPath:g}=Dy(o),y=e||u;return p&&!e?P.jsx(bE,{text:"Fetching Model..."}):d&&!e?(console.log("error",h),P.jsx(tz,{error:h,context:`ModelExplorer > ${g}`})):y?P.jsxs(sG,{variant:"outlined",children:[P.jsx(lG,{children:P.jsx(aD,{sx:{flexDirection:"row",justifyContent:"space-between"},children:Array.isArray(y.sourceInfos)&&y.sourceInfos.length>0&&P.jsx(lpe,{children:y.sourceInfos.map((b,E)=>{let _;try{_=JSON.parse(b)}catch{_={name:String(E)}}return P.jsx(cpe,{selected:s===E,onClick:()=>{c(E),a&&a(E)},children:_.name||`Source ${E+1}`},_.name||E)})})})}),P.jsx(U3,{children:P.jsxs(aD,{spacing:2,component:"section",children:[Array.isArray(y.sourceInfos)&&y.sourceInfos.length>0&&P.jsx(ape,{sourceAndPaths:y.sourceInfos.map(b=>({sourceInfo:JSON.parse(b),modelPath:g})),selectedSourceIndex:s,existingQuery:n,onQueryChange:t,resourceUri:o}),P.jsx(Sl,{height:"5px"})]})})]}):P.jsx(bE,{text:"Loading..."})}const L0e=wn(P.jsx("path",{d:"M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"})),P0e=wn(P.jsx("path",{d:"M9.4 16.6 4.8 12l4.6-4.6L8 6l-6 6 6 6zm5.2 0 4.6-4.6-4.6-4.6L16 6l6 6-6 6z"})),M0e=wn(P.jsx("path",{d:"M16 1H4c-1.1 0-2 .9-2 2v14h2V3h12zm3 4H8c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h11c1.1 0 2-.9 2-2V7c0-1.1-.9-2-2-2m0 16H8V7h11z"})),$0e=wn(P.jsx("path",{d:"M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6z"})),F0e=wn(P.jsx("path",{d:"M9 16.17 4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z"})),B0e=wn(P.jsx("path",{d:"m14.06 9.02.92.92L5.92 19H5v-.92zM17.66 3c-.25 0-.51.1-.7.29l-1.83 1.83 3.75 3.75 1.83-1.83c.39-.39.39-1.02 0-1.41l-2.34-2.34c-.2-.2-.45-.29-.71-.29m-3.6 3.19L3 17.25V21h3.75L17.81 9.94z"})),U0e=wn(P.jsx("path",{d:"M17 7h-4v2h4c1.65 0 3 1.35 3 3s-1.35 3-3 3h-4v2h4c2.76 0 5-2.24 5-5s-2.24-5-5-5m-6 8H7c-1.65 0-3-1.35-3-3s1.35-3 3-3h4V7H7c-2.76 0-5 2.24-5 5s2.24 5 5 5h4zm-3-4h8v2H8z"})),j0e=wn(P.jsx("path",{d:"M18 15v3H6v-3H4v3c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2v-3zM7 9l1.41 1.41L11 7.83V16h2V7.83l2.59 2.58L17 9l-5-5z"})),H0e=sS({createStyledComponent:ze("div",{name:"MuiStack",slot:"Root"}),useThemeProps:e=>Yt({props:e,name:"MuiStack"})}),gO="Local";let upe=class{async listWorkspaces(t){return Promise.resolve([{name:gO,description:"Stored locally- only accessible to this browser",writeable:!0}])}async listWorkbooks(t){const n=[];for(let r=0;r<localStorage.length;r++){const a=localStorage.key(r);n.push({path:a,workspace:gO})}return n}async getWorkbook(t){const n=localStorage.getItem(t.path);if(n===null)throw new Error(`Notebook not found at path: ${t}`);return n}async deleteWorkbook(t){if(localStorage.getItem(t.path)===null)throw new Error(`Notebook not found at path: ${t}`);localStorage.removeItem(t.path)}async saveWorkbook(t,n){localStorage.setItem(t.path,n)}async moveWorkbook(t,n){const r=localStorage.getItem(t.path);if(r===null)throw new Error(`Notebook not found at path: ${t.path}`);localStorage.setItem(n.path,r),localStorage.removeItem(t.path)}};function dpe(e){return Ht("MuiButton",e)}const rl=Nt("MuiButton",["root","text","textInherit","textPrimary","textSecondary","textSuccess","textError","textInfo","textWarning","outlined","outlinedInherit","outlinedPrimary","outlinedSecondary","outlinedSuccess","outlinedError","outlinedInfo","outlinedWarning","contained","containedInherit","containedPrimary","containedSecondary","containedSuccess","containedError","containedInfo","containedWarning","disableElevation","focusVisible","disabled","colorInherit","colorPrimary","colorSecondary","colorSuccess","colorError","colorInfo","colorWarning","textSizeSmall","textSizeMedium","textSizeLarge","outlinedSizeSmall","outlinedSizeMedium","outlinedSizeLarge","containedSizeSmall","containedSizeMedium","containedSizeLarge","sizeMedium","sizeSmall","sizeLarge","fullWidth","startIcon","endIcon","icon","iconSizeSmall","iconSizeMedium","iconSizeLarge","loading","loadingWrapper","loadingIconPlaceholder","loadingIndicator","loadingPositionCenter","loadingPositionStart","loadingPositionEnd"]),fpe=x.createContext({}),ppe=x.createContext(void 0);let yO=0;function hpe(e){const[t,n]=x.useState(e),r=e||t;return x.useEffect(()=>{t==null&&(yO+=1,n(`mui-${yO}`))},[t]),r}const mpe={...lg},vO=mpe.useId;function Yp(e){if(vO!==void 0){const t=vO();return e??t}return hpe(e)}function gpe(e){return Ht("MuiCircularProgress",e)}Nt("MuiCircularProgress",["root","determinate","indeterminate","colorPrimary","colorSecondary","svg","circle","circleDeterminate","circleIndeterminate","circleDisableShrink"]);const ms=44,_T=ti`
392
392
  0% {
393
393
  transform: rotate(0deg);
394
394
  }
@@ -417,4 +417,4 @@ export default theme;`}const Iz=e=>{const t=Object.keys(e).map(n=>({key:n,val:e[
417
417
  animation: ${CT} 1.4s ease-in-out infinite;
418
418
  `:null,bpe=e=>{const{classes:t,variant:n,color:r,disableShrink:a}=e,o={root:["root",n,`color${rt(r)}`],svg:["svg"],circle:["circle",`circle${rt(n)}`,a&&"circleDisableShrink"]};return zt(o,gpe,t)},Epe=ze("span",{name:"MuiCircularProgress",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`color${rt(n.color)}`]]}})(fn(({theme:e})=>({display:"inline-block",variants:[{props:{variant:"determinate"},style:{transition:e.transitions.create("transform")}},{props:{variant:"indeterminate"},style:ype||{animation:`${_T} 1.4s linear infinite`}},...Object.entries(e.palette).filter(_o()).map(([t])=>({props:{color:t},style:{color:(e.vars||e).palette[t].main}}))]}))),Tpe=ze("svg",{name:"MuiCircularProgress",slot:"Svg"})({display:"block"}),Spe=ze("circle",{name:"MuiCircularProgress",slot:"Circle",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.circle,t[`circle${rt(n.variant)}`],n.disableShrink&&t.circleDisableShrink]}})(fn(({theme:e})=>({stroke:"currentColor",variants:[{props:{variant:"determinate"},style:{transition:e.transitions.create("stroke-dashoffset")}},{props:{variant:"indeterminate"},style:{strokeDasharray:"80px, 200px",strokeDashoffset:0}},{props:({ownerState:t})=>t.variant==="indeterminate"&&!t.disableShrink,style:vpe||{animation:`${CT} 1.4s ease-in-out infinite`}}]}))),jP=x.forwardRef(function(e,t){const n=Yt({props:e,name:"MuiCircularProgress"}),{className:r,color:a="primary",disableShrink:o=!1,size:s=40,style:c,thickness:u=3.6,value:d=0,variant:p="indeterminate",...h}=n,g={...n,color:a,disableShrink:o,size:s,thickness:u,value:d,variant:p},y=bpe(g),b={},E={},_={};if(p==="determinate"){const A=2*Math.PI*((ms-u)/2);b.strokeDasharray=A.toFixed(3),_["aria-valuenow"]=Math.round(d),b.strokeDashoffset=`${((100-d)/100*A).toFixed(3)}px`,E.transform="rotate(-90deg)"}return P.jsx(Epe,{className:mt(y.root,r),style:{width:s,height:s,...E,...c},ownerState:g,ref:t,role:"progressbar",..._,...h,children:P.jsx(Tpe,{className:y.svg,ownerState:g,viewBox:`${ms/2} ${ms/2} ${ms} ${ms}`,children:P.jsx(Spe,{className:y.circle,style:b,ownerState:g,cx:ms,cy:ms,r:(ms-u)/2,fill:"none",strokeWidth:u})})})}),_pe=e=>{const{color:t,disableElevation:n,fullWidth:r,size:a,variant:o,loading:s,loadingPosition:c,classes:u}=e,d={root:["root",s&&"loading",o,`${o}${rt(t)}`,`size${rt(a)}`,`${o}Size${rt(a)}`,`color${rt(t)}`,n&&"disableElevation",r&&"fullWidth",s&&`loadingPosition${rt(c)}`],startIcon:["icon","startIcon",`iconSize${rt(a)}`],endIcon:["icon","endIcon",`iconSize${rt(a)}`],loadingIndicator:["loadingIndicator"],loadingWrapper:["loadingWrapper"]},p=zt(d,dpe,u);return{...u,...p}},HP=[{props:{size:"small"},style:{"& > *:nth-of-type(1)":{fontSize:18}}},{props:{size:"medium"},style:{"& > *:nth-of-type(1)":{fontSize:20}}},{props:{size:"large"},style:{"& > *:nth-of-type(1)":{fontSize:22}}}],Cpe=ze(l0,{shouldForwardProp:e=>ea(e)||e==="classes",name:"MuiButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`${n.variant}${rt(n.color)}`],t[`size${rt(n.size)}`],t[`${n.variant}Size${rt(n.size)}`],n.color==="inherit"&&t.colorInherit,n.disableElevation&&t.disableElevation,n.fullWidth&&t.fullWidth,n.loading&&t.loading]}})(fn(({theme:e})=>{const t=e.palette.mode==="light"?e.palette.grey[300]:e.palette.grey[800],n=e.palette.mode==="light"?e.palette.grey.A100:e.palette.grey[700];return{...e.typography.button,minWidth:64,padding:"6px 16px",border:0,borderRadius:(e.vars||e).shape.borderRadius,transition:e.transitions.create(["background-color","box-shadow","border-color","color"],{duration:e.transitions.duration.short}),"&:hover":{textDecoration:"none"},[`&.${rl.disabled}`]:{color:(e.vars||e).palette.action.disabled},variants:[{props:{variant:"contained"},style:{color:"var(--variant-containedColor)",backgroundColor:"var(--variant-containedBg)",boxShadow:(e.vars||e).shadows[2],"&:hover":{boxShadow:(e.vars||e).shadows[4],"@media (hover: none)":{boxShadow:(e.vars||e).shadows[2]}},"&:active":{boxShadow:(e.vars||e).shadows[8]},[`&.${rl.focusVisible}`]:{boxShadow:(e.vars||e).shadows[6]},[`&.${rl.disabled}`]:{color:(e.vars||e).palette.action.disabled,boxShadow:(e.vars||e).shadows[0],backgroundColor:(e.vars||e).palette.action.disabledBackground}}},{props:{variant:"outlined"},style:{padding:"5px 15px",border:"1px solid currentColor",borderColor:"var(--variant-outlinedBorder, currentColor)",backgroundColor:"var(--variant-outlinedBg)",color:"var(--variant-outlinedColor)",[`&.${rl.disabled}`]:{border:`1px solid ${(e.vars||e).palette.action.disabledBackground}`}}},{props:{variant:"text"},style:{padding:"6px 8px",color:"var(--variant-textColor)",backgroundColor:"var(--variant-textBg)"}},...Object.entries(e.palette).filter(_o()).map(([r])=>({props:{color:r},style:{"--variant-textColor":(e.vars||e).palette[r].main,"--variant-outlinedColor":(e.vars||e).palette[r].main,"--variant-outlinedBorder":e.vars?`rgba(${e.vars.palette[r].mainChannel} / 0.5)`:Nr(e.palette[r].main,.5),"--variant-containedColor":(e.vars||e).palette[r].contrastText,"--variant-containedBg":(e.vars||e).palette[r].main,"@media (hover: hover)":{"&:hover":{"--variant-containedBg":(e.vars||e).palette[r].dark,"--variant-textBg":e.vars?`rgba(${e.vars.palette[r].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Nr(e.palette[r].main,e.palette.action.hoverOpacity),"--variant-outlinedBorder":(e.vars||e).palette[r].main,"--variant-outlinedBg":e.vars?`rgba(${e.vars.palette[r].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Nr(e.palette[r].main,e.palette.action.hoverOpacity)}}}})),{props:{color:"inherit"},style:{color:"inherit",borderColor:"currentColor","--variant-containedBg":e.vars?e.vars.palette.Button.inheritContainedBg:t,"@media (hover: hover)":{"&:hover":{"--variant-containedBg":e.vars?e.vars.palette.Button.inheritContainedHoverBg:n,"--variant-textBg":e.vars?`rgba(${e.vars.palette.text.primaryChannel} / ${e.vars.palette.action.hoverOpacity})`:Nr(e.palette.text.primary,e.palette.action.hoverOpacity),"--variant-outlinedBg":e.vars?`rgba(${e.vars.palette.text.primaryChannel} / ${e.vars.palette.action.hoverOpacity})`:Nr(e.palette.text.primary,e.palette.action.hoverOpacity)}}}},{props:{size:"small",variant:"text"},style:{padding:"4px 5px",fontSize:e.typography.pxToRem(13)}},{props:{size:"large",variant:"text"},style:{padding:"8px 11px",fontSize:e.typography.pxToRem(15)}},{props:{size:"small",variant:"outlined"},style:{padding:"3px 9px",fontSize:e.typography.pxToRem(13)}},{props:{size:"large",variant:"outlined"},style:{padding:"7px 21px",fontSize:e.typography.pxToRem(15)}},{props:{size:"small",variant:"contained"},style:{padding:"4px 10px",fontSize:e.typography.pxToRem(13)}},{props:{size:"large",variant:"contained"},style:{padding:"8px 22px",fontSize:e.typography.pxToRem(15)}},{props:{disableElevation:!0},style:{boxShadow:"none","&:hover":{boxShadow:"none"},[`&.${rl.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${rl.disabled}`]:{boxShadow:"none"}}},{props:{fullWidth:!0},style:{width:"100%"}},{props:{loadingPosition:"center"},style:{transition:e.transitions.create(["background-color","box-shadow","border-color"],{duration:e.transitions.duration.short}),[`&.${rl.loading}`]:{color:"transparent"}}}]}})),Ape=ze("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.startIcon,n.loading&&t.startIconLoadingStart,t[`iconSize${rt(n.size)}`]]}})(({theme:e})=>({display:"inherit",marginRight:8,marginLeft:-4,variants:[{props:{size:"small"},style:{marginLeft:-2}},{props:{loadingPosition:"start",loading:!0},style:{transition:e.transitions.create(["opacity"],{duration:e.transitions.duration.short}),opacity:0}},{props:{loadingPosition:"start",loading:!0,fullWidth:!0},style:{marginRight:-8}},...HP]})),xpe=ze("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.endIcon,n.loading&&t.endIconLoadingEnd,t[`iconSize${rt(n.size)}`]]}})(({theme:e})=>({display:"inherit",marginRight:-4,marginLeft:8,variants:[{props:{size:"small"},style:{marginRight:-2}},{props:{loadingPosition:"end",loading:!0},style:{transition:e.transitions.create(["opacity"],{duration:e.transitions.duration.short}),opacity:0}},{props:{loadingPosition:"end",loading:!0,fullWidth:!0},style:{marginLeft:-8}},...HP]})),wpe=ze("span",{name:"MuiButton",slot:"LoadingIndicator"})(({theme:e})=>({display:"none",position:"absolute",visibility:"visible",variants:[{props:{loading:!0},style:{display:"flex"}},{props:{loadingPosition:"start"},style:{left:14}},{props:{loadingPosition:"start",size:"small"},style:{left:10}},{props:{variant:"text",loadingPosition:"start"},style:{left:6}},{props:{loadingPosition:"center"},style:{left:"50%",transform:"translate(-50%)",color:(e.vars||e).palette.action.disabled}},{props:{loadingPosition:"end"},style:{right:14}},{props:{loadingPosition:"end",size:"small"},style:{right:10}},{props:{variant:"text",loadingPosition:"end"},style:{right:6}},{props:{loadingPosition:"start",fullWidth:!0},style:{position:"relative",left:-10}},{props:{loadingPosition:"end",fullWidth:!0},style:{position:"relative",right:-10}}]})),bO=ze("span",{name:"MuiButton",slot:"LoadingIconPlaceholder"})({display:"inline-block",width:"1em",height:"1em"}),V0e=x.forwardRef(function(e,t){const n=x.useContext(fpe),r=x.useContext(ppe),a=Wf(n,e),o=Yt({props:a,name:"MuiButton"}),{children:s,color:c="primary",component:u="button",className:d,disabled:p=!1,disableElevation:h=!1,disableFocusRipple:g=!1,endIcon:y,focusVisibleClassName:b,fullWidth:E=!1,id:_,loading:A=null,loadingIndicator:D,loadingPosition:w="center",size:R="medium",startIcon:O,type:k,variant:F="text",...G}=o,j=Yp(_),T=D??P.jsx(jP,{"aria-labelledby":j,color:"inherit",size:16}),M={...o,color:c,component:u,disabled:p,disableElevation:h,disableFocusRipple:g,fullWidth:E,loading:A,loadingIndicator:T,loadingPosition:w,size:R,type:k,variant:F},U=_pe(M),B=(O||A&&w==="start")&&P.jsx(Ape,{className:U.startIcon,ownerState:M,children:O||P.jsx(bO,{className:U.loadingIconPlaceholder,ownerState:M})}),Y=(y||A&&w==="end")&&P.jsx(xpe,{className:U.endIcon,ownerState:M,children:y||P.jsx(bO,{className:U.loadingIconPlaceholder,ownerState:M})}),X=r||"",z=typeof A=="boolean"?P.jsx("span",{className:U.loadingWrapper,style:{display:"contents"},children:A&&P.jsx(wpe,{className:U.loadingIndicator,ownerState:M,children:T})}):null;return P.jsxs(Cpe,{ownerState:M,className:mt(n.className,U.root,d,X),component:u,disabled:p||A,focusRipple:!g,focusVisibleClassName:mt(U.focusVisible,b),ref:t,type:k,id:A?j:_,...G,classes:U,children:[B,w!=="end"&&z,s,w==="end"&&z,Y]})});function Dpe(e){return Ht("MuiDialog",e)}const Ub=Nt("MuiDialog",["root","scrollPaper","scrollBody","container","paper","paperScrollPaper","paperScrollBody","paperWidthFalse","paperWidthXs","paperWidthSm","paperWidthMd","paperWidthLg","paperWidthXl","paperFullWidth","paperFullScreen"]),zP=x.createContext({});function kpe(e){return Ht("MuiPaper",e)}Nt("MuiPaper",["root","rounded","outlined","elevation","elevation0","elevation1","elevation2","elevation3","elevation4","elevation5","elevation6","elevation7","elevation8","elevation9","elevation10","elevation11","elevation12","elevation13","elevation14","elevation15","elevation16","elevation17","elevation18","elevation19","elevation20","elevation21","elevation22","elevation23","elevation24"]);const Rpe=e=>{const{square:t,elevation:n,variant:r,classes:a}=e,o={root:["root",r,!t&&"rounded",r==="elevation"&&`elevation${n}`]};return zt(o,kpe,a)},Ope=ze("div",{name:"MuiPaper",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],!n.square&&t.rounded,n.variant==="elevation"&&t[`elevation${n.elevation}`]]}})(fn(({theme:e})=>({backgroundColor:(e.vars||e).palette.background.paper,color:(e.vars||e).palette.text.primary,transition:e.transitions.create("box-shadow"),variants:[{props:({ownerState:t})=>!t.square,style:{borderRadius:e.shape.borderRadius}},{props:{variant:"outlined"},style:{border:`1px solid ${(e.vars||e).palette.divider}`}},{props:{variant:"elevation"},style:{boxShadow:"var(--Paper-shadow)",backgroundImage:"var(--Paper-overlay)"}}]}))),d0=x.forwardRef(function(e,t){const n=Yt({props:e,name:"MuiPaper"}),r=Lu(),{className:a,component:o="div",elevation:s=1,square:c=!1,variant:u="elevation",...d}=n,p={...n,component:o,elevation:s,square:c,variant:u},h=Rpe(p);return P.jsx(Ope,{as:o,ownerState:p,className:mt(h.root,a),ref:t,...d,style:{...u==="elevation"&&{"--Paper-shadow":(r.vars||r).shadows[s],...r.vars&&{"--Paper-overlay":r.vars.overlays?.[s]},...!r.vars&&r.palette.mode==="dark"&&{"--Paper-overlay":`linear-gradient(${Nr("#fff",yE(s))}, ${Nr("#fff",yE(s))})`}},...d.style}})});function Pu(e){return parseInt(x.version,10)>=19?e?.props?.ref||null:e?.ref||null}const Ipe={entering:{opacity:1},entered:{opacity:1}},AT=x.forwardRef(function(e,t){const n=Lu(),r={enter:n.transitions.duration.enteringScreen,exit:n.transitions.duration.leavingScreen},{addEndListener:a,appear:o=!0,children:s,easing:c,in:u,onEnter:d,onEntered:p,onEntering:h,onExit:g,onExited:y,onExiting:b,style:E,timeout:_=r,TransitionComponent:A=wo,...D}=e,w=x.useRef(null),R=Kn(w,Pu(s),t),O=U=>B=>{if(U){const Y=w.current;B===void 0?U(Y):U(Y,B)}},k=O(h),F=O((U,B)=>{bP(U);const Y=yu({style:E,timeout:_,easing:c},{mode:"enter"});U.style.webkitTransition=n.transitions.create("opacity",Y),U.style.transition=n.transitions.create("opacity",Y),d&&d(U,B)}),G=O(p),j=O(b),T=O(U=>{const B=yu({style:E,timeout:_,easing:c},{mode:"exit"});U.style.webkitTransition=n.transitions.create("opacity",B),U.style.transition=n.transitions.create("opacity",B),g&&g(U)}),M=O(y);return P.jsx(A,{appear:o,in:u,nodeRef:w,onEnter:F,onEntered:G,onEntering:k,onExit:T,onExited:M,onExiting:j,addEndListener:U=>{a&&a(w.current,U)},timeout:_,...D,children:(U,{ownerState:B,...Y})=>x.cloneElement(s,{style:{opacity:0,visibility:U==="exited"&&!u?"hidden":void 0,...Ipe[U],...E,...s.props.style},ref:R,...Y})})});function VP(e=window){const t=e.document.documentElement.clientWidth;return e.innerWidth-t}function $i(e){return Kr(e).defaultView||window}function Npe(e){const t=Kr(e);return t.body===e?$i(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}function Lf(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function EO(e){return parseInt($i(e).getComputedStyle(e).paddingRight,10)||0}function Lpe(e){const t=["TEMPLATE","SCRIPT","STYLE","LINK","MAP","META","NOSCRIPT","PICTURE","COL","COLGROUP","PARAM","SLOT","SOURCE","TRACK"].includes(e.tagName),n=e.tagName==="INPUT"&&e.getAttribute("type")==="hidden";return t||n}function TO(e,t,n,r,a){const o=[t,n,...r];[].forEach.call(e.children,s=>{const c=!o.includes(s),u=!Lpe(s);c&&u&&Lf(s,a)})}function jb(e,t){let n=-1;return e.some((r,a)=>t(r)?(n=a,!0):!1),n}function Ppe(e,t){const n=[],r=e.container;if(!t.disableScrollLock){if(Npe(r)){const o=VP($i(r));n.push({value:r.style.paddingRight,property:"padding-right",el:r}),r.style.paddingRight=`${EO(r)+o}px`;const s=Kr(r).querySelectorAll(".mui-fixed");[].forEach.call(s,c=>{n.push({value:c.style.paddingRight,property:"padding-right",el:c}),c.style.paddingRight=`${EO(c)+o}px`})}let a;if(r.parentNode instanceof DocumentFragment)a=Kr(r).body;else{const o=r.parentElement,s=$i(r);a=o?.nodeName==="HTML"&&s.getComputedStyle(o).overflowY==="scroll"?o:r}n.push({value:a.style.overflow,property:"overflow",el:a},{value:a.style.overflowX,property:"overflow-x",el:a},{value:a.style.overflowY,property:"overflow-y",el:a}),a.style.overflow="hidden"}return()=>{n.forEach(({value:a,el:o,property:s})=>{a?o.style.setProperty(s,a):o.style.removeProperty(s)})}}function Mpe(e){const t=[];return[].forEach.call(e.children,n=>{n.getAttribute("aria-hidden")==="true"&&t.push(n)}),t}let $pe=class{constructor(){this.modals=[],this.containers=[]}add(t,n){let r=this.modals.indexOf(t);if(r!==-1)return r;r=this.modals.length,this.modals.push(t),t.modalRef&&Lf(t.modalRef,!1);const a=Mpe(n);TO(n,t.mount,t.modalRef,a,!0);const o=jb(this.containers,s=>s.container===n);return o!==-1?(this.containers[o].modals.push(t),r):(this.containers.push({modals:[t],container:n,restore:null,hiddenSiblings:a}),r)}mount(t,n){const r=jb(this.containers,o=>o.modals.includes(t)),a=this.containers[r];a.restore||(a.restore=Ppe(a,n))}remove(t,n=!0){const r=this.modals.indexOf(t);if(r===-1)return r;const a=jb(this.containers,s=>s.modals.includes(t)),o=this.containers[a];if(o.modals.splice(o.modals.indexOf(t),1),this.modals.splice(r,1),o.modals.length===0)o.restore&&o.restore(),t.modalRef&&Lf(t.modalRef,n),TO(o.container,t.mount,t.modalRef,o.hiddenSiblings,!1),this.containers.splice(a,1);else{const s=o.modals[o.modals.length-1];s.modalRef&&Lf(s.modalRef,!1)}return r}isTopModal(t){return this.modals.length>0&&this.modals[this.modals.length-1]===t}};function SO(...e){return e.reduce((t,n)=>n==null?t:function(...r){t.apply(this,r),n.apply(this,r)},()=>{})}function Fpe(e){return typeof e=="function"?e():e}function Bpe(e){return e?e.props.hasOwnProperty("in"):!1}const _O=()=>{},Om=new $pe;function Upe(e){const{container:t,disableEscapeKeyDown:n=!1,disableScrollLock:r=!1,closeAfterTransition:a=!1,onTransitionEnter:o,onTransitionExited:s,children:c,onClose:u,open:d,rootRef:p}=e,h=x.useRef({}),g=x.useRef(null),y=x.useRef(null),b=Kn(y,p),[E,_]=x.useState(!d),A=Bpe(c);let D=!0;(e["aria-hidden"]==="false"||e["aria-hidden"]===!1)&&(D=!1);const w=()=>Kr(g.current),R=()=>(h.current.modalRef=y.current,h.current.mount=g.current,h.current),O=()=>{Om.mount(R(),{disableScrollLock:r}),y.current&&(y.current.scrollTop=0)},k=Fr(()=>{const U=Fpe(t)||w().body;Om.add(R(),U),y.current&&O()}),F=()=>Om.isTopModal(R()),G=Fr(U=>{g.current=U,U&&(d&&F()?O():y.current&&Lf(y.current,D))}),j=x.useCallback(()=>{Om.remove(R(),D)},[D]);x.useEffect(()=>()=>{j()},[j]),x.useEffect(()=>{d?k():(!A||!a)&&j()},[d,j,A,a,k]);const T=U=>B=>{U.onKeyDown?.(B),!(B.key!=="Escape"||B.which===229||!F())&&(n||(B.stopPropagation(),u&&u(B,"escapeKeyDown")))},M=U=>B=>{U.onClick?.(B),B.target===B.currentTarget&&u&&u(B,"backdropClick")};return{getRootProps:(U={})=>{const B=Gr(e);delete B.onTransitionEnter,delete B.onTransitionExited;const Y={...B,...U};return{role:"presentation",...Y,onKeyDown:T(Y),ref:b}},getBackdropProps:(U={})=>{const B=U;return{"aria-hidden":!0,...B,onClick:M(B),open:d}},getTransitionProps:()=>{const U=()=>{_(!1),o&&o()},B=()=>{_(!0),s&&s(),a&&j()};return{onEnter:SO(U,c?.props.onEnter??_O),onExited:SO(B,c?.props.onExited??_O)}},rootRef:b,portalRef:G,isTopModal:F,exited:E,hasTransition:A}}function jpe(e){return Ht("MuiModal",e)}Nt("MuiModal",["root","hidden","backdrop"]);function CO(e,t){typeof e=="function"?e(t):e&&(e.current=t)}function Hpe(e){return typeof e=="function"?e():e}const zpe=x.forwardRef(function(e,t){const{children:n,container:r,disablePortal:a=!1}=e,[o,s]=x.useState(null),c=Kn(x.isValidElement(n)?Pu(n):null,t);if(Ls(()=>{a||s(Hpe(r)||document.body)},[r,a]),Ls(()=>{if(o&&!a)return CO(t,o),()=>{CO(t,null)}},[t,o,a]),a){if(x.isValidElement(n)){const u={ref:c};return x.cloneElement(n,u)}return n}return o&&bp.createPortal(n,o)}),Vpe=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function Gpe(e){const t=parseInt(e.getAttribute("tabindex")||"",10);return Number.isNaN(t)?e.contentEditable==="true"||(e.nodeName==="AUDIO"||e.nodeName==="VIDEO"||e.nodeName==="DETAILS")&&e.getAttribute("tabindex")===null?0:e.tabIndex:t}function qpe(e){if(e.tagName!=="INPUT"||e.type!=="radio"||!e.name)return!1;const t=r=>e.ownerDocument.querySelector(`input[type="radio"]${r}`);let n=t(`[name="${e.name}"]:checked`);return n||(n=t(`[name="${e.name}"]`)),n!==e}function Wpe(e){return!(e.disabled||e.tagName==="INPUT"&&e.type==="hidden"||qpe(e))}function Ype(e){const t=[],n=[];return Array.from(e.querySelectorAll(Vpe)).forEach((r,a)=>{const o=Gpe(r);o===-1||!Wpe(r)||(o===0?t.push(r):n.push({documentOrder:a,tabIndex:o,node:r}))}),n.sort((r,a)=>r.tabIndex===a.tabIndex?r.documentOrder-a.documentOrder:r.tabIndex-a.tabIndex).map(r=>r.node).concat(t)}function Qpe(){return!0}function Kpe(e){const{children:t,disableAutoFocus:n=!1,disableEnforceFocus:r=!1,disableRestoreFocus:a=!1,getTabbable:o=Ype,isEnabled:s=Qpe,open:c}=e,u=x.useRef(!1),d=x.useRef(null),p=x.useRef(null),h=x.useRef(null),g=x.useRef(null),y=x.useRef(!1),b=x.useRef(null),E=Kn(Pu(t),b),_=x.useRef(null);x.useEffect(()=>{!c||!b.current||(y.current=!n)},[n,c]),x.useEffect(()=>{if(!c||!b.current)return;const w=Kr(b.current);return b.current.contains(w.activeElement)||(b.current.hasAttribute("tabIndex")||b.current.setAttribute("tabIndex","-1"),y.current&&b.current.focus()),()=>{a||(h.current&&h.current.focus&&(u.current=!0,h.current.focus()),h.current=null)}},[c]),x.useEffect(()=>{if(!c||!b.current)return;const w=Kr(b.current),R=F=>{_.current=F,!(r||!s()||F.key!=="Tab")&&w.activeElement===b.current&&F.shiftKey&&(u.current=!0,p.current&&p.current.focus())},O=()=>{const F=b.current;if(F===null)return;if(!w.hasFocus()||!s()||u.current){u.current=!1;return}if(F.contains(w.activeElement)||r&&w.activeElement!==d.current&&w.activeElement!==p.current)return;if(w.activeElement!==g.current)g.current=null;else if(g.current!==null)return;if(!y.current)return;let G=[];if((w.activeElement===d.current||w.activeElement===p.current)&&(G=o(b.current)),G.length>0){const j=!!(_.current?.shiftKey&&_.current?.key==="Tab"),T=G[0],M=G[G.length-1];typeof T!="string"&&typeof M!="string"&&(j?M.focus():T.focus())}else F.focus()};w.addEventListener("focusin",O),w.addEventListener("keydown",R,!0);const k=setInterval(()=>{w.activeElement&&w.activeElement.tagName==="BODY"&&O()},50);return()=>{clearInterval(k),w.removeEventListener("focusin",O),w.removeEventListener("keydown",R,!0)}},[n,r,a,s,c,o]);const A=w=>{h.current===null&&(h.current=w.relatedTarget),y.current=!0,g.current=w.target;const R=t.props.onFocus;R&&R(w)},D=w=>{h.current===null&&(h.current=w.relatedTarget),y.current=!0};return P.jsxs(x.Fragment,{children:[P.jsx("div",{tabIndex:c?0:-1,onFocus:D,ref:d,"data-testid":"sentinelStart"}),x.cloneElement(t,{ref:E,onFocus:A}),P.jsx("div",{tabIndex:c?0:-1,onFocus:D,ref:p,"data-testid":"sentinelEnd"})]})}function Xpe(e){return Ht("MuiBackdrop",e)}Nt("MuiBackdrop",["root","invisible"]);const Zpe=e=>{const{classes:t,invisible:n}=e;return zt({root:["root",n&&"invisible"]},Xpe,t)},Jpe=ze("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.invisible&&t.invisible]}})({position:"fixed",display:"flex",alignItems:"center",justifyContent:"center",right:0,bottom:0,top:0,left:0,backgroundColor:"rgba(0, 0, 0, 0.5)",WebkitTapHighlightColor:"transparent",variants:[{props:{invisible:!0},style:{backgroundColor:"transparent"}}]}),GP=x.forwardRef(function(e,t){const n=Yt({props:e,name:"MuiBackdrop"}),{children:r,className:a,component:o="div",invisible:s=!1,open:c,components:u={},componentsProps:d={},slotProps:p={},slots:h={},TransitionComponent:g,transitionDuration:y,...b}=n,E={...n,component:o,invisible:s},_=Zpe(E),A={transition:g,root:u.Root,...h},D={...d,...p},w={component:o,slots:A,slotProps:D},[R,O]=bn("root",{elementType:Jpe,externalForwardedProps:w,className:mt(_.root,a),ownerState:E}),[k,F]=bn("transition",{elementType:AT,externalForwardedProps:w,ownerState:E});return P.jsx(k,{in:c,timeout:y,...b,...F,children:P.jsx(R,{"aria-hidden":!0,...O,classes:_,ref:t,children:r})})}),ehe=e=>{const{open:t,exited:n,classes:r}=e;return zt({root:["root",!t&&n&&"hidden"],backdrop:["backdrop"]},jpe,r)},the=ze("div",{name:"MuiModal",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.open&&n.exited&&t.hidden]}})(fn(({theme:e})=>({position:"fixed",zIndex:(e.vars||e).zIndex.modal,right:0,bottom:0,top:0,left:0,variants:[{props:({ownerState:t})=>!t.open&&t.exited,style:{visibility:"hidden"}}]}))),nhe=ze(GP,{name:"MuiModal",slot:"Backdrop"})({zIndex:-1}),qP=x.forwardRef(function(e,t){const n=Yt({name:"MuiModal",props:e}),{BackdropComponent:r=nhe,BackdropProps:a,classes:o,className:s,closeAfterTransition:c=!1,children:u,container:d,component:p,components:h={},componentsProps:g={},disableAutoFocus:y=!1,disableEnforceFocus:b=!1,disableEscapeKeyDown:E=!1,disablePortal:_=!1,disableRestoreFocus:A=!1,disableScrollLock:D=!1,hideBackdrop:w=!1,keepMounted:R=!1,onClose:O,onTransitionEnter:k,onTransitionExited:F,open:G,slotProps:j={},slots:T={},theme:M,...U}=n,B={...n,closeAfterTransition:c,disableAutoFocus:y,disableEnforceFocus:b,disableEscapeKeyDown:E,disablePortal:_,disableRestoreFocus:A,disableScrollLock:D,hideBackdrop:w,keepMounted:R},{getRootProps:Y,getBackdropProps:X,getTransitionProps:z,portalRef:Z,isTopModal:J,exited:oe,hasTransition:I}=Upe({...B,rootRef:t}),re={...B,exited:oe},ee=ehe(re),L={};if(u.props.tabIndex===void 0&&(L.tabIndex="-1"),I){const{onEnter:Oe,onExited:Ue}=z();L.onEnter=Oe,L.onExited=Ue}const te={slots:{root:h.Root,backdrop:h.Backdrop,...T},slotProps:{...g,...j}},[be,de]=bn("root",{ref:t,elementType:the,externalForwardedProps:{...te,...U,component:p},getSlotProps:Y,ownerState:re,className:mt(s,ee?.root,!re.open&&re.exited&&ee?.hidden)}),[xe,ge]=bn("backdrop",{ref:a?.ref,elementType:r,externalForwardedProps:te,shouldForwardComponentProp:!0,additionalProps:a,getSlotProps:Oe=>X({...Oe,onClick:Ue=>{Oe?.onClick&&Oe.onClick(Ue)}}),className:mt(a?.className,ee?.backdrop),ownerState:re});return!R&&!G&&(!I||oe)?null:P.jsx(zpe,{ref:Z,container:d,disablePortal:_,children:P.jsxs(be,{...de,children:[!w&&r?P.jsx(xe,{...ge}):null,P.jsx(Kpe,{disableEnforceFocus:b,disableAutoFocus:y,disableRestoreFocus:A,isEnabled:J,open:G,children:x.cloneElement(u,L)})]})})}),rhe=ze(GP,{name:"MuiDialog",slot:"Backdrop",overrides:(e,t)=>t.backdrop})({zIndex:-1}),ahe=e=>{const{classes:t,scroll:n,maxWidth:r,fullWidth:a,fullScreen:o}=e,s={root:["root"],container:["container",`scroll${rt(n)}`],paper:["paper",`paperScroll${rt(n)}`,`paperWidth${rt(String(r))}`,a&&"paperFullWidth",o&&"paperFullScreen"]};return zt(s,Dpe,t)},ohe=ze(qP,{name:"MuiDialog",slot:"Root"})({"@media print":{position:"absolute !important"}}),ihe=ze("div",{name:"MuiDialog",slot:"Container",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.container,t[`scroll${rt(n.scroll)}`]]}})({height:"100%","@media print":{height:"auto"},outline:0,variants:[{props:{scroll:"paper"},style:{display:"flex",justifyContent:"center",alignItems:"center"}},{props:{scroll:"body"},style:{overflowY:"auto",overflowX:"hidden",textAlign:"center","&::after":{content:'""',display:"inline-block",verticalAlign:"middle",height:"100%",width:"0"}}}]}),she=ze(d0,{name:"MuiDialog",slot:"Paper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.paper,t[`scrollPaper${rt(n.scroll)}`],t[`paperWidth${rt(String(n.maxWidth))}`],n.fullWidth&&t.paperFullWidth,n.fullScreen&&t.paperFullScreen]}})(fn(({theme:e})=>({margin:32,position:"relative",overflowY:"auto","@media print":{overflowY:"visible",boxShadow:"none"},variants:[{props:{scroll:"paper"},style:{display:"flex",flexDirection:"column",maxHeight:"calc(100% - 64px)"}},{props:{scroll:"body"},style:{display:"inline-block",verticalAlign:"middle",textAlign:"initial"}},{props:({ownerState:t})=>!t.maxWidth,style:{maxWidth:"calc(100% - 64px)"}},{props:{maxWidth:"xs"},style:{maxWidth:e.breakpoints.unit==="px"?Math.max(e.breakpoints.values.xs,444):`max(${e.breakpoints.values.xs}${e.breakpoints.unit}, 444px)`,[`&.${Ub.paperScrollBody}`]:{[e.breakpoints.down(Math.max(e.breakpoints.values.xs,444)+64)]:{maxWidth:"calc(100% - 64px)"}}}},...Object.keys(e.breakpoints.values).filter(t=>t!=="xs").map(t=>({props:{maxWidth:t},style:{maxWidth:`${e.breakpoints.values[t]}${e.breakpoints.unit}`,[`&.${Ub.paperScrollBody}`]:{[e.breakpoints.down(e.breakpoints.values[t]+64)]:{maxWidth:"calc(100% - 64px)"}}}})),{props:({ownerState:t})=>t.fullWidth,style:{width:"calc(100% - 64px)"}},{props:({ownerState:t})=>t.fullScreen,style:{margin:0,width:"100%",maxWidth:"100%",height:"100%",maxHeight:"none",borderRadius:0,[`&.${Ub.paperScrollBody}`]:{margin:0,maxWidth:"100%"}}}]}))),q0e=x.forwardRef(function(e,t){const n=Yt({props:e,name:"MuiDialog"}),r=Lu(),a={enter:r.transitions.duration.enteringScreen,exit:r.transitions.duration.leavingScreen},{"aria-describedby":o,"aria-labelledby":s,"aria-modal":c=!0,BackdropComponent:u,BackdropProps:d,children:p,className:h,disableEscapeKeyDown:g=!1,fullScreen:y=!1,fullWidth:b=!1,maxWidth:E="sm",onClick:_,onClose:A,open:D,PaperComponent:w=d0,PaperProps:R={},scroll:O="paper",slots:k={},slotProps:F={},TransitionComponent:G=AT,transitionDuration:j=a,TransitionProps:T,...M}=n,U={...n,disableEscapeKeyDown:g,fullScreen:y,fullWidth:b,maxWidth:E,scroll:O},B=ahe(U),Y=x.useRef(),X=Ye=>{Y.current=Ye.target===Ye.currentTarget},z=Ye=>{_&&_(Ye),Y.current&&(Y.current=null,A&&A(Ye,"backdropClick"))},Z=Yp(s),J=x.useMemo(()=>({titleId:Z}),[Z]),oe={transition:G,...k},I={transition:T,paper:R,backdrop:d,...F},re={slots:oe,slotProps:I},[ee,L]=bn("root",{elementType:ohe,shouldForwardComponentProp:!0,externalForwardedProps:re,ownerState:U,className:mt(B.root,h),ref:t}),[te,be]=bn("backdrop",{elementType:rhe,shouldForwardComponentProp:!0,externalForwardedProps:re,ownerState:U}),[de,xe]=bn("paper",{elementType:she,shouldForwardComponentProp:!0,externalForwardedProps:re,ownerState:U,className:mt(B.paper,R.className)}),[ge,Oe]=bn("container",{elementType:ihe,externalForwardedProps:re,ownerState:U,className:B.container}),[Ue,Ie]=bn("transition",{elementType:AT,externalForwardedProps:re,ownerState:U,additionalProps:{appear:!0,in:D,timeout:j,role:"presentation"}});return P.jsx(ee,{closeAfterTransition:!0,slots:{backdrop:te},slotProps:{backdrop:{transitionDuration:j,as:u,...be}},disableEscapeKeyDown:g,onClose:A,open:D,onClick:z,...L,...M,children:P.jsx(Ue,{...Ie,children:P.jsx(ge,{onMouseDown:X,...Oe,children:P.jsx(de,{as:w,elevation:24,role:"dialog","aria-describedby":o,"aria-labelledby":Z,"aria-modal":c,...xe,children:P.jsx(zP.Provider,{value:J,children:p})})})})})});function lhe(e){return Ht("MuiDialogTitle",e)}const che=Nt("MuiDialogTitle",["root"]),uhe=e=>{const t={systemProps:{},otherProps:{}},n=e?.theme?.unstable_sxConfig??Rp;return Object.keys(e).forEach(r=>{n[r]?t.systemProps[r]=e[r]:t.otherProps[r]=e[r]}),t};function dhe(e){const{sx:t,...n}=e,{systemProps:r,otherProps:a}=uhe(n);let o;return Array.isArray(t)?o=[r,...t]:typeof t=="function"?o=(...s)=>{const c=t(...s);return Wo(c)?{...r,...c}:r}:o={...r,...t},{...a,sx:o}}function fhe(e){return P.jsx(ZT,{...e,defaultTheme:xy,themeId:wy})}function phe(e){return function(t){return P.jsx(fhe,{styles:typeof e=="function"?n=>e({theme:n,...t}):e})}}function hhe(){return dhe}function mhe(e){return Ht("MuiTypography",e)}Nt("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]);const ghe={primary:!0,secondary:!0,error:!0,info:!0,success:!0,warning:!0,textPrimary:!0,textSecondary:!0,textDisabled:!0},yhe=hhe(),vhe=e=>{const{align:t,gutterBottom:n,noWrap:r,paragraph:a,variant:o,classes:s}=e,c={root:["root",o,e.align!=="inherit"&&`align${rt(t)}`,n&&"gutterBottom",r&&"noWrap",a&&"paragraph"]};return zt(c,mhe,s)},bhe=ze("span",{name:"MuiTypography",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.variant&&t[n.variant],n.align!=="inherit"&&t[`align${rt(n.align)}`],n.noWrap&&t.noWrap,n.gutterBottom&&t.gutterBottom,n.paragraph&&t.paragraph]}})(fn(({theme:e})=>({margin:0,variants:[{props:{variant:"inherit"},style:{font:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}},...Object.entries(e.typography).filter(([t,n])=>t!=="inherit"&&n&&typeof n=="object").map(([t,n])=>({props:{variant:t},style:n})),...Object.entries(e.palette).filter(_o()).map(([t])=>({props:{color:t},style:{color:(e.vars||e).palette[t].main}})),...Object.entries(e.palette?.text||{}).filter(([,t])=>typeof t=="string").map(([t])=>({props:{color:`text${rt(t)}`},style:{color:(e.vars||e).palette.text[t]}})),{props:({ownerState:t})=>t.align!=="inherit",style:{textAlign:"var(--Typography-textAlign)"}},{props:({ownerState:t})=>t.noWrap,style:{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"}},{props:({ownerState:t})=>t.gutterBottom,style:{marginBottom:"0.35em"}},{props:({ownerState:t})=>t.paragraph,style:{marginBottom:16}}]}))),AO={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},WP=x.forwardRef(function(e,t){const{color:n,...r}=Yt({props:e,name:"MuiTypography"}),a=!ghe[n],o=yhe({...r,...a&&{color:n}}),{align:s="inherit",className:c,component:u,gutterBottom:d=!1,noWrap:p=!1,paragraph:h=!1,variant:g="body1",variantMapping:y=AO,...b}=o,E={...o,align:s,color:n,className:c,component:u,gutterBottom:d,noWrap:p,paragraph:h,variant:g,variantMapping:y},_=u||(h?"p":y[g]||AO[g])||"span",A=vhe(E);return P.jsx(bhe,{as:_,ref:t,className:mt(A.root,c),...b,ownerState:E,style:{...s!=="inherit"&&{"--Typography-textAlign":s},...b.style}})}),Ehe=e=>{const{classes:t}=e;return zt({root:["root"]},lhe,t)},The=ze(WP,{name:"MuiDialogTitle",slot:"Root"})({padding:"16px 24px",flex:"0 0 auto"}),W0e=x.forwardRef(function(e,t){const n=Yt({props:e,name:"MuiDialogTitle"}),{className:r,id:a,...o}=n,s=n,c=Ehe(s),{titleId:u=a}=x.useContext(zP);return P.jsx(The,{component:"h2",className:mt(c.root,r),ownerState:s,ref:t,variant:"h6",id:a??u,...o})});function She(e){return Ht("MuiDialogContent",e)}Nt("MuiDialogContent",["root","dividers"]);const _he=e=>{const{classes:t,dividers:n}=e;return zt({root:["root",n&&"dividers"]},She,t)},Che=ze("div",{name:"MuiDialogContent",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.dividers&&t.dividers]}})(fn(({theme:e})=>({flex:"1 1 auto",WebkitOverflowScrolling:"touch",overflowY:"auto",padding:"20px 24px",variants:[{props:({ownerState:t})=>t.dividers,style:{padding:"16px 24px",borderTop:`1px solid ${(e.vars||e).palette.divider}`,borderBottom:`1px solid ${(e.vars||e).palette.divider}`}},{props:({ownerState:t})=>!t.dividers,style:{[`.${che.root} + &`]:{paddingTop:0}}}]}))),Y0e=x.forwardRef(function(e,t){const n=Yt({props:e,name:"MuiDialogContent"}),{className:r,dividers:a=!1,...o}=n,s={...n,dividers:a},c=_he(s);return P.jsx(Che,{className:mt(c.root,r),ownerState:s,ref:t,...o})});function Ahe(e){return Ht("MuiDialogContentText",e)}Nt("MuiDialogContentText",["root"]);const xhe=e=>{const{classes:t}=e,n=zt({root:["root"]},Ahe,t);return{...t,...n}},whe=ze(WP,{shouldForwardProp:e=>ea(e)||e==="classes",name:"MuiDialogContentText",slot:"Root"})({}),Q0e=x.forwardRef(function(e,t){const n=Yt({props:e,name:"MuiDialogContentText"}),{children:r,className:a,...o}=n,s=xhe(o);return P.jsx(whe,{component:"p",variant:"body1",color:"textSecondary",ref:t,ownerState:o,className:mt(s.root,a),...n,classes:s})});function Dhe(e){return Ht("MuiTextField",e)}Nt("MuiTextField",["root"]);var xO;const khe=ze("fieldset",{name:"MuiNotchedOutlined",shouldForwardProp:ea})({textAlign:"left",position:"absolute",bottom:0,right:0,top:-5,left:0,margin:0,padding:"0 8px",pointerEvents:"none",borderRadius:"inherit",borderStyle:"solid",borderWidth:1,overflow:"hidden",minWidth:"0%"}),Rhe=ze("legend",{name:"MuiNotchedOutlined",shouldForwardProp:ea})(fn(({theme:e})=>({float:"unset",width:"auto",overflow:"hidden",variants:[{props:({ownerState:t})=>!t.withLabel,style:{padding:0,lineHeight:"11px",transition:e.transitions.create("width",{duration:150,easing:e.transitions.easing.easeOut})}},{props:({ownerState:t})=>t.withLabel,style:{display:"block",padding:0,height:11,fontSize:"0.75em",visibility:"hidden",maxWidth:.01,transition:e.transitions.create("max-width",{duration:50,easing:e.transitions.easing.easeOut}),whiteSpace:"nowrap","& > span":{paddingLeft:5,paddingRight:5,display:"inline-block",opacity:0,visibility:"visible"}}},{props:({ownerState:t})=>t.withLabel&&t.notched,style:{maxWidth:"100%",transition:e.transitions.create("max-width",{duration:100,easing:e.transitions.easing.easeOut,delay:50})}}]})));function Ohe(e){const{children:t,classes:n,className:r,label:a,notched:o,...s}=e,c=a!=null&&a!=="",u={...e,notched:o,withLabel:c};return P.jsx(khe,{"aria-hidden":!0,className:r,ownerState:u,...s,children:P.jsx(Rhe,{ownerState:u,children:c?P.jsx("span",{children:a}):xO||(xO=P.jsx("span",{className:"notranslate","aria-hidden":!0,children:"​"}))})})}function Mu({props:e,states:t,muiFormControl:n}){return t.reduce((r,a)=>(r[a]=e[a],n&&typeof e[a]>"u"&&(r[a]=n[a]),r),{})}function Ihe(e){return Ht("MuiInputBase",e)}const vu=Nt("MuiInputBase",["root","formControl","focused","disabled","adornedStart","adornedEnd","error","sizeSmall","multiline","colorSecondary","fullWidth","hiddenLabel","readOnly","input","inputSizeSmall","inputMultiline","inputTypeSearch","inputAdornedStart","inputAdornedEnd","inputHiddenLabel"]);function Nhe(e){return Ht("MuiOutlinedInput",e)}const $o={...vu,...Nt("MuiOutlinedInput",["root","notchedOutline","input"])};function xT(e){return typeof e=="string"}function wO(e){return e!=null&&!(Array.isArray(e)&&e.length===0)}function Xg(e,t=!1){return e&&(wO(e.value)&&e.value!==""||t&&wO(e.defaultValue)&&e.defaultValue!=="")}function Lhe(e){return e.startAdornment}function YP(e,t=166){let n;function r(...a){const o=()=>{e.apply(this,a)};clearTimeout(n),n=setTimeout(o,t)}return r.clear=()=>{clearTimeout(n)},r}function Im(e){return parseInt(e,10)||0}const Phe={shadow:{visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"}};function Mhe(e){for(const t in e)return!1;return!0}function DO(e){return Mhe(e)||e.outerHeightStyle===0&&!e.overflowing}const $he=x.forwardRef(function(e,t){const{onChange:n,maxRows:r,minRows:a=1,style:o,value:s,...c}=e,{current:u}=x.useRef(s!=null),d=x.useRef(null),p=Kn(t,d),h=x.useRef(null),g=x.useRef(null),y=x.useCallback(()=>{const D=d.current,w=g.current;if(!D||!w)return;const R=$i(D).getComputedStyle(D);if(R.width==="0px")return{outerHeightStyle:0,overflowing:!1};w.style.width=R.width,w.value=D.value||e.placeholder||"x",w.value.slice(-1)===`
419
419
  `&&(w.value+=" ");const O=R.boxSizing,k=Im(R.paddingBottom)+Im(R.paddingTop),F=Im(R.borderBottomWidth)+Im(R.borderTopWidth),G=w.scrollHeight;w.value="x";const j=w.scrollHeight;let T=G;a&&(T=Math.max(Number(a)*j,T)),r&&(T=Math.min(Number(r)*j,T)),T=Math.max(T,j);const M=T+(O==="border-box"?k+F:0),U=Math.abs(T-G)<=1;return{outerHeightStyle:M,overflowing:U}},[r,a,e.placeholder]),b=Fr(()=>{const D=d.current,w=y();if(!D||!w||DO(w))return!1;const R=w.outerHeightStyle;return h.current!=null&&h.current!==R}),E=x.useCallback(()=>{const D=d.current,w=y();if(!D||!w||DO(w))return;const R=w.outerHeightStyle;h.current!==R&&(h.current=R,D.style.height=`${R}px`),D.style.overflow=w.overflowing?"hidden":""},[y]),_=x.useRef(-1);Ls(()=>{const D=YP(E),w=d?.current;if(!w)return;const R=$i(w);R.addEventListener("resize",D);let O;return typeof ResizeObserver<"u"&&(O=new ResizeObserver(()=>{b()&&(O.unobserve(w),cancelAnimationFrame(_.current),E(),_.current=requestAnimationFrame(()=>{O.observe(w)}))}),O.observe(w)),()=>{D.clear(),cancelAnimationFrame(_.current),R.removeEventListener("resize",D),O&&O.disconnect()}},[y,E,b]),Ls(()=>{E()});const A=D=>{u||E();const w=D.target,R=w.value.length,O=w.value.endsWith(`
420
- `),k=w.selectionStart===R;O&&k&&w.setSelectionRange(R,R),n&&n(D)};return P.jsxs(x.Fragment,{children:[P.jsx("textarea",{value:s,onChange:A,ref:p,rows:a,style:o,...c}),P.jsx("textarea",{"aria-hidden":!0,className:e.className,readOnly:!0,ref:g,tabIndex:-1,style:{...Phe.shadow,...o,paddingTop:0,paddingBottom:0}})]})});var kO;const f0=(e,t)=>{const{ownerState:n}=e;return[t.root,n.formControl&&t.formControl,n.startAdornment&&t.adornedStart,n.endAdornment&&t.adornedEnd,n.error&&t.error,n.size==="small"&&t.sizeSmall,n.multiline&&t.multiline,n.color&&t[`color${rt(n.color)}`],n.fullWidth&&t.fullWidth,n.hiddenLabel&&t.hiddenLabel]},p0=(e,t)=>{const{ownerState:n}=e;return[t.input,n.size==="small"&&t.inputSizeSmall,n.multiline&&t.inputMultiline,n.type==="search"&&t.inputTypeSearch,n.startAdornment&&t.inputAdornedStart,n.endAdornment&&t.inputAdornedEnd,n.hiddenLabel&&t.inputHiddenLabel]},Fhe=e=>{const{classes:t,color:n,disabled:r,error:a,endAdornment:o,focused:s,formControl:c,fullWidth:u,hiddenLabel:d,multiline:p,readOnly:h,size:g,startAdornment:y,type:b}=e,E={root:["root",`color${rt(n)}`,r&&"disabled",a&&"error",u&&"fullWidth",s&&"focused",c&&"formControl",g&&g!=="medium"&&`size${rt(g)}`,p&&"multiline",y&&"adornedStart",o&&"adornedEnd",d&&"hiddenLabel",h&&"readOnly"],input:["input",r&&"disabled",b==="search"&&"inputTypeSearch",p&&"inputMultiline",g==="small"&&"inputSizeSmall",d&&"inputHiddenLabel",y&&"inputAdornedStart",o&&"inputAdornedEnd",h&&"readOnly"]};return zt(E,Ihe,t)},h0=ze("div",{name:"MuiInputBase",slot:"Root",overridesResolver:f0})(fn(({theme:e})=>({...e.typography.body1,color:(e.vars||e).palette.text.primary,lineHeight:"1.4375em",boxSizing:"border-box",position:"relative",cursor:"text",display:"inline-flex",alignItems:"center",[`&.${vu.disabled}`]:{color:(e.vars||e).palette.text.disabled,cursor:"default"},variants:[{props:({ownerState:t})=>t.multiline,style:{padding:"4px 0 5px"}},{props:({ownerState:t,size:n})=>t.multiline&&n==="small",style:{paddingTop:1}},{props:({ownerState:t})=>t.fullWidth,style:{width:"100%"}}]}))),m0=ze("input",{name:"MuiInputBase",slot:"Input",overridesResolver:p0})(fn(({theme:e})=>{const t=e.palette.mode==="light",n={color:"currentColor",...e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:t?.42:.5},transition:e.transitions.create("opacity",{duration:e.transitions.duration.shorter})},r={opacity:"0 !important"},a=e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:t?.42:.5};return{font:"inherit",letterSpacing:"inherit",color:"currentColor",padding:"4px 0 5px",border:0,boxSizing:"content-box",background:"none",height:"1.4375em",margin:0,WebkitTapHighlightColor:"transparent",display:"block",minWidth:0,width:"100%","&::-webkit-input-placeholder":n,"&::-moz-placeholder":n,"&::-ms-input-placeholder":n,"&:focus":{outline:0},"&:invalid":{boxShadow:"none"},"&::-webkit-search-decoration":{WebkitAppearance:"none"},[`label[data-shrink=false] + .${vu.formControl} &`]:{"&::-webkit-input-placeholder":r,"&::-moz-placeholder":r,"&::-ms-input-placeholder":r,"&:focus::-webkit-input-placeholder":a,"&:focus::-moz-placeholder":a,"&:focus::-ms-input-placeholder":a},[`&.${vu.disabled}`]:{opacity:1,WebkitTextFillColor:(e.vars||e).palette.text.disabled},variants:[{props:({ownerState:o})=>!o.disableInjectingGlobalStyles,style:{animationName:"mui-auto-fill-cancel",animationDuration:"10ms","&:-webkit-autofill":{animationDuration:"5000s",animationName:"mui-auto-fill"}}},{props:{size:"small"},style:{paddingTop:1}},{props:({ownerState:o})=>o.multiline,style:{height:"auto",resize:"none",padding:0,paddingTop:0}},{props:{type:"search"},style:{MozAppearance:"textfield"}}]}})),RO=phe({"@keyframes mui-auto-fill":{from:{display:"block"}},"@keyframes mui-auto-fill-cancel":{from:{display:"block"}}}),V_=x.forwardRef(function(e,t){const n=Yt({props:e,name:"MuiInputBase"}),{"aria-describedby":r,autoComplete:a,autoFocus:o,className:s,color:c,components:u={},componentsProps:d={},defaultValue:p,disabled:h,disableInjectingGlobalStyles:g,endAdornment:y,error:b,fullWidth:E=!1,id:_,inputComponent:A="input",inputProps:D={},inputRef:w,margin:R,maxRows:O,minRows:k,multiline:F=!1,name:G,onBlur:j,onChange:T,onClick:M,onFocus:U,onKeyDown:B,onKeyUp:Y,placeholder:X,readOnly:z,renderSuffix:Z,rows:J,size:oe,slotProps:I={},slots:re={},startAdornment:ee,type:L="text",value:te,...be}=n,de=D.value!=null?D.value:te,{current:xe}=x.useRef(de!=null),ge=x.useRef(),Oe=x.useCallback(Qe=>{},[]),Ue=Kn(ge,w,D.ref,Oe),[Ie,Ye]=x.useState(!1),Ve=Gl(),ke=Mu({props:n,muiFormControl:Ve,states:["color","disabled","error","hiddenLabel","size","required","filled"]});ke.focused=Ve?Ve.focused:Ie,x.useEffect(()=>{!Ve&&h&&Ie&&(Ye(!1),j&&j())},[Ve,h,Ie,j]);const Rt=Ve&&Ve.onFilled,Et=Ve&&Ve.onEmpty,je=x.useCallback(Qe=>{Xg(Qe)?Rt&&Rt():Et&&Et()},[Rt,Et]);Ls(()=>{xe&&je({value:de})},[de,je,xe]);const St=Qe=>{U&&U(Qe),D.onFocus&&D.onFocus(Qe),Ve&&Ve.onFocus?Ve.onFocus(Qe):Ye(!0)},ot=Qe=>{j&&j(Qe),D.onBlur&&D.onBlur(Qe),Ve&&Ve.onBlur?Ve.onBlur(Qe):Ye(!1)},Ze=(Qe,...gt)=>{if(!xe){const ln=Qe.target||ge.current;if(ln==null)throw new Error(Pi(1));je({value:ln.value})}D.onChange&&D.onChange(Qe,...gt),T&&T(Qe,...gt)};x.useEffect(()=>{je(ge.current)},[]);const Ge=Qe=>{ge.current&&Qe.currentTarget===Qe.target&&ge.current.focus(),M&&M(Qe)};let Pe=A,Ot=D;F&&Pe==="input"&&(J?Ot={type:void 0,minRows:J,maxRows:J,...Ot}:Ot={type:void 0,maxRows:O,minRows:k,...Ot},Pe=$he);const Dn=Qe=>{je(Qe.animationName==="mui-auto-fill-cancel"?ge.current:{value:"x"})};x.useEffect(()=>{Ve&&Ve.setAdornedStart(!!ee)},[Ve,ee]);const bt={...n,color:ke.color||"primary",disabled:ke.disabled,endAdornment:y,error:ke.error,focused:ke.focused,formControl:Ve,fullWidth:E,hiddenLabel:ke.hiddenLabel,multiline:F,size:ke.size,startAdornment:ee,type:L},ce=Fhe(bt),me=re.root||u.Root||h0,Be=I.root||d.root||{},We=re.input||u.Input||m0;return Ot={...Ot,...I.input??d.input},P.jsxs(x.Fragment,{children:[!g&&typeof RO=="function"&&(kO||(kO=P.jsx(RO,{}))),P.jsxs(me,{...Be,ref:t,onClick:Ge,...be,...!xT(me)&&{ownerState:{...bt,...Be.ownerState}},className:mt(ce.root,Be.className,s,z&&"MuiInputBase-readOnly"),children:[ee,P.jsx(F_.Provider,{value:null,children:P.jsx(We,{"aria-invalid":ke.error,"aria-describedby":r,autoComplete:a,autoFocus:o,defaultValue:p,disabled:ke.disabled,id:_,onAnimationStart:Dn,name:G,placeholder:X,readOnly:z,required:ke.required,rows:J,value:de,onKeyDown:B,onKeyUp:Y,type:L,...Ot,...!xT(We)&&{as:Pe,ownerState:{...bt,...Ot.ownerState}},ref:Ue,className:mt(ce.input,Ot.className,z&&"MuiInputBase-readOnly"),onBlur:ot,onChange:Ze,onFocus:St})}),y,Z?Z({...ke,startAdornment:ee}):null]})]})}),Bhe=e=>{const{classes:t}=e,n=zt({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},Nhe,t);return{...t,...n}},Uhe=ze(h0,{shouldForwardProp:e=>ea(e)||e==="classes",name:"MuiOutlinedInput",slot:"Root",overridesResolver:f0})(fn(({theme:e})=>{const t=e.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return{position:"relative",borderRadius:(e.vars||e).shape.borderRadius,[`&:hover .${$o.notchedOutline}`]:{borderColor:(e.vars||e).palette.text.primary},"@media (hover: none)":{[`&:hover .${$o.notchedOutline}`]:{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:t}},[`&.${$o.focused} .${$o.notchedOutline}`]:{borderWidth:2},variants:[...Object.entries(e.palette).filter(_o()).map(([n])=>({props:{color:n},style:{[`&.${$o.focused} .${$o.notchedOutline}`]:{borderColor:(e.vars||e).palette[n].main}}})),{props:{},style:{[`&.${$o.error} .${$o.notchedOutline}`]:{borderColor:(e.vars||e).palette.error.main},[`&.${$o.disabled} .${$o.notchedOutline}`]:{borderColor:(e.vars||e).palette.action.disabled}}},{props:({ownerState:n})=>n.startAdornment,style:{paddingLeft:14}},{props:({ownerState:n})=>n.endAdornment,style:{paddingRight:14}},{props:({ownerState:n})=>n.multiline,style:{padding:"16.5px 14px"}},{props:({ownerState:n,size:r})=>n.multiline&&r==="small",style:{padding:"8.5px 14px"}}]}})),jhe=ze(Ohe,{name:"MuiOutlinedInput",slot:"NotchedOutline"})(fn(({theme:e})=>{const t=e.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:t}})),Hhe=ze(m0,{name:"MuiOutlinedInput",slot:"Input",overridesResolver:p0})(fn(({theme:e})=>({padding:"16.5px 14px",...!e.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:e.palette.mode==="light"?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:e.palette.mode==="light"?null:"#fff",caretColor:e.palette.mode==="light"?null:"#fff",borderRadius:"inherit"}},...e.vars&&{"&:-webkit-autofill":{borderRadius:"inherit"},[e.getColorSchemeSelector("dark")]:{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}},variants:[{props:{size:"small"},style:{padding:"8.5px 14px"}},{props:({ownerState:t})=>t.multiline,style:{padding:0}},{props:({ownerState:t})=>t.startAdornment,style:{paddingLeft:0}},{props:({ownerState:t})=>t.endAdornment,style:{paddingRight:0}}]}))),G_=x.forwardRef(function(e,t){const n=Yt({props:e,name:"MuiOutlinedInput"}),{components:r={},fullWidth:a=!1,inputComponent:o="input",label:s,multiline:c=!1,notched:u,slots:d={},slotProps:p={},type:h="text",...g}=n,y=Bhe(n),b=Gl(),E=Mu({props:n,muiFormControl:b,states:["color","disabled","error","focused","hiddenLabel","size","required"]}),_={...n,color:E.color||"primary",disabled:E.disabled,error:E.error,focused:E.focused,formControl:b,fullWidth:a,hiddenLabel:E.hiddenLabel,multiline:c,size:E.size,type:h},A=d.root??r.Root??Uhe,D=d.input??r.Input??Hhe,[w,R]=bn("notchedOutline",{elementType:jhe,className:y.notchedOutline,shouldForwardComponentProp:!0,ownerState:_,externalForwardedProps:{slots:d,slotProps:p},additionalProps:{label:s!=null&&s!==""&&E.required?P.jsxs(x.Fragment,{children:[s," ","*"]}):s}});return P.jsx(V_,{slots:{root:A,input:D},slotProps:p,renderSuffix:O=>P.jsx(w,{...R,notched:typeof u<"u"?u:!!(O.startAdornment||O.filled||O.focused)}),fullWidth:a,inputComponent:o,multiline:c,ref:t,type:h,...g,classes:{...y,notchedOutline:null}})});G_.muiName="Input";function zhe(e){return Ht("MuiFilledInput",e)}const al={...vu,...Nt("MuiFilledInput",["root","underline","input","adornedStart","adornedEnd","sizeSmall","multiline","hiddenLabel"])},Vhe=e=>{const{classes:t,disableUnderline:n,startAdornment:r,endAdornment:a,size:o,hiddenLabel:s,multiline:c}=e,u={root:["root",!n&&"underline",r&&"adornedStart",a&&"adornedEnd",o==="small"&&`size${rt(o)}`,s&&"hiddenLabel",c&&"multiline"],input:["input"]},d=zt(u,zhe,t);return{...t,...d}},Ghe=ze(h0,{shouldForwardProp:e=>ea(e)||e==="classes",name:"MuiFilledInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[...f0(e,t),!n.disableUnderline&&t.underline]}})(fn(({theme:e})=>{const t=e.palette.mode==="light",n=t?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)",r=t?"rgba(0, 0, 0, 0.06)":"rgba(255, 255, 255, 0.09)",a=t?"rgba(0, 0, 0, 0.09)":"rgba(255, 255, 255, 0.13)",o=t?"rgba(0, 0, 0, 0.12)":"rgba(255, 255, 255, 0.12)";return{position:"relative",backgroundColor:e.vars?e.vars.palette.FilledInput.bg:r,borderTopLeftRadius:(e.vars||e).shape.borderRadius,borderTopRightRadius:(e.vars||e).shape.borderRadius,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),"&:hover":{backgroundColor:e.vars?e.vars.palette.FilledInput.hoverBg:a,"@media (hover: none)":{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:r}},[`&.${al.focused}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:r},[`&.${al.disabled}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.disabledBg:o},variants:[{props:({ownerState:s})=>!s.disableUnderline,style:{"&::after":{left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${al.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${al.error}`]:{"&::before, &::after":{borderBottomColor:(e.vars||e).palette.error.main}},"&::before":{borderBottom:`1px solid ${e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / ${e.vars.opacity.inputUnderline})`:n}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:e.transitions.create("border-bottom-color",{duration:e.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${al.disabled}, .${al.error}):before`]:{borderBottom:`1px solid ${(e.vars||e).palette.text.primary}`},[`&.${al.disabled}:before`]:{borderBottomStyle:"dotted"}}},...Object.entries(e.palette).filter(_o()).map(([s])=>({props:{disableUnderline:!1,color:s},style:{"&::after":{borderBottom:`2px solid ${(e.vars||e).palette[s]?.main}`}}})),{props:({ownerState:s})=>s.startAdornment,style:{paddingLeft:12}},{props:({ownerState:s})=>s.endAdornment,style:{paddingRight:12}},{props:({ownerState:s})=>s.multiline,style:{padding:"25px 12px 8px"}},{props:({ownerState:s,size:c})=>s.multiline&&c==="small",style:{paddingTop:21,paddingBottom:4}},{props:({ownerState:s})=>s.multiline&&s.hiddenLabel,style:{paddingTop:16,paddingBottom:17}},{props:({ownerState:s})=>s.multiline&&s.hiddenLabel&&s.size==="small",style:{paddingTop:8,paddingBottom:9}}]}})),qhe=ze(m0,{name:"MuiFilledInput",slot:"Input",overridesResolver:p0})(fn(({theme:e})=>({paddingTop:25,paddingRight:12,paddingBottom:8,paddingLeft:12,...!e.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:e.palette.mode==="light"?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:e.palette.mode==="light"?null:"#fff",caretColor:e.palette.mode==="light"?null:"#fff",borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"}},...e.vars&&{"&:-webkit-autofill":{borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"},[e.getColorSchemeSelector("dark")]:{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}},variants:[{props:{size:"small"},style:{paddingTop:21,paddingBottom:4}},{props:({ownerState:t})=>t.hiddenLabel,style:{paddingTop:16,paddingBottom:17}},{props:({ownerState:t})=>t.startAdornment,style:{paddingLeft:0}},{props:({ownerState:t})=>t.endAdornment,style:{paddingRight:0}},{props:({ownerState:t})=>t.hiddenLabel&&t.size==="small",style:{paddingTop:8,paddingBottom:9}},{props:({ownerState:t})=>t.multiline,style:{paddingTop:0,paddingBottom:0,paddingLeft:0,paddingRight:0}}]}))),q_=x.forwardRef(function(e,t){const n=Yt({props:e,name:"MuiFilledInput"}),{disableUnderline:r=!1,components:a={},componentsProps:o,fullWidth:s=!1,hiddenLabel:c,inputComponent:u="input",multiline:d=!1,slotProps:p,slots:h={},type:g="text",...y}=n,b={...n,disableUnderline:r,fullWidth:s,inputComponent:u,multiline:d,type:g},E=Vhe(n),_={root:{ownerState:b},input:{ownerState:b}},A=p??o?$r(_,p??o):_,D=h.root??a.Root??Ghe,w=h.input??a.Input??qhe;return P.jsx(V_,{slots:{root:D,input:w},slotProps:A,fullWidth:s,inputComponent:u,multiline:d,ref:t,type:g,...y,classes:E})});q_.muiName="Input";function Whe(e){return Ht("MuiInput",e)}const ef={...vu,...Nt("MuiInput",["root","underline","input"])},Yhe=e=>{const{classes:t,disableUnderline:n}=e,r=zt({root:["root",!n&&"underline"],input:["input"]},Whe,t);return{...t,...r}},Qhe=ze(h0,{shouldForwardProp:e=>ea(e)||e==="classes",name:"MuiInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[...f0(e,t),!n.disableUnderline&&t.underline]}})(fn(({theme:e})=>{let t=e.palette.mode==="light"?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)";return e.vars&&(t=`rgba(${e.vars.palette.common.onBackgroundChannel} / ${e.vars.opacity.inputUnderline})`),{position:"relative",variants:[{props:({ownerState:n})=>n.formControl,style:{"label + &":{marginTop:16}}},{props:({ownerState:n})=>!n.disableUnderline,style:{"&::after":{left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${ef.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${ef.error}`]:{"&::before, &::after":{borderBottomColor:(e.vars||e).palette.error.main}},"&::before":{borderBottom:`1px solid ${t}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:e.transitions.create("border-bottom-color",{duration:e.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${ef.disabled}, .${ef.error}):before`]:{borderBottom:`2px solid ${(e.vars||e).palette.text.primary}`,"@media (hover: none)":{borderBottom:`1px solid ${t}`}},[`&.${ef.disabled}:before`]:{borderBottomStyle:"dotted"}}},...Object.entries(e.palette).filter(_o()).map(([n])=>({props:{color:n,disableUnderline:!1},style:{"&::after":{borderBottom:`2px solid ${(e.vars||e).palette[n].main}`}}}))]}})),Khe=ze(m0,{name:"MuiInput",slot:"Input",overridesResolver:p0})({}),W_=x.forwardRef(function(e,t){const n=Yt({props:e,name:"MuiInput"}),{disableUnderline:r=!1,components:a={},componentsProps:o,fullWidth:s=!1,inputComponent:c="input",multiline:u=!1,slotProps:d,slots:p={},type:h="text",...g}=n,y=Yhe(n),b={root:{ownerState:{disableUnderline:r}}},E=d??o?$r(d??o,b):b,_=p.root??a.Root??Qhe,A=p.input??a.Input??Khe;return P.jsx(V_,{slots:{root:_,input:A},slotProps:E,fullWidth:s,inputComponent:c,multiline:u,ref:t,type:h,...g,classes:y})});W_.muiName="Input";function Xhe(e){return Ht("MuiInputLabel",e)}Nt("MuiInputLabel",["root","focused","disabled","error","required","asterisk","formControl","sizeSmall","shrink","animated","standard","filled","outlined"]);function Zhe(e){return Ht("MuiFormLabel",e)}const Pf=Nt("MuiFormLabel",["root","colorSecondary","focused","disabled","error","filled","required","asterisk"]),Jhe=e=>{const{classes:t,color:n,focused:r,disabled:a,error:o,filled:s,required:c}=e,u={root:["root",`color${rt(n)}`,a&&"disabled",o&&"error",s&&"filled",r&&"focused",c&&"required"],asterisk:["asterisk",o&&"error"]};return zt(u,Zhe,t)},eme=ze("label",{name:"MuiFormLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.color==="secondary"&&t.colorSecondary,n.filled&&t.filled]}})(fn(({theme:e})=>({color:(e.vars||e).palette.text.secondary,...e.typography.body1,lineHeight:"1.4375em",padding:0,position:"relative",variants:[...Object.entries(e.palette).filter(_o()).map(([t])=>({props:{color:t},style:{[`&.${Pf.focused}`]:{color:(e.vars||e).palette[t].main}}})),{props:{},style:{[`&.${Pf.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${Pf.error}`]:{color:(e.vars||e).palette.error.main}}}]}))),tme=ze("span",{name:"MuiFormLabel",slot:"Asterisk"})(fn(({theme:e})=>({[`&.${Pf.error}`]:{color:(e.vars||e).palette.error.main}}))),nme=x.forwardRef(function(e,t){const n=Yt({props:e,name:"MuiFormLabel"}),{children:r,className:a,color:o,component:s="label",disabled:c,error:u,filled:d,focused:p,required:h,...g}=n,y=Gl(),b=Mu({props:n,muiFormControl:y,states:["color","required","focused","disabled","error","filled"]}),E={...n,color:b.color||"primary",component:s,disabled:b.disabled,error:b.error,filled:b.filled,focused:b.focused,required:b.required},_=Jhe(E);return P.jsxs(eme,{as:s,ownerState:E,className:mt(_.root,a),ref:t,...g,children:[r,b.required&&P.jsxs(tme,{ownerState:E,"aria-hidden":!0,className:_.asterisk,children:[" ","*"]})]})}),rme=e=>{const{classes:t,formControl:n,size:r,shrink:a,disableAnimation:o,variant:s,required:c}=e,u={root:["root",n&&"formControl",!o&&"animated",a&&"shrink",r&&r!=="medium"&&`size${rt(r)}`,s],asterisk:[c&&"asterisk"]},d=zt(u,Xhe,t);return{...t,...d}},ame=ze(nme,{shouldForwardProp:e=>ea(e)||e==="classes",name:"MuiInputLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${Pf.asterisk}`]:t.asterisk},t.root,n.formControl&&t.formControl,n.size==="small"&&t.sizeSmall,n.shrink&&t.shrink,!n.disableAnimation&&t.animated,n.focused&&t.focused,t[n.variant]]}})(fn(({theme:e})=>({display:"block",transformOrigin:"top left",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",maxWidth:"100%",variants:[{props:({ownerState:t})=>t.formControl,style:{position:"absolute",left:0,top:0,transform:"translate(0, 20px) scale(1)"}},{props:{size:"small"},style:{transform:"translate(0, 17px) scale(1)"}},{props:({ownerState:t})=>t.shrink,style:{transform:"translate(0, -1.5px) scale(0.75)",transformOrigin:"top left",maxWidth:"133%"}},{props:({ownerState:t})=>!t.disableAnimation,style:{transition:e.transitions.create(["color","transform","max-width"],{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut})}},{props:{variant:"filled"},style:{zIndex:1,pointerEvents:"none",transform:"translate(12px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"}},{props:{variant:"filled",size:"small"},style:{transform:"translate(12px, 13px) scale(1)"}},{props:({variant:t,ownerState:n})=>t==="filled"&&n.shrink,style:{userSelect:"none",pointerEvents:"auto",transform:"translate(12px, 7px) scale(0.75)",maxWidth:"calc(133% - 24px)"}},{props:({variant:t,ownerState:n,size:r})=>t==="filled"&&n.shrink&&r==="small",style:{transform:"translate(12px, 4px) scale(0.75)"}},{props:{variant:"outlined"},style:{zIndex:1,pointerEvents:"none",transform:"translate(14px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"}},{props:{variant:"outlined",size:"small"},style:{transform:"translate(14px, 9px) scale(1)"}},{props:({variant:t,ownerState:n})=>t==="outlined"&&n.shrink,style:{userSelect:"none",pointerEvents:"auto",maxWidth:"calc(133% - 32px)",transform:"translate(14px, -9px) scale(0.75)"}}]}))),ome=x.forwardRef(function(e,t){const n=Yt({name:"MuiInputLabel",props:e}),{disableAnimation:r=!1,margin:a,shrink:o,variant:s,className:c,...u}=n,d=Gl();let p=o;typeof p>"u"&&d&&(p=d.filled||d.focused||d.adornedStart);const h=Mu({props:n,muiFormControl:d,states:["size","variant","required","focused"]}),g={...n,disableAnimation:r,formControl:d,shrink:p,size:h.size,variant:h.variant,required:h.required,focused:h.focused},y=rme(g);return P.jsx(ame,{"data-shrink":p,ref:t,className:mt(y.root,c),...u,ownerState:g,classes:y})});function ime(e){return Ht("MuiFormHelperText",e)}const OO=Nt("MuiFormHelperText",["root","error","disabled","sizeSmall","sizeMedium","contained","focused","filled","required"]);var IO;const sme=e=>{const{classes:t,contained:n,size:r,disabled:a,error:o,filled:s,focused:c,required:u}=e,d={root:["root",a&&"disabled",o&&"error",r&&`size${rt(r)}`,n&&"contained",c&&"focused",s&&"filled",u&&"required"]};return zt(d,ime,t)},lme=ze("p",{name:"MuiFormHelperText",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.size&&t[`size${rt(n.size)}`],n.contained&&t.contained,n.filled&&t.filled]}})(fn(({theme:e})=>({color:(e.vars||e).palette.text.secondary,...e.typography.caption,textAlign:"left",marginTop:3,marginRight:0,marginBottom:0,marginLeft:0,[`&.${OO.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${OO.error}`]:{color:(e.vars||e).palette.error.main},variants:[{props:{size:"small"},style:{marginTop:4}},{props:({ownerState:t})=>t.contained,style:{marginLeft:14,marginRight:14}}]}))),cme=x.forwardRef(function(e,t){const n=Yt({props:e,name:"MuiFormHelperText"}),{children:r,className:a,component:o="p",disabled:s,error:c,filled:u,focused:d,margin:p,required:h,variant:g,...y}=n,b=Gl(),E=Mu({props:n,muiFormControl:b,states:["variant","size","disabled","error","filled","focused","required"]}),_={...n,component:o,contained:E.variant==="filled"||E.variant==="outlined",variant:E.variant,size:E.size,disabled:E.disabled,error:E.error,filled:E.filled,focused:E.focused,required:E.required};delete _.ownerState;const A=sme(_);return P.jsx(lme,{as:o,className:mt(A.root,a),ref:t,...y,ownerState:_,children:r===" "?IO||(IO=P.jsx("span",{className:"notranslate","aria-hidden":!0,children:"​"})):r})});function ume(e){return Ht("MuiMenu",e)}Nt("MuiMenu",["root","paper","list"]);function dme(e){return Ht("MuiPopover",e)}Nt("MuiPopover",["root","paper"]);function wT(e){return`scale(${e}, ${e**2})`}const fme={entering:{opacity:1,transform:wT(1)},entered:{opacity:1,transform:"none"}},Hb=typeof navigator<"u"&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),Zg=x.forwardRef(function(e,t){const{addEndListener:n,appear:r=!0,children:a,easing:o,in:s,onEnter:c,onEntered:u,onEntering:d,onExit:p,onExited:h,onExiting:g,style:y,timeout:b="auto",TransitionComponent:E=wo,..._}=e,A=s0(),D=x.useRef(),w=Lu(),R=x.useRef(null),O=Kn(R,Pu(a),t),k=B=>Y=>{if(B){const X=R.current;Y===void 0?B(X):B(X,Y)}},F=k(d),G=k((B,Y)=>{bP(B);const{duration:X,delay:z,easing:Z}=yu({style:y,timeout:b,easing:o},{mode:"enter"});let J;b==="auto"?(J=w.transitions.getAutoHeightDuration(B.clientHeight),D.current=J):J=X,B.style.transition=[w.transitions.create("opacity",{duration:J,delay:z}),w.transitions.create("transform",{duration:Hb?J:J*.666,delay:z,easing:Z})].join(","),c&&c(B,Y)}),j=k(u),T=k(g),M=k(B=>{const{duration:Y,delay:X,easing:z}=yu({style:y,timeout:b,easing:o},{mode:"exit"});let Z;b==="auto"?(Z=w.transitions.getAutoHeightDuration(B.clientHeight),D.current=Z):Z=Y,B.style.transition=[w.transitions.create("opacity",{duration:Z,delay:X}),w.transitions.create("transform",{duration:Hb?Z:Z*.666,delay:Hb?X:X||Z*.333,easing:z})].join(","),B.style.opacity=0,B.style.transform=wT(.75),p&&p(B)}),U=k(h);return P.jsx(E,{appear:r,in:s,nodeRef:R,onEnter:G,onEntered:j,onEntering:F,onExit:M,onExited:U,onExiting:T,addEndListener:B=>{b==="auto"&&A.start(D.current||0,B),n&&n(R.current,B)},timeout:b==="auto"?null:b,..._,children:(B,{ownerState:Y,...X})=>x.cloneElement(a,{style:{opacity:0,transform:wT(.75),visibility:B==="exited"&&!s?"hidden":void 0,...fme[B],...y,...a.props.style},ref:O,...X})})});Zg&&(Zg.muiSupportAuto=!0);function NO(e,t){let n=0;return typeof t=="number"?n=t:t==="center"?n=e.height/2:t==="bottom"&&(n=e.height),n}function LO(e,t){let n=0;return typeof t=="number"?n=t:t==="center"?n=e.width/2:t==="right"&&(n=e.width),n}function PO(e){return[e.horizontal,e.vertical].map(t=>typeof t=="number"?`${t}px`:t).join(" ")}function Nm(e){return typeof e=="function"?e():e}const pme=e=>{const{classes:t}=e;return zt({root:["root"],paper:["paper"]},dme,t)},hme=ze(qP,{name:"MuiPopover",slot:"Root"})({}),QP=ze(d0,{name:"MuiPopover",slot:"Paper"})({position:"absolute",overflowY:"auto",overflowX:"hidden",minWidth:16,minHeight:16,maxWidth:"calc(100% - 32px)",maxHeight:"calc(100% - 32px)",outline:0}),mme=x.forwardRef(function(e,t){const n=Yt({props:e,name:"MuiPopover"}),{action:r,anchorEl:a,anchorOrigin:o={vertical:"top",horizontal:"left"},anchorPosition:s,anchorReference:c="anchorEl",children:u,className:d,container:p,elevation:h=8,marginThreshold:g=16,open:y,PaperProps:b={},slots:E={},slotProps:_={},transformOrigin:A={vertical:"top",horizontal:"left"},TransitionComponent:D,transitionDuration:w="auto",TransitionProps:R={},disableScrollLock:O=!1,...k}=n,F=x.useRef(),G={...n,anchorOrigin:o,anchorReference:c,elevation:h,marginThreshold:g,transformOrigin:A,TransitionComponent:D,transitionDuration:w,TransitionProps:R},j=pme(G),T=x.useCallback(()=>{if(c==="anchorPosition")return s;const Oe=Nm(a),Ue=(Oe&&Oe.nodeType===1?Oe:Kr(F.current).body).getBoundingClientRect();return{top:Ue.top+NO(Ue,o.vertical),left:Ue.left+LO(Ue,o.horizontal)}},[a,o.horizontal,o.vertical,s,c]),M=x.useCallback(Oe=>({vertical:NO(Oe,A.vertical),horizontal:LO(Oe,A.horizontal)}),[A.horizontal,A.vertical]),U=x.useCallback(Oe=>{const Ue={width:Oe.offsetWidth,height:Oe.offsetHeight},Ie=M(Ue);if(c==="none")return{top:null,left:null,transformOrigin:PO(Ie)};const Ye=T();let Ve=Ye.top-Ie.vertical,ke=Ye.left-Ie.horizontal;const Rt=Ve+Ue.height,Et=ke+Ue.width,je=$i(Nm(a)),St=je.innerHeight-g,ot=je.innerWidth-g;if(g!==null&&Ve<g){const Ze=Ve-g;Ve-=Ze,Ie.vertical+=Ze}else if(g!==null&&Rt>St){const Ze=Rt-St;Ve-=Ze,Ie.vertical+=Ze}if(g!==null&&ke<g){const Ze=ke-g;ke-=Ze,Ie.horizontal+=Ze}else if(Et>ot){const Ze=Et-ot;ke-=Ze,Ie.horizontal+=Ze}return{top:`${Math.round(Ve)}px`,left:`${Math.round(ke)}px`,transformOrigin:PO(Ie)}},[a,c,T,M,g]),[B,Y]=x.useState(y),X=x.useCallback(()=>{const Oe=F.current;if(!Oe)return;const Ue=U(Oe);Ue.top!==null&&Oe.style.setProperty("top",Ue.top),Ue.left!==null&&(Oe.style.left=Ue.left),Oe.style.transformOrigin=Ue.transformOrigin,Y(!0)},[U]);x.useEffect(()=>(O&&window.addEventListener("scroll",X),()=>window.removeEventListener("scroll",X)),[a,O,X]);const z=()=>{X()},Z=()=>{Y(!1)};x.useEffect(()=>{y&&X()}),x.useImperativeHandle(r,()=>y?{updatePosition:()=>{X()}}:null,[y,X]),x.useEffect(()=>{if(!y)return;const Oe=YP(()=>{X()}),Ue=$i(Nm(a));return Ue.addEventListener("resize",Oe),()=>{Oe.clear(),Ue.removeEventListener("resize",Oe)}},[a,y,X]);let J=w;const oe={slots:{transition:D,...E},slotProps:{transition:R,paper:b,..._}},[I,re]=bn("transition",{elementType:Zg,externalForwardedProps:oe,ownerState:G,getSlotProps:Oe=>({...Oe,onEntering:(Ue,Ie)=>{Oe.onEntering?.(Ue,Ie),z()},onExited:Ue=>{Oe.onExited?.(Ue),Z()}}),additionalProps:{appear:!0,in:y}});w==="auto"&&!I.muiSupportAuto&&(J=void 0);const ee=p||(a?Kr(Nm(a)).body:void 0),[L,{slots:te,slotProps:be,...de}]=bn("root",{ref:t,elementType:hme,externalForwardedProps:{...oe,...k},shouldForwardComponentProp:!0,additionalProps:{slots:{backdrop:E.backdrop},slotProps:{backdrop:AP(typeof _.backdrop=="function"?_.backdrop(G):_.backdrop,{invisible:!0})},container:ee,open:y},ownerState:G,className:mt(j.root,d)}),[xe,ge]=bn("paper",{ref:F,className:j.paper,elementType:QP,externalForwardedProps:oe,shouldForwardComponentProp:!0,additionalProps:{elevation:h,style:B?void 0:{opacity:0}},ownerState:G});return P.jsx(L,{...de,...!xT(L)&&{slots:te,slotProps:be,disableScrollLock:O},children:P.jsx(I,{...re,timeout:J,children:P.jsx(xe,{...ge,children:u})})})}),DT=x.createContext({});function gme(e){return Ht("MuiList",e)}Nt("MuiList",["root","padding","dense","subheader"]);const yme=e=>{const{classes:t,disablePadding:n,dense:r,subheader:a}=e;return zt({root:["root",!n&&"padding",r&&"dense",a&&"subheader"]},gme,t)},vme=ze("ul",{name:"MuiList",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disablePadding&&t.padding,n.dense&&t.dense,n.subheader&&t.subheader]}})({listStyle:"none",margin:0,padding:0,position:"relative",variants:[{props:({ownerState:e})=>!e.disablePadding,style:{paddingTop:8,paddingBottom:8}},{props:({ownerState:e})=>e.subheader,style:{paddingTop:0}}]}),bme=x.forwardRef(function(e,t){const n=Yt({props:e,name:"MuiList"}),{children:r,className:a,component:o="ul",dense:s=!1,disablePadding:c=!1,subheader:u,...d}=n,p=x.useMemo(()=>({dense:s}),[s]),h={...n,component:o,dense:s,disablePadding:c},g=yme(h);return P.jsx(DT.Provider,{value:p,children:P.jsxs(vme,{as:o,className:mt(g.root,a),ref:t,ownerState:h,...d,children:[u,r]})})});function zb(e,t,n){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:n?null:e.firstChild}function MO(e,t,n){return e===t?n?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:n?null:e.lastChild}function KP(e,t){if(t===void 0)return!0;let n=e.innerText;return n===void 0&&(n=e.textContent),n=n.trim().toLowerCase(),n.length===0?!1:t.repeating?n[0]===t.keys[0]:n.startsWith(t.keys.join(""))}function tf(e,t,n,r,a,o){let s=!1,c=a(e,t,t?n:!1);for(;c;){if(c===e.firstChild){if(s)return!1;s=!0}const u=r?!1:c.disabled||c.getAttribute("aria-disabled")==="true";if(!c.hasAttribute("tabindex")||!KP(c,o)||u)c=a(e,c,n);else return c.focus(),!0}return!1}const Eme=x.forwardRef(function(e,t){const{actions:n,autoFocus:r=!1,autoFocusItem:a=!1,children:o,className:s,disabledItemsFocusable:c=!1,disableListWrap:u=!1,onKeyDown:d,variant:p="selectedMenu",...h}=e,g=x.useRef(null),y=x.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});Ls(()=>{r&&g.current.focus()},[r]),x.useImperativeHandle(n,()=>({adjustStyleForScrollbar:(D,{direction:w})=>{const R=!g.current.style.width;if(D.clientHeight<g.current.clientHeight&&R){const O=`${VP($i(D))}px`;g.current.style[w==="rtl"?"paddingLeft":"paddingRight"]=O,g.current.style.width=`calc(100% + ${O})`}return g.current}}),[]);const b=D=>{const w=g.current,R=D.key;if(D.ctrlKey||D.metaKey||D.altKey){d&&d(D);return}const O=Kr(w).activeElement;if(R==="ArrowDown")D.preventDefault(),tf(w,O,u,c,zb);else if(R==="ArrowUp")D.preventDefault(),tf(w,O,u,c,MO);else if(R==="Home")D.preventDefault(),tf(w,null,u,c,zb);else if(R==="End")D.preventDefault(),tf(w,null,u,c,MO);else if(R.length===1){const k=y.current,F=R.toLowerCase(),G=performance.now();k.keys.length>0&&(G-k.lastTime>500?(k.keys=[],k.repeating=!0,k.previousKeyMatched=!0):k.repeating&&F!==k.keys[0]&&(k.repeating=!1)),k.lastTime=G,k.keys.push(F);const j=O&&!k.repeating&&KP(O,k);k.previousKeyMatched&&(j||tf(w,O,!1,c,zb,k))?D.preventDefault():k.previousKeyMatched=!1}d&&d(D)},E=Kn(g,t);let _=-1;x.Children.forEach(o,(D,w)=>{if(!x.isValidElement(D)){_===w&&(_+=1,_>=o.length&&(_=-1));return}D.props.disabled||(p==="selectedMenu"&&D.props.selected||_===-1)&&(_=w),_===w&&(D.props.disabled||D.props.muiSkipListHighlight||D.type.muiSkipListHighlight)&&(_+=1,_>=o.length&&(_=-1))});const A=x.Children.map(o,(D,w)=>{if(w===_){const R={};return a&&(R.autoFocus=!0),D.props.tabIndex===void 0&&p==="selectedMenu"&&(R.tabIndex=0),x.cloneElement(D,R)}return D});return P.jsx(bme,{role:"menu",ref:E,className:s,onKeyDown:b,tabIndex:r?0:-1,...h,children:A})}),Tme={vertical:"top",horizontal:"right"},Sme={vertical:"top",horizontal:"left"},_me=e=>{const{classes:t}=e;return zt({root:["root"],paper:["paper"],list:["list"]},ume,t)},Cme=ze(mme,{shouldForwardProp:e=>ea(e)||e==="classes",name:"MuiMenu",slot:"Root"})({}),Ame=ze(QP,{name:"MuiMenu",slot:"Paper"})({maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"}),xme=ze(Eme,{name:"MuiMenu",slot:"List"})({outline:0}),wme=x.forwardRef(function(e,t){const n=Yt({props:e,name:"MuiMenu"}),{autoFocus:r=!0,children:a,className:o,disableAutoFocusItem:s=!1,MenuListProps:c={},onClose:u,open:d,PaperProps:p={},PopoverClasses:h,transitionDuration:g="auto",TransitionProps:{onEntering:y,...b}={},variant:E="selectedMenu",slots:_={},slotProps:A={},...D}=n,w=IP(),R={...n,autoFocus:r,disableAutoFocusItem:s,MenuListProps:c,onEntering:y,PaperProps:p,transitionDuration:g,TransitionProps:b,variant:E},O=_me(R),k=r&&!s&&d,F=x.useRef(null),G=(J,oe)=>{F.current&&F.current.adjustStyleForScrollbar(J,{direction:w?"rtl":"ltr"}),y&&y(J,oe)},j=J=>{J.key==="Tab"&&(J.preventDefault(),u&&u(J,"tabKeyDown"))};let T=-1;x.Children.map(a,(J,oe)=>{x.isValidElement(J)&&(J.props.disabled||(E==="selectedMenu"&&J.props.selected||T===-1)&&(T=oe))});const M={slots:_,slotProps:{list:c,transition:b,paper:p,...A}},U=As({elementType:_.root,externalSlotProps:A.root,ownerState:R,className:[O.root,o]}),[B,Y]=bn("paper",{className:O.paper,elementType:Ame,externalForwardedProps:M,shouldForwardComponentProp:!0,ownerState:R}),[X,z]=bn("list",{className:mt(O.list,c.className),elementType:xme,shouldForwardComponentProp:!0,externalForwardedProps:M,getSlotProps:J=>({...J,onKeyDown:oe=>{j(oe),J.onKeyDown?.(oe)}}),ownerState:R}),Z=typeof M.slotProps.transition=="function"?M.slotProps.transition(R):M.slotProps.transition;return P.jsx(Cme,{onClose:u,anchorOrigin:{vertical:"bottom",horizontal:w?"right":"left"},transformOrigin:w?Tme:Sme,slots:{root:_.root,paper:B,backdrop:_.backdrop,..._.transition&&{transition:_.transition}},slotProps:{root:U,paper:Y,backdrop:typeof A.backdrop=="function"?A.backdrop(R):A.backdrop,transition:{...Z,onEntering:(...J)=>{G(...J),Z?.onEntering?.(...J)}}},open:d,ref:t,transitionDuration:g,ownerState:R,...D,classes:h,children:P.jsx(X,{actions:F,autoFocus:r&&(T===-1||s),autoFocusItem:k,variant:E,...z,children:a})})});function Dme(e){return Ht("MuiNativeSelect",e)}const Y_=Nt("MuiNativeSelect",["root","select","multiple","filled","outlined","standard","disabled","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]),kme=e=>{const{classes:t,variant:n,disabled:r,multiple:a,open:o,error:s}=e,c={select:["select",n,r&&"disabled",a&&"multiple",s&&"error"],icon:["icon",`icon${rt(n)}`,o&&"iconOpen",r&&"disabled"]};return zt(c,Dme,t)},XP=ze("select",{name:"MuiNativeSelect"})(({theme:e})=>({MozAppearance:"none",WebkitAppearance:"none",userSelect:"none",borderRadius:0,cursor:"pointer","&:focus":{borderRadius:0},[`&.${Y_.disabled}`]:{cursor:"default"},"&[multiple]":{height:"auto"},"&:not([multiple]) option, &:not([multiple]) optgroup":{backgroundColor:(e.vars||e).palette.background.paper},variants:[{props:({ownerState:t})=>t.variant!=="filled"&&t.variant!=="outlined",style:{"&&&":{paddingRight:24,minWidth:16}}},{props:{variant:"filled"},style:{"&&&":{paddingRight:32}}},{props:{variant:"outlined"},style:{borderRadius:(e.vars||e).shape.borderRadius,"&:focus":{borderRadius:(e.vars||e).shape.borderRadius},"&&&":{paddingRight:32}}}]})),Rme=ze(XP,{name:"MuiNativeSelect",slot:"Select",shouldForwardProp:ea,overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.select,t[n.variant],n.error&&t.error,{[`&.${Y_.multiple}`]:t.multiple}]}})({}),ZP=ze("svg",{name:"MuiNativeSelect"})(({theme:e})=>({position:"absolute",right:0,top:"calc(50% - .5em)",pointerEvents:"none",color:(e.vars||e).palette.action.active,[`&.${Y_.disabled}`]:{color:(e.vars||e).palette.action.disabled},variants:[{props:({ownerState:t})=>t.open,style:{transform:"rotate(180deg)"}},{props:{variant:"filled"},style:{right:7}},{props:{variant:"outlined"},style:{right:7}}]})),Ome=ze(ZP,{name:"MuiNativeSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.icon,n.variant&&t[`icon${rt(n.variant)}`],n.open&&t.iconOpen]}})({}),Ime=x.forwardRef(function(e,t){const{className:n,disabled:r,error:a,IconComponent:o,inputRef:s,variant:c="standard",...u}=e,d={...e,disabled:r,variant:c,error:a},p=kme(d);return P.jsxs(x.Fragment,{children:[P.jsx(Rme,{ownerState:d,className:mt(p.select,n),disabled:r,ref:s||t,...u}),e.multiple?null:P.jsx(Ome,{as:o,ownerState:d,className:p.icon})]})});function JP(e){return Ht("MuiSelect",e)}const nf=Nt("MuiSelect",["root","select","multiple","filled","outlined","standard","disabled","focused","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]);var $O;const Nme=ze(XP,{name:"MuiSelect",slot:"Select",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`&.${nf.select}`]:t.select},{[`&.${nf.select}`]:t[n.variant]},{[`&.${nf.error}`]:t.error},{[`&.${nf.multiple}`]:t.multiple}]}})({[`&.${nf.select}`]:{height:"auto",minHeight:"1.4375em",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"}}),Lme=ze(ZP,{name:"MuiSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.icon,n.variant&&t[`icon${rt(n.variant)}`],n.open&&t.iconOpen]}})({}),Pme=ze("input",{shouldForwardProp:e=>$3(e)&&e!=="classes",name:"MuiSelect",slot:"NativeInput"})({bottom:0,left:0,position:"absolute",opacity:0,pointerEvents:"none",width:"100%",boxSizing:"border-box"});function FO(e,t){return typeof t=="object"&&t!==null?e===t:String(e)===String(t)}function Mme(e){return e==null||typeof e=="string"&&!e.trim()}const $me=e=>{const{classes:t,variant:n,disabled:r,multiple:a,open:o,error:s}=e,c={select:["select",n,r&&"disabled",a&&"multiple",s&&"error"],icon:["icon",`icon${rt(n)}`,o&&"iconOpen",r&&"disabled"],nativeInput:["nativeInput"]};return zt(c,JP,t)},Fme=x.forwardRef(function(e,t){const{"aria-describedby":n,"aria-label":r,autoFocus:a,autoWidth:o,children:s,className:c,defaultOpen:u,defaultValue:d,disabled:p,displayEmpty:h,error:g=!1,IconComponent:y,inputRef:b,labelId:E,MenuProps:_={},multiple:A,name:D,onBlur:w,onChange:R,onClose:O,onFocus:k,onOpen:F,open:G,readOnly:j,renderValue:T,required:M,SelectDisplayProps:U={},tabIndex:B,type:Y,value:X,variant:z="standard",...Z}=e,[J,oe]=ET({controlled:X,default:d,name:"Select"}),[I,re]=ET({controlled:G,default:u,name:"Select"}),ee=x.useRef(null),L=x.useRef(null),[te,be]=x.useState(null),{current:de}=x.useRef(G!=null),[xe,ge]=x.useState(),Oe=Kn(t,b),Ue=x.useCallback(qe=>{L.current=qe,qe&&be(qe)},[]),Ie=te?.parentNode;x.useImperativeHandle(Oe,()=>({focus:()=>{L.current.focus()},node:ee.current,value:J}),[J]),x.useEffect(()=>{u&&I&&te&&!de&&(ge(o?null:Ie.clientWidth),L.current.focus())},[te,o]),x.useEffect(()=>{a&&L.current.focus()},[a]),x.useEffect(()=>{if(!E)return;const qe=Kr(L.current).getElementById(E);if(qe){const Ee=()=>{getSelection().isCollapsed&&L.current.focus()};return qe.addEventListener("click",Ee),()=>{qe.removeEventListener("click",Ee)}}},[E]);const Ye=(qe,Ee)=>{qe?F&&F(Ee):O&&O(Ee),de||(ge(o?null:Ie.clientWidth),re(qe))},Ve=qe=>{qe.button===0&&(qe.preventDefault(),L.current.focus(),Ye(!0,qe))},ke=qe=>{Ye(!1,qe)},Rt=x.Children.toArray(s),Et=qe=>{const Ee=Rt.find(Te=>Te.props.value===qe.target.value);Ee!==void 0&&(oe(Ee.props.value),R&&R(qe,Ee))},je=qe=>Ee=>{let Te;if(Ee.currentTarget.hasAttribute("tabindex")){if(A){Te=Array.isArray(J)?J.slice():[];const ut=J.indexOf(qe.props.value);ut===-1?Te.push(qe.props.value):Te.splice(ut,1)}else Te=qe.props.value;if(qe.props.onClick&&qe.props.onClick(Ee),J!==Te&&(oe(Te),R)){const ut=Ee.nativeEvent||Ee,nt=new ut.constructor(ut.type,ut);Object.defineProperty(nt,"target",{writable:!0,value:{value:Te,name:D}}),R(nt,qe)}A||Ye(!1,Ee)}},St=qe=>{j||[" ","ArrowUp","ArrowDown","Enter"].includes(qe.key)&&(qe.preventDefault(),Ye(!0,qe))},ot=te!==null&&I,Ze=qe=>{!ot&&w&&(Object.defineProperty(qe,"target",{writable:!0,value:{value:J,name:D}}),w(qe))};delete Z["aria-invalid"];let Ge,Pe;const Ot=[];let Dn=!1;(Xg({value:J})||h)&&(T?Ge=T(J):Dn=!0);const bt=Rt.map(qe=>{if(!x.isValidElement(qe))return null;let Ee;if(A){if(!Array.isArray(J))throw new Error(Pi(2));Ee=J.some(Te=>FO(Te,qe.props.value)),Ee&&Dn&&Ot.push(qe.props.children)}else Ee=FO(J,qe.props.value),Ee&&Dn&&(Pe=qe.props.children);return x.cloneElement(qe,{"aria-selected":Ee?"true":"false",onClick:je(qe),onKeyUp:Te=>{Te.key===" "&&Te.preventDefault(),qe.props.onKeyUp&&qe.props.onKeyUp(Te)},role:"option",selected:Ee,value:void 0,"data-value":qe.props.value})});Dn&&(A?Ot.length===0?Ge=null:Ge=Ot.reduce((qe,Ee,Te)=>(qe.push(Ee),Te<Ot.length-1&&qe.push(", "),qe),[]):Ge=Pe);let ce=xe;!o&&de&&te&&(ce=Ie.clientWidth);let me;typeof B<"u"?me=B:me=p?null:0;const Be=U.id||(D?`mui-component-select-${D}`:void 0),We={...e,variant:z,value:J,open:ot,error:g},Qe=$me(We),gt={..._.PaperProps,..._.slotProps?.paper},ln={..._.MenuListProps,..._.slotProps?.list},Qt=Yp();return P.jsxs(x.Fragment,{children:[P.jsx(Nme,{as:"div",ref:Ue,tabIndex:me,role:"combobox","aria-controls":ot?Qt:void 0,"aria-disabled":p?"true":void 0,"aria-expanded":ot?"true":"false","aria-haspopup":"listbox","aria-label":r,"aria-labelledby":[E,Be].filter(Boolean).join(" ")||void 0,"aria-describedby":n,"aria-required":M?"true":void 0,"aria-invalid":g?"true":void 0,onKeyDown:St,onMouseDown:p||j?null:Ve,onBlur:Ze,onFocus:k,...U,ownerState:We,className:mt(U.className,Qe.select,c),id:Be,children:Mme(Ge)?$O||($O=P.jsx("span",{className:"notranslate","aria-hidden":!0,children:"​"})):Ge}),P.jsx(Pme,{"aria-invalid":g,value:Array.isArray(J)?J.join(","):J,name:D,ref:ee,"aria-hidden":!0,onChange:Et,tabIndex:-1,disabled:p,className:Qe.nativeInput,autoFocus:a,required:M,...Z,ownerState:We}),P.jsx(Lme,{as:y,className:Qe.icon,ownerState:We}),P.jsx(wme,{id:`menu-${D||""}`,anchorEl:Ie,open:ot,onClose:ke,anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"},..._,slotProps:{..._.slotProps,list:{"aria-labelledby":E,role:"listbox","aria-multiselectable":A?"true":void 0,disableListWrap:!0,id:Qt,...ln},paper:{...gt,style:{minWidth:ce,...gt!=null?gt.style:null}}},children:bt})]})}),Bme=wn(P.jsx("path",{d:"M7 10l5 5 5-5z"})),Ume=e=>{const{classes:t}=e,n=zt({root:["root"]},JP,t);return{...t,...n}},Q_={name:"MuiSelect",slot:"Root",shouldForwardProp:e=>ea(e)&&e!=="variant"},jme=ze(W_,Q_)(""),Hme=ze(G_,Q_)(""),zme=ze(q_,Q_)(""),e6=x.forwardRef(function(e,t){const n=Yt({name:"MuiSelect",props:e}),{autoWidth:r=!1,children:a,classes:o={},className:s,defaultOpen:c=!1,displayEmpty:u=!1,IconComponent:d=Bme,id:p,input:h,inputProps:g,label:y,labelId:b,MenuProps:E,multiple:_=!1,native:A=!1,onClose:D,onOpen:w,open:R,renderValue:O,SelectDisplayProps:k,variant:F="outlined",...G}=n,j=A?Ime:Fme,T=Gl(),M=Mu({props:n,muiFormControl:T,states:["variant","error"]}),U=M.variant||F,B={...n,variant:U,classes:o},Y=Ume(B),{root:X,...z}=Y,Z=h||{standard:P.jsx(jme,{ownerState:B}),outlined:P.jsx(Hme,{label:y,ownerState:B}),filled:P.jsx(zme,{ownerState:B})}[U],J=Kn(t,Pu(Z));return P.jsx(x.Fragment,{children:x.cloneElement(Z,{inputComponent:j,inputProps:{children:a,error:M.error,IconComponent:d,variant:U,type:void 0,multiple:_,...A?{id:p}:{autoWidth:r,defaultOpen:c,displayEmpty:u,labelId:b,MenuProps:E,onClose:D,onOpen:w,open:R,renderValue:O,SelectDisplayProps:{id:p,...k}},...g,classes:g?$r(z,g.classes):z,...h?h.props.inputProps:{}},...(_&&A||u)&&U==="outlined"?{notched:!0}:{},ref:J,className:mt(Z.props.className,s,Y.root),...!h&&{variant:U},...G})})});e6.muiName="Select";function Vme(e){return Ht("MuiFormControl",e)}Nt("MuiFormControl",["root","marginNone","marginNormal","marginDense","fullWidth","disabled"]);function Vb(e,t){return x.isValidElement(e)&&t.indexOf(e.type.muiName??e.type?._payload?.value?.muiName)!==-1}const Gme=e=>{const{classes:t,margin:n,fullWidth:r}=e,a={root:["root",n!=="none"&&`margin${rt(n)}`,r&&"fullWidth"]};return zt(a,Vme,t)},qme=ze("div",{name:"MuiFormControl",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`margin${rt(n.margin)}`],n.fullWidth&&t.fullWidth]}})({display:"inline-flex",flexDirection:"column",position:"relative",minWidth:0,padding:0,margin:0,border:0,verticalAlign:"top",variants:[{props:{margin:"normal"},style:{marginTop:16,marginBottom:8}},{props:{margin:"dense"},style:{marginTop:8,marginBottom:4}},{props:{fullWidth:!0},style:{width:"100%"}}]}),Wme=x.forwardRef(function(e,t){const n=Yt({props:e,name:"MuiFormControl"}),{children:r,className:a,color:o="primary",component:s="div",disabled:c=!1,error:u=!1,focused:d,fullWidth:p=!1,hiddenLabel:h=!1,margin:g="none",required:y=!1,size:b="medium",variant:E="outlined",..._}=n,A={...n,color:o,component:s,disabled:c,error:u,fullWidth:p,hiddenLabel:h,margin:g,required:y,size:b,variant:E},D=Gme(A),[w,R]=x.useState(()=>{let Y=!1;return r&&x.Children.forEach(r,X=>{if(!Vb(X,["Input","Select"]))return;const z=Vb(X,["Select"])?X.props.input:X;z&&Lhe(z.props)&&(Y=!0)}),Y}),[O,k]=x.useState(()=>{let Y=!1;return r&&x.Children.forEach(r,X=>{Vb(X,["Input","Select"])&&(Xg(X.props,!0)||Xg(X.props.inputProps,!0))&&(Y=!0)}),Y}),[F,G]=x.useState(!1);c&&F&&G(!1);const j=d!==void 0&&!c?d:F;let T;x.useRef(!1);const M=x.useCallback(()=>{k(!0)},[]),U=x.useCallback(()=>{k(!1)},[]),B=x.useMemo(()=>({adornedStart:w,setAdornedStart:R,color:o,disabled:c,error:u,filled:O,focused:j,fullWidth:p,hiddenLabel:h,size:b,onBlur:()=>{G(!1)},onFocus:()=>{G(!0)},onEmpty:U,onFilled:M,registerEffect:T,required:y,variant:E}),[w,o,c,u,O,j,p,h,T,U,M,y,b,E]);return P.jsx(F_.Provider,{value:B,children:P.jsx(qme,{as:s,ownerState:A,className:mt(D.root,a),ref:t,..._,children:r})})}),Yme={standard:W_,filled:q_,outlined:G_},Qme=e=>{const{classes:t}=e;return zt({root:["root"]},Dhe,t)},Kme=ze(Wme,{name:"MuiTextField",slot:"Root"})({}),K0e=x.forwardRef(function(e,t){const n=Yt({props:e,name:"MuiTextField"}),{autoComplete:r,autoFocus:a=!1,children:o,className:s,color:c="primary",defaultValue:u,disabled:d=!1,error:p=!1,FormHelperTextProps:h,fullWidth:g=!1,helperText:y,id:b,InputLabelProps:E,inputProps:_,InputProps:A,inputRef:D,label:w,maxRows:R,minRows:O,multiline:k=!1,name:F,onBlur:G,onChange:j,onFocus:T,placeholder:M,required:U=!1,rows:B,select:Y=!1,SelectProps:X,slots:z={},slotProps:Z={},type:J,value:oe,variant:I="outlined",...re}=n,ee={...n,autoFocus:a,color:c,disabled:d,error:p,fullWidth:g,multiline:k,required:U,select:Y,variant:I},L=Qme(ee),te=Yp(b),be=y&&te?`${te}-helper-text`:void 0,de=w&&te?`${te}-label`:void 0,xe=Yme[I],ge={slots:z,slotProps:{input:A,inputLabel:E,htmlInput:_,formHelperText:h,select:X,...Z}},Oe={},Ue=ge.slotProps.inputLabel;I==="outlined"&&(Ue&&typeof Ue.shrink<"u"&&(Oe.notched=Ue.shrink),Oe.label=w),Y&&((!X||!X.native)&&(Oe.id=void 0),Oe["aria-describedby"]=void 0);const[Ie,Ye]=bn("root",{elementType:Kme,shouldForwardComponentProp:!0,externalForwardedProps:{...ge,...re},ownerState:ee,className:mt(L.root,s),ref:t,additionalProps:{disabled:d,error:p,fullWidth:g,required:U,color:c,variant:I}}),[Ve,ke]=bn("input",{elementType:xe,externalForwardedProps:ge,additionalProps:Oe,ownerState:ee}),[Rt,Et]=bn("inputLabel",{elementType:ome,externalForwardedProps:ge,ownerState:ee}),[je,St]=bn("htmlInput",{elementType:"input",externalForwardedProps:ge,ownerState:ee}),[ot,Ze]=bn("formHelperText",{elementType:cme,externalForwardedProps:ge,ownerState:ee}),[Ge,Pe]=bn("select",{elementType:e6,externalForwardedProps:ge,ownerState:ee}),Ot=P.jsx(Ve,{"aria-describedby":be,autoComplete:r,autoFocus:a,defaultValue:u,fullWidth:g,multiline:k,name:F,rows:B,maxRows:R,minRows:O,type:J,value:oe,id:te,inputRef:D,onBlur:G,onChange:j,onFocus:T,placeholder:M,inputProps:St,slots:{input:z.htmlInput?je:void 0},...ke});return P.jsxs(Ie,{...Ye,children:[w!=null&&w!==""&&P.jsx(Rt,{htmlFor:te,id:de,...Et,children:w}),Y?P.jsx(Ge,{"aria-describedby":be,id:te,labelId:de,value:oe,input:Ot,...Pe,children:o}):Ot,y&&P.jsx(ot,{id:be,...Ze,children:y})]})});function Xme(e){return Ht("MuiMenuItem",e)}const rf=Nt("MuiMenuItem",["root","focusVisible","dense","disabled","divider","gutters","selected"]),BO=Nt("MuiListItemIcon",["root","alignItemsFlexStart"]),UO=Nt("MuiListItemText",["root","multiline","dense","inset","primary","secondary"]),jO=Nt("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]),Zme=(e,t)=>{const{ownerState:n}=e;return[t.root,n.dense&&t.dense,n.divider&&t.divider,!n.disableGutters&&t.gutters]},Jme=e=>{const{disabled:t,dense:n,divider:r,disableGutters:a,selected:o,classes:s}=e,c=zt({root:["root",n&&"dense",t&&"disabled",!a&&"gutters",r&&"divider",o&&"selected"]},Xme,s);return{...s,...c}},ege=ze(l0,{shouldForwardProp:e=>ea(e)||e==="classes",name:"MuiMenuItem",slot:"Root",overridesResolver:Zme})(fn(({theme:e})=>({...e.typography.body1,display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",minHeight:48,paddingTop:6,paddingBottom:6,boxSizing:"border-box",whiteSpace:"nowrap","&:hover":{textDecoration:"none",backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${rf.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:Nr(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${rf.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:Nr(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${rf.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:Nr(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:Nr(e.palette.primary.main,e.palette.action.selectedOpacity)}},[`&.${rf.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${rf.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},[`& + .${jO.root}`]:{marginTop:e.spacing(1),marginBottom:e.spacing(1)},[`& + .${jO.inset}`]:{marginLeft:52},[`& .${UO.root}`]:{marginTop:0,marginBottom:0},[`& .${UO.inset}`]:{paddingLeft:36},[`& .${BO.root}`]:{minWidth:36},variants:[{props:({ownerState:t})=>!t.disableGutters,style:{paddingLeft:16,paddingRight:16}},{props:({ownerState:t})=>t.divider,style:{borderBottom:`1px solid ${(e.vars||e).palette.divider}`,backgroundClip:"padding-box"}},{props:({ownerState:t})=>!t.dense,style:{[e.breakpoints.up("sm")]:{minHeight:"auto"}}},{props:({ownerState:t})=>t.dense,style:{minHeight:32,paddingTop:4,paddingBottom:4,...e.typography.body2,[`& .${BO.root} svg`]:{fontSize:"1.25rem"}}}]}))),X0e=x.forwardRef(function(e,t){const n=Yt({props:e,name:"MuiMenuItem"}),{autoFocus:r=!1,component:a="li",dense:o=!1,divider:s=!1,disableGutters:c=!1,focusVisibleClassName:u,role:d="menuitem",tabIndex:p,className:h,...g}=n,y=x.useContext(DT),b=x.useMemo(()=>({dense:o||y.dense||!1,disableGutters:c}),[y.dense,o,c]),E=x.useRef(null);Ls(()=>{r&&E.current&&E.current.focus()},[r]);const _={...n,dense:b.dense,divider:s,disableGutters:c},A=Jme(n),D=Kn(E,t);let w;return n.disabled||(w=p!==void 0?p:-1),P.jsx(DT.Provider,{value:b,children:P.jsx(ege,{ref:D,role:d,tabIndex:w,component:a,focusVisibleClassName:mt(A.focusVisible,u),className:mt(A.root,h),...g,ownerState:_,classes:A})})});function tge(e){return Ht("MuiDialogActions",e)}Nt("MuiDialogActions",["root","spacing"]);const nge=e=>{const{classes:t,disableSpacing:n}=e;return zt({root:["root",!n&&"spacing"]},tge,t)},rge=ze("div",{name:"MuiDialogActions",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disableSpacing&&t.spacing]}})({display:"flex",alignItems:"center",padding:8,justifyContent:"flex-end",flex:"0 0 auto",variants:[{props:({ownerState:e})=>!e.disableSpacing,style:{"& > :not(style) ~ :not(style)":{marginLeft:8}}}]}),Z0e=x.forwardRef(function(e,t){const n=Yt({props:e,name:"MuiDialogActions"}),{className:r,disableSpacing:a=!1,...o}=n,s={...n,disableSpacing:a},c=nge(s);return P.jsx(rge,{className:mt(c.root,r),ownerState:s,ref:t,...o})});function age(e){return Ht("MuiIconButton",e)}const HO=Nt("MuiIconButton",["root","disabled","colorInherit","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","edgeStart","edgeEnd","sizeSmall","sizeMedium","sizeLarge","loading","loadingIndicator","loadingWrapper"]),oge=e=>{const{classes:t,disabled:n,color:r,edge:a,size:o,loading:s}=e,c={root:["root",s&&"loading",n&&"disabled",r!=="default"&&`color${rt(r)}`,a&&`edge${rt(a)}`,`size${rt(o)}`],loadingIndicator:["loadingIndicator"],loadingWrapper:["loadingWrapper"]};return zt(c,age,t)},ige=ze(l0,{name:"MuiIconButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.loading&&t.loading,n.color!=="default"&&t[`color${rt(n.color)}`],n.edge&&t[`edge${rt(n.edge)}`],t[`size${rt(n.size)}`]]}})(fn(({theme:e})=>({textAlign:"center",flex:"0 0 auto",fontSize:e.typography.pxToRem(24),padding:8,borderRadius:"50%",color:(e.vars||e).palette.action.active,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest}),variants:[{props:t=>!t.disableRipple,style:{"--IconButton-hoverBg":e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:Nr(e.palette.action.active,e.palette.action.hoverOpacity),"&:hover":{backgroundColor:"var(--IconButton-hoverBg)","@media (hover: none)":{backgroundColor:"transparent"}}}},{props:{edge:"start"},style:{marginLeft:-12}},{props:{edge:"start",size:"small"},style:{marginLeft:-3}},{props:{edge:"end"},style:{marginRight:-12}},{props:{edge:"end",size:"small"},style:{marginRight:-3}}]})),fn(({theme:e})=>({variants:[{props:{color:"inherit"},style:{color:"inherit"}},...Object.entries(e.palette).filter(_o()).map(([t])=>({props:{color:t},style:{color:(e.vars||e).palette[t].main}})),...Object.entries(e.palette).filter(_o()).map(([t])=>({props:{color:t},style:{"--IconButton-hoverBg":e.vars?`rgba(${(e.vars||e).palette[t].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Nr((e.vars||e).palette[t].main,e.palette.action.hoverOpacity)}})),{props:{size:"small"},style:{padding:5,fontSize:e.typography.pxToRem(18)}},{props:{size:"large"},style:{padding:12,fontSize:e.typography.pxToRem(28)}}],[`&.${HO.disabled}`]:{backgroundColor:"transparent",color:(e.vars||e).palette.action.disabled},[`&.${HO.loading}`]:{color:"transparent"}}))),sge=ze("span",{name:"MuiIconButton",slot:"LoadingIndicator"})(({theme:e})=>({display:"none",position:"absolute",visibility:"visible",top:"50%",left:"50%",transform:"translate(-50%, -50%)",color:(e.vars||e).palette.action.disabled,variants:[{props:{loading:!0},style:{display:"flex"}}]})),J0e=x.forwardRef(function(e,t){const n=Yt({props:e,name:"MuiIconButton"}),{edge:r=!1,children:a,className:o,color:s="default",disabled:c=!1,disableFocusRipple:u=!1,size:d="medium",id:p,loading:h=null,loadingIndicator:g,...y}=n,b=Yp(p),E=g??P.jsx(jP,{"aria-labelledby":b,color:"inherit",size:16}),_={...n,edge:r,color:s,disabled:c,disableFocusRipple:u,loading:h,loadingIndicator:E,size:d},A=oge(_);return P.jsxs(ige,{id:h?b:p,className:mt(A.root,o),centerRipple:!0,focusRipple:!u,disabled:c||h,ref:t,...y,ownerState:_,children:[typeof h=="boolean"&&P.jsx("span",{className:A.loadingWrapper,style:{display:"contents"},children:P.jsx(sge,{className:A.loadingIndicator,ownerState:_,children:h&&E})}),a]})}),e1e=wn(P.jsx("path",{d:"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2M8 17c-.55 0-1-.45-1-1v-3c0-.55.45-1 1-1s1 .45 1 1v3c0 .55-.45 1-1 1m4 0c-.55 0-1-.45-1-1v-1c0-.55.45-1 1-1s1 .45 1 1v1c0 .55-.45 1-1 1m0-5c-.55 0-1-.45-1-1s.45-1 1-1 1 .45 1 1-.45 1-1 1m4 5c-.55 0-1-.45-1-1V8c0-.55.45-1 1-1s1 .45 1 1v8c0 .55-.45 1-1 1"})),t1e=wn(P.jsx("path",{d:"M5 13h11.17l-4.88 4.88c-.39.39-.39 1.03 0 1.42s1.02.39 1.41 0l6.59-6.59c.39-.39.39-1.02 0-1.41l-6.58-6.6a.996.996 0 0 0-1.41 0c-.39.39-.39 1.02 0 1.41L16.17 11H5c-.55 0-1 .45-1 1s.45 1 1 1"})),n1e=wn(P.jsx("path",{d:"m19.46 8 .79-1.75L22 5.46c.39-.18.39-.73 0-.91l-1.75-.79L19.46 2c-.18-.39-.73-.39-.91 0l-.79 1.75-1.76.79c-.39.18-.39.73 0 .91l1.75.79.79 1.76c.18.39.74.39.92 0M11.5 9.5 9.91 6c-.35-.78-1.47-.78-1.82 0L6.5 9.5 3 11.09c-.78.36-.78 1.47 0 1.82l3.5 1.59L8.09 18c.36.78 1.47.78 1.82 0l1.59-3.5 3.5-1.59c.78-.36.78-1.47 0-1.82zm7.04 6.5-.79 1.75-1.75.79c-.39.18-.39.73 0 .91l1.75.79.79 1.76c.18.39.73.39.91 0l.79-1.75 1.76-.79c.39-.18.39-.73 0-.91l-1.75-.79-.79-1.76c-.18-.39-.74-.39-.92 0"})),r1e=wn(P.jsx("path",{d:"M8.7 15.9 4.8 12l3.9-3.9c.39-.39.39-1.01 0-1.4a.984.984 0 0 0-1.4 0l-4.59 4.59c-.39.39-.39 1.02 0 1.41l4.59 4.6c.39.39 1.01.39 1.4 0s.39-1.01 0-1.4m6.6 0 3.9-3.9-3.9-3.9a.984.984 0 0 1 0-1.4c.39-.39 1.01-.39 1.4 0l4.59 4.59c.39.39.39 1.02 0 1.41l-4.59 4.6c-.39.39-1.01.39-1.4 0a.984.984 0 0 1 0-1.4"})),a1e=wn(P.jsx("path",{d:"M12 10.9c-.61 0-1.1.49-1.1 1.1s.49 1.1 1.1 1.1 1.1-.49 1.1-1.1-.49-1.1-1.1-1.1M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m2.19 12.19L6 18l3.81-8.19L18 6z"})),o1e=wn([P.jsx("path",{d:"M13 8.57c-.79 0-1.43.64-1.43 1.43s.64 1.43 1.43 1.43 1.43-.64 1.43-1.43-.64-1.43-1.43-1.43"},"0"),P.jsx("path",{d:"M13.21 3c-3.84-.11-7 2.87-7.19 6.64L4.1 12.2c-.25.33-.01.8.4.8H6v3c0 1.1.9 2 2 2h1v2c0 .55.45 1 1 1h5c.55 0 1-.45 1-1v-3.68c2.44-1.16 4.1-3.68 4-6.58-.14-3.62-3.18-6.63-6.79-6.74M16 10c0 .13-.01.26-.02.39l.83.66c.08.06.1.16.05.25l-.8 1.39c-.05.09-.16.12-.24.09l-.99-.4c-.21.16-.43.29-.67.39L14 13.83c-.01.1-.1.17-.2.17h-1.6c-.1 0-.18-.07-.2-.17l-.15-1.06c-.25-.1-.47-.23-.68-.39l-.99.4c-.09.03-.2 0-.25-.09l-.8-1.39c-.05-.08-.03-.19.05-.25l.84-.66c-.01-.13-.02-.26-.02-.39s.02-.27.04-.39l-.85-.66c-.08-.06-.1-.16-.05-.26l.8-1.38c.05-.09.15-.12.24-.09l1 .4c.2-.15.43-.29.67-.39L12 6.17c.02-.1.1-.17.2-.17h1.6c.1 0 .18.07.2.17l.15 1.06c.24.1.46.23.67.39l1-.4c.09-.03.2 0 .24.09l.8 1.38c.05.09.03.2-.05.26l-.85.66c.03.12.04.25.04.39"},"1")]),i1e=wn(P.jsx("path",{d:"M4 20h16c1.1 0 2-.9 2-2s-.9-2-2-2H4c-1.1 0-2 .9-2 2s.9 2 2 2m0-3h2v2H4zM2 6c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2s-.9-2-2-2H4c-1.1 0-2 .9-2 2m4 1H4V5h2zm-2 7h16c1.1 0 2-.9 2-2s-.9-2-2-2H4c-1.1 0-2 .9-2 2s.9 2 2 2m0-3h2v2H4z"}));function lge(e={}){const{autoHideDuration:t=null,disableWindowBlurListener:n=!1,onClose:r,open:a,resumeHideDuration:o}=e,s=s0();x.useEffect(()=>{if(!a)return;function _(A){A.defaultPrevented||A.key==="Escape"&&r?.(A,"escapeKeyDown")}return document.addEventListener("keydown",_),()=>{document.removeEventListener("keydown",_)}},[a,r]);const c=Fr((_,A)=>{r?.(_,A)}),u=Fr(_=>{!r||_==null||s.start(_,()=>{c(null,"timeout")})});x.useEffect(()=>(a&&u(t),s.clear),[a,t,u,s]);const d=_=>{r?.(_,"clickaway")},p=s.clear,h=x.useCallback(()=>{t!=null&&u(o??t*.5)},[t,o,u]),g=_=>A=>{const D=_.onBlur;D?.(A),h()},y=_=>A=>{const D=_.onFocus;D?.(A),p()},b=_=>A=>{const D=_.onMouseEnter;D?.(A),p()},E=_=>A=>{const D=_.onMouseLeave;D?.(A),h()};return x.useEffect(()=>{if(!n&&a)return window.addEventListener("focus",h),window.addEventListener("blur",p),()=>{window.removeEventListener("focus",h),window.removeEventListener("blur",p)}},[n,a,h,p]),{getRootProps:(_={})=>{const A={...Gr(e),...Gr(_)};return{role:"presentation",..._,...A,onBlur:g(A),onFocus:y(A),onMouseEnter:b(A),onMouseLeave:E(A)}},onClickAway:d}}function cge(e){return Ht("MuiSnackbar",e)}Nt("MuiSnackbar",["root","anchorOriginTopCenter","anchorOriginBottomCenter","anchorOriginTopRight","anchorOriginBottomRight","anchorOriginTopLeft","anchorOriginBottomLeft"]);function zO(e){return e.substring(2).toLowerCase()}function uge(e,t){return t.documentElement.clientWidth<e.clientX||t.documentElement.clientHeight<e.clientY}function dge(e){const{children:t,disableReactTree:n=!1,mouseEvent:r="onClick",onClickAway:a,touchEvent:o="onTouchEnd"}=e,s=x.useRef(!1),c=x.useRef(null),u=x.useRef(!1),d=x.useRef(!1);x.useEffect(()=>(setTimeout(()=>{u.current=!0},0),()=>{u.current=!1}),[]);const p=Kn(Pu(t),c),h=Fr(b=>{const E=d.current;d.current=!1;const _=Kr(c.current);if(!u.current||!c.current||"clientX"in b&&uge(b,_))return;if(s.current){s.current=!1;return}let A;b.composedPath?A=b.composedPath().includes(c.current):A=!_.documentElement.contains(b.target)||c.current.contains(b.target),!A&&(n||!E)&&a(b)}),g=b=>E=>{d.current=!0;const _=t.props[b];_&&_(E)},y={ref:p};return o!==!1&&(y[o]=g(o)),x.useEffect(()=>{if(o!==!1){const b=zO(o),E=Kr(c.current),_=()=>{s.current=!0};return E.addEventListener(b,h),E.addEventListener("touchmove",_),()=>{E.removeEventListener(b,h),E.removeEventListener("touchmove",_)}}},[h,o]),r!==!1&&(y[r]=g(r)),x.useEffect(()=>{if(r!==!1){const b=zO(r),E=Kr(c.current);return E.addEventListener(b,h),()=>{E.removeEventListener(b,h)}}},[h,r]),x.cloneElement(t,y)}function fge(e){return Ht("MuiSnackbarContent",e)}Nt("MuiSnackbarContent",["root","message","action"]);const pge=e=>{const{classes:t}=e;return zt({root:["root"],action:["action"],message:["message"]},fge,t)},hge=ze(d0,{name:"MuiSnackbarContent",slot:"Root"})(fn(({theme:e})=>{const t=e.palette.mode==="light"?.8:.98;return{...e.typography.body2,color:e.vars?e.vars.palette.SnackbarContent.color:e.palette.getContrastText(mE(e.palette.background.default,t)),backgroundColor:e.vars?e.vars.palette.SnackbarContent.bg:mE(e.palette.background.default,t),display:"flex",alignItems:"center",flexWrap:"wrap",padding:"6px 16px",flexGrow:1,[e.breakpoints.up("sm")]:{flexGrow:"initial",minWidth:288}}})),mge=ze("div",{name:"MuiSnackbarContent",slot:"Message"})({padding:"8px 0"}),gge=ze("div",{name:"MuiSnackbarContent",slot:"Action"})({display:"flex",alignItems:"center",marginLeft:"auto",paddingLeft:16,marginRight:-8}),yge=x.forwardRef(function(e,t){const n=Yt({props:e,name:"MuiSnackbarContent"}),{action:r,className:a,message:o,role:s="alert",...c}=n,u=n,d=pge(u);return P.jsxs(hge,{role:s,elevation:6,className:mt(d.root,a),ownerState:u,ref:t,...c,children:[P.jsx(mge,{className:d.message,ownerState:u,children:o}),r?P.jsx(gge,{className:d.action,ownerState:u,children:r}):null]})}),vge=e=>{const{classes:t,anchorOrigin:n}=e,r={root:["root",`anchorOrigin${rt(n.vertical)}${rt(n.horizontal)}`]};return zt(r,cge,t)},bge=ze("div",{name:"MuiSnackbar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`anchorOrigin${rt(n.anchorOrigin.vertical)}${rt(n.anchorOrigin.horizontal)}`]]}})(fn(({theme:e})=>({zIndex:(e.vars||e).zIndex.snackbar,position:"fixed",display:"flex",left:8,right:8,justifyContent:"center",alignItems:"center",variants:[{props:({ownerState:t})=>t.anchorOrigin.vertical==="top",style:{top:8,[e.breakpoints.up("sm")]:{top:24}}},{props:({ownerState:t})=>t.anchorOrigin.vertical!=="top",style:{bottom:8,[e.breakpoints.up("sm")]:{bottom:24}}},{props:({ownerState:t})=>t.anchorOrigin.horizontal==="left",style:{justifyContent:"flex-start",[e.breakpoints.up("sm")]:{left:24,right:"auto"}}},{props:({ownerState:t})=>t.anchorOrigin.horizontal==="right",style:{justifyContent:"flex-end",[e.breakpoints.up("sm")]:{right:24,left:"auto"}}},{props:({ownerState:t})=>t.anchorOrigin.horizontal==="center",style:{[e.breakpoints.up("sm")]:{left:"50%",right:"auto",transform:"translateX(-50%)"}}}]}))),s1e=x.forwardRef(function(e,t){const n=Yt({props:e,name:"MuiSnackbar"}),r=Lu(),a={enter:r.transitions.duration.enteringScreen,exit:r.transitions.duration.leavingScreen},{action:o,anchorOrigin:{vertical:s,horizontal:c}={vertical:"bottom",horizontal:"left"},autoHideDuration:u=null,children:d,className:p,ClickAwayListenerProps:h,ContentProps:g,disableWindowBlurListener:y=!1,message:b,onBlur:E,onClose:_,onFocus:A,onMouseEnter:D,onMouseLeave:w,open:R,resumeHideDuration:O,slots:k={},slotProps:F={},TransitionComponent:G,transitionDuration:j=a,TransitionProps:{onEnter:T,onExited:M,...U}={},...B}=n,Y={...n,anchorOrigin:{vertical:s,horizontal:c},autoHideDuration:u,disableWindowBlurListener:y,TransitionComponent:G,transitionDuration:j},X=vge(Y),{getRootProps:z,onClickAway:Z}=lge({...Y}),[J,oe]=x.useState(!0),I=Ye=>{oe(!0),M&&M(Ye)},re=(Ye,Ve)=>{oe(!1),T&&T(Ye,Ve)},ee={slots:{transition:G,...k},slotProps:{content:g,clickAwayListener:h,transition:U,...F}},[L,te]=bn("root",{ref:t,className:[X.root,p],elementType:bge,getSlotProps:z,externalForwardedProps:{...ee,...B},ownerState:Y}),[be,{ownerState:de,...xe}]=bn("clickAwayListener",{elementType:dge,externalForwardedProps:ee,getSlotProps:Ye=>({onClickAway:(...Ve)=>{const ke=Ve[0];Ye.onClickAway?.(...Ve),!ke?.defaultMuiPrevented&&Z(...Ve)}}),ownerState:Y}),[ge,Oe]=bn("content",{elementType:yge,shouldForwardComponentProp:!0,externalForwardedProps:ee,additionalProps:{message:b,action:o},ownerState:Y}),[Ue,Ie]=bn("transition",{elementType:Zg,externalForwardedProps:ee,getSlotProps:Ye=>({onEnter:(...Ve)=>{Ye.onEnter?.(...Ve),re(...Ve)},onExited:(...Ve)=>{Ye.onExited?.(...Ve),I(...Ve)}}),additionalProps:{appear:!0,in:R,timeout:j,direction:s==="top"?"down":"up"},ownerState:Y});return!R&&J?null:P.jsx(be,{...xe,...k.clickAwayListener&&{ownerState:de},children:P.jsx(L,{...te,children:P.jsx(Ue,{...Ie,children:d||P.jsx(ge,{...Oe})})})})});ct.defaults.baseURL="IfYouAreSeeingThis_baseURL_IsNotSet";const Mn={primary:{main:"#14b3cb",light:"#22d3ee",dark:"#0e7490",50:"#ecfeff",100:"#cffafe",500:"#14b3cb",600:"#0891b2",700:"#0e7490"},secondary:{main:"#fbbb04",light:"#fde047",dark:"#eab308",50:"#fefce8",100:"#fef3c7",500:"#fbbb04",600:"#eab308",700:"#ca8a04"},grey:{50:"#f9fafb",100:"#f3f4f6",200:"#e5e7eb",300:"#d1d5db",400:"#9ca3af",500:"#6b7280",600:"#4b5563",700:"#374151",800:"#1f2937",900:"#111827"},success:{main:"#059669",light:"#10b981",dark:"#047857"},warning:{main:"#d97706",light:"#f59e0b",dark:"#b45309"},error:{main:"#dc2626",light:"#ef4444",dark:"#b91c1c"},info:{main:"#0891b2",light:"#06b6d4",dark:"#0e7490"}},Ege=my({palette:{mode:"light",primary:Mn.primary,secondary:Mn.secondary,grey:Mn.grey,success:Mn.success,warning:Mn.warning,error:Mn.error,info:Mn.info,background:{default:"#ffffff",paper:"#ffffff"},text:{primary:Mn.grey[900],secondary:Mn.grey[600]},divider:Mn.grey[200]},typography:{fontFamily:'"Inter", "Roboto", "Helvetica", "Arial", sans-serif',h1:{fontWeight:700,letterSpacing:"-0.025em"},h2:{fontWeight:700,letterSpacing:"-0.025em"},h3:{fontWeight:600,letterSpacing:"-0.025em"},h4:{fontWeight:600,letterSpacing:"-0.025em"},h5:{fontWeight:600,letterSpacing:"-0.025em"},h6:{fontWeight:600,letterSpacing:"-0.025em"},subtitle1:{fontWeight:500,letterSpacing:"-0.025em"},subtitle2:{fontWeight:500,letterSpacing:"-0.025em"},body1:{letterSpacing:"-0.025em"},body2:{letterSpacing:"-0.025em"},button:{fontWeight:500,letterSpacing:"-0.025em",textTransform:"none"}},shape:{borderRadius:4},components:{MuiCssBaseline:{styleOverrides:{body:{scrollbarWidth:"thin",scrollbarColor:`${Mn.grey[300]} ${Mn.grey[100]}`,"&::-webkit-scrollbar":{width:"8px",height:"8px"},"&::-webkit-scrollbar-track":{background:Mn.grey[100],borderRadius:"4px"},"&::-webkit-scrollbar-thumb":{background:Mn.grey[300],borderRadius:"4px","&:hover":{background:Mn.grey[400]}},"&::-webkit-scrollbar-corner":{background:Mn.grey[100]}},"*":{scrollbarWidth:"thin",scrollbarColor:`${Mn.grey[300]} ${Mn.grey[100]}`,"&::-webkit-scrollbar":{width:"8px",height:"8px"},"&::-webkit-scrollbar-track":{background:Mn.grey[100],borderRadius:"4px"},"&::-webkit-scrollbar-thumb":{background:Mn.grey[300],borderRadius:"4px","&:hover":{background:Mn.grey[400]}},"&::-webkit-scrollbar-corner":{background:Mn.grey[100]}}}},MuiButton:{styleOverrides:{root:{borderRadius:4,textTransform:"none",fontWeight:500,boxShadow:"none","&:hover":{boxShadow:"0 1px 3px rgba(0, 0, 0, 0.1)"}},contained:{"&:hover":{boxShadow:"0 2px 4px rgba(0, 0, 0, 0.1)"}}}},MuiCard:{styleOverrides:{root:{borderRadius:4,boxShadow:"0 1px 3px rgba(0, 0, 0, 0.1)",border:"1px solid",borderColor:"rgba(0, 0, 0, 0.05)"}}},MuiChip:{styleOverrides:{root:{borderRadius:4,fontWeight:500}}},MuiTextField:{styleOverrides:{root:{"& .MuiOutlinedInput-root":{borderRadius:4}}}},MuiDialog:{styleOverrides:{paper:{borderRadius:4,boxShadow:"0px 20px 25px -5px rgba(0, 0, 0, 0.1), 0px 10px 10px -5px rgba(0, 0, 0, 0.04)"}}},MuiMenu:{styleOverrides:{paper:{borderRadius:4,boxShadow:"0px 10px 15px -3px rgba(0, 0, 0, 0.1), 0px 4px 6px -2px rgba(0, 0, 0, 0.05)",border:"1px solid rgba(0, 0, 0, 0.05)"}}},MuiBreadcrumbs:{styleOverrides:{root:{"& .MuiBreadcrumbs-separator":{margin:"0 6px",color:Mn.grey[400]}}}},MuiDivider:{styleOverrides:{root:{margin:"4px 0",borderColor:Mn.grey[200]}},defaultProps:{sx:{my:1}}}}}),Tge=x.lazy(()=>V(()=>import("./HomePage-vbEJVepI.js"),__vite__mapDeps([96,97,98,99,100,101,102,103,104]))),Sge=x.lazy(()=>V(()=>import("./MainPage-6getdplb.js"),__vite__mapDeps([105,97,104,103]))),_ge=x.lazy(()=>V(()=>import("./ModelPage-Cuqbuu_v.js"),__vite__mapDeps([106,107,108,109,100]))),Cge=x.lazy(()=>V(()=>import("./PackagePage-Cc5cjUZ9.js"),__vite__mapDeps([110,97,107,108,109,100,99,102,111]))),Age=x.lazy(()=>V(()=>import("./ProjectPage-CJbF04bc.js"),__vite__mapDeps([112,97,108,102,99,98,100,101]))),xge=x.lazy(()=>V(()=>import("./RouteError-CTlaesPV.js"),__vite__mapDeps([113,103]))),wge=x.lazy(()=>V(()=>import("./WorkbookPage-CGJZfEXN.js"),__vite__mapDeps([114,108,109,100,111,99,104,98,97]))),Dge=(e="/",t,n)=>d8([{path:e,element:P.jsx(KK,{children:P.jsx(pce,{workbookStorage:t,children:P.jsxs(eU,{theme:Ege,children:[P.jsx(qH,{}),P.jsx(Sge,{headerProps:n})]})})}),errorElement:P.jsx(xge,{}),children:[{path:"",element:P.jsx(Tge,{})},{path:":projectName",element:P.jsx(Age,{})},{path:":projectName/:packageName",element:P.jsx(Cge,{})},{path:":projectName/:packageName/*",element:P.jsx(_ge,{})},{path:":projectName/:packageName/workbook/:workspace/:workbookPath",element:P.jsx(wge,{})}]}]),kge=Dge("/",new upe,void 0);m$.createRoot(document.getElementById("root")).render(P.jsx(x.StrictMode,{children:P.jsx(_8,{router:kge})}));export{$ge as $,tn as A,Sl as B,Z0e as C,WS as D,K0e as E,Pa as F,WP as G,EU as H,KU as I,To as J,Vf as K,d3 as L,Q0e as M,Y0e as N,VF as O,V0e as P,lH as Q,Tt as R,rpe as S,hS as T,Oge as U,E7 as V,npe as W,Ige as X,J0e as Y,Uy as Z,Iye as _,q0e as a,lg as a$,Lge as a0,Fge as a1,Nye as a2,spe as a3,N0e as a4,u0e as a5,iU as a6,dm as a7,n3 as a8,Rl as a9,uS as aA,Nge as aB,qc as aC,SU as aD,pE as aE,L7 as aF,MB as aG,Fi as aH,zw as aI,ape as aJ,Bb as aK,F0e as aL,B0e as aM,U0e as aN,sG as aO,fce as aP,j0e as aQ,w0e as aR,lG as aS,H0e as aT,U3 as aU,$0e as aV,hy as aW,VI as aX,gU as aY,uH as aZ,V as a_,Ni as aa,Jn as ab,rS as ac,nS as ad,Bge as ae,Uge as af,jge as ag,_ce as ah,e0e as ai,X0e as aj,ez as ak,I0e as al,d0e as am,M0e as an,P0e as ao,Pge as ap,Mge as aq,Hge as ar,$F as as,Ap as at,JT as au,BF as av,fy as aw,SS as ax,Zc as ay,Bw as az,L0e as b,Es as b0,bp as b1,Rge as b2,VO as b3,a3 as c,tz as d,aD as e,n1e as f,_3 as g,C3 as h,r1e as i,P as j,o1e as k,kH as l,e1e as m,a1e as n,t1e as o,ma as p,Zr as q,x as r,Jr as s,i1e as t,J3 as u,W0e as v,xt as w,An as x,bE as y,s1e as z};
420
+ `),k=w.selectionStart===R;O&&k&&w.setSelectionRange(R,R),n&&n(D)};return P.jsxs(x.Fragment,{children:[P.jsx("textarea",{value:s,onChange:A,ref:p,rows:a,style:o,...c}),P.jsx("textarea",{"aria-hidden":!0,className:e.className,readOnly:!0,ref:g,tabIndex:-1,style:{...Phe.shadow,...o,paddingTop:0,paddingBottom:0}})]})});var kO;const f0=(e,t)=>{const{ownerState:n}=e;return[t.root,n.formControl&&t.formControl,n.startAdornment&&t.adornedStart,n.endAdornment&&t.adornedEnd,n.error&&t.error,n.size==="small"&&t.sizeSmall,n.multiline&&t.multiline,n.color&&t[`color${rt(n.color)}`],n.fullWidth&&t.fullWidth,n.hiddenLabel&&t.hiddenLabel]},p0=(e,t)=>{const{ownerState:n}=e;return[t.input,n.size==="small"&&t.inputSizeSmall,n.multiline&&t.inputMultiline,n.type==="search"&&t.inputTypeSearch,n.startAdornment&&t.inputAdornedStart,n.endAdornment&&t.inputAdornedEnd,n.hiddenLabel&&t.inputHiddenLabel]},Fhe=e=>{const{classes:t,color:n,disabled:r,error:a,endAdornment:o,focused:s,formControl:c,fullWidth:u,hiddenLabel:d,multiline:p,readOnly:h,size:g,startAdornment:y,type:b}=e,E={root:["root",`color${rt(n)}`,r&&"disabled",a&&"error",u&&"fullWidth",s&&"focused",c&&"formControl",g&&g!=="medium"&&`size${rt(g)}`,p&&"multiline",y&&"adornedStart",o&&"adornedEnd",d&&"hiddenLabel",h&&"readOnly"],input:["input",r&&"disabled",b==="search"&&"inputTypeSearch",p&&"inputMultiline",g==="small"&&"inputSizeSmall",d&&"inputHiddenLabel",y&&"inputAdornedStart",o&&"inputAdornedEnd",h&&"readOnly"]};return zt(E,Ihe,t)},h0=ze("div",{name:"MuiInputBase",slot:"Root",overridesResolver:f0})(fn(({theme:e})=>({...e.typography.body1,color:(e.vars||e).palette.text.primary,lineHeight:"1.4375em",boxSizing:"border-box",position:"relative",cursor:"text",display:"inline-flex",alignItems:"center",[`&.${vu.disabled}`]:{color:(e.vars||e).palette.text.disabled,cursor:"default"},variants:[{props:({ownerState:t})=>t.multiline,style:{padding:"4px 0 5px"}},{props:({ownerState:t,size:n})=>t.multiline&&n==="small",style:{paddingTop:1}},{props:({ownerState:t})=>t.fullWidth,style:{width:"100%"}}]}))),m0=ze("input",{name:"MuiInputBase",slot:"Input",overridesResolver:p0})(fn(({theme:e})=>{const t=e.palette.mode==="light",n={color:"currentColor",...e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:t?.42:.5},transition:e.transitions.create("opacity",{duration:e.transitions.duration.shorter})},r={opacity:"0 !important"},a=e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:t?.42:.5};return{font:"inherit",letterSpacing:"inherit",color:"currentColor",padding:"4px 0 5px",border:0,boxSizing:"content-box",background:"none",height:"1.4375em",margin:0,WebkitTapHighlightColor:"transparent",display:"block",minWidth:0,width:"100%","&::-webkit-input-placeholder":n,"&::-moz-placeholder":n,"&::-ms-input-placeholder":n,"&:focus":{outline:0},"&:invalid":{boxShadow:"none"},"&::-webkit-search-decoration":{WebkitAppearance:"none"},[`label[data-shrink=false] + .${vu.formControl} &`]:{"&::-webkit-input-placeholder":r,"&::-moz-placeholder":r,"&::-ms-input-placeholder":r,"&:focus::-webkit-input-placeholder":a,"&:focus::-moz-placeholder":a,"&:focus::-ms-input-placeholder":a},[`&.${vu.disabled}`]:{opacity:1,WebkitTextFillColor:(e.vars||e).palette.text.disabled},variants:[{props:({ownerState:o})=>!o.disableInjectingGlobalStyles,style:{animationName:"mui-auto-fill-cancel",animationDuration:"10ms","&:-webkit-autofill":{animationDuration:"5000s",animationName:"mui-auto-fill"}}},{props:{size:"small"},style:{paddingTop:1}},{props:({ownerState:o})=>o.multiline,style:{height:"auto",resize:"none",padding:0,paddingTop:0}},{props:{type:"search"},style:{MozAppearance:"textfield"}}]}})),RO=phe({"@keyframes mui-auto-fill":{from:{display:"block"}},"@keyframes mui-auto-fill-cancel":{from:{display:"block"}}}),V_=x.forwardRef(function(e,t){const n=Yt({props:e,name:"MuiInputBase"}),{"aria-describedby":r,autoComplete:a,autoFocus:o,className:s,color:c,components:u={},componentsProps:d={},defaultValue:p,disabled:h,disableInjectingGlobalStyles:g,endAdornment:y,error:b,fullWidth:E=!1,id:_,inputComponent:A="input",inputProps:D={},inputRef:w,margin:R,maxRows:O,minRows:k,multiline:F=!1,name:G,onBlur:j,onChange:T,onClick:M,onFocus:U,onKeyDown:B,onKeyUp:Y,placeholder:X,readOnly:z,renderSuffix:Z,rows:J,size:oe,slotProps:I={},slots:re={},startAdornment:ee,type:L="text",value:te,...be}=n,de=D.value!=null?D.value:te,{current:xe}=x.useRef(de!=null),ge=x.useRef(),Oe=x.useCallback(Qe=>{},[]),Ue=Kn(ge,w,D.ref,Oe),[Ie,Ye]=x.useState(!1),Ve=Gl(),ke=Mu({props:n,muiFormControl:Ve,states:["color","disabled","error","hiddenLabel","size","required","filled"]});ke.focused=Ve?Ve.focused:Ie,x.useEffect(()=>{!Ve&&h&&Ie&&(Ye(!1),j&&j())},[Ve,h,Ie,j]);const Rt=Ve&&Ve.onFilled,Et=Ve&&Ve.onEmpty,je=x.useCallback(Qe=>{Xg(Qe)?Rt&&Rt():Et&&Et()},[Rt,Et]);Ls(()=>{xe&&je({value:de})},[de,je,xe]);const St=Qe=>{U&&U(Qe),D.onFocus&&D.onFocus(Qe),Ve&&Ve.onFocus?Ve.onFocus(Qe):Ye(!0)},ot=Qe=>{j&&j(Qe),D.onBlur&&D.onBlur(Qe),Ve&&Ve.onBlur?Ve.onBlur(Qe):Ye(!1)},Ze=(Qe,...gt)=>{if(!xe){const ln=Qe.target||ge.current;if(ln==null)throw new Error(Pi(1));je({value:ln.value})}D.onChange&&D.onChange(Qe,...gt),T&&T(Qe,...gt)};x.useEffect(()=>{je(ge.current)},[]);const Ge=Qe=>{ge.current&&Qe.currentTarget===Qe.target&&ge.current.focus(),M&&M(Qe)};let Pe=A,Ot=D;F&&Pe==="input"&&(J?Ot={type:void 0,minRows:J,maxRows:J,...Ot}:Ot={type:void 0,maxRows:O,minRows:k,...Ot},Pe=$he);const Dn=Qe=>{je(Qe.animationName==="mui-auto-fill-cancel"?ge.current:{value:"x"})};x.useEffect(()=>{Ve&&Ve.setAdornedStart(!!ee)},[Ve,ee]);const bt={...n,color:ke.color||"primary",disabled:ke.disabled,endAdornment:y,error:ke.error,focused:ke.focused,formControl:Ve,fullWidth:E,hiddenLabel:ke.hiddenLabel,multiline:F,size:ke.size,startAdornment:ee,type:L},ce=Fhe(bt),me=re.root||u.Root||h0,Be=I.root||d.root||{},We=re.input||u.Input||m0;return Ot={...Ot,...I.input??d.input},P.jsxs(x.Fragment,{children:[!g&&typeof RO=="function"&&(kO||(kO=P.jsx(RO,{}))),P.jsxs(me,{...Be,ref:t,onClick:Ge,...be,...!xT(me)&&{ownerState:{...bt,...Be.ownerState}},className:mt(ce.root,Be.className,s,z&&"MuiInputBase-readOnly"),children:[ee,P.jsx(F_.Provider,{value:null,children:P.jsx(We,{"aria-invalid":ke.error,"aria-describedby":r,autoComplete:a,autoFocus:o,defaultValue:p,disabled:ke.disabled,id:_,onAnimationStart:Dn,name:G,placeholder:X,readOnly:z,required:ke.required,rows:J,value:de,onKeyDown:B,onKeyUp:Y,type:L,...Ot,...!xT(We)&&{as:Pe,ownerState:{...bt,...Ot.ownerState}},ref:Ue,className:mt(ce.input,Ot.className,z&&"MuiInputBase-readOnly"),onBlur:ot,onChange:Ze,onFocus:St})}),y,Z?Z({...ke,startAdornment:ee}):null]})]})}),Bhe=e=>{const{classes:t}=e,n=zt({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},Nhe,t);return{...t,...n}},Uhe=ze(h0,{shouldForwardProp:e=>ea(e)||e==="classes",name:"MuiOutlinedInput",slot:"Root",overridesResolver:f0})(fn(({theme:e})=>{const t=e.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return{position:"relative",borderRadius:(e.vars||e).shape.borderRadius,[`&:hover .${$o.notchedOutline}`]:{borderColor:(e.vars||e).palette.text.primary},"@media (hover: none)":{[`&:hover .${$o.notchedOutline}`]:{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:t}},[`&.${$o.focused} .${$o.notchedOutline}`]:{borderWidth:2},variants:[...Object.entries(e.palette).filter(_o()).map(([n])=>({props:{color:n},style:{[`&.${$o.focused} .${$o.notchedOutline}`]:{borderColor:(e.vars||e).palette[n].main}}})),{props:{},style:{[`&.${$o.error} .${$o.notchedOutline}`]:{borderColor:(e.vars||e).palette.error.main},[`&.${$o.disabled} .${$o.notchedOutline}`]:{borderColor:(e.vars||e).palette.action.disabled}}},{props:({ownerState:n})=>n.startAdornment,style:{paddingLeft:14}},{props:({ownerState:n})=>n.endAdornment,style:{paddingRight:14}},{props:({ownerState:n})=>n.multiline,style:{padding:"16.5px 14px"}},{props:({ownerState:n,size:r})=>n.multiline&&r==="small",style:{padding:"8.5px 14px"}}]}})),jhe=ze(Ohe,{name:"MuiOutlinedInput",slot:"NotchedOutline"})(fn(({theme:e})=>{const t=e.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:t}})),Hhe=ze(m0,{name:"MuiOutlinedInput",slot:"Input",overridesResolver:p0})(fn(({theme:e})=>({padding:"16.5px 14px",...!e.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:e.palette.mode==="light"?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:e.palette.mode==="light"?null:"#fff",caretColor:e.palette.mode==="light"?null:"#fff",borderRadius:"inherit"}},...e.vars&&{"&:-webkit-autofill":{borderRadius:"inherit"},[e.getColorSchemeSelector("dark")]:{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}},variants:[{props:{size:"small"},style:{padding:"8.5px 14px"}},{props:({ownerState:t})=>t.multiline,style:{padding:0}},{props:({ownerState:t})=>t.startAdornment,style:{paddingLeft:0}},{props:({ownerState:t})=>t.endAdornment,style:{paddingRight:0}}]}))),G_=x.forwardRef(function(e,t){const n=Yt({props:e,name:"MuiOutlinedInput"}),{components:r={},fullWidth:a=!1,inputComponent:o="input",label:s,multiline:c=!1,notched:u,slots:d={},slotProps:p={},type:h="text",...g}=n,y=Bhe(n),b=Gl(),E=Mu({props:n,muiFormControl:b,states:["color","disabled","error","focused","hiddenLabel","size","required"]}),_={...n,color:E.color||"primary",disabled:E.disabled,error:E.error,focused:E.focused,formControl:b,fullWidth:a,hiddenLabel:E.hiddenLabel,multiline:c,size:E.size,type:h},A=d.root??r.Root??Uhe,D=d.input??r.Input??Hhe,[w,R]=bn("notchedOutline",{elementType:jhe,className:y.notchedOutline,shouldForwardComponentProp:!0,ownerState:_,externalForwardedProps:{slots:d,slotProps:p},additionalProps:{label:s!=null&&s!==""&&E.required?P.jsxs(x.Fragment,{children:[s," ","*"]}):s}});return P.jsx(V_,{slots:{root:A,input:D},slotProps:p,renderSuffix:O=>P.jsx(w,{...R,notched:typeof u<"u"?u:!!(O.startAdornment||O.filled||O.focused)}),fullWidth:a,inputComponent:o,multiline:c,ref:t,type:h,...g,classes:{...y,notchedOutline:null}})});G_.muiName="Input";function zhe(e){return Ht("MuiFilledInput",e)}const al={...vu,...Nt("MuiFilledInput",["root","underline","input","adornedStart","adornedEnd","sizeSmall","multiline","hiddenLabel"])},Vhe=e=>{const{classes:t,disableUnderline:n,startAdornment:r,endAdornment:a,size:o,hiddenLabel:s,multiline:c}=e,u={root:["root",!n&&"underline",r&&"adornedStart",a&&"adornedEnd",o==="small"&&`size${rt(o)}`,s&&"hiddenLabel",c&&"multiline"],input:["input"]},d=zt(u,zhe,t);return{...t,...d}},Ghe=ze(h0,{shouldForwardProp:e=>ea(e)||e==="classes",name:"MuiFilledInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[...f0(e,t),!n.disableUnderline&&t.underline]}})(fn(({theme:e})=>{const t=e.palette.mode==="light",n=t?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)",r=t?"rgba(0, 0, 0, 0.06)":"rgba(255, 255, 255, 0.09)",a=t?"rgba(0, 0, 0, 0.09)":"rgba(255, 255, 255, 0.13)",o=t?"rgba(0, 0, 0, 0.12)":"rgba(255, 255, 255, 0.12)";return{position:"relative",backgroundColor:e.vars?e.vars.palette.FilledInput.bg:r,borderTopLeftRadius:(e.vars||e).shape.borderRadius,borderTopRightRadius:(e.vars||e).shape.borderRadius,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),"&:hover":{backgroundColor:e.vars?e.vars.palette.FilledInput.hoverBg:a,"@media (hover: none)":{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:r}},[`&.${al.focused}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:r},[`&.${al.disabled}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.disabledBg:o},variants:[{props:({ownerState:s})=>!s.disableUnderline,style:{"&::after":{left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${al.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${al.error}`]:{"&::before, &::after":{borderBottomColor:(e.vars||e).palette.error.main}},"&::before":{borderBottom:`1px solid ${e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / ${e.vars.opacity.inputUnderline})`:n}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:e.transitions.create("border-bottom-color",{duration:e.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${al.disabled}, .${al.error}):before`]:{borderBottom:`1px solid ${(e.vars||e).palette.text.primary}`},[`&.${al.disabled}:before`]:{borderBottomStyle:"dotted"}}},...Object.entries(e.palette).filter(_o()).map(([s])=>({props:{disableUnderline:!1,color:s},style:{"&::after":{borderBottom:`2px solid ${(e.vars||e).palette[s]?.main}`}}})),{props:({ownerState:s})=>s.startAdornment,style:{paddingLeft:12}},{props:({ownerState:s})=>s.endAdornment,style:{paddingRight:12}},{props:({ownerState:s})=>s.multiline,style:{padding:"25px 12px 8px"}},{props:({ownerState:s,size:c})=>s.multiline&&c==="small",style:{paddingTop:21,paddingBottom:4}},{props:({ownerState:s})=>s.multiline&&s.hiddenLabel,style:{paddingTop:16,paddingBottom:17}},{props:({ownerState:s})=>s.multiline&&s.hiddenLabel&&s.size==="small",style:{paddingTop:8,paddingBottom:9}}]}})),qhe=ze(m0,{name:"MuiFilledInput",slot:"Input",overridesResolver:p0})(fn(({theme:e})=>({paddingTop:25,paddingRight:12,paddingBottom:8,paddingLeft:12,...!e.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:e.palette.mode==="light"?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:e.palette.mode==="light"?null:"#fff",caretColor:e.palette.mode==="light"?null:"#fff",borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"}},...e.vars&&{"&:-webkit-autofill":{borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"},[e.getColorSchemeSelector("dark")]:{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}},variants:[{props:{size:"small"},style:{paddingTop:21,paddingBottom:4}},{props:({ownerState:t})=>t.hiddenLabel,style:{paddingTop:16,paddingBottom:17}},{props:({ownerState:t})=>t.startAdornment,style:{paddingLeft:0}},{props:({ownerState:t})=>t.endAdornment,style:{paddingRight:0}},{props:({ownerState:t})=>t.hiddenLabel&&t.size==="small",style:{paddingTop:8,paddingBottom:9}},{props:({ownerState:t})=>t.multiline,style:{paddingTop:0,paddingBottom:0,paddingLeft:0,paddingRight:0}}]}))),q_=x.forwardRef(function(e,t){const n=Yt({props:e,name:"MuiFilledInput"}),{disableUnderline:r=!1,components:a={},componentsProps:o,fullWidth:s=!1,hiddenLabel:c,inputComponent:u="input",multiline:d=!1,slotProps:p,slots:h={},type:g="text",...y}=n,b={...n,disableUnderline:r,fullWidth:s,inputComponent:u,multiline:d,type:g},E=Vhe(n),_={root:{ownerState:b},input:{ownerState:b}},A=p??o?$r(_,p??o):_,D=h.root??a.Root??Ghe,w=h.input??a.Input??qhe;return P.jsx(V_,{slots:{root:D,input:w},slotProps:A,fullWidth:s,inputComponent:u,multiline:d,ref:t,type:g,...y,classes:E})});q_.muiName="Input";function Whe(e){return Ht("MuiInput",e)}const ef={...vu,...Nt("MuiInput",["root","underline","input"])},Yhe=e=>{const{classes:t,disableUnderline:n}=e,r=zt({root:["root",!n&&"underline"],input:["input"]},Whe,t);return{...t,...r}},Qhe=ze(h0,{shouldForwardProp:e=>ea(e)||e==="classes",name:"MuiInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[...f0(e,t),!n.disableUnderline&&t.underline]}})(fn(({theme:e})=>{let t=e.palette.mode==="light"?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)";return e.vars&&(t=`rgba(${e.vars.palette.common.onBackgroundChannel} / ${e.vars.opacity.inputUnderline})`),{position:"relative",variants:[{props:({ownerState:n})=>n.formControl,style:{"label + &":{marginTop:16}}},{props:({ownerState:n})=>!n.disableUnderline,style:{"&::after":{left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${ef.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${ef.error}`]:{"&::before, &::after":{borderBottomColor:(e.vars||e).palette.error.main}},"&::before":{borderBottom:`1px solid ${t}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:e.transitions.create("border-bottom-color",{duration:e.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${ef.disabled}, .${ef.error}):before`]:{borderBottom:`2px solid ${(e.vars||e).palette.text.primary}`,"@media (hover: none)":{borderBottom:`1px solid ${t}`}},[`&.${ef.disabled}:before`]:{borderBottomStyle:"dotted"}}},...Object.entries(e.palette).filter(_o()).map(([n])=>({props:{color:n,disableUnderline:!1},style:{"&::after":{borderBottom:`2px solid ${(e.vars||e).palette[n].main}`}}}))]}})),Khe=ze(m0,{name:"MuiInput",slot:"Input",overridesResolver:p0})({}),W_=x.forwardRef(function(e,t){const n=Yt({props:e,name:"MuiInput"}),{disableUnderline:r=!1,components:a={},componentsProps:o,fullWidth:s=!1,inputComponent:c="input",multiline:u=!1,slotProps:d,slots:p={},type:h="text",...g}=n,y=Yhe(n),b={root:{ownerState:{disableUnderline:r}}},E=d??o?$r(d??o,b):b,_=p.root??a.Root??Qhe,A=p.input??a.Input??Khe;return P.jsx(V_,{slots:{root:_,input:A},slotProps:E,fullWidth:s,inputComponent:c,multiline:u,ref:t,type:h,...g,classes:y})});W_.muiName="Input";function Xhe(e){return Ht("MuiInputLabel",e)}Nt("MuiInputLabel",["root","focused","disabled","error","required","asterisk","formControl","sizeSmall","shrink","animated","standard","filled","outlined"]);function Zhe(e){return Ht("MuiFormLabel",e)}const Pf=Nt("MuiFormLabel",["root","colorSecondary","focused","disabled","error","filled","required","asterisk"]),Jhe=e=>{const{classes:t,color:n,focused:r,disabled:a,error:o,filled:s,required:c}=e,u={root:["root",`color${rt(n)}`,a&&"disabled",o&&"error",s&&"filled",r&&"focused",c&&"required"],asterisk:["asterisk",o&&"error"]};return zt(u,Zhe,t)},eme=ze("label",{name:"MuiFormLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.color==="secondary"&&t.colorSecondary,n.filled&&t.filled]}})(fn(({theme:e})=>({color:(e.vars||e).palette.text.secondary,...e.typography.body1,lineHeight:"1.4375em",padding:0,position:"relative",variants:[...Object.entries(e.palette).filter(_o()).map(([t])=>({props:{color:t},style:{[`&.${Pf.focused}`]:{color:(e.vars||e).palette[t].main}}})),{props:{},style:{[`&.${Pf.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${Pf.error}`]:{color:(e.vars||e).palette.error.main}}}]}))),tme=ze("span",{name:"MuiFormLabel",slot:"Asterisk"})(fn(({theme:e})=>({[`&.${Pf.error}`]:{color:(e.vars||e).palette.error.main}}))),nme=x.forwardRef(function(e,t){const n=Yt({props:e,name:"MuiFormLabel"}),{children:r,className:a,color:o,component:s="label",disabled:c,error:u,filled:d,focused:p,required:h,...g}=n,y=Gl(),b=Mu({props:n,muiFormControl:y,states:["color","required","focused","disabled","error","filled"]}),E={...n,color:b.color||"primary",component:s,disabled:b.disabled,error:b.error,filled:b.filled,focused:b.focused,required:b.required},_=Jhe(E);return P.jsxs(eme,{as:s,ownerState:E,className:mt(_.root,a),ref:t,...g,children:[r,b.required&&P.jsxs(tme,{ownerState:E,"aria-hidden":!0,className:_.asterisk,children:[" ","*"]})]})}),rme=e=>{const{classes:t,formControl:n,size:r,shrink:a,disableAnimation:o,variant:s,required:c}=e,u={root:["root",n&&"formControl",!o&&"animated",a&&"shrink",r&&r!=="medium"&&`size${rt(r)}`,s],asterisk:[c&&"asterisk"]},d=zt(u,Xhe,t);return{...t,...d}},ame=ze(nme,{shouldForwardProp:e=>ea(e)||e==="classes",name:"MuiInputLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${Pf.asterisk}`]:t.asterisk},t.root,n.formControl&&t.formControl,n.size==="small"&&t.sizeSmall,n.shrink&&t.shrink,!n.disableAnimation&&t.animated,n.focused&&t.focused,t[n.variant]]}})(fn(({theme:e})=>({display:"block",transformOrigin:"top left",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",maxWidth:"100%",variants:[{props:({ownerState:t})=>t.formControl,style:{position:"absolute",left:0,top:0,transform:"translate(0, 20px) scale(1)"}},{props:{size:"small"},style:{transform:"translate(0, 17px) scale(1)"}},{props:({ownerState:t})=>t.shrink,style:{transform:"translate(0, -1.5px) scale(0.75)",transformOrigin:"top left",maxWidth:"133%"}},{props:({ownerState:t})=>!t.disableAnimation,style:{transition:e.transitions.create(["color","transform","max-width"],{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut})}},{props:{variant:"filled"},style:{zIndex:1,pointerEvents:"none",transform:"translate(12px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"}},{props:{variant:"filled",size:"small"},style:{transform:"translate(12px, 13px) scale(1)"}},{props:({variant:t,ownerState:n})=>t==="filled"&&n.shrink,style:{userSelect:"none",pointerEvents:"auto",transform:"translate(12px, 7px) scale(0.75)",maxWidth:"calc(133% - 24px)"}},{props:({variant:t,ownerState:n,size:r})=>t==="filled"&&n.shrink&&r==="small",style:{transform:"translate(12px, 4px) scale(0.75)"}},{props:{variant:"outlined"},style:{zIndex:1,pointerEvents:"none",transform:"translate(14px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"}},{props:{variant:"outlined",size:"small"},style:{transform:"translate(14px, 9px) scale(1)"}},{props:({variant:t,ownerState:n})=>t==="outlined"&&n.shrink,style:{userSelect:"none",pointerEvents:"auto",maxWidth:"calc(133% - 32px)",transform:"translate(14px, -9px) scale(0.75)"}}]}))),ome=x.forwardRef(function(e,t){const n=Yt({name:"MuiInputLabel",props:e}),{disableAnimation:r=!1,margin:a,shrink:o,variant:s,className:c,...u}=n,d=Gl();let p=o;typeof p>"u"&&d&&(p=d.filled||d.focused||d.adornedStart);const h=Mu({props:n,muiFormControl:d,states:["size","variant","required","focused"]}),g={...n,disableAnimation:r,formControl:d,shrink:p,size:h.size,variant:h.variant,required:h.required,focused:h.focused},y=rme(g);return P.jsx(ame,{"data-shrink":p,ref:t,className:mt(y.root,c),...u,ownerState:g,classes:y})});function ime(e){return Ht("MuiFormHelperText",e)}const OO=Nt("MuiFormHelperText",["root","error","disabled","sizeSmall","sizeMedium","contained","focused","filled","required"]);var IO;const sme=e=>{const{classes:t,contained:n,size:r,disabled:a,error:o,filled:s,focused:c,required:u}=e,d={root:["root",a&&"disabled",o&&"error",r&&`size${rt(r)}`,n&&"contained",c&&"focused",s&&"filled",u&&"required"]};return zt(d,ime,t)},lme=ze("p",{name:"MuiFormHelperText",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.size&&t[`size${rt(n.size)}`],n.contained&&t.contained,n.filled&&t.filled]}})(fn(({theme:e})=>({color:(e.vars||e).palette.text.secondary,...e.typography.caption,textAlign:"left",marginTop:3,marginRight:0,marginBottom:0,marginLeft:0,[`&.${OO.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${OO.error}`]:{color:(e.vars||e).palette.error.main},variants:[{props:{size:"small"},style:{marginTop:4}},{props:({ownerState:t})=>t.contained,style:{marginLeft:14,marginRight:14}}]}))),cme=x.forwardRef(function(e,t){const n=Yt({props:e,name:"MuiFormHelperText"}),{children:r,className:a,component:o="p",disabled:s,error:c,filled:u,focused:d,margin:p,required:h,variant:g,...y}=n,b=Gl(),E=Mu({props:n,muiFormControl:b,states:["variant","size","disabled","error","filled","focused","required"]}),_={...n,component:o,contained:E.variant==="filled"||E.variant==="outlined",variant:E.variant,size:E.size,disabled:E.disabled,error:E.error,filled:E.filled,focused:E.focused,required:E.required};delete _.ownerState;const A=sme(_);return P.jsx(lme,{as:o,className:mt(A.root,a),ref:t,...y,ownerState:_,children:r===" "?IO||(IO=P.jsx("span",{className:"notranslate","aria-hidden":!0,children:"​"})):r})});function ume(e){return Ht("MuiMenu",e)}Nt("MuiMenu",["root","paper","list"]);function dme(e){return Ht("MuiPopover",e)}Nt("MuiPopover",["root","paper"]);function wT(e){return`scale(${e}, ${e**2})`}const fme={entering:{opacity:1,transform:wT(1)},entered:{opacity:1,transform:"none"}},Hb=typeof navigator<"u"&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),Zg=x.forwardRef(function(e,t){const{addEndListener:n,appear:r=!0,children:a,easing:o,in:s,onEnter:c,onEntered:u,onEntering:d,onExit:p,onExited:h,onExiting:g,style:y,timeout:b="auto",TransitionComponent:E=wo,..._}=e,A=s0(),D=x.useRef(),w=Lu(),R=x.useRef(null),O=Kn(R,Pu(a),t),k=B=>Y=>{if(B){const X=R.current;Y===void 0?B(X):B(X,Y)}},F=k(d),G=k((B,Y)=>{bP(B);const{duration:X,delay:z,easing:Z}=yu({style:y,timeout:b,easing:o},{mode:"enter"});let J;b==="auto"?(J=w.transitions.getAutoHeightDuration(B.clientHeight),D.current=J):J=X,B.style.transition=[w.transitions.create("opacity",{duration:J,delay:z}),w.transitions.create("transform",{duration:Hb?J:J*.666,delay:z,easing:Z})].join(","),c&&c(B,Y)}),j=k(u),T=k(g),M=k(B=>{const{duration:Y,delay:X,easing:z}=yu({style:y,timeout:b,easing:o},{mode:"exit"});let Z;b==="auto"?(Z=w.transitions.getAutoHeightDuration(B.clientHeight),D.current=Z):Z=Y,B.style.transition=[w.transitions.create("opacity",{duration:Z,delay:X}),w.transitions.create("transform",{duration:Hb?Z:Z*.666,delay:Hb?X:X||Z*.333,easing:z})].join(","),B.style.opacity=0,B.style.transform=wT(.75),p&&p(B)}),U=k(h);return P.jsx(E,{appear:r,in:s,nodeRef:R,onEnter:G,onEntered:j,onEntering:F,onExit:M,onExited:U,onExiting:T,addEndListener:B=>{b==="auto"&&A.start(D.current||0,B),n&&n(R.current,B)},timeout:b==="auto"?null:b,..._,children:(B,{ownerState:Y,...X})=>x.cloneElement(a,{style:{opacity:0,transform:wT(.75),visibility:B==="exited"&&!s?"hidden":void 0,...fme[B],...y,...a.props.style},ref:O,...X})})});Zg&&(Zg.muiSupportAuto=!0);function NO(e,t){let n=0;return typeof t=="number"?n=t:t==="center"?n=e.height/2:t==="bottom"&&(n=e.height),n}function LO(e,t){let n=0;return typeof t=="number"?n=t:t==="center"?n=e.width/2:t==="right"&&(n=e.width),n}function PO(e){return[e.horizontal,e.vertical].map(t=>typeof t=="number"?`${t}px`:t).join(" ")}function Nm(e){return typeof e=="function"?e():e}const pme=e=>{const{classes:t}=e;return zt({root:["root"],paper:["paper"]},dme,t)},hme=ze(qP,{name:"MuiPopover",slot:"Root"})({}),QP=ze(d0,{name:"MuiPopover",slot:"Paper"})({position:"absolute",overflowY:"auto",overflowX:"hidden",minWidth:16,minHeight:16,maxWidth:"calc(100% - 32px)",maxHeight:"calc(100% - 32px)",outline:0}),mme=x.forwardRef(function(e,t){const n=Yt({props:e,name:"MuiPopover"}),{action:r,anchorEl:a,anchorOrigin:o={vertical:"top",horizontal:"left"},anchorPosition:s,anchorReference:c="anchorEl",children:u,className:d,container:p,elevation:h=8,marginThreshold:g=16,open:y,PaperProps:b={},slots:E={},slotProps:_={},transformOrigin:A={vertical:"top",horizontal:"left"},TransitionComponent:D,transitionDuration:w="auto",TransitionProps:R={},disableScrollLock:O=!1,...k}=n,F=x.useRef(),G={...n,anchorOrigin:o,anchorReference:c,elevation:h,marginThreshold:g,transformOrigin:A,TransitionComponent:D,transitionDuration:w,TransitionProps:R},j=pme(G),T=x.useCallback(()=>{if(c==="anchorPosition")return s;const Oe=Nm(a),Ue=(Oe&&Oe.nodeType===1?Oe:Kr(F.current).body).getBoundingClientRect();return{top:Ue.top+NO(Ue,o.vertical),left:Ue.left+LO(Ue,o.horizontal)}},[a,o.horizontal,o.vertical,s,c]),M=x.useCallback(Oe=>({vertical:NO(Oe,A.vertical),horizontal:LO(Oe,A.horizontal)}),[A.horizontal,A.vertical]),U=x.useCallback(Oe=>{const Ue={width:Oe.offsetWidth,height:Oe.offsetHeight},Ie=M(Ue);if(c==="none")return{top:null,left:null,transformOrigin:PO(Ie)};const Ye=T();let Ve=Ye.top-Ie.vertical,ke=Ye.left-Ie.horizontal;const Rt=Ve+Ue.height,Et=ke+Ue.width,je=$i(Nm(a)),St=je.innerHeight-g,ot=je.innerWidth-g;if(g!==null&&Ve<g){const Ze=Ve-g;Ve-=Ze,Ie.vertical+=Ze}else if(g!==null&&Rt>St){const Ze=Rt-St;Ve-=Ze,Ie.vertical+=Ze}if(g!==null&&ke<g){const Ze=ke-g;ke-=Ze,Ie.horizontal+=Ze}else if(Et>ot){const Ze=Et-ot;ke-=Ze,Ie.horizontal+=Ze}return{top:`${Math.round(Ve)}px`,left:`${Math.round(ke)}px`,transformOrigin:PO(Ie)}},[a,c,T,M,g]),[B,Y]=x.useState(y),X=x.useCallback(()=>{const Oe=F.current;if(!Oe)return;const Ue=U(Oe);Ue.top!==null&&Oe.style.setProperty("top",Ue.top),Ue.left!==null&&(Oe.style.left=Ue.left),Oe.style.transformOrigin=Ue.transformOrigin,Y(!0)},[U]);x.useEffect(()=>(O&&window.addEventListener("scroll",X),()=>window.removeEventListener("scroll",X)),[a,O,X]);const z=()=>{X()},Z=()=>{Y(!1)};x.useEffect(()=>{y&&X()}),x.useImperativeHandle(r,()=>y?{updatePosition:()=>{X()}}:null,[y,X]),x.useEffect(()=>{if(!y)return;const Oe=YP(()=>{X()}),Ue=$i(Nm(a));return Ue.addEventListener("resize",Oe),()=>{Oe.clear(),Ue.removeEventListener("resize",Oe)}},[a,y,X]);let J=w;const oe={slots:{transition:D,...E},slotProps:{transition:R,paper:b,..._}},[I,re]=bn("transition",{elementType:Zg,externalForwardedProps:oe,ownerState:G,getSlotProps:Oe=>({...Oe,onEntering:(Ue,Ie)=>{Oe.onEntering?.(Ue,Ie),z()},onExited:Ue=>{Oe.onExited?.(Ue),Z()}}),additionalProps:{appear:!0,in:y}});w==="auto"&&!I.muiSupportAuto&&(J=void 0);const ee=p||(a?Kr(Nm(a)).body:void 0),[L,{slots:te,slotProps:be,...de}]=bn("root",{ref:t,elementType:hme,externalForwardedProps:{...oe,...k},shouldForwardComponentProp:!0,additionalProps:{slots:{backdrop:E.backdrop},slotProps:{backdrop:AP(typeof _.backdrop=="function"?_.backdrop(G):_.backdrop,{invisible:!0})},container:ee,open:y},ownerState:G,className:mt(j.root,d)}),[xe,ge]=bn("paper",{ref:F,className:j.paper,elementType:QP,externalForwardedProps:oe,shouldForwardComponentProp:!0,additionalProps:{elevation:h,style:B?void 0:{opacity:0}},ownerState:G});return P.jsx(L,{...de,...!xT(L)&&{slots:te,slotProps:be,disableScrollLock:O},children:P.jsx(I,{...re,timeout:J,children:P.jsx(xe,{...ge,children:u})})})}),DT=x.createContext({});function gme(e){return Ht("MuiList",e)}Nt("MuiList",["root","padding","dense","subheader"]);const yme=e=>{const{classes:t,disablePadding:n,dense:r,subheader:a}=e;return zt({root:["root",!n&&"padding",r&&"dense",a&&"subheader"]},gme,t)},vme=ze("ul",{name:"MuiList",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disablePadding&&t.padding,n.dense&&t.dense,n.subheader&&t.subheader]}})({listStyle:"none",margin:0,padding:0,position:"relative",variants:[{props:({ownerState:e})=>!e.disablePadding,style:{paddingTop:8,paddingBottom:8}},{props:({ownerState:e})=>e.subheader,style:{paddingTop:0}}]}),bme=x.forwardRef(function(e,t){const n=Yt({props:e,name:"MuiList"}),{children:r,className:a,component:o="ul",dense:s=!1,disablePadding:c=!1,subheader:u,...d}=n,p=x.useMemo(()=>({dense:s}),[s]),h={...n,component:o,dense:s,disablePadding:c},g=yme(h);return P.jsx(DT.Provider,{value:p,children:P.jsxs(vme,{as:o,className:mt(g.root,a),ref:t,ownerState:h,...d,children:[u,r]})})});function zb(e,t,n){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:n?null:e.firstChild}function MO(e,t,n){return e===t?n?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:n?null:e.lastChild}function KP(e,t){if(t===void 0)return!0;let n=e.innerText;return n===void 0&&(n=e.textContent),n=n.trim().toLowerCase(),n.length===0?!1:t.repeating?n[0]===t.keys[0]:n.startsWith(t.keys.join(""))}function tf(e,t,n,r,a,o){let s=!1,c=a(e,t,t?n:!1);for(;c;){if(c===e.firstChild){if(s)return!1;s=!0}const u=r?!1:c.disabled||c.getAttribute("aria-disabled")==="true";if(!c.hasAttribute("tabindex")||!KP(c,o)||u)c=a(e,c,n);else return c.focus(),!0}return!1}const Eme=x.forwardRef(function(e,t){const{actions:n,autoFocus:r=!1,autoFocusItem:a=!1,children:o,className:s,disabledItemsFocusable:c=!1,disableListWrap:u=!1,onKeyDown:d,variant:p="selectedMenu",...h}=e,g=x.useRef(null),y=x.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});Ls(()=>{r&&g.current.focus()},[r]),x.useImperativeHandle(n,()=>({adjustStyleForScrollbar:(D,{direction:w})=>{const R=!g.current.style.width;if(D.clientHeight<g.current.clientHeight&&R){const O=`${VP($i(D))}px`;g.current.style[w==="rtl"?"paddingLeft":"paddingRight"]=O,g.current.style.width=`calc(100% + ${O})`}return g.current}}),[]);const b=D=>{const w=g.current,R=D.key;if(D.ctrlKey||D.metaKey||D.altKey){d&&d(D);return}const O=Kr(w).activeElement;if(R==="ArrowDown")D.preventDefault(),tf(w,O,u,c,zb);else if(R==="ArrowUp")D.preventDefault(),tf(w,O,u,c,MO);else if(R==="Home")D.preventDefault(),tf(w,null,u,c,zb);else if(R==="End")D.preventDefault(),tf(w,null,u,c,MO);else if(R.length===1){const k=y.current,F=R.toLowerCase(),G=performance.now();k.keys.length>0&&(G-k.lastTime>500?(k.keys=[],k.repeating=!0,k.previousKeyMatched=!0):k.repeating&&F!==k.keys[0]&&(k.repeating=!1)),k.lastTime=G,k.keys.push(F);const j=O&&!k.repeating&&KP(O,k);k.previousKeyMatched&&(j||tf(w,O,!1,c,zb,k))?D.preventDefault():k.previousKeyMatched=!1}d&&d(D)},E=Kn(g,t);let _=-1;x.Children.forEach(o,(D,w)=>{if(!x.isValidElement(D)){_===w&&(_+=1,_>=o.length&&(_=-1));return}D.props.disabled||(p==="selectedMenu"&&D.props.selected||_===-1)&&(_=w),_===w&&(D.props.disabled||D.props.muiSkipListHighlight||D.type.muiSkipListHighlight)&&(_+=1,_>=o.length&&(_=-1))});const A=x.Children.map(o,(D,w)=>{if(w===_){const R={};return a&&(R.autoFocus=!0),D.props.tabIndex===void 0&&p==="selectedMenu"&&(R.tabIndex=0),x.cloneElement(D,R)}return D});return P.jsx(bme,{role:"menu",ref:E,className:s,onKeyDown:b,tabIndex:r?0:-1,...h,children:A})}),Tme={vertical:"top",horizontal:"right"},Sme={vertical:"top",horizontal:"left"},_me=e=>{const{classes:t}=e;return zt({root:["root"],paper:["paper"],list:["list"]},ume,t)},Cme=ze(mme,{shouldForwardProp:e=>ea(e)||e==="classes",name:"MuiMenu",slot:"Root"})({}),Ame=ze(QP,{name:"MuiMenu",slot:"Paper"})({maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"}),xme=ze(Eme,{name:"MuiMenu",slot:"List"})({outline:0}),wme=x.forwardRef(function(e,t){const n=Yt({props:e,name:"MuiMenu"}),{autoFocus:r=!0,children:a,className:o,disableAutoFocusItem:s=!1,MenuListProps:c={},onClose:u,open:d,PaperProps:p={},PopoverClasses:h,transitionDuration:g="auto",TransitionProps:{onEntering:y,...b}={},variant:E="selectedMenu",slots:_={},slotProps:A={},...D}=n,w=IP(),R={...n,autoFocus:r,disableAutoFocusItem:s,MenuListProps:c,onEntering:y,PaperProps:p,transitionDuration:g,TransitionProps:b,variant:E},O=_me(R),k=r&&!s&&d,F=x.useRef(null),G=(J,oe)=>{F.current&&F.current.adjustStyleForScrollbar(J,{direction:w?"rtl":"ltr"}),y&&y(J,oe)},j=J=>{J.key==="Tab"&&(J.preventDefault(),u&&u(J,"tabKeyDown"))};let T=-1;x.Children.map(a,(J,oe)=>{x.isValidElement(J)&&(J.props.disabled||(E==="selectedMenu"&&J.props.selected||T===-1)&&(T=oe))});const M={slots:_,slotProps:{list:c,transition:b,paper:p,...A}},U=As({elementType:_.root,externalSlotProps:A.root,ownerState:R,className:[O.root,o]}),[B,Y]=bn("paper",{className:O.paper,elementType:Ame,externalForwardedProps:M,shouldForwardComponentProp:!0,ownerState:R}),[X,z]=bn("list",{className:mt(O.list,c.className),elementType:xme,shouldForwardComponentProp:!0,externalForwardedProps:M,getSlotProps:J=>({...J,onKeyDown:oe=>{j(oe),J.onKeyDown?.(oe)}}),ownerState:R}),Z=typeof M.slotProps.transition=="function"?M.slotProps.transition(R):M.slotProps.transition;return P.jsx(Cme,{onClose:u,anchorOrigin:{vertical:"bottom",horizontal:w?"right":"left"},transformOrigin:w?Tme:Sme,slots:{root:_.root,paper:B,backdrop:_.backdrop,..._.transition&&{transition:_.transition}},slotProps:{root:U,paper:Y,backdrop:typeof A.backdrop=="function"?A.backdrop(R):A.backdrop,transition:{...Z,onEntering:(...J)=>{G(...J),Z?.onEntering?.(...J)}}},open:d,ref:t,transitionDuration:g,ownerState:R,...D,classes:h,children:P.jsx(X,{actions:F,autoFocus:r&&(T===-1||s),autoFocusItem:k,variant:E,...z,children:a})})});function Dme(e){return Ht("MuiNativeSelect",e)}const Y_=Nt("MuiNativeSelect",["root","select","multiple","filled","outlined","standard","disabled","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]),kme=e=>{const{classes:t,variant:n,disabled:r,multiple:a,open:o,error:s}=e,c={select:["select",n,r&&"disabled",a&&"multiple",s&&"error"],icon:["icon",`icon${rt(n)}`,o&&"iconOpen",r&&"disabled"]};return zt(c,Dme,t)},XP=ze("select",{name:"MuiNativeSelect"})(({theme:e})=>({MozAppearance:"none",WebkitAppearance:"none",userSelect:"none",borderRadius:0,cursor:"pointer","&:focus":{borderRadius:0},[`&.${Y_.disabled}`]:{cursor:"default"},"&[multiple]":{height:"auto"},"&:not([multiple]) option, &:not([multiple]) optgroup":{backgroundColor:(e.vars||e).palette.background.paper},variants:[{props:({ownerState:t})=>t.variant!=="filled"&&t.variant!=="outlined",style:{"&&&":{paddingRight:24,minWidth:16}}},{props:{variant:"filled"},style:{"&&&":{paddingRight:32}}},{props:{variant:"outlined"},style:{borderRadius:(e.vars||e).shape.borderRadius,"&:focus":{borderRadius:(e.vars||e).shape.borderRadius},"&&&":{paddingRight:32}}}]})),Rme=ze(XP,{name:"MuiNativeSelect",slot:"Select",shouldForwardProp:ea,overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.select,t[n.variant],n.error&&t.error,{[`&.${Y_.multiple}`]:t.multiple}]}})({}),ZP=ze("svg",{name:"MuiNativeSelect"})(({theme:e})=>({position:"absolute",right:0,top:"calc(50% - .5em)",pointerEvents:"none",color:(e.vars||e).palette.action.active,[`&.${Y_.disabled}`]:{color:(e.vars||e).palette.action.disabled},variants:[{props:({ownerState:t})=>t.open,style:{transform:"rotate(180deg)"}},{props:{variant:"filled"},style:{right:7}},{props:{variant:"outlined"},style:{right:7}}]})),Ome=ze(ZP,{name:"MuiNativeSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.icon,n.variant&&t[`icon${rt(n.variant)}`],n.open&&t.iconOpen]}})({}),Ime=x.forwardRef(function(e,t){const{className:n,disabled:r,error:a,IconComponent:o,inputRef:s,variant:c="standard",...u}=e,d={...e,disabled:r,variant:c,error:a},p=kme(d);return P.jsxs(x.Fragment,{children:[P.jsx(Rme,{ownerState:d,className:mt(p.select,n),disabled:r,ref:s||t,...u}),e.multiple?null:P.jsx(Ome,{as:o,ownerState:d,className:p.icon})]})});function JP(e){return Ht("MuiSelect",e)}const nf=Nt("MuiSelect",["root","select","multiple","filled","outlined","standard","disabled","focused","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]);var $O;const Nme=ze(XP,{name:"MuiSelect",slot:"Select",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`&.${nf.select}`]:t.select},{[`&.${nf.select}`]:t[n.variant]},{[`&.${nf.error}`]:t.error},{[`&.${nf.multiple}`]:t.multiple}]}})({[`&.${nf.select}`]:{height:"auto",minHeight:"1.4375em",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"}}),Lme=ze(ZP,{name:"MuiSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.icon,n.variant&&t[`icon${rt(n.variant)}`],n.open&&t.iconOpen]}})({}),Pme=ze("input",{shouldForwardProp:e=>$3(e)&&e!=="classes",name:"MuiSelect",slot:"NativeInput"})({bottom:0,left:0,position:"absolute",opacity:0,pointerEvents:"none",width:"100%",boxSizing:"border-box"});function FO(e,t){return typeof t=="object"&&t!==null?e===t:String(e)===String(t)}function Mme(e){return e==null||typeof e=="string"&&!e.trim()}const $me=e=>{const{classes:t,variant:n,disabled:r,multiple:a,open:o,error:s}=e,c={select:["select",n,r&&"disabled",a&&"multiple",s&&"error"],icon:["icon",`icon${rt(n)}`,o&&"iconOpen",r&&"disabled"],nativeInput:["nativeInput"]};return zt(c,JP,t)},Fme=x.forwardRef(function(e,t){const{"aria-describedby":n,"aria-label":r,autoFocus:a,autoWidth:o,children:s,className:c,defaultOpen:u,defaultValue:d,disabled:p,displayEmpty:h,error:g=!1,IconComponent:y,inputRef:b,labelId:E,MenuProps:_={},multiple:A,name:D,onBlur:w,onChange:R,onClose:O,onFocus:k,onOpen:F,open:G,readOnly:j,renderValue:T,required:M,SelectDisplayProps:U={},tabIndex:B,type:Y,value:X,variant:z="standard",...Z}=e,[J,oe]=ET({controlled:X,default:d,name:"Select"}),[I,re]=ET({controlled:G,default:u,name:"Select"}),ee=x.useRef(null),L=x.useRef(null),[te,be]=x.useState(null),{current:de}=x.useRef(G!=null),[xe,ge]=x.useState(),Oe=Kn(t,b),Ue=x.useCallback(qe=>{L.current=qe,qe&&be(qe)},[]),Ie=te?.parentNode;x.useImperativeHandle(Oe,()=>({focus:()=>{L.current.focus()},node:ee.current,value:J}),[J]),x.useEffect(()=>{u&&I&&te&&!de&&(ge(o?null:Ie.clientWidth),L.current.focus())},[te,o]),x.useEffect(()=>{a&&L.current.focus()},[a]),x.useEffect(()=>{if(!E)return;const qe=Kr(L.current).getElementById(E);if(qe){const Ee=()=>{getSelection().isCollapsed&&L.current.focus()};return qe.addEventListener("click",Ee),()=>{qe.removeEventListener("click",Ee)}}},[E]);const Ye=(qe,Ee)=>{qe?F&&F(Ee):O&&O(Ee),de||(ge(o?null:Ie.clientWidth),re(qe))},Ve=qe=>{qe.button===0&&(qe.preventDefault(),L.current.focus(),Ye(!0,qe))},ke=qe=>{Ye(!1,qe)},Rt=x.Children.toArray(s),Et=qe=>{const Ee=Rt.find(Te=>Te.props.value===qe.target.value);Ee!==void 0&&(oe(Ee.props.value),R&&R(qe,Ee))},je=qe=>Ee=>{let Te;if(Ee.currentTarget.hasAttribute("tabindex")){if(A){Te=Array.isArray(J)?J.slice():[];const ut=J.indexOf(qe.props.value);ut===-1?Te.push(qe.props.value):Te.splice(ut,1)}else Te=qe.props.value;if(qe.props.onClick&&qe.props.onClick(Ee),J!==Te&&(oe(Te),R)){const ut=Ee.nativeEvent||Ee,nt=new ut.constructor(ut.type,ut);Object.defineProperty(nt,"target",{writable:!0,value:{value:Te,name:D}}),R(nt,qe)}A||Ye(!1,Ee)}},St=qe=>{j||[" ","ArrowUp","ArrowDown","Enter"].includes(qe.key)&&(qe.preventDefault(),Ye(!0,qe))},ot=te!==null&&I,Ze=qe=>{!ot&&w&&(Object.defineProperty(qe,"target",{writable:!0,value:{value:J,name:D}}),w(qe))};delete Z["aria-invalid"];let Ge,Pe;const Ot=[];let Dn=!1;(Xg({value:J})||h)&&(T?Ge=T(J):Dn=!0);const bt=Rt.map(qe=>{if(!x.isValidElement(qe))return null;let Ee;if(A){if(!Array.isArray(J))throw new Error(Pi(2));Ee=J.some(Te=>FO(Te,qe.props.value)),Ee&&Dn&&Ot.push(qe.props.children)}else Ee=FO(J,qe.props.value),Ee&&Dn&&(Pe=qe.props.children);return x.cloneElement(qe,{"aria-selected":Ee?"true":"false",onClick:je(qe),onKeyUp:Te=>{Te.key===" "&&Te.preventDefault(),qe.props.onKeyUp&&qe.props.onKeyUp(Te)},role:"option",selected:Ee,value:void 0,"data-value":qe.props.value})});Dn&&(A?Ot.length===0?Ge=null:Ge=Ot.reduce((qe,Ee,Te)=>(qe.push(Ee),Te<Ot.length-1&&qe.push(", "),qe),[]):Ge=Pe);let ce=xe;!o&&de&&te&&(ce=Ie.clientWidth);let me;typeof B<"u"?me=B:me=p?null:0;const Be=U.id||(D?`mui-component-select-${D}`:void 0),We={...e,variant:z,value:J,open:ot,error:g},Qe=$me(We),gt={..._.PaperProps,..._.slotProps?.paper},ln={..._.MenuListProps,..._.slotProps?.list},Qt=Yp();return P.jsxs(x.Fragment,{children:[P.jsx(Nme,{as:"div",ref:Ue,tabIndex:me,role:"combobox","aria-controls":ot?Qt:void 0,"aria-disabled":p?"true":void 0,"aria-expanded":ot?"true":"false","aria-haspopup":"listbox","aria-label":r,"aria-labelledby":[E,Be].filter(Boolean).join(" ")||void 0,"aria-describedby":n,"aria-required":M?"true":void 0,"aria-invalid":g?"true":void 0,onKeyDown:St,onMouseDown:p||j?null:Ve,onBlur:Ze,onFocus:k,...U,ownerState:We,className:mt(U.className,Qe.select,c),id:Be,children:Mme(Ge)?$O||($O=P.jsx("span",{className:"notranslate","aria-hidden":!0,children:"​"})):Ge}),P.jsx(Pme,{"aria-invalid":g,value:Array.isArray(J)?J.join(","):J,name:D,ref:ee,"aria-hidden":!0,onChange:Et,tabIndex:-1,disabled:p,className:Qe.nativeInput,autoFocus:a,required:M,...Z,ownerState:We}),P.jsx(Lme,{as:y,className:Qe.icon,ownerState:We}),P.jsx(wme,{id:`menu-${D||""}`,anchorEl:Ie,open:ot,onClose:ke,anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"},..._,slotProps:{..._.slotProps,list:{"aria-labelledby":E,role:"listbox","aria-multiselectable":A?"true":void 0,disableListWrap:!0,id:Qt,...ln},paper:{...gt,style:{minWidth:ce,...gt!=null?gt.style:null}}},children:bt})]})}),Bme=wn(P.jsx("path",{d:"M7 10l5 5 5-5z"})),Ume=e=>{const{classes:t}=e,n=zt({root:["root"]},JP,t);return{...t,...n}},Q_={name:"MuiSelect",slot:"Root",shouldForwardProp:e=>ea(e)&&e!=="variant"},jme=ze(W_,Q_)(""),Hme=ze(G_,Q_)(""),zme=ze(q_,Q_)(""),e6=x.forwardRef(function(e,t){const n=Yt({name:"MuiSelect",props:e}),{autoWidth:r=!1,children:a,classes:o={},className:s,defaultOpen:c=!1,displayEmpty:u=!1,IconComponent:d=Bme,id:p,input:h,inputProps:g,label:y,labelId:b,MenuProps:E,multiple:_=!1,native:A=!1,onClose:D,onOpen:w,open:R,renderValue:O,SelectDisplayProps:k,variant:F="outlined",...G}=n,j=A?Ime:Fme,T=Gl(),M=Mu({props:n,muiFormControl:T,states:["variant","error"]}),U=M.variant||F,B={...n,variant:U,classes:o},Y=Ume(B),{root:X,...z}=Y,Z=h||{standard:P.jsx(jme,{ownerState:B}),outlined:P.jsx(Hme,{label:y,ownerState:B}),filled:P.jsx(zme,{ownerState:B})}[U],J=Kn(t,Pu(Z));return P.jsx(x.Fragment,{children:x.cloneElement(Z,{inputComponent:j,inputProps:{children:a,error:M.error,IconComponent:d,variant:U,type:void 0,multiple:_,...A?{id:p}:{autoWidth:r,defaultOpen:c,displayEmpty:u,labelId:b,MenuProps:E,onClose:D,onOpen:w,open:R,renderValue:O,SelectDisplayProps:{id:p,...k}},...g,classes:g?$r(z,g.classes):z,...h?h.props.inputProps:{}},...(_&&A||u)&&U==="outlined"?{notched:!0}:{},ref:J,className:mt(Z.props.className,s,Y.root),...!h&&{variant:U},...G})})});e6.muiName="Select";function Vme(e){return Ht("MuiFormControl",e)}Nt("MuiFormControl",["root","marginNone","marginNormal","marginDense","fullWidth","disabled"]);function Vb(e,t){return x.isValidElement(e)&&t.indexOf(e.type.muiName??e.type?._payload?.value?.muiName)!==-1}const Gme=e=>{const{classes:t,margin:n,fullWidth:r}=e,a={root:["root",n!=="none"&&`margin${rt(n)}`,r&&"fullWidth"]};return zt(a,Vme,t)},qme=ze("div",{name:"MuiFormControl",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`margin${rt(n.margin)}`],n.fullWidth&&t.fullWidth]}})({display:"inline-flex",flexDirection:"column",position:"relative",minWidth:0,padding:0,margin:0,border:0,verticalAlign:"top",variants:[{props:{margin:"normal"},style:{marginTop:16,marginBottom:8}},{props:{margin:"dense"},style:{marginTop:8,marginBottom:4}},{props:{fullWidth:!0},style:{width:"100%"}}]}),Wme=x.forwardRef(function(e,t){const n=Yt({props:e,name:"MuiFormControl"}),{children:r,className:a,color:o="primary",component:s="div",disabled:c=!1,error:u=!1,focused:d,fullWidth:p=!1,hiddenLabel:h=!1,margin:g="none",required:y=!1,size:b="medium",variant:E="outlined",..._}=n,A={...n,color:o,component:s,disabled:c,error:u,fullWidth:p,hiddenLabel:h,margin:g,required:y,size:b,variant:E},D=Gme(A),[w,R]=x.useState(()=>{let Y=!1;return r&&x.Children.forEach(r,X=>{if(!Vb(X,["Input","Select"]))return;const z=Vb(X,["Select"])?X.props.input:X;z&&Lhe(z.props)&&(Y=!0)}),Y}),[O,k]=x.useState(()=>{let Y=!1;return r&&x.Children.forEach(r,X=>{Vb(X,["Input","Select"])&&(Xg(X.props,!0)||Xg(X.props.inputProps,!0))&&(Y=!0)}),Y}),[F,G]=x.useState(!1);c&&F&&G(!1);const j=d!==void 0&&!c?d:F;let T;x.useRef(!1);const M=x.useCallback(()=>{k(!0)},[]),U=x.useCallback(()=>{k(!1)},[]),B=x.useMemo(()=>({adornedStart:w,setAdornedStart:R,color:o,disabled:c,error:u,filled:O,focused:j,fullWidth:p,hiddenLabel:h,size:b,onBlur:()=>{G(!1)},onFocus:()=>{G(!0)},onEmpty:U,onFilled:M,registerEffect:T,required:y,variant:E}),[w,o,c,u,O,j,p,h,T,U,M,y,b,E]);return P.jsx(F_.Provider,{value:B,children:P.jsx(qme,{as:s,ownerState:A,className:mt(D.root,a),ref:t,..._,children:r})})}),Yme={standard:W_,filled:q_,outlined:G_},Qme=e=>{const{classes:t}=e;return zt({root:["root"]},Dhe,t)},Kme=ze(Wme,{name:"MuiTextField",slot:"Root"})({}),K0e=x.forwardRef(function(e,t){const n=Yt({props:e,name:"MuiTextField"}),{autoComplete:r,autoFocus:a=!1,children:o,className:s,color:c="primary",defaultValue:u,disabled:d=!1,error:p=!1,FormHelperTextProps:h,fullWidth:g=!1,helperText:y,id:b,InputLabelProps:E,inputProps:_,InputProps:A,inputRef:D,label:w,maxRows:R,minRows:O,multiline:k=!1,name:F,onBlur:G,onChange:j,onFocus:T,placeholder:M,required:U=!1,rows:B,select:Y=!1,SelectProps:X,slots:z={},slotProps:Z={},type:J,value:oe,variant:I="outlined",...re}=n,ee={...n,autoFocus:a,color:c,disabled:d,error:p,fullWidth:g,multiline:k,required:U,select:Y,variant:I},L=Qme(ee),te=Yp(b),be=y&&te?`${te}-helper-text`:void 0,de=w&&te?`${te}-label`:void 0,xe=Yme[I],ge={slots:z,slotProps:{input:A,inputLabel:E,htmlInput:_,formHelperText:h,select:X,...Z}},Oe={},Ue=ge.slotProps.inputLabel;I==="outlined"&&(Ue&&typeof Ue.shrink<"u"&&(Oe.notched=Ue.shrink),Oe.label=w),Y&&((!X||!X.native)&&(Oe.id=void 0),Oe["aria-describedby"]=void 0);const[Ie,Ye]=bn("root",{elementType:Kme,shouldForwardComponentProp:!0,externalForwardedProps:{...ge,...re},ownerState:ee,className:mt(L.root,s),ref:t,additionalProps:{disabled:d,error:p,fullWidth:g,required:U,color:c,variant:I}}),[Ve,ke]=bn("input",{elementType:xe,externalForwardedProps:ge,additionalProps:Oe,ownerState:ee}),[Rt,Et]=bn("inputLabel",{elementType:ome,externalForwardedProps:ge,ownerState:ee}),[je,St]=bn("htmlInput",{elementType:"input",externalForwardedProps:ge,ownerState:ee}),[ot,Ze]=bn("formHelperText",{elementType:cme,externalForwardedProps:ge,ownerState:ee}),[Ge,Pe]=bn("select",{elementType:e6,externalForwardedProps:ge,ownerState:ee}),Ot=P.jsx(Ve,{"aria-describedby":be,autoComplete:r,autoFocus:a,defaultValue:u,fullWidth:g,multiline:k,name:F,rows:B,maxRows:R,minRows:O,type:J,value:oe,id:te,inputRef:D,onBlur:G,onChange:j,onFocus:T,placeholder:M,inputProps:St,slots:{input:z.htmlInput?je:void 0},...ke});return P.jsxs(Ie,{...Ye,children:[w!=null&&w!==""&&P.jsx(Rt,{htmlFor:te,id:de,...Et,children:w}),Y?P.jsx(Ge,{"aria-describedby":be,id:te,labelId:de,value:oe,input:Ot,...Pe,children:o}):Ot,y&&P.jsx(ot,{id:be,...Ze,children:y})]})});function Xme(e){return Ht("MuiMenuItem",e)}const rf=Nt("MuiMenuItem",["root","focusVisible","dense","disabled","divider","gutters","selected"]),BO=Nt("MuiListItemIcon",["root","alignItemsFlexStart"]),UO=Nt("MuiListItemText",["root","multiline","dense","inset","primary","secondary"]),jO=Nt("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]),Zme=(e,t)=>{const{ownerState:n}=e;return[t.root,n.dense&&t.dense,n.divider&&t.divider,!n.disableGutters&&t.gutters]},Jme=e=>{const{disabled:t,dense:n,divider:r,disableGutters:a,selected:o,classes:s}=e,c=zt({root:["root",n&&"dense",t&&"disabled",!a&&"gutters",r&&"divider",o&&"selected"]},Xme,s);return{...s,...c}},ege=ze(l0,{shouldForwardProp:e=>ea(e)||e==="classes",name:"MuiMenuItem",slot:"Root",overridesResolver:Zme})(fn(({theme:e})=>({...e.typography.body1,display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",minHeight:48,paddingTop:6,paddingBottom:6,boxSizing:"border-box",whiteSpace:"nowrap","&:hover":{textDecoration:"none",backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${rf.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:Nr(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${rf.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:Nr(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${rf.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:Nr(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:Nr(e.palette.primary.main,e.palette.action.selectedOpacity)}},[`&.${rf.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${rf.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},[`& + .${jO.root}`]:{marginTop:e.spacing(1),marginBottom:e.spacing(1)},[`& + .${jO.inset}`]:{marginLeft:52},[`& .${UO.root}`]:{marginTop:0,marginBottom:0},[`& .${UO.inset}`]:{paddingLeft:36},[`& .${BO.root}`]:{minWidth:36},variants:[{props:({ownerState:t})=>!t.disableGutters,style:{paddingLeft:16,paddingRight:16}},{props:({ownerState:t})=>t.divider,style:{borderBottom:`1px solid ${(e.vars||e).palette.divider}`,backgroundClip:"padding-box"}},{props:({ownerState:t})=>!t.dense,style:{[e.breakpoints.up("sm")]:{minHeight:"auto"}}},{props:({ownerState:t})=>t.dense,style:{minHeight:32,paddingTop:4,paddingBottom:4,...e.typography.body2,[`& .${BO.root} svg`]:{fontSize:"1.25rem"}}}]}))),X0e=x.forwardRef(function(e,t){const n=Yt({props:e,name:"MuiMenuItem"}),{autoFocus:r=!1,component:a="li",dense:o=!1,divider:s=!1,disableGutters:c=!1,focusVisibleClassName:u,role:d="menuitem",tabIndex:p,className:h,...g}=n,y=x.useContext(DT),b=x.useMemo(()=>({dense:o||y.dense||!1,disableGutters:c}),[y.dense,o,c]),E=x.useRef(null);Ls(()=>{r&&E.current&&E.current.focus()},[r]);const _={...n,dense:b.dense,divider:s,disableGutters:c},A=Jme(n),D=Kn(E,t);let w;return n.disabled||(w=p!==void 0?p:-1),P.jsx(DT.Provider,{value:b,children:P.jsx(ege,{ref:D,role:d,tabIndex:w,component:a,focusVisibleClassName:mt(A.focusVisible,u),className:mt(A.root,h),...g,ownerState:_,classes:A})})});function tge(e){return Ht("MuiDialogActions",e)}Nt("MuiDialogActions",["root","spacing"]);const nge=e=>{const{classes:t,disableSpacing:n}=e;return zt({root:["root",!n&&"spacing"]},tge,t)},rge=ze("div",{name:"MuiDialogActions",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disableSpacing&&t.spacing]}})({display:"flex",alignItems:"center",padding:8,justifyContent:"flex-end",flex:"0 0 auto",variants:[{props:({ownerState:e})=>!e.disableSpacing,style:{"& > :not(style) ~ :not(style)":{marginLeft:8}}}]}),Z0e=x.forwardRef(function(e,t){const n=Yt({props:e,name:"MuiDialogActions"}),{className:r,disableSpacing:a=!1,...o}=n,s={...n,disableSpacing:a},c=nge(s);return P.jsx(rge,{className:mt(c.root,r),ownerState:s,ref:t,...o})});function age(e){return Ht("MuiIconButton",e)}const HO=Nt("MuiIconButton",["root","disabled","colorInherit","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","edgeStart","edgeEnd","sizeSmall","sizeMedium","sizeLarge","loading","loadingIndicator","loadingWrapper"]),oge=e=>{const{classes:t,disabled:n,color:r,edge:a,size:o,loading:s}=e,c={root:["root",s&&"loading",n&&"disabled",r!=="default"&&`color${rt(r)}`,a&&`edge${rt(a)}`,`size${rt(o)}`],loadingIndicator:["loadingIndicator"],loadingWrapper:["loadingWrapper"]};return zt(c,age,t)},ige=ze(l0,{name:"MuiIconButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.loading&&t.loading,n.color!=="default"&&t[`color${rt(n.color)}`],n.edge&&t[`edge${rt(n.edge)}`],t[`size${rt(n.size)}`]]}})(fn(({theme:e})=>({textAlign:"center",flex:"0 0 auto",fontSize:e.typography.pxToRem(24),padding:8,borderRadius:"50%",color:(e.vars||e).palette.action.active,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest}),variants:[{props:t=>!t.disableRipple,style:{"--IconButton-hoverBg":e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:Nr(e.palette.action.active,e.palette.action.hoverOpacity),"&:hover":{backgroundColor:"var(--IconButton-hoverBg)","@media (hover: none)":{backgroundColor:"transparent"}}}},{props:{edge:"start"},style:{marginLeft:-12}},{props:{edge:"start",size:"small"},style:{marginLeft:-3}},{props:{edge:"end"},style:{marginRight:-12}},{props:{edge:"end",size:"small"},style:{marginRight:-3}}]})),fn(({theme:e})=>({variants:[{props:{color:"inherit"},style:{color:"inherit"}},...Object.entries(e.palette).filter(_o()).map(([t])=>({props:{color:t},style:{color:(e.vars||e).palette[t].main}})),...Object.entries(e.palette).filter(_o()).map(([t])=>({props:{color:t},style:{"--IconButton-hoverBg":e.vars?`rgba(${(e.vars||e).palette[t].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Nr((e.vars||e).palette[t].main,e.palette.action.hoverOpacity)}})),{props:{size:"small"},style:{padding:5,fontSize:e.typography.pxToRem(18)}},{props:{size:"large"},style:{padding:12,fontSize:e.typography.pxToRem(28)}}],[`&.${HO.disabled}`]:{backgroundColor:"transparent",color:(e.vars||e).palette.action.disabled},[`&.${HO.loading}`]:{color:"transparent"}}))),sge=ze("span",{name:"MuiIconButton",slot:"LoadingIndicator"})(({theme:e})=>({display:"none",position:"absolute",visibility:"visible",top:"50%",left:"50%",transform:"translate(-50%, -50%)",color:(e.vars||e).palette.action.disabled,variants:[{props:{loading:!0},style:{display:"flex"}}]})),J0e=x.forwardRef(function(e,t){const n=Yt({props:e,name:"MuiIconButton"}),{edge:r=!1,children:a,className:o,color:s="default",disabled:c=!1,disableFocusRipple:u=!1,size:d="medium",id:p,loading:h=null,loadingIndicator:g,...y}=n,b=Yp(p),E=g??P.jsx(jP,{"aria-labelledby":b,color:"inherit",size:16}),_={...n,edge:r,color:s,disabled:c,disableFocusRipple:u,loading:h,loadingIndicator:E,size:d},A=oge(_);return P.jsxs(ige,{id:h?b:p,className:mt(A.root,o),centerRipple:!0,focusRipple:!u,disabled:c||h,ref:t,...y,ownerState:_,children:[typeof h=="boolean"&&P.jsx("span",{className:A.loadingWrapper,style:{display:"contents"},children:P.jsx(sge,{className:A.loadingIndicator,ownerState:_,children:h&&E})}),a]})}),e1e=wn(P.jsx("path",{d:"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2M8 17c-.55 0-1-.45-1-1v-3c0-.55.45-1 1-1s1 .45 1 1v3c0 .55-.45 1-1 1m4 0c-.55 0-1-.45-1-1v-1c0-.55.45-1 1-1s1 .45 1 1v1c0 .55-.45 1-1 1m0-5c-.55 0-1-.45-1-1s.45-1 1-1 1 .45 1 1-.45 1-1 1m4 5c-.55 0-1-.45-1-1V8c0-.55.45-1 1-1s1 .45 1 1v8c0 .55-.45 1-1 1"})),t1e=wn(P.jsx("path",{d:"M5 13h11.17l-4.88 4.88c-.39.39-.39 1.03 0 1.42s1.02.39 1.41 0l6.59-6.59c.39-.39.39-1.02 0-1.41l-6.58-6.6a.996.996 0 0 0-1.41 0c-.39.39-.39 1.02 0 1.41L16.17 11H5c-.55 0-1 .45-1 1s.45 1 1 1"})),n1e=wn(P.jsx("path",{d:"m19.46 8 .79-1.75L22 5.46c.39-.18.39-.73 0-.91l-1.75-.79L19.46 2c-.18-.39-.73-.39-.91 0l-.79 1.75-1.76.79c-.39.18-.39.73 0 .91l1.75.79.79 1.76c.18.39.74.39.92 0M11.5 9.5 9.91 6c-.35-.78-1.47-.78-1.82 0L6.5 9.5 3 11.09c-.78.36-.78 1.47 0 1.82l3.5 1.59L8.09 18c.36.78 1.47.78 1.82 0l1.59-3.5 3.5-1.59c.78-.36.78-1.47 0-1.82zm7.04 6.5-.79 1.75-1.75.79c-.39.18-.39.73 0 .91l1.75.79.79 1.76c.18.39.73.39.91 0l.79-1.75 1.76-.79c.39-.18.39-.73 0-.91l-1.75-.79-.79-1.76c-.18-.39-.74-.39-.92 0"})),r1e=wn(P.jsx("path",{d:"M8.7 15.9 4.8 12l3.9-3.9c.39-.39.39-1.01 0-1.4a.984.984 0 0 0-1.4 0l-4.59 4.59c-.39.39-.39 1.02 0 1.41l4.59 4.6c.39.39 1.01.39 1.4 0s.39-1.01 0-1.4m6.6 0 3.9-3.9-3.9-3.9a.984.984 0 0 1 0-1.4c.39-.39 1.01-.39 1.4 0l4.59 4.59c.39.39.39 1.02 0 1.41l-4.59 4.6c-.39.39-1.01.39-1.4 0a.984.984 0 0 1 0-1.4"})),a1e=wn(P.jsx("path",{d:"M12 10.9c-.61 0-1.1.49-1.1 1.1s.49 1.1 1.1 1.1 1.1-.49 1.1-1.1-.49-1.1-1.1-1.1M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m2.19 12.19L6 18l3.81-8.19L18 6z"})),o1e=wn([P.jsx("path",{d:"M13 8.57c-.79 0-1.43.64-1.43 1.43s.64 1.43 1.43 1.43 1.43-.64 1.43-1.43-.64-1.43-1.43-1.43"},"0"),P.jsx("path",{d:"M13.21 3c-3.84-.11-7 2.87-7.19 6.64L4.1 12.2c-.25.33-.01.8.4.8H6v3c0 1.1.9 2 2 2h1v2c0 .55.45 1 1 1h5c.55 0 1-.45 1-1v-3.68c2.44-1.16 4.1-3.68 4-6.58-.14-3.62-3.18-6.63-6.79-6.74M16 10c0 .13-.01.26-.02.39l.83.66c.08.06.1.16.05.25l-.8 1.39c-.05.09-.16.12-.24.09l-.99-.4c-.21.16-.43.29-.67.39L14 13.83c-.01.1-.1.17-.2.17h-1.6c-.1 0-.18-.07-.2-.17l-.15-1.06c-.25-.1-.47-.23-.68-.39l-.99.4c-.09.03-.2 0-.25-.09l-.8-1.39c-.05-.08-.03-.19.05-.25l.84-.66c-.01-.13-.02-.26-.02-.39s.02-.27.04-.39l-.85-.66c-.08-.06-.1-.16-.05-.26l.8-1.38c.05-.09.15-.12.24-.09l1 .4c.2-.15.43-.29.67-.39L12 6.17c.02-.1.1-.17.2-.17h1.6c.1 0 .18.07.2.17l.15 1.06c.24.1.46.23.67.39l1-.4c.09-.03.2 0 .24.09l.8 1.38c.05.09.03.2-.05.26l-.85.66c.03.12.04.25.04.39"},"1")]),i1e=wn(P.jsx("path",{d:"M4 20h16c1.1 0 2-.9 2-2s-.9-2-2-2H4c-1.1 0-2 .9-2 2s.9 2 2 2m0-3h2v2H4zM2 6c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2s-.9-2-2-2H4c-1.1 0-2 .9-2 2m4 1H4V5h2zm-2 7h16c1.1 0 2-.9 2-2s-.9-2-2-2H4c-1.1 0-2 .9-2 2s.9 2 2 2m0-3h2v2H4z"}));function lge(e={}){const{autoHideDuration:t=null,disableWindowBlurListener:n=!1,onClose:r,open:a,resumeHideDuration:o}=e,s=s0();x.useEffect(()=>{if(!a)return;function _(A){A.defaultPrevented||A.key==="Escape"&&r?.(A,"escapeKeyDown")}return document.addEventListener("keydown",_),()=>{document.removeEventListener("keydown",_)}},[a,r]);const c=Fr((_,A)=>{r?.(_,A)}),u=Fr(_=>{!r||_==null||s.start(_,()=>{c(null,"timeout")})});x.useEffect(()=>(a&&u(t),s.clear),[a,t,u,s]);const d=_=>{r?.(_,"clickaway")},p=s.clear,h=x.useCallback(()=>{t!=null&&u(o??t*.5)},[t,o,u]),g=_=>A=>{const D=_.onBlur;D?.(A),h()},y=_=>A=>{const D=_.onFocus;D?.(A),p()},b=_=>A=>{const D=_.onMouseEnter;D?.(A),p()},E=_=>A=>{const D=_.onMouseLeave;D?.(A),h()};return x.useEffect(()=>{if(!n&&a)return window.addEventListener("focus",h),window.addEventListener("blur",p),()=>{window.removeEventListener("focus",h),window.removeEventListener("blur",p)}},[n,a,h,p]),{getRootProps:(_={})=>{const A={...Gr(e),...Gr(_)};return{role:"presentation",..._,...A,onBlur:g(A),onFocus:y(A),onMouseEnter:b(A),onMouseLeave:E(A)}},onClickAway:d}}function cge(e){return Ht("MuiSnackbar",e)}Nt("MuiSnackbar",["root","anchorOriginTopCenter","anchorOriginBottomCenter","anchorOriginTopRight","anchorOriginBottomRight","anchorOriginTopLeft","anchorOriginBottomLeft"]);function zO(e){return e.substring(2).toLowerCase()}function uge(e,t){return t.documentElement.clientWidth<e.clientX||t.documentElement.clientHeight<e.clientY}function dge(e){const{children:t,disableReactTree:n=!1,mouseEvent:r="onClick",onClickAway:a,touchEvent:o="onTouchEnd"}=e,s=x.useRef(!1),c=x.useRef(null),u=x.useRef(!1),d=x.useRef(!1);x.useEffect(()=>(setTimeout(()=>{u.current=!0},0),()=>{u.current=!1}),[]);const p=Kn(Pu(t),c),h=Fr(b=>{const E=d.current;d.current=!1;const _=Kr(c.current);if(!u.current||!c.current||"clientX"in b&&uge(b,_))return;if(s.current){s.current=!1;return}let A;b.composedPath?A=b.composedPath().includes(c.current):A=!_.documentElement.contains(b.target)||c.current.contains(b.target),!A&&(n||!E)&&a(b)}),g=b=>E=>{d.current=!0;const _=t.props[b];_&&_(E)},y={ref:p};return o!==!1&&(y[o]=g(o)),x.useEffect(()=>{if(o!==!1){const b=zO(o),E=Kr(c.current),_=()=>{s.current=!0};return E.addEventListener(b,h),E.addEventListener("touchmove",_),()=>{E.removeEventListener(b,h),E.removeEventListener("touchmove",_)}}},[h,o]),r!==!1&&(y[r]=g(r)),x.useEffect(()=>{if(r!==!1){const b=zO(r),E=Kr(c.current);return E.addEventListener(b,h),()=>{E.removeEventListener(b,h)}}},[h,r]),x.cloneElement(t,y)}function fge(e){return Ht("MuiSnackbarContent",e)}Nt("MuiSnackbarContent",["root","message","action"]);const pge=e=>{const{classes:t}=e;return zt({root:["root"],action:["action"],message:["message"]},fge,t)},hge=ze(d0,{name:"MuiSnackbarContent",slot:"Root"})(fn(({theme:e})=>{const t=e.palette.mode==="light"?.8:.98;return{...e.typography.body2,color:e.vars?e.vars.palette.SnackbarContent.color:e.palette.getContrastText(mE(e.palette.background.default,t)),backgroundColor:e.vars?e.vars.palette.SnackbarContent.bg:mE(e.palette.background.default,t),display:"flex",alignItems:"center",flexWrap:"wrap",padding:"6px 16px",flexGrow:1,[e.breakpoints.up("sm")]:{flexGrow:"initial",minWidth:288}}})),mge=ze("div",{name:"MuiSnackbarContent",slot:"Message"})({padding:"8px 0"}),gge=ze("div",{name:"MuiSnackbarContent",slot:"Action"})({display:"flex",alignItems:"center",marginLeft:"auto",paddingLeft:16,marginRight:-8}),yge=x.forwardRef(function(e,t){const n=Yt({props:e,name:"MuiSnackbarContent"}),{action:r,className:a,message:o,role:s="alert",...c}=n,u=n,d=pge(u);return P.jsxs(hge,{role:s,elevation:6,className:mt(d.root,a),ownerState:u,ref:t,...c,children:[P.jsx(mge,{className:d.message,ownerState:u,children:o}),r?P.jsx(gge,{className:d.action,ownerState:u,children:r}):null]})}),vge=e=>{const{classes:t,anchorOrigin:n}=e,r={root:["root",`anchorOrigin${rt(n.vertical)}${rt(n.horizontal)}`]};return zt(r,cge,t)},bge=ze("div",{name:"MuiSnackbar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`anchorOrigin${rt(n.anchorOrigin.vertical)}${rt(n.anchorOrigin.horizontal)}`]]}})(fn(({theme:e})=>({zIndex:(e.vars||e).zIndex.snackbar,position:"fixed",display:"flex",left:8,right:8,justifyContent:"center",alignItems:"center",variants:[{props:({ownerState:t})=>t.anchorOrigin.vertical==="top",style:{top:8,[e.breakpoints.up("sm")]:{top:24}}},{props:({ownerState:t})=>t.anchorOrigin.vertical!=="top",style:{bottom:8,[e.breakpoints.up("sm")]:{bottom:24}}},{props:({ownerState:t})=>t.anchorOrigin.horizontal==="left",style:{justifyContent:"flex-start",[e.breakpoints.up("sm")]:{left:24,right:"auto"}}},{props:({ownerState:t})=>t.anchorOrigin.horizontal==="right",style:{justifyContent:"flex-end",[e.breakpoints.up("sm")]:{right:24,left:"auto"}}},{props:({ownerState:t})=>t.anchorOrigin.horizontal==="center",style:{[e.breakpoints.up("sm")]:{left:"50%",right:"auto",transform:"translateX(-50%)"}}}]}))),s1e=x.forwardRef(function(e,t){const n=Yt({props:e,name:"MuiSnackbar"}),r=Lu(),a={enter:r.transitions.duration.enteringScreen,exit:r.transitions.duration.leavingScreen},{action:o,anchorOrigin:{vertical:s,horizontal:c}={vertical:"bottom",horizontal:"left"},autoHideDuration:u=null,children:d,className:p,ClickAwayListenerProps:h,ContentProps:g,disableWindowBlurListener:y=!1,message:b,onBlur:E,onClose:_,onFocus:A,onMouseEnter:D,onMouseLeave:w,open:R,resumeHideDuration:O,slots:k={},slotProps:F={},TransitionComponent:G,transitionDuration:j=a,TransitionProps:{onEnter:T,onExited:M,...U}={},...B}=n,Y={...n,anchorOrigin:{vertical:s,horizontal:c},autoHideDuration:u,disableWindowBlurListener:y,TransitionComponent:G,transitionDuration:j},X=vge(Y),{getRootProps:z,onClickAway:Z}=lge({...Y}),[J,oe]=x.useState(!0),I=Ye=>{oe(!0),M&&M(Ye)},re=(Ye,Ve)=>{oe(!1),T&&T(Ye,Ve)},ee={slots:{transition:G,...k},slotProps:{content:g,clickAwayListener:h,transition:U,...F}},[L,te]=bn("root",{ref:t,className:[X.root,p],elementType:bge,getSlotProps:z,externalForwardedProps:{...ee,...B},ownerState:Y}),[be,{ownerState:de,...xe}]=bn("clickAwayListener",{elementType:dge,externalForwardedProps:ee,getSlotProps:Ye=>({onClickAway:(...Ve)=>{const ke=Ve[0];Ye.onClickAway?.(...Ve),!ke?.defaultMuiPrevented&&Z(...Ve)}}),ownerState:Y}),[ge,Oe]=bn("content",{elementType:yge,shouldForwardComponentProp:!0,externalForwardedProps:ee,additionalProps:{message:b,action:o},ownerState:Y}),[Ue,Ie]=bn("transition",{elementType:Zg,externalForwardedProps:ee,getSlotProps:Ye=>({onEnter:(...Ve)=>{Ye.onEnter?.(...Ve),re(...Ve)},onExited:(...Ve)=>{Ye.onExited?.(...Ve),I(...Ve)}}),additionalProps:{appear:!0,in:R,timeout:j,direction:s==="top"?"down":"up"},ownerState:Y});return!R&&J?null:P.jsx(be,{...xe,...k.clickAwayListener&&{ownerState:de},children:P.jsx(L,{...te,children:P.jsx(Ue,{...Ie,children:d||P.jsx(ge,{...Oe})})})})});ct.defaults.baseURL="IfYouAreSeeingThis_baseURL_IsNotSet";const Mn={primary:{main:"#14b3cb",light:"#22d3ee",dark:"#0e7490",50:"#ecfeff",100:"#cffafe",500:"#14b3cb",600:"#0891b2",700:"#0e7490"},secondary:{main:"#fbbb04",light:"#fde047",dark:"#eab308",50:"#fefce8",100:"#fef3c7",500:"#fbbb04",600:"#eab308",700:"#ca8a04"},grey:{50:"#f9fafb",100:"#f3f4f6",200:"#e5e7eb",300:"#d1d5db",400:"#9ca3af",500:"#6b7280",600:"#4b5563",700:"#374151",800:"#1f2937",900:"#111827"},success:{main:"#059669",light:"#10b981",dark:"#047857"},warning:{main:"#d97706",light:"#f59e0b",dark:"#b45309"},error:{main:"#dc2626",light:"#ef4444",dark:"#b91c1c"},info:{main:"#0891b2",light:"#06b6d4",dark:"#0e7490"}},Ege=my({palette:{mode:"light",primary:Mn.primary,secondary:Mn.secondary,grey:Mn.grey,success:Mn.success,warning:Mn.warning,error:Mn.error,info:Mn.info,background:{default:"#ffffff",paper:"#ffffff"},text:{primary:Mn.grey[900],secondary:Mn.grey[600]},divider:Mn.grey[200]},typography:{fontFamily:'"Inter", "Roboto", "Helvetica", "Arial", sans-serif',h1:{fontWeight:700,letterSpacing:"-0.025em"},h2:{fontWeight:700,letterSpacing:"-0.025em"},h3:{fontWeight:600,letterSpacing:"-0.025em"},h4:{fontWeight:600,letterSpacing:"-0.025em"},h5:{fontWeight:600,letterSpacing:"-0.025em"},h6:{fontWeight:600,letterSpacing:"-0.025em"},subtitle1:{fontWeight:500,letterSpacing:"-0.025em"},subtitle2:{fontWeight:500,letterSpacing:"-0.025em"},body1:{letterSpacing:"-0.025em"},body2:{letterSpacing:"-0.025em"},button:{fontWeight:500,letterSpacing:"-0.025em",textTransform:"none"}},shape:{borderRadius:4},components:{MuiCssBaseline:{styleOverrides:{body:{scrollbarWidth:"thin",scrollbarColor:`${Mn.grey[300]} ${Mn.grey[100]}`,"&::-webkit-scrollbar":{width:"8px",height:"8px"},"&::-webkit-scrollbar-track":{background:Mn.grey[100],borderRadius:"4px"},"&::-webkit-scrollbar-thumb":{background:Mn.grey[300],borderRadius:"4px","&:hover":{background:Mn.grey[400]}},"&::-webkit-scrollbar-corner":{background:Mn.grey[100]}},"*":{scrollbarWidth:"thin",scrollbarColor:`${Mn.grey[300]} ${Mn.grey[100]}`,"&::-webkit-scrollbar":{width:"8px",height:"8px"},"&::-webkit-scrollbar-track":{background:Mn.grey[100],borderRadius:"4px"},"&::-webkit-scrollbar-thumb":{background:Mn.grey[300],borderRadius:"4px","&:hover":{background:Mn.grey[400]}},"&::-webkit-scrollbar-corner":{background:Mn.grey[100]}}}},MuiButton:{styleOverrides:{root:{borderRadius:4,textTransform:"none",fontWeight:500,boxShadow:"none","&:hover":{boxShadow:"0 1px 3px rgba(0, 0, 0, 0.1)"}},contained:{"&:hover":{boxShadow:"0 2px 4px rgba(0, 0, 0, 0.1)"}}}},MuiCard:{styleOverrides:{root:{borderRadius:4,boxShadow:"0 1px 3px rgba(0, 0, 0, 0.1)",border:"1px solid",borderColor:"rgba(0, 0, 0, 0.05)"}}},MuiChip:{styleOverrides:{root:{borderRadius:4,fontWeight:500}}},MuiTextField:{styleOverrides:{root:{"& .MuiOutlinedInput-root":{borderRadius:4}}}},MuiDialog:{styleOverrides:{paper:{borderRadius:4,boxShadow:"0px 20px 25px -5px rgba(0, 0, 0, 0.1), 0px 10px 10px -5px rgba(0, 0, 0, 0.04)"}}},MuiMenu:{styleOverrides:{paper:{borderRadius:4,boxShadow:"0px 10px 15px -3px rgba(0, 0, 0, 0.1), 0px 4px 6px -2px rgba(0, 0, 0, 0.05)",border:"1px solid rgba(0, 0, 0, 0.05)"}}},MuiBreadcrumbs:{styleOverrides:{root:{"& .MuiBreadcrumbs-separator":{margin:"0 6px",color:Mn.grey[400]}}}},MuiDivider:{styleOverrides:{root:{margin:"4px 0",borderColor:Mn.grey[200]}},defaultProps:{sx:{my:1}}}}}),Tge=x.lazy(()=>V(()=>import("./HomePage-Bov6-5AZ.js"),__vite__mapDeps([96,97,98,99,100,101,102,103,104]))),Sge=x.lazy(()=>V(()=>import("./MainPage-BYUYRBax.js"),__vite__mapDeps([105,97,104,103]))),_ge=x.lazy(()=>V(()=>import("./ModelPage-BMg6IR4I.js"),__vite__mapDeps([106,107,108,109,100]))),Cge=x.lazy(()=>V(()=>import("./PackagePage-Ca-5S4bY.js"),__vite__mapDeps([110,97,107,108,109,100,99,102,111]))),Age=x.lazy(()=>V(()=>import("./ProjectPage-Csve1erO.js"),__vite__mapDeps([112,97,108,102,99,98,100,101]))),xge=x.lazy(()=>V(()=>import("./RouteError-DVrYYQx8.js"),__vite__mapDeps([113,103]))),wge=x.lazy(()=>V(()=>import("./WorkbookPage-Bos3GG6c.js"),__vite__mapDeps([114,108,109,100,111,99,104,98,97]))),Dge=(e="/",t,n)=>d8([{path:e,element:P.jsx(KK,{children:P.jsx(pce,{workbookStorage:t,children:P.jsxs(eU,{theme:Ege,children:[P.jsx(qH,{}),P.jsx(Sge,{headerProps:n})]})})}),errorElement:P.jsx(xge,{}),children:[{path:"",element:P.jsx(Tge,{})},{path:":projectName",element:P.jsx(Age,{})},{path:":projectName/:packageName",element:P.jsx(Cge,{})},{path:":projectName/:packageName/*",element:P.jsx(_ge,{})},{path:":projectName/:packageName/workbook/:workspace/:workbookPath",element:P.jsx(wge,{})}]}]),kge=Dge("/",new upe,void 0);m$.createRoot(document.getElementById("root")).render(P.jsx(x.StrictMode,{children:P.jsx(_8,{router:kge})}));export{Fge as $,tn as A,Sl as B,Z0e as C,WS as D,K0e as E,Pa as F,WP as G,EU as H,KU as I,To as J,Vf as K,d3 as L,Q0e as M,Y0e as N,VF as O,V0e as P,lH as Q,Tt as R,rpe as S,hS as T,Oge as U,E7 as V,npe as W,Ige as X,J0e as Y,Dy as Z,Nye as _,q0e as a,lg as a$,Lge as a0,Bge as a1,Lye as a2,spe as a3,N0e as a4,Pge as a5,iU as a6,dm as a7,n3 as a8,Rl as a9,uS as aA,Nge as aB,qc as aC,SU as aD,pE as aE,L7 as aF,MB as aG,Fi as aH,zw as aI,ape as aJ,Bb as aK,F0e as aL,B0e as aM,U0e as aN,sG as aO,fce as aP,j0e as aQ,w0e as aR,lG as aS,H0e as aT,U3 as aU,$0e as aV,hy as aW,VI as aX,gU as aY,uH as aZ,V as a_,Ni as aa,Jn as ab,rS as ac,nS as ad,Uge as ae,jge as af,Hge as ag,_ce as ah,t0e as ai,X0e as aj,ez as ak,I0e as al,d0e as am,M0e as an,P0e as ao,Mge as ap,$ge as aq,zge as ar,$F as as,Ap as at,JT as au,BF as av,fy as aw,SS as ax,Zc as ay,Bw as az,L0e as b,Es as b0,bp as b1,Rge as b2,VO as b3,a3 as c,tz as d,aD as e,n1e as f,_3 as g,C3 as h,r1e as i,P as j,o1e as k,kH as l,e1e as m,a1e as n,t1e as o,ma as p,Zr as q,x as r,Jr as s,i1e as t,J3 as u,W0e as v,xt as w,An as x,bE as y,s1e as z};