@intent-hq/web 2.350.1 → 2.351.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (266) hide show
  1. package/package.json +1 -1
  2. package/web/app/immutable/chunks/{DNZhZg57.js → -o555Jq8.js} +1 -1
  3. package/web/app/immutable/chunks/{BOMdRVXl.js → 0-xAXZgf.js} +1 -1
  4. package/web/app/immutable/chunks/{7uJhY2Ro.js → 25Qfa38y.js} +1 -1
  5. package/web/app/immutable/chunks/{BRWlAcla.js → 3yYmQx2z.js} +1 -1
  6. package/web/app/immutable/chunks/41c-5lbJ.js +1 -0
  7. package/web/app/immutable/chunks/{To-GU1hI.js → 4XRamNN4.js} +1 -1
  8. package/web/app/immutable/chunks/{SW-tnZ5e.js → 5P8mOVWK.js} +1 -1
  9. package/web/app/immutable/chunks/{C-Tv9xzP.js → 67kYB1lt.js} +1 -1
  10. package/web/app/immutable/chunks/{BtEQs3u_.js → 6pSwNbUy.js} +3 -3
  11. package/web/app/immutable/chunks/{BBYhh_eX.js → 73QfWqEv.js} +1 -1
  12. package/web/app/immutable/chunks/{Cjw1QvKa.js → AOUBMpYk.js} +1 -1
  13. package/web/app/immutable/chunks/{BT9NukZQ.js → AyGecNlS.js} +1 -1
  14. package/web/app/immutable/chunks/{CEa8rngJ.js → B-TDUD-n.js} +1 -1
  15. package/web/app/immutable/chunks/{CtUmTl5D.js → B-hKl_xx.js} +1 -1
  16. package/web/app/immutable/chunks/{Ci4xycon.js → B043Z8mk.js} +1 -1
  17. package/web/app/immutable/chunks/{D7v0ZhmL.js → B0QrNgSj.js} +1 -1
  18. package/web/app/immutable/chunks/{Ca33AaL6.js → B22owOuz.js} +1 -1
  19. package/web/app/immutable/chunks/{CV5WtbgW.js → B57wBfTw.js} +1 -1
  20. package/web/app/immutable/chunks/{B4ny9Nap.js → B5ekpGAe.js} +1 -1
  21. package/web/app/immutable/chunks/{BmxmL68T.js → B6bPIJ1k.js} +1 -1
  22. package/web/app/immutable/chunks/{D41iEHKy.js → B9aafd7C.js} +1 -1
  23. package/web/app/immutable/chunks/{Cvv8aJ4r.js → B9l9TMyA.js} +1 -1
  24. package/web/app/immutable/chunks/{B8WU5ocP.js → BA4L4UPI.js} +1 -1
  25. package/web/app/immutable/chunks/{7fznLbVZ.js → BAb3JAL_.js} +1 -1
  26. package/web/app/immutable/chunks/{Bp_k45o-.js → BBCbq-hE.js} +1 -1
  27. package/web/app/immutable/chunks/{DzPN4aFg.js → BCP62aew.js} +1 -1
  28. package/web/app/immutable/chunks/{CBVEFL-b.js → BCQGaqgQ.js} +1 -1
  29. package/web/app/immutable/chunks/{BhO09u_O.js → BDX4YTR9.js} +1 -1
  30. package/web/app/immutable/chunks/{D897Deqj.js → BDbt9cuZ.js} +1 -1
  31. package/web/app/immutable/chunks/{gq1gp-va.js → BEsCIa2p.js} +1 -1
  32. package/web/app/immutable/chunks/{D4xoTssJ.js → BH-zWM3a.js} +3 -3
  33. package/web/app/immutable/chunks/{xEQudZps.js → BHcKnFOT.js} +1 -1
  34. package/web/app/immutable/chunks/{CEI59WUF.js → BI5nb_pF.js} +1 -1
  35. package/web/app/immutable/chunks/{DWqOehs6.js → BJ5nSO_Z.js} +3 -3
  36. package/web/app/immutable/chunks/{BLiGayBi.js → BJdaIUzQ.js} +1 -1
  37. package/web/app/immutable/chunks/BJwMP_No.js +1 -0
  38. package/web/app/immutable/chunks/{rbrWRnHh.js → BOuXmWAj.js} +1 -1
  39. package/web/app/immutable/chunks/{C5_BSKQx.js → BPIrwIPC.js} +1 -1
  40. package/web/app/immutable/chunks/{UiRD2HCB.js → BSkWWR3g.js} +1 -1
  41. package/web/app/immutable/chunks/{DJBAuZjD.js → BTI1m7l8.js} +1 -1
  42. package/web/app/immutable/chunks/{BaneMq5E.js → BTLU_fQH.js} +1 -1
  43. package/web/app/immutable/chunks/{C-8EePTi.js → BXYFidlw.js} +1 -1
  44. package/web/app/immutable/chunks/{C1862fgG.js → BYT1TQGK.js} +1 -1
  45. package/web/app/immutable/chunks/{CPFtOnI7.js → BYjUWrg8.js} +1 -1
  46. package/web/app/immutable/chunks/{YeEGAsBO.js → BahcW9Py.js} +1 -1
  47. package/web/app/immutable/chunks/{UkpeErAx.js → Bd6Rwh69.js} +2 -2
  48. package/web/app/immutable/chunks/{BzSSQl6R.js → BdKft7gn.js} +1 -1
  49. package/web/app/immutable/chunks/{ChmnWquS.js → BhX-5zd9.js} +1 -1
  50. package/web/app/immutable/chunks/{BxE0TK4z.js → Bj0v3XMt.js} +1 -1
  51. package/web/app/immutable/chunks/{Bv8FuKnx.js → BjHlv5EB.js} +1 -1
  52. package/web/app/immutable/chunks/{BsAcT-SB.js → BjVx5o0n.js} +1 -1
  53. package/web/app/immutable/chunks/{BxUPDfJ4.js → BjnapXgD.js} +2 -2
  54. package/web/app/immutable/chunks/{B_EJ_ROK.js → Bkkc9nPJ.js} +3 -3
  55. package/web/app/immutable/chunks/{DMJnRVJf.js → BlcZflKW.js} +1 -1
  56. package/web/app/immutable/chunks/{9_2ZyZ9L.js → Bm0VuPYn.js} +1 -1
  57. package/web/app/immutable/chunks/{eIlGg2ZH.js → Bo40L-We.js} +1 -1
  58. package/web/app/immutable/chunks/{BHpSEINq.js → BoT__Uvu.js} +1 -1
  59. package/web/app/immutable/chunks/{D6kv6T9Z.js → BpGfQKt5.js} +1 -1
  60. package/web/app/immutable/chunks/{BJTb0iPR.js → Bpkh7IXN.js} +1 -1
  61. package/web/app/immutable/chunks/{DKPFCCGK.js → BrR0973A.js} +1 -1
  62. package/web/app/immutable/chunks/{BpfVRpLO.js → BsDTYuK1.js} +1 -1
  63. package/web/app/immutable/chunks/{BSSsvY4I.js → BuDJvkTk.js} +1 -1
  64. package/web/app/immutable/chunks/{Cw94LfJC.js → BuupGai6.js} +1 -1
  65. package/web/app/immutable/chunks/{_s2xW34N.js → Bv1i2B5u.js} +1 -1
  66. package/web/app/immutable/chunks/{DVpbdNgF.js → BwzznN4d.js} +1 -1
  67. package/web/app/immutable/chunks/{DsLKXQ10.js → ByQWAkHB.js} +1 -1
  68. package/web/app/immutable/chunks/{DM6SW5ie.js → Byr2ZhFE.js} +1 -1
  69. package/web/app/immutable/chunks/{d34yYkdR.js → BzXCk-eX.js} +1 -1
  70. package/web/app/immutable/chunks/{EBvHmS3f.js → C-cC659R.js} +1 -1
  71. package/web/app/immutable/chunks/{fE-kcmYj.js → C1ha510g.js} +1 -1
  72. package/web/app/immutable/chunks/{CIFYvyWz.js → C1zdYplM.js} +1 -1
  73. package/web/app/immutable/chunks/{LeGktTWT.js → C2QAZ2iP.js} +1 -1
  74. package/web/app/immutable/chunks/{B3groEj8.js → C2pyYkiS.js} +1 -1
  75. package/web/app/immutable/chunks/{Dw4yJGUy.js → C4UmUQ0t.js} +1 -1
  76. package/web/app/immutable/chunks/{CbVZZ75K.js → C4oYAvfo.js} +1 -1
  77. package/web/app/immutable/chunks/{C7uOzB-k.js → C4qlKK6F.js} +1 -1
  78. package/web/app/immutable/chunks/{6oPcdkTg.js → C96Cos0M.js} +1 -1
  79. package/web/app/immutable/chunks/{qVFwsb4j.js → C97vyu8P.js} +1 -1
  80. package/web/app/immutable/chunks/{BE9VuWVi.js → C9OFPDov.js} +1 -1
  81. package/web/app/immutable/chunks/{DJnP7chT.js → C9jK2F--.js} +1 -1
  82. package/web/app/immutable/chunks/{Cs2fCAnT.js → CA8Jy4WC.js} +1 -1
  83. package/web/app/immutable/chunks/{CeeT1t7l.js → CB3bw4PL.js} +1 -1
  84. package/web/app/immutable/chunks/{C2olseF2.js → CBtX8-Aa.js} +1 -1
  85. package/web/app/immutable/chunks/{rEoZFmiI.js → CCO5tijn.js} +1 -1
  86. package/web/app/immutable/chunks/{286xXFLf.js → CCw4KHZp.js} +1 -1
  87. package/web/app/immutable/chunks/{CcIb5dHQ.js → CEpelLfd.js} +2 -2
  88. package/web/app/immutable/chunks/{D3HUOTfX.js → CEufllny.js} +1 -1
  89. package/web/app/immutable/chunks/{mxwa8yTT.js → CHnA0xpr.js} +1 -1
  90. package/web/app/immutable/chunks/{B0tZqpMw.js → CIm0iT4E.js} +1 -1
  91. package/web/app/immutable/chunks/{CtH7YJ1N.js → CKGxulW8.js} +1 -1
  92. package/web/app/immutable/chunks/{Dw7Mfzwn.js → CKmgmdFa.js} +1 -1
  93. package/web/app/immutable/chunks/{DukC1Pxj.js → CMWevjI7.js} +1 -1
  94. package/web/app/immutable/chunks/{XM11aLg9.js → CNPNgdra.js} +1 -1
  95. package/web/app/immutable/chunks/{1WcgIxhR.js → CTh4M5uj.js} +1 -1
  96. package/web/app/immutable/chunks/{BKf74O20.js → CTvwRPyF.js} +1 -1
  97. package/web/app/immutable/chunks/{BXSSv3Oq.js → CUBdinib.js} +1 -1
  98. package/web/app/immutable/chunks/{CaGPKvrg.js → CVDRxz2f.js} +1 -1
  99. package/web/app/immutable/chunks/{BC51na55.js → CWUa486r.js} +1 -1
  100. package/web/app/immutable/chunks/{CBTiE17j.js → CYlvyU3U.js} +1 -1
  101. package/web/app/immutable/chunks/{2yJgo8xz.js → CYyISHjN.js} +1 -1
  102. package/web/app/immutable/chunks/{CMvvA2dm.js → C_akaBgq.js} +1 -1
  103. package/web/app/immutable/chunks/{DlTJT3V9.js → CaPALXDj.js} +1 -1
  104. package/web/app/immutable/chunks/{Csp7pCXT.js → CbX7A7fn.js} +1 -1
  105. package/web/app/immutable/chunks/{Cwzl8GTd.js → Cc0uYvgR.js} +1 -1
  106. package/web/app/immutable/chunks/{CyRJV2Ki.js → CcYKMJWn.js} +1 -1
  107. package/web/app/immutable/chunks/{D7KOa2cM.js → CccgSyFt.js} +2 -2
  108. package/web/app/immutable/chunks/{B_7vJcZK.js → CdXmpyDy.js} +1 -1
  109. package/web/app/immutable/chunks/{f_NG7JPv.js → CgXr85TV.js} +1 -1
  110. package/web/app/immutable/chunks/{H_Nm449K.js → CgfVp9Ef.js} +1 -1
  111. package/web/app/immutable/chunks/{BCahpYtg.js → Ch2DvoYt.js} +1 -1
  112. package/web/app/immutable/chunks/{Xn8V9ehY.js → ChD6V-mA.js} +1 -1
  113. package/web/app/immutable/chunks/{CrlYwLEr.js → CjPfyTRR.js} +1 -1
  114. package/web/app/immutable/chunks/{D2rxIP2b.js → Cj__CwtA.js} +1 -1
  115. package/web/app/immutable/chunks/{BK62I-uA.js → CjafAhxa.js} +1 -1
  116. package/web/app/immutable/chunks/{CFE62qf4.js → ClCe1k4i.js} +1 -1
  117. package/web/app/immutable/chunks/{B-DRVFcy.js → ClgmQqA9.js} +1 -1
  118. package/web/app/immutable/chunks/{CK2a86W3.js → ClkbPGx9.js} +1 -1
  119. package/web/app/immutable/chunks/{CUEflbxf.js → CrHTQDbT.js} +1 -1
  120. package/web/app/immutable/chunks/{DwJJFAxY.js → CramXAJ0.js} +1 -1
  121. package/web/app/immutable/chunks/{BkMQXe7-.js → Crf39e2Q.js} +1 -1
  122. package/web/app/immutable/chunks/{2cru8yuU.js → CrkDo76r.js} +1 -1
  123. package/web/app/immutable/chunks/{Dr7kBzFG.js → CuCrpEmq.js} +1 -1
  124. package/web/app/immutable/chunks/{DxR7IJ2x.js → CuHfgFFh.js} +1 -1
  125. package/web/app/immutable/chunks/{BjYS0G-V.js → Cv3VBAcZ.js} +1 -1
  126. package/web/app/immutable/chunks/{DFxm2U6S.js → Cw23SInT.js} +1 -1
  127. package/web/app/immutable/chunks/{ChdL62OI.js → Cxn17X4d.js} +2 -2
  128. package/web/app/immutable/chunks/{71jcCmFL.js → Cy3svQNQ.js} +1 -1
  129. package/web/app/immutable/chunks/{DVWomJ3M.js → D-fvD02O.js} +2 -2
  130. package/web/app/immutable/chunks/{B2r-op5b.js → D07rIrLM.js} +1 -1
  131. package/web/app/immutable/chunks/{iP2vS2hx.js → D2kFrNtb.js} +1 -1
  132. package/web/app/immutable/chunks/{Ccm9-f52.js → D542lbvk.js} +2 -2
  133. package/web/app/immutable/chunks/{kXBIZrMa.js → D68o263s.js} +1 -1
  134. package/web/app/immutable/chunks/{CUiOtEey.js → D6kdeziR.js} +1 -1
  135. package/web/app/immutable/chunks/{C9CjIm-I.js → D6ncbN-K.js} +1 -1
  136. package/web/app/immutable/chunks/{B99vgEcA.js → D9WrXbf9.js} +1 -1
  137. package/web/app/immutable/chunks/{32pNLDLJ.js → D9XKGcAY.js} +1 -1
  138. package/web/app/immutable/chunks/{qT7g0XeC.js → DE4arwhh.js} +1 -1
  139. package/web/app/immutable/chunks/{BDh1WR6p.js → DEVAGsyG.js} +1 -1
  140. package/web/app/immutable/chunks/{BJpI9lmh.js → DGRqvVY1.js} +2 -2
  141. package/web/app/immutable/chunks/{vCsRAP9U.js → DGaDkdng.js} +1 -1
  142. package/web/app/immutable/chunks/{CbVK4mzc.js → DGb_dMRY.js} +1 -1
  143. package/web/app/immutable/chunks/{BCazrMx2.js → DL304mi1.js} +1 -1
  144. package/web/app/immutable/chunks/{B1uWzETW.js → DLiD3Y7h.js} +1 -1
  145. package/web/app/immutable/chunks/DMIrVtTU.js +1 -0
  146. package/web/app/immutable/chunks/{CIwCBz4N.js → DPemhAGL.js} +1 -1
  147. package/web/app/immutable/chunks/{DPiLMhQg.js → DQ8vH0VY.js} +1 -1
  148. package/web/app/immutable/chunks/{B45FOkqf.js → DQ_x-k0O.js} +3 -3
  149. package/web/app/immutable/chunks/{2rtvtln4.js → DQjekoSU.js} +1 -1
  150. package/web/app/immutable/chunks/{BwgrW8yQ.js → DRRbh3V4.js} +1 -1
  151. package/web/app/immutable/chunks/{C82N7Ttz.js → DRiReCwX.js} +1 -1
  152. package/web/app/immutable/chunks/{CsbrChhH.js → DUor0DI_.js} +1 -1
  153. package/web/app/immutable/chunks/{BmMUMiCr.js → DWgWsm2y.js} +1 -1
  154. package/web/app/immutable/chunks/{CM0lKKPd.js → D_P8KoFV.js} +1 -1
  155. package/web/app/immutable/chunks/{BMcc0dQQ.js → Dc8XEwi0.js} +1 -1
  156. package/web/app/immutable/chunks/{BQAE7Cab.js → DcxuGfvW.js} +1 -1
  157. package/web/app/immutable/chunks/{D4gEzra-.js → DdfHQxRr.js} +1 -1
  158. package/web/app/immutable/chunks/{DZ-cwX5R.js → De70D2Lx.js} +2 -2
  159. package/web/app/immutable/chunks/{CzZDc-Ii.js → DfA_Upom.js} +1 -1
  160. package/web/app/immutable/chunks/{fvaRaafM.js → DfuAejzr.js} +1 -1
  161. package/web/app/immutable/chunks/{BaMaQsqR.js → DhhomoFS.js} +1 -1
  162. package/web/app/immutable/chunks/{BV_qZ-Kq.js → DipCXz5L.js} +1 -1
  163. package/web/app/immutable/chunks/{D3wOVtz4.js → DjE6Tn4o.js} +1 -1
  164. package/web/app/immutable/chunks/{4M32Nrru.js → Dq9dLpt4.js} +4 -4
  165. package/web/app/immutable/chunks/{B_Iojn2B.js → DqKef_Yi.js} +1 -1
  166. package/web/app/immutable/chunks/{DG7MHKfi.js → DsewpLhd.js} +1 -1
  167. package/web/app/immutable/chunks/{DhNmiaLk.js → DtV2WjXp.js} +1 -1
  168. package/web/app/immutable/chunks/{LIrM5l7a.js → DtWKfIHW.js} +1 -1
  169. package/web/app/immutable/chunks/{BASTKLI1.js → DuPQa1Hv.js} +4 -4
  170. package/web/app/immutable/chunks/{CJeZnjZ2.js → Dv-TQImR.js} +1 -1
  171. package/web/app/immutable/chunks/{CKR2Jwr3.js → DvmJXjP_.js} +1 -1
  172. package/web/app/immutable/chunks/{Cifu9mi9.js → DwR2QVtr.js} +1 -1
  173. package/web/app/immutable/chunks/{DDlZNhW-.js → DwqB2LW1.js} +1 -1
  174. package/web/app/immutable/chunks/{CrGdgRLR.js → Dy3sS5WY.js} +1 -1
  175. package/web/app/immutable/chunks/{DLbCIONA.js → Dy5C9WSY.js} +1 -1
  176. package/web/app/immutable/chunks/{DxrW2EIL.js → DzIV-I7E.js} +1 -1
  177. package/web/app/immutable/chunks/{DZlVkf9Y.js → DzqZnAgo.js} +4 -4
  178. package/web/app/immutable/chunks/{CFMV5ANe.js → ETkf7dmN.js} +1 -1
  179. package/web/app/immutable/chunks/{CjFrzDwu.js → FHXrLz5A.js} +1 -1
  180. package/web/app/immutable/chunks/{_1y9QH1k.js → FbHjHDf9.js} +1 -1
  181. package/web/app/immutable/chunks/{2B0vRGaJ.js → G1rQ1ZLS.js} +1 -1
  182. package/web/app/immutable/chunks/{Bb07ib28.js → GfKb8O3O.js} +1 -1
  183. package/web/app/immutable/chunks/{Cbr15rLJ.js → Ghm7WpFi.js} +1 -1
  184. package/web/app/immutable/chunks/{Y5hz4Ndf.js → Ju7PAma1.js} +1 -1
  185. package/web/app/immutable/chunks/{BEVux-ca.js → KcC0pRTT.js} +1 -1
  186. package/web/app/immutable/chunks/{CH0shWeP.js → Lx7mQEPN.js} +1 -1
  187. package/web/app/immutable/chunks/{BboZoGK5.js → N7G-ZTah.js} +5 -5
  188. package/web/app/immutable/chunks/{C7LjhbvI.js → NFc5A7UL.js} +1 -1
  189. package/web/app/immutable/chunks/{C6DrVy6-.js → Og4xuM7g.js} +1 -1
  190. package/web/app/immutable/chunks/{CEHfILB1.js → QFwPCSKD.js} +1 -1
  191. package/web/app/immutable/chunks/{CKe6gKEB.js → QLXfiC8k.js} +1 -1
  192. package/web/app/immutable/chunks/{BJeKKdy7.js → QPRdLPHE.js} +1 -1
  193. package/web/app/immutable/chunks/{C7NptMs7.js → R6z5Bqeu.js} +1 -1
  194. package/web/app/immutable/chunks/{D2JEXCBC.js → RjrC7VFY.js} +1 -1
  195. package/web/app/immutable/chunks/{DEu6gDAW.js → SXjX79W0.js} +3 -3
  196. package/web/app/immutable/chunks/{B8kZnhwO.js → Sa9G_k7P.js} +1 -1
  197. package/web/app/immutable/chunks/{Ari-xzJB.js → SoUJpC1P.js} +1 -1
  198. package/web/app/immutable/chunks/{BCFqTXC5.js → UMKs78qL.js} +1 -1
  199. package/web/app/immutable/chunks/{2GRAEVbl.js → Uea955Vz.js} +1 -1
  200. package/web/app/immutable/chunks/{CClSMHHc.js → VIOarPUD.js} +1 -1
  201. package/web/app/immutable/chunks/{hHmUU40X.js → VmRBMU-H.js} +2 -2
  202. package/web/app/immutable/chunks/{D3v_P2Uq.js → W2yoNJFv.js} +1 -1
  203. package/web/app/immutable/chunks/{DZ9bPwU4.js → X0wrjHux.js} +1 -1
  204. package/web/app/immutable/chunks/{Ctvf1zqH.js → XVViy8ZW.js} +1 -1
  205. package/web/app/immutable/chunks/{BNuxEAQs.js → ZngqFVq2.js} +1 -1
  206. package/web/app/immutable/chunks/{CxxiwOxz.js → _6UbyZFm.js} +1 -1
  207. package/web/app/immutable/chunks/{BaXl9G_p.js → a6ao35lO.js} +1 -1
  208. package/web/app/immutable/chunks/{RMrXit9I.js → af7yduyJ.js} +12 -12
  209. package/web/app/immutable/chunks/{vQ6gxb4d.js → b1qSM27E.js} +1 -1
  210. package/web/app/immutable/chunks/{DldD9pcf.js → b8GoMhSt.js} +1 -1
  211. package/web/app/immutable/chunks/{WydNOMQI.js → bV1WTvQr.js} +1 -1
  212. package/web/app/immutable/chunks/{B79m0-as.js → cKfnoB88.js} +1 -1
  213. package/web/app/immutable/chunks/{ClDVqtGb.js → dAVgSJe8.js} +1 -1
  214. package/web/app/immutable/chunks/{B25aSyPj.js → dvtNrmBJ.js} +1 -1
  215. package/web/app/immutable/chunks/{DW8-b4qF.js → fKGM3H1S.js} +1 -1
  216. package/web/app/immutable/chunks/{Dt_3gVf3.js → gWaxvgpv.js} +4 -4
  217. package/web/app/immutable/chunks/{D68W4EG9.js → gtyJplKf.js} +1 -1
  218. package/web/app/immutable/chunks/{BVg1wXVp.js → hYtFXuM6.js} +1 -1
  219. package/web/app/immutable/chunks/{dt-eIcjK.js → jmGUW687.js} +1 -1
  220. package/web/app/immutable/chunks/{nwgFD7pR.js → jqiN8Ebl.js} +2 -2
  221. package/web/app/immutable/chunks/{BXpSvmYd.js → jyFhDlZn.js} +1 -1
  222. package/web/app/immutable/chunks/{zDp2t9TD.js → mgh5gPA4.js} +1 -1
  223. package/web/app/immutable/chunks/{CxF8YFum.js → nLyQInj7.js} +1 -1
  224. package/web/app/immutable/chunks/nbfGErIW.js +1 -0
  225. package/web/app/immutable/chunks/{DMF8Xnwn.js → nqpg2Djj.js} +1 -1
  226. package/web/app/immutable/chunks/{kWL2GjPN.js → oNlT93oA.js} +1 -1
  227. package/web/app/immutable/chunks/{CNCNgnPl.js → ot3p-Y1j.js} +1 -1
  228. package/web/app/immutable/chunks/{xCXPOQKs.js → pA6KCKbP.js} +1 -1
  229. package/web/app/immutable/chunks/{B3aPtdPQ.js → sHSA98Ae.js} +1 -1
  230. package/web/app/immutable/chunks/{DDmVz0zj.js → sxpeFI4o.js} +1 -1
  231. package/web/app/immutable/chunks/{CfcmMMGe.js → ugjOCd8V.js} +3 -3
  232. package/web/app/immutable/chunks/{DBwXC8Tc.js → uoJ0nI_z.js} +1 -1
  233. package/web/app/immutable/chunks/{BgCDi7PA.js → v23yk8Nl.js} +1 -1
  234. package/web/app/immutable/chunks/{DYdDm8qg.js → vLUkS5Lr.js} +1 -1
  235. package/web/app/immutable/chunks/{cHlEaLvO.js → vSLEtuRc.js} +1 -1
  236. package/web/app/immutable/chunks/{DT77V-dl.js → zB3SalmM.js} +1 -1
  237. package/web/app/immutable/entry/{app.B3zmyQo-.js → app.D9kIVkFi.js} +3 -3
  238. package/web/app/immutable/entry/start.CsSnQcM4.js +1 -0
  239. package/web/app/immutable/nodes/{0.kC9p1Qyh.js → 0.CycxDG0L.js} +1 -1
  240. package/web/app/immutable/nodes/{1.CbKQgLbJ.js → 1.DBDsO8vk.js} +1 -1
  241. package/web/app/immutable/nodes/{10.nkEgxR4t.js → 10.DeWMsWJr.js} +1 -1
  242. package/web/app/immutable/nodes/{11.BNBCl9Ko.js → 11.D3R05nAN.js} +1 -1
  243. package/web/app/immutable/nodes/{12.BriSlPZC.js → 12.FwwO1QwE.js} +1 -1
  244. package/web/app/immutable/nodes/{13.QpfX0_5g.js → 13.BXCK1uUO.js} +3 -3
  245. package/web/app/immutable/nodes/{14.ZJqXSGiE.js → 14.CaU020TI.js} +1 -1
  246. package/web/app/immutable/nodes/{15.DdEMX_Kl.js → 15.DBweoCJ3.js} +1 -1
  247. package/web/app/immutable/nodes/{16.rtMs5JTy.js → 16.x7FRjB-z.js} +1 -1
  248. package/web/app/immutable/nodes/{17.DDfq3IKN.js → 17.nVKVEw2j.js} +1 -1
  249. package/web/app/immutable/nodes/{18.Cds1TQEe.js → 18.D8Pypemm.js} +2 -2
  250. package/web/app/immutable/nodes/{2.TMV-VJam.js → 2.bw2OhfV2.js} +4 -4
  251. package/web/app/immutable/nodes/{3.Dy6_DOyf.js → 3.C3rwANJW.js} +1 -1
  252. package/web/app/immutable/nodes/{4.CSClZLtr.js → 4.D3HKzTPL.js} +1 -1
  253. package/web/app/immutable/nodes/{5.B2fm04nD.js → 5.f1pRghhu.js} +1 -1
  254. package/web/app/immutable/nodes/{6.wppAoRAf.js → 6.rpNMjH5t.js} +1 -1
  255. package/web/app/immutable/nodes/{7.BJEQzlNN.js → 7.BSbrbiiB.js} +1 -1
  256. package/web/app/immutable/nodes/8.DbrZFert.js +14 -0
  257. package/web/app/immutable/nodes/{9.Dz8XAzvL.js → 9.D--sfpfT.js} +5 -5
  258. package/web/app/version.json +1 -1
  259. package/web/generated/paraglide.js +46 -46
  260. package/web/index.html +18 -18
  261. package/web/app/immutable/chunks/DGQ1ECsI.js +0 -1
  262. package/web/app/immutable/chunks/DZgyzAfw.js +0 -1
  263. package/web/app/immutable/chunks/H2SodBVA.js +0 -1
  264. package/web/app/immutable/chunks/Hc3ynozM.js +0 -1
  265. package/web/app/immutable/entry/start.DL1A5aV6.js +0 -1
  266. package/web/app/immutable/nodes/8.bO4mjRsC.js +0 -14
