decocms 4.364.0 → 4.364.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (347) hide show
  1. package/dist/client/assets/{AlertCircle-EniJtD8E.js → AlertCircle-CfOItn1b.js} +1 -1
  2. package/dist/client/assets/{AreaChart-DZpAPo6a.js → AreaChart-B9tk92oC.js} +1 -1
  3. package/dist/client/assets/{ArrowLeft-Clu1mSdY.js → ArrowLeft-B4kTLC80.js} +1 -1
  4. package/dist/client/assets/{ArrowRight-Cu8UuHNR.js → ArrowRight-B4GAIQKI.js} +1 -1
  5. package/dist/client/assets/{ArrowUp-C0eratGp.js → ArrowUp-Be_FwN-E.js} +1 -1
  6. package/dist/client/assets/{Check-BWpBE9uf.js → Check-_wGz2-IJ.js} +1 -1
  7. package/dist/client/assets/{CheckCircle-cinYKmPU.js → CheckCircle-BQEdmdLU.js} +1 -1
  8. package/dist/client/assets/{ChevronRight-DzRB-rdO.js → ChevronRight-DfnK-irb.js} +1 -1
  9. package/dist/client/assets/{ChevronSelectorVertical-BiIbFU31.js → ChevronSelectorVertical-DTb5009V.js} +1 -1
  10. package/dist/client/assets/{ChevronUp-DGrguvGW.js → ChevronUp-SbK1Bh_A.js} +1 -1
  11. package/dist/client/assets/{Copy01-DayLu0dF.js → Copy01-DoHw-_s5.js} +1 -1
  12. package/dist/client/assets/{CreditCard01-4OsjIT5f.js → CreditCard01-CkbbYVCy.js} +1 -1
  13. package/dist/client/assets/{Database01-2gG_9E30.js → Database01-DDqP2OWW.js} +1 -1
  14. package/dist/client/assets/{DotsVertical-CucJCL9y.js → DotsVertical-Ct2yI8vr.js} +1 -1
  15. package/dist/client/assets/{Download01-BC2rKbuh.js → Download01-IytcAces.js} +1 -1
  16. package/dist/client/assets/{ErrorBarContext-CRh7XbJc.js → ErrorBarContext-Cgip1CtP.js} +1 -1
  17. package/dist/client/assets/{Eye-dnrP5DkM.js → Eye-Ccu8gsxq.js} +1 -1
  18. package/dist/client/assets/{File02-BhckHV8N.js → File02-CODRlzC9.js} +1 -1
  19. package/dist/client/assets/{GitBranch01-BBn4dN5f.js → GitBranch01-y6_LtrpC.js} +1 -1
  20. package/dist/client/assets/{Globe01-SLAc63wC.js → Globe01-BHsBANMN.js} +1 -1
  21. package/dist/client/assets/{HardDrive-FlnOYA_8.js → HardDrive-Cr2Uhzo6.js} +1 -1
  22. package/dist/client/assets/{Image01-BrHSH-Vi.js → Image01-PUenBySa.js} +1 -1
  23. package/dist/client/assets/{Key01-CKcg8G1v.js → Key01-ugSjw0sl.js} +1 -1
  24. package/dist/client/assets/{Link01-3t9JrUgl.js → Link01-CUXePRyB.js} +1 -1
  25. package/dist/client/assets/{LinkExternal01-Cp7uxK1i.js → LinkExternal01-DLDyK_TN.js} +1 -1
  26. package/dist/client/assets/{Monitor01-BUruMK2r.js → Monitor01-J9g_ep-X.js} +1 -1
  27. package/dist/client/assets/{Package-CdfyZYxN.js → Package-Dm9TBHk7.js} +1 -1
  28. package/dist/client/assets/{Palette-CglyAOTg.js → Palette-BywMlwsu.js} +1 -1
  29. package/dist/client/assets/{Play-rnw1eV52.js → Play-HfzzXB20.js} +1 -1
  30. package/dist/client/assets/{Plus-Bxp02MWl.js → Plus-zXs3aP31.js} +1 -1
  31. package/dist/client/assets/{Printer-fz_zwxfT.js → Printer-kkmv6XzS.js} +1 -1
  32. package/dist/client/assets/{SearchLg-FC9suxna.js → SearchLg-BkMCmJSN.js} +1 -1
  33. package/dist/client/assets/{SearchMd-DRRptSJN.js → SearchMd-uhtNwnF8.js} +1 -1
  34. package/dist/client/assets/{Sector-CJIPfQ5Z.js → Sector-DNcwKKFv.js} +1 -1
  35. package/dist/client/assets/{Settings02-D2oiGU4q.js → Settings02-DPUnnUpS.js} +1 -1
  36. package/dist/client/assets/{Share07-D_kiq5Fr.js → Share07-ezwRb3nU.js} +1 -1
  37. package/dist/client/assets/{Shield01-CjyLhqlS.js → Shield01-BcXJFwaP.js} +1 -1
  38. package/dist/client/assets/{Stars01-COChWymR.js → Stars01-DdrI1AvW.js} +1 -1
  39. package/dist/client/assets/{Sun-nKOZMh9n.js → Sun-DZjMucTf.js} +1 -1
  40. package/dist/client/assets/{SwitchHorizontal01-CxlKjkIX.js → SwitchHorizontal01-Dne29Upz.js} +1 -1
  41. package/dist/client/assets/{Tool01-BnKd95Y1.js → Tool01-duhLcQNq.js} +1 -1
  42. package/dist/client/assets/{Tool02-C_xRWqQk.js → Tool02-CnClhfmX.js} +1 -1
  43. package/dist/client/assets/{Trash01-DqUm2RRh.js → Trash01-CH5l96iG.js} +1 -1
  44. package/dist/client/assets/{TrendUp01-PFzYDizC.js → TrendUp01-fYoe36da.js} +1 -1
  45. package/dist/client/assets/{Upload01-CqWnAR1-.js → Upload01-DksJHtIE.js} +1 -1
  46. package/dist/client/assets/{User01-BJoNdkjl.js → User01-DZs8rqql.js} +1 -1
  47. package/dist/client/assets/{UserSquare-CCDsU001.js → UserSquare-CXNfIfPy.js} +1 -1
  48. package/dist/client/assets/{Users01-DSQPwtP5.js → Users01-DZlg18P8.js} +1 -1
  49. package/dist/client/assets/{Users03-CRtXqa1Q.js → Users03-pPPKVW_h.js} +1 -1
  50. package/dist/client/assets/{XCircle-9Cb0khfg.js → XCircle-CoSRJnuK.js} +1 -1
  51. package/dist/client/assets/{XClose-Cw4b4Uag.js → XClose-BYsCvLXW.js} +1 -1
  52. package/dist/client/assets/{Zap-ChVc0p76.js → Zap-BLQffepl.js} +1 -1
  53. package/dist/client/assets/{ZoomOut-BXPGwF_O.js → ZoomOut-B6xnZLKD.js} +1 -1
  54. package/dist/client/assets/{access-gate-BZbNb1lq.js → access-gate-Cc7o9awR.js} +1 -1
  55. package/dist/client/assets/{add-connection-dialog-s1GRGQ63.js → add-connection-dialog-ColILHSg.js} +1 -1
  56. package/dist/client/assets/{agent-analytics-C4aHsqYV.js → agent-analytics-BuUA9_zB.js} +1 -1
  57. package/dist/client/assets/agent-app-CvjgfHdj.js +1 -0
  58. package/dist/client/assets/{agent-assets-B6lPIA_2.js → agent-assets-CHRAa4hr.js} +1 -1
  59. package/dist/client/assets/{agent-automation-Bmdy2mNK.js → agent-automation-COYuXB1l.js} +1 -1
  60. package/dist/client/assets/{agent-automations-5exIOZ--.js → agent-automations-CVa9zvpd.js} +1 -1
  61. package/dist/client/assets/{agent-connect-sources-ozaEzrP4.js → agent-connect-sources-D-qScFZM.js} +1 -1
  62. package/dist/client/assets/agent-deck-CtPxHug1.js +1 -0
  63. package/dist/client/assets/{agent-e2e-s-Nk1F2Y.js → agent-e2e-BJ7p3EFw.js} +1 -1
  64. package/dist/client/assets/agent-file-r5wJ9MHq.js +1 -0
  65. package/dist/client/assets/{agent-git-Bu3r6tWp.js → agent-git-RSuMQ7we.js} +1 -1
  66. package/dist/client/assets/{agent-hosting-CdYzW_dA.js → agent-hosting-C6HCUd84.js} +1 -1
  67. package/dist/client/assets/{agent-icon-DrlilhFJ.js → agent-icon-DlT0cyOd.js} +1 -1
  68. package/dist/client/assets/agent-library-file-CDc9dHKg.js +1 -0
  69. package/dist/client/assets/{agent-monitor-DEQ-34KF.js → agent-monitor-Yob-hhJJ.js} +1 -1
  70. package/dist/client/assets/{agent-overview-BQIF-rwN.js → agent-overview-Cmt3_HNP.js} +1 -1
  71. package/dist/client/assets/agent-settings-E30r5sKL.js +1 -0
  72. package/dist/client/assets/{agent-site-editor-DtPpWjDD.js → agent-site-editor-C9RAIEyo.js} +1 -1
  73. package/dist/client/assets/agent-site-editor-code-hlPdL0sy.js +2 -0
  74. package/dist/client/assets/{agent-site-editor-content-6zQLGSyR.js → agent-site-editor-content-5xiQM6XU.js} +2 -2
  75. package/dist/client/assets/{agent-site-editor-preview-D8mxBZIU.js → agent-site-editor-preview-CEEI7DH8.js} +3 -3
  76. package/dist/client/assets/agent-view-DclyqFK6.js +1 -0
  77. package/dist/client/assets/{agent-view-guard-nj1TYVsk.js → agent-view-guard-BYjSQEWP.js} +1 -1
  78. package/dist/client/assets/{agents-list-hiZ_XS0O.js → agents-list-D-V7lKYi.js} +1 -1
  79. package/dist/client/assets/{ai-providers-oY9ilqJZ.js → ai-providers-CnrPu6-b.js} +1 -1
  80. package/dist/client/assets/{alert-D-emvPaG.js → alert-CKcqWgEA.js} +1 -1
  81. package/dist/client/assets/{alert-dialog-BE9ltHtr.js → alert-dialog-B19dFL0f.js} +1 -1
  82. package/dist/client/assets/{api-keys-4NMR09V3.js → api-keys-B82gXphc.js} +1 -1
  83. package/dist/client/assets/api-keys-C5nyTMkG.js +1 -0
  84. package/dist/client/assets/app-editor-Ce9aJoOB.js +1 -0
  85. package/dist/client/assets/{asset-utils-CR65HphV.js → asset-utils-DCSDKdD5.js} +1 -1
  86. package/dist/client/assets/{auth-RjDDTUUT.js → auth-BRT05k6V.js} +1 -1
  87. package/dist/client/assets/{auth-catchall-qxwSZGuB.js → auth-catchall-CKtZG-ZL.js} +1 -1
  88. package/dist/client/assets/{auth-entry-ddblLMjc.js → auth-entry-B04CeC2I.js} +1 -1
  89. package/dist/client/assets/{auth-split-layout-oGs_kK_4.js → auth-split-layout-Cr7N993d.js} +1 -1
  90. package/dist/client/assets/{authenticate-and-persist-oauth-DXlrPDSv.js → authenticate-and-persist-oauth-VFbyMRtb.js} +1 -1
  91. package/dist/client/assets/{automation-list-row-XibuWgpW.js → automation-list-row-Cpi5Xmll.js} +1 -1
  92. package/dist/client/assets/{automation-runs-nZP284NC.js → automation-runs-pUP2_-kz.js} +1 -1
  93. package/dist/client/assets/automations-DsASrpQ_.js +1 -0
  94. package/dist/client/assets/{autosend-HdosN86x.js → autosend-BfRMZFUN.js} +1 -1
  95. package/dist/client/assets/{avatar-DcDvs8Zz.js → avatar-CAI2JETZ.js} +1 -1
  96. package/dist/client/assets/{badge-DJpaBl8u.js → badge-ByfZPYh0.js} +1 -1
  97. package/dist/client/assets/{block-document-LCYQj9PJ.js → block-document-DBxhUTBx.js} +1 -1
  98. package/dist/client/assets/{breadcrumb-BOAVRiAa.js → breadcrumb-CFkPvTBR.js} +1 -1
  99. package/dist/client/assets/{buckets-Ze5fok7v.js → buckets-DKSvTBD6.js} +1 -1
  100. package/dist/client/assets/{build-improve-prompt-doc-Dn9xs_5X.js → build-improve-prompt-doc-Bni1nFjn.js} +1 -1
  101. package/dist/client/assets/{bulk-category-panel-D-Hh71MB.js → bulk-category-panel-B7Aw8gAs.js} +1 -1
  102. package/dist/client/assets/{calendar-DTnssie4.js → calendar-BPRd4cON.js} +1 -1
  103. package/dist/client/assets/{capability-load-error-CJ3e1sqb.js → capability-load-error-B39q7sVS.js} +1 -1
  104. package/dist/client/assets/{cards-DTFINi5r.js → cards-C9H7r60q.js} +1 -1
  105. package/dist/client/assets/category-editor-C6NG-7y-.js +1 -0
  106. package/dist/client/assets/{chart-Jb0gHMLD.js → chart-ChK_Oq3k.js} +1 -1
  107. package/dist/client/assets/{chat-context-CXknhaDs.js → chat-context-BdJniD3E.js} +1 -1
  108. package/dist/client/assets/{checkbox-D8Ab2Vb-.js → checkbox-Cx7-cMI2.js} +1 -1
  109. package/dist/client/assets/{choose-editor-Chy2VB_F.js → choose-editor-BFMfKqGX.js} +1 -1
  110. package/dist/client/assets/{cli-auth-success-B27gos5d.js → cli-auth-success-BXUI2QIq.js} +1 -1
  111. package/dist/client/assets/{client-icons-CoIMqlIz.js → client-icons-DH8XqhqX.js} +1 -1
  112. package/dist/client/assets/{collapsible-DH_CZdwE.js → collapsible-DWXt85UZ.js} +1 -1
  113. package/dist/client/assets/{collection-detail-D8Sq0PzS.js → collection-detail-yuoxb5ei.js} +1 -1
  114. package/dist/client/assets/{collection-display-button-P_aK73Om.js → collection-display-button-CYeWeHPn.js} +1 -1
  115. package/dist/client/assets/{collection-search-CzGq8Uso.js → collection-search-DBiZveMp.js} +1 -1
  116. package/dist/client/assets/{collection-table-wrapper-ChqJqpKo.js → collection-table-wrapper-GiH-7xKS.js} +1 -1
  117. package/dist/client/assets/{collection-tabs-BLgGMB42.js → collection-tabs-BxTayoNr.js} +1 -1
  118. package/dist/client/assets/{command-palette-store-BwHku_Zt.js → command-palette-store-D4d7ysBD.js} +1 -1
  119. package/dist/client/assets/{command-B6LMVdkQ.js → command-vCLlEnld.js} +1 -1
  120. package/dist/client/assets/{commerce-onboarding-EmIMFBqV.js → commerce-onboarding-DOo_j1fY.js} +1 -1
  121. package/dist/client/assets/{companion-mcps-section-BszDkkOp.js → companion-mcps-section-RMajitXP.js} +1 -1
  122. package/dist/client/assets/{connect-CM-97gwN.js → connect-DIZq-DN2.js} +1 -1
  123. package/dist/client/assets/{connect-layout-C_MQVbrT.js → connect-layout-CcZHYYLs.js} +1 -1
  124. package/dist/client/assets/{connection-OmoYXqZk.js → connection-D3sgkgc8.js} +1 -1
  125. package/dist/client/assets/{connection-card-Cy-GdKQl.js → connection-card-BUk8IuWl.js} +1 -1
  126. package/dist/client/assets/{connection-detail-CuBiFvjK.js → connection-detail-DI7dS0mq.js} +1 -1
  127. package/dist/client/assets/{connection-form-helpers-D3hdN_Pk.js → connection-form-helpers-CjZ0gF9p.js} +1 -1
  128. package/dist/client/assets/{connections-BnO49Vti.js → connections-DtcRjsIv.js} +1 -1
  129. package/dist/client/assets/{create-organization-dialog--p2RMsV5.js → create-organization-dialog-D3-ZW85P.js} +1 -1
  130. package/dist/client/assets/{decode-html-entities-DDqE27I4.js → decode-html-entities-DI0z1GlS.js} +1 -1
  131. package/dist/client/assets/{decopilot-sse-pool-CfYFArSW.js → decopilot-sse-pool-C4pTRblZ.js} +1 -1
  132. package/dist/client/assets/{dialog-otnvxVN0.js → dialog-BAfLND_C.js} +1 -1
  133. package/dist/client/assets/{discover-BZKxvY_j.js → discover-CgETi5Ba.js} +1 -1
  134. package/dist/client/assets/{domain-settings-QORwmdcG.js → domain-settings-DGeWS67L.js} +1 -1
  135. package/dist/client/assets/{download-app-dialog-BqNRF4Sn.js → download-app-dialog-inqOoiFR.js} +1 -1
  136. package/dist/client/assets/{drawer-s7gtDrb4.js → drawer-CftCt6Vc.js} +1 -1
  137. package/dist/client/assets/{dropdown-menu-BxKUbUkE.js → dropdown-menu-DlZDenrk.js} +1 -1
  138. package/dist/client/assets/{editor-DCxsAs7o.js → editor-VCziEYAl.js} +1 -1
  139. package/dist/client/assets/{empty-state-CL4F2BS4.js → empty-state-85cr_pDj.js} +1 -1
  140. package/dist/client/assets/{empty-state-Cz1DkYZE.js → empty-state-DrLFtqMC.js} +1 -1
  141. package/dist/client/assets/{extract-connection-data-CqGCTPdZ.js → extract-connection-data-DuAiwl2M.js} +1 -1
  142. package/dist/client/assets/{file-explorer-Uvp7ogK8.js → file-explorer-Dd6bLbvS.js} +1 -1
  143. package/dist/client/assets/{file-preview-18IJQMnU.js → file-preview-B9gO9A7B.js} +1 -1
  144. package/dist/client/assets/{file-share-button-Cef5f1VZ.js → file-share-button-Zm0jPBUd.js} +1 -1
  145. package/dist/client/assets/{file-type-icon-DGllFDOf.js → file-type-icon-ChixCG5B.js} +1 -1
  146. package/dist/client/assets/{folder-icon-p8jB76CU.js → folder-icon-jWW7DiXp.js} +1 -1
  147. package/dist/client/assets/{form-KjPevg0A.js → form-B2aJ1tMr.js} +1 -1
  148. package/dist/client/assets/{general-t-IB2WC3.js → general-Dbd-M2oy.js} +1 -1
  149. package/dist/client/assets/{github-icon-D51q_6S8.js → github-icon-BHD2Mc12.js} +1 -1
  150. package/dist/client/assets/{home-Bhl8U_ph.js → home-DRVwgYU_.js} +1 -1
  151. package/dist/client/assets/{hooks-BhviOOpn.js → hooks-CrGRDkCO.js} +1 -1
  152. package/dist/client/assets/{hooks-k1OxvonE.js → hooks-D-bAuZ0C.js} +1 -1
  153. package/dist/client/assets/{index-Bwc7J041.js → index-5lUn2NYU.js} +1 -1
  154. package/dist/client/assets/{index-CRCvoACn.js → index-BFLLIz5j.js} +1 -1
  155. package/dist/client/assets/{index-m01im2kT.js → index-Bm0CRiXJ.js} +1 -1
  156. package/dist/client/assets/{index-B3yBTWEk.js → index-BodvdIMk.js} +3 -3
  157. package/dist/client/assets/{index-w1d_dmEj.js → index-CFD2Tmax.js} +1 -1
  158. package/dist/client/assets/{index-D4YJGrDI.js → index-CMW740A7.js} +3 -3
  159. package/dist/client/assets/{index-fTs6ROSj.js → index-CV73SUyV.js} +1 -1
  160. package/dist/client/assets/{index-DD-r2o4M.js → index-CenLE2Y1.js} +1 -1
  161. package/dist/client/assets/{index-C1N-CFMR.js → index-CgWFi-UY.js} +1 -1
  162. package/dist/client/assets/{index-DlQKfvnq.js → index-D7HQX0oQ.js} +1 -1
  163. package/dist/client/assets/{index-C7WIaN4y.js → index-DFPd3Z7H.js} +1 -1
  164. package/dist/client/assets/{index-DOk05MCp.js → index-DTnAWEs3.js} +1 -1
  165. package/dist/client/assets/{index-DqX9hbqM.js → index-b0vxPrwt.js} +1 -1
  166. package/dist/client/assets/{index-xVQnUsdi.js → index-o8mv6JmO.js} +1 -1
  167. package/dist/client/assets/{index-redirect-e7Kr1hOd.js → index-redirect-CAUT4Gir.js} +1 -1
  168. package/dist/client/assets/{infiniteQueryObserver-DgAoAIrN.js → infiniteQueryObserver-BXxOeKaH.js} +1 -1
  169. package/dist/client/assets/{infra-billing-B2HwpfSN.js → infra-billing-C6s3jgkP.js} +1 -1
  170. package/dist/client/assets/{input-BnbYz5_9.js → input-2i3nmZXT.js} +1 -1
  171. package/dist/client/assets/{input-DxAgQLPa.js → input-7HsiiE3O.js} +1 -1
  172. package/dist/client/assets/{input-HFOrJf5B.js → input-CyCfmV2v.js} +1 -1
  173. package/dist/client/assets/{integration-icon-BPwWRlNG.js → integration-icon-BqCQeMla.js} +1 -1
  174. package/dist/client/assets/{invite-member-dialog-vPcEYe6v.js → invite-member-dialog-l7jaUM00.js} +1 -1
  175. package/dist/client/assets/{label-CqlSWrLn.js → label-oySBL-hw.js} +1 -1
  176. package/dist/client/assets/{layout-aU1eoqDA.js → layout-C_9zPyLB.js} +1 -1
  177. package/dist/client/assets/{legacy-agents-deep-CpKjJlPs.js → legacy-agents-deep-BGj1G-G6.js} +1 -1
  178. package/dist/client/assets/{legacy-main-redirect-ZPChWdtD.js → legacy-main-redirect-BAMIoUmF.js} +1 -1
  179. package/dist/client/assets/{library-uYIcEGdr.js → library-jBDBHa3X.js} +1 -1
  180. package/dist/client/assets/{login-CfxNz6kc.js → login-jcZJlm87.js} +1 -1
  181. package/dist/client/assets/{markdown-B1038zFJ.js → markdown-CuYSLr0D.js} +1 -1
  182. package/dist/client/assets/{mcp-app-renderer-Cb8Ud-E7.js → mcp-app-renderer-CAyJEYdf.js} +1 -1
  183. package/dist/client/assets/{mcp-oauth-D6isOO_s.js → mcp-oauth-D4sc2QRH.js} +1 -1
  184. package/dist/client/assets/{members-DHLsomPg.js → members-DZnhlZB5.js} +1 -1
  185. package/dist/client/assets/{mini-report-page-iTjakIrU.js → mini-report-page-DZcKIwCW.js} +1 -1
  186. package/dist/client/assets/{monaco-editor-WNMTPDp9.js → monaco-editor-miL0A9cI.js} +1 -1
  187. package/dist/client/assets/{monitoring-stats-row-B_mR1zw-.js → monitoring-stats-row-Bkr0yo_k.js} +1 -1
  188. package/dist/client/assets/{multi-select-D54pM3d4.js → multi-select-HV-sxpT4.js} +1 -1
  189. package/dist/client/assets/{mustache-r9snVmI4.js → mustache-8iDNlOWo.js} +1 -1
  190. package/dist/client/assets/{oauth-callback-GAK1H0Is.js → oauth-callback-CdbS4grS.js} +1 -1
  191. package/dist/client/assets/{oauth-callback-ai-provider-sdaHeEFx.js → oauth-callback-ai-provider-B6UEwW8h.js} +1 -1
  192. package/dist/client/assets/{onboarding-BKPW4du6.js → onboarding-CXn2uZdK.js} +1 -1
  193. package/dist/client/assets/{optimistic-project-sidebar-views-yrtk59Mo.js → optimistic-project-sidebar-views-Crt809gH.js} +1 -1
  194. package/dist/client/assets/{org-layout-BNIg984j.js → org-layout-Bh2799KC.js} +1 -1
  195. package/dist/client/assets/{organization-choice-DvXG7tgx.js → organization-choice-Dim_EV8w.js} +1 -1
  196. package/dist/client/assets/{orgs-NTyzCYi-.js → orgs-BiHhUqle.js} +1 -1
  197. package/dist/client/assets/{page-seo-form-DAkbVQPg.js → page-seo-form-Byw6I6v1.js} +1 -1
  198. package/dist/client/assets/{pair-C08OPQNP.js → pair-BryCAS3L.js} +1 -1
  199. package/dist/client/assets/{popover-DIqZ2IKF.js → popover-BaPHFXoA.js} +1 -1
  200. package/dist/client/assets/{post-calendar-DuH_hA9y.js → post-calendar-CX_aQZ9o.js} +1 -1
  201. package/dist/client/assets/{post-editor-BAf6FqSQ.js → post-editor-Bik9xGuM.js} +1 -1
  202. package/dist/client/assets/{preview-content-B5xB74fu.js → preview-content-C25g1Qjg.js} +1 -1
  203. package/dist/client/assets/{preview-dialog-b2QyOGzU.js → preview-dialog-Bd71VPLl.js} +1 -1
  204. package/dist/client/assets/{primitives-4_D03rJK.js → primitives-C2ZKBNVE.js} +1 -1
  205. package/dist/client/assets/{profile-COT-hKKD.js → profile-Cvk7HYLO.js} +1 -1
  206. package/dist/client/assets/{project-app-view-DJ_q7UHg.js → project-app-view-BBFfxMn2.js} +1 -1
  207. package/dist/client/assets/{project-feed-DJ_jJM3E.js → project-feed-CuafBwOd.js} +1 -1
  208. package/dist/client/assets/{project-icon-Bl3bXnhv.js → project-icon-D14m61tO.js} +1 -1
  209. package/dist/client/assets/project-reports-FoQBd9tt.js +1 -0
  210. package/dist/client/assets/project-tasks-CtrmnVYd.js +1 -0
  211. package/dist/client/assets/{prompts-CI44HEcf.js → prompts-CdPbev6G.js} +1 -1
  212. package/dist/client/assets/record-editor-BeEtgfek.js +1 -0
  213. package/dist/client/assets/redirect-editor-qcgiHklQ.js +1 -0
  214. package/dist/client/assets/registry-DINMxyfR.js +2 -0
  215. package/dist/client/assets/{registry-layout-CvRfdld3.js → registry-layout-C94XAKOB.js} +1 -1
  216. package/dist/client/assets/{reports-C-eaYxW3.js → reports-CxUD1psy.js} +1 -1
  217. package/dist/client/assets/reports-DbvBqGHI.js +1 -0
  218. package/dist/client/assets/{reports-tab-qffeKlGd.js → reports-tab-BpUXLiNq.js} +2 -2
  219. package/dist/client/assets/{repositories-ao250fUH.js → repositories-cLgzNGhX.js} +1 -1
  220. package/dist/client/assets/{repository-import-picker-Bg_h8YsG.js → repository-import-picker-Bz4mO0xC.js} +1 -1
  221. package/dist/client/assets/{repository-picker-BDWGy2xY.js → repository-picker-aHa7Yens.js} +1 -1
  222. package/dist/client/assets/{require-capability-CmR_46yt.js → require-capability-CGWy1zcW.js} +1 -1
  223. package/dist/client/assets/{required-auth-layout-BEc3NUsQ.js → required-auth-layout-C8ueG7DN.js} +1 -1
  224. package/dist/client/assets/{reset-password-BlF157J6.js → reset-password-Dfhn1DHs.js} +1 -1
  225. package/dist/client/assets/{review-settings-BBciVvfB.js → review-settings-yj2xfDNH.js} +1 -1
  226. package/dist/client/assets/{rich-text-link-control-CrwbAR31.js → rich-text-link-control-D8pkIadD.js} +1 -1
  227. package/dist/client/assets/{roles-CuHUTdKb.js → roles-CtsHlJ7R.js} +1 -1
  228. package/dist/client/assets/{runnable-block-editor-2CMWc-S3.js → runnable-block-editor-DQQgPGex.js} +1 -1
  229. package/dist/client/assets/{sandbox-lifecycle-context-CXd9Um8u.js → sandbox-lifecycle-context-KgLleS3y.js} +1 -1
  230. package/dist/client/assets/{schema-BQbhQoxs.js → schema-DVRYVU-6.js} +1 -1
  231. package/dist/client/assets/{scroll-area-BgZjjLM3.js → scroll-area-DrpmDXmv.js} +1 -1
  232. package/dist/client/assets/{search-input-uXtJ6IU8.js → search-input-BEuwwr9P.js} +1 -1
  233. package/dist/client/assets/{secrets-C1mCKV1g.js → secrets-BfNyBKtt.js} +1 -1
  234. package/dist/client/assets/{sections-editor-Bv2odcBq.js → sections-editor-CyOHOz8a.js} +1 -1
  235. package/dist/client/assets/{select-Bc5UZb4n.js → select-bwhAgSkw.js} +1 -1
  236. package/dist/client/assets/{select-model-BDGEzt-Y.js → select-model-BUtG_o-5.js} +1 -1
  237. package/dist/client/assets/{seo-editor-DJw3ydvJ.js → seo-editor-liBqGoJ2.js} +1 -1
  238. package/dist/client/assets/settings-layout-8_4ivRpO.js +1 -0
  239. package/dist/client/assets/{settings-sidebar-DswZBMwm.js → settings-sidebar-D1CImlJ7.js} +1 -1
  240. package/dist/client/assets/{settings-tab-Ru2atFmZ.js → settings-tab-DfPM9bhj.js} +1 -1
  241. package/dist/client/assets/{shell-controls-DkLEUvEw.js → shell-controls-oSe12Dvv.js} +1 -1
  242. package/dist/client/assets/{shell-layout-1dFmVwYI.js → shell-layout-DfKFME9s.js} +1 -1
  243. package/dist/client/assets/{skill-preview-CGe8kUoa.js → skill-preview-e4uQz0Dy.js} +1 -1
  244. package/dist/client/assets/{skills-BGdKR-aF.js → skills-C-9wX-VV.js} +1 -1
  245. package/dist/client/assets/{sso-M-OsbEtw.js → sso-BRhlLrJf.js} +1 -1
  246. package/dist/client/assets/{store-BY4ZRY7y.js → store-BESxBvzo.js} +1 -1
  247. package/dist/client/assets/store-registry-C5Y2YACE.js +2 -0
  248. package/dist/client/assets/{switch-CJ5Ir2Zx.js → switch-B1nJbGCG.js} +1 -1
  249. package/dist/client/assets/{synced-repos-9D-CfhL7.js → synced-repos-DSIN0NR4.js} +1 -1
  250. package/dist/client/assets/{table-Di_WRNkb.js → table-y_mRJ9Zn.js} +1 -1
  251. package/dist/client/assets/{tabs-DV8akPGb.js → tabs-BUVbbLAT.js} +1 -1
  252. package/dist/client/assets/{task-board-CXsHf2Zn.js → task-board-B_FYv6yr.js} +1 -1
  253. package/dist/client/assets/{task-route-D79aS9d_.js → task-route-D8DTrzfK.js} +1 -1
  254. package/dist/client/assets/{task-status-DIr_2V94.js → task-status-Cm28QQwf.js} +1 -1
  255. package/dist/client/assets/tasks-C2bVBzhE.js +1 -0
  256. package/dist/client/assets/{tasks-CiIHA5f1.js → tasks-CIHytgaT.js} +1 -1
  257. package/dist/client/assets/{textarea-CneoU2lJ.js → textarea-2MjTWIvv.js} +1 -1
  258. package/dist/client/assets/{thread-intent-DVKldCEq.js → thread-intent-C_TUHShU.js} +1 -1
  259. package/dist/client/assets/{thread-route-CKY-dKC0.js → thread-route-BPX5b65a.js} +1 -1
  260. package/dist/client/assets/{thread-sheet-body-CcUGPZXB.js → thread-sheet-body-hrROtD20.js} +1 -1
  261. package/dist/client/assets/{toggle-group-9HQCpj-q.js → toggle-group-yY_Yhls6.js} +1 -1
  262. package/dist/client/assets/{tool-namespace-BVMQcKlk.js → tool-namespace-CCb8MkTr.js} +1 -1
  263. package/dist/client/assets/{toolbar-D0oe2g2b.js → toolbar-DK-dWmgo.js} +1 -1
  264. package/dist/client/assets/{toolbar-icon-button-EOE8J-Ai.js → toolbar-icon-button-D7IEoYBH.js} +1 -1
  265. package/dist/client/assets/{track-BzMi8kcZ.js → track-CzfYfVMq.js} +1 -1
  266. package/dist/client/assets/{types-Csu6Ims7.js → types-CJQ5rOJz.js} +1 -1
  267. package/dist/client/assets/{usage-stats-BNse37Wk.js → usage-stats-Cp4Mqdjr.js} +1 -1
  268. package/dist/client/assets/{use-ai-providers-qnkcjapR.js → use-ai-providers-BHw3Z_he.js} +1 -1
  269. package/dist/client/assets/{use-automations-CYOC_eS5.js → use-automations-B_2Eci9k.js} +1 -1
  270. package/dist/client/assets/{use-autosave-CCprSQ13.js → use-autosave-CGgcTeeH.js} +1 -1
  271. package/dist/client/assets/{use-commerce-diagnostic-mdvL2BW-.js → use-commerce-diagnostic-BQRYyoWw.js} +1 -1
  272. package/dist/client/assets/{use-connect-companion-2fL060lG.js → use-connect-companion-0NSfsYdR.js} +1 -1
  273. package/dist/client/assets/{use-connection-DCLPda2h.js → use-connection-B0HreEyO.js} +1 -1
  274. package/dist/client/assets/{use-copy-14DzRp8J.js → use-copy-Cc2PzrxF.js} +1 -1
  275. package/dist/client/assets/{use-create-virtual-mcp-DoCSQs95.js → use-create-virtual-mcp-GYM-p3SY.js} +1 -1
  276. package/dist/client/assets/{use-date-fns-locale-DYzMvrWB.js → use-date-fns-locale-C1uUurom.js} +1 -1
  277. package/dist/client/assets/{use-debounced-autosave-BRAVEUZc.js → use-debounced-autosave-D2DtaMQY.js} +1 -1
  278. package/dist/client/assets/{use-debounced-value-Cud3o3Fq.js → use-debounced-value-Dci7_Qwe.js} +1 -1
  279. package/dist/client/assets/{use-deco-credits-rwNQ1gMg.js → use-deco-credits-CQYk77NF.js} +1 -1
  280. package/dist/client/assets/{use-decopilot-events-DYRVevWg.js → use-decopilot-events-HctMj33h.js} +1 -1
  281. package/dist/client/assets/{use-delete-connection-ueGIYWMK.js → use-delete-connection-Do6SoZ3c.js} +1 -1
  282. package/dist/client/assets/{use-deployment-admin-D6IzoXV0.js → use-deployment-admin-CRRFLUPy.js} +1 -1
  283. package/dist/client/assets/{use-file-configs-BwD1CaWo.js → use-file-configs-CMLhU-Fj.js} +1 -1
  284. package/dist/client/assets/{use-infinite-scroll-DkLPxlOu.js → use-infinite-scroll-TMy8eEjN.js} +1 -1
  285. package/dist/client/assets/{use-join-requests-DTGTfD21.js → use-join-requests-DxlLP6Wr.js} +1 -1
  286. package/dist/client/assets/{use-main-panel-tabs-EW6rbxam.js → use-main-panel-tabs-CbcTcl9J.js} +1 -1
  287. package/dist/client/assets/{use-mcp-auth-status-CPh3Lmzs.js → use-mcp-auth-status-gxHqvxAC.js} +1 -1
  288. package/dist/client/assets/{use-mcp-client-DsJzBus3.js → use-mcp-client-DO1cH-Rq.js} +1 -1
  289. package/dist/client/assets/{use-mcp-prompts-i0LZ2nQA.js → use-mcp-prompts-DZqLLTvQ.js} +1 -1
  290. package/dist/client/assets/{use-mcp-tools-Dc3F6Krl.js → use-mcp-tools-BIFTy-Ao.js} +1 -1
  291. package/dist/client/assets/{use-members-C0MdJrYz.js → use-members-Ca1m7gk-.js} +1 -1
  292. package/dist/client/assets/{use-navigate-to-agent-Bbq0oQ0Y.js → use-navigate-to-agent-DbrSvmvC.js} +1 -1
  293. package/dist/client/assets/{use-open-billing-url-DvTk9GH0.js → use-open-billing-url-CpZXluVO.js} +1 -1
  294. package/dist/client/assets/{use-org-auth-client-4o0wRx2Q.js → use-org-auth-client-S952sZID.js} +1 -1
  295. package/dist/client/assets/{use-org-fs-BEoPvlnI.js → use-org-fs-C1ai334S.js} +1 -1
  296. package/dist/client/assets/{use-org-notice-CXYMfMUq.js → use-org-notice-CJiZMwf2.js} +1 -1
  297. package/dist/client/assets/{use-org-sso-CdSz0xa8.js → use-org-sso-CFwon6Ac.js} +1 -1
  298. package/dist/client/assets/{use-organization-roles-DzWM9Nv-.js → use-organization-roles--bC30gnD.js} +1 -1
  299. package/dist/client/assets/{use-organization-settings-BAVHurZk.js → use-organization-settings-C7uzGCkO.js} +1 -1
  300. package/dist/client/assets/{use-panel-navigate-Byvx0cbx.js → use-panel-navigate-BgqqPVEC.js} +1 -1
  301. package/dist/client/assets/{use-project-native-view-presence-D-AyEulW.js → use-project-native-view-presence-DqW-vLSC.js} +1 -1
  302. package/dist/client/assets/{use-project-scope-B2cuvtTy.js → use-project-scope-cOFjIv3F.js} +1 -1
  303. package/dist/client/assets/{use-registry-connections-DikbDR8w.js → use-registry-connections-XlfVpqo2.js} +1 -1
  304. package/dist/client/assets/{use-secrets-D-c1ciPZ.js → use-secrets-DEa3ZFkm.js} +1 -1
  305. package/dist/client/assets/{use-section-preview-base-CwIWGkgy.js → use-section-preview-base-DfU-w-9v.js} +1 -1
  306. package/dist/client/assets/{use-session-runtime-BHahDP0E.js → use-session-runtime-D2nv6bTI.js} +1 -1
  307. package/dist/client/assets/{use-status-sounds-CnCb1h48.js → use-status-sounds-CBYC79_Y.js} +1 -1
  308. package/dist/client/assets/{use-tags-C2LhenRb.js → use-tags-6rI6kyxz.js} +1 -1
  309. package/dist/client/assets/{use-task-metadata-CB3EJ29f.js → use-task-metadata-DuwC-TmK.js} +1 -1
  310. package/dist/client/assets/{use-thread-outputs-9oZhiYbB.js → use-thread-outputs-DwE-nO-h.js} +1 -1
  311. package/dist/client/assets/{use-view-mode-BvOL5I4W.js → use-view-mode-2goLAQJg.js} +1 -1
  312. package/dist/client/assets/{use-virtual-mcp-Bk09OpEg.js → use-virtual-mcp-DY2qk06G.js} +1 -1
  313. package/dist/client/assets/useInfiniteQuery-B3TKIUIz.js +1 -0
  314. package/dist/client/assets/{useQueries-qr8TAkZc.js → useQueries-CDFEvGc1.js} +1 -1
  315. package/dist/client/assets/useSuspenseInfiniteQuery-BuAksfER.js +1 -0
  316. package/dist/client/assets/{users-C1ExMDuM.js → users-xM0kvyFO.js} +1 -1
  317. package/dist/client/assets/{utils-B14U8IKK.js → utils-DPVkkzea.js} +1 -1
  318. package/dist/client/assets/{variant-calendar-urd0wE-3.js → variant-calendar-C1Gzo9bi.js} +1 -1
  319. package/dist/client/assets/{variant-matcher-override-DvY-JiuY.js → variant-matcher-override-GDeATfJn.js} +1 -1
  320. package/dist/client/assets/{view-mode-toggle-swSorpD7.js → view-mode-toggle-VHYgVEtv.js} +1 -1
  321. package/dist/client/assets/{virtual-mcp-DGQbDtgM.js → virtual-mcp-CSoIE5pZ.js} +1 -1
  322. package/dist/client/index.html +1 -1
  323. package/dist/server/cli.js +1 -1
  324. package/dist/server/server.js +1 -1
  325. package/package.json +1 -1
  326. package/dist/client/assets/agent-app-CzbKRw1_.js +0 -1
  327. package/dist/client/assets/agent-deck-D5-mvZ5i.js +0 -1
  328. package/dist/client/assets/agent-file-DkGApBvp.js +0 -1
  329. package/dist/client/assets/agent-library-file-CK85m8fH.js +0 -1
  330. package/dist/client/assets/agent-settings-gb3smN_4.js +0 -1
  331. package/dist/client/assets/agent-site-editor-code-DkcL_YVi.js +0 -2
  332. package/dist/client/assets/agent-view-D9WzU94g.js +0 -1
  333. package/dist/client/assets/api-keys-BQayHq-8.js +0 -1
  334. package/dist/client/assets/app-editor-DeI0TeES.js +0 -1
  335. package/dist/client/assets/automations-CDxxuCym.js +0 -1
  336. package/dist/client/assets/category-editor-4KcN0JRt.js +0 -1
  337. package/dist/client/assets/project-reports-q4w3pT5T.js +0 -1
  338. package/dist/client/assets/project-tasks-DqlAyIfE.js +0 -1
  339. package/dist/client/assets/record-editor-n0M7yiQw.js +0 -1
  340. package/dist/client/assets/redirect-editor-CK3YSOdb.js +0 -1
  341. package/dist/client/assets/registry-DkzCUqTc.js +0 -2
  342. package/dist/client/assets/reports-C2LVTrmJ.js +0 -1
  343. package/dist/client/assets/settings-layout-DlH0gQXK.js +0 -1
  344. package/dist/client/assets/store-registry-DQHLJpOA.js +0 -2
  345. package/dist/client/assets/tasks-C6DyE2q-.js +0 -1
  346. package/dist/client/assets/useInfiniteQuery-GKCP1c_7.js +0 -1
  347. package/dist/client/assets/useSuspenseInfiniteQuery-DmEiIBI4.js +0 -1
