@intent-hq/web 2.386.0 → 2.387.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (325) hide show
  1. package/package.json +1 -1
  2. package/web/app/immutable/chunks/{DfgH7-YK.js → -hGB5JIm.js} +1 -1
  3. package/web/app/immutable/chunks/{D5xlMOwU.js → 0Kw0mmSW.js} +1 -1
  4. package/web/app/immutable/chunks/{Pyf1FzKM.js → 2S2jdRaL.js} +1 -1
  5. package/web/app/immutable/chunks/{BCFB88Wl.js → 4EMyw6Bc.js} +1 -1
  6. package/web/app/immutable/chunks/{DIWzdBfB.js → 4T0RCl9z.js} +1 -1
  7. package/web/app/immutable/chunks/{CJEwuNO9.js → 5j6plyZH.js} +1 -1
  8. package/web/app/immutable/chunks/{B9kUdNbG.js → 6NStP9u7.js} +1 -1
  9. package/web/app/immutable/chunks/{DbxqdYAO.js → 7lcZWflB.js} +3 -3
  10. package/web/app/immutable/chunks/{CUeOEnqq.js → 84z5wXrw.js} +1 -1
  11. package/web/app/immutable/chunks/{COBhx_l-.js → AXzVloaq.js} +1 -1
  12. package/web/app/immutable/chunks/{DDdsJrHq.js → AfZNmzF0.js} +1 -1
  13. package/web/app/immutable/chunks/{Dbr8gjWS.js → B-9zOddN.js} +1 -1
  14. package/web/app/immutable/chunks/{D2Tzo4Hp.js → B-bGycam.js} +1 -1
  15. package/web/app/immutable/chunks/{Bf_4e4N2.js → B0RPkrmZ.js} +1 -1
  16. package/web/app/immutable/chunks/{TXPMw3n4.js → B0tiGTFc.js} +1 -1
  17. package/web/app/immutable/chunks/{Bv_0mmoe.js → B1TtNV9x.js} +1 -1
  18. package/web/app/immutable/chunks/{BolJpU8l.js → B1lrKll_.js} +4 -4
  19. package/web/app/immutable/chunks/{DZjSAGjX.js → B2Bshsum.js} +1 -1
  20. package/web/app/immutable/chunks/{Di_ao8Rc.js → B7esq_NU.js} +1 -1
  21. package/web/app/immutable/chunks/{bojY7ttK.js → B9BALnhr.js} +1 -1
  22. package/web/app/immutable/chunks/{DxuwadpA.js → B9guVudk.js} +1 -1
  23. package/web/app/immutable/chunks/{BNJkKc31.js → B9iclnD1.js} +1 -1
  24. package/web/app/immutable/chunks/{ByZL9dMf.js → BAVqPace.js} +1 -1
  25. package/web/app/immutable/chunks/BC6tIXxU.js +1 -0
  26. package/web/app/immutable/chunks/{CfnXjWQL.js → BDSbC3H_.js} +1 -1
  27. package/web/app/immutable/chunks/{hRfDutUE.js → BEuhalzY.js} +1 -1
  28. package/web/app/immutable/chunks/{ico0GHoP.js → BGh7-lCM.js} +13 -13
  29. package/web/app/immutable/chunks/{fC3yz20p.js → BH3eRhvI.js} +1 -1
  30. package/web/app/immutable/chunks/{DOZ82gYM.js → BHqyzGtP.js} +1 -1
  31. package/web/app/immutable/chunks/{Dyx6ysl7.js → BIfjK4Wy.js} +1 -1
  32. package/web/app/immutable/chunks/{3Kr2ijlK.js → BJbm_MWC.js} +1 -1
  33. package/web/app/immutable/chunks/{BCiWc-GH.js → BJfXDnA-.js} +1 -1
  34. package/web/app/immutable/chunks/{3IpMTtMx.js → BKpfaDrr.js} +1 -1
  35. package/web/app/immutable/chunks/{CY0EK8Cm.js → BKqd3SpJ.js} +3 -3
  36. package/web/app/immutable/chunks/{BqCTtUhB.js → BLMhg4vm.js} +1 -1
  37. package/web/app/immutable/chunks/{DFKO8V-Y.js → BLhJfI63.js} +1 -1
  38. package/web/app/immutable/chunks/{9AJtSub0.js → BNDTLRE1.js} +1 -1
  39. package/web/app/immutable/chunks/{COsxNPUV.js → BOyRg328.js} +1 -1
  40. package/web/app/immutable/chunks/{BbWnSSTS.js → BP-cDE7g.js} +1 -1
  41. package/web/app/immutable/chunks/{CF_a5Llj.js → BP6IQXl5.js} +1 -1
  42. package/web/app/immutable/chunks/{DtQHtXEW.js → BQ8hOnRo.js} +1 -1
  43. package/web/app/immutable/chunks/{BCuI_zgX.js → BQhBnAuP.js} +1 -1
  44. package/web/app/immutable/chunks/{COSIRxZC.js → BQmS_6pd.js} +1 -1
  45. package/web/app/immutable/chunks/{Dpvv-9m3.js → BRRnx9NG.js} +1 -1
  46. package/web/app/immutable/chunks/{C8TrySMt.js → BSt1DBgt.js} +1 -1
  47. package/web/app/immutable/chunks/{DY5rw8pn.js → BUsnh1ZW.js} +1 -1
  48. package/web/app/immutable/chunks/{DNDJdxKs.js → BVYisuIY.js} +1 -1
  49. package/web/app/immutable/chunks/{DQvAX2eX.js → BWJopR_X.js} +1 -1
  50. package/web/app/immutable/chunks/{DXDbxM_W.js → BWmQYGJo.js} +1 -1
  51. package/web/app/immutable/chunks/{DhaHSPPQ.js → BWq8kRZa.js} +1 -1
  52. package/web/app/immutable/chunks/{C1La-Fme.js → B_5X6pL_.js} +1 -1
  53. package/web/app/immutable/chunks/{C6Wi6O6n.js → BaOiWDrc.js} +1 -1
  54. package/web/app/immutable/chunks/{Nrq0Uf9_.js → Bajx4HLb.js} +1 -1
  55. package/web/app/immutable/chunks/{i8jM24jD.js → Bbs1UlDC.js} +1 -1
  56. package/web/app/immutable/chunks/{TyVpf8MX.js → Bd8IVx5H.js} +1 -1
  57. package/web/app/immutable/chunks/{DAI6QH7D.js → Be5fV6fq.js} +1 -1
  58. package/web/app/immutable/chunks/{MoxNukrR.js → BevVqXi3.js} +1 -1
  59. package/web/app/immutable/chunks/{BYYtBM5R.js → Bf-yBg_f.js} +1 -1
  60. package/web/app/immutable/chunks/{0y7aytZM.js → BfQFKWzJ.js} +1 -1
  61. package/web/app/immutable/chunks/{BtMIAxno.js → BfhnpOE4.js} +1 -1
  62. package/web/app/immutable/chunks/{DU1c0itA.js → BgKaGgl0.js} +1 -1
  63. package/web/app/immutable/chunks/{D5A9atQX.js → BgV6mURq.js} +2 -2
  64. package/web/app/immutable/chunks/{DY1YVoxv.js → BhFMyG47.js} +1 -1
  65. package/web/app/immutable/chunks/{Df4a242o.js → Bj4IsLvN.js} +1 -1
  66. package/web/app/immutable/chunks/{DZSbMOPJ.js → BlaJXdkI.js} +2 -2
  67. package/web/app/immutable/chunks/{CFdI48b2.js → BmM9C7Gu.js} +1 -1
  68. package/web/app/immutable/chunks/{CGHwi-2H.js → BoGNoNFW.js} +1 -1
  69. package/web/app/immutable/chunks/{3LCOBHm6.js → BoUQWR1c.js} +1 -1
  70. package/web/app/immutable/chunks/{Cwg3XF5F.js → BoZ2kJyE.js} +1 -1
  71. package/web/app/immutable/chunks/{DBwdk2-0.js → BpNCDrL-.js} +1 -1
  72. package/web/app/immutable/chunks/{B1xM1EBM.js → BpPZlehu.js} +1 -1
  73. package/web/app/immutable/chunks/{Dde9Z_vp.js → BpXDXz8J.js} +1 -1
  74. package/web/app/immutable/chunks/{BPDyvu9A.js → BpiO5nnh.js} +1 -1
  75. package/web/app/immutable/chunks/{DX2U4Mz9.js → BpwKnO7b.js} +3 -3
  76. package/web/app/immutable/chunks/{CQ5BHnSj.js → Bq7euxCs.js} +1 -1
  77. package/web/app/immutable/chunks/{Bk14_fvY.js → BsCPiCkz.js} +1 -1
  78. package/web/app/immutable/chunks/{CGUVvS8r.js → Bsdq-idi.js} +1 -1
  79. package/web/app/immutable/chunks/{DEKjIPd8.js → Bstq-Mm1.js} +1 -1
  80. package/web/app/immutable/chunks/{DcMTwn77.js → Bt9izmhQ.js} +1 -1
  81. package/web/app/immutable/chunks/BtUFJg3H.js +1 -0
  82. package/web/app/immutable/chunks/{DxWgWHgi.js → BtchneSc.js} +1 -1
  83. package/web/app/immutable/chunks/{6SOEgr71.js → BteojGYq.js} +3 -3
  84. package/web/app/immutable/chunks/{DOir9M0E.js → Btsk8yXd.js} +1 -1
  85. package/web/app/immutable/chunks/{QA00-uqv.js → Bu67WlMm.js} +1 -1
  86. package/web/app/immutable/chunks/{aixoUWDq.js → BuXXIZt7.js} +1 -1
  87. package/web/app/immutable/chunks/{E8oicBhU.js → BudPFdIj.js} +1 -1
  88. package/web/app/immutable/chunks/{DJb2lMGn.js → BvjgIPau.js} +1 -1
  89. package/web/app/immutable/chunks/{Dh-HeAnQ.js → BxTCsbTV.js} +1 -1
  90. package/web/app/immutable/chunks/{maZzJmVw.js → C2zt__Wj.js} +1 -1
  91. package/web/app/immutable/chunks/{BdY8OnZP.js → C4JyfUH_.js} +1 -1
  92. package/web/app/immutable/chunks/{v7JbBbwR.js → C4S7j2UJ.js} +1 -1
  93. package/web/app/immutable/chunks/{DcLVN86K.js → C64UuXDx.js} +1 -1
  94. package/web/app/immutable/chunks/{h5ZeHogL.js → C7JeHEH2.js} +1 -1
  95. package/web/app/immutable/chunks/{Ksiiix3Q.js → C7ajdkO4.js} +1 -1
  96. package/web/app/immutable/chunks/{CM9GoLV5.js → C7dAe4yg.js} +1 -1
  97. package/web/app/immutable/chunks/{IG43rVtJ.js → C8guha5a.js} +1 -1
  98. package/web/app/immutable/chunks/{Bb8ARnaK.js → C9wBKZsV.js} +1 -1
  99. package/web/app/immutable/chunks/{BCVhFPNJ.js → CA_3gGLy.js} +1 -1
  100. package/web/app/immutable/chunks/{DaOKbar2.js → CB-znH8P.js} +2 -2
  101. package/web/app/immutable/chunks/{BIcof04i.js → CB2VKTMK.js} +1 -1
  102. package/web/app/immutable/chunks/{bIL0xbKX.js → CBbdbU2x.js} +1 -1
  103. package/web/app/immutable/chunks/{EQgYvydQ.js → CEap7Fwz.js} +1 -1
  104. package/web/app/immutable/chunks/{lSLkjC_I.js → CG28d89U.js} +1 -1
  105. package/web/app/immutable/chunks/{DgzMHcMD.js → CGPxDdZI.js} +1 -1
  106. package/web/app/immutable/chunks/{DeY70dof.js → CGdXewiA.js} +1 -1
  107. package/web/app/immutable/chunks/{C6afU4he.js → CHKOALDI.js} +1 -1
  108. package/web/app/immutable/chunks/{CdGl_2eX.js → CIWQMI37.js} +1 -1
  109. package/web/app/immutable/chunks/{BRPJcG-m.js → CIlqcFRn.js} +1 -1
  110. package/web/app/immutable/chunks/{DvnO7gWT.js → CKcb8dge.js} +3 -3
  111. package/web/app/immutable/chunks/{D9_wDL10.js → CLvqNeoi.js} +1 -1
  112. package/web/app/immutable/chunks/{DJJ2Xrlq.js → COVS9Crf.js} +1 -1
  113. package/web/app/immutable/chunks/{COS4Sgoi.js → CP7zJE2f.js} +2 -2
  114. package/web/app/immutable/chunks/{CaMRSd1-.js → CPdyCf2B.js} +1 -1
  115. package/web/app/immutable/chunks/{Cpgxz5sK.js → CQU55hIk.js} +1 -1
  116. package/web/app/immutable/chunks/{Dh438xC0.js → CSdAdmLZ.js} +2 -2
  117. package/web/app/immutable/chunks/{zFAkpaJn.js → CTowDLQa.js} +1 -1
  118. package/web/app/immutable/chunks/{BVyOECUU.js → CV5qbjYN.js} +1 -1
  119. package/web/app/immutable/chunks/{CFB2mNds.js → CV7mOfKN.js} +2 -2
  120. package/web/app/immutable/chunks/{-8AxW0IA.js → CXCilPkm.js} +3 -3
  121. package/web/app/immutable/chunks/{HcbkpXC1.js → CXkLsKgj.js} +2 -2
  122. package/web/app/immutable/chunks/{BXHbm15d.js → CZB2ndi9.js} +1 -1
  123. package/web/app/immutable/chunks/{CjLfgoGI.js → CZex5Cac.js} +1 -1
  124. package/web/app/immutable/chunks/{7EQMYysM.js → C_-0Y1ed.js} +1 -1
  125. package/web/app/immutable/chunks/{D5evzUZd.js → Caqb9E2M.js} +1 -1
  126. package/web/app/immutable/chunks/{CTTICX_5.js → Ccr7s0GQ.js} +1 -1
  127. package/web/app/immutable/chunks/CeeeYtIE.js +1 -0
  128. package/web/app/immutable/chunks/{De0cdeOU.js → CfIVswBm.js} +1 -1
  129. package/web/app/immutable/chunks/{DQBViT5w.js → CfK5RUHZ.js} +1 -1
  130. package/web/app/immutable/chunks/{CvSLeFQo.js → CfaCrhAh.js} +1 -1
  131. package/web/app/immutable/chunks/{Dm3wAkDL.js → CffZor2V.js} +1 -1
  132. package/web/app/immutable/chunks/{CSb1CnpN.js → CggFXl4B.js} +1 -1
  133. package/web/app/immutable/chunks/{3Qz3qAhk.js → Ci75CkmK.js} +1 -1
  134. package/web/app/immutable/chunks/{BVcaPXq9.js → CisSEUth.js} +1 -1
  135. package/web/app/immutable/chunks/{BHJpo3VA.js → Ck3g194G.js} +1 -1
  136. package/web/app/immutable/chunks/{BPpACIC2.js → CkXORNl2.js} +1 -1
  137. package/web/app/immutable/chunks/{DAVG7sIL.js → CmhKJ6Ie.js} +1 -1
  138. package/web/app/immutable/chunks/{CnQVxh95.js → Cn034oEm.js} +1 -1
  139. package/web/app/immutable/chunks/{tHETzssD.js → CndJcn8K.js} +1 -1
  140. package/web/app/immutable/chunks/{DdjeekcY.js → CnqyGFOt.js} +1 -1
  141. package/web/app/immutable/chunks/{BIkt0YE0.js → Co9CFvqw.js} +1 -1
  142. package/web/app/immutable/chunks/{BYJh9adv.js → Cq8MD_3v.js} +1 -1
  143. package/web/app/immutable/chunks/{BmLlDCoW.js → CrL2Nk6a.js} +1 -1
  144. package/web/app/immutable/chunks/{Bu3PKqut.js → CrpUtGFn.js} +1 -1
  145. package/web/app/immutable/chunks/{BNFvOw36.js → CrwLq8nY.js} +1 -1
  146. package/web/app/immutable/chunks/{Drf1gLyo.js → Cw2fqKk9.js} +1 -1
  147. package/web/app/immutable/chunks/{FQkCsxt2.js → CwCTYQp7.js} +1 -1
  148. package/web/app/immutable/chunks/{24f6N9l0.js → CwGPCWH6.js} +1 -1
  149. package/web/app/immutable/chunks/{awY5HvZY.js → CxCmx5S0.js} +1 -1
  150. package/web/app/immutable/chunks/{CaHWSiOY.js → CzFfpwQB.js} +1 -1
  151. package/web/app/immutable/chunks/{HeVxSGdr.js → CzRhnymD.js} +1 -1
  152. package/web/app/immutable/chunks/{mRUS_S7Z.js → CzTSi5lc.js} +1 -1
  153. package/web/app/immutable/chunks/{BGo6FK-0.js → CzjElr82.js} +1 -1
  154. package/web/app/immutable/chunks/{DSDM77x3.js → D-6Jv2pD.js} +1 -1
  155. package/web/app/immutable/chunks/{BKFxm3WK.js → D-DyBHf9.js} +1 -1
  156. package/web/app/immutable/chunks/{Z8DHXl17.js → D0hLqQX-.js} +1 -1
  157. package/web/app/immutable/chunks/{B18ybwa0.js → D1YPh_5n.js} +1 -1
  158. package/web/app/immutable/chunks/{PkPZtGfM.js → D25lWS8Q.js} +1 -1
  159. package/web/app/immutable/chunks/{yqEyUNVG.js → D2kIeaeO.js} +1 -1
  160. package/web/app/immutable/chunks/{C4M_mNFP.js → D2y-zN_4.js} +1 -1
  161. package/web/app/immutable/chunks/{UQ6MIVTw.js → D3waRWO1.js} +1 -1
  162. package/web/app/immutable/chunks/{2aKRVAvL.js → D48_y-cl.js} +1 -1
  163. package/web/app/immutable/chunks/{x-RVzKqZ.js → D49zWKPf.js} +1 -1
  164. package/web/app/immutable/chunks/{dFhS46gw.js → D55LTeKe.js} +1 -1
  165. package/web/app/immutable/chunks/{DbUDL_oo.js → D57Jyp6W.js} +1 -1
  166. package/web/app/immutable/chunks/{CIoJPvjg.js → D5wnbxHp.js} +1 -1
  167. package/web/app/immutable/chunks/{BhtJVlVx.js → D67AA9yd.js} +1 -1
  168. package/web/app/immutable/chunks/{B-MjuJTx.js → D6Q-N0-R.js} +2 -2
  169. package/web/app/immutable/chunks/{C21Z9LLF.js → D7AX9X0W.js} +1 -1
  170. package/web/app/immutable/chunks/{XMluVOSf.js → D83yV23-.js} +1 -1
  171. package/web/app/immutable/chunks/{BE08e7Se.js → D8BzOeFD.js} +1 -1
  172. package/web/app/immutable/chunks/{BqrahRdk.js → D8bY4ERR.js} +4 -4
  173. package/web/app/immutable/chunks/{BDbFQqI8.js → D9Hjcszu.js} +3 -3
  174. package/web/app/immutable/chunks/{DC1xYxUn.js → D9M659lc.js} +1 -1
  175. package/web/app/immutable/chunks/{Ly7eBIj5.js → D9MZU0Xg.js} +1 -1
  176. package/web/app/immutable/chunks/{CW979n9w.js → DC1CSztK.js} +1 -1
  177. package/web/app/immutable/chunks/{BeUuk8D1.js → DCkRL43S.js} +1 -1
  178. package/web/app/immutable/chunks/{0b3rkAam.js → DEQDOTA1.js} +1 -1
  179. package/web/app/immutable/chunks/{W05hyx94.js → DIEHuZ8f.js} +1 -1
  180. package/web/app/immutable/chunks/{DIad5c9_.js → DINctf8I.js} +1 -1
  181. package/web/app/immutable/chunks/{DsOS7N8Z.js → DIcuhccs.js} +1 -1
  182. package/web/app/immutable/chunks/{CJke1tnU.js → DIoT8eB4.js} +1 -1
  183. package/web/app/immutable/chunks/{Bb-hI5du.js → DJKfrY8C.js} +2 -2
  184. package/web/app/immutable/chunks/{CIKXOyvw.js → DJivXy66.js} +2 -2
  185. package/web/app/immutable/chunks/{BthojcF8.js → DL95yZo7.js} +6 -6
  186. package/web/app/immutable/chunks/DLO_0egf.js +1 -0
  187. package/web/app/immutable/chunks/{CnMzOGNL.js → DLs3P_Wt.js} +1 -1
  188. package/web/app/immutable/chunks/{UnM4qztD.js → DLttsd3i.js} +1 -1
  189. package/web/app/immutable/chunks/{DGdWzkgm.js → DMV5KQix.js} +1 -1
  190. package/web/app/immutable/chunks/{yy2JFRyT.js → DMlhLPB0.js} +1 -1
  191. package/web/app/immutable/chunks/DP0K41jk.js +1 -0
  192. package/web/app/immutable/chunks/{21kfe-mS.js → DPG1HUgG.js} +1 -1
  193. package/web/app/immutable/chunks/{r5JNAzEM.js → DPjr22dV.js} +1 -1
  194. package/web/app/immutable/chunks/{CZ5zON0R.js → DPmNtGFj.js} +1 -1
  195. package/web/app/immutable/chunks/{ChKOG1mU.js → DQZhKtkC.js} +1 -1
  196. package/web/app/immutable/chunks/{B8foSZsl.js → DRLJuUwT.js} +1 -1
  197. package/web/app/immutable/chunks/{COlfJVPs.js → DTtB67Qo.js} +4 -4
  198. package/web/app/immutable/chunks/{Bn4F-JIh.js → DU1ubslo.js} +1 -1
  199. package/web/app/immutable/chunks/{BB-hf8IY.js → DW_seDlm.js} +4 -4
  200. package/web/app/immutable/chunks/{BcYVm7io.js → DWqaYE81.js} +1 -1
  201. package/web/app/immutable/chunks/{C9ij7Z2h.js → D_5u7gP_.js} +1 -1
  202. package/web/app/immutable/chunks/{_HPNXgkR.js → D_j4wRX_.js} +3 -3
  203. package/web/app/immutable/chunks/{CB8gRmKb.js → Da6yJ5JS.js} +1 -1
  204. package/web/app/immutable/chunks/{BOnTc4ny.js → Dcnwzgw6.js} +1 -1
  205. package/web/app/immutable/chunks/{BWI85bGY.js → Dd3UnPYB.js} +1 -1
  206. package/web/app/immutable/chunks/{CYq58ltZ.js → DdLy5J3P.js} +1 -1
  207. package/web/app/immutable/chunks/{BD7jFvJp.js → Ddc7chXR.js} +1 -1
  208. package/web/app/immutable/chunks/{DdRupUfV.js → Dde5tnWd.js} +2 -2
  209. package/web/app/immutable/chunks/{CRUcTVFP.js → DezlVQ1h.js} +1 -1
  210. package/web/app/immutable/chunks/{OMssb4xF.js → Dga6E45c.js} +1 -1
  211. package/web/app/immutable/chunks/{CLqqc_hU.js → Dgmou2n8.js} +1 -1
  212. package/web/app/immutable/chunks/{BoEcbLG-.js → DgtVALrr.js} +1 -1
  213. package/web/app/immutable/chunks/{BRdQpeCl.js → DkERMj5B.js} +1 -1
  214. package/web/app/immutable/chunks/{A3z9XWMi.js → DkJYBjJg.js} +1 -1
  215. package/web/app/immutable/chunks/{Djah0WfC.js → DkOk28fz.js} +1 -1
  216. package/web/app/immutable/chunks/{kAav5o2h.js → Dk_Hc5oq.js} +1 -1
  217. package/web/app/immutable/chunks/{CyHe7TdT.js → DmpdpJAo.js} +1 -1
  218. package/web/app/immutable/chunks/{DIQ-xR1q.js → Do-SaITx.js} +1 -1
  219. package/web/app/immutable/chunks/{DyLERSuu.js → DqfdHjn7.js} +1 -1
  220. package/web/app/immutable/chunks/{YbqMJoDi.js → DrStWuxU.js} +1 -1
  221. package/web/app/immutable/chunks/{CsilY7l9.js → DtkIwON_.js} +1 -1
  222. package/web/app/immutable/chunks/{-VR23WhZ.js → DujtjgwV.js} +1 -1
  223. package/web/app/immutable/chunks/{Y_tkjygB.js → DwGyIIXK.js} +1 -1
  224. package/web/app/immutable/chunks/{LdXAlc1O.js → DwbEs_9r.js} +1 -1
  225. package/web/app/immutable/chunks/{CvusaaYc.js → DwiE5WsI.js} +1 -1
  226. package/web/app/immutable/chunks/{Cpw2gXhG.js → Dx1ZiLP_.js} +1 -1
  227. package/web/app/immutable/chunks/{BW2en5Js.js → DxSE2XEK.js} +1 -1
  228. package/web/app/immutable/chunks/{jyNUu-ZR.js → DxnZvDv0.js} +1 -1
  229. package/web/app/immutable/chunks/{Bx7gCv2M.js → Dy9FYRX8.js} +1 -1
  230. package/web/app/immutable/chunks/{C6rz0msZ.js → DzI8RUwZ.js} +1 -1
  231. package/web/app/immutable/chunks/{rsUVVEzx.js → ELYZilX0.js} +1 -1
  232. package/web/app/immutable/chunks/{BlRGZv8u.js → FLpsgWeB.js} +1 -1
  233. package/web/app/immutable/chunks/{BweHPPaS.js → FhJRiT1S.js} +2 -2
  234. package/web/app/immutable/chunks/{BpLxj3s3.js → HLNbJ-7M.js} +1 -1
  235. package/web/app/immutable/chunks/{D22j4iWy.js → Hi2H4bj8.js} +1 -1
  236. package/web/app/immutable/chunks/{UqcU95a7.js → Idk978zJ.js} +1 -1
  237. package/web/app/immutable/chunks/{C_wfHKmM.js → Ii0VTY5h.js} +1 -1
  238. package/web/app/immutable/chunks/{CTqRHXfu.js → ItBm4ElA.js} +1 -1
  239. package/web/app/immutable/chunks/{Dduwpj0a.js → Jk9a4xPx.js} +1 -1
  240. package/web/app/immutable/chunks/{yMcNgg0D.js → KlNP4OZJ.js} +1 -1
  241. package/web/app/immutable/chunks/{B0kNPCxU.js → KtEuoG00.js} +1 -1
  242. package/web/app/immutable/chunks/{Btst3lgy.js → L3K71tUU.js} +1 -1
  243. package/web/app/immutable/chunks/{DzpuLv6U.js → Lk7a_7W9.js} +1 -1
  244. package/web/app/immutable/chunks/{DpxbS0Pj.js → Mmc_61iE.js} +1 -1
  245. package/web/app/immutable/chunks/{DrkDJmY5.js → NpwlBTfT.js} +1 -1
  246. package/web/app/immutable/chunks/{7i0OJtNQ.js → R5lmOJFS.js} +1 -1
  247. package/web/app/immutable/chunks/{8jO_MBKF.js → RTRAqswA.js} +1 -1
  248. package/web/app/immutable/chunks/{DpESY8ko.js → UYAhegVx.js} +1 -1
  249. package/web/app/immutable/chunks/{CUA9hM4m.js → UsbmbYa0.js} +1 -1
  250. package/web/app/immutable/chunks/{DyXOhKE5.js → VcnbZvDh.js} +1 -1
  251. package/web/app/immutable/chunks/{TN7R9Ny0.js → WoPFTWyQ.js} +1 -1
  252. package/web/app/immutable/chunks/{77KTvr2w.js → WvHbj6rB.js} +1 -1
  253. package/web/app/immutable/chunks/{BbfEcBPg.js → Y2a1lhL9.js} +1 -1
  254. package/web/app/immutable/chunks/{D6_ybykj.js → YFBzMq6w.js} +1 -1
  255. package/web/app/immutable/chunks/YLhFQnIu.js +1 -0
  256. package/web/app/immutable/chunks/{VTJf_qPn.js → YeOAvjnW.js} +1 -1
  257. package/web/app/immutable/chunks/{BwVjpKmH.js → Yz7dkp3Z.js} +1 -1
  258. package/web/app/immutable/chunks/{BrDfJqC4.js → _3Ca9E4W.js} +1 -1
  259. package/web/app/immutable/chunks/{BdlYeRHB.js → aoPstOyp.js} +2 -2
  260. package/web/app/immutable/chunks/{B4F7GG5Q.js → bs-TVtqR.js} +1 -1
  261. package/web/app/immutable/chunks/{DjNuITHM.js → cEIzYo-d.js} +1 -1
  262. package/web/app/immutable/chunks/{QIFiwjW0.js → cHm1EnSF.js} +3 -3
  263. package/web/app/immutable/chunks/{B-4i031c.js → cKeJwK9J.js} +1 -1
  264. package/web/app/immutable/chunks/{cfiNEg68.js → cPsAlOmH.js} +1 -1
  265. package/web/app/immutable/chunks/{CPWMushE.js → d028N8d2.js} +1 -1
  266. package/web/app/immutable/chunks/{CDxV78M0.js → eJwA1uvO.js} +1 -1
  267. package/web/app/immutable/chunks/{DlMrAlfA.js → g08hegP2.js} +1 -1
  268. package/web/app/immutable/chunks/{D7yetF0v.js → gwv5JQYH.js} +1 -1
  269. package/web/app/immutable/chunks/{Cerl373K.js → iAKTK0Nq.js} +1 -1
  270. package/web/app/immutable/chunks/{BxU747mj.js → j5ppcWWU.js} +1 -1
  271. package/web/app/immutable/chunks/{E1uoF1cW.js → jAIXVFR4.js} +1 -1
  272. package/web/app/immutable/chunks/{B3OJ_2Dd.js → kvtKUeBe.js} +1 -1
  273. package/web/app/immutable/chunks/{B3JbrKDZ.js → lZ7zkdkp.js} +1 -1
  274. package/web/app/immutable/chunks/{DpvQ3NRH.js → mUNs8NSR.js} +1 -1
  275. package/web/app/immutable/chunks/{Bax102l4.js → nOvpikoA.js} +1 -1
  276. package/web/app/immutable/chunks/{CueOVPTy.js → oBIu7LTI.js} +1 -1
  277. package/web/app/immutable/chunks/{DKupjKLn.js → oVV8Q_Hb.js} +1 -1
  278. package/web/app/immutable/chunks/{BhYFIrRM.js → pHYq50Ny.js} +1 -1
  279. package/web/app/immutable/chunks/{De2a277N.js → ptqq1hqu.js} +1 -1
  280. package/web/app/immutable/chunks/{BjdIR-od.js → qoDJOBiM.js} +1 -1
  281. package/web/app/immutable/chunks/{DzBJS0Lp.js → scTXKJzg.js} +1 -1
  282. package/web/app/immutable/chunks/{Bj4j6g-o.js → tU2KtqMG.js} +1 -1
  283. package/web/app/immutable/chunks/{CDxGu9F5.js → tVmNccZ-.js} +1 -1
  284. package/web/app/immutable/chunks/{9R_52XLX.js → whliLT1v.js} +1 -1
  285. package/web/app/immutable/chunks/{ChOMtuod.js → x2AHvZeQ.js} +1 -1
  286. package/web/app/immutable/chunks/{B2OS2WTh.js → xPYDsdm4.js} +1 -1
  287. package/web/app/immutable/chunks/{DOLX5oss.js → xzksWQ-h.js} +1 -1
  288. package/web/app/immutable/chunks/{Dt3xwKL6.js → yMNZVIZN.js} +2 -2
  289. package/web/app/immutable/chunks/{DgjIVRdE.js → z91bgOZ6.js} +1 -1
  290. package/web/app/immutable/chunks/{Y4bYs1dr.js → z_SeEaJQ.js} +1 -1
  291. package/web/app/immutable/chunks/{hstOawAs.js → zxxqPN9_.js} +1 -1
  292. package/web/app/immutable/entry/{app.gkm8TnXW.js → app.TFdw1N9t.js} +3 -3
  293. package/web/app/immutable/entry/start.CSPHmABT.js +1 -0
  294. package/web/app/immutable/nodes/{0.xKtnYOA2.js → 0.D7LoWNFt.js} +1 -1
  295. package/web/app/immutable/nodes/{1.BMx4VsW1.js → 1.T820Pcdi.js} +1 -1
  296. package/web/app/immutable/nodes/10.TooAJmth.js +39 -0
  297. package/web/app/immutable/nodes/{11._cAIrch_.js → 11.YCt8uKtA.js} +1 -1
  298. package/web/app/immutable/nodes/{12.DOoAvwLA.js → 12.C5GV0W_U.js} +1 -1
  299. package/web/app/immutable/nodes/{13.Coj_sRB4.js → 13.BpCKbOND.js} +1 -1
  300. package/web/app/immutable/nodes/{14.AVrz3ZLQ.js → 14.DomreN-2.js} +3 -3
  301. package/web/app/immutable/nodes/{15.BGK-JRWm.js → 15.BaajVSfs.js} +1 -1
  302. package/web/app/immutable/nodes/{16.CMkcwVoI.js → 16.BcdRdVBS.js} +1 -1
  303. package/web/app/immutable/nodes/{17.BS5un5d0.js → 17.C5h-oNNo.js} +1 -1
  304. package/web/app/immutable/nodes/{18._hTG2-17.js → 18.vgJOUK1N.js} +1 -1
  305. package/web/app/immutable/nodes/{19.DuCFyr_N.js → 19.BBw49idM.js} +2 -2
  306. package/web/app/immutable/nodes/{2.uAqDAg4D.js → 2.CXHTT9vG.js} +4 -4
  307. package/web/app/immutable/nodes/{20.C1pW6BvW.js → 20.CuOgTm-x.js} +1 -1
  308. package/web/app/immutable/nodes/{3.M-EbuqKW.js → 3.CafUSpEU.js} +1 -1
  309. package/web/app/immutable/nodes/{4.ByPZ1Nrn.js → 4.wtpkgmx_.js} +1 -1
  310. package/web/app/immutable/nodes/{5.DKAjjuf7.js → 5.D26Atcdx.js} +1 -1
  311. package/web/app/immutable/nodes/{6.DOc_YxMK.js → 6.uEepPxKF.js} +1 -1
  312. package/web/app/immutable/nodes/{7.gFNAyoNX.js → 7.D-r8R1wS.js} +1 -1
  313. package/web/app/immutable/nodes/{8.C_Kp8pWz.js → 8.ELuFvMEz.js} +1 -1
  314. package/web/app/immutable/nodes/{9.C6HX35Sq.js → 9.tuk9n1NJ.js} +4 -4
  315. package/web/app/version.json +1 -1
  316. package/web/generated/paraglide.js +44 -44
  317. package/web/index.html +18 -18
  318. package/web/app/immutable/chunks/B2LBPAIA.js +0 -1
  319. package/web/app/immutable/chunks/BUTuN2nE.js +0 -1
  320. package/web/app/immutable/chunks/CH-Qi35K.js +0 -1
  321. package/web/app/immutable/chunks/DWvCfaBg.js +0 -1
  322. package/web/app/immutable/chunks/Da8rtzmJ.js +0 -1
  323. package/web/app/immutable/chunks/wBNgrgMC.js +0 -1
  324. package/web/app/immutable/entry/start.CMMmzvCE.js +0 -1
  325. package/web/app/immutable/nodes/10.HyXPJR8g.js +0 -39
