@intent-hq/web 2.385.1 → 2.386.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 (325) hide show
  1. package/package.json +1 -1
  2. package/web/app/immutable/assets/0.DSZNT9Vm.css +1 -0
  3. package/web/app/immutable/chunks/{CE70-gZI.js → -8AxW0IA.js} +3 -3
  4. package/web/app/immutable/chunks/{DOkArUrJ.js → -VR23WhZ.js} +1 -1
  5. package/web/app/immutable/chunks/{U7dpdlAf.js → 0b3rkAam.js} +1 -1
  6. package/web/app/immutable/chunks/{sSXTMg2P.js → 0y7aytZM.js} +1 -1
  7. package/web/app/immutable/chunks/{B6d1Nolc.js → 21kfe-mS.js} +1 -1
  8. package/web/app/immutable/chunks/{iPHmrqbo.js → 24f6N9l0.js} +1 -1
  9. package/web/app/immutable/chunks/{DcOkWaeN.js → 2aKRVAvL.js} +1 -1
  10. package/web/app/immutable/chunks/{e2ymG0j7.js → 3IpMTtMx.js} +1 -1
  11. package/web/app/immutable/chunks/{SbTG0nwQ.js → 3Kr2ijlK.js} +1 -1
  12. package/web/app/immutable/chunks/{CD-M_2xD.js → 3LCOBHm6.js} +1 -1
  13. package/web/app/immutable/chunks/{CTW83wJs.js → 3Qz3qAhk.js} +1 -1
  14. package/web/app/immutable/chunks/{KzySRhDw.js → 6SOEgr71.js} +3 -3
  15. package/web/app/immutable/chunks/{gU2qspu9.js → 77KTvr2w.js} +1 -1
  16. package/web/app/immutable/chunks/{DVwMeV9X.js → 7EQMYysM.js} +1 -1
  17. package/web/app/immutable/chunks/{DlU1rxYV.js → 7i0OJtNQ.js} +1 -1
  18. package/web/app/immutable/chunks/{B6FGs8l2.js → 8jO_MBKF.js} +1 -1
  19. package/web/app/immutable/chunks/{C50zlWbZ.js → 9AJtSub0.js} +1 -1
  20. package/web/app/immutable/chunks/{CUsqN2sK.js → 9R_52XLX.js} +1 -1
  21. package/web/app/immutable/chunks/{DGMrUmNq.js → A3z9XWMi.js} +1 -1
  22. package/web/app/immutable/chunks/{Dqd75Edx.js → B-4i031c.js} +1 -1
  23. package/web/app/immutable/chunks/{D7xjMCds.js → B-MjuJTx.js} +2 -2
  24. package/web/app/immutable/chunks/{BW1iql_y.js → B0kNPCxU.js} +1 -1
  25. package/web/app/immutable/chunks/{CYSndAne.js → B18ybwa0.js} +1 -1
  26. package/web/app/immutable/chunks/{Cj1KG0_l.js → B1xM1EBM.js} +1 -1
  27. package/web/app/immutable/chunks/B2LBPAIA.js +1 -0
  28. package/web/app/immutable/chunks/{DuAAGnM9.js → B2OS2WTh.js} +1 -1
  29. package/web/app/immutable/chunks/{BjlMkd10.js → B3JbrKDZ.js} +1 -1
  30. package/web/app/immutable/chunks/{C2F2Vd1P.js → B3OJ_2Dd.js} +1 -1
  31. package/web/app/immutable/chunks/{CuljOS_X.js → B4F7GG5Q.js} +1 -1
  32. package/web/app/immutable/chunks/{CrsbEWnE.js → B8foSZsl.js} +1 -1
  33. package/web/app/immutable/chunks/{deEweluJ.js → B9kUdNbG.js} +1 -1
  34. package/web/app/immutable/chunks/{D2hNxvgD.js → BB-hf8IY.js} +4 -4
  35. package/web/app/immutable/chunks/{CX4-Z2NI.js → BCFB88Wl.js} +1 -1
  36. package/web/app/immutable/chunks/{BVqF0sgN.js → BCVhFPNJ.js} +1 -1
  37. package/web/app/immutable/chunks/{CrbAS4DB.js → BCiWc-GH.js} +1 -1
  38. package/web/app/immutable/chunks/{BD9db4FR.js → BCuI_zgX.js} +1 -1
  39. package/web/app/immutable/chunks/{DVUFgbJK.js → BD7jFvJp.js} +1 -1
  40. package/web/app/immutable/chunks/{DxAjMnFs.js → BDbFQqI8.js} +3 -3
  41. package/web/app/immutable/chunks/{Che-KvdU.js → BE08e7Se.js} +1 -1
  42. package/web/app/immutable/chunks/{HU1Ksz8U.js → BGo6FK-0.js} +1 -1
  43. package/web/app/immutable/chunks/{DTwG0V2f.js → BHJpo3VA.js} +1 -1
  44. package/web/app/immutable/chunks/{DG0pBglL.js → BIcof04i.js} +1 -1
  45. package/web/app/immutable/chunks/{Clo7aK1n.js → BIkt0YE0.js} +1 -1
  46. package/web/app/immutable/chunks/{ada9rZfE.js → BKFxm3WK.js} +1 -1
  47. package/web/app/immutable/chunks/{94vL4WlW.js → BNFvOw36.js} +1 -1
  48. package/web/app/immutable/chunks/{DzG7lmwB.js → BNJkKc31.js} +1 -1
  49. package/web/app/immutable/chunks/{Cq_jjcoF.js → BOnTc4ny.js} +1 -1
  50. package/web/app/immutable/chunks/{BGReMCaT.js → BPDyvu9A.js} +1 -1
  51. package/web/app/immutable/chunks/{BWzMAxc1.js → BPpACIC2.js} +1 -1
  52. package/web/app/immutable/chunks/{zB9UbdEg.js → BRPJcG-m.js} +1 -1
  53. package/web/app/immutable/chunks/{C63WwVct.js → BRdQpeCl.js} +1 -1
  54. package/web/app/immutable/chunks/{DxC0zTSc.js → BUTuN2nE.js} +1 -1
  55. package/web/app/immutable/chunks/{CWOQ_pUA.js → BVcaPXq9.js} +1 -1
  56. package/web/app/immutable/chunks/{CoJyxFcH.js → BVyOECUU.js} +1 -1
  57. package/web/app/immutable/chunks/{DiURwJNX.js → BW2en5Js.js} +1 -1
  58. package/web/app/immutable/chunks/{BO8Bp7Ht.js → BWI85bGY.js} +1 -1
  59. package/web/app/immutable/chunks/{rXKOJqUt.js → BXHbm15d.js} +1 -1
  60. package/web/app/immutable/chunks/{CQMFoUkp.js → BYJh9adv.js} +1 -1
  61. package/web/app/immutable/chunks/{DW25Ls6A.js → BYYtBM5R.js} +1 -1
  62. package/web/app/immutable/chunks/{l1lBFBJz.js → Bax102l4.js} +1 -1
  63. package/web/app/immutable/chunks/{De0kCZ4v.js → Bb-hI5du.js} +2 -2
  64. package/web/app/immutable/chunks/{THqyVjkf.js → Bb8ARnaK.js} +1 -1
  65. package/web/app/immutable/chunks/{CJB-ebPL.js → BbWnSSTS.js} +1 -1
  66. package/web/app/immutable/chunks/{B0qb2Ymj.js → BbfEcBPg.js} +1 -1
  67. package/web/app/immutable/chunks/{CNSshwg_.js → BcYVm7io.js} +1 -1
  68. package/web/app/immutable/chunks/{VvLcPf2a.js → BdY8OnZP.js} +1 -1
  69. package/web/app/immutable/chunks/{C8qAflad.js → BdlYeRHB.js} +2 -2
  70. package/web/app/immutable/chunks/{CPO5_F83.js → BeUuk8D1.js} +1 -1
  71. package/web/app/immutable/chunks/{Da-Blgd9.js → Bf_4e4N2.js} +1 -1
  72. package/web/app/immutable/chunks/{BVkAOJlr.js → BhYFIrRM.js} +1 -1
  73. package/web/app/immutable/chunks/{CqVGtsXz.js → BhtJVlVx.js} +1 -1
  74. package/web/app/immutable/chunks/{Cv0wEzuo.js → Bj4j6g-o.js} +1 -1
  75. package/web/app/immutable/chunks/{BJO0de_7.js → BjdIR-od.js} +1 -1
  76. package/web/app/immutable/chunks/{CdSTecgc.js → Bk14_fvY.js} +1 -1
  77. package/web/app/immutable/chunks/{Bc1vJq_Z.js → BlRGZv8u.js} +1 -1
  78. package/web/app/immutable/chunks/{Bi_Yd73A.js → BmLlDCoW.js} +1 -1
  79. package/web/app/immutable/chunks/{Ex_x2wO5.js → Bn4F-JIh.js} +1 -1
  80. package/web/app/immutable/chunks/{Bu-RLSv9.js → BoEcbLG-.js} +1 -1
  81. package/web/app/immutable/chunks/{CC-IHSah.js → BolJpU8l.js} +4 -4
  82. package/web/app/immutable/chunks/{BwPwF85e.js → BpLxj3s3.js} +1 -1
  83. package/web/app/immutable/chunks/{D7Dfbf5g.js → BqCTtUhB.js} +1 -1
  84. package/web/app/immutable/chunks/{fVXs4sxg.js → BqrahRdk.js} +4 -4
  85. package/web/app/immutable/chunks/{Dval4sTX.js → BrDfJqC4.js} +1 -1
  86. package/web/app/immutable/chunks/{DiMo2JnB.js → BtMIAxno.js} +1 -1
  87. package/web/app/immutable/chunks/{Cy3lhXYa.js → BthojcF8.js} +6 -6
  88. package/web/app/immutable/chunks/{DtqPBHQj.js → Btst3lgy.js} +1 -1
  89. package/web/app/immutable/chunks/{D-rRuAXZ.js → Bu3PKqut.js} +1 -1
  90. package/web/app/immutable/chunks/{pomj9evG.js → Bv_0mmoe.js} +1 -1
  91. package/web/app/immutable/chunks/{By4iSN8L.js → BwVjpKmH.js} +1 -1
  92. package/web/app/immutable/chunks/{LI9J8Eor.js → BweHPPaS.js} +2 -2
  93. package/web/app/immutable/chunks/{418Agcsp.js → Bx7gCv2M.js} +1 -1
  94. package/web/app/immutable/chunks/{B8QvP_8b.js → BxU747mj.js} +1 -1
  95. package/web/app/immutable/chunks/{DhXcDqZX.js → ByZL9dMf.js} +1 -1
  96. package/web/app/immutable/chunks/{-9EwpXCb.js → C1La-Fme.js} +1 -1
  97. package/web/app/immutable/chunks/{CletI6Pa.js → C21Z9LLF.js} +1 -1
  98. package/web/app/immutable/chunks/{BgDnzAo4.js → C4M_mNFP.js} +1 -1
  99. package/web/app/immutable/chunks/{BXJzIaQM.js → C6Wi6O6n.js} +1 -1
  100. package/web/app/immutable/chunks/{L_sfch_N.js → C6afU4he.js} +1 -1
  101. package/web/app/immutable/chunks/{DMe_MB5T.js → C6rz0msZ.js} +1 -1
  102. package/web/app/immutable/chunks/{CPI5xBWX.js → C8TrySMt.js} +1 -1
  103. package/web/app/immutable/chunks/{DI71nFp4.js → C9ij7Z2h.js} +1 -1
  104. package/web/app/immutable/chunks/{D5Pfy-wQ.js → CB8gRmKb.js} +1 -1
  105. package/web/app/immutable/chunks/{BVl79jmM.js → CDxGu9F5.js} +1 -1
  106. package/web/app/immutable/chunks/{B3SHGkI_.js → CDxV78M0.js} +1 -1
  107. package/web/app/immutable/chunks/{DN-DN78v.js → CFB2mNds.js} +2 -2
  108. package/web/app/immutable/chunks/{CN-EAu8o.js → CF_a5Llj.js} +1 -1
  109. package/web/app/immutable/chunks/{OGqbAD_O.js → CFdI48b2.js} +1 -1
  110. package/web/app/immutable/chunks/{BQvwLP7I.js → CGHwi-2H.js} +1 -1
  111. package/web/app/immutable/chunks/{CI0C7_h-.js → CGUVvS8r.js} +1 -1
  112. package/web/app/immutable/chunks/CH-Qi35K.js +1 -0
  113. package/web/app/immutable/chunks/{BPuz5cN_.js → CIKXOyvw.js} +2 -2
  114. package/web/app/immutable/chunks/{4g_iHoQm.js → CIoJPvjg.js} +1 -1
  115. package/web/app/immutable/chunks/{qO0mYaJv.js → CJEwuNO9.js} +1 -1
  116. package/web/app/immutable/chunks/{Cy9hcA7q.js → CJke1tnU.js} +1 -1
  117. package/web/app/immutable/chunks/{XEsFBJqZ.js → CLqqc_hU.js} +1 -1
  118. package/web/app/immutable/chunks/{BTEoQf52.js → CM9GoLV5.js} +1 -1
  119. package/web/app/immutable/chunks/{C9ew0Hx2.js → COBhx_l-.js} +1 -1
  120. package/web/app/immutable/chunks/{DTMxJ5IC.js → COS4Sgoi.js} +2 -2
  121. package/web/app/immutable/chunks/{jH2J-9un.js → COSIRxZC.js} +1 -1
  122. package/web/app/immutable/chunks/{C6TTEdST.js → COlfJVPs.js} +4 -4
  123. package/web/app/immutable/chunks/{A0KsbysW.js → COsxNPUV.js} +1 -1
  124. package/web/app/immutable/chunks/{QRUY44Ff.js → CPWMushE.js} +1 -1
  125. package/web/app/immutable/chunks/{tLFaYuVN.js → CQ5BHnSj.js} +1 -1
  126. package/web/app/immutable/chunks/{B_75gRww.js → CRUcTVFP.js} +1 -1
  127. package/web/app/immutable/chunks/{C9p4fddz.js → CSb1CnpN.js} +1 -1
  128. package/web/app/immutable/chunks/{CzDPvHAo.js → CTTICX_5.js} +1 -1
  129. package/web/app/immutable/chunks/{jBG7W4tL.js → CTqRHXfu.js} +1 -1
  130. package/web/app/immutable/chunks/{h8JtxU_T.js → CUA9hM4m.js} +1 -1
  131. package/web/app/immutable/chunks/{Q2C1NT93.js → CUeOEnqq.js} +1 -1
  132. package/web/app/immutable/chunks/{D-KE4WZ3.js → CW979n9w.js} +1 -1
  133. package/web/app/immutable/chunks/{3xVgojWv.js → CY0EK8Cm.js} +3 -3
  134. package/web/app/immutable/chunks/{C1AUaRa8.js → CYq58ltZ.js} +1 -1
  135. package/web/app/immutable/chunks/{LQRHF1eM.js → CZ5zON0R.js} +1 -1
  136. package/web/app/immutable/chunks/{DQT1hnTe.js → C_wfHKmM.js} +1 -1
  137. package/web/app/immutable/chunks/{Cx0QXTIW.js → CaHWSiOY.js} +1 -1
  138. package/web/app/immutable/chunks/{iCWz6IE9.js → CaMRSd1-.js} +1 -1
  139. package/web/app/immutable/chunks/{DWa-2rkZ.js → CdGl_2eX.js} +1 -1
  140. package/web/app/immutable/chunks/{C8LrJXqa.js → Cerl373K.js} +1 -1
  141. package/web/app/immutable/chunks/{DjIQY_o5.js → CfnXjWQL.js} +1 -1
  142. package/web/app/immutable/chunks/ChKOG1mU.js +3 -0
  143. package/web/app/immutable/chunks/{CHto7_WH.js → ChOMtuod.js} +1 -1
  144. package/web/app/immutable/chunks/{CuPx_r7k.js → CjLfgoGI.js} +1 -1
  145. package/web/app/immutable/chunks/{BV4VuEnO.js → CnMzOGNL.js} +1 -1
  146. package/web/app/immutable/chunks/{C37ZqG4e.js → CnQVxh95.js} +1 -1
  147. package/web/app/immutable/chunks/{Dm-WfTCg.js → Cpgxz5sK.js} +1 -1
  148. package/web/app/immutable/chunks/{n5-dpvss.js → Cpw2gXhG.js} +1 -1
  149. package/web/app/immutable/chunks/{Do2KlQU0.js → CsilY7l9.js} +1 -1
  150. package/web/app/immutable/chunks/{C-zB-6G6.js → CueOVPTy.js} +1 -1
  151. package/web/app/immutable/chunks/{VeUh5OMZ.js → CvSLeFQo.js} +1 -1
  152. package/web/app/immutable/chunks/{COgn_CzG.js → CvusaaYc.js} +1 -1
  153. package/web/app/immutable/chunks/{BECK4OaG.js → Cwg3XF5F.js} +1 -1
  154. package/web/app/immutable/chunks/{CDAnHxmJ.js → CyHe7TdT.js} +1 -1
  155. package/web/app/immutable/chunks/{B2CniqS1.js → D22j4iWy.js} +1 -1
  156. package/web/app/immutable/chunks/{BSUnflvl.js → D2Tzo4Hp.js} +1 -1
  157. package/web/app/immutable/chunks/{ZR3wQ419.js → D5A9atQX.js} +2 -2
  158. package/web/app/immutable/chunks/{DNDlsdj4.js → D5evzUZd.js} +1 -1
  159. package/web/app/immutable/chunks/{DJPIUVkw.js → D5xlMOwU.js} +1 -1
  160. package/web/app/immutable/chunks/{e3_wv2e_.js → D6_ybykj.js} +1 -1
  161. package/web/app/immutable/chunks/{CGYPBD6G.js → D7yetF0v.js} +1 -1
  162. package/web/app/immutable/chunks/{D2kwjrZB.js → D9_wDL10.js} +1 -1
  163. package/web/app/immutable/chunks/{GP4LXuR4.js → DAI6QH7D.js} +1 -1
  164. package/web/app/immutable/chunks/{BLKFshyr.js → DAVG7sIL.js} +1 -1
  165. package/web/app/immutable/chunks/{C78AfvXn.js → DBwdk2-0.js} +1 -1
  166. package/web/app/immutable/chunks/{CXpEvkVR.js → DC1xYxUn.js} +1 -1
  167. package/web/app/immutable/chunks/{TT8yXpG-.js → DDdsJrHq.js} +1 -1
  168. package/web/app/immutable/chunks/{D_VvdZe2.js → DEKjIPd8.js} +1 -1
  169. package/web/app/immutable/chunks/{Dvi4g0xk.js → DFKO8V-Y.js} +1 -1
  170. package/web/app/immutable/chunks/{BSgFpkqa.js → DGdWzkgm.js} +1 -1
  171. package/web/app/immutable/chunks/{BVuLEX_p.js → DIQ-xR1q.js} +1 -1
  172. package/web/app/immutable/chunks/{DmCKwthV.js → DIWzdBfB.js} +1 -1
  173. package/web/app/immutable/chunks/{C5b7nimj.js → DIad5c9_.js} +1 -1
  174. package/web/app/immutable/chunks/{B6eTPmJH.js → DJJ2Xrlq.js} +1 -1
  175. package/web/app/immutable/chunks/{4PAYwk2I.js → DJb2lMGn.js} +1 -1
  176. package/web/app/immutable/chunks/{C2WwQCOk.js → DKupjKLn.js} +1 -1
  177. package/web/app/immutable/chunks/{RHSH5iZ7.js → DNDJdxKs.js} +1 -1
  178. package/web/app/immutable/chunks/{Dp8FVKoA.js → DOLX5oss.js} +1 -1
  179. package/web/app/immutable/chunks/{CmyBYYR3.js → DOZ82gYM.js} +1 -1
  180. package/web/app/immutable/chunks/{rcXEnwTB.js → DOir9M0E.js} +1 -1
  181. package/web/app/immutable/chunks/{BNV0s95-.js → DQBViT5w.js} +1 -1
  182. package/web/app/immutable/chunks/{Dxfvrgme.js → DQvAX2eX.js} +1 -1
  183. package/web/app/immutable/chunks/{CNE5cVvC.js → DSDM77x3.js} +1 -1
  184. package/web/app/immutable/chunks/{DZmGZ5am.js → DU1c0itA.js} +1 -1
  185. package/web/app/immutable/chunks/DWvCfaBg.js +1 -0
  186. package/web/app/immutable/chunks/{7y3Z0Q49.js → DX2U4Mz9.js} +3 -3
  187. package/web/app/immutable/chunks/{Cl_O0hHI.js → DXDbxM_W.js} +1 -1
  188. package/web/app/immutable/chunks/{CrvVM5aL.js → DY1YVoxv.js} +1 -1
  189. package/web/app/immutable/chunks/{8jMQM9h0.js → DY5rw8pn.js} +1 -1
  190. package/web/app/immutable/chunks/{DFGMgfIk.js → DZSbMOPJ.js} +2 -2
  191. package/web/app/immutable/chunks/{CpFDUMBH.js → DZjSAGjX.js} +1 -1
  192. package/web/app/immutable/chunks/Da8rtzmJ.js +1 -0
  193. package/web/app/immutable/chunks/{Cw-qJqDx.js → DaOKbar2.js} +2 -2
  194. package/web/app/immutable/chunks/{CNnF3Cms.js → DbUDL_oo.js} +1 -1
  195. package/web/app/immutable/chunks/{BvgjsneA.js → Dbr8gjWS.js} +1 -1
  196. package/web/app/immutable/chunks/{L-Sh3Ble.js → DbxqdYAO.js} +3 -3
  197. package/web/app/immutable/chunks/{pHBnQb5R.js → DcLVN86K.js} +1 -1
  198. package/web/app/immutable/chunks/{xGzY0FqC.js → DcMTwn77.js} +1 -1
  199. package/web/app/immutable/chunks/{DT5eV1e8.js → DdRupUfV.js} +2 -2
  200. package/web/app/immutable/chunks/{wiGlLVr-.js → Dde9Z_vp.js} +1 -1
  201. package/web/app/immutable/chunks/{BQ53265L.js → DdjeekcY.js} +1 -1
  202. package/web/app/immutable/chunks/{BJgwBOBz.js → Dduwpj0a.js} +1 -1
  203. package/web/app/immutable/chunks/{CV2tdNDf.js → De0cdeOU.js} +1 -1
  204. package/web/app/immutable/chunks/{CuWLpCl5.js → De2a277N.js} +1 -1
  205. package/web/app/immutable/chunks/{C_SKcJv7.js → DeY70dof.js} +1 -1
  206. package/web/app/immutable/chunks/{DSiGyv9Y.js → Df4a242o.js} +1 -1
  207. package/web/app/immutable/chunks/{M1XBe23f.js → DfgH7-YK.js} +1 -1
  208. package/web/app/immutable/chunks/{7OH6WUSt.js → DgjIVRdE.js} +1 -1
  209. package/web/app/immutable/chunks/{CfYZevDu.js → DgzMHcMD.js} +1 -1
  210. package/web/app/immutable/chunks/{DEs9kPtf.js → Dh-HeAnQ.js} +1 -1
  211. package/web/app/immutable/chunks/{C-L0-C2F.js → Dh438xC0.js} +2 -2
  212. package/web/app/immutable/chunks/{DgKpR9KC.js → DhaHSPPQ.js} +1 -1
  213. package/web/app/immutable/chunks/{B433f4mk.js → Di_ao8Rc.js} +1 -1
  214. package/web/app/immutable/chunks/{CIaruUrd.js → DjNuITHM.js} +1 -1
  215. package/web/app/immutable/chunks/{BSntxgH1.js → Djah0WfC.js} +1 -1
  216. package/web/app/immutable/chunks/{BbLh3POL.js → DlMrAlfA.js} +1 -1
  217. package/web/app/immutable/chunks/{C8zl7aIj.js → Dm3wAkDL.js} +1 -1
  218. package/web/app/immutable/chunks/{B5qiyEpH.js → DpESY8ko.js} +1 -1
  219. package/web/app/immutable/chunks/{B_4WsP9b.js → DpvQ3NRH.js} +1 -1
  220. package/web/app/immutable/chunks/{JM7CQkWC.js → Dpvv-9m3.js} +1 -1
  221. package/web/app/immutable/chunks/{nwO3KCpP.js → DpxbS0Pj.js} +1 -1
  222. package/web/app/immutable/chunks/{BIGqOuh0.js → Drf1gLyo.js} +1 -1
  223. package/web/app/immutable/chunks/{CxndkliV.js → DrkDJmY5.js} +1 -1
  224. package/web/app/immutable/chunks/{DxRojUvw.js → DsOS7N8Z.js} +1 -1
  225. package/web/app/immutable/chunks/{_i0M7_-r.js → Dt3xwKL6.js} +2 -2
  226. package/web/app/immutable/chunks/{CEEUgGO1.js → DtQHtXEW.js} +1 -1
  227. package/web/app/immutable/chunks/{DDb9H7X6.js → DvnO7gWT.js} +3 -3
  228. package/web/app/immutable/chunks/{BdEtT3Ti.js → DxWgWHgi.js} +1 -1
  229. package/web/app/immutable/chunks/{V6efYFFY.js → DxuwadpA.js} +1 -1
  230. package/web/app/immutable/chunks/{0Ipp5cFr.js → DyLERSuu.js} +1 -1
  231. package/web/app/immutable/chunks/{pMP23LzB.js → DyXOhKE5.js} +1 -1
  232. package/web/app/immutable/chunks/{BlIRL_82.js → Dyx6ysl7.js} +1 -1
  233. package/web/app/immutable/chunks/{CR-JVxLD.js → DzBJS0Lp.js} +1 -1
  234. package/web/app/immutable/chunks/{Bv_xG3nA.js → DzpuLv6U.js} +1 -1
  235. package/web/app/immutable/chunks/{BcKrkXju.js → E1uoF1cW.js} +1 -1
  236. package/web/app/immutable/chunks/{DsfORPYa.js → E8oicBhU.js} +1 -1
  237. package/web/app/immutable/chunks/{DV7x43jt.js → EQgYvydQ.js} +1 -1
  238. package/web/app/immutable/chunks/{9GO97JAL.js → FQkCsxt2.js} +1 -1
  239. package/web/app/immutable/chunks/{CGPajdHq.js → HcbkpXC1.js} +2 -2
  240. package/web/app/immutable/chunks/{BYl8t9od.js → HeVxSGdr.js} +1 -1
  241. package/web/app/immutable/chunks/{DRsDUO-4.js → IG43rVtJ.js} +1 -1
  242. package/web/app/immutable/chunks/{CAfPEsZt.js → Ksiiix3Q.js} +1 -1
  243. package/web/app/immutable/chunks/{DlUpt_0u.js → LdXAlc1O.js} +1 -1
  244. package/web/app/immutable/chunks/{44rP4fzJ.js → Ly7eBIj5.js} +1 -1
  245. package/web/app/immutable/chunks/{B72XM8Fm.js → MoxNukrR.js} +1 -1
  246. package/web/app/immutable/chunks/{C-PQQ8rb.js → Nrq0Uf9_.js} +1 -1
  247. package/web/app/immutable/chunks/{DPR_clFy.js → OMssb4xF.js} +1 -1
  248. package/web/app/immutable/chunks/{C0Zo7HuP.js → PkPZtGfM.js} +1 -1
  249. package/web/app/immutable/chunks/{CqUPwDgo.js → Pyf1FzKM.js} +1 -1
  250. package/web/app/immutable/chunks/{3qVSmuIV.js → QA00-uqv.js} +1 -1
  251. package/web/app/immutable/chunks/{Bs7M8kXA.js → QIFiwjW0.js} +3 -3
  252. package/web/app/immutable/chunks/{Dg0Tdf_A.js → TN7R9Ny0.js} +1 -1
  253. package/web/app/immutable/chunks/{waHi6l7h.js → TXPMw3n4.js} +1 -1
  254. package/web/app/immutable/chunks/{gZJn6Sk0.js → TyVpf8MX.js} +1 -1
  255. package/web/app/immutable/chunks/{fHygQTSC.js → UQ6MIVTw.js} +1 -1
  256. package/web/app/immutable/chunks/{yDmmPu6L.js → UnM4qztD.js} +1 -1
  257. package/web/app/immutable/chunks/{PhAbES0t.js → UqcU95a7.js} +1 -1
  258. package/web/app/immutable/chunks/{DLCFUd4s.js → VTJf_qPn.js} +1 -1
  259. package/web/app/immutable/chunks/{B8HnjSSF.js → W05hyx94.js} +1 -1
  260. package/web/app/immutable/chunks/{D1zX4MuR.js → XMluVOSf.js} +1 -1
  261. package/web/app/immutable/chunks/{BtBQ5qfh.js → Y4bYs1dr.js} +1 -1
  262. package/web/app/immutable/chunks/{B5tvpTFB.js → Y_tkjygB.js} +1 -1
  263. package/web/app/immutable/chunks/{DBH_GMOZ.js → YbqMJoDi.js} +1 -1
  264. package/web/app/immutable/chunks/{CRSY1kuo.js → Z8DHXl17.js} +1 -1
  265. package/web/app/immutable/chunks/{BZVhwNIm.js → _HPNXgkR.js} +3 -3
  266. package/web/app/immutable/chunks/{Bf_nrOhg.js → aixoUWDq.js} +1 -1
  267. package/web/app/immutable/chunks/{DtFzaymP.js → awY5HvZY.js} +1 -1
  268. package/web/app/immutable/chunks/{5-0LQoqd.js → bIL0xbKX.js} +1 -1
  269. package/web/app/immutable/chunks/{BByf3ILj.js → bojY7ttK.js} +1 -1
  270. package/web/app/immutable/chunks/{dmZv6JOg.js → cfiNEg68.js} +1 -1
  271. package/web/app/immutable/chunks/{DRqy_Wmb.js → dFhS46gw.js} +1 -1
  272. package/web/app/immutable/chunks/{DM1_VFfD.js → fC3yz20p.js} +1 -1
  273. package/web/app/immutable/chunks/{DYEwyuIx.js → h5ZeHogL.js} +1 -1
  274. package/web/app/immutable/chunks/{C429ZMSU.js → hRfDutUE.js} +1 -1
  275. package/web/app/immutable/chunks/{C-G2u0Oe.js → hstOawAs.js} +1 -1
  276. package/web/app/immutable/chunks/{BbuLzldI.js → i8jM24jD.js} +1 -1
  277. package/web/app/immutable/chunks/{DXRkYB1Y.js → ico0GHoP.js} +30 -30
  278. package/web/app/immutable/chunks/{Cp02CBjf.js → jyNUu-ZR.js} +1 -1
  279. package/web/app/immutable/chunks/{BDsciJGp.js → kAav5o2h.js} +1 -1
  280. package/web/app/immutable/chunks/{BV1ayWTC.js → lSLkjC_I.js} +1 -1
  281. package/web/app/immutable/chunks/{BuFDqZnJ.js → mRUS_S7Z.js} +1 -1
  282. package/web/app/immutable/chunks/{BHqp2vwo.js → maZzJmVw.js} +1 -1
  283. package/web/app/immutable/chunks/{BvbeTrka.js → r5JNAzEM.js} +1 -1
  284. package/web/app/immutable/chunks/{CXDUvPYf.js → rsUVVEzx.js} +1 -1
  285. package/web/app/immutable/chunks/{lTwh0Wzj.js → tHETzssD.js} +1 -1
  286. package/web/app/immutable/chunks/{BzSCTZkL.js → v7JbBbwR.js} +1 -1
  287. package/web/app/immutable/chunks/{Cp7Byf5d.js → wBNgrgMC.js} +1 -1
  288. package/web/app/immutable/chunks/{DX9N1RQz.js → x-RVzKqZ.js} +1 -1
  289. package/web/app/immutable/chunks/{BTLG1BY-.js → yMcNgg0D.js} +1 -1
  290. package/web/app/immutable/chunks/{BNa9zzEx.js → yqEyUNVG.js} +1 -1
  291. package/web/app/immutable/chunks/{LgyvMkc8.js → yy2JFRyT.js} +1 -1
  292. package/web/app/immutable/chunks/{7KxcPj98.js → zFAkpaJn.js} +1 -1
  293. package/web/app/immutable/entry/{app.BXfGjD4L.js → app.gkm8TnXW.js} +3 -3
  294. package/web/app/immutable/entry/start.CMMmzvCE.js +1 -0
  295. package/web/app/immutable/nodes/{0.CoxSTVXk.js → 0.xKtnYOA2.js} +1 -1
  296. package/web/app/immutable/nodes/{1.BbjU9IH_.js → 1.BMx4VsW1.js} +1 -1
  297. package/web/app/immutable/nodes/{10.D6wyP02T.js → 10.HyXPJR8g.js} +5 -5
  298. package/web/app/immutable/nodes/{11.ukc3KQLY.js → 11._cAIrch_.js} +1 -1
  299. package/web/app/immutable/nodes/{12.D6rxlIQy.js → 12.DOoAvwLA.js} +1 -1
  300. package/web/app/immutable/nodes/{13.CHYsmiD_.js → 13.Coj_sRB4.js} +1 -1
  301. package/web/app/immutable/nodes/{14.mG-YN9pn.js → 14.AVrz3ZLQ.js} +3 -3
  302. package/web/app/immutable/nodes/{15.CUWA_Nvq.js → 15.BGK-JRWm.js} +1 -1
  303. package/web/app/immutable/nodes/{16.BsFtzH0D.js → 16.CMkcwVoI.js} +1 -1
  304. package/web/app/immutable/nodes/{17.me_aOx8O.js → 17.BS5un5d0.js} +1 -1
  305. package/web/app/immutable/nodes/{18.BO1oZWgm.js → 18._hTG2-17.js} +1 -1
  306. package/web/app/immutable/nodes/{19.D9cBSCEY.js → 19.DuCFyr_N.js} +2 -2
  307. package/web/app/immutable/nodes/{2.pGtn3nxM.js → 2.uAqDAg4D.js} +4 -4
  308. package/web/app/immutable/nodes/{20.LbRPieV_.js → 20.C1pW6BvW.js} +1 -1
  309. package/web/app/immutable/nodes/{3.Bm-Ewkeu.js → 3.M-EbuqKW.js} +1 -1
  310. package/web/app/immutable/nodes/{4.bypHtb3m.js → 4.ByPZ1Nrn.js} +1 -1
  311. package/web/app/immutable/nodes/{5.YWphdJEW.js → 5.DKAjjuf7.js} +1 -1
  312. package/web/app/immutable/nodes/{6.DQRfO1Qb.js → 6.DOc_YxMK.js} +1 -1
  313. package/web/app/immutable/nodes/{7.b1goQuXf.js → 7.gFNAyoNX.js} +1 -1
  314. package/web/app/immutable/nodes/{8.BBgV9gU6.js → 8.C_Kp8pWz.js} +1 -1
  315. package/web/app/immutable/nodes/{9.BJdtENce.js → 9.C6HX35Sq.js} +4 -4
  316. package/web/app/version.json +1 -1
  317. package/web/generated/paraglide.js +49 -49
  318. package/web/index.html +19 -19
  319. package/web/app/immutable/assets/0.BmwjvpSF.css +0 -1
  320. package/web/app/immutable/chunks/CCIZBeez.js +0 -1
  321. package/web/app/immutable/chunks/CNWb-jYE.js +0 -1
  322. package/web/app/immutable/chunks/Dws-34a7.js +0 -1
  323. package/web/app/immutable/chunks/DyXAZ9tr.js +0 -3
  324. package/web/app/immutable/chunks/Whej1Dge.js +0 -1
  325. package/web/app/immutable/entry/start.DRVSg-kr.js +0 -1