@@ -1,4 +1,4 @@
1
- import{K as ks,c as H,m as es,b as be,r as O,l as _e,j as h,h as gt,I as ut,au as Bi,$ as ls,E as Li,d as ji,u as Ii,f as ri,a as hs,n as Lc,M as Do,U as Ju,O as jc,a6 as Je,B as Pe,ap as Zu,aq as Ei,a7 as Ze,a9 as Qe,t as Xe,av as Qu,o as Cs,aw as ef,ax as tf,a8 as Oi,ay as No,az as sf,z as rf,v as nf,F as Ic,e as Pn,x as of,ac as Mo,aA as af,aB as lf,ar as cf,y as Ia,k as hf,aC as df,aD as uf,R as Oc,aE as ff,N as pf}from"./index-B3yBTWEk.js";import{C as ht,w as _f,u as zc}from"./use-main-panel-tabs-EW6rbxam.js";import{a as mf,u as gf}from"./use-organization-settings-BAVHurZk.js";import{b as ds,u as Bo,a as zi,c as $c,d as vf,e as bf,s as Sf}from"./chat-context-CXknhaDs.js";import{u as ni}from"./use-session-runtime-BHahDP0E.js";import{u as yf}from"./use-ai-providers-qnkcjapR.js";import{i as Lo}from"./AlertCircle-EniJtD8E.js";import{i as jo}from"./CheckCircle-cinYKmPU.js";import{W as En,A as Ri,T as xf,o as Fc,Z as jr,_ as Hc,$ as Io,G as wf,a0 as Wc,a1 as Cf,a2 as kf,a3 as Pf,a4 as Ef,k as Rf,a5 as Tf,n as Af}from"./agent-icon-DrlilhFJ.js";import{i as Df}from"./XCircle-9Cb0khfg.js";import{s as Oa}from"./XClose-Cw4b4Uag.js";import{a as us,b as Nf,u as Uc}from"./use-virtual-mcp-Bk09OpEg.js";import{I as Kc}from"./integration-icon-BPwWRlNG.js";import{c as Mf}from"./usage-stats-BNse37Wk.js";import{t as $s,n as Bf}from"./ChevronUp-DGrguvGW.js";import{O as Lf,u as jf}from"./pair-C08OPQNP.js";import{u as If,a as Of}from"./use-thread-outputs-9oZhiYbB.js";import{u as zf}from"./use-deco-credits-rwNQ1gMg.js";import{i as $f}from"./command-palette-store-BwHku_Zt.js";import{b as Rn,f as Ff,c as Hf}from"./use-project-scope-B2cuvtTy.js";import{d as Oo,a as Wf,c as Uf}from"./thread-intent-DVKldCEq.js";import{u as zo,a as Ir,b as Kf,c as $o}from"./hooks-k1OxvonE.js";import{p as qf,a as qc,b as Vf,c as Vc,d as Gf,e as Fo,f as Yf,g as Xf}from"./use-navigate-to-agent-Bbq0oQ0Y.js";import{u as Or,c as Gc,a as Yc,d as Jf,e as Zf,o as Qf,s as ep,f as tp,g as sp,h as ip}from"./sandbox-lifecycle-context-CXd9Um8u.js";import{u as rp}from"./use-status-sounds-CnCb1h48.js";import{E as Xc}from"./empty-state-Cz1DkYZE.js";import{b as np,c as $i,a as Jc,u as Zc,r as op,d as ap}from"./thread-route-CKY-dKC0.js";import{a as lp,u as Ho,b as Qc,c as eh}from"./use-panel-navigate-Byvx0cbx.js";import{r as th,a as Ut,h as sh,b as ih,g as Wo}from"./github-repo-C0igpkr9.js";import{r as cp}from"./serial-task-queue-CGOeQgpr.js";import{T as hp}from"./toolbar-D0oe2g2b.js";import{i as dp}from"./Share07-D_kiq5Fr.js";import{b as up,c as rh,S as fp,d as pp}from"./select-Bc5UZb4n.js";import{i as nh,s as _p}from"./source-system-tabs-CnEGUb4r.js";import{a as mp}from"./Package-CdfyZYxN.js";import{L as Uo,a as gp}from"./legacy-main-redirect-ZPChWdtD.js";import{L as vp}from"./preview-dialog-b2QyOGzU.js";import{O as bp}from"./markdown-B1038zFJ.js";import{u as oh}from"./use-is-desktop-app-BNujXJc_.js";import{p as Sp}from"./virtual-mcp-DGQbDtgM.js";import{b as za}from"./sandbox-url-D3mC8qhT.js";import{i as Sr}from"./Play-rnw1eV52.js";import{c as Ko,D as qo,b as Vo,a as yr}from"./dropdown-menu-BxKUbUkE.js";import{a as zr,b as Fi,P as Hi,c as yp}from"./popover-DIqZ2IKF.js";import{s as ah}from"./Plus-Bxp02MWl.js";import{i as xp,a as wp}from"./UserSquare-CCDsU001.js";import{p as lh,I as ch,T as xr}from"./toolbar-icon-button-EOE8J-Ai.js";import{L as hh}from"./anchors-yqDzZN4K.js";import{G as dh}from"./github-icon-D51q_6S8.js";import{D as Go,b as Yo,d as Cp,h as kp,c as Pp}from"./dialog-otnvxVN0.js";import{T as uh}from"./textarea-CneoU2lJ.js";import{s as Xo}from"./Eye-dnrP5DkM.js";import{i as fh}from"./Globe01-SLAc63wC.js";import{a as ph}from"./format-time-BtXRrtv4.js";import{i as Jo}from"./ChevronRight-DzRB-rdO.js";import{i as Ep}from"./Printer-fz_zwxfT.js";import{s as _h}from"./Trash01-DqUm2RRh.js";import{i as mh,G as gh,f as wi,p as Rp,r as vh,d as Tn,a as bh,b as cr,c as Tp,e as Ap,g as Sh,n as Dp,h as Np,j as Mp,k as Bp,l as Zo,m as Lp,o as yh,s as xh,q as jp,t as Ip,u as Op,v as zp,w as $a,x as $p,y as Fp,z as Zr,A as Hp,B as Wp,C as Up,D as Kp,E as qp,F as Vp,H as Gp,I as Fa}from"./decode-html-entities-DDqE27I4.js";import{b as Yp}from"./utils-B14U8IKK.js";import{u as $r,f as Xp}from"./shell-layout-1dFmVwYI.js";import{u as Jp}from"./use-mcp-client-DsJzBus3.js";import{I as Zp}from"./input-HFOrJf5B.js";import{c as wh,a as Ch,T as wr,b as Ha}from"./tabs-DV8akPGb.js";import{i as Qp}from"./ArrowRight-Cu8UuHNR.js";import{i as An}from"./GitBranch01-BBn4dN5f.js";import{t as e_}from"./Stars01-COChWymR.js";import{c as kh,d as Ph,b as Eh,f as Rh,g as Th,e as Ah,a as Dh,A as Nh}from"./alert-dialog-BE9ltHtr.js";import{e as Dn,C as Nn,a as Mn,c as Mh,d as Bh,b as Lh}from"./command-B6LMVdkQ.js";import{i as t_}from"./DotsVertical-CucJCL9y.js";import{i as s_}from"./Tool01-BnKd95Y1.js";import{u as i_}from"./use-debounced-value-Cud3o3Fq.js";import{u as r_}from"./useInfiniteQuery-GKCP1c_7.js";import{i as n_}from"./Tool02-C_xRWqQk.js";import{a as o_,T as a_}from"./toggle-group-9HQCpj-q.js";import{i as jh}from"./Zap-ChVc0p76.js";import{g as l_,S as c_}from"./task-status-DIr_2V94.js";function Qo(t){return`${t.orgSlug}/${t.virtualMcpId}/${t.branch}`}function h_(t,e,s){return["decofile-write",t,e,s]}function ea(t){return`/api/${t.orgSlug}/decofile/${encodeURIComponent(t.virtualMcpId)}/${encodeURIComponent(t.branch)}`}async function Ih(t,e){const s=await t.json().catch(()=>({}));throw new Error(s.error??`${e} failed (${t.status})`)}function d_(t,e,s){t.setQueryData(ks.decofileDraft(Qo(e)),s)}function u_(t){const e=H.c(4);let s;e[0]!==t?(s=ks.decofileDraft(t?Qo(t):""),e[0]=t,e[1]=s):s=e[1];let i;e[2]!==s?(i={queryKey:s,enabled:!1,queryFn:f_,staleTime:Number.POSITIVE_INFINITY,gcTime:Number.POSITIVE_INFINITY},e[2]=s,e[3]=i):i=e[3];const{data:r}=es(i);return r??null}async function f_(){throw new Error("decofileDraft is populated by reads/writes, not fetched")}async function Lw(t,e){const s=await fetch(ea(e),{cache:"no-store"});if(!s.ok){const r=new Error(`Failed to fetch decofile: ${s.status}`);throw r.status=s.status,r}const i=await s.json();return i.token&&d_(t,e,{version:i.version,token:i.token,apiHost:i.apiHost??window.location.host}),i.decofile}const p_=2880*60*1e3;function __(t,e,s=p_){if(!t)return!1;const i=new Date(t).getTime();return Number.isNaN(i)?!1:e-i>s}async function m_(t){const e=await fetch(`${ea(t)}/status`,{cache:"no-store"});return e.ok?await e.json():Ih(e,"Status")}function g_(t){return{queryKey:ks.decofileStatus(Qo(t)),queryFn:()=>m_(t),staleTime:3e4}}async function jw(t,e){const s=await fetch(ea(t),{method:"PATCH",headers:{"content-type":"application/json"},body:JSON.stringify(e)});if(!s.ok)return Ih(s,"Save");const i=await s.json();return{...i,apiHost:i.apiHost??window.location.host}}function v_({isThreadLocked:t,hasCloudProviderKeys:e}){return t?!1:!e}function b_(){const t=H.c(3),e=yf(),i=ds()?.isThreadLocked??!1,r=e.length>0;let n;return t[0]!==i||t[1]!==r?(n=v_({isThreadLocked:i,hasCloudProviderKeys:r}),t[0]=i,t[1]=r,t[2]=n):n=t[2],n}function li(t){return t>=1e6?`${(t/1e6).toFixed(1)}M`:t>=1e3?`${(t/1e3).toFixed(1)}k`:String(t)}function Qr(t){if(!t)return"—";const e=typeof t=="string"?new Date(t):t;return isNaN(e.getTime())?"—":e.toLocaleString("en-US",{month:"short",day:"numeric",year:"numeric",hour:"numeric",minute:"2-digit"})}function S_(t){return t?t.replace(/-\d{8}(?:-[a-z0-9]+)*$/i,"").replace(/-/g," "):"—"}function y_(t){const e=H.c(4),{items:s}=t;let i;e[0]!==s?(i=s.map(x_),e[0]=s,e[1]=i):i=e[1];let r;return e[2]!==i?(r=h.jsx("div",{className:"grid grid-cols-2 gap-x-8 gap-y-6",children:i}),e[2]=i,e[3]=r):r=e[3],r}function x_(t){return h.jsxs("div",{className:"flex flex-col gap-1 min-w-0",children:[h.jsx("span",{className:"text-xs text-muted-foreground truncate",children:t.label}),h.jsx("span",{className:"text-sm text-foreground tabular-nums truncate",children:t.value})]},t.label)}function w_(t){const e=H.c(33),{userTokens:s,assistantTokens:i,otherTokens:r}=t,n=be(),o=s+i+r,a=o>0?s/o*100:0,c=o>0?i/o*100:0,l=o>0?r/o*100:0;let u;e[0]!==a?(u=a>0&&h.jsx("div",{className:"h-full bg-chart-1",style:{width:`${a}%`}}),e[0]=a,e[1]=u):u=e[1];let d;e[2]!==c?(d=c>0&&h.jsx("div",{className:"h-full bg-chart-2",style:{width:`${c}%`}}),e[2]=c,e[3]=d):d=e[3];let f;e[4]!==l?(f=l>0&&h.jsx("div",{className:"h-full bg-muted-foreground/30",style:{width:`${l}%`}}),e[4]=l,e[5]=f):f=e[5];let p;e[6]!==u||e[7]!==d||e[8]!==f?(p=h.jsxs("div",{className:"flex h-2 w-full overflow-hidden rounded-full bg-muted",children:[u,d,f]}),e[6]=u,e[7]=d,e[8]=f,e[9]=p):p=e[9];let _;e[10]===Symbol.for("react.memo_cache_sentinel")?(_=h.jsx("span",{className:"inline-block h-2 w-2 rounded-sm bg-chart-1 shrink-0"}),e[10]=_):_=e[10];let g;e[11]!==n||e[12]!==a?(g=n("chat.contextPanel.userPercent",{pct:a.toFixed(1)}),e[11]=n,e[12]=a,e[13]=g):g=e[13];let v;e[14]!==g?(v=h.jsxs("div",{className:"flex items-center gap-1.5",children:[_,h.jsx("span",{className:"text-xs text-muted-foreground",children:g})]}),e[14]=g,e[15]=v):v=e[15];let b;e[16]===Symbol.for("react.memo_cache_sentinel")?(b=h.jsx("span",{className:"inline-block h-2 w-2 rounded-sm bg-chart-2 shrink-0"}),e[16]=b):b=e[16];let k;e[17]!==c||e[18]!==n?(k=n("chat.contextPanel.assistantPercent",{pct:c.toFixed(1)}),e[17]=c,e[18]=n,e[19]=k):k=e[19];let w;e[20]!==k?(w=h.jsxs("div",{className:"flex items-center gap-1.5",children:[b,h.jsx("span",{className:"text-xs text-muted-foreground",children:k})]}),e[20]=k,e[21]=w):w=e[21];let S;e[22]!==l||e[23]!==r||e[24]!==n?(S=r>0&&h.jsxs("div",{className:"flex items-center gap-1.5",children:[h.jsx("span",{className:"inline-block h-2 w-2 rounded-sm bg-muted-foreground/30 shrink-0"}),h.jsx("span",{className:"text-xs text-muted-foreground",children:n("chat.contextPanel.otherPercent",{pct:l.toFixed(1)})})]}),e[22]=l,e[23]=r,e[24]=n,e[25]=S):S=e[25];let m;e[26]!==w||e[27]!==S||e[28]!==v?(m=h.jsxs("div",{className:"flex flex-wrap gap-x-3 gap-y-1",children:[v,w,S]}),e[26]=w,e[27]=S,e[28]=v,e[29]=m):m=e[29];let x;return e[30]!==m||e[31]!==p?(x=h.jsxs("div",{className:"flex flex-col gap-2",children:[p,m]}),e[30]=m,e[31]=p,e[32]=x):x=e[32],x}function C_(t){const e=H.c(14),{agentId:s,isError:i}=t,r=us(s),n=be();let o;e[0]!==r?.title||e[1]!==n?(o=r?.title??n("chat.subtask.subtaskNoun"),e[0]=r?.title,e[1]=n,e[2]=o):o=e[2];const a=o,c=r?.icon??null;let l;e[3]!==c||e[4]!==a?(l=h.jsx(Kc,{icon:c,name:a,size:"xs",className:"size-6 rounded-md shrink-0"}),e[3]=c,e[4]=a,e[5]=l):l=e[5];const u=i?"text-destructive":"text-foreground";let d;e[6]!==u?(d=_e("shrink-0 font-medium",u),e[6]=u,e[7]=d):d=e[7];let f;e[8]!==a||e[9]!==d?(f=h.jsx("span",{className:d,children:a}),e[8]=a,e[9]=d,e[10]=f):f=e[10];let p;return e[11]!==l||e[12]!==f?(p=h.jsxs(h.Fragment,{children:[l,f]}),e[11]=l,e[12]=f,e[13]=p):p=e[13],p}function k_(t){const e=H.c(12),{isError:s}=t,i=be();let r;e[0]!==i?(r=i("chat.contextPanel.subtask"),e[0]=i,e[1]=r):r=e[1];const n=r;let o;e[2]!==n?(o=h.jsx(Kc,{icon:null,name:n,size:"xs",className:"size-6 rounded-md shrink-0"}),e[2]=n,e[3]=o):o=e[3];const a=s?"text-destructive":"text-foreground";let c;e[4]!==a?(c=_e("shrink-0 font-medium",a),e[4]=a,e[5]=c):c=e[5];let l;e[6]!==n||e[7]!==c?(l=h.jsx("span",{className:c,children:n}),e[6]=n,e[7]=c,e[8]=l):l=e[8];let u;return e[9]!==o||e[10]!==l?(u=h.jsxs(h.Fragment,{children:[o,l]}),e[9]=o,e[10]=l,e[11]=u):u=e[11],u}function P_(t){const e=H.c(18),{part:s}=t,i=s.input?.agent_id,r=s.state==="input-streaming"||s.state==="input-available"||s.state==="output-available"&&s.preliminary===!0,n=s.state==="output-error",o=s.state==="approval-requested";let a;e[0]!==n?(a=h.jsx(k_,{isError:n}),e[0]=n,e[1]=a):a=e[1];let c;e[2]!==i||e[3]!==n?(c=h.jsx(C_,{agentId:i,isError:n}),e[2]=i,e[3]=n,e[4]=c):c=e[4];let l;e[5]!==a||e[6]!==c?(l=h.jsx(O.Suspense,{fallback:a,children:c}),e[5]=a,e[6]=c,e[7]=l):l=e[7];let u;e[8]!==s.input?(u=s.input?.prompt&&h.jsxs(h.Fragment,{children:[h.jsx("span",{className:"text-muted-foreground/50",children:"·"}),h.jsx("span",{className:"truncate text-muted-foreground",children:s.input.prompt})]}),e[8]=s.input,e[9]=u):u=e[9];let d;e[10]!==o||e[11]!==n||e[12]!==r?(d=h.jsx("span",{className:"ml-auto shrink-0",children:r?h.jsx(gt,{className:"size-3 text-muted-foreground"}):n?h.jsx(Df,{size:12,className:"text-destructive"}):o?h.jsx(Lo,{size:12,className:"text-warning"}):h.jsx(jo,{size:12,className:"text-success"})}),e[10]=o,e[11]=n,e[12]=r,e[13]=d):d=e[13];let f;return e[14]!==l||e[15]!==u||e[16]!==d?(f=h.jsxs("div",{className:"flex items-center gap-2 text-xs min-w-0",children:[l,u,d]}),e[14]=l,e[15]=u,e[16]=d,e[17]=f):f=e[17],f}function E_(t){const e=H.c(78),{onClose:s,back:i,className:r}=t,n=be(),[o,a]=O.useState(null),{messages:c}=Bo(),{activeTask:l}=zi(),{selectedModel:u,selectedVirtualMcp:d}=$c();let f,p,_,g,v,b,k,w;if(e[0]!==l||e[1]!==i||e[2]!==r||e[3]!==c||e[4]!==s||e[5]!==o?.id||e[6]!==u||e[7]!==d?.title||e[8]!==n){w=Symbol.for("react.early_return_sentinel");e:{const x=Mf(c),y=[...c].reverse().find(O_),C=y?.metadata?.usage,N=y?.metadata?.modelLimits?.contextWindow??u?.limits?.contextWindow??null,T=C?.contextTokens??0,R=N&&N>0?(T/N*100).toFixed(1):null,E=c;let P;e[17]!==E?(P=E.filter(I_).reduce(j_,0),e[17]=E,e[18]=P):P=e[18];const A=P,M=c;let L;e[19]!==M?(L=M.filter(L_).reduce(B_,0),e[19]=M,e[20]=L):L=e[20];const B=L,D=Math.max(0,x.totalTokens-A-B),j=c[0],K=c.at(-1),z=j?.metadata?.created_at??l?.created_at,G=K?.metadata?.created_at??l?.updated_at,I=c.filter(M_),V=c.flatMap(D_),$=u?.modelId?S_(u.modelId):"—",ee=d?.title??"Super Agent",se=[{label:n("chat.contextPanel.sessionLabel"),value:l?.title??n("chat.contextPanel.newChat")},{label:n("chat.contextPanel.messagesLabel"),value:I.length},{label:n("chat.contextPanel.agentLabel"),value:ee},{label:n("chat.contextPanel.modelLabel"),value:$},{label:n("chat.contextPanel.contextLimitLabel"),value:N?li(N):"—"},{label:n("chat.contextPanel.sessionTokensLabel"),value:x.totalTokens>0?li(x.totalTokens):"0"},{label:n("chat.contextPanel.usageLabel"),value:R!==null?`${R}%`:"—"},{label:n("chat.contextPanel.inputTokensLabel"),value:x.inputTokens>0?li(x.inputTokens):"0"},{label:n("chat.contextPanel.outputTokensLabel"),value:x.outputTokens>0?li(x.outputTokens):"0"},{label:n("chat.contextPanel.reasoningTokensLabel"),value:x.reasoningTokens>0?li(x.reasoningTokens):"0"},{label:n("chat.contextPanel.costLabel"),value:x.cost>0?`$${x.cost<.001?x.cost.toFixed(6):x.cost.toFixed(4)}`:"$0.00"},{label:n("chat.contextPanel.sessionCreatedLabel"),value:Qr(z)},{label:n("chat.contextPanel.lastActivityLabel"),value:Qr(G)}];if(!l&&I.length===0){let q;e[21]!==r?(q=_e("flex flex-col h-full w-full border-l border-border bg-background",r),e[21]=r,e[22]=q):q=e[22];let F;e[23]!==n?(F=n("chat.contextPanel.title"),e[23]=n,e[24]=F):F=e[24];let Q;e[25]!==F?(Q=h.jsx("span",{className:"text-sm font-medium text-foreground",children:F}),e[25]=F,e[26]=Q):Q=e[26];let he;e[27]!==i?(he=i?h.jsx(En,{size:14,className:"text-muted-foreground"}):h.jsx(Oa,{size:14,className:"text-muted-foreground"}),e[27]=i,e[28]=he):he=e[28];let ue;e[29]!==s||e[30]!==he?(ue=h.jsx("button",{type:"button",onClick:s,className:"flex size-6 items-center justify-center rounded hover:bg-accent transition-colors",children:he}),e[29]=s,e[30]=he,e[31]=ue):ue=e[31];let fe;e[32]!==Q||e[33]!==ue?(fe=h.jsxs("div",{className:"h-11 px-4 flex items-center justify-between shrink-0 border-b border-border/50",children:[Q,ue]}),e[32]=Q,e[33]=ue,e[34]=fe):fe=e[34];let ne;e[35]!==n?(ne=n("chat.contextPanel.emptyState"),e[35]=n,e[36]=ne):ne=e[36];let ce;e[37]!==ne?(ce=h.jsx("div",{className:"flex-1 flex items-center justify-center px-4 text-center",children:h.jsx("p",{className:"text-xs text-muted-foreground",children:ne})}),e[37]=ne,e[38]=ce):ce=e[38];let de;e[39]!==q||e[40]!==fe||e[41]!==ce?(de=h.jsxs("div",{className:q,children:[fe,ce]}),e[39]=q,e[40]=fe,e[41]=ce,e[42]=de):de=e[42],w=de;break e}e[43]!==r?(b=_e("flex flex-col h-full w-full border-l border-border bg-background overflow-y-auto",r),e[43]=r,e[44]=b):b=e[44];let ie;e[45]!==n?(ie=n("chat.contextPanel.title"),e[45]=n,e[46]=ie):ie=e[46];let Y;e[47]!==ie?(Y=h.jsx("span",{className:"text-sm font-medium text-foreground",children:ie}),e[47]=ie,e[48]=Y):Y=e[48];let Z;e[49]!==i?(Z=i?h.jsx(En,{size:14}):h.jsx(Oa,{size:14}),e[49]=i,e[50]=Z):Z=e[50];let X;e[51]!==s||e[52]!==Z?(X=h.jsx("button",{type:"button",onClick:s,className:"flex h-7 w-7 items-center justify-center rounded-md text-muted-foreground transition-colors hover:bg-accent hover:text-foreground",children:Z}),e[51]=s,e[52]=Z,e[53]=X):X=e[53],e[54]!==Y||e[55]!==X?(k=h.jsxs("div",{className:"flex h-11 shrink-0 items-center justify-between border-b border-border/50 px-4",children:[Y,X]}),e[54]=Y,e[55]=X,e[56]=k):k=e[56],f="flex flex-col gap-8 p-6",p=V.length>0&&h.jsxs("div",{className:"flex flex-col gap-3",children:[h.jsx("span",{className:"text-xs text-muted-foreground",children:n("chat.contextPanel.subtasksSection")}),h.jsx("div",{className:"flex flex-col gap-1",children:V.map(A_)})]}),_=h.jsx(y_,{items:se});let U;e[57]!==n?(U=n("chat.contextPanel.contextBreakdownSection"),e[57]=n,e[58]=U):U=e[58];let J;e[59]!==U?(J=h.jsx("span",{className:"text-xs text-muted-foreground",children:U}),e[59]=U,e[60]=J):J=e[60];let ae;e[61]!==B||e[62]!==D||e[63]!==A?(ae=h.jsx(w_,{userTokens:A,assistantTokens:B,otherTokens:D}),e[61]=B,e[62]=D,e[63]=A,e[64]=ae):ae=e[64],e[65]!==J||e[66]!==ae?(g=h.jsxs("div",{className:"flex flex-col gap-3",children:[J,ae]}),e[65]=J,e[66]=ae,e[67]=g):g=e[67],v=I.length>0&&h.jsxs("div",{className:"flex flex-col gap-3",children:[h.jsx("span",{className:"text-xs text-muted-foreground",children:n("chat.contextPanel.rawMessagesSection")}),h.jsx("div",{className:"flex flex-col gap-1",children:I.map(q=>{const F=q.metadata?.created_at,Q=o?.id===q.id;return h.jsxs("div",{className:"rounded-md border border-border/50 overflow-hidden",children:[h.jsxs("button",{type:"button",onClick:()=>a(Q?null:q),className:"flex items-center justify-between gap-2 px-3 py-2 text-xs hover:bg-accent/50 w-full text-left cursor-pointer",children:[h.jsxs("div",{className:"flex items-center gap-2 min-w-0",children:[h.jsx("span",{className:_e("shrink-0 font-medium",q.role==="user"?"text-chart-1":"text-chart-2"),children:q.role}),h.jsx("span",{className:"text-muted-foreground",children:"•"}),h.jsx("span",{className:"truncate text-muted-foreground font-mono",children:q.id})]}),F&&h.jsx("span",{className:"shrink-0 text-muted-foreground tabular-nums",children:Qr(F)})]}),Q&&h.jsxs(h.Fragment,{children:[q.role==="assistant"&&(()=>{const he=q.metadata?._request;if(!he)return null;const ue=he.systemSections??[],fe=Math.max(1,...ue.map(T_)),ne=ue.reduce(R_,0);return h.jsxs("div",{className:"border-t border-border/50 px-3 py-2.5 text-xs space-y-2.5",children:[h.jsxs("div",{className:"flex items-center justify-between",children:[h.jsx("span",{className:"font-medium text-foreground",children:n("chat.contextPanel.requestLabel")}),h.jsxs("span",{className:"text-muted-foreground tabular-nums",children:[he.activeTools??0," / ",he.tools??0," ",n("chat.contextPanel.toolsActive")]})]}),ue.length>0&&h.jsxs("div",{className:"space-y-1.5",children:[h.jsxs("div",{className:"text-muted-foreground",children:[n("chat.contextPanel.systemPromptLabel")," ",h.jsxs("span",{className:"tabular-nums",children:["~",Math.round(ne/4).toLocaleString()," ",n("chat.contextPanel.tokAbbrev")]})]}),ue.map((ce,de)=>{const le=ce.preview.match(/^<([a-z-]+)/i)?.[1]??`section ${de}`,re=ce.chars/fe*100,ge=Math.round(ce.chars/4);return h.jsxs("div",{className:"space-y-0.5",children:[h.jsxs("div",{className:"flex items-center justify-between gap-2",children:[h.jsx("span",{className:"font-mono text-foreground truncate",children:le}),h.jsxs("span",{className:"text-muted-foreground tabular-nums shrink-0",children:["~",ge.toLocaleString()," ",n("chat.contextPanel.tokAbbrev")]})]}),h.jsx("div",{className:"h-1 w-full rounded-full bg-muted overflow-hidden",children:h.jsx("div",{className:"h-full rounded-full bg-chart-3",style:{width:`${re}%`}})})]},de)})]})]})})(),h.jsx("pre",{className:"text-xs font-mono bg-muted px-3 py-2 overflow-auto whitespace-pre-wrap break-all border-t border-border/50 max-h-64",children:JSON.stringify(q,null,2)})]})]},q.id)})})]})}e[0]=l,e[1]=i,e[2]=r,e[3]=c,e[4]=s,e[5]=o?.id,e[6]=u,e[7]=d?.title,e[8]=n,e[9]=f,e[10]=p,e[11]=_,e[12]=g,e[13]=v,e[14]=b,e[15]=k,e[16]=w}else f=e[9],p=e[10],_=e[11],g=e[12],v=e[13],b=e[14],k=e[15],w=e[16];if(w!==Symbol.for("react.early_return_sentinel"))return w;let S;e[68]!==f||e[69]!==p||e[70]!==_||e[71]!==g||e[72]!==v?(S=h.jsxs("div",{className:f,children:[p,_,g,v]}),e[68]=f,e[69]=p,e[70]=_,e[71]=g,e[72]=v,e[73]=S):S=e[73];let m;return e[74]!==b||e[75]!==k||e[76]!==S?(m=h.jsxs("div",{className:b,children:[k,S]}),e[74]=b,e[75]=k,e[76]=S,e[77]=m):m=e[77],m}function R_(t,e){return t+e.chars}function T_(t){return t.chars}function A_(t,e){return h.jsx(P_,{part:t},e)}function D_(t){return(t.parts??[]).filter(N_)}function N_(t){return t.type==="tool-subtask"}function M_(t){return t.role!=="system"}function B_(t,e){const s=e.metadata?.usage;return t+(s?.outputTokens??0)}function L_(t){return t.role==="assistant"}function j_(t,e){const s=e.metadata?.usage;return t+(s?.inputTokens??0)}function I_(t){return t.role==="user"}function O_(t){return t.role==="assistant"&&t.metadata?.usage}function z_(t){const e=H.c(21),{onOpenContextPanel:s}=t,{org:i}=ut(),{selectedVirtualMcp:r}=$c();let n;e[0]!==i.id?(n=Bi(i.id),e[0]=i.id,e[1]=n):n=e[1];const a=r??n,l=us(a.id)??a,u=l.title??"Super Agent",d=l.icon??null,f=l.description??null;let p;e[2]!==d||e[3]!==u?(p=h.jsx(Ri,{icon:d,name:u,size:"lg"}),e[2]=d,e[3]=u,e[4]=p):p=e[4];let _;e[5]!==u?(_=h.jsx("h2",{className:"text-2xl font-semibold tracking-tight text-foreground",children:u}),e[5]=u,e[6]=_):_=e[6];let g;e[7]!==f?(g=f?h.jsx("p",{className:"text-sm text-muted-foreground max-w-md text-balance",children:f}):null,e[7]=f,e[8]=g):g=e[8];let v;e[9]!==_||e[10]!==g?(v=h.jsxs("div",{className:"space-y-1.5",children:[_,g]}),e[9]=_,e[10]=g,e[11]=v):v=e[11];let b;e[12]!==p||e[13]!==v?(b=h.jsxs("div",{className:"flex-1 min-h-0 flex flex-col items-center justify-center gap-4 px-6 text-center overflow-hidden",children:[p,v]}),e[12]=p,e[13]=v,e[14]=b):b=e[14];let k;e[15]===Symbol.for("react.memo_cache_sentinel")?(k=h.jsx(ht.IceBreakers,{className:"pb-3"}),e[15]=k):k=e[15];let w;e[16]!==s?(w=h.jsxs(ht.Footer,{children:[k,h.jsx(ht.Input,{onOpenContextPanel:s})]}),e[16]=s,e[17]=w):w=e[17];let S;return e[18]!==b||e[19]!==w?(S=h.jsxs(h.Fragment,{children:[b,w]}),e[18]=b,e[19]=w,e[20]=S):S=e[20],S}function Wa(t){const e=H.c(17),{outputs:s,collapsed:i,onToggle:r,variant:n}=t,o=n==="card"?"rounded-xl border border-border bg-muted/95 shadow-sm backdrop-blur-sm":"border-b border-border bg-background";let a;e[0]!==o?(a=_e(o),e[0]=o,e[1]=a):a=e[1];let c;e[2]===Symbol.for("react.memo_cache_sentinel")?(c=h.jsx("span",{className:"text-sm font-medium text-foreground",children:"Files in this task"}),e[2]=c):c=e[2];const l=i&&"-rotate-90";let u;e[3]!==l?(u=_e("size-4 text-muted-foreground transition-transform",l),e[3]=l,e[4]=u):u=e[4];let d;e[5]!==u?(d=h.jsx($s,{className:u}),e[5]=u,e[6]=d):d=e[6];let f;e[7]!==r||e[8]!==d?(f=h.jsxs("button",{type:"button",onClick:r,className:"flex w-full items-center justify-between px-3 py-2.5 text-left",children:[c,d]}),e[7]=r,e[8]=d,e[9]=f):f=e[9];let p;e[10]!==i||e[11]!==s?(p=!i&&h.jsx("div",{className:"flex max-h-72 flex-col gap-1.5 overflow-y-auto px-2 pb-2",children:s.map($_)}),e[10]=i,e[11]=s,e[12]=p):p=e[12];let _;return e[13]!==a||e[14]!==f||e[15]!==p?(_=h.jsxs("div",{className:a,children:[f,p]}),e[13]=a,e[14]=f,e[15]=p,e[16]=_):_=e[16],_}function $_(t){return h.jsx(Lf,{file:t},t.key)}function F_(){const t=H.c(13),e=ds()?.taskId??null,s=If();let i;t[0]!==s?(i={enabled:s},t[0]=s,t[1]=i):i=t[1];const{data:r}=Of(e,i),[n,o]=O.useState(!1),[a,c]=O.useState(!0);if(!e||!r||r.length===0)return null;let l;t[2]===Symbol.for("react.memo_cache_sentinel")?(l=()=>o(W_),t[2]=l):l=t[2];let u;t[3]!==n||t[4]!==r?(u=h.jsx("div",{className:"absolute top-2 right-2 z-10 hidden w-72 @[1280px]:block",children:h.jsx(Wa,{variant:"card",outputs:r,collapsed:n,onToggle:l})}),t[3]=n,t[4]=r,t[5]=u):u=t[5];let d;t[6]===Symbol.for("react.memo_cache_sentinel")?(d=()=>c(H_),t[6]=d):d=t[6];let f;t[7]!==a||t[8]!==r?(f=h.jsx("div",{className:"shrink-0 @[1280px]:hidden",children:h.jsx(Wa,{variant:"bar",outputs:r,collapsed:a,onToggle:d})}),t[7]=a,t[8]=r,t[9]=f):f=t[9];let p;return t[10]!==u||t[11]!==f?(p=h.jsxs(h.Fragment,{children:[u,f]}),t[10]=u,t[11]=f,t[12]=p):p=t[12],p}function H_(t){return!t}function W_(t){return!t}function U_(){const t=H.c(31),{org:e}=ut(),s=ds(),{isChatEmpty:i}=Bo(),[r,n]=O.useState("chat"),o=zf(),a=b_(),{runtime:c}=ni(s?.virtualMcpId);if(a&&c!=="cms"){let T;return t[0]===Symbol.for("react.memo_cache_sentinel")?(T=h.jsx(ht,{className:"animate-in fade-in-0 duration-200",children:h.jsx(ht.Main,{className:"flex flex-col items-center",children:h.jsx(ht.EmptyState,{children:h.jsx(ht.NoAiProviderEmptyState,{})})})}),t[0]=T):T=t[0],T}let u;t[1]!==o.hasDecoKey||t[2]!==o.hasOnlyDecoProvider||t[3]!==o.isLoading||t[4]!==o.isZeroBalance||t[5]!==i||t[6]!==e?(u=o.hasDecoKey&&o.isZeroBalance&&o.hasOnlyDecoProvider&&!o.isLoading&&i&&!_f(e.id),t[1]=o.hasDecoKey,t[2]=o.hasOnlyDecoProvider,t[3]=o.isLoading,t[4]=o.isZeroBalance,t[5]=i,t[6]=e,t[7]=u):u=t[7];const d=u;let f;t[8]!==d?(f=d&&h.jsx(ht.CreditsEmptyState,{}),t[8]=d,t[9]=f):f=t[9];const p=r!=="chat"?!0:void 0,_=r!=="chat",g=r!=="chat"?"opacity-0 pointer-events-none":"opacity-100";let v;t[10]!==g?(v=_e("absolute inset-0 flex flex-col transition-opacity duration-100 ease-out",g),t[10]=g,t[11]=v):v=t[11];let b;t[12]!==i||t[13]!==c?(b=i&&c!=="cms"?h.jsx(z_,{onOpenContextPanel:()=>n("context")}):h.jsxs(h.Fragment,{children:[h.jsxs(ht.Main,{className:"relative flex flex-col overflow-hidden @container",children:[h.jsx(F_,{}),h.jsx("div",{className:"min-h-0 flex-1",children:h.jsx(ht.Messages,{})})]}),h.jsx(ht.Footer,{children:h.jsx(ht.Input,{onOpenContextPanel:()=>n("context")})})]}),t[12]=i,t[13]=c,t[14]=b):b=t[14];let k;t[15]!==p||t[16]!==_||t[17]!==v||t[18]!==b?(k=h.jsx("div",{inert:p,"aria-hidden":_,className:v,children:b}),t[15]=p,t[16]=_,t[17]=v,t[18]=b,t[19]=k):k=t[19];const w=r!=="context"?!0:void 0,S=r!=="context",m=r==="context"?"opacity-100":"opacity-0 pointer-events-none";let x;t[20]!==m?(x=_e("absolute inset-0 flex flex-col transition-opacity duration-100 ease-out",m),t[20]=m,t[21]=x):x=t[21];let y;t[22]===Symbol.for("react.memo_cache_sentinel")?(y=h.jsx(E_,{back:!0,onClose:()=>n("chat")}),t[22]=y):y=t[22];let C;t[23]!==x||t[24]!==w||t[25]!==S?(C=h.jsx("div",{inert:w,"aria-hidden":S,className:x,children:y}),t[23]=x,t[24]=w,t[25]=S,t[26]=C):C=t[26];let N;return t[27]!==f||t[28]!==C||t[29]!==k?(N=h.jsxs(ht,{className:"relative overflow-hidden animate-in fade-in-0 duration-200",children:[f,k,C]}),t[27]=f,t[28]=C,t[29]=k,t[30]=N):N=t[30],N}function Oh(){const t=H.c(7),e=be();let s;t[0]!==e?(s=e("agentShellLayout.agentShellLayout.chatLoadingError"),t[0]=e,t[1]=s):s=t[1];let i;t[2]!==s?(i=h.jsx("div",{role:"alert",className:"flex h-full flex-1 items-center justify-center text-sm text-muted-foreground",children:s}),t[2]=s,t[3]=i):i=t[3];let r;t[4]===Symbol.for("react.memo_cache_sentinel")?(r=h.jsx(ls,{children:h.jsx(U_,{})}),t[4]=r):r=t[4];let n;return t[5]!==i?(n=h.jsx(Li,{fallback:i,children:r}),t[5]=i,t[6]=n):n=t[6],n}function K_(t){return(t??"").normalize("NFKD").replace(/[̀-ͯ]/g,"").toLowerCase().replace(/[^a-z0-9]+/g,"-").replace(/^-+|-+$/g,"")||"user"}function ta(t){return t?.name||t?.email?.split("@")[0]||void 0}function ti(t){const e=K_(t),s=Date.now().toString(36).split("").reverse().join("");return`${e}-${s}`}function zh(t){return!!t.harness_id||!!t.title&&t.title!=="New chat"}function q_(t){return{threadId:t.routeThreadId,providerKey:t.routeThreadId??t.fallbackKey}}function V_(t){return t.sidePanelOpen||t.mainOpen?t:{...t,sidePanelOpen:!0}}function G_(t){const e=t.entityMetadata?.defaultMainView??null,s=e==null||e.type==="chat",i=t.mainPanelParam??(t.panelNamed||!!t.routeDefaultMain||!s),r=t.routeDefaultMain?!1:s||t.entityMetadata?.chatDefaultOpen===!0||t.threadHasMessages===!0,n=t.sidePanelParamPresent?t.sidePanelParamValue===!0:r;return V_({sidePanelOpen:n,mainOpen:i})}function Ua(t,e){switch(t.type){case"toggleSidePanel":return e.sidePanelOpen?e.mainOpen?{sidepanel:!1}:null:{sidepanel:!0};case"toggleMain":return e.mainOpen?{mainpanel:!1,sidepanel:!0}:{mainpanel:!0};case"openSidePanel":return e.sidePanelOpen?null:{sidepanel:!0}}}function Y_(t){return t.sidePanelOpen&&t.mainOpen?{side:33,main:67}:t.sidePanelOpen?{side:100,main:0}:t.mainOpen?{side:0,main:100}:{side:0,main:0}}function X_(t){const{sidePanelOpen:e,mainOpen:s}=t.visibility;return e&&(t.sidePanelParamPresent||!s)?"chat":s?"main":"chat"}function J_(t){return t==="main"?{sidepanel:!1,mainpanel:!0}:{sidepanel:!0,mainpanel:!1}}function Z_(t,e){const s=ji(),i=np(),r=Ii({strict:!1}),n=ri({strict:!1}),{create:o}=zo(),{threads:a}=Ir(),{virtualMcpId:c,isAgentRoute:l}=e,u=lp(),d=Ho(),f=$i(),p=O.useRef(crypto.randomUUID()),{threadId:_,providerKey:g}=q_({routeThreadId:f,fallbackKey:p.current}),v=_!=null?a.find(N=>N.id===_):void 0,{sidePanelOpen:b,mainOpen:k}=G_({entityMetadata:t,mainPanelParam:r.mainpanel,panelNamed:d!==void 0,sidePanelParamPresent:r.sidepanel!==void 0,sidePanelParamValue:r.sidepanel,routeDefaultMain:u,threadHasMessages:v?zh(v):!1}),w={sidePanelOpen:b,mainOpen:k},S=l&&n.taskId!==void 0?{virtualmcpid:c}:{},m=(N,T)=>{s({to:".",search:R=>({...R,...N}),replace:T?.replace??!1})},x=()=>{const N=Ua({type:"toggleMain"},w);N&&m(N,{replace:!0})},y=()=>{const N=Ua({type:"toggleSidePanel"},w);N&&m(N,{replace:!0})},C=async()=>{const N=crypto.randomUUID(),T=a.find(R=>R.id===_)?.branch??null;try{await o({id:N,virtual_mcp_id:c,...T?{branch:T}:{}})}catch{}i(N,()=>({...S}))};return{threadId:_,providerKey:g,sidePanelOpen:b,mainOpen:k,sidePanelParamPresent:r.sidepanel!==void 0,toggleMain:x,toggleSidePanel:y,createNewTask:C}}function Q_(t){const e=H.c(10),{org:s}=ut(),i=Kf(),{data:r}=hs.useSession(),n=r?.user?.id,o=t?.id??null,a=!!t&&!!n&&!!t.created_by&&t.created_by!==n;let c;e[0]!==s.id||e[1]!==o?(c=ks.viewedThreadMetadataRefresh(s.id,o??""),e[0]=s.id,e[1]=o,e[2]=c):c=e[2];const l=!!i&&!!o&&a;let u;e[3]!==i||e[4]!==o?(u=async()=>(await i?.refreshThreadMetadata(o??""),!0),e[3]=i,e[4]=o,e[5]=u):u=e[5];let d;e[6]!==c||e[7]!==l||e[8]!==u?(d={queryKey:c,enabled:l,staleTime:Number.POSITIVE_INFINITY,queryFn:u},e[6]=c,e[7]=l,e[8]=u,e[9]=d):d=e[9],es(d)}function em(t,e){return t.some(s=>s.branch===e.branch)?t:[...t,e]}function tm(t,e){return t.filter(s=>s.branch!==e)}function sm(t,e,s){return t.map(i=>i.branch===e?{...i,name:s}:i)}const Ka=["orange","violet","blue","pink","amber","teal"];function hr(t){return Ka[t%Ka.length]}function Bn(t,e){const s=`${e} `,i=t.reduce((r,n)=>{if(!n.name.startsWith(s))return r;const o=Number(n.name.slice(s.length));return Number.isInteger(o)&&o>r?o:r},0);return`${e} ${i+1}`}const im={orange:"bg-orange-500",violet:"bg-violet-500",blue:"bg-blue-500",pink:"bg-pink-500",amber:"bg-amber-500",teal:"bg-teal-500"};function en(t){return t&&im[t]||"bg-muted-foreground"}function Fr(t){const e=H.c(26),s=us(t),i=Nf(),{org:r}=ut(),n=Lc();let o;e[0]!==s?.metadata?.releases?(o=s?.metadata?.releases??[],e[0]=s?.metadata?.releases,e[1]=o):o=e[1];const a=o;let c;e[2]!==r||e[3]!==t?(c=m=>m[1]===r.id&&m[3]==="collection"&&m[4]==="VIRTUAL_MCP"&&m[5]===t,e[2]=r,e[3]=t,e[4]=c):c=e[4];const l=c;let u;e[5]!==l||e[6]!==n||e[7]!==a?(u=()=>{for(const[,m]of n.getQueriesData({predicate:x=>l(x.queryKey)}))if(m?.item)return m.item.metadata?.releases??[];return a},e[5]=l,e[6]=n,e[7]=a,e[8]=u):u=e[8];const d=u;let f;e[9]!==i||e[10]!==l||e[11]!==n||e[12]!==d||e[13]!==t?(f=m=>cp(`vm-releases:${t}`,async()=>{const x=d(),y=m(x);if(y!==x){n.setQueriesData({predicate:C=>l(C.queryKey)},C=>C?.item?{item:{...C.item,metadata:{...C.item.metadata,releases:y}}}:C);try{await i.update.mutateAsync({id:t,data:{metadata:{releases:y}}})}catch(C){const N=C;throw n.invalidateQueries({predicate:T=>l(T.queryKey)}),N}}}),e[9]=i,e[10]=l,e[11]=n,e[12]=d,e[13]=t,e[14]=f):f=e[14];const p=f;let _;e[15]!==p?(_=m=>p(x=>em(x,m)),e[15]=p,e[16]=_):_=e[16];const g=_;let v;e[17]!==p?(v=(m,x)=>p(y=>sm(y,m,x)),e[17]=p,e[18]=v):v=e[18];const b=v;let k;e[19]!==p?(k=m=>p(x=>tm(x,m)),e[19]=p,e[20]=k):k=e[20];const w=k;let S;return e[21]!==g||e[22]!==w||e[23]!==a||e[24]!==b?(S={releases:a,createRelease:g,renameRelease:b,deleteRelease:w},e[21]=g,e[22]=w,e[23]=a,e[24]=b,e[25]=S):S=e[25],S}function rm(t,e){const s=getComputedStyle(t),i=parseFloat(s.fontSize);return e*i}function nm(t,e){const s=getComputedStyle(t.ownerDocument.documentElement),i=parseFloat(s.fontSize);return e*i}function om(t){return t/100*window.innerHeight}function am(t){return t/100*window.innerWidth}function lm(t){switch(typeof t){case"number":return[t,"px"];case"string":{const e=parseFloat(t);return t.endsWith("%")?[e,"%"]:t.endsWith("px")?[e,"px"]:t.endsWith("rem")?[e,"rem"]:t.endsWith("em")?[e,"em"]:t.endsWith("vh")?[e,"vh"]:t.endsWith("vw")?[e,"vw"]:[e,"%"]}}}function mi({groupSize:t,panelElement:e,styleProp:s}){let i;const[r,n]=lm(s);switch(n){case"%":{i=r/100*t;break}case"px":{i=r;break}case"rem":{i=nm(e,r);break}case"em":{i=rm(e,r);break}case"vh":{i=om(r);break}case"vw":{i=am(r);break}}return i}function vt(t){return parseFloat(t.toFixed(3))}function si({group:t}){const{orientation:e,panels:s}=t;return s.reduce((i,r)=>(i+=e==="horizontal"?r.element.offsetWidth:r.element.offsetHeight,i),0)}function Ln(t){const{panels:e}=t,s=si({group:t});return s===0?e.map(i=>({groupResizeBehavior:i.panelConstraints.groupResizeBehavior,collapsedSize:0,collapsible:i.panelConstraints.collapsible===!0,defaultSize:void 0,disabled:i.panelConstraints.disabled,minSize:0,maxSize:100,panelId:i.id})):e.map(i=>{const{element:r,panelConstraints:n}=i;let o=0;if(n.collapsedSize!==void 0){const u=mi({groupSize:s,panelElement:r,styleProp:n.collapsedSize});o=vt(u/s*100)}let a;if(n.defaultSize!==void 0){const u=mi({groupSize:s,panelElement:r,styleProp:n.defaultSize});a=vt(u/s*100)}let c=0;if(n.minSize!==void 0){const u=mi({groupSize:s,panelElement:r,styleProp:n.minSize});c=vt(u/s*100)}let l=100;if(n.maxSize!==void 0){const u=mi({groupSize:s,panelElement:r,styleProp:n.maxSize});l=vt(u/s*100)}return{groupResizeBehavior:n.groupResizeBehavior,collapsedSize:o,collapsible:n.collapsible===!0,defaultSize:a,disabled:n.disabled,minSize:c,maxSize:l,panelId:i.id}})}function De(t,e="Assertion error"){if(!t)throw Error(e)}function jn(t,e){return Array.from(e).sort(t==="horizontal"?cm:hm)}function cm(t,e){const s=t.element.offsetLeft-e.element.offsetLeft;return s!==0?s:t.element.offsetWidth-e.element.offsetWidth}function hm(t,e){const s=t.element.offsetTop-e.element.offsetTop;return s!==0?s:t.element.offsetHeight-e.element.offsetHeight}function $h(t){return t!==null&&typeof t=="object"&&"nodeType"in t&&t.nodeType===Node.ELEMENT_NODE}function Fh(t,e){return{x:t.x>=e.left&&t.x<=e.right?0:Math.min(Math.abs(t.x-e.left),Math.abs(t.x-e.right)),y:t.y>=e.top&&t.y<=e.bottom?0:Math.min(Math.abs(t.y-e.top),Math.abs(t.y-e.bottom))}}function dm({orientation:t,rects:e,targetRect:s}){const i={x:s.x+s.width/2,y:s.y+s.height/2};let r,n=Number.MAX_VALUE;for(const o of e){const{x:a,y:c}=Fh(i,o),l=t==="horizontal"?a:c;l<n&&(n=l,r=o)}return De(r,"No rect found"),r}let Zi;function um(){return Zi===void 0&&(typeof matchMedia=="function"?Zi=!!matchMedia("(pointer:coarse)").matches:Zi=!1),Zi}function Hh(t){const{element:e,orientation:s,panels:i,separators:r}=t,n=jn(s,Array.from(e.children).filter($h).map(_=>({element:_}))).map(({element:_})=>_),o=[];let a=!1,c=!1,l=-1,u=-1,d=0,f,p=[];{let _=-1;for(const g of n)g.hasAttribute("data-panel")&&(_++,g.hasAttribute("data-disabled")||(d++,l===-1&&(l=_),u=_))}if(d>1){let _=-1;for(const g of n)if(g.hasAttribute("data-panel")){_++;const v=i.find(b=>b.element===g);if(v){if(f){const b=f.element.getBoundingClientRect(),k=g.getBoundingClientRect();let w;if(c){const S=s==="horizontal"?new DOMRect(b.right,b.top,0,b.height):new DOMRect(b.left,b.bottom,b.width,0),m=s==="horizontal"?new DOMRect(k.left,k.top,0,k.height):new DOMRect(k.left,k.top,k.width,0);switch(p.length){case 0:{w=[S,m];break}case 1:{const x=p[0],y=dm({orientation:s,rects:[b,k],targetRect:x.element.getBoundingClientRect()});w=[x,y===b?m:S];break}default:{w=p;break}}}else p.length?w=p:w=[s==="horizontal"?new DOMRect(b.right,k.top,k.left-b.right,k.height):new DOMRect(k.left,b.bottom,k.width,k.top-b.bottom)];for(const S of w){let m="width"in S?S:S.element.getBoundingClientRect();const x=um()?t.resizeTargetMinimumSize.coarse:t.resizeTargetMinimumSize.fine;if(m.width<x){const C=x-m.width;m=new DOMRect(m.x-C/2,m.y,m.width+C,m.height)}if(m.height<x){const C=x-m.height;m=new DOMRect(m.x,m.y-C/2,m.width,m.height+C)}const y=_<=l||_>u;!a&&!y&&o.push({group:t,groupSize:si({group:t}),panels:[f,v],separator:"width"in S?void 0:S,rect:m}),a=!1}}c=!1,f=v,p=[]}}else if(g.hasAttribute("data-separator")){g.ariaDisabled!==null&&(a=!0);const v=r.find(b=>b.element===g);v?p.push(v):(f=void 0,p=[])}else c=!0}return o}class Wh{#e={};addListener(e,s){const i=this.#e[e];return i===void 0?this.#e[e]=[s]:i.includes(s)||i.push(s),()=>{this.removeListener(e,s)}}emit(e,s){const i=this.#e[e];if(i!==void 0)if(i.length===1)i[0].call(null,s);else{let r=!1,n=null;const o=Array.from(i);for(let a=0;a<o.length;a++){const c=o[a];try{c.call(null,s)}catch(l){n===null&&(r=!0,n=l)}}if(r)throw n}}removeAllListeners(){this.#e={}}removeListener(e,s){const i=this.#e[e];if(i!==void 0){const r=i.indexOf(s);r>=0&&i.splice(r,1)}}}let Zs={cursorFlags:0,state:"inactive"};const sa=new Wh;function Ls(){return Zs}function fm(t){return sa.addListener("change",t)}function pm(t){const e=Zs,s={...Zs};s.cursorFlags=t,Zs=s,sa.emit("change",{prev:e,next:s})}function Qs(t){const e=Zs;Zs=t,sa.emit("change",{prev:e,next:t})}const _m=t=>t,tn=()=>{},Uh=1,Kh=2,qh=4,Vh=8,qa=3,Va=12;let Qi;function Ga(){return Qi===void 0&&(Qi=!1,typeof window<"u"&&(window.navigator.userAgent.includes("Chrome")||window.navigator.userAgent.includes("Firefox"))&&(Qi=!0)),Qi}function mm({cursorFlags:t,groups:e,state:s}){let i=0,r=0;switch(s){case"active":case"hover":e.forEach(n=>{if(!n.mutableState.disableCursor)switch(n.orientation){case"horizontal":{i++;break}case"vertical":{r++;break}}})}if(!(i===0&&r===0)){switch(s){case"active":{if(t&&Ga()){const n=(t&Uh)!==0,o=(t&Kh)!==0,a=(t&qh)!==0,c=(t&Vh)!==0;if(n)return a?"se-resize":c?"ne-resize":"e-resize";if(o)return a?"sw-resize":c?"nw-resize":"w-resize";if(a)return"s-resize";if(c)return"n-resize"}break}}return Ga()?i>0&&r>0?"move":i>0?"ew-resize":"ns-resize":i>0&&r>0?"grab":i>0?"col-resize":"row-resize"}}const Ya=new WeakMap;function ia(t){if(t.defaultView===null||t.defaultView===void 0)return;let{prevStyle:e,styleSheet:s}=Ya.get(t)??{};s===void 0&&(s=new t.defaultView.CSSStyleSheet,t.adoptedStyleSheets&&(Object.isExtensible(t.adoptedStyleSheets)?t.adoptedStyleSheets.push(s):t.adoptedStyleSheets=[...t.adoptedStyleSheets,s]));const i=Ls();switch(i.state){case"active":case"hover":{const r=mm({cursorFlags:i.cursorFlags,groups:i.hitRegions.map(o=>o.group),state:i.state}),n=`*, *:hover {cursor: ${r} !important; }`;if(e===n)return;e=n,r?s.cssRules.length===0?s.insertRule(n):s.replaceSync(n):s.cssRules.length===1&&s.deleteRule(0);break}case"inactive":{e=void 0,s.cssRules.length===1&&s.deleteRule(0);break}}Ya.set(t,{prevStyle:e,styleSheet:s})}let Xt=new Map;const Gh=new Wh;function gm(t){Xt=new Map(Xt),Xt.delete(t)}function Xa(t,e){for(const[s]of Xt)if(s.id===t)return s}function xs(t,e){for(const[s,i]of Xt)if(s.id===t)return i;if(e)throw Error(`Could not find data for Group with id ${t}`)}function Fs(){return Xt}function ra(t,e){return Gh.addListener("groupChange",s=>{s.group.id===t&&e(s)})}function cs(t,e,s){const i=Xt.get(t);Xt=new Map(Xt),Xt.set(t,e),Gh.emit("groupChange",{group:t,isUserInteraction:s?.isUserInteraction===!0,prev:i,next:e})}function Yh(t){const e=Ls();let s=!1;return e.state==="active"&&(Qs({cursorFlags:0,state:"inactive"}),e.hitRegions.length>0&&(ia(t),s=!0,e.hitRegions.forEach(i=>{const r=xs(i.group.id,!0);cs(i.group,r,{isUserInteraction:!0})}))),s}function Ja(t){t.defaultPrevented||Yh(t.currentTarget)}function vm(t,e,s){let i,r={x:1/0,y:1/0};for(const n of e){const o=Fh(s,n.rect);switch(t){case"horizontal":{o.x<=r.x&&(i=n,r=o);break}case"vertical":{o.y<=r.y&&(i=n,r=o);break}}}return i?{distance:r,hitRegion:i}:void 0}function bm(t){return t!==null&&typeof t=="object"&&"nodeType"in t&&t.nodeType===Node.DOCUMENT_FRAGMENT_NODE}function Sm(t,e){if(t===e)throw new Error("Cannot compare node with itself");const s={a:el(t),b:el(e)};let i;for(;s.a.at(-1)===s.b.at(-1);)i=s.a.pop(),s.b.pop();De(i,"Stacking order can only be calculated for elements with a common ancestor");const r={a:Qa(Za(s.a)),b:Qa(Za(s.b))};if(r.a===r.b){const n=i.childNodes,o={a:s.a.at(-1),b:s.b.at(-1)};let a=n.length;for(;a--;){const c=n[a];if(c===o.a)return 1;if(c===o.b)return-1}}return Math.sign(r.a-r.b)}const ym=/\b(?:position|zIndex|opacity|transform|webkitTransform|mixBlendMode|filter|webkitFilter|isolation)\b/;function xm(t){const e=getComputedStyle(Xh(t)??t).display;return e==="flex"||e==="inline-flex"}function wm(t){const e=getComputedStyle(t);return!!(e.position==="fixed"||e.zIndex!=="auto"&&(e.position!=="static"||xm(t))||+e.opacity<1||"transform"in e&&e.transform!=="none"||"webkitTransform"in e&&e.webkitTransform!=="none"||"mixBlendMode"in e&&e.mixBlendMode!=="normal"||"filter"in e&&e.filter!=="none"||"webkitFilter"in e&&e.webkitFilter!=="none"||"isolation"in e&&e.isolation==="isolate"||ym.test(e.willChange)||e.webkitOverflowScrolling==="touch")}function Za(t){let e=t.length;for(;e--;){const s=t[e];if(De(s,"Missing node"),wm(s))return s}return null}function Qa(t){return t&&Number(getComputedStyle(t).zIndex)||0}function el(t){const e=[];for(;t;)e.push(t),t=Xh(t);return e}function Xh(t){const{parentNode:e}=t;return bm(e)?e.host:e}function Cm(t,e){return t.x<e.x+e.width&&t.x+t.width>e.x&&t.y<e.y+e.height&&t.y+t.height>e.y}function km({groupElement:t,hitRegion:e,pointerEventTarget:s}){if(!$h(s)||s.contains(t)||t.contains(s))return!0;if(Sm(s,t)>0){let i=s;for(;i;){if(i.contains(t))return!0;if(Cm(i.getBoundingClientRect(),e))return!1;i=i.parentElement}}return!0}function na(t,e){const s=[];return e.forEach((i,r)=>{if(r.disabled)return;const n=Hh(r),o=vm(r.orientation,n,{x:t.clientX,y:t.clientY});o&&o.distance.x<=0&&o.distance.y<=0&&km({groupElement:r.element,hitRegion:o.hitRegion.rect,pointerEventTarget:t.target})&&s.push(o.hitRegion)}),s}function Pm(t,e){if(t.length!==e.length)return!1;for(let s=0;s<t.length;s++)if(t[s]!=e[s])return!1;return!0}function pt(t,e,s=0){return Math.abs(vt(t)-vt(e))<=s}function Yt(t,e){return pt(t,e)?0:t>e?1:-1}function Xs({overrideDisabledPanels:t,panelConstraints:e,prevSize:s,size:i}){const{collapsedSize:r=0,collapsible:n,disabled:o,maxSize:a=100,minSize:c=0}=e;if(o&&!t)return s;if(Yt(i,c)<0)if(n){const l=(r+c)/2;Yt(i,l)<0?i=r:i=c}else i=c;return i=Math.min(a,i),i=vt(i),i}function Ti({delta:t,initialLayout:e,panelConstraints:s,pivotIndices:i,prevLayout:r,trigger:n}){if(pt(t,0))return e;const o=n==="imperative-api",a=Object.values(e),c=Object.values(r),l=[...a],[u,d]=i;De(u!=null,"Invalid first pivot index"),De(d!=null,"Invalid second pivot index");let f=0;switch(n){case"keyboard":{{const g=t<0?d:u,v=s[g];De(v,`Panel constraints not found for index ${g}`);const{collapsedSize:b=0,collapsible:k,minSize:w=0}=v;if(k){const S=a[g];if(De(S!=null,`Previous layout not found for panel index ${g}`),pt(S,b)){const m=w-S;Yt(m,Math.abs(t))>0&&(t=t<0?0-m:m)}}}{const g=t<0?u:d,v=s[g];De(v,`No panel constraints found for index ${g}`);const{collapsedSize:b=0,collapsible:k,minSize:w=0}=v;if(k){const S=a[g];if(De(S!=null,`Previous layout not found for panel index ${g}`),pt(S,w)){const m=S-b;Yt(m,Math.abs(t))>0&&(t=t<0?0-m:m)}}}break}default:{const g=t<0?d:u,v=s[g];De(v,`Panel constraints not found for index ${g}`);const b=a[g],{collapsible:k,collapsedSize:w,minSize:S}=v;if(k&&Yt(b,S)<0)if(t>0){const m=S-w,x=m/2,y=b+t;Yt(y,S)<0&&(t=Yt(t,x)<=0?0:m)}else{const m=S-w,x=100-m/2,y=b-t;Yt(y,S)<0&&(t=Yt(100+t,x)>0?0:-m)}break}}{const g=t<0?1:-1;let v=t<0?d:u,b=0;for(;;){const w=a[v];De(w!=null,`Previous layout not found for panel index ${v}`);const S=Xs({overrideDisabledPanels:o,panelConstraints:s[v],prevSize:w,size:100})-w;if(b+=S,v+=g,v<0||v>=s.length)break}const k=Math.min(Math.abs(t),Math.abs(b));t=t<0?0-k:k}{let g=t<0?u:d;for(;g>=0&&g<s.length;){const v=Math.abs(t)-Math.abs(f),b=a[g];De(b!=null,`Previous layout not found for panel index ${g}`);const k=b-v,w=Xs({overrideDisabledPanels:o,panelConstraints:s[g],prevSize:b,size:k});if(!pt(b,w)&&(f+=b-w,l[g]=w,f.toFixed(3).localeCompare(Math.abs(t).toFixed(3),void 0,{numeric:!0})>=0))break;t<0?g--:g++}}if(Pm(c,l))return r;{const g=t<0?d:u,v=a[g];De(v!=null,`Previous layout not found for panel index ${g}`);const b=v+f,k=Xs({overrideDisabledPanels:o,panelConstraints:s[g],prevSize:v,size:b});if(l[g]=k,!pt(k,b)){let w=b-k,S=t<0?d:u;for(;S>=0&&S<s.length;){const m=l[S];De(m!=null,`Previous layout not found for panel index ${S}`);const x=m+w,y=Xs({overrideDisabledPanels:o,panelConstraints:s[S],prevSize:m,size:x});if(pt(m,y)||(w-=y-m,l[S]=y),pt(w,0))break;t>0?S--:S++}}}const p=Object.values(l).reduce((g,v)=>v+g,0);if(!pt(p,100,.1))return r;const _=Object.keys(r);return l.reduce((g,v,b)=>(g[_[b]]=v,g),{})}function js(t,e){if(Object.keys(t).length!==Object.keys(e).length)return!1;for(const s in t)if(e[s]===void 0||Yt(t[s],e[s])!==0)return!1;return!0}function Is({layout:t,panelConstraints:e}){const s=Object.values(t),i=[...s],r=i.reduce((a,c)=>a+c,0);if(i.length!==e.length)throw Error(`Invalid ${e.length} panel layout: ${i.map(a=>`${a}%`).join(", ")}`);if(!pt(r,100)&&i.length>0)for(let a=0;a<e.length;a++){const c=i[a];De(c!=null,`No layout data found for index ${a}`);const l=100/r*c;i[a]=l}let n=0;for(let a=0;a<e.length;a++){const c=s[a];De(c!=null,`No layout data found for index ${a}`);const l=i[a];De(l!=null,`No layout data found for index ${a}`);const u=Xs({overrideDisabledPanels:!0,panelConstraints:e[a],prevSize:c,size:l});l!=u&&(n+=l-u,i[a]=u)}if(!pt(n,0))for(let a=0;a<e.length;a++){const c=i[a];De(c!=null,`No layout data found for index ${a}`);const l=c+n,u=Xs({overrideDisabledPanels:!0,panelConstraints:e[a],prevSize:c,size:l});if(c!==u&&(n-=u-c,i[a]=u,pt(n,0)))break}const o=Object.keys(t);return i.reduce((a,c,l)=>(a[o[l]]=c,a),{})}function Jh({groupId:t,panelId:e}){const s=()=>{const c=Fs();for(const[l,{defaultLayoutDeferred:u,derivedPanelConstraints:d,layout:f,groupSize:p,separatorToPanels:_}]of c)if(l.id===t)return{defaultLayoutDeferred:u,derivedPanelConstraints:d,group:l,groupSize:p,layout:f,separatorToPanels:_};throw Error(`Group ${t} not found`)},i=()=>{const c=s().derivedPanelConstraints.find(l=>l.panelId===e);if(c!==void 0)return c;throw Error(`Panel constraints not found for Panel ${e}`)},r=()=>{const c=s().group.panels.find(l=>l.id===e);if(c!==void 0)return c;throw Error(`Layout not found for Panel ${e}`)},n=()=>{const c=s().layout[e];if(c!==void 0)return c;throw Error(`Layout not found for Panel ${e}`)},o=({nextSize:c,panels:l,prevLayout:u,derivedPanelConstraints:d})=>{const f=n(),p=l.findIndex(v=>v.id===e),_=p===0,g=p===l.length-1;if(g&&c<f&&(_||l.slice(0,p).every((v,b)=>{const k=d[b];return k?.collapsible&&pt(k.collapsedSize,u[k.panelId])}))){const v=l.slice(0,p).reduce((b,k)=>b+u[k.id],0);return{...u,[e]:vt(100-v)}}return Ti({delta:g?f-c:c-f,initialLayout:u,panelConstraints:d,pivotIndices:g?[p-1,p]:[p,p+1],prevLayout:u,trigger:"imperative-api"})},a=c=>{const l=n();if(c===l)return;const{defaultLayoutDeferred:u,derivedPanelConstraints:d,group:f,groupSize:p,layout:_,separatorToPanels:g}=s(),v=o({nextSize:c,panels:f.panels,prevLayout:_,derivedPanelConstraints:d}),b=Is({layout:v,panelConstraints:d});js(_,b)||cs(f,{defaultLayoutDeferred:u,derivedPanelConstraints:d,groupSize:p,layout:b,separatorToPanels:g})};return{collapse:()=>{const{collapsible:c,collapsedSize:l}=i(),{mutableValues:u}=r(),d=n();c&&d!==l&&(u.expandToSize=d,a(l))},expand:()=>{const{collapsible:c,collapsedSize:l,minSize:u}=i(),{mutableValues:d}=r(),f=n();if(c&&f===l){let p=d.expandToSize??u;p===0&&(p=1),a(p)}},getSize:()=>{const{group:c}=s(),l=n(),{element:u}=r(),d=c.orientation==="horizontal"?u.offsetWidth:u.offsetHeight;return{asPercentage:l,inPixels:d}},isCollapsed:()=>{const{collapsible:c,collapsedSize:l}=i(),u=n();return c&&pt(l,u)},resize:c=>{const{group:l}=s(),{element:u}=r(),d=si({group:l}),f=mi({groupSize:d,panelElement:u,styleProp:c}),p=vt(f/d*100);a(p)}}}function tl(t){if(t.defaultPrevented)return;const e=Fs();na(t,e).forEach(s=>{if(s.separator&&!s.separator.disableDoubleClick){const i=s.panels.find(r=>r.panelConstraints.defaultSize!==void 0);if(i){const r=i.panelConstraints.defaultSize,n=Jh({groupId:s.group.id,panelId:i.id});n&&r!==void 0&&(n.resize(r),t.preventDefault())}}})}function dr(t){const e=Fs();for(const[s]of e)if(s.separators.some(i=>i.element===t))return s;throw Error("Could not find parent Group for separator element")}function Zh({groupId:t}){const e=()=>{const s=Fs();for(const[i,r]of s)if(i.id===t)return{group:i,...r};throw Error(`Could not find Group with id "${t}"`)};return{getLayout(){const{defaultLayoutDeferred:s,layout:i}=e();return s?{}:i},setLayout(s){const{defaultLayoutDeferred:i,derivedPanelConstraints:r,group:n,groupSize:o,layout:a,separatorToPanels:c}=e(),l=Is({layout:s,panelConstraints:r});return i?a:(js(a,l)||cs(n,{defaultLayoutDeferred:i,derivedPanelConstraints:r,groupSize:o,layout:l,separatorToPanels:c}),l)}}}function Rs(t,e){const s=dr(t),i=xs(s.id,!0),r=s.separators.find(u=>u.element===t);De(r,"Matching separator not found");const n=i.separatorToPanels.get(r);De(n,"Matching panels not found");const o=n.map(u=>s.panels.indexOf(u)),a=Zh({groupId:s.id}).getLayout(),c=Ti({delta:e,initialLayout:a,panelConstraints:i.derivedPanelConstraints,pivotIndices:o,prevLayout:a,trigger:"keyboard"}),l=Is({layout:c,panelConstraints:i.derivedPanelConstraints});js(a,l)||cs(s,{defaultLayoutDeferred:i.defaultLayoutDeferred,derivedPanelConstraints:i.derivedPanelConstraints,groupSize:i.groupSize,layout:l,separatorToPanels:i.separatorToPanels},{isUserInteraction:!0})}function sl(t){if(t.defaultPrevented)return;const e=t.currentTarget,s=dr(e);if(!s.disabled)switch(t.key){case"ArrowDown":{t.preventDefault(),s.orientation==="vertical"&&Rs(e,5);break}case"ArrowLeft":{t.preventDefault(),s.orientation==="horizontal"&&Rs(e,-5);break}case"ArrowRight":{t.preventDefault(),s.orientation==="horizontal"&&Rs(e,5);break}case"ArrowUp":{t.preventDefault(),s.orientation==="vertical"&&Rs(e,-5);break}case"End":{t.preventDefault(),Rs(e,100);break}case"Enter":{t.preventDefault();const i=dr(e),r=xs(i.id,!0),{derivedPanelConstraints:n,layout:o,separatorToPanels:a}=r,c=i.separators.find(f=>f.element===e);De(c,"Matching separator not found");const l=a.get(c);De(l,"Matching panels not found");const u=l[0],d=n.find(f=>f.panelId===u.id);if(De(d,"Panel metadata not found"),d.collapsible){const f=o[u.id],p=d.collapsedSize===f?i.mutableState.expandedPanelSizes[u.id]??d.minSize:d.collapsedSize;Rs(e,p-f)}break}case"F6":{t.preventDefault();const i=dr(e).separators.map(o=>o.element),r=Array.from(i).findIndex(o=>o===t.currentTarget);De(r!==null,"Index not found");const n=t.shiftKey?r>0?r-1:i.length-1:r+1<i.length?r+1:0;i[n].focus({preventScroll:!0});break}case"Home":{t.preventDefault(),Rs(e,-100);break}}}function il(t){if(t.defaultPrevented||t.pointerType==="mouse"&&t.button>0)return;const e=Fs(),s=na(t,e),i=new Map;let r=!1;s.forEach(n=>{n.separator&&(r||(r=!0,n.separator.element.focus({focusVisible:!1,preventScroll:!0})));const o=e.get(n.group);o&&i.set(n.group,o.layout)}),Qs({cursorFlags:0,hitRegions:s,initialLayoutMap:i,pointerDownAtPoint:{x:t.clientX,y:t.clientY},state:"active"}),s.length&&t.preventDefault()}function Qh({document:t,event:e,hitRegions:s,initialLayoutMap:i,mountedGroups:r,pointerDownAtPoint:n,prevCursorFlags:o}){let a=0;s.forEach(l=>{const{group:u,groupSize:d}=l,{orientation:f,panels:p}=u,{disableCursor:_}=u.mutableState;let g=0;n?f==="horizontal"?g=(e.clientX-n.x)/d*100:g=(e.clientY-n.y)/d*100:f==="horizontal"?g=e.clientX<0?-100:100:g=e.clientY<0?-100:100;const v=i.get(u),b=r.get(u);if(!v||!b)return;const{defaultLayoutDeferred:k,derivedPanelConstraints:w,groupSize:S,layout:m,separatorToPanels:x}=b;if(w&&m&&x){const y=Ti({delta:g,initialLayout:v,panelConstraints:w,pivotIndices:l.panels.map(C=>p.indexOf(C)),prevLayout:m,trigger:"mouse-or-touch"});if(js(y,m)){if(g!==0&&!_)switch(f){case"horizontal":{a|=g<0?Uh:Kh;break}case"vertical":{a|=g<0?qh:Vh;break}}}else cs(l.group,{defaultLayoutDeferred:k,derivedPanelConstraints:w,groupSize:S,layout:y,separatorToPanels:x})}});let c=0;e.movementX===0?c|=o&qa:c|=a&qa,e.movementY===0?c|=o&Va:c|=a&Va,pm(c),ia(t)}function rl(t){const e=Fs(),s=Ls();s.state==="active"&&Qh({document:t.currentTarget,event:t,hitRegions:s.hitRegions,initialLayoutMap:s.initialLayoutMap,mountedGroups:e,prevCursorFlags:s.cursorFlags})}function nl(t){if(t.defaultPrevented)return;const e=Ls(),s=Fs();switch(e.state){case"active":{if(t.buttons===0){Qs({cursorFlags:0,state:"inactive"}),e.hitRegions.forEach(i=>{const r=xs(i.group.id,!0);cs(i.group,r,{isUserInteraction:!0})});return}for(const i of e.hitRegions)if(i.separator){const{element:r}=i.separator;r.hasPointerCapture?.(t.pointerId)||r.setPointerCapture?.(t.pointerId)}Qh({document:t.currentTarget,event:t,hitRegions:e.hitRegions,initialLayoutMap:e.initialLayoutMap,mountedGroups:s,pointerDownAtPoint:e.pointerDownAtPoint,prevCursorFlags:e.cursorFlags});break}default:{const i=na(t,s);i.length===0?e.state!=="inactive"&&Qs({cursorFlags:0,state:"inactive"}):Qs({cursorFlags:0,hitRegions:i,state:"hover"}),ia(t.currentTarget);break}}}function ol(t){t.relatedTarget instanceof HTMLIFrameElement&&Ls().state==="hover"&&Qs({cursorFlags:0,state:"inactive"})}function al(t){t.defaultPrevented||t.pointerType==="mouse"&&t.button>0||Yh(t.currentTarget)&&t.preventDefault()}function ll(t){let e=0,s=0;const i={};for(const n of t)if(n.defaultSize!==void 0){e++;const o=vt(n.defaultSize);s+=o,i[n.panelId]=o}else i[n.panelId]=void 0;const r=t.length-e;if(r!==0){const n=vt((100-s)/r);for(const o of t)o.defaultSize===void 0&&(i[o.panelId]=n)}return i}function Em(t,e,s){if(!s[0])return;const i=t.panels.find(c=>c.element===e);if(!i||!i.onResize)return;const r=si({group:t}),n=t.orientation==="horizontal"?i.element.offsetWidth:i.element.offsetHeight,o=i.mutableValues.prevSize,a={asPercentage:vt(n/r*100),inPixels:n};i.mutableValues.prevSize=a,i.onResize(a,i.id,o)}function Rm(t,e){if(Object.keys(t).length!==Object.keys(e).length)return!1;for(const s in t)if(t[s]!==e[s])return!1;return!0}function Tm({group:t,nextGroupSize:e,prevGroupSize:s,prevLayout:i}){if(s<=0||e<=0||s===e)return i;let r=0,n=0,o=!1;const a=new Map,c=[];for(const d of t.panels){const f=i[d.id]??0;if(d.panelConstraints.groupResizeBehavior==="preserve-pixel-size"){o=!0;const p=f/100*s,_=vt(p/e*100);a.set(d.id,_),r+=_}else c.push(d.id),n+=f}if(!o||c.length===0)return i;const l=100-r,u={...i};if(a.forEach((d,f)=>{u[f]=d}),n>0)for(const d of c){const f=i[d]??0;u[d]=vt(f/n*l)}else{const d=vt(l/c.length);for(const f of c)u[f]=d}return u}function Am(t,e){const s=t.map(r=>r.id),i=Object.keys(e);if(s.length!==i.length)return!1;for(const r of s)if(!i.includes(r))return!1;return!0}const Ks=new Map;function Dm(t){let e=!0;De(t.element.ownerDocument.defaultView,"Cannot register an unmounted Group");const s=t.element.ownerDocument.defaultView.ResizeObserver,i=new Set,r=new Set,n=new s(_=>{for(const g of _){const{borderBoxSize:v,target:b}=g;if(b===t.element){if(e){const k=si({group:t});if(k===0)return;const w=xs(t.id);if(!w)return;const S=Ln(t),m=w.defaultLayoutDeferred?ll(S):w.layout,x=Tm({group:t,nextGroupSize:k,prevGroupSize:w.groupSize,prevLayout:m}),y=Is({layout:x,panelConstraints:S});if(!w.defaultLayoutDeferred&&js(w.layout,y)&&Rm(w.derivedPanelConstraints,S)&&w.groupSize===k)return;cs(t,{defaultLayoutDeferred:!1,derivedPanelConstraints:S,groupSize:k,layout:y,separatorToPanels:w.separatorToPanels})}}else Em(t,b,v)}});n.observe(t.element),t.panels.forEach(_=>{De(!i.has(_.id),`Panel ids must be unique; id "${_.id}" was used more than once`),i.add(_.id),_.onResize&&n.observe(_.element)});const o=si({group:t}),a=Ln(t),c=t.panels.map(({id:_})=>_).join(",");let l=t.mutableState.defaultLayout;l&&(Am(t.panels,l)||(l=void 0));const u=t.mutableState.layouts[c]??l??ll(a),d=Is({layout:u,panelConstraints:a}),f=t.element.ownerDocument;Ks.set(f,(Ks.get(f)??0)+1);const p=new Map;return Hh(t).forEach(_=>{_.separator&&p.set(_.separator,_.panels)}),cs(t,{defaultLayoutDeferred:o===0,derivedPanelConstraints:a,groupSize:o,layout:d,separatorToPanels:p}),t.separators.forEach(_=>{De(!r.has(_.id),`Separator ids must be unique; id "${_.id}" was used more than once`),r.add(_.id),_.element.addEventListener("keydown",sl)}),Ks.get(f)===1&&(f.addEventListener("contextmenu",Ja,!0),f.addEventListener("dblclick",tl,!0),f.addEventListener("pointerdown",il,!0),f.addEventListener("pointerleave",rl),f.addEventListener("pointermove",nl),f.addEventListener("pointerout",ol),f.addEventListener("pointerup",al,!0)),function(){e=!1,Ks.set(f,Math.max(0,(Ks.get(f)??0)-1)),gm(t),t.separators.forEach(_=>{_.element.removeEventListener("keydown",sl)}),Ks.get(f)||(f.removeEventListener("contextmenu",Ja,!0),f.removeEventListener("dblclick",tl,!0),f.removeEventListener("pointerdown",il,!0),f.removeEventListener("pointerleave",rl),f.removeEventListener("pointermove",nl),f.removeEventListener("pointerout",ol),f.removeEventListener("pointerup",al,!0)),n.disconnect()}}function Nm(){const[t,e]=O.useState({}),s=O.useCallback(()=>e({}),[]);return[t,s]}function oa(t){const e=O.useId();return`${t??e}`}const Hs=typeof window<"u"?O.useLayoutEffect:O.useEffect;function Ci(t){const e=O.useRef(t);return Hs(()=>{e.current=t},[t]),O.useCallback((...s)=>e.current?.(...s),[e])}function aa(...t){return Ci(e=>{t.forEach(s=>{if(s)switch(typeof s){case"function":{s(e);break}case"object":{s.current=e;break}}})})}function la(t){const e=O.useRef({...t});return Hs(()=>{for(const s in t)e.current[s]=t[s]},[t]),e.current}const ed=O.createContext(null);function Mm(t,e){const s=O.useRef({getLayout:()=>({}),setLayout:_m});O.useImperativeHandle(e,()=>s.current,[]),Hs(()=>{Object.assign(s.current,Zh({groupId:t}))})}function td({children:t,className:e,defaultLayout:s,disableCursor:i,disabled:r,elementRef:n,groupRef:o,id:a,onLayoutChange:c,onLayoutChanged:l,orientation:u="horizontal",resizeTargetMinimumSize:d={coarse:20,fine:10},style:f,...p}){const _=O.useRef({onLayoutChange:{},onLayoutChanged:{}}),g=Ci(R=>{js(_.current.onLayoutChange,R)||(_.current.onLayoutChange=R,c?.(R))}),v=Ci((R,E)=>{js(_.current.onLayoutChanged,R)||(_.current.onLayoutChanged=R,l?.(R,{isUserInteraction:E}))}),b=oa(a),k=O.useRef(null),[w,S]=Nm(),m=O.useRef({lastExpandedPanelSizes:{},layouts:{},panels:[],resizeTargetMinimumSize:d,separators:[]}),x=aa(k,n);Mm(b,o);const y=Ci((R,E)=>{const P=Ls(),A=Xa(R),M=xs(R);if(M){let L=!1;return P.state==="active"&&(L=P.hitRegions.some(B=>B.group===A)),{flexGrow:M.layout[E]??1,pointerEvents:L?"none":void 0}}if(s?.[E])return{flexGrow:s?.[E]}}),C=la({defaultLayout:s,disableCursor:i}),N=O.useMemo(()=>({get disableCursor(){return!!C.disableCursor},getPanelStyles:y,id:b,orientation:u,registerPanel:R=>{const E=m.current;return E.panels=jn(u,[...E.panels,R]),S(),()=>{E.panels=E.panels.filter(P=>P!==R),S()}},registerSeparator:R=>{const E=m.current;return E.separators=jn(u,[...E.separators,R]),S(),()=>{E.separators=E.separators.filter(P=>P!==R),S()}},updatePanelProps:(R,{disabled:E})=>{const P=m.current.panels.find(L=>L.id===R);P&&(P.panelConstraints.disabled=E);const A=Xa(b),M=xs(b);A&&M&&cs(A,{...M,derivedPanelConstraints:Ln(A)})},updateSeparatorProps:(R,{disabled:E,disableDoubleClick:P})=>{const A=m.current.separators.find(M=>M.id===R);A&&(A.disabled=E,A.disableDoubleClick=P)}}),[y,b,S,u,C]),T=O.useRef(null);return Hs(()=>{const R=k.current;if(R===null)return;const E=m.current;let P;if(C.defaultLayout!==void 0&&Object.keys(C.defaultLayout).length===E.panels.length){P={};for(const K of E.panels){const z=C.defaultLayout[K.id];z!==void 0&&(P[K.id]=z)}}const A={disabled:!!r,element:R,id:b,mutableState:{defaultLayout:P,disableCursor:!!C.disableCursor,expandedPanelSizes:m.current.lastExpandedPanelSizes,layouts:m.current.layouts},orientation:u,panels:E.panels,resizeTargetMinimumSize:E.resizeTargetMinimumSize,separators:E.separators};T.current=A;const M=Dm(A),{defaultLayoutDeferred:L,derivedPanelConstraints:B,layout:D}=xs(A.id,!0);!L&&B.length>0&&(g(D),v(D,!1));const j=ra(b,K=>{const{defaultLayoutDeferred:z,derivedPanelConstraints:G,layout:I}=K.next;if(z||G.length===0)return;const V=A.panels.map(({id:ee})=>ee).join(",");A.mutableState.layouts[V]=I,G.forEach(ee=>{if(ee.collapsible){const{layout:se}=K.prev??{};if(se){const ie=pt(ee.collapsedSize,I[ee.panelId]),Y=pt(ee.collapsedSize,se[ee.panelId]);ie&&!Y&&(A.mutableState.expandedPanelSizes[ee.panelId]=se[ee.panelId])}}});const $=Ls().state!=="active";g(I),$&&v(I,K.isUserInteraction)});return()=>{T.current=null,M(),j()}},[r,b,v,g,u,w,C]),O.useEffect(()=>{const R=T.current;R&&(R.mutableState.defaultLayout=s,R.mutableState.disableCursor=!!i)}),h.jsx(ed.Provider,{value:N,children:h.jsx("div",{...p,className:e,"data-group":!0,"data-testid":b,id:b,ref:x,style:{height:"100%",width:"100%",overflow:"hidden",...f,display:"flex",flexDirection:u==="horizontal"?"row":"column",flexWrap:"nowrap",touchAction:u==="horizontal"?"pan-y":"pan-x"},children:t})})}td.displayName="Group";function ca(){const t=O.useContext(ed);return De(t,"Group Context not found; did you render a Panel or Separator outside of a Group?"),t}function Bm(t,e){const{id:s}=ca(),i=O.useRef({collapse:tn,expand:tn,getSize:()=>({asPercentage:0,inPixels:0}),isCollapsed:()=>!1,resize:tn});O.useImperativeHandle(e,()=>i.current,[]),Hs(()=>{Object.assign(i.current,Jh({groupId:s,panelId:t}))})}function sd({children:t,className:e,collapsedSize:s="0%",collapsible:i=!1,defaultSize:r,disabled:n,elementRef:o,groupResizeBehavior:a="preserve-relative-size",id:c,maxSize:l="100%",minSize:u="0%",onResize:d,panelRef:f,style:p,..._}){const g=!!c,v=oa(c),b=la({disabled:n}),k=O.useRef(null),w=aa(k,o),{getPanelStyles:S,id:m,orientation:x,registerPanel:y,updatePanelProps:C}=ca(),N=d!==null,T=Ci((A,M,L)=>{d?.(A,c,L)});Hs(()=>{const A=k.current;if(A!==null){const M={element:A,id:v,idIsStable:g,mutableValues:{expandToSize:void 0,prevSize:void 0},onResize:N?T:void 0,panelConstraints:{groupResizeBehavior:a,collapsedSize:s,collapsible:i,defaultSize:r,disabled:b.disabled,maxSize:l,minSize:u}};return y(M)}},[a,s,i,r,N,v,g,l,u,T,y,b]),O.useEffect(()=>{C(v,{disabled:n})},[n,v,C]),Bm(v,f);const R=()=>{const A=S(m,v);if(A)return JSON.stringify(A)},E=O.useSyncExternalStore(A=>ra(m,A),R,R);let P;return E?P=JSON.parse(E):r!==void 0?P={flexGrow:void 0,flexShrink:void 0,flexBasis:r}:P={flexGrow:1},h.jsx("div",{..._,"data-disabled":n||void 0,"data-panel":!0,"data-testid":v,id:v,ref:w,style:{...Lm,display:"flex",flexBasis:0,flexShrink:1,overflow:"visible",...P},children:h.jsx("div",{className:e,style:{maxHeight:"100%",maxWidth:"100%",flexGrow:1,overflow:"auto",...p,touchAction:x==="horizontal"?"pan-y":"pan-x"},children:t})})}sd.displayName="Panel";const Lm={minHeight:0,maxHeight:"100%",height:"auto",minWidth:0,maxWidth:"100%",width:"auto",border:"none",borderWidth:0,padding:0,margin:0};function jm({layout:t,panelConstraints:e,panelId:s,panelIndex:i}){let r,n;const o=t[s],a=e.find(c=>c.panelId===s);if(a){const c=a.maxSize,l=a.collapsible?a.collapsedSize:a.minSize,u=[i,i+1];n=Is({layout:Ti({delta:l-o,initialLayout:t,panelConstraints:e,pivotIndices:u,prevLayout:t}),panelConstraints:e})[s],r=Is({layout:Ti({delta:c-o,initialLayout:t,panelConstraints:e,pivotIndices:u,prevLayout:t}),panelConstraints:e})[s]}return{valueControls:s,valueMax:r,valueMin:n,valueNow:o}}function id({children:t,className:e,disabled:s,disableDoubleClick:i,elementRef:r,id:n,style:o,...a}){const c=oa(n),l=la({disabled:s,disableDoubleClick:i}),[u,d]=O.useState({}),[f,p]=O.useState("inactive"),[_,g]=O.useState(!1),v=O.useRef(null),b=aa(v,r),{disableCursor:k,id:w,orientation:S,registerSeparator:m,updateSeparatorProps:x}=ca(),y=S==="horizontal"?"vertical":"horizontal";Hs(()=>{const T=v.current;if(T!==null){const R={disabled:l.disabled,disableDoubleClick:l.disableDoubleClick,element:T,id:c},E=m(R),P=fm(M=>{p(M.next.state!=="inactive"&&M.next.hitRegions.some(L=>L.separator===R)?M.next.state:"inactive")}),A=ra(w,M=>{const{derivedPanelConstraints:L,layout:B,separatorToPanels:D}=M.next,j=D.get(R);if(j){const K=j[0],z=j.indexOf(K);d(jm({layout:B,panelConstraints:L,panelId:K.id,panelIndex:z}))}});return()=>{P(),A(),E()}}},[w,c,m,l]),O.useEffect(()=>{x(c,{disabled:s,disableDoubleClick:i})},[s,i,c,x]);let C;s&&!k&&(C="not-allowed");let N;return s?N="disabled":f==="active"?N="active":_?N="focus":N=f,h.jsx("div",{...a,"aria-controls":u.valueControls,"aria-disabled":s||void 0,"aria-orientation":y,"aria-valuemax":u.valueMax,"aria-valuemin":u.valueMin,"aria-valuenow":u.valueNow,children:t,className:e,"data-separator":N,"data-testid":c,id:c,onBlur:()=>g(!1),onFocus:()=>g(!0),ref:b,role:"separator",style:{flexBasis:"auto",cursor:C,...o,flexGrow:0,flexShrink:0,touchAction:"none"},tabIndex:s?void 0:0})}id.displayName="Separator";function Im(t){const e=H.c(10);let s,i,r;e[0]!==t?({className:s,ref:r,...i}=t,e[0]=t,e[1]=s,e[2]=i,e[3]=r):(s=e[1],i=e[2],r=e[3]);let n;e[4]!==s?(n=_e("flex h-full w-full",s),e[4]=s,e[5]=n):n=e[5];let o;return e[6]!==i||e[7]!==r||e[8]!==n?(o=h.jsx(td,{groupRef:r,"data-slot":"resizable-panel-group",className:n,...i}),e[6]=i,e[7]=r,e[8]=n,e[9]=o):o=e[9],o}function cl(t){const e=H.c(10);let s,i,r;e[0]!==t?({ref:i,style:r,...s}=t,e[0]=t,e[1]=s,e[2]=i,e[3]=r):(s=e[1],i=e[2],r=e[3]);let n;e[4]!==r?(n={overflow:"hidden",...r},e[4]=r,e[5]=n):n=e[5];let o;return e[6]!==s||e[7]!==i||e[8]!==n?(o=h.jsx(sd,{panelRef:i,"data-slot":"resizable-panel",style:n,...s}),e[6]=s,e[7]=i,e[8]=n,e[9]=o):o=e[9],o}function Om(t){const e=H.c(12);let s,i,r;e[0]!==t?({withHandle:r,className:s,...i}=t,e[0]=t,e[1]=s,e[2]=i,e[3]=r):(s=e[1],i=e[2],r=e[3]);let n;e[4]!==s?(n=_e("bg-border focus-visible:ring-ring relative flex w-[0.5px] items-center justify-center after:absolute after:inset-y-0 after:left-1/2 after:w-1 after:-translate-x-1/2 focus-visible:ring-1 focus-visible:ring-offset-1 focus-visible:outline-hidden aria-[orientation=horizontal]:h-px aria-[orientation=horizontal]:w-full aria-[orientation=horizontal]:after:left-0 aria-[orientation=horizontal]:after:h-1 aria-[orientation=horizontal]:after:w-full aria-[orientation=horizontal]:after:-translate-y-1/2 aria-[orientation=horizontal]:after:translate-x-0 [&[aria-orientation=horizontal]>div]:rotate-90",s),e[4]=s,e[5]=n):n=e[5];let o;e[6]!==r?(o=r&&h.jsx("div",{className:"bg-border z-10 flex h-4 w-3 items-center justify-center rounded-xs border",children:h.jsx(xf,{className:"size-2.5"})}),e[6]=r,e[7]=o):o=e[7];let a;return e[8]!==i||e[9]!==n||e[10]!==o?(a=h.jsx(id,{"data-slot":"resizable-handle",className:n,...i,children:o}),e[8]=i,e[9]=n,e[10]=o,e[11]=a):a=e[11],a}function hl(t,e){const s=typeof t=="number"?t:Number(t);return!Number.isFinite(s)||s<=0||s>=100?e:s}function zm(t,e){const s=H.c(8);let i;s[0]!==e?(i=c=>hl(c,e),s[0]=e,s[1]=i):i=s[1];const[r,n]=Do(t,i);let o;s[2]!==e||s[3]!==r?(o=hl(r,e),s[2]=e,s[3]=r,s[4]=o):o=s[4];let a;return s[5]!==n||s[6]!==o?(a=[o,n],s[5]=n,s[6]=o,s[7]=a):a=s[7],a}const $m=33;function Fm(){const t=H.c(1);let e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=Ju.sidePanelWidth(),t[0]=e):e=t[0],zm(e,$m)}function Hm(t){const e=H.c(1),{activeTab:s}=t;let i;return e[0]===Symbol.for("react.memo_cache_sentinel")?(i=h.jsx(jc,{}),e[0]=i):i=e[0],i}function Wm(){const t=H.c(5),e=Ho()??"overview";let s;t[0]!==e?(s=h.jsx(ls,{children:h.jsx(Hm,{activeTab:e})}),t[0]=e,t[1]=s):s=t[1];let i;return t[2]!==e||t[3]!==s?(i=h.jsx(Li,{children:s},e),t[2]=e,t[3]=s,t[4]=i):i=t[4],i}const Um=new Set(["site-editor","content"]);function Km(t){return t.hasClonableSource&&!t.fastPreviewActive&&t.mainTab!==null&&Um.has(t.mainTab)}const dl=/[\r\n<>]/,qm=/^[^\s@<>]+@[^\s@<>]+\.[^\s@<>]+$/;function Hr(t){const e=t?.userName?.trim();if(!e||dl.test(e))return null;const s=t?.userEmail?.trim();return!s||dl.test(s)?{userName:e}:qm.test(s)?{userName:e,userEmail:s}:{userName:e}}function Vm(t){return t.split(`
1
+ import{K as ks,c as H,m as es,b as be,r as O,l as _e,j as h,h as gt,I as ut,au as Bi,$ as ls,E as Li,d as ji,u as Ii,f as ri,a as hs,n as Lc,M as Do,U as Ju,O as jc,a6 as Je,B as Pe,ap as Zu,aq as Ei,a7 as Ze,a9 as Qe,t as Xe,av as Qu,o as Cs,aw as ef,ax as tf,a8 as Oi,ay as No,az as sf,z as rf,v as nf,F as Ic,e as Pn,x as of,ac as Mo,aA as af,aB as lf,ar as cf,y as Ia,k as hf,aC as df,aD as uf,R as Oc,aE as ff,N as pf}from"./index-BodvdIMk.js";import{C as ht,w as _f,u as zc}from"./use-main-panel-tabs-CbcTcl9J.js";import{a as mf,u as gf}from"./use-organization-settings-C7uzGCkO.js";import{b as ds,u as Bo,a as zi,c as $c,d as vf,e as bf,s as Sf}from"./chat-context-BdJniD3E.js";import{u as ni}from"./use-session-runtime-D2nv6bTI.js";import{u as yf}from"./use-ai-providers-BHw3Z_he.js";import{i as Lo}from"./AlertCircle-CfOItn1b.js";import{i as jo}from"./CheckCircle-BQEdmdLU.js";import{W as En,A as Ri,T as xf,o as Fc,Z as jr,_ as Hc,$ as Io,G as wf,a0 as Wc,a1 as Cf,a2 as kf,a3 as Pf,a4 as Ef,k as Rf,a5 as Tf,n as Af}from"./agent-icon-DlT0cyOd.js";import{i as Df}from"./XCircle-CoSRJnuK.js";import{s as Oa}from"./XClose-BYsCvLXW.js";import{a as us,b as Nf,u as Uc}from"./use-virtual-mcp-DY2qk06G.js";import{I as Kc}from"./integration-icon-BqCQeMla.js";import{c as Mf}from"./usage-stats-Cp4Mqdjr.js";import{t as $s,n as Bf}from"./ChevronUp-SbK1Bh_A.js";import{O as Lf,u as jf}from"./pair-BryCAS3L.js";import{u as If,a as Of}from"./use-thread-outputs-DwE-nO-h.js";import{u as zf}from"./use-deco-credits-CQYk77NF.js";import{i as $f}from"./command-palette-store-D4d7ysBD.js";import{b as Rn,f as Ff,c as Hf}from"./use-project-scope-cOFjIv3F.js";import{d as Oo,a as Wf,c as Uf}from"./thread-intent-C_TUHShU.js";import{u as zo,a as Ir,b as Kf,c as $o}from"./hooks-D-bAuZ0C.js";import{p as qf,a as qc,b as Vf,c as Vc,d as Gf,e as Fo,f as Yf,g as Xf}from"./use-navigate-to-agent-DbrSvmvC.js";import{u as Or,c as Gc,a as Yc,d as Jf,e as Zf,o as Qf,s as ep,f as tp,g as sp,h as ip}from"./sandbox-lifecycle-context-KgLleS3y.js";import{u as rp}from"./use-status-sounds-CBYC79_Y.js";import{E as Xc}from"./empty-state-DrLFtqMC.js";import{b as np,c as $i,a as Jc,u as Zc,r as op,d as ap}from"./thread-route-BPX5b65a.js";import{a as lp,u as Ho,b as Qc,c as eh}from"./use-panel-navigate-BgqqPVEC.js";import{r as th,a as Ut,h as sh,b as ih,g as Wo}from"./github-repo-C0igpkr9.js";import{r as cp}from"./serial-task-queue-CGOeQgpr.js";import{T as hp}from"./toolbar-DK-dWmgo.js";import{i as dp}from"./Share07-ezwRb3nU.js";import{b as up,c as rh,S as fp,d as pp}from"./select-bwhAgSkw.js";import{i as nh,s as _p}from"./source-system-tabs-CnEGUb4r.js";import{a as mp}from"./Package-Dm9TBHk7.js";import{L as Uo,a as gp}from"./legacy-main-redirect-BAMIoUmF.js";import{L as vp}from"./preview-dialog-Bd71VPLl.js";import{O as bp}from"./markdown-CuYSLr0D.js";import{u as oh}from"./use-is-desktop-app-BNujXJc_.js";import{p as Sp}from"./virtual-mcp-CSoIE5pZ.js";import{b as za}from"./sandbox-url-D3mC8qhT.js";import{i as Sr}from"./Play-HfzzXB20.js";import{c as Ko,D as qo,b as Vo,a as yr}from"./dropdown-menu-DlZDenrk.js";import{a as zr,b as Fi,P as Hi,c as yp}from"./popover-BaPHFXoA.js";import{s as ah}from"./Plus-zXs3aP31.js";import{i as xp,a as wp}from"./UserSquare-CXNfIfPy.js";import{p as lh,I as ch,T as xr}from"./toolbar-icon-button-D7IEoYBH.js";import{L as hh}from"./anchors-yqDzZN4K.js";import{G as dh}from"./github-icon-BHD2Mc12.js";import{D as Go,b as Yo,d as Cp,h as kp,c as Pp}from"./dialog-BAfLND_C.js";import{T as uh}from"./textarea-2MjTWIvv.js";import{s as Xo}from"./Eye-Ccu8gsxq.js";import{i as fh}from"./Globe01-BHsBANMN.js";import{a as ph}from"./format-time-BtXRrtv4.js";import{i as Jo}from"./ChevronRight-DfnK-irb.js";import{i as Ep}from"./Printer-kkmv6XzS.js";import{s as _h}from"./Trash01-CH5l96iG.js";import{i as mh,G as gh,f as wi,p as Rp,r as vh,d as Tn,a as bh,b as cr,c as Tp,e as Ap,g as Sh,n as Dp,h as Np,j as Mp,k as Bp,l as Zo,m as Lp,o as yh,s as xh,q as jp,t as Ip,u as Op,v as zp,w as $a,x as $p,y as Fp,z as Zr,A as Hp,B as Wp,C as Up,D as Kp,E as qp,F as Vp,H as Gp,I as Fa}from"./decode-html-entities-DI0z1GlS.js";import{b as Yp}from"./utils-DPVkkzea.js";import{u as $r,f as Xp}from"./shell-layout-DfKFME9s.js";import{u as Jp}from"./use-mcp-client-DO1cH-Rq.js";import{I as Zp}from"./input-CyCfmV2v.js";import{c as wh,a as Ch,T as wr,b as Ha}from"./tabs-BUVbbLAT.js";import{i as Qp}from"./ArrowRight-B4GAIQKI.js";import{i as An}from"./GitBranch01-y6_LtrpC.js";import{t as e_}from"./Stars01-DdrI1AvW.js";import{c as kh,d as Ph,b as Eh,f as Rh,g as Th,e as Ah,a as Dh,A as Nh}from"./alert-dialog-B19dFL0f.js";import{e as Dn,C as Nn,a as Mn,c as Mh,d as Bh,b as Lh}from"./command-vCLlEnld.js";import{i as t_}from"./DotsVertical-Ct2yI8vr.js";import{i as s_}from"./Tool01-duhLcQNq.js";import{u as i_}from"./use-debounced-value-Dci7_Qwe.js";import{u as r_}from"./useInfiniteQuery-B3TKIUIz.js";import{i as n_}from"./Tool02-CnClhfmX.js";import{a as o_,T as a_}from"./toggle-group-yY_Yhls6.js";import{i as jh}from"./Zap-BLQffepl.js";import{g as l_,S as c_}from"./task-status-Cm28QQwf.js";function Qo(t){return`${t.orgSlug}/${t.virtualMcpId}/${t.branch}`}function h_(t,e,s){return["decofile-write",t,e,s]}function ea(t){return`/api/${t.orgSlug}/decofile/${encodeURIComponent(t.virtualMcpId)}/${encodeURIComponent(t.branch)}`}async function Ih(t,e){const s=await t.json().catch(()=>({}));throw new Error(s.error??`${e} failed (${t.status})`)}function d_(t,e,s){t.setQueryData(ks.decofileDraft(Qo(e)),s)}function u_(t){const e=H.c(4);let s;e[0]!==t?(s=ks.decofileDraft(t?Qo(t):""),e[0]=t,e[1]=s):s=e[1];let i;e[2]!==s?(i={queryKey:s,enabled:!1,queryFn:f_,staleTime:Number.POSITIVE_INFINITY,gcTime:Number.POSITIVE_INFINITY},e[2]=s,e[3]=i):i=e[3];const{data:r}=es(i);return r??null}async function f_(){throw new Error("decofileDraft is populated by reads/writes, not fetched")}async function Lw(t,e){const s=await fetch(ea(e),{cache:"no-store"});if(!s.ok){const r=new Error(`Failed to fetch decofile: ${s.status}`);throw r.status=s.status,r}const i=await s.json();return i.token&&d_(t,e,{version:i.version,token:i.token,apiHost:i.apiHost??window.location.host}),i.decofile}const p_=2880*60*1e3;function __(t,e,s=p_){if(!t)return!1;const i=new Date(t).getTime();return Number.isNaN(i)?!1:e-i>s}async function m_(t){const e=await fetch(`${ea(t)}/status`,{cache:"no-store"});return e.ok?await e.json():Ih(e,"Status")}function g_(t){return{queryKey:ks.decofileStatus(Qo(t)),queryFn:()=>m_(t),staleTime:3e4}}async function jw(t,e){const s=await fetch(ea(t),{method:"PATCH",headers:{"content-type":"application/json"},body:JSON.stringify(e)});if(!s.ok)return Ih(s,"Save");const i=await s.json();return{...i,apiHost:i.apiHost??window.location.host}}function v_({isThreadLocked:t,hasCloudProviderKeys:e}){return t?!1:!e}function b_(){const t=H.c(3),e=yf(),i=ds()?.isThreadLocked??!1,r=e.length>0;let n;return t[0]!==i||t[1]!==r?(n=v_({isThreadLocked:i,hasCloudProviderKeys:r}),t[0]=i,t[1]=r,t[2]=n):n=t[2],n}function li(t){return t>=1e6?`${(t/1e6).toFixed(1)}M`:t>=1e3?`${(t/1e3).toFixed(1)}k`:String(t)}function Qr(t){if(!t)return"—";const e=typeof t=="string"?new Date(t):t;return isNaN(e.getTime())?"—":e.toLocaleString("en-US",{month:"short",day:"numeric",year:"numeric",hour:"numeric",minute:"2-digit"})}function S_(t){return t?t.replace(/-\d{8}(?:-[a-z0-9]+)*$/i,"").replace(/-/g," "):"—"}function y_(t){const e=H.c(4),{items:s}=t;let i;e[0]!==s?(i=s.map(x_),e[0]=s,e[1]=i):i=e[1];let r;return e[2]!==i?(r=h.jsx("div",{className:"grid grid-cols-2 gap-x-8 gap-y-6",children:i}),e[2]=i,e[3]=r):r=e[3],r}function x_(t){return h.jsxs("div",{className:"flex flex-col gap-1 min-w-0",children:[h.jsx("span",{className:"text-xs text-muted-foreground truncate",children:t.label}),h.jsx("span",{className:"text-sm text-foreground tabular-nums truncate",children:t.value})]},t.label)}function w_(t){const e=H.c(33),{userTokens:s,assistantTokens:i,otherTokens:r}=t,n=be(),o=s+i+r,a=o>0?s/o*100:0,c=o>0?i/o*100:0,l=o>0?r/o*100:0;let u;e[0]!==a?(u=a>0&&h.jsx("div",{className:"h-full bg-chart-1",style:{width:`${a}%`}}),e[0]=a,e[1]=u):u=e[1];let d;e[2]!==c?(d=c>0&&h.jsx("div",{className:"h-full bg-chart-2",style:{width:`${c}%`}}),e[2]=c,e[3]=d):d=e[3];let f;e[4]!==l?(f=l>0&&h.jsx("div",{className:"h-full bg-muted-foreground/30",style:{width:`${l}%`}}),e[4]=l,e[5]=f):f=e[5];let p;e[6]!==u||e[7]!==d||e[8]!==f?(p=h.jsxs("div",{className:"flex h-2 w-full overflow-hidden rounded-full bg-muted",children:[u,d,f]}),e[6]=u,e[7]=d,e[8]=f,e[9]=p):p=e[9];let _;e[10]===Symbol.for("react.memo_cache_sentinel")?(_=h.jsx("span",{className:"inline-block h-2 w-2 rounded-sm bg-chart-1 shrink-0"}),e[10]=_):_=e[10];let g;e[11]!==n||e[12]!==a?(g=n("chat.contextPanel.userPercent",{pct:a.toFixed(1)}),e[11]=n,e[12]=a,e[13]=g):g=e[13];let v;e[14]!==g?(v=h.jsxs("div",{className:"flex items-center gap-1.5",children:[_,h.jsx("span",{className:"text-xs text-muted-foreground",children:g})]}),e[14]=g,e[15]=v):v=e[15];let b;e[16]===Symbol.for("react.memo_cache_sentinel")?(b=h.jsx("span",{className:"inline-block h-2 w-2 rounded-sm bg-chart-2 shrink-0"}),e[16]=b):b=e[16];let k;e[17]!==c||e[18]!==n?(k=n("chat.contextPanel.assistantPercent",{pct:c.toFixed(1)}),e[17]=c,e[18]=n,e[19]=k):k=e[19];let w;e[20]!==k?(w=h.jsxs("div",{className:"flex items-center gap-1.5",children:[b,h.jsx("span",{className:"text-xs text-muted-foreground",children:k})]}),e[20]=k,e[21]=w):w=e[21];let S;e[22]!==l||e[23]!==r||e[24]!==n?(S=r>0&&h.jsxs("div",{className:"flex items-center gap-1.5",children:[h.jsx("span",{className:"inline-block h-2 w-2 rounded-sm bg-muted-foreground/30 shrink-0"}),h.jsx("span",{className:"text-xs text-muted-foreground",children:n("chat.contextPanel.otherPercent",{pct:l.toFixed(1)})})]}),e[22]=l,e[23]=r,e[24]=n,e[25]=S):S=e[25];let m;e[26]!==w||e[27]!==S||e[28]!==v?(m=h.jsxs("div",{className:"flex flex-wrap gap-x-3 gap-y-1",children:[v,w,S]}),e[26]=w,e[27]=S,e[28]=v,e[29]=m):m=e[29];let x;return e[30]!==m||e[31]!==p?(x=h.jsxs("div",{className:"flex flex-col gap-2",children:[p,m]}),e[30]=m,e[31]=p,e[32]=x):x=e[32],x}function C_(t){const e=H.c(14),{agentId:s,isError:i}=t,r=us(s),n=be();let o;e[0]!==r?.title||e[1]!==n?(o=r?.title??n("chat.subtask.subtaskNoun"),e[0]=r?.title,e[1]=n,e[2]=o):o=e[2];const a=o,c=r?.icon??null;let l;e[3]!==c||e[4]!==a?(l=h.jsx(Kc,{icon:c,name:a,size:"xs",className:"size-6 rounded-md shrink-0"}),e[3]=c,e[4]=a,e[5]=l):l=e[5];const u=i?"text-destructive":"text-foreground";let d;e[6]!==u?(d=_e("shrink-0 font-medium",u),e[6]=u,e[7]=d):d=e[7];let f;e[8]!==a||e[9]!==d?(f=h.jsx("span",{className:d,children:a}),e[8]=a,e[9]=d,e[10]=f):f=e[10];let p;return e[11]!==l||e[12]!==f?(p=h.jsxs(h.Fragment,{children:[l,f]}),e[11]=l,e[12]=f,e[13]=p):p=e[13],p}function k_(t){const e=H.c(12),{isError:s}=t,i=be();let r;e[0]!==i?(r=i("chat.contextPanel.subtask"),e[0]=i,e[1]=r):r=e[1];const n=r;let o;e[2]!==n?(o=h.jsx(Kc,{icon:null,name:n,size:"xs",className:"size-6 rounded-md shrink-0"}),e[2]=n,e[3]=o):o=e[3];const a=s?"text-destructive":"text-foreground";let c;e[4]!==a?(c=_e("shrink-0 font-medium",a),e[4]=a,e[5]=c):c=e[5];let l;e[6]!==n||e[7]!==c?(l=h.jsx("span",{className:c,children:n}),e[6]=n,e[7]=c,e[8]=l):l=e[8];let u;return e[9]!==o||e[10]!==l?(u=h.jsxs(h.Fragment,{children:[o,l]}),e[9]=o,e[10]=l,e[11]=u):u=e[11],u}function P_(t){const e=H.c(18),{part:s}=t,i=s.input?.agent_id,r=s.state==="input-streaming"||s.state==="input-available"||s.state==="output-available"&&s.preliminary===!0,n=s.state==="output-error",o=s.state==="approval-requested";let a;e[0]!==n?(a=h.jsx(k_,{isError:n}),e[0]=n,e[1]=a):a=e[1];let c;e[2]!==i||e[3]!==n?(c=h.jsx(C_,{agentId:i,isError:n}),e[2]=i,e[3]=n,e[4]=c):c=e[4];let l;e[5]!==a||e[6]!==c?(l=h.jsx(O.Suspense,{fallback:a,children:c}),e[5]=a,e[6]=c,e[7]=l):l=e[7];let u;e[8]!==s.input?(u=s.input?.prompt&&h.jsxs(h.Fragment,{children:[h.jsx("span",{className:"text-muted-foreground/50",children:"·"}),h.jsx("span",{className:"truncate text-muted-foreground",children:s.input.prompt})]}),e[8]=s.input,e[9]=u):u=e[9];let d;e[10]!==o||e[11]!==n||e[12]!==r?(d=h.jsx("span",{className:"ml-auto shrink-0",children:r?h.jsx(gt,{className:"size-3 text-muted-foreground"}):n?h.jsx(Df,{size:12,className:"text-destructive"}):o?h.jsx(Lo,{size:12,className:"text-warning"}):h.jsx(jo,{size:12,className:"text-success"})}),e[10]=o,e[11]=n,e[12]=r,e[13]=d):d=e[13];let f;return e[14]!==l||e[15]!==u||e[16]!==d?(f=h.jsxs("div",{className:"flex items-center gap-2 text-xs min-w-0",children:[l,u,d]}),e[14]=l,e[15]=u,e[16]=d,e[17]=f):f=e[17],f}function E_(t){const e=H.c(78),{onClose:s,back:i,className:r}=t,n=be(),[o,a]=O.useState(null),{messages:c}=Bo(),{activeTask:l}=zi(),{selectedModel:u,selectedVirtualMcp:d}=$c();let f,p,_,g,v,b,k,w;if(e[0]!==l||e[1]!==i||e[2]!==r||e[3]!==c||e[4]!==s||e[5]!==o?.id||e[6]!==u||e[7]!==d?.title||e[8]!==n){w=Symbol.for("react.early_return_sentinel");e:{const x=Mf(c),y=[...c].reverse().find(O_),C=y?.metadata?.usage,N=y?.metadata?.modelLimits?.contextWindow??u?.limits?.contextWindow??null,T=C?.contextTokens??0,R=N&&N>0?(T/N*100).toFixed(1):null,E=c;let P;e[17]!==E?(P=E.filter(I_).reduce(j_,0),e[17]=E,e[18]=P):P=e[18];const A=P,M=c;let L;e[19]!==M?(L=M.filter(L_).reduce(B_,0),e[19]=M,e[20]=L):L=e[20];const B=L,D=Math.max(0,x.totalTokens-A-B),j=c[0],K=c.at(-1),z=j?.metadata?.created_at??l?.created_at,G=K?.metadata?.created_at??l?.updated_at,I=c.filter(M_),V=c.flatMap(D_),$=u?.modelId?S_(u.modelId):"—",ee=d?.title??"Super Agent",se=[{label:n("chat.contextPanel.sessionLabel"),value:l?.title??n("chat.contextPanel.newChat")},{label:n("chat.contextPanel.messagesLabel"),value:I.length},{label:n("chat.contextPanel.agentLabel"),value:ee},{label:n("chat.contextPanel.modelLabel"),value:$},{label:n("chat.contextPanel.contextLimitLabel"),value:N?li(N):"—"},{label:n("chat.contextPanel.sessionTokensLabel"),value:x.totalTokens>0?li(x.totalTokens):"0"},{label:n("chat.contextPanel.usageLabel"),value:R!==null?`${R}%`:"—"},{label:n("chat.contextPanel.inputTokensLabel"),value:x.inputTokens>0?li(x.inputTokens):"0"},{label:n("chat.contextPanel.outputTokensLabel"),value:x.outputTokens>0?li(x.outputTokens):"0"},{label:n("chat.contextPanel.reasoningTokensLabel"),value:x.reasoningTokens>0?li(x.reasoningTokens):"0"},{label:n("chat.contextPanel.costLabel"),value:x.cost>0?`$${x.cost<.001?x.cost.toFixed(6):x.cost.toFixed(4)}`:"$0.00"},{label:n("chat.contextPanel.sessionCreatedLabel"),value:Qr(z)},{label:n("chat.contextPanel.lastActivityLabel"),value:Qr(G)}];if(!l&&I.length===0){let q;e[21]!==r?(q=_e("flex flex-col h-full w-full border-l border-border bg-background",r),e[21]=r,e[22]=q):q=e[22];let F;e[23]!==n?(F=n("chat.contextPanel.title"),e[23]=n,e[24]=F):F=e[24];let Q;e[25]!==F?(Q=h.jsx("span",{className:"text-sm font-medium text-foreground",children:F}),e[25]=F,e[26]=Q):Q=e[26];let he;e[27]!==i?(he=i?h.jsx(En,{size:14,className:"text-muted-foreground"}):h.jsx(Oa,{size:14,className:"text-muted-foreground"}),e[27]=i,e[28]=he):he=e[28];let ue;e[29]!==s||e[30]!==he?(ue=h.jsx("button",{type:"button",onClick:s,className:"flex size-6 items-center justify-center rounded hover:bg-accent transition-colors",children:he}),e[29]=s,e[30]=he,e[31]=ue):ue=e[31];let fe;e[32]!==Q||e[33]!==ue?(fe=h.jsxs("div",{className:"h-11 px-4 flex items-center justify-between shrink-0 border-b border-border/50",children:[Q,ue]}),e[32]=Q,e[33]=ue,e[34]=fe):fe=e[34];let ne;e[35]!==n?(ne=n("chat.contextPanel.emptyState"),e[35]=n,e[36]=ne):ne=e[36];let ce;e[37]!==ne?(ce=h.jsx("div",{className:"flex-1 flex items-center justify-center px-4 text-center",children:h.jsx("p",{className:"text-xs text-muted-foreground",children:ne})}),e[37]=ne,e[38]=ce):ce=e[38];let de;e[39]!==q||e[40]!==fe||e[41]!==ce?(de=h.jsxs("div",{className:q,children:[fe,ce]}),e[39]=q,e[40]=fe,e[41]=ce,e[42]=de):de=e[42],w=de;break e}e[43]!==r?(b=_e("flex flex-col h-full w-full border-l border-border bg-background overflow-y-auto",r),e[43]=r,e[44]=b):b=e[44];let ie;e[45]!==n?(ie=n("chat.contextPanel.title"),e[45]=n,e[46]=ie):ie=e[46];let Y;e[47]!==ie?(Y=h.jsx("span",{className:"text-sm font-medium text-foreground",children:ie}),e[47]=ie,e[48]=Y):Y=e[48];let Z;e[49]!==i?(Z=i?h.jsx(En,{size:14}):h.jsx(Oa,{size:14}),e[49]=i,e[50]=Z):Z=e[50];let X;e[51]!==s||e[52]!==Z?(X=h.jsx("button",{type:"button",onClick:s,className:"flex h-7 w-7 items-center justify-center rounded-md text-muted-foreground transition-colors hover:bg-accent hover:text-foreground",children:Z}),e[51]=s,e[52]=Z,e[53]=X):X=e[53],e[54]!==Y||e[55]!==X?(k=h.jsxs("div",{className:"flex h-11 shrink-0 items-center justify-between border-b border-border/50 px-4",children:[Y,X]}),e[54]=Y,e[55]=X,e[56]=k):k=e[56],f="flex flex-col gap-8 p-6",p=V.length>0&&h.jsxs("div",{className:"flex flex-col gap-3",children:[h.jsx("span",{className:"text-xs text-muted-foreground",children:n("chat.contextPanel.subtasksSection")}),h.jsx("div",{className:"flex flex-col gap-1",children:V.map(A_)})]}),_=h.jsx(y_,{items:se});let U;e[57]!==n?(U=n("chat.contextPanel.contextBreakdownSection"),e[57]=n,e[58]=U):U=e[58];let J;e[59]!==U?(J=h.jsx("span",{className:"text-xs text-muted-foreground",children:U}),e[59]=U,e[60]=J):J=e[60];let ae;e[61]!==B||e[62]!==D||e[63]!==A?(ae=h.jsx(w_,{userTokens:A,assistantTokens:B,otherTokens:D}),e[61]=B,e[62]=D,e[63]=A,e[64]=ae):ae=e[64],e[65]!==J||e[66]!==ae?(g=h.jsxs("div",{className:"flex flex-col gap-3",children:[J,ae]}),e[65]=J,e[66]=ae,e[67]=g):g=e[67],v=I.length>0&&h.jsxs("div",{className:"flex flex-col gap-3",children:[h.jsx("span",{className:"text-xs text-muted-foreground",children:n("chat.contextPanel.rawMessagesSection")}),h.jsx("div",{className:"flex flex-col gap-1",children:I.map(q=>{const F=q.metadata?.created_at,Q=o?.id===q.id;return h.jsxs("div",{className:"rounded-md border border-border/50 overflow-hidden",children:[h.jsxs("button",{type:"button",onClick:()=>a(Q?null:q),className:"flex items-center justify-between gap-2 px-3 py-2 text-xs hover:bg-accent/50 w-full text-left cursor-pointer",children:[h.jsxs("div",{className:"flex items-center gap-2 min-w-0",children:[h.jsx("span",{className:_e("shrink-0 font-medium",q.role==="user"?"text-chart-1":"text-chart-2"),children:q.role}),h.jsx("span",{className:"text-muted-foreground",children:"•"}),h.jsx("span",{className:"truncate text-muted-foreground font-mono",children:q.id})]}),F&&h.jsx("span",{className:"shrink-0 text-muted-foreground tabular-nums",children:Qr(F)})]}),Q&&h.jsxs(h.Fragment,{children:[q.role==="assistant"&&(()=>{const he=q.metadata?._request;if(!he)return null;const ue=he.systemSections??[],fe=Math.max(1,...ue.map(T_)),ne=ue.reduce(R_,0);return h.jsxs("div",{className:"border-t border-border/50 px-3 py-2.5 text-xs space-y-2.5",children:[h.jsxs("div",{className:"flex items-center justify-between",children:[h.jsx("span",{className:"font-medium text-foreground",children:n("chat.contextPanel.requestLabel")}),h.jsxs("span",{className:"text-muted-foreground tabular-nums",children:[he.activeTools??0," / ",he.tools??0," ",n("chat.contextPanel.toolsActive")]})]}),ue.length>0&&h.jsxs("div",{className:"space-y-1.5",children:[h.jsxs("div",{className:"text-muted-foreground",children:[n("chat.contextPanel.systemPromptLabel")," ",h.jsxs("span",{className:"tabular-nums",children:["~",Math.round(ne/4).toLocaleString()," ",n("chat.contextPanel.tokAbbrev")]})]}),ue.map((ce,de)=>{const le=ce.preview.match(/^<([a-z-]+)/i)?.[1]??`section ${de}`,re=ce.chars/fe*100,ge=Math.round(ce.chars/4);return h.jsxs("div",{className:"space-y-0.5",children:[h.jsxs("div",{className:"flex items-center justify-between gap-2",children:[h.jsx("span",{className:"font-mono text-foreground truncate",children:le}),h.jsxs("span",{className:"text-muted-foreground tabular-nums shrink-0",children:["~",ge.toLocaleString()," ",n("chat.contextPanel.tokAbbrev")]})]}),h.jsx("div",{className:"h-1 w-full rounded-full bg-muted overflow-hidden",children:h.jsx("div",{className:"h-full rounded-full bg-chart-3",style:{width:`${re}%`}})})]},de)})]})]})})(),h.jsx("pre",{className:"text-xs font-mono bg-muted px-3 py-2 overflow-auto whitespace-pre-wrap break-all border-t border-border/50 max-h-64",children:JSON.stringify(q,null,2)})]})]},q.id)})})]})}e[0]=l,e[1]=i,e[2]=r,e[3]=c,e[4]=s,e[5]=o?.id,e[6]=u,e[7]=d?.title,e[8]=n,e[9]=f,e[10]=p,e[11]=_,e[12]=g,e[13]=v,e[14]=b,e[15]=k,e[16]=w}else f=e[9],p=e[10],_=e[11],g=e[12],v=e[13],b=e[14],k=e[15],w=e[16];if(w!==Symbol.for("react.early_return_sentinel"))return w;let S;e[68]!==f||e[69]!==p||e[70]!==_||e[71]!==g||e[72]!==v?(S=h.jsxs("div",{className:f,children:[p,_,g,v]}),e[68]=f,e[69]=p,e[70]=_,e[71]=g,e[72]=v,e[73]=S):S=e[73];let m;return e[74]!==b||e[75]!==k||e[76]!==S?(m=h.jsxs("div",{className:b,children:[k,S]}),e[74]=b,e[75]=k,e[76]=S,e[77]=m):m=e[77],m}function R_(t,e){return t+e.chars}function T_(t){return t.chars}function A_(t,e){return h.jsx(P_,{part:t},e)}function D_(t){return(t.parts??[]).filter(N_)}function N_(t){return t.type==="tool-subtask"}function M_(t){return t.role!=="system"}function B_(t,e){const s=e.metadata?.usage;return t+(s?.outputTokens??0)}function L_(t){return t.role==="assistant"}function j_(t,e){const s=e.metadata?.usage;return t+(s?.inputTokens??0)}function I_(t){return t.role==="user"}function O_(t){return t.role==="assistant"&&t.metadata?.usage}function z_(t){const e=H.c(21),{onOpenContextPanel:s}=t,{org:i}=ut(),{selectedVirtualMcp:r}=$c();let n;e[0]!==i.id?(n=Bi(i.id),e[0]=i.id,e[1]=n):n=e[1];const a=r??n,l=us(a.id)??a,u=l.title??"Super Agent",d=l.icon??null,f=l.description??null;let p;e[2]!==d||e[3]!==u?(p=h.jsx(Ri,{icon:d,name:u,size:"lg"}),e[2]=d,e[3]=u,e[4]=p):p=e[4];let _;e[5]!==u?(_=h.jsx("h2",{className:"text-2xl font-semibold tracking-tight text-foreground",children:u}),e[5]=u,e[6]=_):_=e[6];let g;e[7]!==f?(g=f?h.jsx("p",{className:"text-sm text-muted-foreground max-w-md text-balance",children:f}):null,e[7]=f,e[8]=g):g=e[8];let v;e[9]!==_||e[10]!==g?(v=h.jsxs("div",{className:"space-y-1.5",children:[_,g]}),e[9]=_,e[10]=g,e[11]=v):v=e[11];let b;e[12]!==p||e[13]!==v?(b=h.jsxs("div",{className:"flex-1 min-h-0 flex flex-col items-center justify-center gap-4 px-6 text-center overflow-hidden",children:[p,v]}),e[12]=p,e[13]=v,e[14]=b):b=e[14];let k;e[15]===Symbol.for("react.memo_cache_sentinel")?(k=h.jsx(ht.IceBreakers,{className:"pb-3"}),e[15]=k):k=e[15];let w;e[16]!==s?(w=h.jsxs(ht.Footer,{children:[k,h.jsx(ht.Input,{onOpenContextPanel:s})]}),e[16]=s,e[17]=w):w=e[17];let S;return e[18]!==b||e[19]!==w?(S=h.jsxs(h.Fragment,{children:[b,w]}),e[18]=b,e[19]=w,e[20]=S):S=e[20],S}function Wa(t){const e=H.c(17),{outputs:s,collapsed:i,onToggle:r,variant:n}=t,o=n==="card"?"rounded-xl border border-border bg-muted/95 shadow-sm backdrop-blur-sm":"border-b border-border bg-background";let a;e[0]!==o?(a=_e(o),e[0]=o,e[1]=a):a=e[1];let c;e[2]===Symbol.for("react.memo_cache_sentinel")?(c=h.jsx("span",{className:"text-sm font-medium text-foreground",children:"Files in this task"}),e[2]=c):c=e[2];const l=i&&"-rotate-90";let u;e[3]!==l?(u=_e("size-4 text-muted-foreground transition-transform",l),e[3]=l,e[4]=u):u=e[4];let d;e[5]!==u?(d=h.jsx($s,{className:u}),e[5]=u,e[6]=d):d=e[6];let f;e[7]!==r||e[8]!==d?(f=h.jsxs("button",{type:"button",onClick:r,className:"flex w-full items-center justify-between px-3 py-2.5 text-left",children:[c,d]}),e[7]=r,e[8]=d,e[9]=f):f=e[9];let p;e[10]!==i||e[11]!==s?(p=!i&&h.jsx("div",{className:"flex max-h-72 flex-col gap-1.5 overflow-y-auto px-2 pb-2",children:s.map($_)}),e[10]=i,e[11]=s,e[12]=p):p=e[12];let _;return e[13]!==a||e[14]!==f||e[15]!==p?(_=h.jsxs("div",{className:a,children:[f,p]}),e[13]=a,e[14]=f,e[15]=p,e[16]=_):_=e[16],_}function $_(t){return h.jsx(Lf,{file:t},t.key)}function F_(){const t=H.c(13),e=ds()?.taskId??null,s=If();let i;t[0]!==s?(i={enabled:s},t[0]=s,t[1]=i):i=t[1];const{data:r}=Of(e,i),[n,o]=O.useState(!1),[a,c]=O.useState(!0);if(!e||!r||r.length===0)return null;let l;t[2]===Symbol.for("react.memo_cache_sentinel")?(l=()=>o(W_),t[2]=l):l=t[2];let u;t[3]!==n||t[4]!==r?(u=h.jsx("div",{className:"absolute top-2 right-2 z-10 hidden w-72 @[1280px]:block",children:h.jsx(Wa,{variant:"card",outputs:r,collapsed:n,onToggle:l})}),t[3]=n,t[4]=r,t[5]=u):u=t[5];let d;t[6]===Symbol.for("react.memo_cache_sentinel")?(d=()=>c(H_),t[6]=d):d=t[6];let f;t[7]!==a||t[8]!==r?(f=h.jsx("div",{className:"shrink-0 @[1280px]:hidden",children:h.jsx(Wa,{variant:"bar",outputs:r,collapsed:a,onToggle:d})}),t[7]=a,t[8]=r,t[9]=f):f=t[9];let p;return t[10]!==u||t[11]!==f?(p=h.jsxs(h.Fragment,{children:[u,f]}),t[10]=u,t[11]=f,t[12]=p):p=t[12],p}function H_(t){return!t}function W_(t){return!t}function U_(){const t=H.c(31),{org:e}=ut(),s=ds(),{isChatEmpty:i}=Bo(),[r,n]=O.useState("chat"),o=zf(),a=b_(),{runtime:c}=ni(s?.virtualMcpId);if(a&&c!=="cms"){let T;return t[0]===Symbol.for("react.memo_cache_sentinel")?(T=h.jsx(ht,{className:"animate-in fade-in-0 duration-200",children:h.jsx(ht.Main,{className:"flex flex-col items-center",children:h.jsx(ht.EmptyState,{children:h.jsx(ht.NoAiProviderEmptyState,{})})})}),t[0]=T):T=t[0],T}let u;t[1]!==o.hasDecoKey||t[2]!==o.hasOnlyDecoProvider||t[3]!==o.isLoading||t[4]!==o.isZeroBalance||t[5]!==i||t[6]!==e?(u=o.hasDecoKey&&o.isZeroBalance&&o.hasOnlyDecoProvider&&!o.isLoading&&i&&!_f(e.id),t[1]=o.hasDecoKey,t[2]=o.hasOnlyDecoProvider,t[3]=o.isLoading,t[4]=o.isZeroBalance,t[5]=i,t[6]=e,t[7]=u):u=t[7];const d=u;let f;t[8]!==d?(f=d&&h.jsx(ht.CreditsEmptyState,{}),t[8]=d,t[9]=f):f=t[9];const p=r!=="chat"?!0:void 0,_=r!=="chat",g=r!=="chat"?"opacity-0 pointer-events-none":"opacity-100";let v;t[10]!==g?(v=_e("absolute inset-0 flex flex-col transition-opacity duration-100 ease-out",g),t[10]=g,t[11]=v):v=t[11];let b;t[12]!==i||t[13]!==c?(b=i&&c!=="cms"?h.jsx(z_,{onOpenContextPanel:()=>n("context")}):h.jsxs(h.Fragment,{children:[h.jsxs(ht.Main,{className:"relative flex flex-col overflow-hidden @container",children:[h.jsx(F_,{}),h.jsx("div",{className:"min-h-0 flex-1",children:h.jsx(ht.Messages,{})})]}),h.jsx(ht.Footer,{children:h.jsx(ht.Input,{onOpenContextPanel:()=>n("context")})})]}),t[12]=i,t[13]=c,t[14]=b):b=t[14];let k;t[15]!==p||t[16]!==_||t[17]!==v||t[18]!==b?(k=h.jsx("div",{inert:p,"aria-hidden":_,className:v,children:b}),t[15]=p,t[16]=_,t[17]=v,t[18]=b,t[19]=k):k=t[19];const w=r!=="context"?!0:void 0,S=r!=="context",m=r==="context"?"opacity-100":"opacity-0 pointer-events-none";let x;t[20]!==m?(x=_e("absolute inset-0 flex flex-col transition-opacity duration-100 ease-out",m),t[20]=m,t[21]=x):x=t[21];let y;t[22]===Symbol.for("react.memo_cache_sentinel")?(y=h.jsx(E_,{back:!0,onClose:()=>n("chat")}),t[22]=y):y=t[22];let C;t[23]!==x||t[24]!==w||t[25]!==S?(C=h.jsx("div",{inert:w,"aria-hidden":S,className:x,children:y}),t[23]=x,t[24]=w,t[25]=S,t[26]=C):C=t[26];let N;return t[27]!==f||t[28]!==C||t[29]!==k?(N=h.jsxs(ht,{className:"relative overflow-hidden animate-in fade-in-0 duration-200",children:[f,k,C]}),t[27]=f,t[28]=C,t[29]=k,t[30]=N):N=t[30],N}function Oh(){const t=H.c(7),e=be();let s;t[0]!==e?(s=e("agentShellLayout.agentShellLayout.chatLoadingError"),t[0]=e,t[1]=s):s=t[1];let i;t[2]!==s?(i=h.jsx("div",{role:"alert",className:"flex h-full flex-1 items-center justify-center text-sm text-muted-foreground",children:s}),t[2]=s,t[3]=i):i=t[3];let r;t[4]===Symbol.for("react.memo_cache_sentinel")?(r=h.jsx(ls,{children:h.jsx(U_,{})}),t[4]=r):r=t[4];let n;return t[5]!==i?(n=h.jsx(Li,{fallback:i,children:r}),t[5]=i,t[6]=n):n=t[6],n}function K_(t){return(t??"").normalize("NFKD").replace(/[̀-ͯ]/g,"").toLowerCase().replace(/[^a-z0-9]+/g,"-").replace(/^-+|-+$/g,"")||"user"}function ta(t){return t?.name||t?.email?.split("@")[0]||void 0}function ti(t){const e=K_(t),s=Date.now().toString(36).split("").reverse().join("");return`${e}-${s}`}function zh(t){return!!t.harness_id||!!t.title&&t.title!=="New chat"}function q_(t){return{threadId:t.routeThreadId,providerKey:t.routeThreadId??t.fallbackKey}}function V_(t){return t.sidePanelOpen||t.mainOpen?t:{...t,sidePanelOpen:!0}}function G_(t){const e=t.entityMetadata?.defaultMainView??null,s=e==null||e.type==="chat",i=t.mainPanelParam??(t.panelNamed||!!t.routeDefaultMain||!s),r=t.routeDefaultMain?!1:s||t.entityMetadata?.chatDefaultOpen===!0||t.threadHasMessages===!0,n=t.sidePanelParamPresent?t.sidePanelParamValue===!0:r;return V_({sidePanelOpen:n,mainOpen:i})}function Ua(t,e){switch(t.type){case"toggleSidePanel":return e.sidePanelOpen?e.mainOpen?{sidepanel:!1}:null:{sidepanel:!0};case"toggleMain":return e.mainOpen?{mainpanel:!1,sidepanel:!0}:{mainpanel:!0};case"openSidePanel":return e.sidePanelOpen?null:{sidepanel:!0}}}function Y_(t){return t.sidePanelOpen&&t.mainOpen?{side:33,main:67}:t.sidePanelOpen?{side:100,main:0}:t.mainOpen?{side:0,main:100}:{side:0,main:0}}function X_(t){const{sidePanelOpen:e,mainOpen:s}=t.visibility;return e&&(t.sidePanelParamPresent||!s)?"chat":s?"main":"chat"}function J_(t){return t==="main"?{sidepanel:!1,mainpanel:!0}:{sidepanel:!0,mainpanel:!1}}function Z_(t,e){const s=ji(),i=np(),r=Ii({strict:!1}),n=ri({strict:!1}),{create:o}=zo(),{threads:a}=Ir(),{virtualMcpId:c,isAgentRoute:l}=e,u=lp(),d=Ho(),f=$i(),p=O.useRef(crypto.randomUUID()),{threadId:_,providerKey:g}=q_({routeThreadId:f,fallbackKey:p.current}),v=_!=null?a.find(N=>N.id===_):void 0,{sidePanelOpen:b,mainOpen:k}=G_({entityMetadata:t,mainPanelParam:r.mainpanel,panelNamed:d!==void 0,sidePanelParamPresent:r.sidepanel!==void 0,sidePanelParamValue:r.sidepanel,routeDefaultMain:u,threadHasMessages:v?zh(v):!1}),w={sidePanelOpen:b,mainOpen:k},S=l&&n.taskId!==void 0?{virtualmcpid:c}:{},m=(N,T)=>{s({to:".",search:R=>({...R,...N}),replace:T?.replace??!1})},x=()=>{const N=Ua({type:"toggleMain"},w);N&&m(N,{replace:!0})},y=()=>{const N=Ua({type:"toggleSidePanel"},w);N&&m(N,{replace:!0})},C=async()=>{const N=crypto.randomUUID(),T=a.find(R=>R.id===_)?.branch??null;try{await o({id:N,virtual_mcp_id:c,...T?{branch:T}:{}})}catch{}i(N,()=>({...S}))};return{threadId:_,providerKey:g,sidePanelOpen:b,mainOpen:k,sidePanelParamPresent:r.sidepanel!==void 0,toggleMain:x,toggleSidePanel:y,createNewTask:C}}function Q_(t){const e=H.c(10),{org:s}=ut(),i=Kf(),{data:r}=hs.useSession(),n=r?.user?.id,o=t?.id??null,a=!!t&&!!n&&!!t.created_by&&t.created_by!==n;let c;e[0]!==s.id||e[1]!==o?(c=ks.viewedThreadMetadataRefresh(s.id,o??""),e[0]=s.id,e[1]=o,e[2]=c):c=e[2];const l=!!i&&!!o&&a;let u;e[3]!==i||e[4]!==o?(u=async()=>(await i?.refreshThreadMetadata(o??""),!0),e[3]=i,e[4]=o,e[5]=u):u=e[5];let d;e[6]!==c||e[7]!==l||e[8]!==u?(d={queryKey:c,enabled:l,staleTime:Number.POSITIVE_INFINITY,queryFn:u},e[6]=c,e[7]=l,e[8]=u,e[9]=d):d=e[9],es(d)}function em(t,e){return t.some(s=>s.branch===e.branch)?t:[...t,e]}function tm(t,e){return t.filter(s=>s.branch!==e)}function sm(t,e,s){return t.map(i=>i.branch===e?{...i,name:s}:i)}const Ka=["orange","violet","blue","pink","amber","teal"];function hr(t){return Ka[t%Ka.length]}function Bn(t,e){const s=`${e} `,i=t.reduce((r,n)=>{if(!n.name.startsWith(s))return r;const o=Number(n.name.slice(s.length));return Number.isInteger(o)&&o>r?o:r},0);return`${e} ${i+1}`}const im={orange:"bg-orange-500",violet:"bg-violet-500",blue:"bg-blue-500",pink:"bg-pink-500",amber:"bg-amber-500",teal:"bg-teal-500"};function en(t){return t&&im[t]||"bg-muted-foreground"}function Fr(t){const e=H.c(26),s=us(t),i=Nf(),{org:r}=ut(),n=Lc();let o;e[0]!==s?.metadata?.releases?(o=s?.metadata?.releases??[],e[0]=s?.metadata?.releases,e[1]=o):o=e[1];const a=o;let c;e[2]!==r||e[3]!==t?(c=m=>m[1]===r.id&&m[3]==="collection"&&m[4]==="VIRTUAL_MCP"&&m[5]===t,e[2]=r,e[3]=t,e[4]=c):c=e[4];const l=c;let u;e[5]!==l||e[6]!==n||e[7]!==a?(u=()=>{for(const[,m]of n.getQueriesData({predicate:x=>l(x.queryKey)}))if(m?.item)return m.item.metadata?.releases??[];return a},e[5]=l,e[6]=n,e[7]=a,e[8]=u):u=e[8];const d=u;let f;e[9]!==i||e[10]!==l||e[11]!==n||e[12]!==d||e[13]!==t?(f=m=>cp(`vm-releases:${t}`,async()=>{const x=d(),y=m(x);if(y!==x){n.setQueriesData({predicate:C=>l(C.queryKey)},C=>C?.item?{item:{...C.item,metadata:{...C.item.metadata,releases:y}}}:C);try{await i.update.mutateAsync({id:t,data:{metadata:{releases:y}}})}catch(C){const N=C;throw n.invalidateQueries({predicate:T=>l(T.queryKey)}),N}}}),e[9]=i,e[10]=l,e[11]=n,e[12]=d,e[13]=t,e[14]=f):f=e[14];const p=f;let _;e[15]!==p?(_=m=>p(x=>em(x,m)),e[15]=p,e[16]=_):_=e[16];const g=_;let v;e[17]!==p?(v=(m,x)=>p(y=>sm(y,m,x)),e[17]=p,e[18]=v):v=e[18];const b=v;let k;e[19]!==p?(k=m=>p(x=>tm(x,m)),e[19]=p,e[20]=k):k=e[20];const w=k;let S;return e[21]!==g||e[22]!==w||e[23]!==a||e[24]!==b?(S={releases:a,createRelease:g,renameRelease:b,deleteRelease:w},e[21]=g,e[22]=w,e[23]=a,e[24]=b,e[25]=S):S=e[25],S}function rm(t,e){const s=getComputedStyle(t),i=parseFloat(s.fontSize);return e*i}function nm(t,e){const s=getComputedStyle(t.ownerDocument.documentElement),i=parseFloat(s.fontSize);return e*i}function om(t){return t/100*window.innerHeight}function am(t){return t/100*window.innerWidth}function lm(t){switch(typeof t){case"number":return[t,"px"];case"string":{const e=parseFloat(t);return t.endsWith("%")?[e,"%"]:t.endsWith("px")?[e,"px"]:t.endsWith("rem")?[e,"rem"]:t.endsWith("em")?[e,"em"]:t.endsWith("vh")?[e,"vh"]:t.endsWith("vw")?[e,"vw"]:[e,"%"]}}}function mi({groupSize:t,panelElement:e,styleProp:s}){let i;const[r,n]=lm(s);switch(n){case"%":{i=r/100*t;break}case"px":{i=r;break}case"rem":{i=nm(e,r);break}case"em":{i=rm(e,r);break}case"vh":{i=om(r);break}case"vw":{i=am(r);break}}return i}function vt(t){return parseFloat(t.toFixed(3))}function si({group:t}){const{orientation:e,panels:s}=t;return s.reduce((i,r)=>(i+=e==="horizontal"?r.element.offsetWidth:r.element.offsetHeight,i),0)}function Ln(t){const{panels:e}=t,s=si({group:t});return s===0?e.map(i=>({groupResizeBehavior:i.panelConstraints.groupResizeBehavior,collapsedSize:0,collapsible:i.panelConstraints.collapsible===!0,defaultSize:void 0,disabled:i.panelConstraints.disabled,minSize:0,maxSize:100,panelId:i.id})):e.map(i=>{const{element:r,panelConstraints:n}=i;let o=0;if(n.collapsedSize!==void 0){const u=mi({groupSize:s,panelElement:r,styleProp:n.collapsedSize});o=vt(u/s*100)}let a;if(n.defaultSize!==void 0){const u=mi({groupSize:s,panelElement:r,styleProp:n.defaultSize});a=vt(u/s*100)}let c=0;if(n.minSize!==void 0){const u=mi({groupSize:s,panelElement:r,styleProp:n.minSize});c=vt(u/s*100)}let l=100;if(n.maxSize!==void 0){const u=mi({groupSize:s,panelElement:r,styleProp:n.maxSize});l=vt(u/s*100)}return{groupResizeBehavior:n.groupResizeBehavior,collapsedSize:o,collapsible:n.collapsible===!0,defaultSize:a,disabled:n.disabled,minSize:c,maxSize:l,panelId:i.id}})}function De(t,e="Assertion error"){if(!t)throw Error(e)}function jn(t,e){return Array.from(e).sort(t==="horizontal"?cm:hm)}function cm(t,e){const s=t.element.offsetLeft-e.element.offsetLeft;return s!==0?s:t.element.offsetWidth-e.element.offsetWidth}function hm(t,e){const s=t.element.offsetTop-e.element.offsetTop;return s!==0?s:t.element.offsetHeight-e.element.offsetHeight}function $h(t){return t!==null&&typeof t=="object"&&"nodeType"in t&&t.nodeType===Node.ELEMENT_NODE}function Fh(t,e){return{x:t.x>=e.left&&t.x<=e.right?0:Math.min(Math.abs(t.x-e.left),Math.abs(t.x-e.right)),y:t.y>=e.top&&t.y<=e.bottom?0:Math.min(Math.abs(t.y-e.top),Math.abs(t.y-e.bottom))}}function dm({orientation:t,rects:e,targetRect:s}){const i={x:s.x+s.width/2,y:s.y+s.height/2};let r,n=Number.MAX_VALUE;for(const o of e){const{x:a,y:c}=Fh(i,o),l=t==="horizontal"?a:c;l<n&&(n=l,r=o)}return De(r,"No rect found"),r}let Zi;function um(){return Zi===void 0&&(typeof matchMedia=="function"?Zi=!!matchMedia("(pointer:coarse)").matches:Zi=!1),Zi}function Hh(t){const{element:e,orientation:s,panels:i,separators:r}=t,n=jn(s,Array.from(e.children).filter($h).map(_=>({element:_}))).map(({element:_})=>_),o=[];let a=!1,c=!1,l=-1,u=-1,d=0,f,p=[];{let _=-1;for(const g of n)g.hasAttribute("data-panel")&&(_++,g.hasAttribute("data-disabled")||(d++,l===-1&&(l=_),u=_))}if(d>1){let _=-1;for(const g of n)if(g.hasAttribute("data-panel")){_++;const v=i.find(b=>b.element===g);if(v){if(f){const b=f.element.getBoundingClientRect(),k=g.getBoundingClientRect();let w;if(c){const S=s==="horizontal"?new DOMRect(b.right,b.top,0,b.height):new DOMRect(b.left,b.bottom,b.width,0),m=s==="horizontal"?new DOMRect(k.left,k.top,0,k.height):new DOMRect(k.left,k.top,k.width,0);switch(p.length){case 0:{w=[S,m];break}case 1:{const x=p[0],y=dm({orientation:s,rects:[b,k],targetRect:x.element.getBoundingClientRect()});w=[x,y===b?m:S];break}default:{w=p;break}}}else p.length?w=p:w=[s==="horizontal"?new DOMRect(b.right,k.top,k.left-b.right,k.height):new DOMRect(k.left,b.bottom,k.width,k.top-b.bottom)];for(const S of w){let m="width"in S?S:S.element.getBoundingClientRect();const x=um()?t.resizeTargetMinimumSize.coarse:t.resizeTargetMinimumSize.fine;if(m.width<x){const C=x-m.width;m=new DOMRect(m.x-C/2,m.y,m.width+C,m.height)}if(m.height<x){const C=x-m.height;m=new DOMRect(m.x,m.y-C/2,m.width,m.height+C)}const y=_<=l||_>u;!a&&!y&&o.push({group:t,groupSize:si({group:t}),panels:[f,v],separator:"width"in S?void 0:S,rect:m}),a=!1}}c=!1,f=v,p=[]}}else if(g.hasAttribute("data-separator")){g.ariaDisabled!==null&&(a=!0);const v=r.find(b=>b.element===g);v?p.push(v):(f=void 0,p=[])}else c=!0}return o}class Wh{#e={};addListener(e,s){const i=this.#e[e];return i===void 0?this.#e[e]=[s]:i.includes(s)||i.push(s),()=>{this.removeListener(e,s)}}emit(e,s){const i=this.#e[e];if(i!==void 0)if(i.length===1)i[0].call(null,s);else{let r=!1,n=null;const o=Array.from(i);for(let a=0;a<o.length;a++){const c=o[a];try{c.call(null,s)}catch(l){n===null&&(r=!0,n=l)}}if(r)throw n}}removeAllListeners(){this.#e={}}removeListener(e,s){const i=this.#e[e];if(i!==void 0){const r=i.indexOf(s);r>=0&&i.splice(r,1)}}}let Zs={cursorFlags:0,state:"inactive"};const sa=new Wh;function Ls(){return Zs}function fm(t){return sa.addListener("change",t)}function pm(t){const e=Zs,s={...Zs};s.cursorFlags=t,Zs=s,sa.emit("change",{prev:e,next:s})}function Qs(t){const e=Zs;Zs=t,sa.emit("change",{prev:e,next:t})}const _m=t=>t,tn=()=>{},Uh=1,Kh=2,qh=4,Vh=8,qa=3,Va=12;let Qi;function Ga(){return Qi===void 0&&(Qi=!1,typeof window<"u"&&(window.navigator.userAgent.includes("Chrome")||window.navigator.userAgent.includes("Firefox"))&&(Qi=!0)),Qi}function mm({cursorFlags:t,groups:e,state:s}){let i=0,r=0;switch(s){case"active":case"hover":e.forEach(n=>{if(!n.mutableState.disableCursor)switch(n.orientation){case"horizontal":{i++;break}case"vertical":{r++;break}}})}if(!(i===0&&r===0)){switch(s){case"active":{if(t&&Ga()){const n=(t&Uh)!==0,o=(t&Kh)!==0,a=(t&qh)!==0,c=(t&Vh)!==0;if(n)return a?"se-resize":c?"ne-resize":"e-resize";if(o)return a?"sw-resize":c?"nw-resize":"w-resize";if(a)return"s-resize";if(c)return"n-resize"}break}}return Ga()?i>0&&r>0?"move":i>0?"ew-resize":"ns-resize":i>0&&r>0?"grab":i>0?"col-resize":"row-resize"}}const Ya=new WeakMap;function ia(t){if(t.defaultView===null||t.defaultView===void 0)return;let{prevStyle:e,styleSheet:s}=Ya.get(t)??{};s===void 0&&(s=new t.defaultView.CSSStyleSheet,t.adoptedStyleSheets&&(Object.isExtensible(t.adoptedStyleSheets)?t.adoptedStyleSheets.push(s):t.adoptedStyleSheets=[...t.adoptedStyleSheets,s]));const i=Ls();switch(i.state){case"active":case"hover":{const r=mm({cursorFlags:i.cursorFlags,groups:i.hitRegions.map(o=>o.group),state:i.state}),n=`*, *:hover {cursor: ${r} !important; }`;if(e===n)return;e=n,r?s.cssRules.length===0?s.insertRule(n):s.replaceSync(n):s.cssRules.length===1&&s.deleteRule(0);break}case"inactive":{e=void 0,s.cssRules.length===1&&s.deleteRule(0);break}}Ya.set(t,{prevStyle:e,styleSheet:s})}let Xt=new Map;const Gh=new Wh;function gm(t){Xt=new Map(Xt),Xt.delete(t)}function Xa(t,e){for(const[s]of Xt)if(s.id===t)return s}function xs(t,e){for(const[s,i]of Xt)if(s.id===t)return i;if(e)throw Error(`Could not find data for Group with id ${t}`)}function Fs(){return Xt}function ra(t,e){return Gh.addListener("groupChange",s=>{s.group.id===t&&e(s)})}function cs(t,e,s){const i=Xt.get(t);Xt=new Map(Xt),Xt.set(t,e),Gh.emit("groupChange",{group:t,isUserInteraction:s?.isUserInteraction===!0,prev:i,next:e})}function Yh(t){const e=Ls();let s=!1;return e.state==="active"&&(Qs({cursorFlags:0,state:"inactive"}),e.hitRegions.length>0&&(ia(t),s=!0,e.hitRegions.forEach(i=>{const r=xs(i.group.id,!0);cs(i.group,r,{isUserInteraction:!0})}))),s}function Ja(t){t.defaultPrevented||Yh(t.currentTarget)}function vm(t,e,s){let i,r={x:1/0,y:1/0};for(const n of e){const o=Fh(s,n.rect);switch(t){case"horizontal":{o.x<=r.x&&(i=n,r=o);break}case"vertical":{o.y<=r.y&&(i=n,r=o);break}}}return i?{distance:r,hitRegion:i}:void 0}function bm(t){return t!==null&&typeof t=="object"&&"nodeType"in t&&t.nodeType===Node.DOCUMENT_FRAGMENT_NODE}function Sm(t,e){if(t===e)throw new Error("Cannot compare node with itself");const s={a:el(t),b:el(e)};let i;for(;s.a.at(-1)===s.b.at(-1);)i=s.a.pop(),s.b.pop();De(i,"Stacking order can only be calculated for elements with a common ancestor");const r={a:Qa(Za(s.a)),b:Qa(Za(s.b))};if(r.a===r.b){const n=i.childNodes,o={a:s.a.at(-1),b:s.b.at(-1)};let a=n.length;for(;a--;){const c=n[a];if(c===o.a)return 1;if(c===o.b)return-1}}return Math.sign(r.a-r.b)}const ym=/\b(?:position|zIndex|opacity|transform|webkitTransform|mixBlendMode|filter|webkitFilter|isolation)\b/;function xm(t){const e=getComputedStyle(Xh(t)??t).display;return e==="flex"||e==="inline-flex"}function wm(t){const e=getComputedStyle(t);return!!(e.position==="fixed"||e.zIndex!=="auto"&&(e.position!=="static"||xm(t))||+e.opacity<1||"transform"in e&&e.transform!=="none"||"webkitTransform"in e&&e.webkitTransform!=="none"||"mixBlendMode"in e&&e.mixBlendMode!=="normal"||"filter"in e&&e.filter!=="none"||"webkitFilter"in e&&e.webkitFilter!=="none"||"isolation"in e&&e.isolation==="isolate"||ym.test(e.willChange)||e.webkitOverflowScrolling==="touch")}function Za(t){let e=t.length;for(;e--;){const s=t[e];if(De(s,"Missing node"),wm(s))return s}return null}function Qa(t){return t&&Number(getComputedStyle(t).zIndex)||0}function el(t){const e=[];for(;t;)e.push(t),t=Xh(t);return e}function Xh(t){const{parentNode:e}=t;return bm(e)?e.host:e}function Cm(t,e){return t.x<e.x+e.width&&t.x+t.width>e.x&&t.y<e.y+e.height&&t.y+t.height>e.y}function km({groupElement:t,hitRegion:e,pointerEventTarget:s}){if(!$h(s)||s.contains(t)||t.contains(s))return!0;if(Sm(s,t)>0){let i=s;for(;i;){if(i.contains(t))return!0;if(Cm(i.getBoundingClientRect(),e))return!1;i=i.parentElement}}return!0}function na(t,e){const s=[];return e.forEach((i,r)=>{if(r.disabled)return;const n=Hh(r),o=vm(r.orientation,n,{x:t.clientX,y:t.clientY});o&&o.distance.x<=0&&o.distance.y<=0&&km({groupElement:r.element,hitRegion:o.hitRegion.rect,pointerEventTarget:t.target})&&s.push(o.hitRegion)}),s}function Pm(t,e){if(t.length!==e.length)return!1;for(let s=0;s<t.length;s++)if(t[s]!=e[s])return!1;return!0}function pt(t,e,s=0){return Math.abs(vt(t)-vt(e))<=s}function Yt(t,e){return pt(t,e)?0:t>e?1:-1}function Xs({overrideDisabledPanels:t,panelConstraints:e,prevSize:s,size:i}){const{collapsedSize:r=0,collapsible:n,disabled:o,maxSize:a=100,minSize:c=0}=e;if(o&&!t)return s;if(Yt(i,c)<0)if(n){const l=(r+c)/2;Yt(i,l)<0?i=r:i=c}else i=c;return i=Math.min(a,i),i=vt(i),i}function Ti({delta:t,initialLayout:e,panelConstraints:s,pivotIndices:i,prevLayout:r,trigger:n}){if(pt(t,0))return e;const o=n==="imperative-api",a=Object.values(e),c=Object.values(r),l=[...a],[u,d]=i;De(u!=null,"Invalid first pivot index"),De(d!=null,"Invalid second pivot index");let f=0;switch(n){case"keyboard":{{const g=t<0?d:u,v=s[g];De(v,`Panel constraints not found for index ${g}`);const{collapsedSize:b=0,collapsible:k,minSize:w=0}=v;if(k){const S=a[g];if(De(S!=null,`Previous layout not found for panel index ${g}`),pt(S,b)){const m=w-S;Yt(m,Math.abs(t))>0&&(t=t<0?0-m:m)}}}{const g=t<0?u:d,v=s[g];De(v,`No panel constraints found for index ${g}`);const{collapsedSize:b=0,collapsible:k,minSize:w=0}=v;if(k){const S=a[g];if(De(S!=null,`Previous layout not found for panel index ${g}`),pt(S,w)){const m=S-b;Yt(m,Math.abs(t))>0&&(t=t<0?0-m:m)}}}break}default:{const g=t<0?d:u,v=s[g];De(v,`Panel constraints not found for index ${g}`);const b=a[g],{collapsible:k,collapsedSize:w,minSize:S}=v;if(k&&Yt(b,S)<0)if(t>0){const m=S-w,x=m/2,y=b+t;Yt(y,S)<0&&(t=Yt(t,x)<=0?0:m)}else{const m=S-w,x=100-m/2,y=b-t;Yt(y,S)<0&&(t=Yt(100+t,x)>0?0:-m)}break}}{const g=t<0?1:-1;let v=t<0?d:u,b=0;for(;;){const w=a[v];De(w!=null,`Previous layout not found for panel index ${v}`);const S=Xs({overrideDisabledPanels:o,panelConstraints:s[v],prevSize:w,size:100})-w;if(b+=S,v+=g,v<0||v>=s.length)break}const k=Math.min(Math.abs(t),Math.abs(b));t=t<0?0-k:k}{let g=t<0?u:d;for(;g>=0&&g<s.length;){const v=Math.abs(t)-Math.abs(f),b=a[g];De(b!=null,`Previous layout not found for panel index ${g}`);const k=b-v,w=Xs({overrideDisabledPanels:o,panelConstraints:s[g],prevSize:b,size:k});if(!pt(b,w)&&(f+=b-w,l[g]=w,f.toFixed(3).localeCompare(Math.abs(t).toFixed(3),void 0,{numeric:!0})>=0))break;t<0?g--:g++}}if(Pm(c,l))return r;{const g=t<0?d:u,v=a[g];De(v!=null,`Previous layout not found for panel index ${g}`);const b=v+f,k=Xs({overrideDisabledPanels:o,panelConstraints:s[g],prevSize:v,size:b});if(l[g]=k,!pt(k,b)){let w=b-k,S=t<0?d:u;for(;S>=0&&S<s.length;){const m=l[S];De(m!=null,`Previous layout not found for panel index ${S}`);const x=m+w,y=Xs({overrideDisabledPanels:o,panelConstraints:s[S],prevSize:m,size:x});if(pt(m,y)||(w-=y-m,l[S]=y),pt(w,0))break;t>0?S--:S++}}}const p=Object.values(l).reduce((g,v)=>v+g,0);if(!pt(p,100,.1))return r;const _=Object.keys(r);return l.reduce((g,v,b)=>(g[_[b]]=v,g),{})}function js(t,e){if(Object.keys(t).length!==Object.keys(e).length)return!1;for(const s in t)if(e[s]===void 0||Yt(t[s],e[s])!==0)return!1;return!0}function Is({layout:t,panelConstraints:e}){const s=Object.values(t),i=[...s],r=i.reduce((a,c)=>a+c,0);if(i.length!==e.length)throw Error(`Invalid ${e.length} panel layout: ${i.map(a=>`${a}%`).join(", ")}`);if(!pt(r,100)&&i.length>0)for(let a=0;a<e.length;a++){const c=i[a];De(c!=null,`No layout data found for index ${a}`);const l=100/r*c;i[a]=l}let n=0;for(let a=0;a<e.length;a++){const c=s[a];De(c!=null,`No layout data found for index ${a}`);const l=i[a];De(l!=null,`No layout data found for index ${a}`);const u=Xs({overrideDisabledPanels:!0,panelConstraints:e[a],prevSize:c,size:l});l!=u&&(n+=l-u,i[a]=u)}if(!pt(n,0))for(let a=0;a<e.length;a++){const c=i[a];De(c!=null,`No layout data found for index ${a}`);const l=c+n,u=Xs({overrideDisabledPanels:!0,panelConstraints:e[a],prevSize:c,size:l});if(c!==u&&(n-=u-c,i[a]=u,pt(n,0)))break}const o=Object.keys(t);return i.reduce((a,c,l)=>(a[o[l]]=c,a),{})}function Jh({groupId:t,panelId:e}){const s=()=>{const c=Fs();for(const[l,{defaultLayoutDeferred:u,derivedPanelConstraints:d,layout:f,groupSize:p,separatorToPanels:_}]of c)if(l.id===t)return{defaultLayoutDeferred:u,derivedPanelConstraints:d,group:l,groupSize:p,layout:f,separatorToPanels:_};throw Error(`Group ${t} not found`)},i=()=>{const c=s().derivedPanelConstraints.find(l=>l.panelId===e);if(c!==void 0)return c;throw Error(`Panel constraints not found for Panel ${e}`)},r=()=>{const c=s().group.panels.find(l=>l.id===e);if(c!==void 0)return c;throw Error(`Layout not found for Panel ${e}`)},n=()=>{const c=s().layout[e];if(c!==void 0)return c;throw Error(`Layout not found for Panel ${e}`)},o=({nextSize:c,panels:l,prevLayout:u,derivedPanelConstraints:d})=>{const f=n(),p=l.findIndex(v=>v.id===e),_=p===0,g=p===l.length-1;if(g&&c<f&&(_||l.slice(0,p).every((v,b)=>{const k=d[b];return k?.collapsible&&pt(k.collapsedSize,u[k.panelId])}))){const v=l.slice(0,p).reduce((b,k)=>b+u[k.id],0);return{...u,[e]:vt(100-v)}}return Ti({delta:g?f-c:c-f,initialLayout:u,panelConstraints:d,pivotIndices:g?[p-1,p]:[p,p+1],prevLayout:u,trigger:"imperative-api"})},a=c=>{const l=n();if(c===l)return;const{defaultLayoutDeferred:u,derivedPanelConstraints:d,group:f,groupSize:p,layout:_,separatorToPanels:g}=s(),v=o({nextSize:c,panels:f.panels,prevLayout:_,derivedPanelConstraints:d}),b=Is({layout:v,panelConstraints:d});js(_,b)||cs(f,{defaultLayoutDeferred:u,derivedPanelConstraints:d,groupSize:p,layout:b,separatorToPanels:g})};return{collapse:()=>{const{collapsible:c,collapsedSize:l}=i(),{mutableValues:u}=r(),d=n();c&&d!==l&&(u.expandToSize=d,a(l))},expand:()=>{const{collapsible:c,collapsedSize:l,minSize:u}=i(),{mutableValues:d}=r(),f=n();if(c&&f===l){let p=d.expandToSize??u;p===0&&(p=1),a(p)}},getSize:()=>{const{group:c}=s(),l=n(),{element:u}=r(),d=c.orientation==="horizontal"?u.offsetWidth:u.offsetHeight;return{asPercentage:l,inPixels:d}},isCollapsed:()=>{const{collapsible:c,collapsedSize:l}=i(),u=n();return c&&pt(l,u)},resize:c=>{const{group:l}=s(),{element:u}=r(),d=si({group:l}),f=mi({groupSize:d,panelElement:u,styleProp:c}),p=vt(f/d*100);a(p)}}}function tl(t){if(t.defaultPrevented)return;const e=Fs();na(t,e).forEach(s=>{if(s.separator&&!s.separator.disableDoubleClick){const i=s.panels.find(r=>r.panelConstraints.defaultSize!==void 0);if(i){const r=i.panelConstraints.defaultSize,n=Jh({groupId:s.group.id,panelId:i.id});n&&r!==void 0&&(n.resize(r),t.preventDefault())}}})}function dr(t){const e=Fs();for(const[s]of e)if(s.separators.some(i=>i.element===t))return s;throw Error("Could not find parent Group for separator element")}function Zh({groupId:t}){const e=()=>{const s=Fs();for(const[i,r]of s)if(i.id===t)return{group:i,...r};throw Error(`Could not find Group with id "${t}"`)};return{getLayout(){const{defaultLayoutDeferred:s,layout:i}=e();return s?{}:i},setLayout(s){const{defaultLayoutDeferred:i,derivedPanelConstraints:r,group:n,groupSize:o,layout:a,separatorToPanels:c}=e(),l=Is({layout:s,panelConstraints:r});return i?a:(js(a,l)||cs(n,{defaultLayoutDeferred:i,derivedPanelConstraints:r,groupSize:o,layout:l,separatorToPanels:c}),l)}}}function Rs(t,e){const s=dr(t),i=xs(s.id,!0),r=s.separators.find(u=>u.element===t);De(r,"Matching separator not found");const n=i.separatorToPanels.get(r);De(n,"Matching panels not found");const o=n.map(u=>s.panels.indexOf(u)),a=Zh({groupId:s.id}).getLayout(),c=Ti({delta:e,initialLayout:a,panelConstraints:i.derivedPanelConstraints,pivotIndices:o,prevLayout:a,trigger:"keyboard"}),l=Is({layout:c,panelConstraints:i.derivedPanelConstraints});js(a,l)||cs(s,{defaultLayoutDeferred:i.defaultLayoutDeferred,derivedPanelConstraints:i.derivedPanelConstraints,groupSize:i.groupSize,layout:l,separatorToPanels:i.separatorToPanels},{isUserInteraction:!0})}function sl(t){if(t.defaultPrevented)return;const e=t.currentTarget,s=dr(e);if(!s.disabled)switch(t.key){case"ArrowDown":{t.preventDefault(),s.orientation==="vertical"&&Rs(e,5);break}case"ArrowLeft":{t.preventDefault(),s.orientation==="horizontal"&&Rs(e,-5);break}case"ArrowRight":{t.preventDefault(),s.orientation==="horizontal"&&Rs(e,5);break}case"ArrowUp":{t.preventDefault(),s.orientation==="vertical"&&Rs(e,-5);break}case"End":{t.preventDefault(),Rs(e,100);break}case"Enter":{t.preventDefault();const i=dr(e),r=xs(i.id,!0),{derivedPanelConstraints:n,layout:o,separatorToPanels:a}=r,c=i.separators.find(f=>f.element===e);De(c,"Matching separator not found");const l=a.get(c);De(l,"Matching panels not found");const u=l[0],d=n.find(f=>f.panelId===u.id);if(De(d,"Panel metadata not found"),d.collapsible){const f=o[u.id],p=d.collapsedSize===f?i.mutableState.expandedPanelSizes[u.id]??d.minSize:d.collapsedSize;Rs(e,p-f)}break}case"F6":{t.preventDefault();const i=dr(e).separators.map(o=>o.element),r=Array.from(i).findIndex(o=>o===t.currentTarget);De(r!==null,"Index not found");const n=t.shiftKey?r>0?r-1:i.length-1:r+1<i.length?r+1:0;i[n].focus({preventScroll:!0});break}case"Home":{t.preventDefault(),Rs(e,-100);break}}}function il(t){if(t.defaultPrevented||t.pointerType==="mouse"&&t.button>0)return;const e=Fs(),s=na(t,e),i=new Map;let r=!1;s.forEach(n=>{n.separator&&(r||(r=!0,n.separator.element.focus({focusVisible:!1,preventScroll:!0})));const o=e.get(n.group);o&&i.set(n.group,o.layout)}),Qs({cursorFlags:0,hitRegions:s,initialLayoutMap:i,pointerDownAtPoint:{x:t.clientX,y:t.clientY},state:"active"}),s.length&&t.preventDefault()}function Qh({document:t,event:e,hitRegions:s,initialLayoutMap:i,mountedGroups:r,pointerDownAtPoint:n,prevCursorFlags:o}){let a=0;s.forEach(l=>{const{group:u,groupSize:d}=l,{orientation:f,panels:p}=u,{disableCursor:_}=u.mutableState;let g=0;n?f==="horizontal"?g=(e.clientX-n.x)/d*100:g=(e.clientY-n.y)/d*100:f==="horizontal"?g=e.clientX<0?-100:100:g=e.clientY<0?-100:100;const v=i.get(u),b=r.get(u);if(!v||!b)return;const{defaultLayoutDeferred:k,derivedPanelConstraints:w,groupSize:S,layout:m,separatorToPanels:x}=b;if(w&&m&&x){const y=Ti({delta:g,initialLayout:v,panelConstraints:w,pivotIndices:l.panels.map(C=>p.indexOf(C)),prevLayout:m,trigger:"mouse-or-touch"});if(js(y,m)){if(g!==0&&!_)switch(f){case"horizontal":{a|=g<0?Uh:Kh;break}case"vertical":{a|=g<0?qh:Vh;break}}}else cs(l.group,{defaultLayoutDeferred:k,derivedPanelConstraints:w,groupSize:S,layout:y,separatorToPanels:x})}});let c=0;e.movementX===0?c|=o&qa:c|=a&qa,e.movementY===0?c|=o&Va:c|=a&Va,pm(c),ia(t)}function rl(t){const e=Fs(),s=Ls();s.state==="active"&&Qh({document:t.currentTarget,event:t,hitRegions:s.hitRegions,initialLayoutMap:s.initialLayoutMap,mountedGroups:e,prevCursorFlags:s.cursorFlags})}function nl(t){if(t.defaultPrevented)return;const e=Ls(),s=Fs();switch(e.state){case"active":{if(t.buttons===0){Qs({cursorFlags:0,state:"inactive"}),e.hitRegions.forEach(i=>{const r=xs(i.group.id,!0);cs(i.group,r,{isUserInteraction:!0})});return}for(const i of e.hitRegions)if(i.separator){const{element:r}=i.separator;r.hasPointerCapture?.(t.pointerId)||r.setPointerCapture?.(t.pointerId)}Qh({document:t.currentTarget,event:t,hitRegions:e.hitRegions,initialLayoutMap:e.initialLayoutMap,mountedGroups:s,pointerDownAtPoint:e.pointerDownAtPoint,prevCursorFlags:e.cursorFlags});break}default:{const i=na(t,s);i.length===0?e.state!=="inactive"&&Qs({cursorFlags:0,state:"inactive"}):Qs({cursorFlags:0,hitRegions:i,state:"hover"}),ia(t.currentTarget);break}}}function ol(t){t.relatedTarget instanceof HTMLIFrameElement&&Ls().state==="hover"&&Qs({cursorFlags:0,state:"inactive"})}function al(t){t.defaultPrevented||t.pointerType==="mouse"&&t.button>0||Yh(t.currentTarget)&&t.preventDefault()}function ll(t){let e=0,s=0;const i={};for(const n of t)if(n.defaultSize!==void 0){e++;const o=vt(n.defaultSize);s+=o,i[n.panelId]=o}else i[n.panelId]=void 0;const r=t.length-e;if(r!==0){const n=vt((100-s)/r);for(const o of t)o.defaultSize===void 0&&(i[o.panelId]=n)}return i}function Em(t,e,s){if(!s[0])return;const i=t.panels.find(c=>c.element===e);if(!i||!i.onResize)return;const r=si({group:t}),n=t.orientation==="horizontal"?i.element.offsetWidth:i.element.offsetHeight,o=i.mutableValues.prevSize,a={asPercentage:vt(n/r*100),inPixels:n};i.mutableValues.prevSize=a,i.onResize(a,i.id,o)}function Rm(t,e){if(Object.keys(t).length!==Object.keys(e).length)return!1;for(const s in t)if(t[s]!==e[s])return!1;return!0}function Tm({group:t,nextGroupSize:e,prevGroupSize:s,prevLayout:i}){if(s<=0||e<=0||s===e)return i;let r=0,n=0,o=!1;const a=new Map,c=[];for(const d of t.panels){const f=i[d.id]??0;if(d.panelConstraints.groupResizeBehavior==="preserve-pixel-size"){o=!0;const p=f/100*s,_=vt(p/e*100);a.set(d.id,_),r+=_}else c.push(d.id),n+=f}if(!o||c.length===0)return i;const l=100-r,u={...i};if(a.forEach((d,f)=>{u[f]=d}),n>0)for(const d of c){const f=i[d]??0;u[d]=vt(f/n*l)}else{const d=vt(l/c.length);for(const f of c)u[f]=d}return u}function Am(t,e){const s=t.map(r=>r.id),i=Object.keys(e);if(s.length!==i.length)return!1;for(const r of s)if(!i.includes(r))return!1;return!0}const Ks=new Map;function Dm(t){let e=!0;De(t.element.ownerDocument.defaultView,"Cannot register an unmounted Group");const s=t.element.ownerDocument.defaultView.ResizeObserver,i=new Set,r=new Set,n=new s(_=>{for(const g of _){const{borderBoxSize:v,target:b}=g;if(b===t.element){if(e){const k=si({group:t});if(k===0)return;const w=xs(t.id);if(!w)return;const S=Ln(t),m=w.defaultLayoutDeferred?ll(S):w.layout,x=Tm({group:t,nextGroupSize:k,prevGroupSize:w.groupSize,prevLayout:m}),y=Is({layout:x,panelConstraints:S});if(!w.defaultLayoutDeferred&&js(w.layout,y)&&Rm(w.derivedPanelConstraints,S)&&w.groupSize===k)return;cs(t,{defaultLayoutDeferred:!1,derivedPanelConstraints:S,groupSize:k,layout:y,separatorToPanels:w.separatorToPanels})}}else Em(t,b,v)}});n.observe(t.element),t.panels.forEach(_=>{De(!i.has(_.id),`Panel ids must be unique; id "${_.id}" was used more than once`),i.add(_.id),_.onResize&&n.observe(_.element)});const o=si({group:t}),a=Ln(t),c=t.panels.map(({id:_})=>_).join(",");let l=t.mutableState.defaultLayout;l&&(Am(t.panels,l)||(l=void 0));const u=t.mutableState.layouts[c]??l??ll(a),d=Is({layout:u,panelConstraints:a}),f=t.element.ownerDocument;Ks.set(f,(Ks.get(f)??0)+1);const p=new Map;return Hh(t).forEach(_=>{_.separator&&p.set(_.separator,_.panels)}),cs(t,{defaultLayoutDeferred:o===0,derivedPanelConstraints:a,groupSize:o,layout:d,separatorToPanels:p}),t.separators.forEach(_=>{De(!r.has(_.id),`Separator ids must be unique; id "${_.id}" was used more than once`),r.add(_.id),_.element.addEventListener("keydown",sl)}),Ks.get(f)===1&&(f.addEventListener("contextmenu",Ja,!0),f.addEventListener("dblclick",tl,!0),f.addEventListener("pointerdown",il,!0),f.addEventListener("pointerleave",rl),f.addEventListener("pointermove",nl),f.addEventListener("pointerout",ol),f.addEventListener("pointerup",al,!0)),function(){e=!1,Ks.set(f,Math.max(0,(Ks.get(f)??0)-1)),gm(t),t.separators.forEach(_=>{_.element.removeEventListener("keydown",sl)}),Ks.get(f)||(f.removeEventListener("contextmenu",Ja,!0),f.removeEventListener("dblclick",tl,!0),f.removeEventListener("pointerdown",il,!0),f.removeEventListener("pointerleave",rl),f.removeEventListener("pointermove",nl),f.removeEventListener("pointerout",ol),f.removeEventListener("pointerup",al,!0)),n.disconnect()}}function Nm(){const[t,e]=O.useState({}),s=O.useCallback(()=>e({}),[]);return[t,s]}function oa(t){const e=O.useId();return`${t??e}`}const Hs=typeof window<"u"?O.useLayoutEffect:O.useEffect;function Ci(t){const e=O.useRef(t);return Hs(()=>{e.current=t},[t]),O.useCallback((...s)=>e.current?.(...s),[e])}function aa(...t){return Ci(e=>{t.forEach(s=>{if(s)switch(typeof s){case"function":{s(e);break}case"object":{s.current=e;break}}})})}function la(t){const e=O.useRef({...t});return Hs(()=>{for(const s in t)e.current[s]=t[s]},[t]),e.current}const ed=O.createContext(null);function Mm(t,e){const s=O.useRef({getLayout:()=>({}),setLayout:_m});O.useImperativeHandle(e,()=>s.current,[]),Hs(()=>{Object.assign(s.current,Zh({groupId:t}))})}function td({children:t,className:e,defaultLayout:s,disableCursor:i,disabled:r,elementRef:n,groupRef:o,id:a,onLayoutChange:c,onLayoutChanged:l,orientation:u="horizontal",resizeTargetMinimumSize:d={coarse:20,fine:10},style:f,...p}){const _=O.useRef({onLayoutChange:{},onLayoutChanged:{}}),g=Ci(R=>{js(_.current.onLayoutChange,R)||(_.current.onLayoutChange=R,c?.(R))}),v=Ci((R,E)=>{js(_.current.onLayoutChanged,R)||(_.current.onLayoutChanged=R,l?.(R,{isUserInteraction:E}))}),b=oa(a),k=O.useRef(null),[w,S]=Nm(),m=O.useRef({lastExpandedPanelSizes:{},layouts:{},panels:[],resizeTargetMinimumSize:d,separators:[]}),x=aa(k,n);Mm(b,o);const y=Ci((R,E)=>{const P=Ls(),A=Xa(R),M=xs(R);if(M){let L=!1;return P.state==="active"&&(L=P.hitRegions.some(B=>B.group===A)),{flexGrow:M.layout[E]??1,pointerEvents:L?"none":void 0}}if(s?.[E])return{flexGrow:s?.[E]}}),C=la({defaultLayout:s,disableCursor:i}),N=O.useMemo(()=>({get disableCursor(){return!!C.disableCursor},getPanelStyles:y,id:b,orientation:u,registerPanel:R=>{const E=m.current;return E.panels=jn(u,[...E.panels,R]),S(),()=>{E.panels=E.panels.filter(P=>P!==R),S()}},registerSeparator:R=>{const E=m.current;return E.separators=jn(u,[...E.separators,R]),S(),()=>{E.separators=E.separators.filter(P=>P!==R),S()}},updatePanelProps:(R,{disabled:E})=>{const P=m.current.panels.find(L=>L.id===R);P&&(P.panelConstraints.disabled=E);const A=Xa(b),M=xs(b);A&&M&&cs(A,{...M,derivedPanelConstraints:Ln(A)})},updateSeparatorProps:(R,{disabled:E,disableDoubleClick:P})=>{const A=m.current.separators.find(M=>M.id===R);A&&(A.disabled=E,A.disableDoubleClick=P)}}),[y,b,S,u,C]),T=O.useRef(null);return Hs(()=>{const R=k.current;if(R===null)return;const E=m.current;let P;if(C.defaultLayout!==void 0&&Object.keys(C.defaultLayout).length===E.panels.length){P={};for(const K of E.panels){const z=C.defaultLayout[K.id];z!==void 0&&(P[K.id]=z)}}const A={disabled:!!r,element:R,id:b,mutableState:{defaultLayout:P,disableCursor:!!C.disableCursor,expandedPanelSizes:m.current.lastExpandedPanelSizes,layouts:m.current.layouts},orientation:u,panels:E.panels,resizeTargetMinimumSize:E.resizeTargetMinimumSize,separators:E.separators};T.current=A;const M=Dm(A),{defaultLayoutDeferred:L,derivedPanelConstraints:B,layout:D}=xs(A.id,!0);!L&&B.length>0&&(g(D),v(D,!1));const j=ra(b,K=>{const{defaultLayoutDeferred:z,derivedPanelConstraints:G,layout:I}=K.next;if(z||G.length===0)return;const V=A.panels.map(({id:ee})=>ee).join(",");A.mutableState.layouts[V]=I,G.forEach(ee=>{if(ee.collapsible){const{layout:se}=K.prev??{};if(se){const ie=pt(ee.collapsedSize,I[ee.panelId]),Y=pt(ee.collapsedSize,se[ee.panelId]);ie&&!Y&&(A.mutableState.expandedPanelSizes[ee.panelId]=se[ee.panelId])}}});const $=Ls().state!=="active";g(I),$&&v(I,K.isUserInteraction)});return()=>{T.current=null,M(),j()}},[r,b,v,g,u,w,C]),O.useEffect(()=>{const R=T.current;R&&(R.mutableState.defaultLayout=s,R.mutableState.disableCursor=!!i)}),h.jsx(ed.Provider,{value:N,children:h.jsx("div",{...p,className:e,"data-group":!0,"data-testid":b,id:b,ref:x,style:{height:"100%",width:"100%",overflow:"hidden",...f,display:"flex",flexDirection:u==="horizontal"?"row":"column",flexWrap:"nowrap",touchAction:u==="horizontal"?"pan-y":"pan-x"},children:t})})}td.displayName="Group";function ca(){const t=O.useContext(ed);return De(t,"Group Context not found; did you render a Panel or Separator outside of a Group?"),t}function Bm(t,e){const{id:s}=ca(),i=O.useRef({collapse:tn,expand:tn,getSize:()=>({asPercentage:0,inPixels:0}),isCollapsed:()=>!1,resize:tn});O.useImperativeHandle(e,()=>i.current,[]),Hs(()=>{Object.assign(i.current,Jh({groupId:s,panelId:t}))})}function sd({children:t,className:e,collapsedSize:s="0%",collapsible:i=!1,defaultSize:r,disabled:n,elementRef:o,groupResizeBehavior:a="preserve-relative-size",id:c,maxSize:l="100%",minSize:u="0%",onResize:d,panelRef:f,style:p,..._}){const g=!!c,v=oa(c),b=la({disabled:n}),k=O.useRef(null),w=aa(k,o),{getPanelStyles:S,id:m,orientation:x,registerPanel:y,updatePanelProps:C}=ca(),N=d!==null,T=Ci((A,M,L)=>{d?.(A,c,L)});Hs(()=>{const A=k.current;if(A!==null){const M={element:A,id:v,idIsStable:g,mutableValues:{expandToSize:void 0,prevSize:void 0},onResize:N?T:void 0,panelConstraints:{groupResizeBehavior:a,collapsedSize:s,collapsible:i,defaultSize:r,disabled:b.disabled,maxSize:l,minSize:u}};return y(M)}},[a,s,i,r,N,v,g,l,u,T,y,b]),O.useEffect(()=>{C(v,{disabled:n})},[n,v,C]),Bm(v,f);const R=()=>{const A=S(m,v);if(A)return JSON.stringify(A)},E=O.useSyncExternalStore(A=>ra(m,A),R,R);let P;return E?P=JSON.parse(E):r!==void 0?P={flexGrow:void 0,flexShrink:void 0,flexBasis:r}:P={flexGrow:1},h.jsx("div",{..._,"data-disabled":n||void 0,"data-panel":!0,"data-testid":v,id:v,ref:w,style:{...Lm,display:"flex",flexBasis:0,flexShrink:1,overflow:"visible",...P},children:h.jsx("div",{className:e,style:{maxHeight:"100%",maxWidth:"100%",flexGrow:1,overflow:"auto",...p,touchAction:x==="horizontal"?"pan-y":"pan-x"},children:t})})}sd.displayName="Panel";const Lm={minHeight:0,maxHeight:"100%",height:"auto",minWidth:0,maxWidth:"100%",width:"auto",border:"none",borderWidth:0,padding:0,margin:0};function jm({layout:t,panelConstraints:e,panelId:s,panelIndex:i}){let r,n;const o=t[s],a=e.find(c=>c.panelId===s);if(a){const c=a.maxSize,l=a.collapsible?a.collapsedSize:a.minSize,u=[i,i+1];n=Is({layout:Ti({delta:l-o,initialLayout:t,panelConstraints:e,pivotIndices:u,prevLayout:t}),panelConstraints:e})[s],r=Is({layout:Ti({delta:c-o,initialLayout:t,panelConstraints:e,pivotIndices:u,prevLayout:t}),panelConstraints:e})[s]}return{valueControls:s,valueMax:r,valueMin:n,valueNow:o}}function id({children:t,className:e,disabled:s,disableDoubleClick:i,elementRef:r,id:n,style:o,...a}){const c=oa(n),l=la({disabled:s,disableDoubleClick:i}),[u,d]=O.useState({}),[f,p]=O.useState("inactive"),[_,g]=O.useState(!1),v=O.useRef(null),b=aa(v,r),{disableCursor:k,id:w,orientation:S,registerSeparator:m,updateSeparatorProps:x}=ca(),y=S==="horizontal"?"vertical":"horizontal";Hs(()=>{const T=v.current;if(T!==null){const R={disabled:l.disabled,disableDoubleClick:l.disableDoubleClick,element:T,id:c},E=m(R),P=fm(M=>{p(M.next.state!=="inactive"&&M.next.hitRegions.some(L=>L.separator===R)?M.next.state:"inactive")}),A=ra(w,M=>{const{derivedPanelConstraints:L,layout:B,separatorToPanels:D}=M.next,j=D.get(R);if(j){const K=j[0],z=j.indexOf(K);d(jm({layout:B,panelConstraints:L,panelId:K.id,panelIndex:z}))}});return()=>{P(),A(),E()}}},[w,c,m,l]),O.useEffect(()=>{x(c,{disabled:s,disableDoubleClick:i})},[s,i,c,x]);let C;s&&!k&&(C="not-allowed");let N;return s?N="disabled":f==="active"?N="active":_?N="focus":N=f,h.jsx("div",{...a,"aria-controls":u.valueControls,"aria-disabled":s||void 0,"aria-orientation":y,"aria-valuemax":u.valueMax,"aria-valuemin":u.valueMin,"aria-valuenow":u.valueNow,children:t,className:e,"data-separator":N,"data-testid":c,id:c,onBlur:()=>g(!1),onFocus:()=>g(!0),ref:b,role:"separator",style:{flexBasis:"auto",cursor:C,...o,flexGrow:0,flexShrink:0,touchAction:"none"},tabIndex:s?void 0:0})}id.displayName="Separator";function Im(t){const e=H.c(10);let s,i,r;e[0]!==t?({className:s,ref:r,...i}=t,e[0]=t,e[1]=s,e[2]=i,e[3]=r):(s=e[1],i=e[2],r=e[3]);let n;e[4]!==s?(n=_e("flex h-full w-full",s),e[4]=s,e[5]=n):n=e[5];let o;return e[6]!==i||e[7]!==r||e[8]!==n?(o=h.jsx(td,{groupRef:r,"data-slot":"resizable-panel-group",className:n,...i}),e[6]=i,e[7]=r,e[8]=n,e[9]=o):o=e[9],o}function cl(t){const e=H.c(10);let s,i,r;e[0]!==t?({ref:i,style:r,...s}=t,e[0]=t,e[1]=s,e[2]=i,e[3]=r):(s=e[1],i=e[2],r=e[3]);let n;e[4]!==r?(n={overflow:"hidden",...r},e[4]=r,e[5]=n):n=e[5];let o;return e[6]!==s||e[7]!==i||e[8]!==n?(o=h.jsx(sd,{panelRef:i,"data-slot":"resizable-panel",style:n,...s}),e[6]=s,e[7]=i,e[8]=n,e[9]=o):o=e[9],o}function Om(t){const e=H.c(12);let s,i,r;e[0]!==t?({withHandle:r,className:s,...i}=t,e[0]=t,e[1]=s,e[2]=i,e[3]=r):(s=e[1],i=e[2],r=e[3]);let n;e[4]!==s?(n=_e("bg-border focus-visible:ring-ring relative flex w-[0.5px] items-center justify-center after:absolute after:inset-y-0 after:left-1/2 after:w-1 after:-translate-x-1/2 focus-visible:ring-1 focus-visible:ring-offset-1 focus-visible:outline-hidden aria-[orientation=horizontal]:h-px aria-[orientation=horizontal]:w-full aria-[orientation=horizontal]:after:left-0 aria-[orientation=horizontal]:after:h-1 aria-[orientation=horizontal]:after:w-full aria-[orientation=horizontal]:after:-translate-y-1/2 aria-[orientation=horizontal]:after:translate-x-0 [&[aria-orientation=horizontal]>div]:rotate-90",s),e[4]=s,e[5]=n):n=e[5];let o;e[6]!==r?(o=r&&h.jsx("div",{className:"bg-border z-10 flex h-4 w-3 items-center justify-center rounded-xs border",children:h.jsx(xf,{className:"size-2.5"})}),e[6]=r,e[7]=o):o=e[7];let a;return e[8]!==i||e[9]!==n||e[10]!==o?(a=h.jsx(id,{"data-slot":"resizable-handle",className:n,...i,children:o}),e[8]=i,e[9]=n,e[10]=o,e[11]=a):a=e[11],a}function hl(t,e){const s=typeof t=="number"?t:Number(t);return!Number.isFinite(s)||s<=0||s>=100?e:s}function zm(t,e){const s=H.c(8);let i;s[0]!==e?(i=c=>hl(c,e),s[0]=e,s[1]=i):i=s[1];const[r,n]=Do(t,i);let o;s[2]!==e||s[3]!==r?(o=hl(r,e),s[2]=e,s[3]=r,s[4]=o):o=s[4];let a;return s[5]!==n||s[6]!==o?(a=[o,n],s[5]=n,s[6]=o,s[7]=a):a=s[7],a}const $m=33;function Fm(){const t=H.c(1);let e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=Ju.sidePanelWidth(),t[0]=e):e=t[0],zm(e,$m)}function Hm(t){const e=H.c(1),{activeTab:s}=t;let i;return e[0]===Symbol.for("react.memo_cache_sentinel")?(i=h.jsx(jc,{}),e[0]=i):i=e[0],i}function Wm(){const t=H.c(5),e=Ho()??"overview";let s;t[0]!==e?(s=h.jsx(ls,{children:h.jsx(Hm,{activeTab:e})}),t[0]=e,t[1]=s):s=t[1];let i;return t[2]!==e||t[3]!==s?(i=h.jsx(Li,{children:s},e),t[2]=e,t[3]=s,t[4]=i):i=t[4],i}const Um=new Set(["site-editor","content"]);function Km(t){return t.hasClonableSource&&!t.fastPreviewActive&&t.mainTab!==null&&Um.has(t.mainTab)}const dl=/[\r\n<>]/,qm=/^[^\s@<>]+@[^\s@<>]+\.[^\s@<>]+$/;function Hr(t){const e=t?.userName?.trim();if(!e||dl.test(e))return null;const s=t?.userEmail?.trim();return!s||dl.test(s)?{userName:e}:qm.test(s)?{userName:e,userEmail:s}:{userName:e}}function Vm(t){return t.split(`
2
2
  `).filter(e=>!/^Co-authored-by:\s/i.test(e)).join(`
3
3
  `).trimEnd()}function Gm(t){const e=t.userName.trim(),s=t.userEmail?.trim();return s?`Co-authored-by: ${e} <${s}>`:`Co-authored-by: ${e}`}function rd(t,e){const s=Hr(e);if(!s)return t;const i=Vm(t),r=Gm(s);if(i.includes(r))return i;const n=i.trimEnd();return n.length>0?`${n}
4
4
 
@@ -1 +1 @@
1
- import{cG as _}from"./index-B3yBTWEk.js";var S={exports:{}},r={};var $;function I(){if($)return r;$=1;var m=Symbol.for("react.element"),y=Symbol.for("react.portal"),o=Symbol.for("react.fragment"),n=Symbol.for("react.strict_mode"),s=Symbol.for("react.profiler"),c=Symbol.for("react.provider"),f=Symbol.for("react.context"),x=Symbol.for("react.server_context"),u=Symbol.for("react.forward_ref"),i=Symbol.for("react.suspense"),l=Symbol.for("react.suspense_list"),a=Symbol.for("react.memo"),p=Symbol.for("react.lazy"),R=Symbol.for("react.offscreen"),b;b=Symbol.for("react.module.reference");function t(e){if(typeof e=="object"&&e!==null){var d=e.$$typeof;switch(d){case m:switch(e=e.type,e){case o:case s:case n:case i:case l:return e;default:switch(e=e&&e.$$typeof,e){case x:case f:case u:case p:case a:case c:return e;default:return d}}case y:return d}}}return r.ContextConsumer=f,r.ContextProvider=c,r.Element=m,r.ForwardRef=u,r.Fragment=o,r.Lazy=p,r.Memo=a,r.Portal=y,r.Profiler=s,r.StrictMode=n,r.Suspense=i,r.SuspenseList=l,r.isAsyncMode=function(){return!1},r.isConcurrentMode=function(){return!1},r.isContextConsumer=function(e){return t(e)===f},r.isContextProvider=function(e){return t(e)===c},r.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===m},r.isForwardRef=function(e){return t(e)===u},r.isFragment=function(e){return t(e)===o},r.isLazy=function(e){return t(e)===p},r.isMemo=function(e){return t(e)===a},r.isPortal=function(e){return t(e)===y},r.isProfiler=function(e){return t(e)===s},r.isStrictMode=function(e){return t(e)===n},r.isSuspense=function(e){return t(e)===i},r.isSuspenseList=function(e){return t(e)===l},r.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===o||e===s||e===n||e===i||e===l||e===R||typeof e=="object"&&e!==null&&(e.$$typeof===p||e.$$typeof===a||e.$$typeof===c||e.$$typeof===f||e.$$typeof===u||e.$$typeof===b||e.getModuleId!==void 0)},r.typeOf=t,r}var v;function C(){return v||(v=1,S.exports=I()),S.exports}var g=C();const h=_(g);export{h as R,g as r};
1
+ import{cG as _}from"./index-BodvdIMk.js";var S={exports:{}},r={};var $;function I(){if($)return r;$=1;var m=Symbol.for("react.element"),y=Symbol.for("react.portal"),o=Symbol.for("react.fragment"),n=Symbol.for("react.strict_mode"),s=Symbol.for("react.profiler"),c=Symbol.for("react.provider"),f=Symbol.for("react.context"),x=Symbol.for("react.server_context"),u=Symbol.for("react.forward_ref"),i=Symbol.for("react.suspense"),l=Symbol.for("react.suspense_list"),a=Symbol.for("react.memo"),p=Symbol.for("react.lazy"),R=Symbol.for("react.offscreen"),b;b=Symbol.for("react.module.reference");function t(e){if(typeof e=="object"&&e!==null){var d=e.$$typeof;switch(d){case m:switch(e=e.type,e){case o:case s:case n:case i:case l:return e;default:switch(e=e&&e.$$typeof,e){case x:case f:case u:case p:case a:case c:return e;default:return d}}case y:return d}}}return r.ContextConsumer=f,r.ContextProvider=c,r.Element=m,r.ForwardRef=u,r.Fragment=o,r.Lazy=p,r.Memo=a,r.Portal=y,r.Profiler=s,r.StrictMode=n,r.Suspense=i,r.SuspenseList=l,r.isAsyncMode=function(){return!1},r.isConcurrentMode=function(){return!1},r.isContextConsumer=function(e){return t(e)===f},r.isContextProvider=function(e){return t(e)===c},r.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===m},r.isForwardRef=function(e){return t(e)===u},r.isFragment=function(e){return t(e)===o},r.isLazy=function(e){return t(e)===p},r.isMemo=function(e){return t(e)===a},r.isPortal=function(e){return t(e)===y},r.isProfiler=function(e){return t(e)===s},r.isStrictMode=function(e){return t(e)===n},r.isSuspense=function(e){return t(e)===i},r.isSuspenseList=function(e){return t(e)===l},r.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===o||e===s||e===n||e===i||e===l||e===R||typeof e=="object"&&e!==null&&(e.$$typeof===p||e.$$typeof===a||e.$$typeof===c||e.$$typeof===f||e.$$typeof===u||e.$$typeof===b||e.getModuleId!==void 0)},r.typeOf=t,r}var v;function C(){return v||(v=1,S.exports=I()),S.exports}var g=C();const h=_(g);export{h as R,g as r};
@@ -1 +1 @@
1
- import{r as l,aM as ce,j as p,aP as _,aJ as T,aN as C,aK as le,aO as de,c5 as ue,aL as fe,bW as me}from"./index-B3yBTWEk.js";import{e as Y}from"./select-Bc5UZb4n.js";var $=["PageUp","PageDown"],W=["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"],X={"from-left":["Home","PageDown","ArrowDown","ArrowLeft"],"from-right":["Home","PageDown","ArrowDown","ArrowRight"],"from-bottom":["Home","PageDown","ArrowDown","ArrowLeft"],"from-top":["Home","PageDown","ArrowUp","ArrowLeft"]},M="Slider",[z,Se,pe]=le(M),[G]=fe(M,[pe]),[he,V]=G(M),J=l.forwardRef((e,t)=>{const{name:o,min:n=0,max:s=100,step:c=1,orientation:r="horizontal",disabled:a=!1,minStepsBetweenThumbs:u=0,defaultValue:w=[n],value:h,onValueChange:i=()=>{},onValueCommit:d=()=>{},inverted:v=!1,form:R,...g}=e,m=l.useRef(new Set),f=l.useRef(0),x=r==="horizontal"?ge:ve,[S=[],K]=ce({prop:h,defaultProp:w,onChange:b=>{[...m.current][f.current]?.focus(),i(b)}}),j=l.useRef(S);function B(b){const y=ye(S,b);I(b,y)}function se(b){I(b,f.current)}function ae(){const b=j.current[f.current];S[f.current]!==b&&d(S)}function I(b,y,{commit:k}={commit:!1}){const U=_e(c),N=Ce(Math.round((b-n)/c)*c+n,U),A=Y(N,[n,s]);K((E=[])=>{const P=be(E,A,y);if(Ee(P,u*c)){f.current=P.indexOf(A);const F=String(P)!==String(E);return F&&k&&d(P),F?P:E}else return E})}return p.jsx(he,{scope:e.__scopeSlider,name:o,disabled:a,min:n,max:s,valueIndexToChangeRef:f,thumbs:m.current,values:S,orientation:r,form:R,children:p.jsx(z.Provider,{scope:e.__scopeSlider,children:p.jsx(z.Slot,{scope:e.__scopeSlider,children:p.jsx(x,{"aria-disabled":a,"data-disabled":a?"":void 0,...g,ref:t,onPointerDown:_(g.onPointerDown,()=>{a||(j.current=S)}),min:n,max:s,inverted:v,onSlideStart:a?void 0:B,onSlideMove:a?void 0:se,onSlideEnd:a?void 0:ae,onHomeKeyDown:()=>!a&&I(n,0,{commit:!0}),onEndKeyDown:()=>!a&&I(s,S.length-1,{commit:!0}),onStepKeyDown:({event:b,direction:y})=>{if(!a){const N=$.includes(b.key)||b.shiftKey&&W.includes(b.key)?10:1,A=f.current,E=S[A],P=c*N*y;I(E+P,A,{commit:!0})}}})})})})});J.displayName=M;var[q,Q]=G(M,{startEdge:"left",endEdge:"right",size:"width",direction:1}),ge=l.forwardRef((e,t)=>{const{min:o,max:n,dir:s,inverted:c,onSlideStart:r,onSlideMove:a,onSlideEnd:u,onStepKeyDown:w,...h}=e,[i,d]=l.useState(null),v=C(t,x=>d(x)),R=l.useRef(void 0),g=de(s),m=g==="ltr",f=m&&!c||!m&&c;function D(x){const S=R.current||i.getBoundingClientRect(),K=[0,S.width],B=O(K,f?[o,n]:[n,o]);return R.current=S,B(x-S.left)}return p.jsx(q,{scope:e.__scopeSlider,startEdge:f?"left":"right",endEdge:f?"right":"left",direction:f?1:-1,size:"width",children:p.jsx(Z,{dir:g,"data-orientation":"horizontal",...h,ref:v,style:{...h.style,"--radix-slider-thumb-transform":"translateX(-50%)"},onSlideStart:x=>{const S=D(x.clientX);r?.(S)},onSlideMove:x=>{const S=D(x.clientX);a?.(S)},onSlideEnd:()=>{R.current=void 0,u?.()},onStepKeyDown:x=>{const K=X[f?"from-left":"from-right"].includes(x.key);w?.({event:x,direction:K?-1:1})}})})}),ve=l.forwardRef((e,t)=>{const{min:o,max:n,inverted:s,onSlideStart:c,onSlideMove:r,onSlideEnd:a,onStepKeyDown:u,...w}=e,h=l.useRef(null),i=C(t,h),d=l.useRef(void 0),v=!s;function R(g){const m=d.current||h.current.getBoundingClientRect(),f=[0,m.height],x=O(f,v?[n,o]:[o,n]);return d.current=m,x(g-m.top)}return p.jsx(q,{scope:e.__scopeSlider,startEdge:v?"bottom":"top",endEdge:v?"top":"bottom",size:"height",direction:v?1:-1,children:p.jsx(Z,{"data-orientation":"vertical",...w,ref:i,style:{...w.style,"--radix-slider-thumb-transform":"translateY(50%)"},onSlideStart:g=>{const m=R(g.clientY);c?.(m)},onSlideMove:g=>{const m=R(g.clientY);r?.(m)},onSlideEnd:()=>{d.current=void 0,a?.()},onStepKeyDown:g=>{const f=X[v?"from-bottom":"from-top"].includes(g.key);u?.({event:g,direction:f?-1:1})}})})}),Z=l.forwardRef((e,t)=>{const{__scopeSlider:o,onSlideStart:n,onSlideMove:s,onSlideEnd:c,onHomeKeyDown:r,onEndKeyDown:a,onStepKeyDown:u,...w}=e,h=V(M,o);return p.jsx(T.span,{...w,ref:t,onKeyDown:_(e.onKeyDown,i=>{i.key==="Home"?(r(i),i.preventDefault()):i.key==="End"?(a(i),i.preventDefault()):$.concat(W).includes(i.key)&&(u(i),i.preventDefault())}),onPointerDown:_(e.onPointerDown,i=>{const d=i.target;d.setPointerCapture(i.pointerId),i.preventDefault(),h.thumbs.has(d)?d.focus():n(i)}),onPointerMove:_(e.onPointerMove,i=>{i.target.hasPointerCapture(i.pointerId)&&s(i)}),onPointerUp:_(e.onPointerUp,i=>{const d=i.target;d.hasPointerCapture(i.pointerId)&&(d.releasePointerCapture(i.pointerId),c(i))})})}),ee="SliderTrack",te=l.forwardRef((e,t)=>{const{__scopeSlider:o,...n}=e,s=V(ee,o);return p.jsx(T.span,{"data-disabled":s.disabled?"":void 0,"data-orientation":s.orientation,...n,ref:t})});te.displayName=ee;var H="SliderRange",ne=l.forwardRef((e,t)=>{const{__scopeSlider:o,...n}=e,s=V(H,o),c=Q(H,o),r=l.useRef(null),a=C(t,r),u=s.values.length,w=s.values.map(d=>ie(d,s.min,s.max)),h=u>1?Math.min(...w):0,i=100-Math.max(...w);return p.jsx(T.span,{"data-orientation":s.orientation,"data-disabled":s.disabled?"":void 0,...n,ref:a,style:{...e.style,[c.startEdge]:h+"%",[c.endEdge]:i+"%"}})});ne.displayName=H;var L="SliderThumb",oe=l.forwardRef((e,t)=>{const o=Se(e.__scopeSlider),[n,s]=l.useState(null),c=C(t,a=>s(a)),r=l.useMemo(()=>n?o().findIndex(a=>a.ref.current===n):-1,[o,n]);return p.jsx(we,{...e,ref:c,index:r})}),we=l.forwardRef((e,t)=>{const{__scopeSlider:o,index:n,name:s,...c}=e,r=V(L,o),a=Q(L,o),[u,w]=l.useState(null),h=C(t,D=>w(D)),i=u?r.form||!!u.closest("form"):!0,d=ue(u),v=r.values[n],R=v===void 0?0:ie(v,r.min,r.max),g=Re(n,r.values.length),m=d?.[a.size],f=m?Pe(m,R,a.direction):0;return l.useEffect(()=>{if(u)return r.thumbs.add(u),()=>{r.thumbs.delete(u)}},[u,r.thumbs]),p.jsxs("span",{style:{transform:"var(--radix-slider-thumb-transform)",position:"absolute",[a.startEdge]:`calc(${R}% + ${f}px)`},children:[p.jsx(z.ItemSlot,{scope:e.__scopeSlider,children:p.jsx(T.span,{role:"slider","aria-label":e["aria-label"]||g,"aria-valuemin":r.min,"aria-valuenow":v,"aria-valuemax":r.max,"aria-orientation":r.orientation,"data-orientation":r.orientation,"data-disabled":r.disabled?"":void 0,tabIndex:r.disabled?void 0:0,...c,ref:h,style:v===void 0?{display:"none"}:e.style,onFocus:_(e.onFocus,()=>{r.valueIndexToChangeRef.current=n})})}),i&&p.jsx(re,{name:s??(r.name?r.name+(r.values.length>1?"[]":""):void 0),form:r.form,value:v},n)]})});oe.displayName=L;var xe="RadioBubbleInput",re=l.forwardRef(({__scopeSlider:e,value:t,...o},n)=>{const s=l.useRef(null),c=C(s,n),r=me(t);return l.useEffect(()=>{const a=s.current;if(!a)return;const u=window.HTMLInputElement.prototype,h=Object.getOwnPropertyDescriptor(u,"value").set;if(r!==t&&h){const i=new Event("input",{bubbles:!0});h.call(a,t),a.dispatchEvent(i)}},[r,t]),p.jsx(T.input,{style:{display:"none"},...o,ref:c,defaultValue:t})});re.displayName=xe;function be(e=[],t,o){const n=[...e];return n[o]=t,n.sort((s,c)=>s-c)}function ie(e,t,o){const c=100/(o-t)*(e-t);return Y(c,[0,100])}function Re(e,t){return t>2?`Value ${e+1} of ${t}`:t===2?["Minimum","Maximum"][e]:void 0}function ye(e,t){if(e.length===1)return 0;const o=e.map(s=>Math.abs(s-t)),n=Math.min(...o);return o.indexOf(n)}function Pe(e,t,o){const n=e/2,c=O([0,50],[0,n]);return(n-c(t)*o)*o}function De(e){return e.slice(0,-1).map((t,o)=>e[o+1]-t)}function Ee(e,t){if(t>0){const o=De(e);return Math.min(...o)>=t}return!0}function O(e,t){return o=>{if(e[0]===e[1]||t[0]===t[1])return t[0];const n=(t[1]-t[0])/(e[1]-e[0]);return t[0]+n*(o-e[0])}}function _e(e){return(String(e).split(".")[1]||"").length}function Ce(e,t){const o=Math.pow(10,t);return Math.round(e*o)/o}var Ie=J,Ae=te,Te=ne,Ve=oe;export{Ie as R,Ae as T,Te as a,Ve as b};
1
+ import{r as l,aM as ce,j as p,aP as _,aJ as T,aN as C,aK as le,aO as de,c5 as ue,aL as fe,bW as me}from"./index-BodvdIMk.js";import{e as Y}from"./select-bwhAgSkw.js";var $=["PageUp","PageDown"],W=["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"],X={"from-left":["Home","PageDown","ArrowDown","ArrowLeft"],"from-right":["Home","PageDown","ArrowDown","ArrowRight"],"from-bottom":["Home","PageDown","ArrowDown","ArrowLeft"],"from-top":["Home","PageDown","ArrowUp","ArrowLeft"]},M="Slider",[z,Se,pe]=le(M),[G]=fe(M,[pe]),[he,V]=G(M),J=l.forwardRef((e,t)=>{const{name:o,min:n=0,max:s=100,step:c=1,orientation:r="horizontal",disabled:a=!1,minStepsBetweenThumbs:u=0,defaultValue:w=[n],value:h,onValueChange:i=()=>{},onValueCommit:d=()=>{},inverted:v=!1,form:R,...g}=e,m=l.useRef(new Set),f=l.useRef(0),x=r==="horizontal"?ge:ve,[S=[],K]=ce({prop:h,defaultProp:w,onChange:b=>{[...m.current][f.current]?.focus(),i(b)}}),j=l.useRef(S);function B(b){const y=ye(S,b);I(b,y)}function se(b){I(b,f.current)}function ae(){const b=j.current[f.current];S[f.current]!==b&&d(S)}function I(b,y,{commit:k}={commit:!1}){const U=_e(c),N=Ce(Math.round((b-n)/c)*c+n,U),A=Y(N,[n,s]);K((E=[])=>{const P=be(E,A,y);if(Ee(P,u*c)){f.current=P.indexOf(A);const F=String(P)!==String(E);return F&&k&&d(P),F?P:E}else return E})}return p.jsx(he,{scope:e.__scopeSlider,name:o,disabled:a,min:n,max:s,valueIndexToChangeRef:f,thumbs:m.current,values:S,orientation:r,form:R,children:p.jsx(z.Provider,{scope:e.__scopeSlider,children:p.jsx(z.Slot,{scope:e.__scopeSlider,children:p.jsx(x,{"aria-disabled":a,"data-disabled":a?"":void 0,...g,ref:t,onPointerDown:_(g.onPointerDown,()=>{a||(j.current=S)}),min:n,max:s,inverted:v,onSlideStart:a?void 0:B,onSlideMove:a?void 0:se,onSlideEnd:a?void 0:ae,onHomeKeyDown:()=>!a&&I(n,0,{commit:!0}),onEndKeyDown:()=>!a&&I(s,S.length-1,{commit:!0}),onStepKeyDown:({event:b,direction:y})=>{if(!a){const N=$.includes(b.key)||b.shiftKey&&W.includes(b.key)?10:1,A=f.current,E=S[A],P=c*N*y;I(E+P,A,{commit:!0})}}})})})})});J.displayName=M;var[q,Q]=G(M,{startEdge:"left",endEdge:"right",size:"width",direction:1}),ge=l.forwardRef((e,t)=>{const{min:o,max:n,dir:s,inverted:c,onSlideStart:r,onSlideMove:a,onSlideEnd:u,onStepKeyDown:w,...h}=e,[i,d]=l.useState(null),v=C(t,x=>d(x)),R=l.useRef(void 0),g=de(s),m=g==="ltr",f=m&&!c||!m&&c;function D(x){const S=R.current||i.getBoundingClientRect(),K=[0,S.width],B=O(K,f?[o,n]:[n,o]);return R.current=S,B(x-S.left)}return p.jsx(q,{scope:e.__scopeSlider,startEdge:f?"left":"right",endEdge:f?"right":"left",direction:f?1:-1,size:"width",children:p.jsx(Z,{dir:g,"data-orientation":"horizontal",...h,ref:v,style:{...h.style,"--radix-slider-thumb-transform":"translateX(-50%)"},onSlideStart:x=>{const S=D(x.clientX);r?.(S)},onSlideMove:x=>{const S=D(x.clientX);a?.(S)},onSlideEnd:()=>{R.current=void 0,u?.()},onStepKeyDown:x=>{const K=X[f?"from-left":"from-right"].includes(x.key);w?.({event:x,direction:K?-1:1})}})})}),ve=l.forwardRef((e,t)=>{const{min:o,max:n,inverted:s,onSlideStart:c,onSlideMove:r,onSlideEnd:a,onStepKeyDown:u,...w}=e,h=l.useRef(null),i=C(t,h),d=l.useRef(void 0),v=!s;function R(g){const m=d.current||h.current.getBoundingClientRect(),f=[0,m.height],x=O(f,v?[n,o]:[o,n]);return d.current=m,x(g-m.top)}return p.jsx(q,{scope:e.__scopeSlider,startEdge:v?"bottom":"top",endEdge:v?"top":"bottom",size:"height",direction:v?1:-1,children:p.jsx(Z,{"data-orientation":"vertical",...w,ref:i,style:{...w.style,"--radix-slider-thumb-transform":"translateY(50%)"},onSlideStart:g=>{const m=R(g.clientY);c?.(m)},onSlideMove:g=>{const m=R(g.clientY);r?.(m)},onSlideEnd:()=>{d.current=void 0,a?.()},onStepKeyDown:g=>{const f=X[v?"from-bottom":"from-top"].includes(g.key);u?.({event:g,direction:f?-1:1})}})})}),Z=l.forwardRef((e,t)=>{const{__scopeSlider:o,onSlideStart:n,onSlideMove:s,onSlideEnd:c,onHomeKeyDown:r,onEndKeyDown:a,onStepKeyDown:u,...w}=e,h=V(M,o);return p.jsx(T.span,{...w,ref:t,onKeyDown:_(e.onKeyDown,i=>{i.key==="Home"?(r(i),i.preventDefault()):i.key==="End"?(a(i),i.preventDefault()):$.concat(W).includes(i.key)&&(u(i),i.preventDefault())}),onPointerDown:_(e.onPointerDown,i=>{const d=i.target;d.setPointerCapture(i.pointerId),i.preventDefault(),h.thumbs.has(d)?d.focus():n(i)}),onPointerMove:_(e.onPointerMove,i=>{i.target.hasPointerCapture(i.pointerId)&&s(i)}),onPointerUp:_(e.onPointerUp,i=>{const d=i.target;d.hasPointerCapture(i.pointerId)&&(d.releasePointerCapture(i.pointerId),c(i))})})}),ee="SliderTrack",te=l.forwardRef((e,t)=>{const{__scopeSlider:o,...n}=e,s=V(ee,o);return p.jsx(T.span,{"data-disabled":s.disabled?"":void 0,"data-orientation":s.orientation,...n,ref:t})});te.displayName=ee;var H="SliderRange",ne=l.forwardRef((e,t)=>{const{__scopeSlider:o,...n}=e,s=V(H,o),c=Q(H,o),r=l.useRef(null),a=C(t,r),u=s.values.length,w=s.values.map(d=>ie(d,s.min,s.max)),h=u>1?Math.min(...w):0,i=100-Math.max(...w);return p.jsx(T.span,{"data-orientation":s.orientation,"data-disabled":s.disabled?"":void 0,...n,ref:a,style:{...e.style,[c.startEdge]:h+"%",[c.endEdge]:i+"%"}})});ne.displayName=H;var L="SliderThumb",oe=l.forwardRef((e,t)=>{const o=Se(e.__scopeSlider),[n,s]=l.useState(null),c=C(t,a=>s(a)),r=l.useMemo(()=>n?o().findIndex(a=>a.ref.current===n):-1,[o,n]);return p.jsx(we,{...e,ref:c,index:r})}),we=l.forwardRef((e,t)=>{const{__scopeSlider:o,index:n,name:s,...c}=e,r=V(L,o),a=Q(L,o),[u,w]=l.useState(null),h=C(t,D=>w(D)),i=u?r.form||!!u.closest("form"):!0,d=ue(u),v=r.values[n],R=v===void 0?0:ie(v,r.min,r.max),g=Re(n,r.values.length),m=d?.[a.size],f=m?Pe(m,R,a.direction):0;return l.useEffect(()=>{if(u)return r.thumbs.add(u),()=>{r.thumbs.delete(u)}},[u,r.thumbs]),p.jsxs("span",{style:{transform:"var(--radix-slider-thumb-transform)",position:"absolute",[a.startEdge]:`calc(${R}% + ${f}px)`},children:[p.jsx(z.ItemSlot,{scope:e.__scopeSlider,children:p.jsx(T.span,{role:"slider","aria-label":e["aria-label"]||g,"aria-valuemin":r.min,"aria-valuenow":v,"aria-valuemax":r.max,"aria-orientation":r.orientation,"data-orientation":r.orientation,"data-disabled":r.disabled?"":void 0,tabIndex:r.disabled?void 0:0,...c,ref:h,style:v===void 0?{display:"none"}:e.style,onFocus:_(e.onFocus,()=>{r.valueIndexToChangeRef.current=n})})}),i&&p.jsx(re,{name:s??(r.name?r.name+(r.values.length>1?"[]":""):void 0),form:r.form,value:v},n)]})});oe.displayName=L;var xe="RadioBubbleInput",re=l.forwardRef(({__scopeSlider:e,value:t,...o},n)=>{const s=l.useRef(null),c=C(s,n),r=me(t);return l.useEffect(()=>{const a=s.current;if(!a)return;const u=window.HTMLInputElement.prototype,h=Object.getOwnPropertyDescriptor(u,"value").set;if(r!==t&&h){const i=new Event("input",{bubbles:!0});h.call(a,t),a.dispatchEvent(i)}},[r,t]),p.jsx(T.input,{style:{display:"none"},...o,ref:c,defaultValue:t})});re.displayName=xe;function be(e=[],t,o){const n=[...e];return n[o]=t,n.sort((s,c)=>s-c)}function ie(e,t,o){const c=100/(o-t)*(e-t);return Y(c,[0,100])}function Re(e,t){return t>2?`Value ${e+1} of ${t}`:t===2?["Minimum","Maximum"][e]:void 0}function ye(e,t){if(e.length===1)return 0;const o=e.map(s=>Math.abs(s-t)),n=Math.min(...o);return o.indexOf(n)}function Pe(e,t,o){const n=e/2,c=O([0,50],[0,n]);return(n-c(t)*o)*o}function De(e){return e.slice(0,-1).map((t,o)=>e[o+1]-t)}function Ee(e,t){if(t>0){const o=De(e);return Math.min(...o)>=t}return!0}function O(e,t){return o=>{if(e[0]===e[1]||t[0]===t[1])return t[0];const n=(t[1]-t[0])/(e[1]-e[0]);return t[0]+n*(o-e[0])}}function _e(e){return(String(e).split(".")[1]||"").length}function Ce(e,t){const o=Math.pow(10,t);return Math.round(e*o)/o}var Ie=J,Ae=te,Te=ne,Ve=oe;export{Ie as R,Ae as T,Te as a,Ve as b};
@@ -1 +1 @@
1
- import{c,f as p,e4 as u,j as s,ao as x,N as a}from"./index-B3yBTWEk.js";import{C as j}from"./capability-load-error-CJ3e1sqb.js";function d(){const t=c.c(21);let o;t[0]===Symbol.for("react.memo_cache_sentinel")?(o={from:"/shell/$org"},t[0]=o):o=t[0];const{org:r}=p(o),{capabilities:l,isPrivileged:m,loading:g,error:f}=u();if(g){let e;return t[1]===Symbol.for("react.memo_cache_sentinel")?(e=s.jsx(x,{}),t[1]=e):e=t[1],e}if(f){let e;return t[2]===Symbol.for("react.memo_cache_sentinel")?(e=s.jsx(j,{}),t[2]=e):e=t[2],e}const i=e=>m||l[e]===!0;if(i("org:manage")){let e;return t[3]!==r?(e=s.jsx(a,{to:"/$org/settings/general",params:{org:r},replace:!0}),t[3]=r,t[4]=e):e=t[4],e}if(i("ai-providers:manage")){let e;return t[5]!==r?(e=s.jsx(a,{to:"/$org/settings/ai-providers",params:{org:r},replace:!0}),t[5]=r,t[6]=e):e=t[6],e}if(i("secrets:manage")){let e;return t[7]!==r?(e=s.jsx(a,{to:"/$org/settings/secrets",params:{org:r},replace:!0}),t[7]=r,t[8]=e):e=t[8],e}if(i("file-configs:manage")){let e;return t[9]!==r?(e=s.jsx(a,{to:"/$org/settings/buckets",params:{org:r},replace:!0}),t[9]=r,t[10]=e):e=t[10],e}if(i("automations:manage")){let e;return t[11]!==r?(e=s.jsx(a,{to:"/$org/settings/automations",params:{org:r},replace:!0}),t[11]=r,t[12]=e):e=t[12],e}if(i("registry:manage")){let e;return t[13]!==r?(e=s.jsx(a,{to:"/$org/settings/store",params:{org:r},replace:!0}),t[13]=r,t[14]=e):e=t[14],e}if(i("monitoring:view")){let e;return t[15]!==r?(e=s.jsx(a,{to:"/$org/settings/monitor",params:{org:r},replace:!0}),t[15]=r,t[16]=e):e=t[16],e}if(i("members:manage")){let e;return t[17]!==r?(e=s.jsx(a,{to:"/$org/settings/members",params:{org:r},replace:!0}),t[17]=r,t[18]=e):e=t[18],e}let n;return t[19]!==r?(n=s.jsx(a,{to:"/$org/settings/profile",params:{org:r},replace:!0}),t[19]=r,t[20]=n):n=t[20],n}export{d as default};
1
+ import{c,f as p,e4 as u,j as s,ao as x,N as a}from"./index-BodvdIMk.js";import{C as j}from"./capability-load-error-B39q7sVS.js";function d(){const t=c.c(21);let o;t[0]===Symbol.for("react.memo_cache_sentinel")?(o={from:"/shell/$org"},t[0]=o):o=t[0];const{org:r}=p(o),{capabilities:l,isPrivileged:m,loading:g,error:f}=u();if(g){let e;return t[1]===Symbol.for("react.memo_cache_sentinel")?(e=s.jsx(x,{}),t[1]=e):e=t[1],e}if(f){let e;return t[2]===Symbol.for("react.memo_cache_sentinel")?(e=s.jsx(j,{}),t[2]=e):e=t[2],e}const i=e=>m||l[e]===!0;if(i("org:manage")){let e;return t[3]!==r?(e=s.jsx(a,{to:"/$org/settings/general",params:{org:r},replace:!0}),t[3]=r,t[4]=e):e=t[4],e}if(i("ai-providers:manage")){let e;return t[5]!==r?(e=s.jsx(a,{to:"/$org/settings/ai-providers",params:{org:r},replace:!0}),t[5]=r,t[6]=e):e=t[6],e}if(i("secrets:manage")){let e;return t[7]!==r?(e=s.jsx(a,{to:"/$org/settings/secrets",params:{org:r},replace:!0}),t[7]=r,t[8]=e):e=t[8],e}if(i("file-configs:manage")){let e;return t[9]!==r?(e=s.jsx(a,{to:"/$org/settings/buckets",params:{org:r},replace:!0}),t[9]=r,t[10]=e):e=t[10],e}if(i("automations:manage")){let e;return t[11]!==r?(e=s.jsx(a,{to:"/$org/settings/automations",params:{org:r},replace:!0}),t[11]=r,t[12]=e):e=t[12],e}if(i("registry:manage")){let e;return t[13]!==r?(e=s.jsx(a,{to:"/$org/settings/store",params:{org:r},replace:!0}),t[13]=r,t[14]=e):e=t[14],e}if(i("monitoring:view")){let e;return t[15]!==r?(e=s.jsx(a,{to:"/$org/settings/monitor",params:{org:r},replace:!0}),t[15]=r,t[16]=e):e=t[16],e}if(i("members:manage")){let e;return t[17]!==r?(e=s.jsx(a,{to:"/$org/settings/members",params:{org:r},replace:!0}),t[17]=r,t[18]=e):e=t[18],e}let n;return t[19]!==r?(n=s.jsx(a,{to:"/$org/settings/profile",params:{org:r},replace:!0}),t[19]=r,t[20]=n):n=t[20],n}export{d as default};
@@ -1 +1 @@
1
- import{dT as g,eg as d,eh as v}from"./index-B3yBTWEk.js";var b=class extends g{constructor(e,t){super(e,t)}bindMethods(){super.bindMethods(),this.fetchNextPage=this.fetchNextPage.bind(this),this.fetchPreviousPage=this.fetchPreviousPage.bind(this)}setOptions(e){e._type="infinite",super.setOptions(e)}getOptimisticResult(e){return e._type="infinite",super.getOptimisticResult(e)}fetchNextPage(e){return this.fetch({...e,meta:{fetchMore:{direction:"forward"}}})}fetchPreviousPage(e){return this.fetch({...e,meta:{fetchMore:{direction:"backward"}}})}createResult(e,t){const{state:s}=e,i=super.createResult(e,t),{isFetching:c,isRefetching:u,isError:a,isRefetchError:P}=i,r=s.fetchMeta?.fetchMore?.direction,h=a&&r==="forward",o=c&&r==="forward",n=a&&r==="backward",f=c&&r==="backward";return{...i,fetchNextPage:this.fetchNextPage,fetchPreviousPage:this.fetchPreviousPage,hasNextPage:v(t,s.data),hasPreviousPage:d(t,s.data),isFetchNextPageError:h,isFetchingNextPage:o,isFetchPreviousPageError:n,isFetchingPreviousPage:f,isRefetchError:P&&!h&&!n,isRefetching:u&&!o&&!f}}};export{b as I};
1
+ import{dT as g,eg as d,eh as v}from"./index-BodvdIMk.js";var b=class extends g{constructor(e,t){super(e,t)}bindMethods(){super.bindMethods(),this.fetchNextPage=this.fetchNextPage.bind(this),this.fetchPreviousPage=this.fetchPreviousPage.bind(this)}setOptions(e){e._type="infinite",super.setOptions(e)}getOptimisticResult(e){return e._type="infinite",super.getOptimisticResult(e)}fetchNextPage(e){return this.fetch({...e,meta:{fetchMore:{direction:"forward"}}})}fetchPreviousPage(e){return this.fetch({...e,meta:{fetchMore:{direction:"backward"}}})}createResult(e,t){const{state:s}=e,i=super.createResult(e,t),{isFetching:c,isRefetching:u,isError:a,isRefetchError:P}=i,r=s.fetchMeta?.fetchMore?.direction,h=a&&r==="forward",o=c&&r==="forward",n=a&&r==="backward",f=c&&r==="backward";return{...i,fetchNextPage:this.fetchNextPage,fetchPreviousPage:this.fetchPreviousPage,hasNextPage:v(t,s.data),hasPreviousPage:d(t,s.data),isFetchNextPageError:h,isFetchingNextPage:o,isFetchPreviousPageError:n,isFetchingPreviousPage:f,isRefetchError:P&&!h&&!n,isRefetching:u&&!o&&!f}}};export{b as I};