@@ -1 +1 @@
1
- import{h8 as O,gQ as H,JL as P,Kz as K,Dw as U,u5 as j,v2 as q,A$ as z,B0 as N,JJ as Q,JK as V,B1 as X}from"./CIoJPvjg.js";import{selectWorkspaceTabOrder as f,selectCurrentWorkspaceTabId as S,selectLastClosedWorkspaceTab as Y}from"./Btst3lgy.js";import{i as Z,q as M,b as ee,j as te,l as ae}from"./DJJ2Xrlq.js";import{g as ne}from"./BCiWc-GH.js";import{bm as l}from"./DWvCfaBg.js";import{z as oe,S as y}from"./CIKXOyvw.js";import{B as h,S as C,Q as ce}from"./Bqd7fdCF.js";import{al as le,aj as E}from"./B-MjuJTx.js";import{g as se}from"./cfiNEg68.js";function A(e,a){const n=f.select(e.state),o=S.select(e.state);if(!o)return null;const c=n.indexOf(o),s=c+(a==="left"?-1:1),p=n[s];return c<0||!p?null:(e.dispatch(j(o,p,a==="left"?"before":"after")),o)}function B(e){const a=S.select(e);return a&&f.select(e).includes(a)?a:null}function m(e,a,n){const o=B(e.state),c=o?`/workspace/${o}`:ne(e.state);return a!==c&&n(c),o}function ie(e,a,n,o){return e.dispatch(O(a)),m(e,n,o),a}function I(e,a){const o=a.match(/^\/workspace\/([^/]+)/)?.[1];return o?o==="new"?null:o:null}function R(e,a,n,o){if(n==="/")return D(e,a==="next"?0:"last",n,o);e.dispatch(a==="next"?Q():V());const c=S.select(e.state);if(!c)return null;const s=`/workspace/${c}`;return n!==s&&o(s),c}function re(e,a,n){const o=I(e,a);return o?ie(e,o,a,n):null}function pe(e,a,n){const o=I(e,a);if(!o)return null;const c=Z.select(e.state,o);if(!c)return null;const s=c.tabs.find(v=>v.id===c.activeTabId),p=c.tabs.length===0&&c.activeTabId===null,g=M.select(e.state,o)>1&&(p||c.tabs.length===1&&s!==void 0&&s.closable!==!1);if((!s||s.closable===!1)&&!g)return null;const T=n??se(o)?.availableCanvasWidth??void 0;return e.dispatch(H(o,void 0,T)),s?.id??c.id}function ue(e,a){const n=e.state.panelLayout.byWorkspaceId[a];return!n||n.restoreStatus==="pending"?!1:ee.select(e.state,a).length===0}function de(e,a,n){B(e.state)||e.dispatch(P(0)),m(e,a,n)}function L(e,a,{navigate:n,closeWindow:o}){return o?(o(),"window"):(m(e,a,n),null)}function be(e,a,n){const o=I(e,a);return o?pe(e,a,n.availableCanvasWidth)!==null?"panel":ue(e,o)?(e.dispatch(O(o)),f.select(e.state).length>0?(de(e,a,n.navigate),"workspace"):L(e,a,n)??"workspace"):null:f.select(e.state).length>0?null:L(e,a,n)}function fe(e,a,n){return e.dispatch(X()),m(e,a,n)}function ke(e,a,n){const o=a.match(/^\/workspace\/([^/]+)/),c=o&&o[1]!=="new"?o[1]:null,s=Y.select(e.state),p=c?ae.select(e.state,c):null;return c&&p&&(!s||p.closedAt>=s.closedAt)?p.kind==="column"?(e.dispatch(z(c)),"column"):(e.dispatch(N(c)),p.kind):s?(fe(e,a,n),"workspace"):null}function we(e,a){const n=a.match(/^\/workspace\/([^/]+)/),o=n&&n[1]!=="new"?n[1]:null;if(!o)return null;const c=q(o);return e.dispatch(c),te.select(e.state,o)}function D(e,a,n,o){const c=f.select(e.state),s=a==="last"?c.length-1:a;return s<0||s>=c.length?null:(e.dispatch(P(s)),m(e,n,o))}function We({isMac:e,register:a,store:n,getCurrentPath:o,navigate:c,openNewWorkspace:s,getRailMachineIds:p,onCreateAgent:g,onCreateNote:T,onCreateTerminal:v,onCreateBrowser:$,onWorkspaceTabMoved:W,closeWindow:F,resolveBinding:_}){const r=e?{meta:!0}:{ctrl:!0},G=oe("TOGGLE_SIDEBAR",e),k=t=>()=>t(o()),J=t=>()=>{const i=o().match(/^\/workspace\/([^/]+)/);i?.[1]&&i[1]!=="new"&&t(i[1])},u=t=>_?{binding:()=>_(t)}:{},w=t=>_?.(t)??ce(t);a({...u("global.new-space"),...r,key:"n",global:!0,description:l.workspace_shortcuts_newSpace_description(),action:s}),a({...u("panel.toggle-sidebar"),...G,global:!0,description:y.TOGGLE_SIDEBAR.label,action:()=>n.dispatch(K())}),a({...u("navigation.new-tab"),...r,key:"t",global:!0,description:l.workspace_shortcuts_newPanel_description(),action:k(t=>we(n,t))});for(const[t,i,b,d]of[["workspace.new-agent","a",l.ui_shortcuts_newAgent_label(),g],["workspace.new-note","n",l.layout_panelEmptyState_newItem_tooltip({label:l.layout_panelEmptyState_note_label()}),T],["workspace.new-terminal","t",l.layout_panelEmptyState_newItem_tooltip({label:l.layout_panelEmptyState_terminal_label()}),v],["workspace.new-browser","b",l.layout_panelEmptyState_newItem_tooltip({label:l.layout_panelEmptyState_browser_label()}),$]])d&&a({...u(t),...r,key:i,alt:!0,global:!0,allowInTerminal:!0,description:b,action:J(d)});a({...u("navigation.close-tab"),...r,key:"w",global:!0,description:l.workspace_shortcuts_closePanelTab_description(),action:k(t=>be(n,t,{navigate:c,closeWindow:F}))}),a({...u("navigation.close-space-tab"),...r,key:"w",shift:!0,global:!0,description:l.workspace_shortcuts_closeSpaceTab_description(),action:k(t=>re(n,t,c))}),a({...u("navigation.reopen-tab"),...r,key:"t",shift:!0,global:!0,description:l.workspace_shortcuts_reopenClosedTabOrSpace_description(),action:k(t=>ke(n,t,c))}),a({...u("navigation.move-space-tab-left"),...r,key:"ArrowLeft",alt:!0,shift:!0,global:!0,description:y.MOVE_SPACE_TAB_LEFT.label,action:()=>{const t=A(n,"left");t&&W?.({workspaceId:t,position:f.select(n.state).indexOf(t)+1})}}),a({...u("navigation.move-space-tab-right"),...r,key:"ArrowRight",alt:!0,shift:!0,global:!0,description:y.MOVE_SPACE_TAB_RIGHT.label,action:()=>{const t=A(n,"right");t&&W?.({workspaceId:t,position:f.select(n.state).indexOf(t)+1})}});for(const[t,i]of[["next",!1],["previous",!0]]){a({...u(t==="next"?"global.next-space":"global.previous-space"),key:"Tab",ctrl:!0,shift:i,global:!0,description:t==="next"?l.workspace_shortcuts_nextSpaceTab_description():l.workspace_shortcuts_previousSpaceTab_description(),action:k(d=>R(n,t,d,c))});const b=t==="next"?"global.next-space-alt":"global.previous-space-alt";a({...u(b),...r,key:t==="next"?"}":"{",shift:!0,global:!0,allowInTerminal:!0,preferLocal:!0,enabled:d=>!_||!h(b,d,_,e),description:t==="next"?l.workspace_shortcuts_nextSpaceTab_description():l.workspace_shortcuts_previousSpaceTab_description(),action:k(d=>R(n,t,d,c))})}const x=t=>{t===1?c("/"):D(n,t===9?"last":t-2,o(),c)};for(let t=1;t<=9;t++)a({...r,key:String(t),binding:()=>w("navigation.go-to-device").replace(/([1-8])-9$/,String(t)),global:!0,allowInTerminal:!0,enabled:i=>E.select(n.state)&&!h("navigation.go-to-device",i,w,e),description:l.machineRail_nav_ariaLabel(),action:()=>{const i=p?.()??le.select(n.state).map(d=>d.id),b=i[t===9?i.length-1:t-1];b&&n.dispatch(U(b))}});for(let t=1;t<=9;t++)a({...r,key:String(t),binding:()=>C["navigation.go-to-device"].replace(/([1-8])-9$/,String(t)),global:!0,allowInTerminal:!0,enabled:i=>!E.select(n.state)&&w("navigation.go-to-tab")===C["navigation.go-to-tab"]&&!h("navigation.go-to-device",i,w,e),description:l.ui_shortcuts_goToTab_label(),action:()=>x(t)});for(let t=1;t<=9;t++)a({binding:()=>w("navigation.go-to-tab").replace(/([1-8])-9$/,String(t)),...r,alt:!0,key:String(t),global:!0,allowInTerminal:!0,enabled:i=>!h("navigation.go-to-tab",i,w,e),description:t===1?l.home_navigation_description():t===9?l.workspace_shortcuts_selectLastSpaceTab_description():l.workspace_shortcuts_selectSpaceTab_description({digit:t}),action:()=>x(t)})}export{be as c,We as r};
1
+ import{h8 as O,gQ as H,JL as P,Kz as K,Dw as U,u5 as j,v2 as q,A$ as z,B0 as N,JJ as Q,JK as V,B1 as X}from"./D5wnbxHp.js";import{selectWorkspaceTabOrder as f,selectCurrentWorkspaceTabId as S,selectLastClosedWorkspaceTab as Y}from"./L3K71tUU.js";import{i as Z,q as M,b as ee,j as te,l as ae}from"./COVS9Crf.js";import{g as ne}from"./BJfXDnA-.js";import{bm as l}from"./YLhFQnIu.js";import{z as oe,S as y}from"./DJivXy66.js";import{B as h,S as C,Q as ce}from"./Bqd7fdCF.js";import{al as le,aj as E}from"./D6Q-N0-R.js";import{g as se}from"./cPsAlOmH.js";function A(e,a){const n=f.select(e.state),o=S.select(e.state);if(!o)return null;const c=n.indexOf(o),s=c+(a==="left"?-1:1),p=n[s];return c<0||!p?null:(e.dispatch(j(o,p,a==="left"?"before":"after")),o)}function B(e){const a=S.select(e);return a&&f.select(e).includes(a)?a:null}function m(e,a,n){const o=B(e.state),c=o?`/workspace/${o}`:ne(e.state);return a!==c&&n(c),o}function ie(e,a,n,o){return e.dispatch(O(a)),m(e,n,o),a}function I(e,a){const o=a.match(/^\/workspace\/([^/]+)/)?.[1];return o?o==="new"?null:o:null}function R(e,a,n,o){if(n==="/")return D(e,a==="next"?0:"last",n,o);e.dispatch(a==="next"?Q():V());const c=S.select(e.state);if(!c)return null;const s=`/workspace/${c}`;return n!==s&&o(s),c}function re(e,a,n){const o=I(e,a);return o?ie(e,o,a,n):null}function pe(e,a,n){const o=I(e,a);if(!o)return null;const c=Z.select(e.state,o);if(!c)return null;const s=c.tabs.find(v=>v.id===c.activeTabId),p=c.tabs.length===0&&c.activeTabId===null,g=M.select(e.state,o)>1&&(p||c.tabs.length===1&&s!==void 0&&s.closable!==!1);if((!s||s.closable===!1)&&!g)return null;const T=n??se(o)?.availableCanvasWidth??void 0;return e.dispatch(H(o,void 0,T)),s?.id??c.id}function ue(e,a){const n=e.state.panelLayout.byWorkspaceId[a];return!n||n.restoreStatus==="pending"?!1:ee.select(e.state,a).length===0}function de(e,a,n){B(e.state)||e.dispatch(P(0)),m(e,a,n)}function L(e,a,{navigate:n,closeWindow:o}){return o?(o(),"window"):(m(e,a,n),null)}function be(e,a,n){const o=I(e,a);return o?pe(e,a,n.availableCanvasWidth)!==null?"panel":ue(e,o)?(e.dispatch(O(o)),f.select(e.state).length>0?(de(e,a,n.navigate),"workspace"):L(e,a,n)??"workspace"):null:f.select(e.state).length>0?null:L(e,a,n)}function fe(e,a,n){return e.dispatch(X()),m(e,a,n)}function ke(e,a,n){const o=a.match(/^\/workspace\/([^/]+)/),c=o&&o[1]!=="new"?o[1]:null,s=Y.select(e.state),p=c?ae.select(e.state,c):null;return c&&p&&(!s||p.closedAt>=s.closedAt)?p.kind==="column"?(e.dispatch(z(c)),"column"):(e.dispatch(N(c)),p.kind):s?(fe(e,a,n),"workspace"):null}function we(e,a){const n=a.match(/^\/workspace\/([^/]+)/),o=n&&n[1]!=="new"?n[1]:null;if(!o)return null;const c=q(o);return e.dispatch(c),te.select(e.state,o)}function D(e,a,n,o){const c=f.select(e.state),s=a==="last"?c.length-1:a;return s<0||s>=c.length?null:(e.dispatch(P(s)),m(e,n,o))}function We({isMac:e,register:a,store:n,getCurrentPath:o,navigate:c,openNewWorkspace:s,getRailMachineIds:p,onCreateAgent:g,onCreateNote:T,onCreateTerminal:v,onCreateBrowser:$,onWorkspaceTabMoved:W,closeWindow:F,resolveBinding:_}){const r=e?{meta:!0}:{ctrl:!0},G=oe("TOGGLE_SIDEBAR",e),k=t=>()=>t(o()),J=t=>()=>{const i=o().match(/^\/workspace\/([^/]+)/);i?.[1]&&i[1]!=="new"&&t(i[1])},u=t=>_?{binding:()=>_(t)}:{},w=t=>_?.(t)??ce(t);a({...u("global.new-space"),...r,key:"n",global:!0,description:l.workspace_shortcuts_newSpace_description(),action:s}),a({...u("panel.toggle-sidebar"),...G,global:!0,description:y.TOGGLE_SIDEBAR.label,action:()=>n.dispatch(K())}),a({...u("navigation.new-tab"),...r,key:"t",global:!0,description:l.workspace_shortcuts_newPanel_description(),action:k(t=>we(n,t))});for(const[t,i,b,d]of[["workspace.new-agent","a",l.ui_shortcuts_newAgent_label(),g],["workspace.new-note","n",l.layout_panelEmptyState_newItem_tooltip({label:l.layout_panelEmptyState_note_label()}),T],["workspace.new-terminal","t",l.layout_panelEmptyState_newItem_tooltip({label:l.layout_panelEmptyState_terminal_label()}),v],["workspace.new-browser","b",l.layout_panelEmptyState_newItem_tooltip({label:l.layout_panelEmptyState_browser_label()}),$]])d&&a({...u(t),...r,key:i,alt:!0,global:!0,allowInTerminal:!0,description:b,action:J(d)});a({...u("navigation.close-tab"),...r,key:"w",global:!0,description:l.workspace_shortcuts_closePanelTab_description(),action:k(t=>be(n,t,{navigate:c,closeWindow:F}))}),a({...u("navigation.close-space-tab"),...r,key:"w",shift:!0,global:!0,description:l.workspace_shortcuts_closeSpaceTab_description(),action:k(t=>re(n,t,c))}),a({...u("navigation.reopen-tab"),...r,key:"t",shift:!0,global:!0,description:l.workspace_shortcuts_reopenClosedTabOrSpace_description(),action:k(t=>ke(n,t,c))}),a({...u("navigation.move-space-tab-left"),...r,key:"ArrowLeft",alt:!0,shift:!0,global:!0,description:y.MOVE_SPACE_TAB_LEFT.label,action:()=>{const t=A(n,"left");t&&W?.({workspaceId:t,position:f.select(n.state).indexOf(t)+1})}}),a({...u("navigation.move-space-tab-right"),...r,key:"ArrowRight",alt:!0,shift:!0,global:!0,description:y.MOVE_SPACE_TAB_RIGHT.label,action:()=>{const t=A(n,"right");t&&W?.({workspaceId:t,position:f.select(n.state).indexOf(t)+1})}});for(const[t,i]of[["next",!1],["previous",!0]]){a({...u(t==="next"?"global.next-space":"global.previous-space"),key:"Tab",ctrl:!0,shift:i,global:!0,description:t==="next"?l.workspace_shortcuts_nextSpaceTab_description():l.workspace_shortcuts_previousSpaceTab_description(),action:k(d=>R(n,t,d,c))});const b=t==="next"?"global.next-space-alt":"global.previous-space-alt";a({...u(b),...r,key:t==="next"?"}":"{",shift:!0,global:!0,allowInTerminal:!0,preferLocal:!0,enabled:d=>!_||!h(b,d,_,e),description:t==="next"?l.workspace_shortcuts_nextSpaceTab_description():l.workspace_shortcuts_previousSpaceTab_description(),action:k(d=>R(n,t,d,c))})}const x=t=>{t===1?c("/"):D(n,t===9?"last":t-2,o(),c)};for(let t=1;t<=9;t++)a({...r,key:String(t),binding:()=>w("navigation.go-to-device").replace(/([1-8])-9$/,String(t)),global:!0,allowInTerminal:!0,enabled:i=>E.select(n.state)&&!h("navigation.go-to-device",i,w,e),description:l.machineRail_nav_ariaLabel(),action:()=>{const i=p?.()??le.select(n.state).map(d=>d.id),b=i[t===9?i.length-1:t-1];b&&n.dispatch(U(b))}});for(let t=1;t<=9;t++)a({...r,key:String(t),binding:()=>C["navigation.go-to-device"].replace(/([1-8])-9$/,String(t)),global:!0,allowInTerminal:!0,enabled:i=>!E.select(n.state)&&w("navigation.go-to-tab")===C["navigation.go-to-tab"]&&!h("navigation.go-to-device",i,w,e),description:l.ui_shortcuts_goToTab_label(),action:()=>x(t)});for(let t=1;t<=9;t++)a({binding:()=>w("navigation.go-to-tab").replace(/([1-8])-9$/,String(t)),...r,alt:!0,key:String(t),global:!0,allowInTerminal:!0,enabled:i=>!h("navigation.go-to-tab",i,w,e),description:t===1?l.home_navigation_description():t===9?l.workspace_shortcuts_selectLastSpaceTab_description():l.workspace_shortcuts_selectSpaceTab_description({digit:t}),action:()=>x(t)})}export{be as c,We as r};
@@ -1 +1 @@
1
- import{t as B,bo as f,bw as T,bq as W,b as j,bm as q,bs as z}from"./DWvCfaBg.js";import{bs as D,cd as H,ca as L,a7 as O,ay as E,W as d,bn as F,aA as h,aD as t,c9 as r,a5 as G,bl as J,bA as K,b_ as M,bO as N,aB as Q}from"./3SdAC2_C.js";import{i as R}from"./VTJf_qPn.js";import{C as U}from"./De2a277N.js";import{dH as V}from"./3Kr2ijlK.js";import{i as X}from"./H2jLkRRS.js";var Y=Q('<div class="flex flex-col items-center justify-center h-full text-subtle gap-4"><p class="text-sm"> </p></div>');function Z(c,o){if(new.target)return B({component:Z,...c});D(o,!0);const l=()=>z(b,"$workspace",m),[m,u]=W();let s=f(o,"tab",7),n=f(o,"workspaceId",7);const i=H(n());L(()=>{i.set(n())});const b=V(i),_=r(()=>l()?.worktreePath||l()?.repositoryPath||""),g=r(()=>s().data?.changes||[]),v=r(()=>s().data?.isAggregate||!1),w=r(()=>s().data?.agentId),k=r(()=>t(g).map(e=>{const a=e.filePath&&X(e.filePath)?e.filePath:`${t(_)}/${e.filePath}`;return{...e,filePath:a}}));var C={get tab(){return s()},set tab(e){s(e),h()},get workspaceId(){return n()},set workspaceId(e){n(e),h()},$set:T,$on:(e,a)=>j(o,e,a)},p=O(),y=E(p);{var P=e=>{U(e,{isLoading:!1,get changes(){return t(k)},get isAggregate(){return t(v)},get agentId(){return t(w)},showStagingControls:!0})},I=e=>{var a=Y(),A=G(a),$=J(A,!0);K(a),M(S=>N($,S),[()=>q.layout_chatChanges_noChanges_label()]),d(e,a)};R(y,e=>{t(g).length>0?e(P):e(I,-1)})}d(c,p);var x=F(C);return u(),x}export{Z as default};
1
+ import{t as B,bo as f,bw as T,bq as W,b as j,bm as q,bs as z}from"./YLhFQnIu.js";import{bs as D,cd as H,ca as L,a7 as O,ay as E,W as d,bn as F,aA as h,aD as t,c9 as r,a5 as G,bl as J,bA as K,b_ as M,bO as N,aB as Q}from"./3SdAC2_C.js";import{i as R}from"./YeOAvjnW.js";import{C as U}from"./ptqq1hqu.js";import{dH as V}from"./BJbm_MWC.js";import{i as X}from"./H2jLkRRS.js";var Y=Q('<div class="flex flex-col items-center justify-center h-full text-subtle gap-4"><p class="text-sm"> </p></div>');function Z(c,o){if(new.target)return B({component:Z,...c});D(o,!0);const l=()=>z(b,"$workspace",m),[m,u]=W();let s=f(o,"tab",7),n=f(o,"workspaceId",7);const i=H(n());L(()=>{i.set(n())});const b=V(i),_=r(()=>l()?.worktreePath||l()?.repositoryPath||""),g=r(()=>s().data?.changes||[]),v=r(()=>s().data?.isAggregate||!1),w=r(()=>s().data?.agentId),k=r(()=>t(g).map(e=>{const a=e.filePath&&X(e.filePath)?e.filePath:`${t(_)}/${e.filePath}`;return{...e,filePath:a}}));var C={get tab(){return s()},set tab(e){s(e),h()},get workspaceId(){return n()},set workspaceId(e){n(e),h()},$set:T,$on:(e,a)=>j(o,e,a)},p=O(),y=E(p);{var P=e=>{U(e,{isLoading:!1,get changes(){return t(k)},get isAggregate(){return t(v)},get agentId(){return t(w)},showStagingControls:!0})},I=e=>{var a=Y(),A=G(a),$=J(A,!0);K(a),M(S=>N($,S),[()=>q.layout_chatChanges_noChanges_label()]),d(e,a)};R(y,e=>{t(g).length>0?e(P):e(I,-1)})}d(c,p);var x=F(C);return u(),x}export{Z as default};
@@ -1,4 +1,4 @@
1
- import{U as be,aZ as we,Y as _e,b0 as De,V as Se,a_ as Ce,b as l,X as dt,aW as vt,B as Me,L as U,ay as st,z as Ee,P as Ie,r as $e,bh as Ye}from"./BolJpU8l.js";import{g as It}from"./BdWqymET.js";import{t as Ae,d as Fe,m as Le,l as Oe,h as We,g as Zt,p as Qt,u as Pe,q as Ve,i as ze,v as Re,x as Ne,w as He,n as Be,e as Kt,j as Jt,k as te,s as ee,a as re}from"./hRfDutUE.js";function qe(t){return t}var Tt=1,Yt=2,Ft=3,xt=4,se=1e-6;function Ge(t){return"translate("+t+",0)"}function Xe(t){return"translate(0,"+t+")"}function je(t){return e=>+t(e)}function Ue(t,e){return e=Math.max(0,t.bandwidth()-e*2)/2,t.round()&&(e=Math.round(e)),s=>+t(s)+e}function Ze(){return!this.__axis}function de(t,e){var s=[],r=null,i=null,g=6,y=6,b=3,S=typeof window<"u"&&window.devicePixelRatio>1?0:.5,L=t===Tt||t===xt?-1:1,_=t===xt||t===Yt?"x":"y",W=t===Tt||t===Ft?Ge:Xe;function w(D){var N=r??(e.ticks?e.ticks.apply(e,s):e.domain()),V=i??(e.tickFormat?e.tickFormat.apply(e,s):qe),k=Math.max(g,0)+b,M=e.range(),P=+M[0]+S,O=+M[M.length-1]+S,B=(e.bandwidth?Ue:je)(e.copy(),S),H=D.selection?D.selection():D,I=H.selectAll(".domain").data([null]),x=H.selectAll(".tick").data(N,e).order(),h=x.exit(),E=x.enter().append("g").attr("class","tick"),f=x.select("line"),T=x.select("text");I=I.merge(I.enter().insert("path",".tick").attr("class","domain").attr("stroke","currentColor")),x=x.merge(E),f=f.merge(E.append("line").attr("stroke","currentColor").attr(_+"2",L*g)),T=T.merge(E.append("text").attr("fill","currentColor").attr(_,L*k).attr("dy",t===Tt?"0em":t===Ft?"0.71em":"0.32em")),D!==H&&(I=I.transition(D),x=x.transition(D),f=f.transition(D),T=T.transition(D),h=h.transition(D).attr("opacity",se).attr("transform",function(v){return isFinite(v=B(v))?W(v+S):this.getAttribute("transform")}),E.attr("opacity",se).attr("transform",function(v){var p=this.parentNode.__axis;return W((p&&isFinite(p=p(v))?p:B(v))+S)})),h.remove(),I.attr("d",t===xt||t===Yt?y?"M"+L*y+","+P+"H"+S+"V"+O+"H"+L*y:"M"+S+","+P+"V"+O:y?"M"+P+","+L*y+"V"+S+"H"+O+"V"+L*y:"M"+P+","+S+"H"+O),x.attr("opacity",1).attr("transform",function(v){return W(B(v)+S)}),f.attr(_+"2",L*g),T.attr(_,L*k).text(V),H.filter(Ze).attr("fill","none").attr("font-size",10).attr("font-family","sans-serif").attr("text-anchor",t===Yt?"start":t===xt?"end":"middle"),H.each(function(){this.__axis=B})}return w.scale=function(D){return arguments.length?(e=D,w):e},w.ticks=function(){return s=Array.from(arguments),w},w.tickArguments=function(D){return arguments.length?(s=D==null?[]:Array.from(D),w):s.slice()},w.tickValues=function(D){return arguments.length?(r=D==null?null:Array.from(D),w):r&&r.slice()},w.tickFormat=function(D){return arguments.length?(i=D,w):i},w.tickSize=function(D){return arguments.length?(g=y=+D,w):g},w.tickSizeInner=function(D){return arguments.length?(g=+D,w):g},w.tickSizeOuter=function(D){return arguments.length?(y=+D,w):y},w.tickPadding=function(D){return arguments.length?(b=+D,w):b},w.offset=function(D){return arguments.length?(S=+D,w):S},w}function Qe(t){return de(Tt,t)}function Ke(t){return de(Ft,t)}var bt={exports:{}},Je=bt.exports,ne;function tr(){return ne||(ne=1,(function(t,e){(function(s,r){t.exports=r()})(Je,(function(){var s="day";return function(r,i,g){var y=function(L){return L.add(4-L.isoWeekday(),s)},b=i.prototype;b.isoWeekYear=function(){return y(this).year()},b.isoWeek=function(L){if(!this.$utils().u(L))return this.add(7*(L-this.isoWeek()),s);var _,W,w,D,N=y(this),V=(_=this.isoWeekYear(),W=this.$u,w=(W?g.utc:g)().year(_).startOf("year"),D=4-w.isoWeekday(),w.isoWeekday()>4&&(D+=7),w.add(D,s));return N.diff(V,"week")+1},b.isoWeekday=function(L){return this.$utils().u(L)?this.day()||7:this.day(this.day()%7?L:L-7)};var S=b.startOf;b.startOf=function(L,_){var W=this.$utils(),w=!!W.u(_)||_;return W.p(L)==="isoweek"?w?this.date(this.date()-(this.isoWeekday()-1)).startOf("day"):this.date(this.date()-1-(this.isoWeekday()-1)+7).endOf("day"):S.bind(this)(L,_)}}}))})(bt)),bt.exports}var er=tr();const rr=It(er);var wt={exports:{}},sr=wt.exports,ie;function nr(){return ie||(ie=1,(function(t,e){(function(s,r){t.exports=r()})(sr,(function(){var s={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},r=/(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|Q|YYYY|YY?|ww?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,i=/\d/,g=/\d\d/,y=/\d\d?/,b=/\d*[^-_:/,()\s\d]+/,S={},L=function(k){return(k=+k)+(k>68?1900:2e3)},_=function(k){return function(M){this[k]=+M}},W=[/[+-]\d\d:?(\d\d)?|Z/,function(k){(this.zone||(this.zone={})).offset=(function(M){if(!M||M==="Z")return 0;var P=M.match(/([+-]|\d\d)/g),O=60*P[1]+(+P[2]||0);return O===0?0:P[0]==="+"?-O:O})(k)}],w=function(k){var M=S[k];return M&&(M.indexOf?M:M.s.concat(M.f))},D=function(k,M){var P,O=S.meridiem;if(O){for(var B=1;B<=24;B+=1)if(k.indexOf(O(B,0,M))>-1){P=B>12;break}}else P=k===(M?"pm":"PM");return P},N={A:[b,function(k){this.afternoon=D(k,!1)}],a:[b,function(k){this.afternoon=D(k,!0)}],Q:[i,function(k){this.month=3*(k-1)+1}],S:[i,function(k){this.milliseconds=100*+k}],SS:[g,function(k){this.milliseconds=10*+k}],SSS:[/\d{3}/,function(k){this.milliseconds=+k}],s:[y,_("seconds")],ss:[y,_("seconds")],m:[y,_("minutes")],mm:[y,_("minutes")],H:[y,_("hours")],h:[y,_("hours")],HH:[y,_("hours")],hh:[y,_("hours")],D:[y,_("day")],DD:[g,_("day")],Do:[b,function(k){var M=S.ordinal,P=k.match(/\d+/);if(this.day=P[0],M)for(var O=1;O<=31;O+=1)M(O).replace(/\[|\]/g,"")===k&&(this.day=O)}],w:[y,_("week")],ww:[g,_("week")],M:[y,_("month")],MM:[g,_("month")],MMM:[b,function(k){var M=w("months"),P=(w("monthsShort")||M.map((function(O){return O.slice(0,3)}))).indexOf(k)+1;if(P<1)throw new Error;this.month=P%12||P}],MMMM:[b,function(k){var M=w("months").indexOf(k)+1;if(M<1)throw new Error;this.month=M%12||M}],Y:[/[+-]?\d+/,_("year")],YY:[g,function(k){this.year=L(k)}],YYYY:[/\d{4}/,_("year")],Z:W,ZZ:W};function V(k){var M,P;M=k,P=S&&S.formats;for(var O=(k=M.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,(function(f,T,v){var p=v&&v.toUpperCase();return T||P[v]||s[v]||P[p].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,(function(a,d,m){return d||m.slice(1)}))}))).match(r),B=O.length,H=0;H<B;H+=1){var I=O[H],x=N[I],h=x&&x[0],E=x&&x[1];O[H]=E?{regex:h,parser:E}:I.replace(/^\[|\]$/g,"")}return function(f){for(var T={},v=0,p=0;v<B;v+=1){var a=O[v];if(typeof a=="string")p+=a.length;else{var d=a.regex,m=a.parser,u=f.slice(p),C=d.exec(u)[0];m.call(T,C),f=f.replace(C,"")}}return(function(n){var $=n.afternoon;if($!==void 0){var o=n.hours;$?o<12&&(n.hours+=12):o===12&&(n.hours=0),delete n.afternoon}})(T),T}}return function(k,M,P){P.p.customParseFormat=!0,k&&k.parseTwoDigitYear&&(L=k.parseTwoDigitYear);var O=M.prototype,B=O.parse;O.parse=function(H){var I=H.date,x=H.utc,h=H.args;this.$u=x;var E=h[1];if(typeof E=="string"){var f=h[2]===!0,T=h[3]===!0,v=f||T,p=h[2];T&&(p=h[2]),S=this.$locale(),!f&&p&&(S=P.Ls[p]),this.$d=(function(u,C,n,$){try{if(["x","X"].indexOf(C)>-1)return new Date((C==="X"?1e3:1)*u);var o=V(C)(u),G=o.year,c=o.month,Y=o.day,A=o.hours,R=o.minutes,F=o.seconds,q=o.milliseconds,z=o.zone,nt=o.week,at=new Date,yt=Y||(G||c?1:at.getDate()),lt=G||at.getFullYear(),X=0;G&&!c||(X=c>0?c-1:at.getMonth());var K,Z=A||0,ot=R||0,J=F||0,it=q||0;return z?new Date(Date.UTC(lt,X,yt,Z,ot,J,it+60*z.offset*1e3)):n?new Date(Date.UTC(lt,X,yt,Z,ot,J,it)):(K=new Date(lt,X,yt,Z,ot,J,it),nt&&(K=$(K).week(nt).toDate()),K)}catch{return new Date("")}})(I,E,x,P),this.init(),p&&p!==!0&&(this.$L=this.locale(p).$L),v&&I!=this.format(E)&&(this.$d=new Date("")),S={}}else if(E instanceof Array)for(var a=E.length,d=1;d<=a;d+=1){h[1]=E[d-1];var m=P.apply(this,h);if(m.isValid()){this.$d=m.$d,this.$L=m.$L,this.init();break}d===a&&(this.$d=new Date(""))}else B.call(this,H)}}}))})(wt)),wt.exports}var ir=nr();const ar=It(ir);var _t={exports:{}},or=_t.exports,ae;function cr(){return ae||(ae=1,(function(t,e){(function(s,r){t.exports=r()})(or,(function(){return function(s,r){var i=r.prototype,g=i.format;i.format=function(y){var b=this,S=this.$locale();if(!this.isValid())return g.bind(this)(y);var L=this.$utils(),_=(y||"YYYY-MM-DDTHH:mm:ssZ").replace(/\[([^\]]+)]|Q|wo|ww|w|WW|W|zzz|z|gggg|GGGG|Do|X|x|k{1,2}|S/g,(function(W){switch(W){case"Q":return Math.ceil((b.$M+1)/3);case"Do":return S.ordinal(b.$D);case"gggg":return b.weekYear();case"GGGG":return b.isoWeekYear();case"wo":return S.ordinal(b.week(),"W");case"w":case"ww":return L.s(b.week(),W==="w"?1:2,"0");case"W":case"WW":return L.s(b.isoWeek(),W==="W"?1:2,"0");case"k":case"kk":return L.s(String(b.$H===0?24:b.$H),W==="k"?1:2,"0");case"X":return Math.floor(b.$d.getTime()/1e3);case"x":return b.$d.getTime();case"z":return"["+b.offsetName()+"]";case"zzz":return"["+b.offsetName("long")+"]";default:return W}}));return g.bind(this)(_)}}}))})(_t)),_t.exports}var lr=cr();const ur=It(lr);var Dt={exports:{}},dr=Dt.exports,oe;function fr(){return oe||(oe=1,(function(t,e){(function(s,r){t.exports=r()})(dr,(function(){var s,r,i=1e3,g=6e4,y=36e5,b=864e5,S=31536e6,L=2628e6,_=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/,W=/\[([^\]]+)]|YYYY|YY|Y|M{1,2}|D{1,2}|H{1,2}|m{1,2}|s{1,2}|SSS/g,w={years:S,months:L,days:b,hours:y,minutes:g,seconds:i,milliseconds:1,weeks:6048e5},D=function(I){return I instanceof B},N=function(I,x,h){return new B(I,h,x.$l)},V=function(I){return r.p(I)+"s"},k=function(I){return I<0},M=function(I){return k(I)?Math.ceil(I):Math.floor(I)},P=function(I){return Math.abs(I)},O=function(I,x){return I?k(I)?{negative:!0,format:""+P(I)+x}:{negative:!1,format:""+I+x}:{negative:!1,format:""}},B=(function(){function I(h,E,f){var T=this;if(this.$d={},this.$l=f,h===void 0&&(this.$ms=0,this.parseFromMilliseconds()),E)return N(h*w[V(E)],this);if(typeof h=="number")return this.$ms=h,this.parseFromMilliseconds(),this;if(typeof h=="object")return Object.keys(h).forEach((function(a){T.$d[V(a)]=h[a]})),this.calMilliseconds(),this;if(typeof h=="string"){var v=h.match(_);if(v){var p=v.slice(2).map((function(a){return a!=null?Number(a):0}));return this.$d.years=p[0],this.$d.months=p[1],this.$d.weeks=p[2],this.$d.days=p[3],this.$d.hours=p[4],this.$d.minutes=p[5],this.$d.seconds=p[6],this.calMilliseconds(),this}}return this}var x=I.prototype;return x.calMilliseconds=function(){var h=this;this.$ms=Object.keys(this.$d).reduce((function(E,f){return E+(h.$d[f]||0)*w[f]}),0)},x.parseFromMilliseconds=function(){var h=this.$ms;this.$d.years=M(h/S),h%=S,this.$d.months=M(h/L),h%=L,this.$d.days=M(h/b),h%=b,this.$d.hours=M(h/y),h%=y,this.$d.minutes=M(h/g),h%=g,this.$d.seconds=M(h/i),h%=i,this.$d.milliseconds=h},x.toISOString=function(){var h=O(this.$d.years,"Y"),E=O(this.$d.months,"M"),f=+this.$d.days||0;this.$d.weeks&&(f+=7*this.$d.weeks);var T=O(f,"D"),v=O(this.$d.hours,"H"),p=O(this.$d.minutes,"M"),a=this.$d.seconds||0;this.$d.milliseconds&&(a+=this.$d.milliseconds/1e3,a=Math.round(1e3*a)/1e3);var d=O(a,"S"),m=h.negative||E.negative||T.negative||v.negative||p.negative||d.negative,u=v.format||p.format||d.format?"T":"",C=(m?"-":"")+"P"+h.format+E.format+T.format+u+v.format+p.format+d.format;return C==="P"||C==="-P"?"P0D":C},x.toJSON=function(){return this.toISOString()},x.format=function(h){var E=h||"YYYY-MM-DDTHH:mm:ss",f={Y:this.$d.years,YY:r.s(this.$d.years,2,"0"),YYYY:r.s(this.$d.years,4,"0"),M:this.$d.months,MM:r.s(this.$d.months,2,"0"),D:this.$d.days,DD:r.s(this.$d.days,2,"0"),H:this.$d.hours,HH:r.s(this.$d.hours,2,"0"),m:this.$d.minutes,mm:r.s(this.$d.minutes,2,"0"),s:this.$d.seconds,ss:r.s(this.$d.seconds,2,"0"),SSS:r.s(this.$d.milliseconds,3,"0")};return E.replace(W,(function(T,v){return v||String(f[T])}))},x.as=function(h){return this.$ms/w[V(h)]},x.get=function(h){var E=this.$ms,f=V(h);return f==="milliseconds"?E%=1e3:E=f==="weeks"?M(E/w[f]):this.$d[f],E||0},x.add=function(h,E,f){var T;return T=E?h*w[V(E)]:D(h)?h.$ms:N(h,this).$ms,N(this.$ms+T*(f?-1:1),this)},x.subtract=function(h,E){return this.add(h,E,!0)},x.locale=function(h){var E=this.clone();return E.$l=h,E},x.clone=function(){return N(this.$ms,this)},x.humanize=function(h){return s().add(this.$ms,"ms").locale(this.$l).fromNow(!h)},x.valueOf=function(){return this.asMilliseconds()},x.milliseconds=function(){return this.get("milliseconds")},x.asMilliseconds=function(){return this.as("milliseconds")},x.seconds=function(){return this.get("seconds")},x.asSeconds=function(){return this.as("seconds")},x.minutes=function(){return this.get("minutes")},x.asMinutes=function(){return this.as("minutes")},x.hours=function(){return this.get("hours")},x.asHours=function(){return this.as("hours")},x.days=function(){return this.get("days")},x.asDays=function(){return this.as("days")},x.weeks=function(){return this.get("weeks")},x.asWeeks=function(){return this.as("weeks")},x.months=function(){return this.get("months")},x.asMonths=function(){return this.as("months")},x.years=function(){return this.get("years")},x.asYears=function(){return this.as("years")},I})(),H=function(I,x,h){return I.add(x.years()*h,"y").add(x.months()*h,"M").add(x.days()*h,"d").add(x.hours()*h,"h").add(x.minutes()*h,"m").add(x.seconds()*h,"s").add(x.milliseconds()*h,"ms")};return function(I,x,h){s=h,r=h().$utils(),h.duration=function(T,v){var p=h.locale();return N(T,{$l:p},v)},h.isDuration=D;var E=x.prototype.add,f=x.prototype.subtract;x.prototype.add=function(T,v){return D(T)?H(this,T,1):E.bind(this)(T,v)},x.prototype.subtract=function(T,v){return D(T)?H(this,T,-1):f.bind(this)(T,v)}}}))})(Dt)),Dt.exports}var hr=fr();const mr=It(hr);var Lt=(function(){var t=l(function(p,a,d,m){for(d=d||{},m=p.length;m--;d[p[m]]=a);return d},"o"),e=[6,8,10,12,13,14,15,16,17,18,20,21,22,23,24,25,26,27,28,29,30,31,33,35,36,38,40],s=[1,26],r=[1,27],i=[1,28],g=[1,29],y=[1,30],b=[1,31],S=[1,32],L=[1,33],_=[1,34],W=[1,9],w=[1,10],D=[1,11],N=[1,12],V=[1,13],k=[1,14],M=[1,15],P=[1,16],O=[1,19],B=[1,20],H=[1,21],I=[1,22],x=[1,23],h=[1,25],E=[1,35],f={trace:l(function(){},"trace"),yy:{},symbols_:{error:2,start:3,gantt:4,document:5,EOF:6,line:7,SPACE:8,statement:9,NL:10,weekday:11,weekday_monday:12,weekday_tuesday:13,weekday_wednesday:14,weekday_thursday:15,weekday_friday:16,weekday_saturday:17,weekday_sunday:18,weekend:19,weekend_friday:20,weekend_saturday:21,dateFormat:22,inclusiveEndDates:23,topAxis:24,axisFormat:25,tickInterval:26,excludes:27,includes:28,todayMarker:29,title:30,acc_title:31,acc_title_value:32,acc_descr:33,acc_descr_value:34,acc_descr_multiline_value:35,section:36,clickStatement:37,taskTxt:38,taskData:39,click:40,callbackname:41,callbackargs:42,href:43,clickStatementDebug:44,$accept:0,$end:1},terminals_:{2:"error",4:"gantt",6:"EOF",8:"SPACE",10:"NL",12:"weekday_monday",13:"weekday_tuesday",14:"weekday_wednesday",15:"weekday_thursday",16:"weekday_friday",17:"weekday_saturday",18:"weekday_sunday",20:"weekend_friday",21:"weekend_saturday",22:"dateFormat",23:"inclusiveEndDates",24:"topAxis",25:"axisFormat",26:"tickInterval",27:"excludes",28:"includes",29:"todayMarker",30:"title",31:"acc_title",32:"acc_title_value",33:"acc_descr",34:"acc_descr_value",35:"acc_descr_multiline_value",36:"section",38:"taskTxt",39:"taskData",40:"click",41:"callbackname",42:"callbackargs",43:"href"},productions_:[0,[3,3],[5,0],[5,2],[7,2],[7,1],[7,1],[7,1],[11,1],[11,1],[11,1],[11,1],[11,1],[11,1],[11,1],[19,1],[19,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,2],[9,2],[9,1],[9,1],[9,1],[9,2],[37,2],[37,3],[37,3],[37,4],[37,3],[37,4],[37,2],[44,2],[44,3],[44,3],[44,4],[44,3],[44,4],[44,2]],performAction:l(function(a,d,m,u,C,n,$){var o=n.length-1;switch(C){case 1:return n[o-1];case 2:this.$=[];break;case 3:n[o-1].push(n[o]),this.$=n[o-1];break;case 4:case 5:this.$=n[o];break;case 6:case 7:this.$=[];break;case 8:u.setWeekday("monday");break;case 9:u.setWeekday("tuesday");break;case 10:u.setWeekday("wednesday");break;case 11:u.setWeekday("thursday");break;case 12:u.setWeekday("friday");break;case 13:u.setWeekday("saturday");break;case 14:u.setWeekday("sunday");break;case 15:u.setWeekend("friday");break;case 16:u.setWeekend("saturday");break;case 17:u.setDateFormat(n[o].substr(11)),this.$=n[o].substr(11);break;case 18:u.enableInclusiveEndDates(),this.$=n[o].substr(18);break;case 19:u.TopAxis(),this.$=n[o].substr(8);break;case 20:u.setAxisFormat(n[o].substr(11)),this.$=n[o].substr(11);break;case 21:u.setTickInterval(n[o].substr(13)),this.$=n[o].substr(13);break;case 22:u.setExcludes(n[o].substr(9)),this.$=n[o].substr(9);break;case 23:u.setIncludes(n[o].substr(9)),this.$=n[o].substr(9);break;case 24:u.setTodayMarker(n[o].substr(12)),this.$=n[o].substr(12);break;case 27:u.setDiagramTitle(n[o].substr(6)),this.$=n[o].substr(6);break;case 28:this.$=n[o].trim(),u.setAccTitle(this.$);break;case 29:case 30:this.$=n[o].trim(),u.setAccDescription(this.$);break;case 31:u.addSection(n[o].substr(8)),this.$=n[o].substr(8);break;case 33:u.addTask(n[o-1],n[o]),this.$="task";break;case 34:this.$=n[o-1],u.setClickEvent(n[o-1],n[o],null);break;case 35:this.$=n[o-2],u.setClickEvent(n[o-2],n[o-1],n[o]);break;case 36:this.$=n[o-2],u.setClickEvent(n[o-2],n[o-1],null),u.setLink(n[o-2],n[o]);break;case 37:this.$=n[o-3],u.setClickEvent(n[o-3],n[o-2],n[o-1]),u.setLink(n[o-3],n[o]);break;case 38:this.$=n[o-2],u.setClickEvent(n[o-2],n[o],null),u.setLink(n[o-2],n[o-1]);break;case 39:this.$=n[o-3],u.setClickEvent(n[o-3],n[o-1],n[o]),u.setLink(n[o-3],n[o-2]);break;case 40:this.$=n[o-1],u.setLink(n[o-1],n[o]);break;case 41:case 47:this.$=n[o-1]+" "+n[o];break;case 42:case 43:case 45:this.$=n[o-2]+" "+n[o-1]+" "+n[o];break;case 44:case 46:this.$=n[o-3]+" "+n[o-2]+" "+n[o-1]+" "+n[o];break}},"anonymous"),table:[{3:1,4:[1,2]},{1:[3]},t(e,[2,2],{5:3}),{6:[1,4],7:5,8:[1,6],9:7,10:[1,8],11:17,12:s,13:r,14:i,15:g,16:y,17:b,18:S,19:18,20:L,21:_,22:W,23:w,24:D,25:N,26:V,27:k,28:M,29:P,30:O,31:B,33:H,35:I,36:x,37:24,38:h,40:E},t(e,[2,7],{1:[2,1]}),t(e,[2,3]),{9:36,11:17,12:s,13:r,14:i,15:g,16:y,17:b,18:S,19:18,20:L,21:_,22:W,23:w,24:D,25:N,26:V,27:k,28:M,29:P,30:O,31:B,33:H,35:I,36:x,37:24,38:h,40:E},t(e,[2,5]),t(e,[2,6]),t(e,[2,17]),t(e,[2,18]),t(e,[2,19]),t(e,[2,20]),t(e,[2,21]),t(e,[2,22]),t(e,[2,23]),t(e,[2,24]),t(e,[2,25]),t(e,[2,26]),t(e,[2,27]),{32:[1,37]},{34:[1,38]},t(e,[2,30]),t(e,[2,31]),t(e,[2,32]),{39:[1,39]},t(e,[2,8]),t(e,[2,9]),t(e,[2,10]),t(e,[2,11]),t(e,[2,12]),t(e,[2,13]),t(e,[2,14]),t(e,[2,15]),t(e,[2,16]),{41:[1,40],43:[1,41]},t(e,[2,4]),t(e,[2,28]),t(e,[2,29]),t(e,[2,33]),t(e,[2,34],{42:[1,42],43:[1,43]}),t(e,[2,40],{41:[1,44]}),t(e,[2,35],{43:[1,45]}),t(e,[2,36]),t(e,[2,38],{42:[1,46]}),t(e,[2,37]),t(e,[2,39])],defaultActions:{},parseError:l(function(a,d){if(d.recoverable)this.trace(a);else{var m=new Error(a);throw m.hash=d,m}},"parseError"),parse:l(function(a){var d=this,m=[0],u=[],C=[null],n=[],$=this.table,o="",G=0,c=0,Y=2,A=1,R=n.slice.call(arguments,1),F=Object.create(this.lexer),q={yy:{}};for(var z in this.yy)Object.prototype.hasOwnProperty.call(this.yy,z)&&(q.yy[z]=this.yy[z]);F.setInput(a,q.yy),q.yy.lexer=F,q.yy.parser=this,typeof F.yylloc>"u"&&(F.yylloc={});var nt=F.yylloc;n.push(nt);var at=F.options&&F.options.ranges;typeof q.yy.parseError=="function"?this.parseError=q.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function yt(Q){m.length=m.length-2*Q,C.length=C.length-Q,n.length=n.length-Q}l(yt,"popStack");function lt(){var Q;return Q=u.pop()||F.lex()||A,typeof Q!="number"&&(Q instanceof Array&&(u=Q,Q=u.pop()),Q=d.symbols_[Q]||Q),Q}l(lt,"lex");for(var X,K,Z,ot,J={},it,tt,Ut,pt;;){if(K=m[m.length-1],this.defaultActions[K]?Z=this.defaultActions[K]:((X===null||typeof X>"u")&&(X=lt()),Z=$[K]&&$[K][X]),typeof Z>"u"||!Z.length||!Z[0]){var $t="";pt=[];for(it in $[K])this.terminals_[it]&&it>Y&&pt.push("'"+this.terminals_[it]+"'");F.showPosition?$t="Parse error on line "+(G+1)+`:
1
+ import{U as be,aZ as we,Y as _e,b0 as De,V as Se,a_ as Ce,b as l,X as dt,aW as vt,B as Me,L as U,ay as st,z as Ee,P as Ie,r as $e,bh as Ye}from"./B1lrKll_.js";import{g as It}from"./BdWqymET.js";import{t as Ae,d as Fe,m as Le,l as Oe,h as We,g as Zt,p as Qt,u as Pe,q as Ve,i as ze,v as Re,x as Ne,w as He,n as Be,e as Kt,j as Jt,k as te,s as ee,a as re}from"./BEuhalzY.js";function qe(t){return t}var Tt=1,Yt=2,Ft=3,xt=4,se=1e-6;function Ge(t){return"translate("+t+",0)"}function Xe(t){return"translate(0,"+t+")"}function je(t){return e=>+t(e)}function Ue(t,e){return e=Math.max(0,t.bandwidth()-e*2)/2,t.round()&&(e=Math.round(e)),s=>+t(s)+e}function Ze(){return!this.__axis}function de(t,e){var s=[],r=null,i=null,g=6,y=6,b=3,S=typeof window<"u"&&window.devicePixelRatio>1?0:.5,L=t===Tt||t===xt?-1:1,_=t===xt||t===Yt?"x":"y",W=t===Tt||t===Ft?Ge:Xe;function w(D){var N=r??(e.ticks?e.ticks.apply(e,s):e.domain()),V=i??(e.tickFormat?e.tickFormat.apply(e,s):qe),k=Math.max(g,0)+b,M=e.range(),P=+M[0]+S,O=+M[M.length-1]+S,B=(e.bandwidth?Ue:je)(e.copy(),S),H=D.selection?D.selection():D,I=H.selectAll(".domain").data([null]),x=H.selectAll(".tick").data(N,e).order(),h=x.exit(),E=x.enter().append("g").attr("class","tick"),f=x.select("line"),T=x.select("text");I=I.merge(I.enter().insert("path",".tick").attr("class","domain").attr("stroke","currentColor")),x=x.merge(E),f=f.merge(E.append("line").attr("stroke","currentColor").attr(_+"2",L*g)),T=T.merge(E.append("text").attr("fill","currentColor").attr(_,L*k).attr("dy",t===Tt?"0em":t===Ft?"0.71em":"0.32em")),D!==H&&(I=I.transition(D),x=x.transition(D),f=f.transition(D),T=T.transition(D),h=h.transition(D).attr("opacity",se).attr("transform",function(v){return isFinite(v=B(v))?W(v+S):this.getAttribute("transform")}),E.attr("opacity",se).attr("transform",function(v){var p=this.parentNode.__axis;return W((p&&isFinite(p=p(v))?p:B(v))+S)})),h.remove(),I.attr("d",t===xt||t===Yt?y?"M"+L*y+","+P+"H"+S+"V"+O+"H"+L*y:"M"+S+","+P+"V"+O:y?"M"+P+","+L*y+"V"+S+"H"+O+"V"+L*y:"M"+P+","+S+"H"+O),x.attr("opacity",1).attr("transform",function(v){return W(B(v)+S)}),f.attr(_+"2",L*g),T.attr(_,L*k).text(V),H.filter(Ze).attr("fill","none").attr("font-size",10).attr("font-family","sans-serif").attr("text-anchor",t===Yt?"start":t===xt?"end":"middle"),H.each(function(){this.__axis=B})}return w.scale=function(D){return arguments.length?(e=D,w):e},w.ticks=function(){return s=Array.from(arguments),w},w.tickArguments=function(D){return arguments.length?(s=D==null?[]:Array.from(D),w):s.slice()},w.tickValues=function(D){return arguments.length?(r=D==null?null:Array.from(D),w):r&&r.slice()},w.tickFormat=function(D){return arguments.length?(i=D,w):i},w.tickSize=function(D){return arguments.length?(g=y=+D,w):g},w.tickSizeInner=function(D){return arguments.length?(g=+D,w):g},w.tickSizeOuter=function(D){return arguments.length?(y=+D,w):y},w.tickPadding=function(D){return arguments.length?(b=+D,w):b},w.offset=function(D){return arguments.length?(S=+D,w):S},w}function Qe(t){return de(Tt,t)}function Ke(t){return de(Ft,t)}var bt={exports:{}},Je=bt.exports,ne;function tr(){return ne||(ne=1,(function(t,e){(function(s,r){t.exports=r()})(Je,(function(){var s="day";return function(r,i,g){var y=function(L){return L.add(4-L.isoWeekday(),s)},b=i.prototype;b.isoWeekYear=function(){return y(this).year()},b.isoWeek=function(L){if(!this.$utils().u(L))return this.add(7*(L-this.isoWeek()),s);var _,W,w,D,N=y(this),V=(_=this.isoWeekYear(),W=this.$u,w=(W?g.utc:g)().year(_).startOf("year"),D=4-w.isoWeekday(),w.isoWeekday()>4&&(D+=7),w.add(D,s));return N.diff(V,"week")+1},b.isoWeekday=function(L){return this.$utils().u(L)?this.day()||7:this.day(this.day()%7?L:L-7)};var S=b.startOf;b.startOf=function(L,_){var W=this.$utils(),w=!!W.u(_)||_;return W.p(L)==="isoweek"?w?this.date(this.date()-(this.isoWeekday()-1)).startOf("day"):this.date(this.date()-1-(this.isoWeekday()-1)+7).endOf("day"):S.bind(this)(L,_)}}}))})(bt)),bt.exports}var er=tr();const rr=It(er);var wt={exports:{}},sr=wt.exports,ie;function nr(){return ie||(ie=1,(function(t,e){(function(s,r){t.exports=r()})(sr,(function(){var s={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},r=/(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|Q|YYYY|YY?|ww?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,i=/\d/,g=/\d\d/,y=/\d\d?/,b=/\d*[^-_:/,()\s\d]+/,S={},L=function(k){return(k=+k)+(k>68?1900:2e3)},_=function(k){return function(M){this[k]=+M}},W=[/[+-]\d\d:?(\d\d)?|Z/,function(k){(this.zone||(this.zone={})).offset=(function(M){if(!M||M==="Z")return 0;var P=M.match(/([+-]|\d\d)/g),O=60*P[1]+(+P[2]||0);return O===0?0:P[0]==="+"?-O:O})(k)}],w=function(k){var M=S[k];return M&&(M.indexOf?M:M.s.concat(M.f))},D=function(k,M){var P,O=S.meridiem;if(O){for(var B=1;B<=24;B+=1)if(k.indexOf(O(B,0,M))>-1){P=B>12;break}}else P=k===(M?"pm":"PM");return P},N={A:[b,function(k){this.afternoon=D(k,!1)}],a:[b,function(k){this.afternoon=D(k,!0)}],Q:[i,function(k){this.month=3*(k-1)+1}],S:[i,function(k){this.milliseconds=100*+k}],SS:[g,function(k){this.milliseconds=10*+k}],SSS:[/\d{3}/,function(k){this.milliseconds=+k}],s:[y,_("seconds")],ss:[y,_("seconds")],m:[y,_("minutes")],mm:[y,_("minutes")],H:[y,_("hours")],h:[y,_("hours")],HH:[y,_("hours")],hh:[y,_("hours")],D:[y,_("day")],DD:[g,_("day")],Do:[b,function(k){var M=S.ordinal,P=k.match(/\d+/);if(this.day=P[0],M)for(var O=1;O<=31;O+=1)M(O).replace(/\[|\]/g,"")===k&&(this.day=O)}],w:[y,_("week")],ww:[g,_("week")],M:[y,_("month")],MM:[g,_("month")],MMM:[b,function(k){var M=w("months"),P=(w("monthsShort")||M.map((function(O){return O.slice(0,3)}))).indexOf(k)+1;if(P<1)throw new Error;this.month=P%12||P}],MMMM:[b,function(k){var M=w("months").indexOf(k)+1;if(M<1)throw new Error;this.month=M%12||M}],Y:[/[+-]?\d+/,_("year")],YY:[g,function(k){this.year=L(k)}],YYYY:[/\d{4}/,_("year")],Z:W,ZZ:W};function V(k){var M,P;M=k,P=S&&S.formats;for(var O=(k=M.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,(function(f,T,v){var p=v&&v.toUpperCase();return T||P[v]||s[v]||P[p].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,(function(a,d,m){return d||m.slice(1)}))}))).match(r),B=O.length,H=0;H<B;H+=1){var I=O[H],x=N[I],h=x&&x[0],E=x&&x[1];O[H]=E?{regex:h,parser:E}:I.replace(/^\[|\]$/g,"")}return function(f){for(var T={},v=0,p=0;v<B;v+=1){var a=O[v];if(typeof a=="string")p+=a.length;else{var d=a.regex,m=a.parser,u=f.slice(p),C=d.exec(u)[0];m.call(T,C),f=f.replace(C,"")}}return(function(n){var $=n.afternoon;if($!==void 0){var o=n.hours;$?o<12&&(n.hours+=12):o===12&&(n.hours=0),delete n.afternoon}})(T),T}}return function(k,M,P){P.p.customParseFormat=!0,k&&k.parseTwoDigitYear&&(L=k.parseTwoDigitYear);var O=M.prototype,B=O.parse;O.parse=function(H){var I=H.date,x=H.utc,h=H.args;this.$u=x;var E=h[1];if(typeof E=="string"){var f=h[2]===!0,T=h[3]===!0,v=f||T,p=h[2];T&&(p=h[2]),S=this.$locale(),!f&&p&&(S=P.Ls[p]),this.$d=(function(u,C,n,$){try{if(["x","X"].indexOf(C)>-1)return new Date((C==="X"?1e3:1)*u);var o=V(C)(u),G=o.year,c=o.month,Y=o.day,A=o.hours,R=o.minutes,F=o.seconds,q=o.milliseconds,z=o.zone,nt=o.week,at=new Date,yt=Y||(G||c?1:at.getDate()),lt=G||at.getFullYear(),X=0;G&&!c||(X=c>0?c-1:at.getMonth());var K,Z=A||0,ot=R||0,J=F||0,it=q||0;return z?new Date(Date.UTC(lt,X,yt,Z,ot,J,it+60*z.offset*1e3)):n?new Date(Date.UTC(lt,X,yt,Z,ot,J,it)):(K=new Date(lt,X,yt,Z,ot,J,it),nt&&(K=$(K).week(nt).toDate()),K)}catch{return new Date("")}})(I,E,x,P),this.init(),p&&p!==!0&&(this.$L=this.locale(p).$L),v&&I!=this.format(E)&&(this.$d=new Date("")),S={}}else if(E instanceof Array)for(var a=E.length,d=1;d<=a;d+=1){h[1]=E[d-1];var m=P.apply(this,h);if(m.isValid()){this.$d=m.$d,this.$L=m.$L,this.init();break}d===a&&(this.$d=new Date(""))}else B.call(this,H)}}}))})(wt)),wt.exports}var ir=nr();const ar=It(ir);var _t={exports:{}},or=_t.exports,ae;function cr(){return ae||(ae=1,(function(t,e){(function(s,r){t.exports=r()})(or,(function(){return function(s,r){var i=r.prototype,g=i.format;i.format=function(y){var b=this,S=this.$locale();if(!this.isValid())return g.bind(this)(y);var L=this.$utils(),_=(y||"YYYY-MM-DDTHH:mm:ssZ").replace(/\[([^\]]+)]|Q|wo|ww|w|WW|W|zzz|z|gggg|GGGG|Do|X|x|k{1,2}|S/g,(function(W){switch(W){case"Q":return Math.ceil((b.$M+1)/3);case"Do":return S.ordinal(b.$D);case"gggg":return b.weekYear();case"GGGG":return b.isoWeekYear();case"wo":return S.ordinal(b.week(),"W");case"w":case"ww":return L.s(b.week(),W==="w"?1:2,"0");case"W":case"WW":return L.s(b.isoWeek(),W==="W"?1:2,"0");case"k":case"kk":return L.s(String(b.$H===0?24:b.$H),W==="k"?1:2,"0");case"X":return Math.floor(b.$d.getTime()/1e3);case"x":return b.$d.getTime();case"z":return"["+b.offsetName()+"]";case"zzz":return"["+b.offsetName("long")+"]";default:return W}}));return g.bind(this)(_)}}}))})(_t)),_t.exports}var lr=cr();const ur=It(lr);var Dt={exports:{}},dr=Dt.exports,oe;function fr(){return oe||(oe=1,(function(t,e){(function(s,r){t.exports=r()})(dr,(function(){var s,r,i=1e3,g=6e4,y=36e5,b=864e5,S=31536e6,L=2628e6,_=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/,W=/\[([^\]]+)]|YYYY|YY|Y|M{1,2}|D{1,2}|H{1,2}|m{1,2}|s{1,2}|SSS/g,w={years:S,months:L,days:b,hours:y,minutes:g,seconds:i,milliseconds:1,weeks:6048e5},D=function(I){return I instanceof B},N=function(I,x,h){return new B(I,h,x.$l)},V=function(I){return r.p(I)+"s"},k=function(I){return I<0},M=function(I){return k(I)?Math.ceil(I):Math.floor(I)},P=function(I){return Math.abs(I)},O=function(I,x){return I?k(I)?{negative:!0,format:""+P(I)+x}:{negative:!1,format:""+I+x}:{negative:!1,format:""}},B=(function(){function I(h,E,f){var T=this;if(this.$d={},this.$l=f,h===void 0&&(this.$ms=0,this.parseFromMilliseconds()),E)return N(h*w[V(E)],this);if(typeof h=="number")return this.$ms=h,this.parseFromMilliseconds(),this;if(typeof h=="object")return Object.keys(h).forEach((function(a){T.$d[V(a)]=h[a]})),this.calMilliseconds(),this;if(typeof h=="string"){var v=h.match(_);if(v){var p=v.slice(2).map((function(a){return a!=null?Number(a):0}));return this.$d.years=p[0],this.$d.months=p[1],this.$d.weeks=p[2],this.$d.days=p[3],this.$d.hours=p[4],this.$d.minutes=p[5],this.$d.seconds=p[6],this.calMilliseconds(),this}}return this}var x=I.prototype;return x.calMilliseconds=function(){var h=this;this.$ms=Object.keys(this.$d).reduce((function(E,f){return E+(h.$d[f]||0)*w[f]}),0)},x.parseFromMilliseconds=function(){var h=this.$ms;this.$d.years=M(h/S),h%=S,this.$d.months=M(h/L),h%=L,this.$d.days=M(h/b),h%=b,this.$d.hours=M(h/y),h%=y,this.$d.minutes=M(h/g),h%=g,this.$d.seconds=M(h/i),h%=i,this.$d.milliseconds=h},x.toISOString=function(){var h=O(this.$d.years,"Y"),E=O(this.$d.months,"M"),f=+this.$d.days||0;this.$d.weeks&&(f+=7*this.$d.weeks);var T=O(f,"D"),v=O(this.$d.hours,"H"),p=O(this.$d.minutes,"M"),a=this.$d.seconds||0;this.$d.milliseconds&&(a+=this.$d.milliseconds/1e3,a=Math.round(1e3*a)/1e3);var d=O(a,"S"),m=h.negative||E.negative||T.negative||v.negative||p.negative||d.negative,u=v.format||p.format||d.format?"T":"",C=(m?"-":"")+"P"+h.format+E.format+T.format+u+v.format+p.format+d.format;return C==="P"||C==="-P"?"P0D":C},x.toJSON=function(){return this.toISOString()},x.format=function(h){var E=h||"YYYY-MM-DDTHH:mm:ss",f={Y:this.$d.years,YY:r.s(this.$d.years,2,"0"),YYYY:r.s(this.$d.years,4,"0"),M:this.$d.months,MM:r.s(this.$d.months,2,"0"),D:this.$d.days,DD:r.s(this.$d.days,2,"0"),H:this.$d.hours,HH:r.s(this.$d.hours,2,"0"),m:this.$d.minutes,mm:r.s(this.$d.minutes,2,"0"),s:this.$d.seconds,ss:r.s(this.$d.seconds,2,"0"),SSS:r.s(this.$d.milliseconds,3,"0")};return E.replace(W,(function(T,v){return v||String(f[T])}))},x.as=function(h){return this.$ms/w[V(h)]},x.get=function(h){var E=this.$ms,f=V(h);return f==="milliseconds"?E%=1e3:E=f==="weeks"?M(E/w[f]):this.$d[f],E||0},x.add=function(h,E,f){var T;return T=E?h*w[V(E)]:D(h)?h.$ms:N(h,this).$ms,N(this.$ms+T*(f?-1:1),this)},x.subtract=function(h,E){return this.add(h,E,!0)},x.locale=function(h){var E=this.clone();return E.$l=h,E},x.clone=function(){return N(this.$ms,this)},x.humanize=function(h){return s().add(this.$ms,"ms").locale(this.$l).fromNow(!h)},x.valueOf=function(){return this.asMilliseconds()},x.milliseconds=function(){return this.get("milliseconds")},x.asMilliseconds=function(){return this.as("milliseconds")},x.seconds=function(){return this.get("seconds")},x.asSeconds=function(){return this.as("seconds")},x.minutes=function(){return this.get("minutes")},x.asMinutes=function(){return this.as("minutes")},x.hours=function(){return this.get("hours")},x.asHours=function(){return this.as("hours")},x.days=function(){return this.get("days")},x.asDays=function(){return this.as("days")},x.weeks=function(){return this.get("weeks")},x.asWeeks=function(){return this.as("weeks")},x.months=function(){return this.get("months")},x.asMonths=function(){return this.as("months")},x.years=function(){return this.get("years")},x.asYears=function(){return this.as("years")},I})(),H=function(I,x,h){return I.add(x.years()*h,"y").add(x.months()*h,"M").add(x.days()*h,"d").add(x.hours()*h,"h").add(x.minutes()*h,"m").add(x.seconds()*h,"s").add(x.milliseconds()*h,"ms")};return function(I,x,h){s=h,r=h().$utils(),h.duration=function(T,v){var p=h.locale();return N(T,{$l:p},v)},h.isDuration=D;var E=x.prototype.add,f=x.prototype.subtract;x.prototype.add=function(T,v){return D(T)?H(this,T,1):E.bind(this)(T,v)},x.prototype.subtract=function(T,v){return D(T)?H(this,T,-1):f.bind(this)(T,v)}}}))})(Dt)),Dt.exports}var hr=fr();const mr=It(hr);var Lt=(function(){var t=l(function(p,a,d,m){for(d=d||{},m=p.length;m--;d[p[m]]=a);return d},"o"),e=[6,8,10,12,13,14,15,16,17,18,20,21,22,23,24,25,26,27,28,29,30,31,33,35,36,38,40],s=[1,26],r=[1,27],i=[1,28],g=[1,29],y=[1,30],b=[1,31],S=[1,32],L=[1,33],_=[1,34],W=[1,9],w=[1,10],D=[1,11],N=[1,12],V=[1,13],k=[1,14],M=[1,15],P=[1,16],O=[1,19],B=[1,20],H=[1,21],I=[1,22],x=[1,23],h=[1,25],E=[1,35],f={trace:l(function(){},"trace"),yy:{},symbols_:{error:2,start:3,gantt:4,document:5,EOF:6,line:7,SPACE:8,statement:9,NL:10,weekday:11,weekday_monday:12,weekday_tuesday:13,weekday_wednesday:14,weekday_thursday:15,weekday_friday:16,weekday_saturday:17,weekday_sunday:18,weekend:19,weekend_friday:20,weekend_saturday:21,dateFormat:22,inclusiveEndDates:23,topAxis:24,axisFormat:25,tickInterval:26,excludes:27,includes:28,todayMarker:29,title:30,acc_title:31,acc_title_value:32,acc_descr:33,acc_descr_value:34,acc_descr_multiline_value:35,section:36,clickStatement:37,taskTxt:38,taskData:39,click:40,callbackname:41,callbackargs:42,href:43,clickStatementDebug:44,$accept:0,$end:1},terminals_:{2:"error",4:"gantt",6:"EOF",8:"SPACE",10:"NL",12:"weekday_monday",13:"weekday_tuesday",14:"weekday_wednesday",15:"weekday_thursday",16:"weekday_friday",17:"weekday_saturday",18:"weekday_sunday",20:"weekend_friday",21:"weekend_saturday",22:"dateFormat",23:"inclusiveEndDates",24:"topAxis",25:"axisFormat",26:"tickInterval",27:"excludes",28:"includes",29:"todayMarker",30:"title",31:"acc_title",32:"acc_title_value",33:"acc_descr",34:"acc_descr_value",35:"acc_descr_multiline_value",36:"section",38:"taskTxt",39:"taskData",40:"click",41:"callbackname",42:"callbackargs",43:"href"},productions_:[0,[3,3],[5,0],[5,2],[7,2],[7,1],[7,1],[7,1],[11,1],[11,1],[11,1],[11,1],[11,1],[11,1],[11,1],[19,1],[19,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,2],[9,2],[9,1],[9,1],[9,1],[9,2],[37,2],[37,3],[37,3],[37,4],[37,3],[37,4],[37,2],[44,2],[44,3],[44,3],[44,4],[44,3],[44,4],[44,2]],performAction:l(function(a,d,m,u,C,n,$){var o=n.length-1;switch(C){case 1:return n[o-1];case 2:this.$=[];break;case 3:n[o-1].push(n[o]),this.$=n[o-1];break;case 4:case 5:this.$=n[o];break;case 6:case 7:this.$=[];break;case 8:u.setWeekday("monday");break;case 9:u.setWeekday("tuesday");break;case 10:u.setWeekday("wednesday");break;case 11:u.setWeekday("thursday");break;case 12:u.setWeekday("friday");break;case 13:u.setWeekday("saturday");break;case 14:u.setWeekday("sunday");break;case 15:u.setWeekend("friday");break;case 16:u.setWeekend("saturday");break;case 17:u.setDateFormat(n[o].substr(11)),this.$=n[o].substr(11);break;case 18:u.enableInclusiveEndDates(),this.$=n[o].substr(18);break;case 19:u.TopAxis(),this.$=n[o].substr(8);break;case 20:u.setAxisFormat(n[o].substr(11)),this.$=n[o].substr(11);break;case 21:u.setTickInterval(n[o].substr(13)),this.$=n[o].substr(13);break;case 22:u.setExcludes(n[o].substr(9)),this.$=n[o].substr(9);break;case 23:u.setIncludes(n[o].substr(9)),this.$=n[o].substr(9);break;case 24:u.setTodayMarker(n[o].substr(12)),this.$=n[o].substr(12);break;case 27:u.setDiagramTitle(n[o].substr(6)),this.$=n[o].substr(6);break;case 28:this.$=n[o].trim(),u.setAccTitle(this.$);break;case 29:case 30:this.$=n[o].trim(),u.setAccDescription(this.$);break;case 31:u.addSection(n[o].substr(8)),this.$=n[o].substr(8);break;case 33:u.addTask(n[o-1],n[o]),this.$="task";break;case 34:this.$=n[o-1],u.setClickEvent(n[o-1],n[o],null);break;case 35:this.$=n[o-2],u.setClickEvent(n[o-2],n[o-1],n[o]);break;case 36:this.$=n[o-2],u.setClickEvent(n[o-2],n[o-1],null),u.setLink(n[o-2],n[o]);break;case 37:this.$=n[o-3],u.setClickEvent(n[o-3],n[o-2],n[o-1]),u.setLink(n[o-3],n[o]);break;case 38:this.$=n[o-2],u.setClickEvent(n[o-2],n[o],null),u.setLink(n[o-2],n[o-1]);break;case 39:this.$=n[o-3],u.setClickEvent(n[o-3],n[o-1],n[o]),u.setLink(n[o-3],n[o-2]);break;case 40:this.$=n[o-1],u.setLink(n[o-1],n[o]);break;case 41:case 47:this.$=n[o-1]+" "+n[o];break;case 42:case 43:case 45:this.$=n[o-2]+" "+n[o-1]+" "+n[o];break;case 44:case 46:this.$=n[o-3]+" "+n[o-2]+" "+n[o-1]+" "+n[o];break}},"anonymous"),table:[{3:1,4:[1,2]},{1:[3]},t(e,[2,2],{5:3}),{6:[1,4],7:5,8:[1,6],9:7,10:[1,8],11:17,12:s,13:r,14:i,15:g,16:y,17:b,18:S,19:18,20:L,21:_,22:W,23:w,24:D,25:N,26:V,27:k,28:M,29:P,30:O,31:B,33:H,35:I,36:x,37:24,38:h,40:E},t(e,[2,7],{1:[2,1]}),t(e,[2,3]),{9:36,11:17,12:s,13:r,14:i,15:g,16:y,17:b,18:S,19:18,20:L,21:_,22:W,23:w,24:D,25:N,26:V,27:k,28:M,29:P,30:O,31:B,33:H,35:I,36:x,37:24,38:h,40:E},t(e,[2,5]),t(e,[2,6]),t(e,[2,17]),t(e,[2,18]),t(e,[2,19]),t(e,[2,20]),t(e,[2,21]),t(e,[2,22]),t(e,[2,23]),t(e,[2,24]),t(e,[2,25]),t(e,[2,26]),t(e,[2,27]),{32:[1,37]},{34:[1,38]},t(e,[2,30]),t(e,[2,31]),t(e,[2,32]),{39:[1,39]},t(e,[2,8]),t(e,[2,9]),t(e,[2,10]),t(e,[2,11]),t(e,[2,12]),t(e,[2,13]),t(e,[2,14]),t(e,[2,15]),t(e,[2,16]),{41:[1,40],43:[1,41]},t(e,[2,4]),t(e,[2,28]),t(e,[2,29]),t(e,[2,33]),t(e,[2,34],{42:[1,42],43:[1,43]}),t(e,[2,40],{41:[1,44]}),t(e,[2,35],{43:[1,45]}),t(e,[2,36]),t(e,[2,38],{42:[1,46]}),t(e,[2,37]),t(e,[2,39])],defaultActions:{},parseError:l(function(a,d){if(d.recoverable)this.trace(a);else{var m=new Error(a);throw m.hash=d,m}},"parseError"),parse:l(function(a){var d=this,m=[0],u=[],C=[null],n=[],$=this.table,o="",G=0,c=0,Y=2,A=1,R=n.slice.call(arguments,1),F=Object.create(this.lexer),q={yy:{}};for(var z in this.yy)Object.prototype.hasOwnProperty.call(this.yy,z)&&(q.yy[z]=this.yy[z]);F.setInput(a,q.yy),q.yy.lexer=F,q.yy.parser=this,typeof F.yylloc>"u"&&(F.yylloc={});var nt=F.yylloc;n.push(nt);var at=F.options&&F.options.ranges;typeof q.yy.parseError=="function"?this.parseError=q.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function yt(Q){m.length=m.length-2*Q,C.length=C.length-Q,n.length=n.length-Q}l(yt,"popStack");function lt(){var Q;return Q=u.pop()||F.lex()||A,typeof Q!="number"&&(Q instanceof Array&&(u=Q,Q=u.pop()),Q=d.symbols_[Q]||Q),Q}l(lt,"lex");for(var X,K,Z,ot,J={},it,tt,Ut,pt;;){if(K=m[m.length-1],this.defaultActions[K]?Z=this.defaultActions[K]:((X===null||typeof X>"u")&&(X=lt()),Z=$[K]&&$[K][X]),typeof Z>"u"||!Z.length||!Z[0]){var $t="";pt=[];for(it in $[K])this.terminals_[it]&&it>Y&&pt.push("'"+this.terminals_[it]+"'");F.showPosition?$t="Parse error on line "+(G+1)+`:
2
2
  `+F.showPosition()+`
3
3
  Expecting `+pt.join(", ")+", got '"+(this.terminals_[X]||X)+"'":$t="Parse error on line "+(G+1)+": Unexpected "+(X==A?"end of input":"'"+(this.terminals_[X]||X)+"'"),this.parseError($t,{text:F.match,token:this.terminals_[X]||X,line:F.yylineno,loc:nt,expected:pt})}if(Z[0]instanceof Array&&Z.length>1)throw new Error("Parse Error: multiple actions possible at state: "+K+", token: "+X);switch(Z[0]){case 1:m.push(X),C.push(F.yytext),n.push(F.yylloc),m.push(Z[1]),X=null,c=F.yyleng,o=F.yytext,G=F.yylineno,nt=F.yylloc;break;case 2:if(tt=this.productions_[Z[1]][1],J.$=C[C.length-tt],J._$={first_line:n[n.length-(tt||1)].first_line,last_line:n[n.length-1].last_line,first_column:n[n.length-(tt||1)].first_column,last_column:n[n.length-1].last_column},at&&(J._$.range=[n[n.length-(tt||1)].range[0],n[n.length-1].range[1]]),ot=this.performAction.apply(J,[o,c,G,q.yy,Z[1],C,n].concat(R)),typeof ot<"u")return ot;tt&&(m=m.slice(0,-1*tt*2),C=C.slice(0,-1*tt),n=n.slice(0,-1*tt)),m.push(this.productions_[Z[1]][0]),C.push(J.$),n.push(J._$),Ut=$[m[m.length-2]][m[m.length-1]],m.push(Ut);break;case 3:return!0}}return!0},"parse")},T=(function(){var p={EOF:1,parseError:l(function(d,m){if(this.yy.parser)this.yy.parser.parseError(d,m);else throw new Error(d)},"parseError"),setInput:l(function(a,d){return this.yy=d||this.yy||{},this._input=a,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},"setInput"),input:l(function(){var a=this._input[0];this.yytext+=a,this.yyleng++,this.offset++,this.match+=a,this.matched+=a;var d=a.match(/(?:\r\n?|\n).*/g);return d?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),a},"input"),unput:l(function(a){var d=a.length,m=a.split(/(?:\r\n?|\n)/g);this._input=a+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-d),this.offset-=d;var u=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),m.length-1&&(this.yylineno-=m.length-1);var C=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:m?(m.length===u.length?this.yylloc.first_column:0)+u[u.length-m.length].length-m[0].length:this.yylloc.first_column-d},this.options.ranges&&(this.yylloc.range=[C[0],C[0]+this.yyleng-d]),this.yyleng=this.yytext.length,this},"unput"),more:l(function(){return this._more=!0,this},"more"),reject:l(function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).
4
4
  `+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},"reject"),less:l(function(a){this.unput(this.match.slice(a))},"less"),pastInput:l(function(){var a=this.matched.substr(0,this.matched.length-this.match.length);return(a.length>20?"...":"")+a.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:l(function(){var a=this.match;return a.length<20&&(a+=this._input.substr(0,20-a.length)),(a.substr(0,20)+(a.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:l(function(){var a=this.pastInput(),d=new Array(a.length+1).join("-");return a+this.upcomingInput()+`
@@ -1 +1 @@
1
- var Vt=Object.defineProperty;var yt=e=>{throw TypeError(e)};var jt=(e,i,s)=>i in e?Vt(e,i,{enumerable:!0,configurable:!0,writable:!0,value:s}):e[i]=s;var J=(e,i,s)=>jt(e,typeof i!="symbol"?i+"":i,s),bt=(e,i,s)=>i.has(e)||yt("Cannot "+s);var t=(e,i,s)=>(bt(e,i,"read from private field"),s?s.call(e):i.get(e)),g=(e,i,s)=>i.has(e)?yt("Cannot add the same private member more than once"):i instanceof WeakSet?i.add(e):i.set(e,s),a=(e,i,s,n)=>(bt(e,i,"write to private field"),n?n.call(e,s):i.set(e,s),s),o=(e,i,s)=>(bt(e,i,"access private method"),s);var vt=(e,i,s,n)=>({set _(r){a(e,i,r,s)},get _(){return t(e,i,n)}});import{_ as wt}from"./DWvCfaBg.js";import{m as xt,A as qt,r as Ht,Q as Nt,aX as Gt,R as Jt}from"./BqrahRdk.js";import{B as Ft,D as Kt}from"./TyVpf8MX.js";import{I as F,E as Ct,b as Qt,a as Ut}from"./DICr2Lvd.js";function Xt(e,i){for(const s of Array.isArray(e)?e:[e]){let n=xt.get(s.name);n==null&&(n=s,xt.set(s.name,n)),i.attachLanguages([n]),qt.add(n.name)}}function Zt(e,i){let s;return function(...n){clearTimeout(s),s=setTimeout(()=>e.apply(this,n),i)}}const Dt=0;let Wt=0;var H,T,P,Q,L,st,it,C,U,nt,u,D,_,A,O,b,v,z,dt,E,B,X,N,R,Z,Tt,ft,h,K,ut,zt,Et,Y,pt,It,ct,tt,Ot,gt,et,Bt,Pt,At,Yt=(At=class{constructor(e,i,s){g(this,h);J(this,"backend");g(this,H);g(this,T);g(this,P);g(this,Q);g(this,L);g(this,st);g(this,it);g(this,C);g(this,U);g(this,nt,!1);g(this,u,[F]);g(this,D,[]);g(this,_,0);g(this,A,[]);g(this,O,-1);g(this,b,!0);g(this,v,!1);g(this,z,0);g(this,dt,++Wt);g(this,E,-1);g(this,B,-1);g(this,X);g(this,N,0);g(this,R,[]);g(this,Z,!1);g(this,Tt,Zt(async e=>{if(t(this,nt))return;const{startingLine:i=0,totalLines:s=1/0}=e??{},n=Math.min(s===1/0?1/0:i+s,t(this,L).lineCount);if(t(this,T)==null&&!Lt(t(this,L).languageId)){if(await this.backend?.loadLanguages([t(this,L).languageId]),t(this,nt))return;a(this,T,t(this,H).getLanguage(t(this,L).languageId))}o(this,h,K).call(this),o(this,h,It).call(this,n)},500));g(this,ft,({data:e})=>{if(typeof e!="object"||e===null)return;const{type:i,tokenizerId:s,jobId:n}=e;i==="tokenize"&&s===t(this,dt)&&typeof n=="number"&&n===t(this,z)&&(t(this,E)>=0?o(this,h,Bt).call(this,n):o(this,h,Pt).call(this,n))});this.backend=s,a(this,H,e),a(this,L,i.textDocument),a(this,P,i.theme),a(this,Q,[]),a(this,st,i.tokenizeMaxLineLength??1e3),a(this,it,i.onDeferTokenize),a(this,C,i.matchBrackets!==!1),a(this,U,i.__debug??!1),o(this,h,ut).call(this),o(this,h,K).call(this)}getStringCommentRegexpRangesInLine(e){if(!t(this,C)||e<0||e>=t(this,L).lineCount||(o(this,h,ut).call(this),t(this,T)==null))return null;if(t(this,R)[e]===void 0){o(this,h,et).call(this,e);const i=t(this,u)[e]??F,s=o(this,h,ct).call(this,e,i);t(this,u)[e+1]=s.state}return t(this,R)[e]??null}setTheme(e){t(this,P)!==e&&(a(this,P,e),o(this,h,K).call(this),this.stopBackgroundTokenize(),a(this,u,[F]),a(this,D,[]),a(this,_,0),a(this,A,[]),t(this,T)!=null&&t(this,L).lineCount>0&&o(this,h,pt).call(this,0))}dispose(){a(this,nt,!0),this.stopBackgroundTokenize(),o(this,h,Et).call(this)}tokenize(e,i,s=!1){if(o(this,h,ut).call(this),o(this,h,K).call(this),t(this,T)==null&&!Lt(t(this,L).languageId))throw new Error(`Grammar for language "${t(this,L).languageId}" not loaded`);const{lineCount:n}=t(this,L),{startingLine:r=0,totalLines:l=1/0}=i??{},d=l===1/0?n:Math.min(r+l,n),c=e.startLine,f=Math.max(r,c),I=i!=null&&l!==1/0&&e.lineDelta>0&&c<d&&e.endLine>=d,m=e.lineDelta===0&&(e.changedLineChanges?.every(([,,p])=>p===0)??!0);t(this,C)&&!m&&(t(this,R).length=Math.min(t(this,R).length,e.startLine));const M=s&&e.lineDelta!==0&&c>=r,S=m||i==null||c>=f,y=e.changedLineRanges??[[c,e.endLine]];a(this,D,[]),a(this,_,0),a(this,A,[]);let V=-1;if(c<f)for(const[p,w]of y)p<f&&(V=Math.max(V,Math.min(w,f-1)));const mt=V>=c&&(m||e.lineDelta<0);m?o(this,h,et).call(this,c):(o(this,h,Ot).call(this,e),(i==null||c>=f)&&o(this,h,et).call(this,f));let j=0,St=y[j][1],ht,Rt=0,k=m?y[j][0]:f,rt=!1;const Mt=new Map,W=mt?new Map:void 0;if(W!=null&&!m){const p=Math.min(V+1,f,d);if(p>c){o(this,h,et).call(this,p);let w=c,ot=t(this,u)[w]??F;for(;w<p;w++){const x=o(this,h,ct).call(this,w,ot);ot=x.state,W.set(w,x.resolvedTokens)}t(this,u)[p]=ot}}let q=t(this,u)[k]??F;for(;k<d;){const p=m?t(this,u)[k+1]:M?o(this,h,gt).call(this,k+1):void 0;S&&(t(this,u)[k]=q);const{resolvedTokens:w,state:ot}=o(this,h,ct).call(this,k,q);if(q=ot,k>=f?Mt.set(k,w):W?.set(k,w),S&&(t(this,u)[k+1]=q),rt=k>=St&&(m||M)&&p!=null&&q.equals(p),rt){j++;const x=y[j];if(x==null)break;if(x[0]>=d){ht=x[0],Rt=j;break}let lt=t(this,u)[x[0]];if(M)for(let kt=k+2;kt<=x[0]&&(lt=o(this,h,gt).call(this,kt),lt!=null);kt++)t(this,u)[kt]=lt;lt==null?(St=x[1],k++):(k=x[0],q=lt,St=x[1]),rt=!1;continue}k++}if(S&&(k<d?t(this,u)[k+1]=q:t(this,u)[k]=q),rt&&M&&ht==null){for(let p=k+2;p<=n;p++){const w=o(this,h,gt).call(this,p);if(w==null)break;t(this,u)[p]=w}a(this,D,[]),a(this,_,0),a(this,A,[])}if(W!=null&&W.size>0&&t(this,it).call(this,W),ht!=null)t(this,C)&&m&&(t(this,R).length=Math.min(t(this,R).length,ht)),o(this,h,pt).call(this,ht,y,Rt);else if(!rt&&k<n){const p=I&&c>=f?d:c<f&&!m?c:k;t(this,C)&&m&&(t(this,R).length=Math.min(t(this,R).length,p)),o(this,h,pt).call(this,p,y,j)}return Mt}prebuildStateStack(e){o(this,h,ut).call(this),t(this,Tt).call(this,e)}stopBackgroundTokenize(){a(this,B,-1),!t(this,b)&&(a(this,b,!0),a(this,v,!1),a(this,O,-1),a(this,E,-1),a(this,X,void 0),a(this,N,0),a(this,D,[]),a(this,_,0),a(this,A,[]),o(this,h,Et).call(this))}pauseBackgroundTokenize(){t(this,b)||t(this,v)||(t(this,U)&&console.log("[diffs/editor] background tokenization paused",{jobId:t(this,z)}),a(this,v,!0))}resumeBackgroundTokenize(){t(this,b)||!t(this,v)||t(this,T)==null||t(this,O)<0||(t(this,U)&&console.log("[diffs/editor] background tokenization resumed",{jobId:t(this,z)}),a(this,v,!1),o(this,h,Y).call(this,t(this,z)))}},H=new WeakMap,T=new WeakMap,P=new WeakMap,Q=new WeakMap,L=new WeakMap,st=new WeakMap,it=new WeakMap,C=new WeakMap,U=new WeakMap,nt=new WeakMap,u=new WeakMap,D=new WeakMap,_=new WeakMap,A=new WeakMap,O=new WeakMap,b=new WeakMap,v=new WeakMap,z=new WeakMap,dt=new WeakMap,E=new WeakMap,B=new WeakMap,X=new WeakMap,N=new WeakMap,R=new WeakMap,Z=new WeakMap,Tt=new WeakMap,ft=new WeakMap,h=new WeakSet,K=function(){if(t(this,P)==="")return;this.backend?.getTheme(t(this,P));const{colorMap:e}=t(this,H).setTheme(t(this,P));a(this,Q,e)},ut=function(){t(this,T)==null&&!Lt(t(this,L).languageId)&&t(this,H).getLoadedLanguages().includes(t(this,L).languageId)&&a(this,T,t(this,H).getLanguage(t(this,L).languageId))},zt=function(){t(this,Z)||(globalThis.addEventListener("message",t(this,ft)),a(this,Z,!0))},Et=function(){t(this,Z)&&(globalThis.removeEventListener("message",t(this,ft)),a(this,Z,!1))},Y=function(e){globalThis.postMessage({type:"tokenize",tokenizerId:t(this,dt),jobId:e})},pt=function(e,i,s=0){if(Lt(t(this,L).languageId))return;const n=++vt(this,z)._;t(this,U)&&console.log("[diffs/editor] background tokenization scheduled",{jobId:n,startLine:e,changedLineRanges:i,changedRangeIndex:s}),a(this,b,!1),a(this,v,!1),a(this,O,e),t(this,E)>=0&&a(this,B,Math.max(t(this,B),t(this,E))),a(this,E,-1),a(this,X,i),a(this,N,s),o(this,h,zt).call(this),o(this,h,Y).call(this,n)},It=function(e){if(t(this,T)==null||t(this,u).length>e)return;if(!t(this,b)){t(this,E)>=0?a(this,E,Math.max(t(this,E),e)):a(this,B,Math.max(t(this,B),e));return}const i=++vt(this,z)._;a(this,b,!1),a(this,v,!1),a(this,O,t(this,u).length-1),a(this,E,e),a(this,B,-1),a(this,X,void 0),a(this,N,0),o(this,h,zt).call(this),o(this,h,Y).call(this,i)},ct=function(e,i){const s=t(this,L).getLineText(e);if(s.length>=t(this,st))return console.warn(`[diffs] Line(${e}) too long to tokenize: ${s.length}`),o(this,h,tt).call(this,e,null),{resolvedTokens:[[0,"",s]],state:i};if(t(this,T)==null||s===""||s.trim()==="")return o(this,h,tt).call(this,e,null),{resolvedTokens:[[0,"",s]],state:i};const n=_t(t(this,T),t(this,Q),s,i,Dt,t(this,C));return o(this,h,tt).call(this,e,n.bracketIgnoredRanges),{resolvedTokens:n.resolvedTokens,state:n.ruleStack}},tt=function(e,i){t(this,C)&&(t(this,R)[e]=i)},Ot=function(e){const i=e.changedLineChanges??[[e.startLine,e.endLine,e.lineDelta]],s=e.startLine+1;s<=t(this,u).length-s?(a(this,D,t(this,u)),a(this,_,0),a(this,u,t(this,u).slice(0,s))):(a(this,_,s),a(this,D,t(this,u).slice(s)),t(this,u).length=Math.min(t(this,u).length,s)),a(this,A,i)},gt=function(e){let i=e;for(let s=t(this,A).length-1;s>=0;s--){const[n,r,l]=t(this,A)[s];if(l!==0){if(i>r)i-=l;else if(i>n)return t(this,u)[e]}}return t(this,D)[i-t(this,_)]??t(this,u)[e]},et=function(e,i){const s=Math.min(Math.max(0,e),t(this,L).lineCount);if(t(this,u).length>s||t(this,T)==null)return!0;const n=i==null?0:performance.now();let r=t(this,u).length-1,l=t(this,u)[r]??F;for(;r<s;){t(this,u)[r]=l;const d=t(this,L).getLineText(r);if(d.length<t(this,st)&&d!==""&&d.trim()!==""){const c=_t(t(this,T),t(this,Q),d,l,Dt,t(this,C),!1);o(this,h,tt).call(this,r,c.bracketIgnoredRanges),l=c.ruleStack}else o(this,h,tt).call(this,r,null);if(r++,t(this,u)[r]=l,i!=null&&performance.now()-n>i)break}return r>=s},Bt=function(e){if(t(this,b)||t(this,v)||t(this,T)==null||e!==t(this,z))return;o(this,h,K).call(this);const i=o(this,h,et).call(this,t(this,E),1);if(!(t(this,b)||t(this,v)||e!==t(this,z))){if(i){this.stopBackgroundTokenize();return}a(this,O,t(this,u).length-1),o(this,h,Y).call(this,e)}},Pt=function(e){if(t(this,b)||t(this,v)||t(this,T)==null||e!==t(this,z))return;o(this,h,K).call(this);const i=performance.now(),s=new Map,n=t(this,L).lineCount,r=t(this,X);let l=t(this,O),d=t(this,u)[l]??F,c=!1,f=t(this,N),I=r?.[f]?.[1];for(;l<n;){t(this,u)[l]=d;const m=I!=null?o(this,h,gt).call(this,l+1):void 0,M=o(this,h,ct).call(this,l,d);if(s.set(l,M.resolvedTokens),d=M.state,t(this,u)[l+1]=d,c=I!=null&&l>=I&&m!=null&&d.equals(m),l++,c){f++;const S=r?.[f];if(S==null)break;if(I=S[1],t(this,u)[S[0]]==null)c=!1;else{l=S[0],d=t(this,u)[l]??d,c=!1;continue}}if(performance.now()-i>1)break}if(t(this,it).call(this,s),!(t(this,b)||t(this,v)||e!==t(this,z))){if(c||l>=n){const m=t(this,B);this.stopBackgroundTokenize(),m>=0&&o(this,h,It).call(this,m);return}a(this,O,l),a(this,N,f),o(this,h,Y).call(this,e)}},At);function _t(e,i,s,n,r,l=!0,d=!0){const c=e.tokenizeLine2(s,n,r);c.stoppedEarly&&console.warn(`[diffs] Time limit reached when tokenizing line: ${s.substring(0,100)}`);const f=c.tokens,I=f.length/2,m=[],M=[];if(!d&&!l)return{ruleStack:c.ruleStack,resolvedTokens:m,bracketIgnoredRanges:M};for(let S=0;S<I;S++){const y=f[2*S],V=S+1<I?f[2*S+2]:s.length;if(y===V)continue;const mt=f[2*S+1];if(d){const j=Ct.getForeground(mt);m.push([y,i[j],s.slice(y,V)])}l&&Ct.getTokenType(mt)>0&&M.push([y,V])}return{ruleStack:c.ruleStack,resolvedTokens:m,bracketIgnoredRanges:M}}function Lt(e){return e==="text"||e==="ansi"}var $,G,at,te=(at=class extends Ft{constructor(s,n){super();J(this,"highlighter");J(this,"options");g(this,$,"");g(this,G);this.highlighter=s,this.options=n}tokenizeChunk(s,n){const r=(t(this,$)+s).split(/(\r\n|\r|\n)/);let l=[];for(let d=0;d<r.length;d+=2){const c=r[d],f=this.highlighter.codeToTokens(c,{...this.options,grammarState:t(this,G)}),I=f.tokens[0].map(m=>({...m,offset:m.offset+this.stableOffset}));d+1<r.length?(Ht(n,I),this.pushLineBreak(n,c.length,r[d+1]),a(this,G,f.grammarState)):(l=I,a(this,$,c))}return{unstable:l,tailLength:t(this,$).length}}clone(){this.assertActive();const s=new at(this.highlighter,this.options);return this.copyStateTo(s),a(s,$,t(this,$)),a(s,G,t(this,G)),s}resetSource(){a(this,$,""),a(this,G,void 0)}releaseSource(){this.resetSource()}},$=new WeakMap,G=new WeakMap,at),he=class $t extends Kt{constructor(s,n){super(s,Nt(s));J(this,"raw");J(this,"loadedThemes",new Map);J(this,"attachedLanguages",new Set(["text","ansi"]));this.raw=n}static async create(s){const n=s==="shiki-wasm"?(await wt(async()=>{const{createOnigurumaEngine:l}=await import("./fp9mRO0R.js");return{createOnigurumaEngine:l}},[],import.meta.url)).createOnigurumaEngine(wt(()=>import("./Cey7Y6ql.js"),[],import.meta.url)):(await wt(async()=>{const{createJavaScriptRegexEngine:l}=await import("./LU5PuYrD.js");return{createJavaScriptRegexEngine:l}},[],import.meta.url)).createJavaScriptRegexEngine(),r=await Qt({themes:[],langs:[],engine:n});return new $t(s,r)}getTheme(s){this.assertNotDisposed();const n=this.loadedThemes.get(s),r=this.themeResolver.getResolvedTheme(s)??n;if(r==null)throw new Error(`Theme "${s}" has not been resolved`);if(n!==r){const l=r.textmate??(r.cssVariables!=null?Ut(r.cssVariables):void 0);if(l==null)throw new Error(`Theme "${s}" does not support Shiki`);this.raw.setTheme({...l,name:s}),this.loadedThemes.set(s,r)}return r}codeToTokens(s,n){return this.raw.codeToTokens(s,this.resolveOptions(n))}createEditorTokenizer(s){return new Yt(this.raw,s,this)}createStreamTokenizer(s){return new te(this.raw,this.resolveOptions(s))}async loadLanguages(s){this.assertNotDisposed();const n=s.filter(r=>!this.attachedLanguages.has(r));Xt(await Gt(n),this)}hasLoadedLanguages(s){if(this.disposed)return!1;let n;return s.every(r=>this.attachedLanguages.has(r)?!0:Jt.has(r)?!1:(n??=this.raw.getLoadedLanguages(),n.includes(r)))}attachLanguages(s){this.assertNotDisposed();for(const n of s){if(this.attachedLanguages.has(n.name))continue;const r=n.data.find(l=>l.name===n.name||l.aliases?.includes(n.name)===!0);if(r==null)throw new Error(`attachResolvedLanguages: No returned grammar declares "${n.name}" as its name or an alias.`);this.raw.loadLanguageSync(n.data);try{this.raw.getLanguage(n.name)}catch{throw new Error(`attachResolvedLanguages: "${r.name}" is already loaded without alias "${n.name}". Load the alias first or give the grammar a unique name.`)}this.attachedLanguages.add(n.name)}}releaseResources(){this.loadedThemes.clear(),this.attachedLanguages.clear(),this.raw.dispose()}resolveOptions({theme:s,themes:n,...r}){if(this.assertNotDisposed(),s!=null)return this.getTheme(s),{...r,theme:s};if(n==null)throw new Error("A theme or themes option is required");for(const l of Object.values(n))this.getTheme(l);return{...r,themes:n}}};export{he as ShikiHighlighter};
1
+ var Vt=Object.defineProperty;var yt=e=>{throw TypeError(e)};var jt=(e,i,s)=>i in e?Vt(e,i,{enumerable:!0,configurable:!0,writable:!0,value:s}):e[i]=s;var J=(e,i,s)=>jt(e,typeof i!="symbol"?i+"":i,s),bt=(e,i,s)=>i.has(e)||yt("Cannot "+s);var t=(e,i,s)=>(bt(e,i,"read from private field"),s?s.call(e):i.get(e)),g=(e,i,s)=>i.has(e)?yt("Cannot add the same private member more than once"):i instanceof WeakSet?i.add(e):i.set(e,s),a=(e,i,s,n)=>(bt(e,i,"write to private field"),n?n.call(e,s):i.set(e,s),s),o=(e,i,s)=>(bt(e,i,"access private method"),s);var vt=(e,i,s,n)=>({set _(r){a(e,i,r,s)},get _(){return t(e,i,n)}});import{_ as wt}from"./YLhFQnIu.js";import{m as xt,A as qt,r as Ht,Q as Nt,aX as Gt,R as Jt}from"./D8bY4ERR.js";import{B as Ft,D as Kt}from"./Bd8IVx5H.js";import{I as F,E as Ct,b as Qt,a as Ut}from"./DICr2Lvd.js";function Xt(e,i){for(const s of Array.isArray(e)?e:[e]){let n=xt.get(s.name);n==null&&(n=s,xt.set(s.name,n)),i.attachLanguages([n]),qt.add(n.name)}}function Zt(e,i){let s;return function(...n){clearTimeout(s),s=setTimeout(()=>e.apply(this,n),i)}}const Dt=0;let Wt=0;var H,T,P,Q,L,st,it,C,U,nt,u,D,_,A,O,b,v,z,dt,E,B,X,N,R,Z,Tt,ft,h,K,ut,zt,Et,Y,pt,It,ct,tt,Ot,gt,et,Bt,Pt,At,Yt=(At=class{constructor(e,i,s){g(this,h);J(this,"backend");g(this,H);g(this,T);g(this,P);g(this,Q);g(this,L);g(this,st);g(this,it);g(this,C);g(this,U);g(this,nt,!1);g(this,u,[F]);g(this,D,[]);g(this,_,0);g(this,A,[]);g(this,O,-1);g(this,b,!0);g(this,v,!1);g(this,z,0);g(this,dt,++Wt);g(this,E,-1);g(this,B,-1);g(this,X);g(this,N,0);g(this,R,[]);g(this,Z,!1);g(this,Tt,Zt(async e=>{if(t(this,nt))return;const{startingLine:i=0,totalLines:s=1/0}=e??{},n=Math.min(s===1/0?1/0:i+s,t(this,L).lineCount);if(t(this,T)==null&&!Lt(t(this,L).languageId)){if(await this.backend?.loadLanguages([t(this,L).languageId]),t(this,nt))return;a(this,T,t(this,H).getLanguage(t(this,L).languageId))}o(this,h,K).call(this),o(this,h,It).call(this,n)},500));g(this,ft,({data:e})=>{if(typeof e!="object"||e===null)return;const{type:i,tokenizerId:s,jobId:n}=e;i==="tokenize"&&s===t(this,dt)&&typeof n=="number"&&n===t(this,z)&&(t(this,E)>=0?o(this,h,Bt).call(this,n):o(this,h,Pt).call(this,n))});this.backend=s,a(this,H,e),a(this,L,i.textDocument),a(this,P,i.theme),a(this,Q,[]),a(this,st,i.tokenizeMaxLineLength??1e3),a(this,it,i.onDeferTokenize),a(this,C,i.matchBrackets!==!1),a(this,U,i.__debug??!1),o(this,h,ut).call(this),o(this,h,K).call(this)}getStringCommentRegexpRangesInLine(e){if(!t(this,C)||e<0||e>=t(this,L).lineCount||(o(this,h,ut).call(this),t(this,T)==null))return null;if(t(this,R)[e]===void 0){o(this,h,et).call(this,e);const i=t(this,u)[e]??F,s=o(this,h,ct).call(this,e,i);t(this,u)[e+1]=s.state}return t(this,R)[e]??null}setTheme(e){t(this,P)!==e&&(a(this,P,e),o(this,h,K).call(this),this.stopBackgroundTokenize(),a(this,u,[F]),a(this,D,[]),a(this,_,0),a(this,A,[]),t(this,T)!=null&&t(this,L).lineCount>0&&o(this,h,pt).call(this,0))}dispose(){a(this,nt,!0),this.stopBackgroundTokenize(),o(this,h,Et).call(this)}tokenize(e,i,s=!1){if(o(this,h,ut).call(this),o(this,h,K).call(this),t(this,T)==null&&!Lt(t(this,L).languageId))throw new Error(`Grammar for language "${t(this,L).languageId}" not loaded`);const{lineCount:n}=t(this,L),{startingLine:r=0,totalLines:l=1/0}=i??{},d=l===1/0?n:Math.min(r+l,n),c=e.startLine,f=Math.max(r,c),I=i!=null&&l!==1/0&&e.lineDelta>0&&c<d&&e.endLine>=d,m=e.lineDelta===0&&(e.changedLineChanges?.every(([,,p])=>p===0)??!0);t(this,C)&&!m&&(t(this,R).length=Math.min(t(this,R).length,e.startLine));const M=s&&e.lineDelta!==0&&c>=r,S=m||i==null||c>=f,y=e.changedLineRanges??[[c,e.endLine]];a(this,D,[]),a(this,_,0),a(this,A,[]);let V=-1;if(c<f)for(const[p,w]of y)p<f&&(V=Math.max(V,Math.min(w,f-1)));const mt=V>=c&&(m||e.lineDelta<0);m?o(this,h,et).call(this,c):(o(this,h,Ot).call(this,e),(i==null||c>=f)&&o(this,h,et).call(this,f));let j=0,St=y[j][1],ht,Rt=0,k=m?y[j][0]:f,rt=!1;const Mt=new Map,W=mt?new Map:void 0;if(W!=null&&!m){const p=Math.min(V+1,f,d);if(p>c){o(this,h,et).call(this,p);let w=c,ot=t(this,u)[w]??F;for(;w<p;w++){const x=o(this,h,ct).call(this,w,ot);ot=x.state,W.set(w,x.resolvedTokens)}t(this,u)[p]=ot}}let q=t(this,u)[k]??F;for(;k<d;){const p=m?t(this,u)[k+1]:M?o(this,h,gt).call(this,k+1):void 0;S&&(t(this,u)[k]=q);const{resolvedTokens:w,state:ot}=o(this,h,ct).call(this,k,q);if(q=ot,k>=f?Mt.set(k,w):W?.set(k,w),S&&(t(this,u)[k+1]=q),rt=k>=St&&(m||M)&&p!=null&&q.equals(p),rt){j++;const x=y[j];if(x==null)break;if(x[0]>=d){ht=x[0],Rt=j;break}let lt=t(this,u)[x[0]];if(M)for(let kt=k+2;kt<=x[0]&&(lt=o(this,h,gt).call(this,kt),lt!=null);kt++)t(this,u)[kt]=lt;lt==null?(St=x[1],k++):(k=x[0],q=lt,St=x[1]),rt=!1;continue}k++}if(S&&(k<d?t(this,u)[k+1]=q:t(this,u)[k]=q),rt&&M&&ht==null){for(let p=k+2;p<=n;p++){const w=o(this,h,gt).call(this,p);if(w==null)break;t(this,u)[p]=w}a(this,D,[]),a(this,_,0),a(this,A,[])}if(W!=null&&W.size>0&&t(this,it).call(this,W),ht!=null)t(this,C)&&m&&(t(this,R).length=Math.min(t(this,R).length,ht)),o(this,h,pt).call(this,ht,y,Rt);else if(!rt&&k<n){const p=I&&c>=f?d:c<f&&!m?c:k;t(this,C)&&m&&(t(this,R).length=Math.min(t(this,R).length,p)),o(this,h,pt).call(this,p,y,j)}return Mt}prebuildStateStack(e){o(this,h,ut).call(this),t(this,Tt).call(this,e)}stopBackgroundTokenize(){a(this,B,-1),!t(this,b)&&(a(this,b,!0),a(this,v,!1),a(this,O,-1),a(this,E,-1),a(this,X,void 0),a(this,N,0),a(this,D,[]),a(this,_,0),a(this,A,[]),o(this,h,Et).call(this))}pauseBackgroundTokenize(){t(this,b)||t(this,v)||(t(this,U)&&console.log("[diffs/editor] background tokenization paused",{jobId:t(this,z)}),a(this,v,!0))}resumeBackgroundTokenize(){t(this,b)||!t(this,v)||t(this,T)==null||t(this,O)<0||(t(this,U)&&console.log("[diffs/editor] background tokenization resumed",{jobId:t(this,z)}),a(this,v,!1),o(this,h,Y).call(this,t(this,z)))}},H=new WeakMap,T=new WeakMap,P=new WeakMap,Q=new WeakMap,L=new WeakMap,st=new WeakMap,it=new WeakMap,C=new WeakMap,U=new WeakMap,nt=new WeakMap,u=new WeakMap,D=new WeakMap,_=new WeakMap,A=new WeakMap,O=new WeakMap,b=new WeakMap,v=new WeakMap,z=new WeakMap,dt=new WeakMap,E=new WeakMap,B=new WeakMap,X=new WeakMap,N=new WeakMap,R=new WeakMap,Z=new WeakMap,Tt=new WeakMap,ft=new WeakMap,h=new WeakSet,K=function(){if(t(this,P)==="")return;this.backend?.getTheme(t(this,P));const{colorMap:e}=t(this,H).setTheme(t(this,P));a(this,Q,e)},ut=function(){t(this,T)==null&&!Lt(t(this,L).languageId)&&t(this,H).getLoadedLanguages().includes(t(this,L).languageId)&&a(this,T,t(this,H).getLanguage(t(this,L).languageId))},zt=function(){t(this,Z)||(globalThis.addEventListener("message",t(this,ft)),a(this,Z,!0))},Et=function(){t(this,Z)&&(globalThis.removeEventListener("message",t(this,ft)),a(this,Z,!1))},Y=function(e){globalThis.postMessage({type:"tokenize",tokenizerId:t(this,dt),jobId:e})},pt=function(e,i,s=0){if(Lt(t(this,L).languageId))return;const n=++vt(this,z)._;t(this,U)&&console.log("[diffs/editor] background tokenization scheduled",{jobId:n,startLine:e,changedLineRanges:i,changedRangeIndex:s}),a(this,b,!1),a(this,v,!1),a(this,O,e),t(this,E)>=0&&a(this,B,Math.max(t(this,B),t(this,E))),a(this,E,-1),a(this,X,i),a(this,N,s),o(this,h,zt).call(this),o(this,h,Y).call(this,n)},It=function(e){if(t(this,T)==null||t(this,u).length>e)return;if(!t(this,b)){t(this,E)>=0?a(this,E,Math.max(t(this,E),e)):a(this,B,Math.max(t(this,B),e));return}const i=++vt(this,z)._;a(this,b,!1),a(this,v,!1),a(this,O,t(this,u).length-1),a(this,E,e),a(this,B,-1),a(this,X,void 0),a(this,N,0),o(this,h,zt).call(this),o(this,h,Y).call(this,i)},ct=function(e,i){const s=t(this,L).getLineText(e);if(s.length>=t(this,st))return console.warn(`[diffs] Line(${e}) too long to tokenize: ${s.length}`),o(this,h,tt).call(this,e,null),{resolvedTokens:[[0,"",s]],state:i};if(t(this,T)==null||s===""||s.trim()==="")return o(this,h,tt).call(this,e,null),{resolvedTokens:[[0,"",s]],state:i};const n=_t(t(this,T),t(this,Q),s,i,Dt,t(this,C));return o(this,h,tt).call(this,e,n.bracketIgnoredRanges),{resolvedTokens:n.resolvedTokens,state:n.ruleStack}},tt=function(e,i){t(this,C)&&(t(this,R)[e]=i)},Ot=function(e){const i=e.changedLineChanges??[[e.startLine,e.endLine,e.lineDelta]],s=e.startLine+1;s<=t(this,u).length-s?(a(this,D,t(this,u)),a(this,_,0),a(this,u,t(this,u).slice(0,s))):(a(this,_,s),a(this,D,t(this,u).slice(s)),t(this,u).length=Math.min(t(this,u).length,s)),a(this,A,i)},gt=function(e){let i=e;for(let s=t(this,A).length-1;s>=0;s--){const[n,r,l]=t(this,A)[s];if(l!==0){if(i>r)i-=l;else if(i>n)return t(this,u)[e]}}return t(this,D)[i-t(this,_)]??t(this,u)[e]},et=function(e,i){const s=Math.min(Math.max(0,e),t(this,L).lineCount);if(t(this,u).length>s||t(this,T)==null)return!0;const n=i==null?0:performance.now();let r=t(this,u).length-1,l=t(this,u)[r]??F;for(;r<s;){t(this,u)[r]=l;const d=t(this,L).getLineText(r);if(d.length<t(this,st)&&d!==""&&d.trim()!==""){const c=_t(t(this,T),t(this,Q),d,l,Dt,t(this,C),!1);o(this,h,tt).call(this,r,c.bracketIgnoredRanges),l=c.ruleStack}else o(this,h,tt).call(this,r,null);if(r++,t(this,u)[r]=l,i!=null&&performance.now()-n>i)break}return r>=s},Bt=function(e){if(t(this,b)||t(this,v)||t(this,T)==null||e!==t(this,z))return;o(this,h,K).call(this);const i=o(this,h,et).call(this,t(this,E),1);if(!(t(this,b)||t(this,v)||e!==t(this,z))){if(i){this.stopBackgroundTokenize();return}a(this,O,t(this,u).length-1),o(this,h,Y).call(this,e)}},Pt=function(e){if(t(this,b)||t(this,v)||t(this,T)==null||e!==t(this,z))return;o(this,h,K).call(this);const i=performance.now(),s=new Map,n=t(this,L).lineCount,r=t(this,X);let l=t(this,O),d=t(this,u)[l]??F,c=!1,f=t(this,N),I=r?.[f]?.[1];for(;l<n;){t(this,u)[l]=d;const m=I!=null?o(this,h,gt).call(this,l+1):void 0,M=o(this,h,ct).call(this,l,d);if(s.set(l,M.resolvedTokens),d=M.state,t(this,u)[l+1]=d,c=I!=null&&l>=I&&m!=null&&d.equals(m),l++,c){f++;const S=r?.[f];if(S==null)break;if(I=S[1],t(this,u)[S[0]]==null)c=!1;else{l=S[0],d=t(this,u)[l]??d,c=!1;continue}}if(performance.now()-i>1)break}if(t(this,it).call(this,s),!(t(this,b)||t(this,v)||e!==t(this,z))){if(c||l>=n){const m=t(this,B);this.stopBackgroundTokenize(),m>=0&&o(this,h,It).call(this,m);return}a(this,O,l),a(this,N,f),o(this,h,Y).call(this,e)}},At);function _t(e,i,s,n,r,l=!0,d=!0){const c=e.tokenizeLine2(s,n,r);c.stoppedEarly&&console.warn(`[diffs] Time limit reached when tokenizing line: ${s.substring(0,100)}`);const f=c.tokens,I=f.length/2,m=[],M=[];if(!d&&!l)return{ruleStack:c.ruleStack,resolvedTokens:m,bracketIgnoredRanges:M};for(let S=0;S<I;S++){const y=f[2*S],V=S+1<I?f[2*S+2]:s.length;if(y===V)continue;const mt=f[2*S+1];if(d){const j=Ct.getForeground(mt);m.push([y,i[j],s.slice(y,V)])}l&&Ct.getTokenType(mt)>0&&M.push([y,V])}return{ruleStack:c.ruleStack,resolvedTokens:m,bracketIgnoredRanges:M}}function Lt(e){return e==="text"||e==="ansi"}var $,G,at,te=(at=class extends Ft{constructor(s,n){super();J(this,"highlighter");J(this,"options");g(this,$,"");g(this,G);this.highlighter=s,this.options=n}tokenizeChunk(s,n){const r=(t(this,$)+s).split(/(\r\n|\r|\n)/);let l=[];for(let d=0;d<r.length;d+=2){const c=r[d],f=this.highlighter.codeToTokens(c,{...this.options,grammarState:t(this,G)}),I=f.tokens[0].map(m=>({...m,offset:m.offset+this.stableOffset}));d+1<r.length?(Ht(n,I),this.pushLineBreak(n,c.length,r[d+1]),a(this,G,f.grammarState)):(l=I,a(this,$,c))}return{unstable:l,tailLength:t(this,$).length}}clone(){this.assertActive();const s=new at(this.highlighter,this.options);return this.copyStateTo(s),a(s,$,t(this,$)),a(s,G,t(this,G)),s}resetSource(){a(this,$,""),a(this,G,void 0)}releaseSource(){this.resetSource()}},$=new WeakMap,G=new WeakMap,at),he=class $t extends Kt{constructor(s,n){super(s,Nt(s));J(this,"raw");J(this,"loadedThemes",new Map);J(this,"attachedLanguages",new Set(["text","ansi"]));this.raw=n}static async create(s){const n=s==="shiki-wasm"?(await wt(async()=>{const{createOnigurumaEngine:l}=await import("./fp9mRO0R.js");return{createOnigurumaEngine:l}},[],import.meta.url)).createOnigurumaEngine(wt(()=>import("./Cey7Y6ql.js"),[],import.meta.url)):(await wt(async()=>{const{createJavaScriptRegexEngine:l}=await import("./LU5PuYrD.js");return{createJavaScriptRegexEngine:l}},[],import.meta.url)).createJavaScriptRegexEngine(),r=await Qt({themes:[],langs:[],engine:n});return new $t(s,r)}getTheme(s){this.assertNotDisposed();const n=this.loadedThemes.get(s),r=this.themeResolver.getResolvedTheme(s)??n;if(r==null)throw new Error(`Theme "${s}" has not been resolved`);if(n!==r){const l=r.textmate??(r.cssVariables!=null?Ut(r.cssVariables):void 0);if(l==null)throw new Error(`Theme "${s}" does not support Shiki`);this.raw.setTheme({...l,name:s}),this.loadedThemes.set(s,r)}return r}codeToTokens(s,n){return this.raw.codeToTokens(s,this.resolveOptions(n))}createEditorTokenizer(s){return new Yt(this.raw,s,this)}createStreamTokenizer(s){return new te(this.raw,this.resolveOptions(s))}async loadLanguages(s){this.assertNotDisposed();const n=s.filter(r=>!this.attachedLanguages.has(r));Xt(await Gt(n),this)}hasLoadedLanguages(s){if(this.disposed)return!1;let n;return s.every(r=>this.attachedLanguages.has(r)?!0:Jt.has(r)?!1:(n??=this.raw.getLoadedLanguages(),n.includes(r)))}attachLanguages(s){this.assertNotDisposed();for(const n of s){if(this.attachedLanguages.has(n.name))continue;const r=n.data.find(l=>l.name===n.name||l.aliases?.includes(n.name)===!0);if(r==null)throw new Error(`attachResolvedLanguages: No returned grammar declares "${n.name}" as its name or an alias.`);this.raw.loadLanguageSync(n.data);try{this.raw.getLanguage(n.name)}catch{throw new Error(`attachResolvedLanguages: "${r.name}" is already loaded without alias "${n.name}". Load the alias first or give the grammar a unique name.`)}this.attachedLanguages.add(n.name)}}releaseResources(){this.loadedThemes.clear(),this.attachedLanguages.clear(),this.raw.dispose()}resolveOptions({theme:s,themes:n,...r}){if(this.assertNotDisposed(),s!=null)return this.getTheme(s),{...r,theme:s};if(n==null)throw new Error("A theme or themes option is required");for(const l of Object.values(n))this.getTheme(l);return{...r,themes:n}}};export{he as ShikiHighlighter};
@@ -1 +1 @@
1
- import{bm as t}from"./DWvCfaBg.js";function _(e){return e.hostRole?e.hostRole:e.owner?"owner":e.online===!1?"offline":e.online===!0?"member":null}function s(e){return e.displayName?.trim()||e.login?.trim()||t.presence_person_unknown_label()}function i(e){const n=e.identity;if(!n)return null;const r=e.login?.trim();return n.provider==="gitlab"?r?t.presence_person_gitlabHandle_label({login:`@${r}`,host:n.host}):t.workspace_share_pinProvider_gitlab_label({host:n.host}):r?t.presence_person_githubHandle_label({login:`@${r}`}):t.workspace_share_pinProvider_github_label()}function a(e){const n=i(e);if(!n)return s(e);const r=e.displayName?.trim(),o=e.login?.trim();return r&&r.replace(/^@/,"").toLowerCase()!==o?.toLowerCase()?t.presence_person_forge_label({name:r,handle:n}):n}function u(e){const n=a(e),r=e.self?t.presence_person_you_label({name:n}):n;if(!e.hostRole)return r;const o=e.hostRole==="owner"?t.presence_role_owner():e.hostRole==="member"?t.presence_role_member():t.presence_role_guest(),l=e.online?e.viewing?t.presence_status_viewing():t.presence_status_online():t.presence_status_offline();return t.presence_person_roleStatus({name:r,role:o,status:l})}function g(e){let n=0;for(let r=0;r<e.length;r++)n=n*31+e.charCodeAt(r)|0;return`hsl(${Math.abs(n)%360} 55% 45%)`}function f(e){if(e.length===0)return null;const[n,r]=e.map(s);return e.length===1?t.presence_typing_one({name:n}):e.length===2?t.presence_typing_two_label({first:n,second:r}):t.presence_typing_many({first:n,count:e.length-1})}export{u as a,s as b,a as c,_ as d,f as e,g as p};
1
+ import{bm as t}from"./YLhFQnIu.js";function _(e){return e.hostRole?e.hostRole:e.owner?"owner":e.online===!1?"offline":e.online===!0?"member":null}function s(e){return e.displayName?.trim()||e.login?.trim()||t.presence_person_unknown_label()}function i(e){const n=e.identity;if(!n)return null;const r=e.login?.trim();return n.provider==="gitlab"?r?t.presence_person_gitlabHandle_label({login:`@${r}`,host:n.host}):t.workspace_share_pinProvider_gitlab_label({host:n.host}):r?t.presence_person_githubHandle_label({login:`@${r}`}):t.workspace_share_pinProvider_github_label()}function a(e){const n=i(e);if(!n)return s(e);const r=e.displayName?.trim(),o=e.login?.trim();return r&&r.replace(/^@/,"").toLowerCase()!==o?.toLowerCase()?t.presence_person_forge_label({name:r,handle:n}):n}function u(e){const n=a(e),r=e.self?t.presence_person_you_label({name:n}):n;if(!e.hostRole)return r;const o=e.hostRole==="owner"?t.presence_role_owner():e.hostRole==="member"?t.presence_role_member():t.presence_role_guest(),l=e.online?e.viewing?t.presence_status_viewing():t.presence_status_online():t.presence_status_offline();return t.presence_person_roleStatus({name:r,role:o,status:l})}function g(e){let n=0;for(let r=0;r<e.length;r++)n=n*31+e.charCodeAt(r)|0;return`hsl(${Math.abs(n)%360} 55% 45%)`}function f(e){if(e.length===0)return null;const[n,r]=e.map(s);return e.length===1?t.presence_typing_one({name:n}):e.length===2?t.presence_typing_two_label({first:n,second:r}):t.presence_typing_many({first:n,count:e.length-1})}export{u as a,s as b,a as c,_ as d,f as e,g as p};
@@ -1,5 +1,5 @@
1
- const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["/app/immutable/chunks/BweHPPaS.js","/app/immutable/chunks/DWvCfaBg.js","/app/immutable/chunks/3SdAC2_C.js","/app/immutable/chunks/BdWqymET.js","/app/immutable/chunks/CIoJPvjg.js","/app/immutable/chunks/Dms_DO28.js","/app/immutable/chunks/ChTqQfQN.js","/app/immutable/chunks/DY5rw8pn.js","/app/immutable/chunks/CIyUrgF0.js","/app/immutable/chunks/Bu3PKqut.js","/app/immutable/chunks/DxwfiAWm.js","/app/immutable/chunks/uXuxG9cN.js","/app/immutable/chunks/Bqd7fdCF.js","/app/immutable/chunks/CFB2mNds.js","/app/immutable/chunks/3Kr2ijlK.js","/app/immutable/chunks/D7yetF0v.js","/app/immutable/chunks/Y_tkjygB.js","/app/immutable/chunks/VTJf_qPn.js","/app/immutable/chunks/BCuI_zgX.js","/app/immutable/assets/spinner.D_TRo5Hy.css","/app/immutable/chunks/CueOVPTy.js","/app/immutable/chunks/DypB-Dwi.js","/app/immutable/chunks/CIKXOyvw.js","/app/immutable/chunks/zFAkpaJn.js","/app/immutable/assets/button.-yaUNjRS.css","/app/immutable/chunks/BrDfJqC4.js","/app/immutable/chunks/W05hyx94.js","/app/immutable/chunks/CL3a4Hm1.js","/app/immutable/chunks/BBWuirRW.js","/app/immutable/chunks/Bb-hI5du.js","/app/immutable/chunks/DKwAaLwd.js","/app/immutable/chunks/DpvQ3NRH.js","/app/immutable/chunks/Btst3lgy.js","/app/immutable/chunks/CQ5BHnSj.js","/app/immutable/chunks/DJJ2Xrlq.js","/app/immutable/chunks/UqcU95a7.js","/app/immutable/chunks/B5aYN90J.js","/app/immutable/chunks/BXHbm15d.js","/app/immutable/chunks/Drf1gLyo.js","/app/immutable/chunks/Dn334wJv.js","/app/immutable/chunks/bIL0xbKX.js","/app/immutable/chunks/2aKRVAvL.js","/app/immutable/chunks/D9tVylVS.js","/app/immutable/chunks/BlRGZv8u.js","/app/immutable/chunks/DU3vNstz.js","/app/immutable/chunks/XJv96NUg.js","/app/immutable/assets/notify.B1j5oT2y.css"])))=>i.map(i=>d[i]);
2
- import{t as Bt,bo as h,bw as Ft,b as Ht,bm as g,bp as jf,bs as mt,bq as la,br as js,b6 as Xl,bj as Uf,b9 as qf,bi as Vf,ba as Kf,bf as Gf,a$ as Jf,b3 as Yf,bh as Xf,bk as Zf,a_ as Qf,b8 as $f,b7 as eg,b1 as tg,be as rg,bl as ng,bu as Zl,bd as ag,b5 as og,b4 as sg,b2 as ig,bc as lg,bb as cg,bg as dg,b0 as ug,_ as pg}from"./DWvCfaBg.js";import{bI as fg,bj as _o,aG as gg,bs as zt,ca as wt,c0 as zn,aD as e,a7 as ht,ay as De,bS as m,be as er,b$ as jt,b_ as S,bO as x,W as u,bH as T,c9 as d,a5 as E,bl as L,bA as w,bn as Wt,bV as ye,aA as b,aB as I,c5 as fn,aC as ja,bo as Ho,br as tn,bk as is,ai as oo,cd as Ro,aw as An,a as vg,aj as Nr,c7 as mg,c6 as Ql,bf as $o,bz as Ud}from"./3SdAC2_C.js";import{i as B}from"./VTJf_qPn.js";import{k as ao}from"./bIL0xbKX.js";import{g as Lt,h as hg,e as Wn,I as ls,i as Lr,o as bg,p as yg,f as _g,s as xg}from"./CueOVPTy.js";import{t as pn}from"./Bu3PKqut.js";import{c as Sr}from"./Y_tkjygB.js";import{n as Oi}from"./BlRGZv8u.js";import{b as wg,s as ne,g as Tn,e as kn,c as lr,f as ft}from"./BCuI_zgX.js";import{b as vr}from"./Dn334wJv.js";import{a as kg,V as Ig,E as Sg,k as Cg,i as Eg,_ as Pg,f as Ag}from"./D5xlMOwU.js";import{p as qd,bJ as Vd,c_ as Kd,bq as Tg,dW as Rg,dI as Mg,aJ as Lg,cJ as Ng,ac as Og,d4 as Dg,dH as es,aO as Us,ch as Bg,R as Fg,b as Hg,a9 as $l,da as zg,c5 as Wg,X as jg,dD as Ug,a3 as qg,dN as Vg,aq as Kg,cx as Gg,d1 as Jg,aF as Yg,n as Xg,H as Zg}from"./3Kr2ijlK.js";import{c as Qg}from"./D-62MVd3.js";import{m as Hn,w as $g,C as Gd,c as ev,R as tv}from"./BXHbm15d.js";import{aa as Jd,f as Ct,ah as Ao,ae as Di}from"./Drf1gLyo.js";import{w as rv,F as nv}from"./CIKXOyvw.js";import{T as av}from"./lSLkjC_I.js";import{F as Mt,bj as Bi,bO as ov,aq as sv,aS as iv,cQ as lv,bn as pl,bE as cv,aI as Yd,aN as fl,d3 as Ts,ad as Fi,cs as dv,ch as uv,cn as gl,cK as vl,bv as pv,e as fv,c3 as ec,cd as gv,cq as vv,c$ as Xd,bY as mv,ba as gi,bg as Jo,aH as hv,aB as Hi,aw as Zd,be as Qd,bF as bv,B as yv,by as _v,a2 as $d,b5 as xv,a8 as eu,cl as wv,an as tu,cS as ru,cO as tc,au as nu,aM as rc,cA as kv,cZ as Iv,cT as Sv,aL as Cv,b1 as Ev,bR as au,bp as Pv,ap as ml,c9 as nc,aA as Av,ab as Tv,a9 as Rv}from"./D7yetF0v.js";import{c as ou}from"./ChTqQfQN.js";import{g as Mv}from"./2aKRVAvL.js";import{Jx as Ot,bZ as Lv,sz as ac,t8 as Nv,Kn as Ov,Kt as Dv,m as su,Ja as iu,nX as lu,ob as cu,oa as du,nQ as qs,qz as hl,yI as Bv,vJ as Is,v0 as zi,vL as Fv,nE as uu,JC as Hv,tQ as zv,o$ as pu,rT as bl,mk as oc,aa as sc,rl as Wv,rh as jv,rm as Uv,rd as qv,rj as Vv,vz as Kv,Br as fu,Bv as gu,oc as ic,Al as Gv,Aj as Jv,An as Yv,br as Wi,HU as Xv,J6 as Zv,hr as lc,hq as Qv,o6 as $v,wL as em,wM as tm,wK as cc,Cq as sa,cE as vu,cs as rm,xJ as nm,dd as am,dk as om,BB as sm}from"./CIoJPvjg.js";import{z as mu,I as hu}from"./Bqd7fdCF.js";import{e as dc,i as bu}from"./CL3a4Hm1.js";import{e as uc,d as yu,b as im,a as lm,f as cm,I as dm}from"./BOnTc4ny.js";import{b as _u}from"./UnM4qztD.js";/* empty css */import{d as xu,G as wu,R as ku,g as Iu,f as um,M as Su,C as pm,q as yl,l as fm,h as gm,e as vm,a as Cu,o as mm,S as Eo,K as hm}from"./CTqRHXfu.js";import{D as bm,e as ym}from"./DY5rw8pn.js";import"./B3OJ_2Dd.js";import"./B0kNPCxU.js";import"./77KTvr2w.js";import{b as _m}from"./COsxNPUV.js";import{r as xm}from"./0y7aytZM.js";import{a4 as wm,ck as km,cm as Im,cl as Sm,b3 as Cm,b1 as Em,b2 as Pm,a2 as Am,al as bs,ak as Tm,cV as Rm,aA as pc,aJ as Mm,ai as Lm,C as Nm,i as Om,d7 as Ss,cW as Dm,aY as fc,d0 as Bm,af as Fm,a7 as Hm,r as zm,p as Wm,aG as jm,d3 as Um,cM as qm,cF as Vm,Q as Km,cw as Gm,bU as Jm}from"./awY5HvZY.js";import{v as Ym,k as Xm,E as Zm,l as Qm,U as $m,q as eh,n as th,s as rh,I as nh,R as ah,m as oh,V as sh,o as Eu,S as Pu,i as ih,g as gc,f as lh,e as ch,j as dh,h as uh,c as vc,r as ph}from"./_HPNXgkR.js";import{A as mc,a as fh}from"./BYYtBM5R.js";import{aA as gh,aH as vh,g as mh,n as hh,aK as bh,K as yh,M as _h,O as xh,at as wh,aD as kh,av as Ih}from"./DpvQ3NRH.js";import{f as Sh,e as Ch,m as ji,bE as Eh,A as Ph,bD as Ah,bA as Th,ah as hc,bC as Rh,bd as Ui,aq as Mh,k as Lh,b3 as Nh,q as bc,z as Oh,K as yc}from"./CFB2mNds.js";import{i as Dh,I as Mo,c as _c}from"./BRdQpeCl.js";import{A as Bh,s as Fh}from"./QIFiwjW0.js";import{e as xc,l as wc,M as Au,m as qi,w as ho}from"./ChKOG1mU.js";import{b as Tu}from"./21kfe-mS.js";import{H as Hh}from"./CvusaaYc.js";import{t as ts}from"./DAsc1V4f.js";import{a as zh}from"./CdGl_2eX.js";import{P as Wh}from"./DAVG7sIL.js";import{C as Vi}from"./Dduwpj0a.js";import"./Dt3xwKL6.js";import{d as jh,c as Uh}from"./bojY7ttK.js";import{O as qh,M as Vh}from"./yqEyUNVG.js";import{b3 as Kh,bc as Gh,aM as Jh,bg as Yh,b1 as Xh,bb as Zh,b7 as Qh,ag as No,bi as kc,aZ as $h,b4 as eb,ba as _l,b5 as xl,a2 as vi,aB as tb,a4 as rb,be as nb,aY as ab,b6 as ob,b9 as sb,bl as ib,bj as lb,aJ as Ru,u as cb,s as db,b8 as ub,a7 as pb,az as fb,aO as gb,M as vb,aN as mb,ah as hb}from"./BqrahRdk.js";import{s as Ki}from"./DKupjKLn.js";import{e as Ic}from"./D22j4iWy.js";import{M as bb}from"./DzpuLv6U.js";import{s as yb,a as _b}from"./BsieX9dN.js";import{u as wl,w as xb,v as Vs,I as wb,A as Sc,e as Oo,d as Oa,J as Cc,c as kb,f as Ib,g as Ec,i as Sb,b as Cb,o as Mu,j as Eb,q as Gi,r as Pb,O as Ab,x as Tb,k as Lu,S as Rb,N as Mb,p as Lb,n as Pc,z as Nb,s as Ob}from"./BCVhFPNJ.js";import{o as Ac,T as mi,a as Db}from"./DdRupUfV.js";import{D as rs}from"./BeUuk8D1.js";import{l as ar,e as Bb,f as Tc,m as Rc}from"./W05hyx94.js";import{A as ns}from"./r5JNAzEM.js";import"./Dyx6ysl7.js";import{h as Nu}from"./BKD7o1lQ.js";import{C as ha}from"./BbfEcBPg.js";import{M as Fb}from"./BolJpU8l.js";/* empty css */import{g as kl}from"./Bf_4e4N2.js";import{h as Ji}from"./BweHPPaS.js";import{f as Mc,d as Hb}from"./BCiWc-GH.js";import{c as Cs}from"./Da8rtzmJ.js";import{handleIntentLink as zb}from"./D5A9atQX.js";import{a as Lc}from"./DgAgTFcK.js";import{t as Yi}from"./C-BsEdGZ.js";import{s as Wb,a as jb,M as Ou}from"./BDbFQqI8.js";import{b as Ub,k as qb}from"./DJJ2Xrlq.js";import{m as Vb}from"./Dms_DO28.js";import{showAssistantContent as Kb}from"./DZSbMOPJ.js";import{o as Rs,c as Gb,n as Jb}from"./TN7R9Ny0.js";import{p as Yb}from"./Bb8ARnaK.js";import{H as Xb}from"./CRUcTVFP.js";import{d as Zb,c as Qb,r as $b,g as ey,w as Yo,e as ty,W as ry,b as ny}from"./-8AxW0IA.js";import{A as Nc}from"./CvSLeFQo.js";import{m as ay}from"./A0p6PvBn.js";import{h as ys}from"./8jO_MBKF.js";import{g as oy,e as sy,f as iy,h as ly}from"./B5aYN90J.js";import{T as hi}from"./BmLlDCoW.js";import"./9AJtSub0.js";import{S as Wa}from"./Bv_0mmoe.js";import{R as cy,Q as dy,Z as uy,K as py}from"./UqcU95a7.js";import{S as Qo,a as Xi,V as fy,b as vo,W as Zi,M as gy,C as vy,R as my,P as hy,y as by,l as yy,_ as _y,X as xy,Z as Oc,U as wy,Y as ky}from"./FQkCsxt2.js";import{D as Iy}from"./DFKO8V-Y.js";import{a as Sy}from"./A3z9XWMi.js";import{a as Cy}from"./BdWqymET.js";import{p as Ey}from"./DsOS7N8Z.js";const Py="intent:inline-visual-draft";function NP(r,t){const n=t.title.replace(/\s+/g," ").trim(),a=JSON.stringify({inputs:t.inputs,results:t.results},null,2),o=(a.match(/`+/g)??[]).reduce((c,l)=>Math.max(c,l.length),0),s="`".repeat(Math.max(3,o+1));return`${r}${r?`
1
+ const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["/app/immutable/chunks/FhJRiT1S.js","/app/immutable/chunks/YLhFQnIu.js","/app/immutable/chunks/3SdAC2_C.js","/app/immutable/chunks/BdWqymET.js","/app/immutable/chunks/D5wnbxHp.js","/app/immutable/chunks/Dms_DO28.js","/app/immutable/chunks/ChTqQfQN.js","/app/immutable/chunks/BUsnh1ZW.js","/app/immutable/chunks/CIyUrgF0.js","/app/immutable/chunks/CrpUtGFn.js","/app/immutable/chunks/DxwfiAWm.js","/app/immutable/chunks/uXuxG9cN.js","/app/immutable/chunks/Bqd7fdCF.js","/app/immutable/chunks/CV7mOfKN.js","/app/immutable/chunks/BJbm_MWC.js","/app/immutable/chunks/gwv5JQYH.js","/app/immutable/chunks/DwGyIIXK.js","/app/immutable/chunks/YeOAvjnW.js","/app/immutable/chunks/BQhBnAuP.js","/app/immutable/assets/spinner.D_TRo5Hy.css","/app/immutable/chunks/oBIu7LTI.js","/app/immutable/chunks/DypB-Dwi.js","/app/immutable/chunks/DJivXy66.js","/app/immutable/chunks/CTowDLQa.js","/app/immutable/assets/button.-yaUNjRS.css","/app/immutable/chunks/_3Ca9E4W.js","/app/immutable/chunks/DIEHuZ8f.js","/app/immutable/chunks/CL3a4Hm1.js","/app/immutable/chunks/BBWuirRW.js","/app/immutable/chunks/DJKfrY8C.js","/app/immutable/chunks/DKwAaLwd.js","/app/immutable/chunks/mUNs8NSR.js","/app/immutable/chunks/L3K71tUU.js","/app/immutable/chunks/Bq7euxCs.js","/app/immutable/chunks/COVS9Crf.js","/app/immutable/chunks/Idk978zJ.js","/app/immutable/chunks/B5aYN90J.js","/app/immutable/chunks/CZB2ndi9.js","/app/immutable/chunks/Cw2fqKk9.js","/app/immutable/chunks/Dn334wJv.js","/app/immutable/chunks/CBbdbU2x.js","/app/immutable/chunks/D48_y-cl.js","/app/immutable/chunks/D9tVylVS.js","/app/immutable/chunks/FLpsgWeB.js","/app/immutable/chunks/DU3vNstz.js","/app/immutable/chunks/XJv96NUg.js","/app/immutable/assets/notify.B1j5oT2y.css"])))=>i.map(i=>d[i]);
2
+ import{t as Bt,bo as h,bw as Ft,b as Ht,bm as g,bp as jf,bs as mt,bq as la,br as js,b6 as Xl,bj as Uf,b9 as qf,bi as Vf,ba as Kf,bf as Gf,a$ as Jf,b3 as Yf,bh as Xf,bk as Zf,a_ as Qf,b8 as $f,b7 as eg,b1 as tg,be as rg,bl as ng,bu as Zl,bd as ag,b5 as og,b4 as sg,b2 as ig,bc as lg,bb as cg,bg as dg,b0 as ug,_ as pg}from"./YLhFQnIu.js";import{bI as fg,bj as _o,aG as gg,bs as zt,ca as wt,c0 as zn,aD as e,a7 as ht,ay as De,bS as m,be as er,b$ as jt,b_ as S,bO as x,W as u,bH as T,c9 as d,a5 as E,bl as L,bA as w,bn as Wt,bV as ye,aA as b,aB as I,c5 as fn,aC as ja,bo as Ho,br as tn,bk as is,ai as oo,cd as Ro,aw as An,a as vg,aj as Nr,c7 as mg,c6 as Ql,bf as $o,bz as Ud}from"./3SdAC2_C.js";import{i as B}from"./YeOAvjnW.js";import{k as ao}from"./CBbdbU2x.js";import{g as Lt,h as hg,e as Wn,I as ls,i as Lr,o as bg,p as yg,f as _g,s as xg}from"./oBIu7LTI.js";import{t as pn}from"./CrpUtGFn.js";import{c as Sr}from"./DwGyIIXK.js";import{n as Oi}from"./FLpsgWeB.js";import{b as wg,s as ne,g as Tn,e as kn,c as lr,f as ft}from"./BQhBnAuP.js";import{b as vr}from"./Dn334wJv.js";import{a as kg,V as Ig,E as Sg,k as Cg,i as Eg,_ as Pg,f as Ag}from"./0Kw0mmSW.js";import{p as qd,bJ as Vd,c_ as Kd,bq as Tg,dW as Rg,dI as Mg,aJ as Lg,cJ as Ng,ac as Og,d4 as Dg,dH as es,aO as Us,ch as Bg,R as Fg,b as Hg,a9 as $l,da as zg,c5 as Wg,X as jg,dD as Ug,a3 as qg,dN as Vg,aq as Kg,cx as Gg,d1 as Jg,aF as Yg,n as Xg,H as Zg}from"./BJbm_MWC.js";import{c as Qg}from"./D-62MVd3.js";import{m as Hn,w as $g,C as Gd,c as ev,R as tv}from"./CZB2ndi9.js";import{aa as Jd,f as Ct,ah as Ao,ae as Di}from"./Cw2fqKk9.js";import{w as rv,F as nv}from"./DJivXy66.js";import{T as av}from"./CG28d89U.js";import{F as Mt,bj as Bi,bO as ov,aq as sv,aS as iv,cQ as lv,bn as pl,bE as cv,aI as Yd,aN as fl,d3 as Ts,ad as Fi,cs as dv,ch as uv,cn as gl,cK as vl,bv as pv,e as fv,c3 as ec,cd as gv,cq as vv,c$ as Xd,bY as mv,ba as gi,bg as Jo,aH as hv,aB as Hi,aw as Zd,be as Qd,bF as bv,B as yv,by as _v,a2 as $d,b5 as xv,a8 as eu,cl as wv,an as tu,cS as ru,cO as tc,au as nu,aM as rc,cA as kv,cZ as Iv,cT as Sv,aL as Cv,b1 as Ev,bR as au,bp as Pv,ap as ml,c9 as nc,aA as Av,ab as Tv,a9 as Rv}from"./gwv5JQYH.js";import{c as ou}from"./ChTqQfQN.js";import{g as Mv}from"./D48_y-cl.js";import{Jx as Ot,bZ as Lv,sz as ac,t8 as Nv,Kn as Ov,Kt as Dv,m as su,Ja as iu,nX as lu,ob as cu,oa as du,nQ as qs,qz as hl,yI as Bv,vJ as Is,v0 as zi,vL as Fv,nE as uu,JC as Hv,tQ as zv,o$ as pu,rT as bl,mk as oc,aa as sc,rl as Wv,rh as jv,rm as Uv,rd as qv,rj as Vv,vz as Kv,Br as fu,Bv as gu,oc as ic,Al as Gv,Aj as Jv,An as Yv,br as Wi,HU as Xv,J6 as Zv,hr as lc,hq as Qv,o6 as $v,wL as em,wM as tm,wK as cc,Cq as sa,cE as vu,cs as rm,xJ as nm,dd as am,dk as om,BB as sm}from"./D5wnbxHp.js";import{z as mu,I as hu}from"./Bqd7fdCF.js";import{e as dc,i as bu}from"./CL3a4Hm1.js";import{e as uc,d as yu,b as im,a as lm,f as cm,I as dm}from"./Dcnwzgw6.js";import{b as _u}from"./DLttsd3i.js";/* empty css */import{d as xu,G as wu,R as ku,g as Iu,f as um,M as Su,C as pm,q as yl,l as fm,h as gm,e as vm,a as Cu,o as mm,S as Eo,K as hm}from"./ItBm4ElA.js";import{D as bm,e as ym}from"./BUsnh1ZW.js";import"./kvtKUeBe.js";import"./KtEuoG00.js";import"./WvHbj6rB.js";import{b as _m}from"./BOyRg328.js";import{r as xm}from"./BfQFKWzJ.js";import{a4 as wm,ck as km,cm as Im,cl as Sm,b3 as Cm,b1 as Em,b2 as Pm,a2 as Am,al as bs,ak as Tm,cV as Rm,aA as pc,aJ as Mm,ai as Lm,C as Nm,i as Om,d7 as Ss,cW as Dm,aY as fc,d0 as Bm,af as Fm,a7 as Hm,r as zm,p as Wm,aG as jm,d3 as Um,cM as qm,cF as Vm,Q as Km,cw as Gm,bU as Jm}from"./CxCmx5S0.js";import{v as Ym,k as Xm,E as Zm,l as Qm,U as $m,q as eh,n as th,s as rh,I as nh,R as ah,m as oh,V as sh,o as Eu,S as Pu,i as ih,g as gc,f as lh,e as ch,j as dh,h as uh,c as vc,r as ph}from"./D_j4wRX_.js";import{A as mc,a as fh}from"./Bf-yBg_f.js";import{aA as gh,aH as vh,g as mh,n as hh,aK as bh,K as yh,M as _h,O as xh,at as wh,aD as kh,av as Ih}from"./mUNs8NSR.js";import{f as Sh,e as Ch,m as ji,bE as Eh,A as Ph,bD as Ah,bA as Th,ah as hc,bC as Rh,bd as Ui,aq as Mh,k as Lh,b3 as Nh,q as bc,z as Oh,K as yc}from"./CV7mOfKN.js";import{i as Dh,I as Mo,c as _c}from"./DkERMj5B.js";import{A as Bh,s as Fh}from"./cHm1EnSF.js";import{e as xc,l as wc,M as Au,m as qi,w as ho}from"./DQZhKtkC.js";import{b as Tu}from"./DPG1HUgG.js";import{H as Hh}from"./DwiE5WsI.js";import{t as ts}from"./DAsc1V4f.js";import{a as zh}from"./CIWQMI37.js";import{P as Wh}from"./CmhKJ6Ie.js";import{C as Vi}from"./Jk9a4xPx.js";import"./yMNZVIZN.js";import{d as jh,c as Uh}from"./B9BALnhr.js";import{O as qh,M as Vh}from"./D2kIeaeO.js";import{b3 as Kh,bc as Gh,aM as Jh,bg as Yh,b1 as Xh,bb as Zh,b7 as Qh,ag as No,bi as kc,aZ as $h,b4 as eb,ba as _l,b5 as xl,a2 as vi,aB as tb,a4 as rb,be as nb,aY as ab,b6 as ob,b9 as sb,bl as ib,bj as lb,aJ as Ru,u as cb,s as db,b8 as ub,a7 as pb,az as fb,aO as gb,M as vb,aN as mb,ah as hb}from"./D8bY4ERR.js";import{s as Ki}from"./oVV8Q_Hb.js";import{e as Ic}from"./Hi2H4bj8.js";import{M as bb}from"./Lk7a_7W9.js";import{s as yb,a as _b}from"./BsieX9dN.js";import{u as wl,w as xb,v as Vs,I as wb,A as Sc,e as Oo,d as Oa,J as Cc,c as kb,f as Ib,g as Ec,i as Sb,b as Cb,o as Mu,j as Eb,q as Gi,r as Pb,O as Ab,x as Tb,k as Lu,S as Rb,N as Mb,p as Lb,n as Pc,z as Nb,s as Ob}from"./CA_3gGLy.js";import{o as Ac,T as mi,a as Db}from"./Dde5tnWd.js";import{D as rs}from"./DCkRL43S.js";import{l as ar,e as Bb,f as Tc,m as Rc}from"./DIEHuZ8f.js";import{A as ns}from"./DPjr22dV.js";import"./BIfjK4Wy.js";import{h as Nu}from"./BKD7o1lQ.js";import{C as ha}from"./Y2a1lhL9.js";import{M as Fb}from"./B1lrKll_.js";/* empty css */import{g as kl}from"./B0RPkrmZ.js";import{h as Ji}from"./FhJRiT1S.js";import{f as Mc,d as Hb}from"./BJfXDnA-.js";import{c as Cs}from"./CeeeYtIE.js";import{handleIntentLink as zb}from"./BgV6mURq.js";import{a as Lc}from"./DgAgTFcK.js";import{t as Yi}from"./C-BsEdGZ.js";import{s as Wb,a as jb,M as Ou}from"./D9Hjcszu.js";import{b as Ub,k as qb}from"./COVS9Crf.js";import{m as Vb}from"./Dms_DO28.js";import{showAssistantContent as Kb}from"./BlaJXdkI.js";import{o as Rs,c as Gb,n as Jb}from"./WoPFTWyQ.js";import{p as Yb}from"./C9wBKZsV.js";import{H as Xb}from"./DezlVQ1h.js";import{d as Zb,c as Qb,r as $b,g as ey,w as Yo,e as ty,W as ry,b as ny}from"./CXCilPkm.js";import{A as Nc}from"./CfaCrhAh.js";import{m as ay}from"./A0p6PvBn.js";import{h as ys}from"./RTRAqswA.js";import{g as oy,e as sy,f as iy,h as ly}from"./B5aYN90J.js";import{T as hi}from"./CrL2Nk6a.js";import"./BNDTLRE1.js";import{S as Wa}from"./B1TtNV9x.js";import{R as cy,Q as dy,Z as uy,K as py}from"./Idk978zJ.js";import{S as Qo,a as Xi,V as fy,b as vo,W as Zi,M as gy,C as vy,R as my,P as hy,y as by,l as yy,_ as _y,X as xy,Z as Oc,U as wy,Y as ky}from"./CwCTYQp7.js";import{D as Iy}from"./BLhJfI63.js";import{a as Sy}from"./DkJYBjJg.js";import{a as Cy}from"./BdWqymET.js";import{p as Ey}from"./DIcuhccs.js";const Py="intent:inline-visual-draft";function NP(r,t){const n=t.title.replace(/\s+/g," ").trim(),a=JSON.stringify({inputs:t.inputs,results:t.results},null,2),o=(a.match(/`+/g)??[]).reduce((c,l)=>Math.max(c,l.length),0),s="`".repeat(Math.max(3,o+1));return`${r}${r?`
3
3
 
4
4
  `:""}${n}
5
5
 
@@ -294,7 +294,7 @@ ${r.content}`:a.content=r.content,a):r.old_text!==void 0&&r.new_text!==void 0?(a
294
294
  `,Yk=["background","foreground","card","card-foreground","primary","primary-ink","primary-foreground","secondary","secondary-foreground","muted","muted-foreground","border","input","ring","danger","danger-background","info","info-foreground","success","success-foreground","warning","warning-foreground","font-ui","font-code","text-body-size","text-body-line-height","text-body-weight","text-body-tracking","radius-small","radius-medium","radius-large","app-background","sidebar","sidebar-accent","agent-avatar-surface-active","agent-avatar-foreground","diagram-host-surface","diagram-canvas","diagram-label-surface","diagram-node-surface","diagram-node-hover-surface","diagram-node-outline","diagram-node-title","diagram-metadata","diagram-group-outline","diagram-connector","diagram-connector-hover","diagram-connector-muted","diagram-connector-inactive","diagram-connector-danger","diagram-connector-success","diagram-connector-warning","diagram-connector-active","diagram-accent","diagram-accent-foreground","diagram-node-radius","diagram-group-radius","diagram-connector-width","text-caption-size","text-caption-line-height","text-caption-weight","text-caption-tracking","text-body-strong-size","text-body-strong-line-height","text-body-strong-weight","text-body-strong-tracking","space-1","space-2","space-3","space-4","space-5","space-6","space-7","control-height-compact","control-height-small","control-height-medium","control-height-large","radius-full","spring-fast","spring-fast-exit","spring-fast-ease","spring-moderate","spring-moderate-exit","spring-moderate-ease","spring-slow","spring-slow-exit","spring-slow-ease","spring-exit-ease","motion-fast","motion-standard","motion-slow","ease-standard","ease-emphasized-out","motion-reduced"],Ti=96,Id=2e4,Xk=480,Kp=512,Zk=["default-src 'none'","script-src 'unsafe-inline'","style-src 'unsafe-inline'","img-src data:","connect-src 'none'","font-src data:","media-src 'none'","object-src 'none'","frame-src 'none'","child-src 'none'","worker-src 'none'","manifest-src 'none'","base-uri 'none'","form-action 'none'"].join("; ");function Qk(r,t,n,a,o,s){const c=new MessageChannel,l=MessagePort.prototype.postMessage.bind(c.port1);window.parent.postMessage({channel:r,type:"scroll-port"},"*",[c.port2]);const p=(k,F={})=>{window.parent.postMessage({channel:r,type:k,...F},"*")};let i=o?.state??null,f=null,v=!1;Object.defineProperty(window,"intentVisual",{configurable:!1,writable:!1,value:Object.freeze({get state(){return i},publish(k){try{if(!s(k))return!1;const F=JSON.parse(JSON.stringify(k));return i=F.state,f=F,v||(v=!0,requestAnimationFrame(()=>{v=!1,f&&p("snapshot",{snapshot:f}),f=null})),!0}catch{return!1}}})});let M=!1,_=-1,y=innerHeight,R=Number.NaN,N=0,D=0;const H=()=>{if(M=!1,!document.body)return;let k=Math.ceil(Math.max(document.body.scrollHeight,document.body.getBoundingClientRect().height));const F=innerHeight,V=k-F;if(F>y+1&&V>1&&Math.abs(V-R)<=1?N+=1:(F!==y||V<=1)&&(N=0),y=F,R=V,!D&&N>=3){D=Math.max(a,F);const z="Page height follows the frame (vh units or height: 100%); frame height held.";console.warn(z),p("layout",{message:z})}D&&(k=Math.min(k,D)),k!==_&&(_=k,p("resize",{height:k}))},C=()=>{M||(M=!0,requestAnimationFrame(H))},A=k=>{if(!k||typeof k.dark!="boolean"||!k.variables)return;const F=document.documentElement;F.classList.toggle("dark",k.dark),F.style.colorScheme=k.dark?"dark":"light";const V=k.variables["--inline-html-root-font-size"];"--inline-html-root-font-size"in t.variables&&typeof V=="string"&&V.length<512&&F.style.setProperty("--inline-html-root-font-size",V);for(const z of Object.keys(t.variables)){if(z==="--inline-html-root-font-size")continue;const G=k.variables[z];typeof G=="string"&&G.length<512&&F.style.setProperty(z,G)}C()};window.addEventListener("message",k=>{k.source!==window.parent||!k.data||k.data.channel!==r||k.data.type==="theme"&&A(k.data.theme)});const U=k=>{if(k.defaultPrevented||!k.isTrusted||k.ctrlKey||k.metaKey||k.shiftKey||!k.deltaY||Math.abs(k.deltaX)>Math.abs(k.deltaY))return;const F=G=>{const ie=getComputedStyle(G);if(G!==document.scrollingElement&&!/^(auto|scroll|overlay)$/.test(ie.overflowY)||/^(hidden|clip)$/.test(ie.overflowY))return!1;const Z=G.scrollHeight-G.clientHeight;return Z>1&&(k.deltaY<0?G.scrollTop>1:G.scrollTop<Z-1)};if(k.composedPath().some(G=>G instanceof Element&&F(G))||document.scrollingElement&&F(document.scrollingElement))return;const V=k.deltaMode===WheelEvent.DOM_DELTA_LINE?parseFloat(getComputedStyle(document.body).lineHeight)||16:k.deltaMode===WheelEvent.DOM_DELTA_PAGE?innerHeight:1,z=Math.max(-n,Math.min(n,k.deltaY*V));Number.isFinite(z)&&(k.preventDefault(),l({deltaY:z}))};window.addEventListener("wheel",()=>{window.removeEventListener("wheel",U),window.addEventListener("wheel",U,{passive:!1})},{capture:!0,passive:!1}),window.addEventListener("error",k=>{k.message&&p("error",{message:k.message.slice(0,300)})}),window.addEventListener("unhandledrejection",k=>{const F=k.reason;p("error",{message:String(F instanceof Error?F.message:F).slice(0,300)})}),window.addEventListener("click",k=>{const F=k.target instanceof Element?k.target.closest("a, area"):null;if(!F)return;(F.getAttribute("href")??F.getAttribute("xlink:href"))?.startsWith("#")||k.preventDefault()},!0),window.addEventListener("submit",k=>k.preventDefault(),!0),A(t),window.addEventListener("DOMContentLoaded",()=>{new ResizeObserver(C).observe(document.body),new MutationObserver(C).observe(document.body,{childList:!0,subtree:!0,attributes:!0,characterData:!0}),window.addEventListener("resize",C),document.addEventListener("load",C,!0),document.fonts.ready.then(C),p("ready"),C()},{once:!0})}function $k(r,t,n,a,o){const s=document.createElement("iframe");s.setAttribute("sandbox","allow-scripts"),s.setAttribute("referrerpolicy","no-referrer"),s.title=n,s.style.cssText="display:block;width:100%;height:100%;border:0;";let c;const l=p=>{const i=p.data?.deltaY;typeof i=="number"&&Number.isFinite(i)&&i!==0&&Math.abs(i)<=a&&window.parent.postMessage({channel:r,type:"wheel",deltaY:i},"*")};window.addEventListener("message",p=>{const i=p.data;if(!(!i||typeof i!="object"||i.channel!==r)){if(p.source===window.parent&&i.type==="theme"){s.contentWindow?.postMessage({channel:r,type:"theme",theme:i.theme},"*");return}if(!(p.source!==s.contentWindow||p.origin!=="null")){if(i.type==="scroll-port"&&!c&&p.ports.length===1){c=p.ports[0],c.onmessage=l;return}i.type==="resize"&&typeof i.height=="number"&&Number.isFinite(i.height)&&i.height>=0?window.parent.postMessage({channel:r,type:"resize",height:i.height},"*"):i.type==="ready"?window.parent.postMessage({channel:r,type:"ready"},"*"):(i.type==="error"||i.type==="layout")&&typeof i.message=="string"?window.parent.postMessage({channel:r,type:i.type,message:i.message.slice(0,300)},"*"):i.type==="snapshot"&&o(i.snapshot)&&window.parent.postMessage({channel:r,type:"snapshot",snapshot:i.snapshot},"*")}}}),window.addEventListener("DOMContentLoaded",()=>{s.srcdoc=t,document.body.append(s)},{once:!0})}function e2(r,t,n,a,o,s,c,l){const p=document.implementation.createHTMLDocument(""),i=p.createElement("template");i.innerHTML=n,p.body.append(i.content);const f=z=>{z.querySelectorAll("meta, base, link, iframe, frame, frameset, object, embed").forEach(G=>G.remove()),z.querySelectorAll("template").forEach(G=>f(G.content)),z.querySelectorAll("a, area").forEach(G=>{for(const ie of["href","xlink:href"])G.getAttribute(ie)?.startsWith("#")||G.removeAttribute(ie);G.removeAttribute("target"),G.removeAttribute("ping"),G.removeAttribute("download")})};f(p);const v=z=>JSON.stringify(z).replace(/</g,"\\u003c"),M=p.createElement("meta");M.httpEquiv="Content-Security-Policy",M.content=r.csp;const _=p.createElement("meta");_.setAttribute("charset","utf-8");const y=p.createElement("style"),R=/^data:[\w.+/-]+;base64,[A-Za-z0-9+/=]+$/.test(l)?`@font-face { font-family: 'Inter'; font-style: normal; font-weight: 100 900;
295
295
  font-display: swap; src: url('${l}') format('woff2'); }`:"";y.textContent=`${R}${r.styles}`;const N=p.createElement("script"),D=v([a,o,r.maxScrollDelta,r.lockHeight,t(c)?c:null]);N.textContent=`(${r.bridge})(...${D}, (${r.validate}));`,p.head.prepend(M,_,y,N);const H=`<!doctype html>${p.documentElement.outerHTML}`,C=document.implementation.createHTMLDocument(""),A=C.createElement("meta");A.httpEquiv="Content-Security-Policy",A.content=r.csp.replace("frame-src 'none'","frame-src about:");const U=C.createElement("meta");U.setAttribute("charset","utf-8");const k=C.createElement("style");k.textContent="html, body { margin: 0; width: 100%; height: 100%; overflow: hidden; }";const F=C.createElement("script"),V=v([a,H,s,r.maxScrollDelta]);return F.textContent=`(${r.shell})(...${V}, (${r.validate}));`,C.head.prepend(A,U,k,F),`<!doctype html>${C.documentElement.outerHTML}`}const t2=()=>({csp:Zk,styles:Jk,maxScrollDelta:Kp,lockHeight:Xk,bridge:Qk.toString(),shell:$k.toString(),validate:bl.toString()});function r2(r,t,n,a,o=null,s=""){return e2(t2(),bl,r,t,n,a,o,s)}function Sd(r){const t=getComputedStyle(r);return{dark:document.documentElement.classList.contains("dark"),variables:{...Object.fromEntries(Yk.map(n=>[`--${n}`,t.getPropertyValue(`--${n}`).trim()])),"--inline-html-root-font-size":getComputedStyle(document.documentElement).fontSize}}}function n2(r,t,n,a,o=null){return r2(r,t,n,a,o,Gk)}var a2=I('<p class="type-caption m-0 break-words px-4 pb-2 text-muted-foreground"> </p>'),o2=I('<div class="type-body flex items-center justify-between gap-3 px-4 py-2" role="status"><span class="text-danger"> </span> <!></div> <!>',1),s2=I('<p class="sr-only" role="status"> </p>'),i2=I('<p class="type-body m-0 px-4 py-3 text-muted-foreground" role="status"> </p>'),l2=I('<div class="type-body px-4 py-2 text-danger" role="status"><p class="m-0"> </p> <p class="type-code m-0 break-words"> </p></div>'),c2=I('<iframe sandbox="allow-scripts" referrerpolicy="no-referrer"></iframe>'),d2=I('<div class="space-y-4 p-4" aria-hidden="true"><div class="space-y-2"><!> <!></div> <!> <div class="flex items-center gap-4"><!> <!> <!></div></div>'),u2=I('<span aria-hidden="true"><!></span> <span class="min-w-0 flex-1 whitespace-normal text-pretty"> </span>',1),p2=I('<p class="type-caption m-0 break-words px-4 pb-2 text-muted-foreground" role="status"> <!></p>'),f2=I('<th class="min-w-40 px-2 pb-3 align-top font-normal"><!> <div class="mt-1 flex gap-1"><!> <!></div></th>'),g2=I('<td class="max-w-56 px-2 py-2 align-top break-words tabular-nums"> </td>'),v2=I('<tr><th class="max-w-48 py-2 pr-4 align-top font-normal break-words text-muted-foreground"> </th><!></tr>'),m2=I('<div class="overflow-x-auto px-4 pb-4" data-inline-visual-comparison=""><table class="type-body w-full border-separate border-spacing-0 text-left"><thead><tr><th class="min-w-28 pr-4 pb-3 font-normal text-muted-foreground"> </th><th class="min-w-32 px-2 pb-3 align-top font-medium"> </th><!></tr></thead><tbody></tbody></table></div>'),h2=I("<!> <!>",1),b2=I('<div data-inline-html="" class="my-3 min-w-0 overflow-hidden rounded-lg bg-background text-foreground"><!> <!> <div class="relative min-w-0"><!> <!></div> <div class="flex min-w-0 items-center justify-between gap-2 px-4 pt-1 pb-3" data-inline-visual-actions=""><!> <!></div> <!></div>');function Gp(r,t){if(new.target)return Bt({component:Gp,...r});zt(t,!0);const n=720,a=1e4;let o=h(t,"source",7),s=h(t,"isStreaming",7,!1),c=h(t,"isComplete",7,!0),l=h(t,"record",7),p=h(t,"storageStatus",7,"ready"),i=h(t,"onRecordChange",7),f=h(t,"onUseConfiguration",7),v=h(t,"onExport",7),M=h(t,"onRetry",7),_=h(t,"storageError",7),y=h(t,"exportStatus",7),R=h(t,"exportPath",7),N=h(t,"exportError",7),D,H=ye(void 0),C=ye(!1),A=ye(!1),U=ye(0),k=ye(""),F=ye(""),V=ye(!1),z=ye(""),G=ye(tn(Ti)),ie=ye(n),Z=ye(""),ke=ye(oc()),oe=ye(void 0),Ae=ye(void 0),ge,Ie=ye(void 0),te=ye(!1);const Q=d(()=>l()??e(ke)),we=d(()=>e(Ae)!==void 0&&e(oe)!==void 0&&!Vb(e(Ae),e(oe).inputs)),ue=d(()=>p()!=="loading"&&(p()!=="error"||!!e(Q).current)),be=d(()=>!s()&&c()&&!!o().trim()&&e(ue)),Ge=d(()=>Math.min(Id,Math.max(Ti,e(G)))),$e=d(()=>s()||p()==="loading"?"loading":c()?o().trim()?e(z)?"error":e(V)?"ready":"loading":"empty":"incomplete"),$=d(()=>s()||p()==="loading"||e(be)&&!e(V)&&!e(z)),Y=d(()=>mm([{id:"source",label:e(A)?qf():Vf()},{id:"reload",label:Kf(),disabled:!e(be)},{id:"save",label:Gf(),when:!!(e(oe)&&e(be)),disabled:!e(V)||!!e(z)||e(Q).scenarios.length>=sc,group:"configuration"},{id:"compare",label:Jf(),when:!!(e(oe)&&e(be)&&e(Q).scenarios.length),group:"configuration"},{id:"export",label:Yf(),when:!!(e(oe)&&e(be)&&v()),disabled:!e(V)||y()==="saving",group:"configuration"}]));function xe(le){le==="source"?T(A,!e(A)):le==="reload"?T(U,e(U)+1):le==="save"?q():le==="compare"?T(te,!e(te)):le==="export"&&v()?.({...e(Q),current:e(oe)??null})}function j(le){const Me={...le,current:e(oe)??le.current};T(ke,Me),i()?.(Me)}function q(){const le=e(oe);!le||e(Q).scenarios.length>=sc||(j({...e(Q),scenarios:[...e(Q).scenarios,{id:crypto.randomUUID(),name:Xf({number:Rc(e(Q).scenarios.length+1)}),snapshot:structuredClone(le)}]}),T(te,!0))}function J(le,Me){const Ze=Me.trim().slice(0,120);Ze&&j({...e(Q),scenarios:e(Q).scenarios.map(gt=>gt.id===le?{...gt,name:Ze}:gt)})}function se(le){const Me=structuredClone(le);T(oe,Me),T(Ie,Me),j({...e(Q),current:Me}),T(U,e(U)+1)}function _e(le){return typeof le=="number"?Rc(le):typeof le=="string"?le:JSON.stringify(le)}function Ne(){!e(H)?.contentWindow||!e(F)||e(H).contentWindow.postMessage({channel:e(F),type:"theme",theme:Sd(D)},"*")}function ee(le){let Me=D.parentElement;for(;Me;){const Ze=getComputedStyle(Me),gt=Me.scrollHeight-Me.clientHeight;if(/^(auto|scroll|overlay)$/.test(Ze.overflowY)&&gt>1){if(le<0?Me.scrollTop>0:Me.scrollTop<gt){Me.dispatchEvent(new WheelEvent("wheel",{deltaY:le,bubbles:!0})),Me.scrollTop+=le;return}if(/^(contain|none)$/.test(Ze.overscrollBehaviorY))return}Me=Me.parentElement}window.scrollBy({top:le,behavior:"instant"})}wt(()=>{if(!e(C))return;const le=o(),Me=e(be);e(U),fn(()=>{ge!==le&&(T(ke,oc()),T(oe,void 0),T(Ae,void 0),T(te,!1),T(Ie,void 0),ge=le),T(V,!1),T(z,""),T(Z,""),T(G,Ti,!0),T(F,crypto.randomUUID(),!0),T(k,Me?n2(le,e(F),Sd(D),Xl(),e(Ie)??e(oe)??e(Q).current):"",!0),T(Ie,void 0)})}),wt(()=>{if(!e(k)||e(V)||e(z))return;const le=setTimeout(()=>{T(z,Uf(),!0)},a);return()=>clearTimeout(le)}),is(()=>{T(C,!0);const le=dt=>{if(dt.source!==e(H)?.contentWindow||dt.origin!=="null")return;const at=dt.data;if(!(!at||typeof at!="object"||at.channel!==e(F))){if(at.type==="bootstrap"){e(H)?.contentWindow?.postMessage({channel:e(F),type:"initialize",documentHtml:e(k)},"*");return}if(at.type==="resize"&&typeof at.height=="number"&&Number.isFinite(at.height)&&at.height>=0)T(G,Math.min(Id,Math.ceil(at.height)),!0);else if(at.type==="ready")T(V,!0),Ne();else if(at.type==="error"&&typeof at.message=="string")T(z,at.message.slice(0,300),!0);else if(at.type==="layout"&&typeof at.message=="string")T(Z,at.message.slice(0,300),!0);else if(at.type==="snapshot"&&e(be)&&bl(at.snapshot)){const Pt=at.snapshot;T(Ae,e(Ae)??structuredClone(Pt.inputs)),T(oe,Pt),j({...e(Q),current:Pt})}else at.type==="wheel"&&e(V)&&e(be)&&!e(A)&&!e($)&&typeof at.deltaY=="number"&&Number.isFinite(at.deltaY)&&at.deltaY!==0&&Math.abs(at.deltaY)<=Kp&&ee(at.deltaY)}},Me=()=>{T(ie,Math.min(n,Math.max(160,Math.floor(window.innerHeight*.8))),!0)},Ze=new MutationObserver(Ne);Ze.observe(document.documentElement,{attributes:!0,attributeFilter:["class","style","data-theme"]});const gt=window.matchMedia("(prefers-color-scheme: dark)");return gt.addEventListener("change",Ne),window.addEventListener("message",le),window.addEventListener("resize",Me),Me(),()=>{Ze.disconnect(),gt.removeEventListener("change",Ne),window.removeEventListener("message",le),window.removeEventListener("resize",Me)}});var pe={get source(){return o()},set source(le){o(le),b()},get isStreaming(){return s()},set isStreaming(le=!1){s(le),b()},get isComplete(){return c()},set isComplete(le=!0){c(le),b()},get record(){return l()},set record(le){l(le),b()},get storageStatus(){return p()},set storageStatus(le="ready"){p(le),b()},get onRecordChange(){return i()},set onRecordChange(le){i(le),b()},get onUseConfiguration(){return f()},set onUseConfiguration(le){f(le),b()},get onExport(){return v()},set onExport(le){v(le),b()},get onRetry(){return M()},set onRetry(le){M(le),b()},get storageError(){return _()},set storageError(le){_(le),b()},get exportStatus(){return y()},set exportStatus(le){y(le),b()},get exportPath(){return R()},set exportPath(le){R(le),b()},get exportError(){return N()},set exportError(le){N(le),b()},$set:Ft,$on:(le,Me)=>Ht(t,le,Me)},ce=b2(),et=E(ce);{var me=le=>{var Me=o2(),Ze=De(Me),gt=E(Ze),dt=L(gt,!0),at=m(gt,2);{var Pt=Nt=>{Ct(Nt,{variant:"ghost",size:"sm",get onclick(){return M()},children:(Gt,tr)=>{er();var Vt=jt();S(Oe=>x(Vt,Oe),[()=>ag()]),u(Gt,Vt)},$$slots:{default:!0}})};B(at,Nt=>{M()&&Nt(Pt)})}w(Ze);var St=m(Ze,2);{var _t=Nt=>{var Gt=a2(),tr=L(Gt,!0);S(()=>x(tr,_())),u(Nt,Gt)};B(St,Nt=>{_()&&Nt(_t)})}S(Nt=>x(dt,Nt),[()=>Zf()]),u(le,Me)};B(et,le=>{p()==="error"&&le(me)})}var Ee=m(et,2);{var X=le=>{var Me=s2(),Ze=L(Me,!0);S(gt=>x(Ze,gt),[()=>s()?Qf():$f()]),u(le,Me)},Ce=le=>{var Me=i2(),Ze=L(Me,!0);S(gt=>x(Ze,gt),[()=>c()?tg():eg()]),u(le,Me)},fe=le=>{var Me=l2(),Ze=E(Me),gt=L(Ze,!0),dt=m(Ze,2),at=L(dt,!0);w(Me),S(Pt=>{x(gt,Pt),x(at,e(z))},[()=>rg()]),u(le,Me)};B(Ee,le=>{e($)?le(X):e(be)?e(z)&&le(fe,2):le(Ce,1)})}var O=m(Ee,2),K=E(O);{var Pe=le=>{var Me=ht(),Ze=De(Me);ao(Ze,()=>e(F),gt=>{var dt=c2();let at,Pt;vr(dt,St=>T(H,St),()=>e(H)),S(St=>{ne(dt,"title",St),ne(dt,"src",`/inline-html-sandbox.html#${e(F)}`),at=ft(dt,1,"block w-full border-0 svelte-1kkow1d",null,at,{"preview-hidden":e(A)||!e(V)}),ne(dt,"aria-hidden",e(A)||!e(V)),Pt=Tn(dt,"",Pt,{height:`${e(Ge)}px`})},[()=>Xl()]),u(gt,dt)}),u(le,Me)};B(K,le=>{e(be)&&e(k)&&le(Pe)})}var qe=m(K,2);{var Le=le=>{ha(le,{get code(){return o()},language:"html",noBorder:!0,noMargin:!0,get maxHeight(){return e(ie)}})},je=le=>{var Me=d2(),Ze=E(Me),gt=E(Ze);Eo(gt,{class:"h-4 w-32 max-w-1/2"});var dt=m(gt,2);Eo(dt,{class:"h-3 w-2/3"}),w(Ze);var at=m(Ze,2);Eo(at,{class:"aspect-video max-h-60 w-full rounded-lg"});var Pt=m(at,2),St=E(Pt);Eo(St,{class:"h-3 w-16"});var _t=m(St,2);Eo(_t,{class:"h-2 min-w-0 flex-1"});var Nt=m(_t,2);Eo(Nt,{class:"h-3 w-10"}),w(Pt),w(Me),u(le,Me)};B(qe,le=>{e(A)?le(Le):e($)&&le(je,1)})}w(O);var Ke=m(O,2),lt=E(Ke);{var bt=le=>{{let Me=d(()=>!e(V)||!!e(z));Ct(le,{variant:"plain",size:"sm",wrapContent:!1,get class(){return`${Gi} ${Pb} h-auto min-w-0 shrink justify-start rounded-sm border border-transparent px-1.5 py-0.5 text-left hover:text-foreground`},style:"gap: var(--operational-leading-gap)","data-typography-role":"body",get disabled(){return e(Me)},onclick:()=>e(oe)&&f()(e(oe)),children:(Ze,gt)=>{var dt=u2(),at=De(dt),Pt=E(at);Mt(Pt,{get icon(){return $d},size:16,get class(){return Oa}}),w(at);var St=m(at,2),_t=L(St,!0);S(Nt=>{ft(at,1,`${Oo??""} mt-px self-start`,"svelte-1kkow1d"),x(_t,Nt)},[()=>ng()]),u(Ze,dt)},$$slots:{default:!0}})}};B(lt,le=>{e(oe)&&e(we)&&e(be)&&f()&&!e(A)&&le(bt)})}var yt=m(lt,2);{const le=(Ze,gt)=>{let dt=()=>(gt?.()).props;{let at=d(()=>Zl());Ct(Ze,js(dt,{variant:"ghost",size:"icon-sm",class:"ml-auto text-muted-foreground",get"aria-label"(){return e(at)},children:(Pt,St)=>{Mt(Pt,{get icon(){return xv},size:16})},$$slots:{default:!0}}))}};let Me=d(()=>Zl());Cu(yt,{get actions(){return e(Y)},get ariaLabel(){return e(Me)},align:"end",side:"top",onAction:xe,trigger:le,$$slots:{trigger:!0}})}w(Ke);var qt=m(Ke,2);{var It=le=>{var Me=h2(),Ze=De(Me);{var gt=Pt=>{var St=p2(),_t=E(St),Nt=m(_t);{var Gt=tr=>{var Vt=jt();S(()=>x(Vt,N())),u(tr,Vt)};B(Nt,tr=>{y()==="error"&&N()&&tr(Gt)})}w(St),S(tr=>x(_t,`${tr??""} `),[()=>y()==="saving"?og():y()==="saved"?sg({path:R()??""}):ig()]),u(Pt,St)};B(Ze,Pt=>{y()&&Pt(gt)})}var dt=m(Ze,2);{var at=Pt=>{var St=m2(),_t=E(St),Nt=E(_t),Gt=E(Nt),tr=E(Gt),Vt=L(tr,!0),Oe=m(tr),ve=L(Oe,!0),Qe=m(Oe);Lt(Qe,17,()=>e(Q).scenarios,nt=>nt.id,(nt,He)=>{var re=f2(),Se=E(re);{let Re=d(()=>dg());Mo(Se,{get value(){return e(He).name},get"aria-label"(){return e(Re)},maxlength:120,onblur:ze=>{ze.currentTarget.value.trim()||(ze.currentTarget.value=e(He).name),J(e(He).id,ze.currentTarget.value)},onkeydown:ze=>{ze.key==="Enter"&&ze.currentTarget.blur(),ze.key==="Escape"&&(ze.currentTarget.value=e(He).name,ze.currentTarget.blur())}})}var de=m(Se,2),Fe=E(de);Ct(Fe,{variant:"ghost",size:"sm",onclick:()=>se(e(He).snapshot),children:(Re,ze)=>{er();var Je=jt();S(tt=>x(Je,tt),[()=>lg()]),u(Re,Je)},$$slots:{default:!0}});var Te=m(Fe,2);Ct(Te,{variant:"ghost",size:"sm",onclick:()=>j({...e(Q),scenarios:e(Q).scenarios.filter(Re=>Re.id!==e(He).id)}),children:(Re,ze)=>{er();var Je=jt();S(tt=>x(Je,tt),[()=>cg()]),u(Re,Je)},$$slots:{default:!0}}),w(de),w(re),u(nt,re)}),w(Gt),w(Nt);var st=m(Nt);Lt(st,20,()=>["inputs","results"],Lr,(nt,He)=>{const re=d(()=>He),Se=d(()=>Array.from(new Set([...Object.keys(e(oe)[e(re)]),...e(Q).scenarios.flatMap(Te=>Object.keys(Te.snapshot[e(re)]))])));var de=ht(),Fe=De(de);Lt(Fe,16,()=>e(Se),Te=>Te,(Te,Re)=>{var ze=v2(),Je=E(ze),tt=L(Je,!0),Ve=m(Je);Lt(Ve,17,()=>[e(oe),...e(Q).scenarios.map(Ye=>Ye.snapshot)],Lr,(Ye,Ue)=>{var rt=g2(),it=L(rt,!0);S(Xe=>x(it,Xe),[()=>Object.hasOwn(e(Ue)[e(re)],Re)?_e(e(Ue)[e(re)][Re]):"—"]),u(Ye,rt)}),w(ze),S(()=>x(tt,Re)),u(Te,ze)}),u(nt,de)}),w(st),w(_t),w(St),S(nt=>{x(Vt,e(oe).title),x(ve,nt)},[()=>ug()]),u(Pt,St)};B(dt,Pt=>{e(te)&&e(Q).scenarios.length&&Pt(at)})}u(le,Me)};B(qt,le=>{e(oe)&&e(be)&&le(It)})}return w(ce),vr(ce,le=>D=le,()=>D),S(()=>{ne(ce,"data-inline-html-status",e($e)),ne(ce,"data-inline-html-layout",e(Z)?"viewport-locked":void 0),ne(ce,"aria-busy",e($))}),u(r,ce),Wt(pe)}var y2=I('<div class="w-full min-w-0"><!></div>');function _2(r,t){if(new.target)return Bt({component:_2,...r});zt(t,!0);const n=()=>mt(e(_),"$agent$",o),a=()=>mt(e(D),"$entry$",o),[o,s]=la();let c=h(t,"block",7),l=h(t,"role",7),p=h(t,"workspaceId",7),i=h(t,"agentId",7),f=h(t,"messageId",7),v=h(t,"contentBlockKey",7,""),M=ye(void 0);const _=d(()=>Us(i()??"")),y=d(()=>l()==="assistant"&&p()&&i()&&f()&&c().metadata?.fenceClosed&&!c().metadata?.isStreaming&&n()&&!pu(n())?{workspaceId:p(),agentId:i(),messageId:f(),blockKey:JSON.stringify([v(),c().metadata?.fenceStart??0]),source:c().content}:void 0),R=d(()=>!!(p()&&i()&&f()&&c().metadata?.fenceClosed&&!n())),N=d(()=>e(y)?Vv(e(y)):""),D=d(()=>Xh(e(N)));wt(()=>{e(y)&&Ot.dispatch(Wv(e(y)))});function H(z){!p()||!i()||n()?.retiredAt||e(M)?.dispatchEvent(new CustomEvent(Py,{bubbles:!0,detail:{workspaceId:p(),agentId:i(),snapshot:z}}))}var C={get block(){return c()},set block(z){c(z),b()},get role(){return l()},set role(z){l(z),b()},get workspaceId(){return p()},set workspaceId(z){p(z),b()},get agentId(){return i()},set agentId(z){i(z),b()},get messageId(){return f()},set messageId(z){f(z),b()},get contentBlockKey(){return v()},set contentBlockKey(z=""){v(z),b()},$set:Ft,$on:(z,G)=>Ht(t,z,G)},A=ht(),U=De(A);{var k=z=>{var G=y2(),ie=E(G);{let Z=d(()=>c().metadata?.isStreaming??!1),ke=d(()=>c().metadata?.fenceClosed??!1),oe=d(()=>a()?.record),Ae=d(()=>e(y)?a()?.status??"loading":e(R)?"loading":"ready"),ge=d(()=>a()?.error),Ie=d(()=>e(y)?$e=>Ot.dispatch(qv(e(N),$e)):void 0),te=d(()=>p()&&i()&&n()&&!n().retiredAt?H:void 0),Q=d(()=>e(y)?()=>Ot.dispatch(Uv(e(N))):void 0),we=d(()=>e(y)?$e=>Ot.dispatch(jv(e(N),crypto.randomUUID(),$e)):void 0),ue=d(()=>a()?.export?.status),be=d(()=>a()?.export?.path),Ge=d(()=>a()?.export?.error);Gp(ie,{get source(){return c().content},get isStreaming(){return e(Z)},get isComplete(){return e(ke)},get record(){return e(oe)},get storageStatus(){return e(Ae)},get storageError(){return e(ge)},get onRecordChange(){return e(Ie)},get onUseConfiguration(){return e(te)},get onRetry(){return e(Q)},get onExport(){return e(we)},get exportStatus(){return e(ue)},get exportPath(){return e(be)},get exportError(){return e(Ge)}})}w(G),vr(G,Z=>T(M,Z),()=>e(M)),u(z,G)},F=z=>{ha(z,{get code(){return c().content},language:"html"})};B(U,z=>{l()==="assistant"?z(k):z(F,-1)})}u(r,A);var V=Wt(C);return s(),V}var x2=I('<div class="digest-card flex items-start gap-2.5 py-5 px-6 my-4 shadow-xs text-base leading-normal border border-border"> </div>');function w2(r,t){if(new.target)return Bt({component:w2,...r});zt(t,!0);let n=h(t,"digest",7);var a={get digest(){return n()},set digest(c){n(c),b()},$set:Ft,$on:(c,l)=>Ht(t,c,l)},o=x2(),s=L(o,!0);return S(()=>x(s,n())),u(r,o),Wt(a)}var k2=I('<span class="inline-flex items-center px-1.5 py-0.5 rounded text-xs font-medium bg-blue-500/15 text-blue-600 dark:text-blue-400"> </span>'),I2=I('<span class="inline-flex items-center px-1.5 py-0.5 rounded text-xs font-medium bg-muted text-muted-foreground"> </span>'),S2=I('<span class="inline-flex items-center px-1.5 py-0.5 rounded text-xs font-medium bg-primary/10 text-primary/80"> </span>'),C2=I('<div class="flex items-start gap-3 px-4 py-2.5"><div class="flex-1 min-w-0"><div class="flex items-center gap-2 flex-wrap"><span class="text-sm font-semibold text-foreground"> </span> <!> <!></div> <div class="mt-0.5 text-xs font-mono text-muted-foreground truncate"> </div></div></div>'),E2=I('<div class="detected-scripts-card my-3 rounded-lg border border-border bg-muted/30 overflow-hidden"><div class="flex items-center gap-2 px-4 py-2.5 border-b border-border bg-muted/40"><!> <span class="text-sm font-semibold text-foreground"> </span></div> <div class="divide-y divide-border"></div> <div class="px-4 py-2 border-t border-border bg-muted/20"><span class="text-xs text-muted-foreground"> </span></div></div>');function P2(r,t){if(new.target)return Bt({component:P2,...r});zt(t,!0);let n=h(t,"scripts",7);var a={get scripts(){return n()},set scripts(_){n(_),b()},$set:Ft,$on:(_,y)=>Ht(t,_,y)},o=E2(),s=E(o),c=E(s);Mt(c,{get icon(){return Xd},size:"sm",class:"text-primary-ink/70"});var l=m(c,2),p=L(l,!0);w(s);var i=m(s,2);Lt(i,21,n,_=>_.name+_.command,(_,y)=>{var R=C2(),N=E(R),D=E(N),H=E(D),C=L(H,!0),A=m(H,2);{var U=ie=>{var Z=k2(),ke=L(Z,!0);S(oe=>x(ke,oe),[()=>g.chat_detectedScripts_service_badge()]),u(ie,Z)},k=ie=>{var Z=I2(),ke=L(Z,!0);S(oe=>x(ke,oe),[()=>g.chat_detectedScripts_command_badge()]),u(ie,Z)};B(A,ie=>{e(y).mode==="service"?ie(U):ie(k,-1)})}var F=m(A,2);{var V=ie=>{var Z=S2(),ke=L(Z,!0);S(()=>x(ke,e(y).category)),u(ie,Z)};B(F,ie=>{e(y).category&&e(y).category!=="other"&&ie(V)})}w(D);var z=m(D,2),G=L(z,!0);w(N),w(R),S(()=>{x(C,e(y).name),x(G,e(y).command)}),u(_,R)}),w(i);var f=m(i,2),v=E(f),M=L(v,!0);return w(f),w(o),S((_,y)=>{x(p,_),x(M,y)},[()=>g.chat_detectedScripts_title(),()=>n().length===1?g.chat_detectedScripts_count_one({count:ar(n().length)}):g.chat_detectedScripts_count_many({count:ar(n().length)})]),u(r,o),Wt(a)}function A2(r,t){if(new.target)return Bt({component:A2,...r});zt(t,!0);let n=h(t,"diff",7),a=h(t,"filePath",7),o=h(t,"language",7),s=h(t,"onApply",7),c=h(t,"onReject",7);function l(){s()?.(),Hn.success(g.chat_diffViewer_applied_toast())}function p(){c()?.(),Hn.info(g.chat_diffViewer_rejected_toast())}const i=d(()=>{const v=[];return s()&&v.push({label:g.chat_diffViewer_apply_label(),variant:"success",onClick:l}),c()&&v.push({label:g.chat_diffViewer_reject_label(),variant:"danger",onClick:p}),v});var f={get diff(){return n()},set diff(v){n(v),b()},get filePath(){return a()},set filePath(v){a(v),b()},get language(){return o()},set language(v){o(v),b()},get onApply(){return s()},set onApply(v){s(v),b()},get onReject(){return c()},set onReject(v){c(v),b()},$set:Ft,$on:(v,M)=>Ht(t,v,M)};{let v=d(()=>a()||g.chat_diffViewer_suggestedChanges_fallback());rs(r,{get patch(){return n()},get fileName(){return e(v)},get language(){return o()},get actions(){return e(i)},collapsible:!0,initialCollapsed:!1,maxHeight:"500px"})}return Wt(f)}var T2=ja('<circle fill="none" style="transition: stroke-dasharray 0.3s ease-out"></circle>'),Cd=ja("<circle></circle>"),R2=ja('<svg class="absolute top-1/2 left-1/2 transform -translate-x-1/2 -translate-y-1/2 fill-background" viewBox="0 0 8 6"><path fill-rule="evenodd" clip-rule="evenodd" d="M7.69471 1.69471C7.87687 1.50611 7.97766 1.25351 7.97539 0.991311C7.97311 0.729114 7.86794 0.478302 7.68253 0.292894C7.49712 0.107485 7.24631 0.00231622 6.98411 3.78025e-05C6.72192 -0.00224062 6.46931 0.0985542 6.28071 0.280712L2.98771 3.57371L1.69471 2.28071C1.50611 2.09855 1.25351 1.99776 0.991311 2.00004C0.729114 2.00232 0.478302 2.10749 0.292894 2.29289C0.107485 2.4783 0.00231622 2.72911 3.78025e-05 2.99131C-0.00224062 3.25351 0.0985542 3.50611 0.280712 3.69471L2.28071 5.69471C2.46824 5.88218 2.72255 5.9875 2.98771 5.9875C3.25288 5.9875 3.50718 5.88218 3.69471 5.69471L7.69471 1.69471Z"></path></svg>'),M2=I('<div class="relative"><svg fill="none" xmlns="http://www.w3.org/2000/svg"><circle fill="none"></circle><!></svg> <!></div>');function As(r,t){if(new.target)return Bt({component:As,...r});zt(t,!0);let n=h(t,"phase",7),a=h(t,"progress",7,0),o=h(t,"size",7,16),s=h(t,"class",7,""),c=d(()=>o()/2),l=d(()=>e(c)),p=d(()=>e(c)),i=d(()=>o()*.12),f=d(()=>e(c)-e(i)/2),v=d(()=>e(c)*.35),M=d(()=>2*Math.PI*e(v)),_=d(()=>Math.max(0,Math.min(1,a()))*e(M));const y={planning:"#99999999",building:"#54B1F3",reviewing:"#6D7FF5",shipped:"var(--color-foreground)"};let R=d(()=>y[n()]||"currentColor");var N={get phase(){return n()},set phase(Z){n(Z),b()},get progress(){return a()},set progress(Z=0){a(Z),b()},get size(){return o()},set size(Z=16){o(Z),b()},get class(){return s()},set class(Z=""){s(Z),b()},$set:Ft,$on:(Z,ke)=>Ht(t,Z,ke)},D=M2(),H=E(D),C=E(H),A=m(C);{var U=Z=>{},k=Z=>{var ke=T2();S(()=>{ne(ke,"cx",e(l)),ne(ke,"cy",e(p)),ne(ke,"r",e(v)*.8),ne(ke,"stroke",e(R)),ne(ke,"stroke-width",e(v)*1.5),ne(ke,"stroke-dasharray",`${e(_)??""} ${e(M)??""}`),ne(ke,"stroke-dashoffset",e(M)*.25),ne(ke,"transform",`rotate(-90 ${e(l)??""} ${e(p)??""})`)}),u(Z,ke)},F=Z=>{var ke=Cd();S(()=>{ne(ke,"cx",e(l)),ne(ke,"cy",e(p)),ne(ke,"r",e(f)*.6),ne(ke,"fill",e(R))}),u(Z,ke)},V=Z=>{var ke=Cd();S(()=>{ne(ke,"cx",e(l)),ne(ke,"cy",e(p)),ne(ke,"r",e(f)),ne(ke,"fill",e(R))}),u(Z,ke)};B(A,Z=>{n()==="planning"?Z(U):n()==="building"?Z(k,1):n()==="reviewing"?Z(F,2):n()==="shipped"&&Z(V,3)})}w(H);var z=m(H,2);{var G=Z=>{},ie=Z=>{var ke=R2();S(()=>ne(ke,"width",o()*.5)),u(Z,ke)};B(z,Z=>{n()==="reviewing"?Z(G):n()==="shipped"&&Z(ie,1)})}return w(D),S(()=>{ne(H,"width",o()),ne(H,"height",o()),ne(H,"viewBox",`0 0 ${o()??""} ${o()??""}`),ft(H,0,lr(s())),ne(C,"cx",e(l)),ne(C,"cy",e(p)),ne(C,"r",e(f)),ne(C,"stroke",e(R)),ne(C,"stroke-width",e(i))}),u(r,D),Wt(N)}var Ed=I('<span class="flex items-center gap-1"><span class="size-1.5 rounded-full"></span> </span>'),L2=I('<span class="flex items-center gap-1"><span class="size-1.5 rounded-full bg-border"></span> </span>'),Pd=I('<span class="text-ui text-subtle truncate"> </span>'),Ad=I('<div class="flex items-center gap-1 mt-0.5"><!> <!></div>'),Td=I('<div class="flex items-start gap-2"><div class="shrink-0 mt-0.5"><!></div> <div class="flex-1 min-w-0"><div class="text-xs leading-snug truncate"> </div> <!></div></div>'),N2=I('<div class="flex items-center gap-2"><div class="shrink-0"><!></div> <span class="text-ui text-subtle truncate line-through"> </span></div>'),O2=I('<span class="text-ui text-subtle pl-4"> </span>'),D2=I('<div class="flex flex-col gap-0.5 pt-1 border-t border-border"><!> <!></div>'),B2=I('<div class="text-ui text-subtle"> </div>'),F2=I("<!> <!> <!> <!>",1),H2=I('<div class="flex flex-col py-2 px-3 gap-2 max-h-80 overflow-y-auto"><div class="flex items-center justify-between gap-3"><span class="text-xs font-semibold text-foreground"> </span> <div class="flex items-center gap-3 text-ui text-subtle"><!> <!> <!></div></div> <!></div>'),z2=I('<div class="rounded-[0.5px]"></div>');function Jp(r,t){if(new.target)return Bt({component:Jp,...r});zt(t,!0);let n=h(t,"stats",7),a=h(t,"tasks",23,()=>[]),o=h(t,"maxBars",7,20),s=h(t,"barWidth",7,"1px"),c=h(t,"barHeight",7,"16px"),l=h(t,"gap",7,"1px"),p=h(t,"class",7);const i={completed:"#22c55e",inProgress:"#4F7BF7",notStarted:"var(--border)"};let f=d(()=>{const{completed:A,inProgress:U,notStarted:k,total:F}=n();if(F===0)return[];const V=[...Array(A).fill("completed"),...Array(U).fill("inProgress"),...Array(Math.max(0,k)).fill("notStarted")];return V.length<=o()?V:V.slice(V.length-o())}),v=d(()=>a().filter(A=>A.status==="complete")),M=d(()=>a().filter(A=>A.status==="in_progress"||A.status==="review_required")),_=d(()=>a().filter(A=>A.status!=="complete"&&A.status!=="in_progress"&&A.status!=="review_required"&&A.status!=="cancelled")),y=d(()=>a().filter(A=>A.status==="cancelled")),R=d(()=>a().length>0);var N={get stats(){return n()},set stats(A){n(A),b()},get tasks(){return a()},set tasks(A=[]){a(A),b()},get maxBars(){return o()},set maxBars(A=20){o(A),b()},get barWidth(){return s()},set barWidth(A="1px"){s(A),b()},get barHeight(){return c()},set barHeight(A="16px"){c(A),b()},get gap(){return l()},set gap(A="1px"){l(A),b()},get class(){return p()},set class(A){p(A),b()},$set:Ft,$on:(A,U)=>Ht(t,A,U)},D=ht(),H=De(D);{var C=A=>{Di(A,{side:"top",align:"start",sideOffset:6,contentClass:"max-w-xs p-0",delayDuration:200,disableHoverableContent:!1,content:k=>{var F=H2(),V=E(F),z=E(V),G=L(z,!0),ie=m(z,2),Z=E(ie);{var ke=we=>{var ue=Ed(),be=E(ue);Tn(be,"",{},{"background-color":"#22c55e"});var Ge=m(be);w(ue),S(()=>x(Ge,` ${n().completed??""}`)),u(we,ue)};B(Z,we=>{n().completed>0&&we(ke)})}var oe=m(Z,2);{var Ae=we=>{var ue=Ed(),be=E(ue);Tn(be,"",{},{"background-color":"#4F7BF7"});var Ge=m(be);w(ue),S(()=>x(Ge,` ${n().inProgress??""}`)),u(we,ue)};B(oe,we=>{n().inProgress>0&&we(Ae)})}var ge=m(oe,2);{var Ie=we=>{var ue=L2(),be=m(E(ue));w(ue),S(()=>x(be,` ${n().notStarted??""}`)),u(we,ue)};B(ge,we=>{n().notStarted>0&&we(Ie)})}w(ie),w(V);var te=m(V,2);{var Q=we=>{var ue=F2(),be=De(ue);Lt(be,17,()=>e(M),Lr,(j,q)=>{var J=Td(),se=E(J),_e=E(se);mi(_e,{get status(){return e(q).status},size:14}),w(se);var Ne=m(se,2),ee=E(Ne),pe=L(ee,!0),ce=m(ee,2);{var et=me=>{var Ee=Ad(),X=E(Ee);{let O=d(()=>e(q).agentState||"idle");Nc(X,{get agentId(){return e(q).agentId},get state(){return e(O)},size:12,get specialist(){return e(q).agentSpecialist}})}var Ce=m(X,2);{var fe=O=>{var K=Pd(),Pe=L(K,!0);S(()=>x(Pe,e(q).agentName)),u(O,K)};B(Ce,O=>{e(q).agentName&&O(fe)})}w(Ee),u(me,Ee)};B(ce,me=>{e(q).agentId&&me(et)})}w(Ne),w(J),S(()=>x(pe,e(q).title)),u(j,J)});var Ge=m(be,2);Lt(Ge,17,()=>e(_),Lr,(j,q)=>{var J=Td(),se=E(J),_e=E(se);mi(_e,{get status(){return e(q).status},size:14}),w(se);var Ne=m(se,2),ee=E(Ne),pe=L(ee,!0),ce=m(ee,2);{var et=me=>{var Ee=Ad(),X=E(Ee);{let O=d(()=>e(q).agentState||"idle");Nc(X,{get agentId(){return e(q).agentId},get state(){return e(O)},size:12,get specialist(){return e(q).agentSpecialist}})}var Ce=m(X,2);{var fe=O=>{var K=Pd(),Pe=L(K,!0);S(()=>x(Pe,e(q).agentName)),u(O,K)};B(Ce,O=>{e(q).agentName&&O(fe)})}w(Ee),u(me,Ee)};B(ce,me=>{e(q).agentId&&me(et)})}w(Ne),w(J),S(()=>x(pe,e(q).title)),u(j,J)});var $e=m(Ge,2);{var $=j=>{var q=D2(),J=E(q);Lt(J,17,()=>e(v).slice(0,3),Lr,(Ne,ee)=>{var pe=N2(),ce=E(pe),et=E(ce);mi(et,{status:"complete",size:12}),w(ce);var me=m(ce,2),Ee=L(me,!0);w(pe),S(()=>x(Ee,e(ee).title)),u(Ne,pe)});var se=m(J,2);{var _e=Ne=>{var ee=O2(),pe=L(ee,!0);S(ce=>x(pe,ce),[()=>g.workspace_taskProgressBar_moreCompleted_label({count:ar(e(v).length-3)})]),u(Ne,ee)};B(se,Ne=>{e(v).length>3&&Ne(_e)})}w(q),u(j,q)};B($e,j=>{e(v).length>0&&j($)})}var Y=m($e,2);{var xe=j=>{var q=B2(),J=L(q,!0);S(se=>x(J,se),[()=>g.workspace_taskProgressBar_cancelled_label({count:ar(e(y).length)})]),u(j,q)};B(Y,j=>{e(y).length>0&&j(xe)})}u(we,ue)};B(te,we=>{e(R)&&we(Q)})}w(F),S(we=>x(G,we),[()=>g.workspace_taskProgressBar_tasksRatio_label({completed:ar(n().completed),total:ar(n().total)})]),u(k,F)},children:(k,F)=>{{let V=d(()=>kn("flex h-auto min-w-0 shrink items-end justify-start cursor-default rounded-none border-0",p())),z=d(()=>`gap: ${l()}`),G=d(()=>g.workspace_taskProgressBar_tasksRatio_label({completed:ar(n().completed),total:ar(n().total)}));Ct(k,{variant:"plain",type:"button",wrapContent:!1,get class(){return e(V)},get style(){return e(z)},get"aria-label"(){return e(G)},"data-task-progress-trigger":!0,children:(ie,Z)=>{var ke=ht(),oe=De(ke);Lt(oe,17,()=>e(f),Lr,(Ae,ge)=>{var Ie=z2();let te;S(()=>te=Tn(Ie,"",te,{width:s(),height:c(),"background-color":i[e(ge)]})),u(Ae,Ie)}),u(ie,ke)},$$slots:{default:!0}})}},$$slots:{content:!0,default:!0}})};B(H,A=>{n().total>0&&A(C)})}return u(r,D),Wt(N)}function Ws(r,t){if(new.target)return Bt({component:Ws,...r});zt(t,!0);let n=h(t,"items",7),a=h(t,"ariaLabel",7),o=h(t,"open",15,!1),s=h(t,"orientation",7,"vertical"),c=h(t,"selection",7),l=h(t,"class",7,"");const p=d(()=>sh(n(),c(),a()));var i={get items(){return n()},set items(f){n(f),b()},get ariaLabel(){return a()},set ariaLabel(f){a(f),b()},get open(){return o()},set open(f=!1){o(f),b()},get orientation(){return s()},set orientation(f="vertical"){s(f),b()},get selection(){return c()},set selection(f){c(f),b()},get class(){return l()},set class(f=""){l(f),b()},$set:Ft,$on:(f,v)=>Ht(t,f,v)};return Cu(r,{get actions(){return e(p)},align:"end",get ariaLabel(){return a()},onAction:v=>oh(n(),v)?.onClick(),get open(){return o()},set open(v){o(v)},trigger:(v,M)=>{let _=()=>(M?.()).props;Ct(v,js(_,{variant:"plain",size:"icon-compact",iconOnly:!0,type:"button",get class(){return l()},get"aria-label"(){return a()},onclick:y=>{y.stopPropagation(),_().onclick?.(y)},oncontextmenu:y=>{y.preventDefault(),y.stopPropagation()},children:(y,R)=>{hm(y,{get orientation(){return s()},class:"size-3.5"})},$$slots:{default:!0}}))},$$slots:{trigger:!0}}),Wt(i)}var W2=I('<span class="contents"><!></span>'),j2=I("<!> <!>",1);function Yp(r,t){if(new.target)return Bt({component:Yp,...r});zt(t,!0);let n=h(t,"workspaceId",7),a=h(t,"slot",7);const o=d(()=>Mv(a()));let s=ye(null);wt(()=>{e(s)&&e(s).workspaceId!==n()&&T(s,null)});function c(y){const R=Eu(y);R&&T(s,{...R,workspaceId:n()},!0)}function l(y){y.preventDefault(),y.stopPropagation();const R=y.currentTarget.getBoundingClientRect();T(s,{x:R.left,y:R.bottom+2,returnFocus:y.currentTarget,workspaceId:n()},!0)}function p(){T(s,null)}var i={get workspaceId(){return n()},set workspaceId(y){n(y),b()},get slot(){return a()},set slot(y){a(y),b()},$set:Ft,$on:(y,R)=>Ht(t,y,R)},f=j2(),v=De(f);{let y=d(()=>g.workspace_microKeyBadge_ariaLabel({number:ar(a()+1)})),R=d(()=>g.workspace_microKeyBadge_tooltip({number:ar(a()+1)})),N=d(()=>e(s)!==null);Ct(v,{variant:"ghost",size:"icon",type:"button",class:"micro-key-slot-badge size-4 min-w-0 shrink-0 cursor-pointer rounded-[3px] p-0 a11y-ignore",get"aria-label"(){return e(y)},get title(){return e(R)},onclick:l,oncontextmenu:c,onkeydown:c,"aria-haspopup":"menu",get"aria-expanded"(){return e(N)},children:(D,H)=>{var C=W2(),A=E(C);ev(A,{get slot(){return a()},get class(){return`transition-colors ${e(o)??""}`}}),w(C),u(D,C)},$$slots:{default:!0}})}var M=m(v,2);{var _=y=>{{let R=d(()=>e(s)?.x??0),N=d(()=>e(s)?.y??0),D=d(()=>e(s)?.returnFocus),H=d(()=>g.workspace_card_assignMicroKey_label()),C=d(()=>Zb(n(),p));Pu(y,{get x(){return e(R)},get y(){return e(N)},get returnFocus(){return e(D)},selection:"single",get ariaLabel(){return e(H)},get items(){return e(C)},onClickOutside:p})}};B(M,y=>{e(s)&&y(_)})}return u(r,f),Wt(i)}var U2=I('<span class="flex size-4 shrink-0 items-center justify-center"><!></span>'),q2=I('<span data-workspace-card-pin-indicator="" aria-hidden="true"><!></span> <span class="sr-only"> </span>',1),V2=I('<span class="type-caption shrink-0 rounded-sm bg-muted-foreground/10 px-1.5 font-normal text-muted-foreground" data-workspace-card-trailing-label=""> </span>'),K2=I('<span data-workspace-card-pr-item=""><!></span>'),G2=I('<span class="flex shrink-0 items-center" data-workspace-card-pr-list=""><!></span>'),J2=I('<span data-workspace-card-time=""><!></span>'),Y2=I('<span aria-hidden="true"><!></span>'),X2=I("<div><!> <!> <!> <!></div>"),Z2=I('<div data-workspace-card-hover-surface=""><!></div>'),Q2=I('<div role="group" data-workspace-card-row=""><!> <div class="relative z-10 flex shrink-0 items-center gap-1.5"><!> <!> <span class="sr-only"> </span></div> <div class="relative z-10 flex min-w-0 flex-1 items-center gap-2"><span class="flex min-w-0 flex-1 items-center gap-1" data-workspace-card-title-group=""><span dir="ltr" data-workspace-card-title=""><span class="wc-title-text svelte-1ct56pd"> </span></span> <!></span> <!> <!> <!></div> <!></div> <!> <!>',1),$2=I('<div class="relative z-10 flex shrink-0 items-center"><!></div>'),eI=I('<div><!> <!> <span class="font-medium truncate"> </span> <span class="shrink-0 text-muted-foreground">·</span> <span class="truncate text-xs text-muted-foreground"> </span> <!></div>'),tI=I('<div class="text-sm font-semibold truncate"> </div>'),Rd=I('<span class="truncate"> </span>'),rI=I('<span class="text-muted-foreground">·</span>'),nI=I('<div class="flex items-center gap-1 truncate text-xs text-muted-foreground"><!> <!> <!></div>'),aI=I('<div><!> <!> <div class="flex items-center gap-2 text-xs"><!> <span class="truncate text-muted-foreground"> </span> <span> </span></div> <!></div>'),oI=I('<div class="flex items-center gap-2"><!> <span class="text-ui shrink-0 tabular-nums text-muted-foreground"> </span></div>'),sI=I('<div class="flex items-center justify-between text-ui"><span class="text-muted-foreground"> </span> <span class="tabular-nums"><span class="text-success"> </span> <span class="ml-1 text-danger"> </span></span></div>'),iI=I('<div class="flex items-center justify-between text-ui"><span class="text-muted-foreground"> </span></div>'),lI=I('<div class="flex items-center text-ui"><span> </span></div>'),cI=I('<div class="flex flex-col gap-1 px-3 pb-2.5"><!> <!> <!> <!></div>'),dI=I('<div class="relative z-10 flex items-center gap-1.5 px-2 pb-2"><!></div>'),uI=I('<div class="relative z-10 flex items-center gap-1.5 px-2 pb-2"><!> <!></div>'),pI=I('<div role="group"><!> <div class="flex items-start gap-2.5 px-3 pt-3 pb-2"><!> <div class="flex-1 min-w-0"><div class="text-sm font-medium"> </div> <div class="mt-0.5 line-clamp-2 text-xs leading-snug text-muted-foreground"> </div></div></div> <!> <!></div>');function cl(r,t){if(new.target)return Bt({component:cl,...r});zt(t,!0);const n=()=>mt($e,"$prMonitors$",c),a=()=>mt($,"$microConnected$",c),o=()=>mt(xe,"$hidesOwnerActions$",c),s=()=>mt(Y,"$workspaceKeySlot$",c),[c,l]=la();let p=h(t,"workspace",7),i=h(t,"phase",7),f=h(t,"stats",7),v=h(t,"variant",7,"compact"),M=h(t,"showTime",7,!0),_=h(t,"isRunning",7,!1),y=h(t,"isUnread",7,!1),R=h(t,"isWaiting",7),N=h(t,"isPinned",7,!1),D=h(t,"streamingAgentIds",23,()=>[]),H=h(t,"hasSpec",7,!1),C=h(t,"isAgentRunning",7,!1),A=h(t,"agentDigest",7),U=h(t,"trailingLabel",7),k=h(t,"title",7),F=h(t,"repoName",7),V=h(t,"branch",7),z=h(t,"onClick",7),G=h(t,"onAction",7),ie=h(t,"onTogglePin",7),Z=h(t,"onMarkAsRead",7),ke=h(t,"onOpenInNewWindow",7),oe=h(t,"onHover",7),Ae=h(t,"highlighted",7,!1),ge=h(t,"selected",7,!1),Ie=h(t,"highlightId",7),te=h(t,"suppressHover",7,!1),Q=h(t,"hoverPreview",7,!0),we=h(t,"isolateHoverReveal",7,!1),ue=h(t,"class",7),be=h(t,"actions",7);const Ge=Ro("");wt(()=>{Ge.set(p()?.id??"")});const $e=zg(Ge),$=ay(),Y=bh(Ge),xe=Wg(Ge),j=d(()=>$b(p()??{})),q=d(()=>ey(e(j)));let J=d(()=>p()?Yb.url.pathname===`/workspace/${p().id}`:!1),se=d(()=>p()?`workspace-hover-card-${p().id}`:void 0),_e=ye(!1),Ne=ye(null),ee=ye(null);wt(()=>{if(!e(ee))return;const ae=ys(e(ee),{id:Ie()});return()=>ae.destroy()});let pe=ye(null),ce=ye(null),et=ye(null),me=ye(0),Ee=ye(0),X=d(()=>e(me)+(e(Ee)>0?e(Ee)+4:0));function Ce(){const ae=e(pe),pt=e(et);T(me,ae?Math.max(0,ae.scrollWidth-ae.clientWidth):0,!0),T(Ee,ae&&pt&&pt.getClientRects().length>0?Math.max(0,ae.getBoundingClientRect().right-pt.getBoundingClientRect().left):0,!0)}wt(()=>{const ae=e(pe),pt=e(ce),At=e(et);if(!ae||!pt||(Ce(),typeof ResizeObserver>"u"))return;const hr=new ResizeObserver(Ce);return hr.observe(ae),hr.observe(pt),At&&hr.observe(At),()=>hr.disconnect()});let fe=null,O=null,K=!1,Pe=!1,qe=!1,Le=!1,je=!1,Ke=!1,lt=ye(!1),bt=!1,yt=null,qt=ye(null),It=null,le;function Me(){fe!==null&&(clearTimeout(fe),fe=null)}function Ze(){O!==null&&(clearTimeout(O),O=null),It?.(),It=null}function gt(){Ze(),T(lt,!0),T(_e,!0),!je&&(je=!0,Yo.notifyOpened())}function dt(){Ze(),clearTimeout(le),T(lt,!1),T(_e,!1),Pe=!1,Le=!1,je&&(je=!1,Yo.notifyClosed())}function at(){return K||Pe||qe||Le}function Pt(){if(!e(_e)){dt();return}Ze(),O=setTimeout(()=>{O=null,at()||dt()},ry),It=Yo.deferClose(dt)}function St(){Pe=!0,Ze()}function _t(){Pe=!1,!qe&&!Le&&Pt()}function Nt(){Le=!0,clearTimeout(le),Ze()}function Gt(ae){const pt=ae.relatedTarget instanceof Node?ae.relatedTarget:null;if(pt&&de()?.contains(pt)||(Le=!1,pt&&e(Ne)?.contains(pt)))return;if(pt){!K&&!Pe&&dt();return}const At=ae.target;clearTimeout(le),le=setTimeout(()=>{const hr=document.activeElement,Dr=de()?.contains(hr)||e(Ne)?.contains(hr);hr&&hr!==At&&Dr||!K&&!Pe&&dt()},0)}function tr(){yt!==null&&clearTimeout(yt),bt=!0,yt=setTimeout(()=>{bt=!1,yt=null},0)}function Vt(ae){const pt=ae.target,At=de();pt instanceof Node&&At?.contains(pt)||ae.type==="scroll"&&e(Ne)&&pt instanceof Node&&!pt.contains(e(Ne))||(ae.type==="pointerdown"&&tr(),Me(),dt())}wt(()=>{if(e(lt))return window.addEventListener("pointerdown",Vt,!0),window.addEventListener("scroll",Vt,!0),()=>{window.removeEventListener("pointerdown",Vt,!0),window.removeEventListener("scroll",Vt,!0)}});function Oe(ae){if(ae.key!=="Escape")return;const pt=ae.target;pt instanceof Node&&de()?.contains(pt)||(ae.preventDefault(),ae.stopPropagation(),Ke=qe,Me(),dt())}wt(()=>{if(e(_e))return window.addEventListener("keydown",Oe,!0),()=>window.removeEventListener("keydown",Oe,!0)});const ve=d(()=>p()?Ug.select(Ot.state,p().id):null),Qe=d(()=>e(ve)?e(ve):p()?.activePullRequest?p().activePullRequest:!p()?.prStatus||p().prNumber==null?null:{id:`legacy-pr-${p().prNumber}`,number:p().prNumber,url:p().prUrl??"",title:g.workspace_hoverCard_pullRequest_label(),status:p().prStatus,createdAt:p().updatedAt,updatedAt:p().updatedAt}),st=d(()=>jg(p())),nt=d(()=>{if(!p()||e(st))return[];const ae=p(),pt=ae.repositoryOwner&&ae.repositoryName?`${ae.repositoryOwner}/${ae.repositoryName}`:void 0;return ih({workspacePRs:ae.pullRequests,activePR:e(Qe),monitors:n(),workspaceRepo:pt,buildPrUrl:(At,hr)=>Wm(At,ae.repositoryOwner,ae.repositoryName,hr),getDisplayTitle:At=>At.title})}),He=d(()=>e(nt)[0]);function re(ae){const pt=ae.resource?.repository.provider==="gitlab"?`${ae.repo} !${ae.number}`:ae.repo?g.workspace_card_prBadge_repoLine_tooltip({repo:ae.repo,number:ae.number}):g.workspace_card_prBadge_label({number:` #${ae.number}`});return[qg(pt,ae),ae.title,ae.details].filter(Boolean).join(`
296
296
  `)}function Se(ae){ae.key==="Enter"&&z()?.(ae)}function de(){return e(se)?document.getElementById(e(se)):null}function Fe(){return Array.from(de()?.querySelectorAll("button:not(:disabled), a[href]")??[])}function Te(){const ae=e(Ne)?.querySelector("[data-workspace-card-trigger]"),pt=de();if(!ae||!pt)return null;const At=Array.from(document.querySelectorAll('button:not(:disabled), a[href], input:not(:disabled), select:not(:disabled), textarea:not(:disabled), [tabindex]:not([tabindex="-1"])')).filter(Dr=>Dr.tabIndex>=0&&!pt.contains(Dr)),hr=At.indexOf(ae);return hr>=0?At[hr+1]:null}function Re(ae){Ke=!!e(Ne)?.contains(ae),dt(),ae.focus({preventScroll:!0})}function ze(){const ae=e(Ne)?.querySelector("[data-workspace-card-trigger]");ae&&Re(ae)}async function Je(ae){if(ae.key==="Escape"&&e(_e)){ae.preventDefault(),ae.stopPropagation(),dt();return}ae.key!=="ArrowDown"||te()||!p()||(ae.preventDefault(),ae.stopPropagation(),T(lt,!0),T(_e,!0),await zn(),Fe()[0]?.focus({preventScroll:!0}))}function tt(ae){const pt=Fe(),At=ae.key==="Tab"&&ae.shiftKey&&ae.currentTarget===pt[0],Dr=ae.key==="Tab"&&!ae.shiftKey&&ae.currentTarget===pt.at(-1)?Te():null;ae.key!=="Escape"&&!At&&!Dr||(ae.preventDefault(),ae.stopPropagation(),Dr?Re(Dr):ze())}function Ve(){K=!0,Ze(),Yo.settleDeferredCloses(),Ce(),oe()?.(),p()&&!te()&&!qe&&(Me(),T(lt,!0),fe=setTimeout(()=>{fe=null,gt()},Yo.currentOpenDelay))}function Ye(){K=!1,Me(),!qe&&!Le&&Pt()}function Ue(){qe=!0,Me(),Ze(),!Ke&&(bt||p()&&!te()&&(T(lt,!0),T(_e,!0)))}function rt(ae){const pt=ae.relatedTarget instanceof Node?ae.relatedTarget:null;pt&&e(Ne)?.contains(pt)||(Ke=!1,qe=!1,!(pt&&de()?.contains(pt))&&!K&&!Pe&&dt())}wt(()=>{te()&&(Me(),Ze(),dt())});let it=ye(null),Xe=ye(!1),ut;wt(()=>{const ae=p()?.id;ut!==ae&&(ut=ae,T(Xe,!1)),e(it)&&e(it).workspaceId!==p()?.id&&vt()});function Kt(ae){if(!p())return;const pt=Eu(ae);if(pt){if(T(Xe,!1),Rt().length===0){T(it,null);return}T(it,{...pt,returnFocus:ae.target instanceof HTMLElement?ae.target.closest("button")??e(Ne)?.querySelector("button")??null:null,workspaceId:p().id},!0)}}function vt(){T(it,null),T(Xe,!1)}wt(()=>{e(Xe)&&T(it,null)}),_o(()=>{Me(),Ze(),yt!==null&&(clearTimeout(yt),yt=null),dt()});function Rt(){if(!p())return[];const ae=[];return ke()&&ae.push({id:"open-new-window",label:g.workspace_card_openNewWindow_label(),icon:eu,onClick:()=>{ke()?.(),vt()}}),ae.push(...ty(p().id,{connected:a(),onClose:vt})),o()||(e(st)||ae.push({id:"transfer",label:g.workspace_card_transfer_label(),icon:wv,onClick:()=>{Ot.dispatch(Kv({workspaceId:p().id,workspaceTitle:p().title})),vt()}}),ae.push({id:"archive",label:g.workspace_card_archive_label(),icon:tu,onClick:()=>{Ot.dispatch(fu(p().id)),vt()}}),ae.push({id:"delete",label:g.workspace_card_deleteSpace_label(),icon:ru,destructive:!0,onClick:()=>{Ot.dispatch(gu(p().id)),vt()}})),ae}let Yt=d(()=>C()&&A()?A():i()?.subtitle??""),Xt=d(()=>f()&&f().tasks.total>0?f().tasks.completed/f().tasks.total:0),_r=d(()=>!!f()&&(f().tasks.total>0||f().files.changed>0||f().commits.total>0||f().pr.hasOpen||f().pr.hasMerged)),Or=d(()=>e(st)?void 0:V()),gn=d(()=>!f()||e(st)?"":f().pr.hasMerged?g.workspace_card_prMerged_label({number:f().pr.number??""}):f().pr.hasOpen?g.workspace_card_prOpen_label({number:f().pr.number?`#${f().pr.number}`:""}):""),zr=d(()=>i()?.phase==="planning"?C()?{primary:{label:g.workspace_card_showCoordinator_label(),action:"show-coordinator"},secondary:{label:g.workspace_card_pause_label(),action:"pause"}}:H()||(f()?.tasks.total??0)>0?{primary:{label:g.workspace_card_approveStart_label(),action:"approve"},secondary:{label:g.workspace_card_viewSpec_label(),action:"view-spec"}}:{primary:{label:g.workspace_card_showCoordinator_label(),action:"show-coordinator"},secondary:{label:g.workspace_card_viewSpec_label(),action:"view-spec"}}:i()?.phase==="building"?{primary:{label:g.workspace_card_showCoordinator_label(),action:"show-coordinator"},secondary:{label:g.workspace_card_pause_label(),action:"pause"}}:i()?.phase==="reviewing"?{primary:{label:g.workspace_card_createPr_label(),action:"create-pr"},secondary:{label:g.workspace_card_showChanges_label(),action:"show-changes"}}:{primary:{label:g.workspace_card_archive_label(),action:"archive"},secondary:{label:g.workspace_card_showChanges_label(),action:"show-changes"}});const mr={planning:"bg-muted/20 text-muted-foreground",building:"bg-info/15 text-info",reviewing:"bg-primary/15 text-primary",shipped:"bg-foreground/10 text-foreground"};var jn={get workspace(){return p()},set workspace(ae){p(ae),b()},get phase(){return i()},set phase(ae){i(ae),b()},get stats(){return f()},set stats(ae){f(ae),b()},get variant(){return v()},set variant(ae="compact"){v(ae),b()},get showTime(){return M()},set showTime(ae=!0){M(ae),b()},get isRunning(){return _()},set isRunning(ae=!1){_(ae),b()},get isUnread(){return y()},set isUnread(ae=!1){y(ae),b()},get isWaiting(){return R()},set isWaiting(ae){R(ae),b()},get isPinned(){return N()},set isPinned(ae=!1){N(ae),b()},get streamingAgentIds(){return D()},set streamingAgentIds(ae=[]){D(ae),b()},get hasSpec(){return H()},set hasSpec(ae=!1){H(ae),b()},get isAgentRunning(){return C()},set isAgentRunning(ae=!1){C(ae),b()},get agentDigest(){return A()},set agentDigest(ae){A(ae),b()},get trailingLabel(){return U()},set trailingLabel(ae){U(ae),b()},get title(){return k()},set title(ae){k(ae),b()},get repoName(){return F()},set repoName(ae){F(ae),b()},get branch(){return V()},set branch(ae){V(ae),b()},get onClick(){return z()},set onClick(ae){z(ae),b()},get onAction(){return G()},set onAction(ae){G(ae),b()},get onTogglePin(){return ie()},set onTogglePin(ae){ie(ae),b()},get onMarkAsRead(){return Z()},set onMarkAsRead(ae){Z(ae),b()},get onOpenInNewWindow(){return ke()},set onOpenInNewWindow(ae){ke(ae),b()},get onHover(){return oe()},set onHover(ae){oe(ae),b()},get highlighted(){return Ae()},set highlighted(ae=!1){Ae(ae),b()},get selected(){return ge()},set selected(ae=!1){ge(ae),b()},get highlightId(){return Ie()},set highlightId(ae){Ie(ae),b()},get suppressHover(){return te()},set suppressHover(ae=!1){te(ae),b()},get hoverPreview(){return Q()},set hoverPreview(ae=!0){Q(ae),b()},get isolateHoverReveal(){return we()},set isolateHoverReveal(ae=!1){we(ae),b()},get class(){return ue()},set class(ae){ue(ae),b()},get actions(){return be()},set actions(ae){be(ae),b()},$set:Ft,$on:(ae,pt)=>Ht(t,ae,pt)},Sn=ht(),_a=De(Sn);{var Rn=ae=>{var pt=Q2(),At=De(pt);let hr;var Dr=E(At);{let xt=d(()=>p().title||g.workspace_links_untitled_label()),Tt=d(()=>`workspace-status-state-${p().id}${N()?` workspace-pinned-state-${p().id}`:""}${e(_e)?` ${e(se)}`:""}`),cr=d(()=>e(J)?"page":void 0);Ct(Dr,{variant:"plain",class:"absolute inset-0 z-0 h-auto w-auto rounded-md focus-visible:border-transparent focus-visible:bg-background/50 focus-visible:ring-0",get"aria-label"(){return e(xt)},get"aria-describedby"(){return e(Tt)},get"aria-current"(){return e(cr)},"data-workspace-card-trigger":!0,onkeydown:Je,onclick:yr=>{yr.stopPropagation(),z()?.(yr)}})}var Br=m(Dr,2),qn=E(Br);{var Mn=xt=>{var Tt=U2(),cr=E(Tt);{var yr=Er=>{Yp(Er,{get workspaceId(){return p().id},get slot(){return s()}})};B(cr,Er=>{s()!==null&&Er(yr)})}w(Tt),u(xt,Tt)};B(qn,xt=>{a()&&xt(Mn)})}var Vn=m(qn,2);Di(Vn,{get content(){return e(q).tooltip},side:"bottom",sideOffset:4,children:(xt,Tt)=>{Qb(xt,{get status(){return e(j)},size:14,decorative:!0,class:"justify-start"})},$$slots:{default:!0}});var ca=m(Vn,2),da=L(ca,!0);w(Br);var Tr=m(Br,2),rn=E(Tr),$t=E(rn),Cr=E($t),Zn=L(Cr,!0);vr(Cr,xt=>T(ce,xt),()=>e(ce)),w($t),vr($t,xt=>T(pe,xt),()=>e(pe));var wr=m($t,2);{var dr=xt=>{var Tt=q2(),cr=De(Tt),yr=E(cr);Mt(yr,{get icon(){return tc},size:"xs"}),w(cr);var Er=m(cr,2),Pr=L(Er,!0);S(ua=>{ft(cr,1,`wc-pin-indicator inline-flex shrink-0 items-center text-muted-foreground transition-opacity
297
- ${ie()?Ae()?"opacity-0":te()?"":we()?"group-hover/wc:opacity-0 group-focus-within/wc:opacity-0":"group-hover:opacity-0 group-focus-within:opacity-0":""}`,"svelte-1ct56pd"),ne(Er,"id",`workspace-pinned-state-${p().id??""}`),x(Pr,ua)},[()=>g.layout_activeCard_pinned_header()]),u(xt,Tt)};B(wr,xt=>{N()&&xt(dr)})}w(rn);var br=m(rn,2);{var Ea=xt=>{var Tt=V2(),cr=L(Tt,!0);S(()=>x(cr,U())),u(xt,Tt)};B(br,xt=>{U()&&xt(Ea)})}var Wr=m(br,2);{var Yr=xt=>{const Tt=d(()=>e(He));var cr=G2(),yr=E(cr);{let Er=d(()=>re(e(Tt)));Di(yr,{get content(){return e(Er)},side:"bottom",sideOffset:4,children:(Pr,ua)=>{var pa=ht(),Aa=De(pa);{var Fr=Cn=>{{let Hr=d(()=>re(e(Tt)));Ct(Cn,{variant:"plain",size:"icon-compact",iconOnly:!0,get class(){return`size-5 shrink-0 rounded-sm ${e(Tt).foregroundClass??""}`},get"aria-label"(){return e(Hr)},"data-workspace-card-pr-item":!0,get"data-pr-identity"(){return e(Tt).identity},get"data-pr-status"(){return e(Tt).status},onclick:hn=>{hn.stopPropagation();const qa=p().id;pg(async()=>{const{handleLink:Ra}=await import("./BweHPPaS.js").then(En=>En.l);return{handleLink:Ra}},__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46]),import.meta.url).then(({handleLink:Ra})=>Ra(e(Tt).url,{workspaceId:qa,event:hn}))},children:(hn,qa)=>{Mt(hn,{get icon(){return e(Tt).statusIcon},size:14})},$$slots:{default:!0}})}},Ta=Cn=>{var Hr=K2(),hn=E(Hr);Mt(hn,{get icon(){return e(Tt).statusIcon},size:14}),w(Hr),S(qa=>{ft(Hr,1,`inline-flex size-5 shrink-0 items-center justify-center rounded-sm ${e(Tt).foregroundClass??""}`,"svelte-1ct56pd"),ne(Hr,"aria-label",qa),ne(Hr,"data-pr-identity",e(Tt).identity),ne(Hr,"data-pr-status",e(Tt).status)},[()=>re(e(Tt))]),u(Cn,Hr)};B(Aa,Cn=>{e(Tt).url?Cn(Fr):Cn(Ta,-1)})}u(Pr,pa)},$$slots:{default:!0}})}w(cr),S(Er=>ne(cr,"aria-label",Er),[()=>e(Tt).resource?.repository.provider==="gitlab"?g.workspace_hoverCard_mergeRequest_label():g.workspace_hoverCard_pullRequest_label()]),u(xt,cr)};B(Wr,xt=>{e(He)&&xt(Yr)})}var Xr=m(Wr,2);{var Pa=xt=>{var Tt=J2(),cr=E(Tt);{var yr=Pr=>{{let ua=d(()=>ic(p()));tv(Pr,{get date(){return e(ua)},class:"type-caption whitespace-nowrap tabular-nums text-muted-foreground",compact:!0})}},Er=d(()=>ic(p())>0);B(cr,Pr=>{e(Er)&&Pr(yr)})}w(Tt),S(()=>ft(Tt,1,`wc-secondary shrink-0 ${be()||ie()||y()&&Z()?Ae()?"opacity-0":te()?"":we()?"group-hover/wc:opacity-0 group-hover/message:opacity-0":"group-hover:opacity-0 group-hover/message:opacity-0":""}`,"svelte-1ct56pd")),u(xt,Tt)};B(Xr,xt=>{M()&&xt(Pa)})}w(Tr);var Ua=m(Tr,2);{var io=xt=>{var Tt=X2(),cr=E(Tt);{var yr=Fr=>{{let Ta=d(()=>N()?"text-primary-ink":"text-muted-foreground"),Cn=d(()=>N()?g.workspace_card_unpin_ariaLabel():g.workspace_card_pin_ariaLabel()),Hr=d(()=>N()?g.workspace_card_unpin_tooltip():g.workspace_card_pin_tooltip());Ct(Fr,{variant:"plain",size:"icon-xs",iconOnly:!0,get class(){return`transition-all hover:bg-muted/50 hover:text-foreground focus-visible:border-transparent focus-visible:bg-muted/50 focus-visible:text-foreground focus-visible:ring-0
297
+ ${ie()?Ae()?"opacity-0":te()?"":we()?"group-hover/wc:opacity-0 group-focus-within/wc:opacity-0":"group-hover:opacity-0 group-focus-within:opacity-0":""}`,"svelte-1ct56pd"),ne(Er,"id",`workspace-pinned-state-${p().id??""}`),x(Pr,ua)},[()=>g.layout_activeCard_pinned_header()]),u(xt,Tt)};B(wr,xt=>{N()&&xt(dr)})}w(rn);var br=m(rn,2);{var Ea=xt=>{var Tt=V2(),cr=L(Tt,!0);S(()=>x(cr,U())),u(xt,Tt)};B(br,xt=>{U()&&xt(Ea)})}var Wr=m(br,2);{var Yr=xt=>{const Tt=d(()=>e(He));var cr=G2(),yr=E(cr);{let Er=d(()=>re(e(Tt)));Di(yr,{get content(){return e(Er)},side:"bottom",sideOffset:4,children:(Pr,ua)=>{var pa=ht(),Aa=De(pa);{var Fr=Cn=>{{let Hr=d(()=>re(e(Tt)));Ct(Cn,{variant:"plain",size:"icon-compact",iconOnly:!0,get class(){return`size-5 shrink-0 rounded-sm ${e(Tt).foregroundClass??""}`},get"aria-label"(){return e(Hr)},"data-workspace-card-pr-item":!0,get"data-pr-identity"(){return e(Tt).identity},get"data-pr-status"(){return e(Tt).status},onclick:hn=>{hn.stopPropagation();const qa=p().id;pg(async()=>{const{handleLink:Ra}=await import("./FhJRiT1S.js").then(En=>En.l);return{handleLink:Ra}},__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46]),import.meta.url).then(({handleLink:Ra})=>Ra(e(Tt).url,{workspaceId:qa,event:hn}))},children:(hn,qa)=>{Mt(hn,{get icon(){return e(Tt).statusIcon},size:14})},$$slots:{default:!0}})}},Ta=Cn=>{var Hr=K2(),hn=E(Hr);Mt(hn,{get icon(){return e(Tt).statusIcon},size:14}),w(Hr),S(qa=>{ft(Hr,1,`inline-flex size-5 shrink-0 items-center justify-center rounded-sm ${e(Tt).foregroundClass??""}`,"svelte-1ct56pd"),ne(Hr,"aria-label",qa),ne(Hr,"data-pr-identity",e(Tt).identity),ne(Hr,"data-pr-status",e(Tt).status)},[()=>re(e(Tt))]),u(Cn,Hr)};B(Aa,Cn=>{e(Tt).url?Cn(Fr):Cn(Ta,-1)})}u(Pr,pa)},$$slots:{default:!0}})}w(cr),S(Er=>ne(cr,"aria-label",Er),[()=>e(Tt).resource?.repository.provider==="gitlab"?g.workspace_hoverCard_mergeRequest_label():g.workspace_hoverCard_pullRequest_label()]),u(xt,cr)};B(Wr,xt=>{e(He)&&xt(Yr)})}var Xr=m(Wr,2);{var Pa=xt=>{var Tt=J2(),cr=E(Tt);{var yr=Pr=>{{let ua=d(()=>ic(p()));tv(Pr,{get date(){return e(ua)},class:"type-caption whitespace-nowrap tabular-nums text-muted-foreground",compact:!0})}},Er=d(()=>ic(p())>0);B(cr,Pr=>{e(Er)&&Pr(yr)})}w(Tt),S(()=>ft(Tt,1,`wc-secondary shrink-0 ${be()||ie()||y()&&Z()?Ae()?"opacity-0":te()?"":we()?"group-hover/wc:opacity-0 group-hover/message:opacity-0":"group-hover:opacity-0 group-hover/message:opacity-0":""}`,"svelte-1ct56pd")),u(xt,Tt)};B(Xr,xt=>{M()&&xt(Pa)})}w(Tr);var Ua=m(Tr,2);{var io=xt=>{var Tt=X2(),cr=E(Tt);{var yr=Fr=>{{let Ta=d(()=>N()?"text-primary-ink":"text-muted-foreground"),Cn=d(()=>N()?g.workspace_card_unpin_ariaLabel():g.workspace_card_pin_ariaLabel()),Hr=d(()=>N()?g.workspace_card_unpin_tooltip():g.workspace_card_pin_tooltip());Ct(Fr,{variant:"plain",size:"icon-xs",iconOnly:!0,get class(){return`transition-all hover:bg-muted/50 hover:text-foreground focus-visible:border-transparent focus-visible:bg-muted/50 focus-visible:text-foreground focus-visible:ring-0
298
298
  ${e(Ta)??""}`},onclick:hn=>{hn.stopPropagation(),ie()?.(hn)},get"aria-label"(){return e(Cn)},get title(){return e(Hr)},children:(hn,qa)=>{var Ra=Y2(),En=E(Ra);Mt(En,{get icon(){return tc},size:"xs"}),w(Ra),u(hn,Ra)},$$slots:{default:!0}})}};B(cr,Fr=>{ie()&&Fr(yr)})}var Er=m(cr,2);{var Pr=Fr=>{{let Ta=d(()=>g.workspace_card_markAsRead_label()),Cn=d(()=>g.workspace_card_markAsRead_label());Ct(Fr,{variant:"plain",size:"icon-xs",iconOnly:!0,class:"text-muted-foreground hover:bg-muted/50 hover:text-foreground focus-visible:border-transparent focus-visible:bg-muted/50 focus-visible:text-foreground focus-visible:ring-0",onclick:Hr=>{Hr.stopPropagation(),Z()?.(Hr)},get"aria-label"(){return e(Ta)},get title(){return e(Cn)},children:(Hr,hn)=>{Mt(Hr,{get icon(){return nu},size:"xs"})},$$slots:{default:!0}})}};B(Er,Fr=>{y()&&Z()&&Fr(Pr)})}var ua=m(Er,2);pn(ua,()=>be()??$o);var pa=m(ua,2);{var Aa=Fr=>{{let Ta=d(Rt),Cn=d(()=>g.workspace_progressCard_actions_ariaLabel());Ws(Fr,{get items(){return e(Ta)},get ariaLabel(){return e(Cn)},class:"flex size-5 cursor-pointer items-center justify-center rounded text-muted-foreground transition-colors hover:bg-muted/50 hover:text-foreground focus-visible:bg-muted/50 focus-visible:text-foreground focus-visible:outline-none",get open(){return e(Xe)},set open(Hr){T(Xe,Hr,!0)}})}};B(pa,Fr=>{ke()&&Fr(Aa)})}w(Tt),vr(Tt,Fr=>T(et,Fr),()=>e(et)),S(()=>ft(Tt,1,`wc-actions absolute right-1 top-1/2 z-20 flex -translate-y-1/2 items-center gap-0.5 rounded-md bg-accent/95 px-0.5 focus-within:opacity-100
299
299
  ${we()?"group-focus-within/wc:opacity-100":"group-focus-within:opacity-100"}
300
300
  ${Ae()?"opacity-100":te()?"opacity-0":we()?"opacity-0 group-hover/wc:opacity-100":"opacity-0 group-hover:opacity-100"}`,"svelte-1ct56pd")),u(xt,Tt)};B(Ua,xt=>{(be()||ke()||ie()||y()&&Z())&&xt(io)})}w(At),vr(At,xt=>T(Ne,xt),()=>e(Ne)),Wn(At,(xt,Tt)=>ys?.(xt,Tt),()=>({id:Ie()}));var Zr=m(At,2);{var nn=xt=>{Xb(xt,{get id(){return e(se)},get anchor(){return`--workspace-list-${p().id??""}`},position:"right",get anchorElement(){return e(Ne)},class:"w-auto overflow-visible! rounded-lg border-0! bg-background! shadow-none!",onmouseenter:St,onmouseleave:_t,onfocusin:Nt,onfocusout:Gt,children:(Tt,cr)=>{var yr=Z2(),Er=E(yr);ny(Er,{get workspace(){return p()},get activeAgentIds(){return D()},onkeydown:tt}),w(yr),vr(yr,Pr=>T(qt,Pr),()=>e(qt)),An("pointerenter",yr,St),An("pointerleave",yr,_t),Nr("focusin",yr,Nt),Nr("focusout",yr,Gt),u(Tt,yr)},$$slots:{default:!0}})};B(Zr,xt=>{e(_e)&&!te()&&Q()&&xt(nn)})}var gr=m(Zr,2);{var Qn=xt=>{const Tt=d(Rt);var cr=ht(),yr=De(cr);{var Er=Pr=>{{let ua=d(()=>e(it)?.x??0),pa=d(()=>e(it)?.y??0),Aa=d(()=>e(it)?.returnFocus),Fr=d(()=>g.workspace_progressCard_actions_ariaLabel());Pu(Pr,{get x(){return e(ua)},get y(){return e(pa)},get returnFocus(){return e(Aa)},get ariaLabel(){return e(Fr)},get items(){return e(Tt)},onClickOutside:vt})}};B(yr,Pr=>{e(Tt).length>0&&Pr(Er)})}u(xt,cr)};B(gr,xt=>{e(it)&&xt(Qn)})}S((xt,Tt,cr)=>{ft(At,1,xt,"svelte-1ct56pd"),ne(At,"data-pinned",N()),ne(At,"data-highlight-id",Ie()),hr=Tn(At,"",hr,{"anchor-name":`--workspace-list-${p().id??""}`}),ne(ca,"id",`workspace-status-state-${p().id??""}`),x(da,e(q).accessibleName),ft($t,1,`wc-title type-body min-w-0 truncate font-normal!
@@ -1,4 +1,4 @@
1
- import{p as z}from"./CaHWSiOY.js";import{b as f,q as B,aX as E,B as F,ay as $,a_ as P,V as A,b0 as W,Y as _,U as N,aZ as Y,W as L,O as M,r as O}from"./BolJpU8l.js";import{p as I}from"./C4M_mNFP.js";var U=M.packet,u,C=(u=class{constructor(){this.packet=[],this.setAccTitle=P,this.getAccTitle=A,this.setDiagramTitle=W,this.getDiagramTitle=_,this.getAccDescription=N,this.setAccDescription=Y}getConfig(){const t=B({...U,...L().packet});return t.showBits&&(t.paddingY+=10),t}getPacket(){return this.packet}pushWord(t){t.length>0&&this.packet.push(t)}clear(){O(),this.packet=[]}},f(u,"PacketDB"),u),X=1e4,j=f((e,t)=>{z(e,t);let r=-1,s=[],i=1;const{bitsPerRow:l}=t.getConfig();for(let{start:a,end:o,bits:d,label:g}of e.blocks){if(a!==void 0&&o!==void 0&&o<a)throw new Error(`Packet block ${a} - ${o} is invalid. End must be greater than start.`);if(a??=r+1,a!==r+1)throw new Error(`Packet block ${a} - ${o??a} is not contiguous. It should start from ${r+1}.`);if(d===0)throw new Error(`Packet block ${a} is invalid. Cannot have a zero bit field.`);for(o??=a+(d??1)-1,d??=o-a+1,r=o,$.debug(`Packet block ${a} - ${r} with label ${g}`);s.length<=l+1&&t.getPacket().length<X;){const[c,p]=q({start:a,end:o,bits:d,label:g},i,l);if(s.push(c),c.end+1===i*l&&(t.pushWord(s),s=[],i++),!p)break;({start:a,end:o,bits:d,label:g}=p)}}t.pushWord(s)},"populate"),q=f((e,t,r)=>{if(e.start===void 0)throw new Error("start should have been set during first phase");if(e.end===void 0)throw new Error("end should have been set during first phase");if(e.start>e.end)throw new Error(`Block start ${e.start} is greater than block end ${e.end}.`);if(e.end+1<=t*r)return[e,void 0];const s=t*r-1,i=t*r;return[{start:e.start,end:s,label:e.label,bits:s-e.start},{start:i,end:e.end,label:e.label,bits:e.end-i}]},"getNextFittingBlock"),S={parser:{yy:void 0},parse:f(async e=>{const t=await I("packet",e),r=S.parser?.yy;if(!(r instanceof C))throw new Error("parser.parser?.yy was not a PacketDB. This is due to a bug within Mermaid, please report this issue at https://github.com/mermaid-js/mermaid/issues.");$.debug(t),j(t,r)},"parse")},G=f((e,t,r,s)=>{const i=s.db,l=i.getConfig(),{rowHeight:a,paddingY:o,bitWidth:d,bitsPerRow:g}=l,c=i.getPacket(),p=i.getDiagramTitle(),m=a+o,n=m*(c.length+1)-(p?0:a),h=d*g+2,k=E(t);k.attr("viewBox",`0 0 ${h} ${n}`),F(k,n,h,l.useMaxWidth);for(const[x,b]of c.entries())H(k,b,x,l);k.append("text").text(p).attr("x",h/2).attr("y",n-m/2).attr("dominant-baseline","middle").attr("text-anchor","middle").attr("class","packetTitle")},"draw"),H=f((e,t,r,{rowHeight:s,paddingX:i,paddingY:l,bitWidth:a,bitsPerRow:o,showBits:d,bitOrder:g})=>{const c=e.append("g"),p=r*(s+l)+l,m=g==="descending";for(const n of t){const h=n.end-n.start+1,k=n.start%o,b=(m?o-k-h:k)*a+1,w=h*a-i;if(c.append("rect").attr("x",b).attr("y",p).attr("width",w).attr("height",s).attr("class","packetBlock"),c.append("text").attr("x",b+w/2).attr("y",p+s/2).attr("class","packetLabel").attr("dominant-baseline","middle").attr("text-anchor","middle").text(n.label),!d)continue;const[D,T]=m?[n.end,n.start]:[n.start,n.end],v=h===1,y=p-2;c.append("text").attr("x",b+(v?w/2:0)).attr("y",y).attr("class","packetByte start").attr("dominant-baseline","auto").attr("text-anchor",v?"middle":"start").text(D),v||c.append("text").attr("x",b+w).attr("y",y).attr("class","packetByte end").attr("dominant-baseline","auto").attr("text-anchor","end").text(T)}},"drawWord"),K={draw:G},V={byteFontSize:"10px",startByteColor:"black",endByteColor:"black",labelColor:"black",labelFontSize:"12px",titleColor:"black",titleFontSize:"14px",blockStrokeColor:"black",blockStrokeWidth:"1",blockFillColor:"#efefef"},Z=f(({packet:e}={})=>{const t=B(V,e);return`
1
+ import{p as z}from"./CzFfpwQB.js";import{b as f,q as B,aX as E,B as F,ay as $,a_ as P,V as A,b0 as W,Y as _,U as N,aZ as Y,W as L,O as M,r as O}from"./B1lrKll_.js";import{p as I}from"./D2y-zN_4.js";var U=M.packet,u,C=(u=class{constructor(){this.packet=[],this.setAccTitle=P,this.getAccTitle=A,this.setDiagramTitle=W,this.getDiagramTitle=_,this.getAccDescription=N,this.setAccDescription=Y}getConfig(){const t=B({...U,...L().packet});return t.showBits&&(t.paddingY+=10),t}getPacket(){return this.packet}pushWord(t){t.length>0&&this.packet.push(t)}clear(){O(),this.packet=[]}},f(u,"PacketDB"),u),X=1e4,j=f((e,t)=>{z(e,t);let r=-1,s=[],i=1;const{bitsPerRow:l}=t.getConfig();for(let{start:a,end:o,bits:d,label:g}of e.blocks){if(a!==void 0&&o!==void 0&&o<a)throw new Error(`Packet block ${a} - ${o} is invalid. End must be greater than start.`);if(a??=r+1,a!==r+1)throw new Error(`Packet block ${a} - ${o??a} is not contiguous. It should start from ${r+1}.`);if(d===0)throw new Error(`Packet block ${a} is invalid. Cannot have a zero bit field.`);for(o??=a+(d??1)-1,d??=o-a+1,r=o,$.debug(`Packet block ${a} - ${r} with label ${g}`);s.length<=l+1&&t.getPacket().length<X;){const[c,p]=q({start:a,end:o,bits:d,label:g},i,l);if(s.push(c),c.end+1===i*l&&(t.pushWord(s),s=[],i++),!p)break;({start:a,end:o,bits:d,label:g}=p)}}t.pushWord(s)},"populate"),q=f((e,t,r)=>{if(e.start===void 0)throw new Error("start should have been set during first phase");if(e.end===void 0)throw new Error("end should have been set during first phase");if(e.start>e.end)throw new Error(`Block start ${e.start} is greater than block end ${e.end}.`);if(e.end+1<=t*r)return[e,void 0];const s=t*r-1,i=t*r;return[{start:e.start,end:s,label:e.label,bits:s-e.start},{start:i,end:e.end,label:e.label,bits:e.end-i}]},"getNextFittingBlock"),S={parser:{yy:void 0},parse:f(async e=>{const t=await I("packet",e),r=S.parser?.yy;if(!(r instanceof C))throw new Error("parser.parser?.yy was not a PacketDB. This is due to a bug within Mermaid, please report this issue at https://github.com/mermaid-js/mermaid/issues.");$.debug(t),j(t,r)},"parse")},G=f((e,t,r,s)=>{const i=s.db,l=i.getConfig(),{rowHeight:a,paddingY:o,bitWidth:d,bitsPerRow:g}=l,c=i.getPacket(),p=i.getDiagramTitle(),m=a+o,n=m*(c.length+1)-(p?0:a),h=d*g+2,k=E(t);k.attr("viewBox",`0 0 ${h} ${n}`),F(k,n,h,l.useMaxWidth);for(const[x,b]of c.entries())H(k,b,x,l);k.append("text").text(p).attr("x",h/2).attr("y",n-m/2).attr("dominant-baseline","middle").attr("text-anchor","middle").attr("class","packetTitle")},"draw"),H=f((e,t,r,{rowHeight:s,paddingX:i,paddingY:l,bitWidth:a,bitsPerRow:o,showBits:d,bitOrder:g})=>{const c=e.append("g"),p=r*(s+l)+l,m=g==="descending";for(const n of t){const h=n.end-n.start+1,k=n.start%o,b=(m?o-k-h:k)*a+1,w=h*a-i;if(c.append("rect").attr("x",b).attr("y",p).attr("width",w).attr("height",s).attr("class","packetBlock"),c.append("text").attr("x",b+w/2).attr("y",p+s/2).attr("class","packetLabel").attr("dominant-baseline","middle").attr("text-anchor","middle").text(n.label),!d)continue;const[D,T]=m?[n.end,n.start]:[n.start,n.end],v=h===1,y=p-2;c.append("text").attr("x",b+(v?w/2:0)).attr("y",y).attr("class","packetByte start").attr("dominant-baseline","auto").attr("text-anchor",v?"middle":"start").text(D),v||c.append("text").attr("x",b+w).attr("y",y).attr("class","packetByte end").attr("dominant-baseline","auto").attr("text-anchor","end").text(T)}},"drawWord"),K={draw:G},V={byteFontSize:"10px",startByteColor:"black",endByteColor:"black",labelColor:"black",labelFontSize:"12px",titleColor:"black",titleFontSize:"14px",blockStrokeColor:"black",blockStrokeWidth:"1",blockFillColor:"#efefef"},Z=f(({packet:e}={})=>{const t=B(V,e);return`
2
2
  .packetByte {
3
3
  font-size: ${t.byteFontSize};
4
4
  }