@@ -1 +1 @@
1
- import{bm as n,t as F,bo as i,bw as x,b as B}from"./Dws-34a7.js";import{bs as Q,a5 as U,bS as D,bA as K,b_ as N,aD as f,W as I,bn as P,c9 as A,aA as u,aB as q}from"./3SdAC2_C.js";import{i as E}from"./DLCFUd4s.js";import{f as V,s as _,g as H}from"./BD9db4FR.js";import{d as R,A as j,a as J}from"./BvbeTrka.js";import{aL as M}from"./B_4WsP9b.js";import{nL as T,i as m}from"./4g_iHoQm.js";import{e8 as G,O as X,N as Y}from"./SbTG0nwQ.js";function Z(e){switch(e){case"running":return n.layout_activeCard_running_header();case"responding":return n.agentOverview_hierarchyGraph_statusResponding_label();case"unread":return n.layout_activeCard_unread_header();case"completed":return n.agentOverview_hierarchyGraph_statusCompleted_label();case"failed":return n.agentOverview_hierarchyGraph_statusFailed_label();case"question":return n.chat_questionWizard_title();case"waiting":return n.agentOverview_hierarchyGraph_statusWaiting_label();case"needs-permission":return n.events_activity_agentAskedPermission_label();case"attention-discussion":return n.chat_agentCard_attentionDiscussion_label();case"attention-blocker":return n.chat_agentCard_attentionBlocker_label();case"idle":return n.agentOverview_hierarchyGraph_statusIdle_label()}}var $=q('<span class="agent-avatar-unread-dot svelte-v6mebl" data-avatar-unread-dot=""></span>'),ee=q('<span role="img" data-agent-avatar-with-state="" data-agent-avatar-surface=""><!> <!></span>');function te(e,a){if(new.target)return F({component:te,...e});Q(a,!0);let d=i(a,"agentId",7),l=i(a,"specialist",7,null),o=i(a,"icon",7,null),v=i(a,"provider",7,void 0),c=i(a,"variant",7,R),g=i(a,"size",7,void 0),r=i(a,"state",7,"idle"),h=i(a,"class",7,"");const w=A(()=>Z(r())),y=A(()=>g()??J[c()].surface),p=A(()=>g()===void 0);var L={get agentId(){return d()},set agentId(t){d(t),u()},get specialist(){return l()},set specialist(t=null){l(t),u()},get icon(){return o()},set icon(t=null){o(t),u()},get provider(){return v()},set provider(t=void 0){v(t),u()},get variant(){return c()},set variant(t=R){c(t),u()},get size(){return g()},set size(t=void 0){g(t),u()},get state(){return r()},set state(t="idle"){r(t),u()},get class(){return h()},set class(t=""){h(t),u()},$set:x,$on:(t,b)=>B(a,t,b)},s=ee();let C;var k=U(s);j(k,{get agentId(){return d()},get specialist(){return l()},get icon(){return o()},get provider(){return v()},get variant(){return c()},get size(){return g()}});var O=D(k,2);{var W=t=>{var b=$();I(t,b)};E(O,t=>{r()==="unread"&&t(W)})}return K(s),N(()=>{V(s,1,`agent-avatar-with-state agent-avatar-with-state--${r()??""} ${h()??""}`,"svelte-v6mebl"),_(s,"aria-label",f(w)),_(s,"title",f(w)),_(s,"data-avatar-state",r()),_(s,"data-avatar-variant",f(p)?c():void 0),C=H(s,"",C,{width:f(p)?void 0:`${f(y)}px`,height:f(p)?void 0:`${f(y)}px`})}),I(e,s),P(L)}function S(e){return X(e)}function ae(e){return Y(e)}function z(e,a={}){const{hasUnread:d=!1,isActive:l=!1,isCompleted:o=!1,isFailed:v=!1,hasQuestion:c=!1,hasPermissionRequest:g=!1,attentionKind:r=null}=a;return o&&!S(e)?"completed":v||e.status===m.Error||e.status==="failed"?"failed":c?"question":g?"needs-permission":r==="discussion"?"attention-discussion":r==="blocker"?"attention-blocker":ae(e)?"waiting":S(e)?"running":d&&!l?"unread":"idle"}function ce(e,a={}){if(!e)return z({},a);const d=T(e),l=e.status===m.Completed||String(e.status).toLowerCase()==="completed",o=e.status===m.Error||e.status===m.Deleted||String(e.status).toLowerCase()==="failed";return z(G(e),{...a,hasQuestion:M(e)||a.hasQuestion===!0,hasUnread:a.hasUnread??e.hasUnread,isCompleted:a.isCompleted??l,isFailed:a.isFailed??o,attentionKind:a.attentionKind??d?.kind??null})}function ge(e){return e?S(G(e)):!1}export{te as A,z as a,ce as b,Z as g,ge as i};
1
+ import{bm as n,t as F,bo as i,bw as x,b as B}from"./DWvCfaBg.js";import{bs as Q,a5 as U,bS as D,bA as K,b_ as N,aD as f,W as I,bn as P,c9 as A,aA as u,aB as q}from"./3SdAC2_C.js";import{i as E}from"./VTJf_qPn.js";import{f as V,s as _,g as H}from"./BCuI_zgX.js";import{d as R,A as j,a as J}from"./r5JNAzEM.js";import{aL as M}from"./DpvQ3NRH.js";import{nL as T,i as m}from"./CIoJPvjg.js";import{e8 as G,O as X,N as Y}from"./3Kr2ijlK.js";function Z(e){switch(e){case"running":return n.layout_activeCard_running_header();case"responding":return n.agentOverview_hierarchyGraph_statusResponding_label();case"unread":return n.layout_activeCard_unread_header();case"completed":return n.agentOverview_hierarchyGraph_statusCompleted_label();case"failed":return n.agentOverview_hierarchyGraph_statusFailed_label();case"question":return n.chat_questionWizard_title();case"waiting":return n.agentOverview_hierarchyGraph_statusWaiting_label();case"needs-permission":return n.events_activity_agentAskedPermission_label();case"attention-discussion":return n.chat_agentCard_attentionDiscussion_label();case"attention-blocker":return n.chat_agentCard_attentionBlocker_label();case"idle":return n.agentOverview_hierarchyGraph_statusIdle_label()}}var $=q('<span class="agent-avatar-unread-dot svelte-v6mebl" data-avatar-unread-dot=""></span>'),ee=q('<span role="img" data-agent-avatar-with-state="" data-agent-avatar-surface=""><!> <!></span>');function te(e,a){if(new.target)return F({component:te,...e});Q(a,!0);let d=i(a,"agentId",7),l=i(a,"specialist",7,null),o=i(a,"icon",7,null),v=i(a,"provider",7,void 0),c=i(a,"variant",7,R),g=i(a,"size",7,void 0),r=i(a,"state",7,"idle"),h=i(a,"class",7,"");const w=A(()=>Z(r())),y=A(()=>g()??J[c()].surface),p=A(()=>g()===void 0);var L={get agentId(){return d()},set agentId(t){d(t),u()},get specialist(){return l()},set specialist(t=null){l(t),u()},get icon(){return o()},set icon(t=null){o(t),u()},get provider(){return v()},set provider(t=void 0){v(t),u()},get variant(){return c()},set variant(t=R){c(t),u()},get size(){return g()},set size(t=void 0){g(t),u()},get state(){return r()},set state(t="idle"){r(t),u()},get class(){return h()},set class(t=""){h(t),u()},$set:x,$on:(t,b)=>B(a,t,b)},s=ee();let C;var k=U(s);j(k,{get agentId(){return d()},get specialist(){return l()},get icon(){return o()},get provider(){return v()},get variant(){return c()},get size(){return g()}});var O=D(k,2);{var W=t=>{var b=$();I(t,b)};E(O,t=>{r()==="unread"&&t(W)})}return K(s),N(()=>{V(s,1,`agent-avatar-with-state agent-avatar-with-state--${r()??""} ${h()??""}`,"svelte-v6mebl"),_(s,"aria-label",f(w)),_(s,"title",f(w)),_(s,"data-avatar-state",r()),_(s,"data-avatar-variant",f(p)?c():void 0),C=H(s,"",C,{width:f(p)?void 0:`${f(y)}px`,height:f(p)?void 0:`${f(y)}px`})}),I(e,s),P(L)}function S(e){return X(e)}function ae(e){return Y(e)}function z(e,a={}){const{hasUnread:d=!1,isActive:l=!1,isCompleted:o=!1,isFailed:v=!1,hasQuestion:c=!1,hasPermissionRequest:g=!1,attentionKind:r=null}=a;return o&&!S(e)?"completed":v||e.status===m.Error||e.status==="failed"?"failed":c?"question":g?"needs-permission":r==="discussion"?"attention-discussion":r==="blocker"?"attention-blocker":ae(e)?"waiting":S(e)?"running":d&&!l?"unread":"idle"}function ce(e,a={}){if(!e)return z({},a);const d=T(e),l=e.status===m.Completed||String(e.status).toLowerCase()==="completed",o=e.status===m.Error||e.status===m.Deleted||String(e.status).toLowerCase()==="failed";return z(G(e),{...a,hasQuestion:M(e)||a.hasQuestion===!0,hasUnread:a.hasUnread??e.hasUnread,isCompleted:a.isCompleted??l,isFailed:a.isFailed??o,attentionKind:a.attentionKind??d?.kind??null})}function ge(e){return e?S(G(e)):!1}export{te as A,z as a,ce as b,Z as g,ge as i};
@@ -1,4 +1,4 @@
1
- var It=Object.defineProperty;var gt=s=>{throw TypeError(s)};var Ft=(s,e,o)=>e in s?It(s,e,{enumerable:!0,configurable:!0,writable:!0,value:o}):s[e]=o;var se=(s,e,o)=>Ft(s,typeof e!="symbol"?e+"":e,o),ht=(s,e,o)=>e.has(s)||gt("Cannot "+o);var M=(s,e,o)=>(ht(s,e,"read from private field"),o?o.call(s):e.get(s)),re=(s,e,o)=>e.has(s)?gt("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(s):e.set(s,o);var Ve=(s,e,o)=>(ht(s,e,"access private method"),o);import{t as le,bo as t,bw as ue,b as ce,bp as ke,br as tt,bm as Ne}from"./Dws-34a7.js";import{c9 as l,aD as n,bH as ae,bo as rt,bs as ge,a7 as j,ay as B,W as _,bn as he,aA as r,a5 as X,bf as We,bA as Y,aB as W,bS as de,bV as vt,br as Lt,bj as Dt,c5 as Rt,ca as Ht,b_ as Q,be as Xe,b$ as Te,bO as oe,bl as Ue,ai as Et,bk as Mt,aj as At}from"./3SdAC2_C.js";import{c as Ye}from"./B5tvpTFB.js";import{b as Ge,e as J,c as pe,s as T,f as ye,p as Bt}from"./BD9db4FR.js";import{p as Ot,o as jt,e as Nt}from"./C-zB-6G6.js";import{S as Ut}from"./Bc1vJq_Z.js";import{i as O}from"./DLCFUd4s.js";import{t as Z}from"./D-rRuAXZ.js";import{an as at,ay as bt,az as we,av as K,aQ as nt,h as Wt,l as Gt,a6 as Qt,aq as ft,aE as Vt,ar as Xt,aD as Yt,at as Jt,aS as mt,a_ as pt,f as yt}from"./BIGqOuh0.js";import"./DU3vNstz.js";import{i as Kt}from"./BjLb7AHW.js";import{H as Zt}from"./zB9UbdEg.js";import{z as $t}from"./CGYPBD6G.js";import"./BPuz5cN_.js";import"./BW1iql_y.js";import{d as er,n as tr,m as rr,a as ar}from"./C63WwVct.js";import{b as nr}from"./Dn334wJv.js";import{t as ir}from"./DAsc1V4f.js";import"./C2F2Vd1P.js";import{e as sr}from"./h8JtxU_T.js";const dr=bt({component:"label",parts:["root"]});var Ie;const st=class st{constructor(e){se(this,"opts");se(this,"attachment");re(this,Ie,l(()=>({id:this.opts.id.current,[dr.root]:"",onmousedown:this.onmousedown,...this.attachment})));this.opts=e,this.attachment=at(this.opts.ref),this.onmousedown=this.onmousedown.bind(this)}static create(e){return new st(e)}onmousedown(e){e.detail>1&&e.preventDefault()}get props(){return n(M(this,Ie))}set props(e){ae(M(this,Ie),e)}};Ie=new WeakMap;let Je=st;var or=new Set(["$$slots","$$events","$$legacy","children","child","id","ref","for"]),lr=W("<label><!></label>");function xt(s,e){const o=rt();if(new.target)return le({component:xt,...s});ge(e,!0);let c=t(e,"children",7),h=t(e,"child",7),y=t(e,"id",23,()=>we(o)),x=t(e,"ref",15,null),v=t(e,"for",7),C=ke(e,or);const z=Je.create({id:K(()=>y()),ref:K(()=>x(),d=>x(d))}),w=l(()=>nt(C,z.props,{for:v()}));var b={get children(){return c()},set children(d){c(d),r()},get child(){return h()},set child(d){h(d),r()},get id(){return y()},set id(d=we(o)){y(d),r()},get ref(){return x()},set ref(d=null){x(d),r()},get for(){return v()},set for(d){v(d),r()},$set:ue,$on:(d,g)=>ce(e,d,g)},f=j(),k=B(f);{var q=d=>{var g=j(),P=B(g);Z(P,h,()=>({props:n(w)})),_(d,g)},m=d=>{var g=lr();Ge(g,()=>({...n(w),for:v()}));var P=X(g);Z(P,()=>c()??We),Y(g),_(d,g)};O(k,d=>{h()?d(q):d(m,-1)})}return _(s,f),he(b)}const _t=bt({component:"switch",parts:["root","thumb"]}),it=new Wt("Switch.Root");var Fe,Ze,Le,De,Re;const dt=class dt{constructor(e){re(this,Fe);se(this,"opts");se(this,"attachment");re(this,Le,l(()=>({"data-disabled":ft(this.opts.disabled.current),"data-state":Vt(this.opts.checked.current),"data-required":ft(this.opts.required.current)})));re(this,De,l(()=>({checked:this.opts.checked.current})));re(this,Re,l(()=>({...this.sharedProps,id:this.opts.id.current,role:"switch",disabled:Jt(this.opts.disabled.current),"aria-checked":Yt(this.opts.checked.current,!1),"aria-required":Xt(this.opts.required.current),[_t.root]:"",onclick:this.onclick,onkeydown:this.onkeydown,...this.attachment})));this.opts=e,this.attachment=at(e.ref),this.onkeydown=this.onkeydown.bind(this),this.onclick=this.onclick.bind(this)}static create(e){return it.set(new dt(e))}onkeydown(e){!(e.key===Gt||e.key===Qt)||this.opts.disabled.current||(e.preventDefault(),Ve(this,Fe,Ze).call(this))}onclick(e){this.opts.disabled.current||Ve(this,Fe,Ze).call(this)}get sharedProps(){return n(M(this,Le))}set sharedProps(e){ae(M(this,Le),e)}get snippetProps(){return n(M(this,De))}set snippetProps(e){ae(M(this,De),e)}get props(){return n(M(this,Re))}set props(e){ae(M(this,Re),e)}};Fe=new WeakSet,Ze=function(){this.opts.checked.current=!this.opts.checked.current},Le=new WeakMap,De=new WeakMap,Re=new WeakMap;let Ke=dt;var He,Ee;const ot=class ot{constructor(e){se(this,"root");re(this,He,l(()=>this.root.opts.name.current!==void 0));re(this,Ee,l(()=>({type:"checkbox",name:this.root.opts.name.current,value:this.root.opts.value.current,checked:this.root.opts.checked.current,disabled:this.root.opts.disabled.current,required:this.root.opts.required.current})));this.root=e}static create(){return new ot(it.get())}get shouldRender(){return n(M(this,He))}set shouldRender(e){ae(M(this,He),e)}get props(){return n(M(this,Ee))}set props(e){ae(M(this,Ee),e)}};He=new WeakMap,Ee=new WeakMap;let $e=ot;var Me,Ae;const lt=class lt{constructor(e,o){se(this,"opts");se(this,"root");se(this,"attachment");re(this,Me,l(()=>({checked:this.root.opts.checked.current})));re(this,Ae,l(()=>({...this.root.sharedProps,id:this.opts.id.current,[_t.thumb]:"",...this.attachment})));this.opts=e,this.root=o,this.attachment=at(e.ref)}static create(e){return new lt(e,it.get())}get snippetProps(){return n(M(this,Me))}set snippetProps(e){ae(M(this,Me),e)}get props(){return n(M(this,Ae))}set props(e){ae(M(this,Ae),e)}};Me=new WeakMap,Ae=new WeakMap;let et=lt;function wt(s,e){if(new.target)return le({component:wt,...s});ge(e,!1);const o=$e.create();var c={$set:ue,$on:(v,C)=>ce(e,v,C)};Kt();var h=j(),y=B(h);{var x=v=>{Zt(v,tt(()=>o.props))};O(y,v=>{o.shouldRender&&v(x)})}return _(s,h),he(c)}var ur=new Set(["$$slots","$$events","$$legacy","child","children","ref","id","disabled","required","checked","value","name","type","onCheckedChange"]),cr=W("<button><!></button>"),gr=W("<!> <!>",1);function kt(s,e){const o=rt();if(new.target)return le({component:kt,...s});ge(e,!0);let c=t(e,"child",7),h=t(e,"children",7),y=t(e,"ref",15,null),x=t(e,"id",23,()=>we(o)),v=t(e,"disabled",7,!1),C=t(e,"required",7,!1),z=t(e,"checked",15,!1),w=t(e,"value",7,"on"),b=t(e,"name",7,void 0),f=t(e,"type",7,"button"),k=t(e,"onCheckedChange",7,mt),q=ke(e,ur);const m=Ke.create({checked:K(()=>z(),u=>{z(u),k()?.(u)}),disabled:K(()=>v()??!1),required:K(()=>C()),value:K(()=>w()),name:K(()=>b()),id:K(()=>x()),ref:K(()=>y(),u=>y(u))}),d=l(()=>nt(q,m.props,{type:f()}));var g={get child(){return c()},set child(u){c(u),r()},get children(){return h()},set children(u){h(u),r()},get ref(){return y()},set ref(u=null){y(u),r()},get id(){return x()},set id(u=we(o)){x(u),r()},get disabled(){return v()},set disabled(u=!1){v(u),r()},get required(){return C()},set required(u=!1){C(u),r()},get checked(){return z()},set checked(u=!1){z(u),r()},get value(){return w()},set value(u="on"){w(u),r()},get name(){return b()},set name(u=void 0){b(u),r()},get type(){return f()},set type(u="button"){f(u),r()},get onCheckedChange(){return k()},set onCheckedChange(u=mt){k(u),r()},$set:ue,$on:(u,R)=>ce(e,u,R)},P=gr(),D=B(P);{var E=u=>{var R=j(),V=B(R);{let $=l(()=>({props:n(d),...m.snippetProps}));Z(V,c,()=>n($))}_(u,R)},A=u=>{var R=cr();Ge(R,()=>({...n(d)}));var V=X(R);Z(V,()=>h()??We,()=>m.snippetProps),Y(R),_(u,R)};O(D,u=>{c()?u(E):u(A,-1)})}var G=de(D,2);return wt(G,{}),_(s,P),he(g)}var hr=new Set(["$$slots","$$events","$$legacy","child","children","ref","id"]),fr=W("<span><!></span>");function Ct(s,e){const o=rt();if(new.target)return le({component:Ct,...s});ge(e,!0);let c=t(e,"child",7),h=t(e,"children",7),y=t(e,"ref",15,null),x=t(e,"id",23,()=>we(o)),v=ke(e,hr);const C=et.create({id:K(()=>x()),ref:K(()=>y(),m=>y(m))}),z=l(()=>nt(v,C.props));var w={get child(){return c()},set child(m){c(m),r()},get children(){return h()},set children(m){h(m),r()},get ref(){return y()},set ref(m=null){y(m),r()},get id(){return x()},set id(m=we(o)){x(m),r()},$set:ue,$on:(m,d)=>ce(e,m,d)},b=j(),f=B(b);{var k=m=>{var d=j(),g=B(d);{let P=l(()=>({props:n(z),...C.snippetProps}));Z(g,c,()=>n(P))}_(m,d)},q=m=>{var d=fr();Ge(d,()=>({...n(z)}));var g=X(d);Z(g,()=>h()??We,()=>C.snippetProps),Y(d),_(m,d)};O(f,m=>{c()?m(k):m(q,-1)})}return _(s,b),he(w)}var mr=new Set(["$$slots","$$events","$$legacy","ref","size","invalid","class"]);function Pt(s,e){if(new.target)return le({component:Pt,...s});ge(e,!0);const o=pt();let c=t(e,"ref",15,null),h=t(e,"size",7),y=t(e,"invalid",7,!1),x=t(e,"class",7),v=ke(e,mr);const C=l(()=>h()??o);var z={get ref(){return c()},set ref(f=null){c(f),r()},get size(){return h()},set size(f){h(f),r()},get invalid(){return y()},set invalid(f=!1){y(f),r()},get class(){return x()},set class(f){x(f),r()},$set:ue,$on:(f,k)=>ce(e,f,k)},w=j(),b=B(w);{let f=l(()=>y()||void 0),k=l(()=>J("type-caption flex min-w-0 select-none items-center font-medium tracking-normal text-muted-foreground transition-[color] duration-(--spring-fast) group-hover:text-foreground group-focus-within:text-foreground data-[state=hover]:text-foreground data-[state=focus]:text-foreground peer-disabled:cursor-not-allowed peer-disabled:opacity-60 group-data-[disabled=true]:pointer-events-none group-data-[disabled=true]:opacity-60 group-data-[invalid=true]:text-danger data-[invalid=true]:text-danger motion-reduce:transition-none",n(C)==="compact"?"gap-1.5":"gap-2",x()));Ye(b,()=>xt,(q,m)=>{m(q,tt({"data-slot":"label",get"data-size"(){return n(C)},get"data-invalid"(){return n(f)},get class(){return n(k)}},()=>v,{get ref(){return c()},set ref(d){c(d)}}))})}return _(s,w),he(z)}function vr(){let s=vt(Lt(Ot()));const e=jt(o=>{ae(s,o,!0)});return{get current(){return n(s)},cleanup:e}}function br(s){return new Ut(s,"fast")}function pr(s,e,o=!1){return s.set(e,{instant:o}),s}var yr=new Set(["$$slots","$$events","$$legacy","ref","id","checked","disabled","required","invalid","class","onCheckedChange","size","name","value","ariaLabel","ariaLabelledby","ariaDescribedby"]);function xr(s,e){if(new.target)return le({component:xr,...s});ge(e,!0);let o=t(e,"ref",15,null),c=t(e,"id",7,""),h=t(e,"checked",15,!1),y=t(e,"disabled",7,!1),x=t(e,"required",7,!1),v=t(e,"invalid",7,!1),C=t(e,"class",7,""),z=t(e,"onCheckedChange",7),w=t(e,"size",7,"md"),b=t(e,"name",7),f=t(e,"value",7,"on"),k=t(e,"ariaLabel",7),q=t(e,"ariaLabelledby",7),m=t(e,"ariaDescribedby",7),d=ke(e,yr);const g={xs:{width:24,height:14,padding:2,thumb:10},sm:{width:28,height:16,padding:2,thumb:12},compact:{width:28,height:16,padding:2,thumb:12},md:{width:34,height:20,padding:2,thumb:16},default:{width:34,height:20,padding:2,thumb:16},lg:{width:38,height:22,padding:2,thumb:18}};let P=l(()=>g[w()].width),D=l(()=>g[w()].height),E=l(()=>g[w()].padding),A=l(()=>g[w()].thumb),G=l(()=>n(A));const u=vr();Dt(u.cleanup);const R=br(Rt(()=>n(E))),V=l(()=>h()?n(P)-n(A)-n(E):n(E));Ht(()=>{pr(R,n(V),u.current)});var $={get ref(){return o()},set ref(p=null){o(p),r()},get id(){return c()},set id(p=""){c(p),r()},get checked(){return h()},set checked(p=!1){h(p),r()},get disabled(){return y()},set disabled(p=!1){y(p),r()},get required(){return x()},set required(p=!1){x(p),r()},get invalid(){return v()},set invalid(p=!1){v(p),r()},get class(){return C()},set class(p=""){C(p),r()},get onCheckedChange(){return z()},set onCheckedChange(p){z(p),r()},get size(){return w()},set size(p="md"){w(p),r()},get name(){return b()},set name(p){b(p),r()},get value(){return f()},set value(p="on"){f(p),r()},get ariaLabel(){return k()},set ariaLabel(p){k(p),r()},get ariaLabelledby(){return q()},set ariaLabelledby(p){q(p),r()},get ariaDescribedby(){return m()},set ariaDescribedby(p){m(p),r()},$set:ue,$on:(p,ve)=>ce(e,p,ve)},ne=j(),me=B(ne);{let p=l(()=>v()||void 0),ve=l(()=>J("border-border peer relative inline-flex shrink-0 cursor-pointer items-center rounded-full border bg-muted shadow-(--elevation-raised) transition-[background-color,box-shadow,opacity] duration-spring-fast ease-spring-fast after:absolute after:-inset-y-2 after:-inset-x-1 after:content-[''] motion-reduce:transition-none","hover:bg-hover active:bg-active","disabled:cursor-not-allowed disabled:opacity-60","data-[state=checked]:border-primary data-[state=checked]:bg-primary data-[state=checked]:hover:bg-primary data-[state=checked]:active:bg-primary",v()&&"border-danger ring-1 ring-danger/25",C())),H=l(()=>`
1
+ var It=Object.defineProperty;var gt=s=>{throw TypeError(s)};var Ft=(s,e,o)=>e in s?It(s,e,{enumerable:!0,configurable:!0,writable:!0,value:o}):s[e]=o;var se=(s,e,o)=>Ft(s,typeof e!="symbol"?e+"":e,o),ht=(s,e,o)=>e.has(s)||gt("Cannot "+o);var M=(s,e,o)=>(ht(s,e,"read from private field"),o?o.call(s):e.get(s)),re=(s,e,o)=>e.has(s)?gt("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(s):e.set(s,o);var Ve=(s,e,o)=>(ht(s,e,"access private method"),o);import{t as le,bo as t,bw as ue,b as ce,bp as ke,br as tt,bm as Ne}from"./DWvCfaBg.js";import{c9 as l,aD as n,bH as ae,bo as rt,bs as ge,a7 as j,ay as B,W as _,bn as he,aA as r,a5 as X,bf as We,bA as Y,aB as W,bS as de,bV as vt,br as Lt,bj as Dt,c5 as Rt,ca as Ht,b_ as Q,be as Xe,b$ as Te,bO as oe,bl as Ue,ai as Et,bk as Mt,aj as At}from"./3SdAC2_C.js";import{c as Ye}from"./Y_tkjygB.js";import{b as Ge,e as J,c as pe,s as T,f as ye,p as Bt}from"./BCuI_zgX.js";import{p as Ot,o as jt,e as Nt}from"./CueOVPTy.js";import{S as Ut}from"./BlRGZv8u.js";import{i as O}from"./VTJf_qPn.js";import{t as Z}from"./Bu3PKqut.js";import{an as at,ay as bt,az as we,av as K,aQ as nt,h as Wt,l as Gt,a6 as Qt,aq as ft,aE as Vt,ar as Xt,aD as Yt,at as Jt,aS as mt,a_ as pt,f as yt}from"./Drf1gLyo.js";import"./DU3vNstz.js";import{i as Kt}from"./BjLb7AHW.js";import{H as Zt}from"./BRPJcG-m.js";import{z as $t}from"./D7yetF0v.js";import"./CIKXOyvw.js";import"./B0kNPCxU.js";import{d as er,n as tr,m as rr,a as ar}from"./BRdQpeCl.js";import{b as nr}from"./Dn334wJv.js";import{t as ir}from"./DAsc1V4f.js";import"./B3OJ_2Dd.js";import{e as sr}from"./CUA9hM4m.js";const dr=bt({component:"label",parts:["root"]});var Ie;const st=class st{constructor(e){se(this,"opts");se(this,"attachment");re(this,Ie,l(()=>({id:this.opts.id.current,[dr.root]:"",onmousedown:this.onmousedown,...this.attachment})));this.opts=e,this.attachment=at(this.opts.ref),this.onmousedown=this.onmousedown.bind(this)}static create(e){return new st(e)}onmousedown(e){e.detail>1&&e.preventDefault()}get props(){return n(M(this,Ie))}set props(e){ae(M(this,Ie),e)}};Ie=new WeakMap;let Je=st;var or=new Set(["$$slots","$$events","$$legacy","children","child","id","ref","for"]),lr=W("<label><!></label>");function xt(s,e){const o=rt();if(new.target)return le({component:xt,...s});ge(e,!0);let c=t(e,"children",7),h=t(e,"child",7),y=t(e,"id",23,()=>we(o)),x=t(e,"ref",15,null),v=t(e,"for",7),C=ke(e,or);const z=Je.create({id:K(()=>y()),ref:K(()=>x(),d=>x(d))}),w=l(()=>nt(C,z.props,{for:v()}));var b={get children(){return c()},set children(d){c(d),r()},get child(){return h()},set child(d){h(d),r()},get id(){return y()},set id(d=we(o)){y(d),r()},get ref(){return x()},set ref(d=null){x(d),r()},get for(){return v()},set for(d){v(d),r()},$set:ue,$on:(d,g)=>ce(e,d,g)},f=j(),k=B(f);{var q=d=>{var g=j(),P=B(g);Z(P,h,()=>({props:n(w)})),_(d,g)},m=d=>{var g=lr();Ge(g,()=>({...n(w),for:v()}));var P=X(g);Z(P,()=>c()??We),Y(g),_(d,g)};O(k,d=>{h()?d(q):d(m,-1)})}return _(s,f),he(b)}const _t=bt({component:"switch",parts:["root","thumb"]}),it=new Wt("Switch.Root");var Fe,Ze,Le,De,Re;const dt=class dt{constructor(e){re(this,Fe);se(this,"opts");se(this,"attachment");re(this,Le,l(()=>({"data-disabled":ft(this.opts.disabled.current),"data-state":Vt(this.opts.checked.current),"data-required":ft(this.opts.required.current)})));re(this,De,l(()=>({checked:this.opts.checked.current})));re(this,Re,l(()=>({...this.sharedProps,id:this.opts.id.current,role:"switch",disabled:Jt(this.opts.disabled.current),"aria-checked":Yt(this.opts.checked.current,!1),"aria-required":Xt(this.opts.required.current),[_t.root]:"",onclick:this.onclick,onkeydown:this.onkeydown,...this.attachment})));this.opts=e,this.attachment=at(e.ref),this.onkeydown=this.onkeydown.bind(this),this.onclick=this.onclick.bind(this)}static create(e){return it.set(new dt(e))}onkeydown(e){!(e.key===Gt||e.key===Qt)||this.opts.disabled.current||(e.preventDefault(),Ve(this,Fe,Ze).call(this))}onclick(e){this.opts.disabled.current||Ve(this,Fe,Ze).call(this)}get sharedProps(){return n(M(this,Le))}set sharedProps(e){ae(M(this,Le),e)}get snippetProps(){return n(M(this,De))}set snippetProps(e){ae(M(this,De),e)}get props(){return n(M(this,Re))}set props(e){ae(M(this,Re),e)}};Fe=new WeakSet,Ze=function(){this.opts.checked.current=!this.opts.checked.current},Le=new WeakMap,De=new WeakMap,Re=new WeakMap;let Ke=dt;var He,Ee;const ot=class ot{constructor(e){se(this,"root");re(this,He,l(()=>this.root.opts.name.current!==void 0));re(this,Ee,l(()=>({type:"checkbox",name:this.root.opts.name.current,value:this.root.opts.value.current,checked:this.root.opts.checked.current,disabled:this.root.opts.disabled.current,required:this.root.opts.required.current})));this.root=e}static create(){return new ot(it.get())}get shouldRender(){return n(M(this,He))}set shouldRender(e){ae(M(this,He),e)}get props(){return n(M(this,Ee))}set props(e){ae(M(this,Ee),e)}};He=new WeakMap,Ee=new WeakMap;let $e=ot;var Me,Ae;const lt=class lt{constructor(e,o){se(this,"opts");se(this,"root");se(this,"attachment");re(this,Me,l(()=>({checked:this.root.opts.checked.current})));re(this,Ae,l(()=>({...this.root.sharedProps,id:this.opts.id.current,[_t.thumb]:"",...this.attachment})));this.opts=e,this.root=o,this.attachment=at(e.ref)}static create(e){return new lt(e,it.get())}get snippetProps(){return n(M(this,Me))}set snippetProps(e){ae(M(this,Me),e)}get props(){return n(M(this,Ae))}set props(e){ae(M(this,Ae),e)}};Me=new WeakMap,Ae=new WeakMap;let et=lt;function wt(s,e){if(new.target)return le({component:wt,...s});ge(e,!1);const o=$e.create();var c={$set:ue,$on:(v,C)=>ce(e,v,C)};Kt();var h=j(),y=B(h);{var x=v=>{Zt(v,tt(()=>o.props))};O(y,v=>{o.shouldRender&&v(x)})}return _(s,h),he(c)}var ur=new Set(["$$slots","$$events","$$legacy","child","children","ref","id","disabled","required","checked","value","name","type","onCheckedChange"]),cr=W("<button><!></button>"),gr=W("<!> <!>",1);function kt(s,e){const o=rt();if(new.target)return le({component:kt,...s});ge(e,!0);let c=t(e,"child",7),h=t(e,"children",7),y=t(e,"ref",15,null),x=t(e,"id",23,()=>we(o)),v=t(e,"disabled",7,!1),C=t(e,"required",7,!1),z=t(e,"checked",15,!1),w=t(e,"value",7,"on"),b=t(e,"name",7,void 0),f=t(e,"type",7,"button"),k=t(e,"onCheckedChange",7,mt),q=ke(e,ur);const m=Ke.create({checked:K(()=>z(),u=>{z(u),k()?.(u)}),disabled:K(()=>v()??!1),required:K(()=>C()),value:K(()=>w()),name:K(()=>b()),id:K(()=>x()),ref:K(()=>y(),u=>y(u))}),d=l(()=>nt(q,m.props,{type:f()}));var g={get child(){return c()},set child(u){c(u),r()},get children(){return h()},set children(u){h(u),r()},get ref(){return y()},set ref(u=null){y(u),r()},get id(){return x()},set id(u=we(o)){x(u),r()},get disabled(){return v()},set disabled(u=!1){v(u),r()},get required(){return C()},set required(u=!1){C(u),r()},get checked(){return z()},set checked(u=!1){z(u),r()},get value(){return w()},set value(u="on"){w(u),r()},get name(){return b()},set name(u=void 0){b(u),r()},get type(){return f()},set type(u="button"){f(u),r()},get onCheckedChange(){return k()},set onCheckedChange(u=mt){k(u),r()},$set:ue,$on:(u,R)=>ce(e,u,R)},P=gr(),D=B(P);{var E=u=>{var R=j(),V=B(R);{let $=l(()=>({props:n(d),...m.snippetProps}));Z(V,c,()=>n($))}_(u,R)},A=u=>{var R=cr();Ge(R,()=>({...n(d)}));var V=X(R);Z(V,()=>h()??We,()=>m.snippetProps),Y(R),_(u,R)};O(D,u=>{c()?u(E):u(A,-1)})}var G=de(D,2);return wt(G,{}),_(s,P),he(g)}var hr=new Set(["$$slots","$$events","$$legacy","child","children","ref","id"]),fr=W("<span><!></span>");function Ct(s,e){const o=rt();if(new.target)return le({component:Ct,...s});ge(e,!0);let c=t(e,"child",7),h=t(e,"children",7),y=t(e,"ref",15,null),x=t(e,"id",23,()=>we(o)),v=ke(e,hr);const C=et.create({id:K(()=>x()),ref:K(()=>y(),m=>y(m))}),z=l(()=>nt(v,C.props));var w={get child(){return c()},set child(m){c(m),r()},get children(){return h()},set children(m){h(m),r()},get ref(){return y()},set ref(m=null){y(m),r()},get id(){return x()},set id(m=we(o)){x(m),r()},$set:ue,$on:(m,d)=>ce(e,m,d)},b=j(),f=B(b);{var k=m=>{var d=j(),g=B(d);{let P=l(()=>({props:n(z),...C.snippetProps}));Z(g,c,()=>n(P))}_(m,d)},q=m=>{var d=fr();Ge(d,()=>({...n(z)}));var g=X(d);Z(g,()=>h()??We,()=>C.snippetProps),Y(d),_(m,d)};O(f,m=>{c()?m(k):m(q,-1)})}return _(s,b),he(w)}var mr=new Set(["$$slots","$$events","$$legacy","ref","size","invalid","class"]);function Pt(s,e){if(new.target)return le({component:Pt,...s});ge(e,!0);const o=pt();let c=t(e,"ref",15,null),h=t(e,"size",7),y=t(e,"invalid",7,!1),x=t(e,"class",7),v=ke(e,mr);const C=l(()=>h()??o);var z={get ref(){return c()},set ref(f=null){c(f),r()},get size(){return h()},set size(f){h(f),r()},get invalid(){return y()},set invalid(f=!1){y(f),r()},get class(){return x()},set class(f){x(f),r()},$set:ue,$on:(f,k)=>ce(e,f,k)},w=j(),b=B(w);{let f=l(()=>y()||void 0),k=l(()=>J("type-caption flex min-w-0 select-none items-center font-medium tracking-normal text-muted-foreground transition-[color] duration-(--spring-fast) group-hover:text-foreground group-focus-within:text-foreground data-[state=hover]:text-foreground data-[state=focus]:text-foreground peer-disabled:cursor-not-allowed peer-disabled:opacity-60 group-data-[disabled=true]:pointer-events-none group-data-[disabled=true]:opacity-60 group-data-[invalid=true]:text-danger data-[invalid=true]:text-danger motion-reduce:transition-none",n(C)==="compact"?"gap-1.5":"gap-2",x()));Ye(b,()=>xt,(q,m)=>{m(q,tt({"data-slot":"label",get"data-size"(){return n(C)},get"data-invalid"(){return n(f)},get class(){return n(k)}},()=>v,{get ref(){return c()},set ref(d){c(d)}}))})}return _(s,w),he(z)}function vr(){let s=vt(Lt(Ot()));const e=jt(o=>{ae(s,o,!0)});return{get current(){return n(s)},cleanup:e}}function br(s){return new Ut(s,"fast")}function pr(s,e,o=!1){return s.set(e,{instant:o}),s}var yr=new Set(["$$slots","$$events","$$legacy","ref","id","checked","disabled","required","invalid","class","onCheckedChange","size","name","value","ariaLabel","ariaLabelledby","ariaDescribedby"]);function xr(s,e){if(new.target)return le({component:xr,...s});ge(e,!0);let o=t(e,"ref",15,null),c=t(e,"id",7,""),h=t(e,"checked",15,!1),y=t(e,"disabled",7,!1),x=t(e,"required",7,!1),v=t(e,"invalid",7,!1),C=t(e,"class",7,""),z=t(e,"onCheckedChange",7),w=t(e,"size",7,"md"),b=t(e,"name",7),f=t(e,"value",7,"on"),k=t(e,"ariaLabel",7),q=t(e,"ariaLabelledby",7),m=t(e,"ariaDescribedby",7),d=ke(e,yr);const g={xs:{width:24,height:14,padding:2,thumb:10},sm:{width:28,height:16,padding:2,thumb:12},compact:{width:28,height:16,padding:2,thumb:12},md:{width:34,height:20,padding:2,thumb:16},default:{width:34,height:20,padding:2,thumb:16},lg:{width:38,height:22,padding:2,thumb:18}};let P=l(()=>g[w()].width),D=l(()=>g[w()].height),E=l(()=>g[w()].padding),A=l(()=>g[w()].thumb),G=l(()=>n(A));const u=vr();Dt(u.cleanup);const R=br(Rt(()=>n(E))),V=l(()=>h()?n(P)-n(A)-n(E):n(E));Ht(()=>{pr(R,n(V),u.current)});var $={get ref(){return o()},set ref(p=null){o(p),r()},get id(){return c()},set id(p=""){c(p),r()},get checked(){return h()},set checked(p=!1){h(p),r()},get disabled(){return y()},set disabled(p=!1){y(p),r()},get required(){return x()},set required(p=!1){x(p),r()},get invalid(){return v()},set invalid(p=!1){v(p),r()},get class(){return C()},set class(p=""){C(p),r()},get onCheckedChange(){return z()},set onCheckedChange(p){z(p),r()},get size(){return w()},set size(p="md"){w(p),r()},get name(){return b()},set name(p){b(p),r()},get value(){return f()},set value(p="on"){f(p),r()},get ariaLabel(){return k()},set ariaLabel(p){k(p),r()},get ariaLabelledby(){return q()},set ariaLabelledby(p){q(p),r()},get ariaDescribedby(){return m()},set ariaDescribedby(p){m(p),r()},$set:ue,$on:(p,ve)=>ce(e,p,ve)},ne=j(),me=B(ne);{let p=l(()=>v()||void 0),ve=l(()=>J("border-border peer relative inline-flex shrink-0 cursor-pointer items-center rounded-full border bg-muted shadow-(--elevation-raised) transition-[background-color,box-shadow,opacity] duration-spring-fast ease-spring-fast after:absolute after:-inset-y-2 after:-inset-x-1 after:content-[''] motion-reduce:transition-none","hover:bg-hover active:bg-active","disabled:cursor-not-allowed disabled:opacity-60","data-[state=checked]:border-primary data-[state=checked]:bg-primary data-[state=checked]:hover:bg-primary data-[state=checked]:active:bg-primary",v()&&"border-danger ring-1 ring-danger/25",C())),H=l(()=>`
2
2
  width: ${n(P)}px;
3
3
  height: ${n(D)}px;
4
4
  `);Ye(me,()=>kt,(xe,N)=>{N(xe,tt({get id(){return c()},get name(){return b()},get value(){return f()},get disabled(){return y()},get required(){return x()},get onCheckedChange(){return z()},type:"button",get"aria-label"(){return k()},get"aria-labelledby"(){return q()},get"aria-describedby"(){return m()},get"aria-invalid"(){return n(p)},get class(){return n(ve)},get style(){return n(H)}},()=>d,{get ref(){return o()},set ref(F){o(F)},get checked(){return h()},set checked(F){h(F)},children:(F,Ce)=>{var _e=j(),Pe=B(_e);{let i=l(()=>J("bg-card pointer-events-none absolute top-1/2 left-0 block rounded-full shadow-(--elevation-raised) ring-0 data-[state=checked]:bg-primary-foreground")),a=l(()=>`
@@ -1 +1 @@
1
- import{t as ir,bo as n,bw as ur,b as cr,bp as xa,bm as J}from"./Dws-34a7.js";import{bs as dr,ay as f,a7 as A,bf as Ca,W as l,bS as S,aD as t,bn as vr,aA as a,c9 as u,aB as _,bo as wa,bV as me,br as Vr,bj as Oa,ca as Bt,bH as O,c5 as Tr,a5 as I,bl as We,bA as T,b_ as X,bO as ue,be as Lr,b$ as Ft}from"./3SdAC2_C.js";import{i as C}from"./DLCFUd4s.js";import{g as sr,e as Ir}from"./C-zB-6G6.js";import{t as $}from"./D-rRuAXZ.js";import{c as W}from"./B5tvpTFB.js";import{b as Me,c as Aa,e as Ue,f as Pa,s as $e}from"./BD9db4FR.js";import{b as Er}from"./Dn334wJv.js";import{i as Sa,f as Da,q as ka,n as Va,k as Ta}from"./C63WwVct.js";import{aS as et,a$ as La,av as q,H as Ia,aZ as Rr,aQ as Ea,a_ as Ra,a1 as Ma,f as qa}from"./BIGqOuh0.js";import"./BPuz5cN_.js";import{F as za,O as Ba,a as Fa,M as Ga}from"./BNa9zzEx.js";import{u as Ha,b as Mr,a as ja}from"./DWa-2rkZ.js";import{c as Ka,u as Wa,s as Ua}from"./D9tVylVS.js";import"./gU2qspu9.js";import{c as Na,g as qr,b as Qa,f as Ya,e as Za,i as Ja,h as Xa}from"./B433f4mk.js";import{S as $a,a as zr}from"./CWOQ_pUA.js";import{S as en}from"./CTW83wJs.js";var tn=_("<!> <!>",1);function lr(we,r){if(new.target)return ir({component:lr,...we});dr(r,!0);let P=n(r,"value",15),ee=n(r,"onValueChange",7,et),ce=n(r,"name",7,""),te=n(r,"disabled",7,!1),d=n(r,"type",7),de=n(r,"open",15,!1),z=n(r,"onOpenChange",7,et),B=n(r,"onOpenChangeComplete",7,et),g=n(r,"loop",7,!1),F=n(r,"scrollAlignment",7,"nearest"),ve=n(r,"required",7,!1),b=n(r,"items",23,()=>[]),E=n(r,"allowDeselect",7,!0),G=n(r,"inputValue",7,""),Oe=n(r,"children",7);if(P()===void 0){const s=d()==="single"?"":[];P(s)}La.pre(()=>P(),()=>{P()===void 0&&P(d()==="single"?"":[])});const U=Na.create({type:d(),value:q(()=>P(),s=>{P(s),ee()(s)}),disabled:q(()=>te()),required:q(()=>ve()),open:q(()=>de(),s=>{de(s),z()(s)}),loop:q(()=>g()),scrollAlignment:q(()=>F()),name:q(()=>ce()),isCombobox:!0,items:q(()=>b()),allowDeselect:q(()=>E()),inputValue:q(()=>G(),s=>G(s)),onOpenChangeComplete:q(()=>B())});var qe={get value(){return P()},set value(s){P(s),a()},get onValueChange(){return ee()},set onValueChange(s=et){ee(s),a()},get name(){return ce()},set name(s=""){ce(s),a()},get disabled(){return te()},set disabled(s=!1){te(s),a()},get type(){return d()},set type(s){d(s),a()},get open(){return de()},set open(s=!1){de(s),a()},get onOpenChange(){return z()},set onOpenChange(s=et){z(s),a()},get onOpenChangeComplete(){return B()},set onOpenChangeComplete(s=et){B(s),a()},get loop(){return g()},set loop(s=!1){g(s),a()},get scrollAlignment(){return F()},set scrollAlignment(s="nearest"){F(s),a()},get required(){return ve()},set required(s=!1){ve(s),a()},get items(){return b()},set items(s=[]){b(s),a()},get allowDeselect(){return E()},set allowDeselect(s=!0){E(s),a()},get inputValue(){return G()},set inputValue(s=""){G(s),a()},get children(){return Oe()},set children(s){Oe(s),a()},$set:ur,$on:(s,ae)=>cr(r,s,ae)},Ae=tn(),Pe=f(Ae);Ia(Pe,{children:(s,ae)=>{var _e=A(),be=f(_e);$(be,()=>Oe()??Ca),l(s,_e)},$$slots:{default:!0}});var N=S(Pe,2);{var re=s=>{var ae=A(),_e=f(ae);{var be=Se=>{var Q=A(),Ne=f(Q);sr(Ne,16,()=>U.opts.value.current,De=>De,(De,rt)=>{qr(De,{get value(){return rt}})}),l(Se,Q)};C(_e,Se=>{U.opts.value.current.length&&Se(be)})}l(s,ae)},ze=u(()=>Array.isArray(U.opts.value.current)),tt=s=>{qr(s,{get value(){return U.opts.value.current},set value(ae){U.opts.value.current=ae}})};C(N,s=>{t(ze)?s(re):s(tt,-1)})}return l(we,Ae),vr(qe)}var rn=new Set(["$$slots","$$events","$$legacy","id","ref","child","defaultValue","clearOnDeselect"]),an=_("<input/>");function Gr(we,r){if(new.target)return ir({component:Gr,...we});dr(r,!0);let P=n(r,"id",23,Rr),ee=n(r,"ref",15,null),ce=n(r,"child",7),te=n(r,"defaultValue",7),d=n(r,"clearOnDeselect",7,!1),de=xa(r,rn);const z=Qa.create({id:q(()=>P()),ref:q(()=>ee(),b=>ee(b)),clearOnDeselect:q(()=>d())});te()&&(z.root.opts.inputValue.current=te());const B=u(()=>Ea(de,z.props,{value:z.root.opts.inputValue.current}));var g={get id(){return P()},set id(b=Rr()){P(b),a()},get ref(){return ee()},set ref(b=null){ee(b),a()},get child(){return ce()},set child(b){ce(b),a()},get defaultValue(){return te()},set defaultValue(b){te(b),a()},get clearOnDeselect(){return d()},set clearOnDeselect(b=!1){d(b),a()},$set:ur,$on:(b,E)=>cr(r,b,E)},F=A(),ve=f(F);return W(ve,()=>za,(b,E)=>{E(b,{get id(){return P()},get ref(){return z.opts.ref},children:(G,Oe)=>{var U=A(),qe=f(U);{var Ae=N=>{var re=A(),ze=f(re);$(ze,ce,()=>({props:t(B)})),l(N,re)},Pe=N=>{var re=an();Me(re,()=>({...t(B)}),void 0,void 0,void 0,void 0,!0),l(N,re)};C(qe,N=>{ce()?N(Ae):N(Pe,-1)})}l(G,U)},$$slots:{default:!0}})}),l(we,F),vr(g)}var nn=_("<input/>"),on=_('<span class="type-caption min-w-0 truncate font-medium text-muted-foreground"> </span>'),sn=_('<div class="ml-auto"><!></div>'),ln=_('<div class="flex min-w-0 shrink-0 items-center gap-2 border-b border-border px-3 py-2"><!> <!></div>'),Br=_('<div class="type-caption px-3 py-2 text-muted-foreground" role="status"> </div>'),un=_('<div class="flex items-center gap-2 px-3 py-2"><span class="type-caption text-muted-foreground" role="status"> </span> <!></div>'),cn=_('<div role="listbox" class="sr-only"></div>'),Fr=_("<!> <!>",1),dn=_("<span> </span> <!>",1),vn=_('<div class="type-caption px-2.5 py-1.5 font-medium text-muted-foreground"><!> <!></div>'),fn=_('<span class="first-line-icon shrink-0"><!></span>'),gn=_('<span class="type-caption max-w-1/2 shrink-0 truncate text-muted-foreground"> </span>'),pn=_('<div><!> <span class="min-w-0 flex-1 truncate"><!></span> <!> <!> <!></div>'),mn=_("<!> <div></div>",1),_n=_("<div><!> <!> <!></div>"),bn=_('<div class="shrink-0 border-t border-border bg-muted/20 px-3 py-2"><!></div>'),hn=_("<!> <!> <!> <!>",1),yn=_("<div><!></div>"),xn=_("<div><div><!></div></div>"),Cn=_('<div class="flex min-w-0 shrink-0 items-center gap-1"><div class="min-w-0 flex-1"><!></div> <div class="shrink-0"><!></div></div>'),wn=_("<!> <!>",1),On=_('<div><span class="sr-only"> </span> <!></div>');function An(we,r){const P=wa();if(new.target)return ir({component:An,...we});dr(r,!0);const ee=e=>{const o=w=>{var y=A(),V=f(y);{const H=(Ze,Le)=>{let p=()=>(Le?.()).props;var m=nn(),k=j=>Zr(j,p().onkeydown);Me(m,()=>({...p(),value:t(Yt),onkeydown:k}),void 0,void 0,void 0,void 0,!0),l(Ze,m)};let D=u(()=>g()?Wt:void 0),L=u(()=>ve()||void 0),Y=u(()=>g()?re():N()),Ge=u(()=>be()==="search"?"search":void 0),Te=u(()=>be()==="search"?Ue(ka,_e()):Ue("type-caption text-foreground placeholder:text-muted-foreground w-full min-w-0 rounded-(--radius-medium) border px-3",Ta,"focus-visible:outline-solid focus-visible:-outline-offset-2",Va(t(fr)),ve()&&"border-danger ring-1 ring-danger/25",_e()));W(V,()=>Gr,(Ze,Le)=>{Le(Ze,{get id(){return Kr},get"aria-labelledby"(){return t(Ut)},get"aria-describedby"(){return Pe()},get"aria-busy"(){return t(R)},get"aria-controls"(){return t(D)},get"aria-invalid"(){return t(L)},get placeholder(){return t(Y)},onfocus:_r,onclick:_r,oninput:Nr,onkeydown:Qr,get"data-size"(){return t(fr)},get"data-variant"(){return t(Ge)},get class(){return t(Te)},get ref(){return Q()},set ref(p){Q(p)},child:H,$$slots:{child:!0}})})}l(w,y)},i=w=>{var y=hn(),V=f(y);{var H=p=>{var m=ln(),k=I(m);{var j=se=>{var Z=on(),vt=We(Z,!0);X(()=>ue(vt,at())),l(se,Z)};C(k,se=>{at()&&se(j)})}var He=S(k,2);{var K=se=>{var Z=sn(),vt=I(Z);$(vt,nt),T(Z),l(se,Z)};C(He,se=>{nt()&&se(K)})}T(m),l(p,m)};C(V,p=>{(at()||nt())&&p(H)})}var D=S(V,2);{var L=p=>{var m=Br(),k=We(m,!0);X(j=>ue(k,j),[()=>J.ui_combobox_loadingOptions_message()]),l(p,m)},Y=p=>{var m=un(),k=I(m),j=We(k,!0),He=S(k,2);qa(He,{variant:"ghost",size:"sm",onclick:yr,onkeydown:Yr,get ref(){return t(Dt)},set ref(K){O(Dt,K,!0)},children:(K,se)=>{Lr();var Z=Ft();X(()=>ue(Z,s())),l(K,Z)},$$slots:{default:!0}}),T(m),X(()=>ue(j,tt())),l(p,m)},Ge=p=>{var m=Br(),k=We(m,!0);X(()=>ue(k,ze())),l(p,m)};C(D,p=>{t(R)?p(L):t(Fe)?p(Y,1):t(mr)||p(Ge,2)})}var Te=S(D,2);{const p=(k,j)=>{let He=()=>(j?.()).props;var K=_n();Me(K,()=>({...He(),id:ke()||fe()?void 0:Wt,role:ke()||fe()?"region":"listbox","aria-multiselectable":!ke()&&!fe()&&B()?!0:void 0,"aria-labelledby":t(Ut),"aria-busy":t(R),tabindex:"0"}));var se=I(K);Fa(se,{});var Z=S(se,2);{var vt=he=>{var ye=cn();X(()=>{$e(ye,"id",Wt),$e(ye,"aria-labelledby",t(Ut)),$e(ye,"aria-multiselectable",B()||void 0),$e(ye,"aria-busy",t(R)),$e(ye,"aria-owns",t(Wr))}),l(he,ye)};C(Z,he=>{(ke()||fe())&&he(vt)})}var fa=S(Z,2);{var ga=he=>{var ye=A(),pa=f(ye);sr(pa,19,()=>t(Lt),Jt=>Jt.key,(Jt,xe,Or)=>{var Ar=Fr(),Pr=f(Ar);{var ma=ft=>{var Rt=A(),gt=f(Rt);W(gt,()=>en,(pt,Xt)=>{Xt(pt,{decorative:!0,class:"my-1 border-t border-border"})}),l(ft,Rt)};C(Pr,ft=>{t(xe).separatorBefore&&t(Or)>0&&ft(ma)})}var _a=S(Pr,2);{const ft=(gt,pt)=>{let Xt=()=>(pt?.()).props;var Sr=mn(),Dr=f(Sr);{var ba=je=>{var x=A(),er=f(x);{var Mt=ge=>{var le=Fr(),pe=f(le);W(pe,()=>zr,(Ee,Ce)=>{Ce(Ee,{class:"sr-only",children:(Re,Ke)=>{Lr();var mt=Ft();X(()=>ue(mt,t(xe).label)),l(Re,mt)},$$slots:{default:!0}})});var Ie=S(pe,2);$(Ie,fe,()=>t(xe)),l(ge,le)},tr=ge=>{var le=vn(),pe=I(le);W(pe,()=>zr,(Ce,Re)=>{Re(Ce,{class:"inline",children:(Ke,mt)=>{var Je=dn(),qt=f(Je),rr=We(qt,!0),ar=S(qt,2);{var nr=Xe=>{var zt=A(),or=f(zt);$(or,Ct,()=>t(xe)),l(Xe,zt)};C(ar,Xe=>{Ct()&&Xe(nr)})}X(()=>ue(rr,t(xe).label)),l(Ke,Je)},$$slots:{default:!0}})});var Ie=S(pe,2);{var Ee=Ce=>{var Re=A(),Ke=f(Re);$(Ke,ke,()=>t(xe)),l(Ce,Re)};C(Ie,Ce=>{ke()&&Ce(Ee)})}T(le),l(ge,le)};C(er,ge=>{fe()?ge(Mt):ge(tr,-1)})}l(je,x)};C(Dr,je=>{t(xe).label&&je(ba)})}var $t=S(Dr,2);Me($t,()=>({...Xt()})),sr($t,21,()=>t(xe).collapsed&&(!t(ne).trim()||fe())?[]:t(xe).options,je=>je.value,(je,x)=>{const er=(ge,le)=>{let pe=()=>(le?.()).props,Ie=()=>(le?.()).selected;var Ee=pn(),Ce=v=>Jr(v,t(x),pe().onpointerup),Re=()=>Xr(t(x));Me(Ee,()=>({...pe(),onpointerup:Ce,onclick:Re,"aria-disabled":t(R)||t(x).disabled||void 0,"data-slot":"combobox-option-motion"}));var Ke=I(Ee);{var mt=v=>{var h=fn(),ie=I(h);$(ie,yt,()=>t(x)),T(h),l(v,h)};C(Ke,v=>{yt()&&v(mt)})}var Je=S(Ke,2),qt=I(Je);{var rr=v=>{var h=Ft();X(ie=>ue(h,ie),[()=>J.ui_combobox_useCustom_label({value:t(x).label})]),l(v,h)},ar=v=>{var h=A(),ie=f(h);$(ie,bt,()=>t(x)),l(v,h)},nr=v=>{var h=Ft();X(()=>ue(h,t(x).label)),l(v,h)};C(qt,v=>{t(x)===t(Qt)?v(rr):bt()?v(ar,1):v(nr,-1)})}T(Je);var Xe=S(Je,2);{var zt=v=>{var h=A(),ie=f(h);$(ie,ht,()=>t(x)),l(v,h)},or=v=>{var h=gn(),ie=We(h,!0);X(()=>ue(ie,t(x).description)),l(v,h)};C(Xe,v=>{ht()?v(zt):t(x).description&&v(or,1)})}var kr=S(Xe,2);{let v=u(()=>Ie()?"checked":"empty"),h=u(()=>Ie()?"opacity-100":"opacity-0");Ga(kr,{get state(){return t(v)},"data-slot":"combobox-item-check",get class(){return t(h)}})}var ha=S(kr,2);{var ya=v=>{var h=A(),ie=f(h);$(ie,xt,()=>t(x)),l(v,h)};C(ha,v=>{xt()&&v(ya)})}T(Ee),l(ge,Ee)};var Mt=A(),tr=f(Mt);{let ge=u(()=>t(R)||t(x).disabled||!br(t(x))),le=u(()=>Ue(ja(),Gt(),t(x).class));W(tr,()=>Xa,(pe,Ie)=>{Ie(pe,{get value(){return t(x).value},get label(){return t(x).label},get disabled(){return t(ge)},"data-menu-item":!0,get class(){return t(le)},get child(){return er},onHighlight:()=>Vt=t(x),onUnhighlight:()=>{Vt===t(x)&&(Vt=null)}})})}l(je,Mt)}),T($t),l(gt,Sr)};let Rt=u(()=>`${P}-group-${t(Or)}`);W(_a,()=>$a,(gt,pt)=>{pt(gt,{get id(){return t(Rt)},child:ft,$$slots:{child:!0}})})}l(Jt,Ar)}),l(he,ye)};C(fa,he=>{E()||he(ga)})}T(K),Er(K,he=>O(ot,he),()=>t(ot)),l(k,K)};let m=u(()=>Ue("max-h-72 overflow-y-auto overscroll-contain p-1.5",(E()||t(Lt).length===0)&&"p-0",Ht()));W(Te,()=>Ja,(k,j)=>{j(k,{get class(){return t(m)},child:p,$$slots:{child:!0}})})}var Ze=S(Te,2);{var Le=p=>{var m=bn(),k=I(m);$(k,_t),T(m),l(p,m)};C(Ze,p=>{_t()&&p(Le)})}l(w,y)},c=(w,y)=>{let V=()=>(y?.()).props;const H=u(()=>wr(V()));var D=yn();Me(D,()=>({...t(H)}));var L=I(D);i(L),T(D),Ir(D,Y=>te?.(Y)),l(w,D)},oe=(w,y)=>{let V=()=>(y?.()).props,H=()=>(y?.()).wrapperProps;const D=u(()=>wr(V()));var L=xn();Me(L,()=>({...H()}));var Y=I(L);Me(Y,()=>({...t(D)}));var Ge=I(Y);i(Ge),T(Y),Ir(Y,Te=>te?.(Te)),T(L),l(w,L)};var M=wn(),Et=f(M);{var ia=w=>{var y=Cn(),V=I(y),H=I(V);o(H),T(V);var D=S(V,2),L=I(D);$(L,Se),T(D),T(y),l(w,y)},ua=w=>{o(w)};C(Et,w=>{Se()?w(ia):w(ua,-1)})}var ca=S(Et,2);{var da=w=>{var y=A(),V=f(y);{let H=u(()=>Ue(Mr(),"w-full max-h-72",Ne()));W(V,()=>Ya,(D,L)=>{L(D,{preventScroll:!1,onInteractOutside:ra,"data-static-position":!0,get"data-surface-level"(){return Kt},get class(){return t(H)},style:"max-width: calc(100vw - var(--space-4));",get child(){return c}})})}l(w,y)},va=w=>{const y=u(()=>G()===void 0||G()==="dialog"?Hr():void 0);var V=A(),H=f(V);{let D=u(()=>G()===!1||G()==="dialog"&&!t(y)),L=u(()=>t(y)??ce?.target());W(H,()=>Ma,(Y,Ge)=>{Ge(Y,{get disabled(){return t(D)},get to(){return t(L)},children:(Te,Ze)=>{var Le=A(),p=f(Le);{let m=u(()=>t(y)?"absolute":"fixed"),k=u(()=>t(y)!==void 0),j=u(()=>Ue(Mr(),"w-(--bits-combobox-anchor-width) max-h-72",Ne()));W(p,()=>Za,(He,K)=>{K(He,{get side(){return U()},get strategy(){return t(m)},get hideWhenDetached(){return t(k)},get onInteractOutside(){return St()},sideOffset:4,get collisionPadding(){return Ba},get"data-surface-level"(){return Kt},get class(){return t(j)},style:"max-width: calc(100vw - var(--space-4));",get child(){return oe}})})}l(Te,Le)},$$slots:{default:!0}})})}l(w,V)};C(ca,w=>{Oe()?w(da):w(va,-1)})}l(e,M)},ce=Sa(),te=Da(()=>{g(!1),It(!1)});let d=n(r,"value",15),de=n(r,"options",23,()=>[]),z=n(r,"groups",23,()=>[]),B=n(r,"multiple",7,!1),g=n(r,"open",15,!1),F=n(r,"disabled",7,!1),ve=n(r,"invalid",7,!1),b=n(r,"size",7),E=n(r,"loading",7,!1),G=n(r,"portal",7),Oe=n(r,"staticPosition",7,!1),U=n(r,"side",7,"bottom"),qe=n(r,"ariaLabel",7),Ae=n(r,"ariaLabelledby",7),Pe=n(r,"ariaDescribedby",7),N=n(r,"placeholder",23,()=>J.ui_combobox_selectOption_placeholder()),re=n(r,"searchPlaceholder",23,()=>J.ui_combobox_searchOptions_placeholder()),ze=n(r,"emptyText",23,()=>J.ui_combobox_noOptions_message()),tt=n(r,"errorText",23,()=>J.ui_combobox_searchFailed_error()),s=n(r,"retryText",23,()=>J.ui_combobox_retry_label()),ae=n(r,"class",7,""),_e=n(r,"inputClass",7,""),be=n(r,"inputVariant",7,"default"),Se=n(r,"inputAction",7),Q=n(r,"inputRef",15,null),Ne=n(r,"contentClass",7,""),De=n(r,"displayValue",7),rt=n(r,"allowCustom",7,!1),at=n(r,"header",7,""),nt=n(r,"headerAction",7),_t=n(r,"footer",7),bt=n(r,"optionLabel",7),ht=n(r,"optionDescription",7),yt=n(r,"optionIcon",7),Gt=n(r,"rowClass",7,""),xt=n(r,"optionActions",7),Ct=n(r,"groupDescription",7),ke=n(r,"groupAction",7),fe=n(r,"groupHeader",7),Ht=n(r,"viewportClass",7),wt=n(r,"onsearch",7),Ot=n(r,"onquerychange",7),jt=n(r,"onsearcherror",7),At=n(r,"onchange",7),Be=n(r,"oncommit",7),Pt=n(r,"onopenchange",7),St=n(r,"oninteractoutside",7);const Hr=Ha(),Kt=Ka(Wa()+2);Ua(Kt);const jr=Ra(),fr=u(()=>b()??jr),Kr=`${P}-input`,gr=`${P}-label`,Wt=`${P}-listbox`,Ut=u(()=>Ae()||gr);let Dt=me(null),Nt=me(null),ot=me(null),ne=me(""),kt=me(""),st=me(Vr([])),Qe=me(null),lt=me(!1),Fe=me(!1);const R=u(()=>E()||t(lt));let it=me(Vr({})),Vt=null,Ve=null,Ye=0;Oa(()=>{Ye+=1});const Tt=u(()=>z().length>0?z():[{key:"options",label:"",options:de()}]),Qt=u(()=>{const e=t(ne).trim();return!rt()||!e||[...t(Tt),...t(Qe)??[]].flatMap(i=>i.options).some(i=>i.value.toLowerCase()===e.toLowerCase()||i.label.toLowerCase()===e.toLowerCase())?null:{value:e,label:e}}),ut=u(()=>{const e=t(Qe)??t(Tt);return!t(Qt)||t(R)?e:[...e,{key:"custom",label:"",options:[t(Qt)]}]}),pr=u(()=>t(ut).flatMap(e=>e.options).map(({value:e,label:o,disabled:i})=>({value:e,label:o,disabled:i}))),Lt=u(()=>t(ut).map(e=>({...e,options:e.options.filter(o=>br(o))})).filter(e=>e.keepEmpty||e.options.length>0)),mr=u(()=>t(Lt).some(e=>e.options.length>0)),Wr=u(()=>E()?void 0:t(Lt).map((e,o)=>e.collapsed&&(!t(ne).trim()||fe())?"":`${P}-group-${o}`).filter(Boolean).join(" ")||void 0),Ur=u(()=>De()!==void 0?De():(Array.isArray(d())?d():typeof d()=="string"?[d()]:[]).map(o=>t(Tt).flatMap(i=>i.options).find(i=>i.value===o)?.label??t(it)[o]??o).filter(Boolean).join(", ")),Yt=u(()=>g()?t(ne):t(Ur));Bt(()=>{const e=typeof d()=="string"?d():"";e!==t(kt)&&O(kt,e,!0)}),Bt(()=>{const e=Array.isArray(d())?d():[];(e.length!==t(st).length||e.some((o,i)=>o!==t(st)[i]))&&O(st,[...e],!0)}),Bt(()=>{const e=Array.isArray(d())?d():typeof d()=="string"?[d()]:[],o=[...t(Tt),...t(Qe)??[]].flatMap(c=>c.options),i=Tr(()=>t(it));O(it,Object.fromEntries(e.map(c=>[c,o.find(oe=>oe.value===c)?.label??i[c]??c])),!0)}),Bt(()=>{g()||Tr(ct)});function ct(){Ye+=1;const e=t(ne)!=="";O(ne,""),O(Qe,null),O(lt,!1),O(Fe,!1),e&&Ot()?.("")}function _r(){Ve=null,!F()&&(g()||(ct(),g(!0),Pt()?.(!0)))}function br(e){const o=t(ne).trim().toLowerCase();return!o||`${e.label} ${e.description??""}`.toLowerCase().includes(o)}function Nr(e){Ve=null,O(ne,e.currentTarget.value,!0),g(!0),Ot()?.(t(ne)),hr(t(ne)),a(),t(ot)&&(t(ot).scrollTop=0)}async function hr(e){const o=++Ye;if(Ve=null,O(Fe,!1),O(Qe,null),!wt()||!e.trim()){O(lt,!1);return}O(lt,!0);try{const i=await wt()(e);if(o!==Ye)return;O(Qe,i.length>0&&"options"in i[0]?i:[{key:"search-results",label:"",options:i}],!0)}catch(i){if(o!==Ye)return;O(Fe,!0),jt()?.(i,e)}finally{o===Ye&&O(lt,!1)}}function yr(){Q()?.focus(),hr(t(ne))}function Qr(e){if(!(!g()||e.isComposing)){if(t(Fe)&&e.key==="Tab"&&!e.shiftKey&&t(Dt))e.preventDefault(),t(Dt).focus();else if(e.key==="Enter"&&t(Fe))e.preventDefault(),yr();else if(e.key==="Enter"){const o=Q()?.getAttribute("aria-activedescendant"),i=o?Q()?.ownerDocument.getElementById(o):null;(t(R)||!t(mr)||!i||!t(ot)?.contains(i)||i.getAttribute("aria-disabled")==="true")&&e.preventDefault()}}}function Yr(e){e.key==="Escape"&&Q()?.focus(),e.key==="Tab"&&(Q()?.focus(),e.shiftKey?e.preventDefault():(g(!1),It(!1)))}function xr(e){return t(R)?null:g()&&!B()&&!F()&&e&&!e.disabled&&d()===e.value?e:null}function Zr(e,o){Ve=null;const i=e.key==="Enter"&&!e.isComposing&&!t(R)&&!t(Fe)?xr(Vt):null;typeof o=="function"&&o(e),i&&!g()&&Be()?.(i.value,i)}function Jr(e,o,i){if(Ve=null,t(R)){e.preventDefault();return}const c=e.defaultPrevented?null:xr(o);typeof i=="function"&&i(e),c&&(g()?e.pointerType==="touch"&&(Ve=c):Be()?.(c.value,c))}function Xr(e){const o=Ve;Ve=null,!t(R)&&o&&o.value===e.value&&!g()&&Be()?.(o.value,o)}function Cr(e){const o=Array.isArray(e)?e:[e],i=t(ut).flatMap(c=>c.options);O(it,Object.fromEntries(o.map(c=>[c,i.find(oe=>oe.value===c)?.label??t(it)[c]??c])),!0)}function $r(e){if(t(R))return;const o=t(ut).flatMap(i=>i.options).find(i=>i.value===e);Cr(e),d(e),ct(),At()?.(e,o),o&&Be()?.(e,o)}function ea(e){if(t(R))return;const o=Array.isArray(d())?d():[],i=t(ut).flatMap(c=>c.options).find(c=>o.includes(c.value)!==e.includes(c.value));Cr(e),d(e),ct(),At()?.(e),i&&Be()?.(e,i)}function It(e){e||ct(),Pt()?.(e)}const ta="[data-popover-content], [data-dialog-content], [data-alert-dialog-content]";function ra(e){const o=t(Nt)?.closest(ta);if(o&&e.target instanceof Node&&o.contains(e.target)){e.preventDefault();return}St()?.(e)}function wr(e){const{role:o,tabindex:i,"aria-multiselectable":c,...oe}=e;return oe}var aa={get value(){return d()},set value(e){d(e),a()},get options(){return de()},set options(e=[]){de(e),a()},get groups(){return z()},set groups(e=[]){z(e),a()},get multiple(){return B()},set multiple(e=!1){B(e),a()},get open(){return g()},set open(e=!1){g(e),a()},get disabled(){return F()},set disabled(e=!1){F(e),a()},get invalid(){return ve()},set invalid(e=!1){ve(e),a()},get size(){return b()},set size(e){b(e),a()},get loading(){return E()},set loading(e=!1){E(e),a()},get portal(){return G()},set portal(e){G(e),a()},get staticPosition(){return Oe()},set staticPosition(e=!1){Oe(e),a()},get side(){return U()},set side(e="bottom"){U(e),a()},get ariaLabel(){return qe()},set ariaLabel(e){qe(e),a()},get ariaLabelledby(){return Ae()},set ariaLabelledby(e){Ae(e),a()},get ariaDescribedby(){return Pe()},set ariaDescribedby(e){Pe(e),a()},get placeholder(){return N()},set placeholder(e=J.ui_combobox_selectOption_placeholder()){N(e),a()},get searchPlaceholder(){return re()},set searchPlaceholder(e=J.ui_combobox_searchOptions_placeholder()){re(e),a()},get emptyText(){return ze()},set emptyText(e=J.ui_combobox_noOptions_message()){ze(e),a()},get errorText(){return tt()},set errorText(e=J.ui_combobox_searchFailed_error()){tt(e),a()},get retryText(){return s()},set retryText(e=J.ui_combobox_retry_label()){s(e),a()},get class(){return ae()},set class(e=""){ae(e),a()},get inputClass(){return _e()},set inputClass(e=""){_e(e),a()},get inputVariant(){return be()},set inputVariant(e="default"){be(e),a()},get inputAction(){return Se()},set inputAction(e){Se(e),a()},get inputRef(){return Q()},set inputRef(e=null){Q(e),a()},get contentClass(){return Ne()},set contentClass(e=""){Ne(e),a()},get displayValue(){return De()},set displayValue(e){De(e),a()},get allowCustom(){return rt()},set allowCustom(e=!1){rt(e),a()},get header(){return at()},set header(e=""){at(e),a()},get headerAction(){return nt()},set headerAction(e){nt(e),a()},get footer(){return _t()},set footer(e){_t(e),a()},get optionLabel(){return bt()},set optionLabel(e){bt(e),a()},get optionDescription(){return ht()},set optionDescription(e){ht(e),a()},get optionIcon(){return yt()},set optionIcon(e){yt(e),a()},get rowClass(){return Gt()},set rowClass(e=""){Gt(e),a()},get optionActions(){return xt()},set optionActions(e){xt(e),a()},get groupDescription(){return Ct()},set groupDescription(e){Ct(e),a()},get groupAction(){return ke()},set groupAction(e){ke(e),a()},get groupHeader(){return fe()},set groupHeader(e){fe(e),a()},get viewportClass(){return Ht()},set viewportClass(e){Ht(e),a()},get onsearch(){return wt()},set onsearch(e){wt(e),a()},get onquerychange(){return Ot()},set onquerychange(e){Ot(e),a()},get onsearcherror(){return jt()},set onsearcherror(e){jt(e),a()},get onchange(){return At()},set onchange(e){At(e),a()},get oncommit(){return Be()},set oncommit(e){Be(e),a()},get onopenchange(){return Pt()},set onopenchange(e){Pt(e),a()},get oninteractoutside(){return St()},set oninteractoutside(e){St(e),a()},$set:ur,$on:(e,o)=>cr(r,e,o)},dt=On(),Zt=I(dt),na=We(Zt,!0),oa=S(Zt,2);{var sa=e=>{var o=A(),i=f(o);W(i,()=>lr,(c,oe)=>{oe(c,{type:"multiple",get items(){return t(pr)},get disabled(){return F()},get inputValue(){return t(Yt)},onValueChange:ea,onOpenChange:It,get value(){return t(st)},set value(M){O(st,M,!0)},get open(){return g()},set open(M){g(M)},children:(M,Et)=>{ee(M)},$$slots:{default:!0}})}),l(e,o)},la=e=>{var o=A(),i=f(o);W(i,()=>lr,(c,oe)=>{oe(c,{type:"single",allowDeselect:!1,get items(){return t(pr)},get disabled(){return F()},get inputValue(){return t(Yt)},onValueChange:$r,onOpenChange:It,get value(){return t(kt)},set value(M){O(kt,M,!0)},get open(){return g()},set open(M){g(M)},children:(M,Et)=>{ee(M)},$$slots:{default:!0}})}),l(e,o)};C(oa,e=>{B()?e(sa):e(la,-1)})}return T(dt),Er(dt,e=>O(Nt,e),()=>t(Nt)),X(e=>{Pa(dt,1,e),$e(Zt,"id",gr),ue(na,qe())},[()=>Aa(Ue("relative w-full",be()==="search"&&"flex flex-col gap-1",ae()))]),l(we,dt),vr(aa)}export{An as C};
1
+ import{t as ir,bo as n,bw as ur,b as cr,bp as xa,bm as J}from"./DWvCfaBg.js";import{bs as dr,ay as f,a7 as A,bf as Ca,W as l,bS as S,aD as t,bn as vr,aA as a,c9 as u,aB as _,bo as wa,bV as me,br as Vr,bj as Oa,ca as Bt,bH as O,c5 as Tr,a5 as I,bl as We,bA as T,b_ as X,bO as ue,be as Lr,b$ as Ft}from"./3SdAC2_C.js";import{i as C}from"./VTJf_qPn.js";import{g as sr,e as Ir}from"./CueOVPTy.js";import{t as $}from"./Bu3PKqut.js";import{c as W}from"./Y_tkjygB.js";import{b as Me,c as Aa,e as Ue,f as Pa,s as $e}from"./BCuI_zgX.js";import{b as Er}from"./Dn334wJv.js";import{i as Sa,f as Da,q as ka,n as Va,k as Ta}from"./BRdQpeCl.js";import{aS as et,a$ as La,av as q,H as Ia,aZ as Rr,aQ as Ea,a_ as Ra,a1 as Ma,f as qa}from"./Drf1gLyo.js";import"./CIKXOyvw.js";import{F as za,O as Ba,a as Fa,M as Ga}from"./yqEyUNVG.js";import{u as Ha,b as Mr,a as ja}from"./CdGl_2eX.js";import{c as Ka,u as Wa,s as Ua}from"./D9tVylVS.js";import"./77KTvr2w.js";import{c as Na,g as qr,b as Qa,f as Ya,e as Za,i as Ja,h as Xa}from"./Di_ao8Rc.js";import{S as $a,a as zr}from"./BVcaPXq9.js";import{S as en}from"./3Qz3qAhk.js";var tn=_("<!> <!>",1);function lr(we,r){if(new.target)return ir({component:lr,...we});dr(r,!0);let P=n(r,"value",15),ee=n(r,"onValueChange",7,et),ce=n(r,"name",7,""),te=n(r,"disabled",7,!1),d=n(r,"type",7),de=n(r,"open",15,!1),z=n(r,"onOpenChange",7,et),B=n(r,"onOpenChangeComplete",7,et),g=n(r,"loop",7,!1),F=n(r,"scrollAlignment",7,"nearest"),ve=n(r,"required",7,!1),b=n(r,"items",23,()=>[]),E=n(r,"allowDeselect",7,!0),G=n(r,"inputValue",7,""),Oe=n(r,"children",7);if(P()===void 0){const s=d()==="single"?"":[];P(s)}La.pre(()=>P(),()=>{P()===void 0&&P(d()==="single"?"":[])});const U=Na.create({type:d(),value:q(()=>P(),s=>{P(s),ee()(s)}),disabled:q(()=>te()),required:q(()=>ve()),open:q(()=>de(),s=>{de(s),z()(s)}),loop:q(()=>g()),scrollAlignment:q(()=>F()),name:q(()=>ce()),isCombobox:!0,items:q(()=>b()),allowDeselect:q(()=>E()),inputValue:q(()=>G(),s=>G(s)),onOpenChangeComplete:q(()=>B())});var qe={get value(){return P()},set value(s){P(s),a()},get onValueChange(){return ee()},set onValueChange(s=et){ee(s),a()},get name(){return ce()},set name(s=""){ce(s),a()},get disabled(){return te()},set disabled(s=!1){te(s),a()},get type(){return d()},set type(s){d(s),a()},get open(){return de()},set open(s=!1){de(s),a()},get onOpenChange(){return z()},set onOpenChange(s=et){z(s),a()},get onOpenChangeComplete(){return B()},set onOpenChangeComplete(s=et){B(s),a()},get loop(){return g()},set loop(s=!1){g(s),a()},get scrollAlignment(){return F()},set scrollAlignment(s="nearest"){F(s),a()},get required(){return ve()},set required(s=!1){ve(s),a()},get items(){return b()},set items(s=[]){b(s),a()},get allowDeselect(){return E()},set allowDeselect(s=!0){E(s),a()},get inputValue(){return G()},set inputValue(s=""){G(s),a()},get children(){return Oe()},set children(s){Oe(s),a()},$set:ur,$on:(s,ae)=>cr(r,s,ae)},Ae=tn(),Pe=f(Ae);Ia(Pe,{children:(s,ae)=>{var _e=A(),be=f(_e);$(be,()=>Oe()??Ca),l(s,_e)},$$slots:{default:!0}});var N=S(Pe,2);{var re=s=>{var ae=A(),_e=f(ae);{var be=Se=>{var Q=A(),Ne=f(Q);sr(Ne,16,()=>U.opts.value.current,De=>De,(De,rt)=>{qr(De,{get value(){return rt}})}),l(Se,Q)};C(_e,Se=>{U.opts.value.current.length&&Se(be)})}l(s,ae)},ze=u(()=>Array.isArray(U.opts.value.current)),tt=s=>{qr(s,{get value(){return U.opts.value.current},set value(ae){U.opts.value.current=ae}})};C(N,s=>{t(ze)?s(re):s(tt,-1)})}return l(we,Ae),vr(qe)}var rn=new Set(["$$slots","$$events","$$legacy","id","ref","child","defaultValue","clearOnDeselect"]),an=_("<input/>");function Gr(we,r){if(new.target)return ir({component:Gr,...we});dr(r,!0);let P=n(r,"id",23,Rr),ee=n(r,"ref",15,null),ce=n(r,"child",7),te=n(r,"defaultValue",7),d=n(r,"clearOnDeselect",7,!1),de=xa(r,rn);const z=Qa.create({id:q(()=>P()),ref:q(()=>ee(),b=>ee(b)),clearOnDeselect:q(()=>d())});te()&&(z.root.opts.inputValue.current=te());const B=u(()=>Ea(de,z.props,{value:z.root.opts.inputValue.current}));var g={get id(){return P()},set id(b=Rr()){P(b),a()},get ref(){return ee()},set ref(b=null){ee(b),a()},get child(){return ce()},set child(b){ce(b),a()},get defaultValue(){return te()},set defaultValue(b){te(b),a()},get clearOnDeselect(){return d()},set clearOnDeselect(b=!1){d(b),a()},$set:ur,$on:(b,E)=>cr(r,b,E)},F=A(),ve=f(F);return W(ve,()=>za,(b,E)=>{E(b,{get id(){return P()},get ref(){return z.opts.ref},children:(G,Oe)=>{var U=A(),qe=f(U);{var Ae=N=>{var re=A(),ze=f(re);$(ze,ce,()=>({props:t(B)})),l(N,re)},Pe=N=>{var re=an();Me(re,()=>({...t(B)}),void 0,void 0,void 0,void 0,!0),l(N,re)};C(qe,N=>{ce()?N(Ae):N(Pe,-1)})}l(G,U)},$$slots:{default:!0}})}),l(we,F),vr(g)}var nn=_("<input/>"),on=_('<span class="type-caption min-w-0 truncate font-medium text-muted-foreground"> </span>'),sn=_('<div class="ml-auto"><!></div>'),ln=_('<div class="flex min-w-0 shrink-0 items-center gap-2 border-b border-border px-3 py-2"><!> <!></div>'),Br=_('<div class="type-caption px-3 py-2 text-muted-foreground" role="status"> </div>'),un=_('<div class="flex items-center gap-2 px-3 py-2"><span class="type-caption text-muted-foreground" role="status"> </span> <!></div>'),cn=_('<div role="listbox" class="sr-only"></div>'),Fr=_("<!> <!>",1),dn=_("<span> </span> <!>",1),vn=_('<div class="type-caption px-2.5 py-1.5 font-medium text-muted-foreground"><!> <!></div>'),fn=_('<span class="first-line-icon shrink-0"><!></span>'),gn=_('<span class="type-caption max-w-1/2 shrink-0 truncate text-muted-foreground"> </span>'),pn=_('<div><!> <span class="min-w-0 flex-1 truncate"><!></span> <!> <!> <!></div>'),mn=_("<!> <div></div>",1),_n=_("<div><!> <!> <!></div>"),bn=_('<div class="shrink-0 border-t border-border bg-muted/20 px-3 py-2"><!></div>'),hn=_("<!> <!> <!> <!>",1),yn=_("<div><!></div>"),xn=_("<div><div><!></div></div>"),Cn=_('<div class="flex min-w-0 shrink-0 items-center gap-1"><div class="min-w-0 flex-1"><!></div> <div class="shrink-0"><!></div></div>'),wn=_("<!> <!>",1),On=_('<div><span class="sr-only"> </span> <!></div>');function An(we,r){const P=wa();if(new.target)return ir({component:An,...we});dr(r,!0);const ee=e=>{const o=w=>{var y=A(),V=f(y);{const H=(Ze,Le)=>{let p=()=>(Le?.()).props;var m=nn(),k=j=>Zr(j,p().onkeydown);Me(m,()=>({...p(),value:t(Yt),onkeydown:k}),void 0,void 0,void 0,void 0,!0),l(Ze,m)};let D=u(()=>g()?Wt:void 0),L=u(()=>ve()||void 0),Y=u(()=>g()?re():N()),Ge=u(()=>be()==="search"?"search":void 0),Te=u(()=>be()==="search"?Ue(ka,_e()):Ue("type-caption text-foreground placeholder:text-muted-foreground w-full min-w-0 rounded-(--radius-medium) border px-3",Ta,"focus-visible:outline-solid focus-visible:-outline-offset-2",Va(t(fr)),ve()&&"border-danger ring-1 ring-danger/25",_e()));W(V,()=>Gr,(Ze,Le)=>{Le(Ze,{get id(){return Kr},get"aria-labelledby"(){return t(Ut)},get"aria-describedby"(){return Pe()},get"aria-busy"(){return t(R)},get"aria-controls"(){return t(D)},get"aria-invalid"(){return t(L)},get placeholder(){return t(Y)},onfocus:_r,onclick:_r,oninput:Nr,onkeydown:Qr,get"data-size"(){return t(fr)},get"data-variant"(){return t(Ge)},get class(){return t(Te)},get ref(){return Q()},set ref(p){Q(p)},child:H,$$slots:{child:!0}})})}l(w,y)},i=w=>{var y=hn(),V=f(y);{var H=p=>{var m=ln(),k=I(m);{var j=se=>{var Z=on(),vt=We(Z,!0);X(()=>ue(vt,at())),l(se,Z)};C(k,se=>{at()&&se(j)})}var He=S(k,2);{var K=se=>{var Z=sn(),vt=I(Z);$(vt,nt),T(Z),l(se,Z)};C(He,se=>{nt()&&se(K)})}T(m),l(p,m)};C(V,p=>{(at()||nt())&&p(H)})}var D=S(V,2);{var L=p=>{var m=Br(),k=We(m,!0);X(j=>ue(k,j),[()=>J.ui_combobox_loadingOptions_message()]),l(p,m)},Y=p=>{var m=un(),k=I(m),j=We(k,!0),He=S(k,2);qa(He,{variant:"ghost",size:"sm",onclick:yr,onkeydown:Yr,get ref(){return t(Dt)},set ref(K){O(Dt,K,!0)},children:(K,se)=>{Lr();var Z=Ft();X(()=>ue(Z,s())),l(K,Z)},$$slots:{default:!0}}),T(m),X(()=>ue(j,tt())),l(p,m)},Ge=p=>{var m=Br(),k=We(m,!0);X(()=>ue(k,ze())),l(p,m)};C(D,p=>{t(R)?p(L):t(Fe)?p(Y,1):t(mr)||p(Ge,2)})}var Te=S(D,2);{const p=(k,j)=>{let He=()=>(j?.()).props;var K=_n();Me(K,()=>({...He(),id:ke()||fe()?void 0:Wt,role:ke()||fe()?"region":"listbox","aria-multiselectable":!ke()&&!fe()&&B()?!0:void 0,"aria-labelledby":t(Ut),"aria-busy":t(R),tabindex:"0"}));var se=I(K);Fa(se,{});var Z=S(se,2);{var vt=he=>{var ye=cn();X(()=>{$e(ye,"id",Wt),$e(ye,"aria-labelledby",t(Ut)),$e(ye,"aria-multiselectable",B()||void 0),$e(ye,"aria-busy",t(R)),$e(ye,"aria-owns",t(Wr))}),l(he,ye)};C(Z,he=>{(ke()||fe())&&he(vt)})}var fa=S(Z,2);{var ga=he=>{var ye=A(),pa=f(ye);sr(pa,19,()=>t(Lt),Jt=>Jt.key,(Jt,xe,Or)=>{var Ar=Fr(),Pr=f(Ar);{var ma=ft=>{var Rt=A(),gt=f(Rt);W(gt,()=>en,(pt,Xt)=>{Xt(pt,{decorative:!0,class:"my-1 border-t border-border"})}),l(ft,Rt)};C(Pr,ft=>{t(xe).separatorBefore&&t(Or)>0&&ft(ma)})}var _a=S(Pr,2);{const ft=(gt,pt)=>{let Xt=()=>(pt?.()).props;var Sr=mn(),Dr=f(Sr);{var ba=je=>{var x=A(),er=f(x);{var Mt=ge=>{var le=Fr(),pe=f(le);W(pe,()=>zr,(Ee,Ce)=>{Ce(Ee,{class:"sr-only",children:(Re,Ke)=>{Lr();var mt=Ft();X(()=>ue(mt,t(xe).label)),l(Re,mt)},$$slots:{default:!0}})});var Ie=S(pe,2);$(Ie,fe,()=>t(xe)),l(ge,le)},tr=ge=>{var le=vn(),pe=I(le);W(pe,()=>zr,(Ce,Re)=>{Re(Ce,{class:"inline",children:(Ke,mt)=>{var Je=dn(),qt=f(Je),rr=We(qt,!0),ar=S(qt,2);{var nr=Xe=>{var zt=A(),or=f(zt);$(or,Ct,()=>t(xe)),l(Xe,zt)};C(ar,Xe=>{Ct()&&Xe(nr)})}X(()=>ue(rr,t(xe).label)),l(Ke,Je)},$$slots:{default:!0}})});var Ie=S(pe,2);{var Ee=Ce=>{var Re=A(),Ke=f(Re);$(Ke,ke,()=>t(xe)),l(Ce,Re)};C(Ie,Ce=>{ke()&&Ce(Ee)})}T(le),l(ge,le)};C(er,ge=>{fe()?ge(Mt):ge(tr,-1)})}l(je,x)};C(Dr,je=>{t(xe).label&&je(ba)})}var $t=S(Dr,2);Me($t,()=>({...Xt()})),sr($t,21,()=>t(xe).collapsed&&(!t(ne).trim()||fe())?[]:t(xe).options,je=>je.value,(je,x)=>{const er=(ge,le)=>{let pe=()=>(le?.()).props,Ie=()=>(le?.()).selected;var Ee=pn(),Ce=v=>Jr(v,t(x),pe().onpointerup),Re=()=>Xr(t(x));Me(Ee,()=>({...pe(),onpointerup:Ce,onclick:Re,"aria-disabled":t(R)||t(x).disabled||void 0,"data-slot":"combobox-option-motion"}));var Ke=I(Ee);{var mt=v=>{var h=fn(),ie=I(h);$(ie,yt,()=>t(x)),T(h),l(v,h)};C(Ke,v=>{yt()&&v(mt)})}var Je=S(Ke,2),qt=I(Je);{var rr=v=>{var h=Ft();X(ie=>ue(h,ie),[()=>J.ui_combobox_useCustom_label({value:t(x).label})]),l(v,h)},ar=v=>{var h=A(),ie=f(h);$(ie,bt,()=>t(x)),l(v,h)},nr=v=>{var h=Ft();X(()=>ue(h,t(x).label)),l(v,h)};C(qt,v=>{t(x)===t(Qt)?v(rr):bt()?v(ar,1):v(nr,-1)})}T(Je);var Xe=S(Je,2);{var zt=v=>{var h=A(),ie=f(h);$(ie,ht,()=>t(x)),l(v,h)},or=v=>{var h=gn(),ie=We(h,!0);X(()=>ue(ie,t(x).description)),l(v,h)};C(Xe,v=>{ht()?v(zt):t(x).description&&v(or,1)})}var kr=S(Xe,2);{let v=u(()=>Ie()?"checked":"empty"),h=u(()=>Ie()?"opacity-100":"opacity-0");Ga(kr,{get state(){return t(v)},"data-slot":"combobox-item-check",get class(){return t(h)}})}var ha=S(kr,2);{var ya=v=>{var h=A(),ie=f(h);$(ie,xt,()=>t(x)),l(v,h)};C(ha,v=>{xt()&&v(ya)})}T(Ee),l(ge,Ee)};var Mt=A(),tr=f(Mt);{let ge=u(()=>t(R)||t(x).disabled||!br(t(x))),le=u(()=>Ue(ja(),Gt(),t(x).class));W(tr,()=>Xa,(pe,Ie)=>{Ie(pe,{get value(){return t(x).value},get label(){return t(x).label},get disabled(){return t(ge)},"data-menu-item":!0,get class(){return t(le)},get child(){return er},onHighlight:()=>Vt=t(x),onUnhighlight:()=>{Vt===t(x)&&(Vt=null)}})})}l(je,Mt)}),T($t),l(gt,Sr)};let Rt=u(()=>`${P}-group-${t(Or)}`);W(_a,()=>$a,(gt,pt)=>{pt(gt,{get id(){return t(Rt)},child:ft,$$slots:{child:!0}})})}l(Jt,Ar)}),l(he,ye)};C(fa,he=>{E()||he(ga)})}T(K),Er(K,he=>O(ot,he),()=>t(ot)),l(k,K)};let m=u(()=>Ue("max-h-72 overflow-y-auto overscroll-contain p-1.5",(E()||t(Lt).length===0)&&"p-0",Ht()));W(Te,()=>Ja,(k,j)=>{j(k,{get class(){return t(m)},child:p,$$slots:{child:!0}})})}var Ze=S(Te,2);{var Le=p=>{var m=bn(),k=I(m);$(k,_t),T(m),l(p,m)};C(Ze,p=>{_t()&&p(Le)})}l(w,y)},c=(w,y)=>{let V=()=>(y?.()).props;const H=u(()=>wr(V()));var D=yn();Me(D,()=>({...t(H)}));var L=I(D);i(L),T(D),Ir(D,Y=>te?.(Y)),l(w,D)},oe=(w,y)=>{let V=()=>(y?.()).props,H=()=>(y?.()).wrapperProps;const D=u(()=>wr(V()));var L=xn();Me(L,()=>({...H()}));var Y=I(L);Me(Y,()=>({...t(D)}));var Ge=I(Y);i(Ge),T(Y),Ir(Y,Te=>te?.(Te)),T(L),l(w,L)};var M=wn(),Et=f(M);{var ia=w=>{var y=Cn(),V=I(y),H=I(V);o(H),T(V);var D=S(V,2),L=I(D);$(L,Se),T(D),T(y),l(w,y)},ua=w=>{o(w)};C(Et,w=>{Se()?w(ia):w(ua,-1)})}var ca=S(Et,2);{var da=w=>{var y=A(),V=f(y);{let H=u(()=>Ue(Mr(),"w-full max-h-72",Ne()));W(V,()=>Ya,(D,L)=>{L(D,{preventScroll:!1,onInteractOutside:ra,"data-static-position":!0,get"data-surface-level"(){return Kt},get class(){return t(H)},style:"max-width: calc(100vw - var(--space-4));",get child(){return c}})})}l(w,y)},va=w=>{const y=u(()=>G()===void 0||G()==="dialog"?Hr():void 0);var V=A(),H=f(V);{let D=u(()=>G()===!1||G()==="dialog"&&!t(y)),L=u(()=>t(y)??ce?.target());W(H,()=>Ma,(Y,Ge)=>{Ge(Y,{get disabled(){return t(D)},get to(){return t(L)},children:(Te,Ze)=>{var Le=A(),p=f(Le);{let m=u(()=>t(y)?"absolute":"fixed"),k=u(()=>t(y)!==void 0),j=u(()=>Ue(Mr(),"w-(--bits-combobox-anchor-width) max-h-72",Ne()));W(p,()=>Za,(He,K)=>{K(He,{get side(){return U()},get strategy(){return t(m)},get hideWhenDetached(){return t(k)},get onInteractOutside(){return St()},sideOffset:4,get collisionPadding(){return Ba},get"data-surface-level"(){return Kt},get class(){return t(j)},style:"max-width: calc(100vw - var(--space-4));",get child(){return oe}})})}l(Te,Le)},$$slots:{default:!0}})})}l(w,V)};C(ca,w=>{Oe()?w(da):w(va,-1)})}l(e,M)},ce=Sa(),te=Da(()=>{g(!1),It(!1)});let d=n(r,"value",15),de=n(r,"options",23,()=>[]),z=n(r,"groups",23,()=>[]),B=n(r,"multiple",7,!1),g=n(r,"open",15,!1),F=n(r,"disabled",7,!1),ve=n(r,"invalid",7,!1),b=n(r,"size",7),E=n(r,"loading",7,!1),G=n(r,"portal",7),Oe=n(r,"staticPosition",7,!1),U=n(r,"side",7,"bottom"),qe=n(r,"ariaLabel",7),Ae=n(r,"ariaLabelledby",7),Pe=n(r,"ariaDescribedby",7),N=n(r,"placeholder",23,()=>J.ui_combobox_selectOption_placeholder()),re=n(r,"searchPlaceholder",23,()=>J.ui_combobox_searchOptions_placeholder()),ze=n(r,"emptyText",23,()=>J.ui_combobox_noOptions_message()),tt=n(r,"errorText",23,()=>J.ui_combobox_searchFailed_error()),s=n(r,"retryText",23,()=>J.ui_combobox_retry_label()),ae=n(r,"class",7,""),_e=n(r,"inputClass",7,""),be=n(r,"inputVariant",7,"default"),Se=n(r,"inputAction",7),Q=n(r,"inputRef",15,null),Ne=n(r,"contentClass",7,""),De=n(r,"displayValue",7),rt=n(r,"allowCustom",7,!1),at=n(r,"header",7,""),nt=n(r,"headerAction",7),_t=n(r,"footer",7),bt=n(r,"optionLabel",7),ht=n(r,"optionDescription",7),yt=n(r,"optionIcon",7),Gt=n(r,"rowClass",7,""),xt=n(r,"optionActions",7),Ct=n(r,"groupDescription",7),ke=n(r,"groupAction",7),fe=n(r,"groupHeader",7),Ht=n(r,"viewportClass",7),wt=n(r,"onsearch",7),Ot=n(r,"onquerychange",7),jt=n(r,"onsearcherror",7),At=n(r,"onchange",7),Be=n(r,"oncommit",7),Pt=n(r,"onopenchange",7),St=n(r,"oninteractoutside",7);const Hr=Ha(),Kt=Ka(Wa()+2);Ua(Kt);const jr=Ra(),fr=u(()=>b()??jr),Kr=`${P}-input`,gr=`${P}-label`,Wt=`${P}-listbox`,Ut=u(()=>Ae()||gr);let Dt=me(null),Nt=me(null),ot=me(null),ne=me(""),kt=me(""),st=me(Vr([])),Qe=me(null),lt=me(!1),Fe=me(!1);const R=u(()=>E()||t(lt));let it=me(Vr({})),Vt=null,Ve=null,Ye=0;Oa(()=>{Ye+=1});const Tt=u(()=>z().length>0?z():[{key:"options",label:"",options:de()}]),Qt=u(()=>{const e=t(ne).trim();return!rt()||!e||[...t(Tt),...t(Qe)??[]].flatMap(i=>i.options).some(i=>i.value.toLowerCase()===e.toLowerCase()||i.label.toLowerCase()===e.toLowerCase())?null:{value:e,label:e}}),ut=u(()=>{const e=t(Qe)??t(Tt);return!t(Qt)||t(R)?e:[...e,{key:"custom",label:"",options:[t(Qt)]}]}),pr=u(()=>t(ut).flatMap(e=>e.options).map(({value:e,label:o,disabled:i})=>({value:e,label:o,disabled:i}))),Lt=u(()=>t(ut).map(e=>({...e,options:e.options.filter(o=>br(o))})).filter(e=>e.keepEmpty||e.options.length>0)),mr=u(()=>t(Lt).some(e=>e.options.length>0)),Wr=u(()=>E()?void 0:t(Lt).map((e,o)=>e.collapsed&&(!t(ne).trim()||fe())?"":`${P}-group-${o}`).filter(Boolean).join(" ")||void 0),Ur=u(()=>De()!==void 0?De():(Array.isArray(d())?d():typeof d()=="string"?[d()]:[]).map(o=>t(Tt).flatMap(i=>i.options).find(i=>i.value===o)?.label??t(it)[o]??o).filter(Boolean).join(", ")),Yt=u(()=>g()?t(ne):t(Ur));Bt(()=>{const e=typeof d()=="string"?d():"";e!==t(kt)&&O(kt,e,!0)}),Bt(()=>{const e=Array.isArray(d())?d():[];(e.length!==t(st).length||e.some((o,i)=>o!==t(st)[i]))&&O(st,[...e],!0)}),Bt(()=>{const e=Array.isArray(d())?d():typeof d()=="string"?[d()]:[],o=[...t(Tt),...t(Qe)??[]].flatMap(c=>c.options),i=Tr(()=>t(it));O(it,Object.fromEntries(e.map(c=>[c,o.find(oe=>oe.value===c)?.label??i[c]??c])),!0)}),Bt(()=>{g()||Tr(ct)});function ct(){Ye+=1;const e=t(ne)!=="";O(ne,""),O(Qe,null),O(lt,!1),O(Fe,!1),e&&Ot()?.("")}function _r(){Ve=null,!F()&&(g()||(ct(),g(!0),Pt()?.(!0)))}function br(e){const o=t(ne).trim().toLowerCase();return!o||`${e.label} ${e.description??""}`.toLowerCase().includes(o)}function Nr(e){Ve=null,O(ne,e.currentTarget.value,!0),g(!0),Ot()?.(t(ne)),hr(t(ne)),a(),t(ot)&&(t(ot).scrollTop=0)}async function hr(e){const o=++Ye;if(Ve=null,O(Fe,!1),O(Qe,null),!wt()||!e.trim()){O(lt,!1);return}O(lt,!0);try{const i=await wt()(e);if(o!==Ye)return;O(Qe,i.length>0&&"options"in i[0]?i:[{key:"search-results",label:"",options:i}],!0)}catch(i){if(o!==Ye)return;O(Fe,!0),jt()?.(i,e)}finally{o===Ye&&O(lt,!1)}}function yr(){Q()?.focus(),hr(t(ne))}function Qr(e){if(!(!g()||e.isComposing)){if(t(Fe)&&e.key==="Tab"&&!e.shiftKey&&t(Dt))e.preventDefault(),t(Dt).focus();else if(e.key==="Enter"&&t(Fe))e.preventDefault(),yr();else if(e.key==="Enter"){const o=Q()?.getAttribute("aria-activedescendant"),i=o?Q()?.ownerDocument.getElementById(o):null;(t(R)||!t(mr)||!i||!t(ot)?.contains(i)||i.getAttribute("aria-disabled")==="true")&&e.preventDefault()}}}function Yr(e){e.key==="Escape"&&Q()?.focus(),e.key==="Tab"&&(Q()?.focus(),e.shiftKey?e.preventDefault():(g(!1),It(!1)))}function xr(e){return t(R)?null:g()&&!B()&&!F()&&e&&!e.disabled&&d()===e.value?e:null}function Zr(e,o){Ve=null;const i=e.key==="Enter"&&!e.isComposing&&!t(R)&&!t(Fe)?xr(Vt):null;typeof o=="function"&&o(e),i&&!g()&&Be()?.(i.value,i)}function Jr(e,o,i){if(Ve=null,t(R)){e.preventDefault();return}const c=e.defaultPrevented?null:xr(o);typeof i=="function"&&i(e),c&&(g()?e.pointerType==="touch"&&(Ve=c):Be()?.(c.value,c))}function Xr(e){const o=Ve;Ve=null,!t(R)&&o&&o.value===e.value&&!g()&&Be()?.(o.value,o)}function Cr(e){const o=Array.isArray(e)?e:[e],i=t(ut).flatMap(c=>c.options);O(it,Object.fromEntries(o.map(c=>[c,i.find(oe=>oe.value===c)?.label??t(it)[c]??c])),!0)}function $r(e){if(t(R))return;const o=t(ut).flatMap(i=>i.options).find(i=>i.value===e);Cr(e),d(e),ct(),At()?.(e,o),o&&Be()?.(e,o)}function ea(e){if(t(R))return;const o=Array.isArray(d())?d():[],i=t(ut).flatMap(c=>c.options).find(c=>o.includes(c.value)!==e.includes(c.value));Cr(e),d(e),ct(),At()?.(e),i&&Be()?.(e,i)}function It(e){e||ct(),Pt()?.(e)}const ta="[data-popover-content], [data-dialog-content], [data-alert-dialog-content]";function ra(e){const o=t(Nt)?.closest(ta);if(o&&e.target instanceof Node&&o.contains(e.target)){e.preventDefault();return}St()?.(e)}function wr(e){const{role:o,tabindex:i,"aria-multiselectable":c,...oe}=e;return oe}var aa={get value(){return d()},set value(e){d(e),a()},get options(){return de()},set options(e=[]){de(e),a()},get groups(){return z()},set groups(e=[]){z(e),a()},get multiple(){return B()},set multiple(e=!1){B(e),a()},get open(){return g()},set open(e=!1){g(e),a()},get disabled(){return F()},set disabled(e=!1){F(e),a()},get invalid(){return ve()},set invalid(e=!1){ve(e),a()},get size(){return b()},set size(e){b(e),a()},get loading(){return E()},set loading(e=!1){E(e),a()},get portal(){return G()},set portal(e){G(e),a()},get staticPosition(){return Oe()},set staticPosition(e=!1){Oe(e),a()},get side(){return U()},set side(e="bottom"){U(e),a()},get ariaLabel(){return qe()},set ariaLabel(e){qe(e),a()},get ariaLabelledby(){return Ae()},set ariaLabelledby(e){Ae(e),a()},get ariaDescribedby(){return Pe()},set ariaDescribedby(e){Pe(e),a()},get placeholder(){return N()},set placeholder(e=J.ui_combobox_selectOption_placeholder()){N(e),a()},get searchPlaceholder(){return re()},set searchPlaceholder(e=J.ui_combobox_searchOptions_placeholder()){re(e),a()},get emptyText(){return ze()},set emptyText(e=J.ui_combobox_noOptions_message()){ze(e),a()},get errorText(){return tt()},set errorText(e=J.ui_combobox_searchFailed_error()){tt(e),a()},get retryText(){return s()},set retryText(e=J.ui_combobox_retry_label()){s(e),a()},get class(){return ae()},set class(e=""){ae(e),a()},get inputClass(){return _e()},set inputClass(e=""){_e(e),a()},get inputVariant(){return be()},set inputVariant(e="default"){be(e),a()},get inputAction(){return Se()},set inputAction(e){Se(e),a()},get inputRef(){return Q()},set inputRef(e=null){Q(e),a()},get contentClass(){return Ne()},set contentClass(e=""){Ne(e),a()},get displayValue(){return De()},set displayValue(e){De(e),a()},get allowCustom(){return rt()},set allowCustom(e=!1){rt(e),a()},get header(){return at()},set header(e=""){at(e),a()},get headerAction(){return nt()},set headerAction(e){nt(e),a()},get footer(){return _t()},set footer(e){_t(e),a()},get optionLabel(){return bt()},set optionLabel(e){bt(e),a()},get optionDescription(){return ht()},set optionDescription(e){ht(e),a()},get optionIcon(){return yt()},set optionIcon(e){yt(e),a()},get rowClass(){return Gt()},set rowClass(e=""){Gt(e),a()},get optionActions(){return xt()},set optionActions(e){xt(e),a()},get groupDescription(){return Ct()},set groupDescription(e){Ct(e),a()},get groupAction(){return ke()},set groupAction(e){ke(e),a()},get groupHeader(){return fe()},set groupHeader(e){fe(e),a()},get viewportClass(){return Ht()},set viewportClass(e){Ht(e),a()},get onsearch(){return wt()},set onsearch(e){wt(e),a()},get onquerychange(){return Ot()},set onquerychange(e){Ot(e),a()},get onsearcherror(){return jt()},set onsearcherror(e){jt(e),a()},get onchange(){return At()},set onchange(e){At(e),a()},get oncommit(){return Be()},set oncommit(e){Be(e),a()},get onopenchange(){return Pt()},set onopenchange(e){Pt(e),a()},get oninteractoutside(){return St()},set oninteractoutside(e){St(e),a()},$set:ur,$on:(e,o)=>cr(r,e,o)},dt=On(),Zt=I(dt),na=We(Zt,!0),oa=S(Zt,2);{var sa=e=>{var o=A(),i=f(o);W(i,()=>lr,(c,oe)=>{oe(c,{type:"multiple",get items(){return t(pr)},get disabled(){return F()},get inputValue(){return t(Yt)},onValueChange:ea,onOpenChange:It,get value(){return t(st)},set value(M){O(st,M,!0)},get open(){return g()},set open(M){g(M)},children:(M,Et)=>{ee(M)},$$slots:{default:!0}})}),l(e,o)},la=e=>{var o=A(),i=f(o);W(i,()=>lr,(c,oe)=>{oe(c,{type:"single",allowDeselect:!1,get items(){return t(pr)},get disabled(){return F()},get inputValue(){return t(Yt)},onValueChange:$r,onOpenChange:It,get value(){return t(kt)},set value(M){O(kt,M,!0)},get open(){return g()},set open(M){g(M)},children:(M,Et)=>{ee(M)},$$slots:{default:!0}})}),l(e,o)};C(oa,e=>{B()?e(sa):e(la,-1)})}return T(dt),Er(dt,e=>O(Nt,e),()=>t(Nt)),X(e=>{Pa(dt,1,e),$e(Zt,"id",gr),ue(na,qe())},[()=>Aa(Ue("relative w-full",be()==="search"&&"flex flex-col gap-1",ae()))]),l(we,dt),vr(aa)}export{An as C};
@@ -1 +1 @@
1
- import{t as et,bo as h,bw as tt,bs as ee,bq as nt,b as ot,bm as M}from"./Dws-34a7.js";import{bs as it,bk as rt,a7 as Tt,ay as _e,aD as i,W as D,bn as at,c9 as xe,aA as v,a5 as K,bS as $,bl as Ce,bA as Y,b_ as me,bO as re,aB as te,cd as It,ca as P,bH as T,bj as Pt,bV as oe}from"./3SdAC2_C.js";import{i as Q}from"./DLCFUd4s.js";import{b as zt}from"./Dn334wJv.js";import{ensureMonacoInitialized as Ae,initializeMonaco as He,monaco as Nt}from"./BHqp2vwo.js";import{defineMonacoThemes as Ue,getActiveMonacoThemeName as ye}from"./CEEUgGO1.js";import{c as At}from"./ChTqQfQN.js";import{g as Ve,f as Vt}from"./BD9db4FR.js";import{Jx as st}from"./4g_iHoQm.js";import{f as Ge}from"./BIGqOuh0.js";import"./BPuz5cN_.js";import{F as Je,bd as Wt,bo as $t}from"./CGYPBD6G.js";import{i as Xe}from"./CL3a4Hm1.js";import{w as Ze}from"./Bqd7fdCF.js";import{dH as Dt,cB as Ot}from"./SbTG0nwQ.js";import{g as Rt}from"./Dval4sTX.js";import{c as jt}from"./DcOkWaeN.js";import{d as ie}from"./B0Z-1lwJ.js";import{g as Bt}from"./Da-Blgd9.js";import{g as B,R as Ke,U as Ye}from"./7y3Z0Q49.js";const lt=st.createSelector(s=>s.agentFollow.isFollowing),qt=st.createSelector(s=>s.agentFollow.agentColor);var Ht=te('<div class="absolute top-2 right-2 flex items-center gap-2 px-2 py-1 rounded-md z-50 svelte-440ct6"><div></div> <span class="text-xs svelte-440ct6"> </span></div>');function ct(s,a){if(new.target)return et({component:ct,...s});it(a,!0);const f=()=>ee(ae,"$isFollowing$",C),k=()=>ee(z,"$agentColor$",C),[C,N]=nt(),ae=lt(),z=qt();let L=h(a,"content",15),l=h(a,"onContentChange",7),A=h(a,"isActive",7,!1),g=null,w=null,pe="";rt(()=>(window.addEventListener("agent-follow-animation",O),()=>{window.removeEventListener("agent-follow-animation",O),R()}));function O(c){if(!A()||!f())return;const b=c.detail;if(!b||typeof b.content!="string")return;const{content:F,isAddition:S,speed:I=30}=b;R(),S?he(F,I):ve(F,I)}function R(){g&&(g.abort(),g=null),w=null}async function he(c,b){g=new AbortController;const F=g.signal,S=c.split("");w=(async()=>{for(let I=0;I<S.length&&!F.aborted;I++){pe+=S[I],L(L()+S[I]),l()(L());const V=b+(Math.random()*10-5);await new Promise(H=>setTimeout(H,V))}})(),await w}async function ve(c,b){g=new AbortController;const F=g.signal,S=L().indexOf(c);if(S===-1)return;const I=L().slice(0,S),V=L().slice(S+c.length);w=(async()=>{for(let H=c.length;H>0&&!F.aborted;H--){const Me=c.slice(0,H-1);L(I+Me+V),l()(L());const ke=b*.7+(Math.random()*5-2.5);await new Promise(Le=>setTimeout(Le,ke))}})(),await w}let se=xe(()=>w!==null),x=xe(()=>i(se)?"animate-blink":"");var j={get content(){return L()},set content(c){L(c),v()},get onContentChange(){return l()},set onContentChange(c){l(c),v()},get isActive(){return A()},set isActive(c=!1){A(c),v()},$set:tt,$on:(c,b)=>ot(a,c,b)},ne=Tt(),le=_e(ne);{var q=c=>{var b=Ht(),F=K(b),S=$(F,2),I=Ce(S,!0);Y(b),me(V=>{Ve(b,`background: ${k()?.start??""}20; border: 1px solid ${k()?.start??""}40;`),Vt(F,1,`w-2 h-2 rounded-full ${i(x)??""}`,"svelte-440ct6"),Ve(F,`background: ${k()?.start??""};`),Ve(S,`color: ${k()?.start??""};`),re(I,V)},[()=>M.editor_typingAnimation_agentTyping_label()]),D(c,b)};Q(le,c=>{i(se)&&f()&&c(q)})}D(s,ne);var E=at(j);return N(),E}function Ln(s){const a=[];for(const f of s){let k=f.newStart;for(const C of f.lines)C.startsWith("+")?(a.push({line:k,type:"added"}),k++):C.startsWith("-")||C.startsWith(" ")&&k++}return a}function Ut(s,a){return a.map(f=>{const k=Gt(f.type),C=Jt(f.type);return{range:new s.Range(f.line,1,f.line,1),options:{isWholeLine:!1,linesDecorationsClassName:`line-change-indicator line-change-${f.type}`,overviewRuler:{color:k,position:s.editor.OverviewRulerLane.Left},glyphMarginHoverMessage:{value:C}}}})}function Gt(s){switch(s){case"added":return"#22c55e";case"modified":return"#3b82f6";case"deleted":return"#ef4444";default:return"#6b7280"}}function Jt(s){switch(s){case"added":return M.editor_lineChanges_added_tooltip();case"modified":return M.editor_lineChanges_modified_tooltip();case"deleted":return M.editor_lineChanges_deleted_tooltip();default:return M.editor_lineChanges_changed_tooltip()}}const Xt=[".d.mts",".d.cts",".d.ts",".mts",".cts",".tsx",".ts",".jsx",".mjs",".cjs",".js",".json"];function dt(s){return s.startsWith("/")?s:`/${s}`}function Zt(s){return s.replace(/[^a-zA-Z0-9_-]/g,"_")}function Kt(s,a){const f=dt(s),k=f.toLowerCase(),C=`.__editor_${Zt(a)}`,N=Xt.find(L=>k.endsWith(L));if(N)return`${f.slice(0,-N.length)}${C}${f.slice(-N.length)}`;const ae=f.lastIndexOf("/"),z=f.lastIndexOf(".");return z>ae?`${f.slice(0,z)}${C}${f.slice(z)}`:`${f}${C}`}function Yt(s){return dt(s)}var Qe=te("<!> ",1),Qt=te('<div class="mt-4 flex items-center justify-center gap-2"><!> <!></div>'),en=te('<div class="content-too-large svelte-2n2z1y"><div class="text-center space-y-4 max-w-md"><div class="text-subtle"><svg class="w-16 h-16 mx-auto mb-4 opacity-50" fill="none" stroke="currentColor" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M9 12h6m-6 4h6m2 5H7a2 2 0 01-2-2V5a2 2 0 012-2h5.586a1 1 0 01.707.293l5.414 5.414a1 1 0 01.293.707V19a2 2 0 01-2 2z"></path></svg> <h3 class="text-lg font-medium mb-2"> </h3> <p class="text-sm"> </p> <!></div></div></div>'),tn=te('<div class="placeholder-overlay svelte-2n2z1y"><span class="text-subtle text-sm italic"> </span></div>'),nn=te('<!> <div class="native-scrollbars w-full h-full"></div> <!>',1),on=te('<div class="relative h-full w-full"><!></div>');function rn(s,a){if(new.target)return et({component:rn,...s});it(a,!0);const f=()=>ee(ut,"$workspaceById",z),k=()=>ee(ht,"$isFollowing$",z),C=()=>ee(I,"$isDarkTheme",z),N=()=>ee(S,"$codeFontFamilyCSS",z),ae=()=>ee(ft,"$isWorkspaceHostLocal$",z),[z,L]=nt(),l=At("CodeEditor"),A=500*1024;let g=h(a,"value",15,""),w=h(a,"language",7,"javascript"),pe=h(a,"theme",7,"light"),O=h(a,"readOnly",7,!1),R=h(a,"lineNumbers",7,!0),he=h(a,"highlightActiveLine",7,!0),ve=h(a,"diffMode",7,!1),se=h(a,"originalValue",7,""),x=h(a,"fileName",7,""),j=h(a,"lineWrapping",7,!0),ne=h(a,"jumpTo",7,void 0),le=h(a,"lineChanges",23,()=>[]),q=h(a,"workspaceId",7),E=h(a,"filePath",7),c=h(a,"placeholder",7),b=h(a,"isPanelFocused",7,!0),F=h(a,"externalContentVersion",7,0);const S=Rt(),I=jt(),V=Bt()?.workspaceId,H=typeof navigator<"u"&&navigator.platform?.startsWith("Win"),Me=typeof navigator<"u"&&(navigator.userAgentData?.platform==="macOS"||/Mac|iPhone|iPad|iPod/.test(navigator.userAgent)),ke=H?M.layout_panelTabBar_fileManagerExplorer_label():Me?M.layout_panelTabBar_fileManagerFinder_label():M.layout_panelTabBar_fileManagerGeneric_label(),Le=xe(()=>q()??V??void 0),Ee=It(q()??V??"");P(()=>{Ee.set(q()??V??"")});const ut=Dt(Ee),ft=Ot(Ee),We=Ze("externalEditors"),$e=Ze("systemFileManager");function De(){return f()}let U=oe(!1),we=oe(0);function gt(e){return e<1024?M.editor_codeEditor_fileSizeBytes_label({size:e}):e<1024*1024?M.editor_codeEditor_fileSizeKb_label({size:(e/1024).toFixed(1)}):M.editor_codeEditor_fileSizeMb_label({size:(e/(1024*1024)).toFixed(1)})}async function mt(){if(!E()){l.error("Cannot open file: missing file path");return}let e;if(E().startsWith("/"))e=E();else{const n=De(),o=n?.worktreePath||n?.repositoryPath;if(!o){l.error("Cannot open file: missing workspace path for relative file path");return}e=`${o}/${E()}`}try{await Xe("vscode:openFile",{file:e})}catch(n){l.error("Failed to open file in VS Code:",n)}}async function pt(){if(!E()){l.error("Cannot reveal file: missing file path");return}let e;if(E().startsWith("/"))e=E();else{const n=De(),o=n?.worktreePath||n?.repositoryPath;if(!o){l.error("Cannot reveal file: missing workspace path for relative file path");return}e=`${o}/${E()}`}try{await Xe("shell:showItemInFolder",{path:e})}catch(n){l.error("Failed to reveal file:",n)}}let d=oe(void 0),t=null,G=null,J=oe(!1);const ht=lt();let Fe=xe(k),Oe=oe(0);const vt=`${Date.now()}-${Math.random().toString(36).slice(2)}`;let ce=[],Re;function de(e){if(typeof e=="string")return e;if(e==null)return"";try{return JSON.stringify(e,null,2)}catch{return String(e)}}function wt(e){const n=Ye.file(Yt(e));return B.getModel(n)?Ye.file(Kt(e,vt)):n}function Se(e,n){je();const o=E()||x();return o?(G=B.createModel(e,n,wt(o)),G):(G=B.createModel(e,n),G)}function je(){G&&(G.dispose(),G=null)}function Be(){if(t){try{t.dispose()}catch{}t=null,T(J,!1)}je()}let Te=oe(!1);P(()=>{const n=de(g()).length;n<=A?i(U)&&(l.debug("Content size now acceptable, resetting contentTooLarge",{fileName:x(),size:n,limit:A}),T(U,!1),T(we,0),T(Te,!0)):i(U)||(l.warn("Content too large for Monaco editor",{fileName:x(),size:n,limit:A}),T(U,!0),T(we,n,!0),t&&Be())}),P(()=>{i(Te)&&i(d)&&!t&&!i(U)&&(T(Te,!1),(async()=>{try{const e=de(g());if(await Ae(),!i(d)||!i(d).parentNode||!document.body.contains(i(d))){l.debug("Container removed from DOM before editor reinitialization, skipping");return}if(await He(),!i(d)||!i(d).parentNode||!document.body.contains(i(d))){l.debug("Container removed from DOM before editor reinitialization, skipping");return}Ue();const n=be(w()),o=ye(C());if(!i(d)||!i(d).parentNode||!document.body.contains(i(d))){l.debug("Container removed from DOM before editor reinitialization, skipping");return}const u=Se(e,n);t=B.create(i(d),{model:u,theme:o,readOnly:O(),lineNumbers:R()?"on":"off",lineNumbersMinChars:5,minimap:{enabled:!1},automaticLayout:!0,wordWrap:j()?"on":"off",overviewRulerLanes:0,scrollBeyondLastLine:!1,fontSize:13,fontFamily:N(),fontWeight:"500",fontLigatures:!0,guides:{indentation:!1},scrollbar:{vertical:"auto",horizontal:"auto",verticalScrollbarSize:10,horizontalScrollbarSize:10}}),T(J,!0),t?.onDidChangeModelContent(()=>{g(t?.getValue()||"")}),t?.onDidChangeCursorSelection(m=>{const y=m.selection;if(!y.isEmpty()&&t?.hasTextFocus()){const r=t?.getModel()?.getValueInRange(y)||"";r&&ie("editor:selection-change",{text:r,file:x(),language:w(),source:"monaco"})}else t?.hasTextFocus()&&ie("editor:selection-change",{text:"",file:x(),language:w(),source:"monaco"})}),l.debug("Editor re-initialized after contentTooLarge was cleared")}catch(e){l.error("Failed to initialize editor after contentTooLarge cleared:",e)}})())}),P(()=>{const e=de(g()),n=F(),o=n!==i(Oe);if(t){if(t.getValue()!==e&&(!i(Fe)||o)){const m=t.getPosition();t.setValue(e),m&&t.setPosition(m)}o&&t.getValue()===e&&T(Oe,n,!0)}}),P(()=>{const e=le();if(!t||!e||e.length===0){t&&ce.length>0&&(ce=t.deltaDecorations(ce,[]));return}const n=Ut(Nt,e);ce=t.deltaDecorations(ce,n)}),P(()=>{if(!t||!i(Fe))return;const e=n=>{const o=n.detail;if(!o||typeof o.content!="string")return;const{content:u,isAddition:m,lineNumber:y,column:_}=o;if(t)if(m){const r=y&&_?{lineNumber:y,column:_}:t.getPosition();if(r){const p=new Ke(r.lineNumber,r.column,r.lineNumber,r.column);t.executeEdits("agent-typing",[{range:p,text:u,forceMoveMarkers:!0}]);const W={lineNumber:r.lineNumber,column:r.column+u.length};t.setPosition(W),t.revealPositionInCenterIfOutsideViewport(W,0)}}else{const r=y&&_?{lineNumber:y,column:_}:t.getPosition();if(r&&u.length>0){const p=new Ke(r.lineNumber,Math.max(1,r.column-u.length),r.lineNumber,r.column);t.executeEdits("agent-typing",[{range:p,text:"",forceMoveMarkers:!0}]),t.revealPositionInCenterIfOutsideViewport(r,0)}}};return window.addEventListener("agent-follow-animation",e),()=>{window.removeEventListener("agent-follow-animation",e)}}),P(()=>{const e=w();if(t&&e){const n=be(e),o=t.getModel();o&&B.setModelLanguage(o,n)}}),P(()=>{const e=j();t&&t.updateOptions({wordWrap:e?"on":"off"})}),P(()=>{const e=N();t&&t.updateOptions({fontFamily:e})}),P(()=>{const e=C();t&&B.setTheme(ye(e))});function be(e){return{js:"javascript",ts:"typescript",jsx:"javascript",tsx:"typescript",py:"python",rs:"rust",html:"html",css:"css",scss:"scss",less:"less",json:"json",md:"markdown",yaml:"yaml",yml:"yaml",xml:"xml",cpp:"cpp",c:"c",java:"java",sh:"shell",bash:"shell",zsh:"shell",sql:"sql",svelte:"svelte",vue:"html",go:"go",rb:"ruby",php:"php",swift:"swift",kt:"kotlin",scala:"scala",r:"r",lua:"lua",dockerfile:"dockerfile",toml:"ini",ini:"ini",graphql:"graphql",gql:"graphql"}[e]||e}rt(async()=>{if(!i(d))return;try{const o=de(g());if(o.length>A){l.warn("Content too large for Monaco editor",{fileName:x(),size:o.length,limit:A}),T(U,!0),T(we,o.length,!0);return}if(await Ae(),!i(d)||!i(d).parentNode||!document.body.contains(i(d))){l.debug("Container removed from DOM before editor creation, skipping");return}if(await He(),!i(d)||!i(d).parentNode||!document.body.contains(i(d))){l.debug("Container removed from DOM before editor creation, skipping");return}Ue();const u=be(w()),m=ye(C());if(!i(d)||!i(d).parentNode||!document.body.contains(i(d))){l.debug("Container removed from DOM before editor creation, skipping");return}const y=Se(o,u);t=B.create(i(d),{model:y,theme:m,readOnly:O(),lineNumbers:R()?"on":"off",lineNumbersMinChars:5,minimap:{enabled:!1},automaticLayout:!0,wordWrap:j()?"on":"off",overviewRulerLanes:0,scrollBeyondLastLine:!1,fontSize:13,fontFamily:N(),fontWeight:"500",fontLigatures:!0,guides:{indentation:!1},scrollbar:{vertical:"auto",horizontal:"auto",verticalScrollbarSize:10,horizontalScrollbarSize:10}}),T(J,!0),t?.onDidChangeModelContent(()=>{g(t?.getValue()||"")}),t?.onDidChangeCursorSelection(_=>{const r=_.selection;if(!r.isEmpty()&&t?.hasTextFocus()){const W=t?.getModel()?.getValueInRange(r)||"";W&&ie("editor:selection-change",{text:W,file:x(),language:w(),source:"monaco"})}else t?.hasTextFocus()&&ie("editor:selection-change",{text:"",file:x(),language:w(),source:"monaco"})})}catch(o){l.error("[CodeEditor] Failed to create Monaco editor:",o);try{await Ae();const u=de(g()),m=Se(u,be(w()));t=B.create(i(d),{model:m,theme:ye(C()),readOnly:O(),lineNumbers:R()?"on":"off",minimap:{enabled:!1},automaticLayout:!0,wordWrap:j()?"on":"off",fontFamily:N(),guides:{indentation:!1}}),T(J,!0),t?.onDidChangeModelContent(()=>{g(t?.getValue()||"")}),t?.onDidChangeCursorSelection(y=>{const _=y.selection;if(!_.isEmpty()&&t?.hasTextFocus()){const p=t?.getModel()?.getValueInRange(_)||"";p&&ie("editor:selection-change",{text:p,file:x(),language:w(),source:"monaco"})}else t?.hasTextFocus()&&ie("editor:selection-change",{text:"",file:x(),language:w(),source:"monaco"})})}catch(u){l.error("[CodeEditor] Failed to create fallback editor:",u)}}const e=o=>{if(t){const u=t.getScrollTop();o.detail.callback(u)}},n=o=>{o.detail.filePath&&o.detail.filePath!==x()||t&&typeof o.detail.scrollPosition=="number"&&requestAnimationFrame(()=>{t&&(t.setScrollTop(o.detail.scrollPosition),l.debug("[CodeEditor] Restored scroll position",{fileName:x(),scrollPosition:o.detail.scrollPosition}))})};window.addEventListener("file:save-scroll-position",e),window.addEventListener("file:restore-scroll-position",n),Re=()=>{window.removeEventListener("file:save-scroll-position",e),window.removeEventListener("file:restore-scroll-position",n)}});function bt(){if(t)try{return t.focus(),!0}catch(e){l.debug("[CodeEditor] Editor not ready for focus:",e)}return!1}function yt(e){if(!t||!t.hasTextFocus())return!1;const n={undo:"undo",redo:"redo",copy:"editor.action.clipboardCopyAction","select-all":"editor.action.selectAll"}[e];return t.trigger("shortcut-preferences",n,null),!0}Pt(()=>{Re?.(),Be()}),P(()=>{const e=ne(),n=i(J);if(!t||!e||!n)return;const o=Math.max(1,Math.floor(e.line??1)),u=Math.max(1,Math.floor(e.column??1)),y=t.getModel?.()?.getLineCount?.()??o,r={lineNumber:Math.min(o,y),column:u};try{t.setPosition(r),t.revealPositionInCenterIfOutsideViewport(r,0),t.focus()}catch{}}),P(()=>{if(!i(J)||!t)return;const n=()=>{t?.hasTextFocus()&&t.trigger("keyboard","editor.action.revealDefinition",{})};return window.addEventListener("editor:go-to-definition",n),()=>{window.removeEventListener("editor:go-to-definition",n)}}),P(()=>{if(!i(J)||!t)return;const n=o=>{const u=o.detail;!u?.line||!t||b()&&setTimeout(()=>{if(!t||!b())return;const m=Math.max(1,Math.floor(u.line)),_=t.getModel?.()?.getLineCount?.()??m,p={lineNumber:Math.min(m,_),column:1};try{t.focus(),t.setPosition(p),t.revealPositionInCenterIfOutsideViewport(p,0)}catch{}},100)};return window.addEventListener("workspace:go-to-line",n),()=>{window.removeEventListener("workspace:go-to-line",n)}});var _t={focus:bt,runShortcut:yt,get value(){return g()},set value(e=""){g(e),v()},get language(){return w()},set language(e="javascript"){w(e),v()},get theme(){return pe()},set theme(e="light"){pe(e),v()},get readOnly(){return O()},set readOnly(e=!1){O(e),v()},get lineNumbers(){return R()},set lineNumbers(e=!0){R(e),v()},get highlightActiveLine(){return he()},set highlightActiveLine(e=!0){he(e),v()},get diffMode(){return ve()},set diffMode(e=!1){ve(e),v()},get originalValue(){return se()},set originalValue(e=""){se(e),v()},get fileName(){return x()},set fileName(e=""){x(e),v()},get lineWrapping(){return j()},set lineWrapping(e=!0){j(e),v()},get jumpTo(){return ne()},set jumpTo(e=void 0){ne(e),v()},get lineChanges(){return le()},set lineChanges(e=[]){le(e),v()},get workspaceId(){return q()},set workspaceId(e){q(e),v()},get filePath(){return E()},set filePath(e){E(e),v()},get placeholder(){return c()},set placeholder(e){c(e),v()},get isPanelFocused(){return b()},set isPanelFocused(e=!0){b(e),v()},get externalContentVersion(){return F()},set externalContentVersion(e=0){F(e),v()},$set:tt,$on:(e,n)=>ot(a,e,n)},Ie=on(),Ct=K(Ie);{var xt=e=>{var n=en(),o=K(n),u=K(o),m=$(K(u),2),y=Ce(m,!0),_=$(m,2),r=Ce(_,!0),p=$(_,2);{var W=X=>{var ue=Qt(),qe=K(ue);{var Lt=Z=>{Ge(Z,{variant:"secondary",size:"sm",onclick:mt,children:(Pe,St)=>{var fe=Qe(),ge=_e(fe);Je(ge,{get icon(){return Wt},class:"mr-2"});var ze=$(ge);me(Ne=>re(ze,` ${Ne??""}`),[()=>M.editor_codeEditor_openInVsCode_label()]),D(Pe,fe)},$$slots:{default:!0}})};Q(qe,Z=>{We&&Z(Lt)})}var Et=$(qe,2);{var Ft=Z=>{Ge(Z,{variant:"ghost",size:"sm",onclick:pt,children:(Pe,St)=>{var fe=Qe(),ge=_e(fe);Je(ge,{get icon(){return $t},class:"mr-2"});var ze=$(ge);me(Ne=>re(ze,` ${Ne??""}`),[()=>M.layout_panelTabBar_revealIn_label({fileManager:ke})]),D(Pe,fe)},$$slots:{default:!0}})};Q(Et,Z=>{$e&&Z(Ft)})}Y(ue),D(X,ue)};Q(p,X=>{i(Le)&&E()&&ae()&&(We||$e)&&X(W)})}Y(u),Y(o),Y(n),me((X,ue)=>{re(y,X),re(r,ue)},[()=>M.editor_codeEditor_fileTooLarge_title(),()=>M.editor_codeEditor_fileTooLarge_description({size:gt(i(we))})]),D(e,n)},Mt=e=>{var n=nn(),o=_e(n);{var u=r=>{ct(r,{onContentChange:p=>g(p),isActive:!0,get content(){return g()},set content(p){g(p)}})};Q(o,r=>{i(Fe)&&r(u)})}var m=$(o,2);zt(m,r=>T(d,r),()=>i(d));var y=$(m,2);{var _=r=>{var p=tn(),W=K(p),X=Ce(W,!0);Y(p),me(()=>re(X,c())),D(r,p)};Q(y,r=>{c()&&!g()&&r(_)})}D(e,n)};Q(Ct,e=>{i(U)?e(xt):e(Mt,-1)})}Y(Ie),D(s,Ie);var kt=at(_t);return L(),kt}export{rn as C,Ln as p};
1
+ import{t as et,bo as h,bw as tt,bs as ee,bq as nt,b as ot,bm as M}from"./DWvCfaBg.js";import{bs as it,bk as rt,a7 as Tt,ay as _e,aD as i,W as D,bn as at,c9 as xe,aA as v,a5 as K,bS as $,bl as Ce,bA as Y,b_ as me,bO as re,aB as te,cd as It,ca as P,bH as T,bj as Pt,bV as oe}from"./3SdAC2_C.js";import{i as Q}from"./VTJf_qPn.js";import{b as zt}from"./Dn334wJv.js";import{ensureMonacoInitialized as Ae,initializeMonaco as He,monaco as Nt}from"./maZzJmVw.js";import{defineMonacoThemes as Ue,getActiveMonacoThemeName as ye}from"./DtQHtXEW.js";import{c as At}from"./ChTqQfQN.js";import{g as Ve,f as Vt}from"./BCuI_zgX.js";import{Jx as st}from"./CIoJPvjg.js";import{f as Ge}from"./Drf1gLyo.js";import"./CIKXOyvw.js";import{F as Je,bd as Wt,bo as $t}from"./D7yetF0v.js";import{i as Xe}from"./CL3a4Hm1.js";import{w as Ze}from"./Bqd7fdCF.js";import{dH as Dt,cB as Ot}from"./3Kr2ijlK.js";import{g as Rt}from"./BrDfJqC4.js";import{c as jt}from"./2aKRVAvL.js";import{d as ie}from"./B0Z-1lwJ.js";import{g as Bt}from"./Bf_4e4N2.js";import{g as B,R as Ke,U as Ye}from"./DX2U4Mz9.js";const lt=st.createSelector(s=>s.agentFollow.isFollowing),qt=st.createSelector(s=>s.agentFollow.agentColor);var Ht=te('<div class="absolute top-2 right-2 flex items-center gap-2 px-2 py-1 rounded-md z-50 svelte-440ct6"><div></div> <span class="text-xs svelte-440ct6"> </span></div>');function ct(s,a){if(new.target)return et({component:ct,...s});it(a,!0);const f=()=>ee(ae,"$isFollowing$",C),k=()=>ee(z,"$agentColor$",C),[C,N]=nt(),ae=lt(),z=qt();let L=h(a,"content",15),l=h(a,"onContentChange",7),A=h(a,"isActive",7,!1),g=null,w=null,pe="";rt(()=>(window.addEventListener("agent-follow-animation",O),()=>{window.removeEventListener("agent-follow-animation",O),R()}));function O(c){if(!A()||!f())return;const b=c.detail;if(!b||typeof b.content!="string")return;const{content:F,isAddition:S,speed:I=30}=b;R(),S?he(F,I):ve(F,I)}function R(){g&&(g.abort(),g=null),w=null}async function he(c,b){g=new AbortController;const F=g.signal,S=c.split("");w=(async()=>{for(let I=0;I<S.length&&!F.aborted;I++){pe+=S[I],L(L()+S[I]),l()(L());const V=b+(Math.random()*10-5);await new Promise(H=>setTimeout(H,V))}})(),await w}async function ve(c,b){g=new AbortController;const F=g.signal,S=L().indexOf(c);if(S===-1)return;const I=L().slice(0,S),V=L().slice(S+c.length);w=(async()=>{for(let H=c.length;H>0&&!F.aborted;H--){const Me=c.slice(0,H-1);L(I+Me+V),l()(L());const ke=b*.7+(Math.random()*5-2.5);await new Promise(Le=>setTimeout(Le,ke))}})(),await w}let se=xe(()=>w!==null),x=xe(()=>i(se)?"animate-blink":"");var j={get content(){return L()},set content(c){L(c),v()},get onContentChange(){return l()},set onContentChange(c){l(c),v()},get isActive(){return A()},set isActive(c=!1){A(c),v()},$set:tt,$on:(c,b)=>ot(a,c,b)},ne=Tt(),le=_e(ne);{var q=c=>{var b=Ht(),F=K(b),S=$(F,2),I=Ce(S,!0);Y(b),me(V=>{Ve(b,`background: ${k()?.start??""}20; border: 1px solid ${k()?.start??""}40;`),Vt(F,1,`w-2 h-2 rounded-full ${i(x)??""}`,"svelte-440ct6"),Ve(F,`background: ${k()?.start??""};`),Ve(S,`color: ${k()?.start??""};`),re(I,V)},[()=>M.editor_typingAnimation_agentTyping_label()]),D(c,b)};Q(le,c=>{i(se)&&f()&&c(q)})}D(s,ne);var E=at(j);return N(),E}function Ln(s){const a=[];for(const f of s){let k=f.newStart;for(const C of f.lines)C.startsWith("+")?(a.push({line:k,type:"added"}),k++):C.startsWith("-")||C.startsWith(" ")&&k++}return a}function Ut(s,a){return a.map(f=>{const k=Gt(f.type),C=Jt(f.type);return{range:new s.Range(f.line,1,f.line,1),options:{isWholeLine:!1,linesDecorationsClassName:`line-change-indicator line-change-${f.type}`,overviewRuler:{color:k,position:s.editor.OverviewRulerLane.Left},glyphMarginHoverMessage:{value:C}}}})}function Gt(s){switch(s){case"added":return"#22c55e";case"modified":return"#3b82f6";case"deleted":return"#ef4444";default:return"#6b7280"}}function Jt(s){switch(s){case"added":return M.editor_lineChanges_added_tooltip();case"modified":return M.editor_lineChanges_modified_tooltip();case"deleted":return M.editor_lineChanges_deleted_tooltip();default:return M.editor_lineChanges_changed_tooltip()}}const Xt=[".d.mts",".d.cts",".d.ts",".mts",".cts",".tsx",".ts",".jsx",".mjs",".cjs",".js",".json"];function dt(s){return s.startsWith("/")?s:`/${s}`}function Zt(s){return s.replace(/[^a-zA-Z0-9_-]/g,"_")}function Kt(s,a){const f=dt(s),k=f.toLowerCase(),C=`.__editor_${Zt(a)}`,N=Xt.find(L=>k.endsWith(L));if(N)return`${f.slice(0,-N.length)}${C}${f.slice(-N.length)}`;const ae=f.lastIndexOf("/"),z=f.lastIndexOf(".");return z>ae?`${f.slice(0,z)}${C}${f.slice(z)}`:`${f}${C}`}function Yt(s){return dt(s)}var Qe=te("<!> ",1),Qt=te('<div class="mt-4 flex items-center justify-center gap-2"><!> <!></div>'),en=te('<div class="content-too-large svelte-2n2z1y"><div class="text-center space-y-4 max-w-md"><div class="text-subtle"><svg class="w-16 h-16 mx-auto mb-4 opacity-50" fill="none" stroke="currentColor" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M9 12h6m-6 4h6m2 5H7a2 2 0 01-2-2V5a2 2 0 012-2h5.586a1 1 0 01.707.293l5.414 5.414a1 1 0 01.293.707V19a2 2 0 01-2 2z"></path></svg> <h3 class="text-lg font-medium mb-2"> </h3> <p class="text-sm"> </p> <!></div></div></div>'),tn=te('<div class="placeholder-overlay svelte-2n2z1y"><span class="text-subtle text-sm italic"> </span></div>'),nn=te('<!> <div class="native-scrollbars w-full h-full"></div> <!>',1),on=te('<div class="relative h-full w-full"><!></div>');function rn(s,a){if(new.target)return et({component:rn,...s});it(a,!0);const f=()=>ee(ut,"$workspaceById",z),k=()=>ee(ht,"$isFollowing$",z),C=()=>ee(I,"$isDarkTheme",z),N=()=>ee(S,"$codeFontFamilyCSS",z),ae=()=>ee(ft,"$isWorkspaceHostLocal$",z),[z,L]=nt(),l=At("CodeEditor"),A=500*1024;let g=h(a,"value",15,""),w=h(a,"language",7,"javascript"),pe=h(a,"theme",7,"light"),O=h(a,"readOnly",7,!1),R=h(a,"lineNumbers",7,!0),he=h(a,"highlightActiveLine",7,!0),ve=h(a,"diffMode",7,!1),se=h(a,"originalValue",7,""),x=h(a,"fileName",7,""),j=h(a,"lineWrapping",7,!0),ne=h(a,"jumpTo",7,void 0),le=h(a,"lineChanges",23,()=>[]),q=h(a,"workspaceId",7),E=h(a,"filePath",7),c=h(a,"placeholder",7),b=h(a,"isPanelFocused",7,!0),F=h(a,"externalContentVersion",7,0);const S=Rt(),I=jt(),V=Bt()?.workspaceId,H=typeof navigator<"u"&&navigator.platform?.startsWith("Win"),Me=typeof navigator<"u"&&(navigator.userAgentData?.platform==="macOS"||/Mac|iPhone|iPad|iPod/.test(navigator.userAgent)),ke=H?M.layout_panelTabBar_fileManagerExplorer_label():Me?M.layout_panelTabBar_fileManagerFinder_label():M.layout_panelTabBar_fileManagerGeneric_label(),Le=xe(()=>q()??V??void 0),Ee=It(q()??V??"");P(()=>{Ee.set(q()??V??"")});const ut=Dt(Ee),ft=Ot(Ee),We=Ze("externalEditors"),$e=Ze("systemFileManager");function De(){return f()}let U=oe(!1),we=oe(0);function gt(e){return e<1024?M.editor_codeEditor_fileSizeBytes_label({size:e}):e<1024*1024?M.editor_codeEditor_fileSizeKb_label({size:(e/1024).toFixed(1)}):M.editor_codeEditor_fileSizeMb_label({size:(e/(1024*1024)).toFixed(1)})}async function mt(){if(!E()){l.error("Cannot open file: missing file path");return}let e;if(E().startsWith("/"))e=E();else{const n=De(),o=n?.worktreePath||n?.repositoryPath;if(!o){l.error("Cannot open file: missing workspace path for relative file path");return}e=`${o}/${E()}`}try{await Xe("vscode:openFile",{file:e})}catch(n){l.error("Failed to open file in VS Code:",n)}}async function pt(){if(!E()){l.error("Cannot reveal file: missing file path");return}let e;if(E().startsWith("/"))e=E();else{const n=De(),o=n?.worktreePath||n?.repositoryPath;if(!o){l.error("Cannot reveal file: missing workspace path for relative file path");return}e=`${o}/${E()}`}try{await Xe("shell:showItemInFolder",{path:e})}catch(n){l.error("Failed to reveal file:",n)}}let d=oe(void 0),t=null,G=null,J=oe(!1);const ht=lt();let Fe=xe(k),Oe=oe(0);const vt=`${Date.now()}-${Math.random().toString(36).slice(2)}`;let ce=[],Re;function de(e){if(typeof e=="string")return e;if(e==null)return"";try{return JSON.stringify(e,null,2)}catch{return String(e)}}function wt(e){const n=Ye.file(Yt(e));return B.getModel(n)?Ye.file(Kt(e,vt)):n}function Se(e,n){je();const o=E()||x();return o?(G=B.createModel(e,n,wt(o)),G):(G=B.createModel(e,n),G)}function je(){G&&(G.dispose(),G=null)}function Be(){if(t){try{t.dispose()}catch{}t=null,T(J,!1)}je()}let Te=oe(!1);P(()=>{const n=de(g()).length;n<=A?i(U)&&(l.debug("Content size now acceptable, resetting contentTooLarge",{fileName:x(),size:n,limit:A}),T(U,!1),T(we,0),T(Te,!0)):i(U)||(l.warn("Content too large for Monaco editor",{fileName:x(),size:n,limit:A}),T(U,!0),T(we,n,!0),t&&Be())}),P(()=>{i(Te)&&i(d)&&!t&&!i(U)&&(T(Te,!1),(async()=>{try{const e=de(g());if(await Ae(),!i(d)||!i(d).parentNode||!document.body.contains(i(d))){l.debug("Container removed from DOM before editor reinitialization, skipping");return}if(await He(),!i(d)||!i(d).parentNode||!document.body.contains(i(d))){l.debug("Container removed from DOM before editor reinitialization, skipping");return}Ue();const n=be(w()),o=ye(C());if(!i(d)||!i(d).parentNode||!document.body.contains(i(d))){l.debug("Container removed from DOM before editor reinitialization, skipping");return}const u=Se(e,n);t=B.create(i(d),{model:u,theme:o,readOnly:O(),lineNumbers:R()?"on":"off",lineNumbersMinChars:5,minimap:{enabled:!1},automaticLayout:!0,wordWrap:j()?"on":"off",overviewRulerLanes:0,scrollBeyondLastLine:!1,fontSize:13,fontFamily:N(),fontWeight:"500",fontLigatures:!0,guides:{indentation:!1},scrollbar:{vertical:"auto",horizontal:"auto",verticalScrollbarSize:10,horizontalScrollbarSize:10}}),T(J,!0),t?.onDidChangeModelContent(()=>{g(t?.getValue()||"")}),t?.onDidChangeCursorSelection(m=>{const y=m.selection;if(!y.isEmpty()&&t?.hasTextFocus()){const r=t?.getModel()?.getValueInRange(y)||"";r&&ie("editor:selection-change",{text:r,file:x(),language:w(),source:"monaco"})}else t?.hasTextFocus()&&ie("editor:selection-change",{text:"",file:x(),language:w(),source:"monaco"})}),l.debug("Editor re-initialized after contentTooLarge was cleared")}catch(e){l.error("Failed to initialize editor after contentTooLarge cleared:",e)}})())}),P(()=>{const e=de(g()),n=F(),o=n!==i(Oe);if(t){if(t.getValue()!==e&&(!i(Fe)||o)){const m=t.getPosition();t.setValue(e),m&&t.setPosition(m)}o&&t.getValue()===e&&T(Oe,n,!0)}}),P(()=>{const e=le();if(!t||!e||e.length===0){t&&ce.length>0&&(ce=t.deltaDecorations(ce,[]));return}const n=Ut(Nt,e);ce=t.deltaDecorations(ce,n)}),P(()=>{if(!t||!i(Fe))return;const e=n=>{const o=n.detail;if(!o||typeof o.content!="string")return;const{content:u,isAddition:m,lineNumber:y,column:_}=o;if(t)if(m){const r=y&&_?{lineNumber:y,column:_}:t.getPosition();if(r){const p=new Ke(r.lineNumber,r.column,r.lineNumber,r.column);t.executeEdits("agent-typing",[{range:p,text:u,forceMoveMarkers:!0}]);const W={lineNumber:r.lineNumber,column:r.column+u.length};t.setPosition(W),t.revealPositionInCenterIfOutsideViewport(W,0)}}else{const r=y&&_?{lineNumber:y,column:_}:t.getPosition();if(r&&u.length>0){const p=new Ke(r.lineNumber,Math.max(1,r.column-u.length),r.lineNumber,r.column);t.executeEdits("agent-typing",[{range:p,text:"",forceMoveMarkers:!0}]),t.revealPositionInCenterIfOutsideViewport(r,0)}}};return window.addEventListener("agent-follow-animation",e),()=>{window.removeEventListener("agent-follow-animation",e)}}),P(()=>{const e=w();if(t&&e){const n=be(e),o=t.getModel();o&&B.setModelLanguage(o,n)}}),P(()=>{const e=j();t&&t.updateOptions({wordWrap:e?"on":"off"})}),P(()=>{const e=N();t&&t.updateOptions({fontFamily:e})}),P(()=>{const e=C();t&&B.setTheme(ye(e))});function be(e){return{js:"javascript",ts:"typescript",jsx:"javascript",tsx:"typescript",py:"python",rs:"rust",html:"html",css:"css",scss:"scss",less:"less",json:"json",md:"markdown",yaml:"yaml",yml:"yaml",xml:"xml",cpp:"cpp",c:"c",java:"java",sh:"shell",bash:"shell",zsh:"shell",sql:"sql",svelte:"svelte",vue:"html",go:"go",rb:"ruby",php:"php",swift:"swift",kt:"kotlin",scala:"scala",r:"r",lua:"lua",dockerfile:"dockerfile",toml:"ini",ini:"ini",graphql:"graphql",gql:"graphql"}[e]||e}rt(async()=>{if(!i(d))return;try{const o=de(g());if(o.length>A){l.warn("Content too large for Monaco editor",{fileName:x(),size:o.length,limit:A}),T(U,!0),T(we,o.length,!0);return}if(await Ae(),!i(d)||!i(d).parentNode||!document.body.contains(i(d))){l.debug("Container removed from DOM before editor creation, skipping");return}if(await He(),!i(d)||!i(d).parentNode||!document.body.contains(i(d))){l.debug("Container removed from DOM before editor creation, skipping");return}Ue();const u=be(w()),m=ye(C());if(!i(d)||!i(d).parentNode||!document.body.contains(i(d))){l.debug("Container removed from DOM before editor creation, skipping");return}const y=Se(o,u);t=B.create(i(d),{model:y,theme:m,readOnly:O(),lineNumbers:R()?"on":"off",lineNumbersMinChars:5,minimap:{enabled:!1},automaticLayout:!0,wordWrap:j()?"on":"off",overviewRulerLanes:0,scrollBeyondLastLine:!1,fontSize:13,fontFamily:N(),fontWeight:"500",fontLigatures:!0,guides:{indentation:!1},scrollbar:{vertical:"auto",horizontal:"auto",verticalScrollbarSize:10,horizontalScrollbarSize:10}}),T(J,!0),t?.onDidChangeModelContent(()=>{g(t?.getValue()||"")}),t?.onDidChangeCursorSelection(_=>{const r=_.selection;if(!r.isEmpty()&&t?.hasTextFocus()){const W=t?.getModel()?.getValueInRange(r)||"";W&&ie("editor:selection-change",{text:W,file:x(),language:w(),source:"monaco"})}else t?.hasTextFocus()&&ie("editor:selection-change",{text:"",file:x(),language:w(),source:"monaco"})})}catch(o){l.error("[CodeEditor] Failed to create Monaco editor:",o);try{await Ae();const u=de(g()),m=Se(u,be(w()));t=B.create(i(d),{model:m,theme:ye(C()),readOnly:O(),lineNumbers:R()?"on":"off",minimap:{enabled:!1},automaticLayout:!0,wordWrap:j()?"on":"off",fontFamily:N(),guides:{indentation:!1}}),T(J,!0),t?.onDidChangeModelContent(()=>{g(t?.getValue()||"")}),t?.onDidChangeCursorSelection(y=>{const _=y.selection;if(!_.isEmpty()&&t?.hasTextFocus()){const p=t?.getModel()?.getValueInRange(_)||"";p&&ie("editor:selection-change",{text:p,file:x(),language:w(),source:"monaco"})}else t?.hasTextFocus()&&ie("editor:selection-change",{text:"",file:x(),language:w(),source:"monaco"})})}catch(u){l.error("[CodeEditor] Failed to create fallback editor:",u)}}const e=o=>{if(t){const u=t.getScrollTop();o.detail.callback(u)}},n=o=>{o.detail.filePath&&o.detail.filePath!==x()||t&&typeof o.detail.scrollPosition=="number"&&requestAnimationFrame(()=>{t&&(t.setScrollTop(o.detail.scrollPosition),l.debug("[CodeEditor] Restored scroll position",{fileName:x(),scrollPosition:o.detail.scrollPosition}))})};window.addEventListener("file:save-scroll-position",e),window.addEventListener("file:restore-scroll-position",n),Re=()=>{window.removeEventListener("file:save-scroll-position",e),window.removeEventListener("file:restore-scroll-position",n)}});function bt(){if(t)try{return t.focus(),!0}catch(e){l.debug("[CodeEditor] Editor not ready for focus:",e)}return!1}function yt(e){if(!t||!t.hasTextFocus())return!1;const n={undo:"undo",redo:"redo",copy:"editor.action.clipboardCopyAction","select-all":"editor.action.selectAll"}[e];return t.trigger("shortcut-preferences",n,null),!0}Pt(()=>{Re?.(),Be()}),P(()=>{const e=ne(),n=i(J);if(!t||!e||!n)return;const o=Math.max(1,Math.floor(e.line??1)),u=Math.max(1,Math.floor(e.column??1)),y=t.getModel?.()?.getLineCount?.()??o,r={lineNumber:Math.min(o,y),column:u};try{t.setPosition(r),t.revealPositionInCenterIfOutsideViewport(r,0),t.focus()}catch{}}),P(()=>{if(!i(J)||!t)return;const n=()=>{t?.hasTextFocus()&&t.trigger("keyboard","editor.action.revealDefinition",{})};return window.addEventListener("editor:go-to-definition",n),()=>{window.removeEventListener("editor:go-to-definition",n)}}),P(()=>{if(!i(J)||!t)return;const n=o=>{const u=o.detail;!u?.line||!t||b()&&setTimeout(()=>{if(!t||!b())return;const m=Math.max(1,Math.floor(u.line)),_=t.getModel?.()?.getLineCount?.()??m,p={lineNumber:Math.min(m,_),column:1};try{t.focus(),t.setPosition(p),t.revealPositionInCenterIfOutsideViewport(p,0)}catch{}},100)};return window.addEventListener("workspace:go-to-line",n),()=>{window.removeEventListener("workspace:go-to-line",n)}});var _t={focus:bt,runShortcut:yt,get value(){return g()},set value(e=""){g(e),v()},get language(){return w()},set language(e="javascript"){w(e),v()},get theme(){return pe()},set theme(e="light"){pe(e),v()},get readOnly(){return O()},set readOnly(e=!1){O(e),v()},get lineNumbers(){return R()},set lineNumbers(e=!0){R(e),v()},get highlightActiveLine(){return he()},set highlightActiveLine(e=!0){he(e),v()},get diffMode(){return ve()},set diffMode(e=!1){ve(e),v()},get originalValue(){return se()},set originalValue(e=""){se(e),v()},get fileName(){return x()},set fileName(e=""){x(e),v()},get lineWrapping(){return j()},set lineWrapping(e=!0){j(e),v()},get jumpTo(){return ne()},set jumpTo(e=void 0){ne(e),v()},get lineChanges(){return le()},set lineChanges(e=[]){le(e),v()},get workspaceId(){return q()},set workspaceId(e){q(e),v()},get filePath(){return E()},set filePath(e){E(e),v()},get placeholder(){return c()},set placeholder(e){c(e),v()},get isPanelFocused(){return b()},set isPanelFocused(e=!0){b(e),v()},get externalContentVersion(){return F()},set externalContentVersion(e=0){F(e),v()},$set:tt,$on:(e,n)=>ot(a,e,n)},Ie=on(),Ct=K(Ie);{var xt=e=>{var n=en(),o=K(n),u=K(o),m=$(K(u),2),y=Ce(m,!0),_=$(m,2),r=Ce(_,!0),p=$(_,2);{var W=X=>{var ue=Qt(),qe=K(ue);{var Lt=Z=>{Ge(Z,{variant:"secondary",size:"sm",onclick:mt,children:(Pe,St)=>{var fe=Qe(),ge=_e(fe);Je(ge,{get icon(){return Wt},class:"mr-2"});var ze=$(ge);me(Ne=>re(ze,` ${Ne??""}`),[()=>M.editor_codeEditor_openInVsCode_label()]),D(Pe,fe)},$$slots:{default:!0}})};Q(qe,Z=>{We&&Z(Lt)})}var Et=$(qe,2);{var Ft=Z=>{Ge(Z,{variant:"ghost",size:"sm",onclick:pt,children:(Pe,St)=>{var fe=Qe(),ge=_e(fe);Je(ge,{get icon(){return $t},class:"mr-2"});var ze=$(ge);me(Ne=>re(ze,` ${Ne??""}`),[()=>M.layout_panelTabBar_revealIn_label({fileManager:ke})]),D(Pe,fe)},$$slots:{default:!0}})};Q(Et,Z=>{$e&&Z(Ft)})}Y(ue),D(X,ue)};Q(p,X=>{i(Le)&&E()&&ae()&&(We||$e)&&X(W)})}Y(u),Y(o),Y(n),me((X,ue)=>{re(y,X),re(r,ue)},[()=>M.editor_codeEditor_fileTooLarge_title(),()=>M.editor_codeEditor_fileTooLarge_description({size:gt(i(we))})]),D(e,n)},Mt=e=>{var n=nn(),o=_e(n);{var u=r=>{ct(r,{onContentChange:p=>g(p),isActive:!0,get content(){return g()},set content(p){g(p)}})};Q(o,r=>{i(Fe)&&r(u)})}var m=$(o,2);zt(m,r=>T(d,r),()=>i(d));var y=$(m,2);{var _=r=>{var p=tn(),W=K(p),X=Ce(W,!0);Y(p),me(()=>re(X,c())),D(r,p)};Q(y,r=>{c()&&!g()&&r(_)})}D(e,n)};Q(Ct,e=>{i(U)?e(xt):e(Mt,-1)})}Y(Ie),D(s,Ie);var kt=at(_t);return L(),kt}export{rn as C,Ln as p};
@@ -1 +1 @@
1
- import{bv as t,ak as c}from"./3SdAC2_C.js";import{O as o}from"./Bqd7fdCF.js";import{Jx as r}from"./4g_iHoQm.js";function u(){try{return r.state.userPreferences?.shortcutOverrides??{}}catch{return{}}}function a(e){return o(e,u())}function h(e){if(typeof r.getReadableState!="function")return t(a(e));try{return c(r.getReadableState(),s=>o(e,s.userPreferences?.shortcutOverrides??{}))}catch{return t(a(e))}}export{h as e,a as g};
1
+ import{bv as t,ak as c}from"./3SdAC2_C.js";import{O as o}from"./Bqd7fdCF.js";import{Jx as r}from"./CIoJPvjg.js";function u(){try{return r.state.userPreferences?.shortcutOverrides??{}}catch{return{}}}function a(e){return o(e,u())}function h(e){if(typeof r.getReadableState!="function")return t(a(e));try{return c(r.getReadableState(),s=>o(e,s.userPreferences?.shortcutOverrides??{}))}catch{return t(a(e))}}export{h as e,a as g};
@@ -1 +1 @@
1
- var g=Object.defineProperty;var v=(h,e,s)=>e in h?g(h,e,{enumerable:!0,configurable:!0,writable:!0,value:s}):h[e]=s;var a=(h,e,s)=>v(h,typeof e!="symbol"?e+"":e,s);import{p as c}from"./BjlMkd10.js";import{applyCustomMonacoTheme as f,revertMonacoTheme as I}from"./CEEUgGO1.js";import{d as y}from"./B0Z-1lwJ.js";import{Cq as r}from"./4g_iHoQm.js";const u="custom-vscode-theme",l="theme-preset-id",d="theme-preset-set",o=typeof window<"u",n=class n{constructor(){a(this,"currentTheme","system");a(this,"fixedDarkAppearance",o&&["dock","dock-annotation","dock-capture-editor"].includes(document.documentElement.dataset.auxiliaryWindow??""));a(this,"mediaQuery",null);a(this,"customTheme",null);a(this,"presetDarkTheme",null);a(this,"presetLightTheme",null);a(this,"appliedCSSVariableKeys",[]);a(this,"activePresetId",null);a(this,"handleSystemThemeChange",()=>{this.currentTheme==="system"&&this.applyTheme()});o&&(this.mediaQuery=window.matchMedia("(prefers-color-scheme: dark)"),this.loadTheme(),this.setupListeners())}static getInstance(){return n.instance||(n.instance=new n),n.instance}static resetInstance(){n.instance?.dispose(),n.instance=null}loadTheme(){const e=r.getItem("theme");e&&(this.currentTheme=e),this.activePresetId=r.getItem(l);const s=r.getItem(d);if(s)try{const{dark:t,light:i}=JSON.parse(s);this.presetDarkTheme=c(t),this.presetLightTheme=c(i)}catch{r.removeItem(d),this.activePresetId=null,r.removeItem(l)}if(!this.presetDarkTheme){const t=r.getItem(u);if(t)try{const i=JSON.parse(t);this.customTheme=c(i)}catch{r.removeItem(u),this.activePresetId=null,r.removeItem(l)}}this.applyTheme()}setupListeners(){this.mediaQuery&&this.mediaQuery.addEventListener("change",this.handleSystemThemeChange)}dispose(){this.mediaQuery?.removeEventListener("change",this.handleSystemThemeChange),this.mediaQuery=null}setTheme(e,s={}){if(!o)return;const{persist:t=!0}=s;this.currentTheme=e,t&&r.setItem("theme",e),this.applyTheme()}getTheme(){return this.currentTheme}setCustomTheme(e){if(!o)return;const s=c(e);this.customTheme=s,this.activePresetId=null,this.presetDarkTheme=null,this.presetLightTheme=null,r.removeItem(l),r.removeItem(d),r.setJSON(u,e),this.applyTheme()}setPresetTheme(e,s,t){o&&(this.presetDarkTheme=c(s),this.presetLightTheme=c(t),this.activePresetId=e,this.customTheme=null,r.removeItem(u),r.setItem(l,e),r.setJSON(d,{dark:s,light:t}),this.applyTheme())}clearCustomTheme(){o&&(this.customTheme=null,this.presetDarkTheme=null,this.presetLightTheme=null,this.activePresetId=null,r.removeItem(u),r.removeItem(l),r.removeItem(d),this.removeCSSVariableOverrides(),this.applyTheme())}hasCustomTheme(){return this.getActiveTheme()!==null}getCustomThemeName(){return this.getActiveTheme()?.name??null}getActivePresetId(){return this.activePresetId}resolveIsDark(){if(this.fixedDarkAppearance)return!0;const e=this.mediaQuery?.matches??!1;return this.currentTheme==="system"?e:this.currentTheme==="dark"}getActiveTheme(){return this.presetDarkTheme&&this.presetLightTheme?this.resolveIsDark()?this.presetDarkTheme:this.presetLightTheme:this.fixedDarkAppearance&&this.customTheme?.type==="light"?null:this.customTheme}applyTheme(){if(!o)return;const e=document.documentElement,s=this.mediaQuery?.matches??!1,t=this.getActiveTheme(),i=this.isDark();e.classList.remove("dark","light"),e.classList.add(i?"dark":"light"),e.style.setProperty("color-scheme",i?"dark":"light"),t?this.applyCSSVariableOverrides(t.cssVariables):this.removeCSSVariableOverrides(),i&&!s&&!t?e.setAttribute("data-theme-override","true"):e.removeAttribute("data-theme-override");const p=document.querySelector('meta[name="theme-color"]');p&&p.setAttribute("content",i?"#0a0a0a":"#ffffff"),t?f(t.monacoTheme):I(i),y("theme-changed",{theme:this.currentTheme,isDark:i,customThemeName:t?.name??null,activePresetId:this.activePresetId,terminalColors:t?.terminalColors??null})}applyCSSVariableOverrides(e){const s=document.documentElement;this.removeCSSVariableOverrides();const t=[];for(const[i,T]of Object.entries(e))s.style.setProperty(i,T),t.push(i);this.appliedCSSVariableKeys=t}removeCSSVariableOverrides(){const e=document.documentElement;for(const s of this.appliedCSSVariableKeys)e.style.removeProperty(s);this.appliedCSSVariableKeys=[]}toggleTheme(){if(!o)return;const e=["light","dark","system"],t=(e.indexOf(this.currentTheme)+1)%e.length;this.setTheme(e[t])}isDark(){return this.fixedDarkAppearance?!0:this.customTheme?this.customTheme.type==="dark":this.resolveIsDark()}};a(n,"instance",null);let m=n;const E={setTheme:(...h)=>m.getInstance().setTheme(...h),getTheme:()=>m.getInstance().getTheme(),setCustomTheme:(...h)=>m.getInstance().setCustomTheme(...h),setPresetTheme:(...h)=>m.getInstance().setPresetTheme(...h),clearCustomTheme:()=>m.getInstance().clearCustomTheme(),hasCustomTheme:()=>m.getInstance().hasCustomTheme(),getCustomThemeName:()=>m.getInstance().getCustomThemeName(),getActivePresetId:()=>m.getInstance().getActivePresetId(),toggleTheme:()=>m.getInstance().toggleTheme(),isDark:()=>m.getInstance().isDark()};export{m as T,E as t};
1
+ var g=Object.defineProperty;var v=(h,e,s)=>e in h?g(h,e,{enumerable:!0,configurable:!0,writable:!0,value:s}):h[e]=s;var a=(h,e,s)=>v(h,typeof e!="symbol"?e+"":e,s);import{p as c}from"./B3JbrKDZ.js";import{applyCustomMonacoTheme as f,revertMonacoTheme as I}from"./DtQHtXEW.js";import{d as y}from"./B0Z-1lwJ.js";import{Cq as r}from"./CIoJPvjg.js";const u="custom-vscode-theme",l="theme-preset-id",d="theme-preset-set",o=typeof window<"u",n=class n{constructor(){a(this,"currentTheme","system");a(this,"fixedDarkAppearance",o&&["dock","dock-annotation","dock-capture-editor"].includes(document.documentElement.dataset.auxiliaryWindow??""));a(this,"mediaQuery",null);a(this,"customTheme",null);a(this,"presetDarkTheme",null);a(this,"presetLightTheme",null);a(this,"appliedCSSVariableKeys",[]);a(this,"activePresetId",null);a(this,"handleSystemThemeChange",()=>{this.currentTheme==="system"&&this.applyTheme()});o&&(this.mediaQuery=window.matchMedia("(prefers-color-scheme: dark)"),this.loadTheme(),this.setupListeners())}static getInstance(){return n.instance||(n.instance=new n),n.instance}static resetInstance(){n.instance?.dispose(),n.instance=null}loadTheme(){const e=r.getItem("theme");e&&(this.currentTheme=e),this.activePresetId=r.getItem(l);const s=r.getItem(d);if(s)try{const{dark:t,light:i}=JSON.parse(s);this.presetDarkTheme=c(t),this.presetLightTheme=c(i)}catch{r.removeItem(d),this.activePresetId=null,r.removeItem(l)}if(!this.presetDarkTheme){const t=r.getItem(u);if(t)try{const i=JSON.parse(t);this.customTheme=c(i)}catch{r.removeItem(u),this.activePresetId=null,r.removeItem(l)}}this.applyTheme()}setupListeners(){this.mediaQuery&&this.mediaQuery.addEventListener("change",this.handleSystemThemeChange)}dispose(){this.mediaQuery?.removeEventListener("change",this.handleSystemThemeChange),this.mediaQuery=null}setTheme(e,s={}){if(!o)return;const{persist:t=!0}=s;this.currentTheme=e,t&&r.setItem("theme",e),this.applyTheme()}getTheme(){return this.currentTheme}setCustomTheme(e){if(!o)return;const s=c(e);this.customTheme=s,this.activePresetId=null,this.presetDarkTheme=null,this.presetLightTheme=null,r.removeItem(l),r.removeItem(d),r.setJSON(u,e),this.applyTheme()}setPresetTheme(e,s,t){o&&(this.presetDarkTheme=c(s),this.presetLightTheme=c(t),this.activePresetId=e,this.customTheme=null,r.removeItem(u),r.setItem(l,e),r.setJSON(d,{dark:s,light:t}),this.applyTheme())}clearCustomTheme(){o&&(this.customTheme=null,this.presetDarkTheme=null,this.presetLightTheme=null,this.activePresetId=null,r.removeItem(u),r.removeItem(l),r.removeItem(d),this.removeCSSVariableOverrides(),this.applyTheme())}hasCustomTheme(){return this.getActiveTheme()!==null}getCustomThemeName(){return this.getActiveTheme()?.name??null}getActivePresetId(){return this.activePresetId}resolveIsDark(){if(this.fixedDarkAppearance)return!0;const e=this.mediaQuery?.matches??!1;return this.currentTheme==="system"?e:this.currentTheme==="dark"}getActiveTheme(){return this.presetDarkTheme&&this.presetLightTheme?this.resolveIsDark()?this.presetDarkTheme:this.presetLightTheme:this.fixedDarkAppearance&&this.customTheme?.type==="light"?null:this.customTheme}applyTheme(){if(!o)return;const e=document.documentElement,s=this.mediaQuery?.matches??!1,t=this.getActiveTheme(),i=this.isDark();e.classList.remove("dark","light"),e.classList.add(i?"dark":"light"),e.style.setProperty("color-scheme",i?"dark":"light"),t?this.applyCSSVariableOverrides(t.cssVariables):this.removeCSSVariableOverrides(),i&&!s&&!t?e.setAttribute("data-theme-override","true"):e.removeAttribute("data-theme-override");const p=document.querySelector('meta[name="theme-color"]');p&&p.setAttribute("content",i?"#0a0a0a":"#ffffff"),t?f(t.monacoTheme):I(i),y("theme-changed",{theme:this.currentTheme,isDark:i,customThemeName:t?.name??null,activePresetId:this.activePresetId,terminalColors:t?.terminalColors??null})}applyCSSVariableOverrides(e){const s=document.documentElement;this.removeCSSVariableOverrides();const t=[];for(const[i,T]of Object.entries(e))s.style.setProperty(i,T),t.push(i);this.appliedCSSVariableKeys=t}removeCSSVariableOverrides(){const e=document.documentElement;for(const s of this.appliedCSSVariableKeys)e.style.removeProperty(s);this.appliedCSSVariableKeys=[]}toggleTheme(){if(!o)return;const e=["light","dark","system"],t=(e.indexOf(this.currentTheme)+1)%e.length;this.setTheme(e[t])}isDark(){return this.fixedDarkAppearance?!0:this.customTheme?this.customTheme.type==="dark":this.resolveIsDark()}};a(n,"instance",null);let m=n;const E={setTheme:(...h)=>m.getInstance().setTheme(...h),getTheme:()=>m.getInstance().getTheme(),setCustomTheme:(...h)=>m.getInstance().setCustomTheme(...h),setPresetTheme:(...h)=>m.getInstance().setPresetTheme(...h),clearCustomTheme:()=>m.getInstance().clearCustomTheme(),hasCustomTheme:()=>m.getInstance().hasCustomTheme(),getCustomThemeName:()=>m.getInstance().getCustomThemeName(),getActivePresetId:()=>m.getInstance().getActivePresetId(),toggleTheme:()=>m.getInstance().toggleTheme(),isDark:()=>m.getInstance().isDark()};export{m as T,E as t};
@@ -1,2 +1,2 @@
1
- const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["/app/immutable/chunks/pHBnQb5R.js","/app/immutable/chunks/B5aYN90J.js","/app/immutable/chunks/BdWqymET.js","/app/immutable/chunks/DJPIUVkw.js","/app/immutable/chunks/Dws-34a7.js","/app/immutable/chunks/3SdAC2_C.js","/app/immutable/chunks/4g_iHoQm.js","/app/immutable/chunks/Dms_DO28.js","/app/immutable/chunks/ChTqQfQN.js","/app/immutable/chunks/8jMQM9h0.js","/app/immutable/chunks/CIyUrgF0.js","/app/immutable/chunks/D-rRuAXZ.js","/app/immutable/chunks/DxwfiAWm.js","/app/immutable/chunks/uXuxG9cN.js","/app/immutable/chunks/Bqd7fdCF.js","/app/immutable/chunks/BPuz5cN_.js","/app/immutable/chunks/7KxcPj98.js","/app/immutable/chunks/BD9db4FR.js","/app/immutable/assets/spinner.D_TRo5Hy.css","/app/immutable/assets/button.-yaUNjRS.css","/app/immutable/chunks/BBWuirRW.js","/app/immutable/chunks/DONrLvvt.js","/app/immutable/chunks/DypB-Dwi.js","/app/immutable/chunks/tLFaYuVN.js","/app/immutable/chunks/SbTG0nwQ.js","/app/immutable/chunks/CGYPBD6G.js","/app/immutable/chunks/B5tvpTFB.js","/app/immutable/chunks/DLCFUd4s.js","/app/immutable/chunks/C-zB-6G6.js","/app/immutable/chunks/Dval4sTX.js","/app/immutable/chunks/B8HnjSSF.js","/app/immutable/chunks/B0Z-1lwJ.js","/app/immutable/chunks/De0kCZ4v.js","/app/immutable/chunks/DKwAaLwd.js","/app/immutable/chunks/Dg0Tdf_A.js"])))=>i.map(i=>d[i]);
2
- import{bm as c,_ as p}from"./Dws-34a7.js";import{m as I}from"./rXKOJqUt.js";import"./3SdAC2_C.js";import"./BD9db4FR.js";import"./D-rRuAXZ.js";import{Q as A}from"./BPuz5cN_.js";import"./ChTqQfQN.js";import"./DcOkWaeN.js";import{m as L,Jx as d,vJ as g,vL as v}from"./4g_iHoQm.js";import{a9 as R}from"./SbTG0nwQ.js";import{selectCurrentWorkspaceTabId as P}from"./DtqPBHQj.js";const F="intent://local/note/{note-id}",S="intent://local/{workspace-id}/note/{note-id}";function f(){return c.ui_linkHandler_invalidFormat_error({shortFormat:F,longFormat:S})}class u extends Error{constructor(r){super(r),this.name="NotFoundError"}}function W(e){try{const r=new URL(e.replace("intent://","http://")),t=r.hostname,n=r.pathname.replace(/^\/+/,"").split("/").filter(l=>l.length>0),a=e.replace("intent://","").split(/[?#]/)[0].split("/").slice(1);if(!t||n.length<2)return{type:"unknown",orgId:t||"",resourceId:"",valid:!1,error:f()};let o,s,i,_,w;if(a[0]==="workspace"&&(a.length===2||a.length===3&&a[2]==="")){const l=O(a[1]);if(!l)return{type:"unknown",orgId:t,resourceId:"",valid:!1,error:f()};o=l,s="workspace",i=l}else if(a[0]==="file")s="file",i=m(a.slice(1));else if(a.length>=3&&k(a[0])&&a[1]==="file")o=a[0],s="file",i=m(a.slice(2));else if(a.length===5&&a[1]==="agent"&&a[3]==="message"&&k(a[0])&&k(a[2])&&k(a[4])&&n.length===5&&n[1]==="agent"&&n[3]==="message")o=n[0],s="message",_=n[2],i=n[4];else if(n[0]==="note"||n[0]==="task")s=n[0],i=n[1];else if(n.length>=3&&(n[1]==="note"||n[1]==="task"))o=n[0],s=n[1],i=n[2];else return{type:"unknown",orgId:t,resourceId:"",valid:!1,error:f()};if(!i||i.trim().length===0)return{type:"unknown",orgId:t,resourceId:"",valid:!1,error:c.ui_linkHandler_emptyResourceId_error()};if(s==="note"||s==="task")return{type:s,orgId:t,workspaceId:o,resourceId:i,valid:!0};if(s==="file"){const l=/^#L\d+(?:-\d+|C\d+)?$/.test(r.hash)?r.hash:"",E=a.slice(o?2:1).join("/"),h=A(E+l);return i=m(h.path.split("/")),w=h.line,H(i)?{type:"file",orgId:t,workspaceId:o,resourceId:i,...w!==void 0?{line:w}:{},valid:!0}:{type:"unknown",orgId:t,workspaceId:o,resourceId:"",valid:!1,error:c.ui_linkHandler_invalidFilePath_error()}}return s==="workspace"&&o?{type:"workspace",orgId:t,workspaceId:o,resourceId:i,valid:!0}:s==="message"&&o&&_?{type:"message",orgId:t,workspaceId:o,resourceId:i,agentId:_,valid:!0}:{type:"unknown",orgId:t,workspaceId:o,resourceId:i,valid:!1,error:c.ui_linkHandler_unknownResourceType_error({type:s})}}catch(r){return{type:"unknown",orgId:"",resourceId:"",valid:!1,error:r instanceof Error?r.message:c.ui_linkHandler_parseFailed_error()}}}function m(e){return e.map(r=>decodeURIComponent(r)).join("/")}function H(e){return/^[A-Za-z]:/.test(e)?!1:e.split(/[\\/]/).every(t=>t.length>0&&t!=="."&&t!=="..")}const j=new Set([L,"new"]);function O(e){if(e===void 0||!k(e))return null;const r=decodeURIComponent(e);return j.has(r)?null:r}function k(e){let r;try{r=decodeURIComponent(e)}catch{return!1}return r.length>0&&r!=="."&&r!==".."&&!/[\\/]/.test(r)}async function T(e,r={}){if(!e.startsWith("intent://"))return!1;const t=W(e);if(!t.valid)return I.error(c.ui_linkHandler_invalidLink_title(),{description:t.error||c.ui_linkHandler_invalidLink_description()}),!0;try{switch(t.type){case"note":case"task":await N(t,r);break;case"file":await b(t,r);break;case"workspace":await C(t.resourceId);break;case"message":{const{openMessage:n}=await p(async()=>{const{openMessage:a}=await import("./pHBnQb5R.js");return{openMessage:a}},__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34]),import.meta.url);await n({workspaceId:t.workspaceId,agentId:t.agentId,messageId:t.resourceId});break}default:I.error(c.ui_linkHandler_unsupportedLink_title(),{description:c.ui_linkHandler_unsupportedLink_description({type:t.type})})}}catch(n){n instanceof u?I.error(c.ui_linkHandler_notFound_title(),{description:n.message}):I.error(c.ui_linkHandler_navigationFailed_title(),{description:n instanceof Error?n.message:c.ui_linkHandler_unknownError_label()})}return!0}function Q(e,r){return R(e,r)}function Z(){return async(e,r,t)=>{const a=t.target.closest("a");return a?.href?.startsWith("intent://")?(t.preventDefault(),await T(a.href)):!1}}async function C(e){const{appClient:r}=await p(async()=>{const{appClient:a}=await import("./DJPIUVkw.js").then(o=>o.s);return{appClient:a}},__vite__mapDeps([3,1,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,2,20,21,22,23]),import.meta.url);if(!await r.workspaces.get(e).catch(()=>null))throw new u(c.workspace_loader_notFound_title());const{openAndShowWorkspace:n}=await p(async()=>{const{openAndShowWorkspace:a}=await import("./Dg0Tdf_A.js").then(o=>o.s);return{openAndShowWorkspace:a}},__vite__mapDeps([34,7,5,6,8,9,10,11,4,12,13,14,32,33]),import.meta.url);await n(e)}async function N(e,r){const t=r.workspaceId??P.select(d.state)??void 0;if(e.workspaceId){const a=!t||e.workspaceId!==t;if(!await y(e.workspaceId,e.resourceId))throw new u(c.ui_linkHandler_noteNotFound_error({noteId:e.resourceId,workspaceId:e.workspaceId}));if(a){const{openAndShowWorkspace:s}=await p(async()=>{const{openAndShowWorkspace:i}=await import("./Dg0Tdf_A.js").then(_=>_.s);return{openAndShowWorkspace:i}},__vite__mapDeps([34,7,5,6,8,9,10,11,4,12,13,14,32,33]),import.meta.url);await s(e.workspaceId,{query:{note:e.resourceId}})}else d.dispatch(v(e.workspaceId,e.resourceId,{openInAdjacentPanel:r.openInAdjacentPanel??!1,openInNewAdjacentPanel:r.openInNewAdjacentPanel??!1,sourcePanelId:r.sourcePanelId}));return}if(!t)throw new u(c.ui_linkHandler_noSpaceOpen_error());if(!await y(t,e.resourceId))throw new u(c.ui_linkHandler_noteNotFoundCurrent_error({noteId:e.resourceId}));d.dispatch(v(t,e.resourceId,{openInAdjacentPanel:r.openInAdjacentPanel??!1,openInNewAdjacentPanel:r.openInNewAdjacentPanel??!1,sourcePanelId:r.sourcePanelId}))}async function b(e,r){const t=r.workspaceId??P.select(d.state)??void 0;if(e.workspaceId){const n=!t||e.workspaceId!==t;if(n){const{openAndShowWorkspace:a}=await p(async()=>{const{openAndShowWorkspace:o}=await import("./Dg0Tdf_A.js").then(s=>s.s);return{openAndShowWorkspace:o}},__vite__mapDeps([34,7,5,6,8,9,10,11,4,12,13,14,32,33]),import.meta.url);if(!await a(e.workspaceId))return}d.dispatch(g(e.workspaceId,e.resourceId,{filePathIsLiteral:!0,...e.line!==void 0?{line:e.line}:{},openInAdjacentPanel:n?!1:r.openInAdjacentPanel??!1,sourcePanelId:n?void 0:r.sourcePanelId}));return}if(!t)throw new u(c.ui_linkHandler_noSpaceOpen_error());d.dispatch(g(t,e.resourceId,{filePathIsLiteral:!0,...e.line!==void 0?{line:e.line}:{},openInAdjacentPanel:r.openInAdjacentPanel??!1,sourcePanelId:r.sourcePanelId}))}async function y(e,r){try{const{backendRequest:t}=await p(async()=>{const{backendRequest:o}=await import("./BPuz5cN_.js").then(s=>s.j);return{backendRequest:o}},__vite__mapDeps([15,4,5,14,10,16,13,17,11,18,19]),import.meta.url),n=await t("note.get",{workspaceId:e,noteId:r}),a=n&&typeof n=="object"&&"note"in n?n.note:n;return a!=null&&typeof a=="object"}catch{return!1}}export{u as NotFoundError,Z as createIntentLinkClickHandler,Q as generateNoteLink,T as handleIntentLink,W as parseIntentLink};
1
+ const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["/app/immutable/chunks/DcLVN86K.js","/app/immutable/chunks/B5aYN90J.js","/app/immutable/chunks/BdWqymET.js","/app/immutable/chunks/D5xlMOwU.js","/app/immutable/chunks/DWvCfaBg.js","/app/immutable/chunks/3SdAC2_C.js","/app/immutable/chunks/CIoJPvjg.js","/app/immutable/chunks/Dms_DO28.js","/app/immutable/chunks/ChTqQfQN.js","/app/immutable/chunks/DY5rw8pn.js","/app/immutable/chunks/CIyUrgF0.js","/app/immutable/chunks/Bu3PKqut.js","/app/immutable/chunks/DxwfiAWm.js","/app/immutable/chunks/uXuxG9cN.js","/app/immutable/chunks/Bqd7fdCF.js","/app/immutable/chunks/CIKXOyvw.js","/app/immutable/chunks/zFAkpaJn.js","/app/immutable/chunks/BCuI_zgX.js","/app/immutable/assets/spinner.D_TRo5Hy.css","/app/immutable/assets/button.-yaUNjRS.css","/app/immutable/chunks/BBWuirRW.js","/app/immutable/chunks/DONrLvvt.js","/app/immutable/chunks/DypB-Dwi.js","/app/immutable/chunks/CQ5BHnSj.js","/app/immutable/chunks/3Kr2ijlK.js","/app/immutable/chunks/D7yetF0v.js","/app/immutable/chunks/Y_tkjygB.js","/app/immutable/chunks/VTJf_qPn.js","/app/immutable/chunks/CueOVPTy.js","/app/immutable/chunks/BrDfJqC4.js","/app/immutable/chunks/W05hyx94.js","/app/immutable/chunks/B0Z-1lwJ.js","/app/immutable/chunks/Bb-hI5du.js","/app/immutable/chunks/DKwAaLwd.js","/app/immutable/chunks/TN7R9Ny0.js"])))=>i.map(i=>d[i]);
2
+ import{bm as c,_ as p}from"./DWvCfaBg.js";import{m as I}from"./BXHbm15d.js";import"./3SdAC2_C.js";import"./BCuI_zgX.js";import"./Bu3PKqut.js";import{Q as A}from"./CIKXOyvw.js";import"./ChTqQfQN.js";import"./2aKRVAvL.js";import{m as L,Jx as d,vJ as g,vL as v}from"./CIoJPvjg.js";import{a9 as R}from"./3Kr2ijlK.js";import{selectCurrentWorkspaceTabId as P}from"./Btst3lgy.js";const F="intent://local/note/{note-id}",S="intent://local/{workspace-id}/note/{note-id}";function f(){return c.ui_linkHandler_invalidFormat_error({shortFormat:F,longFormat:S})}class u extends Error{constructor(r){super(r),this.name="NotFoundError"}}function W(e){try{const r=new URL(e.replace("intent://","http://")),t=r.hostname,n=r.pathname.replace(/^\/+/,"").split("/").filter(l=>l.length>0),a=e.replace("intent://","").split(/[?#]/)[0].split("/").slice(1);if(!t||n.length<2)return{type:"unknown",orgId:t||"",resourceId:"",valid:!1,error:f()};let o,s,i,_,w;if(a[0]==="workspace"&&(a.length===2||a.length===3&&a[2]==="")){const l=O(a[1]);if(!l)return{type:"unknown",orgId:t,resourceId:"",valid:!1,error:f()};o=l,s="workspace",i=l}else if(a[0]==="file")s="file",i=m(a.slice(1));else if(a.length>=3&&k(a[0])&&a[1]==="file")o=a[0],s="file",i=m(a.slice(2));else if(a.length===5&&a[1]==="agent"&&a[3]==="message"&&k(a[0])&&k(a[2])&&k(a[4])&&n.length===5&&n[1]==="agent"&&n[3]==="message")o=n[0],s="message",_=n[2],i=n[4];else if(n[0]==="note"||n[0]==="task")s=n[0],i=n[1];else if(n.length>=3&&(n[1]==="note"||n[1]==="task"))o=n[0],s=n[1],i=n[2];else return{type:"unknown",orgId:t,resourceId:"",valid:!1,error:f()};if(!i||i.trim().length===0)return{type:"unknown",orgId:t,resourceId:"",valid:!1,error:c.ui_linkHandler_emptyResourceId_error()};if(s==="note"||s==="task")return{type:s,orgId:t,workspaceId:o,resourceId:i,valid:!0};if(s==="file"){const l=/^#L\d+(?:-\d+|C\d+)?$/.test(r.hash)?r.hash:"",E=a.slice(o?2:1).join("/"),h=A(E+l);return i=m(h.path.split("/")),w=h.line,H(i)?{type:"file",orgId:t,workspaceId:o,resourceId:i,...w!==void 0?{line:w}:{},valid:!0}:{type:"unknown",orgId:t,workspaceId:o,resourceId:"",valid:!1,error:c.ui_linkHandler_invalidFilePath_error()}}return s==="workspace"&&o?{type:"workspace",orgId:t,workspaceId:o,resourceId:i,valid:!0}:s==="message"&&o&&_?{type:"message",orgId:t,workspaceId:o,resourceId:i,agentId:_,valid:!0}:{type:"unknown",orgId:t,workspaceId:o,resourceId:i,valid:!1,error:c.ui_linkHandler_unknownResourceType_error({type:s})}}catch(r){return{type:"unknown",orgId:"",resourceId:"",valid:!1,error:r instanceof Error?r.message:c.ui_linkHandler_parseFailed_error()}}}function m(e){return e.map(r=>decodeURIComponent(r)).join("/")}function H(e){return/^[A-Za-z]:/.test(e)?!1:e.split(/[\\/]/).every(t=>t.length>0&&t!=="."&&t!=="..")}const j=new Set([L,"new"]);function O(e){if(e===void 0||!k(e))return null;const r=decodeURIComponent(e);return j.has(r)?null:r}function k(e){let r;try{r=decodeURIComponent(e)}catch{return!1}return r.length>0&&r!=="."&&r!==".."&&!/[\\/]/.test(r)}async function T(e,r={}){if(!e.startsWith("intent://"))return!1;const t=W(e);if(!t.valid)return I.error(c.ui_linkHandler_invalidLink_title(),{description:t.error||c.ui_linkHandler_invalidLink_description()}),!0;try{switch(t.type){case"note":case"task":await N(t,r);break;case"file":await b(t,r);break;case"workspace":await C(t.resourceId);break;case"message":{const{openMessage:n}=await p(async()=>{const{openMessage:a}=await import("./DcLVN86K.js");return{openMessage:a}},__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34]),import.meta.url);await n({workspaceId:t.workspaceId,agentId:t.agentId,messageId:t.resourceId});break}default:I.error(c.ui_linkHandler_unsupportedLink_title(),{description:c.ui_linkHandler_unsupportedLink_description({type:t.type})})}}catch(n){n instanceof u?I.error(c.ui_linkHandler_notFound_title(),{description:n.message}):I.error(c.ui_linkHandler_navigationFailed_title(),{description:n instanceof Error?n.message:c.ui_linkHandler_unknownError_label()})}return!0}function Q(e,r){return R(e,r)}function Z(){return async(e,r,t)=>{const a=t.target.closest("a");return a?.href?.startsWith("intent://")?(t.preventDefault(),await T(a.href)):!1}}async function C(e){const{appClient:r}=await p(async()=>{const{appClient:a}=await import("./D5xlMOwU.js").then(o=>o.s);return{appClient:a}},__vite__mapDeps([3,1,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,2,20,21,22,23]),import.meta.url);if(!await r.workspaces.get(e).catch(()=>null))throw new u(c.workspace_loader_notFound_title());const{openAndShowWorkspace:n}=await p(async()=>{const{openAndShowWorkspace:a}=await import("./TN7R9Ny0.js").then(o=>o.s);return{openAndShowWorkspace:a}},__vite__mapDeps([34,7,5,6,8,9,10,11,4,12,13,14,32,33]),import.meta.url);await n(e)}async function N(e,r){const t=r.workspaceId??P.select(d.state)??void 0;if(e.workspaceId){const a=!t||e.workspaceId!==t;if(!await y(e.workspaceId,e.resourceId))throw new u(c.ui_linkHandler_noteNotFound_error({noteId:e.resourceId,workspaceId:e.workspaceId}));if(a){const{openAndShowWorkspace:s}=await p(async()=>{const{openAndShowWorkspace:i}=await import("./TN7R9Ny0.js").then(_=>_.s);return{openAndShowWorkspace:i}},__vite__mapDeps([34,7,5,6,8,9,10,11,4,12,13,14,32,33]),import.meta.url);await s(e.workspaceId,{query:{note:e.resourceId}})}else d.dispatch(v(e.workspaceId,e.resourceId,{openInAdjacentPanel:r.openInAdjacentPanel??!1,openInNewAdjacentPanel:r.openInNewAdjacentPanel??!1,sourcePanelId:r.sourcePanelId}));return}if(!t)throw new u(c.ui_linkHandler_noSpaceOpen_error());if(!await y(t,e.resourceId))throw new u(c.ui_linkHandler_noteNotFoundCurrent_error({noteId:e.resourceId}));d.dispatch(v(t,e.resourceId,{openInAdjacentPanel:r.openInAdjacentPanel??!1,openInNewAdjacentPanel:r.openInNewAdjacentPanel??!1,sourcePanelId:r.sourcePanelId}))}async function b(e,r){const t=r.workspaceId??P.select(d.state)??void 0;if(e.workspaceId){const n=!t||e.workspaceId!==t;if(n){const{openAndShowWorkspace:a}=await p(async()=>{const{openAndShowWorkspace:o}=await import("./TN7R9Ny0.js").then(s=>s.s);return{openAndShowWorkspace:o}},__vite__mapDeps([34,7,5,6,8,9,10,11,4,12,13,14,32,33]),import.meta.url);if(!await a(e.workspaceId))return}d.dispatch(g(e.workspaceId,e.resourceId,{filePathIsLiteral:!0,...e.line!==void 0?{line:e.line}:{},openInAdjacentPanel:n?!1:r.openInAdjacentPanel??!1,sourcePanelId:n?void 0:r.sourcePanelId}));return}if(!t)throw new u(c.ui_linkHandler_noSpaceOpen_error());d.dispatch(g(t,e.resourceId,{filePathIsLiteral:!0,...e.line!==void 0?{line:e.line}:{},openInAdjacentPanel:r.openInAdjacentPanel??!1,sourcePanelId:r.sourcePanelId}))}async function y(e,r){try{const{backendRequest:t}=await p(async()=>{const{backendRequest:o}=await import("./CIKXOyvw.js").then(s=>s.j);return{backendRequest:o}},__vite__mapDeps([15,4,5,14,10,16,13,17,11,18,19]),import.meta.url),n=await t("note.get",{workspaceId:e,noteId:r}),a=n&&typeof n=="object"&&"note"in n?n.note:n;return a!=null&&typeof a=="object"}catch{return!1}}export{u as NotFoundError,Z as createIntentLinkClickHandler,Q as generateNoteLink,T as handleIntentLink,W as parseIntentLink};
@@ -1,3 +1,3 @@
1
- import{t as D,bo as d,bw as P,b}from"./Dws-34a7.js";import{bs as S,a7 as x,ay as A,W as C,bn as J,aA as m,aD as i,c9 as c}from"./3SdAC2_C.js";import{i as M}from"./DLCFUd4s.js";import{D as f,M as z}from"./CC-IHSah.js";import{S as B,p as N}from"./DxRojUvw.js";import{N as W}from"./DtFzaymP.js";import{Jx as $,vJ as j,br as E}from"./4g_iHoQm.js";import{h as K}from"./LI9J8Eor.js";import{a9 as O}from"./SbTG0nwQ.js";function R(l,s){if(new.target)return D({component:R,...l});S(s,!0);let o=d(s,"kind",7),t=d(s,"source",7),a=d(s,"workspaceId",7);const g=new W,p=c(()=>{if(o()==="mermaid")return null;const e=g.parseMarkdown(`\`\`\`ws-block:diagram
1
+ import{t as D,bo as d,bw as P,b}from"./DWvCfaBg.js";import{bs as S,a7 as x,ay as A,W as C,bn as J,aA as m,aD as i,c9 as c}from"./3SdAC2_C.js";import{i as M}from"./VTJf_qPn.js";import{D as f,M as z}from"./BolJpU8l.js";import{S as B,p as N}from"./DsOS7N8Z.js";import{N as W}from"./awY5HvZY.js";import{Jx as $,vJ as j,br as E}from"./CIoJPvjg.js";import{h as K}from"./BweHPPaS.js";import{a9 as O}from"./3Kr2ijlK.js";function R(l,s){if(new.target)return D({component:R,...l});S(s,!0);let o=d(s,"kind",7),t=d(s,"source",7),a=d(s,"workspaceId",7);const g=new W,p=c(()=>{if(o()==="mermaid")return null;const e=g.parseMarkdown(`\`\`\`ws-block:diagram
2
2
  ${t()}
3
3
  \`\`\``)[0],r=e?.primitive.type==="diagram"?JSON.stringify(e.primitive):t();return N(r,!0)});function k(e,r){if(!a()||!r.target)return;const n={openInAdjacentPanel:e.metaKey||e.ctrlKey,sourcePanelId:e.target?.closest("[data-panel-id]")?.getAttribute("data-panel-id")??void 0};r.type==="file"?$.dispatch(j(a(),r.target,n)):r.type==="note"&&K(O(r.target,a()),{...n,workspaceId:E(a()),event:e})}var w={get kind(){return o()},set kind(e){o(e),m()},get source(){return t()},set source(e){t(e),m()},get workspaceId(){return a()},set workspaceId(e){a(e),m()},$set:P,$on:(e,r)=>b(s,e,r)},u=x(),y=A(u);{var h=e=>{f(e,{kind:"mermaid",rendererOwnsActions:!0,children:(r,n)=>{z(r,{get code(){return t()},showExportButton:!0})},$$slots:{default:!0}})},v=e=>{f(e,{kind:"custom",children:(r,n)=>{{let I=c(()=>i(p)?.diagram??null),_=c(()=>i(p)?.error);B(r,{get diagram(){return i(I)},get source(){return t()},get sourceError(){return i(_)},onBindingClick:k})}},$$slots:{default:!0}})};M(y,e=>{o()==="mermaid"?e(h):e(v,-1)})}return C(l,u),J(w)}export{R as default};