@dylanpiercey/work 0.2.42 → 0.2.44

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 (482) hide show
  1. package/bin/work.mjs +71 -23
  2. package/dist/{_BwqJGTg-.js → _DIwr1RBh.js} +67 -67
  3. package/dist/index.mjs +692 -691
  4. package/dist/public/assets/{_DI1qYvDw.js → _0eK035R8.js} +1 -1
  5. package/dist/public/assets/_0eK035R8.js.br +0 -0
  6. package/dist/public/assets/_291ndbCK.js +1 -0
  7. package/dist/public/assets/_2PuzSbrq.js +1 -0
  8. package/dist/public/assets/_2UvV2KY_.js +1 -0
  9. package/dist/public/assets/_3QFQfjGY.js +1 -0
  10. package/dist/public/assets/{_D3OrVUzk.js → _4xxPjzRG.js} +3 -3
  11. package/dist/public/assets/_4xxPjzRG.js.br +0 -0
  12. package/dist/public/assets/{_BFTr9gZX.js → _530dhCBX.js} +1 -1
  13. package/dist/public/assets/_530dhCBX.js.br +0 -0
  14. package/dist/public/assets/{_C_XITOho.js → _6rlK2kiT.js} +1 -1
  15. package/dist/public/assets/_6rlK2kiT.js.br +0 -0
  16. package/dist/public/assets/{_BIHQhOfe.js → _8JlVECZ4.js} +68 -67
  17. package/dist/public/assets/_8JlVECZ4.js.br +0 -0
  18. package/dist/public/assets/{_B4DVY_7W.js → _9XfT_kAQ.js} +1 -1
  19. package/dist/public/assets/_9XfT_kAQ.js.br +0 -0
  20. package/dist/public/assets/{_BwRBwNgB.js → _B18ixB2z.js} +1 -1
  21. package/dist/public/assets/_B18ixB2z.js.br +0 -0
  22. package/dist/public/assets/{_BjbqQ_El.js → _B1HStpW0.js} +1 -1
  23. package/dist/public/assets/_B1HStpW0.js.br +0 -0
  24. package/dist/public/assets/{_CoVSfg3Z.js → _B2bgY7VH.js} +1 -1
  25. package/dist/public/assets/_B2bgY7VH.js.br +0 -0
  26. package/dist/public/assets/_B4FsUOio.js +1 -0
  27. package/dist/public/assets/_B5jpXalG.js +12 -0
  28. package/dist/public/assets/_B5jpXalG.js.br +0 -0
  29. package/dist/public/assets/{_DxmxNmie.js → _B6sV8ze1.js} +1 -1
  30. package/dist/public/assets/_B6sV8ze1.js.br +0 -0
  31. package/dist/public/assets/{_DEOgcq8G.js → _B7h5MWRM.js} +1 -1
  32. package/dist/public/assets/_B7h5MWRM.js.br +0 -0
  33. package/dist/public/assets/_B92854gS.js +1 -0
  34. package/dist/public/assets/_B97w9gKV.js +1 -0
  35. package/dist/public/assets/_BAqeqFjt.js +1 -0
  36. package/dist/public/assets/{_BOgpQXmJ.js → _BD0MMovF.js} +1 -1
  37. package/dist/public/assets/{_PYKRwjO-.js → _BESJywRP.js} +1 -1
  38. package/dist/public/assets/_BESJywRP.js.br +0 -0
  39. package/dist/public/assets/{_Ctyg3IJ4.js → _BEYtrZXu.js} +1 -1
  40. package/dist/public/assets/_BEYtrZXu.js.br +0 -0
  41. package/dist/public/assets/{_CUIoM8X2.js → _BGe5YZvC.js} +1 -1
  42. package/dist/public/assets/_BGe5YZvC.js.br +0 -0
  43. package/dist/public/assets/_BMt7t-IK.js +1 -0
  44. package/dist/public/assets/_BNBHheBI.js +1 -0
  45. package/dist/public/assets/_BRA3nDhj.js +1 -0
  46. package/dist/public/assets/{_8nlKiGBi.js → _BRMftHcc.js} +1 -1
  47. package/dist/public/assets/_BRMftHcc.js.br +0 -0
  48. package/dist/public/assets/_BRYOOYeT.js +1 -0
  49. package/dist/public/assets/_BRju0kTb.js +1 -0
  50. package/dist/public/assets/_BRuiRoDT.js +1 -0
  51. package/dist/public/assets/_BUt_dRbX.js +1 -0
  52. package/dist/public/assets/{_B8bacjbf.js → _BVmlWew8.js} +1 -1
  53. package/dist/public/assets/_BVmlWew8.js.br +0 -0
  54. package/dist/public/assets/_BWu7N39t.js +1 -0
  55. package/dist/public/assets/_BZfIAT7N.js +1 -0
  56. package/dist/public/assets/_BagsLgjl.js +1 -0
  57. package/dist/public/assets/_BcMqFuWN.js +1 -0
  58. package/dist/public/assets/{_ProcVwIG.js → _Bcf_bFWr.js} +1 -1
  59. package/dist/public/assets/_Bcf_bFWr.js.br +0 -0
  60. package/dist/public/assets/{_CtknLycG.js → _BeDFg_MS.js} +1 -1
  61. package/dist/public/assets/_BeDFg_MS.js.br +0 -0
  62. package/dist/public/assets/{_DPjhX16_.js → _BeUy9moF.js} +1 -1
  63. package/dist/public/assets/_BeUy9moF.js.br +0 -0
  64. package/dist/public/assets/_BfP0KDqb.js +7 -0
  65. package/dist/public/assets/_BfP0KDqb.js.br +0 -0
  66. package/dist/public/assets/{_BLRVSmeM.js → _BhEWYlaD.js} +1 -1
  67. package/dist/public/assets/_BhEWYlaD.js.br +0 -0
  68. package/dist/public/assets/{_D7G2pZM5.js → _BhFFgml5.js} +1 -1
  69. package/dist/public/assets/_BhFFgml5.js.br +0 -0
  70. package/dist/public/assets/{_C-YTNMVV.js → _BnmFcEOd.js} +1 -1
  71. package/dist/public/assets/_BnmFcEOd.js.br +0 -0
  72. package/dist/public/assets/_BtbCF-Ab.js +1 -0
  73. package/dist/public/assets/_Bu2lbfre.js +1 -0
  74. package/dist/public/assets/{_5SjlE5HS.js → _BvZ6Gp79.js} +1 -1
  75. package/dist/public/assets/_BwwB54Yi.js +1 -0
  76. package/dist/public/assets/_BxePzpXb.js +1 -0
  77. package/dist/public/assets/{_0TAu89jO.js → _BzTvUB76.js} +1 -1
  78. package/dist/public/assets/_BzTvUB76.js.br +0 -0
  79. package/dist/public/assets/_C04ADGqC.js +1 -0
  80. package/dist/public/assets/_C0spplQ-.js +1 -0
  81. package/dist/public/assets/{_BK0uv9MH.js → _C2NGeccQ.js} +1 -1
  82. package/dist/public/assets/_C2NGeccQ.js.br +0 -0
  83. package/dist/public/assets/_C2lKGi-7.js +1 -0
  84. package/dist/public/assets/{_DCb3fJRr.js → _C7wOvGGt.js} +1 -1
  85. package/dist/public/assets/_C7wOvGGt.js.br +0 -0
  86. package/dist/public/assets/{_BvgjMNxJ.js → _C7x79ALL.js} +1 -1
  87. package/dist/public/assets/_C7x79ALL.js.br +0 -0
  88. package/dist/public/assets/{_Ce9LAY3j.js → _C82_OMnf.js} +1 -1
  89. package/dist/public/assets/_C82_OMnf.js.br +0 -0
  90. package/dist/public/assets/_C92r8CS9.js +1 -0
  91. package/dist/public/assets/{_D9V-500A.js → _CAaE_29m.js} +1 -1
  92. package/dist/public/assets/_CAaE_29m.js.br +0 -0
  93. package/dist/public/assets/{_Dar0Jhi9.js → _CC5Ll6yL.js} +1 -1
  94. package/dist/public/assets/_CC5Ll6yL.js.br +0 -0
  95. package/dist/public/assets/{_DIMN13up.js → _CFRyEmz9.js} +1 -1
  96. package/dist/public/assets/_CFRyEmz9.js.br +0 -0
  97. package/dist/public/assets/{_Ct_ritl_.js → _CFjEXYsy.js} +1 -1
  98. package/dist/public/assets/_CFjEXYsy.js.br +0 -0
  99. package/dist/public/assets/{_r5_M-uhA.js → _CH6cXBn1.js} +1 -1
  100. package/dist/public/assets/_CH6cXBn1.js.br +0 -0
  101. package/dist/public/assets/{_T4x4vstZ.js → _CHZBmkiY.js} +2 -2
  102. package/dist/public/assets/_CHZBmkiY.js.br +0 -0
  103. package/dist/public/assets/_CJmWqm4C.js +1 -0
  104. package/dist/public/assets/_CMO2Z_Bc.js +1 -0
  105. package/dist/public/assets/{_C6uxShhm.js → _CT9asvR7.js} +1 -1
  106. package/dist/public/assets/_CT9asvR7.js.br +0 -0
  107. package/dist/public/assets/_CYNPx6bU.js +1 -0
  108. package/dist/public/assets/_CaReJNeq.js +1 -0
  109. package/dist/public/assets/_CbZ4iWLd.js +1 -0
  110. package/dist/public/assets/_CclDITtv.js +1 -0
  111. package/dist/public/assets/_CcvFyGwr.js +1 -0
  112. package/dist/public/assets/{_DBQQMYHK.js → _CdSpe7--.js} +1 -1
  113. package/dist/public/assets/_CdSpe7--.js.br +0 -0
  114. package/dist/public/assets/_CfSr8jIv.js +1 -0
  115. package/dist/public/assets/_CfhM3fwF.js +1 -0
  116. package/dist/public/assets/_Cg9u1cIy.js +1 -0
  117. package/dist/public/assets/{_BWEmssXq.js → _CipnEfhW.js} +1 -1
  118. package/dist/public/assets/_CipnEfhW.js.br +0 -0
  119. package/dist/public/assets/{_BwLovCS6.js → _ClKuBt_u.js} +1 -1
  120. package/dist/public/assets/_ClKuBt_u.js.br +0 -0
  121. package/dist/public/assets/{_J4kJcAJg.js → _ClqL5v_T.js} +1 -1
  122. package/dist/public/assets/_ClqL5v_T.js.br +0 -0
  123. package/dist/public/assets/{_qrMpRa1i.js → _Clxk4NM9.js} +1 -1
  124. package/dist/public/assets/_Clxk4NM9.js.br +0 -0
  125. package/dist/public/assets/{_Dr2xSXBN.js → _CmCSdTYC.js} +1 -1
  126. package/dist/public/assets/_CmCSdTYC.js.br +0 -0
  127. package/dist/public/assets/_CoaHm3nd.js +1 -0
  128. package/dist/public/assets/{_RvJ4aN_k.js → _CpFF408S.js} +1 -1
  129. package/dist/public/assets/_CpFF408S.js.br +0 -0
  130. package/dist/public/assets/_CpU5S1i1.js +1 -0
  131. package/dist/public/assets/_CqrVmqkV.js +1 -0
  132. package/dist/public/assets/{_DVcj9rxV.js → _Cv9dhNUU.js} +1 -1
  133. package/dist/public/assets/_Cv9dhNUU.js.br +0 -0
  134. package/dist/public/assets/_CvYqa2gH.js +1 -0
  135. package/dist/public/assets/{_Bey11w4c.js → _D0t4sewY.js} +1 -1
  136. package/dist/public/assets/_D0t4sewY.js.br +0 -0
  137. package/dist/public/assets/{_DucJxgyZ.js → _D140ilf3.js} +1 -1
  138. package/dist/public/assets/_D140ilf3.js.br +0 -0
  139. package/dist/public/assets/{_6TaxzICZ.js → _D1L2c6wa.js} +1 -1
  140. package/dist/public/assets/_D1L2c6wa.js.br +0 -0
  141. package/dist/public/assets/_D1hTHvx9.js +1 -0
  142. package/dist/public/assets/_D3_2ocdx.js +1 -0
  143. package/dist/public/assets/{_DTBHW2pT.js → _D3df-HXh.js} +1 -1
  144. package/dist/public/assets/_D3df-HXh.js.br +0 -0
  145. package/dist/public/assets/_D3hZCQDD.js +1 -0
  146. package/dist/public/assets/{_DOA1NutW.js → _D665uiM0.js} +1 -1
  147. package/dist/public/assets/_D665uiM0.js.br +0 -0
  148. package/dist/public/assets/_D74LN5c6.js +1 -0
  149. package/dist/public/assets/_D7wqbxr-.js +1 -0
  150. package/dist/public/assets/_DB0S6NuE.js +1 -0
  151. package/dist/public/assets/{_Cmh5vtw6.js → _DC-362Aa.js} +1 -1
  152. package/dist/public/assets/_DC-362Aa.js.br +0 -0
  153. package/dist/public/assets/_DDcVzNls.js +1 -0
  154. package/dist/public/assets/_DECzT6bt.js +1 -0
  155. package/dist/public/assets/{_CRavszYj.js → _DHIh3Zqg.js} +1 -1
  156. package/dist/public/assets/_DLlMV9-6.js +1 -0
  157. package/dist/public/assets/_DM43C9JL.js +1 -0
  158. package/dist/public/assets/{_C9Xj1pPE.js → _DNJ8I4VP.js} +1 -1
  159. package/dist/public/assets/{_D3_VIrXA.js → _DP1Fr0Go.js} +1 -1
  160. package/dist/public/assets/_DP1Fr0Go.js.br +0 -0
  161. package/dist/public/assets/{_Bv-IlwQT.js → _DP401U9L.js} +1 -1
  162. package/dist/public/assets/_DP401U9L.js.br +0 -0
  163. package/dist/public/assets/{_DtkImFGo.js → _DPOs-wSZ.js} +1 -1
  164. package/dist/public/assets/{_jqoWK4Vi.js → _DQ-mN0nj.js} +1 -1
  165. package/dist/public/assets/_DQ-mN0nj.js.br +0 -0
  166. package/dist/public/assets/{_DSeY26wK.js → _DR3Klkrj.js} +1 -1
  167. package/dist/public/assets/_DR3Klkrj.js.br +0 -0
  168. package/dist/public/assets/{_CrtPk9tp.js → _DTeRAxTo.js} +1 -1
  169. package/dist/public/assets/_DTeRAxTo.js.br +0 -0
  170. package/dist/public/assets/{_CGK3zib3.js → _DVMRwfVQ.js} +1 -1
  171. package/dist/public/assets/_DVMRwfVQ.js.br +0 -0
  172. package/dist/public/assets/_DW_Ubprt.js +1 -0
  173. package/dist/public/assets/_DXXk9nXp.js +1 -0
  174. package/dist/public/assets/{_n9U8owrb.js → _D_Gans_z.js} +1 -1
  175. package/dist/public/assets/_D_Gans_z.js.br +0 -0
  176. package/dist/public/assets/_DaB8vi2D.js +1 -0
  177. package/dist/public/assets/{_CEa34aRI.js → _DbUljy8T.js} +1 -1
  178. package/dist/public/assets/_DbUljy8T.js.br +0 -0
  179. package/dist/public/assets/{_0tpkQ33d.js → _DbXISrnz.js} +1 -1
  180. package/dist/public/assets/_DbXISrnz.js.br +0 -0
  181. package/dist/public/assets/{_Y1MV0Z0B.js → _DbZt6CiW.js} +1 -1
  182. package/dist/public/assets/_DbZt6CiW.js.br +0 -0
  183. package/dist/public/assets/{_B8M3Ojiy.js → _Dbu06XRI.js} +1 -1
  184. package/dist/public/assets/_Dbu06XRI.js.br +0 -0
  185. package/dist/public/assets/_DckneeMY.js +1 -0
  186. package/dist/public/assets/{_BPZKx3Jk.js → _DcxKRExU.js} +1 -1
  187. package/dist/public/assets/_DcxKRExU.js.br +0 -0
  188. package/dist/public/assets/{_Bcl_UOx6.js → _DfqWGAs9.js} +1 -1
  189. package/dist/public/assets/_DfqWGAs9.js.br +0 -0
  190. package/dist/public/assets/_Dgl579Nh.js +1 -0
  191. package/dist/public/assets/{_DSp0n7-Z.js → _DibgD9wu.js} +4 -4
  192. package/dist/public/assets/_DibgD9wu.js.br +0 -0
  193. package/dist/public/assets/_DiyrK5Lf.js +1 -0
  194. package/dist/public/assets/{_2EdJdhqM.js → _Dj3bzjmr.js} +1 -1
  195. package/dist/public/assets/_Dj3bzjmr.js.br +0 -0
  196. package/dist/public/assets/_Do7xRvdh.js +1 -0
  197. package/dist/public/assets/{_C8pKiZNP.js → _Dof9bk1s.js} +1 -1
  198. package/dist/public/assets/_Dof9bk1s.js.br +0 -0
  199. package/dist/public/assets/{_CQwfLnMn.js → _DpPC5wTX.js} +1 -1
  200. package/dist/public/assets/_DpPC5wTX.js.br +0 -0
  201. package/dist/public/assets/_DpUjTs7G.js +1 -0
  202. package/dist/public/assets/{_BfG_-1HN.js → _DpkEy7xD.js} +1 -1
  203. package/dist/public/assets/_DpkEy7xD.js.br +0 -0
  204. package/dist/public/assets/{_TS3fzYUh.js → _DqPdlS_6.js} +1 -1
  205. package/dist/public/assets/_DqPdlS_6.js.br +0 -0
  206. package/dist/public/assets/_DrHa8D7P.js +1 -0
  207. package/dist/public/assets/{_BHiKHJoJ.js → _Ds1I-o0I.js} +1 -1
  208. package/dist/public/assets/_Ds1I-o0I.js.br +0 -0
  209. package/dist/public/assets/{_YWJOgXKS.js → _DtvewBGv.js} +1 -1
  210. package/dist/public/assets/_DtvewBGv.js.br +0 -0
  211. package/dist/public/assets/_DumoUwwg.js +1 -0
  212. package/dist/public/assets/_Dv4VzdiO.js +1 -0
  213. package/dist/public/assets/{_DoJ5e3yk.js → _DvQxG-WL.js} +1 -1
  214. package/dist/public/assets/_DvQxG-WL.js.br +0 -0
  215. package/dist/public/assets/_DxQqRLZa.js +1 -0
  216. package/dist/public/assets/{_I64LjJr0.js → _DzNaxOWz.js} +1 -1
  217. package/dist/public/assets/_DzNaxOWz.js.br +0 -0
  218. package/dist/public/assets/{_BytqxSss.js → _DzgXbNBA.js} +1 -1
  219. package/dist/public/assets/_DzgXbNBA.js.br +0 -0
  220. package/dist/public/assets/_FklcZQWH.js +1 -0
  221. package/dist/public/assets/{_Bt0eukq2.js → _G89RhQlY.js} +1 -1
  222. package/dist/public/assets/_G89RhQlY.js.br +0 -0
  223. package/dist/public/assets/{_Z_fC5zJJ.js → _Gds0N5t0.js} +1 -1
  224. package/dist/public/assets/_Gds0N5t0.js.br +0 -0
  225. package/dist/public/assets/_GiXeI3GK.js +1 -0
  226. package/dist/public/assets/_Gll_ORl5.js +1 -0
  227. package/dist/public/assets/{_bzd_k347.js → _HfPt-BIP.js} +2 -2
  228. package/dist/public/assets/_HfPt-BIP.js.br +0 -0
  229. package/dist/public/assets/{_DvOSNj0k.js → _IiWL7q-1.js} +1 -1
  230. package/dist/public/assets/_IiWL7q-1.js.br +0 -0
  231. package/dist/public/assets/_JqVXhDVr.js +1 -0
  232. package/dist/public/assets/{_DRhFEV3p.js → _Jr9Fn7zH.js} +1 -1
  233. package/dist/public/assets/_Jr9Fn7zH.js.br +0 -0
  234. package/dist/public/assets/_Ls26XOto.js +1 -0
  235. package/dist/public/assets/{_BL4YKfFD.js → _NFyQLwL2.js} +1 -1
  236. package/dist/public/assets/_NFyQLwL2.js.br +0 -0
  237. package/dist/public/assets/_Nhgi-QD-.js +1 -0
  238. package/dist/public/assets/{_Wml5S5pw.js → _QAl9MOeZ.js} +1 -1
  239. package/dist/public/assets/_QAl9MOeZ.js.br +0 -0
  240. package/dist/public/assets/{_Cc3XRkQD.js → _TQk60Mlv.js} +1 -1
  241. package/dist/public/assets/_TQk60Mlv.js.br +0 -0
  242. package/dist/public/assets/{_rB7YBgt1.js → _T_ugRwFS.js} +1 -1
  243. package/dist/public/assets/_T_ugRwFS.js.br +0 -0
  244. package/dist/public/assets/{_0D0ldLfD.js → _TnU4GgL4.js} +1 -1
  245. package/dist/public/assets/_TnU4GgL4.js.br +0 -0
  246. package/dist/public/assets/{_BUPn6Mnz.js → _UpY10-py.js} +1 -1
  247. package/dist/public/assets/_UpY10-py.js.br +0 -0
  248. package/dist/public/assets/_Usk3bCPM.js +1 -0
  249. package/dist/public/assets/{_CUklb1HG.js → _Vlcj833j.js} +1 -1
  250. package/dist/public/assets/_Vlcj833j.js.br +0 -0
  251. package/dist/public/assets/{_sPlrHbtE.js → _Wo5eUHN5.js} +1 -1
  252. package/dist/public/assets/_Wo5eUHN5.js.br +0 -0
  253. package/dist/public/assets/{_D18W27gr.js → __ALUCVjh.js} +1 -1
  254. package/dist/public/assets/__ALUCVjh.js.br +0 -0
  255. package/dist/public/assets/_aZ6tRh8w.js +1 -0
  256. package/dist/public/assets/{_7o-NFNP0.js → _bqkRF2KZ.js} +1 -1
  257. package/dist/public/assets/_bqkRF2KZ.js.br +0 -0
  258. package/dist/public/assets/_eMO2gO0b.js +1 -0
  259. package/dist/public/assets/_l1uKMSvb.js +1 -0
  260. package/dist/public/assets/{_Chhk70ar.js → _mP9WBNxQ.js} +1 -1
  261. package/dist/public/assets/_mP9WBNxQ.js.br +0 -0
  262. package/dist/public/assets/_mY65qOO7.js +1 -0
  263. package/dist/public/assets/{_r8khTeho.js → _ncO15QKP.js} +1 -1
  264. package/dist/public/assets/_ncO15QKP.js.br +0 -0
  265. package/dist/public/assets/_oZz3CTxP.js +1 -0
  266. package/dist/public/assets/{__prI0zQc.js → _olpqzRSA.js} +1 -1
  267. package/dist/public/assets/_olpqzRSA.js.br +0 -0
  268. package/dist/public/assets/{_DoQbA796.js → _rCLcJh8a.js} +1 -1
  269. package/dist/public/assets/_rCLcJh8a.js.br +0 -0
  270. package/dist/public/assets/{_DK_-UDvi.js → _s7sH946N.js} +1 -1
  271. package/dist/public/assets/_scUJ1lcr.js +1 -0
  272. package/dist/public/assets/_sw1ZHuO5.js +1 -0
  273. package/dist/public/assets/{_h6bUk2pq.js → _tGYm6QKl.js} +1 -1
  274. package/dist/public/assets/_tGYm6QKl.js.br +0 -0
  275. package/dist/public/assets/{_Cx_DSnTG.js → _uqG4sflc.js} +1 -1
  276. package/dist/public/assets/_uqG4sflc.js.br +0 -0
  277. package/dist/public/assets/_wmcdeGwt.js +1 -0
  278. package/dist/public/assets/_xR8BGGM6.js +1 -0
  279. package/dist/public/assets/_zCwVHOcY.js +1 -0
  280. package/dist/public/assets/files-view-tHbs4LZi.js +2 -0
  281. package/dist/public/assets/manage-workspace-B2b1EELW.js +2 -0
  282. package/dist/public/assets/new-CG7PlpHU.js +1 -0
  283. package/dist/public/assets/new-workspace-CSFjnPk3.js +2 -0
  284. package/dist/public/assets/review-view-0JOZa_hN.js +2 -0
  285. package/dist/public/assets/settings-CG7PlpHU.js +1 -0
  286. package/dist/public/assets/settings-page-CUvav0nq.js +2 -0
  287. package/dist/public/assets/{styles-BJQqKk3S.css → styles-C9roDUa_.css} +1 -1
  288. package/dist/public/assets/styles-C9roDUa_.css.br +0 -0
  289. package/dist/public/assets/w-CG7PlpHU.js +1 -0
  290. package/dist/public/assets/w._-BAovoZD2.js +1 -0
  291. package/dist/public/assets/w._-CG7PlpHU.js +1 -0
  292. package/dist/public/assets/w._-DRGvcgb-.js +1 -0
  293. package/package.json +1 -1
  294. package/dist/public/assets/_0D0ldLfD.js.br +0 -0
  295. package/dist/public/assets/_0TAu89jO.js.br +0 -0
  296. package/dist/public/assets/_0tpkQ33d.js.br +0 -0
  297. package/dist/public/assets/_27E7x5ZR.js +0 -1
  298. package/dist/public/assets/_2EdJdhqM.js.br +0 -0
  299. package/dist/public/assets/_6TaxzICZ.js.br +0 -0
  300. package/dist/public/assets/_6VIxHDR1.js +0 -1
  301. package/dist/public/assets/_6d2rf6hP.js +0 -1
  302. package/dist/public/assets/_7KxSE1_C.js +0 -1
  303. package/dist/public/assets/_7o-NFNP0.js.br +0 -0
  304. package/dist/public/assets/_8nlKiGBi.js.br +0 -0
  305. package/dist/public/assets/_B0S0QYf0.js +0 -1
  306. package/dist/public/assets/_B4DVY_7W.js.br +0 -0
  307. package/dist/public/assets/_B7JQBsSW.js +0 -1
  308. package/dist/public/assets/_B8M3Ojiy.js.br +0 -0
  309. package/dist/public/assets/_B8OP1c1D.js +0 -1
  310. package/dist/public/assets/_B8bacjbf.js.br +0 -0
  311. package/dist/public/assets/_BBkgNQeS.js +0 -1
  312. package/dist/public/assets/_BCswHrkD.js +0 -1
  313. package/dist/public/assets/_BFSINLI-.js +0 -7
  314. package/dist/public/assets/_BFSINLI-.js.br +0 -0
  315. package/dist/public/assets/_BFTr9gZX.js.br +0 -0
  316. package/dist/public/assets/_BHiKHJoJ.js.br +0 -0
  317. package/dist/public/assets/_BIHQhOfe.js.br +0 -0
  318. package/dist/public/assets/_BJfBGQ6w.js +0 -1
  319. package/dist/public/assets/_BK0uv9MH.js.br +0 -0
  320. package/dist/public/assets/_BKFPe3qb.js +0 -1
  321. package/dist/public/assets/_BL4YKfFD.js.br +0 -0
  322. package/dist/public/assets/_BLRVSmeM.js.br +0 -0
  323. package/dist/public/assets/_BMQ4URU4.js +0 -1
  324. package/dist/public/assets/_BPZKx3Jk.js.br +0 -0
  325. package/dist/public/assets/_BQUa7VNX.js +0 -1
  326. package/dist/public/assets/_BQc8MGMv.js +0 -1
  327. package/dist/public/assets/_BUPn6Mnz.js.br +0 -0
  328. package/dist/public/assets/_BWEmssXq.js.br +0 -0
  329. package/dist/public/assets/_BbWp0m5F.js +0 -1
  330. package/dist/public/assets/_BbXkdZHl.js +0 -12
  331. package/dist/public/assets/_BbXkdZHl.js.br +0 -0
  332. package/dist/public/assets/_Bcl_UOx6.js.br +0 -0
  333. package/dist/public/assets/_Bey11w4c.js.br +0 -0
  334. package/dist/public/assets/_BfG_-1HN.js.br +0 -0
  335. package/dist/public/assets/_BgfmMHXa.js +0 -1
  336. package/dist/public/assets/_BiRrfcmX.js +0 -1
  337. package/dist/public/assets/_BjbqQ_El.js.br +0 -0
  338. package/dist/public/assets/_Bq_e0MUr.js +0 -1
  339. package/dist/public/assets/_Br7uDnHv.js +0 -1
  340. package/dist/public/assets/_Bt0eukq2.js.br +0 -0
  341. package/dist/public/assets/_Bv-IlwQT.js.br +0 -0
  342. package/dist/public/assets/_BvgjMNxJ.js.br +0 -0
  343. package/dist/public/assets/_Bvs5mPNK.js +0 -1
  344. package/dist/public/assets/_BwLovCS6.js.br +0 -0
  345. package/dist/public/assets/_BwRBwNgB.js.br +0 -0
  346. package/dist/public/assets/_ByNP19fU.js +0 -1
  347. package/dist/public/assets/_BytqxSss.js.br +0 -0
  348. package/dist/public/assets/_C--AVrwD.js +0 -1
  349. package/dist/public/assets/_C-YTNMVV.js.br +0 -0
  350. package/dist/public/assets/_C04dnVHE.js +0 -1
  351. package/dist/public/assets/_C0OT-I8q.js +0 -1
  352. package/dist/public/assets/_C4KQumKg.js +0 -1
  353. package/dist/public/assets/_C6uxShhm.js.br +0 -0
  354. package/dist/public/assets/_C8pKiZNP.js.br +0 -0
  355. package/dist/public/assets/_C9puwxo3.js +0 -1
  356. package/dist/public/assets/_CBk6VRaa.js +0 -1
  357. package/dist/public/assets/_CCW3Aity.js +0 -1
  358. package/dist/public/assets/_CEa34aRI.js.br +0 -0
  359. package/dist/public/assets/_CGK3zib3.js.br +0 -0
  360. package/dist/public/assets/_CIL6tdUG.js +0 -1
  361. package/dist/public/assets/_CMONBIy5.js +0 -1
  362. package/dist/public/assets/_CMdmbeSE.js +0 -1
  363. package/dist/public/assets/_CQwfLnMn.js.br +0 -0
  364. package/dist/public/assets/_CUIoM8X2.js.br +0 -0
  365. package/dist/public/assets/_CUklb1HG.js.br +0 -0
  366. package/dist/public/assets/_CYRqamOW.js +0 -1
  367. package/dist/public/assets/_C_KC4T0e.js +0 -1
  368. package/dist/public/assets/_C_XITOho.js.br +0 -0
  369. package/dist/public/assets/_C_bUFg7j.js +0 -1
  370. package/dist/public/assets/_Cb9c_XDz.js +0 -1
  371. package/dist/public/assets/_Cc3XRkQD.js.br +0 -0
  372. package/dist/public/assets/_CdHUzIto.js +0 -1
  373. package/dist/public/assets/_CdRPhWHf.js +0 -1
  374. package/dist/public/assets/_Ce9LAY3j.js.br +0 -0
  375. package/dist/public/assets/_Chhk70ar.js.br +0 -0
  376. package/dist/public/assets/_ClN7MNw7.js +0 -1
  377. package/dist/public/assets/_Cmh5vtw6.js.br +0 -0
  378. package/dist/public/assets/_CmvjAFo-.js +0 -1
  379. package/dist/public/assets/_CoFSog2u.js +0 -1
  380. package/dist/public/assets/_CoVSfg3Z.js.br +0 -0
  381. package/dist/public/assets/_Cp1vX323.js +0 -1
  382. package/dist/public/assets/_CqX_aq_n.js +0 -1
  383. package/dist/public/assets/_CrtPk9tp.js.br +0 -0
  384. package/dist/public/assets/_Ct_ritl_.js.br +0 -0
  385. package/dist/public/assets/_CtknLycG.js.br +0 -0
  386. package/dist/public/assets/_Ctl8GBEj.js +0 -1
  387. package/dist/public/assets/_Ctyg3IJ4.js.br +0 -0
  388. package/dist/public/assets/_Cx_DSnTG.js.br +0 -0
  389. package/dist/public/assets/_D18W27gr.js.br +0 -0
  390. package/dist/public/assets/_D3CHmSre.js +0 -1
  391. package/dist/public/assets/_D3OrVUzk.js.br +0 -0
  392. package/dist/public/assets/_D3_VIrXA.js.br +0 -0
  393. package/dist/public/assets/_D3l_AtBV.js +0 -1
  394. package/dist/public/assets/_D4c79S9H.js +0 -1
  395. package/dist/public/assets/_D7G2pZM5.js.br +0 -0
  396. package/dist/public/assets/_D7JNBtDF.js +0 -1
  397. package/dist/public/assets/_D9V-500A.js.br +0 -0
  398. package/dist/public/assets/_DBQQMYHK.js.br +0 -0
  399. package/dist/public/assets/_DCb3fJRr.js.br +0 -0
  400. package/dist/public/assets/_DEOgcq8G.js.br +0 -0
  401. package/dist/public/assets/_DFRT7udX.js +0 -1
  402. package/dist/public/assets/_DHJlVcJW.js +0 -1
  403. package/dist/public/assets/_DI1qYvDw.js.br +0 -0
  404. package/dist/public/assets/_DIMN13up.js.br +0 -0
  405. package/dist/public/assets/_DJjH1Gev.js +0 -1
  406. package/dist/public/assets/_DKS31K16.js +0 -1
  407. package/dist/public/assets/_DOA1NutW.js.br +0 -0
  408. package/dist/public/assets/_DPS-LYLU.js +0 -1
  409. package/dist/public/assets/_DPjhX16_.js.br +0 -0
  410. package/dist/public/assets/_DRhFEV3p.js.br +0 -0
  411. package/dist/public/assets/_DRjmSjMB.js +0 -1
  412. package/dist/public/assets/_DS-RCqdz.js +0 -1
  413. package/dist/public/assets/_DSeY26wK.js.br +0 -0
  414. package/dist/public/assets/_DSp0n7-Z.js.br +0 -0
  415. package/dist/public/assets/_DTBHW2pT.js.br +0 -0
  416. package/dist/public/assets/_DVcj9rxV.js.br +0 -0
  417. package/dist/public/assets/_DYhHoMoq.js +0 -1
  418. package/dist/public/assets/_D_wYBGpz.js +0 -1
  419. package/dist/public/assets/_D_ymN6ch.js +0 -1
  420. package/dist/public/assets/_Dar0Jhi9.js.br +0 -0
  421. package/dist/public/assets/_Db3vDKRm.js +0 -1
  422. package/dist/public/assets/_DcuoB7C5.js +0 -1
  423. package/dist/public/assets/_DhYe_0Ng.js +0 -1
  424. package/dist/public/assets/_DidgbjGx.js +0 -1
  425. package/dist/public/assets/_DidlTP-o.js +0 -1
  426. package/dist/public/assets/_DigH8KZR.js +0 -1
  427. package/dist/public/assets/_DmDpRqr3.js +0 -1
  428. package/dist/public/assets/_DoJ5e3yk.js.br +0 -0
  429. package/dist/public/assets/_DoQbA796.js.br +0 -0
  430. package/dist/public/assets/_DocYIBLX.js +0 -1
  431. package/dist/public/assets/_Doi2BKea.js +0 -1
  432. package/dist/public/assets/_Dr2xSXBN.js.br +0 -0
  433. package/dist/public/assets/_DtJNC5Rn.js +0 -1
  434. package/dist/public/assets/_DtdwmQ4k.js +0 -1
  435. package/dist/public/assets/_DucJxgyZ.js.br +0 -0
  436. package/dist/public/assets/_DvOSNj0k.js.br +0 -0
  437. package/dist/public/assets/_DxmxNmie.js.br +0 -0
  438. package/dist/public/assets/_GJYB4WUU.js +0 -1
  439. package/dist/public/assets/_I64LjJr0.js.br +0 -0
  440. package/dist/public/assets/_IXX1CrDm.js +0 -1
  441. package/dist/public/assets/_J4kJcAJg.js.br +0 -0
  442. package/dist/public/assets/_PYKRwjO-.js.br +0 -0
  443. package/dist/public/assets/_ProcVwIG.js.br +0 -0
  444. package/dist/public/assets/_RvJ4aN_k.js.br +0 -0
  445. package/dist/public/assets/_T4x4vstZ.js.br +0 -0
  446. package/dist/public/assets/_TS3fzYUh.js.br +0 -0
  447. package/dist/public/assets/_U3MwWZoy.js +0 -1
  448. package/dist/public/assets/_Wml5S5pw.js.br +0 -0
  449. package/dist/public/assets/_Y1MV0Z0B.js.br +0 -0
  450. package/dist/public/assets/_YWJOgXKS.js.br +0 -0
  451. package/dist/public/assets/_Z_fC5zJJ.js.br +0 -0
  452. package/dist/public/assets/__prI0zQc.js.br +0 -0
  453. package/dist/public/assets/__tPIKfIT.js +0 -1
  454. package/dist/public/assets/_bzd_k347.js.br +0 -0
  455. package/dist/public/assets/_dH7pfZBT.js +0 -1
  456. package/dist/public/assets/_h6bUk2pq.js.br +0 -0
  457. package/dist/public/assets/_jqoWK4Vi.js.br +0 -0
  458. package/dist/public/assets/_n9U8owrb.js.br +0 -0
  459. package/dist/public/assets/_nFHWz9gP.js +0 -1
  460. package/dist/public/assets/_nVRAt3Bi.js +0 -1
  461. package/dist/public/assets/_pLefNFbU.js +0 -1
  462. package/dist/public/assets/_qWO-JZ3E.js +0 -1
  463. package/dist/public/assets/_qrMpRa1i.js.br +0 -0
  464. package/dist/public/assets/_r5_M-uhA.js.br +0 -0
  465. package/dist/public/assets/_r7eH7wR8.js +0 -1
  466. package/dist/public/assets/_r8khTeho.js.br +0 -0
  467. package/dist/public/assets/_rB7YBgt1.js.br +0 -0
  468. package/dist/public/assets/_sPlrHbtE.js.br +0 -0
  469. package/dist/public/assets/_sgTYDCYT.js +0 -1
  470. package/dist/public/assets/_uV3lUSAl.js +0 -1
  471. package/dist/public/assets/files-view-B11HuvZO.js +0 -2
  472. package/dist/public/assets/manage-workspace-VbGMSi7T.js +0 -2
  473. package/dist/public/assets/new-Czq_4CCR.js +0 -1
  474. package/dist/public/assets/new-workspace-umGMDrlM.js +0 -2
  475. package/dist/public/assets/review-view-D2eGCwuw.js +0 -2
  476. package/dist/public/assets/settings-Czq_4CCR.js +0 -1
  477. package/dist/public/assets/settings-page-BkWN1B4s.js +0 -2
  478. package/dist/public/assets/styles-BJQqKk3S.css.br +0 -0
  479. package/dist/public/assets/w-Czq_4CCR.js +0 -1
  480. package/dist/public/assets/w._-Bk9APcPa.js +0 -1
  481. package/dist/public/assets/w._-Czq_4CCR.js +0 -1
  482. package/dist/public/assets/w._-LAc_WZW-.js +0 -1
@@ -1,5 +1,5 @@
1
- const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/_Bey11w4c.js","assets/_DoQbA796.js","assets/_BLRVSmeM.js","assets/_DIMN13up.js","assets/_C-YTNMVV.js","assets/_BytqxSss.js","assets/_Wml5S5pw.js","assets/__prI0zQc.js","assets/_Y1MV0Z0B.js","assets/_BHiKHJoJ.js","assets/_B4DVY_7W.js","assets/_0TAu89jO.js","assets/_BXeXVLqQ.js","assets/_DxmxNmie.js","assets/_BWEmssXq.js","assets/_C9Xj1pPE.js","assets/_CQwfLnMn.js","assets/_YkIvmgMd.js","assets/_bTVj8UrX.js","assets/_BAfg1_wL.js","assets/_gzcpVVnB.js","assets/_r8khTeho.js","assets/_BL4YKfFD.js","assets/_7o-NFNP0.js","assets/_DOA1NutW.js","assets/_I64LjJr0.js","assets/_BFTr9gZX.js","assets/_Bcl_UOx6.js","assets/_2EdJdhqM.js","assets/_D3_VIrXA.js","assets/_Ctyg3IJ4.js","assets/_DEOgcq8G.js","assets/_B8bacjbf.js","assets/_Bt0eukq2.js","assets/_Cmh5vtw6.js","assets/_BjbqQ_El.js","assets/_CUIoM8X2.js","assets/_CrtPk9tp.js","assets/_DvOSNj0k.js","assets/_6TaxzICZ.js","assets/_BaHq4SXp.js","assets/_BYOwaDjH.js","assets/_CQJs3lWb.js","assets/_CYNrtFtB.js","assets/_DmIc4jLQ.js","assets/_DbYA3moe.js","assets/_CBce3t8t.js","assets/_DYvRD3hg.js","assets/_Dl-2e7rI.js","assets/_woXpYk--.js","assets/_CRavszYj.js","assets/_DTBHW2pT.js","assets/_n9U8owrb.js","assets/_0tpkQ33d.js","assets/_C_XITOho.js","assets/_CGK3zib3.js","assets/_CEa34aRI.js","assets/_Dx-8-gkx.js","assets/_DekxQCZG.js","assets/_C8oCnwJJ.js","assets/_BwLovCS6.js","assets/_B8M3Ojiy.js","assets/_BvgjMNxJ.js","assets/_BfG_-1HN.js","assets/_C8pKiZNP.js","assets/_DoJ5e3yk.js","assets/_r5_M-uhA.js","assets/_Ct_ritl_.js","assets/_D18W27gr.js","assets/_BPZKx3Jk.js","assets/_DVTAwKKz.js","assets/_YWJOgXKS.js","assets/_DWQbgPoS.js","assets/_DJMQeKeT.js","assets/_DBQQMYHK.js","assets/_Chhk70ar.js","assets/_BK0uv9MH.js","assets/_DqKBuwfJ.js","assets/_oqKa8noW.js","assets/_CnvKMtbv.js","assets/_IyjqRm3v.js","assets/_rLFTqkRN.js","assets/_CacY0gHj.js","assets/_B5eOa1yu.js","assets/_Dixweg8N.js","assets/_D1A_Heim.js","assets/_O90oeIOV.js","assets/_CUklb1HG.js","assets/_DOwzaHZ0.js","assets/_B3gFvitq.js","assets/_Cfkwpbl8.js","assets/_BiFt_7mu.js","assets/_CMLA9XwU.js","assets/_DSeY26wK.js","assets/_BwRBwNgB.js","assets/_DPjhX16_.js","assets/_jqoWK4Vi.js","assets/_Bv-IlwQT.js","assets/_Bj61d0ZC.js","assets/_DRhFEV3p.js","assets/_DB-OQ-9y.js","assets/_Cvrh5tZx.js","assets/_DtkImFGo.js","assets/_PYKRwjO-.js","assets/_L8AbGenz.js","assets/_ByJddavk.js","assets/_J4kJcAJg.js","assets/_CoVSfg3Z.js","assets/_rB7YBgt1.js","assets/_D9V-500A.js","assets/_ProcVwIG.js","assets/_Dar0Jhi9.js","assets/_RvJ4aN_k.js","assets/_qdxAdBWQ.js","assets/_Ci_nEsc7.js","assets/_CYpm1nAK.js","assets/_BNLmms1o.js","assets/_CCSX75yM.js","assets/_CyEgAFGc.js","assets/_Dh5ihWbf.js","assets/_B2gwz-sJ.js","assets/_h6bUk2pq.js","assets/_Cc3XRkQD.js","assets/_Ce9LAY3j.js","assets/_B6D30XZt.js"])))=>i.map(i=>d[i]);
2
- import{A as e,At as t,B as n,G as r,H as i,Ht as a,It as o,J as s,K as c,Lt as l,N as u,O as d,Ot as f,R as p,V as m,W as h,X as g,Z as _,j as v,jt as y,q as b}from"./_8nlKiGBi.js";import{A as x,B as S,D as C,E as w,F as T,G as E,H as ee,I as D,J as O,K as k,L as te,N as A,P as j,R as M,U as N,V as P,W as F,_ as ne,a as I,b as L,i as R,l as re,n as ie,r as ae,t as z,u as oe,v as B,x as se,y as V,z as H}from"./_CyXOHGY9.js";import{$t as ce,A as le,C as ue,Ct as de,D as fe,E as pe,F as me,H as he,Hn as ge,J as _e,Jn as ve,Kn as U,L as ye,Mt as be,O as xe,Qt as Se,S as Ce,T as we,Vn as Te,W as Ee,Wn as De,a as Oe,bt as ke,i as Ae,j as je,k as Me,n as Ne,nn as Pe,r as Fe,rt as Ie,t as Le,tt as Re,w as ze,yn as Be}from"./_T4x4vstZ.js";import{a as Ve,i as He,n as Ue,r as We,t as Ge}from"./_DVcj9rxV.js";import{$ as Ke,A as qe,B as Je,D as Ye,E as Xe,F as Ze,I as Qe,L as $e,M as et,N as W,O as tt,P as nt,S as rt,a as it,ct as at,ft as ot,i as st,j as ct,k as lt,n as ut,r as dt,st as ft,t as pt,ut as mt,z as ht}from"./_CtknLycG.js";import{B as gt,C as _t,I as vt,L as yt,P as bt,S as xt,T as St,W as Ct,a as wt,c as Tt,i as Et,l as Dt,n as Ot,o as kt,r as At,s as jt,t as Mt,u as Nt,w as Pt,x as Ft}from"./_sPlrHbtE.js";import{t as It}from"./_D2pdXUO3.js";import{a as Lt,c as Rt,d as zt,f as Bt,i as Vt,l as Ht,n as Ut,o as Wt,p as Gt,r as Kt,s as qt,t as Jt,u as Yt}from"./_BUPn6Mnz.js";import{t as Xt}from"./_CcFCI5Av.js";import{_ as Zt,a as Qt,b as $t,c as en,d as tn,f as nn,h as rn,l as an,m as on,p as sn,t as cn,u as ln,v as un,y as dn}from"./_Z_fC5zJJ.js";import{a as fn,c as pn,i as mn,n as hn,r as gn,t as _n}from"./_BOgpQXmJ.js";import{a as vn,i as yn,n as bn,r as xn,t as Sn}from"./_DYhHoMoq.js";var Cn=Object.create,wn=Object.defineProperty,Tn=Object.getOwnPropertyDescriptor,En=Object.getOwnPropertyNames,Dn=Object.getPrototypeOf,On=Object.prototype.hasOwnProperty,kn=(e,t)=>()=>(t||(e((t={exports:{}}).exports,t),e=null),t.exports),An=(e,t)=>{let n={};for(var r in e)wn(n,r,{get:e[r],enumerable:!0});return t||wn(n,Symbol.toStringTag,{value:`Module`}),n},jn=(e,t,n,r)=>{if(t&&typeof t==`object`||typeof t==`function`)for(var i=En(t),a=0,o=i.length,s;a<o;a++)s=i[a],!On.call(e,s)&&s!==n&&wn(e,s,{get:(e=>t[e]).bind(null,s),enumerable:!(r=Tn(t,s))||r.enumerable});return e},Mn=(e,t,n)=>(n=e==null?{}:Cn(Dn(e)),jn(t||!e||!e.__esModule||!On.call(e,`default`)?wn(n,`default`,{value:e,enumerable:!0}):n,e)),Nn=`diffs-container`,Pn=(()=>{try{return!1}catch{return!1}})(),Fn=/(?=^From [a-f0-9]+ .+$)/m,In=/(?=^diff --git)/gm,Ln=/(?<=\n)/,Rn=/^(---|\+\+\+)\s+([^\t\r\n]+)/,zn=/^index ([0-9a-f]+)\.\.([0-9a-f]+)(?: (\d+))?$/i,Bn=`header-prefix`,Vn=`header-filename-suffix`,Hn=`header-metadata`,Un=`header-custom`,Wn={dark:`pierre-dark`,light:`pierre-light`},Gn=`data-theme-css`,Kn=`data-unsafe-css`,qn=`data-diffs-scrollbar-measure`,Jn=`data-diffs-code-view-header`,Yn=`data-diffs-code-view-footer`,Xn=`--diffs-scrollbar-gutter-measured`,Zn=1e5,Qn={hunkLineCount:50,lineHeight:20,diffHeaderHeight:44,spacing:8},$n={...Qn,hunkLineCount:1},er={paddingTop:8,paddingBottom:8,gap:8},tr={omega:.015,positionEpsilon:.5,velocityEpsilon:.05},nr=Object.freeze({fromStart:0,fromEnd:0}),rr={startingLine:0,totalLines:1/0,bufferBefore:0,bufferAfter:0},ir={startingLine:0,totalLines:0,bufferBefore:0,bufferAfter:0},ar=new Map,or=new Map,sr=new Map,cr=new Set;function lr(e){for(let t of Array.isArray(e)?e:[e])if(t!==`text`&&t!==`ansi`&&!cr.has(t))return!1;return!0}function ur(e,t){e=Array.isArray(e)?e:[e];for(let n of e){if(cr.has(n.name))continue;let e=ar.get(n.name);e??(e=n,ar.set(n.name,e));let r=e.data.find(t=>t.name===e.name||t.aliases?.includes(e.name)===!0);if(r==null)throw Error(`attachResolvedLanguages: No returned grammar declares "${e.name}" as its name or an alias.`);t.loadLanguageSync(e.data);try{t.getLanguage(e.name)}catch{throw Error(`attachResolvedLanguages: "${r.name}" is already loaded without alias "${e.name}". Load the alias first or give the grammar a unique name.`)}cr.add(e.name)}}function dr(){return typeof WorkerGlobalScope<`u`&&typeof self<`u`&&self instanceof WorkerGlobalScope}var fr=Object.defineProperty,pr=Object.getOwnPropertyDescriptor,mr=Object.getOwnPropertyNames,hr=Object.prototype.hasOwnProperty,gr=(e,t)=>{let n={};for(var r in e)fr(n,r,{get:e[r],enumerable:!0});return t||fr(n,Symbol.toStringTag,{value:`Module`}),n},_r=(e,t,n,r)=>{if(t&&typeof t==`object`||typeof t==`function`)for(var i=mr(t),a=0,o=i.length,s;a<o;a++)s=i[a],!hr.call(e,s)&&s!==n&&fr(e,s,{get:(e=>t[e]).bind(null,s),enumerable:!(r=pr(t,s))||r.enumerable});return e},vr=(e,t,n)=>(_r(e,t,`default`),n&&_r(n,t,`default`)),yr=[{id:`abap`,name:`ABAP`,import:(()=>z(()=>import(`./_CLvhMVsD.js`),[]))},{id:`actionscript-3`,name:`ActionScript`,aliases:[`actionscript`,`as3`],import:(()=>z(()=>import(`./_Cs6JJXT5.js`),[]))},{id:`ada`,name:`Ada`,import:(()=>z(()=>import(`./_C5qYipkI.js`),[]))},{id:`ahk`,name:`AutoHotkey`,aliases:[`ahk1`],import:(()=>z(()=>import(`./_CA9gdOdF.js`),[]))},{id:`ahk2`,name:`AutoHotkey2`,import:(()=>z(()=>import(`./__6rzW9BS.js`),[]))},{id:`angular-html`,name:`Angular HTML`,import:(()=>z(()=>import(`./_Bey11w4c.js`).then(e=>e.n),__vite__mapDeps([0,1,2,3])))},{id:`angular-ts`,name:`Angular TypeScript`,import:(()=>z(()=>import(`./_C-YTNMVV.js`),__vite__mapDeps([4,0,1,2,3,5])))},{id:`apache`,name:`Apache Conf`,import:(()=>z(()=>import(`./_U0d_L8uA.js`),[]))},{id:`apex`,name:`Apex`,import:(()=>z(()=>import(`./_KFGFyKwG.js`),[]))},{id:`apl`,name:`APL`,import:(()=>z(()=>import(`./_Wml5S5pw.js`),__vite__mapDeps([6,2,3,1,7,8,9])))},{id:`applescript`,name:`AppleScript`,import:(()=>z(()=>import(`./_CCn79oCD.js`),[]))},{id:`ara`,name:`Ara`,import:(()=>z(()=>import(`./_4CJ0cIlV.js`),[]))},{id:`asciidoc`,name:`AsciiDoc`,aliases:[`adoc`],import:(()=>z(()=>import(`./_SCjQUq34.js`),[]))},{id:`asm`,name:`Assembly`,import:(()=>z(()=>import(`./_Cmm7eHzH.js`),[]))},{id:`astro`,name:`Astro`,import:(()=>z(()=>import(`./_B4DVY_7W.js`),__vite__mapDeps([10,2,3,9,11,12,13])))},{id:`awk`,name:`AWK`,import:(()=>z(()=>import(`./_BWXHIvNe.js`),[]))},{id:`ballerina`,name:`Ballerina`,import:(()=>z(()=>import(`./_B7ZEbQpA.js`),[]))},{id:`bat`,name:`Batch File`,aliases:[`batch`,`cmd`],import:(()=>z(()=>import(`./_qdxAdBWQ.js`),[]))},{id:`beancount`,name:`Beancount`,import:(()=>z(()=>import(`./_D-usSTwE.js`),[]))},{id:`berry`,name:`Berry`,aliases:[`be`],import:(()=>z(()=>import(`./_DKpUyyne.js`),[]))},{id:`bibtex`,name:`BibTeX`,import:(()=>z(()=>import(`./_Ci_nEsc7.js`),[]))},{id:`bicep`,name:`Bicep`,import:(()=>z(()=>import(`./_CUHmPFLl.js`),[]))},{id:`bird2`,name:`BIRD2 Configuration`,aliases:[`bird`],import:(()=>z(()=>import(`./_CYIUgYqB.js`),[]))},{id:`blade`,name:`Blade`,import:(()=>z(()=>import(`./_BWEmssXq.js`),__vite__mapDeps([14,2,3,1,7,8,9,15,16])))},{id:`bsl`,name:`1C (Enterprise)`,aliases:[`1c`],import:(()=>z(()=>import(`./_YkIvmgMd.js`),__vite__mapDeps([17,18])))},{id:`c`,name:`C`,import:(()=>z(()=>import(`./_BL4YKfFD.js`).then(e=>e.n),[]))},{id:`c3`,name:`C3`,import:(()=>z(()=>import(`./_D0apG41V.js`),[]))},{id:`cadence`,name:`Cadence`,aliases:[`cdc`],import:(()=>z(()=>import(`./_CQ2zXKGN.js`),[]))},{id:`cairo`,name:`Cairo`,import:(()=>z(()=>import(`./_BAfg1_wL.js`),__vite__mapDeps([19,20])))},{id:`chapel`,name:`Chapel`,aliases:[`chpl`],import:(()=>z(()=>import(`./_r8khTeho.js`),__vite__mapDeps([21,22])))},{id:`clarity`,name:`Clarity`,import:(()=>z(()=>import(`./_CtfBBspg.js`),[]))},{id:`clojure`,name:`Clojure`,aliases:[`clj`],import:(()=>z(()=>import(`./_DqKBuwfJ.js`),[]))},{id:`cmake`,name:`CMake`,import:(()=>z(()=>import(`./_Bj61d0ZC.js`),[]))},{id:`cobol`,name:`COBOL`,import:(()=>z(()=>import(`./_7o-NFNP0.js`),__vite__mapDeps([23,1,2,3,8])))},{id:`codeowners`,name:`CODEOWNERS`,import:(()=>z(()=>import(`./_C8r90Shi.js`),[]))},{id:`codeql`,name:`CodeQL`,aliases:[`ql`],import:(()=>z(()=>import(`./_oeQT6MSM.js`),[]))},{id:`coffee`,name:`CoffeeScript`,aliases:[`coffeescript`],import:(()=>z(()=>import(`./_DOA1NutW.js`),__vite__mapDeps([24,2])))},{id:`common-lisp`,name:`Common Lisp`,aliases:[`lisp`],import:(()=>z(()=>import(`./_Cv5bFMCO.js`),[]))},{id:`coq`,name:`Rocq`,import:(()=>z(()=>import(`./_DuBRPxYg.js`),[]))},{id:`cpp`,name:`C++`,aliases:[`c++`],import:(()=>z(()=>import(`./_I64LjJr0.js`).then(e=>e.n),__vite__mapDeps([25,26,27,22])))},{id:`crystal`,name:`Crystal`,import:(()=>z(()=>import(`./_2EdJdhqM.js`),__vite__mapDeps([28,2,3,1,16,22,29])))},{id:`csharp`,name:`C#`,aliases:[`c#`,`cs`],import:(()=>z(()=>import(`./_oqKa8noW.js`),[]))},{id:`css`,name:`CSS`,import:(()=>z(()=>import(`./_DIMN13up.js`).then(e=>e.n),[]))},{id:`csv`,name:`CSV`,import:(()=>z(()=>import(`./_Dx-8-gkx.js`),[]))},{id:`cue`,name:`CUE`,import:(()=>z(()=>import(`./_CE9AQfxI.js`),[]))},{id:`cypher`,name:`Cypher`,aliases:[`cql`],import:(()=>z(()=>import(`./_ClKdZ_lG.js`),[]))},{id:`d`,name:`D`,import:(()=>z(()=>import(`./_qD-0Kul2.js`),[]))},{id:`dart`,name:`Dart`,import:(()=>z(()=>import(`./_CnvKMtbv.js`),[]))},{id:`dax`,name:`DAX`,import:(()=>z(()=>import(`./_BkyTk9wS.js`),[]))},{id:`desktop`,name:`Desktop`,import:(()=>z(()=>import(`./_Dlh5hvp9.js`),[]))},{id:`diff`,name:`Diff`,import:(()=>z(()=>import(`./_woXpYk--.js`),[]))},{id:`docker`,name:`Dockerfile`,aliases:[`dockerfile`],import:(()=>z(()=>import(`./_IyjqRm3v.js`),[]))},{id:`dotenv`,name:`dotEnv`,import:(()=>z(()=>import(`./__5a1GRtc.js`),[]))},{id:`dream-maker`,name:`Dream Maker`,import:(()=>z(()=>import(`./_DW3nJb8Q.js`),[]))},{id:`edge`,name:`Edge`,import:(()=>z(()=>import(`./_Ctyg3IJ4.js`),__vite__mapDeps([30,1,2,3,11,15])))},{id:`elixir`,name:`Elixir`,import:(()=>z(()=>import(`./_DEOgcq8G.js`),__vite__mapDeps([31,1,2,3])))},{id:`elm`,name:`Elm`,import:(()=>z(()=>import(`./_B8bacjbf.js`),__vite__mapDeps([32,27,22])))},{id:`emacs-lisp`,name:`Emacs Lisp`,aliases:[`elisp`],import:(()=>z(()=>import(`./_c_oH4hRZ.js`),[]))},{id:`erb`,name:`ERB`,import:(()=>z(()=>import(`./_Bt0eukq2.js`),__vite__mapDeps([33,1,2,3,34,7,8,16,22,25,26,27,29,35,36,11,13,37,38,39])))},{id:`erlang`,name:`Erlang`,aliases:[`erl`],import:(()=>z(()=>import(`./_BaHq4SXp.js`),__vite__mapDeps([40,41])))},{id:`fennel`,name:`Fennel`,import:(()=>z(()=>import(`./_DQxkIbk2.js`),[]))},{id:`fish`,name:`Fish`,import:(()=>z(()=>import(`./_BJitypiv.js`),[]))},{id:`fluent`,name:`Fluent`,aliases:[`ftl`],import:(()=>z(()=>import(`./_C03EYrpw.js`),[]))},{id:`fortran-fixed-form`,name:`Fortran (Fixed Form)`,aliases:[`f`,`for`,`f77`],import:(()=>z(()=>import(`./_CQJs3lWb.js`),__vite__mapDeps([42,43])))},{id:`fortran-free-form`,name:`Fortran (Free Form)`,aliases:[`f90`,`f95`,`f03`,`f08`,`f18`],import:(()=>z(()=>import(`./_CYNrtFtB.js`),[]))},{id:`fsharp`,name:`F#`,aliases:[`f#`,`fs`],import:(()=>z(()=>import(`./_DmIc4jLQ.js`),__vite__mapDeps([44,41])))},{id:`gdresource`,name:`GDResource`,aliases:[`tscn`,`tres`],import:(()=>z(()=>import(`./_DbYA3moe.js`),__vite__mapDeps([45,46,47])))},{id:`gdscript`,name:`GDScript`,aliases:[`gd`],import:(()=>z(()=>import(`./_DYvRD3hg.js`),[]))},{id:`gdshader`,name:`GDShader`,import:(()=>z(()=>import(`./_CBce3t8t.js`),[]))},{id:`genie`,name:`Genie`,import:(()=>z(()=>import(`./_CV2tkWYe.js`),[]))},{id:`gherkin`,name:`Gherkin`,import:(()=>z(()=>import(`./_DExj1W_8.js`),[]))},{id:`git-commit`,name:`Git Commit Message`,import:(()=>z(()=>import(`./_Dl-2e7rI.js`),__vite__mapDeps([48,49])))},{id:`git-rebase`,name:`Git Rebase Message`,import:(()=>z(()=>import(`./_CRavszYj.js`),__vite__mapDeps([50,29])))},{id:`gleam`,name:`Gleam`,import:(()=>z(()=>import(`./_CSRkHgEL.js`),[]))},{id:`glimmer-js`,name:`Glimmer JS`,aliases:[`gjs`],import:(()=>z(()=>import(`./_DTBHW2pT.js`),__vite__mapDeps([51,2,3,1,11])))},{id:`glimmer-ts`,name:`Glimmer TS`,aliases:[`gts`],import:(()=>z(()=>import(`./_n9U8owrb.js`),__vite__mapDeps([52,2,3,1,11])))},{id:`glsl`,name:`GLSL`,import:(()=>z(()=>import(`./_Bcl_UOx6.js`).then(e=>e.n),__vite__mapDeps([27,22])))},{id:`gn`,name:`GN`,import:(()=>z(()=>import(`./_ilITqXS6.js`),[]))},{id:`gnuplot`,name:`Gnuplot`,import:(()=>z(()=>import(`./_7GGW24-e.js`),[]))},{id:`go`,name:`Go`,import:(()=>z(()=>import(`./_rLFTqkRN.js`),[]))},{id:`graphql`,name:`GraphQL`,aliases:[`gql`],import:(()=>z(()=>import(`./_CUIoM8X2.js`).then(e=>e.n),__vite__mapDeps([36,2,11,13,37])))},{id:`groovy`,name:`Groovy`,import:(()=>z(()=>import(`./_CacY0gHj.js`),[]))},{id:`hack`,name:`Hack`,import:(()=>z(()=>import(`./_0tpkQ33d.js`),__vite__mapDeps([53,1,2,3,16])))},{id:`haml`,name:`Ruby Haml`,import:(()=>z(()=>import(`./_BjbqQ_El.js`).then(e=>e.n),__vite__mapDeps([35,2,3])))},{id:`handlebars`,name:`Handlebars`,aliases:[`hbs`],import:(()=>z(()=>import(`./_C_XITOho.js`),__vite__mapDeps([54,2,3,1,39])))},{id:`haskell`,name:`Haskell`,aliases:[`hs`],import:(()=>z(()=>import(`./_D8IpX4py.js`),[]))},{id:`haxe`,name:`Haxe`,import:(()=>z(()=>import(`./_C8oCnwJJ.js`),[]))},{id:`hcl`,name:`HashiCorp HCL`,import:(()=>z(()=>import(`./_Dh228itO.js`),[]))},{id:`hjson`,name:`Hjson`,import:(()=>z(()=>import(`./_CxZEssPk.js`),[]))},{id:`hlsl`,name:`HLSL`,import:(()=>z(()=>import(`./_Cvrh5tZx.js`),[]))},{id:`html`,name:`HTML`,import:(()=>z(()=>import(`./_DoQbA796.js`).then(e=>e.n),__vite__mapDeps([1,2,3])))},{id:`html-derivative`,name:`HTML (Derivative)`,import:(()=>z(()=>import(`./_C9Xj1pPE.js`),__vite__mapDeps([15,1,2,3])))},{id:`http`,name:`HTTP`,import:(()=>z(()=>import(`./_CGK3zib3.js`),__vite__mapDeps([55,7,8,9,29,36,2,11,13,37])))},{id:`hurl`,name:`Hurl`,import:(()=>z(()=>import(`./_CEa34aRI.js`),__vite__mapDeps([56,7,8,57,36,2,11,13,37])))},{id:`hxml`,name:`HXML`,import:(()=>z(()=>import(`./_DekxQCZG.js`),__vite__mapDeps([58,59])))},{id:`hy`,name:`Hy`,import:(()=>z(()=>import(`./_CZbG8q4J.js`),[]))},{id:`imba`,name:`Imba`,import:(()=>z(()=>import(`./_DsUTQ-LC.js`),[]))},{id:`ini`,name:`INI`,aliases:[`properties`],import:(()=>z(()=>import(`./_B5eOa1yu.js`),[]))},{id:`java`,name:`Java`,import:(()=>z(()=>import(`./_Y1MV0Z0B.js`).then(e=>e.n),[]))},{id:`javascript`,name:`JavaScript`,aliases:[`js`,`cjs`,`mjs`],import:(()=>z(()=>import(`./_BLRVSmeM.js`).then(e=>e.n),[]))},{id:`jinja`,name:`Jinja`,import:(()=>z(()=>import(`./_BwLovCS6.js`),__vite__mapDeps([60,1,2,3])))},{id:`jison`,name:`Jison`,import:(()=>z(()=>import(`./_B8M3Ojiy.js`),__vite__mapDeps([61,2])))},{id:`json`,name:`JSON`,import:(()=>z(()=>import(`./_BHiKHJoJ.js`).then(e=>e.n),[]))},{id:`json5`,name:`JSON5`,import:(()=>z(()=>import(`./_BR5RXkoi.js`),[]))},{id:`jsonc`,name:`JSON with Comments`,import:(()=>z(()=>import(`./_CYpm1nAK.js`),[]))},{id:`jsonl`,name:`JSON Lines`,import:(()=>z(()=>import(`./_CmCQp5Yx.js`),[]))},{id:`jsonnet`,name:`Jsonnet`,import:(()=>z(()=>import(`./_CJTPZ8u_.js`),[]))},{id:`jssm`,name:`JSSM`,aliases:[`fsl`],import:(()=>z(()=>import(`./_DXw9l8Rf.js`),[]))},{id:`jsx`,name:`JSX`,import:(()=>z(()=>import(`./_CrtPk9tp.js`).then(e=>e.n),[]))},{id:`julia`,name:`Julia`,aliases:[`jl`],import:(()=>z(()=>import(`./_BvgjMNxJ.js`),__vite__mapDeps([62,2,16,20,25,26,27,22,63])))},{id:`just`,name:`Just`,aliases:[`justfile`],import:(()=>z(()=>import(`./_C8pKiZNP.js`),__vite__mapDeps([64,2,11,20,29,34,3,1,7,8,16,22,25,26,27,35,36,13,37,38,39,65])))},{id:`kdl`,name:`KDL`,import:(()=>z(()=>import(`./_CsD5j6eV.js`),[]))},{id:`kotlin`,name:`Kotlin`,aliases:[`kt`,`kts`],import:(()=>z(()=>import(`./_DhhofPvG.js`),[]))},{id:`kusto`,name:`Kusto`,aliases:[`kql`],import:(()=>z(()=>import(`./_C7mF5XQf.js`),[]))},{id:`latex`,name:`LaTeX`,import:(()=>z(()=>import(`./_r5_M-uhA.js`),__vite__mapDeps([66,67,63])))},{id:`lean`,name:`Lean 4`,aliases:[`lean4`],import:(()=>z(()=>import(`./_CewbzKMR.js`),[]))},{id:`less`,name:`Less`,import:(()=>z(()=>import(`./_DVTAwKKz.js`),[]))},{id:`liquid`,name:`Liquid`,import:(()=>z(()=>import(`./_D18W27gr.js`),__vite__mapDeps([68,2,3,1,9])))},{id:`llvm`,name:`LLVM IR`,import:(()=>z(()=>import(`./_DqHOMS-s.js`),[]))},{id:`log`,name:`Log file`,import:(()=>z(()=>import(`./_BNLmms1o.js`),[]))},{id:`logo`,name:`Logo`,import:(()=>z(()=>import(`./_Cluzi2Zq.js`),[]))},{id:`lua`,name:`Lua`,import:(()=>z(()=>import(`./_DvOSNj0k.js`).then(e=>e.n),__vite__mapDeps([38,22])))},{id:`luau`,name:`Luau`,import:(()=>z(()=>import(`./_C2pBCSgt.js`),[]))},{id:`make`,name:`Makefile`,aliases:[`makefile`],import:(()=>z(()=>import(`./_Dixweg8N.js`),[]))},{id:`markdown`,name:`Markdown`,aliases:[`md`],import:(()=>z(()=>import(`./_BYOwaDjH.js`),[]))},{id:`marko`,name:`Marko`,import:(()=>z(()=>import(`./_BPZKx3Jk.js`),__vite__mapDeps([69,3,5,11,70])))},{id:`matlab`,name:`MATLAB`,import:(()=>z(()=>import(`./_D7qyCx1q.js`),[]))},{id:`mdc`,name:`MDC`,import:(()=>z(()=>import(`./_YWJOgXKS.js`),__vite__mapDeps([71,15,1,2,3,39,41])))},{id:`mdx`,name:`MDX`,import:(()=>z(()=>import(`./_DQZ5AkYe.js`),[]))},{id:`mermaid`,name:`Mermaid`,aliases:[`mmd`],import:(()=>z(()=>import(`./_BxpfTIzt.js`),[]))},{id:`mipsasm`,name:`MIPS Assembly`,aliases:[`mips`],import:(()=>z(()=>import(`./_BMqwQI7S.js`),[]))},{id:`mojo`,name:`Mojo`,import:(()=>z(()=>import(`./_fg40_ntQ.js`),[]))},{id:`moonbit`,name:`MoonBit`,aliases:[`mbt`,`mbti`],import:(()=>z(()=>import(`./_DgjMoLWr.js`),[]))},{id:`move`,name:`Move`,import:(()=>z(()=>import(`./_BYnGhZoM.js`),[]))},{id:`narrat`,name:`Narrat Language`,aliases:[`nar`],import:(()=>z(()=>import(`./__X_XdTYD.js`),[]))},{id:`nextflow`,name:`Nextflow`,aliases:[`nf`],import:(()=>z(()=>import(`./_DWQbgPoS.js`),__vite__mapDeps([72,73])))},{id:`nextflow-groovy`,name:`Nextflow Groovy`,import:(()=>z(()=>import(`./_DJMQeKeT.js`),[]))},{id:`nginx`,name:`Nginx`,import:(()=>z(()=>import(`./_DBQQMYHK.js`),__vite__mapDeps([74,38,22])))},{id:`nim`,name:`Nim`,import:(()=>z(()=>import(`./_Chhk70ar.js`),__vite__mapDeps([75,2,3,1,7,8,22,27,41])))},{id:`nix`,name:`Nix`,import:(()=>z(()=>import(`./_IvuFDN5E.js`),[]))},{id:`nsis`,name:`NSIS`,import:(()=>z(()=>import(`./_CjNLYCLg.js`),[]))},{id:`nushell`,name:`nushell`,aliases:[`nu`],import:(()=>z(()=>import(`./_DHYfO66s.js`),[]))},{id:`objective-c`,name:`Objective-C`,aliases:[`objc`],import:(()=>z(()=>import(`./_D1A_Heim.js`),[]))},{id:`objective-cpp`,name:`Objective-C++`,import:(()=>z(()=>import(`./_BsSzOQcm.js`),[]))},{id:`ocaml`,name:`OCaml`,import:(()=>z(()=>import(`./_O90oeIOV.js`),[]))},{id:`odin`,name:`Odin`,import:(()=>z(()=>import(`./_B1RWQWA5.js`),[]))},{id:`openscad`,name:`OpenSCAD`,aliases:[`scad`],import:(()=>z(()=>import(`./_BUDT5pXO.js`),[]))},{id:`org`,name:`Org Markup`,import:(()=>z(()=>import(`./_BK0uv9MH.js`),__vite__mapDeps([76,2,3,1,5,8,7,9,11,13,16,22,20,77,24,26,25,27,29,78,79,49,80,31,38,39,34,35,36,37,41,40,48,50,81,82,83,63,65,66,67,70,84,75,85,86,87,88,89,90,91,92,93])))},{id:`pascal`,name:`Pascal`,import:(()=>z(()=>import(`./_4ZHwLPI5.js`),[]))},{id:`perl`,name:`Perl`,import:(()=>z(()=>import(`./_DoJ5e3yk.js`),__vite__mapDeps([65,2,3,1,7,8,16])))},{id:`php`,name:`PHP`,import:(()=>z(()=>import(`./_CUklb1HG.js`),__vite__mapDeps([87,2,3,1,7,8,9,16])))},{id:`pkl`,name:`Pkl`,import:(()=>z(()=>import(`./_ot-7Btpt.js`),[]))},{id:`plsql`,name:`PL/SQL`,import:(()=>z(()=>import(`./_DGHpHOYJ.js`),[]))},{id:`po`,name:`Gettext PO`,aliases:[`pot`,`potx`],import:(()=>z(()=>import(`./_BiJDBrnU.js`),[]))},{id:`polar`,name:`Polar`,import:(()=>z(()=>import(`./_C7UOKdEL.js`),[]))},{id:`postcss`,name:`PostCSS`,import:(()=>z(()=>import(`./_BXeXVLqQ.js`),[]))},{id:`powerquery`,name:`PowerQuery`,import:(()=>z(()=>import(`./_DNMTfnFr.js`),[]))},{id:`powershell`,name:`PowerShell`,aliases:[`ps`,`ps1`,`pwsh`],import:(()=>z(()=>import(`./_CCSX75yM.js`),[]))},{id:`prisma`,name:`Prisma`,import:(()=>z(()=>import(`./_DMgNhnYS.js`),[]))},{id:`prolog`,name:`Prolog`,import:(()=>z(()=>import(`./_iXnhIJG7.js`),[]))},{id:`proto`,name:`Protocol Buffer 3`,aliases:[`protobuf`],import:(()=>z(()=>import(`./_DB4EqR-F.js`),[]))},{id:`pug`,name:`Pug`,aliases:[`jade`],import:(()=>z(()=>import(`./_BwRBwNgB.js`),__vite__mapDeps([94,2,3,1])))},{id:`puppet`,name:`Puppet`,import:(()=>z(()=>import(`./_CDv2pdJW.js`),[]))},{id:`purescript`,name:`PureScript`,import:(()=>z(()=>import(`./_9MfHhQsQ.js`),[]))},{id:`python`,name:`Python`,aliases:[`py`],import:(()=>z(()=>import(`./_gzcpVVnB.js`),[]))},{id:`qml`,name:`QML`,import:(()=>z(()=>import(`./_DPjhX16_.js`),__vite__mapDeps([95,2])))},{id:`qmldir`,name:`QML Directory`,import:(()=>z(()=>import(`./_DCQb3MpD.js`),[]))},{id:`qss`,name:`Qt Style Sheets`,import:(()=>z(()=>import(`./_Fe1Jh2GI.js`),[]))},{id:`r`,name:`R`,import:(()=>z(()=>import(`./_BfG_-1HN.js`).then(e=>e.n),[]))},{id:`racket`,name:`Racket`,import:(()=>z(()=>import(`./_DcIDlBhZ.js`),[]))},{id:`raku`,name:`Raku`,aliases:[`perl6`],import:(()=>z(()=>import(`./_B3gFvitq.js`),[]))},{id:`razor`,name:`ASP.NET Razor`,import:(()=>z(()=>import(`./_jqoWK4Vi.js`),__vite__mapDeps([96,1,2,3,78])))},{id:`rbs`,name:`RBS`,aliases:[`ruby-signature`],import:(()=>z(()=>import(`./_C0MpOrj4.js`),[]))},{id:`reg`,name:`Windows Registry Script`,import:(()=>z(()=>import(`./_CRGYupPL.js`),[]))},{id:`regexp`,name:`RegExp`,aliases:[`regex`],import:(()=>z(()=>import(`./_BFTr9gZX.js`).then(e=>e.n),[]))},{id:`rel`,name:`Rel`,import:(()=>z(()=>import(`./_BtDbiS_P.js`),[]))},{id:`riscv`,name:`RISC-V`,import:(()=>z(()=>import(`./_Ckw8ddFX.js`),[]))},{id:`ron`,name:`RON`,import:(()=>z(()=>import(`./_VUp2lXgN.js`),[]))},{id:`rosmsg`,name:`ROS Interface`,import:(()=>z(()=>import(`./_CAekHB0j.js`),[]))},{id:`rst`,name:`reStructuredText`,import:(()=>z(()=>import(`./_Bv-IlwQT.js`),__vite__mapDeps([97,2,15,1,3,20,98,25,26,27,22,29,39,34,7,8,16,35,36,11,13,37,38])))},{id:`ruby`,name:`Ruby`,aliases:[`rb`],import:(()=>z(()=>import(`./_Cmh5vtw6.js`),__vite__mapDeps([34,2,3,1,7,8,16,22,25,26,27,29,35,36,11,13,37,38,39])))},{id:`rust`,name:`Rust`,aliases:[`rs`],import:(()=>z(()=>import(`./_Cfkwpbl8.js`),[]))},{id:`sas`,name:`SAS`,import:(()=>z(()=>import(`./_DRhFEV3p.js`),__vite__mapDeps([99,16])))},{id:`sass`,name:`Sass`,import:(()=>z(()=>import(`./_DXrisJhu.js`),[]))},{id:`scala`,name:`Scala`,import:(()=>z(()=>import(`./_BiFt_7mu.js`),[]))},{id:`scheme`,name:`Scheme`,import:(()=>z(()=>import(`./_DQCgrYNe.js`),[]))},{id:`scss`,name:`SCSS`,import:(()=>z(()=>import(`./_BytqxSss.js`).then(e=>e.n),__vite__mapDeps([5,3])))},{id:`sdbl`,name:`1C (Query)`,aliases:[`1c-query`],import:(()=>z(()=>import(`./_bTVj8UrX.js`),[]))},{id:`shaderlab`,name:`ShaderLab`,aliases:[`shader`],import:(()=>z(()=>import(`./_DB-OQ-9y.js`),__vite__mapDeps([100,101])))},{id:`shellscript`,name:`Shell`,aliases:[`bash`,`sh`,`shell`,`zsh`],import:(()=>z(()=>import(`./_D3_VIrXA.js`).then(e=>e.n),[]))},{id:`shellsession`,name:`Shell Session`,aliases:[`console`],import:(()=>z(()=>import(`./_DtkImFGo.js`),__vite__mapDeps([102,29])))},{id:`smalltalk`,name:`GNU Smalltalk`,import:(()=>z(()=>import(`./_BHpQb5nM.js`),[]))},{id:`smithy`,name:`Smithy`,import:(()=>z(()=>import(`./_Dgaz7aur.js`),[]))},{id:`solidity`,name:`Solidity`,import:(()=>z(()=>import(`./_Bj7E1mRn.js`),[]))},{id:`soy`,name:`Closure Templates`,aliases:[`closure-templates`],import:(()=>z(()=>import(`./_PYKRwjO-.js`),__vite__mapDeps([103,1,2,3])))},{id:`sparql`,name:`SPARQL`,import:(()=>z(()=>import(`./_L8AbGenz.js`),__vite__mapDeps([104,105])))},{id:`splunk`,name:`Splunk Query Language`,aliases:[`spl`],import:(()=>z(()=>import(`./_BC2Px7Mm.js`),[]))},{id:`sql`,name:`SQL`,import:(()=>z(()=>import(`./_CQwfLnMn.js`).then(e=>e.n),[]))},{id:`ssh-config`,name:`SSH Config`,import:(()=>z(()=>import(`./_BgfXC-Er.js`),[]))},{id:`stata`,name:`Stata`,import:(()=>z(()=>import(`./_J4kJcAJg.js`),__vite__mapDeps([106,16])))},{id:`stylus`,name:`Stylus`,aliases:[`styl`],import:(()=>z(()=>import(`./_B6D30XZt.js`),[]))},{id:`surrealql`,name:`SurrealQL`,aliases:[`surql`],import:(()=>z(()=>import(`./_CoVSfg3Z.js`),__vite__mapDeps([107,2])))},{id:`svelte`,name:`Svelte`,import:(()=>z(()=>import(`./_rB7YBgt1.js`),__vite__mapDeps([108,2,3,11,12])))},{id:`swift`,name:`Swift`,import:(()=>z(()=>import(`./_CyEgAFGc.js`),[]))},{id:`system-verilog`,name:`SystemVerilog`,import:(()=>z(()=>import(`./_Dh5ihWbf.js`),[]))},{id:`systemd`,name:`Systemd Units`,import:(()=>z(()=>import(`./_BxMlprV5.js`),[]))},{id:`talonscript`,name:`TalonScript`,aliases:[`talon`],import:(()=>z(()=>import(`./_CohzipZa.js`),[]))},{id:`tasl`,name:`Tasl`,import:(()=>z(()=>import(`./_DMoTqEGO.js`),[]))},{id:`tcl`,name:`Tcl`,import:(()=>z(()=>import(`./_CZd0xW_V.js`),[]))},{id:`templ`,name:`Templ`,import:(()=>z(()=>import(`./_D9V-500A.js`),__vite__mapDeps([109,2,3,81])))},{id:`terraform`,name:`Terraform`,aliases:[`tf`,`tfvars`],import:(()=>z(()=>import(`./_DswuEJGm.js`),[]))},{id:`tex`,name:`TeX`,import:(()=>z(()=>import(`./_Ct_ritl_.js`).then(e=>e.n),__vite__mapDeps([67,63])))},{id:`toml`,name:`TOML`,import:(()=>z(()=>import(`./_CcmNWLt0.js`),[]))},{id:`ts-tags`,name:`TypeScript with Tags`,aliases:[`lit`],import:(()=>z(()=>import(`./_ProcVwIG.js`),__vite__mapDeps([110,2,3,1,7,8,11,16,27,22])))},{id:`tsv`,name:`TSV`,import:(()=>z(()=>import(`./_sltzmVWM.js`),[]))},{id:`tsx`,name:`TSX`,import:(()=>z(()=>import(`./_DxmxNmie.js`).then(e=>e.n),[]))},{id:`turtle`,name:`Turtle`,import:(()=>z(()=>import(`./_ByJddavk.js`),[]))},{id:`twig`,name:`Twig`,import:(()=>z(()=>import(`./_Dar0Jhi9.js`),__vite__mapDeps([111,2,3,5,20,34,1,7,8,16,22,25,26,27,29,35,36,11,13,37,38,39,87,9])))},{id:`typescript`,name:`TypeScript`,aliases:[`ts`,`cts`,`mts`],import:(()=>z(()=>import(`./_0TAu89jO.js`).then(e=>e.n),[]))},{id:`typespec`,name:`TypeSpec`,aliases:[`tsp`],import:(()=>z(()=>import(`./_BRdr0IET.js`),[]))},{id:`typst`,name:`Typst`,aliases:[`typ`],import:(()=>z(()=>import(`./_RvJ4aN_k.js`),__vite__mapDeps([112,2,3,1,5,8,7,9,11,13,113,114,16,22,20,77,24,26,25,27,29,78,79,49,80,31,38,39,34,35,36,37,41,40,44,48,50,81,82,54,83,115,63,62,65,66,67,70,116,84,85,87,88,89,90,91,93,117,94,118,119,111,120])))},{id:`v`,name:`V`,import:(()=>z(()=>import(`./_DBj4K9d_.js`),[]))},{id:`vala`,name:`Vala`,import:(()=>z(()=>import(`./_zf12oZj6.js`),[]))},{id:`vb`,name:`Visual Basic`,import:(()=>z(()=>import(`./_DOwzaHZ0.js`),[]))},{id:`verilog`,name:`Verilog`,import:(()=>z(()=>import(`./_B2gwz-sJ.js`),[]))},{id:`vhdl`,name:`VHDL`,import:(()=>z(()=>import(`./_BroJfC0k.js`),[]))},{id:`viml`,name:`Vim Script`,aliases:[`vim`,`vimscript`],import:(()=>z(()=>import(`./_DvXPmvsu.js`),[]))},{id:`vue`,name:`Vue`,import:(()=>z(()=>import(`./_h6bUk2pq.js`),__vite__mapDeps([121,2,3,1,9,11,15])))},{id:`vue-html`,name:`Vue HTML`,import:(()=>z(()=>import(`./_Cc3XRkQD.js`),__vite__mapDeps([122,2])))},{id:`vue-vine`,name:`Vue Vine`,import:(()=>z(()=>import(`./_Ce9LAY3j.js`),__vite__mapDeps([123,2,3,5,12,70,124])))},{id:`vyper`,name:`Vyper`,aliases:[`vy`],import:(()=>z(()=>import(`./_CgoNMtux.js`),[]))},{id:`wasm`,name:`WebAssembly`,import:(()=>z(()=>import(`./_ByWQv1Qj.js`),[]))},{id:`wenyan`,name:`Wenyan`,aliases:[`文言`],import:(()=>z(()=>import(`./_C8pVoKbM.js`),[]))},{id:`wgsl`,name:`WGSL`,import:(()=>z(()=>import(`./_BsKzXJz4.js`),[]))},{id:`wikitext`,name:`Wikitext`,aliases:[`mediawiki`,`wiki`],import:(()=>z(()=>import(`./_ClFFjSW2.js`),[]))},{id:`wit`,name:`WebAssembly Interface Types`,import:(()=>z(()=>import(`./_DdvCle-K.js`),[]))},{id:`wolfram`,name:`Wolfram`,aliases:[`wl`],import:(()=>z(()=>import(`./_DLL8P-h_.js`),[]))},{id:`xml`,name:`XML`,import:(()=>z(()=>import(`./__prI0zQc.js`).then(e=>e.n),__vite__mapDeps([7,8])))},{id:`xsl`,name:`XSL`,import:(()=>z(()=>import(`./_DSeY26wK.js`),__vite__mapDeps([93,7,8])))},{id:`yaml`,name:`YAML`,aliases:[`yml`],import:(()=>z(()=>import(`./_6TaxzICZ.js`).then(e=>e.n),[]))},{id:`zenscript`,name:`ZenScript`,import:(()=>z(()=>import(`./_BnlCZFoB.js`),[]))},{id:`zig`,name:`Zig`,import:(()=>z(()=>import(`./_CMLA9XwU.js`),[]))}],br=Object.fromEntries(yr.map(e=>[e.id,e.import])),xr=Object.fromEntries(yr.flatMap(e=>e.aliases?.map(t=>[t,e.import])||[])),Sr={...br,...xr},Cr=Object.fromEntries([{id:`andromeeda`,displayName:`Andromeeda`,type:`dark`,import:(()=>z(()=>import(`./_vGVdxbeo.js`),[]))},{id:`aurora-x`,displayName:`Aurora X`,type:`dark`,import:(()=>z(()=>import(`./_CDeNXAV0.js`),[]))},{id:`ayu-dark`,displayName:`Ayu Dark`,type:`dark`,import:(()=>z(()=>import(`./_DluEY0Gj.js`),[]))},{id:`ayu-light`,displayName:`Ayu Light`,type:`light`,import:(()=>z(()=>import(`./_C3h-C4tm.js`),[]))},{id:`ayu-mirage`,displayName:`Ayu Mirage`,type:`dark`,import:(()=>z(()=>import(`./_Bqwy1Gya.js`),[]))},{id:`catppuccin-frappe`,displayName:`Catppuccin Frappé`,type:`dark`,import:(()=>z(()=>import(`./_C9Q5zVZY.js`),[]))},{id:`catppuccin-latte`,displayName:`Catppuccin Latte`,type:`light`,import:(()=>z(()=>import(`./_CtsyrtPq.js`),[]))},{id:`catppuccin-macchiato`,displayName:`Catppuccin Macchiato`,type:`dark`,import:(()=>z(()=>import(`./_R8nAf1vR.js`),[]))},{id:`catppuccin-mocha`,displayName:`Catppuccin Mocha`,type:`dark`,import:(()=>z(()=>import(`./_DjuaAJKi.js`),[]))},{id:`dark-plus`,displayName:`Dark Plus`,type:`dark`,import:(()=>z(()=>import(`./_Cs2F2srj.js`),[]))},{id:`dracula`,displayName:`Dracula Theme`,type:`dark`,import:(()=>z(()=>import(`./_BHWKrbxM.js`),[]))},{id:`dracula-soft`,displayName:`Dracula Theme Soft`,type:`dark`,import:(()=>z(()=>import(`./_5eyTD99u.js`),[]))},{id:`everforest-dark`,displayName:`Everforest Dark`,type:`dark`,import:(()=>z(()=>import(`./_sB-x3p7T.js`),[]))},{id:`everforest-light`,displayName:`Everforest Light`,type:`light`,import:(()=>z(()=>import(`./_Df2xbC6M.js`),[]))},{id:`github-dark`,displayName:`GitHub Dark`,type:`dark`,import:(()=>z(()=>import(`./_C-LZuMrd.js`),[]))},{id:`github-dark-default`,displayName:`GitHub Dark Default`,type:`dark`,import:(()=>z(()=>import(`./_DXG-b-1a.js`),[]))},{id:`github-dark-dimmed`,displayName:`GitHub Dark Dimmed`,type:`dark`,import:(()=>z(()=>import(`./_Bx1FflLF.js`),[]))},{id:`github-dark-high-contrast`,displayName:`GitHub Dark High Contrast`,type:`dark`,import:(()=>z(()=>import(`./_B_tTalzw.js`),[]))},{id:`github-light`,displayName:`GitHub Light`,type:`light`,import:(()=>z(()=>import(`./_EUqPIrTm.js`),[]))},{id:`github-light-default`,displayName:`GitHub Light Default`,type:`light`,import:(()=>z(()=>import(`./_BXViO-2h.js`),[]))},{id:`github-light-high-contrast`,displayName:`GitHub Light High Contrast`,type:`light`,import:(()=>z(()=>import(`./_B68TUdTA.js`),[]))},{id:`gruvbox-dark-hard`,displayName:`Gruvbox Dark Hard`,type:`dark`,import:(()=>z(()=>import(`./_C820rvS2.js`),[]))},{id:`gruvbox-dark-medium`,displayName:`Gruvbox Dark Medium`,type:`dark`,import:(()=>z(()=>import(`./_BPjhmG05.js`),[]))},{id:`gruvbox-dark-soft`,displayName:`Gruvbox Dark Soft`,type:`dark`,import:(()=>z(()=>import(`./_MrdJrrXF.js`),[]))},{id:`gruvbox-light-hard`,displayName:`Gruvbox Light Hard`,type:`light`,import:(()=>z(()=>import(`./_BC_s9l72.js`),[]))},{id:`gruvbox-light-medium`,displayName:`Gruvbox Light Medium`,type:`light`,import:(()=>z(()=>import(`./_BAWPOn9u.js`),[]))},{id:`gruvbox-light-soft`,displayName:`Gruvbox Light Soft`,type:`light`,import:(()=>z(()=>import(`./_BSMLrYjP.js`),[]))},{id:`horizon`,displayName:`Horizon`,type:`dark`,import:(()=>z(()=>import(`./_CE9ld1lL.js`),[]))},{id:`horizon-bright`,displayName:`Horizon Bright`,type:`light`,import:(()=>z(()=>import(`./_DSNQnXHK.js`),[]))},{id:`houston`,displayName:`Houston`,type:`dark`,import:(()=>z(()=>import(`./_CsvMBhTu.js`),[]))},{id:`kanagawa-dragon`,displayName:`Kanagawa Dragon`,type:`dark`,import:(()=>z(()=>import(`./_Bozd7klA.js`),[]))},{id:`kanagawa-lotus`,displayName:`Kanagawa Lotus`,type:`light`,import:(()=>z(()=>import(`./_BmuOG9ZW.js`),[]))},{id:`kanagawa-wave`,displayName:`Kanagawa Wave`,type:`dark`,import:(()=>z(()=>import(`./_BML5mF2J.js`),[]))},{id:`laserwave`,displayName:`LaserWave`,type:`dark`,import:(()=>z(()=>import(`./_C_8bwKvT.js`),[]))},{id:`light-plus`,displayName:`Light Plus`,type:`light`,import:(()=>z(()=>import(`./_DVQuIRkW.js`),[]))},{id:`material-theme`,displayName:`Material Theme`,type:`dark`,import:(()=>z(()=>import(`./_Bm3Qr25_.js`),[]))},{id:`material-theme-darker`,displayName:`Material Theme Darker`,type:`dark`,import:(()=>z(()=>import(`./_2IIEA8gg.js`),[]))},{id:`material-theme-lighter`,displayName:`Material Theme Lighter`,type:`light`,import:(()=>z(()=>import(`./_uhdI0v04.js`),[]))},{id:`material-theme-ocean`,displayName:`Material Theme Ocean`,type:`dark`,import:(()=>z(()=>import(`./_CHQ94UKr.js`),[]))},{id:`material-theme-palenight`,displayName:`Material Theme Palenight`,type:`dark`,import:(()=>z(()=>import(`./_B5W6OYN7.js`),[]))},{id:`min-dark`,displayName:`Min Dark`,type:`dark`,import:(()=>z(()=>import(`./_BSWPekZh.js`),[]))},{id:`min-light`,displayName:`Min Light`,type:`light`,import:(()=>z(()=>import(`./_DDpmG2fV.js`),[]))},{id:`monokai`,displayName:`Monokai`,type:`dark`,import:(()=>z(()=>import(`./_B_bV9PQ9.js`),[]))},{id:`night-owl`,displayName:`Night Owl`,type:`dark`,import:(()=>z(()=>import(`./_DhmEMT88.js`),[]))},{id:`night-owl-light`,displayName:`Night Owl Light`,type:`light`,import:(()=>z(()=>import(`./_eJ-hLW7d.js`),[]))},{id:`nord`,displayName:`Nord`,type:`dark`,import:(()=>z(()=>import(`./_Cb4Vim4T.js`),[]))},{id:`one-dark-pro`,displayName:`One Dark Pro`,type:`dark`,import:(()=>z(()=>import(`./_CLwyXe_n.js`),[]))},{id:`one-light`,displayName:`One Light`,type:`light`,import:(()=>z(()=>import(`./_D7Lr4KcI.js`),[]))},{id:`plastic`,displayName:`Plastic`,type:`dark`,import:(()=>z(()=>import(`./_DQwYfKfQ.js`),[]))},{id:`poimandres`,displayName:`Poimandres`,type:`dark`,import:(()=>z(()=>import(`./_DRFjx7u4.js`),[]))},{id:`red`,displayName:`Red`,type:`dark`,import:(()=>z(()=>import(`./_DX1BQOs8.js`),[]))},{id:`rose-pine`,displayName:`Rosé Pine`,type:`dark`,import:(()=>z(()=>import(`./_aMsaMD1D.js`),[]))},{id:`rose-pine-dawn`,displayName:`Rosé Pine Dawn`,type:`light`,import:(()=>z(()=>import(`./_8PwUyIlP.js`),[]))},{id:`rose-pine-moon`,displayName:`Rosé Pine Moon`,type:`dark`,import:(()=>z(()=>import(`./_DO-qXg-I.js`),[]))},{id:`slack-dark`,displayName:`Slack Dark`,type:`dark`,import:(()=>z(()=>import(`./_DnToyrRv.js`),[]))},{id:`slack-ochin`,displayName:`Slack Ochin`,type:`light`,import:(()=>z(()=>import(`./_B2OO5cIa.js`),[]))},{id:`snazzy-light`,displayName:`Snazzy Light`,type:`light`,import:(()=>z(()=>import(`./_4G7pJPwS.js`),[]))},{id:`solarized-dark`,displayName:`Solarized Dark`,type:`dark`,import:(()=>z(()=>import(`./_UdsmMDCL.js`),[]))},{id:`solarized-light`,displayName:`Solarized Light`,type:`light`,import:(()=>z(()=>import(`./_C1IUL_tW.js`),[]))},{id:`synthwave-84`,displayName:`Synthwave '84`,type:`dark`,import:(()=>z(()=>import(`./_nFMaYfgc.js`),[]))},{id:`tokyo-night`,displayName:`Tokyo Night`,type:`dark`,import:(()=>z(()=>import(`./_oM2G3aXe.js`),[]))},{id:`vesper`,displayName:`Vesper`,type:`dark`,import:(()=>z(()=>import(`./_DdrHHSXu.js`),[]))},{id:`vitesse-black`,displayName:`Vitesse Black`,type:`dark`,import:(()=>z(()=>import(`./_fwtXNY1n.js`),[]))},{id:`vitesse-dark`,displayName:`Vitesse Dark`,type:`dark`,import:(()=>z(()=>import(`./_BZCL-v6S.js`),[]))},{id:`vitesse-light`,displayName:`Vitesse Light`,type:`light`,import:(()=>z(()=>import(`./_VbXTXTou.js`),[]))}].map(e=>[e.id,e.import])),wr=An({createOnigurumaEngine:()=>Qr,getDefaultWasmLoader:()=>Zr,loadWasm:()=>Gr,setDefaultWasmLoader:()=>Xr}),Tr=class extends Error{constructor(e){super(e),this.name=`ShikiError`}};function Er(){return 2147483648}function Dr(){return typeof performance<`u`?performance.now():Date.now()}var Or=(e,t)=>e+(t-e%t)%t;async function kr(e){let t,n,r={};function i(e){n=e,r.HEAPU8=new Uint8Array(e),r.HEAPU32=new Uint32Array(e)}function a(e,t,n){r.HEAPU8.copyWithin(e,t,t+n)}function o(e){try{return t.grow(e-n.byteLength+65535>>>16),i(t.buffer),1}catch{}}function s(e){let t=r.HEAPU8.length;e>>>=0;let n=Er();if(e>n)return!1;for(let r=1;r<=4;r*=2){let i=t*(1+.2/r);if(i=Math.min(i,e+100663296),o(Math.min(n,Or(Math.max(e,i),65536))))return!0}return!1}let c=typeof TextDecoder<`u`?new TextDecoder(`utf8`):void 0;function l(e,t,n=1024){let r=t+n,i=t;for(;e[i]&&!(i>=r);)++i;if(i-t>16&&e.buffer&&c)return c.decode(e.subarray(t,i));let a=``;for(;t<i;){let n=e[t++];if(!(n&128)){a+=String.fromCharCode(n);continue}let r=e[t++]&63;if((n&224)==192){a+=String.fromCharCode((n&31)<<6|r);continue}let i=e[t++]&63;if(n=(n&240)==224?(n&15)<<12|r<<6|i:(n&7)<<18|r<<12|i<<6|e[t++]&63,n<65536)a+=String.fromCharCode(n);else{let e=n-65536;a+=String.fromCharCode(55296|e>>10,56320|e&1023)}}return a}function u(e,t){return e?l(r.HEAPU8,e,t):``}let d={emscripten_get_now:Dr,emscripten_memcpy_big:a,emscripten_resize_heap:s,fd_write:()=>0};async function f(){let n=await e({env:d,wasi_snapshot_preview1:d});t=n.memory,i(t.buffer),Object.assign(r,n),r.UTF8ToString=u}return await f(),r}var Ar=Object.defineProperty,jr=(e,t,n)=>t in e?Ar(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Mr=(e,t,n)=>jr(e,typeof t==`symbol`?t:t+``,n),Nr=null;function Pr(e){throw new Tr(e.UTF8ToString(e.getLastOnigError()))}var Fr=class e{constructor(t){Mr(this,`utf16Length`),Mr(this,`utf8Length`),Mr(this,`utf16Value`),Mr(this,`utf8Value`),Mr(this,`utf16OffsetToUtf8`),Mr(this,`utf8OffsetToUtf16`);let n=t.length,r=e._utf8ByteLength(t),i=r!==n,a=i?new Uint32Array(n+1):null;i&&(a[n]=r);let o=i?new Uint32Array(r+1):null;i&&(o[r]=n);let s=new Uint8Array(r),c=0;for(let e=0;e<n;e++){let r=t.charCodeAt(e),l=r,u=!1;if(r>=55296&&r<=56319&&e+1<n){let n=t.charCodeAt(e+1);n>=56320&&n<=57343&&(l=(r-55296<<10)+65536|n-56320,u=!0)}i&&(a[e]=c,u&&(a[e+1]=c),l<=127?o[c+0]=e:l<=2047?(o[c+0]=e,o[c+1]=e):l<=65535?(o[c+0]=e,o[c+1]=e,o[c+2]=e):(o[c+0]=e,o[c+1]=e,o[c+2]=e,o[c+3]=e)),l<=127?s[c++]=l:l<=2047?(s[c++]=192|(l&1984)>>>6,s[c++]=128|(l&63)>>>0):l<=65535?(s[c++]=224|(l&61440)>>>12,s[c++]=128|(l&4032)>>>6,s[c++]=128|(l&63)>>>0):(s[c++]=240|(l&1835008)>>>18,s[c++]=128|(l&258048)>>>12,s[c++]=128|(l&4032)>>>6,s[c++]=128|(l&63)>>>0),u&&e++}this.utf16Length=n,this.utf8Length=r,this.utf16Value=t,this.utf8Value=s,this.utf16OffsetToUtf8=a,this.utf8OffsetToUtf16=o}static _utf8ByteLength(e){let t=0;for(let n=0,r=e.length;n<r;n++){let i=e.charCodeAt(n),a=i,o=!1;if(i>=55296&&i<=56319&&n+1<r){let t=e.charCodeAt(n+1);t>=56320&&t<=57343&&(a=(i-55296<<10)+65536|t-56320,o=!0)}t+=a<=127?1:a<=2047?2:a<=65535?3:4,o&&n++}return t}createString(e){let t=e.omalloc(this.utf8Length);return e.HEAPU8.set(this.utf8Value,t),t}},Ir=class e{constructor(t){if(Mr(this,`id`,++e.LAST_ID),Mr(this,`_onigBinding`),Mr(this,`content`),Mr(this,`utf16Length`),Mr(this,`utf8Length`),Mr(this,`utf16OffsetToUtf8`),Mr(this,`utf8OffsetToUtf16`),Mr(this,`ptr`),!Nr)throw new Tr(`Must invoke loadWasm first.`);this._onigBinding=Nr,this.content=t;let n=new Fr(t);this.utf16Length=n.utf16Length,this.utf8Length=n.utf8Length,this.utf16OffsetToUtf8=n.utf16OffsetToUtf8,this.utf8OffsetToUtf16=n.utf8OffsetToUtf16,this.utf8Length<1e4&&!e._sharedPtrInUse?(e._sharedPtr||=Nr.omalloc(1e4),e._sharedPtrInUse=!0,Nr.HEAPU8.set(n.utf8Value,e._sharedPtr),this.ptr=e._sharedPtr):this.ptr=n.createString(Nr)}convertUtf8OffsetToUtf16(e){return this.utf8OffsetToUtf16?e<0?0:e>this.utf8Length?this.utf16Length:this.utf8OffsetToUtf16[e]:e}convertUtf16OffsetToUtf8(e){return this.utf16OffsetToUtf8?e<0?0:e>this.utf16Length?this.utf8Length:this.utf16OffsetToUtf8[e]:e}dispose(){this.ptr===e._sharedPtr?e._sharedPtrInUse=!1:this._onigBinding.ofree(this.ptr)}};Mr(Ir,`LAST_ID`,0),Mr(Ir,`_sharedPtr`,0),Mr(Ir,`_sharedPtrInUse`,!1);var Lr=Ir,Rr=class{constructor(e){if(Mr(this,`_onigBinding`),Mr(this,`_ptr`),!Nr)throw new Tr(`Must invoke loadWasm first.`);let t=[],n=[];for(let r=0,i=e.length;r<i;r++){let i=new Fr(e[r]);t[r]=i.createString(Nr),n[r]=i.utf8Length}let r=Nr.omalloc(4*e.length);Nr.HEAPU32.set(t,r/4);let i=Nr.omalloc(4*e.length);Nr.HEAPU32.set(n,i/4);let a=Nr.createOnigScanner(r,i,e.length);for(let n=0,r=e.length;n<r;n++)Nr.ofree(t[n]);Nr.ofree(i),Nr.ofree(r),a===0&&Pr(Nr),this._onigBinding=Nr,this._ptr=a}dispose(){this._onigBinding.freeOnigScanner(this._ptr)}findNextMatchSync(e,t,n){let r=0;if(typeof n==`number`&&(r=n),typeof e==`string`){e=new Lr(e);let n=this._findNextMatchSync(e,t,!1,r);return e.dispose(),n}return this._findNextMatchSync(e,t,!1,r)}_findNextMatchSync(e,t,n,r){let i=this._onigBinding,a=i.findNextOnigScannerMatch(this._ptr,e.id,e.ptr,e.utf8Length,e.convertUtf16OffsetToUtf8(t),r);if(a===0)return null;let o=i.HEAPU32,s=a/4,c=o[s++],l=o[s++],u=[];for(let t=0;t<l;t++){let n=e.convertUtf8OffsetToUtf16(o[s++]),r=e.convertUtf8OffsetToUtf16(o[s++]);u[t]={start:n,end:r,length:r-n}}return{index:c,captureIndices:u}}};function zr(e){return typeof e.instantiator==`function`}function Br(e){return typeof e.default==`function`}function Vr(e){return e.data!==void 0}function Hr(e){return typeof Response<`u`&&e instanceof Response}function Ur(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}var Wr;function Gr(e){if(Wr)return Wr;async function t(){Nr=await kr(async t=>{let n=e;return n=await n,typeof n==`function`&&(n=await n(t)),typeof n==`function`&&(n=await n(t)),zr(n)?n=await n.instantiator(t):Br(n)?n=await n.default(t):(Vr(n)&&(n=n.data),Hr(n)?n=typeof WebAssembly.instantiateStreaming==`function`?await qr(n)(t):await Jr(n)(t):Ur(n)||n instanceof WebAssembly.Module?n=await Kr(n)(t):`default`in n&&n.default instanceof WebAssembly.Module&&(n=await Kr(n.default)(t))),`instance`in n&&(n=n.instance),`exports`in n&&(n=n.exports),n})}return Wr=t(),Wr}function Kr(e){return t=>WebAssembly.instantiate(e,t)}function qr(e){return t=>WebAssembly.instantiateStreaming(e,t)}function Jr(e){return async t=>{let n=await e.arrayBuffer();return WebAssembly.instantiate(n,t)}}var Yr;function Xr(e){Yr=e}function Zr(){return Yr}async function Qr(e){return e&&await Gr(e),{createScanner(e){return new Rr(e.map(e=>typeof e==`string`?e:e.source))},createString(e){return new Lr(e)}}}var $r=gr({});vr($r,wr);var ei=class extends Error{constructor(e){super(e),this.name=`ShikiError`}};function ti(e){return ni(e)}function ni(e){return Array.isArray(e)?ri(e):e instanceof RegExp?e:typeof e==`object`?ii(e):e}function ri(e){let t=[];for(let n=0,r=e.length;n<r;n++)t[n]=ni(e[n]);return t}function ii(e){let t={};for(let n in e)t[n]=ni(e[n]);return t}function ai(e,...t){return t.forEach(t=>{for(let n in t)e[n]=t[n]}),e}function oi(e){let t=~e.lastIndexOf(`/`)||~e.lastIndexOf(`\\`);return t===0?e:~t===e.length-1?oi(e.substring(0,e.length-1)):e.substr(~t+1)}var si=/\$(\d+)|\${(\d+):\/(downcase|upcase)}/g,ci=class{static hasCaptures(e){return e!==null&&(si.lastIndex=0,si.test(e))}static replaceCaptures(e,t,n){return e.replace(si,(e,r,i,a)=>{let o=n[parseInt(r||i,10)];if(o){let e=t.substring(o.start,o.end);for(;e[0]===`.`;)e=e.substring(1);switch(a){case`downcase`:return e.toLowerCase();case`upcase`:return e.toUpperCase();default:return e}}else return e})}};function li(e,t){return e<t?-1:+(e>t)}function ui(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 r=0;r<n;r++){let n=li(e[r],t[r]);if(n!==0)return n}return 0}return n-r}function di(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 fi(e){return e.replace(/[\-\\\{\}\*\+\?\|\^\$\.\,\[\]\(\)\#\s]/g,`\\$&`)}var pi=class{constructor(e){this.fn=e}cache=new Map;get(e){if(this.cache.has(e))return this.cache.get(e);let t=this.fn(e);return this.cache.set(e,t),t}},mi=class{constructor(e,t,n){this._colorMap=e,this._defaults=t,this._root=n}static createFromRawTheme(e,t){return this.createFromParsedTheme(yi(e),t)}static createFromParsedTheme(e,t){return Si(e,t)}_cachedMatchRoot=new pi(e=>this._root.match(e));getColorMap(){return this._colorMap.getColorMap()}getDefaults(){return this._defaults}match(e){if(e===null)return this._defaults;let t=e.scopeName,n=this._cachedMatchRoot.get(t).find(t=>gi(e.parent,t.parentScopes));return n?new vi(n.fontStyle,n.foreground,n.background):null}},hi=class e{constructor(e,t){this.parent=e,this.scopeName=t}static push(t,n){for(let r of n)t=new e(t,r);return t}static from(...t){let n=null;for(let r=0;r<t.length;r++)n=new e(n,t[r]);return n}push(t){return new e(this,t)}getSegments(){let e=this,t=[];for(;e;)t.push(e.scopeName),e=e.parent;return t.reverse(),t}toString(){return this.getSegments().join(` `)}extends(e){return this===e||this.parent!==null&&this.parent.extends(e)}getExtensionIfDefined(e){let t=[],n=this;for(;n&&n!==e;)t.push(n.scopeName),n=n.parent;return n===e?t.reverse():void 0}};function gi(e,t){if(t.length===0)return!0;for(let n=0;n<t.length;n++){let r=t[n],i=!1;if(r===`>`){if(n===t.length-1)return!1;r=t[++n],i=!0}for(;e&&!_i(e.scopeName,r);){if(i)return!1;e=e.parent}if(!e)return!1;e=e.parent}return!0}function _i(e,t){return t===e||e.startsWith(t)&&e[t.length]===`.`}var vi=class{constructor(e,t,n){this.fontStyle=e,this.foregroundId=t,this.backgroundId=n}};function yi(e){if(!e||!e.settings||!Array.isArray(e.settings))return[];let t=e.settings,n=[],r=0;for(let e=0,i=t.length;e<i;e++){let i=t[e];if(!i.settings)continue;let a;if(typeof i.scope==`string`){let e=i.scope;e=e.replace(/^[,]+/,``),e=e.replace(/[,]+$/,``),a=e.split(`,`)}else a=Array.isArray(i.scope)?i.scope:[``];let o=-1;if(typeof i.settings.fontStyle==`string`){o=0;let e=i.settings.fontStyle.split(` `);for(let t=0,n=e.length;t<n;t++)switch(e[t]){case`italic`:o|=1;break;case`bold`:o|=2;break;case`underline`:o|=4;break;case`strikethrough`:o|=8}}let s=null;typeof i.settings.foreground==`string`&&di(i.settings.foreground)&&(s=i.settings.foreground);let c=null;typeof i.settings.background==`string`&&di(i.settings.background)&&(c=i.settings.background);for(let t=0,i=a.length;t<i;t++){let i=a[t].trim().split(` `),l=i[i.length-1],u=null;i.length>1&&(u=i.slice(0,i.length-1),u.reverse()),n[r++]=new bi(l,u,e,o,s,c)}}return n}var bi=class{constructor(e,t,n,r,i,a){this.scope=e,this.parentScopes=t,this.index=n,this.fontStyle=r,this.foreground=i,this.background=a}},xi=(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))(xi||{});function Si(e,t){e.sort((e,t)=>{let n=li(e.scope,t.scope);return n!==0||(n=ui(e.parentScopes,t.parentScopes),n!==0)?n:e.index-t.index});let n=0,r=`#000000`,i=`#ffffff`;for(;e.length>=1&&e[0].scope===``;){let t=e.shift();t.fontStyle!==-1&&(n=t.fontStyle),t.foreground!==null&&(r=t.foreground),t.background!==null&&(i=t.background)}let a=new Ci(t),o=new vi(n,a.getId(r),a.getId(i)),s=new Ei(new Ti(0,null,-1,0,0),[]);for(let t=0,n=e.length;t<n;t++){let n=e[t];s.insert(0,n.scope,n.parentScopes,n.fontStyle,a.getId(n.foreground),a.getId(n.background))}return new mi(a,o,s)}var Ci=class{_isFrozen;_lastColorId;_id2color;_color2id;constructor(e){if(this._lastColorId=0,this._id2color=[],this._color2id=Object.create(null),Array.isArray(e)){this._isFrozen=!0;for(let t=0,n=e.length;t<n;t++)this._color2id[e[t]]=t,this._id2color[t]=e[t]}else this._isFrozen=!1}getId(e){if(e===null)return 0;e=e.toUpperCase();let t=this._color2id[e];if(t)return t;if(this._isFrozen)throw Error(`Missing color in color map - ${e}`);return t=++this._lastColorId,this._color2id[e]=t,this._id2color[t]=e,t}getColorMap(){return this._id2color.slice(0)}},wi=Object.freeze([]),Ti=class e{scopeDepth;parentScopes;fontStyle;foreground;background;constructor(e,t,n,r,i){this.scopeDepth=e,this.parentScopes=t||wi,this.fontStyle=n,this.foreground=r,this.background=i}clone(){return new e(this.scopeDepth,this.parentScopes,this.fontStyle,this.foreground,this.background)}static cloneArr(e){let t=[];for(let n=0,r=e.length;n<r;n++)t[n]=e[n].clone();return t}acceptOverwrite(e,t,n,r){this.scopeDepth>e?console.log(`how did this happen?`):this.scopeDepth=e,t!==-1&&(this.fontStyle=t),n!==0&&(this.foreground=n),r!==0&&(this.background=r)}},Ei=class e{constructor(e,t=[],n={}){this._mainRule=e,this._children=n,this._rulesWithParentScopes=t}_rulesWithParentScopes;static _cmpBySpecificity(e,t){if(e.scopeDepth!==t.scopeDepth)return t.scopeDepth-e.scopeDepth;let n=0,r=0;for(;e.parentScopes[n]===`>`&&n++,t.parentScopes[r]===`>`&&r++,!(n>=e.parentScopes.length||r>=t.parentScopes.length);){let i=t.parentScopes[r].length-e.parentScopes[n].length;if(i!==0)return i;n++,r++}return t.parentScopes.length-e.parentScopes.length}match(t){if(t!==``){let e=t.indexOf(`.`),n,r;if(e===-1?(n=t,r=``):(n=t.substring(0,e),r=t.substring(e+1)),this._children.hasOwnProperty(n))return this._children[n].match(r)}let n=this._rulesWithParentScopes.concat(this._mainRule);return n.sort(e._cmpBySpecificity),n}insert(t,n,r,i,a,o){if(n===``){this._doInsertHere(t,r,i,a,o);return}let s=n.indexOf(`.`),c,l;s===-1?(c=n,l=``):(c=n.substring(0,s),l=n.substring(s+1));let u;this._children.hasOwnProperty(c)?u=this._children[c]:(u=new e(this._mainRule.clone(),Ti.cloneArr(this._rulesWithParentScopes)),this._children[c]=u),u.insert(t+1,l,r,i,a,o)}_doInsertHere(e,t,n,r,i){if(t===null){this._mainRule.acceptOverwrite(e,n,r,i);return}for(let a=0,o=this._rulesWithParentScopes.length;a<o;a++){let o=this._rulesWithParentScopes[a];if(ui(o.parentScopes,t)===0){o.acceptOverwrite(e,n,r,i);return}}n===-1&&(n=this._mainRule.fontStyle),r===0&&(r=this._mainRule.foreground),i===0&&(i=this._mainRule.background),this._rulesWithParentScopes.push(new Ti(e,t,n,r,i))}},Di=class e{static toBinaryStr(e){return e.toString(2).padStart(32,`0`)}static print(t){let n=e.getLanguageId(t),r=e.getTokenType(t),i=e.getFontStyle(t),a=e.getForeground(t),o=e.getBackground(t);console.log({languageId:n,tokenType:r,fontStyle:i,foreground:a,background:o})}static getLanguageId(e){return(e&255)>>>0}static getTokenType(e){return(e&768)>>>8}static containsBalancedBrackets(e){return!!(e&1024)}static getFontStyle(e){return(e&30720)>>>11}static getForeground(e){return(e&16744448)>>>15}static getBackground(e){return(e&4278190080)>>>24}static set(t,n,r,i,a,o,s){let c=e.getLanguageId(t),l=e.getTokenType(t),u=+!!e.containsBalancedBrackets(t),d=e.getFontStyle(t),f=e.getForeground(t),p=e.getBackground(t);return n!==0&&(c=n),r!==8&&(l=ki(r)),i!==null&&(u=+!!i),a!==-1&&(d=a),o!==0&&(f=o),s!==0&&(p=s),(c<<0|l<<8|u<<10|d<<11|f<<15|p<<24)>>>0}};function Oi(e){return e}function ki(e){return e}function Ai(e,t){let n=[],r=Mi(e),i=r.next();for(;i!==null;){let e=0;if(i.length===2&&i.charAt(1)===`:`){switch(i.charAt(0)){case`R`:e=1;break;case`L`:e=-1;break;default:console.log(`Unknown priority ${i} in scope selector`)}i=r.next()}let t=o();if(n.push({matcher:t,priority:e}),i!==`,`)break;i=r.next()}return n;function a(){if(i===`-`){i=r.next();let e=a();return t=>!!e&&!e(t)}if(i===`(`){i=r.next();let e=s();return i===`)`&&(i=r.next()),e}if(ji(i)){let e=[];do e.push(i),i=r.next();while(ji(i));return n=>t(e,n)}return null}function o(){let e=[],t=a();for(;t;)e.push(t),t=a();return t=>e.every(e=>e(t))}function s(){let e=[],t=o();for(;t&&(e.push(t),i===`|`||i===`,`);){do i=r.next();while(i===`|`||i===`,`);t=o()}return t=>e.some(e=>e(t))}}function ji(e){return!!e&&!!e.match(/[\w\.:]+/)}function Mi(e){let t=/([LR]:|[\w\.:][\w\.:\-]*|[\,\|\-\(\)])/g,n=t.exec(e);return{next:()=>{if(!n)return null;let r=n[0];return n=t.exec(e),r}}}function Ni(e){typeof e.dispose==`function`&&e.dispose()}var Pi=class{constructor(e){this.scopeName=e}toKey(){return this.scopeName}},Fi=class{constructor(e,t){this.scopeName=e,this.ruleName=t}toKey(){return`${this.scopeName}#${this.ruleName}`}},Ii=class{_references=[];_seenReferenceKeys=new Set;get references(){return this._references}visitedRule=new Set;add(e){let t=e.toKey();this._seenReferenceKeys.has(t)||(this._seenReferenceKeys.add(t),this._references.push(e))}},Li=class{constructor(e,t){this.repo=e,this.initialScopeName=t,this.seenFullScopeRequests.add(this.initialScopeName),this.Q=[new Pi(this.initialScopeName)]}seenFullScopeRequests=new Set;seenPartialScopeRequests=new Set;Q;processQueue(){let e=this.Q;this.Q=[];let t=new Ii;for(let n of e)Ri(n,this.initialScopeName,this.repo,t);for(let e of t.references)if(e instanceof Pi){if(this.seenFullScopeRequests.has(e.scopeName))continue;this.seenFullScopeRequests.add(e.scopeName),this.Q.push(e)}else{if(this.seenFullScopeRequests.has(e.scopeName)||this.seenPartialScopeRequests.has(e.toKey()))continue;this.seenPartialScopeRequests.add(e.toKey()),this.Q.push(e)}}};function Ri(e,t,n,r){let i=n.lookup(e.scopeName);if(!i){if(e.scopeName===t)throw Error(`No grammar provided for <${t}>`);return}let a=n.lookup(t);e instanceof Pi?Bi({baseGrammar:a,selfGrammar:i},r):zi(e.ruleName,{baseGrammar:a,selfGrammar:i,repository:i.repository},r);let o=n.injections(e.scopeName);if(o)for(let e of o)r.add(new Pi(e))}function zi(e,t,n){if(t.repository&&t.repository[e]){let r=t.repository[e];Vi([r],t,n)}}function Bi(e,t){e.selfGrammar.patterns&&Array.isArray(e.selfGrammar.patterns)&&Vi(e.selfGrammar.patterns,{...e,repository:e.selfGrammar.repository},t),e.selfGrammar.injections&&Vi(Object.values(e.selfGrammar.injections),{...e,repository:e.selfGrammar.repository},t)}function Vi(e,t,n){for(let r of e){if(n.visitedRule.has(r))continue;n.visitedRule.add(r);let e=r.repository?ai({},t.repository,r.repository):t.repository;Array.isArray(r.patterns)&&Vi(r.patterns,{...t,repository:e},n);let i=r.include;if(!i)continue;let a=qi(i);switch(a.kind){case 0:Bi({...t,selfGrammar:t.baseGrammar},n);break;case 1:Bi(t,n);break;case 2:zi(a.ruleName,{...t,repository:e},n);break;case 3:case 4:let r=a.scopeName===t.selfGrammar.scopeName?t.selfGrammar:a.scopeName===t.baseGrammar.scopeName?t.baseGrammar:void 0;if(r){let i={baseGrammar:t.baseGrammar,selfGrammar:r,repository:e};a.kind===4?zi(a.ruleName,i,n):Bi(i,n)}else a.kind===4?n.add(new Fi(a.scopeName,a.ruleName)):n.add(new Pi(a.scopeName))}}}var Hi=class{kind=0},Ui=class{kind=1},Wi=class{constructor(e){this.ruleName=e}kind=2},Gi=class{constructor(e){this.scopeName=e}kind=3},Ki=class{constructor(e,t){this.scopeName=e,this.ruleName=t}kind=4};function qi(e){if(e===`$base`)return new Hi;if(e===`$self`)return new Ui;let t=e.indexOf(`#`);return t===-1?new Gi(e):t===0?new Wi(e.substring(1)):new Ki(e.substring(0,t),e.substring(t+1))}var Ji=/\\(\d+)/,Yi=/\\(\d+)/g,Xi=-1,Zi=-2;function Qi(e){return e}function $i(e){return e}var ea=class{$location;id;_nameIsCapturing;_name;_contentNameIsCapturing;_contentName;constructor(e,t,n,r){this.$location=e,this.id=t,this._name=n||null,this._nameIsCapturing=ci.hasCaptures(this._name),this._contentName=r||null,this._contentNameIsCapturing=ci.hasCaptures(this._contentName)}get debugName(){let e=this.$location?`${oi(this.$location.filename)}:${this.$location.line}`:`unknown`;return`${this.constructor.name}#${this.id} @ ${e}`}getName(e,t){return!this._nameIsCapturing||this._name===null||e===null||t===null?this._name:ci.replaceCaptures(this._name,e,t)}getContentName(e,t){return!this._contentNameIsCapturing||this._contentName===null?this._contentName:ci.replaceCaptures(this._contentName,e,t)}},ta=class extends ea{retokenizeCapturedWithRuleId;constructor(e,t,n,r,i){super(e,t,n,r),this.retokenizeCapturedWithRuleId=i}dispose(){}collectPatterns(e,t){throw Error(`Not supported!`)}compile(e,t){throw Error(`Not supported!`)}compileAG(e,t,n,r){throw Error(`Not supported!`)}},na=class extends ea{_match;captures;_cachedCompiledPatterns;constructor(e,t,n,r,i){super(e,t,n,null),this._match=new sa(r,this.id),this.captures=i,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&=(this._cachedCompiledPatterns.dispose(),null)}get debugMatchRegExp(){return`${this._match.source}`}collectPatterns(e,t){t.push(this._match)}compile(e,t){return this._getCachedCompiledPatterns(e).compile(e)}compileAG(e,t,n,r){return this._getCachedCompiledPatterns(e).compileAG(e,n,r)}_getCachedCompiledPatterns(e){return this._cachedCompiledPatterns||(this._cachedCompiledPatterns=new ca,this.collectPatterns(e,this._cachedCompiledPatterns)),this._cachedCompiledPatterns}},ra=class extends ea{hasMissingPatterns;patterns;_cachedCompiledPatterns;constructor(e,t,n,r,i){super(e,t,n,r),this.patterns=i.patterns,this.hasMissingPatterns=i.hasMissingPatterns,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&=(this._cachedCompiledPatterns.dispose(),null)}collectPatterns(e,t){for(let n of this.patterns)e.getRule(n).collectPatterns(e,t)}compile(e,t){return this._getCachedCompiledPatterns(e).compile(e)}compileAG(e,t,n,r){return this._getCachedCompiledPatterns(e).compileAG(e,n,r)}_getCachedCompiledPatterns(e){return this._cachedCompiledPatterns||(this._cachedCompiledPatterns=new ca,this.collectPatterns(e,this._cachedCompiledPatterns)),this._cachedCompiledPatterns}},ia=class extends ea{_begin;beginCaptures;_end;endHasBackReferences;endCaptures;applyEndPatternLast;hasMissingPatterns;patterns;_cachedCompiledPatterns;constructor(e,t,n,r,i,a,o,s,c,l){super(e,t,n,r),this._begin=new sa(i,this.id),this.beginCaptures=a,this._end=new sa(o||`￿`,-1),this.endHasBackReferences=this._end.hasBackReferences,this.endCaptures=s,this.applyEndPatternLast=c||!1,this.patterns=l.patterns,this.hasMissingPatterns=l.hasMissingPatterns,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&=(this._cachedCompiledPatterns.dispose(),null)}get debugBeginRegExp(){return`${this._begin.source}`}get debugEndRegExp(){return`${this._end.source}`}getEndWithResolvedBackReferences(e,t){return this._end.resolveBackReferences(e,t)}collectPatterns(e,t){t.push(this._begin)}compile(e,t){return this._getCachedCompiledPatterns(e,t).compile(e)}compileAG(e,t,n,r){return this._getCachedCompiledPatterns(e,t).compileAG(e,n,r)}_getCachedCompiledPatterns(e,t){if(!this._cachedCompiledPatterns){this._cachedCompiledPatterns=new ca;for(let t of this.patterns)e.getRule(t).collectPatterns(e,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,t):this._cachedCompiledPatterns.setSource(0,t)),this._cachedCompiledPatterns}},aa=class extends ea{_begin;beginCaptures;whileCaptures;_while;whileHasBackReferences;hasMissingPatterns;patterns;_cachedCompiledPatterns;_cachedCompiledWhilePatterns;constructor(e,t,n,r,i,a,o,s,c){super(e,t,n,r),this._begin=new sa(i,this.id),this.beginCaptures=a,this.whileCaptures=s,this._while=new sa(o,Zi),this.whileHasBackReferences=this._while.hasBackReferences,this.patterns=c.patterns,this.hasMissingPatterns=c.hasMissingPatterns,this._cachedCompiledPatterns=null,this._cachedCompiledWhilePatterns=null}dispose(){this._cachedCompiledPatterns&&=(this._cachedCompiledPatterns.dispose(),null),this._cachedCompiledWhilePatterns&&=(this._cachedCompiledWhilePatterns.dispose(),null)}get debugBeginRegExp(){return`${this._begin.source}`}get debugWhileRegExp(){return`${this._while.source}`}getWhileWithResolvedBackReferences(e,t){return this._while.resolveBackReferences(e,t)}collectPatterns(e,t){t.push(this._begin)}compile(e,t){return this._getCachedCompiledPatterns(e).compile(e)}compileAG(e,t,n,r){return this._getCachedCompiledPatterns(e).compileAG(e,n,r)}_getCachedCompiledPatterns(e){if(!this._cachedCompiledPatterns){this._cachedCompiledPatterns=new ca;for(let t of this.patterns)e.getRule(t).collectPatterns(e,this._cachedCompiledPatterns)}return this._cachedCompiledPatterns}compileWhile(e,t){return this._getCachedCompiledWhilePatterns(e,t).compile(e)}compileWhileAG(e,t,n,r){return this._getCachedCompiledWhilePatterns(e,t).compileAG(e,n,r)}_getCachedCompiledWhilePatterns(e,t){return this._cachedCompiledWhilePatterns||(this._cachedCompiledWhilePatterns=new ca,this._cachedCompiledWhilePatterns.push(this._while.hasBackReferences?this._while.clone():this._while)),this._while.hasBackReferences&&this._cachedCompiledWhilePatterns.setSource(0,t||`￿`),this._cachedCompiledWhilePatterns}},oa=class e{static createCaptureRule(e,t,n,r,i){return e.registerRule(e=>new ta(t,e,n,r,i))}static getCompiledRuleId(t,n,r){return t.id||n.registerRule(i=>{if(t.id=i,t.match)return new na(t.$vscodeTextmateLocation,t.id,t.name,t.match,e._compileCaptures(t.captures,n,r));if(t.begin===void 0){t.repository&&(r=ai({},r,t.repository));let i=t.patterns;return i===void 0&&t.include&&(i=[{include:t.include}]),new ra(t.$vscodeTextmateLocation,t.id,t.name,t.contentName,e._compilePatterns(i,n,r))}return t.while?new aa(t.$vscodeTextmateLocation,t.id,t.name,t.contentName,t.begin,e._compileCaptures(t.beginCaptures||t.captures,n,r),t.while,e._compileCaptures(t.whileCaptures||t.captures,n,r),e._compilePatterns(t.patterns,n,r)):new ia(t.$vscodeTextmateLocation,t.id,t.name,t.contentName,t.begin,e._compileCaptures(t.beginCaptures||t.captures,n,r),t.end,e._compileCaptures(t.endCaptures||t.captures,n,r),t.applyEndPatternLast,e._compilePatterns(t.patterns,n,r))}),t.id}static _compileCaptures(t,n,r){let i=[];if(t){let a=0;for(let e in t){if(e===`$vscodeTextmateLocation`)continue;let t=parseInt(e,10);t>a&&(a=t)}for(let e=0;e<=a;e++)i[e]=null;for(let a in t){if(a===`$vscodeTextmateLocation`)continue;let o=parseInt(a,10),s=0;t[a].patterns&&(s=e.getCompiledRuleId(t[a],n,r)),i[o]=e.createCaptureRule(n,t[a].$vscodeTextmateLocation,t[a].name,t[a].contentName,s)}}return i}static _compilePatterns(t,n,r){let i=[];if(t)for(let a=0,o=t.length;a<o;a++){let o=t[a],s=-1;if(o.include){let t=qi(o.include);switch(t.kind){case 0:case 1:s=e.getCompiledRuleId(r[o.include],n,r);break;case 2:let i=r[t.ruleName];i&&(s=e.getCompiledRuleId(i,n,r));break;case 3:case 4:let a=t.scopeName,c=t.kind===4?t.ruleName:null,l=n.getExternalGrammar(a,r);if(l){if(c){let t=l.repository[c];t&&(s=e.getCompiledRuleId(t,n,l.repository))}else s=e.getCompiledRuleId(l.repository.$self,n,l.repository)}}}else s=e.getCompiledRuleId(o,n,r);if(s!==-1){let e=n.getRule(s),t=!1;if((e instanceof ra||e instanceof ia||e instanceof aa)&&e.hasMissingPatterns&&e.patterns.length===0&&(t=!0),t)continue;i.push(s)}}return{patterns:i,hasMissingPatterns:(t?t.length:0)!==i.length}}},sa=class e{source;ruleId;hasAnchor;hasBackReferences;_anchorCache;constructor(e,t){if(e&&typeof e==`string`){let t=e.length,n=0,r=[],i=!1;for(let a=0;a<t;a++)if(e.charAt(a)===`\\`&&a+1<t){let t=e.charAt(a+1);t===`z`?(r.push(e.substring(n,a)),r.push(`$(?!\\n)(?<!\\n)`),n=a+2):(t===`A`||t===`G`)&&(i=!0),a++}this.hasAnchor=i,n===0?this.source=e:(r.push(e.substring(n,t)),this.source=r.join(``))}else this.hasAnchor=!1,this.source=e;this._anchorCache=this.hasAnchor?this._buildAnchorCache():null,this.ruleId=t,this.hasBackReferences=typeof this.source==`string`&&Ji.test(this.source)}clone(){return new e(this.source,this.ruleId)}setSource(e){this.source!==e&&(this.source=e,this.hasAnchor&&(this._anchorCache=this._buildAnchorCache()))}resolveBackReferences(e,t){if(typeof this.source!=`string`)throw Error(`This method should only be called if the source is a string`);let n=t.map(t=>e.substring(t.start,t.end));return Yi.lastIndex=0,this.source.replace(Yi,(e,t)=>fi(n[parseInt(t,10)]||``))}_buildAnchorCache(){if(typeof this.source!=`string`)throw Error(`This method should only be called if the source is a string`);let e=[],t=[],n=[],r=[],i,a,o,s;for(i=0,a=this.source.length;i<a;i++)o=this.source.charAt(i),e[i]=o,t[i]=o,n[i]=o,r[i]=o,o===`\\`&&i+1<a&&(s=this.source.charAt(i+1),s===`A`?(e[i+1]=`￿`,t[i+1]=`￿`,n[i+1]=`A`,r[i+1]=`A`):s===`G`?(e[i+1]=`￿`,t[i+1]=`G`,n[i+1]=`￿`,r[i+1]=`G`):(e[i+1]=s,t[i+1]=s,n[i+1]=s,r[i+1]=s),i++);return{A0_G0:e.join(``),A0_G1:t.join(``),A1_G0:n.join(``),A1_G1:r.join(``)}}resolveAnchors(e,t){return!this.hasAnchor||!this._anchorCache||typeof this.source!=`string`?this.source:e?t?this._anchorCache.A1_G1:this._anchorCache.A1_G0:t?this._anchorCache.A0_G1:this._anchorCache.A0_G0}},ca=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(),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(e){this._items.push(e),this._hasAnchors=this._hasAnchors||e.hasAnchor}unshift(e){this._items.unshift(e),this._hasAnchors=this._hasAnchors||e.hasAnchor}length(){return this._items.length}setSource(e,t){this._items[e].source!==t&&(this._disposeCaches(),this._items[e].setSource(t))}compile(e){if(!this._cached){let t=this._items.map(e=>e.source);this._cached=new la(e,t,this._items.map(e=>e.ruleId))}return this._cached}compileAG(e,t,n){return this._hasAnchors?t?n?(this._anchorCache.A1_G1||(this._anchorCache.A1_G1=this._resolveAnchors(e,t,n)),this._anchorCache.A1_G1):(this._anchorCache.A1_G0||(this._anchorCache.A1_G0=this._resolveAnchors(e,t,n)),this._anchorCache.A1_G0):n?(this._anchorCache.A0_G1||(this._anchorCache.A0_G1=this._resolveAnchors(e,t,n)),this._anchorCache.A0_G1):(this._anchorCache.A0_G0||(this._anchorCache.A0_G0=this._resolveAnchors(e,t,n)),this._anchorCache.A0_G0):this.compile(e)}_resolveAnchors(e,t,n){return new la(e,this._items.map(e=>e.resolveAnchors(t,n)),this._items.map(e=>e.ruleId))}},la=class{constructor(e,t,n){this.regExps=t,this.rules=n,this.scanner=e.createOnigScanner(t)}scanner;dispose(){typeof this.scanner.dispose==`function`&&this.scanner.dispose()}toString(){let e=[];for(let t=0,n=this.rules.length;t<n;t++)e.push(` - `+this.rules[t]+`: `+this.regExps[t]);return e.join(`
1
+ const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/_D0t4sewY.js","assets/_rCLcJh8a.js","assets/_BhEWYlaD.js","assets/_CFRyEmz9.js","assets/_BnmFcEOd.js","assets/_DzgXbNBA.js","assets/_QAl9MOeZ.js","assets/_olpqzRSA.js","assets/_DbZt6CiW.js","assets/_Ds1I-o0I.js","assets/_9XfT_kAQ.js","assets/_BzTvUB76.js","assets/_BXeXVLqQ.js","assets/_B6sV8ze1.js","assets/_CipnEfhW.js","assets/_DNJ8I4VP.js","assets/_DpPC5wTX.js","assets/_YkIvmgMd.js","assets/_bTVj8UrX.js","assets/_BAfg1_wL.js","assets/_gzcpVVnB.js","assets/_ncO15QKP.js","assets/_NFyQLwL2.js","assets/_bqkRF2KZ.js","assets/_D665uiM0.js","assets/_DzNaxOWz.js","assets/_530dhCBX.js","assets/_DfqWGAs9.js","assets/_Dj3bzjmr.js","assets/_DP1Fr0Go.js","assets/_BEYtrZXu.js","assets/_B7h5MWRM.js","assets/_BVmlWew8.js","assets/_G89RhQlY.js","assets/_DC-362Aa.js","assets/_B1HStpW0.js","assets/_BGe5YZvC.js","assets/_DTeRAxTo.js","assets/_IiWL7q-1.js","assets/_D1L2c6wa.js","assets/_BaHq4SXp.js","assets/_BYOwaDjH.js","assets/_CQJs3lWb.js","assets/_CYNrtFtB.js","assets/_DmIc4jLQ.js","assets/_DbYA3moe.js","assets/_CBce3t8t.js","assets/_DYvRD3hg.js","assets/_Dl-2e7rI.js","assets/_woXpYk--.js","assets/_DHIh3Zqg.js","assets/_D3df-HXh.js","assets/_D_Gans_z.js","assets/_DbXISrnz.js","assets/_6rlK2kiT.js","assets/_DVMRwfVQ.js","assets/_DbUljy8T.js","assets/_Dx-8-gkx.js","assets/_DekxQCZG.js","assets/_C8oCnwJJ.js","assets/_ClKuBt_u.js","assets/_Dbu06XRI.js","assets/_C7x79ALL.js","assets/_DpkEy7xD.js","assets/_Dof9bk1s.js","assets/_DvQxG-WL.js","assets/_CH6cXBn1.js","assets/_CFjEXYsy.js","assets/__ALUCVjh.js","assets/_DcxKRExU.js","assets/_DVTAwKKz.js","assets/_DtvewBGv.js","assets/_DWQbgPoS.js","assets/_DJMQeKeT.js","assets/_CdSpe7--.js","assets/_mP9WBNxQ.js","assets/_C2NGeccQ.js","assets/_DqKBuwfJ.js","assets/_oqKa8noW.js","assets/_CnvKMtbv.js","assets/_IyjqRm3v.js","assets/_rLFTqkRN.js","assets/_CacY0gHj.js","assets/_B5eOa1yu.js","assets/_Dixweg8N.js","assets/_D1A_Heim.js","assets/_O90oeIOV.js","assets/_Vlcj833j.js","assets/_DOwzaHZ0.js","assets/_B3gFvitq.js","assets/_Cfkwpbl8.js","assets/_BiFt_7mu.js","assets/_CMLA9XwU.js","assets/_DR3Klkrj.js","assets/_B18ixB2z.js","assets/_BeUy9moF.js","assets/_DQ-mN0nj.js","assets/_DP401U9L.js","assets/_Bj61d0ZC.js","assets/_Jr9Fn7zH.js","assets/_DB-OQ-9y.js","assets/_Cvrh5tZx.js","assets/_DPOs-wSZ.js","assets/_BESJywRP.js","assets/_L8AbGenz.js","assets/_ByJddavk.js","assets/_ClqL5v_T.js","assets/_B2bgY7VH.js","assets/_T_ugRwFS.js","assets/_CAaE_29m.js","assets/_Bcf_bFWr.js","assets/_CC5Ll6yL.js","assets/_CpFF408S.js","assets/_qdxAdBWQ.js","assets/_Ci_nEsc7.js","assets/_CYpm1nAK.js","assets/_BNLmms1o.js","assets/_CCSX75yM.js","assets/_CyEgAFGc.js","assets/_Dh5ihWbf.js","assets/_B2gwz-sJ.js","assets/_tGYm6QKl.js","assets/_TQk60Mlv.js","assets/_C82_OMnf.js","assets/_B6D30XZt.js"])))=>i.map(i=>d[i]);
2
+ import{A as e,At as t,B as n,G as r,H as i,Ht as a,It as o,J as s,K as c,Lt as l,N as u,O as d,Ot as f,R as p,V as m,W as h,X as g,Z as _,j as v,jt as y,q as b}from"./_BRMftHcc.js";import{A as x,B as S,D as C,E as w,F as T,G as E,H as ee,I as D,J as O,K as k,L as te,N as A,P as j,R as M,U as N,V as P,W as F,_ as ne,a as I,b as L,i as R,l as re,n as ie,r as ae,t as z,u as oe,v as B,x as se,y as V,z as H}from"./_CyXOHGY9.js";import{$t as ce,A as le,C as ue,Ct as de,D as fe,E as pe,F as me,H as he,Hn as ge,J as _e,Jn as ve,Kn as U,L as ye,Mt as be,O as xe,Qt as Se,S as Ce,T as we,Vn as Te,W as Ee,Wn as De,a as Oe,bt as ke,i as Ae,j as je,k as Me,n as Ne,nn as Pe,r as Fe,rt as Ie,t as Le,tt as Re,w as ze,yn as Be}from"./_CHZBmkiY.js";import{a as Ve,i as He,n as Ue,r as We,t as Ge}from"./_Cv9dhNUU.js";import{$ as Ke,A as qe,B as Je,D as Ye,E as Xe,F as Ze,I as Qe,L as $e,M as et,N as W,O as tt,P as nt,S as rt,a as it,ct as at,ft as ot,i as st,j as ct,k as lt,n as ut,r as dt,st as ft,t as pt,ut as mt,z as ht}from"./_BeDFg_MS.js";import{B as gt,C as _t,I as vt,L as yt,P as bt,S as xt,T as St,W as Ct,a as wt,c as Tt,i as Et,l as Dt,n as Ot,o as kt,r as At,s as jt,t as Mt,u as Nt,w as Pt,x as Ft}from"./_Wo5eUHN5.js";import{t as It}from"./_D2pdXUO3.js";import{a as Lt,c as Rt,d as zt,f as Bt,i as Vt,l as Ht,n as Ut,o as Wt,p as Gt,r as Kt,s as qt,t as Jt,u as Yt}from"./_UpY10-py.js";import{t as Xt}from"./_CcFCI5Av.js";import{_ as Zt,a as Qt,b as $t,c as en,d as tn,f as nn,h as rn,l as an,m as on,p as sn,t as cn,u as ln,v as un,y as dn}from"./_Gds0N5t0.js";import{a as fn,c as pn,i as mn,n as hn,r as gn,t as _n}from"./_BD0MMovF.js";import{a as vn,i as yn,n as bn,r as xn,t as Sn}from"./_BxePzpXb.js";var Cn=Object.create,wn=Object.defineProperty,Tn=Object.getOwnPropertyDescriptor,En=Object.getOwnPropertyNames,Dn=Object.getPrototypeOf,On=Object.prototype.hasOwnProperty,kn=(e,t)=>()=>(t||(e((t={exports:{}}).exports,t),e=null),t.exports),An=(e,t)=>{let n={};for(var r in e)wn(n,r,{get:e[r],enumerable:!0});return t||wn(n,Symbol.toStringTag,{value:`Module`}),n},jn=(e,t,n,r)=>{if(t&&typeof t==`object`||typeof t==`function`)for(var i=En(t),a=0,o=i.length,s;a<o;a++)s=i[a],!On.call(e,s)&&s!==n&&wn(e,s,{get:(e=>t[e]).bind(null,s),enumerable:!(r=Tn(t,s))||r.enumerable});return e},Mn=(e,t,n)=>(n=e==null?{}:Cn(Dn(e)),jn(t||!e||!e.__esModule||!On.call(e,`default`)?wn(n,`default`,{value:e,enumerable:!0}):n,e)),Nn=`diffs-container`,Pn=(()=>{try{return!1}catch{return!1}})(),Fn=/(?=^From [a-f0-9]+ .+$)/m,In=/(?=^diff --git)/gm,Ln=/(?<=\n)/,Rn=/^(---|\+\+\+)\s+([^\t\r\n]+)/,zn=/^index ([0-9a-f]+)\.\.([0-9a-f]+)(?: (\d+))?$/i,Bn=`header-prefix`,Vn=`header-filename-suffix`,Hn=`header-metadata`,Un=`header-custom`,Wn={dark:`pierre-dark`,light:`pierre-light`},Gn=`data-theme-css`,Kn=`data-unsafe-css`,qn=`data-diffs-scrollbar-measure`,Jn=`data-diffs-code-view-header`,Yn=`data-diffs-code-view-footer`,Xn=`--diffs-scrollbar-gutter-measured`,Zn=1e5,Qn={hunkLineCount:50,lineHeight:20,diffHeaderHeight:44,spacing:8},$n={...Qn,hunkLineCount:1},er={paddingTop:8,paddingBottom:8,gap:8},tr={omega:.015,positionEpsilon:.5,velocityEpsilon:.05},nr=Object.freeze({fromStart:0,fromEnd:0}),rr={startingLine:0,totalLines:1/0,bufferBefore:0,bufferAfter:0},ir={startingLine:0,totalLines:0,bufferBefore:0,bufferAfter:0},ar=new Map,or=new Map,sr=new Map,cr=new Set;function lr(e){for(let t of Array.isArray(e)?e:[e])if(t!==`text`&&t!==`ansi`&&!cr.has(t))return!1;return!0}function ur(e,t){e=Array.isArray(e)?e:[e];for(let n of e){if(cr.has(n.name))continue;let e=ar.get(n.name);e??(e=n,ar.set(n.name,e));let r=e.data.find(t=>t.name===e.name||t.aliases?.includes(e.name)===!0);if(r==null)throw Error(`attachResolvedLanguages: No returned grammar declares "${e.name}" as its name or an alias.`);t.loadLanguageSync(e.data);try{t.getLanguage(e.name)}catch{throw Error(`attachResolvedLanguages: "${r.name}" is already loaded without alias "${e.name}". Load the alias first or give the grammar a unique name.`)}cr.add(e.name)}}function dr(){return typeof WorkerGlobalScope<`u`&&typeof self<`u`&&self instanceof WorkerGlobalScope}var fr=Object.defineProperty,pr=Object.getOwnPropertyDescriptor,mr=Object.getOwnPropertyNames,hr=Object.prototype.hasOwnProperty,gr=(e,t)=>{let n={};for(var r in e)fr(n,r,{get:e[r],enumerable:!0});return t||fr(n,Symbol.toStringTag,{value:`Module`}),n},_r=(e,t,n,r)=>{if(t&&typeof t==`object`||typeof t==`function`)for(var i=mr(t),a=0,o=i.length,s;a<o;a++)s=i[a],!hr.call(e,s)&&s!==n&&fr(e,s,{get:(e=>t[e]).bind(null,s),enumerable:!(r=pr(t,s))||r.enumerable});return e},vr=(e,t,n)=>(_r(e,t,`default`),n&&_r(n,t,`default`)),yr=[{id:`abap`,name:`ABAP`,import:(()=>z(()=>import(`./_CLvhMVsD.js`),[]))},{id:`actionscript-3`,name:`ActionScript`,aliases:[`actionscript`,`as3`],import:(()=>z(()=>import(`./_Cs6JJXT5.js`),[]))},{id:`ada`,name:`Ada`,import:(()=>z(()=>import(`./_C5qYipkI.js`),[]))},{id:`ahk`,name:`AutoHotkey`,aliases:[`ahk1`],import:(()=>z(()=>import(`./_CA9gdOdF.js`),[]))},{id:`ahk2`,name:`AutoHotkey2`,import:(()=>z(()=>import(`./__6rzW9BS.js`),[]))},{id:`angular-html`,name:`Angular HTML`,import:(()=>z(()=>import(`./_D0t4sewY.js`).then(e=>e.n),__vite__mapDeps([0,1,2,3])))},{id:`angular-ts`,name:`Angular TypeScript`,import:(()=>z(()=>import(`./_BnmFcEOd.js`),__vite__mapDeps([4,0,1,2,3,5])))},{id:`apache`,name:`Apache Conf`,import:(()=>z(()=>import(`./_U0d_L8uA.js`),[]))},{id:`apex`,name:`Apex`,import:(()=>z(()=>import(`./_KFGFyKwG.js`),[]))},{id:`apl`,name:`APL`,import:(()=>z(()=>import(`./_QAl9MOeZ.js`),__vite__mapDeps([6,2,3,1,7,8,9])))},{id:`applescript`,name:`AppleScript`,import:(()=>z(()=>import(`./_CCn79oCD.js`),[]))},{id:`ara`,name:`Ara`,import:(()=>z(()=>import(`./_4CJ0cIlV.js`),[]))},{id:`asciidoc`,name:`AsciiDoc`,aliases:[`adoc`],import:(()=>z(()=>import(`./_SCjQUq34.js`),[]))},{id:`asm`,name:`Assembly`,import:(()=>z(()=>import(`./_Cmm7eHzH.js`),[]))},{id:`astro`,name:`Astro`,import:(()=>z(()=>import(`./_9XfT_kAQ.js`),__vite__mapDeps([10,2,3,9,11,12,13])))},{id:`awk`,name:`AWK`,import:(()=>z(()=>import(`./_BWXHIvNe.js`),[]))},{id:`ballerina`,name:`Ballerina`,import:(()=>z(()=>import(`./_B7ZEbQpA.js`),[]))},{id:`bat`,name:`Batch File`,aliases:[`batch`,`cmd`],import:(()=>z(()=>import(`./_qdxAdBWQ.js`),[]))},{id:`beancount`,name:`Beancount`,import:(()=>z(()=>import(`./_D-usSTwE.js`),[]))},{id:`berry`,name:`Berry`,aliases:[`be`],import:(()=>z(()=>import(`./_DKpUyyne.js`),[]))},{id:`bibtex`,name:`BibTeX`,import:(()=>z(()=>import(`./_Ci_nEsc7.js`),[]))},{id:`bicep`,name:`Bicep`,import:(()=>z(()=>import(`./_CUHmPFLl.js`),[]))},{id:`bird2`,name:`BIRD2 Configuration`,aliases:[`bird`],import:(()=>z(()=>import(`./_CYIUgYqB.js`),[]))},{id:`blade`,name:`Blade`,import:(()=>z(()=>import(`./_CipnEfhW.js`),__vite__mapDeps([14,2,3,1,7,8,9,15,16])))},{id:`bsl`,name:`1C (Enterprise)`,aliases:[`1c`],import:(()=>z(()=>import(`./_YkIvmgMd.js`),__vite__mapDeps([17,18])))},{id:`c`,name:`C`,import:(()=>z(()=>import(`./_NFyQLwL2.js`).then(e=>e.n),[]))},{id:`c3`,name:`C3`,import:(()=>z(()=>import(`./_D0apG41V.js`),[]))},{id:`cadence`,name:`Cadence`,aliases:[`cdc`],import:(()=>z(()=>import(`./_CQ2zXKGN.js`),[]))},{id:`cairo`,name:`Cairo`,import:(()=>z(()=>import(`./_BAfg1_wL.js`),__vite__mapDeps([19,20])))},{id:`chapel`,name:`Chapel`,aliases:[`chpl`],import:(()=>z(()=>import(`./_ncO15QKP.js`),__vite__mapDeps([21,22])))},{id:`clarity`,name:`Clarity`,import:(()=>z(()=>import(`./_CtfBBspg.js`),[]))},{id:`clojure`,name:`Clojure`,aliases:[`clj`],import:(()=>z(()=>import(`./_DqKBuwfJ.js`),[]))},{id:`cmake`,name:`CMake`,import:(()=>z(()=>import(`./_Bj61d0ZC.js`),[]))},{id:`cobol`,name:`COBOL`,import:(()=>z(()=>import(`./_bqkRF2KZ.js`),__vite__mapDeps([23,1,2,3,8])))},{id:`codeowners`,name:`CODEOWNERS`,import:(()=>z(()=>import(`./_C8r90Shi.js`),[]))},{id:`codeql`,name:`CodeQL`,aliases:[`ql`],import:(()=>z(()=>import(`./_oeQT6MSM.js`),[]))},{id:`coffee`,name:`CoffeeScript`,aliases:[`coffeescript`],import:(()=>z(()=>import(`./_D665uiM0.js`),__vite__mapDeps([24,2])))},{id:`common-lisp`,name:`Common Lisp`,aliases:[`lisp`],import:(()=>z(()=>import(`./_Cv5bFMCO.js`),[]))},{id:`coq`,name:`Rocq`,import:(()=>z(()=>import(`./_DuBRPxYg.js`),[]))},{id:`cpp`,name:`C++`,aliases:[`c++`],import:(()=>z(()=>import(`./_DzNaxOWz.js`).then(e=>e.n),__vite__mapDeps([25,26,27,22])))},{id:`crystal`,name:`Crystal`,import:(()=>z(()=>import(`./_Dj3bzjmr.js`),__vite__mapDeps([28,2,3,1,16,22,29])))},{id:`csharp`,name:`C#`,aliases:[`c#`,`cs`],import:(()=>z(()=>import(`./_oqKa8noW.js`),[]))},{id:`css`,name:`CSS`,import:(()=>z(()=>import(`./_CFRyEmz9.js`).then(e=>e.n),[]))},{id:`csv`,name:`CSV`,import:(()=>z(()=>import(`./_Dx-8-gkx.js`),[]))},{id:`cue`,name:`CUE`,import:(()=>z(()=>import(`./_CE9AQfxI.js`),[]))},{id:`cypher`,name:`Cypher`,aliases:[`cql`],import:(()=>z(()=>import(`./_ClKdZ_lG.js`),[]))},{id:`d`,name:`D`,import:(()=>z(()=>import(`./_qD-0Kul2.js`),[]))},{id:`dart`,name:`Dart`,import:(()=>z(()=>import(`./_CnvKMtbv.js`),[]))},{id:`dax`,name:`DAX`,import:(()=>z(()=>import(`./_BkyTk9wS.js`),[]))},{id:`desktop`,name:`Desktop`,import:(()=>z(()=>import(`./_Dlh5hvp9.js`),[]))},{id:`diff`,name:`Diff`,import:(()=>z(()=>import(`./_woXpYk--.js`),[]))},{id:`docker`,name:`Dockerfile`,aliases:[`dockerfile`],import:(()=>z(()=>import(`./_IyjqRm3v.js`),[]))},{id:`dotenv`,name:`dotEnv`,import:(()=>z(()=>import(`./__5a1GRtc.js`),[]))},{id:`dream-maker`,name:`Dream Maker`,import:(()=>z(()=>import(`./_DW3nJb8Q.js`),[]))},{id:`edge`,name:`Edge`,import:(()=>z(()=>import(`./_BEYtrZXu.js`),__vite__mapDeps([30,1,2,3,11,15])))},{id:`elixir`,name:`Elixir`,import:(()=>z(()=>import(`./_B7h5MWRM.js`),__vite__mapDeps([31,1,2,3])))},{id:`elm`,name:`Elm`,import:(()=>z(()=>import(`./_BVmlWew8.js`),__vite__mapDeps([32,27,22])))},{id:`emacs-lisp`,name:`Emacs Lisp`,aliases:[`elisp`],import:(()=>z(()=>import(`./_c_oH4hRZ.js`),[]))},{id:`erb`,name:`ERB`,import:(()=>z(()=>import(`./_G89RhQlY.js`),__vite__mapDeps([33,1,2,3,34,7,8,16,22,25,26,27,29,35,36,11,13,37,38,39])))},{id:`erlang`,name:`Erlang`,aliases:[`erl`],import:(()=>z(()=>import(`./_BaHq4SXp.js`),__vite__mapDeps([40,41])))},{id:`fennel`,name:`Fennel`,import:(()=>z(()=>import(`./_DQxkIbk2.js`),[]))},{id:`fish`,name:`Fish`,import:(()=>z(()=>import(`./_BJitypiv.js`),[]))},{id:`fluent`,name:`Fluent`,aliases:[`ftl`],import:(()=>z(()=>import(`./_C03EYrpw.js`),[]))},{id:`fortran-fixed-form`,name:`Fortran (Fixed Form)`,aliases:[`f`,`for`,`f77`],import:(()=>z(()=>import(`./_CQJs3lWb.js`),__vite__mapDeps([42,43])))},{id:`fortran-free-form`,name:`Fortran (Free Form)`,aliases:[`f90`,`f95`,`f03`,`f08`,`f18`],import:(()=>z(()=>import(`./_CYNrtFtB.js`),[]))},{id:`fsharp`,name:`F#`,aliases:[`f#`,`fs`],import:(()=>z(()=>import(`./_DmIc4jLQ.js`),__vite__mapDeps([44,41])))},{id:`gdresource`,name:`GDResource`,aliases:[`tscn`,`tres`],import:(()=>z(()=>import(`./_DbYA3moe.js`),__vite__mapDeps([45,46,47])))},{id:`gdscript`,name:`GDScript`,aliases:[`gd`],import:(()=>z(()=>import(`./_DYvRD3hg.js`),[]))},{id:`gdshader`,name:`GDShader`,import:(()=>z(()=>import(`./_CBce3t8t.js`),[]))},{id:`genie`,name:`Genie`,import:(()=>z(()=>import(`./_CV2tkWYe.js`),[]))},{id:`gherkin`,name:`Gherkin`,import:(()=>z(()=>import(`./_DExj1W_8.js`),[]))},{id:`git-commit`,name:`Git Commit Message`,import:(()=>z(()=>import(`./_Dl-2e7rI.js`),__vite__mapDeps([48,49])))},{id:`git-rebase`,name:`Git Rebase Message`,import:(()=>z(()=>import(`./_DHIh3Zqg.js`),__vite__mapDeps([50,29])))},{id:`gleam`,name:`Gleam`,import:(()=>z(()=>import(`./_CSRkHgEL.js`),[]))},{id:`glimmer-js`,name:`Glimmer JS`,aliases:[`gjs`],import:(()=>z(()=>import(`./_D3df-HXh.js`),__vite__mapDeps([51,2,3,1,11])))},{id:`glimmer-ts`,name:`Glimmer TS`,aliases:[`gts`],import:(()=>z(()=>import(`./_D_Gans_z.js`),__vite__mapDeps([52,2,3,1,11])))},{id:`glsl`,name:`GLSL`,import:(()=>z(()=>import(`./_DfqWGAs9.js`).then(e=>e.n),__vite__mapDeps([27,22])))},{id:`gn`,name:`GN`,import:(()=>z(()=>import(`./_ilITqXS6.js`),[]))},{id:`gnuplot`,name:`Gnuplot`,import:(()=>z(()=>import(`./_7GGW24-e.js`),[]))},{id:`go`,name:`Go`,import:(()=>z(()=>import(`./_rLFTqkRN.js`),[]))},{id:`graphql`,name:`GraphQL`,aliases:[`gql`],import:(()=>z(()=>import(`./_BGe5YZvC.js`).then(e=>e.n),__vite__mapDeps([36,2,11,13,37])))},{id:`groovy`,name:`Groovy`,import:(()=>z(()=>import(`./_CacY0gHj.js`),[]))},{id:`hack`,name:`Hack`,import:(()=>z(()=>import(`./_DbXISrnz.js`),__vite__mapDeps([53,1,2,3,16])))},{id:`haml`,name:`Ruby Haml`,import:(()=>z(()=>import(`./_B1HStpW0.js`).then(e=>e.n),__vite__mapDeps([35,2,3])))},{id:`handlebars`,name:`Handlebars`,aliases:[`hbs`],import:(()=>z(()=>import(`./_6rlK2kiT.js`),__vite__mapDeps([54,2,3,1,39])))},{id:`haskell`,name:`Haskell`,aliases:[`hs`],import:(()=>z(()=>import(`./_D8IpX4py.js`),[]))},{id:`haxe`,name:`Haxe`,import:(()=>z(()=>import(`./_C8oCnwJJ.js`),[]))},{id:`hcl`,name:`HashiCorp HCL`,import:(()=>z(()=>import(`./_Dh228itO.js`),[]))},{id:`hjson`,name:`Hjson`,import:(()=>z(()=>import(`./_CxZEssPk.js`),[]))},{id:`hlsl`,name:`HLSL`,import:(()=>z(()=>import(`./_Cvrh5tZx.js`),[]))},{id:`html`,name:`HTML`,import:(()=>z(()=>import(`./_rCLcJh8a.js`).then(e=>e.n),__vite__mapDeps([1,2,3])))},{id:`html-derivative`,name:`HTML (Derivative)`,import:(()=>z(()=>import(`./_DNJ8I4VP.js`),__vite__mapDeps([15,1,2,3])))},{id:`http`,name:`HTTP`,import:(()=>z(()=>import(`./_DVMRwfVQ.js`),__vite__mapDeps([55,7,8,9,29,36,2,11,13,37])))},{id:`hurl`,name:`Hurl`,import:(()=>z(()=>import(`./_DbUljy8T.js`),__vite__mapDeps([56,7,8,57,36,2,11,13,37])))},{id:`hxml`,name:`HXML`,import:(()=>z(()=>import(`./_DekxQCZG.js`),__vite__mapDeps([58,59])))},{id:`hy`,name:`Hy`,import:(()=>z(()=>import(`./_CZbG8q4J.js`),[]))},{id:`imba`,name:`Imba`,import:(()=>z(()=>import(`./_DsUTQ-LC.js`),[]))},{id:`ini`,name:`INI`,aliases:[`properties`],import:(()=>z(()=>import(`./_B5eOa1yu.js`),[]))},{id:`java`,name:`Java`,import:(()=>z(()=>import(`./_DbZt6CiW.js`).then(e=>e.n),[]))},{id:`javascript`,name:`JavaScript`,aliases:[`js`,`cjs`,`mjs`],import:(()=>z(()=>import(`./_BhEWYlaD.js`).then(e=>e.n),[]))},{id:`jinja`,name:`Jinja`,import:(()=>z(()=>import(`./_ClKuBt_u.js`),__vite__mapDeps([60,1,2,3])))},{id:`jison`,name:`Jison`,import:(()=>z(()=>import(`./_Dbu06XRI.js`),__vite__mapDeps([61,2])))},{id:`json`,name:`JSON`,import:(()=>z(()=>import(`./_Ds1I-o0I.js`).then(e=>e.n),[]))},{id:`json5`,name:`JSON5`,import:(()=>z(()=>import(`./_BR5RXkoi.js`),[]))},{id:`jsonc`,name:`JSON with Comments`,import:(()=>z(()=>import(`./_CYpm1nAK.js`),[]))},{id:`jsonl`,name:`JSON Lines`,import:(()=>z(()=>import(`./_CmCQp5Yx.js`),[]))},{id:`jsonnet`,name:`Jsonnet`,import:(()=>z(()=>import(`./_CJTPZ8u_.js`),[]))},{id:`jssm`,name:`JSSM`,aliases:[`fsl`],import:(()=>z(()=>import(`./_DXw9l8Rf.js`),[]))},{id:`jsx`,name:`JSX`,import:(()=>z(()=>import(`./_DTeRAxTo.js`).then(e=>e.n),[]))},{id:`julia`,name:`Julia`,aliases:[`jl`],import:(()=>z(()=>import(`./_C7x79ALL.js`),__vite__mapDeps([62,2,16,20,25,26,27,22,63])))},{id:`just`,name:`Just`,aliases:[`justfile`],import:(()=>z(()=>import(`./_Dof9bk1s.js`),__vite__mapDeps([64,2,11,20,29,34,3,1,7,8,16,22,25,26,27,35,36,13,37,38,39,65])))},{id:`kdl`,name:`KDL`,import:(()=>z(()=>import(`./_CsD5j6eV.js`),[]))},{id:`kotlin`,name:`Kotlin`,aliases:[`kt`,`kts`],import:(()=>z(()=>import(`./_DhhofPvG.js`),[]))},{id:`kusto`,name:`Kusto`,aliases:[`kql`],import:(()=>z(()=>import(`./_C7mF5XQf.js`),[]))},{id:`latex`,name:`LaTeX`,import:(()=>z(()=>import(`./_CH6cXBn1.js`),__vite__mapDeps([66,67,63])))},{id:`lean`,name:`Lean 4`,aliases:[`lean4`],import:(()=>z(()=>import(`./_CewbzKMR.js`),[]))},{id:`less`,name:`Less`,import:(()=>z(()=>import(`./_DVTAwKKz.js`),[]))},{id:`liquid`,name:`Liquid`,import:(()=>z(()=>import(`./__ALUCVjh.js`),__vite__mapDeps([68,2,3,1,9])))},{id:`llvm`,name:`LLVM IR`,import:(()=>z(()=>import(`./_DqHOMS-s.js`),[]))},{id:`log`,name:`Log file`,import:(()=>z(()=>import(`./_BNLmms1o.js`),[]))},{id:`logo`,name:`Logo`,import:(()=>z(()=>import(`./_Cluzi2Zq.js`),[]))},{id:`lua`,name:`Lua`,import:(()=>z(()=>import(`./_IiWL7q-1.js`).then(e=>e.n),__vite__mapDeps([38,22])))},{id:`luau`,name:`Luau`,import:(()=>z(()=>import(`./_C2pBCSgt.js`),[]))},{id:`make`,name:`Makefile`,aliases:[`makefile`],import:(()=>z(()=>import(`./_Dixweg8N.js`),[]))},{id:`markdown`,name:`Markdown`,aliases:[`md`],import:(()=>z(()=>import(`./_BYOwaDjH.js`),[]))},{id:`marko`,name:`Marko`,import:(()=>z(()=>import(`./_DcxKRExU.js`),__vite__mapDeps([69,3,5,11,70])))},{id:`matlab`,name:`MATLAB`,import:(()=>z(()=>import(`./_D7qyCx1q.js`),[]))},{id:`mdc`,name:`MDC`,import:(()=>z(()=>import(`./_DtvewBGv.js`),__vite__mapDeps([71,15,1,2,3,39,41])))},{id:`mdx`,name:`MDX`,import:(()=>z(()=>import(`./_DQZ5AkYe.js`),[]))},{id:`mermaid`,name:`Mermaid`,aliases:[`mmd`],import:(()=>z(()=>import(`./_BxpfTIzt.js`),[]))},{id:`mipsasm`,name:`MIPS Assembly`,aliases:[`mips`],import:(()=>z(()=>import(`./_BMqwQI7S.js`),[]))},{id:`mojo`,name:`Mojo`,import:(()=>z(()=>import(`./_fg40_ntQ.js`),[]))},{id:`moonbit`,name:`MoonBit`,aliases:[`mbt`,`mbti`],import:(()=>z(()=>import(`./_DgjMoLWr.js`),[]))},{id:`move`,name:`Move`,import:(()=>z(()=>import(`./_BYnGhZoM.js`),[]))},{id:`narrat`,name:`Narrat Language`,aliases:[`nar`],import:(()=>z(()=>import(`./__X_XdTYD.js`),[]))},{id:`nextflow`,name:`Nextflow`,aliases:[`nf`],import:(()=>z(()=>import(`./_DWQbgPoS.js`),__vite__mapDeps([72,73])))},{id:`nextflow-groovy`,name:`Nextflow Groovy`,import:(()=>z(()=>import(`./_DJMQeKeT.js`),[]))},{id:`nginx`,name:`Nginx`,import:(()=>z(()=>import(`./_CdSpe7--.js`),__vite__mapDeps([74,38,22])))},{id:`nim`,name:`Nim`,import:(()=>z(()=>import(`./_mP9WBNxQ.js`),__vite__mapDeps([75,2,3,1,7,8,22,27,41])))},{id:`nix`,name:`Nix`,import:(()=>z(()=>import(`./_IvuFDN5E.js`),[]))},{id:`nsis`,name:`NSIS`,import:(()=>z(()=>import(`./_CjNLYCLg.js`),[]))},{id:`nushell`,name:`nushell`,aliases:[`nu`],import:(()=>z(()=>import(`./_DHYfO66s.js`),[]))},{id:`objective-c`,name:`Objective-C`,aliases:[`objc`],import:(()=>z(()=>import(`./_D1A_Heim.js`),[]))},{id:`objective-cpp`,name:`Objective-C++`,import:(()=>z(()=>import(`./_BsSzOQcm.js`),[]))},{id:`ocaml`,name:`OCaml`,import:(()=>z(()=>import(`./_O90oeIOV.js`),[]))},{id:`odin`,name:`Odin`,import:(()=>z(()=>import(`./_B1RWQWA5.js`),[]))},{id:`openscad`,name:`OpenSCAD`,aliases:[`scad`],import:(()=>z(()=>import(`./_BUDT5pXO.js`),[]))},{id:`org`,name:`Org Markup`,import:(()=>z(()=>import(`./_C2NGeccQ.js`),__vite__mapDeps([76,2,3,1,5,8,7,9,11,13,16,22,20,77,24,26,25,27,29,78,79,49,80,31,38,39,34,35,36,37,41,40,48,50,81,82,83,63,65,66,67,70,84,75,85,86,87,88,89,90,91,92,93])))},{id:`pascal`,name:`Pascal`,import:(()=>z(()=>import(`./_4ZHwLPI5.js`),[]))},{id:`perl`,name:`Perl`,import:(()=>z(()=>import(`./_DvQxG-WL.js`),__vite__mapDeps([65,2,3,1,7,8,16])))},{id:`php`,name:`PHP`,import:(()=>z(()=>import(`./_Vlcj833j.js`),__vite__mapDeps([87,2,3,1,7,8,9,16])))},{id:`pkl`,name:`Pkl`,import:(()=>z(()=>import(`./_ot-7Btpt.js`),[]))},{id:`plsql`,name:`PL/SQL`,import:(()=>z(()=>import(`./_DGHpHOYJ.js`),[]))},{id:`po`,name:`Gettext PO`,aliases:[`pot`,`potx`],import:(()=>z(()=>import(`./_BiJDBrnU.js`),[]))},{id:`polar`,name:`Polar`,import:(()=>z(()=>import(`./_C7UOKdEL.js`),[]))},{id:`postcss`,name:`PostCSS`,import:(()=>z(()=>import(`./_BXeXVLqQ.js`),[]))},{id:`powerquery`,name:`PowerQuery`,import:(()=>z(()=>import(`./_DNMTfnFr.js`),[]))},{id:`powershell`,name:`PowerShell`,aliases:[`ps`,`ps1`,`pwsh`],import:(()=>z(()=>import(`./_CCSX75yM.js`),[]))},{id:`prisma`,name:`Prisma`,import:(()=>z(()=>import(`./_DMgNhnYS.js`),[]))},{id:`prolog`,name:`Prolog`,import:(()=>z(()=>import(`./_iXnhIJG7.js`),[]))},{id:`proto`,name:`Protocol Buffer 3`,aliases:[`protobuf`],import:(()=>z(()=>import(`./_DB4EqR-F.js`),[]))},{id:`pug`,name:`Pug`,aliases:[`jade`],import:(()=>z(()=>import(`./_B18ixB2z.js`),__vite__mapDeps([94,2,3,1])))},{id:`puppet`,name:`Puppet`,import:(()=>z(()=>import(`./_CDv2pdJW.js`),[]))},{id:`purescript`,name:`PureScript`,import:(()=>z(()=>import(`./_9MfHhQsQ.js`),[]))},{id:`python`,name:`Python`,aliases:[`py`],import:(()=>z(()=>import(`./_gzcpVVnB.js`),[]))},{id:`qml`,name:`QML`,import:(()=>z(()=>import(`./_BeUy9moF.js`),__vite__mapDeps([95,2])))},{id:`qmldir`,name:`QML Directory`,import:(()=>z(()=>import(`./_DCQb3MpD.js`),[]))},{id:`qss`,name:`Qt Style Sheets`,import:(()=>z(()=>import(`./_Fe1Jh2GI.js`),[]))},{id:`r`,name:`R`,import:(()=>z(()=>import(`./_DpkEy7xD.js`).then(e=>e.n),[]))},{id:`racket`,name:`Racket`,import:(()=>z(()=>import(`./_DcIDlBhZ.js`),[]))},{id:`raku`,name:`Raku`,aliases:[`perl6`],import:(()=>z(()=>import(`./_B3gFvitq.js`),[]))},{id:`razor`,name:`ASP.NET Razor`,import:(()=>z(()=>import(`./_DQ-mN0nj.js`),__vite__mapDeps([96,1,2,3,78])))},{id:`rbs`,name:`RBS`,aliases:[`ruby-signature`],import:(()=>z(()=>import(`./_C0MpOrj4.js`),[]))},{id:`reg`,name:`Windows Registry Script`,import:(()=>z(()=>import(`./_CRGYupPL.js`),[]))},{id:`regexp`,name:`RegExp`,aliases:[`regex`],import:(()=>z(()=>import(`./_530dhCBX.js`).then(e=>e.n),[]))},{id:`rel`,name:`Rel`,import:(()=>z(()=>import(`./_BtDbiS_P.js`),[]))},{id:`riscv`,name:`RISC-V`,import:(()=>z(()=>import(`./_Ckw8ddFX.js`),[]))},{id:`ron`,name:`RON`,import:(()=>z(()=>import(`./_VUp2lXgN.js`),[]))},{id:`rosmsg`,name:`ROS Interface`,import:(()=>z(()=>import(`./_CAekHB0j.js`),[]))},{id:`rst`,name:`reStructuredText`,import:(()=>z(()=>import(`./_DP401U9L.js`),__vite__mapDeps([97,2,15,1,3,20,98,25,26,27,22,29,39,34,7,8,16,35,36,11,13,37,38])))},{id:`ruby`,name:`Ruby`,aliases:[`rb`],import:(()=>z(()=>import(`./_DC-362Aa.js`),__vite__mapDeps([34,2,3,1,7,8,16,22,25,26,27,29,35,36,11,13,37,38,39])))},{id:`rust`,name:`Rust`,aliases:[`rs`],import:(()=>z(()=>import(`./_Cfkwpbl8.js`),[]))},{id:`sas`,name:`SAS`,import:(()=>z(()=>import(`./_Jr9Fn7zH.js`),__vite__mapDeps([99,16])))},{id:`sass`,name:`Sass`,import:(()=>z(()=>import(`./_DXrisJhu.js`),[]))},{id:`scala`,name:`Scala`,import:(()=>z(()=>import(`./_BiFt_7mu.js`),[]))},{id:`scheme`,name:`Scheme`,import:(()=>z(()=>import(`./_DQCgrYNe.js`),[]))},{id:`scss`,name:`SCSS`,import:(()=>z(()=>import(`./_DzgXbNBA.js`).then(e=>e.n),__vite__mapDeps([5,3])))},{id:`sdbl`,name:`1C (Query)`,aliases:[`1c-query`],import:(()=>z(()=>import(`./_bTVj8UrX.js`),[]))},{id:`shaderlab`,name:`ShaderLab`,aliases:[`shader`],import:(()=>z(()=>import(`./_DB-OQ-9y.js`),__vite__mapDeps([100,101])))},{id:`shellscript`,name:`Shell`,aliases:[`bash`,`sh`,`shell`,`zsh`],import:(()=>z(()=>import(`./_DP1Fr0Go.js`).then(e=>e.n),[]))},{id:`shellsession`,name:`Shell Session`,aliases:[`console`],import:(()=>z(()=>import(`./_DPOs-wSZ.js`),__vite__mapDeps([102,29])))},{id:`smalltalk`,name:`GNU Smalltalk`,import:(()=>z(()=>import(`./_BHpQb5nM.js`),[]))},{id:`smithy`,name:`Smithy`,import:(()=>z(()=>import(`./_Dgaz7aur.js`),[]))},{id:`solidity`,name:`Solidity`,import:(()=>z(()=>import(`./_Bj7E1mRn.js`),[]))},{id:`soy`,name:`Closure Templates`,aliases:[`closure-templates`],import:(()=>z(()=>import(`./_BESJywRP.js`),__vite__mapDeps([103,1,2,3])))},{id:`sparql`,name:`SPARQL`,import:(()=>z(()=>import(`./_L8AbGenz.js`),__vite__mapDeps([104,105])))},{id:`splunk`,name:`Splunk Query Language`,aliases:[`spl`],import:(()=>z(()=>import(`./_BC2Px7Mm.js`),[]))},{id:`sql`,name:`SQL`,import:(()=>z(()=>import(`./_DpPC5wTX.js`).then(e=>e.n),[]))},{id:`ssh-config`,name:`SSH Config`,import:(()=>z(()=>import(`./_BgfXC-Er.js`),[]))},{id:`stata`,name:`Stata`,import:(()=>z(()=>import(`./_ClqL5v_T.js`),__vite__mapDeps([106,16])))},{id:`stylus`,name:`Stylus`,aliases:[`styl`],import:(()=>z(()=>import(`./_B6D30XZt.js`),[]))},{id:`surrealql`,name:`SurrealQL`,aliases:[`surql`],import:(()=>z(()=>import(`./_B2bgY7VH.js`),__vite__mapDeps([107,2])))},{id:`svelte`,name:`Svelte`,import:(()=>z(()=>import(`./_T_ugRwFS.js`),__vite__mapDeps([108,2,3,11,12])))},{id:`swift`,name:`Swift`,import:(()=>z(()=>import(`./_CyEgAFGc.js`),[]))},{id:`system-verilog`,name:`SystemVerilog`,import:(()=>z(()=>import(`./_Dh5ihWbf.js`),[]))},{id:`systemd`,name:`Systemd Units`,import:(()=>z(()=>import(`./_BxMlprV5.js`),[]))},{id:`talonscript`,name:`TalonScript`,aliases:[`talon`],import:(()=>z(()=>import(`./_CohzipZa.js`),[]))},{id:`tasl`,name:`Tasl`,import:(()=>z(()=>import(`./_DMoTqEGO.js`),[]))},{id:`tcl`,name:`Tcl`,import:(()=>z(()=>import(`./_CZd0xW_V.js`),[]))},{id:`templ`,name:`Templ`,import:(()=>z(()=>import(`./_CAaE_29m.js`),__vite__mapDeps([109,2,3,81])))},{id:`terraform`,name:`Terraform`,aliases:[`tf`,`tfvars`],import:(()=>z(()=>import(`./_DswuEJGm.js`),[]))},{id:`tex`,name:`TeX`,import:(()=>z(()=>import(`./_CFjEXYsy.js`).then(e=>e.n),__vite__mapDeps([67,63])))},{id:`toml`,name:`TOML`,import:(()=>z(()=>import(`./_CcmNWLt0.js`),[]))},{id:`ts-tags`,name:`TypeScript with Tags`,aliases:[`lit`],import:(()=>z(()=>import(`./_Bcf_bFWr.js`),__vite__mapDeps([110,2,3,1,7,8,11,16,27,22])))},{id:`tsv`,name:`TSV`,import:(()=>z(()=>import(`./_sltzmVWM.js`),[]))},{id:`tsx`,name:`TSX`,import:(()=>z(()=>import(`./_B6sV8ze1.js`).then(e=>e.n),[]))},{id:`turtle`,name:`Turtle`,import:(()=>z(()=>import(`./_ByJddavk.js`),[]))},{id:`twig`,name:`Twig`,import:(()=>z(()=>import(`./_CC5Ll6yL.js`),__vite__mapDeps([111,2,3,5,20,34,1,7,8,16,22,25,26,27,29,35,36,11,13,37,38,39,87,9])))},{id:`typescript`,name:`TypeScript`,aliases:[`ts`,`cts`,`mts`],import:(()=>z(()=>import(`./_BzTvUB76.js`).then(e=>e.n),[]))},{id:`typespec`,name:`TypeSpec`,aliases:[`tsp`],import:(()=>z(()=>import(`./_BRdr0IET.js`),[]))},{id:`typst`,name:`Typst`,aliases:[`typ`],import:(()=>z(()=>import(`./_CpFF408S.js`),__vite__mapDeps([112,2,3,1,5,8,7,9,11,13,113,114,16,22,20,77,24,26,25,27,29,78,79,49,80,31,38,39,34,35,36,37,41,40,44,48,50,81,82,54,83,115,63,62,65,66,67,70,116,84,85,87,88,89,90,91,93,117,94,118,119,111,120])))},{id:`v`,name:`V`,import:(()=>z(()=>import(`./_DBj4K9d_.js`),[]))},{id:`vala`,name:`Vala`,import:(()=>z(()=>import(`./_zf12oZj6.js`),[]))},{id:`vb`,name:`Visual Basic`,import:(()=>z(()=>import(`./_DOwzaHZ0.js`),[]))},{id:`verilog`,name:`Verilog`,import:(()=>z(()=>import(`./_B2gwz-sJ.js`),[]))},{id:`vhdl`,name:`VHDL`,import:(()=>z(()=>import(`./_BroJfC0k.js`),[]))},{id:`viml`,name:`Vim Script`,aliases:[`vim`,`vimscript`],import:(()=>z(()=>import(`./_DvXPmvsu.js`),[]))},{id:`vue`,name:`Vue`,import:(()=>z(()=>import(`./_tGYm6QKl.js`),__vite__mapDeps([121,2,3,1,9,11,15])))},{id:`vue-html`,name:`Vue HTML`,import:(()=>z(()=>import(`./_TQk60Mlv.js`),__vite__mapDeps([122,2])))},{id:`vue-vine`,name:`Vue Vine`,import:(()=>z(()=>import(`./_C82_OMnf.js`),__vite__mapDeps([123,2,3,5,12,70,124])))},{id:`vyper`,name:`Vyper`,aliases:[`vy`],import:(()=>z(()=>import(`./_CgoNMtux.js`),[]))},{id:`wasm`,name:`WebAssembly`,import:(()=>z(()=>import(`./_ByWQv1Qj.js`),[]))},{id:`wenyan`,name:`Wenyan`,aliases:[`文言`],import:(()=>z(()=>import(`./_C8pVoKbM.js`),[]))},{id:`wgsl`,name:`WGSL`,import:(()=>z(()=>import(`./_BsKzXJz4.js`),[]))},{id:`wikitext`,name:`Wikitext`,aliases:[`mediawiki`,`wiki`],import:(()=>z(()=>import(`./_ClFFjSW2.js`),[]))},{id:`wit`,name:`WebAssembly Interface Types`,import:(()=>z(()=>import(`./_DdvCle-K.js`),[]))},{id:`wolfram`,name:`Wolfram`,aliases:[`wl`],import:(()=>z(()=>import(`./_DLL8P-h_.js`),[]))},{id:`xml`,name:`XML`,import:(()=>z(()=>import(`./_olpqzRSA.js`).then(e=>e.n),__vite__mapDeps([7,8])))},{id:`xsl`,name:`XSL`,import:(()=>z(()=>import(`./_DR3Klkrj.js`),__vite__mapDeps([93,7,8])))},{id:`yaml`,name:`YAML`,aliases:[`yml`],import:(()=>z(()=>import(`./_D1L2c6wa.js`).then(e=>e.n),[]))},{id:`zenscript`,name:`ZenScript`,import:(()=>z(()=>import(`./_BnlCZFoB.js`),[]))},{id:`zig`,name:`Zig`,import:(()=>z(()=>import(`./_CMLA9XwU.js`),[]))}],br=Object.fromEntries(yr.map(e=>[e.id,e.import])),xr=Object.fromEntries(yr.flatMap(e=>e.aliases?.map(t=>[t,e.import])||[])),Sr={...br,...xr},Cr=Object.fromEntries([{id:`andromeeda`,displayName:`Andromeeda`,type:`dark`,import:(()=>z(()=>import(`./_vGVdxbeo.js`),[]))},{id:`aurora-x`,displayName:`Aurora X`,type:`dark`,import:(()=>z(()=>import(`./_CDeNXAV0.js`),[]))},{id:`ayu-dark`,displayName:`Ayu Dark`,type:`dark`,import:(()=>z(()=>import(`./_DluEY0Gj.js`),[]))},{id:`ayu-light`,displayName:`Ayu Light`,type:`light`,import:(()=>z(()=>import(`./_C3h-C4tm.js`),[]))},{id:`ayu-mirage`,displayName:`Ayu Mirage`,type:`dark`,import:(()=>z(()=>import(`./_Bqwy1Gya.js`),[]))},{id:`catppuccin-frappe`,displayName:`Catppuccin Frappé`,type:`dark`,import:(()=>z(()=>import(`./_C9Q5zVZY.js`),[]))},{id:`catppuccin-latte`,displayName:`Catppuccin Latte`,type:`light`,import:(()=>z(()=>import(`./_CtsyrtPq.js`),[]))},{id:`catppuccin-macchiato`,displayName:`Catppuccin Macchiato`,type:`dark`,import:(()=>z(()=>import(`./_R8nAf1vR.js`),[]))},{id:`catppuccin-mocha`,displayName:`Catppuccin Mocha`,type:`dark`,import:(()=>z(()=>import(`./_DjuaAJKi.js`),[]))},{id:`dark-plus`,displayName:`Dark Plus`,type:`dark`,import:(()=>z(()=>import(`./_Cs2F2srj.js`),[]))},{id:`dracula`,displayName:`Dracula Theme`,type:`dark`,import:(()=>z(()=>import(`./_BHWKrbxM.js`),[]))},{id:`dracula-soft`,displayName:`Dracula Theme Soft`,type:`dark`,import:(()=>z(()=>import(`./_5eyTD99u.js`),[]))},{id:`everforest-dark`,displayName:`Everforest Dark`,type:`dark`,import:(()=>z(()=>import(`./_sB-x3p7T.js`),[]))},{id:`everforest-light`,displayName:`Everforest Light`,type:`light`,import:(()=>z(()=>import(`./_Df2xbC6M.js`),[]))},{id:`github-dark`,displayName:`GitHub Dark`,type:`dark`,import:(()=>z(()=>import(`./_C-LZuMrd.js`),[]))},{id:`github-dark-default`,displayName:`GitHub Dark Default`,type:`dark`,import:(()=>z(()=>import(`./_DXG-b-1a.js`),[]))},{id:`github-dark-dimmed`,displayName:`GitHub Dark Dimmed`,type:`dark`,import:(()=>z(()=>import(`./_Bx1FflLF.js`),[]))},{id:`github-dark-high-contrast`,displayName:`GitHub Dark High Contrast`,type:`dark`,import:(()=>z(()=>import(`./_B_tTalzw.js`),[]))},{id:`github-light`,displayName:`GitHub Light`,type:`light`,import:(()=>z(()=>import(`./_EUqPIrTm.js`),[]))},{id:`github-light-default`,displayName:`GitHub Light Default`,type:`light`,import:(()=>z(()=>import(`./_BXViO-2h.js`),[]))},{id:`github-light-high-contrast`,displayName:`GitHub Light High Contrast`,type:`light`,import:(()=>z(()=>import(`./_B68TUdTA.js`),[]))},{id:`gruvbox-dark-hard`,displayName:`Gruvbox Dark Hard`,type:`dark`,import:(()=>z(()=>import(`./_C820rvS2.js`),[]))},{id:`gruvbox-dark-medium`,displayName:`Gruvbox Dark Medium`,type:`dark`,import:(()=>z(()=>import(`./_BPjhmG05.js`),[]))},{id:`gruvbox-dark-soft`,displayName:`Gruvbox Dark Soft`,type:`dark`,import:(()=>z(()=>import(`./_MrdJrrXF.js`),[]))},{id:`gruvbox-light-hard`,displayName:`Gruvbox Light Hard`,type:`light`,import:(()=>z(()=>import(`./_BC_s9l72.js`),[]))},{id:`gruvbox-light-medium`,displayName:`Gruvbox Light Medium`,type:`light`,import:(()=>z(()=>import(`./_BAWPOn9u.js`),[]))},{id:`gruvbox-light-soft`,displayName:`Gruvbox Light Soft`,type:`light`,import:(()=>z(()=>import(`./_BSMLrYjP.js`),[]))},{id:`horizon`,displayName:`Horizon`,type:`dark`,import:(()=>z(()=>import(`./_CE9ld1lL.js`),[]))},{id:`horizon-bright`,displayName:`Horizon Bright`,type:`light`,import:(()=>z(()=>import(`./_DSNQnXHK.js`),[]))},{id:`houston`,displayName:`Houston`,type:`dark`,import:(()=>z(()=>import(`./_CsvMBhTu.js`),[]))},{id:`kanagawa-dragon`,displayName:`Kanagawa Dragon`,type:`dark`,import:(()=>z(()=>import(`./_Bozd7klA.js`),[]))},{id:`kanagawa-lotus`,displayName:`Kanagawa Lotus`,type:`light`,import:(()=>z(()=>import(`./_BmuOG9ZW.js`),[]))},{id:`kanagawa-wave`,displayName:`Kanagawa Wave`,type:`dark`,import:(()=>z(()=>import(`./_BML5mF2J.js`),[]))},{id:`laserwave`,displayName:`LaserWave`,type:`dark`,import:(()=>z(()=>import(`./_C_8bwKvT.js`),[]))},{id:`light-plus`,displayName:`Light Plus`,type:`light`,import:(()=>z(()=>import(`./_DVQuIRkW.js`),[]))},{id:`material-theme`,displayName:`Material Theme`,type:`dark`,import:(()=>z(()=>import(`./_Bm3Qr25_.js`),[]))},{id:`material-theme-darker`,displayName:`Material Theme Darker`,type:`dark`,import:(()=>z(()=>import(`./_2IIEA8gg.js`),[]))},{id:`material-theme-lighter`,displayName:`Material Theme Lighter`,type:`light`,import:(()=>z(()=>import(`./_uhdI0v04.js`),[]))},{id:`material-theme-ocean`,displayName:`Material Theme Ocean`,type:`dark`,import:(()=>z(()=>import(`./_CHQ94UKr.js`),[]))},{id:`material-theme-palenight`,displayName:`Material Theme Palenight`,type:`dark`,import:(()=>z(()=>import(`./_B5W6OYN7.js`),[]))},{id:`min-dark`,displayName:`Min Dark`,type:`dark`,import:(()=>z(()=>import(`./_BSWPekZh.js`),[]))},{id:`min-light`,displayName:`Min Light`,type:`light`,import:(()=>z(()=>import(`./_DDpmG2fV.js`),[]))},{id:`monokai`,displayName:`Monokai`,type:`dark`,import:(()=>z(()=>import(`./_B_bV9PQ9.js`),[]))},{id:`night-owl`,displayName:`Night Owl`,type:`dark`,import:(()=>z(()=>import(`./_DhmEMT88.js`),[]))},{id:`night-owl-light`,displayName:`Night Owl Light`,type:`light`,import:(()=>z(()=>import(`./_eJ-hLW7d.js`),[]))},{id:`nord`,displayName:`Nord`,type:`dark`,import:(()=>z(()=>import(`./_Cb4Vim4T.js`),[]))},{id:`one-dark-pro`,displayName:`One Dark Pro`,type:`dark`,import:(()=>z(()=>import(`./_CLwyXe_n.js`),[]))},{id:`one-light`,displayName:`One Light`,type:`light`,import:(()=>z(()=>import(`./_D7Lr4KcI.js`),[]))},{id:`plastic`,displayName:`Plastic`,type:`dark`,import:(()=>z(()=>import(`./_DQwYfKfQ.js`),[]))},{id:`poimandres`,displayName:`Poimandres`,type:`dark`,import:(()=>z(()=>import(`./_DRFjx7u4.js`),[]))},{id:`red`,displayName:`Red`,type:`dark`,import:(()=>z(()=>import(`./_DX1BQOs8.js`),[]))},{id:`rose-pine`,displayName:`Rosé Pine`,type:`dark`,import:(()=>z(()=>import(`./_aMsaMD1D.js`),[]))},{id:`rose-pine-dawn`,displayName:`Rosé Pine Dawn`,type:`light`,import:(()=>z(()=>import(`./_8PwUyIlP.js`),[]))},{id:`rose-pine-moon`,displayName:`Rosé Pine Moon`,type:`dark`,import:(()=>z(()=>import(`./_DO-qXg-I.js`),[]))},{id:`slack-dark`,displayName:`Slack Dark`,type:`dark`,import:(()=>z(()=>import(`./_DnToyrRv.js`),[]))},{id:`slack-ochin`,displayName:`Slack Ochin`,type:`light`,import:(()=>z(()=>import(`./_B2OO5cIa.js`),[]))},{id:`snazzy-light`,displayName:`Snazzy Light`,type:`light`,import:(()=>z(()=>import(`./_4G7pJPwS.js`),[]))},{id:`solarized-dark`,displayName:`Solarized Dark`,type:`dark`,import:(()=>z(()=>import(`./_UdsmMDCL.js`),[]))},{id:`solarized-light`,displayName:`Solarized Light`,type:`light`,import:(()=>z(()=>import(`./_C1IUL_tW.js`),[]))},{id:`synthwave-84`,displayName:`Synthwave '84`,type:`dark`,import:(()=>z(()=>import(`./_nFMaYfgc.js`),[]))},{id:`tokyo-night`,displayName:`Tokyo Night`,type:`dark`,import:(()=>z(()=>import(`./_oM2G3aXe.js`),[]))},{id:`vesper`,displayName:`Vesper`,type:`dark`,import:(()=>z(()=>import(`./_DdrHHSXu.js`),[]))},{id:`vitesse-black`,displayName:`Vitesse Black`,type:`dark`,import:(()=>z(()=>import(`./_fwtXNY1n.js`),[]))},{id:`vitesse-dark`,displayName:`Vitesse Dark`,type:`dark`,import:(()=>z(()=>import(`./_BZCL-v6S.js`),[]))},{id:`vitesse-light`,displayName:`Vitesse Light`,type:`light`,import:(()=>z(()=>import(`./_VbXTXTou.js`),[]))}].map(e=>[e.id,e.import])),wr=An({createOnigurumaEngine:()=>Qr,getDefaultWasmLoader:()=>Zr,loadWasm:()=>Gr,setDefaultWasmLoader:()=>Xr}),Tr=class extends Error{constructor(e){super(e),this.name=`ShikiError`}};function Er(){return 2147483648}function Dr(){return typeof performance<`u`?performance.now():Date.now()}var Or=(e,t)=>e+(t-e%t)%t;async function kr(e){let t,n,r={};function i(e){n=e,r.HEAPU8=new Uint8Array(e),r.HEAPU32=new Uint32Array(e)}function a(e,t,n){r.HEAPU8.copyWithin(e,t,t+n)}function o(e){try{return t.grow(e-n.byteLength+65535>>>16),i(t.buffer),1}catch{}}function s(e){let t=r.HEAPU8.length;e>>>=0;let n=Er();if(e>n)return!1;for(let r=1;r<=4;r*=2){let i=t*(1+.2/r);if(i=Math.min(i,e+100663296),o(Math.min(n,Or(Math.max(e,i),65536))))return!0}return!1}let c=typeof TextDecoder<`u`?new TextDecoder(`utf8`):void 0;function l(e,t,n=1024){let r=t+n,i=t;for(;e[i]&&!(i>=r);)++i;if(i-t>16&&e.buffer&&c)return c.decode(e.subarray(t,i));let a=``;for(;t<i;){let n=e[t++];if(!(n&128)){a+=String.fromCharCode(n);continue}let r=e[t++]&63;if((n&224)==192){a+=String.fromCharCode((n&31)<<6|r);continue}let i=e[t++]&63;if(n=(n&240)==224?(n&15)<<12|r<<6|i:(n&7)<<18|r<<12|i<<6|e[t++]&63,n<65536)a+=String.fromCharCode(n);else{let e=n-65536;a+=String.fromCharCode(55296|e>>10,56320|e&1023)}}return a}function u(e,t){return e?l(r.HEAPU8,e,t):``}let d={emscripten_get_now:Dr,emscripten_memcpy_big:a,emscripten_resize_heap:s,fd_write:()=>0};async function f(){let n=await e({env:d,wasi_snapshot_preview1:d});t=n.memory,i(t.buffer),Object.assign(r,n),r.UTF8ToString=u}return await f(),r}var Ar=Object.defineProperty,jr=(e,t,n)=>t in e?Ar(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Mr=(e,t,n)=>jr(e,typeof t==`symbol`?t:t+``,n),Nr=null;function Pr(e){throw new Tr(e.UTF8ToString(e.getLastOnigError()))}var Fr=class e{constructor(t){Mr(this,`utf16Length`),Mr(this,`utf8Length`),Mr(this,`utf16Value`),Mr(this,`utf8Value`),Mr(this,`utf16OffsetToUtf8`),Mr(this,`utf8OffsetToUtf16`);let n=t.length,r=e._utf8ByteLength(t),i=r!==n,a=i?new Uint32Array(n+1):null;i&&(a[n]=r);let o=i?new Uint32Array(r+1):null;i&&(o[r]=n);let s=new Uint8Array(r),c=0;for(let e=0;e<n;e++){let r=t.charCodeAt(e),l=r,u=!1;if(r>=55296&&r<=56319&&e+1<n){let n=t.charCodeAt(e+1);n>=56320&&n<=57343&&(l=(r-55296<<10)+65536|n-56320,u=!0)}i&&(a[e]=c,u&&(a[e+1]=c),l<=127?o[c+0]=e:l<=2047?(o[c+0]=e,o[c+1]=e):l<=65535?(o[c+0]=e,o[c+1]=e,o[c+2]=e):(o[c+0]=e,o[c+1]=e,o[c+2]=e,o[c+3]=e)),l<=127?s[c++]=l:l<=2047?(s[c++]=192|(l&1984)>>>6,s[c++]=128|(l&63)>>>0):l<=65535?(s[c++]=224|(l&61440)>>>12,s[c++]=128|(l&4032)>>>6,s[c++]=128|(l&63)>>>0):(s[c++]=240|(l&1835008)>>>18,s[c++]=128|(l&258048)>>>12,s[c++]=128|(l&4032)>>>6,s[c++]=128|(l&63)>>>0),u&&e++}this.utf16Length=n,this.utf8Length=r,this.utf16Value=t,this.utf8Value=s,this.utf16OffsetToUtf8=a,this.utf8OffsetToUtf16=o}static _utf8ByteLength(e){let t=0;for(let n=0,r=e.length;n<r;n++){let i=e.charCodeAt(n),a=i,o=!1;if(i>=55296&&i<=56319&&n+1<r){let t=e.charCodeAt(n+1);t>=56320&&t<=57343&&(a=(i-55296<<10)+65536|t-56320,o=!0)}t+=a<=127?1:a<=2047?2:a<=65535?3:4,o&&n++}return t}createString(e){let t=e.omalloc(this.utf8Length);return e.HEAPU8.set(this.utf8Value,t),t}},Ir=class e{constructor(t){if(Mr(this,`id`,++e.LAST_ID),Mr(this,`_onigBinding`),Mr(this,`content`),Mr(this,`utf16Length`),Mr(this,`utf8Length`),Mr(this,`utf16OffsetToUtf8`),Mr(this,`utf8OffsetToUtf16`),Mr(this,`ptr`),!Nr)throw new Tr(`Must invoke loadWasm first.`);this._onigBinding=Nr,this.content=t;let n=new Fr(t);this.utf16Length=n.utf16Length,this.utf8Length=n.utf8Length,this.utf16OffsetToUtf8=n.utf16OffsetToUtf8,this.utf8OffsetToUtf16=n.utf8OffsetToUtf16,this.utf8Length<1e4&&!e._sharedPtrInUse?(e._sharedPtr||=Nr.omalloc(1e4),e._sharedPtrInUse=!0,Nr.HEAPU8.set(n.utf8Value,e._sharedPtr),this.ptr=e._sharedPtr):this.ptr=n.createString(Nr)}convertUtf8OffsetToUtf16(e){return this.utf8OffsetToUtf16?e<0?0:e>this.utf8Length?this.utf16Length:this.utf8OffsetToUtf16[e]:e}convertUtf16OffsetToUtf8(e){return this.utf16OffsetToUtf8?e<0?0:e>this.utf16Length?this.utf8Length:this.utf16OffsetToUtf8[e]:e}dispose(){this.ptr===e._sharedPtr?e._sharedPtrInUse=!1:this._onigBinding.ofree(this.ptr)}};Mr(Ir,`LAST_ID`,0),Mr(Ir,`_sharedPtr`,0),Mr(Ir,`_sharedPtrInUse`,!1);var Lr=Ir,Rr=class{constructor(e){if(Mr(this,`_onigBinding`),Mr(this,`_ptr`),!Nr)throw new Tr(`Must invoke loadWasm first.`);let t=[],n=[];for(let r=0,i=e.length;r<i;r++){let i=new Fr(e[r]);t[r]=i.createString(Nr),n[r]=i.utf8Length}let r=Nr.omalloc(4*e.length);Nr.HEAPU32.set(t,r/4);let i=Nr.omalloc(4*e.length);Nr.HEAPU32.set(n,i/4);let a=Nr.createOnigScanner(r,i,e.length);for(let n=0,r=e.length;n<r;n++)Nr.ofree(t[n]);Nr.ofree(i),Nr.ofree(r),a===0&&Pr(Nr),this._onigBinding=Nr,this._ptr=a}dispose(){this._onigBinding.freeOnigScanner(this._ptr)}findNextMatchSync(e,t,n){let r=0;if(typeof n==`number`&&(r=n),typeof e==`string`){e=new Lr(e);let n=this._findNextMatchSync(e,t,!1,r);return e.dispose(),n}return this._findNextMatchSync(e,t,!1,r)}_findNextMatchSync(e,t,n,r){let i=this._onigBinding,a=i.findNextOnigScannerMatch(this._ptr,e.id,e.ptr,e.utf8Length,e.convertUtf16OffsetToUtf8(t),r);if(a===0)return null;let o=i.HEAPU32,s=a/4,c=o[s++],l=o[s++],u=[];for(let t=0;t<l;t++){let n=e.convertUtf8OffsetToUtf16(o[s++]),r=e.convertUtf8OffsetToUtf16(o[s++]);u[t]={start:n,end:r,length:r-n}}return{index:c,captureIndices:u}}};function zr(e){return typeof e.instantiator==`function`}function Br(e){return typeof e.default==`function`}function Vr(e){return e.data!==void 0}function Hr(e){return typeof Response<`u`&&e instanceof Response}function Ur(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}var Wr;function Gr(e){if(Wr)return Wr;async function t(){Nr=await kr(async t=>{let n=e;return n=await n,typeof n==`function`&&(n=await n(t)),typeof n==`function`&&(n=await n(t)),zr(n)?n=await n.instantiator(t):Br(n)?n=await n.default(t):(Vr(n)&&(n=n.data),Hr(n)?n=typeof WebAssembly.instantiateStreaming==`function`?await qr(n)(t):await Jr(n)(t):Ur(n)||n instanceof WebAssembly.Module?n=await Kr(n)(t):`default`in n&&n.default instanceof WebAssembly.Module&&(n=await Kr(n.default)(t))),`instance`in n&&(n=n.instance),`exports`in n&&(n=n.exports),n})}return Wr=t(),Wr}function Kr(e){return t=>WebAssembly.instantiate(e,t)}function qr(e){return t=>WebAssembly.instantiateStreaming(e,t)}function Jr(e){return async t=>{let n=await e.arrayBuffer();return WebAssembly.instantiate(n,t)}}var Yr;function Xr(e){Yr=e}function Zr(){return Yr}async function Qr(e){return e&&await Gr(e),{createScanner(e){return new Rr(e.map(e=>typeof e==`string`?e:e.source))},createString(e){return new Lr(e)}}}var $r=gr({});vr($r,wr);var ei=class extends Error{constructor(e){super(e),this.name=`ShikiError`}};function ti(e){return ni(e)}function ni(e){return Array.isArray(e)?ri(e):e instanceof RegExp?e:typeof e==`object`?ii(e):e}function ri(e){let t=[];for(let n=0,r=e.length;n<r;n++)t[n]=ni(e[n]);return t}function ii(e){let t={};for(let n in e)t[n]=ni(e[n]);return t}function ai(e,...t){return t.forEach(t=>{for(let n in t)e[n]=t[n]}),e}function oi(e){let t=~e.lastIndexOf(`/`)||~e.lastIndexOf(`\\`);return t===0?e:~t===e.length-1?oi(e.substring(0,e.length-1)):e.substr(~t+1)}var si=/\$(\d+)|\${(\d+):\/(downcase|upcase)}/g,ci=class{static hasCaptures(e){return e!==null&&(si.lastIndex=0,si.test(e))}static replaceCaptures(e,t,n){return e.replace(si,(e,r,i,a)=>{let o=n[parseInt(r||i,10)];if(o){let e=t.substring(o.start,o.end);for(;e[0]===`.`;)e=e.substring(1);switch(a){case`downcase`:return e.toLowerCase();case`upcase`:return e.toUpperCase();default:return e}}else return e})}};function li(e,t){return e<t?-1:+(e>t)}function ui(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 r=0;r<n;r++){let n=li(e[r],t[r]);if(n!==0)return n}return 0}return n-r}function di(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 fi(e){return e.replace(/[\-\\\{\}\*\+\?\|\^\$\.\,\[\]\(\)\#\s]/g,`\\$&`)}var pi=class{constructor(e){this.fn=e}cache=new Map;get(e){if(this.cache.has(e))return this.cache.get(e);let t=this.fn(e);return this.cache.set(e,t),t}},mi=class{constructor(e,t,n){this._colorMap=e,this._defaults=t,this._root=n}static createFromRawTheme(e,t){return this.createFromParsedTheme(yi(e),t)}static createFromParsedTheme(e,t){return Si(e,t)}_cachedMatchRoot=new pi(e=>this._root.match(e));getColorMap(){return this._colorMap.getColorMap()}getDefaults(){return this._defaults}match(e){if(e===null)return this._defaults;let t=e.scopeName,n=this._cachedMatchRoot.get(t).find(t=>gi(e.parent,t.parentScopes));return n?new vi(n.fontStyle,n.foreground,n.background):null}},hi=class e{constructor(e,t){this.parent=e,this.scopeName=t}static push(t,n){for(let r of n)t=new e(t,r);return t}static from(...t){let n=null;for(let r=0;r<t.length;r++)n=new e(n,t[r]);return n}push(t){return new e(this,t)}getSegments(){let e=this,t=[];for(;e;)t.push(e.scopeName),e=e.parent;return t.reverse(),t}toString(){return this.getSegments().join(` `)}extends(e){return this===e||this.parent!==null&&this.parent.extends(e)}getExtensionIfDefined(e){let t=[],n=this;for(;n&&n!==e;)t.push(n.scopeName),n=n.parent;return n===e?t.reverse():void 0}};function gi(e,t){if(t.length===0)return!0;for(let n=0;n<t.length;n++){let r=t[n],i=!1;if(r===`>`){if(n===t.length-1)return!1;r=t[++n],i=!0}for(;e&&!_i(e.scopeName,r);){if(i)return!1;e=e.parent}if(!e)return!1;e=e.parent}return!0}function _i(e,t){return t===e||e.startsWith(t)&&e[t.length]===`.`}var vi=class{constructor(e,t,n){this.fontStyle=e,this.foregroundId=t,this.backgroundId=n}};function yi(e){if(!e||!e.settings||!Array.isArray(e.settings))return[];let t=e.settings,n=[],r=0;for(let e=0,i=t.length;e<i;e++){let i=t[e];if(!i.settings)continue;let a;if(typeof i.scope==`string`){let e=i.scope;e=e.replace(/^[,]+/,``),e=e.replace(/[,]+$/,``),a=e.split(`,`)}else a=Array.isArray(i.scope)?i.scope:[``];let o=-1;if(typeof i.settings.fontStyle==`string`){o=0;let e=i.settings.fontStyle.split(` `);for(let t=0,n=e.length;t<n;t++)switch(e[t]){case`italic`:o|=1;break;case`bold`:o|=2;break;case`underline`:o|=4;break;case`strikethrough`:o|=8}}let s=null;typeof i.settings.foreground==`string`&&di(i.settings.foreground)&&(s=i.settings.foreground);let c=null;typeof i.settings.background==`string`&&di(i.settings.background)&&(c=i.settings.background);for(let t=0,i=a.length;t<i;t++){let i=a[t].trim().split(` `),l=i[i.length-1],u=null;i.length>1&&(u=i.slice(0,i.length-1),u.reverse()),n[r++]=new bi(l,u,e,o,s,c)}}return n}var bi=class{constructor(e,t,n,r,i,a){this.scope=e,this.parentScopes=t,this.index=n,this.fontStyle=r,this.foreground=i,this.background=a}},xi=(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))(xi||{});function Si(e,t){e.sort((e,t)=>{let n=li(e.scope,t.scope);return n!==0||(n=ui(e.parentScopes,t.parentScopes),n!==0)?n:e.index-t.index});let n=0,r=`#000000`,i=`#ffffff`;for(;e.length>=1&&e[0].scope===``;){let t=e.shift();t.fontStyle!==-1&&(n=t.fontStyle),t.foreground!==null&&(r=t.foreground),t.background!==null&&(i=t.background)}let a=new Ci(t),o=new vi(n,a.getId(r),a.getId(i)),s=new Ei(new Ti(0,null,-1,0,0),[]);for(let t=0,n=e.length;t<n;t++){let n=e[t];s.insert(0,n.scope,n.parentScopes,n.fontStyle,a.getId(n.foreground),a.getId(n.background))}return new mi(a,o,s)}var Ci=class{_isFrozen;_lastColorId;_id2color;_color2id;constructor(e){if(this._lastColorId=0,this._id2color=[],this._color2id=Object.create(null),Array.isArray(e)){this._isFrozen=!0;for(let t=0,n=e.length;t<n;t++)this._color2id[e[t]]=t,this._id2color[t]=e[t]}else this._isFrozen=!1}getId(e){if(e===null)return 0;e=e.toUpperCase();let t=this._color2id[e];if(t)return t;if(this._isFrozen)throw Error(`Missing color in color map - ${e}`);return t=++this._lastColorId,this._color2id[e]=t,this._id2color[t]=e,t}getColorMap(){return this._id2color.slice(0)}},wi=Object.freeze([]),Ti=class e{scopeDepth;parentScopes;fontStyle;foreground;background;constructor(e,t,n,r,i){this.scopeDepth=e,this.parentScopes=t||wi,this.fontStyle=n,this.foreground=r,this.background=i}clone(){return new e(this.scopeDepth,this.parentScopes,this.fontStyle,this.foreground,this.background)}static cloneArr(e){let t=[];for(let n=0,r=e.length;n<r;n++)t[n]=e[n].clone();return t}acceptOverwrite(e,t,n,r){this.scopeDepth>e?console.log(`how did this happen?`):this.scopeDepth=e,t!==-1&&(this.fontStyle=t),n!==0&&(this.foreground=n),r!==0&&(this.background=r)}},Ei=class e{constructor(e,t=[],n={}){this._mainRule=e,this._children=n,this._rulesWithParentScopes=t}_rulesWithParentScopes;static _cmpBySpecificity(e,t){if(e.scopeDepth!==t.scopeDepth)return t.scopeDepth-e.scopeDepth;let n=0,r=0;for(;e.parentScopes[n]===`>`&&n++,t.parentScopes[r]===`>`&&r++,!(n>=e.parentScopes.length||r>=t.parentScopes.length);){let i=t.parentScopes[r].length-e.parentScopes[n].length;if(i!==0)return i;n++,r++}return t.parentScopes.length-e.parentScopes.length}match(t){if(t!==``){let e=t.indexOf(`.`),n,r;if(e===-1?(n=t,r=``):(n=t.substring(0,e),r=t.substring(e+1)),this._children.hasOwnProperty(n))return this._children[n].match(r)}let n=this._rulesWithParentScopes.concat(this._mainRule);return n.sort(e._cmpBySpecificity),n}insert(t,n,r,i,a,o){if(n===``){this._doInsertHere(t,r,i,a,o);return}let s=n.indexOf(`.`),c,l;s===-1?(c=n,l=``):(c=n.substring(0,s),l=n.substring(s+1));let u;this._children.hasOwnProperty(c)?u=this._children[c]:(u=new e(this._mainRule.clone(),Ti.cloneArr(this._rulesWithParentScopes)),this._children[c]=u),u.insert(t+1,l,r,i,a,o)}_doInsertHere(e,t,n,r,i){if(t===null){this._mainRule.acceptOverwrite(e,n,r,i);return}for(let a=0,o=this._rulesWithParentScopes.length;a<o;a++){let o=this._rulesWithParentScopes[a];if(ui(o.parentScopes,t)===0){o.acceptOverwrite(e,n,r,i);return}}n===-1&&(n=this._mainRule.fontStyle),r===0&&(r=this._mainRule.foreground),i===0&&(i=this._mainRule.background),this._rulesWithParentScopes.push(new Ti(e,t,n,r,i))}},Di=class e{static toBinaryStr(e){return e.toString(2).padStart(32,`0`)}static print(t){let n=e.getLanguageId(t),r=e.getTokenType(t),i=e.getFontStyle(t),a=e.getForeground(t),o=e.getBackground(t);console.log({languageId:n,tokenType:r,fontStyle:i,foreground:a,background:o})}static getLanguageId(e){return(e&255)>>>0}static getTokenType(e){return(e&768)>>>8}static containsBalancedBrackets(e){return!!(e&1024)}static getFontStyle(e){return(e&30720)>>>11}static getForeground(e){return(e&16744448)>>>15}static getBackground(e){return(e&4278190080)>>>24}static set(t,n,r,i,a,o,s){let c=e.getLanguageId(t),l=e.getTokenType(t),u=+!!e.containsBalancedBrackets(t),d=e.getFontStyle(t),f=e.getForeground(t),p=e.getBackground(t);return n!==0&&(c=n),r!==8&&(l=ki(r)),i!==null&&(u=+!!i),a!==-1&&(d=a),o!==0&&(f=o),s!==0&&(p=s),(c<<0|l<<8|u<<10|d<<11|f<<15|p<<24)>>>0}};function Oi(e){return e}function ki(e){return e}function Ai(e,t){let n=[],r=Mi(e),i=r.next();for(;i!==null;){let e=0;if(i.length===2&&i.charAt(1)===`:`){switch(i.charAt(0)){case`R`:e=1;break;case`L`:e=-1;break;default:console.log(`Unknown priority ${i} in scope selector`)}i=r.next()}let t=o();if(n.push({matcher:t,priority:e}),i!==`,`)break;i=r.next()}return n;function a(){if(i===`-`){i=r.next();let e=a();return t=>!!e&&!e(t)}if(i===`(`){i=r.next();let e=s();return i===`)`&&(i=r.next()),e}if(ji(i)){let e=[];do e.push(i),i=r.next();while(ji(i));return n=>t(e,n)}return null}function o(){let e=[],t=a();for(;t;)e.push(t),t=a();return t=>e.every(e=>e(t))}function s(){let e=[],t=o();for(;t&&(e.push(t),i===`|`||i===`,`);){do i=r.next();while(i===`|`||i===`,`);t=o()}return t=>e.some(e=>e(t))}}function ji(e){return!!e&&!!e.match(/[\w\.:]+/)}function Mi(e){let t=/([LR]:|[\w\.:][\w\.:\-]*|[\,\|\-\(\)])/g,n=t.exec(e);return{next:()=>{if(!n)return null;let r=n[0];return n=t.exec(e),r}}}function Ni(e){typeof e.dispose==`function`&&e.dispose()}var Pi=class{constructor(e){this.scopeName=e}toKey(){return this.scopeName}},Fi=class{constructor(e,t){this.scopeName=e,this.ruleName=t}toKey(){return`${this.scopeName}#${this.ruleName}`}},Ii=class{_references=[];_seenReferenceKeys=new Set;get references(){return this._references}visitedRule=new Set;add(e){let t=e.toKey();this._seenReferenceKeys.has(t)||(this._seenReferenceKeys.add(t),this._references.push(e))}},Li=class{constructor(e,t){this.repo=e,this.initialScopeName=t,this.seenFullScopeRequests.add(this.initialScopeName),this.Q=[new Pi(this.initialScopeName)]}seenFullScopeRequests=new Set;seenPartialScopeRequests=new Set;Q;processQueue(){let e=this.Q;this.Q=[];let t=new Ii;for(let n of e)Ri(n,this.initialScopeName,this.repo,t);for(let e of t.references)if(e instanceof Pi){if(this.seenFullScopeRequests.has(e.scopeName))continue;this.seenFullScopeRequests.add(e.scopeName),this.Q.push(e)}else{if(this.seenFullScopeRequests.has(e.scopeName)||this.seenPartialScopeRequests.has(e.toKey()))continue;this.seenPartialScopeRequests.add(e.toKey()),this.Q.push(e)}}};function Ri(e,t,n,r){let i=n.lookup(e.scopeName);if(!i){if(e.scopeName===t)throw Error(`No grammar provided for <${t}>`);return}let a=n.lookup(t);e instanceof Pi?Bi({baseGrammar:a,selfGrammar:i},r):zi(e.ruleName,{baseGrammar:a,selfGrammar:i,repository:i.repository},r);let o=n.injections(e.scopeName);if(o)for(let e of o)r.add(new Pi(e))}function zi(e,t,n){if(t.repository&&t.repository[e]){let r=t.repository[e];Vi([r],t,n)}}function Bi(e,t){e.selfGrammar.patterns&&Array.isArray(e.selfGrammar.patterns)&&Vi(e.selfGrammar.patterns,{...e,repository:e.selfGrammar.repository},t),e.selfGrammar.injections&&Vi(Object.values(e.selfGrammar.injections),{...e,repository:e.selfGrammar.repository},t)}function Vi(e,t,n){for(let r of e){if(n.visitedRule.has(r))continue;n.visitedRule.add(r);let e=r.repository?ai({},t.repository,r.repository):t.repository;Array.isArray(r.patterns)&&Vi(r.patterns,{...t,repository:e},n);let i=r.include;if(!i)continue;let a=qi(i);switch(a.kind){case 0:Bi({...t,selfGrammar:t.baseGrammar},n);break;case 1:Bi(t,n);break;case 2:zi(a.ruleName,{...t,repository:e},n);break;case 3:case 4:let r=a.scopeName===t.selfGrammar.scopeName?t.selfGrammar:a.scopeName===t.baseGrammar.scopeName?t.baseGrammar:void 0;if(r){let i={baseGrammar:t.baseGrammar,selfGrammar:r,repository:e};a.kind===4?zi(a.ruleName,i,n):Bi(i,n)}else a.kind===4?n.add(new Fi(a.scopeName,a.ruleName)):n.add(new Pi(a.scopeName))}}}var Hi=class{kind=0},Ui=class{kind=1},Wi=class{constructor(e){this.ruleName=e}kind=2},Gi=class{constructor(e){this.scopeName=e}kind=3},Ki=class{constructor(e,t){this.scopeName=e,this.ruleName=t}kind=4};function qi(e){if(e===`$base`)return new Hi;if(e===`$self`)return new Ui;let t=e.indexOf(`#`);return t===-1?new Gi(e):t===0?new Wi(e.substring(1)):new Ki(e.substring(0,t),e.substring(t+1))}var Ji=/\\(\d+)/,Yi=/\\(\d+)/g,Xi=-1,Zi=-2;function Qi(e){return e}function $i(e){return e}var ea=class{$location;id;_nameIsCapturing;_name;_contentNameIsCapturing;_contentName;constructor(e,t,n,r){this.$location=e,this.id=t,this._name=n||null,this._nameIsCapturing=ci.hasCaptures(this._name),this._contentName=r||null,this._contentNameIsCapturing=ci.hasCaptures(this._contentName)}get debugName(){let e=this.$location?`${oi(this.$location.filename)}:${this.$location.line}`:`unknown`;return`${this.constructor.name}#${this.id} @ ${e}`}getName(e,t){return!this._nameIsCapturing||this._name===null||e===null||t===null?this._name:ci.replaceCaptures(this._name,e,t)}getContentName(e,t){return!this._contentNameIsCapturing||this._contentName===null?this._contentName:ci.replaceCaptures(this._contentName,e,t)}},ta=class extends ea{retokenizeCapturedWithRuleId;constructor(e,t,n,r,i){super(e,t,n,r),this.retokenizeCapturedWithRuleId=i}dispose(){}collectPatterns(e,t){throw Error(`Not supported!`)}compile(e,t){throw Error(`Not supported!`)}compileAG(e,t,n,r){throw Error(`Not supported!`)}},na=class extends ea{_match;captures;_cachedCompiledPatterns;constructor(e,t,n,r,i){super(e,t,n,null),this._match=new sa(r,this.id),this.captures=i,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&=(this._cachedCompiledPatterns.dispose(),null)}get debugMatchRegExp(){return`${this._match.source}`}collectPatterns(e,t){t.push(this._match)}compile(e,t){return this._getCachedCompiledPatterns(e).compile(e)}compileAG(e,t,n,r){return this._getCachedCompiledPatterns(e).compileAG(e,n,r)}_getCachedCompiledPatterns(e){return this._cachedCompiledPatterns||(this._cachedCompiledPatterns=new ca,this.collectPatterns(e,this._cachedCompiledPatterns)),this._cachedCompiledPatterns}},ra=class extends ea{hasMissingPatterns;patterns;_cachedCompiledPatterns;constructor(e,t,n,r,i){super(e,t,n,r),this.patterns=i.patterns,this.hasMissingPatterns=i.hasMissingPatterns,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&=(this._cachedCompiledPatterns.dispose(),null)}collectPatterns(e,t){for(let n of this.patterns)e.getRule(n).collectPatterns(e,t)}compile(e,t){return this._getCachedCompiledPatterns(e).compile(e)}compileAG(e,t,n,r){return this._getCachedCompiledPatterns(e).compileAG(e,n,r)}_getCachedCompiledPatterns(e){return this._cachedCompiledPatterns||(this._cachedCompiledPatterns=new ca,this.collectPatterns(e,this._cachedCompiledPatterns)),this._cachedCompiledPatterns}},ia=class extends ea{_begin;beginCaptures;_end;endHasBackReferences;endCaptures;applyEndPatternLast;hasMissingPatterns;patterns;_cachedCompiledPatterns;constructor(e,t,n,r,i,a,o,s,c,l){super(e,t,n,r),this._begin=new sa(i,this.id),this.beginCaptures=a,this._end=new sa(o||`￿`,-1),this.endHasBackReferences=this._end.hasBackReferences,this.endCaptures=s,this.applyEndPatternLast=c||!1,this.patterns=l.patterns,this.hasMissingPatterns=l.hasMissingPatterns,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&=(this._cachedCompiledPatterns.dispose(),null)}get debugBeginRegExp(){return`${this._begin.source}`}get debugEndRegExp(){return`${this._end.source}`}getEndWithResolvedBackReferences(e,t){return this._end.resolveBackReferences(e,t)}collectPatterns(e,t){t.push(this._begin)}compile(e,t){return this._getCachedCompiledPatterns(e,t).compile(e)}compileAG(e,t,n,r){return this._getCachedCompiledPatterns(e,t).compileAG(e,n,r)}_getCachedCompiledPatterns(e,t){if(!this._cachedCompiledPatterns){this._cachedCompiledPatterns=new ca;for(let t of this.patterns)e.getRule(t).collectPatterns(e,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,t):this._cachedCompiledPatterns.setSource(0,t)),this._cachedCompiledPatterns}},aa=class extends ea{_begin;beginCaptures;whileCaptures;_while;whileHasBackReferences;hasMissingPatterns;patterns;_cachedCompiledPatterns;_cachedCompiledWhilePatterns;constructor(e,t,n,r,i,a,o,s,c){super(e,t,n,r),this._begin=new sa(i,this.id),this.beginCaptures=a,this.whileCaptures=s,this._while=new sa(o,Zi),this.whileHasBackReferences=this._while.hasBackReferences,this.patterns=c.patterns,this.hasMissingPatterns=c.hasMissingPatterns,this._cachedCompiledPatterns=null,this._cachedCompiledWhilePatterns=null}dispose(){this._cachedCompiledPatterns&&=(this._cachedCompiledPatterns.dispose(),null),this._cachedCompiledWhilePatterns&&=(this._cachedCompiledWhilePatterns.dispose(),null)}get debugBeginRegExp(){return`${this._begin.source}`}get debugWhileRegExp(){return`${this._while.source}`}getWhileWithResolvedBackReferences(e,t){return this._while.resolveBackReferences(e,t)}collectPatterns(e,t){t.push(this._begin)}compile(e,t){return this._getCachedCompiledPatterns(e).compile(e)}compileAG(e,t,n,r){return this._getCachedCompiledPatterns(e).compileAG(e,n,r)}_getCachedCompiledPatterns(e){if(!this._cachedCompiledPatterns){this._cachedCompiledPatterns=new ca;for(let t of this.patterns)e.getRule(t).collectPatterns(e,this._cachedCompiledPatterns)}return this._cachedCompiledPatterns}compileWhile(e,t){return this._getCachedCompiledWhilePatterns(e,t).compile(e)}compileWhileAG(e,t,n,r){return this._getCachedCompiledWhilePatterns(e,t).compileAG(e,n,r)}_getCachedCompiledWhilePatterns(e,t){return this._cachedCompiledWhilePatterns||(this._cachedCompiledWhilePatterns=new ca,this._cachedCompiledWhilePatterns.push(this._while.hasBackReferences?this._while.clone():this._while)),this._while.hasBackReferences&&this._cachedCompiledWhilePatterns.setSource(0,t||`￿`),this._cachedCompiledWhilePatterns}},oa=class e{static createCaptureRule(e,t,n,r,i){return e.registerRule(e=>new ta(t,e,n,r,i))}static getCompiledRuleId(t,n,r){return t.id||n.registerRule(i=>{if(t.id=i,t.match)return new na(t.$vscodeTextmateLocation,t.id,t.name,t.match,e._compileCaptures(t.captures,n,r));if(t.begin===void 0){t.repository&&(r=ai({},r,t.repository));let i=t.patterns;return i===void 0&&t.include&&(i=[{include:t.include}]),new ra(t.$vscodeTextmateLocation,t.id,t.name,t.contentName,e._compilePatterns(i,n,r))}return t.while?new aa(t.$vscodeTextmateLocation,t.id,t.name,t.contentName,t.begin,e._compileCaptures(t.beginCaptures||t.captures,n,r),t.while,e._compileCaptures(t.whileCaptures||t.captures,n,r),e._compilePatterns(t.patterns,n,r)):new ia(t.$vscodeTextmateLocation,t.id,t.name,t.contentName,t.begin,e._compileCaptures(t.beginCaptures||t.captures,n,r),t.end,e._compileCaptures(t.endCaptures||t.captures,n,r),t.applyEndPatternLast,e._compilePatterns(t.patterns,n,r))}),t.id}static _compileCaptures(t,n,r){let i=[];if(t){let a=0;for(let e in t){if(e===`$vscodeTextmateLocation`)continue;let t=parseInt(e,10);t>a&&(a=t)}for(let e=0;e<=a;e++)i[e]=null;for(let a in t){if(a===`$vscodeTextmateLocation`)continue;let o=parseInt(a,10),s=0;t[a].patterns&&(s=e.getCompiledRuleId(t[a],n,r)),i[o]=e.createCaptureRule(n,t[a].$vscodeTextmateLocation,t[a].name,t[a].contentName,s)}}return i}static _compilePatterns(t,n,r){let i=[];if(t)for(let a=0,o=t.length;a<o;a++){let o=t[a],s=-1;if(o.include){let t=qi(o.include);switch(t.kind){case 0:case 1:s=e.getCompiledRuleId(r[o.include],n,r);break;case 2:let i=r[t.ruleName];i&&(s=e.getCompiledRuleId(i,n,r));break;case 3:case 4:let a=t.scopeName,c=t.kind===4?t.ruleName:null,l=n.getExternalGrammar(a,r);if(l){if(c){let t=l.repository[c];t&&(s=e.getCompiledRuleId(t,n,l.repository))}else s=e.getCompiledRuleId(l.repository.$self,n,l.repository)}}}else s=e.getCompiledRuleId(o,n,r);if(s!==-1){let e=n.getRule(s),t=!1;if((e instanceof ra||e instanceof ia||e instanceof aa)&&e.hasMissingPatterns&&e.patterns.length===0&&(t=!0),t)continue;i.push(s)}}return{patterns:i,hasMissingPatterns:(t?t.length:0)!==i.length}}},sa=class e{source;ruleId;hasAnchor;hasBackReferences;_anchorCache;constructor(e,t){if(e&&typeof e==`string`){let t=e.length,n=0,r=[],i=!1;for(let a=0;a<t;a++)if(e.charAt(a)===`\\`&&a+1<t){let t=e.charAt(a+1);t===`z`?(r.push(e.substring(n,a)),r.push(`$(?!\\n)(?<!\\n)`),n=a+2):(t===`A`||t===`G`)&&(i=!0),a++}this.hasAnchor=i,n===0?this.source=e:(r.push(e.substring(n,t)),this.source=r.join(``))}else this.hasAnchor=!1,this.source=e;this._anchorCache=this.hasAnchor?this._buildAnchorCache():null,this.ruleId=t,this.hasBackReferences=typeof this.source==`string`&&Ji.test(this.source)}clone(){return new e(this.source,this.ruleId)}setSource(e){this.source!==e&&(this.source=e,this.hasAnchor&&(this._anchorCache=this._buildAnchorCache()))}resolveBackReferences(e,t){if(typeof this.source!=`string`)throw Error(`This method should only be called if the source is a string`);let n=t.map(t=>e.substring(t.start,t.end));return Yi.lastIndex=0,this.source.replace(Yi,(e,t)=>fi(n[parseInt(t,10)]||``))}_buildAnchorCache(){if(typeof this.source!=`string`)throw Error(`This method should only be called if the source is a string`);let e=[],t=[],n=[],r=[],i,a,o,s;for(i=0,a=this.source.length;i<a;i++)o=this.source.charAt(i),e[i]=o,t[i]=o,n[i]=o,r[i]=o,o===`\\`&&i+1<a&&(s=this.source.charAt(i+1),s===`A`?(e[i+1]=`￿`,t[i+1]=`￿`,n[i+1]=`A`,r[i+1]=`A`):s===`G`?(e[i+1]=`￿`,t[i+1]=`G`,n[i+1]=`￿`,r[i+1]=`G`):(e[i+1]=s,t[i+1]=s,n[i+1]=s,r[i+1]=s),i++);return{A0_G0:e.join(``),A0_G1:t.join(``),A1_G0:n.join(``),A1_G1:r.join(``)}}resolveAnchors(e,t){return!this.hasAnchor||!this._anchorCache||typeof this.source!=`string`?this.source:e?t?this._anchorCache.A1_G1:this._anchorCache.A1_G0:t?this._anchorCache.A0_G1:this._anchorCache.A0_G0}},ca=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(),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(e){this._items.push(e),this._hasAnchors=this._hasAnchors||e.hasAnchor}unshift(e){this._items.unshift(e),this._hasAnchors=this._hasAnchors||e.hasAnchor}length(){return this._items.length}setSource(e,t){this._items[e].source!==t&&(this._disposeCaches(),this._items[e].setSource(t))}compile(e){if(!this._cached){let t=this._items.map(e=>e.source);this._cached=new la(e,t,this._items.map(e=>e.ruleId))}return this._cached}compileAG(e,t,n){return this._hasAnchors?t?n?(this._anchorCache.A1_G1||(this._anchorCache.A1_G1=this._resolveAnchors(e,t,n)),this._anchorCache.A1_G1):(this._anchorCache.A1_G0||(this._anchorCache.A1_G0=this._resolveAnchors(e,t,n)),this._anchorCache.A1_G0):n?(this._anchorCache.A0_G1||(this._anchorCache.A0_G1=this._resolveAnchors(e,t,n)),this._anchorCache.A0_G1):(this._anchorCache.A0_G0||(this._anchorCache.A0_G0=this._resolveAnchors(e,t,n)),this._anchorCache.A0_G0):this.compile(e)}_resolveAnchors(e,t,n){return new la(e,this._items.map(e=>e.resolveAnchors(t,n)),this._items.map(e=>e.ruleId))}},la=class{constructor(e,t,n){this.regExps=t,this.rules=n,this.scanner=e.createOnigScanner(t)}scanner;dispose(){typeof this.scanner.dispose==`function`&&this.scanner.dispose()}toString(){let e=[];for(let t=0,n=this.rules.length;t<n;t++)e.push(` - `+this.rules[t]+`: `+this.regExps[t]);return e.join(`
3
3
  `)}findNextMatchSync(e,t,n){let r=this.scanner.findNextMatchSync(e,t,n);return r?{ruleId:this.rules[r.index],captureIndices:r.captureIndices}:null}},ua=class{constructor(e,t){this.languageId=e,this.tokenType=t}},da=class e{_defaultAttributes;_embeddedLanguagesMatcher;constructor(e,t){this._defaultAttributes=new ua(e,8),this._embeddedLanguagesMatcher=new fa(Object.entries(t||{}))}getDefaultAttributes(){return this._defaultAttributes}getBasicScopeAttributes(t){return t===null?e._NULL_SCOPE_METADATA:this._getBasicScopeAttributes.get(t)}static _NULL_SCOPE_METADATA=new ua(0,0);_getBasicScopeAttributes=new pi(e=>new ua(this._scopeToLanguage(e),this._toStandardTokenType(e)));_scopeToLanguage(e){return this._embeddedLanguagesMatcher.match(e)||0}_toStandardTokenType(t){let n=t.match(e.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 Error(`Unexpected match for standard token type!`)}static STANDARD_TOKEN_TYPE_REGEXP=/\b(comment|string|regex|meta\.embedded)\b/},fa=class{values;scopesRegExp;constructor(e){if(e.length===0)this.values=null,this.scopesRegExp=null;else{this.values=new Map(e);let t=e.map(([e,t])=>fi(e));t.sort(),t.reverse(),this.scopesRegExp=RegExp(`^((${t.join(`)|(`)}))($|\\.)`,``)}}match(e){if(!this.scopesRegExp)return;let t=e.match(this.scopesRegExp);if(t)return this.values.get(t[1])}};typeof process<`u`&&{}.VSCODE_TEXTMATE_DEBUG;var pa=class{constructor(e,t){this.stack=e,this.stoppedEarly=t}};function ma(e,t,n,r,i,a,o,s){let c=t.content.length,l=!1,u=-1;if(o){let o=ha(e,t,n,r,i,a);i=o.stack,r=o.linePos,n=o.isFirstLine,u=o.anchorPosition}let d=Date.now();for(;!l;){if(s!==0&&Date.now()-d>s)return new pa(i,!0);f()}return new pa(i,!1);function f(){let o=ga(e,t,n,r,i,u);if(!o){a.produce(i,c),l=!0;return}let s=o.captureIndices,d=o.matchedRuleId,f=s&&s.length>0?s[0].end>r:!1;if(d===Xi){let o=i.getRule(e);a.produce(i,s[0].start),i=i.withContentNameScopesList(i.nameScopesList),xa(e,t,n,i,a,o.endCaptures,s),a.produce(i,s[0].end);let d=i;if(i=i.parent,u=d.getAnchorPos(),!f&&d.getEnterPos()===r){i=d,a.produce(i,c),l=!0;return}}else{let o=e.getRule(d);a.produce(i,s[0].start);let p=i,m=o.getName(t.content,s),h=i.contentNameScopesList.pushAttributed(m,e);if(i=i.push(d,r,u,s[0].end===c,null,h,h),o instanceof ia){let r=o;xa(e,t,n,i,a,r.beginCaptures,s),a.produce(i,s[0].end),u=s[0].end;let d=r.getContentName(t.content,s),m=h.pushAttributed(d,e);if(i=i.withContentNameScopesList(m),r.endHasBackReferences&&(i=i.withEndRule(r.getEndWithResolvedBackReferences(t.content,s))),!f&&p.hasSameRuleAs(i)){i=i.pop(),a.produce(i,c),l=!0;return}}else if(o instanceof aa){let r=o;xa(e,t,n,i,a,r.beginCaptures,s),a.produce(i,s[0].end),u=s[0].end;let d=r.getContentName(t.content,s),m=h.pushAttributed(d,e);if(i=i.withContentNameScopesList(m),r.whileHasBackReferences&&(i=i.withEndRule(r.getWhileWithResolvedBackReferences(t.content,s))),!f&&p.hasSameRuleAs(i)){i=i.pop(),a.produce(i,c),l=!0;return}}else if(xa(e,t,n,i,a,o.captures,s),a.produce(i,s[0].end),i=i.pop(),!f){i=i.safePop(),a.produce(i,c),l=!0;return}}s[0].end>r&&(r=s[0].end,n=!1)}}function ha(e,t,n,r,i,a){let o=i.beginRuleCapturedEOL?0:-1,s=[];for(let t=i;t;t=t.pop()){let n=t.getRule(e);n instanceof aa&&s.push({rule:n,stack:t})}for(let c=s.pop();c;c=s.pop()){let{ruleScanner:s,findOptions:l}=ba(c.rule,e,c.stack.endRule,n,r===o),u=s.findNextMatchSync(t,r,l);if(u){if(u.ruleId!==Zi){i=c.stack.pop();break}u.captureIndices&&u.captureIndices.length&&(a.produce(c.stack,u.captureIndices[0].start),xa(e,t,n,c.stack,a,c.rule.whileCaptures,u.captureIndices),a.produce(c.stack,u.captureIndices[0].end),o=u.captureIndices[0].end,u.captureIndices[0].end>r&&(r=u.captureIndices[0].end,n=!1))}else{i=c.stack.pop();break}}return{stack:i,linePos:r,anchorPosition:o,isFirstLine:n}}function ga(e,t,n,r,i,a){let o=_a(e,t,n,r,i,a),s=e.getInjections();if(s.length===0)return o;let c=va(s,e,t,n,r,i,a);if(!c)return o;if(!o)return c;let l=o.captureIndices[0].start,u=c.captureIndices[0].start;return u<l||c.priorityMatch&&u===l?c:o}function _a(e,t,n,r,i,a){let{ruleScanner:o,findOptions:s}=ya(i.getRule(e),e,i.endRule,n,r===a),c=o.findNextMatchSync(t,r,s);return c?{captureIndices:c.captureIndices,matchedRuleId:c.ruleId}:null}function va(e,t,n,r,i,a,o){let s=Number.MAX_VALUE,c=null,l,u=0,d=a.contentNameScopesList.getScopeNames();for(let a=0,f=e.length;a<f;a++){let f=e[a];if(!f.matcher(d))continue;let{ruleScanner:p,findOptions:m}=ya(t.getRule(f.ruleId),t,null,r,i===o),h=p.findNextMatchSync(n,i,m);if(!h)continue;let g=h.captureIndices[0].start;if(!(g>=s)&&(s=g,c=h.captureIndices,l=h.ruleId,u=f.priority,s===i))break}return c?{priorityMatch:u===-1,captureIndices:c,matchedRuleId:l}:null}function ya(e,t,n,r,i){return{ruleScanner:e.compileAG(t,n,r,i),findOptions:0}}function ba(e,t,n,r,i){return{ruleScanner:e.compileWhileAG(t,n,r,i),findOptions:0}}function xa(e,t,n,r,i,a,o){if(a.length===0)return;let s=t.content,c=Math.min(a.length,o.length),l=[],u=o[0].end;for(let t=0;t<c;t++){let c=a[t];if(c===null)continue;let d=o[t];if(d.length===0)continue;if(d.start>u)break;for(;l.length>0&&l[l.length-1].endPos<=d.start;)i.produceFromScopes(l[l.length-1].scopes,l[l.length-1].endPos),l.pop();if(l.length>0?i.produceFromScopes(l[l.length-1].scopes,d.start):i.produce(r,d.start),c.retokenizeCapturedWithRuleId){let t=c.getName(s,o),a=r.contentNameScopesList.pushAttributed(t,e),l=c.getContentName(s,o),u=a.pushAttributed(l,e),f=r.push(c.retokenizeCapturedWithRuleId,d.start,-1,!1,null,a,u),p=e.createOnigString(s.substring(0,d.end));ma(e,p,n&&d.start===0,d.start,f,i,!1,0),Ni(p);continue}let f=c.getName(s,o);if(f!==null){let t=(l.length>0?l[l.length-1].scopes:r.contentNameScopesList).pushAttributed(f,e);l.push(new Sa(t,d.end))}}for(;l.length>0;)i.produceFromScopes(l[l.length-1].scopes,l[l.length-1].endPos),l.pop()}var Sa=class{scopes;endPos;constructor(e,t){this.scopes=e,this.endPos=t}};function Ca(e,t,n,r,i,a,o,s){return new Da(e,t,n,r,i,a,o,s)}function wa(e,t,n,r,i){let a=Ai(t,Ta),o=oa.getCompiledRuleId(n,r,i.repository);for(let n of a)e.push({debugSelector:t,matcher:n.matcher,ruleId:o,grammar:i,priority:n.priority})}function Ta(e,t){if(t.length<e.length)return!1;let n=0;return e.every(e=>{for(let r=n;r<t.length;r++)if(Ea(t[r],e))return n=r+1,!0;return!1})}function Ea(e,t){if(!e)return!1;if(e===t)return!0;let n=t.length;return e.length>n&&e.substr(0,n)===t&&e[n]===`.`}var Da=class{constructor(e,t,n,r,i,a,o,s){if(this._rootScopeName=e,this.balancedBracketSelectors=a,this._onigLib=s,this._basicScopeAttributesProvider=new da(n,r),this._rootId=-1,this._lastRuleId=0,this._ruleId2desc=[null],this._includedGrammars={},this._grammarRepository=o,this._grammar=Oa(t,null),this._injections=null,this._tokenTypeMatchers=[],i)for(let e of Object.keys(i)){let t=Ai(e,Ta);for(let n of t)this._tokenTypeMatchers.push({matcher:n.matcher,type:i[e]})}}_rootId;_lastRuleId;_ruleId2desc;_includedGrammars;_grammarRepository;_grammar;_injections;_basicScopeAttributesProvider;_tokenTypeMatchers;get themeProvider(){return this._grammarRepository}dispose(){for(let e of this._ruleId2desc)e&&e.dispose()}createOnigScanner(e){return this._onigLib.createOnigScanner(e)}createOnigString(e){return this._onigLib.createOnigString(e)}getMetadataForScope(e){return this._basicScopeAttributesProvider.getBasicScopeAttributes(e)}_collectInjections(){let e={lookup:e=>e===this._rootScopeName?this._grammar:this.getExternalGrammar(e),injections:e=>this._grammarRepository.injections(e)},t=[],n=this._rootScopeName,r=e.lookup(n);if(r){let e=r.injections;if(e)for(let n in e)wa(t,n,e[n],this,r);let i=this._grammarRepository.injections(n);i&&i.forEach(e=>{let n=this.getExternalGrammar(e);if(n){let e=n.injectionSelector;e&&wa(t,e,n,this,n)}})}return t.sort((e,t)=>e.priority-t.priority),t}getInjections(){return this._injections===null&&(this._injections=this._collectInjections()),this._injections}registerRule(e){let t=++this._lastRuleId,n=e(Qi(t));return this._ruleId2desc[t]=n,n}getRule(e){return this._ruleId2desc[$i(e)]}getExternalGrammar(e,t){if(this._includedGrammars[e])return this._includedGrammars[e];if(this._grammarRepository){let n=this._grammarRepository.lookup(e);if(n)return this._includedGrammars[e]=Oa(n,t&&t.$base),this._includedGrammars[e]}}tokenizeLine(e,t,n=0){let r=this._tokenize(e,t,!1,n);return{tokens:r.lineTokens.getResult(r.ruleStack,r.lineLength),ruleStack:r.ruleStack,stoppedEarly:r.stoppedEarly}}tokenizeLine2(e,t,n=0){let r=this._tokenize(e,t,!0,n);return{tokens:r.lineTokens.getBinaryResult(r.ruleStack,r.lineLength),ruleStack:r.ruleStack,stoppedEarly:r.stoppedEarly}}_tokenize(e,t,n,r){this._rootId===-1&&(this._rootId=oa.getCompiledRuleId(this._grammar.repository.$self,this,this._grammar.repository),this.getInjections());let i;if(!t||t===Aa.NULL){i=!0;let e=this._basicScopeAttributesProvider.getDefaultAttributes(),n=this.themeProvider.getDefaults(),r=Di.set(0,e.languageId,e.tokenType,null,n.fontStyle,n.foregroundId,n.backgroundId),a=this.getRule(this._rootId).getName(null,null),o;o=a?ka.createRootAndLookUpScopeName(a,r,this):ka.createRoot(`unknown`,r),t=new Aa(null,this._rootId,-1,-1,!1,null,o,o)}else i=!1,t.reset();e+=`
4
4
  `;let a=this.createOnigString(e),o=a.content.length,s=new Ma(n,e,this._tokenTypeMatchers,this.balancedBracketSelectors),c=ma(this,a,i,0,t,s,!0,r);return Ni(a),{lineLength:o,lineTokens:s,ruleStack:c.stack,stoppedEarly:c.stoppedEarly}}};function Oa(e,t){return e=ti(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 ka=class e{constructor(e,t,n){this.parent=e,this.scopePath=t,this.tokenAttributes=n}static fromExtension(t,n){let r=t,i=t?.scopePath??null;for(let t of n)i=hi.push(i,t.scopeNames),r=new e(r,i,t.encodedTokenAttributes);return r}static createRoot(t,n){return new e(null,new hi(null,t),n)}static createRootAndLookUpScopeName(t,n,r){let i=r.getMetadataForScope(t),a=new hi(null,t),o=r.themeProvider.themeMatch(a),s=e.mergeAttributes(n,i,o);return new e(null,a,s)}get scopeName(){return this.scopePath.scopeName}toString(){return this.getScopeNames().join(` `)}equals(t){return e.equals(this,t)}static equals(e,t){do{if(e===t||!e&&!t)return!0;if(!e||!t||e.scopeName!==t.scopeName||e.tokenAttributes!==t.tokenAttributes)return!1;e=e.parent,t=t.parent}while(1)}static mergeAttributes(e,t,n){let r=-1,i=0,a=0;return n!==null&&(r=n.fontStyle,i=n.foregroundId,a=n.backgroundId),Di.set(e,t.languageId,t.tokenType,null,r,i,a)}pushAttributed(t,n){if(t===null)return this;if(t.indexOf(` `)===-1)return e._pushAttributed(this,t,n);let r=t.split(/ /g),i=this;for(let t of r)i=e._pushAttributed(i,t,n);return i}static _pushAttributed(t,n,r){let i=r.getMetadataForScope(n),a=t.scopePath.push(n),o=r.themeProvider.themeMatch(a),s=e.mergeAttributes(t.tokenAttributes,i,o);return new e(t,a,s)}getScopeNames(){return this.scopePath.getSegments()}getExtensionIfDefined(e){let t=[],n=this;for(;n&&n!==e;)t.push({encodedTokenAttributes:n.tokenAttributes,scopeNames:n.scopePath.getExtensionIfDefined(n.parent?.scopePath??null)}),n=n.parent;return n===e?t.reverse():void 0}},Aa=class e{constructor(e,t,n,r,i,a,o,s){this.parent=e,this.ruleId=t,this.beginRuleCapturedEOL=i,this.endRule=a,this.nameScopesList=o,this.contentNameScopesList=s,this.depth=this.parent?this.parent.depth+1:1,this._enterPos=n,this._anchorPos=r}_stackElementBrand=void 0;static NULL=new e(null,0,0,0,!1,null,null,null);_enterPos;_anchorPos;depth;equals(t){return t!==null&&e._equals(this,t)}static _equals(e,t){return e===t?!0:this._structuralEquals(e,t)?ka.equals(e.contentNameScopesList,t.contentNameScopesList):!1}static _structuralEquals(e,t){do{if(e===t||!e&&!t)return!0;if(!e||!t||e.depth!==t.depth||e.ruleId!==t.ruleId||e.endRule!==t.endRule)return!1;e=e.parent,t=t.parent}while(1)}clone(){return this}static _reset(e){for(;e;)e._enterPos=-1,e._anchorPos=-1,e=e.parent}reset(){e._reset(this)}pop(){return this.parent}safePop(){return this.parent?this.parent:this}push(t,n,r,i,a,o,s){return new e(this,t,n,r,i,a,o,s)}getEnterPos(){return this._enterPos}getAnchorPos(){return this._anchorPos}getRule(e){return e.getRule(this.ruleId)}toString(){let e=[];return this._writeString(e,0),`[`+e.join(`,`)+`]`}_writeString(e,t){return this.parent&&(t=this.parent._writeString(e,t)),e[t++]=`(${this.ruleId}, ${this.nameScopesList?.toString()}, ${this.contentNameScopesList?.toString()})`,t}withContentNameScopesList(e){return this.contentNameScopesList===e?this:this.parent.push(this.ruleId,this._enterPos,this._anchorPos,this.beginRuleCapturedEOL,this.endRule,this.nameScopesList,e)}withEndRule(t){return this.endRule===t?this:new e(this.parent,this.ruleId,this._enterPos,this._anchorPos,this.beginRuleCapturedEOL,t,this.nameScopesList,this.contentNameScopesList)}hasSameRuleAs(e){let t=this;for(;t&&t._enterPos===e._enterPos;){if(t.ruleId===e.ruleId)return!0;t=t.parent}return!1}toStateStackFrame(){return{ruleId:$i(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){let r=ka.fromExtension(t?.nameScopesList??null,n.nameScopesList);return new e(t,Qi(n.ruleId),n.enterPos??-1,n.anchorPos??-1,n.beginRuleCapturedEOL,n.endRule,r,ka.fromExtension(r,n.contentNameScopesList))}},ja=class{balancedBracketScopes;unbalancedBracketScopes;allowAny=!1;constructor(e,t){this.balancedBracketScopes=e.flatMap(e=>e===`*`?(this.allowAny=!0,[]):Ai(e,Ta).map(e=>e.matcher)),this.unbalancedBracketScopes=t.flatMap(e=>Ai(e,Ta).map(e=>e.matcher))}get matchesAlways(){return this.allowAny&&this.unbalancedBracketScopes.length===0}get matchesNever(){return this.balancedBracketScopes.length===0&&!this.allowAny}match(e){for(let t of this.unbalancedBracketScopes)if(t(e))return!1;for(let t of this.balancedBracketScopes)if(t(e))return!0;return this.allowAny}},Ma=class{constructor(e,t,n,r){this.balancedBracketSelectors=r,this._emitBinaryTokens=e,this._tokenTypeOverrides=n,this._lineText=null,this._tokens=[],this._binaryTokens=[],this._lastTokenEndIndex=0}_emitBinaryTokens;_lineText;_tokens;_binaryTokens;_lastTokenEndIndex;_tokenTypeOverrides;produce(e,t){this.produceFromScopes(e.contentNameScopesList,t)}produceFromScopes(e,t){if(this._lastTokenEndIndex>=t)return;if(this._emitBinaryTokens){let n=e?.tokenAttributes??0,r=!1;if(this.balancedBracketSelectors?.matchesAlways&&(r=!0),this._tokenTypeOverrides.length>0||this.balancedBracketSelectors&&!this.balancedBracketSelectors.matchesAlways&&!this.balancedBracketSelectors.matchesNever){let t=e?.getScopeNames()??[];for(let e of this._tokenTypeOverrides)e.matcher(t)&&(n=Di.set(n,0,Oi(e.type),null,-1,0,0));this.balancedBracketSelectors&&(r=this.balancedBracketSelectors.match(t))}if(r&&(n=Di.set(n,0,8,r,-1,0,0)),this._binaryTokens.length>0&&this._binaryTokens[this._binaryTokens.length-1]===n){this._lastTokenEndIndex=t;return}this._binaryTokens.push(this._lastTokenEndIndex),this._binaryTokens.push(n),this._lastTokenEndIndex=t;return}let n=e?.getScopeNames()??[];this._tokens.push({startIndex:this._lastTokenEndIndex,endIndex:t,scopes:n}),this._lastTokenEndIndex=t}getResult(e,t){return this._tokens.length>0&&this._tokens[this._tokens.length-1].startIndex===t-1&&this._tokens.pop(),this._tokens.length===0&&(this._lastTokenEndIndex=-1,this.produce(e,t),this._tokens[this._tokens.length-1].startIndex=0),this._tokens}getBinaryResult(e,t){this._binaryTokens.length>0&&this._binaryTokens[this._binaryTokens.length-2]===t-1&&(this._binaryTokens.pop(),this._binaryTokens.pop()),this._binaryTokens.length===0&&(this._lastTokenEndIndex=-1,this.produce(e,t),this._binaryTokens[this._binaryTokens.length-2]=0);let n=new Uint32Array(this._binaryTokens.length);for(let e=0,t=this._binaryTokens.length;e<t;e++)n[e]=this._binaryTokens[e];return n}},Na=class{constructor(e,t){this._onigLib=t,this._theme=e}_grammars=new Map;_rawGrammars=new Map;_injectionGrammars=new Map;_theme;dispose(){for(let e of this._grammars.values())e.dispose()}setTheme(e){this._theme=e}getColorMap(){return this._theme.getColorMap()}addGrammar(e,t){this._rawGrammars.set(e.scopeName,e),t&&this._injectionGrammars.set(e.scopeName,t)}lookup(e){return this._rawGrammars.get(e)}injections(e){return this._injectionGrammars.get(e)}getDefaults(){return this._theme.getDefaults()}themeMatch(e){return this._theme.match(e)}grammarForScopeName(e,t,n,r,i){if(!this._grammars.has(e)){let a=this._rawGrammars.get(e);if(!a)return null;this._grammars.set(e,Ca(e,a,t,n,r,i,this,this._onigLib))}return this._grammars.get(e)}},Pa=class{_options;_syncRegistry;_ensureGrammarCache;constructor(e){this._options=e,this._syncRegistry=new Na(mi.createFromRawTheme(e.theme,e.colorMap),e.onigLib),this._ensureGrammarCache=new Map}dispose(){this._syncRegistry.dispose()}setTheme(e,t){this._syncRegistry.setTheme(mi.createFromRawTheme(e,t))}getColorMap(){return this._syncRegistry.getColorMap()}loadGrammarWithEmbeddedLanguages(e,t,n){return this.loadGrammarWithConfiguration(e,t,{embeddedLanguages:n})}loadGrammarWithConfiguration(e,t,n){return this._loadGrammar(e,t,n.embeddedLanguages,n.tokenTypes,new ja(n.balancedBracketSelectors||[],n.unbalancedBracketSelectors||[]))}loadGrammar(e){return this._loadGrammar(e,0,null,null,null)}_loadGrammar(e,t,n,r,i){let a=new Li(this._syncRegistry,e);for(;a.Q.length>0;)a.Q.map(e=>this._loadSingleGrammar(e.scopeName)),a.processQueue();return this._grammarForScopeName(e,t,n,r,i)}_loadSingleGrammar(e){this._ensureGrammarCache.has(e)||(this._doLoadSingleGrammar(e),this._ensureGrammarCache.set(e,!0))}_doLoadSingleGrammar(e){let t=this._options.loadGrammar(e);if(t){let n=typeof this._options.getInjections==`function`?this._options.getInjections(e):void 0;this._syncRegistry.addGrammar(t,n)}}addGrammar(e,t=[],n=0,r=null){return this._syncRegistry.addGrammar(e,t),this._grammarForScopeName(e.scopeName,n,r)}_grammarForScopeName(e,t=0,n=null,r=null,i=null){return this._syncRegistry.grammarForScopeName(e,t,n,r,i)}},Fa=Aa.NULL;function Ia(e,t){let n=typeof e==`string`?{}:{...e.colorReplacements},r=typeof e==`string`?e:e.name;for(let[e,i]of Object.entries(t?.colorReplacements||{}))typeof i==`string`?n[e]=i:e===r&&Object.assign(n,i);return n}function La(e,t){return e&&(t?.[e?.toLowerCase()]||e)}function Ra(e){return Array.isArray(e)?e:[e]}async function za(e){return Promise.resolve(typeof e==`function`?e():e).then(e=>e.default||e)}function Ba(e){return!e||[`plaintext`,`txt`,`text`,`plain`].includes(e)}function Va(e){return e===`ansi`||Ba(e)}function Ha(e){return e===`none`}function Ua(e){return Ha(e)}var Wa=/(\r?\n)/g;function Ga(e,t=!1){if(e.length===0)return[[``,0]];let n=e.split(Wa),r=0,i=[];for(let e=0;e<n.length;e+=2){let a=t?n[e]+(n[e+1]||``):n[e];i.push([a,r]),r+=n[e].length,r+=n[e+1]?.length||0}return i}var Ka={light:`#333333`,dark:`#bbbbbb`},qa={light:`#fffffe`,dark:`#1e1e1e`},Ja=`__shiki_resolved`;function Ya(e){if(e?.[Ja])return e;let 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){let e=t.settings?t.settings.find(e=>!e.name&&!e.scope):void 0;e?.settings?.foreground&&(r=e.settings.foreground),e?.settings?.background&&(n=e.settings.background),!r&&t?.colors?.[`editor.foreground`]&&(r=t.colors[`editor.foreground`]),!n&&t?.colors?.[`editor.background`]&&(n=t.colors[`editor.background`]),r||=t.type===`light`?Ka.light:Ka.dark,n||=t.type===`light`?qa.light:qa.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 i=0,a=new Map;function o(e){if(a.has(e))return a.get(e);i+=1;let n=`#${i.toString(16).padStart(8,`0`).toLowerCase()}`;return t.colorReplacements?.[`#${n}`]?o(e):(a.set(e,n),n)}t.settings=t.settings.map(e=>{let n=e.settings?.foreground&&!e.settings.foreground.startsWith(`#`),r=e.settings?.background&&!e.settings.background.startsWith(`#`);if(!n&&!r)return e;let i={...e,settings:{...e.settings}};if(n){let n=o(e.settings.foreground);t.colorReplacements[n]=e.settings.foreground,i.settings.foreground=n}if(r){let n=o(e.settings.background);t.colorReplacements[n]=e.settings.background,i.settings.background=n}return i});for(let e of Object.keys(t.colors||{}))if((e===`editor.foreground`||e===`editor.background`||e.startsWith(`terminal.ansi`))&&!t.colors[e]?.startsWith(`#`)){let n=o(t.colors[e]);t.colorReplacements[n]=t.colors[e],t.colors[e]=n}return Object.defineProperty(t,Ja,{enumerable:!1,writable:!1,value:!0}),t}async function Xa(e){return[...new Set((await Promise.all(e.filter(e=>!Va(e)).map(async e=>await za(e).then(e=>Array.isArray(e)?e:[e])))).flat())]}async function Za(e){return(await Promise.all(e.map(async e=>Ua(e)?null:Ya(await za(e))))).filter(e=>!!e)}function Qa(e,t){if(!t)return e;if(t[e]){let n=new Set([e]);for(;t[e];){if(e=t[e],n.has(e))throw new ei(`Circular alias \`${[...n].join(` -> `)} -> ${e}\``);n.add(e)}}return e}var $a=class extends Pa{_resolver;_themes;_langs;_alias;_resolvedThemes=new Map;_resolvedGrammars=new Map;_langMap=new Map;_langGraph=new Map;_textmateThemeCache=new WeakMap;_loadedThemesCache=null;_loadedLanguagesCache=null;constructor(e,t,n,r={}){super(e),this._resolver=e,this._themes=t,this._langs=n,this._alias=r,this._themes.map(e=>this.loadTheme(e)),this.loadLanguages(this._langs)}getTheme(e){return typeof e==`string`?this._resolvedThemes.get(e):this.loadTheme(e)}loadTheme(e){let t=Ya(e);return t.name&&(this._resolvedThemes.set(t.name,t),this._loadedThemesCache=null),t}getLoadedThemes(){return this._loadedThemesCache||=[...this._resolvedThemes.keys()],this._loadedThemesCache}setTheme(e){let t=this._textmateThemeCache.get(e);t||(t=mi.createFromRawTheme(e),this._textmateThemeCache.set(e,t)),this._syncRegistry.setTheme(t)}getGrammar(e){return e=Qa(e,this._alias),this._resolvedGrammars.get(e)}loadLanguage(e){if(this.getGrammar(e.name))return;let t=new Set([...this._langMap.values()].filter(t=>t.embeddedLangsLazy?.includes(e.name)));this._resolver.addLanguage(e);let n={balancedBracketSelectors:e.balancedBracketSelectors||[`*`],unbalancedBracketSelectors:e.unbalancedBracketSelectors||[]};this._syncRegistry._rawGrammars.set(e.scopeName,e);let r=this.loadGrammarWithConfiguration(e.scopeName,1,n);if(r.name=e.name,this._resolvedGrammars.set(e.name,r),e.aliases&&e.aliases.forEach(t=>{this._alias[t]=e.name}),this._loadedLanguagesCache=null,t.size)for(let e of t)this._resolvedGrammars.delete(e.name),this._loadedLanguagesCache=null,this._syncRegistry?._injectionGrammars?.delete(e.scopeName),this._syncRegistry?._grammars?.delete(e.scopeName),this.loadLanguage(this._langMap.get(e.name))}dispose(){super.dispose(),this._resolvedThemes.clear(),this._resolvedGrammars.clear(),this._langMap.clear(),this._langGraph.clear(),this._loadedThemesCache=null}loadLanguages(e){for(let t of e)this.resolveEmbeddedLanguages(t);let t=[...this._langGraph.entries()],n=t.filter(([e,t])=>!t);if(n.length){let e=t.filter(([e,t])=>t?(t.embeddedLanguages||t.embeddedLangs)?.some(e=>n.map(([e])=>e).includes(e)):!1).filter(e=>!n.includes(e));throw new ei(`Missing languages ${n.map(([e])=>`\`${e}\``).join(`, `)}, required by ${e.map(([e])=>`\`${e}\``).join(`, `)}`)}for(let[e,n]of t)this._resolver.addLanguage(n);for(let[e,n]of t)this.loadLanguage(n)}getLoadedLanguages(){return this._loadedLanguagesCache||=[...new Set([...this._resolvedGrammars.keys(),...Object.keys(this._alias)])],this._loadedLanguagesCache}resolveEmbeddedLanguages(e){this._langMap.set(e.name,e),this._langGraph.set(e.name,e);let t=e.embeddedLanguages??e.embeddedLangs;if(t)for(let e of t)this._langGraph.set(e,this._langMap.get(e))}},eo=class{_langs=new Map;_scopeToLang=new Map;_injections=new Map;_onigLib;constructor(e,t){this._onigLib={createOnigScanner:t=>e.createScanner(t),createOnigString:t=>e.createString(t)},t.forEach(e=>this.addLanguage(e))}get onigLib(){return this._onigLib}getLangRegistration(e){return this._langs.get(e)}loadGrammar(e){return this._scopeToLang.get(e)}addLanguage(e){this._langs.set(e.name,e),e.aliases&&e.aliases.forEach(t=>{this._langs.set(t,e)}),this._scopeToLang.set(e.scopeName,e),e.injectTo&&e.injectTo.forEach(t=>{this._injections.get(t)||this._injections.set(t,[]),this._injections.get(t).push(e.scopeName)})}getInjections(e){let t=e.split(`.`),n=[];for(let e=1;e<=t.length;e++){let r=t.slice(0,e).join(`.`);n=[...n,...this._injections.get(r)||[]]}return n}},to=0;function no(e){to+=1,e.warnings!==!1&&to>=10&&to%10==0&&console.warn(`[Shiki] ${to} 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 ei("`engine` option is required for synchronous mode");let n=(e.langs||[]).flat(1),r=(e.themes||[]).flat(1).map(Ya),i=new $a(new eo(e.engine,n),r,n,e.langAlias),a;function o(t){return Qa(t,e.langAlias)}function s(e){g();let t=i.getGrammar(typeof e==`string`?e:e.name);if(!t)throw new ei(`Language \`${e}\` not found, you may need to load it first`);return t}function c(e){if(e===`none`)return{bg:``,fg:``,name:`none`,settings:[],type:`dark`};g();let t=i.getTheme(e);if(!t)throw new ei(`Theme \`${e}\` not found, you may need to load it first`);return t}function l(e){g();let t=c(e);return a!==e&&(i.setTheme(t),a=e),{theme:t,colorMap:i.getColorMap()}}function u(){return g(),i.getLoadedThemes()}function d(){return g(),i.getLoadedLanguages()}function f(...e){g(),i.loadLanguages(e.flat(1))}async function p(...e){return f(await Xa(e))}function m(...e){g();for(let t of e.flat(1))i.loadTheme(t)}async function h(...e){return g(),m(await Za(e))}function g(){if(t)throw new ei(`Shiki instance has been disposed`)}function _(){t||(t=!0,i.dispose(),--to)}return{setTheme:l,getTheme:c,getLanguage:s,getLoadedThemes:u,getLoadedLanguages:d,resolveLangAlias:o,loadLanguage:p,loadLanguageSync:f,loadTheme:h,loadThemeSync:m,dispose:_,[Symbol.dispose]:_}}async function ro(e){e.engine||console.warn("`engine` option is required. Use `createOnigurumaEngine` or `createJavaScriptRegexEngine` to create an engine.");let[t,n,r]=await Promise.all([Za(e.themes||[]),Xa(e.langs||[]),e.engine]);return no({...e,themes:t,langs:n,engine:r})}var io=new WeakMap;function ao(e,t){io.set(e,t)}function oo(e){return io.get(e)}var so=class e{_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 e(Object.fromEntries(Ra(n).map(e=>[e,Fa])),t)}constructor(...e){if(e.length===2){let[t,n]=e;this.lang=n,this._stacks=t}else{let[t,n,r]=e;this.lang=n,this._stacks={[r]:t}}}getInternalStack(e=this.theme){return this._stacks[e]}getScopes(e=this.theme){return co(this._stacks[e])}toJSON(){return{lang:this.lang,theme:this.theme,themes:this.themes,scopes:this.getScopes()}}};function co(e){let t=[],n=new Set;function r(e){if(n.has(e))return;n.add(e);let i=e?.nameScopesList?.scopeName;i&&t.push(i),e.parent&&r(e.parent)}return r(e),t}function lo(e,t){if(!(e instanceof so))throw new ei(`Invalid grammar state`);return e.getInternalStack(t)}var uo=/,/,fo=/ /;function po(e,t,n={}){let{theme:r=e.getLoadedThemes()[0]}=n;if(Ba(e.resolveLangAlias(n.lang||`text`))||Ha(r))return Ga(t).map(e=>[{content:e[0],offset:e[1]}]);let{theme:i,colorMap:a}=e.setTheme(r),o=e.getLanguage(n.lang||`text`);if(n.grammarState){if(n.grammarState.lang!==o.name)throw new ei(`Grammar state language "${n.grammarState.lang}" does not match highlight language "${o.name}"`);if(!n.grammarState.themes.includes(i.name))throw new ei(`Grammar state themes "${n.grammarState.themes}" do not contain highlight theme "${i.name}"`)}return ho(t,o,i,a,n)}function mo(...e){if(e.length===2)return oo(e[1]);let[t,n,r={}]=e,{lang:i=`text`,theme:a=t.getLoadedThemes()[0]}=r;if(Ba(i)||Ha(a))throw new ei(`Plain language does not have grammar state`);if(i===`ansi`)throw new ei(`ANSI language does not have grammar state`);let{theme:o,colorMap:s}=t.setTheme(a),c=t.getLanguage(i);return new so(go(n,c,o,s,r).stateStack,c.name,o.name)}function ho(e,t,n,r,i){let a=go(e,t,n,r,i),o=new so(a.stateStack,t.name,n.name);return ao(a.tokens,o),a.tokens}function go(e,t,n,r,i){let a=Ia(n,i),{tokenizeMaxLineLength:o=0,tokenizeTimeLimit:s=500,includeExplanation:c=!1}=i,l=Ga(e),u=i.grammarState?lo(i.grammarState,n.name)??Fa:i.grammarContextCode==null?Fa:go(i.grammarContextCode,t,n,r,{...i,grammarState:void 0,grammarContextCode:void 0}).stateStack,d=[],f=[];for(let e=0,i=l.length;e<i;e++){let[i,p]=l[e];if(i===``){d=[],f.push([]);continue}if(o>0&&i.length>=o){d=[],f.push([{content:i,offset:p,color:``,fontStyle:0}]);continue}let m,h,g;c&&c!==`tokenType`&&(m=t.tokenizeLine(i,u,s),h=m.tokens,g=0);let _=t.tokenizeLine2(i,u,s),v=_.tokens.length/2;for(let e=0;e<v;e++){let t=_.tokens[2*e],o=e+1<v?_.tokens[2*e+2]:i.length;if(t===o)continue;let s=_.tokens[2*e+1],l=La(r[Di.getForeground(s)],a),u=Di.getFontStyle(s),f={content:i.substring(t,o),offset:p+t,color:l,fontStyle:u};if(c===`tokenType`)f.type=Di.getTokenType(s);else if(c){let e=[];if(c!==`scopeName`)for(let t of n.settings){let n;switch(typeof t.scope){case`string`:n=t.scope.split(uo).map(e=>e.trim());break;case`object`:n=t.scope;break;default:continue}e.push({settings:t,selectors:n.map(e=>e.split(fo))})}f.explanation=[];let r=0;for(;t+r<o;){let t=h[g],n=i.substring(t.startIndex,t.endIndex);r+=n.length,f.explanation.push({content:n,scopes:c===`scopeName`?_o(t.scopes):vo(e,t.scopes)}),g+=1}}d.push(f)}f.push(d),d=[],u=_.ruleStack}return{tokens:f,stateStack:u}}function _o(e){return e.map(e=>({scopeName:e}))}function vo(e,t){let n=[];for(let r=0,i=t.length;r<i;r++){let i=t[r];n[r]={scopeName:i,themeMatches:xo(e,i,t.slice(0,r))}}return n}function yo(e,t){return e===t||t.substring(0,e.length)===e&&t[e.length]===`.`}function bo(e,t,n){if(!yo(e.at(-1),t))return!1;let r=e.length-2,i=n.length-1;for(;r>=0&&i>=0;)yo(e[r],n[i])&&--r,--i;return r===-1}function xo(e,t,n){let r=[];for(let{selectors:i,settings:a}of e)for(let e of i)if(bo(e,t,n)){r.push(a);break}return r}function So(e,t,n,r=po){let i=Object.entries(n.themes).filter(e=>e[1]).map(e=>({color:e[0],theme:e[1]})),a=i.map(i=>{let a=r(e,t,{...n,theme:i.theme});return{tokens:a,state:oo(a),theme:typeof i.theme==`string`?i.theme:i.theme.name}}),o=Co(...a.map(e=>e.tokens)),s=o[0].map((e,t)=>e.map((e,r)=>{let a={content:e.content,variants:{},offset:e.offset};return`includeExplanation`in n&&n.includeExplanation&&(a.explanation=e.explanation),o.forEach((e,n)=>{let{content:o,explanation:s,offset:c,...l}=e[t][r];a.variants[i[n].color]=l}),a})),c=a[0].state?new so(Object.fromEntries(a.map(e=>[e.theme,e.state?.getInternalStack(e.theme)])),a[0].state.lang):void 0;return c&&ao(s,c),s}function Co(...e){let t=e.map(()=>[]),n=e.length;for(let r=0;r<e[0].length;r++){let i=e.map(e=>e[r]),a=t.map(()=>[]);t.forEach((e,t)=>e.push(a[t]));let o=i.map(()=>0),s=i.map(e=>e[0]);for(;s.every(e=>e);){let e=Math.min(...s.map(e=>e.content.length));for(let t=0;t<n;t++){let n=s[t];n.content.length===e?(a[t].push(n),o[t]+=1,s[t]=i[t][o[t]]):(a[t].push({...n,content:n.content.slice(0,e)}),s[t]={...n,content:n.content.slice(e),offset:n.offset+e})}}}return t}var wo=[`area`,`base`,`basefont`,`bgsound`,`br`,`col`,`command`,`embed`,`frame`,`hr`,`image`,`img`,`input`,`keygen`,`link`,`meta`,`param`,`source`,`track`,`wbr`],To=class{constructor(e,t,n){this.normal=t,this.property=e,n&&(this.space=n)}};To.prototype.normal={},To.prototype.property={},To.prototype.space=void 0;function Eo(e,t){let n={},r={};for(let t of e)Object.assign(n,t.property),Object.assign(r,t.normal);return new To(n,r,t)}function Do(e){return e.toLowerCase()}var Oo=class{constructor(e,t){this.attribute=t,this.property=e}};Oo.prototype.attribute=``,Oo.prototype.booleanish=!1,Oo.prototype.boolean=!1,Oo.prototype.commaOrSpaceSeparated=!1,Oo.prototype.commaSeparated=!1,Oo.prototype.defined=!1,Oo.prototype.mustUseProperty=!1,Oo.prototype.number=!1,Oo.prototype.overloadedBoolean=!1,Oo.prototype.property=``,Oo.prototype.spaceSeparated=!1,Oo.prototype.space=void 0;var ko=An({boolean:()=>G,booleanish:()=>jo,commaOrSpaceSeparated:()=>Fo,commaSeparated:()=>Po,number:()=>K,overloadedBoolean:()=>Mo,spaceSeparated:()=>No}),Ao=0,G=Io(),jo=Io(),Mo=Io(),K=Io(),No=Io(),Po=Io(),Fo=Io();function Io(){return 2**++Ao}var Lo=Object.keys(ko),Ro=class extends Oo{constructor(e,t,n,r){let i=-1;if(super(e,t),zo(this,`space`,r),typeof n==`number`)for(;++i<Lo.length;){let e=Lo[i];zo(this,Lo[i],(n&ko[e])===ko[e])}}};Ro.prototype.defined=!0;function zo(e,t,n){n&&(e[t]=n)}function Bo(e){let t={},n={};for(let[r,i]of Object.entries(e.properties)){let a=new Ro(r,e.transform(e.attributes||{},r),i,e.space);e.mustUseProperty&&e.mustUseProperty.includes(r)&&(a.mustUseProperty=!0),t[r]=a,n[Do(r)]=r,n[Do(a.attribute)]=r}return new To(t,n,e.space)}var Vo=Bo({properties:{ariaActiveDescendant:null,ariaAtomic:jo,ariaAutoComplete:null,ariaBusy:jo,ariaChecked:jo,ariaColCount:K,ariaColIndex:K,ariaColSpan:K,ariaControls:No,ariaCurrent:null,ariaDescribedBy:No,ariaDetails:null,ariaDisabled:jo,ariaDropEffect:No,ariaErrorMessage:null,ariaExpanded:jo,ariaFlowTo:No,ariaGrabbed:jo,ariaHasPopup:null,ariaHidden:jo,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:No,ariaLevel:K,ariaLive:null,ariaModal:jo,ariaMultiLine:jo,ariaMultiSelectable:jo,ariaOrientation:null,ariaOwns:No,ariaPlaceholder:null,ariaPosInSet:K,ariaPressed:jo,ariaReadOnly:jo,ariaRelevant:null,ariaRequired:jo,ariaRoleDescription:No,ariaRowCount:K,ariaRowIndex:K,ariaRowSpan:K,ariaSelected:jo,ariaSetSize:K,ariaSort:null,ariaValueMax:K,ariaValueMin:K,ariaValueNow:K,ariaValueText:null,role:null},transform(e,t){return t===`role`?t:`aria-`+t.slice(4).toLowerCase()}});function Ho(e,t){return t in e?e[t]:t}function Uo(e,t){return Ho(e,t.toLowerCase())}var Wo=Bo({attributes:{acceptcharset:`accept-charset`,classname:`class`,htmlfor:`for`,httpequiv:`http-equiv`},mustUseProperty:[`checked`,`multiple`,`muted`,`selected`],properties:{abbr:null,accept:Po,acceptCharset:No,accessKey:No,action:null,allow:null,allowFullScreen:G,allowPaymentRequest:G,allowUserMedia:G,alpha:G,alt:null,as:null,async:G,autoCapitalize:null,autoComplete:No,autoFocus:G,autoPlay:G,blocking:No,capture:null,charSet:null,checked:G,cite:null,className:No,closedBy:null,colorSpace:null,cols:K,colSpan:K,command:null,commandFor:null,content:null,contentEditable:jo,controls:G,controlsList:No,coords:K|Po,crossOrigin:null,data:null,dateTime:null,decoding:null,default:G,defer:G,dir:null,dirName:null,disabled:G,download:Mo,draggable:jo,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:G,formTarget:null,headers:No,height:K,hidden:Mo,high:K,href:null,hrefLang:null,htmlFor:No,httpEquiv:No,id:null,imageSizes:null,imageSrcSet:null,inert:G,inputMode:null,integrity:null,is:null,isMap:G,itemId:null,itemProp:No,itemRef:No,itemScope:G,itemType:No,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:G,low:K,manifest:null,max:null,maxLength:K,media:null,method:null,min:null,minLength:K,multiple:G,muted:G,name:null,nonce:null,noModule:G,noValidate:G,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:G,optimum:K,pattern:null,ping:No,placeholder:null,playsInline:G,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:G,referrerPolicy:null,rel:No,required:G,reversed:G,rows:K,rowSpan:K,sandbox:No,scope:null,scoped:G,seamless:G,selected:G,shadowRootClonable:G,shadowRootCustomElementRegistry:G,shadowRootDelegatesFocus:G,shadowRootMode:null,shadowRootSerializable:G,shape:null,size:K,sizes:null,slot:null,span:K,spellCheck:jo,src:null,srcDoc:null,srcLang:null,srcSet:null,start:K,step:null,style:null,tabIndex:K,target:null,title:null,translate:null,type:null,typeMustMatch:G,useMap:null,value:jo,width:K,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:No,axis:null,background:null,bgColor:null,border:K,borderColor:null,bottomMargin:K,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:G,declare:G,event:null,face:null,frame:null,frameBorder:null,hSpace:K,leftMargin:K,link:null,longDesc:null,lowSrc:null,marginHeight:K,marginWidth:K,noResize:G,noHref:G,noShade:G,noWrap:G,object:null,profile:null,prompt:null,rev:null,rightMargin:K,rules:null,scheme:null,scrolling:jo,standby:null,summary:null,text:null,topMargin:K,valueType:null,version:null,vAlign:null,vLink:null,vSpace:K,allowTransparency:null,autoCorrect:null,autoSave:null,credentialless:G,disablePictureInPicture:G,disableRemotePlayback:G,exportParts:Po,part:No,prefix:null,property:null,results:K,security:null,unselectable:null},space:`html`,transform:Uo}),Go=Bo({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`,maskType:`mask-type`,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:Fo,accentHeight:K,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:K,amplitude:K,arabicForm:null,ascent:K,attributeName:null,attributeType:null,azimuth:K,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:K,by:null,calcMode:null,capHeight:K,className:No,clip:null,clipPath:null,clipPathUnits:null,clipRule:null,color:null,colorInterpolation:null,colorInterpolationFilters:null,colorProfile:null,colorRendering:null,content:null,contentScriptType:null,contentStyleType:null,crossOrigin:null,cursor:null,cx:null,cy:null,d:null,dataType:null,defaultAction:null,descent:K,diffuseConstant:K,direction:null,display:null,dur:null,divisor:K,dominantBaseline:null,download:G,dx:null,dy:null,edgeMode:null,editable:null,elevation:K,enableBackground:null,end:null,event:null,exponent:K,externalResourcesRequired:null,fill:null,fillOpacity:K,fillRule:null,filter:null,filterRes:null,filterUnits:null,floodColor:null,floodOpacity:null,focusable:null,focusHighlight:null,fontFamily:null,fontSize:null,fontSizeAdjust:null,fontStretch:null,fontStyle:null,fontVariant:null,fontWeight:null,format:null,fr:null,from:null,fx:null,fy:null,g1:Po,g2:Po,glyphName:Po,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:K,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:K,horizOriginX:K,horizOriginY:K,id:null,ideographic:K,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:K,k:K,k1:K,k2:K,k3:K,k4:K,kernelMatrix:Fo,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:K,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskType:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:K,mediaTime:null,method:null,min:null,mode:null,name:null,navDown:null,navDownLeft:null,navDownRight:null,navLeft:null,navNext:null,navPrev:null,navRight:null,navUp:null,navUpLeft:null,navUpRight:null,numOctaves:null,observer:null,offset:null,onAbort:null,onActivate:null,onAfterPrint:null,onBeforePrint:null,onBegin:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnd:null,onEnded:null,onError:null,onFocus:null,onFocusIn:null,onFocusOut:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadStart:null,onMessage:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onMouseWheel:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRepeat:null,onReset:null,onResize:null,onScroll:null,onSeeked:null,onSeeking:null,onSelect:null,onShow:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnload:null,onVolumeChange:null,onWaiting:null,onZoom:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:K,overlineThickness:K,paintOrder:null,panose1:null,path:null,pathLength:K,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:No,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:K,pointsAtY:K,pointsAtZ:K,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:Fo,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:Fo,rev:Fo,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:Fo,requiredFeatures:Fo,requiredFonts:Fo,requiredFormats:Fo,resource:null,restart:null,result:null,rotate:null,rx:null,ry:null,scale:null,seed:null,shapeRendering:null,side:null,slope:null,snapshotTime:null,specularConstant:K,specularExponent:K,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:K,strikethroughThickness:K,string:null,stroke:null,strokeDashArray:Fo,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:K,strokeOpacity:K,strokeWidth:null,style:null,surfaceScale:K,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:Fo,tabIndex:K,tableValues:null,target:null,targetX:K,targetY:K,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:Fo,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:K,underlineThickness:K,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:K,values:null,vAlphabetic:K,vMathematical:K,vectorEffect:null,vHanging:K,vIdeographic:K,version:null,vertAdvY:K,vertOriginX:K,vertOriginY:K,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:K,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:`svg`,transform:Ho}),Ko=Bo({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()}}),qo=Bo({attributes:{xmlnsxlink:`xmlns:xlink`},properties:{xmlnsXLink:null,xmlns:null},space:`xmlns`,transform:Uo}),Jo=Bo({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:`xml`,transform(e,t){return`xml:`+t.slice(3).toLowerCase()}}),Yo=/[A-Z]/g,Xo=/-[a-z]/g,Zo=/^data[-\w.:]+$/i;function Qo(e,t){let n=Do(t),r=t,i=Oo;if(n in e.normal)return e.property[e.normal[n]];if(n.length>4&&n.slice(0,4)===`data`&&Zo.test(t)){if(t.charAt(4)===`-`){let e=t.slice(5).replace(Xo,es);r=`data`+e.charAt(0).toUpperCase()+e.slice(1)}else{let e=t.slice(4);if(!Xo.test(e)){let n=e.replace(Yo,$o);n.charAt(0)!==`-`&&(n=`-`+n),t=`data`+n}}i=Ro}return new i(r,t)}function $o(e){return`-`+e.toLowerCase()}function es(e){return e.charAt(1).toUpperCase()}var ts=Eo([Vo,Wo,Ko,qo,Jo],`html`),ns=Eo([Vo,Go,Ko,qo,Jo],`svg`),rs={}.hasOwnProperty;function is(e,t){let n=t||{};function r(t,...n){let i=r.invalid,a=r.handlers;if(t&&rs.call(t,e)){let n=String(t[e]);i=rs.call(a,n)?a[n]:r.unknown}if(i)return i.call(this,t,...n)}return r.handlers=n.handlers||{},r.invalid=n.invalid,r.unknown=n.unknown,r}var as=/["&'<>`]/g,os=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,ss=/[\x01-\t\v\f\x0E-\x1F\x7F\x81\x8D\x8F\x90\x9D\xA0-\uFFFF]/g,cs=/[|\\{}()[\]^$+*?.]/g,ls=new WeakMap;function us(e,t){return e=e.replace(t.subset?ds(t.subset):as,r),t.subset||t.escapeOnly?e:e.replace(os,n).replace(ss,r);function n(e,n,r){return t.format((e.charCodeAt(0)-55296)*1024+e.charCodeAt(1)-56320+65536,r.charCodeAt(n+2),t)}function r(e,n,r){return t.format(e.charCodeAt(0),r.charCodeAt(n+1),t)}}function ds(e){let t=ls.get(e);return t||(t=fs(e),ls.set(e,t)),t}function fs(e){let t=[],n=-1;for(;++n<e.length;)t.push(e[n].replace(cs,`\\$&`));return RegExp(`(?:`+t.join(`|`)+`)`,`g`)}var ps=/[\dA-Fa-f]/;function ms(e,t,n){let r=`&#x`+e.toString(16).toUpperCase();return n&&t&&!ps.test(String.fromCharCode(t))?r:r+`;`}var hs=/\d/;function gs(e,t,n){let r=`&#`+String(e);return n&&t&&!hs.test(String.fromCharCode(t))?r:r+`;`}var _s=`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`.split(`.`),vs={nbsp:`\xA0`,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:`€`},ys=[`cent`,`copy`,`divide`,`gt`,`lt`,`not`,`para`,`times`],bs={}.hasOwnProperty,xs={},Ss;for(Ss in vs)bs.call(vs,Ss)&&(xs[vs[Ss]]=Ss);var Cs=/[^\dA-Za-z]/;function ws(e,t,n,r){let i=String.fromCharCode(e);if(bs.call(xs,i)){let e=xs[i],a=`&`+e;return n&&_s.includes(e)&&!ys.includes(e)&&(!r||t&&t!==61&&Cs.test(String.fromCharCode(t)))?a:a+`;`}return``}function Ts(e,t,n){let r=ms(e,t,n.omitOptionalSemicolons),i;if((n.useNamedReferences||n.useShortestReferences)&&(i=ws(e,t,n.omitOptionalSemicolons,n.attribute)),(n.useShortestReferences||!i)&&n.useShortestReferences){let i=gs(e,t,n.omitOptionalSemicolons);i.length<r.length&&(r=i)}return i&&(!n.useShortestReferences||i.length<r.length)?i:r}function Es(e,t){return us(e,Object.assign({format:Ts},t))}var Ds=/^>|^->|<!--|-->|--!>|<!-$/g,Os=[`>`],ks=[`<`,`>`];function As(e,t,n,r){return r.settings.bogusComments?`<?`+Es(e.value,Object.assign({},r.settings.characterReferences,{subset:Os}))+`>`:`<!--`+e.value.replace(Ds,i)+`-->`;function i(e){return Es(e,Object.assign({},r.settings.characterReferences,{subset:ks}))}}function js(e,t,n,r){return`<!`+(r.settings.upperDoctype?`DOCTYPE`:`doctype`)+(r.settings.tightDoctype?``:` `)+`html>`}function Ms(e,t){let n=String(e);if(typeof t!=`string`)throw TypeError(`Expected character`);let r=0,i=n.indexOf(t);for(;i!==-1;)r++,i=n.indexOf(t,i+t.length);return r}function Ns(e,t){let n=t||{};return(e[e.length-1]===``?[...e,``]:e).join((n.padRight?` `:``)+`,`+(n.padLeft===!1?``:` `)).trim()}function Ps(e){return e.join(` `).trim()}var Fs=/[ \t\n\f\r]/g;function Is(e){return typeof e==`object`?e.type===`text`&&Ls(e.value):Ls(e)}function Ls(e){return e.replace(Fs,``)===``}var Rs=Vs(1),zs=Vs(-1),Bs=[];function Vs(e){return t;function t(t,n,r){let i=t?t.children:Bs,a=(n||0)+e,o=i[a];if(!r)for(;o&&Is(o);)a+=e,o=i[a];return o}}var Hs={}.hasOwnProperty;function Us(e){return t;function t(t,n,r){return Hs.call(e,t.tagName)&&e[t.tagName](t,n,r)}}var Ws=Us({body:qs,caption:Gs,colgroup:Gs,dd:Zs,dt:Xs,head:Gs,html:Ks,li:Ys,optgroup:$s,option:ec,p:Js,rp:Qs,rt:Qs,tbody:nc,td:ac,tfoot:rc,th:ac,thead:tc,tr:ic});function Gs(e,t,n){let r=Rs(n,t,!0);return!r||r.type!==`comment`&&!(r.type===`text`&&Is(r.value.charAt(0)))}function Ks(e,t,n){let r=Rs(n,t);return!r||r.type!==`comment`}function qs(e,t,n){let r=Rs(n,t);return!r||r.type!==`comment`}function Js(e,t,n){let r=Rs(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 Ys(e,t,n){let r=Rs(n,t);return!r||r.type===`element`&&r.tagName===`li`}function Xs(e,t,n){let r=Rs(n,t);return!(!r||r.type!==`element`||r.tagName!==`dt`&&r.tagName!==`dd`)}function Zs(e,t,n){let r=Rs(n,t);return!r||r.type===`element`&&(r.tagName===`dt`||r.tagName===`dd`)}function Qs(e,t,n){let r=Rs(n,t);return!r||r.type===`element`&&(r.tagName===`rp`||r.tagName===`rt`)}function $s(e,t,n){let r=Rs(n,t);return!r||r.type===`element`&&r.tagName===`optgroup`}function ec(e,t,n){let r=Rs(n,t);return!r||r.type===`element`&&(r.tagName===`option`||r.tagName===`optgroup`)}function tc(e,t,n){let r=Rs(n,t);return!(!r||r.type!==`element`||r.tagName!==`tbody`&&r.tagName!==`tfoot`)}function nc(e,t,n){let r=Rs(n,t);return!r||r.type===`element`&&(r.tagName===`tbody`||r.tagName===`tfoot`)}function rc(e,t,n){return!Rs(n,t)}function ic(e,t,n){let r=Rs(n,t);return!r||r.type===`element`&&r.tagName===`tr`}function ac(e,t,n){let r=Rs(n,t);return!r||r.type===`element`&&(r.tagName===`td`||r.tagName===`th`)}var oc=Us({body:lc,colgroup:uc,head:cc,html:sc,tbody:dc});function sc(e){let t=Rs(e,-1);return!t||t.type!==`comment`}function cc(e){let t=new Set;for(let n of e.children)if(n.type===`element`&&(n.tagName===`base`||n.tagName===`title`)){if(t.has(n.tagName))return!1;t.add(n.tagName)}let n=e.children[0];return!n||n.type===`element`}function lc(e){let t=Rs(e,-1,!0);return!t||t.type!==`comment`&&!(t.type===`text`&&Is(t.value.charAt(0)))&&(t.type!==`element`||t.tagName!==`meta`&&t.tagName!==`link`&&t.tagName!==`script`&&t.tagName!==`style`&&t.tagName!==`template`)}function uc(e,t,n){let r=zs(n,t),i=Rs(e,-1,!0);return n&&r&&r.type===`element`&&r.tagName===`colgroup`&&Ws(r,n.children.indexOf(r),n)?!1:!!(i&&i.type===`element`&&i.tagName===`col`)}function dc(e,t,n){let r=zs(n,t),i=Rs(e,-1);return n&&r&&r.type===`element`&&(r.tagName===`thead`||r.tagName===`tbody`)&&Ws(r,n.children.indexOf(r),n)?!1:!!(i&&i.type===`element`&&i.tagName===`tr`)}var fc={name:[[`
5
5
  \f\r &/=>`.split(``),`
@@ -320,13 +320,14 @@ diff --git`)}function mv(e,t){if(e.length===0)return[``];let n=`\n${t}`,r=e.star
320
320
  `),a=Math.max(1,t-zC),o=Math.min(i.length,n+zC),s=r===`deletions`?`-`:r===`file`?`>`:`+`,c=[];for(let e=a;e<=o;e++){let r=e>=t&&e<=n?s:` `;c.push(`${r}${String(e).padStart(4)} | ${i[e-1]??``}`)}return c.join(`
321
321
  `)}function ZC(e){let t=3,n=/`+/g,r;for(;r=n.exec(e);)t=Math.max(t,r[0].length+1);return"`".repeat(t)}function QC(e){return e.split(/[@#]/)[0]}function $C(e){return e.pr?.headRefName??e.headRef??e.branch}function ew(e,t){if(e.some(e=>e.id===t))return t;let n=t.indexOf(`@`);if(n<0)return t.includes(`#`)?null:e.find(e=>e.worktree===t&&e.pr?.headRefName===e.branch)?.id??null;let r=t.slice(0,n),i=t.slice(n+1);return e.find(e=>e.worktree===r&&(e.pr?.headRefName??e.headRef)===`${e.branch}-${i}`)?.id??null}function tw(e){return e.split(`
322
322
  `).filter(e=>e[0]===`+`||e[0]===`-`||e[0]===`>`).map(e=>e.slice(1)).join(`
323
- `)}function nw(e,t,n=!0){let r=t.getBoundingClientRect();if(!r.height)return;let i=e.getBoundingClientRect(),a=getComputedStyle(t),o=r.top-(parseFloat(a.scrollMarginTop)||0),s=r.bottom+(parseFloat(a.scrollMarginBottom)||0),c=0;o<i.top?c=o-i.top:s>i.bottom&&(c=s-i.bottom),c&&e.scrollTo({top:Math.max(0,e.scrollTop+c),behavior:n?`smooth`:`auto`})}function rw(e){if(e.length<=1)return null;let t=document.createElement(`select`);t.setAttribute(`aria-label`,`Send to session`),t.className=`_nP`;for(let n of e){let e=document.createElement(`option`);e.value=n.id,e.textContent=Ke(n),t.append(e)}return t}var iw=(e,t)=>t.find(t=>t.id===e?.value)?.id??t[0]?.id??null;function aw(e){return e.map(e=>`${e.id}\t${Ke(e)}`).join(`
324
- `)}var ow=new WeakMap;function sw(e){ow.get(e)?.()}function cw(e,t,n,r){let i={el:lw(),busy:!1,stale:!1},a=()=>{},o=()=>{if(i.busy){i.stale=!0;return}let s=e.sessions(),c;if(!s.length)c=lw(),a=()=>{};else{let l=dw(`Send`,``);l.dataset.role=`send`;let u=rw(s),d=u?`Send to`:`Send`;l.onclick=()=>{(async()=>{let t=iw(u,e.sessions());if(t&&!l.disabled){i.busy=!0,uw([...n,l],!0,d);try{await r(t)}finally{i.busy=!1,uw([...n,l],!1,d),i.stale&&(i.stale=!1,o())}}})()},a=()=>l.click(),c=fw(l,u,s,t)}i.el.replaceWith(c),i.el=c};return o(),{get el(){return i.el},draw:o,send:()=>e.sessions().length?(a(),!0):!1}}function lw(){let e=document.createElement(`span`);return e.hidden=!0,e}function uw(e,t,n){for(let r of e)r.disabled=t,n&&r.dataset.role===`send`&&(r.textContent=t?`Sending…`:n)}function dw(e,t){let n=document.createElement(`button`);return n.type=`button`,n.textContent=e,n.className=t,n}function fw(e,t,n,r){if(!t){e.className=`_I ${r?f:``} _J`,e.textContent=`Send`;let t=n[0];return t&&(e.title=`Send to ${Ke(t)}`),e}let i=document.createElement(`span`);return i.className=`_nN ${r?`_nv`:``}`,e.className=`_J _nO`,e.textContent=`Send to`,i.append(e,t),i}function pw(e,t,n){e.onkeydown=e=>{e.key===`Enter`&&(e.metaKey||e.ctrlKey)&&(e.preventDefault(),t()),e.key===`Escape`&&(e.preventDefault(),n())}}function mw(e,t,n){let r=document.createElement(`div`);r.className=`_nr`;let i=document.createElement(`div`),a=document.createElement(`div`);a.className=`_nu`;let o=null;ow.set(r,()=>o?.());let s=()=>{i.replaceChildren(),a.replaceChildren();let r=document.createElement(`p`);r.className=`_ns`,r.textContent=e.text;let s=dw(`Remove`,`_I ${f}`);s.onclick=()=>n.onDelete(e.id);let u=dw(`Edit`,`_I ${f}`);u.hidden=!n.onEdit,u.onclick=()=>c(),a.append(u,s);let d=n.onSend;if(d){let n=cw(t,!0,[s,u],t=>d(e.id,t));a.append(n.el),o=n.draw}if(n.drifted){let e=document.createElement(`span`);e.className=`_bp ${l.warn} _nw`,e.textContent=`changed since`,e.title=`These lines changed since the comment; the agent gets them as they were`,a.append(e)}i.append(r)},c=()=>{o=null,i.replaceChildren(),a.replaceChildren();let t=document.createElement(`textarea`);t.value=e.text,t.rows=3,t.className=`_bA _nt`;let r=dw(`Save`,`_I _J`),c=dw(`Cancel`,`_I`),l=()=>{let i=t.value.trim();if(!i||i===e.text){s();return}(async()=>{uw([r,c],!0);try{await n.onEdit?.(e.id,i),e.text=i,s()}catch{uw([r,c],!1)}})()};r.onclick=l,c.onclick=()=>s(),pw(t,l,s),a.append(r,c),i.append(t),setTimeout(()=>{t.focus({preventScroll:!0}),t.setSelectionRange(t.value.length,t.value.length)},0)};return s(),r.append(i,a),r}function hw(e,t){let n=document.createElement(`div`);n.className=`_nr`;let r=document.createElement(`textarea`);r.placeholder=`Add a comment…`,r.rows=3,r.className=`_bA _nt`;let i=dw(`Add`,`_I`),a=dw(`Cancel`,`_I`),o=()=>{r.value.trim()&&t.onSave(r.value)},s=t.onSend,c=s?cw(e,!1,[i,a],e=>{let t=r.value.trim();if(t)return s(t,e)}):null;c&&ow.set(n,c.draw),i.onclick=o,a.onclick=()=>t.onCancel(),pw(r,()=>{c?.send()||o()},()=>t.onCancel());let l=document.createElement(`div`);l.className=`_nu`,l.append(i),c&&l.append(c.el),l.append(a),n.append(r,l),r.addEventListener(`focus`,()=>{let t=window.visualViewport;if(!t)return;let i=()=>e.reveal(n,!0);t.addEventListener(`resize`,i),r.addEventListener(`blur`,()=>t.removeEventListener(`resize`,i),{once:!0})});let u=(e=0)=>{if(!r.isConnected||!r.getClientRects().length){e<120&&requestAnimationFrame(()=>u(e+1));return}r.focus({preventScroll:!0})};return setTimeout(u,0),n}var gw=e=>`/api/workspaces/${e}/review`;async function _w(e){return(await De(gw(e))).comments||[]}function vw(e,t){return ve(gw(e),{action:`comment`,...t})}function yw(e,t,n){return ve(`${gw(e)}/${t}`,{text:n},`PATCH`)}async function bw(e,t){if(!t.some(e=>e.head))return null;try{return(await De(`/api/workspaces/${e}/diff`)).sections}catch{return null}}async function xw(e,t){t.length&&await ve(gw(e),{action:`clear`,ids:t})}async function Sw(e,t){return ve(gw(e),{action:`reviewed`,points:t})}async function Cw(e,t){let n=ge(t),r=await _w(e);return Te(t,n)?r:null}function ww(e,t){ge(e.seq),e.set(t)}async function Tw(e,t){ge(e.seq);try{let n=await vw(e.workspaceId,t),r=e.list();return r.some(e=>e.id===n.id)||e.set(r.concat(n)),!0}catch(t){return e.fail(`Add comment failed: ${U(t)}`),!1}}async function Ew(e,t){let n=e.list().find(e=>e.id===t);if(n){ww(e,e.list().filter(e=>e.id!==t));try{await xw(e.workspaceId,[t])}catch(r){let i=e.list();i.some(e=>e.id===t)||e.set([...i,n].sort((e,t)=>e.id-t.id)),e.fail(`Remove comment failed: ${U(r)}`)}}}async function Dw(e,t,n){let r=e.list().find(e=>e.id===t),i=n.trim();if(r&&i&&i!==r.text){ww(e,e.list().map(e=>e.id===t?{...e,text:i}:e));try{await yw(e.workspaceId,t,i)}catch(n){throw e.set(e.list().map(e=>e.id===t?r:e)),e.fail(`Edit comment failed: ${U(n)}`),n}}}async function Ow(e,t,n,r){if(!t.length)return!0;try{let i=BC(t,e.sections());if(`clipboard`in n){if(!await Ge(i))return e.fail(`Copy failed: the browser blocked the clipboard`),!1}else await ve(`/api/sessions/${n.session}/send`,{text:i,...rt()||{}});e.handed(n);let a=new Set(r);return ww(e,e.list().filter(e=>!a.has(e.id))),r.length&&await xw(e.workspaceId,r).catch(t=>{e.fail(`${`clipboard`in n?`Copied`:`Sent`}, but the comments are still saved: ${U(t)}`),e.reload()}),!0}catch(t){return e.fail(`Send failed: ${U(t)}`),!1}}function kw(e,t){let n=e.list();return Ow(e,n,t,n.map(e=>e.id))}function Aw(e,t,n){let r=e.list().find(e=>e.id===t);return r?Ow(e,[r],{session:n},[t]):Promise.resolve(!1)}function jw(e,t,n){return Ow(e,[{id:-1,workspace_id:e.workspaceId,created_at:``,...t}],{session:n},[])}var Mw=`search-mark`,Nw=`mark.${Mw}`,Pw=`mark.${Mw}{display:inline;background:#ffd24a;color:#1a1408;-webkit-text-fill-color:#1a1408;border-radius:3px;padding:0 2px}mark.${Mw} *,mark.${Mw} *::before,mark.${Mw} *::after{color:inherit!important;-webkit-text-fill-color:inherit!important;background:transparent!important}mark.${Mw}.active{background:#ffb000;box-shadow:0 0 0 1px #c98400}`,Fw={query:``,hit:null,keys:null},Iw=new Map,Lw=new WeakMap,Rw=(e,t)=>t?`${e}\n${t.line}\n${t.side||``}`:e;function zw(e,t,n){Fw.query=e,Fw.hit=t,Fw.keys=n?new Set(n):null;for(let[e,t]of Iw)Ww(e,t,!1);t&&Bw(t)}function Bw(e,t=0){requestAnimationFrame(()=>{requestAnimationFrame(()=>{let n=!1;for(let[r,i]of Iw)if(i===e.key&&(n=!0,Uw(r,e)||t>=40))return;t>=40||(!n||t<12)&&setTimeout(()=>Bw(e,t+1),n?32:48)})})}function Vw(e,t){if(e.scrollWidth<=e.clientWidth+1)return;let n=e.getBoundingClientRect(),r=t.getBoundingClientRect(),i=Math.min(24,n.width/8);if(r.left>=n.left+i&&r.right<=n.right-i)return;let a=r.left-n.left+e.scrollLeft-(n.width/2-r.width/2),o=Math.max(0,e.scrollWidth-e.clientWidth);e.scrollTo({left:Math.max(0,Math.min(a,o))})}function Hw(e,t){let n=t.parentElement,r=e;for(;r&&r!==n;){if(r instanceof HTMLElement&&r.scrollWidth>r.clientWidth+1){let e=getComputedStyle(r).overflowX;if(e===`auto`||e===`scroll`)return r}let e=r.getRootNode(),t=r.parentElement??(e instanceof ShadowRoot?e.host:null);if(t===r)break;r=t}return null}function Uw(e,t){let n=e.shadowRoot??e.querySelector(`diffs-container`)?.shadowRoot;if(!n)return!1;let r=n.querySelector(`mark.search-mark.active`)??(()=>{if(t.line<1)return null;let e=[...n.querySelectorAll(`[data-line="${t.line}"]`)],r=t.side||`additions`;return e.find(e=>Jw(e)===r)??e[0]??null})();if(!r)return!1;let i=r.getBoundingClientRect();if(i.height===0&&i.width===0)return!1;let a=Hw(r,e);return a&&Vw(a,r),!0}function Ww(e,t,n=!0){let r=t&&Fw.hit?.key===t?Fw.hit:null,i=Fw.query.trim(),a=!!i&&!!Fw.keys&&!!t&&!Fw.keys.has(t),o=a?``:Rw(i,r),s=Lw.get(e)!==o;(n||s)&&(Lw.set(e,o),eT(e,a?``:i,r),n||FC(e),r&&s&&Bw(r))}function Gw(e,t){return Iw.set(e,t),Ww(e,t),()=>{Iw.delete(e),Lw.delete(e)}}function Kw(e){Ww(e,Iw.get(e))}function qw(e){let t=e.querySelectorAll(Nw);if(!t.length)return;let n=new Set;for(let e of[...t])e.parentElement&&n.add(e.parentElement),e.replaceWith(...e.childNodes);for(let e of n)e.normalize()}function Jw(e){let t=e.closest(`[data-code]`);return t?.hasAttribute(`data-deletions`)?`deletions`:t?.hasAttribute(`data-additions`)?`additions`:(e.getAttribute(`data-line-type`)||``).includes(`deletion`)?`deletions`:`additions`}function Yw(e){let t=document.createTreeWalker(e,NodeFilter.SHOW_TEXT),n=[];for(let e=t.nextNode();e;e=t.nextNode())e.parentElement?.closest(Nw)||n.push(e);return n}function Xw(e,t,n){let r=0;for(let i=0;i<e.length;i++){let a=t[i].length;if(n<=r+a)return{node:e[i],offset:Math.min(a,Math.max(0,n-r))};r+=a}let i=e.at(-1);return i?{node:i,offset:t.at(-1)?.length??0}:null}function Zw(e,t,n,r,i){let a=Xw(e,t,n),o=Xw(e,t,r);if(!a||!o)return;let s=document.createRange();s.setStart(a.node,a.offset),s.setEnd(o.node,o.offset);let c=document.createElement(`mark`);c.className=i;try{c.append(s.extractContents()),s.insertNode(c)}catch{}}function Qw(e,t,n,r){let i=Yw(e);if(!i.length)return;let a=i.map(e=>e.textContent??``),o=a.join(``),s=n?o:o.toLowerCase(),c=[];for(let e=s.indexOf(t);e!==-1;e=s.indexOf(t,e+t.length))c.push([e,e+t.length]);if(!c.length)return;let l=tT(e,r)?`${Mw} active`:Mw;for(let e=c.length-1;e>=0;e--)Zw(i,a,c[e][0],c[e][1],l)}var $w=new WeakMap;function eT(e,t,n){let r=[e],i=e.shadowRoot??e.querySelector(`diffs-container`)?.shadowRoot;i&&r.push(i);let a=t.trim(),o=/[A-Z]/.test(a),s=a&&!o?a.toLowerCase():a;for(let e of r){if(!s){qw(e);continue}for(let t of e.querySelectorAll(`[data-code] [data-line]`)){let e=t.textContent||``,r=t.getAttribute(`data-line-type`)!==`context-expanded`&&(o?e:e.toLowerCase()).includes(s),i=r?`${o?`s`:`i`}${s}\n${t.getAttribute(`data-line`)}\n${+!!tT(t,n)}`:``,a=!!t.querySelector(Nw);i!==(a?$w.get(t):``)&&(a&&qw(t),$w.set(t,i),r&&Qw(t,s,o,n))}}}function tT(e,t){return!!t&&t.line===Number(e.getAttribute(`data-line`))&&(t.side||`additions`)===Jw(e)}var nT=new WeakMap,rT=()=>new Map;function iT(e,t){for(let n of e.keys())t.has(n)||e.delete(n)}function aT(e,t,n){if(nT.has(e))return nT.get(e);let r=e.patch?n.get(t):void 0;if(r&&r.patch===e.patch)return r.patch=e.patch,nT.set(e,r.meta),r.meta;let i=null;if(e.patch)try{i=Z_(e.patch,`${t}#${cT(e.patch)}`)[0]?.files[0]??null}catch{i=null}return nT.set(e,i),e.patch&&n.set(t,{patch:e.patch,meta:i}),i}var oT=0;function sT(e,t){let n=[];try{n=Z_(e,`${t}#${cT(e)}`).flatMap(e=>e.files)}catch{}let r=++oT;return n.map((e,t)=>({id:`${r}:${t}:${e.name}`,fileDiff:e}))}function cT(e){let t=2166136261;for(let n=0;n<e.length;n++)t^=e.charCodeAt(n),t=Math.imul(t,16777619);return`${(t>>>0).toString(36)}${e.length.toString(36)}`}var lT=new WeakMap;function uT(e,t){let n=lT.get(e);if(!n){n={additions:new Map,deletions:new Map};let t=e=>(e??``).replace(/\r?\n$/,``);for(let r of e.hunks){let i=r.additionStart,a=r.deletionStart,o=r.additionLineIndex,s=r.deletionLineIndex;for(let c of r.hunkContent)if(c.type===`context`)for(let r=0;r<c.lines;r++)n.additions.set(i++,t(e.additionLines[o++])),n.deletions.set(a++,t(e.deletionLines[s++]));else{for(let r=0;r<c.deletions;r++)n.deletions.set(a++,t(e.deletionLines[s++]));for(let r=0;r<c.additions;r++)n.additions.set(i++,t(e.additionLines[o++]))}}lT.set(e,n)}return n[t]}function dT(e,t,n){let r=uT(e,t);if(!r.size)return!0;let i=n.split(`
325
- `);for(let[e,t]of r){let n=i[e-1];if(n===void 0||n.replace(/\r$/,``)!==t)return!1}return!0}var fT=3;function pT(e,t,n,r){let i=uT(e,t),a=t===`deletions`?`-`:`+`,o=[];for(let e=Math.max(1,n-fT);e<=r+fT;e++){let t=i.get(e);if(t==null)continue;let s=e>=n&&e<=r?a:` `;o.push(`${s}${String(e).padStart(4)} | ${t}`)}return o.join(`
326
- `)}var mT=40,hT;function gT(e){return e.length>=200?null:[...new Set(e.map(e=>e.key))]}function _T(e,t){let n=t.trim();if(!n)return[];if(hT&&hT.files===e&&hT.query===n)return hT.hits;let r=ST(e,n);return hT={files:e,query:n,hits:r},r}var vT=new WeakMap;function yT(e){let t=vT.get(e);if(!t){let n={additions:new Set,deletions:new Set};if(e.fileDiff){let n=uT(e.fileDiff,`additions`),r=uT(e.fileDiff,`deletions`),i=e=>{let t=[];for(let[n,r]of e)t[n-1]=r;return t},a=new Set;for(let t of e.fileDiff.hunks){let e=t.deletionStart;for(let n of t.hunkContent)if(n.type!==`context`)e+=n.deletions;else for(let t=0;t<n.lines;t++)a.add(e++)}t={visible:{additions:new Set(n.keys()),deletions:new Set(r.keys())},newLines:i(n),oldLines:i(r),context:a}}else t={visible:n,newLines:null,oldLines:null,context:new Set};vT.set(e,t)}return t}var bT=new Map;function xT(e){let t=e.patch??``,n=bT.get(e.key);if(n&&n.patch===t)return n.lower;let r=t.toLowerCase();return bT.set(e.key,{patch:t,lower:r}),bT.size>4e3&&bT.delete(bT.keys().next().value),r}function ST(e,t){let n=/[A-Z]/.test(t),r=n?t:t.toLowerCase(),i=!/[^\x00-\x7f]/.test(r),a=[];for(let t of e){if(a.length>=200)break;let e=a.length;if(i&&!(n?t.patch??``:xT(t)).includes(r)){CT(t.path,r,n)&&a.push({key:t.key,path:t.path,repo:t.repo,line:0,side:null,preview:t.path});continue}let{visible:o,newLines:s,oldLines:c,context:l}=yT(t);wT(t,s,`additions`,r,n,null,a,o.additions),wT(t,c,`deletions`,r,n,l,a,o.deletions),a.length===e&&CT(t.path,r,n)&&a.push({key:t.key,path:t.path,repo:t.repo,line:0,side:null,preview:t.path})}return a}function CT(e,t,n){let r=n?e:e.toLowerCase();if(!r.includes(t))return!1;let i=e.lastIndexOf(`/`),a=i>=0?e.slice(i+1):e,o=a.lastIndexOf(`.`);if(o<=0)return!0;let s=a.slice(o+1);if(!(n?s:s.toLowerCase()).includes(t))return!0;let c=e.length-s.length;for(let e=r.indexOf(t);e!==-1;e=r.indexOf(t,e+1))if(e<c)return!0;return!1}function wT(e,t,n,r,i,a,o,s){if(!t||o.length>=200||!s.size)return;let c=0;for(let l=0;l<t.length;l++){if(o.length>=200||c>=mT)return;let u=l+1;if(!s.has(u)||a?.has(u))continue;let d=t[l];if(d==null)continue;let f=(i?d:d.toLowerCase()).indexOf(r);f<0||(c++,o.push({key:e.key,path:e.path,repo:e.repo,line:u,side:n,preview:TT(d,f,r.length)}))}}function TT(e,t,n){let r=Math.max(0,t-36),i=Math.min(e.length,t+n+36);return(r>0?`…`:``)+e.slice(r,i)+(i<e.length?`…`:``)}function ET(e){return Object.values(e).join(`|`)}function DT(e){let t=Qt(cn(e));if(!t)return null;let n=document.createElementNS(`http://www.w3.org/2000/svg`,`svg`);return n.setAttribute(`class`,`_iK`),n.setAttribute(`width`,String(a.lg)),n.setAttribute(`height`,String(a.lg)),n.setAttribute(`viewBox`,t.viewBox),n.setAttribute(`aria-hidden`,`true`),n.innerHTML=t.body,n}function OT(e,t){let n=document.createElement(e);return t&&(n.className=t),n}function kT(e,t){let n=OT(`button`,e);return n.type=`button`,n.onclick=e=>{e.stopPropagation(),t()},n}function AT(e,t){let r=OT(`div`,`_iH${e.collapsed?` _iI`:``}`);r.title=e.label;let i=OT(`span`,`_iJ`);i.append(_S(he,a.sm)),i.title=`${e.collapsed?`Expand`:`Collapse`} (${vt()?`⌥`:`Alt+`}click: every file)`;let o=OT(`span`,`_bO`);o.dataset.status=e.status,o.textContent=e.status;let s=OT(`span`,`_iL`),c=OT(`bdi`);c.textContent=e.label,s.append(c);let l=DT(e.label);if(r.append(i,o,...l?[l]:[],s),e.patchless){let i=kT(n,t.comment);i.append(_S(_e,a.sm)),e.notes&&i.append(` ${e.notes}`),i.title=e.notes?`${e.notes} comment${e.notes>1?`s`:``} — add another`:`Comment on this file`,i.setAttribute(`aria-label`,`Comment on this file`),r.append(i)}else if(e.notes){let t=OT(`span`,`_M`);t.append(_S(_e,a.sm),` ${e.notes}`),r.append(t)}if(e.errors){let n=kT(`_iM`,t.errors);n.title=`${e.errors} type ${e.errors===1?`error`:`errors`} on changed lines: go to the first`,n.append(_S(ke,a.sm),` ${e.errors}`),r.append(n)}if(e.additions||e.deletions){let t=OT(`span`,`_iN`),n=OT(`span`,`_iO`);n.textContent=`+${e.additions||0}`;let i=OT(`span`,`_iP`);i.textContent=`−${e.deletions||0}`,t.append(n,i),r.append(t)}if(e.open!==!1){let n=kT(m,t.open);n.append(_S(ye,a.md)),e.open?(n.title=e.open,n.setAttribute(`aria-label`,`Open in Files`)):(n.disabled=!0,n.title=`This change deletes the file: nothing to open in Files`,n.setAttribute(`aria-label`,`Deleted: not in Files`)),r.append(n)}return r.onclick=e=>t.fold(e.altKey),r}function jT(e){return JSON.stringify(e)}function MT(e,t){let n=OT(`div`,`_iW`);n.dataset.topic=e.name,n.title=e.reposTitle;let r=OT(`span`,`_iX`);if(r.textContent=e.name,n.append(r),e.repos){let t=OT(`span`,`_iY`);t.textContent=e.repos,n.append(t)}for(let t of e.prs){let e=OT(`a`,`_iZ ${t.tone}`);e.href=t.url,e.target=`_blank`,e.rel=`noopener`,e.textContent=`#${t.number}`,e.title=`PR #${t.number} on GitHub`,e.onclick=e=>e.stopPropagation(),n.append(e)}let i=OT(`span`,`_i0`);if(i.textContent=e.when,n.append(i),e.commits.length){let r=OT(`span`,`${h} _i1`);r.append(e.commitsLabel,_S(he,a.sm));let i=OT(`select`,`_i2`);i.setAttribute(`aria-label`,`${e.commitsLabel}: show one alone`),i.title=`Show one commit alone`;let o=OT(`option`);o.value=``,o.textContent=e.commitsLabel,i.append(o);for(let t of e.commits){let e=OT(`option`);e.value=t.sha,e.textContent=t.label,i.append(e)}i.onclick=e=>e.stopPropagation(),i.onchange=()=>{let e=i.value;i.value=``,e&&t.commit(e)},r.append(i),n.append(r)}return e.reviewable&&n.append(NT(e.reviewed,t.review)),n}function NT(e,t){let n=kT(`${i}${e?` _i4`:``}`,()=>t(!e));return n.setAttribute(`aria-pressed`,String(e)),n.setAttribute(`aria-label`,`Reviewed`),n.title=e?`Reviewed as it is now: clear it`:`Mark reviewed as it is now: New shows only what changes after`,n.append(_S(Re,a.md)),n}function PT(e){let t=OT(`div`,p),n=OT(`span`,`_i0`);return n.textContent=`Nothing new: ${e.slice(0,6).join(` · `)}${e.length>6?` · ${e.length-6} more`:``}`,n.title=e.join(`
327
- `),t.append(n),t}function FT(e){let t=[],n=[];for(let r of e.trim().split(/\s+/).filter(Boolean)){let e=r.startsWith(`!`),i=e?r.slice(1):r;i&&(e?n:t).push(LT(i,e?IT:Xt))}return e=>!n.some(t=>t(e))&&t.every(t=>t(e))}function IT(e,t){return t.toLowerCase().includes(e.toLowerCase())}function LT(e,t){if(!/[*?]/.test(e))return n=>t(e,n);let n=``;for(let t=0;t<e.length;t++){let r=e[t];r===`*`?e[t+1]===`*`?(n+=`.*`,t++):n+=`[^/]*`:n+=r===`?`?`[^/]`:r.replace(/[.+^${}()|[\]\\]/,`\\$&`)}try{let e=new RegExp(n,`i`);return t=>e.test(t)}catch{return n=>t(e,n)}}function RT(e){let t=new Set;for(let n of e)for(let e=n.indexOf(`/`);e!==-1;e=n.indexOf(`/`,e+1))t.add(n.slice(0,e+1));return t}function zT(e){let t=e.lastIndexOf(`/`,e.length-2);return t===-1?``:e.slice(0,t+1)}function BT(e,t){let n=new Set(e),r=new Set(t),i=RT(t),a=new Set([...RT(e)].filter(e=>!i.has(e))),o=[];for(let e of a)a.has(zT(e))||o.push({type:`remove`,path:e,recursive:!0});for(let t of e)!r.has(t)&&!a.has(zT(t))&&o.push({type:`remove`,path:t});for(let e of t)n.has(e)||o.push({type:`add`,path:e});return o}function VT(e){return`${e} uncommitted ${e===1?`file`:`files`} in its worktree`}function HT(e){let t=e.nextToLand?`, next to merge${e.stack?` (layer ${e.stack.index} of ${e.stack.size})`:``}`:``,n=e.edits?`; ${VT(e.edits)}`:``;if(e.pr)return`#${e.pr.number}: ${It(e.pr)} PR${t}${n}`;if(e.unpushed){let r=e.unpushed;return`${r} ${r===1?`commit`:`commits`} not pushed${t}${n}`}return e.ready?`Pushed: ready for review${t}${n}`:e.edits?`No commits yet; ${VT(e.edits)}`:null}function UT(e){return!!e.pr||!e.contained||!!e.edits}function WT(e){return new Map(e.flatMap(e=>e.layer?[[e.pr?.headRefName||e.headRef||e.branch,e.layer]]:[]))}function GT(e,t,n,r){let i=e.pr?.headRefName||e.headRef||e.branch;return{id:e.id,repo:e,group:Qe(ht(i,t))?.group,compare:$e({base:e.pr?.baseRefName||e.base,head:i,defaultBranch:e.default_branch,repoBase:e.base_branch},t,n,r)}}function KT(e){return!!e.pr&&!!e.localHead&&e.branch===e.pr.headRefName&&e.localHead!==e.head}var qT=((e,t)=>`<h1> </h1><span><button type=button aria-label=Back>${e}</button><button type=button aria-label=Forward>${t}</button></span><nav aria-label="Review views"><a title="Every file in the workspace">Files</a><a title="What changed since you marked each topic reviewed: a topic you never have shows its whole change">New</a><a title="Every topic's whole change">Diff</a></nav>`)(Dt,Et),JT=((e,t)=>` D l D D/${e}&l D/${t}&m D b b l`)(Nt,wt),YT=S(20,e=>R(e.d,`title`,e.t===null?`Back`:`Back to ${e.t}${bt(`goBack`,e.r)}`)),XT=S(22,e=>R(e.f,`title`,e.v===null?`Forward`:`Forward to ${e.v}${bt(`goForward`,e.r)}`)),ZT=D(17,e=>{YT(e),XT(e)}),QT=D(18,e=>{tE(e,e.s?.back),nE(e,e.s?.forward)}),$T=N(`T0`,e=>{ZT(e,yt()),gt(()=>{ZT(e,yt())},ie(e,0)),QT(e,mt()),ot(()=>{QT(e,mt())},ie(e,0)),H(e.d,`click`,function(){ft()}),H(e.f,`click`,function(){at()})});function eE(e){ae(e,0),I(e.a,`_7`),I(e.c,`_m_`),I(e.d,u),Tt(e.e),jt(e.e,14),kt(e.e),I(e.f,u),At(e.g),Ot(e.g,14),Mt(e.g),I(e.h,[`_bR`,`_m9`]),ZT(e,0),QT(e,{back:null,forward:null}),$T(e)}var tE=L(19,e=>{R(e.d,`disabled`,e.t===null),YT(e)}),nE=L(21,e=>{R(e.f,`disabled`,e.v===null),XT(e)}),rE=(e,t)=>{F(e.b,t===`files`?`Files`:`Review`),I(e.i,[`_bT`,t===`files`&&`_bS`]),R(e.i,`aria-current`,t===`files`?`page`:void 0),I(e.j,[`_bT`,t===`new`&&`_bS`]),R(e.j,`aria-current`,t===`new`?`page`:void 0),I(e.k,[`_bT`,t===`all`&&`_bS`]),R(e.k,`aria-current`,t===`all`?`page`:void 0)},iE=(e,t)=>R(e.i,`href`,t),aE=(e,t)=>R(e.j,`href`,t),oE=(e,t)=>R(e.k,`href`,t),sE=le,cE=(e=>`/${e}&`)(je);function lE(e){xe(e.a,Ie)}var uE=(e,t)=>Me(e.a,t),dE=(e,t)=>fe(e.a,t),fE=(e=>`<label>${e}<input type=search placeholder="Filter files…" aria-label="Filter files"></label>`)(sE),pE=(e=>` D/${e}& l`)(cE),mE=S(16,e=>re(e,`c`,e.n,OE(e))),hE=L(13,mE),gE=L(14),_E=S(12,e=>{hE(e,(e.l??e.j)||``),gE(e,kE(e))}),vE=te(9,_E),yE=S(7,e=>vE(e,e.f,e.g)),bE=L(5,yE),xE=L(6,yE),SE=N(`v5`,e=>{{let t=e.l;if(t!==null){let n=setTimeout(()=>{CE(e,null),vE(e,t)},150);ie(e,0).onabort=()=>clearTimeout(n)}}}),CE=D(11,e=>{ae(e,0),_E(e),SE(e)}),wE=L(15,mE),TE=N(`v4`,e=>{oe(e,`c`),H(e.c,`keydown`,function(t){t.key===`Enter`&&(e.o(),e.i&&(t.preventDefault(),e.i())),t.key===`Escape`&&(e.n?(t.preventDefault(),e.p(``)):e.i&&(t.preventDefault(),e.i()))}),H(e.c,`blur`,function(){e.l!==null&&e.o()})});function EE(t){I(t.a,[`_bC`,`_oM`]),lE(t.b),uE(t.b,14),dE(t.b,`_bD`),I(t.c,[`_bE`,e]),ee(t,jE(t)),CE(t,null),wE(t,AE(t)),TE(t)}var DE=L(8),OE=e=>function(t){e.p(t)},kE=e=>()=>{let t=e.l??e.j??``;CE(e,null),vE(e,t)},AE=e=>t=>{if(!t){CE(e,null),vE(e,``);return}CE(e,t)},jE=e=>()=>{e.c.focus(),e.c.select()};P.v2=OE,P.v0=kE,P.v1=AE,P.v3=jE;var ME=`<!><!><!>`,NE=T(0,0,e=>F(e.c,en(e._.d))),PE=e=>{NE._(e),FE._(e),I(e.a,`_oZ`),I(e.b,`_o0`),I(e.d,`_o1`)},FE=T(0,0,e=>F(e.e,en(e._.e))),IE=j(0,`<span><span>+<!></span><span>−<!></span></span>`,` D Db%l Db%`,PE),LE=S(5,e=>IE(e,e.d||e.e?0:1)),RE=L(3,e=>{LE(e),NE(e)}),zE=L(4,e=>{LE(e),FE(e)}),BE=(e=>`<div>${e}<div><span> </span><!><!></div></div>`)(fE),VE=(e=>` D0${e}& D D l%b%m`)(pE),HE=N(`z3`,e=>H(e.a,`click`,function(){JE(e._,``)})),UE=e=>{I(e.a,`_ni`),HE(e)},WE=T(6,0,e=>RE(e.a,e._.r)),GE=e=>{WE._(e),KE._(e)},KE=T(6,0,e=>zE(e.a,e._.s??0)),qE=x(24),JE=te(19,e=>bE(e.b,e.t)),YE=S(12,e=>JE(e,e.k,e.l)),XE=L(10,YE),ZE=L(11,YE),QE=j(7,`<button type=button>Clear</button>`,` `,UE),$E=(e,t)=>F(e.f,t),eD=S(22,e=>$E(e,`${e.v>0?`${en(e.o)} of `:``}${en(e.n)} ${e.n===1?`file`:`files`}`),2),tD=L(21,e=>{QE(e,e.v>0?0:1),eD(e)}),nD=S(15,e=>tD(e,e.n-e.o)),rD=L(13,e=>{nD(e),eD(e)}),iD=L(14,e=>{nD(e),eD(e)});function aD(e){I(e.a,`_nf`),k(e,1,oD),EE(e.b),xE(e.b,fD(e)),I(e.d,`_ng`),I(e.e,`_nh`),ee(e,dD(e))}var oD=O(`z2`,L(24)),sD=(e,t)=>DE(e.b,t),cD=j(6,(e=>`<!>${e}<!>`)(ME),(e=>`b/${e}&b`)(`b%c`),GE),lD=L(17,e=>{cD(e,+(e.r==null)),WE(e)}),uD=L(18,KE),dD=e=>()=>qE(e)(),fD=e=>t=>{JE(e,t)};P.z1=dD,P.z0=fD;var pD=((e,t)=>`<button type=button aria-haspopup=dialog>${e}<!></button><div popover=auto role=dialog aria-label="Filter files">${t}</div>`)(sE,BE),mD=((e,t)=>` D/${e}&%l D0${t}&l`)(cE,VE),hD=T(2,0,e=>F(e.b,e._.t>99?`99+`:en(e._.t))),gD=e=>{hD._(e),I(e.a,`_m7`)},_D=x(23),vD=te(16,e=>{I(e.a,[u,`_m5`,{_m6:!!e.q?.trim()}]),XE(e.e,e.q)}),yD=S(10,e=>vD(e,e.i,e.j)),bD=L(8,yD),xD=L(9,yD),SD=(e,t)=>{R(e.a,`aria-controls`,t),R(e.d,`id`,t)},CD=D(22),wD=N(`y3`,e=>{H(e.a,`pointerdown`,function(){CD(e,e.d.matches(`:popover-open`))}),H(e.a,`click`,function(){let t=e.d,n=e.w||t.matches(`:popover-open`);if(CD(e,!1),n){t.hidePopover();return}if(e.h.sheet&&de()){e.h.sheet();return}e.h.onOpen?.(),t.showPopover(),Je(t,e.a.getBoundingClientRect()),_D(e)()})});function TD(e){lE(e.b),uE(e.b,14),dE(e.b),I(e.d,v),k(e,4,FD),aD(e.e),ZE(e.e,RD(e)),sD(e.e,LD(e)),SD(e,A(e)),CD(e,!1),wD(e)}var ED=j(2,`<span aria-hidden=true> </span>`,` D `,gD),DD=(e,t)=>{R(e.a,`title`,`Filter files\n${t}`),R(e.a,`aria-label`,`Filter files: ${t}`)},OD=S(20,e=>DD(e,`${e.t>0?`${en(e.m)} of `:``}${en(e.l)} ${e.l===1?`file`:`files`}`+(e.o==null?``:` · +${en(e.o)} −${en(e.p??0)}`)),4),kD=L(19,e=>{ED(e,e.t>0?0:1),OD(e),hD(e)}),AD=S(13,e=>kD(e,e.l-e.m)),jD=L(11,e=>{rD(e.e,e.l),AD(e),OD(e)}),MD=L(12,e=>{iD(e.e,e.m),AD(e),OD(e)}),ND=L(14,e=>{lD(e.e,e.o),OD(e)}),PD=L(15,e=>{uD(e.e,e.p),OD(e)}),FD=O(`y2`,L(23)),ID=L(7,e=>{bD(e,e.h.filter),xD(e,e.h.filterChange),jD(e,e.h.total),MD(e,e.h.shown),ND(e,e.h.additions),PD(e,e.h.deletions)}),LD=e=>function(){e.d.hidePopover(),e.a.focus()},RD=e=>t=>{vD(e,t)};P.y1=LD,P.y0=RD;var zD=`<!><!><!>`,BD=T(0,0,e=>{R(e.a,`aria-label`,VT(e._.d)),R(e.a,`title`,VT(e._.d))}),VD=j(0,(e=>`<span role=img>${e}</span>`)(lt),(e=>` D/${e}&l`)(qe),e=>{BD._(e),I(e.a,`_oI`),tt(e.b),Ye(e.b,12),Xe(e.b)}),HD=L(3,e=>{VD(e,+!e.d),BD(e)}),UD=(e=>` D%b%b%b/${e}&l`)(`b%c`),WD=(e=>`<button type=button><!><!><!>${e}</button>`)(zD),GD=(e=>` D%b D l%b/${e}&l`)(`b%c`),KD=(e=>`<button type=button><!><span> </span><!>${e}</button>`)(zD),qD=`<div><!><div role=group aria-label=Sections><button type=button data-pick>All</button><!></div><!><div popover=auto role=dialog title></div></div>`,JD=` D%b D b%l%b l`,YD=200,XD=250;function ZD(e,t){return t&&e.startsWith(`${t}.`)?e.slice(t.length+1):e}function QD(e){let t=[];for(let n of e){let e=n.repo.stack?.bottom??n.id,r=t.at(-1);r?.stack&&n.repo.stack&&r.root===e?r.sections.push(n):t.push({root:e,stack:!!n.repo.stack,sections:[n]})}return t}function $D(e,t){let n=[],r=new Map;for(let i of e){let e=i.sections.at(-1).group;if(!e||t&&i.sections.includes(t)){n.push({kind:`run`,key:i.root,run:i});continue}let a=r.get(e);if(a){a.runs.push(i),a.sections.push(...i.sections);continue}let o={kind:`group`,key:`group:${e}`,name:e,runs:[i],sections:[...i.sections]};r.set(e,o),n.push(o)}return n}var eO=32,tO=V(84,e=>I(e.a,[o[It(e._._.n)],`_oH`]),e=>e._._,`U19`),nO=e=>{tO(e),rO(e)},rO=V(85,e=>F(e.b,e._._.o),e=>e._._,`U20`),iO=V(78,e=>F(e.a,e._._.i),e=>e._._,`U23`),aO=iO,oO=e=>{I(e.a,[`_om`,`_on`]),F(e.b,e._._.M)},sO=T(1,0,e=>F(e.b,e._.r)),cO=e=>{sO._(e),I(e.a,`_oD`)},lO=T(4,0,e=>I(e.a,[o[It(e._.n)],`_oH`])),uO=e=>{lO._(e),dO._(e)},dO=T(4,0,e=>F(e.b,e._.o)),fO=V(72,e=>F(e.b,e._._.a2),e=>e._._,`U10`),pO=e=>{fO(e),I(e.a,`_oA`)},mO=T(3,0,e=>I(e.a,[o[It(e._.s)],`_oH`])),hO=e=>{mO._(e),gO._(e)},gO=T(3,0,e=>F(e.b,e._.t)),_O=T(2,1,e=>F(e.b,e._.w)),vO=e=>{_O._(e),I(e.a,`_oG`)},yO=T(2,0,e=>F(e.b,e._.o)),bO=e=>{yO._(e),SO._(e)},xO=j(0,`<span><!>/</span>`,` D%`,pO),SO=T(2,0,e=>xO(e,+!e._.a2)),CO=T(1,0,e=>F(e.b,e._.m)),wO=e=>{CO._(e),I(e.a,`_on`)},TO=S(1,e=>cM(e.a,e._.o===e._._._.k)),EO=V(74,TO,e=>e._._._,`U32`),DO=e=>{EO(e),OO._(e),Jj._(e.a,e._._._._),Zj(e.a,!0),hM(e.a)},OO=T(0,2,e=>{pM(e.a,e._.o),TO(e)}),kO=S(3,e=>Rj(e.a,e._._._.a1(e.c,e._._._.ah)),2),AO=V(56,kO,e=>e._._._),jO=e=>{AO(e),MO(e),jj._(e.a,e._._._),Pj(e.a)},MO=V(62,kO,e=>e._._._,`U47`),NO=L(2,e=>{Hj(e.a,e.c),kO(e)}),PO=(e,t)=>Lj(e.a,t+1),FO=(e,t)=>{NO(e,t[0]),PO(e,t[1])},IO=S(4,e=>F(e.c,e._._.a2(e._._.af,e._._.ah)??e._._.ai),3),LO=V(57,IO,e=>e._._),RO=e=>{LO(e),zO(e),BO(e),VO(e),UO(e),I(e.a,`_ox`),I(e.b,`_oy`)},zO=V(61,IO,e=>e._._,`U48`),BO=V(62,IO,e=>e._._,`U49`),VO=V(63,IO,e=>e._._,`U50`),HO=w(3,(e=>`<!>${e}<!>`)(KD),(e=>`b/${e}&b`)(GD),jO,FO),UO=V(66,e=>HO(e,[e._._.aq,`id`]),e=>e._._,`U51`),WO=S(1,e=>Rj(e.a,ZD(e._._._._.a1(e._.f,e._._._._.ah),e._._._._.ae)),3),GO=V(56,WO,e=>e._._._._),KO=e=>{GO(e),qO(e),JO(e),YO._(e),jj._(e.a,e._._._._),Lj(e.a),Pj(e.a)},qO=V(60,WO,e=>e._._._._,`U42`),JO=V(62,WO,e=>e._._._._,`U43`),YO=T(0,1,e=>{Hj(e.a,e._.f),WO(e)}),XO=S(3,e=>Rj(e.a,ZD(e._._._._._.a1(e.c,e._._._._._.ah),e._._._._._.ae)),3),ZO=V(56,XO,e=>e._._._._._),QO=e=>{ZO(e),$O(e),ek(e),jj._(e.a,e._._._._._),Pj(e.a,!0)},$O=V(60,XO,e=>e._._._._._,`U37`),ek=V(62,XO,e=>e._._._._._,`U38`),tk=L(2,e=>{Hj(e.a,e.c),XO(e)}),nk=(e,t)=>Lj(e.a,t+1),rk=(e,t)=>{tk(e,t[0]),nk(e,t[1])},ik=S(4,e=>F(e.c,ZD(e._._._._.a2(e._.c,e._._._._.ah)??e._._._._.ai,e._._._._.ae)),4),ak=V(57,ik,e=>e._._._._),ok=e=>{ak(e),sk(e),ck(e),lk(e),uk._(e),fk._(e),I(e.a,`_oz`),W(e.b),et(e.b,12),ct(e.b)},sk=V(60,ik,e=>e._._._._,`U39`),ck=V(62,ik,e=>e._._._._,`U40`),lk=V(63,ik,e=>e._._._._,`U41`),uk=T(0,0,ik),dk=w(3,(e=>`<!>${e}<!>`)(KD),(e=>`b/${e}&b`)(GD),QO,rk),fk=T(0,0,e=>dk(e,[e._.e,`id`])),pk=j(0,(e=>`<span>${e} </span><!><!>`)(nt),(e=>` D/${e}& l%c`)(Ze),ok,(e=>`<!>${e}<!>`)(KD),(e=>`b/${e}&b`)(GD),KO),mk=(e,t)=>pk(e,+!t),hk=(e,t)=>gk(e,t[0]),gk=L(2,e=>{mk(e,e.c?.stack),_k(e,e.c?.sections),uk(e)}),_k=L(4,e=>{vk(e,e.e?.[0]),fk(e)}),vk=L(5,YO),yk=V(60,e=>F(e.c,e._._.ae),e=>e._._,`U44`),bk=e=>{yk(e),xk(e),Ck(e),I(e.a,`_ox`),I(e.b,`_oy`)},xk=V(64,e=>{F(e.d,e._._.ao),F(e.e,e._._.ao===1?`branch`:`branches`)},e=>e._._,`U45`),Sk=w(5,`<!><!><!>`,`b%`,0,hk),Ck=V(65,e=>Sk(e,[e._._.ap,`root`]),e=>e._._,`U46`),wk=j(0,`<span><span> </span><!> <!></span><!><!>`,` D D l%c%l%`,bk,`<span><span> </span> merges top to bottom</span><!><!>`,` D D m%`,RO),Tk=T(6,0,e=>wk(e,e._.ad===`group`?0:1)),Ek=Tk,Dk=S(6,e=>F(e.d,ZD(e._._._._._.a1(e._.h,e._._._._.k),e._._.i)),3),Ok=V(56,Dk,e=>e._._._._._),kk=e=>{Ok(e),Ak(e),Mk(e),Nk._(e),Fk._(e),Ik._(e),I(e.a,`_oA`)},Ak=V(74,Dk,e=>e._._._._,`U21`),jk=S(5,e=>F(e.c,e._.r?`${ZD(e._.r,e._._.i)}/`:``)),Mk=V(78,e=>{F(e.b,e._._.i),jk(e),Dk(e)},e=>e._._,`U22`),Nk=T(1,0,Dk),Pk=j(4,`<span>#<!></span>`,` Db%`,nO),Fk=T(1,0,e=>Pk(e,+!e._.n)),Ik=T(1,0,jk),Lk=N(`U36`,e=>H(e.a,`click`,function(){e._.x(1)})),Rk=e=>{I(e.a,[`_oe`,`_og`]),_t(e.b),xt(e.b,12),Ft(e.b),Lk(e)},zk=N(`U17`,e=>H(e.a,`click`,function(){e._.x(-1)})),Bk=e=>{I(e.a,[`_oe`,`_of`]),_t(e.b),xt(e.b,12),Ft(e.b,`_oh`),zk(e)},Vk=S(14,e=>I(e.a,[`_op`,{_oq:e.n===e._._._._.k}])),Hk=V(53,Vk,e=>e._._._._,`U29`),Uk=N(`U28`,e=>{H(e.c,`mouseenter`,function(t,n){e._._._._.aj(e._.M,n.closest(`[data-stack]`)??n)}),H(e.c,`mouseleave`,function(){e._._._._.ak()}),H(e.c,`pointerdown`,function(){e._._._._.al()}),H(e.c,`click`,function(t,n){e._._._._.am(e._.M,n.closest(`[data-stack]`)??n)}),H(e.c,`keydown`,function(t,n){t.key===`ArrowDown`&&(t.preventDefault(),GM(e._._._._,null),e._._._._.am(e._.M,n.closest(`[data-stack]`)??n))})}),Wk=e=>{Hk(e),Yk(e),$k(e),eA(e),nA._(e),rA._(e),Jj._(e.b,e._._._._),Zj(e.b,!0),R(e.c,`data-pop`,e._.M),W(e.d),et(e.d,12),ct(e.d),Uk(e)},Gk=S(12,e=>cM(e.b,e.l===e._._._.k)),Kk=S(18,e=>hM(e.b,e.l===e.j.at(-1)?void 0:e.p),2),qk=L(11,e=>{pM(e.b,e.l),sA(e,e.l?.id),Gk(e),Kk(e)}),Jk=S(6,e=>qk(e,e._._._._.a0(e.f))),Yk=V(55,Jk,e=>e._._._._,`U30`),Xk=S(16,e=>{R(e.c,`title`,`${e.p??e._._._.M} stack of ${e.k}: every layer, in the order they merge`),R(e.c,`aria-label`,`${e.p??e._._._.M} stack: ${e.k} layers`)}),Zk=L(15,e=>{Kk(e),Xk(e)}),Qk=S(7,e=>Zk(e,e._._._._.a2(e.f,e._._._.k)),2),$k=V(57,Qk,e=>e._._._._),eA=V(74,e=>{Qk(e),Gk(e)},e=>e._._._,`U31`),tA=L(5,e=>{iA(e,e.f?.root),aA(e,e.f?.sections),Jk(e),Qk(e)}),nA=T(0,1,e=>tA(e,e._.k)),rA=T(0,1,e=>{I(e.c,[`_or`,{_os:e._.p}]),R(e.c,`aria-expanded`,e._.p?`true`:`false`)}),iA=(e,t)=>R(e.a,`data-stack`,t),aA=L(9,e=>{oA(e,e.j?.length),Kk(e)}),oA=L(10,e=>{F(e.e,e.k),Xk(e)}),sA=L(13,Vk),cA=S(9,e=>I(e.a,[`_oj`,`_oo`,`_ot`,{_oF:!!e.h?.repo.unpushed,_oi:!!e.h&&e.h?.id===e._._._._.k,_ou:e._.p}]),2),lA=V(53,cA,e=>e._._._._,`U25`),uA=N(`U24`,e=>{H(e.a,`mouseenter`,function(t,n){e._._._._.aj(e._.M,n)}),H(e.a,`mouseleave`,function(){e._._._._.ak()}),H(e.a,`pointerdown`,function(){e._._._._.al()}),H(e.a,`click`,function(t,n){e._._._._.am(e._.M,n)}),H(e.a,`keydown`,function(t,n){t.key===`ArrowDown`&&(t.preventDefault(),GM(e._._._._,null),e._._._._.am(e._.M,n))})}),dA=e=>{lA(e),bA(e),xA(e),SA(e),CA._(e),wA._(e),EA._(e),DA._(e),OA._(e),R(e.a,`data-pop`,e._.M),I(e.c,`_ov`),dt(e.d),ut(e.d,12),pt(e.d),uA(e)},fA=j(1,`<span><span><!>.<!></span> </span><!><!>`,`D D%c%l l%`,kk,`<span> </span>`,`D `,aO),pA=L(17,Ik),mA=S(16,e=>pA(e,e.p?.stack&&e.h!==(e.p?.sections).at(-1)?e._._._._.a2(e.p,e._._._.k):void 0),3),hA=L(15,mA),gA=S(8,e=>hA(e,e.h&&e._.h.find(t=>t.sections.includes(e.h)))),_A=S(10,e=>R(e.a,`title`,`${e._.i}: ${e._.j} ${e._.j===1?`branch`:`branches`}${e.h?`\n${HT(e.h?.repo)??``}`:``}`),2),vA=L(7,e=>{AA(e,e.h?.repo?.pr),MA(e,e.h?.id),fA(e,+!e.h),gA(e),mA(e),cA(e),_A(e),Nk(e)}),yA=S(5,e=>vA(e,e._._._._.z(e._.g))),bA=V(54,yA,e=>e._._._._,`U26`),xA=V(57,mA,e=>e._._._._),SA=V(74,mA,e=>e._._._,`U27`),CA=T(0,0,yA),wA=T(0,0,gA),TA=S(6,e=>R(e.a,`aria-label`,`${e._.i} group: ${e._.j} branches`)),EA=T(0,0,e=>{_A(e),TA(e)}),DA=T(0,0,e=>{F(e.e,e._.j),_A(e),TA(e)}),OA=T(0,0,e=>{R(e.a,`aria-expanded`,e._.p?`true`:`false`),cA(e)}),kA=B(tO),AA=L(13,e=>{jA(e,e.n?.number),Fk(e),kA(e)}),jA=L(14,B(rO)),MA=(e,t)=>R(e.a,`data-pick`,t),NA=L(15,e=>{OA(e),rA(e)}),PA=V(58,e=>NA(e,e._._._.a5===e.M),e=>e._._._,`U33`),FA=PA,IA=j(0,(e=>`<button type=button aria-haspopup=dialog><!><span>${e} </span></button>`)(st),(e=>` D%b D/${e}& m`)(it),dA,((e,t)=>`<span>${e}<button type=button aria-haspopup=dialog>${t} </button></span>`)(WD,nt),((e,t)=>` D/${e}& D/${t}& m`)(UD,Ze),Wk,(e=>`<!>${e}<!>`)(WD),(e=>`b/${e}&b`)(UD),DO),LA=S(12,e=>IA(e,e.f===`group`?0:e.l?1:2)),RA=L(5,LA),zA=L(11,LA),BA=(e,t)=>{RA(e,t[0]?.kind),VA(e,t[0]?.sections),UA(e,t[0]?.runs),GA(e,t[0]?.name),KA(e,t[0]?.run)},VA=L(6,e=>{HA(e,e.g?.length),CA(e)}),HA=L(9,DA),UA=L(7,wA),WA=B(Mk,iO),GA=L(8,e=>{EA(e),WA(e)}),KA=L(10,e=>{zA(e,e.k?.stack),qA(e,e.k?.sections?.[0]),nA(e)}),qA=L(14,OO),JA=S(3,e=>I(e.a,[`_ok`,{_ol:e._.d.some(t=>t.id===e._._.k)}])),YA=V(53,JA,e=>e._._,`U34`),XA=e=>{YA(e),tj(e),nj._(e),rj._(e),aj._(e),sj._(e),cj._(e)},ZA=j(1,`<span> </span>`,` D `,oO),QA=S(10,e=>ZA(e,!e._.k||e.j!==e._.k?0:1)),$A=L(9,QA),ej=S(8,e=>$A(e,e.g===`run`?e.h.stack?e._._.a0(e.h):e.h.sections[0]:void 0),2),tj=V(55,ej,e=>e._._,`U35`),nj=T(0,1,JA),rj=T(0,1,e=>R(e.a,`aria-label`,`${e._.M}: ${e._.e} sections`)),ij=w(2,`<!><!><!>`,`b%`,FA,BA),aj=T(0,1,e=>ij(e,[e._.i,`key`])),oj=(e,t)=>{lj(e,t?.kind),uj(e,t?.run)},sj=T(0,1,e=>oj(e,e._.j)),cj=T(0,1,QA),lj=L(6,ej),uj=L(7,ej),dj=S(2,e=>I(e.a,[`_ok`,{_ol:e._.g===e._._.k}])),fj=V(53,dj,e=>e._._,`U18`),pj=e=>{fj(e),mj._(e),hj._(e),Jj._(e.b,e._._),cM(e.b,!0),Zj(e.b,!0),hM(e.b)},mj=T(0,0,e=>pM(e.b,e._.f)),hj=T(0,0,dj),gj=j(0,(e=>`<span>${e}</span>`)(WD),(e=>` D/${e}&l`)(UD),pj,`<span role=group><!><!></span>`,` D%b%`,XA),_j=L(4,e=>{gj(e,e.e===1?0:1),rj(e)}),vj=(e,t)=>{yj(e,t[0]?.sections),Sj(e,t[0]?.items),Tj(e,t[0]?.main)},yj=L(3,e=>{_j(e,e.d?.length),bj(e,e.d?.[0]),nj(e)}),bj=L(5,e=>{xj(e,e.f?.id),mj(e)}),xj=L(6,hj),Sj=L(8,e=>{Cj(e,e.i?.[0]),aj(e)}),Cj=L(9,sj),wj=B(SA,eA,Ak,EO),Tj=L(10,e=>{cj(e),wj(e)}),Ej=S(20,e=>I(e.a,[`_oB`,{_oC:e.s,_oF:!!e.m,_oi:e.t}]),2),Dj=L(19,e=>{R(e.a,`aria-current`,e.t?`true`:void 0),Ej(e)}),Oj=S(10,e=>Dj(e,e._.k===e.j)),kj=V(53,Oj,0,`U16`),Aj=N(`U15`,e=>H(e.a,`click`,function(){e._.l(e.j),e._.g.hidePopover()})),jj=ne(e=>{kj(e),I(e.c,`_oE`),Aj(e)}),Mj=L(9,Oj),Nj=L(12,Ej),Pj=L(18,Ej),Fj=(e,t)=>{R(e.a,`title`,[HT(t),t?.pr?.title].filter(Boolean).join(`
328
- `)),Nj(e,t?.unpushed),Bj(e,t?.pr),Vj(e,t?.edits)},Ij=j(1,`<span> </span>`,` D `,cO),Lj=L(17,e=>{Ij(e,+!e.r),sO(e)}),Rj=(e,t)=>F(e.d,t),zj=j(4,`<span>#<!></span>`,` Db%`,uO),Bj=L(13,e=>{Uj(e,e.n?.number),zj(e,+!e.n),lO(e)}),Vj=(e,t)=>HD(e.f,t),Hj=(e,t)=>{Mj(e,t?.id),Fj(e,t?.repo)},Uj=L(14,dO),Wj=S(27,e=>I(e.a,[`_oj`,{_oF:!!e.j,_oo:e.a0,_oi:e._.k===e.k}]),3),Gj=S(11,e=>R(e.a,`aria-pressed`,e._.k===e.k?`true`:`false`)),Kj=V(53,e=>{Wj(e),Gj(e)},0,`U13`),qj=N(`U12`,e=>H(e.a,`click`,function(){e._.l(e.k)})),Jj=ne(e=>{Kj(e),qj(e)}),Yj=L(9,Wj),Xj=L(10,e=>{R(e.a,`data-pick`,e.k),Wj(e),Gj(e)}),Zj=L(26,Wj),Qj=S(21,e=>R(e.a,`title`,[`${e.i.worktree}${e.o?` · ${e.o}`:``}${e.p?`: ${en(e.p.length)} ${e.p.length===1?`file`:`files`}, +${en(e.q??0)} −${en(e.r??0)}`:``}`,e.i.pr&&`#${e.i.pr.number} ${e.i.pr.title}`,HT(e.i),e.u].filter(Boolean).join(`
329
- `)),5),$j=L(8,e=>{Yj(e,e.i?.unpushed),gM(e,e.i?.worktree),dM(e,e.i?.pr),fM(e,e.i?.edits),Qj(e)}),eM=j(2,`<span><!><!></span>`,`D%b%`,bO,`<span> </span>`,` D `,vO),tM=S(23,e=>eM(e,e.o?0:e.w?1:2)),nM=L(14,e=>{Qj(e),tM(e),yO(e)}),rM=L(15,Qj),iM=L(16,Qj),aM=L(17,Qj),oM=L(20,Qj),sM=j(1,`<span> </span>`,` D `,wO),cM=(e,t)=>sM(e,+!t),lM=L(22,e=>{tM(e),_O(e)}),uM=j(3,`<span>#<!></span>`,` Db%`,hO),dM=L(18,e=>{_M(e,e.s?.number),uM(e,+!e.s),mO(e)}),fM=(e,t)=>HD(e.e,t),pM=(e,t)=>{$j(e,t?.repo),Xj(e,t?.id),vM(e,t?.compare),rM(e,t?.files),iM(e,t?.additions),aM(e,t?.deletions)},mM=B(fO),hM=L(28,e=>{SO(e),mM(e)}),gM=L(12,CO),_M=L(19,gO),vM=(e,t)=>{nM(e,t?.topic),oM(e,t?.title),lM(e,t?.head)},yM=D(15,e=>{R(e.c,`title`,Ct(`prevSection`,e.p)||Ct(`nextSection`,e.p)?`Sections (${[Ct(`prevSection`,e.p),Ct(`nextSection`,e.p)].filter(Boolean).join(` / `)})`:`Sections`)}),bM=j(1,(e=>`<button type=button tabindex=-1 aria-hidden=true title="More sections">${e}</button>`)(Pt),(e=>` D/${e}&l`)(St),Bk),xM=S(20,e=>I(e.c,[`_ob`,{_oc:e.s,_od:e.t}])),SM=D(18,e=>{bM(e,+!e.s),xM(e)}),CM=j(5,(e=>`<button type=button tabindex=-1 aria-hidden=true title="More sections">${e}</button>`)(Pt),(e=>` D/${e}&l`)(St),Rk),wM=D(19,e=>{CM(e,+!e.t),xM(e)}),TM=N(`U52`,e=>{{let t=e.o>0,n=e.k??``,r=requestAnimationFrame(()=>{t&&e.v();let r=e.c,i=r.querySelector(`[data-pick="${CSS.escape(n)}"]`);if(!i)return;let a=i.offsetLeft,o=a+i.offsetWidth,s=r.scrollLeft;if(a<s+eO||o>s+r.clientWidth-eO){let e=r.scrollWidth-r.clientWidth,t=a+i.offsetWidth/2-r.clientWidth/2;r.scrollTo({left:Math.max(0,Math.min(e,t)),behavior:r.dataset.placed?`smooth`:`instant`})}r.dataset.placed=`1`});ie(e,2).addEventListener(`abort`,()=>cancelAnimationFrame(r))}}),EM=S(22,e=>{ae(e,2),TM(e)},2),DM=N(`U53`,e=>M(e,{onMount:function(){let t=e.c,n=new ResizeObserver(()=>e.v());return n.observe(t),t.addEventListener(`wheel`,e=>{Math.abs(e.deltaX)>Math.abs(e.deltaY)||t.scrollWidth<=t.clientWidth||(e.preventDefault(),t.scrollLeft+=e.deltaY)},{passive:!1}),e.v(),{ro:n}},onDestroy:function(){this.ro.disconnect()}})),OM=L(21,e=>{EM(e),DM(e)}),kM=L(23),AM=L(27),jM=S(36,e=>R(e.g,`aria-label`,e.a9?(e.a9?.item).kind===`group`?`${(e.a9?.item).name} group`:`${e.a2((e.a9?.item).run,(e.a9?.g).main)??(e.a9?.g).worktree} stack`:void 0)),MM=L(28,jM),NM=L(47),PM=j(6,`<!><!><!>`,`b%`,Ek),FM=N(`U54`,e=>{{let t=e.g;if(e.a3&&e.a9){let n=!t.matches(`:popover-open`);n&&t.showPopover(),Je(t,(e.a3?.chip).getBoundingClientRect()),n&&e.a3?.via===`click`&&(t.querySelector(`[aria-current="true"]`)??t.querySelector(`button`))?.focus()}else t.matches(`:popover-open`)&&t.hidePopover()}}),IM=S(37,FM),LM=L(35,e=>{aN(e,e.a9?.item?.kind),oN(e,e.a9?.item?.name),cN(e,e.a9?.item?.run),uN(e,e.a9?.item?.sections?.length),dN(e,e.a9?.item?.runs),fN(e,e.a9?.g?.main),pN(e,e.a9?.g?.worktree),PM(e,+!e.a9),IM(e),jM(e)}),RM=S(30,e=>LM(e,(()=>{if(e.a3){for(let t of e.y)for(let n of t.items)if(n.key===e.a3?.key)return{g:t,item:n}}})())),zM=L(45),BM=e=>{zM(e,CN(e))},VM=D(29,e=>{nN(e,e.a3?.key),iN(e,e.a3?.via),NM(e,SN(e)),RM(e),BM(e),IM(e)}),HM=N(`U55`,e=>{{let t=e.a7;if(t){let n=setTimeout(()=>{UM(e,null),VM(e,t.pop)},t.pop?YD:XD);ie(e,1).addEventListener(`abort`,()=>clearTimeout(n))}}}),UM=D(33,e=>{ae(e,1),HM(e)}),WM=L(48),GM=D(34,e=>WM(e,wN(e))),KM=N(`U56`,e=>{yM(e,yt()),gt(()=>{yM(e,yt())},ie(e,0)),H(e.c,`scroll`,function(){e.v()}),H(e.d,`click`,function(){e.l(null)}),H(e.g,`mouseenter`,function(){e.a7&&!e.a7?.pop&&UM(e,null)}),H(e.g,`mouseleave`,function(){e.ak()}),H(e.g,`toggle`,function(t){t.newState===`closed`&&(document.activeElement===document.body&&e.a3&&document.querySelector(`[data-pop="${CSS.escape(e.a3?.key)}"]`)?.focus(),UM(e,null),VM(e,null))}),H(e.g,`keydown`,function(e,t){if(e.key!==`ArrowDown`&&e.key!==`ArrowUp`)return;e.preventDefault();let n=[...t.querySelectorAll(`button`)],r=n.indexOf(document.activeElement);n[((e.key===`ArrowDown`?r+1:r-1)+n.length)%n.length]?.focus()})});function qM(e){ae(e,0),I(e.g,[`_bN`,`_ow`]),yM(e,0),SM(e,!1),wM(e,!1),OM(e,vN(e)),kM(e,yN(e)),AM(e,bN),MM(e,xN),VM(e,null),UM(e,null),GM(e,null),KM(e)}var JM=w(4,`<!><!><!>`,`b%`,0,vj),YM=L(24,e=>{JM(e,[e.y,`worktree`]),RM(e)}),XM=(e,t)=>{gN(e,t?.length),YM(e,(()=>{let e=[];for(let n of t){let t=e.find(e=>e.worktree===n.repo.worktree);t||e.push(t={worktree:n.repo.worktree,sections:[],items:[]}),t.sections.push(n),!t.main&&!n.compare?.topic&&!n.compare?.head&&(t.main=n)}for(let t of e)t.items=$D(QD(t.sections),t.main);return e})())},ZM=L(26,B(tj,Yk)),QM=B(bA),$M=L(25,e=>{ZM(e,TN(e)),QM(e)}),eN=B(Kj,kj,fj,YA,lA,Hk),tN=L(10,e=>{I(e.d,[`_oj`,{_oi:!e.k}]),R(e.d,`aria-pressed`,e.k?`false`:`true`),$M(e,EN(e)),EM(e),eN(e)}),nN=L(31,B(PA)),rN=L(46),iN=L(32,e=>rN(e,DN(e))),aN=L(39,Tk),oN=L(40,B(yk,sk,$O,qO)),sN=B(zO),cN=L(41,e=>{lN(e,e.af?.sections),sN(e)}),lN=L(52,B(UO)),uN=L(50,B(xk)),dN=L(51,B(Ck)),fN=L(43,B(ck,ek,JO,BO,MO)),pN=L(44,B(lk,VO)),mN=(e,t)=>I(e.a,[`_oa`,t]),hN=(e,t)=>R(e.d,`title`,t==null?`Every section`:`Every section: ${en(t)} ${t===1?`file`:`files`}`),gN=L(14,EM),_N=L(11),vN=e=>()=>{let t=e.c;SM(e,t.scrollLeft>1),wM(e,t.scrollLeft+t.clientWidth<t.scrollWidth-1)},yN=e=>t=>{let n=e.c;n.scrollBy({left:t*n.clientWidth*.8,behavior:`smooth`})};function bN(e,t){return e===t?e.repo.worktree:e.compare?.topic||e.compare?.head||e.repo.worktree}function xN(e,t){let n=e.sections.at(-1);return n===t?void 0:n.compare?.topic||n.compare?.head}var SN=e=>()=>{GM(e,e.a3&&e.g.matches(`:popover-open`)?{key:e.a3?.key,via:e.a3?.via}:null)},CN=e=>(t,n)=>{e.a6!==`click`&&UM(e,e.a5===t?null:{pop:{key:t,chip:n,via:`hover`}})},wN=e=>(t,n)=>{let r=e.a8;if(GM(e,null),UM(e,null),r?.key===t&&r.via===`click`){e.g.hidePopover();return}VM(e,{key:t,chip:n,via:`click`})},TN=e=>t=>e.z(t.sections)??t.sections.find(e=>e.repo.nextToLand)??t.sections[0],EN=e=>t=>t.find(t=>t.id===e.k),DN=e=>()=>{UM(e,e.a6===`hover`?{pop:null}:null)};P.U0=vN,P.U1=yN,P.U4=bN,P.U5=xN,P.U8=SN,P.U6=CN,P.U9=wN,P.U3=TN,P.U2=EN,P.U7=DN;var ON=le,kN=(e=>`/${e}&`)(je);function AN(e){xe(e.a,_e)}var jN=(e,t)=>Me(e.a,t),MN=(e,t)=>fe(e.a,t),NN=((e,t,n)=>`<div><div role=group><button type=button><span aria-hidden=true>${e}<span> </span></span><!></button><button type=button aria-label="Send options" aria-haspopup=menu></button></div><span>${t} No comments</span></div><div popover=auto role=menu><!><button type=button role=menuitem><span>${n}</span><span>Copy as markdown</span></button></div>`)(ON,ON,yn),PN=((e,t,n)=>` D D D D/${e}& D m%l l D/${t}&m D%b D D/${n}&l m`)(kN,kN,vn),FN=e=>{gn(e.a),hn(e.a,12),_n(e.a)},IN=T(7,3,e=>F(e.b,Ke(e._.a4))),LN=e=>{IN._(e),I(e.a,[`_nF`,`_9`]),I(e.c,`_8`)},RN=T(7,0,e=>F(e.a,e._.a0?`Copied`:`Copy failed`)),zN=RN,BN=j(1,mn,(e=>`/${e}&`)(fn),FN),VN=V(41,e=>{R(e.a,`aria-checked`,e.M===e._._.a7?`true`:`false`),BN(e,e.M===e._._.a7?0:1)},e=>e._._,`s3`),HN=N(`s2`,e=>H(e.a,`click`,function(){rP(e._._,e.M),e._._.l.hidePopover()})),UN=e=>{VN(e),I(e.a,c),I(e.b,`_nK`),He(e.c,14),We(e.c),I(e.d,`_nL`),HN(e)},WN=(e,t)=>Ue(e.c,t),GN=(e,t)=>{F(e.e,Ke(t)),WN(e,t?.agent)},KN=w(1,(e=>`<button type=button role=menuitemradio><span></span>${e}<span> </span></button>`)(Ve),(e=>` D b/${e}& D m`)(`b%c`),UN,(e,t)=>GN(e,t[0])),qN=T(12,0,e=>KN(e,[e._.a1,`id`])),JN=e=>{qN._(e),I(e.a,`_nI`),I(e.c,`_nM`)},YN=L(36),XN=S(31,e=>YN(e,yP(e)),2),ZN=j(7,` `,` `,zN,`Sending…`,0,0,`Copy`,0,0,`<span>Send to <!></span><span>Send</span>`,` Db%l `,LN,`Send`),QN=S(32,e=>ZN(e,e.z?0:e.x?1:e.a4?e.a3>1?3:4:2),3),$N=D(23,e=>{R(e.c,`disabled`,e.x),R(e.i,`disabled`,e.x),XN(e),QN(e)}),eP=S(35,e=>R(e.c,`title`,e.u?e.a4?`Send ${e.a8} to ${Ke(e.a4)}`:`Copy ${e.a8} as markdown`:`No comments to send`),2),tP=L(30,e=>{pP(e,e.a4?.id),XN(e),eP(e),QN(e),IN(e)}),nP=S(28,e=>tP(e,e.a1.find(t=>t.id===e.y)??e.a1[0]??null)),rP=D(24,nP),iP=N(`s5`,e=>{if(e.z){let t=setTimeout(()=>{aP(e,null)},1500);ie(e,0).onabort=()=>clearTimeout(t)}}),aP=D(25,e=>{ae(e,0),cP(e,e.z?.ok),QN(e),iP(e)}),oP=N(`s4`,e=>{H(e.c,`click`,function(){e.a4?e.aa():e.ab()}),H(e.i,`click`,function(){let t=e.l;t.showPopover(),Je(t,e.b.getBoundingClientRect(),{align:`end`})}),H(e.n,`click`,function(){e.l.hidePopover(),e.ab()})});function sP(e){I(e.c,`_nC`),I(e.d,[`_N`,`_nD`]),AN(e.e),jN(e.e,18),MN(e.e,`_O`),I(e.f,[t,`_nE`]),I(e.i,`_nG`),AN(e.k),jN(e.k,16),MN(e.k),I(e.l,r),I(e.n,c),I(e.o,`_nK`),xn(e.p),bn(e.p,14),Sn(e.p),I(e.q,`_nL`),$N(e,!1),rP(e,null),aP(e,null),oP(e)}var cP=L(26,RN),lP=L(27,e=>{dP(e,e.a1.length),nP(e),qN(e)}),uP=j(12,`<span>Send to</span><!><span role=separator></span>`,` b%b `,JN),dP=L(29,e=>{uP(e,+!e.a3),QN(e)}),fP=(e,t)=>lP(e,t||[]),pP=L(33,B(VN)),mP=L(34,e=>{R(e.b,`aria-label`,e.a8),eP(e)}),hP=L(20,e=>{I(e.a,[`_ny`,!e.u&&`_nA`]),I(e.b,[`_nx`,!e.u&&`_nz`]),R(e.b,`inert`,!e.u),F(e.g,e.u>99?`99+`:e.u),I(e.j,[`_nB`,!!e.u&&`_nz`]),mP(e,an(e.u,`comment`)),eP(e)}),gP=L(21,XN),_P=L(37),vP=L(22,e=>_P(e,bP(e))),yP=e=>()=>{(async()=>{if(e.a4&&!e.x){$N(e,!0);try{await e.v(e.a4?.id)}finally{$N(e,!1)}}})()},bP=e=>()=>{(async()=>{aP(e,{ok:await e.w()})})()};P.s0=yP,P.s1=bP;var xP=`<svg data-icon-sprite aria-hidden="true" width="0" height="0">
323
+ `)}function nw(e,t,n=!0){let r=t.getBoundingClientRect();if(!r.height)return;let i=e.getBoundingClientRect(),a=getComputedStyle(t),o=r.top-(parseFloat(a.scrollMarginTop)||0),s=r.bottom+(parseFloat(a.scrollMarginBottom)||0),c=0;o<i.top?c=o-i.top:s>i.bottom&&(c=s-i.bottom),c&&e.scrollTo({top:Math.max(0,e.scrollTop+c),behavior:n?`smooth`:`auto`})}function rw(e){if(e.length<=1)return null;let t=document.createElement(`select`);t.setAttribute(`aria-label`,`Send to session`),t.className=`_nk`;for(let n of e){let e=document.createElement(`option`);e.value=n.id,e.textContent=Ke(n),t.append(e)}return t}var iw=(e,t)=>t.find(t=>t.id===e?.value)?.id??t[0]?.id??null;function aw(e){return e.map(e=>`${e.id}\t${Ke(e)}`).join(`
324
+ `)}var ow=new WeakMap;function sw(e){ow.get(e)?.()}function cw(e,t,n,r){let i={el:lw(),busy:!1,stale:!1},a=()=>{},o=()=>{if(i.busy){i.stale=!0;return}let s=e.sessions(),c;if(!s.length)c=lw(),a=()=>{};else{let l=dw(`Send`,``);l.dataset.role=`send`;let u=rw(s),d=u?`Send to`:`Send`;l.onclick=()=>{(async()=>{let t=iw(u,e.sessions());if(t&&!l.disabled){i.busy=!0,uw([...n,l],!0,d);try{await r(t)}finally{i.busy=!1,uw([...n,l],!1,d),i.stale&&(i.stale=!1,o())}}})()},a=()=>l.click(),c=fw(l,u,s,t)}i.el.replaceWith(c),i.el=c};return o(),{get el(){return i.el},draw:o,send:()=>e.sessions().length?(a(),!0):!1}}function lw(){let e=document.createElement(`span`);return e.hidden=!0,e}function uw(e,t,n){for(let r of e)r.disabled=t,n&&r.dataset.role===`send`&&(r.textContent=t?`Sending…`:n)}function dw(e,t){let n=document.createElement(`button`);return n.type=`button`,n.textContent=e,n.className=t,n}function fw(e,t,n,r){if(!t){e.className=`_I ${r?f:``} _J`,e.textContent=`Send`;let t=n[0];return t&&(e.title=`Send to ${Ke(t)}`),e}let i=document.createElement(`span`);return i.className=`_ni ${r?`_nt`:``}`,e.className=`_J _nj`,e.textContent=`Send to`,i.append(e,t),i}function pw(e,t,n){e.onkeydown=e=>{e.key===`Enter`&&(e.metaKey||e.ctrlKey)&&(e.preventDefault(),t()),e.key===`Escape`&&(e.preventDefault(),n())}}function mw(e,t,n){let r=document.createElement(`div`);r.className=`_np`;let i=document.createElement(`div`),a=document.createElement(`div`);a.className=`_ns`;let o=null;ow.set(r,()=>o?.());let s=()=>{i.replaceChildren(),a.replaceChildren();let r=document.createElement(`p`);r.className=`_nq`,r.textContent=e.text;let s=dw(`Remove`,`_I ${f}`);s.onclick=()=>n.onDelete(e.id);let u=dw(`Edit`,`_I ${f}`);u.hidden=!n.onEdit,u.onclick=()=>c(),a.append(u,s);let d=n.onSend;if(d){let n=cw(t,!0,[s,u],t=>d(e.id,t));a.append(n.el),o=n.draw}if(n.drifted){let e=document.createElement(`span`);e.className=`_bp ${l.warn} _nu`,e.textContent=`changed since`,e.title=`These lines changed since the comment; the agent gets them as they were`,a.append(e)}i.append(r)},c=()=>{o=null,i.replaceChildren(),a.replaceChildren();let t=document.createElement(`textarea`);t.value=e.text,t.rows=3,t.className=`_bA _nr`;let r=dw(`Save`,`_I _J`),c=dw(`Cancel`,`_I`),l=()=>{let i=t.value.trim();if(!i||i===e.text){s();return}(async()=>{uw([r,c],!0);try{await n.onEdit?.(e.id,i),e.text=i,s()}catch{uw([r,c],!1)}})()};r.onclick=l,c.onclick=()=>s(),pw(t,l,s),a.append(r,c),i.append(t),setTimeout(()=>{t.focus({preventScroll:!0}),t.setSelectionRange(t.value.length,t.value.length)},0)};return s(),r.append(i,a),r}function hw(e,t){let n=document.createElement(`div`);n.className=`_np`;let r=document.createElement(`textarea`);r.placeholder=`Add a comment…`,r.rows=3,r.className=`_bA _nr`;let i=dw(`Add`,`_I`),a=dw(`Cancel`,`_I`),o=()=>{r.value.trim()&&t.onSave(r.value)},s=t.onSend,c=s?cw(e,!1,[i,a],e=>{let t=r.value.trim();if(t)return s(t,e)}):null;c&&ow.set(n,c.draw),i.onclick=o,a.onclick=()=>t.onCancel(),pw(r,()=>{c?.send()||o()},()=>t.onCancel());let l=document.createElement(`div`);l.className=`_ns`,l.append(i),c&&l.append(c.el),l.append(a),n.append(r,l),r.addEventListener(`focus`,()=>{let t=window.visualViewport;if(!t)return;let i=()=>e.reveal(n,!0);t.addEventListener(`resize`,i),r.addEventListener(`blur`,()=>t.removeEventListener(`resize`,i),{once:!0})});let u=(e=0)=>{if(!r.isConnected||!r.getClientRects().length){e<120&&requestAnimationFrame(()=>u(e+1));return}r.focus({preventScroll:!0})};return setTimeout(u,0),n}var gw=e=>`/api/workspaces/${e}/review`;async function _w(e){return(await De(gw(e))).comments||[]}function vw(e,t){return ve(gw(e),{action:`comment`,...t})}function yw(e,t,n){return ve(`${gw(e)}/${t}`,{text:n},`PATCH`)}async function bw(e,t){if(!t.some(e=>e.head))return null;try{return(await De(`/api/workspaces/${e}/diff`)).sections}catch{return null}}async function xw(e,t){t.length&&await ve(gw(e),{action:`clear`,ids:t})}async function Sw(e,t){return ve(gw(e),{action:`reviewed`,points:t})}async function Cw(e,t){let n=ge(t),r=await _w(e);return Te(t,n)?r:null}function ww(e,t){ge(e.seq),e.set(t)}async function Tw(e,t){ge(e.seq);try{let n=await vw(e.workspaceId,t),r=e.list();return r.some(e=>e.id===n.id)||e.set(r.concat(n)),!0}catch(t){return e.fail(`Add comment failed: ${U(t)}`),!1}}async function Ew(e,t){let n=e.list().find(e=>e.id===t);if(n){ww(e,e.list().filter(e=>e.id!==t));try{await xw(e.workspaceId,[t])}catch(r){let i=e.list();i.some(e=>e.id===t)||e.set([...i,n].sort((e,t)=>e.id-t.id)),e.fail(`Remove comment failed: ${U(r)}`)}}}async function Dw(e,t,n){let r=e.list().find(e=>e.id===t),i=n.trim();if(r&&i&&i!==r.text){ww(e,e.list().map(e=>e.id===t?{...e,text:i}:e));try{await yw(e.workspaceId,t,i)}catch(n){throw e.set(e.list().map(e=>e.id===t?r:e)),e.fail(`Edit comment failed: ${U(n)}`),n}}}async function Ow(e,t,n,r){if(!t.length)return!0;try{let i=BC(t,e.sections());if(`clipboard`in n){if(!await Ge(i))return e.fail(`Copy failed: the browser blocked the clipboard`),!1}else await ve(`/api/sessions/${n.session}/send`,{text:i,...rt()||{}});e.handed(n);let a=new Set(r);return ww(e,e.list().filter(e=>!a.has(e.id))),r.length&&await xw(e.workspaceId,r).catch(t=>{e.fail(`${`clipboard`in n?`Copied`:`Sent`}, but the comments are still saved: ${U(t)}`),e.reload()}),!0}catch(t){return e.fail(`Send failed: ${U(t)}`),!1}}function kw(e,t){let n=e.list();return Ow(e,n,t,n.map(e=>e.id))}function Aw(e,t,n){let r=e.list().find(e=>e.id===t);return r?Ow(e,[r],{session:n},[t]):Promise.resolve(!1)}function jw(e,t,n){return Ow(e,[{id:-1,workspace_id:e.workspaceId,created_at:``,...t}],{session:n},[])}var Mw=`search-mark`,Nw=`mark.${Mw}`,Pw=`mark.${Mw}{display:inline;background:#ffd24a;color:#1a1408;-webkit-text-fill-color:#1a1408;border-radius:3px;padding:0 2px}mark.${Mw} *,mark.${Mw} *::before,mark.${Mw} *::after{color:inherit!important;-webkit-text-fill-color:inherit!important;background:transparent!important}mark.${Mw}.active{background:#ffb000;box-shadow:0 0 0 1px #c98400}`,Fw={query:``,hit:null,keys:null},Iw=new Map,Lw=new WeakMap,Rw=(e,t)=>t?`${e}\n${t.line}\n${t.side||``}`:e;function zw(e,t,n){Fw.query=e,Fw.hit=t,Fw.keys=n?new Set(n):null;for(let[e,t]of Iw)Ww(e,t,!1);t&&Bw(t)}function Bw(e,t=0){requestAnimationFrame(()=>{requestAnimationFrame(()=>{let n=!1;for(let[r,i]of Iw)if(i===e.key&&(n=!0,Uw(r,e)||t>=40))return;t>=40||(!n||t<12)&&setTimeout(()=>Bw(e,t+1),n?32:48)})})}function Vw(e,t){if(e.scrollWidth<=e.clientWidth+1)return;let n=e.getBoundingClientRect(),r=t.getBoundingClientRect(),i=Math.min(24,n.width/8);if(r.left>=n.left+i&&r.right<=n.right-i)return;let a=r.left-n.left+e.scrollLeft-(n.width/2-r.width/2),o=Math.max(0,e.scrollWidth-e.clientWidth);e.scrollTo({left:Math.max(0,Math.min(a,o))})}function Hw(e,t){let n=t.parentElement,r=e;for(;r&&r!==n;){if(r instanceof HTMLElement&&r.scrollWidth>r.clientWidth+1){let e=getComputedStyle(r).overflowX;if(e===`auto`||e===`scroll`)return r}let e=r.getRootNode(),t=r.parentElement??(e instanceof ShadowRoot?e.host:null);if(t===r)break;r=t}return null}function Uw(e,t){let n=e.shadowRoot??e.querySelector(`diffs-container`)?.shadowRoot;if(!n)return!1;let r=n.querySelector(`mark.search-mark.active`)??(()=>{if(t.line<1)return null;let e=[...n.querySelectorAll(`[data-line="${t.line}"]`)],r=t.side||`additions`;return e.find(e=>Jw(e)===r)??e[0]??null})();if(!r)return!1;let i=r.getBoundingClientRect();if(i.height===0&&i.width===0)return!1;let a=Hw(r,e);return a&&Vw(a,r),!0}function Ww(e,t,n=!0){let r=t&&Fw.hit?.key===t?Fw.hit:null,i=Fw.query.trim(),a=!!i&&!!Fw.keys&&!!t&&!Fw.keys.has(t),o=a?``:Rw(i,r),s=Lw.get(e)!==o;(n||s)&&(Lw.set(e,o),eT(e,a?``:i,r),n||FC(e),r&&s&&Bw(r))}function Gw(e,t){return Iw.set(e,t),Ww(e,t),()=>{Iw.delete(e),Lw.delete(e)}}function Kw(e){Ww(e,Iw.get(e))}function qw(e){let t=e.querySelectorAll(Nw);if(!t.length)return;let n=new Set;for(let e of[...t])e.parentElement&&n.add(e.parentElement),e.replaceWith(...e.childNodes);for(let e of n)e.normalize()}function Jw(e){let t=e.closest(`[data-code]`);return t?.hasAttribute(`data-deletions`)?`deletions`:t?.hasAttribute(`data-additions`)?`additions`:(e.getAttribute(`data-line-type`)||``).includes(`deletion`)?`deletions`:`additions`}function Yw(e){let t=document.createTreeWalker(e,NodeFilter.SHOW_TEXT),n=[];for(let e=t.nextNode();e;e=t.nextNode())e.parentElement?.closest(Nw)||n.push(e);return n}function Xw(e,t,n){let r=0;for(let i=0;i<e.length;i++){let a=t[i].length;if(n<=r+a)return{node:e[i],offset:Math.min(a,Math.max(0,n-r))};r+=a}let i=e.at(-1);return i?{node:i,offset:t.at(-1)?.length??0}:null}function Zw(e,t,n,r,i){let a=Xw(e,t,n),o=Xw(e,t,r);if(!a||!o)return;let s=document.createRange();s.setStart(a.node,a.offset),s.setEnd(o.node,o.offset);let c=document.createElement(`mark`);c.className=i;try{c.append(s.extractContents()),s.insertNode(c)}catch{}}function Qw(e,t,n,r){let i=Yw(e);if(!i.length)return;let a=i.map(e=>e.textContent??``),o=a.join(``),s=n?o:o.toLowerCase(),c=[];for(let e=s.indexOf(t);e!==-1;e=s.indexOf(t,e+t.length))c.push([e,e+t.length]);if(!c.length)return;let l=tT(e,r)?`${Mw} active`:Mw;for(let e=c.length-1;e>=0;e--)Zw(i,a,c[e][0],c[e][1],l)}var $w=new WeakMap;function eT(e,t,n){let r=[e],i=e.shadowRoot??e.querySelector(`diffs-container`)?.shadowRoot;i&&r.push(i);let a=t.trim(),o=/[A-Z]/.test(a),s=a&&!o?a.toLowerCase():a;for(let e of r){if(!s){qw(e);continue}for(let t of e.querySelectorAll(`[data-code] [data-line]`)){let e=t.textContent||``,r=t.getAttribute(`data-line-type`)!==`context-expanded`&&(o?e:e.toLowerCase()).includes(s),i=r?`${o?`s`:`i`}${s}\n${t.getAttribute(`data-line`)}\n${+!!tT(t,n)}`:``,a=!!t.querySelector(Nw);i!==(a?$w.get(t):``)&&(a&&qw(t),$w.set(t,i),r&&Qw(t,s,o,n))}}}function tT(e,t){return!!t&&t.line===Number(e.getAttribute(`data-line`))&&(t.side||`additions`)===Jw(e)}var nT=new WeakMap,rT=()=>new Map;function iT(e,t){for(let n of e.keys())t.has(n)||e.delete(n)}function aT(e,t,n){if(nT.has(e))return nT.get(e);let r=e.patch?n.get(t):void 0;if(r&&r.patch===e.patch)return r.patch=e.patch,nT.set(e,r.meta),r.meta;let i=null;if(e.patch)try{i=Z_(e.patch,`${t}#${fT(e.patch)}`)[0]?.files[0]??null}catch{i=null}return nT.set(e,i),e.patch&&n.set(t,{patch:e.patch,meta:i}),i}var oT=0;function sT(e,t){let n=[];try{n=Z_(e,`${t}#${fT(e)}`).flatMap(e=>e.files)}catch{}let r=++oT,i=n.map((e,t)=>({id:`${r}:${t}:${e.name}`,fileDiff:e}));return{files:i,...cT(e,i)}}function cT(e,t){let n=e.split(`
325
+ `),r=Array(n.length+1).fill(null),i=new Map,a=0;for(let{id:e,fileDiff:o}of t){let t={additions:new Map,deletions:new Map};i.set(e,t);for(let i of o.hunks){let o=`@@ -${i.deletionStart},${i.deletionCount} +${i.additionStart},${i.additionCount} @@`,s=null;for(;!s;){for(;a<n.length&&uT(n[a])!==o;)a++;if(a>=n.length)return{rows:[],lines:new Map};s=lT(n,++a,i,e)}for(let{line:e,row:n,old:i}of s.rows)r[e]=n,t[n.side].set(n.line,e),i&&t.deletions.set(i,e);a=s.end}}let o=r.slice(),s=null;for(let e=o.length-1;e>0;e--)r[e]?s=r[e]:o[e]=s;let c=null;for(let e=1;e<o.length;e++)r[e]?c=r[e]:o[e]??=c;return{rows:o,lines:i}}function lT(e,t,n,r){let i=[],a=n.deletionStart,o=n.additionStart,s=n.deletionCount,c=n.additionCount,l=t;for(;(s>0||c>0)&&l<e.length;l++){let t=e[l][0];if(t!==`\\`){if(t===`+`&&c>0)i.push({line:l+1,row:{id:r,side:`additions`,line:o++}}),c--;else if(t===`-`&&s>0)i.push({line:l+1,row:{id:r,side:`deletions`,line:a++}}),s--;else if((t===` `||t===void 0||t===`\r`)&&c>0&&s>0)i.push({line:l+1,row:{id:r,side:`additions`,line:o++},old:a++}),c--,s--;else return null}}return s>0||c>0?null:{rows:i,end:l}}function uT(e){let t=/^@@ -(\d+)(?:,(\d+))? \+(\d+)(?:,(\d+))? @@/.exec(e);return t&&`@@ -${t[1]},${t[2]??1} +${t[3]},${t[4]??1} @@`}function dT(e,t,n,r){return e.lines.get(t)?.[n].get(r)??null}function fT(e){let t=2166136261;for(let n=0;n<e.length;n++)t^=e.charCodeAt(n),t=Math.imul(t,16777619);return`${(t>>>0).toString(36)}${e.length.toString(36)}`}var pT=new WeakMap;function mT(e,t){let n=pT.get(e);if(!n){n={additions:new Map,deletions:new Map};let t=e=>(e??``).replace(/\r?\n$/,``);for(let r of e.hunks){let i=r.additionStart,a=r.deletionStart,o=r.additionLineIndex,s=r.deletionLineIndex;for(let c of r.hunkContent)if(c.type===`context`)for(let r=0;r<c.lines;r++)n.additions.set(i++,t(e.additionLines[o++])),n.deletions.set(a++,t(e.deletionLines[s++]));else{for(let r=0;r<c.deletions;r++)n.deletions.set(a++,t(e.deletionLines[s++]));for(let r=0;r<c.additions;r++)n.additions.set(i++,t(e.additionLines[o++]))}}pT.set(e,n)}return n[t]}function hT(e,t,n){let r=mT(e,t);if(!r.size)return!0;let i=n.split(`
326
+ `);for(let[e,t]of r){let n=i[e-1];if(n===void 0||n.replace(/\r$/,``)!==t)return!1}return!0}var gT=3;function _T(e,t,n,r){let i=mT(e,t),a=t===`deletions`?`-`:`+`,o=[];for(let e=Math.max(1,n-gT);e<=r+gT;e++){let t=i.get(e);if(t==null)continue;let s=e>=n&&e<=r?a:` `;o.push(`${s}${String(e).padStart(4)} | ${t}`)}return o.join(`
327
+ `)}var vT=40,yT;function bT(e){return e.length>=200?null:[...new Set(e.map(e=>e.key))]}function xT(e,t){let n=t.trim();if(!n)return[];if(yT&&yT.files===e&&yT.query===n)return yT.hits;let r=ET(e,n);return yT={files:e,query:n,hits:r},r}var ST=new WeakMap;function CT(e){let t=ST.get(e);if(!t){let n={additions:new Set,deletions:new Set};if(e.fileDiff){let n=mT(e.fileDiff,`additions`),r=mT(e.fileDiff,`deletions`),i=e=>{let t=[];for(let[n,r]of e)t[n-1]=r;return t},a=new Set;for(let t of e.fileDiff.hunks){let e=t.deletionStart;for(let n of t.hunkContent)if(n.type!==`context`)e+=n.deletions;else for(let t=0;t<n.lines;t++)a.add(e++)}t={visible:{additions:new Set(n.keys()),deletions:new Set(r.keys())},newLines:i(n),oldLines:i(r),context:a}}else t={visible:n,newLines:null,oldLines:null,context:new Set};ST.set(e,t)}return t}var wT=new Map;function TT(e){let t=e.patch??``,n=wT.get(e.key);if(n&&n.patch===t)return n.lower;let r=t.toLowerCase();return wT.set(e.key,{patch:t,lower:r}),wT.size>4e3&&wT.delete(wT.keys().next().value),r}function ET(e,t){let n=/[A-Z]/.test(t),r=n?t:t.toLowerCase(),i=!/[^\x00-\x7f]/.test(r),a=[];for(let t of e){if(a.length>=200)break;let e=a.length;if(i&&!(n?t.patch??``:TT(t)).includes(r)){DT(t.path,r,n)&&a.push({key:t.key,path:t.path,repo:t.repo,line:0,side:null,preview:t.path});continue}let{visible:o,newLines:s,oldLines:c,context:l}=CT(t);OT(t,s,`additions`,r,n,null,a,o.additions),OT(t,c,`deletions`,r,n,l,a,o.deletions),a.length===e&&DT(t.path,r,n)&&a.push({key:t.key,path:t.path,repo:t.repo,line:0,side:null,preview:t.path})}return a}function DT(e,t,n){let r=n?e:e.toLowerCase();if(!r.includes(t))return!1;let i=e.lastIndexOf(`/`),a=i>=0?e.slice(i+1):e,o=a.lastIndexOf(`.`);if(o<=0)return!0;let s=a.slice(o+1);if(!(n?s:s.toLowerCase()).includes(t))return!0;let c=e.length-s.length;for(let e=r.indexOf(t);e!==-1;e=r.indexOf(t,e+1))if(e<c)return!0;return!1}function OT(e,t,n,r,i,a,o,s){if(!t||o.length>=200||!s.size)return;let c=0;for(let l=0;l<t.length;l++){if(o.length>=200||c>=vT)return;let u=l+1;if(!s.has(u)||a?.has(u))continue;let d=t[l];if(d==null)continue;let f=(i?d:d.toLowerCase()).indexOf(r);f<0||(c++,o.push({key:e.key,path:e.path,repo:e.repo,line:u,side:n,preview:kT(d,f,r.length)}))}}function kT(e,t,n){let r=Math.max(0,t-36),i=Math.min(e.length,t+n+36);return(r>0?`…`:``)+e.slice(r,i)+(i<e.length?`…`:``)}function AT(e){return Object.values(e).join(`|`)}function jT(e){let t=Qt(cn(e));if(!t)return null;let n=document.createElementNS(`http://www.w3.org/2000/svg`,`svg`);return n.setAttribute(`class`,`_jA`),n.setAttribute(`width`,String(a.lg)),n.setAttribute(`height`,String(a.lg)),n.setAttribute(`viewBox`,t.viewBox),n.setAttribute(`aria-hidden`,`true`),n.innerHTML=t.body,n}function MT(e,t){let n=document.createElement(e);return t&&(n.className=t),n}function NT(e,t){let n=MT(`button`,e);return n.type=`button`,n.onclick=e=>{e.stopPropagation(),t()},n}function PT(e,t){let r=MT(`div`,`_jx${e.collapsed?` _jy`:``}`);r.title=e.label;let i=MT(`span`,`_jz`);i.append(_S(he,a.sm)),i.title=`${e.collapsed?`Expand`:`Collapse`} (${vt()?`⌥`:`Alt+`}click: every file)`;let o=MT(`span`,`_bO`);o.dataset.status=e.status,o.textContent=e.status;let s=MT(`span`,`_jB`),c=MT(`bdi`);c.textContent=e.label,s.append(c);let l=jT(e.label);if(r.append(i,o,...l?[l]:[],s),e.patchless){let i=NT(n,t.comment);i.append(_S(_e,a.sm)),e.notes&&i.append(` ${e.notes}`),i.title=e.notes?`${e.notes} comment${e.notes>1?`s`:``} — add another`:`Comment on this file`,i.setAttribute(`aria-label`,`Comment on this file`),r.append(i)}else if(e.notes){let t=MT(`span`,`_M`);t.append(_S(_e,a.sm),` ${e.notes}`),r.append(t)}if(e.errors){let n=NT(`_jC`,t.errors);n.title=`${e.errors} type ${e.errors===1?`error`:`errors`} on changed lines: go to the first`,n.append(_S(ke,a.sm),` ${e.errors}`),r.append(n)}if(e.additions||e.deletions){let t=MT(`span`,`_jD`),n=MT(`span`,`_jE`);n.textContent=`+${e.additions||0}`;let i=MT(`span`,`_jF`);i.textContent=`−${e.deletions||0}`,t.append(n,i),r.append(t)}if(e.open!==!1){let n=NT(m,t.open);n.append(_S(ye,a.md)),e.open?(n.title=e.open,n.setAttribute(`aria-label`,`Open in Files`)):(n.disabled=!0,n.title=`This change deletes the file: nothing to open in Files`,n.setAttribute(`aria-label`,`Deleted: not in Files`)),r.append(n)}return r.onclick=e=>t.fold(e.altKey),r}function FT(e){return JSON.stringify(e)}function IT(e,t){let n=MT(`div`,`_jM`);n.dataset.topic=e.name,n.title=e.reposTitle;let r=MT(`span`,`_jN`);if(r.textContent=e.name,n.append(r),e.repos){let t=MT(`span`,`_jO`);t.textContent=e.repos,n.append(t)}for(let t of e.prs){let e=MT(`a`,`_jP ${t.tone}`);e.href=t.url,e.target=`_blank`,e.rel=`noopener`,e.textContent=`#${t.number}`,e.title=`PR #${t.number} on GitHub`,e.onclick=e=>e.stopPropagation(),n.append(e)}let i=MT(`span`,`_jQ`);if(i.textContent=e.when,n.append(i),e.commits.length){let r=MT(`span`,`${h} _jR`);r.append(e.commitsLabel,_S(he,a.sm));let i=MT(`select`,`_jS`);i.setAttribute(`aria-label`,`${e.commitsLabel}: show one alone`),i.title=`Show one commit alone`;let o=MT(`option`);o.value=``,o.textContent=e.commitsLabel,i.append(o);for(let t of e.commits){let e=MT(`option`);e.value=t.sha,e.textContent=t.label,i.append(e)}i.onclick=e=>e.stopPropagation(),i.onchange=()=>{let e=i.value;i.value=``,e&&t.commit(e)},r.append(i),n.append(r)}return e.reviewable&&n.append(LT(e.reviewed,t.review)),n}function LT(e,t){let n=NT(`${i}${e?` _jU`:``}`,()=>t(!e));return n.setAttribute(`aria-pressed`,String(e)),n.setAttribute(`aria-label`,`Reviewed`),n.title=e?`Reviewed as it is now: clear it`:`Mark reviewed as it is now: New shows only what changes after`,n.append(_S(Re,a.md)),n}function RT(e){let t=MT(`div`,p),n=MT(`span`,`_jQ`);return n.textContent=`Nothing new: ${e.slice(0,6).join(` · `)}${e.length>6?` · ${e.length-6} more`:``}`,n.title=e.join(`
328
+ `),t.append(n),t}function zT(e){let t=[],n=[];for(let r of e.trim().split(/\s+/).filter(Boolean)){let e=r.startsWith(`!`),i=e?r.slice(1):r;i&&(e?n:t).push(VT(i,e?BT:Xt))}return e=>!n.some(t=>t(e))&&t.every(t=>t(e))}function BT(e,t){return t.toLowerCase().includes(e.toLowerCase())}function VT(e,t){if(!/[*?]/.test(e))return n=>t(e,n);let n=``;for(let t=0;t<e.length;t++){let r=e[t];r===`*`?e[t+1]===`*`?(n+=`.*`,t++):n+=`[^/]*`:n+=r===`?`?`[^/]`:r.replace(/[.+^${}()|[\]\\]/,`\\$&`)}try{let e=new RegExp(n,`i`);return t=>e.test(t)}catch{return n=>t(e,n)}}function HT(e){let t=new Set;for(let n of e)for(let e=n.indexOf(`/`);e!==-1;e=n.indexOf(`/`,e+1))t.add(n.slice(0,e+1));return t}function UT(e){let t=e.lastIndexOf(`/`,e.length-2);return t===-1?``:e.slice(0,t+1)}function WT(e,t){let n=new Set(e),r=new Set(t),i=HT(t),a=new Set([...HT(e)].filter(e=>!i.has(e))),o=[];for(let e of a)a.has(UT(e))||o.push({type:`remove`,path:e,recursive:!0});for(let t of e)!r.has(t)&&!a.has(UT(t))&&o.push({type:`remove`,path:t});for(let e of t)n.has(e)||o.push({type:`add`,path:e});return o}function GT(e){return`${e} uncommitted ${e===1?`file`:`files`} in its worktree`}function KT(e){let t=e.nextToLand?`, next to merge${e.stack?` (layer ${e.stack.index} of ${e.stack.size})`:``}`:``,n=e.edits?`; ${GT(e.edits)}`:``;if(e.pr)return`#${e.pr.number}: ${It(e.pr)} PR${t}${n}`;if(e.unpushed){let r=e.unpushed;return`${r} ${r===1?`commit`:`commits`} not pushed${t}${n}`}return e.ready?`Pushed: ready for review${t}${n}`:e.edits?`No commits yet; ${GT(e.edits)}`:null}function qT(e){return!!e.pr||!e.contained||!!e.edits}function JT(e){return new Map(e.flatMap(e=>e.layer?[[e.pr?.headRefName||e.headRef||e.branch,e.layer]]:[]))}function YT(e,t,n,r){let i=e.pr?.headRefName||e.headRef||e.branch;return{id:e.id,repo:e,group:Qe(ht(i,t))?.group,compare:$e({base:e.pr?.baseRefName||e.base,head:i,defaultBranch:e.default_branch,repoBase:e.base_branch},t,n,r)}}function XT(e){return!!e.pr&&!!e.localHead&&e.branch===e.pr.headRefName&&e.localHead!==e.head}var ZT=((e,t)=>`<h1> </h1><span><button type=button aria-label=Back>${e}</button><button type=button aria-label=Forward>${t}</button></span><nav aria-label="Review views"><a title="Every file in the workspace">Files</a><a title="What changed since you marked each topic reviewed: a topic you never have shows its whole change">New</a><a title="Every topic's whole change">Diff</a></nav>`)(Dt,Et),QT=((e,t)=>` D l D D/${e}&l D/${t}&m D b b l`)(Nt,wt),$T=S(20,e=>R(e.d,`title`,e.t===null?`Back`:`Back to ${e.t}${bt(`goBack`,e.r)}`)),eE=S(22,e=>R(e.f,`title`,e.v===null?`Forward`:`Forward to ${e.v}${bt(`goForward`,e.r)}`)),tE=D(17,e=>{$T(e),eE(e)}),nE=D(18,e=>{aE(e,e.s?.back),oE(e,e.s?.forward)}),rE=N(`T0`,e=>{tE(e,yt()),gt(()=>{tE(e,yt())},ie(e,0)),nE(e,mt()),ot(()=>{nE(e,mt())},ie(e,0)),H(e.d,`click`,function(){ft()}),H(e.f,`click`,function(){at()})});function iE(e){ae(e,0),I(e.a,`_7`),I(e.c,`_m2`),I(e.d,u),Tt(e.e),jt(e.e,14),kt(e.e),I(e.f,u),At(e.g),Ot(e.g,14),Mt(e.g),I(e.h,[`_bR`,`_m1`]),tE(e,0),nE(e,{back:null,forward:null}),rE(e)}var aE=L(19,e=>{R(e.d,`disabled`,e.t===null),$T(e)}),oE=L(21,e=>{R(e.f,`disabled`,e.v===null),eE(e)}),sE=(e,t)=>{F(e.b,t===`files`?`Files`:`Review`),I(e.i,[`_bT`,t===`files`&&`_bS`]),R(e.i,`aria-current`,t===`files`?`page`:void 0),I(e.j,[`_bT`,t===`new`&&`_bS`]),R(e.j,`aria-current`,t===`new`?`page`:void 0),I(e.k,[`_bT`,t===`all`&&`_bS`]),R(e.k,`aria-current`,t===`all`?`page`:void 0)},cE=(e,t)=>R(e.i,`href`,t),lE=(e,t)=>R(e.j,`href`,t),uE=(e,t)=>R(e.k,`href`,t),dE=le,fE=(e=>`/${e}&`)(je);function pE(e){xe(e.a,Ie)}var mE=(e,t)=>Me(e.a,t),hE=(e,t)=>fe(e.a,t),gE=(e=>`<label>${e}<input type=search placeholder="Filter files…" aria-label="Filter files"></label>`)(dE),_E=(e=>` D/${e}& l`)(fE),vE=S(16,e=>re(e,`c`,e.n,ME(e))),yE=L(13,vE),bE=L(14),xE=S(12,e=>{yE(e,(e.l??e.j)||``),bE(e,NE(e))}),SE=te(9,xE),CE=S(7,e=>SE(e,e.f,e.g)),wE=L(5,CE),TE=L(6,CE),EE=N(`v5`,e=>{{let t=e.l;if(t!==null){let n=setTimeout(()=>{DE(e,null),SE(e,t)},150);ie(e,0).onabort=()=>clearTimeout(n)}}}),DE=D(11,e=>{ae(e,0),xE(e),EE(e)}),OE=L(15,vE),kE=N(`v4`,e=>{oe(e,`c`),H(e.c,`keydown`,function(t){t.key===`Enter`&&(e.o(),e.i&&(t.preventDefault(),e.i())),t.key===`Escape`&&(e.n?(t.preventDefault(),e.p(``)):e.i&&(t.preventDefault(),e.i()))}),H(e.c,`blur`,function(){e.l!==null&&e.o()})});function AE(t){I(t.a,[`_bC`,`_oO`]),pE(t.b),mE(t.b,14),hE(t.b,`_bD`),I(t.c,[`_bE`,e]),ee(t,FE(t)),DE(t,null),OE(t,PE(t)),kE(t)}var jE=L(8),ME=e=>function(t){e.p(t)},NE=e=>()=>{let t=e.l??e.j??``;DE(e,null),SE(e,t)},PE=e=>t=>{if(!t){DE(e,null),SE(e,``);return}DE(e,t)},FE=e=>()=>{e.c.focus(),e.c.select()};P.v2=ME,P.v0=NE,P.v1=PE,P.v3=FE;var IE=`<!><!><!>`,LE=T(0,0,e=>F(e.c,en(e._.d))),RE=e=>{LE._(e),zE._(e),I(e.a,`_oI`),I(e.b,`_oJ`),I(e.d,`_oK`)},zE=T(0,0,e=>F(e.e,en(e._.e))),BE=j(0,`<span><span>+<!></span><span>−<!></span></span>`,` D Db%l Db%`,RE),VE=S(5,e=>BE(e,e.d||e.e?0:1)),HE=L(3,e=>{VE(e),LE(e)}),UE=L(4,e=>{VE(e),zE(e)}),WE=(e=>`<div>${e}<div><span> </span><!><!></div></div>`)(gE),GE=(e=>` D0${e}& D D l%b%m`)(_E),KE=N(`z3`,e=>H(e.a,`click`,function(){QE(e._,``)})),qE=e=>{I(e.a,`_nD`),KE(e)},JE=T(6,0,e=>HE(e.a,e._.r)),YE=e=>{JE._(e),XE._(e)},XE=T(6,0,e=>UE(e.a,e._.s??0)),ZE=x(24),QE=te(19,e=>wE(e.b,e.t)),$E=S(12,e=>QE(e,e.k,e.l)),eD=L(10,$E),tD=L(11,$E),nD=j(7,`<button type=button>Clear</button>`,` `,qE),rD=(e,t)=>F(e.f,t),iD=S(22,e=>rD(e,`${e.v>0?`${en(e.o)} of `:``}${en(e.n)} ${e.n===1?`file`:`files`}`),2),aD=L(21,e=>{nD(e,e.v>0?0:1),iD(e)}),oD=S(15,e=>aD(e,e.n-e.o)),sD=L(13,e=>{oD(e),iD(e)}),cD=L(14,e=>{oD(e),iD(e)});function lD(e){I(e.a,`_nA`),k(e,1,uD),AE(e.b),TE(e.b,gD(e)),I(e.d,`_nB`),I(e.e,`_nC`),ee(e,hD(e))}var uD=O(`z2`,L(24)),dD=(e,t)=>jE(e.b,t),fD=j(6,(e=>`<!>${e}<!>`)(IE),(e=>`b/${e}&b`)(`b%c`),YE),pD=L(17,e=>{fD(e,+(e.r==null)),JE(e)}),mD=L(18,XE),hD=e=>()=>ZE(e)(),gD=e=>t=>{QE(e,t)};P.z1=hD,P.z0=gD;var _D=((e,t)=>`<button type=button aria-haspopup=dialog>${e}<!></button><div popover=auto role=dialog aria-label="Filter files">${t}</div>`)(dE,WE),vD=((e,t)=>` D/${e}&%l D0${t}&l`)(fE,GE),yD=T(2,0,e=>F(e.b,e._.t>99?`99+`:en(e._.t))),bD=e=>{yD._(e),I(e.a,`_nn`)},xD=x(23),SD=te(16,e=>{I(e.a,[u,`_nl`,{_nm:!!e.q?.trim()}]),eD(e.e,e.q)}),CD=S(10,e=>SD(e,e.i,e.j)),wD=L(8,CD),TD=L(9,CD),ED=(e,t)=>{R(e.a,`aria-controls`,t),R(e.d,`id`,t)},DD=D(22),OD=N(`y3`,e=>{H(e.a,`pointerdown`,function(){DD(e,e.d.matches(`:popover-open`))}),H(e.a,`click`,function(){let t=e.d,n=e.w||t.matches(`:popover-open`);if(DD(e,!1),n){t.hidePopover();return}if(e.h.sheet&&de()){e.h.sheet();return}e.h.onOpen?.(),t.showPopover(),Je(t,e.a.getBoundingClientRect()),xD(e)()})});function kD(e){pE(e.b),mE(e.b,14),hE(e.b),I(e.d,v),k(e,4,zD),lD(e.e),tD(e.e,HD(e)),dD(e.e,VD(e)),ED(e,A(e)),DD(e,!1),OD(e)}var AD=j(2,`<span aria-hidden=true> </span>`,` D `,bD),jD=(e,t)=>{R(e.a,`title`,`Filter files\n${t}`),R(e.a,`aria-label`,`Filter files: ${t}`)},MD=S(20,e=>jD(e,`${e.t>0?`${en(e.m)} of `:``}${en(e.l)} ${e.l===1?`file`:`files`}`+(e.o==null?``:` · +${en(e.o)} −${en(e.p??0)}`)),4),ND=L(19,e=>{AD(e,e.t>0?0:1),MD(e),yD(e)}),PD=S(13,e=>ND(e,e.l-e.m)),FD=L(11,e=>{sD(e.e,e.l),PD(e),MD(e)}),ID=L(12,e=>{cD(e.e,e.m),PD(e),MD(e)}),LD=L(14,e=>{pD(e.e,e.o),MD(e)}),RD=L(15,e=>{mD(e.e,e.p),MD(e)}),zD=O(`y2`,L(23)),BD=L(7,e=>{wD(e,e.h.filter),TD(e,e.h.filterChange),FD(e,e.h.total),ID(e,e.h.shown),LD(e,e.h.additions),RD(e,e.h.deletions)}),VD=e=>function(){e.d.hidePopover(),e.a.focus()},HD=e=>t=>{SD(e,t)};P.y1=VD,P.y0=HD;var UD=`<!><!><!>`,WD=T(0,0,e=>{R(e.a,`aria-label`,GT(e._.d)),R(e.a,`title`,GT(e._.d))}),GD=j(0,(e=>`<span role=img>${e}</span>`)(lt),(e=>` D/${e}&l`)(qe),e=>{WD._(e),I(e.a,`_oQ`),tt(e.b),Ye(e.b,12),Xe(e.b)}),KD=L(3,e=>{GD(e,+!e.d),WD(e)}),qD=(e=>` D%b%b%b/${e}&l`)(`b%c`),JD=(e=>`<button type=button><!><!><!>${e}</button>`)(UD),YD=(e=>` D%b D l%b/${e}&l`)(`b%c`),XD=(e=>`<button type=button><!><span> </span><!>${e}</button>`)(UD),ZD=`<div><!><div role=group aria-label=Sections><button type=button data-pick>All</button><!></div><!><div popover=auto role=dialog title></div></div>`,QD=` D%b D b%l%b l`,$D=200,eO=250;function tO(e,t){return t&&e.startsWith(`${t}.`)?e.slice(t.length+1):e}function nO(e){let t=[];for(let n of e){let e=n.repo.stack?.bottom??n.id,r=t.at(-1);r?.stack&&n.repo.stack&&r.root===e?r.sections.push(n):t.push({root:e,stack:!!n.repo.stack,sections:[n]})}return t}function rO(e,t){let n=[],r=new Map;for(let i of e){let e=i.sections.at(-1).group;if(!e||t&&i.sections.includes(t)){n.push({kind:`run`,key:i.root,run:i});continue}let a=r.get(e);if(a){a.runs.push(i),a.sections.push(...i.sections);continue}let o={kind:`group`,key:`group:${e}`,name:e,runs:[i],sections:[...i.sections]};r.set(e,o),n.push(o)}return n}var iO=32,aO=V(84,e=>I(e.a,[o[It(e._._.n)],`_oH`]),e=>e._._,`U19`),oO=e=>{aO(e),sO(e)},sO=V(85,e=>F(e.b,e._._.o),e=>e._._,`U20`),cO=V(78,e=>F(e.a,e._._.i),e=>e._._,`U23`),lO=cO,uO=e=>{I(e.a,[`_om`,`_on`]),F(e.b,e._._.M)},dO=T(1,0,e=>F(e.b,e._.r)),fO=e=>{dO._(e),I(e.a,`_oD`)},pO=T(4,0,e=>I(e.a,[o[It(e._.n)],`_oH`])),mO=e=>{pO._(e),hO._(e)},hO=T(4,0,e=>F(e.b,e._.o)),gO=V(72,e=>F(e.b,e._._.a2),e=>e._._,`U10`),_O=e=>{gO(e),I(e.a,`_oA`)},vO=T(3,0,e=>I(e.a,[o[It(e._.s)],`_oH`])),yO=e=>{vO._(e),bO._(e)},bO=T(3,0,e=>F(e.b,e._.t)),xO=T(2,1,e=>F(e.b,e._.w)),SO=e=>{xO._(e),I(e.a,`_oG`)},CO=T(2,0,e=>F(e.b,e._.o)),wO=e=>{CO._(e),EO._(e)},TO=j(0,`<span><!>/</span>`,` D%`,_O),EO=T(2,0,e=>TO(e,+!e._.a2)),DO=T(1,0,e=>F(e.b,e._.m)),OO=e=>{DO._(e),I(e.a,`_on`)},kO=S(1,e=>fM(e.a,e._.o===e._._._.k)),AO=V(74,kO,e=>e._._._,`U32`),jO=e=>{AO(e),MO._(e),Qj._(e.a,e._._._._),tM(e.a,!0),yM(e.a)},MO=T(0,2,e=>{_M(e.a,e._.o),kO(e)}),NO=S(3,e=>Hj(e.a,e._._._.a1(e.c,e._._._.ah)),2),PO=V(56,NO,e=>e._._._),FO=e=>{PO(e),IO(e),Fj._(e.a,e._._._),Rj(e.a)},IO=V(62,NO,e=>e._._._,`U47`),LO=L(2,e=>{Kj(e.a,e.c),NO(e)}),RO=(e,t)=>Vj(e.a,t+1),zO=(e,t)=>{LO(e,t[0]),RO(e,t[1])},BO=S(4,e=>F(e.c,e._._.a2(e._._.af,e._._.ah)??e._._.ai),3),VO=V(57,BO,e=>e._._),HO=e=>{VO(e),UO(e),WO(e),GO(e),qO(e),I(e.a,`_ox`),I(e.b,`_oy`)},UO=V(61,BO,e=>e._._,`U48`),WO=V(62,BO,e=>e._._,`U49`),GO=V(63,BO,e=>e._._,`U50`),KO=w(3,(e=>`<!>${e}<!>`)(XD),(e=>`b/${e}&b`)(YD),FO,zO),qO=V(66,e=>KO(e,[e._._.aq,`id`]),e=>e._._,`U51`),JO=S(1,e=>Hj(e.a,tO(e._._._._.a1(e._.f,e._._._._.ah),e._._._._.ae)),3),YO=V(56,JO,e=>e._._._._),XO=e=>{YO(e),ZO(e),QO(e),$O._(e),Fj._(e.a,e._._._._),Vj(e.a),Rj(e.a)},ZO=V(60,JO,e=>e._._._._,`U42`),QO=V(62,JO,e=>e._._._._,`U43`),$O=T(0,1,e=>{Kj(e.a,e._.f),JO(e)}),ek=S(3,e=>Hj(e.a,tO(e._._._._._.a1(e.c,e._._._._._.ah),e._._._._._.ae)),3),tk=V(56,ek,e=>e._._._._._),nk=e=>{tk(e),rk(e),ik(e),Fj._(e.a,e._._._._._),Rj(e.a,!0)},rk=V(60,ek,e=>e._._._._._,`U37`),ik=V(62,ek,e=>e._._._._._,`U38`),ak=L(2,e=>{Kj(e.a,e.c),ek(e)}),ok=(e,t)=>Vj(e.a,t+1),sk=(e,t)=>{ak(e,t[0]),ok(e,t[1])},ck=S(4,e=>F(e.c,tO(e._._._._.a2(e._.c,e._._._._.ah)??e._._._._.ai,e._._._._.ae)),4),lk=V(57,ck,e=>e._._._._),uk=e=>{lk(e),dk(e),fk(e),pk(e),mk._(e),gk._(e),I(e.a,`_oz`),W(e.b),et(e.b,12),ct(e.b)},dk=V(60,ck,e=>e._._._._,`U39`),fk=V(62,ck,e=>e._._._._,`U40`),pk=V(63,ck,e=>e._._._._,`U41`),mk=T(0,0,ck),hk=w(3,(e=>`<!>${e}<!>`)(XD),(e=>`b/${e}&b`)(YD),nk,sk),gk=T(0,0,e=>hk(e,[e._.e,`id`])),_k=j(0,(e=>`<span>${e} </span><!><!>`)(nt),(e=>` D/${e}& l%c`)(Ze),uk,(e=>`<!>${e}<!>`)(XD),(e=>`b/${e}&b`)(YD),XO),vk=(e,t)=>_k(e,+!t),yk=(e,t)=>bk(e,t[0]),bk=L(2,e=>{vk(e,e.c?.stack),xk(e,e.c?.sections),mk(e)}),xk=L(4,e=>{Sk(e,e.e?.[0]),gk(e)}),Sk=L(5,$O),Ck=V(60,e=>F(e.c,e._._.ae),e=>e._._,`U44`),wk=e=>{Ck(e),Tk(e),Dk(e),I(e.a,`_ox`),I(e.b,`_oy`)},Tk=V(64,e=>{F(e.d,e._._.ao),F(e.e,e._._.ao===1?`branch`:`branches`)},e=>e._._,`U45`),Ek=w(5,`<!><!><!>`,`b%`,0,yk),Dk=V(65,e=>Ek(e,[e._._.ap,`root`]),e=>e._._,`U46`),Ok=j(0,`<span><span> </span><!> <!></span><!><!>`,` D D l%c%l%`,wk,`<span><span> </span> merges top to bottom</span><!><!>`,` D D m%`,HO),kk=T(6,0,e=>Ok(e,e._.ad===`group`?0:1)),Ak=kk,jk=S(6,e=>F(e.d,tO(e._._._._._.a1(e._.h,e._._._._.k),e._._.i)),3),Mk=V(56,jk,e=>e._._._._._),Nk=e=>{Mk(e),Pk(e),Ik(e),Lk._(e),zk._(e),Bk._(e),I(e.a,`_oA`)},Pk=V(74,jk,e=>e._._._._,`U21`),Fk=S(5,e=>F(e.c,e._.r?`${tO(e._.r,e._._.i)}/`:``)),Ik=V(78,e=>{F(e.b,e._._.i),Fk(e),jk(e)},e=>e._._,`U22`),Lk=T(1,0,jk),Rk=j(4,`<span>#<!></span>`,` Db%`,oO),zk=T(1,0,e=>Rk(e,+!e._.n)),Bk=T(1,0,Fk),Vk=N(`U36`,e=>H(e.a,`click`,function(){e._.x(1)})),Hk=e=>{I(e.a,[`_oe`,`_og`]),_t(e.b),xt(e.b,12),Ft(e.b),Vk(e)},Uk=N(`U17`,e=>H(e.a,`click`,function(){e._.x(-1)})),Wk=e=>{I(e.a,[`_oe`,`_of`]),_t(e.b),xt(e.b,12),Ft(e.b,`_oh`),Uk(e)},Gk=S(14,e=>I(e.a,[`_op`,{_oq:e.n===e._._._._.k}])),Kk=V(53,Gk,e=>e._._._._,`U29`),qk=N(`U28`,e=>{H(e.c,`mouseenter`,function(t,n){e._._._._.aj(e._.M,n.closest(`[data-stack]`)??n)}),H(e.c,`mouseleave`,function(){e._._._._.ak()}),H(e.c,`pointerdown`,function(){e._._._._.al()}),H(e.c,`click`,function(t,n){e._._._._.am(e._.M,n.closest(`[data-stack]`)??n)}),H(e.c,`keydown`,function(t,n){t.key===`ArrowDown`&&(t.preventDefault(),YM(e._._._._,null),e._._._._.am(e._.M,n.closest(`[data-stack]`)??n))})}),Jk=e=>{Kk(e),$k(e),rA(e),iA(e),oA._(e),sA._(e),Qj._(e.b,e._._._._),tM(e.b,!0),R(e.c,`data-pop`,e._.M),W(e.d),et(e.d,12),ct(e.d),qk(e)},Yk=S(12,e=>fM(e.b,e.l===e._._._.k)),Xk=S(18,e=>yM(e.b,e.l===e.j.at(-1)?void 0:e.p),2),Zk=L(11,e=>{_M(e.b,e.l),dA(e,e.l?.id),Yk(e),Xk(e)}),Qk=S(6,e=>Zk(e,e._._._._.a0(e.f))),$k=V(55,Qk,e=>e._._._._,`U30`),eA=S(16,e=>{R(e.c,`title`,`${e.p??e._._._.M} stack of ${e.k}: every layer, in the order they merge`),R(e.c,`aria-label`,`${e.p??e._._._.M} stack: ${e.k} layers`)}),tA=L(15,e=>{Xk(e),eA(e)}),nA=S(7,e=>tA(e,e._._._._.a2(e.f,e._._._.k)),2),rA=V(57,nA,e=>e._._._._),iA=V(74,e=>{nA(e),Yk(e)},e=>e._._._,`U31`),aA=L(5,e=>{cA(e,e.f?.root),lA(e,e.f?.sections),Qk(e),nA(e)}),oA=T(0,1,e=>aA(e,e._.k)),sA=T(0,1,e=>{I(e.c,[`_or`,{_os:e._.p}]),R(e.c,`aria-expanded`,e._.p?`true`:`false`)}),cA=(e,t)=>R(e.a,`data-stack`,t),lA=L(9,e=>{uA(e,e.j?.length),Xk(e)}),uA=L(10,e=>{F(e.e,e.k),eA(e)}),dA=L(13,Gk),fA=S(9,e=>I(e.a,[`_oj`,`_oo`,`_ot`,{_oF:!!e.h?.repo.unpushed,_oi:!!e.h&&e.h?.id===e._._._._.k,_ou:e._.p}]),2),pA=V(53,fA,e=>e._._._._,`U25`),mA=N(`U24`,e=>{H(e.a,`mouseenter`,function(t,n){e._._._._.aj(e._.M,n)}),H(e.a,`mouseleave`,function(){e._._._._.ak()}),H(e.a,`pointerdown`,function(){e._._._._.al()}),H(e.a,`click`,function(t,n){e._._._._.am(e._.M,n)}),H(e.a,`keydown`,function(t,n){t.key===`ArrowDown`&&(t.preventDefault(),YM(e._._._._,null),e._._._._.am(e._.M,n))})}),hA=e=>{pA(e),wA(e),TA(e),EA(e),DA._(e),OA._(e),AA._(e),jA._(e),MA._(e),R(e.a,`data-pop`,e._.M),I(e.c,`_ov`),dt(e.d),ut(e.d,12),pt(e.d),mA(e)},gA=j(1,`<span><span><!>.<!></span> </span><!><!>`,`D D%c%l l%`,Nk,`<span> </span>`,`D `,lO),_A=L(17,Bk),vA=S(16,e=>_A(e,e.p?.stack&&e.h!==(e.p?.sections).at(-1)?e._._._._.a2(e.p,e._._._.k):void 0),3),yA=L(15,vA),bA=S(8,e=>yA(e,e.h&&e._.h.find(t=>t.sections.includes(e.h)))),xA=S(10,e=>R(e.a,`title`,`${e._.i}: ${e._.j} ${e._.j===1?`branch`:`branches`}${e.h?`\n${KT(e.h?.repo)??``}`:``}`),2),SA=L(7,e=>{PA(e,e.h?.repo?.pr),IA(e,e.h?.id),gA(e,+!e.h),bA(e),vA(e),fA(e),xA(e),Lk(e)}),CA=S(5,e=>SA(e,e._._._._.z(e._.g))),wA=V(54,CA,e=>e._._._._,`U26`),TA=V(57,vA,e=>e._._._._),EA=V(74,vA,e=>e._._._,`U27`),DA=T(0,0,CA),OA=T(0,0,bA),kA=S(6,e=>R(e.a,`aria-label`,`${e._.i} group: ${e._.j} branches`)),AA=T(0,0,e=>{xA(e),kA(e)}),jA=T(0,0,e=>{F(e.e,e._.j),xA(e),kA(e)}),MA=T(0,0,e=>{R(e.a,`aria-expanded`,e._.p?`true`:`false`),fA(e)}),NA=B(aO),PA=L(13,e=>{FA(e,e.n?.number),zk(e),NA(e)}),FA=L(14,B(sO)),IA=(e,t)=>R(e.a,`data-pick`,t),LA=L(15,e=>{MA(e),sA(e)}),RA=V(58,e=>LA(e,e._._._.a5===e.M),e=>e._._._,`U33`),zA=RA,BA=j(0,(e=>`<button type=button aria-haspopup=dialog><!><span>${e} </span></button>`)(st),(e=>` D%b D/${e}& m`)(it),hA,((e,t)=>`<span>${e}<button type=button aria-haspopup=dialog>${t} </button></span>`)(JD,nt),((e,t)=>` D/${e}& D/${t}& m`)(qD,Ze),Jk,(e=>`<!>${e}<!>`)(JD),(e=>`b/${e}&b`)(qD),jO),VA=S(12,e=>BA(e,e.f===`group`?0:e.l?1:2)),HA=L(5,VA),UA=L(11,VA),WA=(e,t)=>{HA(e,t[0]?.kind),GA(e,t[0]?.sections),qA(e,t[0]?.runs),YA(e,t[0]?.name),XA(e,t[0]?.run)},GA=L(6,e=>{KA(e,e.g?.length),DA(e)}),KA=L(9,jA),qA=L(7,OA),JA=B(Ik,cO),YA=L(8,e=>{AA(e),JA(e)}),XA=L(10,e=>{UA(e,e.k?.stack),ZA(e,e.k?.sections?.[0]),oA(e)}),ZA=L(14,MO),QA=S(3,e=>I(e.a,[`_ok`,{_ol:e._.d.some(t=>t.id===e._._.k)}])),$A=V(53,QA,e=>e._._,`U34`),ej=e=>{$A(e),aj(e),oj._(e),sj._(e),lj._(e),dj._(e),fj._(e)},tj=j(1,`<span> </span>`,` D `,uO),nj=S(10,e=>tj(e,!e._.k||e.j!==e._.k?0:1)),rj=L(9,nj),ij=S(8,e=>rj(e,e.g===`run`?e.h.stack?e._._.a0(e.h):e.h.sections[0]:void 0),2),aj=V(55,ij,e=>e._._,`U35`),oj=T(0,1,QA),sj=T(0,1,e=>R(e.a,`aria-label`,`${e._.M}: ${e._.e} sections`)),cj=w(2,`<!><!><!>`,`b%`,zA,WA),lj=T(0,1,e=>cj(e,[e._.i,`key`])),uj=(e,t)=>{pj(e,t?.kind),mj(e,t?.run)},dj=T(0,1,e=>uj(e,e._.j)),fj=T(0,1,nj),pj=L(6,ij),mj=L(7,ij),hj=S(2,e=>I(e.a,[`_ok`,{_ol:e._.g===e._._.k}])),gj=V(53,hj,e=>e._._,`U18`),_j=e=>{gj(e),vj._(e),yj._(e),Qj._(e.b,e._._),fM(e.b,!0),tM(e.b,!0),yM(e.b)},vj=T(0,0,e=>_M(e.b,e._.f)),yj=T(0,0,hj),bj=j(0,(e=>`<span>${e}</span>`)(JD),(e=>` D/${e}&l`)(qD),_j,`<span role=group><!><!></span>`,` D%b%`,ej),xj=L(4,e=>{bj(e,e.e===1?0:1),sj(e)}),Sj=(e,t)=>{Cj(e,t[0]?.sections),Ej(e,t[0]?.items),kj(e,t[0]?.main)},Cj=L(3,e=>{xj(e,e.d?.length),wj(e,e.d?.[0]),oj(e)}),wj=L(5,e=>{Tj(e,e.f?.id),vj(e)}),Tj=L(6,yj),Ej=L(8,e=>{Dj(e,e.i?.[0]),lj(e)}),Dj=L(9,dj),Oj=B(EA,iA,Pk,AO),kj=L(10,e=>{fj(e),Oj(e)}),Aj=S(20,e=>I(e.a,[`_oB`,{_oC:e.s,_oF:!!e.m,_oi:e.t}]),2),jj=L(19,e=>{R(e.a,`aria-current`,e.t?`true`:void 0),Aj(e)}),Mj=S(10,e=>jj(e,e._.k===e.j)),Nj=V(53,Mj,0,`U16`),Pj=N(`U15`,e=>H(e.a,`click`,function(){e._.l(e.j),e._.g.hidePopover()})),Fj=ne(e=>{Nj(e),I(e.c,`_oE`),Pj(e)}),Ij=L(9,Mj),Lj=L(12,Aj),Rj=L(18,Aj),zj=(e,t)=>{R(e.a,`title`,[KT(t),t?.pr?.title].filter(Boolean).join(`
329
+ `)),Lj(e,t?.unpushed),Wj(e,t?.pr),Gj(e,t?.edits)},Bj=j(1,`<span> </span>`,` D `,fO),Vj=L(17,e=>{Bj(e,+!e.r),dO(e)}),Hj=(e,t)=>F(e.d,t),Uj=j(4,`<span>#<!></span>`,` Db%`,mO),Wj=L(13,e=>{qj(e,e.n?.number),Uj(e,+!e.n),pO(e)}),Gj=(e,t)=>KD(e.f,t),Kj=(e,t)=>{Ij(e,t?.id),zj(e,t?.repo)},qj=L(14,hO),Jj=S(27,e=>I(e.a,[`_oj`,{_oF:!!e.j,_oo:e.a0,_oi:e._.k===e.k}]),3),Yj=S(11,e=>R(e.a,`aria-pressed`,e._.k===e.k?`true`:`false`)),Xj=V(53,e=>{Jj(e),Yj(e)},0,`U13`),Zj=N(`U12`,e=>H(e.a,`click`,function(){e._.l(e.k)})),Qj=ne(e=>{Xj(e),Zj(e)}),$j=L(9,Jj),eM=L(10,e=>{R(e.a,`data-pick`,e.k),Jj(e),Yj(e)}),tM=L(26,Jj),nM=S(21,e=>R(e.a,`title`,[`${e.i.worktree}${e.o?` · ${e.o}`:``}${e.p?`: ${en(e.p.length)} ${e.p.length===1?`file`:`files`}, +${en(e.q??0)} −${en(e.r??0)}`:``}`,e.i.pr&&`#${e.i.pr.number} ${e.i.pr.title}`,KT(e.i),e.u].filter(Boolean).join(`
330
+ `)),5),rM=L(8,e=>{$j(e,e.i?.unpushed),bM(e,e.i?.worktree),hM(e,e.i?.pr),gM(e,e.i?.edits),nM(e)}),iM=j(2,`<span><!><!></span>`,`D%b%`,wO,`<span> </span>`,` D `,SO),aM=S(23,e=>iM(e,e.o?0:e.w?1:2)),oM=L(14,e=>{nM(e),aM(e),CO(e)}),sM=L(15,nM),cM=L(16,nM),lM=L(17,nM),uM=L(20,nM),dM=j(1,`<span> </span>`,` D `,OO),fM=(e,t)=>dM(e,+!t),pM=L(22,e=>{aM(e),xO(e)}),mM=j(3,`<span>#<!></span>`,` Db%`,yO),hM=L(18,e=>{xM(e,e.s?.number),mM(e,+!e.s),vO(e)}),gM=(e,t)=>KD(e.e,t),_M=(e,t)=>{rM(e,t?.repo),eM(e,t?.id),SM(e,t?.compare),sM(e,t?.files),cM(e,t?.additions),lM(e,t?.deletions)},vM=B(gO),yM=L(28,e=>{EO(e),vM(e)}),bM=L(12,DO),xM=L(19,bO),SM=(e,t)=>{oM(e,t?.topic),uM(e,t?.title),pM(e,t?.head)},CM=D(15,e=>{R(e.c,`title`,Ct(`prevSection`,e.p)||Ct(`nextSection`,e.p)?`Sections (${[Ct(`prevSection`,e.p),Ct(`nextSection`,e.p)].filter(Boolean).join(` / `)})`:`Sections`)}),wM=j(1,(e=>`<button type=button tabindex=-1 aria-hidden=true title="More sections">${e}</button>`)(Pt),(e=>` D/${e}&l`)(St),Wk),TM=S(20,e=>I(e.c,[`_ob`,{_oc:e.s,_od:e.t}])),EM=D(18,e=>{wM(e,+!e.s),TM(e)}),DM=j(5,(e=>`<button type=button tabindex=-1 aria-hidden=true title="More sections">${e}</button>`)(Pt),(e=>` D/${e}&l`)(St),Hk),OM=D(19,e=>{DM(e,+!e.t),TM(e)}),kM=N(`U52`,e=>{{let t=e.o>0,n=e.k??``,r=requestAnimationFrame(()=>{t&&e.v();let r=e.c,i=r.querySelector(`[data-pick="${CSS.escape(n)}"]`);if(!i)return;let a=i.offsetLeft,o=a+i.offsetWidth,s=r.scrollLeft;if(a<s+iO||o>s+r.clientWidth-iO){let e=r.scrollWidth-r.clientWidth,t=a+i.offsetWidth/2-r.clientWidth/2;r.scrollTo({left:Math.max(0,Math.min(e,t)),behavior:r.dataset.placed?`smooth`:`instant`})}r.dataset.placed=`1`});ie(e,2).addEventListener(`abort`,()=>cancelAnimationFrame(r))}}),AM=S(22,e=>{ae(e,2),kM(e)},2),jM=N(`U53`,e=>M(e,{onMount:function(){let t=e.c,n=new ResizeObserver(()=>e.v());return n.observe(t),t.addEventListener(`wheel`,e=>{Math.abs(e.deltaX)>Math.abs(e.deltaY)||t.scrollWidth<=t.clientWidth||(e.preventDefault(),t.scrollLeft+=e.deltaY)},{passive:!1}),e.v(),{ro:n}},onDestroy:function(){this.ro.disconnect()}})),MM=L(21,e=>{AM(e),jM(e)}),NM=L(23),PM=L(27),FM=S(36,e=>R(e.g,`aria-label`,e.a9?(e.a9?.item).kind===`group`?`${(e.a9?.item).name} group`:`${e.a2((e.a9?.item).run,(e.a9?.g).main)??(e.a9?.g).worktree} stack`:void 0)),IM=L(28,FM),LM=L(47),RM=j(6,`<!><!><!>`,`b%`,Ak),zM=N(`U54`,e=>{{let t=e.g;if(e.a3&&e.a9){let n=!t.matches(`:popover-open`);n&&t.showPopover(),Je(t,(e.a3?.chip).getBoundingClientRect()),n&&e.a3?.via===`click`&&(t.querySelector(`[aria-current="true"]`)??t.querySelector(`button`))?.focus()}else t.matches(`:popover-open`)&&t.hidePopover()}}),BM=S(37,zM),VM=L(35,e=>{lN(e,e.a9?.item?.kind),uN(e,e.a9?.item?.name),fN(e,e.a9?.item?.run),mN(e,e.a9?.item?.sections?.length),hN(e,e.a9?.item?.runs),gN(e,e.a9?.g?.main),_N(e,e.a9?.g?.worktree),RM(e,+!e.a9),BM(e),FM(e)}),HM=S(30,e=>VM(e,(()=>{if(e.a3){for(let t of e.y)for(let n of t.items)if(n.key===e.a3?.key)return{g:t,item:n}}})())),UM=L(45),WM=e=>{UM(e,DN(e))},GM=D(29,e=>{oN(e,e.a3?.key),cN(e,e.a3?.via),LM(e,EN(e)),HM(e),WM(e),BM(e)}),KM=N(`U55`,e=>{{let t=e.a7;if(t){let n=setTimeout(()=>{qM(e,null),GM(e,t.pop)},t.pop?$D:eO);ie(e,1).addEventListener(`abort`,()=>clearTimeout(n))}}}),qM=D(33,e=>{ae(e,1),KM(e)}),JM=L(48),YM=D(34,e=>JM(e,ON(e))),XM=N(`U56`,e=>{CM(e,yt()),gt(()=>{CM(e,yt())},ie(e,0)),H(e.c,`scroll`,function(){e.v()}),H(e.d,`click`,function(){e.l(null)}),H(e.g,`mouseenter`,function(){e.a7&&!e.a7?.pop&&qM(e,null)}),H(e.g,`mouseleave`,function(){e.ak()}),H(e.g,`toggle`,function(t){t.newState===`closed`&&(document.activeElement===document.body&&e.a3&&document.querySelector(`[data-pop="${CSS.escape(e.a3?.key)}"]`)?.focus(),qM(e,null),GM(e,null))}),H(e.g,`keydown`,function(e,t){if(e.key!==`ArrowDown`&&e.key!==`ArrowUp`)return;e.preventDefault();let n=[...t.querySelectorAll(`button`)],r=n.indexOf(document.activeElement);n[((e.key===`ArrowDown`?r+1:r-1)+n.length)%n.length]?.focus()})});function ZM(e){ae(e,0),I(e.g,[`_bN`,`_ow`]),CM(e,0),EM(e,!1),OM(e,!1),MM(e,SN(e)),NM(e,CN(e)),PM(e,wN),IM(e,TN),GM(e,null),qM(e,null),YM(e,null),XM(e)}var QM=w(4,`<!><!><!>`,`b%`,0,Sj),$M=L(24,e=>{QM(e,[e.y,`worktree`]),HM(e)}),eN=(e,t)=>{bN(e,t?.length),$M(e,(()=>{let e=[];for(let n of t){let t=e.find(e=>e.worktree===n.repo.worktree);t||e.push(t={worktree:n.repo.worktree,sections:[],items:[]}),t.sections.push(n),!t.main&&!n.compare?.topic&&!n.compare?.head&&(t.main=n)}for(let t of e)t.items=rO(nO(t.sections),t.main);return e})())},tN=L(26,B(aj,$k)),nN=B(wA),rN=L(25,e=>{tN(e,kN(e)),nN(e)}),iN=B(Xj,Nj,gj,$A,pA,Kk),aN=L(10,e=>{I(e.d,[`_oj`,{_oi:!e.k}]),R(e.d,`aria-pressed`,e.k?`false`:`true`),rN(e,AN(e)),AM(e),iN(e)}),oN=L(31,B(RA)),sN=L(46),cN=L(32,e=>sN(e,jN(e))),lN=L(39,kk),uN=L(40,B(Ck,dk,rk,ZO)),dN=B(UO),fN=L(41,e=>{pN(e,e.af?.sections),dN(e)}),pN=L(52,B(qO)),mN=L(50,B(Tk)),hN=L(51,B(Dk)),gN=L(43,B(fk,ik,QO,WO,IO)),_N=L(44,B(pk,GO)),vN=(e,t)=>I(e.a,[`_oa`,t]),yN=(e,t)=>R(e.d,`title`,t==null?`Every section`:`Every section: ${en(t)} ${t===1?`file`:`files`}`),bN=L(14,AM),xN=L(11),SN=e=>()=>{let t=e.c;EM(e,t.scrollLeft>1),OM(e,t.scrollLeft+t.clientWidth<t.scrollWidth-1)},CN=e=>t=>{let n=e.c;n.scrollBy({left:t*n.clientWidth*.8,behavior:`smooth`})};function wN(e,t){return e===t?e.repo.worktree:e.compare?.topic||e.compare?.head||e.repo.worktree}function TN(e,t){let n=e.sections.at(-1);return n===t?void 0:n.compare?.topic||n.compare?.head}var EN=e=>()=>{YM(e,e.a3&&e.g.matches(`:popover-open`)?{key:e.a3?.key,via:e.a3?.via}:null)},DN=e=>(t,n)=>{e.a6!==`click`&&qM(e,e.a5===t?null:{pop:{key:t,chip:n,via:`hover`}})},ON=e=>(t,n)=>{let r=e.a8;if(YM(e,null),qM(e,null),r?.key===t&&r.via===`click`){e.g.hidePopover();return}GM(e,{key:t,chip:n,via:`click`})},kN=e=>t=>e.z(t.sections)??t.sections.find(e=>e.repo.nextToLand)??t.sections[0],AN=e=>t=>t.find(t=>t.id===e.k),jN=e=>()=>{qM(e,e.a6===`hover`?{pop:null}:null)};P.U0=SN,P.U1=CN,P.U4=wN,P.U5=TN,P.U8=EN,P.U6=DN,P.U9=ON,P.U3=kN,P.U2=AN,P.U7=jN;var MN=le,NN=(e=>`/${e}&`)(je);function PN(e){xe(e.a,_e)}var FN=(e,t)=>Me(e.a,t),IN=(e,t)=>fe(e.a,t),LN=((e,t,n)=>`<div><div role=group><button type=button><span aria-hidden=true>${e}<span> </span></span><!></button><button type=button aria-label="Send options" aria-haspopup=menu></button></div><span>${t} No comments</span></div><div popover=auto role=menu><!><button type=button role=menuitem><span>${n}</span><span>Copy as markdown</span></button></div>`)(MN,MN,yn),RN=((e,t,n)=>` D D D D/${e}& D m%l l D/${t}&m D%b D D/${n}&l m`)(NN,NN,vn),zN=e=>{gn(e.a),hn(e.a,12),_n(e.a)},BN=T(7,3,e=>F(e.b,Ke(e._.a4))),VN=e=>{BN._(e),I(e.a,[`_na`,`_9`]),I(e.c,`_8`)},HN=T(7,0,e=>F(e.a,e._.a0?`Copied`:`Copy failed`)),UN=HN,WN=j(1,mn,(e=>`/${e}&`)(fn),zN),GN=V(41,e=>{R(e.a,`aria-checked`,e.M===e._._.a7?`true`:`false`),WN(e,e.M===e._._.a7?0:1)},e=>e._._,`s3`),KN=N(`s2`,e=>H(e.a,`click`,function(){sP(e._._,e.M),e._._.l.hidePopover()})),qN=e=>{GN(e),I(e.a,c),I(e.b,`_nf`),He(e.c,14),We(e.c),I(e.d,`_ng`),KN(e)},JN=(e,t)=>Ue(e.c,t),YN=(e,t)=>{F(e.e,Ke(t)),JN(e,t?.agent)},XN=w(1,(e=>`<button type=button role=menuitemradio><span></span>${e}<span> </span></button>`)(Ve),(e=>` D b/${e}& D m`)(`b%c`),qN,(e,t)=>YN(e,t[0])),ZN=T(12,0,e=>XN(e,[e._.a1,`id`])),QN=e=>{ZN._(e),I(e.a,`_nd`),I(e.c,`_nh`)},$N=L(36),eP=S(31,e=>$N(e,CP(e)),2),tP=j(7,` `,` `,UN,`Sending…`,0,0,`Copy`,0,0,`<span>Send to <!></span><span>Send</span>`,` Db%l `,VN,`Send`),nP=S(32,e=>tP(e,e.z?0:e.x?1:e.a4?e.a3>1?3:4:2),3),rP=D(23,e=>{R(e.c,`disabled`,e.x),R(e.i,`disabled`,e.x),eP(e),nP(e)}),iP=S(35,e=>R(e.c,`title`,e.u?e.a4?`Send ${e.a8} to ${Ke(e.a4)}`:`Copy ${e.a8} as markdown`:`No comments to send`),2),aP=L(30,e=>{_P(e,e.a4?.id),eP(e),iP(e),nP(e),BN(e)}),oP=S(28,e=>aP(e,e.a1.find(t=>t.id===e.y)??e.a1[0]??null)),sP=D(24,oP),cP=N(`s5`,e=>{if(e.z){let t=setTimeout(()=>{lP(e,null)},1500);ie(e,0).onabort=()=>clearTimeout(t)}}),lP=D(25,e=>{ae(e,0),fP(e,e.z?.ok),nP(e),cP(e)}),uP=N(`s4`,e=>{H(e.c,`click`,function(){e.a4?e.aa():e.ab()}),H(e.i,`click`,function(){let t=e.l;t.showPopover(),Je(t,e.b.getBoundingClientRect(),{align:`end`})}),H(e.n,`click`,function(){e.l.hidePopover(),e.ab()})});function dP(e){I(e.c,`_m8`),I(e.d,[`_N`,`_m9`]),PN(e.e),FN(e.e,18),IN(e.e,`_O`),I(e.f,[t,`_m_`]),I(e.i,`_nb`),PN(e.k),FN(e.k,16),IN(e.k),I(e.l,r),I(e.n,c),I(e.o,`_nf`),xn(e.p),bn(e.p,14),Sn(e.p),I(e.q,`_ng`),rP(e,!1),sP(e,null),lP(e,null),uP(e)}var fP=L(26,HN),pP=L(27,e=>{hP(e,e.a1.length),oP(e),ZN(e)}),mP=j(12,`<span>Send to</span><!><span role=separator></span>`,` b%b `,QN),hP=L(29,e=>{mP(e,+!e.a3),nP(e)}),gP=(e,t)=>pP(e,t||[]),_P=L(33,B(GN)),vP=L(34,e=>{R(e.b,`aria-label`,e.a8),iP(e)}),yP=L(20,e=>{I(e.a,[`_m4`,!e.u&&`_m6`]),I(e.b,[`_m3`,!e.u&&`_m5`]),R(e.b,`inert`,!e.u),F(e.g,e.u>99?`99+`:e.u),I(e.j,[`_m7`,!!e.u&&`_m5`]),vP(e,an(e.u,`comment`)),iP(e)}),bP=L(21,eP),xP=L(37),SP=L(22,e=>xP(e,wP(e))),CP=e=>()=>{(async()=>{if(e.a4&&!e.x){rP(e,!0);try{await e.v(e.a4?.id)}finally{rP(e,!1)}}})()},wP=e=>()=>{(async()=>{lP(e,{ok:await e.w()})})()};P.s0=CP,P.s1=wP;var TP=`<svg data-icon-sprite aria-hidden="true" width="0" height="0">
330
331
  <symbol id="file-tree-icon-chevron" viewBox="0 0 16 16">
331
332
  <path d="M12.4697 5.46973C12.7626 5.17684 13.2374 5.17684 13.5303 5.46973C13.8232 5.76262 13.8232 6.23738 13.5303 6.53028L8.53028 11.5303C8.23738 11.8232 7.76262 11.8232 7.46973 11.5303L2.46973 6.53028C2.17684 6.23738 2.17684 5.76262 2.46973 5.46973C2.76262 5.17684 3.23738 5.17684 3.53028 5.46973L8 9.93946L12.4697 5.46973Z" fill="currentcolor"/>
332
333
  </symbol>
@@ -343,72 +344,72 @@ diff --git`)}function mv(e,t){if(e.length===0)return[``];let n=`\n${t}`,r=e.star
343
344
  <symbol id="file-tree-icon-ellipsis" viewBox="0 0 16 16">
344
345
  <path d="M5 8.5a1.5 1.5 0 1 1-3 0 1.5 1.5 0 0 1 3 0M9.5 8.5a1.5 1.5 0 1 1-3 0 1.5 1.5 0 0 1 3 0M14 8.5a1.5 1.5 0 1 1-3 0 1.5 1.5 0 0 1 3 0" />
345
346
  </symbol>
346
- </svg>`,SP=`<symbol id="file-tree-builtin-astro" viewBox="0 0 16 16">
347
+ </svg>`,EP=`<symbol id="file-tree-builtin-astro" viewBox="0 0 16 16">
347
348
  <path fill="currentColor" d="M6.08 13.92c-.63-.57-.81-1.79-.55-2.67.45.56 1.08.73 1.73.83 1 .15 1.99.1 2.92-.37l.32-.19q.13.38.08.78a2.1 2.1 0 0 1-.9 1.5q-.3.24-.61.43c-.64.44-.81.95-.57 1.69l.02.08a1.7 1.7 0 0 1-.74-.64 2 2 0 0 1-.3-.98q0-.27-.02-.52-.07-.61-.61-.62a.7.7 0 0 0-.75.6z" class="bg" opacity=".6"/>
348
349
  <path fill="currentColor" d="M2.5 11.1s1.86-.9 3.72-.9l1.4-4.39c.05-.21.2-.36.38-.36s.33.15.38.36l1.4 4.38c2.2 0 3.72.92 3.72.92l-3.16-8.69q-.13-.4-.45-.42H6.11q-.3.02-.45.42z" class="fg"/>
349
- </symbol>`,CP=`<symbol id="file-tree-builtin-babel" viewBox="0 0 16 16">
350
+ </symbol>`,DP=`<symbol id="file-tree-builtin-babel" viewBox="0 0 16 16">
350
351
  <path fill="currentColor" fill-rule="evenodd" d="M9.49.5q1.92.05 2.66.54 1.27.6 1.35 1.52v.23a4 4 0 0 1-.53 1.9l-1.38 1.24q-.74.38-.72.63c.77.82 1.33 1.29.85 2.42q-.47 1.1-2.04 2.28c-.5.32-1.88 1.35-2.96 1.86-1.64.77-3.1 1.4-4.65 1.89-.51.16-1.5.16-1.5.16L.5 15A76 76 0 0 0 5.76 3.49q-.1-.08-.1-.2.1 0 .32-.35l-.03-.09q-1.17.39-2.38 1.3l-.13.03q0-.1-.21-.16-.46.31-.82.7l-.13-.19.16-.06-.03-.16-.34.29L2 4.5q.36-.48.72-.54l.04-.1V3.8q.16 0 .15-.06l.13-.06a6 6 0 0 0 1.13-.9v-.03H4.1l-.12.07q0-.1-.1-.1l-.15.07-.04-.1q.93-.52 1.63-1.05Q7.89.65 9.5.5M8.46 7.83l-.32.04c-1.31.54-2.31.82-2.91.88a71 71 0 0 0-2.2 4.54h.07q.58-.04 3.04-1.42.13 0 1.66-1.05L9.18 9.7v.03q.45-.2.81-1.3v-.2q-.5-.46-1.53-.4m.28-5.75c-.5.1-.75.19-.72.38l-1.16 2.6q-.17.1-.34.95-.3.48-.25.77v.1l.22.05A15 15 0 0 1 8.86 6c1.1-.71 2.12-1.38 2.8-2.54q.24-.33.21-.54-.02-.33-.4-.54c-.54 0-1.07-.34-1.63-.28l-.94-.03z" clip-rule="evenodd"/>
351
- </symbol>`,wP=`<symbol id="file-tree-builtin-bash" viewBox="0 0 16 16">
352
+ </symbol>`,OP=`<symbol id="file-tree-builtin-bash" viewBox="0 0 16 16">
352
353
  <path fill="currentColor" d="M8 1C2.24 1 1 2.24 1 8s1.24 7 7 7 7-1.24 7-7-1.24-7-7-7" class="bg" opacity=".2"/>
353
354
  <path fill="currentColor" d="M11.5 11a.5.5 0 0 1 0 1h-3a.5.5 0 0 1 0-1zM7 6.75C7 6.42 6.64 6 6 6s-1 .42-1 .75q-.01.25.22.41.26.21.89.35.74.14 1.28.53c.37.29.61.7.61 1.21 0 .87-.68 1.5-1.5 1.7v.55a.5.5 0 0 1-1 0v-.56c-.82-.18-1.5-.82-1.5-1.69a.5.5 0 0 1 1 0c0 .33.36.75 1 .75s1-.42 1-.75q.01-.25-.22-.41a2 2 0 0 0-.89-.35q-.74-.14-1.28-.53A1.5 1.5 0 0 1 4 6.75c0-.87.68-1.5 1.5-1.7V4.5a.5.5 0 0 1 1 0v.56c.82.18 1.5.82 1.5 1.69a.5.5 0 0 1-1 0" class="fg-stroke"/>
354
- </symbol>`,TP=`<symbol id="file-tree-builtin-biome" viewBox="0 0 16 16">
355
+ </symbol>`,kP=`<symbol id="file-tree-builtin-biome" viewBox="0 0 16 16">
355
356
  <path fill="currentColor" d="M8 2 4.88 7.35a7 7 0 0 1 3.7-.13l1.04.25-.99 4.16-1.05-.25a2.7 2.7 0 0 0-3.07 1.45l-.98-.47a4 4 0 0 1 1.07-1.31 3.8 3.8 0 0 1 3.23-.71l.5-2.08a6 6 0 0 0-5.07 1.12A5.9 5.9 0 0 0 1 14h14z"/>
356
- </symbol>`,EP=`<symbol id="file-tree-builtin-bootstrap" viewBox="0 0 16 16">
357
+ </symbol>`,AP=`<symbol id="file-tree-builtin-bootstrap" viewBox="0 0 16 16">
357
358
  <path fill="currentColor" fill-rule="evenodd" d="M11.72 1.5A2.5 2.5 0 0 1 14.2 4q.02 1.08.3 2.09c.22.73.56 1.24 1.08 1.45.22.08.4.27.4.5s-.18.43-.4.51q-.76.34-1.08 1.45c-.2.65-.27 1.32-.3 2a2.5 2.5 0 0 1-2.48 2.5H4.25A2.6 2.6 0 0 1 1.7 12c-.04-.85-.1-1.68-.22-2.04C1.26 9.23.92 8.7.4 8.5.18 8.42 0 8.23 0 8s.18-.42.4-.5q.77-.35 1.09-1.46c.1-.36.17-1.19.2-2.04a2.6 2.6 0 0 1 2.56-2.5z" class="bg" clip-rule="evenodd" opacity=".2"/>
358
359
  <path fill="currentColor" fill-rule="evenodd" d="M8.47 4.54c1.23 0 2.04.68 2.04 1.73 0 .73-.55 1.39-1.24 1.5v.04c.94.1 1.58.77 1.58 1.7 0 1.2-.9 1.95-2.37 1.95H5.97a.3.3 0 0 1-.2-.08.3.3 0 0 1-.08-.2V4.82a.3.3 0 0 1 .08-.2.3.3 0 0 1 .2-.08zm-1.7 6.04h1.49q1.47-.01 1.49-1.15Q9.74 8.31 8.2 8.3H6.77zm0-5.16v2.06h1.21c.93 0 1.45-.38 1.45-1.06 0-.65-.44-1-1.22-1z" class="fg" clip-rule="evenodd"/>
359
- </symbol>`,DP=`<symbol id="file-tree-builtin-browserslist" viewBox="0 0 16 16">
360
+ </symbol>`,jP=`<symbol id="file-tree-builtin-browserslist" viewBox="0 0 16 16">
360
361
  <path fill="currentColor" d="M8.88 6.96c0 3.82 3.72 4.7 5.7 3.74-.23.9-1.04 1.67-2.35 1.93-.02.4.42 1.28.82 1.63-.9.35-1.94-.12-2.51-.48a5 5 0 0 0-.32 1.87c-.68 0-1.57-1-1.8-1.37-.3.18-.85 1.15-.96 1.72a2.4 2.4 0 0 1-.81-.86 2.4 2.4 0 0 1-.3-1.15c-.38.27-1.48.95-1.99 1.18-.25-.58-.15-1.3 0-2.06-.21.12-1.8.27-2.43.12.32-.36.75-1.19.94-1.57A4.5 4.5 0 0 1 .44 10.6c.48-.22.97-.53 1.49-1.06C1.26 9.17.24 8.64 0 7.7a6 6 0 0 0 1.79-.32C1.28 7.08.44 6.15.6 5.01c.42.21 1.3.37 1.73.3a3.4 3.4 0 0 1-.25-2.75 5 5 0 0 0 1.48 1c-.08-.8.3-2.31.8-2.71.2.46.73 1.21 1.08 1.4.09-.61.87-2.06 1.57-2.25 0 .5.27 1.4.5 1.67.51-.54 2.25-1.44 3.64-1.13-.43.45-.75.61-.86.98 1.05 0 2.78.34 4.27 1.93-2.34-.89-5.69.56-5.69 3.5" class="bg" opacity=".5"/>
361
362
  <path fill="currentColor" d="M11.21 3.59a4.1 4.1 0 0 0 2.47 2.89c.24-.22.61-.38.95-.19.76.44.2 1.26-.34 1.66l-.07.06a13 13 0 0 1-4.49 1.61l-.3-.43a10.5 10.5 0 0 0 4.13-1.31 1 1 0 0 0 .23-.25.5.5 0 0 0-.21-.69l-.15-.06a4.5 4.5 0 0 1-1.77-1.31 4.5 4.5 0 0 1-.88-1.77q.2-.12.43-.21"/>
362
363
  <path fill="currentColor" d="M10.36 5.18a.4.4 0 0 0-.03.38c.09.2.3.3.46.23s.24-.3.15-.5l-.01-.02q.23.13.34.39a.83.83 0 0 1-.43 1.08.8.8 0 0 1-1.08-.43.83.83 0 0 1 .6-1.13"/>
363
- </symbol>`,OP=`<symbol id="file-tree-builtin-bun" viewBox="0 0 16 16">
364
+ </symbol>`,MP=`<symbol id="file-tree-builtin-bun" viewBox="0 0 16 16">
364
365
  <path fill="currentColor" d="M8 14c3.87 0 7-2.46 7-5.49 0-1.88-1.2-3.53-3.04-4.52q-1.1-.61-1.84-1.07C9.2 2.35 8.64 2 8 2s-1.36.45-2.31 1.03A29 29 0 0 1 4.04 4C2.2 4.98 1 6.63 1 8.51 1 11.54 4.13 14 8 14M7.18 3.88q.3-.66.3-1.37c0-.08.11-.1.13-.01.38 1.57-.53 2.35-1.2 2.61-.08.03-.12-.07-.06-.12a3 3 0 0 0 .83-1.12m1.2-.05a3 3 0 0 0-.45-1.3V2.5c-.04-.07.05-.15.1-.1 1.15 1.2.77 2.3.33 2.87-.05.05-.13 0-.11-.08q.21-.67.13-1.37m1.04-.32a3 3 0 0 0-.94-1.02v-.01c-.06-.05-.01-.16.07-.12 1.51.61 1.61 1.8 1.43 2.5l-.03.03a.07.07 0 0 1-.1-.06 3 3 0 0 0-.43-1.32m-2.97.32c-.36.3-.74.43-1.2.56q-.11 0-.1-.1a3.5 3.5 0 0 0 1.76-1.57s.09-.07.1.04c0 .18-.2.76-.56 1.07m2.89 6.36q-.13.52-.55.88a1.3 1.3 0 0 1-.75.35 1.3 1.3 0 0 1-.77-.35 1.7 1.7 0 0 1-.54-.88.13.13 0 0 1 .15-.15h2.31a.14.14 0 0 1 .15.15M6.15 8.95a1.1 1.1 0 0 1-1.39-.14A1.1 1.1 0 0 1 5.12 7a1.1 1.1 0 0 1 1.2.25 1.1 1.1 0 0 1-.17 1.69m4.96 0a1.1 1.1 0 0 1-1.4-.14 1.1 1.1 0 0 1 .37-1.8 1.1 1.1 0 0 1 1.2.25 1.1 1.1 0 0 1 .24 1.2 1 1 0 0 1-.41.5"/>
365
- </symbol>`,kP=`<symbol id="file-tree-builtin-c" viewBox="0 0 16 16">
366
+ </symbol>`,NP=`<symbol id="file-tree-builtin-c" viewBox="0 0 16 16">
366
367
  <path fill="currentColor" fill-rule="evenodd" d="M8 1q.084 0 .166.021.098.023.186.075c1.055.624 4.22 2.486 5.277 3.11.085.05.15.112.209.192h-.002l.028.037a.5.5 0 0 1 .103.21q.031.102.033.21v6.29a.71.71 0 0 1-.347.616l-5.307 3.144a.68.68 0 0 1-.693 0l-5.307-3.144A.72.72 0 0 1 2 11.145V4.832a.71.71 0 0 1 .346-.612l5.288-3.126A.7.7 0 0 1 7.992 1zm2.901 4.349a3.75 3.75 0 1 0 0 5.302l-1.06-1.06a2.25 2.25 0 1 1 0-3.182z" clip-rule="evenodd"/>
367
- </symbol>`,AP=`<symbol id="file-tree-builtin-claude" viewBox="0 0 16 16">
368
+ </symbol>`,PP=`<symbol id="file-tree-builtin-claude" viewBox="0 0 16 16">
368
369
  <path fill="currentColor" d="M3.75 10.31 6.5 8.77l.04-.14-.04-.07h-.14l-.46-.03-1.57-.04-1.38-.07-1.33-.07-.34-.07L1 7.86l.03-.21.28-.18.4.03.89.07 1.33.08.97.06 1.43.16h.22l.03-.1-.07-.05-.06-.06-1.39-.92-1.48-.98-.79-.57-.42-.28-.2-.28-.1-.6.39-.41.52.04.12.03.52.4 1.12.86L6.2 6.04l.2.17.09-.06.01-.04-.1-.15-.76-1.46-.85-1.46-.37-.6-.1-.36a1 1 0 0 1-.06-.42l.42-.59.25-.07.6.08.22.2.36.84.58 1.3.9 1.77.29.53.14.47.04.14h.1v-.07l.07-1 .14-1.22.14-1.57.04-.45.23-.53.42-.28.36.15.28.41-.04.25-.16 1.08-.36 1.7-.21 1.14h.12l.14-.15.58-.76.97-1.2.42-.5.5-.51.32-.25h.6l.44.66-.2.68-.61.79-.52.65-.74 1-.45.8.04.05h.1l1.68-.36.9-.16 1.06-.18.5.23.05.22-.2.48-1.15.28-1.34.28-2 .46-.04.01.03.04.9.09.4.03h.94l1.77.14.46.28.27.37-.04.28-.72.37-.95-.23-2.24-.53-.76-.18h-.11v.06l.64.63L12 10.86l1.48 1.35.07.34-.18.28-.2-.03-1.29-.98-.5-.42-1.12-.95h-.07v.1l.25.38 1.37 2.05.07.63-.1.2-.36.14-.38-.08-.8-1.12-.85-1.26-.66-1.15-.07.05-.4 4.23-.19.21-.42.17-.35-.28-.2-.42.2-.87.23-1.12.18-.9.17-1.1.1-.36v-.03h-.1l-.84 1.16-1.27 1.72-1 1.07-.24.1-.42-.22.04-.39.22-.32 1.4-1.8.84-1.1.57-.64-.02-.07h-.04l-3.7 2.4-.66.09-.28-.28.03-.42.14-.14 1.12-.77z"/>
369
- </symbol>`,jP=`<symbol id="file-tree-builtin-cpp" viewBox="0 0 16 16">
370
+ </symbol>`,FP=`<symbol id="file-tree-builtin-cpp" viewBox="0 0 16 16">
370
371
  <path fill="currentColor" fill-rule="evenodd" d="M8 1q.084 0 .166.021.098.023.186.075c1.055.624 4.22 2.486 5.277 3.11.085.05.15.112.209.192h-.002l.028.037a.5.5 0 0 1 .103.21q.031.102.033.21v6.29a.71.71 0 0 1-.347.616l-5.307 3.144a.68.68 0 0 1-.693 0l-5.307-3.144A.72.72 0 0 1 2 11.145V4.832a.71.71 0 0 1 .346-.612l5.288-3.126A.7.7 0 0 1 7.992 1zm2.901 4.349a3.75 3.75 0 1 0 0 5.302l-1.06-1.06a2.25 2.25 0 1 1 0-3.182z" clip-rule="evenodd"/>
371
- </symbol>`,MP=`<symbol id="file-tree-builtin-css" viewBox="0 0 16 16">
372
+ </symbol>`,IP=`<symbol id="file-tree-builtin-css" viewBox="0 0 16 16">
372
373
  <path fill="currentColor" d="M8 15c-5.76 0-7-1.24-7-7V2a1 1 0 0 1 1-1h6c5.77 0 7 1.24 7 7s-1.24 7-7 7" class="vector" opacity=".2"/>
373
374
  <path fill="currentColor" d="M10.1 9.19h.73c.03.49.22.6 1 .6.76 0 .93-.12.93-.68 0-.52-.17-.67-.94-.85-1.38-.3-1.68-.56-1.68-1.47 0-1.05.3-1.29 1.67-1.29 1.29 0 1.57.2 1.6 1.13h-.74c-.01-.34-.17-.42-.85-.42-.77 0-.94.1-.94.58 0 .42.17.55.96.73 1.36.3 1.66.58 1.66 1.59 0 1.14-.31 1.39-1.73 1.39-1.39 0-1.69-.24-1.67-1.31m-3.9 0h.74c.03.49.21.6.99.6.76 0 .93-.12.93-.68 0-.52-.17-.67-.93-.85-1.39-.3-1.69-.56-1.69-1.47 0-1.05.3-1.29 1.67-1.29 1.3 0 1.58.2 1.6 1.13h-.73c-.02-.34-.18-.42-.85-.42-.78 0-.95.1-.95.58 0 .42.17.55.96.73 1.37.3 1.67.58 1.67 1.59 0 1.14-.32 1.39-1.74 1.39-1.38 0-1.68-.24-1.66-1.31m-1.22 0h.75c-.09 1.07-.37 1.31-1.56 1.31-1.37 0-1.68-.45-1.68-2.5 0-1.96.36-2.5 1.68-2.5 1.16 0 1.44.25 1.52 1.35h-.76c-.08-.52-.22-.64-.76-.64-.74 0-.9.33-.9 1.78 0 1.47.16 1.8.9 1.8.58 0 .74-.11.8-.6"/>
374
- </symbol>`,NP=`<symbol id="file-tree-builtin-database" viewBox="0 0 16 16">
375
+ </symbol>`,LP=`<symbol id="file-tree-builtin-database" viewBox="0 0 16 16">
375
376
  <path fill="currentColor" d="M14.953 9.733a12.4 12.4 0 0 1-.244 1.936c-.207.933-.532 1.58-.996 2.044s-1.11.789-2.044.996C10.73 14.918 9.533 15 8 15s-2.73-.082-3.669-.291c-.933-.207-1.58-.532-2.044-.996s-.789-1.11-.996-2.044c-.122-.547-.2-1.182-.244-1.92q.23.364.532.667c.64.639 1.482 1.031 2.533 1.265 1.046.232 2.33.315 3.884.315 1.555 0 2.838-.083 3.884-.315 1.051-.234 1.893-.626 2.532-1.265a4 4 0 0 0 .541-.683"/>
376
377
  <path fill="currentColor" d="M14.93 5.924c-.046.663-.118 1.24-.23 1.743-.207.932-.532 1.579-.995 2.042s-1.11.789-2.042.996c-.938.209-2.135.291-3.667.291-1.531 0-2.729-.082-3.667-.29-.932-.208-1.579-.534-2.042-.997s-.789-1.11-.996-2.042a12 12 0 0 1-.227-1.683l.016-.188a4 4 0 0 0 .5.62c.638.639 1.48 1.031 2.532 1.265 1.046.232 2.33.315 3.884.315 1.555 0 2.838-.083 3.884-.315 1.051-.234 1.893-.626 2.532-1.265.192-.192.357-.404.506-.633z"/>
377
378
  <path fill="currentColor" d="M8 1c1.533 0 2.73.082 3.669.291.933.207 1.58.533 2.044.996.403.404.904.944.91 1.695.004.764-.509 1.318-.918 1.727-.463.463-1.11.789-2.042.996-.938.209-2.135.291-3.667.291-1.531 0-2.729-.082-3.667-.29-.932-.208-1.579-.534-2.042-.997-.406-.406-.915-.953-.915-1.71 0-.758.509-1.305.915-1.712.464-.463 1.11-.789 2.044-.996C5.27 1.082 6.467 1 8 1"/>
378
- </symbol>`,PP=`<symbol id="file-tree-builtin-default" viewBox="0 0 16 16">
379
+ </symbol>`,RP=`<symbol id="file-tree-builtin-default" viewBox="0 0 16 16">
379
380
  <path fill="currentColor" d="M8 1v3a3 3 0 0 0 3 3h3v5.5a2.5 2.5 0 0 1-2.5 2.5h-7A2.5 2.5 0 0 1 2 12.5v-9A2.5 2.5 0 0 1 4.5 1z" class="bg" opacity=".4"/>
380
381
  <path fill="currentColor" d="M9.5 1a.5.5 0 0 1 .354.146l4 4A.5.5 0 0 1 14 5.5V6h-3a2 2 0 0 1-2-2V1z" class="fg"/>
381
- </symbol>`,FP=`<symbol id="file-tree-builtin-docker" viewBox="0 0 16 16">
382
+ </symbol>`,zP=`<symbol id="file-tree-builtin-docker" viewBox="0 0 16 16">
382
383
  <path fill="currentColor" d="M15.85 6.54c-.05-.04-.45-.36-1.31-.36q-.34 0-.68.06a2.7 2.7 0 0 0-1.14-1.79l-.23-.14-.15.23a3 3 0 0 0-.4 1q-.24 1.01.26 1.84c-.4.24-1.03.3-1.17.3H.5a.5.5 0 0 0-.5.52q-.01 1.46.46 2.83.55 1.5 1.6 2.18c.79.5 2.08.79 3.54.79q.96 0 1.94-.18a8 8 0 0 0 2.55-.97 7 7 0 0 0 1.73-1.5 10 10 0 0 0 1.7-3.06h.15a2.4 2.4 0 0 0 1.8-.7 2 2 0 0 0 .47-.74l.06-.2z"/>
383
384
  <path fill="currentColor" d="M1.48 7.36h1.4a.14.14 0 0 0 .14-.13V5.91q-.01-.12-.13-.14H1.48a.13.13 0 0 0-.13.14v1.32q.02.13.13.13m1.94 0h1.41a.14.14 0 0 0 .13-.13V5.91q-.01-.12-.13-.14h-1.4a.13.13 0 0 0-.13.14v1.32q0 .13.12.13m1.98 0h1.4q.13 0 .14-.13V5.91a.13.13 0 0 0-.14-.14H5.4q-.1.01-.12.14v1.32q0 .13.12.13m1.95 0h1.42q.1 0 .12-.13V5.91q0-.12-.12-.14H7.35q-.1.01-.12.14v1.32q.01.13.12.13M3.42 5.5h1.41c.07 0 .13-.08.13-.15V4.03a.13.13 0 0 0-.13-.14h-1.4q-.12 0-.13.14v1.31q0 .13.12.15m1.98 0h1.4c.08 0 .14-.08.14-.15V4.03q0-.13-.14-.14H5.4q-.1 0-.12.14v1.31q0 .13.12.15m1.95 0h1.42c.06 0 .12-.08.12-.15V4.03q-.01-.13-.12-.14H7.35q-.1 0-.12.14v1.31q.01.13.12.15m0-1.9h1.42q.1-.02.12-.14v-1.3Q8.88 2 8.77 2H7.35q-.1 0-.12.14v1.3q.01.13.12.14m1.97 3.78h1.4a.13.13 0 0 0 .14-.13V5.91q-.01-.12-.13-.14H9.32q-.1.01-.12.14v1.32q.01.13.12.13" opacity=".5"/>
384
- </symbol>`,IP=`<symbol id="file-tree-builtin-eslint" viewBox="0 0 16 16">
385
+ </symbol>`,BP=`<symbol id="file-tree-builtin-eslint" viewBox="0 0 16 16">
385
386
  <path fill="currentColor" d="M11.16 6.1 8.12 4.35a.3.3 0 0 0-.24 0L4.84 6.1a.3.3 0 0 0-.12.2v3.5q0 .14.12.22l3.04 1.74q.12.08.24 0l3.04-1.74a.2.2 0 0 0 .13-.22V6.3a.3.3 0 0 0-.13-.2" opacity=".5"/>
386
387
  <path fill="currentColor" d="m.1 7.69 3.63-6.3A.8.8 0 0 1 4.37 1h7.26c.26 0 .5.17.64.4l3.63 6.27a.8.8 0 0 1 0 .75l-3.63 6.24a.7.7 0 0 1-.64.34H4.37a.7.7 0 0 1-.64-.34L.1 8.41a.7.7 0 0 1 0-.72m3 3.02q.01.15.14.23l4.63 2.66q.13.06.26 0l4.63-2.66a.3.3 0 0 0 .14-.23V5.4a.3.3 0 0 0-.14-.23L8.13 2.52a.3.3 0 0 0-.26 0L3.24 5.17a.3.3 0 0 0-.14.23z"/>
387
- </symbol>`,LP=`<symbol id="file-tree-builtin-font" viewBox="0 0 16 16">
388
+ </symbol>`,VP=`<symbol id="file-tree-builtin-font" viewBox="0 0 16 16">
388
389
  <path fill="currentColor" d="M12.3 13c-1.59 0-2.68-.99-2.68-2.5 0-1.43 1-2.34 2.88-2.35h2.16v-.83c0-1.08-.62-1.68-1.73-1.68-1.05 0-1.66.54-1.73 1.36H9.93c.09-1.43 1.06-2.48 3.05-2.48 1.75 0 3.02.95 3.02 2.68v5.66h-1.29v-1.02h-.04c-.41.66-1.16 1.16-2.37 1.16m.36-1.12c1.14 0 2-.72 2-1.74v-.96H12.6c-1.12 0-1.6.54-1.6 1.28 0 .97.8 1.42 1.66 1.42m-11.24.98H0L3.8 2h1.39l3.8 10.86H7.54l-1.08-3.2H2.5zm3.09-9.25h-.04l-1.6 4.95H6.1z"/>
389
- </symbol>`,RP=`<symbol id="file-tree-builtin-git" viewBox="0 0 16 16">
390
+ </symbol>`,HP=`<symbol id="file-tree-builtin-git" viewBox="0 0 16 16">
390
391
  <path fill="currentColor" d="M14.74 7.38 8.62 1.26a.9.9 0 0 0-1.27 0L6.08 2.53l1.61 1.61a1.07 1.07 0 0 1 1.36 1.37l1.55 1.55a1.07 1.07 0 0 1 1.1 1.77 1.07 1.07 0 0 1-1.74-1.16L8.5 6.22v3.8a1.07 1.07 0 1 1-.89-.02V6.15a1.07 1.07 0 0 1-.58-1.4l-1.58-1.6-4.2 4.2a.9.9 0 0 0 0 1.27l6.12 6.12a.9.9 0 0 0 1.27 0l6.09-6.09a.9.9 0 0 0 0-1.27"/>
391
- </symbol>`,zP=`<symbol id="file-tree-builtin-go" viewBox="0 0 16 16">
392
+ </symbol>`,UP=`<symbol id="file-tree-builtin-go" viewBox="0 0 16 16">
392
393
  <path fill="currentColor" fill-rule="evenodd" d="M4.41 4.57A3.2 3.2 0 0 1 6.87 5q.74.49 1.08 1.29.08.12-.1.16l-1.55.4c-.14.03-.15.04-.27-.1a1 1 0 0 0-.44-.34 1.6 1.6 0 0 0-1.68.14q-.95.61-.94 1.73c0 .73.52 1.33 1.25 1.43q.95.1 1.58-.6l.25-.34h-1.8c-.19 0-.24-.12-.17-.27.12-.28.34-.76.47-1a.3.3 0 0 1 .24-.14h2.98a4 4 0 0 1 .64-1.19 4 4 0 0 1 2.6-1.52 3.5 3.5 0 0 1 2.64.46q1.13.73 1.31 2.04a3.5 3.5 0 0 1-1.06 3.09q-.93.92-2.23 1.17l-.74.08a3.5 3.5 0 0 1-2.27-.8 3 3 0 0 1-.93-1.42 4 4 0 0 1-.39.61 4 4 0 0 1-2.64 1.56 3.3 3.3 0 0 1-2.5-.6 3 3 0 0 1-1.18-2.03 3.5 3.5 0 0 1 .8-2.67 4 4 0 0 1 2.6-1.58M13.1 7.5a1.53 1.53 0 0 0-1.9-1.21q-1.3.3-1.62 1.59a1.5 1.5 0 0 0 .85 1.72q.77.33 1.52-.05a2 2 0 0 0 1.18-1.74q0-.17-.03-.3" clip-rule="evenodd"/>
393
- </symbol>`,BP=`<symbol id="file-tree-builtin-graphql" viewBox="0 0 16 16">
394
+ </symbol>`,WP=`<symbol id="file-tree-builtin-graphql" viewBox="0 0 16 16">
394
395
  <path fill="currentColor" fill-rule="evenodd" d="M8 1a1.25 1.25 0 0 1 1.18 1.65l2.8 1.61q.33-.25.77-.26a1.25 1.25 0 0 1 .48 2.4v3.2a1.25 1.25 0 1 1-1.25 2.13l-2.8 1.62A1.25 1.25 0 0 1 8 15a1.25 1.25 0 0 1-1.18-1.65l-2.8-1.62q-.33.26-.77.27a1.25 1.25 0 0 1-.48-2.4V6.4a1.25 1.25 0 1 1 1.25-2.14l2.8-1.61A1.25 1.25 0 0 1 8 1M4.44 11.14l-.06.13 2.75 1.58a1.25 1.25 0 0 1 1.74 0l2.74-1.58-.05-.13zm3.89-7.68a1.3 1.3 0 0 1-.66 0L4.03 9.77q.37.3.45.78h7.04q.08-.48.45-.78zM4.38 4.73a1.24 1.24 0 0 1-1.02 1.76v3.02l.13.01 3.67-6.35-.03-.02zm4.46-1.56 3.67 6.35.13-.01V6.49a1.25 1.25 0 0 1-1.03-1.76L8.87 3.15z" clip-rule="evenodd"/>
395
- </symbol>`,VP=`<symbol id="file-tree-builtin-html" viewBox="0 0 16 16">
396
+ </symbol>`,GP=`<symbol id="file-tree-builtin-html" viewBox="0 0 16 16">
396
397
  <path fill="currentColor" d="M8 1C2.24 1 1 2.24 1 8s1.24 7 7 7 7-1.24 7-7-1.24-7-7-7" class="bg" opacity=".2"/>
397
398
  <path fill="currentColor" d="M10.48 3.76a.5.5 0 0 1 .4.58L10.6 5.8h1.14a.5.5 0 0 1 0 1h-1.32L10 9.2h1.08a.5.5 0 0 1 0 1H9.8l-.3 1.64a.5.5 0 1 1-.98-.18l.27-1.46H6.4l-.3 1.64a.5.5 0 1 1-.98-.18l.27-1.46H4.25a.5.5 0 0 1 0-1h1.32L6 6.8H4.93a.5.5 0 0 1 0-1H6.2l.3-1.64a.5.5 0 1 1 .98.18L7.2 5.8h2.4l.3-1.64a.5.5 0 0 1 .58-.4M6.58 9.2h2.4l.44-2.4h-2.4z" class="fg"/>
398
- </symbol>`,HP=`<symbol id="file-tree-builtin-image" viewBox="0 0 16 16">
399
+ </symbol>`,KP=`<symbol id="file-tree-builtin-image" viewBox="0 0 16 16">
399
400
  <path fill="currentColor" d="M12.5 2A2.5 2.5 0 0 1 15 4.5v4.67l-4.05-3.54-4.08 4.08-3-2L1 10.6V4.5A2.5 2.5 0 0 1 3.5 2z" opacity=".3"/>
400
401
  <path fill="currentColor" d="M15 10.5v1a2.5 2.5 0 0 1-2.5 2.5h-9a2.5 2.5 0 0 1-2.46-2.04L4 9l3 2 4-4zm-7-5a1.5 1.5 0 1 1-3 0 1.5 1.5 0 0 1 3 0"/>
401
- </symbol>`,UP=`<symbol id="file-tree-builtin-javascript" viewBox="0 0 16 16">
402
+ </symbol>`,qP=`<symbol id="file-tree-builtin-javascript" viewBox="0 0 16 16">
402
403
  <path fill="currentColor" d="M8 1C2.24 1 1 2.24 1 8s1.24 7 7 7 7-1.24 7-7-1.24-7-7-7" class="bg" opacity=".2"/>
403
404
  <path fill="currentColor" d="M8.1 9.64h.95c.04.62.28.76 1.28.76s1.2-.14 1.2-.85c0-.66-.2-.85-1.2-1.07-1.79-.38-2.18-.7-2.18-1.86C8.15 5.3 8.54 5 10.31 5c1.67 0 2.04.26 2.07 1.42h-.95c-.02-.43-.23-.53-1.1-.53-1 0-1.22.14-1.22.74 0 .52.22.7 1.24.92 1.76.38 2.15.73 2.15 2 0 1.44-.4 1.75-2.24 1.75-1.8 0-2.18-.3-2.15-1.66M3.5 9.5h.98c0 .76.15.92.85.92.77 0 .94-.18.94-1.02V5.1h1v4.34c0 1.54-.35 1.87-1.92 1.87-1.55 0-1.89-.32-1.86-1.8"/>
404
- </symbol>`,WP=`<symbol id="file-tree-builtin-json" viewBox="0 0 16 16">
405
+ </symbol>`,JP=`<symbol id="file-tree-builtin-json" viewBox="0 0 16 16">
405
406
  <path fill="currentColor" d="M13.25 11.5V9.75a.5.5 0 0 1 .36-.48l.55-.15a1.16 1.16 0 0 0 0-2.24l-.55-.15a.5.5 0 0 1-.36-.48V4.5a2.5 2.5 0 0 0-2.5-2.5h-.25a.5.5 0 0 0 0 1h.25a1.5 1.5 0 0 1 1.5 1.5v1.75a1.5 1.5 0 0 0 1.09 1.44l.54.15a.16.16 0 0 1 0 .32l-.54.15a1.5 1.5 0 0 0-1.09 1.44v1.75a1.5 1.5 0 0 1-1.5 1.5h-.25a.5.5 0 0 0 0 1h.25a2.5 2.5 0 0 0 2.5-2.5m-10.5 0V9.75a.5.5 0 0 0-.36-.48l-.55-.15a1.16 1.16 0 0 1 0-2.24l.55-.15a.5.5 0 0 0 .36-.48V4.5A2.5 2.5 0 0 1 5.25 2h.25a.5.5 0 0 1 0 1h-.25a1.5 1.5 0 0 0-1.5 1.5v1.75a1.5 1.5 0 0 1-1.09 1.44l-.54.15a.16.16 0 0 0 0 .32l.54.15a1.5 1.5 0 0 1 1.09 1.45v1.74a1.5 1.5 0 0 0 1.5 1.5h.25a.5.5 0 0 1 0 1h-.25a2.5 2.5 0 0 1-2.5-2.5"/>
406
- </symbol>`,GP=`<symbol id="file-tree-builtin-markdown" viewBox="0 0 16 16">
407
+ </symbol>`,YP=`<symbol id="file-tree-builtin-markdown" viewBox="0 0 16 16">
407
408
  <path fill="currentColor" d="M1 12V4h2l2 2.5L7 4h2v8H7V7.5l-2 2-2-2V12zm9-3 3 3.5L16 9h-2V4h-2v5z"/>
408
- </symbol>`,KP=`<symbol id="file-tree-builtin-mcp" viewBox="0 0 16 16">
409
+ </symbol>`,XP=`<symbol id="file-tree-builtin-mcp" viewBox="0 0 16 16">
409
410
  <path fill="currentColor" d="M9.26-.04a3 3 0 0 1 2 .82 2.8 2.8 0 0 1 .8 2.35 2.9 2.9 0 0 1 2.41.8l.03.02a2.74 2.74 0 0 1 0 3.94l-5.8 5.69-.04.06-.02.07q0 .04.02.07.01.04.04.06l1.2 1.17a.55.55 0 0 1 0 .79.6.6 0 0 1-.81 0l-1.2-1.17a1.3 1.3 0 0 1 0-1.84L13.7 7.1a1.65 1.65 0 0 0 .37-1.82 2 2 0 0 0-.37-.54l-.03-.03a1.73 1.73 0 0 0-2.4 0L6.47 9.4l-.07.06a.58.58 0 0 1-.92-.18.6.6 0 0 1 .12-.6l4.85-4.76a1.65 1.65 0 0 0 0-2.36 1.73 1.73 0 0 0-2.4 0l-6.43 6.3a.6.6 0 0 1-.8 0 .55.55 0 0 1 0-.8L7.25.79a3 3 0 0 1 2-.82"/>
410
411
  <path fill="currentColor" d="M9.26 2.19a.6.6 0 0 1 .52.34.6.6 0 0 1 0 .43l-.12.18L4.9 7.79a1.65 1.65 0 0 0 0 2.36 1.73 1.73 0 0 0 2.4 0l4.75-4.66a.58.58 0 0 1 .93.18.6.6 0 0 1-.12.61l-4.75 4.66a2.9 2.9 0 0 1-4.01 0 2.75 2.75 0 0 1-.62-3.04A3 3 0 0 1 4.1 7l4.74-4.65a.6.6 0 0 1 .4-.16"/>
411
- </symbol>`,qP=`<symbol id="file-tree-builtin-nextjs" viewBox="0 0 16 16">
412
+ </symbol>`,ZP=`<symbol id="file-tree-builtin-nextjs" viewBox="0 0 16 16">
412
413
  <defs>
413
414
  <linearGradient id="a" x1="4.522" x2="14" y1="3.943" y2="16" gradientUnits="userSpaceOnUse">
414
415
  <stop stop-color="currentColor"/>
@@ -418,82 +419,82 @@ diff --git`)}function mv(e,t){if(e.length===0)return[``];let n=`\n${t}`,r=e.star
418
419
  <path fill="currentColor" d="M3 2h1.522v9.09H3z"/>
419
420
  <path fill="url(#a)" d="M4.903 2 15 15.075q-.565.5-1.195.925L4.522 3.943z"/>
420
421
  <path fill="currentColor" d="M12.172 2h-1.508v9.094h1.508z"/>
421
- </symbol>`,JP=`<symbol id="file-tree-builtin-npm" viewBox="0 0 16 16">
422
+ </symbol>`,QP=`<symbol id="file-tree-builtin-npm" viewBox="0 0 16 16">
422
423
  <path fill="currentColor" d="M2 1a1 1 0 0 0-1 1v12a1 1 0 0 0 1 1h12a1 1 0 0 0 1-1V2a1 1 0 0 0-1-1z" class="vector" opacity=".2"/>
423
424
  <path fill="currentColor" d="M10.5 13H13V3H3v10h5V5.5h2.5z"/>
424
- </symbol>`,YP=`<symbol id="file-tree-builtin-oxc" viewBox="0 0 16 16">
425
+ </symbol>`,$P=`<symbol id="file-tree-builtin-oxc" viewBox="0 0 16 16">
425
426
  <path fill="currentColor" d="M9.5 1a.5.5 0 0 1 .5.5V3h3.5a.5.5 0 0 1 .38.83L10.5 7.69v1.44q.41.04.95-.16a4 4 0 0 0 .72-.35l.04-.03h.01a.5.5 0 0 1 .67.1l2 2.5a.5.5 0 0 1 0 .62c-.76.96-3.14 2.69-6.89 2.69s-6.13-1.73-6.89-2.69a.5.5 0 0 1 0-.62l2-2.5a.5.5 0 0 1 .67-.1l.05.03.16.09q.22.13.56.26.54.2.95.16V7.69L2.12 3.83A.5.5 0 0 1 2.5 3H6V1.5a.5.5 0 0 1 .5-.5zM7 3.5a.5.5 0 0 1-.5.5H3.6l2.78 3.17a.5.5 0 0 1 .12.33v2a.5.5 0 0 1-.28.45c-.7.35-1.5.15-2.02-.05a5 5 0 0 1-.58-.26l-1.46 1.84c.82.78 2.8 2.02 5.84 2.02s5.02-1.24 5.84-2.02l-1.46-1.83a5 5 0 0 1-.58.26c-.52.2-1.33.39-2.02.04a.5.5 0 0 1-.28-.45v-2a.5.5 0 0 1 .12-.33L12.4 4H9.5a.5.5 0 0 1-.5-.5V2H7z"/>
426
- </symbol>`,XP=`<symbol id="file-tree-builtin-postcss" viewBox="0 0 16 16">
427
+ </symbol>`,eF=`<symbol id="file-tree-builtin-postcss" viewBox="0 0 16 16">
427
428
  <path fill="currentColor" d="M14.5 8a6.5 6.5 0 0 0-5.9-6.47l5.42 8.93A7 7 0 0 0 14.5 8M2.88 12A6.5 6.5 0 0 0 8 14.5c2.08 0 3.93-.98 5.12-2.5zm8.62-1h1.68L11.5 8.24zm-1-.55a4 4 0 0 1-.7.55h.7zM8 5.5a2.5 2.5 0 1 0 0 5 2.5 2.5 0 0 0 0-5M5.5 11h.7a4 4 0 0 1-.7-.55zm-2.68 0H4.5V8.24zm3.76-6.2A4 4 0 0 1 8 4.5q.76 0 1.42.3L8 2.46zM1.5 8q0 1.31.48 2.46L7.4 1.53A6.5 6.5 0 0 0 1.5 8m14 0a7.5 7.5 0 0 1-.99 3.72l-.01.03-.02.03A7.5 7.5 0 0 1 8 15.5a7.5 7.5 0 0 1-6.5-3.75l-.01-.03A7.5 7.5 0 1 1 15.5 8"/>
428
- </symbol>`,ZP=`<symbol id="file-tree-builtin-prettier" viewBox="0 0 16 16">
429
+ </symbol>`,tF=`<symbol id="file-tree-builtin-prettier" viewBox="0 0 16 16">
429
430
  <path fill="currentColor" d="M6 12v1H4.93v-1zm1-2v1H2v-1zm6-4v1h-3V6zm-1-4v1H9V2z"/>
430
431
  <path fill="currentColor" d="M11.5 10v1H8v-1zM5 6v1H2V6zm5-2v1H9V4z" opacity=".8"/>
431
432
  <path fill="currentColor" d="M6 14v1H2v-1zm-.5-6v1H2V8zM13 4v1h-3V4zM4.93 2v1H2V2z" opacity=".6"/>
432
433
  <path fill="currentColor" d="M4.93 12v1H2v-1zM13 8v1H9V8zM5.5 4v1H2V4zM9 2v1H4.93V2z" opacity=".4"/>
433
- </symbol>`,QP=`<symbol id="file-tree-builtin-python" viewBox="0 0 16 16">
434
+ </symbol>`,nF=`<symbol id="file-tree-builtin-python" viewBox="0 0 16 16">
434
435
  <path fill="currentColor" d="M8.33 8.4H10c1.16 0 1.9-.73 1.9-1.86V5.08q0-.24.25-.24h.74c.75 0 1.33.32 1.66.97q.4.73.41 1.46c.09.9.09 1.78-.24 2.67-.25.73-.75 1.3-1.58 1.46h-4.8c-.08 0-.25 0-.25.08v.4s.17.09.25.09h2.82q.34-.02.33.32v1.06c0 .56-.25.97-.75 1.13-.41.16-.83.33-1.24.4a7 7 0 0 1-2.98-.07 3 3 0 0 1-1.16-.49c-.33-.32-.58-.65-.5-1.14v-2.91c0-1.13.67-1.78 1.82-1.78q.89-.1 1.66-.08m2.32 4.86a.65.65 0 0 0-.66-.65c-.34 0-.67.33-.67.65s.33.57.67.65a.65.65 0 0 0 .66-.65" class="bg" opacity=".8"/>
435
436
  <path fill="currentColor" d="M7.67 7.6H6c-1.16 0-1.9.73-1.9 1.86v1.46q0 .24-.25.24h-.74c-.75 0-1.33-.32-1.66-.97a3 3 0 0 1-.41-1.46 6 6 0 0 1 .24-2.67c.25-.73.75-1.3 1.58-1.46h4.8c.08 0 .25 0 .25-.08v-.4s-.17-.09-.25-.09H4.85c-.24 0-.33-.08-.33-.32V2.65c0-.56.25-.97.75-1.13.41-.16.83-.33 1.24-.4a7 7 0 0 1 2.98.07c.41.09.83.25 1.16.49.33.32.58.65.5 1.13v2.92c0 1.14-.67 1.78-1.82 1.78-.58.08-1.16.08-1.66.08M5.35 2.73c0 .33.25.65.66.65.33 0 .66-.32.66-.65 0-.32-.33-.56-.66-.64a.65.65 0 0 0-.66.64" class="fg"/>
436
- </symbol>`,$P=`<symbol id="file-tree-builtin-react" viewBox="0 0 16 16">
437
+ </symbol>`,rF=`<symbol id="file-tree-builtin-react" viewBox="0 0 16 16">
437
438
  <path fill="currentColor" d="M8 6.65c.73 0 1.31.6 1.31 1.35S8.73 9.35 8 9.35 6.69 8.75 6.69 8 7.27 6.65 8 6.65"/>
438
439
  <path fill="currentColor" fill-rule="evenodd" d="M8 2.55c1.3-.99 2.59-1.34 3.5-.8.92.55 1.27 1.87 1.08 3.53C14.06 5.94 15 6.9 15 8s-.94 2.06-2.42 2.72c.19 1.65-.16 2.98-1.08 3.52-.91.55-2.2.2-3.5-.8-1.3 1-2.58 1.35-3.5.8-.91-.54-1.27-1.87-1.08-3.52C1.94 10.06 1 9.1 1 8s.94-2.06 2.42-2.72c-.19-1.66.17-2.98 1.08-3.52s2.2-.2 3.5.8M4.26 11.2c-.08 1.34.28 2.03.68 2.26s1.15.22 2.25-.52l.11-.09a12 12 0 0 1-1.24-1.39 11 11 0 0 1-1.8-.41zm7.47-.15q-.83.27-1.79.41-.6.8-1.24 1.4l.11.08c1.1.74 1.86.76 2.25.52.4-.23.76-.92.68-2.26zm-3.04.54a14 14 0 0 1-1.38 0q.34.38.69.7.35-.32.7-.7M8 5.29q-.76 0-1.47.1A13 13 0 0 0 5.07 8a14 14 0 0 0 1.46 2.62 13 13 0 0 0 2.94 0A13 13 0 0 0 10.93 8a14 14 0 0 0-1.46-2.62A13 13 0 0 0 8 5.3M4.64 9.18q-.15.5-.25.96.44.16.94.27a15 15 0 0 1-.7-1.23m6.73 0a15 15 0 0 1-.7 1.23q.5-.11.95-.27a10 10 0 0 0-.25-.96M3.44 6.26C2.27 6.86 1.87 7.53 1.87 8s.4 1.14 1.57 1.74l.13.07q.18-.88.55-1.81a12 12 0 0 1-.55-1.8q-.07.02-.13.06m8.99-.07A12 12 0 0 1 11.88 8q.36.94.55 1.8l.13-.06c1.17-.6 1.56-1.27 1.56-1.74s-.39-1.14-1.56-1.74zm-7.1-.6q-.5.11-.94.27.1.46.25.96a15 15 0 0 1 .69-1.23m5.34 0a15 15 0 0 1 .7 1.23q.14-.5.24-.96-.44-.15-.94-.27M7.18 3.06c-1.09-.74-1.85-.76-2.24-.52s-.76.92-.69 2.26l.01.15a11 11 0 0 1 1.8-.41q.6-.8 1.24-1.4zm3.88-.52c-.4-.24-1.15-.22-2.25.52l-.12.08q.65.6 1.25 1.4.96.15 1.8.41v-.14c.08-1.35-.28-2.04-.68-2.27M8 3.7a10 10 0 0 0-.7.7 14 14 0 0 1 1.4 0 10 10 0 0 0-.7-.7" clip-rule="evenodd"/>
439
- </symbol>`,eF=`<symbol id="file-tree-builtin-ruby" viewBox="0 0 16 16">
440
+ </symbol>`,iF=`<symbol id="file-tree-builtin-ruby" viewBox="0 0 16 16">
440
441
  <path fill="currentColor" fill-rule="evenodd" d="M11.04 2c.48 0 .92.23 1.18.6l2.54 3.65c.37.52.3 1.23-.15 1.69l-5.58 5.64a1.47 1.47 0 0 1-2.06 0L1.39 7.94a1.3 1.3 0 0 1-.15-1.7l2.54-3.63q.2-.3.5-.45.33-.16.68-.16zm.84 2.17a.5.5 0 0 0-.7-.05L8 6.84 4.83 4.12a.5.5 0 0 0-.65.76L6.65 7H3.5a.5.5 0 0 0 0 1h9a.5.5 0 0 0 0-1H9.35l2.48-2.12a.5.5 0 0 0 .05-.7" clip-rule="evenodd"/>
441
- </symbol>`,tF=`<symbol id="file-tree-builtin-rust" viewBox="0 0 16 16">
442
+ </symbol>`,aF=`<symbol id="file-tree-builtin-rust" viewBox="0 0 16 16">
442
443
  <path fill="currentColor" fill-rule="evenodd" d="M8 .8a.2.2 0 0 1 .18.1l.38.6.16.02.5-.53.01-.01a.2.2 0 0 1 .33.08l.25.68.16.05.59-.43h.02a.2.2 0 0 1 .3.14l.12.71.15.08.65-.3a.2.2 0 0 1 .2.02.2.2 0 0 1 .1.18l-.03.72.12.1.71-.16a.2.2 0 0 1 .25.25l-.17.7q.06.06.1.13l.73-.03A.2.2 0 0 1 14 4a.2.2 0 0 1 .02.2l-.3.66.08.14.71.12a.2.2 0 0 1 .14.32l-.43.59.05.16.68.25a.2.2 0 0 1 .07.35l-.53.49.01.16.62.38a.2.2 0 0 1 0 .36l-.62.38-.01.16.53.5a.2.2 0 0 1-.07.34l-.68.25-.05.16.43.59a.2.2 0 0 1-.14.32l-.72.12-.07.15.3.65a.2.2 0 0 1-.02.2.2.2 0 0 1-.18.1l-.72-.03-.1.13.16.7a.2.2 0 0 1-.25.25l-.7-.17-.13.1.03.73a.2.2 0 0 1-.1.18.2.2 0 0 1-.2.02l-.66-.3-.14.08-.12.71a.2.2 0 0 1-.32.14l-.59-.43-.16.05-.25.68a.2.2 0 0 1-.34.07l-.5-.53-.16.01-.38.62a.2.2 0 0 1-.36 0l-.38-.62-.16-.01-.5.53a.2.2 0 0 1-.34-.07l-.25-.68-.16-.05-.59.43a.2.2 0 0 1-.32-.14L5 13.78l-.15-.07-.65.3a.2.2 0 0 1-.2-.02.2.2 0 0 1-.1-.18l.03-.72-.13-.1-.7.16a.2.2 0 0 1-.25-.25l.17-.7-.1-.13-.73.03a.2.2 0 0 1-.2-.3l.3-.66-.08-.14-.71-.12a.2.2 0 0 1-.14-.32l.43-.59-.05-.16-.68-.25A.2.2 0 0 1 1 9.22l.53-.5-.02-.16-.6-.38A.2.2 0 0 1 .8 8a.2.2 0 0 1 .1-.18l.6-.38.02-.16-.53-.5a.2.2 0 0 1 .07-.34l.68-.25.05-.16-.43-.59a.2.2 0 0 1 .14-.32L2.2 5l.08-.15L2 4.2a.2.2 0 0 1 .2-.3l.72.03.1-.13-.16-.7a.2.2 0 0 1 .25-.25l.7.16.13-.1-.03-.72A.2.2 0 0 1 4 2a.2.2 0 0 1 .2-.02l.65.3L5 2.2l.12-.71v-.03a.2.2 0 0 1 .32-.1l.59.41.16-.04.25-.68.01-.02A.2.2 0 0 1 6.8.99l.49.53.16-.02.38-.61.02-.02A.2.2 0 0 1 8 .79M6.8 9.45h1.26l.06.01q.03.01.03.05v1.52q0 .07-.09.06h-4.5A5.4 5.4 0 0 0 8 13.42a5.4 5.4 0 0 0 4.45-2.33h-2.42c-.36 0-.68-.5-.77-.75-.08-.22-.2-.91-.25-1.12-.15-.61-.59-.71-.78-.73H6.8zM8 2.58a5.4 5.4 0 0 0-4.07 1.85h5.74l.17.02c.23.03.6.12.96.35.34.23.83.68.83 1.4 0 .66-.55 1.16-1.08 1.5.42.33.7.53.86 1.44.04.17.34.32.62.29.29-.03.62-.16.62-.75v-.24q0-.1.07-.1h.68A5.43 5.43 0 0 0 8 2.59M2.96 6.03a5.4 5.4 0 0 0-.19 3.37h1.66V6.03zM6.8 7.06h1.66c.35 0 .77-.12.77-.47 0-.42-.55-.53-.65-.53H6.8z" clip-rule="evenodd"/>
443
- </symbol>`,nF=`<symbol id="file-tree-builtin-sass" viewBox="0 0 16 16">
444
+ </symbol>`,oF=`<symbol id="file-tree-builtin-sass" viewBox="0 0 16 16">
444
445
  <path fill="currentColor" fill-rule="evenodd" d="M8.08 1.44c2.41-.91 4.96-.37 5.35 1.27.39 1.62-.92 3.56-2.6 4.25a5 5 0 0 1-3.26.35c-.58-.2-.92-.62-1-.85-.03-.09-.09-.24 0-.3.05-.03.08-.02.22.15s.7.6 1.75.48c2.78-.34 4.45-2.64 3.92-3.88-.37-.87-2.5-1.26-5.18.16C4.03 4.81 3.85 6.24 3.82 6.8c-.08 1.5 1.73 2.28 2.7 3.4q.04.03.07.08c.3-.12.7-.19 1.35-.2 1.58-.03 2.47 1.08 2.43 2.08-.03.78-.7 1.1-.82 1.13-.1.01-.14.02-.15-.06q-.03-.06.13-.15c.16-.09.42-.3.48-.72.05-.43-.24-1.44-1.76-1.63a3 3 0 0 0-1.33.08c.27.62.32 1.87-.29 2.83-.63 1-1.8 1.61-2.93 1.27-.37-.1-.93-.92-.45-2.05.46-1.07 2.4-2.12 2.66-2.26-.9-.83-3.08-1.95-3.4-3.65-.08-.49.13-1.65 1.46-2.98a12 12 0 0 1 4.11-2.52m-1.88 9.7c-.01.01-.9.47-1.52 1.17-.59.66-.75 1.48-.43 1.69.3.18 1-.04 1.51-.62a3 3 0 0 0 .5-.9q.2-.64.02-1.39z" clip-rule="evenodd"/>
445
- </symbol>`,rF=`<symbol id="file-tree-builtin-stylelint" viewBox="0 0 16 16">
446
+ </symbol>`,sF=`<symbol id="file-tree-builtin-stylelint" viewBox="0 0 16 16">
446
447
  <path fill="currentColor" d="M4 3v3.5l1.5-1L7 15 .5 6l1-1.5L0 3l2.5-2h1zm12 0-1.5 1.5 1 1.5L9 15l1.5-9.5 1.5 1V3l.5-2h1zm-8 8.5a.5.5 0 1 1 0 1 .5.5 0 0 1 0-1m0-3a.5.5 0 1 1 0 1 .5.5 0 0 1 0-1m0-3a.5.5 0 1 1 0 1 .5.5 0 0 1 0-1"/>
447
448
  <path fill="currentColor" d="M6.5 2.5V4l-2 1.5v-4zm5 3L9.5 4V2.5l2-1zM9 4H7V2.5h2z"/>
448
- </symbol>`,iF=`<symbol id="file-tree-builtin-svelte" viewBox="0 0 16 16">
449
+ </symbol>`,cF=`<symbol id="file-tree-builtin-svelte" viewBox="0 0 16 16">
449
450
  <path fill="currentColor" d="m3.98 3.7 3.36-2.08a4.5 4.5 0 0 1 5.9 1.23 4 4 0 0 1 .7 3.02q-.16.75-.58 1.4c.42.77.56 1.66.4 2.52a3.7 3.7 0 0 1-1.57 2.4l-.17.1-3.36 2.09a4.5 4.5 0 0 1-5.9-1.23 4 4 0 0 1-.66-1.44 4 4 0 0 1-.04-1.58 4 4 0 0 1 .58-1.4 4 4 0 0 1-.4-2.52 3.7 3.7 0 0 1 1.57-2.4zl3.36-2.08zm7.87 0a2.7 2.7 0 0 0-1.26-.95 2.7 2.7 0 0 0-1.6-.07 3 3 0 0 0-.52.2l-.16.09-3.36 2.08a2 2 0 0 0-.69.64 2 2 0 0 0-.36.86 2.3 2.3 0 0 0 .42 1.81A2.7 2.7 0 0 0 7.18 9.4q.28-.06.53-.2l.16-.09 1.28-.79.2-.09a.8.8 0 0 1 .87.31.7.7 0 0 1 .13.55.7.7 0 0 1-.24.4l-.08.05-3.36 2.08-.2.09a1 1 0 0 1-.49-.02 1 1 0 0 1-.38-.3 1 1 0 0 1-.13-.37v-.1l.01-.13-.13-.03a4 4 0 0 1-1.1-.5l-.2-.14-.18-.12-.07.18-.08.3a2.3 2.3 0 0 0 .43 1.82q.45.64 1.19.93.73.28 1.51.14l.16-.04q.27-.07.52-.2l.16-.09 3.36-2.08q.4-.25.69-.64.27-.4.36-.86a2.3 2.3 0 0 0-.42-1.82 2.7 2.7 0 0 0-1.27-.95 2.7 2.7 0 0 0-1.6-.08q-.27.07-.52.2l-.16.1-1.28.79-.2.09a1 1 0 0 1-.49-.03 1 1 0 0 1-.38-.29.7.7 0 0 1-.13-.54.7.7 0 0 1 .24-.4l.08-.06L9.33 4.4l.2-.1a.8.8 0 0 1 .87.32 1 1 0 0 1 .13.38v.22l.11.04q.6.18 1.12.5l.2.14.17.12.06-.19.08-.3a2.3 2.3 0 0 0-.42-1.81z"/>
450
- </symbol>`,aF=`<symbol id="file-tree-builtin-svg" viewBox="0 0 16 16">
451
+ </symbol>`,lF=`<symbol id="file-tree-builtin-svg" viewBox="0 0 16 16">
451
452
  <path fill="currentColor" d="M5 7a2 2 0 0 1 2-2h6a2 2 0 0 1 2 2v6a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2z"/>
452
453
  <path fill="currentColor" d="M6 1a5 5 0 0 1 4.58 3H7a3 3 0 0 0-3 3v3.58A5 5 0 0 1 6 1" opacity=".5"/>
453
- </symbol>`,oF=`<symbol id="file-tree-builtin-svgo" viewBox="0 0 16 16">
454
+ </symbol>`,uF=`<symbol id="file-tree-builtin-svgo" viewBox="0 0 16 16">
454
455
  <path fill="currentColor" d="M9.43 4.8A.6.6 0 1 1 9.19 6l-.56.96a1.2 1.2 0 0 1 .32 1.58l.7.53a.89.89 0 1 1-.17.22l-.7-.52a1.2 1.2 0 0 1-1.4.25l-.56.87a.75.75 0 1 1-.57-.2 1 1 0 0 1 .32.05l.56-.87a1.2 1.2 0 0 1-.4-1.24l-1.2-.47a.56.56 0 1 1 .1-.28v.02l1.2.47a1.2 1.2 0 0 1 1.56-.55l.56-.97a.6.6 0 0 1-.15-.64.6.6 0 0 1 .63-.4"/>
455
456
  <path fill="currentColor" fill-rule="evenodd" d="M9.17 1q.16.63.27 1.26a6 6 0 0 1 1.61.67q.52-.38 1.08-.71l1.65 1.64q-.32.56-.68 1.05.48.78.72 1.67.6.09 1.18.25v2.32q-.55.15-1.11.24a6 6 0 0 1-.7 1.82q.31.44.59.91l-1.65 1.65-.85-.55a6 6 0 0 1-1.9.83q-.08.47-.2.95H6.84q-.12-.46-.2-.93a6 6 0 0 1-1.96-.81q-.39.27-.8.51l-1.65-1.65q.25-.43.53-.84a6 6 0 0 1-.75-1.9L1 9.16V6.83q.54-.14 1.09-.24a6 6 0 0 1 .77-1.74q-.33-.47-.63-.98l1.65-1.65q.54.32 1.03.68a6 6 0 0 1 1.66-.66q.1-.61.26-1.24zM7.96 3.73a4 4 0 0 0-1.74.36 4.5 4.5 0 0 0-2.3 2.3 4.4 4.4 0 0 0-.1 3.29l.03.06a4.4 4.4 0 0 0 2.4 2.47 4.4 4.4 0 0 0 3.48-.02l.03-.02a4.4 4.4 0 0 0 2.3-2.42l.06-.14a4.4 4.4 0 0 0-.2-3.4 4.4 4.4 0 0 0-2.13-2.07L9.47 4a4 4 0 0 0-1.51-.27" clip-rule="evenodd"/>
456
- </symbol>`,sF=`<symbol id="file-tree-builtin-swift" viewBox="0 0 16 16">
457
+ </symbol>`,dF=`<symbol id="file-tree-builtin-swift" viewBox="0 0 16 16">
457
458
  <path fill="currentColor" d="M9.63 1c6.15 4.35 4.16 9.15 4.16 9.15s1.75 2.05 1.04 3.85c0 0-.72-1.26-1.93-1.26-1.17 0-1.85 1.26-4.2 1.26C3.47 14 1 9.46 1 9.46c4.71 3.22 7.93.94 7.93.94C6.8 9.12 2.29 3 2.29 3c3.93 3.47 5.63 4.39 5.63 4.39-1.01-.87-3.86-5.13-3.86-5.13C6.34 4.66 10.86 8 10.86 8c1.28-3.7-1.23-7-1.23-7"/>
458
- </symbol>`,cF=`<symbol id="file-tree-builtin-table" viewBox="0 0 16 16">
459
+ </symbol>`,fF=`<symbol id="file-tree-builtin-table" viewBox="0 0 16 16">
459
460
  <path fill="currentColor" d="M8 4a3 3 0 0 0 3 3h3v5.5a2.5 2.5 0 0 1-2.5 2.5h-7A2.5 2.5 0 0 1 2 12.5v-9A2.5 2.5 0 0 1 4.5 1H8z" class="bg" opacity=".4"/>
460
461
  <path fill="currentColor" d="M11.5 8a.5.5 0 0 1 .5.5v4a.5.5 0 0 1-.5.5h-7a.5.5 0 0 1-.5-.5v-4a.5.5 0 0 1 .5-.5zM5 12h2.5v-1H5zm3.5 0H11v-1H8.5zM5 10h2.5V9H5zm3.5 0H11V9H8.5zm1-9a.5.5 0 0 1 .354.146l4 4A.5.5 0 0 1 14 5.5V6h-3a2 2 0 0 1-2-2V1z" class="fg"/>
461
- </symbol>`,lF=`<symbol id="file-tree-builtin-tailwind" viewBox="0 0 16 16">
462
+ </symbol>`,pF=`<symbol id="file-tree-builtin-tailwind" viewBox="0 0 16 16">
462
463
  <path fill="currentColor" fill-rule="evenodd" d="M8 4Q5.2 4 4.5 6.67q1.05-1.34 2.45-1c.53.12.91.5 1.33.9C8.98 7.23 9.77 8 11.5 8q2.8 0 3.5-2.67-1.05 1.34-2.45 1c-.53-.12-.91-.5-1.33-.9C10.52 4.77 9.73 4 8 4M4.5 8Q1.7 8 1 10.67q1.05-1.34 2.45-1c.53.12.91.5 1.33.9C5.48 11.23 6.26 12 8 12q2.8 0 3.5-2.67-1.05 1.34-2.45 1c-.53-.12-.91-.5-1.33-.9C7.02 8.77 6.24 8 4.5 8" clip-rule="evenodd"/>
463
- </symbol>`,uF=`<symbol id="file-tree-builtin-terraform" viewBox="0 0 16 16">
464
+ </symbol>`,mF=`<symbol id="file-tree-builtin-terraform" viewBox="0 0 16 16">
464
465
  <path fill="currentColor" d="M1 0v5.05l4.35 2.53V2.53zm9.18 5.34L5.83 2.82v5.05l4.35 2.53zm.47 5.06V5.34L15 2.82v5.05zm-.48 5.6-4.35-2.53V8.42l4.35 2.53z"/>
465
- </symbol>`,dF=`<symbol id="file-tree-builtin-text" viewBox="0 0 16 16">
466
+ </symbol>`,hF=`<symbol id="file-tree-builtin-text" viewBox="0 0 16 16">
466
467
  <path fill="currentColor" fill-rule="evenodd" d="M8 4a3 3 0 0 0 3 3h3v5.5a2.5 2.5 0 0 1-2.5 2.5h-7A2.5 2.5 0 0 1 2 12.5v-9A2.5 2.5 0 0 1 4.5 1H8z" class="bg" clip-rule="evenodd" opacity=".4"/>
467
468
  <path fill="currentColor" d="M8.5 11a.5.5 0 0 1 0 1h-3a.5.5 0 0 1 0-1zm2-2a.5.5 0 0 1 0 1h-5a.5.5 0 0 1 0-1zm-1-8a.5.5 0 0 1 .354.146l4 4A.5.5 0 0 1 14 5.5V6h-3a2 2 0 0 1-2-2V1z"/>
468
- </symbol>`,fF=`<symbol id="file-tree-builtin-typescript" viewBox="0 0 16 16">
469
+ </symbol>`,gF=`<symbol id="file-tree-builtin-typescript" viewBox="0 0 16 16">
469
470
  <path fill="currentColor" d="M8 1C2.24 1 1 2.24 1 8s1.24 7 7 7 7-1.24 7-7-1.24-7-7-7" class="bg" opacity=".2"/>
470
471
  <path fill="currentColor" d="M8.1 9.64h.95c.04.62.28.76 1.28.76s1.2-.14 1.2-.85c0-.66-.2-.85-1.2-1.07-1.79-.38-2.18-.7-2.18-1.86C8.15 5.3 8.54 5 10.31 5c1.67 0 2.04.26 2.07 1.42h-.95c-.02-.43-.23-.53-1.1-.53-1 0-1.22.14-1.22.74 0 .52.22.7 1.24.92 1.76.38 2.15.73 2.15 2 0 1.44-.4 1.75-2.24 1.75-1.8 0-2.18-.3-2.15-1.66m-3 1.57V5.99H3.5v-.9h4.21v.9H6.1v5.22z"/>
471
- </symbol>`,pF=`<symbol id="file-tree-builtin-vite" viewBox="0 0 16 16">
472
+ </symbol>`,_F=`<symbol id="file-tree-builtin-vite" viewBox="0 0 16 16">
472
473
  <path fill="currentColor" d="M8.57 14.87c-.18.26-.55.11-.55-.22v-3.18l-.05-.27-.13-.22-.2-.15-.24-.06H4.29c-.26 0-.4-.32-.26-.55L6.08 7c.3-.46 0-1.1-.5-1.1H1.8c-.25 0-.4-.32-.25-.56l2.65-4.2A.3.3 0 0 1 4.46 1h7.9c.26 0 .4.32.26.55l-2.05 3.23c-.29.46 0 1.1.5 1.1h3.12c.26 0 .4.34.24.57z"/>
473
- </symbol>`,mF=`<symbol id="file-tree-builtin-vscode" viewBox="0 0 16 16">
474
+ </symbol>`,vF=`<symbol id="file-tree-builtin-vscode" viewBox="0 0 16 16">
474
475
  <path fill="currentColor" d="m5.11 9.68-2.4 1.84a.6.6 0 0 1-.75-.04l-.77-.7a.6.6 0 0 1 0-.87L3.28 8zm5.52-8.42a.51.51 0 0 1 .87.36V4.8L7.32 8 5.1 6.32z" opacity=".75"/>
475
476
  <path fill="currentColor" d="M11.1 14.99h.03zM1.96 4.52a.6.6 0 0 1 .75-.04l8.8 6.71v3.19a.51.51 0 0 1-.88.36L1.19 6.1a.6.6 0 0 1 0-.87z" opacity=".65"/>
476
477
  <path fill="currentColor" d="M11.62 14.91a.9.9 0 0 1-1-.17.51.51 0 0 0 .88-.36V1.62a.51.51 0 0 0-.87-.36.9.9 0 0 1 1-.17l2.87 1.39a.9.9 0 0 1 .5.8v9.44a.9.9 0 0 1-.5.8z"/>
477
- </symbol>`,hF=`<symbol id="file-tree-builtin-vue" viewBox="0 0 16 16">
478
+ </symbol>`,yF=`<symbol id="file-tree-builtin-vue" viewBox="0 0 16 16">
478
479
  <path fill="currentColor" d="M9.62 2.25 8 5.02 6.38 2.25H1l7 12 7-12z" opacity=".5"/>
479
480
  <path fill="currentColor" d="M9.54 2.25 8 4.95l-1.54-2.7H4l4 7 4-7z"/>
480
- </symbol>`,gF=`<symbol id="file-tree-builtin-wasm" viewBox="0 0 16 16">
481
+ </symbol>`,bF=`<symbol id="file-tree-builtin-wasm" viewBox="0 0 16 16">
481
482
  <path fill="currentColor" d="M13 1a2 2 0 0 1 2 2v10a2 2 0 0 1-2 2H3a2 2 0 0 1-2-2V3a2 2 0 0 1 2-2h3a2 2 0 1 0 4 0z" class="subtract" opacity=".2"/>
482
483
  <path fill="currentColor" d="M4.64 11.4h.02l.8-3.4h.91l.73 3.45L7.88 8h.96l-1.25 5h-.97L5.9 9.6 5.1 13h-1L3 8h.98z"/>
483
484
  <path fill="currentColor" fill-rule="evenodd" d="M13 13h-1.02l-.33-1.11H9.9L9.64 13h-.97l1.26-5h1.54zm-2.49-3.77-.42 1.84h1.32l-.49-1.84z" clip-rule="evenodd"/>
484
- </symbol>`,_F=`<symbol id="file-tree-builtin-webpack" viewBox="0 0 16 16">
485
+ </symbol>`,xF=`<symbol id="file-tree-builtin-webpack" viewBox="0 0 16 16">
485
486
  <path fill="currentColor" d="M14.1 11.79 8.26 15v-2.5l3.64-1.94zm.4-.35V4.73l-2.14 1.2v4.3zm-12.6.35L7.74 15v-2.5L4.1 10.56zm-.4-.35V4.73l2.14 1.2v4.3zm.25-7.15 6-3.29v2.42L3.9 5.47l-.03.01zm12.5 0L8.25 1v2.42l3.85 2.05.03.01z" class="bg" opacity=".4"/>
486
487
  <path fill="currentColor" d="m7.74 11.93-3.59-1.92v-3.8l3.6 2.02zm.52 0 3.59-1.92v-3.8l-3.6 2.02zM4.4 5.77 8 3.85l3.6 1.93L8 7.8z" class="fg"/>
487
- </symbol>`,vF=`<symbol id="file-tree-builtin-yml" viewBox="0 0 16 16">
488
+ </symbol>`,SF=`<symbol id="file-tree-builtin-yml" viewBox="0 0 16 16">
488
489
  <path fill="currentColor" d="M7.5 2A1.5 1.5 0 0 1 9 3.5v3A1.5 1.5 0 0 1 7.5 8h-2v2A1.5 1.5 0 0 0 7 11.5v-1A1.5 1.5 0 0 1 8.5 9h5a1.5 1.5 0 0 1 1.5 1.5v3a1.5 1.5 0 0 1-1.5 1.5h-5A1.5 1.5 0 0 1 7 13.5v-1A2.5 2.5 0 0 1 4.5 10V8h-2A1.5 1.5 0 0 1 1 6.5v-3A1.5 1.5 0 0 1 2.5 2zm1 8a.5.5 0 0 0-.5.5v3a.5.5 0 0 0 .5.5h5a.5.5 0 0 0 .5-.5v-3a.5.5 0 0 0-.5-.5zm-6-7a.5.5 0 0 0-.5.5v3a.5.5 0 0 0 .5.5h5a.5.5 0 0 0 .5-.5v-3a.5.5 0 0 0-.5-.5z"/>
489
- </symbol>`,yF=`<symbol id="file-tree-builtin-zig" viewBox="0 0 16 16">
490
+ </symbol>`,CF=`<symbol id="file-tree-builtin-zig" viewBox="0 0 16 16">
490
491
  <path fill="currentColor" d="m14.73 1.5-7.29 8.82h4.17l-1.73 2.04H5.76L1.27 14.5l7.3-8.91H4.39l1.73-2.05h4.12z"/>
491
492
  <path fill="currentColor" d="M5.21 3.54 3.56 5.6h-.55v4.73h.83L2.1 12.36H1V3.54zm9.79 0v8.82h-4.3l1.74-2.04h.55V5.68h-.83l1.74-2.14z"/>
492
- </symbol>`,bF=[wP,kP,jP,MP,NP,PP,LP,RP,zP,VP,HP,UP,WP,GP,KP,QP,eF,tF,sF,cF,dF,fF,`<symbol id="file-tree-builtin-zip" viewBox="0 0 16 16">
493
+ </symbol>`,wF=[OP,NP,FP,IP,LP,RP,VP,HP,UP,GP,KP,qP,JP,YP,XP,nF,iF,aF,dF,fF,hF,gF,`<symbol id="file-tree-builtin-zip" viewBox="0 0 16 16">
493
494
  <path fill="currentColor" d="M4.585 2a2 2 0 0 1 1.028.285l1.788 1.072a1 1 0 0 0 .514.143H12A2 2 0 0 1 13.935 5H0V4a2 2 0 0 1 2-2z" class="bg" opacity=".5"/>
494
495
  <path fill="currentColor" fill-rule="evenodd" d="M14 12a2 2 0 0 1-2 2H2a2 2 0 0 1-2-2v-1.25h1v-1H0V6h14zM9.9 8.25c-.883 0-1.9.5-1.9.5H7v1h1v1s1.017.5 1.9.5c.884 0 1.6-.672 1.6-1.5s-.716-1.5-1.6-1.5M2 9.75v1h1v-1zm2 0v1h1v-1zm2 0v1h1v-1zm-5-1v1h1v-1zm2 0v1h1v-1zm2 0v1h1v-1z" class="fg" clip-rule="evenodd"/>
495
- </symbol>`],xF=[SP,CP,TP,EP,DP,OP,AP,FP,IP,BP,qP,JP,YP,XP,ZP,$P,nF,rF,iF,aF,oF,lF,uF,pF,mF,hF,gF,_F,vF,yF];function SF(e,t){return t.length===0?e:e.replace(`</svg>`,`\n ${t.join(`
496
- `)}\n</svg>`)}var CF=SF(xP,bF),wF={minimal:xP,standard:CF,complete:SF(CF,xF)},TF={".babelrc":`babel`,".babelrc.json":`babel`,".bash_profile":`bash`,".bashrc":`bash`,".browserslistrc":`browserslist`,".dockerignore":`docker`,".eslintignore":`eslint`,".eslintrc":`eslint`,".eslintrc.cjs":`eslint`,".eslintrc.js":`eslint`,".eslintrc.json":`eslint`,".eslintrc.yaml":`eslint`,".eslintrc.yml":`eslint`,".gitattributes":`git`,".gitignore":`git`,".gitkeep":`git`,".gitmodules":`git`,".oxlintrc.json":`oxc`,".postcssrc":`postcss`,".postcssrc.json":`postcss`,".postcssrc.yaml":`postcss`,".postcssrc.yml":`postcss`,".prettierignore":`prettier`,".prettierrc":`prettier`,".prettierrc.cjs":`prettier`,".prettierrc.js":`prettier`,".prettierrc.json":`prettier`,".prettierrc.mjs":`prettier`,".prettierrc.toml":`prettier`,".prettierrc.yaml":`prettier`,".prettierrc.yml":`prettier`,".stylelintignore":`stylelint`,".stylelintrc":`stylelint`,".stylelintrc.cjs":`stylelint`,".stylelintrc.js":`stylelint`,".stylelintrc.json":`stylelint`,".stylelintrc.mjs":`stylelint`,".stylelintrc.yaml":`stylelint`,".stylelintrc.yml":`stylelint`,".terraform.lock.hcl":`terraform`,".zprofile":`bash`,".zshenv":`bash`,".zshrc":`bash`,"babel.config.cjs":`babel`,"babel.config.js":`babel`,"babel.config.json":`babel`,"babel.config.mjs":`babel`,"biome.json":`biome`,"biome.jsonc":`biome`,"bootstrap.bundle.js":`bootstrap`,"bootstrap.bundle.min.js":`bootstrap`,"bootstrap.css":`bootstrap`,"bootstrap.js":`bootstrap`,"bootstrap.min.css":`bootstrap`,"bootstrap.min.js":`bootstrap`,"bun.lock":`bun`,"bun.lockb":`bun`,"bunfig.toml":`bun`,"claude.md":`claude`,"compose.yaml":`docker`,"compose.yml":`docker`,"docker-compose.override.yml":`docker`,"docker-compose.yaml":`docker`,"docker-compose.yml":`docker`,dockerfile:`docker`,"eslint.config.cjs":`eslint`,"eslint.config.js":`eslint`,"eslint.config.mjs":`eslint`,"eslint.config.mts":`eslint`,"eslint.config.ts":`eslint`,gemfile:`ruby`,"next.config.js":`nextjs`,"next.config.mjs":`nextjs`,"next.config.mts":`nextjs`,"next.config.ts":`nextjs`,"postcss.config.cjs":`postcss`,"postcss.config.js":`postcss`,"postcss.config.mjs":`postcss`,"postcss.config.ts":`postcss`,"prettier.config.cjs":`prettier`,"prettier.config.js":`prettier`,"prettier.config.mjs":`prettier`,rakefile:`ruby`,"readme.md":`markdown`,"stylelint.config.cjs":`stylelint`,"stylelint.config.js":`stylelint`,"stylelint.config.mjs":`stylelint`,"svgo.config.cjs":`svgo`,"svgo.config.js":`svgo`,"svgo.config.mjs":`svgo`,"svgo.config.ts":`svgo`,"tailwind.config.cjs":`tailwind`,"tailwind.config.js":`tailwind`,"tailwind.config.mjs":`tailwind`,"tailwind.config.ts":`tailwind`,"vite.config.js":`vite`,"vite.config.mjs":`vite`,"vite.config.mts":`vite`,"vite.config.ts":`vite`,"webpack.config.babel.js":`webpack`,"webpack.config.cjs":`webpack`,"webpack.config.js":`webpack`,"webpack.config.mjs":`webpack`,"webpack.config.ts":`webpack`},EF={"7z":`zip`,astro:`astro`,AUTHORS:`text`,avif:`image`,bash:`bash`,bmp:`image`,bz2:`zip`,c:`c`,cc:`cpp`,cfg:`text`,CHANGELOG:`text`,cjs:`javascript`,"code-workspace":`vscode`,conf:`text`,CONTRIBUTORS:`text`,cpp:`cpp`,csh:`bash`,css:`css`,csv:`table`,cts:`typescript`,cxx:`cpp`,db:`database`,editorconfig:`text`,env:`text`,"env.development":`text`,"env.local":`text`,"env.production":`text`,eot:`font`,erb:`ruby`,fish:`bash`,gemspec:`ruby`,gif:`image`,go:`go`,gql:`graphql`,graphql:`graphql`,gz:`zip`,h:`c`,hh:`cpp`,hpp:`cpp`,htm:`html`,html:`html`,hxx:`cpp`,icns:`image`,ico:`image`,ini:`text`,inl:`cpp`,jar:`zip`,jpeg:`image`,jpg:`image`,js:`javascript`,json:`json`,json5:`json`,jsonc:`json`,jsonl:`json`,jsx:`javascript`,ksh:`bash`,less:`css`,LICENSE:`text`,log:`text`,markdown:`markdown`,mcp:`mcp`,md:`markdown`,mdx:`markdown`,"mdx.tsx":`markdown`,mjs:`javascript`,mm:`cpp`,mts:`typescript`,ods:`table`,otf:`font`,png:`image`,postcss:`css`,py:`python`,pyi:`python`,pyw:`python`,pyx:`python`,rake:`ruby`,rar:`zip`,rb:`ruby`,rs:`rust`,rst:`text`,rtf:`text`,sass:`css`,scss:`css`,sh:`bash`,sql:`database`,sqlite:`database`,sqlite3:`database`,styl:`css`,svelte:`svelte`,svg:`svg`,swift:`swift`,tar:`zip`,tf:`terraform`,tfstate:`terraform`,tfvars:`terraform`,tgz:`zip`,tif:`image`,tiff:`image`,ts:`typescript`,tsv:`table`,tsx:`typescript`,ttf:`font`,txt:`text`,vue:`vue`,war:`zip`,wasm:`wasm`,wast:`wasm`,wat:`wasm`,webp:`image`,woff:`font`,woff2:`font`,xhtml:`html`,xls:`table`,xlsx:`table`,xz:`zip`,yaml:`yml`,yml:`yml`,zig:`zig`,zip:`zip`,zsh:`bash`},DF={jsx:`react`,sass:`sass`,scss:`sass`,tsx:`react`},OF=new Set([`bash`,`c`,`cpp`,`css`,`database`,`default`,`font`,`git`,`go`,`html`,`image`,`javascript`,`json`,`markdown`,`mcp`,`python`,`ruby`,`rust`,`swift`,`table`,`text`,`typescript`,`zip`]),kF=new Set([`complete`]);function AF(e){return wF[e===`none`?`minimal`:e]}function jF(e){return`file-tree-builtin-${e}`}function MF(e){return e!==`none`&&kF.has(e)}function NF(e,t,n){if(e===`minimal`||e===`none`)return;let r=e===`complete`,i=TF[t.toLowerCase()];if(i!=null&&(r||OF.has(i)))return i;for(let e of n){if(r){let t=DF[e];if(t!=null)return t}let t=EF[e];if(t!=null&&(r||OF.has(t)))return t}return`default`}var PF=`file-tree-container`,FF=`data-file-tree-style`,IF=`data-file-tree-unsafe-css`,LF=`data-file-tree-scrollbar-measure`,RF=`data-file-tree-scrollbar-gutter-measured`,zF=`--trees-scrollbar-gutter-measured`,BF=`header`,VF=`context-menu`,HF=`context-menu-trigger`;function UF(e){return e.spriteSheet!=null||e.remap!=null||e.byFileName!=null||e.byFileExtension!=null||e.byFileNameContains!=null}function WF(e){return e==null?{set:`complete`,colored:!0}:typeof e==`string`?{set:e,colored:!0}:{...e,set:e.set??(UF(e)?`none`:`complete`),colored:e.colored??!0}}var GF=e=>e.trim().toLowerCase(),KF=e=>e.split(`/`).at(-1)??e,qF=e=>{let t=e.toLowerCase().split(`.`),n=[];for(let e=1;e<t.length;e+=1)n.push(t.slice(e).join(`.`));return n};function JF(e,t){return typeof e==`string`?{name:e,remappedFrom:t}:{...e,remappedFrom:t}}function YF(e){let t=WF(e),n=t.remap,r=new Map;for(let[e,n]of Object.entries(t.byFileName??{}))r.set(e.toLowerCase(),n);let i=new Map;for(let[e,n]of Object.entries(t.byFileExtension??{}))i.set(GF(e),n);let a=Object.entries(t.byFileNameContains??{}).map(([e,t])=>[e.toLowerCase(),t]);return{resolveIcon:(e,o)=>{if(e===`file-tree-icon-file`&&o!=null){let s=KF(o),c=s.toLowerCase(),l=r.get(c);if(l!=null)return JF(l,e);for(let[t,n]of a)if(c.includes(t))return JF(n,e);let u=qF(s);for(let t of u){let n=i.get(t);if(n!=null)return JF(n,e)}let d=NF(t.set,s,u);if(d!=null&&t.set!==`none`){if(d==="default"){let t=n?.[e];if(t!=null)return JF(t,e)}return{name:jF(d),remappedFrom:e,token:d}}}let s=n?.[e];return s==null?{name:e}:JF(s,e)}}}var XF=5,ZF=32,QF=128;function $F(){return{childIdByNameId:new Map,childIds:[],childPositionById:new Map,childVisibleChunkSums:null,totalChildSubtreeNodeCount:0,totalChildVisibleSubtreeCount:0}}function eI(){return{childIdByNameId:null,childIds:[],childPositionById:null,childVisibleChunkSums:null,totalChildSubtreeNodeCount:0,totalChildVisibleSubtreeCount:0}}function tI(e,t){if(t.childIdByNameId!=null)return t.childIdByNameId;let n=new Map;for(let r of t.childIds){let t=e[r];t!=null&&n.set(t.nameId,r)}return t.childIdByNameId=n,n}function nI(e){if(e.childPositionById!=null)return e.childPositionById;let t=new Map;for(let n=0;n<e.childIds.length;n++){let r=e.childIds[n];r!=null&&t.set(r,n)}return e.childPositionById=t,t}function rI(e,t){e.childPositionById!=null&&e.childPositionById.set(t,e.childIds.length),e.childIds.push(t)}function iI(e,t){if(e.childPositionById!=null)for(let n=t;n<e.childIds.length;n++){let t=e.childIds[n];t!=null&&e.childPositionById.set(t,n)}}function aI(e,t){let n=0,r=0;for(let i of t.childIds){let t=e[i];t!=null&&(n+=t.subtreeNodeCount,r+=t.visibleSubtreeCount)}t.totalChildSubtreeNodeCount=n,t.totalChildVisibleSubtreeCount=r,lI(e,t)}function oI(e,t,n,r){if(e.totalChildSubtreeNodeCount+=n,e.totalChildVisibleSubtreeCount+=r,e.childVisibleChunkSums==null||r===0)return;let i=nI(e).get(t);if(i===void 0)return;let a=i>>XF;e.childVisibleChunkSums[a]+=r}function sI(e,t,n){let r=t.childVisibleChunkSums;if(r!=null){let i=n,a=0;for(let o of r){if(i<o){let r=uI(e,t,a,i);return{...r,childVisibleIndex:n-r.localVisibleIndex}}i-=o,a+=ZF}throw Error(`Visible child index ${String(n)} is out of range`)}let i=n;for(let r=0;r<t.childIds.length;r++){let a=t.childIds[r];if(a==null)continue;let o=e[a];if(o!=null){if(i<o.visibleSubtreeCount)return{childIndex:r,childVisibleIndex:n-i,localVisibleIndex:i};i-=o.visibleSubtreeCount}}throw Error(`Visible child index ${String(n)} is out of range`)}function cI(e,t,n){let r=0,i=t.childVisibleChunkSums,a=0;if(i!=null){let e=n>>XF;for(let t=0;t<e;t+=1)r+=i[t]??0;a=e<<XF}for(let i=a;i<n;i+=1){let n=t.childIds[i];if(n==null)continue;let a=e[n];a!=null&&(r+=a.visibleSubtreeCount)}return r}function lI(e,t){if(t.childIds.length<QF){t.childVisibleChunkSums=null;return}let n=Math.ceil(t.childIds.length/ZF),r=new Int32Array(n);for(let n=0;n<t.childIds.length;n++){let i=t.childIds[n];if(i==null)continue;let a=e[i];a!=null&&(r[n>>XF]+=a.visibleSubtreeCount)}t.childVisibleChunkSums=r}function uI(e,t,n,r){let i=Math.min(t.childIds.length,n+ZF),a=r;for(let r=n;r<i;r++){let n=t.childIds[r];if(n==null)continue;let i=e[n];if(i!=null){if(a<i.visibleSubtreeCount)return{childIndex:r,localVisibleIndex:a};a-=i.visibleSubtreeCount}}throw Error(`Visible child index ${String(r)} is out of range`)}var dI=7,fI=3,pI=8,mI=4;function hI(e,t,n=0){return e<<mI|n<<fI|t}function gI(e){return e.depthAndFlags>>>mI}function _I(e){return(e.depthAndFlags&pI)>>fI}function Y(e){return(e.depthAndFlags&pI)!==0}function vI(e){return e.depthAndFlags&dI}function yI(e,t){return(vI(e)&t)!==0}function bI(e,t){e.depthAndFlags|=t}function xI(e,t){e.depthAndFlags=hI(t,vI(e),_I(e))}var SI=Symbol(`benchmarkInstrumentation`);function CI(e,t){return t==null||Object.defineProperty(e,SI,{configurable:!0,enumerable:!1,value:t,writable:!1}),e}function wI(e){return e==null?null:e[SI]??null}function X(e,t,n){return e==null?n():e.measurePhase(t,n)}function TI(e,t,n){Number.isFinite(n)&&e!=null&&e.setCounter(t,n)}function EI(e){return e>=48&&e<=57}function DI(e){let t=[],n=0,r=0;for(;r<e.length;){for(;r<e.length&&!EI(e.charCodeAt(r));)r+=1;if(r>=e.length)break;r>n&&t.push(e.slice(n,r));let i=0;for(;r<e.length&&EI(e.charCodeAt(r));)i=i*10+(e.charCodeAt(r)-48),r+=1;t.push(i),n=r}return(n<e.length||t.length===0)&&t.push(e.slice(n)),t}function OI(e){let t=e.toLowerCase();return{lowerValue:t,tokens:DI(t)}}function kI(e,t){let n=Math.min(e.length,t.length);for(let r=0;r<n;r++){let n=e[r],i=t[r];if(n===i)continue;if(typeof n==`number`&&typeof i==`number`)return n<i?-1:1;let a=String(n),o=String(i);if(a!==o)return a<o?-1:1}return e.length===t.length?0:e.length<t.length?-1:1}function AI(e,t){if(e.tokens.length===1&&t.tokens.length===1&&typeof e.tokens[0]==`string`&&typeof t.tokens[0]==`string`)return e.lowerValue===t.lowerValue?0:e.lowerValue<t.lowerValue?-1:1;let n=kI(e.tokens,t.tokens);return n===0?e.lowerValue===t.lowerValue?0:e.lowerValue<t.lowerValue?-1:1:n}function jI(e,t,n){let r=AI(n(e),n(t));return r===0?e===t?0:e<t?-1:1:r}function MI(e,t){return jI(e,t,OI)}function NI(e,t){return t===e.segments.length-1?+!!e.isDirectory:1}function PI(e,t){let n=Math.min(e.segments.length,t.segments.length);for(let r=0;r<n;r++){let n=e.segments[r],i=t.segments[r];if(n===i)continue;let a=NI(e,r);return a===NI(t,r)?MI(n,i):a===1?-1:1}return e.segments.length===t.segments.length?e.isDirectory===t.isDirectory?0:e.isDirectory?-1:1:e.segments.length<t.segments.length?-1:1}function FI(e,t){return PI(e,t)}function II(e,t,n){let r=e=>{let t=n.get(e);if(t!=null)return t;let r=OI(e);return n.set(e,r),r},i=Math.min(e.segments.length,t.segments.length);for(let n=0;n<i;n++){let i=e.segments[n],a=t.segments[n];if(i===a)continue;let o=NI(e,n);return o===NI(t,n)?jI(i,a,r):o===1?-1:1}return e.segments.length===t.segments.length?e.isDirectory===t.isDirectory?0:e.isDirectory?-1:1:e.segments.length<t.segments.length?-1:1}function LI(e,t){let n=e.sortKeyById[t];if(n!==void 0)return n;let r=e.valueById[t],i=OI(r);return e.sortKeyById[t]=i,i}function RI(e={}){return{flattenEmptyDirectories:e.flattenEmptyDirectories!==!1,sort:e.sort??`default`}}function zI(e){let t=e.length>0&&e.charCodeAt(e.length-1)===47,n=t?e.length-1:e.length,r=[],i=0;for(let t=0;t<n;t++)e.charCodeAt(t)===47&&(r.push(e.slice(i,t)),i=t+1);return r.push(e.slice(i,n)),{hasTrailingSlash:t,segments:r}}function BI(e){let{hasTrailingSlash:t,segments:n}=zI(e);return{basename:n[n.length-1]??``,isDirectory:t,path:e,segments:n}}function VI(e){if(e.length===0)return{requiresDirectory:!1,segments:[]};let{hasTrailingSlash:t,segments:n}=zI(e);return{requiresDirectory:t,segments:n}}function HI(){let e=new Map;return e.set(``,0),{idByValue:e,valueById:[``],sortKeyById:[OI(``)]}}function UI(e,t){let n=e.idByValue.get(t);if(n!==void 0)return n;let r=e.valueById.length;return e.idByValue.set(t,r),e.valueById.push(t),r}function WI(e,t){let n=e.valueById[t];if(n===void 0)throw Error(`Unknown segment ID: ${String(t)}`);return n}var GI=Symbol(`pathStorePreparedInputKind`);function KI(e,t){return e[GI]=t,e}function qI(e){return{basename:e.basename,depth:e.segments.length,isDirectory:e.isDirectory,path:e.path,segments:e.segments}}function JI(e,t,n){return n==="default"?FI(e,t):n(qI(e),qI(t))}function YI(){return{depthAndFlags:hI(0,3,1),nameId:0,parentId:0,subtreeNodeCount:1,visibleSubtreeCount:1}}function XI(e,t){let n=Math.min(e.length,t.length);for(let r=0;r<n;r++)if(e[r]!==t[r])return r;return n}function ZI(e){return e.isDirectory?e.segments.length:e.segments.length-1}function QI(e){return Array.isArray(e)&&e.every(e=>typeof e==`object`&&!!e&&typeof e.path==`string`&&Array.isArray(e.segments)&&typeof e.basename==`string`&&typeof e.isDirectory==`boolean`)}function $I(e){return Array.isArray(e)&&e.every(e=>typeof e==`string`)}function eL(e,t={}){return oL(e,t).map(e=>e.path)}function tL(e,t={}){let n=oL(e,t);return KI({paths:n.map(e=>e.path),preparedPaths:n},`prepared`)}function nL(e){let t=e.length,n=!1;for(let r=0;r<t;r+=1){let t=e[r];if(t.length>0&&t.charCodeAt(t.length-1)===47){n=!0;break}}return KI({paths:e,presortedPaths:e,presortedPathsContainDirectories:n},`presorted`)}function rL(e){let t=e,n=t.preparedPaths;if(t[GI]===`prepared`&&n!=null)return n;if(!QI(n))throw Error(`preparedInput must come from PathStore.prepareInput()`);return n}function iL(e){let t=e;return t[GI]===`presorted`&&t.presortedPaths!=null||$I(t.presortedPaths)?t.presortedPaths:null}function aL(e){let t=e;return typeof t.presortedPathsContainDirectories==`boolean`?t.presortedPathsContainDirectories:null}function oL(e,t={}){let n=RI(t),r=wI(t);TI(r,`workload.inputFiles`,e.length);let i=X(r,`store.preparePathEntries.parse`,()=>e.map(e=>BI(e)));return X(r,`store.preparePathEntries.sort`,()=>i.sort((e,t)=>JI(e,t,n.sort))),i}var sL=class{directories=new Map;directoryStack=[0];presortedDirectoryNodeIds=[];initialExpandedPathSet;createdDirectoriesAllExpanded=!1;createdDirectoryCount=0;lastPreparedPath=null;nodes=[YI()];options;instrumentation;segmentSortKeyCache=new Map;segmentTable=HI();hasDeferredDirectoryIndexes=!1;constructor(e={}){this.instrumentation=wI(e),this.options=RI(e);let t=e.initialExpandedPaths??null;if(t==null||t.length===0)this.initialExpandedPathSet=null;else{let e=new Set,n=t.length;for(let r=0;r<n;r+=1){let n=t[r],i=n.length;e.add(i>0&&n.charCodeAt(i-1)===47?n.slice(0,i-1):n)}this.initialExpandedPathSet=e,this.createdDirectoriesAllExpanded=!0}this.directories.set(0,$F())}appendPaths(e){return X(this.instrumentation,`store.builder.appendPaths.parse`,()=>this.appendPreparedPaths(e.map(e=>BI(e))))}appendPreparedPaths(e,t=!0){return this.createdDirectoriesAllExpanded=!1,X(this.instrumentation,`store.builder.appendPreparedPaths`,()=>{for(let n of e)this.appendPreparedPath(n,t)}),this}appendPresortedPaths(e,t=null){return X(this.instrumentation,`store.builder.appendPresortedPaths`,()=>{if(t===!1){this.appendPresortedFilePaths(e);return}this.createdDirectoriesAllExpanded=!1;let n=null,r=0,i=this.nodes,a=this.segmentTable,o=a.idByValue,s=a.valueById,c=this.directoryStack,l=0,u=``,d=0;for(let t of e){if(n===t)throw Error(`Duplicate path: "${t}"`);let e=t.length>0&&t.charCodeAt(t.length-1)===47,a=e?t.length-1:t.length,f=0,p=0;if(n!=null){if(u.length>0&&t.length>u.length&&t.startsWith(u))f=d,p=u.length;else{let r=Math.min(a,n.length),i=!0;for(let e=0;e<r;e++){let r=t.charCodeAt(e);if(r!==n.charCodeAt(e)){i=!1;break}r===47&&(f++,p=e+1)}i&&e&&r===a&&n.length>a&&n.charCodeAt(a)===47&&(f++,p=a+1)}}l=f,r=f;let m=p,h=t.indexOf(`/`,m);for(;h>=0&&h<a;){let e=c[l];if(e===void 0)throw Error(`Directory stack underflow while building the path store`);r++;let n=t.slice(m,h),a=o.get(n);a===void 0&&(a=s.length,o.set(n,a),s.push(n));let u=i.length;i.push({depthAndFlags:hI(r,0,1),nameId:a,parentId:e,subtreeNodeCount:1,visibleSubtreeCount:1}),this.recordCreatedDirectoryPath(t.slice(0,h)),l++,c[l]=u,m=h+1,h=t.indexOf(`/`,m)}if(e){if(m<a){let e=c[l];if(e===void 0)throw Error(`Unable to resolve directory parent for "${t}"`);r++;let n=t.slice(m,a),u=o.get(n);u===void 0&&(u=s.length,o.set(n,u),s.push(n));let d=i.length;i.push({depthAndFlags:hI(r,0,1),nameId:u,parentId:e,subtreeNodeCount:1,visibleSubtreeCount:1}),l++,c[l]=d,m=a+1}let e=c[l];if(e===void 0)throw Error(`Unable to resolve directory node for "${t}"`);this.promoteDirectoryToExplicit(e,t)}else{let e=c[l];if(e===void 0)throw Error(`Unable to resolve file parent for "${t}"`);let n=t.slice(m),a=o.get(n);a===void 0&&(a=s.length,o.set(n,a),s.push(n)),i.push({depthAndFlags:hI(r+1,0),nameId:a,parentId:e,subtreeNodeCount:1,visibleSubtreeCount:1})}m!==u.length&&(u=t.substring(0,m),d=r),n=t}c.length=l+1,n!=null&&(this.lastPreparedPath=BI(n)),this.hasDeferredDirectoryIndexes=!0}),this}appendPresortedFilePaths(e){let t=null,n=0,r=this.nodes,i=this.segmentTable,a=i.idByValue,o=i.valueById,s=this.directoryStack,c=0,l=``,u=0;for(let i of e){if(t===i)throw Error(`Duplicate path: "${i}"`);let e=i.length,d=0,f=0;if(t!=null){if(l.length>0&&i.length>l.length&&i.startsWith(l))d=u,f=l.length;else{let n=Math.min(e,t.length);for(let e=0;e<n;e++){let n=i.charCodeAt(e);if(n!==t.charCodeAt(e))break;n===47&&(d++,f=e+1)}}}c=d,n=d;let p=f,m=i.indexOf(`/`,p);for(;m>=0;){let e=s[c];if(e===void 0)throw Error(`Directory stack underflow while building the path store`);n++;let t=i.slice(p,m),l=a.get(t);l===void 0&&(l=o.length,a.set(t,l),o.push(t));let u=r.length;r.push({depthAndFlags:hI(n,0,1),nameId:l,parentId:e,subtreeNodeCount:1,visibleSubtreeCount:1}),this.recordCreatedDirectoryPath(i.slice(0,m)),this.presortedDirectoryNodeIds.push(u),c++,s[c]=u,p=m+1,m=i.indexOf(`/`,p)}let h=s[c];if(h===void 0)throw Error(`Unable to resolve file parent for "${i}"`);let g=i.slice(p),_=a.get(g);_===void 0&&(_=o.length,a.set(g,_),o.push(g)),r.push({depthAndFlags:hI(n+1,0),nameId:_,parentId:h,subtreeNodeCount:1,visibleSubtreeCount:1}),p!==l.length&&(l=i.substring(0,p),u=n),t=i}s.length=c+1,t!=null&&(this.lastPreparedPath=BI(t)),this.hasDeferredDirectoryIndexes=!0}finish(e={}){let t=e.skipSubtreeCountPass===!0;return this.hasDeferredDirectoryIndexes?(X(this.instrumentation,`store.builder.buildDirectoryIndexes`,()=>this.buildPresortedFinish(t)),this.hasDeferredDirectoryIndexes=!1):t||X(this.instrumentation,`store.builder.computeSubtreeCounts`,()=>this.computeSubtreeCounts(0)),{directories:this.directories,nodes:this.nodes,options:this.options,rootId:0,segmentTable:this.segmentTable,presortedDirectoryNodeIds:this.presortedDirectoryNodeIds.length>0?this.presortedDirectoryNodeIds:null}}didMatchAllInitialExpandedPaths(){return this.createdDirectoriesAllExpanded&&this.initialExpandedPathSet!=null&&this.createdDirectoryCount===this.initialExpandedPathSet.size}appendPreparedPath(e,t){if(this.hasDeferredDirectoryIndexes&&=(this.buildDirectoryIndexes(),!1),this.lastPreparedPath!=null){if(e.path===this.lastPreparedPath.path)throw Error(`Duplicate path: "${e.path}"`);if(t&&(this.options.sort==="default"?II(this.lastPreparedPath,e,this.segmentSortKeyCache):JI(this.lastPreparedPath,e,this.options.sort))>0)throw Error(`Builder input must be sorted before appendPaths(): "${e.path}"`)}let n=this.lastPreparedPath,r=ZI(e),i=n==null?0:ZI(n),a=n==null?0:XI(n.segments,e.segments),o=Math.min(a,r,i);this.directoryStack.length=o+1;for(let n=o;n<r;n++){let r=this.directoryStack[this.directoryStack.length-1];if(r===void 0)throw Error(`Directory stack underflow while building the path store`);let i=t?this.getOrCreateDirectoryChild(r,e.segments[n]):this.createDirectoryChild(r,e.segments[n]);this.directoryStack.push(i)}if(e.isDirectory){let t=this.directoryStack[this.directoryStack.length-1];if(t===void 0)throw Error(`Unable to resolve directory node for "${e.path}"`);this.promoteDirectoryToExplicit(t,e.path),this.lastPreparedPath=e;return}let s=this.directoryStack[this.directoryStack.length-1];if(s===void 0)throw Error(`Unable to resolve file parent for "${e.path}"`);t?this.createFileChild(s,e.basename,e.path):this.createFileChildUnchecked(s,e.basename),this.lastPreparedPath=e}recordCreatedDirectoryPath(e){this.createdDirectoriesAllExpanded&&this.initialExpandedPathSet!=null&&(this.createdDirectoryCount+=1,this.initialExpandedPathSet.has(e)||(this.createdDirectoriesAllExpanded=!1))}createFileChild(e,t,n){let r=UI(this.segmentTable,t),i=this.getDirectoryIndex(e),a=i.childIdByNameId;if(a!=null&&a.get(r)!==void 0)throw Error(`Path collides with an existing entry: "${n}"`);let o=this.nodes[e];if(o===void 0)throw Error(`Unknown parent node ID: ${String(e)}`);let s=this.nodes.length;return this.nodes.push({depthAndFlags:hI(gI(o)+1,0),nameId:r,parentId:e,subtreeNodeCount:1,visibleSubtreeCount:1}),a?.set(r,s),rI(i,s),s}createFileChildUnchecked(e,t){let n=UI(this.segmentTable,t),r=this.getDirectoryIndex(e),i=this.nodes[e];if(i===void 0)throw Error(`Unknown parent node ID: ${String(e)}`);let a=this.nodes.length;return this.nodes.push({depthAndFlags:hI(gI(i)+1,0),nameId:n,parentId:e,subtreeNodeCount:1,visibleSubtreeCount:1}),r.childIdByNameId!=null&&r.childIdByNameId.set(n,a),rI(r,a),a}getOrCreateDirectoryChild(e,t){let n=UI(this.segmentTable,t),r=this.getDirectoryIndex(e);if(r.childIdByNameId!=null){let e=r.childIdByNameId.get(n);if(e!==void 0){let n=this.nodes[e];if(n!=null&&!Y(n))throw Error(`Path collides with an existing file while creating directory "${t}"`);return e}}let i=this.nodes[e];if(i===void 0)throw Error(`Unknown parent node ID: ${String(e)}`);let a=this.nodes.length;return this.nodes.push({depthAndFlags:hI(gI(i)+1,0,1),nameId:n,parentId:e,subtreeNodeCount:1,visibleSubtreeCount:1}),r.childIdByNameId!=null&&r.childIdByNameId.set(n,a),rI(r,a),this.directories.set(a,$F()),a}createDirectoryChild(e,t){let n=UI(this.segmentTable,t),r=this.getDirectoryIndex(e),i=this.nodes[e];if(i===void 0)throw Error(`Unknown parent node ID: ${String(e)}`);let a=this.nodes.length;return this.nodes.push({depthAndFlags:hI(gI(i)+1,0,1),nameId:n,parentId:e,subtreeNodeCount:1,visibleSubtreeCount:1}),r.childIdByNameId!=null&&r.childIdByNameId.set(n,a),rI(r,a),this.directories.set(a,$F()),a}promoteDirectoryToExplicit(e,t){let n=this.nodes[e];if(n===void 0)throw Error(`Unknown directory node ID: ${String(e)}`);if(!Y(n))throw Error(`Path is not a directory: "${t}"`);if(yI(n,1))throw Error(`Duplicate path: "${t}"`);bI(n,1)}getDirectoryIndex(e){let t=this.directories.get(e);if(t!==void 0)return t;throw Error(`Unknown directory child index for node ${String(e)}`)}buildPresortedFinish(e){let t=this.nodes,n=this.directories;n.set(0,eI());let r=-1,i=null;for(let e=1;e<t.length;e++){let a=t[e];if(a==null)continue;if(Y(a)){let t=eI();n.set(e,t),r=e,i=t}let o;a.parentId===r?o=i:(o=n.get(a.parentId),r=a.parentId,i=o??null),o?.childIds.push(e)}if(!e)for(let e=t.length-1;e>=1;e--){let n=t[e];if(n==null)continue;let r=t[n.parentId];r!=null&&(r.subtreeNodeCount+=n.subtreeNodeCount,r.visibleSubtreeCount+=n.visibleSubtreeCount)}}buildDirectoryIndexes(){let e=this.nodes;for(let t=1;t<e.length;t++){let n=e[t];if(n==null)continue;Y(n)&&this.directories.set(t,$F());let r=this.directories.get(n.parentId);r!=null&&(r.childIdByNameId!=null&&r.childIdByNameId.set(n.nameId,t),rI(r,t))}}computeSubtreeCounts(e){let t=this.nodes[e];if(t===void 0)throw Error(`Unknown node ID: ${String(e)}`);if(!Y(t))return t.subtreeNodeCount=1,t.visibleSubtreeCount=1,1;let n=this.getDirectoryIndex(e),r=1;for(let e of n.childIds)r+=this.computeSubtreeCounts(e);return aI(this.nodes,n),t.subtreeNodeCount=r,t.visibleSubtreeCount=r,r}};function cL(e,t=`closed`,n=null){let r=uL(t);return{activeNodeCount:e.nodes.length-1,collapsedDirectoryIds:new Set,collapseNewDirectoriesByDefault:!1,defaultExpansion:r,directoriesOpenByDefault:r===`open`,hasCollapsedDirectoryOverrides:!1,directoryLoadInfoById:new Map,expandedDirectoryIds:new Set,instrumentation:n,listeners:new Map,pathCacheByNodeId:new Map([[e.rootId,{path:``,version:0}]]),pathCacheVersion:0,snapshot:e,transactionStack:[]}}function lL(){return{affectedAncestorIds:new Set,affectedNodeIds:new Set,events:[]}}function uL(e){if(typeof e!=`number`)return e;if(!Number.isInteger(e)||e<0)throw Error(`initialExpansion must be "open", "closed", or a non-negative integer depth. Received: ${String(e)}`);return e}function dL(e,t){return yI(t,2)||e.defaultExpansion===`open`?!0:e.defaultExpansion!==`closed`&&gI(t)<=e.defaultExpansion}function fL(e,t,n=e.snapshot.nodes[t]){return n==null||!Y(n)?!1:e.directoriesOpenByDefault&&!e.hasCollapsedDirectoryOverrides?!0:e.collapsedDirectoryIds.has(t)?!1:e.expandedDirectoryIds.has(t)?!0:dL(e,n)}function pL(e,t,n,r=e.snapshot.nodes[t]){if(r==null||!Y(r))return;let i=dL(e,r);if(n){if(i){e.collapsedDirectoryIds.delete(t),e.hasCollapsedDirectoryOverrides=e.collapsedDirectoryIds.size>0;return}e.expandedDirectoryIds.add(t);return}if(i){e.collapsedDirectoryIds.add(t),e.hasCollapsedDirectoryOverrides=!0;return}e.expandedDirectoryIds.delete(t)}function mL(e,t){let n=e.directoryLoadInfoById.get(t);if(n!=null)return n;let r={activeAttemptId:null,errorMessage:null,nextAttemptId:1,state:`loaded`};return e.directoryLoadInfoById.set(t,r),r}function hL(e,t){return e.directoryLoadInfoById.get(t)?.state??`loaded`}function gL(e,t){let n=mL(e,t);if(n.state===`loading`&&n.activeAttemptId!=null)return{attemptId:n.activeAttemptId,nodeId:t,reused:!0};let r=n.nextAttemptId;return n.activeAttemptId=r,n.errorMessage=null,n.nextAttemptId+=1,n.state=`loading`,{attemptId:r,nodeId:t,reused:!1}}function _L(e,t){let n=mL(e,t);n.activeAttemptId=null,n.errorMessage=null,n.state=`unloaded`}function vL(e,t,n){let r=e.directoryLoadInfoById.get(t);return r==null||r.activeAttemptId!==n?!1:(r.activeAttemptId=null,r.errorMessage=null,r.state=`loaded`,!0)}function yL(e,t,n){return e.directoryLoadInfoById.get(t)?.activeAttemptId===n}function bL(e,t,n,r){let i=e.directoryLoadInfoById.get(t);return i==null||i.activeAttemptId!==n?!1:(i.activeAttemptId=null,i.errorMessage=r??null,i.state=`error`,!0)}function xL(e,t){e.directoryLoadInfoById.delete(t)}function SL(e,t,n){let r=n,i=e.listeners.get(t);return i==null?e.listeners.set(t,new Set([r])):i.add(r),()=>{let n=e.listeners.get(t);n!=null&&(n.delete(r),n.size===0&&e.listeners.delete(t))}}function CL(e){return{affectedAncestorIds:e.affectedAncestorIds??[],affectedNodeIds:e.affectedNodeIds??[],canonicalChanged:!0,operation:`add`,path:e.path,projectionChanged:e.projectionChanged,visibleCountDelta:null}}function wL(e){return{affectedAncestorIds:e.affectedAncestorIds??[],affectedNodeIds:e.affectedNodeIds??[],canonicalChanged:!0,operation:`remove`,path:e.path,projectionChanged:e.projectionChanged,recursive:e.recursive,visibleCountDelta:null}}function TL(e){return{affectedAncestorIds:e.affectedAncestorIds??[],affectedNodeIds:e.affectedNodeIds??[],canonicalChanged:!0,from:e.from,operation:`move`,projectionChanged:e.projectionChanged,to:e.to,visibleCountDelta:null}}function EL(e){return{affectedAncestorIds:e.affectedAncestorIds??[],affectedNodeIds:e.affectedNodeIds??[],canonicalChanged:!1,operation:`expand`,path:e.path,projectionChanged:!0,visibleCountDelta:null}}function DL(e){return{affectedAncestorIds:e.affectedAncestorIds??[],affectedNodeIds:e.affectedNodeIds??[],canonicalChanged:!1,operation:`collapse`,path:e.path,projectionChanged:!0,visibleCountDelta:null}}function OL(e){return{affectedAncestorIds:e.affectedAncestorIds??[],affectedNodeIds:e.affectedNodeIds??[],canonicalChanged:!1,operation:`mark-directory-unloaded`,path:e.path,projectionChanged:e.projectionChanged,visibleCountDelta:null}}function kL(e){return{affectedAncestorIds:e.affectedAncestorIds??[],affectedNodeIds:e.affectedNodeIds??[],attemptId:e.attemptId,canonicalChanged:!1,operation:`begin-child-load`,path:e.path,projectionChanged:e.projectionChanged,reused:e.reused,visibleCountDelta:null}}function AL(e){return{affectedAncestorIds:e.affectedAncestorIds??[],affectedNodeIds:e.affectedNodeIds??[],attemptId:e.attemptId,canonicalChanged:e.childEvents.some(e=>e.canonicalChanged),childEvents:e.childEvents,operation:`apply-child-patch`,path:e.path,projectionChanged:e.projectionChanged,visibleCountDelta:null}}function jL(e){return{affectedAncestorIds:e.affectedAncestorIds??[],affectedNodeIds:e.affectedNodeIds??[],attemptId:e.attemptId,canonicalChanged:!1,operation:`complete-child-load`,path:e.path,projectionChanged:e.projectionChanged,stale:e.stale,visibleCountDelta:null}}function ML(e){return{affectedAncestorIds:e.affectedAncestorIds??[],affectedNodeIds:e.affectedNodeIds??[],attemptId:e.attemptId,canonicalChanged:!1,errorMessage:e.errorMessage,operation:`fail-child-load`,path:e.path,projectionChanged:e.projectionChanged,stale:e.stale,visibleCountDelta:null}}function NL(e){return{activeNodeCountAfter:e.activeNodeCountAfter,activeNodeCountBefore:e.activeNodeCountBefore,affectedAncestorIds:e.affectedAncestorIds??[],affectedNodeIds:e.affectedNodeIds??[],cachedPathEntryCountAfter:e.cachedPathEntryCountAfter,cachedPathEntryCountBefore:e.cachedPathEntryCountBefore,canonicalChanged:!1,idsPreserved:e.idsPreserved,loadInfoEntryCountAfter:e.loadInfoEntryCountAfter,loadInfoEntryCountBefore:e.loadInfoEntryCountBefore,mode:e.mode,operation:`cleanup`,projectionChanged:e.projectionChanged,reclaimedCachedPathEntryCount:e.reclaimedCachedPathEntryCount,reclaimedLoadInfoEntryCount:e.reclaimedLoadInfoEntryCount,reclaimedNodeSlotCount:e.reclaimedNodeSlotCount,reclaimedSegmentCount:e.reclaimedSegmentCount,segmentCountAfter:e.segmentCountAfter,segmentCountBefore:e.segmentCountBefore,totalNodeSlotCountAfter:e.totalNodeSlotCountAfter,totalNodeSlotCountBefore:e.totalNodeSlotCountBefore,visibleCountDelta:null}}function PL(e,t,n){return{...n,visibleCountDelta:GL(e)-t}}function FL(e,t){let n=GL(e),r=lL();e.transactionStack.push(r);try{t()}catch(t){throw RL(e,r,!1),t}RL(e,r,!0,GL(e)-n)}function IL(e,t){let n=e.instrumentation;if(n==null){LL(e,t);return}X(n,`store.events.record`,()=>LL(e,t))}function LL(e,t){let n=e.transactionStack[e.transactionStack.length-1]??null;if(n==null){UL(e,t);return}n.events.push(t),HL(n,t)}function RL(e,t,n,r=null){if(e.transactionStack.pop()!==t)throw Error(`Transaction stack underflow`);if(!n)return;let i=e.transactionStack[e.transactionStack.length-1]??null;if(i!=null){let n=e.instrumentation;n==null?VL(i,t):X(n,`store.events.batch.merge`,()=>VL(i,t));return}let a=zL(t,r),o=e.instrumentation;if(o==null){UL(e,a);return}X(o,`store.events.batch.commit`,()=>UL(e,a))}function zL(e,t){return{affectedAncestorIds:[...e.affectedAncestorIds],affectedNodeIds:[...e.affectedNodeIds],canonicalChanged:e.events.some(e=>e.canonicalChanged),events:[...e.events],operation:`batch`,projectionChanged:e.events.some(e=>e.projectionChanged),visibleCountDelta:t}}function BL(e,t){for(let n of t.affectedAncestorIds)e.affectedAncestorIds.add(n);for(let n of t.affectedNodeIds)e.affectedNodeIds.add(n)}function VL(e,t){for(let n of t.events)e.events.push(n);BL(e,t)}function HL(e,t){for(let n of t.affectedNodeIds)e.affectedNodeIds.add(n);for(let n of t.affectedAncestorIds)e.affectedAncestorIds.add(n)}function UL(e,t){let n=e.instrumentation;if(n==null){WL(e,t);return}X(n,`store.events.emit`,()=>WL(e,t))}function WL(e,t){e.listeners.get(t.operation)?.forEach(e=>e(t)),e.listeners.get(`*`)?.forEach(e=>e(t))}function GL(e){return e.snapshot.nodes[e.snapshot.rootId]?.visibleSubtreeCount??0}function KL(e,t){if(e.snapshot.options.flattenEmptyDirectories!==!0)return null;let n=e.snapshot.nodes[t];if(n==null||!Y(n)||yI(n,2))return null;let r=e.snapshot.directories.get(t);if(r==null||r.childIds.length!==1)return null;let i=r.childIds[0];if(i==null)return null;let a=e.snapshot.nodes[i];return a==null||!Y(a)?null:i}function qL(e,t){let n=t;for(;;){let t=KL(e,n);if(t==null)return n;n=t}}function JL(e,t){let n=[t],r=t;for(;;){let t=KL(e,r);if(t==null)return n;n.push(t),r=t}}function YL(e,t){let n=t==null?e.snapshot.rootId:aR(e,t);return n==null?[]:cR(e,n)}function XL(e,t){let n=BI(t),r=n.isDirectory?n.segments:n.segments.slice(0,-1),i=CR(e,SR(e,r)),{createdNodeIds:a,directoryId:o}=lR(e,r),s=new Set(a),c=o;if(n.isDirectory){let n=Z(e,o);if(yI(n,1))throw Error(`Path already exists: "${t}"`);bI(n,1),e.pathCacheByNodeId.set(o,{path:t,version:e.pathCacheVersion}),s.add(o)}else c=dR(e,o,n.basename),s.add(c);nR(e,o);let l=CR(e,o);return CL({affectedAncestorIds:iR(e,c),affectedNodeIds:[...s],path:t,projectionChanged:wR(i,l)})}function ZL(e,t,n){let r=aR(e,t);if(r==null)throw Error(`Path does not exist: "${t}"`);let i=Z(e,r);if(yI(i,2))throw Error(`The root node cannot be removed`);if(Y(i)&&sR(e,r).childIds.length>0&&n.recursive!==!0)throw Error(`Cannot remove a non-empty directory without recursive: "${t}"`);let a=i.parentId,o=CR(e,a),s=bR(e,r);mR(e,a,r,i.nameId),xR(e,a),nR(e,a);let c=CR(e,a);return wL({affectedAncestorIds:iR(e,a),affectedNodeIds:s,path:t,projectionChanged:wR(o,c),recursive:n.recursive===!0})}function QL(e,t,n,r){let i=aR(e,t);if(i==null)throw Error(`Source path does not exist: "${t}"`);let a=Z(e,i);if(yI(a,2))throw Error(`The root node cannot be moved`);let o=r.collision??`error`,s=vR(e,i,n),c=CR(e,a.parentId),l=CR(e,s.parentId),u=WI(e.snapshot.segmentTable,a.nameId),d=UI(e.snapshot.segmentTable,s.basename);if(s.parentId===a.parentId&&u===s.basename)return null;if(Y(a)&&OR(e,i,s.parentId))throw Error(`Cannot move a directory into one of its descendants`);let f=tI(e.snapshot.nodes,sR(e,s.parentId)).get(d),p=s.existingNodeId??f??null;if(p!=null&&p!==i&&yR(e,p,o,_I(a))===`skip`)return null;let m=a.parentId;mR(e,m,i,a.nameId),a.parentId=s.parentId,a.nameId=d,e.pathCacheByNodeId.delete(i),DR(e,i),pR(e,s.parentId,i),xR(e,m),e.pathCacheVersion++,nR(e,m),s.parentId!==m&&nR(e,s.parentId);let h=CR(e,m),g=CR(e,s.parentId);return TL({affectedAncestorIds:[...new Set([...iR(e,m),...iR(e,s.parentId)])],affectedNodeIds:[i],from:t,projectionChanged:TR([c,l],[h,g]),to:tR(e,i)})}function $L(e,t){let n=e.pathCacheByNodeId.get(t);return n!=null&&n.version===e.pathCacheVersion?n.path:null}function eR(e,t,n){return e.pathCacheByNodeId.set(t,{path:n,version:e.pathCacheVersion}),n}function tR(e,t){let n=Z(e,t),r=$L(e,t);if(r!=null)return r;if(yI(n,2))return eR(e,t,``);let i=tR(e,n.parentId),a=WI(e.snapshot.segmentTable,n.nameId),o=i.length===0?a:`${i}${a}`;return eR(e,t,Y(n)?`${o}/`:o)}function nR(e,t){let n=e.instrumentation;if(n==null){AR(e,t);return}X(n,`store.recomputeCountsUpwardFrom`,()=>AR(e,t))}function rR(e,t){let n=[[t,0]],{nodes:r,directories:i}=e.snapshot;for(;n.length>0;){let t=n[n.length-1],a=t[0],o=r[a];if(o==null||!Y(o)){kR(e,a,o,!0),n.pop();continue}let s=i.get(a);if(s==null||t[1]>=s.childIds.length){kR(e,a,o,!0),n.pop();continue}let c=s.childIds[t[1]++];n.push([c,0])}}function iR(e,t){let n=[],r=t;for(;r!=null;){let t=Z(e,r);if(n.push(r),r===e.snapshot.rootId)break;r=t.parentId}return n}function aR(e,t){if(t.length===0)return e.snapshot.rootId;let n=VI(t);return oR(e,n.segments,n.requiresDirectory)}function oR(e,t,n){let r=e.snapshot.rootId;for(let n of t){let t=e.snapshot.segmentTable.idByValue.get(n);if(t===void 0)return null;let i=sR(e,r),a=tI(e.snapshot.nodes,i).get(t);if(a===void 0)return null;r=a}let i=Z(e,r);return n&&!Y(i)?null:r}function sR(e,t){let n=e.snapshot.directories.get(t);if(n===void 0)throw Error(`Unknown directory child index for node ${String(t)}`);return n}function Z(e,t){let n=e.snapshot.nodes[t];if(n===void 0||yI(n,4))throw Error(`Unknown node ID: ${String(t)}`);return n}function cR(e,t){let n=e.snapshot.nodes[t];if(n===void 0||yI(n,4))return[];if(!Y(n))return[tR(e,t)];if(sR(e,t).childIds.length===0)return yI(n,1)&&!yI(n,2)?[tR(e,t)]:[];let r=[],i=[{childIndex:0,nodeId:t}];for(;i.length>0;){let t=i[i.length-1];if(t==null)break;let n=e.snapshot.nodes[t.nodeId];if(n===void 0||yI(n,4)){i.pop();continue}if(!Y(n)){r.push(tR(e,t.nodeId)),i.pop();continue}let a=sR(e,t.nodeId);if(a.childIds.length===0){yI(n,1)&&!yI(n,2)&&r.push(tR(e,t.nodeId)),i.pop();continue}let o=a.childIds[t.childIndex];if(o==null){i.pop();continue}t.childIndex++,i.push({childIndex:0,nodeId:o})}return r}function lR(e,t){let n=[],r=e.snapshot.rootId;for(let i of t){let t=UI(e.snapshot.segmentTable,i),a=sR(e,r),o=tI(e.snapshot.nodes,a).get(t);if(o!==void 0){if(!Y(Z(e,o)))throw Error(`Cannot create a directory that collides with an existing file: "${i}"`);r=o;continue}r=uR(e,r,t),n.push(r)}return{createdNodeIds:n,directoryId:r}}function uR(e,t,n){let r=Z(e,t),i=e.snapshot.nodes.length;return e.snapshot.nodes.push({depthAndFlags:hI(gI(r)+1,0,1),nameId:n,parentId:t,subtreeNodeCount:1,visibleSubtreeCount:1}),e.snapshot.directories.set(i,$F()),pR(e,t,i),e.collapseNewDirectoriesByDefault&&(e.collapsedDirectoryIds.add(i),e.hasCollapsedDirectoryOverrides=!0),e.activeNodeCount++,i}function dR(e,t,n){let r=UI(e.snapshot.segmentTable,n),i=sR(e,t);if(tI(e.snapshot.nodes,i).has(r))throw Error(`Path already exists: "${MR(e,t,n)}"`);let a=Z(e,t),o=e.snapshot.nodes.length;return e.snapshot.nodes.push({depthAndFlags:hI(gI(a)+1,0),nameId:r,parentId:t,subtreeNodeCount:1,visibleSubtreeCount:1}),pR(e,t,o),e.activeNodeCount++,o}function fR(e,t,n){let r=0,i=t.childIds.length;for(;r<i;){let a=r+i>>>1,o=t.childIds[a];if(o==null){i=a;continue}hR(e,n,o)<0?i=a:r=a+1}return r}function pR(e,t,n){let r=sR(e,t),i=Z(e,n);tI(e.snapshot.nodes,r).set(i.nameId,n),oI(r,n,i.subtreeNodeCount,i.visibleSubtreeCount);let a=fR(e,r,n);r.childIds.splice(a,0,n),iI(r,a),lI(e.snapshot.nodes,r)}function mR(e,t,n,r){let i=sR(e,t),a=nI(i),o=a.get(n)??-1;tI(e.snapshot.nodes,i).delete(r),a.delete(n);let s=e.snapshot.nodes[n];s!=null&&oI(i,n,-s.subtreeNodeCount,-s.visibleSubtreeCount),o>=0&&(i.childIds.splice(o,1),iI(i,o),lI(e.snapshot.nodes,i))}function hR(e,t,n){let r=e.snapshot.options.sort;return r==="default"?gR(e,t,n):r(_R(e,t),_R(e,n))}function gR(e,t,n){let r=Z(e,t),i=Z(e,n),a=Y(r);if(a!==Y(i))return a?-1:1;let o=AI(LI(e.snapshot.segmentTable,r.nameId),LI(e.snapshot.segmentTable,i.nameId));if(o!==0)return o;let s=WI(e.snapshot.segmentTable,r.nameId),c=WI(e.snapshot.segmentTable,i.nameId);return s===c?t<n?-1:1:s<c?-1:1}function _R(e,t){let n=Z(e,t),r=tR(e,t),i=Y(n),a=i?r.slice(0,-1):r;return{basename:WI(e.snapshot.segmentTable,n.nameId),depth:gI(n),isDirectory:i,path:r,segments:a.length===0?[]:a.split(`/`)}}function vR(e,t,n){let r=Z(e,t),i=aR(e,n);if(i!=null){let t=Z(e,i);if(Y(t))return{basename:WI(e.snapshot.segmentTable,r.nameId),existingNodeId:null,parentId:i};let a=VI(n).segments;return{basename:a[a.length-1]??``,existingNodeId:i,parentId:t.parentId}}let a=VI(n),o=a.segments[a.segments.length-1]??``,s=a.segments.slice(0,-1),c=s.length===0?e.snapshot.rootId:oR(e,s,!0);if(c==null)throw Error(`Destination parent does not exist: "${n}"`);return{basename:o,existingNodeId:null,parentId:c}}function yR(e,t,n,r){if(n===`skip`)return`skip`;if(n===`error`)throw Error(`Destination already exists: "${tR(e,t)}"`);let i=Z(e,t);if(_I(i)!==r)throw Error(`replace collision requires the same source and destination kinds`);if(Y(i)&&sR(e,t).childIds.length>0)throw Error(`replace collision does not support non-empty directories`);let a=i.parentId,o=i.nameId;return bR(e,t),mR(e,a,t,o),xR(e,a),nR(e,a),`handled`}function bR(e,t){let n=[],r=[{nodeId:t,visitedChildren:!1}];for(;r.length>0;){let t=r.pop();if(t==null)break;let i=Z(e,t.nodeId);if(t.visitedChildren||!Y(i)){Y(i)&&e.snapshot.directories.delete(t.nodeId),bI(i,4),e.pathCacheByNodeId.delete(t.nodeId),e.collapsedDirectoryIds.delete(t.nodeId)&&(e.hasCollapsedDirectoryOverrides=e.collapsedDirectoryIds.size>0),e.expandedDirectoryIds.delete(t.nodeId),xL(e,t.nodeId),e.activeNodeCount--,n.push(t.nodeId);continue}r.push({nodeId:t.nodeId,visitedChildren:!0});let a=sR(e,t.nodeId);for(let e=a.childIds.length-1;e>=0;e--){let t=a.childIds[e];t!=null&&r.push({nodeId:t,visitedChildren:!1})}}return n}function xR(e,t){let n=t;for(;n!=null;){let t=Z(e,n);if(!Y(t)||yI(t,2)||sR(e,n).childIds.length>0)return;bI(t,1),n=t.parentId===n?null:t.parentId}}function SR(e,t){let n=e.snapshot.rootId;for(let r of t){let t=e.snapshot.segmentTable.idByValue.get(r);if(t==null)break;let i=tI(e.snapshot.nodes,sR(e,n)).get(t);if(i==null||!Y(Z(e,i)))break;n=i}return n}function CR(e,t){let n=ER(e,t);if(n==null)return null;let r=qL(e,n),i=Z(e,r),a=n===r?null:JL(e,n).map(t=>tR(e,t));return JSON.stringify({flattenedSegmentPaths:a,hasChildren:sR(e,r).childIds.length>0,path:tR(e,r),terminalKind:_I(i)})}function wR(e,t){return TR([e],[t])}function TR(e,t){for(let n=0;n<e.length;n+=1){let r=e[n],i=t[n];if(r==null||i==null||r!==i)return!0}return!1}function ER(e,t){let n=t;for(;n!=null;){let t=Z(e,n);if(!Y(t)||yI(t,2))return null;if(!fL(e,n,t))return n;n=t.parentId}return null}function DR(e,t){let n=Z(e,t);if(xI(n,(t===e.snapshot.rootId?-1:gI(Z(e,n.parentId)))+1),!Y(n))return;let r=sR(e,t);for(let t of r.childIds)DR(e,t)}function OR(e,t,n){let r=n;for(;r!=null;){if(r===t)return!0;let n=Z(e,r);if(r===e.snapshot.rootId)return!1;r=n.parentId}return!1}function kR(e,t,n=Z(e,t),r=!1){let i=e.instrumentation;if(i==null){jR(e,t,n,r);return}X(i,`store.recomputeNodeCounts`,()=>jR(e,t,n,r))}function AR(e,t){let n=t;for(;n!=null;){let t=Z(e,n),r=t.subtreeNodeCount,i=t.visibleSubtreeCount;if(kR(e,n,t),n===e.snapshot.rootId)return;let a=t.subtreeNodeCount-r,o=t.visibleSubtreeCount-i,s=t.parentId;(a!==0||o!==0)&&oI(sR(e,s),n,a,o),n=s}}function jR(e,t,n,r){if(!Y(n)){n.subtreeNodeCount=1,n.visibleSubtreeCount=1;return}let i=sR(e,t);if(r){let t=e.instrumentation;t==null?aI(e.snapshot.nodes,i):X(t,`store.recomputeNodeCounts.rebuildChildAggregates`,()=>aI(e.snapshot.nodes,i))}let a=1+i.totalChildSubtreeNodeCount,o=i.totalChildVisibleSubtreeCount;if(n.subtreeNodeCount=a,yI(n,2)){n.visibleSubtreeCount=o;return}n.visibleSubtreeCount=KL(e,t)==null?fL(e,t,n)?1+o:1:o}function MR(e,t,n){let r=tR(e,t);return r.length===0?n:`${r}${n}`}function NR(e){return e!=null&&!yI(e,4)}function PR(e,t){let n=e.snapshot.nodes[t];return!NR(n)||!Y(n)||yI(n,2)?null:n}function FR(e){let t=0;for(let[n,r]of e.pathCacheByNodeId)r.version===e.pathCacheVersion&&NR(e.snapshot.nodes[n])&&(t+=1);return t}function IR(e){return Math.max(0,e.valueById.length-1)}function LR(e){return{activeNodeCount:e.activeNodeCount,cachedPathEntryCount:FR(e),loadInfoEntryCount:e.directoryLoadInfoById.size,segmentCount:IR(e.snapshot.segmentTable),totalNodeSlotCount:Math.max(0,e.snapshot.nodes.length-1)}}function RR(e,t,n,r){return{activeNodeCountAfter:r.activeNodeCount,activeNodeCountBefore:n.activeNodeCount,cachedPathEntryCountAfter:r.cachedPathEntryCount,cachedPathEntryCountBefore:n.cachedPathEntryCount,idsPreserved:t,loadInfoEntryCountAfter:r.loadInfoEntryCount,loadInfoEntryCountBefore:n.loadInfoEntryCount,mode:e,reclaimedCachedPathEntryCount:n.cachedPathEntryCount-r.cachedPathEntryCount,reclaimedLoadInfoEntryCount:n.loadInfoEntryCount-r.loadInfoEntryCount,reclaimedNodeSlotCount:n.totalNodeSlotCount-r.totalNodeSlotCount,reclaimedSegmentCount:n.segmentCount-r.segmentCount,segmentCountAfter:r.segmentCount,segmentCountBefore:n.segmentCount,totalNodeSlotCountAfter:r.totalNodeSlotCount,totalNodeSlotCountBefore:n.totalNodeSlotCount}}function zR(e){let t=[],n=[];for(let n of e.collapsedDirectoryIds)PR(e,n)!=null&&t.push(tR(e,n));for(let t of e.expandedDirectoryIds)PR(e,t)!=null&&n.push(tR(e,t));return{collapsedPaths:t,expandedPaths:n}}function BR(e){let t=[];for(let[n,r]of e.directoryLoadInfoById)PR(e,n)!=null&&hL(e,n)!==`loaded`&&t.push({info:{activeAttemptId:null,errorMessage:r.errorMessage,nextAttemptId:r.nextAttemptId,state:r.state},path:tR(e,n)});return t}function VR(e,t){e.collapsedDirectoryIds.clear(),e.hasCollapsedDirectoryOverrides=!1,e.expandedDirectoryIds.clear();for(let n of t.expandedPaths){let t=aR(e,n);t!=null&&pL(e,t,!0,Z(e,t))}for(let n of t.collapsedPaths){let t=aR(e,n);t!=null&&pL(e,t,!1,Z(e,t))}}function HR(e,t){e.directoryLoadInfoById.clear();for(let n of t){let t=aR(e,n.path);t!=null&&PR(e,t)!=null&&e.directoryLoadInfoById.set(t,{activeAttemptId:null,errorMessage:n.info.errorMessage,nextAttemptId:n.info.nextAttemptId,state:n.info.state})}}function UR(e){e.pathCacheVersion+=1,e.pathCacheByNodeId.clear(),e.pathCacheByNodeId.set(e.snapshot.rootId,{path:``,version:e.pathCacheVersion})}function WR(e){let t=e.snapshot.segmentTable,n=HI();for(let r of e.snapshot.nodes)if(NR(r)){if(yI(r,2)){r.nameId=0;continue}r.nameId=UI(n,WI(t,r.nameId))}e.snapshot.segmentTable=n}function GR(e){for(let[t,n]of e.snapshot.directories){let r=e.snapshot.nodes[t];if(!NR(r)||!Y(r)){e.snapshot.directories.delete(t);continue}let i=n.childIds.filter(n=>{let r=e.snapshot.nodes[n];return NR(r)&&r.parentId===t});n.childIds=i,n.childIdByNameId=new Map(i.map(t=>[Z(e,t).nameId,t])),n.childPositionById=new Map(i.map((e,t)=>[e,t])),aI(e.snapshot.nodes,n)}}function KR(e){let t=e.snapshot.nodes.length-1;for(;t>e.snapshot.rootId;){let n=e.snapshot.nodes[t];if(NR(n))break;--t}e.snapshot.nodes.length=t+1}function qR(e){let t=zR(e),n=BR(e);X(e.instrumentation,`store.cleanup.stable.clearPathCaches`,()=>UR(e)),X(e.instrumentation,`store.cleanup.stable.rebuildSegmentTable`,()=>WR(e)),X(e.instrumentation,`store.cleanup.stable.rebuildDirectoryIndexes`,()=>GR(e)),X(e.instrumentation,`store.cleanup.stable.trimTrailingRemovedNodeSlots`,()=>KR(e)),X(e.instrumentation,`store.cleanup.stable.restoreExpansionOverrides`,()=>VR(e,t)),X(e.instrumentation,`store.cleanup.stable.restoreDirectoryLoadInfos`,()=>HR(e,n)),X(e.instrumentation,`store.cleanup.stable.recomputeCounts`,()=>rR(e,e.snapshot.rootId))}function JR(e){let t=zR(e),n=BR(e),r=X(e.instrumentation,`store.cleanup.aggressive.listPaths`,()=>YL(e)),i=CI({...e.snapshot.options},e.instrumentation),a=X(e.instrumentation,`store.cleanup.aggressive.rebuildSnapshot`,()=>{let e=new sL(i);return e.appendPaths(r),e.finish()});e.snapshot=a,e.activeNodeCount=a.nodes.length-1,e.pathCacheByNodeId=new Map([[a.rootId,{path:``,version:0}]]),e.pathCacheVersion=0,X(e.instrumentation,`store.cleanup.aggressive.restoreExpansionOverrides`,()=>VR(e,t)),X(e.instrumentation,`store.cleanup.aggressive.restoreDirectoryLoadInfos`,()=>HR(e,n)),X(e.instrumentation,`store.cleanup.aggressive.recomputeCounts`,()=>rR(e,e.snapshot.rootId))}function YR(e){for(let t of e.directoryLoadInfoById.values())if(t.state===`loading`&&t.activeAttemptId!=null)return!0;return!1}function XR(e,t){let n=LR(e);t===`stable`?X(e.instrumentation,`store.cleanup.stable`,()=>qR(e)):X(e.instrumentation,`store.cleanup.aggressive`,()=>JR(e));let r=LR(e);return RR(t,t===`stable`,n,r)}var ZR=64;function QR(e,t){let n=t+2;if(n<=e.length)return e;let r=e.length;for(;r<n;)r*=2;let i=new Int32Array(r);return i.fill(-1),i.set(e),i}function $R(e){return Z(e,e.snapshot.rootId).visibleSubtreeCount}function ez(e,t,n,r){let i=Z(e,t.terminalNodeId),a=Math.max(1,i.visibleSubtreeCount);return Math.min(r-1,n+a-1)}function tz(e,t,n,r){return{ancestorPaths:r,index:t.index,posInSet:t.posInSet,row:bz(e,t.cursor),setSize:t.setSize,subtreeEndIndex:ez(e,t.cursor,t.index,n)}}function nz(e,t,n,r,i,a){let o=sR(e,t),{childIndex:s,childVisibleIndex:c,localVisibleIndex:l}=sI(e.snapshot.nodes,o,n),u=o.childIds[s];if(u==null)throw Error(`Visible index ${String(n)} is out of range`);return rz(e,u,l,r+c,i+1,s,o.childIds.length,a)}function rz(e,t,n,r,i,a,o,s){if(!Y(Z(e,t))){if(n===0)return{ancestors:s,cursor:{headNodeId:t,terminalNodeId:t,visibleDepth:i},index:r,posInSet:a,setSize:o};throw Error(`Visible index ${String(n)} is out of range for file`)}let c=mz(e,t,i);if(n===0)return{ancestors:s,cursor:c,index:r,posInSet:a,setSize:o};let l=Z(e,c.terminalNodeId);if(!Y(l)||!fL(e,c.terminalNodeId,l))throw Error(`Visible index ${String(n)} is out of range for collapsed directory`);return nz(e,c.terminalNodeId,n-1,r+1,c.visibleDepth,[...s,{cursor:c,index:r,posInSet:a,setSize:o}])}function iz(e,t){let n=$R(e);if(t<0||t>=n)return null;let r=nz(e,e.snapshot.rootId,t,0,-1,[]),i=r.ancestors.map(t=>tR(e,t.cursor.terminalNodeId)),a=null;return{ancestorPaths:i,get ancestorRows(){if(a!=null)return a;let t=[],i=[];for(let a of r.ancestors){let r=tz(e,a,n,[...i]);t.push(r),i.push(r.row.path)}return a=t,a},index:r.index,posInSet:r.posInSet,row:bz(e,r.cursor),setSize:r.setSize,subtreeEndIndex:ez(e,r.cursor,r.index,n)}}function az(e,t,n){let r=e.instrumentation,i=$R(e);if(i<=0||n<t)return[];let a=Math.max(0,Math.min(t,i-1)),o=Math.max(a,Math.min(n,i-1));if(r==null){if(a===0)return yz(e,o+1);let t=[],n=dz(e,a);for(let r=a;r<=o&&n!=null;r++){let r=bz(e,n);t.push(r),n=gz(e,n)}return t}let s=[],c=0,l=0,u=X(r,`store.getVisibleSlice.selectFirstRow`,()=>dz(e,a));for(let t=a;t<=o&&u!=null;t++){let t=X(r,`store.getVisibleSlice.materializeRow`,()=>bz(e,u));s.push(t),t.isFlattened&&(c++,l+=t.flattenedSegments?.length??0),u=X(r,`store.getVisibleSlice.advanceCursor`,()=>gz(e,u))}return TI(r,`workload.visibleRowsRead`,s.length),TI(r,`workload.flattenedRowsRead`,c),TI(r,`workload.flattenedSegmentsRead`,l),s}function oz(e,t=$R(e)){let n=e.instrumentation;return n==null?vz(e,t):X(n,`store.getVisibleTreeProjection`,()=>vz(e,t))}function sz(e){return _z(oz(e))}function cz(e,t){let n=aR(e,t);if(n==null||n===e.snapshot.rootId||Y(Z(e,n))&&qL(e,n)!==n)return null;let r=0,i=n,{nodes:a,rootId:o}=e.snapshot;for(;i!==o;){let t=Z(e,i).parentId,n=sR(e,t),s=nI(n).get(i);if(s==null)throw Error(`Child ${String(i)} was not found in its parent index`);if(r+=cI(a,n,s),t!==o){let n=Z(e,t),a=KL(e,t);if(!fL(e,t,n)&&a!==i)return null;qL(e,t)===t&&(r+=1)}i=t}return r}function lz(e,t){let n=aR(e,t);if(n==null)throw Error(`Path does not exist: "${t}"`);let r=Z(e,n);if(!Y(r))throw Error(`Path is not a directory: "${t}"`);return fL(e,n,r)?null:(pL(e,n,!0,r),nR(e,n),EL({affectedAncestorIds:iR(e,n),affectedNodeIds:[n],path:t,projectionChanged:!0}))}function uz(e,t){let n=aR(e,t);if(n==null)throw Error(`Path does not exist: "${t}"`);let r=Z(e,n);if(!Y(r))throw Error(`Path is not a directory: "${t}"`);return fL(e,n,r)?(pL(e,n,!1,r),nR(e,n),DL({affectedAncestorIds:iR(e,n),affectedNodeIds:[n],path:t,projectionChanged:!0})):null}function dz(e,t){return t<0||t>=$R(e)?null:fz(e,e.snapshot.rootId,t,-1)}function fz(e,t,n,r){let i=sR(e,t),a=e.instrumentation,{childIndex:o,localVisibleIndex:s}=a==null?sI(e.snapshot.nodes,i,n):X(a,`store.getVisibleSlice.selectChildIndex`,()=>sI(e.snapshot.nodes,i,n)),c=i.childIds[o];if(c!=null)return pz(e,c,s,r+1);throw Error(`Visible index ${String(n)} is out of range`)}function pz(e,t,n,r){if(!Y(Z(e,t))){if(n===0)return{headNodeId:t,terminalNodeId:t,visibleDepth:r};throw Error(`Visible index ${String(n)} is out of range for file`)}let i=mz(e,t,r);if(n===0)return i;let a=Z(e,i.terminalNodeId);if(!Y(a)||!fL(e,i.terminalNodeId,a))throw Error(`Visible index ${String(n)} is out of range for collapsed directory`);return fz(e,i.terminalNodeId,n-1,i.visibleDepth)}function mz(e,t,n){return Y(Z(e,t))?e.instrumentation==null?{headNodeId:t,terminalNodeId:qL(e,t),visibleDepth:n}:{headNodeId:t,terminalNodeId:X(e.instrumentation,`store.getVisibleSlice.flatten.resolveTerminalDirectory`,()=>qL(e,t)),visibleDepth:n}:{headNodeId:t,terminalNodeId:t,visibleDepth:n}}function hz(e,t){let n=Z(e,t);if(!Y(n))return!0;let r=n.parentId;return r===e.snapshot.rootId||KL(e,r)!==t}function gz(e,t){let n=Z(e,t.terminalNodeId);if(Y(n)){let r=sR(e,t.terminalNodeId);if(fL(e,t.terminalNodeId,n)&&r.childIds.length>0){let n=r.childIds[0];return n==null?null:pz(e,n,0,t.visibleDepth+1)}}let r=t.terminalNodeId,i=t.visibleDepth;for(;;){let t=Z(e,r);if(r===e.snapshot.rootId)return null;let n=t.parentId,a=sR(e,n),o=nI(a).get(r)??-1;if(o<0)throw Error(`Child ${String(r)} was not found in its parent index`);let s=a.childIds[o+1]??null;if(s!=null)return pz(e,s,0,i);hz(e,r)&&i--,r=n}}function _z(e){let t=e.paths.length,n=Array(t);for(let r=0;r<t;r+=1){let t=e.getParentIndex(r);n[r]={index:r,parentPath:t>=0?e.paths[t]??null:null,path:e.paths[r]??``,posInSet:e.posInSetByIndex[r]??0,setSize:e.setSizeByIndex[r]??0}}return{getParentIndex:e.getParentIndex,rows:n,get visibleIndexByPath(){return e.visibleIndexByPath}}}function vz(e,t){let n=Array(t),r=new Int32Array(t),i=new Int32Array(t),a=new Int32Array(t),o=new Int32Array(ZR);o.fill(-1);let s=0,{nodes:c,directories:l,segmentTable:u}=e.snapshot,d=[[l.get(e.snapshot.rootId),0,-1,``]],f=e.snapshot.options.flattenEmptyDirectories,p=e.pathCacheByNodeId,m=e.pathCacheVersion,h=u.valueById;for(;d.length>0&&s<t;){let t=d[d.length-1],u=t[0];if(t[1]>=u.childIds.length){d.pop();continue}let g=t[1],_=u.childIds[t[1]++],v=c[_],y=t[2]+1,b=t[3];o=QR(o,y);let x,S=_;if(Y(v))S=f?qL(e,_):_,x=S===_?`${b}${h[v.nameId]}/`:tR(e,S);else{let e=p.get(_);x=e!=null&&e.version===m?e.path:`${b}${h[v.nameId]}`}r[s]=o[y],n[s]=x,i[s]=g,a[s]=u.childIds.length,o[y+1]=s,s+=1;let C=c[S];C!=null&&Y(C)&&fL(e,S,C)&&d.push([l.get(S),0,y,x])}s<t&&(n.length=s);let g=r.subarray(0,s),_=i.subarray(0,s),v=a.subarray(0,s),y=null;return{getParentIndex(e){return e<0||e>=s?-1:g[e]??-1},paths:n,posInSetByIndex:_,setSizeByIndex:v,get visibleIndexByPath(){if(y==null){y=new Map;for(let e=0;e<s;e+=1)y.set(n[e]??``,e)}return y}}}function yz(e,t){let n=Array(t),r=0,{nodes:i,directories:a,segmentTable:o}=e.snapshot,s=[[a.get(e.snapshot.rootId),0,-1]],c=o.valueById,l=e.snapshot.options.flattenEmptyDirectories,u=e.pathCacheByNodeId,d=e.pathCacheVersion;for(;s.length>0&&r<t;){let t=s[s.length-1],o=t[0];if(t[1]>=o.childIds.length){s.pop();continue}let f=o.childIds[t[1]++],p=i[f],m=t[2]+1;if(!Y(p)){let t=u.get(f);n[r++]={depth:m,flattenedSegments:void 0,hasChildren:!1,id:f,isExpanded:!1,isFlattened:!1,isLoading:!1,kind:`file`,loadState:void 0,name:c[p.nameId],path:t!=null&&t.version===d?t.path:tR(e,f)};continue}let h=l?qL(e,f):f,g={headNodeId:f,terminalNodeId:h,visibleDepth:m};n[r++]=bz(e,g);let _=i[h];_!=null&&Y(_)&&fL(e,h,_)&&s.push([a.get(h),0,m])}return r<t&&(n.length=r),n}function bz(e,t){let n=Z(e,t.terminalNodeId),r=Y(n)?xz(e,t):null,i=tR(e,t.terminalNodeId),a=WI(e.snapshot.segmentTable,n.nameId),o=Y(n)&&sR(e,t.terminalNodeId).childIds.length>0,s=t.headNodeId!==t.terminalNodeId,c=e.instrumentation,l=s?c==null?JL(e,t.headNodeId).map(n=>{let r=Z(e,n);return{isTerminal:n===t.terminalNodeId,name:WI(e.snapshot.segmentTable,r.nameId),nodeId:n,path:tR(e,n)}}):X(c,`store.getVisibleSlice.flatten.collectSegments`,()=>JL(e,t.headNodeId).map(n=>{let r=Z(e,n);return{isTerminal:n===t.terminalNodeId,name:WI(e.snapshot.segmentTable,r.nameId),nodeId:n,path:tR(e,n)}})):void 0;return{depth:t.visibleDepth,flattenedSegments:l,hasChildren:o,id:t.terminalNodeId,isExpanded:Y(n)&&fL(e,t.terminalNodeId,n),isFlattened:s,isLoading:r===`loading`,kind:Y(n)?`directory`:`file`,loadState:r==null||r===`loaded`?void 0:r,name:a,path:i}}function xz(e,t){if(t.headNodeId===t.terminalNodeId)return hL(e,t.terminalNodeId);let n=JL(e,t.headNodeId),r=!1,i=!1;for(let t of n){let n=hL(e,t);if(n===`loading`)return`loading`;if(n===`error`){i=!0;continue}n===`unloaded`&&(r=!0)}return i?`error`:r?`unloaded`:`loaded`}var Sz=8;function Cz(e){let{nodes:t,directories:n,rootId:r,options:i}=e,a=t.length,o=new Int32Array(a),s=new Int32Array(a),c=new Int32Array(a),l=new Int32Array(a),u=new Int32Array(a),d=new Int32Array(a),f=new Int32Array(a);for(let e=0;e<a;e+=1){let n=t[e];n!=null&&(o[e]=n.parentId,s[e]=n.nameId,c[e]=n.depthAndFlags,l[e]=n.subtreeNodeCount,u[e]=n.visibleSubtreeCount)}let p=0;for(let e of n.values())p+=e.childIds.length;let m=new Int32Array(p),h=0;for(let[e,t]of n){let n=t.childIds;d[e]=h,f[e]=n.length;for(let e=0;e<n.length;e+=1)m[h]=n[e],h+=1}return{nodeCount:a,rootId:r,flattenEmptyDirectories:i.flattenEmptyDirectories===!0,parentId:o,nameId:s,depthAndFlags:c,subtreeNodeCount:l,visibleSubtreeCount:u,childStart:d,childCount:f,childIdsFlat:m}}function wz(e){let{nodeCount:t,rootId:n,flattenEmptyDirectories:r,depthAndFlags:i,subtreeNodeCount:a,visibleSubtreeCount:o,childStart:s,childCount:c,childIdsFlat:l}=e;for(let e=t-1;e>=1;--e){if((i[e]&Sz)===0)continue;let t=s[e],n=c[e],u=0,d=0;for(let e=0;e<n;e+=1){let n=l[t+e];u+=a[n],d+=o[n]}a[e]=1+u;let f;f=r&&n===1?(i[l[t]]&Sz)===0?1+d:d:1+d,o[e]=f}let u=s[n],d=c[n],f=0,p=0;for(let e=0;e<d;e+=1){let t=l[u+e];f+=a[t],p+=o[t]}a[n]=1+f,o[n]=p}function Tz(e){let{directories:t,nodes:n,options:r,rootId:i,presortedDirectoryNodeIds:a}=e.snapshot,o=r.flattenEmptyDirectories===!0,s=e=>{let r=n[e];if(r==null||!Y(r))return;let i=t.get(e);if(i==null)throw Error(`Unknown directory child index for node ${String(e)}`);let a=i.childIds,s=a.length,c=0,l=0;for(let e=0;e<s;e++){let t=a[e];if(t==null)continue;let r=n[t];c+=r.subtreeNodeCount,l+=r.visibleSubtreeCount}i.totalChildSubtreeNodeCount=c,i.totalChildVisibleSubtreeCount=l,s>=128&&lI(n,i),r.subtreeNodeCount=1+c;let u;if(o&&s===1){let e=n[a[0]];u=e!=null&&Y(e)?l:1+l}else u=1+l;r.visibleSubtreeCount=u};if(a!=null)for(let e=a.length-1;e>=0;e--)s(a[e]);else for(let e=n.length-1;e>=1;e--)s(e);let c=n[i],l=t.get(i);if(c==null||l==null)return;let u=l.childIds,d=0,f=0;for(let e=0;e<u.length;e++){let t=u[e];if(t==null)continue;let r=n[t];d+=r.subtreeNodeCount,f+=r.visibleSubtreeCount}l.totalChildSubtreeNodeCount=d,l.totalChildVisibleSubtreeCount=f,lI(n,l),c.subtreeNodeCount=1+d,c.visibleSubtreeCount=f}function Ez(e){let{directories:t,nodes:n,rootId:r}=e.snapshot,i=Cz(e.snapshot);wz(i);let a=i.subtreeNodeCount,o=i.visibleSubtreeCount;for(let e=0;e<n.length;e+=1){let t=n[e];t!=null&&(t.subtreeNodeCount=a[e],t.visibleSubtreeCount=o[e])}for(let[e,i]of t){let t=i.childIds,a=t.length,o=0,s=0;for(let e=0;e<a;e++){let r=t[e];if(r==null)continue;let i=n[r];o+=i.subtreeNodeCount,s+=i.visibleSubtreeCount}i.totalChildSubtreeNodeCount=o,i.totalChildVisibleSubtreeCount=s,(e===r||a>=128)&&lI(n,i)}}function Dz(e){return e.initialExpansion===`open`&&(e.initialExpandedPaths==null||e.initialExpandedPaths.length===0)}var Oz=class e{#e;constructor(e={}){let t=wI(e),n=X(t,`store.builder.create`,()=>new sL(e));if(e.preparedInput!=null){let t=iL(e.preparedInput);t==null?n.appendPreparedPaths(rL(e.preparedInput),!1):n.appendPresortedPaths(t,aL(e.preparedInput))}else{let r=e.paths??[];e.presorted===!0?n.appendPaths(r):n.appendPreparedPaths(X(t,`store.preparePathEntries`,()=>oL(r,e)))}let r=X(t,`store.builder.finish`,()=>n.finish({skipSubtreeCountPass:!0})),i=X(t,`store.state.detectAllDirectoriesExpanded`,()=>(e.initialExpansion??`closed`)===`closed`&&n.didMatchAllInitialExpandedPaths());this.#e=X(t,`store.state.create`,()=>cL(r,i?`open`:e.initialExpansion??`closed`,t)),i&&(this.#e.collapseNewDirectoriesByDefault=!0);let a=i?this.#e.snapshot.directories.size-1:X(t,`store.state.initializeExpandedPaths`,()=>this.initializeExpandedPaths(e.initialExpandedPaths));i||Dz(e)||(e.initialExpansion??`closed`)===`closed`&&a===this.#e.snapshot.directories.size-1||(e.initialExpandedPaths?.length??0)>0&&X(t,`store.state.checkAllDirectoriesExpanded`,()=>this.hasAllDirectoriesExpanded())?e.useSoaCountSweep===!0?X(t,`store.state.initializeOpenVisibleCountsViaSoa`,()=>Ez(this.#e)):X(t,`store.state.initializeOpenVisibleCounts`,()=>Tz(this.#e)):X(t,`store.state.recomputeCounts`,()=>rR(this.#e,this.#e.snapshot.rootId))}static preparePaths(e,t={}){return eL(e,t)}static prepareInput(e,t={}){return tL(e,t)}static preparePresortedInput(e){return nL(e)}list(e){return X(this.#e.instrumentation,`store.list`,()=>YL(this.#e,e))}add(e){X(this.#e.instrumentation,`store.add`,()=>{let t=$R(this.#e);IL(this.#e,PL(this.#e,t,XL(this.#e,e)))})}remove(e,t={}){X(this.#e.instrumentation,`store.remove`,()=>{let n=$R(this.#e);IL(this.#e,PL(this.#e,n,ZL(this.#e,e,t)))})}move(e,t,n={}){X(this.#e.instrumentation,`store.move`,()=>{let r=$R(this.#e),i=QL(this.#e,e,t,n);i!=null&&IL(this.#e,PL(this.#e,r,i))})}batch(e){FL(this.#e,()=>{if(typeof e==`function`){e(this);return}for(let t of e)switch(t.type){case`add`:this.add(t.path);break;case`remove`:this.remove(t.path,{recursive:t.recursive});break;case`move`:this.move(t.from,t.to,{collision:t.collision})}})}getVisibleCount(){return X(this.#e.instrumentation,`store.getVisibleCount`,()=>$R(this.#e))}getVisibleSlice(e,t){return X(this.#e.instrumentation,`store.getVisibleSlice`,()=>az(this.#e,e,t))}getVisibleRowContext(e){return X(this.#e.instrumentation,`store.getVisibleRowContext`,()=>iz(this.#e,e))}getVisibleTreeProjection(){return sz(this.#e)}getVisibleTreeProjectionData(e){return oz(this.#e,e)}getVisibleIndex(e){return X(this.#e.instrumentation,`store.getVisibleIndex`,()=>cz(this.#e,e))}getPathInfo(e){return X(this.#e.instrumentation,`store.getPathInfo`,()=>{let t=aR(this.#e,e);if(t==null)return null;let n=Z(this.#e,t);return{depth:gI(n),kind:Y(n)?`directory`:`file`,path:tR(this.#e,t)}})}isExpanded(e){return X(this.#e.instrumentation,`store.isExpanded`,()=>{let t=this.requireDirectoryNodeId(e),n=Z(this.#e,t);return fL(this.#e,t,n)})}expand(e){X(this.#e.instrumentation,`store.expand`,()=>{let t=$R(this.#e),n=lz(this.#e,e);n!=null&&IL(this.#e,PL(this.#e,t,n))})}collapse(e){X(this.#e.instrumentation,`store.collapse`,()=>{let t=$R(this.#e),n=uz(this.#e,e);n!=null&&IL(this.#e,PL(this.#e,t,n))})}on(e,t){return SL(this.#e,e,t)}getDirectoryLoadState(e){let t=this.requireDirectoryNodeId(e);return hL(this.#e,t)}markDirectoryUnloaded(e){X(this.#e.instrumentation,`store.markDirectoryUnloaded`,()=>{let t=this.requireDirectoryNodeId(e);if(sR(this.#e,t).childIds.length>0)throw Error(`Cannot mark a directory with known children as unloaded: "${e}"`);let n=$R(this.#e);_L(this.#e,t),IL(this.#e,PL(this.#e,n,OL({affectedAncestorIds:iR(this.#e,t),affectedNodeIds:[t],path:e,projectionChanged:this.isDirectoryProjectionVisible(t)})))})}beginChildLoad(e){return X(this.#e.instrumentation,`store.beginChildLoad`,()=>{let t=this.requireDirectoryNodeId(e),n=$R(this.#e),r=gL(this.#e,t);return IL(this.#e,PL(this.#e,n,kL({affectedAncestorIds:iR(this.#e,t),affectedNodeIds:[t],attemptId:r.attemptId,path:e,projectionChanged:this.isDirectoryProjectionVisible(t),reused:r.reused}))),r})}applyChildPatch(e,t){return X(this.#e.instrumentation,`store.applyChildPatch`,()=>{let n=this.resolveActiveDirectoryNodeId(e.nodeId);if(n==null||hL(this.#e,n)!==`loading`||!yL(this.#e,n,e.attemptId))return!1;let r=tR(this.#e,n);this.validateChildPatch(r,t);let i=$R(this.#e),a=[];for(let e of t.operations){kz(r,e);let t=$R(this.#e);switch(e.type){case`add`:a.push(PL(this.#e,t,XL(this.#e,e.path)));break;case`remove`:a.push(PL(this.#e,t,ZL(this.#e,e.path,{recursive:e.recursive})));break;case`move`:{let n=QL(this.#e,e.from,e.to,{collision:e.collision});n!=null&&a.push(PL(this.#e,t,n));break}}}let o=a.some(e=>e.projectionChanged)||this.isDirectoryProjectionVisible(n);return IL(this.#e,PL(this.#e,i,AL({affectedAncestorIds:iR(this.#e,n),affectedNodeIds:[n],attemptId:e.attemptId,childEvents:a,path:tR(this.#e,n),projectionChanged:o}))),!0})}completeChildLoad(e){return X(this.#e.instrumentation,`store.completeChildLoad`,()=>{let t=this.resolveActiveDirectoryNodeId(e.nodeId);if(t==null)return!1;let n=$R(this.#e),r=vL(this.#e,t,e.attemptId);return IL(this.#e,PL(this.#e,n,jL({affectedAncestorIds:iR(this.#e,t),affectedNodeIds:[t],attemptId:e.attemptId,path:tR(this.#e,t),projectionChanged:this.isDirectoryProjectionVisible(t),stale:!r}))),r})}failChildLoad(e,t){return X(this.#e.instrumentation,`store.failChildLoad`,()=>{let n=this.resolveActiveDirectoryNodeId(e.nodeId);if(n==null)return!1;let r=$R(this.#e),i=bL(this.#e,n,e.attemptId,t);return IL(this.#e,PL(this.#e,r,ML({affectedAncestorIds:iR(this.#e,n),affectedNodeIds:[n],attemptId:e.attemptId,errorMessage:t,path:tR(this.#e,n),projectionChanged:this.isDirectoryProjectionVisible(n),stale:!i}))),i})}cleanup(e={}){return X(this.#e.instrumentation,`store.cleanup`,()=>{if(this.#e.transactionStack.length>0)throw Error(`Cleanup cannot run during an open batch or transaction.`);if(YR(this.#e))throw Error(`Cleanup cannot run while directory loads are active.`);let t=$R(this.#e),n=XR(this.#e,e.mode??`stable`);return IL(this.#e,PL(this.#e,t,NL({...n,affectedAncestorIds:[],affectedNodeIds:[],projectionChanged:n.idsPreserved===!1}))),n})}getNodeCount(){return this.#e.activeNodeCount}initializeExpandedPaths(e){if(e==null||e.length===0)return 0;let t=0,n=[],r=[],i=0,a=null,o=this.#e.snapshot.segmentTable,s=o.valueById,c=this.#e.snapshot.nodes,l=new Map;for(let u of e){a!=null&&u<a&&(a=null,i=0,n.length=0,r.length=0);let e=u.length>0&&u.charCodeAt(u.length-1)===47?u.length-1:u.length;if(e===0){a=u,i=e,n.length=0,r.length=0;continue}let d=0,f=0;if(a!=null){let t=Math.min(e,i),n=!0;for(let e=0;e<t;e+=1){let t=u.charCodeAt(e);if(t!==a.charCodeAt(e)){n=!1;break}t===47&&(d+=1,f=e+1)}n&&(t===i&&e>t&&u.charCodeAt(t)===47?(d+=1,f=t+1):t===e&&i>t&&a.charCodeAt(t)===47&&(d+=1,f=e+1)),d=Math.min(d,r.length)}let p=d===0?this.#e.snapshot.rootId:r[d-1]??this.#e.snapshot.rootId,m=d,h=!0,g=f;for(;g<=e;){let t=u.indexOf(`/`,g),i=t===-1||t>e?e:t,a=u.slice(g,i),f=sR(this.#e,p).childIds,_=m===d?n[m]??0:0,v=_,y,b=l.get(a)??OI(a);l.set(a,b);let x=(e,t)=>{for(v=e;v<t;v+=1){let e=f[v],t=c[e],n=s[t.nameId];if(n===a)return y=e,!0;let r=AI(LI(o,t.nameId),b);if(r>0||r===0&&n>a)return!1}return!1};if(!x(_,f.length)&&_>0&&x(0,_),y===void 0){h=!1;break}if(!Y(Z(this.#e,y))){h=!1;break}if(n[m]=v,r[m]=y,p=y,m+=1,i===e)break;g=i+1}if(a=u,i=e,n.length=m,r.length=m,!h){a=null,i=0,n.length=0,r.length=0;continue}for(let e=d;e<m;e+=1){let n=r[e];if(n==null)continue;let i=Z(this.#e,n);fL(this.#e,n,i)||(pL(this.#e,n,!0,i),t+=1)}}return t}hasAllDirectoriesExpanded(){for(let e of this.#e.snapshot.directories.keys()){if(e===this.#e.snapshot.rootId)continue;let t=Z(this.#e,e);if(!fL(this.#e,e,t))return!1}return!0}requireDirectoryNodeId(e){let t=aR(this.#e,e);if(t==null)throw Error(`Path does not exist: "${e}"`);if(!Y(Z(this.#e,t)))throw Error(`Path is not a directory: "${e}"`);return t}resolveActiveDirectoryNodeId(e){try{if(!Y(Z(this.#e,e)))throw Error(`Node is not a directory: ${String(e)}`);return e}catch{return null}}isDirectoryProjectionVisible(e){let t=e;for(;t!==this.#e.snapshot.rootId;){let e=Z(this.#e,t).parentId;if(e!==this.#e.snapshot.rootId){let n=Z(this.#e,e),r=KL(this.#e,e);if(!fL(this.#e,e,n)&&r!==t)return!1}t=e}return!0}validateChildPatch(t,n){new e({paths:this.list(t),presorted:!0,sort:this.#e.snapshot.options.sort}).batch(n.operations)}};function kz(e,t){switch(t.type){case`add`:case`remove`:if(!t.path.startsWith(e)||t.path===e)throw Error(`Child patch operation must stay within ${e}: "${t.path}"`);break;case`move`:if(!t.from.startsWith(e)||!t.to.startsWith(e)||t.from===e||t.to===e)throw Error(`Child patch move must stay within ${e}: "${t.from}" -> "${t.to}"`)}}var Az={compact:{itemHeight:24,factor:.8},default:{itemHeight:30,factor:1},relaxed:{itemHeight:36,factor:1.2}};function jz(e,t){if(typeof e==`number`)return{itemHeight:t??Az.default.itemHeight,factor:e};let n=Az[e??`default`];return{itemHeight:t??n.itemHeight,factor:n.factor}}var Mz=Az.default.itemHeight,Nz=`@layer base {
496
+ </symbol>`],TF=[EP,DP,kP,AP,jP,MP,PP,zP,BP,WP,ZP,QP,$P,eF,tF,rF,oF,sF,cF,lF,uF,pF,mF,_F,vF,yF,bF,xF,SF,CF];function EF(e,t){return t.length===0?e:e.replace(`</svg>`,`\n ${t.join(`
497
+ `)}\n</svg>`)}var DF=EF(TP,wF),OF={minimal:TP,standard:DF,complete:EF(DF,TF)},kF={".babelrc":`babel`,".babelrc.json":`babel`,".bash_profile":`bash`,".bashrc":`bash`,".browserslistrc":`browserslist`,".dockerignore":`docker`,".eslintignore":`eslint`,".eslintrc":`eslint`,".eslintrc.cjs":`eslint`,".eslintrc.js":`eslint`,".eslintrc.json":`eslint`,".eslintrc.yaml":`eslint`,".eslintrc.yml":`eslint`,".gitattributes":`git`,".gitignore":`git`,".gitkeep":`git`,".gitmodules":`git`,".oxlintrc.json":`oxc`,".postcssrc":`postcss`,".postcssrc.json":`postcss`,".postcssrc.yaml":`postcss`,".postcssrc.yml":`postcss`,".prettierignore":`prettier`,".prettierrc":`prettier`,".prettierrc.cjs":`prettier`,".prettierrc.js":`prettier`,".prettierrc.json":`prettier`,".prettierrc.mjs":`prettier`,".prettierrc.toml":`prettier`,".prettierrc.yaml":`prettier`,".prettierrc.yml":`prettier`,".stylelintignore":`stylelint`,".stylelintrc":`stylelint`,".stylelintrc.cjs":`stylelint`,".stylelintrc.js":`stylelint`,".stylelintrc.json":`stylelint`,".stylelintrc.mjs":`stylelint`,".stylelintrc.yaml":`stylelint`,".stylelintrc.yml":`stylelint`,".terraform.lock.hcl":`terraform`,".zprofile":`bash`,".zshenv":`bash`,".zshrc":`bash`,"babel.config.cjs":`babel`,"babel.config.js":`babel`,"babel.config.json":`babel`,"babel.config.mjs":`babel`,"biome.json":`biome`,"biome.jsonc":`biome`,"bootstrap.bundle.js":`bootstrap`,"bootstrap.bundle.min.js":`bootstrap`,"bootstrap.css":`bootstrap`,"bootstrap.js":`bootstrap`,"bootstrap.min.css":`bootstrap`,"bootstrap.min.js":`bootstrap`,"bun.lock":`bun`,"bun.lockb":`bun`,"bunfig.toml":`bun`,"claude.md":`claude`,"compose.yaml":`docker`,"compose.yml":`docker`,"docker-compose.override.yml":`docker`,"docker-compose.yaml":`docker`,"docker-compose.yml":`docker`,dockerfile:`docker`,"eslint.config.cjs":`eslint`,"eslint.config.js":`eslint`,"eslint.config.mjs":`eslint`,"eslint.config.mts":`eslint`,"eslint.config.ts":`eslint`,gemfile:`ruby`,"next.config.js":`nextjs`,"next.config.mjs":`nextjs`,"next.config.mts":`nextjs`,"next.config.ts":`nextjs`,"postcss.config.cjs":`postcss`,"postcss.config.js":`postcss`,"postcss.config.mjs":`postcss`,"postcss.config.ts":`postcss`,"prettier.config.cjs":`prettier`,"prettier.config.js":`prettier`,"prettier.config.mjs":`prettier`,rakefile:`ruby`,"readme.md":`markdown`,"stylelint.config.cjs":`stylelint`,"stylelint.config.js":`stylelint`,"stylelint.config.mjs":`stylelint`,"svgo.config.cjs":`svgo`,"svgo.config.js":`svgo`,"svgo.config.mjs":`svgo`,"svgo.config.ts":`svgo`,"tailwind.config.cjs":`tailwind`,"tailwind.config.js":`tailwind`,"tailwind.config.mjs":`tailwind`,"tailwind.config.ts":`tailwind`,"vite.config.js":`vite`,"vite.config.mjs":`vite`,"vite.config.mts":`vite`,"vite.config.ts":`vite`,"webpack.config.babel.js":`webpack`,"webpack.config.cjs":`webpack`,"webpack.config.js":`webpack`,"webpack.config.mjs":`webpack`,"webpack.config.ts":`webpack`},AF={"7z":`zip`,astro:`astro`,AUTHORS:`text`,avif:`image`,bash:`bash`,bmp:`image`,bz2:`zip`,c:`c`,cc:`cpp`,cfg:`text`,CHANGELOG:`text`,cjs:`javascript`,"code-workspace":`vscode`,conf:`text`,CONTRIBUTORS:`text`,cpp:`cpp`,csh:`bash`,css:`css`,csv:`table`,cts:`typescript`,cxx:`cpp`,db:`database`,editorconfig:`text`,env:`text`,"env.development":`text`,"env.local":`text`,"env.production":`text`,eot:`font`,erb:`ruby`,fish:`bash`,gemspec:`ruby`,gif:`image`,go:`go`,gql:`graphql`,graphql:`graphql`,gz:`zip`,h:`c`,hh:`cpp`,hpp:`cpp`,htm:`html`,html:`html`,hxx:`cpp`,icns:`image`,ico:`image`,ini:`text`,inl:`cpp`,jar:`zip`,jpeg:`image`,jpg:`image`,js:`javascript`,json:`json`,json5:`json`,jsonc:`json`,jsonl:`json`,jsx:`javascript`,ksh:`bash`,less:`css`,LICENSE:`text`,log:`text`,markdown:`markdown`,mcp:`mcp`,md:`markdown`,mdx:`markdown`,"mdx.tsx":`markdown`,mjs:`javascript`,mm:`cpp`,mts:`typescript`,ods:`table`,otf:`font`,png:`image`,postcss:`css`,py:`python`,pyi:`python`,pyw:`python`,pyx:`python`,rake:`ruby`,rar:`zip`,rb:`ruby`,rs:`rust`,rst:`text`,rtf:`text`,sass:`css`,scss:`css`,sh:`bash`,sql:`database`,sqlite:`database`,sqlite3:`database`,styl:`css`,svelte:`svelte`,svg:`svg`,swift:`swift`,tar:`zip`,tf:`terraform`,tfstate:`terraform`,tfvars:`terraform`,tgz:`zip`,tif:`image`,tiff:`image`,ts:`typescript`,tsv:`table`,tsx:`typescript`,ttf:`font`,txt:`text`,vue:`vue`,war:`zip`,wasm:`wasm`,wast:`wasm`,wat:`wasm`,webp:`image`,woff:`font`,woff2:`font`,xhtml:`html`,xls:`table`,xlsx:`table`,xz:`zip`,yaml:`yml`,yml:`yml`,zig:`zig`,zip:`zip`,zsh:`bash`},jF={jsx:`react`,sass:`sass`,scss:`sass`,tsx:`react`},MF=new Set([`bash`,`c`,`cpp`,`css`,`database`,`default`,`font`,`git`,`go`,`html`,`image`,`javascript`,`json`,`markdown`,`mcp`,`python`,`ruby`,`rust`,`swift`,`table`,`text`,`typescript`,`zip`]),NF=new Set([`complete`]);function PF(e){return OF[e===`none`?`minimal`:e]}function FF(e){return`file-tree-builtin-${e}`}function IF(e){return e!==`none`&&NF.has(e)}function LF(e,t,n){if(e===`minimal`||e===`none`)return;let r=e===`complete`,i=kF[t.toLowerCase()];if(i!=null&&(r||MF.has(i)))return i;for(let e of n){if(r){let t=jF[e];if(t!=null)return t}let t=AF[e];if(t!=null&&(r||MF.has(t)))return t}return`default`}var RF=`file-tree-container`,zF=`data-file-tree-style`,BF=`data-file-tree-unsafe-css`,VF=`data-file-tree-scrollbar-measure`,HF=`data-file-tree-scrollbar-gutter-measured`,UF=`--trees-scrollbar-gutter-measured`,WF=`header`,GF=`context-menu`,KF=`context-menu-trigger`;function qF(e){return e.spriteSheet!=null||e.remap!=null||e.byFileName!=null||e.byFileExtension!=null||e.byFileNameContains!=null}function JF(e){return e==null?{set:`complete`,colored:!0}:typeof e==`string`?{set:e,colored:!0}:{...e,set:e.set??(qF(e)?`none`:`complete`),colored:e.colored??!0}}var YF=e=>e.trim().toLowerCase(),XF=e=>e.split(`/`).at(-1)??e,ZF=e=>{let t=e.toLowerCase().split(`.`),n=[];for(let e=1;e<t.length;e+=1)n.push(t.slice(e).join(`.`));return n};function QF(e,t){return typeof e==`string`?{name:e,remappedFrom:t}:{...e,remappedFrom:t}}function $F(e){let t=JF(e),n=t.remap,r=new Map;for(let[e,n]of Object.entries(t.byFileName??{}))r.set(e.toLowerCase(),n);let i=new Map;for(let[e,n]of Object.entries(t.byFileExtension??{}))i.set(YF(e),n);let a=Object.entries(t.byFileNameContains??{}).map(([e,t])=>[e.toLowerCase(),t]);return{resolveIcon:(e,o)=>{if(e===`file-tree-icon-file`&&o!=null){let s=XF(o),c=s.toLowerCase(),l=r.get(c);if(l!=null)return QF(l,e);for(let[t,n]of a)if(c.includes(t))return QF(n,e);let u=ZF(s);for(let t of u){let n=i.get(t);if(n!=null)return QF(n,e)}let d=LF(t.set,s,u);if(d!=null&&t.set!==`none`){if(d==="default"){let t=n?.[e];if(t!=null)return QF(t,e)}return{name:FF(d),remappedFrom:e,token:d}}}let s=n?.[e];return s==null?{name:e}:QF(s,e)}}}var eI=5,tI=32,nI=128;function rI(){return{childIdByNameId:new Map,childIds:[],childPositionById:new Map,childVisibleChunkSums:null,totalChildSubtreeNodeCount:0,totalChildVisibleSubtreeCount:0}}function iI(){return{childIdByNameId:null,childIds:[],childPositionById:null,childVisibleChunkSums:null,totalChildSubtreeNodeCount:0,totalChildVisibleSubtreeCount:0}}function aI(e,t){if(t.childIdByNameId!=null)return t.childIdByNameId;let n=new Map;for(let r of t.childIds){let t=e[r];t!=null&&n.set(t.nameId,r)}return t.childIdByNameId=n,n}function oI(e){if(e.childPositionById!=null)return e.childPositionById;let t=new Map;for(let n=0;n<e.childIds.length;n++){let r=e.childIds[n];r!=null&&t.set(r,n)}return e.childPositionById=t,t}function sI(e,t){e.childPositionById!=null&&e.childPositionById.set(t,e.childIds.length),e.childIds.push(t)}function cI(e,t){if(e.childPositionById!=null)for(let n=t;n<e.childIds.length;n++){let t=e.childIds[n];t!=null&&e.childPositionById.set(t,n)}}function lI(e,t){let n=0,r=0;for(let i of t.childIds){let t=e[i];t!=null&&(n+=t.subtreeNodeCount,r+=t.visibleSubtreeCount)}t.totalChildSubtreeNodeCount=n,t.totalChildVisibleSubtreeCount=r,pI(e,t)}function uI(e,t,n,r){if(e.totalChildSubtreeNodeCount+=n,e.totalChildVisibleSubtreeCount+=r,e.childVisibleChunkSums==null||r===0)return;let i=oI(e).get(t);if(i===void 0)return;let a=i>>eI;e.childVisibleChunkSums[a]+=r}function dI(e,t,n){let r=t.childVisibleChunkSums;if(r!=null){let i=n,a=0;for(let o of r){if(i<o){let r=mI(e,t,a,i);return{...r,childVisibleIndex:n-r.localVisibleIndex}}i-=o,a+=tI}throw Error(`Visible child index ${String(n)} is out of range`)}let i=n;for(let r=0;r<t.childIds.length;r++){let a=t.childIds[r];if(a==null)continue;let o=e[a];if(o!=null){if(i<o.visibleSubtreeCount)return{childIndex:r,childVisibleIndex:n-i,localVisibleIndex:i};i-=o.visibleSubtreeCount}}throw Error(`Visible child index ${String(n)} is out of range`)}function fI(e,t,n){let r=0,i=t.childVisibleChunkSums,a=0;if(i!=null){let e=n>>eI;for(let t=0;t<e;t+=1)r+=i[t]??0;a=e<<eI}for(let i=a;i<n;i+=1){let n=t.childIds[i];if(n==null)continue;let a=e[n];a!=null&&(r+=a.visibleSubtreeCount)}return r}function pI(e,t){if(t.childIds.length<nI){t.childVisibleChunkSums=null;return}let n=Math.ceil(t.childIds.length/tI),r=new Int32Array(n);for(let n=0;n<t.childIds.length;n++){let i=t.childIds[n];if(i==null)continue;let a=e[i];a!=null&&(r[n>>eI]+=a.visibleSubtreeCount)}t.childVisibleChunkSums=r}function mI(e,t,n,r){let i=Math.min(t.childIds.length,n+tI),a=r;for(let r=n;r<i;r++){let n=t.childIds[r];if(n==null)continue;let i=e[n];if(i!=null){if(a<i.visibleSubtreeCount)return{childIndex:r,localVisibleIndex:a};a-=i.visibleSubtreeCount}}throw Error(`Visible child index ${String(r)} is out of range`)}var hI=7,gI=3,_I=8,vI=4;function yI(e,t,n=0){return e<<vI|n<<gI|t}function bI(e){return e.depthAndFlags>>>vI}function xI(e){return(e.depthAndFlags&_I)>>gI}function Y(e){return(e.depthAndFlags&_I)!==0}function SI(e){return e.depthAndFlags&hI}function CI(e,t){return(SI(e)&t)!==0}function wI(e,t){e.depthAndFlags|=t}function TI(e,t){e.depthAndFlags=yI(t,SI(e),xI(e))}var EI=Symbol(`benchmarkInstrumentation`);function DI(e,t){return t==null||Object.defineProperty(e,EI,{configurable:!0,enumerable:!1,value:t,writable:!1}),e}function OI(e){return e==null?null:e[EI]??null}function X(e,t,n){return e==null?n():e.measurePhase(t,n)}function kI(e,t,n){Number.isFinite(n)&&e!=null&&e.setCounter(t,n)}function AI(e){return e>=48&&e<=57}function jI(e){let t=[],n=0,r=0;for(;r<e.length;){for(;r<e.length&&!AI(e.charCodeAt(r));)r+=1;if(r>=e.length)break;r>n&&t.push(e.slice(n,r));let i=0;for(;r<e.length&&AI(e.charCodeAt(r));)i=i*10+(e.charCodeAt(r)-48),r+=1;t.push(i),n=r}return(n<e.length||t.length===0)&&t.push(e.slice(n)),t}function MI(e){let t=e.toLowerCase();return{lowerValue:t,tokens:jI(t)}}function NI(e,t){let n=Math.min(e.length,t.length);for(let r=0;r<n;r++){let n=e[r],i=t[r];if(n===i)continue;if(typeof n==`number`&&typeof i==`number`)return n<i?-1:1;let a=String(n),o=String(i);if(a!==o)return a<o?-1:1}return e.length===t.length?0:e.length<t.length?-1:1}function PI(e,t){if(e.tokens.length===1&&t.tokens.length===1&&typeof e.tokens[0]==`string`&&typeof t.tokens[0]==`string`)return e.lowerValue===t.lowerValue?0:e.lowerValue<t.lowerValue?-1:1;let n=NI(e.tokens,t.tokens);return n===0?e.lowerValue===t.lowerValue?0:e.lowerValue<t.lowerValue?-1:1:n}function FI(e,t,n){let r=PI(n(e),n(t));return r===0?e===t?0:e<t?-1:1:r}function II(e,t){return FI(e,t,MI)}function LI(e,t){return t===e.segments.length-1?+!!e.isDirectory:1}function RI(e,t){let n=Math.min(e.segments.length,t.segments.length);for(let r=0;r<n;r++){let n=e.segments[r],i=t.segments[r];if(n===i)continue;let a=LI(e,r);return a===LI(t,r)?II(n,i):a===1?-1:1}return e.segments.length===t.segments.length?e.isDirectory===t.isDirectory?0:e.isDirectory?-1:1:e.segments.length<t.segments.length?-1:1}function zI(e,t){return RI(e,t)}function BI(e,t,n){let r=e=>{let t=n.get(e);if(t!=null)return t;let r=MI(e);return n.set(e,r),r},i=Math.min(e.segments.length,t.segments.length);for(let n=0;n<i;n++){let i=e.segments[n],a=t.segments[n];if(i===a)continue;let o=LI(e,n);return o===LI(t,n)?FI(i,a,r):o===1?-1:1}return e.segments.length===t.segments.length?e.isDirectory===t.isDirectory?0:e.isDirectory?-1:1:e.segments.length<t.segments.length?-1:1}function VI(e,t){let n=e.sortKeyById[t];if(n!==void 0)return n;let r=e.valueById[t],i=MI(r);return e.sortKeyById[t]=i,i}function HI(e={}){return{flattenEmptyDirectories:e.flattenEmptyDirectories!==!1,sort:e.sort??`default`}}function UI(e){let t=e.length>0&&e.charCodeAt(e.length-1)===47,n=t?e.length-1:e.length,r=[],i=0;for(let t=0;t<n;t++)e.charCodeAt(t)===47&&(r.push(e.slice(i,t)),i=t+1);return r.push(e.slice(i,n)),{hasTrailingSlash:t,segments:r}}function WI(e){let{hasTrailingSlash:t,segments:n}=UI(e);return{basename:n[n.length-1]??``,isDirectory:t,path:e,segments:n}}function GI(e){if(e.length===0)return{requiresDirectory:!1,segments:[]};let{hasTrailingSlash:t,segments:n}=UI(e);return{requiresDirectory:t,segments:n}}function KI(){let e=new Map;return e.set(``,0),{idByValue:e,valueById:[``],sortKeyById:[MI(``)]}}function qI(e,t){let n=e.idByValue.get(t);if(n!==void 0)return n;let r=e.valueById.length;return e.idByValue.set(t,r),e.valueById.push(t),r}function JI(e,t){let n=e.valueById[t];if(n===void 0)throw Error(`Unknown segment ID: ${String(t)}`);return n}var YI=Symbol(`pathStorePreparedInputKind`);function XI(e,t){return e[YI]=t,e}function ZI(e){return{basename:e.basename,depth:e.segments.length,isDirectory:e.isDirectory,path:e.path,segments:e.segments}}function QI(e,t,n){return n==="default"?zI(e,t):n(ZI(e),ZI(t))}function $I(){return{depthAndFlags:yI(0,3,1),nameId:0,parentId:0,subtreeNodeCount:1,visibleSubtreeCount:1}}function eL(e,t){let n=Math.min(e.length,t.length);for(let r=0;r<n;r++)if(e[r]!==t[r])return r;return n}function tL(e){return e.isDirectory?e.segments.length:e.segments.length-1}function nL(e){return Array.isArray(e)&&e.every(e=>typeof e==`object`&&!!e&&typeof e.path==`string`&&Array.isArray(e.segments)&&typeof e.basename==`string`&&typeof e.isDirectory==`boolean`)}function rL(e){return Array.isArray(e)&&e.every(e=>typeof e==`string`)}function iL(e,t={}){return uL(e,t).map(e=>e.path)}function aL(e,t={}){let n=uL(e,t);return XI({paths:n.map(e=>e.path),preparedPaths:n},`prepared`)}function oL(e){let t=e.length,n=!1;for(let r=0;r<t;r+=1){let t=e[r];if(t.length>0&&t.charCodeAt(t.length-1)===47){n=!0;break}}return XI({paths:e,presortedPaths:e,presortedPathsContainDirectories:n},`presorted`)}function sL(e){let t=e,n=t.preparedPaths;if(t[YI]===`prepared`&&n!=null)return n;if(!nL(n))throw Error(`preparedInput must come from PathStore.prepareInput()`);return n}function cL(e){let t=e;return t[YI]===`presorted`&&t.presortedPaths!=null||rL(t.presortedPaths)?t.presortedPaths:null}function lL(e){let t=e;return typeof t.presortedPathsContainDirectories==`boolean`?t.presortedPathsContainDirectories:null}function uL(e,t={}){let n=HI(t),r=OI(t);kI(r,`workload.inputFiles`,e.length);let i=X(r,`store.preparePathEntries.parse`,()=>e.map(e=>WI(e)));return X(r,`store.preparePathEntries.sort`,()=>i.sort((e,t)=>QI(e,t,n.sort))),i}var dL=class{directories=new Map;directoryStack=[0];presortedDirectoryNodeIds=[];initialExpandedPathSet;createdDirectoriesAllExpanded=!1;createdDirectoryCount=0;lastPreparedPath=null;nodes=[$I()];options;instrumentation;segmentSortKeyCache=new Map;segmentTable=KI();hasDeferredDirectoryIndexes=!1;constructor(e={}){this.instrumentation=OI(e),this.options=HI(e);let t=e.initialExpandedPaths??null;if(t==null||t.length===0)this.initialExpandedPathSet=null;else{let e=new Set,n=t.length;for(let r=0;r<n;r+=1){let n=t[r],i=n.length;e.add(i>0&&n.charCodeAt(i-1)===47?n.slice(0,i-1):n)}this.initialExpandedPathSet=e,this.createdDirectoriesAllExpanded=!0}this.directories.set(0,rI())}appendPaths(e){return X(this.instrumentation,`store.builder.appendPaths.parse`,()=>this.appendPreparedPaths(e.map(e=>WI(e))))}appendPreparedPaths(e,t=!0){return this.createdDirectoriesAllExpanded=!1,X(this.instrumentation,`store.builder.appendPreparedPaths`,()=>{for(let n of e)this.appendPreparedPath(n,t)}),this}appendPresortedPaths(e,t=null){return X(this.instrumentation,`store.builder.appendPresortedPaths`,()=>{if(t===!1){this.appendPresortedFilePaths(e);return}this.createdDirectoriesAllExpanded=!1;let n=null,r=0,i=this.nodes,a=this.segmentTable,o=a.idByValue,s=a.valueById,c=this.directoryStack,l=0,u=``,d=0;for(let t of e){if(n===t)throw Error(`Duplicate path: "${t}"`);let e=t.length>0&&t.charCodeAt(t.length-1)===47,a=e?t.length-1:t.length,f=0,p=0;if(n!=null){if(u.length>0&&t.length>u.length&&t.startsWith(u))f=d,p=u.length;else{let r=Math.min(a,n.length),i=!0;for(let e=0;e<r;e++){let r=t.charCodeAt(e);if(r!==n.charCodeAt(e)){i=!1;break}r===47&&(f++,p=e+1)}i&&e&&r===a&&n.length>a&&n.charCodeAt(a)===47&&(f++,p=a+1)}}l=f,r=f;let m=p,h=t.indexOf(`/`,m);for(;h>=0&&h<a;){let e=c[l];if(e===void 0)throw Error(`Directory stack underflow while building the path store`);r++;let n=t.slice(m,h),a=o.get(n);a===void 0&&(a=s.length,o.set(n,a),s.push(n));let u=i.length;i.push({depthAndFlags:yI(r,0,1),nameId:a,parentId:e,subtreeNodeCount:1,visibleSubtreeCount:1}),this.recordCreatedDirectoryPath(t.slice(0,h)),l++,c[l]=u,m=h+1,h=t.indexOf(`/`,m)}if(e){if(m<a){let e=c[l];if(e===void 0)throw Error(`Unable to resolve directory parent for "${t}"`);r++;let n=t.slice(m,a),u=o.get(n);u===void 0&&(u=s.length,o.set(n,u),s.push(n));let d=i.length;i.push({depthAndFlags:yI(r,0,1),nameId:u,parentId:e,subtreeNodeCount:1,visibleSubtreeCount:1}),l++,c[l]=d,m=a+1}let e=c[l];if(e===void 0)throw Error(`Unable to resolve directory node for "${t}"`);this.promoteDirectoryToExplicit(e,t)}else{let e=c[l];if(e===void 0)throw Error(`Unable to resolve file parent for "${t}"`);let n=t.slice(m),a=o.get(n);a===void 0&&(a=s.length,o.set(n,a),s.push(n)),i.push({depthAndFlags:yI(r+1,0),nameId:a,parentId:e,subtreeNodeCount:1,visibleSubtreeCount:1})}m!==u.length&&(u=t.substring(0,m),d=r),n=t}c.length=l+1,n!=null&&(this.lastPreparedPath=WI(n)),this.hasDeferredDirectoryIndexes=!0}),this}appendPresortedFilePaths(e){let t=null,n=0,r=this.nodes,i=this.segmentTable,a=i.idByValue,o=i.valueById,s=this.directoryStack,c=0,l=``,u=0;for(let i of e){if(t===i)throw Error(`Duplicate path: "${i}"`);let e=i.length,d=0,f=0;if(t!=null){if(l.length>0&&i.length>l.length&&i.startsWith(l))d=u,f=l.length;else{let n=Math.min(e,t.length);for(let e=0;e<n;e++){let n=i.charCodeAt(e);if(n!==t.charCodeAt(e))break;n===47&&(d++,f=e+1)}}}c=d,n=d;let p=f,m=i.indexOf(`/`,p);for(;m>=0;){let e=s[c];if(e===void 0)throw Error(`Directory stack underflow while building the path store`);n++;let t=i.slice(p,m),l=a.get(t);l===void 0&&(l=o.length,a.set(t,l),o.push(t));let u=r.length;r.push({depthAndFlags:yI(n,0,1),nameId:l,parentId:e,subtreeNodeCount:1,visibleSubtreeCount:1}),this.recordCreatedDirectoryPath(i.slice(0,m)),this.presortedDirectoryNodeIds.push(u),c++,s[c]=u,p=m+1,m=i.indexOf(`/`,p)}let h=s[c];if(h===void 0)throw Error(`Unable to resolve file parent for "${i}"`);let g=i.slice(p),_=a.get(g);_===void 0&&(_=o.length,a.set(g,_),o.push(g)),r.push({depthAndFlags:yI(n+1,0),nameId:_,parentId:h,subtreeNodeCount:1,visibleSubtreeCount:1}),p!==l.length&&(l=i.substring(0,p),u=n),t=i}s.length=c+1,t!=null&&(this.lastPreparedPath=WI(t)),this.hasDeferredDirectoryIndexes=!0}finish(e={}){let t=e.skipSubtreeCountPass===!0;return this.hasDeferredDirectoryIndexes?(X(this.instrumentation,`store.builder.buildDirectoryIndexes`,()=>this.buildPresortedFinish(t)),this.hasDeferredDirectoryIndexes=!1):t||X(this.instrumentation,`store.builder.computeSubtreeCounts`,()=>this.computeSubtreeCounts(0)),{directories:this.directories,nodes:this.nodes,options:this.options,rootId:0,segmentTable:this.segmentTable,presortedDirectoryNodeIds:this.presortedDirectoryNodeIds.length>0?this.presortedDirectoryNodeIds:null}}didMatchAllInitialExpandedPaths(){return this.createdDirectoriesAllExpanded&&this.initialExpandedPathSet!=null&&this.createdDirectoryCount===this.initialExpandedPathSet.size}appendPreparedPath(e,t){if(this.hasDeferredDirectoryIndexes&&=(this.buildDirectoryIndexes(),!1),this.lastPreparedPath!=null){if(e.path===this.lastPreparedPath.path)throw Error(`Duplicate path: "${e.path}"`);if(t&&(this.options.sort==="default"?BI(this.lastPreparedPath,e,this.segmentSortKeyCache):QI(this.lastPreparedPath,e,this.options.sort))>0)throw Error(`Builder input must be sorted before appendPaths(): "${e.path}"`)}let n=this.lastPreparedPath,r=tL(e),i=n==null?0:tL(n),a=n==null?0:eL(n.segments,e.segments),o=Math.min(a,r,i);this.directoryStack.length=o+1;for(let n=o;n<r;n++){let r=this.directoryStack[this.directoryStack.length-1];if(r===void 0)throw Error(`Directory stack underflow while building the path store`);let i=t?this.getOrCreateDirectoryChild(r,e.segments[n]):this.createDirectoryChild(r,e.segments[n]);this.directoryStack.push(i)}if(e.isDirectory){let t=this.directoryStack[this.directoryStack.length-1];if(t===void 0)throw Error(`Unable to resolve directory node for "${e.path}"`);this.promoteDirectoryToExplicit(t,e.path),this.lastPreparedPath=e;return}let s=this.directoryStack[this.directoryStack.length-1];if(s===void 0)throw Error(`Unable to resolve file parent for "${e.path}"`);t?this.createFileChild(s,e.basename,e.path):this.createFileChildUnchecked(s,e.basename),this.lastPreparedPath=e}recordCreatedDirectoryPath(e){this.createdDirectoriesAllExpanded&&this.initialExpandedPathSet!=null&&(this.createdDirectoryCount+=1,this.initialExpandedPathSet.has(e)||(this.createdDirectoriesAllExpanded=!1))}createFileChild(e,t,n){let r=qI(this.segmentTable,t),i=this.getDirectoryIndex(e),a=i.childIdByNameId;if(a!=null&&a.get(r)!==void 0)throw Error(`Path collides with an existing entry: "${n}"`);let o=this.nodes[e];if(o===void 0)throw Error(`Unknown parent node ID: ${String(e)}`);let s=this.nodes.length;return this.nodes.push({depthAndFlags:yI(bI(o)+1,0),nameId:r,parentId:e,subtreeNodeCount:1,visibleSubtreeCount:1}),a?.set(r,s),sI(i,s),s}createFileChildUnchecked(e,t){let n=qI(this.segmentTable,t),r=this.getDirectoryIndex(e),i=this.nodes[e];if(i===void 0)throw Error(`Unknown parent node ID: ${String(e)}`);let a=this.nodes.length;return this.nodes.push({depthAndFlags:yI(bI(i)+1,0),nameId:n,parentId:e,subtreeNodeCount:1,visibleSubtreeCount:1}),r.childIdByNameId!=null&&r.childIdByNameId.set(n,a),sI(r,a),a}getOrCreateDirectoryChild(e,t){let n=qI(this.segmentTable,t),r=this.getDirectoryIndex(e);if(r.childIdByNameId!=null){let e=r.childIdByNameId.get(n);if(e!==void 0){let n=this.nodes[e];if(n!=null&&!Y(n))throw Error(`Path collides with an existing file while creating directory "${t}"`);return e}}let i=this.nodes[e];if(i===void 0)throw Error(`Unknown parent node ID: ${String(e)}`);let a=this.nodes.length;return this.nodes.push({depthAndFlags:yI(bI(i)+1,0,1),nameId:n,parentId:e,subtreeNodeCount:1,visibleSubtreeCount:1}),r.childIdByNameId!=null&&r.childIdByNameId.set(n,a),sI(r,a),this.directories.set(a,rI()),a}createDirectoryChild(e,t){let n=qI(this.segmentTable,t),r=this.getDirectoryIndex(e),i=this.nodes[e];if(i===void 0)throw Error(`Unknown parent node ID: ${String(e)}`);let a=this.nodes.length;return this.nodes.push({depthAndFlags:yI(bI(i)+1,0,1),nameId:n,parentId:e,subtreeNodeCount:1,visibleSubtreeCount:1}),r.childIdByNameId!=null&&r.childIdByNameId.set(n,a),sI(r,a),this.directories.set(a,rI()),a}promoteDirectoryToExplicit(e,t){let n=this.nodes[e];if(n===void 0)throw Error(`Unknown directory node ID: ${String(e)}`);if(!Y(n))throw Error(`Path is not a directory: "${t}"`);if(CI(n,1))throw Error(`Duplicate path: "${t}"`);wI(n,1)}getDirectoryIndex(e){let t=this.directories.get(e);if(t!==void 0)return t;throw Error(`Unknown directory child index for node ${String(e)}`)}buildPresortedFinish(e){let t=this.nodes,n=this.directories;n.set(0,iI());let r=-1,i=null;for(let e=1;e<t.length;e++){let a=t[e];if(a==null)continue;if(Y(a)){let t=iI();n.set(e,t),r=e,i=t}let o;a.parentId===r?o=i:(o=n.get(a.parentId),r=a.parentId,i=o??null),o?.childIds.push(e)}if(!e)for(let e=t.length-1;e>=1;e--){let n=t[e];if(n==null)continue;let r=t[n.parentId];r!=null&&(r.subtreeNodeCount+=n.subtreeNodeCount,r.visibleSubtreeCount+=n.visibleSubtreeCount)}}buildDirectoryIndexes(){let e=this.nodes;for(let t=1;t<e.length;t++){let n=e[t];if(n==null)continue;Y(n)&&this.directories.set(t,rI());let r=this.directories.get(n.parentId);r!=null&&(r.childIdByNameId!=null&&r.childIdByNameId.set(n.nameId,t),sI(r,t))}}computeSubtreeCounts(e){let t=this.nodes[e];if(t===void 0)throw Error(`Unknown node ID: ${String(e)}`);if(!Y(t))return t.subtreeNodeCount=1,t.visibleSubtreeCount=1,1;let n=this.getDirectoryIndex(e),r=1;for(let e of n.childIds)r+=this.computeSubtreeCounts(e);return lI(this.nodes,n),t.subtreeNodeCount=r,t.visibleSubtreeCount=r,r}};function fL(e,t=`closed`,n=null){let r=mL(t);return{activeNodeCount:e.nodes.length-1,collapsedDirectoryIds:new Set,collapseNewDirectoriesByDefault:!1,defaultExpansion:r,directoriesOpenByDefault:r===`open`,hasCollapsedDirectoryOverrides:!1,directoryLoadInfoById:new Map,expandedDirectoryIds:new Set,instrumentation:n,listeners:new Map,pathCacheByNodeId:new Map([[e.rootId,{path:``,version:0}]]),pathCacheVersion:0,snapshot:e,transactionStack:[]}}function pL(){return{affectedAncestorIds:new Set,affectedNodeIds:new Set,events:[]}}function mL(e){if(typeof e!=`number`)return e;if(!Number.isInteger(e)||e<0)throw Error(`initialExpansion must be "open", "closed", or a non-negative integer depth. Received: ${String(e)}`);return e}function hL(e,t){return CI(t,2)||e.defaultExpansion===`open`?!0:e.defaultExpansion!==`closed`&&bI(t)<=e.defaultExpansion}function gL(e,t,n=e.snapshot.nodes[t]){return n==null||!Y(n)?!1:e.directoriesOpenByDefault&&!e.hasCollapsedDirectoryOverrides?!0:e.collapsedDirectoryIds.has(t)?!1:e.expandedDirectoryIds.has(t)?!0:hL(e,n)}function _L(e,t,n,r=e.snapshot.nodes[t]){if(r==null||!Y(r))return;let i=hL(e,r);if(n){if(i){e.collapsedDirectoryIds.delete(t),e.hasCollapsedDirectoryOverrides=e.collapsedDirectoryIds.size>0;return}e.expandedDirectoryIds.add(t);return}if(i){e.collapsedDirectoryIds.add(t),e.hasCollapsedDirectoryOverrides=!0;return}e.expandedDirectoryIds.delete(t)}function vL(e,t){let n=e.directoryLoadInfoById.get(t);if(n!=null)return n;let r={activeAttemptId:null,errorMessage:null,nextAttemptId:1,state:`loaded`};return e.directoryLoadInfoById.set(t,r),r}function yL(e,t){return e.directoryLoadInfoById.get(t)?.state??`loaded`}function bL(e,t){let n=vL(e,t);if(n.state===`loading`&&n.activeAttemptId!=null)return{attemptId:n.activeAttemptId,nodeId:t,reused:!0};let r=n.nextAttemptId;return n.activeAttemptId=r,n.errorMessage=null,n.nextAttemptId+=1,n.state=`loading`,{attemptId:r,nodeId:t,reused:!1}}function xL(e,t){let n=vL(e,t);n.activeAttemptId=null,n.errorMessage=null,n.state=`unloaded`}function SL(e,t,n){let r=e.directoryLoadInfoById.get(t);return r==null||r.activeAttemptId!==n?!1:(r.activeAttemptId=null,r.errorMessage=null,r.state=`loaded`,!0)}function CL(e,t,n){return e.directoryLoadInfoById.get(t)?.activeAttemptId===n}function wL(e,t,n,r){let i=e.directoryLoadInfoById.get(t);return i==null||i.activeAttemptId!==n?!1:(i.activeAttemptId=null,i.errorMessage=r??null,i.state=`error`,!0)}function TL(e,t){e.directoryLoadInfoById.delete(t)}function EL(e,t,n){let r=n,i=e.listeners.get(t);return i==null?e.listeners.set(t,new Set([r])):i.add(r),()=>{let n=e.listeners.get(t);n!=null&&(n.delete(r),n.size===0&&e.listeners.delete(t))}}function DL(e){return{affectedAncestorIds:e.affectedAncestorIds??[],affectedNodeIds:e.affectedNodeIds??[],canonicalChanged:!0,operation:`add`,path:e.path,projectionChanged:e.projectionChanged,visibleCountDelta:null}}function OL(e){return{affectedAncestorIds:e.affectedAncestorIds??[],affectedNodeIds:e.affectedNodeIds??[],canonicalChanged:!0,operation:`remove`,path:e.path,projectionChanged:e.projectionChanged,recursive:e.recursive,visibleCountDelta:null}}function kL(e){return{affectedAncestorIds:e.affectedAncestorIds??[],affectedNodeIds:e.affectedNodeIds??[],canonicalChanged:!0,from:e.from,operation:`move`,projectionChanged:e.projectionChanged,to:e.to,visibleCountDelta:null}}function AL(e){return{affectedAncestorIds:e.affectedAncestorIds??[],affectedNodeIds:e.affectedNodeIds??[],canonicalChanged:!1,operation:`expand`,path:e.path,projectionChanged:!0,visibleCountDelta:null}}function jL(e){return{affectedAncestorIds:e.affectedAncestorIds??[],affectedNodeIds:e.affectedNodeIds??[],canonicalChanged:!1,operation:`collapse`,path:e.path,projectionChanged:!0,visibleCountDelta:null}}function ML(e){return{affectedAncestorIds:e.affectedAncestorIds??[],affectedNodeIds:e.affectedNodeIds??[],canonicalChanged:!1,operation:`mark-directory-unloaded`,path:e.path,projectionChanged:e.projectionChanged,visibleCountDelta:null}}function NL(e){return{affectedAncestorIds:e.affectedAncestorIds??[],affectedNodeIds:e.affectedNodeIds??[],attemptId:e.attemptId,canonicalChanged:!1,operation:`begin-child-load`,path:e.path,projectionChanged:e.projectionChanged,reused:e.reused,visibleCountDelta:null}}function PL(e){return{affectedAncestorIds:e.affectedAncestorIds??[],affectedNodeIds:e.affectedNodeIds??[],attemptId:e.attemptId,canonicalChanged:e.childEvents.some(e=>e.canonicalChanged),childEvents:e.childEvents,operation:`apply-child-patch`,path:e.path,projectionChanged:e.projectionChanged,visibleCountDelta:null}}function FL(e){return{affectedAncestorIds:e.affectedAncestorIds??[],affectedNodeIds:e.affectedNodeIds??[],attemptId:e.attemptId,canonicalChanged:!1,operation:`complete-child-load`,path:e.path,projectionChanged:e.projectionChanged,stale:e.stale,visibleCountDelta:null}}function IL(e){return{affectedAncestorIds:e.affectedAncestorIds??[],affectedNodeIds:e.affectedNodeIds??[],attemptId:e.attemptId,canonicalChanged:!1,errorMessage:e.errorMessage,operation:`fail-child-load`,path:e.path,projectionChanged:e.projectionChanged,stale:e.stale,visibleCountDelta:null}}function LL(e){return{activeNodeCountAfter:e.activeNodeCountAfter,activeNodeCountBefore:e.activeNodeCountBefore,affectedAncestorIds:e.affectedAncestorIds??[],affectedNodeIds:e.affectedNodeIds??[],cachedPathEntryCountAfter:e.cachedPathEntryCountAfter,cachedPathEntryCountBefore:e.cachedPathEntryCountBefore,canonicalChanged:!1,idsPreserved:e.idsPreserved,loadInfoEntryCountAfter:e.loadInfoEntryCountAfter,loadInfoEntryCountBefore:e.loadInfoEntryCountBefore,mode:e.mode,operation:`cleanup`,projectionChanged:e.projectionChanged,reclaimedCachedPathEntryCount:e.reclaimedCachedPathEntryCount,reclaimedLoadInfoEntryCount:e.reclaimedLoadInfoEntryCount,reclaimedNodeSlotCount:e.reclaimedNodeSlotCount,reclaimedSegmentCount:e.reclaimedSegmentCount,segmentCountAfter:e.segmentCountAfter,segmentCountBefore:e.segmentCountBefore,totalNodeSlotCountAfter:e.totalNodeSlotCountAfter,totalNodeSlotCountBefore:e.totalNodeSlotCountBefore,visibleCountDelta:null}}function RL(e,t,n){return{...n,visibleCountDelta:YL(e)-t}}function zL(e,t){let n=YL(e),r=pL();e.transactionStack.push(r);try{t()}catch(t){throw HL(e,r,!1),t}HL(e,r,!0,YL(e)-n)}function BL(e,t){let n=e.instrumentation;if(n==null){VL(e,t);return}X(n,`store.events.record`,()=>VL(e,t))}function VL(e,t){let n=e.transactionStack[e.transactionStack.length-1]??null;if(n==null){qL(e,t);return}n.events.push(t),KL(n,t)}function HL(e,t,n,r=null){if(e.transactionStack.pop()!==t)throw Error(`Transaction stack underflow`);if(!n)return;let i=e.transactionStack[e.transactionStack.length-1]??null;if(i!=null){let n=e.instrumentation;n==null?GL(i,t):X(n,`store.events.batch.merge`,()=>GL(i,t));return}let a=UL(t,r),o=e.instrumentation;if(o==null){qL(e,a);return}X(o,`store.events.batch.commit`,()=>qL(e,a))}function UL(e,t){return{affectedAncestorIds:[...e.affectedAncestorIds],affectedNodeIds:[...e.affectedNodeIds],canonicalChanged:e.events.some(e=>e.canonicalChanged),events:[...e.events],operation:`batch`,projectionChanged:e.events.some(e=>e.projectionChanged),visibleCountDelta:t}}function WL(e,t){for(let n of t.affectedAncestorIds)e.affectedAncestorIds.add(n);for(let n of t.affectedNodeIds)e.affectedNodeIds.add(n)}function GL(e,t){for(let n of t.events)e.events.push(n);WL(e,t)}function KL(e,t){for(let n of t.affectedNodeIds)e.affectedNodeIds.add(n);for(let n of t.affectedAncestorIds)e.affectedAncestorIds.add(n)}function qL(e,t){let n=e.instrumentation;if(n==null){JL(e,t);return}X(n,`store.events.emit`,()=>JL(e,t))}function JL(e,t){e.listeners.get(t.operation)?.forEach(e=>e(t)),e.listeners.get(`*`)?.forEach(e=>e(t))}function YL(e){return e.snapshot.nodes[e.snapshot.rootId]?.visibleSubtreeCount??0}function XL(e,t){if(e.snapshot.options.flattenEmptyDirectories!==!0)return null;let n=e.snapshot.nodes[t];if(n==null||!Y(n)||CI(n,2))return null;let r=e.snapshot.directories.get(t);if(r==null||r.childIds.length!==1)return null;let i=r.childIds[0];if(i==null)return null;let a=e.snapshot.nodes[i];return a==null||!Y(a)?null:i}function ZL(e,t){let n=t;for(;;){let t=XL(e,n);if(t==null)return n;n=t}}function QL(e,t){let n=[t],r=t;for(;;){let t=XL(e,r);if(t==null)return n;n.push(t),r=t}}function $L(e,t){let n=t==null?e.snapshot.rootId:lR(e,t);return n==null?[]:fR(e,n)}function eR(e,t){let n=WI(t),r=n.isDirectory?n.segments:n.segments.slice(0,-1),i=DR(e,ER(e,r)),{createdNodeIds:a,directoryId:o}=pR(e,r),s=new Set(a),c=o;if(n.isDirectory){let n=Z(e,o);if(CI(n,1))throw Error(`Path already exists: "${t}"`);wI(n,1),e.pathCacheByNodeId.set(o,{path:t,version:e.pathCacheVersion}),s.add(o)}else c=hR(e,o,n.basename),s.add(c);oR(e,o);let l=DR(e,o);return DL({affectedAncestorIds:cR(e,c),affectedNodeIds:[...s],path:t,projectionChanged:OR(i,l)})}function tR(e,t,n){let r=lR(e,t);if(r==null)throw Error(`Path does not exist: "${t}"`);let i=Z(e,r);if(CI(i,2))throw Error(`The root node cannot be removed`);if(Y(i)&&dR(e,r).childIds.length>0&&n.recursive!==!0)throw Error(`Cannot remove a non-empty directory without recursive: "${t}"`);let a=i.parentId,o=DR(e,a),s=wR(e,r);vR(e,a,r,i.nameId),TR(e,a),oR(e,a);let c=DR(e,a);return OL({affectedAncestorIds:cR(e,a),affectedNodeIds:s,path:t,projectionChanged:OR(o,c),recursive:n.recursive===!0})}function nR(e,t,n,r){let i=lR(e,t);if(i==null)throw Error(`Source path does not exist: "${t}"`);let a=Z(e,i);if(CI(a,2))throw Error(`The root node cannot be moved`);let o=r.collision??`error`,s=SR(e,i,n),c=DR(e,a.parentId),l=DR(e,s.parentId),u=JI(e.snapshot.segmentTable,a.nameId),d=qI(e.snapshot.segmentTable,s.basename);if(s.parentId===a.parentId&&u===s.basename)return null;if(Y(a)&&MR(e,i,s.parentId))throw Error(`Cannot move a directory into one of its descendants`);let f=aI(e.snapshot.nodes,dR(e,s.parentId)).get(d),p=s.existingNodeId??f??null;if(p!=null&&p!==i&&CR(e,p,o,xI(a))===`skip`)return null;let m=a.parentId;vR(e,m,i,a.nameId),a.parentId=s.parentId,a.nameId=d,e.pathCacheByNodeId.delete(i),jR(e,i),_R(e,s.parentId,i),TR(e,m),e.pathCacheVersion++,oR(e,m),s.parentId!==m&&oR(e,s.parentId);let h=DR(e,m),g=DR(e,s.parentId);return kL({affectedAncestorIds:[...new Set([...cR(e,m),...cR(e,s.parentId)])],affectedNodeIds:[i],from:t,projectionChanged:kR([c,l],[h,g]),to:aR(e,i)})}function rR(e,t){let n=e.pathCacheByNodeId.get(t);return n!=null&&n.version===e.pathCacheVersion?n.path:null}function iR(e,t,n){return e.pathCacheByNodeId.set(t,{path:n,version:e.pathCacheVersion}),n}function aR(e,t){let n=Z(e,t),r=rR(e,t);if(r!=null)return r;if(CI(n,2))return iR(e,t,``);let i=aR(e,n.parentId),a=JI(e.snapshot.segmentTable,n.nameId),o=i.length===0?a:`${i}${a}`;return iR(e,t,Y(n)?`${o}/`:o)}function oR(e,t){let n=e.instrumentation;if(n==null){PR(e,t);return}X(n,`store.recomputeCountsUpwardFrom`,()=>PR(e,t))}function sR(e,t){let n=[[t,0]],{nodes:r,directories:i}=e.snapshot;for(;n.length>0;){let t=n[n.length-1],a=t[0],o=r[a];if(o==null||!Y(o)){NR(e,a,o,!0),n.pop();continue}let s=i.get(a);if(s==null||t[1]>=s.childIds.length){NR(e,a,o,!0),n.pop();continue}let c=s.childIds[t[1]++];n.push([c,0])}}function cR(e,t){let n=[],r=t;for(;r!=null;){let t=Z(e,r);if(n.push(r),r===e.snapshot.rootId)break;r=t.parentId}return n}function lR(e,t){if(t.length===0)return e.snapshot.rootId;let n=GI(t);return uR(e,n.segments,n.requiresDirectory)}function uR(e,t,n){let r=e.snapshot.rootId;for(let n of t){let t=e.snapshot.segmentTable.idByValue.get(n);if(t===void 0)return null;let i=dR(e,r),a=aI(e.snapshot.nodes,i).get(t);if(a===void 0)return null;r=a}let i=Z(e,r);return n&&!Y(i)?null:r}function dR(e,t){let n=e.snapshot.directories.get(t);if(n===void 0)throw Error(`Unknown directory child index for node ${String(t)}`);return n}function Z(e,t){let n=e.snapshot.nodes[t];if(n===void 0||CI(n,4))throw Error(`Unknown node ID: ${String(t)}`);return n}function fR(e,t){let n=e.snapshot.nodes[t];if(n===void 0||CI(n,4))return[];if(!Y(n))return[aR(e,t)];if(dR(e,t).childIds.length===0)return CI(n,1)&&!CI(n,2)?[aR(e,t)]:[];let r=[],i=[{childIndex:0,nodeId:t}];for(;i.length>0;){let t=i[i.length-1];if(t==null)break;let n=e.snapshot.nodes[t.nodeId];if(n===void 0||CI(n,4)){i.pop();continue}if(!Y(n)){r.push(aR(e,t.nodeId)),i.pop();continue}let a=dR(e,t.nodeId);if(a.childIds.length===0){CI(n,1)&&!CI(n,2)&&r.push(aR(e,t.nodeId)),i.pop();continue}let o=a.childIds[t.childIndex];if(o==null){i.pop();continue}t.childIndex++,i.push({childIndex:0,nodeId:o})}return r}function pR(e,t){let n=[],r=e.snapshot.rootId;for(let i of t){let t=qI(e.snapshot.segmentTable,i),a=dR(e,r),o=aI(e.snapshot.nodes,a).get(t);if(o!==void 0){if(!Y(Z(e,o)))throw Error(`Cannot create a directory that collides with an existing file: "${i}"`);r=o;continue}r=mR(e,r,t),n.push(r)}return{createdNodeIds:n,directoryId:r}}function mR(e,t,n){let r=Z(e,t),i=e.snapshot.nodes.length;return e.snapshot.nodes.push({depthAndFlags:yI(bI(r)+1,0,1),nameId:n,parentId:t,subtreeNodeCount:1,visibleSubtreeCount:1}),e.snapshot.directories.set(i,rI()),_R(e,t,i),e.collapseNewDirectoriesByDefault&&(e.collapsedDirectoryIds.add(i),e.hasCollapsedDirectoryOverrides=!0),e.activeNodeCount++,i}function hR(e,t,n){let r=qI(e.snapshot.segmentTable,n),i=dR(e,t);if(aI(e.snapshot.nodes,i).has(r))throw Error(`Path already exists: "${IR(e,t,n)}"`);let a=Z(e,t),o=e.snapshot.nodes.length;return e.snapshot.nodes.push({depthAndFlags:yI(bI(a)+1,0),nameId:r,parentId:t,subtreeNodeCount:1,visibleSubtreeCount:1}),_R(e,t,o),e.activeNodeCount++,o}function gR(e,t,n){let r=0,i=t.childIds.length;for(;r<i;){let a=r+i>>>1,o=t.childIds[a];if(o==null){i=a;continue}yR(e,n,o)<0?i=a:r=a+1}return r}function _R(e,t,n){let r=dR(e,t),i=Z(e,n);aI(e.snapshot.nodes,r).set(i.nameId,n),uI(r,n,i.subtreeNodeCount,i.visibleSubtreeCount);let a=gR(e,r,n);r.childIds.splice(a,0,n),cI(r,a),pI(e.snapshot.nodes,r)}function vR(e,t,n,r){let i=dR(e,t),a=oI(i),o=a.get(n)??-1;aI(e.snapshot.nodes,i).delete(r),a.delete(n);let s=e.snapshot.nodes[n];s!=null&&uI(i,n,-s.subtreeNodeCount,-s.visibleSubtreeCount),o>=0&&(i.childIds.splice(o,1),cI(i,o),pI(e.snapshot.nodes,i))}function yR(e,t,n){let r=e.snapshot.options.sort;return r==="default"?bR(e,t,n):r(xR(e,t),xR(e,n))}function bR(e,t,n){let r=Z(e,t),i=Z(e,n),a=Y(r);if(a!==Y(i))return a?-1:1;let o=PI(VI(e.snapshot.segmentTable,r.nameId),VI(e.snapshot.segmentTable,i.nameId));if(o!==0)return o;let s=JI(e.snapshot.segmentTable,r.nameId),c=JI(e.snapshot.segmentTable,i.nameId);return s===c?t<n?-1:1:s<c?-1:1}function xR(e,t){let n=Z(e,t),r=aR(e,t),i=Y(n),a=i?r.slice(0,-1):r;return{basename:JI(e.snapshot.segmentTable,n.nameId),depth:bI(n),isDirectory:i,path:r,segments:a.length===0?[]:a.split(`/`)}}function SR(e,t,n){let r=Z(e,t),i=lR(e,n);if(i!=null){let t=Z(e,i);if(Y(t))return{basename:JI(e.snapshot.segmentTable,r.nameId),existingNodeId:null,parentId:i};let a=GI(n).segments;return{basename:a[a.length-1]??``,existingNodeId:i,parentId:t.parentId}}let a=GI(n),o=a.segments[a.segments.length-1]??``,s=a.segments.slice(0,-1),c=s.length===0?e.snapshot.rootId:uR(e,s,!0);if(c==null)throw Error(`Destination parent does not exist: "${n}"`);return{basename:o,existingNodeId:null,parentId:c}}function CR(e,t,n,r){if(n===`skip`)return`skip`;if(n===`error`)throw Error(`Destination already exists: "${aR(e,t)}"`);let i=Z(e,t);if(xI(i)!==r)throw Error(`replace collision requires the same source and destination kinds`);if(Y(i)&&dR(e,t).childIds.length>0)throw Error(`replace collision does not support non-empty directories`);let a=i.parentId,o=i.nameId;return wR(e,t),vR(e,a,t,o),TR(e,a),oR(e,a),`handled`}function wR(e,t){let n=[],r=[{nodeId:t,visitedChildren:!1}];for(;r.length>0;){let t=r.pop();if(t==null)break;let i=Z(e,t.nodeId);if(t.visitedChildren||!Y(i)){Y(i)&&e.snapshot.directories.delete(t.nodeId),wI(i,4),e.pathCacheByNodeId.delete(t.nodeId),e.collapsedDirectoryIds.delete(t.nodeId)&&(e.hasCollapsedDirectoryOverrides=e.collapsedDirectoryIds.size>0),e.expandedDirectoryIds.delete(t.nodeId),TL(e,t.nodeId),e.activeNodeCount--,n.push(t.nodeId);continue}r.push({nodeId:t.nodeId,visitedChildren:!0});let a=dR(e,t.nodeId);for(let e=a.childIds.length-1;e>=0;e--){let t=a.childIds[e];t!=null&&r.push({nodeId:t,visitedChildren:!1})}}return n}function TR(e,t){let n=t;for(;n!=null;){let t=Z(e,n);if(!Y(t)||CI(t,2)||dR(e,n).childIds.length>0)return;wI(t,1),n=t.parentId===n?null:t.parentId}}function ER(e,t){let n=e.snapshot.rootId;for(let r of t){let t=e.snapshot.segmentTable.idByValue.get(r);if(t==null)break;let i=aI(e.snapshot.nodes,dR(e,n)).get(t);if(i==null||!Y(Z(e,i)))break;n=i}return n}function DR(e,t){let n=AR(e,t);if(n==null)return null;let r=ZL(e,n),i=Z(e,r),a=n===r?null:QL(e,n).map(t=>aR(e,t));return JSON.stringify({flattenedSegmentPaths:a,hasChildren:dR(e,r).childIds.length>0,path:aR(e,r),terminalKind:xI(i)})}function OR(e,t){return kR([e],[t])}function kR(e,t){for(let n=0;n<e.length;n+=1){let r=e[n],i=t[n];if(r==null||i==null||r!==i)return!0}return!1}function AR(e,t){let n=t;for(;n!=null;){let t=Z(e,n);if(!Y(t)||CI(t,2))return null;if(!gL(e,n,t))return n;n=t.parentId}return null}function jR(e,t){let n=Z(e,t);if(TI(n,(t===e.snapshot.rootId?-1:bI(Z(e,n.parentId)))+1),!Y(n))return;let r=dR(e,t);for(let t of r.childIds)jR(e,t)}function MR(e,t,n){let r=n;for(;r!=null;){if(r===t)return!0;let n=Z(e,r);if(r===e.snapshot.rootId)return!1;r=n.parentId}return!1}function NR(e,t,n=Z(e,t),r=!1){let i=e.instrumentation;if(i==null){FR(e,t,n,r);return}X(i,`store.recomputeNodeCounts`,()=>FR(e,t,n,r))}function PR(e,t){let n=t;for(;n!=null;){let t=Z(e,n),r=t.subtreeNodeCount,i=t.visibleSubtreeCount;if(NR(e,n,t),n===e.snapshot.rootId)return;let a=t.subtreeNodeCount-r,o=t.visibleSubtreeCount-i,s=t.parentId;(a!==0||o!==0)&&uI(dR(e,s),n,a,o),n=s}}function FR(e,t,n,r){if(!Y(n)){n.subtreeNodeCount=1,n.visibleSubtreeCount=1;return}let i=dR(e,t);if(r){let t=e.instrumentation;t==null?lI(e.snapshot.nodes,i):X(t,`store.recomputeNodeCounts.rebuildChildAggregates`,()=>lI(e.snapshot.nodes,i))}let a=1+i.totalChildSubtreeNodeCount,o=i.totalChildVisibleSubtreeCount;if(n.subtreeNodeCount=a,CI(n,2)){n.visibleSubtreeCount=o;return}n.visibleSubtreeCount=XL(e,t)==null?gL(e,t,n)?1+o:1:o}function IR(e,t,n){let r=aR(e,t);return r.length===0?n:`${r}${n}`}function LR(e){return e!=null&&!CI(e,4)}function RR(e,t){let n=e.snapshot.nodes[t];return!LR(n)||!Y(n)||CI(n,2)?null:n}function zR(e){let t=0;for(let[n,r]of e.pathCacheByNodeId)r.version===e.pathCacheVersion&&LR(e.snapshot.nodes[n])&&(t+=1);return t}function BR(e){return Math.max(0,e.valueById.length-1)}function VR(e){return{activeNodeCount:e.activeNodeCount,cachedPathEntryCount:zR(e),loadInfoEntryCount:e.directoryLoadInfoById.size,segmentCount:BR(e.snapshot.segmentTable),totalNodeSlotCount:Math.max(0,e.snapshot.nodes.length-1)}}function HR(e,t,n,r){return{activeNodeCountAfter:r.activeNodeCount,activeNodeCountBefore:n.activeNodeCount,cachedPathEntryCountAfter:r.cachedPathEntryCount,cachedPathEntryCountBefore:n.cachedPathEntryCount,idsPreserved:t,loadInfoEntryCountAfter:r.loadInfoEntryCount,loadInfoEntryCountBefore:n.loadInfoEntryCount,mode:e,reclaimedCachedPathEntryCount:n.cachedPathEntryCount-r.cachedPathEntryCount,reclaimedLoadInfoEntryCount:n.loadInfoEntryCount-r.loadInfoEntryCount,reclaimedNodeSlotCount:n.totalNodeSlotCount-r.totalNodeSlotCount,reclaimedSegmentCount:n.segmentCount-r.segmentCount,segmentCountAfter:r.segmentCount,segmentCountBefore:n.segmentCount,totalNodeSlotCountAfter:r.totalNodeSlotCount,totalNodeSlotCountBefore:n.totalNodeSlotCount}}function UR(e){let t=[],n=[];for(let n of e.collapsedDirectoryIds)RR(e,n)!=null&&t.push(aR(e,n));for(let t of e.expandedDirectoryIds)RR(e,t)!=null&&n.push(aR(e,t));return{collapsedPaths:t,expandedPaths:n}}function WR(e){let t=[];for(let[n,r]of e.directoryLoadInfoById)RR(e,n)!=null&&yL(e,n)!==`loaded`&&t.push({info:{activeAttemptId:null,errorMessage:r.errorMessage,nextAttemptId:r.nextAttemptId,state:r.state},path:aR(e,n)});return t}function GR(e,t){e.collapsedDirectoryIds.clear(),e.hasCollapsedDirectoryOverrides=!1,e.expandedDirectoryIds.clear();for(let n of t.expandedPaths){let t=lR(e,n);t!=null&&_L(e,t,!0,Z(e,t))}for(let n of t.collapsedPaths){let t=lR(e,n);t!=null&&_L(e,t,!1,Z(e,t))}}function KR(e,t){e.directoryLoadInfoById.clear();for(let n of t){let t=lR(e,n.path);t!=null&&RR(e,t)!=null&&e.directoryLoadInfoById.set(t,{activeAttemptId:null,errorMessage:n.info.errorMessage,nextAttemptId:n.info.nextAttemptId,state:n.info.state})}}function qR(e){e.pathCacheVersion+=1,e.pathCacheByNodeId.clear(),e.pathCacheByNodeId.set(e.snapshot.rootId,{path:``,version:e.pathCacheVersion})}function JR(e){let t=e.snapshot.segmentTable,n=KI();for(let r of e.snapshot.nodes)if(LR(r)){if(CI(r,2)){r.nameId=0;continue}r.nameId=qI(n,JI(t,r.nameId))}e.snapshot.segmentTable=n}function YR(e){for(let[t,n]of e.snapshot.directories){let r=e.snapshot.nodes[t];if(!LR(r)||!Y(r)){e.snapshot.directories.delete(t);continue}let i=n.childIds.filter(n=>{let r=e.snapshot.nodes[n];return LR(r)&&r.parentId===t});n.childIds=i,n.childIdByNameId=new Map(i.map(t=>[Z(e,t).nameId,t])),n.childPositionById=new Map(i.map((e,t)=>[e,t])),lI(e.snapshot.nodes,n)}}function XR(e){let t=e.snapshot.nodes.length-1;for(;t>e.snapshot.rootId;){let n=e.snapshot.nodes[t];if(LR(n))break;--t}e.snapshot.nodes.length=t+1}function ZR(e){let t=UR(e),n=WR(e);X(e.instrumentation,`store.cleanup.stable.clearPathCaches`,()=>qR(e)),X(e.instrumentation,`store.cleanup.stable.rebuildSegmentTable`,()=>JR(e)),X(e.instrumentation,`store.cleanup.stable.rebuildDirectoryIndexes`,()=>YR(e)),X(e.instrumentation,`store.cleanup.stable.trimTrailingRemovedNodeSlots`,()=>XR(e)),X(e.instrumentation,`store.cleanup.stable.restoreExpansionOverrides`,()=>GR(e,t)),X(e.instrumentation,`store.cleanup.stable.restoreDirectoryLoadInfos`,()=>KR(e,n)),X(e.instrumentation,`store.cleanup.stable.recomputeCounts`,()=>sR(e,e.snapshot.rootId))}function QR(e){let t=UR(e),n=WR(e),r=X(e.instrumentation,`store.cleanup.aggressive.listPaths`,()=>$L(e)),i=DI({...e.snapshot.options},e.instrumentation),a=X(e.instrumentation,`store.cleanup.aggressive.rebuildSnapshot`,()=>{let e=new dL(i);return e.appendPaths(r),e.finish()});e.snapshot=a,e.activeNodeCount=a.nodes.length-1,e.pathCacheByNodeId=new Map([[a.rootId,{path:``,version:0}]]),e.pathCacheVersion=0,X(e.instrumentation,`store.cleanup.aggressive.restoreExpansionOverrides`,()=>GR(e,t)),X(e.instrumentation,`store.cleanup.aggressive.restoreDirectoryLoadInfos`,()=>KR(e,n)),X(e.instrumentation,`store.cleanup.aggressive.recomputeCounts`,()=>sR(e,e.snapshot.rootId))}function $R(e){for(let t of e.directoryLoadInfoById.values())if(t.state===`loading`&&t.activeAttemptId!=null)return!0;return!1}function ez(e,t){let n=VR(e);t===`stable`?X(e.instrumentation,`store.cleanup.stable`,()=>ZR(e)):X(e.instrumentation,`store.cleanup.aggressive`,()=>QR(e));let r=VR(e);return HR(t,t===`stable`,n,r)}var tz=64;function nz(e,t){let n=t+2;if(n<=e.length)return e;let r=e.length;for(;r<n;)r*=2;let i=new Int32Array(r);return i.fill(-1),i.set(e),i}function rz(e){return Z(e,e.snapshot.rootId).visibleSubtreeCount}function iz(e,t,n,r){let i=Z(e,t.terminalNodeId),a=Math.max(1,i.visibleSubtreeCount);return Math.min(r-1,n+a-1)}function az(e,t,n,r){return{ancestorPaths:r,index:t.index,posInSet:t.posInSet,row:wz(e,t.cursor),setSize:t.setSize,subtreeEndIndex:iz(e,t.cursor,t.index,n)}}function oz(e,t,n,r,i,a){let o=dR(e,t),{childIndex:s,childVisibleIndex:c,localVisibleIndex:l}=dI(e.snapshot.nodes,o,n),u=o.childIds[s];if(u==null)throw Error(`Visible index ${String(n)} is out of range`);return sz(e,u,l,r+c,i+1,s,o.childIds.length,a)}function sz(e,t,n,r,i,a,o,s){if(!Y(Z(e,t))){if(n===0)return{ancestors:s,cursor:{headNodeId:t,terminalNodeId:t,visibleDepth:i},index:r,posInSet:a,setSize:o};throw Error(`Visible index ${String(n)} is out of range for file`)}let c=vz(e,t,i);if(n===0)return{ancestors:s,cursor:c,index:r,posInSet:a,setSize:o};let l=Z(e,c.terminalNodeId);if(!Y(l)||!gL(e,c.terminalNodeId,l))throw Error(`Visible index ${String(n)} is out of range for collapsed directory`);return oz(e,c.terminalNodeId,n-1,r+1,c.visibleDepth,[...s,{cursor:c,index:r,posInSet:a,setSize:o}])}function cz(e,t){let n=rz(e);if(t<0||t>=n)return null;let r=oz(e,e.snapshot.rootId,t,0,-1,[]),i=r.ancestors.map(t=>aR(e,t.cursor.terminalNodeId)),a=null;return{ancestorPaths:i,get ancestorRows(){if(a!=null)return a;let t=[],i=[];for(let a of r.ancestors){let r=az(e,a,n,[...i]);t.push(r),i.push(r.row.path)}return a=t,a},index:r.index,posInSet:r.posInSet,row:wz(e,r.cursor),setSize:r.setSize,subtreeEndIndex:iz(e,r.cursor,r.index,n)}}function lz(e,t,n){let r=e.instrumentation,i=rz(e);if(i<=0||n<t)return[];let a=Math.max(0,Math.min(t,i-1)),o=Math.max(a,Math.min(n,i-1));if(r==null){if(a===0)return Cz(e,o+1);let t=[],n=hz(e,a);for(let r=a;r<=o&&n!=null;r++){let r=wz(e,n);t.push(r),n=bz(e,n)}return t}let s=[],c=0,l=0,u=X(r,`store.getVisibleSlice.selectFirstRow`,()=>hz(e,a));for(let t=a;t<=o&&u!=null;t++){let t=X(r,`store.getVisibleSlice.materializeRow`,()=>wz(e,u));s.push(t),t.isFlattened&&(c++,l+=t.flattenedSegments?.length??0),u=X(r,`store.getVisibleSlice.advanceCursor`,()=>bz(e,u))}return kI(r,`workload.visibleRowsRead`,s.length),kI(r,`workload.flattenedRowsRead`,c),kI(r,`workload.flattenedSegmentsRead`,l),s}function uz(e,t=rz(e)){let n=e.instrumentation;return n==null?Sz(e,t):X(n,`store.getVisibleTreeProjection`,()=>Sz(e,t))}function dz(e){return xz(uz(e))}function fz(e,t){let n=lR(e,t);if(n==null||n===e.snapshot.rootId||Y(Z(e,n))&&ZL(e,n)!==n)return null;let r=0,i=n,{nodes:a,rootId:o}=e.snapshot;for(;i!==o;){let t=Z(e,i).parentId,n=dR(e,t),s=oI(n).get(i);if(s==null)throw Error(`Child ${String(i)} was not found in its parent index`);if(r+=fI(a,n,s),t!==o){let n=Z(e,t),a=XL(e,t);if(!gL(e,t,n)&&a!==i)return null;ZL(e,t)===t&&(r+=1)}i=t}return r}function pz(e,t){let n=lR(e,t);if(n==null)throw Error(`Path does not exist: "${t}"`);let r=Z(e,n);if(!Y(r))throw Error(`Path is not a directory: "${t}"`);return gL(e,n,r)?null:(_L(e,n,!0,r),oR(e,n),AL({affectedAncestorIds:cR(e,n),affectedNodeIds:[n],path:t,projectionChanged:!0}))}function mz(e,t){let n=lR(e,t);if(n==null)throw Error(`Path does not exist: "${t}"`);let r=Z(e,n);if(!Y(r))throw Error(`Path is not a directory: "${t}"`);return gL(e,n,r)?(_L(e,n,!1,r),oR(e,n),jL({affectedAncestorIds:cR(e,n),affectedNodeIds:[n],path:t,projectionChanged:!0})):null}function hz(e,t){return t<0||t>=rz(e)?null:gz(e,e.snapshot.rootId,t,-1)}function gz(e,t,n,r){let i=dR(e,t),a=e.instrumentation,{childIndex:o,localVisibleIndex:s}=a==null?dI(e.snapshot.nodes,i,n):X(a,`store.getVisibleSlice.selectChildIndex`,()=>dI(e.snapshot.nodes,i,n)),c=i.childIds[o];if(c!=null)return _z(e,c,s,r+1);throw Error(`Visible index ${String(n)} is out of range`)}function _z(e,t,n,r){if(!Y(Z(e,t))){if(n===0)return{headNodeId:t,terminalNodeId:t,visibleDepth:r};throw Error(`Visible index ${String(n)} is out of range for file`)}let i=vz(e,t,r);if(n===0)return i;let a=Z(e,i.terminalNodeId);if(!Y(a)||!gL(e,i.terminalNodeId,a))throw Error(`Visible index ${String(n)} is out of range for collapsed directory`);return gz(e,i.terminalNodeId,n-1,i.visibleDepth)}function vz(e,t,n){return Y(Z(e,t))?e.instrumentation==null?{headNodeId:t,terminalNodeId:ZL(e,t),visibleDepth:n}:{headNodeId:t,terminalNodeId:X(e.instrumentation,`store.getVisibleSlice.flatten.resolveTerminalDirectory`,()=>ZL(e,t)),visibleDepth:n}:{headNodeId:t,terminalNodeId:t,visibleDepth:n}}function yz(e,t){let n=Z(e,t);if(!Y(n))return!0;let r=n.parentId;return r===e.snapshot.rootId||XL(e,r)!==t}function bz(e,t){let n=Z(e,t.terminalNodeId);if(Y(n)){let r=dR(e,t.terminalNodeId);if(gL(e,t.terminalNodeId,n)&&r.childIds.length>0){let n=r.childIds[0];return n==null?null:_z(e,n,0,t.visibleDepth+1)}}let r=t.terminalNodeId,i=t.visibleDepth;for(;;){let t=Z(e,r);if(r===e.snapshot.rootId)return null;let n=t.parentId,a=dR(e,n),o=oI(a).get(r)??-1;if(o<0)throw Error(`Child ${String(r)} was not found in its parent index`);let s=a.childIds[o+1]??null;if(s!=null)return _z(e,s,0,i);yz(e,r)&&i--,r=n}}function xz(e){let t=e.paths.length,n=Array(t);for(let r=0;r<t;r+=1){let t=e.getParentIndex(r);n[r]={index:r,parentPath:t>=0?e.paths[t]??null:null,path:e.paths[r]??``,posInSet:e.posInSetByIndex[r]??0,setSize:e.setSizeByIndex[r]??0}}return{getParentIndex:e.getParentIndex,rows:n,get visibleIndexByPath(){return e.visibleIndexByPath}}}function Sz(e,t){let n=Array(t),r=new Int32Array(t),i=new Int32Array(t),a=new Int32Array(t),o=new Int32Array(tz);o.fill(-1);let s=0,{nodes:c,directories:l,segmentTable:u}=e.snapshot,d=[[l.get(e.snapshot.rootId),0,-1,``]],f=e.snapshot.options.flattenEmptyDirectories,p=e.pathCacheByNodeId,m=e.pathCacheVersion,h=u.valueById;for(;d.length>0&&s<t;){let t=d[d.length-1],u=t[0];if(t[1]>=u.childIds.length){d.pop();continue}let g=t[1],_=u.childIds[t[1]++],v=c[_],y=t[2]+1,b=t[3];o=nz(o,y);let x,S=_;if(Y(v))S=f?ZL(e,_):_,x=S===_?`${b}${h[v.nameId]}/`:aR(e,S);else{let e=p.get(_);x=e!=null&&e.version===m?e.path:`${b}${h[v.nameId]}`}r[s]=o[y],n[s]=x,i[s]=g,a[s]=u.childIds.length,o[y+1]=s,s+=1;let C=c[S];C!=null&&Y(C)&&gL(e,S,C)&&d.push([l.get(S),0,y,x])}s<t&&(n.length=s);let g=r.subarray(0,s),_=i.subarray(0,s),v=a.subarray(0,s),y=null;return{getParentIndex(e){return e<0||e>=s?-1:g[e]??-1},paths:n,posInSetByIndex:_,setSizeByIndex:v,get visibleIndexByPath(){if(y==null){y=new Map;for(let e=0;e<s;e+=1)y.set(n[e]??``,e)}return y}}}function Cz(e,t){let n=Array(t),r=0,{nodes:i,directories:a,segmentTable:o}=e.snapshot,s=[[a.get(e.snapshot.rootId),0,-1]],c=o.valueById,l=e.snapshot.options.flattenEmptyDirectories,u=e.pathCacheByNodeId,d=e.pathCacheVersion;for(;s.length>0&&r<t;){let t=s[s.length-1],o=t[0];if(t[1]>=o.childIds.length){s.pop();continue}let f=o.childIds[t[1]++],p=i[f],m=t[2]+1;if(!Y(p)){let t=u.get(f);n[r++]={depth:m,flattenedSegments:void 0,hasChildren:!1,id:f,isExpanded:!1,isFlattened:!1,isLoading:!1,kind:`file`,loadState:void 0,name:c[p.nameId],path:t!=null&&t.version===d?t.path:aR(e,f)};continue}let h=l?ZL(e,f):f,g={headNodeId:f,terminalNodeId:h,visibleDepth:m};n[r++]=wz(e,g);let _=i[h];_!=null&&Y(_)&&gL(e,h,_)&&s.push([a.get(h),0,m])}return r<t&&(n.length=r),n}function wz(e,t){let n=Z(e,t.terminalNodeId),r=Y(n)?Tz(e,t):null,i=aR(e,t.terminalNodeId),a=JI(e.snapshot.segmentTable,n.nameId),o=Y(n)&&dR(e,t.terminalNodeId).childIds.length>0,s=t.headNodeId!==t.terminalNodeId,c=e.instrumentation,l=s?c==null?QL(e,t.headNodeId).map(n=>{let r=Z(e,n);return{isTerminal:n===t.terminalNodeId,name:JI(e.snapshot.segmentTable,r.nameId),nodeId:n,path:aR(e,n)}}):X(c,`store.getVisibleSlice.flatten.collectSegments`,()=>QL(e,t.headNodeId).map(n=>{let r=Z(e,n);return{isTerminal:n===t.terminalNodeId,name:JI(e.snapshot.segmentTable,r.nameId),nodeId:n,path:aR(e,n)}})):void 0;return{depth:t.visibleDepth,flattenedSegments:l,hasChildren:o,id:t.terminalNodeId,isExpanded:Y(n)&&gL(e,t.terminalNodeId,n),isFlattened:s,isLoading:r===`loading`,kind:Y(n)?`directory`:`file`,loadState:r==null||r===`loaded`?void 0:r,name:a,path:i}}function Tz(e,t){if(t.headNodeId===t.terminalNodeId)return yL(e,t.terminalNodeId);let n=QL(e,t.headNodeId),r=!1,i=!1;for(let t of n){let n=yL(e,t);if(n===`loading`)return`loading`;if(n===`error`){i=!0;continue}n===`unloaded`&&(r=!0)}return i?`error`:r?`unloaded`:`loaded`}var Ez=8;function Dz(e){let{nodes:t,directories:n,rootId:r,options:i}=e,a=t.length,o=new Int32Array(a),s=new Int32Array(a),c=new Int32Array(a),l=new Int32Array(a),u=new Int32Array(a),d=new Int32Array(a),f=new Int32Array(a);for(let e=0;e<a;e+=1){let n=t[e];n!=null&&(o[e]=n.parentId,s[e]=n.nameId,c[e]=n.depthAndFlags,l[e]=n.subtreeNodeCount,u[e]=n.visibleSubtreeCount)}let p=0;for(let e of n.values())p+=e.childIds.length;let m=new Int32Array(p),h=0;for(let[e,t]of n){let n=t.childIds;d[e]=h,f[e]=n.length;for(let e=0;e<n.length;e+=1)m[h]=n[e],h+=1}return{nodeCount:a,rootId:r,flattenEmptyDirectories:i.flattenEmptyDirectories===!0,parentId:o,nameId:s,depthAndFlags:c,subtreeNodeCount:l,visibleSubtreeCount:u,childStart:d,childCount:f,childIdsFlat:m}}function Oz(e){let{nodeCount:t,rootId:n,flattenEmptyDirectories:r,depthAndFlags:i,subtreeNodeCount:a,visibleSubtreeCount:o,childStart:s,childCount:c,childIdsFlat:l}=e;for(let e=t-1;e>=1;--e){if((i[e]&Ez)===0)continue;let t=s[e],n=c[e],u=0,d=0;for(let e=0;e<n;e+=1){let n=l[t+e];u+=a[n],d+=o[n]}a[e]=1+u;let f;f=r&&n===1?(i[l[t]]&Ez)===0?1+d:d:1+d,o[e]=f}let u=s[n],d=c[n],f=0,p=0;for(let e=0;e<d;e+=1){let t=l[u+e];f+=a[t],p+=o[t]}a[n]=1+f,o[n]=p}function kz(e){let{directories:t,nodes:n,options:r,rootId:i,presortedDirectoryNodeIds:a}=e.snapshot,o=r.flattenEmptyDirectories===!0,s=e=>{let r=n[e];if(r==null||!Y(r))return;let i=t.get(e);if(i==null)throw Error(`Unknown directory child index for node ${String(e)}`);let a=i.childIds,s=a.length,c=0,l=0;for(let e=0;e<s;e++){let t=a[e];if(t==null)continue;let r=n[t];c+=r.subtreeNodeCount,l+=r.visibleSubtreeCount}i.totalChildSubtreeNodeCount=c,i.totalChildVisibleSubtreeCount=l,s>=128&&pI(n,i),r.subtreeNodeCount=1+c;let u;if(o&&s===1){let e=n[a[0]];u=e!=null&&Y(e)?l:1+l}else u=1+l;r.visibleSubtreeCount=u};if(a!=null)for(let e=a.length-1;e>=0;e--)s(a[e]);else for(let e=n.length-1;e>=1;e--)s(e);let c=n[i],l=t.get(i);if(c==null||l==null)return;let u=l.childIds,d=0,f=0;for(let e=0;e<u.length;e++){let t=u[e];if(t==null)continue;let r=n[t];d+=r.subtreeNodeCount,f+=r.visibleSubtreeCount}l.totalChildSubtreeNodeCount=d,l.totalChildVisibleSubtreeCount=f,pI(n,l),c.subtreeNodeCount=1+d,c.visibleSubtreeCount=f}function Az(e){let{directories:t,nodes:n,rootId:r}=e.snapshot,i=Dz(e.snapshot);Oz(i);let a=i.subtreeNodeCount,o=i.visibleSubtreeCount;for(let e=0;e<n.length;e+=1){let t=n[e];t!=null&&(t.subtreeNodeCount=a[e],t.visibleSubtreeCount=o[e])}for(let[e,i]of t){let t=i.childIds,a=t.length,o=0,s=0;for(let e=0;e<a;e++){let r=t[e];if(r==null)continue;let i=n[r];o+=i.subtreeNodeCount,s+=i.visibleSubtreeCount}i.totalChildSubtreeNodeCount=o,i.totalChildVisibleSubtreeCount=s,(e===r||a>=128)&&pI(n,i)}}function jz(e){return e.initialExpansion===`open`&&(e.initialExpandedPaths==null||e.initialExpandedPaths.length===0)}var Mz=class e{#e;constructor(e={}){let t=OI(e),n=X(t,`store.builder.create`,()=>new dL(e));if(e.preparedInput!=null){let t=cL(e.preparedInput);t==null?n.appendPreparedPaths(sL(e.preparedInput),!1):n.appendPresortedPaths(t,lL(e.preparedInput))}else{let r=e.paths??[];e.presorted===!0?n.appendPaths(r):n.appendPreparedPaths(X(t,`store.preparePathEntries`,()=>uL(r,e)))}let r=X(t,`store.builder.finish`,()=>n.finish({skipSubtreeCountPass:!0})),i=X(t,`store.state.detectAllDirectoriesExpanded`,()=>(e.initialExpansion??`closed`)===`closed`&&n.didMatchAllInitialExpandedPaths());this.#e=X(t,`store.state.create`,()=>fL(r,i?`open`:e.initialExpansion??`closed`,t)),i&&(this.#e.collapseNewDirectoriesByDefault=!0);let a=i?this.#e.snapshot.directories.size-1:X(t,`store.state.initializeExpandedPaths`,()=>this.initializeExpandedPaths(e.initialExpandedPaths));i||jz(e)||(e.initialExpansion??`closed`)===`closed`&&a===this.#e.snapshot.directories.size-1||(e.initialExpandedPaths?.length??0)>0&&X(t,`store.state.checkAllDirectoriesExpanded`,()=>this.hasAllDirectoriesExpanded())?e.useSoaCountSweep===!0?X(t,`store.state.initializeOpenVisibleCountsViaSoa`,()=>Az(this.#e)):X(t,`store.state.initializeOpenVisibleCounts`,()=>kz(this.#e)):X(t,`store.state.recomputeCounts`,()=>sR(this.#e,this.#e.snapshot.rootId))}static preparePaths(e,t={}){return iL(e,t)}static prepareInput(e,t={}){return aL(e,t)}static preparePresortedInput(e){return oL(e)}list(e){return X(this.#e.instrumentation,`store.list`,()=>$L(this.#e,e))}add(e){X(this.#e.instrumentation,`store.add`,()=>{let t=rz(this.#e);BL(this.#e,RL(this.#e,t,eR(this.#e,e)))})}remove(e,t={}){X(this.#e.instrumentation,`store.remove`,()=>{let n=rz(this.#e);BL(this.#e,RL(this.#e,n,tR(this.#e,e,t)))})}move(e,t,n={}){X(this.#e.instrumentation,`store.move`,()=>{let r=rz(this.#e),i=nR(this.#e,e,t,n);i!=null&&BL(this.#e,RL(this.#e,r,i))})}batch(e){zL(this.#e,()=>{if(typeof e==`function`){e(this);return}for(let t of e)switch(t.type){case`add`:this.add(t.path);break;case`remove`:this.remove(t.path,{recursive:t.recursive});break;case`move`:this.move(t.from,t.to,{collision:t.collision})}})}getVisibleCount(){return X(this.#e.instrumentation,`store.getVisibleCount`,()=>rz(this.#e))}getVisibleSlice(e,t){return X(this.#e.instrumentation,`store.getVisibleSlice`,()=>lz(this.#e,e,t))}getVisibleRowContext(e){return X(this.#e.instrumentation,`store.getVisibleRowContext`,()=>cz(this.#e,e))}getVisibleTreeProjection(){return dz(this.#e)}getVisibleTreeProjectionData(e){return uz(this.#e,e)}getVisibleIndex(e){return X(this.#e.instrumentation,`store.getVisibleIndex`,()=>fz(this.#e,e))}getPathInfo(e){return X(this.#e.instrumentation,`store.getPathInfo`,()=>{let t=lR(this.#e,e);if(t==null)return null;let n=Z(this.#e,t);return{depth:bI(n),kind:Y(n)?`directory`:`file`,path:aR(this.#e,t)}})}isExpanded(e){return X(this.#e.instrumentation,`store.isExpanded`,()=>{let t=this.requireDirectoryNodeId(e),n=Z(this.#e,t);return gL(this.#e,t,n)})}expand(e){X(this.#e.instrumentation,`store.expand`,()=>{let t=rz(this.#e),n=pz(this.#e,e);n!=null&&BL(this.#e,RL(this.#e,t,n))})}collapse(e){X(this.#e.instrumentation,`store.collapse`,()=>{let t=rz(this.#e),n=mz(this.#e,e);n!=null&&BL(this.#e,RL(this.#e,t,n))})}on(e,t){return EL(this.#e,e,t)}getDirectoryLoadState(e){let t=this.requireDirectoryNodeId(e);return yL(this.#e,t)}markDirectoryUnloaded(e){X(this.#e.instrumentation,`store.markDirectoryUnloaded`,()=>{let t=this.requireDirectoryNodeId(e);if(dR(this.#e,t).childIds.length>0)throw Error(`Cannot mark a directory with known children as unloaded: "${e}"`);let n=rz(this.#e);xL(this.#e,t),BL(this.#e,RL(this.#e,n,ML({affectedAncestorIds:cR(this.#e,t),affectedNodeIds:[t],path:e,projectionChanged:this.isDirectoryProjectionVisible(t)})))})}beginChildLoad(e){return X(this.#e.instrumentation,`store.beginChildLoad`,()=>{let t=this.requireDirectoryNodeId(e),n=rz(this.#e),r=bL(this.#e,t);return BL(this.#e,RL(this.#e,n,NL({affectedAncestorIds:cR(this.#e,t),affectedNodeIds:[t],attemptId:r.attemptId,path:e,projectionChanged:this.isDirectoryProjectionVisible(t),reused:r.reused}))),r})}applyChildPatch(e,t){return X(this.#e.instrumentation,`store.applyChildPatch`,()=>{let n=this.resolveActiveDirectoryNodeId(e.nodeId);if(n==null||yL(this.#e,n)!==`loading`||!CL(this.#e,n,e.attemptId))return!1;let r=aR(this.#e,n);this.validateChildPatch(r,t);let i=rz(this.#e),a=[];for(let e of t.operations){Nz(r,e);let t=rz(this.#e);switch(e.type){case`add`:a.push(RL(this.#e,t,eR(this.#e,e.path)));break;case`remove`:a.push(RL(this.#e,t,tR(this.#e,e.path,{recursive:e.recursive})));break;case`move`:{let n=nR(this.#e,e.from,e.to,{collision:e.collision});n!=null&&a.push(RL(this.#e,t,n));break}}}let o=a.some(e=>e.projectionChanged)||this.isDirectoryProjectionVisible(n);return BL(this.#e,RL(this.#e,i,PL({affectedAncestorIds:cR(this.#e,n),affectedNodeIds:[n],attemptId:e.attemptId,childEvents:a,path:aR(this.#e,n),projectionChanged:o}))),!0})}completeChildLoad(e){return X(this.#e.instrumentation,`store.completeChildLoad`,()=>{let t=this.resolveActiveDirectoryNodeId(e.nodeId);if(t==null)return!1;let n=rz(this.#e),r=SL(this.#e,t,e.attemptId);return BL(this.#e,RL(this.#e,n,FL({affectedAncestorIds:cR(this.#e,t),affectedNodeIds:[t],attemptId:e.attemptId,path:aR(this.#e,t),projectionChanged:this.isDirectoryProjectionVisible(t),stale:!r}))),r})}failChildLoad(e,t){return X(this.#e.instrumentation,`store.failChildLoad`,()=>{let n=this.resolveActiveDirectoryNodeId(e.nodeId);if(n==null)return!1;let r=rz(this.#e),i=wL(this.#e,n,e.attemptId,t);return BL(this.#e,RL(this.#e,r,IL({affectedAncestorIds:cR(this.#e,n),affectedNodeIds:[n],attemptId:e.attemptId,errorMessage:t,path:aR(this.#e,n),projectionChanged:this.isDirectoryProjectionVisible(n),stale:!i}))),i})}cleanup(e={}){return X(this.#e.instrumentation,`store.cleanup`,()=>{if(this.#e.transactionStack.length>0)throw Error(`Cleanup cannot run during an open batch or transaction.`);if($R(this.#e))throw Error(`Cleanup cannot run while directory loads are active.`);let t=rz(this.#e),n=ez(this.#e,e.mode??`stable`);return BL(this.#e,RL(this.#e,t,LL({...n,affectedAncestorIds:[],affectedNodeIds:[],projectionChanged:n.idsPreserved===!1}))),n})}getNodeCount(){return this.#e.activeNodeCount}initializeExpandedPaths(e){if(e==null||e.length===0)return 0;let t=0,n=[],r=[],i=0,a=null,o=this.#e.snapshot.segmentTable,s=o.valueById,c=this.#e.snapshot.nodes,l=new Map;for(let u of e){a!=null&&u<a&&(a=null,i=0,n.length=0,r.length=0);let e=u.length>0&&u.charCodeAt(u.length-1)===47?u.length-1:u.length;if(e===0){a=u,i=e,n.length=0,r.length=0;continue}let d=0,f=0;if(a!=null){let t=Math.min(e,i),n=!0;for(let e=0;e<t;e+=1){let t=u.charCodeAt(e);if(t!==a.charCodeAt(e)){n=!1;break}t===47&&(d+=1,f=e+1)}n&&(t===i&&e>t&&u.charCodeAt(t)===47?(d+=1,f=t+1):t===e&&i>t&&a.charCodeAt(t)===47&&(d+=1,f=e+1)),d=Math.min(d,r.length)}let p=d===0?this.#e.snapshot.rootId:r[d-1]??this.#e.snapshot.rootId,m=d,h=!0,g=f;for(;g<=e;){let t=u.indexOf(`/`,g),i=t===-1||t>e?e:t,a=u.slice(g,i),f=dR(this.#e,p).childIds,_=m===d?n[m]??0:0,v=_,y,b=l.get(a)??MI(a);l.set(a,b);let x=(e,t)=>{for(v=e;v<t;v+=1){let e=f[v],t=c[e],n=s[t.nameId];if(n===a)return y=e,!0;let r=PI(VI(o,t.nameId),b);if(r>0||r===0&&n>a)return!1}return!1};if(!x(_,f.length)&&_>0&&x(0,_),y===void 0){h=!1;break}if(!Y(Z(this.#e,y))){h=!1;break}if(n[m]=v,r[m]=y,p=y,m+=1,i===e)break;g=i+1}if(a=u,i=e,n.length=m,r.length=m,!h){a=null,i=0,n.length=0,r.length=0;continue}for(let e=d;e<m;e+=1){let n=r[e];if(n==null)continue;let i=Z(this.#e,n);gL(this.#e,n,i)||(_L(this.#e,n,!0,i),t+=1)}}return t}hasAllDirectoriesExpanded(){for(let e of this.#e.snapshot.directories.keys()){if(e===this.#e.snapshot.rootId)continue;let t=Z(this.#e,e);if(!gL(this.#e,e,t))return!1}return!0}requireDirectoryNodeId(e){let t=lR(this.#e,e);if(t==null)throw Error(`Path does not exist: "${e}"`);if(!Y(Z(this.#e,t)))throw Error(`Path is not a directory: "${e}"`);return t}resolveActiveDirectoryNodeId(e){try{if(!Y(Z(this.#e,e)))throw Error(`Node is not a directory: ${String(e)}`);return e}catch{return null}}isDirectoryProjectionVisible(e){let t=e;for(;t!==this.#e.snapshot.rootId;){let e=Z(this.#e,t).parentId;if(e!==this.#e.snapshot.rootId){let n=Z(this.#e,e),r=XL(this.#e,e);if(!gL(this.#e,e,n)&&r!==t)return!1}t=e}return!0}validateChildPatch(t,n){new e({paths:this.list(t),presorted:!0,sort:this.#e.snapshot.options.sort}).batch(n.operations)}};function Nz(e,t){switch(t.type){case`add`:case`remove`:if(!t.path.startsWith(e)||t.path===e)throw Error(`Child patch operation must stay within ${e}: "${t.path}"`);break;case`move`:if(!t.from.startsWith(e)||!t.to.startsWith(e)||t.from===e||t.to===e)throw Error(`Child patch move must stay within ${e}: "${t.from}" -> "${t.to}"`)}}var Pz={compact:{itemHeight:24,factor:.8},default:{itemHeight:30,factor:1},relaxed:{itemHeight:36,factor:1.2}};function Fz(e,t){if(typeof e==`number`)return{itemHeight:t??Pz.default.itemHeight,factor:e};let n=Pz[e??`default`];return{itemHeight:t??n.itemHeight,factor:n.factor}}var Iz=Pz.default.itemHeight,Lz=`@layer base {
497
498
  :host {
498
499
  --trees-accent: var(--trees-accent-override, #009fff);
499
500
  --trees-fg: var(--trees-fg-override, var(--trees-theme-sidebar-fg, light-dark(#6c6c71, #adadb1)));
@@ -1585,10 +1586,10 @@ diff --git`)}function mv(e,t){if(e.length===0)return[``];let n=`\n${t}`,r=e.star
1585
1586
  }
1586
1587
 
1587
1588
  @layer theme, unsafe;
1588
- `,Pz=`@layer base, unsafe;`;function Fz(e){return`${Pz}
1589
+ `,Rz=`@layer base, unsafe;`;function zz(e){return`${Rz}
1589
1590
  @layer base {
1590
1591
  ${e}
1591
- }`}function Iz(e){return`${Pz}
1592
+ }`}function Bz(e){return`${Rz}
1592
1593
  @layer unsafe {
1593
1594
  ${e}
1594
- }`}var Lz=new WeakMap;function Rz(e){let t=Lz.get(e);if(t!=null)return t;let n=document.createElement(`div`);n.setAttribute(LF,`true`);let r=document.createElement(`div`);r.style.position=`relative`,r.style.height=`200%`,n.appendChild(r),e.appendChild(n);let i=Math.max(n.offsetWidth-n.clientWidth,0);return n.remove(),Lz.set(e,i),i}function zz(e,t){if(!e.isConnected)return;let n=Rz(t);if(n==null)return;let r=t.querySelector(`style[${RF}]`),i=r instanceof HTMLStyleElement?r:document.createElement(`style`);r instanceof HTMLStyleElement||(i.setAttribute(RF,``),t.appendChild(i)),i.textContent=`:host { ${zF}: ${n}px; }`}var Bz;function Vz(e){if(typeof CSSStyleSheet<`u`&&typeof CSSStyleSheet.prototype.replaceSync==`function`&&`adoptedStyleSheets`in e){Bz??(Bz=new CSSStyleSheet,Bz.replaceSync(Fz(Nz)));let t=!1;try{e.adoptedStyleSheets=[Bz],t=!0}catch{}if(t){e.querySelector(`style[${FF}]`)?.remove();return}}if(e.querySelector(`style[data-file-tree-style]`)==null){let t=document.createElement(`style`);t.setAttribute(FF,``),t.textContent=Fz(Nz),e.prepend(t)}}function Hz(e,t){Uz(e,t),Vz(t),zz(e,t)}function Uz(e,t){let n=e.querySelector(`template[shadowrootmode="open"], template[data-file-tree-shadowrootmode="open"]`);n instanceof HTMLTemplateElement&&(t.childNodes.length>0||(t.appendChild(n.content.cloneNode(!0)),n.hasAttribute(`shadowrootmode`)&&n.remove()))}if(typeof HTMLElement<`u`&&customElements.get(`file-tree-container`)==null){class e extends HTMLElement{constructor(){super()}connectedCallback(){let e=this.shadowRoot??this.attachShadow({mode:`open`});Hz(this,e)}}if(customElements.define(PF,e),typeof document<`u`)for(let e of Array.from(document.querySelectorAll(PF)))e instanceof HTMLElement&&Hz(e,e.shadowRoot??e.attachShadow({mode:`open`}))}var Wz=e=>e.startsWith(`f::`)?e.slice(3):e;function Gz(e){let t=e.lastIndexOf(`/`);return t<0?{parentPath:``,baseName:e}:{parentPath:e.slice(0,t),baseName:e.slice(t+1)}}function Kz(e,t){return e===``?t:`${e}/${t}`}function qz({files:e,path:t,isFolder:n,nextBasename:r}){let i=Wz(t),a=r.trim();if(a.length===0)return{error:`Name cannot be empty.`};if(a.includes(`/`))return{error:`Name cannot include "/".`};let{parentPath:o,baseName:s}=Gz(i);if(a===s)return{nextFiles:e,sourcePath:i,destinationPath:i,isFolder:n};let c=Kz(o,a),l=Array(e.length),u=new Set;if(!n){let t=`${c}/`,r=!1;for(let n=0;n<e.length;n++){let a=e[n];if(a!==i&&a.startsWith(t))return{error:`"${c}" already exists.`};let o=a===i?c:a;if(u.has(o))return{error:`"${c}" already exists.`};u.add(o),l[n]=o,a===i&&(r=!0)}return r?{nextFiles:l,sourcePath:i,destinationPath:c,isFolder:n}:{error:`Could not find the selected file to rename.`}}let d=`${i}/`,f=`${c}/`,p=0;for(let t=0;t<e.length;t++){let n=e[t],r=n===i||n.startsWith(d);if(!r&&(n===c||n.startsWith(f)))return{error:`"${c}" already exists.`};let a=r?`${c}${n.slice(i.length)}`:n;if(u.has(a))return{error:`"${c}" already exists.`};u.add(a),l[t]=a,r&&p++}return p===0?{error:`Could not find the selected folder to rename.`}:{nextFiles:l,sourcePath:i,destinationPath:c,isFolder:n}}function Jz(e){return e.endsWith(`/`)}function Yz(e){let t=e.endsWith(`/`)?e.slice(0,-1):e,n=t.lastIndexOf(`/`),r=n<0?t:t.slice(n+1);return e.endsWith(`/`)?`${r}/`:r}function Xz(e){let t=[],n=new Set;for(let r of e)n.has(r)||(n.add(r),t.push(r));let r=new Set;for(let e of t.toSorted((e,t)=>e.length===t.length?e.localeCompare(t):e.length-t.length)){let t=(e.endsWith(`/`)?e.slice(0,-1):e).split(`/`),n=!1;for(let e=0;e<t.length-1;e+=1){let i=`${t.slice(0,e+1).join(`/`)}/`;if(r.has(i)){n=!0;break}}n||r.add(e)}return t.filter(e=>r.has(e))}function Zz(e,t){return t.includes(e)?Xz(t):[e]}function Qz(e,t){return e===t?!0:e==null||t==null?!1:e.kind===t.kind&&e.directoryPath===t.directoryPath&&e.flattenedSegmentPath===t.flattenedSegmentPath&&e.hoveredPath===t.hoveredPath}function $z(e,t){return{draggedPaths:e,target:t}}function eB(e,t){if(t.kind!==`directory`||t.directoryPath==null)return!1;for(let n of e)if(Jz(n)&&(t.directoryPath===n||t.directoryPath.startsWith(n)))return!0;return!1}function tB(e,t){return t.kind===`root`||t.directoryPath==null?Yz(e):t.directoryPath}function nB(e,t){let n=e.map(e=>{let n=tB(e,t);return n===e?null:{from:e,to:n,type:`move`}}).filter(e=>e!=null);return n.length===0?null:{operations:n,result:{draggedPaths:e,operation:n.length===1?`move`:`batch`,target:t}}}function rB(e,t){if(e===t)return!0;if(e.length!==t.length)return!1;for(let n=0;n<e.length;n+=1)if(e[n]!==t[n])return!1;return!0}function iB(e,t,n){let{paths:r,preparedInput:i}=e;if(i==null){if(r==null)throw Error(`FileTree requires paths or preparedInput`);return{paths:r,preparedInput:void 0}}let a=i.paths;if(r==null)return{paths:a,preparedInput:i};if(!rB(Oz.preparePaths(r,n==null?{}:{sort:n}),a))throw Error(`FileTree ${t} received paths and preparedInput for different path lists`);return{paths:a,preparedInput:i}}function aB(e){return e.operation===`add`||e.operation===`remove`||e.operation===`move`||e.operation===`batch`}function oB(e,t,n){if(e===t)return n;let r=t.endsWith(`/`)?t:`${t}/`;return e.startsWith(r)?`${n.endsWith(`/`)?n:`${n}/`}${e.slice(r.length)}`:e}function sB(e,t){if(e===t)return!0;let n=t.endsWith(`/`)?t:`${t}/`;return e.startsWith(n)}function cB(e,t,n=!1){if(e==null)return null;switch(t.operation){case`add`:case`expand`:case`collapse`:case`mark-directory-unloaded`:case`begin-child-load`:case`apply-child-patch`:case`complete-child-load`:case`fail-child-load`:case`cleanup`:return e;case`remove`:return sB(e,t.path)?n?e:null:e;case`move`:return oB(e,t.from,t.to);case`batch`:{let r=e;for(let e of t.events)if(r=cB(r,e,n),r==null)return null;return r}}}function lB(e){return{canonicalChanged:e.canonicalChanged,projectionChanged:e.projectionChanged,visibleCountDelta:e.visibleCountDelta}}function uB(e){switch(e.operation){case`add`:return{...lB(e),operation:`add`,path:e.path};case`remove`:return{...lB(e),operation:`remove`,path:e.path,recursive:e.recursive};case`move`:return{...lB(e),from:e.from,operation:`move`,to:e.to}}}function dB(e){return{...lB(e),events:e.events.filter(e=>e.operation===`add`||e.operation===`remove`||e.operation===`move`).map(e=>uB(e)),operation:`batch`}}function fB(e){switch(e.operation){case`add`:case`remove`:case`move`:return uB(e);case`batch`:return dB(e);default:return null}}function pB(e,t){if(e.size!==t.length)return!1;for(let n of t)if(!e.has(n))return!1;return!0}function mB(e){let t=e.endsWith(`/`)?e.slice(0,-1):e;if(t.length===0)return[];let n=t.split(`/`);return n.slice(0,-1).map((e,t)=>`${n.slice(0,t+1).join(`/`)}/`)}function hB(e){return mB(e).at(-1)??null}function gB(e,t){return t==null?e:e.startsWith(t)?e.slice(t.length):e}function _B(e){return e.endsWith(`/`)}var vB=e=>e.toLowerCase();function yB(e){let t=e.endsWith(`/`)?e.slice(0,-1):e,n=t.lastIndexOf(`/`);return n<0?t:t.slice(n+1)}function bB(e){return e.endsWith(`/`)?e.slice(0,-1):e}function xB(e,t){return t&&!e.endsWith(`/`)?`${e}/`:e}var SB=e=>{let t=e.trim();return t.length===0?``:(t.includes(`\\`)?t.replaceAll(`\\`,`/`):t).toLowerCase()},CB=Symbol(`FILE_TREE_RENAME_VIEW`),wB=512,TB=512;function EB(e){return e===`top`||e===`center`?e:`nearest`}function DB(e,t,n){if(e===0)return-1;if(n!=null){let e=t(n);if(e!=null)return e;let r=mB(n);for(let e=r.length-1;e>=0;--e){let n=r[e];if(n==null)continue;let i=t(n);if(i!=null)return i}}return 0}function OB(e,t,n){if(e.paths.length===0)return{focusedIndex:-1,getParentIndex:e.getParentIndex,paths:e.paths,posInSetByIndex:e.posInSetByIndex,setSizeByIndex:e.setSizeByIndex};if(t==null)return{focusedIndex:0,getParentIndex:e.getParentIndex,paths:e.paths,posInSetByIndex:e.posInSetByIndex,setSizeByIndex:e.setSizeByIndex};let r=n??(t=>e.visibleIndexByPath.get(t)??null);return{focusedIndex:DB(e.paths.length,r,t),getParentIndex:e.getParentIndex,paths:e.paths,posInSetByIndex:e.posInSetByIndex,setSizeByIndex:e.setSizeByIndex}}var kB=class e{static{Object.defineProperty(e.prototype,CB,{configurable:!0,value(){return{cancel:()=>{this.#q()},commit:()=>{this.#J()},getPath:()=>this.#T,getValue:()=>this.#E,isActive:()=>this.#T!=null,setValue:e=>{this.#Y(e)}}},writable:!0})}#e;#t=new Set;#n=new Map;#r=null;#i=null;#a=new Map;#o=new Map;#s=-1;#c=null;#l=!1;#u=e=>-1;#d=new Map;#f=null;#p=null;#m=null;#h=null;#g=null;#_;#v;#y;#b=[];#x=new Int32Array;#S=new Int32Array;#C=void 0;#w=!1;#T=null;#E=``;#D=!1;#O=new Set;#k=[];#A;#j=null;#M=null;#N=null;#P=null;#F=null;#I=null;#L=null;#R=0;#z=null;#B=new Set;#V=0;#H;#U=0;#W=!1;#G=0;#K;constructor(e){let{dragAndDrop:t,fileTreeSearchMode:n,initialSearchQuery:r,initialSelectedPaths:i,renaming:a,onSearchChange:o,paths:s,preparedInput:c,...l}=e,u=iB({paths:s,preparedInput:c},`constructor`,l.sort);this.#e=l,t!=null&&t!==!1&&(this.#r=t===!0?{}:t),this.#w=a!=null&&a!==!1,a!=null&&a!==!1&&a!==!0&&(this.#C=a.canRename,this.#v=a.onError,this.#_=a.onRename),this.#y=o,this.#A=n??`hide-non-matches`,this.#H=this.#le(u.paths,u.preparedInput);let d=i?.map(e=>this.#Ne(e)).filter(e=>e!=null)??[],f=d.at(-1)??null;d.length>0&&(this.#B=new Set(d),this.#z=f,this.#V=1),this.#je(f,!1),r!=null&&this.#Te(r,!1),this.#K=this.#Re()}destroy(){this.#K?.(),this.#K=null,this.#n.clear(),this.#t.clear(),this.#d.clear(),this.#i=null,this.#he()}focusFirstItem(){this.#be().length>0&&this.#Fe(0)}focusLastItem(){this.#G<=0||(this.#Ie(),this.#Fe(this.#G-1))}focusNextItem(){this.#Ae(1)}focusParentItem(){if(this.#c==null)return;let e=hB(this.#c);if(e==null)return;let t=this.#Z(e);t>=0&&this.#Fe(t)}focusPath(e){let t=this.#H.getPathInfo(e)?.path??null;if(t==null)return;this.#Ie();let n=this.#Z(t);n>=0&&this.#Fe(n)}scrollToPath(e,t){let n=this.#H.getPathInfo(e)?.path??null;if(n==null)return;this.#Ie();let r=this.#xe(n);r<0||this.#Me(r)!=null&&(t?.focus!==!1&&this.#Fe(r,!1),this.#L={id:this.#R+=1,offset:EB(t?.offset),visibleIndex:r},this.#De())}focusMountedPathFromInput(e){let t=this.#H.getPathInfo(e)?.path??null;if(t==null)return;let n=this.#Z(t);n>=0&&this.#Fe(n)}focusNearestPath(e){let t=this.resolveNearestVisiblePath(e);if(t==null)return null;let n=this.#Z(t);return n>=0?(this.#Fe(n),this.#be()[n]??t):null}focusPreviousItem(){this.#Ae(-1)}getFocusedIndex(){return this.#s}getFocusedItem(){return this.#c==null?null:this.#Q(this.#c)}getFocusedPath(){return this.#c}getScrollRequest(){return this.#L}clearScrollRequest(e){this.#L?.id===e&&(this.#L=null)}resolveNearestVisiblePath(e){let t=this.#be();if(this.#G===0)return null;if(e==null)return this.#c??t[0]??null;let n=this.#H.getPathInfo(e)?.path??e,r=this.#Z(n);return r>=0?t[r]??n:this.#X(n)??this.#c??t[0]??null}getSelectedPaths(){return[...this.#B]}getSelectionVersion(){return this.#V}getVisibleCount(){return this.#G}getVisibleRows(e,t){if(t<e||this.#G===0)return[];let n=Math.max(0,e),r=Math.min(this.#G-1,t);if(r<n)return[];let i=r-n+1;if(this.#F==null&&!this.#l&&r>=this.#b.length&&i<=TB){let e=[];for(let t=n;t<=r;t+=1){let n=this.#H.getVisibleRowContext(t);if(n==null)break;e.push(this.#ee(n))}return e}if(!this.#l&&r>=this.#b.length&&this.#Ie(),this.#F!=null){let e=Array.from({length:r-n+1},(e,t)=>this.#Se(n+t)),t=new Map,i=e[0]??-1,a=i;for(let n=1;n<=e.length;n+=1){let r=e[n];if(r!=null&&r===a+1){a=r;continue}if(i>=0&&this.#H.getVisibleSlice(i,a).forEach((e,n)=>{t.set(i+n,e)}),r==null){i=-1,a=-1;continue}i=r,a=r}return Array.from({length:r-n+1},(e,r)=>{let i=n+r,a=this.#Se(i),o=t.get(a),s=this.#b[a];if(o==null||s==null)throw Error(`Missing projection row for filtered visible index ${String(i)}`);return this.#$(o,i,a,{ancestorPaths:this.#re(a),path:s})})}return this.#H.getVisibleSlice(n,r).map((e,t)=>{let r=n+t,i=this.#b[r];if(i==null)throw Error(`Missing projection path for visible index ${String(r)}`);return this.#$(e,r,r,{ancestorPaths:this.#re(r),path:i})})}getStickyRowCandidates(e,t){if(this.#F!=null)return null;if(this.#G===0||e<=0||t<=0)return[];let n=[];for(let r=0;r<this.#G;r+=1){let i=e+r*t,a=Math.min(this.#G-1,Math.floor(i/t)),o=this.#te(a,r)??(a>0?this.#te(a-1,r):void 0);if(o==null)break;n.push({row:this.#ee(o),subtreeEndIndex:o.subtreeEndIndex})}return n}getItem(e){let t=this.#H.getPathInfo(e);return t==null?null:this.#Q(t.path,t)}resolveMountedDirectoryPathFromInput(e){let t=this.#H.getPathInfo(e);return t?.kind===`directory`?t.path:null}toggleMountedDirectoryFromInput(e){let t=this.resolveMountedDirectoryPathFromInput(e);t!=null&&this.#ze(t)}selectAllVisiblePaths(){this.#Ie();let e=[...this.#be()];this.#ae(e,this.#c??this.#z)}selectOnlyPath(e){let t=this.#Ne(e);t!=null&&this.#ae([t],t)}selectOnlyMountedPathFromInput(e){this.#ae([e],e)}selectPath(e){let t=this.#Ne(e);t==null||this.#B.has(t)||this.#ae([...this.#B,t])}deselectPath(e){let t=this.#Ne(e);t!=null&&this.#B.has(t)&&this.#ae([...this.#B].filter(e=>e!==t))}toggleFocusedSelection(){this.#c!=null&&this.togglePathSelectionFromInput(this.#c)}togglePathSelection(e){let t=this.#Ne(e);if(t!=null){if(this.#B.has(t)){this.deselectPath(t);return}this.selectPath(t)}}togglePathSelectionFromInput(e){let t=this.#Ne(e);if(t!=null){if(this.#B.has(t)){this.#ae([...this.#B].filter(e=>e!==t),t);return}this.#ae([...this.#B,t],t)}}selectPathRange(e,t){let n=this.#Ne(e);if(n==null)return;this.#Ie();let r=this.#z,i=r==null?-1:this.#Ce(r),a=this.#Ce(n);if(i===-1||a===-1){let e=t?[...this.#B,n]:[n];this.#ae(e,n);return}let[o,s]=i<=a?[i,a]:[a,i],c=this.#be().slice(o,s+1),l=t?[...this.#B,...c]:c;this.#ae(l,r)}extendSelectionFromFocused(e){if(this.#c==null)return;let t=this.#s;if(t===-1)return;let n=Math.min(this.#G-1,Math.max(0,t+e));if(n===t)return;!this.#l&&n>=this.#b.length&&this.#Ie();let r=this.#be(),i=r[t]??null,a=r[n]??null;if(i==null||a==null)return;let o=new Set(this.#B);o.has(i)&&o.has(a)?o.delete(i):o.add(a),this.#ae([...o],this.#z??i,!1),this.#Fe(n)}getDragAndDropConfig(){return this.#r}isDragAndDropEnabled(){return this.#r!=null}getDragSession(){return this.#i==null?null:{draggedPaths:[...this.#i.draggedPaths],primaryPath:this.#i.primaryPath,target:this.#i.target==null?null:{...this.#i.target}}}startDrag(e){if(this.#r==null)return!1;let t=this.#Ne(e);if(t==null||this.#M!=null&&this.#M.length>0)return!1;let n=this.getSelectedPaths(),r=Zz(t,n);return this.#r.canDrag?.(r)!==!1&&(n.includes(t)||this.#ae([t],t,!1),this.#Pe(t),this.#i={draggedPaths:r,primaryPath:t,target:null},this.#De(),!0)}setDragTarget(e){let t=this.#i;if(t==null)return;let n=e;if(n!=null){let e=$z(t.draggedPaths,n);(eB(t.draggedPaths,n)||this.#r?.canDrop?.(e)===!1)&&(n=null)}Qz(t.target,n)||(this.#i={...t,target:n},this.#De())}cancelDrag(){this.#i!=null&&(this.#i=null,this.#De())}completeDrag(){let e=this.#i;if(e==null)return!1;this.#i=null;let t=e.target==null?null:{...e.target};if(t==null)return this.#De(),!1;let n=$z(e.draggedPaths,t);if(eB(e.draggedPaths,t)||this.#r?.canDrop?.(n)===!1)return this.#De(),!1;let r=nB(e.draggedPaths,t);if(r==null)return this.#De(),!1;try{if(r.operations.length===1){let e=r.operations[0];if(e==null||e.type!==`move`)throw Error(`Expected a single move operation for one-item drops`);this.#H.move(e.from,e.to,{collision:e.collision})}else this.#ce(r.operations),this.#H.batch(r.operations)}catch(e){return this.#De(),this.#r?.onDropError?.(e instanceof Error?e.message:String(e),n),!1}return this.#r?.onDropComplete?.(r.result),!0}subscribe(e){return this.#t.add(e),e(),()=>{this.#t.delete(e)}}add(e){this.#H.add(e)}remove(e,t={}){this.#H.remove(e,t)}move(e,t,n={}){this.#H.move(e,t,n)}batch(e){this.#H.batch(e)}onMutation(e,t){let n=e,r=t,i=this.#n.get(n);return i??(i=new Set,this.#n.set(n,i)),i.add(r),()=>{let e=this.#n.get(n);e?.delete(r),e?.size===0&&this.#n.delete(n)}}setSearch(e){this.#Te(e,!0)}openSearch(e=``){this.#Te(e,!0)}closeSearch(){this.#Te(null,!0)}isSearchOpen(){return this.#M!==null}getSearchValue(){return this.#M??``}getSearchMatchingPaths(){return this.#k}focusNextSearchMatch(){this.#we(1)}focusPreviousSearchMatch(){this.#we(-1)}startRenaming(e=this.#c??``,t={}){if(!this.#w)return!1;let n=this.#H.getPathInfo(e);if(n==null)return!1;let r=n.path,i=_B(r),a=bB(r);if(this.#C?.({isFolder:i,path:a})===!1)return!1;for(let e of mB(r))this.#H.isExpanded(e)||this.#H.expand(e);return this.#ae([r],r,!1),this.#M!=null&&(this.#Te(null,!1),this.#y?.(this.#M)),this.#Pe(r),this.#T=r,this.#E=yB(r),this.#D=t.removeIfCanceled??!1,this.#De(),!0}#q(){if(this.#T==null)return;let e=this.#T,t=this.#D;if(this.#T=null,this.#E=``,this.#D=!1,t){this.remove(e,_B(e)?{recursive:!0}:void 0);return}this.#Pe(e),this.#De()}#J(){let e=this.#T;if(e==null)return;if(this.#D&&this.#E.trim().length===0){this.#T=null,this.#E=``,this.#D=!1,this.remove(e,_B(e)?{recursive:!0}:void 0);return}let t=_B(e),n=qz({files:this.#H.list(),isFolder:t,nextBasename:this.#E,path:bB(e)});if(this.#T=null,this.#E=``,this.#D=!1,`error`in n){this.#Pe(e),this.#v?.(n.error),this.#De();return}if(n.sourcePath===n.destinationPath){this.#Pe(e),this.#De();return}this.#_?.({destinationPath:n.destinationPath,isFolder:n.isFolder,sourcePath:n.sourcePath}),this.move(xB(n.sourcePath,t),xB(n.destinationPath,t))}#Y(e){this.#T!=null&&this.#E!==e&&(this.#E=e,this.#De())}resetPaths(e,t={}){let n=!Array.isArray(e),r=n?void 0:e,i=n?e:t,a=this.#H.list().length,o=this.#G,s=iB({paths:r,preparedInput:i.preparedInput},`resetPaths`,this.#e.sort),c=this.#le(s.paths,s.preparedInput,i.initialExpandedPaths),l=this.#c,u=this.#T,d=this.getSelectedPaths(),f=this.#z;this.#K?.(),this.#H=c,this.#d.clear(),this.#he();let p=d.map(e=>c.getPathInfo(e)?.path??null).filter(e=>e!=null),m=!pB(this.#B,p);this.#B=new Set(p),m&&(this.#V+=1),this.#z=f==null?null:c.getPathInfo(f)?.path??null,this.#T=u==null?null:c.getPathInfo(u)?.path??null,this.#T??(this.#E=``,this.#D=!1),this.#je(l,l!=null||p.length>0||this.#z!=null),this.#K=this.#Re(),this.#De(),this.#Oe({canonicalChanged:!0,operation:`reset`,pathCountAfter:s.paths.length,pathCountBefore:a,projectionChanged:!0,usedPreparedInput:i.preparedInput!=null,visibleCountDelta:this.#G-o})}#X(e){this.#Ie();let t=hB(e),n=gB(e,t),r=null,i=null;for(let e of this.#be()){if(hB(e)!==t)continue;let a=gB(e,t);if(a<n){r=e;continue}if(a>n){i=e;break}}return r??i}#Z(e){let t=this.#Ce(e);if(t!==-1)return t;let n=mB(e);for(let e=n.length-1;e>=0;--e){let t=n[e];if(t==null)continue;let r=this.#Ce(t);if(r!==-1)return r}return this.#be().length>0?0:-1}#Q(e,t){let n=this.#d.get(e);if(n!=null)return n;let r=t??this.#H.getPathInfo(e);if(r==null)return null;let i=r.kind===`directory`?this.#oe(r.path):this.#se(r.path);return this.#d.set(r.path,i),i}#$(e,t,n,r){return{ancestorPaths:r.ancestorPaths,depth:e.depth,flattenedSegments:e.flattenedSegments?.map(e=>({isTerminal:e.isTerminal,name:e.name,path:e.path})),hasChildren:e.hasChildren,index:t,isExpanded:e.isExpanded,isFlattened:e.isFlattened,isFocused:r.path===this.#c,isSelected:this.#B.has(r.path),kind:e.kind,level:e.depth,name:e.name,path:r.path,posInSet:r.posInSet??this.#x[n]??0,setSize:r.setSize??this.#S[n]??0}}#ee(e){return this.#$(e.row,e.index,e.index,{ancestorPaths:e.ancestorPaths,path:e.row.path,posInSet:e.posInSet,setSize:e.setSize})}#te(e,t){let n=this.#H.getVisibleRowContext(e);return n==null?void 0:n.ancestorRows[t]??(t===n.ancestorRows.length&&n.row.kind===`directory`&&n.row.isExpanded?n:void 0)}#ne(e){let t=this.#a.get(e);if(t!=null)return t;let n=this.#u(e),r=n<0?[]:[...this.#ne(n),n];return this.#a.set(e,r),r}#re(e){let t=this.#o.get(e);if(t!=null)return t;let n=this.#ne(e).map(e=>this.#b[e]??``).filter(e=>e!==``);return this.#o.set(e,n),n}#ie(e){this.#H.collapse(e)}#ae(e,t=this.#z,n=!0){let r=[...new Set(e)],i=!pB(this.#B,r),a=this.#z!==t;(i||a)&&(this.#B=new Set(r),this.#z=t,i&&(this.#V+=1),n&&this.#De())}#oe(e){return{collapse:()=>{this.#ie(e)},deselect:()=>{this.deselectPath(e)},expand:()=>{this.#ke(e)},focus:()=>{this.focusPath(e)},getPath:()=>e,isDirectory:()=>!0,isExpanded:()=>this.#H.isExpanded(e),isFocused:()=>this.#c===e,isSelected:()=>this.#B.has(e),select:()=>{this.selectPath(e)},toggleSelect:()=>{this.togglePathSelection(e)},toggle:()=>{this.#ze(e)}}}#se(e){return{deselect:()=>{this.deselectPath(e)},focus:()=>{this.focusPath(e)},getPath:()=>e,isDirectory:()=>!1,isFocused:()=>this.#c===e,isSelected:()=>this.#B.has(e),select:()=>{this.selectPath(e)},toggleSelect:()=>{this.togglePathSelection(e)}}}#ce(e){let t=this.#H.list();this.#le(t).batch(e)}#le(e,t,n){return new Oz({...this.#e,paths:e,preparedInput:t??void 0,...n===void 0?{}:{initialExpandedPaths:n}})}#ue(){return this.#h??=this.#H.list(),this.#h}#de(){if(this.#m!=null)return this.#m;let e=new Set;for(let t of this.#ue()){e.add(t);for(let n of mB(t))e.add(n)}return this.#m=[...e].sort(),this.#m}#fe(){return this.#g??=this.#ue().map(vB),this.#g}#pe(){return this.#f??=this.#de().filter(e=>e.endsWith(`/`)),this.#f}#me(){return this.#p??=this.#pe().map(vB),this.#p}#he(){this.#f=null,this.#p=null,this.#m=null,this.#h=null,this.#g=null}#ge(){return this.#pe().filter(e=>this.#H.isExpanded(e))}#_e(e){let t=new Set(this.#j??[]);if(e)for(let e of this.#B)for(let n of mB(e))t.add(n);this.#ve(t)}#ve(e){this.#W=!0;try{for(let t of this.#pe()){let n=e.has(t),r=this.#H.isExpanded(t);n&&!r?this.#H.expand(t):!n&&r&&this.#H.collapse(t)}}finally{this.#W=!1}}#ye(){if(this.#M==null||this.#M.length===0){this.#k=[],this.#F=null,this.#I=null,this.#P=null,this.#G=this.#U;return}let e=this.#b;if(this.#k=e.filter(e=>this.#O.has(e)),this.#A!==`hide-non-matches`||this.#O.size===0){this.#F=null,this.#I=null,this.#P=null,this.#G=this.#U;return}let t=[],n=[],r=new Map;for(let[i,a]of e.entries())this.#N?.has(a)===!0&&(r.set(a,n.length),t.push(i),n.push(a));this.#F=t,this.#I=n,this.#P=r,this.#G=n.length}#be(){return this.#I??this.#b}#xe(e){return this.#I==null?this.#H.getVisibleIndex(e)??-1:this.#P?.get(e)??-1}#Se(e){return this.#F?.[e]??e}#Ce(e){return this.#P?.get(e)??this.#H.getVisibleIndex(e)??-1}#we(e){let t=this.#k;if(t.length===0)return;let n=this.#c,r=n==null?-1:t.indexOf(n),i=t[r<0?e>0?0:t.length-1:Math.min(t.length-1,Math.max(0,r+e))];i!=null&&this.focusPath(i)}#Te(e,t){let n=e==null?null:SB(e),r=this.#M;if(r!==n){if(r==null&&n!=null&&(this.#j=this.#ge()),this.#M=n,n==null)this.#_e(!0),this.#j=null,this.#O.clear(),this.#N=null,this.#je(this.#c,!0);else if(n.length===0)this.#_e(!1),this.#O.clear(),this.#N=null,this.#je(this.#c,!0);else{let e=this.#Ee();this.#je(e,!0)}t&&(this.#y?.(this.#M),this.#De())}}#Ee(){if(this.#M==null||this.#M.length===0)return this.#O.clear(),this.#c;let e=this.#M,t=this.#ue(),n=this.#fe(),r=[],i=new Set,a=null;for(let o=0;o<t.length;o+=1){if(!n[o].includes(e))continue;let s=t[o];r.push(s),i.add(s),a??=s}let o=this.#pe(),s=this.#me();for(let t=0;t<o.length;t+=1){if(!s[t].includes(e))continue;let n=o[t];i.has(n)||(r.push(n),i.add(n),a??=n)}this.#O=i;let c=this.#A===`hide-non-matches`&&r.length>0?new Set:null;this.#N=c;let l=this.#A===`expand-matches`?new Set(this.#j??[]):new Set;for(let e of r){c?.add(e),e.endsWith(`/`)&&l.add(e);for(let t of mB(e))l.add(t),c?.add(t)}return this.#ve(l),a??this.#c}#De(){for(let e of this.#t)e()}#Oe(e){this.#n.get(e.operation)?.forEach(t=>{t(e)}),this.#n.get(`*`)?.forEach(t=>{t(e)})}#ke(e){for(let t of mB(e))this.#H.isExpanded(t)||this.#H.expand(t);this.#H.isExpanded(e)||this.#H.expand(e)}#Ae(e){let t=this.#G;if(t===0)return;let n=this.#s===-1?0:this.#s,r=Math.min(t-1,Math.max(0,n+e));(r!==n||this.#s===-1)&&(!this.#l&&this.#F==null&&r>=this.#b.length&&this.#Ie(),this.#Fe(r))}#je(e,t=!0){let n=this.#H.getVisibleCount();this.#U=n;let r=OB(this.#H.getVisibleTreeProjectionData(t?void 0:Math.min(n,wB)),e,t?e=>this.#H.getVisibleIndex(e):void 0);this.#a.clear(),this.#o.clear(),this.#l=r.paths.length>=n,this.#u=r.getParentIndex,this.#b=r.paths,this.#x=r.posInSetByIndex,this.#S=r.setSizeByIndex,this.#ye(),this.#s=e==null?this.#be().length>0?0:-1:this.#Z(e),this.#c=this.#s<0?null:this.#Me(this.#s)}#Me(e){return this.#be()[e]??(this.#F==null?this.#H.getVisibleRowContext(e)?.row.path??null:null)}#Ne(e){return this.#H.getPathInfo(e)?.path??null}#Pe(e){if(e==null)return;let t=this.#Z(e);t>=0&&this.#Fe(t,!1)}#Fe(e,t=!0){let n=this.#Me(e);n!=null&&(this.#s!==e||this.#c!==n)&&(this.#s=e,this.#c=n,t&&this.#De())}#Ie(){this.#l||this.#je(this.#c,!0)}#Le(e){let t=cB(this.#T,e);t==null&&this.#T!=null&&(this.#E=``),this.#T=t;let n=cB(this.#c,e,!0),r=[...this.#B].map(t=>cB(t,e)).filter(e=>e!=null).map(e=>this.#H.getPathInfo(e)?.path??null).filter(e=>e!=null),i=cB(this.#z,e),a=i==null?null:this.#H.getPathInfo(i)?.path??null,o=[...new Set(r)];return pB(this.#B,o)||(this.#B=new Set(o),this.#V+=1),this.#z=a,n}#Re(){return this.#H.on(`*`,e=>{if(this.#W)return;e.canonicalChanged&&(this.#d.clear(),this.#he()),this.#i!=null&&aB(e)&&(this.#i=null);let t=aB(e)?this.#Le(e):this.#c,n=this.#M!=null&&this.#M.length>0?this.#Ee():this.#M===``?this.#c:t,r=this.#M!=null||e.operation!==`expand`&&e.operation!==`collapse`;this.#je(n,r),this.#De();let i=fB(e);i!=null&&this.#Oe(i)})}#ze(e){if(this.#H.isExpanded(e)){this.#ie(e);return}this.#ke(e)}},AB=e=>{if(e==null||e.length===0)return`0`;let t=`${e.length}`;for(let n of e)t+=`\0${n.path}\0${n.status}`;return t};function jB(e){let t=e.endsWith(`/`),n=``,r=-1;for(let t=0;t<=e.length;t+=1){if(e[t]!==`/`&&t!==e.length){r===-1&&(r=t);continue}r!==-1&&(n!==``&&(n+=`/`),n+=e.slice(r,t),r=-1)}return n===``?null:{isDirectory:t,path:n}}function MB(e){let t=e.endsWith(`/`)?e.slice(0,-1):e;if(t.length===0)return[];let n=[],r=0;for(;;){let e=t.indexOf(`/`,r);if(e===-1)break;n.push(t.slice(0,e+1)),r=e+1}return n}function NB(e,t){return t?`${e}/`:e}function PB(e,t=null){let n=AB(e==null?void 0:[...e]);if(n===`0`)return null;if(t?.signature===n)return t;let r=new Map,i=new Set,a=new Set,o=new Map;for(let t of e??[]){let e=IB(t);e!=null&&zB({canonicalPath:e.canonicalPath,changeCountByDirectoryPath:o,directoriesWithChanges:i,ignoredDirectoryPaths:a,isDirectory:e.isDirectory,status:t.status,statusByPath:r})}return r.size===0?null:{changeCountByDirectoryPath:o,directoriesWithChanges:i,ignoredDirectoryPaths:a,signature:n,statusByPath:r}}function FB(e,t){let n=t?.remove??[],r=t?.set??[];if(n.length===0&&r.length===0)return e;let i=new Map(e?.statusByPath),a=new Set(e?.directoriesWithChanges),o=new Set(e?.ignoredDirectoryPaths),s=new Map(e?.changeCountByDirectoryPath),c=!1;for(let e of n){let t=LB(e);t!=null&&(c=RB({canonicalPath:t.canonicalPath,changeCountByDirectoryPath:s,directoriesWithChanges:a,ignoredDirectoryPaths:o,statusByPath:i})||c)}for(let e of r){let t=IB(e);t!=null&&(c=zB({canonicalPath:t.canonicalPath,changeCountByDirectoryPath:s,directoriesWithChanges:a,ignoredDirectoryPaths:o,isDirectory:t.isDirectory,status:e.status,statusByPath:i})||c)}return c?i.size===0?null:{changeCountByDirectoryPath:s,directoriesWithChanges:a,ignoredDirectoryPaths:o,signature:HB(i),statusByPath:i}:e}function IB(e){return LB(e.path)}function LB(e){let t=jB(e);if(t!=null)return{canonicalPath:NB(t.path,t.isDirectory),isDirectory:t.isDirectory}}function RB({canonicalPath:e,changeCountByDirectoryPath:t,directoriesWithChanges:n,ignoredDirectoryPaths:r,statusByPath:i}){let a=i.get(e);return a!=null&&(i.delete(e),a===`ignored`&&e.endsWith(`/`)&&r.delete(e),VB(t,n,e),!0)}function zB({canonicalPath:e,changeCountByDirectoryPath:t,directoriesWithChanges:n,ignoredDirectoryPaths:r,isDirectory:i,status:a,statusByPath:o}){let s=o.get(e);return s!==a&&(s??BB(t,n,e),o.set(e,a),a===`ignored`&&i?r.add(e):i&&r.delete(e),!0)}function BB(e,t,n){for(let r of MB(n))e.set(r,(e.get(r)??0)+1),t.add(r)}function VB(e,t,n){for(let r of MB(n)){let n=(e.get(r)??0)-1;n>0?e.set(r,n):(e.delete(r),t.delete(r))}}function HB(e){let t=`${e.size}`;for(let[n,r]of e)t+=`\0${n}\0${r}`;return t}var UB,WB,GB,KB,qB,JB,YB,XB,ZB,QB,$B={},eV=[],tV=Array.isArray,nV=eV.slice,rV=Object.assign;function iV(e){e&&e.parentNode&&e.remove()}function aV(e,t,n){var r,i,a,o={};for(a in t)a==`key`?r=t[a]:a==`ref`&&typeof e!=`function`?i=t[a]:o[a]=t[a];return arguments.length>2&&(o.children=arguments.length>3?nV.call(arguments,2):n),oV(e,o,r,i,null)}function oV(e,t,n,r,i){var a={type:e,props:t,key:n,ref:r,__k:null,__:null,__b:0,__e:null,__c:null,constructor:void 0,__v:i??++WB,__i:-1,__u:0};return i==null&&UB.vnode!=null&&UB.vnode(a),a}function sV(e){return e.children}function cV(e,t){this.props=e,this.context=t,this.__g=0}function lV(e,t){if(t==null)return e.__?lV(e.__,e.__i+1):null;for(var n;t<e.__k.length;t++)if((n=e.__k[t])!=null&&n.__e!=null)return n.__e;return typeof e.type==`function`?lV(e):null}function uV(e){var t,n;if((e=e.__)!=null&&e.__c!=null){for(e.__e=null,t=0;t<e.__k.length;t++)if((n=e.__k[t])!=null&&n.__e!=null){e.__e=n.__e;break}return uV(e)}}function dV(e){(8&e.__g||!(e.__g|=8)||!GB.push(e)||qB++)&&KB==UB.debounceRendering||((KB=UB.debounceRendering)||queueMicrotask)(fV)}function fV(){for(var e,t,n,r,i,a,o,s,c=1;GB.length;)GB.length>c&&GB.sort(JB),e=GB.shift(),c=GB.length,8&e.__g&&(n=void 0,i=(r=(t=e).__v).__e,a=[],o=[],(s=t.__P)&&((n=rV({},r)).__v=r.__v+1,UB.vnode&&UB.vnode(n),bV(s,n,r,t.__n,s.namespaceURI,32&r.__u?[i]:null,a,i??lV(r),!!(32&r.__u),o,s.ownerDocument),n.__v=r.__v,n.__.__k[n.__i]=n,SV(a,n,o),n.__e!=i&&uV(n)));qB=0}function pV(e,t,n,r,i,a,o,s,c,l,u,d){var f,p,m,h,g,_,v,y=r&&r.__k||eV,b=t.length;for(c=mV(n,t,y,c,b),f=0;f<b;f++)(m=n.__k[f])!=null&&(p=m.__i==-1?$B:y[m.__i]||$B,m.__i=f,_=bV(e,m,p,i,a,o,s,c,l,u,d),h=m.__e,m.ref&&p.ref!=m.ref&&(p.ref&&TV(p.ref,null,m),u.push(m.ref,m.__c||h,m)),g==null&&h!=null&&(g=h),(v=!!(4&m.__u))||p.__k===m.__k?c=hV(m,c,e,v):typeof m.type==`function`&&_!==void 0?c=_:h&&(c=h.nextSibling),m.__u&=-7);return n.__e=g,c}function mV(e,t,n,r,i){var a,o,s,c,l,u=n.length,d=u,f=0;for(e.__k=Array(i),a=0;a<i;a++)(o=t[a])!=null&&typeof o!=`boolean`&&typeof o!=`function`?(c=a+f,(o=e.__k[a]=typeof o==`string`||typeof o==`number`||typeof o==`bigint`||o.constructor==String?oV(null,o,null,null,null):tV(o)?oV(sV,{children:o},null,null,null):o.constructor==null&&o.__b>0?oV(o.type,o.props,o.key,o.ref?o.ref:null,o.__v):o).__=e,o.__b=e.__b+1,s=null,(l=o.__i=gV(o,n,c,d))!=-1&&(d--,(s=n[l])&&(s.__u|=2)),s==null||s.__v==null?(l==-1&&(i>u?f--:i<u&&f++),typeof o.type!=`function`&&(o.__u|=4)):l!=c&&(l==c-1?f--:l==c+1?f++:(l>c?f--:f++,o.__u|=4))):e.__k[a]=null;if(d)for(a=0;a<u;a++)(s=n[a])!=null&&!(2&s.__u)&&(s.__e==r&&(r=lV(s)),EV(s,s));return r}function hV(e,t,n,r){var i,a;if(typeof e.type==`function`){for(i=e.__k,a=0;i&&a<i.length;a++)i[a]&&(i[a].__=e,t=hV(i[a],t,n,r));return t}e.__e!=t&&(r&&(t&&e.type&&!t.parentNode&&(t=lV(e)),n.insertBefore(e.__e,t||null)),t=e.__e);do t&&=t.nextSibling;while(t!=null&&t.nodeType==8);return t}function gV(e,t,n,r){var i,a,o,s=e.key,c=e.type,l=t[n],u=l!=null&&!(2&l.__u);if(l===null&&e.key==null||u&&s==l.key&&c==l.type)return n;if(r>+!!u){for(i=n-1,a=n+1;i>=0||a<t.length;)if((l=t[o=i>=0?i--:a++])!=null&&!(2&l.__u)&&s==l.key&&c==l.type)return o}return-1}function _V(e,t,n){t[0]==`-`?e.setProperty(t,n??``):e[t]=n??``}function vV(e,t,n,r,i){var a;n:if(t==`style`){if(typeof n==`string`)e.style.cssText=n;else{if(typeof r==`string`&&(e.style.cssText=r=``),r)for(t in r)n&&t in n||_V(e.style,t,``);if(n)for(t in n)r&&n[t]==r[t]||_V(e.style,t,n[t])}}else if(t[0]==`o`&&t[1]==`n`)a=t!=(t=t.replace(YB,`$1`)),(t=t.slice(2))[0].toLowerCase()!=t[0]&&(t=t.toLowerCase()),e.__l||={},e.__l[t+a]=n,n?r?n.l=r.l:(n.l=XB,e.addEventListener(t,a?QB:ZB,a)):e.removeEventListener(t,a?QB:ZB,a);else{if(i==`http://www.w3.org/2000/svg`)t=t.replace(/xlink(H|:h)/,`h`).replace(/sName$/,`s`);else if(t!=`width`&&t!=`height`&&t!=`href`&&t!=`list`&&t!=`form`&&t!=`tabIndex`&&t!=`download`&&t!=`rowSpan`&&t!=`colSpan`&&t!=`role`&&t!=`popover`&&t in e)try{e[t]=n??``;break n}catch{}typeof n==`function`||(n==null||!1===n&&t[4]!=`-`?e.removeAttribute(t):e.setAttribute(t,t==`popover`&&n==1?``:n))}}function yV(e){return function(t){if(this.__l){var n=this.__l[t.type+e];if(t.u==null)t.u=XB++;else if(t.u<n.l)return;return n(UB.event?UB.event(t):t)}}}function bV(e,t,n,r,i,a,o,s,c,l,u){var d,f,p,m,h,g,_,v,y,b,x,S,C,w,T,E,ee,D,O,k,te,A=t.type;if(t.constructor!=null)return null;128&n.__u&&(c=!!(32&n.__u),n.__c.__z&&(s=t.__e=n.__e=(a=n.__c.__z)[0],n.__c.__z=null)),(d=UB.__b)&&d(t);n:if(typeof A==`function`)try{if(v=t.props,y=`prototype`in A&&A.prototype.render,b=(d=A.contextType)&&r[d.__c],x=d?b?b.props.value:d.__:r,n.__c?2&(f=t.__c=n.__c).__g&&(f.__g|=1,_=!0):(y?t.__c=f=new A(v,x):(t.__c=f=new cV(v,x),f.constructor=A,f.render=DV),b&&b.sub(f),f.props=v,f.state||(f.state={}),f.context=x,f.__n=r,p=!0,f.__g|=8,f.__h=[],f._sb=[]),y&&f.__s==null&&(f.__s=f.state),y&&A.getDerivedStateFromProps!=null&&(f.__s==f.state&&(f.__s=rV({},f.__s)),rV(f.__s,A.getDerivedStateFromProps(v,f.__s))),m=f.props,h=f.state,f.__v=t,p)y&&A.getDerivedStateFromProps==null&&f.componentWillMount!=null&&f.componentWillMount(),y&&f.componentDidMount!=null&&f.__h.push(f.componentDidMount);else{if(y&&A.getDerivedStateFromProps==null&&v!==m&&f.componentWillReceiveProps!=null&&f.componentWillReceiveProps(v,x),!(4&f.__g)&&f.shouldComponentUpdate!=null&&!1===f.shouldComponentUpdate(v,f.__s,x)||t.__v==n.__v){for(t.__v!=n.__v&&(f.props=v,f.state=f.__s,f.__g&=-9),t.__e=n.__e,t.__k=n.__k,t.__k.some(function(e){e&&(e.__=t)}),S=0;S<f._sb.length;S++)f.__h.push(f._sb[S]);f._sb=[],f.__h.length&&o.push(f);break n}f.componentWillUpdate!=null&&f.componentWillUpdate(v,f.__s,x),y&&f.componentDidUpdate!=null&&f.__h.push(function(){f.componentDidUpdate(m,h,g)})}if(f.context=x,f.props=v,f.__P=e,f.__g&=-5,C=UB.__r,w=0,y){for(f.state=f.__s,f.__g&=-9,C&&C(t),d=f.render(f.props,f.state,f.context),T=0;T<f._sb.length;T++)f.__h.push(f._sb[T]);f._sb=[]}else do f.__g&=-9,C&&C(t),d=f.render(f.props,f.state,f.context),f.state=f.__s;while(8&f.__g&&++w<25);f.state=f.__s,f.getChildContext!=null&&(r=rV({},r,f.getChildContext())),y&&!p&&f.getSnapshotBeforeUpdate!=null&&(g=f.getSnapshotBeforeUpdate(m,h)),E=d,d!=null&&d.type===sV&&d.key==null&&(E=CV(d.props.children)),s=pV(e,tV(E)?E:[E],t,n,r,i,a,o,s,c,l,u),t.__u&=-161,f.__h.length&&o.push(f),_&&(f.__g&=-4)}catch(e){if(t.__v=null,c||a!=null){if(e.then){for(ee=0,D=!1,t.__u|=c?160:128,t.__c.__z=[],O=0;O<a.length;O++)(k=a[O])==null||D||(k.nodeType==8&&k.data==`$s`?(ee>0&&t.__c.__z.push(k),ee++,a[O]=null):k.nodeType==8&&k.data==`/$s`?(--ee>0&&t.__c.__z.push(k),D=ee===0,s=a[O],a[O]=null):ee>0&&(t.__c.__z.push(k),a[O]=null));if(!D){for(;s&&s.nodeType==8&&s.nextSibling;)s=s.nextSibling;a[a.indexOf(s)]=null,t.__c.__z=[s]}t.__e=s}else{for(te=a.length;te--;)iV(a[te]);xV(t)}}else t.__e=n.__e,t.__k=n.__k,e.then||xV(t);UB.__e(e,t,n)}else s=t.__e=wV(n.__e,t,n,r,i,a,o,c,l,u);return(d=UB.diffed)&&d(t),128&t.__u?void 0:s}function xV(e){e&&e.__c&&(e.__c.__g|=4),e&&e.__k&&e.__k.forEach(xV)}function SV(e,t,n){for(var r=0;r<n.length;r++)TV(n[r],n[++r],n[++r]);UB.__c&&UB.__c(t,e),e.some(function(t){try{e=t.__h,t.__h=[],e.some(function(e){e.call(t)})}catch(e){UB.__e(e,t.__v)}})}function CV(e){return typeof e!=`object`||!e||e.__b&&e.__b>0?e:tV(e)?e.map(CV):rV({},e)}function wV(e,t,n,r,i,a,o,s,c,l){var u,d,f,p,m,h,g,_,v=n.props,y=t.props,b=t.type;if(b==`svg`?i=`http://www.w3.org/2000/svg`:b==`math`?i=`http://www.w3.org/1998/Math/MathML`:i||=`http://www.w3.org/1999/xhtml`,a!=null){for(u=0;u<a.length;u++)if((m=a[u])&&`setAttribute`in m==!!b&&(b?m.localName==b:m.nodeType==3)){e=m,a[u]=null;break}}if(e==null){if(b==null)return l.createTextNode(y);e=l.createElementNS(i,b,y.is&&y),s&&=(UB.__m&&UB.__m(t,a),!1),a=null}if(b==null)v===y||s&&e.data==y||(e.data=y);else{if(a&&=nV.call(e.childNodes),v=n.props||$B,!s&&a!=null)for(v={},u=0;u<e.attributes.length;u++)v[(m=e.attributes[u]).name]=m.value;for(u in v)if(m=v[u],u!=`children`){if(u==`dangerouslySetInnerHTML`)f=m;else if(!(u in y)){if(u==`value`&&`defaultValue`in y||u==`checked`&&`defaultChecked`in y)continue;vV(e,u,null,m,i)}}for(u in _=1&n.__u,y)m=y[u],u==`children`?p=m:u==`dangerouslySetInnerHTML`?d=m:u==`value`?h=m:u==`checked`?g=m:s&&typeof m!=`function`||v[u]===m&&!_||vV(e,u,m,v[u],i);if(d)s||f&&(d.__html==f.__html||d.__html==e.innerHTML)||(e.innerHTML=d.__html),t.__k=[];else if(f&&(e.innerHTML=``),pV(b==`template`?e.content:e,tV(p)?p:[p],t,n,r,b==`foreignObject`?`http://www.w3.org/1999/xhtml`:i,a,o,a?a[0]:n.__k&&lV(n,0),s,c,l),a!=null)for(u=a.length;u--;)iV(a[u]);s||(u=`value`,b==`progress`&&h==null?e.removeAttribute(`value`):h==null||h===e[u]&&(b!==`progress`||h)||vV(e,u,h,v[u],i),u=`checked`,g!=null&&g!=e[u]&&vV(e,u,g,v[u],i))}return e}function TV(e,t,n){try{if(typeof e==`function`){var r=typeof e.__u==`function`;r&&e.__u(),r&&t==null||(e.__u=e(t))}else e.current=t}catch(e){UB.__e(e,n)}}function EV(e,t,n){var r,i;if(UB.unmount&&UB.unmount(e),(r=e.ref)&&(r.current&&r.current!=e.__e||TV(r,null,t)),(r=e.__c)!=null){if(r.componentWillUnmount)try{r.componentWillUnmount()}catch(e){UB.__e(e,t)}r.__P=null}if(r=e.__k)for(i=0;i<r.length;i++)r[i]&&EV(r[i],t,n||typeof e.type!=`function`);n||iV(e.__e),e.__e&&e.__e.__l&&(e.__e.__l=null),e.__e=e.__c=e.__=null}function DV(e,t,n){return this.constructor(e,n)}function OV(e,t){var n,r,i,a;t==document&&(t=document.documentElement),UB.__&&UB.__(e,t),r=(n=!!(e&&32&e.__u))?null:t.__k,e=t.__k=aV(sV,null,[e]),i=[],a=[],bV(t,e,r||$B,$B,t.namespaceURI,r?null:t.firstChild?nV.call(t.childNodes):null,i,r?r.__e:t.firstChild,n,a,t.ownerDocument),SV(i,e,a)}function kV(e,t){e.__u|=32,OV(e,t)}UB={__e:function(e,t,n,r){for(var i,a,o;t=t.__;)if((i=t.__c)&&!(1&i.__g)){i.__g|=4;try{if((a=i.constructor)&&a.getDerivedStateFromError!=null&&(i.setState(a.getDerivedStateFromError(e)),o=8&i.__g),i.componentDidCatch!=null&&(i.componentDidCatch(e,r||{}),o=8&i.__g),o)return void(i.__g|=2)}catch(t){e=t}}throw qB=0,e}},WB=0,cV.prototype.setState=function(e,t){var n=this.__s!=null&&this.__s!=this.state?this.__s:this.__s=rV({},this.state);typeof e==`function`&&(e=e(rV({},n),this.props)),e&&rV(n,e),e!=null&&this.__v&&(t&&this._sb.push(t),dV(this))},cV.prototype.forceUpdate=function(e){this.__v&&(this.__g|=4,e&&this.__h.push(e),dV(this))},cV.prototype.render=sV,GB=[],qB=0,JB=function(e,t){return e.__v.__b-t.__v.__b},YB=/(PointerCapture)$|Capture$/i,XB=0,ZB=yV(!1),QB=yV(!0);var AV=0;Array.isArray;function Q(e,t,n,r,i,a){t||={};var o,s,c=t;if(`ref`in c&&typeof e!=`function`)for(s in c={},t)s==`ref`?o=t[s]:c[s]=t[s];var l={type:e,props:c,key:n,ref:o,__k:null,__:null,__b:0,__e:null,__c:null,constructor:void 0,__v:--AV,__i:-1,__u:0,__source:i,__self:a};return UB.vnode&&UB.vnode(l),l}var jV=16,MV=16,NV={};function PV({name:e,remappedFrom:t,token:n,width:r,height:i,viewBox:a,label:o,alignCapitals:s=!1}){"use no memo";let c=`#${e.replace(/^#/,``)}`,{width:l,height:u,viewBox:d}=NV[e]??{width:jV,height:MV},f=r??l,p=i??u,m=a??d??`0 0 ${l} ${u}`;return Q(`svg`,{"data-icon-name":t??e,"data-icon-token":n,"data-align-capitals":s,...o==null?{"aria-hidden":!0}:{"aria-label":o,role:`img`},viewBox:m,width:f,height:p,children:Q(`use`,{href:c})})}var FV=e=>e!==void 0&&/\s/.test(e),IV=(e,t)=>{let n=t=>FV(e[t-1])||FV(e[t]);if(!n(t))return t;for(let r=1;r<e.length;r++){let i=t-r;if(i>0&&!n(i))return i;let a=t+r;if(a<e.length&&!n(a))return a}return t},LV=e=>IV(e,Math.ceil(e.length/2)),RV=e=>{if(e.length<2)return[e,``];let t=LV(e);return[e.slice(0,t),e.slice(t)]},zV=e=>{if(e.length<4)return[e,``];let t=e.lastIndexOf(`.`)+1,n=e.length-t>10,r=t>=1&&!n?t:LV(e);return[e.slice(0,r),e.slice(r)]},BV=e=>{if(e.length<4)return[e,``];let t=e.lastIndexOf(`/`)+1,n=e.length-t>25,r=t>=1&&!n?t:Math.ceil(e.length/2);return[e.slice(0,r),e.slice(r)]},VV=(e,{splitIndex:t}={})=>{if(typeof t!=`number`){let t=Math.ceil(e.length/2);return[e.slice(0,t),e.slice(t)]}return[e.slice(0,t),e.slice(t)]},HV=(e,{splitOffset:t}={})=>{if(typeof t!=`number`||t<=0||t>=e.length){let t=Math.ceil(e.length/2);return[e.slice(0,t),e.slice(t)]}let n=e.length-t;return[e.slice(0,n),e.slice(n)]},UV=(e,{splitOffset:t}={})=>{if(typeof t!=`number`||t<=0||t>=e.length){let t=Math.ceil(e.length/2);return[e.slice(0,t),e.slice(t)]}let n=t;return[e.slice(0,n),e.slice(n)]};function WV({children:e,marker:t,variant:n=`default`}){"use no memo";return Q(`div`,{"aria-hidden":!0,"data-truncate-marker-cell":!0,children:Q(`div`,{"data-truncate-marker":!0,children:typeof t==`function`?t({children:e}):n===`fade`?Q(`span`,{"data-truncate-fade":!0}):t})})}function GV(e){"use no memo";let{mode:t,children:n}=e;return Q(`div`,{children:[Q(`div`,{"data-truncate-content":`visible`,children:t===`fruncate`?Q(`span`,{children:n}):n}),Q(`div`,{"data-truncate-content":`overflow`,"aria-hidden":!0,children:t===`fruncate`?Q(`span`,{children:n}):n})]})}function KV({children:e,mode:t=`truncate`,marker:n=`…`,variant:r=`default`,...i}){"use no memo";let a=Q(GV,{mode:t,children:e},`content`),o=Q(WV,{marker:n,mode:t,variant:r},`marker`),s=Q(`div`,{"data-truncate-fill":!0},`fill`);return Q(`div`,{"data-truncate-container":t,"data-truncate-variant":r,...i,children:Q(`div`,{"data-truncate-grid":!0,children:t===`truncate`?[a,o]:[o,a,s]})})}function qV({children:e,...t}){"use no memo";return Q(KV,{mode:`truncate`,...t,children:e})}function JV({children:e,...t}){"use no memo";return Q(KV,{mode:`fruncate`,...t,children:e})}function YV({children:e,contents:t,priority:n=`end`,split:r=`center`,minimumLength:i=12,className:a,style:o,...s}){"use no memo";let c=null,l=null;if(Array.isArray(t)){if(t.length!==2)return console.error(`MiddleTruncate: contents must be an array of two items`),null;c=Q(qV,{...s,children:t[0]}),l=Q(JV,{...s,children:t[1]})}else{if(typeof e!=`string`)return console.error(`MiddleTruncate: children must be a string`),null;if(e.length===0)return Q(`div`,{className:a,style:o});if(e.length<i)return Q(n===`end`?JV:qV,{...s,className:a,style:o,children:e});let t=null,u=null,d=null;if(typeof r==`string`)r===`center`?t=RV:r===`extension`?t=zV:r===`leaf-path`&&(t=BV);else if(typeof r==`number`)t=VV,u=r;else if(Array.isArray(r)){let[e,n]=r;d=n,e===`last`?t=HV:e===`first`&&(t=UV)}else typeof r==`function`&&(t=r);t??=RV;let[f,p]=t(e,{priority:n,variant:s.variant,splitIndex:typeof u==`number`?u:void 0,splitOffset:typeof d==`number`?d:void 0}),m=f.length>=p.length,h=n===`equal`&&!m,g=n===`equal`&&m,_={},v={};h&&(_.marker=``),g&&(v.marker=``),c=Q(qV,{...s,..._,children:f}),l=Q(JV,{...s,...v,children:p})}return Q(`div`,{"data-truncate-group-container":`middle`,className:a,style:o,children:[Q(`div`,{"data-truncate-segment-priority":n===`start`||n===`equal`?`1`:`2`,children:c}),Q(`div`,{"data-truncate-segment-priority":n===`end`||n===`equal`?`1`:`2`,children:l})]})}var XV={endIndex:-1,startIndex:-1};function ZV(e,t,n){return Math.min(Math.max(e,t),n)}function QV(e,t){return e<0||t<e?XV:{endIndex:t,startIndex:e}}function $V(e){return e.startIndex<0||e.endIndex<e.startIndex}function eH(e,t){return $V(e)?0:(e.endIndex-e.startIndex+1)*t}function tH(e,t,n){if(t<=0)return-1;let r=t*n;return e<=0?0:e>=r?t:Math.floor(e/n)}function nH(e,t,n){return t<=0||e<=0?-1:e>=t*n?t-1:Math.ceil(e/n)-1}function rH(e){let t=new Map;return e.forEach((e,n)=>{if(e.kind!==`directory`||!e.isExpanded)return;let r=e.ancestorPaths.length,i=t.get(r);if(i==null){t.set(r,[n]);return}i.push(n)}),t}function iH(e,t){let n=0,r=e.length-1,i=-1;for(;n<=r;){let a=Math.floor((n+r)/2),o=e[a];if(o==null)break;if(o<=t){i=a,n=a+1;continue}r=a-1}return i}function aH(e){let t=new Map,n=[];for(let r=0;r<e.length;r+=1){let i=e[r];if(i==null)continue;let a=i.kind===`directory`&&i.isExpanded?[...i.ancestorPaths,i.path]:i.ancestorPaths,o=0;for(;o<n.length&&o<a.length&&n[o]===a[o];)o+=1;for(let e=n.length-1;e>=o;--e){let i=n[e];i!=null&&t.set(i,r-1)}n.length=o;for(let e=o;e<a.length;e+=1){let t=a[e];t!=null&&n.push(t)}}let r=e.length-1;for(let e of n)t.set(e,r);return t}function oH(e,t,n){if(e.length===0||t<=0)return[];let r=aH(e),i=rH(e),a=[];for(let r=0;r<e.length;r+=1){let o=i.get(r);if(o==null||o.length===0)break;let s=t+r*n,c=iH(o,Math.min(e.length-1,Math.floor(s/n))),l=null;for(;c>=0;){let t=o[c],n=t==null?null:e[t]??null;if(n!=null&&(r===0||n.ancestorPaths[r-1]===a[r-1]?.path)){l=n;break}--c}if(l==null)break;a.push(l)}return a.map((i,a)=>{let o=a*n,s=(r.get(i.path)??e.length-1)+1;if(s>=e.length)return{row:i,top:o};let c=s*n-t;return{row:i,top:Math.min(o,c-n)}}).filter(e=>e.top+n>0)}function sH(e,t){let n=t.totalRowCount??e.length,r=n*t.itemHeight,i=Math.max(0,t.viewportHeight),a=Math.max(0,Math.floor(t.overscan)),o=Math.max(0,r-i),s=ZV(t.scrollTop,0,o),c=t.stickyRows??oH(e,s,t.itemHeight),l=c.reduce((e,n)=>Math.max(e,n.top+t.itemHeight),0),u=Math.min(r,s+l),d=Math.max(0,i-l),f=Math.max(0,r-u),p=tH(s,n,t.itemHeight),m=tH(u,n,t.itemHeight),h=l<=0||p<0||p>=n?-1:p,g=h===-1?-1:Math.min(n-1,m-1),_=h===-1||g<h?0:g-h+1,v=d<=0||m>=n?XV:QV(m,nH(u+d,n,t.itemHeight)),y=g+1,b=$V(v)?XV:QV(Math.max(y,v.startIndex-a),Math.min(n-1,v.endIndex+a)),x=eH(b,t.itemHeight);return{occlusion:{firstOccludedIndex:h,lastOccludedIndex:g,occludedCount:_},physical:{itemHeight:t.itemHeight,maxScrollTop:o,overscan:a,scrollTop:s,totalHeight:r,totalRowCount:n,viewportHeight:i},projected:{contentHeight:f,paneHeight:d,paneTop:u},sticky:{height:l,rows:c},visible:v,window:{endIndex:b.endIndex,height:x,offsetTop:$V(b)?0:b.startIndex*t.itemHeight,startIndex:b.startIndex}}}var cH={added:`A`,deleted:`D`,ignored:null,modified:`M`,renamed:`R`,untracked:`U`},lH={added:`Git status: added`,deleted:`Git status: deleted`,ignored:`Git status: ignored`,modified:`Git status: modified`,renamed:`Git status: renamed`,untracked:`Git status: untracked`},uH=`Contains git status items`;function dH(e){return e.current?!0:(e.current=!0,!1)}function fH(e){let{currentScrollTop:t,focusedIndex:n,itemHeight:r,topInset:i=0,viewportHeight:a}=e;if(n<0)return null;let o=Math.max(0,i),s=n*r,c=s+r;if(s<t+o){let e=Math.max(0,s-o);return e===t?null:e}if(c>t+a){let e=c-a;return e===t?null:e}return null}function pH(e){let{currentScrollTop:t,focusedIndex:n,itemHeight:r,offset:i,topInset:a=0,totalHeight:o,viewportHeight:s}=e;if(i===`nearest`)return fH({currentScrollTop:t,focusedIndex:n,itemHeight:r,topInset:a,viewportHeight:s});if(n<0)return null;let c=Math.max(0,a),l=n*r,u=Math.max(0,s-c),d=i===`center`?c+Math.max(0,(u-r)/2):c,f=Math.max(0,o-s),p=Math.max(0,Math.min(l-d,f));return p===t?null:p}function mH(e){let{currentScrollTop:t,focusedIndex:n,itemHeight:r,targetViewportOffset:i,totalHeight:a,viewportHeight:o}=e;if(n<0)return null;let s=Math.max(0,i),c=n*r,l=c+r,u=t+s,d=t+o;if(c>=u&&l<=d)return null;let f=Math.max(0,a-o),p=Math.max(0,Math.min(c-s,f));return p===t?null:p}function hH(e){if(e==null||!e.isConnected||e===document.body||e===document.documentElement)return!1;e.focus({preventScroll:!0});let t=e.getRootNode();return t instanceof ShadowRoot?t.activeElement===e:document.activeElement===e}function gH(e){let t=e.getRootNode();if(t instanceof ShadowRoot){let e=t.activeElement;return e instanceof HTMLElement?e:null}let n=document.activeElement;return n instanceof HTMLElement&&e.contains(n)?n:null}function _H(e,t){if(e==null)return t;let n=e.getBoundingClientRect().height;return n>0?n:e.clientHeight>0?e.clientHeight:t}function vH(e,t){return e!=null&&e>0?e:t}function yH(e){let t=e.borderBoxSize,n=Array.isArray(t)?t[0]:t;return n!=null&&Number.isFinite(n.blockSize)&&n.blockSize>0?n.blockSize:e.contentRect.height>0?e.contentRect.height:null}function bH(e,t,n,r,i=0){let a=fH({currentScrollTop:e.scrollTop,focusedIndex:t,itemHeight:n,topInset:i,viewportHeight:r});return a!=null&&(e.scrollTop=a,!0)}function xH(e,t,n,r,i,a,o=0){let s=pH({currentScrollTop:e.scrollTop,focusedIndex:t,itemHeight:n,offset:a,topInset:o,totalHeight:i,viewportHeight:r});return s!=null&&(e.scrollTop=s,!0)}function SH(e,t,n,r,i,a){let o=mH({currentScrollTop:e.scrollTop,focusedIndex:t,itemHeight:n,targetViewportOffset:a,totalHeight:i,viewportHeight:r});return o!=null&&(e.scrollTop=o,!0)}function CH(e,t,n,r){return n.end<n.start?null:e<n.start?-t:e>n.end?r:null}function wH(e){let{renamingPath:t,previousRenamingPath:n,hasRenderedInput:r}=e;return t==null?`reset`:r?n===t?`ignore`:`focus-input`:`reveal-canonical`}function TH({ariaLabel:e,isFlattened:t=!1,ref:n,value:r,onBlur:i,onInput:a}){return Q(`input`,{ref:n,"data-item-rename-input":!0,...t?{"data-item-flattened-rename-input":!0}:{},"aria-label":e,value:r,onBlur:i,onInput:a,onClick:e=>e.stopPropagation(),onMouseDown:e=>e.stopPropagation(),onPointerDown:e=>e.stopPropagation()})}function EH(e){let{row:t,mode:n,targetPath:r,ariaLabel:i,domId:a,isParked:o,itemHeight:s,features:c,state:l,extraStyle:u}=e,d=n===`sticky`,f=t.ancestorPaths.at(-1)??``,p={};return l.isFocusRinged&&(p[`data-item-focused`]=!0),t.isSelected&&(p[`data-item-selected`]=!0),l.isContextHovered&&(p[`data-item-context-hover`]=`true`),l.isDragTarget&&(p[`data-item-drag-target`]=!0),l.isDragging&&(p[`data-item-dragging`]=!0),l.effectiveGitStatus!=null&&(p[`data-item-git-status`]=l.effectiveGitStatus),l.containsGitChange&&(p[`data-item-contains-git-change`]=`true`),{"aria-expanded":!d&&t.kind===`directory`?t.isExpanded:void 0,"aria-haspopup":c.contextMenuEnabled?`menu`:void 0,"aria-label":i,"aria-level":d?void 0:t.level+1,"aria-posinset":d?void 0:t.posInSet+1,"aria-selected":d?void 0:t.isSelected?`true`:`false`,"aria-setsize":d?void 0:t.setSize,"data-file-tree-sticky-path":d?r:void 0,"data-file-tree-sticky-row":d?`true`:void 0,"data-item-context-menu-button-visibility":c.actionLaneEnabled?c.contextMenuButtonVisibility:void 0,"data-item-context-menu-trigger-mode":c.contextMenuEnabled?c.contextMenuTriggerMode:void 0,"data-item-has-context-menu-action-lane":c.actionLaneEnabled?`true`:void 0,"data-item-has-git-lane":c.gitLaneActive?`true`:void 0,"data-item-parent-path":f.length>0?f:void 0,"data-item-parked":o?`true`:void 0,"data-item-path":r,"data-item-type":t.kind===`directory`?`folder`:`file`,"data-type":`item`,id:d?void 0:a,role:d?void 0:`treeitem`,style:{minHeight:`${s}px`,...u},tabIndex:!d&&t.isFocused?0:-1,...p}}function DH(e){let{event:t,mode:n,isSearchOpen:r,isDirectory:i}=e,a=t.ctrlKey||t.metaKey,o=t.shiftKey||a,s=t.shiftKey?{additive:a,kind:`range`}:a?{kind:`toggle`}:{kind:`single`};return{closeSearch:r,revealCanonical:n===`sticky`,selection:s,toggleDirectory:!o&&i}}var OH,kH,AH,jH,MH=Object.is,NH=0,PH=[],FH=UB,IH=FH.__b,LH=FH.__r,RH=FH.diffed,zH=FH.__c,BH=FH.unmount,VH=FH.__;function HH(e,t){FH.__h&&FH.__h(kH,e,NH||t),NH=0;var n=kH.__H||(kH.__H={__:[],__h:[]});return e>=n.__.length&&n.__.push({}),n.__[e]}function UH(e){return NH=1,WH(tU,e)}function WH(e,t,n){var r=HH(OH++,2);if(r.t=e,!r.__c&&(r.__=[n?n(t):tU(void 0,t),function(e){var t=r.__N?r.__N[0]:r.__[0],n=r.t(t,e);MH(t,n)||(r.__N=[n,r.__[1]],r.__c.setState({}))}],r.__c=kH,!kH.__f)){var i=function(e,t,n){if(!r.__c.__H)return!0;var i=r.__c.__H.__.filter(function(e){return!!e.__c});if(i.every(function(e){return!e.__N}))return!a||a.call(this,e,t,n);var o=r.__c.props!==e;return i.forEach(function(e){if(e.__N){var t=e.__[0];e.__=e.__N,e.__N=void 0,MH(t,e.__[0])||(o=!0)}}),a&&a.call(this,e,t,n)||o};kH.__f=!0;var a=kH.shouldComponentUpdate,o=kH.componentWillUpdate;kH.componentWillUpdate=function(e,t,n){if(4&this.__g){var r=a;a=void 0,i(e,t,n),a=r}o&&o.call(this,e,t,n)},kH.shouldComponentUpdate=i}return r.__N||r.__}function GH(e,t){var n=HH(OH++,3);!FH.__s&&eU(n.__H,t)&&(n.__=e,n.u=t,kH.__H.__h.push(n))}function KH(e,t){var n=HH(OH++,4);!FH.__s&&eU(n.__H,t)&&(n.__=e,n.u=t,kH.__h.push(n))}function $(e){return NH=5,qH(function(){return{current:e}},[])}function qH(e,t){var n=HH(OH++,7);return eU(n.__H,t)&&(n.__=e(),n.__H=t,n.__h=e),n.__}function JH(e,t){return NH=8,qH(function(){return e},t)}function YH(){for(var e;e=PH.shift();)if(e.__P&&e.__H)try{e.__H.__h.forEach(QH),e.__H.__h.forEach($H),e.__H.__h=[]}catch(t){e.__H.__h=[],FH.__e(t,e.__v)}}FH.__b=function(e){kH=null,IH&&IH(e)},FH.__=function(e,t){e&&t.__k&&t.__k.__m&&(e.__m=t.__k.__m),VH&&VH(e,t)},FH.__r=function(e){LH&&LH(e),OH=0;var t=(kH=e.__c).__H;t&&(AH===kH?(t.__h=[],kH.__h=[],t.__.forEach(function(e){e.__N&&(e.__=e.__N),e.u=e.__N=void 0})):(t.__h.forEach(QH),t.__h.forEach($H),t.__h=[],OH=0)),AH=kH},FH.diffed=function(e){RH&&RH(e);var t=e.__c;t&&t.__H&&(t.__H.__h.length&&(PH.push(t)!==1&&jH===FH.requestAnimationFrame||((jH=FH.requestAnimationFrame)||ZH)(YH)),t.__H.__.forEach(function(e){e.u&&(e.__H=e.u),e.u=void 0})),AH=kH=null},FH.__c=function(e,t){t.some(function(e){try{e.__h.forEach(QH),e.__h=e.__h.filter(function(e){return!e.__||$H(e)})}catch(n){t.some(function(e){e.__h&&=[]}),t=[],FH.__e(n,e.__v)}}),zH&&zH(e,t)},FH.unmount=function(e){BH&&BH(e);var t,n=e.__c;n&&n.__H&&(n.__H.__.forEach(function(e){try{QH(e)}catch(e){t=e}}),n.__H=void 0,t&&FH.__e(t,n.__v))};var XH=typeof requestAnimationFrame==`function`;function ZH(e){var t,n=function(){clearTimeout(r),XH&&cancelAnimationFrame(t),setTimeout(e)},r=setTimeout(n,35);XH&&(t=requestAnimationFrame(n))}function QH(e){var t=kH,n=e.__c;typeof n==`function`&&(e.__c=void 0,n()),kH=t}function $H(e){var t=kH;e.__c=e.__(),kH=t}function eU(e,t){return!e||e.length!==t.length||t.some(function(t,n){return!MH(t,e[n])})}function tU(e,t){return typeof t==`function`?t(e):t}function nU(e,t=null,n=null){"use no memo";let r=e.flattenedSegments;return r==null||r.length===0?t??e.name:Q(`span`,{"data-item-flattened-subitems":!0,children:r.map((e,i)=>{let a=i===r.length-1;return Q(sV,{children:[Q(`span`,{"data-item-flattened-subitem":e.path,"data-item-flattened-subitem-drag-target":n===e.path?`true`:void 0,children:a&&t!=null?t:Q(qV,{children:e.name})}),i<r.length-1?` / `:``]},e.path)})})}function rU(e){return e.isFlattened?e.flattenedSegments?.findLast(e=>e.isTerminal)?.path??e.path:e.path}function iU(e){let t=e.flattenedSegments;return t==null||t.length===0?e.name:t.map(e=>e.name).join(` / `)}function aU(e,t,n,r){return e.map((e,i)=>{let a=i*n,o=e.subtreeEndIndex+1;if(o>=r)return{row:e.row,top:a};let s=o*n-t;return{row:e.row,top:Math.min(a,s-n)}}).filter(e=>e.top+n>0)}function oU({controller:e,itemHeight:t,overscan:n,scrollTop:r,stickyFolders:i,viewportHeight:a}){let o=e.getVisibleCount(),s=i&&o>0?e.getStickyRowCandidates(r,t):[],c=s==null&&i&&o>0?e.getVisibleRows(0,o-1):[],l=sH(c,{itemHeight:t,overscan:n,scrollTop:r,stickyRows:s==null?void 0:aU(s,r,t,o),totalRowCount:o,viewportHeight:a}),u=i&&r<=0&&o>0?e.getStickyRowCandidates(1,t):[],d=u!=null&&r<=0?aU(u,1,t,o):i&&r<=0&&c.length>0?oH(c,1,t):l.sticky.rows;return{overlayHeight:d.reduce((e,n)=>Math.max(e,n.top+t),0),overlayRows:d,snapshot:l,visibleRows:c}}var sU=400,cU=40,lU=18;function uU(e,t,n){let r=e,i=document.elementFromPoint?.bind(document)??null,a=r.elementFromPoint?.(t,n)??i?.(t,n)??null;return e instanceof ShadowRoot&&(a==null||!e.contains(a))?dU(e,t,n):a instanceof HTMLElement?a:null}function dU(e,t,n){let r=Array.from(e.querySelectorAll(`[data-type="item"], [data-item-flattened-subitem]`));for(let e=r.length-1;e>=0;e--){let i=r[e],a=i.getBoundingClientRect();if(t>=a.left&&t<=a.right&&n>=a.top&&n<=a.bottom)return i}return null}function fU(e){let t=e?.closest?.(`[data-type="item"]`);if(!(t instanceof HTMLElement))return null;let n=t.dataset.itemPath??null;if(n==null)return null;let r=e?.closest?.(`[data-item-flattened-subitem]`),i=r instanceof HTMLElement?r.getAttribute(`data-item-flattened-subitem`)??null:null;if(i!=null&&i.endsWith(`/`))return{directoryPath:i,flattenedSegmentPath:i,hoveredPath:n,kind:`directory`};if(t.dataset.itemType===`folder`)return{directoryPath:n,flattenedSegmentPath:null,hoveredPath:n,kind:`directory`};let a=t.dataset.itemParentPath??null;return a==null||a.length===0?{directoryPath:null,flattenedSegmentPath:null,hoveredPath:n,kind:`root`}:{directoryPath:a,flattenedSegmentPath:null,hoveredPath:n,kind:`directory`}}function pU(e){let t=e.cloneNode(!0);return t.removeAttribute(`id`),t.dataset.fileTreeDragPreview=`true`,t.setAttribute(`aria-hidden`,`true`),t.tabIndex=-1,Object.assign(t.style,{boxShadow:`0 4px 12px rgba(0, 0, 0, 0.15)`,left:`0px`,margin:`0`,pointerEvents:`none`,position:`fixed`,top:`0px`,willChange:`transform`,zIndex:`10000`}),t}function mU(){return navigator.vendor!==`Apple Computer, Inc.`}function hU(e,t){let n=e-t.top;if(n<cU)return-Math.ceil((cU-Math.max(0,n))/cU*lU);let r=t.bottom-e;return r<cU?Math.ceil((cU-Math.max(0,r))/cU*lU):0}function gU(e,t){if(e!=null){let t=cH[e];return t==null?null:{text:t,title:lH[e]}}return t?{icon:{name:`file-tree-icon-dot`,width:6,height:6},title:uH}:null}function _U(e,t,n){if(t==null||t.size===0)return null;let r=[];for(let i=e.length-1;i>=0;--i){let a=e[i],o=n.get(a);if(o!=null){for(let e of r)n.set(e,o);return o?`ignored`:null}if(t.has(a)){n.set(a,!0);for(let e of r)n.set(e,!0);return`ignored`}r.push(a)}for(let e of r)n.set(e,!1);return null}function vU(e){return e!=null&&`toggle`in e}function yU(e){return e.code===`Space`||e.key===` `||e.key===`Spacebar`}function bU(e){return e.key.length===1&&/^[\p{L}\p{N}]$/u.test(e.key)&&!e.ctrlKey&&!e.metaKey&&!e.altKey}function xU(e){return e==null?``:`[data-item-section="spacing-item"][data-ancestor-path="${e.replaceAll(`\\`,`\\\\`).replaceAll(`"`,`\\"`)}"] { opacity: 1; }`}function SU(e){return e.shiftKey&&e.key===`F10`||e.key===`ContextMenu`}function CU(e,t){return t&&SU(e)||(e.ctrlKey||e.metaKey)&&yU(e)?!0:e.key===`ArrowDown`||e.key===`ArrowLeft`||e.key===`ArrowRight`||e.key===`ArrowUp`}var wU=new Set([`ArrowDown`,`ArrowLeft`,`ArrowRight`,`ArrowUp`,`End`,`Home`,`PageDown`,`PageUp`]);function TU(e){for(let t of e.composedPath())if(t instanceof HTMLElement&&(t.dataset.fileTreeContextMenuRoot===`true`||t.dataset.type===`context-menu-anchor`||t.dataset.type===`context-menu-trigger`||t.getAttribute(`slot`)===`context-menu`))return!0;return!1}function EU(e){return{bottom:e.bottom,height:e.height,left:e.left,right:e.right,top:e.top,width:e.width,x:e.x,y:e.y}}function DU(e,t){return{bottom:t,height:0,left:e,right:e,top:t,width:0,x:e,y:t}}function OU(e,t){if(e==null)return t.offsetTop;let n=t.getBoundingClientRect(),r=e.getBoundingClientRect();return n.top-r.top}function kU(e,t,n){if(n==null){e.delete(t);return}e.set(t,n)}function AU(e,t,n){if(e==null)return null;let r=t.get(e)??null;if(r!=null)return r;let i=n.get(e)??null;return i?.dataset.itemParked===`true`?null:i}function jU(e){if(e==null)return[];let t=[];for(let n of e.querySelectorAll(`button[data-file-tree-sticky-row="true"]`)){if(!(n instanceof HTMLElement))continue;let e=n.dataset.fileTreeStickyPath;e!=null&&t.push(e)}return t}function MU(e,t){if(e==null||t==null)return null;for(let n of e.querySelectorAll(`button[data-item-focused="true"][data-item-parked="true"]`))if(n instanceof HTMLElement&&n.dataset.itemPath===t)return n;return null}function NU(e,t,n,r,i,a,o){let s=Math.max(0,a-i),c=t?.getBoundingClientRect()??null,l=c==null||n==null?null:n.getBoundingClientRect().top-c.top,u=MU(e,r),d=c==null||u==null?null:u.getBoundingClientRect().top-c.top;return Math.max(0,Math.min(d??Math.max(l??0,s),Math.max(0,o-i)))}function PU(e,t){return{kind:e.kind,name:iU(e),path:t}}function FU(e){return e==null?void 0:`${e}__tree`}function IU(e,t,n){if(e!=null)return`${e}__focused-item-${encodeURIComponent(t)}${n?`__parked`:``}`}function LU(e){return e===`file-tree-icon-chevron`||e===`file-tree-icon-dot`||e===`file-tree-icon-file`||e===`file-tree-icon-lock`}function RU(e,t){if(e==null)return null;if(`text`in e)return e.parts==null?Q(`span`,{title:e.title,children:e.text}):Q(`span`,{title:e.title,children:e.parts.map((e,t)=>Q(`span`,{style:{color:e.color},children:e.text},t))});let n=typeof e.icon==`string`?LU(e.icon)?t(e.icon):{name:e.icon}:LU(e.icon.name)?(()=>{let n=t(e.icon.name),{name:r,...i}=e.icon;return{...n,...i}})():e.icon;return Q(`span`,{title:e.title,children:Q(PV,{...n})})}function zU(e){e!=null&&hH(e.querySelector([`button:not([disabled])`,`[href]`,`input:not([disabled])`,`select:not([disabled])`,`textarea:not([disabled])`,`[tabindex]:not([tabindex="-1"])`].join(`, `))??e)}function BU(e,t,{actionLaneEnabled:n=!1,customDecoration:r=null,decorationLaneEnabled:i=!1,dragTargetFlattenedSegmentPath:a=null,gitDecoration:o=null,gitLaneActive:s=!1,renameInput:c=null,showDecorativeActionAffordance:l=!1}={}){let u=rU(e);return Q(sV,{children:[e.depth>0?Q(`div`,{"data-item-section":`spacing`,children:Array.from({length:e.depth}).map((t,n)=>Q(`div`,{"data-item-section":`spacing-item`,"data-ancestor-path":e.ancestorPaths[n]},n))}):null,Q(`div`,{"data-item-section":`icon`,children:e.kind===`directory`?Q(PV,{...t(`file-tree-icon-chevron`)}):Q(PV,{...t(`file-tree-icon-file`,u)})}),Q(`div`,{"data-item-section":`content`,children:e.isFlattened?nU(e,c,a):c??Q(YV,{minimumLength:5,split:`extension`,children:e.name})}),i?Q(`div`,{"data-item-section":`decoration`,children:r==null?null:RU(r,t)}):null,s?Q(`div`,{"data-item-section":`git`,children:RU(o,t)}):null,n?Q(`div`,{"data-item-section":`action`,children:l?Q(`span`,{"aria-hidden":`true`,"data-item-action-affordance":`decorative`,children:Q(PV,{...t(`file-tree-icon-ellipsis`)})}):null}):null]})}function VU(e,t,n,r={}){let{controller:i,renameView:a,visualFocusPath:o,contextHoverPath:s,draggedPathSet:c,dragTarget:l,dragAndDropEnabled:u,shouldSuppressContextMenu:d,handleRowDragStart:f,handleRowDragEnd:p,handleRowTouchStart:m,instanceId:h,itemHeight:g,gitStatusByPath:_,ignoredGitDirectories:v,ignoredInheritanceCache:y,directoriesWithGitChanges:b,gitLaneActive:x,contextMenuEnabled:S,contextMenuTriggerMode:C,contextMenuButtonTriggerEnabled:w,contextMenuButtonVisibility:T,contextMenuRightClickEnabled:E,registerRenameInput:ee,registerButton:D,resolveIcon:O,renderDecorationForRow:k,openContextMenuForRow:te,onRowClick:A,onKeyDown:j}=e,M=rU(t),{isParked:N=!1,mode:P=`flow`,style:F}=r,ne=P===`sticky`,I=_?.get(M)??null??_U(t.ancestorPaths,v,y),L=t.kind===`directory`&&(b?.has(M)??!1),R=k(t,M),re=gU(I,L),ie=S&&w,ae=R!=null||x||ie,z=ie&&T===`always`,oe=a.getPath()===M,B=oe?a.getValue():``,se=ne||!oe?null:Q(TH,{ref:ee,ariaLabel:`Rename ${iU(t)}`,isFlattened:t.isFlattened,value:B,onBlur:()=>{a.commit()},onInput:e=>{a.setValue(e.currentTarget.value)}}),V=BU(t,O,{actionLaneEnabled:ie,customDecoration:R,decorationLaneEnabled:ae,dragTargetFlattenedSegmentPath:l?.flattenedSegmentPath??null,gitDecoration:re,gitLaneActive:x,renameInput:se,showDecorativeActionAffordance:z}),H={...EH({ariaLabel:iU(t),domId:t.isFocused?IU(h,M,N):void 0,extraStyle:F,features:{actionLaneEnabled:ie,contextMenuButtonVisibility:ie?T:null,contextMenuEnabled:S,contextMenuTriggerMode:S?C:null,gitLaneActive:x},isParked:N,itemHeight:g,mode:P,row:t,state:{containsGitChange:L,effectiveGitStatus:I,isContextHovered:s===M,isDragTarget:l?.kind===`directory`&&l.directoryPath===M,isDragging:c?.has(M)===!0,isFocusRinged:t.isFocused&&o===M},targetPath:M}),key:n,onContextMenu:S||u?e=>{if(d()){e.preventDefault();return}S&&(e.preventDefault(),E&&(i.focusMountedPathFromInput(M),te(t,M,{anchorRect:DU(e.clientX,e.clientY),source:`right-click`})))}:void 0,onFocus:ne?void 0:()=>{i.focusMountedPathFromInput(M)},onKeyDown:ne?void 0:j,ref:e=>{D(M,e)}};return!ne&&oe?Q(`div`,{...H,children:V}):Q(`button`,{...H,type:`button`,draggable:u&&!N,onDragEnd:u&&!N?p:void 0,onDragStart:u&&!N?e=>{f(e,t,M)}:void 0,onMouseDown:e=>{if(ne){e.preventDefault();return}i.isSearchOpen()&&e.preventDefault()},onTouchStart:u&&!N?e=>{m(e,t,M)}:void 0,onClick:e=>{A(e,t,M,P)},children:V})}function HU(e,t,n){return t.end<t.start?[]:e.controller.getVisibleRows(t.start,t.end).filter(e=>!n.has(rU(e))).map((n,r)=>VU(e,n,t.start+r))}function UU({composition:e,controller:t,gitStatusByPath:n,ignoredGitDirectories:r,directoriesWithGitChanges:i,icons:a,instanceId:o,itemHeight:s=Mz,overscan:c=10,renamingEnabled:l=!1,renderRowDecoration:u,searchBlurBehavior:d=`close`,searchEnabled:f=!1,searchFakeFocus:p=!1,slotHost:m,stickyFolders:h=!1,initialViewportHeight:g=420}){"use no memo";let _=$(null),v=$(null),y=$(!1),b=$(null),x=$(null),S=$(null),C=$(null),w=$(null),T=$(new Map),E=$(new Map),ee=$(()=>{}),D=$(null),O=$(0),k=$(!1),te=$(null);te.current!==t&&(k.current=!1,te.current=t);let A=$(!1),j=$(null),M=$(null),N=$(!1),P=$(null),F=$(null),ne=$(null),I=$(null),L=$(null),R=$(null),re=$(null),ie=$(null),ae=$(!1),z=$(null),oe=$(null),B=$(null),se=$(null),V=qH(()=>new Map,[]),[,H]=UH(0),ce=$(!1),[le,ue]=UH(null),[de,fe]=UH(null),[pe,me]=UH(null),[he,ge]=UH(null),[_e,ve]=UH(0),[U,ye]=UH(null),be=$(U);be.current=U;let xe=$(null),Se=$(null),Ce=$(null),we=$(null),Te=$(null),Ee=$(!1),De=()=>{Se.current=null,Ce.current=null,we.current=null},Oe=(e,t)=>{Se.current=e,Ce.current=null,we.current=t==null?null:{path:e,scrollTop:t}},ke=(e,t)=>{Se.current=null,Ce.current={path:e,viewportOffset:t},we.current=null},Ae=$(d===`retain`&&t.isSearchOpen()),[je,Me]=UH(p);GH(()=>{p||Me(!1)},[p]);let Ne=$(!1),Pe=JH(()=>{Ne.current=!0,Me(e=>e&&!1)},[]),[Fe,Ie]=UH(()=>oU({controller:t,itemHeight:s,overscan:c,scrollTop:0,stickyFolders:h,viewportHeight:g})),[Le,Re]=UH(!1);GH(()=>{Re(!0)},[]);let ze=e?.contextMenu?.enabled===!0||e?.contextMenu?.render!=null||e?.contextMenu?.onOpen!=null||e?.contextMenu?.onClose!=null,Be=e?.contextMenu?.triggerMode??(ze?`right-click`:`both`),Ve=Be===`both`||Be===`button`,He=e?.contextMenu?.buttonVisibility??`when-needed`,Ue=Be===`both`||Be===`right-click`;KH(()=>{let e=S.current;if(e==null)return;let t=e=>{if(!(e instanceof CustomEvent))return;let t=e.detail?.path??null;Te.current=t,fe(t),ge(t==null?null:`pointer`)},n=e=>{e instanceof CustomEvent&&(Ee.current=e.detail?.disabled===!0)};return e.addEventListener(`file-tree-debug-set-context-menu-trigger`,t),e.addEventListener(`file-tree-debug-set-scroll-suppression`,n),()=>{e.removeEventListener(`file-tree-debug-set-context-menu-trigger`,t),e.removeEventListener(`file-tree-debug-set-scroll-suppression`,n)}},[]);let We=JH((e,t)=>{kU(T.current,e,t)},[]),Ge=JH((e,t)=>{kU(E.current,e,t)},[]),Ke=JH(e=>{x.current=e},[]),qe=JH(e=>AU(e,E.current,T.current),[]),Je=n!=null||r!=null||i!=null,{resolveIcon:Ye}=qH(()=>YF(a),[a]),Xe=t[CB](),Ze=Xe.getPath(),Qe=Ze!=null,$e=t.isSearchOpen(),et=t.getSearchValue(),W=t.getFocusedPath(),tt=t.getFocusedIndex(),nt=t.getScrollRequest(),rt=t.isDragAndDropEnabled(),it=t.getDragSession(),at=qH(()=>it==null?null:new Set(it.draggedPaths),[it]),ot=it?.target??null,st=it?.primaryPath??null,ct=FU(o),{overlayHeight:lt,overlayRows:ut,snapshot:dt,visibleRows:ft}=Fe,pt=dt.physical.viewportHeight,mt=qH(()=>({end:dt.window.endIndex,start:dt.window.startIndex}),[dt.window.endIndex,dt.window.startIndex]),ht=ut,gt=dt.sticky.rows,_t=dt.physical.totalHeight,vt=dt.sticky.height,yt=qH(()=>new Set(gt.map(e=>rU(e.row))),[gt]),bt=tt>=0&&tt>=mt.start&&tt<=mt.end,xt=JH((e,t)=>u?.({item:PU(e,t),row:e})??null,[u]),St=JH(e=>hH(e==null?null:T.current.get(e)??null)?!0:hH(S.current),[]),Ct=JH(e=>{St(t.focusNearestPath(e))},[t,St]),wt=$(Ct);wt.current=Ct;let Tt=$(!0),Et=$(()=>{}),Dt=JH((t=!0)=>{let n=be.current;n!=null&&(Tt.current=Tt.current&&t,ye(null),e?.contextMenu?.onClose?.(),Tt.current&&Ct(n.path))},[e?.contextMenu,Ct]);Et.current=Dt;let Ot=JH(e=>{let t=e==null?null:OU(S.current,e);me(e=>e===t?e:t)},[]),kt=JH((e,n,r)=>{let i=t.getItem(n);if(i==null)return;let a=qe(n);if(a?.dataset.fileTreeStickyRow===`true`){let e=C.current;Oe(n,e?.scrollTop??null),A.current=!0,ue(e=>e===n?e:n)}i.focus(),Ot(a),Tt.current=!0,ye({anchorRect:r?.anchorRect??null,item:PU(e,n),path:n,source:r?.source??`keyboard`})},[t,qe,Ot]),At=JH(e=>{if(l){if(t.isSearchOpen()){let e=C.current,t=_H(e,pt);P.current=tt<0||e==null?null:Math.max(0,Math.min(tt*s-e.scrollTop,Math.max(0,t-s))),N.current=!0}t.startRenaming(e)!==!1&&(ge(`focus`),H(e=>e+1))}},[t,tt,s,l,pt]),jt=JH((e,{restoreTreeFocus:n=!0,targetOffset:r=`live-overlay`}={})=>{let i=C.current;if(i==null)return!1;t.focusPath(e);let a=t.getFocusedIndex();if(a<0)return!1;let o=t.getVisibleRows(a,a)[0]??null;if(o==null)return!1;let l=_H(i,pt),u=t.getVisibleCount()*s,d=r===`sticky-parents`?o.ancestorPaths.length*s:oU({controller:t,itemHeight:s,overscan:c,scrollTop:i.scrollTop,stickyFolders:h,viewportHeight:l}).snapshot.sticky.height;return A.current=!0,SH(i,a,s,l,u,d),ee.current(),xe.current=n?e:null,!0},[t,s,c,pt,h]),Mt=()=>y.current===!0||se.current!=null||ae.current===!0,Nt=e=>typeof window.requestAnimationFrame==`function`?window.requestAnimationFrame(()=>{e()}):window.setTimeout(e,16),Pt=e=>{if(e!=null){if(typeof window.cancelAnimationFrame==`function`){window.cancelAnimationFrame(e);return}window.clearTimeout(e)}},Ft=()=>{I.current!=null&&(clearTimeout(I.current),I.current=null),ne.current=null},It=()=>{R.current?.remove(),R.current=null},Lt=()=>{Pt(F.current),F.current=null,L.current=null},Rt=e=>{let t=S.current?.getRootNode();if(t instanceof ShadowRoot){t.append(e);return}document.body.append(e)},zt=()=>{ie.current?.(),ie.current=null,se.current!=null&&(clearTimeout(se.current),se.current=null),ae.current=!1,z.current=null,B.current=null,oe.current!=null&&(oe.current.setAttribute(`draggable`,`true`),oe.current.style.removeProperty(`touch-action`),oe.current=null),It(),Ft(),Lt(),re.current=null},Bt=(e,n)=>{let r=S.current?.getRootNode(),i=fU(uU(r instanceof ShadowRoot?r:document,e,n));return t.setDragTarget(i),t.getDragSession()?.target??null},Vt=e=>{let n=t.getDragAndDropConfig()?.openOnDropDelay??800;if(e==null||e.kind!==`directory`||e.directoryPath==null||n<=0){Ft();return}let r=t.getItem(e.directoryPath),i=vU(r)?r:null;if(i==null||i.isExpanded()){Ft();return}let a=`${e.directoryPath}::${e.flattenedSegmentPath??``}`;ne.current!==a&&(Ft(),ne.current=a,I.current=setTimeout(()=>{let n=t.getDragSession()?.target;n?.kind===`directory`&&n.directoryPath===e.directoryPath&&n.flattenedSegmentPath===e.flattenedSegmentPath&&i.expand()},n))},Ht=()=>{F.current=null;let e=L.current,n=C.current;if(e==null||n==null||t.getDragSession()==null)return;let r=n.getBoundingClientRect(),i=hU(e.clientY,r);if(i===0)return;let a=Math.max(0,n.scrollHeight-n.clientHeight),o=Math.max(0,Math.min(a,n.scrollTop+i));o!==n.scrollTop&&(n.scrollTop=o,ee.current()),Vt(Bt(e.clientX,e.clientY)),F.current=Nt(Ht)},Ut=(e,t)=>{L.current={clientX:e,clientY:t},F.current??=Nt(Ht)},Wt=(e,n,r)=>{let i=e.currentTarget;if(i!=null){if(zt(),It(),Ft(),Lt(),t.startDrag(r)===!1){e.preventDefault();return}if(re.current=n,e.dataTransfer!=null&&(e.dataTransfer.effectAllowed=`move`,e.dataTransfer.dropEffect=`move`,e.dataTransfer.setData(`text/plain`,r),mU())){let t=pU(i),n=i.getBoundingClientRect();Object.assign(t.style,{height:`${n.height}px`,opacity:`0.85`,transform:`translate3d(-9999px, 0px, 0)`,width:`${n.width}px`}),Rt(t),R.current=t,e.dataTransfer.setDragImage(t,Math.max(0,e.clientX-n.left),Math.max(0,e.clientY-n.top))}}},Gt=()=>{It(),Ft(),Lt(),re.current=null,t.cancelDrag()},Kt=(e,n,r)=>{if(se.current!=null||ae.current)return;let i=e.touches[0],a=e.currentTarget;if(i==null||a==null)return;B.current={clientX:i.clientX,clientY:i.clientY},oe.current=a,a.setAttribute(`draggable`,`false`);let o=(e={})=>{let t=e.restoreNativeDraggable??!ae.current;se.current!=null&&(clearTimeout(se.current),se.current=null),document.removeEventListener(`touchmove`,s),document.removeEventListener(`touchend`,c),document.removeEventListener(`touchcancel`,c),ie.current===o&&(ie.current=null),t&&(a.setAttribute(`draggable`,`true`),oe.current===a&&(oe.current=null),B.current=null)},s=e=>{let t=e.touches[0],n=B.current;if(t==null||n==null)return;let r=t.clientX-n.clientX,i=t.clientY-n.clientY;r*r+i*i<=100||o()},c=()=>{o()};document.addEventListener(`touchmove`,s,{passive:!0}),document.addEventListener(`touchend`,c),document.addEventListener(`touchcancel`,c),ie.current=o,se.current=setTimeout(()=>{if(o({restoreNativeDraggable:!1}),t.startDrag(r)===!1){a.setAttribute(`draggable`,`true`),oe.current===a&&(oe.current=null),B.current=null;return}ae.current=!0,oe.current=a,a.setAttribute(`draggable`,`false`),a.style.setProperty(`touch-action`,`none`),re.current=n;let e=a.getBoundingClientRect(),s=pU(a);Object.assign(s.style,{height:`${e.height}px`,opacity:`0.85`,transform:`translate3d(${e.left}px, ${e.top}px, 0)`,width:`${e.width}px`}),Rt(s),R.current=s,z.current={x:i.clientX-e.left,y:i.clientY-e.top};let c=e=>{let t=e.touches[0];if(t==null)return;e.preventDefault();let n=z.current;n!=null&&R.current!=null&&(R.current.style.transform=`translate3d(${t.clientX-n.x}px, ${t.clientY-n.y}px, 0)`),Vt(Bt(t.clientX,t.clientY)),Ut(t.clientX,t.clientY)},l=e=>{let n=e.changedTouches[0];n!=null&&Bt(n.clientX,n.clientY),t.completeDrag(),zt()},u=()=>{t.cancelDrag(),zt()};ie.current=()=>{document.removeEventListener(`touchmove`,c),document.removeEventListener(`touchend`,l),document.removeEventListener(`touchcancel`,u)},document.addEventListener(`touchmove`,c,{passive:!1}),document.addEventListener(`touchend`,l),document.addEventListener(`touchcancel`,u)},sU)},qt=e=>{if(U!=null){if(e.key===`Escape`){Dt(),e.preventDefault(),e.stopPropagation();return}wU.has(e.key)&&(e.preventDefault(),e.stopPropagation());return}if(Xe.isActive()){if(e.isComposing||e.keyCode===229)return;if(e.key===`Escape`)Xe.cancel();else if(e.key===`Enter`)Xe.commit();else return;ge(`focus`),H(e=>e+1),e.preventDefault(),e.stopPropagation();return}if(l&&e.key===`F2`){At(W??void 0),e.preventDefault(),e.stopPropagation();return}if($e){if(e.key===`Escape`)N.current=!1,P.current=null,t.closeSearch();else if(e.key===`Enter`){let e=t.getFocusedPath();e!=null&&t.selectOnlyPath(e);let n=C.current,r=_H(n,pt);P.current=tt<0||n==null?null:Math.max(0,Math.min(tt*s-n.scrollTop,Math.max(0,r-s))),N.current=!0,t.closeSearch()}else if(e.key===`ArrowDown`)t.focusNextSearchMatch();else if(e.key===`ArrowUp`)t.focusPreviousSearchMatch();else return;ge(`focus`),H(e=>e+1),e.preventDefault(),e.stopPropagation();return}if(f&&bU(e)){t.openSearch(e.key),H(e=>e+1),e.preventDefault(),e.stopPropagation();return}let n=ze&&SU(e),r=CU(e,ze),i=r&&S.current!=null?gH(S.current):null,a=r?new Set(jU(S.current)):new Set,o=i?.dataset.fileTreeStickyPath??null,c=i?.dataset.fileTreeStickyRow===`true`&&o!=null;if(c&&o!==W&&a.has(o)){let e=C.current;Oe(o,e?.scrollTop??null),t.focusPath(o)}let u=t.getFocusedPath(),d=t.getFocusedIndex(),p=t.getFocusedItem();if(p==null)return;let m=vU(p)?p:null,h=u!=null&&(yt.has(u)||c&&o===u&&a.has(u)),g=e.key===`ArrowDown`||e.key===`ArrowUp`||e.key===`ArrowRight`&&m!=null&&m.isExpanded(),_=e.key===`ArrowLeft`&&h&&m!=null&&m.isExpanded(),v=C.current,y=!0;if(e.shiftKey&&e.key===`ArrowDown`)t.extendSelectionFromFocused(1);else if(e.shiftKey&&e.key===`ArrowUp`)t.extendSelectionFromFocused(-1);else if(n&&u!=null&&d>=0){let e=t.getVisibleRows(d,d)[0]??null,n=AU(u,E.current,T.current);e==null||n==null?y=!1:kt(e,u)}else if((e.ctrlKey||e.metaKey)&&yU(e))t.toggleFocusedSelection();else if((e.ctrlKey||e.metaKey)&&e.key.toLowerCase()===`a`)t.selectAllVisiblePaths();else switch(e.key){case`ArrowDown`:t.focusNextItem();break;case`ArrowUp`:t.focusPreviousItem();break;case`ArrowRight`:m==null||m.isExpanded()?t.focusNextItem():m.expand();break;case`ArrowLeft`:m!=null&&m.isExpanded()?m.collapse():t.focusParentItem();break;case`Home`:t.focusFirstItem();break;case`End`:t.focusLastItem();break;default:y=!1}if(!y)return;ge(`focus`);let b=t.getFocusedPath(),x=b!=null&&(yt.has(b)||a.has(b)),w=g&&b!==u,ee=n&&c&&o===u&&b===u;if((h||ee)&&b!=null&&(w&&x||ee))Oe(b,v?.scrollTop??null),A.current=!0,ue(e=>e===b?e:b);else{let t=e.key===`ArrowUp`&&h&&b!==u;b!=null&&(t||_&&b===u)?(ke(b,NU(S.current,v,i,u,s,vt,pt)),A.current=!0,ue(e=>e===b?e:b)):De()}H(e=>e+1),e.preventDefault(),e.stopPropagation()};KH(()=>{if(f&&$e){if(Ae.current){Ae.current=!1;return}hH(w.current)}},[$e,f]),KH(()=>{let e=x.current;switch(wH({hasRenderedInput:e!=null,previousRenamingPath:M.current,renamingPath:Ze})){case`reset`:M.current=null;return;case`reveal-canonical`:Ze!=null&&jt(Ze,{restoreTreeFocus:!1,targetOffset:`live-overlay`});return;case`ignore`:return;case`focus-input`:e!=null&&(xe.current=null,M.current=Ze,hH(e),e.select());return}},[mt.end,mt.start,Ze,jt,yt]),KH(()=>{let e=S.current;if(e==null)return;let t=null,n=()=>{t!=null&&(clearTimeout(t),t=null)},r=()=>{let t=gH(e)?.dataset.itemPath??null;ue(e=>e===t?e:t)},i=()=>{n(),A.current=!0,r()},a=i=>{let a=i.relatedTarget;if(a==null){n(),t=setTimeout(()=>{if(t=null,gH(e)!=null){r();return}A.current=!1,ue(null)},0);return}if(!(a instanceof Node)||!e.contains(a)){n(),A.current=!1,ue(null);return}let o=a instanceof HTMLElement?a.dataset.itemPath??null:null;ue(e=>e===o?e:o)};return e.addEventListener(`focusin`,i),e.addEventListener(`focusout`,a),()=>{n(),e.removeEventListener(`focusin`,i),e.removeEventListener(`focusout`,a)}},[]),KH(()=>{let e=S.current;e!=null&&(dt.physical.scrollTop<=0?e.dataset.scrollAtTop=`true`:delete e.dataset.scrollAtTop)},[dt.physical.scrollTop]),KH(()=>{let e=null,n=C.current,r=b.current,i=S.current;if(n==null)return;D.current=_H(n,g);let a=()=>{let e=t.getVisibleCount(),r=vH(D.current,g),i=Math.max(0,e*s-r);n.scrollTop>i&&(n.scrollTop=i),Ie(oU({controller:t,itemHeight:s,overscan:c,scrollTop:Math.min(n.scrollTop,i),stickyFolders:h,viewportHeight:r}))};if(!k.current){k.current=!0;let e=t.getFocusedIndex();if(e>=0){let r=vH(D.current,g),i=t.getVisibleRows(e,e)[0]??null;bH(n,e,s,r,h&&i!=null?Math.max(0,Math.min(i.ancestorPaths.length*s,Math.max(0,r-s))):0)}}ee.current=a;let o=t.subscribe(()=>{dH(ce)&&H(e=>e+1),a()}),l=()=>{Ee.current!==!0&&(r!=null&&(r.dataset.isScrolling??=``),i!=null&&(i.dataset.isScrolling??=``),y.current=!0,e!=null&&clearTimeout(e),e=setTimeout(()=>{r!=null&&delete r.dataset.isScrolling,i!=null&&delete i.dataset.isScrolling,y.current=!1,ve(e=>e+1),e=null},50))},u=null,d=()=>{i!=null&&delete i.dataset.overlayReveal,u!=null&&(clearTimeout(u),u=null)},f=()=>{i!=null&&Ee.current!==!0&&(n.scrollTop>0||(i.dataset.overlayReveal=`true`,u!=null&&clearTimeout(u),u=setTimeout(()=>{d()},200)))},p=()=>{if(a(),n.scrollTop>0&&d(),be.current!=null&&y.current&&Et.current(),Ee.current===!0){y.current=!1;return}fe(e=>e==null?e:null),l()},m=()=>{l(),f()},_=new Set([`ArrowUp`,`ArrowDown`,`ArrowLeft`,`ArrowRight`,`PageUp`,`PageDown`,`Home`,`End`,` `,`Spacebar`]),v=e=>{_.has(e.key)&&m()};n.addEventListener(`scroll`,p,{passive:!0}),n.addEventListener(`wheel`,m,{passive:!0}),n.addEventListener(`touchmove`,m,{passive:!0}),n.addEventListener(`keydown`,v);let x=typeof ResizeObserver<`u`?new ResizeObserver(e=>{D.current=(e[0]==null?null:yH(e[0]))??_H(n,g),a()}):null;return x?.observe(n),()=>{ee.current=()=>{},o(),n.removeEventListener(`scroll`,p),n.removeEventListener(`wheel`,m),n.removeEventListener(`touchmove`,m),n.removeEventListener(`keydown`,v),e!=null&&clearTimeout(e),u!=null&&clearTimeout(u),r!=null&&delete r.dataset.isScrolling,i!=null&&(delete i.dataset.isScrolling,delete i.dataset.overlayReveal),y.current=!1,D.current=null,x?.disconnect()}},[t,g,s,c,h]),KH(()=>{ze||U==null||Dt(!1)},[Dt,ze,U]);let Jt=qH(()=>U==null?null:`${U.path}::${U.source}`,[U]);KH(()=>{if(Jt==null){m?.clearSlotContent(VF);return}let t=be.current;if(t==null)return;let n=v.current??_.current;if(n==null)return;let r={anchorElement:n,anchorRect:t.anchorRect??EU(n.getBoundingClientRect()),close:e=>{Et.current(e?.restoreFocus??!0)},restoreFocus:()=>{Tt.current&&wt.current(be.current?.path??null)}},i=e?.contextMenu?.render?.(t.item,r)??null;return m?.setSlotContent(VF,i),e?.contextMenu?.onOpen?.(t.item,r),zU(i),queueMicrotask(()=>{i!=null&&i.isConnected&&document.activeElement===i&&zU(i)}),()=>{m?.clearSlotContent(VF)}},[Jt,e?.contextMenu,m]),KH(()=>{U!=null&&t.getItem(U.path)==null&&Dt()},[Dt,U,t]),KH(()=>{if(U==null)return;let e=S.current?.getRootNode(),t=e instanceof ShadowRoot?e.host:S.current,n=e=>{let n=e.target;n instanceof Node&&(TU(e)||_.current?.contains(n)!==!0&&t?.contains(n)!==!0&&Dt())},r=e=>{e.key===`Escape`&&(e.preventDefault(),e.stopPropagation(),Dt())};return document.addEventListener(`mousedown`,n,!0),document.addEventListener(`keydown`,r,!0),()=>{document.removeEventListener(`mousedown`,n,!0),document.removeEventListener(`keydown`,r,!0)}},[Dt,U]),KH(()=>{let e=C.current,n=S.current;if(e==null||n==null){j.current=W;return}let r=W==null?null:T.current.get(W)??null,i=gH(n),a=i?.dataset.itemPath??null,o=Qe&&x.current===i,c=f&&w.current===i,l=N.current&&!$e,u=P.current??0,d=xe.current,p=Se.current,m=Ce.current,g=we.current,_=i!=null,v=A.current||_,y=j.current!==W,b=p!=null&&p===W&&W!=null,E=!1,D=!1;if(nt!=null&&nt.id!==O.current){O.current=nt.id;let n=nt.visibleIndex,r=t.getVisibleRows(n,n)[0]??null;if(r!=null){let t=h?Math.max(0,Math.min(r.ancestorPaths.length*s,Math.max(0,pt-s))):vt;E=!0,D=xH(e,n,s,pt,_t,nt.offset,t)}t.clearScrollRequest(nt.id)}let k=!E&&l&&SH(e,tt,s,pt,_t,u),te=!E&&d!=null&&d===W&&SH(e,tt,s,pt,_t,vt),M=!E&&m!=null&&m.path===W&&SH(e,tt,s,pt,_t,m.viewportOffset),F=!E&&g!=null&&g.path===W&&e.scrollTop!==g.scrollTop;if(F&&(e.scrollTop=g.scrollTop),(F||D||te||M||k||v&&y&&d!==W&&!b&&bH(e,tt,s,pt,vt))&&ee.current(),E){j.current=W;return}if(!v){j.current=W;return}if(o){j.current=W;return}if(c&&!l){j.current=W;return}if(r==null){l&&tt>=0&&(SH(e,tt,s,pt,_t,u),ee.current()),j.current=W;return}(y||l||d===W||p===W||m?.path===W||g?.path===W||a==null||a!==W)&&(hH(r),d===W&&(xe.current=null),p===W&&(Se.current=null),m?.path===W&&(Ce.current=null),g?.path===W&&(we.current=null),N.current=!1,P.current=null),j.current=W},[t,tt,W,bt,s,Qe,$e,mt,pt,f,nt,h,vt,_t,ft]);let Yt=tt>=0&&tt>=dt.visible.startIndex&&tt<=dt.visible.endIndex,Xt=W!=null&&ht.some(e=>rU(e.row)===W),Zt=Yt||Xt,Qt=Ve&&A.current===!0&&Zt?W:null,$t=he===`pointer`?de:null,en=U?.path??Te.current??$t??Qt??de,tn=U?.source===`right-click`;KH(()=>{y.current&&U==null||Ot(qe(en))},[U,qe,mt,pt,_e,ht,en,Ot,ft]);let nn=JH(e=>{if(y.current||TU(e))return;let t=e.target;if(!(t instanceof HTMLElement)||t.closest?.(`[data-type="context-menu-trigger"]`)!=null)return;let n=t.closest?.(`[data-file-tree-sticky-row="true"]`),r=t.closest?.(`[data-type="item"]`),i=n instanceof HTMLElement?n.dataset.fileTreeStickyPath??null:r instanceof HTMLElement?r.dataset.itemPath??null:null;i!=null&&ge(e=>e===`pointer`?e:`pointer`),fe(e=>e===i?e:i)},[]),rn=JH(()=>{fe(null)},[]);KH(()=>{if(!rt)return;let e=()=>{zt(),t.cancelDrag()};return window.addEventListener(`dragend`,e),()=>{window.removeEventListener(`dragend`,e),zt(),t.cancelDrag()}},[t,rt]);let an=e=>{if(!rt||t.getDragSession()==null||ae.current)return;let n=fU(e.target instanceof HTMLElement?e.target:null);t.setDragTarget(n),Vt(t.getDragSession()?.target??null),Ut(e.clientX,e.clientY),e.dataTransfer!=null&&(e.dataTransfer.dropEffect=`move`),e.preventDefault()},on=e=>{if(!rt||t.getDragSession()==null||ae.current)return;let n=e.relatedTarget;n instanceof Node&&S.current?.contains(n)===!0||(Ft(),Lt(),t.setDragTarget(null))},sn=e=>{rt&&t.getDragSession()!=null&&!ae.current&&(e.preventDefault(),Bt(e.clientX,e.clientY),t.completeDrag(),It(),Ft(),Lt(),re.current=null)},cn=dt.window.height,ln=dt.window.offsetTop,un=Math.min(0,pt-cn),dn=Math.min(0,pt-cn-vt),fn=le===W||N.current,pn=W!=null&&fn&&!bt&&tt>=0?ft[tt]??t.getVisibleRows(tt,tt)[0]??null:null,mn=pn==null?null:CH(tt,s,mt,cn),hn=re.current,gn=st!=null&&hn!=null&&hn.path===st&&hn.index>=mt.start&&hn.index<=mt.end,_n=st!=null&&hn!=null&&hn.path===st&&!gn&&hn.path!==pn?.path?hn:null,vn=_n==null?null:CH(_n.index,s,mt,cn),yn=xU((tt>=0?ft[tt]??t.getVisibleRows(tt,tt)[0]??null:null)?.ancestorPaths.at(-1)??null),bn=$e&&W!=null?IU(o,W,!bt):void 0,xn=U?.path??($e?W:le),Sn=U?.path??de,Cn=qe(en),wn=ze&&Ve&&!tn&&!Qe&&Cn!=null&&pe!=null&&en!=null,Tn=ze&&(wn||U!=null),En=U?.anchorRect,Dn=En==null&&Cn!=null&&pe!=null&&(U!=null||wn)?pe:null,On=En==null?Dn==null?void 0:{top:`${Dn}px`}:{left:`${En.left}px`,position:`fixed`,right:`auto`,top:`${En.top}px`},kn=tn?{opacity:`0`}:void 0,An=JH((e,n,r,i)=>{let a=DH({event:{ctrlKey:e.ctrlKey,metaKey:e.metaKey,shiftKey:e.shiftKey},isDirectory:n.kind===`directory`,isSearchOpen:$e,mode:i}),o=a.toggleDirectory&&n.kind===`directory`,s=o?t.resolveMountedDirectoryPathFromInput(r):null;if(o&&s==null)return;let c=s??r;switch(a.selection.kind){case`range`:t.selectPathRange(c,a.selection.additive);break;case`toggle`:t.togglePathSelectionFromInput(c);break;case`single`:t.selectOnlyMountedPathFromInput(c)}let l=e.currentTarget instanceof HTMLElement?e.currentTarget:null,u=n.index>=dt.visible.startIndex&&n.index<=dt.visible.endIndex,d=i===`flow`&&u&&l!=null&&l.dataset.itemParked!==`true`;t.focusMountedPathFromInput(c),d&&(A.current=!0,ue(e=>e===c?e:c),ge(`focus`)),o&&t.toggleMountedDirectoryFromInput(c),a.closeSearch&&t.closeSearch(),a.revealCanonical&&jt(c,{targetOffset:`sticky-parents`})},[t,$e,dt.visible.endIndex,dt.visible.startIndex,jt]),jn=()=>{if(y.current||!Ve||en==null||Cn==null)return;let e=t.getItem(en);e!=null&&(Ot(Cn),Tt.current=!0,ye({anchorRect:null,item:{kind:e.isDirectory()?`directory`:`file`,name:Cn.getAttribute(`aria-label`)??en,path:e.getPath()},path:e.getPath(),source:`button`}))},Mn={contextHoverPath:Sn,contextMenuButtonTriggerEnabled:Ve,contextMenuButtonVisibility:He,contextMenuEnabled:ze,contextMenuRightClickEnabled:Ue,contextMenuTriggerMode:Be,controller:t,directoriesWithGitChanges:i,dragAndDropEnabled:rt,draggedPathSet:at,dragTarget:ot,gitLaneActive:Je,gitStatusByPath:n,handleRowDragEnd:Gt,handleRowDragStart:Wt,handleRowTouchStart:Kt,ignoredGitDirectories:r,ignoredInheritanceCache:V,instanceId:o,itemHeight:s,onKeyDown:qt,onRowClick:An,openContextMenuForRow:kt,registerButton:We,registerRenameInput:Ke,renameView:Xe,renderDecorationForRow:xt,resolveIcon:Ye,shouldSuppressContextMenu:Mt,visualFocusPath:xn},Nn={...Mn,registerButton:Ge};return Q(`div`,{ref:S,id:ct,"data-file-tree-context-menu-button-visibility":ze&&Ve?He:void 0,"data-file-tree-context-menu-trigger-mode":ze?Be:void 0,"data-file-tree-has-context-menu-action-lane":ze&&Ve?`true`:void 0,"data-file-tree-has-git-lane":Je?`true`:void 0,"data-file-tree-virtualized-root":`true`,onDragLeave:rt?on:void 0,onDragOver:rt?an:void 0,onDrop:rt?sn:void 0,onKeyDown:qt,onPointerLeave:ze?rn:void 0,onPointerOver:ze?nn:void 0,role:`tree`,tabIndex:-1,style:{outline:`none`,position:`relative`},children:[Q(`style`,{"data-file-tree-guide-style":`true`,dangerouslySetInnerHTML:{__html:yn}}),Q(`slot`,{name:BF,"data-type":`header-slot`}),f?Q(`div`,{"data-file-tree-search-container":!0,"data-open":$e?`true`:`false`,children:Q(`input`,{ref:w,"aria-activedescendant":bn,"aria-controls":ct,placeholder:`Search…`,"data-file-tree-search-input":!0,"data-file-tree-search-input-fake-focus":je?`true`:void 0,value:et,onBlur:()=>{(d!==`retain`||Ne.current)&&t.closeSearch()},onFocus:Pe,onPointerDown:Pe,onInput:e=>{Pe();let n=e.currentTarget;t.setSearch(n.value)}})}):null,Q(`div`,{ref:C,"data-file-tree-virtualized-scroll":`true`,children:[h&&Le&&ht.length>0?Q(`div`,{"aria-hidden":`true`,"data-file-tree-sticky-overlay":`true`,children:Q(`div`,{"data-file-tree-sticky-overlay-content":`true`,style:{height:`${lt}px`},children:ht.map((e,t)=>VU(Nn,e.row,`sticky:${rU(e.row)}`,{mode:`sticky`,style:{left:`0`,position:`absolute`,right:`0`,top:`${e.top}px`,zIndex:`${ht.length-t}`}}))})}):null,Q(`div`,{ref:b,"data-file-tree-virtualized-list":`true`,style:{height:`${_t}px`},children:[Q(`div`,{"data-file-tree-virtualized-sticky-offset":`true`,"aria-hidden":`true`,style:{height:`${ln}px`}}),Q(`div`,{"data-file-tree-virtualized-sticky":`true`,style:{height:`${cn}px`,top:`${un}px`,bottom:`${dn}px`},children:[HU(Mn,mt,yt),pn!=null&&mn!=null?VU(Mn,pn,`parked:${pn.path}`,{isParked:!0,style:{left:`0`,opacity:`0`,pointerEvents:st===pn.path?`none`:void 0,position:`absolute`,right:`0`,top:`${mn}px`}}):null,_n!=null&&vn!=null?VU(Mn,_n,`parked-drag:${_n.path}`,{isParked:!0,style:{left:`0`,opacity:`0`,pointerEvents:`none`,position:`absolute`,right:`0`,top:`${vn}px`}}):null]})]})]}),ze?Q(`div`,{ref:_,"data-type":`context-menu-anchor`,"data-visible":Tn?`true`:`false`,style:On,children:[Q(`button`,{ref:v,type:`button`,"data-type":HF,"aria-label":`Options`,"aria-haspopup":`menu`,"aria-expanded":U==null?`false`:`true`,"data-visible":wn?`true`:`false`,onMouseDown:e=>{e.preventDefault()},onClick:e=>{if(e.preventDefault(),e.stopPropagation(),U!=null){Dt();return}jn()},tabIndex:-1,style:kn,children:Q(PV,{...Ye(`file-tree-icon-ellipsis`)})}),U==null?null:Q(`slot`,{name:VF})]}):null,U==null?null:Q(`div`,{"data-type":`context-menu-wash`,"aria-hidden":`true`,onMouseDownCapture:e=>{e.preventDefault(),Dt()},onTouchStartCapture:e=>{e.preventDefault(),e.stopPropagation(),Dt()},onTouchMoveCapture:e=>{e.preventDefault(),e.stopPropagation()},onWheelCapture:e=>{e.preventDefault(),e.stopPropagation()}})]})}var WU={hydrateRoot:(e,t)=>{kV(aV(UU,t),e)},renderRoot:(e,t)=>{OV(aV(UU,t),e)},unmountRoot:e=>{OV(null,e)}};function GU(e,t){WU.renderRoot(e,t)}function KU(e,t){WU.hydrateRoot(e,t)}function qU(e){WU.unmountRoot(e)}var JU=class{#e=new Map;#t=null;clearAll(){for(let e of this.#e.values())e.remove();this.#e.clear()}clearSlotContent(e){let t=this.#n(e);t!=null&&(t.remove(),this.#e.delete(e))}setHost(e){if(this.#t=e,e!=null){this.#i(e);for(let[e,t]of this.#e)this.#r(e,t)}}setSlotContent(e,t){let n=this.#n(e);if(n===t){t!=null&&(this.#e.set(e,t),this.#r(e,t));return}if(n?.remove(),t==null){this.#e.delete(e);return}this.#e.set(e,t),this.#r(e,t)}setSlotHtml(e,t){let n=t?.trim()??``;if(n.length===0){this.setSlotContent(e,null);return}let r=this.#n(e);if(r!=null&&r.innerHTML===n){this.#e.set(e,r),this.#r(e,r);return}let i=document.createElement(`div`);i.innerHTML=n,this.setSlotContent(e,i)}#n(e){let t=this.#e.get(e)??null;if(t!=null)return t;let n=this.#t;if(n==null)return null;for(let t of Array.from(n.children))if(t instanceof HTMLElement&&t.dataset.fileTreeManagedSlot===e)return t;return null}#r(e,t){t.slot=e,t.dataset.fileTreeManagedSlot=e,this.#t!=null&&t.parentNode!==this.#t&&this.#t.appendChild(t)}#i(e){for(let t of Array.from(e.children)){if(!(t instanceof HTMLElement))continue;let e=t.dataset.fileTreeManagedSlot;e==null||this.#e.has(e)||this.#e.set(e,t)}}};function YU(e,t,n){if(!e.s){if(n instanceof XU){if(!n.s)return void(n.o=YU.bind(null,e,t));1&t&&(t=n.s),n=n.v}if(n&&n.then)return void n.then(YU.bind(null,e,t),YU.bind(null,e,2));e.s=t,e.v=n;let r=e.o;r&&r(e)}}var XU=function(){function e(){}return e.prototype.then=function(t,n){var r=new e,i=this.s;if(i){var a=1&i?t:n;if(a){try{YU(r,1,a(this.v))}catch(e){YU(r,2,e)}return r}return this}return this.o=function(e){try{var i=e.v;1&e.s?YU(r,1,t?t(i):i):n?YU(r,1,n(i)):YU(r,2,i)}catch(e){YU(r,2,e)}},r},e}();Array.isArray;var ZU=0;function QU(e){return e!=null&&e.length>0?e:(ZU+=1,`pst_ft_${ZU}`)}function $U({initialVisibleRowCount:e,itemHeight:t}){return e==null?420:Math.max(0,e)*(t??Mz)}function eW(e){if(typeof document>`u`)return;let t=document.createElement(`div`);t.innerHTML=e;let n=t.querySelector(`svg`);return n instanceof SVGElement?n:void 0}function tW(e){return e.querySelector(`#file-tree-icon-chevron`)instanceof SVGElement&&e.querySelector(`#file-tree-icon-file`)instanceof SVGElement&&e.querySelector(`#file-tree-icon-dot`)instanceof SVGElement&&e.querySelector(`#file-tree-icon-lock`)instanceof SVGElement}function nW(e){return Array.from(e.children).filter(e=>e instanceof SVGElement)}var rW=class{static LoadedCustomComponent=!0;#e;#t;#n;#r;#i;#a;#o;#s;#c;#l=new JU;#u;#d;#f;#p;#m;#h;#g;#_;#v;#y=null;#b;#x=!1;#S=!1;constructor(e){let{composition:t,density:n,fileTreeSearchMode:r,gitStatus:i,id:a,initialSearchQuery:o,icons:s,itemHeight:c,onSearchChange:l,onSelectionChange:u,overscan:d,renderRowDecoration:f,renaming:p,search:m,searchBlurBehavior:h,searchFakeFocus:g,stickyFolders:_,unsafeCSS:v,initialVisibleRowCount:y,...b}=e;this.#e=t,this.#n=QU(a),this.#p=PB(i),this.#m=s,this.#h=v,this.#r=u,this.#i=f,this.#a=p!=null&&p!==!1,this.#o=h,this.#s=m===!0,this.#c=g===!0,this.#u=jz(n,c),this.#d={itemHeight:this.#u.itemHeight,overscan:d,stickyFolders:_,initialVisibleRowCount:y},this.#t=new kB({...b,fileTreeSearchMode:r,initialSearchQuery:o,onSearchChange:l,renaming:p}),this.#v=this.#t.getSelectionVersion(),this.#y=this.#r==null?null:this.subscribe(()=>{this.#D()})}unmount(){this.#b!=null&&(qU(this.#b),delete this.#b.dataset.fileTreeVirtualizedWrapper,this.#b=void 0),this.#l.clearAll(),this.#l.setHost(null),this.#f!=null&&(delete this.#f.dataset.fileTreeVirtualized,this.#I(this.#f),this.#f=void 0)}cleanUp(){this.unmount(),this.#y?.(),this.#y=null,this.#t.destroy()}getFileTreeContainer(){return this.#f}getItem(e){return this.#t.getItem(e)}getFocusedItem(){return this.#t.getFocusedItem()}getFocusedPath(){return this.#t.getFocusedPath()}getFocusedIndex(){return this.#t.getFocusedIndex()}getVisibleCount(){return this.#t.getVisibleCount()}getVisibleRows(e,t){return this.#t.getVisibleRows(e,t)}getSelectedPaths(){return this.#t.getSelectedPaths()}getComposition(){return this.#e}getItemHeight(){return this.#u.itemHeight}getDensityFactor(){return this.#u.factor}subscribe(e){let t=!1;return this.#t.subscribe(()=>{if(!t){t=!0;return}e()})}focusPath(e){this.#t.focusPath(e)}focusFirstItem(){this.#t.focusFirstItem()}focusLastItem(){this.#t.focusLastItem()}focusNextItem(){this.#t.focusNextItem()}focusPreviousItem(){this.#t.focusPreviousItem()}focusParentItem(){this.#t.focusParentItem()}scrollToPath(e,t){this.#t.scrollToPath(e,t)}focusNearestPath(e){return this.#t.focusNearestPath(e)}add(e){this.#t.add(e)}batch(e){this.#t.batch(e)}applyGitStatusPatch(e){let t=FB(this.#p,e);if(t===this.#p)return;this.#p=t;let n=this.#T();n!=null&&GU(n.wrapper,this.#w())}move(e,t,n){this.#t.move(e,t,n)}onMutation(e,t){return this.#t.onMutation(e,t)}setSearch(e){this.#t.setSearch(e)}openSearch(e){this.#t.openSearch(e)}closeSearch(){this.#t.closeSearch()}isSearchOpen(){return this.#t.isSearchOpen()}getSearchValue(){return this.#t.getSearchValue()}getSearchMatchingPaths(){return this.#t.getSearchMatchingPaths()}focusNextSearchMatch(){this.#t.focusNextSearchMatch()}focusPreviousSearchMatch(){this.#t.focusPreviousSearchMatch()}startRenaming(e,t){return this.#t.startRenaming(e,t)}remove(e,t){this.#t.remove(e,t)}resetPaths(e,t){Array.isArray(e)?this.#t.resetPaths(e,t):this.#t.resetPaths(e)}setComposition(e){this.#e=e;let t=this.#T();t!=null&&(this.#O(),GU(t.wrapper,this.#w()))}setGitStatus(e){let t=PB(e,this.#p);if(t===this.#p)return;this.#p=t;let n=this.#T();n!=null&&GU(n.wrapper,this.#w())}setIcons(e){this.#m=e;let t=this.#T();t!=null&&(this.#E(t.host,t.wrapper),GU(t.wrapper,this.#w()))}hydrate({fileTreeContainer:e}){let t=this.#P(e),n=this.#N(t);this.#O(),KU(n,this.#w())}render({containerWrapper:e,fileTreeContainer:t}){let n=this.#P(t??this.#f,e),r=this.#N(n);this.#O(),GU(r,this.#w())}#C(){return{initialViewportHeight:$U({initialVisibleRowCount:this.#d.initialVisibleRowCount,itemHeight:this.#d.itemHeight}),itemHeight:this.#d.itemHeight,overscan:this.#d.overscan,stickyFolders:this.#d.stickyFolders}}#w(){return{composition:this.#e,controller:this.#t,gitStatusByPath:this.#p?.statusByPath,ignoredGitDirectories:this.#p?.ignoredDirectoryPaths,directoriesWithGitChanges:this.#p?.directoriesWithChanges,icons:this.#m,instanceId:this.#n,renamingEnabled:this.#a,renderRowDecoration:this.#i,searchBlurBehavior:this.#o,searchEnabled:this.#s,searchFakeFocus:this.#c,slotHost:this.#l,...this.#C()}}#T(){let e=this.#f,t=this.#b;return e==null||t==null?null:{host:e,wrapper:t}}#E(e,t){let n=e.shadowRoot;n!=null&&(this.#k(n),this.#A(n)),this.#j(t)}#D(){let e=this.#r;if(e==null)return;let t=this.#t.getSelectionVersion();t!==this.#v&&(this.#v=t,e(this.#t.getSelectedPaths()))}#O(){let e=this.#e?.header?.render;if(e!=null){this.#l.setSlotContent(BF,e());return}this.#l.setSlotHtml(BF,this.#e?.header?.html??null)}#k(e){let t=nW(e).find(e=>tW(e)),n=eW(AF(WF(this.#m).set));n!=null&&(t==null||t.outerHTML!==n.outerHTML)&&(t==null?e.prepend(n):t.replaceWith(n))}#A(e){let t=nW(e),n=t.find(e=>tW(e)),r=t.filter(e=>e!==n),i=WF(this.#m).spriteSheet?.trim()??``;if(i.length===0){for(let e of r)e.remove();return}let a=eW(i);if(a==null){for(let e of r)e.remove();return}if(r.length!==1||r[0].outerHTML!==a.outerHTML){for(let e of r)e.remove();e.appendChild(a)}}#j(e){let t=WF(this.#m);t.colored&&MF(t.set)?e.dataset.fileTreeColoredIcons=`true`:delete e.dataset.fileTreeColoredIcons}#M(e){let t=e.querySelector(`style[${IF}]`);if(this.#g==null&&t instanceof HTMLStyleElement&&(this.#g=t),this.#h==null||this.#h===``){this.#g?.remove(),this.#g=void 0,this.#_=void 0;return}(this.#g?.parentNode!==e||this.#_!==this.#h)&&(this.#g??=document.createElement(`style`),this.#g.setAttribute(IF,``),this.#g.parentNode!==e&&e.appendChild(this.#g),this.#g.textContent=Iz(this.#h),this.#_=this.#h)}#N(e){if(this.#b!=null)return this.#b;let t=e.shadowRoot;if(t==null)throw Error(`FileTree requires a shadow root`);let n=Array.from(t.children).filter(e=>e instanceof HTMLDivElement&&typeof e.dataset.fileTreeId==`string`&&e.dataset.fileTreeId.length>0),r=n.find(e=>e.dataset.fileTreeId===this.#n)??n[0];return r!=null&&(this.#n=r.dataset.fileTreeId??this.#n),this.#b=r??document.createElement(`div`),this.#b.dataset.fileTreeId=this.#n,this.#b.dataset.fileTreeVirtualizedWrapper=`true`,this.#E(e,this.#b),this.#b.parentNode!==t&&t.appendChild(this.#b),this.#b}#P(e,t){let n=e??this.#f??document.createElement(`file-tree-container`);t!=null&&n.parentNode!==t&&t.appendChild(n);let r=n.shadowRoot??n.attachShadow({mode:`open`});return Hz(n,r),this.#M(r),n.dataset.fileTreeVirtualized=`true`,n.style.display=`flex`,this.#F(n),this.#l.setHost(n),this.#f=n,n}#F(e){e.style.getPropertyValue(`--trees-item-height`)===``&&(e.style.setProperty(`--trees-item-height`,`${String(this.#u.itemHeight)}px`),this.#x=!0),e.style.getPropertyValue(`--trees-density-override`)===``&&(e.style.setProperty(`--trees-density-override`,String(this.#u.factor)),this.#S=!0)}#I(e){this.#x&&=(e.style.removeProperty(`--trees-item-height`),!1),this.#S&&=(e.style.removeProperty(`--trees-density-override`),!1)}},iW=new Set([`/`,`.`,`-`,`_`,` `]);function aW(e,t){if(t===0)return!0;let n=e[t-1];if(iW.has(n))return!0;let r=e[t];return r!==r.toLowerCase()&&n===n.toLowerCase()}function oW(e,t,n){let r=0;for(let i=0;i<t.length;i++){let a=t[i];r+=1,aW(e,a)&&(r+=8),i&&t[i-1]===a-1?r+=6:i&&(r-=Math.min(4,a-t[i-1]-1)),a>=n&&(r+=3),a===n&&(r+=6)}return r}function sW(e,t,n){let r=0,i=-1;for(let a=n;a<t.length;a++)if(t[a]===e[r]&&++r===e.length){i=a;break}if(i<0)return null;let a=[];r=e.length-1;for(let o=i;o>=n&&r>=0;o--)t[o]===e[r]&&(a.push(o),r--);return a.reverse()}function cW(e,t,n,r){let i=[],a=r;for(let r=0;r<e.length;r++){let o=i[i.length-1];if(o!=null&&n[o+1]===e[r]){i.push(o+1);continue}let s=a;for(;s<n.length&&!(n[s]===e[r]&&aW(t,s));)s++;if(s>=n.length)return null;i.push(s),a=s+1}return i}function lW(e,t,n,r,i){let a=sW(e,n,r);if(!a)return null;let o=cW(e,t,n,r),s=oW(t,a,i),c=o?oW(t,o,i):-1/0;return c>s?{score:c,hits:o}:{score:s,hits:a}}function uW(e,t,n,r){for(let i=t.indexOf(n,r);i!==-1;i=t.indexOf(n,i+1))if(aW(e,i))return!0;return!1}function dW(e,t){let n=e.split(/\s+/).filter(Boolean);if(!n.length)return{score:0,hits:[]};let r=t.toLowerCase(),i=fW(t),a=0,o=new Set;for(let e of n){let n=e.toLowerCase(),s=lW(n,t,r,i,i),c=s??lW(n,t,r,0,i);if(!c)return null;s&&uW(t,r,n,i)&&(a+=20),r.slice(i).replace(/\/$/,``)===n&&(a+=30),a+=c.score;for(let e of c.hits)o.add(e)}return a-=t.length/100,{score:a,hits:[...o].sort((e,t)=>e-t)}}function fW(e){return e.lastIndexOf(`/`,e.length-2)+1}function pW(e){let t=e.match(/^(.*?):(\d+)(?::\d+)?\s*$/);return t?{query:t[1],line:Number(t[2])}:{query:e,line:0}}function mW(e,t,n,r){let i=[];for(let r of e){let e=dW(n,t(r));e&&i.push({item:r,match:e})}return i.sort((e,n)=>n.match.score-e.match.score||t(e.item).localeCompare(t(n.item))),i.slice(0,r)}var hW=Gt,gW=(e=>`/${e}&`)(` b`),_W=60;function vW(e,t,n,r){let i=[],a=new Set(t);for(let t=n;t<r;t++){let n=a.has(t),r=i[i.length-1];r&&r.hit===n?r.text+=e[t]:i.push({text:e[t],hit:n})}return i}var yW=T(0,1,e=>F(e.a,e._.e)),bW=yW,xW=T(0,0,e=>F(e.b,e._.e)),SW=j(0,`<mark> </mark>`,` D `,e=>{xW._(e),I(e.a,`_no`)},` `,` `,bW),CW=(e,t)=>SW(e,+!t),wW=(e,t)=>{CW(e,t[0]?.hit),TW(e,t[0]?.text)},TW=L(4,e=>{xW(e),yW(e)}),EW=T(0,1,e=>F(e.a,e._.e)),DW=EW,OW=T(0,0,e=>F(e.b,e._.e)),kW=j(0,`<mark> </mark>`,` D `,e=>{OW._(e),I(e.a,`_no`)},` `,` `,DW),AW=(e,t)=>kW(e,+!t),jW=(e,t)=>{AW(e,t[0]?.hit),MW(e,t[0]?.text)},MW=L(4,e=>{OW(e),EW(e)}),NW=e=>I(e.a,g),PW=T(5,0,e=>F(e.b,e._.n)),FW=e=>{PW._(e),I(e.a,d)},IW=V(34,e=>F(e.b,e._._._._.u),e=>e._._._._,`O5`),LW=e=>{IW(e),I(e.a,`_np`)},RW=S(2,e=>F(e.b,e._._._.l?`Loading files…`:e._._._.s?`No file matches “${E(e._._._.s)}”.`:`Type part of a file's name. Add :42 to open it at line 42.`)),zW=V(29,RW,e=>e._._._,`O11`),BW=e=>{zW(e),VW(e),I(e.a,`_dE`)},VW=V(33,RW,e=>e._._._,`O12`),HW=V(28,e=>F(e.b,e._._._._.k),e=>e._._._._,`O4`),UW=j(0,`<li role=presentation>Recently opened</li>`,` `,NW,`<li role=presentation> </li>`,` D `,e=>{HW(e),I(e.a,g)}),WW=S(17,e=>UW(e,!e._._._.s&&e.o===0?0:e.j&&(e.o===0||!e._._._.v[e.o-1].more)?1:2),3),GW=V(33,WW,e=>e._._._,`O7`),KW=N(`O6`,e=>{H(e.c,`mousemove`,function(){e._._._.p!==e.o&&NG(e._._._,e.o)}),H(e.c,`click`,function(){e._._._.a1(e.o)})}),qW=e=>{GW(e),XW(e),ZW(e),$W(e),I(e.d,`_nm`),I(e.e,`_nn`),KW(e)},JW=j(6,`<span>:<!></span>`,` Db%`,LW),YW=S(16,e=>JW(e,e._._._.u&&e.o===e._._._.y?0:1),2),XW=V(34,YW,e=>e._._._,`O8`),ZW=V(35,WW,e=>e._._._,`O9`),QW=S(15,e=>{R(e.b,`aria-selected`,e.o===e._._._.y?`true`:`false`),I(e.c,[`_dz`,e.o===e._._._.y&&`_dy`])}),$W=V(37,e=>{QW(e),YW(e)},e=>e._._._,`O10`),eG=L(9,WW),tG=L(14,e=>{WW(e),QW(e),YW(e)}),nG=C(3,`<!><!><!>`,`b%`,0,jW),rG=C(4,`<!><!><!>`,`b%`,0,wW),iG=S(20,e=>{nG(e,[vW(e.s,e.m,e.t,e.s?.length)]),rG(e,[vW(e.s,e.m,0,Math.max(0,e.t-1))])},2),aG=L(19,iG),oG=L(18,e=>{R(e.c,`title`,e.s),aG(e,fW(e.s)),iG(e)}),sG=L(12,iG),cG=j(5,`<span> </span>`,` D `,FW),lG=L(13,e=>{cG(e,+!e.n),PW(e)}),uG=(e,t)=>{eG(e,t[0]?.more),oG(e,t[0]?.item?.path),lG(e,t[0]?.item?.hint),sG(e,t[0]?.hits),tG(e,t[1])},dG=V(31,e=>re(e,`c`,e._._.o,eK(e)),e=>e._._,`O15`),fG=N(`O14`,e=>{oe(e,`c`),H(e.d,`click`,function(){e._._.z()})}),pG=e=>{dG(e),mG(e),gG(e),yG(e),I(e.a,`_dt`),Fe(e.b),Ne(e.b,14),Le(e.b),I(e.c,_),I(e.d,[y,`_dv`]),ze(e.e),ue(e.e,16),Ce(e.e),I(e.f,`_dw`),fG(e)},mG=V(32,e=>{R(e.c,`aria-controls`,e._._.q),R(e.f,`id`,e._._.q)},e=>e._._),hG=w(5,`<!><!><li role=option><button type=button><span></span><span></span><!><!></button></li>`,`b%b D D b b%b%`,qW,uG),gG=V(35,e=>hG(e,[e._._.v,e=>`${e.more?`+`:``}${e.item.key}`]),e=>e._._,`O16`),_G=j(6,`<p> </p>`,` D `,BW),vG=N(`O13`,e=>H(e.c,`keydown`,function(t){if(t.key===`ArrowDown`||t.key===`ArrowUp`){t.preventDefault();let n=e._._.w;n&&NG(e._._,(e._._.y+(t.key===`ArrowDown`?1:-1)+n)%n)}else t.key===`Enter`&&(t.preventDefault(),e._._.a1(e._._.y))})),yG=V(36,e=>{_G(e,+!!e._._.w),vG(e)},e=>e._._,`O17`),bG=j(0,((e,t)=>`<div>${e}<input type=search autofocus autocomplete=off placeholder="Go to file (name:42 for a line)" aria-label="Go to file" role=combobox aria-expanded=true><button type=button title=Close aria-label=Close>${t}</button></div><ul role=listbox></ul><!><!>`)(Ae,we),((e,t)=>` D/${e}& b D/${t}&m b%c`)(Oe,pe),pG),xG=V(30,e=>bG(e,+!e._.m),0,`O18`),SG=se(`O19`,`<!><!><!>`,`b%`,xG),CG=B(xG),wG=te(12,e=>{Ht(e.a,e.m),CG(e)}),TG=S(5,e=>wG(e,e.d,e.e)),EG=L(3,TG),DG=L(4,TG),OG=(e,t)=>{UG(e,t?.query),GG(e,t?.line)},kG=B(dG),AG=D(14,e=>{OG(e,pW(e.o.trim())),kG(e)}),jG=L(24,B($W)),MG=S(23,e=>jG(e,Math.min(e.p,Math.max(0,e.w-1)))),NG=D(15,MG),PG=L(16),FG=L(27),IG=S(26,e=>FG(e,tK(e)),3),LG=L(25,IG);function RG(e){Bt(e.a),Jt(e.a,SG(e)),zt(e.a,`Go to file`),Lt(e.a,[`_b4`,`_ds`]),Yt(e.a,rK(e)),qt(e.a,!0),Vt(e.a),Wt(e.a),Rt(e.a),Ut(e.a),Kt(e.a,{}),AG(e,``),NG(e,0),PG(e,A(e)),LG(e,nK(e))}var zG=B(gG,ZW),BG=L(21,e=>{qG(e,e.v?.length),IG(e),zG(e)}),VG=S(19,e=>BG(e,(()=>{let t=e.s;if(!t){let t=new Map(e.g.map(e=>[e.key,e]));return(e.h||[]).map(e=>t.get(e)).filter(e=>!!e).map(e=>({item:e,hits:[],more:!1}))}let n=mW(e.g,e=>e.path,t,_W).map(e=>({item:e.item,hits:e.match.hits,more:!1})),r=e.i?mW(e.i.items,e=>e.path,t,_W).map(e=>({item:e.item,hits:e.match.hits,more:!0})):[];return[...n,...r]})()),3),HG=B(GW,VW),UG=L(18,e=>{VG(e),HG(e)}),WG=B(XW,IW),GG=L(20,e=>{IG(e),WG(e)}),KG=B(yG),qG=L(22,e=>{MG(e),KG(e)}),JG=L(6,VG),YG=L(7,VG),XG=L(8,e=>{QG(e,e.i?.label),VG(e)}),ZG=L(9,IG),QG=L(10,B(HW)),$G=L(11,B(zW)),eK=e=>function(t){AG(e._._,t),NG(e._._,0)},tK=e=>t=>{let n=e.v[t];if(!n)return;let r=e.u;e.z(),e.j(n.item.key,r,n.more)},nK=e=>()=>{wG(e,!1),AG(e,``),NG(e,0)},rK=e=>t=>{wG(e,t)};P.O3=eK,P.O1=tK,P.O0=nK,P.O2=rK;export{qT as $,wC as $t,qD as A,Ew as At,XE as B,QC as Bt,kN as C,Kw as Ct,XM as D,Dw as Dt,_N as E,Tw as Et,TD as F,sw as Ft,aD as G,YC as Gt,sD as H,tw as Ht,pD as I,mw as It,oE as J,DC as Jt,BE as K,TC as Kt,mD as L,hw as Lt,HD as M,jw as Mt,zD as N,bw as Nt,hN as O,kw as Ot,ID as P,Sw as Pt,eE as Q,AC as Qt,lD as R,nw as Rt,ON as S,Pw as St,tN as T,zw as Tt,iD as U,ew as Ut,ZE as V,$C as Vt,rD as W,XC as Wt,iE as X,PC as Xt,aE as Y,IC as Yt,rE as Z,OC as Zt,NN as _,aT as _t,EG as a,_S as an,GT as at,jN as b,sT as bt,RG as c,An as cn,FT as ct,rW as d,AT as dt,gC as en,JT as et,hP as f,MT as ft,sP as g,dT as gt,fP as h,_T as ht,ZG as i,vS as in,KT as it,JD as j,Aw as jt,qM as k,Cw as kt,hW as l,ET as lt,gP as m,gT as mt,$G as n,zS as nn,UT as nt,DG as o,Qx as on,RT as ot,vP as p,jT as pt,VE as q,kC as qt,XG as r,CS as rn,WT as rt,YG as s,Yp as sn,BT as st,JG as t,lC as tn,HT as tt,gW as u,PT as ut,PN as v,iT as vt,mN as w,Gw as wt,AN as x,pT as xt,MN as y,rT as yt,uD as z,aw as zt};
1595
+ }`}var Vz=new WeakMap;function Hz(e){let t=Vz.get(e);if(t!=null)return t;let n=document.createElement(`div`);n.setAttribute(VF,`true`);let r=document.createElement(`div`);r.style.position=`relative`,r.style.height=`200%`,n.appendChild(r),e.appendChild(n);let i=Math.max(n.offsetWidth-n.clientWidth,0);return n.remove(),Vz.set(e,i),i}function Uz(e,t){if(!e.isConnected)return;let n=Hz(t);if(n==null)return;let r=t.querySelector(`style[${HF}]`),i=r instanceof HTMLStyleElement?r:document.createElement(`style`);r instanceof HTMLStyleElement||(i.setAttribute(HF,``),t.appendChild(i)),i.textContent=`:host { ${UF}: ${n}px; }`}var Wz;function Gz(e){if(typeof CSSStyleSheet<`u`&&typeof CSSStyleSheet.prototype.replaceSync==`function`&&`adoptedStyleSheets`in e){Wz??(Wz=new CSSStyleSheet,Wz.replaceSync(zz(Lz)));let t=!1;try{e.adoptedStyleSheets=[Wz],t=!0}catch{}if(t){e.querySelector(`style[${zF}]`)?.remove();return}}if(e.querySelector(`style[data-file-tree-style]`)==null){let t=document.createElement(`style`);t.setAttribute(zF,``),t.textContent=zz(Lz),e.prepend(t)}}function Kz(e,t){qz(e,t),Gz(t),Uz(e,t)}function qz(e,t){let n=e.querySelector(`template[shadowrootmode="open"], template[data-file-tree-shadowrootmode="open"]`);n instanceof HTMLTemplateElement&&(t.childNodes.length>0||(t.appendChild(n.content.cloneNode(!0)),n.hasAttribute(`shadowrootmode`)&&n.remove()))}if(typeof HTMLElement<`u`&&customElements.get(`file-tree-container`)==null){class e extends HTMLElement{constructor(){super()}connectedCallback(){let e=this.shadowRoot??this.attachShadow({mode:`open`});Kz(this,e)}}if(customElements.define(RF,e),typeof document<`u`)for(let e of Array.from(document.querySelectorAll(RF)))e instanceof HTMLElement&&Kz(e,e.shadowRoot??e.attachShadow({mode:`open`}))}var Jz=e=>e.startsWith(`f::`)?e.slice(3):e;function Yz(e){let t=e.lastIndexOf(`/`);return t<0?{parentPath:``,baseName:e}:{parentPath:e.slice(0,t),baseName:e.slice(t+1)}}function Xz(e,t){return e===``?t:`${e}/${t}`}function Zz({files:e,path:t,isFolder:n,nextBasename:r}){let i=Jz(t),a=r.trim();if(a.length===0)return{error:`Name cannot be empty.`};if(a.includes(`/`))return{error:`Name cannot include "/".`};let{parentPath:o,baseName:s}=Yz(i);if(a===s)return{nextFiles:e,sourcePath:i,destinationPath:i,isFolder:n};let c=Xz(o,a),l=Array(e.length),u=new Set;if(!n){let t=`${c}/`,r=!1;for(let n=0;n<e.length;n++){let a=e[n];if(a!==i&&a.startsWith(t))return{error:`"${c}" already exists.`};let o=a===i?c:a;if(u.has(o))return{error:`"${c}" already exists.`};u.add(o),l[n]=o,a===i&&(r=!0)}return r?{nextFiles:l,sourcePath:i,destinationPath:c,isFolder:n}:{error:`Could not find the selected file to rename.`}}let d=`${i}/`,f=`${c}/`,p=0;for(let t=0;t<e.length;t++){let n=e[t],r=n===i||n.startsWith(d);if(!r&&(n===c||n.startsWith(f)))return{error:`"${c}" already exists.`};let a=r?`${c}${n.slice(i.length)}`:n;if(u.has(a))return{error:`"${c}" already exists.`};u.add(a),l[t]=a,r&&p++}return p===0?{error:`Could not find the selected folder to rename.`}:{nextFiles:l,sourcePath:i,destinationPath:c,isFolder:n}}function Qz(e){return e.endsWith(`/`)}function $z(e){let t=e.endsWith(`/`)?e.slice(0,-1):e,n=t.lastIndexOf(`/`),r=n<0?t:t.slice(n+1);return e.endsWith(`/`)?`${r}/`:r}function eB(e){let t=[],n=new Set;for(let r of e)n.has(r)||(n.add(r),t.push(r));let r=new Set;for(let e of t.toSorted((e,t)=>e.length===t.length?e.localeCompare(t):e.length-t.length)){let t=(e.endsWith(`/`)?e.slice(0,-1):e).split(`/`),n=!1;for(let e=0;e<t.length-1;e+=1){let i=`${t.slice(0,e+1).join(`/`)}/`;if(r.has(i)){n=!0;break}}n||r.add(e)}return t.filter(e=>r.has(e))}function tB(e,t){return t.includes(e)?eB(t):[e]}function nB(e,t){return e===t?!0:e==null||t==null?!1:e.kind===t.kind&&e.directoryPath===t.directoryPath&&e.flattenedSegmentPath===t.flattenedSegmentPath&&e.hoveredPath===t.hoveredPath}function rB(e,t){return{draggedPaths:e,target:t}}function iB(e,t){if(t.kind!==`directory`||t.directoryPath==null)return!1;for(let n of e)if(Qz(n)&&(t.directoryPath===n||t.directoryPath.startsWith(n)))return!0;return!1}function aB(e,t){return t.kind===`root`||t.directoryPath==null?$z(e):t.directoryPath}function oB(e,t){let n=e.map(e=>{let n=aB(e,t);return n===e?null:{from:e,to:n,type:`move`}}).filter(e=>e!=null);return n.length===0?null:{operations:n,result:{draggedPaths:e,operation:n.length===1?`move`:`batch`,target:t}}}function sB(e,t){if(e===t)return!0;if(e.length!==t.length)return!1;for(let n=0;n<e.length;n+=1)if(e[n]!==t[n])return!1;return!0}function cB(e,t,n){let{paths:r,preparedInput:i}=e;if(i==null){if(r==null)throw Error(`FileTree requires paths or preparedInput`);return{paths:r,preparedInput:void 0}}let a=i.paths;if(r==null)return{paths:a,preparedInput:i};if(!sB(Mz.preparePaths(r,n==null?{}:{sort:n}),a))throw Error(`FileTree ${t} received paths and preparedInput for different path lists`);return{paths:a,preparedInput:i}}function lB(e){return e.operation===`add`||e.operation===`remove`||e.operation===`move`||e.operation===`batch`}function uB(e,t,n){if(e===t)return n;let r=t.endsWith(`/`)?t:`${t}/`;return e.startsWith(r)?`${n.endsWith(`/`)?n:`${n}/`}${e.slice(r.length)}`:e}function dB(e,t){if(e===t)return!0;let n=t.endsWith(`/`)?t:`${t}/`;return e.startsWith(n)}function fB(e,t,n=!1){if(e==null)return null;switch(t.operation){case`add`:case`expand`:case`collapse`:case`mark-directory-unloaded`:case`begin-child-load`:case`apply-child-patch`:case`complete-child-load`:case`fail-child-load`:case`cleanup`:return e;case`remove`:return dB(e,t.path)?n?e:null:e;case`move`:return uB(e,t.from,t.to);case`batch`:{let r=e;for(let e of t.events)if(r=fB(r,e,n),r==null)return null;return r}}}function pB(e){return{canonicalChanged:e.canonicalChanged,projectionChanged:e.projectionChanged,visibleCountDelta:e.visibleCountDelta}}function mB(e){switch(e.operation){case`add`:return{...pB(e),operation:`add`,path:e.path};case`remove`:return{...pB(e),operation:`remove`,path:e.path,recursive:e.recursive};case`move`:return{...pB(e),from:e.from,operation:`move`,to:e.to}}}function hB(e){return{...pB(e),events:e.events.filter(e=>e.operation===`add`||e.operation===`remove`||e.operation===`move`).map(e=>mB(e)),operation:`batch`}}function gB(e){switch(e.operation){case`add`:case`remove`:case`move`:return mB(e);case`batch`:return hB(e);default:return null}}function _B(e,t){if(e.size!==t.length)return!1;for(let n of t)if(!e.has(n))return!1;return!0}function vB(e){let t=e.endsWith(`/`)?e.slice(0,-1):e;if(t.length===0)return[];let n=t.split(`/`);return n.slice(0,-1).map((e,t)=>`${n.slice(0,t+1).join(`/`)}/`)}function yB(e){return vB(e).at(-1)??null}function bB(e,t){return t==null?e:e.startsWith(t)?e.slice(t.length):e}function xB(e){return e.endsWith(`/`)}var SB=e=>e.toLowerCase();function CB(e){let t=e.endsWith(`/`)?e.slice(0,-1):e,n=t.lastIndexOf(`/`);return n<0?t:t.slice(n+1)}function wB(e){return e.endsWith(`/`)?e.slice(0,-1):e}function TB(e,t){return t&&!e.endsWith(`/`)?`${e}/`:e}var EB=e=>{let t=e.trim();return t.length===0?``:(t.includes(`\\`)?t.replaceAll(`\\`,`/`):t).toLowerCase()},DB=Symbol(`FILE_TREE_RENAME_VIEW`),OB=512,kB=512;function AB(e){return e===`top`||e===`center`?e:`nearest`}function jB(e,t,n){if(e===0)return-1;if(n!=null){let e=t(n);if(e!=null)return e;let r=vB(n);for(let e=r.length-1;e>=0;--e){let n=r[e];if(n==null)continue;let i=t(n);if(i!=null)return i}}return 0}function MB(e,t,n){if(e.paths.length===0)return{focusedIndex:-1,getParentIndex:e.getParentIndex,paths:e.paths,posInSetByIndex:e.posInSetByIndex,setSizeByIndex:e.setSizeByIndex};if(t==null)return{focusedIndex:0,getParentIndex:e.getParentIndex,paths:e.paths,posInSetByIndex:e.posInSetByIndex,setSizeByIndex:e.setSizeByIndex};let r=n??(t=>e.visibleIndexByPath.get(t)??null);return{focusedIndex:jB(e.paths.length,r,t),getParentIndex:e.getParentIndex,paths:e.paths,posInSetByIndex:e.posInSetByIndex,setSizeByIndex:e.setSizeByIndex}}var NB=class e{static{Object.defineProperty(e.prototype,DB,{configurable:!0,value(){return{cancel:()=>{this.#q()},commit:()=>{this.#J()},getPath:()=>this.#T,getValue:()=>this.#E,isActive:()=>this.#T!=null,setValue:e=>{this.#Y(e)}}},writable:!0})}#e;#t=new Set;#n=new Map;#r=null;#i=null;#a=new Map;#o=new Map;#s=-1;#c=null;#l=!1;#u=e=>-1;#d=new Map;#f=null;#p=null;#m=null;#h=null;#g=null;#_;#v;#y;#b=[];#x=new Int32Array;#S=new Int32Array;#C=void 0;#w=!1;#T=null;#E=``;#D=!1;#O=new Set;#k=[];#A;#j=null;#M=null;#N=null;#P=null;#F=null;#I=null;#L=null;#R=0;#z=null;#B=new Set;#V=0;#H;#U=0;#W=!1;#G=0;#K;constructor(e){let{dragAndDrop:t,fileTreeSearchMode:n,initialSearchQuery:r,initialSelectedPaths:i,renaming:a,onSearchChange:o,paths:s,preparedInput:c,...l}=e,u=cB({paths:s,preparedInput:c},`constructor`,l.sort);this.#e=l,t!=null&&t!==!1&&(this.#r=t===!0?{}:t),this.#w=a!=null&&a!==!1,a!=null&&a!==!1&&a!==!0&&(this.#C=a.canRename,this.#v=a.onError,this.#_=a.onRename),this.#y=o,this.#A=n??`hide-non-matches`,this.#H=this.#le(u.paths,u.preparedInput);let d=i?.map(e=>this.#Ne(e)).filter(e=>e!=null)??[],f=d.at(-1)??null;d.length>0&&(this.#B=new Set(d),this.#z=f,this.#V=1),this.#je(f,!1),r!=null&&this.#Te(r,!1),this.#K=this.#Re()}destroy(){this.#K?.(),this.#K=null,this.#n.clear(),this.#t.clear(),this.#d.clear(),this.#i=null,this.#he()}focusFirstItem(){this.#be().length>0&&this.#Fe(0)}focusLastItem(){this.#G<=0||(this.#Ie(),this.#Fe(this.#G-1))}focusNextItem(){this.#Ae(1)}focusParentItem(){if(this.#c==null)return;let e=yB(this.#c);if(e==null)return;let t=this.#Z(e);t>=0&&this.#Fe(t)}focusPath(e){let t=this.#H.getPathInfo(e)?.path??null;if(t==null)return;this.#Ie();let n=this.#Z(t);n>=0&&this.#Fe(n)}scrollToPath(e,t){let n=this.#H.getPathInfo(e)?.path??null;if(n==null)return;this.#Ie();let r=this.#xe(n);r<0||this.#Me(r)!=null&&(t?.focus!==!1&&this.#Fe(r,!1),this.#L={id:this.#R+=1,offset:AB(t?.offset),visibleIndex:r},this.#De())}focusMountedPathFromInput(e){let t=this.#H.getPathInfo(e)?.path??null;if(t==null)return;let n=this.#Z(t);n>=0&&this.#Fe(n)}focusNearestPath(e){let t=this.resolveNearestVisiblePath(e);if(t==null)return null;let n=this.#Z(t);return n>=0?(this.#Fe(n),this.#be()[n]??t):null}focusPreviousItem(){this.#Ae(-1)}getFocusedIndex(){return this.#s}getFocusedItem(){return this.#c==null?null:this.#Q(this.#c)}getFocusedPath(){return this.#c}getScrollRequest(){return this.#L}clearScrollRequest(e){this.#L?.id===e&&(this.#L=null)}resolveNearestVisiblePath(e){let t=this.#be();if(this.#G===0)return null;if(e==null)return this.#c??t[0]??null;let n=this.#H.getPathInfo(e)?.path??e,r=this.#Z(n);return r>=0?t[r]??n:this.#X(n)??this.#c??t[0]??null}getSelectedPaths(){return[...this.#B]}getSelectionVersion(){return this.#V}getVisibleCount(){return this.#G}getVisibleRows(e,t){if(t<e||this.#G===0)return[];let n=Math.max(0,e),r=Math.min(this.#G-1,t);if(r<n)return[];let i=r-n+1;if(this.#F==null&&!this.#l&&r>=this.#b.length&&i<=kB){let e=[];for(let t=n;t<=r;t+=1){let n=this.#H.getVisibleRowContext(t);if(n==null)break;e.push(this.#ee(n))}return e}if(!this.#l&&r>=this.#b.length&&this.#Ie(),this.#F!=null){let e=Array.from({length:r-n+1},(e,t)=>this.#Se(n+t)),t=new Map,i=e[0]??-1,a=i;for(let n=1;n<=e.length;n+=1){let r=e[n];if(r!=null&&r===a+1){a=r;continue}if(i>=0&&this.#H.getVisibleSlice(i,a).forEach((e,n)=>{t.set(i+n,e)}),r==null){i=-1,a=-1;continue}i=r,a=r}return Array.from({length:r-n+1},(e,r)=>{let i=n+r,a=this.#Se(i),o=t.get(a),s=this.#b[a];if(o==null||s==null)throw Error(`Missing projection row for filtered visible index ${String(i)}`);return this.#$(o,i,a,{ancestorPaths:this.#re(a),path:s})})}return this.#H.getVisibleSlice(n,r).map((e,t)=>{let r=n+t,i=this.#b[r];if(i==null)throw Error(`Missing projection path for visible index ${String(r)}`);return this.#$(e,r,r,{ancestorPaths:this.#re(r),path:i})})}getStickyRowCandidates(e,t){if(this.#F!=null)return null;if(this.#G===0||e<=0||t<=0)return[];let n=[];for(let r=0;r<this.#G;r+=1){let i=e+r*t,a=Math.min(this.#G-1,Math.floor(i/t)),o=this.#te(a,r)??(a>0?this.#te(a-1,r):void 0);if(o==null)break;n.push({row:this.#ee(o),subtreeEndIndex:o.subtreeEndIndex})}return n}getItem(e){let t=this.#H.getPathInfo(e);return t==null?null:this.#Q(t.path,t)}resolveMountedDirectoryPathFromInput(e){let t=this.#H.getPathInfo(e);return t?.kind===`directory`?t.path:null}toggleMountedDirectoryFromInput(e){let t=this.resolveMountedDirectoryPathFromInput(e);t!=null&&this.#ze(t)}selectAllVisiblePaths(){this.#Ie();let e=[...this.#be()];this.#ae(e,this.#c??this.#z)}selectOnlyPath(e){let t=this.#Ne(e);t!=null&&this.#ae([t],t)}selectOnlyMountedPathFromInput(e){this.#ae([e],e)}selectPath(e){let t=this.#Ne(e);t==null||this.#B.has(t)||this.#ae([...this.#B,t])}deselectPath(e){let t=this.#Ne(e);t!=null&&this.#B.has(t)&&this.#ae([...this.#B].filter(e=>e!==t))}toggleFocusedSelection(){this.#c!=null&&this.togglePathSelectionFromInput(this.#c)}togglePathSelection(e){let t=this.#Ne(e);if(t!=null){if(this.#B.has(t)){this.deselectPath(t);return}this.selectPath(t)}}togglePathSelectionFromInput(e){let t=this.#Ne(e);if(t!=null){if(this.#B.has(t)){this.#ae([...this.#B].filter(e=>e!==t),t);return}this.#ae([...this.#B,t],t)}}selectPathRange(e,t){let n=this.#Ne(e);if(n==null)return;this.#Ie();let r=this.#z,i=r==null?-1:this.#Ce(r),a=this.#Ce(n);if(i===-1||a===-1){let e=t?[...this.#B,n]:[n];this.#ae(e,n);return}let[o,s]=i<=a?[i,a]:[a,i],c=this.#be().slice(o,s+1),l=t?[...this.#B,...c]:c;this.#ae(l,r)}extendSelectionFromFocused(e){if(this.#c==null)return;let t=this.#s;if(t===-1)return;let n=Math.min(this.#G-1,Math.max(0,t+e));if(n===t)return;!this.#l&&n>=this.#b.length&&this.#Ie();let r=this.#be(),i=r[t]??null,a=r[n]??null;if(i==null||a==null)return;let o=new Set(this.#B);o.has(i)&&o.has(a)?o.delete(i):o.add(a),this.#ae([...o],this.#z??i,!1),this.#Fe(n)}getDragAndDropConfig(){return this.#r}isDragAndDropEnabled(){return this.#r!=null}getDragSession(){return this.#i==null?null:{draggedPaths:[...this.#i.draggedPaths],primaryPath:this.#i.primaryPath,target:this.#i.target==null?null:{...this.#i.target}}}startDrag(e){if(this.#r==null)return!1;let t=this.#Ne(e);if(t==null||this.#M!=null&&this.#M.length>0)return!1;let n=this.getSelectedPaths(),r=tB(t,n);return this.#r.canDrag?.(r)!==!1&&(n.includes(t)||this.#ae([t],t,!1),this.#Pe(t),this.#i={draggedPaths:r,primaryPath:t,target:null},this.#De(),!0)}setDragTarget(e){let t=this.#i;if(t==null)return;let n=e;if(n!=null){let e=rB(t.draggedPaths,n);(iB(t.draggedPaths,n)||this.#r?.canDrop?.(e)===!1)&&(n=null)}nB(t.target,n)||(this.#i={...t,target:n},this.#De())}cancelDrag(){this.#i!=null&&(this.#i=null,this.#De())}completeDrag(){let e=this.#i;if(e==null)return!1;this.#i=null;let t=e.target==null?null:{...e.target};if(t==null)return this.#De(),!1;let n=rB(e.draggedPaths,t);if(iB(e.draggedPaths,t)||this.#r?.canDrop?.(n)===!1)return this.#De(),!1;let r=oB(e.draggedPaths,t);if(r==null)return this.#De(),!1;try{if(r.operations.length===1){let e=r.operations[0];if(e==null||e.type!==`move`)throw Error(`Expected a single move operation for one-item drops`);this.#H.move(e.from,e.to,{collision:e.collision})}else this.#ce(r.operations),this.#H.batch(r.operations)}catch(e){return this.#De(),this.#r?.onDropError?.(e instanceof Error?e.message:String(e),n),!1}return this.#r?.onDropComplete?.(r.result),!0}subscribe(e){return this.#t.add(e),e(),()=>{this.#t.delete(e)}}add(e){this.#H.add(e)}remove(e,t={}){this.#H.remove(e,t)}move(e,t,n={}){this.#H.move(e,t,n)}batch(e){this.#H.batch(e)}onMutation(e,t){let n=e,r=t,i=this.#n.get(n);return i??(i=new Set,this.#n.set(n,i)),i.add(r),()=>{let e=this.#n.get(n);e?.delete(r),e?.size===0&&this.#n.delete(n)}}setSearch(e){this.#Te(e,!0)}openSearch(e=``){this.#Te(e,!0)}closeSearch(){this.#Te(null,!0)}isSearchOpen(){return this.#M!==null}getSearchValue(){return this.#M??``}getSearchMatchingPaths(){return this.#k}focusNextSearchMatch(){this.#we(1)}focusPreviousSearchMatch(){this.#we(-1)}startRenaming(e=this.#c??``,t={}){if(!this.#w)return!1;let n=this.#H.getPathInfo(e);if(n==null)return!1;let r=n.path,i=xB(r),a=wB(r);if(this.#C?.({isFolder:i,path:a})===!1)return!1;for(let e of vB(r))this.#H.isExpanded(e)||this.#H.expand(e);return this.#ae([r],r,!1),this.#M!=null&&(this.#Te(null,!1),this.#y?.(this.#M)),this.#Pe(r),this.#T=r,this.#E=CB(r),this.#D=t.removeIfCanceled??!1,this.#De(),!0}#q(){if(this.#T==null)return;let e=this.#T,t=this.#D;if(this.#T=null,this.#E=``,this.#D=!1,t){this.remove(e,xB(e)?{recursive:!0}:void 0);return}this.#Pe(e),this.#De()}#J(){let e=this.#T;if(e==null)return;if(this.#D&&this.#E.trim().length===0){this.#T=null,this.#E=``,this.#D=!1,this.remove(e,xB(e)?{recursive:!0}:void 0);return}let t=xB(e),n=Zz({files:this.#H.list(),isFolder:t,nextBasename:this.#E,path:wB(e)});if(this.#T=null,this.#E=``,this.#D=!1,`error`in n){this.#Pe(e),this.#v?.(n.error),this.#De();return}if(n.sourcePath===n.destinationPath){this.#Pe(e),this.#De();return}this.#_?.({destinationPath:n.destinationPath,isFolder:n.isFolder,sourcePath:n.sourcePath}),this.move(TB(n.sourcePath,t),TB(n.destinationPath,t))}#Y(e){this.#T!=null&&this.#E!==e&&(this.#E=e,this.#De())}resetPaths(e,t={}){let n=!Array.isArray(e),r=n?void 0:e,i=n?e:t,a=this.#H.list().length,o=this.#G,s=cB({paths:r,preparedInput:i.preparedInput},`resetPaths`,this.#e.sort),c=this.#le(s.paths,s.preparedInput,i.initialExpandedPaths),l=this.#c,u=this.#T,d=this.getSelectedPaths(),f=this.#z;this.#K?.(),this.#H=c,this.#d.clear(),this.#he();let p=d.map(e=>c.getPathInfo(e)?.path??null).filter(e=>e!=null),m=!_B(this.#B,p);this.#B=new Set(p),m&&(this.#V+=1),this.#z=f==null?null:c.getPathInfo(f)?.path??null,this.#T=u==null?null:c.getPathInfo(u)?.path??null,this.#T??(this.#E=``,this.#D=!1),this.#je(l,l!=null||p.length>0||this.#z!=null),this.#K=this.#Re(),this.#De(),this.#Oe({canonicalChanged:!0,operation:`reset`,pathCountAfter:s.paths.length,pathCountBefore:a,projectionChanged:!0,usedPreparedInput:i.preparedInput!=null,visibleCountDelta:this.#G-o})}#X(e){this.#Ie();let t=yB(e),n=bB(e,t),r=null,i=null;for(let e of this.#be()){if(yB(e)!==t)continue;let a=bB(e,t);if(a<n){r=e;continue}if(a>n){i=e;break}}return r??i}#Z(e){let t=this.#Ce(e);if(t!==-1)return t;let n=vB(e);for(let e=n.length-1;e>=0;--e){let t=n[e];if(t==null)continue;let r=this.#Ce(t);if(r!==-1)return r}return this.#be().length>0?0:-1}#Q(e,t){let n=this.#d.get(e);if(n!=null)return n;let r=t??this.#H.getPathInfo(e);if(r==null)return null;let i=r.kind===`directory`?this.#oe(r.path):this.#se(r.path);return this.#d.set(r.path,i),i}#$(e,t,n,r){return{ancestorPaths:r.ancestorPaths,depth:e.depth,flattenedSegments:e.flattenedSegments?.map(e=>({isTerminal:e.isTerminal,name:e.name,path:e.path})),hasChildren:e.hasChildren,index:t,isExpanded:e.isExpanded,isFlattened:e.isFlattened,isFocused:r.path===this.#c,isSelected:this.#B.has(r.path),kind:e.kind,level:e.depth,name:e.name,path:r.path,posInSet:r.posInSet??this.#x[n]??0,setSize:r.setSize??this.#S[n]??0}}#ee(e){return this.#$(e.row,e.index,e.index,{ancestorPaths:e.ancestorPaths,path:e.row.path,posInSet:e.posInSet,setSize:e.setSize})}#te(e,t){let n=this.#H.getVisibleRowContext(e);return n==null?void 0:n.ancestorRows[t]??(t===n.ancestorRows.length&&n.row.kind===`directory`&&n.row.isExpanded?n:void 0)}#ne(e){let t=this.#a.get(e);if(t!=null)return t;let n=this.#u(e),r=n<0?[]:[...this.#ne(n),n];return this.#a.set(e,r),r}#re(e){let t=this.#o.get(e);if(t!=null)return t;let n=this.#ne(e).map(e=>this.#b[e]??``).filter(e=>e!==``);return this.#o.set(e,n),n}#ie(e){this.#H.collapse(e)}#ae(e,t=this.#z,n=!0){let r=[...new Set(e)],i=!_B(this.#B,r),a=this.#z!==t;(i||a)&&(this.#B=new Set(r),this.#z=t,i&&(this.#V+=1),n&&this.#De())}#oe(e){return{collapse:()=>{this.#ie(e)},deselect:()=>{this.deselectPath(e)},expand:()=>{this.#ke(e)},focus:()=>{this.focusPath(e)},getPath:()=>e,isDirectory:()=>!0,isExpanded:()=>this.#H.isExpanded(e),isFocused:()=>this.#c===e,isSelected:()=>this.#B.has(e),select:()=>{this.selectPath(e)},toggleSelect:()=>{this.togglePathSelection(e)},toggle:()=>{this.#ze(e)}}}#se(e){return{deselect:()=>{this.deselectPath(e)},focus:()=>{this.focusPath(e)},getPath:()=>e,isDirectory:()=>!1,isFocused:()=>this.#c===e,isSelected:()=>this.#B.has(e),select:()=>{this.selectPath(e)},toggleSelect:()=>{this.togglePathSelection(e)}}}#ce(e){let t=this.#H.list();this.#le(t).batch(e)}#le(e,t,n){return new Mz({...this.#e,paths:e,preparedInput:t??void 0,...n===void 0?{}:{initialExpandedPaths:n}})}#ue(){return this.#h??=this.#H.list(),this.#h}#de(){if(this.#m!=null)return this.#m;let e=new Set;for(let t of this.#ue()){e.add(t);for(let n of vB(t))e.add(n)}return this.#m=[...e].sort(),this.#m}#fe(){return this.#g??=this.#ue().map(SB),this.#g}#pe(){return this.#f??=this.#de().filter(e=>e.endsWith(`/`)),this.#f}#me(){return this.#p??=this.#pe().map(SB),this.#p}#he(){this.#f=null,this.#p=null,this.#m=null,this.#h=null,this.#g=null}#ge(){return this.#pe().filter(e=>this.#H.isExpanded(e))}#_e(e){let t=new Set(this.#j??[]);if(e)for(let e of this.#B)for(let n of vB(e))t.add(n);this.#ve(t)}#ve(e){this.#W=!0;try{for(let t of this.#pe()){let n=e.has(t),r=this.#H.isExpanded(t);n&&!r?this.#H.expand(t):!n&&r&&this.#H.collapse(t)}}finally{this.#W=!1}}#ye(){if(this.#M==null||this.#M.length===0){this.#k=[],this.#F=null,this.#I=null,this.#P=null,this.#G=this.#U;return}let e=this.#b;if(this.#k=e.filter(e=>this.#O.has(e)),this.#A!==`hide-non-matches`||this.#O.size===0){this.#F=null,this.#I=null,this.#P=null,this.#G=this.#U;return}let t=[],n=[],r=new Map;for(let[i,a]of e.entries())this.#N?.has(a)===!0&&(r.set(a,n.length),t.push(i),n.push(a));this.#F=t,this.#I=n,this.#P=r,this.#G=n.length}#be(){return this.#I??this.#b}#xe(e){return this.#I==null?this.#H.getVisibleIndex(e)??-1:this.#P?.get(e)??-1}#Se(e){return this.#F?.[e]??e}#Ce(e){return this.#P?.get(e)??this.#H.getVisibleIndex(e)??-1}#we(e){let t=this.#k;if(t.length===0)return;let n=this.#c,r=n==null?-1:t.indexOf(n),i=t[r<0?e>0?0:t.length-1:Math.min(t.length-1,Math.max(0,r+e))];i!=null&&this.focusPath(i)}#Te(e,t){let n=e==null?null:EB(e),r=this.#M;if(r!==n){if(r==null&&n!=null&&(this.#j=this.#ge()),this.#M=n,n==null)this.#_e(!0),this.#j=null,this.#O.clear(),this.#N=null,this.#je(this.#c,!0);else if(n.length===0)this.#_e(!1),this.#O.clear(),this.#N=null,this.#je(this.#c,!0);else{let e=this.#Ee();this.#je(e,!0)}t&&(this.#y?.(this.#M),this.#De())}}#Ee(){if(this.#M==null||this.#M.length===0)return this.#O.clear(),this.#c;let e=this.#M,t=this.#ue(),n=this.#fe(),r=[],i=new Set,a=null;for(let o=0;o<t.length;o+=1){if(!n[o].includes(e))continue;let s=t[o];r.push(s),i.add(s),a??=s}let o=this.#pe(),s=this.#me();for(let t=0;t<o.length;t+=1){if(!s[t].includes(e))continue;let n=o[t];i.has(n)||(r.push(n),i.add(n),a??=n)}this.#O=i;let c=this.#A===`hide-non-matches`&&r.length>0?new Set:null;this.#N=c;let l=this.#A===`expand-matches`?new Set(this.#j??[]):new Set;for(let e of r){c?.add(e),e.endsWith(`/`)&&l.add(e);for(let t of vB(e))l.add(t),c?.add(t)}return this.#ve(l),a??this.#c}#De(){for(let e of this.#t)e()}#Oe(e){this.#n.get(e.operation)?.forEach(t=>{t(e)}),this.#n.get(`*`)?.forEach(t=>{t(e)})}#ke(e){for(let t of vB(e))this.#H.isExpanded(t)||this.#H.expand(t);this.#H.isExpanded(e)||this.#H.expand(e)}#Ae(e){let t=this.#G;if(t===0)return;let n=this.#s===-1?0:this.#s,r=Math.min(t-1,Math.max(0,n+e));(r!==n||this.#s===-1)&&(!this.#l&&this.#F==null&&r>=this.#b.length&&this.#Ie(),this.#Fe(r))}#je(e,t=!0){let n=this.#H.getVisibleCount();this.#U=n;let r=MB(this.#H.getVisibleTreeProjectionData(t?void 0:Math.min(n,OB)),e,t?e=>this.#H.getVisibleIndex(e):void 0);this.#a.clear(),this.#o.clear(),this.#l=r.paths.length>=n,this.#u=r.getParentIndex,this.#b=r.paths,this.#x=r.posInSetByIndex,this.#S=r.setSizeByIndex,this.#ye(),this.#s=e==null?this.#be().length>0?0:-1:this.#Z(e),this.#c=this.#s<0?null:this.#Me(this.#s)}#Me(e){return this.#be()[e]??(this.#F==null?this.#H.getVisibleRowContext(e)?.row.path??null:null)}#Ne(e){return this.#H.getPathInfo(e)?.path??null}#Pe(e){if(e==null)return;let t=this.#Z(e);t>=0&&this.#Fe(t,!1)}#Fe(e,t=!0){let n=this.#Me(e);n!=null&&(this.#s!==e||this.#c!==n)&&(this.#s=e,this.#c=n,t&&this.#De())}#Ie(){this.#l||this.#je(this.#c,!0)}#Le(e){let t=fB(this.#T,e);t==null&&this.#T!=null&&(this.#E=``),this.#T=t;let n=fB(this.#c,e,!0),r=[...this.#B].map(t=>fB(t,e)).filter(e=>e!=null).map(e=>this.#H.getPathInfo(e)?.path??null).filter(e=>e!=null),i=fB(this.#z,e),a=i==null?null:this.#H.getPathInfo(i)?.path??null,o=[...new Set(r)];return _B(this.#B,o)||(this.#B=new Set(o),this.#V+=1),this.#z=a,n}#Re(){return this.#H.on(`*`,e=>{if(this.#W)return;e.canonicalChanged&&(this.#d.clear(),this.#he()),this.#i!=null&&lB(e)&&(this.#i=null);let t=lB(e)?this.#Le(e):this.#c,n=this.#M!=null&&this.#M.length>0?this.#Ee():this.#M===``?this.#c:t,r=this.#M!=null||e.operation!==`expand`&&e.operation!==`collapse`;this.#je(n,r),this.#De();let i=gB(e);i!=null&&this.#Oe(i)})}#ze(e){if(this.#H.isExpanded(e)){this.#ie(e);return}this.#ke(e)}},PB=e=>{if(e==null||e.length===0)return`0`;let t=`${e.length}`;for(let n of e)t+=`\0${n.path}\0${n.status}`;return t};function FB(e){let t=e.endsWith(`/`),n=``,r=-1;for(let t=0;t<=e.length;t+=1){if(e[t]!==`/`&&t!==e.length){r===-1&&(r=t);continue}r!==-1&&(n!==``&&(n+=`/`),n+=e.slice(r,t),r=-1)}return n===``?null:{isDirectory:t,path:n}}function IB(e){let t=e.endsWith(`/`)?e.slice(0,-1):e;if(t.length===0)return[];let n=[],r=0;for(;;){let e=t.indexOf(`/`,r);if(e===-1)break;n.push(t.slice(0,e+1)),r=e+1}return n}function LB(e,t){return t?`${e}/`:e}function RB(e,t=null){let n=PB(e==null?void 0:[...e]);if(n===`0`)return null;if(t?.signature===n)return t;let r=new Map,i=new Set,a=new Set,o=new Map;for(let t of e??[]){let e=BB(t);e!=null&&UB({canonicalPath:e.canonicalPath,changeCountByDirectoryPath:o,directoriesWithChanges:i,ignoredDirectoryPaths:a,isDirectory:e.isDirectory,status:t.status,statusByPath:r})}return r.size===0?null:{changeCountByDirectoryPath:o,directoriesWithChanges:i,ignoredDirectoryPaths:a,signature:n,statusByPath:r}}function zB(e,t){let n=t?.remove??[],r=t?.set??[];if(n.length===0&&r.length===0)return e;let i=new Map(e?.statusByPath),a=new Set(e?.directoriesWithChanges),o=new Set(e?.ignoredDirectoryPaths),s=new Map(e?.changeCountByDirectoryPath),c=!1;for(let e of n){let t=VB(e);t!=null&&(c=HB({canonicalPath:t.canonicalPath,changeCountByDirectoryPath:s,directoriesWithChanges:a,ignoredDirectoryPaths:o,statusByPath:i})||c)}for(let e of r){let t=BB(e);t!=null&&(c=UB({canonicalPath:t.canonicalPath,changeCountByDirectoryPath:s,directoriesWithChanges:a,ignoredDirectoryPaths:o,isDirectory:t.isDirectory,status:e.status,statusByPath:i})||c)}return c?i.size===0?null:{changeCountByDirectoryPath:s,directoriesWithChanges:a,ignoredDirectoryPaths:o,signature:KB(i),statusByPath:i}:e}function BB(e){return VB(e.path)}function VB(e){let t=FB(e);if(t!=null)return{canonicalPath:LB(t.path,t.isDirectory),isDirectory:t.isDirectory}}function HB({canonicalPath:e,changeCountByDirectoryPath:t,directoriesWithChanges:n,ignoredDirectoryPaths:r,statusByPath:i}){let a=i.get(e);return a!=null&&(i.delete(e),a===`ignored`&&e.endsWith(`/`)&&r.delete(e),GB(t,n,e),!0)}function UB({canonicalPath:e,changeCountByDirectoryPath:t,directoriesWithChanges:n,ignoredDirectoryPaths:r,isDirectory:i,status:a,statusByPath:o}){let s=o.get(e);return s!==a&&(s??WB(t,n,e),o.set(e,a),a===`ignored`&&i?r.add(e):i&&r.delete(e),!0)}function WB(e,t,n){for(let r of IB(n))e.set(r,(e.get(r)??0)+1),t.add(r)}function GB(e,t,n){for(let r of IB(n)){let n=(e.get(r)??0)-1;n>0?e.set(r,n):(e.delete(r),t.delete(r))}}function KB(e){let t=`${e.size}`;for(let[n,r]of e)t+=`\0${n}\0${r}`;return t}var qB,JB,YB,XB,ZB,QB,$B,eV,tV,nV,rV={},iV=[],aV=Array.isArray,oV=iV.slice,sV=Object.assign;function cV(e){e&&e.parentNode&&e.remove()}function lV(e,t,n){var r,i,a,o={};for(a in t)a==`key`?r=t[a]:a==`ref`&&typeof e!=`function`?i=t[a]:o[a]=t[a];return arguments.length>2&&(o.children=arguments.length>3?oV.call(arguments,2):n),uV(e,o,r,i,null)}function uV(e,t,n,r,i){var a={type:e,props:t,key:n,ref:r,__k:null,__:null,__b:0,__e:null,__c:null,constructor:void 0,__v:i??++JB,__i:-1,__u:0};return i==null&&qB.vnode!=null&&qB.vnode(a),a}function dV(e){return e.children}function fV(e,t){this.props=e,this.context=t,this.__g=0}function pV(e,t){if(t==null)return e.__?pV(e.__,e.__i+1):null;for(var n;t<e.__k.length;t++)if((n=e.__k[t])!=null&&n.__e!=null)return n.__e;return typeof e.type==`function`?pV(e):null}function mV(e){var t,n;if((e=e.__)!=null&&e.__c!=null){for(e.__e=null,t=0;t<e.__k.length;t++)if((n=e.__k[t])!=null&&n.__e!=null){e.__e=n.__e;break}return mV(e)}}function hV(e){(8&e.__g||!(e.__g|=8)||!YB.push(e)||ZB++)&&XB==qB.debounceRendering||((XB=qB.debounceRendering)||queueMicrotask)(gV)}function gV(){for(var e,t,n,r,i,a,o,s,c=1;YB.length;)YB.length>c&&YB.sort(QB),e=YB.shift(),c=YB.length,8&e.__g&&(n=void 0,i=(r=(t=e).__v).__e,a=[],o=[],(s=t.__P)&&((n=sV({},r)).__v=r.__v+1,qB.vnode&&qB.vnode(n),wV(s,n,r,t.__n,s.namespaceURI,32&r.__u?[i]:null,a,i??pV(r),!!(32&r.__u),o,s.ownerDocument),n.__v=r.__v,n.__.__k[n.__i]=n,EV(a,n,o),n.__e!=i&&mV(n)));ZB=0}function _V(e,t,n,r,i,a,o,s,c,l,u,d){var f,p,m,h,g,_,v,y=r&&r.__k||iV,b=t.length;for(c=vV(n,t,y,c,b),f=0;f<b;f++)(m=n.__k[f])!=null&&(p=m.__i==-1?rV:y[m.__i]||rV,m.__i=f,_=wV(e,m,p,i,a,o,s,c,l,u,d),h=m.__e,m.ref&&p.ref!=m.ref&&(p.ref&&kV(p.ref,null,m),u.push(m.ref,m.__c||h,m)),g==null&&h!=null&&(g=h),(v=!!(4&m.__u))||p.__k===m.__k?c=yV(m,c,e,v):typeof m.type==`function`&&_!==void 0?c=_:h&&(c=h.nextSibling),m.__u&=-7);return n.__e=g,c}function vV(e,t,n,r,i){var a,o,s,c,l,u=n.length,d=u,f=0;for(e.__k=Array(i),a=0;a<i;a++)(o=t[a])!=null&&typeof o!=`boolean`&&typeof o!=`function`?(c=a+f,(o=e.__k[a]=typeof o==`string`||typeof o==`number`||typeof o==`bigint`||o.constructor==String?uV(null,o,null,null,null):aV(o)?uV(dV,{children:o},null,null,null):o.constructor==null&&o.__b>0?uV(o.type,o.props,o.key,o.ref?o.ref:null,o.__v):o).__=e,o.__b=e.__b+1,s=null,(l=o.__i=bV(o,n,c,d))!=-1&&(d--,(s=n[l])&&(s.__u|=2)),s==null||s.__v==null?(l==-1&&(i>u?f--:i<u&&f++),typeof o.type!=`function`&&(o.__u|=4)):l!=c&&(l==c-1?f--:l==c+1?f++:(l>c?f--:f++,o.__u|=4))):e.__k[a]=null;if(d)for(a=0;a<u;a++)(s=n[a])!=null&&!(2&s.__u)&&(s.__e==r&&(r=pV(s)),AV(s,s));return r}function yV(e,t,n,r){var i,a;if(typeof e.type==`function`){for(i=e.__k,a=0;i&&a<i.length;a++)i[a]&&(i[a].__=e,t=yV(i[a],t,n,r));return t}e.__e!=t&&(r&&(t&&e.type&&!t.parentNode&&(t=pV(e)),n.insertBefore(e.__e,t||null)),t=e.__e);do t&&=t.nextSibling;while(t!=null&&t.nodeType==8);return t}function bV(e,t,n,r){var i,a,o,s=e.key,c=e.type,l=t[n],u=l!=null&&!(2&l.__u);if(l===null&&e.key==null||u&&s==l.key&&c==l.type)return n;if(r>+!!u){for(i=n-1,a=n+1;i>=0||a<t.length;)if((l=t[o=i>=0?i--:a++])!=null&&!(2&l.__u)&&s==l.key&&c==l.type)return o}return-1}function xV(e,t,n){t[0]==`-`?e.setProperty(t,n??``):e[t]=n??``}function SV(e,t,n,r,i){var a;n:if(t==`style`){if(typeof n==`string`)e.style.cssText=n;else{if(typeof r==`string`&&(e.style.cssText=r=``),r)for(t in r)n&&t in n||xV(e.style,t,``);if(n)for(t in n)r&&n[t]==r[t]||xV(e.style,t,n[t])}}else if(t[0]==`o`&&t[1]==`n`)a=t!=(t=t.replace($B,`$1`)),(t=t.slice(2))[0].toLowerCase()!=t[0]&&(t=t.toLowerCase()),e.__l||={},e.__l[t+a]=n,n?r?n.l=r.l:(n.l=eV,e.addEventListener(t,a?nV:tV,a)):e.removeEventListener(t,a?nV:tV,a);else{if(i==`http://www.w3.org/2000/svg`)t=t.replace(/xlink(H|:h)/,`h`).replace(/sName$/,`s`);else if(t!=`width`&&t!=`height`&&t!=`href`&&t!=`list`&&t!=`form`&&t!=`tabIndex`&&t!=`download`&&t!=`rowSpan`&&t!=`colSpan`&&t!=`role`&&t!=`popover`&&t in e)try{e[t]=n??``;break n}catch{}typeof n==`function`||(n==null||!1===n&&t[4]!=`-`?e.removeAttribute(t):e.setAttribute(t,t==`popover`&&n==1?``:n))}}function CV(e){return function(t){if(this.__l){var n=this.__l[t.type+e];if(t.u==null)t.u=eV++;else if(t.u<n.l)return;return n(qB.event?qB.event(t):t)}}}function wV(e,t,n,r,i,a,o,s,c,l,u){var d,f,p,m,h,g,_,v,y,b,x,S,C,w,T,E,ee,D,O,k,te,A=t.type;if(t.constructor!=null)return null;128&n.__u&&(c=!!(32&n.__u),n.__c.__z&&(s=t.__e=n.__e=(a=n.__c.__z)[0],n.__c.__z=null)),(d=qB.__b)&&d(t);n:if(typeof A==`function`)try{if(v=t.props,y=`prototype`in A&&A.prototype.render,b=(d=A.contextType)&&r[d.__c],x=d?b?b.props.value:d.__:r,n.__c?2&(f=t.__c=n.__c).__g&&(f.__g|=1,_=!0):(y?t.__c=f=new A(v,x):(t.__c=f=new fV(v,x),f.constructor=A,f.render=jV),b&&b.sub(f),f.props=v,f.state||(f.state={}),f.context=x,f.__n=r,p=!0,f.__g|=8,f.__h=[],f._sb=[]),y&&f.__s==null&&(f.__s=f.state),y&&A.getDerivedStateFromProps!=null&&(f.__s==f.state&&(f.__s=sV({},f.__s)),sV(f.__s,A.getDerivedStateFromProps(v,f.__s))),m=f.props,h=f.state,f.__v=t,p)y&&A.getDerivedStateFromProps==null&&f.componentWillMount!=null&&f.componentWillMount(),y&&f.componentDidMount!=null&&f.__h.push(f.componentDidMount);else{if(y&&A.getDerivedStateFromProps==null&&v!==m&&f.componentWillReceiveProps!=null&&f.componentWillReceiveProps(v,x),!(4&f.__g)&&f.shouldComponentUpdate!=null&&!1===f.shouldComponentUpdate(v,f.__s,x)||t.__v==n.__v){for(t.__v!=n.__v&&(f.props=v,f.state=f.__s,f.__g&=-9),t.__e=n.__e,t.__k=n.__k,t.__k.some(function(e){e&&(e.__=t)}),S=0;S<f._sb.length;S++)f.__h.push(f._sb[S]);f._sb=[],f.__h.length&&o.push(f);break n}f.componentWillUpdate!=null&&f.componentWillUpdate(v,f.__s,x),y&&f.componentDidUpdate!=null&&f.__h.push(function(){f.componentDidUpdate(m,h,g)})}if(f.context=x,f.props=v,f.__P=e,f.__g&=-5,C=qB.__r,w=0,y){for(f.state=f.__s,f.__g&=-9,C&&C(t),d=f.render(f.props,f.state,f.context),T=0;T<f._sb.length;T++)f.__h.push(f._sb[T]);f._sb=[]}else do f.__g&=-9,C&&C(t),d=f.render(f.props,f.state,f.context),f.state=f.__s;while(8&f.__g&&++w<25);f.state=f.__s,f.getChildContext!=null&&(r=sV({},r,f.getChildContext())),y&&!p&&f.getSnapshotBeforeUpdate!=null&&(g=f.getSnapshotBeforeUpdate(m,h)),E=d,d!=null&&d.type===dV&&d.key==null&&(E=DV(d.props.children)),s=_V(e,aV(E)?E:[E],t,n,r,i,a,o,s,c,l,u),t.__u&=-161,f.__h.length&&o.push(f),_&&(f.__g&=-4)}catch(e){if(t.__v=null,c||a!=null){if(e.then){for(ee=0,D=!1,t.__u|=c?160:128,t.__c.__z=[],O=0;O<a.length;O++)(k=a[O])==null||D||(k.nodeType==8&&k.data==`$s`?(ee>0&&t.__c.__z.push(k),ee++,a[O]=null):k.nodeType==8&&k.data==`/$s`?(--ee>0&&t.__c.__z.push(k),D=ee===0,s=a[O],a[O]=null):ee>0&&(t.__c.__z.push(k),a[O]=null));if(!D){for(;s&&s.nodeType==8&&s.nextSibling;)s=s.nextSibling;a[a.indexOf(s)]=null,t.__c.__z=[s]}t.__e=s}else{for(te=a.length;te--;)cV(a[te]);TV(t)}}else t.__e=n.__e,t.__k=n.__k,e.then||TV(t);qB.__e(e,t,n)}else s=t.__e=OV(n.__e,t,n,r,i,a,o,c,l,u);return(d=qB.diffed)&&d(t),128&t.__u?void 0:s}function TV(e){e&&e.__c&&(e.__c.__g|=4),e&&e.__k&&e.__k.forEach(TV)}function EV(e,t,n){for(var r=0;r<n.length;r++)kV(n[r],n[++r],n[++r]);qB.__c&&qB.__c(t,e),e.some(function(t){try{e=t.__h,t.__h=[],e.some(function(e){e.call(t)})}catch(e){qB.__e(e,t.__v)}})}function DV(e){return typeof e!=`object`||!e||e.__b&&e.__b>0?e:aV(e)?e.map(DV):sV({},e)}function OV(e,t,n,r,i,a,o,s,c,l){var u,d,f,p,m,h,g,_,v=n.props,y=t.props,b=t.type;if(b==`svg`?i=`http://www.w3.org/2000/svg`:b==`math`?i=`http://www.w3.org/1998/Math/MathML`:i||=`http://www.w3.org/1999/xhtml`,a!=null){for(u=0;u<a.length;u++)if((m=a[u])&&`setAttribute`in m==!!b&&(b?m.localName==b:m.nodeType==3)){e=m,a[u]=null;break}}if(e==null){if(b==null)return l.createTextNode(y);e=l.createElementNS(i,b,y.is&&y),s&&=(qB.__m&&qB.__m(t,a),!1),a=null}if(b==null)v===y||s&&e.data==y||(e.data=y);else{if(a&&=oV.call(e.childNodes),v=n.props||rV,!s&&a!=null)for(v={},u=0;u<e.attributes.length;u++)v[(m=e.attributes[u]).name]=m.value;for(u in v)if(m=v[u],u!=`children`){if(u==`dangerouslySetInnerHTML`)f=m;else if(!(u in y)){if(u==`value`&&`defaultValue`in y||u==`checked`&&`defaultChecked`in y)continue;SV(e,u,null,m,i)}}for(u in _=1&n.__u,y)m=y[u],u==`children`?p=m:u==`dangerouslySetInnerHTML`?d=m:u==`value`?h=m:u==`checked`?g=m:s&&typeof m!=`function`||v[u]===m&&!_||SV(e,u,m,v[u],i);if(d)s||f&&(d.__html==f.__html||d.__html==e.innerHTML)||(e.innerHTML=d.__html),t.__k=[];else if(f&&(e.innerHTML=``),_V(b==`template`?e.content:e,aV(p)?p:[p],t,n,r,b==`foreignObject`?`http://www.w3.org/1999/xhtml`:i,a,o,a?a[0]:n.__k&&pV(n,0),s,c,l),a!=null)for(u=a.length;u--;)cV(a[u]);s||(u=`value`,b==`progress`&&h==null?e.removeAttribute(`value`):h==null||h===e[u]&&(b!==`progress`||h)||SV(e,u,h,v[u],i),u=`checked`,g!=null&&g!=e[u]&&SV(e,u,g,v[u],i))}return e}function kV(e,t,n){try{if(typeof e==`function`){var r=typeof e.__u==`function`;r&&e.__u(),r&&t==null||(e.__u=e(t))}else e.current=t}catch(e){qB.__e(e,n)}}function AV(e,t,n){var r,i;if(qB.unmount&&qB.unmount(e),(r=e.ref)&&(r.current&&r.current!=e.__e||kV(r,null,t)),(r=e.__c)!=null){if(r.componentWillUnmount)try{r.componentWillUnmount()}catch(e){qB.__e(e,t)}r.__P=null}if(r=e.__k)for(i=0;i<r.length;i++)r[i]&&AV(r[i],t,n||typeof e.type!=`function`);n||cV(e.__e),e.__e&&e.__e.__l&&(e.__e.__l=null),e.__e=e.__c=e.__=null}function jV(e,t,n){return this.constructor(e,n)}function MV(e,t){var n,r,i,a;t==document&&(t=document.documentElement),qB.__&&qB.__(e,t),r=(n=!!(e&&32&e.__u))?null:t.__k,e=t.__k=lV(dV,null,[e]),i=[],a=[],wV(t,e,r||rV,rV,t.namespaceURI,r?null:t.firstChild?oV.call(t.childNodes):null,i,r?r.__e:t.firstChild,n,a,t.ownerDocument),EV(i,e,a)}function NV(e,t){e.__u|=32,MV(e,t)}qB={__e:function(e,t,n,r){for(var i,a,o;t=t.__;)if((i=t.__c)&&!(1&i.__g)){i.__g|=4;try{if((a=i.constructor)&&a.getDerivedStateFromError!=null&&(i.setState(a.getDerivedStateFromError(e)),o=8&i.__g),i.componentDidCatch!=null&&(i.componentDidCatch(e,r||{}),o=8&i.__g),o)return void(i.__g|=2)}catch(t){e=t}}throw ZB=0,e}},JB=0,fV.prototype.setState=function(e,t){var n=this.__s!=null&&this.__s!=this.state?this.__s:this.__s=sV({},this.state);typeof e==`function`&&(e=e(sV({},n),this.props)),e&&sV(n,e),e!=null&&this.__v&&(t&&this._sb.push(t),hV(this))},fV.prototype.forceUpdate=function(e){this.__v&&(this.__g|=4,e&&this.__h.push(e),hV(this))},fV.prototype.render=dV,YB=[],ZB=0,QB=function(e,t){return e.__v.__b-t.__v.__b},$B=/(PointerCapture)$|Capture$/i,eV=0,tV=CV(!1),nV=CV(!0);var PV=0;Array.isArray;function Q(e,t,n,r,i,a){t||={};var o,s,c=t;if(`ref`in c&&typeof e!=`function`)for(s in c={},t)s==`ref`?o=t[s]:c[s]=t[s];var l={type:e,props:c,key:n,ref:o,__k:null,__:null,__b:0,__e:null,__c:null,constructor:void 0,__v:--PV,__i:-1,__u:0,__source:i,__self:a};return qB.vnode&&qB.vnode(l),l}var FV=16,IV=16,LV={};function RV({name:e,remappedFrom:t,token:n,width:r,height:i,viewBox:a,label:o,alignCapitals:s=!1}){"use no memo";let c=`#${e.replace(/^#/,``)}`,{width:l,height:u,viewBox:d}=LV[e]??{width:FV,height:IV},f=r??l,p=i??u,m=a??d??`0 0 ${l} ${u}`;return Q(`svg`,{"data-icon-name":t??e,"data-icon-token":n,"data-align-capitals":s,...o==null?{"aria-hidden":!0}:{"aria-label":o,role:`img`},viewBox:m,width:f,height:p,children:Q(`use`,{href:c})})}var zV=e=>e!==void 0&&/\s/.test(e),BV=(e,t)=>{let n=t=>zV(e[t-1])||zV(e[t]);if(!n(t))return t;for(let r=1;r<e.length;r++){let i=t-r;if(i>0&&!n(i))return i;let a=t+r;if(a<e.length&&!n(a))return a}return t},VV=e=>BV(e,Math.ceil(e.length/2)),HV=e=>{if(e.length<2)return[e,``];let t=VV(e);return[e.slice(0,t),e.slice(t)]},UV=e=>{if(e.length<4)return[e,``];let t=e.lastIndexOf(`.`)+1,n=e.length-t>10,r=t>=1&&!n?t:VV(e);return[e.slice(0,r),e.slice(r)]},WV=e=>{if(e.length<4)return[e,``];let t=e.lastIndexOf(`/`)+1,n=e.length-t>25,r=t>=1&&!n?t:Math.ceil(e.length/2);return[e.slice(0,r),e.slice(r)]},GV=(e,{splitIndex:t}={})=>{if(typeof t!=`number`){let t=Math.ceil(e.length/2);return[e.slice(0,t),e.slice(t)]}return[e.slice(0,t),e.slice(t)]},KV=(e,{splitOffset:t}={})=>{if(typeof t!=`number`||t<=0||t>=e.length){let t=Math.ceil(e.length/2);return[e.slice(0,t),e.slice(t)]}let n=e.length-t;return[e.slice(0,n),e.slice(n)]},qV=(e,{splitOffset:t}={})=>{if(typeof t!=`number`||t<=0||t>=e.length){let t=Math.ceil(e.length/2);return[e.slice(0,t),e.slice(t)]}let n=t;return[e.slice(0,n),e.slice(n)]};function JV({children:e,marker:t,variant:n=`default`}){"use no memo";return Q(`div`,{"aria-hidden":!0,"data-truncate-marker-cell":!0,children:Q(`div`,{"data-truncate-marker":!0,children:typeof t==`function`?t({children:e}):n===`fade`?Q(`span`,{"data-truncate-fade":!0}):t})})}function YV(e){"use no memo";let{mode:t,children:n}=e;return Q(`div`,{children:[Q(`div`,{"data-truncate-content":`visible`,children:t===`fruncate`?Q(`span`,{children:n}):n}),Q(`div`,{"data-truncate-content":`overflow`,"aria-hidden":!0,children:t===`fruncate`?Q(`span`,{children:n}):n})]})}function XV({children:e,mode:t=`truncate`,marker:n=`…`,variant:r=`default`,...i}){"use no memo";let a=Q(YV,{mode:t,children:e},`content`),o=Q(JV,{marker:n,mode:t,variant:r},`marker`),s=Q(`div`,{"data-truncate-fill":!0},`fill`);return Q(`div`,{"data-truncate-container":t,"data-truncate-variant":r,...i,children:Q(`div`,{"data-truncate-grid":!0,children:t===`truncate`?[a,o]:[o,a,s]})})}function ZV({children:e,...t}){"use no memo";return Q(XV,{mode:`truncate`,...t,children:e})}function QV({children:e,...t}){"use no memo";return Q(XV,{mode:`fruncate`,...t,children:e})}function $V({children:e,contents:t,priority:n=`end`,split:r=`center`,minimumLength:i=12,className:a,style:o,...s}){"use no memo";let c=null,l=null;if(Array.isArray(t)){if(t.length!==2)return console.error(`MiddleTruncate: contents must be an array of two items`),null;c=Q(ZV,{...s,children:t[0]}),l=Q(QV,{...s,children:t[1]})}else{if(typeof e!=`string`)return console.error(`MiddleTruncate: children must be a string`),null;if(e.length===0)return Q(`div`,{className:a,style:o});if(e.length<i)return Q(n===`end`?QV:ZV,{...s,className:a,style:o,children:e});let t=null,u=null,d=null;if(typeof r==`string`)r===`center`?t=HV:r===`extension`?t=UV:r===`leaf-path`&&(t=WV);else if(typeof r==`number`)t=GV,u=r;else if(Array.isArray(r)){let[e,n]=r;d=n,e===`last`?t=KV:e===`first`&&(t=qV)}else typeof r==`function`&&(t=r);t??=HV;let[f,p]=t(e,{priority:n,variant:s.variant,splitIndex:typeof u==`number`?u:void 0,splitOffset:typeof d==`number`?d:void 0}),m=f.length>=p.length,h=n===`equal`&&!m,g=n===`equal`&&m,_={},v={};h&&(_.marker=``),g&&(v.marker=``),c=Q(ZV,{...s,..._,children:f}),l=Q(QV,{...s,...v,children:p})}return Q(`div`,{"data-truncate-group-container":`middle`,className:a,style:o,children:[Q(`div`,{"data-truncate-segment-priority":n===`start`||n===`equal`?`1`:`2`,children:c}),Q(`div`,{"data-truncate-segment-priority":n===`end`||n===`equal`?`1`:`2`,children:l})]})}var eH={endIndex:-1,startIndex:-1};function tH(e,t,n){return Math.min(Math.max(e,t),n)}function nH(e,t){return e<0||t<e?eH:{endIndex:t,startIndex:e}}function rH(e){return e.startIndex<0||e.endIndex<e.startIndex}function iH(e,t){return rH(e)?0:(e.endIndex-e.startIndex+1)*t}function aH(e,t,n){if(t<=0)return-1;let r=t*n;return e<=0?0:e>=r?t:Math.floor(e/n)}function oH(e,t,n){return t<=0||e<=0?-1:e>=t*n?t-1:Math.ceil(e/n)-1}function sH(e){let t=new Map;return e.forEach((e,n)=>{if(e.kind!==`directory`||!e.isExpanded)return;let r=e.ancestorPaths.length,i=t.get(r);if(i==null){t.set(r,[n]);return}i.push(n)}),t}function cH(e,t){let n=0,r=e.length-1,i=-1;for(;n<=r;){let a=Math.floor((n+r)/2),o=e[a];if(o==null)break;if(o<=t){i=a,n=a+1;continue}r=a-1}return i}function lH(e){let t=new Map,n=[];for(let r=0;r<e.length;r+=1){let i=e[r];if(i==null)continue;let a=i.kind===`directory`&&i.isExpanded?[...i.ancestorPaths,i.path]:i.ancestorPaths,o=0;for(;o<n.length&&o<a.length&&n[o]===a[o];)o+=1;for(let e=n.length-1;e>=o;--e){let i=n[e];i!=null&&t.set(i,r-1)}n.length=o;for(let e=o;e<a.length;e+=1){let t=a[e];t!=null&&n.push(t)}}let r=e.length-1;for(let e of n)t.set(e,r);return t}function uH(e,t,n){if(e.length===0||t<=0)return[];let r=lH(e),i=sH(e),a=[];for(let r=0;r<e.length;r+=1){let o=i.get(r);if(o==null||o.length===0)break;let s=t+r*n,c=cH(o,Math.min(e.length-1,Math.floor(s/n))),l=null;for(;c>=0;){let t=o[c],n=t==null?null:e[t]??null;if(n!=null&&(r===0||n.ancestorPaths[r-1]===a[r-1]?.path)){l=n;break}--c}if(l==null)break;a.push(l)}return a.map((i,a)=>{let o=a*n,s=(r.get(i.path)??e.length-1)+1;if(s>=e.length)return{row:i,top:o};let c=s*n-t;return{row:i,top:Math.min(o,c-n)}}).filter(e=>e.top+n>0)}function dH(e,t){let n=t.totalRowCount??e.length,r=n*t.itemHeight,i=Math.max(0,t.viewportHeight),a=Math.max(0,Math.floor(t.overscan)),o=Math.max(0,r-i),s=tH(t.scrollTop,0,o),c=t.stickyRows??uH(e,s,t.itemHeight),l=c.reduce((e,n)=>Math.max(e,n.top+t.itemHeight),0),u=Math.min(r,s+l),d=Math.max(0,i-l),f=Math.max(0,r-u),p=aH(s,n,t.itemHeight),m=aH(u,n,t.itemHeight),h=l<=0||p<0||p>=n?-1:p,g=h===-1?-1:Math.min(n-1,m-1),_=h===-1||g<h?0:g-h+1,v=d<=0||m>=n?eH:nH(m,oH(u+d,n,t.itemHeight)),y=g+1,b=rH(v)?eH:nH(Math.max(y,v.startIndex-a),Math.min(n-1,v.endIndex+a)),x=iH(b,t.itemHeight);return{occlusion:{firstOccludedIndex:h,lastOccludedIndex:g,occludedCount:_},physical:{itemHeight:t.itemHeight,maxScrollTop:o,overscan:a,scrollTop:s,totalHeight:r,totalRowCount:n,viewportHeight:i},projected:{contentHeight:f,paneHeight:d,paneTop:u},sticky:{height:l,rows:c},visible:v,window:{endIndex:b.endIndex,height:x,offsetTop:rH(b)?0:b.startIndex*t.itemHeight,startIndex:b.startIndex}}}var fH={added:`A`,deleted:`D`,ignored:null,modified:`M`,renamed:`R`,untracked:`U`},pH={added:`Git status: added`,deleted:`Git status: deleted`,ignored:`Git status: ignored`,modified:`Git status: modified`,renamed:`Git status: renamed`,untracked:`Git status: untracked`},mH=`Contains git status items`;function hH(e){return e.current?!0:(e.current=!0,!1)}function gH(e){let{currentScrollTop:t,focusedIndex:n,itemHeight:r,topInset:i=0,viewportHeight:a}=e;if(n<0)return null;let o=Math.max(0,i),s=n*r,c=s+r;if(s<t+o){let e=Math.max(0,s-o);return e===t?null:e}if(c>t+a){let e=c-a;return e===t?null:e}return null}function _H(e){let{currentScrollTop:t,focusedIndex:n,itemHeight:r,offset:i,topInset:a=0,totalHeight:o,viewportHeight:s}=e;if(i===`nearest`)return gH({currentScrollTop:t,focusedIndex:n,itemHeight:r,topInset:a,viewportHeight:s});if(n<0)return null;let c=Math.max(0,a),l=n*r,u=Math.max(0,s-c),d=i===`center`?c+Math.max(0,(u-r)/2):c,f=Math.max(0,o-s),p=Math.max(0,Math.min(l-d,f));return p===t?null:p}function vH(e){let{currentScrollTop:t,focusedIndex:n,itemHeight:r,targetViewportOffset:i,totalHeight:a,viewportHeight:o}=e;if(n<0)return null;let s=Math.max(0,i),c=n*r,l=c+r,u=t+s,d=t+o;if(c>=u&&l<=d)return null;let f=Math.max(0,a-o),p=Math.max(0,Math.min(c-s,f));return p===t?null:p}function yH(e){if(e==null||!e.isConnected||e===document.body||e===document.documentElement)return!1;e.focus({preventScroll:!0});let t=e.getRootNode();return t instanceof ShadowRoot?t.activeElement===e:document.activeElement===e}function bH(e){let t=e.getRootNode();if(t instanceof ShadowRoot){let e=t.activeElement;return e instanceof HTMLElement?e:null}let n=document.activeElement;return n instanceof HTMLElement&&e.contains(n)?n:null}function xH(e,t){if(e==null)return t;let n=e.getBoundingClientRect().height;return n>0?n:e.clientHeight>0?e.clientHeight:t}function SH(e,t){return e!=null&&e>0?e:t}function CH(e){let t=e.borderBoxSize,n=Array.isArray(t)?t[0]:t;return n!=null&&Number.isFinite(n.blockSize)&&n.blockSize>0?n.blockSize:e.contentRect.height>0?e.contentRect.height:null}function wH(e,t,n,r,i=0){let a=gH({currentScrollTop:e.scrollTop,focusedIndex:t,itemHeight:n,topInset:i,viewportHeight:r});return a!=null&&(e.scrollTop=a,!0)}function TH(e,t,n,r,i,a,o=0){let s=_H({currentScrollTop:e.scrollTop,focusedIndex:t,itemHeight:n,offset:a,topInset:o,totalHeight:i,viewportHeight:r});return s!=null&&(e.scrollTop=s,!0)}function EH(e,t,n,r,i,a){let o=vH({currentScrollTop:e.scrollTop,focusedIndex:t,itemHeight:n,targetViewportOffset:a,totalHeight:i,viewportHeight:r});return o!=null&&(e.scrollTop=o,!0)}function DH(e,t,n,r){return n.end<n.start?null:e<n.start?-t:e>n.end?r:null}function OH(e){let{renamingPath:t,previousRenamingPath:n,hasRenderedInput:r}=e;return t==null?`reset`:r?n===t?`ignore`:`focus-input`:`reveal-canonical`}function kH({ariaLabel:e,isFlattened:t=!1,ref:n,value:r,onBlur:i,onInput:a}){return Q(`input`,{ref:n,"data-item-rename-input":!0,...t?{"data-item-flattened-rename-input":!0}:{},"aria-label":e,value:r,onBlur:i,onInput:a,onClick:e=>e.stopPropagation(),onMouseDown:e=>e.stopPropagation(),onPointerDown:e=>e.stopPropagation()})}function AH(e){let{row:t,mode:n,targetPath:r,ariaLabel:i,domId:a,isParked:o,itemHeight:s,features:c,state:l,extraStyle:u}=e,d=n===`sticky`,f=t.ancestorPaths.at(-1)??``,p={};return l.isFocusRinged&&(p[`data-item-focused`]=!0),t.isSelected&&(p[`data-item-selected`]=!0),l.isContextHovered&&(p[`data-item-context-hover`]=`true`),l.isDragTarget&&(p[`data-item-drag-target`]=!0),l.isDragging&&(p[`data-item-dragging`]=!0),l.effectiveGitStatus!=null&&(p[`data-item-git-status`]=l.effectiveGitStatus),l.containsGitChange&&(p[`data-item-contains-git-change`]=`true`),{"aria-expanded":!d&&t.kind===`directory`?t.isExpanded:void 0,"aria-haspopup":c.contextMenuEnabled?`menu`:void 0,"aria-label":i,"aria-level":d?void 0:t.level+1,"aria-posinset":d?void 0:t.posInSet+1,"aria-selected":d?void 0:t.isSelected?`true`:`false`,"aria-setsize":d?void 0:t.setSize,"data-file-tree-sticky-path":d?r:void 0,"data-file-tree-sticky-row":d?`true`:void 0,"data-item-context-menu-button-visibility":c.actionLaneEnabled?c.contextMenuButtonVisibility:void 0,"data-item-context-menu-trigger-mode":c.contextMenuEnabled?c.contextMenuTriggerMode:void 0,"data-item-has-context-menu-action-lane":c.actionLaneEnabled?`true`:void 0,"data-item-has-git-lane":c.gitLaneActive?`true`:void 0,"data-item-parent-path":f.length>0?f:void 0,"data-item-parked":o?`true`:void 0,"data-item-path":r,"data-item-type":t.kind===`directory`?`folder`:`file`,"data-type":`item`,id:d?void 0:a,role:d?void 0:`treeitem`,style:{minHeight:`${s}px`,...u},tabIndex:!d&&t.isFocused?0:-1,...p}}function jH(e){let{event:t,mode:n,isSearchOpen:r,isDirectory:i}=e,a=t.ctrlKey||t.metaKey,o=t.shiftKey||a,s=t.shiftKey?{additive:a,kind:`range`}:a?{kind:`toggle`}:{kind:`single`};return{closeSearch:r,revealCanonical:n===`sticky`,selection:s,toggleDirectory:!o&&i}}var MH,NH,PH,FH,IH=Object.is,LH=0,RH=[],zH=qB,BH=zH.__b,VH=zH.__r,HH=zH.diffed,UH=zH.__c,WH=zH.unmount,GH=zH.__;function KH(e,t){zH.__h&&zH.__h(NH,e,LH||t),LH=0;var n=NH.__H||(NH.__H={__:[],__h:[]});return e>=n.__.length&&n.__.push({}),n.__[e]}function qH(e){return LH=1,JH(aU,e)}function JH(e,t,n){var r=KH(MH++,2);if(r.t=e,!r.__c&&(r.__=[n?n(t):aU(void 0,t),function(e){var t=r.__N?r.__N[0]:r.__[0],n=r.t(t,e);IH(t,n)||(r.__N=[n,r.__[1]],r.__c.setState({}))}],r.__c=NH,!NH.__f)){var i=function(e,t,n){if(!r.__c.__H)return!0;var i=r.__c.__H.__.filter(function(e){return!!e.__c});if(i.every(function(e){return!e.__N}))return!a||a.call(this,e,t,n);var o=r.__c.props!==e;return i.forEach(function(e){if(e.__N){var t=e.__[0];e.__=e.__N,e.__N=void 0,IH(t,e.__[0])||(o=!0)}}),a&&a.call(this,e,t,n)||o};NH.__f=!0;var a=NH.shouldComponentUpdate,o=NH.componentWillUpdate;NH.componentWillUpdate=function(e,t,n){if(4&this.__g){var r=a;a=void 0,i(e,t,n),a=r}o&&o.call(this,e,t,n)},NH.shouldComponentUpdate=i}return r.__N||r.__}function YH(e,t){var n=KH(MH++,3);!zH.__s&&iU(n.__H,t)&&(n.__=e,n.u=t,NH.__H.__h.push(n))}function XH(e,t){var n=KH(MH++,4);!zH.__s&&iU(n.__H,t)&&(n.__=e,n.u=t,NH.__h.push(n))}function $(e){return LH=5,ZH(function(){return{current:e}},[])}function ZH(e,t){var n=KH(MH++,7);return iU(n.__H,t)&&(n.__=e(),n.__H=t,n.__h=e),n.__}function QH(e,t){return LH=8,ZH(function(){return e},t)}function $H(){for(var e;e=RH.shift();)if(e.__P&&e.__H)try{e.__H.__h.forEach(nU),e.__H.__h.forEach(rU),e.__H.__h=[]}catch(t){e.__H.__h=[],zH.__e(t,e.__v)}}zH.__b=function(e){NH=null,BH&&BH(e)},zH.__=function(e,t){e&&t.__k&&t.__k.__m&&(e.__m=t.__k.__m),GH&&GH(e,t)},zH.__r=function(e){VH&&VH(e),MH=0;var t=(NH=e.__c).__H;t&&(PH===NH?(t.__h=[],NH.__h=[],t.__.forEach(function(e){e.__N&&(e.__=e.__N),e.u=e.__N=void 0})):(t.__h.forEach(nU),t.__h.forEach(rU),t.__h=[],MH=0)),PH=NH},zH.diffed=function(e){HH&&HH(e);var t=e.__c;t&&t.__H&&(t.__H.__h.length&&(RH.push(t)!==1&&FH===zH.requestAnimationFrame||((FH=zH.requestAnimationFrame)||tU)($H)),t.__H.__.forEach(function(e){e.u&&(e.__H=e.u),e.u=void 0})),PH=NH=null},zH.__c=function(e,t){t.some(function(e){try{e.__h.forEach(nU),e.__h=e.__h.filter(function(e){return!e.__||rU(e)})}catch(n){t.some(function(e){e.__h&&=[]}),t=[],zH.__e(n,e.__v)}}),UH&&UH(e,t)},zH.unmount=function(e){WH&&WH(e);var t,n=e.__c;n&&n.__H&&(n.__H.__.forEach(function(e){try{nU(e)}catch(e){t=e}}),n.__H=void 0,t&&zH.__e(t,n.__v))};var eU=typeof requestAnimationFrame==`function`;function tU(e){var t,n=function(){clearTimeout(r),eU&&cancelAnimationFrame(t),setTimeout(e)},r=setTimeout(n,35);eU&&(t=requestAnimationFrame(n))}function nU(e){var t=NH,n=e.__c;typeof n==`function`&&(e.__c=void 0,n()),NH=t}function rU(e){var t=NH;e.__c=e.__(),NH=t}function iU(e,t){return!e||e.length!==t.length||t.some(function(t,n){return!IH(t,e[n])})}function aU(e,t){return typeof t==`function`?t(e):t}function oU(e,t=null,n=null){"use no memo";let r=e.flattenedSegments;return r==null||r.length===0?t??e.name:Q(`span`,{"data-item-flattened-subitems":!0,children:r.map((e,i)=>{let a=i===r.length-1;return Q(dV,{children:[Q(`span`,{"data-item-flattened-subitem":e.path,"data-item-flattened-subitem-drag-target":n===e.path?`true`:void 0,children:a&&t!=null?t:Q(ZV,{children:e.name})}),i<r.length-1?` / `:``]},e.path)})})}function sU(e){return e.isFlattened?e.flattenedSegments?.findLast(e=>e.isTerminal)?.path??e.path:e.path}function cU(e){let t=e.flattenedSegments;return t==null||t.length===0?e.name:t.map(e=>e.name).join(` / `)}function lU(e,t,n,r){return e.map((e,i)=>{let a=i*n,o=e.subtreeEndIndex+1;if(o>=r)return{row:e.row,top:a};let s=o*n-t;return{row:e.row,top:Math.min(a,s-n)}}).filter(e=>e.top+n>0)}function uU({controller:e,itemHeight:t,overscan:n,scrollTop:r,stickyFolders:i,viewportHeight:a}){let o=e.getVisibleCount(),s=i&&o>0?e.getStickyRowCandidates(r,t):[],c=s==null&&i&&o>0?e.getVisibleRows(0,o-1):[],l=dH(c,{itemHeight:t,overscan:n,scrollTop:r,stickyRows:s==null?void 0:lU(s,r,t,o),totalRowCount:o,viewportHeight:a}),u=i&&r<=0&&o>0?e.getStickyRowCandidates(1,t):[],d=u!=null&&r<=0?lU(u,1,t,o):i&&r<=0&&c.length>0?uH(c,1,t):l.sticky.rows;return{overlayHeight:d.reduce((e,n)=>Math.max(e,n.top+t),0),overlayRows:d,snapshot:l,visibleRows:c}}var dU=400,fU=40,pU=18;function mU(e,t,n){let r=e,i=document.elementFromPoint?.bind(document)??null,a=r.elementFromPoint?.(t,n)??i?.(t,n)??null;return e instanceof ShadowRoot&&(a==null||!e.contains(a))?hU(e,t,n):a instanceof HTMLElement?a:null}function hU(e,t,n){let r=Array.from(e.querySelectorAll(`[data-type="item"], [data-item-flattened-subitem]`));for(let e=r.length-1;e>=0;e--){let i=r[e],a=i.getBoundingClientRect();if(t>=a.left&&t<=a.right&&n>=a.top&&n<=a.bottom)return i}return null}function gU(e){let t=e?.closest?.(`[data-type="item"]`);if(!(t instanceof HTMLElement))return null;let n=t.dataset.itemPath??null;if(n==null)return null;let r=e?.closest?.(`[data-item-flattened-subitem]`),i=r instanceof HTMLElement?r.getAttribute(`data-item-flattened-subitem`)??null:null;if(i!=null&&i.endsWith(`/`))return{directoryPath:i,flattenedSegmentPath:i,hoveredPath:n,kind:`directory`};if(t.dataset.itemType===`folder`)return{directoryPath:n,flattenedSegmentPath:null,hoveredPath:n,kind:`directory`};let a=t.dataset.itemParentPath??null;return a==null||a.length===0?{directoryPath:null,flattenedSegmentPath:null,hoveredPath:n,kind:`root`}:{directoryPath:a,flattenedSegmentPath:null,hoveredPath:n,kind:`directory`}}function _U(e){let t=e.cloneNode(!0);return t.removeAttribute(`id`),t.dataset.fileTreeDragPreview=`true`,t.setAttribute(`aria-hidden`,`true`),t.tabIndex=-1,Object.assign(t.style,{boxShadow:`0 4px 12px rgba(0, 0, 0, 0.15)`,left:`0px`,margin:`0`,pointerEvents:`none`,position:`fixed`,top:`0px`,willChange:`transform`,zIndex:`10000`}),t}function vU(){return navigator.vendor!==`Apple Computer, Inc.`}function yU(e,t){let n=e-t.top;if(n<fU)return-Math.ceil((fU-Math.max(0,n))/fU*pU);let r=t.bottom-e;return r<fU?Math.ceil((fU-Math.max(0,r))/fU*pU):0}function bU(e,t){if(e!=null){let t=fH[e];return t==null?null:{text:t,title:pH[e]}}return t?{icon:{name:`file-tree-icon-dot`,width:6,height:6},title:mH}:null}function xU(e,t,n){if(t==null||t.size===0)return null;let r=[];for(let i=e.length-1;i>=0;--i){let a=e[i],o=n.get(a);if(o!=null){for(let e of r)n.set(e,o);return o?`ignored`:null}if(t.has(a)){n.set(a,!0);for(let e of r)n.set(e,!0);return`ignored`}r.push(a)}for(let e of r)n.set(e,!1);return null}function SU(e){return e!=null&&`toggle`in e}function CU(e){return e.code===`Space`||e.key===` `||e.key===`Spacebar`}function wU(e){return e.key.length===1&&/^[\p{L}\p{N}]$/u.test(e.key)&&!e.ctrlKey&&!e.metaKey&&!e.altKey}function TU(e){return e==null?``:`[data-item-section="spacing-item"][data-ancestor-path="${e.replaceAll(`\\`,`\\\\`).replaceAll(`"`,`\\"`)}"] { opacity: 1; }`}function EU(e){return e.shiftKey&&e.key===`F10`||e.key===`ContextMenu`}function DU(e,t){return t&&EU(e)||(e.ctrlKey||e.metaKey)&&CU(e)?!0:e.key===`ArrowDown`||e.key===`ArrowLeft`||e.key===`ArrowRight`||e.key===`ArrowUp`}var OU=new Set([`ArrowDown`,`ArrowLeft`,`ArrowRight`,`ArrowUp`,`End`,`Home`,`PageDown`,`PageUp`]);function kU(e){for(let t of e.composedPath())if(t instanceof HTMLElement&&(t.dataset.fileTreeContextMenuRoot===`true`||t.dataset.type===`context-menu-anchor`||t.dataset.type===`context-menu-trigger`||t.getAttribute(`slot`)===`context-menu`))return!0;return!1}function AU(e){return{bottom:e.bottom,height:e.height,left:e.left,right:e.right,top:e.top,width:e.width,x:e.x,y:e.y}}function jU(e,t){return{bottom:t,height:0,left:e,right:e,top:t,width:0,x:e,y:t}}function MU(e,t){if(e==null)return t.offsetTop;let n=t.getBoundingClientRect(),r=e.getBoundingClientRect();return n.top-r.top}function NU(e,t,n){if(n==null){e.delete(t);return}e.set(t,n)}function PU(e,t,n){if(e==null)return null;let r=t.get(e)??null;if(r!=null)return r;let i=n.get(e)??null;return i?.dataset.itemParked===`true`?null:i}function FU(e){if(e==null)return[];let t=[];for(let n of e.querySelectorAll(`button[data-file-tree-sticky-row="true"]`)){if(!(n instanceof HTMLElement))continue;let e=n.dataset.fileTreeStickyPath;e!=null&&t.push(e)}return t}function IU(e,t){if(e==null||t==null)return null;for(let n of e.querySelectorAll(`button[data-item-focused="true"][data-item-parked="true"]`))if(n instanceof HTMLElement&&n.dataset.itemPath===t)return n;return null}function LU(e,t,n,r,i,a,o){let s=Math.max(0,a-i),c=t?.getBoundingClientRect()??null,l=c==null||n==null?null:n.getBoundingClientRect().top-c.top,u=IU(e,r),d=c==null||u==null?null:u.getBoundingClientRect().top-c.top;return Math.max(0,Math.min(d??Math.max(l??0,s),Math.max(0,o-i)))}function RU(e,t){return{kind:e.kind,name:cU(e),path:t}}function zU(e){return e==null?void 0:`${e}__tree`}function BU(e,t,n){if(e!=null)return`${e}__focused-item-${encodeURIComponent(t)}${n?`__parked`:``}`}function VU(e){return e===`file-tree-icon-chevron`||e===`file-tree-icon-dot`||e===`file-tree-icon-file`||e===`file-tree-icon-lock`}function HU(e,t){if(e==null)return null;if(`text`in e)return e.parts==null?Q(`span`,{title:e.title,children:e.text}):Q(`span`,{title:e.title,children:e.parts.map((e,t)=>Q(`span`,{style:{color:e.color},children:e.text},t))});let n=typeof e.icon==`string`?VU(e.icon)?t(e.icon):{name:e.icon}:VU(e.icon.name)?(()=>{let n=t(e.icon.name),{name:r,...i}=e.icon;return{...n,...i}})():e.icon;return Q(`span`,{title:e.title,children:Q(RV,{...n})})}function UU(e){e!=null&&yH(e.querySelector([`button:not([disabled])`,`[href]`,`input:not([disabled])`,`select:not([disabled])`,`textarea:not([disabled])`,`[tabindex]:not([tabindex="-1"])`].join(`, `))??e)}function WU(e,t,{actionLaneEnabled:n=!1,customDecoration:r=null,decorationLaneEnabled:i=!1,dragTargetFlattenedSegmentPath:a=null,gitDecoration:o=null,gitLaneActive:s=!1,renameInput:c=null,showDecorativeActionAffordance:l=!1}={}){let u=sU(e);return Q(dV,{children:[e.depth>0?Q(`div`,{"data-item-section":`spacing`,children:Array.from({length:e.depth}).map((t,n)=>Q(`div`,{"data-item-section":`spacing-item`,"data-ancestor-path":e.ancestorPaths[n]},n))}):null,Q(`div`,{"data-item-section":`icon`,children:e.kind===`directory`?Q(RV,{...t(`file-tree-icon-chevron`)}):Q(RV,{...t(`file-tree-icon-file`,u)})}),Q(`div`,{"data-item-section":`content`,children:e.isFlattened?oU(e,c,a):c??Q($V,{minimumLength:5,split:`extension`,children:e.name})}),i?Q(`div`,{"data-item-section":`decoration`,children:r==null?null:HU(r,t)}):null,s?Q(`div`,{"data-item-section":`git`,children:HU(o,t)}):null,n?Q(`div`,{"data-item-section":`action`,children:l?Q(`span`,{"aria-hidden":`true`,"data-item-action-affordance":`decorative`,children:Q(RV,{...t(`file-tree-icon-ellipsis`)})}):null}):null]})}function GU(e,t,n,r={}){let{controller:i,renameView:a,visualFocusPath:o,contextHoverPath:s,draggedPathSet:c,dragTarget:l,dragAndDropEnabled:u,shouldSuppressContextMenu:d,handleRowDragStart:f,handleRowDragEnd:p,handleRowTouchStart:m,instanceId:h,itemHeight:g,gitStatusByPath:_,ignoredGitDirectories:v,ignoredInheritanceCache:y,directoriesWithGitChanges:b,gitLaneActive:x,contextMenuEnabled:S,contextMenuTriggerMode:C,contextMenuButtonTriggerEnabled:w,contextMenuButtonVisibility:T,contextMenuRightClickEnabled:E,registerRenameInput:ee,registerButton:D,resolveIcon:O,renderDecorationForRow:k,openContextMenuForRow:te,onRowClick:A,onKeyDown:j}=e,M=sU(t),{isParked:N=!1,mode:P=`flow`,style:F}=r,ne=P===`sticky`,I=_?.get(M)??null??xU(t.ancestorPaths,v,y),L=t.kind===`directory`&&(b?.has(M)??!1),R=k(t,M),re=bU(I,L),ie=S&&w,ae=R!=null||x||ie,z=ie&&T===`always`,oe=a.getPath()===M,B=oe?a.getValue():``,se=ne||!oe?null:Q(kH,{ref:ee,ariaLabel:`Rename ${cU(t)}`,isFlattened:t.isFlattened,value:B,onBlur:()=>{a.commit()},onInput:e=>{a.setValue(e.currentTarget.value)}}),V=WU(t,O,{actionLaneEnabled:ie,customDecoration:R,decorationLaneEnabled:ae,dragTargetFlattenedSegmentPath:l?.flattenedSegmentPath??null,gitDecoration:re,gitLaneActive:x,renameInput:se,showDecorativeActionAffordance:z}),H={...AH({ariaLabel:cU(t),domId:t.isFocused?BU(h,M,N):void 0,extraStyle:F,features:{actionLaneEnabled:ie,contextMenuButtonVisibility:ie?T:null,contextMenuEnabled:S,contextMenuTriggerMode:S?C:null,gitLaneActive:x},isParked:N,itemHeight:g,mode:P,row:t,state:{containsGitChange:L,effectiveGitStatus:I,isContextHovered:s===M,isDragTarget:l?.kind===`directory`&&l.directoryPath===M,isDragging:c?.has(M)===!0,isFocusRinged:t.isFocused&&o===M},targetPath:M}),key:n,onContextMenu:S||u?e=>{if(d()){e.preventDefault();return}S&&(e.preventDefault(),E&&(i.focusMountedPathFromInput(M),te(t,M,{anchorRect:jU(e.clientX,e.clientY),source:`right-click`})))}:void 0,onFocus:ne?void 0:()=>{i.focusMountedPathFromInput(M)},onKeyDown:ne?void 0:j,ref:e=>{D(M,e)}};return!ne&&oe?Q(`div`,{...H,children:V}):Q(`button`,{...H,type:`button`,draggable:u&&!N,onDragEnd:u&&!N?p:void 0,onDragStart:u&&!N?e=>{f(e,t,M)}:void 0,onMouseDown:e=>{if(ne){e.preventDefault();return}i.isSearchOpen()&&e.preventDefault()},onTouchStart:u&&!N?e=>{m(e,t,M)}:void 0,onClick:e=>{A(e,t,M,P)},children:V})}function KU(e,t,n){return t.end<t.start?[]:e.controller.getVisibleRows(t.start,t.end).filter(e=>!n.has(sU(e))).map((n,r)=>GU(e,n,t.start+r))}function qU({composition:e,controller:t,gitStatusByPath:n,ignoredGitDirectories:r,directoriesWithGitChanges:i,icons:a,instanceId:o,itemHeight:s=Iz,overscan:c=10,renamingEnabled:l=!1,renderRowDecoration:u,searchBlurBehavior:d=`close`,searchEnabled:f=!1,searchFakeFocus:p=!1,slotHost:m,stickyFolders:h=!1,initialViewportHeight:g=420}){"use no memo";let _=$(null),v=$(null),y=$(!1),b=$(null),x=$(null),S=$(null),C=$(null),w=$(null),T=$(new Map),E=$(new Map),ee=$(()=>{}),D=$(null),O=$(0),k=$(!1),te=$(null);te.current!==t&&(k.current=!1,te.current=t);let A=$(!1),j=$(null),M=$(null),N=$(!1),P=$(null),F=$(null),ne=$(null),I=$(null),L=$(null),R=$(null),re=$(null),ie=$(null),ae=$(!1),z=$(null),oe=$(null),B=$(null),se=$(null),V=ZH(()=>new Map,[]),[,H]=qH(0),ce=$(!1),[le,ue]=qH(null),[de,fe]=qH(null),[pe,me]=qH(null),[he,ge]=qH(null),[_e,ve]=qH(0),[U,ye]=qH(null),be=$(U);be.current=U;let xe=$(null),Se=$(null),Ce=$(null),we=$(null),Te=$(null),Ee=$(!1),De=()=>{Se.current=null,Ce.current=null,we.current=null},Oe=(e,t)=>{Se.current=e,Ce.current=null,we.current=t==null?null:{path:e,scrollTop:t}},ke=(e,t)=>{Se.current=null,Ce.current={path:e,viewportOffset:t},we.current=null},Ae=$(d===`retain`&&t.isSearchOpen()),[je,Me]=qH(p);YH(()=>{p||Me(!1)},[p]);let Ne=$(!1),Pe=QH(()=>{Ne.current=!0,Me(e=>e&&!1)},[]),[Fe,Ie]=qH(()=>uU({controller:t,itemHeight:s,overscan:c,scrollTop:0,stickyFolders:h,viewportHeight:g})),[Le,Re]=qH(!1);YH(()=>{Re(!0)},[]);let ze=e?.contextMenu?.enabled===!0||e?.contextMenu?.render!=null||e?.contextMenu?.onOpen!=null||e?.contextMenu?.onClose!=null,Be=e?.contextMenu?.triggerMode??(ze?`right-click`:`both`),Ve=Be===`both`||Be===`button`,He=e?.contextMenu?.buttonVisibility??`when-needed`,Ue=Be===`both`||Be===`right-click`;XH(()=>{let e=S.current;if(e==null)return;let t=e=>{if(!(e instanceof CustomEvent))return;let t=e.detail?.path??null;Te.current=t,fe(t),ge(t==null?null:`pointer`)},n=e=>{e instanceof CustomEvent&&(Ee.current=e.detail?.disabled===!0)};return e.addEventListener(`file-tree-debug-set-context-menu-trigger`,t),e.addEventListener(`file-tree-debug-set-scroll-suppression`,n),()=>{e.removeEventListener(`file-tree-debug-set-context-menu-trigger`,t),e.removeEventListener(`file-tree-debug-set-scroll-suppression`,n)}},[]);let We=QH((e,t)=>{NU(T.current,e,t)},[]),Ge=QH((e,t)=>{NU(E.current,e,t)},[]),Ke=QH(e=>{x.current=e},[]),qe=QH(e=>PU(e,E.current,T.current),[]),Je=n!=null||r!=null||i!=null,{resolveIcon:Ye}=ZH(()=>$F(a),[a]),Xe=t[DB](),Ze=Xe.getPath(),Qe=Ze!=null,$e=t.isSearchOpen(),et=t.getSearchValue(),W=t.getFocusedPath(),tt=t.getFocusedIndex(),nt=t.getScrollRequest(),rt=t.isDragAndDropEnabled(),it=t.getDragSession(),at=ZH(()=>it==null?null:new Set(it.draggedPaths),[it]),ot=it?.target??null,st=it?.primaryPath??null,ct=zU(o),{overlayHeight:lt,overlayRows:ut,snapshot:dt,visibleRows:ft}=Fe,pt=dt.physical.viewportHeight,mt=ZH(()=>({end:dt.window.endIndex,start:dt.window.startIndex}),[dt.window.endIndex,dt.window.startIndex]),ht=ut,gt=dt.sticky.rows,_t=dt.physical.totalHeight,vt=dt.sticky.height,yt=ZH(()=>new Set(gt.map(e=>sU(e.row))),[gt]),bt=tt>=0&&tt>=mt.start&&tt<=mt.end,xt=QH((e,t)=>u?.({item:RU(e,t),row:e})??null,[u]),St=QH(e=>yH(e==null?null:T.current.get(e)??null)?!0:yH(S.current),[]),Ct=QH(e=>{St(t.focusNearestPath(e))},[t,St]),wt=$(Ct);wt.current=Ct;let Tt=$(!0),Et=$(()=>{}),Dt=QH((t=!0)=>{let n=be.current;n!=null&&(Tt.current=Tt.current&&t,ye(null),e?.contextMenu?.onClose?.(),Tt.current&&Ct(n.path))},[e?.contextMenu,Ct]);Et.current=Dt;let Ot=QH(e=>{let t=e==null?null:MU(S.current,e);me(e=>e===t?e:t)},[]),kt=QH((e,n,r)=>{let i=t.getItem(n);if(i==null)return;let a=qe(n);if(a?.dataset.fileTreeStickyRow===`true`){let e=C.current;Oe(n,e?.scrollTop??null),A.current=!0,ue(e=>e===n?e:n)}i.focus(),Ot(a),Tt.current=!0,ye({anchorRect:r?.anchorRect??null,item:RU(e,n),path:n,source:r?.source??`keyboard`})},[t,qe,Ot]),At=QH(e=>{if(l){if(t.isSearchOpen()){let e=C.current,t=xH(e,pt);P.current=tt<0||e==null?null:Math.max(0,Math.min(tt*s-e.scrollTop,Math.max(0,t-s))),N.current=!0}t.startRenaming(e)!==!1&&(ge(`focus`),H(e=>e+1))}},[t,tt,s,l,pt]),jt=QH((e,{restoreTreeFocus:n=!0,targetOffset:r=`live-overlay`}={})=>{let i=C.current;if(i==null)return!1;t.focusPath(e);let a=t.getFocusedIndex();if(a<0)return!1;let o=t.getVisibleRows(a,a)[0]??null;if(o==null)return!1;let l=xH(i,pt),u=t.getVisibleCount()*s,d=r===`sticky-parents`?o.ancestorPaths.length*s:uU({controller:t,itemHeight:s,overscan:c,scrollTop:i.scrollTop,stickyFolders:h,viewportHeight:l}).snapshot.sticky.height;return A.current=!0,EH(i,a,s,l,u,d),ee.current(),xe.current=n?e:null,!0},[t,s,c,pt,h]),Mt=()=>y.current===!0||se.current!=null||ae.current===!0,Nt=e=>typeof window.requestAnimationFrame==`function`?window.requestAnimationFrame(()=>{e()}):window.setTimeout(e,16),Pt=e=>{if(e!=null){if(typeof window.cancelAnimationFrame==`function`){window.cancelAnimationFrame(e);return}window.clearTimeout(e)}},Ft=()=>{I.current!=null&&(clearTimeout(I.current),I.current=null),ne.current=null},It=()=>{R.current?.remove(),R.current=null},Lt=()=>{Pt(F.current),F.current=null,L.current=null},Rt=e=>{let t=S.current?.getRootNode();if(t instanceof ShadowRoot){t.append(e);return}document.body.append(e)},zt=()=>{ie.current?.(),ie.current=null,se.current!=null&&(clearTimeout(se.current),se.current=null),ae.current=!1,z.current=null,B.current=null,oe.current!=null&&(oe.current.setAttribute(`draggable`,`true`),oe.current.style.removeProperty(`touch-action`),oe.current=null),It(),Ft(),Lt(),re.current=null},Bt=(e,n)=>{let r=S.current?.getRootNode(),i=gU(mU(r instanceof ShadowRoot?r:document,e,n));return t.setDragTarget(i),t.getDragSession()?.target??null},Vt=e=>{let n=t.getDragAndDropConfig()?.openOnDropDelay??800;if(e==null||e.kind!==`directory`||e.directoryPath==null||n<=0){Ft();return}let r=t.getItem(e.directoryPath),i=SU(r)?r:null;if(i==null||i.isExpanded()){Ft();return}let a=`${e.directoryPath}::${e.flattenedSegmentPath??``}`;ne.current!==a&&(Ft(),ne.current=a,I.current=setTimeout(()=>{let n=t.getDragSession()?.target;n?.kind===`directory`&&n.directoryPath===e.directoryPath&&n.flattenedSegmentPath===e.flattenedSegmentPath&&i.expand()},n))},Ht=()=>{F.current=null;let e=L.current,n=C.current;if(e==null||n==null||t.getDragSession()==null)return;let r=n.getBoundingClientRect(),i=yU(e.clientY,r);if(i===0)return;let a=Math.max(0,n.scrollHeight-n.clientHeight),o=Math.max(0,Math.min(a,n.scrollTop+i));o!==n.scrollTop&&(n.scrollTop=o,ee.current()),Vt(Bt(e.clientX,e.clientY)),F.current=Nt(Ht)},Ut=(e,t)=>{L.current={clientX:e,clientY:t},F.current??=Nt(Ht)},Wt=(e,n,r)=>{let i=e.currentTarget;if(i!=null){if(zt(),It(),Ft(),Lt(),t.startDrag(r)===!1){e.preventDefault();return}if(re.current=n,e.dataTransfer!=null&&(e.dataTransfer.effectAllowed=`move`,e.dataTransfer.dropEffect=`move`,e.dataTransfer.setData(`text/plain`,r),vU())){let t=_U(i),n=i.getBoundingClientRect();Object.assign(t.style,{height:`${n.height}px`,opacity:`0.85`,transform:`translate3d(-9999px, 0px, 0)`,width:`${n.width}px`}),Rt(t),R.current=t,e.dataTransfer.setDragImage(t,Math.max(0,e.clientX-n.left),Math.max(0,e.clientY-n.top))}}},Gt=()=>{It(),Ft(),Lt(),re.current=null,t.cancelDrag()},Kt=(e,n,r)=>{if(se.current!=null||ae.current)return;let i=e.touches[0],a=e.currentTarget;if(i==null||a==null)return;B.current={clientX:i.clientX,clientY:i.clientY},oe.current=a,a.setAttribute(`draggable`,`false`);let o=(e={})=>{let t=e.restoreNativeDraggable??!ae.current;se.current!=null&&(clearTimeout(se.current),se.current=null),document.removeEventListener(`touchmove`,s),document.removeEventListener(`touchend`,c),document.removeEventListener(`touchcancel`,c),ie.current===o&&(ie.current=null),t&&(a.setAttribute(`draggable`,`true`),oe.current===a&&(oe.current=null),B.current=null)},s=e=>{let t=e.touches[0],n=B.current;if(t==null||n==null)return;let r=t.clientX-n.clientX,i=t.clientY-n.clientY;r*r+i*i<=100||o()},c=()=>{o()};document.addEventListener(`touchmove`,s,{passive:!0}),document.addEventListener(`touchend`,c),document.addEventListener(`touchcancel`,c),ie.current=o,se.current=setTimeout(()=>{if(o({restoreNativeDraggable:!1}),t.startDrag(r)===!1){a.setAttribute(`draggable`,`true`),oe.current===a&&(oe.current=null),B.current=null;return}ae.current=!0,oe.current=a,a.setAttribute(`draggable`,`false`),a.style.setProperty(`touch-action`,`none`),re.current=n;let e=a.getBoundingClientRect(),s=_U(a);Object.assign(s.style,{height:`${e.height}px`,opacity:`0.85`,transform:`translate3d(${e.left}px, ${e.top}px, 0)`,width:`${e.width}px`}),Rt(s),R.current=s,z.current={x:i.clientX-e.left,y:i.clientY-e.top};let c=e=>{let t=e.touches[0];if(t==null)return;e.preventDefault();let n=z.current;n!=null&&R.current!=null&&(R.current.style.transform=`translate3d(${t.clientX-n.x}px, ${t.clientY-n.y}px, 0)`),Vt(Bt(t.clientX,t.clientY)),Ut(t.clientX,t.clientY)},l=e=>{let n=e.changedTouches[0];n!=null&&Bt(n.clientX,n.clientY),t.completeDrag(),zt()},u=()=>{t.cancelDrag(),zt()};ie.current=()=>{document.removeEventListener(`touchmove`,c),document.removeEventListener(`touchend`,l),document.removeEventListener(`touchcancel`,u)},document.addEventListener(`touchmove`,c,{passive:!1}),document.addEventListener(`touchend`,l),document.addEventListener(`touchcancel`,u)},dU)},qt=e=>{if(U!=null){if(e.key===`Escape`){Dt(),e.preventDefault(),e.stopPropagation();return}OU.has(e.key)&&(e.preventDefault(),e.stopPropagation());return}if(Xe.isActive()){if(e.isComposing||e.keyCode===229)return;if(e.key===`Escape`)Xe.cancel();else if(e.key===`Enter`)Xe.commit();else return;ge(`focus`),H(e=>e+1),e.preventDefault(),e.stopPropagation();return}if(l&&e.key===`F2`){At(W??void 0),e.preventDefault(),e.stopPropagation();return}if($e){if(e.key===`Escape`)N.current=!1,P.current=null,t.closeSearch();else if(e.key===`Enter`){let e=t.getFocusedPath();e!=null&&t.selectOnlyPath(e);let n=C.current,r=xH(n,pt);P.current=tt<0||n==null?null:Math.max(0,Math.min(tt*s-n.scrollTop,Math.max(0,r-s))),N.current=!0,t.closeSearch()}else if(e.key===`ArrowDown`)t.focusNextSearchMatch();else if(e.key===`ArrowUp`)t.focusPreviousSearchMatch();else return;ge(`focus`),H(e=>e+1),e.preventDefault(),e.stopPropagation();return}if(f&&wU(e)){t.openSearch(e.key),H(e=>e+1),e.preventDefault(),e.stopPropagation();return}let n=ze&&EU(e),r=DU(e,ze),i=r&&S.current!=null?bH(S.current):null,a=r?new Set(FU(S.current)):new Set,o=i?.dataset.fileTreeStickyPath??null,c=i?.dataset.fileTreeStickyRow===`true`&&o!=null;if(c&&o!==W&&a.has(o)){let e=C.current;Oe(o,e?.scrollTop??null),t.focusPath(o)}let u=t.getFocusedPath(),d=t.getFocusedIndex(),p=t.getFocusedItem();if(p==null)return;let m=SU(p)?p:null,h=u!=null&&(yt.has(u)||c&&o===u&&a.has(u)),g=e.key===`ArrowDown`||e.key===`ArrowUp`||e.key===`ArrowRight`&&m!=null&&m.isExpanded(),_=e.key===`ArrowLeft`&&h&&m!=null&&m.isExpanded(),v=C.current,y=!0;if(e.shiftKey&&e.key===`ArrowDown`)t.extendSelectionFromFocused(1);else if(e.shiftKey&&e.key===`ArrowUp`)t.extendSelectionFromFocused(-1);else if(n&&u!=null&&d>=0){let e=t.getVisibleRows(d,d)[0]??null,n=PU(u,E.current,T.current);e==null||n==null?y=!1:kt(e,u)}else if((e.ctrlKey||e.metaKey)&&CU(e))t.toggleFocusedSelection();else if((e.ctrlKey||e.metaKey)&&e.key.toLowerCase()===`a`)t.selectAllVisiblePaths();else switch(e.key){case`ArrowDown`:t.focusNextItem();break;case`ArrowUp`:t.focusPreviousItem();break;case`ArrowRight`:m==null||m.isExpanded()?t.focusNextItem():m.expand();break;case`ArrowLeft`:m!=null&&m.isExpanded()?m.collapse():t.focusParentItem();break;case`Home`:t.focusFirstItem();break;case`End`:t.focusLastItem();break;default:y=!1}if(!y)return;ge(`focus`);let b=t.getFocusedPath(),x=b!=null&&(yt.has(b)||a.has(b)),w=g&&b!==u,ee=n&&c&&o===u&&b===u;if((h||ee)&&b!=null&&(w&&x||ee))Oe(b,v?.scrollTop??null),A.current=!0,ue(e=>e===b?e:b);else{let t=e.key===`ArrowUp`&&h&&b!==u;b!=null&&(t||_&&b===u)?(ke(b,LU(S.current,v,i,u,s,vt,pt)),A.current=!0,ue(e=>e===b?e:b)):De()}H(e=>e+1),e.preventDefault(),e.stopPropagation()};XH(()=>{if(f&&$e){if(Ae.current){Ae.current=!1;return}yH(w.current)}},[$e,f]),XH(()=>{let e=x.current;switch(OH({hasRenderedInput:e!=null,previousRenamingPath:M.current,renamingPath:Ze})){case`reset`:M.current=null;return;case`reveal-canonical`:Ze!=null&&jt(Ze,{restoreTreeFocus:!1,targetOffset:`live-overlay`});return;case`ignore`:return;case`focus-input`:e!=null&&(xe.current=null,M.current=Ze,yH(e),e.select());return}},[mt.end,mt.start,Ze,jt,yt]),XH(()=>{let e=S.current;if(e==null)return;let t=null,n=()=>{t!=null&&(clearTimeout(t),t=null)},r=()=>{let t=bH(e)?.dataset.itemPath??null;ue(e=>e===t?e:t)},i=()=>{n(),A.current=!0,r()},a=i=>{let a=i.relatedTarget;if(a==null){n(),t=setTimeout(()=>{if(t=null,bH(e)!=null){r();return}A.current=!1,ue(null)},0);return}if(!(a instanceof Node)||!e.contains(a)){n(),A.current=!1,ue(null);return}let o=a instanceof HTMLElement?a.dataset.itemPath??null:null;ue(e=>e===o?e:o)};return e.addEventListener(`focusin`,i),e.addEventListener(`focusout`,a),()=>{n(),e.removeEventListener(`focusin`,i),e.removeEventListener(`focusout`,a)}},[]),XH(()=>{let e=S.current;e!=null&&(dt.physical.scrollTop<=0?e.dataset.scrollAtTop=`true`:delete e.dataset.scrollAtTop)},[dt.physical.scrollTop]),XH(()=>{let e=null,n=C.current,r=b.current,i=S.current;if(n==null)return;D.current=xH(n,g);let a=()=>{let e=t.getVisibleCount(),r=SH(D.current,g),i=Math.max(0,e*s-r);n.scrollTop>i&&(n.scrollTop=i),Ie(uU({controller:t,itemHeight:s,overscan:c,scrollTop:Math.min(n.scrollTop,i),stickyFolders:h,viewportHeight:r}))};if(!k.current){k.current=!0;let e=t.getFocusedIndex();if(e>=0){let r=SH(D.current,g),i=t.getVisibleRows(e,e)[0]??null;wH(n,e,s,r,h&&i!=null?Math.max(0,Math.min(i.ancestorPaths.length*s,Math.max(0,r-s))):0)}}ee.current=a;let o=t.subscribe(()=>{hH(ce)&&H(e=>e+1),a()}),l=()=>{Ee.current!==!0&&(r!=null&&(r.dataset.isScrolling??=``),i!=null&&(i.dataset.isScrolling??=``),y.current=!0,e!=null&&clearTimeout(e),e=setTimeout(()=>{r!=null&&delete r.dataset.isScrolling,i!=null&&delete i.dataset.isScrolling,y.current=!1,ve(e=>e+1),e=null},50))},u=null,d=()=>{i!=null&&delete i.dataset.overlayReveal,u!=null&&(clearTimeout(u),u=null)},f=()=>{i!=null&&Ee.current!==!0&&(n.scrollTop>0||(i.dataset.overlayReveal=`true`,u!=null&&clearTimeout(u),u=setTimeout(()=>{d()},200)))},p=()=>{if(a(),n.scrollTop>0&&d(),be.current!=null&&y.current&&Et.current(),Ee.current===!0){y.current=!1;return}fe(e=>e==null?e:null),l()},m=()=>{l(),f()},_=new Set([`ArrowUp`,`ArrowDown`,`ArrowLeft`,`ArrowRight`,`PageUp`,`PageDown`,`Home`,`End`,` `,`Spacebar`]),v=e=>{_.has(e.key)&&m()};n.addEventListener(`scroll`,p,{passive:!0}),n.addEventListener(`wheel`,m,{passive:!0}),n.addEventListener(`touchmove`,m,{passive:!0}),n.addEventListener(`keydown`,v);let x=typeof ResizeObserver<`u`?new ResizeObserver(e=>{D.current=(e[0]==null?null:CH(e[0]))??xH(n,g),a()}):null;return x?.observe(n),()=>{ee.current=()=>{},o(),n.removeEventListener(`scroll`,p),n.removeEventListener(`wheel`,m),n.removeEventListener(`touchmove`,m),n.removeEventListener(`keydown`,v),e!=null&&clearTimeout(e),u!=null&&clearTimeout(u),r!=null&&delete r.dataset.isScrolling,i!=null&&(delete i.dataset.isScrolling,delete i.dataset.overlayReveal),y.current=!1,D.current=null,x?.disconnect()}},[t,g,s,c,h]),XH(()=>{ze||U==null||Dt(!1)},[Dt,ze,U]);let Jt=ZH(()=>U==null?null:`${U.path}::${U.source}`,[U]);XH(()=>{if(Jt==null){m?.clearSlotContent(GF);return}let t=be.current;if(t==null)return;let n=v.current??_.current;if(n==null)return;let r={anchorElement:n,anchorRect:t.anchorRect??AU(n.getBoundingClientRect()),close:e=>{Et.current(e?.restoreFocus??!0)},restoreFocus:()=>{Tt.current&&wt.current(be.current?.path??null)}},i=e?.contextMenu?.render?.(t.item,r)??null;return m?.setSlotContent(GF,i),e?.contextMenu?.onOpen?.(t.item,r),UU(i),queueMicrotask(()=>{i!=null&&i.isConnected&&document.activeElement===i&&UU(i)}),()=>{m?.clearSlotContent(GF)}},[Jt,e?.contextMenu,m]),XH(()=>{U!=null&&t.getItem(U.path)==null&&Dt()},[Dt,U,t]),XH(()=>{if(U==null)return;let e=S.current?.getRootNode(),t=e instanceof ShadowRoot?e.host:S.current,n=e=>{let n=e.target;n instanceof Node&&(kU(e)||_.current?.contains(n)!==!0&&t?.contains(n)!==!0&&Dt())},r=e=>{e.key===`Escape`&&(e.preventDefault(),e.stopPropagation(),Dt())};return document.addEventListener(`mousedown`,n,!0),document.addEventListener(`keydown`,r,!0),()=>{document.removeEventListener(`mousedown`,n,!0),document.removeEventListener(`keydown`,r,!0)}},[Dt,U]),XH(()=>{let e=C.current,n=S.current;if(e==null||n==null){j.current=W;return}let r=W==null?null:T.current.get(W)??null,i=bH(n),a=i?.dataset.itemPath??null,o=Qe&&x.current===i,c=f&&w.current===i,l=N.current&&!$e,u=P.current??0,d=xe.current,p=Se.current,m=Ce.current,g=we.current,_=i!=null,v=A.current||_,y=j.current!==W,b=p!=null&&p===W&&W!=null,E=!1,D=!1;if(nt!=null&&nt.id!==O.current){O.current=nt.id;let n=nt.visibleIndex,r=t.getVisibleRows(n,n)[0]??null;if(r!=null){let t=h?Math.max(0,Math.min(r.ancestorPaths.length*s,Math.max(0,pt-s))):vt;E=!0,D=TH(e,n,s,pt,_t,nt.offset,t)}t.clearScrollRequest(nt.id)}let k=!E&&l&&EH(e,tt,s,pt,_t,u),te=!E&&d!=null&&d===W&&EH(e,tt,s,pt,_t,vt),M=!E&&m!=null&&m.path===W&&EH(e,tt,s,pt,_t,m.viewportOffset),F=!E&&g!=null&&g.path===W&&e.scrollTop!==g.scrollTop;if(F&&(e.scrollTop=g.scrollTop),(F||D||te||M||k||v&&y&&d!==W&&!b&&wH(e,tt,s,pt,vt))&&ee.current(),E){j.current=W;return}if(!v){j.current=W;return}if(o){j.current=W;return}if(c&&!l){j.current=W;return}if(r==null){l&&tt>=0&&(EH(e,tt,s,pt,_t,u),ee.current()),j.current=W;return}(y||l||d===W||p===W||m?.path===W||g?.path===W||a==null||a!==W)&&(yH(r),d===W&&(xe.current=null),p===W&&(Se.current=null),m?.path===W&&(Ce.current=null),g?.path===W&&(we.current=null),N.current=!1,P.current=null),j.current=W},[t,tt,W,bt,s,Qe,$e,mt,pt,f,nt,h,vt,_t,ft]);let Yt=tt>=0&&tt>=dt.visible.startIndex&&tt<=dt.visible.endIndex,Xt=W!=null&&ht.some(e=>sU(e.row)===W),Zt=Yt||Xt,Qt=Ve&&A.current===!0&&Zt?W:null,$t=he===`pointer`?de:null,en=U?.path??Te.current??$t??Qt??de,tn=U?.source===`right-click`;XH(()=>{y.current&&U==null||Ot(qe(en))},[U,qe,mt,pt,_e,ht,en,Ot,ft]);let nn=QH(e=>{if(y.current||kU(e))return;let t=e.target;if(!(t instanceof HTMLElement)||t.closest?.(`[data-type="context-menu-trigger"]`)!=null)return;let n=t.closest?.(`[data-file-tree-sticky-row="true"]`),r=t.closest?.(`[data-type="item"]`),i=n instanceof HTMLElement?n.dataset.fileTreeStickyPath??null:r instanceof HTMLElement?r.dataset.itemPath??null:null;i!=null&&ge(e=>e===`pointer`?e:`pointer`),fe(e=>e===i?e:i)},[]),rn=QH(()=>{fe(null)},[]);XH(()=>{if(!rt)return;let e=()=>{zt(),t.cancelDrag()};return window.addEventListener(`dragend`,e),()=>{window.removeEventListener(`dragend`,e),zt(),t.cancelDrag()}},[t,rt]);let an=e=>{if(!rt||t.getDragSession()==null||ae.current)return;let n=gU(e.target instanceof HTMLElement?e.target:null);t.setDragTarget(n),Vt(t.getDragSession()?.target??null),Ut(e.clientX,e.clientY),e.dataTransfer!=null&&(e.dataTransfer.dropEffect=`move`),e.preventDefault()},on=e=>{if(!rt||t.getDragSession()==null||ae.current)return;let n=e.relatedTarget;n instanceof Node&&S.current?.contains(n)===!0||(Ft(),Lt(),t.setDragTarget(null))},sn=e=>{rt&&t.getDragSession()!=null&&!ae.current&&(e.preventDefault(),Bt(e.clientX,e.clientY),t.completeDrag(),It(),Ft(),Lt(),re.current=null)},cn=dt.window.height,ln=dt.window.offsetTop,un=Math.min(0,pt-cn),dn=Math.min(0,pt-cn-vt),fn=le===W||N.current,pn=W!=null&&fn&&!bt&&tt>=0?ft[tt]??t.getVisibleRows(tt,tt)[0]??null:null,mn=pn==null?null:DH(tt,s,mt,cn),hn=re.current,gn=st!=null&&hn!=null&&hn.path===st&&hn.index>=mt.start&&hn.index<=mt.end,_n=st!=null&&hn!=null&&hn.path===st&&!gn&&hn.path!==pn?.path?hn:null,vn=_n==null?null:DH(_n.index,s,mt,cn),yn=TU((tt>=0?ft[tt]??t.getVisibleRows(tt,tt)[0]??null:null)?.ancestorPaths.at(-1)??null),bn=$e&&W!=null?BU(o,W,!bt):void 0,xn=U?.path??($e?W:le),Sn=U?.path??de,Cn=qe(en),wn=ze&&Ve&&!tn&&!Qe&&Cn!=null&&pe!=null&&en!=null,Tn=ze&&(wn||U!=null),En=U?.anchorRect,Dn=En==null&&Cn!=null&&pe!=null&&(U!=null||wn)?pe:null,On=En==null?Dn==null?void 0:{top:`${Dn}px`}:{left:`${En.left}px`,position:`fixed`,right:`auto`,top:`${En.top}px`},kn=tn?{opacity:`0`}:void 0,An=QH((e,n,r,i)=>{let a=jH({event:{ctrlKey:e.ctrlKey,metaKey:e.metaKey,shiftKey:e.shiftKey},isDirectory:n.kind===`directory`,isSearchOpen:$e,mode:i}),o=a.toggleDirectory&&n.kind===`directory`,s=o?t.resolveMountedDirectoryPathFromInput(r):null;if(o&&s==null)return;let c=s??r;switch(a.selection.kind){case`range`:t.selectPathRange(c,a.selection.additive);break;case`toggle`:t.togglePathSelectionFromInput(c);break;case`single`:t.selectOnlyMountedPathFromInput(c)}let l=e.currentTarget instanceof HTMLElement?e.currentTarget:null,u=n.index>=dt.visible.startIndex&&n.index<=dt.visible.endIndex,d=i===`flow`&&u&&l!=null&&l.dataset.itemParked!==`true`;t.focusMountedPathFromInput(c),d&&(A.current=!0,ue(e=>e===c?e:c),ge(`focus`)),o&&t.toggleMountedDirectoryFromInput(c),a.closeSearch&&t.closeSearch(),a.revealCanonical&&jt(c,{targetOffset:`sticky-parents`})},[t,$e,dt.visible.endIndex,dt.visible.startIndex,jt]),jn=()=>{if(y.current||!Ve||en==null||Cn==null)return;let e=t.getItem(en);e!=null&&(Ot(Cn),Tt.current=!0,ye({anchorRect:null,item:{kind:e.isDirectory()?`directory`:`file`,name:Cn.getAttribute(`aria-label`)??en,path:e.getPath()},path:e.getPath(),source:`button`}))},Mn={contextHoverPath:Sn,contextMenuButtonTriggerEnabled:Ve,contextMenuButtonVisibility:He,contextMenuEnabled:ze,contextMenuRightClickEnabled:Ue,contextMenuTriggerMode:Be,controller:t,directoriesWithGitChanges:i,dragAndDropEnabled:rt,draggedPathSet:at,dragTarget:ot,gitLaneActive:Je,gitStatusByPath:n,handleRowDragEnd:Gt,handleRowDragStart:Wt,handleRowTouchStart:Kt,ignoredGitDirectories:r,ignoredInheritanceCache:V,instanceId:o,itemHeight:s,onKeyDown:qt,onRowClick:An,openContextMenuForRow:kt,registerButton:We,registerRenameInput:Ke,renameView:Xe,renderDecorationForRow:xt,resolveIcon:Ye,shouldSuppressContextMenu:Mt,visualFocusPath:xn},Nn={...Mn,registerButton:Ge};return Q(`div`,{ref:S,id:ct,"data-file-tree-context-menu-button-visibility":ze&&Ve?He:void 0,"data-file-tree-context-menu-trigger-mode":ze?Be:void 0,"data-file-tree-has-context-menu-action-lane":ze&&Ve?`true`:void 0,"data-file-tree-has-git-lane":Je?`true`:void 0,"data-file-tree-virtualized-root":`true`,onDragLeave:rt?on:void 0,onDragOver:rt?an:void 0,onDrop:rt?sn:void 0,onKeyDown:qt,onPointerLeave:ze?rn:void 0,onPointerOver:ze?nn:void 0,role:`tree`,tabIndex:-1,style:{outline:`none`,position:`relative`},children:[Q(`style`,{"data-file-tree-guide-style":`true`,dangerouslySetInnerHTML:{__html:yn}}),Q(`slot`,{name:WF,"data-type":`header-slot`}),f?Q(`div`,{"data-file-tree-search-container":!0,"data-open":$e?`true`:`false`,children:Q(`input`,{ref:w,"aria-activedescendant":bn,"aria-controls":ct,placeholder:`Search…`,"data-file-tree-search-input":!0,"data-file-tree-search-input-fake-focus":je?`true`:void 0,value:et,onBlur:()=>{(d!==`retain`||Ne.current)&&t.closeSearch()},onFocus:Pe,onPointerDown:Pe,onInput:e=>{Pe();let n=e.currentTarget;t.setSearch(n.value)}})}):null,Q(`div`,{ref:C,"data-file-tree-virtualized-scroll":`true`,children:[h&&Le&&ht.length>0?Q(`div`,{"aria-hidden":`true`,"data-file-tree-sticky-overlay":`true`,children:Q(`div`,{"data-file-tree-sticky-overlay-content":`true`,style:{height:`${lt}px`},children:ht.map((e,t)=>GU(Nn,e.row,`sticky:${sU(e.row)}`,{mode:`sticky`,style:{left:`0`,position:`absolute`,right:`0`,top:`${e.top}px`,zIndex:`${ht.length-t}`}}))})}):null,Q(`div`,{ref:b,"data-file-tree-virtualized-list":`true`,style:{height:`${_t}px`},children:[Q(`div`,{"data-file-tree-virtualized-sticky-offset":`true`,"aria-hidden":`true`,style:{height:`${ln}px`}}),Q(`div`,{"data-file-tree-virtualized-sticky":`true`,style:{height:`${cn}px`,top:`${un}px`,bottom:`${dn}px`},children:[KU(Mn,mt,yt),pn!=null&&mn!=null?GU(Mn,pn,`parked:${pn.path}`,{isParked:!0,style:{left:`0`,opacity:`0`,pointerEvents:st===pn.path?`none`:void 0,position:`absolute`,right:`0`,top:`${mn}px`}}):null,_n!=null&&vn!=null?GU(Mn,_n,`parked-drag:${_n.path}`,{isParked:!0,style:{left:`0`,opacity:`0`,pointerEvents:`none`,position:`absolute`,right:`0`,top:`${vn}px`}}):null]})]})]}),ze?Q(`div`,{ref:_,"data-type":`context-menu-anchor`,"data-visible":Tn?`true`:`false`,style:On,children:[Q(`button`,{ref:v,type:`button`,"data-type":KF,"aria-label":`Options`,"aria-haspopup":`menu`,"aria-expanded":U==null?`false`:`true`,"data-visible":wn?`true`:`false`,onMouseDown:e=>{e.preventDefault()},onClick:e=>{if(e.preventDefault(),e.stopPropagation(),U!=null){Dt();return}jn()},tabIndex:-1,style:kn,children:Q(RV,{...Ye(`file-tree-icon-ellipsis`)})}),U==null?null:Q(`slot`,{name:GF})]}):null,U==null?null:Q(`div`,{"data-type":`context-menu-wash`,"aria-hidden":`true`,onMouseDownCapture:e=>{e.preventDefault(),Dt()},onTouchStartCapture:e=>{e.preventDefault(),e.stopPropagation(),Dt()},onTouchMoveCapture:e=>{e.preventDefault(),e.stopPropagation()},onWheelCapture:e=>{e.preventDefault(),e.stopPropagation()}})]})}var JU={hydrateRoot:(e,t)=>{NV(lV(qU,t),e)},renderRoot:(e,t)=>{MV(lV(qU,t),e)},unmountRoot:e=>{MV(null,e)}};function YU(e,t){JU.renderRoot(e,t)}function XU(e,t){JU.hydrateRoot(e,t)}function ZU(e){JU.unmountRoot(e)}var QU=class{#e=new Map;#t=null;clearAll(){for(let e of this.#e.values())e.remove();this.#e.clear()}clearSlotContent(e){let t=this.#n(e);t!=null&&(t.remove(),this.#e.delete(e))}setHost(e){if(this.#t=e,e!=null){this.#i(e);for(let[e,t]of this.#e)this.#r(e,t)}}setSlotContent(e,t){let n=this.#n(e);if(n===t){t!=null&&(this.#e.set(e,t),this.#r(e,t));return}if(n?.remove(),t==null){this.#e.delete(e);return}this.#e.set(e,t),this.#r(e,t)}setSlotHtml(e,t){let n=t?.trim()??``;if(n.length===0){this.setSlotContent(e,null);return}let r=this.#n(e);if(r!=null&&r.innerHTML===n){this.#e.set(e,r),this.#r(e,r);return}let i=document.createElement(`div`);i.innerHTML=n,this.setSlotContent(e,i)}#n(e){let t=this.#e.get(e)??null;if(t!=null)return t;let n=this.#t;if(n==null)return null;for(let t of Array.from(n.children))if(t instanceof HTMLElement&&t.dataset.fileTreeManagedSlot===e)return t;return null}#r(e,t){t.slot=e,t.dataset.fileTreeManagedSlot=e,this.#t!=null&&t.parentNode!==this.#t&&this.#t.appendChild(t)}#i(e){for(let t of Array.from(e.children)){if(!(t instanceof HTMLElement))continue;let e=t.dataset.fileTreeManagedSlot;e==null||this.#e.has(e)||this.#e.set(e,t)}}};function $U(e,t,n){if(!e.s){if(n instanceof eW){if(!n.s)return void(n.o=$U.bind(null,e,t));1&t&&(t=n.s),n=n.v}if(n&&n.then)return void n.then($U.bind(null,e,t),$U.bind(null,e,2));e.s=t,e.v=n;let r=e.o;r&&r(e)}}var eW=function(){function e(){}return e.prototype.then=function(t,n){var r=new e,i=this.s;if(i){var a=1&i?t:n;if(a){try{$U(r,1,a(this.v))}catch(e){$U(r,2,e)}return r}return this}return this.o=function(e){try{var i=e.v;1&e.s?$U(r,1,t?t(i):i):n?$U(r,1,n(i)):$U(r,2,i)}catch(e){$U(r,2,e)}},r},e}();Array.isArray;var tW=0;function nW(e){return e!=null&&e.length>0?e:(tW+=1,`pst_ft_${tW}`)}function rW({initialVisibleRowCount:e,itemHeight:t}){return e==null?420:Math.max(0,e)*(t??Iz)}function iW(e){if(typeof document>`u`)return;let t=document.createElement(`div`);t.innerHTML=e;let n=t.querySelector(`svg`);return n instanceof SVGElement?n:void 0}function aW(e){return e.querySelector(`#file-tree-icon-chevron`)instanceof SVGElement&&e.querySelector(`#file-tree-icon-file`)instanceof SVGElement&&e.querySelector(`#file-tree-icon-dot`)instanceof SVGElement&&e.querySelector(`#file-tree-icon-lock`)instanceof SVGElement}function oW(e){return Array.from(e.children).filter(e=>e instanceof SVGElement)}var sW=class{static LoadedCustomComponent=!0;#e;#t;#n;#r;#i;#a;#o;#s;#c;#l=new QU;#u;#d;#f;#p;#m;#h;#g;#_;#v;#y=null;#b;#x=!1;#S=!1;constructor(e){let{composition:t,density:n,fileTreeSearchMode:r,gitStatus:i,id:a,initialSearchQuery:o,icons:s,itemHeight:c,onSearchChange:l,onSelectionChange:u,overscan:d,renderRowDecoration:f,renaming:p,search:m,searchBlurBehavior:h,searchFakeFocus:g,stickyFolders:_,unsafeCSS:v,initialVisibleRowCount:y,...b}=e;this.#e=t,this.#n=nW(a),this.#p=RB(i),this.#m=s,this.#h=v,this.#r=u,this.#i=f,this.#a=p!=null&&p!==!1,this.#o=h,this.#s=m===!0,this.#c=g===!0,this.#u=Fz(n,c),this.#d={itemHeight:this.#u.itemHeight,overscan:d,stickyFolders:_,initialVisibleRowCount:y},this.#t=new NB({...b,fileTreeSearchMode:r,initialSearchQuery:o,onSearchChange:l,renaming:p}),this.#v=this.#t.getSelectionVersion(),this.#y=this.#r==null?null:this.subscribe(()=>{this.#D()})}unmount(){this.#b!=null&&(ZU(this.#b),delete this.#b.dataset.fileTreeVirtualizedWrapper,this.#b=void 0),this.#l.clearAll(),this.#l.setHost(null),this.#f!=null&&(delete this.#f.dataset.fileTreeVirtualized,this.#I(this.#f),this.#f=void 0)}cleanUp(){this.unmount(),this.#y?.(),this.#y=null,this.#t.destroy()}getFileTreeContainer(){return this.#f}getItem(e){return this.#t.getItem(e)}getFocusedItem(){return this.#t.getFocusedItem()}getFocusedPath(){return this.#t.getFocusedPath()}getFocusedIndex(){return this.#t.getFocusedIndex()}getVisibleCount(){return this.#t.getVisibleCount()}getVisibleRows(e,t){return this.#t.getVisibleRows(e,t)}getSelectedPaths(){return this.#t.getSelectedPaths()}getComposition(){return this.#e}getItemHeight(){return this.#u.itemHeight}getDensityFactor(){return this.#u.factor}subscribe(e){let t=!1;return this.#t.subscribe(()=>{if(!t){t=!0;return}e()})}focusPath(e){this.#t.focusPath(e)}focusFirstItem(){this.#t.focusFirstItem()}focusLastItem(){this.#t.focusLastItem()}focusNextItem(){this.#t.focusNextItem()}focusPreviousItem(){this.#t.focusPreviousItem()}focusParentItem(){this.#t.focusParentItem()}scrollToPath(e,t){this.#t.scrollToPath(e,t)}focusNearestPath(e){return this.#t.focusNearestPath(e)}add(e){this.#t.add(e)}batch(e){this.#t.batch(e)}applyGitStatusPatch(e){let t=zB(this.#p,e);if(t===this.#p)return;this.#p=t;let n=this.#T();n!=null&&YU(n.wrapper,this.#w())}move(e,t,n){this.#t.move(e,t,n)}onMutation(e,t){return this.#t.onMutation(e,t)}setSearch(e){this.#t.setSearch(e)}openSearch(e){this.#t.openSearch(e)}closeSearch(){this.#t.closeSearch()}isSearchOpen(){return this.#t.isSearchOpen()}getSearchValue(){return this.#t.getSearchValue()}getSearchMatchingPaths(){return this.#t.getSearchMatchingPaths()}focusNextSearchMatch(){this.#t.focusNextSearchMatch()}focusPreviousSearchMatch(){this.#t.focusPreviousSearchMatch()}startRenaming(e,t){return this.#t.startRenaming(e,t)}remove(e,t){this.#t.remove(e,t)}resetPaths(e,t){Array.isArray(e)?this.#t.resetPaths(e,t):this.#t.resetPaths(e)}setComposition(e){this.#e=e;let t=this.#T();t!=null&&(this.#O(),YU(t.wrapper,this.#w()))}setGitStatus(e){let t=RB(e,this.#p);if(t===this.#p)return;this.#p=t;let n=this.#T();n!=null&&YU(n.wrapper,this.#w())}setIcons(e){this.#m=e;let t=this.#T();t!=null&&(this.#E(t.host,t.wrapper),YU(t.wrapper,this.#w()))}hydrate({fileTreeContainer:e}){let t=this.#P(e),n=this.#N(t);this.#O(),XU(n,this.#w())}render({containerWrapper:e,fileTreeContainer:t}){let n=this.#P(t??this.#f,e),r=this.#N(n);this.#O(),YU(r,this.#w())}#C(){return{initialViewportHeight:rW({initialVisibleRowCount:this.#d.initialVisibleRowCount,itemHeight:this.#d.itemHeight}),itemHeight:this.#d.itemHeight,overscan:this.#d.overscan,stickyFolders:this.#d.stickyFolders}}#w(){return{composition:this.#e,controller:this.#t,gitStatusByPath:this.#p?.statusByPath,ignoredGitDirectories:this.#p?.ignoredDirectoryPaths,directoriesWithGitChanges:this.#p?.directoriesWithChanges,icons:this.#m,instanceId:this.#n,renamingEnabled:this.#a,renderRowDecoration:this.#i,searchBlurBehavior:this.#o,searchEnabled:this.#s,searchFakeFocus:this.#c,slotHost:this.#l,...this.#C()}}#T(){let e=this.#f,t=this.#b;return e==null||t==null?null:{host:e,wrapper:t}}#E(e,t){let n=e.shadowRoot;n!=null&&(this.#k(n),this.#A(n)),this.#j(t)}#D(){let e=this.#r;if(e==null)return;let t=this.#t.getSelectionVersion();t!==this.#v&&(this.#v=t,e(this.#t.getSelectedPaths()))}#O(){let e=this.#e?.header?.render;if(e!=null){this.#l.setSlotContent(WF,e());return}this.#l.setSlotHtml(WF,this.#e?.header?.html??null)}#k(e){let t=oW(e).find(e=>aW(e)),n=iW(PF(JF(this.#m).set));n!=null&&(t==null||t.outerHTML!==n.outerHTML)&&(t==null?e.prepend(n):t.replaceWith(n))}#A(e){let t=oW(e),n=t.find(e=>aW(e)),r=t.filter(e=>e!==n),i=JF(this.#m).spriteSheet?.trim()??``;if(i.length===0){for(let e of r)e.remove();return}let a=iW(i);if(a==null){for(let e of r)e.remove();return}if(r.length!==1||r[0].outerHTML!==a.outerHTML){for(let e of r)e.remove();e.appendChild(a)}}#j(e){let t=JF(this.#m);t.colored&&IF(t.set)?e.dataset.fileTreeColoredIcons=`true`:delete e.dataset.fileTreeColoredIcons}#M(e){let t=e.querySelector(`style[${BF}]`);if(this.#g==null&&t instanceof HTMLStyleElement&&(this.#g=t),this.#h==null||this.#h===``){this.#g?.remove(),this.#g=void 0,this.#_=void 0;return}(this.#g?.parentNode!==e||this.#_!==this.#h)&&(this.#g??=document.createElement(`style`),this.#g.setAttribute(BF,``),this.#g.parentNode!==e&&e.appendChild(this.#g),this.#g.textContent=Bz(this.#h),this.#_=this.#h)}#N(e){if(this.#b!=null)return this.#b;let t=e.shadowRoot;if(t==null)throw Error(`FileTree requires a shadow root`);let n=Array.from(t.children).filter(e=>e instanceof HTMLDivElement&&typeof e.dataset.fileTreeId==`string`&&e.dataset.fileTreeId.length>0),r=n.find(e=>e.dataset.fileTreeId===this.#n)??n[0];return r!=null&&(this.#n=r.dataset.fileTreeId??this.#n),this.#b=r??document.createElement(`div`),this.#b.dataset.fileTreeId=this.#n,this.#b.dataset.fileTreeVirtualizedWrapper=`true`,this.#E(e,this.#b),this.#b.parentNode!==t&&t.appendChild(this.#b),this.#b}#P(e,t){let n=e??this.#f??document.createElement(`file-tree-container`);t!=null&&n.parentNode!==t&&t.appendChild(n);let r=n.shadowRoot??n.attachShadow({mode:`open`});return Kz(n,r),this.#M(r),n.dataset.fileTreeVirtualized=`true`,n.style.display=`flex`,this.#F(n),this.#l.setHost(n),this.#f=n,n}#F(e){e.style.getPropertyValue(`--trees-item-height`)===``&&(e.style.setProperty(`--trees-item-height`,`${String(this.#u.itemHeight)}px`),this.#x=!0),e.style.getPropertyValue(`--trees-density-override`)===``&&(e.style.setProperty(`--trees-density-override`,String(this.#u.factor)),this.#S=!0)}#I(e){this.#x&&=(e.style.removeProperty(`--trees-item-height`),!1),this.#S&&=(e.style.removeProperty(`--trees-density-override`),!1)}},cW=new Set([`/`,`.`,`-`,`_`,` `]);function lW(e,t){if(t===0)return!0;let n=e[t-1];if(cW.has(n))return!0;let r=e[t];return r!==r.toLowerCase()&&n===n.toLowerCase()}function uW(e,t,n){let r=0;for(let i=0;i<t.length;i++){let a=t[i];r+=1,lW(e,a)&&(r+=8),i&&t[i-1]===a-1?r+=6:i&&(r-=Math.min(4,a-t[i-1]-1)),a>=n&&(r+=3),a===n&&(r+=6)}return r}function dW(e,t,n){let r=0,i=-1;for(let a=n;a<t.length;a++)if(t[a]===e[r]&&++r===e.length){i=a;break}if(i<0)return null;let a=[];r=e.length-1;for(let o=i;o>=n&&r>=0;o--)t[o]===e[r]&&(a.push(o),r--);return a.reverse()}function fW(e,t,n,r){let i=[],a=r;for(let r=0;r<e.length;r++){let o=i[i.length-1];if(o!=null&&n[o+1]===e[r]){i.push(o+1);continue}let s=a;for(;s<n.length&&!(n[s]===e[r]&&lW(t,s));)s++;if(s>=n.length)return null;i.push(s),a=s+1}return i}function pW(e,t,n,r,i){let a=dW(e,n,r);if(!a)return null;let o=fW(e,t,n,r),s=uW(t,a,i),c=o?uW(t,o,i):-1/0;return c>s?{score:c,hits:o}:{score:s,hits:a}}function mW(e,t,n,r){for(let i=t.indexOf(n,r);i!==-1;i=t.indexOf(n,i+1))if(lW(e,i))return!0;return!1}function hW(e,t){let n=e.split(/\s+/).filter(Boolean);if(!n.length)return{score:0,hits:[]};let r=t.toLowerCase(),i=gW(t),a=0,o=new Set;for(let e of n){let n=e.toLowerCase(),s=pW(n,t,r,i,i),c=s??pW(n,t,r,0,i);if(!c)return null;s&&mW(t,r,n,i)&&(a+=20),r.slice(i).replace(/\/$/,``)===n&&(a+=30),a+=c.score;for(let e of c.hits)o.add(e)}return a-=t.length/100,{score:a,hits:[...o].sort((e,t)=>e-t)}}function gW(e){return e.lastIndexOf(`/`,e.length-2)+1}function _W(e){let t=e.match(/^(.*?):(\d+)(?::\d+)?\s*$/);return t?{query:t[1],line:Number(t[2])}:{query:e,line:0}}function vW(e,t,n,r){let i=[];for(let r of e){let e=hW(n,t(r));e&&i.push({item:r,match:e})}return i.sort((e,n)=>n.match.score-e.match.score||t(e.item).localeCompare(t(n.item))),i.slice(0,r)}var yW=Gt,bW=(e=>`/${e}&`)(` b`),xW=60;function SW(e,t,n,r){let i=[],a=new Set(t);for(let t=n;t<r;t++){let n=a.has(t),r=i[i.length-1];r&&r.hit===n?r.text+=e[t]:i.push({text:e[t],hit:n})}return i}var CW=T(0,1,e=>F(e.a,e._.e)),wW=CW,TW=T(0,0,e=>F(e.b,e._.e)),EW=j(0,`<mark> </mark>`,` D `,e=>{TW._(e),I(e.a,`_nx`)},` `,` `,wW),DW=(e,t)=>EW(e,+!t),OW=(e,t)=>{DW(e,t[0]?.hit),kW(e,t[0]?.text)},kW=L(4,e=>{TW(e),CW(e)}),AW=T(0,1,e=>F(e.a,e._.e)),jW=AW,MW=T(0,0,e=>F(e.b,e._.e)),NW=j(0,`<mark> </mark>`,` D `,e=>{MW._(e),I(e.a,`_nx`)},` `,` `,jW),PW=(e,t)=>NW(e,+!t),FW=(e,t)=>{PW(e,t[0]?.hit),IW(e,t[0]?.text)},IW=L(4,e=>{MW(e),AW(e)}),LW=e=>I(e.a,g),RW=T(5,0,e=>F(e.b,e._.n)),zW=e=>{RW._(e),I(e.a,d)},BW=V(34,e=>F(e.b,e._._._._.u),e=>e._._._._,`O5`),VW=e=>{BW(e),I(e.a,`_ny`)},HW=S(2,e=>F(e.b,e._._._.l?`Loading files…`:e._._._.s?`No file matches “${E(e._._._.s)}”.`:`Type part of a file's name. Add :42 to open it at line 42.`)),UW=V(29,HW,e=>e._._._,`O11`),WW=e=>{UW(e),GW(e),I(e.a,`_cX`)},GW=V(33,HW,e=>e._._._,`O12`),KW=V(28,e=>F(e.b,e._._._._.k),e=>e._._._._,`O4`),qW=j(0,`<li role=presentation>Recently opened</li>`,` `,LW,`<li role=presentation> </li>`,` D `,e=>{KW(e),I(e.a,g)}),JW=S(17,e=>qW(e,!e._._._.s&&e.o===0?0:e.j&&(e.o===0||!e._._._.v[e.o-1].more)?1:2),3),YW=V(33,JW,e=>e._._._,`O7`),XW=N(`O6`,e=>{H(e.c,`mousemove`,function(){e._._._.p!==e.o&&LG(e._._._,e.o)}),H(e.c,`click`,function(){e._._._.a1(e.o)})}),ZW=e=>{YW(e),eG(e),tG(e),rG(e),I(e.d,`_nv`),I(e.e,`_nw`),XW(e)},QW=j(6,`<span>:<!></span>`,` Db%`,VW),$W=S(16,e=>QW(e,e._._._.u&&e.o===e._._._.y?0:1),2),eG=V(34,$W,e=>e._._._,`O8`),tG=V(35,JW,e=>e._._._,`O9`),nG=S(15,e=>{R(e.b,`aria-selected`,e.o===e._._._.y?`true`:`false`),I(e.c,[`_cS`,e.o===e._._._.y&&`_cR`])}),rG=V(37,e=>{nG(e),$W(e)},e=>e._._._,`O10`),iG=L(9,JW),aG=L(14,e=>{JW(e),nG(e),$W(e)}),oG=C(3,`<!><!><!>`,`b%`,0,FW),sG=C(4,`<!><!><!>`,`b%`,0,OW),cG=S(20,e=>{oG(e,[SW(e.s,e.m,e.t,e.s?.length)]),sG(e,[SW(e.s,e.m,0,Math.max(0,e.t-1))])},2),lG=L(19,cG),uG=L(18,e=>{R(e.c,`title`,e.s),lG(e,gW(e.s)),cG(e)}),dG=L(12,cG),fG=j(5,`<span> </span>`,` D `,zW),pG=L(13,e=>{fG(e,+!e.n),RW(e)}),mG=(e,t)=>{iG(e,t[0]?.more),uG(e,t[0]?.item?.path),pG(e,t[0]?.item?.hint),dG(e,t[0]?.hits),aG(e,t[1])},hG=V(31,e=>re(e,`c`,e._._.o,iK(e)),e=>e._._,`O15`),gG=N(`O14`,e=>{oe(e,`c`),H(e.d,`click`,function(){e._._.z()})}),_G=e=>{hG(e),vG(e),bG(e),CG(e),I(e.a,`_cM`),Fe(e.b),Ne(e.b,14),Le(e.b),I(e.c,_),I(e.d,[y,`_cO`]),ze(e.e),ue(e.e,16),Ce(e.e),I(e.f,`_cP`),gG(e)},vG=V(32,e=>{R(e.c,`aria-controls`,e._._.q),R(e.f,`id`,e._._.q)},e=>e._._),yG=w(5,`<!><!><li role=option><button type=button><span></span><span></span><!><!></button></li>`,`b%b D D b b%b%`,ZW,mG),bG=V(35,e=>yG(e,[e._._.v,e=>`${e.more?`+`:``}${e.item.key}`]),e=>e._._,`O16`),xG=j(6,`<p> </p>`,` D `,WW),SG=N(`O13`,e=>H(e.c,`keydown`,function(t){if(t.key===`ArrowDown`||t.key===`ArrowUp`){t.preventDefault();let n=e._._.w;n&&LG(e._._,(e._._.y+(t.key===`ArrowDown`?1:-1)+n)%n)}else t.key===`Enter`&&(t.preventDefault(),e._._.a1(e._._.y))})),CG=V(36,e=>{xG(e,+!!e._._.w),SG(e)},e=>e._._,`O17`),wG=j(0,((e,t)=>`<div>${e}<input type=search autofocus autocomplete=off placeholder="Go to file (name:42 for a line)" aria-label="Go to file" role=combobox aria-expanded=true><button type=button title=Close aria-label=Close>${t}</button></div><ul role=listbox></ul><!><!>`)(Ae,we),((e,t)=>` D/${e}& b D/${t}&m b%c`)(Oe,pe),_G),TG=V(30,e=>wG(e,+!e._.m),0,`O18`),EG=se(`O19`,`<!><!><!>`,`b%`,TG),DG=B(TG),OG=te(12,e=>{Ht(e.a,e.m),DG(e)}),kG=S(5,e=>OG(e,e.d,e.e)),AG=L(3,kG),jG=L(4,kG),MG=(e,t)=>{qG(e,t?.query),YG(e,t?.line)},NG=B(hG),PG=D(14,e=>{MG(e,_W(e.o.trim())),NG(e)}),FG=L(24,B(rG)),IG=S(23,e=>FG(e,Math.min(e.p,Math.max(0,e.w-1)))),LG=D(15,IG),RG=L(16),zG=L(27),BG=S(26,e=>zG(e,aK(e)),3),VG=L(25,BG);function HG(e){Bt(e.a),Jt(e.a,EG(e)),zt(e.a,`Go to file`),Lt(e.a,[`_bV`,`_cL`]),Yt(e.a,sK(e)),qt(e.a,!0),Vt(e.a),Wt(e.a),Rt(e.a),Ut(e.a),Kt(e.a,{}),PG(e,``),LG(e,0),RG(e,A(e)),VG(e,oK(e))}var UG=B(bG,tG),WG=L(21,e=>{ZG(e,e.v?.length),BG(e),UG(e)}),GG=S(19,e=>WG(e,(()=>{let t=e.s;if(!t){let t=new Map(e.g.map(e=>[e.key,e]));return(e.h||[]).map(e=>t.get(e)).filter(e=>!!e).map(e=>({item:e,hits:[],more:!1}))}let n=vW(e.g,e=>e.path,t,xW).map(e=>({item:e.item,hits:e.match.hits,more:!1})),r=e.i?vW(e.i.items,e=>e.path,t,xW).map(e=>({item:e.item,hits:e.match.hits,more:!0})):[];return[...n,...r]})()),3),KG=B(YW,GW),qG=L(18,e=>{GG(e),KG(e)}),JG=B(eG,BW),YG=L(20,e=>{BG(e),JG(e)}),XG=B(CG),ZG=L(22,e=>{IG(e),XG(e)}),QG=L(6,GG),$G=L(7,GG),eK=L(8,e=>{nK(e,e.i?.label),GG(e)}),tK=L(9,BG),nK=L(10,B(KW)),rK=L(11,B(UW)),iK=e=>function(t){PG(e._._,t),LG(e._._,0)},aK=e=>t=>{let n=e.v[t];if(!n)return;let r=e.u;e.z(),e.j(n.item.key,r,n.more)},oK=e=>()=>{OG(e,!1),PG(e,``),LG(e,0)},sK=e=>t=>{OG(e,t)};P.O3=iK,P.O1=aK,P.O0=oK,P.O2=sK;export{ZT as $,AC as $t,ZD as A,Cw as At,eD as B,aw as Bt,NN as C,Pw as Ct,eN as D,Tw as Dt,xN as E,zw as Et,kD as F,Sw as Ft,lD as G,XC as Gt,dD as H,$C as Ht,_D as I,sw as It,uE as J,kC as Jt,WE as K,YC as Kt,vD as L,mw as Lt,KD as M,Aw as Mt,UD as N,jw as Nt,yN as O,Dw as Ot,BD as P,bw as Pt,iE as Q,OC as Qt,pD as R,hw as Rt,MN as S,_T as St,aN as T,Gw as Tt,cD as U,tw as Ut,tD as V,QC as Vt,sD as W,ew as Wt,cE as X,IC as Xt,lE as Y,DC as Yt,sE as Z,PC as Zt,LN as _,aT as _t,AG as a,vS as an,YT as at,FN as b,sT as bt,HG as c,Yp as cn,zT as ct,sW as d,PT as dt,wC as en,QT as et,yP as f,IT as ft,dP as g,hT as gt,gP as h,xT as ht,tK as i,CS as in,XT as it,QD as j,Ew as jt,ZM as k,kw as kt,yW as l,An as ln,AT as lt,bP as m,bT as mt,rK as n,lC as nn,qT as nt,jG as o,_S as on,HT as ot,SP as p,FT as pt,GE as q,TC as qt,eK as r,zS as rn,JT as rt,$G as s,Qx as sn,WT as st,QG as t,gC as tn,KT as tt,bW as u,RT as ut,RN as v,iT as vt,vN as w,Kw as wt,PN as x,dT as xt,IN as y,rT as yt,mD as z,nw as zt};