@dylanpiercey/work 0.2.10 → 0.2.11

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 (479) hide show
  1. package/dist/{_B6BFvmFS.js → _BEqcBqZK.js} +67 -67
  2. package/dist/index.mjs +826 -813
  3. package/dist/public/assets/{_BN00BAfx.js → _-TFhdbKJ.js} +1 -1
  4. package/dist/public/assets/_-TFhdbKJ.js.br +0 -0
  5. package/dist/public/assets/_0nw4HiGM.js +1 -0
  6. package/dist/public/assets/{_DeRqmp5B.js → _2F7RZ47b.js} +1 -1
  7. package/dist/public/assets/_2F7RZ47b.js.br +0 -0
  8. package/dist/public/assets/_2UKuNtIb.js +1 -0
  9. package/dist/public/assets/_B-RVBzru.js +1 -0
  10. package/dist/public/assets/{_D9Ucv88B.js → _B03FH8BV.js} +65 -65
  11. package/dist/public/assets/_B03FH8BV.js.br +0 -0
  12. package/dist/public/assets/_B0lz5kGS.js +1 -0
  13. package/dist/public/assets/_B2STGcZg.js +1 -0
  14. package/dist/public/assets/_B4zp__gl.js +1 -0
  15. package/dist/public/assets/_B6HmvIhE.js +1 -0
  16. package/dist/public/assets/{_Xxd2cIT4.js → _B6Juh9c9.js} +1 -1
  17. package/dist/public/assets/_B6Juh9c9.js.br +0 -0
  18. package/dist/public/assets/{_LnVGJVE9.js → _B7BjaSPp.js} +1 -1
  19. package/dist/public/assets/_B7BjaSPp.js.br +0 -0
  20. package/dist/public/assets/_B7OzIfCo.js +1 -0
  21. package/dist/public/assets/_B7o4ZdB3.js +1 -0
  22. package/dist/public/assets/{_Btg9lvcw.js → _B9IOnUzW.js} +1 -1
  23. package/dist/public/assets/_B9IOnUzW.js.br +0 -0
  24. package/dist/public/assets/{_DDzAitj6.js → _BB4xCgxK.js} +1 -1
  25. package/dist/public/assets/_BB4xCgxK.js.br +0 -0
  26. package/dist/public/assets/{_CGi1ssUi.js → _BBJHlkrc.js} +1 -1
  27. package/dist/public/assets/_BBJHlkrc.js.br +0 -0
  28. package/dist/public/assets/{_Vcpg8hrJ.js → _BCGxPeKS.js} +1 -1
  29. package/dist/public/assets/_BCGxPeKS.js.br +0 -0
  30. package/dist/public/assets/_BCouYYam.js +1 -0
  31. package/dist/public/assets/{_C73Rvzru.js → _BFQk1lCP.js} +1 -1
  32. package/dist/public/assets/{_DwADmhIl.js → _BGGoJYwf.js} +1 -1
  33. package/dist/public/assets/_BGGoJYwf.js.br +0 -0
  34. package/dist/public/assets/{_CctnlsVG.js → _BGm1jScO.js} +1 -1
  35. package/dist/public/assets/_BGm1jScO.js.br +0 -0
  36. package/dist/public/assets/_BHSGch_Y.js +1 -0
  37. package/dist/public/assets/{_p-NLERu0.js → _BIWa46lt.js} +1 -1
  38. package/dist/public/assets/_BIWa46lt.js.br +0 -0
  39. package/dist/public/assets/_BJ_dd_iN.js +1 -0
  40. package/dist/public/assets/{_D_rhClxZ.js → _BJdfl2ii.js} +1 -1
  41. package/dist/public/assets/_BJdfl2ii.js.br +0 -0
  42. package/dist/public/assets/{_GPsPOivU.js → _BN4_YE6i.js} +1 -1
  43. package/dist/public/assets/_BN4_YE6i.js.br +0 -0
  44. package/dist/public/assets/{_LPVI7IWH.js → _BNxzF5ug.js} +1 -1
  45. package/dist/public/assets/_BNxzF5ug.js.br +0 -0
  46. package/dist/public/assets/{_C8Zpa0QX.js → _BOla1fhx.js} +1 -1
  47. package/dist/public/assets/_BOla1fhx.js.br +0 -0
  48. package/dist/public/assets/{_CRUinuwR.js → _BOyarG8p.js} +1 -1
  49. package/dist/public/assets/_BOyarG8p.js.br +0 -0
  50. package/dist/public/assets/{_Bj4abRVz.js → _BQOCMP7C.js} +1 -1
  51. package/dist/public/assets/_BQOCMP7C.js.br +0 -0
  52. package/dist/public/assets/_BS91Ti2j.js +1 -0
  53. package/dist/public/assets/_BSC1Mka2.js +1 -0
  54. package/dist/public/assets/_BSUi576O.js +1 -0
  55. package/dist/public/assets/_BTr0bhTX.js +1 -0
  56. package/dist/public/assets/_BWmzNTqb.js +16 -0
  57. package/dist/public/assets/_BWmzNTqb.js.br +0 -0
  58. package/dist/public/assets/_BXBZNdxD.js +1 -0
  59. package/dist/public/assets/_BXKY135G.js +1 -0
  60. package/dist/public/assets/{_C5Hz7MOr.js → _BaOHURFi.js} +1 -1
  61. package/dist/public/assets/_BaOHURFi.js.br +0 -0
  62. package/dist/public/assets/_Bh6Obpuq.js +1 -0
  63. package/dist/public/assets/_BhG9_a6D.js +1 -0
  64. package/dist/public/assets/_BjaQHJSp.js +1 -0
  65. package/dist/public/assets/{_BuVGxHF-.js → _BkmfcwN1.js} +1 -1
  66. package/dist/public/assets/_BkmfcwN1.js.br +0 -0
  67. package/dist/public/assets/_BlSLzhVc.js +1 -0
  68. package/dist/public/assets/{_ffXsdO8V.js → _BobuuwfO.js} +1 -1
  69. package/dist/public/assets/_BobuuwfO.js.br +0 -0
  70. package/dist/public/assets/_BqJa1bno.js +1 -0
  71. package/dist/public/assets/_Bs9rilPT.js +1 -0
  72. package/dist/public/assets/_BttK7YO4.js +1 -0
  73. package/dist/public/assets/{_BT6zUuyQ.js → _BwFW7pl-.js} +1 -1
  74. package/dist/public/assets/_BwFW7pl-.js.br +0 -0
  75. package/dist/public/assets/{_Zb42U2Ds.js → _BxfO1BN3.js} +1 -1
  76. package/dist/public/assets/_BxfO1BN3.js.br +0 -0
  77. package/dist/public/assets/_Bz-_vJ2K.js +1 -0
  78. package/dist/public/assets/_C-breXQF.js +1 -0
  79. package/dist/public/assets/{_-dP_npxc.js → _C0ETFIi0.js} +1 -1
  80. package/dist/public/assets/{_D19FNTb3.js → _C0ppO7YG.js} +1 -1
  81. package/dist/public/assets/_C0ppO7YG.js.br +0 -0
  82. package/dist/public/assets/{_CETvl4vf.js → _C1f5f8PC.js} +1 -1
  83. package/dist/public/assets/_C1f5f8PC.js.br +0 -0
  84. package/dist/public/assets/{_B6ec2v05.js → _C2EWFUrC.js} +1 -1
  85. package/dist/public/assets/_C2EWFUrC.js.br +0 -0
  86. package/dist/public/assets/{_DAhNnipV.js → _C2YnTaPU.js} +1 -1
  87. package/dist/public/assets/_C2YnTaPU.js.br +0 -0
  88. package/dist/public/assets/{__JdPVCDX.js → _C5ljPFKx.js} +1 -1
  89. package/dist/public/assets/_C5ljPFKx.js.br +0 -0
  90. package/dist/public/assets/{_De6EIZM4.js → _C6m1GOqH.js} +1 -1
  91. package/dist/public/assets/_C6m1GOqH.js.br +0 -0
  92. package/dist/public/assets/{_CxRXlSoq.js → _C81zbjb0.js} +1 -1
  93. package/dist/public/assets/_C81zbjb0.js.br +0 -0
  94. package/dist/public/assets/{_D_Ff83ji.js → _C9Ztbivw.js} +1 -1
  95. package/dist/public/assets/_C9Ztbivw.js.br +0 -0
  96. package/dist/public/assets/{_DeGXKeNT.js → _CAnFcQul.js} +1 -1
  97. package/dist/public/assets/_CAnFcQul.js.br +0 -0
  98. package/dist/public/assets/_CB0X_jGT.js +1 -0
  99. package/dist/public/assets/_CDAgTj3i.js +1 -0
  100. package/dist/public/assets/{_CKdmu483.js → _CGA8hl01.js} +1 -1
  101. package/dist/public/assets/_CGA8hl01.js.br +0 -0
  102. package/dist/public/assets/_CH4oSA8L.js +1 -0
  103. package/dist/public/assets/{_Cy6ny6jR.js → _CHlU-BeF.js} +1 -1
  104. package/dist/public/assets/_CIWJ3x07.js +1 -0
  105. package/dist/public/assets/_CNDEAkIa.js +1 -0
  106. package/dist/public/assets/{_CB4gwuBe.js → _COJklL2Z.js} +1 -1
  107. package/dist/public/assets/_COJklL2Z.js.br +0 -0
  108. package/dist/public/assets/{_D0uEJAAi.js → _COT_otKo.js} +1 -1
  109. package/dist/public/assets/_COT_otKo.js.br +0 -0
  110. package/dist/public/assets/_CRNQU4G1.js +1 -0
  111. package/dist/public/assets/{_G2Wel3wu.js → _CUIaylz7.js} +1 -1
  112. package/dist/public/assets/_CUIaylz7.js.br +0 -0
  113. package/dist/public/assets/_CXCOJuPP.js +1 -0
  114. package/dist/public/assets/_CYdc-ZVA.js +1 -0
  115. package/dist/public/assets/_CYfJrmsQ.js +1 -0
  116. package/dist/public/assets/{_B1xyjoda.js → _CZN3As6c.js} +1 -1
  117. package/dist/public/assets/_Caz2GFFv.js +1 -0
  118. package/dist/public/assets/{_CTnLScNm.js → _CeQ7EcnC.js} +1 -1
  119. package/dist/public/assets/_CeQ7EcnC.js.br +0 -0
  120. package/dist/public/assets/{_nGGRWVOp.js → _CfI44bGN.js} +1 -1
  121. package/dist/public/assets/_CfI44bGN.js.br +0 -0
  122. package/dist/public/assets/{_BgE1a_4A.js → _CfVbObcm.js} +1 -1
  123. package/dist/public/assets/_CfVbObcm.js.br +0 -0
  124. package/dist/public/assets/_CgJxliJx.js +1 -0
  125. package/dist/public/assets/{_B_18IRUI.js → _Chz9iR_v.js} +1 -1
  126. package/dist/public/assets/_Chz9iR_v.js.br +0 -0
  127. package/dist/public/assets/{_DqHir7yn.js → _CkZ6SOQZ.js} +1 -1
  128. package/dist/public/assets/_CkZ6SOQZ.js.br +0 -0
  129. package/dist/public/assets/_CkvqLguS.js +1 -0
  130. package/dist/public/assets/{_CUs9y1fx.js → _CqONRjxT.js} +1 -1
  131. package/dist/public/assets/_CqONRjxT.js.br +0 -0
  132. package/dist/public/assets/_CqV62PgN.js +1 -0
  133. package/dist/public/assets/{_D24XsKqA.js → _CrUxunS4.js} +1 -1
  134. package/dist/public/assets/_CrUxunS4.js.br +0 -0
  135. package/dist/public/assets/{_CZ_BUikO.js → _Cs3cNtLg.js} +1 -1
  136. package/dist/public/assets/_Cs3cNtLg.js.br +0 -0
  137. package/dist/public/assets/{_tpY6kbXX.js → _CvtwWL7y.js} +1 -1
  138. package/dist/public/assets/_CvtwWL7y.js.br +0 -0
  139. package/dist/public/assets/{_D3MEk3Yr.js → _CwGiOmRH.js} +1 -1
  140. package/dist/public/assets/_CwGiOmRH.js.br +0 -0
  141. package/dist/public/assets/_CwdH0VCO.js +1 -0
  142. package/dist/public/assets/{_CBb-o6o9.js → _CzJxKBQo.js} +1 -1
  143. package/dist/public/assets/_CzJxKBQo.js.br +0 -0
  144. package/dist/public/assets/_Cza5-WDN.js +1 -0
  145. package/dist/public/assets/{_wFqerxDO.js → _CzjmLGjU.js} +1 -1
  146. package/dist/public/assets/_CzjmLGjU.js.br +0 -0
  147. package/dist/public/assets/_CzvAnAV7.js +1 -0
  148. package/dist/public/assets/{_UO4CFdfB.js → _D1s4U2D9.js} +1 -1
  149. package/dist/public/assets/_D1s4U2D9.js.br +0 -0
  150. package/dist/public/assets/_D1tTKJvq.js +1 -0
  151. package/dist/public/assets/{_D3I0xOxy.js → _D2fiM6H4.js} +1 -1
  152. package/dist/public/assets/_D2fiM6H4.js.br +0 -0
  153. package/dist/public/assets/_D2nvhWcm.js +1 -0
  154. package/dist/public/assets/_D643T4TX.js +1 -0
  155. package/dist/public/assets/_D67o1_nh.js +1 -0
  156. package/dist/public/assets/_D9d4h_92.js +1 -0
  157. package/dist/public/assets/{_MLT-X_-J.js → _DA1-_D7p.js} +1 -1
  158. package/dist/public/assets/{_BDKkWHOJ.js → _DAUNuHZX.js} +1 -1
  159. package/dist/public/assets/{_BfY0pOQ7.js → _DB_dR12F.js} +1 -1
  160. package/dist/public/assets/_DB_dR12F.js.br +0 -0
  161. package/dist/public/assets/{_NeEKDkp-.js → _DC0aIAQu.js} +3 -3
  162. package/dist/public/assets/_DC0aIAQu.js.br +0 -0
  163. package/dist/public/assets/{_yTIzFyGW.js → _DCXl8hAZ.js} +1 -1
  164. package/dist/public/assets/_DCXl8hAZ.js.br +0 -0
  165. package/dist/public/assets/_DDZ1lEZ4.js +1 -0
  166. package/dist/public/assets/_DEKehi1a.js +1 -0
  167. package/dist/public/assets/_DENxZV6I.js +1 -0
  168. package/dist/public/assets/_DEZv823G.js +1 -0
  169. package/dist/public/assets/{_CKNF1wsP.js → _DFmc-g1h.js} +1 -1
  170. package/dist/public/assets/_DFmc-g1h.js.br +0 -0
  171. package/dist/public/assets/_DGG5QaSt.js +1 -0
  172. package/dist/public/assets/_DH7sSIuP.js +1 -0
  173. package/dist/public/assets/_DKbOeJJQ.js +1 -0
  174. package/dist/public/assets/_DL1ePby9.js +1 -0
  175. package/dist/public/assets/{_Bnp0rYDY.js → _DL6R7OvO.js} +1 -1
  176. package/dist/public/assets/_DL6R7OvO.js.br +0 -0
  177. package/dist/public/assets/_DLHRLbmW.js +1 -0
  178. package/dist/public/assets/{_Bh6LTqYW.js → _DOUL2GDn.js} +1 -1
  179. package/dist/public/assets/_DOUL2GDn.js.br +0 -0
  180. package/dist/public/assets/_DRbW-aac.js +1 -0
  181. package/dist/public/assets/_DResNfPT.js +1 -0
  182. package/dist/public/assets/{_BIk3yIyh.js → _DSH_KZif.js} +1 -1
  183. package/dist/public/assets/_DSH_KZif.js.br +0 -0
  184. package/dist/public/assets/_DSXx2IsZ.js +1 -0
  185. package/dist/public/assets/{_CagvL9MJ.js → _DTLH4_Mo.js} +1 -1
  186. package/dist/public/assets/_DTLH4_Mo.js.br +0 -0
  187. package/dist/public/assets/{_DLs08AMa.js → _DU_zOtp-.js} +1 -1
  188. package/dist/public/assets/_DU_zOtp-.js.br +0 -0
  189. package/dist/public/assets/_DXAUEWVe.js +1 -0
  190. package/dist/public/assets/_DXluy-Gg.js +1 -0
  191. package/dist/public/assets/{_D4Qd4S5q.js → _DYM5bZLB.js} +1 -1
  192. package/dist/public/assets/_DYM5bZLB.js.br +0 -0
  193. package/dist/public/assets/{_E7L6qU5-.js → _DZPA_eo5.js} +1 -1
  194. package/dist/public/assets/_DZPA_eo5.js.br +0 -0
  195. package/dist/public/assets/_DbOX34Qp.js +1 -0
  196. package/dist/public/assets/{_Cc23NgEv.js → _DdNVbN4v.js} +1 -1
  197. package/dist/public/assets/_DdNVbN4v.js.br +0 -0
  198. package/dist/public/assets/{_C0dIJE8N.js → _DdzbHgRc.js} +1 -1
  199. package/dist/public/assets/_DdzbHgRc.js.br +0 -0
  200. package/dist/public/assets/{_B1TJLUCg.js → _DeMiosq3.js} +1 -1
  201. package/dist/public/assets/_DeMiosq3.js.br +0 -0
  202. package/dist/public/assets/_DgI8n_X1.js +1 -0
  203. package/dist/public/assets/{_Bxgsmzwu.js → _Dgx8RrZ0.js} +1 -1
  204. package/dist/public/assets/_Dgx8RrZ0.js.br +0 -0
  205. package/dist/public/assets/{_Doy6XDEU.js → _DkPN1jXY.js} +1 -1
  206. package/dist/public/assets/_DkPN1jXY.js.br +0 -0
  207. package/dist/public/assets/_DlxiRUx0.js +1 -0
  208. package/dist/public/assets/_Dmx7nIUP.js +1 -0
  209. package/dist/public/assets/_Dns-f28K.js +1 -0
  210. package/dist/public/assets/_DquPHtUR.js +1 -0
  211. package/dist/public/assets/{_5bXe0eYt.js → _DunOr-yg.js} +1 -1
  212. package/dist/public/assets/_DunOr-yg.js.br +0 -0
  213. package/dist/public/assets/{_CfNOhb5v.js → _Dw-F3Afq.js} +1 -1
  214. package/dist/public/assets/_Dw-F3Afq.js.br +0 -0
  215. package/dist/public/assets/{_CyGJVSLC.js → _Dw8KErCd.js} +1 -1
  216. package/dist/public/assets/_Dw8KErCd.js.br +0 -0
  217. package/dist/public/assets/{_B0ioXev-.js → _Dx48wyu7.js} +1 -1
  218. package/dist/public/assets/_Dx48wyu7.js.br +0 -0
  219. package/dist/public/assets/_Dytvk1hL.js +1 -0
  220. package/dist/public/assets/{_dHdDB9Ij.js → _GOKl2ldR.js} +1 -1
  221. package/dist/public/assets/_GOKl2ldR.js.br +0 -0
  222. package/dist/public/assets/{_BfNGXdSm.js → _HfGL7atM.js} +1 -1
  223. package/dist/public/assets/_HfGL7atM.js.br +0 -0
  224. package/dist/public/assets/{_DAVKAEHq.js → _HgQcAm4S.js} +1 -1
  225. package/dist/public/assets/_HgQcAm4S.js.br +0 -0
  226. package/dist/public/assets/{_DdNmfNDf.js → _JoxNXffG.js} +1 -1
  227. package/dist/public/assets/_JoxNXffG.js.br +0 -0
  228. package/dist/public/assets/{_CurO03m7.js → _L5PSqHWv.js} +1 -1
  229. package/dist/public/assets/_L5PSqHWv.js.br +0 -0
  230. package/dist/public/assets/_PQqDgSYj.js +1 -0
  231. package/dist/public/assets/{_CTh4NG0J.js → _Qw4wmC12.js} +2 -2
  232. package/dist/public/assets/_Qw4wmC12.js.br +0 -0
  233. package/dist/public/assets/{_C60Z5a7a.js → _SLjAt8L7.js} +1 -1
  234. package/dist/public/assets/_SLjAt8L7.js.br +0 -0
  235. package/dist/public/assets/{_C-E160Gv.js → _Uv1a1DP-.js} +1 -1
  236. package/dist/public/assets/_Uv1a1DP-.js.br +0 -0
  237. package/dist/public/assets/_VH-TRKcY.js +1 -0
  238. package/dist/public/assets/_VMsUKDGF.js +1 -0
  239. package/dist/public/assets/_XJHqZMlV.js +1 -0
  240. package/dist/public/assets/{_UrvwaX8N.js → _Xu-XTvQJ.js} +1 -1
  241. package/dist/public/assets/_Xu-XTvQJ.js.br +0 -0
  242. package/dist/public/assets/{_EfrWapba.js → _YyxabTUu.js} +1 -1
  243. package/dist/public/assets/_YyxabTUu.js.br +0 -0
  244. package/dist/public/assets/{_Bes7UCiN.js → _ZyJMoU4u.js} +1 -1
  245. package/dist/public/assets/_ZyJMoU4u.js.br +0 -0
  246. package/dist/public/assets/{_DRHNkzgS.js → _aHbnW1Wd.js} +2 -2
  247. package/dist/public/assets/_aHbnW1Wd.js.br +0 -0
  248. package/dist/public/assets/{_Cl08BbR0.js → _cJRTviHj.js} +1 -1
  249. package/dist/public/assets/_cJRTviHj.js.br +0 -0
  250. package/dist/public/assets/{_hnbLW63E.js → _cW2K-JVq.js} +1 -1
  251. package/dist/public/assets/_cW2K-JVq.js.br +0 -0
  252. package/dist/public/assets/{_C9uMLkyx.js → _dIr06MfS.js} +1 -1
  253. package/dist/public/assets/_dIr06MfS.js.br +0 -0
  254. package/dist/public/assets/_dVheSyiF.js +1 -0
  255. package/dist/public/assets/{_DHKi6Nf9.js → _e-zK3fur.js} +1 -1
  256. package/dist/public/assets/_e-zK3fur.js.br +0 -0
  257. package/dist/public/assets/_e7Oq56Iz.js +1 -0
  258. package/dist/public/assets/{_Cqug9rFg.js → _e9P0IDn-.js} +1 -1
  259. package/dist/public/assets/_e9P0IDn-.js.br +0 -0
  260. package/dist/public/assets/{_BXayyztT.js → _euSDwYvO.js} +1 -1
  261. package/dist/public/assets/_euSDwYvO.js.br +0 -0
  262. package/dist/public/assets/{_DbzHv_7l.js → _fQITpz8V.js} +1 -1
  263. package/dist/public/assets/_fQITpz8V.js.br +0 -0
  264. package/dist/public/assets/_gbOgvMT0.js +1 -0
  265. package/dist/public/assets/_gbX6a3EA.js +1 -0
  266. package/dist/public/assets/{_ezJ0M_OK.js → _iTBmF-6v.js} +1 -1
  267. package/dist/public/assets/_iTBmF-6v.js.br +0 -0
  268. package/dist/public/assets/_oQurSP5i.js +1 -0
  269. package/dist/public/assets/{_BM9aXgVu.js → _r6PvFzIk.js} +1 -1
  270. package/dist/public/assets/_r6PvFzIk.js.br +0 -0
  271. package/dist/public/assets/_wNvEkvOz.js +1 -0
  272. package/dist/public/assets/_x_DYUSDn.js +6 -0
  273. package/dist/public/assets/_x_DYUSDn.js.br +0 -0
  274. package/dist/public/assets/{_DCGpHpi7.js → _yKA9j_dJ.js} +1 -1
  275. package/dist/public/assets/_yKA9j_dJ.js.br +0 -0
  276. package/dist/public/assets/{_IhVfDlWX.js → _yTy4AzG4.js} +1 -1
  277. package/dist/public/assets/_yTy4AzG4.js.br +0 -0
  278. package/dist/public/assets/files-view-B2ffLoZq.js +2 -0
  279. package/dist/public/assets/manage-workspace-97KOtoYl.js +2 -0
  280. package/dist/public/assets/new-izGLQJbD.js +1 -0
  281. package/dist/public/assets/new-workspace-Dx8oRspM.js +2 -0
  282. package/dist/public/assets/review-view-JD8KPJWk.js +2 -0
  283. package/dist/public/assets/settings-izGLQJbD.js +1 -0
  284. package/dist/public/assets/settings-page-DFtrE__r.js +2 -0
  285. package/dist/public/assets/{styles-BqpWVW8D.css → styles-o2ILe74X.css} +1 -1
  286. package/dist/public/assets/styles-o2ILe74X.css.br +0 -0
  287. package/dist/public/assets/w-izGLQJbD.js +1 -0
  288. package/dist/public/assets/w._-B4shCiRe.js +1 -0
  289. package/dist/public/assets/w._-CUvSgbkq.js +1 -0
  290. package/dist/public/assets/w._-izGLQJbD.js +1 -0
  291. package/package.json +1 -1
  292. package/dist/public/assets/_5AZc_3kI.js +0 -1
  293. package/dist/public/assets/_5bXe0eYt.js.br +0 -0
  294. package/dist/public/assets/_95AK246b.js +0 -1
  295. package/dist/public/assets/_9BrPaCIh.js +0 -1
  296. package/dist/public/assets/_B0ioXev-.js.br +0 -0
  297. package/dist/public/assets/_B1TJLUCg.js.br +0 -0
  298. package/dist/public/assets/_B2Bwte_N.js +0 -1
  299. package/dist/public/assets/_B6ec2v05.js.br +0 -0
  300. package/dist/public/assets/_BAOiZOJP.js +0 -1
  301. package/dist/public/assets/_BB_Q3VPP.js +0 -1
  302. package/dist/public/assets/_BE9tJE8a.js +0 -1
  303. package/dist/public/assets/_BIk3yIyh.js.br +0 -6
  304. package/dist/public/assets/_BM9aXgVu.js.br +0 -0
  305. package/dist/public/assets/_BN00BAfx.js.br +0 -0
  306. package/dist/public/assets/_BOvg_edV.js +0 -1
  307. package/dist/public/assets/_BS_ip1xH.js +0 -1
  308. package/dist/public/assets/_BT6zUuyQ.js.br +0 -0
  309. package/dist/public/assets/_BTtLqqQc.js +0 -1
  310. package/dist/public/assets/_BXayyztT.js.br +0 -0
  311. package/dist/public/assets/_B_18IRUI.js.br +0 -0
  312. package/dist/public/assets/_B_DFTXFB.js +0 -1
  313. package/dist/public/assets/_B_eNi_WD.js +0 -1
  314. package/dist/public/assets/_BaH2rVzw.js +0 -1
  315. package/dist/public/assets/_Bcud6gps.js +0 -1
  316. package/dist/public/assets/_BdcZtXY3.js +0 -1
  317. package/dist/public/assets/_Bes7UCiN.js.br +0 -0
  318. package/dist/public/assets/_BfNGXdSm.js.br +0 -0
  319. package/dist/public/assets/_BfY0pOQ7.js.br +0 -0
  320. package/dist/public/assets/_BgE1a_4A.js.br +0 -0
  321. package/dist/public/assets/_Bh6LTqYW.js.br +0 -0
  322. package/dist/public/assets/_Bj4abRVz.js.br +0 -0
  323. package/dist/public/assets/_BlrpirdN.js +0 -1
  324. package/dist/public/assets/_BnCq3q4L.js +0 -1
  325. package/dist/public/assets/_Bnp0rYDY.js.br +0 -0
  326. package/dist/public/assets/_BqdVbq5f.js +0 -1
  327. package/dist/public/assets/_BrcDI7qP.js +0 -1
  328. package/dist/public/assets/_Btg9lvcw.js.br +0 -0
  329. package/dist/public/assets/_BuVGxHF-.js.br +0 -0
  330. package/dist/public/assets/_BvP_uy3V.js +0 -1
  331. package/dist/public/assets/_Bxgsmzwu.js.br +0 -0
  332. package/dist/public/assets/_ByYclCyP.js +0 -1
  333. package/dist/public/assets/_C-E160Gv.js.br +0 -0
  334. package/dist/public/assets/_C0dIJE8N.js.br +0 -0
  335. package/dist/public/assets/_C1gQdFIs.js +0 -1
  336. package/dist/public/assets/_C5Hz7MOr.js.br +0 -0
  337. package/dist/public/assets/_C5ppiwDs.js +0 -1
  338. package/dist/public/assets/_C60Z5a7a.js.br +0 -0
  339. package/dist/public/assets/_C8Zpa0QX.js.br +0 -0
  340. package/dist/public/assets/_C9uMLkyx.js.br +0 -0
  341. package/dist/public/assets/_CB4gwuBe.js.br +0 -0
  342. package/dist/public/assets/_CBb-o6o9.js.br +0 -0
  343. package/dist/public/assets/_CDYPoi6l.js +0 -1
  344. package/dist/public/assets/_CETvl4vf.js.br +0 -0
  345. package/dist/public/assets/_CGi1ssUi.js.br +0 -0
  346. package/dist/public/assets/_CHW6R9Q-.js +0 -1
  347. package/dist/public/assets/_CJkhTTwx.js +0 -1
  348. package/dist/public/assets/_CKNF1wsP.js.br +0 -0
  349. package/dist/public/assets/_CKdmu483.js.br +0 -0
  350. package/dist/public/assets/_CNnlZN6l.js +0 -1
  351. package/dist/public/assets/_CORbaWCe.js +0 -1
  352. package/dist/public/assets/_COYCWc1w.js +0 -1
  353. package/dist/public/assets/_CPtnNBlX.js +0 -1
  354. package/dist/public/assets/_CQ2Nv5HA.js +0 -1
  355. package/dist/public/assets/_CRKT9I60.js +0 -1
  356. package/dist/public/assets/_CRUinuwR.js.br +0 -0
  357. package/dist/public/assets/_CRWtmH-w.js +0 -1
  358. package/dist/public/assets/_CRuVe7PE.js +0 -1
  359. package/dist/public/assets/_CSdVOHAs.js +0 -1
  360. package/dist/public/assets/_CTh4NG0J.js.br +0 -0
  361. package/dist/public/assets/_CTlsO8sO.js +0 -1
  362. package/dist/public/assets/_CTnLScNm.js.br +0 -0
  363. package/dist/public/assets/_CUs9y1fx.js.br +0 -0
  364. package/dist/public/assets/_CWk56LwM.js +0 -1
  365. package/dist/public/assets/_CZ_BUikO.js.br +0 -0
  366. package/dist/public/assets/_CZxWKxAE.js +0 -1
  367. package/dist/public/assets/_C_kJHZsx.js +0 -1
  368. package/dist/public/assets/_CagvL9MJ.js.br +0 -0
  369. package/dist/public/assets/_Cbf4S30T.js +0 -1
  370. package/dist/public/assets/_Cc23NgEv.js.br +0 -0
  371. package/dist/public/assets/_CcblagBb.js +0 -1
  372. package/dist/public/assets/_CctnlsVG.js.br +0 -0
  373. package/dist/public/assets/_CfNOhb5v.js.br +0 -0
  374. package/dist/public/assets/_CgPWSM7T.js +0 -1
  375. package/dist/public/assets/_CkSTgO1_.js +0 -1
  376. package/dist/public/assets/_Cl08BbR0.js.br +0 -0
  377. package/dist/public/assets/_CoZyO7lb.js +0 -1
  378. package/dist/public/assets/_Cp5riBM8.js +0 -1
  379. package/dist/public/assets/_Cpj-zEAH.js +0 -1
  380. package/dist/public/assets/_CqbzK4-c.js +0 -6
  381. package/dist/public/assets/_CqbzK4-c.js.br +0 -0
  382. package/dist/public/assets/_Cqug9rFg.js.br +0 -0
  383. package/dist/public/assets/_CuB00qsO.js +0 -1
  384. package/dist/public/assets/_CurO03m7.js.br +0 -0
  385. package/dist/public/assets/_CxRXlSoq.js.br +0 -0
  386. package/dist/public/assets/_CxxfpjfF.js +0 -1
  387. package/dist/public/assets/_CyGJVSLC.js.br +0 -0
  388. package/dist/public/assets/_D0uEJAAi.js.br +0 -0
  389. package/dist/public/assets/_D19FNTb3.js.br +0 -0
  390. package/dist/public/assets/_D24XsKqA.js.br +0 -0
  391. package/dist/public/assets/_D3I0xOxy.js.br +0 -0
  392. package/dist/public/assets/_D3MEk3Yr.js.br +0 -0
  393. package/dist/public/assets/_D3Yj4Kak.js +0 -1
  394. package/dist/public/assets/_D4MTjojS.js +0 -1
  395. package/dist/public/assets/_D4Qd4S5q.js.br +0 -0
  396. package/dist/public/assets/_D9Ucv88B.js.br +0 -0
  397. package/dist/public/assets/_DAVKAEHq.js.br +0 -0
  398. package/dist/public/assets/_DAhNnipV.js.br +0 -0
  399. package/dist/public/assets/_DCGpHpi7.js.br +0 -0
  400. package/dist/public/assets/_DDzAitj6.js.br +0 -0
  401. package/dist/public/assets/_DHDUYlwW.js +0 -1
  402. package/dist/public/assets/_DHKi6Nf9.js.br +0 -0
  403. package/dist/public/assets/_DLs08AMa.js.br +0 -0
  404. package/dist/public/assets/_DRHNkzgS.js.br +0 -0
  405. package/dist/public/assets/_DUkOounG.js +0 -1
  406. package/dist/public/assets/_DY9Bqt3d.js +0 -1
  407. package/dist/public/assets/_D_Ff83ji.js.br +0 -0
  408. package/dist/public/assets/_D_rhClxZ.js.br +0 -0
  409. package/dist/public/assets/_DayKfedk.js +0 -16
  410. package/dist/public/assets/_DayKfedk.js.br +0 -0
  411. package/dist/public/assets/_DboJkLjx.js +0 -1
  412. package/dist/public/assets/_DbzHv_7l.js.br +0 -0
  413. package/dist/public/assets/_DdNmfNDf.js.br +0 -0
  414. package/dist/public/assets/_Ddj8FSPF.js +0 -1
  415. package/dist/public/assets/_De6EIZM4.js.br +0 -0
  416. package/dist/public/assets/_DeGXKeNT.js.br +0 -0
  417. package/dist/public/assets/_DeRqmp5B.js.br +0 -0
  418. package/dist/public/assets/_Di884Tsf.js +0 -1
  419. package/dist/public/assets/_DiTMaAhg.js +0 -1
  420. package/dist/public/assets/_DlxlT6Dx.js +0 -1
  421. package/dist/public/assets/_DmRQx0xM.js +0 -1
  422. package/dist/public/assets/_Dn0IcCfk.js +0 -1
  423. package/dist/public/assets/_Doy6XDEU.js.br +0 -0
  424. package/dist/public/assets/_DpQK4ZSt.js +0 -1
  425. package/dist/public/assets/_DqHir7yn.js.br +0 -0
  426. package/dist/public/assets/_DrHAxrs2.js +0 -1
  427. package/dist/public/assets/_DsKm3S-r.js +0 -1
  428. package/dist/public/assets/_DwADmhIl.js.br +0 -0
  429. package/dist/public/assets/_E7L6qU5-.js.br +0 -0
  430. package/dist/public/assets/_EfrWapba.js.br +0 -0
  431. package/dist/public/assets/_G2Wel3wu.js.br +0 -0
  432. package/dist/public/assets/_GPsPOivU.js.br +0 -0
  433. package/dist/public/assets/_IhVfDlWX.js.br +0 -0
  434. package/dist/public/assets/_LPVI7IWH.js.br +0 -0
  435. package/dist/public/assets/_LnVGJVE9.js.br +0 -0
  436. package/dist/public/assets/_NeEKDkp-.js.br +0 -0
  437. package/dist/public/assets/_OOvqt4Cu.js +0 -1
  438. package/dist/public/assets/_P2Z3W-b_.js +0 -1
  439. package/dist/public/assets/_P_Fs6JxU.js +0 -1
  440. package/dist/public/assets/_UO4CFdfB.js.br +0 -0
  441. package/dist/public/assets/_UPO2VT10.js +0 -1
  442. package/dist/public/assets/_UrvwaX8N.js.br +0 -0
  443. package/dist/public/assets/_Vcpg8hrJ.js.br +0 -0
  444. package/dist/public/assets/_XMZiIqGS.js +0 -1
  445. package/dist/public/assets/_Xxd2cIT4.js.br +0 -0
  446. package/dist/public/assets/_ZQZbpUrY.js +0 -1
  447. package/dist/public/assets/_ZZETzYKz.js +0 -1
  448. package/dist/public/assets/_Zb42U2Ds.js.br +0 -0
  449. package/dist/public/assets/__JdPVCDX.js.br +0 -0
  450. package/dist/public/assets/_d4zb0vmQ.js +0 -1
  451. package/dist/public/assets/_dHdDB9Ij.js.br +0 -0
  452. package/dist/public/assets/_ezJ0M_OK.js.br +0 -0
  453. package/dist/public/assets/_ffXsdO8V.js.br +0 -0
  454. package/dist/public/assets/_hnbLW63E.js.br +0 -0
  455. package/dist/public/assets/_nFMawqWh.js +0 -1
  456. package/dist/public/assets/_nGGRWVOp.js.br +0 -0
  457. package/dist/public/assets/_o-Vr8djF.js +0 -1
  458. package/dist/public/assets/_p-NLERu0.js.br +0 -0
  459. package/dist/public/assets/_pzD9IG_a.js +0 -1
  460. package/dist/public/assets/_qS_etdwX.js +0 -1
  461. package/dist/public/assets/_rDwfJwTU.js +0 -1
  462. package/dist/public/assets/_tpY6kbXX.js.br +0 -0
  463. package/dist/public/assets/_wFqerxDO.js.br +0 -0
  464. package/dist/public/assets/_yOPNieV5.js +0 -1
  465. package/dist/public/assets/_yTIzFyGW.js.br +0 -0
  466. package/dist/public/assets/_ysUX4afh.js +0 -1
  467. package/dist/public/assets/_z6bz-Tjr.js +0 -1
  468. package/dist/public/assets/files-view-Oq7ylVrp.js +0 -2
  469. package/dist/public/assets/manage-workspace-D8fFsyGw.js +0 -2
  470. package/dist/public/assets/new-CqmZlqM_.js +0 -1
  471. package/dist/public/assets/new-workspace-C6SGnWhq.js +0 -2
  472. package/dist/public/assets/review-view-za0MlKDo.js +0 -2
  473. package/dist/public/assets/settings-CqmZlqM_.js +0 -1
  474. package/dist/public/assets/settings-page-COkQDmZq.js +0 -2
  475. package/dist/public/assets/styles-BqpWVW8D.css.br +0 -0
  476. package/dist/public/assets/w-CqmZlqM_.js +0 -1
  477. package/dist/public/assets/w._-CqmZlqM_.js +0 -1
  478. package/dist/public/assets/w._-D6EwcJLL.js +0 -1
  479. package/dist/public/assets/w._-WhVVje_u.js +0 -1
@@ -1,5 +1,5 @@
1
- const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/_DCGpHpi7.js","assets/_hnbLW63E.js","assets/_DbzHv_7l.js","assets/_D24XsKqA.js","assets/_D_Ff83ji.js","assets/_DDzAitj6.js","assets/_CZ_BUikO.js","assets/_BN00BAfx.js","assets/_CyGJVSLC.js","assets/_LnVGJVE9.js","assets/_dHdDB9Ij.js","assets/__JdPVCDX.js","assets/_BXeXVLqQ.js","assets/_Bnp0rYDY.js","assets/_5bXe0eYt.js","assets/_MLT-X_-J.js","assets/_BfNGXdSm.js","assets/_YkIvmgMd.js","assets/_bTVj8UrX.js","assets/_BAfg1_wL.js","assets/_gzcpVVnB.js","assets/_Xxd2cIT4.js","assets/_CxRXlSoq.js","assets/_Vcpg8hrJ.js","assets/_CurO03m7.js","assets/_C9uMLkyx.js","assets/_Zb42U2Ds.js","assets/_D19FNTb3.js","assets/_DLs08AMa.js","assets/_CfNOhb5v.js","assets/_Bxgsmzwu.js","assets/_D0uEJAAi.js","assets/_BT6zUuyQ.js","assets/_CBb-o6o9.js","assets/_D3MEk3Yr.js","assets/_nGGRWVOp.js","assets/_CETvl4vf.js","assets/_Cl08BbR0.js","assets/_C5Hz7MOr.js","assets/_wFqerxDO.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/_BDKkWHOJ.js","assets/_G2Wel3wu.js","assets/_DAVKAEHq.js","assets/_Doy6XDEU.js","assets/_CRUinuwR.js","assets/_DeRqmp5B.js","assets/_ffXsdO8V.js","assets/_Dx-8-gkx.js","assets/_DekxQCZG.js","assets/_C8oCnwJJ.js","assets/_IhVfDlWX.js","assets/_De6EIZM4.js","assets/_BM9aXgVu.js","assets/_D_rhClxZ.js","assets/_Bh6LTqYW.js","assets/_C0dIJE8N.js","assets/_CKNF1wsP.js","assets/_GPsPOivU.js","assets/_C8Zpa0QX.js","assets/_ezJ0M_OK.js","assets/_DVTAwKKz.js","assets/_DwADmhIl.js","assets/_DWQbgPoS.js","assets/_DJMQeKeT.js","assets/_BgE1a_4A.js","assets/_yTIzFyGW.js","assets/_DeGXKeNT.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/_UrvwaX8N.js","assets/_DOwzaHZ0.js","assets/_B3gFvitq.js","assets/_Cfkwpbl8.js","assets/_BiFt_7mu.js","assets/_CMLA9XwU.js","assets/_CKdmu483.js","assets/_Cqug9rFg.js","assets/_DHKi6Nf9.js","assets/_EfrWapba.js","assets/_p-NLERu0.js","assets/_Bj61d0ZC.js","assets/_CB4gwuBe.js","assets/_DB-OQ-9y.js","assets/_Cvrh5tZx.js","assets/_B1xyjoda.js","assets/_CUs9y1fx.js","assets/_L8AbGenz.js","assets/_ByJddavk.js","assets/_LPVI7IWH.js","assets/_BuVGxHF-.js","assets/_BXayyztT.js","assets/_Cc23NgEv.js","assets/_D4Qd4S5q.js","assets/_B0ioXev-.js","assets/_Bj4abRVz.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/_tpY6kbXX.js","assets/_E7L6qU5-.js","assets/_UO4CFdfB.js","assets/_B6D30XZt.js"])))=>i.map(i=>d[i]);
2
- import{G as e,I as t,K as n,L as r,Lt as i,Mt as a,P as o,Rt as s,W as c,X as l,Y as u,jt as d,kt as f,q as p,wt as m,z as h}from"./_B1TJLUCg.js";import{B as g,D as _,F as v,G as y,H as b,I as x,K as S,L as C,O as w,P as T,R as E,U as D,V as O,W as k,Y as A,_ as ee,a as j,b as M,i as N,j as te,l as ne,n as re,q as ie,r as ae,t as P,u as oe,v as F,x as se,y as I,z as ce}from"./_ahCaQNeo.js";import{A as le,An as ue,C as de,Dn as fe,E as pe,Ht as me,Mn as he,On as ge,Pn as _e,Q as ve,R as ye,S as be,T as xe,U as Se,Vt as Ce,Wt as we,_ as L,a as Te,b as Ee,i as De,n as Oe,on as ke,r as Ae,t as je,v as Me,vt as Ne,w as Pe,x as Fe,y as Ie,z as Le}from"./_DRHNkzgS.js";import{t as Re}from"./_B6ec2v05.js";import{A as ze,D as Be,E as Ve,G as He,H as Ue,J as We,M as Ge,N as Ke,O as qe,Q as Je,T as Ye,W as Xe,a as Ze,c as Qe,d as $e,f as et,j as tt,k as nt,l as rt,m as it,n as at,o as ot,p as R,s as z,u as st}from"./_B_18IRUI.js";import{$ as ct,A as lt,D as ut,E as dt,F as ft,K as pt,L as mt,M as ht,N as gt,O as _t,P as vt,T as yt,W as bt,a as xt,et as St,i as Ct,it as wt,j as Tt,k as Et,n as Dt,nt as Ot,r as kt,t as At,x as jt,z as Mt}from"./_C-E160Gv.js";import{t as Nt}from"./_D2pdXUO3.js";import{a as Pt,c as Ft,d as It,f as Lt,i as Rt,l as zt,n as Bt,o as Vt,p as Ht,r as Ut,s as Wt,t as Gt,u as Kt}from"./_CctnlsVG.js";import{t as qt}from"./_CcFCI5Av.js";import{_ as Jt,c as Yt,d as Xt,f as Zt,g as Qt,l as $t,m as en,p as tn,s as nn,u as rn,v as an,y as on}from"./_DdNmfNDf.js";import{a as sn,i as cn,n as ln,o as un,r as dn,t as fn}from"./_Cy6ny6jR.js";import{a as pn,i as mn,n as hn,r as gn,t as _n}from"./_CoZyO7lb.js";var vn=Object.create,yn=Object.defineProperty,bn=Object.getOwnPropertyDescriptor,xn=Object.getOwnPropertyNames,Sn=Object.getPrototypeOf,Cn=Object.prototype.hasOwnProperty,wn=(e,t)=>()=>(t||(e((t={exports:{}}).exports,t),e=null),t.exports),Tn=(e,t)=>{let n={};for(var r in e)yn(n,r,{get:e[r],enumerable:!0});return t||yn(n,Symbol.toStringTag,{value:`Module`}),n},En=(e,t,n,r)=>{if(t&&typeof t==`object`||typeof t==`function`)for(var i=xn(t),a=0,o=i.length,s;a<o;a++)s=i[a],!Cn.call(e,s)&&s!==n&&yn(e,s,{get:(e=>t[e]).bind(null,s),enumerable:!(r=bn(t,s))||r.enumerable});return e},Dn=(e,t,n)=>(n=e==null?{}:vn(Sn(e)),En(t||!e||!e.__esModule||!Cn.call(e,`default`)?yn(n,`default`,{value:e,enumerable:!0}):n,e)),On=`diffs-container`,kn=(()=>{try{return!1}catch{return!1}})(),An=/(?=^From [a-f0-9]+ .+$)/m,jn=/(?=^diff --git)/gm,Mn=/(?<=\n)/,Nn=/^(---|\+\+\+)\s+([^\t\r\n]+)/,Pn=/^index ([0-9a-f]+)\.\.([0-9a-f]+)(?: (\d+))?$/i,Fn=`header-prefix`,In=`header-filename-suffix`,Ln=`header-metadata`,Rn=`header-custom`,zn={dark:`pierre-dark`,light:`pierre-light`},Bn=`data-theme-css`,Vn=`data-unsafe-css`,Hn=`data-diffs-scrollbar-measure`,Un=`data-diffs-code-view-header`,Wn=`data-diffs-code-view-footer`,Gn=`--diffs-scrollbar-gutter-measured`,Kn=1e5,qn={hunkLineCount:50,lineHeight:20,diffHeaderHeight:44,spacing:8},Jn={...qn,hunkLineCount:1},Yn={paddingTop:8,paddingBottom:8,gap:8},Xn={omega:.015,positionEpsilon:.5,velocityEpsilon:.05},Zn=Object.freeze({fromStart:0,fromEnd:0}),Qn={startingLine:0,totalLines:1/0,bufferBefore:0,bufferAfter:0},$n={startingLine:0,totalLines:0,bufferBefore:0,bufferAfter:0},er=new Map,tr=new Map,nr=new Map,rr=new Set;function ir(e){for(let t of Array.isArray(e)?e:[e])if(t!==`text`&&t!==`ansi`&&!rr.has(t))return!1;return!0}function ar(e,t){e=Array.isArray(e)?e:[e];for(let n of e){if(rr.has(n.name))continue;let e=er.get(n.name);e??(e=n,er.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.`)}rr.add(e.name)}}function or(){return typeof WorkerGlobalScope<`u`&&typeof self<`u`&&self instanceof WorkerGlobalScope}var sr=Object.defineProperty,cr=Object.getOwnPropertyDescriptor,lr=Object.getOwnPropertyNames,ur=Object.prototype.hasOwnProperty,dr=(e,t)=>{let n={};for(var r in e)sr(n,r,{get:e[r],enumerable:!0});return t||sr(n,Symbol.toStringTag,{value:`Module`}),n},fr=(e,t,n,r)=>{if(t&&typeof t==`object`||typeof t==`function`)for(var i=lr(t),a=0,o=i.length,s;a<o;a++)s=i[a],!ur.call(e,s)&&s!==n&&sr(e,s,{get:(e=>t[e]).bind(null,s),enumerable:!(r=cr(t,s))||r.enumerable});return e},pr=(e,t,n)=>(fr(e,t,`default`),n&&fr(n,t,`default`)),mr=[{id:`abap`,name:`ABAP`,import:(()=>P(()=>import(`./_CLvhMVsD.js`),[]))},{id:`actionscript-3`,name:`ActionScript`,aliases:[`actionscript`,`as3`],import:(()=>P(()=>import(`./_Cs6JJXT5.js`),[]))},{id:`ada`,name:`Ada`,import:(()=>P(()=>import(`./_C5qYipkI.js`),[]))},{id:`ahk`,name:`AutoHotkey`,aliases:[`ahk1`],import:(()=>P(()=>import(`./_CA9gdOdF.js`),[]))},{id:`ahk2`,name:`AutoHotkey2`,import:(()=>P(()=>import(`./__6rzW9BS.js`),[]))},{id:`angular-html`,name:`Angular HTML`,import:(()=>P(()=>import(`./_DCGpHpi7.js`).then(e=>e.n),__vite__mapDeps([0,1,2,3])))},{id:`angular-ts`,name:`Angular TypeScript`,import:(()=>P(()=>import(`./_D_Ff83ji.js`),__vite__mapDeps([4,0,1,2,3,5])))},{id:`apache`,name:`Apache Conf`,import:(()=>P(()=>import(`./_U0d_L8uA.js`),[]))},{id:`apex`,name:`Apex`,import:(()=>P(()=>import(`./_KFGFyKwG.js`),[]))},{id:`apl`,name:`APL`,import:(()=>P(()=>import(`./_CZ_BUikO.js`),__vite__mapDeps([6,2,3,1,7,8,9])))},{id:`applescript`,name:`AppleScript`,import:(()=>P(()=>import(`./_CCn79oCD.js`),[]))},{id:`ara`,name:`Ara`,import:(()=>P(()=>import(`./_4CJ0cIlV.js`),[]))},{id:`asciidoc`,name:`AsciiDoc`,aliases:[`adoc`],import:(()=>P(()=>import(`./_SCjQUq34.js`),[]))},{id:`asm`,name:`Assembly`,import:(()=>P(()=>import(`./_Cmm7eHzH.js`),[]))},{id:`astro`,name:`Astro`,import:(()=>P(()=>import(`./_dHdDB9Ij.js`),__vite__mapDeps([10,2,3,9,11,12,13])))},{id:`awk`,name:`AWK`,import:(()=>P(()=>import(`./_BWXHIvNe.js`),[]))},{id:`ballerina`,name:`Ballerina`,import:(()=>P(()=>import(`./_B7ZEbQpA.js`),[]))},{id:`bat`,name:`Batch File`,aliases:[`batch`,`cmd`],import:(()=>P(()=>import(`./_qdxAdBWQ.js`),[]))},{id:`beancount`,name:`Beancount`,import:(()=>P(()=>import(`./_D-usSTwE.js`),[]))},{id:`berry`,name:`Berry`,aliases:[`be`],import:(()=>P(()=>import(`./_DKpUyyne.js`),[]))},{id:`bibtex`,name:`BibTeX`,import:(()=>P(()=>import(`./_Ci_nEsc7.js`),[]))},{id:`bicep`,name:`Bicep`,import:(()=>P(()=>import(`./_CUHmPFLl.js`),[]))},{id:`bird2`,name:`BIRD2 Configuration`,aliases:[`bird`],import:(()=>P(()=>import(`./_CYIUgYqB.js`),[]))},{id:`blade`,name:`Blade`,import:(()=>P(()=>import(`./_5bXe0eYt.js`),__vite__mapDeps([14,2,3,1,7,8,9,15,16])))},{id:`bsl`,name:`1C (Enterprise)`,aliases:[`1c`],import:(()=>P(()=>import(`./_YkIvmgMd.js`),__vite__mapDeps([17,18])))},{id:`c`,name:`C`,import:(()=>P(()=>import(`./_CxRXlSoq.js`).then(e=>e.n),[]))},{id:`c3`,name:`C3`,import:(()=>P(()=>import(`./_D0apG41V.js`),[]))},{id:`cadence`,name:`Cadence`,aliases:[`cdc`],import:(()=>P(()=>import(`./_CQ2zXKGN.js`),[]))},{id:`cairo`,name:`Cairo`,import:(()=>P(()=>import(`./_BAfg1_wL.js`),__vite__mapDeps([19,20])))},{id:`chapel`,name:`Chapel`,aliases:[`chpl`],import:(()=>P(()=>import(`./_Xxd2cIT4.js`),__vite__mapDeps([21,22])))},{id:`clarity`,name:`Clarity`,import:(()=>P(()=>import(`./_CtfBBspg.js`),[]))},{id:`clojure`,name:`Clojure`,aliases:[`clj`],import:(()=>P(()=>import(`./_DqKBuwfJ.js`),[]))},{id:`cmake`,name:`CMake`,import:(()=>P(()=>import(`./_Bj61d0ZC.js`),[]))},{id:`cobol`,name:`COBOL`,import:(()=>P(()=>import(`./_Vcpg8hrJ.js`),__vite__mapDeps([23,1,2,3,8])))},{id:`codeowners`,name:`CODEOWNERS`,import:(()=>P(()=>import(`./_C8r90Shi.js`),[]))},{id:`codeql`,name:`CodeQL`,aliases:[`ql`],import:(()=>P(()=>import(`./_oeQT6MSM.js`),[]))},{id:`coffee`,name:`CoffeeScript`,aliases:[`coffeescript`],import:(()=>P(()=>import(`./_CurO03m7.js`),__vite__mapDeps([24,2])))},{id:`common-lisp`,name:`Common Lisp`,aliases:[`lisp`],import:(()=>P(()=>import(`./_Cv5bFMCO.js`),[]))},{id:`coq`,name:`Rocq`,import:(()=>P(()=>import(`./_DuBRPxYg.js`),[]))},{id:`cpp`,name:`C++`,aliases:[`c++`],import:(()=>P(()=>import(`./_C9uMLkyx.js`).then(e=>e.n),__vite__mapDeps([25,26,27,22])))},{id:`crystal`,name:`Crystal`,import:(()=>P(()=>import(`./_DLs08AMa.js`),__vite__mapDeps([28,2,3,1,16,22,29])))},{id:`csharp`,name:`C#`,aliases:[`c#`,`cs`],import:(()=>P(()=>import(`./_oqKa8noW.js`),[]))},{id:`css`,name:`CSS`,import:(()=>P(()=>import(`./_D24XsKqA.js`).then(e=>e.n),[]))},{id:`csv`,name:`CSV`,import:(()=>P(()=>import(`./_Dx-8-gkx.js`),[]))},{id:`cue`,name:`CUE`,import:(()=>P(()=>import(`./_CE9AQfxI.js`),[]))},{id:`cypher`,name:`Cypher`,aliases:[`cql`],import:(()=>P(()=>import(`./_ClKdZ_lG.js`),[]))},{id:`d`,name:`D`,import:(()=>P(()=>import(`./_qD-0Kul2.js`),[]))},{id:`dart`,name:`Dart`,import:(()=>P(()=>import(`./_CnvKMtbv.js`),[]))},{id:`dax`,name:`DAX`,import:(()=>P(()=>import(`./_BkyTk9wS.js`),[]))},{id:`desktop`,name:`Desktop`,import:(()=>P(()=>import(`./_Dlh5hvp9.js`),[]))},{id:`diff`,name:`Diff`,import:(()=>P(()=>import(`./_woXpYk--.js`),[]))},{id:`docker`,name:`Dockerfile`,aliases:[`dockerfile`],import:(()=>P(()=>import(`./_IyjqRm3v.js`),[]))},{id:`dotenv`,name:`dotEnv`,import:(()=>P(()=>import(`./__5a1GRtc.js`),[]))},{id:`dream-maker`,name:`Dream Maker`,import:(()=>P(()=>import(`./_DW3nJb8Q.js`),[]))},{id:`edge`,name:`Edge`,import:(()=>P(()=>import(`./_Bxgsmzwu.js`),__vite__mapDeps([30,1,2,3,11,15])))},{id:`elixir`,name:`Elixir`,import:(()=>P(()=>import(`./_D0uEJAAi.js`),__vite__mapDeps([31,1,2,3])))},{id:`elm`,name:`Elm`,import:(()=>P(()=>import(`./_BT6zUuyQ.js`),__vite__mapDeps([32,27,22])))},{id:`emacs-lisp`,name:`Emacs Lisp`,aliases:[`elisp`],import:(()=>P(()=>import(`./_c_oH4hRZ.js`),[]))},{id:`erb`,name:`ERB`,import:(()=>P(()=>import(`./_CBb-o6o9.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:(()=>P(()=>import(`./_BaHq4SXp.js`),__vite__mapDeps([40,41])))},{id:`fennel`,name:`Fennel`,import:(()=>P(()=>import(`./_DQxkIbk2.js`),[]))},{id:`fish`,name:`Fish`,import:(()=>P(()=>import(`./_BJitypiv.js`),[]))},{id:`fluent`,name:`Fluent`,aliases:[`ftl`],import:(()=>P(()=>import(`./_C03EYrpw.js`),[]))},{id:`fortran-fixed-form`,name:`Fortran (Fixed Form)`,aliases:[`f`,`for`,`f77`],import:(()=>P(()=>import(`./_CQJs3lWb.js`),__vite__mapDeps([42,43])))},{id:`fortran-free-form`,name:`Fortran (Free Form)`,aliases:[`f90`,`f95`,`f03`,`f08`,`f18`],import:(()=>P(()=>import(`./_CYNrtFtB.js`),[]))},{id:`fsharp`,name:`F#`,aliases:[`f#`,`fs`],import:(()=>P(()=>import(`./_DmIc4jLQ.js`),__vite__mapDeps([44,41])))},{id:`gdresource`,name:`GDResource`,aliases:[`tscn`,`tres`],import:(()=>P(()=>import(`./_DbYA3moe.js`),__vite__mapDeps([45,46,47])))},{id:`gdscript`,name:`GDScript`,aliases:[`gd`],import:(()=>P(()=>import(`./_DYvRD3hg.js`),[]))},{id:`gdshader`,name:`GDShader`,import:(()=>P(()=>import(`./_CBce3t8t.js`),[]))},{id:`genie`,name:`Genie`,import:(()=>P(()=>import(`./_CV2tkWYe.js`),[]))},{id:`gherkin`,name:`Gherkin`,import:(()=>P(()=>import(`./_DExj1W_8.js`),[]))},{id:`git-commit`,name:`Git Commit Message`,import:(()=>P(()=>import(`./_Dl-2e7rI.js`),__vite__mapDeps([48,49])))},{id:`git-rebase`,name:`Git Rebase Message`,import:(()=>P(()=>import(`./_BDKkWHOJ.js`),__vite__mapDeps([50,29])))},{id:`gleam`,name:`Gleam`,import:(()=>P(()=>import(`./_CSRkHgEL.js`),[]))},{id:`glimmer-js`,name:`Glimmer JS`,aliases:[`gjs`],import:(()=>P(()=>import(`./_G2Wel3wu.js`),__vite__mapDeps([51,2,3,1,11])))},{id:`glimmer-ts`,name:`Glimmer TS`,aliases:[`gts`],import:(()=>P(()=>import(`./_DAVKAEHq.js`),__vite__mapDeps([52,2,3,1,11])))},{id:`glsl`,name:`GLSL`,import:(()=>P(()=>import(`./_D19FNTb3.js`).then(e=>e.n),__vite__mapDeps([27,22])))},{id:`gn`,name:`GN`,import:(()=>P(()=>import(`./_ilITqXS6.js`),[]))},{id:`gnuplot`,name:`Gnuplot`,import:(()=>P(()=>import(`./_7GGW24-e.js`),[]))},{id:`go`,name:`Go`,import:(()=>P(()=>import(`./_rLFTqkRN.js`),[]))},{id:`graphql`,name:`GraphQL`,aliases:[`gql`],import:(()=>P(()=>import(`./_CETvl4vf.js`).then(e=>e.n),__vite__mapDeps([36,2,11,13,37])))},{id:`groovy`,name:`Groovy`,import:(()=>P(()=>import(`./_CacY0gHj.js`),[]))},{id:`hack`,name:`Hack`,import:(()=>P(()=>import(`./_Doy6XDEU.js`),__vite__mapDeps([53,1,2,3,16])))},{id:`haml`,name:`Ruby Haml`,import:(()=>P(()=>import(`./_nGGRWVOp.js`).then(e=>e.n),__vite__mapDeps([35,2,3])))},{id:`handlebars`,name:`Handlebars`,aliases:[`hbs`],import:(()=>P(()=>import(`./_CRUinuwR.js`),__vite__mapDeps([54,2,3,1,39])))},{id:`haskell`,name:`Haskell`,aliases:[`hs`],import:(()=>P(()=>import(`./_D8IpX4py.js`),[]))},{id:`haxe`,name:`Haxe`,import:(()=>P(()=>import(`./_C8oCnwJJ.js`),[]))},{id:`hcl`,name:`HashiCorp HCL`,import:(()=>P(()=>import(`./_Dh228itO.js`),[]))},{id:`hjson`,name:`Hjson`,import:(()=>P(()=>import(`./_CxZEssPk.js`),[]))},{id:`hlsl`,name:`HLSL`,import:(()=>P(()=>import(`./_Cvrh5tZx.js`),[]))},{id:`html`,name:`HTML`,import:(()=>P(()=>import(`./_hnbLW63E.js`).then(e=>e.n),__vite__mapDeps([1,2,3])))},{id:`html-derivative`,name:`HTML (Derivative)`,import:(()=>P(()=>import(`./_MLT-X_-J.js`),__vite__mapDeps([15,1,2,3])))},{id:`http`,name:`HTTP`,import:(()=>P(()=>import(`./_DeRqmp5B.js`),__vite__mapDeps([55,7,8,9,29,36,2,11,13,37])))},{id:`hurl`,name:`Hurl`,import:(()=>P(()=>import(`./_ffXsdO8V.js`),__vite__mapDeps([56,7,8,57,36,2,11,13,37])))},{id:`hxml`,name:`HXML`,import:(()=>P(()=>import(`./_DekxQCZG.js`),__vite__mapDeps([58,59])))},{id:`hy`,name:`Hy`,import:(()=>P(()=>import(`./_CZbG8q4J.js`),[]))},{id:`imba`,name:`Imba`,import:(()=>P(()=>import(`./_DsUTQ-LC.js`),[]))},{id:`ini`,name:`INI`,aliases:[`properties`],import:(()=>P(()=>import(`./_B5eOa1yu.js`),[]))},{id:`java`,name:`Java`,import:(()=>P(()=>import(`./_CyGJVSLC.js`).then(e=>e.n),[]))},{id:`javascript`,name:`JavaScript`,aliases:[`js`,`cjs`,`mjs`],import:(()=>P(()=>import(`./_DbzHv_7l.js`).then(e=>e.n),[]))},{id:`jinja`,name:`Jinja`,import:(()=>P(()=>import(`./_IhVfDlWX.js`),__vite__mapDeps([60,1,2,3])))},{id:`jison`,name:`Jison`,import:(()=>P(()=>import(`./_De6EIZM4.js`),__vite__mapDeps([61,2])))},{id:`json`,name:`JSON`,import:(()=>P(()=>import(`./_LnVGJVE9.js`).then(e=>e.n),[]))},{id:`json5`,name:`JSON5`,import:(()=>P(()=>import(`./_BR5RXkoi.js`),[]))},{id:`jsonc`,name:`JSON with Comments`,import:(()=>P(()=>import(`./_CYpm1nAK.js`),[]))},{id:`jsonl`,name:`JSON Lines`,import:(()=>P(()=>import(`./_CmCQp5Yx.js`),[]))},{id:`jsonnet`,name:`Jsonnet`,import:(()=>P(()=>import(`./_CJTPZ8u_.js`),[]))},{id:`jssm`,name:`JSSM`,aliases:[`fsl`],import:(()=>P(()=>import(`./_DXw9l8Rf.js`),[]))},{id:`jsx`,name:`JSX`,import:(()=>P(()=>import(`./_Cl08BbR0.js`).then(e=>e.n),[]))},{id:`julia`,name:`Julia`,aliases:[`jl`],import:(()=>P(()=>import(`./_BM9aXgVu.js`),__vite__mapDeps([62,2,16,20,25,26,27,22,63])))},{id:`just`,name:`Just`,aliases:[`justfile`],import:(()=>P(()=>import(`./_Bh6LTqYW.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:(()=>P(()=>import(`./_CsD5j6eV.js`),[]))},{id:`kotlin`,name:`Kotlin`,aliases:[`kt`,`kts`],import:(()=>P(()=>import(`./_DhhofPvG.js`),[]))},{id:`kusto`,name:`Kusto`,aliases:[`kql`],import:(()=>P(()=>import(`./_C7mF5XQf.js`),[]))},{id:`latex`,name:`LaTeX`,import:(()=>P(()=>import(`./_CKNF1wsP.js`),__vite__mapDeps([66,67,63])))},{id:`lean`,name:`Lean 4`,aliases:[`lean4`],import:(()=>P(()=>import(`./_CewbzKMR.js`),[]))},{id:`less`,name:`Less`,import:(()=>P(()=>import(`./_DVTAwKKz.js`),[]))},{id:`liquid`,name:`Liquid`,import:(()=>P(()=>import(`./_C8Zpa0QX.js`),__vite__mapDeps([68,2,3,1,9])))},{id:`llvm`,name:`LLVM IR`,import:(()=>P(()=>import(`./_DqHOMS-s.js`),[]))},{id:`log`,name:`Log file`,import:(()=>P(()=>import(`./_BNLmms1o.js`),[]))},{id:`logo`,name:`Logo`,import:(()=>P(()=>import(`./_Cluzi2Zq.js`),[]))},{id:`lua`,name:`Lua`,import:(()=>P(()=>import(`./_C5Hz7MOr.js`).then(e=>e.n),__vite__mapDeps([38,22])))},{id:`luau`,name:`Luau`,import:(()=>P(()=>import(`./_C2pBCSgt.js`),[]))},{id:`make`,name:`Makefile`,aliases:[`makefile`],import:(()=>P(()=>import(`./_Dixweg8N.js`),[]))},{id:`markdown`,name:`Markdown`,aliases:[`md`],import:(()=>P(()=>import(`./_BYOwaDjH.js`),[]))},{id:`marko`,name:`Marko`,import:(()=>P(()=>import(`./_ezJ0M_OK.js`),__vite__mapDeps([69,3,5,11,70])))},{id:`matlab`,name:`MATLAB`,import:(()=>P(()=>import(`./_D7qyCx1q.js`),[]))},{id:`mdc`,name:`MDC`,import:(()=>P(()=>import(`./_DwADmhIl.js`),__vite__mapDeps([71,15,1,2,3,39,41])))},{id:`mdx`,name:`MDX`,import:(()=>P(()=>import(`./_DQZ5AkYe.js`),[]))},{id:`mermaid`,name:`Mermaid`,aliases:[`mmd`],import:(()=>P(()=>import(`./_BxpfTIzt.js`),[]))},{id:`mipsasm`,name:`MIPS Assembly`,aliases:[`mips`],import:(()=>P(()=>import(`./_BMqwQI7S.js`),[]))},{id:`mojo`,name:`Mojo`,import:(()=>P(()=>import(`./_fg40_ntQ.js`),[]))},{id:`moonbit`,name:`MoonBit`,aliases:[`mbt`,`mbti`],import:(()=>P(()=>import(`./_DgjMoLWr.js`),[]))},{id:`move`,name:`Move`,import:(()=>P(()=>import(`./_BYnGhZoM.js`),[]))},{id:`narrat`,name:`Narrat Language`,aliases:[`nar`],import:(()=>P(()=>import(`./__X_XdTYD.js`),[]))},{id:`nextflow`,name:`Nextflow`,aliases:[`nf`],import:(()=>P(()=>import(`./_DWQbgPoS.js`),__vite__mapDeps([72,73])))},{id:`nextflow-groovy`,name:`Nextflow Groovy`,import:(()=>P(()=>import(`./_DJMQeKeT.js`),[]))},{id:`nginx`,name:`Nginx`,import:(()=>P(()=>import(`./_BgE1a_4A.js`),__vite__mapDeps([74,38,22])))},{id:`nim`,name:`Nim`,import:(()=>P(()=>import(`./_yTIzFyGW.js`),__vite__mapDeps([75,2,3,1,7,8,22,27,41])))},{id:`nix`,name:`Nix`,import:(()=>P(()=>import(`./_IvuFDN5E.js`),[]))},{id:`nsis`,name:`NSIS`,import:(()=>P(()=>import(`./_CjNLYCLg.js`),[]))},{id:`nushell`,name:`nushell`,aliases:[`nu`],import:(()=>P(()=>import(`./_DHYfO66s.js`),[]))},{id:`objective-c`,name:`Objective-C`,aliases:[`objc`],import:(()=>P(()=>import(`./_D1A_Heim.js`),[]))},{id:`objective-cpp`,name:`Objective-C++`,import:(()=>P(()=>import(`./_BsSzOQcm.js`),[]))},{id:`ocaml`,name:`OCaml`,import:(()=>P(()=>import(`./_O90oeIOV.js`),[]))},{id:`odin`,name:`Odin`,import:(()=>P(()=>import(`./_B1RWQWA5.js`),[]))},{id:`openscad`,name:`OpenSCAD`,aliases:[`scad`],import:(()=>P(()=>import(`./_BUDT5pXO.js`),[]))},{id:`org`,name:`Org Markup`,import:(()=>P(()=>import(`./_DeGXKeNT.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:(()=>P(()=>import(`./_4ZHwLPI5.js`),[]))},{id:`perl`,name:`Perl`,import:(()=>P(()=>import(`./_C0dIJE8N.js`),__vite__mapDeps([65,2,3,1,7,8,16])))},{id:`php`,name:`PHP`,import:(()=>P(()=>import(`./_UrvwaX8N.js`),__vite__mapDeps([87,2,3,1,7,8,9,16])))},{id:`pkl`,name:`Pkl`,import:(()=>P(()=>import(`./_ot-7Btpt.js`),[]))},{id:`plsql`,name:`PL/SQL`,import:(()=>P(()=>import(`./_DGHpHOYJ.js`),[]))},{id:`po`,name:`Gettext PO`,aliases:[`pot`,`potx`],import:(()=>P(()=>import(`./_BiJDBrnU.js`),[]))},{id:`polar`,name:`Polar`,import:(()=>P(()=>import(`./_C7UOKdEL.js`),[]))},{id:`postcss`,name:`PostCSS`,import:(()=>P(()=>import(`./_BXeXVLqQ.js`),[]))},{id:`powerquery`,name:`PowerQuery`,import:(()=>P(()=>import(`./_DNMTfnFr.js`),[]))},{id:`powershell`,name:`PowerShell`,aliases:[`ps`,`ps1`,`pwsh`],import:(()=>P(()=>import(`./_CCSX75yM.js`),[]))},{id:`prisma`,name:`Prisma`,import:(()=>P(()=>import(`./_DMgNhnYS.js`),[]))},{id:`prolog`,name:`Prolog`,import:(()=>P(()=>import(`./_iXnhIJG7.js`),[]))},{id:`proto`,name:`Protocol Buffer 3`,aliases:[`protobuf`],import:(()=>P(()=>import(`./_DB4EqR-F.js`),[]))},{id:`pug`,name:`Pug`,aliases:[`jade`],import:(()=>P(()=>import(`./_Cqug9rFg.js`),__vite__mapDeps([94,2,3,1])))},{id:`puppet`,name:`Puppet`,import:(()=>P(()=>import(`./_CDv2pdJW.js`),[]))},{id:`purescript`,name:`PureScript`,import:(()=>P(()=>import(`./_9MfHhQsQ.js`),[]))},{id:`python`,name:`Python`,aliases:[`py`],import:(()=>P(()=>import(`./_gzcpVVnB.js`),[]))},{id:`qml`,name:`QML`,import:(()=>P(()=>import(`./_DHKi6Nf9.js`),__vite__mapDeps([95,2])))},{id:`qmldir`,name:`QML Directory`,import:(()=>P(()=>import(`./_DCQb3MpD.js`),[]))},{id:`qss`,name:`Qt Style Sheets`,import:(()=>P(()=>import(`./_Fe1Jh2GI.js`),[]))},{id:`r`,name:`R`,import:(()=>P(()=>import(`./_D_rhClxZ.js`).then(e=>e.n),[]))},{id:`racket`,name:`Racket`,import:(()=>P(()=>import(`./_DcIDlBhZ.js`),[]))},{id:`raku`,name:`Raku`,aliases:[`perl6`],import:(()=>P(()=>import(`./_B3gFvitq.js`),[]))},{id:`razor`,name:`ASP.NET Razor`,import:(()=>P(()=>import(`./_EfrWapba.js`),__vite__mapDeps([96,1,2,3,78])))},{id:`rbs`,name:`RBS`,aliases:[`ruby-signature`],import:(()=>P(()=>import(`./_C0MpOrj4.js`),[]))},{id:`reg`,name:`Windows Registry Script`,import:(()=>P(()=>import(`./_CRGYupPL.js`),[]))},{id:`regexp`,name:`RegExp`,aliases:[`regex`],import:(()=>P(()=>import(`./_Zb42U2Ds.js`).then(e=>e.n),[]))},{id:`rel`,name:`Rel`,import:(()=>P(()=>import(`./_BtDbiS_P.js`),[]))},{id:`riscv`,name:`RISC-V`,import:(()=>P(()=>import(`./_Ckw8ddFX.js`),[]))},{id:`ron`,name:`RON`,import:(()=>P(()=>import(`./_VUp2lXgN.js`),[]))},{id:`rosmsg`,name:`ROS Interface`,import:(()=>P(()=>import(`./_CAekHB0j.js`),[]))},{id:`rst`,name:`reStructuredText`,import:(()=>P(()=>import(`./_p-NLERu0.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:(()=>P(()=>import(`./_D3MEk3Yr.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:(()=>P(()=>import(`./_Cfkwpbl8.js`),[]))},{id:`sas`,name:`SAS`,import:(()=>P(()=>import(`./_CB4gwuBe.js`),__vite__mapDeps([99,16])))},{id:`sass`,name:`Sass`,import:(()=>P(()=>import(`./_DXrisJhu.js`),[]))},{id:`scala`,name:`Scala`,import:(()=>P(()=>import(`./_BiFt_7mu.js`),[]))},{id:`scheme`,name:`Scheme`,import:(()=>P(()=>import(`./_DQCgrYNe.js`),[]))},{id:`scss`,name:`SCSS`,import:(()=>P(()=>import(`./_DDzAitj6.js`).then(e=>e.n),__vite__mapDeps([5,3])))},{id:`sdbl`,name:`1C (Query)`,aliases:[`1c-query`],import:(()=>P(()=>import(`./_bTVj8UrX.js`),[]))},{id:`shaderlab`,name:`ShaderLab`,aliases:[`shader`],import:(()=>P(()=>import(`./_DB-OQ-9y.js`),__vite__mapDeps([100,101])))},{id:`shellscript`,name:`Shell`,aliases:[`bash`,`sh`,`shell`,`zsh`],import:(()=>P(()=>import(`./_CfNOhb5v.js`).then(e=>e.n),[]))},{id:`shellsession`,name:`Shell Session`,aliases:[`console`],import:(()=>P(()=>import(`./_B1xyjoda.js`),__vite__mapDeps([102,29])))},{id:`smalltalk`,name:`GNU Smalltalk`,import:(()=>P(()=>import(`./_BHpQb5nM.js`),[]))},{id:`smithy`,name:`Smithy`,import:(()=>P(()=>import(`./_Dgaz7aur.js`),[]))},{id:`solidity`,name:`Solidity`,import:(()=>P(()=>import(`./_Bj7E1mRn.js`),[]))},{id:`soy`,name:`Closure Templates`,aliases:[`closure-templates`],import:(()=>P(()=>import(`./_CUs9y1fx.js`),__vite__mapDeps([103,1,2,3])))},{id:`sparql`,name:`SPARQL`,import:(()=>P(()=>import(`./_L8AbGenz.js`),__vite__mapDeps([104,105])))},{id:`splunk`,name:`Splunk Query Language`,aliases:[`spl`],import:(()=>P(()=>import(`./_BC2Px7Mm.js`),[]))},{id:`sql`,name:`SQL`,import:(()=>P(()=>import(`./_BfNGXdSm.js`).then(e=>e.n),[]))},{id:`ssh-config`,name:`SSH Config`,import:(()=>P(()=>import(`./_BgfXC-Er.js`),[]))},{id:`stata`,name:`Stata`,import:(()=>P(()=>import(`./_LPVI7IWH.js`),__vite__mapDeps([106,16])))},{id:`stylus`,name:`Stylus`,aliases:[`styl`],import:(()=>P(()=>import(`./_B6D30XZt.js`),[]))},{id:`surrealql`,name:`SurrealQL`,aliases:[`surql`],import:(()=>P(()=>import(`./_BuVGxHF-.js`),__vite__mapDeps([107,2])))},{id:`svelte`,name:`Svelte`,import:(()=>P(()=>import(`./_BXayyztT.js`),__vite__mapDeps([108,2,3,11,12])))},{id:`swift`,name:`Swift`,import:(()=>P(()=>import(`./_CyEgAFGc.js`),[]))},{id:`system-verilog`,name:`SystemVerilog`,import:(()=>P(()=>import(`./_Dh5ihWbf.js`),[]))},{id:`systemd`,name:`Systemd Units`,import:(()=>P(()=>import(`./_BxMlprV5.js`),[]))},{id:`talonscript`,name:`TalonScript`,aliases:[`talon`],import:(()=>P(()=>import(`./_CohzipZa.js`),[]))},{id:`tasl`,name:`Tasl`,import:(()=>P(()=>import(`./_DMoTqEGO.js`),[]))},{id:`tcl`,name:`Tcl`,import:(()=>P(()=>import(`./_CZd0xW_V.js`),[]))},{id:`templ`,name:`Templ`,import:(()=>P(()=>import(`./_Cc23NgEv.js`),__vite__mapDeps([109,2,3,81])))},{id:`terraform`,name:`Terraform`,aliases:[`tf`,`tfvars`],import:(()=>P(()=>import(`./_DswuEJGm.js`),[]))},{id:`tex`,name:`TeX`,import:(()=>P(()=>import(`./_GPsPOivU.js`).then(e=>e.n),__vite__mapDeps([67,63])))},{id:`toml`,name:`TOML`,import:(()=>P(()=>import(`./_CcmNWLt0.js`),[]))},{id:`ts-tags`,name:`TypeScript with Tags`,aliases:[`lit`],import:(()=>P(()=>import(`./_D4Qd4S5q.js`),__vite__mapDeps([110,2,3,1,7,8,11,16,27,22])))},{id:`tsv`,name:`TSV`,import:(()=>P(()=>import(`./_sltzmVWM.js`),[]))},{id:`tsx`,name:`TSX`,import:(()=>P(()=>import(`./_Bnp0rYDY.js`).then(e=>e.n),[]))},{id:`turtle`,name:`Turtle`,import:(()=>P(()=>import(`./_ByJddavk.js`),[]))},{id:`twig`,name:`Twig`,import:(()=>P(()=>import(`./_B0ioXev-.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:(()=>P(()=>import(`./__JdPVCDX.js`).then(e=>e.n),[]))},{id:`typespec`,name:`TypeSpec`,aliases:[`tsp`],import:(()=>P(()=>import(`./_BRdr0IET.js`),[]))},{id:`typst`,name:`Typst`,aliases:[`typ`],import:(()=>P(()=>import(`./_Bj4abRVz.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:(()=>P(()=>import(`./_DBj4K9d_.js`),[]))},{id:`vala`,name:`Vala`,import:(()=>P(()=>import(`./_zf12oZj6.js`),[]))},{id:`vb`,name:`Visual Basic`,import:(()=>P(()=>import(`./_DOwzaHZ0.js`),[]))},{id:`verilog`,name:`Verilog`,import:(()=>P(()=>import(`./_B2gwz-sJ.js`),[]))},{id:`vhdl`,name:`VHDL`,import:(()=>P(()=>import(`./_BroJfC0k.js`),[]))},{id:`viml`,name:`Vim Script`,aliases:[`vim`,`vimscript`],import:(()=>P(()=>import(`./_DvXPmvsu.js`),[]))},{id:`vue`,name:`Vue`,import:(()=>P(()=>import(`./_tpY6kbXX.js`),__vite__mapDeps([121,2,3,1,9,11,15])))},{id:`vue-html`,name:`Vue HTML`,import:(()=>P(()=>import(`./_E7L6qU5-.js`),__vite__mapDeps([122,2])))},{id:`vue-vine`,name:`Vue Vine`,import:(()=>P(()=>import(`./_UO4CFdfB.js`),__vite__mapDeps([123,2,3,5,12,70,124])))},{id:`vyper`,name:`Vyper`,aliases:[`vy`],import:(()=>P(()=>import(`./_CgoNMtux.js`),[]))},{id:`wasm`,name:`WebAssembly`,import:(()=>P(()=>import(`./_ByWQv1Qj.js`),[]))},{id:`wenyan`,name:`Wenyan`,aliases:[`文言`],import:(()=>P(()=>import(`./_C8pVoKbM.js`),[]))},{id:`wgsl`,name:`WGSL`,import:(()=>P(()=>import(`./_BsKzXJz4.js`),[]))},{id:`wikitext`,name:`Wikitext`,aliases:[`mediawiki`,`wiki`],import:(()=>P(()=>import(`./_ClFFjSW2.js`),[]))},{id:`wit`,name:`WebAssembly Interface Types`,import:(()=>P(()=>import(`./_DdvCle-K.js`),[]))},{id:`wolfram`,name:`Wolfram`,aliases:[`wl`],import:(()=>P(()=>import(`./_DLL8P-h_.js`),[]))},{id:`xml`,name:`XML`,import:(()=>P(()=>import(`./_BN00BAfx.js`).then(e=>e.n),__vite__mapDeps([7,8])))},{id:`xsl`,name:`XSL`,import:(()=>P(()=>import(`./_CKdmu483.js`),__vite__mapDeps([93,7,8])))},{id:`yaml`,name:`YAML`,aliases:[`yml`],import:(()=>P(()=>import(`./_wFqerxDO.js`).then(e=>e.n),[]))},{id:`zenscript`,name:`ZenScript`,import:(()=>P(()=>import(`./_BnlCZFoB.js`),[]))},{id:`zig`,name:`Zig`,import:(()=>P(()=>import(`./_CMLA9XwU.js`),[]))}],hr=Object.fromEntries(mr.map(e=>[e.id,e.import])),gr=Object.fromEntries(mr.flatMap(e=>e.aliases?.map(t=>[t,e.import])||[])),_r={...hr,...gr},vr=Object.fromEntries([{id:`andromeeda`,displayName:`Andromeeda`,type:`dark`,import:(()=>P(()=>import(`./_vGVdxbeo.js`),[]))},{id:`aurora-x`,displayName:`Aurora X`,type:`dark`,import:(()=>P(()=>import(`./_CDeNXAV0.js`),[]))},{id:`ayu-dark`,displayName:`Ayu Dark`,type:`dark`,import:(()=>P(()=>import(`./_DluEY0Gj.js`),[]))},{id:`ayu-light`,displayName:`Ayu Light`,type:`light`,import:(()=>P(()=>import(`./_C3h-C4tm.js`),[]))},{id:`ayu-mirage`,displayName:`Ayu Mirage`,type:`dark`,import:(()=>P(()=>import(`./_Bqwy1Gya.js`),[]))},{id:`catppuccin-frappe`,displayName:`Catppuccin Frappé`,type:`dark`,import:(()=>P(()=>import(`./_C9Q5zVZY.js`),[]))},{id:`catppuccin-latte`,displayName:`Catppuccin Latte`,type:`light`,import:(()=>P(()=>import(`./_CtsyrtPq.js`),[]))},{id:`catppuccin-macchiato`,displayName:`Catppuccin Macchiato`,type:`dark`,import:(()=>P(()=>import(`./_R8nAf1vR.js`),[]))},{id:`catppuccin-mocha`,displayName:`Catppuccin Mocha`,type:`dark`,import:(()=>P(()=>import(`./_DjuaAJKi.js`),[]))},{id:`dark-plus`,displayName:`Dark Plus`,type:`dark`,import:(()=>P(()=>import(`./_Cs2F2srj.js`),[]))},{id:`dracula`,displayName:`Dracula Theme`,type:`dark`,import:(()=>P(()=>import(`./_BHWKrbxM.js`),[]))},{id:`dracula-soft`,displayName:`Dracula Theme Soft`,type:`dark`,import:(()=>P(()=>import(`./_5eyTD99u.js`),[]))},{id:`everforest-dark`,displayName:`Everforest Dark`,type:`dark`,import:(()=>P(()=>import(`./_sB-x3p7T.js`),[]))},{id:`everforest-light`,displayName:`Everforest Light`,type:`light`,import:(()=>P(()=>import(`./_Df2xbC6M.js`),[]))},{id:`github-dark`,displayName:`GitHub Dark`,type:`dark`,import:(()=>P(()=>import(`./_C-LZuMrd.js`),[]))},{id:`github-dark-default`,displayName:`GitHub Dark Default`,type:`dark`,import:(()=>P(()=>import(`./_DXG-b-1a.js`),[]))},{id:`github-dark-dimmed`,displayName:`GitHub Dark Dimmed`,type:`dark`,import:(()=>P(()=>import(`./_Bx1FflLF.js`),[]))},{id:`github-dark-high-contrast`,displayName:`GitHub Dark High Contrast`,type:`dark`,import:(()=>P(()=>import(`./_B_tTalzw.js`),[]))},{id:`github-light`,displayName:`GitHub Light`,type:`light`,import:(()=>P(()=>import(`./_EUqPIrTm.js`),[]))},{id:`github-light-default`,displayName:`GitHub Light Default`,type:`light`,import:(()=>P(()=>import(`./_BXViO-2h.js`),[]))},{id:`github-light-high-contrast`,displayName:`GitHub Light High Contrast`,type:`light`,import:(()=>P(()=>import(`./_B68TUdTA.js`),[]))},{id:`gruvbox-dark-hard`,displayName:`Gruvbox Dark Hard`,type:`dark`,import:(()=>P(()=>import(`./_C820rvS2.js`),[]))},{id:`gruvbox-dark-medium`,displayName:`Gruvbox Dark Medium`,type:`dark`,import:(()=>P(()=>import(`./_BPjhmG05.js`),[]))},{id:`gruvbox-dark-soft`,displayName:`Gruvbox Dark Soft`,type:`dark`,import:(()=>P(()=>import(`./_MrdJrrXF.js`),[]))},{id:`gruvbox-light-hard`,displayName:`Gruvbox Light Hard`,type:`light`,import:(()=>P(()=>import(`./_BC_s9l72.js`),[]))},{id:`gruvbox-light-medium`,displayName:`Gruvbox Light Medium`,type:`light`,import:(()=>P(()=>import(`./_BAWPOn9u.js`),[]))},{id:`gruvbox-light-soft`,displayName:`Gruvbox Light Soft`,type:`light`,import:(()=>P(()=>import(`./_BSMLrYjP.js`),[]))},{id:`horizon`,displayName:`Horizon`,type:`dark`,import:(()=>P(()=>import(`./_CE9ld1lL.js`),[]))},{id:`horizon-bright`,displayName:`Horizon Bright`,type:`light`,import:(()=>P(()=>import(`./_DSNQnXHK.js`),[]))},{id:`houston`,displayName:`Houston`,type:`dark`,import:(()=>P(()=>import(`./_CsvMBhTu.js`),[]))},{id:`kanagawa-dragon`,displayName:`Kanagawa Dragon`,type:`dark`,import:(()=>P(()=>import(`./_Bozd7klA.js`),[]))},{id:`kanagawa-lotus`,displayName:`Kanagawa Lotus`,type:`light`,import:(()=>P(()=>import(`./_BmuOG9ZW.js`),[]))},{id:`kanagawa-wave`,displayName:`Kanagawa Wave`,type:`dark`,import:(()=>P(()=>import(`./_BML5mF2J.js`),[]))},{id:`laserwave`,displayName:`LaserWave`,type:`dark`,import:(()=>P(()=>import(`./_C_8bwKvT.js`),[]))},{id:`light-plus`,displayName:`Light Plus`,type:`light`,import:(()=>P(()=>import(`./_DVQuIRkW.js`),[]))},{id:`material-theme`,displayName:`Material Theme`,type:`dark`,import:(()=>P(()=>import(`./_Bm3Qr25_.js`),[]))},{id:`material-theme-darker`,displayName:`Material Theme Darker`,type:`dark`,import:(()=>P(()=>import(`./_2IIEA8gg.js`),[]))},{id:`material-theme-lighter`,displayName:`Material Theme Lighter`,type:`light`,import:(()=>P(()=>import(`./_uhdI0v04.js`),[]))},{id:`material-theme-ocean`,displayName:`Material Theme Ocean`,type:`dark`,import:(()=>P(()=>import(`./_CHQ94UKr.js`),[]))},{id:`material-theme-palenight`,displayName:`Material Theme Palenight`,type:`dark`,import:(()=>P(()=>import(`./_B5W6OYN7.js`),[]))},{id:`min-dark`,displayName:`Min Dark`,type:`dark`,import:(()=>P(()=>import(`./_BSWPekZh.js`),[]))},{id:`min-light`,displayName:`Min Light`,type:`light`,import:(()=>P(()=>import(`./_DDpmG2fV.js`),[]))},{id:`monokai`,displayName:`Monokai`,type:`dark`,import:(()=>P(()=>import(`./_B_bV9PQ9.js`),[]))},{id:`night-owl`,displayName:`Night Owl`,type:`dark`,import:(()=>P(()=>import(`./_DhmEMT88.js`),[]))},{id:`night-owl-light`,displayName:`Night Owl Light`,type:`light`,import:(()=>P(()=>import(`./_eJ-hLW7d.js`),[]))},{id:`nord`,displayName:`Nord`,type:`dark`,import:(()=>P(()=>import(`./_Cb4Vim4T.js`),[]))},{id:`one-dark-pro`,displayName:`One Dark Pro`,type:`dark`,import:(()=>P(()=>import(`./_CLwyXe_n.js`),[]))},{id:`one-light`,displayName:`One Light`,type:`light`,import:(()=>P(()=>import(`./_D7Lr4KcI.js`),[]))},{id:`plastic`,displayName:`Plastic`,type:`dark`,import:(()=>P(()=>import(`./_DQwYfKfQ.js`),[]))},{id:`poimandres`,displayName:`Poimandres`,type:`dark`,import:(()=>P(()=>import(`./_DRFjx7u4.js`),[]))},{id:`red`,displayName:`Red`,type:`dark`,import:(()=>P(()=>import(`./_DX1BQOs8.js`),[]))},{id:`rose-pine`,displayName:`Rosé Pine`,type:`dark`,import:(()=>P(()=>import(`./_aMsaMD1D.js`),[]))},{id:`rose-pine-dawn`,displayName:`Rosé Pine Dawn`,type:`light`,import:(()=>P(()=>import(`./_8PwUyIlP.js`),[]))},{id:`rose-pine-moon`,displayName:`Rosé Pine Moon`,type:`dark`,import:(()=>P(()=>import(`./_DO-qXg-I.js`),[]))},{id:`slack-dark`,displayName:`Slack Dark`,type:`dark`,import:(()=>P(()=>import(`./_DnToyrRv.js`),[]))},{id:`slack-ochin`,displayName:`Slack Ochin`,type:`light`,import:(()=>P(()=>import(`./_B2OO5cIa.js`),[]))},{id:`snazzy-light`,displayName:`Snazzy Light`,type:`light`,import:(()=>P(()=>import(`./_4G7pJPwS.js`),[]))},{id:`solarized-dark`,displayName:`Solarized Dark`,type:`dark`,import:(()=>P(()=>import(`./_UdsmMDCL.js`),[]))},{id:`solarized-light`,displayName:`Solarized Light`,type:`light`,import:(()=>P(()=>import(`./_C1IUL_tW.js`),[]))},{id:`synthwave-84`,displayName:`Synthwave '84`,type:`dark`,import:(()=>P(()=>import(`./_nFMaYfgc.js`),[]))},{id:`tokyo-night`,displayName:`Tokyo Night`,type:`dark`,import:(()=>P(()=>import(`./_oM2G3aXe.js`),[]))},{id:`vesper`,displayName:`Vesper`,type:`dark`,import:(()=>P(()=>import(`./_DdrHHSXu.js`),[]))},{id:`vitesse-black`,displayName:`Vitesse Black`,type:`dark`,import:(()=>P(()=>import(`./_fwtXNY1n.js`),[]))},{id:`vitesse-dark`,displayName:`Vitesse Dark`,type:`dark`,import:(()=>P(()=>import(`./_BZCL-v6S.js`),[]))},{id:`vitesse-light`,displayName:`Vitesse Light`,type:`light`,import:(()=>P(()=>import(`./_VbXTXTou.js`),[]))}].map(e=>[e.id,e.import])),yr=Tn({createOnigurumaEngine:()=>qr,getDefaultWasmLoader:()=>Kr,loadWasm:()=>Br,setDefaultWasmLoader:()=>Gr}),br=class extends Error{constructor(e){super(e),this.name=`ShikiError`}};function xr(){return 2147483648}function Sr(){return typeof performance<`u`?performance.now():Date.now()}var Cr=(e,t)=>e+(t-e%t)%t;async function wr(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=xr();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,Cr(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:Sr,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 Tr=Object.defineProperty,Er=(e,t,n)=>t in e?Tr(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Dr=(e,t,n)=>Er(e,typeof t==`symbol`?t:t+``,n),Or=null;function kr(e){throw new br(e.UTF8ToString(e.getLastOnigError()))}var Ar=class e{constructor(t){Dr(this,`utf16Length`),Dr(this,`utf8Length`),Dr(this,`utf16Value`),Dr(this,`utf8Value`),Dr(this,`utf16OffsetToUtf8`),Dr(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}},jr=class e{constructor(t){if(Dr(this,`id`,++e.LAST_ID),Dr(this,`_onigBinding`),Dr(this,`content`),Dr(this,`utf16Length`),Dr(this,`utf8Length`),Dr(this,`utf16OffsetToUtf8`),Dr(this,`utf8OffsetToUtf16`),Dr(this,`ptr`),!Or)throw new br(`Must invoke loadWasm first.`);this._onigBinding=Or,this.content=t;let n=new Ar(t);this.utf16Length=n.utf16Length,this.utf8Length=n.utf8Length,this.utf16OffsetToUtf8=n.utf16OffsetToUtf8,this.utf8OffsetToUtf16=n.utf8OffsetToUtf16,this.utf8Length<1e4&&!e._sharedPtrInUse?(e._sharedPtr||=Or.omalloc(1e4),e._sharedPtrInUse=!0,Or.HEAPU8.set(n.utf8Value,e._sharedPtr),this.ptr=e._sharedPtr):this.ptr=n.createString(Or)}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)}};Dr(jr,`LAST_ID`,0),Dr(jr,`_sharedPtr`,0),Dr(jr,`_sharedPtrInUse`,!1);var Mr=jr,Nr=class{constructor(e){if(Dr(this,`_onigBinding`),Dr(this,`_ptr`),!Or)throw new br(`Must invoke loadWasm first.`);let t=[],n=[];for(let r=0,i=e.length;r<i;r++){let i=new Ar(e[r]);t[r]=i.createString(Or),n[r]=i.utf8Length}let r=Or.omalloc(4*e.length);Or.HEAPU32.set(t,r/4);let i=Or.omalloc(4*e.length);Or.HEAPU32.set(n,i/4);let a=Or.createOnigScanner(r,i,e.length);for(let n=0,r=e.length;n<r;n++)Or.ofree(t[n]);Or.ofree(i),Or.ofree(r),a===0&&kr(Or),this._onigBinding=Or,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 Mr(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 Pr(e){return typeof e.instantiator==`function`}function Fr(e){return typeof e.default==`function`}function Ir(e){return e.data!==void 0}function Lr(e){return typeof Response<`u`&&e instanceof Response}function Rr(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 zr;function Br(e){if(zr)return zr;async function t(){Or=await wr(async t=>{let n=e;return n=await n,typeof n==`function`&&(n=await n(t)),typeof n==`function`&&(n=await n(t)),Pr(n)?n=await n.instantiator(t):Fr(n)?n=await n.default(t):(Ir(n)&&(n=n.data),Lr(n)?n=typeof WebAssembly.instantiateStreaming==`function`?await Hr(n)(t):await Ur(n)(t):Rr(n)||n instanceof WebAssembly.Module?n=await Vr(n)(t):`default`in n&&n.default instanceof WebAssembly.Module&&(n=await Vr(n.default)(t))),`instance`in n&&(n=n.instance),`exports`in n&&(n=n.exports),n})}return zr=t(),zr}function Vr(e){return t=>WebAssembly.instantiate(e,t)}function Hr(e){return t=>WebAssembly.instantiateStreaming(e,t)}function Ur(e){return async t=>{let n=await e.arrayBuffer();return WebAssembly.instantiate(n,t)}}var Wr;function Gr(e){Wr=e}function Kr(){return Wr}async function qr(e){return e&&await Br(e),{createScanner(e){return new Nr(e.map(e=>typeof e==`string`?e:e.source))},createString(e){return new Mr(e)}}}var Jr=dr({});pr(Jr,yr);var B=class extends Error{constructor(e){super(e),this.name=`ShikiError`}};function Yr(e){return Xr(e)}function Xr(e){return Array.isArray(e)?Zr(e):e instanceof RegExp?e:typeof e==`object`?Qr(e):e}function Zr(e){let t=[];for(let n=0,r=e.length;n<r;n++)t[n]=Xr(e[n]);return t}function Qr(e){let t={};for(let n in e)t[n]=Xr(e[n]);return t}function $r(e,...t){return t.forEach(t=>{for(let n in t)e[n]=t[n]}),e}function ei(e){let t=~e.lastIndexOf(`/`)||~e.lastIndexOf(`\\`);return t===0?e:~t===e.length-1?ei(e.substring(0,e.length-1)):e.substr(~t+1)}var ti=/\$(\d+)|\${(\d+):\/(downcase|upcase)}/g,ni=class{static hasCaptures(e){return e!==null&&(ti.lastIndex=0,ti.test(e))}static replaceCaptures(e,t,n){return e.replace(ti,(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 ri(e,t){return e<t?-1:+(e>t)}function ii(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=ri(e[r],t[r]);if(n!==0)return n}return 0}return n-r}function ai(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 oi(e){return e.replace(/[\-\\\{\}\*\+\?\|\^\$\.\,\[\]\(\)\#\s]/g,`\\$&`)}var si=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}},ci=class{constructor(e,t,n){this._colorMap=e,this._defaults=t,this._root=n}static createFromRawTheme(e,t){return this.createFromParsedTheme(pi(e),t)}static createFromParsedTheme(e,t){return gi(e,t)}_cachedMatchRoot=new si(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=>ui(e.parent,t.parentScopes));return n?new fi(n.fontStyle,n.foreground,n.background):null}},li=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 ui(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&&!di(e.scopeName,r);){if(i)return!1;e=e.parent}if(!e)return!1;e=e.parent}return!0}function di(e,t){return t===e||e.startsWith(t)&&e[t.length]===`.`}var fi=class{constructor(e,t,n){this.fontStyle=e,this.foregroundId=t,this.backgroundId=n}};function pi(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`&&ai(i.settings.foreground)&&(s=i.settings.foreground);let c=null;typeof i.settings.background==`string`&&ai(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 mi(l,u,e,o,s,c)}}return n}var mi=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}},hi=(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))(hi||{});function gi(e,t){e.sort((e,t)=>{let n=ri(e.scope,t.scope);return n!==0||(n=ii(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 _i(t),o=new fi(n,a.getId(r),a.getId(i)),s=new bi(new yi(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 ci(a,o,s)}var _i=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)}},vi=Object.freeze([]),yi=class e{scopeDepth;parentScopes;fontStyle;foreground;background;constructor(e,t,n,r,i){this.scopeDepth=e,this.parentScopes=t||vi,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)}},bi=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(),yi.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(ii(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 yi(e,t,n,r,i))}},xi=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=Ci(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 Si(e){return e}function Ci(e){return e}function wi(e,t){let n=[],r=Ei(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(Ti(i)){let e=[];do e.push(i),i=r.next();while(Ti(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 Ti(e){return!!e&&!!e.match(/[\w\.:]+/)}function Ei(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 Di(e){typeof e.dispose==`function`&&e.dispose()}var Oi=class{constructor(e){this.scopeName=e}toKey(){return this.scopeName}},ki=class{constructor(e,t){this.scopeName=e,this.ruleName=t}toKey(){return`${this.scopeName}#${this.ruleName}`}},Ai=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))}},ji=class{constructor(e,t){this.repo=e,this.initialScopeName=t,this.seenFullScopeRequests.add(this.initialScopeName),this.Q=[new Oi(this.initialScopeName)]}seenFullScopeRequests=new Set;seenPartialScopeRequests=new Set;Q;processQueue(){let e=this.Q;this.Q=[];let t=new Ai;for(let n of e)Mi(n,this.initialScopeName,this.repo,t);for(let e of t.references)if(e instanceof Oi){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 Mi(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 Oi?Pi({baseGrammar:a,selfGrammar:i},r):Ni(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 Oi(e))}function Ni(e,t,n){if(t.repository&&t.repository[e]){let r=t.repository[e];Fi([r],t,n)}}function Pi(e,t){e.selfGrammar.patterns&&Array.isArray(e.selfGrammar.patterns)&&Fi(e.selfGrammar.patterns,{...e,repository:e.selfGrammar.repository},t),e.selfGrammar.injections&&Fi(Object.values(e.selfGrammar.injections),{...e,repository:e.selfGrammar.repository},t)}function Fi(e,t,n){for(let r of e){if(n.visitedRule.has(r))continue;n.visitedRule.add(r);let e=r.repository?$r({},t.repository,r.repository):t.repository;Array.isArray(r.patterns)&&Fi(r.patterns,{...t,repository:e},n);let i=r.include;if(!i)continue;let a=Vi(i);switch(a.kind){case 0:Pi({...t,selfGrammar:t.baseGrammar},n);break;case 1:Pi(t,n);break;case 2:Ni(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?Ni(a.ruleName,i,n):Pi(i,n)}else a.kind===4?n.add(new ki(a.scopeName,a.ruleName)):n.add(new Oi(a.scopeName))}}}var Ii=class{kind=0},Li=class{kind=1},Ri=class{constructor(e){this.ruleName=e}kind=2},zi=class{constructor(e){this.scopeName=e}kind=3},Bi=class{constructor(e,t){this.scopeName=e,this.ruleName=t}kind=4};function Vi(e){if(e===`$base`)return new Ii;if(e===`$self`)return new Li;let t=e.indexOf(`#`);return t===-1?new zi(e):t===0?new Ri(e.substring(1)):new Bi(e.substring(0,t),e.substring(t+1))}var Hi=/\\(\d+)/,Ui=/\\(\d+)/g,Wi=-1,Gi=-2;function Ki(e){return e}function qi(e){return e}var Ji=class{$location;id;_nameIsCapturing;_name;_contentNameIsCapturing;_contentName;constructor(e,t,n,r){this.$location=e,this.id=t,this._name=n||null,this._nameIsCapturing=ni.hasCaptures(this._name),this._contentName=r||null,this._contentNameIsCapturing=ni.hasCaptures(this._contentName)}get debugName(){let e=this.$location?`${ei(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:ni.replaceCaptures(this._name,e,t)}getContentName(e,t){return!this._contentNameIsCapturing||this._contentName===null?this._contentName:ni.replaceCaptures(this._contentName,e,t)}},Yi=class extends Ji{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!`)}},Xi=class extends Ji{_match;captures;_cachedCompiledPatterns;constructor(e,t,n,r,i){super(e,t,n,null),this._match=new ta(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 na,this.collectPatterns(e,this._cachedCompiledPatterns)),this._cachedCompiledPatterns}},Zi=class extends Ji{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 na,this.collectPatterns(e,this._cachedCompiledPatterns)),this._cachedCompiledPatterns}},Qi=class extends Ji{_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 ta(i,this.id),this.beginCaptures=a,this._end=new ta(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 na;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}},$i=class extends Ji{_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 ta(i,this.id),this.beginCaptures=a,this.whileCaptures=s,this._while=new ta(o,Gi),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 na;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 na,this._cachedCompiledWhilePatterns.push(this._while.hasBackReferences?this._while.clone():this._while)),this._while.hasBackReferences&&this._cachedCompiledWhilePatterns.setSource(0,t||`￿`),this._cachedCompiledWhilePatterns}},ea=class e{static createCaptureRule(e,t,n,r,i){return e.registerRule(e=>new Yi(t,e,n,r,i))}static getCompiledRuleId(t,n,r){return t.id||n.registerRule(i=>{if(t.id=i,t.match)return new Xi(t.$vscodeTextmateLocation,t.id,t.name,t.match,e._compileCaptures(t.captures,n,r));if(t.begin===void 0){t.repository&&(r=$r({},r,t.repository));let i=t.patterns;return i===void 0&&t.include&&(i=[{include:t.include}]),new Zi(t.$vscodeTextmateLocation,t.id,t.name,t.contentName,e._compilePatterns(i,n,r))}return t.while?new $i(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 Qi(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=Vi(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 Zi||e instanceof Qi||e instanceof $i)&&e.hasMissingPatterns&&e.patterns.length===0&&(t=!0),t)continue;i.push(s)}}return{patterns:i,hasMissingPatterns:(t?t.length:0)!==i.length}}},ta=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`&&Hi.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 Ui.lastIndex=0,this.source.replace(Ui,(e,t)=>oi(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}},na=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 ra(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 ra(e,this._items.map(e=>e.resolveAnchors(t,n)),this._items.map(e=>e.ruleId))}},ra=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/_yKA9j_dJ.js","assets/_cW2K-JVq.js","assets/_fQITpz8V.js","assets/_CrUxunS4.js","assets/_C9Ztbivw.js","assets/_BB4xCgxK.js","assets/_Cs3cNtLg.js","assets/_-TFhdbKJ.js","assets/_Dw8KErCd.js","assets/_B7BjaSPp.js","assets/_GOKl2ldR.js","assets/_C5ljPFKx.js","assets/_BXeXVLqQ.js","assets/_DL6R7OvO.js","assets/_DunOr-yg.js","assets/_DA1-_D7p.js","assets/_HfGL7atM.js","assets/_YkIvmgMd.js","assets/_bTVj8UrX.js","assets/_BAfg1_wL.js","assets/_gzcpVVnB.js","assets/_B6Juh9c9.js","assets/_C81zbjb0.js","assets/_BCGxPeKS.js","assets/_L5PSqHWv.js","assets/_dIr06MfS.js","assets/_BxfO1BN3.js","assets/_C0ppO7YG.js","assets/_DU_zOtp-.js","assets/_Dw-F3Afq.js","assets/_Dgx8RrZ0.js","assets/_COT_otKo.js","assets/_BwFW7pl-.js","assets/_CzJxKBQo.js","assets/_CwGiOmRH.js","assets/_CfI44bGN.js","assets/_C1f5f8PC.js","assets/_cJRTviHj.js","assets/_BaOHURFi.js","assets/_CzjmLGjU.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/_DAUNuHZX.js","assets/_CUIaylz7.js","assets/_HgQcAm4S.js","assets/_DkPN1jXY.js","assets/_BOyarG8p.js","assets/_2F7RZ47b.js","assets/_BobuuwfO.js","assets/_Dx-8-gkx.js","assets/_DekxQCZG.js","assets/_C8oCnwJJ.js","assets/_yTy4AzG4.js","assets/_C6m1GOqH.js","assets/_r6PvFzIk.js","assets/_BJdfl2ii.js","assets/_DOUL2GDn.js","assets/_DdzbHgRc.js","assets/_DFmc-g1h.js","assets/_BN4_YE6i.js","assets/_BOla1fhx.js","assets/_iTBmF-6v.js","assets/_DVTAwKKz.js","assets/_BGGoJYwf.js","assets/_DWQbgPoS.js","assets/_DJMQeKeT.js","assets/_CfVbObcm.js","assets/_DCXl8hAZ.js","assets/_CAnFcQul.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/_Xu-XTvQJ.js","assets/_DOwzaHZ0.js","assets/_B3gFvitq.js","assets/_Cfkwpbl8.js","assets/_BiFt_7mu.js","assets/_CMLA9XwU.js","assets/_CGA8hl01.js","assets/_e9P0IDn-.js","assets/_e-zK3fur.js","assets/_YyxabTUu.js","assets/_BIWa46lt.js","assets/_Bj61d0ZC.js","assets/_COJklL2Z.js","assets/_DB-OQ-9y.js","assets/_Cvrh5tZx.js","assets/_CZN3As6c.js","assets/_CqONRjxT.js","assets/_L8AbGenz.js","assets/_ByJddavk.js","assets/_BNxzF5ug.js","assets/_BkmfcwN1.js","assets/_euSDwYvO.js","assets/_DdNVbN4v.js","assets/_DYM5bZLB.js","assets/_Dx48wyu7.js","assets/_BQOCMP7C.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/_CvtwWL7y.js","assets/_DZPA_eo5.js","assets/_D1s4U2D9.js","assets/_B6D30XZt.js"])))=>i.map(i=>d[i]);
2
+ import{G as e,I as t,K as n,L as r,Lt as i,Mt as a,P as o,Rt as s,W as c,X as l,Y as u,jt as d,kt as f,q as p,wt as m,z as h}from"./_DeMiosq3.js";import{B as g,D as _,F as v,G as y,H as b,I as x,K as S,L as C,O as w,P as T,R as E,U as D,V as O,W as k,Y as A,_ as ee,a as j,b as M,i as N,j as te,l as ne,n as re,q as ie,r as ae,t as P,u as oe,v as F,x as se,y as I,z as ce}from"./_ahCaQNeo.js";import{A as le,An as ue,C as de,Dn as fe,E as pe,Ht as me,Mn as he,On as ge,Pn as _e,Q as ve,R as ye,S as be,T as xe,U as Se,Vt as Ce,Wt as we,_ as L,a as Te,b as Ee,i as De,n as Oe,on as ke,r as Ae,t as je,v as Me,vt as Ne,w as Pe,x as Fe,y as Ie,z as Le}from"./_aHbnW1Wd.js";import{t as Re}from"./_C2EWFUrC.js";import{A as ze,D as Be,E as Ve,G as He,H as Ue,J as We,M as Ge,N as Ke,O as qe,Q as Je,T as Ye,W as Xe,a as Ze,c as Qe,d as $e,f as et,j as tt,k as nt,l as rt,m as it,n as at,o as ot,p as R,s as z,u as st}from"./_Chz9iR_v.js";import{$ as ct,A as lt,D as ut,E as dt,F as ft,K as pt,L as mt,M as ht,N as gt,O as _t,P as vt,T as yt,W as bt,a as xt,et as St,i as Ct,it as wt,j as Tt,k as Et,n as Dt,nt as Ot,r as kt,t as At,x as jt,z as Mt}from"./_Uv1a1DP-.js";import{t as Nt}from"./_D2pdXUO3.js";import{a as Pt,c as Ft,d as It,f as Lt,i as Rt,l as zt,n as Bt,o as Vt,p as Ht,r as Ut,s as Wt,t as Gt,u as Kt}from"./_BGm1jScO.js";import{t as qt}from"./_CcFCI5Av.js";import{_ as Jt,c as Yt,d as Xt,f as Zt,g as Qt,l as $t,m as en,p as tn,s as nn,u as rn,v as an,y as on}from"./_JoxNXffG.js";import{a as sn,i as cn,n as ln,o as un,r as dn,t as fn}from"./_CHlU-BeF.js";import{a as pn,i as mn,n as hn,r as gn,t as _n}from"./_0nw4HiGM.js";var vn=Object.create,yn=Object.defineProperty,bn=Object.getOwnPropertyDescriptor,xn=Object.getOwnPropertyNames,Sn=Object.getPrototypeOf,Cn=Object.prototype.hasOwnProperty,wn=(e,t)=>()=>(t||(e((t={exports:{}}).exports,t),e=null),t.exports),Tn=(e,t)=>{let n={};for(var r in e)yn(n,r,{get:e[r],enumerable:!0});return t||yn(n,Symbol.toStringTag,{value:`Module`}),n},En=(e,t,n,r)=>{if(t&&typeof t==`object`||typeof t==`function`)for(var i=xn(t),a=0,o=i.length,s;a<o;a++)s=i[a],!Cn.call(e,s)&&s!==n&&yn(e,s,{get:(e=>t[e]).bind(null,s),enumerable:!(r=bn(t,s))||r.enumerable});return e},Dn=(e,t,n)=>(n=e==null?{}:vn(Sn(e)),En(t||!e||!e.__esModule||!Cn.call(e,`default`)?yn(n,`default`,{value:e,enumerable:!0}):n,e)),On=`diffs-container`,kn=(()=>{try{return!1}catch{return!1}})(),An=/(?=^From [a-f0-9]+ .+$)/m,jn=/(?=^diff --git)/gm,Mn=/(?<=\n)/,Nn=/^(---|\+\+\+)\s+([^\t\r\n]+)/,Pn=/^index ([0-9a-f]+)\.\.([0-9a-f]+)(?: (\d+))?$/i,Fn=`header-prefix`,In=`header-filename-suffix`,Ln=`header-metadata`,Rn=`header-custom`,zn={dark:`pierre-dark`,light:`pierre-light`},Bn=`data-theme-css`,Vn=`data-unsafe-css`,Hn=`data-diffs-scrollbar-measure`,Un=`data-diffs-code-view-header`,Wn=`data-diffs-code-view-footer`,Gn=`--diffs-scrollbar-gutter-measured`,Kn=1e5,qn={hunkLineCount:50,lineHeight:20,diffHeaderHeight:44,spacing:8},Jn={...qn,hunkLineCount:1},Yn={paddingTop:8,paddingBottom:8,gap:8},Xn={omega:.015,positionEpsilon:.5,velocityEpsilon:.05},Zn=Object.freeze({fromStart:0,fromEnd:0}),Qn={startingLine:0,totalLines:1/0,bufferBefore:0,bufferAfter:0},$n={startingLine:0,totalLines:0,bufferBefore:0,bufferAfter:0},er=new Map,tr=new Map,nr=new Map,rr=new Set;function ir(e){for(let t of Array.isArray(e)?e:[e])if(t!==`text`&&t!==`ansi`&&!rr.has(t))return!1;return!0}function ar(e,t){e=Array.isArray(e)?e:[e];for(let n of e){if(rr.has(n.name))continue;let e=er.get(n.name);e??(e=n,er.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.`)}rr.add(e.name)}}function or(){return typeof WorkerGlobalScope<`u`&&typeof self<`u`&&self instanceof WorkerGlobalScope}var sr=Object.defineProperty,cr=Object.getOwnPropertyDescriptor,lr=Object.getOwnPropertyNames,ur=Object.prototype.hasOwnProperty,dr=(e,t)=>{let n={};for(var r in e)sr(n,r,{get:e[r],enumerable:!0});return t||sr(n,Symbol.toStringTag,{value:`Module`}),n},fr=(e,t,n,r)=>{if(t&&typeof t==`object`||typeof t==`function`)for(var i=lr(t),a=0,o=i.length,s;a<o;a++)s=i[a],!ur.call(e,s)&&s!==n&&sr(e,s,{get:(e=>t[e]).bind(null,s),enumerable:!(r=cr(t,s))||r.enumerable});return e},pr=(e,t,n)=>(fr(e,t,`default`),n&&fr(n,t,`default`)),mr=[{id:`abap`,name:`ABAP`,import:(()=>P(()=>import(`./_CLvhMVsD.js`),[]))},{id:`actionscript-3`,name:`ActionScript`,aliases:[`actionscript`,`as3`],import:(()=>P(()=>import(`./_Cs6JJXT5.js`),[]))},{id:`ada`,name:`Ada`,import:(()=>P(()=>import(`./_C5qYipkI.js`),[]))},{id:`ahk`,name:`AutoHotkey`,aliases:[`ahk1`],import:(()=>P(()=>import(`./_CA9gdOdF.js`),[]))},{id:`ahk2`,name:`AutoHotkey2`,import:(()=>P(()=>import(`./__6rzW9BS.js`),[]))},{id:`angular-html`,name:`Angular HTML`,import:(()=>P(()=>import(`./_yKA9j_dJ.js`).then(e=>e.n),__vite__mapDeps([0,1,2,3])))},{id:`angular-ts`,name:`Angular TypeScript`,import:(()=>P(()=>import(`./_C9Ztbivw.js`),__vite__mapDeps([4,0,1,2,3,5])))},{id:`apache`,name:`Apache Conf`,import:(()=>P(()=>import(`./_U0d_L8uA.js`),[]))},{id:`apex`,name:`Apex`,import:(()=>P(()=>import(`./_KFGFyKwG.js`),[]))},{id:`apl`,name:`APL`,import:(()=>P(()=>import(`./_Cs3cNtLg.js`),__vite__mapDeps([6,2,3,1,7,8,9])))},{id:`applescript`,name:`AppleScript`,import:(()=>P(()=>import(`./_CCn79oCD.js`),[]))},{id:`ara`,name:`Ara`,import:(()=>P(()=>import(`./_4CJ0cIlV.js`),[]))},{id:`asciidoc`,name:`AsciiDoc`,aliases:[`adoc`],import:(()=>P(()=>import(`./_SCjQUq34.js`),[]))},{id:`asm`,name:`Assembly`,import:(()=>P(()=>import(`./_Cmm7eHzH.js`),[]))},{id:`astro`,name:`Astro`,import:(()=>P(()=>import(`./_GOKl2ldR.js`),__vite__mapDeps([10,2,3,9,11,12,13])))},{id:`awk`,name:`AWK`,import:(()=>P(()=>import(`./_BWXHIvNe.js`),[]))},{id:`ballerina`,name:`Ballerina`,import:(()=>P(()=>import(`./_B7ZEbQpA.js`),[]))},{id:`bat`,name:`Batch File`,aliases:[`batch`,`cmd`],import:(()=>P(()=>import(`./_qdxAdBWQ.js`),[]))},{id:`beancount`,name:`Beancount`,import:(()=>P(()=>import(`./_D-usSTwE.js`),[]))},{id:`berry`,name:`Berry`,aliases:[`be`],import:(()=>P(()=>import(`./_DKpUyyne.js`),[]))},{id:`bibtex`,name:`BibTeX`,import:(()=>P(()=>import(`./_Ci_nEsc7.js`),[]))},{id:`bicep`,name:`Bicep`,import:(()=>P(()=>import(`./_CUHmPFLl.js`),[]))},{id:`bird2`,name:`BIRD2 Configuration`,aliases:[`bird`],import:(()=>P(()=>import(`./_CYIUgYqB.js`),[]))},{id:`blade`,name:`Blade`,import:(()=>P(()=>import(`./_DunOr-yg.js`),__vite__mapDeps([14,2,3,1,7,8,9,15,16])))},{id:`bsl`,name:`1C (Enterprise)`,aliases:[`1c`],import:(()=>P(()=>import(`./_YkIvmgMd.js`),__vite__mapDeps([17,18])))},{id:`c`,name:`C`,import:(()=>P(()=>import(`./_C81zbjb0.js`).then(e=>e.n),[]))},{id:`c3`,name:`C3`,import:(()=>P(()=>import(`./_D0apG41V.js`),[]))},{id:`cadence`,name:`Cadence`,aliases:[`cdc`],import:(()=>P(()=>import(`./_CQ2zXKGN.js`),[]))},{id:`cairo`,name:`Cairo`,import:(()=>P(()=>import(`./_BAfg1_wL.js`),__vite__mapDeps([19,20])))},{id:`chapel`,name:`Chapel`,aliases:[`chpl`],import:(()=>P(()=>import(`./_B6Juh9c9.js`),__vite__mapDeps([21,22])))},{id:`clarity`,name:`Clarity`,import:(()=>P(()=>import(`./_CtfBBspg.js`),[]))},{id:`clojure`,name:`Clojure`,aliases:[`clj`],import:(()=>P(()=>import(`./_DqKBuwfJ.js`),[]))},{id:`cmake`,name:`CMake`,import:(()=>P(()=>import(`./_Bj61d0ZC.js`),[]))},{id:`cobol`,name:`COBOL`,import:(()=>P(()=>import(`./_BCGxPeKS.js`),__vite__mapDeps([23,1,2,3,8])))},{id:`codeowners`,name:`CODEOWNERS`,import:(()=>P(()=>import(`./_C8r90Shi.js`),[]))},{id:`codeql`,name:`CodeQL`,aliases:[`ql`],import:(()=>P(()=>import(`./_oeQT6MSM.js`),[]))},{id:`coffee`,name:`CoffeeScript`,aliases:[`coffeescript`],import:(()=>P(()=>import(`./_L5PSqHWv.js`),__vite__mapDeps([24,2])))},{id:`common-lisp`,name:`Common Lisp`,aliases:[`lisp`],import:(()=>P(()=>import(`./_Cv5bFMCO.js`),[]))},{id:`coq`,name:`Rocq`,import:(()=>P(()=>import(`./_DuBRPxYg.js`),[]))},{id:`cpp`,name:`C++`,aliases:[`c++`],import:(()=>P(()=>import(`./_dIr06MfS.js`).then(e=>e.n),__vite__mapDeps([25,26,27,22])))},{id:`crystal`,name:`Crystal`,import:(()=>P(()=>import(`./_DU_zOtp-.js`),__vite__mapDeps([28,2,3,1,16,22,29])))},{id:`csharp`,name:`C#`,aliases:[`c#`,`cs`],import:(()=>P(()=>import(`./_oqKa8noW.js`),[]))},{id:`css`,name:`CSS`,import:(()=>P(()=>import(`./_CrUxunS4.js`).then(e=>e.n),[]))},{id:`csv`,name:`CSV`,import:(()=>P(()=>import(`./_Dx-8-gkx.js`),[]))},{id:`cue`,name:`CUE`,import:(()=>P(()=>import(`./_CE9AQfxI.js`),[]))},{id:`cypher`,name:`Cypher`,aliases:[`cql`],import:(()=>P(()=>import(`./_ClKdZ_lG.js`),[]))},{id:`d`,name:`D`,import:(()=>P(()=>import(`./_qD-0Kul2.js`),[]))},{id:`dart`,name:`Dart`,import:(()=>P(()=>import(`./_CnvKMtbv.js`),[]))},{id:`dax`,name:`DAX`,import:(()=>P(()=>import(`./_BkyTk9wS.js`),[]))},{id:`desktop`,name:`Desktop`,import:(()=>P(()=>import(`./_Dlh5hvp9.js`),[]))},{id:`diff`,name:`Diff`,import:(()=>P(()=>import(`./_woXpYk--.js`),[]))},{id:`docker`,name:`Dockerfile`,aliases:[`dockerfile`],import:(()=>P(()=>import(`./_IyjqRm3v.js`),[]))},{id:`dotenv`,name:`dotEnv`,import:(()=>P(()=>import(`./__5a1GRtc.js`),[]))},{id:`dream-maker`,name:`Dream Maker`,import:(()=>P(()=>import(`./_DW3nJb8Q.js`),[]))},{id:`edge`,name:`Edge`,import:(()=>P(()=>import(`./_Dgx8RrZ0.js`),__vite__mapDeps([30,1,2,3,11,15])))},{id:`elixir`,name:`Elixir`,import:(()=>P(()=>import(`./_COT_otKo.js`),__vite__mapDeps([31,1,2,3])))},{id:`elm`,name:`Elm`,import:(()=>P(()=>import(`./_BwFW7pl-.js`),__vite__mapDeps([32,27,22])))},{id:`emacs-lisp`,name:`Emacs Lisp`,aliases:[`elisp`],import:(()=>P(()=>import(`./_c_oH4hRZ.js`),[]))},{id:`erb`,name:`ERB`,import:(()=>P(()=>import(`./_CzJxKBQo.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:(()=>P(()=>import(`./_BaHq4SXp.js`),__vite__mapDeps([40,41])))},{id:`fennel`,name:`Fennel`,import:(()=>P(()=>import(`./_DQxkIbk2.js`),[]))},{id:`fish`,name:`Fish`,import:(()=>P(()=>import(`./_BJitypiv.js`),[]))},{id:`fluent`,name:`Fluent`,aliases:[`ftl`],import:(()=>P(()=>import(`./_C03EYrpw.js`),[]))},{id:`fortran-fixed-form`,name:`Fortran (Fixed Form)`,aliases:[`f`,`for`,`f77`],import:(()=>P(()=>import(`./_CQJs3lWb.js`),__vite__mapDeps([42,43])))},{id:`fortran-free-form`,name:`Fortran (Free Form)`,aliases:[`f90`,`f95`,`f03`,`f08`,`f18`],import:(()=>P(()=>import(`./_CYNrtFtB.js`),[]))},{id:`fsharp`,name:`F#`,aliases:[`f#`,`fs`],import:(()=>P(()=>import(`./_DmIc4jLQ.js`),__vite__mapDeps([44,41])))},{id:`gdresource`,name:`GDResource`,aliases:[`tscn`,`tres`],import:(()=>P(()=>import(`./_DbYA3moe.js`),__vite__mapDeps([45,46,47])))},{id:`gdscript`,name:`GDScript`,aliases:[`gd`],import:(()=>P(()=>import(`./_DYvRD3hg.js`),[]))},{id:`gdshader`,name:`GDShader`,import:(()=>P(()=>import(`./_CBce3t8t.js`),[]))},{id:`genie`,name:`Genie`,import:(()=>P(()=>import(`./_CV2tkWYe.js`),[]))},{id:`gherkin`,name:`Gherkin`,import:(()=>P(()=>import(`./_DExj1W_8.js`),[]))},{id:`git-commit`,name:`Git Commit Message`,import:(()=>P(()=>import(`./_Dl-2e7rI.js`),__vite__mapDeps([48,49])))},{id:`git-rebase`,name:`Git Rebase Message`,import:(()=>P(()=>import(`./_DAUNuHZX.js`),__vite__mapDeps([50,29])))},{id:`gleam`,name:`Gleam`,import:(()=>P(()=>import(`./_CSRkHgEL.js`),[]))},{id:`glimmer-js`,name:`Glimmer JS`,aliases:[`gjs`],import:(()=>P(()=>import(`./_CUIaylz7.js`),__vite__mapDeps([51,2,3,1,11])))},{id:`glimmer-ts`,name:`Glimmer TS`,aliases:[`gts`],import:(()=>P(()=>import(`./_HgQcAm4S.js`),__vite__mapDeps([52,2,3,1,11])))},{id:`glsl`,name:`GLSL`,import:(()=>P(()=>import(`./_C0ppO7YG.js`).then(e=>e.n),__vite__mapDeps([27,22])))},{id:`gn`,name:`GN`,import:(()=>P(()=>import(`./_ilITqXS6.js`),[]))},{id:`gnuplot`,name:`Gnuplot`,import:(()=>P(()=>import(`./_7GGW24-e.js`),[]))},{id:`go`,name:`Go`,import:(()=>P(()=>import(`./_rLFTqkRN.js`),[]))},{id:`graphql`,name:`GraphQL`,aliases:[`gql`],import:(()=>P(()=>import(`./_C1f5f8PC.js`).then(e=>e.n),__vite__mapDeps([36,2,11,13,37])))},{id:`groovy`,name:`Groovy`,import:(()=>P(()=>import(`./_CacY0gHj.js`),[]))},{id:`hack`,name:`Hack`,import:(()=>P(()=>import(`./_DkPN1jXY.js`),__vite__mapDeps([53,1,2,3,16])))},{id:`haml`,name:`Ruby Haml`,import:(()=>P(()=>import(`./_CfI44bGN.js`).then(e=>e.n),__vite__mapDeps([35,2,3])))},{id:`handlebars`,name:`Handlebars`,aliases:[`hbs`],import:(()=>P(()=>import(`./_BOyarG8p.js`),__vite__mapDeps([54,2,3,1,39])))},{id:`haskell`,name:`Haskell`,aliases:[`hs`],import:(()=>P(()=>import(`./_D8IpX4py.js`),[]))},{id:`haxe`,name:`Haxe`,import:(()=>P(()=>import(`./_C8oCnwJJ.js`),[]))},{id:`hcl`,name:`HashiCorp HCL`,import:(()=>P(()=>import(`./_Dh228itO.js`),[]))},{id:`hjson`,name:`Hjson`,import:(()=>P(()=>import(`./_CxZEssPk.js`),[]))},{id:`hlsl`,name:`HLSL`,import:(()=>P(()=>import(`./_Cvrh5tZx.js`),[]))},{id:`html`,name:`HTML`,import:(()=>P(()=>import(`./_cW2K-JVq.js`).then(e=>e.n),__vite__mapDeps([1,2,3])))},{id:`html-derivative`,name:`HTML (Derivative)`,import:(()=>P(()=>import(`./_DA1-_D7p.js`),__vite__mapDeps([15,1,2,3])))},{id:`http`,name:`HTTP`,import:(()=>P(()=>import(`./_2F7RZ47b.js`),__vite__mapDeps([55,7,8,9,29,36,2,11,13,37])))},{id:`hurl`,name:`Hurl`,import:(()=>P(()=>import(`./_BobuuwfO.js`),__vite__mapDeps([56,7,8,57,36,2,11,13,37])))},{id:`hxml`,name:`HXML`,import:(()=>P(()=>import(`./_DekxQCZG.js`),__vite__mapDeps([58,59])))},{id:`hy`,name:`Hy`,import:(()=>P(()=>import(`./_CZbG8q4J.js`),[]))},{id:`imba`,name:`Imba`,import:(()=>P(()=>import(`./_DsUTQ-LC.js`),[]))},{id:`ini`,name:`INI`,aliases:[`properties`],import:(()=>P(()=>import(`./_B5eOa1yu.js`),[]))},{id:`java`,name:`Java`,import:(()=>P(()=>import(`./_Dw8KErCd.js`).then(e=>e.n),[]))},{id:`javascript`,name:`JavaScript`,aliases:[`js`,`cjs`,`mjs`],import:(()=>P(()=>import(`./_fQITpz8V.js`).then(e=>e.n),[]))},{id:`jinja`,name:`Jinja`,import:(()=>P(()=>import(`./_yTy4AzG4.js`),__vite__mapDeps([60,1,2,3])))},{id:`jison`,name:`Jison`,import:(()=>P(()=>import(`./_C6m1GOqH.js`),__vite__mapDeps([61,2])))},{id:`json`,name:`JSON`,import:(()=>P(()=>import(`./_B7BjaSPp.js`).then(e=>e.n),[]))},{id:`json5`,name:`JSON5`,import:(()=>P(()=>import(`./_BR5RXkoi.js`),[]))},{id:`jsonc`,name:`JSON with Comments`,import:(()=>P(()=>import(`./_CYpm1nAK.js`),[]))},{id:`jsonl`,name:`JSON Lines`,import:(()=>P(()=>import(`./_CmCQp5Yx.js`),[]))},{id:`jsonnet`,name:`Jsonnet`,import:(()=>P(()=>import(`./_CJTPZ8u_.js`),[]))},{id:`jssm`,name:`JSSM`,aliases:[`fsl`],import:(()=>P(()=>import(`./_DXw9l8Rf.js`),[]))},{id:`jsx`,name:`JSX`,import:(()=>P(()=>import(`./_cJRTviHj.js`).then(e=>e.n),[]))},{id:`julia`,name:`Julia`,aliases:[`jl`],import:(()=>P(()=>import(`./_r6PvFzIk.js`),__vite__mapDeps([62,2,16,20,25,26,27,22,63])))},{id:`just`,name:`Just`,aliases:[`justfile`],import:(()=>P(()=>import(`./_DOUL2GDn.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:(()=>P(()=>import(`./_CsD5j6eV.js`),[]))},{id:`kotlin`,name:`Kotlin`,aliases:[`kt`,`kts`],import:(()=>P(()=>import(`./_DhhofPvG.js`),[]))},{id:`kusto`,name:`Kusto`,aliases:[`kql`],import:(()=>P(()=>import(`./_C7mF5XQf.js`),[]))},{id:`latex`,name:`LaTeX`,import:(()=>P(()=>import(`./_DFmc-g1h.js`),__vite__mapDeps([66,67,63])))},{id:`lean`,name:`Lean 4`,aliases:[`lean4`],import:(()=>P(()=>import(`./_CewbzKMR.js`),[]))},{id:`less`,name:`Less`,import:(()=>P(()=>import(`./_DVTAwKKz.js`),[]))},{id:`liquid`,name:`Liquid`,import:(()=>P(()=>import(`./_BOla1fhx.js`),__vite__mapDeps([68,2,3,1,9])))},{id:`llvm`,name:`LLVM IR`,import:(()=>P(()=>import(`./_DqHOMS-s.js`),[]))},{id:`log`,name:`Log file`,import:(()=>P(()=>import(`./_BNLmms1o.js`),[]))},{id:`logo`,name:`Logo`,import:(()=>P(()=>import(`./_Cluzi2Zq.js`),[]))},{id:`lua`,name:`Lua`,import:(()=>P(()=>import(`./_BaOHURFi.js`).then(e=>e.n),__vite__mapDeps([38,22])))},{id:`luau`,name:`Luau`,import:(()=>P(()=>import(`./_C2pBCSgt.js`),[]))},{id:`make`,name:`Makefile`,aliases:[`makefile`],import:(()=>P(()=>import(`./_Dixweg8N.js`),[]))},{id:`markdown`,name:`Markdown`,aliases:[`md`],import:(()=>P(()=>import(`./_BYOwaDjH.js`),[]))},{id:`marko`,name:`Marko`,import:(()=>P(()=>import(`./_iTBmF-6v.js`),__vite__mapDeps([69,3,5,11,70])))},{id:`matlab`,name:`MATLAB`,import:(()=>P(()=>import(`./_D7qyCx1q.js`),[]))},{id:`mdc`,name:`MDC`,import:(()=>P(()=>import(`./_BGGoJYwf.js`),__vite__mapDeps([71,15,1,2,3,39,41])))},{id:`mdx`,name:`MDX`,import:(()=>P(()=>import(`./_DQZ5AkYe.js`),[]))},{id:`mermaid`,name:`Mermaid`,aliases:[`mmd`],import:(()=>P(()=>import(`./_BxpfTIzt.js`),[]))},{id:`mipsasm`,name:`MIPS Assembly`,aliases:[`mips`],import:(()=>P(()=>import(`./_BMqwQI7S.js`),[]))},{id:`mojo`,name:`Mojo`,import:(()=>P(()=>import(`./_fg40_ntQ.js`),[]))},{id:`moonbit`,name:`MoonBit`,aliases:[`mbt`,`mbti`],import:(()=>P(()=>import(`./_DgjMoLWr.js`),[]))},{id:`move`,name:`Move`,import:(()=>P(()=>import(`./_BYnGhZoM.js`),[]))},{id:`narrat`,name:`Narrat Language`,aliases:[`nar`],import:(()=>P(()=>import(`./__X_XdTYD.js`),[]))},{id:`nextflow`,name:`Nextflow`,aliases:[`nf`],import:(()=>P(()=>import(`./_DWQbgPoS.js`),__vite__mapDeps([72,73])))},{id:`nextflow-groovy`,name:`Nextflow Groovy`,import:(()=>P(()=>import(`./_DJMQeKeT.js`),[]))},{id:`nginx`,name:`Nginx`,import:(()=>P(()=>import(`./_CfVbObcm.js`),__vite__mapDeps([74,38,22])))},{id:`nim`,name:`Nim`,import:(()=>P(()=>import(`./_DCXl8hAZ.js`),__vite__mapDeps([75,2,3,1,7,8,22,27,41])))},{id:`nix`,name:`Nix`,import:(()=>P(()=>import(`./_IvuFDN5E.js`),[]))},{id:`nsis`,name:`NSIS`,import:(()=>P(()=>import(`./_CjNLYCLg.js`),[]))},{id:`nushell`,name:`nushell`,aliases:[`nu`],import:(()=>P(()=>import(`./_DHYfO66s.js`),[]))},{id:`objective-c`,name:`Objective-C`,aliases:[`objc`],import:(()=>P(()=>import(`./_D1A_Heim.js`),[]))},{id:`objective-cpp`,name:`Objective-C++`,import:(()=>P(()=>import(`./_BsSzOQcm.js`),[]))},{id:`ocaml`,name:`OCaml`,import:(()=>P(()=>import(`./_O90oeIOV.js`),[]))},{id:`odin`,name:`Odin`,import:(()=>P(()=>import(`./_B1RWQWA5.js`),[]))},{id:`openscad`,name:`OpenSCAD`,aliases:[`scad`],import:(()=>P(()=>import(`./_BUDT5pXO.js`),[]))},{id:`org`,name:`Org Markup`,import:(()=>P(()=>import(`./_CAnFcQul.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:(()=>P(()=>import(`./_4ZHwLPI5.js`),[]))},{id:`perl`,name:`Perl`,import:(()=>P(()=>import(`./_DdzbHgRc.js`),__vite__mapDeps([65,2,3,1,7,8,16])))},{id:`php`,name:`PHP`,import:(()=>P(()=>import(`./_Xu-XTvQJ.js`),__vite__mapDeps([87,2,3,1,7,8,9,16])))},{id:`pkl`,name:`Pkl`,import:(()=>P(()=>import(`./_ot-7Btpt.js`),[]))},{id:`plsql`,name:`PL/SQL`,import:(()=>P(()=>import(`./_DGHpHOYJ.js`),[]))},{id:`po`,name:`Gettext PO`,aliases:[`pot`,`potx`],import:(()=>P(()=>import(`./_BiJDBrnU.js`),[]))},{id:`polar`,name:`Polar`,import:(()=>P(()=>import(`./_C7UOKdEL.js`),[]))},{id:`postcss`,name:`PostCSS`,import:(()=>P(()=>import(`./_BXeXVLqQ.js`),[]))},{id:`powerquery`,name:`PowerQuery`,import:(()=>P(()=>import(`./_DNMTfnFr.js`),[]))},{id:`powershell`,name:`PowerShell`,aliases:[`ps`,`ps1`,`pwsh`],import:(()=>P(()=>import(`./_CCSX75yM.js`),[]))},{id:`prisma`,name:`Prisma`,import:(()=>P(()=>import(`./_DMgNhnYS.js`),[]))},{id:`prolog`,name:`Prolog`,import:(()=>P(()=>import(`./_iXnhIJG7.js`),[]))},{id:`proto`,name:`Protocol Buffer 3`,aliases:[`protobuf`],import:(()=>P(()=>import(`./_DB4EqR-F.js`),[]))},{id:`pug`,name:`Pug`,aliases:[`jade`],import:(()=>P(()=>import(`./_e9P0IDn-.js`),__vite__mapDeps([94,2,3,1])))},{id:`puppet`,name:`Puppet`,import:(()=>P(()=>import(`./_CDv2pdJW.js`),[]))},{id:`purescript`,name:`PureScript`,import:(()=>P(()=>import(`./_9MfHhQsQ.js`),[]))},{id:`python`,name:`Python`,aliases:[`py`],import:(()=>P(()=>import(`./_gzcpVVnB.js`),[]))},{id:`qml`,name:`QML`,import:(()=>P(()=>import(`./_e-zK3fur.js`),__vite__mapDeps([95,2])))},{id:`qmldir`,name:`QML Directory`,import:(()=>P(()=>import(`./_DCQb3MpD.js`),[]))},{id:`qss`,name:`Qt Style Sheets`,import:(()=>P(()=>import(`./_Fe1Jh2GI.js`),[]))},{id:`r`,name:`R`,import:(()=>P(()=>import(`./_BJdfl2ii.js`).then(e=>e.n),[]))},{id:`racket`,name:`Racket`,import:(()=>P(()=>import(`./_DcIDlBhZ.js`),[]))},{id:`raku`,name:`Raku`,aliases:[`perl6`],import:(()=>P(()=>import(`./_B3gFvitq.js`),[]))},{id:`razor`,name:`ASP.NET Razor`,import:(()=>P(()=>import(`./_YyxabTUu.js`),__vite__mapDeps([96,1,2,3,78])))},{id:`rbs`,name:`RBS`,aliases:[`ruby-signature`],import:(()=>P(()=>import(`./_C0MpOrj4.js`),[]))},{id:`reg`,name:`Windows Registry Script`,import:(()=>P(()=>import(`./_CRGYupPL.js`),[]))},{id:`regexp`,name:`RegExp`,aliases:[`regex`],import:(()=>P(()=>import(`./_BxfO1BN3.js`).then(e=>e.n),[]))},{id:`rel`,name:`Rel`,import:(()=>P(()=>import(`./_BtDbiS_P.js`),[]))},{id:`riscv`,name:`RISC-V`,import:(()=>P(()=>import(`./_Ckw8ddFX.js`),[]))},{id:`ron`,name:`RON`,import:(()=>P(()=>import(`./_VUp2lXgN.js`),[]))},{id:`rosmsg`,name:`ROS Interface`,import:(()=>P(()=>import(`./_CAekHB0j.js`),[]))},{id:`rst`,name:`reStructuredText`,import:(()=>P(()=>import(`./_BIWa46lt.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:(()=>P(()=>import(`./_CwGiOmRH.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:(()=>P(()=>import(`./_Cfkwpbl8.js`),[]))},{id:`sas`,name:`SAS`,import:(()=>P(()=>import(`./_COJklL2Z.js`),__vite__mapDeps([99,16])))},{id:`sass`,name:`Sass`,import:(()=>P(()=>import(`./_DXrisJhu.js`),[]))},{id:`scala`,name:`Scala`,import:(()=>P(()=>import(`./_BiFt_7mu.js`),[]))},{id:`scheme`,name:`Scheme`,import:(()=>P(()=>import(`./_DQCgrYNe.js`),[]))},{id:`scss`,name:`SCSS`,import:(()=>P(()=>import(`./_BB4xCgxK.js`).then(e=>e.n),__vite__mapDeps([5,3])))},{id:`sdbl`,name:`1C (Query)`,aliases:[`1c-query`],import:(()=>P(()=>import(`./_bTVj8UrX.js`),[]))},{id:`shaderlab`,name:`ShaderLab`,aliases:[`shader`],import:(()=>P(()=>import(`./_DB-OQ-9y.js`),__vite__mapDeps([100,101])))},{id:`shellscript`,name:`Shell`,aliases:[`bash`,`sh`,`shell`,`zsh`],import:(()=>P(()=>import(`./_Dw-F3Afq.js`).then(e=>e.n),[]))},{id:`shellsession`,name:`Shell Session`,aliases:[`console`],import:(()=>P(()=>import(`./_CZN3As6c.js`),__vite__mapDeps([102,29])))},{id:`smalltalk`,name:`GNU Smalltalk`,import:(()=>P(()=>import(`./_BHpQb5nM.js`),[]))},{id:`smithy`,name:`Smithy`,import:(()=>P(()=>import(`./_Dgaz7aur.js`),[]))},{id:`solidity`,name:`Solidity`,import:(()=>P(()=>import(`./_Bj7E1mRn.js`),[]))},{id:`soy`,name:`Closure Templates`,aliases:[`closure-templates`],import:(()=>P(()=>import(`./_CqONRjxT.js`),__vite__mapDeps([103,1,2,3])))},{id:`sparql`,name:`SPARQL`,import:(()=>P(()=>import(`./_L8AbGenz.js`),__vite__mapDeps([104,105])))},{id:`splunk`,name:`Splunk Query Language`,aliases:[`spl`],import:(()=>P(()=>import(`./_BC2Px7Mm.js`),[]))},{id:`sql`,name:`SQL`,import:(()=>P(()=>import(`./_HfGL7atM.js`).then(e=>e.n),[]))},{id:`ssh-config`,name:`SSH Config`,import:(()=>P(()=>import(`./_BgfXC-Er.js`),[]))},{id:`stata`,name:`Stata`,import:(()=>P(()=>import(`./_BNxzF5ug.js`),__vite__mapDeps([106,16])))},{id:`stylus`,name:`Stylus`,aliases:[`styl`],import:(()=>P(()=>import(`./_B6D30XZt.js`),[]))},{id:`surrealql`,name:`SurrealQL`,aliases:[`surql`],import:(()=>P(()=>import(`./_BkmfcwN1.js`),__vite__mapDeps([107,2])))},{id:`svelte`,name:`Svelte`,import:(()=>P(()=>import(`./_euSDwYvO.js`),__vite__mapDeps([108,2,3,11,12])))},{id:`swift`,name:`Swift`,import:(()=>P(()=>import(`./_CyEgAFGc.js`),[]))},{id:`system-verilog`,name:`SystemVerilog`,import:(()=>P(()=>import(`./_Dh5ihWbf.js`),[]))},{id:`systemd`,name:`Systemd Units`,import:(()=>P(()=>import(`./_BxMlprV5.js`),[]))},{id:`talonscript`,name:`TalonScript`,aliases:[`talon`],import:(()=>P(()=>import(`./_CohzipZa.js`),[]))},{id:`tasl`,name:`Tasl`,import:(()=>P(()=>import(`./_DMoTqEGO.js`),[]))},{id:`tcl`,name:`Tcl`,import:(()=>P(()=>import(`./_CZd0xW_V.js`),[]))},{id:`templ`,name:`Templ`,import:(()=>P(()=>import(`./_DdNVbN4v.js`),__vite__mapDeps([109,2,3,81])))},{id:`terraform`,name:`Terraform`,aliases:[`tf`,`tfvars`],import:(()=>P(()=>import(`./_DswuEJGm.js`),[]))},{id:`tex`,name:`TeX`,import:(()=>P(()=>import(`./_BN4_YE6i.js`).then(e=>e.n),__vite__mapDeps([67,63])))},{id:`toml`,name:`TOML`,import:(()=>P(()=>import(`./_CcmNWLt0.js`),[]))},{id:`ts-tags`,name:`TypeScript with Tags`,aliases:[`lit`],import:(()=>P(()=>import(`./_DYM5bZLB.js`),__vite__mapDeps([110,2,3,1,7,8,11,16,27,22])))},{id:`tsv`,name:`TSV`,import:(()=>P(()=>import(`./_sltzmVWM.js`),[]))},{id:`tsx`,name:`TSX`,import:(()=>P(()=>import(`./_DL6R7OvO.js`).then(e=>e.n),[]))},{id:`turtle`,name:`Turtle`,import:(()=>P(()=>import(`./_ByJddavk.js`),[]))},{id:`twig`,name:`Twig`,import:(()=>P(()=>import(`./_Dx48wyu7.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:(()=>P(()=>import(`./_C5ljPFKx.js`).then(e=>e.n),[]))},{id:`typespec`,name:`TypeSpec`,aliases:[`tsp`],import:(()=>P(()=>import(`./_BRdr0IET.js`),[]))},{id:`typst`,name:`Typst`,aliases:[`typ`],import:(()=>P(()=>import(`./_BQOCMP7C.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:(()=>P(()=>import(`./_DBj4K9d_.js`),[]))},{id:`vala`,name:`Vala`,import:(()=>P(()=>import(`./_zf12oZj6.js`),[]))},{id:`vb`,name:`Visual Basic`,import:(()=>P(()=>import(`./_DOwzaHZ0.js`),[]))},{id:`verilog`,name:`Verilog`,import:(()=>P(()=>import(`./_B2gwz-sJ.js`),[]))},{id:`vhdl`,name:`VHDL`,import:(()=>P(()=>import(`./_BroJfC0k.js`),[]))},{id:`viml`,name:`Vim Script`,aliases:[`vim`,`vimscript`],import:(()=>P(()=>import(`./_DvXPmvsu.js`),[]))},{id:`vue`,name:`Vue`,import:(()=>P(()=>import(`./_CvtwWL7y.js`),__vite__mapDeps([121,2,3,1,9,11,15])))},{id:`vue-html`,name:`Vue HTML`,import:(()=>P(()=>import(`./_DZPA_eo5.js`),__vite__mapDeps([122,2])))},{id:`vue-vine`,name:`Vue Vine`,import:(()=>P(()=>import(`./_D1s4U2D9.js`),__vite__mapDeps([123,2,3,5,12,70,124])))},{id:`vyper`,name:`Vyper`,aliases:[`vy`],import:(()=>P(()=>import(`./_CgoNMtux.js`),[]))},{id:`wasm`,name:`WebAssembly`,import:(()=>P(()=>import(`./_ByWQv1Qj.js`),[]))},{id:`wenyan`,name:`Wenyan`,aliases:[`文言`],import:(()=>P(()=>import(`./_C8pVoKbM.js`),[]))},{id:`wgsl`,name:`WGSL`,import:(()=>P(()=>import(`./_BsKzXJz4.js`),[]))},{id:`wikitext`,name:`Wikitext`,aliases:[`mediawiki`,`wiki`],import:(()=>P(()=>import(`./_ClFFjSW2.js`),[]))},{id:`wit`,name:`WebAssembly Interface Types`,import:(()=>P(()=>import(`./_DdvCle-K.js`),[]))},{id:`wolfram`,name:`Wolfram`,aliases:[`wl`],import:(()=>P(()=>import(`./_DLL8P-h_.js`),[]))},{id:`xml`,name:`XML`,import:(()=>P(()=>import(`./_-TFhdbKJ.js`).then(e=>e.n),__vite__mapDeps([7,8])))},{id:`xsl`,name:`XSL`,import:(()=>P(()=>import(`./_CGA8hl01.js`),__vite__mapDeps([93,7,8])))},{id:`yaml`,name:`YAML`,aliases:[`yml`],import:(()=>P(()=>import(`./_CzjmLGjU.js`).then(e=>e.n),[]))},{id:`zenscript`,name:`ZenScript`,import:(()=>P(()=>import(`./_BnlCZFoB.js`),[]))},{id:`zig`,name:`Zig`,import:(()=>P(()=>import(`./_CMLA9XwU.js`),[]))}],hr=Object.fromEntries(mr.map(e=>[e.id,e.import])),gr=Object.fromEntries(mr.flatMap(e=>e.aliases?.map(t=>[t,e.import])||[])),_r={...hr,...gr},vr=Object.fromEntries([{id:`andromeeda`,displayName:`Andromeeda`,type:`dark`,import:(()=>P(()=>import(`./_vGVdxbeo.js`),[]))},{id:`aurora-x`,displayName:`Aurora X`,type:`dark`,import:(()=>P(()=>import(`./_CDeNXAV0.js`),[]))},{id:`ayu-dark`,displayName:`Ayu Dark`,type:`dark`,import:(()=>P(()=>import(`./_DluEY0Gj.js`),[]))},{id:`ayu-light`,displayName:`Ayu Light`,type:`light`,import:(()=>P(()=>import(`./_C3h-C4tm.js`),[]))},{id:`ayu-mirage`,displayName:`Ayu Mirage`,type:`dark`,import:(()=>P(()=>import(`./_Bqwy1Gya.js`),[]))},{id:`catppuccin-frappe`,displayName:`Catppuccin Frappé`,type:`dark`,import:(()=>P(()=>import(`./_C9Q5zVZY.js`),[]))},{id:`catppuccin-latte`,displayName:`Catppuccin Latte`,type:`light`,import:(()=>P(()=>import(`./_CtsyrtPq.js`),[]))},{id:`catppuccin-macchiato`,displayName:`Catppuccin Macchiato`,type:`dark`,import:(()=>P(()=>import(`./_R8nAf1vR.js`),[]))},{id:`catppuccin-mocha`,displayName:`Catppuccin Mocha`,type:`dark`,import:(()=>P(()=>import(`./_DjuaAJKi.js`),[]))},{id:`dark-plus`,displayName:`Dark Plus`,type:`dark`,import:(()=>P(()=>import(`./_Cs2F2srj.js`),[]))},{id:`dracula`,displayName:`Dracula Theme`,type:`dark`,import:(()=>P(()=>import(`./_BHWKrbxM.js`),[]))},{id:`dracula-soft`,displayName:`Dracula Theme Soft`,type:`dark`,import:(()=>P(()=>import(`./_5eyTD99u.js`),[]))},{id:`everforest-dark`,displayName:`Everforest Dark`,type:`dark`,import:(()=>P(()=>import(`./_sB-x3p7T.js`),[]))},{id:`everforest-light`,displayName:`Everforest Light`,type:`light`,import:(()=>P(()=>import(`./_Df2xbC6M.js`),[]))},{id:`github-dark`,displayName:`GitHub Dark`,type:`dark`,import:(()=>P(()=>import(`./_C-LZuMrd.js`),[]))},{id:`github-dark-default`,displayName:`GitHub Dark Default`,type:`dark`,import:(()=>P(()=>import(`./_DXG-b-1a.js`),[]))},{id:`github-dark-dimmed`,displayName:`GitHub Dark Dimmed`,type:`dark`,import:(()=>P(()=>import(`./_Bx1FflLF.js`),[]))},{id:`github-dark-high-contrast`,displayName:`GitHub Dark High Contrast`,type:`dark`,import:(()=>P(()=>import(`./_B_tTalzw.js`),[]))},{id:`github-light`,displayName:`GitHub Light`,type:`light`,import:(()=>P(()=>import(`./_EUqPIrTm.js`),[]))},{id:`github-light-default`,displayName:`GitHub Light Default`,type:`light`,import:(()=>P(()=>import(`./_BXViO-2h.js`),[]))},{id:`github-light-high-contrast`,displayName:`GitHub Light High Contrast`,type:`light`,import:(()=>P(()=>import(`./_B68TUdTA.js`),[]))},{id:`gruvbox-dark-hard`,displayName:`Gruvbox Dark Hard`,type:`dark`,import:(()=>P(()=>import(`./_C820rvS2.js`),[]))},{id:`gruvbox-dark-medium`,displayName:`Gruvbox Dark Medium`,type:`dark`,import:(()=>P(()=>import(`./_BPjhmG05.js`),[]))},{id:`gruvbox-dark-soft`,displayName:`Gruvbox Dark Soft`,type:`dark`,import:(()=>P(()=>import(`./_MrdJrrXF.js`),[]))},{id:`gruvbox-light-hard`,displayName:`Gruvbox Light Hard`,type:`light`,import:(()=>P(()=>import(`./_BC_s9l72.js`),[]))},{id:`gruvbox-light-medium`,displayName:`Gruvbox Light Medium`,type:`light`,import:(()=>P(()=>import(`./_BAWPOn9u.js`),[]))},{id:`gruvbox-light-soft`,displayName:`Gruvbox Light Soft`,type:`light`,import:(()=>P(()=>import(`./_BSMLrYjP.js`),[]))},{id:`horizon`,displayName:`Horizon`,type:`dark`,import:(()=>P(()=>import(`./_CE9ld1lL.js`),[]))},{id:`horizon-bright`,displayName:`Horizon Bright`,type:`light`,import:(()=>P(()=>import(`./_DSNQnXHK.js`),[]))},{id:`houston`,displayName:`Houston`,type:`dark`,import:(()=>P(()=>import(`./_CsvMBhTu.js`),[]))},{id:`kanagawa-dragon`,displayName:`Kanagawa Dragon`,type:`dark`,import:(()=>P(()=>import(`./_Bozd7klA.js`),[]))},{id:`kanagawa-lotus`,displayName:`Kanagawa Lotus`,type:`light`,import:(()=>P(()=>import(`./_BmuOG9ZW.js`),[]))},{id:`kanagawa-wave`,displayName:`Kanagawa Wave`,type:`dark`,import:(()=>P(()=>import(`./_BML5mF2J.js`),[]))},{id:`laserwave`,displayName:`LaserWave`,type:`dark`,import:(()=>P(()=>import(`./_C_8bwKvT.js`),[]))},{id:`light-plus`,displayName:`Light Plus`,type:`light`,import:(()=>P(()=>import(`./_DVQuIRkW.js`),[]))},{id:`material-theme`,displayName:`Material Theme`,type:`dark`,import:(()=>P(()=>import(`./_Bm3Qr25_.js`),[]))},{id:`material-theme-darker`,displayName:`Material Theme Darker`,type:`dark`,import:(()=>P(()=>import(`./_2IIEA8gg.js`),[]))},{id:`material-theme-lighter`,displayName:`Material Theme Lighter`,type:`light`,import:(()=>P(()=>import(`./_uhdI0v04.js`),[]))},{id:`material-theme-ocean`,displayName:`Material Theme Ocean`,type:`dark`,import:(()=>P(()=>import(`./_CHQ94UKr.js`),[]))},{id:`material-theme-palenight`,displayName:`Material Theme Palenight`,type:`dark`,import:(()=>P(()=>import(`./_B5W6OYN7.js`),[]))},{id:`min-dark`,displayName:`Min Dark`,type:`dark`,import:(()=>P(()=>import(`./_BSWPekZh.js`),[]))},{id:`min-light`,displayName:`Min Light`,type:`light`,import:(()=>P(()=>import(`./_DDpmG2fV.js`),[]))},{id:`monokai`,displayName:`Monokai`,type:`dark`,import:(()=>P(()=>import(`./_B_bV9PQ9.js`),[]))},{id:`night-owl`,displayName:`Night Owl`,type:`dark`,import:(()=>P(()=>import(`./_DhmEMT88.js`),[]))},{id:`night-owl-light`,displayName:`Night Owl Light`,type:`light`,import:(()=>P(()=>import(`./_eJ-hLW7d.js`),[]))},{id:`nord`,displayName:`Nord`,type:`dark`,import:(()=>P(()=>import(`./_Cb4Vim4T.js`),[]))},{id:`one-dark-pro`,displayName:`One Dark Pro`,type:`dark`,import:(()=>P(()=>import(`./_CLwyXe_n.js`),[]))},{id:`one-light`,displayName:`One Light`,type:`light`,import:(()=>P(()=>import(`./_D7Lr4KcI.js`),[]))},{id:`plastic`,displayName:`Plastic`,type:`dark`,import:(()=>P(()=>import(`./_DQwYfKfQ.js`),[]))},{id:`poimandres`,displayName:`Poimandres`,type:`dark`,import:(()=>P(()=>import(`./_DRFjx7u4.js`),[]))},{id:`red`,displayName:`Red`,type:`dark`,import:(()=>P(()=>import(`./_DX1BQOs8.js`),[]))},{id:`rose-pine`,displayName:`Rosé Pine`,type:`dark`,import:(()=>P(()=>import(`./_aMsaMD1D.js`),[]))},{id:`rose-pine-dawn`,displayName:`Rosé Pine Dawn`,type:`light`,import:(()=>P(()=>import(`./_8PwUyIlP.js`),[]))},{id:`rose-pine-moon`,displayName:`Rosé Pine Moon`,type:`dark`,import:(()=>P(()=>import(`./_DO-qXg-I.js`),[]))},{id:`slack-dark`,displayName:`Slack Dark`,type:`dark`,import:(()=>P(()=>import(`./_DnToyrRv.js`),[]))},{id:`slack-ochin`,displayName:`Slack Ochin`,type:`light`,import:(()=>P(()=>import(`./_B2OO5cIa.js`),[]))},{id:`snazzy-light`,displayName:`Snazzy Light`,type:`light`,import:(()=>P(()=>import(`./_4G7pJPwS.js`),[]))},{id:`solarized-dark`,displayName:`Solarized Dark`,type:`dark`,import:(()=>P(()=>import(`./_UdsmMDCL.js`),[]))},{id:`solarized-light`,displayName:`Solarized Light`,type:`light`,import:(()=>P(()=>import(`./_C1IUL_tW.js`),[]))},{id:`synthwave-84`,displayName:`Synthwave '84`,type:`dark`,import:(()=>P(()=>import(`./_nFMaYfgc.js`),[]))},{id:`tokyo-night`,displayName:`Tokyo Night`,type:`dark`,import:(()=>P(()=>import(`./_oM2G3aXe.js`),[]))},{id:`vesper`,displayName:`Vesper`,type:`dark`,import:(()=>P(()=>import(`./_DdrHHSXu.js`),[]))},{id:`vitesse-black`,displayName:`Vitesse Black`,type:`dark`,import:(()=>P(()=>import(`./_fwtXNY1n.js`),[]))},{id:`vitesse-dark`,displayName:`Vitesse Dark`,type:`dark`,import:(()=>P(()=>import(`./_BZCL-v6S.js`),[]))},{id:`vitesse-light`,displayName:`Vitesse Light`,type:`light`,import:(()=>P(()=>import(`./_VbXTXTou.js`),[]))}].map(e=>[e.id,e.import])),yr=Tn({createOnigurumaEngine:()=>qr,getDefaultWasmLoader:()=>Kr,loadWasm:()=>Br,setDefaultWasmLoader:()=>Gr}),br=class extends Error{constructor(e){super(e),this.name=`ShikiError`}};function xr(){return 2147483648}function Sr(){return typeof performance<`u`?performance.now():Date.now()}var Cr=(e,t)=>e+(t-e%t)%t;async function wr(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=xr();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,Cr(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:Sr,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 Tr=Object.defineProperty,Er=(e,t,n)=>t in e?Tr(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Dr=(e,t,n)=>Er(e,typeof t==`symbol`?t:t+``,n),Or=null;function kr(e){throw new br(e.UTF8ToString(e.getLastOnigError()))}var Ar=class e{constructor(t){Dr(this,`utf16Length`),Dr(this,`utf8Length`),Dr(this,`utf16Value`),Dr(this,`utf8Value`),Dr(this,`utf16OffsetToUtf8`),Dr(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}},jr=class e{constructor(t){if(Dr(this,`id`,++e.LAST_ID),Dr(this,`_onigBinding`),Dr(this,`content`),Dr(this,`utf16Length`),Dr(this,`utf8Length`),Dr(this,`utf16OffsetToUtf8`),Dr(this,`utf8OffsetToUtf16`),Dr(this,`ptr`),!Or)throw new br(`Must invoke loadWasm first.`);this._onigBinding=Or,this.content=t;let n=new Ar(t);this.utf16Length=n.utf16Length,this.utf8Length=n.utf8Length,this.utf16OffsetToUtf8=n.utf16OffsetToUtf8,this.utf8OffsetToUtf16=n.utf8OffsetToUtf16,this.utf8Length<1e4&&!e._sharedPtrInUse?(e._sharedPtr||=Or.omalloc(1e4),e._sharedPtrInUse=!0,Or.HEAPU8.set(n.utf8Value,e._sharedPtr),this.ptr=e._sharedPtr):this.ptr=n.createString(Or)}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)}};Dr(jr,`LAST_ID`,0),Dr(jr,`_sharedPtr`,0),Dr(jr,`_sharedPtrInUse`,!1);var Mr=jr,Nr=class{constructor(e){if(Dr(this,`_onigBinding`),Dr(this,`_ptr`),!Or)throw new br(`Must invoke loadWasm first.`);let t=[],n=[];for(let r=0,i=e.length;r<i;r++){let i=new Ar(e[r]);t[r]=i.createString(Or),n[r]=i.utf8Length}let r=Or.omalloc(4*e.length);Or.HEAPU32.set(t,r/4);let i=Or.omalloc(4*e.length);Or.HEAPU32.set(n,i/4);let a=Or.createOnigScanner(r,i,e.length);for(let n=0,r=e.length;n<r;n++)Or.ofree(t[n]);Or.ofree(i),Or.ofree(r),a===0&&kr(Or),this._onigBinding=Or,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 Mr(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 Pr(e){return typeof e.instantiator==`function`}function Fr(e){return typeof e.default==`function`}function Ir(e){return e.data!==void 0}function Lr(e){return typeof Response<`u`&&e instanceof Response}function Rr(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 zr;function Br(e){if(zr)return zr;async function t(){Or=await wr(async t=>{let n=e;return n=await n,typeof n==`function`&&(n=await n(t)),typeof n==`function`&&(n=await n(t)),Pr(n)?n=await n.instantiator(t):Fr(n)?n=await n.default(t):(Ir(n)&&(n=n.data),Lr(n)?n=typeof WebAssembly.instantiateStreaming==`function`?await Hr(n)(t):await Ur(n)(t):Rr(n)||n instanceof WebAssembly.Module?n=await Vr(n)(t):`default`in n&&n.default instanceof WebAssembly.Module&&(n=await Vr(n.default)(t))),`instance`in n&&(n=n.instance),`exports`in n&&(n=n.exports),n})}return zr=t(),zr}function Vr(e){return t=>WebAssembly.instantiate(e,t)}function Hr(e){return t=>WebAssembly.instantiateStreaming(e,t)}function Ur(e){return async t=>{let n=await e.arrayBuffer();return WebAssembly.instantiate(n,t)}}var Wr;function Gr(e){Wr=e}function Kr(){return Wr}async function qr(e){return e&&await Br(e),{createScanner(e){return new Nr(e.map(e=>typeof e==`string`?e:e.source))},createString(e){return new Mr(e)}}}var Jr=dr({});pr(Jr,yr);var B=class extends Error{constructor(e){super(e),this.name=`ShikiError`}};function Yr(e){return Xr(e)}function Xr(e){return Array.isArray(e)?Zr(e):e instanceof RegExp?e:typeof e==`object`?Qr(e):e}function Zr(e){let t=[];for(let n=0,r=e.length;n<r;n++)t[n]=Xr(e[n]);return t}function Qr(e){let t={};for(let n in e)t[n]=Xr(e[n]);return t}function $r(e,...t){return t.forEach(t=>{for(let n in t)e[n]=t[n]}),e}function ei(e){let t=~e.lastIndexOf(`/`)||~e.lastIndexOf(`\\`);return t===0?e:~t===e.length-1?ei(e.substring(0,e.length-1)):e.substr(~t+1)}var ti=/\$(\d+)|\${(\d+):\/(downcase|upcase)}/g,ni=class{static hasCaptures(e){return e!==null&&(ti.lastIndex=0,ti.test(e))}static replaceCaptures(e,t,n){return e.replace(ti,(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 ri(e,t){return e<t?-1:+(e>t)}function ii(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=ri(e[r],t[r]);if(n!==0)return n}return 0}return n-r}function ai(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 oi(e){return e.replace(/[\-\\\{\}\*\+\?\|\^\$\.\,\[\]\(\)\#\s]/g,`\\$&`)}var si=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}},ci=class{constructor(e,t,n){this._colorMap=e,this._defaults=t,this._root=n}static createFromRawTheme(e,t){return this.createFromParsedTheme(pi(e),t)}static createFromParsedTheme(e,t){return gi(e,t)}_cachedMatchRoot=new si(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=>ui(e.parent,t.parentScopes));return n?new fi(n.fontStyle,n.foreground,n.background):null}},li=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 ui(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&&!di(e.scopeName,r);){if(i)return!1;e=e.parent}if(!e)return!1;e=e.parent}return!0}function di(e,t){return t===e||e.startsWith(t)&&e[t.length]===`.`}var fi=class{constructor(e,t,n){this.fontStyle=e,this.foregroundId=t,this.backgroundId=n}};function pi(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`&&ai(i.settings.foreground)&&(s=i.settings.foreground);let c=null;typeof i.settings.background==`string`&&ai(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 mi(l,u,e,o,s,c)}}return n}var mi=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}},hi=(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))(hi||{});function gi(e,t){e.sort((e,t)=>{let n=ri(e.scope,t.scope);return n!==0||(n=ii(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 _i(t),o=new fi(n,a.getId(r),a.getId(i)),s=new bi(new yi(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 ci(a,o,s)}var _i=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)}},vi=Object.freeze([]),yi=class e{scopeDepth;parentScopes;fontStyle;foreground;background;constructor(e,t,n,r,i){this.scopeDepth=e,this.parentScopes=t||vi,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)}},bi=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(),yi.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(ii(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 yi(e,t,n,r,i))}},xi=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=Ci(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 Si(e){return e}function Ci(e){return e}function wi(e,t){let n=[],r=Ei(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(Ti(i)){let e=[];do e.push(i),i=r.next();while(Ti(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 Ti(e){return!!e&&!!e.match(/[\w\.:]+/)}function Ei(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 Di(e){typeof e.dispose==`function`&&e.dispose()}var Oi=class{constructor(e){this.scopeName=e}toKey(){return this.scopeName}},ki=class{constructor(e,t){this.scopeName=e,this.ruleName=t}toKey(){return`${this.scopeName}#${this.ruleName}`}},Ai=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))}},ji=class{constructor(e,t){this.repo=e,this.initialScopeName=t,this.seenFullScopeRequests.add(this.initialScopeName),this.Q=[new Oi(this.initialScopeName)]}seenFullScopeRequests=new Set;seenPartialScopeRequests=new Set;Q;processQueue(){let e=this.Q;this.Q=[];let t=new Ai;for(let n of e)Mi(n,this.initialScopeName,this.repo,t);for(let e of t.references)if(e instanceof Oi){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 Mi(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 Oi?Pi({baseGrammar:a,selfGrammar:i},r):Ni(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 Oi(e))}function Ni(e,t,n){if(t.repository&&t.repository[e]){let r=t.repository[e];Fi([r],t,n)}}function Pi(e,t){e.selfGrammar.patterns&&Array.isArray(e.selfGrammar.patterns)&&Fi(e.selfGrammar.patterns,{...e,repository:e.selfGrammar.repository},t),e.selfGrammar.injections&&Fi(Object.values(e.selfGrammar.injections),{...e,repository:e.selfGrammar.repository},t)}function Fi(e,t,n){for(let r of e){if(n.visitedRule.has(r))continue;n.visitedRule.add(r);let e=r.repository?$r({},t.repository,r.repository):t.repository;Array.isArray(r.patterns)&&Fi(r.patterns,{...t,repository:e},n);let i=r.include;if(!i)continue;let a=Vi(i);switch(a.kind){case 0:Pi({...t,selfGrammar:t.baseGrammar},n);break;case 1:Pi(t,n);break;case 2:Ni(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?Ni(a.ruleName,i,n):Pi(i,n)}else a.kind===4?n.add(new ki(a.scopeName,a.ruleName)):n.add(new Oi(a.scopeName))}}}var Ii=class{kind=0},Li=class{kind=1},Ri=class{constructor(e){this.ruleName=e}kind=2},zi=class{constructor(e){this.scopeName=e}kind=3},Bi=class{constructor(e,t){this.scopeName=e,this.ruleName=t}kind=4};function Vi(e){if(e===`$base`)return new Ii;if(e===`$self`)return new Li;let t=e.indexOf(`#`);return t===-1?new zi(e):t===0?new Ri(e.substring(1)):new Bi(e.substring(0,t),e.substring(t+1))}var Hi=/\\(\d+)/,Ui=/\\(\d+)/g,Wi=-1,Gi=-2;function Ki(e){return e}function qi(e){return e}var Ji=class{$location;id;_nameIsCapturing;_name;_contentNameIsCapturing;_contentName;constructor(e,t,n,r){this.$location=e,this.id=t,this._name=n||null,this._nameIsCapturing=ni.hasCaptures(this._name),this._contentName=r||null,this._contentNameIsCapturing=ni.hasCaptures(this._contentName)}get debugName(){let e=this.$location?`${ei(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:ni.replaceCaptures(this._name,e,t)}getContentName(e,t){return!this._contentNameIsCapturing||this._contentName===null?this._contentName:ni.replaceCaptures(this._contentName,e,t)}},Yi=class extends Ji{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!`)}},Xi=class extends Ji{_match;captures;_cachedCompiledPatterns;constructor(e,t,n,r,i){super(e,t,n,null),this._match=new ta(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 na,this.collectPatterns(e,this._cachedCompiledPatterns)),this._cachedCompiledPatterns}},Zi=class extends Ji{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 na,this.collectPatterns(e,this._cachedCompiledPatterns)),this._cachedCompiledPatterns}},Qi=class extends Ji{_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 ta(i,this.id),this.beginCaptures=a,this._end=new ta(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 na;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}},$i=class extends Ji{_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 ta(i,this.id),this.beginCaptures=a,this.whileCaptures=s,this._while=new ta(o,Gi),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 na;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 na,this._cachedCompiledWhilePatterns.push(this._while.hasBackReferences?this._while.clone():this._while)),this._while.hasBackReferences&&this._cachedCompiledWhilePatterns.setSource(0,t||`￿`),this._cachedCompiledWhilePatterns}},ea=class e{static createCaptureRule(e,t,n,r,i){return e.registerRule(e=>new Yi(t,e,n,r,i))}static getCompiledRuleId(t,n,r){return t.id||n.registerRule(i=>{if(t.id=i,t.match)return new Xi(t.$vscodeTextmateLocation,t.id,t.name,t.match,e._compileCaptures(t.captures,n,r));if(t.begin===void 0){t.repository&&(r=$r({},r,t.repository));let i=t.patterns;return i===void 0&&t.include&&(i=[{include:t.include}]),new Zi(t.$vscodeTextmateLocation,t.id,t.name,t.contentName,e._compilePatterns(i,n,r))}return t.while?new $i(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 Qi(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=Vi(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 Zi||e instanceof Qi||e instanceof $i)&&e.hasMissingPatterns&&e.patterns.length===0&&(t=!0),t)continue;i.push(s)}}return{patterns:i,hasMissingPatterns:(t?t.length:0)!==i.length}}},ta=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`&&Hi.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 Ui.lastIndex=0,this.source.replace(Ui,(e,t)=>oi(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}},na=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 ra(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 ra(e,this._items.map(e=>e.resolveAnchors(t,n)),this._items.map(e=>e.ruleId))}},ra=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}},ia=class{constructor(e,t){this.languageId=e,this.tokenType=t}},aa=class e{_defaultAttributes;_embeddedLanguagesMatcher;constructor(e,t){this._defaultAttributes=new ia(e,8),this._embeddedLanguagesMatcher=new oa(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 ia(0,0);_getBasicScopeAttributes=new si(e=>new ia(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/},oa=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])=>oi(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 sa=class{constructor(e,t){this.stack=e,this.stoppedEarly=t}};function ca(e,t,n,r,i,a,o,s){let c=t.content.length,l=!1,u=-1;if(o){let o=la(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 sa(i,!0);f()}return new sa(i,!1);function f(){let o=ua(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===Wi){let o=i.getRule(e);a.produce(i,s[0].start),i=i.withContentNameScopesList(i.nameScopesList),ha(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 Qi){let r=o;ha(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 $i){let r=o;ha(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(ha(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 la(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 $i&&s.push({rule:n,stack:t})}for(let c=s.pop();c;c=s.pop()){let{ruleScanner:s,findOptions:l}=ma(c.rule,e,c.stack.endRule,n,r===o),u=s.findNextMatchSync(t,r,l);if(u){if(u.ruleId!==Gi){i=c.stack.pop();break}u.captureIndices&&u.captureIndices.length&&(a.produce(c.stack,u.captureIndices[0].start),ha(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 ua(e,t,n,r,i,a){let o=da(e,t,n,r,i,a),s=e.getInjections();if(s.length===0)return o;let c=fa(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 da(e,t,n,r,i,a){let{ruleScanner:o,findOptions:s}=pa(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 fa(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}=pa(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 pa(e,t,n,r,i){return{ruleScanner:e.compileAG(t,n,r,i),findOptions:0}}function ma(e,t,n,r,i){return{ruleScanner:e.compileWhileAG(t,n,r,i),findOptions:0}}function ha(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));ca(e,p,n&&d.start===0,d.start,f,i,!1,0),Di(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 ga(t,d.end))}}for(;l.length>0;)i.produceFromScopes(l[l.length-1].scopes,l[l.length-1].endPos),l.pop()}var ga=class{scopes;endPos;constructor(e,t){this.scopes=e,this.endPos=t}};function _a(e,t,n,r,i,a,o,s){return new xa(e,t,n,r,i,a,o,s)}function va(e,t,n,r,i){let a=wi(t,ya),o=ea.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 ya(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(ba(t[r],e))return n=r+1,!0;return!1})}function ba(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 xa=class{constructor(e,t,n,r,i,a,o,s){if(this._rootScopeName=e,this.balancedBracketSelectors=a,this._onigLib=s,this._basicScopeAttributesProvider=new aa(n,r),this._rootId=-1,this._lastRuleId=0,this._ruleId2desc=[null],this._includedGrammars={},this._grammarRepository=o,this._grammar=Sa(t,null),this._injections=null,this._tokenTypeMatchers=[],i)for(let e of Object.keys(i)){let t=wi(e,ya);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)va(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&&va(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(Ki(t));return this._ruleId2desc[t]=n,n}getRule(e){return this._ruleId2desc[qi(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]=Sa(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=ea.getCompiledRuleId(this._grammar.repository.$self,this,this._grammar.repository),this.getInjections());let i;if(!t||t===wa.NULL){i=!0;let e=this._basicScopeAttributesProvider.getDefaultAttributes(),n=this.themeProvider.getDefaults(),r=xi.set(0,e.languageId,e.tokenType,null,n.fontStyle,n.foregroundId,n.backgroundId),a=this.getRule(this._rootId).getName(null,null),o;o=a?Ca.createRootAndLookUpScopeName(a,r,this):Ca.createRoot(`unknown`,r),t=new wa(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 Ea(n,e,this._tokenTypeMatchers,this.balancedBracketSelectors),c=ca(this,a,i,0,t,s,!0,r);return Di(a),{lineLength:o,lineTokens:s,ruleStack:c.stack,stoppedEarly:c.stoppedEarly}}};function Sa(e,t){return e=Yr(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 Ca=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=li.push(i,t.scopeNames),r=new e(r,i,t.encodedTokenAttributes);return r}static createRoot(t,n){return new e(null,new li(null,t),n)}static createRootAndLookUpScopeName(t,n,r){let i=r.getMetadataForScope(t),a=new li(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),xi.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}},wa=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)?Ca.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:qi(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=Ca.fromExtension(t?.nameScopesList??null,n.nameScopesList);return new e(t,Ki(n.ruleId),n.enterPos??-1,n.anchorPos??-1,n.beginRuleCapturedEOL,n.endRule,r,Ca.fromExtension(r,n.contentNameScopesList))}},Ta=class{balancedBracketScopes;unbalancedBracketScopes;allowAny=!1;constructor(e,t){this.balancedBracketScopes=e.flatMap(e=>e===`*`?(this.allowAny=!0,[]):wi(e,ya).map(e=>e.matcher)),this.unbalancedBracketScopes=t.flatMap(e=>wi(e,ya).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}},Ea=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=xi.set(n,0,Si(e.type),null,-1,0,0));this.balancedBracketSelectors&&(r=this.balancedBracketSelectors.match(t))}if(r&&(n=xi.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}},Da=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,_a(e,a,t,n,r,i,this,this._onigLib))}return this._grammars.get(e)}},Oa=class{_options;_syncRegistry;_ensureGrammarCache;constructor(e){this._options=e,this._syncRegistry=new Da(ci.createFromRawTheme(e.theme,e.colorMap),e.onigLib),this._ensureGrammarCache=new Map}dispose(){this._syncRegistry.dispose()}setTheme(e,t){this._syncRegistry.setTheme(ci.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 Ta(n.balancedBracketSelectors||[],n.unbalancedBracketSelectors||[]))}loadGrammar(e){return this._loadGrammar(e,0,null,null,null)}_loadGrammar(e,t,n,r,i){let a=new ji(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)}},ka=wa.NULL;function Aa(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 ja(e,t){return e&&(t?.[e?.toLowerCase()]||e)}function Ma(e){return Array.isArray(e)?e:[e]}async function Na(e){return Promise.resolve(typeof e==`function`?e():e).then(e=>e.default||e)}function Pa(e){return!e||[`plaintext`,`txt`,`text`,`plain`].includes(e)}function Fa(e){return e===`ansi`||Pa(e)}function Ia(e){return e===`none`}function La(e){return Ia(e)}var Ra=/(\r?\n)/g;function za(e,t=!1){if(e.length===0)return[[``,0]];let n=e.split(Ra),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 Ba={light:`#333333`,dark:`#bbbbbb`},Va={light:`#fffffe`,dark:`#1e1e1e`},Ha=`__shiki_resolved`;function Ua(e){if(e?.[Ha])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`?Ba.light:Ba.dark,n||=t.type===`light`?Va.light:Va.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,Ha,{enumerable:!1,writable:!1,value:!0}),t}async function Wa(e){return[...new Set((await Promise.all(e.filter(e=>!Fa(e)).map(async e=>await Na(e).then(e=>Array.isArray(e)?e:[e])))).flat())]}async function Ga(e){return(await Promise.all(e.map(async e=>La(e)?null:Ua(await Na(e))))).filter(e=>!!e)}function Ka(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 B(`Circular alias \`${[...n].join(` -> `)} -> ${e}\``);n.add(e)}}return e}var qa=class extends Oa{_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=Ua(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=ci.createFromRawTheme(e),this._textmateThemeCache.set(e,t)),this._syncRegistry.setTheme(t)}getGrammar(e){return e=Ka(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 B(`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))}},Ja=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}},Ya=0;function Xa(e){Ya+=1,e.warnings!==!1&&Ya>=10&&Ya%10==0&&console.warn(`[Shiki] ${Ya} 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 B("`engine` option is required for synchronous mode");let n=(e.langs||[]).flat(1),r=(e.themes||[]).flat(1).map(Ua),i=new qa(new Ja(e.engine,n),r,n,e.langAlias),a;function o(t){return Ka(t,e.langAlias)}function s(e){g();let t=i.getGrammar(typeof e==`string`?e:e.name);if(!t)throw new B(`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 B(`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 Wa(e))}function m(...e){g();for(let t of e.flat(1))i.loadTheme(t)}async function h(...e){return g(),m(await Ga(e))}function g(){if(t)throw new B(`Shiki instance has been disposed`)}function _(){t||(t=!0,i.dispose(),--Ya)}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 Za(e){e.engine||console.warn("`engine` option is required. Use `createOnigurumaEngine` or `createJavaScriptRegexEngine` to create an engine.");let[t,n,r]=await Promise.all([Ga(e.themes||[]),Wa(e.langs||[]),e.engine]);return Xa({...e,themes:t,langs:n,engine:r})}var Qa=new WeakMap;function $a(e,t){Qa.set(e,t)}function eo(e){return Qa.get(e)}var to=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(Ma(n).map(e=>[e,ka])),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 no(this._stacks[e])}toJSON(){return{lang:this.lang,theme:this.theme,themes:this.themes,scopes:this.getScopes()}}};function no(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 ro(e,t){if(!(e instanceof to))throw new B(`Invalid grammar state`);return e.getInternalStack(t)}var io=/,/,ao=/ /;function oo(e,t,n={}){let{theme:r=e.getLoadedThemes()[0]}=n;if(Pa(e.resolveLangAlias(n.lang||`text`))||Ia(r))return za(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 B(`Grammar state language "${n.grammarState.lang}" does not match highlight language "${o.name}"`);if(!n.grammarState.themes.includes(i.name))throw new B(`Grammar state themes "${n.grammarState.themes}" do not contain highlight theme "${i.name}"`)}return co(t,o,i,a,n)}function so(...e){if(e.length===2)return eo(e[1]);let[t,n,r={}]=e,{lang:i=`text`,theme:a=t.getLoadedThemes()[0]}=r;if(Pa(i)||Ia(a))throw new B(`Plain language does not have grammar state`);if(i===`ansi`)throw new B(`ANSI language does not have grammar state`);let{theme:o,colorMap:s}=t.setTheme(a),c=t.getLanguage(i);return new to(lo(n,c,o,s,r).stateStack,c.name,o.name)}function co(e,t,n,r,i){let a=lo(e,t,n,r,i),o=new to(a.stateStack,t.name,n.name);return $a(a.tokens,o),a.tokens}function lo(e,t,n,r,i){let a=Aa(n,i),{tokenizeMaxLineLength:o=0,tokenizeTimeLimit:s=500,includeExplanation:c=!1}=i,l=za(e),u=i.grammarState?ro(i.grammarState,n.name)??ka:i.grammarContextCode==null?ka:lo(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=ja(r[xi.getForeground(s)],a),u=xi.getFontStyle(s),f={content:i.substring(t,o),offset:p+t,color:l,fontStyle:u};if(c===`tokenType`)f.type=xi.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(io).map(e=>e.trim());break;case`object`:n=t.scope;break;default:continue}e.push({settings:t,selectors:n.map(e=>e.split(ao))})}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`?uo(t.scopes):fo(e,t.scopes)}),g+=1}}d.push(f)}f.push(d),d=[],u=_.ruleStack}return{tokens:f,stateStack:u}}function uo(e){return e.map(e=>({scopeName:e}))}function fo(e,t){let n=[];for(let r=0,i=t.length;r<i;r++){let i=t[r];n[r]={scopeName:i,themeMatches:ho(e,i,t.slice(0,r))}}return n}function po(e,t){return e===t||t.substring(0,e.length)===e&&t[e.length]===`.`}function mo(e,t,n){if(!po(e.at(-1),t))return!1;let r=e.length-2,i=n.length-1;for(;r>=0&&i>=0;)po(e[r],n[i])&&--r,--i;return r===-1}function ho(e,t,n){let r=[];for(let{selectors:i,settings:a}of e)for(let e of i)if(mo(e,t,n)){r.push(a);break}return r}function go(e,t,n,r=oo){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:eo(a),theme:typeof i.theme==`string`?i.theme:i.theme.name}}),o=_o(...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 to(Object.fromEntries(a.map(e=>[e.theme,e.state?.getInternalStack(e.theme)])),a[0].state.lang):void 0;return c&&$a(s,c),s}function _o(...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 vo=[`area`,`base`,`basefont`,`bgsound`,`br`,`col`,`command`,`embed`,`frame`,`hr`,`image`,`img`,`input`,`keygen`,`link`,`meta`,`param`,`source`,`track`,`wbr`],yo=class{constructor(e,t,n){this.normal=t,this.property=e,n&&(this.space=n)}};yo.prototype.normal={},yo.prototype.property={},yo.prototype.space=void 0;function bo(e,t){let n={},r={};for(let t of e)Object.assign(n,t.property),Object.assign(r,t.normal);return new yo(n,r,t)}function xo(e){return e.toLowerCase()}var So=class{constructor(e,t){this.attribute=t,this.property=e}};So.prototype.attribute=``,So.prototype.booleanish=!1,So.prototype.boolean=!1,So.prototype.commaOrSpaceSeparated=!1,So.prototype.commaSeparated=!1,So.prototype.defined=!1,So.prototype.mustUseProperty=!1,So.prototype.number=!1,So.prototype.overloadedBoolean=!1,So.prototype.property=``,So.prototype.spaceSeparated=!1,So.prototype.space=void 0;var Co=Tn({boolean:()=>V,booleanish:()=>To,commaOrSpaceSeparated:()=>Oo,commaSeparated:()=>Do,number:()=>H,overloadedBoolean:()=>Eo,spaceSeparated:()=>U}),wo=0,V=ko(),To=ko(),Eo=ko(),H=ko(),U=ko(),Do=ko(),Oo=ko();function ko(){return 2**++wo}var Ao=Object.keys(Co),jo=class extends So{constructor(e,t,n,r){let i=-1;if(super(e,t),Mo(this,`space`,r),typeof n==`number`)for(;++i<Ao.length;){let e=Ao[i];Mo(this,Ao[i],(n&Co[e])===Co[e])}}};jo.prototype.defined=!0;function Mo(e,t,n){n&&(e[t]=n)}function No(e){let t={},n={};for(let[r,i]of Object.entries(e.properties)){let a=new jo(r,e.transform(e.attributes||{},r),i,e.space);e.mustUseProperty&&e.mustUseProperty.includes(r)&&(a.mustUseProperty=!0),t[r]=a,n[xo(r)]=r,n[xo(a.attribute)]=r}return new yo(t,n,e.space)}var Po=No({properties:{ariaActiveDescendant:null,ariaAtomic:To,ariaAutoComplete:null,ariaBusy:To,ariaChecked:To,ariaColCount:H,ariaColIndex:H,ariaColSpan:H,ariaControls:U,ariaCurrent:null,ariaDescribedBy:U,ariaDetails:null,ariaDisabled:To,ariaDropEffect:U,ariaErrorMessage:null,ariaExpanded:To,ariaFlowTo:U,ariaGrabbed:To,ariaHasPopup:null,ariaHidden:To,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:U,ariaLevel:H,ariaLive:null,ariaModal:To,ariaMultiLine:To,ariaMultiSelectable:To,ariaOrientation:null,ariaOwns:U,ariaPlaceholder:null,ariaPosInSet:H,ariaPressed:To,ariaReadOnly:To,ariaRelevant:null,ariaRequired:To,ariaRoleDescription:U,ariaRowCount:H,ariaRowIndex:H,ariaRowSpan:H,ariaSelected:To,ariaSetSize:H,ariaSort:null,ariaValueMax:H,ariaValueMin:H,ariaValueNow:H,ariaValueText:null,role:null},transform(e,t){return t===`role`?t:`aria-`+t.slice(4).toLowerCase()}});function Fo(e,t){return t in e?e[t]:t}function Io(e,t){return Fo(e,t.toLowerCase())}var Lo=No({attributes:{acceptcharset:`accept-charset`,classname:`class`,htmlfor:`for`,httpequiv:`http-equiv`},mustUseProperty:[`checked`,`multiple`,`muted`,`selected`],properties:{abbr:null,accept:Do,acceptCharset:U,accessKey:U,action:null,allow:null,allowFullScreen:V,allowPaymentRequest:V,allowUserMedia:V,alpha:V,alt:null,as:null,async:V,autoCapitalize:null,autoComplete:U,autoFocus:V,autoPlay:V,blocking:U,capture:null,charSet:null,checked:V,cite:null,className:U,closedBy:null,colorSpace:null,cols:H,colSpan:H,command:null,commandFor:null,content:null,contentEditable:To,controls:V,controlsList:U,coords:H|Do,crossOrigin:null,data:null,dateTime:null,decoding:null,default:V,defer:V,dir:null,dirName:null,disabled:V,download:Eo,draggable:To,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:V,formTarget:null,headers:U,height:H,hidden:Eo,high:H,href:null,hrefLang:null,htmlFor:U,httpEquiv:U,id:null,imageSizes:null,imageSrcSet:null,inert:V,inputMode:null,integrity:null,is:null,isMap:V,itemId:null,itemProp:U,itemRef:U,itemScope:V,itemType:U,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:V,low:H,manifest:null,max:null,maxLength:H,media:null,method:null,min:null,minLength:H,multiple:V,muted:V,name:null,nonce:null,noModule:V,noValidate:V,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:V,optimum:H,pattern:null,ping:U,placeholder:null,playsInline:V,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:V,referrerPolicy:null,rel:U,required:V,reversed:V,rows:H,rowSpan:H,sandbox:U,scope:null,scoped:V,seamless:V,selected:V,shadowRootClonable:V,shadowRootCustomElementRegistry:V,shadowRootDelegatesFocus:V,shadowRootMode:null,shadowRootSerializable:V,shape:null,size:H,sizes:null,slot:null,span:H,spellCheck:To,src:null,srcDoc:null,srcLang:null,srcSet:null,start:H,step:null,style:null,tabIndex:H,target:null,title:null,translate:null,type:null,typeMustMatch:V,useMap:null,value:To,width:H,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:U,axis:null,background:null,bgColor:null,border:H,borderColor:null,bottomMargin:H,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:V,declare:V,event:null,face:null,frame:null,frameBorder:null,hSpace:H,leftMargin:H,link:null,longDesc:null,lowSrc:null,marginHeight:H,marginWidth:H,noResize:V,noHref:V,noShade:V,noWrap:V,object:null,profile:null,prompt:null,rev:null,rightMargin:H,rules:null,scheme:null,scrolling:To,standby:null,summary:null,text:null,topMargin:H,valueType:null,version:null,vAlign:null,vLink:null,vSpace:H,allowTransparency:null,autoCorrect:null,autoSave:null,credentialless:V,disablePictureInPicture:V,disableRemotePlayback:V,exportParts:Do,part:U,prefix:null,property:null,results:H,security:null,unselectable:null},space:`html`,transform:Io}),Ro=No({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:Oo,accentHeight:H,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:H,amplitude:H,arabicForm:null,ascent:H,attributeName:null,attributeType:null,azimuth:H,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:H,by:null,calcMode:null,capHeight:H,className:U,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:H,diffuseConstant:H,direction:null,display:null,dur:null,divisor:H,dominantBaseline:null,download:V,dx:null,dy:null,edgeMode:null,editable:null,elevation:H,enableBackground:null,end:null,event:null,exponent:H,externalResourcesRequired:null,fill:null,fillOpacity:H,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:Do,g2:Do,glyphName:Do,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:H,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:H,horizOriginX:H,horizOriginY:H,id:null,ideographic:H,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:H,k:H,k1:H,k2:H,k3:H,k4:H,kernelMatrix:Oo,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:H,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:H,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:H,overlineThickness:H,paintOrder:null,panose1:null,path:null,pathLength:H,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:U,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:H,pointsAtY:H,pointsAtZ:H,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:Oo,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:Oo,rev:Oo,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:Oo,requiredFeatures:Oo,requiredFonts:Oo,requiredFormats:Oo,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:H,specularExponent:H,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:H,strikethroughThickness:H,string:null,stroke:null,strokeDashArray:Oo,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:H,strokeOpacity:H,strokeWidth:null,style:null,surfaceScale:H,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:Oo,tabIndex:H,tableValues:null,target:null,targetX:H,targetY:H,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:Oo,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:H,underlineThickness:H,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:H,values:null,vAlphabetic:H,vMathematical:H,vectorEffect:null,vHanging:H,vIdeographic:H,version:null,vertAdvY:H,vertOriginX:H,vertOriginY:H,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:H,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:`svg`,transform:Fo}),zo=No({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()}}),Bo=No({attributes:{xmlnsxlink:`xmlns:xlink`},properties:{xmlnsXLink:null,xmlns:null},space:`xmlns`,transform:Io}),Vo=No({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:`xml`,transform(e,t){return`xml:`+t.slice(3).toLowerCase()}}),Ho=/[A-Z]/g,Uo=/-[a-z]/g,Wo=/^data[-\w.:]+$/i;function Go(e,t){let n=xo(t),r=t,i=So;if(n in e.normal)return e.property[e.normal[n]];if(n.length>4&&n.slice(0,4)===`data`&&Wo.test(t)){if(t.charAt(4)===`-`){let e=t.slice(5).replace(Uo,qo);r=`data`+e.charAt(0).toUpperCase()+e.slice(1)}else{let e=t.slice(4);if(!Uo.test(e)){let n=e.replace(Ho,Ko);n.charAt(0)!==`-`&&(n=`-`+n),t=`data`+n}}i=jo}return new i(r,t)}function Ko(e){return`-`+e.toLowerCase()}function qo(e){return e.charAt(1).toUpperCase()}var Jo=bo([Po,Lo,zo,Bo,Vo],`html`),Yo=bo([Po,Ro,zo,Bo,Vo],`svg`),Xo={}.hasOwnProperty;function Zo(e,t){let n=t||{};function r(t,...n){let i=r.invalid,a=r.handlers;if(t&&Xo.call(t,e)){let n=String(t[e]);i=Xo.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 Qo=/["&'<>`]/g,$o=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,es=/[\x01-\t\v\f\x0E-\x1F\x7F\x81\x8D\x8F\x90\x9D\xA0-\uFFFF]/g,ts=/[|\\{}()[\]^$+*?.]/g,ns=new WeakMap;function rs(e,t){return e=e.replace(t.subset?is(t.subset):Qo,r),t.subset||t.escapeOnly?e:e.replace($o,n).replace(es,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 is(e){let t=ns.get(e);return t||(t=as(e),ns.set(e,t)),t}function as(e){let t=[],n=-1;for(;++n<e.length;)t.push(e[n].replace(ts,`\\$&`));return RegExp(`(?:`+t.join(`|`)+`)`,`g`)}var os=/[\dA-Fa-f]/;function ss(e,t,n){let r=`&#x`+e.toString(16).toUpperCase();return n&&t&&!os.test(String.fromCharCode(t))?r:r+`;`}var cs=/\d/;function ls(e,t,n){let r=`&#`+String(e);return n&&t&&!cs.test(String.fromCharCode(t))?r:r+`;`}var us=`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(`.`),ds={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:`€`},fs=[`cent`,`copy`,`divide`,`gt`,`lt`,`not`,`para`,`times`],ps={}.hasOwnProperty,ms={},hs;for(hs in ds)ps.call(ds,hs)&&(ms[ds[hs]]=hs);var gs=/[^\dA-Za-z]/;function _s(e,t,n,r){let i=String.fromCharCode(e);if(ps.call(ms,i)){let e=ms[i],a=`&`+e;return n&&us.includes(e)&&!fs.includes(e)&&(!r||t&&t!==61&&gs.test(String.fromCharCode(t)))?a:a+`;`}return``}function vs(e,t,n){let r=ss(e,t,n.omitOptionalSemicolons),i;if((n.useNamedReferences||n.useShortestReferences)&&(i=_s(e,t,n.omitOptionalSemicolons,n.attribute)),(n.useShortestReferences||!i)&&n.useShortestReferences){let i=ls(e,t,n.omitOptionalSemicolons);i.length<r.length&&(r=i)}return i&&(!n.useShortestReferences||i.length<r.length)?i:r}function ys(e,t){return rs(e,Object.assign({format:vs},t))}var bs=/^>|^->|<!--|-->|--!>|<!-$/g,xs=[`>`],Ss=[`<`,`>`];function Cs(e,t,n,r){return r.settings.bogusComments?`<?`+ys(e.value,Object.assign({},r.settings.characterReferences,{subset:xs}))+`>`:`<!--`+e.value.replace(bs,i)+`-->`;function i(e){return ys(e,Object.assign({},r.settings.characterReferences,{subset:Ss}))}}function ws(e,t,n,r){return`<!`+(r.settings.upperDoctype?`DOCTYPE`:`doctype`)+(r.settings.tightDoctype?``:` `)+`html>`}function Ts(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 Es(e,t){let n=t||{};return(e[e.length-1]===``?[...e,``]:e).join((n.padRight?` `:``)+`,`+(n.padLeft===!1?``:` `)).trim()}function Ds(e){return e.join(` `).trim()}var Os=/[ \t\n\f\r]/g;function ks(e){return typeof e==`object`?e.type===`text`&&As(e.value):As(e)}function As(e){return e.replace(Os,``)===``}var js=Ps(1),Ms=Ps(-1),Ns=[];function Ps(e){return t;function t(t,n,r){let i=t?t.children:Ns,a=(n||0)+e,o=i[a];if(!r)for(;o&&ks(o);)a+=e,o=i[a];return o}}var Fs={}.hasOwnProperty;function Is(e){return t;function t(t,n,r){return Fs.call(e,t.tagName)&&e[t.tagName](t,n,r)}}var Ls=Is({body:Bs,caption:Rs,colgroup:Rs,dd:Ws,dt:Us,head:Rs,html:zs,li:Hs,optgroup:Ks,option:qs,p:Vs,rp:Gs,rt:Gs,tbody:Ys,td:Qs,tfoot:Xs,th:Qs,thead:Js,tr:Zs});function Rs(e,t,n){let r=js(n,t,!0);return!r||r.type!==`comment`&&!(r.type===`text`&&ks(r.value.charAt(0)))}function zs(e,t,n){let r=js(n,t);return!r||r.type!==`comment`}function Bs(e,t,n){let r=js(n,t);return!r||r.type!==`comment`}function Vs(e,t,n){let r=js(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 Hs(e,t,n){let r=js(n,t);return!r||r.type===`element`&&r.tagName===`li`}function Us(e,t,n){let r=js(n,t);return!(!r||r.type!==`element`||r.tagName!==`dt`&&r.tagName!==`dd`)}function Ws(e,t,n){let r=js(n,t);return!r||r.type===`element`&&(r.tagName===`dt`||r.tagName===`dd`)}function Gs(e,t,n){let r=js(n,t);return!r||r.type===`element`&&(r.tagName===`rp`||r.tagName===`rt`)}function Ks(e,t,n){let r=js(n,t);return!r||r.type===`element`&&r.tagName===`optgroup`}function qs(e,t,n){let r=js(n,t);return!r||r.type===`element`&&(r.tagName===`option`||r.tagName===`optgroup`)}function Js(e,t,n){let r=js(n,t);return!(!r||r.type!==`element`||r.tagName!==`tbody`&&r.tagName!==`tfoot`)}function Ys(e,t,n){let r=js(n,t);return!r||r.type===`element`&&(r.tagName===`tbody`||r.tagName===`tfoot`)}function Xs(e,t,n){return!js(n,t)}function Zs(e,t,n){let r=js(n,t);return!r||r.type===`element`&&r.tagName===`tr`}function Qs(e,t,n){let r=js(n,t);return!r||r.type===`element`&&(r.tagName===`td`||r.tagName===`th`)}var $s=Is({body:nc,colgroup:rc,head:tc,html:ec,tbody:ic});function ec(e){let t=js(e,-1);return!t||t.type!==`comment`}function tc(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 nc(e){let t=js(e,-1,!0);return!t||t.type!==`comment`&&!(t.type===`text`&&ks(t.value.charAt(0)))&&(t.type!==`element`||t.tagName!==`meta`&&t.tagName!==`link`&&t.tagName!==`script`&&t.tagName!==`style`&&t.tagName!==`template`)}function rc(e,t,n){let r=Ms(n,t),i=js(e,-1,!0);return n&&r&&r.type===`element`&&r.tagName===`colgroup`&&Ls(r,n.children.indexOf(r),n)?!1:!!(i&&i.type===`element`&&i.tagName===`col`)}function ic(e,t,n){let r=Ms(n,t),i=js(e,-1);return n&&r&&r.type===`element`&&(r.tagName===`thead`||r.tagName===`tbody`)&&Ls(r,n.children.indexOf(r),n)?!1:!!(i&&i.type===`element`&&i.tagName===`tr`)}var ac={name:[[`
5
5
  \f\r &/=>`.split(``),`
@@ -318,12 +318,12 @@ diff --git`)}function sv(e,t){if(e.length===0)return[``];let n=`\n${t}`,r=e.star
318
318
  `).map(e=>{let t=/^([ +\->])\s*(\d+) \| ?(.*)$/.exec(e);return t?{on:t[1]!==` `,n:t[2],code:t[3]}:null});if(t.some(e=>!e))return e;let n=t,r=n.findIndex(e=>e.on),i=n.findLastIndex(e=>e.on),a=r<0?n:n.slice(Math.max(0,r-zC),i+zC+1),o=Math.max(...a.map(e=>e.n.length));return a.map(e=>`${e.on?`>`:` `} ${e.n.padStart(o)} | ${e.code}`).join(`
319
319
  `)}function VC(e){let t=e.slice(e.lastIndexOf(`/`)+1),n=t.lastIndexOf(`.`),r=n>0?t.slice(n+1).toLowerCase():``;return/^[a-z0-9]{1,10}$/.test(r)?r:``}function HC(e,t=12){return e.slice(0,t)}function UC(e,t,n,r){let i=e.split(`
320
320
  `),a=Math.max(1,t-MC),o=Math.min(i.length,n+MC),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
- `)}function WC(e){let t=3,n=/`+/g,r;for(;r=n.exec(e);)t=Math.max(t,r[0].length+1);return"`".repeat(t)}function GC(e){return e.split(/[@#]/)[0]}function KC(e){return e.pr?.headRefName??e.headRef??e.branch}function qC(e){return e.split(`
321
+ `)}function WC(e){let t=3,n=/`+/g,r;for(;r=n.exec(e);)t=Math.max(t,r[0].length+1);return"`".repeat(t)}function GC(e){return e.split(/[@#]/)[0]}function KC(e){return e.pr?.headRefName??e.headRef??e.branch}function qC(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 JC(e){return e.split(`
322
322
  `).filter(e=>e[0]===`+`||e[0]===`-`||e[0]===`>`).map(e=>e.slice(1)).join(`
323
- `)}function JC(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 YC(e){if(e.length<=1)return null;let t=document.createElement(`select`);t.setAttribute(`aria-label`,`Send to session`),t.className=`_mn`;for(let n of e){let e=document.createElement(`option`);e.value=n.id,e.textContent=bt(n),t.append(e)}return t}var XC=(e,t)=>t.find(t=>t.id===e?.value)?.id??t[0]?.id??null;function ZC(e){return e.map(e=>`${e.id}\t${bt(e)}`).join(`
324
- `)}var QC=new WeakMap;function $C(e){QC.get(e)?.()}function ew(e,t,n,r){let i={el:tw(),busy:!1,stale:!1},a=()=>{},o=()=>{if(i.busy){i.stale=!0;return}let s=e.sessions(),c;if(!s.length)c=tw(),a=()=>{};else{let l=rw(`Send`,``);l.dataset.role=`send`;let u=YC(s),d=u?`Send to`:`Send`;l.onclick=()=>{(async()=>{let t=XC(u,e.sessions());if(t&&!l.disabled){i.busy=!0,nw([...n,l],!0,d);try{await r(t)}finally{i.busy=!1,nw([...n,l],!1,d),i.stale&&(i.stale=!1,o())}}})()},a=()=>l.click(),c=iw(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 tw(){let e=document.createElement(`span`);return e.hidden=!0,e}function nw(e,t,n){for(let r of e)r.disabled=t,n&&r.dataset.role===`send`&&(r.textContent=t?`Sending…`:n)}function rw(e,t){let n=document.createElement(`button`);return n.type=`button`,n.textContent=e,n.className=t,n}function iw(e,t,n,r){if(!t){e.className=`_r ${r?f:``} _s`,e.textContent=`Send`;let t=n[0];return t&&(e.title=`Send to ${bt(t)}`),e}let i=document.createElement(`span`);return i.className=`_ml ${r?`_lB`:``}`,e.className=`_s _mm`,e.textContent=`Send to`,i.append(e,t),i}function aw(e,t,n){e.onkeydown=e=>{e.key===`Enter`&&(e.metaKey||e.ctrlKey)&&(e.preventDefault(),t()),e.key===`Escape`&&(e.preventDefault(),n())}}function ow(e,t,n){let r=document.createElement(`div`);r.className=`_lx`;let i=document.createElement(`div`),a=document.createElement(`div`);a.className=`_lA`;let o=null;QC.set(r,()=>o?.());let c=()=>{i.replaceChildren(),a.replaceChildren();let r=document.createElement(`p`);r.className=`_ly`,r.textContent=e.text;let c=rw(`Remove`,`_r ${f}`);c.onclick=()=>n.onDelete(e.id);let u=rw(`Edit`,`_r ${f}`);u.hidden=!n.onEdit,u.onclick=()=>l(),a.append(u,c);let d=n.onSend;if(d){let n=ew(t,!0,[c,u],t=>d(e.id,t));a.append(n.el),o=n.draw}if(n.drifted){let e=document.createElement(`span`);e.className=`_9 ${s.warn} _lC`,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)},l=()=>{o=null,i.replaceChildren(),a.replaceChildren();let t=document.createElement(`textarea`);t.value=e.text,t.rows=3,t.className=`_bj _lz`;let r=rw(`Save`,`_r _s`),s=rw(`Cancel`,`_r`),l=()=>{let i=t.value.trim();if(!i||i===e.text){c();return}(async()=>{nw([r,s],!0);try{await n.onEdit?.(e.id,i),e.text=i,c()}catch{nw([r,s],!1)}})()};r.onclick=l,s.onclick=()=>c(),aw(t,l,c),a.append(r,s),i.append(t),setTimeout(()=>{t.focus({preventScroll:!0}),t.setSelectionRange(t.value.length,t.value.length)},0)};return c(),r.append(i,a),r}function sw(e,t){let n=document.createElement(`div`);n.className=`_lx`;let r=document.createElement(`textarea`);r.placeholder=`Add a comment…`,r.rows=3,r.className=`_bj _lz`;let i=rw(`Add`,`_r`),a=rw(`Cancel`,`_r`),o=()=>{r.value.trim()&&t.onSave(r.value)},s=t.onSend,c=s?ew(e,!1,[i,a],e=>{let t=r.value.trim();if(t)return s(t,e)}):null;c&&QC.set(n,c.draw),i.onclick=o,a.onclick=()=>t.onCancel(),aw(r,()=>{c?.send()||o()},()=>t.onCancel());let l=document.createElement(`div`);l.className=`_lA`,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 cw=e=>`/api/workspaces/${e}/review`;async function lw(e){return(await ue(cw(e))).comments||[]}function uw(e,t){return _e(cw(e),{action:`comment`,...t})}function dw(e,t,n){return _e(`${cw(e)}/${t}`,{text:n},`PATCH`)}async function fw(e,t){if(!t.some(e=>e.head))return null;try{return(await ue(`/api/workspaces/${e}/diff`)).sections}catch{return null}}async function pw(e,t){t.length&&await _e(cw(e),{action:`clear`,ids:t})}async function mw(e,t){t.length&&await _e(cw(e),{action:`view`,marks:t})}async function hw(e,t){let n=ge(t),r=await lw(e);return fe(t,n)?r:null}function gw(e,t){ge(e.seq),e.set(t)}async function _w(e,t){ge(e.seq);try{let n=await uw(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: ${he(t)}`),!1}}async function vw(e,t){let n=e.list().find(e=>e.id===t);if(n){gw(e,e.list().filter(e=>e.id!==t));try{await pw(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: ${he(r)}`)}}}async function yw(e,t,n){let r=e.list().find(e=>e.id===t),i=n.trim();if(r&&i&&i!==r.text){gw(e,e.list().map(e=>e.id===t?{...e,text:i}:e));try{await dw(e.workspaceId,t,i)}catch(n){throw e.set(e.list().map(e=>e.id===t?r:e)),e.fail(`Edit comment failed: ${he(n)}`),n}}}async function bw(e,t,n,r){if(!t.length)return!0;try{let i=NC(t,e.sections());if(`clipboard`in n){if(!await Re(i))return e.fail(`Copy failed: the browser blocked the clipboard`),!1}else await _e(`/api/sessions/${n.session}/send`,{text:i,...jt()||{}});e.handed(n);let a=new Set(r);return gw(e,e.list().filter(e=>!a.has(e.id))),r.length&&await pw(e.workspaceId,r).catch(t=>{e.fail(`${`clipboard`in n?`Copied`:`Sent`}, but the comments are still saved: ${he(t)}`),e.reload()}),!0}catch(t){return e.fail(`Send failed: ${he(t)}`),!1}}function xw(e,t){let n=e.list();return bw(e,n,t,n.map(e=>e.id))}function Sw(e,t,n){let r=e.list().find(e=>e.id===t);return r?bw(e,[r],{session:n},[t]):Promise.resolve(!1)}function Cw(e,t,n){return bw(e,[{id:-1,workspace_id:e.workspaceId,created_at:``,...t}],{session:n},[])}var ww=`search-mark`,Tw=`mark.${ww}`,Ew=`mark.${ww}{display:inline;background:#ffd24a;color:#1a1408;-webkit-text-fill-color:#1a1408;border-radius:3px;padding:0 2px}mark.${ww} *,mark.${ww} *::before,mark.${ww} *::after{color:inherit!important;-webkit-text-fill-color:inherit!important;background:transparent!important}mark.${ww}.active{background:#ffb000;box-shadow:0 0 0 1px #c98400}`,Dw={query:``,hit:null,keys:null},Ow=new Map,kw=new WeakMap,Aw=(e,t)=>t?`${e}\n${t.line}\n${t.side||``}`:e;function jw(e,t,n){Dw.query=e,Dw.hit=t,Dw.keys=n?new Set(n):null;for(let[e,t]of Ow)Iw(e,t,!1);t&&Mw(t)}function Mw(e,t=0){requestAnimationFrame(()=>{requestAnimationFrame(()=>{let n=!1;for(let[r,i]of Ow)if(i===e.key&&(n=!0,Fw(r,e)||t>=40))return;t>=40||(!n||t<12)&&setTimeout(()=>Mw(e,t+1),n?32:48)})})}function Nw(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 Pw(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 Fw(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=>Bw(e)===r)??e[0]??null})();if(!r)return!1;let i=r.getBoundingClientRect();if(i.height===0&&i.width===0)return!1;let a=Pw(r,e);return a&&Nw(a,r),!0}function Iw(e,t,n=!0){let r=t&&Dw.hit?.key===t?Dw.hit:null,i=Dw.query.trim(),a=!!i&&!!Dw.keys&&!!t&&!Dw.keys.has(t),o=a?``:Aw(i,r),s=kw.get(e)!==o;(n||s)&&(kw.set(e,o),Kw(e,a?``:i,r),n||OC(e),r&&s&&Mw(r))}function Lw(e,t){return Ow.set(e,t),Iw(e,t),()=>{Ow.delete(e),kw.delete(e)}}function Rw(e){Iw(e,Ow.get(e))}function zw(e){let t=e.querySelectorAll(Tw);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 Bw(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 Vw(e){let t=document.createTreeWalker(e,NodeFilter.SHOW_TEXT),n=[];for(let e=t.nextNode();e;e=t.nextNode())e.parentElement?.closest(Tw)||n.push(e);return n}function Hw(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 Uw(e,t,n,r,i){let a=Hw(e,t,n),o=Hw(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 Ww(e,t,n,r){let i=Vw(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=qw(e,r)?`${ww} active`:ww;for(let e=c.length-1;e>=0;e--)Uw(i,a,c[e][0],c[e][1],l)}var Gw=new WeakMap;function Kw(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){zw(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${+!!qw(t,n)}`:``,a=!!t.querySelector(Tw);i!==(a?Gw.get(t):``)&&(a&&zw(t),Gw.set(t,i),r&&Ww(t,s,o,n))}}}function qw(e,t){return!!t&&t.line===Number(e.getAttribute(`data-line`))&&(t.side||`additions`)===Bw(e)}function Jw(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(Xw(i,e?Yw:qt))}return e=>!n.some(t=>t(e))&&t.every(t=>t(e))}function Yw(e,t){return t.toLowerCase().includes(e.toLowerCase())}function Xw(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)}}var Zw={apng:`image/apng`,avif:`image/avif`,bmp:`image/bmp`,gif:`image/gif`,ico:`image/x-icon`,jpeg:`image/jpeg`,jpg:`image/jpeg`,png:`image/png`,svg:`image/svg+xml`,webp:`image/webp`,pdf:`application/pdf`,mp4:`video/mp4`,m4v:`video/mp4`,mov:`video/quicktime`,webm:`video/webm`};function Qw(e){let t=e.lastIndexOf(`.`),n=Zw[t<0?``:e.slice(t+1).toLowerCase()];return n?{kind:n===`application/pdf`?`pdf`:n.startsWith(`video/`)?`video`:`image`,type:n}:null}function $w(e){return`${e} uncommitted ${e===1?`file`:`files`} in its worktree`}function eT(e){let t=e.nextToLand?`, next to merge${e.stack?` (layer ${e.stack.index} of ${e.stack.size})`:``}`:``,n=e.edits?`; ${$w(e.edits)}`:``;if(e.pr)return`#${e.pr.number}: ${Nt(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; ${$w(e.edits)}`:null}function tT(e){return!!e.pr||!e.contained||!!e.edits}function nT(e){return new Map(e.flatMap(e=>e.layer?[[e.pr?.headRefName||e.headRef||e.branch,e.layer]]:[]))}function rT(e,t,n,r){let i=e.pr?.headRefName||e.headRef||e.branch;return{id:e.id,repo:e,group:ft(Mt(i,t))?.group,compare:mt({base:e.pr?.baseRefName||e.base,head:i,defaultBranch:e.default_branch,repoBase:e.base_branch},t,n,r)}}var iT=((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">Diff</a></nav>`)(R,Qe),aT=((e,t)=>` D l D D/${e}&l D/${t}&m D b l`)(it,rt),oT=O(18,e=>N(e.d,`title`,e.r===null?`Back`:`Back to ${e.r}${Ue(`goBack`,e.p)}`)),sT=O(20,e=>N(e.f,`title`,e.t===null?`Forward`:`Forward to ${e.t}${Ue(`goForward`,e.p)}`)),cT=C(15,e=>{oT(e),sT(e)}),lT=C(16,e=>{fT(e,e.q?.back),pT(e,e.q?.forward)}),uT=k(`S0`,e=>{cT(e,He()),We(()=>{cT(e,He())},re(e,0)),lT(e,Ot()),wt(()=>{lT(e,Ot())},re(e,0)),g(e.d,`click`,function(){ct()}),g(e.f,`click`,function(){St()})});function dT(e){ae(e,0),j(e.a,`_Q`),j(e.c,`_k7`),j(e.d,h),et(e.e),$e(e.e,14),st(e.e),j(e.f,h),z(e.g),ot(e.g,14),Ze(e.g),j(e.h,[`_bA`,`_k6`]),cT(e,0),lT(e,{back:null,forward:null}),uT(e)}var fT=M(17,e=>{N(e.d,`disabled`,e.r===null),oT(e)}),pT=M(19,e=>{N(e.f,`disabled`,e.t===null),sT(e)}),mT=(e,t)=>{y(e.b,t===`files`?`Files`:`Review`),j(e.i,[`_bC`,t===`files`&&`_bB`]),N(e.i,`aria-current`,t===`files`?`page`:void 0),j(e.j,[`_bC`,t===`changes`&&`_bB`]),N(e.j,`aria-current`,t===`changes`?`page`:void 0)},hT=(e,t)=>N(e.i,`href`,t),gT=(e,t)=>N(e.j,`href`,t),_T=xe,vT=(e=>`/${e}&`)(pe);function yT(e){de(e.a,ve)}var bT=(e,t)=>Pe(e.a,t),xT=(e,t)=>be(e.a,t),ST=(e=>`<label>${e}<input type=search placeholder="Filter files…" aria-label="Filter files"></label>`)(_T),CT=(e=>` D/${e}& l`)(vT),wT=O(16,e=>ne(e,`c`,e.n,RT(e))),TT=M(13,wT),ET=M(14),DT=O(12,e=>{TT(e,(e.l??e.j)||``),ET(e,zT(e))}),OT=E(9,DT),kT=O(7,e=>OT(e,e.f,e.g)),AT=M(5,kT),jT=M(6,kT),MT=k(`u5`,e=>{{let t=e.l;if(t!==null){let n=setTimeout(()=>{NT(e,null),OT(e,t)},150);re(e,0).onabort=()=>clearTimeout(n)}}}),NT=C(11,e=>{ae(e,0),DT(e),MT(e)}),PT=M(15,wT),FT=k(`u4`,e=>{oe(e,`c`),g(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()))}),g(e.c,`blur`,function(){e.l!==null&&e.o()})});function IT(e){j(e.a,[`_bl`,`_nH`]),yT(e.b),bT(e.b,14),xT(e.b,`_bm`),j(e.c,[`_bn`,t]),D(e,VT(e)),NT(e,null),PT(e,BT(e)),FT(e)}var LT=M(8),RT=e=>function(t){e.p(t)},zT=e=>()=>{let t=e.l??e.j??``;NT(e,null),OT(e,t)},BT=e=>t=>{if(!t){NT(e,null),OT(e,``);return}NT(e,t)},VT=e=>()=>{e.c.focus(),e.c.select()};b.u2=RT,b.u0=zT,b.u1=BT,b.u3=VT;var HT=`<!><!><!>`,UT=x(0,0,e=>y(e.c,nn(e._.d))),WT=e=>{UT._(e),GT._(e),j(e.a,`_nE`),j(e.b,`_nF`),j(e.d,`_nG`)},GT=x(0,0,e=>y(e.e,nn(e._.e))),KT=v(0,`<span><span>+<!></span><span>−<!></span></span>`,` D Db%l Db%`,WT),qT=O(5,e=>KT(e,e.d||e.e?0:1)),JT=M(3,e=>{qT(e),UT(e)}),YT=M(4,e=>{qT(e),GT(e)}),XT=(e=>`<div>${e}<!><div><span> </span><!><!></div></div>`)(ST),ZT=(e=>` D0${e}&%b D D l%b%m`)(CT),QT=k(`y4`,e=>g(e.a,`click`,function(){lE(e._,``),pE(e._,!1)})),$T=e=>{j(e.a,`_m8`),QT(e)},eE=x(7,0,e=>JT(e.a,e._.w)),tE=e=>{eE._(e),nE._(e)},nE=x(7,0,e=>YT(e.a,e._.x??0)),rE=x(3,0,e=>y(e.e,nn(e._.r))),iE=k(`y3`,e=>g(e.f,`click`,function(){pE(e._,!e._.a0)})),aE=e=>{rE._(e),oE._(e),sE._(e),j(e.a,`_m3`),j(e.b,`_m4`),j(e.c,`_m5`),j(e.f,`_3`),iE(e)},oE=x(3,0,e=>y(e.d,nn(e._.v))),sE=x(3,0,e=>N(e.f,`aria-checked`,e._.a0?`true`:`false`)),cE=te(31),lE=E(24,e=>AT(e.b,e.y)),uE=O(13,e=>lE(e,e.l,e.m)),dE=M(11,uE),fE=M(12,uE),pE=E(26,sE),mE=O(16,e=>pE(e,e.o,e.p)),hE=M(14,mE),gE=M(15,mE),_E=v(8,`<button type=button>Clear</button>`,` `,$T),vE=(e,t)=>y(e.g,t),yE=O(29,e=>vE(e,`${e.a2>0?`${nn(e.s)} of `:``}${nn(e.r)} ${e.r===1?`file`:`files`}`),2),bE=M(28,e=>{_E(e,e.a2>0?0:1),yE(e)}),xE=O(19,e=>bE(e,e.r-e.s)),SE=M(17,e=>{xE(e),yE(e),rE(e)}),CE=M(18,e=>{xE(e),yE(e)});function wE(e){j(e.a,`_m2`),ie(e,1,TE),IT(e.b),jT(e.b,NE(e)),j(e.e,`_m6`),j(e.f,`_m7`),D(e,ME(e))}var TE=A(`y2`,M(31)),EE=(e,t)=>LT(e.b,t),DE=v(3,`<label><span>Hide viewed</span><span><!> of <!> viewed</span><button type=button role=switch></button></label>`,` D b D%c%l `,aE),OE=M(21,e=>{DE(e,+(e.v==null)),oE(e)}),kE=v(7,(e=>`<!>${e}<!>`)(HT),(e=>`b/${e}&b`)(`b%c`),tE),AE=M(22,e=>{kE(e,+(e.w==null)),eE(e)}),jE=M(23,nE),ME=e=>()=>cE(e)(),NE=e=>t=>{lE(e,t)};b.y1=ME,b.y0=NE;var PE=((e,t)=>`<button type=button aria-haspopup=dialog>${e}<!></button><div popover=auto role=dialog aria-label="Filter files">${t}</div>`)(_T,XT),FE=((e,t)=>` D/${e}&%l D0${t}&l`)(vT,ZT),IE=x(2,0,e=>y(e.b,e._.a0>99?`99+`:nn(e._.a0))),LE=e=>{IE._(e),j(e.a,`_lv`)},RE=te(30),zE=O(24,e=>j(e.a,[h,`_lt`,{_lu:!!e.u?.trim()||!!e.w}])),BE=E(20,e=>{dE(e.e,e.u),zE(e)}),VE=O(10,e=>BE(e,e.i,e.j)),HE=M(8,VE),UE=M(9,VE),WE=E(22,e=>{hE(e.e,e.w),zE(e)}),GE=O(13,e=>WE(e,e.l,e.m)),KE=M(11,GE),qE=M(12,GE),JE=(e,t)=>{N(e.a,`aria-controls`,t),N(e.d,`id`,t)},YE=C(29),XE=k(`x4`,e=>{g(e.a,`pointerdown`,function(){YE(e,e.d.matches(`:popover-open`))}),g(e.a,`click`,function(){let t=e.d,n=e.a3||t.matches(`:popover-open`);if(YE(e,!1),n){t.hidePopover();return}if(e.h.sheet&&Ne()){e.h.sheet();return}e.h.onOpen?.(),t.showPopover(),pt(t,e.a.getBoundingClientRect()),RE(e)()})});function ZE(e){yT(e.b),bT(e.b,14),xT(e.b),j(e.d,r),ie(e,4,cD),wE(e.e),fE(e.e,fD(e)),gE(e.e,dD(e)),EE(e.e,uD(e)),JE(e,T(e)),YE(e,!1),XE(e)}var QE=v(2,`<span aria-hidden=true> </span>`,` D `,LE),$E=(e,t)=>{N(e.a,`title`,`Filter files\n${t}`),N(e.a,`aria-label`,`Filter files: ${t}`)},eD=O(27,e=>$E(e,`${e.a0>0?`${nn(e.p)} of `:``}${nn(e.o)} ${e.o===1?`file`:`files`}`+(e.r==null?``:` · +${nn(e.r)} −${nn(e.s??0)}`)+(e.t==null?``:`\n${nn(e.t)} of ${nn(e.o)} viewed`)),5),tD=M(26,e=>{QE(e,e.a0>0?0:1),eD(e),IE(e)}),nD=O(16,e=>tD(e,e.o-e.p)),rD=M(14,e=>{SE(e.e,e.o),nD(e),eD(e)}),iD=M(15,e=>{CE(e.e,e.p),nD(e),eD(e)}),aD=M(17,e=>{AE(e.e,e.r),eD(e)}),oD=M(18,e=>{jE(e.e,e.s),eD(e)}),sD=M(19,e=>{OE(e.e,e.t),eD(e)}),cD=A(`x3`,M(30)),lD=M(7,e=>{HE(e,e.h.filter),UE(e,e.h.filterChange),KE(e,e.h.hideViewed),qE(e,e.h.hideViewedChange),rD(e,e.h.total),iD(e,e.h.shown),aD(e,e.h.additions),oD(e,e.h.deletions),sD(e,e.h.viewed)}),uD=e=>function(){e.d.hidePopover(),e.a.focus()},dD=e=>t=>{WE(e,t)},fD=e=>t=>{BE(e,t)};b.x2=uD,b.x1=dD,b.x0=fD;var pD=`<!><!><!>`,mD=x(0,0,e=>{N(e.a,`aria-label`,$w(e._.d)),N(e.a,`title`,$w(e._.d))}),hD=v(0,(e=>`<span role=img>${e}</span>`)(_t),(e=>` D/${e}&l`)(Et),e=>{mD._(e),j(e.a,`_nD`),ut(e.b),dt(e.b,12),yt(e.b)}),gD=M(3,e=>{hD(e,+!e.d),mD(e)}),_D=(e=>` D%b%b%b/${e}&l`)(`b%c`),vD=(e=>`<button type=button><!><!><!>${e}</button>`)(pD),yD=(e=>` D%b D l%b/${e}&l`)(`b%c`),bD=(e=>`<button type=button><!><span> </span><!>${e}</button>`)(pD),xD=`<div><!><div role=group aria-label=Sections><button type=button data-pick>All</button><!></div><!><div popover=auto role=dialog title></div></div>`,SD=` D%b D b%l%b l`,CD=200,wD=250;function TD(e,t){return t&&e.startsWith(`${t}.`)?e.slice(t.length+1):e}function ED(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 DD(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 OD=I(84,e=>j(e.a,[i[Nt(e._._.n)],`_mV`]),e=>e._._,`T19`),kD=e=>{OD(e),AD(e)},AD=I(85,e=>y(e.b,e._._.o),e=>e._._,`T20`),jD=I(78,e=>y(e.a,e._._.i),e=>e._._,`T23`),MD=jD,ND=e=>{j(e.a,[`_mA`,`_mB`]),y(e.b,e._._.M)},PD=x(1,0,e=>y(e.b,e._.r)),FD=e=>{PD._(e),j(e.a,`_mR`)},ID=x(4,0,e=>j(e.a,[i[Nt(e._.n)],`_mV`])),LD=e=>{ID._(e),RD._(e)},RD=x(4,0,e=>y(e.b,e._.o)),zD=I(72,e=>y(e.b,e._._.a2),e=>e._._,`T10`),BD=e=>{zD(e),j(e.a,`_mO`)},VD=x(3,0,e=>j(e.a,[i[Nt(e._.s)],`_mV`])),HD=e=>{VD._(e),UD._(e)},UD=x(3,0,e=>y(e.b,e._.t)),WD=x(2,1,e=>y(e.b,e._.w)),GD=e=>{WD._(e),j(e.a,`_mU`)},KD=x(2,0,e=>y(e.b,e._.o)),qD=e=>{KD._(e),YD._(e)},JD=v(0,`<span><!>/</span>`,` D%`,BD),YD=x(2,0,e=>JD(e,+!e._.a2)),XD=x(1,0,e=>y(e.b,e._.m)),ZD=e=>{XD._(e),j(e.a,`_mB`)},QD=O(1,e=>Fj(e.a,e._.o===e._._._.k)),$D=I(74,QD,e=>e._._._,`T32`),eO=e=>{$D(e),tO._(e),xj._(e.a,e._._._._),wj(e.a,!0),Hj(e.a)},tO=x(0,2,e=>{Bj(e.a,e._.o),QD(e)}),nO=O(3,e=>dj(e.a,e._._._.a1(e.c,e._._._.ah)),2),rO=I(56,nO,e=>e._._._),iO=e=>{rO(e),aO(e),ij._(e.a,e._._._),sj(e.a)},aO=I(62,nO,e=>e._._._,`T47`),oO=M(2,e=>{hj(e.a,e.c),nO(e)}),sO=(e,t)=>uj(e.a,t+1),cO=(e,t)=>{oO(e,t[0]),sO(e,t[1])},lO=O(4,e=>y(e.c,e._._.a2(e._._.af,e._._.ah)??e._._.ai),3),uO=I(57,lO,e=>e._._),dO=e=>{uO(e),fO(e),pO(e),mO(e),gO(e),j(e.a,`_mL`),j(e.b,`_mM`)},fO=I(61,lO,e=>e._._,`T48`),pO=I(62,lO,e=>e._._,`T49`),mO=I(63,lO,e=>e._._,`T50`),hO=_(3,(e=>`<!>${e}<!>`)(bD),(e=>`b/${e}&b`)(yD),iO,cO),gO=I(66,e=>hO(e,[e._._.aq,`id`]),e=>e._._,`T51`),_O=O(1,e=>dj(e.a,TD(e._._._._.a1(e._.f,e._._._._.ah),e._._._._.ae)),3),vO=I(56,_O,e=>e._._._._),yO=e=>{vO(e),bO(e),xO(e),SO._(e),ij._(e.a,e._._._._),uj(e.a),sj(e.a)},bO=I(60,_O,e=>e._._._._,`T42`),xO=I(62,_O,e=>e._._._._,`T43`),SO=x(0,1,e=>{hj(e.a,e._.f),_O(e)}),CO=O(3,e=>dj(e.a,TD(e._._._._._.a1(e.c,e._._._._._.ah),e._._._._._.ae)),3),wO=I(56,CO,e=>e._._._._._),TO=e=>{wO(e),EO(e),DO(e),ij._(e.a,e._._._._._),sj(e.a,!0)},EO=I(60,CO,e=>e._._._._._,`T37`),DO=I(62,CO,e=>e._._._._._,`T38`),OO=M(2,e=>{hj(e.a,e.c),CO(e)}),kO=(e,t)=>uj(e.a,t+1),AO=(e,t)=>{OO(e,t[0]),kO(e,t[1])},jO=O(4,e=>y(e.c,TD(e._._._._.a2(e._.c,e._._._._.ah)??e._._._._.ai,e._._._._.ae)),4),MO=I(57,jO,e=>e._._._._),NO=e=>{MO(e),PO(e),FO(e),IO(e),LO._(e),zO._(e),j(e.a,`_mN`),ht(e.b),Tt(e.b,12),lt(e.b)},PO=I(60,jO,e=>e._._._._,`T39`),FO=I(62,jO,e=>e._._._._,`T40`),IO=I(63,jO,e=>e._._._._,`T41`),LO=x(0,0,jO),RO=_(3,(e=>`<!>${e}<!>`)(bD),(e=>`b/${e}&b`)(yD),TO,AO),zO=x(0,0,e=>RO(e,[e._.e,`id`])),BO=v(0,(e=>`<span>${e} </span><!><!>`)(gt),(e=>` D/${e}& l%c`)(vt),NO,(e=>`<!>${e}<!>`)(bD),(e=>`b/${e}&b`)(yD),yO),VO=(e,t)=>BO(e,+!t),HO=(e,t)=>UO(e,t[0]),UO=M(2,e=>{VO(e,e.c?.stack),WO(e,e.c?.sections),LO(e)}),WO=M(4,e=>{GO(e,e.e?.[0]),zO(e)}),GO=M(5,SO),KO=I(60,e=>y(e.c,e._._.ae),e=>e._._,`T44`),qO=e=>{KO(e),JO(e),XO(e),j(e.a,`_mL`),j(e.b,`_mM`)},JO=I(64,e=>{y(e.d,e._._.ao),y(e.e,e._._.ao===1?`branch`:`branches`)},e=>e._._,`T45`),YO=_(5,`<!><!><!>`,`b%`,0,HO),XO=I(65,e=>YO(e,[e._._.ap,`root`]),e=>e._._,`T46`),ZO=v(0,`<span><span> </span><!> <!></span><!><!>`,` D D l%c%l%`,qO,`<span><span> </span> merges top to bottom</span><!><!>`,` D D m%`,dO),QO=x(6,0,e=>ZO(e,e._.ad===`group`?0:1)),$O=QO,ek=O(6,e=>y(e.d,TD(e._._._._._.a1(e._.h,e._._._._.k),e._._.i)),3),tk=I(56,ek,e=>e._._._._._),nk=e=>{tk(e),rk(e),ak(e),ok._(e),ck._(e),lk._(e),j(e.a,`_mO`)},rk=I(74,ek,e=>e._._._._,`T21`),ik=O(5,e=>y(e.c,e._.r?`${TD(e._.r,e._._.i)}/`:``)),ak=I(78,e=>{y(e.b,e._._.i),ik(e),ek(e)},e=>e._._,`T22`),ok=x(1,0,ek),sk=v(4,`<span>#<!></span>`,` Db%`,kD),ck=x(1,0,e=>sk(e,+!e._.n)),lk=x(1,0,ik),uk=k(`T36`,e=>g(e.a,`click`,function(){e._.x(1)})),dk=e=>{j(e.a,[`_ms`,`_mu`]),Be(e.b),Ve(e.b,12),Ye(e.b),uk(e)},fk=k(`T17`,e=>g(e.a,`click`,function(){e._.x(-1)})),pk=e=>{j(e.a,[`_ms`,`_mt`]),Be(e.b),Ve(e.b,12),Ye(e.b,`_mv`),fk(e)},mk=O(14,e=>j(e.a,[`_mD`,{_mE:e.n===e._._._._.k}])),hk=I(53,mk,e=>e._._._._,`T29`),gk=k(`T28`,e=>{g(e.c,`mouseenter`,function(t,n){e._._._._.aj(e._.M,n.closest(`[data-stack]`)??n)}),g(e.c,`mouseleave`,function(){e._._._._.ak()}),g(e.c,`pointerdown`,function(){e._._._._.al()}),g(e.c,`click`,function(t,n){e._._._._.am(e._.M,n.closest(`[data-stack]`)??n)}),g(e.c,`keydown`,function(t,n){t.key===`ArrowDown`&&(t.preventDefault(),vM(e._._._._,null),e._._._._.am(e._.M,n.closest(`[data-stack]`)??n))})}),_k=e=>{hk(e),Sk(e),Ek(e),Dk(e),kk._(e),Ak._(e),xj._(e.b,e._._._._),wj(e.b,!0),N(e.c,`data-pop`,e._.M),ht(e.d),Tt(e.d,12),lt(e.d),gk(e)},vk=O(12,e=>Fj(e.b,e.l===e._._._.k)),yk=O(18,e=>Hj(e.b,e.l===e.j.at(-1)?void 0:e.p),2),bk=M(11,e=>{Bj(e.b,e.l),Pk(e,e.l?.id),vk(e),yk(e)}),xk=O(6,e=>bk(e,e._._._._.a0(e.f))),Sk=I(55,xk,e=>e._._._._,`T30`),Ck=O(16,e=>{N(e.c,`title`,`${e.p??e._._._.M} stack of ${e.k}: every layer, in the order they merge`),N(e.c,`aria-label`,`${e.p??e._._._.M} stack: ${e.k} layers`)}),wk=M(15,e=>{yk(e),Ck(e)}),Tk=O(7,e=>wk(e,e._._._._.a2(e.f,e._._._.k)),2),Ek=I(57,Tk,e=>e._._._._),Dk=I(74,e=>{Tk(e),vk(e)},e=>e._._._,`T31`),Ok=M(5,e=>{jk(e,e.f?.root),Mk(e,e.f?.sections),xk(e),Tk(e)}),kk=x(0,1,e=>Ok(e,e._.k)),Ak=x(0,1,e=>{j(e.c,[`_mF`,{_mG:e._.p}]),N(e.c,`aria-expanded`,e._.p?`true`:`false`)}),jk=(e,t)=>N(e.a,`data-stack`,t),Mk=M(9,e=>{Nk(e,e.j?.length),yk(e)}),Nk=M(10,e=>{y(e.e,e.k),Ck(e)}),Pk=M(13,mk),Fk=O(9,e=>j(e.a,[`_mx`,`_mC`,`_mH`,{_mT:!!e.h?.repo.unpushed,_mw:!!e.h&&e.h?.id===e._._._._.k,_mI:e._.p}]),2),Ik=I(53,Fk,e=>e._._._._,`T25`),Lk=k(`T24`,e=>{g(e.a,`mouseenter`,function(t,n){e._._._._.aj(e._.M,n)}),g(e.a,`mouseleave`,function(){e._._._._.ak()}),g(e.a,`pointerdown`,function(){e._._._._.al()}),g(e.a,`click`,function(t,n){e._._._._.am(e._.M,n)}),g(e.a,`keydown`,function(t,n){t.key===`ArrowDown`&&(t.preventDefault(),vM(e._._._._,null),e._._._._.am(e._.M,n))})}),Rk=e=>{Ik(e),qk(e),Jk(e),Yk(e),Xk._(e),Zk._(e),$k._(e),eA._(e),tA._(e),N(e.a,`data-pop`,e._.M),j(e.c,`_mJ`),kt(e.d),Dt(e.d,12),At(e.d),Lk(e)},zk=v(1,`<span><span><!>.<!></span> </span><!><!>`,`D D%c%l l%`,nk,`<span> </span>`,`D `,MD),Bk=M(17,lk),Vk=O(16,e=>Bk(e,e.p?.stack&&e.h!==(e.p?.sections).at(-1)?e._._._._.a2(e.p,e._._._.k):void 0),3),Hk=M(15,Vk),Uk=O(8,e=>Hk(e,e.h&&e._.h.find(t=>t.sections.includes(e.h)))),Wk=O(10,e=>N(e.a,`title`,`${e._.i}: ${e._.j} ${e._.j===1?`branch`:`branches`}${e.h?`\n${eT(e.h?.repo)??``}`:``}`),2),Gk=M(7,e=>{rA(e,e.h?.repo?.pr),aA(e,e.h?.id),zk(e,+!e.h),Uk(e),Vk(e),Fk(e),Wk(e),ok(e)}),Kk=O(5,e=>Gk(e,e._._._._.z(e._.g))),qk=I(54,Kk,e=>e._._._._,`T26`),Jk=I(57,Vk,e=>e._._._._),Yk=I(74,Vk,e=>e._._._,`T27`),Xk=x(0,0,Kk),Zk=x(0,0,Uk),Qk=O(6,e=>N(e.a,`aria-label`,`${e._.i} group: ${e._.j} branches`)),$k=x(0,0,e=>{Wk(e),Qk(e)}),eA=x(0,0,e=>{y(e.e,e._.j),Wk(e),Qk(e)}),tA=x(0,0,e=>{N(e.a,`aria-expanded`,e._.p?`true`:`false`),Fk(e)}),nA=F(OD),rA=M(13,e=>{iA(e,e.n?.number),ck(e),nA(e)}),iA=M(14,F(AD)),aA=(e,t)=>N(e.a,`data-pick`,t),oA=M(15,e=>{tA(e),Ak(e)}),sA=I(58,e=>oA(e,e._._._.a5===e.M),e=>e._._._,`T33`),cA=sA,lA=v(0,(e=>`<button type=button aria-haspopup=dialog><!><span>${e} </span></button>`)(Ct),(e=>` D%b D/${e}& m`)(xt),Rk,((e,t)=>`<span>${e}<button type=button aria-haspopup=dialog>${t} </button></span>`)(vD,gt),((e,t)=>` D/${e}& D/${t}& m`)(_D,vt),_k,(e=>`<!>${e}<!>`)(vD),(e=>`b/${e}&b`)(_D),eO),uA=O(12,e=>lA(e,e.f===`group`?0:e.l?1:2)),dA=M(5,uA),fA=M(11,uA),pA=(e,t)=>{dA(e,t[0]?.kind),mA(e,t[0]?.sections),gA(e,t[0]?.runs),vA(e,t[0]?.name),yA(e,t[0]?.run)},mA=M(6,e=>{hA(e,e.g?.length),Xk(e)}),hA=M(9,eA),gA=M(7,Zk),_A=F(ak,jD),vA=M(8,e=>{$k(e),_A(e)}),yA=M(10,e=>{fA(e,e.k?.stack),bA(e,e.k?.sections?.[0]),kk(e)}),bA=M(14,tO),xA=O(3,e=>j(e.a,[`_my`,{_mz:e._.d.some(t=>t.id===e._._.k)}])),SA=I(53,xA,e=>e._._,`T34`),CA=e=>{SA(e),OA(e),kA._(e),AA._(e),MA._(e),PA._(e),FA._(e)},wA=v(1,`<span> </span>`,` D `,ND),TA=O(10,e=>wA(e,!e._.k||e.j!==e._.k?0:1)),EA=M(9,TA),DA=O(8,e=>EA(e,e.g===`run`?e.h.stack?e._._.a0(e.h):e.h.sections[0]:void 0),2),OA=I(55,DA,e=>e._._,`T35`),kA=x(0,1,xA),AA=x(0,1,e=>N(e.a,`aria-label`,`${e._.M}: ${e._.e} sections`)),jA=_(2,`<!><!><!>`,`b%`,cA,pA),MA=x(0,1,e=>jA(e,[e._.i,`key`])),NA=(e,t)=>{IA(e,t?.kind),LA(e,t?.run)},PA=x(0,1,e=>NA(e,e._.j)),FA=x(0,1,TA),IA=M(6,DA),LA=M(7,DA),RA=O(2,e=>j(e.a,[`_my`,{_mz:e._.g===e._._.k}])),zA=I(53,RA,e=>e._._,`T18`),BA=e=>{zA(e),VA._(e),HA._(e),xj._(e.b,e._._),Fj(e.b,!0),wj(e.b,!0),Hj(e.b)},VA=x(0,0,e=>Bj(e.b,e._.f)),HA=x(0,0,RA),UA=v(0,(e=>`<span>${e}</span>`)(vD),(e=>` D/${e}&l`)(_D),BA,`<span role=group><!><!></span>`,` D%b%`,CA),WA=M(4,e=>{UA(e,e.e===1?0:1),AA(e)}),GA=(e,t)=>{KA(e,t[0]?.sections),YA(e,t[0]?.items),QA(e,t[0]?.main)},KA=M(3,e=>{WA(e,e.d?.length),qA(e,e.d?.[0]),kA(e)}),qA=M(5,e=>{JA(e,e.f?.id),VA(e)}),JA=M(6,HA),YA=M(8,e=>{XA(e,e.i?.[0]),MA(e)}),XA=M(9,PA),ZA=F(Yk,Dk,rk,$D),QA=M(10,e=>{FA(e),ZA(e)}),$A=O(20,e=>j(e.a,[`_mP`,{_mQ:e.s,_mT:!!e.m,_mw:e.t}]),2),ej=M(19,e=>{N(e.a,`aria-current`,e.t?`true`:void 0),$A(e)}),tj=O(10,e=>ej(e,e._.k===e.j)),nj=I(53,tj,0,`T16`),rj=k(`T15`,e=>g(e.a,`click`,function(){e._.l(e.j),e._.g.hidePopover()})),ij=ee(e=>{nj(e),j(e.c,`_mS`),rj(e)}),aj=M(9,tj),oj=M(12,$A),sj=M(18,$A),cj=(e,t)=>{N(e.a,`title`,[eT(t),t?.pr?.title].filter(Boolean).join(`
325
- `)),oj(e,t?.unpushed),pj(e,t?.pr),mj(e,t?.edits)},lj=v(1,`<span> </span>`,` D `,FD),uj=M(17,e=>{lj(e,+!e.r),PD(e)}),dj=(e,t)=>y(e.d,t),fj=v(4,`<span>#<!></span>`,` Db%`,LD),pj=M(13,e=>{gj(e,e.n?.number),fj(e,+!e.n),ID(e)}),mj=(e,t)=>gD(e.f,t),hj=(e,t)=>{aj(e,t?.id),cj(e,t?.repo)},gj=M(14,RD),_j=O(27,e=>j(e.a,[`_mx`,{_mT:!!e.j,_mC:e.a0,_mw:e._.k===e.k}]),3),vj=O(11,e=>N(e.a,`aria-pressed`,e._.k===e.k?`true`:`false`)),yj=I(53,e=>{_j(e),vj(e)},0,`T13`),bj=k(`T12`,e=>g(e.a,`click`,function(){e._.l(e.k)})),xj=ee(e=>{yj(e),bj(e)}),Sj=M(9,_j),Cj=M(10,e=>{N(e.a,`data-pick`,e.k),_j(e),vj(e)}),wj=M(26,_j),Tj=O(21,e=>N(e.a,`title`,[`${e.i.worktree}${e.o?` · ${e.o}`:``}${e.p?`: ${nn(e.p.length)} ${e.p.length===1?`file`:`files`}, +${nn(e.q??0)} −${nn(e.r??0)}`:``}`,e.i.pr&&`#${e.i.pr.number} ${e.i.pr.title}`,eT(e.i),e.u].filter(Boolean).join(`
326
- `)),5),Ej=M(8,e=>{Sj(e,e.i?.unpushed),Uj(e,e.i?.worktree),Rj(e,e.i?.pr),zj(e,e.i?.edits),Tj(e)}),Dj=v(2,`<span><!><!></span>`,`D%b%`,qD,`<span> </span>`,` D `,GD),Oj=O(23,e=>Dj(e,e.o?0:e.w?1:2)),kj=M(14,e=>{Tj(e),Oj(e),KD(e)}),Aj=M(15,Tj),jj=M(16,Tj),Mj=M(17,Tj),Nj=M(20,Tj),Pj=v(1,`<span> </span>`,` D `,ZD),Fj=(e,t)=>Pj(e,+!t),Ij=M(22,e=>{Oj(e),WD(e)}),Lj=v(3,`<span>#<!></span>`,` Db%`,HD),Rj=M(18,e=>{Wj(e,e.s?.number),Lj(e,+!e.s),VD(e)}),zj=(e,t)=>gD(e.e,t),Bj=(e,t)=>{Ej(e,t?.repo),Cj(e,t?.id),Gj(e,t?.compare),Aj(e,t?.files),jj(e,t?.additions),Mj(e,t?.deletions)},Vj=F(zD),Hj=M(28,e=>{YD(e),Vj(e)}),Uj=M(12,XD),Wj=M(19,UD),Gj=(e,t)=>{kj(e,t?.topic),Nj(e,t?.title),Ij(e,t?.head)},Kj=C(15,e=>{N(e.c,`title`,Je(`prevSection`,e.p)||Je(`nextSection`,e.p)?`Sections (${[Je(`prevSection`,e.p),Je(`nextSection`,e.p)].filter(Boolean).join(` / `)})`:`Sections`)}),qj=v(1,(e=>`<button type=button tabindex=-1 aria-hidden=true title="More sections">${e}</button>`)(qe),(e=>` D/${e}&l`)(nt),pk),Jj=O(20,e=>j(e.c,[`_mp`,{_mq:e.s,_mr:e.t}])),Yj=C(18,e=>{qj(e,+!e.s),Jj(e)}),Xj=v(5,(e=>`<button type=button tabindex=-1 aria-hidden=true title="More sections">${e}</button>`)(qe),(e=>` D/${e}&l`)(nt),dk),Zj=C(19,e=>{Xj(e,+!e.t),Jj(e)}),Qj=k(`T52`,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;a<r.scrollLeft?r.scrollTo({left:a-8,behavior:`smooth`}):o>r.scrollLeft+r.clientWidth&&r.scrollTo({left:o-r.clientWidth+8,behavior:`smooth`})});re(e,2).addEventListener(`abort`,()=>cancelAnimationFrame(r))}}),$j=O(22,e=>{ae(e,2),Qj(e)},2),eM=k(`T53`,e=>ce(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()}})),tM=M(21,e=>{$j(e),eM(e)}),nM=M(23),rM=M(27),iM=O(36,e=>N(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)),aM=M(28,iM),oM=M(47),sM=v(6,`<!><!><!>`,`b%`,$O),cM=k(`T54`,e=>{{let t=e.g;if(e.a3&&e.a9){let n=!t.matches(`:popover-open`);n&&t.showPopover(),pt(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()}}),lM=O(37,cM),uM=M(35,e=>{MM(e,e.a9?.item?.kind),NM(e,e.a9?.item?.name),FM(e,e.a9?.item?.run),LM(e,e.a9?.item?.sections?.length),RM(e,e.a9?.item?.runs),zM(e,e.a9?.g?.main),BM(e,e.a9?.g?.worktree),sM(e,+!e.a9),lM(e),iM(e)}),dM=O(30,e=>uM(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}}})())),fM=M(45),pM=e=>{fM(e,XM(e))},mM=C(29,e=>{kM(e,e.a3?.key),jM(e,e.a3?.via),oM(e,YM(e)),dM(e),pM(e),lM(e)}),hM=k(`T55`,e=>{{let t=e.a7;if(t){let n=setTimeout(()=>{gM(e,null),mM(e,t.pop)},t.pop?CD:wD);re(e,1).addEventListener(`abort`,()=>clearTimeout(n))}}}),gM=C(33,e=>{ae(e,1),hM(e)}),_M=M(48),vM=C(34,e=>_M(e,ZM(e))),yM=k(`T56`,e=>{Kj(e,He()),We(()=>{Kj(e,He())},re(e,0)),g(e.c,`scroll`,function(){e.v()}),g(e.d,`click`,function(){e.l(null)}),g(e.g,`mouseenter`,function(){e.a7&&!e.a7?.pop&&gM(e,null)}),g(e.g,`mouseleave`,function(){e.ak()}),g(e.g,`toggle`,function(t){t.newState===`closed`&&(document.activeElement===document.body&&e.a3&&document.querySelector(`[data-pop="${CSS.escape(e.a3?.key)}"]`)?.focus(),gM(e,null),mM(e,null))}),g(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 bM(e){ae(e,0),j(e.g,[`_bw`,`_mK`]),Kj(e,0),Yj(e,!1),Zj(e,!1),tM(e,GM(e)),nM(e,KM(e)),rM(e,qM),aM(e,JM),mM(e,null),gM(e,null),vM(e,null),yM(e)}var xM=_(4,`<!><!><!>`,`b%`,0,GA),SM=M(24,e=>{xM(e,[e.y,`worktree`]),dM(e)}),CM=(e,t)=>{UM(e,t?.length),SM(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=DD(ED(t.sections),t.main);return e})())},wM=M(26,F(OA,Sk)),TM=F(qk),EM=M(25,e=>{wM(e,QM(e)),TM(e)}),DM=F(yj,nj,zA,SA,Ik,hk),OM=M(10,e=>{j(e.d,[`_mx`,{_mw:!e.k}]),N(e.d,`aria-pressed`,e.k?`false`:`true`),EM(e,$M(e)),$j(e),DM(e)}),kM=M(31,F(sA)),AM=M(46),jM=M(32,e=>AM(e,eN(e))),MM=M(39,QO),NM=M(40,F(KO,PO,EO,bO)),PM=F(fO),FM=M(41,e=>{IM(e,e.af?.sections),PM(e)}),IM=M(52,F(gO)),LM=M(50,F(JO)),RM=M(51,F(XO)),zM=M(43,F(FO,DO,xO,pO,aO)),BM=M(44,F(IO,mO)),VM=(e,t)=>j(e.a,[`_mo`,t]),HM=(e,t)=>N(e.d,`title`,t==null?`Every section`:`Every section: ${nn(t)} ${t===1?`file`:`files`}`),UM=M(14,$j),WM=M(11),GM=e=>()=>{let t=e.c;Yj(e,t.scrollLeft>1),Zj(e,t.scrollLeft+t.clientWidth<t.scrollWidth-1)},KM=e=>t=>{let n=e.c;n.scrollBy({left:t*n.clientWidth*.8,behavior:`smooth`})};function qM(e,t){return e===t?e.repo.worktree:e.compare?.topic||e.compare?.head||e.repo.worktree}function JM(e,t){let n=e.sections.at(-1);return n===t?void 0:n.compare?.topic||n.compare?.head}var YM=e=>()=>{vM(e,e.a3&&e.g.matches(`:popover-open`)?{key:e.a3?.key,via:e.a3?.via}:null)},XM=e=>(t,n)=>{e.a6!==`click`&&gM(e,e.a5===t?null:{pop:{key:t,chip:n,via:`hover`}})},ZM=e=>(t,n)=>{let r=e.a8;if(vM(e,null),gM(e,null),r?.key===t&&r.via===`click`){e.g.hidePopover();return}mM(e,{key:t,chip:n,via:`click`})},QM=e=>t=>e.z(t.sections)??t.sections.find(e=>e.repo.nextToLand)??t.sections[0],$M=e=>t=>t.find(t=>t.id===e.k),eN=e=>()=>{gM(e,e.a6===`hover`?{pop:null}:null)};b.T0=GM,b.T1=KM,b.T4=qM,b.T5=JM,b.T8=YM,b.T6=XM,b.T9=ZM,b.T3=QM,b.T2=$M,b.T7=eN;var tN=xe,nN=(e=>`/${e}&`)(pe);function rN(e){de(e.a,ye)}var iN=(e,t)=>Pe(e.a,t),aN=(e,t)=>be(e.a,t),oN=xe,sN=(e=>`/${e}&`)(pe);function cN(e){de(e.a,Se)}var lN=(e,t)=>Pe(e.a,t),uN=(e,t)=>be(e.a,t),dN=((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,mn),fN=((e,t,n)=>` D D D D/${e}& D m%l l D/${t}&m D%b D D/${n}&l m`)(sN,sN,pn),pN=e=>{dn(e.a),ln(e.a,12),fn(e.a)},mN=x(7,3,e=>y(e.b,bt(e._.a4))),hN=e=>{mN._(e),j(e.a,[`_md`,`_S`]),j(e.c,`_R`)},gN=x(7,0,e=>y(e.a,e._.a0?`Copied`:`Copy failed`)),_N=gN,vN=v(1,cn,(e=>`/${e}&`)(sn),pN),yN=I(41,e=>{N(e.a,`aria-checked`,e.M===e._._.a7?`true`:`false`),vN(e,e.M===e._._.a7?0:1)},e=>e._._,`r3`),bN=k(`r2`,e=>g(e.a,`click`,function(){FN(e._._,e.M),e._._.l.hidePopover()})),xN=t=>{yN(t),j(t.a,e),j(t.b,`_mi`),Ge(t.c,14),tt(t.c),j(t.d,`_mj`),bN(t)},SN=(e,t)=>ze(e.c,t),CN=(e,t)=>{y(e.e,bt(t)),SN(e,t?.agent)},wN=_(1,(e=>`<button type=button role=menuitemradio><span></span>${e}<span> </span></button>`)(Ke),(e=>` D b/${e}& D m`)(`b%c`),xN,(e,t)=>CN(e,t[0])),TN=x(12,0,e=>wN(e,[e._.a1,`id`])),EN=e=>{TN._(e),j(e.a,`_mg`),j(e.c,`_mk`)},DN=M(36),ON=O(31,e=>DN(e,ZN(e)),2),kN=v(7,` `,` `,_N,`Sending…`,0,0,`Copy`,0,0,`<span>Send to <!></span><span>Send</span>`,` Db%l `,hN,`Send`),AN=O(32,e=>kN(e,e.z?0:e.x?1:e.a4?e.a3>1?3:4:2),3),jN=C(23,e=>{N(e.c,`disabled`,e.x),N(e.i,`disabled`,e.x),ON(e),AN(e)}),MN=O(35,e=>N(e.c,`title`,e.u?e.a4?`Send ${e.a8} to ${bt(e.a4)}`:`Copy ${e.a8} as markdown`:`No comments to send`),2),NN=M(30,e=>{GN(e,e.a4?.id),ON(e),MN(e),AN(e),mN(e)}),PN=O(28,e=>NN(e,e.a1.find(t=>t.id===e.y)??e.a1[0]??null)),FN=C(24,PN),IN=k(`r5`,e=>{if(e.z){let t=setTimeout(()=>{LN(e,null)},1500);re(e,0).onabort=()=>clearTimeout(t)}}),LN=C(25,e=>{ae(e,0),BN(e,e.z?.ok),AN(e),IN(e)}),RN=k(`r4`,e=>{g(e.c,`click`,function(){e.a4?e.aa():e.ab()}),g(e.i,`click`,function(){let t=e.l;t.showPopover(),pt(t,e.b.getBoundingClientRect(),{align:`end`})}),g(e.n,`click`,function(){e.l.hidePopover(),e.ab()})});function zN(t){j(t.c,`_ma`),j(t.d,[`_w`,`_mb`]),cN(t.e),lN(t.e,18),uN(t.e,`_x`),j(t.f,[d,`_mc`]),j(t.i,`_me`),cN(t.k),lN(t.k,16),uN(t.k),j(t.l,c),j(t.n,e),j(t.o,`_mi`),gn(t.p),hn(t.p,14),_n(t.p),j(t.q,`_mj`),jN(t,!1),FN(t,null),LN(t,null),RN(t)}var BN=M(26,gN),VN=M(27,e=>{UN(e,e.a1.length),PN(e),TN(e)}),HN=v(12,`<span>Send to</span><!><span role=separator></span>`,` b%b `,EN),UN=M(29,e=>{HN(e,+!e.a3),AN(e)}),WN=(e,t)=>VN(e,t||[]),GN=M(33,F(yN)),KN=M(34,e=>{N(e.b,`aria-label`,e.a8),MN(e)}),qN=M(20,e=>{j(e.a,[`_l7`,!e.u&&`_l9`]),j(e.b,[`_l6`,!e.u&&`_l8`]),N(e.b,`inert`,!e.u),y(e.g,e.u>99?`99+`:e.u),j(e.j,[`_l_`,!!e.u&&`_l8`]),KN(e,Yt(e.u,`comment`)),MN(e)}),JN=M(21,ON),YN=M(37),XN=M(22,e=>YN(e,QN(e))),ZN=e=>()=>{(async()=>{if(e.a4&&!e.x){jN(e,!0);try{await e.v(e.a4?.id)}finally{jN(e,!1)}}})()},QN=e=>()=>{(async()=>{LN(e,{ok:await e.w()})})()};b.r0=ZN,b.r1=QN;var $N=`<svg data-icon-sprite aria-hidden="true" width="0" height="0">
323
+ `)}function YC(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 XC(e){if(e.length<=1)return null;let t=document.createElement(`select`);t.setAttribute(`aria-label`,`Send to session`),t.className=`_mx`;for(let n of e){let e=document.createElement(`option`);e.value=n.id,e.textContent=bt(n),t.append(e)}return t}var ZC=(e,t)=>t.find(t=>t.id===e?.value)?.id??t[0]?.id??null;function QC(e){return e.map(e=>`${e.id}\t${bt(e)}`).join(`
324
+ `)}var $C=new WeakMap;function ew(e){$C.get(e)?.()}function tw(e,t,n,r){let i={el:nw(),busy:!1,stale:!1},a=()=>{},o=()=>{if(i.busy){i.stale=!0;return}let s=e.sessions(),c;if(!s.length)c=nw(),a=()=>{};else{let l=iw(`Send`,``);l.dataset.role=`send`;let u=XC(s),d=u?`Send to`:`Send`;l.onclick=()=>{(async()=>{let t=ZC(u,e.sessions());if(t&&!l.disabled){i.busy=!0,rw([...n,l],!0,d);try{await r(t)}finally{i.busy=!1,rw([...n,l],!1,d),i.stale&&(i.stale=!1,o())}}})()},a=()=>l.click(),c=aw(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 nw(){let e=document.createElement(`span`);return e.hidden=!0,e}function rw(e,t,n){for(let r of e)r.disabled=t,n&&r.dataset.role===`send`&&(r.textContent=t?`Sending…`:n)}function iw(e,t){let n=document.createElement(`button`);return n.type=`button`,n.textContent=e,n.className=t,n}function aw(e,t,n,r){if(!t){e.className=`_r ${r?f:``} _s`,e.textContent=`Send`;let t=n[0];return t&&(e.title=`Send to ${bt(t)}`),e}let i=document.createElement(`span`);return i.className=`_mv ${r?`_md`:``}`,e.className=`_s _mw`,e.textContent=`Send to`,i.append(e,t),i}function ow(e,t,n){e.onkeydown=e=>{e.key===`Enter`&&(e.metaKey||e.ctrlKey)&&(e.preventDefault(),t()),e.key===`Escape`&&(e.preventDefault(),n())}}function sw(e,t,n){let r=document.createElement(`div`);r.className=`_l_`;let i=document.createElement(`div`),a=document.createElement(`div`);a.className=`_mc`;let o=null;$C.set(r,()=>o?.());let c=()=>{i.replaceChildren(),a.replaceChildren();let r=document.createElement(`p`);r.className=`_ma`,r.textContent=e.text;let c=iw(`Remove`,`_r ${f}`);c.onclick=()=>n.onDelete(e.id);let u=iw(`Edit`,`_r ${f}`);u.hidden=!n.onEdit,u.onclick=()=>l(),a.append(u,c);let d=n.onSend;if(d){let n=tw(t,!0,[c,u],t=>d(e.id,t));a.append(n.el),o=n.draw}if(n.drifted){let e=document.createElement(`span`);e.className=`_9 ${s.warn} _me`,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)},l=()=>{o=null,i.replaceChildren(),a.replaceChildren();let t=document.createElement(`textarea`);t.value=e.text,t.rows=3,t.className=`_bj _mb`;let r=iw(`Save`,`_r _s`),s=iw(`Cancel`,`_r`),l=()=>{let i=t.value.trim();if(!i||i===e.text){c();return}(async()=>{rw([r,s],!0);try{await n.onEdit?.(e.id,i),e.text=i,c()}catch{rw([r,s],!1)}})()};r.onclick=l,s.onclick=()=>c(),ow(t,l,c),a.append(r,s),i.append(t),setTimeout(()=>{t.focus({preventScroll:!0}),t.setSelectionRange(t.value.length,t.value.length)},0)};return c(),r.append(i,a),r}function cw(e,t){let n=document.createElement(`div`);n.className=`_l_`;let r=document.createElement(`textarea`);r.placeholder=`Add a comment…`,r.rows=3,r.className=`_bj _mb`;let i=iw(`Add`,`_r`),a=iw(`Cancel`,`_r`),o=()=>{r.value.trim()&&t.onSave(r.value)},s=t.onSend,c=s?tw(e,!1,[i,a],e=>{let t=r.value.trim();if(t)return s(t,e)}):null;c&&$C.set(n,c.draw),i.onclick=o,a.onclick=()=>t.onCancel(),ow(r,()=>{c?.send()||o()},()=>t.onCancel());let l=document.createElement(`div`);l.className=`_mc`,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 lw=e=>`/api/workspaces/${e}/review`;async function uw(e){return(await ue(lw(e))).comments||[]}function dw(e,t){return _e(lw(e),{action:`comment`,...t})}function fw(e,t,n){return _e(`${lw(e)}/${t}`,{text:n},`PATCH`)}async function pw(e,t){if(!t.some(e=>e.head))return null;try{return(await ue(`/api/workspaces/${e}/diff`)).sections}catch{return null}}async function mw(e,t){t.length&&await _e(lw(e),{action:`clear`,ids:t})}async function hw(e,t){t.length&&await _e(lw(e),{action:`view`,marks:t})}async function gw(e,t){let n=ge(t),r=await uw(e);return fe(t,n)?r:null}function _w(e,t){ge(e.seq),e.set(t)}async function vw(e,t){ge(e.seq);try{let n=await dw(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: ${he(t)}`),!1}}async function yw(e,t){let n=e.list().find(e=>e.id===t);if(n){_w(e,e.list().filter(e=>e.id!==t));try{await mw(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: ${he(r)}`)}}}async function bw(e,t,n){let r=e.list().find(e=>e.id===t),i=n.trim();if(r&&i&&i!==r.text){_w(e,e.list().map(e=>e.id===t?{...e,text:i}:e));try{await fw(e.workspaceId,t,i)}catch(n){throw e.set(e.list().map(e=>e.id===t?r:e)),e.fail(`Edit comment failed: ${he(n)}`),n}}}async function xw(e,t,n,r){if(!t.length)return!0;try{let i=NC(t,e.sections());if(`clipboard`in n){if(!await Re(i))return e.fail(`Copy failed: the browser blocked the clipboard`),!1}else await _e(`/api/sessions/${n.session}/send`,{text:i,...jt()||{}});e.handed(n);let a=new Set(r);return _w(e,e.list().filter(e=>!a.has(e.id))),r.length&&await mw(e.workspaceId,r).catch(t=>{e.fail(`${`clipboard`in n?`Copied`:`Sent`}, but the comments are still saved: ${he(t)}`),e.reload()}),!0}catch(t){return e.fail(`Send failed: ${he(t)}`),!1}}function Sw(e,t){let n=e.list();return xw(e,n,t,n.map(e=>e.id))}function Cw(e,t,n){let r=e.list().find(e=>e.id===t);return r?xw(e,[r],{session:n},[t]):Promise.resolve(!1)}function ww(e,t,n){return xw(e,[{id:-1,workspace_id:e.workspaceId,created_at:``,...t}],{session:n},[])}var Tw=`search-mark`,Ew=`mark.${Tw}`,Dw=`mark.${Tw}{display:inline;background:#ffd24a;color:#1a1408;-webkit-text-fill-color:#1a1408;border-radius:3px;padding:0 2px}mark.${Tw} *,mark.${Tw} *::before,mark.${Tw} *::after{color:inherit!important;-webkit-text-fill-color:inherit!important;background:transparent!important}mark.${Tw}.active{background:#ffb000;box-shadow:0 0 0 1px #c98400}`,Ow={query:``,hit:null,keys:null},kw=new Map,Aw=new WeakMap,jw=(e,t)=>t?`${e}\n${t.line}\n${t.side||``}`:e;function Mw(e,t,n){Ow.query=e,Ow.hit=t,Ow.keys=n?new Set(n):null;for(let[e,t]of kw)Lw(e,t,!1);t&&Nw(t)}function Nw(e,t=0){requestAnimationFrame(()=>{requestAnimationFrame(()=>{let n=!1;for(let[r,i]of kw)if(i===e.key&&(n=!0,Iw(r,e)||t>=40))return;t>=40||(!n||t<12)&&setTimeout(()=>Nw(e,t+1),n?32:48)})})}function Pw(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 Fw(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 Iw(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=>Vw(e)===r)??e[0]??null})();if(!r)return!1;let i=r.getBoundingClientRect();if(i.height===0&&i.width===0)return!1;let a=Fw(r,e);return a&&Pw(a,r),!0}function Lw(e,t,n=!0){let r=t&&Ow.hit?.key===t?Ow.hit:null,i=Ow.query.trim(),a=!!i&&!!Ow.keys&&!!t&&!Ow.keys.has(t),o=a?``:jw(i,r),s=Aw.get(e)!==o;(n||s)&&(Aw.set(e,o),qw(e,a?``:i,r),n||OC(e),r&&s&&Nw(r))}function Rw(e,t){return kw.set(e,t),Lw(e,t),()=>{kw.delete(e),Aw.delete(e)}}function zw(e){Lw(e,kw.get(e))}function Bw(e){let t=e.querySelectorAll(Ew);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 Vw(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 Hw(e){let t=document.createTreeWalker(e,NodeFilter.SHOW_TEXT),n=[];for(let e=t.nextNode();e;e=t.nextNode())e.parentElement?.closest(Ew)||n.push(e);return n}function Uw(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 Ww(e,t,n,r,i){let a=Uw(e,t,n),o=Uw(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 Gw(e,t,n,r){let i=Hw(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=Jw(e,r)?`${Tw} active`:Tw;for(let e=c.length-1;e>=0;e--)Ww(i,a,c[e][0],c[e][1],l)}var Kw=new WeakMap;function qw(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){Bw(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${+!!Jw(t,n)}`:``,a=!!t.querySelector(Ew);i!==(a?Kw.get(t):``)&&(a&&Bw(t),Kw.set(t,i),r&&Gw(t,s,o,n))}}}function Jw(e,t){return!!t&&t.line===Number(e.getAttribute(`data-line`))&&(t.side||`additions`)===Vw(e)}function Yw(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(Zw(i,e?Xw:qt))}return e=>!n.some(t=>t(e))&&t.every(t=>t(e))}function Xw(e,t){return t.toLowerCase().includes(e.toLowerCase())}function Zw(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)}}var Qw={apng:`image/apng`,avif:`image/avif`,bmp:`image/bmp`,gif:`image/gif`,ico:`image/x-icon`,jpeg:`image/jpeg`,jpg:`image/jpeg`,png:`image/png`,svg:`image/svg+xml`,webp:`image/webp`,pdf:`application/pdf`,mp4:`video/mp4`,m4v:`video/mp4`,mov:`video/quicktime`,webm:`video/webm`};function $w(e){let t=e.lastIndexOf(`.`),n=Qw[t<0?``:e.slice(t+1).toLowerCase()];return n?{kind:n===`application/pdf`?`pdf`:n.startsWith(`video/`)?`video`:`image`,type:n}:null}function eT(e){return`${e} uncommitted ${e===1?`file`:`files`} in its worktree`}function tT(e){let t=e.nextToLand?`, next to merge${e.stack?` (layer ${e.stack.index} of ${e.stack.size})`:``}`:``,n=e.edits?`; ${eT(e.edits)}`:``;if(e.pr)return`#${e.pr.number}: ${Nt(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; ${eT(e.edits)}`:null}function nT(e){return!!e.pr||!e.contained||!!e.edits}function rT(e){return new Map(e.flatMap(e=>e.layer?[[e.pr?.headRefName||e.headRef||e.branch,e.layer]]:[]))}function iT(e,t,n,r){let i=e.pr?.headRefName||e.headRef||e.branch;return{id:e.id,repo:e,group:ft(Mt(i,t))?.group,compare:mt({base:e.pr?.baseRefName||e.base,head:i,defaultBranch:e.default_branch,repoBase:e.base_branch},t,n,r)}}var aT=((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">Diff</a></nav>`)(R,Qe),oT=((e,t)=>` D l D D/${e}&l D/${t}&m D b l`)(it,rt),sT=O(18,e=>N(e.d,`title`,e.r===null?`Back`:`Back to ${e.r}${Ue(`goBack`,e.p)}`)),cT=O(20,e=>N(e.f,`title`,e.t===null?`Forward`:`Forward to ${e.t}${Ue(`goForward`,e.p)}`)),lT=C(15,e=>{sT(e),cT(e)}),uT=C(16,e=>{pT(e,e.q?.back),mT(e,e.q?.forward)}),dT=k(`S0`,e=>{lT(e,He()),We(()=>{lT(e,He())},re(e,0)),uT(e,Ot()),wt(()=>{uT(e,Ot())},re(e,0)),g(e.d,`click`,function(){ct()}),g(e.f,`click`,function(){St()})});function fT(e){ae(e,0),j(e.a,`_Q`),j(e.c,`_lT`),j(e.d,h),et(e.e),$e(e.e,14),st(e.e),j(e.f,h),z(e.g),ot(e.g,14),Ze(e.g),j(e.h,[`_bA`,`_lS`]),lT(e,0),uT(e,{back:null,forward:null}),dT(e)}var pT=M(17,e=>{N(e.d,`disabled`,e.r===null),sT(e)}),mT=M(19,e=>{N(e.f,`disabled`,e.t===null),cT(e)}),hT=(e,t)=>{y(e.b,t===`files`?`Files`:`Review`),j(e.i,[`_bC`,t===`files`&&`_bB`]),N(e.i,`aria-current`,t===`files`?`page`:void 0),j(e.j,[`_bC`,t===`changes`&&`_bB`]),N(e.j,`aria-current`,t===`changes`?`page`:void 0)},gT=(e,t)=>N(e.i,`href`,t),_T=(e,t)=>N(e.j,`href`,t),vT=xe,yT=(e=>`/${e}&`)(pe);function bT(e){de(e.a,ve)}var xT=(e,t)=>Pe(e.a,t),ST=(e,t)=>be(e.a,t),CT=(e=>`<label>${e}<input type=search placeholder="Filter files…" aria-label="Filter files"></label>`)(vT),wT=(e=>` D/${e}& l`)(yT),TT=O(16,e=>ne(e,`c`,e.n,zT(e))),ET=M(13,TT),DT=M(14),OT=O(12,e=>{ET(e,(e.l??e.j)||``),DT(e,BT(e))}),kT=E(9,OT),AT=O(7,e=>kT(e,e.f,e.g)),jT=M(5,AT),MT=M(6,AT),NT=k(`u5`,e=>{{let t=e.l;if(t!==null){let n=setTimeout(()=>{PT(e,null),kT(e,t)},150);re(e,0).onabort=()=>clearTimeout(n)}}}),PT=C(11,e=>{ae(e,0),OT(e),NT(e)}),FT=M(15,TT),IT=k(`u4`,e=>{oe(e,`c`),g(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()))}),g(e.c,`blur`,function(){e.l!==null&&e.o()})});function LT(e){j(e.a,[`_bl`,`_nG`]),bT(e.b),xT(e.b,14),ST(e.b,`_bm`),j(e.c,[`_bn`,t]),D(e,HT(e)),PT(e,null),FT(e,VT(e)),IT(e)}var RT=M(8),zT=e=>function(t){e.p(t)},BT=e=>()=>{let t=e.l??e.j??``;PT(e,null),kT(e,t)},VT=e=>t=>{if(!t){PT(e,null),kT(e,``);return}PT(e,t)},HT=e=>()=>{e.c.focus(),e.c.select()};b.u2=zT,b.u0=BT,b.u1=VT,b.u3=HT;var UT=`<!><!><!>`,WT=x(0,0,e=>y(e.c,nn(e._.d))),GT=e=>{WT._(e),KT._(e),j(e.a,`_nD`),j(e.b,`_nE`),j(e.d,`_nF`)},KT=x(0,0,e=>y(e.e,nn(e._.e))),qT=v(0,`<span><span>+<!></span><span>−<!></span></span>`,` D Db%l Db%`,GT),JT=O(5,e=>qT(e,e.d||e.e?0:1)),YT=M(3,e=>{JT(e),WT(e)}),XT=M(4,e=>{JT(e),KT(e)}),ZT=(e=>`<div>${e}<!><div><span> </span><!><!></div></div>`)(CT),QT=(e=>` D0${e}&%b D D l%b%m`)(wT),$T=k(`y4`,e=>g(e.a,`click`,function(){uE(e._,``),mE(e._,!1)})),eE=e=>{j(e.a,`_l4`),$T(e)},tE=x(7,0,e=>YT(e.a,e._.w)),nE=e=>{tE._(e),rE._(e)},rE=x(7,0,e=>XT(e.a,e._.x??0)),iE=x(3,0,e=>y(e.e,nn(e._.r))),aE=k(`y3`,e=>g(e.f,`click`,function(){mE(e._,!e._.a0)})),oE=e=>{iE._(e),sE._(e),cE._(e),j(e.a,`_lZ`),j(e.b,`_l0`),j(e.c,`_l1`),j(e.f,`_3`),aE(e)},sE=x(3,0,e=>y(e.d,nn(e._.v))),cE=x(3,0,e=>N(e.f,`aria-checked`,e._.a0?`true`:`false`)),lE=te(31),uE=E(24,e=>jT(e.b,e.y)),dE=O(13,e=>uE(e,e.l,e.m)),fE=M(11,dE),pE=M(12,dE),mE=E(26,cE),hE=O(16,e=>mE(e,e.o,e.p)),gE=M(14,hE),_E=M(15,hE),vE=v(8,`<button type=button>Clear</button>`,` `,eE),yE=(e,t)=>y(e.g,t),bE=O(29,e=>yE(e,`${e.a2>0?`${nn(e.s)} of `:``}${nn(e.r)} ${e.r===1?`file`:`files`}`),2),xE=M(28,e=>{vE(e,e.a2>0?0:1),bE(e)}),SE=O(19,e=>xE(e,e.r-e.s)),CE=M(17,e=>{SE(e),bE(e),iE(e)}),wE=M(18,e=>{SE(e),bE(e)});function TE(e){j(e.a,`_lY`),ie(e,1,EE),LT(e.b),MT(e.b,PE(e)),j(e.e,`_l2`),j(e.f,`_l3`),D(e,NE(e))}var EE=A(`y2`,M(31)),DE=(e,t)=>RT(e.b,t),OE=v(3,`<label><span>Hide viewed</span><span><!> of <!> viewed</span><button type=button role=switch></button></label>`,` D b D%c%l `,oE),kE=M(21,e=>{OE(e,+(e.v==null)),sE(e)}),AE=v(7,(e=>`<!>${e}<!>`)(UT),(e=>`b/${e}&b`)(`b%c`),nE),jE=M(22,e=>{AE(e,+(e.w==null)),tE(e)}),ME=M(23,rE),NE=e=>()=>lE(e)(),PE=e=>t=>{uE(e,t)};b.y1=NE,b.y0=PE;var FE=((e,t)=>`<button type=button aria-haspopup=dialog>${e}<!></button><div popover=auto role=dialog aria-label="Filter files">${t}</div>`)(vT,ZT),IE=((e,t)=>` D/${e}&%l D0${t}&l`)(yT,QT),LE=x(2,0,e=>y(e.b,e._.a0>99?`99+`:nn(e._.a0))),RE=e=>{LE._(e),j(e.a,`_lW`)},zE=te(30),BE=O(24,e=>j(e.a,[h,`_lU`,{_lV:!!e.u?.trim()||!!e.w}])),VE=E(20,e=>{fE(e.e,e.u),BE(e)}),HE=O(10,e=>VE(e,e.i,e.j)),UE=M(8,HE),WE=M(9,HE),GE=E(22,e=>{gE(e.e,e.w),BE(e)}),KE=O(13,e=>GE(e,e.l,e.m)),qE=M(11,KE),JE=M(12,KE),YE=(e,t)=>{N(e.a,`aria-controls`,t),N(e.d,`id`,t)},XE=C(29),ZE=k(`x4`,e=>{g(e.a,`pointerdown`,function(){XE(e,e.d.matches(`:popover-open`))}),g(e.a,`click`,function(){let t=e.d,n=e.a3||t.matches(`:popover-open`);if(XE(e,!1),n){t.hidePopover();return}if(e.h.sheet&&Ne()){e.h.sheet();return}e.h.onOpen?.(),t.showPopover(),pt(t,e.a.getBoundingClientRect()),zE(e)()})});function QE(e){bT(e.b),xT(e.b,14),ST(e.b),j(e.d,r),ie(e,4,lD),TE(e.e),pE(e.e,pD(e)),_E(e.e,fD(e)),DE(e.e,dD(e)),YE(e,T(e)),XE(e,!1),ZE(e)}var $E=v(2,`<span aria-hidden=true> </span>`,` D `,RE),eD=(e,t)=>{N(e.a,`title`,`Filter files\n${t}`),N(e.a,`aria-label`,`Filter files: ${t}`)},tD=O(27,e=>eD(e,`${e.a0>0?`${nn(e.p)} of `:``}${nn(e.o)} ${e.o===1?`file`:`files`}`+(e.r==null?``:` · +${nn(e.r)} −${nn(e.s??0)}`)+(e.t==null?``:`\n${nn(e.t)} of ${nn(e.o)} viewed`)),5),nD=M(26,e=>{$E(e,e.a0>0?0:1),tD(e),LE(e)}),rD=O(16,e=>nD(e,e.o-e.p)),iD=M(14,e=>{CE(e.e,e.o),rD(e),tD(e)}),aD=M(15,e=>{wE(e.e,e.p),rD(e),tD(e)}),oD=M(17,e=>{jE(e.e,e.r),tD(e)}),sD=M(18,e=>{ME(e.e,e.s),tD(e)}),cD=M(19,e=>{kE(e.e,e.t),tD(e)}),lD=A(`x3`,M(30)),uD=M(7,e=>{UE(e,e.h.filter),WE(e,e.h.filterChange),qE(e,e.h.hideViewed),JE(e,e.h.hideViewedChange),iD(e,e.h.total),aD(e,e.h.shown),oD(e,e.h.additions),sD(e,e.h.deletions),cD(e,e.h.viewed)}),dD=e=>function(){e.d.hidePopover(),e.a.focus()},fD=e=>t=>{GE(e,t)},pD=e=>t=>{VE(e,t)};b.x2=dD,b.x1=fD,b.x0=pD;var mD=`<!><!><!>`,hD=x(0,0,e=>{N(e.a,`aria-label`,eT(e._.d)),N(e.a,`title`,eT(e._.d))}),gD=v(0,(e=>`<span role=img>${e}</span>`)(_t),(e=>` D/${e}&l`)(Et),e=>{hD._(e),j(e.a,`_nM`),ut(e.b),dt(e.b,12),yt(e.b)}),_D=M(3,e=>{gD(e,+!e.d),hD(e)}),vD=(e=>` D%b%b%b/${e}&l`)(`b%c`),yD=(e=>`<button type=button><!><!><!>${e}</button>`)(mD),bD=(e=>` D%b D l%b/${e}&l`)(`b%c`),xD=(e=>`<button type=button><!><span> </span><!>${e}</button>`)(mD),SD=`<div><!><div role=group aria-label=Sections><button type=button data-pick>All</button><!></div><!><div popover=auto role=dialog title></div></div>`,CD=` D%b D b%l%b l`,wD=200,TD=250;function ED(e,t){return t&&e.startsWith(`${t}.`)?e.slice(t.length+1):e}function DD(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 OD(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 kD=I(84,e=>j(e.a,[i[Nt(e._._.n)],`_nw`]),e=>e._._,`T19`),AD=e=>{kD(e),jD(e)},jD=I(85,e=>y(e.b,e._._.o),e=>e._._,`T20`),MD=I(78,e=>y(e.a,e._._.i),e=>e._._,`T23`),ND=MD,PD=e=>{j(e.a,[`_nb`,`_nc`]),y(e.b,e._._.M)},FD=x(1,0,e=>y(e.b,e._.r)),ID=e=>{FD._(e),j(e.a,`_ns`)},LD=x(4,0,e=>j(e.a,[i[Nt(e._.n)],`_nw`])),RD=e=>{LD._(e),zD._(e)},zD=x(4,0,e=>y(e.b,e._.o)),BD=I(72,e=>y(e.b,e._._.a2),e=>e._._,`T10`),VD=e=>{BD(e),j(e.a,`_np`)},HD=x(3,0,e=>j(e.a,[i[Nt(e._.s)],`_nw`])),UD=e=>{HD._(e),WD._(e)},WD=x(3,0,e=>y(e.b,e._.t)),GD=x(2,1,e=>y(e.b,e._.w)),KD=e=>{GD._(e),j(e.a,`_nv`)},qD=x(2,0,e=>y(e.b,e._.o)),JD=e=>{qD._(e),XD._(e)},YD=v(0,`<span><!>/</span>`,` D%`,VD),XD=x(2,0,e=>YD(e,+!e._.a2)),ZD=x(1,0,e=>y(e.b,e._.m)),QD=e=>{ZD._(e),j(e.a,`_nc`)},$D=O(1,e=>Ij(e.a,e._.o===e._._._.k)),eO=I(74,$D,e=>e._._._,`T32`),tO=e=>{eO(e),nO._(e),Sj._(e.a,e._._._._),Tj(e.a,!0),Uj(e.a)},nO=x(0,2,e=>{Vj(e.a,e._.o),$D(e)}),rO=O(3,e=>fj(e.a,e._._._.a1(e.c,e._._._.ah)),2),iO=I(56,rO,e=>e._._._),aO=e=>{iO(e),oO(e),aj._(e.a,e._._._),cj(e.a)},oO=I(62,rO,e=>e._._._,`T47`),sO=M(2,e=>{gj(e.a,e.c),rO(e)}),cO=(e,t)=>dj(e.a,t+1),lO=(e,t)=>{sO(e,t[0]),cO(e,t[1])},uO=O(4,e=>y(e.c,e._._.a2(e._._.af,e._._.ah)??e._._.ai),3),dO=I(57,uO,e=>e._._),fO=e=>{dO(e),pO(e),mO(e),hO(e),_O(e),j(e.a,`_nm`),j(e.b,`_nn`)},pO=I(61,uO,e=>e._._,`T48`),mO=I(62,uO,e=>e._._,`T49`),hO=I(63,uO,e=>e._._,`T50`),gO=_(3,(e=>`<!>${e}<!>`)(xD),(e=>`b/${e}&b`)(bD),aO,lO),_O=I(66,e=>gO(e,[e._._.aq,`id`]),e=>e._._,`T51`),vO=O(1,e=>fj(e.a,ED(e._._._._.a1(e._.f,e._._._._.ah),e._._._._.ae)),3),yO=I(56,vO,e=>e._._._._),bO=e=>{yO(e),xO(e),SO(e),CO._(e),aj._(e.a,e._._._._),dj(e.a),cj(e.a)},xO=I(60,vO,e=>e._._._._,`T42`),SO=I(62,vO,e=>e._._._._,`T43`),CO=x(0,1,e=>{gj(e.a,e._.f),vO(e)}),wO=O(3,e=>fj(e.a,ED(e._._._._._.a1(e.c,e._._._._._.ah),e._._._._._.ae)),3),TO=I(56,wO,e=>e._._._._._),EO=e=>{TO(e),DO(e),OO(e),aj._(e.a,e._._._._._),cj(e.a,!0)},DO=I(60,wO,e=>e._._._._._,`T37`),OO=I(62,wO,e=>e._._._._._,`T38`),kO=M(2,e=>{gj(e.a,e.c),wO(e)}),AO=(e,t)=>dj(e.a,t+1),jO=(e,t)=>{kO(e,t[0]),AO(e,t[1])},MO=O(4,e=>y(e.c,ED(e._._._._.a2(e._.c,e._._._._.ah)??e._._._._.ai,e._._._._.ae)),4),NO=I(57,MO,e=>e._._._._),PO=e=>{NO(e),FO(e),IO(e),LO(e),RO._(e),BO._(e),j(e.a,`_no`),ht(e.b),Tt(e.b,12),lt(e.b)},FO=I(60,MO,e=>e._._._._,`T39`),IO=I(62,MO,e=>e._._._._,`T40`),LO=I(63,MO,e=>e._._._._,`T41`),RO=x(0,0,MO),zO=_(3,(e=>`<!>${e}<!>`)(xD),(e=>`b/${e}&b`)(bD),EO,jO),BO=x(0,0,e=>zO(e,[e._.e,`id`])),VO=v(0,(e=>`<span>${e} </span><!><!>`)(gt),(e=>` D/${e}& l%c`)(vt),PO,(e=>`<!>${e}<!>`)(xD),(e=>`b/${e}&b`)(bD),bO),HO=(e,t)=>VO(e,+!t),UO=(e,t)=>WO(e,t[0]),WO=M(2,e=>{HO(e,e.c?.stack),GO(e,e.c?.sections),RO(e)}),GO=M(4,e=>{KO(e,e.e?.[0]),BO(e)}),KO=M(5,CO),qO=I(60,e=>y(e.c,e._._.ae),e=>e._._,`T44`),JO=e=>{qO(e),YO(e),ZO(e),j(e.a,`_nm`),j(e.b,`_nn`)},YO=I(64,e=>{y(e.d,e._._.ao),y(e.e,e._._.ao===1?`branch`:`branches`)},e=>e._._,`T45`),XO=_(5,`<!><!><!>`,`b%`,0,UO),ZO=I(65,e=>XO(e,[e._._.ap,`root`]),e=>e._._,`T46`),QO=v(0,`<span><span> </span><!> <!></span><!><!>`,` D D l%c%l%`,JO,`<span><span> </span> merges top to bottom</span><!><!>`,` D D m%`,fO),$O=x(6,0,e=>QO(e,e._.ad===`group`?0:1)),ek=$O,tk=O(6,e=>y(e.d,ED(e._._._._._.a1(e._.h,e._._._._.k),e._._.i)),3),nk=I(56,tk,e=>e._._._._._),rk=e=>{nk(e),ik(e),ok(e),sk._(e),lk._(e),uk._(e),j(e.a,`_np`)},ik=I(74,tk,e=>e._._._._,`T21`),ak=O(5,e=>y(e.c,e._.r?`${ED(e._.r,e._._.i)}/`:``)),ok=I(78,e=>{y(e.b,e._._.i),ak(e),tk(e)},e=>e._._,`T22`),sk=x(1,0,tk),ck=v(4,`<span>#<!></span>`,` Db%`,AD),lk=x(1,0,e=>ck(e,+!e._.n)),uk=x(1,0,ak),dk=k(`T36`,e=>g(e.a,`click`,function(){e._.x(1)})),fk=e=>{j(e.a,[`_m4`,`_m6`]),Be(e.b),Ve(e.b,12),Ye(e.b),dk(e)},pk=k(`T17`,e=>g(e.a,`click`,function(){e._.x(-1)})),mk=e=>{j(e.a,[`_m4`,`_m5`]),Be(e.b),Ve(e.b,12),Ye(e.b,`_m7`),pk(e)},hk=O(14,e=>j(e.a,[`_ne`,{_nf:e.n===e._._._._.k}])),gk=I(53,hk,e=>e._._._._,`T29`),_k=k(`T28`,e=>{g(e.c,`mouseenter`,function(t,n){e._._._._.aj(e._.M,n.closest(`[data-stack]`)??n)}),g(e.c,`mouseleave`,function(){e._._._._.ak()}),g(e.c,`pointerdown`,function(){e._._._._.al()}),g(e.c,`click`,function(t,n){e._._._._.am(e._.M,n.closest(`[data-stack]`)??n)}),g(e.c,`keydown`,function(t,n){t.key===`ArrowDown`&&(t.preventDefault(),yM(e._._._._,null),e._._._._.am(e._.M,n.closest(`[data-stack]`)??n))})}),vk=e=>{gk(e),Ck(e),Dk(e),Ok(e),Ak._(e),jk._(e),Sj._(e.b,e._._._._),Tj(e.b,!0),N(e.c,`data-pop`,e._.M),ht(e.d),Tt(e.d,12),lt(e.d),_k(e)},yk=O(12,e=>Ij(e.b,e.l===e._._._.k)),bk=O(18,e=>Uj(e.b,e.l===e.j.at(-1)?void 0:e.p),2),xk=M(11,e=>{Vj(e.b,e.l),Fk(e,e.l?.id),yk(e),bk(e)}),Sk=O(6,e=>xk(e,e._._._._.a0(e.f))),Ck=I(55,Sk,e=>e._._._._,`T30`),wk=O(16,e=>{N(e.c,`title`,`${e.p??e._._._.M} stack of ${e.k}: every layer, in the order they merge`),N(e.c,`aria-label`,`${e.p??e._._._.M} stack: ${e.k} layers`)}),Tk=M(15,e=>{bk(e),wk(e)}),Ek=O(7,e=>Tk(e,e._._._._.a2(e.f,e._._._.k)),2),Dk=I(57,Ek,e=>e._._._._),Ok=I(74,e=>{Ek(e),yk(e)},e=>e._._._,`T31`),kk=M(5,e=>{Mk(e,e.f?.root),Nk(e,e.f?.sections),Sk(e),Ek(e)}),Ak=x(0,1,e=>kk(e,e._.k)),jk=x(0,1,e=>{j(e.c,[`_ng`,{_nh:e._.p}]),N(e.c,`aria-expanded`,e._.p?`true`:`false`)}),Mk=(e,t)=>N(e.a,`data-stack`,t),Nk=M(9,e=>{Pk(e,e.j?.length),bk(e)}),Pk=M(10,e=>{y(e.e,e.k),wk(e)}),Fk=M(13,hk),Ik=O(9,e=>j(e.a,[`_m9`,`_nd`,`_ni`,{_nu:!!e.h?.repo.unpushed,_m8:!!e.h&&e.h?.id===e._._._._.k,_nj:e._.p}]),2),Lk=I(53,Ik,e=>e._._._._,`T25`),Rk=k(`T24`,e=>{g(e.a,`mouseenter`,function(t,n){e._._._._.aj(e._.M,n)}),g(e.a,`mouseleave`,function(){e._._._._.ak()}),g(e.a,`pointerdown`,function(){e._._._._.al()}),g(e.a,`click`,function(t,n){e._._._._.am(e._.M,n)}),g(e.a,`keydown`,function(t,n){t.key===`ArrowDown`&&(t.preventDefault(),yM(e._._._._,null),e._._._._.am(e._.M,n))})}),zk=e=>{Lk(e),Jk(e),Yk(e),Xk(e),Zk._(e),Qk._(e),eA._(e),tA._(e),nA._(e),N(e.a,`data-pop`,e._.M),j(e.c,`_nk`),kt(e.d),Dt(e.d,12),At(e.d),Rk(e)},Bk=v(1,`<span><span><!>.<!></span> </span><!><!>`,`D D%c%l l%`,rk,`<span> </span>`,`D `,ND),Vk=M(17,uk),Hk=O(16,e=>Vk(e,e.p?.stack&&e.h!==(e.p?.sections).at(-1)?e._._._._.a2(e.p,e._._._.k):void 0),3),Uk=M(15,Hk),Wk=O(8,e=>Uk(e,e.h&&e._.h.find(t=>t.sections.includes(e.h)))),Gk=O(10,e=>N(e.a,`title`,`${e._.i}: ${e._.j} ${e._.j===1?`branch`:`branches`}${e.h?`\n${tT(e.h?.repo)??``}`:``}`),2),Kk=M(7,e=>{iA(e,e.h?.repo?.pr),oA(e,e.h?.id),Bk(e,+!e.h),Wk(e),Hk(e),Ik(e),Gk(e),sk(e)}),qk=O(5,e=>Kk(e,e._._._._.z(e._.g))),Jk=I(54,qk,e=>e._._._._,`T26`),Yk=I(57,Hk,e=>e._._._._),Xk=I(74,Hk,e=>e._._._,`T27`),Zk=x(0,0,qk),Qk=x(0,0,Wk),$k=O(6,e=>N(e.a,`aria-label`,`${e._.i} group: ${e._.j} branches`)),eA=x(0,0,e=>{Gk(e),$k(e)}),tA=x(0,0,e=>{y(e.e,e._.j),Gk(e),$k(e)}),nA=x(0,0,e=>{N(e.a,`aria-expanded`,e._.p?`true`:`false`),Ik(e)}),rA=F(kD),iA=M(13,e=>{aA(e,e.n?.number),lk(e),rA(e)}),aA=M(14,F(jD)),oA=(e,t)=>N(e.a,`data-pick`,t),sA=M(15,e=>{nA(e),jk(e)}),cA=I(58,e=>sA(e,e._._._.a5===e.M),e=>e._._._,`T33`),lA=cA,uA=v(0,(e=>`<button type=button aria-haspopup=dialog><!><span>${e} </span></button>`)(Ct),(e=>` D%b D/${e}& m`)(xt),zk,((e,t)=>`<span>${e}<button type=button aria-haspopup=dialog>${t} </button></span>`)(yD,gt),((e,t)=>` D/${e}& D/${t}& m`)(vD,vt),vk,(e=>`<!>${e}<!>`)(yD),(e=>`b/${e}&b`)(vD),tO),dA=O(12,e=>uA(e,e.f===`group`?0:e.l?1:2)),fA=M(5,dA),pA=M(11,dA),mA=(e,t)=>{fA(e,t[0]?.kind),hA(e,t[0]?.sections),_A(e,t[0]?.runs),yA(e,t[0]?.name),bA(e,t[0]?.run)},hA=M(6,e=>{gA(e,e.g?.length),Zk(e)}),gA=M(9,tA),_A=M(7,Qk),vA=F(ok,MD),yA=M(8,e=>{eA(e),vA(e)}),bA=M(10,e=>{pA(e,e.k?.stack),xA(e,e.k?.sections?.[0]),Ak(e)}),xA=M(14,nO),SA=O(3,e=>j(e.a,[`_m_`,{_na:e._.d.some(t=>t.id===e._._.k)}])),CA=I(53,SA,e=>e._._,`T34`),wA=e=>{CA(e),kA(e),AA._(e),jA._(e),NA._(e),FA._(e),IA._(e)},TA=v(1,`<span> </span>`,` D `,PD),EA=O(10,e=>TA(e,!e._.k||e.j!==e._.k?0:1)),DA=M(9,EA),OA=O(8,e=>DA(e,e.g===`run`?e.h.stack?e._._.a0(e.h):e.h.sections[0]:void 0),2),kA=I(55,OA,e=>e._._,`T35`),AA=x(0,1,SA),jA=x(0,1,e=>N(e.a,`aria-label`,`${e._.M}: ${e._.e} sections`)),MA=_(2,`<!><!><!>`,`b%`,lA,mA),NA=x(0,1,e=>MA(e,[e._.i,`key`])),PA=(e,t)=>{LA(e,t?.kind),RA(e,t?.run)},FA=x(0,1,e=>PA(e,e._.j)),IA=x(0,1,EA),LA=M(6,OA),RA=M(7,OA),zA=O(2,e=>j(e.a,[`_m_`,{_na:e._.g===e._._.k}])),BA=I(53,zA,e=>e._._,`T18`),VA=e=>{BA(e),HA._(e),UA._(e),Sj._(e.b,e._._),Ij(e.b,!0),Tj(e.b,!0),Uj(e.b)},HA=x(0,0,e=>Vj(e.b,e._.f)),UA=x(0,0,zA),WA=v(0,(e=>`<span>${e}</span>`)(yD),(e=>` D/${e}&l`)(vD),VA,`<span role=group><!><!></span>`,` D%b%`,wA),GA=M(4,e=>{WA(e,e.e===1?0:1),jA(e)}),KA=(e,t)=>{qA(e,t[0]?.sections),XA(e,t[0]?.items),$A(e,t[0]?.main)},qA=M(3,e=>{GA(e,e.d?.length),JA(e,e.d?.[0]),AA(e)}),JA=M(5,e=>{YA(e,e.f?.id),HA(e)}),YA=M(6,UA),XA=M(8,e=>{ZA(e,e.i?.[0]),NA(e)}),ZA=M(9,FA),QA=F(Xk,Ok,ik,eO),$A=M(10,e=>{IA(e),QA(e)}),ej=O(20,e=>j(e.a,[`_nq`,{_nr:e.s,_nu:!!e.m,_m8:e.t}]),2),tj=M(19,e=>{N(e.a,`aria-current`,e.t?`true`:void 0),ej(e)}),nj=O(10,e=>tj(e,e._.k===e.j)),rj=I(53,nj,0,`T16`),ij=k(`T15`,e=>g(e.a,`click`,function(){e._.l(e.j),e._.g.hidePopover()})),aj=ee(e=>{rj(e),j(e.c,`_nt`),ij(e)}),oj=M(9,nj),sj=M(12,ej),cj=M(18,ej),lj=(e,t)=>{N(e.a,`title`,[tT(t),t?.pr?.title].filter(Boolean).join(`
325
+ `)),sj(e,t?.unpushed),mj(e,t?.pr),hj(e,t?.edits)},uj=v(1,`<span> </span>`,` D `,ID),dj=M(17,e=>{uj(e,+!e.r),FD(e)}),fj=(e,t)=>y(e.d,t),pj=v(4,`<span>#<!></span>`,` Db%`,RD),mj=M(13,e=>{_j(e,e.n?.number),pj(e,+!e.n),LD(e)}),hj=(e,t)=>_D(e.f,t),gj=(e,t)=>{oj(e,t?.id),lj(e,t?.repo)},_j=M(14,zD),vj=O(27,e=>j(e.a,[`_m9`,{_nu:!!e.j,_nd:e.a0,_m8:e._.k===e.k}]),3),yj=O(11,e=>N(e.a,`aria-pressed`,e._.k===e.k?`true`:`false`)),bj=I(53,e=>{vj(e),yj(e)},0,`T13`),xj=k(`T12`,e=>g(e.a,`click`,function(){e._.l(e.k)})),Sj=ee(e=>{bj(e),xj(e)}),Cj=M(9,vj),wj=M(10,e=>{N(e.a,`data-pick`,e.k),vj(e),yj(e)}),Tj=M(26,vj),Ej=O(21,e=>N(e.a,`title`,[`${e.i.worktree}${e.o?` · ${e.o}`:``}${e.p?`: ${nn(e.p.length)} ${e.p.length===1?`file`:`files`}, +${nn(e.q??0)} −${nn(e.r??0)}`:``}`,e.i.pr&&`#${e.i.pr.number} ${e.i.pr.title}`,tT(e.i),e.u].filter(Boolean).join(`
326
+ `)),5),Dj=M(8,e=>{Cj(e,e.i?.unpushed),Wj(e,e.i?.worktree),zj(e,e.i?.pr),Bj(e,e.i?.edits),Ej(e)}),Oj=v(2,`<span><!><!></span>`,`D%b%`,JD,`<span> </span>`,` D `,KD),kj=O(23,e=>Oj(e,e.o?0:e.w?1:2)),Aj=M(14,e=>{Ej(e),kj(e),qD(e)}),jj=M(15,Ej),Mj=M(16,Ej),Nj=M(17,Ej),Pj=M(20,Ej),Fj=v(1,`<span> </span>`,` D `,QD),Ij=(e,t)=>Fj(e,+!t),Lj=M(22,e=>{kj(e),GD(e)}),Rj=v(3,`<span>#<!></span>`,` Db%`,UD),zj=M(18,e=>{Gj(e,e.s?.number),Rj(e,+!e.s),HD(e)}),Bj=(e,t)=>_D(e.e,t),Vj=(e,t)=>{Dj(e,t?.repo),wj(e,t?.id),Kj(e,t?.compare),jj(e,t?.files),Mj(e,t?.additions),Nj(e,t?.deletions)},Hj=F(BD),Uj=M(28,e=>{XD(e),Hj(e)}),Wj=M(12,ZD),Gj=M(19,WD),Kj=(e,t)=>{Aj(e,t?.topic),Pj(e,t?.title),Lj(e,t?.head)},qj=C(15,e=>{N(e.c,`title`,Je(`prevSection`,e.p)||Je(`nextSection`,e.p)?`Sections (${[Je(`prevSection`,e.p),Je(`nextSection`,e.p)].filter(Boolean).join(` / `)})`:`Sections`)}),Jj=v(1,(e=>`<button type=button tabindex=-1 aria-hidden=true title="More sections">${e}</button>`)(qe),(e=>` D/${e}&l`)(nt),mk),Yj=O(20,e=>j(e.c,[`_m1`,{_m2:e.s,_m3:e.t}])),Xj=C(18,e=>{Jj(e,+!e.s),Yj(e)}),Zj=v(5,(e=>`<button type=button tabindex=-1 aria-hidden=true title="More sections">${e}</button>`)(qe),(e=>` D/${e}&l`)(nt),fk),Qj=C(19,e=>{Zj(e,+!e.t),Yj(e)}),$j=k(`T52`,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;a<r.scrollLeft?r.scrollTo({left:a-8,behavior:`smooth`}):o>r.scrollLeft+r.clientWidth&&r.scrollTo({left:o-r.clientWidth+8,behavior:`smooth`})});re(e,2).addEventListener(`abort`,()=>cancelAnimationFrame(r))}}),eM=O(22,e=>{ae(e,2),$j(e)},2),tM=k(`T53`,e=>ce(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()}})),nM=M(21,e=>{eM(e),tM(e)}),rM=M(23),iM=M(27),aM=O(36,e=>N(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)),oM=M(28,aM),sM=M(47),cM=v(6,`<!><!><!>`,`b%`,ek),lM=k(`T54`,e=>{{let t=e.g;if(e.a3&&e.a9){let n=!t.matches(`:popover-open`);n&&t.showPopover(),pt(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()}}),uM=O(37,lM),dM=M(35,e=>{NM(e,e.a9?.item?.kind),PM(e,e.a9?.item?.name),IM(e,e.a9?.item?.run),RM(e,e.a9?.item?.sections?.length),zM(e,e.a9?.item?.runs),BM(e,e.a9?.g?.main),VM(e,e.a9?.g?.worktree),cM(e,+!e.a9),uM(e),aM(e)}),fM=O(30,e=>dM(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}}})())),pM=M(45),mM=e=>{pM(e,ZM(e))},hM=C(29,e=>{AM(e,e.a3?.key),MM(e,e.a3?.via),sM(e,XM(e)),fM(e),mM(e),uM(e)}),gM=k(`T55`,e=>{{let t=e.a7;if(t){let n=setTimeout(()=>{_M(e,null),hM(e,t.pop)},t.pop?wD:TD);re(e,1).addEventListener(`abort`,()=>clearTimeout(n))}}}),_M=C(33,e=>{ae(e,1),gM(e)}),vM=M(48),yM=C(34,e=>vM(e,QM(e))),bM=k(`T56`,e=>{qj(e,He()),We(()=>{qj(e,He())},re(e,0)),g(e.c,`scroll`,function(){e.v()}),g(e.d,`click`,function(){e.l(null)}),g(e.g,`mouseenter`,function(){e.a7&&!e.a7?.pop&&_M(e,null)}),g(e.g,`mouseleave`,function(){e.ak()}),g(e.g,`toggle`,function(t){t.newState===`closed`&&(document.activeElement===document.body&&e.a3&&document.querySelector(`[data-pop="${CSS.escape(e.a3?.key)}"]`)?.focus(),_M(e,null),hM(e,null))}),g(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 xM(e){ae(e,0),j(e.g,[`_bw`,`_nl`]),qj(e,0),Xj(e,!1),Qj(e,!1),nM(e,KM(e)),rM(e,qM(e)),iM(e,JM),oM(e,YM),hM(e,null),_M(e,null),yM(e,null),bM(e)}var SM=_(4,`<!><!><!>`,`b%`,0,KA),CM=M(24,e=>{SM(e,[e.y,`worktree`]),fM(e)}),wM=(e,t)=>{WM(e,t?.length),CM(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=OD(DD(t.sections),t.main);return e})())},TM=M(26,F(kA,Ck)),EM=F(Jk),DM=M(25,e=>{TM(e,$M(e)),EM(e)}),OM=F(bj,rj,BA,CA,Lk,gk),kM=M(10,e=>{j(e.d,[`_m9`,{_m8:!e.k}]),N(e.d,`aria-pressed`,e.k?`false`:`true`),DM(e,eN(e)),eM(e),OM(e)}),AM=M(31,F(cA)),jM=M(46),MM=M(32,e=>jM(e,tN(e))),NM=M(39,$O),PM=M(40,F(qO,FO,DO,xO)),FM=F(pO),IM=M(41,e=>{LM(e,e.af?.sections),FM(e)}),LM=M(52,F(_O)),RM=M(50,F(YO)),zM=M(51,F(ZO)),BM=M(43,F(IO,OO,SO,mO,oO)),VM=M(44,F(LO,hO)),HM=(e,t)=>j(e.a,[`_m0`,t]),UM=(e,t)=>N(e.d,`title`,t==null?`Every section`:`Every section: ${nn(t)} ${t===1?`file`:`files`}`),WM=M(14,eM),GM=M(11),KM=e=>()=>{let t=e.c;Xj(e,t.scrollLeft>1),Qj(e,t.scrollLeft+t.clientWidth<t.scrollWidth-1)},qM=e=>t=>{let n=e.c;n.scrollBy({left:t*n.clientWidth*.8,behavior:`smooth`})};function JM(e,t){return e===t?e.repo.worktree:e.compare?.topic||e.compare?.head||e.repo.worktree}function YM(e,t){let n=e.sections.at(-1);return n===t?void 0:n.compare?.topic||n.compare?.head}var XM=e=>()=>{yM(e,e.a3&&e.g.matches(`:popover-open`)?{key:e.a3?.key,via:e.a3?.via}:null)},ZM=e=>(t,n)=>{e.a6!==`click`&&_M(e,e.a5===t?null:{pop:{key:t,chip:n,via:`hover`}})},QM=e=>(t,n)=>{let r=e.a8;if(yM(e,null),_M(e,null),r?.key===t&&r.via===`click`){e.g.hidePopover();return}hM(e,{key:t,chip:n,via:`click`})},$M=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),tN=e=>()=>{_M(e,e.a6===`hover`?{pop:null}:null)};b.T0=KM,b.T1=qM,b.T4=JM,b.T5=YM,b.T8=XM,b.T6=ZM,b.T9=QM,b.T3=$M,b.T2=eN,b.T7=tN;var nN=xe,rN=(e=>`/${e}&`)(pe);function iN(e){de(e.a,ye)}var aN=(e,t)=>Pe(e.a,t),oN=(e,t)=>be(e.a,t),sN=xe,cN=(e=>`/${e}&`)(pe);function lN(e){de(e.a,Se)}var uN=(e,t)=>Pe(e.a,t),dN=(e,t)=>be(e.a,t),fN=((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>`)(sN,sN,mn),pN=((e,t,n)=>` D D D D/${e}& D m%l l D/${t}&m D%b D D/${n}&l m`)(cN,cN,pn),mN=e=>{dn(e.a),ln(e.a,12),fn(e.a)},hN=x(7,3,e=>y(e.b,bt(e._.a4))),gN=e=>{hN._(e),j(e.a,[`_mn`,`_S`]),j(e.c,`_R`)},_N=x(7,0,e=>y(e.a,e._.a0?`Copied`:`Copy failed`)),vN=_N,yN=v(1,cn,(e=>`/${e}&`)(sn),mN),bN=I(41,e=>{N(e.a,`aria-checked`,e.M===e._._.a7?`true`:`false`),yN(e,e.M===e._._.a7?0:1)},e=>e._._,`r3`),xN=k(`r2`,e=>g(e.a,`click`,function(){IN(e._._,e.M),e._._.l.hidePopover()})),SN=t=>{bN(t),j(t.a,e),j(t.b,`_ms`),Ge(t.c,14),tt(t.c),j(t.d,`_mt`),xN(t)},CN=(e,t)=>ze(e.c,t),wN=(e,t)=>{y(e.e,bt(t)),CN(e,t?.agent)},TN=_(1,(e=>`<button type=button role=menuitemradio><span></span>${e}<span> </span></button>`)(Ke),(e=>` D b/${e}& D m`)(`b%c`),SN,(e,t)=>wN(e,t[0])),EN=x(12,0,e=>TN(e,[e._.a1,`id`])),DN=e=>{EN._(e),j(e.a,`_mq`),j(e.c,`_mu`)},ON=M(36),kN=O(31,e=>ON(e,QN(e)),2),AN=v(7,` `,` `,vN,`Sending…`,0,0,`Copy`,0,0,`<span>Send to <!></span><span>Send</span>`,` Db%l `,gN,`Send`),jN=O(32,e=>AN(e,e.z?0:e.x?1:e.a4?e.a3>1?3:4:2),3),MN=C(23,e=>{N(e.c,`disabled`,e.x),N(e.i,`disabled`,e.x),kN(e),jN(e)}),NN=O(35,e=>N(e.c,`title`,e.u?e.a4?`Send ${e.a8} to ${bt(e.a4)}`:`Copy ${e.a8} as markdown`:`No comments to send`),2),PN=M(30,e=>{KN(e,e.a4?.id),kN(e),NN(e),jN(e),hN(e)}),FN=O(28,e=>PN(e,e.a1.find(t=>t.id===e.y)??e.a1[0]??null)),IN=C(24,FN),LN=k(`r5`,e=>{if(e.z){let t=setTimeout(()=>{RN(e,null)},1500);re(e,0).onabort=()=>clearTimeout(t)}}),RN=C(25,e=>{ae(e,0),VN(e,e.z?.ok),jN(e),LN(e)}),zN=k(`r4`,e=>{g(e.c,`click`,function(){e.a4?e.aa():e.ab()}),g(e.i,`click`,function(){let t=e.l;t.showPopover(),pt(t,e.b.getBoundingClientRect(),{align:`end`})}),g(e.n,`click`,function(){e.l.hidePopover(),e.ab()})});function BN(t){j(t.c,`_mk`),j(t.d,[`_w`,`_ml`]),lN(t.e),uN(t.e,18),dN(t.e,`_x`),j(t.f,[d,`_mm`]),j(t.i,`_mo`),lN(t.k),uN(t.k,16),dN(t.k),j(t.l,c),j(t.n,e),j(t.o,`_ms`),gn(t.p),hn(t.p,14),_n(t.p),j(t.q,`_mt`),MN(t,!1),IN(t,null),RN(t,null),zN(t)}var VN=M(26,_N),HN=M(27,e=>{WN(e,e.a1.length),FN(e),EN(e)}),UN=v(12,`<span>Send to</span><!><span role=separator></span>`,` b%b `,DN),WN=M(29,e=>{UN(e,+!e.a3),jN(e)}),GN=(e,t)=>HN(e,t||[]),KN=M(33,F(bN)),qN=M(34,e=>{N(e.b,`aria-label`,e.a8),NN(e)}),JN=M(20,e=>{j(e.a,[`_mg`,!e.u&&`_mi`]),j(e.b,[`_mf`,!e.u&&`_mh`]),N(e.b,`inert`,!e.u),y(e.g,e.u>99?`99+`:e.u),j(e.j,[`_mj`,!!e.u&&`_mh`]),qN(e,Yt(e.u,`comment`)),NN(e)}),YN=M(21,kN),XN=M(37),ZN=M(22,e=>XN(e,$N(e))),QN=e=>()=>{(async()=>{if(e.a4&&!e.x){MN(e,!0);try{await e.v(e.a4?.id)}finally{MN(e,!1)}}})()},$N=e=>()=>{(async()=>{RN(e,{ok:await e.w()})})()};b.r0=QN,b.r1=$N;var eP=`<svg data-icon-sprite aria-hidden="true" width="0" height="0">
327
327
  <symbol id="file-tree-icon-chevron" viewBox="0 0 16 16">
328
328
  <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"/>
329
329
  </symbol>
@@ -340,72 +340,72 @@ diff --git`)}function sv(e,t){if(e.length===0)return[``];let n=`\n${t}`,r=e.star
340
340
  <symbol id="file-tree-icon-ellipsis" viewBox="0 0 16 16">
341
341
  <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" />
342
342
  </symbol>
343
- </svg>`,eP=`<symbol id="file-tree-builtin-astro" viewBox="0 0 16 16">
343
+ </svg>`,tP=`<symbol id="file-tree-builtin-astro" viewBox="0 0 16 16">
344
344
  <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"/>
345
345
  <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"/>
346
- </symbol>`,tP=`<symbol id="file-tree-builtin-babel" viewBox="0 0 16 16">
346
+ </symbol>`,nP=`<symbol id="file-tree-builtin-babel" viewBox="0 0 16 16">
347
347
  <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"/>
348
- </symbol>`,nP=`<symbol id="file-tree-builtin-bash" viewBox="0 0 16 16">
348
+ </symbol>`,rP=`<symbol id="file-tree-builtin-bash" viewBox="0 0 16 16">
349
349
  <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"/>
350
350
  <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"/>
351
- </symbol>`,rP=`<symbol id="file-tree-builtin-biome" viewBox="0 0 16 16">
351
+ </symbol>`,iP=`<symbol id="file-tree-builtin-biome" viewBox="0 0 16 16">
352
352
  <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"/>
353
- </symbol>`,iP=`<symbol id="file-tree-builtin-bootstrap" viewBox="0 0 16 16">
353
+ </symbol>`,aP=`<symbol id="file-tree-builtin-bootstrap" viewBox="0 0 16 16">
354
354
  <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"/>
355
355
  <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"/>
356
- </symbol>`,aP=`<symbol id="file-tree-builtin-browserslist" viewBox="0 0 16 16">
356
+ </symbol>`,oP=`<symbol id="file-tree-builtin-browserslist" viewBox="0 0 16 16">
357
357
  <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"/>
358
358
  <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"/>
359
359
  <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"/>
360
- </symbol>`,oP=`<symbol id="file-tree-builtin-bun" viewBox="0 0 16 16">
360
+ </symbol>`,sP=`<symbol id="file-tree-builtin-bun" viewBox="0 0 16 16">
361
361
  <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"/>
362
- </symbol>`,sP=`<symbol id="file-tree-builtin-c" viewBox="0 0 16 16">
362
+ </symbol>`,cP=`<symbol id="file-tree-builtin-c" viewBox="0 0 16 16">
363
363
  <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"/>
364
- </symbol>`,cP=`<symbol id="file-tree-builtin-claude" viewBox="0 0 16 16">
364
+ </symbol>`,lP=`<symbol id="file-tree-builtin-claude" viewBox="0 0 16 16">
365
365
  <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"/>
366
- </symbol>`,lP=`<symbol id="file-tree-builtin-cpp" viewBox="0 0 16 16">
366
+ </symbol>`,uP=`<symbol id="file-tree-builtin-cpp" viewBox="0 0 16 16">
367
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"/>
368
- </symbol>`,uP=`<symbol id="file-tree-builtin-css" viewBox="0 0 16 16">
368
+ </symbol>`,dP=`<symbol id="file-tree-builtin-css" viewBox="0 0 16 16">
369
369
  <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"/>
370
370
  <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"/>
371
- </symbol>`,dP=`<symbol id="file-tree-builtin-database" viewBox="0 0 16 16">
371
+ </symbol>`,fP=`<symbol id="file-tree-builtin-database" viewBox="0 0 16 16">
372
372
  <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"/>
373
373
  <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"/>
374
374
  <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"/>
375
- </symbol>`,fP=`<symbol id="file-tree-builtin-default" viewBox="0 0 16 16">
375
+ </symbol>`,pP=`<symbol id="file-tree-builtin-default" viewBox="0 0 16 16">
376
376
  <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"/>
377
377
  <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"/>
378
- </symbol>`,pP=`<symbol id="file-tree-builtin-docker" viewBox="0 0 16 16">
378
+ </symbol>`,mP=`<symbol id="file-tree-builtin-docker" viewBox="0 0 16 16">
379
379
  <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"/>
380
380
  <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"/>
381
- </symbol>`,mP=`<symbol id="file-tree-builtin-eslint" viewBox="0 0 16 16">
381
+ </symbol>`,hP=`<symbol id="file-tree-builtin-eslint" viewBox="0 0 16 16">
382
382
  <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"/>
383
383
  <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"/>
384
- </symbol>`,hP=`<symbol id="file-tree-builtin-font" viewBox="0 0 16 16">
384
+ </symbol>`,gP=`<symbol id="file-tree-builtin-font" viewBox="0 0 16 16">
385
385
  <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"/>
386
- </symbol>`,gP=`<symbol id="file-tree-builtin-git" viewBox="0 0 16 16">
386
+ </symbol>`,_P=`<symbol id="file-tree-builtin-git" viewBox="0 0 16 16">
387
387
  <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"/>
388
- </symbol>`,_P=`<symbol id="file-tree-builtin-go" viewBox="0 0 16 16">
388
+ </symbol>`,vP=`<symbol id="file-tree-builtin-go" viewBox="0 0 16 16">
389
389
  <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"/>
390
- </symbol>`,vP=`<symbol id="file-tree-builtin-graphql" viewBox="0 0 16 16">
390
+ </symbol>`,yP=`<symbol id="file-tree-builtin-graphql" viewBox="0 0 16 16">
391
391
  <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"/>
392
- </symbol>`,yP=`<symbol id="file-tree-builtin-html" viewBox="0 0 16 16">
392
+ </symbol>`,bP=`<symbol id="file-tree-builtin-html" viewBox="0 0 16 16">
393
393
  <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"/>
394
394
  <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"/>
395
- </symbol>`,bP=`<symbol id="file-tree-builtin-image" viewBox="0 0 16 16">
395
+ </symbol>`,xP=`<symbol id="file-tree-builtin-image" viewBox="0 0 16 16">
396
396
  <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"/>
397
397
  <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"/>
398
- </symbol>`,xP=`<symbol id="file-tree-builtin-javascript" viewBox="0 0 16 16">
398
+ </symbol>`,SP=`<symbol id="file-tree-builtin-javascript" viewBox="0 0 16 16">
399
399
  <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"/>
400
400
  <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"/>
401
- </symbol>`,SP=`<symbol id="file-tree-builtin-json" viewBox="0 0 16 16">
401
+ </symbol>`,CP=`<symbol id="file-tree-builtin-json" viewBox="0 0 16 16">
402
402
  <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"/>
403
- </symbol>`,CP=`<symbol id="file-tree-builtin-markdown" viewBox="0 0 16 16">
403
+ </symbol>`,wP=`<symbol id="file-tree-builtin-markdown" viewBox="0 0 16 16">
404
404
  <path fill="currentColor" d="M1 12V4h2l2 2.5L7 4h2v8H7V7.5l-2 2-2-2V12zm9-3 3 3.5L16 9h-2V4h-2v5z"/>
405
- </symbol>`,wP=`<symbol id="file-tree-builtin-mcp" viewBox="0 0 16 16">
405
+ </symbol>`,TP=`<symbol id="file-tree-builtin-mcp" viewBox="0 0 16 16">
406
406
  <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"/>
407
407
  <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"/>
408
- </symbol>`,TP=`<symbol id="file-tree-builtin-nextjs" viewBox="0 0 16 16">
408
+ </symbol>`,EP=`<symbol id="file-tree-builtin-nextjs" viewBox="0 0 16 16">
409
409
  <defs>
410
410
  <linearGradient id="a" x1="4.522" x2="14" y1="3.943" y2="16" gradientUnits="userSpaceOnUse">
411
411
  <stop stop-color="currentColor"/>
@@ -415,82 +415,82 @@ diff --git`)}function sv(e,t){if(e.length===0)return[``];let n=`\n${t}`,r=e.star
415
415
  <path fill="currentColor" d="M3 2h1.522v9.09H3z"/>
416
416
  <path fill="url(#a)" d="M4.903 2 15 15.075q-.565.5-1.195.925L4.522 3.943z"/>
417
417
  <path fill="currentColor" d="M12.172 2h-1.508v9.094h1.508z"/>
418
- </symbol>`,EP=`<symbol id="file-tree-builtin-npm" viewBox="0 0 16 16">
418
+ </symbol>`,DP=`<symbol id="file-tree-builtin-npm" viewBox="0 0 16 16">
419
419
  <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"/>
420
420
  <path fill="currentColor" d="M10.5 13H13V3H3v10h5V5.5h2.5z"/>
421
- </symbol>`,DP=`<symbol id="file-tree-builtin-oxc" viewBox="0 0 16 16">
421
+ </symbol>`,OP=`<symbol id="file-tree-builtin-oxc" viewBox="0 0 16 16">
422
422
  <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"/>
423
- </symbol>`,OP=`<symbol id="file-tree-builtin-postcss" viewBox="0 0 16 16">
423
+ </symbol>`,kP=`<symbol id="file-tree-builtin-postcss" viewBox="0 0 16 16">
424
424
  <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"/>
425
- </symbol>`,kP=`<symbol id="file-tree-builtin-prettier" viewBox="0 0 16 16">
425
+ </symbol>`,AP=`<symbol id="file-tree-builtin-prettier" viewBox="0 0 16 16">
426
426
  <path fill="currentColor" d="M6 12v1H4.93v-1zm1-2v1H2v-1zm6-4v1h-3V6zm-1-4v1H9V2z"/>
427
427
  <path fill="currentColor" d="M11.5 10v1H8v-1zM5 6v1H2V6zm5-2v1H9V4z" opacity=".8"/>
428
428
  <path fill="currentColor" d="M6 14v1H2v-1zm-.5-6v1H2V8zM13 4v1h-3V4zM4.93 2v1H2V2z" opacity=".6"/>
429
429
  <path fill="currentColor" d="M4.93 12v1H2v-1zM13 8v1H9V8zM5.5 4v1H2V4zM9 2v1H4.93V2z" opacity=".4"/>
430
- </symbol>`,AP=`<symbol id="file-tree-builtin-python" viewBox="0 0 16 16">
430
+ </symbol>`,jP=`<symbol id="file-tree-builtin-python" viewBox="0 0 16 16">
431
431
  <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"/>
432
432
  <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"/>
433
- </symbol>`,jP=`<symbol id="file-tree-builtin-react" viewBox="0 0 16 16">
433
+ </symbol>`,MP=`<symbol id="file-tree-builtin-react" viewBox="0 0 16 16">
434
434
  <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"/>
435
435
  <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"/>
436
- </symbol>`,MP=`<symbol id="file-tree-builtin-ruby" viewBox="0 0 16 16">
436
+ </symbol>`,NP=`<symbol id="file-tree-builtin-ruby" viewBox="0 0 16 16">
437
437
  <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"/>
438
- </symbol>`,NP=`<symbol id="file-tree-builtin-rust" viewBox="0 0 16 16">
438
+ </symbol>`,PP=`<symbol id="file-tree-builtin-rust" viewBox="0 0 16 16">
439
439
  <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"/>
440
- </symbol>`,PP=`<symbol id="file-tree-builtin-sass" viewBox="0 0 16 16">
440
+ </symbol>`,FP=`<symbol id="file-tree-builtin-sass" viewBox="0 0 16 16">
441
441
  <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"/>
442
- </symbol>`,FP=`<symbol id="file-tree-builtin-stylelint" viewBox="0 0 16 16">
442
+ </symbol>`,IP=`<symbol id="file-tree-builtin-stylelint" viewBox="0 0 16 16">
443
443
  <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"/>
444
444
  <path fill="currentColor" d="M6.5 2.5V4l-2 1.5v-4zm5 3L9.5 4V2.5l2-1zM9 4H7V2.5h2z"/>
445
- </symbol>`,IP=`<symbol id="file-tree-builtin-svelte" viewBox="0 0 16 16">
445
+ </symbol>`,LP=`<symbol id="file-tree-builtin-svelte" viewBox="0 0 16 16">
446
446
  <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"/>
447
- </symbol>`,LP=`<symbol id="file-tree-builtin-svg" viewBox="0 0 16 16">
447
+ </symbol>`,RP=`<symbol id="file-tree-builtin-svg" viewBox="0 0 16 16">
448
448
  <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"/>
449
449
  <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"/>
450
- </symbol>`,RP=`<symbol id="file-tree-builtin-svgo" viewBox="0 0 16 16">
450
+ </symbol>`,zP=`<symbol id="file-tree-builtin-svgo" viewBox="0 0 16 16">
451
451
  <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"/>
452
452
  <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"/>
453
- </symbol>`,zP=`<symbol id="file-tree-builtin-swift" viewBox="0 0 16 16">
453
+ </symbol>`,BP=`<symbol id="file-tree-builtin-swift" viewBox="0 0 16 16">
454
454
  <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"/>
455
- </symbol>`,BP=`<symbol id="file-tree-builtin-table" viewBox="0 0 16 16">
455
+ </symbol>`,VP=`<symbol id="file-tree-builtin-table" viewBox="0 0 16 16">
456
456
  <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"/>
457
457
  <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"/>
458
- </symbol>`,VP=`<symbol id="file-tree-builtin-tailwind" viewBox="0 0 16 16">
458
+ </symbol>`,HP=`<symbol id="file-tree-builtin-tailwind" viewBox="0 0 16 16">
459
459
  <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"/>
460
- </symbol>`,HP=`<symbol id="file-tree-builtin-terraform" viewBox="0 0 16 16">
460
+ </symbol>`,UP=`<symbol id="file-tree-builtin-terraform" viewBox="0 0 16 16">
461
461
  <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"/>
462
- </symbol>`,UP=`<symbol id="file-tree-builtin-text" viewBox="0 0 16 16">
462
+ </symbol>`,WP=`<symbol id="file-tree-builtin-text" viewBox="0 0 16 16">
463
463
  <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"/>
464
464
  <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"/>
465
- </symbol>`,WP=`<symbol id="file-tree-builtin-typescript" viewBox="0 0 16 16">
465
+ </symbol>`,GP=`<symbol id="file-tree-builtin-typescript" viewBox="0 0 16 16">
466
466
  <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"/>
467
467
  <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"/>
468
- </symbol>`,GP=`<symbol id="file-tree-builtin-vite" viewBox="0 0 16 16">
468
+ </symbol>`,KP=`<symbol id="file-tree-builtin-vite" viewBox="0 0 16 16">
469
469
  <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"/>
470
- </symbol>`,KP=`<symbol id="file-tree-builtin-vscode" viewBox="0 0 16 16">
470
+ </symbol>`,qP=`<symbol id="file-tree-builtin-vscode" viewBox="0 0 16 16">
471
471
  <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"/>
472
472
  <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"/>
473
473
  <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"/>
474
- </symbol>`,qP=`<symbol id="file-tree-builtin-vue" viewBox="0 0 16 16">
474
+ </symbol>`,JP=`<symbol id="file-tree-builtin-vue" viewBox="0 0 16 16">
475
475
  <path fill="currentColor" d="M9.62 2.25 8 5.02 6.38 2.25H1l7 12 7-12z" opacity=".5"/>
476
476
  <path fill="currentColor" d="M9.54 2.25 8 4.95l-1.54-2.7H4l4 7 4-7z"/>
477
- </symbol>`,JP=`<symbol id="file-tree-builtin-wasm" viewBox="0 0 16 16">
477
+ </symbol>`,YP=`<symbol id="file-tree-builtin-wasm" viewBox="0 0 16 16">
478
478
  <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"/>
479
479
  <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"/>
480
480
  <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"/>
481
- </symbol>`,YP=`<symbol id="file-tree-builtin-webpack" viewBox="0 0 16 16">
481
+ </symbol>`,XP=`<symbol id="file-tree-builtin-webpack" viewBox="0 0 16 16">
482
482
  <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"/>
483
483
  <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"/>
484
- </symbol>`,XP=`<symbol id="file-tree-builtin-yml" viewBox="0 0 16 16">
484
+ </symbol>`,ZP=`<symbol id="file-tree-builtin-yml" viewBox="0 0 16 16">
485
485
  <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"/>
486
- </symbol>`,ZP=`<symbol id="file-tree-builtin-zig" viewBox="0 0 16 16">
486
+ </symbol>`,QP=`<symbol id="file-tree-builtin-zig" viewBox="0 0 16 16">
487
487
  <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"/>
488
488
  <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"/>
489
- </symbol>`,QP=[nP,sP,lP,uP,dP,fP,hP,gP,_P,yP,bP,xP,SP,CP,wP,AP,MP,NP,zP,BP,UP,WP,`<symbol id="file-tree-builtin-zip" viewBox="0 0 16 16">
489
+ </symbol>`,$P=[rP,cP,uP,dP,fP,pP,gP,_P,vP,bP,xP,SP,CP,wP,TP,jP,NP,PP,BP,VP,WP,GP,`<symbol id="file-tree-builtin-zip" viewBox="0 0 16 16">
490
490
  <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"/>
491
491
  <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"/>
492
- </symbol>`],$P=[eP,tP,rP,iP,aP,oP,cP,pP,mP,vP,TP,EP,DP,OP,kP,jP,PP,FP,IP,LP,RP,VP,HP,GP,KP,qP,JP,YP,XP,ZP];function eF(e,t){return t.length===0?e:e.replace(`</svg>`,`\n ${t.join(`
493
- `)}\n</svg>`)}var tF=eF($N,QP),nF={minimal:$N,standard:tF,complete:eF(tF,$P)},rF={".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`},iF={"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`},aF={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`]),sF=new Set([`complete`]);function cF(e){return nF[e===`none`?`minimal`:e]}function lF(e){return`file-tree-builtin-${e}`}function uF(e){return e!==`none`&&sF.has(e)}function dF(e,t,n){if(e===`minimal`||e===`none`)return;let r=e===`complete`,i=rF[t.toLowerCase()];if(i!=null&&(r||oF.has(i)))return i;for(let e of n){if(r){let t=aF[e];if(t!=null)return t}let t=iF[e];if(t!=null&&(r||oF.has(t)))return t}return`default`}var fF=`file-tree-container`,pF=`data-file-tree-style`,mF=`data-file-tree-unsafe-css`,hF=`data-file-tree-scrollbar-measure`,gF=`data-file-tree-scrollbar-gutter-measured`,_F=`--trees-scrollbar-gutter-measured`,vF=`header`,yF=`context-menu`,bF=`context-menu-trigger`;function xF(e){return e.spriteSheet!=null||e.remap!=null||e.byFileName!=null||e.byFileExtension!=null||e.byFileNameContains!=null}function SF(e){return e==null?{set:`complete`,colored:!0}:typeof e==`string`?{set:e,colored:!0}:{...e,set:e.set??(xF(e)?`none`:`complete`),colored:e.colored??!0}}var CF=e=>e.trim().toLowerCase(),wF=e=>e.split(`/`).at(-1)??e,TF=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 EF(e,t){return typeof e==`string`?{name:e,remappedFrom:t}:{...e,remappedFrom:t}}function DF(e){let t=SF(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(CF(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=wF(o),c=s.toLowerCase(),l=r.get(c);if(l!=null)return EF(l,e);for(let[t,n]of a)if(c.includes(t))return EF(n,e);let u=TF(s);for(let t of u){let n=i.get(t);if(n!=null)return EF(n,e)}let d=dF(t.set,s,u);if(d!=null&&t.set!==`none`){if(d==="default"){let t=n?.[e];if(t!=null)return EF(t,e)}return{name:lF(d),remappedFrom:e,token:d}}}let s=n?.[e];return s==null?{name:e}:EF(s,e)}}}var OF=5,kF=32,AF=128;function jF(){return{childIdByNameId:new Map,childIds:[],childPositionById:new Map,childVisibleChunkSums:null,totalChildSubtreeNodeCount:0,totalChildVisibleSubtreeCount:0}}function MF(){return{childIdByNameId:null,childIds:[],childPositionById:null,childVisibleChunkSums:null,totalChildSubtreeNodeCount:0,totalChildVisibleSubtreeCount:0}}function NF(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 PF(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 FF(e,t){e.childPositionById!=null&&e.childPositionById.set(t,e.childIds.length),e.childIds.push(t)}function IF(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 LF(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,VF(e,t)}function RF(e,t,n,r){if(e.totalChildSubtreeNodeCount+=n,e.totalChildVisibleSubtreeCount+=r,e.childVisibleChunkSums==null||r===0)return;let i=PF(e).get(t);if(i===void 0)return;let a=i>>OF;e.childVisibleChunkSums[a]+=r}function zF(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=HF(e,t,a,i);return{...r,childVisibleIndex:n-r.localVisibleIndex}}i-=o,a+=kF}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 BF(e,t,n){let r=0,i=t.childVisibleChunkSums,a=0;if(i!=null){let e=n>>OF;for(let t=0;t<e;t+=1)r+=i[t]??0;a=e<<OF}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 VF(e,t){if(t.childIds.length<AF){t.childVisibleChunkSums=null;return}let n=Math.ceil(t.childIds.length/kF),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>>OF]+=a.visibleSubtreeCount)}t.childVisibleChunkSums=r}function HF(e,t,n,r){let i=Math.min(t.childIds.length,n+kF),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 UF=7,WF=3,GF=8,KF=4;function qF(e,t,n=0){return e<<KF|n<<WF|t}function JF(e){return e.depthAndFlags>>>KF}function YF(e){return(e.depthAndFlags&GF)>>WF}function K(e){return(e.depthAndFlags&GF)!==0}function XF(e){return e.depthAndFlags&UF}function ZF(e,t){return(XF(e)&t)!==0}function QF(e,t){e.depthAndFlags|=t}function $F(e,t){e.depthAndFlags=qF(t,XF(e),YF(e))}var eI=Symbol(`benchmarkInstrumentation`);function tI(e,t){return t==null||Object.defineProperty(e,eI,{configurable:!0,enumerable:!1,value:t,writable:!1}),e}function nI(e){return e==null?null:e[eI]??null}function q(e,t,n){return e==null?n():e.measurePhase(t,n)}function rI(e,t,n){Number.isFinite(n)&&e!=null&&e.setCounter(t,n)}function iI(e){return e>=48&&e<=57}function aI(e){let t=[],n=0,r=0;for(;r<e.length;){for(;r<e.length&&!iI(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&&iI(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:aI(t)}}function sI(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 cI(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=sI(e.tokens,t.tokens);return n===0?e.lowerValue===t.lowerValue?0:e.lowerValue<t.lowerValue?-1:1:n}function lI(e,t,n){let r=cI(n(e),n(t));return r===0?e===t?0:e<t?-1:1:r}function uI(e,t){return lI(e,t,oI)}function dI(e,t){return t===e.segments.length-1?+!!e.isDirectory:1}function fI(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=dI(e,r);return a===dI(t,r)?uI(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 pI(e,t){return fI(e,t)}function mI(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=dI(e,n);return o===dI(t,n)?lI(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 hI(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 gI(e={}){return{flattenEmptyDirectories:e.flattenEmptyDirectories!==!1,sort:e.sort??`default`}}function _I(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 vI(e){let{hasTrailingSlash:t,segments:n}=_I(e);return{basename:n[n.length-1]??``,isDirectory:t,path:e,segments:n}}function yI(e){if(e.length===0)return{requiresDirectory:!1,segments:[]};let{hasTrailingSlash:t,segments:n}=_I(e);return{requiresDirectory:t,segments:n}}function bI(){let e=new Map;return e.set(``,0),{idByValue:e,valueById:[``],sortKeyById:[oI(``)]}}function xI(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 SI(e,t){let n=e.valueById[t];if(n===void 0)throw Error(`Unknown segment ID: ${String(t)}`);return n}var CI=Symbol(`pathStorePreparedInputKind`);function wI(e,t){return e[CI]=t,e}function TI(e){return{basename:e.basename,depth:e.segments.length,isDirectory:e.isDirectory,path:e.path,segments:e.segments}}function EI(e,t,n){return n==="default"?pI(e,t):n(TI(e),TI(t))}function DI(){return{depthAndFlags:qF(0,3,1),nameId:0,parentId:0,subtreeNodeCount:1,visibleSubtreeCount:1}}function OI(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 kI(e){return e.isDirectory?e.segments.length:e.segments.length-1}function AI(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 jI(e){return Array.isArray(e)&&e.every(e=>typeof e==`string`)}function MI(e,t={}){return RI(e,t).map(e=>e.path)}function NI(e,t={}){let n=RI(e,t);return wI({paths:n.map(e=>e.path),preparedPaths:n},`prepared`)}function PI(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 wI({paths:e,presortedPaths:e,presortedPathsContainDirectories:n},`presorted`)}function FI(e){let t=e,n=t.preparedPaths;if(t[CI]===`prepared`&&n!=null)return n;if(!AI(n))throw Error(`preparedInput must come from PathStore.prepareInput()`);return n}function II(e){let t=e;return t[CI]===`presorted`&&t.presortedPaths!=null||jI(t.presortedPaths)?t.presortedPaths:null}function LI(e){let t=e;return typeof t.presortedPathsContainDirectories==`boolean`?t.presortedPathsContainDirectories:null}function RI(e,t={}){let n=gI(t),r=nI(t);rI(r,`workload.inputFiles`,e.length);let i=q(r,`store.preparePathEntries.parse`,()=>e.map(e=>vI(e)));return q(r,`store.preparePathEntries.sort`,()=>i.sort((e,t)=>EI(e,t,n.sort))),i}var zI=class{directories=new Map;directoryStack=[0];presortedDirectoryNodeIds=[];initialExpandedPathSet;createdDirectoriesAllExpanded=!1;createdDirectoryCount=0;lastPreparedPath=null;nodes=[DI()];options;instrumentation;segmentSortKeyCache=new Map;segmentTable=bI();hasDeferredDirectoryIndexes=!1;constructor(e={}){this.instrumentation=nI(e),this.options=gI(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,jF())}appendPaths(e){return q(this.instrumentation,`store.builder.appendPaths.parse`,()=>this.appendPreparedPaths(e.map(e=>vI(e))))}appendPreparedPaths(e,t=!0){return this.createdDirectoriesAllExpanded=!1,q(this.instrumentation,`store.builder.appendPreparedPaths`,()=>{for(let n of e)this.appendPreparedPath(n,t)}),this}appendPresortedPaths(e,t=null){return q(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:qF(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:qF(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:qF(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=vI(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:qF(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:qF(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=vI(t)),this.hasDeferredDirectoryIndexes=!0}finish(e={}){let t=e.skipSubtreeCountPass===!0;return this.hasDeferredDirectoryIndexes?(q(this.instrumentation,`store.builder.buildDirectoryIndexes`,()=>this.buildPresortedFinish(t)),this.hasDeferredDirectoryIndexes=!1):t||q(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"?mI(this.lastPreparedPath,e,this.segmentSortKeyCache):EI(this.lastPreparedPath,e,this.options.sort))>0)throw Error(`Builder input must be sorted before appendPaths(): "${e.path}"`)}let n=this.lastPreparedPath,r=kI(e),i=n==null?0:kI(n),a=n==null?0:OI(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=xI(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:qF(JF(o)+1,0),nameId:r,parentId:e,subtreeNodeCount:1,visibleSubtreeCount:1}),a?.set(r,s),FF(i,s),s}createFileChildUnchecked(e,t){let n=xI(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:qF(JF(i)+1,0),nameId:n,parentId:e,subtreeNodeCount:1,visibleSubtreeCount:1}),r.childIdByNameId!=null&&r.childIdByNameId.set(n,a),FF(r,a),a}getOrCreateDirectoryChild(e,t){let n=xI(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&&!K(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:qF(JF(i)+1,0,1),nameId:n,parentId:e,subtreeNodeCount:1,visibleSubtreeCount:1}),r.childIdByNameId!=null&&r.childIdByNameId.set(n,a),FF(r,a),this.directories.set(a,jF()),a}createDirectoryChild(e,t){let n=xI(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:qF(JF(i)+1,0,1),nameId:n,parentId:e,subtreeNodeCount:1,visibleSubtreeCount:1}),r.childIdByNameId!=null&&r.childIdByNameId.set(n,a),FF(r,a),this.directories.set(a,jF()),a}promoteDirectoryToExplicit(e,t){let n=this.nodes[e];if(n===void 0)throw Error(`Unknown directory node ID: ${String(e)}`);if(!K(n))throw Error(`Path is not a directory: "${t}"`);if(ZF(n,1))throw Error(`Duplicate path: "${t}"`);QF(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,MF());let r=-1,i=null;for(let e=1;e<t.length;e++){let a=t[e];if(a==null)continue;if(K(a)){let t=MF();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;K(n)&&this.directories.set(t,jF());let r=this.directories.get(n.parentId);r!=null&&(r.childIdByNameId!=null&&r.childIdByNameId.set(n.nameId,t),FF(r,t))}}computeSubtreeCounts(e){let t=this.nodes[e];if(t===void 0)throw Error(`Unknown node ID: ${String(e)}`);if(!K(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 LF(this.nodes,n),t.subtreeNodeCount=r,t.visibleSubtreeCount=r,r}};function BI(e,t=`closed`,n=null){let r=HI(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 VI(){return{affectedAncestorIds:new Set,affectedNodeIds:new Set,events:[]}}function HI(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 UI(e,t){return ZF(t,2)||e.defaultExpansion===`open`?!0:e.defaultExpansion!==`closed`&&JF(t)<=e.defaultExpansion}function WI(e,t,n=e.snapshot.nodes[t]){return n==null||!K(n)?!1:e.directoriesOpenByDefault&&!e.hasCollapsedDirectoryOverrides?!0:e.collapsedDirectoryIds.has(t)?!1:e.expandedDirectoryIds.has(t)?!0:UI(e,n)}function GI(e,t,n,r=e.snapshot.nodes[t]){if(r==null||!K(r))return;let i=UI(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 KI(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 qI(e,t){return e.directoryLoadInfoById.get(t)?.state??`loaded`}function JI(e,t){let n=KI(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 YI(e,t){let n=KI(e,t);n.activeAttemptId=null,n.errorMessage=null,n.state=`unloaded`}function XI(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 ZI(e,t,n){return e.directoryLoadInfoById.get(t)?.activeAttemptId===n}function QI(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 $I(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 tL(e){return{affectedAncestorIds:e.affectedAncestorIds??[],affectedNodeIds:e.affectedNodeIds??[],canonicalChanged:!0,operation:`add`,path:e.path,projectionChanged:e.projectionChanged,visibleCountDelta:null}}function nL(e){return{affectedAncestorIds:e.affectedAncestorIds??[],affectedNodeIds:e.affectedNodeIds??[],canonicalChanged:!0,operation:`remove`,path:e.path,projectionChanged:e.projectionChanged,recursive:e.recursive,visibleCountDelta:null}}function rL(e){return{affectedAncestorIds:e.affectedAncestorIds??[],affectedNodeIds:e.affectedNodeIds??[],canonicalChanged:!0,from:e.from,operation:`move`,projectionChanged:e.projectionChanged,to:e.to,visibleCountDelta:null}}function iL(e){return{affectedAncestorIds:e.affectedAncestorIds??[],affectedNodeIds:e.affectedNodeIds??[],canonicalChanged:!1,operation:`expand`,path:e.path,projectionChanged:!0,visibleCountDelta:null}}function aL(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 sL(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 cL(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 lL(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 uL(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 dL(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 fL(e,t,n){return{...n,visibleCountDelta:CL(e)-t}}function pL(e,t){let n=CL(e),r=VI();e.transactionStack.push(r);try{t()}catch(t){throw gL(e,r,!1),t}gL(e,r,!0,CL(e)-n)}function mL(e,t){let n=e.instrumentation;if(n==null){hL(e,t);return}q(n,`store.events.record`,()=>hL(e,t))}function hL(e,t){let n=e.transactionStack[e.transactionStack.length-1]??null;if(n==null){xL(e,t);return}n.events.push(t),bL(n,t)}function gL(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?yL(i,t):q(n,`store.events.batch.merge`,()=>yL(i,t));return}let a=_L(t,r),o=e.instrumentation;if(o==null){xL(e,a);return}q(o,`store.events.batch.commit`,()=>xL(e,a))}function _L(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 vL(e,t){for(let n of t.affectedAncestorIds)e.affectedAncestorIds.add(n);for(let n of t.affectedNodeIds)e.affectedNodeIds.add(n)}function yL(e,t){for(let n of t.events)e.events.push(n);vL(e,t)}function bL(e,t){for(let n of t.affectedNodeIds)e.affectedNodeIds.add(n);for(let n of t.affectedAncestorIds)e.affectedAncestorIds.add(n)}function xL(e,t){let n=e.instrumentation;if(n==null){SL(e,t);return}q(n,`store.events.emit`,()=>SL(e,t))}function SL(e,t){e.listeners.get(t.operation)?.forEach(e=>e(t)),e.listeners.get(`*`)?.forEach(e=>e(t))}function CL(e){return e.snapshot.nodes[e.snapshot.rootId]?.visibleSubtreeCount??0}function wL(e,t){if(e.snapshot.options.flattenEmptyDirectories!==!0)return null;let n=e.snapshot.nodes[t];if(n==null||!K(n)||ZF(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||!K(a)?null:i}function TL(e,t){let n=t;for(;;){let t=wL(e,n);if(t==null)return n;n=t}}function EL(e,t){let n=[t],r=t;for(;;){let t=wL(e,r);if(t==null)return n;n.push(t),r=t}}function DL(e,t){let n=t==null?e.snapshot.rootId:IL(e,t);return n==null?[]:RL(e,n)}function OL(e,t){let n=vI(t),r=n.isDirectory?n.segments:n.segments.slice(0,-1),i=$L(e,QL(e,r)),{createdNodeIds:a,directoryId:o}=zL(e,r),s=new Set(a),c=o;if(n.isDirectory){let n=X(e,o);if(ZF(n,1))throw Error(`Path already exists: "${t}"`);QF(n,1),e.pathCacheByNodeId.set(o,{path:t,version:e.pathCacheVersion}),s.add(o)}else c=VL(e,o,n.basename),s.add(c);NL(e,o);let l=$L(e,o);return tL({affectedAncestorIds:FL(e,c),affectedNodeIds:[...s],path:t,projectionChanged:eR(i,l)})}function kL(e,t,n){let r=IL(e,t);if(r==null)throw Error(`Path does not exist: "${t}"`);let i=X(e,r);if(ZF(i,2))throw Error(`The root node cannot be removed`);if(K(i)&&Y(e,r).childIds.length>0&&n.recursive!==!0)throw Error(`Cannot remove a non-empty directory without recursive: "${t}"`);let a=i.parentId,o=$L(e,a),s=XL(e,r);WL(e,a,r,i.nameId),ZL(e,a),NL(e,a);let c=$L(e,a);return nL({affectedAncestorIds:FL(e,a),affectedNodeIds:s,path:t,projectionChanged:eR(o,c),recursive:n.recursive===!0})}function AL(e,t,n,r){let i=IL(e,t);if(i==null)throw Error(`Source path does not exist: "${t}"`);let a=X(e,i);if(ZF(a,2))throw Error(`The root node cannot be moved`);let o=r.collision??`error`,s=JL(e,i,n),c=$L(e,a.parentId),l=$L(e,s.parentId),u=SI(e.snapshot.segmentTable,a.nameId),d=xI(e.snapshot.segmentTable,s.basename);if(s.parentId===a.parentId&&u===s.basename)return null;if(K(a)&&iR(e,i,s.parentId))throw Error(`Cannot move a directory into one of its descendants`);let f=NF(e.snapshot.nodes,Y(e,s.parentId)).get(d),p=s.existingNodeId??f??null;if(p!=null&&p!==i&&YL(e,p,o,YF(a))===`skip`)return null;let m=a.parentId;WL(e,m,i,a.nameId),a.parentId=s.parentId,a.nameId=d,e.pathCacheByNodeId.delete(i),rR(e,i),UL(e,s.parentId,i),ZL(e,m),e.pathCacheVersion++,NL(e,m),s.parentId!==m&&NL(e,s.parentId);let h=$L(e,m),g=$L(e,s.parentId);return rL({affectedAncestorIds:[...new Set([...FL(e,m),...FL(e,s.parentId)])],affectedNodeIds:[i],from:t,projectionChanged:tR([c,l],[h,g]),to:J(e,i)})}function jL(e,t){let n=e.pathCacheByNodeId.get(t);return n!=null&&n.version===e.pathCacheVersion?n.path:null}function ML(e,t,n){return e.pathCacheByNodeId.set(t,{path:n,version:e.pathCacheVersion}),n}function J(e,t){let n=X(e,t),r=jL(e,t);if(r!=null)return r;if(ZF(n,2))return ML(e,t,``);let i=J(e,n.parentId),a=SI(e.snapshot.segmentTable,n.nameId),o=i.length===0?a:`${i}${a}`;return ML(e,t,K(n)?`${o}/`:o)}function NL(e,t){let n=e.instrumentation;if(n==null){oR(e,t);return}q(n,`store.recomputeCountsUpwardFrom`,()=>oR(e,t))}function PL(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||!K(o)){aR(e,a,o,!0),n.pop();continue}let s=i.get(a);if(s==null||t[1]>=s.childIds.length){aR(e,a,o,!0),n.pop();continue}let c=s.childIds[t[1]++];n.push([c,0])}}function FL(e,t){let n=[],r=t;for(;r!=null;){let t=X(e,r);if(n.push(r),r===e.snapshot.rootId)break;r=t.parentId}return n}function IL(e,t){if(t.length===0)return e.snapshot.rootId;let n=yI(t);return LL(e,n.segments,n.requiresDirectory)}function LL(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=Y(e,r),a=NF(e.snapshot.nodes,i).get(t);if(a===void 0)return null;r=a}let i=X(e,r);return n&&!K(i)?null:r}function Y(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 X(e,t){let n=e.snapshot.nodes[t];if(n===void 0||ZF(n,4))throw Error(`Unknown node ID: ${String(t)}`);return n}function RL(e,t){let n=e.snapshot.nodes[t];if(n===void 0||ZF(n,4))return[];if(!K(n))return[J(e,t)];if(Y(e,t).childIds.length===0)return ZF(n,1)&&!ZF(n,2)?[J(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||ZF(n,4)){i.pop();continue}if(!K(n)){r.push(J(e,t.nodeId)),i.pop();continue}let a=Y(e,t.nodeId);if(a.childIds.length===0){ZF(n,1)&&!ZF(n,2)&&r.push(J(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 zL(e,t){let n=[],r=e.snapshot.rootId;for(let i of t){let t=xI(e.snapshot.segmentTable,i),a=Y(e,r),o=NF(e.snapshot.nodes,a).get(t);if(o!==void 0){if(!K(X(e,o)))throw Error(`Cannot create a directory that collides with an existing file: "${i}"`);r=o;continue}r=BL(e,r,t),n.push(r)}return{createdNodeIds:n,directoryId:r}}function BL(e,t,n){let r=X(e,t),i=e.snapshot.nodes.length;return e.snapshot.nodes.push({depthAndFlags:qF(JF(r)+1,0,1),nameId:n,parentId:t,subtreeNodeCount:1,visibleSubtreeCount:1}),e.snapshot.directories.set(i,jF()),UL(e,t,i),e.collapseNewDirectoriesByDefault&&(e.collapsedDirectoryIds.add(i),e.hasCollapsedDirectoryOverrides=!0),e.activeNodeCount++,i}function VL(e,t,n){let r=xI(e.snapshot.segmentTable,n),i=Y(e,t);if(NF(e.snapshot.nodes,i).has(r))throw Error(`Path already exists: "${cR(e,t,n)}"`);let a=X(e,t),o=e.snapshot.nodes.length;return e.snapshot.nodes.push({depthAndFlags:qF(JF(a)+1,0),nameId:r,parentId:t,subtreeNodeCount:1,visibleSubtreeCount:1}),UL(e,t,o),e.activeNodeCount++,o}function HL(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}GL(e,n,o)<0?i=a:r=a+1}return r}function UL(e,t,n){let r=Y(e,t),i=X(e,n);NF(e.snapshot.nodes,r).set(i.nameId,n),RF(r,n,i.subtreeNodeCount,i.visibleSubtreeCount);let a=HL(e,r,n);r.childIds.splice(a,0,n),IF(r,a),VF(e.snapshot.nodes,r)}function WL(e,t,n,r){let i=Y(e,t),a=PF(i),o=a.get(n)??-1;NF(e.snapshot.nodes,i).delete(r),a.delete(n);let s=e.snapshot.nodes[n];s!=null&&RF(i,n,-s.subtreeNodeCount,-s.visibleSubtreeCount),o>=0&&(i.childIds.splice(o,1),IF(i,o),VF(e.snapshot.nodes,i))}function GL(e,t,n){let r=e.snapshot.options.sort;return r==="default"?KL(e,t,n):r(qL(e,t),qL(e,n))}function KL(e,t,n){let r=X(e,t),i=X(e,n),a=K(r);if(a!==K(i))return a?-1:1;let o=cI(hI(e.snapshot.segmentTable,r.nameId),hI(e.snapshot.segmentTable,i.nameId));if(o!==0)return o;let s=SI(e.snapshot.segmentTable,r.nameId),c=SI(e.snapshot.segmentTable,i.nameId);return s===c?t<n?-1:1:s<c?-1:1}function qL(e,t){let n=X(e,t),r=J(e,t),i=K(n),a=i?r.slice(0,-1):r;return{basename:SI(e.snapshot.segmentTable,n.nameId),depth:JF(n),isDirectory:i,path:r,segments:a.length===0?[]:a.split(`/`)}}function JL(e,t,n){let r=X(e,t),i=IL(e,n);if(i!=null){let t=X(e,i);if(K(t))return{basename:SI(e.snapshot.segmentTable,r.nameId),existingNodeId:null,parentId:i};let a=yI(n).segments;return{basename:a[a.length-1]??``,existingNodeId:i,parentId:t.parentId}}let a=yI(n),o=a.segments[a.segments.length-1]??``,s=a.segments.slice(0,-1),c=s.length===0?e.snapshot.rootId:LL(e,s,!0);if(c==null)throw Error(`Destination parent does not exist: "${n}"`);return{basename:o,existingNodeId:null,parentId:c}}function YL(e,t,n,r){if(n===`skip`)return`skip`;if(n===`error`)throw Error(`Destination already exists: "${J(e,t)}"`);let i=X(e,t);if(YF(i)!==r)throw Error(`replace collision requires the same source and destination kinds`);if(K(i)&&Y(e,t).childIds.length>0)throw Error(`replace collision does not support non-empty directories`);let a=i.parentId,o=i.nameId;return XL(e,t),WL(e,a,t,o),ZL(e,a),NL(e,a),`handled`}function XL(e,t){let n=[],r=[{nodeId:t,visitedChildren:!1}];for(;r.length>0;){let t=r.pop();if(t==null)break;let i=X(e,t.nodeId);if(t.visitedChildren||!K(i)){K(i)&&e.snapshot.directories.delete(t.nodeId),QF(i,4),e.pathCacheByNodeId.delete(t.nodeId),e.collapsedDirectoryIds.delete(t.nodeId)&&(e.hasCollapsedDirectoryOverrides=e.collapsedDirectoryIds.size>0),e.expandedDirectoryIds.delete(t.nodeId),$I(e,t.nodeId),e.activeNodeCount--,n.push(t.nodeId);continue}r.push({nodeId:t.nodeId,visitedChildren:!0});let a=Y(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 ZL(e,t){let n=t;for(;n!=null;){let t=X(e,n);if(!K(t)||ZF(t,2)||Y(e,n).childIds.length>0)return;QF(t,1),n=t.parentId===n?null:t.parentId}}function QL(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=NF(e.snapshot.nodes,Y(e,n)).get(t);if(i==null||!K(X(e,i)))break;n=i}return n}function $L(e,t){let n=nR(e,t);if(n==null)return null;let r=TL(e,n),i=X(e,r),a=n===r?null:EL(e,n).map(t=>J(e,t));return JSON.stringify({flattenedSegmentPaths:a,hasChildren:Y(e,r).childIds.length>0,path:J(e,r),terminalKind:YF(i)})}function eR(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 nR(e,t){let n=t;for(;n!=null;){let t=X(e,n);if(!K(t)||ZF(t,2))return null;if(!WI(e,n,t))return n;n=t.parentId}return null}function rR(e,t){let n=X(e,t);if($F(n,(t===e.snapshot.rootId?-1:JF(X(e,n.parentId)))+1),!K(n))return;let r=Y(e,t);for(let t of r.childIds)rR(e,t)}function iR(e,t,n){let r=n;for(;r!=null;){if(r===t)return!0;let n=X(e,r);if(r===e.snapshot.rootId)return!1;r=n.parentId}return!1}function aR(e,t,n=X(e,t),r=!1){let i=e.instrumentation;if(i==null){sR(e,t,n,r);return}q(i,`store.recomputeNodeCounts`,()=>sR(e,t,n,r))}function oR(e,t){let n=t;for(;n!=null;){let t=X(e,n),r=t.subtreeNodeCount,i=t.visibleSubtreeCount;if(aR(e,n,t),n===e.snapshot.rootId)return;let a=t.subtreeNodeCount-r,o=t.visibleSubtreeCount-i,s=t.parentId;(a!==0||o!==0)&&RF(Y(e,s),n,a,o),n=s}}function sR(e,t,n,r){if(!K(n)){n.subtreeNodeCount=1,n.visibleSubtreeCount=1;return}let i=Y(e,t);if(r){let t=e.instrumentation;t==null?LF(e.snapshot.nodes,i):q(t,`store.recomputeNodeCounts.rebuildChildAggregates`,()=>LF(e.snapshot.nodes,i))}let a=1+i.totalChildSubtreeNodeCount,o=i.totalChildVisibleSubtreeCount;if(n.subtreeNodeCount=a,ZF(n,2)){n.visibleSubtreeCount=o;return}n.visibleSubtreeCount=wL(e,t)==null?WI(e,t,n)?1+o:1:o}function cR(e,t,n){let r=J(e,t);return r.length===0?n:`${r}${n}`}function lR(e){return e!=null&&!ZF(e,4)}function uR(e,t){let n=e.snapshot.nodes[t];return!lR(n)||!K(n)||ZF(n,2)?null:n}function dR(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 fR(e){return Math.max(0,e.valueById.length-1)}function pR(e){return{activeNodeCount:e.activeNodeCount,cachedPathEntryCount:dR(e),loadInfoEntryCount:e.directoryLoadInfoById.size,segmentCount:fR(e.snapshot.segmentTable),totalNodeSlotCount:Math.max(0,e.snapshot.nodes.length-1)}}function mR(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 hR(e){let t=[],n=[];for(let n of e.collapsedDirectoryIds)uR(e,n)!=null&&t.push(J(e,n));for(let t of e.expandedDirectoryIds)uR(e,t)!=null&&n.push(J(e,t));return{collapsedPaths:t,expandedPaths:n}}function gR(e){let t=[];for(let[n,r]of e.directoryLoadInfoById)uR(e,n)!=null&&qI(e,n)!==`loaded`&&t.push({info:{activeAttemptId:null,errorMessage:r.errorMessage,nextAttemptId:r.nextAttemptId,state:r.state},path:J(e,n)});return t}function _R(e,t){e.collapsedDirectoryIds.clear(),e.hasCollapsedDirectoryOverrides=!1,e.expandedDirectoryIds.clear();for(let n of t.expandedPaths){let t=IL(e,n);t!=null&&GI(e,t,!0,X(e,t))}for(let n of t.collapsedPaths){let t=IL(e,n);t!=null&&GI(e,t,!1,X(e,t))}}function vR(e,t){e.directoryLoadInfoById.clear();for(let n of t){let t=IL(e,n.path);t!=null&&uR(e,t)!=null&&e.directoryLoadInfoById.set(t,{activeAttemptId:null,errorMessage:n.info.errorMessage,nextAttemptId:n.info.nextAttemptId,state:n.info.state})}}function yR(e){e.pathCacheVersion+=1,e.pathCacheByNodeId.clear(),e.pathCacheByNodeId.set(e.snapshot.rootId,{path:``,version:e.pathCacheVersion})}function bR(e){let t=e.snapshot.segmentTable,n=bI();for(let r of e.snapshot.nodes)if(lR(r)){if(ZF(r,2)){r.nameId=0;continue}r.nameId=xI(n,SI(t,r.nameId))}e.snapshot.segmentTable=n}function xR(e){for(let[t,n]of e.snapshot.directories){let r=e.snapshot.nodes[t];if(!lR(r)||!K(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=>[X(e,t).nameId,t])),n.childPositionById=new Map(i.map((e,t)=>[e,t])),LF(e.snapshot.nodes,n)}}function SR(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 CR(e){let t=hR(e),n=gR(e);q(e.instrumentation,`store.cleanup.stable.clearPathCaches`,()=>yR(e)),q(e.instrumentation,`store.cleanup.stable.rebuildSegmentTable`,()=>bR(e)),q(e.instrumentation,`store.cleanup.stable.rebuildDirectoryIndexes`,()=>xR(e)),q(e.instrumentation,`store.cleanup.stable.trimTrailingRemovedNodeSlots`,()=>SR(e)),q(e.instrumentation,`store.cleanup.stable.restoreExpansionOverrides`,()=>_R(e,t)),q(e.instrumentation,`store.cleanup.stable.restoreDirectoryLoadInfos`,()=>vR(e,n)),q(e.instrumentation,`store.cleanup.stable.recomputeCounts`,()=>PL(e,e.snapshot.rootId))}function wR(e){let t=hR(e),n=gR(e),r=q(e.instrumentation,`store.cleanup.aggressive.listPaths`,()=>DL(e)),i=tI({...e.snapshot.options},e.instrumentation),a=q(e.instrumentation,`store.cleanup.aggressive.rebuildSnapshot`,()=>{let e=new zI(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,q(e.instrumentation,`store.cleanup.aggressive.restoreExpansionOverrides`,()=>_R(e,t)),q(e.instrumentation,`store.cleanup.aggressive.restoreDirectoryLoadInfos`,()=>vR(e,n)),q(e.instrumentation,`store.cleanup.aggressive.recomputeCounts`,()=>PL(e,e.snapshot.rootId))}function TR(e){for(let t of e.directoryLoadInfoById.values())if(t.state===`loading`&&t.activeAttemptId!=null)return!0;return!1}function ER(e,t){let n=pR(e);t===`stable`?q(e.instrumentation,`store.cleanup.stable`,()=>CR(e)):q(e.instrumentation,`store.cleanup.aggressive`,()=>wR(e));let r=pR(e);return mR(t,t===`stable`,n,r)}var DR=64;function OR(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 kR(e){return X(e,e.snapshot.rootId).visibleSubtreeCount}function AR(e,t,n,r){let i=X(e,t.terminalNodeId),a=Math.max(1,i.visibleSubtreeCount);return Math.min(r-1,n+a-1)}function jR(e,t,n,r){return{ancestorPaths:r,index:t.index,posInSet:t.posInSet,row:XR(e,t.cursor),setSize:t.setSize,subtreeEndIndex:AR(e,t.cursor,t.index,n)}}function MR(e,t,n,r,i,a){let o=Y(e,t),{childIndex:s,childVisibleIndex:c,localVisibleIndex:l}=zF(e.snapshot.nodes,o,n),u=o.childIds[s];if(u==null)throw Error(`Visible index ${String(n)} is out of range`);return NR(e,u,l,r+c,i+1,s,o.childIds.length,a)}function NR(e,t,n,r,i,a,o,s){if(!K(X(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=WR(e,t,i);if(n===0)return{ancestors:s,cursor:c,index:r,posInSet:a,setSize:o};let l=X(e,c.terminalNodeId);if(!K(l)||!WI(e,c.terminalNodeId,l))throw Error(`Visible index ${String(n)} is out of range for collapsed directory`);return MR(e,c.terminalNodeId,n-1,r+1,c.visibleDepth,[...s,{cursor:c,index:r,posInSet:a,setSize:o}])}function PR(e,t){let n=kR(e);if(t<0||t>=n)return null;let r=MR(e,e.snapshot.rootId,t,0,-1,[]),i=r.ancestors.map(t=>J(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=jR(e,a,n,[...i]);t.push(r),i.push(r.row.path)}return a=t,a},index:r.index,posInSet:r.posInSet,row:XR(e,r.cursor),setSize:r.setSize,subtreeEndIndex:AR(e,r.cursor,r.index,n)}}function FR(e,t,n){let r=e.instrumentation,i=kR(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 YR(e,o+1);let t=[],n=VR(e,a);for(let r=a;r<=o&&n!=null;r++){let r=XR(e,n);t.push(r),n=KR(e,n)}return t}let s=[],c=0,l=0,u=q(r,`store.getVisibleSlice.selectFirstRow`,()=>VR(e,a));for(let t=a;t<=o&&u!=null;t++){let t=q(r,`store.getVisibleSlice.materializeRow`,()=>XR(e,u));s.push(t),t.isFlattened&&(c++,l+=t.flattenedSegments?.length??0),u=q(r,`store.getVisibleSlice.advanceCursor`,()=>KR(e,u))}return rI(r,`workload.visibleRowsRead`,s.length),rI(r,`workload.flattenedRowsRead`,c),rI(r,`workload.flattenedSegmentsRead`,l),s}function IR(e,t=kR(e)){let n=e.instrumentation;return n==null?JR(e,t):q(n,`store.getVisibleTreeProjection`,()=>JR(e,t))}function LR(e){return qR(IR(e))}function RR(e,t){let n=IL(e,t);if(n==null||n===e.snapshot.rootId||K(X(e,n))&&TL(e,n)!==n)return null;let r=0,i=n,{nodes:a,rootId:o}=e.snapshot;for(;i!==o;){let t=X(e,i).parentId,n=Y(e,t),s=PF(n).get(i);if(s==null)throw Error(`Child ${String(i)} was not found in its parent index`);if(r+=BF(a,n,s),t!==o){let n=X(e,t),a=wL(e,t);if(!WI(e,t,n)&&a!==i)return null;TL(e,t)===t&&(r+=1)}i=t}return r}function zR(e,t){let n=IL(e,t);if(n==null)throw Error(`Path does not exist: "${t}"`);let r=X(e,n);if(!K(r))throw Error(`Path is not a directory: "${t}"`);return WI(e,n,r)?null:(GI(e,n,!0,r),NL(e,n),iL({affectedAncestorIds:FL(e,n),affectedNodeIds:[n],path:t,projectionChanged:!0}))}function BR(e,t){let n=IL(e,t);if(n==null)throw Error(`Path does not exist: "${t}"`);let r=X(e,n);if(!K(r))throw Error(`Path is not a directory: "${t}"`);return WI(e,n,r)?(GI(e,n,!1,r),NL(e,n),aL({affectedAncestorIds:FL(e,n),affectedNodeIds:[n],path:t,projectionChanged:!0})):null}function VR(e,t){return t<0||t>=kR(e)?null:HR(e,e.snapshot.rootId,t,-1)}function HR(e,t,n,r){let i=Y(e,t),a=e.instrumentation,{childIndex:o,localVisibleIndex:s}=a==null?zF(e.snapshot.nodes,i,n):q(a,`store.getVisibleSlice.selectChildIndex`,()=>zF(e.snapshot.nodes,i,n)),c=i.childIds[o];if(c!=null)return UR(e,c,s,r+1);throw Error(`Visible index ${String(n)} is out of range`)}function UR(e,t,n,r){if(!K(X(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=WR(e,t,r);if(n===0)return i;let a=X(e,i.terminalNodeId);if(!K(a)||!WI(e,i.terminalNodeId,a))throw Error(`Visible index ${String(n)} is out of range for collapsed directory`);return HR(e,i.terminalNodeId,n-1,i.visibleDepth)}function WR(e,t,n){return K(X(e,t))?e.instrumentation==null?{headNodeId:t,terminalNodeId:TL(e,t),visibleDepth:n}:{headNodeId:t,terminalNodeId:q(e.instrumentation,`store.getVisibleSlice.flatten.resolveTerminalDirectory`,()=>TL(e,t)),visibleDepth:n}:{headNodeId:t,terminalNodeId:t,visibleDepth:n}}function GR(e,t){let n=X(e,t);if(!K(n))return!0;let r=n.parentId;return r===e.snapshot.rootId||wL(e,r)!==t}function KR(e,t){let n=X(e,t.terminalNodeId);if(K(n)){let r=Y(e,t.terminalNodeId);if(WI(e,t.terminalNodeId,n)&&r.childIds.length>0){let n=r.childIds[0];return n==null?null:UR(e,n,0,t.visibleDepth+1)}}let r=t.terminalNodeId,i=t.visibleDepth;for(;;){let t=X(e,r);if(r===e.snapshot.rootId)return null;let n=t.parentId,a=Y(e,n),o=PF(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 UR(e,s,0,i);GR(e,r)&&i--,r=n}}function qR(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 JR(e,t){let n=Array(t),r=new Int32Array(t),i=new Int32Array(t),a=new Int32Array(t),o=new Int32Array(DR);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=OR(o,y);let x,S=_;if(K(v))S=f?TL(e,_):_,x=S===_?`${b}${h[v.nameId]}/`:J(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&&K(C)&&WI(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 YR(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(!K(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:J(e,f)};continue}let h=l?TL(e,f):f,g={headNodeId:f,terminalNodeId:h,visibleDepth:m};n[r++]=XR(e,g);let _=i[h];_!=null&&K(_)&&WI(e,h,_)&&s.push([a.get(h),0,m])}return r<t&&(n.length=r),n}function XR(e,t){let n=X(e,t.terminalNodeId),r=K(n)?ZR(e,t):null,i=J(e,t.terminalNodeId),a=SI(e.snapshot.segmentTable,n.nameId),o=K(n)&&Y(e,t.terminalNodeId).childIds.length>0,s=t.headNodeId!==t.terminalNodeId,c=e.instrumentation,l=s?c==null?EL(e,t.headNodeId).map(n=>{let r=X(e,n);return{isTerminal:n===t.terminalNodeId,name:SI(e.snapshot.segmentTable,r.nameId),nodeId:n,path:J(e,n)}}):q(c,`store.getVisibleSlice.flatten.collectSegments`,()=>EL(e,t.headNodeId).map(n=>{let r=X(e,n);return{isTerminal:n===t.terminalNodeId,name:SI(e.snapshot.segmentTable,r.nameId),nodeId:n,path:J(e,n)}})):void 0;return{depth:t.visibleDepth,flattenedSegments:l,hasChildren:o,id:t.terminalNodeId,isExpanded:K(n)&&WI(e,t.terminalNodeId,n),isFlattened:s,isLoading:r===`loading`,kind:K(n)?`directory`:`file`,loadState:r==null||r===`loaded`?void 0:r,name:a,path:i}}function ZR(e,t){if(t.headNodeId===t.terminalNodeId)return qI(e,t.terminalNodeId);let n=EL(e,t.headNodeId),r=!1,i=!1;for(let t of n){let n=qI(e,t);if(n===`loading`)return`loading`;if(n===`error`){i=!0;continue}n===`unloaded`&&(r=!0)}return i?`error`:r?`unloaded`:`loaded`}var QR=8;function $R(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 ez(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]&QR)===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]]&QR)===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||!K(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&&VF(n,i),r.subtreeNodeCount=1+c;let u;if(o&&s===1){let e=n[a[0]];u=e!=null&&K(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,VF(n,l),c.subtreeNodeCount=1+d,c.visibleSubtreeCount=f}function nz(e){let{directories:t,nodes:n,rootId:r}=e.snapshot,i=$R(e.snapshot);ez(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)&&VF(n,i)}}function rz(e){return e.initialExpansion===`open`&&(e.initialExpandedPaths==null||e.initialExpandedPaths.length===0)}var iz=class e{#e;constructor(e={}){let t=nI(e),n=q(t,`store.builder.create`,()=>new zI(e));if(e.preparedInput!=null){let t=II(e.preparedInput);t==null?n.appendPreparedPaths(FI(e.preparedInput),!1):n.appendPresortedPaths(t,LI(e.preparedInput))}else{let r=e.paths??[];e.presorted===!0?n.appendPaths(r):n.appendPreparedPaths(q(t,`store.preparePathEntries`,()=>RI(r,e)))}let r=q(t,`store.builder.finish`,()=>n.finish({skipSubtreeCountPass:!0})),i=q(t,`store.state.detectAllDirectoriesExpanded`,()=>(e.initialExpansion??`closed`)===`closed`&&n.didMatchAllInitialExpandedPaths());this.#e=q(t,`store.state.create`,()=>BI(r,i?`open`:e.initialExpansion??`closed`,t)),i&&(this.#e.collapseNewDirectoriesByDefault=!0);let a=i?this.#e.snapshot.directories.size-1:q(t,`store.state.initializeExpandedPaths`,()=>this.initializeExpandedPaths(e.initialExpandedPaths));i||rz(e)||(e.initialExpansion??`closed`)===`closed`&&a===this.#e.snapshot.directories.size-1||(e.initialExpandedPaths?.length??0)>0&&q(t,`store.state.checkAllDirectoriesExpanded`,()=>this.hasAllDirectoriesExpanded())?e.useSoaCountSweep===!0?q(t,`store.state.initializeOpenVisibleCountsViaSoa`,()=>nz(this.#e)):q(t,`store.state.initializeOpenVisibleCounts`,()=>tz(this.#e)):q(t,`store.state.recomputeCounts`,()=>PL(this.#e,this.#e.snapshot.rootId))}static preparePaths(e,t={}){return MI(e,t)}static prepareInput(e,t={}){return NI(e,t)}static preparePresortedInput(e){return PI(e)}list(e){return q(this.#e.instrumentation,`store.list`,()=>DL(this.#e,e))}add(e){q(this.#e.instrumentation,`store.add`,()=>{let t=kR(this.#e);mL(this.#e,fL(this.#e,t,OL(this.#e,e)))})}remove(e,t={}){q(this.#e.instrumentation,`store.remove`,()=>{let n=kR(this.#e);mL(this.#e,fL(this.#e,n,kL(this.#e,e,t)))})}move(e,t,n={}){q(this.#e.instrumentation,`store.move`,()=>{let r=kR(this.#e),i=AL(this.#e,e,t,n);i!=null&&mL(this.#e,fL(this.#e,r,i))})}batch(e){pL(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 q(this.#e.instrumentation,`store.getVisibleCount`,()=>kR(this.#e))}getVisibleSlice(e,t){return q(this.#e.instrumentation,`store.getVisibleSlice`,()=>FR(this.#e,e,t))}getVisibleRowContext(e){return q(this.#e.instrumentation,`store.getVisibleRowContext`,()=>PR(this.#e,e))}getVisibleTreeProjection(){return LR(this.#e)}getVisibleTreeProjectionData(e){return IR(this.#e,e)}getVisibleIndex(e){return q(this.#e.instrumentation,`store.getVisibleIndex`,()=>RR(this.#e,e))}getPathInfo(e){return q(this.#e.instrumentation,`store.getPathInfo`,()=>{let t=IL(this.#e,e);if(t==null)return null;let n=X(this.#e,t);return{depth:JF(n),kind:K(n)?`directory`:`file`,path:J(this.#e,t)}})}isExpanded(e){return q(this.#e.instrumentation,`store.isExpanded`,()=>{let t=this.requireDirectoryNodeId(e),n=X(this.#e,t);return WI(this.#e,t,n)})}expand(e){q(this.#e.instrumentation,`store.expand`,()=>{let t=kR(this.#e),n=zR(this.#e,e);n!=null&&mL(this.#e,fL(this.#e,t,n))})}collapse(e){q(this.#e.instrumentation,`store.collapse`,()=>{let t=kR(this.#e),n=BR(this.#e,e);n!=null&&mL(this.#e,fL(this.#e,t,n))})}on(e,t){return eL(this.#e,e,t)}getDirectoryLoadState(e){let t=this.requireDirectoryNodeId(e);return qI(this.#e,t)}markDirectoryUnloaded(e){q(this.#e.instrumentation,`store.markDirectoryUnloaded`,()=>{let t=this.requireDirectoryNodeId(e);if(Y(this.#e,t).childIds.length>0)throw Error(`Cannot mark a directory with known children as unloaded: "${e}"`);let n=kR(this.#e);YI(this.#e,t),mL(this.#e,fL(this.#e,n,oL({affectedAncestorIds:FL(this.#e,t),affectedNodeIds:[t],path:e,projectionChanged:this.isDirectoryProjectionVisible(t)})))})}beginChildLoad(e){return q(this.#e.instrumentation,`store.beginChildLoad`,()=>{let t=this.requireDirectoryNodeId(e),n=kR(this.#e),r=JI(this.#e,t);return mL(this.#e,fL(this.#e,n,sL({affectedAncestorIds:FL(this.#e,t),affectedNodeIds:[t],attemptId:r.attemptId,path:e,projectionChanged:this.isDirectoryProjectionVisible(t),reused:r.reused}))),r})}applyChildPatch(e,t){return q(this.#e.instrumentation,`store.applyChildPatch`,()=>{let n=this.resolveActiveDirectoryNodeId(e.nodeId);if(n==null||qI(this.#e,n)!==`loading`||!ZI(this.#e,n,e.attemptId))return!1;let r=J(this.#e,n);this.validateChildPatch(r,t);let i=kR(this.#e),a=[];for(let e of t.operations){az(r,e);let t=kR(this.#e);switch(e.type){case`add`:a.push(fL(this.#e,t,OL(this.#e,e.path)));break;case`remove`:a.push(fL(this.#e,t,kL(this.#e,e.path,{recursive:e.recursive})));break;case`move`:{let n=AL(this.#e,e.from,e.to,{collision:e.collision});n!=null&&a.push(fL(this.#e,t,n));break}}}let o=a.some(e=>e.projectionChanged)||this.isDirectoryProjectionVisible(n);return mL(this.#e,fL(this.#e,i,cL({affectedAncestorIds:FL(this.#e,n),affectedNodeIds:[n],attemptId:e.attemptId,childEvents:a,path:J(this.#e,n),projectionChanged:o}))),!0})}completeChildLoad(e){return q(this.#e.instrumentation,`store.completeChildLoad`,()=>{let t=this.resolveActiveDirectoryNodeId(e.nodeId);if(t==null)return!1;let n=kR(this.#e),r=XI(this.#e,t,e.attemptId);return mL(this.#e,fL(this.#e,n,lL({affectedAncestorIds:FL(this.#e,t),affectedNodeIds:[t],attemptId:e.attemptId,path:J(this.#e,t),projectionChanged:this.isDirectoryProjectionVisible(t),stale:!r}))),r})}failChildLoad(e,t){return q(this.#e.instrumentation,`store.failChildLoad`,()=>{let n=this.resolveActiveDirectoryNodeId(e.nodeId);if(n==null)return!1;let r=kR(this.#e),i=QI(this.#e,n,e.attemptId,t);return mL(this.#e,fL(this.#e,r,uL({affectedAncestorIds:FL(this.#e,n),affectedNodeIds:[n],attemptId:e.attemptId,errorMessage:t,path:J(this.#e,n),projectionChanged:this.isDirectoryProjectionVisible(n),stale:!i}))),i})}cleanup(e={}){return q(this.#e.instrumentation,`store.cleanup`,()=>{if(this.#e.transactionStack.length>0)throw Error(`Cleanup cannot run during an open batch or transaction.`);if(TR(this.#e))throw Error(`Cleanup cannot run while directory loads are active.`);let t=kR(this.#e),n=ER(this.#e,e.mode??`stable`);return mL(this.#e,fL(this.#e,t,dL({...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=Y(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=cI(hI(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(!K(X(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=X(this.#e,n);WI(this.#e,n,i)||(GI(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=X(this.#e,e);if(!WI(this.#e,e,t))return!1}return!0}requireDirectoryNodeId(e){let t=IL(this.#e,e);if(t==null)throw Error(`Path does not exist: "${e}"`);if(!K(X(this.#e,t)))throw Error(`Path is not a directory: "${e}"`);return t}resolveActiveDirectoryNodeId(e){try{if(!K(X(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=X(this.#e,t).parentId;if(e!==this.#e.snapshot.rootId){let n=X(this.#e,e),r=wL(this.#e,e);if(!WI(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 az(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 oz={compact:{itemHeight:24,factor:.8},default:{itemHeight:30,factor:1},relaxed:{itemHeight:36,factor:1.2}};function sz(e,t){if(typeof e==`number`)return{itemHeight:t??oz.default.itemHeight,factor:e};let n=oz[e??`default`];return{itemHeight:t??n.itemHeight,factor:n.factor}}var cz=oz.default.itemHeight,lz=`@layer base {
492
+ </symbol>`],eF=[tP,nP,iP,aP,oP,sP,lP,mP,hP,yP,EP,DP,OP,kP,AP,MP,FP,IP,LP,RP,zP,HP,UP,KP,qP,JP,YP,XP,ZP,QP];function tF(e,t){return t.length===0?e:e.replace(`</svg>`,`\n ${t.join(`
493
+ `)}\n</svg>`)}var nF=tF(eP,$P),rF={minimal:eP,standard:nF,complete:tF(nF,eF)},iF={".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`},oF={jsx:`react`,sass:`sass`,scss:`sass`,tsx:`react`},sF=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`]),cF=new Set([`complete`]);function lF(e){return rF[e===`none`?`minimal`:e]}function uF(e){return`file-tree-builtin-${e}`}function dF(e){return e!==`none`&&cF.has(e)}function fF(e,t,n){if(e===`minimal`||e===`none`)return;let r=e===`complete`,i=iF[t.toLowerCase()];if(i!=null&&(r||sF.has(i)))return i;for(let e of n){if(r){let t=oF[e];if(t!=null)return t}let t=aF[e];if(t!=null&&(r||sF.has(t)))return t}return`default`}var pF=`file-tree-container`,mF=`data-file-tree-style`,hF=`data-file-tree-unsafe-css`,gF=`data-file-tree-scrollbar-measure`,_F=`data-file-tree-scrollbar-gutter-measured`,vF=`--trees-scrollbar-gutter-measured`,yF=`header`,bF=`context-menu`,xF=`context-menu-trigger`;function SF(e){return e.spriteSheet!=null||e.remap!=null||e.byFileName!=null||e.byFileExtension!=null||e.byFileNameContains!=null}function CF(e){return e==null?{set:`complete`,colored:!0}:typeof e==`string`?{set:e,colored:!0}:{...e,set:e.set??(SF(e)?`none`:`complete`),colored:e.colored??!0}}var wF=e=>e.trim().toLowerCase(),TF=e=>e.split(`/`).at(-1)??e,EF=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 DF(e,t){return typeof e==`string`?{name:e,remappedFrom:t}:{...e,remappedFrom:t}}function OF(e){let t=CF(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(wF(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=TF(o),c=s.toLowerCase(),l=r.get(c);if(l!=null)return DF(l,e);for(let[t,n]of a)if(c.includes(t))return DF(n,e);let u=EF(s);for(let t of u){let n=i.get(t);if(n!=null)return DF(n,e)}let d=fF(t.set,s,u);if(d!=null&&t.set!==`none`){if(d==="default"){let t=n?.[e];if(t!=null)return DF(t,e)}return{name:uF(d),remappedFrom:e,token:d}}}let s=n?.[e];return s==null?{name:e}:DF(s,e)}}}var kF=5,AF=32,jF=128;function MF(){return{childIdByNameId:new Map,childIds:[],childPositionById:new Map,childVisibleChunkSums:null,totalChildSubtreeNodeCount:0,totalChildVisibleSubtreeCount:0}}function NF(){return{childIdByNameId:null,childIds:[],childPositionById:null,childVisibleChunkSums:null,totalChildSubtreeNodeCount:0,totalChildVisibleSubtreeCount:0}}function PF(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 FF(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 IF(e,t){e.childPositionById!=null&&e.childPositionById.set(t,e.childIds.length),e.childIds.push(t)}function LF(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 RF(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,HF(e,t)}function zF(e,t,n,r){if(e.totalChildSubtreeNodeCount+=n,e.totalChildVisibleSubtreeCount+=r,e.childVisibleChunkSums==null||r===0)return;let i=FF(e).get(t);if(i===void 0)return;let a=i>>kF;e.childVisibleChunkSums[a]+=r}function BF(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=UF(e,t,a,i);return{...r,childVisibleIndex:n-r.localVisibleIndex}}i-=o,a+=AF}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 VF(e,t,n){let r=0,i=t.childVisibleChunkSums,a=0;if(i!=null){let e=n>>kF;for(let t=0;t<e;t+=1)r+=i[t]??0;a=e<<kF}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 HF(e,t){if(t.childIds.length<jF){t.childVisibleChunkSums=null;return}let n=Math.ceil(t.childIds.length/AF),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>>kF]+=a.visibleSubtreeCount)}t.childVisibleChunkSums=r}function UF(e,t,n,r){let i=Math.min(t.childIds.length,n+AF),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 WF=7,GF=3,KF=8,qF=4;function JF(e,t,n=0){return e<<qF|n<<GF|t}function YF(e){return e.depthAndFlags>>>qF}function XF(e){return(e.depthAndFlags&KF)>>GF}function K(e){return(e.depthAndFlags&KF)!==0}function ZF(e){return e.depthAndFlags&WF}function QF(e,t){return(ZF(e)&t)!==0}function $F(e,t){e.depthAndFlags|=t}function eI(e,t){e.depthAndFlags=JF(t,ZF(e),XF(e))}var tI=Symbol(`benchmarkInstrumentation`);function nI(e,t){return t==null||Object.defineProperty(e,tI,{configurable:!0,enumerable:!1,value:t,writable:!1}),e}function rI(e){return e==null?null:e[tI]??null}function q(e,t,n){return e==null?n():e.measurePhase(t,n)}function iI(e,t,n){Number.isFinite(n)&&e!=null&&e.setCounter(t,n)}function aI(e){return e>=48&&e<=57}function oI(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 sI(e){let t=e.toLowerCase();return{lowerValue:t,tokens:oI(t)}}function cI(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 lI(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=cI(e.tokens,t.tokens);return n===0?e.lowerValue===t.lowerValue?0:e.lowerValue<t.lowerValue?-1:1:n}function uI(e,t,n){let r=lI(n(e),n(t));return r===0?e===t?0:e<t?-1:1:r}function dI(e,t){return uI(e,t,sI)}function fI(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=fI(e,r);return a===fI(t,r)?dI(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 mI(e,t){return pI(e,t)}function hI(e,t,n){let r=e=>{let t=n.get(e);if(t!=null)return t;let r=sI(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=fI(e,n);return o===fI(t,n)?uI(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 gI(e,t){let n=e.sortKeyById[t];if(n!==void 0)return n;let r=e.valueById[t],i=sI(r);return e.sortKeyById[t]=i,i}function _I(e={}){return{flattenEmptyDirectories:e.flattenEmptyDirectories!==!1,sort:e.sort??`default`}}function vI(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 yI(e){let{hasTrailingSlash:t,segments:n}=vI(e);return{basename:n[n.length-1]??``,isDirectory:t,path:e,segments:n}}function bI(e){if(e.length===0)return{requiresDirectory:!1,segments:[]};let{hasTrailingSlash:t,segments:n}=vI(e);return{requiresDirectory:t,segments:n}}function xI(){let e=new Map;return e.set(``,0),{idByValue:e,valueById:[``],sortKeyById:[sI(``)]}}function SI(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 CI(e,t){let n=e.valueById[t];if(n===void 0)throw Error(`Unknown segment ID: ${String(t)}`);return n}var wI=Symbol(`pathStorePreparedInputKind`);function TI(e,t){return e[wI]=t,e}function EI(e){return{basename:e.basename,depth:e.segments.length,isDirectory:e.isDirectory,path:e.path,segments:e.segments}}function DI(e,t,n){return n==="default"?mI(e,t):n(EI(e),EI(t))}function OI(){return{depthAndFlags:JF(0,3,1),nameId:0,parentId:0,subtreeNodeCount:1,visibleSubtreeCount:1}}function kI(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 AI(e){return e.isDirectory?e.segments.length:e.segments.length-1}function jI(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 MI(e){return Array.isArray(e)&&e.every(e=>typeof e==`string`)}function NI(e,t={}){return zI(e,t).map(e=>e.path)}function PI(e,t={}){let n=zI(e,t);return TI({paths:n.map(e=>e.path),preparedPaths:n},`prepared`)}function FI(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 TI({paths:e,presortedPaths:e,presortedPathsContainDirectories:n},`presorted`)}function II(e){let t=e,n=t.preparedPaths;if(t[wI]===`prepared`&&n!=null)return n;if(!jI(n))throw Error(`preparedInput must come from PathStore.prepareInput()`);return n}function LI(e){let t=e;return t[wI]===`presorted`&&t.presortedPaths!=null||MI(t.presortedPaths)?t.presortedPaths:null}function RI(e){let t=e;return typeof t.presortedPathsContainDirectories==`boolean`?t.presortedPathsContainDirectories:null}function zI(e,t={}){let n=_I(t),r=rI(t);iI(r,`workload.inputFiles`,e.length);let i=q(r,`store.preparePathEntries.parse`,()=>e.map(e=>yI(e)));return q(r,`store.preparePathEntries.sort`,()=>i.sort((e,t)=>DI(e,t,n.sort))),i}var BI=class{directories=new Map;directoryStack=[0];presortedDirectoryNodeIds=[];initialExpandedPathSet;createdDirectoriesAllExpanded=!1;createdDirectoryCount=0;lastPreparedPath=null;nodes=[OI()];options;instrumentation;segmentSortKeyCache=new Map;segmentTable=xI();hasDeferredDirectoryIndexes=!1;constructor(e={}){this.instrumentation=rI(e),this.options=_I(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,MF())}appendPaths(e){return q(this.instrumentation,`store.builder.appendPaths.parse`,()=>this.appendPreparedPaths(e.map(e=>yI(e))))}appendPreparedPaths(e,t=!0){return this.createdDirectoriesAllExpanded=!1,q(this.instrumentation,`store.builder.appendPreparedPaths`,()=>{for(let n of e)this.appendPreparedPath(n,t)}),this}appendPresortedPaths(e,t=null){return q(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:JF(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:JF(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:JF(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=yI(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:JF(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:JF(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=yI(t)),this.hasDeferredDirectoryIndexes=!0}finish(e={}){let t=e.skipSubtreeCountPass===!0;return this.hasDeferredDirectoryIndexes?(q(this.instrumentation,`store.builder.buildDirectoryIndexes`,()=>this.buildPresortedFinish(t)),this.hasDeferredDirectoryIndexes=!1):t||q(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"?hI(this.lastPreparedPath,e,this.segmentSortKeyCache):DI(this.lastPreparedPath,e,this.options.sort))>0)throw Error(`Builder input must be sorted before appendPaths(): "${e.path}"`)}let n=this.lastPreparedPath,r=AI(e),i=n==null?0:AI(n),a=n==null?0:kI(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=SI(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:JF(YF(o)+1,0),nameId:r,parentId:e,subtreeNodeCount:1,visibleSubtreeCount:1}),a?.set(r,s),IF(i,s),s}createFileChildUnchecked(e,t){let n=SI(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:JF(YF(i)+1,0),nameId:n,parentId:e,subtreeNodeCount:1,visibleSubtreeCount:1}),r.childIdByNameId!=null&&r.childIdByNameId.set(n,a),IF(r,a),a}getOrCreateDirectoryChild(e,t){let n=SI(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&&!K(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:JF(YF(i)+1,0,1),nameId:n,parentId:e,subtreeNodeCount:1,visibleSubtreeCount:1}),r.childIdByNameId!=null&&r.childIdByNameId.set(n,a),IF(r,a),this.directories.set(a,MF()),a}createDirectoryChild(e,t){let n=SI(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:JF(YF(i)+1,0,1),nameId:n,parentId:e,subtreeNodeCount:1,visibleSubtreeCount:1}),r.childIdByNameId!=null&&r.childIdByNameId.set(n,a),IF(r,a),this.directories.set(a,MF()),a}promoteDirectoryToExplicit(e,t){let n=this.nodes[e];if(n===void 0)throw Error(`Unknown directory node ID: ${String(e)}`);if(!K(n))throw Error(`Path is not a directory: "${t}"`);if(QF(n,1))throw Error(`Duplicate path: "${t}"`);$F(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,NF());let r=-1,i=null;for(let e=1;e<t.length;e++){let a=t[e];if(a==null)continue;if(K(a)){let t=NF();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;K(n)&&this.directories.set(t,MF());let r=this.directories.get(n.parentId);r!=null&&(r.childIdByNameId!=null&&r.childIdByNameId.set(n.nameId,t),IF(r,t))}}computeSubtreeCounts(e){let t=this.nodes[e];if(t===void 0)throw Error(`Unknown node ID: ${String(e)}`);if(!K(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 RF(this.nodes,n),t.subtreeNodeCount=r,t.visibleSubtreeCount=r,r}};function VI(e,t=`closed`,n=null){let r=UI(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 HI(){return{affectedAncestorIds:new Set,affectedNodeIds:new Set,events:[]}}function UI(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 WI(e,t){return QF(t,2)||e.defaultExpansion===`open`?!0:e.defaultExpansion!==`closed`&&YF(t)<=e.defaultExpansion}function GI(e,t,n=e.snapshot.nodes[t]){return n==null||!K(n)?!1:e.directoriesOpenByDefault&&!e.hasCollapsedDirectoryOverrides?!0:e.collapsedDirectoryIds.has(t)?!1:e.expandedDirectoryIds.has(t)?!0:WI(e,n)}function KI(e,t,n,r=e.snapshot.nodes[t]){if(r==null||!K(r))return;let i=WI(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 qI(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 JI(e,t){return e.directoryLoadInfoById.get(t)?.state??`loaded`}function YI(e,t){let n=qI(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 XI(e,t){let n=qI(e,t);n.activeAttemptId=null,n.errorMessage=null,n.state=`unloaded`}function ZI(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 QI(e,t,n){return e.directoryLoadInfoById.get(t)?.activeAttemptId===n}function $I(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 eL(e,t){e.directoryLoadInfoById.delete(t)}function tL(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 nL(e){return{affectedAncestorIds:e.affectedAncestorIds??[],affectedNodeIds:e.affectedNodeIds??[],canonicalChanged:!0,operation:`add`,path:e.path,projectionChanged:e.projectionChanged,visibleCountDelta:null}}function rL(e){return{affectedAncestorIds:e.affectedAncestorIds??[],affectedNodeIds:e.affectedNodeIds??[],canonicalChanged:!0,operation:`remove`,path:e.path,projectionChanged:e.projectionChanged,recursive:e.recursive,visibleCountDelta:null}}function iL(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 oL(e){return{affectedAncestorIds:e.affectedAncestorIds??[],affectedNodeIds:e.affectedNodeIds??[],canonicalChanged:!1,operation:`collapse`,path:e.path,projectionChanged:!0,visibleCountDelta:null}}function sL(e){return{affectedAncestorIds:e.affectedAncestorIds??[],affectedNodeIds:e.affectedNodeIds??[],canonicalChanged:!1,operation:`mark-directory-unloaded`,path:e.path,projectionChanged:e.projectionChanged,visibleCountDelta:null}}function cL(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 lL(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 uL(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 dL(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 fL(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:wL(e)-t}}function mL(e,t){let n=wL(e),r=HI();e.transactionStack.push(r);try{t()}catch(t){throw _L(e,r,!1),t}_L(e,r,!0,wL(e)-n)}function hL(e,t){let n=e.instrumentation;if(n==null){gL(e,t);return}q(n,`store.events.record`,()=>gL(e,t))}function gL(e,t){let n=e.transactionStack[e.transactionStack.length-1]??null;if(n==null){SL(e,t);return}n.events.push(t),xL(n,t)}function _L(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?bL(i,t):q(n,`store.events.batch.merge`,()=>bL(i,t));return}let a=vL(t,r),o=e.instrumentation;if(o==null){SL(e,a);return}q(o,`store.events.batch.commit`,()=>SL(e,a))}function vL(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 yL(e,t){for(let n of t.affectedAncestorIds)e.affectedAncestorIds.add(n);for(let n of t.affectedNodeIds)e.affectedNodeIds.add(n)}function bL(e,t){for(let n of t.events)e.events.push(n);yL(e,t)}function xL(e,t){for(let n of t.affectedNodeIds)e.affectedNodeIds.add(n);for(let n of t.affectedAncestorIds)e.affectedAncestorIds.add(n)}function SL(e,t){let n=e.instrumentation;if(n==null){CL(e,t);return}q(n,`store.events.emit`,()=>CL(e,t))}function CL(e,t){e.listeners.get(t.operation)?.forEach(e=>e(t)),e.listeners.get(`*`)?.forEach(e=>e(t))}function wL(e){return e.snapshot.nodes[e.snapshot.rootId]?.visibleSubtreeCount??0}function TL(e,t){if(e.snapshot.options.flattenEmptyDirectories!==!0)return null;let n=e.snapshot.nodes[t];if(n==null||!K(n)||QF(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||!K(a)?null:i}function EL(e,t){let n=t;for(;;){let t=TL(e,n);if(t==null)return n;n=t}}function DL(e,t){let n=[t],r=t;for(;;){let t=TL(e,r);if(t==null)return n;n.push(t),r=t}}function OL(e,t){let n=t==null?e.snapshot.rootId:LL(e,t);return n==null?[]:zL(e,n)}function kL(e,t){let n=yI(t),r=n.isDirectory?n.segments:n.segments.slice(0,-1),i=eR(e,$L(e,r)),{createdNodeIds:a,directoryId:o}=BL(e,r),s=new Set(a),c=o;if(n.isDirectory){let n=X(e,o);if(QF(n,1))throw Error(`Path already exists: "${t}"`);$F(n,1),e.pathCacheByNodeId.set(o,{path:t,version:e.pathCacheVersion}),s.add(o)}else c=HL(e,o,n.basename),s.add(c);PL(e,o);let l=eR(e,o);return nL({affectedAncestorIds:IL(e,c),affectedNodeIds:[...s],path:t,projectionChanged:tR(i,l)})}function AL(e,t,n){let r=LL(e,t);if(r==null)throw Error(`Path does not exist: "${t}"`);let i=X(e,r);if(QF(i,2))throw Error(`The root node cannot be removed`);if(K(i)&&Y(e,r).childIds.length>0&&n.recursive!==!0)throw Error(`Cannot remove a non-empty directory without recursive: "${t}"`);let a=i.parentId,o=eR(e,a),s=ZL(e,r);GL(e,a,r,i.nameId),QL(e,a),PL(e,a);let c=eR(e,a);return rL({affectedAncestorIds:IL(e,a),affectedNodeIds:s,path:t,projectionChanged:tR(o,c),recursive:n.recursive===!0})}function jL(e,t,n,r){let i=LL(e,t);if(i==null)throw Error(`Source path does not exist: "${t}"`);let a=X(e,i);if(QF(a,2))throw Error(`The root node cannot be moved`);let o=r.collision??`error`,s=YL(e,i,n),c=eR(e,a.parentId),l=eR(e,s.parentId),u=CI(e.snapshot.segmentTable,a.nameId),d=SI(e.snapshot.segmentTable,s.basename);if(s.parentId===a.parentId&&u===s.basename)return null;if(K(a)&&aR(e,i,s.parentId))throw Error(`Cannot move a directory into one of its descendants`);let f=PF(e.snapshot.nodes,Y(e,s.parentId)).get(d),p=s.existingNodeId??f??null;if(p!=null&&p!==i&&XL(e,p,o,XF(a))===`skip`)return null;let m=a.parentId;GL(e,m,i,a.nameId),a.parentId=s.parentId,a.nameId=d,e.pathCacheByNodeId.delete(i),iR(e,i),WL(e,s.parentId,i),QL(e,m),e.pathCacheVersion++,PL(e,m),s.parentId!==m&&PL(e,s.parentId);let h=eR(e,m),g=eR(e,s.parentId);return iL({affectedAncestorIds:[...new Set([...IL(e,m),...IL(e,s.parentId)])],affectedNodeIds:[i],from:t,projectionChanged:nR([c,l],[h,g]),to:J(e,i)})}function ML(e,t){let n=e.pathCacheByNodeId.get(t);return n!=null&&n.version===e.pathCacheVersion?n.path:null}function NL(e,t,n){return e.pathCacheByNodeId.set(t,{path:n,version:e.pathCacheVersion}),n}function J(e,t){let n=X(e,t),r=ML(e,t);if(r!=null)return r;if(QF(n,2))return NL(e,t,``);let i=J(e,n.parentId),a=CI(e.snapshot.segmentTable,n.nameId),o=i.length===0?a:`${i}${a}`;return NL(e,t,K(n)?`${o}/`:o)}function PL(e,t){let n=e.instrumentation;if(n==null){sR(e,t);return}q(n,`store.recomputeCountsUpwardFrom`,()=>sR(e,t))}function FL(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||!K(o)){oR(e,a,o,!0),n.pop();continue}let s=i.get(a);if(s==null||t[1]>=s.childIds.length){oR(e,a,o,!0),n.pop();continue}let c=s.childIds[t[1]++];n.push([c,0])}}function IL(e,t){let n=[],r=t;for(;r!=null;){let t=X(e,r);if(n.push(r),r===e.snapshot.rootId)break;r=t.parentId}return n}function LL(e,t){if(t.length===0)return e.snapshot.rootId;let n=bI(t);return RL(e,n.segments,n.requiresDirectory)}function RL(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=Y(e,r),a=PF(e.snapshot.nodes,i).get(t);if(a===void 0)return null;r=a}let i=X(e,r);return n&&!K(i)?null:r}function Y(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 X(e,t){let n=e.snapshot.nodes[t];if(n===void 0||QF(n,4))throw Error(`Unknown node ID: ${String(t)}`);return n}function zL(e,t){let n=e.snapshot.nodes[t];if(n===void 0||QF(n,4))return[];if(!K(n))return[J(e,t)];if(Y(e,t).childIds.length===0)return QF(n,1)&&!QF(n,2)?[J(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||QF(n,4)){i.pop();continue}if(!K(n)){r.push(J(e,t.nodeId)),i.pop();continue}let a=Y(e,t.nodeId);if(a.childIds.length===0){QF(n,1)&&!QF(n,2)&&r.push(J(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 BL(e,t){let n=[],r=e.snapshot.rootId;for(let i of t){let t=SI(e.snapshot.segmentTable,i),a=Y(e,r),o=PF(e.snapshot.nodes,a).get(t);if(o!==void 0){if(!K(X(e,o)))throw Error(`Cannot create a directory that collides with an existing file: "${i}"`);r=o;continue}r=VL(e,r,t),n.push(r)}return{createdNodeIds:n,directoryId:r}}function VL(e,t,n){let r=X(e,t),i=e.snapshot.nodes.length;return e.snapshot.nodes.push({depthAndFlags:JF(YF(r)+1,0,1),nameId:n,parentId:t,subtreeNodeCount:1,visibleSubtreeCount:1}),e.snapshot.directories.set(i,MF()),WL(e,t,i),e.collapseNewDirectoriesByDefault&&(e.collapsedDirectoryIds.add(i),e.hasCollapsedDirectoryOverrides=!0),e.activeNodeCount++,i}function HL(e,t,n){let r=SI(e.snapshot.segmentTable,n),i=Y(e,t);if(PF(e.snapshot.nodes,i).has(r))throw Error(`Path already exists: "${lR(e,t,n)}"`);let a=X(e,t),o=e.snapshot.nodes.length;return e.snapshot.nodes.push({depthAndFlags:JF(YF(a)+1,0),nameId:r,parentId:t,subtreeNodeCount:1,visibleSubtreeCount:1}),WL(e,t,o),e.activeNodeCount++,o}function UL(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}KL(e,n,o)<0?i=a:r=a+1}return r}function WL(e,t,n){let r=Y(e,t),i=X(e,n);PF(e.snapshot.nodes,r).set(i.nameId,n),zF(r,n,i.subtreeNodeCount,i.visibleSubtreeCount);let a=UL(e,r,n);r.childIds.splice(a,0,n),LF(r,a),HF(e.snapshot.nodes,r)}function GL(e,t,n,r){let i=Y(e,t),a=FF(i),o=a.get(n)??-1;PF(e.snapshot.nodes,i).delete(r),a.delete(n);let s=e.snapshot.nodes[n];s!=null&&zF(i,n,-s.subtreeNodeCount,-s.visibleSubtreeCount),o>=0&&(i.childIds.splice(o,1),LF(i,o),HF(e.snapshot.nodes,i))}function KL(e,t,n){let r=e.snapshot.options.sort;return r==="default"?qL(e,t,n):r(JL(e,t),JL(e,n))}function qL(e,t,n){let r=X(e,t),i=X(e,n),a=K(r);if(a!==K(i))return a?-1:1;let o=lI(gI(e.snapshot.segmentTable,r.nameId),gI(e.snapshot.segmentTable,i.nameId));if(o!==0)return o;let s=CI(e.snapshot.segmentTable,r.nameId),c=CI(e.snapshot.segmentTable,i.nameId);return s===c?t<n?-1:1:s<c?-1:1}function JL(e,t){let n=X(e,t),r=J(e,t),i=K(n),a=i?r.slice(0,-1):r;return{basename:CI(e.snapshot.segmentTable,n.nameId),depth:YF(n),isDirectory:i,path:r,segments:a.length===0?[]:a.split(`/`)}}function YL(e,t,n){let r=X(e,t),i=LL(e,n);if(i!=null){let t=X(e,i);if(K(t))return{basename:CI(e.snapshot.segmentTable,r.nameId),existingNodeId:null,parentId:i};let a=bI(n).segments;return{basename:a[a.length-1]??``,existingNodeId:i,parentId:t.parentId}}let a=bI(n),o=a.segments[a.segments.length-1]??``,s=a.segments.slice(0,-1),c=s.length===0?e.snapshot.rootId:RL(e,s,!0);if(c==null)throw Error(`Destination parent does not exist: "${n}"`);return{basename:o,existingNodeId:null,parentId:c}}function XL(e,t,n,r){if(n===`skip`)return`skip`;if(n===`error`)throw Error(`Destination already exists: "${J(e,t)}"`);let i=X(e,t);if(XF(i)!==r)throw Error(`replace collision requires the same source and destination kinds`);if(K(i)&&Y(e,t).childIds.length>0)throw Error(`replace collision does not support non-empty directories`);let a=i.parentId,o=i.nameId;return ZL(e,t),GL(e,a,t,o),QL(e,a),PL(e,a),`handled`}function ZL(e,t){let n=[],r=[{nodeId:t,visitedChildren:!1}];for(;r.length>0;){let t=r.pop();if(t==null)break;let i=X(e,t.nodeId);if(t.visitedChildren||!K(i)){K(i)&&e.snapshot.directories.delete(t.nodeId),$F(i,4),e.pathCacheByNodeId.delete(t.nodeId),e.collapsedDirectoryIds.delete(t.nodeId)&&(e.hasCollapsedDirectoryOverrides=e.collapsedDirectoryIds.size>0),e.expandedDirectoryIds.delete(t.nodeId),eL(e,t.nodeId),e.activeNodeCount--,n.push(t.nodeId);continue}r.push({nodeId:t.nodeId,visitedChildren:!0});let a=Y(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 QL(e,t){let n=t;for(;n!=null;){let t=X(e,n);if(!K(t)||QF(t,2)||Y(e,n).childIds.length>0)return;$F(t,1),n=t.parentId===n?null:t.parentId}}function $L(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=PF(e.snapshot.nodes,Y(e,n)).get(t);if(i==null||!K(X(e,i)))break;n=i}return n}function eR(e,t){let n=rR(e,t);if(n==null)return null;let r=EL(e,n),i=X(e,r),a=n===r?null:DL(e,n).map(t=>J(e,t));return JSON.stringify({flattenedSegmentPaths:a,hasChildren:Y(e,r).childIds.length>0,path:J(e,r),terminalKind:XF(i)})}function tR(e,t){return nR([e],[t])}function nR(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 rR(e,t){let n=t;for(;n!=null;){let t=X(e,n);if(!K(t)||QF(t,2))return null;if(!GI(e,n,t))return n;n=t.parentId}return null}function iR(e,t){let n=X(e,t);if(eI(n,(t===e.snapshot.rootId?-1:YF(X(e,n.parentId)))+1),!K(n))return;let r=Y(e,t);for(let t of r.childIds)iR(e,t)}function aR(e,t,n){let r=n;for(;r!=null;){if(r===t)return!0;let n=X(e,r);if(r===e.snapshot.rootId)return!1;r=n.parentId}return!1}function oR(e,t,n=X(e,t),r=!1){let i=e.instrumentation;if(i==null){cR(e,t,n,r);return}q(i,`store.recomputeNodeCounts`,()=>cR(e,t,n,r))}function sR(e,t){let n=t;for(;n!=null;){let t=X(e,n),r=t.subtreeNodeCount,i=t.visibleSubtreeCount;if(oR(e,n,t),n===e.snapshot.rootId)return;let a=t.subtreeNodeCount-r,o=t.visibleSubtreeCount-i,s=t.parentId;(a!==0||o!==0)&&zF(Y(e,s),n,a,o),n=s}}function cR(e,t,n,r){if(!K(n)){n.subtreeNodeCount=1,n.visibleSubtreeCount=1;return}let i=Y(e,t);if(r){let t=e.instrumentation;t==null?RF(e.snapshot.nodes,i):q(t,`store.recomputeNodeCounts.rebuildChildAggregates`,()=>RF(e.snapshot.nodes,i))}let a=1+i.totalChildSubtreeNodeCount,o=i.totalChildVisibleSubtreeCount;if(n.subtreeNodeCount=a,QF(n,2)){n.visibleSubtreeCount=o;return}n.visibleSubtreeCount=TL(e,t)==null?GI(e,t,n)?1+o:1:o}function lR(e,t,n){let r=J(e,t);return r.length===0?n:`${r}${n}`}function uR(e){return e!=null&&!QF(e,4)}function dR(e,t){let n=e.snapshot.nodes[t];return!uR(n)||!K(n)||QF(n,2)?null:n}function fR(e){let t=0;for(let[n,r]of e.pathCacheByNodeId)r.version===e.pathCacheVersion&&uR(e.snapshot.nodes[n])&&(t+=1);return t}function pR(e){return Math.max(0,e.valueById.length-1)}function mR(e){return{activeNodeCount:e.activeNodeCount,cachedPathEntryCount:fR(e),loadInfoEntryCount:e.directoryLoadInfoById.size,segmentCount:pR(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 gR(e){let t=[],n=[];for(let n of e.collapsedDirectoryIds)dR(e,n)!=null&&t.push(J(e,n));for(let t of e.expandedDirectoryIds)dR(e,t)!=null&&n.push(J(e,t));return{collapsedPaths:t,expandedPaths:n}}function _R(e){let t=[];for(let[n,r]of e.directoryLoadInfoById)dR(e,n)!=null&&JI(e,n)!==`loaded`&&t.push({info:{activeAttemptId:null,errorMessage:r.errorMessage,nextAttemptId:r.nextAttemptId,state:r.state},path:J(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=LL(e,n);t!=null&&KI(e,t,!0,X(e,t))}for(let n of t.collapsedPaths){let t=LL(e,n);t!=null&&KI(e,t,!1,X(e,t))}}function yR(e,t){e.directoryLoadInfoById.clear();for(let n of t){let t=LL(e,n.path);t!=null&&dR(e,t)!=null&&e.directoryLoadInfoById.set(t,{activeAttemptId:null,errorMessage:n.info.errorMessage,nextAttemptId:n.info.nextAttemptId,state:n.info.state})}}function bR(e){e.pathCacheVersion+=1,e.pathCacheByNodeId.clear(),e.pathCacheByNodeId.set(e.snapshot.rootId,{path:``,version:e.pathCacheVersion})}function xR(e){let t=e.snapshot.segmentTable,n=xI();for(let r of e.snapshot.nodes)if(uR(r)){if(QF(r,2)){r.nameId=0;continue}r.nameId=SI(n,CI(t,r.nameId))}e.snapshot.segmentTable=n}function SR(e){for(let[t,n]of e.snapshot.directories){let r=e.snapshot.nodes[t];if(!uR(r)||!K(r)){e.snapshot.directories.delete(t);continue}let i=n.childIds.filter(n=>{let r=e.snapshot.nodes[n];return uR(r)&&r.parentId===t});n.childIds=i,n.childIdByNameId=new Map(i.map(t=>[X(e,t).nameId,t])),n.childPositionById=new Map(i.map((e,t)=>[e,t])),RF(e.snapshot.nodes,n)}}function CR(e){let t=e.snapshot.nodes.length-1;for(;t>e.snapshot.rootId;){let n=e.snapshot.nodes[t];if(uR(n))break;--t}e.snapshot.nodes.length=t+1}function wR(e){let t=gR(e),n=_R(e);q(e.instrumentation,`store.cleanup.stable.clearPathCaches`,()=>bR(e)),q(e.instrumentation,`store.cleanup.stable.rebuildSegmentTable`,()=>xR(e)),q(e.instrumentation,`store.cleanup.stable.rebuildDirectoryIndexes`,()=>SR(e)),q(e.instrumentation,`store.cleanup.stable.trimTrailingRemovedNodeSlots`,()=>CR(e)),q(e.instrumentation,`store.cleanup.stable.restoreExpansionOverrides`,()=>vR(e,t)),q(e.instrumentation,`store.cleanup.stable.restoreDirectoryLoadInfos`,()=>yR(e,n)),q(e.instrumentation,`store.cleanup.stable.recomputeCounts`,()=>FL(e,e.snapshot.rootId))}function TR(e){let t=gR(e),n=_R(e),r=q(e.instrumentation,`store.cleanup.aggressive.listPaths`,()=>OL(e)),i=nI({...e.snapshot.options},e.instrumentation),a=q(e.instrumentation,`store.cleanup.aggressive.rebuildSnapshot`,()=>{let e=new BI(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,q(e.instrumentation,`store.cleanup.aggressive.restoreExpansionOverrides`,()=>vR(e,t)),q(e.instrumentation,`store.cleanup.aggressive.restoreDirectoryLoadInfos`,()=>yR(e,n)),q(e.instrumentation,`store.cleanup.aggressive.recomputeCounts`,()=>FL(e,e.snapshot.rootId))}function ER(e){for(let t of e.directoryLoadInfoById.values())if(t.state===`loading`&&t.activeAttemptId!=null)return!0;return!1}function DR(e,t){let n=mR(e);t===`stable`?q(e.instrumentation,`store.cleanup.stable`,()=>wR(e)):q(e.instrumentation,`store.cleanup.aggressive`,()=>TR(e));let r=mR(e);return hR(t,t===`stable`,n,r)}var OR=64;function kR(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 AR(e){return X(e,e.snapshot.rootId).visibleSubtreeCount}function jR(e,t,n,r){let i=X(e,t.terminalNodeId),a=Math.max(1,i.visibleSubtreeCount);return Math.min(r-1,n+a-1)}function MR(e,t,n,r){return{ancestorPaths:r,index:t.index,posInSet:t.posInSet,row:ZR(e,t.cursor),setSize:t.setSize,subtreeEndIndex:jR(e,t.cursor,t.index,n)}}function NR(e,t,n,r,i,a){let o=Y(e,t),{childIndex:s,childVisibleIndex:c,localVisibleIndex:l}=BF(e.snapshot.nodes,o,n),u=o.childIds[s];if(u==null)throw Error(`Visible index ${String(n)} is out of range`);return PR(e,u,l,r+c,i+1,s,o.childIds.length,a)}function PR(e,t,n,r,i,a,o,s){if(!K(X(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=GR(e,t,i);if(n===0)return{ancestors:s,cursor:c,index:r,posInSet:a,setSize:o};let l=X(e,c.terminalNodeId);if(!K(l)||!GI(e,c.terminalNodeId,l))throw Error(`Visible index ${String(n)} is out of range for collapsed directory`);return NR(e,c.terminalNodeId,n-1,r+1,c.visibleDepth,[...s,{cursor:c,index:r,posInSet:a,setSize:o}])}function FR(e,t){let n=AR(e);if(t<0||t>=n)return null;let r=NR(e,e.snapshot.rootId,t,0,-1,[]),i=r.ancestors.map(t=>J(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=MR(e,a,n,[...i]);t.push(r),i.push(r.row.path)}return a=t,a},index:r.index,posInSet:r.posInSet,row:ZR(e,r.cursor),setSize:r.setSize,subtreeEndIndex:jR(e,r.cursor,r.index,n)}}function IR(e,t,n){let r=e.instrumentation,i=AR(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 XR(e,o+1);let t=[],n=HR(e,a);for(let r=a;r<=o&&n!=null;r++){let r=ZR(e,n);t.push(r),n=qR(e,n)}return t}let s=[],c=0,l=0,u=q(r,`store.getVisibleSlice.selectFirstRow`,()=>HR(e,a));for(let t=a;t<=o&&u!=null;t++){let t=q(r,`store.getVisibleSlice.materializeRow`,()=>ZR(e,u));s.push(t),t.isFlattened&&(c++,l+=t.flattenedSegments?.length??0),u=q(r,`store.getVisibleSlice.advanceCursor`,()=>qR(e,u))}return iI(r,`workload.visibleRowsRead`,s.length),iI(r,`workload.flattenedRowsRead`,c),iI(r,`workload.flattenedSegmentsRead`,l),s}function LR(e,t=AR(e)){let n=e.instrumentation;return n==null?YR(e,t):q(n,`store.getVisibleTreeProjection`,()=>YR(e,t))}function RR(e){return JR(LR(e))}function zR(e,t){let n=LL(e,t);if(n==null||n===e.snapshot.rootId||K(X(e,n))&&EL(e,n)!==n)return null;let r=0,i=n,{nodes:a,rootId:o}=e.snapshot;for(;i!==o;){let t=X(e,i).parentId,n=Y(e,t),s=FF(n).get(i);if(s==null)throw Error(`Child ${String(i)} was not found in its parent index`);if(r+=VF(a,n,s),t!==o){let n=X(e,t),a=TL(e,t);if(!GI(e,t,n)&&a!==i)return null;EL(e,t)===t&&(r+=1)}i=t}return r}function BR(e,t){let n=LL(e,t);if(n==null)throw Error(`Path does not exist: "${t}"`);let r=X(e,n);if(!K(r))throw Error(`Path is not a directory: "${t}"`);return GI(e,n,r)?null:(KI(e,n,!0,r),PL(e,n),aL({affectedAncestorIds:IL(e,n),affectedNodeIds:[n],path:t,projectionChanged:!0}))}function VR(e,t){let n=LL(e,t);if(n==null)throw Error(`Path does not exist: "${t}"`);let r=X(e,n);if(!K(r))throw Error(`Path is not a directory: "${t}"`);return GI(e,n,r)?(KI(e,n,!1,r),PL(e,n),oL({affectedAncestorIds:IL(e,n),affectedNodeIds:[n],path:t,projectionChanged:!0})):null}function HR(e,t){return t<0||t>=AR(e)?null:UR(e,e.snapshot.rootId,t,-1)}function UR(e,t,n,r){let i=Y(e,t),a=e.instrumentation,{childIndex:o,localVisibleIndex:s}=a==null?BF(e.snapshot.nodes,i,n):q(a,`store.getVisibleSlice.selectChildIndex`,()=>BF(e.snapshot.nodes,i,n)),c=i.childIds[o];if(c!=null)return WR(e,c,s,r+1);throw Error(`Visible index ${String(n)} is out of range`)}function WR(e,t,n,r){if(!K(X(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=GR(e,t,r);if(n===0)return i;let a=X(e,i.terminalNodeId);if(!K(a)||!GI(e,i.terminalNodeId,a))throw Error(`Visible index ${String(n)} is out of range for collapsed directory`);return UR(e,i.terminalNodeId,n-1,i.visibleDepth)}function GR(e,t,n){return K(X(e,t))?e.instrumentation==null?{headNodeId:t,terminalNodeId:EL(e,t),visibleDepth:n}:{headNodeId:t,terminalNodeId:q(e.instrumentation,`store.getVisibleSlice.flatten.resolveTerminalDirectory`,()=>EL(e,t)),visibleDepth:n}:{headNodeId:t,terminalNodeId:t,visibleDepth:n}}function KR(e,t){let n=X(e,t);if(!K(n))return!0;let r=n.parentId;return r===e.snapshot.rootId||TL(e,r)!==t}function qR(e,t){let n=X(e,t.terminalNodeId);if(K(n)){let r=Y(e,t.terminalNodeId);if(GI(e,t.terminalNodeId,n)&&r.childIds.length>0){let n=r.childIds[0];return n==null?null:WR(e,n,0,t.visibleDepth+1)}}let r=t.terminalNodeId,i=t.visibleDepth;for(;;){let t=X(e,r);if(r===e.snapshot.rootId)return null;let n=t.parentId,a=Y(e,n),o=FF(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 WR(e,s,0,i);KR(e,r)&&i--,r=n}}function JR(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 YR(e,t){let n=Array(t),r=new Int32Array(t),i=new Int32Array(t),a=new Int32Array(t),o=new Int32Array(OR);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=kR(o,y);let x,S=_;if(K(v))S=f?EL(e,_):_,x=S===_?`${b}${h[v.nameId]}/`:J(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&&K(C)&&GI(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 XR(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(!K(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:J(e,f)};continue}let h=l?EL(e,f):f,g={headNodeId:f,terminalNodeId:h,visibleDepth:m};n[r++]=ZR(e,g);let _=i[h];_!=null&&K(_)&&GI(e,h,_)&&s.push([a.get(h),0,m])}return r<t&&(n.length=r),n}function ZR(e,t){let n=X(e,t.terminalNodeId),r=K(n)?QR(e,t):null,i=J(e,t.terminalNodeId),a=CI(e.snapshot.segmentTable,n.nameId),o=K(n)&&Y(e,t.terminalNodeId).childIds.length>0,s=t.headNodeId!==t.terminalNodeId,c=e.instrumentation,l=s?c==null?DL(e,t.headNodeId).map(n=>{let r=X(e,n);return{isTerminal:n===t.terminalNodeId,name:CI(e.snapshot.segmentTable,r.nameId),nodeId:n,path:J(e,n)}}):q(c,`store.getVisibleSlice.flatten.collectSegments`,()=>DL(e,t.headNodeId).map(n=>{let r=X(e,n);return{isTerminal:n===t.terminalNodeId,name:CI(e.snapshot.segmentTable,r.nameId),nodeId:n,path:J(e,n)}})):void 0;return{depth:t.visibleDepth,flattenedSegments:l,hasChildren:o,id:t.terminalNodeId,isExpanded:K(n)&&GI(e,t.terminalNodeId,n),isFlattened:s,isLoading:r===`loading`,kind:K(n)?`directory`:`file`,loadState:r==null||r===`loaded`?void 0:r,name:a,path:i}}function QR(e,t){if(t.headNodeId===t.terminalNodeId)return JI(e,t.terminalNodeId);let n=DL(e,t.headNodeId),r=!1,i=!1;for(let t of n){let n=JI(e,t);if(n===`loading`)return`loading`;if(n===`error`){i=!0;continue}n===`unloaded`&&(r=!0)}return i?`error`:r?`unloaded`:`loaded`}var $R=8;function ez(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 tz(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]&$R)===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]]&$R)===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 nz(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||!K(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&&HF(n,i),r.subtreeNodeCount=1+c;let u;if(o&&s===1){let e=n[a[0]];u=e!=null&&K(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,HF(n,l),c.subtreeNodeCount=1+d,c.visibleSubtreeCount=f}function rz(e){let{directories:t,nodes:n,rootId:r}=e.snapshot,i=ez(e.snapshot);tz(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)&&HF(n,i)}}function iz(e){return e.initialExpansion===`open`&&(e.initialExpandedPaths==null||e.initialExpandedPaths.length===0)}var az=class e{#e;constructor(e={}){let t=rI(e),n=q(t,`store.builder.create`,()=>new BI(e));if(e.preparedInput!=null){let t=LI(e.preparedInput);t==null?n.appendPreparedPaths(II(e.preparedInput),!1):n.appendPresortedPaths(t,RI(e.preparedInput))}else{let r=e.paths??[];e.presorted===!0?n.appendPaths(r):n.appendPreparedPaths(q(t,`store.preparePathEntries`,()=>zI(r,e)))}let r=q(t,`store.builder.finish`,()=>n.finish({skipSubtreeCountPass:!0})),i=q(t,`store.state.detectAllDirectoriesExpanded`,()=>(e.initialExpansion??`closed`)===`closed`&&n.didMatchAllInitialExpandedPaths());this.#e=q(t,`store.state.create`,()=>VI(r,i?`open`:e.initialExpansion??`closed`,t)),i&&(this.#e.collapseNewDirectoriesByDefault=!0);let a=i?this.#e.snapshot.directories.size-1:q(t,`store.state.initializeExpandedPaths`,()=>this.initializeExpandedPaths(e.initialExpandedPaths));i||iz(e)||(e.initialExpansion??`closed`)===`closed`&&a===this.#e.snapshot.directories.size-1||(e.initialExpandedPaths?.length??0)>0&&q(t,`store.state.checkAllDirectoriesExpanded`,()=>this.hasAllDirectoriesExpanded())?e.useSoaCountSweep===!0?q(t,`store.state.initializeOpenVisibleCountsViaSoa`,()=>rz(this.#e)):q(t,`store.state.initializeOpenVisibleCounts`,()=>nz(this.#e)):q(t,`store.state.recomputeCounts`,()=>FL(this.#e,this.#e.snapshot.rootId))}static preparePaths(e,t={}){return NI(e,t)}static prepareInput(e,t={}){return PI(e,t)}static preparePresortedInput(e){return FI(e)}list(e){return q(this.#e.instrumentation,`store.list`,()=>OL(this.#e,e))}add(e){q(this.#e.instrumentation,`store.add`,()=>{let t=AR(this.#e);hL(this.#e,pL(this.#e,t,kL(this.#e,e)))})}remove(e,t={}){q(this.#e.instrumentation,`store.remove`,()=>{let n=AR(this.#e);hL(this.#e,pL(this.#e,n,AL(this.#e,e,t)))})}move(e,t,n={}){q(this.#e.instrumentation,`store.move`,()=>{let r=AR(this.#e),i=jL(this.#e,e,t,n);i!=null&&hL(this.#e,pL(this.#e,r,i))})}batch(e){mL(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 q(this.#e.instrumentation,`store.getVisibleCount`,()=>AR(this.#e))}getVisibleSlice(e,t){return q(this.#e.instrumentation,`store.getVisibleSlice`,()=>IR(this.#e,e,t))}getVisibleRowContext(e){return q(this.#e.instrumentation,`store.getVisibleRowContext`,()=>FR(this.#e,e))}getVisibleTreeProjection(){return RR(this.#e)}getVisibleTreeProjectionData(e){return LR(this.#e,e)}getVisibleIndex(e){return q(this.#e.instrumentation,`store.getVisibleIndex`,()=>zR(this.#e,e))}getPathInfo(e){return q(this.#e.instrumentation,`store.getPathInfo`,()=>{let t=LL(this.#e,e);if(t==null)return null;let n=X(this.#e,t);return{depth:YF(n),kind:K(n)?`directory`:`file`,path:J(this.#e,t)}})}isExpanded(e){return q(this.#e.instrumentation,`store.isExpanded`,()=>{let t=this.requireDirectoryNodeId(e),n=X(this.#e,t);return GI(this.#e,t,n)})}expand(e){q(this.#e.instrumentation,`store.expand`,()=>{let t=AR(this.#e),n=BR(this.#e,e);n!=null&&hL(this.#e,pL(this.#e,t,n))})}collapse(e){q(this.#e.instrumentation,`store.collapse`,()=>{let t=AR(this.#e),n=VR(this.#e,e);n!=null&&hL(this.#e,pL(this.#e,t,n))})}on(e,t){return tL(this.#e,e,t)}getDirectoryLoadState(e){let t=this.requireDirectoryNodeId(e);return JI(this.#e,t)}markDirectoryUnloaded(e){q(this.#e.instrumentation,`store.markDirectoryUnloaded`,()=>{let t=this.requireDirectoryNodeId(e);if(Y(this.#e,t).childIds.length>0)throw Error(`Cannot mark a directory with known children as unloaded: "${e}"`);let n=AR(this.#e);XI(this.#e,t),hL(this.#e,pL(this.#e,n,sL({affectedAncestorIds:IL(this.#e,t),affectedNodeIds:[t],path:e,projectionChanged:this.isDirectoryProjectionVisible(t)})))})}beginChildLoad(e){return q(this.#e.instrumentation,`store.beginChildLoad`,()=>{let t=this.requireDirectoryNodeId(e),n=AR(this.#e),r=YI(this.#e,t);return hL(this.#e,pL(this.#e,n,cL({affectedAncestorIds:IL(this.#e,t),affectedNodeIds:[t],attemptId:r.attemptId,path:e,projectionChanged:this.isDirectoryProjectionVisible(t),reused:r.reused}))),r})}applyChildPatch(e,t){return q(this.#e.instrumentation,`store.applyChildPatch`,()=>{let n=this.resolveActiveDirectoryNodeId(e.nodeId);if(n==null||JI(this.#e,n)!==`loading`||!QI(this.#e,n,e.attemptId))return!1;let r=J(this.#e,n);this.validateChildPatch(r,t);let i=AR(this.#e),a=[];for(let e of t.operations){oz(r,e);let t=AR(this.#e);switch(e.type){case`add`:a.push(pL(this.#e,t,kL(this.#e,e.path)));break;case`remove`:a.push(pL(this.#e,t,AL(this.#e,e.path,{recursive:e.recursive})));break;case`move`:{let n=jL(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 hL(this.#e,pL(this.#e,i,lL({affectedAncestorIds:IL(this.#e,n),affectedNodeIds:[n],attemptId:e.attemptId,childEvents:a,path:J(this.#e,n),projectionChanged:o}))),!0})}completeChildLoad(e){return q(this.#e.instrumentation,`store.completeChildLoad`,()=>{let t=this.resolveActiveDirectoryNodeId(e.nodeId);if(t==null)return!1;let n=AR(this.#e),r=ZI(this.#e,t,e.attemptId);return hL(this.#e,pL(this.#e,n,uL({affectedAncestorIds:IL(this.#e,t),affectedNodeIds:[t],attemptId:e.attemptId,path:J(this.#e,t),projectionChanged:this.isDirectoryProjectionVisible(t),stale:!r}))),r})}failChildLoad(e,t){return q(this.#e.instrumentation,`store.failChildLoad`,()=>{let n=this.resolveActiveDirectoryNodeId(e.nodeId);if(n==null)return!1;let r=AR(this.#e),i=$I(this.#e,n,e.attemptId,t);return hL(this.#e,pL(this.#e,r,dL({affectedAncestorIds:IL(this.#e,n),affectedNodeIds:[n],attemptId:e.attemptId,errorMessage:t,path:J(this.#e,n),projectionChanged:this.isDirectoryProjectionVisible(n),stale:!i}))),i})}cleanup(e={}){return q(this.#e.instrumentation,`store.cleanup`,()=>{if(this.#e.transactionStack.length>0)throw Error(`Cleanup cannot run during an open batch or transaction.`);if(ER(this.#e))throw Error(`Cleanup cannot run while directory loads are active.`);let t=AR(this.#e),n=DR(this.#e,e.mode??`stable`);return hL(this.#e,pL(this.#e,t,fL({...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=Y(this.#e,p).childIds,_=m===d?n[m]??0:0,v=_,y,b=l.get(a)??sI(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=lI(gI(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(!K(X(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=X(this.#e,n);GI(this.#e,n,i)||(KI(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=X(this.#e,e);if(!GI(this.#e,e,t))return!1}return!0}requireDirectoryNodeId(e){let t=LL(this.#e,e);if(t==null)throw Error(`Path does not exist: "${e}"`);if(!K(X(this.#e,t)))throw Error(`Path is not a directory: "${e}"`);return t}resolveActiveDirectoryNodeId(e){try{if(!K(X(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=X(this.#e,t).parentId;if(e!==this.#e.snapshot.rootId){let n=X(this.#e,e),r=TL(this.#e,e);if(!GI(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 oz(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 sz={compact:{itemHeight:24,factor:.8},default:{itemHeight:30,factor:1},relaxed:{itemHeight:36,factor:1.2}};function cz(e,t){if(typeof e==`number`)return{itemHeight:t??sz.default.itemHeight,factor:e};let n=sz[e??`default`];return{itemHeight:t??n.itemHeight,factor:n.factor}}var lz=sz.default.itemHeight,uz=`@layer base {
494
494
  :host {
495
495
  --trees-accent: var(--trees-accent-override, #009fff);
496
496
  --trees-fg: var(--trees-fg-override, var(--trees-theme-sidebar-fg, light-dark(#6c6c71, #adadb1)));
@@ -1582,10 +1582,10 @@ diff --git`)}function sv(e,t){if(e.length===0)return[``];let n=`\n${t}`,r=e.star
1582
1582
  }
1583
1583
 
1584
1584
  @layer theme, unsafe;
1585
- `,uz=`@layer base, unsafe;`;function dz(e){return`${uz}
1585
+ `,dz=`@layer base, unsafe;`;function fz(e){return`${dz}
1586
1586
  @layer base {
1587
1587
  ${e}
1588
- }`}function fz(e){return`${uz}
1588
+ }`}function pz(e){return`${dz}
1589
1589
  @layer unsafe {
1590
1590
  ${e}
1591
- }`}var pz=new WeakMap;function mz(e){let t=pz.get(e);if(t!=null)return t;let n=document.createElement(`div`);n.setAttribute(hF,`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(),pz.set(e,i),i}function hz(e,t){if(!e.isConnected)return;let n=mz(t);if(n==null)return;let r=t.querySelector(`style[${gF}]`),i=r instanceof HTMLStyleElement?r:document.createElement(`style`);r instanceof HTMLStyleElement||(i.setAttribute(gF,``),t.appendChild(i)),i.textContent=`:host { ${_F}: ${n}px; }`}var gz;function _z(e){if(typeof CSSStyleSheet<`u`&&typeof CSSStyleSheet.prototype.replaceSync==`function`&&`adoptedStyleSheets`in e){gz??(gz=new CSSStyleSheet,gz.replaceSync(dz(lz)));let t=!1;try{e.adoptedStyleSheets=[gz],t=!0}catch{}if(t){e.querySelector(`style[${pF}]`)?.remove();return}}if(e.querySelector(`style[data-file-tree-style]`)==null){let t=document.createElement(`style`);t.setAttribute(pF,``),t.textContent=dz(lz),e.prepend(t)}}function vz(e,t){yz(e,t),_z(t),hz(e,t)}function yz(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`});vz(this,e)}}if(customElements.define(fF,e),typeof document<`u`)for(let e of Array.from(document.querySelectorAll(fF)))e instanceof HTMLElement&&vz(e,e.shadowRoot??e.attachShadow({mode:`open`}))}var bz=e=>e.startsWith(`f::`)?e.slice(3):e;function xz(e){let t=e.lastIndexOf(`/`);return t<0?{parentPath:``,baseName:e}:{parentPath:e.slice(0,t),baseName:e.slice(t+1)}}function Sz(e,t){return e===``?t:`${e}/${t}`}function Cz({files:e,path:t,isFolder:n,nextBasename:r}){let i=bz(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}=xz(i);if(a===s)return{nextFiles:e,sourcePath:i,destinationPath:i,isFolder:n};let c=Sz(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 wz(e){return e.endsWith(`/`)}function Tz(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 Ez(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 Dz(e,t){return t.includes(e)?Ez(t):[e]}function Oz(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 kz(e,t){return{draggedPaths:e,target:t}}function Az(e,t){if(t.kind!==`directory`||t.directoryPath==null)return!1;for(let n of e)if(wz(n)&&(t.directoryPath===n||t.directoryPath.startsWith(n)))return!0;return!1}function jz(e,t){return t.kind===`root`||t.directoryPath==null?Tz(e):t.directoryPath}function Mz(e,t){let n=e.map(e=>{let n=jz(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 Nz(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 Pz(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(!Nz(iz.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 Fz(e){return e.operation===`add`||e.operation===`remove`||e.operation===`move`||e.operation===`batch`}function Iz(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 Lz(e,t){if(e===t)return!0;let n=t.endsWith(`/`)?t:`${t}/`;return e.startsWith(n)}function Rz(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 Lz(e,t.path)?n?e:null:e;case`move`:return Iz(e,t.from,t.to);case`batch`:{let r=e;for(let e of t.events)if(r=Rz(r,e,n),r==null)return null;return r}}}function zz(e){return{canonicalChanged:e.canonicalChanged,projectionChanged:e.projectionChanged,visibleCountDelta:e.visibleCountDelta}}function Bz(e){switch(e.operation){case`add`:return{...zz(e),operation:`add`,path:e.path};case`remove`:return{...zz(e),operation:`remove`,path:e.path,recursive:e.recursive};case`move`:return{...zz(e),from:e.from,operation:`move`,to:e.to}}}function Vz(e){return{...zz(e),events:e.events.filter(e=>e.operation===`add`||e.operation===`remove`||e.operation===`move`).map(e=>Bz(e)),operation:`batch`}}function Hz(e){switch(e.operation){case`add`:case`remove`:case`move`:return Bz(e);case`batch`:return Vz(e);default:return null}}function Uz(e,t){if(e.size!==t.length)return!1;for(let n of t)if(!e.has(n))return!1;return!0}function Wz(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 Gz(e){return Wz(e).at(-1)??null}function Kz(e,t){return t==null?e:e.startsWith(t)?e.slice(t.length):e}function qz(e){return e.endsWith(`/`)}var Jz=e=>e.toLowerCase();function Yz(e){let t=e.endsWith(`/`)?e.slice(0,-1):e,n=t.lastIndexOf(`/`);return n<0?t:t.slice(n+1)}function Xz(e){return e.endsWith(`/`)?e.slice(0,-1):e}function Zz(e,t){return t&&!e.endsWith(`/`)?`${e}/`:e}var Qz=e=>{let t=e.trim();return t.length===0?``:(t.includes(`\\`)?t.replaceAll(`\\`,`/`):t).toLowerCase()},$z=Symbol(`FILE_TREE_RENAME_VIEW`),eB=512,tB=512;function nB(e){return e===`top`||e===`center`?e:`nearest`}function rB(e,t,n){if(e===0)return-1;if(n!=null){let e=t(n);if(e!=null)return e;let r=Wz(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 iB(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:rB(e.paths.length,r,t),getParentIndex:e.getParentIndex,paths:e.paths,posInSetByIndex:e.posInSetByIndex,setSizeByIndex:e.setSizeByIndex}}var aB=class e{static{Object.defineProperty(e.prototype,$z,{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=Pz({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=Gz(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:nB(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=Dz(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=kz(t.draggedPaths,n);(Az(t.draggedPaths,n)||this.#r?.canDrop?.(e)===!1)&&(n=null)}Oz(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=kz(e.draggedPaths,t);if(Az(e.draggedPaths,t)||this.#r?.canDrop?.(n)===!1)return this.#De(),!1;let r=Mz(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=qz(r),a=Xz(r);if(this.#C?.({isFolder:i,path:a})===!1)return!1;for(let e of Wz(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=Yz(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,qz(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,qz(e)?{recursive:!0}:void 0);return}let t=qz(e),n=Cz({files:this.#H.list(),isFolder:t,nextBasename:this.#E,path:Xz(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(Zz(n.sourcePath,t),Zz(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=Pz({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=!Uz(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=Gz(e),n=Kz(e,t),r=null,i=null;for(let e of this.#be()){if(Gz(e)!==t)continue;let a=Kz(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=Wz(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=!Uz(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 iz({...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 Wz(t))e.add(n)}return this.#m=[...e].sort(),this.#m}#fe(){return this.#g??=this.#ue().map(Jz),this.#g}#pe(){return this.#f??=this.#de().filter(e=>e.endsWith(`/`)),this.#f}#me(){return this.#p??=this.#pe().map(Jz),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 Wz(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:Qz(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 Wz(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 Wz(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=iB(this.#H.getVisibleTreeProjectionData(t?void 0:Math.min(n,eB)),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=Rz(this.#T,e);t==null&&this.#T!=null&&(this.#E=``),this.#T=t;let n=Rz(this.#c,e,!0),r=[...this.#B].map(t=>Rz(t,e)).filter(e=>e!=null).map(e=>this.#H.getPathInfo(e)?.path??null).filter(e=>e!=null),i=Rz(this.#z,e),a=i==null?null:this.#H.getPathInfo(i)?.path??null,o=[...new Set(r)];return Uz(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&&Fz(e)&&(this.#i=null);let t=Fz(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=Hz(e);i!=null&&this.#Oe(i)})}#ze(e){if(this.#H.isExpanded(e)){this.#ie(e);return}this.#ke(e)}},oB=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 sB(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 cB(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 uB(e,t=null){let n=oB(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=fB(t);e!=null&&hB({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 dB(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=pB(e);t!=null&&(c=mB({canonicalPath:t.canonicalPath,changeCountByDirectoryPath:s,directoriesWithChanges:a,ignoredDirectoryPaths:o,statusByPath:i})||c)}for(let e of r){let t=fB(e);t!=null&&(c=hB({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:vB(i),statusByPath:i}:e}function fB(e){return pB(e.path)}function pB(e){let t=sB(e);if(t!=null)return{canonicalPath:lB(t.path,t.isDirectory),isDirectory:t.isDirectory}}function mB({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),_B(t,n,e),!0)}function hB({canonicalPath:e,changeCountByDirectoryPath:t,directoriesWithChanges:n,ignoredDirectoryPaths:r,isDirectory:i,status:a,statusByPath:o}){let s=o.get(e);return s!==a&&(s??gB(t,n,e),o.set(e,a),a===`ignored`&&i?r.add(e):i&&r.delete(e),!0)}function gB(e,t,n){for(let r of cB(n))e.set(r,(e.get(r)??0)+1),t.add(r)}function _B(e,t,n){for(let r of cB(n)){let n=(e.get(r)??0)-1;n>0?e.set(r,n):(e.delete(r),t.delete(r))}}function vB(e){let t=`${e.size}`;for(let[n,r]of e)t+=`\0${n}\0${r}`;return t}var Z,yB,bB,xB,SB,CB,wB,TB,EB,DB,OB={},kB=[],AB=Array.isArray,jB=kB.slice,MB=Object.assign;function NB(e){e&&e.parentNode&&e.remove()}function PB(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?jB.call(arguments,2):n),FB(e,o,r,i,null)}function FB(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??++yB,__i:-1,__u:0};return i==null&&Z.vnode!=null&&Z.vnode(a),a}function IB(e){return e.children}function LB(e,t){this.props=e,this.context=t,this.__g=0}function RB(e,t){if(t==null)return e.__?RB(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`?RB(e):null}function zB(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 zB(e)}}function BB(e){(8&e.__g||!(e.__g|=8)||!bB.push(e)||SB++)&&xB==Z.debounceRendering||((xB=Z.debounceRendering)||queueMicrotask)(VB)}function VB(){for(var e,t,n,r,i,a,o,s,c=1;bB.length;)bB.length>c&&bB.sort(CB),e=bB.shift(),c=bB.length,8&e.__g&&(n=void 0,i=(r=(t=e).__v).__e,a=[],o=[],(s=t.__P)&&((n=MB({},r)).__v=r.__v+1,Z.vnode&&Z.vnode(n),YB(s,n,r,t.__n,s.namespaceURI,32&r.__u?[i]:null,a,i??RB(r),!!(32&r.__u),o,s.ownerDocument),n.__v=r.__v,n.__.__k[n.__i]=n,ZB(a,n,o),n.__e!=i&&zB(n)));SB=0}function HB(e,t,n,r,i,a,o,s,c,l,u,d){var f,p,m,h,g,_,v,y=r&&r.__k||kB,b=t.length;for(c=UB(n,t,y,c,b),f=0;f<b;f++)(m=n.__k[f])!=null&&(p=m.__i==-1?OB:y[m.__i]||OB,m.__i=f,_=YB(e,m,p,i,a,o,s,c,l,u,d),h=m.__e,m.ref&&p.ref!=m.ref&&(p.ref&&eV(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=WB(m,c,e,v):typeof m.type==`function`&&_!==void 0?c=_:h&&(c=h.nextSibling),m.__u&=-7);return n.__e=g,c}function UB(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?FB(null,o,null,null,null):AB(o)?FB(IB,{children:o},null,null,null):o.constructor==null&&o.__b>0?FB(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=GB(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=RB(s)),tV(s,s));return r}function WB(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=WB(i[a],t,n,r));return t}e.__e!=t&&(r&&(t&&e.type&&!t.parentNode&&(t=RB(e)),n.insertBefore(e.__e,t||null)),t=e.__e);do t&&=t.nextSibling;while(t!=null&&t.nodeType==8);return t}function GB(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 KB(e,t,n){t[0]==`-`?e.setProperty(t,n??``):e[t]=n??``}function qB(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||KB(e.style,t,``);if(n)for(t in n)r&&n[t]==r[t]||KB(e.style,t,n[t])}}else if(t[0]==`o`&&t[1]==`n`)a=t!=(t=t.replace(wB,`$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=TB,e.addEventListener(t,a?DB:EB,a)):e.removeEventListener(t,a?DB:EB,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 JB(e){return function(t){if(this.__l){var n=this.__l[t.type+e];if(t.u==null)t.u=TB++;else if(t.u<n.l)return;return n(Z.event?Z.event(t):t)}}}function YB(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,D,O,k,A,ee,j=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=Z.__b)&&d(t);n:if(typeof j==`function`)try{if(v=t.props,y=`prototype`in j&&j.prototype.render,b=(d=j.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 j(v,x):(t.__c=f=new LB(v,x),f.constructor=j,f.render=nV),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&&j.getDerivedStateFromProps!=null&&(f.__s==f.state&&(f.__s=MB({},f.__s)),MB(f.__s,j.getDerivedStateFromProps(v,f.__s))),m=f.props,h=f.state,f.__v=t,p)y&&j.getDerivedStateFromProps==null&&f.componentWillMount!=null&&f.componentWillMount(),y&&f.componentDidMount!=null&&f.__h.push(f.componentDidMount);else{if(y&&j.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=Z.__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=MB({},r,f.getChildContext())),y&&!p&&f.getSnapshotBeforeUpdate!=null&&(g=f.getSnapshotBeforeUpdate(m,h)),E=d,d!=null&&d.type===IB&&d.key==null&&(E=QB(d.props.children)),s=HB(e,AB(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(D=0,O=!1,t.__u|=c?160:128,t.__c.__z=[],k=0;k<a.length;k++)(A=a[k])==null||O||(A.nodeType==8&&A.data==`$s`?(D>0&&t.__c.__z.push(A),D++,a[k]=null):A.nodeType==8&&A.data==`/$s`?(--D>0&&t.__c.__z.push(A),O=D===0,s=a[k],a[k]=null):D>0&&(t.__c.__z.push(A),a[k]=null));if(!O){for(;s&&s.nodeType==8&&s.nextSibling;)s=s.nextSibling;a[a.indexOf(s)]=null,t.__c.__z=[s]}t.__e=s}else{for(ee=a.length;ee--;)NB(a[ee]);XB(t)}}else t.__e=n.__e,t.__k=n.__k,e.then||XB(t);Z.__e(e,t,n)}else s=t.__e=$B(n.__e,t,n,r,i,a,o,c,l,u);return(d=Z.diffed)&&d(t),128&t.__u?void 0:s}function XB(e){e&&e.__c&&(e.__c.__g|=4),e&&e.__k&&e.__k.forEach(XB)}function ZB(e,t,n){for(var r=0;r<n.length;r++)eV(n[r],n[++r],n[++r]);Z.__c&&Z.__c(t,e),e.some(function(t){try{e=t.__h,t.__h=[],e.some(function(e){e.call(t)})}catch(e){Z.__e(e,t.__v)}})}function QB(e){return typeof e!=`object`||!e||e.__b&&e.__b>0?e:AB(e)?e.map(QB):MB({},e)}function $B(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&&=(Z.__m&&Z.__m(t,a),!1),a=null}if(b==null)v===y||s&&e.data==y||(e.data=y);else{if(a&&=jB.call(e.childNodes),v=n.props||OB,!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;qB(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&&!_||qB(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=``),HB(b==`template`?e.content:e,AB(p)?p:[p],t,n,r,b==`foreignObject`?`http://www.w3.org/1999/xhtml`:i,a,o,a?a[0]:n.__k&&RB(n,0),s,c,l),a!=null)for(u=a.length;u--;)NB(a[u]);s||(u=`value`,b==`progress`&&h==null?e.removeAttribute(`value`):h==null||h===e[u]&&(b!==`progress`||h)||qB(e,u,h,v[u],i),u=`checked`,g!=null&&g!=e[u]&&qB(e,u,g,v[u],i))}return e}function eV(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){Z.__e(e,n)}}function tV(e,t,n){var r,i;if(Z.unmount&&Z.unmount(e),(r=e.ref)&&(r.current&&r.current!=e.__e||eV(r,null,t)),(r=e.__c)!=null){if(r.componentWillUnmount)try{r.componentWillUnmount()}catch(e){Z.__e(e,t)}r.__P=null}if(r=e.__k)for(i=0;i<r.length;i++)r[i]&&tV(r[i],t,n||typeof e.type!=`function`);n||NB(e.__e),e.__e&&e.__e.__l&&(e.__e.__l=null),e.__e=e.__c=e.__=null}function nV(e,t,n){return this.constructor(e,n)}function rV(e,t){var n,r,i,a;t==document&&(t=document.documentElement),Z.__&&Z.__(e,t),r=(n=!!(e&&32&e.__u))?null:t.__k,e=t.__k=PB(IB,null,[e]),i=[],a=[],YB(t,e,r||OB,OB,t.namespaceURI,r?null:t.firstChild?jB.call(t.childNodes):null,i,r?r.__e:t.firstChild,n,a,t.ownerDocument),ZB(i,e,a)}function iV(e,t){e.__u|=32,rV(e,t)}Z={__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 SB=0,e}},yB=0,LB.prototype.setState=function(e,t){var n=this.__s!=null&&this.__s!=this.state?this.__s:this.__s=MB({},this.state);typeof e==`function`&&(e=e(MB({},n),this.props)),e&&MB(n,e),e!=null&&this.__v&&(t&&this._sb.push(t),BB(this))},LB.prototype.forceUpdate=function(e){this.__v&&(this.__g|=4,e&&this.__h.push(e),BB(this))},LB.prototype.render=IB,bB=[],SB=0,CB=function(e,t){return e.__v.__b-t.__v.__b},wB=/(PointerCapture)$|Capture$/i,TB=0,EB=JB(!1),DB=JB(!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 Z.vnode&&Z.vnode(l),l}var oV=16,sV=16,cV={};function lV({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}=cV[e]??{width:oV,height:sV},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 uV=e=>e!==void 0&&/\s/.test(e),dV=(e,t)=>{let n=t=>uV(e[t-1])||uV(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},fV=e=>dV(e,Math.ceil(e.length/2)),pV=e=>{if(e.length<2)return[e,``];let t=fV(e);return[e.slice(0,t),e.slice(t)]},mV=e=>{if(e.length<4)return[e,``];let t=e.lastIndexOf(`.`)+1,n=e.length-t>10,r=t>=1&&!n?t:fV(e);return[e.slice(0,r),e.slice(r)]},hV=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)]},_V=(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)]},vV=(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 yV({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 bV(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(bV,{mode:t,children:e},`content`),o=Q(yV,{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 SV({children:e,...t}){"use no memo";return Q(xV,{mode:`truncate`,...t,children:e})}function CV({children:e,...t}){"use no memo";return Q(xV,{mode:`fruncate`,...t,children:e})}function wV({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(SV,{...s,children:t[0]}),l=Q(CV,{...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`?CV:SV,{...s,className:a,style:o,children:e});let t=null,u=null,d=null;if(typeof r==`string`)r===`center`?t=pV:r===`extension`?t=mV:r===`leaf-path`&&(t=hV);else if(typeof r==`number`)t=gV,u=r;else if(Array.isArray(r)){let[e,n]=r;d=n,e===`last`?t=_V:e===`first`&&(t=vV)}else typeof r==`function`&&(t=r);t??=pV;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(SV,{...s,..._,children:f}),l=Q(CV,{...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 TV={endIndex:-1,startIndex:-1};function EV(e,t,n){return Math.min(Math.max(e,t),n)}function DV(e,t){return e<0||t<e?TV:{endIndex:t,startIndex:e}}function OV(e){return e.startIndex<0||e.endIndex<e.startIndex}function kV(e,t){return OV(e)?0:(e.endIndex-e.startIndex+1)*t}function AV(e,t,n){if(t<=0)return-1;let r=t*n;return e<=0?0:e>=r?t:Math.floor(e/n)}function jV(e,t,n){return t<=0||e<=0?-1:e>=t*n?t-1:Math.ceil(e/n)-1}function MV(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 NV(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 PV(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 FV(e,t,n){if(e.length===0||t<=0)return[];let r=PV(e),i=MV(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=NV(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 IV(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=EV(t.scrollTop,0,o),c=t.stickyRows??FV(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=AV(s,n,t.itemHeight),m=AV(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?TV:DV(m,jV(u+d,n,t.itemHeight)),y=g+1,b=OV(v)?TV:DV(Math.max(y,v.startIndex-a),Math.min(n-1,v.endIndex+a)),x=kV(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:OV(b)?0:b.startIndex*t.itemHeight,startIndex:b.startIndex}}}var LV={added:`A`,deleted:`D`,ignored:null,modified:`M`,renamed:`R`,untracked:`U`},RV={added:`Git status: added`,deleted:`Git status: deleted`,ignored:`Git status: ignored`,modified:`Git status: modified`,renamed:`Git status: renamed`,untracked:`Git status: untracked`},zV=`Contains git status items`;function BV(e){return e.current?!0:(e.current=!0,!1)}function VV(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 HV(e){let{currentScrollTop:t,focusedIndex:n,itemHeight:r,offset:i,topInset:a=0,totalHeight:o,viewportHeight:s}=e;if(i===`nearest`)return VV({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 UV(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 WV(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 GV(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 KV(e,t){if(e==null)return t;let n=e.getBoundingClientRect().height;return n>0?n:e.clientHeight>0?e.clientHeight:t}function qV(e,t){return e!=null&&e>0?e:t}function JV(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 YV(e,t,n,r,i=0){let a=VV({currentScrollTop:e.scrollTop,focusedIndex:t,itemHeight:n,topInset:i,viewportHeight:r});return a!=null&&(e.scrollTop=a,!0)}function XV(e,t,n,r,i,a,o=0){let s=HV({currentScrollTop:e.scrollTop,focusedIndex:t,itemHeight:n,offset:a,topInset:o,totalHeight:i,viewportHeight:r});return s!=null&&(e.scrollTop=s,!0)}function ZV(e,t,n,r,i,a){let o=UV({currentScrollTop:e.scrollTop,focusedIndex:t,itemHeight:n,targetViewportOffset:a,totalHeight:i,viewportHeight:r});return o!=null&&(e.scrollTop=o,!0)}function QV(e,t,n,r){return n.end<n.start?null:e<n.start?-t:e>n.end?r:null}function $V(e){let{renamingPath:t,previousRenamingPath:n,hasRenderedInput:r}=e;return t==null?`reset`:r?n===t?`ignore`:`focus-input`:`reveal-canonical`}function eH({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 tH(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 nH(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 rH,iH,aH,oH,sH=Object.is,cH=0,lH=[],uH=Z,dH=uH.__b,fH=uH.__r,pH=uH.diffed,mH=uH.__c,hH=uH.unmount,gH=uH.__;function _H(e,t){uH.__h&&uH.__h(iH,e,cH||t),cH=0;var n=iH.__H||(iH.__H={__:[],__h:[]});return e>=n.__.length&&n.__.push({}),n.__[e]}function vH(e){return cH=1,yH(AH,e)}function yH(e,t,n){var r=_H(rH++,2);if(r.t=e,!r.__c&&(r.__=[n?n(t):AH(void 0,t),function(e){var t=r.__N?r.__N[0]:r.__[0],n=r.t(t,e);sH(t,n)||(r.__N=[n,r.__[1]],r.__c.setState({}))}],r.__c=iH,!iH.__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,sH(t,e.__[0])||(o=!0)}}),a&&a.call(this,e,t,n)||o};iH.__f=!0;var a=iH.shouldComponentUpdate,o=iH.componentWillUpdate;iH.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)},iH.shouldComponentUpdate=i}return r.__N||r.__}function bH(e,t){var n=_H(rH++,3);!uH.__s&&kH(n.__H,t)&&(n.__=e,n.u=t,iH.__H.__h.push(n))}function xH(e,t){var n=_H(rH++,4);!uH.__s&&kH(n.__H,t)&&(n.__=e,n.u=t,iH.__h.push(n))}function $(e){return cH=5,SH(function(){return{current:e}},[])}function SH(e,t){var n=_H(rH++,7);return kH(n.__H,t)&&(n.__=e(),n.__H=t,n.__h=e),n.__}function CH(e,t){return cH=8,SH(function(){return e},t)}function wH(){for(var e;e=lH.shift();)if(e.__P&&e.__H)try{e.__H.__h.forEach(DH),e.__H.__h.forEach(OH),e.__H.__h=[]}catch(t){e.__H.__h=[],uH.__e(t,e.__v)}}uH.__b=function(e){iH=null,dH&&dH(e)},uH.__=function(e,t){e&&t.__k&&t.__k.__m&&(e.__m=t.__k.__m),gH&&gH(e,t)},uH.__r=function(e){fH&&fH(e),rH=0;var t=(iH=e.__c).__H;t&&(aH===iH?(t.__h=[],iH.__h=[],t.__.forEach(function(e){e.__N&&(e.__=e.__N),e.u=e.__N=void 0})):(t.__h.forEach(DH),t.__h.forEach(OH),t.__h=[],rH=0)),aH=iH},uH.diffed=function(e){pH&&pH(e);var t=e.__c;t&&t.__H&&(t.__H.__h.length&&(lH.push(t)!==1&&oH===uH.requestAnimationFrame||((oH=uH.requestAnimationFrame)||EH)(wH)),t.__H.__.forEach(function(e){e.u&&(e.__H=e.u),e.u=void 0})),aH=iH=null},uH.__c=function(e,t){t.some(function(e){try{e.__h.forEach(DH),e.__h=e.__h.filter(function(e){return!e.__||OH(e)})}catch(n){t.some(function(e){e.__h&&=[]}),t=[],uH.__e(n,e.__v)}}),mH&&mH(e,t)},uH.unmount=function(e){hH&&hH(e);var t,n=e.__c;n&&n.__H&&(n.__H.__.forEach(function(e){try{DH(e)}catch(e){t=e}}),n.__H=void 0,t&&uH.__e(t,n.__v))};var TH=typeof requestAnimationFrame==`function`;function EH(e){var t,n=function(){clearTimeout(r),TH&&cancelAnimationFrame(t),setTimeout(e)},r=setTimeout(n,35);TH&&(t=requestAnimationFrame(n))}function DH(e){var t=iH,n=e.__c;typeof n==`function`&&(e.__c=void 0,n()),iH=t}function OH(e){var t=iH;e.__c=e.__(),iH=t}function kH(e,t){return!e||e.length!==t.length||t.some(function(t,n){return!sH(t,e[n])})}function AH(e,t){return typeof t==`function`?t(e):t}function jH(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(IB,{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(SV,{children:e.name})}),i<r.length-1?` / `:``]},e.path)})})}function MH(e){return e.isFlattened?e.flattenedSegments?.findLast(e=>e.isTerminal)?.path??e.path:e.path}function NH(e){let t=e.flattenedSegments;return t==null||t.length===0?e.name:t.map(e=>e.name).join(` / `)}function PH(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 FH({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=IV(c,{itemHeight:t,overscan:n,scrollTop:r,stickyRows:s==null?void 0:PH(s,r,t,o),totalRowCount:o,viewportHeight:a}),u=i&&r<=0&&o>0?e.getStickyRowCandidates(1,t):[],d=u!=null&&r<=0?PH(u,1,t,o):i&&r<=0&&c.length>0?FV(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 IH=400,LH=40,RH=18;function zH(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))?BH(e,t,n):a instanceof HTMLElement?a:null}function BH(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 VH(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 HH(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 UH(){return navigator.vendor!==`Apple Computer, Inc.`}function WH(e,t){let n=e-t.top;if(n<LH)return-Math.ceil((LH-Math.max(0,n))/LH*RH);let r=t.bottom-e;return r<LH?Math.ceil((LH-Math.max(0,r))/LH*RH):0}function GH(e,t){if(e!=null){let t=LV[e];return t==null?null:{text:t,title:RV[e]}}return t?{icon:{name:`file-tree-icon-dot`,width:6,height:6},title:zV}:null}function KH(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 qH(e){return e!=null&&`toggle`in e}function JH(e){return e.code===`Space`||e.key===` `||e.key===`Spacebar`}function YH(e){return e.key.length===1&&/^[\p{L}\p{N}]$/u.test(e.key)&&!e.ctrlKey&&!e.metaKey&&!e.altKey}function XH(e){return e==null?``:`[data-item-section="spacing-item"][data-ancestor-path="${e.replaceAll(`\\`,`\\\\`).replaceAll(`"`,`\\"`)}"] { opacity: 1; }`}function ZH(e){return e.shiftKey&&e.key===`F10`||e.key===`ContextMenu`}function QH(e,t){return t&&ZH(e)||(e.ctrlKey||e.metaKey)&&JH(e)?!0:e.key===`ArrowDown`||e.key===`ArrowLeft`||e.key===`ArrowRight`||e.key===`ArrowUp`}var $H=new Set([`ArrowDown`,`ArrowLeft`,`ArrowRight`,`ArrowUp`,`End`,`Home`,`PageDown`,`PageUp`]);function eU(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 tU(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 nU(e,t){return{bottom:t,height:0,left:e,right:e,top:t,width:0,x:e,y:t}}function rU(e,t){if(e==null)return t.offsetTop;let n=t.getBoundingClientRect(),r=e.getBoundingClientRect();return n.top-r.top}function iU(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 oU(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 sU(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 cU(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=sU(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 lU(e,t){return{kind:e.kind,name:NH(e),path:t}}function uU(e){return e==null?void 0:`${e}__tree`}function dU(e,t,n){if(e!=null)return`${e}__focused-item-${encodeURIComponent(t)}${n?`__parked`:``}`}function fU(e){return e===`file-tree-icon-chevron`||e===`file-tree-icon-dot`||e===`file-tree-icon-file`||e===`file-tree-icon-lock`}function pU(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`?fU(e.icon)?t(e.icon):{name:e.icon}:fU(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(lV,{...n})})}function mU(e){e!=null&&WV(e.querySelector([`button:not([disabled])`,`[href]`,`input:not([disabled])`,`select:not([disabled])`,`textarea:not([disabled])`,`[tabindex]:not([tabindex="-1"])`].join(`, `))??e)}function hU(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=MH(e);return Q(IB,{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(lV,{...t(`file-tree-icon-chevron`)}):Q(lV,{...t(`file-tree-icon-file`,u)})}),Q(`div`,{"data-item-section":`content`,children:e.isFlattened?jH(e,c,a):c??Q(wV,{minimumLength:5,split:`extension`,children:e.name})}),i?Q(`div`,{"data-item-section":`decoration`,children:r==null?null:pU(r,t)}):null,s?Q(`div`,{"data-item-section":`git`,children:pU(o,t)}):null,n?Q(`div`,{"data-item-section":`action`,children:l?Q(`span`,{"aria-hidden":`true`,"data-item-action-affordance":`decorative`,children:Q(lV,{...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:D,registerButton:O,resolveIcon:k,renderDecorationForRow:A,openContextMenuForRow:ee,onRowClick:j,onKeyDown:M}=e,N=MH(t),{isParked:te=!1,mode:ne=`flow`,style:re}=r,ie=ne===`sticky`,ae=_?.get(N)??null??KH(t.ancestorPaths,v,y),P=t.kind===`directory`&&(b?.has(N)??!1),oe=A(t,N),F=GH(ae,P),se=S&&w,I=oe!=null||x||se,ce=se&&T===`always`,le=a.getPath()===N,ue=le?a.getValue():``,de=ie||!le?null:Q(eH,{ref:D,ariaLabel:`Rename ${NH(t)}`,isFlattened:t.isFlattened,value:ue,onBlur:()=>{a.commit()},onInput:e=>{a.setValue(e.currentTarget.value)}}),fe=hU(t,k,{actionLaneEnabled:se,customDecoration:oe,decorationLaneEnabled:I,dragTargetFlattenedSegmentPath:l?.flattenedSegmentPath??null,gitDecoration:F,gitLaneActive:x,renameInput:de,showDecorativeActionAffordance:ce}),pe={...tH({ariaLabel:NH(t),domId:t.isFocused?dU(h,N,te):void 0,extraStyle:re,features:{actionLaneEnabled:se,contextMenuButtonVisibility:se?T:null,contextMenuEnabled:S,contextMenuTriggerMode:S?C:null,gitLaneActive:x},isParked:te,itemHeight:g,mode:ne,row:t,state:{containsGitChange:P,effectiveGitStatus:ae,isContextHovered:s===N,isDragTarget:l?.kind===`directory`&&l.directoryPath===N,isDragging:c?.has(N)===!0,isFocusRinged:t.isFocused&&o===N},targetPath:N}),key:n,onContextMenu:S||u?e=>{if(d()){e.preventDefault();return}S&&(e.preventDefault(),E&&(i.focusMountedPathFromInput(N),ee(t,N,{anchorRect:nU(e.clientX,e.clientY),source:`right-click`})))}:void 0,onFocus:ie?void 0:()=>{i.focusMountedPathFromInput(N)},onKeyDown:ie?void 0:M,ref:e=>{O(N,e)}};return!ie&&le?Q(`div`,{...pe,children:fe}):Q(`button`,{...pe,type:`button`,draggable:u&&!te,onDragEnd:u&&!te?p:void 0,onDragStart:u&&!te?e=>{f(e,t,N)}:void 0,onMouseDown:e=>{if(ie){e.preventDefault();return}i.isSearchOpen()&&e.preventDefault()},onTouchStart:u&&!te?e=>{m(e,t,N)}:void 0,onClick:e=>{j(e,t,N,ne)},children:fe})}function _U(e,t,n){return t.end<t.start?[]:e.controller.getVisibleRows(t.start,t.end).filter(e=>!n.has(MH(e))).map((n,r)=>gU(e,n,t.start+r))}function vU({composition:e,controller:t,gitStatusByPath:n,ignoredGitDirectories:r,directoriesWithGitChanges:i,icons:a,instanceId:o,itemHeight:s=cz,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),D=$(()=>{}),O=$(null),k=$(0),A=$(!1),ee=$(null);ee.current!==t&&(A.current=!1,ee.current=t);let j=$(!1),M=$(null),N=$(null),te=$(!1),ne=$(null),re=$(null),ie=$(null),ae=$(null),P=$(null),oe=$(null),F=$(null),se=$(null),I=$(!1),ce=$(null),le=$(null),ue=$(null),de=$(null),fe=SH(()=>new Map,[]),[,pe]=vH(0),me=$(!1),[he,ge]=vH(null),[_e,ve]=vH(null),[ye,be]=vH(null),[xe,Se]=vH(null),[Ce,we]=vH(0),[L,Te]=vH(null),Ee=$(L);Ee.current=L;let De=$(null),Oe=$(null),ke=$(null),Ae=$(null),je=$(null),Me=$(!1),Ne=()=>{Oe.current=null,ke.current=null,Ae.current=null},Pe=(e,t)=>{Oe.current=e,ke.current=null,Ae.current=t==null?null:{path:e,scrollTop:t}},Fe=(e,t)=>{Oe.current=null,ke.current={path:e,viewportOffset:t},Ae.current=null},Ie=$(d===`retain`&&t.isSearchOpen()),[Le,Re]=vH(p);bH(()=>{p||Re(!1)},[p]);let ze=$(!1),Be=CH(()=>{ze.current=!0,Re(e=>e&&!1)},[]),[Ve,He]=vH(()=>FH({controller:t,itemHeight:s,overscan:c,scrollTop:0,stickyFolders:h,viewportHeight:g})),[Ue,We]=vH(!1);bH(()=>{We(!0)},[]);let Ge=e?.contextMenu?.enabled===!0||e?.contextMenu?.render!=null||e?.contextMenu?.onOpen!=null||e?.contextMenu?.onClose!=null,Ke=e?.contextMenu?.triggerMode??(Ge?`right-click`:`both`),qe=Ke===`both`||Ke===`button`,Je=e?.contextMenu?.buttonVisibility??`when-needed`,Ye=Ke===`both`||Ke===`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;je.current=t,ve(t),Se(t==null?null:`pointer`)},n=e=>{e instanceof CustomEvent&&(Me.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 Xe=CH((e,t)=>{iU(T.current,e,t)},[]),Ze=CH((e,t)=>{iU(E.current,e,t)},[]),Qe=CH(e=>{x.current=e},[]),$e=CH(e=>aU(e,E.current,T.current),[]),et=n!=null||r!=null||i!=null,{resolveIcon:tt}=SH(()=>DF(a),[a]),nt=t[$z](),rt=nt.getPath(),it=rt!=null,at=t.isSearchOpen(),ot=t.getSearchValue(),R=t.getFocusedPath(),z=t.getFocusedIndex(),st=t.getScrollRequest(),ct=t.isDragAndDropEnabled(),lt=t.getDragSession(),ut=SH(()=>lt==null?null:new Set(lt.draggedPaths),[lt]),dt=lt?.target??null,ft=lt?.primaryPath??null,pt=uU(o),{overlayHeight:mt,overlayRows:ht,snapshot:gt,visibleRows:_t}=Ve,vt=gt.physical.viewportHeight,yt=SH(()=>({end:gt.window.endIndex,start:gt.window.startIndex}),[gt.window.endIndex,gt.window.startIndex]),bt=ht,xt=gt.sticky.rows,St=gt.physical.totalHeight,Ct=gt.sticky.height,wt=SH(()=>new Set(xt.map(e=>MH(e.row))),[xt]),Tt=z>=0&&z>=yt.start&&z<=yt.end,Et=CH((e,t)=>u?.({item:lU(e,t),row:e})??null,[u]),Dt=CH(e=>WV(e==null?null:T.current.get(e)??null)?!0:WV(S.current),[]),Ot=CH(e=>{Dt(t.focusNearestPath(e))},[t,Dt]),kt=$(Ot);kt.current=Ot;let At=$(!0),jt=$(()=>{}),Mt=CH((t=!0)=>{let n=Ee.current;n!=null&&(At.current=At.current&&t,Te(null),e?.contextMenu?.onClose?.(),At.current&&Ot(n.path))},[e?.contextMenu,Ot]);jt.current=Mt;let Nt=CH(e=>{let t=e==null?null:rU(S.current,e);be(e=>e===t?e:t)},[]),Pt=CH((e,n,r)=>{let i=t.getItem(n);if(i==null)return;let a=$e(n);if(a?.dataset.fileTreeStickyRow===`true`){let e=C.current;Pe(n,e?.scrollTop??null),j.current=!0,ge(e=>e===n?e:n)}i.focus(),Nt(a),At.current=!0,Te({anchorRect:r?.anchorRect??null,item:lU(e,n),path:n,source:r?.source??`keyboard`})},[t,$e,Nt]),Ft=CH(e=>{if(l){if(t.isSearchOpen()){let e=C.current,t=KV(e,vt);ne.current=z<0||e==null?null:Math.max(0,Math.min(z*s-e.scrollTop,Math.max(0,t-s))),te.current=!0}t.startRenaming(e)!==!1&&(Se(`focus`),pe(e=>e+1))}},[t,z,s,l,vt]),It=CH((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=KV(i,vt),u=t.getVisibleCount()*s,d=r===`sticky-parents`?o.ancestorPaths.length*s:FH({controller:t,itemHeight:s,overscan:c,scrollTop:i.scrollTop,stickyFolders:h,viewportHeight:l}).snapshot.sticky.height;return j.current=!0,ZV(i,a,s,l,u,d),D.current(),De.current=n?e:null,!0},[t,s,c,vt,h]),Lt=()=>y.current===!0||de.current!=null||I.current===!0,Rt=e=>typeof window.requestAnimationFrame==`function`?window.requestAnimationFrame(()=>{e()}):window.setTimeout(e,16),zt=e=>{if(e!=null){if(typeof window.cancelAnimationFrame==`function`){window.cancelAnimationFrame(e);return}window.clearTimeout(e)}},Bt=()=>{ae.current!=null&&(clearTimeout(ae.current),ae.current=null),ie.current=null},Vt=()=>{oe.current?.remove(),oe.current=null},Ht=()=>{zt(re.current),re.current=null,P.current=null},Ut=e=>{let t=S.current?.getRootNode();if(t instanceof ShadowRoot){t.append(e);return}document.body.append(e)},Wt=()=>{se.current?.(),se.current=null,de.current!=null&&(clearTimeout(de.current),de.current=null),I.current=!1,ce.current=null,ue.current=null,le.current!=null&&(le.current.setAttribute(`draggable`,`true`),le.current.style.removeProperty(`touch-action`),le.current=null),Vt(),Bt(),Ht(),F.current=null},Gt=(e,n)=>{let r=S.current?.getRootNode(),i=VH(zH(r instanceof ShadowRoot?r:document,e,n));return t.setDragTarget(i),t.getDragSession()?.target??null},Kt=e=>{let n=t.getDragAndDropConfig()?.openOnDropDelay??800;if(e==null||e.kind!==`directory`||e.directoryPath==null||n<=0){Bt();return}let r=t.getItem(e.directoryPath),i=qH(r)?r:null;if(i==null||i.isExpanded()){Bt();return}let a=`${e.directoryPath}::${e.flattenedSegmentPath??``}`;ie.current!==a&&(Bt(),ie.current=a,ae.current=setTimeout(()=>{let n=t.getDragSession()?.target;n?.kind===`directory`&&n.directoryPath===e.directoryPath&&n.flattenedSegmentPath===e.flattenedSegmentPath&&i.expand()},n))},qt=()=>{re.current=null;let e=P.current,n=C.current;if(e==null||n==null||t.getDragSession()==null)return;let r=n.getBoundingClientRect(),i=WH(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,D.current()),Kt(Gt(e.clientX,e.clientY)),re.current=Rt(qt)},Jt=(e,t)=>{P.current={clientX:e,clientY:t},re.current??=Rt(qt)},Yt=(e,n,r)=>{let i=e.currentTarget;if(i!=null){if(Wt(),Vt(),Bt(),Ht(),t.startDrag(r)===!1){e.preventDefault();return}if(F.current=n,e.dataTransfer!=null&&(e.dataTransfer.effectAllowed=`move`,e.dataTransfer.dropEffect=`move`,e.dataTransfer.setData(`text/plain`,r),UH())){let t=HH(i),n=i.getBoundingClientRect();Object.assign(t.style,{height:`${n.height}px`,opacity:`0.85`,transform:`translate3d(-9999px, 0px, 0)`,width:`${n.width}px`}),Ut(t),oe.current=t,e.dataTransfer.setDragImage(t,Math.max(0,e.clientX-n.left),Math.max(0,e.clientY-n.top))}}},Xt=()=>{Vt(),Bt(),Ht(),F.current=null,t.cancelDrag()},Zt=(e,n,r)=>{if(de.current!=null||I.current)return;let i=e.touches[0],a=e.currentTarget;if(i==null||a==null)return;ue.current={clientX:i.clientX,clientY:i.clientY},le.current=a,a.setAttribute(`draggable`,`false`);let o=(e={})=>{let t=e.restoreNativeDraggable??!I.current;de.current!=null&&(clearTimeout(de.current),de.current=null),document.removeEventListener(`touchmove`,s),document.removeEventListener(`touchend`,c),document.removeEventListener(`touchcancel`,c),se.current===o&&(se.current=null),t&&(a.setAttribute(`draggable`,`true`),le.current===a&&(le.current=null),ue.current=null)},s=e=>{let t=e.touches[0],n=ue.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),se.current=o,de.current=setTimeout(()=>{if(o({restoreNativeDraggable:!1}),t.startDrag(r)===!1){a.setAttribute(`draggable`,`true`),le.current===a&&(le.current=null),ue.current=null;return}I.current=!0,le.current=a,a.setAttribute(`draggable`,`false`),a.style.setProperty(`touch-action`,`none`),F.current=n;let e=a.getBoundingClientRect(),s=HH(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`}),Ut(s),oe.current=s,ce.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=ce.current;n!=null&&oe.current!=null&&(oe.current.style.transform=`translate3d(${t.clientX-n.x}px, ${t.clientY-n.y}px, 0)`),Kt(Gt(t.clientX,t.clientY)),Jt(t.clientX,t.clientY)},l=e=>{let n=e.changedTouches[0];n!=null&&Gt(n.clientX,n.clientY),t.completeDrag(),Wt()},u=()=>{t.cancelDrag(),Wt()};se.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)},IH)},Qt=e=>{if(L!=null){if(e.key===`Escape`){Mt(),e.preventDefault(),e.stopPropagation();return}$H.has(e.key)&&(e.preventDefault(),e.stopPropagation());return}if(nt.isActive()){if(e.isComposing||e.keyCode===229)return;if(e.key===`Escape`)nt.cancel();else if(e.key===`Enter`)nt.commit();else return;Se(`focus`),pe(e=>e+1),e.preventDefault(),e.stopPropagation();return}if(l&&e.key===`F2`){Ft(R??void 0),e.preventDefault(),e.stopPropagation();return}if(at){if(e.key===`Escape`)te.current=!1,ne.current=null,t.closeSearch();else if(e.key===`Enter`){let e=t.getFocusedPath();e!=null&&t.selectOnlyPath(e);let n=C.current,r=KV(n,vt);ne.current=z<0||n==null?null:Math.max(0,Math.min(z*s-n.scrollTop,Math.max(0,r-s))),te.current=!0,t.closeSearch()}else if(e.key===`ArrowDown`)t.focusNextSearchMatch();else if(e.key===`ArrowUp`)t.focusPreviousSearchMatch();else return;Se(`focus`),pe(e=>e+1),e.preventDefault(),e.stopPropagation();return}if(f&&YH(e)){t.openSearch(e.key),pe(e=>e+1),e.preventDefault(),e.stopPropagation();return}let n=Ge&&ZH(e),r=QH(e,Ge),i=r&&S.current!=null?GV(S.current):null,a=r?new Set(oU(S.current)):new Set,o=i?.dataset.fileTreeStickyPath??null,c=i?.dataset.fileTreeStickyRow===`true`&&o!=null;if(c&&o!==R&&a.has(o)){let e=C.current;Pe(o,e?.scrollTop??null),t.focusPath(o)}let u=t.getFocusedPath(),d=t.getFocusedIndex(),p=t.getFocusedItem();if(p==null)return;let m=qH(p)?p:null,h=u!=null&&(wt.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:Pt(e,u)}else if((e.ctrlKey||e.metaKey)&&JH(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;Se(`focus`);let b=t.getFocusedPath(),x=b!=null&&(wt.has(b)||a.has(b)),w=g&&b!==u,D=n&&c&&o===u&&b===u;if((h||D)&&b!=null&&(w&&x||D))Pe(b,v?.scrollTop??null),j.current=!0,ge(e=>e===b?e:b);else{let t=e.key===`ArrowUp`&&h&&b!==u;b!=null&&(t||_&&b===u)?(Fe(b,cU(S.current,v,i,u,s,Ct,vt)),j.current=!0,ge(e=>e===b?e:b)):Ne()}pe(e=>e+1),e.preventDefault(),e.stopPropagation()};xH(()=>{if(f&&at){if(Ie.current){Ie.current=!1;return}WV(w.current)}},[at,f]),xH(()=>{let e=x.current;switch($V({hasRenderedInput:e!=null,previousRenamingPath:N.current,renamingPath:rt})){case`reset`:N.current=null;return;case`reveal-canonical`:rt!=null&&It(rt,{restoreTreeFocus:!1,targetOffset:`live-overlay`});return;case`ignore`:return;case`focus-input`:e!=null&&(De.current=null,N.current=rt,WV(e),e.select());return}},[yt.end,yt.start,rt,It,wt]),xH(()=>{let e=S.current;if(e==null)return;let t=null,n=()=>{t!=null&&(clearTimeout(t),t=null)},r=()=>{let t=GV(e)?.dataset.itemPath??null;ge(e=>e===t?e:t)},i=()=>{n(),j.current=!0,r()},a=i=>{let a=i.relatedTarget;if(a==null){n(),t=setTimeout(()=>{if(t=null,GV(e)!=null){r();return}j.current=!1,ge(null)},0);return}if(!(a instanceof Node)||!e.contains(a)){n(),j.current=!1,ge(null);return}let o=a instanceof HTMLElement?a.dataset.itemPath??null:null;ge(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&&(gt.physical.scrollTop<=0?e.dataset.scrollAtTop=`true`:delete e.dataset.scrollAtTop)},[gt.physical.scrollTop]),xH(()=>{let e=null,n=C.current,r=b.current,i=S.current;if(n==null)return;O.current=KV(n,g);let a=()=>{let e=t.getVisibleCount(),r=qV(O.current,g),i=Math.max(0,e*s-r);n.scrollTop>i&&(n.scrollTop=i),He(FH({controller:t,itemHeight:s,overscan:c,scrollTop:Math.min(n.scrollTop,i),stickyFolders:h,viewportHeight:r}))};if(!A.current){A.current=!0;let e=t.getFocusedIndex();if(e>=0){let r=qV(O.current,g),i=t.getVisibleRows(e,e)[0]??null;YV(n,e,s,r,h&&i!=null?Math.max(0,Math.min(i.ancestorPaths.length*s,Math.max(0,r-s))):0)}}D.current=a;let o=t.subscribe(()=>{BV(me)&&pe(e=>e+1),a()}),l=()=>{Me.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,we(e=>e+1),e=null},50))},u=null,d=()=>{i!=null&&delete i.dataset.overlayReveal,u!=null&&(clearTimeout(u),u=null)},f=()=>{i!=null&&Me.current!==!0&&(n.scrollTop>0||(i.dataset.overlayReveal=`true`,u!=null&&clearTimeout(u),u=setTimeout(()=>{d()},200)))},p=()=>{if(a(),n.scrollTop>0&&d(),Ee.current!=null&&y.current&&jt.current(),Me.current===!0){y.current=!1;return}ve(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=>{O.current=(e[0]==null?null:JV(e[0]))??KV(n,g),a()}):null;return x?.observe(n),()=>{D.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,O.current=null,x?.disconnect()}},[t,g,s,c,h]),xH(()=>{Ge||L==null||Mt(!1)},[Mt,Ge,L]);let $t=SH(()=>L==null?null:`${L.path}::${L.source}`,[L]);xH(()=>{if($t==null){m?.clearSlotContent(yF);return}let t=Ee.current;if(t==null)return;let n=v.current??_.current;if(n==null)return;let r={anchorElement:n,anchorRect:t.anchorRect??tU(n.getBoundingClientRect()),close:e=>{jt.current(e?.restoreFocus??!0)},restoreFocus:()=>{At.current&&kt.current(Ee.current?.path??null)}},i=e?.contextMenu?.render?.(t.item,r)??null;return m?.setSlotContent(yF,i),e?.contextMenu?.onOpen?.(t.item,r),mU(i),queueMicrotask(()=>{i!=null&&i.isConnected&&document.activeElement===i&&mU(i)}),()=>{m?.clearSlotContent(yF)}},[$t,e?.contextMenu,m]),xH(()=>{L!=null&&t.getItem(L.path)==null&&Mt()},[Mt,L,t]),xH(()=>{if(L==null)return;let e=S.current?.getRootNode(),t=e instanceof ShadowRoot?e.host:S.current,n=e=>{let n=e.target;n instanceof Node&&(eU(e)||_.current?.contains(n)!==!0&&t?.contains(n)!==!0&&Mt())},r=e=>{e.key===`Escape`&&(e.preventDefault(),e.stopPropagation(),Mt())};return document.addEventListener(`mousedown`,n,!0),document.addEventListener(`keydown`,r,!0),()=>{document.removeEventListener(`mousedown`,n,!0),document.removeEventListener(`keydown`,r,!0)}},[Mt,L]),xH(()=>{let e=C.current,n=S.current;if(e==null||n==null){M.current=R;return}let r=R==null?null:T.current.get(R)??null,i=GV(n),a=i?.dataset.itemPath??null,o=it&&x.current===i,c=f&&w.current===i,l=te.current&&!at,u=ne.current??0,d=De.current,p=Oe.current,m=ke.current,g=Ae.current,_=i!=null,v=j.current||_,y=M.current!==R,b=p!=null&&p===R&&R!=null,E=!1,O=!1;if(st!=null&&st.id!==k.current){k.current=st.id;let n=st.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,vt-s))):Ct;E=!0,O=XV(e,n,s,vt,St,st.offset,t)}t.clearScrollRequest(st.id)}let A=!E&&l&&ZV(e,z,s,vt,St,u),ee=!E&&d!=null&&d===R&&ZV(e,z,s,vt,St,Ct),N=!E&&m!=null&&m.path===R&&ZV(e,z,s,vt,St,m.viewportOffset),re=!E&&g!=null&&g.path===R&&e.scrollTop!==g.scrollTop;if(re&&(e.scrollTop=g.scrollTop),(re||O||ee||N||A||v&&y&&d!==R&&!b&&YV(e,z,s,vt,Ct))&&D.current(),E){M.current=R;return}if(!v){M.current=R;return}if(o){M.current=R;return}if(c&&!l){M.current=R;return}if(r==null){l&&z>=0&&(ZV(e,z,s,vt,St,u),D.current()),M.current=R;return}(y||l||d===R||p===R||m?.path===R||g?.path===R||a==null||a!==R)&&(WV(r),d===R&&(De.current=null),p===R&&(Oe.current=null),m?.path===R&&(ke.current=null),g?.path===R&&(Ae.current=null),te.current=!1,ne.current=null),M.current=R},[t,z,R,Tt,s,it,at,yt,vt,f,st,h,Ct,St,_t]);let en=z>=0&&z>=gt.visible.startIndex&&z<=gt.visible.endIndex,tn=R!=null&&bt.some(e=>MH(e.row)===R),nn=en||tn,rn=qe&&j.current===!0&&nn?R:null,an=xe===`pointer`?_e:null,on=L?.path??je.current??an??rn??_e,sn=L?.source===`right-click`;xH(()=>{y.current&&L==null||Nt($e(on))},[L,$e,yt,vt,Ce,bt,on,Nt,_t]);let cn=CH(e=>{if(y.current||eU(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&&Se(e=>e===`pointer`?e:`pointer`),ve(e=>e===i?e:i)},[]),ln=CH(()=>{ve(null)},[]);xH(()=>{if(!ct)return;let e=()=>{Wt(),t.cancelDrag()};return window.addEventListener(`dragend`,e),()=>{window.removeEventListener(`dragend`,e),Wt(),t.cancelDrag()}},[t,ct]);let un=e=>{if(!ct||t.getDragSession()==null||I.current)return;let n=VH(e.target instanceof HTMLElement?e.target:null);t.setDragTarget(n),Kt(t.getDragSession()?.target??null),Jt(e.clientX,e.clientY),e.dataTransfer!=null&&(e.dataTransfer.dropEffect=`move`),e.preventDefault()},dn=e=>{if(!ct||t.getDragSession()==null||I.current)return;let n=e.relatedTarget;n instanceof Node&&S.current?.contains(n)===!0||(Bt(),Ht(),t.setDragTarget(null))},fn=e=>{ct&&t.getDragSession()!=null&&!I.current&&(e.preventDefault(),Gt(e.clientX,e.clientY),t.completeDrag(),Vt(),Bt(),Ht(),F.current=null)},pn=gt.window.height,mn=gt.window.offsetTop,hn=Math.min(0,vt-pn),gn=Math.min(0,vt-pn-Ct),_n=he===R||te.current,vn=R!=null&&_n&&!Tt&&z>=0?_t[z]??t.getVisibleRows(z,z)[0]??null:null,yn=vn==null?null:QV(z,s,yt,pn),bn=F.current,xn=ft!=null&&bn!=null&&bn.path===ft&&bn.index>=yt.start&&bn.index<=yt.end,Sn=ft!=null&&bn!=null&&bn.path===ft&&!xn&&bn.path!==vn?.path?bn:null,Cn=Sn==null?null:QV(Sn.index,s,yt,pn),wn=XH((z>=0?_t[z]??t.getVisibleRows(z,z)[0]??null:null)?.ancestorPaths.at(-1)??null),Tn=at&&R!=null?dU(o,R,!Tt):void 0,En=L?.path??(at?R:he),Dn=L?.path??_e,On=$e(on),kn=Ge&&qe&&!sn&&!it&&On!=null&&ye!=null&&on!=null,An=Ge&&(kn||L!=null),jn=L?.anchorRect,Mn=jn==null&&On!=null&&ye!=null&&(L!=null||kn)?ye:null,Nn=jn==null?Mn==null?void 0:{top:`${Mn}px`}:{left:`${jn.left}px`,position:`fixed`,right:`auto`,top:`${jn.top}px`},Pn=sn?{opacity:`0`}:void 0,Fn=CH((e,n,r,i)=>{let a=nH({event:{ctrlKey:e.ctrlKey,metaKey:e.metaKey,shiftKey:e.shiftKey},isDirectory:n.kind===`directory`,isSearchOpen:at,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>=gt.visible.startIndex&&n.index<=gt.visible.endIndex,d=i===`flow`&&u&&l!=null&&l.dataset.itemParked!==`true`;t.focusMountedPathFromInput(c),d&&(j.current=!0,ge(e=>e===c?e:c),Se(`focus`)),o&&t.toggleMountedDirectoryFromInput(c),a.closeSearch&&t.closeSearch(),a.revealCanonical&&It(c,{targetOffset:`sticky-parents`})},[t,at,gt.visible.endIndex,gt.visible.startIndex,It]),In=()=>{if(y.current||!qe||on==null||On==null)return;let e=t.getItem(on);e!=null&&(Nt(On),At.current=!0,Te({anchorRect:null,item:{kind:e.isDirectory()?`directory`:`file`,name:On.getAttribute(`aria-label`)??on,path:e.getPath()},path:e.getPath(),source:`button`}))},Ln={contextHoverPath:Dn,contextMenuButtonTriggerEnabled:qe,contextMenuButtonVisibility:Je,contextMenuEnabled:Ge,contextMenuRightClickEnabled:Ye,contextMenuTriggerMode:Ke,controller:t,directoriesWithGitChanges:i,dragAndDropEnabled:ct,draggedPathSet:ut,dragTarget:dt,gitLaneActive:et,gitStatusByPath:n,handleRowDragEnd:Xt,handleRowDragStart:Yt,handleRowTouchStart:Zt,ignoredGitDirectories:r,ignoredInheritanceCache:fe,instanceId:o,itemHeight:s,onKeyDown:Qt,onRowClick:Fn,openContextMenuForRow:Pt,registerButton:Xe,registerRenameInput:Qe,renameView:nt,renderDecorationForRow:Et,resolveIcon:tt,shouldSuppressContextMenu:Lt,visualFocusPath:En},Rn={...Ln,registerButton:Ze};return Q(`div`,{ref:S,id:pt,"data-file-tree-context-menu-button-visibility":Ge&&qe?Je:void 0,"data-file-tree-context-menu-trigger-mode":Ge?Ke:void 0,"data-file-tree-has-context-menu-action-lane":Ge&&qe?`true`:void 0,"data-file-tree-has-git-lane":et?`true`:void 0,"data-file-tree-virtualized-root":`true`,onDragLeave:ct?dn:void 0,onDragOver:ct?un:void 0,onDrop:ct?fn:void 0,onKeyDown:Qt,onPointerLeave:Ge?ln:void 0,onPointerOver:Ge?cn:void 0,role:`tree`,tabIndex:-1,style:{outline:`none`,position:`relative`},children:[Q(`style`,{"data-file-tree-guide-style":`true`,dangerouslySetInnerHTML:{__html:wn}}),Q(`slot`,{name:vF,"data-type":`header-slot`}),f?Q(`div`,{"data-file-tree-search-container":!0,"data-open":at?`true`:`false`,children:Q(`input`,{ref:w,"aria-activedescendant":Tn,"aria-controls":pt,placeholder:`Search…`,"data-file-tree-search-input":!0,"data-file-tree-search-input-fake-focus":Le?`true`:void 0,value:ot,onBlur:()=>{(d!==`retain`||ze.current)&&t.closeSearch()},onFocus:Be,onPointerDown:Be,onInput:e=>{Be();let n=e.currentTarget;t.setSearch(n.value)}})}):null,Q(`div`,{ref:C,"data-file-tree-virtualized-scroll":`true`,children:[h&&Ue&&bt.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:`${mt}px`},children:bt.map((e,t)=>gU(Rn,e.row,`sticky:${MH(e.row)}`,{mode:`sticky`,style:{left:`0`,position:`absolute`,right:`0`,top:`${e.top}px`,zIndex:`${bt.length-t}`}}))})}):null,Q(`div`,{ref:b,"data-file-tree-virtualized-list":`true`,style:{height:`${St}px`},children:[Q(`div`,{"data-file-tree-virtualized-sticky-offset":`true`,"aria-hidden":`true`,style:{height:`${mn}px`}}),Q(`div`,{"data-file-tree-virtualized-sticky":`true`,style:{height:`${pn}px`,top:`${hn}px`,bottom:`${gn}px`},children:[_U(Ln,yt,wt),vn!=null&&yn!=null?gU(Ln,vn,`parked:${vn.path}`,{isParked:!0,style:{left:`0`,opacity:`0`,pointerEvents:ft===vn.path?`none`:void 0,position:`absolute`,right:`0`,top:`${yn}px`}}):null,Sn!=null&&Cn!=null?gU(Ln,Sn,`parked-drag:${Sn.path}`,{isParked:!0,style:{left:`0`,opacity:`0`,pointerEvents:`none`,position:`absolute`,right:`0`,top:`${Cn}px`}}):null]})]})]}),Ge?Q(`div`,{ref:_,"data-type":`context-menu-anchor`,"data-visible":An?`true`:`false`,style:Nn,children:[Q(`button`,{ref:v,type:`button`,"data-type":bF,"aria-label":`Options`,"aria-haspopup":`menu`,"aria-expanded":L==null?`false`:`true`,"data-visible":kn?`true`:`false`,onMouseDown:e=>{e.preventDefault()},onClick:e=>{if(e.preventDefault(),e.stopPropagation(),L!=null){Mt();return}In()},tabIndex:-1,style:Pn,children:Q(lV,{...tt(`file-tree-icon-ellipsis`)})}),L==null?null:Q(`slot`,{name:yF})]}):null,L==null?null:Q(`div`,{"data-type":`context-menu-wash`,"aria-hidden":`true`,onMouseDownCapture:e=>{e.preventDefault(),Mt()},onTouchStartCapture:e=>{e.preventDefault(),e.stopPropagation(),Mt()},onTouchMoveCapture:e=>{e.preventDefault(),e.stopPropagation()},onWheelCapture:e=>{e.preventDefault(),e.stopPropagation()}})]})}var yU={hydrateRoot:(e,t)=>{iV(PB(vU,t),e)},renderRoot:(e,t)=>{rV(PB(vU,t),e)},unmountRoot:e=>{rV(null,e)}};function bU(e,t){yU.renderRoot(e,t)}function xU(e,t){yU.hydrateRoot(e,t)}function SU(e){yU.unmountRoot(e)}var CU=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 wU(e,t,n){if(!e.s){if(n instanceof TU){if(!n.s)return void(n.o=wU.bind(null,e,t));1&t&&(t=n.s),n=n.v}if(n&&n.then)return void n.then(wU.bind(null,e,t),wU.bind(null,e,2));e.s=t,e.v=n;let r=e.o;r&&r(e)}}var TU=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{wU(r,1,a(this.v))}catch(e){wU(r,2,e)}return r}return this}return this.o=function(e){try{var i=e.v;1&e.s?wU(r,1,t?t(i):i):n?wU(r,1,n(i)):wU(r,2,i)}catch(e){wU(r,2,e)}},r},e}();Array.isArray;var EU=0;function DU(e){return e!=null&&e.length>0?e:(EU+=1,`pst_ft_${EU}`)}function OU({initialVisibleRowCount:e,itemHeight:t}){return e==null?420:Math.max(0,e)*(t??cz)}function kU(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 AU(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 jU(e){return Array.from(e.children).filter(e=>e instanceof SVGElement)}var MU=class{static LoadedCustomComponent=!0;#e;#t;#n;#r;#i;#a;#o;#s;#c;#l=new CU;#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=DU(a),this.#p=uB(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=sz(n,c),this.#d={itemHeight:this.#u.itemHeight,overscan:d,stickyFolders:_,initialVisibleRowCount:y},this.#t=new aB({...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&&(SU(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=dB(this.#p,e);if(t===this.#p)return;this.#p=t;let n=this.#T();n!=null&&bU(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(),bU(t.wrapper,this.#w()))}setGitStatus(e){let t=uB(e,this.#p);if(t===this.#p)return;this.#p=t;let n=this.#T();n!=null&&bU(n.wrapper,this.#w())}setIcons(e){this.#m=e;let t=this.#T();t!=null&&(this.#E(t.host,t.wrapper),bU(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(),bU(r,this.#w())}#C(){return{initialViewportHeight:OU({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(vF,e());return}this.#l.setSlotHtml(vF,this.#e?.header?.html??null)}#k(e){let t=jU(e).find(e=>AU(e)),n=kU(cF(SF(this.#m).set));n!=null&&(t==null||t.outerHTML!==n.outerHTML)&&(t==null?e.prepend(n):t.replaceWith(n))}#A(e){let t=jU(e),n=t.find(e=>AU(e)),r=t.filter(e=>e!==n),i=SF(this.#m).spriteSheet?.trim()??``;if(i.length===0){for(let e of r)e.remove();return}let a=kU(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=SF(this.#m);t.colored&&uF(t.set)?e.dataset.fileTreeColoredIcons=`true`:delete e.dataset.fileTreeColoredIcons}#M(e){let t=e.querySelector(`style[${mF}]`);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(mF,``),this.#g.parentNode!==e&&e.appendChild(this.#g),this.#g.textContent=fz(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 vz(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)}};function NU(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 PU(e){let t=e.lastIndexOf(`/`,e.length-2);return t===-1?``:e.slice(0,t+1)}function FU(e,t){let n=new Set(e),r=new Set(t),i=NU(t),a=new Set([...NU(e)].filter(e=>!i.has(e))),o=[];for(let e of a)a.has(PU(e))||o.push({type:`remove`,path:e,recursive:!0});for(let t of e)!r.has(t)&&!a.has(PU(t))&&o.push({type:`remove`,path:t});for(let e of t)n.has(e)||o.push({type:`add`,path:e});return o}var IU=new Set([`/`,`.`,`-`,`_`,` `]);function LU(e,t){if(t===0)return!0;let n=e[t-1];if(IU.has(n))return!0;let r=e[t];return r!==r.toLowerCase()&&n===n.toLowerCase()}function RU(e,t,n){let r=0;for(let i=0;i<t.length;i++){let a=t[i];r+=1,LU(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 zU(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 BU(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]&&LU(t,s));)s++;if(s>=n.length)return null;i.push(s),a=s+1}return i}function VU(e,t,n,r,i){let a=zU(e,n,r);if(!a)return null;let o=BU(e,t,n,r),s=RU(t,a,i),c=o?RU(t,o,i):-1/0;return c>s?{score:c,hits:o}:{score:s,hits:a}}function HU(e,t,n,r){for(let i=t.indexOf(n,r);i!==-1;i=t.indexOf(n,i+1))if(LU(e,i))return!0;return!1}function UU(e,t){let n=e.split(/\s+/).filter(Boolean);if(!n.length)return{score:0,hits:[]};let r=t.toLowerCase(),i=t.lastIndexOf(`/`)+1,a=0,o=new Set;for(let e of n){let n=e.toLowerCase(),s=VU(n,t,r,i,i),c=s??VU(n,t,r,0,i);if(!c)return null;s&&HU(t,r,n,i)&&(a+=20),r.slice(i)===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 WU(e){let t=e.match(/^(.*?):(\d+)(?::\d+)?\s*$/);return t?{query:t[1],line:Number(t[2])}:{query:e,line:0}}function GU(e,t,n,r){let i=[];for(let r of e){let e=UU(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 KU=Ht,qU=(e=>`/${e}&`)(` b`),JU=60;function YU(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 XU=x(0,1,e=>y(e.a,e._.e)),ZU=XU,QU=x(0,0,e=>y(e.b,e._.e)),$U=v(0,`<mark> </mark>`,` D `,e=>{QU._(e),j(e.a,`_l3`)},` `,` `,ZU),eW=(e,t)=>$U(e,+!t),tW=(e,t)=>{eW(e,t[0]?.hit),nW(e,t[0]?.text)},nW=M(4,e=>{QU(e),XU(e)}),rW=x(0,1,e=>y(e.a,e._.e)),iW=rW,aW=x(0,0,e=>y(e.b,e._.e)),oW=v(0,`<mark> </mark>`,` D `,e=>{aW._(e),j(e.a,`_l3`)},` `,` `,iW),sW=(e,t)=>oW(e,+!t),cW=(e,t)=>{sW(e,t[0]?.hit),lW(e,t[0]?.text)},lW=M(4,e=>{aW(e),rW(e)}),uW=e=>j(e.a,u),dW=x(5,0,e=>y(e.b,e._.n)),fW=e=>{dW._(e),j(e.a,o)},pW=I(34,e=>y(e.b,e._._._._.u),e=>e._._._._,`N5`),mW=e=>{pW(e),j(e.a,`_l4`)},hW=O(2,e=>y(e.b,e._._._.l?`Loading files…`:e._._._.s?`No file matches “${S(e._._._.s)}”.`:`Type part of a file's name. Add :42 to open it at line 42.`)),gW=I(29,hW,e=>e._._._,`N11`),_W=e=>{gW(e),vW(e),j(e.a,`_c9`)},vW=I(33,hW,e=>e._._._,`N12`),yW=I(28,e=>y(e.b,e._._._._.k),e=>e._._._._,`N4`),bW=v(0,`<li role=presentation>Recently opened</li>`,` `,uW,`<li role=presentation> </li>`,` D `,e=>{yW(e),j(e.a,u)}),xW=O(17,e=>bW(e,!e._._._.s&&e.o===0?0:e.j&&(e.o===0||!e._._._.v[e.o-1].more)?1:2),3),SW=I(33,xW,e=>e._._._,`N7`),CW=k(`N6`,e=>{g(e.c,`mousemove`,function(){e._._._.p!==e.o&&uG(e._._._,e.o)}),g(e.c,`click`,function(){e._._._.a1(e.o)})}),wW=e=>{SW(e),DW(e),OW(e),AW(e),j(e.d,`_l1`),j(e.e,`_l2`),CW(e)},TW=v(6,`<span>:<!></span>`,` Db%`,mW),EW=O(16,e=>TW(e,e._._._.u&&e.o===e._._._.y?0:1),2),DW=I(34,EW,e=>e._._._,`N8`),OW=I(35,xW,e=>e._._._,`N9`),kW=O(15,e=>{N(e.b,`aria-selected`,e.o===e._._._.y?`true`:`false`),j(e.c,[`_c4`,e.o===e._._._.y&&`_c3`])}),AW=I(37,e=>{kW(e),EW(e)},e=>e._._._,`N10`),jW=M(9,xW),MW=M(14,e=>{xW(e),kW(e),EW(e)}),NW=w(3,`<!><!><!>`,`b%`,0,cW),PW=w(4,`<!><!><!>`,`b%`,0,tW),FW=O(20,e=>{NW(e,[YU(e.s,e.m,e.t,e.s?.length)]),PW(e,[YU(e.s,e.m,0,Math.max(0,e.t-1))])},2),IW=M(19,FW),LW=M(18,e=>{N(e.c,`title`,e.s),IW(e,e.s.lastIndexOf(`/`)+1),FW(e)}),RW=M(12,FW),zW=v(5,`<span> </span>`,` D `,fW),BW=M(13,e=>{zW(e,+!e.n),dW(e)}),VW=(e,t)=>{jW(e,t[0]?.more),LW(e,t[0]?.item?.path),BW(e,t[0]?.item?.hint),RW(e,t[0]?.hits),MW(e,t[1])},HW=I(31,e=>ne(e,`c`,e._._.o,jG(e)),e=>e._._,`N15`),UW=k(`N14`,e=>{oe(e,`c`),g(e.d,`click`,function(){e._._.z()})}),WW=e=>{HW(e),GW(e),qW(e),XW(e),j(e.a,`_cY`),Ae(e.b),Oe(e.b,14),je(e.b),j(e.c,l),j(e.d,[a,`_c0`]),Ie(e.e),Me(e.e,16),L(e.e),j(e.f,`_c1`),UW(e)},GW=I(32,e=>{N(e.c,`aria-controls`,e._._.q),N(e.f,`id`,e._._.q)},e=>e._._),KW=_(5,`<!><!><li role=option><button type=button><span></span><span></span><!><!></button></li>`,`b%b D D b b%b%`,wW,VW),qW=I(35,e=>KW(e,[e._._.v,e=>`${e.more?`+`:``}${e.item.key}`]),e=>e._._,`N16`),JW=v(6,`<p> </p>`,` D `,_W),YW=k(`N13`,e=>g(e.c,`keydown`,function(t){if(t.key===`ArrowDown`||t.key===`ArrowUp`){t.preventDefault();let n=e._._.w;n&&uG(e._._,(e._._.y+(t.key===`ArrowDown`?1:-1)+n)%n)}else t.key===`Enter`&&(t.preventDefault(),e._._.a1(e._._.y))})),XW=I(36,e=>{JW(e,+!!e._._.w),YW(e)},e=>e._._,`N17`),ZW=v(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><!><!>`)(De,Ee),((e,t)=>` D/${e}& b D/${t}&m b%c`)(Te,Fe),WW),QW=I(30,e=>ZW(e,+!e._.m),0,`N18`),$W=se(`N19`,`<!><!><!>`,`b%`,QW),eG=F(QW),tG=E(12,e=>{zt(e.a,e.m),eG(e)}),nG=O(5,e=>tG(e,e.d,e.e)),rG=M(3,nG),iG=M(4,nG),aG=(e,t)=>{bG(e,t?.query),SG(e,t?.line)},oG=F(HW),sG=C(14,e=>{aG(e,WU(e.o.trim())),oG(e)}),cG=M(24,F(AW)),lG=O(23,e=>cG(e,Math.min(e.p,Math.max(0,e.w-1)))),uG=C(15,lG),dG=M(16),fG=M(27),pG=O(26,e=>fG(e,MG(e)),3),mG=M(25,pG);function hG(e){Lt(e.a),Gt(e.a,$W(e)),It(e.a,`Go to file`),Pt(e.a,[`_bG`,`_cX`]),Kt(e.a,PG(e)),Wt(e.a,!0),Rt(e.a),Vt(e.a),Ft(e.a),Bt(e.a),Ut(e.a,{}),sG(e,``),uG(e,0),dG(e,T(e)),mG(e,NG(e))}var gG=F(qW,OW),_G=M(21,e=>{wG(e,e.v?.length),pG(e),gG(e)}),vG=O(19,e=>_G(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=GU(e.g,e=>e.path,t,JU).map(e=>({item:e.item,hits:e.match.hits,more:!1})),r=e.i?GU(e.i.items,e=>e.path,t,JU).map(e=>({item:e.item,hits:e.match.hits,more:!0})):[];return[...n,...r]})()),3),yG=F(SW,vW),bG=M(18,e=>{vG(e),yG(e)}),xG=F(DW,pW),SG=M(20,e=>{pG(e),xG(e)}),CG=F(XW),wG=M(22,e=>{lG(e),CG(e)}),TG=M(6,vG),EG=M(7,vG),DG=M(8,e=>{kG(e,e.i?.label),vG(e)}),OG=M(9,pG),kG=M(10,F(yW)),AG=M(11,F(gW)),jG=e=>function(t){sG(e._._,t),uG(e._._,0)},MG=e=>t=>{let n=e.v[t];if(!n)return;let r=e.u;e.z(),e.j(n.item.key,r,n.more)},NG=e=>()=>{tG(e,!1),sG(e,``),uG(e,0)},PG=e=>t=>{tG(e,t)};b.N3=jG,b.N1=MG,b.N0=NG,b.N2=PG;export{SE as $,Gx as $t,nN as A,$C as At,pD as B,vC as Bt,cN as C,xw as Ct,iN as D,Cw as Dt,aN as E,Sw as Et,HM as F,GC as Ft,AE as G,xC as Gt,ZE as H,bC as Ht,bM as I,KC as It,fE as J,oC as Jt,jE as K,CC as Kt,xD as L,qC as Lt,OM as M,sw as Mt,WM as N,JC as Nt,rN as O,fw as Ot,CM as P,ZC as Pt,CE as Q,uS as Qt,SD as R,UC as Rt,lN as S,yw as St,sN as T,vw as Tt,PE as U,kC as Ut,lD as V,SC as Vt,FE as W,DC as Wt,gE as X,kS as Xt,hE as Y,$S as Yt,EE as Z,TS as Zt,WN as _,Ew as _t,rG as a,hT as at,fN as b,jw as bt,hG as c,iT as ct,NU as d,$w as dt,W_ as en,OE as et,FU as f,tT as ft,JN as g,Jw as gt,XN as h,Qw as ht,OG as i,gT as it,VM as j,ow as jt,tN as k,mw as kt,KU as l,aT as lt,qN as m,rT as mt,AG as n,XT as nt,iG as o,mT as ot,MU as p,nT as pt,dE as q,_C as qt,DG as r,ZT as rt,EG as s,dT as st,TG as t,Tn as tn,wE as tt,qU as u,eT as ut,zN as v,Rw as vt,oN as w,hw as wt,uN as x,_w as xt,dN as y,Lw as yt,gD as z,HC as zt};
1591
+ }`}var mz=new WeakMap;function hz(e){let t=mz.get(e);if(t!=null)return t;let n=document.createElement(`div`);n.setAttribute(gF,`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(),mz.set(e,i),i}function gz(e,t){if(!e.isConnected)return;let n=hz(t);if(n==null)return;let r=t.querySelector(`style[${_F}]`),i=r instanceof HTMLStyleElement?r:document.createElement(`style`);r instanceof HTMLStyleElement||(i.setAttribute(_F,``),t.appendChild(i)),i.textContent=`:host { ${vF}: ${n}px; }`}var _z;function vz(e){if(typeof CSSStyleSheet<`u`&&typeof CSSStyleSheet.prototype.replaceSync==`function`&&`adoptedStyleSheets`in e){_z??(_z=new CSSStyleSheet,_z.replaceSync(fz(uz)));let t=!1;try{e.adoptedStyleSheets=[_z],t=!0}catch{}if(t){e.querySelector(`style[${mF}]`)?.remove();return}}if(e.querySelector(`style[data-file-tree-style]`)==null){let t=document.createElement(`style`);t.setAttribute(mF,``),t.textContent=fz(uz),e.prepend(t)}}function yz(e,t){bz(e,t),vz(t),gz(e,t)}function bz(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`});yz(this,e)}}if(customElements.define(pF,e),typeof document<`u`)for(let e of Array.from(document.querySelectorAll(pF)))e instanceof HTMLElement&&yz(e,e.shadowRoot??e.attachShadow({mode:`open`}))}var xz=e=>e.startsWith(`f::`)?e.slice(3):e;function Sz(e){let t=e.lastIndexOf(`/`);return t<0?{parentPath:``,baseName:e}:{parentPath:e.slice(0,t),baseName:e.slice(t+1)}}function Cz(e,t){return e===``?t:`${e}/${t}`}function wz({files:e,path:t,isFolder:n,nextBasename:r}){let i=xz(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}=Sz(i);if(a===s)return{nextFiles:e,sourcePath:i,destinationPath:i,isFolder:n};let c=Cz(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 Tz(e){return e.endsWith(`/`)}function Ez(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 Dz(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 Oz(e,t){return t.includes(e)?Dz(t):[e]}function kz(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 Az(e,t){return{draggedPaths:e,target:t}}function jz(e,t){if(t.kind!==`directory`||t.directoryPath==null)return!1;for(let n of e)if(Tz(n)&&(t.directoryPath===n||t.directoryPath.startsWith(n)))return!0;return!1}function Mz(e,t){return t.kind===`root`||t.directoryPath==null?Ez(e):t.directoryPath}function Nz(e,t){let n=e.map(e=>{let n=Mz(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 Pz(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 Fz(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(!Pz(az.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 Iz(e){return e.operation===`add`||e.operation===`remove`||e.operation===`move`||e.operation===`batch`}function Lz(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 Rz(e,t){if(e===t)return!0;let n=t.endsWith(`/`)?t:`${t}/`;return e.startsWith(n)}function zz(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 Rz(e,t.path)?n?e:null:e;case`move`:return Lz(e,t.from,t.to);case`batch`:{let r=e;for(let e of t.events)if(r=zz(r,e,n),r==null)return null;return r}}}function Bz(e){return{canonicalChanged:e.canonicalChanged,projectionChanged:e.projectionChanged,visibleCountDelta:e.visibleCountDelta}}function Vz(e){switch(e.operation){case`add`:return{...Bz(e),operation:`add`,path:e.path};case`remove`:return{...Bz(e),operation:`remove`,path:e.path,recursive:e.recursive};case`move`:return{...Bz(e),from:e.from,operation:`move`,to:e.to}}}function Hz(e){return{...Bz(e),events:e.events.filter(e=>e.operation===`add`||e.operation===`remove`||e.operation===`move`).map(e=>Vz(e)),operation:`batch`}}function Uz(e){switch(e.operation){case`add`:case`remove`:case`move`:return Vz(e);case`batch`:return Hz(e);default:return null}}function Wz(e,t){if(e.size!==t.length)return!1;for(let n of t)if(!e.has(n))return!1;return!0}function Gz(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 Kz(e){return Gz(e).at(-1)??null}function qz(e,t){return t==null?e:e.startsWith(t)?e.slice(t.length):e}function Jz(e){return e.endsWith(`/`)}var Yz=e=>e.toLowerCase();function Xz(e){let t=e.endsWith(`/`)?e.slice(0,-1):e,n=t.lastIndexOf(`/`);return n<0?t:t.slice(n+1)}function Zz(e){return e.endsWith(`/`)?e.slice(0,-1):e}function Qz(e,t){return t&&!e.endsWith(`/`)?`${e}/`:e}var $z=e=>{let t=e.trim();return t.length===0?``:(t.includes(`\\`)?t.replaceAll(`\\`,`/`):t).toLowerCase()},eB=Symbol(`FILE_TREE_RENAME_VIEW`),tB=512,nB=512;function rB(e){return e===`top`||e===`center`?e:`nearest`}function iB(e,t,n){if(e===0)return-1;if(n!=null){let e=t(n);if(e!=null)return e;let r=Gz(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 aB(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:iB(e.paths.length,r,t),getParentIndex:e.getParentIndex,paths:e.paths,posInSetByIndex:e.posInSetByIndex,setSizeByIndex:e.setSizeByIndex}}var oB=class e{static{Object.defineProperty(e.prototype,eB,{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=Fz({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=Kz(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:rB(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<=nB){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=Oz(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=Az(t.draggedPaths,n);(jz(t.draggedPaths,n)||this.#r?.canDrop?.(e)===!1)&&(n=null)}kz(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=Az(e.draggedPaths,t);if(jz(e.draggedPaths,t)||this.#r?.canDrop?.(n)===!1)return this.#De(),!1;let r=Nz(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=Jz(r),a=Zz(r);if(this.#C?.({isFolder:i,path:a})===!1)return!1;for(let e of Gz(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=Xz(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,Jz(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,Jz(e)?{recursive:!0}:void 0);return}let t=Jz(e),n=wz({files:this.#H.list(),isFolder:t,nextBasename:this.#E,path:Zz(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(Qz(n.sourcePath,t),Qz(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=Fz({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=!Wz(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=Kz(e),n=qz(e,t),r=null,i=null;for(let e of this.#be()){if(Kz(e)!==t)continue;let a=qz(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=Gz(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=!Wz(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 az({...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 Gz(t))e.add(n)}return this.#m=[...e].sort(),this.#m}#fe(){return this.#g??=this.#ue().map(Yz),this.#g}#pe(){return this.#f??=this.#de().filter(e=>e.endsWith(`/`)),this.#f}#me(){return this.#p??=this.#pe().map(Yz),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 Gz(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:$z(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 Gz(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 Gz(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=aB(this.#H.getVisibleTreeProjectionData(t?void 0:Math.min(n,tB)),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=zz(this.#T,e);t==null&&this.#T!=null&&(this.#E=``),this.#T=t;let n=zz(this.#c,e,!0),r=[...this.#B].map(t=>zz(t,e)).filter(e=>e!=null).map(e=>this.#H.getPathInfo(e)?.path??null).filter(e=>e!=null),i=zz(this.#z,e),a=i==null?null:this.#H.getPathInfo(i)?.path??null,o=[...new Set(r)];return Wz(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&&Iz(e)&&(this.#i=null);let t=Iz(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=Uz(e);i!=null&&this.#Oe(i)})}#ze(e){if(this.#H.isExpanded(e)){this.#ie(e);return}this.#ke(e)}},sB=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 cB(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 lB(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 uB(e,t){return t?`${e}/`:e}function dB(e,t=null){let n=sB(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=pB(t);e!=null&&gB({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=mB(e);t!=null&&(c=hB({canonicalPath:t.canonicalPath,changeCountByDirectoryPath:s,directoriesWithChanges:a,ignoredDirectoryPaths:o,statusByPath:i})||c)}for(let e of r){let t=pB(e);t!=null&&(c=gB({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:yB(i),statusByPath:i}:e}function pB(e){return mB(e.path)}function mB(e){let t=cB(e);if(t!=null)return{canonicalPath:uB(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),vB(t,n,e),!0)}function gB({canonicalPath:e,changeCountByDirectoryPath:t,directoriesWithChanges:n,ignoredDirectoryPaths:r,isDirectory:i,status:a,statusByPath:o}){let s=o.get(e);return s!==a&&(s??_B(t,n,e),o.set(e,a),a===`ignored`&&i?r.add(e):i&&r.delete(e),!0)}function _B(e,t,n){for(let r of lB(n))e.set(r,(e.get(r)??0)+1),t.add(r)}function vB(e,t,n){for(let r of lB(n)){let n=(e.get(r)??0)-1;n>0?e.set(r,n):(e.delete(r),t.delete(r))}}function yB(e){let t=`${e.size}`;for(let[n,r]of e)t+=`\0${n}\0${r}`;return t}var Z,bB,xB,SB,CB,wB,TB,EB,DB,OB,kB={},AB=[],jB=Array.isArray,MB=AB.slice,NB=Object.assign;function PB(e){e&&e.parentNode&&e.remove()}function FB(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?MB.call(arguments,2):n),IB(e,o,r,i,null)}function IB(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??++bB,__i:-1,__u:0};return i==null&&Z.vnode!=null&&Z.vnode(a),a}function LB(e){return e.children}function RB(e,t){this.props=e,this.context=t,this.__g=0}function zB(e,t){if(t==null)return e.__?zB(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`?zB(e):null}function BB(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 BB(e)}}function VB(e){(8&e.__g||!(e.__g|=8)||!xB.push(e)||CB++)&&SB==Z.debounceRendering||((SB=Z.debounceRendering)||queueMicrotask)(HB)}function HB(){for(var e,t,n,r,i,a,o,s,c=1;xB.length;)xB.length>c&&xB.sort(wB),e=xB.shift(),c=xB.length,8&e.__g&&(n=void 0,i=(r=(t=e).__v).__e,a=[],o=[],(s=t.__P)&&((n=NB({},r)).__v=r.__v+1,Z.vnode&&Z.vnode(n),XB(s,n,r,t.__n,s.namespaceURI,32&r.__u?[i]:null,a,i??zB(r),!!(32&r.__u),o,s.ownerDocument),n.__v=r.__v,n.__.__k[n.__i]=n,QB(a,n,o),n.__e!=i&&BB(n)));CB=0}function UB(e,t,n,r,i,a,o,s,c,l,u,d){var f,p,m,h,g,_,v,y=r&&r.__k||AB,b=t.length;for(c=WB(n,t,y,c,b),f=0;f<b;f++)(m=n.__k[f])!=null&&(p=m.__i==-1?kB:y[m.__i]||kB,m.__i=f,_=XB(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=GB(m,c,e,v):typeof m.type==`function`&&_!==void 0?c=_:h&&(c=h.nextSibling),m.__u&=-7);return n.__e=g,c}function WB(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?IB(null,o,null,null,null):jB(o)?IB(LB,{children:o},null,null,null):o.constructor==null&&o.__b>0?IB(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=KB(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=zB(s)),nV(s,s));return r}function GB(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=GB(i[a],t,n,r));return t}e.__e!=t&&(r&&(t&&e.type&&!t.parentNode&&(t=zB(e)),n.insertBefore(e.__e,t||null)),t=e.__e);do t&&=t.nextSibling;while(t!=null&&t.nodeType==8);return t}function KB(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 qB(e,t,n){t[0]==`-`?e.setProperty(t,n??``):e[t]=n??``}function JB(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||qB(e.style,t,``);if(n)for(t in n)r&&n[t]==r[t]||qB(e.style,t,n[t])}}else if(t[0]==`o`&&t[1]==`n`)a=t!=(t=t.replace(TB,`$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=EB,e.addEventListener(t,a?OB:DB,a)):e.removeEventListener(t,a?OB:DB,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 YB(e){return function(t){if(this.__l){var n=this.__l[t.type+e];if(t.u==null)t.u=EB++;else if(t.u<n.l)return;return n(Z.event?Z.event(t):t)}}}function XB(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,D,O,k,A,ee,j=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=Z.__b)&&d(t);n:if(typeof j==`function`)try{if(v=t.props,y=`prototype`in j&&j.prototype.render,b=(d=j.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 j(v,x):(t.__c=f=new RB(v,x),f.constructor=j,f.render=rV),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&&j.getDerivedStateFromProps!=null&&(f.__s==f.state&&(f.__s=NB({},f.__s)),NB(f.__s,j.getDerivedStateFromProps(v,f.__s))),m=f.props,h=f.state,f.__v=t,p)y&&j.getDerivedStateFromProps==null&&f.componentWillMount!=null&&f.componentWillMount(),y&&f.componentDidMount!=null&&f.__h.push(f.componentDidMount);else{if(y&&j.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=Z.__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=NB({},r,f.getChildContext())),y&&!p&&f.getSnapshotBeforeUpdate!=null&&(g=f.getSnapshotBeforeUpdate(m,h)),E=d,d!=null&&d.type===LB&&d.key==null&&(E=$B(d.props.children)),s=UB(e,jB(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(D=0,O=!1,t.__u|=c?160:128,t.__c.__z=[],k=0;k<a.length;k++)(A=a[k])==null||O||(A.nodeType==8&&A.data==`$s`?(D>0&&t.__c.__z.push(A),D++,a[k]=null):A.nodeType==8&&A.data==`/$s`?(--D>0&&t.__c.__z.push(A),O=D===0,s=a[k],a[k]=null):D>0&&(t.__c.__z.push(A),a[k]=null));if(!O){for(;s&&s.nodeType==8&&s.nextSibling;)s=s.nextSibling;a[a.indexOf(s)]=null,t.__c.__z=[s]}t.__e=s}else{for(ee=a.length;ee--;)PB(a[ee]);ZB(t)}}else t.__e=n.__e,t.__k=n.__k,e.then||ZB(t);Z.__e(e,t,n)}else s=t.__e=eV(n.__e,t,n,r,i,a,o,c,l,u);return(d=Z.diffed)&&d(t),128&t.__u?void 0:s}function ZB(e){e&&e.__c&&(e.__c.__g|=4),e&&e.__k&&e.__k.forEach(ZB)}function QB(e,t,n){for(var r=0;r<n.length;r++)tV(n[r],n[++r],n[++r]);Z.__c&&Z.__c(t,e),e.some(function(t){try{e=t.__h,t.__h=[],e.some(function(e){e.call(t)})}catch(e){Z.__e(e,t.__v)}})}function $B(e){return typeof e!=`object`||!e||e.__b&&e.__b>0?e:jB(e)?e.map($B):NB({},e)}function eV(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&&=(Z.__m&&Z.__m(t,a),!1),a=null}if(b==null)v===y||s&&e.data==y||(e.data=y);else{if(a&&=MB.call(e.childNodes),v=n.props||kB,!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;JB(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&&!_||JB(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=``),UB(b==`template`?e.content:e,jB(p)?p:[p],t,n,r,b==`foreignObject`?`http://www.w3.org/1999/xhtml`:i,a,o,a?a[0]:n.__k&&zB(n,0),s,c,l),a!=null)for(u=a.length;u--;)PB(a[u]);s||(u=`value`,b==`progress`&&h==null?e.removeAttribute(`value`):h==null||h===e[u]&&(b!==`progress`||h)||JB(e,u,h,v[u],i),u=`checked`,g!=null&&g!=e[u]&&JB(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){Z.__e(e,n)}}function nV(e,t,n){var r,i;if(Z.unmount&&Z.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){Z.__e(e,t)}r.__P=null}if(r=e.__k)for(i=0;i<r.length;i++)r[i]&&nV(r[i],t,n||typeof e.type!=`function`);n||PB(e.__e),e.__e&&e.__e.__l&&(e.__e.__l=null),e.__e=e.__c=e.__=null}function rV(e,t,n){return this.constructor(e,n)}function iV(e,t){var n,r,i,a;t==document&&(t=document.documentElement),Z.__&&Z.__(e,t),r=(n=!!(e&&32&e.__u))?null:t.__k,e=t.__k=FB(LB,null,[e]),i=[],a=[],XB(t,e,r||kB,kB,t.namespaceURI,r?null:t.firstChild?MB.call(t.childNodes):null,i,r?r.__e:t.firstChild,n,a,t.ownerDocument),QB(i,e,a)}function aV(e,t){e.__u|=32,iV(e,t)}Z={__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 CB=0,e}},bB=0,RB.prototype.setState=function(e,t){var n=this.__s!=null&&this.__s!=this.state?this.__s:this.__s=NB({},this.state);typeof e==`function`&&(e=e(NB({},n),this.props)),e&&NB(n,e),e!=null&&this.__v&&(t&&this._sb.push(t),VB(this))},RB.prototype.forceUpdate=function(e){this.__v&&(this.__g|=4,e&&this.__h.push(e),VB(this))},RB.prototype.render=LB,xB=[],CB=0,wB=function(e,t){return e.__v.__b-t.__v.__b},TB=/(PointerCapture)$|Capture$/i,EB=0,DB=YB(!1),OB=YB(!0);var oV=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:--oV,__i:-1,__u:0,__source:i,__self:a};return Z.vnode&&Z.vnode(l),l}var sV=16,cV=16,lV={};function uV({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:sV,height:cV},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 dV=e=>e!==void 0&&/\s/.test(e),fV=(e,t)=>{let n=t=>dV(e[t-1])||dV(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},pV=e=>fV(e,Math.ceil(e.length/2)),mV=e=>{if(e.length<2)return[e,``];let t=pV(e);return[e.slice(0,t),e.slice(t)]},hV=e=>{if(e.length<4)return[e,``];let t=e.lastIndexOf(`.`)+1,n=e.length-t>10,r=t>=1&&!n?t:pV(e);return[e.slice(0,r),e.slice(r)]},gV=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)]},_V=(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)]},vV=(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)]},yV=(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 bV({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 xV(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 SV({children:e,mode:t=`truncate`,marker:n=`…`,variant:r=`default`,...i}){"use no memo";let a=Q(xV,{mode:t,children:e},`content`),o=Q(bV,{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 CV({children:e,...t}){"use no memo";return Q(SV,{mode:`truncate`,...t,children:e})}function wV({children:e,...t}){"use no memo";return Q(SV,{mode:`fruncate`,...t,children:e})}function TV({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(CV,{...s,children:t[0]}),l=Q(wV,{...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`?wV:CV,{...s,className:a,style:o,children:e});let t=null,u=null,d=null;if(typeof r==`string`)r===`center`?t=mV:r===`extension`?t=hV:r===`leaf-path`&&(t=gV);else if(typeof r==`number`)t=_V,u=r;else if(Array.isArray(r)){let[e,n]=r;d=n,e===`last`?t=vV:e===`first`&&(t=yV)}else typeof r==`function`&&(t=r);t??=mV;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(CV,{...s,..._,children:f}),l=Q(wV,{...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 EV={endIndex:-1,startIndex:-1};function DV(e,t,n){return Math.min(Math.max(e,t),n)}function OV(e,t){return e<0||t<e?EV:{endIndex:t,startIndex:e}}function kV(e){return e.startIndex<0||e.endIndex<e.startIndex}function AV(e,t){return kV(e)?0:(e.endIndex-e.startIndex+1)*t}function jV(e,t,n){if(t<=0)return-1;let r=t*n;return e<=0?0:e>=r?t:Math.floor(e/n)}function MV(e,t,n){return t<=0||e<=0?-1:e>=t*n?t-1:Math.ceil(e/n)-1}function NV(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 PV(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 FV(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 IV(e,t,n){if(e.length===0||t<=0)return[];let r=FV(e),i=NV(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=PV(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 LV(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=DV(t.scrollTop,0,o),c=t.stickyRows??IV(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=jV(s,n,t.itemHeight),m=jV(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?EV:OV(m,MV(u+d,n,t.itemHeight)),y=g+1,b=kV(v)?EV:OV(Math.max(y,v.startIndex-a),Math.min(n-1,v.endIndex+a)),x=AV(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:kV(b)?0:b.startIndex*t.itemHeight,startIndex:b.startIndex}}}var RV={added:`A`,deleted:`D`,ignored:null,modified:`M`,renamed:`R`,untracked:`U`},zV={added:`Git status: added`,deleted:`Git status: deleted`,ignored:`Git status: ignored`,modified:`Git status: modified`,renamed:`Git status: renamed`,untracked:`Git status: untracked`},BV=`Contains git status items`;function VV(e){return e.current?!0:(e.current=!0,!1)}function HV(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 UV(e){let{currentScrollTop:t,focusedIndex:n,itemHeight:r,offset:i,topInset:a=0,totalHeight:o,viewportHeight:s}=e;if(i===`nearest`)return HV({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 WV(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 GV(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 KV(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 qV(e,t){if(e==null)return t;let n=e.getBoundingClientRect().height;return n>0?n:e.clientHeight>0?e.clientHeight:t}function JV(e,t){return e!=null&&e>0?e:t}function YV(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 XV(e,t,n,r,i=0){let a=HV({currentScrollTop:e.scrollTop,focusedIndex:t,itemHeight:n,topInset:i,viewportHeight:r});return a!=null&&(e.scrollTop=a,!0)}function ZV(e,t,n,r,i,a,o=0){let s=UV({currentScrollTop:e.scrollTop,focusedIndex:t,itemHeight:n,offset:a,topInset:o,totalHeight:i,viewportHeight:r});return s!=null&&(e.scrollTop=s,!0)}function QV(e,t,n,r,i,a){let o=WV({currentScrollTop:e.scrollTop,focusedIndex:t,itemHeight:n,targetViewportOffset:a,totalHeight:i,viewportHeight:r});return o!=null&&(e.scrollTop=o,!0)}function $V(e,t,n,r){return n.end<n.start?null:e<n.start?-t:e>n.end?r:null}function eH(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 nH(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 rH(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 iH,aH,oH,sH,cH=Object.is,lH=0,uH=[],dH=Z,fH=dH.__b,pH=dH.__r,mH=dH.diffed,hH=dH.__c,gH=dH.unmount,_H=dH.__;function vH(e,t){dH.__h&&dH.__h(aH,e,lH||t),lH=0;var n=aH.__H||(aH.__H={__:[],__h:[]});return e>=n.__.length&&n.__.push({}),n.__[e]}function yH(e){return lH=1,bH(jH,e)}function bH(e,t,n){var r=vH(iH++,2);if(r.t=e,!r.__c&&(r.__=[n?n(t):jH(void 0,t),function(e){var t=r.__N?r.__N[0]:r.__[0],n=r.t(t,e);cH(t,n)||(r.__N=[n,r.__[1]],r.__c.setState({}))}],r.__c=aH,!aH.__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,cH(t,e.__[0])||(o=!0)}}),a&&a.call(this,e,t,n)||o};aH.__f=!0;var a=aH.shouldComponentUpdate,o=aH.componentWillUpdate;aH.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)},aH.shouldComponentUpdate=i}return r.__N||r.__}function xH(e,t){var n=vH(iH++,3);!dH.__s&&AH(n.__H,t)&&(n.__=e,n.u=t,aH.__H.__h.push(n))}function SH(e,t){var n=vH(iH++,4);!dH.__s&&AH(n.__H,t)&&(n.__=e,n.u=t,aH.__h.push(n))}function $(e){return lH=5,CH(function(){return{current:e}},[])}function CH(e,t){var n=vH(iH++,7);return AH(n.__H,t)&&(n.__=e(),n.__H=t,n.__h=e),n.__}function wH(e,t){return lH=8,CH(function(){return e},t)}function TH(){for(var e;e=uH.shift();)if(e.__P&&e.__H)try{e.__H.__h.forEach(OH),e.__H.__h.forEach(kH),e.__H.__h=[]}catch(t){e.__H.__h=[],dH.__e(t,e.__v)}}dH.__b=function(e){aH=null,fH&&fH(e)},dH.__=function(e,t){e&&t.__k&&t.__k.__m&&(e.__m=t.__k.__m),_H&&_H(e,t)},dH.__r=function(e){pH&&pH(e),iH=0;var t=(aH=e.__c).__H;t&&(oH===aH?(t.__h=[],aH.__h=[],t.__.forEach(function(e){e.__N&&(e.__=e.__N),e.u=e.__N=void 0})):(t.__h.forEach(OH),t.__h.forEach(kH),t.__h=[],iH=0)),oH=aH},dH.diffed=function(e){mH&&mH(e);var t=e.__c;t&&t.__H&&(t.__H.__h.length&&(uH.push(t)!==1&&sH===dH.requestAnimationFrame||((sH=dH.requestAnimationFrame)||DH)(TH)),t.__H.__.forEach(function(e){e.u&&(e.__H=e.u),e.u=void 0})),oH=aH=null},dH.__c=function(e,t){t.some(function(e){try{e.__h.forEach(OH),e.__h=e.__h.filter(function(e){return!e.__||kH(e)})}catch(n){t.some(function(e){e.__h&&=[]}),t=[],dH.__e(n,e.__v)}}),hH&&hH(e,t)},dH.unmount=function(e){gH&&gH(e);var t,n=e.__c;n&&n.__H&&(n.__H.__.forEach(function(e){try{OH(e)}catch(e){t=e}}),n.__H=void 0,t&&dH.__e(t,n.__v))};var EH=typeof requestAnimationFrame==`function`;function DH(e){var t,n=function(){clearTimeout(r),EH&&cancelAnimationFrame(t),setTimeout(e)},r=setTimeout(n,35);EH&&(t=requestAnimationFrame(n))}function OH(e){var t=aH,n=e.__c;typeof n==`function`&&(e.__c=void 0,n()),aH=t}function kH(e){var t=aH;e.__c=e.__(),aH=t}function AH(e,t){return!e||e.length!==t.length||t.some(function(t,n){return!cH(t,e[n])})}function jH(e,t){return typeof t==`function`?t(e):t}function MH(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(LB,{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(CV,{children:e.name})}),i<r.length-1?` / `:``]},e.path)})})}function NH(e){return e.isFlattened?e.flattenedSegments?.findLast(e=>e.isTerminal)?.path??e.path:e.path}function PH(e){let t=e.flattenedSegments;return t==null||t.length===0?e.name:t.map(e=>e.name).join(` / `)}function FH(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 IH({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=LV(c,{itemHeight:t,overscan:n,scrollTop:r,stickyRows:s==null?void 0:FH(s,r,t,o),totalRowCount:o,viewportHeight:a}),u=i&&r<=0&&o>0?e.getStickyRowCandidates(1,t):[],d=u!=null&&r<=0?FH(u,1,t,o):i&&r<=0&&c.length>0?IV(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 LH=400,RH=40,zH=18;function BH(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))?VH(e,t,n):a instanceof HTMLElement?a:null}function VH(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 HH(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 UH(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 WH(){return navigator.vendor!==`Apple Computer, Inc.`}function GH(e,t){let n=e-t.top;if(n<RH)return-Math.ceil((RH-Math.max(0,n))/RH*zH);let r=t.bottom-e;return r<RH?Math.ceil((RH-Math.max(0,r))/RH*zH):0}function KH(e,t){if(e!=null){let t=RV[e];return t==null?null:{text:t,title:zV[e]}}return t?{icon:{name:`file-tree-icon-dot`,width:6,height:6},title:BV}:null}function qH(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 JH(e){return e!=null&&`toggle`in e}function YH(e){return e.code===`Space`||e.key===` `||e.key===`Spacebar`}function XH(e){return e.key.length===1&&/^[\p{L}\p{N}]$/u.test(e.key)&&!e.ctrlKey&&!e.metaKey&&!e.altKey}function ZH(e){return e==null?``:`[data-item-section="spacing-item"][data-ancestor-path="${e.replaceAll(`\\`,`\\\\`).replaceAll(`"`,`\\"`)}"] { opacity: 1; }`}function QH(e){return e.shiftKey&&e.key===`F10`||e.key===`ContextMenu`}function $H(e,t){return t&&QH(e)||(e.ctrlKey||e.metaKey)&&YH(e)?!0:e.key===`ArrowDown`||e.key===`ArrowLeft`||e.key===`ArrowRight`||e.key===`ArrowUp`}var eU=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 nU(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 rU(e,t){return{bottom:t,height:0,left:e,right:e,top:t,width:0,x:e,y:t}}function iU(e,t){if(e==null)return t.offsetTop;let n=t.getBoundingClientRect(),r=e.getBoundingClientRect();return n.top-r.top}function aU(e,t,n){if(n==null){e.delete(t);return}e.set(t,n)}function oU(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 sU(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 cU(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=cU(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 uU(e,t){return{kind:e.kind,name:PH(e),path:t}}function dU(e){return e==null?void 0:`${e}__tree`}function fU(e,t,n){if(e!=null)return`${e}__focused-item-${encodeURIComponent(t)}${n?`__parked`:``}`}function pU(e){return e===`file-tree-icon-chevron`||e===`file-tree-icon-dot`||e===`file-tree-icon-file`||e===`file-tree-icon-lock`}function mU(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`?pU(e.icon)?t(e.icon):{name:e.icon}:pU(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(uV,{...n})})}function hU(e){e!=null&&GV(e.querySelector([`button:not([disabled])`,`[href]`,`input:not([disabled])`,`select:not([disabled])`,`textarea:not([disabled])`,`[tabindex]:not([tabindex="-1"])`].join(`, `))??e)}function gU(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=NH(e);return Q(LB,{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(uV,{...t(`file-tree-icon-chevron`)}):Q(uV,{...t(`file-tree-icon-file`,u)})}),Q(`div`,{"data-item-section":`content`,children:e.isFlattened?MH(e,c,a):c??Q(TV,{minimumLength:5,split:`extension`,children:e.name})}),i?Q(`div`,{"data-item-section":`decoration`,children:r==null?null:mU(r,t)}):null,s?Q(`div`,{"data-item-section":`git`,children:mU(o,t)}):null,n?Q(`div`,{"data-item-section":`action`,children:l?Q(`span`,{"aria-hidden":`true`,"data-item-action-affordance":`decorative`,children:Q(uV,{...t(`file-tree-icon-ellipsis`)})}):null}):null]})}function _U(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:D,registerButton:O,resolveIcon:k,renderDecorationForRow:A,openContextMenuForRow:ee,onRowClick:j,onKeyDown:M}=e,N=NH(t),{isParked:te=!1,mode:ne=`flow`,style:re}=r,ie=ne===`sticky`,ae=_?.get(N)??null??qH(t.ancestorPaths,v,y),P=t.kind===`directory`&&(b?.has(N)??!1),oe=A(t,N),F=KH(ae,P),se=S&&w,I=oe!=null||x||se,ce=se&&T===`always`,le=a.getPath()===N,ue=le?a.getValue():``,de=ie||!le?null:Q(tH,{ref:D,ariaLabel:`Rename ${PH(t)}`,isFlattened:t.isFlattened,value:ue,onBlur:()=>{a.commit()},onInput:e=>{a.setValue(e.currentTarget.value)}}),fe=gU(t,k,{actionLaneEnabled:se,customDecoration:oe,decorationLaneEnabled:I,dragTargetFlattenedSegmentPath:l?.flattenedSegmentPath??null,gitDecoration:F,gitLaneActive:x,renameInput:de,showDecorativeActionAffordance:ce}),pe={...nH({ariaLabel:PH(t),domId:t.isFocused?fU(h,N,te):void 0,extraStyle:re,features:{actionLaneEnabled:se,contextMenuButtonVisibility:se?T:null,contextMenuEnabled:S,contextMenuTriggerMode:S?C:null,gitLaneActive:x},isParked:te,itemHeight:g,mode:ne,row:t,state:{containsGitChange:P,effectiveGitStatus:ae,isContextHovered:s===N,isDragTarget:l?.kind===`directory`&&l.directoryPath===N,isDragging:c?.has(N)===!0,isFocusRinged:t.isFocused&&o===N},targetPath:N}),key:n,onContextMenu:S||u?e=>{if(d()){e.preventDefault();return}S&&(e.preventDefault(),E&&(i.focusMountedPathFromInput(N),ee(t,N,{anchorRect:rU(e.clientX,e.clientY),source:`right-click`})))}:void 0,onFocus:ie?void 0:()=>{i.focusMountedPathFromInput(N)},onKeyDown:ie?void 0:M,ref:e=>{O(N,e)}};return!ie&&le?Q(`div`,{...pe,children:fe}):Q(`button`,{...pe,type:`button`,draggable:u&&!te,onDragEnd:u&&!te?p:void 0,onDragStart:u&&!te?e=>{f(e,t,N)}:void 0,onMouseDown:e=>{if(ie){e.preventDefault();return}i.isSearchOpen()&&e.preventDefault()},onTouchStart:u&&!te?e=>{m(e,t,N)}:void 0,onClick:e=>{j(e,t,N,ne)},children:fe})}function vU(e,t,n){return t.end<t.start?[]:e.controller.getVisibleRows(t.start,t.end).filter(e=>!n.has(NH(e))).map((n,r)=>_U(e,n,t.start+r))}function yU({composition:e,controller:t,gitStatusByPath:n,ignoredGitDirectories:r,directoriesWithGitChanges:i,icons:a,instanceId:o,itemHeight:s=lz,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),D=$(()=>{}),O=$(null),k=$(0),A=$(!1),ee=$(null);ee.current!==t&&(A.current=!1,ee.current=t);let j=$(!1),M=$(null),N=$(null),te=$(!1),ne=$(null),re=$(null),ie=$(null),ae=$(null),P=$(null),oe=$(null),F=$(null),se=$(null),I=$(!1),ce=$(null),le=$(null),ue=$(null),de=$(null),fe=CH(()=>new Map,[]),[,pe]=yH(0),me=$(!1),[he,ge]=yH(null),[_e,ve]=yH(null),[ye,be]=yH(null),[xe,Se]=yH(null),[Ce,we]=yH(0),[L,Te]=yH(null),Ee=$(L);Ee.current=L;let De=$(null),Oe=$(null),ke=$(null),Ae=$(null),je=$(null),Me=$(!1),Ne=()=>{Oe.current=null,ke.current=null,Ae.current=null},Pe=(e,t)=>{Oe.current=e,ke.current=null,Ae.current=t==null?null:{path:e,scrollTop:t}},Fe=(e,t)=>{Oe.current=null,ke.current={path:e,viewportOffset:t},Ae.current=null},Ie=$(d===`retain`&&t.isSearchOpen()),[Le,Re]=yH(p);xH(()=>{p||Re(!1)},[p]);let ze=$(!1),Be=wH(()=>{ze.current=!0,Re(e=>e&&!1)},[]),[Ve,He]=yH(()=>IH({controller:t,itemHeight:s,overscan:c,scrollTop:0,stickyFolders:h,viewportHeight:g})),[Ue,We]=yH(!1);xH(()=>{We(!0)},[]);let Ge=e?.contextMenu?.enabled===!0||e?.contextMenu?.render!=null||e?.contextMenu?.onOpen!=null||e?.contextMenu?.onClose!=null,Ke=e?.contextMenu?.triggerMode??(Ge?`right-click`:`both`),qe=Ke===`both`||Ke===`button`,Je=e?.contextMenu?.buttonVisibility??`when-needed`,Ye=Ke===`both`||Ke===`right-click`;SH(()=>{let e=S.current;if(e==null)return;let t=e=>{if(!(e instanceof CustomEvent))return;let t=e.detail?.path??null;je.current=t,ve(t),Se(t==null?null:`pointer`)},n=e=>{e instanceof CustomEvent&&(Me.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 Xe=wH((e,t)=>{aU(T.current,e,t)},[]),Ze=wH((e,t)=>{aU(E.current,e,t)},[]),Qe=wH(e=>{x.current=e},[]),$e=wH(e=>oU(e,E.current,T.current),[]),et=n!=null||r!=null||i!=null,{resolveIcon:tt}=CH(()=>OF(a),[a]),nt=t[eB](),rt=nt.getPath(),it=rt!=null,at=t.isSearchOpen(),ot=t.getSearchValue(),R=t.getFocusedPath(),z=t.getFocusedIndex(),st=t.getScrollRequest(),ct=t.isDragAndDropEnabled(),lt=t.getDragSession(),ut=CH(()=>lt==null?null:new Set(lt.draggedPaths),[lt]),dt=lt?.target??null,ft=lt?.primaryPath??null,pt=dU(o),{overlayHeight:mt,overlayRows:ht,snapshot:gt,visibleRows:_t}=Ve,vt=gt.physical.viewportHeight,yt=CH(()=>({end:gt.window.endIndex,start:gt.window.startIndex}),[gt.window.endIndex,gt.window.startIndex]),bt=ht,xt=gt.sticky.rows,St=gt.physical.totalHeight,Ct=gt.sticky.height,wt=CH(()=>new Set(xt.map(e=>NH(e.row))),[xt]),Tt=z>=0&&z>=yt.start&&z<=yt.end,Et=wH((e,t)=>u?.({item:uU(e,t),row:e})??null,[u]),Dt=wH(e=>GV(e==null?null:T.current.get(e)??null)?!0:GV(S.current),[]),Ot=wH(e=>{Dt(t.focusNearestPath(e))},[t,Dt]),kt=$(Ot);kt.current=Ot;let At=$(!0),jt=$(()=>{}),Mt=wH((t=!0)=>{let n=Ee.current;n!=null&&(At.current=At.current&&t,Te(null),e?.contextMenu?.onClose?.(),At.current&&Ot(n.path))},[e?.contextMenu,Ot]);jt.current=Mt;let Nt=wH(e=>{let t=e==null?null:iU(S.current,e);be(e=>e===t?e:t)},[]),Pt=wH((e,n,r)=>{let i=t.getItem(n);if(i==null)return;let a=$e(n);if(a?.dataset.fileTreeStickyRow===`true`){let e=C.current;Pe(n,e?.scrollTop??null),j.current=!0,ge(e=>e===n?e:n)}i.focus(),Nt(a),At.current=!0,Te({anchorRect:r?.anchorRect??null,item:uU(e,n),path:n,source:r?.source??`keyboard`})},[t,$e,Nt]),Ft=wH(e=>{if(l){if(t.isSearchOpen()){let e=C.current,t=qV(e,vt);ne.current=z<0||e==null?null:Math.max(0,Math.min(z*s-e.scrollTop,Math.max(0,t-s))),te.current=!0}t.startRenaming(e)!==!1&&(Se(`focus`),pe(e=>e+1))}},[t,z,s,l,vt]),It=wH((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=qV(i,vt),u=t.getVisibleCount()*s,d=r===`sticky-parents`?o.ancestorPaths.length*s:IH({controller:t,itemHeight:s,overscan:c,scrollTop:i.scrollTop,stickyFolders:h,viewportHeight:l}).snapshot.sticky.height;return j.current=!0,QV(i,a,s,l,u,d),D.current(),De.current=n?e:null,!0},[t,s,c,vt,h]),Lt=()=>y.current===!0||de.current!=null||I.current===!0,Rt=e=>typeof window.requestAnimationFrame==`function`?window.requestAnimationFrame(()=>{e()}):window.setTimeout(e,16),zt=e=>{if(e!=null){if(typeof window.cancelAnimationFrame==`function`){window.cancelAnimationFrame(e);return}window.clearTimeout(e)}},Bt=()=>{ae.current!=null&&(clearTimeout(ae.current),ae.current=null),ie.current=null},Vt=()=>{oe.current?.remove(),oe.current=null},Ht=()=>{zt(re.current),re.current=null,P.current=null},Ut=e=>{let t=S.current?.getRootNode();if(t instanceof ShadowRoot){t.append(e);return}document.body.append(e)},Wt=()=>{se.current?.(),se.current=null,de.current!=null&&(clearTimeout(de.current),de.current=null),I.current=!1,ce.current=null,ue.current=null,le.current!=null&&(le.current.setAttribute(`draggable`,`true`),le.current.style.removeProperty(`touch-action`),le.current=null),Vt(),Bt(),Ht(),F.current=null},Gt=(e,n)=>{let r=S.current?.getRootNode(),i=HH(BH(r instanceof ShadowRoot?r:document,e,n));return t.setDragTarget(i),t.getDragSession()?.target??null},Kt=e=>{let n=t.getDragAndDropConfig()?.openOnDropDelay??800;if(e==null||e.kind!==`directory`||e.directoryPath==null||n<=0){Bt();return}let r=t.getItem(e.directoryPath),i=JH(r)?r:null;if(i==null||i.isExpanded()){Bt();return}let a=`${e.directoryPath}::${e.flattenedSegmentPath??``}`;ie.current!==a&&(Bt(),ie.current=a,ae.current=setTimeout(()=>{let n=t.getDragSession()?.target;n?.kind===`directory`&&n.directoryPath===e.directoryPath&&n.flattenedSegmentPath===e.flattenedSegmentPath&&i.expand()},n))},qt=()=>{re.current=null;let e=P.current,n=C.current;if(e==null||n==null||t.getDragSession()==null)return;let r=n.getBoundingClientRect(),i=GH(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,D.current()),Kt(Gt(e.clientX,e.clientY)),re.current=Rt(qt)},Jt=(e,t)=>{P.current={clientX:e,clientY:t},re.current??=Rt(qt)},Yt=(e,n,r)=>{let i=e.currentTarget;if(i!=null){if(Wt(),Vt(),Bt(),Ht(),t.startDrag(r)===!1){e.preventDefault();return}if(F.current=n,e.dataTransfer!=null&&(e.dataTransfer.effectAllowed=`move`,e.dataTransfer.dropEffect=`move`,e.dataTransfer.setData(`text/plain`,r),WH())){let t=UH(i),n=i.getBoundingClientRect();Object.assign(t.style,{height:`${n.height}px`,opacity:`0.85`,transform:`translate3d(-9999px, 0px, 0)`,width:`${n.width}px`}),Ut(t),oe.current=t,e.dataTransfer.setDragImage(t,Math.max(0,e.clientX-n.left),Math.max(0,e.clientY-n.top))}}},Xt=()=>{Vt(),Bt(),Ht(),F.current=null,t.cancelDrag()},Zt=(e,n,r)=>{if(de.current!=null||I.current)return;let i=e.touches[0],a=e.currentTarget;if(i==null||a==null)return;ue.current={clientX:i.clientX,clientY:i.clientY},le.current=a,a.setAttribute(`draggable`,`false`);let o=(e={})=>{let t=e.restoreNativeDraggable??!I.current;de.current!=null&&(clearTimeout(de.current),de.current=null),document.removeEventListener(`touchmove`,s),document.removeEventListener(`touchend`,c),document.removeEventListener(`touchcancel`,c),se.current===o&&(se.current=null),t&&(a.setAttribute(`draggable`,`true`),le.current===a&&(le.current=null),ue.current=null)},s=e=>{let t=e.touches[0],n=ue.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),se.current=o,de.current=setTimeout(()=>{if(o({restoreNativeDraggable:!1}),t.startDrag(r)===!1){a.setAttribute(`draggable`,`true`),le.current===a&&(le.current=null),ue.current=null;return}I.current=!0,le.current=a,a.setAttribute(`draggable`,`false`),a.style.setProperty(`touch-action`,`none`),F.current=n;let e=a.getBoundingClientRect(),s=UH(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`}),Ut(s),oe.current=s,ce.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=ce.current;n!=null&&oe.current!=null&&(oe.current.style.transform=`translate3d(${t.clientX-n.x}px, ${t.clientY-n.y}px, 0)`),Kt(Gt(t.clientX,t.clientY)),Jt(t.clientX,t.clientY)},l=e=>{let n=e.changedTouches[0];n!=null&&Gt(n.clientX,n.clientY),t.completeDrag(),Wt()},u=()=>{t.cancelDrag(),Wt()};se.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)},LH)},Qt=e=>{if(L!=null){if(e.key===`Escape`){Mt(),e.preventDefault(),e.stopPropagation();return}eU.has(e.key)&&(e.preventDefault(),e.stopPropagation());return}if(nt.isActive()){if(e.isComposing||e.keyCode===229)return;if(e.key===`Escape`)nt.cancel();else if(e.key===`Enter`)nt.commit();else return;Se(`focus`),pe(e=>e+1),e.preventDefault(),e.stopPropagation();return}if(l&&e.key===`F2`){Ft(R??void 0),e.preventDefault(),e.stopPropagation();return}if(at){if(e.key===`Escape`)te.current=!1,ne.current=null,t.closeSearch();else if(e.key===`Enter`){let e=t.getFocusedPath();e!=null&&t.selectOnlyPath(e);let n=C.current,r=qV(n,vt);ne.current=z<0||n==null?null:Math.max(0,Math.min(z*s-n.scrollTop,Math.max(0,r-s))),te.current=!0,t.closeSearch()}else if(e.key===`ArrowDown`)t.focusNextSearchMatch();else if(e.key===`ArrowUp`)t.focusPreviousSearchMatch();else return;Se(`focus`),pe(e=>e+1),e.preventDefault(),e.stopPropagation();return}if(f&&XH(e)){t.openSearch(e.key),pe(e=>e+1),e.preventDefault(),e.stopPropagation();return}let n=Ge&&QH(e),r=$H(e,Ge),i=r&&S.current!=null?KV(S.current):null,a=r?new Set(sU(S.current)):new Set,o=i?.dataset.fileTreeStickyPath??null,c=i?.dataset.fileTreeStickyRow===`true`&&o!=null;if(c&&o!==R&&a.has(o)){let e=C.current;Pe(o,e?.scrollTop??null),t.focusPath(o)}let u=t.getFocusedPath(),d=t.getFocusedIndex(),p=t.getFocusedItem();if(p==null)return;let m=JH(p)?p:null,h=u!=null&&(wt.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=oU(u,E.current,T.current);e==null||n==null?y=!1:Pt(e,u)}else if((e.ctrlKey||e.metaKey)&&YH(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;Se(`focus`);let b=t.getFocusedPath(),x=b!=null&&(wt.has(b)||a.has(b)),w=g&&b!==u,D=n&&c&&o===u&&b===u;if((h||D)&&b!=null&&(w&&x||D))Pe(b,v?.scrollTop??null),j.current=!0,ge(e=>e===b?e:b);else{let t=e.key===`ArrowUp`&&h&&b!==u;b!=null&&(t||_&&b===u)?(Fe(b,lU(S.current,v,i,u,s,Ct,vt)),j.current=!0,ge(e=>e===b?e:b)):Ne()}pe(e=>e+1),e.preventDefault(),e.stopPropagation()};SH(()=>{if(f&&at){if(Ie.current){Ie.current=!1;return}GV(w.current)}},[at,f]),SH(()=>{let e=x.current;switch(eH({hasRenderedInput:e!=null,previousRenamingPath:N.current,renamingPath:rt})){case`reset`:N.current=null;return;case`reveal-canonical`:rt!=null&&It(rt,{restoreTreeFocus:!1,targetOffset:`live-overlay`});return;case`ignore`:return;case`focus-input`:e!=null&&(De.current=null,N.current=rt,GV(e),e.select());return}},[yt.end,yt.start,rt,It,wt]),SH(()=>{let e=S.current;if(e==null)return;let t=null,n=()=>{t!=null&&(clearTimeout(t),t=null)},r=()=>{let t=KV(e)?.dataset.itemPath??null;ge(e=>e===t?e:t)},i=()=>{n(),j.current=!0,r()},a=i=>{let a=i.relatedTarget;if(a==null){n(),t=setTimeout(()=>{if(t=null,KV(e)!=null){r();return}j.current=!1,ge(null)},0);return}if(!(a instanceof Node)||!e.contains(a)){n(),j.current=!1,ge(null);return}let o=a instanceof HTMLElement?a.dataset.itemPath??null:null;ge(e=>e===o?e:o)};return e.addEventListener(`focusin`,i),e.addEventListener(`focusout`,a),()=>{n(),e.removeEventListener(`focusin`,i),e.removeEventListener(`focusout`,a)}},[]),SH(()=>{let e=S.current;e!=null&&(gt.physical.scrollTop<=0?e.dataset.scrollAtTop=`true`:delete e.dataset.scrollAtTop)},[gt.physical.scrollTop]),SH(()=>{let e=null,n=C.current,r=b.current,i=S.current;if(n==null)return;O.current=qV(n,g);let a=()=>{let e=t.getVisibleCount(),r=JV(O.current,g),i=Math.max(0,e*s-r);n.scrollTop>i&&(n.scrollTop=i),He(IH({controller:t,itemHeight:s,overscan:c,scrollTop:Math.min(n.scrollTop,i),stickyFolders:h,viewportHeight:r}))};if(!A.current){A.current=!0;let e=t.getFocusedIndex();if(e>=0){let r=JV(O.current,g),i=t.getVisibleRows(e,e)[0]??null;XV(n,e,s,r,h&&i!=null?Math.max(0,Math.min(i.ancestorPaths.length*s,Math.max(0,r-s))):0)}}D.current=a;let o=t.subscribe(()=>{VV(me)&&pe(e=>e+1),a()}),l=()=>{Me.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,we(e=>e+1),e=null},50))},u=null,d=()=>{i!=null&&delete i.dataset.overlayReveal,u!=null&&(clearTimeout(u),u=null)},f=()=>{i!=null&&Me.current!==!0&&(n.scrollTop>0||(i.dataset.overlayReveal=`true`,u!=null&&clearTimeout(u),u=setTimeout(()=>{d()},200)))},p=()=>{if(a(),n.scrollTop>0&&d(),Ee.current!=null&&y.current&&jt.current(),Me.current===!0){y.current=!1;return}ve(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=>{O.current=(e[0]==null?null:YV(e[0]))??qV(n,g),a()}):null;return x?.observe(n),()=>{D.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,O.current=null,x?.disconnect()}},[t,g,s,c,h]),SH(()=>{Ge||L==null||Mt(!1)},[Mt,Ge,L]);let $t=CH(()=>L==null?null:`${L.path}::${L.source}`,[L]);SH(()=>{if($t==null){m?.clearSlotContent(bF);return}let t=Ee.current;if(t==null)return;let n=v.current??_.current;if(n==null)return;let r={anchorElement:n,anchorRect:t.anchorRect??nU(n.getBoundingClientRect()),close:e=>{jt.current(e?.restoreFocus??!0)},restoreFocus:()=>{At.current&&kt.current(Ee.current?.path??null)}},i=e?.contextMenu?.render?.(t.item,r)??null;return m?.setSlotContent(bF,i),e?.contextMenu?.onOpen?.(t.item,r),hU(i),queueMicrotask(()=>{i!=null&&i.isConnected&&document.activeElement===i&&hU(i)}),()=>{m?.clearSlotContent(bF)}},[$t,e?.contextMenu,m]),SH(()=>{L!=null&&t.getItem(L.path)==null&&Mt()},[Mt,L,t]),SH(()=>{if(L==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&&Mt())},r=e=>{e.key===`Escape`&&(e.preventDefault(),e.stopPropagation(),Mt())};return document.addEventListener(`mousedown`,n,!0),document.addEventListener(`keydown`,r,!0),()=>{document.removeEventListener(`mousedown`,n,!0),document.removeEventListener(`keydown`,r,!0)}},[Mt,L]),SH(()=>{let e=C.current,n=S.current;if(e==null||n==null){M.current=R;return}let r=R==null?null:T.current.get(R)??null,i=KV(n),a=i?.dataset.itemPath??null,o=it&&x.current===i,c=f&&w.current===i,l=te.current&&!at,u=ne.current??0,d=De.current,p=Oe.current,m=ke.current,g=Ae.current,_=i!=null,v=j.current||_,y=M.current!==R,b=p!=null&&p===R&&R!=null,E=!1,O=!1;if(st!=null&&st.id!==k.current){k.current=st.id;let n=st.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,vt-s))):Ct;E=!0,O=ZV(e,n,s,vt,St,st.offset,t)}t.clearScrollRequest(st.id)}let A=!E&&l&&QV(e,z,s,vt,St,u),ee=!E&&d!=null&&d===R&&QV(e,z,s,vt,St,Ct),N=!E&&m!=null&&m.path===R&&QV(e,z,s,vt,St,m.viewportOffset),re=!E&&g!=null&&g.path===R&&e.scrollTop!==g.scrollTop;if(re&&(e.scrollTop=g.scrollTop),(re||O||ee||N||A||v&&y&&d!==R&&!b&&XV(e,z,s,vt,Ct))&&D.current(),E){M.current=R;return}if(!v){M.current=R;return}if(o){M.current=R;return}if(c&&!l){M.current=R;return}if(r==null){l&&z>=0&&(QV(e,z,s,vt,St,u),D.current()),M.current=R;return}(y||l||d===R||p===R||m?.path===R||g?.path===R||a==null||a!==R)&&(GV(r),d===R&&(De.current=null),p===R&&(Oe.current=null),m?.path===R&&(ke.current=null),g?.path===R&&(Ae.current=null),te.current=!1,ne.current=null),M.current=R},[t,z,R,Tt,s,it,at,yt,vt,f,st,h,Ct,St,_t]);let en=z>=0&&z>=gt.visible.startIndex&&z<=gt.visible.endIndex,tn=R!=null&&bt.some(e=>NH(e.row)===R),nn=en||tn,rn=qe&&j.current===!0&&nn?R:null,an=xe===`pointer`?_e:null,on=L?.path??je.current??an??rn??_e,sn=L?.source===`right-click`;SH(()=>{y.current&&L==null||Nt($e(on))},[L,$e,yt,vt,Ce,bt,on,Nt,_t]);let cn=wH(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&&Se(e=>e===`pointer`?e:`pointer`),ve(e=>e===i?e:i)},[]),ln=wH(()=>{ve(null)},[]);SH(()=>{if(!ct)return;let e=()=>{Wt(),t.cancelDrag()};return window.addEventListener(`dragend`,e),()=>{window.removeEventListener(`dragend`,e),Wt(),t.cancelDrag()}},[t,ct]);let un=e=>{if(!ct||t.getDragSession()==null||I.current)return;let n=HH(e.target instanceof HTMLElement?e.target:null);t.setDragTarget(n),Kt(t.getDragSession()?.target??null),Jt(e.clientX,e.clientY),e.dataTransfer!=null&&(e.dataTransfer.dropEffect=`move`),e.preventDefault()},dn=e=>{if(!ct||t.getDragSession()==null||I.current)return;let n=e.relatedTarget;n instanceof Node&&S.current?.contains(n)===!0||(Bt(),Ht(),t.setDragTarget(null))},fn=e=>{ct&&t.getDragSession()!=null&&!I.current&&(e.preventDefault(),Gt(e.clientX,e.clientY),t.completeDrag(),Vt(),Bt(),Ht(),F.current=null)},pn=gt.window.height,mn=gt.window.offsetTop,hn=Math.min(0,vt-pn),gn=Math.min(0,vt-pn-Ct),_n=he===R||te.current,vn=R!=null&&_n&&!Tt&&z>=0?_t[z]??t.getVisibleRows(z,z)[0]??null:null,yn=vn==null?null:$V(z,s,yt,pn),bn=F.current,xn=ft!=null&&bn!=null&&bn.path===ft&&bn.index>=yt.start&&bn.index<=yt.end,Sn=ft!=null&&bn!=null&&bn.path===ft&&!xn&&bn.path!==vn?.path?bn:null,Cn=Sn==null?null:$V(Sn.index,s,yt,pn),wn=ZH((z>=0?_t[z]??t.getVisibleRows(z,z)[0]??null:null)?.ancestorPaths.at(-1)??null),Tn=at&&R!=null?fU(o,R,!Tt):void 0,En=L?.path??(at?R:he),Dn=L?.path??_e,On=$e(on),kn=Ge&&qe&&!sn&&!it&&On!=null&&ye!=null&&on!=null,An=Ge&&(kn||L!=null),jn=L?.anchorRect,Mn=jn==null&&On!=null&&ye!=null&&(L!=null||kn)?ye:null,Nn=jn==null?Mn==null?void 0:{top:`${Mn}px`}:{left:`${jn.left}px`,position:`fixed`,right:`auto`,top:`${jn.top}px`},Pn=sn?{opacity:`0`}:void 0,Fn=wH((e,n,r,i)=>{let a=rH({event:{ctrlKey:e.ctrlKey,metaKey:e.metaKey,shiftKey:e.shiftKey},isDirectory:n.kind===`directory`,isSearchOpen:at,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>=gt.visible.startIndex&&n.index<=gt.visible.endIndex,d=i===`flow`&&u&&l!=null&&l.dataset.itemParked!==`true`;t.focusMountedPathFromInput(c),d&&(j.current=!0,ge(e=>e===c?e:c),Se(`focus`)),o&&t.toggleMountedDirectoryFromInput(c),a.closeSearch&&t.closeSearch(),a.revealCanonical&&It(c,{targetOffset:`sticky-parents`})},[t,at,gt.visible.endIndex,gt.visible.startIndex,It]),In=()=>{if(y.current||!qe||on==null||On==null)return;let e=t.getItem(on);e!=null&&(Nt(On),At.current=!0,Te({anchorRect:null,item:{kind:e.isDirectory()?`directory`:`file`,name:On.getAttribute(`aria-label`)??on,path:e.getPath()},path:e.getPath(),source:`button`}))},Ln={contextHoverPath:Dn,contextMenuButtonTriggerEnabled:qe,contextMenuButtonVisibility:Je,contextMenuEnabled:Ge,contextMenuRightClickEnabled:Ye,contextMenuTriggerMode:Ke,controller:t,directoriesWithGitChanges:i,dragAndDropEnabled:ct,draggedPathSet:ut,dragTarget:dt,gitLaneActive:et,gitStatusByPath:n,handleRowDragEnd:Xt,handleRowDragStart:Yt,handleRowTouchStart:Zt,ignoredGitDirectories:r,ignoredInheritanceCache:fe,instanceId:o,itemHeight:s,onKeyDown:Qt,onRowClick:Fn,openContextMenuForRow:Pt,registerButton:Xe,registerRenameInput:Qe,renameView:nt,renderDecorationForRow:Et,resolveIcon:tt,shouldSuppressContextMenu:Lt,visualFocusPath:En},Rn={...Ln,registerButton:Ze};return Q(`div`,{ref:S,id:pt,"data-file-tree-context-menu-button-visibility":Ge&&qe?Je:void 0,"data-file-tree-context-menu-trigger-mode":Ge?Ke:void 0,"data-file-tree-has-context-menu-action-lane":Ge&&qe?`true`:void 0,"data-file-tree-has-git-lane":et?`true`:void 0,"data-file-tree-virtualized-root":`true`,onDragLeave:ct?dn:void 0,onDragOver:ct?un:void 0,onDrop:ct?fn:void 0,onKeyDown:Qt,onPointerLeave:Ge?ln:void 0,onPointerOver:Ge?cn:void 0,role:`tree`,tabIndex:-1,style:{outline:`none`,position:`relative`},children:[Q(`style`,{"data-file-tree-guide-style":`true`,dangerouslySetInnerHTML:{__html:wn}}),Q(`slot`,{name:yF,"data-type":`header-slot`}),f?Q(`div`,{"data-file-tree-search-container":!0,"data-open":at?`true`:`false`,children:Q(`input`,{ref:w,"aria-activedescendant":Tn,"aria-controls":pt,placeholder:`Search…`,"data-file-tree-search-input":!0,"data-file-tree-search-input-fake-focus":Le?`true`:void 0,value:ot,onBlur:()=>{(d!==`retain`||ze.current)&&t.closeSearch()},onFocus:Be,onPointerDown:Be,onInput:e=>{Be();let n=e.currentTarget;t.setSearch(n.value)}})}):null,Q(`div`,{ref:C,"data-file-tree-virtualized-scroll":`true`,children:[h&&Ue&&bt.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:`${mt}px`},children:bt.map((e,t)=>_U(Rn,e.row,`sticky:${NH(e.row)}`,{mode:`sticky`,style:{left:`0`,position:`absolute`,right:`0`,top:`${e.top}px`,zIndex:`${bt.length-t}`}}))})}):null,Q(`div`,{ref:b,"data-file-tree-virtualized-list":`true`,style:{height:`${St}px`},children:[Q(`div`,{"data-file-tree-virtualized-sticky-offset":`true`,"aria-hidden":`true`,style:{height:`${mn}px`}}),Q(`div`,{"data-file-tree-virtualized-sticky":`true`,style:{height:`${pn}px`,top:`${hn}px`,bottom:`${gn}px`},children:[vU(Ln,yt,wt),vn!=null&&yn!=null?_U(Ln,vn,`parked:${vn.path}`,{isParked:!0,style:{left:`0`,opacity:`0`,pointerEvents:ft===vn.path?`none`:void 0,position:`absolute`,right:`0`,top:`${yn}px`}}):null,Sn!=null&&Cn!=null?_U(Ln,Sn,`parked-drag:${Sn.path}`,{isParked:!0,style:{left:`0`,opacity:`0`,pointerEvents:`none`,position:`absolute`,right:`0`,top:`${Cn}px`}}):null]})]})]}),Ge?Q(`div`,{ref:_,"data-type":`context-menu-anchor`,"data-visible":An?`true`:`false`,style:Nn,children:[Q(`button`,{ref:v,type:`button`,"data-type":xF,"aria-label":`Options`,"aria-haspopup":`menu`,"aria-expanded":L==null?`false`:`true`,"data-visible":kn?`true`:`false`,onMouseDown:e=>{e.preventDefault()},onClick:e=>{if(e.preventDefault(),e.stopPropagation(),L!=null){Mt();return}In()},tabIndex:-1,style:Pn,children:Q(uV,{...tt(`file-tree-icon-ellipsis`)})}),L==null?null:Q(`slot`,{name:bF})]}):null,L==null?null:Q(`div`,{"data-type":`context-menu-wash`,"aria-hidden":`true`,onMouseDownCapture:e=>{e.preventDefault(),Mt()},onTouchStartCapture:e=>{e.preventDefault(),e.stopPropagation(),Mt()},onTouchMoveCapture:e=>{e.preventDefault(),e.stopPropagation()},onWheelCapture:e=>{e.preventDefault(),e.stopPropagation()}})]})}var bU={hydrateRoot:(e,t)=>{aV(FB(yU,t),e)},renderRoot:(e,t)=>{iV(FB(yU,t),e)},unmountRoot:e=>{iV(null,e)}};function xU(e,t){bU.renderRoot(e,t)}function SU(e,t){bU.hydrateRoot(e,t)}function CU(e){bU.unmountRoot(e)}var wU=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 TU(e,t,n){if(!e.s){if(n instanceof EU){if(!n.s)return void(n.o=TU.bind(null,e,t));1&t&&(t=n.s),n=n.v}if(n&&n.then)return void n.then(TU.bind(null,e,t),TU.bind(null,e,2));e.s=t,e.v=n;let r=e.o;r&&r(e)}}var EU=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{TU(r,1,a(this.v))}catch(e){TU(r,2,e)}return r}return this}return this.o=function(e){try{var i=e.v;1&e.s?TU(r,1,t?t(i):i):n?TU(r,1,n(i)):TU(r,2,i)}catch(e){TU(r,2,e)}},r},e}();Array.isArray;var DU=0;function OU(e){return e!=null&&e.length>0?e:(DU+=1,`pst_ft_${DU}`)}function kU({initialVisibleRowCount:e,itemHeight:t}){return e==null?420:Math.max(0,e)*(t??lz)}function AU(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 jU(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 MU(e){return Array.from(e.children).filter(e=>e instanceof SVGElement)}var NU=class{static LoadedCustomComponent=!0;#e;#t;#n;#r;#i;#a;#o;#s;#c;#l=new wU;#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=OU(a),this.#p=dB(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=cz(n,c),this.#d={itemHeight:this.#u.itemHeight,overscan:d,stickyFolders:_,initialVisibleRowCount:y},this.#t=new oB({...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&&(CU(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&&xU(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(),xU(t.wrapper,this.#w()))}setGitStatus(e){let t=dB(e,this.#p);if(t===this.#p)return;this.#p=t;let n=this.#T();n!=null&&xU(n.wrapper,this.#w())}setIcons(e){this.#m=e;let t=this.#T();t!=null&&(this.#E(t.host,t.wrapper),xU(t.wrapper,this.#w()))}hydrate({fileTreeContainer:e}){let t=this.#P(e),n=this.#N(t);this.#O(),SU(n,this.#w())}render({containerWrapper:e,fileTreeContainer:t}){let n=this.#P(t??this.#f,e),r=this.#N(n);this.#O(),xU(r,this.#w())}#C(){return{initialViewportHeight:kU({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(yF,e());return}this.#l.setSlotHtml(yF,this.#e?.header?.html??null)}#k(e){let t=MU(e).find(e=>jU(e)),n=AU(lF(CF(this.#m).set));n!=null&&(t==null||t.outerHTML!==n.outerHTML)&&(t==null?e.prepend(n):t.replaceWith(n))}#A(e){let t=MU(e),n=t.find(e=>jU(e)),r=t.filter(e=>e!==n),i=CF(this.#m).spriteSheet?.trim()??``;if(i.length===0){for(let e of r)e.remove();return}let a=AU(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=CF(this.#m);t.colored&&dF(t.set)?e.dataset.fileTreeColoredIcons=`true`:delete e.dataset.fileTreeColoredIcons}#M(e){let t=e.querySelector(`style[${hF}]`);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(hF,``),this.#g.parentNode!==e&&e.appendChild(this.#g),this.#g.textContent=pz(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 yz(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)}};function PU(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 FU(e){let t=e.lastIndexOf(`/`,e.length-2);return t===-1?``:e.slice(0,t+1)}function IU(e,t){let n=new Set(e),r=new Set(t),i=PU(t),a=new Set([...PU(e)].filter(e=>!i.has(e))),o=[];for(let e of a)a.has(FU(e))||o.push({type:`remove`,path:e,recursive:!0});for(let t of e)!r.has(t)&&!a.has(FU(t))&&o.push({type:`remove`,path:t});for(let e of t)n.has(e)||o.push({type:`add`,path:e});return o}var LU=new Set([`/`,`.`,`-`,`_`,` `]);function RU(e,t){if(t===0)return!0;let n=e[t-1];if(LU.has(n))return!0;let r=e[t];return r!==r.toLowerCase()&&n===n.toLowerCase()}function zU(e,t,n){let r=0;for(let i=0;i<t.length;i++){let a=t[i];r+=1,RU(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 BU(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 VU(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]&&RU(t,s));)s++;if(s>=n.length)return null;i.push(s),a=s+1}return i}function HU(e,t,n,r,i){let a=BU(e,n,r);if(!a)return null;let o=VU(e,t,n,r),s=zU(t,a,i),c=o?zU(t,o,i):-1/0;return c>s?{score:c,hits:o}:{score:s,hits:a}}function UU(e,t,n,r){for(let i=t.indexOf(n,r);i!==-1;i=t.indexOf(n,i+1))if(RU(e,i))return!0;return!1}function WU(e,t){let n=e.split(/\s+/).filter(Boolean);if(!n.length)return{score:0,hits:[]};let r=t.toLowerCase(),i=t.lastIndexOf(`/`)+1,a=0,o=new Set;for(let e of n){let n=e.toLowerCase(),s=HU(n,t,r,i,i),c=s??HU(n,t,r,0,i);if(!c)return null;s&&UU(t,r,n,i)&&(a+=20),r.slice(i)===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 GU(e){let t=e.match(/^(.*?):(\d+)(?::\d+)?\s*$/);return t?{query:t[1],line:Number(t[2])}:{query:e,line:0}}function KU(e,t,n,r){let i=[];for(let r of e){let e=WU(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 qU=Ht,JU=(e=>`/${e}&`)(` b`),YU=60;function XU(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 ZU=x(0,1,e=>y(e.a,e._.e)),QU=ZU,$U=x(0,0,e=>y(e.b,e._.e)),eW=v(0,`<mark> </mark>`,` D `,e=>{$U._(e),j(e.a,`_mA`)},` `,` `,QU),tW=(e,t)=>eW(e,+!t),nW=(e,t)=>{tW(e,t[0]?.hit),rW(e,t[0]?.text)},rW=M(4,e=>{$U(e),ZU(e)}),iW=x(0,1,e=>y(e.a,e._.e)),aW=iW,oW=x(0,0,e=>y(e.b,e._.e)),sW=v(0,`<mark> </mark>`,` D `,e=>{oW._(e),j(e.a,`_mA`)},` `,` `,aW),cW=(e,t)=>sW(e,+!t),lW=(e,t)=>{cW(e,t[0]?.hit),uW(e,t[0]?.text)},uW=M(4,e=>{oW(e),iW(e)}),dW=e=>j(e.a,u),fW=x(5,0,e=>y(e.b,e._.n)),pW=e=>{fW._(e),j(e.a,o)},mW=I(34,e=>y(e.b,e._._._._.u),e=>e._._._._,`N5`),hW=e=>{mW(e),j(e.a,`_mB`)},gW=O(2,e=>y(e.b,e._._._.l?`Loading files…`:e._._._.s?`No file matches “${S(e._._._.s)}”.`:`Type part of a file's name. Add :42 to open it at line 42.`)),_W=I(29,gW,e=>e._._._,`N11`),vW=e=>{_W(e),yW(e),j(e.a,`_du`)},yW=I(33,gW,e=>e._._._,`N12`),bW=I(28,e=>y(e.b,e._._._._.k),e=>e._._._._,`N4`),xW=v(0,`<li role=presentation>Recently opened</li>`,` `,dW,`<li role=presentation> </li>`,` D `,e=>{bW(e),j(e.a,u)}),SW=O(17,e=>xW(e,!e._._._.s&&e.o===0?0:e.j&&(e.o===0||!e._._._.v[e.o-1].more)?1:2),3),CW=I(33,SW,e=>e._._._,`N7`),wW=k(`N6`,e=>{g(e.c,`mousemove`,function(){e._._._.p!==e.o&&dG(e._._._,e.o)}),g(e.c,`click`,function(){e._._._.a1(e.o)})}),TW=e=>{CW(e),OW(e),kW(e),jW(e),j(e.d,`_my`),j(e.e,`_mz`),wW(e)},EW=v(6,`<span>:<!></span>`,` Db%`,hW),DW=O(16,e=>EW(e,e._._._.u&&e.o===e._._._.y?0:1),2),OW=I(34,DW,e=>e._._._,`N8`),kW=I(35,SW,e=>e._._._,`N9`),AW=O(15,e=>{N(e.b,`aria-selected`,e.o===e._._._.y?`true`:`false`),j(e.c,[`_dp`,e.o===e._._._.y&&`_do`])}),jW=I(37,e=>{AW(e),DW(e)},e=>e._._._,`N10`),MW=M(9,SW),NW=M(14,e=>{SW(e),AW(e),DW(e)}),PW=w(3,`<!><!><!>`,`b%`,0,lW),FW=w(4,`<!><!><!>`,`b%`,0,nW),IW=O(20,e=>{PW(e,[XU(e.s,e.m,e.t,e.s?.length)]),FW(e,[XU(e.s,e.m,0,Math.max(0,e.t-1))])},2),LW=M(19,IW),RW=M(18,e=>{N(e.c,`title`,e.s),LW(e,e.s.lastIndexOf(`/`)+1),IW(e)}),zW=M(12,IW),BW=v(5,`<span> </span>`,` D `,pW),VW=M(13,e=>{BW(e,+!e.n),fW(e)}),HW=(e,t)=>{MW(e,t[0]?.more),RW(e,t[0]?.item?.path),VW(e,t[0]?.item?.hint),zW(e,t[0]?.hits),NW(e,t[1])},UW=I(31,e=>ne(e,`c`,e._._.o,MG(e)),e=>e._._,`N15`),WW=k(`N14`,e=>{oe(e,`c`),g(e.d,`click`,function(){e._._.z()})}),GW=e=>{UW(e),KW(e),JW(e),ZW(e),j(e.a,`_dj`),Ae(e.b),Oe(e.b,14),je(e.b),j(e.c,l),j(e.d,[a,`_dl`]),Ie(e.e),Me(e.e,16),L(e.e),j(e.f,`_dm`),WW(e)},KW=I(32,e=>{N(e.c,`aria-controls`,e._._.q),N(e.f,`id`,e._._.q)},e=>e._._),qW=_(5,`<!><!><li role=option><button type=button><span></span><span></span><!><!></button></li>`,`b%b D D b b%b%`,TW,HW),JW=I(35,e=>qW(e,[e._._.v,e=>`${e.more?`+`:``}${e.item.key}`]),e=>e._._,`N16`),YW=v(6,`<p> </p>`,` D `,vW),XW=k(`N13`,e=>g(e.c,`keydown`,function(t){if(t.key===`ArrowDown`||t.key===`ArrowUp`){t.preventDefault();let n=e._._.w;n&&dG(e._._,(e._._.y+(t.key===`ArrowDown`?1:-1)+n)%n)}else t.key===`Enter`&&(t.preventDefault(),e._._.a1(e._._.y))})),ZW=I(36,e=>{YW(e,+!!e._._.w),XW(e)},e=>e._._,`N17`),QW=v(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><!><!>`)(De,Ee),((e,t)=>` D/${e}& b D/${t}&m b%c`)(Te,Fe),GW),$W=I(30,e=>QW(e,+!e._.m),0,`N18`),eG=se(`N19`,`<!><!><!>`,`b%`,$W),tG=F($W),nG=E(12,e=>{zt(e.a,e.m),tG(e)}),rG=O(5,e=>nG(e,e.d,e.e)),iG=M(3,rG),aG=M(4,rG),oG=(e,t)=>{xG(e,t?.query),CG(e,t?.line)},sG=F(UW),cG=C(14,e=>{oG(e,GU(e.o.trim())),sG(e)}),lG=M(24,F(jW)),uG=O(23,e=>lG(e,Math.min(e.p,Math.max(0,e.w-1)))),dG=C(15,uG),fG=M(16),pG=M(27),mG=O(26,e=>pG(e,NG(e)),3),hG=M(25,mG);function gG(e){Lt(e.a),Gt(e.a,eG(e)),It(e.a,`Go to file`),Pt(e.a,[`_bE`,`_di`]),Kt(e.a,FG(e)),Wt(e.a,!0),Rt(e.a),Vt(e.a),Ft(e.a),Bt(e.a),Ut(e.a,{}),cG(e,``),dG(e,0),fG(e,T(e)),hG(e,PG(e))}var _G=F(JW,kW),vG=M(21,e=>{TG(e,e.v?.length),mG(e),_G(e)}),yG=O(19,e=>vG(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=KU(e.g,e=>e.path,t,YU).map(e=>({item:e.item,hits:e.match.hits,more:!1})),r=e.i?KU(e.i.items,e=>e.path,t,YU).map(e=>({item:e.item,hits:e.match.hits,more:!0})):[];return[...n,...r]})()),3),bG=F(CW,yW),xG=M(18,e=>{yG(e),bG(e)}),SG=F(OW,mW),CG=M(20,e=>{mG(e),SG(e)}),wG=F(ZW),TG=M(22,e=>{uG(e),wG(e)}),EG=M(6,yG),DG=M(7,yG),OG=M(8,e=>{AG(e,e.i?.label),yG(e)}),kG=M(9,mG),AG=M(10,F(bW)),jG=M(11,F(_W)),MG=e=>function(t){cG(e._._,t),dG(e._._,0)},NG=e=>t=>{let n=e.v[t];if(!n)return;let r=e.u;e.z(),e.j(n.item.key,r,n.more)},PG=e=>()=>{nG(e,!1),cG(e,``),dG(e,0)},FG=e=>t=>{nG(e,t)};b.N3=MG,b.N1=NG,b.N0=PG,b.N2=FG;export{CE as $,uS as $t,rN as A,ew as At,mD as B,HC as Bt,lN as C,Sw as Ct,aN as D,ww as Dt,oN as E,Cw as Et,UM as F,GC as Ft,jE as G,DC as Gt,QE as H,SC as Ht,xM as I,KC as It,pE as J,_C as Jt,ME as K,xC as Kt,SD as L,JC as Lt,kM as M,cw as Mt,GM as N,YC as Nt,iN as O,pw as Ot,wM as P,QC as Pt,wE as Q,TS as Qt,CD as R,qC as Rt,uN as S,bw as St,cN as T,yw as Tt,FE as U,bC as Ut,uD as V,vC as Vt,IE as W,kC as Wt,_E as X,$S as Xt,gE as Y,oC as Yt,DE as Z,kS as Zt,GN as _,Dw as _t,iG as a,gT as at,pN as b,Mw as bt,gG as c,aT as ct,PU as d,eT as dt,Gx as en,kE as et,IU as f,nT as ft,YN as g,Yw as gt,ZN as h,$w as ht,kG as i,_T as it,HM as j,sw as jt,nN as k,hw as kt,qU as l,oT as lt,JN as m,iT as mt,jG as n,Tn as nn,ZT as nt,aG as o,hT as ot,NU as p,rT as pt,fE as q,CC as qt,OG as r,QT as rt,DG as s,fT as st,EG as t,W_ as tn,TE as tt,JU as u,tT as ut,BN as v,zw as vt,sN as w,gw as wt,dN as x,vw as xt,fN as y,Rw as yt,_D as z,UC as zt};