decocms 4.462.2 → 4.462.3

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 (359) hide show
  1. package/dist/client/assets/{AlertCircle-BOqaZFXA.js → AlertCircle-rm9vrEtW.js} +1 -1
  2. package/dist/client/assets/{AreaChart-BVBZ_mBW.js → AreaChart-Bxeu7Flp.js} +1 -1
  3. package/dist/client/assets/{ArrowLeft-BsFMaTJ5.js → ArrowLeft-q0aoA66K.js} +1 -1
  4. package/dist/client/assets/{ArrowUp-Bi8YJGtE.js → ArrowUp-wgeukGJg.js} +1 -1
  5. package/dist/client/assets/{Building02-BG4IPwQ3.js → Building02-BPTZeJ83.js} +1 -1
  6. package/dist/client/assets/{CartesianChart-BROP1iuM.js → CartesianChart-CeNVmGpJ.js} +1 -1
  7. package/dist/client/assets/{Check-ChBZV9OV.js → Check-ycQN3J2t.js} +1 -1
  8. package/dist/client/assets/{CheckCircle-D49A5hws.js → CheckCircle-C2px0gfY.js} +1 -1
  9. package/dist/client/assets/{ChevronUp-wB5J5ntl.js → ChevronUp-B8UqekRj.js} +1 -1
  10. package/dist/client/assets/{Copy01-C4tt-_AN.js → Copy01-DFSuVPvj.js} +1 -1
  11. package/dist/client/assets/{CreditCard01-DCvyy0kz.js → CreditCard01-C13hgCp6.js} +1 -1
  12. package/dist/client/assets/{DotsVertical-BWwzMO41.js → DotsVertical-8YiGOIqq.js} +1 -1
  13. package/dist/client/assets/{ErrorBarContext-Ct0GvI3W.js → ErrorBarContext-DRxvuP2h.js} +1 -1
  14. package/dist/client/assets/{Image01-B4l0All3.js → Image01-CgjyCWgG.js} +1 -1
  15. package/dist/client/assets/{Key01-DNpH0NnO.js → Key01-B1-8KpSg.js} +1 -1
  16. package/dist/client/assets/{Line-Bq7EY1pw.js → Line-DkNHkEZJ.js} +1 -1
  17. package/dist/client/assets/{Link01-DZVgeeWe.js → Link01-B8ajBJDc.js} +1 -1
  18. package/dist/client/assets/{LinkBroken01-CNbQoBrl.js → LinkBroken01-C78kyif5.js} +1 -1
  19. package/dist/client/assets/{LinkExternal01-D73wyIiU.js → LinkExternal01-Bn0SPqIC.js} +1 -1
  20. package/dist/client/assets/{Monitor01-BJ23zU-n.js → Monitor01-DC2k418g.js} +1 -1
  21. package/dist/client/assets/{Palette-BKZ5R7W4.js → Palette-DOpFqZPK.js} +1 -1
  22. package/dist/client/assets/{Plus-CP_oegJ7.js → Plus-DC_7nhbs.js} +1 -1
  23. package/dist/client/assets/{SearchMd-D2OTQFME.js → SearchMd-Be3GMdpX.js} +1 -1
  24. package/dist/client/assets/{Sector-OlKrChyD.js → Sector-CASMflPE.js} +1 -1
  25. package/dist/client/assets/{ShoppingBag01-BfMGWAwv.js → ShoppingBag01-DNQzuGTX.js} +1 -1
  26. package/dist/client/assets/{Sun-BAfhxpb-.js → Sun-COaeigjT.js} +1 -1
  27. package/dist/client/assets/{Tool01-B_dduyQs.js → Tool01-BNeCU30E.js} +1 -1
  28. package/dist/client/assets/{Trash01-C4sE_NGv.js → Trash01-BTpCOmuX.js} +1 -1
  29. package/dist/client/assets/{Upload01-qBk1AINH.js → Upload01-Dfmvp3DJ.js} +1 -1
  30. package/dist/client/assets/{User01-DcjCdViP.js → User01-4R_aUn4g.js} +1 -1
  31. package/dist/client/assets/{UserSquare-CQZbVq0f.js → UserSquare-DJ8hiuYq.js} +1 -1
  32. package/dist/client/assets/{Users01-DR0sKzFO.js → Users01-v0Jyk4Ot.js} +1 -1
  33. package/dist/client/assets/{X-DJN31Nfv.js → X-DLYqFuX1.js} +1 -1
  34. package/dist/client/assets/{XAxis-C3Bf1J_u.js → XAxis-Dt1OJoaL.js} +1 -1
  35. package/dist/client/assets/{XClose-D0KEw8ZX.js → XClose-BbdvFCiX.js} +1 -1
  36. package/dist/client/assets/{ZoomOut-UxLkEy8R.js → ZoomOut-DFERFVow.js} +1 -1
  37. package/dist/client/assets/{access-gate-RAaA3S4I.js → access-gate-CDypY0PL.js} +1 -1
  38. package/dist/client/assets/{add-connection-dialog-BY0I55_H.js → add-connection-dialog-C7D8wNe0.js} +1 -1
  39. package/dist/client/assets/{agent-analytics-BkAfBBox.js → agent-analytics-BImzDnhS.js} +1 -1
  40. package/dist/client/assets/agent-app-CoPaMo44.js +1 -0
  41. package/dist/client/assets/{agent-assets-B3yLb2yB.js → agent-assets-TjuTBaEj.js} +1 -1
  42. package/dist/client/assets/{agent-automation-B2a9NwZW.js → agent-automation-jGaRzmAt.js} +1 -1
  43. package/dist/client/assets/{agent-automations-4swr6ii9.js → agent-automations-Dfj6v173.js} +1 -1
  44. package/dist/client/assets/{agent-connect-sources-DScLzDRG.js → agent-connect-sources-BGMBLNVm.js} +1 -1
  45. package/dist/client/assets/agent-deck-LRjwh5gJ.js +1 -0
  46. package/dist/client/assets/{agent-e2e-BYVtzJn1.js → agent-e2e-D-iDy0X1.js} +1 -1
  47. package/dist/client/assets/{agent-experiments-BytI8p3-.js → agent-experiments-CrLfobcW.js} +1 -1
  48. package/dist/client/assets/{agent-file-YzyYVZ_N.js → agent-file-CpxoMhYy.js} +1 -1
  49. package/dist/client/assets/{agent-hosting-XjyAni_P.js → agent-hosting-Ccr3JHE_.js} +1 -1
  50. package/dist/client/assets/{agent-icon-DGDGzDPg.js → agent-icon-BhZZd37x.js} +1 -1
  51. package/dist/client/assets/agent-library-Bg7R_pV5.js +1 -0
  52. package/dist/client/assets/agent-library-file-C8OO6Uy9.js +1 -0
  53. package/dist/client/assets/{agent-monitor-BeZr1N-B.js → agent-monitor-tFj42gZE.js} +1 -1
  54. package/dist/client/assets/{agent-overview-qqA1EvR2.js → agent-overview-nEVkVUxO.js} +1 -1
  55. package/dist/client/assets/agent-settings-OH2hBY9j.js +1 -0
  56. package/dist/client/assets/{agent-site-editor-3yAc0dAv.js → agent-site-editor-CSh7k9QL.js} +1 -1
  57. package/dist/client/assets/agent-site-editor-code-DEtiY7c_.js +2 -0
  58. package/dist/client/assets/{agent-site-editor-content-BVsrDzv_.js → agent-site-editor-content-nUoK_dJG.js} +3 -3
  59. package/dist/client/assets/{agent-site-editor-preview-CWeO_adL.js → agent-site-editor-preview-Bz2ZTG6q.js} +3 -3
  60. package/dist/client/assets/agent-view-ByM1tns8.js +1 -0
  61. package/dist/client/assets/{agent-view-guard--aoytX6B.js → agent-view-guard-w0LVmZ_n.js} +1 -1
  62. package/dist/client/assets/{agents-list-Bh-3TBuf.js → agents-list-DgxnnHSC.js} +1 -1
  63. package/dist/client/assets/{ai-providers-DKS3l98n.js → ai-providers-B6rDuzxD.js} +1 -1
  64. package/dist/client/assets/{alert-DSsZdX1z.js → alert-DjgCgioe.js} +1 -1
  65. package/dist/client/assets/{alert-dialog-CiySziMD.js → alert-dialog-PTVX9d3Y.js} +1 -1
  66. package/dist/client/assets/{analytics-sections-Cl2mCPG9.js → analytics-sections-DBNJksaf.js} +1 -1
  67. package/dist/client/assets/{api-keys-DT79lla9.js → api-keys-CRRGgTH5.js} +1 -1
  68. package/dist/client/assets/api-keys-DwkggND0.js +1 -0
  69. package/dist/client/assets/app-editor-uI7CZhyW.js +1 -0
  70. package/dist/client/assets/{asset-utils-Co49serB.js → asset-utils-Dv9Q2xbg.js} +1 -1
  71. package/dist/client/assets/{auth-Cs4gU6Jt.js → auth-CWILNz-R.js} +1 -1
  72. package/dist/client/assets/{auth-catchall-472LoEBQ.js → auth-catchall-Cc5_u2IL.js} +1 -1
  73. package/dist/client/assets/{auth-entry-wcuFRPik.js → auth-entry-C9RssKbo.js} +1 -1
  74. package/dist/client/assets/{auth-split-layout-wSdRvsPt.js → auth-split-layout-D_hmCTq4.js} +1 -1
  75. package/dist/client/assets/{authenticate-and-persist-oauth-VlIk_G_o.js → authenticate-and-persist-oauth-_u_GUn2l.js} +1 -1
  76. package/dist/client/assets/{automation-list-row-CuueSCf2.js → automation-list-row-DfDWaaDG.js} +1 -1
  77. package/dist/client/assets/{automation-runs-BnertJ4X.js → automation-runs-CiGqMkAr.js} +1 -1
  78. package/dist/client/assets/{automations-DdJEP87b.js → automations-17MTzB0I.js} +1 -1
  79. package/dist/client/assets/{autosend-D7eBSjvh.js → autosend-C7DyeWiW.js} +1 -1
  80. package/dist/client/assets/{avatar-BeFOPb9J.js → avatar-Dl_cPf4a.js} +1 -1
  81. package/dist/client/assets/{badge-SOygJ_ut.js → badge-DhrYVT6A.js} +1 -1
  82. package/dist/client/assets/{block-document-Cu1aHoUW.js → block-document-C4jgXyrX.js} +1 -1
  83. package/dist/client/assets/{blocks-preview-workspace-context-BUj7HSJ8.js → blocks-preview-workspace-context-CJB53TYU.js} +1 -1
  84. package/dist/client/assets/{blog-schema-BMIbFol2.js → blog-schema-Cm8V0ekp.js} +1 -1
  85. package/dist/client/assets/{buckets-BA7hLRYf.js → buckets-Cu7VxrxX.js} +1 -1
  86. package/dist/client/assets/{build-improve-prompt-doc-DRPd_i83.js → build-improve-prompt-doc-DzdB1psZ.js} +1 -1
  87. package/dist/client/assets/{calendar-oXQevmTG.js → calendar-BLwaxQ6A.js} +1 -1
  88. package/dist/client/assets/{capability-load-error-dMTmC9nh.js → capability-load-error-Gcuy_zZQ.js} +1 -1
  89. package/dist/client/assets/{category-editor-1_2fvb3e.js → category-editor-qccGK1pF.js} +1 -1
  90. package/dist/client/assets/{chart-VsbCVKFV.js → chart-m7qkl4bi.js} +1 -1
  91. package/dist/client/assets/{chat-context-DiXJfhIa.js → chat-context-Dx9zNHfj.js} +1 -1
  92. package/dist/client/assets/{chat-draft-Bpba7nd9.js → chat-draft-BmX0POEt.js} +1 -1
  93. package/dist/client/assets/{checkbox-Dz205M-t.js → checkbox-BGY2RDHl.js} +1 -1
  94. package/dist/client/assets/{choose-editor-sM1ArvsC.js → choose-editor-Drm1rWH4.js} +1 -1
  95. package/dist/client/assets/{claim-phase-copy-Dd94Yylk.js → claim-phase-copy-B4wRGWwJ.js} +1 -1
  96. package/dist/client/assets/{cli-auth-success-B9VS9AxW.js → cli-auth-success-Bhd55UzL.js} +1 -1
  97. package/dist/client/assets/{client-icons-pHlGrnda.js → client-icons-Nclcrk8y.js} +1 -1
  98. package/dist/client/assets/{collapsible-CfObde3Q.js → collapsible-BUVugLgs.js} +1 -1
  99. package/dist/client/assets/{collection-detail-Db-KUOBe.js → collection-detail-DP3jpGJn.js} +1 -1
  100. package/dist/client/assets/{collection-display-button-BkekuxeX.js → collection-display-button-T5vUt9Xp.js} +1 -1
  101. package/dist/client/assets/{collection-search-D2PZ787d.js → collection-search-CKuVhNj4.js} +1 -1
  102. package/dist/client/assets/{collection-table-wrapper-CiNVnoGZ.js → collection-table-wrapper-DjPT86lv.js} +1 -1
  103. package/dist/client/assets/{collection-tabs-BPj0wxo8.js → collection-tabs-BamuvkGL.js} +1 -1
  104. package/dist/client/assets/{column-rules-DHSys_Pp.js → column-rules-Xz3xzzP-.js} +1 -1
  105. package/dist/client/assets/{combobox-Cio7ykEV.js → combobox-CgUwJrOG.js} +1 -1
  106. package/dist/client/assets/{command-CxzepSXP.js → command-Czt06b2r.js} +1 -1
  107. package/dist/client/assets/{companion-mcps-section-Cv04Xa58.js → companion-mcps-section-KDtsEeuf.js} +1 -1
  108. package/dist/client/assets/{config-Ct9Qi8LT.js → config-CGLxG-Gg.js} +1 -1
  109. package/dist/client/assets/{connect-CGibdNE5.js → connect-Dz_UGWIS.js} +1 -1
  110. package/dist/client/assets/{connect-layout-BxAxcInI.js → connect-layout-Diov8B69.js} +1 -1
  111. package/dist/client/assets/{connection-DbyDLRig.js → connection-Dyn6n84s.js} +1 -1
  112. package/dist/client/assets/{connection-card-DUnGN1LQ.js → connection-card-ZezUc4CB.js} +1 -1
  113. package/dist/client/assets/{connection-detail-CYpkfAUI.js → connection-detail-BJExNdyL.js} +1 -1
  114. package/dist/client/assets/{connection-form-helpers-B-IGiex0.js → connection-form-helpers-DBYs_bI7.js} +1 -1
  115. package/dist/client/assets/{connections-8PptZe-N.js → connections-oiXlAgUF.js} +1 -1
  116. package/dist/client/assets/{context-CqJX50Y5.js → context-BjfN_2Ri.js} +1 -1
  117. package/dist/client/assets/{context-menu-X12cIwS3.js → context-menu-DlkAUkV8.js} +1 -1
  118. package/dist/client/assets/{core.esm-BND19H8a.js → core.esm-B3puu65K.js} +1 -1
  119. package/dist/client/assets/{create-organization-dialog-DvoetHmh.js → create-organization-dialog-CQl1wPgd.js} +1 -1
  120. package/dist/client/assets/{daily-pulse-VPctcCpq.js → daily-pulse-Cap6vUBG.js} +1 -1
  121. package/dist/client/assets/{decopilot-RuTJJBbl.js → decopilot-CVtUuYjj.js} +1 -1
  122. package/dist/client/assets/{device-hint-BJfRFQKk.js → device-hint-EZG6wkKu.js} +1 -1
  123. package/dist/client/assets/{dialog-D_5RxDc9.js → dialog-C8AdhrG0.js} +1 -1
  124. package/dist/client/assets/{discover-DtRS1x6t.js → discover-DzeJVPL8.js} +1 -1
  125. package/dist/client/assets/{domain-settings-BGARHR_o.js → domain-settings-DSaE4wpm.js} +1 -1
  126. package/dist/client/assets/{download-app-dialog-RU0ZYOfB.js → download-app-dialog-URSdQ4ke.js} +1 -1
  127. package/dist/client/assets/{drawer-Br_av5UR.js → drawer-BZnmFrAT.js} +1 -1
  128. package/dist/client/assets/{editor-KC3-U1Hv.js → editor-CK9raNB0.js} +1 -1
  129. package/dist/client/assets/{empty-state-DNTQ1C-X.js → empty-state-CmS3chTn.js} +1 -1
  130. package/dist/client/assets/{empty-state-Bzg2RaeW.js → empty-state-CoOL0M6Y.js} +1 -1
  131. package/dist/client/assets/{extract-connection-data-BFG_cq-0.js → extract-connection-data-Ch1WBTd_.js} +1 -1
  132. package/dist/client/assets/{feature-gate-B2dCnM8L.js → feature-gate-Dzatwf08.js} +1 -1
  133. package/dist/client/assets/{feature-paywall-CVOfOt8x.js → feature-paywall-BoMIgBMw.js} +1 -1
  134. package/dist/client/assets/{file-explorer-wKCmBF67.js → file-explorer-nSFWWRTB.js} +1 -1
  135. package/dist/client/assets/{file-preview-VEd_A7P9.js → file-preview-DGEdQu7O.js} +1 -1
  136. package/dist/client/assets/{file-share-button-DkiNZpp9.js → file-share-button-CpGZhwcv.js} +1 -1
  137. package/dist/client/assets/{file-type-icon-CfnH9Twn.js → file-type-icon-D3P3r_PX.js} +1 -1
  138. package/dist/client/assets/flat-project-Crgd2_CA.js +1 -0
  139. package/dist/client/assets/{folder-icon-CzsWuPW5.js → folder-icon-DmaVPQUY.js} +1 -1
  140. package/dist/client/assets/{form-juLaUBrF.js → form-C_wkYdWR.js} +1 -1
  141. package/dist/client/assets/{gateway-client-CZQ4II3C.js → gateway-client-n3scD1Cq.js} +1 -1
  142. package/dist/client/assets/{general-DxW1EaZc.js → general-DY3X6fO5.js} +1 -1
  143. package/dist/client/assets/{home-m5VhYXeH.js → home-D9b2CIU1.js} +1 -1
  144. package/dist/client/assets/{icon-button-CMxGCJDP.js → icon-button-C_Cp_29j.js} +1 -1
  145. package/dist/client/assets/{index-CCXcZJGG.js → index-B-oPHPrA.js} +1 -1
  146. package/dist/client/assets/{index-CyAv4Ino.js → index-BADmvvU8.js} +1 -1
  147. package/dist/client/assets/{index-C1hd3ai4.js → index-BIGakDd7.js} +1 -1
  148. package/dist/client/assets/{index-CsKm2ubF.js → index-BSg0zn4o.js} +2 -2
  149. package/dist/client/assets/{index-C5X8q_Pi.js → index-BWQjqyyC.js} +1 -1
  150. package/dist/client/assets/{index-WJJsnt-n.js → index-BfKeTOyQ.js} +1 -1
  151. package/dist/client/assets/{index-CzdEzd_G.js → index-BmBDGBX2.js} +1 -1
  152. package/dist/client/assets/{index-DCcjp4nP.js → index-CFZz__Xz.js} +1 -1
  153. package/dist/client/assets/{index-BC7i1Aoz.js → index-CYmKWEH9.js} +1 -1
  154. package/dist/client/assets/{index-DyC292ZS.js → index-Cd-_V0_9.js} +1 -1
  155. package/dist/client/assets/{index-G0I4ayW-.js → index-CrcosZHv.js} +1 -1
  156. package/dist/client/assets/{index-CpnRViDi.js → index-Crqv9xoR.js} +3 -3
  157. package/dist/client/assets/{index-CycACfp6.js → index-D-Q4GsTp.js} +1 -1
  158. package/dist/client/assets/{index-BgwBy5oM.js → index-DZYzJ3Ve.js} +1 -1
  159. package/dist/client/assets/{index-CZNblbQa.js → index-hcdrCnDP.js} +1 -1
  160. package/dist/client/assets/{index-redirect-_gwqEShi.js → index-redirect-CTFASjG4.js} +1 -1
  161. package/dist/client/assets/{infiniteQueryObserver-DaqTQDCS.js → infiniteQueryObserver-ByHfufml.js} +1 -1
  162. package/dist/client/assets/{infra-billing-DCtNAzlT.js → infra-billing-xdyFXGeK.js} +1 -1
  163. package/dist/client/assets/{input-hKftpNOz.js → input-CCnRshRN.js} +1 -1
  164. package/dist/client/assets/{input-DFO5Hmip.js → input-D1Ki90Pm.js} +3 -3
  165. package/dist/client/assets/{input-BhJziSQi.js → input-DyRkn4pn.js} +1 -1
  166. package/dist/client/assets/{integration-icon-CTkfXIOR.js → integration-icon-BiZmEnVi.js} +1 -1
  167. package/dist/client/assets/{label-Bfbz6otc.js → label-Du2iAGWx.js} +1 -1
  168. package/dist/client/assets/{layout-ZwTrfTZi.js → layout-D_g2vZ02.js} +1 -1
  169. package/dist/client/assets/{legacy-agents-deep-DMwbwAKI.js → legacy-agents-deep-CzmcMxWx.js} +1 -1
  170. package/dist/client/assets/{legacy-main-redirect-BGY6ia4w.js → legacy-main-redirect-CVsh9CL4.js} +1 -1
  171. package/dist/client/assets/library-D0xoHpix.js +1 -0
  172. package/dist/client/assets/{library-tab-BcgjMyrL.js → library-tab-C48kInYl.js} +1 -1
  173. package/dist/client/assets/{login-DCqry8Ay.js → login-CWsZk4Ka.js} +1 -1
  174. package/dist/client/assets/{markdown-Bx2p9OGj.js → markdown-DienvDaS.js} +1 -1
  175. package/dist/client/assets/{mcp-app-renderer-d-JulMSx.js → mcp-app-renderer-CNPl_E2S.js} +1 -1
  176. package/dist/client/assets/{mcp-oauth-BOCq2t4w.js → mcp-oauth-BEjgJ8S3.js} +1 -1
  177. package/dist/client/assets/{members-xhc9KLWq.js → members-2EErop1f.js} +1 -1
  178. package/dist/client/assets/{memory-VJT_lSNB.js → memory-yCjJoNDd.js} +1 -1
  179. package/dist/client/assets/{mini-report-page-YCYdK64Z.js → mini-report-page-pXF8ynkH.js} +1 -1
  180. package/dist/client/assets/{mock-board-DcCpR66D.js → mock-board-TQ8xh6Aq.js} +1 -1
  181. package/dist/client/assets/{monaco-editor-CkJpx19Y.js → monaco-editor-Ddyrxhnd.js} +1 -1
  182. package/dist/client/assets/{monitoring-stats-row-Cqs-6_S6.js → monitoring-stats-row-k_A2nsj4.js} +1 -1
  183. package/dist/client/assets/{multi-select-DW-NLuy4.js → multi-select-C5JMY5HA.js} +1 -1
  184. package/dist/client/assets/{mustache-Q-UGwUPM.js → mustache-2Fdvii3x.js} +1 -1
  185. package/dist/client/assets/{new-project-dialog-BR_BdAk-.js → new-project-dialog-B7NjXDr6.js} +1 -1
  186. package/dist/client/assets/{oauth-callback-CRloSDTl.js → oauth-callback-D5zHk1ID.js} +1 -1
  187. package/dist/client/assets/{oauth-callback-ai-provider-2uzVHGZK.js → oauth-callback-ai-provider-CpRYlq4A.js} +1 -1
  188. package/dist/client/assets/{onboarding-DkT61UKY.js → onboarding-C6mBd0qU.js} +1 -1
  189. package/dist/client/assets/{openai-conversation-Bo2nNgKY.js → openai-conversation-BwKz3ZIx.js} +1 -1
  190. package/dist/client/assets/{optimistic-project-sidebar-views-DfbOaqQl.js → optimistic-project-sidebar-views-B5YhmCh5.js} +1 -1
  191. package/dist/client/assets/{org-file-open-context-BHXXOOHS.js → org-file-open-context-CYLtVxSO.js} +1 -1
  192. package/dist/client/assets/{organization-choice-B8_GAtl-.js → organization-choice-BkwWYz2E.js} +1 -1
  193. package/dist/client/assets/{orgs-BuJtkddf.js → orgs-DlLwRria.js} +1 -1
  194. package/dist/client/assets/{page-seo-form-5o5iVNld.js → page-seo-form-D8Vne1WG.js} +1 -1
  195. package/dist/client/assets/{pair-gpe5yzQs.js → pair-BRY0hFhL.js} +1 -1
  196. package/dist/client/assets/{plan-ladder-DionZok_.js → plan-ladder-CqI-1A4t.js} +1 -1
  197. package/dist/client/assets/{popover-DH3Sl61q.js → popover-CXCkGdFS.js} +1 -1
  198. package/dist/client/assets/{post-calendar-tH162nXm.js → post-calendar-tlpRGAwb.js} +1 -1
  199. package/dist/client/assets/{post-editor-D1gbYoHN.js → post-editor-DrQUoUR6.js} +1 -1
  200. package/dist/client/assets/{preview-content-SoUMkfQg.js → preview-content-C6-NXNqs.js} +1 -1
  201. package/dist/client/assets/{preview-dialog-DPOzbA4Y.js → preview-dialog-mKfjI5de.js} +1 -1
  202. package/dist/client/assets/{preview-panel-CywYdFpJ.js → preview-panel-CYOl_eyz.js} +1 -1
  203. package/dist/client/assets/{profile-Dmb0eg_9.js → profile-DolOUYa-.js} +1 -1
  204. package/dist/client/assets/{project-app-view-gFsgFZJs.js → project-app-view-BT7xMHiG.js} +1 -1
  205. package/dist/client/assets/{project-feed-LDtRi-aY.js → project-feed-DzOwWrsA.js} +1 -1
  206. package/dist/client/assets/{project-icon-DxklOC8j.js → project-icon-BtaqB0ne.js} +1 -1
  207. package/dist/client/assets/project-reports-CUmY8yFG.js +1 -0
  208. package/dist/client/assets/project-tasks-B-l5cw7H.js +1 -0
  209. package/dist/client/assets/{projects-Dq4GZ2RU.js → projects-Ox8W8ETP.js} +1 -1
  210. package/dist/client/assets/{projects-empty-state-LXUf6lw8.js → projects-empty-state-C6gu1t-4.js} +1 -1
  211. package/dist/client/assets/{prompts-DpoYq-C8.js → prompts-CoL_Tpxk.js} +1 -1
  212. package/dist/client/assets/record-editor-BrASt4GH.js +1 -0
  213. package/dist/client/assets/{redirect-editor-h2jfnY0r.js → redirect-editor-lIGVngPQ.js} +1 -1
  214. package/dist/client/assets/{reports-BkGvj-AQ.js → reports-BEsbbpXT.js} +1 -1
  215. package/dist/client/assets/reports-C91C_dGk.js +1 -0
  216. package/dist/client/assets/{reports-onboarding-D2nAyEQg.js → reports-onboarding-nf8zCR8E.js} +1 -1
  217. package/dist/client/assets/{reports-tab-C4Iuixxf.js → reports-tab-B-zoXuhY.js} +2 -2
  218. package/dist/client/assets/{repositories-CInM2D5H.js → repositories-C6qG4TgY.js} +1 -1
  219. package/dist/client/assets/{repository-binding-ebck0c8n.js → repository-binding-CKlCwDDd.js} +1 -1
  220. package/dist/client/assets/{repository-import-picker-CTs8TUdw.js → repository-import-picker-BWcgounQ.js} +1 -1
  221. package/dist/client/assets/{repository-picker-BwC54VM6.js → repository-picker-DJEubVOt.js} +1 -1
  222. package/dist/client/assets/{require-capability-C0TsXxTO.js → require-capability-CMsD4Xq5.js} +1 -1
  223. package/dist/client/assets/{required-auth-layout-D4fpdDYn.js → required-auth-layout-DXP1Sqka.js} +1 -1
  224. package/dist/client/assets/{reset-password-BW6tqvrs.js → reset-password-YWpHSvq5.js} +1 -1
  225. package/dist/client/assets/{resizable-DENddsry.js → resizable-Cvf4_ymQ.js} +1 -1
  226. package/dist/client/assets/{resolve-tab-icon-BGgWJEJh.js → resolve-tab-icon-D9ziRjGB.js} +1 -1
  227. package/dist/client/assets/{review-settings-KWioU3vH.js → review-settings-Btnt9yMf.js} +1 -1
  228. package/dist/client/assets/{rich-text-link-control-DdGTIpxo.js → rich-text-link-control-D3iH-JTZ.js} +1 -1
  229. package/dist/client/assets/{roles-B73i-5IT.js → roles-BVDu3Xxj.js} +1 -1
  230. package/dist/client/assets/route-Bt9vgrKS.js +1 -0
  231. package/dist/client/assets/{route-Do1Yrs9w.js → route-D7ZfYats.js} +1 -1
  232. package/dist/client/assets/{route-CwP5bQeO.js → route-DgSk67PK.js} +1 -1
  233. package/dist/client/assets/{runnable-block-editor-Dl0N0zCW.js → runnable-block-editor-Yuh74xe3.js} +1 -1
  234. package/dist/client/assets/{sandbox-lifecycle-context-B_NAJSjm.js → sandbox-lifecycle-context-C5QKAHul.js} +1 -1
  235. package/dist/client/assets/{schema-bIq2BT73.js → schema-XbMJIWRo.js} +1 -1
  236. package/dist/client/assets/{scroll-area-DgvMLOUX.js → scroll-area-rRniZYni.js} +1 -1
  237. package/dist/client/assets/{search-input-Dxc4Q9oE.js → search-input-f14Hs9DC.js} +1 -1
  238. package/dist/client/assets/{search-toggle-BB2lVgeF.js → search-toggle-ydmpt0vj.js} +1 -1
  239. package/dist/client/assets/{secret-picker-CBx3NT_r.js → secret-picker-DA-ZCB_H.js} +1 -1
  240. package/dist/client/assets/{secrets-Bds2fazx.js → secrets-CQ_mYMKv.js} +1 -1
  241. package/dist/client/assets/{sections-editor-BHKheRNV.js → sections-editor-CWdchB_1.js} +1 -1
  242. package/dist/client/assets/{select-ERtFaSl0.js → select-Bur9VSDp.js} +1 -1
  243. package/dist/client/assets/{select-model-DMNOi0UH.js → select-model-zDpmpaQm.js} +1 -1
  244. package/dist/client/assets/{seo-editor-Cl9glbjm.js → seo-editor-DKGGKomG.js} +1 -1
  245. package/dist/client/assets/{separator-CuY7Q1Gl.js → separator-B9VOmM03.js} +1 -1
  246. package/dist/client/assets/{settings-tab-D7GiwWK4.js → settings-tab-DZnwlssY.js} +1 -1
  247. package/dist/client/assets/{sheet-nJD4St3t.js → sheet-BB4O5OwT.js} +1 -1
  248. package/dist/client/assets/{shell-layout-CsK_iJoM.js → shell-layout-BirRSTwU.js} +1 -1
  249. package/dist/client/assets/{skills-BpYdnG8K.js → skills-BKzwcH1e.js} +1 -1
  250. package/dist/client/assets/{sso-CUH5oWF7.js → sso-Cc-0CboC.js} +1 -1
  251. package/dist/client/assets/{suggestion-CVmYJ2-l.js → suggestion-IyavxmVa.js} +1 -1
  252. package/dist/client/assets/{switch-BhR8nlxD.js → switch-DcSUAA1j.js} +1 -1
  253. package/dist/client/assets/{synced-repos-C5uktY6M.js → synced-repos-flwxau-o.js} +1 -1
  254. package/dist/client/assets/{tab-icon-glyph-DDGnTEUb.js → tab-icon-glyph-9bAxbZkC.js} +1 -1
  255. package/dist/client/assets/{table-BghtXeZn.js → table-CRO39QUH.js} +1 -1
  256. package/dist/client/assets/{tabs-BdEjeb3h.js → tabs-Bc9RHMFB.js} +1 -1
  257. package/dist/client/assets/{task-board-CC3VTzd7.js → task-board-Cd9YAvG-.js} +1 -1
  258. package/dist/client/assets/{task-route-CzV6Ggve.js → task-route-CkQytW7C.js} +1 -1
  259. package/dist/client/assets/{task-status-MdR-wgNu.js → task-status-BOm3EuKx.js} +1 -1
  260. package/dist/client/assets/{taskboard-analytics-CjgkuySj.js → taskboard-analytics-OFa_uhmF.js} +1 -1
  261. package/dist/client/assets/{tasks-B7Pdi00T.js → tasks-BG9XYgI5.js} +1 -1
  262. package/dist/client/assets/tasks-D5n9wt3t.js +1 -0
  263. package/dist/client/assets/{textarea-CFMwKhM9.js → textarea-DDxcalk2.js} +1 -1
  264. package/dist/client/assets/{thread-analytics-BeZ0CZhF.js → thread-analytics-DOsXcQeb.js} +1 -1
  265. package/dist/client/assets/{thread-button-DdmUMrmT.js → thread-button-ch7Mep8K.js} +1 -1
  266. package/dist/client/assets/{thread-intent-Dg3GQUH3.js → thread-intent-2fXPHcAu.js} +1 -1
  267. package/dist/client/assets/{thread-route-C5YO0tNH.js → thread-route-2otWdMgJ.js} +1 -1
  268. package/dist/client/assets/{thread-route-BPJPEkBO.js → thread-route-BT336v58.js} +1 -1
  269. package/dist/client/assets/{thread-sheet-body-Ci751mbw.js → thread-sheet-body-BbK1ZoYh.js} +1 -1
  270. package/dist/client/assets/{toggle-group-DLp7Wh-7.js → toggle-group-CdYcnuUH.js} +1 -1
  271. package/dist/client/assets/{toolbar-icon-button-CMClok1k.js → toolbar-icon-button-DUnRowf-.js} +1 -1
  272. package/dist/client/assets/{tooltip-17PKNCMM.js → tooltip-Dmxy6Iwp.js} +1 -1
  273. package/dist/client/assets/{track-A4Z9PFKK.js → track-BtwskyUg.js} +1 -1
  274. package/dist/client/assets/{types-Zt76-Urn.js → types-Bme2CFon.js} +1 -1
  275. package/dist/client/assets/{usage-stats-Di6th6eM.js → usage-stats-DpcWm2xr.js} +1 -1
  276. package/dist/client/assets/{use-ai-providers-DXMywQjn.js → use-ai-providers-Br3ruvyh.js} +1 -1
  277. package/dist/client/assets/{use-automations-BIkU0R2i.js → use-automations-CnXDK6LR.js} +1 -1
  278. package/dist/client/assets/{use-autosave-D7Dc_Y3x.js → use-autosave-CTFYBfkb.js} +1 -1
  279. package/dist/client/assets/{use-chat-layout-state-CcVNkckt.js → use-chat-layout-state-DVSuwZNL.js} +1 -1
  280. package/dist/client/assets/{use-chat-navigation-EErRoLjo.js → use-chat-navigation-ouFeOKae.js} +1 -1
  281. package/dist/client/assets/{use-clock-tick-Bs0g2LMm.js → use-clock-tick-_TChM0B6.js} +1 -1
  282. package/dist/client/assets/{use-connect-companion-BV3jBqGw.js → use-connect-companion-BwQTXyWc.js} +1 -1
  283. package/dist/client/assets/{use-connection-hWK0p_4I.js → use-connection-KD1C-9SB.js} +1 -1
  284. package/dist/client/assets/{use-copy-eIJpbbHo.js → use-copy-DbnPtzRq.js} +1 -1
  285. package/dist/client/assets/{use-create-virtual-mcp-CFCczIE_.js → use-create-virtual-mcp-aO-X73SS.js} +1 -1
  286. package/dist/client/assets/{use-date-fns-locale-CViyxf02.js → use-date-fns-locale-CaAoeC3-.js} +1 -1
  287. package/dist/client/assets/{use-debounced-autosave-B4SAaEhH.js → use-debounced-autosave-BAYPxxZJ.js} +1 -1
  288. package/dist/client/assets/{use-debounced-value-Dws83Fd6.js → use-debounced-value-B8x7v3h2.js} +1 -1
  289. package/dist/client/assets/{use-deco-credits-YDPWVl4H.js → use-deco-credits-8WOAM4-s.js} +1 -1
  290. package/dist/client/assets/{use-decopilot-events-BlCOqvv5.js → use-decopilot-events-Cq-KvUjE.js} +1 -1
  291. package/dist/client/assets/{use-delete-connection-CEwDeoWa.js → use-delete-connection-Bffk9q4E.js} +1 -1
  292. package/dist/client/assets/{use-deployment-admin-B2zM8cA7.js → use-deployment-admin-D0HzXml2.js} +1 -1
  293. package/dist/client/assets/{use-ensure-project-folder-jggJOZhf.js → use-ensure-project-folder-CB3UqvjF.js} +1 -1
  294. package/dist/client/assets/{use-fast-preview-draft-url-B8A09d5h.js → use-fast-preview-draft-url-SLEqabcE.js} +1 -1
  295. package/dist/client/assets/{use-file-configs-WonDx6od.js → use-file-configs-CL6vJq8e.js} +1 -1
  296. package/dist/client/assets/{use-infinite-scroll-CvbHrO1A.js → use-infinite-scroll-CZDZwEPK.js} +1 -1
  297. package/dist/client/assets/{use-join-requests-Dkum0YOb.js → use-join-requests-DDvLcfrT.js} +1 -1
  298. package/dist/client/assets/{use-main-panel-tabs-DM4i9k_8.js → use-main-panel-tabs-CMbieCSL.js} +1 -1
  299. package/dist/client/assets/{use-mcp-auth-status-CifzBBCu.js → use-mcp-auth-status-BUlD-JC0.js} +1 -1
  300. package/dist/client/assets/{use-mcp-client-C7yhsDUq.js → use-mcp-client-DtG-9LNW.js} +1 -1
  301. package/dist/client/assets/{use-mcp-prompts-BZp7FUGA.js → use-mcp-prompts-Dv23JU44.js} +1 -1
  302. package/dist/client/assets/{use-mcp-tools-B-fAu-Lb.js → use-mcp-tools-CZKyId72.js} +1 -1
  303. package/dist/client/assets/{use-members-muYuUKl8.js → use-members-3vohvwE9.js} +1 -1
  304. package/dist/client/assets/{use-mobile-h60o0kDh.js → use-mobile-Bym6FABz.js} +1 -1
  305. package/dist/client/assets/{use-navigate-to-agent-DpJjb9Ad.js → use-navigate-to-agent-nbLDGPuK.js} +1 -1
  306. package/dist/client/assets/use-new-blocks-editor-0oELLtma.js +1 -0
  307. package/dist/client/assets/{use-open-billing-url-CqRpsDrV.js → use-open-billing-url-cGocgOTK.js} +1 -1
  308. package/dist/client/assets/{use-org-auth-client-CPl2reDK.js → use-org-auth-client-CtCYentb.js} +1 -1
  309. package/dist/client/assets/{use-org-fs-DuUomCai.js → use-org-fs-C77pAkF9.js} +1 -1
  310. package/dist/client/assets/{use-org-repo-syncs-4sBt09GE.js → use-org-repo-syncs-UmpiXEvv.js} +1 -1
  311. package/dist/client/assets/{use-org-sso-DHgm8_xi.js → use-org-sso-wmpr49G0.js} +1 -1
  312. package/dist/client/assets/{use-organization-roles-BV3iU524.js → use-organization-roles-Q3cNmSGK.js} +1 -1
  313. package/dist/client/assets/{use-organization-settings-C9LFE9dH.js → use-organization-settings-DZQdd38B.js} +1 -1
  314. package/dist/client/assets/{use-panel-navigate-BoWMxqfw.js → use-panel-navigate-RzIXYjdO.js} +1 -1
  315. package/dist/client/assets/{use-project-scope-Bq9_CxnF.js → use-project-scope--vhdJJ3J.js} +1 -1
  316. package/dist/client/assets/{use-releases-BBaBeMfL.js → use-releases-DBacCX5N.js} +1 -1
  317. package/dist/client/assets/{use-reports-diagnostic-G1zwph_0.js → use-reports-diagnostic-E_xn3Cgh.js} +1 -1
  318. package/dist/client/assets/{use-secrets-Ct52FR_G.js → use-secrets-17a_0cVZ.js} +1 -1
  319. package/dist/client/assets/{use-section-preview-base-DOtesyFx.js → use-section-preview-base-DMPxgaEy.js} +1 -1
  320. package/dist/client/assets/{use-session-runtime-DCyDQGsH.js → use-session-runtime-CLu1QwVf.js} +1 -1
  321. package/dist/client/assets/{use-tags-pyv75hiG.js → use-tags-CuO6eJY0.js} +1 -1
  322. package/dist/client/assets/{use-task-board-analytics-BJyBRcs8.js → use-task-board-analytics-Cs7ROzdM.js} +1 -1
  323. package/dist/client/assets/{use-task-board-events-Bz8ommc9.js → use-task-board-events-Bv_4UM8-.js} +1 -1
  324. package/dist/client/assets/{use-task-metadata-C_1RsAj0.js → use-task-metadata--tlu5jBn.js} +1 -1
  325. package/dist/client/assets/{use-thread-analytics-CVwQKqXG.js → use-thread-analytics-aeaCgBwr.js} +1 -1
  326. package/dist/client/assets/{use-thread-outputs-Co6FxFAd.js → use-thread-outputs-9ggjmILA.js} +1 -1
  327. package/dist/client/assets/useInfiniteQuery-BXyifNbh.js +1 -0
  328. package/dist/client/assets/{useQueries-4js0NmfF.js → useQueries-Cqn1aSQB.js} +1 -1
  329. package/dist/client/assets/useSuspenseInfiniteQuery-Cwe5IPmT.js +1 -0
  330. package/dist/client/assets/{users-DFphiLPz.js → users-CsqcV55O.js} +1 -1
  331. package/dist/client/assets/{utils-7wkojbq8.js → utils-BH5vUtAG.js} +1 -1
  332. package/dist/client/assets/{variant-calendar-hQb_6Knv.js → variant-calendar-DkQ9UHQw.js} +1 -1
  333. package/dist/client/assets/{variant-matcher-override-B7_BSavX.js → variant-matcher-override-BYGwhlzE.js} +1 -1
  334. package/dist/client/assets/{view-mode-toggle-I-eGSI3M.js → view-mode-toggle-X9MGawfA.js} +1 -1
  335. package/dist/client/assets/{virtual-mcp-CZeK9_Zn.js → virtual-mcp-BWO_9b2I.js} +1 -1
  336. package/dist/client/index.html +1 -1
  337. package/dist/server/cli.js +2 -2
  338. package/dist/server/server.js +2 -2
  339. package/package.json +1 -1
  340. package/dist/client/assets/agent-app-BjfUl_0f.js +0 -1
  341. package/dist/client/assets/agent-deck-qy9xDSPf.js +0 -1
  342. package/dist/client/assets/agent-library-DmwLcUW5.js +0 -1
  343. package/dist/client/assets/agent-library-file-BhecoKGR.js +0 -1
  344. package/dist/client/assets/agent-settings-Cg5Aii0O.js +0 -1
  345. package/dist/client/assets/agent-site-editor-code-nkVrwBja.js +0 -2
  346. package/dist/client/assets/agent-view-5udch1Zo.js +0 -1
  347. package/dist/client/assets/api-keys-TdHJQ9tA.js +0 -1
  348. package/dist/client/assets/app-editor-BMX-mtW-.js +0 -1
  349. package/dist/client/assets/flat-project-DkZ9ut26.js +0 -1
  350. package/dist/client/assets/library-DlOv00rX.js +0 -1
  351. package/dist/client/assets/project-reports-DA_DcXq0.js +0 -1
  352. package/dist/client/assets/project-tasks-6O_Gw9mX.js +0 -1
  353. package/dist/client/assets/record-editor-CiRyw1Eu.js +0 -1
  354. package/dist/client/assets/reports-C9YxMpwW.js +0 -1
  355. package/dist/client/assets/route-XcpEoNu9.js +0 -1
  356. package/dist/client/assets/tasks-Lm1DDtMB.js +0 -1
  357. package/dist/client/assets/use-new-blocks-editor-DRLHOxEJ.js +0 -1
  358. package/dist/client/assets/useInfiniteQuery-SgJx2z0R.js +0 -1
  359. package/dist/client/assets/useSuspenseInfiniteQuery-BCL_lLFm.js +0 -1