@@ -1 +1 @@
1
- import{aR as o,aP as l,a0 as v,l as y,bu as T,bT as b,bL as f,bM as i,r as m,aQ as p}from"./DYhIMPy1.js";import{B as R}from"./DGQ1ECsI.js";function E(d,_,e){var s;o&&(s=p,l());var r=new R(d);v(()=>{var a=_()??null;if(o){var h=T(s),u=h===m,c=a!==null;if(u!==c){var t=b();f(t),r.anchor=t,i(!1),r.ensure(a,a&&(n=>e(n,a))),i(!0);return}}r.ensure(a,a&&(n=>e(n,a)))},y)}export{E as c};
1
+ import{aR as o,aP as l,a0 as v,l as y,bu as T,bT as b,bL as f,bM as i,r as m,aQ as p}from"./DYhIMPy1.js";import{B as R}from"./41c-5lbJ.js";function E(d,_,e){var s;o&&(s=p,l());var r=new R(d);v(()=>{var a=_()??null;if(o){var h=T(s),u=h===m,c=a!==null;if(u!==c){var t=b();f(t),r.anchor=t,i(!1),r.ensure(a,a&&(n=>e(n,a))),i(!0);return}}r.ensure(a,a&&(n=>e(n,a)))},y)}export{E as c};
@@ -1,4 +1,4 @@
1
- var $s=Object.defineProperty;var Fs=(f,r,l)=>r in f?$s(f,r,{enumerable:!0,configurable:!0,writable:!0,value:l}):f[r]=l;var q=(f,r,l)=>Fs(f,typeof r!="symbol"?r+"":r,l);import{t as dn,bq as S,bo as P,by as un,bs as On,b as hn,bu as Ke}from"./DGQ1ECsI.js";import{ai as xr,bs as gn,ca as Be,aD as e,bH as m,a5 as N,bA as H,b_ as z,aw as sn,aj as ln,W as w,bn as fn,bV as Y,aA as x,ay as ne,bS as C,bl as de,bO as j,aB as T,c9 as u,a7 as nt,br as tt,bj as sr,c5 as gt,c0 as Ln,a as Us,be as Tt,b$ as ft,bf as or}from"./DYhIMPy1.js";import{i as M}from"./B-DRVFcy.js";import{g as Pt,i as Hn,I as ir,e as ar}from"./D3HUOTfX.js";import{I as cn,F as Ws,c as Bs,t as Rt}from"./DNZhZg57.js";import{f as En,s as Ve,g as lr}from"./Bp_k45o-.js";import{b as on}from"./BaIAhI85.js";import{Iv as Me,eE as Vs,ev as js,ew as Ks,oA as qs,no as Vt,ns as cr,nr as In,ey as Gs,u_ as Qs,u$ as Xs,v1 as Ys,Gz as Zs,IA as Js,rj as eo,eD as to}from"./BSSsvY4I.js";import{c as no}from"./Hc3ynozM.js";import{F as Ne,Z as ro,a4 as An,as as dr,at as ur,bO as so,aL as oo,c8 as hr,bV as gr,cl as fr}from"./Cjw1QvKa.js";import{dr as io,be as ao,M as lo,aC as mr,i as co}from"./CbVK4mzc.js";import{L as pr}from"./Cwzl8GTd.js";import{C as an}from"./DypB-Dwi.js";import{b6 as kr,bL as uo,bR as ho}from"./CsbrChhH.js";import{q as $e,d as go,g as fo}from"./BCFqTXC5.js";import"./ChmnWquS.js";import"./DZ-cwX5R.js";import{e as mo}from"./D7KOa2cM.js";import{T as Pr}from"./CFMV5ANe.js";import{g as Nn}from"./Bv8FuKnx.js";import{f as ke}from"./CxF8YFum.js";import{C as po}from"./Cbr15rLJ.js";import{C as vo}from"./CK2a86W3.js";import{s as vr}from"./XM11aLg9.js";import{t as Dt}from"./Cw94LfJC.js";import{P as _o,k as _r}from"./4M32Nrru.js";import{g as wo}from"./fE-kcmYj.js";import{af as bo,a3 as yo}from"./BJpI9lmh.js";import{ap as Co}from"./B45FOkqf.js";import{L as wr}from"./DWqOehs6.js";import{ad as So,ac as xo,ae as ko}from"./RMrXit9I.js";function br({scrollTop:f,scrollHeight:r,height:l,fitPerfectly:a=!1,fitPerfectlyOverscroll:c=0,overscrollSize:p}){const b=l+p*2,y=a?l+c*2:b;if(r=Math.max(r,y),b>=r||a){const G=Math.max(f-c,0),h=Math.min(f+y,r);return{top:G,bottom:Math.max(h,G)}}let A=f+l/2-b/2,F=A+b;return A<0&&(A=0),F>r&&(F=r),A=Math.floor(Math.max(A,0)),{top:A,bottom:Math.ceil(Math.max(Math.min(F,r),A))}}function Po(f,r){return f==null||r==null?f===r:f.top===r.top&&f.bottom===r.bottom}const Rr=1e3,Ro=Rr*4,Lo=[0,1e-6,.99999,1],Ho={overscrollSize:Rr,intersectionObserverMargin:Ro,resizeDebugging:!1};let rn=0,Io=-1;var Pe,Ao=(Pe=class{constructor(r){q(this,"__id",`virtualizer-${++Io}`);q(this,"config");q(this,"type","simple");q(this,"intersectionObserver");q(this,"scrollTop",0);q(this,"height",0);q(this,"scrollHeight",0);q(this,"windowSpecs",{top:0,bottom:0});q(this,"root");q(this,"contentContainer");q(this,"resizeObserver");q(this,"observers",new Map);q(this,"visibleInstances",new Map);q(this,"visibleInstancesDirty",!1);q(this,"instancesChanged",new Set);q(this,"reconcileQueue",new Set);q(this,"scrollDirty",!0);q(this,"heightDirty",!0);q(this,"scrollHeightDirty",!0);q(this,"renderedObservers",0);q(this,"connectQueue",new Map);q(this,"handleContainerResize",r=>{if(this.root==null)return;let l=!1;for(const a of r){const c=a.borderBoxSize[0].blockSize;this.root instanceof Document?c!==this.scrollHeight&&(this.scrollHeightDirty=!0,l=!0,this.config.resizeDebugging&&(console.log("Virtualizer: content size change",this.__id,{sizeChange:c-rn,newSize:c}),rn=c)):a.target===this.root?c!==this.height&&(this.heightDirty=!0,l=!0):a.target===this.contentContainer&&(this.scrollHeightDirty=!0,l=!0,this.config.resizeDebugging&&(console.log("Virtualizer: scroller size change",this.__id,{sizeChange:c-rn,newSize:c}),rn=c))}l&&$e(this.computeRenderRangeAndEmit)});q(this,"handleWindowResize",()=>{Pe.__STOP||window.innerHeight===this.height||(this.heightDirty=!0,$e(this.computeRenderRangeAndEmit))});q(this,"handleWindowScroll",()=>{Pe.__STOP||this.root==null||!(this.root instanceof Document)||(this.scrollDirty=!0,$e(this.computeRenderRangeAndEmit))});q(this,"handleElementScroll",()=>{Pe.__STOP||this.root==null||this.root instanceof Document||(this.scrollDirty=!0,$e(this.computeRenderRangeAndEmit))});q(this,"computeRenderRangeAndEmit",()=>{if(Pe.__STOP)return;const r=this.heightDirty||this.scrollHeightDirty;let l=this.instancesChanged.size>0;if(this.instancesChanged.size===0){const p=br({scrollTop:this.getScrollTop(),height:this.getHeight(),scrollHeight:this.getScrollHeight(),overscrollSize:this.config.overscrollSize});if(!r&&Po(this.windowSpecs,p)&&this.renderedObservers===this.observers.size&&!this.visibleInstancesDirty&&this.reconcileQueue.size===0)return;this.windowSpecs=p}this.visibleInstancesDirty=!1,this.renderedObservers=this.observers.size;const a=this.getScrollAnchor(this.height),c=new Set;for(const p of r?this.observers.values():this.visibleInstances.values())p.onRender(r)&&c.add(p);for(const p of this.instancesChanged)c.has(p)||p.onRender(r)&&c.add(p);this.scrollFix(a);for(const p of c)this.reconcileQueue.delete(p),p.reconcileHeights();for(const p of this.reconcileQueue)p.reconcileHeights()&&(l=!0);this.reconcileQueue.clear(),l||=this.instancesChanged.size>0,l&&this.markDOMDirty(),(l||r)&&$e(this.computeRenderRangeAndEmit),c.clear(),this.instancesChanged.clear()});q(this,"handleIntersectionChange",r=>{this.scrollDirty=!0;for(const{target:l,isIntersecting:a}of r){if(!(l instanceof HTMLElement))throw new Error("Virtualizer.handleIntersectionChange: target not an HTMLElement");const c=this.observers.get(l);c!=null&&(a&&!this.visibleInstances.has(l)?(c.setVisibility(!0),this.visibleInstances.set(l,c),this.visibleInstancesDirty=!0):!a&&this.visibleInstances.has(l)&&(c.setVisibility(!1),this.visibleInstances.delete(l),this.visibleInstancesDirty=!0))}this.visibleInstancesDirty&&$e(this.computeRenderRangeAndEmit)});this.config={...Ho,...r}}setup(r,l){if(this.root==null){this.root=r,this.resizeObserver=new ResizeObserver(this.handleContainerResize),this.intersectionObserver=new IntersectionObserver(this.handleIntersectionChange,{root:this.root,threshold:Lo,rootMargin:`${this.config.intersectionObserverMargin}px 0px ${this.config.intersectionObserverMargin}px 0px`}),r instanceof Document?this.setupWindow():this.setupElement(l),window.__INSTANCE=this,window.__TOGGLE=()=>{Pe.__STOP?(Pe.__STOP=!1,(this.getScrollContainerElement()??window).scrollTo({top:Pe.__lastScrollPosition}),$e(this.computeRenderRangeAndEmit)):(Pe.__lastScrollPosition=this.getScrollTop(),Pe.__STOP=!0)};for(const[a,c]of this.connectQueue.entries())this.connect(a,c);this.connectQueue.clear(),this.markDOMDirty(),$e(this.computeRenderRangeAndEmit)}}instanceChanged(r,l){this.instancesChanged.add(r),l&&this.markDOMDirty(),$e(this.computeRenderRangeAndEmit)}requestHeightReconcile(r){this.reconcileQueue.add(r),$e(this.computeRenderRangeAndEmit)}getWindowSpecs(){return this.windowSpecs.top===0&&this.windowSpecs.bottom===0&&(this.windowSpecs=br({scrollTop:this.getScrollTop(),height:this.getHeight(),scrollHeight:this.getScrollHeight(),overscrollSize:this.config.overscrollSize})),this.windowSpecs}getRoot(){return this.root}isInstanceVisible(r,l){const a=this.getScrollTop(),c=this.getHeight(),p=this.config.intersectionObserverMargin,b=a-p,y=a+c+p;return!(r<b-l||r>y)}setupWindow(){if(this.root==null||!(this.root instanceof Document))throw new Error("Virtualizer.setupWindow: Invalid setup method");window.addEventListener("scroll",this.handleWindowScroll,{passive:!0}),window.addEventListener("resize",this.handleWindowResize,{passive:!0}),this.resizeObserver?.observe(this.root.documentElement)}setupElement(r){if(this.root==null||this.root instanceof Document)throw new Error("Virtualizer.setupElement: Invalid setup method");this.root.addEventListener("scroll",this.handleElementScroll,{passive:!0}),this.resizeObserver?.observe(this.root),r??=this.root.firstElementChild??void 0,r instanceof HTMLElement&&(this.contentContainer=r,this.resizeObserver?.observe(r))}cleanUp(){go(this.computeRenderRangeAndEmit),this.resizeObserver?.disconnect(),this.resizeObserver=void 0,this.intersectionObserver?.disconnect(),this.intersectionObserver=void 0,this.root?.removeEventListener("scroll",this.handleElementScroll),window.removeEventListener("scroll",this.handleWindowScroll),window.removeEventListener("resize",this.handleWindowResize),this.root=void 0,this.contentContainer=void 0,this.observers.clear(),this.visibleInstances.clear(),this.instancesChanged.clear(),this.reconcileQueue.clear(),this.connectQueue.clear(),this.visibleInstancesDirty=!1,this.windowSpecs={top:0,bottom:0},this.scrollTop=0,this.height=0,this.scrollHeight=0,this.scrollDirty=!0,this.heightDirty=!0,this.scrollHeightDirty=!0}getOffsetInScrollContainer(r){return this.getScrollTop()+jt(r,this.getScrollContainerElement())}connect(r,l){if(this.observers.has(r))throw new Error("Virtualizer.connect: instance is already connected...");return this.intersectionObserver==null?this.connectQueue.set(r,l):(this.intersectionObserver.observe(r),this.observers.set(r,l),this.instancesChanged.add(l),this.markDOMDirty(),$e(this.computeRenderRangeAndEmit)),()=>this.disconnect(r)}disconnect(r){const l=this.observers.get(r);this.connectQueue.delete(r),l!=null&&(this.intersectionObserver?.unobserve(r),this.observers.delete(r),this.instancesChanged.delete(l),this.reconcileQueue.delete(l),this.visibleInstances.delete(r)&&(this.visibleInstancesDirty=!0),this.markDOMDirty(),$e(this.computeRenderRangeAndEmit))}scrollFix(r){if(r==null)return;const l=this.getScrollContainerElement(),{lineIndex:a,lineOffset:c,fileElement:p,fileOffset:b,fileTypeOffset:y}=r;if(a!=null&&c!=null){const F=p.shadowRoot?.querySelector(`[data-line][data-line-index="${a}"]`);if(F instanceof HTMLElement){const G=jt(F,l);if(G!==c){const h=G-c;this.applyScrollFix(h)}return}}const A=jt(p,l);if(y==="top")A!==b&&this.applyScrollFix(A-b);else{const F=A+p.getBoundingClientRect().height;F!==b&&this.applyScrollFix(F-b)}}applyScrollFix(r){this.root==null||this.root instanceof Document?window.scrollTo({top:window.scrollY+r,behavior:"instant"}):this.root.scrollTo({top:this.root.scrollTop+r,behavior:"instant"}),this.markDOMDirty()}getScrollAnchor(r){const l=this.getScrollContainerElement();let a;for(const[c]of this.visibleInstances.entries()){const p=jt(c,l),b=p+c.offsetHeight;let y,A;b<=0?(y=b,A="bottom"):(y=p,A="top");let F,G;if(b>0&&p<r)for(const oe of c.shadowRoot?.querySelectorAll("[data-line][data-line-index]")??[]){if(!(oe instanceof HTMLElement))continue;const Te=oe.dataset.lineIndex;if(Te==null)continue;const ue=jt(oe,l);if(!(ue<0)){F=Te,G=ue;break}}if(a?.lineOffset!=null&&G==null)continue;let h=!1;(a==null||G!=null&&(a.lineOffset==null||G<a.lineOffset)||G==null&&a.lineOffset==null&&(y>=0&&(a.fileOffset<0||y<a.fileOffset)||y<0&&a.fileOffset<0&&y>a.fileOffset))&&(h=!0),h&&(a={fileElement:c,fileTypeOffset:A,fileOffset:y,lineIndex:F,lineOffset:G})}return a}getScrollTop(){if(!this.scrollDirty)return this.scrollTop;this.scrollDirty=!1;let r=this.root==null?0:this.root instanceof Document?window.scrollY:this.root.scrollTop;return r=this.clampScrollTop(r),this.scrollTop=r,r}scrollTo({top:r,behavior:l="auto"}){const{root:a}=this;if(a==null)return;const c=this.clampScrollTop(r);a instanceof Document?window.scrollTo({top:c,behavior:l}):a.scrollTo({top:c,behavior:l}),this.scrollDirty=!0,$e(this.computeRenderRangeAndEmit)}clampScrollTop(r){return Math.max(0,Math.min(r,this.getScrollHeight()-this.getHeight()))}getScrollHeight(){return this.scrollHeightDirty?(this.scrollHeightDirty=!1,this.scrollHeight=this.root==null?0:this.root instanceof Document?this.root.documentElement.scrollHeight:this.root.scrollHeight,this.scrollHeight):this.scrollHeight}getHeight(){return this.heightDirty?(this.heightDirty=!1,this.height=this.root==null?0:this.root instanceof Document?globalThis.innerHeight:this.root.getBoundingClientRect().height,this.height):this.height}markDOMDirty(){this.scrollDirty=!0,this.scrollHeightDirty=!0,this.heightDirty=!0}getScrollContainerElement(){return this.root==null||this.root instanceof Document?void 0:this.root}},q(Pe,"__STOP",!1),q(Pe,"__lastScrollPosition",0),Pe);function jt(f,r){const l=f.getBoundingClientRect(),a=r?.getBoundingClientRect().top??0;return l.top-a}var Eo=T('<div class="absolute inset-0 flex items-center justify-center rounded-lg bg-background/60 backdrop-blur-[2px] transition-opacity duration-spring-moderate ease-spring-moderate motion-reduce:transition-none z-10 pointer-events-none"><div class="flex items-center gap-2 rounded-lg border border-border bg-card px-3 py-2 text-xs font-medium text-subtle shadow-lg"><!> </div></div>'),Oo=T("<!> <!>",1),No=T('<div class="flex h-24 items-center justify-start text-left text-subtle"> </div>'),To=T('<div role="region"><!></div>');function Lr(f,r){if(new.target)return dn({component:Lr,...f});gn(r,!0);const l=()=>Ke(ve,"$sideBySide",a),[a,c]=On(),p=Nn()?.workspaceId??void 0;let b=S(r,"change",7),y=S(r,"foldUnchanged",7,!0),A=S(r,"allowHeadReads",7,!0),F=S(r,"canReadHeadFiles",7),G=S(r,"lineWrapping",7,!1),h=S(r,"scrollToLine",7),oe=S(r,"isAggregate",7,!1),Te=S(r,"showScrollHint",7,!1),ue=S(r,"onStageHunk",7),Q=S(r,"onUnstageHunk",7),at=S(r,"onOpenCommit",7),pt=S(r,"virtualizer",7),vt=S(r,"gitRootId",7,void 0),_t=S(r,"gitRootPath",7,void 0);const ve=kr();let Re=Y(!1),ye=Y(!1),Fe=Y(!1),Ue=Y(0),qe=Y(void 0);const $=80;function ie(){m(ye,!0)}function De(){m(ye,!1),m(Fe,!1),m(Ue,0)}function Le(v){!e(ye)||e(Re)||(m(Ue,e(Ue)+Math.abs(v.deltaY)),e(Ue)>=$&&!e(Fe)&&m(Fe,!0))}function Kt(){m(Re,!0),m(Fe,!1),m(Ue,0)}function qt(v){e(qe)&&!e(qe).contains(v.relatedTarget)&&m(Re,!1)}Be(()=>{(e(Re)||!e(ye))&&(m(Fe,!1),m(Ue,0))});let Lt=u(()=>{const{toolCallId:v,filePath:_e,additions:Qe,deletions:yt,oldContent:re,newContent:Xe}=b(),rt="staged"in b()&&b().staged===!0,je="category"in b()?b().category:void 0,At="commitHash"in b()?b().commitHash:void 0,zt="gitlink"in b()?b().gitlink:void 0,Mt="isFullFileContent"in b()?b().isFullFileContent:!1;let Ct;return je==="committed"?Ct=an.Committed:rt?Ct=an.Staged:Ct=an.Unstaged,{id:v,file:_e,relativePath:_e,stage:Ct,commitHash:At,gitlink:zt,stats:{additions:Qe,deletions:yt},attribution:{timestamp:0},content:re!==void 0||Xe!==void 0?{oldContent:re??"",newContent:Xe??"",isFullFileContent:Mt}:void 0}});const D=u(()=>b().isFullFileContent?1:("chunks"in b()?b().chunks?.[0]?.newStart:void 0)??b().startLineNumber??1);var Ht={get change(){return b()},set change(v){b(v),x()},get foldUnchanged(){return y()},set foldUnchanged(v=!0){y(v),x()},get allowHeadReads(){return A()},set allowHeadReads(v=!0){A(v),x()},get canReadHeadFiles(){return F()},set canReadHeadFiles(v){F(v),x()},get lineWrapping(){return G()},set lineWrapping(v=!1){G(v),x()},get scrollToLine(){return h()},set scrollToLine(v){h(v),x()},get isAggregate(){return oe()},set isAggregate(v=!1){oe(v),x()},get showScrollHint(){return Te()},set showScrollHint(v=!1){Te(v),x()},get onStageHunk(){return ue()},set onStageHunk(v){ue(v),x()},get onUnstageHunk(){return Q()},set onUnstageHunk(v){Q(v),x()},get onOpenCommit(){return at()},set onOpenCommit(v){at(v),x()},get virtualizer(){return pt()},set virtualizer(v){pt(v),x()},get gitRootId(){return vt()},set gitRootId(v=void 0){vt(v),x()},get gitRootPath(){return _t()},set gitRootPath(v=void 0){_t(v),x()},$set:un,$on:(v,_e)=>hn(r,v,_e)},He=To();let wt;var It=N(He);{var Ge=v=>{var _e=Oo(),Qe=ne(_e);{let Xe=u(()=>l()?"split":"unified");Pr(Qe,{get change(){return e(Lt)},get workspaceId(){return p},get viewMode(){return e(Xe)},get foldUnchanged(){return y()},get lineWrapping(){return G()},get onStageHunk(){return ue()},get onUnstageHunk(){return Q()},useProvidedContent:!0,get allowHeadReads(){return A()},get canReadHeadFiles(){return F()},get lineOffset(){return e(D)},get virtualizer(){return pt()},get gitRootId(){return vt()},get gitRootPath(){return _t()}})}var yt=C(Qe,2);{var re=Xe=>{var rt=Eo(),je=N(rt),At=N(je);Ne(At,{get icon(){return ro},class:"w-3 h-3"});var zt=C(At);H(je),H(rt),z(Mt=>j(zt,` ${Mt??""}`),[()=>P.chat_inlineDiffItem_clickToScroll_label()]),cn(1,rt,()=>Ws,()=>({tier:"fast",y:0,scale:1})),cn(2,rt,()=>Bs,()=>({tier:"fast"})),w(Xe,rt)};M(yt,Xe=>{Te()&&e(Fe)&&Xe(re)})}w(v,_e)},bt=v=>{var _e=No(),Qe=de(_e,!0);z(yt=>j(Qe,yt),[()=>P.chat_inlineDiffItem_noWorkspace_label()]),w(v,_e)};M(It,v=>{p?v(Ge):v(bt,-1)})}H(He),on(He,v=>m(qe,v),()=>e(qe)),z(v=>{wt=En(He,1,"inline-diff-container relative",null,wt,{focused:e(Re)}),Ve(He,"aria-label",v)},[()=>P.chat_inlineDiffItem_viewer_ariaLabel()]),sn("mouseenter",He,ie),sn("mouseleave",He,De),sn("wheel",He,Le),ln("focusin",He,Kt),ln("focusout",He,qt),w(f,He);var mn=fn(Ht);return c(),mn}xr(["focusin","focusout"]);function yr(f){return[f.stage,f.type,f.oldLineNumber??"",f.newLineNumber??"",f.content].join("\0")}function Do(f){let r=f.oldStart,l=f.newStart;return f.lines.map(a=>{const c={...a,oldLineNumber:a.oldLineNumber??a.oldNumber,newLineNumber:a.newLineNumber??a.newNumber};return c.oldLineNumber===void 0&&c.newLineNumber===void 0?a.type==="Context"?(c.oldLineNumber=r++,c.newLineNumber=l++):a.type==="Deletion"?c.oldLineNumber=r++:a.type==="Addition"&&(c.newLineNumber=l++):a.type==="Context"?(r=(c.oldLineNumber??r)+1,l=(c.newLineNumber??l)+1):a.type==="Deletion"?r=(c.oldLineNumber??r)+1:a.type==="Addition"&&(l=(c.newLineNumber??l)+1),c})}function zo(f,r){const l=f?f.split(`
1
+ var $s=Object.defineProperty;var Fs=(f,r,l)=>r in f?$s(f,r,{enumerable:!0,configurable:!0,writable:!0,value:l}):f[r]=l;var q=(f,r,l)=>Fs(f,typeof r!="symbol"?r+"":r,l);import{t as dn,bq as S,bo as P,by as un,bs as On,b as hn,bu as Ke}from"./41c-5lbJ.js";import{ai as xr,bs as gn,ca as Be,aD as e,bH as m,a5 as N,bA as H,b_ as z,aw as sn,aj as ln,W as w,bn as fn,bV as Y,aA as x,ay as ne,bS as C,bl as de,bO as j,aB as T,c9 as u,a7 as nt,br as tt,bj as sr,c5 as gt,c0 as Ln,a as Us,be as Tt,b$ as ft,bf as or}from"./DYhIMPy1.js";import{i as M}from"./ClgmQqA9.js";import{g as Pt,i as Hn,I as ir,e as ar}from"./CEufllny.js";import{I as cn,F as Ws,c as Bs,t as Rt}from"./-o555Jq8.js";import{f as En,s as Ve,g as lr}from"./BBCbq-hE.js";import{b as on}from"./BaIAhI85.js";import{Iv as Me,eE as Vs,ev as js,ew as Ks,oA as qs,no as Vt,ns as cr,nr as In,ey as Gs,u_ as Qs,u$ as Xs,v1 as Ys,Gz as Zs,IA as Js,rj as eo,eD as to}from"./BuDJvkTk.js";import{c as no}from"./DMIrVtTU.js";import{F as Ne,Z as ro,a4 as An,as as dr,at as ur,bO as so,aL as oo,c8 as hr,bV as gr,cl as fr}from"./AOUBMpYk.js";import{dr as io,be as ao,M as lo,aC as mr,i as co}from"./DGb_dMRY.js";import{L as pr}from"./Cc0uYvgR.js";import{C as an}from"./DypB-Dwi.js";import{b6 as kr,bL as uo,bR as ho}from"./DUor0DI_.js";import{q as $e,d as go,g as fo}from"./UMKs78qL.js";import"./BhX-5zd9.js";import"./De70D2Lx.js";import{e as mo}from"./CccgSyFt.js";import{T as Pr}from"./ETkf7dmN.js";import{g as Nn}from"./BjHlv5EB.js";import{f as ke}from"./nLyQInj7.js";import{C as po}from"./Ghm7WpFi.js";import{C as vo}from"./ClkbPGx9.js";import{s as vr}from"./CNPNgdra.js";import{t as Dt}from"./BuupGai6.js";import{P as _o,k as _r}from"./Dq9dLpt4.js";import{g as wo}from"./C1ha510g.js";import{af as bo,a3 as yo}from"./DGRqvVY1.js";import{ap as Co}from"./DQ_x-k0O.js";import{L as wr}from"./BJ5nSO_Z.js";import{ad as So,ac as xo,ae as ko}from"./af7yduyJ.js";function br({scrollTop:f,scrollHeight:r,height:l,fitPerfectly:a=!1,fitPerfectlyOverscroll:c=0,overscrollSize:p}){const b=l+p*2,y=a?l+c*2:b;if(r=Math.max(r,y),b>=r||a){const G=Math.max(f-c,0),h=Math.min(f+y,r);return{top:G,bottom:Math.max(h,G)}}let A=f+l/2-b/2,F=A+b;return A<0&&(A=0),F>r&&(F=r),A=Math.floor(Math.max(A,0)),{top:A,bottom:Math.ceil(Math.max(Math.min(F,r),A))}}function Po(f,r){return f==null||r==null?f===r:f.top===r.top&&f.bottom===r.bottom}const Rr=1e3,Ro=Rr*4,Lo=[0,1e-6,.99999,1],Ho={overscrollSize:Rr,intersectionObserverMargin:Ro,resizeDebugging:!1};let rn=0,Io=-1;var Pe,Ao=(Pe=class{constructor(r){q(this,"__id",`virtualizer-${++Io}`);q(this,"config");q(this,"type","simple");q(this,"intersectionObserver");q(this,"scrollTop",0);q(this,"height",0);q(this,"scrollHeight",0);q(this,"windowSpecs",{top:0,bottom:0});q(this,"root");q(this,"contentContainer");q(this,"resizeObserver");q(this,"observers",new Map);q(this,"visibleInstances",new Map);q(this,"visibleInstancesDirty",!1);q(this,"instancesChanged",new Set);q(this,"reconcileQueue",new Set);q(this,"scrollDirty",!0);q(this,"heightDirty",!0);q(this,"scrollHeightDirty",!0);q(this,"renderedObservers",0);q(this,"connectQueue",new Map);q(this,"handleContainerResize",r=>{if(this.root==null)return;let l=!1;for(const a of r){const c=a.borderBoxSize[0].blockSize;this.root instanceof Document?c!==this.scrollHeight&&(this.scrollHeightDirty=!0,l=!0,this.config.resizeDebugging&&(console.log("Virtualizer: content size change",this.__id,{sizeChange:c-rn,newSize:c}),rn=c)):a.target===this.root?c!==this.height&&(this.heightDirty=!0,l=!0):a.target===this.contentContainer&&(this.scrollHeightDirty=!0,l=!0,this.config.resizeDebugging&&(console.log("Virtualizer: scroller size change",this.__id,{sizeChange:c-rn,newSize:c}),rn=c))}l&&$e(this.computeRenderRangeAndEmit)});q(this,"handleWindowResize",()=>{Pe.__STOP||window.innerHeight===this.height||(this.heightDirty=!0,$e(this.computeRenderRangeAndEmit))});q(this,"handleWindowScroll",()=>{Pe.__STOP||this.root==null||!(this.root instanceof Document)||(this.scrollDirty=!0,$e(this.computeRenderRangeAndEmit))});q(this,"handleElementScroll",()=>{Pe.__STOP||this.root==null||this.root instanceof Document||(this.scrollDirty=!0,$e(this.computeRenderRangeAndEmit))});q(this,"computeRenderRangeAndEmit",()=>{if(Pe.__STOP)return;const r=this.heightDirty||this.scrollHeightDirty;let l=this.instancesChanged.size>0;if(this.instancesChanged.size===0){const p=br({scrollTop:this.getScrollTop(),height:this.getHeight(),scrollHeight:this.getScrollHeight(),overscrollSize:this.config.overscrollSize});if(!r&&Po(this.windowSpecs,p)&&this.renderedObservers===this.observers.size&&!this.visibleInstancesDirty&&this.reconcileQueue.size===0)return;this.windowSpecs=p}this.visibleInstancesDirty=!1,this.renderedObservers=this.observers.size;const a=this.getScrollAnchor(this.height),c=new Set;for(const p of r?this.observers.values():this.visibleInstances.values())p.onRender(r)&&c.add(p);for(const p of this.instancesChanged)c.has(p)||p.onRender(r)&&c.add(p);this.scrollFix(a);for(const p of c)this.reconcileQueue.delete(p),p.reconcileHeights();for(const p of this.reconcileQueue)p.reconcileHeights()&&(l=!0);this.reconcileQueue.clear(),l||=this.instancesChanged.size>0,l&&this.markDOMDirty(),(l||r)&&$e(this.computeRenderRangeAndEmit),c.clear(),this.instancesChanged.clear()});q(this,"handleIntersectionChange",r=>{this.scrollDirty=!0;for(const{target:l,isIntersecting:a}of r){if(!(l instanceof HTMLElement))throw new Error("Virtualizer.handleIntersectionChange: target not an HTMLElement");const c=this.observers.get(l);c!=null&&(a&&!this.visibleInstances.has(l)?(c.setVisibility(!0),this.visibleInstances.set(l,c),this.visibleInstancesDirty=!0):!a&&this.visibleInstances.has(l)&&(c.setVisibility(!1),this.visibleInstances.delete(l),this.visibleInstancesDirty=!0))}this.visibleInstancesDirty&&$e(this.computeRenderRangeAndEmit)});this.config={...Ho,...r}}setup(r,l){if(this.root==null){this.root=r,this.resizeObserver=new ResizeObserver(this.handleContainerResize),this.intersectionObserver=new IntersectionObserver(this.handleIntersectionChange,{root:this.root,threshold:Lo,rootMargin:`${this.config.intersectionObserverMargin}px 0px ${this.config.intersectionObserverMargin}px 0px`}),r instanceof Document?this.setupWindow():this.setupElement(l),window.__INSTANCE=this,window.__TOGGLE=()=>{Pe.__STOP?(Pe.__STOP=!1,(this.getScrollContainerElement()??window).scrollTo({top:Pe.__lastScrollPosition}),$e(this.computeRenderRangeAndEmit)):(Pe.__lastScrollPosition=this.getScrollTop(),Pe.__STOP=!0)};for(const[a,c]of this.connectQueue.entries())this.connect(a,c);this.connectQueue.clear(),this.markDOMDirty(),$e(this.computeRenderRangeAndEmit)}}instanceChanged(r,l){this.instancesChanged.add(r),l&&this.markDOMDirty(),$e(this.computeRenderRangeAndEmit)}requestHeightReconcile(r){this.reconcileQueue.add(r),$e(this.computeRenderRangeAndEmit)}getWindowSpecs(){return this.windowSpecs.top===0&&this.windowSpecs.bottom===0&&(this.windowSpecs=br({scrollTop:this.getScrollTop(),height:this.getHeight(),scrollHeight:this.getScrollHeight(),overscrollSize:this.config.overscrollSize})),this.windowSpecs}getRoot(){return this.root}isInstanceVisible(r,l){const a=this.getScrollTop(),c=this.getHeight(),p=this.config.intersectionObserverMargin,b=a-p,y=a+c+p;return!(r<b-l||r>y)}setupWindow(){if(this.root==null||!(this.root instanceof Document))throw new Error("Virtualizer.setupWindow: Invalid setup method");window.addEventListener("scroll",this.handleWindowScroll,{passive:!0}),window.addEventListener("resize",this.handleWindowResize,{passive:!0}),this.resizeObserver?.observe(this.root.documentElement)}setupElement(r){if(this.root==null||this.root instanceof Document)throw new Error("Virtualizer.setupElement: Invalid setup method");this.root.addEventListener("scroll",this.handleElementScroll,{passive:!0}),this.resizeObserver?.observe(this.root),r??=this.root.firstElementChild??void 0,r instanceof HTMLElement&&(this.contentContainer=r,this.resizeObserver?.observe(r))}cleanUp(){go(this.computeRenderRangeAndEmit),this.resizeObserver?.disconnect(),this.resizeObserver=void 0,this.intersectionObserver?.disconnect(),this.intersectionObserver=void 0,this.root?.removeEventListener("scroll",this.handleElementScroll),window.removeEventListener("scroll",this.handleWindowScroll),window.removeEventListener("resize",this.handleWindowResize),this.root=void 0,this.contentContainer=void 0,this.observers.clear(),this.visibleInstances.clear(),this.instancesChanged.clear(),this.reconcileQueue.clear(),this.connectQueue.clear(),this.visibleInstancesDirty=!1,this.windowSpecs={top:0,bottom:0},this.scrollTop=0,this.height=0,this.scrollHeight=0,this.scrollDirty=!0,this.heightDirty=!0,this.scrollHeightDirty=!0}getOffsetInScrollContainer(r){return this.getScrollTop()+jt(r,this.getScrollContainerElement())}connect(r,l){if(this.observers.has(r))throw new Error("Virtualizer.connect: instance is already connected...");return this.intersectionObserver==null?this.connectQueue.set(r,l):(this.intersectionObserver.observe(r),this.observers.set(r,l),this.instancesChanged.add(l),this.markDOMDirty(),$e(this.computeRenderRangeAndEmit)),()=>this.disconnect(r)}disconnect(r){const l=this.observers.get(r);this.connectQueue.delete(r),l!=null&&(this.intersectionObserver?.unobserve(r),this.observers.delete(r),this.instancesChanged.delete(l),this.reconcileQueue.delete(l),this.visibleInstances.delete(r)&&(this.visibleInstancesDirty=!0),this.markDOMDirty(),$e(this.computeRenderRangeAndEmit))}scrollFix(r){if(r==null)return;const l=this.getScrollContainerElement(),{lineIndex:a,lineOffset:c,fileElement:p,fileOffset:b,fileTypeOffset:y}=r;if(a!=null&&c!=null){const F=p.shadowRoot?.querySelector(`[data-line][data-line-index="${a}"]`);if(F instanceof HTMLElement){const G=jt(F,l);if(G!==c){const h=G-c;this.applyScrollFix(h)}return}}const A=jt(p,l);if(y==="top")A!==b&&this.applyScrollFix(A-b);else{const F=A+p.getBoundingClientRect().height;F!==b&&this.applyScrollFix(F-b)}}applyScrollFix(r){this.root==null||this.root instanceof Document?window.scrollTo({top:window.scrollY+r,behavior:"instant"}):this.root.scrollTo({top:this.root.scrollTop+r,behavior:"instant"}),this.markDOMDirty()}getScrollAnchor(r){const l=this.getScrollContainerElement();let a;for(const[c]of this.visibleInstances.entries()){const p=jt(c,l),b=p+c.offsetHeight;let y,A;b<=0?(y=b,A="bottom"):(y=p,A="top");let F,G;if(b>0&&p<r)for(const oe of c.shadowRoot?.querySelectorAll("[data-line][data-line-index]")??[]){if(!(oe instanceof HTMLElement))continue;const Te=oe.dataset.lineIndex;if(Te==null)continue;const ue=jt(oe,l);if(!(ue<0)){F=Te,G=ue;break}}if(a?.lineOffset!=null&&G==null)continue;let h=!1;(a==null||G!=null&&(a.lineOffset==null||G<a.lineOffset)||G==null&&a.lineOffset==null&&(y>=0&&(a.fileOffset<0||y<a.fileOffset)||y<0&&a.fileOffset<0&&y>a.fileOffset))&&(h=!0),h&&(a={fileElement:c,fileTypeOffset:A,fileOffset:y,lineIndex:F,lineOffset:G})}return a}getScrollTop(){if(!this.scrollDirty)return this.scrollTop;this.scrollDirty=!1;let r=this.root==null?0:this.root instanceof Document?window.scrollY:this.root.scrollTop;return r=this.clampScrollTop(r),this.scrollTop=r,r}scrollTo({top:r,behavior:l="auto"}){const{root:a}=this;if(a==null)return;const c=this.clampScrollTop(r);a instanceof Document?window.scrollTo({top:c,behavior:l}):a.scrollTo({top:c,behavior:l}),this.scrollDirty=!0,$e(this.computeRenderRangeAndEmit)}clampScrollTop(r){return Math.max(0,Math.min(r,this.getScrollHeight()-this.getHeight()))}getScrollHeight(){return this.scrollHeightDirty?(this.scrollHeightDirty=!1,this.scrollHeight=this.root==null?0:this.root instanceof Document?this.root.documentElement.scrollHeight:this.root.scrollHeight,this.scrollHeight):this.scrollHeight}getHeight(){return this.heightDirty?(this.heightDirty=!1,this.height=this.root==null?0:this.root instanceof Document?globalThis.innerHeight:this.root.getBoundingClientRect().height,this.height):this.height}markDOMDirty(){this.scrollDirty=!0,this.scrollHeightDirty=!0,this.heightDirty=!0}getScrollContainerElement(){return this.root==null||this.root instanceof Document?void 0:this.root}},q(Pe,"__STOP",!1),q(Pe,"__lastScrollPosition",0),Pe);function jt(f,r){const l=f.getBoundingClientRect(),a=r?.getBoundingClientRect().top??0;return l.top-a}var Eo=T('<div class="absolute inset-0 flex items-center justify-center rounded-lg bg-background/60 backdrop-blur-[2px] transition-opacity duration-spring-moderate ease-spring-moderate motion-reduce:transition-none z-10 pointer-events-none"><div class="flex items-center gap-2 rounded-lg border border-border bg-card px-3 py-2 text-xs font-medium text-subtle shadow-lg"><!> </div></div>'),Oo=T("<!> <!>",1),No=T('<div class="flex h-24 items-center justify-start text-left text-subtle"> </div>'),To=T('<div role="region"><!></div>');function Lr(f,r){if(new.target)return dn({component:Lr,...f});gn(r,!0);const l=()=>Ke(ve,"$sideBySide",a),[a,c]=On(),p=Nn()?.workspaceId??void 0;let b=S(r,"change",7),y=S(r,"foldUnchanged",7,!0),A=S(r,"allowHeadReads",7,!0),F=S(r,"canReadHeadFiles",7),G=S(r,"lineWrapping",7,!1),h=S(r,"scrollToLine",7),oe=S(r,"isAggregate",7,!1),Te=S(r,"showScrollHint",7,!1),ue=S(r,"onStageHunk",7),Q=S(r,"onUnstageHunk",7),at=S(r,"onOpenCommit",7),pt=S(r,"virtualizer",7),vt=S(r,"gitRootId",7,void 0),_t=S(r,"gitRootPath",7,void 0);const ve=kr();let Re=Y(!1),ye=Y(!1),Fe=Y(!1),Ue=Y(0),qe=Y(void 0);const $=80;function ie(){m(ye,!0)}function De(){m(ye,!1),m(Fe,!1),m(Ue,0)}function Le(v){!e(ye)||e(Re)||(m(Ue,e(Ue)+Math.abs(v.deltaY)),e(Ue)>=$&&!e(Fe)&&m(Fe,!0))}function Kt(){m(Re,!0),m(Fe,!1),m(Ue,0)}function qt(v){e(qe)&&!e(qe).contains(v.relatedTarget)&&m(Re,!1)}Be(()=>{(e(Re)||!e(ye))&&(m(Fe,!1),m(Ue,0))});let Lt=u(()=>{const{toolCallId:v,filePath:_e,additions:Qe,deletions:yt,oldContent:re,newContent:Xe}=b(),rt="staged"in b()&&b().staged===!0,je="category"in b()?b().category:void 0,At="commitHash"in b()?b().commitHash:void 0,zt="gitlink"in b()?b().gitlink:void 0,Mt="isFullFileContent"in b()?b().isFullFileContent:!1;let Ct;return je==="committed"?Ct=an.Committed:rt?Ct=an.Staged:Ct=an.Unstaged,{id:v,file:_e,relativePath:_e,stage:Ct,commitHash:At,gitlink:zt,stats:{additions:Qe,deletions:yt},attribution:{timestamp:0},content:re!==void 0||Xe!==void 0?{oldContent:re??"",newContent:Xe??"",isFullFileContent:Mt}:void 0}});const D=u(()=>b().isFullFileContent?1:("chunks"in b()?b().chunks?.[0]?.newStart:void 0)??b().startLineNumber??1);var Ht={get change(){return b()},set change(v){b(v),x()},get foldUnchanged(){return y()},set foldUnchanged(v=!0){y(v),x()},get allowHeadReads(){return A()},set allowHeadReads(v=!0){A(v),x()},get canReadHeadFiles(){return F()},set canReadHeadFiles(v){F(v),x()},get lineWrapping(){return G()},set lineWrapping(v=!1){G(v),x()},get scrollToLine(){return h()},set scrollToLine(v){h(v),x()},get isAggregate(){return oe()},set isAggregate(v=!1){oe(v),x()},get showScrollHint(){return Te()},set showScrollHint(v=!1){Te(v),x()},get onStageHunk(){return ue()},set onStageHunk(v){ue(v),x()},get onUnstageHunk(){return Q()},set onUnstageHunk(v){Q(v),x()},get onOpenCommit(){return at()},set onOpenCommit(v){at(v),x()},get virtualizer(){return pt()},set virtualizer(v){pt(v),x()},get gitRootId(){return vt()},set gitRootId(v=void 0){vt(v),x()},get gitRootPath(){return _t()},set gitRootPath(v=void 0){_t(v),x()},$set:un,$on:(v,_e)=>hn(r,v,_e)},He=To();let wt;var It=N(He);{var Ge=v=>{var _e=Oo(),Qe=ne(_e);{let Xe=u(()=>l()?"split":"unified");Pr(Qe,{get change(){return e(Lt)},get workspaceId(){return p},get viewMode(){return e(Xe)},get foldUnchanged(){return y()},get lineWrapping(){return G()},get onStageHunk(){return ue()},get onUnstageHunk(){return Q()},useProvidedContent:!0,get allowHeadReads(){return A()},get canReadHeadFiles(){return F()},get lineOffset(){return e(D)},get virtualizer(){return pt()},get gitRootId(){return vt()},get gitRootPath(){return _t()}})}var yt=C(Qe,2);{var re=Xe=>{var rt=Eo(),je=N(rt),At=N(je);Ne(At,{get icon(){return ro},class:"w-3 h-3"});var zt=C(At);H(je),H(rt),z(Mt=>j(zt,` ${Mt??""}`),[()=>P.chat_inlineDiffItem_clickToScroll_label()]),cn(1,rt,()=>Ws,()=>({tier:"fast",y:0,scale:1})),cn(2,rt,()=>Bs,()=>({tier:"fast"})),w(Xe,rt)};M(yt,Xe=>{Te()&&e(Fe)&&Xe(re)})}w(v,_e)},bt=v=>{var _e=No(),Qe=de(_e,!0);z(yt=>j(Qe,yt),[()=>P.chat_inlineDiffItem_noWorkspace_label()]),w(v,_e)};M(It,v=>{p?v(Ge):v(bt,-1)})}H(He),on(He,v=>m(qe,v),()=>e(qe)),z(v=>{wt=En(He,1,"inline-diff-container relative",null,wt,{focused:e(Re)}),Ve(He,"aria-label",v)},[()=>P.chat_inlineDiffItem_viewer_ariaLabel()]),sn("mouseenter",He,ie),sn("mouseleave",He,De),sn("wheel",He,Le),ln("focusin",He,Kt),ln("focusout",He,qt),w(f,He);var mn=fn(Ht);return c(),mn}xr(["focusin","focusout"]);function yr(f){return[f.stage,f.type,f.oldLineNumber??"",f.newLineNumber??"",f.content].join("\0")}function Do(f){let r=f.oldStart,l=f.newStart;return f.lines.map(a=>{const c={...a,oldLineNumber:a.oldLineNumber??a.oldNumber,newLineNumber:a.newLineNumber??a.newNumber};return c.oldLineNumber===void 0&&c.newLineNumber===void 0?a.type==="Context"?(c.oldLineNumber=r++,c.newLineNumber=l++):a.type==="Deletion"?c.oldLineNumber=r++:a.type==="Addition"&&(c.newLineNumber=l++):a.type==="Context"?(r=(c.oldLineNumber??r)+1,l=(c.newLineNumber??l)+1):a.type==="Deletion"?r=(c.oldLineNumber??r)+1:a.type==="Addition"&&(l=(c.newLineNumber??l)+1),c})}function zo(f,r){const l=f?f.split(`
2
2
  `):[],a=r?r.split(`
3
3
  `):[];if(l.length===0&&a.length===0)return[];const c=[];for(const p of l)c.push({type:"Deletion",content:p});for(const p of a)c.push({type:"Addition",content:p});return[{oldStart:1,oldLines:l.length,newStart:1,newLines:a.length,lines:c}]}function Mo(f){if(!f||f.length===0)return[];const r=[];for(const a of f){let c=a.change.chunks||[];c.length===0&&(a.change.oldContent!=null||a.change.newContent!=null)&&(c=zo(a.change.oldContent??"",a.change.newContent??"")),c.forEach((p,b)=>{r.push({hunk:p,stage:a.category,part:a,hunkIndex:b})})}if(r.length===0)return[];r.sort((a,c)=>a.hunk.newStart-c.hunk.newStart);const l=[];for(const{hunk:a,stage:c,hunkIndex:p}of r){const y=Do(a).map(A=>({type:A.type,content:A.content,oldLineNumber:A.oldLineNumber,newLineNumber:A.newLineNumber,stage:c,hunkIndex:p}));l.push({headStart:a.oldStart,headLines:a.oldLines,wtStart:a.newStart,wtLines:a.newLines,lines:y,stages:new Set([c])})}return $o(l)}function $o(f){if(f.length<=1)return f;const r=[];let l=f[0];for(let a=1;a<f.length;a++){const c=f[a],p=l.wtStart+l.wtLines;c.wtStart<=p+3?l=Fo(l,c):(r.push(l),l=c)}return r.push(l),r}function Fo(f,r){const l=new Map,a=new Map,c=new Set;for(const h of f.lines)c.add(yr(h)),h.newLineNumber!==void 0&&l.set(h.newLineNumber,h),h.oldLineNumber!==void 0&&h.type!=="Addition"&&a.set(h.oldLineNumber,h);const p=[...f.lines];for(const h of r.lines){const oe=yr(h);if(!c.has(oe)){if(h.type==="Context"){const Te=h.newLineNumber!==void 0?l.get(h.newLineNumber):void 0,ue=h.oldLineNumber!==void 0?a.get(h.oldLineNumber):void 0;if(Te?.type==="Context"||ue?.type==="Context"){c.add(oe);continue}}p.push(h),c.add(oe),h.newLineNumber!==void 0&&l.set(h.newLineNumber,h),h.oldLineNumber!==void 0&&h.type!=="Addition"&&a.set(h.oldLineNumber,h)}}p.sort((h,oe)=>{const Te=h.newLineNumber??h.oldLineNumber??0,ue=oe.newLineNumber??oe.oldLineNumber??0;return Te-ue});const b=new Set([...f.stages,...r.stages]),y=Math.min(f.headStart,r.headStart),A=Math.min(f.wtStart,r.wtStart),F=Math.max(f.headStart+f.headLines,r.headStart+r.headLines),G=Math.max(f.wtStart+f.wtLines,r.wtStart+r.wtLines);return{headStart:y,headLines:F-y,wtStart:A,wtLines:G-A,lines:p,stages:b}}function Uo(f){const r=[],l=[];let a=f[0]?.headStart??1,c=f[0]?.wtStart??1;const p=(b,y,A)=>{let F=y;for(;F<A;)b.push(""),F++;return F};for(const b of f){a=p(r,a,b.headStart),c=p(l,c,b.wtStart);for(const y of b.lines)y.type==="Context"?(y.oldLineNumber!==void 0&&(a=p(r,a,y.oldLineNumber)),y.newLineNumber!==void 0&&(c=p(l,c,y.newLineNumber)),r.push(y.content),l.push(y.content),a++,c++):y.type==="Deletion"?(y.oldLineNumber!==void 0&&(a=p(r,a,y.oldLineNumber)),r.push(y.content),a++):y.type==="Addition"&&(y.newLineNumber!==void 0&&(c=p(l,c,y.newLineNumber)),l.push(y.content),c++)}return{oldContent:r.join(`
4
4
  `),newContent:l.join(`
@@ -1 +1 @@
1
- import{b as i,aW as l,aw as d,P as o}from"./Dt_3gVf3.js";var x=i((r,t)=>{const e=r.append("rect");if(e.attr("x",t.x),e.attr("y",t.y),e.attr("fill",t.fill),e.attr("stroke",t.stroke),e.attr("width",t.width),e.attr("height",t.height),t.name&&e.attr("name",t.name),t.rx&&e.attr("rx",t.rx),t.ry&&e.attr("ry",t.ry),t.attrs!==void 0)for(const s in t.attrs)e.attr(s,t.attrs[s]);return t.class&&e.attr("class",t.class),e},"drawRect"),p=i((r,t)=>{const e={x:t.startx,y:t.starty,width:t.stopx-t.startx,height:t.stopy-t.starty,fill:t.fill,stroke:t.stroke,class:"rect"};x(r,e).lower()},"drawBackgroundRect"),y=i((r,t)=>{const e=t.text.replace(d," "),s=r.append("text");s.attr("x",t.x),s.attr("y",t.y),s.attr("class","legend"),s.style("text-anchor",t.anchor),t.class&&s.attr("class",t.class);const a=s.append("tspan");return a.attr("x",t.x+t.textMargin*2),a.text(e),s},"drawText"),m=i((r,t,e,s)=>{const a=r.append("image");a.attr("x",t),a.attr("y",e);const n=o.sanitizeUrl(s);a.attr("xlink:href",n)},"drawImage"),g=i((r,t,e,s)=>{const a=r.append("use");a.attr("x",t),a.attr("y",e);const n=o.sanitizeUrl(s);a.attr("xlink:href",`#${n}`)},"drawEmbeddedImage"),h=i(()=>({x:0,y:0,width:100,height:100,fill:"#EDF2AE",stroke:"#666",anchor:"start",rx:0,ry:0}),"getNoteRect"),f=i(()=>({x:0,y:0,width:100,height:100,"text-anchor":"start",style:"#666",textMargin:0,rx:0,ry:0,tspan:!0}),"getTextObj"),w=i(()=>{let r=l(".mermaidTooltip");return r.empty()&&(r=l("body").append("div").attr("class","mermaidTooltip").style("opacity",0).style("position","absolute").style("text-align","center").style("max-width","200px").style("padding","2px").style("font-size","12px").style("background","#ffffde").style("border","1px solid #333").style("border-radius","2px").style("pointer-events","none").style("z-index","100")),r},"createTooltip");export{g as a,m as b,w as c,p as d,x as e,y as f,h as g,f as h};
1
+ import{b as i,aW as l,aw as d,P as o}from"./gWaxvgpv.js";var x=i((r,t)=>{const e=r.append("rect");if(e.attr("x",t.x),e.attr("y",t.y),e.attr("fill",t.fill),e.attr("stroke",t.stroke),e.attr("width",t.width),e.attr("height",t.height),t.name&&e.attr("name",t.name),t.rx&&e.attr("rx",t.rx),t.ry&&e.attr("ry",t.ry),t.attrs!==void 0)for(const s in t.attrs)e.attr(s,t.attrs[s]);return t.class&&e.attr("class",t.class),e},"drawRect"),p=i((r,t)=>{const e={x:t.startx,y:t.starty,width:t.stopx-t.startx,height:t.stopy-t.starty,fill:t.fill,stroke:t.stroke,class:"rect"};x(r,e).lower()},"drawBackgroundRect"),y=i((r,t)=>{const e=t.text.replace(d," "),s=r.append("text");s.attr("x",t.x),s.attr("y",t.y),s.attr("class","legend"),s.style("text-anchor",t.anchor),t.class&&s.attr("class",t.class);const a=s.append("tspan");return a.attr("x",t.x+t.textMargin*2),a.text(e),s},"drawText"),m=i((r,t,e,s)=>{const a=r.append("image");a.attr("x",t),a.attr("y",e);const n=o.sanitizeUrl(s);a.attr("xlink:href",n)},"drawImage"),g=i((r,t,e,s)=>{const a=r.append("use");a.attr("x",t),a.attr("y",e);const n=o.sanitizeUrl(s);a.attr("xlink:href",`#${n}`)},"drawEmbeddedImage"),h=i(()=>({x:0,y:0,width:100,height:100,fill:"#EDF2AE",stroke:"#666",anchor:"start",rx:0,ry:0}),"getNoteRect"),f=i(()=>({x:0,y:0,width:100,height:100,"text-anchor":"start",style:"#666",textMargin:0,rx:0,ry:0,tspan:!0}),"getTextObj"),w=i(()=>{let r=l(".mermaidTooltip");return r.empty()&&(r=l("body").append("div").attr("class","mermaidTooltip").style("opacity",0).style("position","absolute").style("text-align","center").style("max-width","200px").style("padding","2px").style("font-size","12px").style("background","#ffffde").style("border","1px solid #333").style("border-radius","2px").style("pointer-events","none").style("z-index","100")),r},"createTooltip");export{g as a,m as b,w as c,p as d,x as e,y as f,h as g,f as h};
@@ -1 +1 @@
1
- import{a$ as Ft,aA as Rt,a1 as Je}from"./4M32Nrru.js";import{bI as At,aD as _,aG as Et,bH as Le,bV as it,bs as Bt,ca as Wt,a5 as W,bA as L,W as o,bS as c,b_ as u,bn as Lt,c9 as S,aA as O,bl as E,bO as l,b$ as A,aB as N,bf as H,a7 as q,ay as x,be as Pe,am as Re,ax as Ae}from"./DYhIMPy1.js";import{t as Ut,bq as F,by as jt,bu as Qe,bs as zt,b as Mt,bo as d}from"./DGQ1ECsI.js";import{i as D}from"./B-DRVFcy.js";import{k as Ve}from"./B99vgEcA.js";import{s as Xe}from"./ChmnWquS.js";import{I as Q,b as Ze,D as le}from"./DNZhZg57.js";import{g as Ee,f as et,s as tt}from"./Bp_k45o-.js";import{F as $t,bk as qt,aJ as Kt,cF as Yt,ci as Gt}from"./Cjw1QvKa.js";import{k as Ht}from"./CK2a86W3.js";import{f as Be}from"./CxF8YFum.js";import"./DZ-cwX5R.js";import"./ChTqQfQN.js";import"./B_7vJcZK.js";import"./BSSsvY4I.js";import{q as Jt,h as Qt,S as Vt}from"./7fznLbVZ.js";import{O as We}from"./Bb07ib28.js";import{bQ as Xt,D as Zt,z as ea}from"./Csp7pCXT.js";import{d as ta}from"./9_2ZyZ9L.js";import{s as aa,f as ra,c as at}from"./DJBAuZjD.js";function Ma(M){let C=0,$=!1;function _e(I){$!==I&&($=I,M.onDragChange(I))}function pe(){C=0,_e(!1)}function ae(I){return M.isEnabled&&!M.isEnabled()?!1:Rt(I)}return{handleDragEnter(I){ae(I)&&(I.preventDefault(),C++,_e(!0))},handleDragLeave(I){ae(I)&&(I.preventDefault(),C=Math.max(0,C-1),C===0&&_e(!1))},handleDragOver(I){ae(I)&&I.preventDefault()},handleDrop(I){if(!ae(I))return;I.preventDefault(),pe();const Y=Ft(I.dataTransfer);(Y.files.length>0||Y.folderFiles.length>0)&&M.onDrop(Y)},reset:pe}}const lt=Symbol("panel-file-drop-context");function $a(){let M=it(null);const C={register($){Le(M,$)},unregister($){_(M)===$&&Le(M,null)}};return At(lt,C),{context:C,handler:{get current(){return _(M)}}}}function qa(){return Et(lt)??null}var na=N('<span class="inline-flex items-center gap-1.5 svelte-enden2"> </span>'),sa=N('<h3 class="text-lg font-semibold tracking-[-0.016em] transition-colors duration-spring-slow ease-spring-slow motion-reduce:transition-none svelte-enden2"><!></h3>'),oa=N('<span class="inline-block col-span-1 row-span-1 svelte-enden2"> </span>'),ia=N('<span class="text-sm font-mono text-muted-foreground tabular-nums svelte-enden2"><span class="inline-grid *:[grid-area:1/1] svelte-enden2"><!></span> </span>'),la=N('<div class="absolute inset-0 left-5 svelte-enden2"><!></div>'),rt=N('<div class="svelte-enden2"><!></div>'),da=N('<div class="relative flex items-start overflow-hidden rounded-md py-0.75 text-base leading-relaxed svelte-enden2"><!> <span data-testid="workspace-setup-step-icon"><!></span> <div class="setup-step-content min-w-0 text-muted-foreground font-normal leading-snug relative z-10 svelte-enden2" data-testid="workspace-setup-step-content"><!></div></div>'),_a=N('<span data-testid="setup-card-progress-label" class="svelte-enden2"> </span> <div class="mt-1 h-[2px] w-full max-w-64 rounded-full bg-secondary overflow-hidden svelte-enden2"><div class="h-full bg-foreground/60 transition-[width] duration-spring-slow ease-spring-slow motion-reduce:transition-none svelte-enden2" role="progressbar" aria-valuemin="0" aria-valuemax="100" data-testid="setup-card-progress-bar"></div></div>',1),de=N(" <!>",1),pa=N('<span data-testid="setup-card-plain-folder" class="svelte-enden2"> <!> </span>'),va=N(' <code class="text-sm bg-secondary py-1 px-1.5 svelte-enden2"> </code> <!>',1),nt=N(" <!> <!>",1),ca=N(' <span class="svelte-enden2"> </span> ',1),ua=N(' <span class="svelte-enden2"> </span> <!>',1),ga=N('<span class="underline underline-offset-2 svelte-enden2"> </span><span class="whitespace-nowrap svelte-enden2"><span class="underline underline-offset-2 svelte-enden2"> </span><span class="setup-reference-punctuation svelte-enden2" aria-hidden="true"> </span></span>',1),fa=N("<!> ",1),st=N('<span class="svelte-enden2"> </span>'),te=N(" <!> ",1),ma=N('<pre class="text-xs text-muted-foreground font-mono leading-snug line-clamp-2 whitespace-pre-wrap svelte-enden2"> </pre>'),ot=N('<span class="text-xs text-muted-foreground opacity-50 svelte-enden2"> </span>'),ba=N(" <!> <!> ",1),xa=N('<p class="text-xs text-muted-foreground leading-snug svelte-enden2"> </p>'),ha=N('<div><div class="flex items-baseline gap-2.5 pt-3 pb-2 svelte-enden2"><div class="inline-grid *:[grid-area:1/1] svelte-enden2"><!></div> <!></div> <div class="space-y-0.5 pb-4 svelte-enden2"><!> <!> <!> <!></div></div>');function Ca(M,C){if(new.target)return Ut({component:Ca,...M});Bt(C,!0);const $=()=>Qe(dt,"$progressEntry$",pe),_e=()=>Qe(_t,"$specialists$",pe),[pe,ae]=zt();let I=F(C,"repoName",7),Y=F(C,"repoPath",7),G=F(C,"worktreePath",7),ve=F(C,"workspaceId",7),K=F(C,"branch",7),ce=F(C,"baseRef",7,"origin/main"),re=F(C,"projectType",7),V=F(C,"setupScriptStatus",7),Ce=F(C,"setupScriptContent",7),we=F(C,"onFocusSetupTerminal",7),De=F(C,"specialistName",7),U=F(C,"specialistId",7),ne=F(C,"hasPrompt",7,!0),se=F(C,"repoStatus",7,"pending"),ue=F(C,"branchStatus",7,"pending"),ge=F(C,"agentStatus",7,"pending"),X=F(C,"skipIsolation",7,!1),oe=F(C,"plainFolder",7,!1),Ie=F(C,"progressId",7);const dt=aa(Ie()??""),_t=Xt();let fe=it(0);Wt(()=>{const i=Math.min($()?.percent??0,100);i>_(fe)&&Le(fe,i,!0)});const pt=S(()=>$()?.sawFrame===!0),vt=S(()=>ce().replace(/^[^/]+\//,"")),Ne=S(()=>U()?ea(U()):void 0),ct=S(()=>U()?_e().find(i=>i.id===U()):void 0),ut=S(()=>_(ct)?.name||_(Ne)?.name||De()),Ue=S(()=>U()==="spec-writer"||U()===Zt),je=S(()=>{const i=oe()?[se()]:[se(),ue()];return V()&&i.push(V()),i.push(ge()),i}),Te=S(()=>_(je).length),ze=S(()=>_(je).filter(i=>i==="done").length),Me=S(()=>Math.min(_(ze)+1,_(Te))),Se=S(()=>_(ze)===_(Te)),$e=S(()=>_(Se)?d.onboarding_setupCard_ready_title():d.onboarding_setupCard_settingUp_title());function gt(i,R){navigator.clipboard.writeText(i),Ht.success(d.onboarding_setupCard_copied_label({label:R}))}function Oe(i){return i.replace(/^\/Users\/[^/]+/,"~")}function ft(){U()&&ta({specialist:U(),hash:"specialists"})}var mt={get repoName(){return I()},set repoName(i){I(i),O()},get repoPath(){return Y()},set repoPath(i){Y(i),O()},get worktreePath(){return G()},set worktreePath(i){G(i),O()},get workspaceId(){return ve()},set workspaceId(i){ve(i),O()},get branch(){return K()},set branch(i){K(i),O()},get baseRef(){return ce()},set baseRef(i="origin/main"){ce(i),O()},get projectType(){return re()},set projectType(i){re(i),O()},get setupScriptStatus(){return V()},set setupScriptStatus(i){V(i),O()},get setupScriptContent(){return Ce()},set setupScriptContent(i){Ce(i),O()},get onFocusSetupTerminal(){return we()},set onFocusSetupTerminal(i){we(i),O()},get specialistName(){return De()},set specialistName(i){De(i),O()},get specialistId(){return U()},set specialistId(i){U(i),O()},get hasPrompt(){return ne()},set hasPrompt(i=!0){ne(i),O()},get repoStatus(){return se()},set repoStatus(i="pending"){se(i),O()},get branchStatus(){return ue()},set branchStatus(i="pending"){ue(i),O()},get agentStatus(){return ge()},set agentStatus(i="pending"){ge(i),O()},get skipIsolation(){return X()},set skipIsolation(i=!1){X(i),O()},get plainFolder(){return oe()},set plainFolder(i=!1){oe(i),O()},get progressId(){return Ie()},set progressId(i){Ie(i),O()},$set:jt,$on:(i,R)=>Mt(C,i,R)},ye=ha(),ke=W(ye);Ee(ke,"",{},{"padding-inline":"var(--operational-row-inline-padding)"});var Fe=W(ke),bt=W(Fe);Ve(bt,()=>_(Se),i=>{var R=sa(),Z=W(R);{var me=z=>{var B=na(),xe=E(B,!0);u(()=>l(xe,_($e))),o(z,B)},be=z=>{var B=A();u(()=>l(B,_($e))),o(z,B)};D(Z,z=>{_(Se)?z(me):z(be,-1)})}L(R),Q(1,R,()=>Ze,()=>({tier:"slow",distance:3})),Q(2,R,()=>Ze,()=>({tier:"slow",distance:3})),o(i,R)}),L(Fe);var xt=c(Fe,2);{var ht=i=>{var R=ia(),Z=W(R),me=W(Z);Ve(me,()=>_(Me),z=>{var B=oa(),xe=E(B,!0);u(()=>l(xe,_(Me))),Q(1,B,()=>le,()=>({axis:"y",tier:"slow"})),o(z,B)}),L(Z);var be=c(Z);L(R),u(()=>l(be,`/${_(Te)??""}`)),o(i,R)};D(xt,i=>{_(Se)||i(ht)})}L(ke);var qe=c(ke,2);{const i=(f,m=H,y=H,k=H,w=H,b=H)=>{var n=da();Ee(n,"",{},{gap:"0.25rem","padding-inline":"var(--operational-row-inline-padding)"});var t=W(n);{var e=h=>{var P=la(),T=W(P);Vt(T,{}),L(P),o(h,P)};D(t,h=>{m()==="active"&&h(e)})}var a=c(t,2),r=W(a);$t(r,{get icon(){return y()},size:14,get class(){return k()}}),L(a);var s=c(a,2),p=W(s);{var g=h=>{var P=rt(),T=W(P);Xe(T,w),L(P),Q(1,P,()=>le,()=>({axis:"y",tier:"moderate"})),Q(2,P,()=>le,()=>({axis:"y",tier:"moderate"})),o(h,P)},v=h=>{var P=rt(),T=W(P);Xe(T,b),L(P),Q(1,P,()=>le,()=>({axis:"y",tier:"moderate"})),Q(2,P,()=>le,()=>({axis:"y",tier:"moderate"})),o(h,P)};D(p,h=>{m()==="active"?h(g):h(v,-1)})}L(s),L(n),u(()=>et(a,1,`${Qt} relative z-10 mt-1 flex size-4 shrink-0 items-center justify-start`,"svelte-enden2")),Q(3,n,()=>le,()=>({tier:"slow"})),o(f,n)},R=(f,m)=>{let y=Re(()=>Ae(m?.(),""));var k=q(),w=x(k);{var b=t=>{{let e=S(()=>d.onboarding_setupCard_originalFolder_label());B(t,I,()=>_(e),Y,()=>_(y))}},n=t=>{var e=A();u(()=>l(e,`${I()??""}${_(y)??""}`)),o(t,e)};D(w,t=>{Y()?t(b):t(n,-1)})}o(f,k)},Z=f=>{var m=q(),y=x(m);{var k=n=>{var t=_a(),e=x(t),a=E(e,!0),r=c(e,2),s=E(r);u((p,g)=>{l(a,p),Ee(s,`width: ${_(fe)??""}%`),tt(s,"aria-label",g),tt(s,"aria-valuenow",_(fe))},[()=>d.workspace_compactInitializer_progressWithPercent_label({label:at($()),percent:ra(_(fe))}),()=>at($())]),o(n,t)},w=n=>{var t=de(),e=x(t),a=c(e);{let r=S(()=>d.onboarding_setupCard_opening_after());R(a,()=>_(r))}u(r=>l(e,`${r??""} `),[()=>d.onboarding_setupCard_opening_before()]),o(n,t)},b=n=>{var t=de(),e=x(t),a=c(e);R(a),u(r=>l(e,`${r??""} `),[()=>d.onboarding_setupCard_creatingIsolatedCopy_before()]),o(n,t)};D(y,n=>{_(pt)&&$()?n(k):X()||oe()?n(w,1):n(b,-1)})}o(f,m)},me=f=>{var m=q(),y=x(m);{var k=n=>{const t=S(()=>G()||Y());var e=pa(),a=W(e),r=c(a);{var s=v=>{We(v,{get filePath(){return _(t)},get workspaceId(){return ve()},isDirectory:!0,variant:"sidebar",compact:!0,inline:!0,class:"setup-path",children:(h,P)=>{{let T=S(()=>Oe(_(t)));z(h,()=>_(T),()=>".")}},$$slots:{default:!0}})},p=v=>{var h=A();u(()=>l(h,`${I()??""}.`)),o(v,h)};D(r,v=>{_(t)?v(s):v(p,-1)})}var g=c(r);L(e),u((v,h)=>{l(a,`${v??""} `),l(g,` ${h??""}`)},[()=>d.onboarding_setupCard_workingInFolder_before(),()=>d.onboarding_setupCard_plainFolderInPlace_label()]),o(n,e)},w=n=>{var t=va(),e=x(t),a=c(e),r=E(a,!0),s=c(a,2);{var p=v=>{var h=de(),P=x(h),T=c(P);We(T,{get filePath(){return G()},get workspaceId(){return ve()},isDirectory:!0,variant:"sidebar",compact:!0,inline:!0,class:"setup-path",children:(j,ee)=>{{let J=S(()=>Oe(G()));z(j,()=>_(J),()=>".")}},$$slots:{default:!0}}),u(j=>l(P,` ${j??""} `),[()=>d.onboarding_setupCard_at_label()]),o(v,h)},g=v=>{var h=A(".");o(v,h)};D(s,v=>{G()?v(p):v(g,-1)})}u(v=>{l(e,`${v??""} `),l(r,_(vt))},[()=>d.onboarding_setupCard_workingDirectlyOn_before()]),o(n,t)},b=n=>{var t=nt(),e=x(t),a=c(e);R(a);var r=c(a,2);{var s=g=>{var v=de(),h=x(v),P=c(h);We(P,{get filePath(){return G()},get workspaceId(){return ve()},isDirectory:!0,variant:"sidebar",compact:!0,inline:!0,class:"setup-path",children:(T,j)=>{{let ee=S(()=>Oe(G()));z(T,()=>_(ee),()=>".")}},$$slots:{default:!0}}),u(T=>l(h,` ${T??""} `),[()=>d.onboarding_setupCard_at_label()]),o(g,v)},p=g=>{var v=A(".");o(g,v)};D(r,g=>{G()?g(s):g(p,-1)})}u(g=>l(e,`${g??""} `),[()=>d.onboarding_setupCard_createdIsolatedCopy_before()]),o(n,t)};D(y,n=>{oe()?n(k):X()?n(w,1):n(b,-1)})}o(f,m)},be=f=>{var m=q(),y=x(m);{var k=n=>{var t=q(),e=x(t);{var a=s=>{var p=ca(),g=x(p),v=c(g),h=E(v,!0),P=c(v,1,!0);u((T,j)=>{l(g,`${T??""} `),l(h,K()),l(P,j)},[()=>d.onboarding_setupCard_workingOnBranchNamed_before(),()=>d.onboarding_setupCard_workingOnBranchActive_after()]),o(s,p)},r=s=>{var p=A();u(g=>l(p,g),[()=>d.onboarding_setupCard_workingOnBranch_label()]),o(s,p)};D(e,s=>{K()?s(a):s(r,-1)})}o(n,t)},w=n=>{var t=ua(),e=x(t),a=c(e),r=E(a,!0),s=c(a),p=c(s);{let g=S(()=>d.onboarding_setupCard_baseRef_label()),v=S(()=>d.onboarding_setupCard_creatingBranch_after());B(p,ce,()=>_(g),()=>{},()=>_(v))}u((g,v)=>{l(e,`${g??""} `),l(r,K()),l(s,` ${v??""} `)},[()=>d.onboarding_setupCard_creatingBranch_before(),()=>d.onboarding_setupCard_creatingBranch_middle()]),o(n,t)},b=n=>{var t=A();u(e=>l(t,e),[()=>d.onboarding_setupCard_creatingBranchNoName_label()]),o(n,t)};D(y,n=>{X()?n(k):K()?n(w,1):n(b,-1)})}o(f,m)},z=(f,m=H,y)=>{let k=Re(()=>Ae(y?.(),""));const w=S(()=>Array.from(m()));var b=ga(),n=x(b),t=E(n,!0),e=c(n),a=W(e),r=E(a,!0),s=c(a),p=E(s,!0);L(e),u((g,v)=>{l(t,g),l(r,v),l(p,_(k))},[()=>_(w).slice(0,-1).join(""),()=>_(w).at(-1)??""]),o(f,b)},B=(f,m=H,y=H,k=H,w)=>{let b=Re(()=>Ae(w?.(),""));const n=S(()=>_(b).match(/^\p{P}+/u)?.[0]??"");var t=fa(),e=x(t);Be(e,{variant:"plain",wrapContent:!1,class:"setup-inline-link cursor-pointer hover:text-foreground transition-colors",onclick:()=>gt(k()??m(),y()),children:(r,s)=>{z(r,m,()=>_(n))},$$slots:{default:!0}});var a=c(e,1,!0);u(r=>l(a,r),[()=>_(b).slice(_(n).length)]),o(f,t)},xe=f=>{var m=q(),y=x(m);{var k=n=>{var t=q(),e=x(t);{var a=s=>{var p=de(),g=x(p),v=c(g);{let h=S(()=>d.onboarding_setupCard_branchName_label()),P=S(()=>d.onboarding_setupCard_workingOnBranchDone_after());B(v,K,()=>_(h),()=>{},()=>_(P))}u(h=>l(g,`${h??""} `),[()=>d.onboarding_setupCard_workingOnBranchNamed_before()]),o(s,p)},r=s=>{var p=A();u(g=>l(p,g),[()=>d.onboarding_setupCard_workingDirectlyOnBranch_label()]),o(s,p)};D(e,s=>{K()?s(a):s(r,-1)})}o(n,t)},w=n=>{var t=nt(),e=x(t),a=c(e);{let s=S(()=>d.onboarding_setupCard_branchName_label()),p=S(()=>d.onboarding_setupCard_workingInNewBranch_middle());B(a,K,()=>_(s),()=>{},()=>_(p))}var r=c(a,2);{let s=S(()=>d.onboarding_setupCard_baseRef_label()),p=S(()=>d.onboarding_setupCard_workingInNewBranch_after());B(r,ce,()=>_(s),()=>{},()=>_(p))}u(s=>l(e,`${s??""} `),[()=>d.onboarding_setupCard_workingInNewBranch_before()]),o(n,t)},b=n=>{var t=A();u(e=>l(t,e),[()=>d.onboarding_setupCard_branchCreated_label()]),o(n,t)};D(y,n=>{X()?n(k):K()?n(w,1):n(b,-1)})}o(f,m)},Dt=f=>{Pe();var m=te(),y=x(m),k=c(y);{var w=t=>{var e=st(),a=E(e,!0);u(()=>l(a,re())),o(t,e)},b=t=>{var e=A();u(a=>l(e,a),[()=>d.onboarding_setupCard_project_label()]),o(t,e)};D(k,t=>{re()?t(w):t(b,-1)})}var n=c(k);u((t,e)=>{l(y,`${t??""} `),l(n,` ${e??""}`)},[()=>d.onboarding_setupCard_runningSetup_before(),()=>d.onboarding_setupCard_runningSetup_after()]),o(f,m)},It=f=>{Pe();var m=ba(),y=x(m),k=c(y);{var w=r=>{var s=st(),p=E(s,!0);u(()=>l(p,re())),o(r,s)},b=r=>{var s=A();u(p=>l(s,p),[()=>d.onboarding_setupCard_project_label()]),o(r,s)};D(k,r=>{re()?r(w):r(b,-1)})}var n=c(k),t=c(n);{var e=r=>{var s=de(),p=x(s),g=c(p);Je(g,{class:"inline",side:"bottom",align:"start",interactive:!0,maxWidth:"22rem",delayDuration:300,trigger:T=>{Be(T,{variant:"plain",wrapContent:!1,class:"setup-inline-link underline underline-offset-2 cursor-pointer hover:text-foreground transition-colors",get onclick(){return we()},children:(j,ee)=>{Pe();var J=A();u(he=>l(J,he),[()=>d.onboarding_setupCard_terminalTab_label()]),o(j,J)},$$slots:{default:!0}})},content:T=>{var j=q(),ee=x(j);{var J=he=>{var He=ma(),Ot=E(He,!0);u(()=>l(Ot,Ce())),o(he,He)};D(ee,he=>{Ce()&&he(J)})}o(T,j)},footer:T=>{var j=ot(),ee=E(j,!0);u(J=>l(ee,J),[()=>d.onboarding_setupCard_openTerminal_footer()]),o(T,j)},$$slots:{trigger:!0,content:!0,footer:!0}}),u(v=>l(p,` ${v??""} `),[()=>d.onboarding_setupCard_ranSetupIn_middle()]),o(r,s)};D(t,r=>{we()&&r(e)})}var a=c(t,1,!0);u((r,s,p)=>{l(y,`${r??""} `),l(n,` ${s??""}`),l(a,p)},[()=>d.onboarding_setupCard_ranSetup_before(),()=>d.onboarding_setupCard_ranSetup_middle(),()=>d.onboarding_setupCard_ranSetup_after()]),o(f,m)},ie=f=>{Je(f,{class:"inline",side:"bottom",align:"start",interactive:!0,maxWidth:"22rem",delayDuration:300,trigger:w=>{Be(w,{variant:"plain",wrapContent:!1,class:"setup-inline-link underline underline-offset-2 cursor-pointer hover:text-foreground transition-colors",onclick:ft,children:(b,n)=>{Pe();var t=A();u(()=>l(t,_(ut))),o(b,t)},$$slots:{default:!0}})},content:w=>{var b=q(),n=x(b);{var t=e=>{var a=xa(),r=E(a,!0);u(()=>l(r,_(Ne).description)),o(e,a)};D(n,e=>{_(Ne)&&e(t)})}o(w,b)},footer:w=>{var b=ot(),n=E(b,!0);u(t=>l(n,t),[()=>d.onboarding_setupCard_editInSettings_footer()]),o(w,b)},$$slots:{trigger:!0,content:!0,footer:!0}})},Nt=f=>{var m=q(),y=x(m);{var k=e=>{var a=te(),r=x(a),s=c(r);ie(s);var p=c(s);u((g,v)=>{l(r,`${g??""} `),l(p,` ${v??""}`)},[()=>d.onboarding_setupCard_agentReadyNamed_before(),()=>d.onboarding_setupCard_agentReadyNamed_after()]),o(e,a)},w=e=>{var a=A();u(r=>l(a,r),[()=>d.onboarding_setupCard_agentReady_label()]),o(e,a)},b=e=>{var a=te(),r=x(a),s=c(r);ie(s);var p=c(s);u((g,v)=>{l(r,`${g??""} `),l(p,` ${v??""}`)},[()=>d.onboarding_setupCard_specStartingUp_before(),()=>d.onboarding_setupCard_specStartingUp_after()]),o(e,a)},n=e=>{var a=te(),r=x(a),s=c(r);ie(s);var p=c(s);u((g,v)=>{l(r,`${g??""} `),l(p,` ${v??""}`)},[()=>d.onboarding_setupCard_startingUpNamed_before(),()=>d.onboarding_setupCard_startingUpNamed_after()]),o(e,a)},t=e=>{var a=A();u(r=>l(a,r),[()=>d.onboarding_setupCard_startingUp_label()]),o(e,a)};D(y,e=>{!ne()&&U()?e(k):ne()?_(Ue)?e(b,2):U()?e(n,3):e(t,-1):e(w,1)})}o(f,m)},Tt=f=>{var m=q(),y=x(m);{var k=e=>{var a=te(),r=x(a),s=c(r);ie(s);var p=c(s);u((g,v)=>{l(r,`${g??""} `),l(p,` ${v??""}`)},[()=>d.onboarding_setupCard_agentReadyNamed_before(),()=>d.onboarding_setupCard_agentReadyNamed_after()]),o(e,a)},w=e=>{var a=A();u(r=>l(a,r),[()=>d.onboarding_setupCard_agentReady_label()]),o(e,a)},b=e=>{var a=te(),r=x(a),s=c(r);ie(s);var p=c(s);u((g,v)=>{l(r,`${g??""} `),l(p,` ${v??""}`)},[()=>d.onboarding_setupCard_specDone_before(),()=>d.onboarding_setupCard_specDone_after()]),o(e,a)},n=e=>{var a=te(),r=x(a),s=c(r);ie(s);var p=c(s);u((g,v)=>{l(r,`${g??""} `),l(p,` ${v??""}`)},[()=>d.onboarding_setupCard_agentDoneNamed_before(),()=>d.onboarding_setupCard_agentDoneNamed_after()]),o(e,a)},t=e=>{var a=A();u(r=>l(a,r),[()=>d.onboarding_setupCard_agentOrienting_label()]),o(e,a)};D(y,e=>{!ne()&&U()?e(k):ne()?_(Ue)?e(b,2):U()?e(n,3):e(t,-1):e(w,1)})}o(f,m)};var Ke=W(qe);{var Ct=f=>{i(f,se,()=>qt,()=>"-ml-px transform scale-[0.98]",()=>Z,()=>me)};D(Ke,f=>{se()!=="pending"&&f(Ct)})}var Ye=c(Ke,2);{var wt=f=>{i(f,ue,()=>Kt,()=>"",()=>be,()=>xe)};D(Ye,f=>{ue()!=="pending"&&!X()&&!oe()&&f(wt)})}var Ge=c(Ye,2);{var St=f=>{i(f,V,()=>Yt,()=>"ml-[0.5px]",()=>Dt,()=>It)};D(Ge,f=>{V()&&V()!=="pending"&&f(St)})}var yt=c(Ge,2);{var kt=f=>{i(f,ge,()=>Gt,()=>"ml-[-0.5px]",()=>Nt,()=>Tt)};D(yt,f=>{ge()!=="pending"&&f(kt)})}L(qe)}L(ye),u(()=>et(ye,1,`${Jt} w-full overflow-hidden transition-all duration-spring-slow ease-spring-slow motion-reduce:transition-none`,"svelte-enden2")),o(M,ye);var Pt=Lt(mt);return ae(),Pt}export{Ca as W,$a as a,Ma as c,qa as g};
1
+ import{a$ as Ft,aA as Rt,a1 as Je}from"./Dq9dLpt4.js";import{bI as At,aD as _,aG as Et,bH as Le,bV as it,bs as Bt,ca as Wt,a5 as W,bA as L,W as o,bS as c,b_ as u,bn as Lt,c9 as S,aA as O,bl as E,bO as l,b$ as A,aB as N,bf as H,a7 as q,ay as x,be as Pe,am as Re,ax as Ae}from"./DYhIMPy1.js";import{t as Ut,bq as F,by as jt,bu as Qe,bs as zt,b as Mt,bo as d}from"./41c-5lbJ.js";import{i as D}from"./ClgmQqA9.js";import{k as Ve}from"./D9WrXbf9.js";import{s as Xe}from"./BhX-5zd9.js";import{I as Q,b as Ze,D as le}from"./-o555Jq8.js";import{g as Ee,f as et,s as tt}from"./BBCbq-hE.js";import{F as $t,bk as qt,aJ as Kt,cF as Yt,ci as Gt}from"./AOUBMpYk.js";import{k as Ht}from"./ClkbPGx9.js";import{f as Be}from"./nLyQInj7.js";import"./De70D2Lx.js";import"./ChTqQfQN.js";import"./CdXmpyDy.js";import"./BuDJvkTk.js";import{q as Jt,h as Qt,S as Vt}from"./BAb3JAL_.js";import{O as We}from"./GfKb8O3O.js";import{bQ as Xt,D as Zt,z as ea}from"./CbX7A7fn.js";import{d as ta}from"./Bm0VuPYn.js";import{s as aa,f as ra,c as at}from"./BTI1m7l8.js";function Ma(M){let C=0,$=!1;function _e(I){$!==I&&($=I,M.onDragChange(I))}function pe(){C=0,_e(!1)}function ae(I){return M.isEnabled&&!M.isEnabled()?!1:Rt(I)}return{handleDragEnter(I){ae(I)&&(I.preventDefault(),C++,_e(!0))},handleDragLeave(I){ae(I)&&(I.preventDefault(),C=Math.max(0,C-1),C===0&&_e(!1))},handleDragOver(I){ae(I)&&I.preventDefault()},handleDrop(I){if(!ae(I))return;I.preventDefault(),pe();const Y=Ft(I.dataTransfer);(Y.files.length>0||Y.folderFiles.length>0)&&M.onDrop(Y)},reset:pe}}const lt=Symbol("panel-file-drop-context");function $a(){let M=it(null);const C={register($){Le(M,$)},unregister($){_(M)===$&&Le(M,null)}};return At(lt,C),{context:C,handler:{get current(){return _(M)}}}}function qa(){return Et(lt)??null}var na=N('<span class="inline-flex items-center gap-1.5 svelte-enden2"> </span>'),sa=N('<h3 class="text-lg font-semibold tracking-[-0.016em] transition-colors duration-spring-slow ease-spring-slow motion-reduce:transition-none svelte-enden2"><!></h3>'),oa=N('<span class="inline-block col-span-1 row-span-1 svelte-enden2"> </span>'),ia=N('<span class="text-sm font-mono text-muted-foreground tabular-nums svelte-enden2"><span class="inline-grid *:[grid-area:1/1] svelte-enden2"><!></span> </span>'),la=N('<div class="absolute inset-0 left-5 svelte-enden2"><!></div>'),rt=N('<div class="svelte-enden2"><!></div>'),da=N('<div class="relative flex items-start overflow-hidden rounded-md py-0.75 text-base leading-relaxed svelte-enden2"><!> <span data-testid="workspace-setup-step-icon"><!></span> <div class="setup-step-content min-w-0 text-muted-foreground font-normal leading-snug relative z-10 svelte-enden2" data-testid="workspace-setup-step-content"><!></div></div>'),_a=N('<span data-testid="setup-card-progress-label" class="svelte-enden2"> </span> <div class="mt-1 h-[2px] w-full max-w-64 rounded-full bg-secondary overflow-hidden svelte-enden2"><div class="h-full bg-foreground/60 transition-[width] duration-spring-slow ease-spring-slow motion-reduce:transition-none svelte-enden2" role="progressbar" aria-valuemin="0" aria-valuemax="100" data-testid="setup-card-progress-bar"></div></div>',1),de=N(" <!>",1),pa=N('<span data-testid="setup-card-plain-folder" class="svelte-enden2"> <!> </span>'),va=N(' <code class="text-sm bg-secondary py-1 px-1.5 svelte-enden2"> </code> <!>',1),nt=N(" <!> <!>",1),ca=N(' <span class="svelte-enden2"> </span> ',1),ua=N(' <span class="svelte-enden2"> </span> <!>',1),ga=N('<span class="underline underline-offset-2 svelte-enden2"> </span><span class="whitespace-nowrap svelte-enden2"><span class="underline underline-offset-2 svelte-enden2"> </span><span class="setup-reference-punctuation svelte-enden2" aria-hidden="true"> </span></span>',1),fa=N("<!> ",1),st=N('<span class="svelte-enden2"> </span>'),te=N(" <!> ",1),ma=N('<pre class="text-xs text-muted-foreground font-mono leading-snug line-clamp-2 whitespace-pre-wrap svelte-enden2"> </pre>'),ot=N('<span class="text-xs text-muted-foreground opacity-50 svelte-enden2"> </span>'),ba=N(" <!> <!> ",1),xa=N('<p class="text-xs text-muted-foreground leading-snug svelte-enden2"> </p>'),ha=N('<div><div class="flex items-baseline gap-2.5 pt-3 pb-2 svelte-enden2"><div class="inline-grid *:[grid-area:1/1] svelte-enden2"><!></div> <!></div> <div class="space-y-0.5 pb-4 svelte-enden2"><!> <!> <!> <!></div></div>');function Ca(M,C){if(new.target)return Ut({component:Ca,...M});Bt(C,!0);const $=()=>Qe(dt,"$progressEntry$",pe),_e=()=>Qe(_t,"$specialists$",pe),[pe,ae]=zt();let I=F(C,"repoName",7),Y=F(C,"repoPath",7),G=F(C,"worktreePath",7),ve=F(C,"workspaceId",7),K=F(C,"branch",7),ce=F(C,"baseRef",7,"origin/main"),re=F(C,"projectType",7),V=F(C,"setupScriptStatus",7),Ce=F(C,"setupScriptContent",7),we=F(C,"onFocusSetupTerminal",7),De=F(C,"specialistName",7),U=F(C,"specialistId",7),ne=F(C,"hasPrompt",7,!0),se=F(C,"repoStatus",7,"pending"),ue=F(C,"branchStatus",7,"pending"),ge=F(C,"agentStatus",7,"pending"),X=F(C,"skipIsolation",7,!1),oe=F(C,"plainFolder",7,!1),Ie=F(C,"progressId",7);const dt=aa(Ie()??""),_t=Xt();let fe=it(0);Wt(()=>{const i=Math.min($()?.percent??0,100);i>_(fe)&&Le(fe,i,!0)});const pt=S(()=>$()?.sawFrame===!0),vt=S(()=>ce().replace(/^[^/]+\//,"")),Ne=S(()=>U()?ea(U()):void 0),ct=S(()=>U()?_e().find(i=>i.id===U()):void 0),ut=S(()=>_(ct)?.name||_(Ne)?.name||De()),Ue=S(()=>U()==="spec-writer"||U()===Zt),je=S(()=>{const i=oe()?[se()]:[se(),ue()];return V()&&i.push(V()),i.push(ge()),i}),Te=S(()=>_(je).length),ze=S(()=>_(je).filter(i=>i==="done").length),Me=S(()=>Math.min(_(ze)+1,_(Te))),Se=S(()=>_(ze)===_(Te)),$e=S(()=>_(Se)?d.onboarding_setupCard_ready_title():d.onboarding_setupCard_settingUp_title());function gt(i,R){navigator.clipboard.writeText(i),Ht.success(d.onboarding_setupCard_copied_label({label:R}))}function Oe(i){return i.replace(/^\/Users\/[^/]+/,"~")}function ft(){U()&&ta({specialist:U(),hash:"specialists"})}var mt={get repoName(){return I()},set repoName(i){I(i),O()},get repoPath(){return Y()},set repoPath(i){Y(i),O()},get worktreePath(){return G()},set worktreePath(i){G(i),O()},get workspaceId(){return ve()},set workspaceId(i){ve(i),O()},get branch(){return K()},set branch(i){K(i),O()},get baseRef(){return ce()},set baseRef(i="origin/main"){ce(i),O()},get projectType(){return re()},set projectType(i){re(i),O()},get setupScriptStatus(){return V()},set setupScriptStatus(i){V(i),O()},get setupScriptContent(){return Ce()},set setupScriptContent(i){Ce(i),O()},get onFocusSetupTerminal(){return we()},set onFocusSetupTerminal(i){we(i),O()},get specialistName(){return De()},set specialistName(i){De(i),O()},get specialistId(){return U()},set specialistId(i){U(i),O()},get hasPrompt(){return ne()},set hasPrompt(i=!0){ne(i),O()},get repoStatus(){return se()},set repoStatus(i="pending"){se(i),O()},get branchStatus(){return ue()},set branchStatus(i="pending"){ue(i),O()},get agentStatus(){return ge()},set agentStatus(i="pending"){ge(i),O()},get skipIsolation(){return X()},set skipIsolation(i=!1){X(i),O()},get plainFolder(){return oe()},set plainFolder(i=!1){oe(i),O()},get progressId(){return Ie()},set progressId(i){Ie(i),O()},$set:jt,$on:(i,R)=>Mt(C,i,R)},ye=ha(),ke=W(ye);Ee(ke,"",{},{"padding-inline":"var(--operational-row-inline-padding)"});var Fe=W(ke),bt=W(Fe);Ve(bt,()=>_(Se),i=>{var R=sa(),Z=W(R);{var me=z=>{var B=na(),xe=E(B,!0);u(()=>l(xe,_($e))),o(z,B)},be=z=>{var B=A();u(()=>l(B,_($e))),o(z,B)};D(Z,z=>{_(Se)?z(me):z(be,-1)})}L(R),Q(1,R,()=>Ze,()=>({tier:"slow",distance:3})),Q(2,R,()=>Ze,()=>({tier:"slow",distance:3})),o(i,R)}),L(Fe);var xt=c(Fe,2);{var ht=i=>{var R=ia(),Z=W(R),me=W(Z);Ve(me,()=>_(Me),z=>{var B=oa(),xe=E(B,!0);u(()=>l(xe,_(Me))),Q(1,B,()=>le,()=>({axis:"y",tier:"slow"})),o(z,B)}),L(Z);var be=c(Z);L(R),u(()=>l(be,`/${_(Te)??""}`)),o(i,R)};D(xt,i=>{_(Se)||i(ht)})}L(ke);var qe=c(ke,2);{const i=(f,m=H,y=H,k=H,w=H,b=H)=>{var n=da();Ee(n,"",{},{gap:"0.25rem","padding-inline":"var(--operational-row-inline-padding)"});var t=W(n);{var e=h=>{var P=la(),T=W(P);Vt(T,{}),L(P),o(h,P)};D(t,h=>{m()==="active"&&h(e)})}var a=c(t,2),r=W(a);$t(r,{get icon(){return y()},size:14,get class(){return k()}}),L(a);var s=c(a,2),p=W(s);{var g=h=>{var P=rt(),T=W(P);Xe(T,w),L(P),Q(1,P,()=>le,()=>({axis:"y",tier:"moderate"})),Q(2,P,()=>le,()=>({axis:"y",tier:"moderate"})),o(h,P)},v=h=>{var P=rt(),T=W(P);Xe(T,b),L(P),Q(1,P,()=>le,()=>({axis:"y",tier:"moderate"})),Q(2,P,()=>le,()=>({axis:"y",tier:"moderate"})),o(h,P)};D(p,h=>{m()==="active"?h(g):h(v,-1)})}L(s),L(n),u(()=>et(a,1,`${Qt} relative z-10 mt-1 flex size-4 shrink-0 items-center justify-start`,"svelte-enden2")),Q(3,n,()=>le,()=>({tier:"slow"})),o(f,n)},R=(f,m)=>{let y=Re(()=>Ae(m?.(),""));var k=q(),w=x(k);{var b=t=>{{let e=S(()=>d.onboarding_setupCard_originalFolder_label());B(t,I,()=>_(e),Y,()=>_(y))}},n=t=>{var e=A();u(()=>l(e,`${I()??""}${_(y)??""}`)),o(t,e)};D(w,t=>{Y()?t(b):t(n,-1)})}o(f,k)},Z=f=>{var m=q(),y=x(m);{var k=n=>{var t=_a(),e=x(t),a=E(e,!0),r=c(e,2),s=E(r);u((p,g)=>{l(a,p),Ee(s,`width: ${_(fe)??""}%`),tt(s,"aria-label",g),tt(s,"aria-valuenow",_(fe))},[()=>d.workspace_compactInitializer_progressWithPercent_label({label:at($()),percent:ra(_(fe))}),()=>at($())]),o(n,t)},w=n=>{var t=de(),e=x(t),a=c(e);{let r=S(()=>d.onboarding_setupCard_opening_after());R(a,()=>_(r))}u(r=>l(e,`${r??""} `),[()=>d.onboarding_setupCard_opening_before()]),o(n,t)},b=n=>{var t=de(),e=x(t),a=c(e);R(a),u(r=>l(e,`${r??""} `),[()=>d.onboarding_setupCard_creatingIsolatedCopy_before()]),o(n,t)};D(y,n=>{_(pt)&&$()?n(k):X()||oe()?n(w,1):n(b,-1)})}o(f,m)},me=f=>{var m=q(),y=x(m);{var k=n=>{const t=S(()=>G()||Y());var e=pa(),a=W(e),r=c(a);{var s=v=>{We(v,{get filePath(){return _(t)},get workspaceId(){return ve()},isDirectory:!0,variant:"sidebar",compact:!0,inline:!0,class:"setup-path",children:(h,P)=>{{let T=S(()=>Oe(_(t)));z(h,()=>_(T),()=>".")}},$$slots:{default:!0}})},p=v=>{var h=A();u(()=>l(h,`${I()??""}.`)),o(v,h)};D(r,v=>{_(t)?v(s):v(p,-1)})}var g=c(r);L(e),u((v,h)=>{l(a,`${v??""} `),l(g,` ${h??""}`)},[()=>d.onboarding_setupCard_workingInFolder_before(),()=>d.onboarding_setupCard_plainFolderInPlace_label()]),o(n,e)},w=n=>{var t=va(),e=x(t),a=c(e),r=E(a,!0),s=c(a,2);{var p=v=>{var h=de(),P=x(h),T=c(P);We(T,{get filePath(){return G()},get workspaceId(){return ve()},isDirectory:!0,variant:"sidebar",compact:!0,inline:!0,class:"setup-path",children:(j,ee)=>{{let J=S(()=>Oe(G()));z(j,()=>_(J),()=>".")}},$$slots:{default:!0}}),u(j=>l(P,` ${j??""} `),[()=>d.onboarding_setupCard_at_label()]),o(v,h)},g=v=>{var h=A(".");o(v,h)};D(s,v=>{G()?v(p):v(g,-1)})}u(v=>{l(e,`${v??""} `),l(r,_(vt))},[()=>d.onboarding_setupCard_workingDirectlyOn_before()]),o(n,t)},b=n=>{var t=nt(),e=x(t),a=c(e);R(a);var r=c(a,2);{var s=g=>{var v=de(),h=x(v),P=c(h);We(P,{get filePath(){return G()},get workspaceId(){return ve()},isDirectory:!0,variant:"sidebar",compact:!0,inline:!0,class:"setup-path",children:(T,j)=>{{let ee=S(()=>Oe(G()));z(T,()=>_(ee),()=>".")}},$$slots:{default:!0}}),u(T=>l(h,` ${T??""} `),[()=>d.onboarding_setupCard_at_label()]),o(g,v)},p=g=>{var v=A(".");o(g,v)};D(r,g=>{G()?g(s):g(p,-1)})}u(g=>l(e,`${g??""} `),[()=>d.onboarding_setupCard_createdIsolatedCopy_before()]),o(n,t)};D(y,n=>{oe()?n(k):X()?n(w,1):n(b,-1)})}o(f,m)},be=f=>{var m=q(),y=x(m);{var k=n=>{var t=q(),e=x(t);{var a=s=>{var p=ca(),g=x(p),v=c(g),h=E(v,!0),P=c(v,1,!0);u((T,j)=>{l(g,`${T??""} `),l(h,K()),l(P,j)},[()=>d.onboarding_setupCard_workingOnBranchNamed_before(),()=>d.onboarding_setupCard_workingOnBranchActive_after()]),o(s,p)},r=s=>{var p=A();u(g=>l(p,g),[()=>d.onboarding_setupCard_workingOnBranch_label()]),o(s,p)};D(e,s=>{K()?s(a):s(r,-1)})}o(n,t)},w=n=>{var t=ua(),e=x(t),a=c(e),r=E(a,!0),s=c(a),p=c(s);{let g=S(()=>d.onboarding_setupCard_baseRef_label()),v=S(()=>d.onboarding_setupCard_creatingBranch_after());B(p,ce,()=>_(g),()=>{},()=>_(v))}u((g,v)=>{l(e,`${g??""} `),l(r,K()),l(s,` ${v??""} `)},[()=>d.onboarding_setupCard_creatingBranch_before(),()=>d.onboarding_setupCard_creatingBranch_middle()]),o(n,t)},b=n=>{var t=A();u(e=>l(t,e),[()=>d.onboarding_setupCard_creatingBranchNoName_label()]),o(n,t)};D(y,n=>{X()?n(k):K()?n(w,1):n(b,-1)})}o(f,m)},z=(f,m=H,y)=>{let k=Re(()=>Ae(y?.(),""));const w=S(()=>Array.from(m()));var b=ga(),n=x(b),t=E(n,!0),e=c(n),a=W(e),r=E(a,!0),s=c(a),p=E(s,!0);L(e),u((g,v)=>{l(t,g),l(r,v),l(p,_(k))},[()=>_(w).slice(0,-1).join(""),()=>_(w).at(-1)??""]),o(f,b)},B=(f,m=H,y=H,k=H,w)=>{let b=Re(()=>Ae(w?.(),""));const n=S(()=>_(b).match(/^\p{P}+/u)?.[0]??"");var t=fa(),e=x(t);Be(e,{variant:"plain",wrapContent:!1,class:"setup-inline-link cursor-pointer hover:text-foreground transition-colors",onclick:()=>gt(k()??m(),y()),children:(r,s)=>{z(r,m,()=>_(n))},$$slots:{default:!0}});var a=c(e,1,!0);u(r=>l(a,r),[()=>_(b).slice(_(n).length)]),o(f,t)},xe=f=>{var m=q(),y=x(m);{var k=n=>{var t=q(),e=x(t);{var a=s=>{var p=de(),g=x(p),v=c(g);{let h=S(()=>d.onboarding_setupCard_branchName_label()),P=S(()=>d.onboarding_setupCard_workingOnBranchDone_after());B(v,K,()=>_(h),()=>{},()=>_(P))}u(h=>l(g,`${h??""} `),[()=>d.onboarding_setupCard_workingOnBranchNamed_before()]),o(s,p)},r=s=>{var p=A();u(g=>l(p,g),[()=>d.onboarding_setupCard_workingDirectlyOnBranch_label()]),o(s,p)};D(e,s=>{K()?s(a):s(r,-1)})}o(n,t)},w=n=>{var t=nt(),e=x(t),a=c(e);{let s=S(()=>d.onboarding_setupCard_branchName_label()),p=S(()=>d.onboarding_setupCard_workingInNewBranch_middle());B(a,K,()=>_(s),()=>{},()=>_(p))}var r=c(a,2);{let s=S(()=>d.onboarding_setupCard_baseRef_label()),p=S(()=>d.onboarding_setupCard_workingInNewBranch_after());B(r,ce,()=>_(s),()=>{},()=>_(p))}u(s=>l(e,`${s??""} `),[()=>d.onboarding_setupCard_workingInNewBranch_before()]),o(n,t)},b=n=>{var t=A();u(e=>l(t,e),[()=>d.onboarding_setupCard_branchCreated_label()]),o(n,t)};D(y,n=>{X()?n(k):K()?n(w,1):n(b,-1)})}o(f,m)},Dt=f=>{Pe();var m=te(),y=x(m),k=c(y);{var w=t=>{var e=st(),a=E(e,!0);u(()=>l(a,re())),o(t,e)},b=t=>{var e=A();u(a=>l(e,a),[()=>d.onboarding_setupCard_project_label()]),o(t,e)};D(k,t=>{re()?t(w):t(b,-1)})}var n=c(k);u((t,e)=>{l(y,`${t??""} `),l(n,` ${e??""}`)},[()=>d.onboarding_setupCard_runningSetup_before(),()=>d.onboarding_setupCard_runningSetup_after()]),o(f,m)},It=f=>{Pe();var m=ba(),y=x(m),k=c(y);{var w=r=>{var s=st(),p=E(s,!0);u(()=>l(p,re())),o(r,s)},b=r=>{var s=A();u(p=>l(s,p),[()=>d.onboarding_setupCard_project_label()]),o(r,s)};D(k,r=>{re()?r(w):r(b,-1)})}var n=c(k),t=c(n);{var e=r=>{var s=de(),p=x(s),g=c(p);Je(g,{class:"inline",side:"bottom",align:"start",interactive:!0,maxWidth:"22rem",delayDuration:300,trigger:T=>{Be(T,{variant:"plain",wrapContent:!1,class:"setup-inline-link underline underline-offset-2 cursor-pointer hover:text-foreground transition-colors",get onclick(){return we()},children:(j,ee)=>{Pe();var J=A();u(he=>l(J,he),[()=>d.onboarding_setupCard_terminalTab_label()]),o(j,J)},$$slots:{default:!0}})},content:T=>{var j=q(),ee=x(j);{var J=he=>{var He=ma(),Ot=E(He,!0);u(()=>l(Ot,Ce())),o(he,He)};D(ee,he=>{Ce()&&he(J)})}o(T,j)},footer:T=>{var j=ot(),ee=E(j,!0);u(J=>l(ee,J),[()=>d.onboarding_setupCard_openTerminal_footer()]),o(T,j)},$$slots:{trigger:!0,content:!0,footer:!0}}),u(v=>l(p,` ${v??""} `),[()=>d.onboarding_setupCard_ranSetupIn_middle()]),o(r,s)};D(t,r=>{we()&&r(e)})}var a=c(t,1,!0);u((r,s,p)=>{l(y,`${r??""} `),l(n,` ${s??""}`),l(a,p)},[()=>d.onboarding_setupCard_ranSetup_before(),()=>d.onboarding_setupCard_ranSetup_middle(),()=>d.onboarding_setupCard_ranSetup_after()]),o(f,m)},ie=f=>{Je(f,{class:"inline",side:"bottom",align:"start",interactive:!0,maxWidth:"22rem",delayDuration:300,trigger:w=>{Be(w,{variant:"plain",wrapContent:!1,class:"setup-inline-link underline underline-offset-2 cursor-pointer hover:text-foreground transition-colors",onclick:ft,children:(b,n)=>{Pe();var t=A();u(()=>l(t,_(ut))),o(b,t)},$$slots:{default:!0}})},content:w=>{var b=q(),n=x(b);{var t=e=>{var a=xa(),r=E(a,!0);u(()=>l(r,_(Ne).description)),o(e,a)};D(n,e=>{_(Ne)&&e(t)})}o(w,b)},footer:w=>{var b=ot(),n=E(b,!0);u(t=>l(n,t),[()=>d.onboarding_setupCard_editInSettings_footer()]),o(w,b)},$$slots:{trigger:!0,content:!0,footer:!0}})},Nt=f=>{var m=q(),y=x(m);{var k=e=>{var a=te(),r=x(a),s=c(r);ie(s);var p=c(s);u((g,v)=>{l(r,`${g??""} `),l(p,` ${v??""}`)},[()=>d.onboarding_setupCard_agentReadyNamed_before(),()=>d.onboarding_setupCard_agentReadyNamed_after()]),o(e,a)},w=e=>{var a=A();u(r=>l(a,r),[()=>d.onboarding_setupCard_agentReady_label()]),o(e,a)},b=e=>{var a=te(),r=x(a),s=c(r);ie(s);var p=c(s);u((g,v)=>{l(r,`${g??""} `),l(p,` ${v??""}`)},[()=>d.onboarding_setupCard_specStartingUp_before(),()=>d.onboarding_setupCard_specStartingUp_after()]),o(e,a)},n=e=>{var a=te(),r=x(a),s=c(r);ie(s);var p=c(s);u((g,v)=>{l(r,`${g??""} `),l(p,` ${v??""}`)},[()=>d.onboarding_setupCard_startingUpNamed_before(),()=>d.onboarding_setupCard_startingUpNamed_after()]),o(e,a)},t=e=>{var a=A();u(r=>l(a,r),[()=>d.onboarding_setupCard_startingUp_label()]),o(e,a)};D(y,e=>{!ne()&&U()?e(k):ne()?_(Ue)?e(b,2):U()?e(n,3):e(t,-1):e(w,1)})}o(f,m)},Tt=f=>{var m=q(),y=x(m);{var k=e=>{var a=te(),r=x(a),s=c(r);ie(s);var p=c(s);u((g,v)=>{l(r,`${g??""} `),l(p,` ${v??""}`)},[()=>d.onboarding_setupCard_agentReadyNamed_before(),()=>d.onboarding_setupCard_agentReadyNamed_after()]),o(e,a)},w=e=>{var a=A();u(r=>l(a,r),[()=>d.onboarding_setupCard_agentReady_label()]),o(e,a)},b=e=>{var a=te(),r=x(a),s=c(r);ie(s);var p=c(s);u((g,v)=>{l(r,`${g??""} `),l(p,` ${v??""}`)},[()=>d.onboarding_setupCard_specDone_before(),()=>d.onboarding_setupCard_specDone_after()]),o(e,a)},n=e=>{var a=te(),r=x(a),s=c(r);ie(s);var p=c(s);u((g,v)=>{l(r,`${g??""} `),l(p,` ${v??""}`)},[()=>d.onboarding_setupCard_agentDoneNamed_before(),()=>d.onboarding_setupCard_agentDoneNamed_after()]),o(e,a)},t=e=>{var a=A();u(r=>l(a,r),[()=>d.onboarding_setupCard_agentOrienting_label()]),o(e,a)};D(y,e=>{!ne()&&U()?e(k):ne()?_(Ue)?e(b,2):U()?e(n,3):e(t,-1):e(w,1)})}o(f,m)};var Ke=W(qe);{var Ct=f=>{i(f,se,()=>qt,()=>"-ml-px transform scale-[0.98]",()=>Z,()=>me)};D(Ke,f=>{se()!=="pending"&&f(Ct)})}var Ye=c(Ke,2);{var wt=f=>{i(f,ue,()=>Kt,()=>"",()=>be,()=>xe)};D(Ye,f=>{ue()!=="pending"&&!X()&&!oe()&&f(wt)})}var Ge=c(Ye,2);{var St=f=>{i(f,V,()=>Yt,()=>"ml-[0.5px]",()=>Dt,()=>It)};D(Ge,f=>{V()&&V()!=="pending"&&f(St)})}var yt=c(Ge,2);{var kt=f=>{i(f,ge,()=>Gt,()=>"ml-[-0.5px]",()=>Nt,()=>Tt)};D(yt,f=>{ge()!=="pending"&&f(kt)})}L(qe)}L(ye),u(()=>et(ye,1,`${Jt} w-full overflow-hidden transition-all duration-spring-slow ease-spring-slow motion-reduce:transition-none`,"svelte-enden2")),o(M,ye);var Pt=Lt(mt);return ae(),Pt}export{Ca as W,$a as a,Ma as c,qa as g};
@@ -1 +1 @@
1
- import{Iv as S,Bx as o,aP as d,aQ as l,aR as a}from"./BSSsvY4I.js";import{i as x,c}from"./CMiilI_P.js";import{w as f}from"./d5dkOEAr.js";const C=t=>{if(typeof window>"u")return;const e=window;e.intent?.reduxContext&&(e.intent.reduxContext===t&&(e.intent.reduxContext=void 0),Array.isArray(e.intent.reduxContext)&&(e.intent.reduxContext=e.intent.reduxContext.filter(i=>i!==t)))},R=t=>{if(typeof window>"u")return;const e=window;if(e.intent=e.intent||{},e.intent.reduxContext===t)console.log("Context is exposed already");else if(!e.intent.reduxContext)e.intent.reduxContext=t;else{const n=[];e.intent.reduxContext=n.concat(e.intent.reduxContext).concat(t),e.isStorybook?console.log("Multiple Redux stores initialized:",e.intent.reduxContext):console.error("Multiple Redux stores initialized:",e.intent.reduxContext)}e.intent.debug||(e.intent.debug={});const i=n=>{if(n==="true")return!0;if(n==="false")return!1},r=n=>{const g=i(o.getItem(n))??!1;o.setItem(n,String(!g))},u=n=>{o.getItem(n)?o.removeItem(n):o.setItem(n,"true")},s=()=>{console.log("Redux logging preference updated. Reload to take effect.")};e.intent.enableReduxLogging=()=>{o.setItem(d,"true"),s()},e.intent.disableReduxLogging=()=>{o.setItem(d,"false"),s()},e.intent.debug.toggleReduxLogs=()=>{r(d),s()},e.intent.debug.toggleStateReferenceChecks=()=>{u(l)},e.intent.debug.toggleStructuredCloneChecks=()=>{u(a)}},m=(t,e)=>{const i=t.init(f(e)),r={store:t,dispose:()=>{C(r);try{i()}finally{c(t)}}};return R(r),x(t),r};export{m as initAppStore,S as store};
1
+ import{Iv as S,Bx as o,aP as d,aQ as l,aR as a}from"./BuDJvkTk.js";import{i as x,c}from"./CMiilI_P.js";import{w as f}from"./d5dkOEAr.js";const C=t=>{if(typeof window>"u")return;const e=window;e.intent?.reduxContext&&(e.intent.reduxContext===t&&(e.intent.reduxContext=void 0),Array.isArray(e.intent.reduxContext)&&(e.intent.reduxContext=e.intent.reduxContext.filter(i=>i!==t)))},R=t=>{if(typeof window>"u")return;const e=window;if(e.intent=e.intent||{},e.intent.reduxContext===t)console.log("Context is exposed already");else if(!e.intent.reduxContext)e.intent.reduxContext=t;else{const n=[];e.intent.reduxContext=n.concat(e.intent.reduxContext).concat(t),e.isStorybook?console.log("Multiple Redux stores initialized:",e.intent.reduxContext):console.error("Multiple Redux stores initialized:",e.intent.reduxContext)}e.intent.debug||(e.intent.debug={});const i=n=>{if(n==="true")return!0;if(n==="false")return!1},r=n=>{const g=i(o.getItem(n))??!1;o.setItem(n,String(!g))},u=n=>{o.getItem(n)?o.removeItem(n):o.setItem(n,"true")},s=()=>{console.log("Redux logging preference updated. Reload to take effect.")};e.intent.enableReduxLogging=()=>{o.setItem(d,"true"),s()},e.intent.disableReduxLogging=()=>{o.setItem(d,"false"),s()},e.intent.debug.toggleReduxLogs=()=>{r(d),s()},e.intent.debug.toggleStateReferenceChecks=()=>{u(l)},e.intent.debug.toggleStructuredCloneChecks=()=>{u(a)}},m=(t,e)=>{const i=t.init(f(e)),r={store:t,dispose:()=>{C(r);try{i()}finally{c(t)}}};return R(r),x(t),r};export{m as initAppStore,S as store};
@@ -1 +1 @@
1
- import{K as G,T as F,_ as N,a0 as A,d as J,f as X,X as Q,Q as Y,n as _,e as Z,c as q,m as W,h as K,l as O}from"./D897Deqj.js";import{D as P,a as tt,d as et}from"./CQcEqK4G.js";import{o as m,b as B,s as l,n as h,l as v,_ as M,c as U,u as nt}from"./CIyUrgF0.js";import{I as at}from"./ggQuSgBM.js";const it="/app/immutable/assets/PatrickHand-Regular.CyLOmwMC.ttf";let D=null,R=null;const L=P.badgeFontFamily;function $(){return R??L}function H(){return D||(D=(async()=>{let t;try{const i=typeof document<"u"?document.fonts:globalThis.fonts;if(!i||typeof FontFace>"u")throw new Error("font-api-unavailable");const a=await Promise.race([new FontFace("Intent Annotation Hand",`url("${it}")`,{style:"normal",weight:"400",display:"block"}).load(),new Promise((s,r)=>{t=setTimeout(()=>r(new Error("font-load-timeout")),2e3)})]);i.add(a),R=P.fontFamily}catch{R=L}finally{clearTimeout(t)}})(),D)}let y=null;function ot(t){const i=G(t);if(t.kind!=="text"||t.style==="sticky"||(y||(y=typeof OffscreenCanvas<"u"?new OffscreenCanvas(1,1).getContext("2d"):typeof document<"u"?document.createElement("canvas").getContext("2d"):null),!y))return i;y.font=`${t.fontSize}px ${$()}`,y.textAlign="left",y.textBaseline="top",y.letterSpacing="0px",y.wordSpacing="0px";let a=1/0,s=1/0,r=-1/0,n=-1/0;const{lines:u,lineHeight:c}=F(t);for(const[o,g]of u.entries()){if(!g.trim())continue;const p=y.measureText(g),b=o*c,f=[-p.actualBoundingBoxLeft,b-p.actualBoundingBoxAscent,p.actualBoundingBoxRight,b+p.actualBoundingBoxDescent];if(!f.every(Number.isFinite))return i;a=Math.min(a,f[0]),s=Math.min(s,f[1]),r=Math.max(r,f[2]),n=Math.max(n,f[3])}if(!(r>a&&n>s))return i;const e=Math.max(1,t.fontSize/24);return{x:t.x+a-e,y:t.y+s-e,w:r-a+2*e,h:n-s+2*e}}function gt(t,i){const a=N(i,t,null),s=new Set([0,t.durationMs,...t.batches.flatMap(e=>e.clearAtMs===null?[]:[e.clearAtMs]),...a.marks.flatMap(e=>[e.frameAtMs,e.visibleUntilMs,...A(t,e.mark)?[A(t,e.mark).completedAtMs]:[]])]),r=[...new Set(a.marks.flatMap(e=>A(t,e.mark)?.samples.map(g=>g.atMs)??[]))].filter(e=>!s.has(e)&&e>=0&&e<=t.durationMs).sort((e,o)=>e-o),n=Math.max(0,1001-s.size),u=n>=r.length?r:Array.from({length:n},(e,o)=>r[Math.floor(o*r.length/n)]),c=[...new Set([...s,...u])].filter(e=>e>=0&&e<=t.durationMs).sort((e,o)=>e-o);return c.slice(0,-1).map((e,o)=>({atMs:e,endMs:c[o+1]})).filter(e=>e.endMs>e.atMs&&a.marks.some(o=>e.atMs>=o.frameAtMs&&e.atMs<o.visibleUntilMs))}function pt(t,i,a){const s=A(t,i);return!s||a>=s.completedAtMs}const E=16e3;function rt(t,i){const s=t.length*2,r=new ArrayBuffer(44+s),n=new DataView(r),u=(e,o)=>{for(let g=0;g<o.length;g+=1)n.setUint8(e+g,o.charCodeAt(g))};u(0,"RIFF"),n.setUint32(4,36+s,!0),u(8,"WAVE"),u(12,"fmt "),n.setUint32(16,16,!0),n.setUint16(20,1,!0),n.setUint16(22,1,!0),n.setUint32(24,i,!0),n.setUint32(28,i*2,!0),n.setUint16(32,2,!0),n.setUint16(34,16,!0),u(36,"data"),n.setUint32(40,s,!0);let c=44;for(let e=0;e<t.length;e+=1){const o=Math.max(-1,Math.min(1,t[e]));n.setInt16(c,o<0?o*32768:o*32767,!0),c+=2}return r}function st(t){const i=new Float32Array(t.length);for(let a=0;a<t.numberOfChannels;a+=1){const s=t.getChannelData(a);for(let r=0;r<s.length;r+=1)i[r]+=s[r]/t.numberOfChannels}return i}async function kt(t){const i=new AudioContext;try{const a=await i.decodeAudioData(await t.arrayBuffer()),s=Math.max(1,Math.ceil(a.length*E/a.sampleRate)),r=new OfflineAudioContext(1,s,E),n=r.createBufferSource();n.buffer=a,n.connect(r.destination),n.start();const u=await r.startRendering();return rt(st(u),E)}finally{await i.close().catch(()=>{})}}function j(t){const i=new Uint8Array(t),a=32768;let s="";for(let r=0;r<i.length;r+=a)s+=String.fromCharCode(...i.subarray(r,r+a));return btoa(s)}const d={...P,get fontFamily(){return $()},blurRadius:J};function z(t,i,a=0,s){const r=t.crop??{x:0,y:0,w:i.width,h:i.height},n=Math.max(1,Math.max(i.width,i.height)/1440),u=Math.min(d.badgeRadius*n,r.w/2,r.h/2);return Q(t,i).filter(c=>i.kind==="screenshot"||a>=c.mark.atMs&&a<c.visibleUntilMs).flatMap(({n:c,mark:e})=>{const o=i.kind==="recording"?Y(e.geometry,A(i,e),a):e.geometry;if(!o)return[];const g=ot(o),p=et(g,r,n,u);return[...e.id===s&&o.kind==="text"?[]:[{kind:"geometry",geometry:o,unit:n}],...d.showNumbers?[{kind:"badge",...p,radius:u,label:String(c),unit:n}]:[]]})}function V(t,i){t.save(),t.letterSpacing="0px",t.wordSpacing="0px",t.strokeStyle=d.accent,t.fillStyle=d.accent,t.lineCap="round",t.lineJoin="round";for(const a of i){const s=a.unit??1,r=(c,e)=>{t.strokeStyle=d.halo,t.lineWidth=c+d.haloWidth*s,e?t.stroke(e):t.stroke(),t.strokeStyle=d.accent,t.lineWidth=c,e?t.stroke(e):t.stroke()};if(a.kind==="badge"){t.fillStyle=d.paper,t.beginPath(),t.arc(a.x,a.y,a.radius,0,Math.PI*2),t.fill(),t.strokeStyle=d.accent,t.lineWidth=d.badgeOutline*s,t.stroke(),t.fillStyle=d.ink,t.font=`600 ${a.radius*d.badgeTextScale}px ${d.badgeFontFamily}`,t.textAlign="center",t.textBaseline="middle",t.fillText(a.label,a.x,a.y);continue}const n=a.geometry;t.fillStyle=d.accent;const u=(n.kind==="path"?d.pen:d.stroke)*s;if(n.kind==="rect")t.beginPath(),t.rect(n.x,n.y,n.w,n.h),r(u);else if(n.kind==="text"){const c=F(n);t.fillStyle=d.accent,t.textAlign="left",t.textBaseline="top",t.font=`${n.fontSize}px ${d.fontFamily}`,c.lines.forEach((e,o)=>{const g=n.x+c.padding,p=n.y+c.padding+o*c.lineHeight;t.strokeStyle=d.halo,t.lineWidth=d.haloWidth*s;const b=n.style==="sticky"?c.width-2*c.padding:void 0;t.strokeText(e,g,p,b),t.fillText(e,g,p,b)})}else if(n.kind==="point")t.beginPath(),t.arc(n.x,n.y,X,0,Math.PI*2),r(u);else if(n.kind==="path")r(u,new Path2D(tt(n.points)));else{const c=[n.from,n.to];if(t.beginPath(),c.forEach((e,o)=>o?t.lineTo(e.x,e.y):t.moveTo(e.x,e.y)),n.kind==="arrow"){const e=Math.atan2(n.to.y-n.from.y,n.to.x-n.from.x),o=d.arrowHead*s;t.moveTo(n.to.x-o*Math.cos(e-d.arrowSpread),n.to.y-o*Math.sin(e-d.arrowSpread)),t.lineTo(n.to.x,n.to.y),t.lineTo(n.to.x-o*Math.cos(e+d.arrowSpread),n.to.y-o*Math.sin(e+d.arrowSpread))}r(u)}}t.restore()}function I(t,i){const a=new OffscreenCanvas(Math.max(1,Math.round(t)),Math.max(1,Math.round(i))),s=a.getContext("2d");if(!s)throw new Error("capture-render-unavailable");return{image:a,context:s}}async function yt(t,i,a){if(t.visuals!=="clean")throw new Error("legacy-baked-marks");await H();const{image:s,context:r}=I(t.width,t.height);return V(r,z(i,t,a)),j(await(await s.convertToBlob({type:"image/png"})).arrayBuffer())}async function wt(t,i,a,s){const r=N(i,t,null);if(t.kind!=="screenshot"||r.errors.length)throw new Error(r.errors[0]??"not-a-screenshot");if(t.visuals!=="clean")throw new Error("legacy-baked-marks");await H();const n=Uint8Array.from(atob(a.base64),c=>c.charCodeAt(0)),u=await createImageBitmap(new Blob([n],{type:a.mimeType}));try{if(u.width!==t.width||u.height!==t.height)throw new Error("stale-source-pixels");const c=I(t.width,t.height);if(c.context.drawImage(u,0,0),i.blurRegions.length||i.blurStrokes?.length){const p=I(t.width,t.height);p.context.fillStyle="#000000",p.context.fillRect(0,0,t.width,t.height);const b=`blur(${d.blurRadius}px)`;if(p.context.filter=b,p.context.filter!==b)throw new Error("capture-blur-unavailable");p.context.drawImage(u,0,0);const f=I(t.width,t.height);f.context.fillStyle="#ffffff",f.context.strokeStyle="#ffffff",f.context.lineCap="round",f.context.lineJoin="round";for(const k of i.blurRegions)f.context.fillRect(k.x,k.y,k.w,k.h);for(const k of i.blurStrokes??[]){const S=k.points.filter((x,C)=>C===0||x.x!==k.points[C-1].x||x.y!==k.points[C-1].y);if(f.context.beginPath(),S.length===1){const x=S[0];f.context.arc(x.x,x.y,k.radius,0,Math.PI*2),f.context.fill()}else{f.context.lineWidth=k.radius*2,f.context.moveTo(S[0].x,S[0].y);for(const x of S.slice(1))f.context.lineTo(x.x,x.y);f.context.stroke()}}const T=I(t.width,t.height);T.context.drawImage(p.image,0,0),T.context.globalCompositeOperation="destination-in",T.context.drawImage(f.image,0,0),c.context.drawImage(T.image,0,0)}const e=i.crop??{x:0,y:0,w:t.width,h:t.height},o=I(e.w,e.h);o.context.drawImage(c.image,e.x,e.y,e.w,e.h,0,0,o.image.width,o.image.height),o.context.scale(o.image.width/e.w,o.image.height/e.h),o.context.translate(-e.x,-e.y),V(o.context,z(i,t,0,s?.hiddenTextMarkId));const g=await o.image.convertToBlob({type:"image/png"});return{data:j(await g.arrayBuffer()),mimeType:"image/png",width:o.image.width,height:o.image.height}}finally{u.close()}}const Mt=m({outputVersion:v(Z),jobId:l().uuid(),media:_,layers:B(m({atMs:h().finite().nonnegative(),endMs:h().finite().nonnegative(),png:l().min(1).max(48*1024*1024)}).strict()).max(1e4)}).strict(),bt=m({jobId:l().uuid(),media:_,locale:l().min(1).max(80).optional()}).strict(),lt=m({sourceId:l().min(1),sourceRevision:h().int().nonnegative(),durationMs:h().finite().positive().max(120001),intervalMs:v(50),peaks:B(h().finite().min(0).max(1)).max(2401)}).strict().refine(t=>t.peaks.length===Math.ceil(t.durationMs/t.intervalMs),"Incomplete waveform");m({jobId:l().uuid(),media:_}).strict();m({sourceId:l().min(1),sourceRevision:h().int().nonnegative(),trackCount:h().int().nonnegative().max(128),populatedTrackCount:h().int().nonnegative().max(128)}).strict().refine(t=>t.populatedTrackCount<=t.trackCount);const xt=at.DOCK_CAPTURE_EDITOR,w=l().min(1).max(200),ct=m({id:w,tool:M(q),atMs:h().finite().min(0).max(1440*60*1e3).nullable(),label:l().max(200).optional()}).strict();m({kind:M(["recording","screenshot"]),workspaceId:w,agentId:w,attachmentId:w,sourceRevision:l().min(1).max(512),attachmentPath:l().min(1).max(1024),title:l().max(200),durationMs:h().finite().min(0).max(1440*60*1e3).optional(),width:h().int().positive().max(32768).optional(),height:h().int().positive().max(32768).optional(),marks:B(ct).max(500),provenance:m({captureApi:l().max(100).optional(),hasMicAudio:U().optional(),visuals:M(["clean","baked-marks"])}).strict(),source:O.optional(),originalSource:O.optional(),saved:K.nullable().optional(),transcript:W.nullable().optional(),holdToken:l().uuid().optional()}).strict().refine(t=>!t.source||t.source.path===t.attachmentPath&&t.source.attachmentId===t.attachmentId&&t.source.kind===t.kind,"Source does not match the attachment").refine(t=>!t.saved||!!t.source&&t.saved.sourceId===t.source.id&&t.saved.sourceRevision===t.source.revision,"Edit does not match the source").refine(t=>!t.originalSource||t.source?.kind==="screenshot"&&t.originalSource.kind==="screenshot"&&t.originalSource.id!==t.source.id,"Original source does not precede this source");m({openId:l().uuid(),intent:v("attach").optional()}).strict();m({openId:l().uuid(),accept:U()}).strict();m({token:l().uuid(),hide:v(!0).optional()}).strict();m({openId:l().uuid(),requestId:l().uuid()}).strict();m({requestId:l().uuid(),result:M(["saved","stale-source","revision-conflict","failed"]),saved:K.optional()}).strict().refine(t=>t.result==="saved"==!!t.saved,"Saved edit missing");m({pair:m({workspaceId:l().min(1).max(200),agentId:l().min(1).max(200)}).strict(),sourceId:l().min(1).max(512),sourceRevision:h().int().nonnegative(),transcript:W}).strict();nt([m({requestId:l().uuid(),ok:v(!0),source:O}).strict(),m({requestId:l().uuid(),ok:v(!1),error:M(["cancelled","permission","failed"])}).strict()]);const dt=2e4;m({openId:l().uuid(),markId:l().min(1).max(512),generation:h().int().nonnegative(),phase:M(["start","stop"])}).strict();m({requestId:l().uuid(),generation:h().int().nonnegative(),text:l().max(dt),final:U(),error:M(["busy","unavailable","failed","permission"]).optional()}).strict().refine(t=>!t.error||t.final,"An error is final");m({pair:m({workspaceId:l().min(1).max(200),agentId:l().min(1).max(200)}).strict(),sourceId:l().min(1).max(512),sourceRevision:h().int().nonnegative(),waveform:lt}).strict();const It=m({requestId:l().uuid(),openId:w,pair:m({workspaceId:w,agentId:w}).strict(),kind:M(["screenshot","recording"]),attachmentId:w,sourceId:w.optional(),sourceRevision:h().int().nonnegative().optional(),expectedEditRevision:h().int().nonnegative().optional()}).strict();m({requestId:l().uuid(),result:M(["deleted","stale-source","failed"])}).strict();const vt=m({endedOpenId:l().uuid()}).strict();export{xt as D,d as a,dt as b,It as c,vt as d,Mt as e,bt as f,j as g,kt as h,ot as i,$ as j,pt as k,gt as l,H as m,z as n,yt as o,V as p,wt as r};
1
+ import{K as G,T as F,_ as N,a0 as A,d as J,f as X,X as Q,Q as Y,n as _,e as Z,c as q,m as W,h as K,l as O}from"./BDbt9cuZ.js";import{D as P,a as tt,d as et}from"./CQcEqK4G.js";import{o as m,b as B,s as l,n as h,l as v,_ as M,c as U,u as nt}from"./CIyUrgF0.js";import{I as at}from"./ggQuSgBM.js";const it="/app/immutable/assets/PatrickHand-Regular.CyLOmwMC.ttf";let D=null,R=null;const L=P.badgeFontFamily;function $(){return R??L}function H(){return D||(D=(async()=>{let t;try{const i=typeof document<"u"?document.fonts:globalThis.fonts;if(!i||typeof FontFace>"u")throw new Error("font-api-unavailable");const a=await Promise.race([new FontFace("Intent Annotation Hand",`url("${it}")`,{style:"normal",weight:"400",display:"block"}).load(),new Promise((s,r)=>{t=setTimeout(()=>r(new Error("font-load-timeout")),2e3)})]);i.add(a),R=P.fontFamily}catch{R=L}finally{clearTimeout(t)}})(),D)}let y=null;function ot(t){const i=G(t);if(t.kind!=="text"||t.style==="sticky"||(y||(y=typeof OffscreenCanvas<"u"?new OffscreenCanvas(1,1).getContext("2d"):typeof document<"u"?document.createElement("canvas").getContext("2d"):null),!y))return i;y.font=`${t.fontSize}px ${$()}`,y.textAlign="left",y.textBaseline="top",y.letterSpacing="0px",y.wordSpacing="0px";let a=1/0,s=1/0,r=-1/0,n=-1/0;const{lines:u,lineHeight:c}=F(t);for(const[o,g]of u.entries()){if(!g.trim())continue;const p=y.measureText(g),b=o*c,f=[-p.actualBoundingBoxLeft,b-p.actualBoundingBoxAscent,p.actualBoundingBoxRight,b+p.actualBoundingBoxDescent];if(!f.every(Number.isFinite))return i;a=Math.min(a,f[0]),s=Math.min(s,f[1]),r=Math.max(r,f[2]),n=Math.max(n,f[3])}if(!(r>a&&n>s))return i;const e=Math.max(1,t.fontSize/24);return{x:t.x+a-e,y:t.y+s-e,w:r-a+2*e,h:n-s+2*e}}function gt(t,i){const a=N(i,t,null),s=new Set([0,t.durationMs,...t.batches.flatMap(e=>e.clearAtMs===null?[]:[e.clearAtMs]),...a.marks.flatMap(e=>[e.frameAtMs,e.visibleUntilMs,...A(t,e.mark)?[A(t,e.mark).completedAtMs]:[]])]),r=[...new Set(a.marks.flatMap(e=>A(t,e.mark)?.samples.map(g=>g.atMs)??[]))].filter(e=>!s.has(e)&&e>=0&&e<=t.durationMs).sort((e,o)=>e-o),n=Math.max(0,1001-s.size),u=n>=r.length?r:Array.from({length:n},(e,o)=>r[Math.floor(o*r.length/n)]),c=[...new Set([...s,...u])].filter(e=>e>=0&&e<=t.durationMs).sort((e,o)=>e-o);return c.slice(0,-1).map((e,o)=>({atMs:e,endMs:c[o+1]})).filter(e=>e.endMs>e.atMs&&a.marks.some(o=>e.atMs>=o.frameAtMs&&e.atMs<o.visibleUntilMs))}function pt(t,i,a){const s=A(t,i);return!s||a>=s.completedAtMs}const E=16e3;function rt(t,i){const s=t.length*2,r=new ArrayBuffer(44+s),n=new DataView(r),u=(e,o)=>{for(let g=0;g<o.length;g+=1)n.setUint8(e+g,o.charCodeAt(g))};u(0,"RIFF"),n.setUint32(4,36+s,!0),u(8,"WAVE"),u(12,"fmt "),n.setUint32(16,16,!0),n.setUint16(20,1,!0),n.setUint16(22,1,!0),n.setUint32(24,i,!0),n.setUint32(28,i*2,!0),n.setUint16(32,2,!0),n.setUint16(34,16,!0),u(36,"data"),n.setUint32(40,s,!0);let c=44;for(let e=0;e<t.length;e+=1){const o=Math.max(-1,Math.min(1,t[e]));n.setInt16(c,o<0?o*32768:o*32767,!0),c+=2}return r}function st(t){const i=new Float32Array(t.length);for(let a=0;a<t.numberOfChannels;a+=1){const s=t.getChannelData(a);for(let r=0;r<s.length;r+=1)i[r]+=s[r]/t.numberOfChannels}return i}async function kt(t){const i=new AudioContext;try{const a=await i.decodeAudioData(await t.arrayBuffer()),s=Math.max(1,Math.ceil(a.length*E/a.sampleRate)),r=new OfflineAudioContext(1,s,E),n=r.createBufferSource();n.buffer=a,n.connect(r.destination),n.start();const u=await r.startRendering();return rt(st(u),E)}finally{await i.close().catch(()=>{})}}function j(t){const i=new Uint8Array(t),a=32768;let s="";for(let r=0;r<i.length;r+=a)s+=String.fromCharCode(...i.subarray(r,r+a));return btoa(s)}const d={...P,get fontFamily(){return $()},blurRadius:J};function z(t,i,a=0,s){const r=t.crop??{x:0,y:0,w:i.width,h:i.height},n=Math.max(1,Math.max(i.width,i.height)/1440),u=Math.min(d.badgeRadius*n,r.w/2,r.h/2);return Q(t,i).filter(c=>i.kind==="screenshot"||a>=c.mark.atMs&&a<c.visibleUntilMs).flatMap(({n:c,mark:e})=>{const o=i.kind==="recording"?Y(e.geometry,A(i,e),a):e.geometry;if(!o)return[];const g=ot(o),p=et(g,r,n,u);return[...e.id===s&&o.kind==="text"?[]:[{kind:"geometry",geometry:o,unit:n}],...d.showNumbers?[{kind:"badge",...p,radius:u,label:String(c),unit:n}]:[]]})}function V(t,i){t.save(),t.letterSpacing="0px",t.wordSpacing="0px",t.strokeStyle=d.accent,t.fillStyle=d.accent,t.lineCap="round",t.lineJoin="round";for(const a of i){const s=a.unit??1,r=(c,e)=>{t.strokeStyle=d.halo,t.lineWidth=c+d.haloWidth*s,e?t.stroke(e):t.stroke(),t.strokeStyle=d.accent,t.lineWidth=c,e?t.stroke(e):t.stroke()};if(a.kind==="badge"){t.fillStyle=d.paper,t.beginPath(),t.arc(a.x,a.y,a.radius,0,Math.PI*2),t.fill(),t.strokeStyle=d.accent,t.lineWidth=d.badgeOutline*s,t.stroke(),t.fillStyle=d.ink,t.font=`600 ${a.radius*d.badgeTextScale}px ${d.badgeFontFamily}`,t.textAlign="center",t.textBaseline="middle",t.fillText(a.label,a.x,a.y);continue}const n=a.geometry;t.fillStyle=d.accent;const u=(n.kind==="path"?d.pen:d.stroke)*s;if(n.kind==="rect")t.beginPath(),t.rect(n.x,n.y,n.w,n.h),r(u);else if(n.kind==="text"){const c=F(n);t.fillStyle=d.accent,t.textAlign="left",t.textBaseline="top",t.font=`${n.fontSize}px ${d.fontFamily}`,c.lines.forEach((e,o)=>{const g=n.x+c.padding,p=n.y+c.padding+o*c.lineHeight;t.strokeStyle=d.halo,t.lineWidth=d.haloWidth*s;const b=n.style==="sticky"?c.width-2*c.padding:void 0;t.strokeText(e,g,p,b),t.fillText(e,g,p,b)})}else if(n.kind==="point")t.beginPath(),t.arc(n.x,n.y,X,0,Math.PI*2),r(u);else if(n.kind==="path")r(u,new Path2D(tt(n.points)));else{const c=[n.from,n.to];if(t.beginPath(),c.forEach((e,o)=>o?t.lineTo(e.x,e.y):t.moveTo(e.x,e.y)),n.kind==="arrow"){const e=Math.atan2(n.to.y-n.from.y,n.to.x-n.from.x),o=d.arrowHead*s;t.moveTo(n.to.x-o*Math.cos(e-d.arrowSpread),n.to.y-o*Math.sin(e-d.arrowSpread)),t.lineTo(n.to.x,n.to.y),t.lineTo(n.to.x-o*Math.cos(e+d.arrowSpread),n.to.y-o*Math.sin(e+d.arrowSpread))}r(u)}}t.restore()}function I(t,i){const a=new OffscreenCanvas(Math.max(1,Math.round(t)),Math.max(1,Math.round(i))),s=a.getContext("2d");if(!s)throw new Error("capture-render-unavailable");return{image:a,context:s}}async function yt(t,i,a){if(t.visuals!=="clean")throw new Error("legacy-baked-marks");await H();const{image:s,context:r}=I(t.width,t.height);return V(r,z(i,t,a)),j(await(await s.convertToBlob({type:"image/png"})).arrayBuffer())}async function wt(t,i,a,s){const r=N(i,t,null);if(t.kind!=="screenshot"||r.errors.length)throw new Error(r.errors[0]??"not-a-screenshot");if(t.visuals!=="clean")throw new Error("legacy-baked-marks");await H();const n=Uint8Array.from(atob(a.base64),c=>c.charCodeAt(0)),u=await createImageBitmap(new Blob([n],{type:a.mimeType}));try{if(u.width!==t.width||u.height!==t.height)throw new Error("stale-source-pixels");const c=I(t.width,t.height);if(c.context.drawImage(u,0,0),i.blurRegions.length||i.blurStrokes?.length){const p=I(t.width,t.height);p.context.fillStyle="#000000",p.context.fillRect(0,0,t.width,t.height);const b=`blur(${d.blurRadius}px)`;if(p.context.filter=b,p.context.filter!==b)throw new Error("capture-blur-unavailable");p.context.drawImage(u,0,0);const f=I(t.width,t.height);f.context.fillStyle="#ffffff",f.context.strokeStyle="#ffffff",f.context.lineCap="round",f.context.lineJoin="round";for(const k of i.blurRegions)f.context.fillRect(k.x,k.y,k.w,k.h);for(const k of i.blurStrokes??[]){const S=k.points.filter((x,C)=>C===0||x.x!==k.points[C-1].x||x.y!==k.points[C-1].y);if(f.context.beginPath(),S.length===1){const x=S[0];f.context.arc(x.x,x.y,k.radius,0,Math.PI*2),f.context.fill()}else{f.context.lineWidth=k.radius*2,f.context.moveTo(S[0].x,S[0].y);for(const x of S.slice(1))f.context.lineTo(x.x,x.y);f.context.stroke()}}const T=I(t.width,t.height);T.context.drawImage(p.image,0,0),T.context.globalCompositeOperation="destination-in",T.context.drawImage(f.image,0,0),c.context.drawImage(T.image,0,0)}const e=i.crop??{x:0,y:0,w:t.width,h:t.height},o=I(e.w,e.h);o.context.drawImage(c.image,e.x,e.y,e.w,e.h,0,0,o.image.width,o.image.height),o.context.scale(o.image.width/e.w,o.image.height/e.h),o.context.translate(-e.x,-e.y),V(o.context,z(i,t,0,s?.hiddenTextMarkId));const g=await o.image.convertToBlob({type:"image/png"});return{data:j(await g.arrayBuffer()),mimeType:"image/png",width:o.image.width,height:o.image.height}}finally{u.close()}}const Mt=m({outputVersion:v(Z),jobId:l().uuid(),media:_,layers:B(m({atMs:h().finite().nonnegative(),endMs:h().finite().nonnegative(),png:l().min(1).max(48*1024*1024)}).strict()).max(1e4)}).strict(),bt=m({jobId:l().uuid(),media:_,locale:l().min(1).max(80).optional()}).strict(),lt=m({sourceId:l().min(1),sourceRevision:h().int().nonnegative(),durationMs:h().finite().positive().max(120001),intervalMs:v(50),peaks:B(h().finite().min(0).max(1)).max(2401)}).strict().refine(t=>t.peaks.length===Math.ceil(t.durationMs/t.intervalMs),"Incomplete waveform");m({jobId:l().uuid(),media:_}).strict();m({sourceId:l().min(1),sourceRevision:h().int().nonnegative(),trackCount:h().int().nonnegative().max(128),populatedTrackCount:h().int().nonnegative().max(128)}).strict().refine(t=>t.populatedTrackCount<=t.trackCount);const xt=at.DOCK_CAPTURE_EDITOR,w=l().min(1).max(200),ct=m({id:w,tool:M(q),atMs:h().finite().min(0).max(1440*60*1e3).nullable(),label:l().max(200).optional()}).strict();m({kind:M(["recording","screenshot"]),workspaceId:w,agentId:w,attachmentId:w,sourceRevision:l().min(1).max(512),attachmentPath:l().min(1).max(1024),title:l().max(200),durationMs:h().finite().min(0).max(1440*60*1e3).optional(),width:h().int().positive().max(32768).optional(),height:h().int().positive().max(32768).optional(),marks:B(ct).max(500),provenance:m({captureApi:l().max(100).optional(),hasMicAudio:U().optional(),visuals:M(["clean","baked-marks"])}).strict(),source:O.optional(),originalSource:O.optional(),saved:K.nullable().optional(),transcript:W.nullable().optional(),holdToken:l().uuid().optional()}).strict().refine(t=>!t.source||t.source.path===t.attachmentPath&&t.source.attachmentId===t.attachmentId&&t.source.kind===t.kind,"Source does not match the attachment").refine(t=>!t.saved||!!t.source&&t.saved.sourceId===t.source.id&&t.saved.sourceRevision===t.source.revision,"Edit does not match the source").refine(t=>!t.originalSource||t.source?.kind==="screenshot"&&t.originalSource.kind==="screenshot"&&t.originalSource.id!==t.source.id,"Original source does not precede this source");m({openId:l().uuid(),intent:v("attach").optional()}).strict();m({openId:l().uuid(),accept:U()}).strict();m({token:l().uuid(),hide:v(!0).optional()}).strict();m({openId:l().uuid(),requestId:l().uuid()}).strict();m({requestId:l().uuid(),result:M(["saved","stale-source","revision-conflict","failed"]),saved:K.optional()}).strict().refine(t=>t.result==="saved"==!!t.saved,"Saved edit missing");m({pair:m({workspaceId:l().min(1).max(200),agentId:l().min(1).max(200)}).strict(),sourceId:l().min(1).max(512),sourceRevision:h().int().nonnegative(),transcript:W}).strict();nt([m({requestId:l().uuid(),ok:v(!0),source:O}).strict(),m({requestId:l().uuid(),ok:v(!1),error:M(["cancelled","permission","failed"])}).strict()]);const dt=2e4;m({openId:l().uuid(),markId:l().min(1).max(512),generation:h().int().nonnegative(),phase:M(["start","stop"])}).strict();m({requestId:l().uuid(),generation:h().int().nonnegative(),text:l().max(dt),final:U(),error:M(["busy","unavailable","failed","permission"]).optional()}).strict().refine(t=>!t.error||t.final,"An error is final");m({pair:m({workspaceId:l().min(1).max(200),agentId:l().min(1).max(200)}).strict(),sourceId:l().min(1).max(512),sourceRevision:h().int().nonnegative(),waveform:lt}).strict();const It=m({requestId:l().uuid(),openId:w,pair:m({workspaceId:w,agentId:w}).strict(),kind:M(["screenshot","recording"]),attachmentId:w,sourceId:w.optional(),sourceRevision:h().int().nonnegative().optional(),expectedEditRevision:h().int().nonnegative().optional()}).strict();m({requestId:l().uuid(),result:M(["deleted","stale-source","failed"])}).strict();const vt=m({endedOpenId:l().uuid()}).strict();export{xt as D,d as a,dt as b,It as c,vt as d,Mt as e,bt as f,j as g,kt as h,ot as i,$ as j,pt as k,gt as l,H as m,z as n,yt as o,V as p,wt as r};