@@ -1 +1 @@
1
- import{r as L,j as A,c as ve,l as He}from"./index-CsKm2ubF.js";import{aj as ft}from"./agent-icon-DGDGzDPg.js";function pt(e,t){const n=getComputedStyle(e),o=parseFloat(n.fontSize);return t*o}function ht(e,t){const n=getComputedStyle(e.ownerDocument.documentElement),o=parseFloat(n.fontSize);return t*o}function gt(e){return e/100*window.innerHeight}function vt(e){return e/100*window.innerWidth}function mt(e){switch(typeof e){case"number":return[e,"px"];case"string":{const t=parseFloat(e);return e.endsWith("%")?[t,"%"]:e.endsWith("px")?[t,"px"]:e.endsWith("rem")?[t,"rem"]:e.endsWith("em")?[t,"em"]:e.endsWith("vh")?[t,"vh"]:e.endsWith("vw")?[t,"vw"]:[t,"%"]}}}function re({groupSize:e,panelElement:t,styleProp:n}){let o;const[r,a]=mt(n);switch(a){case"%":{o=r/100*e;break}case"px":{o=r;break}case"rem":{o=ht(t,r);break}case"em":{o=pt(t,r);break}case"vh":{o=gt(r);break}case"vw":{o=vt(r);break}}return o}function T(e){return parseFloat(e.toFixed(3))}function te({group:e}){const{orientation:t,panels:n}=e;return n.reduce((o,r)=>(o+=t==="horizontal"?r.element.offsetWidth:r.element.offsetHeight,o),0)}function he(e){const{panels:t}=e,n=te({group:e});return n===0?t.map(o=>({groupResizeBehavior:o.panelConstraints.groupResizeBehavior,collapsedSize:0,collapsible:o.panelConstraints.collapsible===!0,defaultSize:void 0,disabled:o.panelConstraints.disabled,minSize:0,maxSize:100,panelId:o.id})):t.map(o=>{const{element:r,panelConstraints:a}=o;let l=0;if(a.collapsedSize!==void 0){const c=re({groupSize:n,panelElement:r,styleProp:a.collapsedSize});l=T(c/n*100)}let s;if(a.defaultSize!==void 0){const c=re({groupSize:n,panelElement:r,styleProp:a.defaultSize});s=T(c/n*100)}let i=0;if(a.minSize!==void 0){const c=re({groupSize:n,panelElement:r,styleProp:a.minSize});i=T(c/n*100)}let u=100;if(a.maxSize!==void 0){const c=re({groupSize:n,panelElement:r,styleProp:a.maxSize});u=T(c/n*100)}return{groupResizeBehavior:a.groupResizeBehavior,collapsedSize:l,collapsible:a.collapsible===!0,defaultSize:s,disabled:a.disabled,minSize:i,maxSize:u,panelId:o.id}})}function P(e,t="Assertion error"){if(!e)throw Error(t)}function ge(e,t){return Array.from(t).sort(e==="horizontal"?bt:yt)}function bt(e,t){const n=e.element.offsetLeft-t.element.offsetLeft;return n!==0?n:e.element.offsetWidth-t.element.offsetWidth}function yt(e,t){const n=e.element.offsetTop-t.element.offsetTop;return n!==0?n:e.element.offsetHeight-t.element.offsetHeight}function Ve(e){return e!==null&&typeof e=="object"&&"nodeType"in e&&e.nodeType===Node.ELEMENT_NODE}function Ue(e,t){return{x:e.x>=t.left&&e.x<=t.right?0:Math.min(Math.abs(e.x-t.left),Math.abs(e.x-t.right)),y:e.y>=t.top&&e.y<=t.bottom?0:Math.min(Math.abs(e.y-t.top),Math.abs(e.y-t.bottom))}}function zt({orientation:e,rects:t,targetRect:n}){const o={x:n.x+n.width/2,y:n.y+n.height/2};let r,a=Number.MAX_VALUE;for(const l of t){const{x:s,y:i}=Ue(o,l),u=e==="horizontal"?s:i;u<a&&(a=u,r=l)}return P(r,"No rect found"),r}let ue;function St(){return ue===void 0&&(typeof matchMedia=="function"?ue=!!matchMedia("(pointer:coarse)").matches:ue=!1),ue}function Ye(e){const{element:t,orientation:n,panels:o,separators:r}=e,a=ge(n,Array.from(t.children).filter(Ve).map(m=>({element:m}))).map(({element:m})=>m),l=[];let s=!1,i=!1,u=-1,c=-1,h=0,d,S=[];{let m=-1;for(const f of a)f.hasAttribute("data-panel")&&(m++,f.hasAttribute("data-disabled")||(h++,u===-1&&(u=m),c=m))}if(h>1){let m=-1;for(const f of a)if(f.hasAttribute("data-panel")){m++;const g=o.find(p=>p.element===f);if(g){if(d){const p=d.element.getBoundingClientRect(),y=f.getBoundingClientRect();let z;if(i){const b=n==="horizontal"?new DOMRect(p.right,p.top,0,p.height):new DOMRect(p.left,p.bottom,p.width,0),v=n==="horizontal"?new DOMRect(y.left,y.top,0,y.height):new DOMRect(y.left,y.top,y.width,0);switch(S.length){case 0:{z=[b,v];break}case 1:{const R=S[0],E=zt({orientation:n,rects:[p,y],targetRect:R.element.getBoundingClientRect()});z=[R,E===p?v:b];break}default:{z=S;break}}}else S.length?z=S:z=[n==="horizontal"?new DOMRect(p.right,y.top,y.left-p.right,y.height):new DOMRect(y.left,p.bottom,y.width,y.top-p.bottom)];for(const b of z){let v="width"in b?b:b.element.getBoundingClientRect();const R=St()?e.resizeTargetMinimumSize.coarse:e.resizeTargetMinimumSize.fine;if(v.width<R){const M=R-v.width;v=new DOMRect(v.x-M/2,v.y,v.width+M,v.height)}if(v.height<R){const M=R-v.height;v=new DOMRect(v.x,v.y-M/2,v.width,v.height+M)}const E=m<=u||m>c;!s&&!E&&l.push({group:e,groupSize:te({group:e}),panels:[d,g],separator:"width"in b?void 0:b,rect:v}),s=!1}}i=!1,d=g,S=[]}}else if(f.hasAttribute("data-separator")){f.ariaDisabled!==null&&(s=!0);const g=r.find(p=>p.element===f);g?S.push(g):(d=void 0,S=[])}else i=!0}return l}class Xe{#e={};addListener(t,n){const o=this.#e[t];return o===void 0?this.#e[t]=[n]:o.includes(n)||o.push(n),()=>{this.removeListener(t,n)}}emit(t,n){const o=this.#e[t];if(o!==void 0)if(o.length===1)o[0].call(null,n);else{let r=!1,a=null;const l=Array.from(o);for(let s=0;s<l.length;s++){const i=l[s];try{i.call(null,n)}catch(u){a===null&&(r=!0,a=u)}}if(r)throw a}}removeAllListeners(){this.#e={}}removeListener(t,n){const o=this.#e[t];if(o!==void 0){const r=o.indexOf(n);r>=0&&o.splice(r,1)}}}let Q={cursorFlags:0,state:"inactive"};const me=new Xe;function U(){return Q}function wt(e){return me.addListener("change",e)}function xt(e){const t=Q,n={...Q};n.cursorFlags=e,Q=n,me.emit("change",{prev:t,next:n})}function ee(e){const t=Q;Q=e,me.emit("change",{prev:t,next:e})}const Ct=e=>e,pe=()=>{},_e=1,Je=2,qe=4,Ke=8,Le=3,Re=12;let ce;function Ee(){return ce===void 0&&(ce=!1,typeof window<"u"&&(window.navigator.userAgent.includes("Chrome")||window.navigator.userAgent.includes("Firefox"))&&(ce=!0)),ce}function Pt({cursorFlags:e,groups:t,state:n}){let o=0,r=0;switch(n){case"active":case"hover":t.forEach(a=>{if(!a.mutableState.disableCursor)switch(a.orientation){case"horizontal":{o++;break}case"vertical":{r++;break}}})}if(!(o===0&&r===0)){switch(n){case"active":{if(e&&Ee()){const a=(e&_e)!==0,l=(e&Je)!==0,s=(e&qe)!==0,i=(e&Ke)!==0;if(a)return s?"se-resize":i?"ne-resize":"e-resize";if(l)return s?"sw-resize":i?"nw-resize":"w-resize";if(s)return"s-resize";if(i)return"n-resize"}break}}return Ee()?o>0&&r>0?"move":o>0?"ew-resize":"ns-resize":o>0&&r>0?"grab":o>0?"col-resize":"row-resize"}}const ke=new WeakMap;function be(e){if(e.defaultView===null||e.defaultView===void 0)return;let{prevStyle:t,styleSheet:n}=ke.get(e)??{};n===void 0&&(n=new e.defaultView.CSSStyleSheet,e.adoptedStyleSheets&&(Object.isExtensible(e.adoptedStyleSheets)?e.adoptedStyleSheets.push(n):e.adoptedStyleSheets=[...e.adoptedStyleSheets,n]));const o=U();switch(o.state){case"active":case"hover":{const r=Pt({cursorFlags:o.cursorFlags,groups:o.hitRegions.map(l=>l.group),state:o.state}),a=`*, *:hover {cursor: ${r} !important; }`;if(t===a)return;t=a,r?n.cssRules.length===0?n.insertRule(a):n.replaceSync(a):n.cssRules.length===1&&n.deleteRule(0);break}case"inactive":{t=void 0,n.cssRules.length===1&&n.deleteRule(0);break}}ke.set(e,{prevStyle:t,styleSheet:n})}let F=new Map;const Ze=new Xe;function Lt(e){F=new Map(F),F.delete(e)}function Me(e,t){for(const[n]of F)if(n.id===e)return n}function H(e,t){for(const[n,o]of F)if(n.id===e)return o;if(t)throw Error(`Could not find data for Group with id ${e}`)}function _(){return F}function ye(e,t){return Ze.addListener("groupChange",n=>{n.group.id===e&&t(n)})}function W(e,t,n){const o=F.get(e);F=new Map(F),F.set(e,t),Ze.emit("groupChange",{group:e,isUserInteraction:n?.isUserInteraction===!0,prev:o,next:t})}function Qe(e){const t=U();let n=!1;return t.state==="active"&&(ee({cursorFlags:0,state:"inactive"}),t.hitRegions.length>0&&(be(e),n=!0,t.hitRegions.forEach(o=>{const r=H(o.group.id,!0);W(o.group,r,{isUserInteraction:!0})}))),n}function De(e){e.defaultPrevented||Qe(e.currentTarget)}function Rt(e,t,n){let o,r={x:1/0,y:1/0};for(const a of t){const l=Ue(n,a.rect);switch(e){case"horizontal":{l.x<=r.x&&(o=a,r=l);break}case"vertical":{l.y<=r.y&&(o=a,r=l);break}}}return o?{distance:r,hitRegion:o}:void 0}function Et(e){return e!==null&&typeof e=="object"&&"nodeType"in e&&e.nodeType===Node.DOCUMENT_FRAGMENT_NODE}function kt(e,t){if(e===t)throw new Error("Cannot compare node with itself");const n={a:Ne(e),b:Ne(t)};let o;for(;n.a.at(-1)===n.b.at(-1);)o=n.a.pop(),n.b.pop();P(o,"Stacking order can only be calculated for elements with a common ancestor");const r={a:Te(Ie(n.a)),b:Te(Ie(n.b))};if(r.a===r.b){const a=o.childNodes,l={a:n.a.at(-1),b:n.b.at(-1)};let s=a.length;for(;s--;){const i=a[s];if(i===l.a)return 1;if(i===l.b)return-1}}return Math.sign(r.a-r.b)}const Mt=/\b(?:position|zIndex|opacity|transform|webkitTransform|mixBlendMode|filter|webkitFilter|isolation)\b/;function Dt(e){const t=getComputedStyle(et(e)??e).display;return t==="flex"||t==="inline-flex"}function It(e){const t=getComputedStyle(e);return!!(t.position==="fixed"||t.zIndex!=="auto"&&(t.position!=="static"||Dt(e))||+t.opacity<1||"transform"in t&&t.transform!=="none"||"webkitTransform"in t&&t.webkitTransform!=="none"||"mixBlendMode"in t&&t.mixBlendMode!=="normal"||"filter"in t&&t.filter!=="none"||"webkitFilter"in t&&t.webkitFilter!=="none"||"isolation"in t&&t.isolation==="isolate"||Mt.test(t.willChange)||t.webkitOverflowScrolling==="touch")}function Ie(e){let t=e.length;for(;t--;){const n=e[t];if(P(n,"Missing node"),It(n))return n}return null}function Te(e){return e&&Number(getComputedStyle(e).zIndex)||0}function Ne(e){const t=[];for(;e;)t.push(e),e=et(e);return t}function et(e){const{parentNode:t}=e;return Et(t)?t.host:t}function Tt(e,t){return e.x<t.x+t.width&&e.x+e.width>t.x&&e.y<t.y+t.height&&e.y+e.height>t.y}function Nt({groupElement:e,hitRegion:t,pointerEventTarget:n}){if(!Ve(n)||n.contains(e)||e.contains(n))return!0;if(kt(n,e)>0){let o=n;for(;o;){if(o.contains(e))return!0;if(Tt(o.getBoundingClientRect(),t))return!1;o=o.parentElement}}return!0}function ze(e,t){const n=[];return t.forEach((o,r)=>{if(r.disabled)return;const a=Ye(r),l=Rt(r.orientation,a,{x:e.clientX,y:e.clientY});l&&l.distance.x<=0&&l.distance.y<=0&&Nt({groupElement:r.element,hitRegion:l.hitRegion.rect,pointerEventTarget:e.target})&&n.push(l.hitRegion)}),n}function jt(e,t){if(e.length!==t.length)return!1;for(let n=0;n<e.length;n++)if(e[n]!=t[n])return!1;return!0}function I(e,t,n=0){return Math.abs(T(e)-T(t))<=n}function O(e,t){return I(e,t)?0:e>t?1:-1}function Z({overrideDisabledPanels:e,panelConstraints:t,prevSize:n,size:o}){const{collapsedSize:r=0,collapsible:a,disabled:l,maxSize:s=100,minSize:i=0}=t;if(l&&!e)return n;if(O(o,i)<0)if(a){const u=(r+i)/2;O(o,u)<0?o=r:o=i}else o=i;return o=Math.min(s,o),o=T(o),o}function ie({delta:e,initialLayout:t,panelConstraints:n,pivotIndices:o,prevLayout:r,trigger:a}){if(I(e,0))return t;const l=a==="imperative-api",s=Object.values(t),i=Object.values(r),u=[...s],[c,h]=o;P(c!=null,"Invalid first pivot index"),P(h!=null,"Invalid second pivot index");let d=0;switch(a){case"keyboard":{{const f=e<0?h:c,g=n[f];P(g,`Panel constraints not found for index ${f}`);const{collapsedSize:p=0,collapsible:y,minSize:z=0}=g;if(y){const b=s[f];if(P(b!=null,`Previous layout not found for panel index ${f}`),I(b,p)){const v=z-b;O(v,Math.abs(e))>0&&(e=e<0?0-v:v)}}}{const f=e<0?c:h,g=n[f];P(g,`No panel constraints found for index ${f}`);const{collapsedSize:p=0,collapsible:y,minSize:z=0}=g;if(y){const b=s[f];if(P(b!=null,`Previous layout not found for panel index ${f}`),I(b,z)){const v=b-p;O(v,Math.abs(e))>0&&(e=e<0?0-v:v)}}}break}default:{const f=e<0?h:c,g=n[f];P(g,`Panel constraints not found for index ${f}`);const p=s[f],{collapsible:y,collapsedSize:z,minSize:b}=g;if(y&&O(p,b)<0)if(e>0){const v=b-z,R=v/2,E=p+e;O(E,b)<0&&(e=O(e,R)<=0?0:v)}else{const v=b-z,R=100-v/2,E=p-e;O(E,b)<0&&(e=O(100+e,R)>0?0:-v)}break}}{const f=e<0?1:-1;let g=e<0?h:c,p=0;for(;;){const z=s[g];P(z!=null,`Previous layout not found for panel index ${g}`);const b=Z({overrideDisabledPanels:l,panelConstraints:n[g],prevSize:z,size:100})-z;if(p+=b,g+=f,g<0||g>=n.length)break}const y=Math.min(Math.abs(e),Math.abs(p));e=e<0?0-y:y}{let f=e<0?c:h;for(;f>=0&&f<n.length;){const g=Math.abs(e)-Math.abs(d),p=s[f];P(p!=null,`Previous layout not found for panel index ${f}`);const y=p-g,z=Z({overrideDisabledPanels:l,panelConstraints:n[f],prevSize:p,size:y});if(!I(p,z)&&(d+=p-z,u[f]=z,d.toFixed(3).localeCompare(Math.abs(e).toFixed(3),void 0,{numeric:!0})>=0))break;e<0?f--:f++}}if(jt(i,u))return r;{const f=e<0?h:c,g=s[f];P(g!=null,`Previous layout not found for panel index ${f}`);const p=g+d,y=Z({overrideDisabledPanels:l,panelConstraints:n[f],prevSize:g,size:p});if(u[f]=y,!I(y,p)){let z=p-y,b=e<0?h:c;for(;b>=0&&b<n.length;){const v=u[b];P(v!=null,`Previous layout not found for panel index ${b}`);const R=v+z,E=Z({overrideDisabledPanels:l,panelConstraints:n[b],prevSize:v,size:R});if(I(v,E)||(z-=E-v,u[b]=E),I(z,0))break;e>0?b--:b++}}}const S=Object.values(u).reduce((f,g)=>g+f,0);if(!I(S,100,.1))return r;const m=Object.keys(r);return u.reduce((f,g,p)=>(f[m[p]]=g,f),{})}function Y(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e)if(t[n]===void 0||O(e[n],t[n])!==0)return!1;return!0}function X({layout:e,panelConstraints:t}){const n=Object.values(e),o=[...n],r=o.reduce((s,i)=>s+i,0);if(o.length!==t.length)throw Error(`Invalid ${t.length} panel layout: ${o.map(s=>`${s}%`).join(", ")}`);if(!I(r,100)&&o.length>0)for(let s=0;s<t.length;s++){const i=o[s];P(i!=null,`No layout data found for index ${s}`);const u=100/r*i;o[s]=u}let a=0;for(let s=0;s<t.length;s++){const i=n[s];P(i!=null,`No layout data found for index ${s}`);const u=o[s];P(u!=null,`No layout data found for index ${s}`);const c=Z({overrideDisabledPanels:!0,panelConstraints:t[s],prevSize:i,size:u});u!=c&&(a+=u-c,o[s]=c)}if(!I(a,0))for(let s=0;s<t.length;s++){const i=o[s];P(i!=null,`No layout data found for index ${s}`);const u=i+a,c=Z({overrideDisabledPanels:!0,panelConstraints:t[s],prevSize:i,size:u});if(i!==c&&(a-=c-i,o[s]=c,I(a,0)))break}const l=Object.keys(e);return o.reduce((s,i,u)=>(s[l[u]]=i,s),{})}function tt({groupId:e,panelId:t}){const n=()=>{const i=_();for(const[u,{defaultLayoutDeferred:c,derivedPanelConstraints:h,layout:d,groupSize:S,separatorToPanels:m}]of i)if(u.id===e)return{defaultLayoutDeferred:c,derivedPanelConstraints:h,group:u,groupSize:S,layout:d,separatorToPanels:m};throw Error(`Group ${e} not found`)},o=()=>{const i=n().derivedPanelConstraints.find(u=>u.panelId===t);if(i!==void 0)return i;throw Error(`Panel constraints not found for Panel ${t}`)},r=()=>{const i=n().group.panels.find(u=>u.id===t);if(i!==void 0)return i;throw Error(`Layout not found for Panel ${t}`)},a=()=>{const i=n().layout[t];if(i!==void 0)return i;throw Error(`Layout not found for Panel ${t}`)},l=({nextSize:i,panels:u,prevLayout:c,derivedPanelConstraints:h})=>{const d=a(),S=u.findIndex(g=>g.id===t),m=S===0,f=S===u.length-1;if(f&&i<d&&(m||u.slice(0,S).every((g,p)=>{const y=h[p];return y?.collapsible&&I(y.collapsedSize,c[y.panelId])}))){const g=u.slice(0,S).reduce((p,y)=>p+c[y.id],0);return{...c,[t]:T(100-g)}}return ie({delta:f?d-i:i-d,initialLayout:c,panelConstraints:h,pivotIndices:f?[S-1,S]:[S,S+1],prevLayout:c,trigger:"imperative-api"})},s=i=>{const u=a();if(i===u)return;const{defaultLayoutDeferred:c,derivedPanelConstraints:h,group:d,groupSize:S,layout:m,separatorToPanels:f}=n(),g=l({nextSize:i,panels:d.panels,prevLayout:m,derivedPanelConstraints:h}),p=X({layout:g,panelConstraints:h});Y(m,p)||W(d,{defaultLayoutDeferred:c,derivedPanelConstraints:h,groupSize:S,layout:p,separatorToPanels:f})};return{collapse:()=>{const{collapsible:i,collapsedSize:u}=o(),{mutableValues:c}=r(),h=a();i&&h!==u&&(c.expandToSize=h,s(u))},expand:()=>{const{collapsible:i,collapsedSize:u,minSize:c}=o(),{mutableValues:h}=r(),d=a();if(i&&d===u){let S=h.expandToSize??c;S===0&&(S=1),s(S)}},getSize:()=>{const{group:i}=n(),u=a(),{element:c}=r(),h=i.orientation==="horizontal"?c.offsetWidth:c.offsetHeight;return{asPercentage:u,inPixels:h}},isCollapsed:()=>{const{collapsible:i,collapsedSize:u}=o(),c=a();return i&&I(u,c)},resize:i=>{const{group:u}=n(),{element:c}=r(),h=te({group:u}),d=re({groupSize:h,panelElement:c,styleProp:i}),S=T(d/h*100);s(S)}}}function je(e){if(e.defaultPrevented)return;const t=_();ze(e,t).forEach(n=>{if(n.separator&&!n.separator.disableDoubleClick){const o=n.panels.find(r=>r.panelConstraints.defaultSize!==void 0);if(o){const r=o.panelConstraints.defaultSize,a=tt({groupId:n.group.id,panelId:o.id});a&&r!==void 0&&(a.resize(r),e.preventDefault())}}})}function de(e){const t=_();for(const[n]of t)if(n.separators.some(o=>o.element===e))return n;throw Error("Could not find parent Group for separator element")}function nt({groupId:e}){const t=()=>{const n=_();for(const[o,r]of n)if(o.id===e)return{group:o,...r};throw Error(`Could not find Group with id "${e}"`)};return{getLayout(){const{defaultLayoutDeferred:n,layout:o}=t();return n?{}:o},setLayout(n){const{defaultLayoutDeferred:o,derivedPanelConstraints:r,group:a,groupSize:l,layout:s,separatorToPanels:i}=t(),u=X({layout:n,panelConstraints:r});return o?s:(Y(s,u)||W(a,{defaultLayoutDeferred:o,derivedPanelConstraints:r,groupSize:l,layout:u,separatorToPanels:i}),u)}}}function V(e,t){const n=de(e),o=H(n.id,!0),r=n.separators.find(c=>c.element===e);P(r,"Matching separator not found");const a=o.separatorToPanels.get(r);P(a,"Matching panels not found");const l=a.map(c=>n.panels.indexOf(c)),s=nt({groupId:n.id}).getLayout(),i=ie({delta:t,initialLayout:s,panelConstraints:o.derivedPanelConstraints,pivotIndices:l,prevLayout:s,trigger:"keyboard"}),u=X({layout:i,panelConstraints:o.derivedPanelConstraints});Y(s,u)||W(n,{defaultLayoutDeferred:o.defaultLayoutDeferred,derivedPanelConstraints:o.derivedPanelConstraints,groupSize:o.groupSize,layout:u,separatorToPanels:o.separatorToPanels},{isUserInteraction:!0})}function Oe(e){if(e.defaultPrevented)return;const t=e.currentTarget,n=de(t);if(!n.disabled)switch(e.key){case"ArrowDown":{e.preventDefault(),n.orientation==="vertical"&&V(t,5);break}case"ArrowLeft":{e.preventDefault(),n.orientation==="horizontal"&&V(t,-5);break}case"ArrowRight":{e.preventDefault(),n.orientation==="horizontal"&&V(t,5);break}case"ArrowUp":{e.preventDefault(),n.orientation==="vertical"&&V(t,-5);break}case"End":{e.preventDefault(),V(t,100);break}case"Enter":{e.preventDefault();const o=de(t),r=H(o.id,!0),{derivedPanelConstraints:a,layout:l,separatorToPanels:s}=r,i=o.separators.find(d=>d.element===t);P(i,"Matching separator not found");const u=s.get(i);P(u,"Matching panels not found");const c=u[0],h=a.find(d=>d.panelId===c.id);if(P(h,"Panel metadata not found"),h.collapsible){const d=l[c.id],S=h.collapsedSize===d?o.mutableState.expandedPanelSizes[c.id]??h.minSize:h.collapsedSize;V(t,S-d)}break}case"F6":{e.preventDefault();const o=de(t).separators.map(l=>l.element),r=Array.from(o).findIndex(l=>l===e.currentTarget);P(r!==null,"Index not found");const a=e.shiftKey?r>0?r-1:o.length-1:r+1<o.length?r+1:0;o[a].focus({preventScroll:!0});break}case"Home":{e.preventDefault(),V(t,-100);break}}}function Fe(e){if(e.defaultPrevented||e.pointerType==="mouse"&&e.button>0)return;const t=_(),n=ze(e,t),o=new Map;let r=!1;n.forEach(a=>{a.separator&&(r||(r=!0,a.separator.element.focus({focusVisible:!1,preventScroll:!0})));const l=t.get(a.group);l&&o.set(a.group,l.layout)}),ee({cursorFlags:0,hitRegions:n,initialLayoutMap:o,pointerDownAtPoint:{x:e.clientX,y:e.clientY},state:"active"}),n.length&&e.preventDefault()}function ot({document:e,event:t,hitRegions:n,initialLayoutMap:o,mountedGroups:r,pointerDownAtPoint:a,prevCursorFlags:l}){let s=0;n.forEach(u=>{const{group:c,groupSize:h}=u,{orientation:d,panels:S}=c,{disableCursor:m}=c.mutableState;let f=0;a?d==="horizontal"?f=(t.clientX-a.x)/h*100:f=(t.clientY-a.y)/h*100:d==="horizontal"?f=t.clientX<0?-100:100:f=t.clientY<0?-100:100;const g=o.get(c),p=r.get(c);if(!g||!p)return;const{defaultLayoutDeferred:y,derivedPanelConstraints:z,groupSize:b,layout:v,separatorToPanels:R}=p;if(z&&v&&R){const E=ie({delta:f,initialLayout:g,panelConstraints:z,pivotIndices:u.panels.map(M=>S.indexOf(M)),prevLayout:v,trigger:"mouse-or-touch"});if(Y(E,v)){if(f!==0&&!m)switch(d){case"horizontal":{s|=f<0?_e:Je;break}case"vertical":{s|=f<0?qe:Ke;break}}}else W(u.group,{defaultLayoutDeferred:y,derivedPanelConstraints:z,groupSize:b,layout:E,separatorToPanels:R})}});let i=0;t.movementX===0?i|=l&Le:i|=s&Le,t.movementY===0?i|=l&Re:i|=s&Re,xt(i),be(e)}function Ae(e){const t=_(),n=U();n.state==="active"&&ot({document:e.currentTarget,event:e,hitRegions:n.hitRegions,initialLayoutMap:n.initialLayoutMap,mountedGroups:t,prevCursorFlags:n.cursorFlags})}function Ge(e){if(e.defaultPrevented)return;const t=U(),n=_();switch(t.state){case"active":{if(e.buttons===0){ee({cursorFlags:0,state:"inactive"}),t.hitRegions.forEach(o=>{const r=H(o.group.id,!0);W(o.group,r,{isUserInteraction:!0})});return}for(const o of t.hitRegions)if(o.separator){const{element:r}=o.separator;r.hasPointerCapture?.(e.pointerId)||r.setPointerCapture?.(e.pointerId)}ot({document:e.currentTarget,event:e,hitRegions:t.hitRegions,initialLayoutMap:t.initialLayoutMap,mountedGroups:n,pointerDownAtPoint:t.pointerDownAtPoint,prevCursorFlags:t.cursorFlags});break}default:{const o=ze(e,n);o.length===0?t.state!=="inactive"&&ee({cursorFlags:0,state:"inactive"}):ee({cursorFlags:0,hitRegions:o,state:"hover"}),be(e.currentTarget);break}}}function $e(e){e.relatedTarget instanceof HTMLIFrameElement&&U().state==="hover"&&ee({cursorFlags:0,state:"inactive"})}function Be(e){e.defaultPrevented||e.pointerType==="mouse"&&e.button>0||Qe(e.currentTarget)&&e.preventDefault()}function We(e){let t=0,n=0;const o={};for(const a of e)if(a.defaultSize!==void 0){t++;const l=T(a.defaultSize);n+=l,o[a.panelId]=l}else o[a.panelId]=void 0;const r=e.length-t;if(r!==0){const a=T((100-n)/r);for(const l of e)l.defaultSize===void 0&&(o[l.panelId]=a)}return o}function Ot(e,t,n){if(!n[0])return;const o=e.panels.find(i=>i.element===t);if(!o||!o.onResize)return;const r=te({group:e}),a=e.orientation==="horizontal"?o.element.offsetWidth:o.element.offsetHeight,l=o.mutableValues.prevSize,s={asPercentage:T(a/r*100),inPixels:a};o.mutableValues.prevSize=s,o.onResize(s,o.id,l)}function Ft(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e)if(e[n]!==t[n])return!1;return!0}function At({group:e,nextGroupSize:t,prevGroupSize:n,prevLayout:o}){if(n<=0||t<=0||n===t)return o;let r=0,a=0,l=!1;const s=new Map,i=[];for(const h of e.panels){const d=o[h.id]??0;if(h.panelConstraints.groupResizeBehavior==="preserve-pixel-size"){l=!0;const S=d/100*n,m=T(S/t*100);s.set(h.id,m),r+=m}else i.push(h.id),a+=d}if(!l||i.length===0)return o;const u=100-r,c={...o};if(s.forEach((h,d)=>{c[d]=h}),a>0)for(const h of i){const d=o[h]??0;c[h]=T(d/a*u)}else{const h=T(u/i.length);for(const d of i)c[d]=h}return c}function Gt(e,t){const n=e.map(r=>r.id),o=Object.keys(t);if(n.length!==o.length)return!1;for(const r of n)if(!o.includes(r))return!1;return!0}const K=new Map;function $t(e){let t=!0;P(e.element.ownerDocument.defaultView,"Cannot register an unmounted Group");const n=e.element.ownerDocument.defaultView.ResizeObserver,o=new Set,r=new Set,a=new n(m=>{for(const f of m){const{borderBoxSize:g,target:p}=f;if(p===e.element){if(t){const y=te({group:e});if(y===0)return;const z=H(e.id);if(!z)return;const b=he(e),v=z.defaultLayoutDeferred?We(b):z.layout,R=At({group:e,nextGroupSize:y,prevGroupSize:z.groupSize,prevLayout:v}),E=X({layout:R,panelConstraints:b});if(!z.defaultLayoutDeferred&&Y(z.layout,E)&&Ft(z.derivedPanelConstraints,b)&&z.groupSize===y)return;W(e,{defaultLayoutDeferred:!1,derivedPanelConstraints:b,groupSize:y,layout:E,separatorToPanels:z.separatorToPanels})}}else Ot(e,p,g)}});a.observe(e.element),e.panels.forEach(m=>{P(!o.has(m.id),`Panel ids must be unique; id "${m.id}" was used more than once`),o.add(m.id),m.onResize&&a.observe(m.element)});const l=te({group:e}),s=he(e),i=e.panels.map(({id:m})=>m).join(",");let u=e.mutableState.defaultLayout;u&&(Gt(e.panels,u)||(u=void 0));const c=e.mutableState.layouts[i]??u??We(s),h=X({layout:c,panelConstraints:s}),d=e.element.ownerDocument;K.set(d,(K.get(d)??0)+1);const S=new Map;return Ye(e).forEach(m=>{m.separator&&S.set(m.separator,m.panels)}),W(e,{defaultLayoutDeferred:l===0,derivedPanelConstraints:s,groupSize:l,layout:h,separatorToPanels:S}),e.separators.forEach(m=>{P(!r.has(m.id),`Separator ids must be unique; id "${m.id}" was used more than once`),r.add(m.id),m.element.addEventListener("keydown",Oe)}),K.get(d)===1&&(d.addEventListener("contextmenu",De,!0),d.addEventListener("dblclick",je,!0),d.addEventListener("pointerdown",Fe,!0),d.addEventListener("pointerleave",Ae),d.addEventListener("pointermove",Ge),d.addEventListener("pointerout",$e),d.addEventListener("pointerup",Be,!0)),function(){t=!1,K.set(d,Math.max(0,(K.get(d)??0)-1)),Lt(e),e.separators.forEach(m=>{m.element.removeEventListener("keydown",Oe)}),K.get(d)||(d.removeEventListener("contextmenu",De,!0),d.removeEventListener("dblclick",je,!0),d.removeEventListener("pointerdown",Fe,!0),d.removeEventListener("pointerleave",Ae),d.removeEventListener("pointermove",Ge),d.removeEventListener("pointerout",$e),d.removeEventListener("pointerup",Be,!0)),a.disconnect()}}function Bt(){const[e,t]=L.useState({}),n=L.useCallback(()=>t({}),[]);return[e,n]}function Se(e){const t=L.useId();return`${e??t}`}const J=typeof window<"u"?L.useLayoutEffect:L.useEffect;function ae(e){const t=L.useRef(e);return J(()=>{t.current=e},[e]),L.useCallback((...n)=>t.current?.(...n),[t])}function we(...e){return ae(t=>{e.forEach(n=>{if(n)switch(typeof n){case"function":{n(t);break}case"object":{n.current=t;break}}})})}function xe(e){const t=L.useRef({...e});return J(()=>{for(const n in e)t.current[n]=e[n]},[e]),t.current}const rt=L.createContext(null);function Wt(e,t){const n=L.useRef({getLayout:()=>({}),setLayout:Ct});L.useImperativeHandle(t,()=>n.current,[]),J(()=>{Object.assign(n.current,nt({groupId:e}))})}function at({children:e,className:t,defaultLayout:n,disableCursor:o,disabled:r,elementRef:a,groupRef:l,id:s,onLayoutChange:i,onLayoutChanged:u,orientation:c="horizontal",resizeTargetMinimumSize:h={coarse:20,fine:10},style:d,...S}){const m=L.useRef({onLayoutChange:{},onLayoutChanged:{}}),f=ae(w=>{Y(m.current.onLayoutChange,w)||(m.current.onLayoutChange=w,i?.(w))}),g=ae((w,x)=>{Y(m.current.onLayoutChanged,w)||(m.current.onLayoutChanged=w,u?.(w,{isUserInteraction:x}))}),p=Se(s),y=L.useRef(null),[z,b]=Bt(),v=L.useRef({lastExpandedPanelSizes:{},layouts:{},panels:[],resizeTargetMinimumSize:h,separators:[]}),R=we(y,a);Wt(p,l);const E=ae((w,x)=>{const k=U(),C=Me(w),D=H(w);if(D){let N=!1;return k.state==="active"&&(N=k.hitRegions.some(ne=>ne.group===C)),{flexGrow:D.layout[x]??1,pointerEvents:N?"none":void 0}}if(n?.[x])return{flexGrow:n?.[x]}}),M=xe({defaultLayout:n,disableCursor:o}),j=L.useMemo(()=>({get disableCursor(){return!!M.disableCursor},getPanelStyles:E,id:p,orientation:c,registerPanel:w=>{const x=v.current;return x.panels=ge(c,[...x.panels,w]),b(),()=>{x.panels=x.panels.filter(k=>k!==w),b()}},registerSeparator:w=>{const x=v.current;return x.separators=ge(c,[...x.separators,w]),b(),()=>{x.separators=x.separators.filter(k=>k!==w),b()}},updatePanelProps:(w,{disabled:x})=>{const k=v.current.panels.find(N=>N.id===w);k&&(k.panelConstraints.disabled=x);const C=Me(p),D=H(p);C&&D&&W(C,{...D,derivedPanelConstraints:he(C)})},updateSeparatorProps:(w,{disabled:x,disableDoubleClick:k})=>{const C=v.current.separators.find(D=>D.id===w);C&&(C.disabled=x,C.disableDoubleClick=k)}}),[E,p,b,c,M]),G=L.useRef(null);return J(()=>{const w=y.current;if(w===null)return;const x=v.current;let k;if(M.defaultLayout!==void 0&&Object.keys(M.defaultLayout).length===x.panels.length){k={};for(const $ of x.panels){const q=M.defaultLayout[$.id];q!==void 0&&(k[$.id]=q)}}const C={disabled:!!r,element:w,id:p,mutableState:{defaultLayout:k,disableCursor:!!M.disableCursor,expandedPanelSizes:v.current.lastExpandedPanelSizes,layouts:v.current.layouts},orientation:c,panels:x.panels,resizeTargetMinimumSize:x.resizeTargetMinimumSize,separators:x.separators};G.current=C;const D=$t(C),{defaultLayoutDeferred:N,derivedPanelConstraints:ne,layout:se}=H(C.id,!0);!N&&ne.length>0&&(f(se),g(se,!1));const oe=ye(p,$=>{const{defaultLayoutDeferred:q,derivedPanelConstraints:Pe,layout:le}=$.next;if(q||Pe.length===0)return;const lt=C.panels.map(({id:B})=>B).join(",");C.mutableState.layouts[lt]=le,Pe.forEach(B=>{if(B.collapsible){const{layout:fe}=$.prev??{};if(fe){const ct=I(B.collapsedSize,le[B.panelId]),dt=I(B.collapsedSize,fe[B.panelId]);ct&&!dt&&(C.mutableState.expandedPanelSizes[B.panelId]=fe[B.panelId])}}});const ut=U().state!=="active";f(le),ut&&g(le,$.isUserInteraction)});return()=>{G.current=null,D(),oe()}},[r,p,g,f,c,z,M]),L.useEffect(()=>{const w=G.current;w&&(w.mutableState.defaultLayout=n,w.mutableState.disableCursor=!!o)}),A.jsx(rt.Provider,{value:j,children:A.jsx("div",{...S,className:t,"data-group":!0,"data-testid":p,id:p,ref:R,style:{height:"100%",width:"100%",overflow:"hidden",...d,display:"flex",flexDirection:c==="horizontal"?"row":"column",flexWrap:"nowrap",touchAction:c==="horizontal"?"pan-y":"pan-x"},children:e})})}at.displayName="Group";function Ce(){const e=L.useContext(rt);return P(e,"Group Context not found; did you render a Panel or Separator outside of a Group?"),e}function Ht(e,t){const{id:n}=Ce(),o=L.useRef({collapse:pe,expand:pe,getSize:()=>({asPercentage:0,inPixels:0}),isCollapsed:()=>!1,resize:pe});L.useImperativeHandle(t,()=>o.current,[]),J(()=>{Object.assign(o.current,tt({groupId:n,panelId:e}))})}function it({children:e,className:t,collapsedSize:n="0%",collapsible:o=!1,defaultSize:r,disabled:a,elementRef:l,groupResizeBehavior:s="preserve-relative-size",id:i,maxSize:u="100%",minSize:c="0%",onResize:h,panelRef:d,style:S,...m}){const f=!!i,g=Se(i),p=xe({disabled:a}),y=L.useRef(null),z=we(y,l),{getPanelStyles:b,id:v,orientation:R,registerPanel:E,updatePanelProps:M}=Ce(),j=h!==null,G=ae((C,D,N)=>{h?.(C,i,N)});J(()=>{const C=y.current;if(C!==null){const D={element:C,id:g,idIsStable:f,mutableValues:{expandToSize:void 0,prevSize:void 0},onResize:j?G:void 0,panelConstraints:{groupResizeBehavior:s,collapsedSize:n,collapsible:o,defaultSize:r,disabled:p.disabled,maxSize:u,minSize:c}};return E(D)}},[s,n,o,r,j,g,f,u,c,G,E,p]),L.useEffect(()=>{M(g,{disabled:a})},[a,g,M]),Ht(g,d);const w=()=>{const C=b(v,g);if(C)return JSON.stringify(C)},x=L.useSyncExternalStore(C=>ye(v,C),w,w);let k;return x?k=JSON.parse(x):r!==void 0?k={flexGrow:void 0,flexShrink:void 0,flexBasis:r}:k={flexGrow:1},A.jsx("div",{...m,"data-disabled":a||void 0,"data-panel":!0,"data-testid":g,id:g,ref:z,style:{...Vt,display:"flex",flexBasis:0,flexShrink:1,overflow:"visible",...k},children:A.jsx("div",{className:t,style:{maxHeight:"100%",maxWidth:"100%",flexGrow:1,overflow:"auto",...S,touchAction:R==="horizontal"?"pan-y":"pan-x"},children:e})})}it.displayName="Panel";const Vt={minHeight:0,maxHeight:"100%",height:"auto",minWidth:0,maxWidth:"100%",width:"auto",border:"none",borderWidth:0,padding:0,margin:0};function Ut({layout:e,panelConstraints:t,panelId:n,panelIndex:o}){let r,a;const l=e[n],s=t.find(i=>i.panelId===n);if(s){const i=s.maxSize,u=s.collapsible?s.collapsedSize:s.minSize,c=[o,o+1];a=X({layout:ie({delta:u-l,initialLayout:e,panelConstraints:t,pivotIndices:c,prevLayout:e}),panelConstraints:t})[n],r=X({layout:ie({delta:i-l,initialLayout:e,panelConstraints:t,pivotIndices:c,prevLayout:e}),panelConstraints:t})[n]}return{valueControls:n,valueMax:r,valueMin:a,valueNow:l}}function st({children:e,className:t,disabled:n,disableDoubleClick:o,elementRef:r,id:a,style:l,...s}){const i=Se(a),u=xe({disabled:n,disableDoubleClick:o}),[c,h]=L.useState({}),[d,S]=L.useState("inactive"),[m,f]=L.useState(!1),g=L.useRef(null),p=we(g,r),{disableCursor:y,id:z,orientation:b,registerSeparator:v,updateSeparatorProps:R}=Ce(),E=b==="horizontal"?"vertical":"horizontal";J(()=>{const G=g.current;if(G!==null){const w={disabled:u.disabled,disableDoubleClick:u.disableDoubleClick,element:G,id:i},x=v(w),k=wt(D=>{S(D.next.state!=="inactive"&&D.next.hitRegions.some(N=>N.separator===w)?D.next.state:"inactive")}),C=ye(z,D=>{const{derivedPanelConstraints:N,layout:ne,separatorToPanels:se}=D.next,oe=se.get(w);if(oe){const $=oe[0],q=oe.indexOf($);h(Ut({layout:ne,panelConstraints:N,panelId:$.id,panelIndex:q}))}});return()=>{k(),C(),x()}}},[z,i,v,u]),L.useEffect(()=>{R(i,{disabled:n,disableDoubleClick:o})},[n,o,i,R]);let M;n&&!y&&(M="not-allowed");let j;return n?j="disabled":d==="active"?j="active":m?j="focus":j=d,A.jsx("div",{...s,"aria-controls":c.valueControls,"aria-disabled":n||void 0,"aria-orientation":E,"aria-valuemax":c.valueMax,"aria-valuemin":c.valueMin,"aria-valuenow":c.valueNow,children:e,className:t,"data-separator":j,"data-testid":i,id:i,onBlur:()=>f(!1),onFocus:()=>f(!0),ref:p,role:"separator",style:{flexBasis:"auto",cursor:M,...l,flexGrow:0,flexShrink:0,touchAction:"none"},tabIndex:n?void 0:0})}st.displayName="Separator";function _t(e){const t=ve.c(10);let n,o,r;t[0]!==e?({className:n,ref:r,...o}=e,t[0]=e,t[1]=n,t[2]=o,t[3]=r):(n=t[1],o=t[2],r=t[3]);let a;t[4]!==n?(a=He("flex h-full w-full",n),t[4]=n,t[5]=a):a=t[5];let l;return t[6]!==o||t[7]!==r||t[8]!==a?(l=A.jsx(at,{groupRef:r,"data-slot":"resizable-panel-group",className:a,...o}),t[6]=o,t[7]=r,t[8]=a,t[9]=l):l=t[9],l}function Jt(e){const t=ve.c(10);let n,o,r;t[0]!==e?({ref:o,style:r,...n}=e,t[0]=e,t[1]=n,t[2]=o,t[3]=r):(n=t[1],o=t[2],r=t[3]);let a;t[4]!==r?(a={overflow:"hidden",...r},t[4]=r,t[5]=a):a=t[5];let l;return t[6]!==n||t[7]!==o||t[8]!==a?(l=A.jsx(it,{panelRef:o,"data-slot":"resizable-panel",style:a,...n}),t[6]=n,t[7]=o,t[8]=a,t[9]=l):l=t[9],l}function qt(e){const t=ve.c(12);let n,o,r;t[0]!==e?({withHandle:r,className:n,...o}=e,t[0]=e,t[1]=n,t[2]=o,t[3]=r):(n=t[1],o=t[2],r=t[3]);let a;t[4]!==n?(a=He("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",n),t[4]=n,t[5]=a):a=t[5];let l;t[6]!==r?(l=r&&A.jsx("div",{className:"bg-border z-10 flex h-4 w-3 items-center justify-center rounded-xs border",children:A.jsx(ft,{className:"size-2.5"})}),t[6]=r,t[7]=l):l=t[7];let s;return t[8]!==o||t[9]!==a||t[10]!==l?(s=A.jsx(st,{"data-slot":"resizable-handle",className:a,...o,children:l}),t[8]=o,t[9]=a,t[10]=l,t[11]=s):s=t[11],s}export{_t as R,Jt as a,qt as b};
1
+ import{r as L,j as A,c as ve,l as He}from"./index-BSg0zn4o.js";import{aj as ft}from"./agent-icon-BhZZd37x.js";function pt(e,t){const n=getComputedStyle(e),o=parseFloat(n.fontSize);return t*o}function ht(e,t){const n=getComputedStyle(e.ownerDocument.documentElement),o=parseFloat(n.fontSize);return t*o}function gt(e){return e/100*window.innerHeight}function vt(e){return e/100*window.innerWidth}function mt(e){switch(typeof e){case"number":return[e,"px"];case"string":{const t=parseFloat(e);return e.endsWith("%")?[t,"%"]:e.endsWith("px")?[t,"px"]:e.endsWith("rem")?[t,"rem"]:e.endsWith("em")?[t,"em"]:e.endsWith("vh")?[t,"vh"]:e.endsWith("vw")?[t,"vw"]:[t,"%"]}}}function re({groupSize:e,panelElement:t,styleProp:n}){let o;const[r,a]=mt(n);switch(a){case"%":{o=r/100*e;break}case"px":{o=r;break}case"rem":{o=ht(t,r);break}case"em":{o=pt(t,r);break}case"vh":{o=gt(r);break}case"vw":{o=vt(r);break}}return o}function T(e){return parseFloat(e.toFixed(3))}function te({group:e}){const{orientation:t,panels:n}=e;return n.reduce((o,r)=>(o+=t==="horizontal"?r.element.offsetWidth:r.element.offsetHeight,o),0)}function he(e){const{panels:t}=e,n=te({group:e});return n===0?t.map(o=>({groupResizeBehavior:o.panelConstraints.groupResizeBehavior,collapsedSize:0,collapsible:o.panelConstraints.collapsible===!0,defaultSize:void 0,disabled:o.panelConstraints.disabled,minSize:0,maxSize:100,panelId:o.id})):t.map(o=>{const{element:r,panelConstraints:a}=o;let l=0;if(a.collapsedSize!==void 0){const c=re({groupSize:n,panelElement:r,styleProp:a.collapsedSize});l=T(c/n*100)}let s;if(a.defaultSize!==void 0){const c=re({groupSize:n,panelElement:r,styleProp:a.defaultSize});s=T(c/n*100)}let i=0;if(a.minSize!==void 0){const c=re({groupSize:n,panelElement:r,styleProp:a.minSize});i=T(c/n*100)}let u=100;if(a.maxSize!==void 0){const c=re({groupSize:n,panelElement:r,styleProp:a.maxSize});u=T(c/n*100)}return{groupResizeBehavior:a.groupResizeBehavior,collapsedSize:l,collapsible:a.collapsible===!0,defaultSize:s,disabled:a.disabled,minSize:i,maxSize:u,panelId:o.id}})}function P(e,t="Assertion error"){if(!e)throw Error(t)}function ge(e,t){return Array.from(t).sort(e==="horizontal"?bt:yt)}function bt(e,t){const n=e.element.offsetLeft-t.element.offsetLeft;return n!==0?n:e.element.offsetWidth-t.element.offsetWidth}function yt(e,t){const n=e.element.offsetTop-t.element.offsetTop;return n!==0?n:e.element.offsetHeight-t.element.offsetHeight}function Ve(e){return e!==null&&typeof e=="object"&&"nodeType"in e&&e.nodeType===Node.ELEMENT_NODE}function Ue(e,t){return{x:e.x>=t.left&&e.x<=t.right?0:Math.min(Math.abs(e.x-t.left),Math.abs(e.x-t.right)),y:e.y>=t.top&&e.y<=t.bottom?0:Math.min(Math.abs(e.y-t.top),Math.abs(e.y-t.bottom))}}function zt({orientation:e,rects:t,targetRect:n}){const o={x:n.x+n.width/2,y:n.y+n.height/2};let r,a=Number.MAX_VALUE;for(const l of t){const{x:s,y:i}=Ue(o,l),u=e==="horizontal"?s:i;u<a&&(a=u,r=l)}return P(r,"No rect found"),r}let ue;function St(){return ue===void 0&&(typeof matchMedia=="function"?ue=!!matchMedia("(pointer:coarse)").matches:ue=!1),ue}function Ye(e){const{element:t,orientation:n,panels:o,separators:r}=e,a=ge(n,Array.from(t.children).filter(Ve).map(m=>({element:m}))).map(({element:m})=>m),l=[];let s=!1,i=!1,u=-1,c=-1,h=0,d,S=[];{let m=-1;for(const f of a)f.hasAttribute("data-panel")&&(m++,f.hasAttribute("data-disabled")||(h++,u===-1&&(u=m),c=m))}if(h>1){let m=-1;for(const f of a)if(f.hasAttribute("data-panel")){m++;const g=o.find(p=>p.element===f);if(g){if(d){const p=d.element.getBoundingClientRect(),y=f.getBoundingClientRect();let z;if(i){const b=n==="horizontal"?new DOMRect(p.right,p.top,0,p.height):new DOMRect(p.left,p.bottom,p.width,0),v=n==="horizontal"?new DOMRect(y.left,y.top,0,y.height):new DOMRect(y.left,y.top,y.width,0);switch(S.length){case 0:{z=[b,v];break}case 1:{const R=S[0],E=zt({orientation:n,rects:[p,y],targetRect:R.element.getBoundingClientRect()});z=[R,E===p?v:b];break}default:{z=S;break}}}else S.length?z=S:z=[n==="horizontal"?new DOMRect(p.right,y.top,y.left-p.right,y.height):new DOMRect(y.left,p.bottom,y.width,y.top-p.bottom)];for(const b of z){let v="width"in b?b:b.element.getBoundingClientRect();const R=St()?e.resizeTargetMinimumSize.coarse:e.resizeTargetMinimumSize.fine;if(v.width<R){const M=R-v.width;v=new DOMRect(v.x-M/2,v.y,v.width+M,v.height)}if(v.height<R){const M=R-v.height;v=new DOMRect(v.x,v.y-M/2,v.width,v.height+M)}const E=m<=u||m>c;!s&&!E&&l.push({group:e,groupSize:te({group:e}),panels:[d,g],separator:"width"in b?void 0:b,rect:v}),s=!1}}i=!1,d=g,S=[]}}else if(f.hasAttribute("data-separator")){f.ariaDisabled!==null&&(s=!0);const g=r.find(p=>p.element===f);g?S.push(g):(d=void 0,S=[])}else i=!0}return l}class Xe{#e={};addListener(t,n){const o=this.#e[t];return o===void 0?this.#e[t]=[n]:o.includes(n)||o.push(n),()=>{this.removeListener(t,n)}}emit(t,n){const o=this.#e[t];if(o!==void 0)if(o.length===1)o[0].call(null,n);else{let r=!1,a=null;const l=Array.from(o);for(let s=0;s<l.length;s++){const i=l[s];try{i.call(null,n)}catch(u){a===null&&(r=!0,a=u)}}if(r)throw a}}removeAllListeners(){this.#e={}}removeListener(t,n){const o=this.#e[t];if(o!==void 0){const r=o.indexOf(n);r>=0&&o.splice(r,1)}}}let Q={cursorFlags:0,state:"inactive"};const me=new Xe;function U(){return Q}function wt(e){return me.addListener("change",e)}function xt(e){const t=Q,n={...Q};n.cursorFlags=e,Q=n,me.emit("change",{prev:t,next:n})}function ee(e){const t=Q;Q=e,me.emit("change",{prev:t,next:e})}const Ct=e=>e,pe=()=>{},_e=1,Je=2,qe=4,Ke=8,Le=3,Re=12;let ce;function Ee(){return ce===void 0&&(ce=!1,typeof window<"u"&&(window.navigator.userAgent.includes("Chrome")||window.navigator.userAgent.includes("Firefox"))&&(ce=!0)),ce}function Pt({cursorFlags:e,groups:t,state:n}){let o=0,r=0;switch(n){case"active":case"hover":t.forEach(a=>{if(!a.mutableState.disableCursor)switch(a.orientation){case"horizontal":{o++;break}case"vertical":{r++;break}}})}if(!(o===0&&r===0)){switch(n){case"active":{if(e&&Ee()){const a=(e&_e)!==0,l=(e&Je)!==0,s=(e&qe)!==0,i=(e&Ke)!==0;if(a)return s?"se-resize":i?"ne-resize":"e-resize";if(l)return s?"sw-resize":i?"nw-resize":"w-resize";if(s)return"s-resize";if(i)return"n-resize"}break}}return Ee()?o>0&&r>0?"move":o>0?"ew-resize":"ns-resize":o>0&&r>0?"grab":o>0?"col-resize":"row-resize"}}const ke=new WeakMap;function be(e){if(e.defaultView===null||e.defaultView===void 0)return;let{prevStyle:t,styleSheet:n}=ke.get(e)??{};n===void 0&&(n=new e.defaultView.CSSStyleSheet,e.adoptedStyleSheets&&(Object.isExtensible(e.adoptedStyleSheets)?e.adoptedStyleSheets.push(n):e.adoptedStyleSheets=[...e.adoptedStyleSheets,n]));const o=U();switch(o.state){case"active":case"hover":{const r=Pt({cursorFlags:o.cursorFlags,groups:o.hitRegions.map(l=>l.group),state:o.state}),a=`*, *:hover {cursor: ${r} !important; }`;if(t===a)return;t=a,r?n.cssRules.length===0?n.insertRule(a):n.replaceSync(a):n.cssRules.length===1&&n.deleteRule(0);break}case"inactive":{t=void 0,n.cssRules.length===1&&n.deleteRule(0);break}}ke.set(e,{prevStyle:t,styleSheet:n})}let F=new Map;const Ze=new Xe;function Lt(e){F=new Map(F),F.delete(e)}function Me(e,t){for(const[n]of F)if(n.id===e)return n}function H(e,t){for(const[n,o]of F)if(n.id===e)return o;if(t)throw Error(`Could not find data for Group with id ${e}`)}function _(){return F}function ye(e,t){return Ze.addListener("groupChange",n=>{n.group.id===e&&t(n)})}function W(e,t,n){const o=F.get(e);F=new Map(F),F.set(e,t),Ze.emit("groupChange",{group:e,isUserInteraction:n?.isUserInteraction===!0,prev:o,next:t})}function Qe(e){const t=U();let n=!1;return t.state==="active"&&(ee({cursorFlags:0,state:"inactive"}),t.hitRegions.length>0&&(be(e),n=!0,t.hitRegions.forEach(o=>{const r=H(o.group.id,!0);W(o.group,r,{isUserInteraction:!0})}))),n}function De(e){e.defaultPrevented||Qe(e.currentTarget)}function Rt(e,t,n){let o,r={x:1/0,y:1/0};for(const a of t){const l=Ue(n,a.rect);switch(e){case"horizontal":{l.x<=r.x&&(o=a,r=l);break}case"vertical":{l.y<=r.y&&(o=a,r=l);break}}}return o?{distance:r,hitRegion:o}:void 0}function Et(e){return e!==null&&typeof e=="object"&&"nodeType"in e&&e.nodeType===Node.DOCUMENT_FRAGMENT_NODE}function kt(e,t){if(e===t)throw new Error("Cannot compare node with itself");const n={a:Ne(e),b:Ne(t)};let o;for(;n.a.at(-1)===n.b.at(-1);)o=n.a.pop(),n.b.pop();P(o,"Stacking order can only be calculated for elements with a common ancestor");const r={a:Te(Ie(n.a)),b:Te(Ie(n.b))};if(r.a===r.b){const a=o.childNodes,l={a:n.a.at(-1),b:n.b.at(-1)};let s=a.length;for(;s--;){const i=a[s];if(i===l.a)return 1;if(i===l.b)return-1}}return Math.sign(r.a-r.b)}const Mt=/\b(?:position|zIndex|opacity|transform|webkitTransform|mixBlendMode|filter|webkitFilter|isolation)\b/;function Dt(e){const t=getComputedStyle(et(e)??e).display;return t==="flex"||t==="inline-flex"}function It(e){const t=getComputedStyle(e);return!!(t.position==="fixed"||t.zIndex!=="auto"&&(t.position!=="static"||Dt(e))||+t.opacity<1||"transform"in t&&t.transform!=="none"||"webkitTransform"in t&&t.webkitTransform!=="none"||"mixBlendMode"in t&&t.mixBlendMode!=="normal"||"filter"in t&&t.filter!=="none"||"webkitFilter"in t&&t.webkitFilter!=="none"||"isolation"in t&&t.isolation==="isolate"||Mt.test(t.willChange)||t.webkitOverflowScrolling==="touch")}function Ie(e){let t=e.length;for(;t--;){const n=e[t];if(P(n,"Missing node"),It(n))return n}return null}function Te(e){return e&&Number(getComputedStyle(e).zIndex)||0}function Ne(e){const t=[];for(;e;)t.push(e),e=et(e);return t}function et(e){const{parentNode:t}=e;return Et(t)?t.host:t}function Tt(e,t){return e.x<t.x+t.width&&e.x+e.width>t.x&&e.y<t.y+t.height&&e.y+e.height>t.y}function Nt({groupElement:e,hitRegion:t,pointerEventTarget:n}){if(!Ve(n)||n.contains(e)||e.contains(n))return!0;if(kt(n,e)>0){let o=n;for(;o;){if(o.contains(e))return!0;if(Tt(o.getBoundingClientRect(),t))return!1;o=o.parentElement}}return!0}function ze(e,t){const n=[];return t.forEach((o,r)=>{if(r.disabled)return;const a=Ye(r),l=Rt(r.orientation,a,{x:e.clientX,y:e.clientY});l&&l.distance.x<=0&&l.distance.y<=0&&Nt({groupElement:r.element,hitRegion:l.hitRegion.rect,pointerEventTarget:e.target})&&n.push(l.hitRegion)}),n}function jt(e,t){if(e.length!==t.length)return!1;for(let n=0;n<e.length;n++)if(e[n]!=t[n])return!1;return!0}function I(e,t,n=0){return Math.abs(T(e)-T(t))<=n}function O(e,t){return I(e,t)?0:e>t?1:-1}function Z({overrideDisabledPanels:e,panelConstraints:t,prevSize:n,size:o}){const{collapsedSize:r=0,collapsible:a,disabled:l,maxSize:s=100,minSize:i=0}=t;if(l&&!e)return n;if(O(o,i)<0)if(a){const u=(r+i)/2;O(o,u)<0?o=r:o=i}else o=i;return o=Math.min(s,o),o=T(o),o}function ie({delta:e,initialLayout:t,panelConstraints:n,pivotIndices:o,prevLayout:r,trigger:a}){if(I(e,0))return t;const l=a==="imperative-api",s=Object.values(t),i=Object.values(r),u=[...s],[c,h]=o;P(c!=null,"Invalid first pivot index"),P(h!=null,"Invalid second pivot index");let d=0;switch(a){case"keyboard":{{const f=e<0?h:c,g=n[f];P(g,`Panel constraints not found for index ${f}`);const{collapsedSize:p=0,collapsible:y,minSize:z=0}=g;if(y){const b=s[f];if(P(b!=null,`Previous layout not found for panel index ${f}`),I(b,p)){const v=z-b;O(v,Math.abs(e))>0&&(e=e<0?0-v:v)}}}{const f=e<0?c:h,g=n[f];P(g,`No panel constraints found for index ${f}`);const{collapsedSize:p=0,collapsible:y,minSize:z=0}=g;if(y){const b=s[f];if(P(b!=null,`Previous layout not found for panel index ${f}`),I(b,z)){const v=b-p;O(v,Math.abs(e))>0&&(e=e<0?0-v:v)}}}break}default:{const f=e<0?h:c,g=n[f];P(g,`Panel constraints not found for index ${f}`);const p=s[f],{collapsible:y,collapsedSize:z,minSize:b}=g;if(y&&O(p,b)<0)if(e>0){const v=b-z,R=v/2,E=p+e;O(E,b)<0&&(e=O(e,R)<=0?0:v)}else{const v=b-z,R=100-v/2,E=p-e;O(E,b)<0&&(e=O(100+e,R)>0?0:-v)}break}}{const f=e<0?1:-1;let g=e<0?h:c,p=0;for(;;){const z=s[g];P(z!=null,`Previous layout not found for panel index ${g}`);const b=Z({overrideDisabledPanels:l,panelConstraints:n[g],prevSize:z,size:100})-z;if(p+=b,g+=f,g<0||g>=n.length)break}const y=Math.min(Math.abs(e),Math.abs(p));e=e<0?0-y:y}{let f=e<0?c:h;for(;f>=0&&f<n.length;){const g=Math.abs(e)-Math.abs(d),p=s[f];P(p!=null,`Previous layout not found for panel index ${f}`);const y=p-g,z=Z({overrideDisabledPanels:l,panelConstraints:n[f],prevSize:p,size:y});if(!I(p,z)&&(d+=p-z,u[f]=z,d.toFixed(3).localeCompare(Math.abs(e).toFixed(3),void 0,{numeric:!0})>=0))break;e<0?f--:f++}}if(jt(i,u))return r;{const f=e<0?h:c,g=s[f];P(g!=null,`Previous layout not found for panel index ${f}`);const p=g+d,y=Z({overrideDisabledPanels:l,panelConstraints:n[f],prevSize:g,size:p});if(u[f]=y,!I(y,p)){let z=p-y,b=e<0?h:c;for(;b>=0&&b<n.length;){const v=u[b];P(v!=null,`Previous layout not found for panel index ${b}`);const R=v+z,E=Z({overrideDisabledPanels:l,panelConstraints:n[b],prevSize:v,size:R});if(I(v,E)||(z-=E-v,u[b]=E),I(z,0))break;e>0?b--:b++}}}const S=Object.values(u).reduce((f,g)=>g+f,0);if(!I(S,100,.1))return r;const m=Object.keys(r);return u.reduce((f,g,p)=>(f[m[p]]=g,f),{})}function Y(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e)if(t[n]===void 0||O(e[n],t[n])!==0)return!1;return!0}function X({layout:e,panelConstraints:t}){const n=Object.values(e),o=[...n],r=o.reduce((s,i)=>s+i,0);if(o.length!==t.length)throw Error(`Invalid ${t.length} panel layout: ${o.map(s=>`${s}%`).join(", ")}`);if(!I(r,100)&&o.length>0)for(let s=0;s<t.length;s++){const i=o[s];P(i!=null,`No layout data found for index ${s}`);const u=100/r*i;o[s]=u}let a=0;for(let s=0;s<t.length;s++){const i=n[s];P(i!=null,`No layout data found for index ${s}`);const u=o[s];P(u!=null,`No layout data found for index ${s}`);const c=Z({overrideDisabledPanels:!0,panelConstraints:t[s],prevSize:i,size:u});u!=c&&(a+=u-c,o[s]=c)}if(!I(a,0))for(let s=0;s<t.length;s++){const i=o[s];P(i!=null,`No layout data found for index ${s}`);const u=i+a,c=Z({overrideDisabledPanels:!0,panelConstraints:t[s],prevSize:i,size:u});if(i!==c&&(a-=c-i,o[s]=c,I(a,0)))break}const l=Object.keys(e);return o.reduce((s,i,u)=>(s[l[u]]=i,s),{})}function tt({groupId:e,panelId:t}){const n=()=>{const i=_();for(const[u,{defaultLayoutDeferred:c,derivedPanelConstraints:h,layout:d,groupSize:S,separatorToPanels:m}]of i)if(u.id===e)return{defaultLayoutDeferred:c,derivedPanelConstraints:h,group:u,groupSize:S,layout:d,separatorToPanels:m};throw Error(`Group ${e} not found`)},o=()=>{const i=n().derivedPanelConstraints.find(u=>u.panelId===t);if(i!==void 0)return i;throw Error(`Panel constraints not found for Panel ${t}`)},r=()=>{const i=n().group.panels.find(u=>u.id===t);if(i!==void 0)return i;throw Error(`Layout not found for Panel ${t}`)},a=()=>{const i=n().layout[t];if(i!==void 0)return i;throw Error(`Layout not found for Panel ${t}`)},l=({nextSize:i,panels:u,prevLayout:c,derivedPanelConstraints:h})=>{const d=a(),S=u.findIndex(g=>g.id===t),m=S===0,f=S===u.length-1;if(f&&i<d&&(m||u.slice(0,S).every((g,p)=>{const y=h[p];return y?.collapsible&&I(y.collapsedSize,c[y.panelId])}))){const g=u.slice(0,S).reduce((p,y)=>p+c[y.id],0);return{...c,[t]:T(100-g)}}return ie({delta:f?d-i:i-d,initialLayout:c,panelConstraints:h,pivotIndices:f?[S-1,S]:[S,S+1],prevLayout:c,trigger:"imperative-api"})},s=i=>{const u=a();if(i===u)return;const{defaultLayoutDeferred:c,derivedPanelConstraints:h,group:d,groupSize:S,layout:m,separatorToPanels:f}=n(),g=l({nextSize:i,panels:d.panels,prevLayout:m,derivedPanelConstraints:h}),p=X({layout:g,panelConstraints:h});Y(m,p)||W(d,{defaultLayoutDeferred:c,derivedPanelConstraints:h,groupSize:S,layout:p,separatorToPanels:f})};return{collapse:()=>{const{collapsible:i,collapsedSize:u}=o(),{mutableValues:c}=r(),h=a();i&&h!==u&&(c.expandToSize=h,s(u))},expand:()=>{const{collapsible:i,collapsedSize:u,minSize:c}=o(),{mutableValues:h}=r(),d=a();if(i&&d===u){let S=h.expandToSize??c;S===0&&(S=1),s(S)}},getSize:()=>{const{group:i}=n(),u=a(),{element:c}=r(),h=i.orientation==="horizontal"?c.offsetWidth:c.offsetHeight;return{asPercentage:u,inPixels:h}},isCollapsed:()=>{const{collapsible:i,collapsedSize:u}=o(),c=a();return i&&I(u,c)},resize:i=>{const{group:u}=n(),{element:c}=r(),h=te({group:u}),d=re({groupSize:h,panelElement:c,styleProp:i}),S=T(d/h*100);s(S)}}}function je(e){if(e.defaultPrevented)return;const t=_();ze(e,t).forEach(n=>{if(n.separator&&!n.separator.disableDoubleClick){const o=n.panels.find(r=>r.panelConstraints.defaultSize!==void 0);if(o){const r=o.panelConstraints.defaultSize,a=tt({groupId:n.group.id,panelId:o.id});a&&r!==void 0&&(a.resize(r),e.preventDefault())}}})}function de(e){const t=_();for(const[n]of t)if(n.separators.some(o=>o.element===e))return n;throw Error("Could not find parent Group for separator element")}function nt({groupId:e}){const t=()=>{const n=_();for(const[o,r]of n)if(o.id===e)return{group:o,...r};throw Error(`Could not find Group with id "${e}"`)};return{getLayout(){const{defaultLayoutDeferred:n,layout:o}=t();return n?{}:o},setLayout(n){const{defaultLayoutDeferred:o,derivedPanelConstraints:r,group:a,groupSize:l,layout:s,separatorToPanels:i}=t(),u=X({layout:n,panelConstraints:r});return o?s:(Y(s,u)||W(a,{defaultLayoutDeferred:o,derivedPanelConstraints:r,groupSize:l,layout:u,separatorToPanels:i}),u)}}}function V(e,t){const n=de(e),o=H(n.id,!0),r=n.separators.find(c=>c.element===e);P(r,"Matching separator not found");const a=o.separatorToPanels.get(r);P(a,"Matching panels not found");const l=a.map(c=>n.panels.indexOf(c)),s=nt({groupId:n.id}).getLayout(),i=ie({delta:t,initialLayout:s,panelConstraints:o.derivedPanelConstraints,pivotIndices:l,prevLayout:s,trigger:"keyboard"}),u=X({layout:i,panelConstraints:o.derivedPanelConstraints});Y(s,u)||W(n,{defaultLayoutDeferred:o.defaultLayoutDeferred,derivedPanelConstraints:o.derivedPanelConstraints,groupSize:o.groupSize,layout:u,separatorToPanels:o.separatorToPanels},{isUserInteraction:!0})}function Oe(e){if(e.defaultPrevented)return;const t=e.currentTarget,n=de(t);if(!n.disabled)switch(e.key){case"ArrowDown":{e.preventDefault(),n.orientation==="vertical"&&V(t,5);break}case"ArrowLeft":{e.preventDefault(),n.orientation==="horizontal"&&V(t,-5);break}case"ArrowRight":{e.preventDefault(),n.orientation==="horizontal"&&V(t,5);break}case"ArrowUp":{e.preventDefault(),n.orientation==="vertical"&&V(t,-5);break}case"End":{e.preventDefault(),V(t,100);break}case"Enter":{e.preventDefault();const o=de(t),r=H(o.id,!0),{derivedPanelConstraints:a,layout:l,separatorToPanels:s}=r,i=o.separators.find(d=>d.element===t);P(i,"Matching separator not found");const u=s.get(i);P(u,"Matching panels not found");const c=u[0],h=a.find(d=>d.panelId===c.id);if(P(h,"Panel metadata not found"),h.collapsible){const d=l[c.id],S=h.collapsedSize===d?o.mutableState.expandedPanelSizes[c.id]??h.minSize:h.collapsedSize;V(t,S-d)}break}case"F6":{e.preventDefault();const o=de(t).separators.map(l=>l.element),r=Array.from(o).findIndex(l=>l===e.currentTarget);P(r!==null,"Index not found");const a=e.shiftKey?r>0?r-1:o.length-1:r+1<o.length?r+1:0;o[a].focus({preventScroll:!0});break}case"Home":{e.preventDefault(),V(t,-100);break}}}function Fe(e){if(e.defaultPrevented||e.pointerType==="mouse"&&e.button>0)return;const t=_(),n=ze(e,t),o=new Map;let r=!1;n.forEach(a=>{a.separator&&(r||(r=!0,a.separator.element.focus({focusVisible:!1,preventScroll:!0})));const l=t.get(a.group);l&&o.set(a.group,l.layout)}),ee({cursorFlags:0,hitRegions:n,initialLayoutMap:o,pointerDownAtPoint:{x:e.clientX,y:e.clientY},state:"active"}),n.length&&e.preventDefault()}function ot({document:e,event:t,hitRegions:n,initialLayoutMap:o,mountedGroups:r,pointerDownAtPoint:a,prevCursorFlags:l}){let s=0;n.forEach(u=>{const{group:c,groupSize:h}=u,{orientation:d,panels:S}=c,{disableCursor:m}=c.mutableState;let f=0;a?d==="horizontal"?f=(t.clientX-a.x)/h*100:f=(t.clientY-a.y)/h*100:d==="horizontal"?f=t.clientX<0?-100:100:f=t.clientY<0?-100:100;const g=o.get(c),p=r.get(c);if(!g||!p)return;const{defaultLayoutDeferred:y,derivedPanelConstraints:z,groupSize:b,layout:v,separatorToPanels:R}=p;if(z&&v&&R){const E=ie({delta:f,initialLayout:g,panelConstraints:z,pivotIndices:u.panels.map(M=>S.indexOf(M)),prevLayout:v,trigger:"mouse-or-touch"});if(Y(E,v)){if(f!==0&&!m)switch(d){case"horizontal":{s|=f<0?_e:Je;break}case"vertical":{s|=f<0?qe:Ke;break}}}else W(u.group,{defaultLayoutDeferred:y,derivedPanelConstraints:z,groupSize:b,layout:E,separatorToPanels:R})}});let i=0;t.movementX===0?i|=l&Le:i|=s&Le,t.movementY===0?i|=l&Re:i|=s&Re,xt(i),be(e)}function Ae(e){const t=_(),n=U();n.state==="active"&&ot({document:e.currentTarget,event:e,hitRegions:n.hitRegions,initialLayoutMap:n.initialLayoutMap,mountedGroups:t,prevCursorFlags:n.cursorFlags})}function Ge(e){if(e.defaultPrevented)return;const t=U(),n=_();switch(t.state){case"active":{if(e.buttons===0){ee({cursorFlags:0,state:"inactive"}),t.hitRegions.forEach(o=>{const r=H(o.group.id,!0);W(o.group,r,{isUserInteraction:!0})});return}for(const o of t.hitRegions)if(o.separator){const{element:r}=o.separator;r.hasPointerCapture?.(e.pointerId)||r.setPointerCapture?.(e.pointerId)}ot({document:e.currentTarget,event:e,hitRegions:t.hitRegions,initialLayoutMap:t.initialLayoutMap,mountedGroups:n,pointerDownAtPoint:t.pointerDownAtPoint,prevCursorFlags:t.cursorFlags});break}default:{const o=ze(e,n);o.length===0?t.state!=="inactive"&&ee({cursorFlags:0,state:"inactive"}):ee({cursorFlags:0,hitRegions:o,state:"hover"}),be(e.currentTarget);break}}}function $e(e){e.relatedTarget instanceof HTMLIFrameElement&&U().state==="hover"&&ee({cursorFlags:0,state:"inactive"})}function Be(e){e.defaultPrevented||e.pointerType==="mouse"&&e.button>0||Qe(e.currentTarget)&&e.preventDefault()}function We(e){let t=0,n=0;const o={};for(const a of e)if(a.defaultSize!==void 0){t++;const l=T(a.defaultSize);n+=l,o[a.panelId]=l}else o[a.panelId]=void 0;const r=e.length-t;if(r!==0){const a=T((100-n)/r);for(const l of e)l.defaultSize===void 0&&(o[l.panelId]=a)}return o}function Ot(e,t,n){if(!n[0])return;const o=e.panels.find(i=>i.element===t);if(!o||!o.onResize)return;const r=te({group:e}),a=e.orientation==="horizontal"?o.element.offsetWidth:o.element.offsetHeight,l=o.mutableValues.prevSize,s={asPercentage:T(a/r*100),inPixels:a};o.mutableValues.prevSize=s,o.onResize(s,o.id,l)}function Ft(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e)if(e[n]!==t[n])return!1;return!0}function At({group:e,nextGroupSize:t,prevGroupSize:n,prevLayout:o}){if(n<=0||t<=0||n===t)return o;let r=0,a=0,l=!1;const s=new Map,i=[];for(const h of e.panels){const d=o[h.id]??0;if(h.panelConstraints.groupResizeBehavior==="preserve-pixel-size"){l=!0;const S=d/100*n,m=T(S/t*100);s.set(h.id,m),r+=m}else i.push(h.id),a+=d}if(!l||i.length===0)return o;const u=100-r,c={...o};if(s.forEach((h,d)=>{c[d]=h}),a>0)for(const h of i){const d=o[h]??0;c[h]=T(d/a*u)}else{const h=T(u/i.length);for(const d of i)c[d]=h}return c}function Gt(e,t){const n=e.map(r=>r.id),o=Object.keys(t);if(n.length!==o.length)return!1;for(const r of n)if(!o.includes(r))return!1;return!0}const K=new Map;function $t(e){let t=!0;P(e.element.ownerDocument.defaultView,"Cannot register an unmounted Group");const n=e.element.ownerDocument.defaultView.ResizeObserver,o=new Set,r=new Set,a=new n(m=>{for(const f of m){const{borderBoxSize:g,target:p}=f;if(p===e.element){if(t){const y=te({group:e});if(y===0)return;const z=H(e.id);if(!z)return;const b=he(e),v=z.defaultLayoutDeferred?We(b):z.layout,R=At({group:e,nextGroupSize:y,prevGroupSize:z.groupSize,prevLayout:v}),E=X({layout:R,panelConstraints:b});if(!z.defaultLayoutDeferred&&Y(z.layout,E)&&Ft(z.derivedPanelConstraints,b)&&z.groupSize===y)return;W(e,{defaultLayoutDeferred:!1,derivedPanelConstraints:b,groupSize:y,layout:E,separatorToPanels:z.separatorToPanels})}}else Ot(e,p,g)}});a.observe(e.element),e.panels.forEach(m=>{P(!o.has(m.id),`Panel ids must be unique; id "${m.id}" was used more than once`),o.add(m.id),m.onResize&&a.observe(m.element)});const l=te({group:e}),s=he(e),i=e.panels.map(({id:m})=>m).join(",");let u=e.mutableState.defaultLayout;u&&(Gt(e.panels,u)||(u=void 0));const c=e.mutableState.layouts[i]??u??We(s),h=X({layout:c,panelConstraints:s}),d=e.element.ownerDocument;K.set(d,(K.get(d)??0)+1);const S=new Map;return Ye(e).forEach(m=>{m.separator&&S.set(m.separator,m.panels)}),W(e,{defaultLayoutDeferred:l===0,derivedPanelConstraints:s,groupSize:l,layout:h,separatorToPanels:S}),e.separators.forEach(m=>{P(!r.has(m.id),`Separator ids must be unique; id "${m.id}" was used more than once`),r.add(m.id),m.element.addEventListener("keydown",Oe)}),K.get(d)===1&&(d.addEventListener("contextmenu",De,!0),d.addEventListener("dblclick",je,!0),d.addEventListener("pointerdown",Fe,!0),d.addEventListener("pointerleave",Ae),d.addEventListener("pointermove",Ge),d.addEventListener("pointerout",$e),d.addEventListener("pointerup",Be,!0)),function(){t=!1,K.set(d,Math.max(0,(K.get(d)??0)-1)),Lt(e),e.separators.forEach(m=>{m.element.removeEventListener("keydown",Oe)}),K.get(d)||(d.removeEventListener("contextmenu",De,!0),d.removeEventListener("dblclick",je,!0),d.removeEventListener("pointerdown",Fe,!0),d.removeEventListener("pointerleave",Ae),d.removeEventListener("pointermove",Ge),d.removeEventListener("pointerout",$e),d.removeEventListener("pointerup",Be,!0)),a.disconnect()}}function Bt(){const[e,t]=L.useState({}),n=L.useCallback(()=>t({}),[]);return[e,n]}function Se(e){const t=L.useId();return`${e??t}`}const J=typeof window<"u"?L.useLayoutEffect:L.useEffect;function ae(e){const t=L.useRef(e);return J(()=>{t.current=e},[e]),L.useCallback((...n)=>t.current?.(...n),[t])}function we(...e){return ae(t=>{e.forEach(n=>{if(n)switch(typeof n){case"function":{n(t);break}case"object":{n.current=t;break}}})})}function xe(e){const t=L.useRef({...e});return J(()=>{for(const n in e)t.current[n]=e[n]},[e]),t.current}const rt=L.createContext(null);function Wt(e,t){const n=L.useRef({getLayout:()=>({}),setLayout:Ct});L.useImperativeHandle(t,()=>n.current,[]),J(()=>{Object.assign(n.current,nt({groupId:e}))})}function at({children:e,className:t,defaultLayout:n,disableCursor:o,disabled:r,elementRef:a,groupRef:l,id:s,onLayoutChange:i,onLayoutChanged:u,orientation:c="horizontal",resizeTargetMinimumSize:h={coarse:20,fine:10},style:d,...S}){const m=L.useRef({onLayoutChange:{},onLayoutChanged:{}}),f=ae(w=>{Y(m.current.onLayoutChange,w)||(m.current.onLayoutChange=w,i?.(w))}),g=ae((w,x)=>{Y(m.current.onLayoutChanged,w)||(m.current.onLayoutChanged=w,u?.(w,{isUserInteraction:x}))}),p=Se(s),y=L.useRef(null),[z,b]=Bt(),v=L.useRef({lastExpandedPanelSizes:{},layouts:{},panels:[],resizeTargetMinimumSize:h,separators:[]}),R=we(y,a);Wt(p,l);const E=ae((w,x)=>{const k=U(),C=Me(w),D=H(w);if(D){let N=!1;return k.state==="active"&&(N=k.hitRegions.some(ne=>ne.group===C)),{flexGrow:D.layout[x]??1,pointerEvents:N?"none":void 0}}if(n?.[x])return{flexGrow:n?.[x]}}),M=xe({defaultLayout:n,disableCursor:o}),j=L.useMemo(()=>({get disableCursor(){return!!M.disableCursor},getPanelStyles:E,id:p,orientation:c,registerPanel:w=>{const x=v.current;return x.panels=ge(c,[...x.panels,w]),b(),()=>{x.panels=x.panels.filter(k=>k!==w),b()}},registerSeparator:w=>{const x=v.current;return x.separators=ge(c,[...x.separators,w]),b(),()=>{x.separators=x.separators.filter(k=>k!==w),b()}},updatePanelProps:(w,{disabled:x})=>{const k=v.current.panels.find(N=>N.id===w);k&&(k.panelConstraints.disabled=x);const C=Me(p),D=H(p);C&&D&&W(C,{...D,derivedPanelConstraints:he(C)})},updateSeparatorProps:(w,{disabled:x,disableDoubleClick:k})=>{const C=v.current.separators.find(D=>D.id===w);C&&(C.disabled=x,C.disableDoubleClick=k)}}),[E,p,b,c,M]),G=L.useRef(null);return J(()=>{const w=y.current;if(w===null)return;const x=v.current;let k;if(M.defaultLayout!==void 0&&Object.keys(M.defaultLayout).length===x.panels.length){k={};for(const $ of x.panels){const q=M.defaultLayout[$.id];q!==void 0&&(k[$.id]=q)}}const C={disabled:!!r,element:w,id:p,mutableState:{defaultLayout:k,disableCursor:!!M.disableCursor,expandedPanelSizes:v.current.lastExpandedPanelSizes,layouts:v.current.layouts},orientation:c,panels:x.panels,resizeTargetMinimumSize:x.resizeTargetMinimumSize,separators:x.separators};G.current=C;const D=$t(C),{defaultLayoutDeferred:N,derivedPanelConstraints:ne,layout:se}=H(C.id,!0);!N&&ne.length>0&&(f(se),g(se,!1));const oe=ye(p,$=>{const{defaultLayoutDeferred:q,derivedPanelConstraints:Pe,layout:le}=$.next;if(q||Pe.length===0)return;const lt=C.panels.map(({id:B})=>B).join(",");C.mutableState.layouts[lt]=le,Pe.forEach(B=>{if(B.collapsible){const{layout:fe}=$.prev??{};if(fe){const ct=I(B.collapsedSize,le[B.panelId]),dt=I(B.collapsedSize,fe[B.panelId]);ct&&!dt&&(C.mutableState.expandedPanelSizes[B.panelId]=fe[B.panelId])}}});const ut=U().state!=="active";f(le),ut&&g(le,$.isUserInteraction)});return()=>{G.current=null,D(),oe()}},[r,p,g,f,c,z,M]),L.useEffect(()=>{const w=G.current;w&&(w.mutableState.defaultLayout=n,w.mutableState.disableCursor=!!o)}),A.jsx(rt.Provider,{value:j,children:A.jsx("div",{...S,className:t,"data-group":!0,"data-testid":p,id:p,ref:R,style:{height:"100%",width:"100%",overflow:"hidden",...d,display:"flex",flexDirection:c==="horizontal"?"row":"column",flexWrap:"nowrap",touchAction:c==="horizontal"?"pan-y":"pan-x"},children:e})})}at.displayName="Group";function Ce(){const e=L.useContext(rt);return P(e,"Group Context not found; did you render a Panel or Separator outside of a Group?"),e}function Ht(e,t){const{id:n}=Ce(),o=L.useRef({collapse:pe,expand:pe,getSize:()=>({asPercentage:0,inPixels:0}),isCollapsed:()=>!1,resize:pe});L.useImperativeHandle(t,()=>o.current,[]),J(()=>{Object.assign(o.current,tt({groupId:n,panelId:e}))})}function it({children:e,className:t,collapsedSize:n="0%",collapsible:o=!1,defaultSize:r,disabled:a,elementRef:l,groupResizeBehavior:s="preserve-relative-size",id:i,maxSize:u="100%",minSize:c="0%",onResize:h,panelRef:d,style:S,...m}){const f=!!i,g=Se(i),p=xe({disabled:a}),y=L.useRef(null),z=we(y,l),{getPanelStyles:b,id:v,orientation:R,registerPanel:E,updatePanelProps:M}=Ce(),j=h!==null,G=ae((C,D,N)=>{h?.(C,i,N)});J(()=>{const C=y.current;if(C!==null){const D={element:C,id:g,idIsStable:f,mutableValues:{expandToSize:void 0,prevSize:void 0},onResize:j?G:void 0,panelConstraints:{groupResizeBehavior:s,collapsedSize:n,collapsible:o,defaultSize:r,disabled:p.disabled,maxSize:u,minSize:c}};return E(D)}},[s,n,o,r,j,g,f,u,c,G,E,p]),L.useEffect(()=>{M(g,{disabled:a})},[a,g,M]),Ht(g,d);const w=()=>{const C=b(v,g);if(C)return JSON.stringify(C)},x=L.useSyncExternalStore(C=>ye(v,C),w,w);let k;return x?k=JSON.parse(x):r!==void 0?k={flexGrow:void 0,flexShrink:void 0,flexBasis:r}:k={flexGrow:1},A.jsx("div",{...m,"data-disabled":a||void 0,"data-panel":!0,"data-testid":g,id:g,ref:z,style:{...Vt,display:"flex",flexBasis:0,flexShrink:1,overflow:"visible",...k},children:A.jsx("div",{className:t,style:{maxHeight:"100%",maxWidth:"100%",flexGrow:1,overflow:"auto",...S,touchAction:R==="horizontal"?"pan-y":"pan-x"},children:e})})}it.displayName="Panel";const Vt={minHeight:0,maxHeight:"100%",height:"auto",minWidth:0,maxWidth:"100%",width:"auto",border:"none",borderWidth:0,padding:0,margin:0};function Ut({layout:e,panelConstraints:t,panelId:n,panelIndex:o}){let r,a;const l=e[n],s=t.find(i=>i.panelId===n);if(s){const i=s.maxSize,u=s.collapsible?s.collapsedSize:s.minSize,c=[o,o+1];a=X({layout:ie({delta:u-l,initialLayout:e,panelConstraints:t,pivotIndices:c,prevLayout:e}),panelConstraints:t})[n],r=X({layout:ie({delta:i-l,initialLayout:e,panelConstraints:t,pivotIndices:c,prevLayout:e}),panelConstraints:t})[n]}return{valueControls:n,valueMax:r,valueMin:a,valueNow:l}}function st({children:e,className:t,disabled:n,disableDoubleClick:o,elementRef:r,id:a,style:l,...s}){const i=Se(a),u=xe({disabled:n,disableDoubleClick:o}),[c,h]=L.useState({}),[d,S]=L.useState("inactive"),[m,f]=L.useState(!1),g=L.useRef(null),p=we(g,r),{disableCursor:y,id:z,orientation:b,registerSeparator:v,updateSeparatorProps:R}=Ce(),E=b==="horizontal"?"vertical":"horizontal";J(()=>{const G=g.current;if(G!==null){const w={disabled:u.disabled,disableDoubleClick:u.disableDoubleClick,element:G,id:i},x=v(w),k=wt(D=>{S(D.next.state!=="inactive"&&D.next.hitRegions.some(N=>N.separator===w)?D.next.state:"inactive")}),C=ye(z,D=>{const{derivedPanelConstraints:N,layout:ne,separatorToPanels:se}=D.next,oe=se.get(w);if(oe){const $=oe[0],q=oe.indexOf($);h(Ut({layout:ne,panelConstraints:N,panelId:$.id,panelIndex:q}))}});return()=>{k(),C(),x()}}},[z,i,v,u]),L.useEffect(()=>{R(i,{disabled:n,disableDoubleClick:o})},[n,o,i,R]);let M;n&&!y&&(M="not-allowed");let j;return n?j="disabled":d==="active"?j="active":m?j="focus":j=d,A.jsx("div",{...s,"aria-controls":c.valueControls,"aria-disabled":n||void 0,"aria-orientation":E,"aria-valuemax":c.valueMax,"aria-valuemin":c.valueMin,"aria-valuenow":c.valueNow,children:e,className:t,"data-separator":j,"data-testid":i,id:i,onBlur:()=>f(!1),onFocus:()=>f(!0),ref:p,role:"separator",style:{flexBasis:"auto",cursor:M,...l,flexGrow:0,flexShrink:0,touchAction:"none"},tabIndex:n?void 0:0})}st.displayName="Separator";function _t(e){const t=ve.c(10);let n,o,r;t[0]!==e?({className:n,ref:r,...o}=e,t[0]=e,t[1]=n,t[2]=o,t[3]=r):(n=t[1],o=t[2],r=t[3]);let a;t[4]!==n?(a=He("flex h-full w-full",n),t[4]=n,t[5]=a):a=t[5];let l;return t[6]!==o||t[7]!==r||t[8]!==a?(l=A.jsx(at,{groupRef:r,"data-slot":"resizable-panel-group",className:a,...o}),t[6]=o,t[7]=r,t[8]=a,t[9]=l):l=t[9],l}function Jt(e){const t=ve.c(10);let n,o,r;t[0]!==e?({ref:o,style:r,...n}=e,t[0]=e,t[1]=n,t[2]=o,t[3]=r):(n=t[1],o=t[2],r=t[3]);let a;t[4]!==r?(a={overflow:"hidden",...r},t[4]=r,t[5]=a):a=t[5];let l;return t[6]!==n||t[7]!==o||t[8]!==a?(l=A.jsx(it,{panelRef:o,"data-slot":"resizable-panel",style:a,...n}),t[6]=n,t[7]=o,t[8]=a,t[9]=l):l=t[9],l}function qt(e){const t=ve.c(12);let n,o,r;t[0]!==e?({withHandle:r,className:n,...o}=e,t[0]=e,t[1]=n,t[2]=o,t[3]=r):(n=t[1],o=t[2],r=t[3]);let a;t[4]!==n?(a=He("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",n),t[4]=n,t[5]=a):a=t[5];let l;t[6]!==r?(l=r&&A.jsx("div",{className:"bg-border z-10 flex h-4 w-3 items-center justify-center rounded-xs border",children:A.jsx(ft,{className:"size-2.5"})}),t[6]=r,t[7]=l):l=t[7];let s;return t[8]!==o||t[9]!==a||t[10]!==l?(s=A.jsx(st,{"data-slot":"resizable-handle",className:a,...o,children:l}),t[8]=o,t[9]=a,t[10]=l,t[11]=s):s=t[11],s}export{_t as R,Jt as a,qt as b};
@@ -1 +1 @@
1
- import{h as s,q as c,m as f,r as u,aA as l,b as d,f as m,aB as p,g as k,aC as b,ak as I}from"./agent-icon-DGDGzDPg.js";import{a as $,b as C}from"./ZoomOut-UxLkEy8R.js";import{ab as y}from"./index-CsKm2ubF.js";const e={overview:k,settings:p,automations:m,"site-editor":d,code:l,content:C,assets:$,hosting:y,e2e:u,analytics:f,cdn:c,files:s};function S(n){return n in e}function a(n){const t=b(n);if(t.type==="icon"){const i=I(t.name);return i?{kind:"component",Component:i}:null}return t.type==="url"?{kind:"url",src:t.url}:null}function x(n){if(n.kind==="system")return S(n.tabId)?{kind:"component",Component:e[n.tabId]}:{kind:"fallback"};const t=a(n.iconUrl);if(t)return t;if(!n.appId)return{kind:"fallback"};const i=n.connections.find(r=>r.id===n.appId);if(!i)return{kind:"fallback"};const o=a(i.icon);return o||{kind:"fallback"}}export{x as r};
1
+ import{h as s,q as c,m as f,r as u,aA as l,b as d,f as m,aB as p,g as k,aC as b,ak as I}from"./agent-icon-BhZZd37x.js";import{a as $,b as C}from"./ZoomOut-DFERFVow.js";import{ab as y}from"./index-BSg0zn4o.js";const e={overview:k,settings:p,automations:m,"site-editor":d,code:l,content:C,assets:$,hosting:y,e2e:u,analytics:f,cdn:c,files:s};function S(n){return n in e}function a(n){const t=b(n);if(t.type==="icon"){const i=I(t.name);return i?{kind:"component",Component:i}:null}return t.type==="url"?{kind:"url",src:t.url}:null}function x(n){if(n.kind==="system")return S(n.tabId)?{kind:"component",Component:e[n.tabId]}:{kind:"fallback"};const t=a(n.iconUrl);if(t)return t;if(!n.appId)return{kind:"fallback"};const i=n.connections.find(r=>r.id===n.appId);if(!i)return{kind:"fallback"};const o=a(i.icon);return o||{kind:"fallback"}}export{x as r};
@@ -1 +1 @@
1
- import{c as v,b as _,j as s,ef as E,ee as M,q as fe,t as ie,eg as U,ao as me,Q as ue,E as xe,r as H,B as se,X as pe,aS as he,W as G}from"./index-CsKm2ubF.js";import{I as je}from"./input-BhJziSQi.js";import{S as ce}from"./switch-BhR8nlxD.js";import{g as be,f as ve,b as ye,j as Se,k as _e,e as ke,c as ae,h as Te,d as we,a as Ee,i as Me}from"./UserSquare-CQZbVq0f.js";import{f as Ce,a as de,g as Pe,h as Ke,i as Ne,j as $e}from"./use-organization-settings-C9LFE9dH.js";import{u as Re}from"./use-new-blocks-editor-DRLHOxEJ.js";import{u as Ae}from"./use-connection-hWK0p_4I.js";function Ue(){const e=v.c(13),t=_();let i;e[0]!==t?(i=t("settings.review.title"),e[0]=t,e[1]=i):i=e[1];let l;e[2]!==t?(l=t("settings.review.description"),e[2]=t,e[3]=l):l=e[3];let n;e[4]===Symbol.for("react.memo_cache_sentinel")?(n=s.jsx(S,{flag:"reviewer_enabled",icon:s.jsx(be,{size:16}),titleKey:"settings.review.reviewerTitle",descriptionKey:"settings.review.reviewerDescription"}),e[4]=n):n=e[4];let r;e[5]===Symbol.for("react.memo_cache_sentinel")?(r=s.jsx(S,{flag:"cheap_reviewer_model",icon:s.jsx(ve,{size:16}),titleKey:"settings.review.cheapReviewerModelTitle",descriptionKey:"settings.review.cheapReviewerModelDescription"}),e[5]=r):r=e[5];let o,c;e[6]===Symbol.for("react.memo_cache_sentinel")?(o=s.jsx(S,{flag:"auto_merge",icon:s.jsx(ye,{size:16}),titleKey:"settings.review.autoMergeTitle",descriptionKey:"settings.review.autoMergeDescription"}),c=s.jsx(Ie,{}),e[6]=o,e[7]=c):(o=e[6],c=e[7]);let j;e[8]===Symbol.for("react.memo_cache_sentinel")?(j=s.jsx(S,{flag:"delivery_lanes_enabled",icon:s.jsx(Se,{size:16}),titleKey:"settings.review.deliveryLanesTitle",descriptionKey:"settings.review.deliveryLanesDescription"}),e[8]=j):j=e[8];let f;e[9]===Symbol.for("react.memo_cache_sentinel")?(f=s.jsxs(E,{children:[n,r,o,c,j,s.jsx(S,{flag:"auto_assign_report_tasks_to_super_agent",icon:s.jsx(_e,{size:16}),titleKey:"settings.review.autoAssignReportTasksTitle",descriptionKey:"settings.review.autoAssignReportTasksDescription"})]}),e[9]=f):f=e[9];let a;return e[10]!==i||e[11]!==l?(a=s.jsx(M,{title:i,description:l,children:f}),e[10]=i,e[11]=l,e[12]=a):a=e[12],a}function Xe(){const e=v.c(8),t=_();let i;e[0]!==t?(i=t("settings.agentTools.title"),e[0]=t,e[1]=i):i=e[1];let l;e[2]!==t?(l=t("settings.agentTools.description"),e[2]=t,e[3]=l):l=e[3];let n;e[4]===Symbol.for("react.memo_cache_sentinel")?(n=s.jsxs(E,{children:[s.jsx(S,{flag:"coding_agent_org_mcps",icon:s.jsx(ke,{size:16}),titleKey:"settings.agentTools.orgMcpsTitle",descriptionKey:"settings.agentTools.orgMcpsDescription"}),s.jsx(ze,{})]}),e[4]=n):n=e[4];let r;return e[5]!==i||e[6]!==l?(r=s.jsx(M,{title:i,description:l,children:n}),e[5]=i,e[6]=l,e[7]=r):r=e[7],r}function ze(){const e=v.c(2),t=_();if(!de("coding_agent_org_mcps"))return null;let l;return e[0]!==t?(l=s.jsx(ue,{children:n=>{const{reset:r}=n;return s.jsx(xe,{fallback:o=>{const{resetError:c}=o;return s.jsx(U,{title:t("settings.agentTools.orgMcpsPickTitle"),children:s.jsxs("div",{role:"alert",className:"mt-3 flex items-center gap-2",children:[s.jsx("p",{className:"text-sm text-destructive",children:t("settings.agentTools.orgMcpsPickLoadFailed")}),s.jsx(se,{variant:"outline",size:"sm",onClick:()=>{r(),c()},children:t("common.errorBoundary.tryAgain")})]})})},children:s.jsx(H.Suspense,{fallback:s.jsx(Be,{}),children:s.jsx(Oe,{})})})}}),e[0]=t,e[1]=l):l=e[1],l}function Be(){const e=v.c(5),t=_();let i;e[0]!==t?(i=t("settings.agentTools.orgMcpsPickTitle"),e[0]=t,e[1]=i):i=e[1];let l;e[2]===Symbol.for("react.memo_cache_sentinel")?(l=s.jsx(he,{className:"mt-3 h-24 w-full"}),e[2]=l):l=e[2];let n;return e[3]!==i?(n=s.jsx(U,{title:i,children:l}),e[3]=i,e[4]=n):n=e[4],n}function re(e){return[...e].sort().join("\0")}function De(e,t){return[G.SELF,G.REGISTRY,G.COMMUNITY_REGISTRY,G.DEV_ASSETS,G.REPORTS].some(i=>i(e)===t)}function Oe(){const e=v.c(84),t=_(),{org:i}=pe(),l=Ae(),n=Ne(),r=$e(),[o,c]=H.useState(n);let j;e[0]!==n?(j=re(n),e[0]=n,e[1]=j):j=e[1];const[f,a]=H.useState(j),[d,u]=H.useState("");let y;e[2]!==n?(y=re(n),e[2]=n,e[3]=y):y=e[3];const x=y;f!==x&&(a(x),c(n));let p,h,m,C,b;if(e[4]!==l||e[5]!==o||e[6]!==i||e[7]!==d||e[8]!==x){let g;e[14]!==i?(g=T=>!De(i.id,T.id),e[14]=i,e[15]=g):g=e[15],m=l.filter(g);const k=d.trim().toLowerCase();b=k?m.filter(T=>`${T.title} ${T.slug??""}`.toLowerCase().includes(k)):m;let w;e[16]!==o?(w=new Set(o),e[16]=o,e[17]=w):w=e[17],h=w,p=re(o.filter(T=>m.some(ge=>ge.id===T)))!==x,C=b.length>0&&b.every(T=>!h.has(T.id)),e[4]=l,e[5]=o,e[6]=i,e[7]=d,e[8]=x,e[9]=p,e[10]=h,e[11]=m,e[12]=C,e[13]=b}else p=e[9],h=e[10],m=e[11],C=e[12],b=e[13];const P=C;let X;e[18]!==o?(X=(g,k)=>{const w=new Set(g);c(k?o.filter(T=>!w.has(T)):[...new Set([...o,...g])])},e[18]=o,e[19]=X):X=e[19];const K=X;let J;e[20]!==o||e[21]!==m||e[22]!==r||e[23]!==t?(J=()=>r.mutate(o.filter(g=>m.some(k=>k.id===g)),{onSuccess:()=>ie.success(t("settings.agentTools.orgMcpsPickSaved")),onError:()=>ie.error(t("settings.agentTools.orgMcpsPickFailed"))}),e[20]=o,e[21]=m,e[22]=r,e[23]=t,e[24]=J):J=e[24];const le=J;let N;e[25]!==t?(N=t("settings.agentTools.orgMcpsPickTitle"),e[25]=t,e[26]=N):N=e[26];let $;e[27]!==t?($=t("settings.agentTools.orgMcpsPickDescription"),e[27]=t,e[28]=$):$=e[28];let Z;e[29]===Symbol.for("react.memo_cache_sentinel")?(Z=s.jsx(Me,{size:14,className:"pointer-events-none absolute left-2.5 top-1/2 -translate-y-1/2 text-muted-foreground"}),e[29]=Z):Z=e[29];let ee;e[30]===Symbol.for("react.memo_cache_sentinel")?(ee=g=>u(g.target.value),e[30]=ee):ee=e[30];let R;e[31]!==t?(R=t("settings.agentTools.orgMcpsPickSearch"),e[31]=t,e[32]=R):R=e[32];let A;e[33]!==t?(A=t("settings.agentTools.orgMcpsPickSearch"),e[33]=t,e[34]=A):A=e[34];let z;e[35]!==d||e[36]!==A||e[37]!==R?(z=s.jsxs("div",{className:"relative flex-1",children:[Z,s.jsx(je,{value:d,onChange:ee,placeholder:R,"aria-label":A,className:"h-8 pl-8 text-xs"})]}),e[35]=d,e[36]=A,e[37]=R,e[38]=z):z=e[38];const ne=b.length===0;let B;e[39]!==P||e[40]!==K||e[41]!==b?(B=()=>K(b.map(Fe),!P),e[39]=P,e[40]=K,e[41]=b,e[42]=B):B=e[42];let D;e[43]!==P||e[44]!==t?(D=t(P?"settings.agentTools.orgMcpsPickDisableAll":"settings.agentTools.orgMcpsPickEnableAll"),e[43]=P,e[44]=t,e[45]=D):D=e[45];let O;e[46]!==ne||e[47]!==B||e[48]!==D?(O=s.jsx(se,{variant:"outline",size:"sm",className:"shrink-0",disabled:ne,onClick:B,children:D}),e[46]=ne,e[47]=B,e[48]=D,e[49]=O):O=e[49];let F;e[50]!==z||e[51]!==O?(F=s.jsxs("div",{className:"flex items-center gap-2",children:[z,O]}),e[50]=z,e[51]=O,e[52]=F):F=e[52];let L;e[53]!==h||e[54]!==m.length||e[55]!==K||e[56]!==t||e[57]!==b?(L=m.length===0?s.jsx("p",{className:"p-3 text-xs text-muted-foreground",children:t("settings.agentTools.orgMcpsPickEmpty")}):b.length===0?s.jsx("p",{className:"p-3 text-xs text-muted-foreground",children:t("settings.agentTools.orgMcpsPickNoMatch")}):b.map(g=>{const k=g.title||g.id;return s.jsxs("div",{className:"flex items-center justify-between gap-3 px-3 py-2",children:[s.jsxs("div",{className:"flex min-w-0 items-center gap-2.5",children:[s.jsx(Le,{icon:g.icon,title:k}),s.jsxs("div",{className:"flex min-w-0 flex-col",children:[s.jsx("span",{className:"truncate text-sm leading-tight",children:k}),g.slug&&s.jsx("span",{className:"truncate text-xs text-muted-foreground",children:g.slug})]})]}),s.jsx(ce,{checked:!h.has(g.id),"aria-label":t("settings.agentTools.orgMcpsPickAriaLabel",{name:k}),onCheckedChange:w=>K([g.id],w)})]},g.id)}),e[53]=h,e[54]=m.length,e[55]=K,e[56]=t,e[57]=b,e[58]=L):L=e[58];let I;e[59]!==L?(I=s.jsx("div",{className:"max-h-64 overflow-y-auto rounded-xl border border-border divide-y divide-border",children:L}),e[59]=L,e[60]=I):I=e[60];const oe=!p||r.isPending;let V;e[61]!==r.isPending||e[62]!==t?(V=r.isPending?t("settings.agentTools.orgMcpsPickSaving"):t("settings.agentTools.orgMcpsPickSave"),e[61]=r.isPending,e[62]=t,e[63]=V):V=e[63];let W;e[64]!==le||e[65]!==oe||e[66]!==V?(W=s.jsx(se,{size:"sm",disabled:oe,onClick:le,children:V}),e[64]=le,e[65]=oe,e[66]=V,e[67]=W):W=e[67];let Q;e[68]!==p||e[69]!==n||e[70]!==r.isPending||e[71]!==t?(Q=p&&s.jsx(se,{variant:"ghost",size:"sm",disabled:r.isPending,onClick:()=>c(n),children:t("settings.agentTools.orgMcpsPickDiscard")}),e[68]=p,e[69]=n,e[70]=r.isPending,e[71]=t,e[72]=Q):Q=e[72];let Y;e[73]!==W||e[74]!==Q?(Y=s.jsxs("div",{className:"flex items-center gap-2",children:[W,Q]}),e[73]=W,e[74]=Q,e[75]=Y):Y=e[75];let q;e[76]!==F||e[77]!==I||e[78]!==Y?(q=s.jsxs("div",{className:"mt-3 flex w-full flex-col gap-2",children:[F,I,Y]}),e[76]=F,e[77]=I,e[78]=Y,e[79]=q):q=e[79];let te;return e[80]!==q||e[81]!==N||e[82]!==$?(te=s.jsx(U,{title:N,description:$,children:q}),e[80]=q,e[81]=N,e[82]=$,e[83]=te):te=e[83],te}function Fe(e){return e.id}function Le(e){const t=v.c(4),{icon:i,title:l}=e,[n,r]=H.useState(!1);let o;return t[0]!==n||t[1]!==i||t[2]!==l?(o=s.jsx("div",{className:"flex size-7 shrink-0 items-center justify-center overflow-hidden rounded-md border border-border bg-muted/20",children:i&&!n?s.jsx("img",{src:i,alt:"",loading:"lazy",className:"h-full w-full object-cover",onError:()=>r(!0)}):s.jsx("span",{className:"text-[10px] font-semibold text-muted-foreground",children:l.charAt(0).toUpperCase()})}),t[0]=n,t[1]=i,t[2]=l,t[3]=o):o=t[3],o}function Je(){const e=v.c(5),t=_();let i;e[0]!==t?(i=t("sidebar.agentsSection.codeAgents"),e[0]=t,e[1]=i):i=e[1];let l;e[2]===Symbol.for("react.memo_cache_sentinel")?(l=s.jsx(E,{children:s.jsx(S,{flag:"coding_agents_claude_code",icon:s.jsx(ae,{size:16}),titleKey:"settings.agentTools.codingAgentsClaudeCodeTitle",descriptionKey:"settings.agentTools.codingAgentsClaudeCodeDescription"})}),e[2]=l):l=e[2];let n;return e[3]!==i?(n=s.jsx(M,{title:i,children:l}),e[3]=i,e[4]=n):n=e[4],n}function Ze(){const e=v.c(5),t=_();let i;e[0]!==t?(i=t("settings.agentTools.chatRuntimeSection"),e[0]=t,e[1]=i):i=e[1];let l;e[2]===Symbol.for("react.memo_cache_sentinel")?(l=s.jsx(E,{children:s.jsx(S,{flag:"chat_harness_sandbox_only",icon:s.jsx(ae,{size:16}),titleKey:"settings.agentTools.chatHarnessSandboxOnlyTitle",descriptionKey:"settings.agentTools.chatHarnessSandboxOnlyDescription"})}),e[2]=l):l=e[2];let n;return e[3]!==i?(n=s.jsx(M,{title:i,children:l}),e[3]=i,e[4]=n):n=e[4],n}function et(){const e=v.c(5),t=_();let i;e[0]!==t?(i=t("settings.voice.title"),e[0]=t,e[1]=i):i=e[1];let l;e[2]===Symbol.for("react.memo_cache_sentinel")?(l=s.jsx(E,{children:s.jsx(S,{flag:"voice_mode",icon:s.jsx(Te,{size:16}),titleKey:"settings.voice.title",descriptionKey:"settings.voice.description"})}),e[2]=l):l=e[2];let n;return e[3]!==i?(n=s.jsx(M,{title:i,children:l}),e[3]=i,e[4]=n):n=e[4],n}function tt(){const e=v.c(5),t=_();let i;e[0]!==t?(i=t("settings.blogBlocks.sectionTitle"),e[0]=t,e[1]=i):i=e[1];let l;e[2]===Symbol.for("react.memo_cache_sentinel")?(l=s.jsx(E,{children:s.jsx(S,{flag:"hide_default_blog_blocks",icon:s.jsx(we,{size:16}),titleKey:"settings.blogBlocks.title",descriptionKey:"settings.blogBlocks.description"})}),e[2]=l):l=e[2];let n;return e[3]!==i?(n=s.jsx(M,{title:i,children:l}),e[3]=i,e[4]=n):n=e[4],n}function st(){const e=v.c(24),t=_(),i=Re(),l=Ce();let n;e[0]!==t?(n=t("sidebar.projectNav.siteEditor"),e[0]=t,e[1]=n):n=e[1];let r;e[2]===Symbol.for("react.memo_cache_sentinel")?(r=s.jsx(Ee,{size:16}),e[2]=r):r=e[2];let o;e[3]!==t?(o=t("settings.blocksEditor.title"),e[3]=t,e[4]=o):o=e[4];let c;e[5]!==t?(c=t("settings.blocksEditor.description"),e[5]=t,e[6]=c):c=e[6];const j=l.isPending;let f;e[7]!==t?(f=t("settings.blocksEditor.title"),e[7]=t,e[8]=f):f=e[8];let a;e[9]!==l||e[10]!==t?(a=x=>{fe("preferences_blocks_editor_toggled",{enabled:x}),l.mutate(x,{onError:()=>ie.error(t("settings.review.updateError"))})},e[9]=l,e[10]=t,e[11]=a):a=e[11];let d;e[12]!==i||e[13]!==l.isPending||e[14]!==f||e[15]!==a?(d=s.jsx(ce,{checked:i,disabled:j,"aria-label":f,onCheckedChange:a}),e[12]=i,e[13]=l.isPending,e[14]=f,e[15]=a,e[16]=d):d=e[16];let u;e[17]!==o||e[18]!==c||e[19]!==d?(u=s.jsx(E,{children:s.jsx(U,{icon:r,title:o,description:c,action:d})}),e[17]=o,e[18]=c,e[19]=d,e[20]=u):u=e[20];let y;return e[21]!==n||e[22]!==u?(y=s.jsx(M,{title:n,children:u}),e[21]=n,e[22]=u,e[23]=y):y=e[23],y}function Ie(){const e=v.c(3),t=Pe();let i;e[0]===Symbol.for("react.memo_cache_sentinel")?(i=s.jsx(me,{size:16}),e[0]=i):i=e[0];let l;return e[1]!==t?(l=s.jsx(S,{flag:"auto_resolve_conflicts",icon:i,titleKey:"settings.review.autoResolveConflictsTitle",descriptionKey:"settings.review.autoResolveConflictsDescription",enabled:t}),e[1]=t,e[2]=l):l=e[2],l}function S(e){const t=v.c(23),{flag:i,icon:l,titleKey:n,descriptionKey:r,enabled:o}=e,c=_(),j=de(i),f=o??j,a=Ke();let d;t[0]!==c||t[1]!==n?(d=c(n),t[0]=c,t[1]=n,t[2]=d):d=t[2];let u;t[3]!==r||t[4]!==c?(u=c(r),t[3]=r,t[4]=c,t[5]=u):u=t[5];const y=a.isPending;let x;t[6]!==c||t[7]!==n?(x=c(n),t[6]=c,t[7]=n,t[8]=x):x=t[8];let p;t[9]!==i||t[10]!==a||t[11]!==c?(p=C=>a.mutate(i,C,{onError:()=>ie.error(c("settings.review.updateError"))}),t[9]=i,t[10]=a,t[11]=c,t[12]=p):p=t[12];let h;t[13]!==f||t[14]!==a.isPending||t[15]!==x||t[16]!==p?(h=s.jsx(ce,{checked:f,disabled:y,"aria-label":x,onCheckedChange:p}),t[13]=f,t[14]=a.isPending,t[15]=x,t[16]=p,t[17]=h):h=t[17];let m;return t[18]!==l||t[19]!==d||t[20]!==u||t[21]!==h?(m=s.jsx(U,{icon:l,title:d,description:u,action:h}),t[18]=l,t[19]=d,t[20]=u,t[21]=h,t[22]=m):m=t[22],m}export{Xe as A,tt as B,Ze as C,Ue as R,et as V,Je as a,st as b};
1
+ import{c as v,b as _,j as s,ef as E,ee as M,q as fe,t as ie,eg as U,ao as me,Q as ue,E as xe,r as H,B as se,X as pe,aS as he,W as G}from"./index-BSg0zn4o.js";import{I as je}from"./input-DyRkn4pn.js";import{S as ce}from"./switch-DcSUAA1j.js";import{g as be,f as ve,b as ye,j as Se,k as _e,e as ke,c as ae,h as Te,d as we,a as Ee,i as Me}from"./UserSquare-DJ8hiuYq.js";import{f as Ce,a as de,g as Pe,h as Ke,i as Ne,j as $e}from"./use-organization-settings-DZQdd38B.js";import{u as Re}from"./use-new-blocks-editor-0oELLtma.js";import{u as Ae}from"./use-connection-KD1C-9SB.js";function Ue(){const e=v.c(13),t=_();let i;e[0]!==t?(i=t("settings.review.title"),e[0]=t,e[1]=i):i=e[1];let l;e[2]!==t?(l=t("settings.review.description"),e[2]=t,e[3]=l):l=e[3];let n;e[4]===Symbol.for("react.memo_cache_sentinel")?(n=s.jsx(S,{flag:"reviewer_enabled",icon:s.jsx(be,{size:16}),titleKey:"settings.review.reviewerTitle",descriptionKey:"settings.review.reviewerDescription"}),e[4]=n):n=e[4];let r;e[5]===Symbol.for("react.memo_cache_sentinel")?(r=s.jsx(S,{flag:"cheap_reviewer_model",icon:s.jsx(ve,{size:16}),titleKey:"settings.review.cheapReviewerModelTitle",descriptionKey:"settings.review.cheapReviewerModelDescription"}),e[5]=r):r=e[5];let o,c;e[6]===Symbol.for("react.memo_cache_sentinel")?(o=s.jsx(S,{flag:"auto_merge",icon:s.jsx(ye,{size:16}),titleKey:"settings.review.autoMergeTitle",descriptionKey:"settings.review.autoMergeDescription"}),c=s.jsx(Ie,{}),e[6]=o,e[7]=c):(o=e[6],c=e[7]);let j;e[8]===Symbol.for("react.memo_cache_sentinel")?(j=s.jsx(S,{flag:"delivery_lanes_enabled",icon:s.jsx(Se,{size:16}),titleKey:"settings.review.deliveryLanesTitle",descriptionKey:"settings.review.deliveryLanesDescription"}),e[8]=j):j=e[8];let f;e[9]===Symbol.for("react.memo_cache_sentinel")?(f=s.jsxs(E,{children:[n,r,o,c,j,s.jsx(S,{flag:"auto_assign_report_tasks_to_super_agent",icon:s.jsx(_e,{size:16}),titleKey:"settings.review.autoAssignReportTasksTitle",descriptionKey:"settings.review.autoAssignReportTasksDescription"})]}),e[9]=f):f=e[9];let a;return e[10]!==i||e[11]!==l?(a=s.jsx(M,{title:i,description:l,children:f}),e[10]=i,e[11]=l,e[12]=a):a=e[12],a}function Xe(){const e=v.c(8),t=_();let i;e[0]!==t?(i=t("settings.agentTools.title"),e[0]=t,e[1]=i):i=e[1];let l;e[2]!==t?(l=t("settings.agentTools.description"),e[2]=t,e[3]=l):l=e[3];let n;e[4]===Symbol.for("react.memo_cache_sentinel")?(n=s.jsxs(E,{children:[s.jsx(S,{flag:"coding_agent_org_mcps",icon:s.jsx(ke,{size:16}),titleKey:"settings.agentTools.orgMcpsTitle",descriptionKey:"settings.agentTools.orgMcpsDescription"}),s.jsx(ze,{})]}),e[4]=n):n=e[4];let r;return e[5]!==i||e[6]!==l?(r=s.jsx(M,{title:i,description:l,children:n}),e[5]=i,e[6]=l,e[7]=r):r=e[7],r}function ze(){const e=v.c(2),t=_();if(!de("coding_agent_org_mcps"))return null;let l;return e[0]!==t?(l=s.jsx(ue,{children:n=>{const{reset:r}=n;return s.jsx(xe,{fallback:o=>{const{resetError:c}=o;return s.jsx(U,{title:t("settings.agentTools.orgMcpsPickTitle"),children:s.jsxs("div",{role:"alert",className:"mt-3 flex items-center gap-2",children:[s.jsx("p",{className:"text-sm text-destructive",children:t("settings.agentTools.orgMcpsPickLoadFailed")}),s.jsx(se,{variant:"outline",size:"sm",onClick:()=>{r(),c()},children:t("common.errorBoundary.tryAgain")})]})})},children:s.jsx(H.Suspense,{fallback:s.jsx(Be,{}),children:s.jsx(Oe,{})})})}}),e[0]=t,e[1]=l):l=e[1],l}function Be(){const e=v.c(5),t=_();let i;e[0]!==t?(i=t("settings.agentTools.orgMcpsPickTitle"),e[0]=t,e[1]=i):i=e[1];let l;e[2]===Symbol.for("react.memo_cache_sentinel")?(l=s.jsx(he,{className:"mt-3 h-24 w-full"}),e[2]=l):l=e[2];let n;return e[3]!==i?(n=s.jsx(U,{title:i,children:l}),e[3]=i,e[4]=n):n=e[4],n}function re(e){return[...e].sort().join("\0")}function De(e,t){return[G.SELF,G.REGISTRY,G.COMMUNITY_REGISTRY,G.DEV_ASSETS,G.REPORTS].some(i=>i(e)===t)}function Oe(){const e=v.c(84),t=_(),{org:i}=pe(),l=Ae(),n=Ne(),r=$e(),[o,c]=H.useState(n);let j;e[0]!==n?(j=re(n),e[0]=n,e[1]=j):j=e[1];const[f,a]=H.useState(j),[d,u]=H.useState("");let y;e[2]!==n?(y=re(n),e[2]=n,e[3]=y):y=e[3];const x=y;f!==x&&(a(x),c(n));let p,h,m,C,b;if(e[4]!==l||e[5]!==o||e[6]!==i||e[7]!==d||e[8]!==x){let g;e[14]!==i?(g=T=>!De(i.id,T.id),e[14]=i,e[15]=g):g=e[15],m=l.filter(g);const k=d.trim().toLowerCase();b=k?m.filter(T=>`${T.title} ${T.slug??""}`.toLowerCase().includes(k)):m;let w;e[16]!==o?(w=new Set(o),e[16]=o,e[17]=w):w=e[17],h=w,p=re(o.filter(T=>m.some(ge=>ge.id===T)))!==x,C=b.length>0&&b.every(T=>!h.has(T.id)),e[4]=l,e[5]=o,e[6]=i,e[7]=d,e[8]=x,e[9]=p,e[10]=h,e[11]=m,e[12]=C,e[13]=b}else p=e[9],h=e[10],m=e[11],C=e[12],b=e[13];const P=C;let X;e[18]!==o?(X=(g,k)=>{const w=new Set(g);c(k?o.filter(T=>!w.has(T)):[...new Set([...o,...g])])},e[18]=o,e[19]=X):X=e[19];const K=X;let J;e[20]!==o||e[21]!==m||e[22]!==r||e[23]!==t?(J=()=>r.mutate(o.filter(g=>m.some(k=>k.id===g)),{onSuccess:()=>ie.success(t("settings.agentTools.orgMcpsPickSaved")),onError:()=>ie.error(t("settings.agentTools.orgMcpsPickFailed"))}),e[20]=o,e[21]=m,e[22]=r,e[23]=t,e[24]=J):J=e[24];const le=J;let N;e[25]!==t?(N=t("settings.agentTools.orgMcpsPickTitle"),e[25]=t,e[26]=N):N=e[26];let $;e[27]!==t?($=t("settings.agentTools.orgMcpsPickDescription"),e[27]=t,e[28]=$):$=e[28];let Z;e[29]===Symbol.for("react.memo_cache_sentinel")?(Z=s.jsx(Me,{size:14,className:"pointer-events-none absolute left-2.5 top-1/2 -translate-y-1/2 text-muted-foreground"}),e[29]=Z):Z=e[29];let ee;e[30]===Symbol.for("react.memo_cache_sentinel")?(ee=g=>u(g.target.value),e[30]=ee):ee=e[30];let R;e[31]!==t?(R=t("settings.agentTools.orgMcpsPickSearch"),e[31]=t,e[32]=R):R=e[32];let A;e[33]!==t?(A=t("settings.agentTools.orgMcpsPickSearch"),e[33]=t,e[34]=A):A=e[34];let z;e[35]!==d||e[36]!==A||e[37]!==R?(z=s.jsxs("div",{className:"relative flex-1",children:[Z,s.jsx(je,{value:d,onChange:ee,placeholder:R,"aria-label":A,className:"h-8 pl-8 text-xs"})]}),e[35]=d,e[36]=A,e[37]=R,e[38]=z):z=e[38];const ne=b.length===0;let B;e[39]!==P||e[40]!==K||e[41]!==b?(B=()=>K(b.map(Fe),!P),e[39]=P,e[40]=K,e[41]=b,e[42]=B):B=e[42];let D;e[43]!==P||e[44]!==t?(D=t(P?"settings.agentTools.orgMcpsPickDisableAll":"settings.agentTools.orgMcpsPickEnableAll"),e[43]=P,e[44]=t,e[45]=D):D=e[45];let O;e[46]!==ne||e[47]!==B||e[48]!==D?(O=s.jsx(se,{variant:"outline",size:"sm",className:"shrink-0",disabled:ne,onClick:B,children:D}),e[46]=ne,e[47]=B,e[48]=D,e[49]=O):O=e[49];let F;e[50]!==z||e[51]!==O?(F=s.jsxs("div",{className:"flex items-center gap-2",children:[z,O]}),e[50]=z,e[51]=O,e[52]=F):F=e[52];let L;e[53]!==h||e[54]!==m.length||e[55]!==K||e[56]!==t||e[57]!==b?(L=m.length===0?s.jsx("p",{className:"p-3 text-xs text-muted-foreground",children:t("settings.agentTools.orgMcpsPickEmpty")}):b.length===0?s.jsx("p",{className:"p-3 text-xs text-muted-foreground",children:t("settings.agentTools.orgMcpsPickNoMatch")}):b.map(g=>{const k=g.title||g.id;return s.jsxs("div",{className:"flex items-center justify-between gap-3 px-3 py-2",children:[s.jsxs("div",{className:"flex min-w-0 items-center gap-2.5",children:[s.jsx(Le,{icon:g.icon,title:k}),s.jsxs("div",{className:"flex min-w-0 flex-col",children:[s.jsx("span",{className:"truncate text-sm leading-tight",children:k}),g.slug&&s.jsx("span",{className:"truncate text-xs text-muted-foreground",children:g.slug})]})]}),s.jsx(ce,{checked:!h.has(g.id),"aria-label":t("settings.agentTools.orgMcpsPickAriaLabel",{name:k}),onCheckedChange:w=>K([g.id],w)})]},g.id)}),e[53]=h,e[54]=m.length,e[55]=K,e[56]=t,e[57]=b,e[58]=L):L=e[58];let I;e[59]!==L?(I=s.jsx("div",{className:"max-h-64 overflow-y-auto rounded-xl border border-border divide-y divide-border",children:L}),e[59]=L,e[60]=I):I=e[60];const oe=!p||r.isPending;let V;e[61]!==r.isPending||e[62]!==t?(V=r.isPending?t("settings.agentTools.orgMcpsPickSaving"):t("settings.agentTools.orgMcpsPickSave"),e[61]=r.isPending,e[62]=t,e[63]=V):V=e[63];let W;e[64]!==le||e[65]!==oe||e[66]!==V?(W=s.jsx(se,{size:"sm",disabled:oe,onClick:le,children:V}),e[64]=le,e[65]=oe,e[66]=V,e[67]=W):W=e[67];let Q;e[68]!==p||e[69]!==n||e[70]!==r.isPending||e[71]!==t?(Q=p&&s.jsx(se,{variant:"ghost",size:"sm",disabled:r.isPending,onClick:()=>c(n),children:t("settings.agentTools.orgMcpsPickDiscard")}),e[68]=p,e[69]=n,e[70]=r.isPending,e[71]=t,e[72]=Q):Q=e[72];let Y;e[73]!==W||e[74]!==Q?(Y=s.jsxs("div",{className:"flex items-center gap-2",children:[W,Q]}),e[73]=W,e[74]=Q,e[75]=Y):Y=e[75];let q;e[76]!==F||e[77]!==I||e[78]!==Y?(q=s.jsxs("div",{className:"mt-3 flex w-full flex-col gap-2",children:[F,I,Y]}),e[76]=F,e[77]=I,e[78]=Y,e[79]=q):q=e[79];let te;return e[80]!==q||e[81]!==N||e[82]!==$?(te=s.jsx(U,{title:N,description:$,children:q}),e[80]=q,e[81]=N,e[82]=$,e[83]=te):te=e[83],te}function Fe(e){return e.id}function Le(e){const t=v.c(4),{icon:i,title:l}=e,[n,r]=H.useState(!1);let o;return t[0]!==n||t[1]!==i||t[2]!==l?(o=s.jsx("div",{className:"flex size-7 shrink-0 items-center justify-center overflow-hidden rounded-md border border-border bg-muted/20",children:i&&!n?s.jsx("img",{src:i,alt:"",loading:"lazy",className:"h-full w-full object-cover",onError:()=>r(!0)}):s.jsx("span",{className:"text-[10px] font-semibold text-muted-foreground",children:l.charAt(0).toUpperCase()})}),t[0]=n,t[1]=i,t[2]=l,t[3]=o):o=t[3],o}function Je(){const e=v.c(5),t=_();let i;e[0]!==t?(i=t("sidebar.agentsSection.codeAgents"),e[0]=t,e[1]=i):i=e[1];let l;e[2]===Symbol.for("react.memo_cache_sentinel")?(l=s.jsx(E,{children:s.jsx(S,{flag:"coding_agents_claude_code",icon:s.jsx(ae,{size:16}),titleKey:"settings.agentTools.codingAgentsClaudeCodeTitle",descriptionKey:"settings.agentTools.codingAgentsClaudeCodeDescription"})}),e[2]=l):l=e[2];let n;return e[3]!==i?(n=s.jsx(M,{title:i,children:l}),e[3]=i,e[4]=n):n=e[4],n}function Ze(){const e=v.c(5),t=_();let i;e[0]!==t?(i=t("settings.agentTools.chatRuntimeSection"),e[0]=t,e[1]=i):i=e[1];let l;e[2]===Symbol.for("react.memo_cache_sentinel")?(l=s.jsx(E,{children:s.jsx(S,{flag:"chat_harness_sandbox_only",icon:s.jsx(ae,{size:16}),titleKey:"settings.agentTools.chatHarnessSandboxOnlyTitle",descriptionKey:"settings.agentTools.chatHarnessSandboxOnlyDescription"})}),e[2]=l):l=e[2];let n;return e[3]!==i?(n=s.jsx(M,{title:i,children:l}),e[3]=i,e[4]=n):n=e[4],n}function et(){const e=v.c(5),t=_();let i;e[0]!==t?(i=t("settings.voice.title"),e[0]=t,e[1]=i):i=e[1];let l;e[2]===Symbol.for("react.memo_cache_sentinel")?(l=s.jsx(E,{children:s.jsx(S,{flag:"voice_mode",icon:s.jsx(Te,{size:16}),titleKey:"settings.voice.title",descriptionKey:"settings.voice.description"})}),e[2]=l):l=e[2];let n;return e[3]!==i?(n=s.jsx(M,{title:i,children:l}),e[3]=i,e[4]=n):n=e[4],n}function tt(){const e=v.c(5),t=_();let i;e[0]!==t?(i=t("settings.blogBlocks.sectionTitle"),e[0]=t,e[1]=i):i=e[1];let l;e[2]===Symbol.for("react.memo_cache_sentinel")?(l=s.jsx(E,{children:s.jsx(S,{flag:"hide_default_blog_blocks",icon:s.jsx(we,{size:16}),titleKey:"settings.blogBlocks.title",descriptionKey:"settings.blogBlocks.description"})}),e[2]=l):l=e[2];let n;return e[3]!==i?(n=s.jsx(M,{title:i,children:l}),e[3]=i,e[4]=n):n=e[4],n}function st(){const e=v.c(24),t=_(),i=Re(),l=Ce();let n;e[0]!==t?(n=t("sidebar.projectNav.siteEditor"),e[0]=t,e[1]=n):n=e[1];let r;e[2]===Symbol.for("react.memo_cache_sentinel")?(r=s.jsx(Ee,{size:16}),e[2]=r):r=e[2];let o;e[3]!==t?(o=t("settings.blocksEditor.title"),e[3]=t,e[4]=o):o=e[4];let c;e[5]!==t?(c=t("settings.blocksEditor.description"),e[5]=t,e[6]=c):c=e[6];const j=l.isPending;let f;e[7]!==t?(f=t("settings.blocksEditor.title"),e[7]=t,e[8]=f):f=e[8];let a;e[9]!==l||e[10]!==t?(a=x=>{fe("preferences_blocks_editor_toggled",{enabled:x}),l.mutate(x,{onError:()=>ie.error(t("settings.review.updateError"))})},e[9]=l,e[10]=t,e[11]=a):a=e[11];let d;e[12]!==i||e[13]!==l.isPending||e[14]!==f||e[15]!==a?(d=s.jsx(ce,{checked:i,disabled:j,"aria-label":f,onCheckedChange:a}),e[12]=i,e[13]=l.isPending,e[14]=f,e[15]=a,e[16]=d):d=e[16];let u;e[17]!==o||e[18]!==c||e[19]!==d?(u=s.jsx(E,{children:s.jsx(U,{icon:r,title:o,description:c,action:d})}),e[17]=o,e[18]=c,e[19]=d,e[20]=u):u=e[20];let y;return e[21]!==n||e[22]!==u?(y=s.jsx(M,{title:n,children:u}),e[21]=n,e[22]=u,e[23]=y):y=e[23],y}function Ie(){const e=v.c(3),t=Pe();let i;e[0]===Symbol.for("react.memo_cache_sentinel")?(i=s.jsx(me,{size:16}),e[0]=i):i=e[0];let l;return e[1]!==t?(l=s.jsx(S,{flag:"auto_resolve_conflicts",icon:i,titleKey:"settings.review.autoResolveConflictsTitle",descriptionKey:"settings.review.autoResolveConflictsDescription",enabled:t}),e[1]=t,e[2]=l):l=e[2],l}function S(e){const t=v.c(23),{flag:i,icon:l,titleKey:n,descriptionKey:r,enabled:o}=e,c=_(),j=de(i),f=o??j,a=Ke();let d;t[0]!==c||t[1]!==n?(d=c(n),t[0]=c,t[1]=n,t[2]=d):d=t[2];let u;t[3]!==r||t[4]!==c?(u=c(r),t[3]=r,t[4]=c,t[5]=u):u=t[5];const y=a.isPending;let x;t[6]!==c||t[7]!==n?(x=c(n),t[6]=c,t[7]=n,t[8]=x):x=t[8];let p;t[9]!==i||t[10]!==a||t[11]!==c?(p=C=>a.mutate(i,C,{onError:()=>ie.error(c("settings.review.updateError"))}),t[9]=i,t[10]=a,t[11]=c,t[12]=p):p=t[12];let h;t[13]!==f||t[14]!==a.isPending||t[15]!==x||t[16]!==p?(h=s.jsx(ce,{checked:f,disabled:y,"aria-label":x,onCheckedChange:p}),t[13]=f,t[14]=a.isPending,t[15]=x,t[16]=p,t[17]=h):h=t[17];let m;return t[18]!==l||t[19]!==d||t[20]!==u||t[21]!==h?(m=s.jsx(U,{icon:l,title:d,description:u,action:h}),t[18]=l,t[19]=d,t[20]=u,t[21]=h,t[22]=m):m=t[22],m}export{Xe as A,tt as B,Ze as C,Ue as R,et as V,Je as a,st as b};
@@ -1 +1 @@
1
- import{r as x,dZ as se,c as H,l as F,j as v,b as he}from"./index-CsKm2ubF.js";import{e as me,f as Ie,g as ye,i as Ce,C as ie,h as ae,j as Se,k as j,d as Re,l as we,m as ke,s as De,n as Le,o as Te}from"./core.esm-BND19H8a.js";import{i as Ee}from"./Check-ChBZV9OV.js";import{i as re}from"./Link01-DZVgeeWe.js";import{s as je}from"./Trash01-C4sE_NGv.js";function le(t,e,r){const n=t.slice();return n.splice(r<0?n.length+r:r,0,n.splice(e,1)[0]),n}function Ae(t,e){return t.reduce((r,n,i)=>{const s=e.get(n);return s&&(r[i]=s),r},Array(t.length))}function X(t){return t!==null&&t>=0}function Ne(t,e){if(t===e)return!0;if(t.length!==e.length)return!1;for(let r=0;r<t.length;r++)if(t[r]!==e[r])return!1;return!0}function _e(t){return typeof t=="boolean"?{draggable:t,droppable:t}:t}const ce=t=>{let{rects:e,activeIndex:r,overIndex:n,index:i}=t;const s=le(e,n,r),a=e[i],o=s[i];return!o||!a?null:{x:o.left-a.left,y:o.top-a.top,scaleX:o.width/a.width,scaleY:o.height/a.height}},q={scaleX:1,scaleY:1},ot=t=>{var e;let{activeIndex:r,activeNodeRect:n,index:i,rects:s,overIndex:a}=t;const o=(e=s[r])!=null?e:n;if(!o)return null;if(i===r){const d=s[a];return d?{x:0,y:r<a?d.top+d.height-(o.top+o.height):d.top-o.top,...q}:null}const l=Oe(s,i,r);return i>r&&i<=a?{x:0,y:-o.height-l,...q}:i<r&&i>=a?{x:0,y:o.height+l,...q}:{x:0,y:0,...q}};function Oe(t,e,r){const n=t[e],i=t[e-1],s=t[e+1];return n?r<e?i?n.top-(i.top+i.height):s?s.top-(n.top+n.height):0:s?s.top-(n.top+n.height):i?n.top-(i.top+i.height):0:0}const ue="Sortable",de=se.createContext({activeIndex:-1,containerId:ue,disableTransforms:!1,items:[],overIndex:-1,useDragOverlay:!1,sortedRects:[],strategy:ce,disabled:{draggable:!1,droppable:!1}});function st(t){let{children:e,id:r,items:n,strategy:i=ce,disabled:s=!1}=t;const{active:a,dragOverlay:o,droppableRects:l,over:d,measureDroppableContainers:c}=Le(),u=Te(ue,r),f=o.rect!==null,g=x.useMemo(()=>n.map(y=>typeof y=="object"&&"id"in y?y.id:y),[n]),S=a!=null,w=a?g.indexOf(a.id):-1,h=d?g.indexOf(d.id):-1,L=x.useRef(g),I=!Ne(g,L.current),C=h!==-1&&w===-1||I,b=_e(s);ae(()=>{I&&S&&c(g)},[I,g,S,c]),x.useEffect(()=>{L.current=g},[g]);const R=x.useMemo(()=>({activeIndex:w,containerId:u,disabled:b,disableTransforms:C,items:g,overIndex:h,useDragOverlay:f,sortedRects:Ae(g,l),strategy:i}),[w,u,b.draggable,b.droppable,C,g,h,l,f,i]);return se.createElement(de.Provider,{value:R},e)}const Me=t=>{let{id:e,items:r,activeIndex:n,overIndex:i}=t;return le(r,n,i).indexOf(e)},ze=t=>{let{containerId:e,isSorting:r,wasDragging:n,index:i,items:s,newIndex:a,previousItems:o,previousContainerId:l,transition:d}=t;return!d||!n||o!==s&&i===a?!1:r?!0:a!==i&&e===l},$e={duration:200,easing:"ease"},fe="transform",Ue=ie.Transition.toString({property:fe,duration:0,easing:"linear"}),We={roleDescription:"sortable"};function Be(t){let{disabled:e,index:r,node:n,rect:i}=t;const[s,a]=x.useState(null),o=x.useRef(r);return ae(()=>{if(!e&&r!==o.current&&n.current){const l=i.current;if(l){const d=Se(n.current,{ignoreTransform:!0}),c={x:l.left-d.left,y:l.top-d.top,scaleX:l.width/d.width,scaleY:l.height/d.height};(c.x||c.y)&&a(c)}}r!==o.current&&(o.current=r)},[e,r,n,i]),x.useEffect(()=>{s&&a(null)},[s]),s}function it(t){let{animateLayoutChanges:e=ze,attributes:r,disabled:n,data:i,getNewIndex:s=Me,id:a,strategy:o,resizeObserverConfig:l,transition:d=$e}=t;const{items:c,containerId:u,activeIndex:f,disabled:g,disableTransforms:S,sortedRects:w,overIndex:h,useDragOverlay:L,strategy:I}=x.useContext(de),C=Fe(n,g),b=c.indexOf(a),R=x.useMemo(()=>({sortable:{containerId:u,index:b,items:c},...i}),[u,i,b,c]),y=x.useMemo(()=>c.slice(c.indexOf(a)),[c,a]),{rect:A,node:N,isOver:Y,setNodeRef:U}=me({id:a,data:R,disabled:C.droppable,resizeObserverConfig:{updateMeasurementsFor:y,...l}}),{active:T,activatorEvent:K,activeNodeRect:Z,attributes:E,setNodeRef:_,listeners:O,isDragging:k,over:W,setActivatorNodeRef:M,transform:p}=Ie({id:a,data:R,attributes:{...We,...r},disabled:C.draggable}),P=ye(U,_),D=!!T,z=D&&!S&&X(f)&&X(h),Q=!L&&k,ee=Q&&z?p:null,ge=z?ee??(o??I)({rects:w,activeNodeRect:Z,activeIndex:f,overIndex:h,index:b}):null,B=X(f)&&X(h)?s({id:a,items:c,activeIndex:f,overIndex:h}):b,$=T?.id,m=x.useRef({activeId:$,items:c,newIndex:B,containerId:u}),be=c!==m.current.items,te=e({active:T,containerId:u,isDragging:k,isSorting:D,id:a,index:b,items:c,newIndex:m.current.newIndex,previousItems:m.current.items,previousContainerId:m.current.containerId,transition:d,wasDragging:m.current.activeId!=null}),V=Be({disabled:!te,index:b,node:N,rect:A});return x.useEffect(()=>{D&&m.current.newIndex!==B&&(m.current.newIndex=B),u!==m.current.containerId&&(m.current.containerId=u),c!==m.current.items&&(m.current.items=c)},[D,B,u,c]),x.useEffect(()=>{if($===m.current.activeId)return;if($!=null&&m.current.activeId==null){m.current.activeId=$;return}const xe=setTimeout(()=>{m.current.activeId=$},50);return()=>clearTimeout(xe)},[$]),{active:T,activeIndex:f,attributes:E,data:R,rect:A,index:b,newIndex:B,items:c,isOver:Y,isSorting:D,isDragging:k,listeners:O,node:N,overIndex:h,over:W,setNodeRef:P,setActivatorNodeRef:M,setDroppableNodeRef:U,setDraggableNodeRef:_,transform:V??ge,transition:ve()};function ve(){if(V||be&&m.current.newIndex===b)return Ue;if(!(Q&&!Ce(K)||!d)&&(D||te))return ie.Transition.toString({...d,property:fe})}}function Fe(t,e){var r,n;return typeof t=="boolean"?{draggable:t,droppable:!1}:{draggable:(r=t?.draggable)!=null?r:e.draggable,droppable:(n=t?.droppable)!=null?n:e.droppable}}function G(t){if(!t)return!1;const e=t.data.current;return!!(e&&"sortable"in e&&typeof e.sortable=="object"&&"containerId"in e.sortable&&"items"in e.sortable&&"index"in e.sortable)}const Ke=[j.Down,j.Right,j.Up,j.Left],at=(t,e)=>{let{context:{active:r,collisionRect:n,droppableRects:i,droppableContainers:s,over:a,scrollableAncestors:o}}=e;if(Ke.includes(t.code)){if(t.preventDefault(),!r||!n)return;const l=[];s.getEnabled().forEach(u=>{if(!u||u!=null&&u.disabled)return;const f=i.get(u.id);if(f)switch(t.code){case j.Down:n.top<f.top&&l.push(u);break;case j.Up:n.top>f.top&&l.push(u);break;case j.Left:n.left>f.left&&l.push(u);break;case j.Right:n.left<f.left&&l.push(u);break}});const d=Re({collisionRect:n,droppableRects:i,droppableContainers:l});let c=we(d,"id");if(c===a?.id&&d.length>1&&(c=d[1].id),c!=null){const u=s.get(r.id),f=s.get(c),g=f?i.get(f.id):null,S=f?.node.current;if(S&&g&&u&&f){const h=ke(S).some((y,A)=>o[A]!==y),L=pe(u,f),I=Pe(u,f),C=h||!L?{x:0,y:0}:{x:I?n.width-g.width:0,y:I?n.height-g.height:0},b={x:g.left,y:g.top};return C.x&&C.y?b:De(b,C)}}}};function pe(t,e){return!G(t)||!G(e)?!1:t.data.current.sortable.containerId===e.data.current.sortable.containerId}function Pe(t,e){return!G(t)||!G(e)||!pe(t,e)?!1:t.data.current.sortable.index<e.data.current.sortable.index}const lt="[&_a]:cursor-pointer [&_a]:text-primary [&_a]:underline [&_a]:decoration-primary/60 [&_a]:underline-offset-2 [&_a]:rounded-sm [&_a]:bg-primary/5 [&_a]:px-0.5",Xe=new Set(["http:","https:","mailto:","tel:","ftp:"]);function qe(t){if(t.startsWith("/")||t.startsWith(".")||t.startsWith("#"))return!0;try{const e=new URL(t,"https://placeholder.invalid");return Xe.has(e.protocol)}catch{return!1}}function Ge(t){const e=t.trim();return e?e.startsWith("/")||e.startsWith(".")||e.startsWith("#")||/^[a-zA-Z][a-zA-Z0-9+.-]*:/.test(e)?e:`https://${e}`:""}const He="noopener noreferrer nofollow";function J(t){const e=H.c(8),{active:r,label:n,onClick:i,children:s}=t,a=r?"bg-accent text-accent-foreground":"text-muted-foreground hover:bg-muted hover:text-foreground";let o;e[0]!==a?(o=F("flex h-7 w-7 items-center justify-center rounded-[var(--studio-control-radius,var(--radius))] transition-colors cursor-pointer",a),e[0]=a,e[1]=o):o=e[1];let l;return e[2]!==r||e[3]!==s||e[4]!==n||e[5]!==i||e[6]!==o?(l=v.jsx("button",{type:"button","aria-label":n,"aria-pressed":r,onMouseDown:Ye,onClick:i,className:o,children:s}),e[2]=r,e[3]=s,e[4]=n,e[5]=i,e[6]=o,e[7]=l):l=e[7],l}function Ye(t){return t.preventDefault()}function ne(t){const e=H.c(7),{active:r,label:n,onSelect:i}=t,s=r?"bg-accent text-accent-foreground":"text-muted-foreground hover:bg-muted hover:text-foreground";let a;e[0]!==s?(a=F("flex-1 rounded-[var(--studio-control-radius,var(--radius))] px-2 py-1 text-xs transition-colors cursor-pointer",s),e[0]=s,e[1]=a):a=e[1];let o;return e[2]!==r||e[3]!==n||e[4]!==i||e[5]!==a?(o=v.jsx("button",{type:"button","aria-pressed":r,onMouseDown:Ze,onClick:i,className:a,children:n}),e[2]=r,e[3]=n,e[4]=i,e[5]=a,e[6]=o):o=e[6],o}function Ze(t){return t.preventDefault()}function oe(t){const e=H.c(8),{active:r,icon:n,label:i,onSelect:s}=t,a=r?"bg-accent text-accent-foreground":"text-muted-foreground hover:bg-muted hover:text-foreground";let o;e[0]!==a?(o=F("flex flex-1 items-center justify-center gap-1 rounded-[var(--studio-control-radius,var(--radius))] px-2 py-1 text-xs transition-colors cursor-pointer",a),e[0]=a,e[1]=o):o=e[1];let l;return e[2]!==r||e[3]!==n||e[4]!==i||e[5]!==s||e[6]!==o?(l=v.jsxs("button",{type:"button","aria-pressed":r,onMouseDown:Ve,onClick:s,className:o,children:[n,i]}),e[2]=r,e[3]=n,e[4]=i,e[5]=s,e[6]=o,e[7]=l):l=e[7],l}function Ve(t){return t.preventDefault()}function ct(t){const e=H.c(27),{editor:r,active:n,open:i,onOpenChange:s,sources:a}=t,o=he(),[l,d]=x.useState(""),[c,u]=x.useState(!0),[f,g]=x.useState(!1),[S,w]=x.useState("url");let h;e[0]!==n||e[1]!==r||e[2]!==s?(h=()=>{const p=r.getAttributes("link");d(typeof p.href=="string"?p.href:""),u(n?p.target==="_blank":!0),g(!1),w("url"),s(!0)},e[0]=n,e[1]=r,e[2]=s,e[3]=h):h=e[3];const L=h;let I;e[4]!==r||e[5]!==s?(I=()=>{s(!1),r.chain().focus().run()},e[4]=r,e[5]=s,e[6]=I):I=e[6];const C=I;let b;e[7]!==r||e[8]!==c||e[9]!==s?(b=(p,P)=>{const D=P===void 0?!1:P,z=D?p.trim():Ge(p);if(z===""){r.chain().focus().extendMarkRange("link").unsetLink().run(),s(!1);return}if(!D&&!qe(z)){g(!0);return}r.chain().focus().extendMarkRange("link").setLink({href:z,target:c?"_blank":null,rel:c?He:null}).run(),s(!1)},e[7]=r,e[8]=c,e[9]=s,e[10]=b):b=e[10];const R=b;let y;e[11]!==R||e[12]!==l?(y=()=>R(l),e[11]=R,e[12]=l,e[13]=y):y=e[13];const A=y;let N;e[14]!==r||e[15]!==s?(N=()=>{r.chain().focus().extendMarkRange("link").unsetLink().run(),s(!1)},e[14]=r,e[15]=s,e[16]=N):N=e[16];const Y=N,U=!!a?.length,T=a?.find(p=>p.id===S),K=x.useRef(null),Z="relative";let E;e[17]!==o?(E=o("sectionsEditor.richTextLinkControl.linkButtonLabel"),e[17]=o,e[18]=E):E=e[18];const _=i?C:L;let O;e[19]===Symbol.for("react.memo_cache_sentinel")?(O=v.jsx(re,{size:14}),e[19]=O):O=e[19];let k;e[20]!==n||e[21]!==E||e[22]!==_?(k=v.jsx(J,{active:n,label:E,onClick:_,children:O}),e[20]=n,e[21]=E,e[22]=_,e[23]=k):k=e[23];const W=i&&v.jsxs("div",{ref:K,className:F("absolute left-0 top-full z-20 mt-1.5 flex flex-col gap-1 rounded-[var(--studio-surface-radius,var(--radius-md))] border bg-popover p-1 shadow-md",U?"w-80":"w-64"),onBlur:()=>{requestAnimationFrame(()=>{K.current?.contains(document.activeElement)||s(!1)})},children:[U&&v.jsxs("div",{className:"flex items-center gap-0.5 rounded-[var(--studio-control-radius,var(--radius))] bg-muted/40 p-0.5",children:[v.jsx(oe,{active:S==="url",icon:v.jsx(re,{size:12}),label:o("sectionsEditor.richTextLinkControl.tabUrl"),onSelect:()=>w("url")}),a?.map(p=>v.jsx(oe,{active:S===p.id,icon:p.icon,label:p.label,onSelect:()=>w(p.id)},p.id))]}),T?T.render(p=>R(p,!0)):v.jsxs("div",{className:"flex items-center gap-0.5",children:[v.jsx("input",{autoFocus:!0,type:"text","aria-label":o("sectionsEditor.richTextLinkControl.urlInputAriaLabel"),"aria-invalid":f,placeholder:o("sectionsEditor.richTextLinkControl.urlInputPlaceholder"),value:l,onChange:p=>{d(p.target.value),g(!1)},onKeyDown:p=>{p.key==="Enter"?(p.preventDefault(),A()):p.key==="Escape"&&(p.preventDefault(),C())},className:F("h-7 flex-1 rounded-[var(--studio-control-radius,var(--radius))] bg-transparent px-2 text-sm text-foreground placeholder:text-muted-foreground focus:outline-none",f&&"text-destructive")}),v.jsx(J,{active:!1,label:o("sectionsEditor.richTextLinkControl.applyLinkLabel"),onClick:A,children:v.jsx(Ee,{size:14})}),n&&v.jsx(J,{active:!1,label:o("sectionsEditor.richTextLinkControl.removeLinkLabel"),onClick:Y,children:v.jsx(je,{size:14})})]}),v.jsxs("div",{className:"flex items-center gap-0.5 rounded-[var(--studio-control-radius,var(--radius))] bg-muted/40 p-0.5",children:[v.jsx(ne,{active:!c,label:o("sectionsEditor.richTextLinkControl.sameTabLabel"),onSelect:()=>u(!1)}),v.jsx(ne,{active:c,label:o("sectionsEditor.richTextLinkControl.newTabLabel"),onSelect:()=>u(!0)})]})]});let M;return e[24]!==k||e[25]!==W?(M=v.jsxs("div",{className:Z,children:[k,W]}),e[24]=k,e[25]=W,e[26]=M):M=e[26],M}export{lt as E,ct as R,st as S,J as T,le as a,qe as i,Ge as n,ce as r,at as s,it as u,ot as v};
1
+ import{r as x,dZ as se,c as H,l as F,j as v,b as he}from"./index-BSg0zn4o.js";import{e as me,f as Ie,g as ye,i as Ce,C as ie,h as ae,j as Se,k as j,d as Re,l as we,m as ke,s as De,n as Le,o as Te}from"./core.esm-B3puu65K.js";import{i as Ee}from"./Check-ycQN3J2t.js";import{i as re}from"./Link01-B8ajBJDc.js";import{s as je}from"./Trash01-BTpCOmuX.js";function le(t,e,r){const n=t.slice();return n.splice(r<0?n.length+r:r,0,n.splice(e,1)[0]),n}function Ae(t,e){return t.reduce((r,n,i)=>{const s=e.get(n);return s&&(r[i]=s),r},Array(t.length))}function X(t){return t!==null&&t>=0}function Ne(t,e){if(t===e)return!0;if(t.length!==e.length)return!1;for(let r=0;r<t.length;r++)if(t[r]!==e[r])return!1;return!0}function _e(t){return typeof t=="boolean"?{draggable:t,droppable:t}:t}const ce=t=>{let{rects:e,activeIndex:r,overIndex:n,index:i}=t;const s=le(e,n,r),a=e[i],o=s[i];return!o||!a?null:{x:o.left-a.left,y:o.top-a.top,scaleX:o.width/a.width,scaleY:o.height/a.height}},q={scaleX:1,scaleY:1},ot=t=>{var e;let{activeIndex:r,activeNodeRect:n,index:i,rects:s,overIndex:a}=t;const o=(e=s[r])!=null?e:n;if(!o)return null;if(i===r){const d=s[a];return d?{x:0,y:r<a?d.top+d.height-(o.top+o.height):d.top-o.top,...q}:null}const l=Oe(s,i,r);return i>r&&i<=a?{x:0,y:-o.height-l,...q}:i<r&&i>=a?{x:0,y:o.height+l,...q}:{x:0,y:0,...q}};function Oe(t,e,r){const n=t[e],i=t[e-1],s=t[e+1];return n?r<e?i?n.top-(i.top+i.height):s?s.top-(n.top+n.height):0:s?s.top-(n.top+n.height):i?n.top-(i.top+i.height):0:0}const ue="Sortable",de=se.createContext({activeIndex:-1,containerId:ue,disableTransforms:!1,items:[],overIndex:-1,useDragOverlay:!1,sortedRects:[],strategy:ce,disabled:{draggable:!1,droppable:!1}});function st(t){let{children:e,id:r,items:n,strategy:i=ce,disabled:s=!1}=t;const{active:a,dragOverlay:o,droppableRects:l,over:d,measureDroppableContainers:c}=Le(),u=Te(ue,r),f=o.rect!==null,g=x.useMemo(()=>n.map(y=>typeof y=="object"&&"id"in y?y.id:y),[n]),S=a!=null,w=a?g.indexOf(a.id):-1,h=d?g.indexOf(d.id):-1,L=x.useRef(g),I=!Ne(g,L.current),C=h!==-1&&w===-1||I,b=_e(s);ae(()=>{I&&S&&c(g)},[I,g,S,c]),x.useEffect(()=>{L.current=g},[g]);const R=x.useMemo(()=>({activeIndex:w,containerId:u,disabled:b,disableTransforms:C,items:g,overIndex:h,useDragOverlay:f,sortedRects:Ae(g,l),strategy:i}),[w,u,b.draggable,b.droppable,C,g,h,l,f,i]);return se.createElement(de.Provider,{value:R},e)}const Me=t=>{let{id:e,items:r,activeIndex:n,overIndex:i}=t;return le(r,n,i).indexOf(e)},ze=t=>{let{containerId:e,isSorting:r,wasDragging:n,index:i,items:s,newIndex:a,previousItems:o,previousContainerId:l,transition:d}=t;return!d||!n||o!==s&&i===a?!1:r?!0:a!==i&&e===l},$e={duration:200,easing:"ease"},fe="transform",Ue=ie.Transition.toString({property:fe,duration:0,easing:"linear"}),We={roleDescription:"sortable"};function Be(t){let{disabled:e,index:r,node:n,rect:i}=t;const[s,a]=x.useState(null),o=x.useRef(r);return ae(()=>{if(!e&&r!==o.current&&n.current){const l=i.current;if(l){const d=Se(n.current,{ignoreTransform:!0}),c={x:l.left-d.left,y:l.top-d.top,scaleX:l.width/d.width,scaleY:l.height/d.height};(c.x||c.y)&&a(c)}}r!==o.current&&(o.current=r)},[e,r,n,i]),x.useEffect(()=>{s&&a(null)},[s]),s}function it(t){let{animateLayoutChanges:e=ze,attributes:r,disabled:n,data:i,getNewIndex:s=Me,id:a,strategy:o,resizeObserverConfig:l,transition:d=$e}=t;const{items:c,containerId:u,activeIndex:f,disabled:g,disableTransforms:S,sortedRects:w,overIndex:h,useDragOverlay:L,strategy:I}=x.useContext(de),C=Fe(n,g),b=c.indexOf(a),R=x.useMemo(()=>({sortable:{containerId:u,index:b,items:c},...i}),[u,i,b,c]),y=x.useMemo(()=>c.slice(c.indexOf(a)),[c,a]),{rect:A,node:N,isOver:Y,setNodeRef:U}=me({id:a,data:R,disabled:C.droppable,resizeObserverConfig:{updateMeasurementsFor:y,...l}}),{active:T,activatorEvent:K,activeNodeRect:Z,attributes:E,setNodeRef:_,listeners:O,isDragging:k,over:W,setActivatorNodeRef:M,transform:p}=Ie({id:a,data:R,attributes:{...We,...r},disabled:C.draggable}),P=ye(U,_),D=!!T,z=D&&!S&&X(f)&&X(h),Q=!L&&k,ee=Q&&z?p:null,ge=z?ee??(o??I)({rects:w,activeNodeRect:Z,activeIndex:f,overIndex:h,index:b}):null,B=X(f)&&X(h)?s({id:a,items:c,activeIndex:f,overIndex:h}):b,$=T?.id,m=x.useRef({activeId:$,items:c,newIndex:B,containerId:u}),be=c!==m.current.items,te=e({active:T,containerId:u,isDragging:k,isSorting:D,id:a,index:b,items:c,newIndex:m.current.newIndex,previousItems:m.current.items,previousContainerId:m.current.containerId,transition:d,wasDragging:m.current.activeId!=null}),V=Be({disabled:!te,index:b,node:N,rect:A});return x.useEffect(()=>{D&&m.current.newIndex!==B&&(m.current.newIndex=B),u!==m.current.containerId&&(m.current.containerId=u),c!==m.current.items&&(m.current.items=c)},[D,B,u,c]),x.useEffect(()=>{if($===m.current.activeId)return;if($!=null&&m.current.activeId==null){m.current.activeId=$;return}const xe=setTimeout(()=>{m.current.activeId=$},50);return()=>clearTimeout(xe)},[$]),{active:T,activeIndex:f,attributes:E,data:R,rect:A,index:b,newIndex:B,items:c,isOver:Y,isSorting:D,isDragging:k,listeners:O,node:N,overIndex:h,over:W,setNodeRef:P,setActivatorNodeRef:M,setDroppableNodeRef:U,setDraggableNodeRef:_,transform:V??ge,transition:ve()};function ve(){if(V||be&&m.current.newIndex===b)return Ue;if(!(Q&&!Ce(K)||!d)&&(D||te))return ie.Transition.toString({...d,property:fe})}}function Fe(t,e){var r,n;return typeof t=="boolean"?{draggable:t,droppable:!1}:{draggable:(r=t?.draggable)!=null?r:e.draggable,droppable:(n=t?.droppable)!=null?n:e.droppable}}function G(t){if(!t)return!1;const e=t.data.current;return!!(e&&"sortable"in e&&typeof e.sortable=="object"&&"containerId"in e.sortable&&"items"in e.sortable&&"index"in e.sortable)}const Ke=[j.Down,j.Right,j.Up,j.Left],at=(t,e)=>{let{context:{active:r,collisionRect:n,droppableRects:i,droppableContainers:s,over:a,scrollableAncestors:o}}=e;if(Ke.includes(t.code)){if(t.preventDefault(),!r||!n)return;const l=[];s.getEnabled().forEach(u=>{if(!u||u!=null&&u.disabled)return;const f=i.get(u.id);if(f)switch(t.code){case j.Down:n.top<f.top&&l.push(u);break;case j.Up:n.top>f.top&&l.push(u);break;case j.Left:n.left>f.left&&l.push(u);break;case j.Right:n.left<f.left&&l.push(u);break}});const d=Re({collisionRect:n,droppableRects:i,droppableContainers:l});let c=we(d,"id");if(c===a?.id&&d.length>1&&(c=d[1].id),c!=null){const u=s.get(r.id),f=s.get(c),g=f?i.get(f.id):null,S=f?.node.current;if(S&&g&&u&&f){const h=ke(S).some((y,A)=>o[A]!==y),L=pe(u,f),I=Pe(u,f),C=h||!L?{x:0,y:0}:{x:I?n.width-g.width:0,y:I?n.height-g.height:0},b={x:g.left,y:g.top};return C.x&&C.y?b:De(b,C)}}}};function pe(t,e){return!G(t)||!G(e)?!1:t.data.current.sortable.containerId===e.data.current.sortable.containerId}function Pe(t,e){return!G(t)||!G(e)||!pe(t,e)?!1:t.data.current.sortable.index<e.data.current.sortable.index}const lt="[&_a]:cursor-pointer [&_a]:text-primary [&_a]:underline [&_a]:decoration-primary/60 [&_a]:underline-offset-2 [&_a]:rounded-sm [&_a]:bg-primary/5 [&_a]:px-0.5",Xe=new Set(["http:","https:","mailto:","tel:","ftp:"]);function qe(t){if(t.startsWith("/")||t.startsWith(".")||t.startsWith("#"))return!0;try{const e=new URL(t,"https://placeholder.invalid");return Xe.has(e.protocol)}catch{return!1}}function Ge(t){const e=t.trim();return e?e.startsWith("/")||e.startsWith(".")||e.startsWith("#")||/^[a-zA-Z][a-zA-Z0-9+.-]*:/.test(e)?e:`https://${e}`:""}const He="noopener noreferrer nofollow";function J(t){const e=H.c(8),{active:r,label:n,onClick:i,children:s}=t,a=r?"bg-accent text-accent-foreground":"text-muted-foreground hover:bg-muted hover:text-foreground";let o;e[0]!==a?(o=F("flex h-7 w-7 items-center justify-center rounded-[var(--studio-control-radius,var(--radius))] transition-colors cursor-pointer",a),e[0]=a,e[1]=o):o=e[1];let l;return e[2]!==r||e[3]!==s||e[4]!==n||e[5]!==i||e[6]!==o?(l=v.jsx("button",{type:"button","aria-label":n,"aria-pressed":r,onMouseDown:Ye,onClick:i,className:o,children:s}),e[2]=r,e[3]=s,e[4]=n,e[5]=i,e[6]=o,e[7]=l):l=e[7],l}function Ye(t){return t.preventDefault()}function ne(t){const e=H.c(7),{active:r,label:n,onSelect:i}=t,s=r?"bg-accent text-accent-foreground":"text-muted-foreground hover:bg-muted hover:text-foreground";let a;e[0]!==s?(a=F("flex-1 rounded-[var(--studio-control-radius,var(--radius))] px-2 py-1 text-xs transition-colors cursor-pointer",s),e[0]=s,e[1]=a):a=e[1];let o;return e[2]!==r||e[3]!==n||e[4]!==i||e[5]!==a?(o=v.jsx("button",{type:"button","aria-pressed":r,onMouseDown:Ze,onClick:i,className:a,children:n}),e[2]=r,e[3]=n,e[4]=i,e[5]=a,e[6]=o):o=e[6],o}function Ze(t){return t.preventDefault()}function oe(t){const e=H.c(8),{active:r,icon:n,label:i,onSelect:s}=t,a=r?"bg-accent text-accent-foreground":"text-muted-foreground hover:bg-muted hover:text-foreground";let o;e[0]!==a?(o=F("flex flex-1 items-center justify-center gap-1 rounded-[var(--studio-control-radius,var(--radius))] px-2 py-1 text-xs transition-colors cursor-pointer",a),e[0]=a,e[1]=o):o=e[1];let l;return e[2]!==r||e[3]!==n||e[4]!==i||e[5]!==s||e[6]!==o?(l=v.jsxs("button",{type:"button","aria-pressed":r,onMouseDown:Ve,onClick:s,className:o,children:[n,i]}),e[2]=r,e[3]=n,e[4]=i,e[5]=s,e[6]=o,e[7]=l):l=e[7],l}function Ve(t){return t.preventDefault()}function ct(t){const e=H.c(27),{editor:r,active:n,open:i,onOpenChange:s,sources:a}=t,o=he(),[l,d]=x.useState(""),[c,u]=x.useState(!0),[f,g]=x.useState(!1),[S,w]=x.useState("url");let h;e[0]!==n||e[1]!==r||e[2]!==s?(h=()=>{const p=r.getAttributes("link");d(typeof p.href=="string"?p.href:""),u(n?p.target==="_blank":!0),g(!1),w("url"),s(!0)},e[0]=n,e[1]=r,e[2]=s,e[3]=h):h=e[3];const L=h;let I;e[4]!==r||e[5]!==s?(I=()=>{s(!1),r.chain().focus().run()},e[4]=r,e[5]=s,e[6]=I):I=e[6];const C=I;let b;e[7]!==r||e[8]!==c||e[9]!==s?(b=(p,P)=>{const D=P===void 0?!1:P,z=D?p.trim():Ge(p);if(z===""){r.chain().focus().extendMarkRange("link").unsetLink().run(),s(!1);return}if(!D&&!qe(z)){g(!0);return}r.chain().focus().extendMarkRange("link").setLink({href:z,target:c?"_blank":null,rel:c?He:null}).run(),s(!1)},e[7]=r,e[8]=c,e[9]=s,e[10]=b):b=e[10];const R=b;let y;e[11]!==R||e[12]!==l?(y=()=>R(l),e[11]=R,e[12]=l,e[13]=y):y=e[13];const A=y;let N;e[14]!==r||e[15]!==s?(N=()=>{r.chain().focus().extendMarkRange("link").unsetLink().run(),s(!1)},e[14]=r,e[15]=s,e[16]=N):N=e[16];const Y=N,U=!!a?.length,T=a?.find(p=>p.id===S),K=x.useRef(null),Z="relative";let E;e[17]!==o?(E=o("sectionsEditor.richTextLinkControl.linkButtonLabel"),e[17]=o,e[18]=E):E=e[18];const _=i?C:L;let O;e[19]===Symbol.for("react.memo_cache_sentinel")?(O=v.jsx(re,{size:14}),e[19]=O):O=e[19];let k;e[20]!==n||e[21]!==E||e[22]!==_?(k=v.jsx(J,{active:n,label:E,onClick:_,children:O}),e[20]=n,e[21]=E,e[22]=_,e[23]=k):k=e[23];const W=i&&v.jsxs("div",{ref:K,className:F("absolute left-0 top-full z-20 mt-1.5 flex flex-col gap-1 rounded-[var(--studio-surface-radius,var(--radius-md))] border bg-popover p-1 shadow-md",U?"w-80":"w-64"),onBlur:()=>{requestAnimationFrame(()=>{K.current?.contains(document.activeElement)||s(!1)})},children:[U&&v.jsxs("div",{className:"flex items-center gap-0.5 rounded-[var(--studio-control-radius,var(--radius))] bg-muted/40 p-0.5",children:[v.jsx(oe,{active:S==="url",icon:v.jsx(re,{size:12}),label:o("sectionsEditor.richTextLinkControl.tabUrl"),onSelect:()=>w("url")}),a?.map(p=>v.jsx(oe,{active:S===p.id,icon:p.icon,label:p.label,onSelect:()=>w(p.id)},p.id))]}),T?T.render(p=>R(p,!0)):v.jsxs("div",{className:"flex items-center gap-0.5",children:[v.jsx("input",{autoFocus:!0,type:"text","aria-label":o("sectionsEditor.richTextLinkControl.urlInputAriaLabel"),"aria-invalid":f,placeholder:o("sectionsEditor.richTextLinkControl.urlInputPlaceholder"),value:l,onChange:p=>{d(p.target.value),g(!1)},onKeyDown:p=>{p.key==="Enter"?(p.preventDefault(),A()):p.key==="Escape"&&(p.preventDefault(),C())},className:F("h-7 flex-1 rounded-[var(--studio-control-radius,var(--radius))] bg-transparent px-2 text-sm text-foreground placeholder:text-muted-foreground focus:outline-none",f&&"text-destructive")}),v.jsx(J,{active:!1,label:o("sectionsEditor.richTextLinkControl.applyLinkLabel"),onClick:A,children:v.jsx(Ee,{size:14})}),n&&v.jsx(J,{active:!1,label:o("sectionsEditor.richTextLinkControl.removeLinkLabel"),onClick:Y,children:v.jsx(je,{size:14})})]}),v.jsxs("div",{className:"flex items-center gap-0.5 rounded-[var(--studio-control-radius,var(--radius))] bg-muted/40 p-0.5",children:[v.jsx(ne,{active:!c,label:o("sectionsEditor.richTextLinkControl.sameTabLabel"),onSelect:()=>u(!1)}),v.jsx(ne,{active:c,label:o("sectionsEditor.richTextLinkControl.newTabLabel"),onSelect:()=>u(!0)})]})]});let M;return e[24]!==k||e[25]!==W?(M=v.jsxs("div",{className:Z,children:[k,W]}),e[24]=k,e[25]=W,e[26]=M):M=e[26],M}export{lt as E,ct as R,st as S,J as T,le as a,qe as i,Ge as n,ce as r,at as s,it as u,ot as v};