decocms 4.98.2 → 4.98.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 (232) hide show
  1. package/dist/client/assets/{AlertCircle-s4M099V-.js → AlertCircle-Cx97rQnl.js} +1 -1
  2. package/dist/client/assets/{AreaChart-DZY3jVGV.js → AreaChart-BACYydip.js} +1 -1
  3. package/dist/client/assets/{ArrowRight-CEvUZ07f.js → ArrowRight-DAQoDa7X.js} +1 -1
  4. package/dist/client/assets/{ArrowUp-BZIsoAKC.js → ArrowUp-CKJE71Cf.js} +1 -1
  5. package/dist/client/assets/{ArrowUpRight-DmpBvFc_.js → ArrowUpRight-CLB7srQN.js} +1 -1
  6. package/dist/client/assets/{Check-VM8y-9BQ.js → Check-CGiG43y0.js} +1 -1
  7. package/dist/client/assets/{CheckCircle-BAIP4B4s.js → CheckCircle-DsMDYYh6.js} +1 -1
  8. package/dist/client/assets/{ChevronDown-C7k6Nvz7.js → ChevronDown-CERHyosp.js} +1 -1
  9. package/dist/client/assets/{ChevronRight-GsbvSb1f.js → ChevronRight-CBwnEKjU.js} +1 -1
  10. package/dist/client/assets/{ChevronUp-BBz5QAvl.js → ChevronUp-DBuwXe1o.js} +1 -1
  11. package/dist/client/assets/{Copy01-BkSfK2eJ.js → Copy01-CbXfMrP0.js} +1 -1
  12. package/dist/client/assets/{DotsVertical-COIpLrxe.js → DotsVertical-Dh2-a9Ez.js} +1 -1
  13. package/dist/client/assets/{Eye-BCWEcnlS.js → Eye-qCfOvsZi.js} +1 -1
  14. package/dist/client/assets/{FilterLines-CdIXRngT.js → FilterLines-B6gJ5B1n.js} +1 -1
  15. package/dist/client/assets/{Globe01-xGPYTjkz.js → Globe01-DHtMl50-.js} +1 -1
  16. package/dist/client/assets/{Globe04-DSKs_NVJ.js → Globe04-D-q-aEi5.js} +1 -1
  17. package/dist/client/assets/{HardDrive-DAb8AG3Y.js → HardDrive-jOgQLrVd.js} +1 -1
  18. package/dist/client/assets/{Image01-Dj2aQnzA.js → Image01-BsaJzkLa.js} +1 -1
  19. package/dist/client/assets/{Key01-DfWmgmlc.js → Key01-CIn1azax.js} +1 -1
  20. package/dist/client/assets/{LayoutLeft-CmxpuOeh.js → LayoutLeft-uE9fnaFO.js} +1 -1
  21. package/dist/client/assets/{LinkExternal01-DwePTfJe.js → LinkExternal01-BD3YTNc-.js} +1 -1
  22. package/dist/client/assets/{Monitor01-B1903mhc.js → Monitor01-B4dzy07F.js} +1 -1
  23. package/dist/client/assets/{Package-CjrrIbcY.js → Package-D6IBLzFJ.js} +1 -1
  24. package/dist/client/assets/{Palette-J3W4AQcQ.js → Palette-Bf6zAWx5.js} +1 -1
  25. package/dist/client/assets/{Play-DMnKFapx.js → Play-DYc2IjKU.js} +1 -1
  26. package/dist/client/assets/{Plus-DcI7xaXC.js → Plus-DZq2iOdw.js} +1 -1
  27. package/dist/client/assets/{SearchLg-m2tN2z_q.js → SearchLg-FUW2dkcu.js} +1 -1
  28. package/dist/client/assets/{SearchMd-CK1b1J65.js → SearchMd-DTiifuwd.js} +1 -1
  29. package/dist/client/assets/{Settings02-Bu50gx78.js → Settings02-DR2zz69h.js} +1 -1
  30. package/dist/client/assets/{Shield01-t2Ws4UCi.js → Shield01-Rr87mSG3.js} +1 -1
  31. package/dist/client/assets/{Star01-Bz40h6pO.js → Star01-Cf12Wvq7.js} +1 -1
  32. package/dist/client/assets/{Stars01-DXrHhfBN.js → Stars01-VElXd1j5.js} +1 -1
  33. package/dist/client/assets/{Stars02-CPOpSHUw.js → Stars02-v01C_rZ2.js} +1 -1
  34. package/dist/client/assets/{Sun-DXBHb5hE.js → Sun-B8lPcDin.js} +1 -1
  35. package/dist/client/assets/{SwitchHorizontal01-DbqDzXZF.js → SwitchHorizontal01-D5VGhX_E.js} +1 -1
  36. package/dist/client/assets/{Tool01-Cc0YA_de.js → Tool01-PP1jI-ff.js} +1 -1
  37. package/dist/client/assets/{Tool02-BgBpVowf.js → Tool02-BXYe4odg.js} +1 -1
  38. package/dist/client/assets/{Trash01-B06SRS55.js → Trash01-DsuJXHzH.js} +1 -1
  39. package/dist/client/assets/{TrendUp01-cv7CTzZH.js → TrendUp01-BI70O776.js} +1 -1
  40. package/dist/client/assets/{Upload01-Bdm_yBtp.js → Upload01-DK5Y5fMT.js} +1 -1
  41. package/dist/client/assets/{User01-BwN_f-eA.js → User01-BsXFMIsL.js} +1 -1
  42. package/dist/client/assets/{Users01-DgMkwC5F.js → Users01-DCDRji3y.js} +1 -1
  43. package/dist/client/assets/{Users03-Brx9Tfi0.js → Users03-BMvG_rUk.js} +1 -1
  44. package/dist/client/assets/{X-BlFMoNvi.js → X-CVTLw9HR.js} +1 -1
  45. package/dist/client/assets/{XCircle-I2DGdz2H.js → XCircle-Ds2x_7AC.js} +1 -1
  46. package/dist/client/assets/{XClose-C1HOoFIF.js → XClose-pko6wQGH.js} +1 -1
  47. package/dist/client/assets/{Zap-C9C0XcWZ.js → Zap-CFkqNUW6.js} +1 -1
  48. package/dist/client/assets/{ZapSquare-Dqaz_Wu7.js → ZapSquare-SCrc5Zrs.js} +1 -1
  49. package/dist/client/assets/{ZoomOut-CLMb9fqF.js → ZoomOut-BK36ZHLR.js} +1 -1
  50. package/dist/client/assets/{access-gate-neKtespr.js → access-gate-QANWoLsy.js} +1 -1
  51. package/dist/client/assets/{add-section-modal-BiDfxoZu.js → add-section-modal-Cz_QVYKB.js} +1 -1
  52. package/dist/client/assets/{agent-icon-pxwcqiKA.js → agent-icon-UagHZ_l2.js} +1 -1
  53. package/dist/client/assets/{agents-list-BjdOBjhy.js → agents-list-Cn6vdv9D.js} +1 -1
  54. package/dist/client/assets/{ai-providers-CEx0bd-z.js → ai-providers-BdyqPdJZ.js} +1 -1
  55. package/dist/client/assets/{alert-DO0YdPKF.js → alert-DQni-Oji.js} +1 -1
  56. package/dist/client/assets/{alert-dialog-hIk4u9Gb.js → alert-dialog-B2F1dNTH.js} +1 -1
  57. package/dist/client/assets/{app-editor-B80R4dvu.js → app-editor-BZI51FEG.js} +1 -1
  58. package/dist/client/assets/{auth-KHE-8AXi.js → auth-Xy0pZfEn.js} +1 -1
  59. package/dist/client/assets/{auth-catchall-Dw2gjNU4.js → auth-catchall-B6z1b_kb.js} +1 -1
  60. package/dist/client/assets/{auth-entry-awyvnsoy.js → auth-entry-CLpK1aOM.js} +1 -1
  61. package/dist/client/assets/{auth-split-layout-ykflmu8z.js → auth-split-layout-k8C8_KsT.js} +1 -1
  62. package/dist/client/assets/{authenticate-and-persist-oauth-Dw5vK4Np.js → authenticate-and-persist-oauth-CNA7RHks.js} +1 -1
  63. package/dist/client/assets/{automation-list-row-CcfTxVvE.js → automation-list-row-hKhqow8H.js} +1 -1
  64. package/dist/client/assets/{automation-runs-CqsAiiMs.js → automation-runs-C9Ejzksr.js} +1 -1
  65. package/dist/client/assets/{automations-B0_ws4kn.js → automations-Cx67EefY.js} +1 -1
  66. package/dist/client/assets/{autosend-C5G3ujHX.js → autosend-Cuo-aRbu.js} +1 -1
  67. package/dist/client/assets/{avatar-W4HH3mYk.js → avatar-CSitlWWg.js} +1 -1
  68. package/dist/client/assets/{badge-BsMFZNOH.js → badge-CZhHvw9L.js} +1 -1
  69. package/dist/client/assets/{block-document-BHE6ywJ4.js → block-document-BOppaGqT.js} +1 -1
  70. package/dist/client/assets/{brand-context-Bqr4cAus.js → brand-context-DY7ItZkg.js} +1 -1
  71. package/dist/client/assets/{buckets-C5KMMKb1.js → buckets-BIjkfGqn.js} +1 -1
  72. package/dist/client/assets/{bulk-category-panel-CZqAzMMI.js → bulk-category-panel-DefiT9rC.js} +1 -1
  73. package/dist/client/assets/{calendar-oce0FxN3.js → calendar-ODi0CmNK.js} +1 -1
  74. package/dist/client/assets/{capability-load-error-CbA1NqWt.js → capability-load-error-BF8u5SIE.js} +1 -1
  75. package/dist/client/assets/{card-9DbXNPrJ.js → card-Bk__9-t5.js} +1 -1
  76. package/dist/client/assets/{category-editor-8bUEH-Wt.js → category-editor-CXjIDQUU.js} +1 -1
  77. package/dist/client/assets/{chat-context-gzZ7g8Xm.js → chat-context-D6AQrOSe.js} +1 -1
  78. package/dist/client/assets/{checkbox-BVsue6mv.js → checkbox-BKq3ekCv.js} +1 -1
  79. package/dist/client/assets/{cli-auth-success-CEPfTmBb.js → cli-auth-success-plNGkvGO.js} +1 -1
  80. package/dist/client/assets/{collection-detail-CE8A5bk0.js → collection-detail-NlBXj41s.js} +1 -1
  81. package/dist/client/assets/{collection-display-button-Dfl8-jad.js → collection-display-button-BAxzHN7i.js} +1 -1
  82. package/dist/client/assets/{collection-search-DwF42kDs.js → collection-search-B3qJRD-1.js} +1 -1
  83. package/dist/client/assets/{collection-table-wrapper-DNoMV9U5.js → collection-table-wrapper-CkLc-oWF.js} +1 -1
  84. package/dist/client/assets/{collection-tabs-C2y4_AeK.js → collection-tabs-yWQnuQeo.js} +1 -1
  85. package/dist/client/assets/{command-BRhwT5rW.js → command-CM64_kiL.js} +1 -1
  86. package/dist/client/assets/{commerce-onboarding-BNq8o8CH.js → commerce-onboarding-Dxw0c4R9.js} +1 -1
  87. package/dist/client/assets/{companions-core-BL6EyMpO.js → companions-core-BbRSRe0R.js} +1 -1
  88. package/dist/client/assets/{connect-C4I9C9GT.js → connect-LxrMEiuM.js} +1 -1
  89. package/dist/client/assets/{connect-desktop-dialog-GCGHv8Sq.js → connect-desktop-dialog-DuCQsXFt.js} +1 -1
  90. package/dist/client/assets/{connection-card-Bn7CJCNN.js → connection-card-DaJqivc0.js} +1 -1
  91. package/dist/client/assets/{connection-detail-C3ypag6C.js → connection-detail-BL-8Wjid.js} +1 -1
  92. package/dist/client/assets/{connection-form-helpers-B-QHv1cx.js → connection-form-helpers-BYJkmgaL.js} +1 -1
  93. package/dist/client/assets/{connections-aF15B61B.js → connections-BwIVctxi.js} +1 -1
  94. package/dist/client/assets/{decopilot-sse-pool-C1filKUs.js → decopilot-sse-pool-CUITleJ4.js} +1 -1
  95. package/dist/client/assets/{dialog-D8-F1Dpf.js → dialog-Bw4tPv_R.js} +1 -1
  96. package/dist/client/assets/{domain-settings-But8W_Q0.js → domain-settings-NT2mO8T0.js} +1 -1
  97. package/dist/client/assets/{drawer-By87BFYK.js → drawer-CnWBUNwi.js} +1 -1
  98. package/dist/client/assets/{dropdown-menu-BTKmAvGt.js → dropdown-menu-BltbhtJf.js} +1 -1
  99. package/dist/client/assets/{empty-state-vqXVK1uB.js → empty-state-DerXoc3X.js} +1 -1
  100. package/dist/client/assets/{extract-connection-data-ChmN_E8R.js → extract-connection-data-BqLFH7Cf.js} +1 -1
  101. package/dist/client/assets/{file-explorer-CE5VMGoi.js → file-explorer-CY0Iogvv.js} +1 -1
  102. package/dist/client/assets/{file-type-icon-DaKccIVJ.js → file-type-icon-D2EI7lR_.js} +1 -1
  103. package/dist/client/assets/{files-DJoSNnRh.js → files-CuhblNw6.js} +1 -1
  104. package/dist/client/assets/{form-CjQec4iJ.js → form-B2jH3gS-.js} +1 -1
  105. package/dist/client/assets/{general-_jNMXiEE.js → general-D4m7vA2G.js} +1 -1
  106. package/dist/client/assets/{github-repo-picker-DlrrhmDQ.js → github-repo-picker-B8Z3uEbp.js} +1 -1
  107. package/dist/client/assets/{hooks-DscYSje4.js → hooks-DAmSPQoG.js} +1 -1
  108. package/dist/client/assets/{index-D_3Jk9KL.js → index-B1qCIHJ3.js} +3 -3
  109. package/dist/client/assets/{index-C8WcR_-D.js → index-BLP_NWr9.js} +1 -1
  110. package/dist/client/assets/{index-CbzaZ7I7.js → index-BhrfyqJb.js} +1 -1
  111. package/dist/client/assets/{index-drugjJAP.js → index-CFrDyMv4.js} +1 -1
  112. package/dist/client/assets/{index-B6d99Zuw.js → index-CJmFeE3K.js} +1 -1
  113. package/dist/client/assets/{index-DeXpWuKZ.js → index-ClaOaPuX.js} +1 -1
  114. package/dist/client/assets/{index-DGQApBQJ.js → index-Cz1zwCgF.js} +1 -1
  115. package/dist/client/assets/{index-DCvlf1Ug.js → index-D29vnKkc.js} +1 -1
  116. package/dist/client/assets/{index-DUn-Pr9h.js → index-D88XRGaR.js} +1 -1
  117. package/dist/client/assets/{index-B3mw6d9V.js → index-DFdG3_6f.js} +29 -29
  118. package/dist/client/assets/{index-Bz0qWBv4.js → index-DU8RlIE-.js} +1 -1
  119. package/dist/client/assets/{index-CLo4P1Xt.js → index-kh2gO1Q0.js} +1 -1
  120. package/dist/client/assets/{index-nLTsAUH1.js → index-lXaTSaXR.js} +1 -1
  121. package/dist/client/assets/{index-redirect-BOpH_F8d.js → index-redirect-xzE9BNPC.js} +1 -1
  122. package/dist/client/assets/{index-CCt42fhd.js → index-vc1VCAWB.js} +7 -7
  123. package/dist/client/assets/{input-1TVgmysx.js → input-rnsF3_0V.js} +1 -1
  124. package/dist/client/assets/{integration-icon-D1L6NAI-.js → integration-icon-rxB49VPl.js} +1 -1
  125. package/dist/client/assets/{invite-member-dialog-DzaA-En6.js → invite-member-dialog-Dny9ecFq.js} +1 -1
  126. package/dist/client/assets/{label-3v7rgQ87.js → label-DEQBOnTl.js} +1 -1
  127. package/dist/client/assets/{layout-B2eLY54H.js → layout-CbvEaLVI.js} +1 -1
  128. package/dist/client/assets/{login-DJz1mHLe.js → login-BcEM9DvJ.js} +1 -1
  129. package/dist/client/assets/{mcp-oauth-DOoppcBw.js → mcp-oauth-BIPUAWfD.js} +1 -1
  130. package/dist/client/assets/{members-htdU20Ak.js → members-B5KgEDGD.js} +1 -1
  131. package/dist/client/assets/{monaco-editor-qoG_ANVE.js → monaco-editor-xk0OgTzV.js} +1 -1
  132. package/dist/client/assets/{monitoring-stats-row-dkx-6D_y.js → monitoring-stats-row-CkjS6lrV.js} +1 -1
  133. package/dist/client/assets/{multi-select-Cq9LWX9g.js → multi-select-D6StISdF.js} +1 -1
  134. package/dist/client/assets/{oauth-callback-C5CwGMPX.js → oauth-callback-D7bq8Dsd.js} +1 -1
  135. package/dist/client/assets/{oauth-callback-ai-provider-LRqpMdk_.js → oauth-callback-ai-provider-D7odjksV.js} +1 -1
  136. package/dist/client/assets/{onboarding-Bx8ZTODK.js → onboarding-D25ciDjz.js} +1 -1
  137. package/dist/client/assets/{org-install-C4nr0Vah.js → org-install-D4lSz6oR.js} +1 -1
  138. package/dist/client/assets/{org-layout-wN4G3m_j.js → org-layout-NBhmywce.js} +1 -1
  139. package/dist/client/assets/{organization-choice-Cg1WUyzX.js → organization-choice-BLTCDtSM.js} +1 -1
  140. package/dist/client/assets/{orgs-2YjmXoKn.js → orgs-CDl5WZvw.js} +1 -1
  141. package/dist/client/assets/{page-seo-form-CqzAMBmy.js → page-seo-form-Dn2BZzWp.js} +1 -1
  142. package/dist/client/assets/page-seo-sheet-D6gPnGzx.js +1 -0
  143. package/dist/client/assets/{popover-C5NpLL36.js → popover-eNSuopa_.js} +1 -1
  144. package/dist/client/assets/{post-editor-DO9iR3fF.js → post-editor-s7jhSVjH.js} +1 -1
  145. package/dist/client/assets/{primitives-DPxAocdS.js → primitives-BND-iklt.js} +1 -1
  146. package/dist/client/assets/{profile-ChprDpgA.js → profile-nthTp1vw.js} +1 -1
  147. package/dist/client/assets/project-app-view-C28MA0jD.js +1 -0
  148. package/dist/client/assets/record-editor-CtPDs04E.js +1 -0
  149. package/dist/client/assets/{redirect-editor-Beomv-cm.js → redirect-editor-CVCYp4D0.js} +1 -1
  150. package/dist/client/assets/{registry-layout-DgJdNYSo.js → registry-layout-BRW2nP3D.js} +1 -1
  151. package/dist/client/assets/registry-zAoaOJBl.js +2 -0
  152. package/dist/client/assets/{reports-2P5ajcib.js → reports-Cpe-ll8z.js} +1 -1
  153. package/dist/client/assets/{require-capability-bHFckPj9.js → require-capability-yWTtGOcC.js} +1 -1
  154. package/dist/client/assets/{required-auth-layout-CW5F7Jgk.js → required-auth-layout-HzaNZ9Ix.js} +1 -1
  155. package/dist/client/assets/{reset-password-O59NZF5c.js → reset-password-DzyAOHhz.js} +1 -1
  156. package/dist/client/assets/{roles-DYW42HYl.js → roles-DF5399XU.js} +1 -1
  157. package/dist/client/assets/{search-input-BQbdJ2he.js → search-input-u9L7wz2Z.js} +1 -1
  158. package/dist/client/assets/{secrets-B-SU-tPR.js → secrets-DYwtJmvb.js} +1 -1
  159. package/dist/client/assets/{sections-editor-Th4k2JT_.js → sections-editor-zUayR6vf.js} +1 -1
  160. package/dist/client/assets/{select-DUmSM5EM.js → select-CUf6BBFH.js} +1 -1
  161. package/dist/client/assets/{select-model-ETM53_8W.js → select-model-DUrlhVog.js} +1 -1
  162. package/dist/client/assets/{self-tool-result-IfNeydep.js → self-tool-result-BLFoZyWd.js} +1 -1
  163. package/dist/client/assets/{seo-editor-vJ4E4ytA.js → seo-editor-Bh7hqRPj.js} +1 -1
  164. package/dist/client/assets/{settings-layout-Bd59ZRXS.js → settings-layout-DOuv2KiO.js} +1 -1
  165. package/dist/client/assets/{settings-section-BR9YvGIk.js → settings-section-CrcvA2RP.js} +1 -1
  166. package/dist/client/assets/{shell-controls-CIsEVB_w.js → shell-controls-sXzeqj9w.js} +1 -1
  167. package/dist/client/assets/{shell-layout-BsXxdfbp.js → shell-layout-DWX88Cf1.js} +1 -1
  168. package/dist/client/assets/{sidebar-D6-aY7uR.js → sidebar-DT9GLcWc.js} +1 -1
  169. package/dist/client/assets/{skeleton-Ch3CZUn8.js → skeleton-Xk-X0c7C.js} +1 -1
  170. package/dist/client/assets/{sso-B0aGhfWu.js → sso-doPrtfBk.js} +1 -1
  171. package/dist/client/assets/{store-DlFKnntZ.js → store-C_ETxT11.js} +1 -1
  172. package/dist/client/assets/store-registry-it7GvVyu.js +2 -0
  173. package/dist/client/assets/{studio-tools-DoMHB93K.js → studio-tools-Cy6LKruA.js} +1 -1
  174. package/dist/client/assets/{switch-CUqj3jOe.js → switch-kJhQdfV1.js} +1 -1
  175. package/dist/client/assets/{table-pytWJ1ut.js → table-9GGVZwli.js} +1 -1
  176. package/dist/client/assets/{tabs-CkPmBMi3.js → tabs-Nq1QiIF_.js} +1 -1
  177. package/dist/client/assets/{textarea-CxTodsGS.js → textarea-CyJydEle.js} +1 -1
  178. package/dist/client/assets/{toggle-group-KVNHQOlJ.js → toggle-group-BmOm8Dfv.js} +1 -1
  179. package/dist/client/assets/{toolbar-DoZFc6_-.js → toolbar-B6qPO7L9.js} +1 -1
  180. package/dist/client/assets/{toolbar-icon-button-C8I3X4AL.js → toolbar-icon-button-BtfrM1xX.js} +1 -1
  181. package/dist/client/assets/{tooltip-gzP1o_vw.js → tooltip-B_F3N8Ku.js} +1 -1
  182. package/dist/client/assets/{use-ai-providers-B9qcHKGB.js → use-ai-providers-BHKRHo01.js} +1 -1
  183. package/dist/client/assets/{use-api-keys-Cri6sUcw.js → use-api-keys-pyDA0bUT.js} +1 -1
  184. package/dist/client/assets/{use-automations-DrXIjC9t.js → use-automations-o3_4OEu4.js} +1 -1
  185. package/dist/client/assets/{use-autosave-CNVWllu0.js → use-autosave-D5u-hG05.js} +1 -1
  186. package/dist/client/assets/{use-capability-agtn1o9e.js → use-capability-C3wSODDi.js} +1 -1
  187. package/dist/client/assets/{use-clock-tick-B0wuHOGm.js → use-clock-tick-09zOtFxm.js} +1 -1
  188. package/dist/client/assets/{use-connection-ZSSYjv0K.js → use-connection-XBbTiAbN.js} +1 -1
  189. package/dist/client/assets/{use-copy-BqcwGytp.js → use-copy-C81q2ye7.js} +1 -1
  190. package/dist/client/assets/{use-create-virtual-mcp-CfVxqhVH.js → use-create-virtual-mcp-VzmYLpGg.js} +1 -1
  191. package/dist/client/assets/{use-debounced-autosave-gzWIEzIj.js → use-debounced-autosave-flDF9ID3.js} +1 -1
  192. package/dist/client/assets/{use-debounced-value-BWnhnNaP.js → use-debounced-value-CtOZJem7.js} +1 -1
  193. package/dist/client/assets/{use-deco-credits-BmAFGsJd.js → use-deco-credits-Cl-3rzGq.js} +1 -1
  194. package/dist/client/assets/{use-decopilot-events-D2An9y3w.js → use-decopilot-events-CIGdFXEs.js} +1 -1
  195. package/dist/client/assets/{use-delete-connection-1L-Gk2Ac.js → use-delete-connection-B41BvZ6u.js} +1 -1
  196. package/dist/client/assets/{use-deployment-admin-DhXQj96y.js → use-deployment-admin-DaVn4RW7.js} +1 -1
  197. package/dist/client/assets/{use-file-configs-G2AW3Z28.js → use-file-configs-iSRUIT1Q.js} +1 -1
  198. package/dist/client/assets/{use-infinite-scroll-lD_7yXP8.js → use-infinite-scroll-DEKLBGVP.js} +1 -1
  199. package/dist/client/assets/{use-join-requests-CrMSYiEs.js → use-join-requests-DTxj9s1I.js} +1 -1
  200. package/dist/client/assets/{use-mcp-auth-status-CAFPzOhG.js → use-mcp-auth-status-DBzX9sLN.js} +1 -1
  201. package/dist/client/assets/{use-mcp-client-dIBU-iH0.js → use-mcp-client-PvP6D2Oh.js} +1 -1
  202. package/dist/client/assets/{use-mcp-tools-b8SvRxmy.js → use-mcp-tools-DFZDVKUh.js} +1 -1
  203. package/dist/client/assets/{use-members-D_W3qaJm.js → use-members-CdfkI8gK.js} +1 -1
  204. package/dist/client/assets/{use-mobile-C0WhA6Ul.js → use-mobile-BwPusW8_.js} +1 -1
  205. package/dist/client/assets/{use-navigate-to-agent-BrNg4w6S.js → use-navigate-to-agent-CbYmjAol.js} +1 -1
  206. package/dist/client/assets/{use-org-auth-client-BCp3C1EM.js → use-org-auth-client-DCceMA7B.js} +1 -1
  207. package/dist/client/assets/{use-org-sso-DR9Zr63B.js → use-org-sso-BgcVgMwU.js} +1 -1
  208. package/dist/client/assets/{use-organization-roles-CKzI9TKZ.js → use-organization-roles-DFDLdFAC.js} +1 -1
  209. package/dist/client/assets/{use-organization-settings-CaoxbJ0f.js → use-organization-settings-5q4J5aZy.js} +1 -1
  210. package/dist/client/assets/{use-registry-app-CJge9fBS.js → use-registry-app-BIwtf9Ro.js} +1 -1
  211. package/dist/client/assets/{use-registry-connections-CHUzDznJ.js → use-registry-connections-s4YIwwzi.js} +1 -1
  212. package/dist/client/assets/{use-secrets-B5nZ1TW8.js → use-secrets-B3N3V0oY.js} +1 -1
  213. package/dist/client/assets/{use-status-sounds-CqT9RAaw.js → use-status-sounds-BJfJaZba.js} +1 -1
  214. package/dist/client/assets/{use-view-mode-Bf9x9eT5.js → use-view-mode-DNOnQXUc.js} +1 -1
  215. package/dist/client/assets/{use-virtual-mcp-oeoH8Gg2.js → use-virtual-mcp-C7mIza73.js} +1 -1
  216. package/dist/client/assets/useInfiniteQuery-B1leolqj.js +1 -0
  217. package/dist/client/assets/{useRouterState-BhEGfl3u.js → useRouterState-Cbe0n_1g.js} +1 -1
  218. package/dist/client/assets/useSuspenseInfiniteQuery-BfTI5G6X.js +1 -0
  219. package/dist/client/assets/{users-BlPWlCLe.js → users-DYbXemBm.js} +1 -1
  220. package/dist/client/assets/{variant-calendar-DPQhPCIJ.js → variant-calendar-Dr4GgBpX.js} +1 -1
  221. package/dist/client/assets/{view-mode-toggle-D_1UKzjv.js → view-mode-toggle-DYvyoSgN.js} +1 -1
  222. package/dist/client/index.html +1 -1
  223. package/dist/server/cli.js +1 -1
  224. package/dist/server/server.js +1 -1
  225. package/package.json +1 -1
  226. package/dist/client/assets/page-seo-sheet-D4-wp1A-.js +0 -1
  227. package/dist/client/assets/project-app-view-DWnPqmaW.js +0 -1
  228. package/dist/client/assets/record-editor-G_5MDDzm.js +0 -1
  229. package/dist/client/assets/registry-D6LWxxJX.js +0 -2
  230. package/dist/client/assets/store-registry-aphKJLSj.js +0 -2
  231. package/dist/client/assets/useInfiniteQuery-Cmtb1pe3.js +0 -1
  232. package/dist/client/assets/useSuspenseInfiniteQuery-DOBDAIgL.js +0 -1
@@ -1 +1 @@
1
- import{r as n,aW as P,e2 as C,cP as Ee,cR as ke,cT as Se,H as xe,e3 as j}from"./index-B3mw6d9V.js";var de=1,Ie=.9,Re=.8,Ce=.17,Q=.1,Z=.999,Ae=.9999,Me=.99,$e=/[\\\/_+.#"@\[\(\{&]/,De=/[\\\/_+.#"@\[\(\{&]/g,Fe=/[\s-]/,ve=/[\s-]/g;function ee(t,l,r,f,u,c,d){if(c===l.length)return u===t.length?de:Me;var v=`${u},${c}`;if(d[v]!==void 0)return d[v];for(var b=f.charAt(c),i=r.indexOf(b,u),p=0,h,x,E,I;i>=0;)h=ee(t,l,r,f,i+1,c+1,d),h>p&&(i===u?h*=de:$e.test(t.charAt(i-1))?(h*=Re,E=t.slice(u,i-1).match(De),E&&u>0&&(h*=Math.pow(Z,E.length))):Fe.test(t.charAt(i-1))?(h*=Ie,I=t.slice(u,i-1).match(ve),I&&u>0&&(h*=Math.pow(Z,I.length))):(h*=Ce,u>0&&(h*=Math.pow(Z,i-u))),t.charAt(i)!==l.charAt(c)&&(h*=Ae)),(h<Q&&r.charAt(i-1)===f.charAt(c+1)||f.charAt(c+1)===f.charAt(c)&&r.charAt(i-1)!==f.charAt(c))&&(x=ee(t,l,r,f,i+1,c+2,d),x*Q>h&&(h=x*Q)),h>p&&(p=h),i=r.indexOf(b,i+1);return d[v]=p,p}function se(t){return t.toLowerCase().replace(ve," ")}function Ke(t,l,r){return t=r&&r.length>0?`${t+" "+r.join(" ")}`:t,ee(t,l,se(t),se(l),0,0,{})}var V='[cmdk-group=""]',_='[cmdk-group-items=""]',Pe='[cmdk-group-heading=""]',me='[cmdk-item=""]',fe=`${me}:not([aria-disabled="true"])`,te="cmdk-item-select",F="data-value",qe=(t,l,r)=>Ke(t,l,r),pe=n.createContext(void 0),L=()=>n.useContext(pe),he=n.createContext(void 0),re=()=>n.useContext(he),ge=n.createContext(void 0),be=n.forwardRef((t,l)=>{let r=K(()=>{var e,o;return{search:"",value:(o=(e=t.value)!=null?e:t.defaultValue)!=null?o:"",selectedItemId:void 0,filtered:{count:0,items:new Map,groups:new Set}}}),f=K(()=>new Set),u=K(()=>new Map),c=K(()=>new Map),d=K(()=>new Set),v=we(t),{label:b,children:i,value:p,onValueChange:h,filter:x,shouldFilter:E,loop:I,disablePointerSelection:H=!1,vimBindings:A=!0,...O}=t,T=P(),ne=P(),U=P(),M=n.useRef(null),w=Ne();$(()=>{if(p!==void 0){let e=p.trim();r.current.value=e,k.emit()}},[p]),$(()=>{w(6,ae)},[]);let k=n.useMemo(()=>({subscribe:e=>(d.current.add(e),()=>d.current.delete(e)),snapshot:()=>r.current,setState:(e,o,s)=>{var a,m,g,S;if(!Object.is(r.current[e],o)){if(r.current[e]=o,e==="search")J(),N(),w(1,G);else if(e==="value"){if(document.activeElement.hasAttribute("cmdk-input")||document.activeElement.hasAttribute("cmdk-root")){let y=document.getElementById(U);y?y.focus():(a=document.getElementById(T))==null||a.focus()}if(w(7,()=>{var y;r.current.selectedItemId=(y=D())==null?void 0:y.id,k.emit()}),s||w(5,ae),((m=v.current)==null?void 0:m.value)!==void 0){let y=o??"";(S=(g=v.current).onValueChange)==null||S.call(g,y);return}}k.emit()}},emit:()=>{d.current.forEach(e=>e())}}),[]),W=n.useMemo(()=>({value:(e,o,s)=>{var a;o!==((a=c.current.get(e))==null?void 0:a.value)&&(c.current.set(e,{value:o,keywords:s}),r.current.filtered.items.set(e,le(o,s)),w(2,()=>{N(),k.emit()}))},item:(e,o)=>(f.current.add(e),o&&(u.current.has(o)?u.current.get(o).add(e):u.current.set(o,new Set([e]))),w(3,()=>{J(),N(),r.current.value||G(),k.emit()}),()=>{c.current.delete(e),f.current.delete(e),r.current.filtered.items.delete(e);let s=D();w(4,()=>{J(),s?.getAttribute("id")===e&&G(),k.emit()})}),group:e=>(u.current.has(e)||u.current.set(e,new Set),()=>{c.current.delete(e),u.current.delete(e)}),filter:()=>v.current.shouldFilter,label:b||t["aria-label"],getDisablePointerSelection:()=>v.current.disablePointerSelection,listId:T,inputId:U,labelId:ne,listInnerRef:M}),[]);function le(e,o){var s,a;let m=(a=(s=v.current)==null?void 0:s.filter)!=null?a:qe;return e?m(e,r.current.search,o):0}function N(){if(!r.current.search||v.current.shouldFilter===!1)return;let e=r.current.filtered.items,o=[];r.current.filtered.groups.forEach(a=>{let m=u.current.get(a),g=0;m.forEach(S=>{let y=e.get(S);g=Math.max(y,g)}),o.push([a,g])});let s=M.current;q().sort((a,m)=>{var g,S;let y=a.getAttribute("id"),B=m.getAttribute("id");return((g=e.get(B))!=null?g:0)-((S=e.get(y))!=null?S:0)}).forEach(a=>{let m=a.closest(_);m?m.appendChild(a.parentElement===m?a:a.closest(`${_} > *`)):s.appendChild(a.parentElement===s?a:a.closest(`${_} > *`))}),o.sort((a,m)=>m[1]-a[1]).forEach(a=>{var m;let g=(m=M.current)==null?void 0:m.querySelector(`${V}[${F}="${encodeURIComponent(a[0])}"]`);g?.parentElement.appendChild(g)})}function G(){let e=q().find(s=>s.getAttribute("aria-disabled")!=="true"),o=e?.getAttribute(F);k.setState("value",o||void 0)}function J(){var e,o,s,a;if(!r.current.search||v.current.shouldFilter===!1){r.current.filtered.count=f.current.size;return}r.current.filtered.groups=new Set;let m=0;for(let g of f.current){let S=(o=(e=c.current.get(g))==null?void 0:e.value)!=null?o:"",y=(a=(s=c.current.get(g))==null?void 0:s.keywords)!=null?a:[],B=le(S,y);r.current.filtered.items.set(g,B),B>0&&m++}for(let[g,S]of u.current)for(let y of S)if(r.current.filtered.items.get(y)>0){r.current.filtered.groups.add(g);break}r.current.filtered.count=m}function ae(){var e,o,s;let a=D();a&&(((e=a.parentElement)==null?void 0:e.firstChild)===a&&((s=(o=a.closest(V))==null?void 0:o.querySelector(Pe))==null||s.scrollIntoView({block:"nearest"})),a.scrollIntoView({block:"nearest"}))}function D(){var e;return(e=M.current)==null?void 0:e.querySelector(`${me}[aria-selected="true"]`)}function q(){var e;return Array.from(((e=M.current)==null?void 0:e.querySelectorAll(fe))||[])}function X(e){let o=q()[e];o&&k.setState("value",o.getAttribute(F))}function Y(e){var o;let s=D(),a=q(),m=a.findIndex(S=>S===s),g=a[m+e];(o=v.current)!=null&&o.loop&&(g=m+e<0?a[a.length-1]:m+e===a.length?a[0]:a[m+e]),g&&k.setState("value",g.getAttribute(F))}function ue(e){let o=D(),s=o?.closest(V),a;for(;s&&!a;)s=e>0?Ue(s,V):We(s,V),a=s?.querySelector(fe);a?k.setState("value",a.getAttribute(F)):Y(e)}let ie=()=>X(q().length-1),oe=e=>{e.preventDefault(),e.metaKey?ie():e.altKey?ue(1):Y(1)},ce=e=>{e.preventDefault(),e.metaKey?X(0):e.altKey?ue(-1):Y(-1)};return n.createElement(C.div,{ref:l,tabIndex:-1,...O,"cmdk-root":"",onKeyDown:e=>{var o;(o=O.onKeyDown)==null||o.call(O,e);let s=e.nativeEvent.isComposing||e.keyCode===229;if(!(e.defaultPrevented||s))switch(e.key){case"n":case"j":{A&&e.ctrlKey&&oe(e);break}case"ArrowDown":{oe(e);break}case"p":case"k":{A&&e.ctrlKey&&ce(e);break}case"ArrowUp":{ce(e);break}case"Home":{e.preventDefault(),X(0);break}case"End":{e.preventDefault(),ie();break}case"Enter":{e.preventDefault();let a=D();if(a){let m=new Event(te);a.dispatchEvent(m)}}}}},n.createElement("label",{"cmdk-label":"",htmlFor:W.inputId,id:W.labelId,style:Je},b),z(t,e=>n.createElement(he.Provider,{value:k},n.createElement(pe.Provider,{value:W},e))))}),Ve=n.forwardRef((t,l)=>{var r,f;let u=P(),c=n.useRef(null),d=n.useContext(ge),v=L(),b=we(t),i=(f=(r=b.current)==null?void 0:r.forceMount)!=null?f:d?.forceMount;$(()=>{if(!i)return v.item(u,d?.id)},[i]);let p=ye(u,c,[t.value,t.children,c],t.keywords),h=re(),x=R(w=>w.value&&w.value===p.current),E=R(w=>i||v.filter()===!1?!0:w.search?w.filtered.items.get(u)>0:!0);n.useEffect(()=>{let w=c.current;if(!(!w||t.disabled))return w.addEventListener(te,I),()=>w.removeEventListener(te,I)},[E,t.onSelect,t.disabled]);function I(){var w,k;H(),(k=(w=b.current).onSelect)==null||k.call(w,p.current)}function H(){h.setState("value",p.current,!0)}if(!E)return null;let{disabled:A,value:O,onSelect:T,forceMount:ne,keywords:U,...M}=t;return n.createElement(C.div,{ref:j(c,l),...M,id:u,"cmdk-item":"",role:"option","aria-disabled":!!A,"aria-selected":!!x,"data-disabled":!!A,"data-selected":!!x,onPointerMove:A||v.getDisablePointerSelection()?void 0:H,onClick:A?void 0:I},t.children)}),je=n.forwardRef((t,l)=>{let{heading:r,children:f,forceMount:u,...c}=t,d=P(),v=n.useRef(null),b=n.useRef(null),i=P(),p=L(),h=R(E=>u||p.filter()===!1?!0:E.search?E.filtered.groups.has(d):!0);$(()=>p.group(d),[]),ye(d,v,[t.value,t.heading,b]);let x=n.useMemo(()=>({id:d,forceMount:u}),[u]);return n.createElement(C.div,{ref:j(v,l),...c,"cmdk-group":"",role:"presentation",hidden:h?void 0:!0},r&&n.createElement("div",{ref:b,"cmdk-group-heading":"","aria-hidden":!0,id:i},r),z(t,E=>n.createElement("div",{"cmdk-group-items":"",role:"group","aria-labelledby":r?i:void 0},n.createElement(ge.Provider,{value:x},E))))}),Le=n.forwardRef((t,l)=>{let{alwaysRender:r,...f}=t,u=n.useRef(null),c=R(d=>!d.search);return!r&&!c?null:n.createElement(C.div,{ref:j(u,l),...f,"cmdk-separator":"",role:"separator"})}),Oe=n.forwardRef((t,l)=>{let{onValueChange:r,...f}=t,u=t.value!=null,c=re(),d=R(i=>i.search),v=R(i=>i.selectedItemId),b=L();return n.useEffect(()=>{t.value!=null&&c.setState("search",t.value)},[t.value]),n.createElement(C.input,{ref:l,...f,"cmdk-input":"",autoComplete:"off",autoCorrect:"off",spellCheck:!1,"aria-autocomplete":"list",role:"combobox","aria-expanded":!0,"aria-controls":b.listId,"aria-labelledby":b.labelId,"aria-activedescendant":v,id:b.inputId,type:"text",value:u?t.value:d,onChange:i=>{u||c.setState("search",i.target.value),r?.(i.target.value)}})}),Be=n.forwardRef((t,l)=>{let{children:r,label:f="Suggestions",...u}=t,c=n.useRef(null),d=n.useRef(null),v=R(i=>i.selectedItemId),b=L();return n.useEffect(()=>{if(d.current&&c.current){let i=d.current,p=c.current,h,x=new ResizeObserver(()=>{h=requestAnimationFrame(()=>{let E=i.offsetHeight;p.style.setProperty("--cmdk-list-height",E.toFixed(1)+"px")})});return x.observe(i),()=>{cancelAnimationFrame(h),x.unobserve(i)}}},[]),n.createElement(C.div,{ref:j(c,l),...u,"cmdk-list":"",role:"listbox",tabIndex:-1,"aria-activedescendant":v,"aria-label":f,id:b.listId},z(t,i=>n.createElement("div",{ref:j(d,b.listInnerRef),"cmdk-list-sizer":""},i)))}),ze=n.forwardRef((t,l)=>{let{open:r,onOpenChange:f,overlayClassName:u,contentClassName:c,container:d,...v}=t;return n.createElement(Ee,{open:r,onOpenChange:f},n.createElement(ke,{container:d},n.createElement(Se,{"cmdk-overlay":"",className:u}),n.createElement(xe,{"aria-label":t.label,"cmdk-dialog":"",className:c},n.createElement(be,{ref:l,...v}))))}),He=n.forwardRef((t,l)=>R(r=>r.filtered.count===0)?n.createElement(C.div,{ref:l,...t,"cmdk-empty":"",role:"presentation"}):null),Te=n.forwardRef((t,l)=>{let{progress:r,children:f,label:u="Loading...",...c}=t;return n.createElement(C.div,{ref:l,...c,"cmdk-loading":"",role:"progressbar","aria-valuenow":r,"aria-valuemin":0,"aria-valuemax":100,"aria-label":u},z(t,d=>n.createElement("div",{"aria-hidden":!0},d)))}),Ye=Object.assign(be,{List:Be,Item:Ve,Input:Oe,Group:je,Separator:Le,Dialog:ze,Empty:He,Loading:Te});function Ue(t,l){let r=t.nextElementSibling;for(;r;){if(r.matches(l))return r;r=r.nextElementSibling}}function We(t,l){let r=t.previousElementSibling;for(;r;){if(r.matches(l))return r;r=r.previousElementSibling}}function we(t){let l=n.useRef(t);return $(()=>{l.current=t}),l}var $=typeof window>"u"?n.useEffect:n.useLayoutEffect;function K(t){let l=n.useRef();return l.current===void 0&&(l.current=t()),l}function R(t){let l=re(),r=()=>t(l.snapshot());return n.useSyncExternalStore(l.subscribe,r,r)}function ye(t,l,r,f=[]){let u=n.useRef(),c=L();return $(()=>{var d;let v=(()=>{var i;for(let p of r){if(typeof p=="string")return p.trim();if(typeof p=="object"&&"current"in p)return p.current?(i=p.current.textContent)==null?void 0:i.trim():u.current}})(),b=f.map(i=>i.trim());c.value(t,v,b),(d=l.current)==null||d.setAttribute(F,v),u.current=v}),u}var Ne=()=>{let[t,l]=n.useState(),r=K(()=>new Map);return $(()=>{r.current.forEach(f=>f()),r.current=new Map},[t]),(f,u)=>{r.current.set(f,u),l({})}};function Ge(t){let l=t.type;return typeof l=="function"?l(t.props):"render"in l?l.render(t.props):t}function z({asChild:t,children:l},r){return t&&n.isValidElement(l)?n.cloneElement(Ge(l),{ref:l.ref},r(l.props.children)):r(l)}var Je={position:"absolute",width:"1px",height:"1px",padding:"0",margin:"-1px",overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0"};export{Ye as _};
1
+ import{r as n,aW as P,e2 as C,cP as Ee,cR as ke,cT as Se,H as xe,e3 as j}from"./index-DFdG3_6f.js";var de=1,Ie=.9,Re=.8,Ce=.17,Q=.1,Z=.999,Ae=.9999,Me=.99,$e=/[\\\/_+.#"@\[\(\{&]/,De=/[\\\/_+.#"@\[\(\{&]/g,Fe=/[\s-]/,ve=/[\s-]/g;function ee(t,l,r,f,u,c,d){if(c===l.length)return u===t.length?de:Me;var v=`${u},${c}`;if(d[v]!==void 0)return d[v];for(var b=f.charAt(c),i=r.indexOf(b,u),p=0,h,x,E,I;i>=0;)h=ee(t,l,r,f,i+1,c+1,d),h>p&&(i===u?h*=de:$e.test(t.charAt(i-1))?(h*=Re,E=t.slice(u,i-1).match(De),E&&u>0&&(h*=Math.pow(Z,E.length))):Fe.test(t.charAt(i-1))?(h*=Ie,I=t.slice(u,i-1).match(ve),I&&u>0&&(h*=Math.pow(Z,I.length))):(h*=Ce,u>0&&(h*=Math.pow(Z,i-u))),t.charAt(i)!==l.charAt(c)&&(h*=Ae)),(h<Q&&r.charAt(i-1)===f.charAt(c+1)||f.charAt(c+1)===f.charAt(c)&&r.charAt(i-1)!==f.charAt(c))&&(x=ee(t,l,r,f,i+1,c+2,d),x*Q>h&&(h=x*Q)),h>p&&(p=h),i=r.indexOf(b,i+1);return d[v]=p,p}function se(t){return t.toLowerCase().replace(ve," ")}function Ke(t,l,r){return t=r&&r.length>0?`${t+" "+r.join(" ")}`:t,ee(t,l,se(t),se(l),0,0,{})}var V='[cmdk-group=""]',_='[cmdk-group-items=""]',Pe='[cmdk-group-heading=""]',me='[cmdk-item=""]',fe=`${me}:not([aria-disabled="true"])`,te="cmdk-item-select",F="data-value",qe=(t,l,r)=>Ke(t,l,r),pe=n.createContext(void 0),L=()=>n.useContext(pe),he=n.createContext(void 0),re=()=>n.useContext(he),ge=n.createContext(void 0),be=n.forwardRef((t,l)=>{let r=K(()=>{var e,o;return{search:"",value:(o=(e=t.value)!=null?e:t.defaultValue)!=null?o:"",selectedItemId:void 0,filtered:{count:0,items:new Map,groups:new Set}}}),f=K(()=>new Set),u=K(()=>new Map),c=K(()=>new Map),d=K(()=>new Set),v=we(t),{label:b,children:i,value:p,onValueChange:h,filter:x,shouldFilter:E,loop:I,disablePointerSelection:H=!1,vimBindings:A=!0,...O}=t,T=P(),ne=P(),U=P(),M=n.useRef(null),w=Ne();$(()=>{if(p!==void 0){let e=p.trim();r.current.value=e,k.emit()}},[p]),$(()=>{w(6,ae)},[]);let k=n.useMemo(()=>({subscribe:e=>(d.current.add(e),()=>d.current.delete(e)),snapshot:()=>r.current,setState:(e,o,s)=>{var a,m,g,S;if(!Object.is(r.current[e],o)){if(r.current[e]=o,e==="search")J(),N(),w(1,G);else if(e==="value"){if(document.activeElement.hasAttribute("cmdk-input")||document.activeElement.hasAttribute("cmdk-root")){let y=document.getElementById(U);y?y.focus():(a=document.getElementById(T))==null||a.focus()}if(w(7,()=>{var y;r.current.selectedItemId=(y=D())==null?void 0:y.id,k.emit()}),s||w(5,ae),((m=v.current)==null?void 0:m.value)!==void 0){let y=o??"";(S=(g=v.current).onValueChange)==null||S.call(g,y);return}}k.emit()}},emit:()=>{d.current.forEach(e=>e())}}),[]),W=n.useMemo(()=>({value:(e,o,s)=>{var a;o!==((a=c.current.get(e))==null?void 0:a.value)&&(c.current.set(e,{value:o,keywords:s}),r.current.filtered.items.set(e,le(o,s)),w(2,()=>{N(),k.emit()}))},item:(e,o)=>(f.current.add(e),o&&(u.current.has(o)?u.current.get(o).add(e):u.current.set(o,new Set([e]))),w(3,()=>{J(),N(),r.current.value||G(),k.emit()}),()=>{c.current.delete(e),f.current.delete(e),r.current.filtered.items.delete(e);let s=D();w(4,()=>{J(),s?.getAttribute("id")===e&&G(),k.emit()})}),group:e=>(u.current.has(e)||u.current.set(e,new Set),()=>{c.current.delete(e),u.current.delete(e)}),filter:()=>v.current.shouldFilter,label:b||t["aria-label"],getDisablePointerSelection:()=>v.current.disablePointerSelection,listId:T,inputId:U,labelId:ne,listInnerRef:M}),[]);function le(e,o){var s,a;let m=(a=(s=v.current)==null?void 0:s.filter)!=null?a:qe;return e?m(e,r.current.search,o):0}function N(){if(!r.current.search||v.current.shouldFilter===!1)return;let e=r.current.filtered.items,o=[];r.current.filtered.groups.forEach(a=>{let m=u.current.get(a),g=0;m.forEach(S=>{let y=e.get(S);g=Math.max(y,g)}),o.push([a,g])});let s=M.current;q().sort((a,m)=>{var g,S;let y=a.getAttribute("id"),B=m.getAttribute("id");return((g=e.get(B))!=null?g:0)-((S=e.get(y))!=null?S:0)}).forEach(a=>{let m=a.closest(_);m?m.appendChild(a.parentElement===m?a:a.closest(`${_} > *`)):s.appendChild(a.parentElement===s?a:a.closest(`${_} > *`))}),o.sort((a,m)=>m[1]-a[1]).forEach(a=>{var m;let g=(m=M.current)==null?void 0:m.querySelector(`${V}[${F}="${encodeURIComponent(a[0])}"]`);g?.parentElement.appendChild(g)})}function G(){let e=q().find(s=>s.getAttribute("aria-disabled")!=="true"),o=e?.getAttribute(F);k.setState("value",o||void 0)}function J(){var e,o,s,a;if(!r.current.search||v.current.shouldFilter===!1){r.current.filtered.count=f.current.size;return}r.current.filtered.groups=new Set;let m=0;for(let g of f.current){let S=(o=(e=c.current.get(g))==null?void 0:e.value)!=null?o:"",y=(a=(s=c.current.get(g))==null?void 0:s.keywords)!=null?a:[],B=le(S,y);r.current.filtered.items.set(g,B),B>0&&m++}for(let[g,S]of u.current)for(let y of S)if(r.current.filtered.items.get(y)>0){r.current.filtered.groups.add(g);break}r.current.filtered.count=m}function ae(){var e,o,s;let a=D();a&&(((e=a.parentElement)==null?void 0:e.firstChild)===a&&((s=(o=a.closest(V))==null?void 0:o.querySelector(Pe))==null||s.scrollIntoView({block:"nearest"})),a.scrollIntoView({block:"nearest"}))}function D(){var e;return(e=M.current)==null?void 0:e.querySelector(`${me}[aria-selected="true"]`)}function q(){var e;return Array.from(((e=M.current)==null?void 0:e.querySelectorAll(fe))||[])}function X(e){let o=q()[e];o&&k.setState("value",o.getAttribute(F))}function Y(e){var o;let s=D(),a=q(),m=a.findIndex(S=>S===s),g=a[m+e];(o=v.current)!=null&&o.loop&&(g=m+e<0?a[a.length-1]:m+e===a.length?a[0]:a[m+e]),g&&k.setState("value",g.getAttribute(F))}function ue(e){let o=D(),s=o?.closest(V),a;for(;s&&!a;)s=e>0?Ue(s,V):We(s,V),a=s?.querySelector(fe);a?k.setState("value",a.getAttribute(F)):Y(e)}let ie=()=>X(q().length-1),oe=e=>{e.preventDefault(),e.metaKey?ie():e.altKey?ue(1):Y(1)},ce=e=>{e.preventDefault(),e.metaKey?X(0):e.altKey?ue(-1):Y(-1)};return n.createElement(C.div,{ref:l,tabIndex:-1,...O,"cmdk-root":"",onKeyDown:e=>{var o;(o=O.onKeyDown)==null||o.call(O,e);let s=e.nativeEvent.isComposing||e.keyCode===229;if(!(e.defaultPrevented||s))switch(e.key){case"n":case"j":{A&&e.ctrlKey&&oe(e);break}case"ArrowDown":{oe(e);break}case"p":case"k":{A&&e.ctrlKey&&ce(e);break}case"ArrowUp":{ce(e);break}case"Home":{e.preventDefault(),X(0);break}case"End":{e.preventDefault(),ie();break}case"Enter":{e.preventDefault();let a=D();if(a){let m=new Event(te);a.dispatchEvent(m)}}}}},n.createElement("label",{"cmdk-label":"",htmlFor:W.inputId,id:W.labelId,style:Je},b),z(t,e=>n.createElement(he.Provider,{value:k},n.createElement(pe.Provider,{value:W},e))))}),Ve=n.forwardRef((t,l)=>{var r,f;let u=P(),c=n.useRef(null),d=n.useContext(ge),v=L(),b=we(t),i=(f=(r=b.current)==null?void 0:r.forceMount)!=null?f:d?.forceMount;$(()=>{if(!i)return v.item(u,d?.id)},[i]);let p=ye(u,c,[t.value,t.children,c],t.keywords),h=re(),x=R(w=>w.value&&w.value===p.current),E=R(w=>i||v.filter()===!1?!0:w.search?w.filtered.items.get(u)>0:!0);n.useEffect(()=>{let w=c.current;if(!(!w||t.disabled))return w.addEventListener(te,I),()=>w.removeEventListener(te,I)},[E,t.onSelect,t.disabled]);function I(){var w,k;H(),(k=(w=b.current).onSelect)==null||k.call(w,p.current)}function H(){h.setState("value",p.current,!0)}if(!E)return null;let{disabled:A,value:O,onSelect:T,forceMount:ne,keywords:U,...M}=t;return n.createElement(C.div,{ref:j(c,l),...M,id:u,"cmdk-item":"",role:"option","aria-disabled":!!A,"aria-selected":!!x,"data-disabled":!!A,"data-selected":!!x,onPointerMove:A||v.getDisablePointerSelection()?void 0:H,onClick:A?void 0:I},t.children)}),je=n.forwardRef((t,l)=>{let{heading:r,children:f,forceMount:u,...c}=t,d=P(),v=n.useRef(null),b=n.useRef(null),i=P(),p=L(),h=R(E=>u||p.filter()===!1?!0:E.search?E.filtered.groups.has(d):!0);$(()=>p.group(d),[]),ye(d,v,[t.value,t.heading,b]);let x=n.useMemo(()=>({id:d,forceMount:u}),[u]);return n.createElement(C.div,{ref:j(v,l),...c,"cmdk-group":"",role:"presentation",hidden:h?void 0:!0},r&&n.createElement("div",{ref:b,"cmdk-group-heading":"","aria-hidden":!0,id:i},r),z(t,E=>n.createElement("div",{"cmdk-group-items":"",role:"group","aria-labelledby":r?i:void 0},n.createElement(ge.Provider,{value:x},E))))}),Le=n.forwardRef((t,l)=>{let{alwaysRender:r,...f}=t,u=n.useRef(null),c=R(d=>!d.search);return!r&&!c?null:n.createElement(C.div,{ref:j(u,l),...f,"cmdk-separator":"",role:"separator"})}),Oe=n.forwardRef((t,l)=>{let{onValueChange:r,...f}=t,u=t.value!=null,c=re(),d=R(i=>i.search),v=R(i=>i.selectedItemId),b=L();return n.useEffect(()=>{t.value!=null&&c.setState("search",t.value)},[t.value]),n.createElement(C.input,{ref:l,...f,"cmdk-input":"",autoComplete:"off",autoCorrect:"off",spellCheck:!1,"aria-autocomplete":"list",role:"combobox","aria-expanded":!0,"aria-controls":b.listId,"aria-labelledby":b.labelId,"aria-activedescendant":v,id:b.inputId,type:"text",value:u?t.value:d,onChange:i=>{u||c.setState("search",i.target.value),r?.(i.target.value)}})}),Be=n.forwardRef((t,l)=>{let{children:r,label:f="Suggestions",...u}=t,c=n.useRef(null),d=n.useRef(null),v=R(i=>i.selectedItemId),b=L();return n.useEffect(()=>{if(d.current&&c.current){let i=d.current,p=c.current,h,x=new ResizeObserver(()=>{h=requestAnimationFrame(()=>{let E=i.offsetHeight;p.style.setProperty("--cmdk-list-height",E.toFixed(1)+"px")})});return x.observe(i),()=>{cancelAnimationFrame(h),x.unobserve(i)}}},[]),n.createElement(C.div,{ref:j(c,l),...u,"cmdk-list":"",role:"listbox",tabIndex:-1,"aria-activedescendant":v,"aria-label":f,id:b.listId},z(t,i=>n.createElement("div",{ref:j(d,b.listInnerRef),"cmdk-list-sizer":""},i)))}),ze=n.forwardRef((t,l)=>{let{open:r,onOpenChange:f,overlayClassName:u,contentClassName:c,container:d,...v}=t;return n.createElement(Ee,{open:r,onOpenChange:f},n.createElement(ke,{container:d},n.createElement(Se,{"cmdk-overlay":"",className:u}),n.createElement(xe,{"aria-label":t.label,"cmdk-dialog":"",className:c},n.createElement(be,{ref:l,...v}))))}),He=n.forwardRef((t,l)=>R(r=>r.filtered.count===0)?n.createElement(C.div,{ref:l,...t,"cmdk-empty":"",role:"presentation"}):null),Te=n.forwardRef((t,l)=>{let{progress:r,children:f,label:u="Loading...",...c}=t;return n.createElement(C.div,{ref:l,...c,"cmdk-loading":"",role:"progressbar","aria-valuenow":r,"aria-valuemin":0,"aria-valuemax":100,"aria-label":u},z(t,d=>n.createElement("div",{"aria-hidden":!0},d)))}),Ye=Object.assign(be,{List:Be,Item:Ve,Input:Oe,Group:je,Separator:Le,Dialog:ze,Empty:He,Loading:Te});function Ue(t,l){let r=t.nextElementSibling;for(;r;){if(r.matches(l))return r;r=r.nextElementSibling}}function We(t,l){let r=t.previousElementSibling;for(;r;){if(r.matches(l))return r;r=r.previousElementSibling}}function we(t){let l=n.useRef(t);return $(()=>{l.current=t}),l}var $=typeof window>"u"?n.useEffect:n.useLayoutEffect;function K(t){let l=n.useRef();return l.current===void 0&&(l.current=t()),l}function R(t){let l=re(),r=()=>t(l.snapshot());return n.useSyncExternalStore(l.subscribe,r,r)}function ye(t,l,r,f=[]){let u=n.useRef(),c=L();return $(()=>{var d;let v=(()=>{var i;for(let p of r){if(typeof p=="string")return p.trim();if(typeof p=="object"&&"current"in p)return p.current?(i=p.current.textContent)==null?void 0:i.trim():u.current}})(),b=f.map(i=>i.trim());c.value(t,v,b),(d=l.current)==null||d.setAttribute(F,v),u.current=v}),u}var Ne=()=>{let[t,l]=n.useState(),r=K(()=>new Map);return $(()=>{r.current.forEach(f=>f()),r.current=new Map},[t]),(f,u)=>{r.current.set(f,u),l({})}};function Ge(t){let l=t.type;return typeof l=="function"?l(t.props):"render"in l?l.render(t.props):t}function z({asChild:t,children:l},r){return t&&n.isValidElement(l)?n.cloneElement(Ge(l),{ref:l.ref},r(l.props.children)):r(l)}var Je={position:"absolute",width:"1px",height:"1px",padding:"0",margin:"-1px",overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0"};export{Ye as _};
@@ -1,4 +1,4 @@
1
- import{c as E,F as ue,o as tt,d as Xe,K as X,n as oe,aZ as kn,r as N,aq as Es,m as de,j as l,v as Ds,k as Ts,B as Z,i as se,aM as Sn,t as fe,y as Fs,L as Is,e as Ls,b as Nn,u as Pn,E as Dt}from"./index-B3mw6d9V.js";import{s as Cn}from"./Eye-BCWEcnlS.js";import{a as ht}from"./Palette-J3W4AQcQ.js";import{s as Ms}from"./Plus-DcI7xaXC.js";import{i as Os}from"./SearchLg-m2tN2z_q.js";import{i as mt}from"./Upload01-Bdm_yBtp.js";import{s as zn}from"./XClose-C1HOoFIF.js";import{i as Ut}from"./Zap-C9C0XcWZ.js";import{u as $n}from"./use-mobile-C0WhA6Ul.js";import{f as Rs,e as As,b as _s,A as Bs,a as Us,d as Hs,c as Ks,g as qs}from"./alert-dialog-hIk4u9Gb.js";import{a as En,b as Ue,d as nt,e as st,i as Dn,h as Ws,c as Vs}from"./dialog-D8-F1Dpf.js";import{I as Ye}from"./input-1TVgmysx.js";import{F as Ne,M as Ht,d as Tn}from"./file-type-icon-DaKccIVJ.js";import{T as Gs}from"./toolbar-DoZFc6_-.js";import{a as Xs}from"./Package-CjrrIbcY.js";import{u as Qs}from"./use-debounced-value-BWnhnNaP.js";import{p as gt,b as ne,a as Me,c as Fn,d as Ys}from"./location-BpLtHjTZ.js";import{b as Zs,f as dt,s as Js,c as nn,d as er,g as tr,i as nr,h as In,a as Ln,j as sr,e as rr}from"./ZoomOut-CLMb9fqF.js";import{S as ce}from"./skeleton-Ch3CZUn8.js";import{T as lr}from"./textarea-CxTodsGS.js";import{t as ir}from"./ChevronDown-C7k6Nvz7.js";import{n as ar}from"./ChevronUp-BBz5QAvl.js";import{i as pt}from"./X-BlFMoNvi.js";import{P as or,a as cr,b as dr}from"./popover-C5NpLL36.js";import{b as ve,T as we,a as je}from"./tooltip-gzP1o_vw.js";import{i as ur}from"./Check-VM8y-9BQ.js";import{a as fr}from"./Copy01-BkSfK2eJ.js";import{n as Ze,i as yt}from"./Globe01-xGPYTjkz.js";import{i as Mn}from"./Key01-DfWmgmlc.js";import{n as On}from"./LinkExternal01-DwePTfJe.js";import{l as hr,F as mr}from"./index-nLTsAUH1.js";import{a as pr}from"./Image01-Dj2aQnzA.js";import{c as Kt,D as qt,b as Wt,a as Ie}from"./dropdown-menu-BTKmAvGt.js";import{i as xr}from"./LayoutLeft-CmxpuOeh.js";import{i as br}from"./ChevronRight-GsbvSb1f.js";import{t as gr}from"./Stars01-DXrHhfBN.js";import{i as Rn}from"./DotsVertical-COIpLrxe.js";import{s as An}from"./Trash01-B06SRS55.js";function _n(n){return n.contentHash??`${n.size}-${n.updatedAt}`}function be(n,e,t,s){const r=new URLSearchParams(s).toString();return`/api/${encodeURIComponent(n)}/fs/${encodeURIComponent(e)}/${t}${r?`?${r}`:""}`}async function he(n,e,t){const s=await fetch(n,e);if(s.ok||t?.allow404&&s.status===404)return s;let r="";try{r=(await s.json()).error??""}catch{}throw new Error(r||`HTTP ${s.status}`)}function Vt(n,e){const t=E.c(11),{org:s}=ue();let r;t[0]!==s.id||t[1]!==e||t[2]!==n?(r=X.orgFsList(s.id,n,e),t[0]=s.id,t[1]=e,t[2]=n,t[3]=r):r=t[3];let i;t[4]!==s.slug||t[5]!==e||t[6]!==n?(i=async()=>(await(await he(be(s.slug,n,"list",{path:e}))).json()).entries.toSorted(yr),t[4]=s.slug,t[5]=e,t[6]=n,t[7]=i):i=t[7];let a;return t[8]!==r||t[9]!==i?(a={queryKey:r,placeholderData:kn,queryFn:i},t[8]=r,t[9]=i,t[10]=a):a=t[10],oe(a)}function yr(n,e){return n.kind!==e.kind?n.kind==="dir"?-1:1:n.path.localeCompare(e.path)}function Bn(n,e,t){const s=E.c(15),{org:r}=ue();let i;s[0]!==r.id||s[1]!==e||s[2]!==n?(i=X.orgFsStat(r.id,n??"",e),s[0]=r.id,s[1]=e,s[2]=n,s[3]=i):i=s[3];const a=n!==null;let c;s[4]!==t?(c=t?.refetchIntervalWhenAbsent?f=>f.state.data?!1:t.refetchIntervalWhenAbsent??!1:void 0,s[4]=t,s[5]=c):c=s[5];let o;s[6]!==r.slug||s[7]!==e||s[8]!==n?(o=async()=>{const f=await he(be(r.slug,n??"","stat",{path:e}),void 0,{allow404:!0});return f.status===404?null:(await f.json()).entry},s[6]=r.slug,s[7]=e,s[8]=n,s[9]=o):o=s[9];let d;return s[10]!==i||s[11]!==a||s[12]!==c||s[13]!==o?(d={queryKey:i,enabled:a,refetchInterval:c,queryFn:o},s[10]=i,s[11]=a,s[12]=c,s[13]=o,s[14]=d):d=s[14],oe(d)}function vr(n){const e=E.c(9),{org:t}=ue();let s;e[0]!==t.id||e[1]!==n?(s=X.orgFsUsage(t.id,n),e[0]=t.id,e[1]=n,e[2]=s):s=e[2];let r;e[3]!==t.slug||e[4]!==n?(r=async()=>await(await he(be(t.slug,n,"usage"))).json(),e[3]=t.slug,e[4]=n,e[5]=r):r=e[5];let i;return e[6]!==s||e[7]!==r?(i={queryKey:s,queryFn:r},e[6]=s,e[7]=r,e[8]=i):i=e[8],oe(i)}function wr(n,e){const t=E.c(9),s=n===void 0?60:n,{org:r}=ue();let i;t[0]!==r.id?(i=X.orgFsRecent(r.id),t[0]=r.id,t[1]=i):i=t[1];const a=e?.enabled;let c;t[2]!==s||t[3]!==r.slug?(c=async()=>(await(await he(`/api/${encodeURIComponent(r.slug)}/fs/recent?limit=${s}`)).json()).entries,t[2]=s,t[3]=r.slug,t[4]=c):c=t[4];let o;return t[5]!==i||t[6]!==a||t[7]!==c?(o={queryKey:i,enabled:a,queryFn:c},t[5]=i,t[6]=a,t[7]=c,t[8]=o):o=t[8],oe(o)}function jr(n,e){const t=E.c(11),s=50,{org:r}=ue();let i;t[0]!==r.id||t[1]!==n?(i=X.orgFsSearch(r.id,n),t[0]=r.id,t[1]=n,t[2]=i):i=t[2];const a=n.length>0;let c;t[3]!==s||t[4]!==r.slug||t[5]!==n?(c=async()=>(await(await he(`/api/${encodeURIComponent(r.slug)}/fs/search?q=${encodeURIComponent(n)}&limit=${s}`)).json()).entries,t[3]=s,t[4]=r.slug,t[5]=n,t[6]=c):c=t[6];let o;return t[7]!==i||t[8]!==a||t[9]!==c?(o={queryKey:i,enabled:a,placeholderData:kn,queryFn:c},t[7]=i,t[8]=a,t[9]=c,t[10]=o):o=t[10],oe(o)}function Aa(n){const e=E.c(8),{org:t}=ue();let s;e[0]!==t.id?(s=X.orgFsSkills(t.id),e[0]=t.id,e[1]=s):s=e[1];const r=n?.enabled;let i;e[2]!==t.slug?(i=async()=>{const c=await he(`/api/${encodeURIComponent(t.slug)}/fs/skills`),{skills:o}=await c.json();return o.map(kr)},e[2]=t.slug,e[3]=i):i=e[3];let a;return e[4]!==s||e[5]!==r||e[6]!==i?(a={queryKey:s,enabled:r,queryFn:i},e[4]=s,e[5]=r,e[6]=i,e[7]=a):a=e[7],oe(a)}function kr(n){return{volume:n.volume,path:n.path}}async function _a(n){const e=await he(`/api/${encodeURIComponent(n)}/fs/skills`),{skills:t}=await e.json();return t}async function Sr(n,e,t){return(await he(be(n,e,"read",{path:t}))).text()}const Nr=new Set(["md","mdx","markdown","txt","text"]),Pr=25,Cr=64*1024,zr=256*1024,$r=4;function Er(n){const e=n.lastIndexOf(".");return e===-1?!1:Nr.has(n.slice(e+1).toLowerCase())}async function Ba(n,e,t){const s=t?`${t}/`:"",r=u=>u.startsWith(s)?u.slice(s.length):u,i=[],a=[],c=[{path:t,depth:0}];for(;c.length>0;){const u=c.shift();if(!u)break;let h;try{h=(await(await he(be(n,e,"list",{path:u.path}))).json()).entries}catch{continue}for(const m of[...h].sort((p,x)=>p.path.localeCompare(x.path))){if(m.kind==="dir"){u.depth<$r&&c.push({path:m.path,depth:u.depth+1});continue}Er(m.path)&&m.size<=Cr&&i.length<Pr?i.push(m.path):a.push(r(m.path))}}const o=await Promise.all(i.map(u=>Sr(n,e,u).catch(()=>null))),d=[];let f=0;return i.forEach((u,h)=>{const m=o[h];if(m==null||f+m.length>zr){a.push(r(u));return}f+=m.length,d.push({relPath:r(u),content:m})}),d.sort((u,h)=>u.relPath==="SKILL.md"?-1:h.relPath==="SKILL.md"?1:u.relPath.localeCompare(h.relPath)),a.sort(),{files:d,omittedPaths:a}}function Un(){const n=E.c(7),{org:e}=ue();let t;n[0]!==e.id?(t=X.orgFsPublicSets(e.id),n[0]=e.id,n[1]=t):t=n[1];let s;n[2]!==e.slug?(s=async()=>(await(await he(`/api/${encodeURIComponent(e.slug)}/fs/public-sets`)).json()).sets,n[2]=e.slug,n[3]=s):s=n[3];let r;return n[4]!==t||n[5]!==s?(r={queryKey:t,staleTime:3e5,queryFn:s},n[4]=t,n[5]=s,n[6]=r):r=n[6],oe(r)}function Dr(n){const e=E.c(3),{org:t}=ue();let s;return e[0]!==t.slug||e[1]!==n?(s=r=>be(t.slug,n,"read",{path:r}),e[0]=t.slug,e[1]=n,e[2]=s):s=e[2],s}function rt(){const n=E.c(2),{org:e}=ue();let t;return n[0]!==e.slug?(t=(s,r)=>be(e.slug,s,"read",{path:r}),n[0]=e.slug,n[1]=t):t=n[1],t}function Hn(n){const e=E.c(3),{org:t}=ue();let s;return e[0]!==t||e[1]!==n?(s={mutationFn:async r=>(await(await he(be(t.slug,n,"file",{path:r.path}),{method:"PUT",headers:{"content-type":r.contentType??"text/html; charset=utf-8"},body:r.body})).json()).entry},e[0]=t,e[1]=n,e[2]=s):s=e[2],Xe(s)}function Tr(n){const e=E.c(18),{org:t}=ue(),s=tt();let r;e[0]!==t||e[1]!==n?(r=async d=>(await(await he(be(t.slug,n,"public",{path:d.path}),{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify({mode:d.mode,password:d.password})})).json()).entry,e[0]=t,e[1]=n,e[2]=r):r=e[2];let i;e[3]!==t||e[4]!==s||e[5]!==n?(i=async d=>{const f=X.orgFsStat(t.id,n,d.path);await s.cancelQueries({queryKey:f});const u=s.getQueryData(f),h=d.mode!=="private";return s.setQueryData(f,m=>m&&{...m,readPublic:h,effectivePublic:h,shareMode:d.mode}),{key:f,previous:u}},e[3]=t,e[4]=s,e[5]=n,e[6]=i):i=e[6];let a;e[7]!==s?(a=(d,f,u)=>{u&&s.setQueryData(u.key,u.previous)},e[7]=s,e[8]=a):a=e[8];let c;e[9]!==t||e[10]!==s||e[11]!==n?(c=(d,f,u)=>{s.invalidateQueries({queryKey:X.orgFsStat(t.id,n,u.path)}),s.invalidateQueries({queryKey:X.orgFsVolume(t.id,n)}),s.invalidateQueries({queryKey:X.orgFsRecent(t.id)}),s.invalidateQueries({queryKey:X.orgFsSearchRoot(t.id)})},e[9]=t,e[10]=s,e[11]=n,e[12]=c):c=e[12];let o;return e[13]!==r||e[14]!==i||e[15]!==a||e[16]!==c?(o={mutationFn:r,onMutate:i,onError:a,onSettled:c},e[13]=r,e[14]=i,e[15]=a,e[16]=c,e[17]=o):o=e[17],Xe(o)}function Rt(n){const e=E.c(26),{org:t}=ue(),s=tt();let r;e[0]!==t||e[1]!==s||e[2]!==n?(r=()=>{s.invalidateQueries({queryKey:X.orgFsVolume(t.id,n)}),s.invalidateQueries({queryKey:X.orgFsRecent(t.id)}),s.invalidateQueries({queryKey:X.orgFsSearchRoot(t.id)})},e[0]=t,e[1]=s,e[2]=n,e[3]=r):r=e[3];const i=r;let a;e[4]!==t||e[5]!==n?(a=async b=>{const j=(await Promise.allSettled(b.files.map(k=>{const C=b.dir?`${b.dir}/${k.name}`:k.name;return he(be(t.slug,n,"file",{path:C}),{method:"PUT",headers:{"content-type":k.type||"application/octet-stream"},body:k})}))).find(Fr);if(j)throw j.reason},e[4]=t,e[5]=n,e[6]=a):a=e[6];let c;e[7]!==i||e[8]!==a?(c={mutationFn:a,onSettled:i},e[7]=i,e[8]=a,e[9]=c):c=e[9];const o=Xe(c);let d;e[10]!==t||e[11]!==n?(d=async b=>{await he(be(t.slug,n,"dir",{path:b}),{method:"POST"})},e[10]=t,e[11]=n,e[12]=d):d=e[12];let f;e[13]!==i||e[14]!==d?(f={mutationFn:d,onSuccess:i},e[13]=i,e[14]=d,e[15]=f):f=e[15];const u=Xe(f);let h;e[16]!==t||e[17]!==n?(h=async b=>{await he(be(t.slug,n,"file",{path:b}),{method:"DELETE"})},e[16]=t,e[17]=n,e[18]=h):h=e[18];let m;e[19]!==i||e[20]!==h?(m={mutationFn:h,onSuccess:i},e[19]=i,e[20]=h,e[21]=m):m=e[21];const p=Xe(m);let x;return e[22]!==u||e[23]!==p||e[24]!==o?(x={upload:o,mkdir:u,remove:p},e[22]=u,e[23]=p,e[24]=o,e[25]=x):x=e[25],x}function Fr(n){return n.status==="rejected"}const vt=N.createContext(null);vt.displayName="PanelGroupContext";const te={group:"data-panel-group",groupDirection:"data-panel-group-direction",groupId:"data-panel-group-id",panel:"data-panel",panelCollapsible:"data-panel-collapsible",panelId:"data-panel-id",panelSize:"data-panel-size",resizeHandle:"data-resize-handle",resizeHandleActive:"data-resize-handle-active",resizeHandleEnabled:"data-panel-resize-handle-enabled",resizeHandleId:"data-panel-resize-handle-id",resizeHandleState:"data-resize-handle-state"},Gt=10,Fe=N.useLayoutEffect,sn=Es.useId,Ir=typeof sn=="function"?sn:()=>null;let Lr=0;function Xt(n=null){const e=Ir(),t=N.useRef(n||e||null);return t.current===null&&(t.current=""+Lr++),n??t.current}function Kn({children:n,className:e="",collapsedSize:t,collapsible:s,defaultSize:r,forwardedRef:i,id:a,maxSize:c,minSize:o,onCollapse:d,onExpand:f,onResize:u,order:h,style:m,tagName:p="div",...x}){const b=N.useContext(vt);if(b===null)throw Error("Panel components must be rendered within a PanelGroup container");const{collapsePanel:y,expandPanel:j,getPanelSize:k,getPanelStyle:C,groupId:S,isPanelCollapsed:v,reevaluatePanelConstraints:g,registerPanel:$,resizePanel:W,unregisterPanel:M}=b,A=Xt(a),w=N.useRef({callbacks:{onCollapse:d,onExpand:f,onResize:u},constraints:{collapsedSize:t,collapsible:s,defaultSize:r,maxSize:c,minSize:o},id:A,idIsFromProps:a!==void 0,order:h});N.useRef({didLogMissingDefaultSizeWarning:!1}),Fe(()=>{const{callbacks:q,constraints:K}=w.current,U={...K};w.current.id=A,w.current.idIsFromProps=a!==void 0,w.current.order=h,q.onCollapse=d,q.onExpand=f,q.onResize=u,K.collapsedSize=t,K.collapsible=s,K.defaultSize=r,K.maxSize=c,K.minSize=o,(U.collapsedSize!==K.collapsedSize||U.collapsible!==K.collapsible||U.maxSize!==K.maxSize||U.minSize!==K.minSize)&&g(w.current,U)}),Fe(()=>{const q=w.current;return $(q),()=>{M(q)}},[h,A,$,M]),N.useImperativeHandle(i,()=>({collapse:()=>{y(w.current)},expand:q=>{j(w.current,q)},getId(){return A},getSize(){return k(w.current)},isCollapsed(){return v(w.current)},isExpanded(){return!v(w.current)},resize:q=>{W(w.current,q)}}),[y,j,k,v,A,W]);const G=C(w.current,r);return N.createElement(p,{...x,children:n,className:e,id:A,style:{...G,...m},[te.groupId]:S,[te.panel]:"",[te.panelCollapsible]:s||void 0,[te.panelId]:A,[te.panelSize]:parseFloat(""+G.flexGrow).toFixed(1)})}const qn=N.forwardRef((n,e)=>N.createElement(Kn,{...n,forwardedRef:e}));Kn.displayName="Panel";qn.displayName="forwardRef(Panel)";let At=null,ft=-1,Ce=null;function Mr(n,e){if(e){const t=(e&Qn)!==0,s=(e&Yn)!==0,r=(e&Zn)!==0,i=(e&Jn)!==0;if(t)return r?"se-resize":i?"ne-resize":"e-resize";if(s)return r?"sw-resize":i?"nw-resize":"w-resize";if(r)return"s-resize";if(i)return"n-resize"}switch(n){case"horizontal":return"ew-resize";case"intersection":return"move";case"vertical":return"ns-resize"}}function Or(){Ce!==null&&(document.head.removeChild(Ce),At=null,Ce=null,ft=-1)}function Tt(n,e){var t,s;const r=Mr(n,e);if(At!==r){if(At=r,Ce===null&&(Ce=document.createElement("style"),document.head.appendChild(Ce)),ft>=0){var i;(i=Ce.sheet)===null||i===void 0||i.removeRule(ft)}ft=(t=(s=Ce.sheet)===null||s===void 0?void 0:s.insertRule(`*{cursor: ${r} !important;}`))!==null&&t!==void 0?t:-1}}function Wn(n){return n.type==="keydown"}function Vn(n){return n.type.startsWith("pointer")}function Gn(n){return n.type.startsWith("mouse")}function wt(n){if(Vn(n)){if(n.isPrimary)return{x:n.clientX,y:n.clientY}}else if(Gn(n))return{x:n.clientX,y:n.clientY};return{x:1/0,y:1/0}}function Rr(){if(typeof matchMedia=="function")return matchMedia("(pointer:coarse)").matches?"coarse":"fine"}function Ar(n,e,t){return n.x<e.x+e.width&&n.x+n.width>e.x&&n.y<e.y+e.height&&n.y+n.height>e.y}function _r(n,e){if(n===e)throw new Error("Cannot compare node with itself");const t={a:an(n),b:an(e)};let s;for(;t.a.at(-1)===t.b.at(-1);)n=t.a.pop(),e=t.b.pop(),s=n;V(s,"Stacking order can only be calculated for elements with a common ancestor");const r={a:ln(rn(t.a)),b:ln(rn(t.b))};if(r.a===r.b){const i=s.childNodes,a={a:t.a.at(-1),b:t.b.at(-1)};let c=i.length;for(;c--;){const o=i[c];if(o===a.a)return 1;if(o===a.b)return-1}}return Math.sign(r.a-r.b)}const Br=/\b(?:position|zIndex|opacity|transform|webkitTransform|mixBlendMode|filter|webkitFilter|isolation)\b/;function Ur(n){var e;const t=getComputedStyle((e=Xn(n))!==null&&e!==void 0?e:n).display;return t==="flex"||t==="inline-flex"}function Hr(n){const e=getComputedStyle(n);return!!(e.position==="fixed"||e.zIndex!=="auto"&&(e.position!=="static"||Ur(n))||+e.opacity<1||"transform"in e&&e.transform!=="none"||"webkitTransform"in e&&e.webkitTransform!=="none"||"mixBlendMode"in e&&e.mixBlendMode!=="normal"||"filter"in e&&e.filter!=="none"||"webkitFilter"in e&&e.webkitFilter!=="none"||"isolation"in e&&e.isolation==="isolate"||Br.test(e.willChange)||e.webkitOverflowScrolling==="touch")}function rn(n){let e=n.length;for(;e--;){const t=n[e];if(V(t,"Missing node"),Hr(t))return t}return null}function ln(n){return n&&Number(getComputedStyle(n).zIndex)||0}function an(n){const e=[];for(;n;)e.push(n),n=Xn(n);return e}function Xn(n){const{parentNode:e}=n;return e&&e instanceof ShadowRoot?e.host:e}const Qn=1,Yn=2,Zn=4,Jn=8,Kr=Rr()==="coarse";let ge=[],Be=!1,Te=new Map,jt=new Map;const Je=new Set;function qr(n,e,t,s,r){var i;const{ownerDocument:a}=e,c={direction:t,element:e,hitAreaMargins:s,setResizeHandlerState:r},o=(i=Te.get(a))!==null&&i!==void 0?i:0;return Te.set(a,o+1),Je.add(c),xt(),function(){var f;jt.delete(n),Je.delete(c);const u=(f=Te.get(a))!==null&&f!==void 0?f:1;if(Te.set(a,u-1),xt(),u===1&&Te.delete(a),ge.includes(c)){const h=ge.indexOf(c);h>=0&&ge.splice(h,1),Yt(),r("up",!0,null)}}}function Wr(n){const{target:e}=n,{x:t,y:s}=wt(n);Be=!0,Qt({target:e,x:t,y:s}),xt(),ge.length>0&&(bt("down",n),n.preventDefault(),es(e)||n.stopImmediatePropagation())}function Ft(n){const{x:e,y:t}=wt(n);if(Be&&n.buttons===0&&(Be=!1,bt("up",n)),!Be){const{target:s}=n;Qt({target:s,x:e,y:t})}bt("move",n),Yt(),ge.length>0&&n.preventDefault()}function It(n){const{target:e}=n,{x:t,y:s}=wt(n);jt.clear(),Be=!1,ge.length>0&&(n.preventDefault(),es(e)||n.stopImmediatePropagation()),bt("up",n),Qt({target:e,x:t,y:s}),Yt(),xt()}function es(n){let e=n;for(;e;){if(e.hasAttribute(te.resizeHandle))return!0;e=e.parentElement}return!1}function Qt({target:n,x:e,y:t}){ge.splice(0);let s=null;(n instanceof HTMLElement||n instanceof SVGElement)&&(s=n),Je.forEach(r=>{const{element:i,hitAreaMargins:a}=r,c=i.getBoundingClientRect(),{bottom:o,left:d,right:f,top:u}=c,h=Kr?a.coarse:a.fine;if(e>=d-h&&e<=f+h&&t>=u-h&&t<=o+h){if(s!==null&&document.contains(s)&&i!==s&&!i.contains(s)&&!s.contains(i)&&_r(s,i)>0){let p=s,x=!1;for(;p&&!p.contains(i);){if(Ar(p.getBoundingClientRect(),c)){x=!0;break}p=p.parentElement}if(x)return}ge.push(r)}})}function Lt(n,e){jt.set(n,e)}function Yt(){let n=!1,e=!1;ge.forEach(s=>{const{direction:r}=s;r==="horizontal"?n=!0:e=!0});let t=0;jt.forEach(s=>{t|=s}),n&&e?Tt("intersection",t):n?Tt("horizontal",t):e?Tt("vertical",t):Or()}let Mt=new AbortController;function xt(){Mt.abort(),Mt=new AbortController;const n={capture:!0,signal:Mt.signal};Je.size&&(Be?(ge.length>0&&Te.forEach((e,t)=>{const{body:s}=t;e>0&&(s.addEventListener("contextmenu",It,n),s.addEventListener("pointerleave",Ft,n),s.addEventListener("pointermove",Ft,n))}),window.addEventListener("pointerup",It,n),window.addEventListener("pointercancel",It,n)):Te.forEach((e,t)=>{const{body:s}=t;e>0&&(s.addEventListener("pointerdown",Wr,n),s.addEventListener("pointermove",Ft,n))}))}function bt(n,e){Je.forEach(t=>{const{setResizeHandlerState:s}=t,r=ge.includes(t);s(n,r,e)})}function Vr(){const[n,e]=N.useState(0);return N.useCallback(()=>e(t=>t+1),[])}function V(n,e){if(!n)throw console.error(e),Error(e)}function Le(n,e,t=Gt){return n.toFixed(t)===e.toFixed(t)?0:n>e?1:-1}function ke(n,e,t=Gt){return Le(n,e,t)===0}function xe(n,e,t){return Le(n,e,t)===0}function Gr(n,e,t){if(n.length!==e.length)return!1;for(let s=0;s<n.length;s++){const r=n[s],i=e[s];if(!xe(r,i,t))return!1}return!0}function _e({panelConstraints:n,panelIndex:e,size:t}){const s=n[e];V(s!=null,`Panel constraints not found for index ${e}`);let{collapsedSize:r=0,collapsible:i,maxSize:a=100,minSize:c=0}=s;if(Le(t,c)<0)if(i){const o=(r+c)/2;Le(t,o)<0?t=r:t=c}else t=c;return t=Math.min(a,t),t=parseFloat(t.toFixed(Gt)),t}function We({delta:n,initialLayout:e,panelConstraints:t,pivotIndices:s,prevLayout:r,trigger:i}){if(xe(n,0))return e;const a=[...e],[c,o]=s;V(c!=null,"Invalid first pivot index"),V(o!=null,"Invalid second pivot index");let d=0;if(i==="keyboard"){{const u=n<0?o:c,h=t[u];V(h,`Panel constraints not found for index ${u}`);const{collapsedSize:m=0,collapsible:p,minSize:x=0}=h;if(p){const b=e[u];if(V(b!=null,`Previous layout not found for panel index ${u}`),xe(b,m)){const y=x-b;Le(y,Math.abs(n))>0&&(n=n<0?0-y:y)}}}{const u=n<0?c:o,h=t[u];V(h,`No panel constraints found for index ${u}`);const{collapsedSize:m=0,collapsible:p,minSize:x=0}=h;if(p){const b=e[u];if(V(b!=null,`Previous layout not found for panel index ${u}`),xe(b,x)){const y=b-m;Le(y,Math.abs(n))>0&&(n=n<0?0-y:y)}}}}{const u=n<0?1:-1;let h=n<0?o:c,m=0;for(;;){const x=e[h];V(x!=null,`Previous layout not found for panel index ${h}`);const y=_e({panelConstraints:t,panelIndex:h,size:100})-x;if(m+=y,h+=u,h<0||h>=t.length)break}const p=Math.min(Math.abs(n),Math.abs(m));n=n<0?0-p:p}{let h=n<0?c:o;for(;h>=0&&h<t.length;){const m=Math.abs(n)-Math.abs(d),p=e[h];V(p!=null,`Previous layout not found for panel index ${h}`);const x=p-m,b=_e({panelConstraints:t,panelIndex:h,size:x});if(!xe(p,b)&&(d+=p-b,a[h]=b,d.toPrecision(3).localeCompare(Math.abs(n).toPrecision(3),void 0,{numeric:!0})>=0))break;n<0?h--:h++}}if(Gr(r,a))return r;{const u=n<0?o:c,h=e[u];V(h!=null,`Previous layout not found for panel index ${u}`);const m=h+d,p=_e({panelConstraints:t,panelIndex:u,size:m});if(a[u]=p,!xe(p,m)){let x=m-p,y=n<0?o:c;for(;y>=0&&y<t.length;){const j=a[y];V(j!=null,`Previous layout not found for panel index ${y}`);const k=j+x,C=_e({panelConstraints:t,panelIndex:y,size:k});if(xe(j,C)||(x-=C-j,a[y]=C),xe(x,0))break;n>0?y--:y++}}}const f=a.reduce((u,h)=>h+u,0);return xe(f,100)?a:r}function Xr({layout:n,panelsArray:e,pivotIndices:t}){let s=0,r=100,i=0,a=0;const c=t[0];V(c!=null,"No pivot index found"),e.forEach((u,h)=>{const{constraints:m}=u,{maxSize:p=100,minSize:x=0}=m;h===c?(s=x,r=p):(i+=x,a+=p)});const o=Math.min(r,100-i),d=Math.max(s,100-a),f=n[c];return{valueMax:o,valueMin:d,valueNow:f}}function et(n,e=document){return Array.from(e.querySelectorAll(`[${te.resizeHandleId}][data-panel-group-id="${n}"]`))}function ts(n,e,t=document){const r=et(n,t).findIndex(i=>i.getAttribute(te.resizeHandleId)===e);return r??null}function ns(n,e,t){const s=ts(n,e,t);return s!=null?[s,s+1]:[-1,-1]}function ss(n,e=document){var t;if(e instanceof HTMLElement&&(e==null||(t=e.dataset)===null||t===void 0?void 0:t.panelGroupId)==n)return e;const s=e.querySelector(`[data-panel-group][data-panel-group-id="${n}"]`);return s||null}function kt(n,e=document){const t=e.querySelector(`[${te.resizeHandleId}="${n}"]`);return t||null}function Qr(n,e,t,s=document){var r,i,a,c;const o=kt(e,s),d=et(n,s),f=o?d.indexOf(o):-1,u=(r=(i=t[f])===null||i===void 0?void 0:i.id)!==null&&r!==void 0?r:null,h=(a=(c=t[f+1])===null||c===void 0?void 0:c.id)!==null&&a!==void 0?a:null;return[u,h]}function Yr({committedValuesRef:n,eagerValuesRef:e,groupId:t,layout:s,panelDataArray:r,panelGroupElement:i,setLayout:a}){N.useRef({didWarnAboutMissingResizeHandle:!1}),Fe(()=>{if(!i)return;const c=et(t,i);for(let o=0;o<r.length-1;o++){const{valueMax:d,valueMin:f,valueNow:u}=Xr({layout:s,panelsArray:r,pivotIndices:[o,o+1]}),h=c[o];if(h!=null){const m=r[o];V(m,`No panel data found for index "${o}"`),h.setAttribute("aria-controls",m.id),h.setAttribute("aria-valuemax",""+Math.round(d)),h.setAttribute("aria-valuemin",""+Math.round(f)),h.setAttribute("aria-valuenow",u!=null?""+Math.round(u):"")}}return()=>{c.forEach((o,d)=>{o.removeAttribute("aria-controls"),o.removeAttribute("aria-valuemax"),o.removeAttribute("aria-valuemin"),o.removeAttribute("aria-valuenow")})}},[t,s,r,i]),N.useEffect(()=>{if(!i)return;const c=e.current;V(c,"Eager values not found");const{panelDataArray:o}=c,d=ss(t,i);V(d!=null,`No group found for id "${t}"`);const f=et(t,i);V(f,`No resize handles found for group id "${t}"`);const u=f.map(h=>{const m=h.getAttribute(te.resizeHandleId);V(m,"Resize handle element has no handle id attribute");const[p,x]=Qr(t,m,o,i);if(p==null||x==null)return()=>{};const b=y=>{if(!y.defaultPrevented)switch(y.key){case"Enter":{y.preventDefault();const j=o.findIndex(k=>k.id===p);if(j>=0){const k=o[j];V(k,`No panel data found for index ${j}`);const C=s[j],{collapsedSize:S=0,collapsible:v,minSize:g=0}=k.constraints;if(C!=null&&v){const $=We({delta:xe(C,S)?g-S:S-C,initialLayout:s,panelConstraints:o.map(W=>W.constraints),pivotIndices:ns(t,m,i),prevLayout:s,trigger:"keyboard"});s!==$&&a($)}}break}}};return h.addEventListener("keydown",b),()=>{h.removeEventListener("keydown",b)}});return()=>{u.forEach(h=>h())}},[i,n,e,t,s,r,a])}function on(n,e){if(n.length!==e.length)return!1;for(let t=0;t<n.length;t++)if(n[t]!==e[t])return!1;return!0}function rs(n,e){const t=n==="horizontal",{x:s,y:r}=wt(e);return t?s:r}function Zr(n,e,t,s,r){const i=t==="horizontal",a=kt(e,r);V(a,`No resize handle element found for id "${e}"`);const c=a.getAttribute(te.groupId);V(c,"Resize handle element has no group id attribute");let{initialCursorPosition:o}=s;const d=rs(t,n),f=ss(c,r);V(f,`No group element found for id "${c}"`);const u=f.getBoundingClientRect(),h=i?u.width:u.height;return(d-o)/h*100}function Jr(n,e,t,s,r,i){if(Wn(n)){const a=t==="horizontal";let c=0;n.shiftKey?c=100:r!=null?c=r:c=10;let o=0;switch(n.key){case"ArrowDown":o=a?0:c;break;case"ArrowLeft":o=a?-c:0;break;case"ArrowRight":o=a?c:0;break;case"ArrowUp":o=a?0:-c;break;case"End":o=100;break;case"Home":o=-100;break}return o}else return s==null?0:Zr(n,e,t,s,i)}function el({panelDataArray:n}){const e=Array(n.length),t=n.map(i=>i.constraints);let s=0,r=100;for(let i=0;i<n.length;i++){const a=t[i];V(a,`Panel constraints not found for index ${i}`);const{defaultSize:c}=a;c!=null&&(s++,e[i]=c,r-=c)}for(let i=0;i<n.length;i++){const a=t[i];V(a,`Panel constraints not found for index ${i}`);const{defaultSize:c}=a;if(c!=null)continue;const o=n.length-s,d=r/o;s++,e[i]=d,r-=d}return e}function Oe(n,e,t){e.forEach((s,r)=>{const i=n[r];V(i,`Panel data not found for index ${r}`);const{callbacks:a,constraints:c,id:o}=i,{collapsedSize:d=0,collapsible:f}=c,u=t[o];if(u==null||s!==u){t[o]=s;const{onCollapse:h,onExpand:m,onResize:p}=a;p&&p(s,u),f&&(h||m)&&(m&&(u==null||ke(u,d))&&!ke(s,d)&&m(),h&&(u==null||!ke(u,d))&&ke(s,d)&&h())}})}function ut(n,e){if(n.length!==e.length)return!1;for(let t=0;t<n.length;t++)if(n[t]!=e[t])return!1;return!0}function tl({defaultSize:n,dragState:e,layout:t,panelData:s,panelIndex:r,precision:i=3}){const a=t[r];let c;return a==null?c=n!=null?n.toPrecision(i):"1":s.length===1?c="1":c=a.toPrecision(i),{flexBasis:0,flexGrow:c,flexShrink:1,overflow:"hidden",pointerEvents:e!==null?"none":void 0}}function nl(n,e=10){let t=null;return(...r)=>{t!==null&&clearTimeout(t),t=setTimeout(()=>{n(...r)},e)}}function cn(n){try{if(typeof localStorage<"u")n.getItem=e=>localStorage.getItem(e),n.setItem=(e,t)=>{localStorage.setItem(e,t)};else throw new Error("localStorage not supported in this environment")}catch(e){console.error(e),n.getItem=()=>null,n.setItem=()=>{}}}function ls(n){return`react-resizable-panels:${n}`}function is(n){return n.map(e=>{const{constraints:t,id:s,idIsFromProps:r,order:i}=e;return r?s:i?`${i}:${JSON.stringify(t)}`:JSON.stringify(t)}).sort((e,t)=>e.localeCompare(t)).join(",")}function as(n,e){try{const t=ls(n),s=e.getItem(t);if(s){const r=JSON.parse(s);if(typeof r=="object"&&r!=null)return r}}catch{}return null}function sl(n,e,t){var s,r;const i=(s=as(n,t))!==null&&s!==void 0?s:{},a=is(e);return(r=i[a])!==null&&r!==void 0?r:null}function rl(n,e,t,s,r){var i;const a=ls(n),c=is(e),o=(i=as(n,r))!==null&&i!==void 0?i:{};o[c]={expandToSizes:Object.fromEntries(t.entries()),layout:s};try{r.setItem(a,JSON.stringify(o))}catch(d){console.error(d)}}function dn({layout:n,panelConstraints:e}){const t=[...n],s=t.reduce((i,a)=>i+a,0);if(t.length!==e.length)throw Error(`Invalid ${e.length} panel layout: ${t.map(i=>`${i}%`).join(", ")}`);if(!xe(s,100)&&t.length>0)for(let i=0;i<e.length;i++){const a=t[i];V(a!=null,`No layout data found for index ${i}`);const c=100/s*a;t[i]=c}let r=0;for(let i=0;i<e.length;i++){const a=t[i];V(a!=null,`No layout data found for index ${i}`);const c=_e({panelConstraints:e,panelIndex:i,size:a});a!=c&&(r+=a-c,t[i]=c)}if(!xe(r,0))for(let i=0;i<e.length;i++){const a=t[i];V(a!=null,`No layout data found for index ${i}`);const c=a+r,o=_e({panelConstraints:e,panelIndex:i,size:c});if(a!==o&&(r-=o-a,t[i]=o,xe(r,0)))break}return t}const ll=100,Ve={getItem:n=>(cn(Ve),Ve.getItem(n)),setItem:(n,e)=>{cn(Ve),Ve.setItem(n,e)}},un={};function os({autoSaveId:n=null,children:e,className:t="",direction:s,forwardedRef:r,id:i=null,onLayout:a=null,keyboardResizeBy:c=null,storage:o=Ve,style:d,tagName:f="div",...u}){const h=Xt(i),m=N.useRef(null),[p,x]=N.useState(null),[b,y]=N.useState([]),j=Vr(),k=N.useRef({}),C=N.useRef(new Map),S=N.useRef(0),v=N.useRef({autoSaveId:n,direction:s,dragState:p,id:h,keyboardResizeBy:c,onLayout:a,storage:o}),g=N.useRef({layout:b,panelDataArray:[],panelDataArrayChanged:!1});N.useRef({didLogIdAndOrderWarning:!1,didLogPanelConstraintsWarning:!1,prevPanelIds:[]}),N.useImperativeHandle(r,()=>({getId:()=>v.current.id,getLayout:()=>{const{layout:P}=g.current;return P},setLayout:P=>{const{onLayout:I}=v.current,{layout:O,panelDataArray:F}=g.current,T=dn({layout:P,panelConstraints:F.map(R=>R.constraints)});on(O,T)||(y(T),g.current.layout=T,I&&I(T),Oe(F,T,k.current))}}),[]),Fe(()=>{v.current.autoSaveId=n,v.current.direction=s,v.current.dragState=p,v.current.id=h,v.current.onLayout=a,v.current.storage=o}),Yr({committedValuesRef:v,eagerValuesRef:g,groupId:h,layout:b,panelDataArray:g.current.panelDataArray,setLayout:y,panelGroupElement:m.current}),N.useEffect(()=>{const{panelDataArray:P}=g.current;if(n){if(b.length===0||b.length!==P.length)return;let I=un[n];I==null&&(I=nl(rl,ll),un[n]=I);const O=[...P],F=new Map(C.current);I(n,O,F,b,o)}},[n,b,o]),N.useEffect(()=>{});const $=N.useCallback(P=>{const{onLayout:I}=v.current,{layout:O,panelDataArray:F}=g.current;if(P.constraints.collapsible){const T=F.map(me=>me.constraints),{collapsedSize:R=0,panelSize:Y,pivotIndices:ee}=De(F,P,O);if(V(Y!=null,`Panel size not found for panel "${P.id}"`),!ke(Y,R)){C.current.set(P.id,Y);const pe=Re(F,P)===F.length-1?Y-R:R-Y,z=We({delta:pe,initialLayout:O,panelConstraints:T,pivotIndices:ee,prevLayout:O,trigger:"imperative-api"});ut(O,z)||(y(z),g.current.layout=z,I&&I(z),Oe(F,z,k.current))}}},[]),W=N.useCallback((P,I)=>{const{onLayout:O}=v.current,{layout:F,panelDataArray:T}=g.current;if(P.constraints.collapsible){const R=T.map(J=>J.constraints),{collapsedSize:Y=0,panelSize:ee=0,minSize:me=0,pivotIndices:pe}=De(T,P,F),z=I??me;if(ke(ee,Y)){const J=C.current.get(P.id),ie=J!=null&&J>=z?J:z,$e=Re(T,P)===T.length-1?ee-ie:ie-ee,ae=We({delta:$e,initialLayout:F,panelConstraints:R,pivotIndices:pe,prevLayout:F,trigger:"imperative-api"});ut(F,ae)||(y(ae),g.current.layout=ae,O&&O(ae),Oe(T,ae,k.current))}}},[]),M=N.useCallback(P=>{const{layout:I,panelDataArray:O}=g.current,{panelSize:F}=De(O,P,I);return V(F!=null,`Panel size not found for panel "${P.id}"`),F},[]),A=N.useCallback((P,I)=>{const{panelDataArray:O}=g.current,F=Re(O,P);return tl({defaultSize:I,dragState:p,layout:b,panelData:O,panelIndex:F})},[p,b]),w=N.useCallback(P=>{const{layout:I,panelDataArray:O}=g.current,{collapsedSize:F=0,collapsible:T,panelSize:R}=De(O,P,I);return V(R!=null,`Panel size not found for panel "${P.id}"`),T===!0&&ke(R,F)},[]),G=N.useCallback(P=>{const{layout:I,panelDataArray:O}=g.current,{collapsedSize:F=0,collapsible:T,panelSize:R}=De(O,P,I);return V(R!=null,`Panel size not found for panel "${P.id}"`),!T||Le(R,F)>0},[]),q=N.useCallback(P=>{const{panelDataArray:I}=g.current;I.push(P),I.sort((O,F)=>{const T=O.order,R=F.order;return T==null&&R==null?0:T==null?-1:R==null?1:T-R}),g.current.panelDataArrayChanged=!0,j()},[j]);Fe(()=>{if(g.current.panelDataArrayChanged){g.current.panelDataArrayChanged=!1;const{autoSaveId:P,onLayout:I,storage:O}=v.current,{layout:F,panelDataArray:T}=g.current;let R=null;if(P){const ee=sl(P,T,O);ee&&(C.current=new Map(Object.entries(ee.expandToSizes)),R=ee.layout)}R==null&&(R=el({panelDataArray:T}));const Y=dn({layout:R,panelConstraints:T.map(ee=>ee.constraints)});on(F,Y)||(y(Y),g.current.layout=Y,I&&I(Y),Oe(T,Y,k.current))}}),Fe(()=>{const P=g.current;return()=>{P.layout=[]}},[]);const K=N.useCallback(P=>{let I=!1;const O=m.current;return O&&window.getComputedStyle(O,null).getPropertyValue("direction")==="rtl"&&(I=!0),function(T){T.preventDefault();const R=m.current;if(!R)return()=>null;const{direction:Y,dragState:ee,id:me,keyboardResizeBy:pe,onLayout:z}=v.current,{layout:J,panelDataArray:ie}=g.current,{initialLayout:ye}=ee??{},$e=ns(me,P,R);let ae=Jr(T,P,Y,ee,pe,R);const Ke=Y==="horizontal";Ke&&I&&(ae=-ae);const $t=ie.map(Et=>Et.constraints),Ee=We({delta:ae,initialLayout:ye??J,panelConstraints:$t,pivotIndices:$e,prevLayout:J,trigger:Wn(T)?"keyboard":"mouse-or-touch"}),ot=!ut(J,Ee);(Vn(T)||Gn(T))&&S.current!=ae&&(S.current=ae,!ot&&ae!==0?Ke?Lt(P,ae<0?Qn:Yn):Lt(P,ae<0?Zn:Jn):Lt(P,0)),ot&&(y(Ee),g.current.layout=Ee,z&&z(Ee),Oe(ie,Ee,k.current))}},[]),U=N.useCallback((P,I)=>{const{onLayout:O}=v.current,{layout:F,panelDataArray:T}=g.current,R=T.map(J=>J.constraints),{panelSize:Y,pivotIndices:ee}=De(T,P,F);V(Y!=null,`Panel size not found for panel "${P.id}"`);const pe=Re(T,P)===T.length-1?Y-I:I-Y,z=We({delta:pe,initialLayout:F,panelConstraints:R,pivotIndices:ee,prevLayout:F,trigger:"imperative-api"});ut(F,z)||(y(z),g.current.layout=z,O&&O(z),Oe(T,z,k.current))},[]),H=N.useCallback((P,I)=>{const{layout:O,panelDataArray:F}=g.current,{collapsedSize:T=0,collapsible:R}=I,{collapsedSize:Y=0,collapsible:ee,maxSize:me=100,minSize:pe=0}=P.constraints,{panelSize:z}=De(F,P,O);z!=null&&(R&&ee&&ke(z,T)?ke(T,Y)||U(P,Y):z<pe?U(P,pe):z>me&&U(P,me))},[U]),_=N.useCallback((P,I)=>{const{direction:O}=v.current,{layout:F}=g.current;if(!m.current)return;const T=kt(P,m.current);V(T,`Drag handle element not found for id "${P}"`);const R=rs(O,I);x({dragHandleId:P,dragHandleRect:T.getBoundingClientRect(),initialCursorPosition:R,initialLayout:F})},[]),Q=N.useCallback(()=>{x(null)},[]),le=N.useCallback(P=>{const{panelDataArray:I}=g.current,O=Re(I,P);O>=0&&(I.splice(O,1),delete k.current[P.id],g.current.panelDataArrayChanged=!0,j())},[j]),D=N.useMemo(()=>({collapsePanel:$,direction:s,dragState:p,expandPanel:W,getPanelSize:M,getPanelStyle:A,groupId:h,isPanelCollapsed:w,isPanelExpanded:G,reevaluatePanelConstraints:H,registerPanel:q,registerResizeHandle:K,resizePanel:U,startDragging:_,stopDragging:Q,unregisterPanel:le,panelGroupElement:m.current}),[$,p,s,W,M,A,h,w,G,H,q,K,U,_,Q,le]),B={display:"flex",flexDirection:s==="horizontal"?"row":"column",height:"100%",overflow:"hidden",width:"100%"};return N.createElement(vt.Provider,{value:D},N.createElement(f,{...u,children:e,className:t,id:i,ref:m,style:{...B,...d},[te.group]:"",[te.groupDirection]:s,[te.groupId]:h}))}const cs=N.forwardRef((n,e)=>N.createElement(os,{...n,forwardedRef:e}));os.displayName="PanelGroup";cs.displayName="forwardRef(PanelGroup)";function Re(n,e){return n.findIndex(t=>t===e||t.id===e.id)}function De(n,e,t){const s=Re(n,e),i=s===n.length-1?[s-1,s]:[s,s+1],a=t[s];return{...e.constraints,panelSize:a,pivotIndices:i}}function il({disabled:n,handleId:e,resizeHandler:t,panelGroupElement:s}){N.useEffect(()=>{if(n||t==null||s==null)return;const r=kt(e,s);if(r==null)return;const i=a=>{if(!a.defaultPrevented)switch(a.key){case"ArrowDown":case"ArrowLeft":case"ArrowRight":case"ArrowUp":case"End":case"Home":{a.preventDefault(),t(a);break}case"F6":{a.preventDefault();const c=r.getAttribute(te.groupId);V(c,`No group element found for id "${c}"`);const o=et(c,s),d=ts(c,e,s);V(d!==null,`No resize element found for id "${e}"`);const f=a.shiftKey?d>0?d-1:o.length-1:d+1<o.length?d+1:0;o[f].focus();break}}};return r.addEventListener("keydown",i),()=>{r.removeEventListener("keydown",i)}},[s,n,e,t])}function ds({children:n=null,className:e="",disabled:t=!1,hitAreaMargins:s,id:r,onBlur:i,onClick:a,onDragging:c,onFocus:o,onPointerDown:d,onPointerUp:f,style:u={},tabIndex:h=0,tagName:m="div",...p}){var x,b;const y=N.useRef(null),j=N.useRef({onClick:a,onDragging:c,onPointerDown:d,onPointerUp:f});N.useEffect(()=>{j.current.onClick=a,j.current.onDragging=c,j.current.onPointerDown=d,j.current.onPointerUp=f});const k=N.useContext(vt);if(k===null)throw Error("PanelResizeHandle components must be rendered within a PanelGroup container");const{direction:C,groupId:S,registerResizeHandle:v,startDragging:g,stopDragging:$,panelGroupElement:W}=k,M=Xt(r),[A,w]=N.useState("inactive"),[G,q]=N.useState(!1),[K,U]=N.useState(null),H=N.useRef({state:A});Fe(()=>{H.current.state=A}),N.useEffect(()=>{if(t)U(null);else{const D=v(M);U(()=>D)}},[t,M,v]);const _=(x=s?.coarse)!==null&&x!==void 0?x:15,Q=(b=s?.fine)!==null&&b!==void 0?b:5;N.useEffect(()=>{if(t||K==null)return;const D=y.current;V(D,"Element ref not attached");let B=!1;return qr(M,D,C,{coarse:_,fine:Q},(I,O,F)=>{if(!O){w("inactive");return}switch(I){case"down":{w("drag"),B=!1,V(F,'Expected event to be defined for "down" action'),g(M,F);const{onDragging:T,onPointerDown:R}=j.current;T?.(!0),R?.();break}case"move":{const{state:T}=H.current;B=!0,T!=="drag"&&w("hover"),V(F,'Expected event to be defined for "move" action'),K(F);break}case"up":{w("hover"),$();const{onClick:T,onDragging:R,onPointerUp:Y}=j.current;R?.(!1),Y?.(),B||T?.();break}}})},[_,C,t,Q,v,M,K,g,$]),il({disabled:t,handleId:M,resizeHandler:K,panelGroupElement:W});const le={touchAction:"none",userSelect:"none"};return N.createElement(m,{...p,children:n,className:e,id:r,onBlur:()=>{q(!1),i?.()},onFocus:()=>{q(!0),o?.()},ref:y,role:"separator",style:{...le,...u},tabIndex:h,[te.groupDirection]:C,[te.groupId]:S,[te.resizeHandle]:"",[te.resizeHandleActive]:A==="drag"?"pointer":G?"keyboard":void 0,[te.resizeHandleEnabled]:!t,[te.resizeHandleId]:M,[te.resizeHandleState]:A})}ds.displayName="PanelResizeHandle";function al(n){const e=E.c(10);let t,s,r;e[0]!==n?({className:t,ref:r,...s}=n,e[0]=n,e[1]=t,e[2]=s,e[3]=r):(t=e[1],s=e[2],r=e[3]);let i;e[4]!==t?(i=de("flex h-full w-full data-[panel-group-direction=vertical]:flex-col",t),e[4]=t,e[5]=i):i=e[5];let a;return e[6]!==s||e[7]!==r||e[8]!==i?(a=l.jsx(cs,{ref:r,"data-slot":"resizable-panel-group",className:i,...s}),e[6]=s,e[7]=r,e[8]=i,e[9]=a):a=e[9],a}function fn(n){const e=E.c(4);let t;e[0]!==n?({...t}=n,e[0]=n,e[1]=t):t=e[1];let s;return e[2]!==t?(s=l.jsx(qn,{"data-slot":"resizable-panel",...t}),e[2]=t,e[3]=s):s=e[3],s}function ol(n){const e=E.c(12);let t,s,r;e[0]!==n?({withHandle:r,className:t,...s}=n,e[0]=n,e[1]=t,e[2]=s,e[3]=r):(t=e[1],s=e[2],r=e[3]);let i;e[4]!==t?(i=de("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 data-[panel-group-direction=vertical]:h-px data-[panel-group-direction=vertical]:w-full data-[panel-group-direction=vertical]:after:left-0 data-[panel-group-direction=vertical]:after:h-1 data-[panel-group-direction=vertical]:after:w-full data-[panel-group-direction=vertical]:after:-translate-y-1/2 data-[panel-group-direction=vertical]:after:translate-x-0 [&[data-panel-group-direction=vertical]>div]:rotate-90",t),e[4]=t,e[5]=i):i=e[5];let a;e[6]!==r?(a=r&&l.jsx("div",{className:"bg-border z-10 flex h-4 w-3 items-center justify-center rounded-xs border",children:l.jsx(Zs,{className:"size-2.5"})}),e[6]=r,e[7]=a):a=e[7];let c;return e[8]!==s||e[9]!==i||e[10]!==a?(c=l.jsx(ds,{"data-slot":"resizable-handle",className:i,...s,children:a}),e[8]=s,e[9]=i,e[10]=a,e[11]=c):c=e[11],c}function cl(n){if(!n||n.includes("\\")||n.includes("..")||n.includes("\0"))return!0;try{const e=decodeURIComponent(n);if(e.includes("\\")||e.includes("..")||e.includes("\0"))return!0;if(e!==n&&e.includes("/")){const t=(n.match(/\//g)??[]).length;if((e.match(/\//g)??[]).length>t)return!0}return!1}catch{return!0}}function dl(n){if(cl(n))throw new Error(`Invalid block key: ${n||"(empty)"}`)}function ul(n){try{return decodeURIComponent(n)}catch{return n}}function fl(n){return dl(n),encodeURIComponent(n)}function hl(n){return`.deco/blocks/${fl(n)}.json`}function Ua(n){return`/${hl(n)}`}const Ha=1e4,ml=3;function _t(n){return n.trim()?(n.startsWith("/")?n:`/${n}`).replace(/\/+/g,"/"):"/"}function St(n){return n.startsWith("/")?n.slice(1):n}function Ka(n){const e=St(n);return!e||e.includes("..")||e.includes("\\")?!1:e.startsWith(".deco/blocks/")||!e.startsWith("/")&&!e.includes("://")}function He(n){return n.trim()?n.startsWith("/")?n:`/${n}`:"/"}function pl(n){const e=He(n);if(e==="/")return"/";const t=e.split("/").filter(Boolean);return t.pop(),t.length===0?"/":`/${t.join("/")}`}function qa(n,e){const t=e.replace(/^\/+|\/+$/g,"");return He(t?`${n==="/"?"":n}/${t}`:n)}function Wa(n,e){return e==="directory"?n:pl(n)}function Va(n){const e=n.trim();return e?e.includes("/")||e.includes("\\")||e.includes("..")||e.includes("\0")?"Name cannot contain /, \\, or ..":null:"Name is required"}function xl(n){const e=St(n);return e?e.split("/").filter(Boolean).length:0}function Ga(n,e,t,s=!1){return{files:[...new Set([...n,...t.files])],directories:[...new Set([...e,...t.directories??[]])],truncated:s||!!t.truncated}}function Xa(n,e){return xl(n)>=ml&&!e.has(n)}function Qa(n,e,t=[]){const s=St(n);if(e.includes(s)||t.includes(s))return!0;if(!s)return!1;const r=`${s}/`;return e.some(i=>i.startsWith(r))||t.some(i=>i.startsWith(r))}function Ya(n){const e=St(n),t=".deco/blocks/";if(!e.startsWith(t)||!e.endsWith(".json"))return null;const s=e.slice(t.length,-5);return ul(s)}function bl(n){if(!n)return"plaintext";const e=n.toLowerCase();return e.endsWith(".tsx")||e.endsWith(".ts")?"typescript":e.endsWith(".jsx")||e.endsWith(".js")||e.endsWith(".mjs")||e.endsWith(".cjs")?"javascript":e.endsWith(".json")?"json":e.endsWith(".md")||e.endsWith(".mdx")?"markdown":e.endsWith(".css")?"css":e.endsWith(".scss")?"scss":e.endsWith(".html")?"html":e.endsWith(".yaml")||e.endsWith(".yml")?"yaml":e.endsWith(".xml")||e.endsWith(".svg")?"xml":e.endsWith(".py")?"python":e.endsWith(".sql")?"sql":e.endsWith(".sh")?"shell":"plaintext"}const gl="#94a3b8";function Za(n){const e=n.toLowerCase();return e.endsWith(".tsx")||e.endsWith(".ts")?{Icon:dt,color:"#3b82f6"}:e.endsWith(".jsx")||e.endsWith(".js")||e.endsWith(".mjs")||e.endsWith(".cjs")?{Icon:dt,color:"#d9a441"}:e.endsWith(".json")?{Icon:Js,color:"#cb9b3f"}:e.endsWith(".css")||e.endsWith(".scss")?{Icon:dt,color:"#06b6d4"}:e.endsWith(".html")||e.endsWith(".xml")?{Icon:dt,color:"#f97316"}:/\.(png|jpe?g|gif|webp|avif|ico|svg)$/.test(e)?{Icon:pr,color:"#a855f7"}:e.endsWith(".md")||e.endsWith(".mdx")?{Icon:nn,color:"#64748b"}:{Icon:nn,color:gl}}function Ja(n){const e=_t(n).split("/").filter(Boolean),t=["/"];let s="";for(const r of e.slice(0,-1))s+=`/${r}`,t.push(s);return t}function eo(n,e=[]){const t={path:"/",children:[]},s=new Map,r=c=>{let o=s.get(c.path);return o||(o=new Map,s.set(c.path,o)),o},i=c=>{const d=_t(c).split("/").filter(Boolean);let f=t,u="";for(const h of d){u+=`/${h}`;const m=r(f);let p=m.get(h);p?p.kind==="file"&&(p.kind="directory"):(p={name:h,path:u,kind:"directory",children:[]},f.children.push(p),m.set(h,p)),f=p}};for(const c of n){const d=_t(c).split("/").filter(Boolean);let f=t,u="";d.forEach((h,m)=>{u+=`/${h}`;const p=m===d.length-1,x=r(f);let b=x.get(h);b||(b={name:h,path:u,kind:p?"file":"directory",children:[]},f.children.push(b),x.set(h,b)),f=b})}for(const c of e)i(He(c));const a=c=>{c.sort((o,d)=>o.kind!==d.kind?o.kind==="directory"?-1:1:o.name.localeCompare(d.name));for(const o of c)o.children.length>0&&a(o.children)};return a(t.children),t.children}function yl(n,e,t=0){const s=[];for(const r of n)r.name!==".gitkeep"&&(s.push({node:r,depth:t}),r.kind==="directory"&&r.children.length>0&&e.has(r.path)&&s.push(...yl(r.children,e,t+1)));return s}function to(n){const e=[];for(const t of n.split(`
1
+ import{c as E,F as ue,o as tt,d as Xe,K as X,n as oe,aZ as kn,r as N,aq as Es,m as de,j as l,v as Ds,k as Ts,B as Z,i as se,aM as Sn,t as fe,y as Fs,L as Is,e as Ls,b as Nn,u as Pn,E as Dt}from"./index-DFdG3_6f.js";import{s as Cn}from"./Eye-qCfOvsZi.js";import{a as ht}from"./Palette-Bf6zAWx5.js";import{s as Ms}from"./Plus-DZq2iOdw.js";import{i as Os}from"./SearchLg-FUW2dkcu.js";import{i as mt}from"./Upload01-DK5Y5fMT.js";import{s as zn}from"./XClose-pko6wQGH.js";import{i as Ut}from"./Zap-CFkqNUW6.js";import{u as $n}from"./use-mobile-BwPusW8_.js";import{f as Rs,e as As,b as _s,A as Bs,a as Us,d as Hs,c as Ks,g as qs}from"./alert-dialog-B2F1dNTH.js";import{a as En,b as Ue,d as nt,e as st,i as Dn,h as Ws,c as Vs}from"./dialog-Bw4tPv_R.js";import{I as Ye}from"./input-rnsF3_0V.js";import{F as Ne,M as Ht,d as Tn}from"./file-type-icon-D2EI7lR_.js";import{T as Gs}from"./toolbar-B6qPO7L9.js";import{a as Xs}from"./Package-D6IBLzFJ.js";import{u as Qs}from"./use-debounced-value-CtOZJem7.js";import{p as gt,b as ne,a as Me,c as Fn,d as Ys}from"./location-BpLtHjTZ.js";import{b as Zs,f as dt,s as Js,c as nn,d as er,g as tr,i as nr,h as In,a as Ln,j as sr,e as rr}from"./ZoomOut-BK36ZHLR.js";import{S as ce}from"./skeleton-Xk-X0c7C.js";import{T as lr}from"./textarea-CyJydEle.js";import{t as ir}from"./ChevronDown-CERHyosp.js";import{n as ar}from"./ChevronUp-DBuwXe1o.js";import{i as pt}from"./X-CVTLw9HR.js";import{P as or,a as cr,b as dr}from"./popover-eNSuopa_.js";import{b as ve,T as we,a as je}from"./tooltip-B_F3N8Ku.js";import{i as ur}from"./Check-CGiG43y0.js";import{a as fr}from"./Copy01-CbXfMrP0.js";import{n as Ze,i as yt}from"./Globe01-DHtMl50-.js";import{i as Mn}from"./Key01-CIn1azax.js";import{n as On}from"./LinkExternal01-BD3YTNc-.js";import{l as hr,F as mr}from"./index-lXaTSaXR.js";import{a as pr}from"./Image01-BsaJzkLa.js";import{c as Kt,D as qt,b as Wt,a as Ie}from"./dropdown-menu-BltbhtJf.js";import{i as xr}from"./LayoutLeft-uE9fnaFO.js";import{i as br}from"./ChevronRight-CBwnEKjU.js";import{t as gr}from"./Stars01-VElXd1j5.js";import{i as Rn}from"./DotsVertical-Dh2-a9Ez.js";import{s as An}from"./Trash01-DsuJXHzH.js";function _n(n){return n.contentHash??`${n.size}-${n.updatedAt}`}function be(n,e,t,s){const r=new URLSearchParams(s).toString();return`/api/${encodeURIComponent(n)}/fs/${encodeURIComponent(e)}/${t}${r?`?${r}`:""}`}async function he(n,e,t){const s=await fetch(n,e);if(s.ok||t?.allow404&&s.status===404)return s;let r="";try{r=(await s.json()).error??""}catch{}throw new Error(r||`HTTP ${s.status}`)}function Vt(n,e){const t=E.c(11),{org:s}=ue();let r;t[0]!==s.id||t[1]!==e||t[2]!==n?(r=X.orgFsList(s.id,n,e),t[0]=s.id,t[1]=e,t[2]=n,t[3]=r):r=t[3];let i;t[4]!==s.slug||t[5]!==e||t[6]!==n?(i=async()=>(await(await he(be(s.slug,n,"list",{path:e}))).json()).entries.toSorted(yr),t[4]=s.slug,t[5]=e,t[6]=n,t[7]=i):i=t[7];let a;return t[8]!==r||t[9]!==i?(a={queryKey:r,placeholderData:kn,queryFn:i},t[8]=r,t[9]=i,t[10]=a):a=t[10],oe(a)}function yr(n,e){return n.kind!==e.kind?n.kind==="dir"?-1:1:n.path.localeCompare(e.path)}function Bn(n,e,t){const s=E.c(15),{org:r}=ue();let i;s[0]!==r.id||s[1]!==e||s[2]!==n?(i=X.orgFsStat(r.id,n??"",e),s[0]=r.id,s[1]=e,s[2]=n,s[3]=i):i=s[3];const a=n!==null;let c;s[4]!==t?(c=t?.refetchIntervalWhenAbsent?f=>f.state.data?!1:t.refetchIntervalWhenAbsent??!1:void 0,s[4]=t,s[5]=c):c=s[5];let o;s[6]!==r.slug||s[7]!==e||s[8]!==n?(o=async()=>{const f=await he(be(r.slug,n??"","stat",{path:e}),void 0,{allow404:!0});return f.status===404?null:(await f.json()).entry},s[6]=r.slug,s[7]=e,s[8]=n,s[9]=o):o=s[9];let d;return s[10]!==i||s[11]!==a||s[12]!==c||s[13]!==o?(d={queryKey:i,enabled:a,refetchInterval:c,queryFn:o},s[10]=i,s[11]=a,s[12]=c,s[13]=o,s[14]=d):d=s[14],oe(d)}function vr(n){const e=E.c(9),{org:t}=ue();let s;e[0]!==t.id||e[1]!==n?(s=X.orgFsUsage(t.id,n),e[0]=t.id,e[1]=n,e[2]=s):s=e[2];let r;e[3]!==t.slug||e[4]!==n?(r=async()=>await(await he(be(t.slug,n,"usage"))).json(),e[3]=t.slug,e[4]=n,e[5]=r):r=e[5];let i;return e[6]!==s||e[7]!==r?(i={queryKey:s,queryFn:r},e[6]=s,e[7]=r,e[8]=i):i=e[8],oe(i)}function wr(n,e){const t=E.c(9),s=n===void 0?60:n,{org:r}=ue();let i;t[0]!==r.id?(i=X.orgFsRecent(r.id),t[0]=r.id,t[1]=i):i=t[1];const a=e?.enabled;let c;t[2]!==s||t[3]!==r.slug?(c=async()=>(await(await he(`/api/${encodeURIComponent(r.slug)}/fs/recent?limit=${s}`)).json()).entries,t[2]=s,t[3]=r.slug,t[4]=c):c=t[4];let o;return t[5]!==i||t[6]!==a||t[7]!==c?(o={queryKey:i,enabled:a,queryFn:c},t[5]=i,t[6]=a,t[7]=c,t[8]=o):o=t[8],oe(o)}function jr(n,e){const t=E.c(11),s=50,{org:r}=ue();let i;t[0]!==r.id||t[1]!==n?(i=X.orgFsSearch(r.id,n),t[0]=r.id,t[1]=n,t[2]=i):i=t[2];const a=n.length>0;let c;t[3]!==s||t[4]!==r.slug||t[5]!==n?(c=async()=>(await(await he(`/api/${encodeURIComponent(r.slug)}/fs/search?q=${encodeURIComponent(n)}&limit=${s}`)).json()).entries,t[3]=s,t[4]=r.slug,t[5]=n,t[6]=c):c=t[6];let o;return t[7]!==i||t[8]!==a||t[9]!==c?(o={queryKey:i,enabled:a,placeholderData:kn,queryFn:c},t[7]=i,t[8]=a,t[9]=c,t[10]=o):o=t[10],oe(o)}function Aa(n){const e=E.c(8),{org:t}=ue();let s;e[0]!==t.id?(s=X.orgFsSkills(t.id),e[0]=t.id,e[1]=s):s=e[1];const r=n?.enabled;let i;e[2]!==t.slug?(i=async()=>{const c=await he(`/api/${encodeURIComponent(t.slug)}/fs/skills`),{skills:o}=await c.json();return o.map(kr)},e[2]=t.slug,e[3]=i):i=e[3];let a;return e[4]!==s||e[5]!==r||e[6]!==i?(a={queryKey:s,enabled:r,queryFn:i},e[4]=s,e[5]=r,e[6]=i,e[7]=a):a=e[7],oe(a)}function kr(n){return{volume:n.volume,path:n.path}}async function _a(n){const e=await he(`/api/${encodeURIComponent(n)}/fs/skills`),{skills:t}=await e.json();return t}async function Sr(n,e,t){return(await he(be(n,e,"read",{path:t}))).text()}const Nr=new Set(["md","mdx","markdown","txt","text"]),Pr=25,Cr=64*1024,zr=256*1024,$r=4;function Er(n){const e=n.lastIndexOf(".");return e===-1?!1:Nr.has(n.slice(e+1).toLowerCase())}async function Ba(n,e,t){const s=t?`${t}/`:"",r=u=>u.startsWith(s)?u.slice(s.length):u,i=[],a=[],c=[{path:t,depth:0}];for(;c.length>0;){const u=c.shift();if(!u)break;let h;try{h=(await(await he(be(n,e,"list",{path:u.path}))).json()).entries}catch{continue}for(const m of[...h].sort((p,x)=>p.path.localeCompare(x.path))){if(m.kind==="dir"){u.depth<$r&&c.push({path:m.path,depth:u.depth+1});continue}Er(m.path)&&m.size<=Cr&&i.length<Pr?i.push(m.path):a.push(r(m.path))}}const o=await Promise.all(i.map(u=>Sr(n,e,u).catch(()=>null))),d=[];let f=0;return i.forEach((u,h)=>{const m=o[h];if(m==null||f+m.length>zr){a.push(r(u));return}f+=m.length,d.push({relPath:r(u),content:m})}),d.sort((u,h)=>u.relPath==="SKILL.md"?-1:h.relPath==="SKILL.md"?1:u.relPath.localeCompare(h.relPath)),a.sort(),{files:d,omittedPaths:a}}function Un(){const n=E.c(7),{org:e}=ue();let t;n[0]!==e.id?(t=X.orgFsPublicSets(e.id),n[0]=e.id,n[1]=t):t=n[1];let s;n[2]!==e.slug?(s=async()=>(await(await he(`/api/${encodeURIComponent(e.slug)}/fs/public-sets`)).json()).sets,n[2]=e.slug,n[3]=s):s=n[3];let r;return n[4]!==t||n[5]!==s?(r={queryKey:t,staleTime:3e5,queryFn:s},n[4]=t,n[5]=s,n[6]=r):r=n[6],oe(r)}function Dr(n){const e=E.c(3),{org:t}=ue();let s;return e[0]!==t.slug||e[1]!==n?(s=r=>be(t.slug,n,"read",{path:r}),e[0]=t.slug,e[1]=n,e[2]=s):s=e[2],s}function rt(){const n=E.c(2),{org:e}=ue();let t;return n[0]!==e.slug?(t=(s,r)=>be(e.slug,s,"read",{path:r}),n[0]=e.slug,n[1]=t):t=n[1],t}function Hn(n){const e=E.c(3),{org:t}=ue();let s;return e[0]!==t||e[1]!==n?(s={mutationFn:async r=>(await(await he(be(t.slug,n,"file",{path:r.path}),{method:"PUT",headers:{"content-type":r.contentType??"text/html; charset=utf-8"},body:r.body})).json()).entry},e[0]=t,e[1]=n,e[2]=s):s=e[2],Xe(s)}function Tr(n){const e=E.c(18),{org:t}=ue(),s=tt();let r;e[0]!==t||e[1]!==n?(r=async d=>(await(await he(be(t.slug,n,"public",{path:d.path}),{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify({mode:d.mode,password:d.password})})).json()).entry,e[0]=t,e[1]=n,e[2]=r):r=e[2];let i;e[3]!==t||e[4]!==s||e[5]!==n?(i=async d=>{const f=X.orgFsStat(t.id,n,d.path);await s.cancelQueries({queryKey:f});const u=s.getQueryData(f),h=d.mode!=="private";return s.setQueryData(f,m=>m&&{...m,readPublic:h,effectivePublic:h,shareMode:d.mode}),{key:f,previous:u}},e[3]=t,e[4]=s,e[5]=n,e[6]=i):i=e[6];let a;e[7]!==s?(a=(d,f,u)=>{u&&s.setQueryData(u.key,u.previous)},e[7]=s,e[8]=a):a=e[8];let c;e[9]!==t||e[10]!==s||e[11]!==n?(c=(d,f,u)=>{s.invalidateQueries({queryKey:X.orgFsStat(t.id,n,u.path)}),s.invalidateQueries({queryKey:X.orgFsVolume(t.id,n)}),s.invalidateQueries({queryKey:X.orgFsRecent(t.id)}),s.invalidateQueries({queryKey:X.orgFsSearchRoot(t.id)})},e[9]=t,e[10]=s,e[11]=n,e[12]=c):c=e[12];let o;return e[13]!==r||e[14]!==i||e[15]!==a||e[16]!==c?(o={mutationFn:r,onMutate:i,onError:a,onSettled:c},e[13]=r,e[14]=i,e[15]=a,e[16]=c,e[17]=o):o=e[17],Xe(o)}function Rt(n){const e=E.c(26),{org:t}=ue(),s=tt();let r;e[0]!==t||e[1]!==s||e[2]!==n?(r=()=>{s.invalidateQueries({queryKey:X.orgFsVolume(t.id,n)}),s.invalidateQueries({queryKey:X.orgFsRecent(t.id)}),s.invalidateQueries({queryKey:X.orgFsSearchRoot(t.id)})},e[0]=t,e[1]=s,e[2]=n,e[3]=r):r=e[3];const i=r;let a;e[4]!==t||e[5]!==n?(a=async b=>{const j=(await Promise.allSettled(b.files.map(k=>{const C=b.dir?`${b.dir}/${k.name}`:k.name;return he(be(t.slug,n,"file",{path:C}),{method:"PUT",headers:{"content-type":k.type||"application/octet-stream"},body:k})}))).find(Fr);if(j)throw j.reason},e[4]=t,e[5]=n,e[6]=a):a=e[6];let c;e[7]!==i||e[8]!==a?(c={mutationFn:a,onSettled:i},e[7]=i,e[8]=a,e[9]=c):c=e[9];const o=Xe(c);let d;e[10]!==t||e[11]!==n?(d=async b=>{await he(be(t.slug,n,"dir",{path:b}),{method:"POST"})},e[10]=t,e[11]=n,e[12]=d):d=e[12];let f;e[13]!==i||e[14]!==d?(f={mutationFn:d,onSuccess:i},e[13]=i,e[14]=d,e[15]=f):f=e[15];const u=Xe(f);let h;e[16]!==t||e[17]!==n?(h=async b=>{await he(be(t.slug,n,"file",{path:b}),{method:"DELETE"})},e[16]=t,e[17]=n,e[18]=h):h=e[18];let m;e[19]!==i||e[20]!==h?(m={mutationFn:h,onSuccess:i},e[19]=i,e[20]=h,e[21]=m):m=e[21];const p=Xe(m);let x;return e[22]!==u||e[23]!==p||e[24]!==o?(x={upload:o,mkdir:u,remove:p},e[22]=u,e[23]=p,e[24]=o,e[25]=x):x=e[25],x}function Fr(n){return n.status==="rejected"}const vt=N.createContext(null);vt.displayName="PanelGroupContext";const te={group:"data-panel-group",groupDirection:"data-panel-group-direction",groupId:"data-panel-group-id",panel:"data-panel",panelCollapsible:"data-panel-collapsible",panelId:"data-panel-id",panelSize:"data-panel-size",resizeHandle:"data-resize-handle",resizeHandleActive:"data-resize-handle-active",resizeHandleEnabled:"data-panel-resize-handle-enabled",resizeHandleId:"data-panel-resize-handle-id",resizeHandleState:"data-resize-handle-state"},Gt=10,Fe=N.useLayoutEffect,sn=Es.useId,Ir=typeof sn=="function"?sn:()=>null;let Lr=0;function Xt(n=null){const e=Ir(),t=N.useRef(n||e||null);return t.current===null&&(t.current=""+Lr++),n??t.current}function Kn({children:n,className:e="",collapsedSize:t,collapsible:s,defaultSize:r,forwardedRef:i,id:a,maxSize:c,minSize:o,onCollapse:d,onExpand:f,onResize:u,order:h,style:m,tagName:p="div",...x}){const b=N.useContext(vt);if(b===null)throw Error("Panel components must be rendered within a PanelGroup container");const{collapsePanel:y,expandPanel:j,getPanelSize:k,getPanelStyle:C,groupId:S,isPanelCollapsed:v,reevaluatePanelConstraints:g,registerPanel:$,resizePanel:W,unregisterPanel:M}=b,A=Xt(a),w=N.useRef({callbacks:{onCollapse:d,onExpand:f,onResize:u},constraints:{collapsedSize:t,collapsible:s,defaultSize:r,maxSize:c,minSize:o},id:A,idIsFromProps:a!==void 0,order:h});N.useRef({didLogMissingDefaultSizeWarning:!1}),Fe(()=>{const{callbacks:q,constraints:K}=w.current,U={...K};w.current.id=A,w.current.idIsFromProps=a!==void 0,w.current.order=h,q.onCollapse=d,q.onExpand=f,q.onResize=u,K.collapsedSize=t,K.collapsible=s,K.defaultSize=r,K.maxSize=c,K.minSize=o,(U.collapsedSize!==K.collapsedSize||U.collapsible!==K.collapsible||U.maxSize!==K.maxSize||U.minSize!==K.minSize)&&g(w.current,U)}),Fe(()=>{const q=w.current;return $(q),()=>{M(q)}},[h,A,$,M]),N.useImperativeHandle(i,()=>({collapse:()=>{y(w.current)},expand:q=>{j(w.current,q)},getId(){return A},getSize(){return k(w.current)},isCollapsed(){return v(w.current)},isExpanded(){return!v(w.current)},resize:q=>{W(w.current,q)}}),[y,j,k,v,A,W]);const G=C(w.current,r);return N.createElement(p,{...x,children:n,className:e,id:A,style:{...G,...m},[te.groupId]:S,[te.panel]:"",[te.panelCollapsible]:s||void 0,[te.panelId]:A,[te.panelSize]:parseFloat(""+G.flexGrow).toFixed(1)})}const qn=N.forwardRef((n,e)=>N.createElement(Kn,{...n,forwardedRef:e}));Kn.displayName="Panel";qn.displayName="forwardRef(Panel)";let At=null,ft=-1,Ce=null;function Mr(n,e){if(e){const t=(e&Qn)!==0,s=(e&Yn)!==0,r=(e&Zn)!==0,i=(e&Jn)!==0;if(t)return r?"se-resize":i?"ne-resize":"e-resize";if(s)return r?"sw-resize":i?"nw-resize":"w-resize";if(r)return"s-resize";if(i)return"n-resize"}switch(n){case"horizontal":return"ew-resize";case"intersection":return"move";case"vertical":return"ns-resize"}}function Or(){Ce!==null&&(document.head.removeChild(Ce),At=null,Ce=null,ft=-1)}function Tt(n,e){var t,s;const r=Mr(n,e);if(At!==r){if(At=r,Ce===null&&(Ce=document.createElement("style"),document.head.appendChild(Ce)),ft>=0){var i;(i=Ce.sheet)===null||i===void 0||i.removeRule(ft)}ft=(t=(s=Ce.sheet)===null||s===void 0?void 0:s.insertRule(`*{cursor: ${r} !important;}`))!==null&&t!==void 0?t:-1}}function Wn(n){return n.type==="keydown"}function Vn(n){return n.type.startsWith("pointer")}function Gn(n){return n.type.startsWith("mouse")}function wt(n){if(Vn(n)){if(n.isPrimary)return{x:n.clientX,y:n.clientY}}else if(Gn(n))return{x:n.clientX,y:n.clientY};return{x:1/0,y:1/0}}function Rr(){if(typeof matchMedia=="function")return matchMedia("(pointer:coarse)").matches?"coarse":"fine"}function Ar(n,e,t){return n.x<e.x+e.width&&n.x+n.width>e.x&&n.y<e.y+e.height&&n.y+n.height>e.y}function _r(n,e){if(n===e)throw new Error("Cannot compare node with itself");const t={a:an(n),b:an(e)};let s;for(;t.a.at(-1)===t.b.at(-1);)n=t.a.pop(),e=t.b.pop(),s=n;V(s,"Stacking order can only be calculated for elements with a common ancestor");const r={a:ln(rn(t.a)),b:ln(rn(t.b))};if(r.a===r.b){const i=s.childNodes,a={a:t.a.at(-1),b:t.b.at(-1)};let c=i.length;for(;c--;){const o=i[c];if(o===a.a)return 1;if(o===a.b)return-1}}return Math.sign(r.a-r.b)}const Br=/\b(?:position|zIndex|opacity|transform|webkitTransform|mixBlendMode|filter|webkitFilter|isolation)\b/;function Ur(n){var e;const t=getComputedStyle((e=Xn(n))!==null&&e!==void 0?e:n).display;return t==="flex"||t==="inline-flex"}function Hr(n){const e=getComputedStyle(n);return!!(e.position==="fixed"||e.zIndex!=="auto"&&(e.position!=="static"||Ur(n))||+e.opacity<1||"transform"in e&&e.transform!=="none"||"webkitTransform"in e&&e.webkitTransform!=="none"||"mixBlendMode"in e&&e.mixBlendMode!=="normal"||"filter"in e&&e.filter!=="none"||"webkitFilter"in e&&e.webkitFilter!=="none"||"isolation"in e&&e.isolation==="isolate"||Br.test(e.willChange)||e.webkitOverflowScrolling==="touch")}function rn(n){let e=n.length;for(;e--;){const t=n[e];if(V(t,"Missing node"),Hr(t))return t}return null}function ln(n){return n&&Number(getComputedStyle(n).zIndex)||0}function an(n){const e=[];for(;n;)e.push(n),n=Xn(n);return e}function Xn(n){const{parentNode:e}=n;return e&&e instanceof ShadowRoot?e.host:e}const Qn=1,Yn=2,Zn=4,Jn=8,Kr=Rr()==="coarse";let ge=[],Be=!1,Te=new Map,jt=new Map;const Je=new Set;function qr(n,e,t,s,r){var i;const{ownerDocument:a}=e,c={direction:t,element:e,hitAreaMargins:s,setResizeHandlerState:r},o=(i=Te.get(a))!==null&&i!==void 0?i:0;return Te.set(a,o+1),Je.add(c),xt(),function(){var f;jt.delete(n),Je.delete(c);const u=(f=Te.get(a))!==null&&f!==void 0?f:1;if(Te.set(a,u-1),xt(),u===1&&Te.delete(a),ge.includes(c)){const h=ge.indexOf(c);h>=0&&ge.splice(h,1),Yt(),r("up",!0,null)}}}function Wr(n){const{target:e}=n,{x:t,y:s}=wt(n);Be=!0,Qt({target:e,x:t,y:s}),xt(),ge.length>0&&(bt("down",n),n.preventDefault(),es(e)||n.stopImmediatePropagation())}function Ft(n){const{x:e,y:t}=wt(n);if(Be&&n.buttons===0&&(Be=!1,bt("up",n)),!Be){const{target:s}=n;Qt({target:s,x:e,y:t})}bt("move",n),Yt(),ge.length>0&&n.preventDefault()}function It(n){const{target:e}=n,{x:t,y:s}=wt(n);jt.clear(),Be=!1,ge.length>0&&(n.preventDefault(),es(e)||n.stopImmediatePropagation()),bt("up",n),Qt({target:e,x:t,y:s}),Yt(),xt()}function es(n){let e=n;for(;e;){if(e.hasAttribute(te.resizeHandle))return!0;e=e.parentElement}return!1}function Qt({target:n,x:e,y:t}){ge.splice(0);let s=null;(n instanceof HTMLElement||n instanceof SVGElement)&&(s=n),Je.forEach(r=>{const{element:i,hitAreaMargins:a}=r,c=i.getBoundingClientRect(),{bottom:o,left:d,right:f,top:u}=c,h=Kr?a.coarse:a.fine;if(e>=d-h&&e<=f+h&&t>=u-h&&t<=o+h){if(s!==null&&document.contains(s)&&i!==s&&!i.contains(s)&&!s.contains(i)&&_r(s,i)>0){let p=s,x=!1;for(;p&&!p.contains(i);){if(Ar(p.getBoundingClientRect(),c)){x=!0;break}p=p.parentElement}if(x)return}ge.push(r)}})}function Lt(n,e){jt.set(n,e)}function Yt(){let n=!1,e=!1;ge.forEach(s=>{const{direction:r}=s;r==="horizontal"?n=!0:e=!0});let t=0;jt.forEach(s=>{t|=s}),n&&e?Tt("intersection",t):n?Tt("horizontal",t):e?Tt("vertical",t):Or()}let Mt=new AbortController;function xt(){Mt.abort(),Mt=new AbortController;const n={capture:!0,signal:Mt.signal};Je.size&&(Be?(ge.length>0&&Te.forEach((e,t)=>{const{body:s}=t;e>0&&(s.addEventListener("contextmenu",It,n),s.addEventListener("pointerleave",Ft,n),s.addEventListener("pointermove",Ft,n))}),window.addEventListener("pointerup",It,n),window.addEventListener("pointercancel",It,n)):Te.forEach((e,t)=>{const{body:s}=t;e>0&&(s.addEventListener("pointerdown",Wr,n),s.addEventListener("pointermove",Ft,n))}))}function bt(n,e){Je.forEach(t=>{const{setResizeHandlerState:s}=t,r=ge.includes(t);s(n,r,e)})}function Vr(){const[n,e]=N.useState(0);return N.useCallback(()=>e(t=>t+1),[])}function V(n,e){if(!n)throw console.error(e),Error(e)}function Le(n,e,t=Gt){return n.toFixed(t)===e.toFixed(t)?0:n>e?1:-1}function ke(n,e,t=Gt){return Le(n,e,t)===0}function xe(n,e,t){return Le(n,e,t)===0}function Gr(n,e,t){if(n.length!==e.length)return!1;for(let s=0;s<n.length;s++){const r=n[s],i=e[s];if(!xe(r,i,t))return!1}return!0}function _e({panelConstraints:n,panelIndex:e,size:t}){const s=n[e];V(s!=null,`Panel constraints not found for index ${e}`);let{collapsedSize:r=0,collapsible:i,maxSize:a=100,minSize:c=0}=s;if(Le(t,c)<0)if(i){const o=(r+c)/2;Le(t,o)<0?t=r:t=c}else t=c;return t=Math.min(a,t),t=parseFloat(t.toFixed(Gt)),t}function We({delta:n,initialLayout:e,panelConstraints:t,pivotIndices:s,prevLayout:r,trigger:i}){if(xe(n,0))return e;const a=[...e],[c,o]=s;V(c!=null,"Invalid first pivot index"),V(o!=null,"Invalid second pivot index");let d=0;if(i==="keyboard"){{const u=n<0?o:c,h=t[u];V(h,`Panel constraints not found for index ${u}`);const{collapsedSize:m=0,collapsible:p,minSize:x=0}=h;if(p){const b=e[u];if(V(b!=null,`Previous layout not found for panel index ${u}`),xe(b,m)){const y=x-b;Le(y,Math.abs(n))>0&&(n=n<0?0-y:y)}}}{const u=n<0?c:o,h=t[u];V(h,`No panel constraints found for index ${u}`);const{collapsedSize:m=0,collapsible:p,minSize:x=0}=h;if(p){const b=e[u];if(V(b!=null,`Previous layout not found for panel index ${u}`),xe(b,x)){const y=b-m;Le(y,Math.abs(n))>0&&(n=n<0?0-y:y)}}}}{const u=n<0?1:-1;let h=n<0?o:c,m=0;for(;;){const x=e[h];V(x!=null,`Previous layout not found for panel index ${h}`);const y=_e({panelConstraints:t,panelIndex:h,size:100})-x;if(m+=y,h+=u,h<0||h>=t.length)break}const p=Math.min(Math.abs(n),Math.abs(m));n=n<0?0-p:p}{let h=n<0?c:o;for(;h>=0&&h<t.length;){const m=Math.abs(n)-Math.abs(d),p=e[h];V(p!=null,`Previous layout not found for panel index ${h}`);const x=p-m,b=_e({panelConstraints:t,panelIndex:h,size:x});if(!xe(p,b)&&(d+=p-b,a[h]=b,d.toPrecision(3).localeCompare(Math.abs(n).toPrecision(3),void 0,{numeric:!0})>=0))break;n<0?h--:h++}}if(Gr(r,a))return r;{const u=n<0?o:c,h=e[u];V(h!=null,`Previous layout not found for panel index ${u}`);const m=h+d,p=_e({panelConstraints:t,panelIndex:u,size:m});if(a[u]=p,!xe(p,m)){let x=m-p,y=n<0?o:c;for(;y>=0&&y<t.length;){const j=a[y];V(j!=null,`Previous layout not found for panel index ${y}`);const k=j+x,C=_e({panelConstraints:t,panelIndex:y,size:k});if(xe(j,C)||(x-=C-j,a[y]=C),xe(x,0))break;n>0?y--:y++}}}const f=a.reduce((u,h)=>h+u,0);return xe(f,100)?a:r}function Xr({layout:n,panelsArray:e,pivotIndices:t}){let s=0,r=100,i=0,a=0;const c=t[0];V(c!=null,"No pivot index found"),e.forEach((u,h)=>{const{constraints:m}=u,{maxSize:p=100,minSize:x=0}=m;h===c?(s=x,r=p):(i+=x,a+=p)});const o=Math.min(r,100-i),d=Math.max(s,100-a),f=n[c];return{valueMax:o,valueMin:d,valueNow:f}}function et(n,e=document){return Array.from(e.querySelectorAll(`[${te.resizeHandleId}][data-panel-group-id="${n}"]`))}function ts(n,e,t=document){const r=et(n,t).findIndex(i=>i.getAttribute(te.resizeHandleId)===e);return r??null}function ns(n,e,t){const s=ts(n,e,t);return s!=null?[s,s+1]:[-1,-1]}function ss(n,e=document){var t;if(e instanceof HTMLElement&&(e==null||(t=e.dataset)===null||t===void 0?void 0:t.panelGroupId)==n)return e;const s=e.querySelector(`[data-panel-group][data-panel-group-id="${n}"]`);return s||null}function kt(n,e=document){const t=e.querySelector(`[${te.resizeHandleId}="${n}"]`);return t||null}function Qr(n,e,t,s=document){var r,i,a,c;const o=kt(e,s),d=et(n,s),f=o?d.indexOf(o):-1,u=(r=(i=t[f])===null||i===void 0?void 0:i.id)!==null&&r!==void 0?r:null,h=(a=(c=t[f+1])===null||c===void 0?void 0:c.id)!==null&&a!==void 0?a:null;return[u,h]}function Yr({committedValuesRef:n,eagerValuesRef:e,groupId:t,layout:s,panelDataArray:r,panelGroupElement:i,setLayout:a}){N.useRef({didWarnAboutMissingResizeHandle:!1}),Fe(()=>{if(!i)return;const c=et(t,i);for(let o=0;o<r.length-1;o++){const{valueMax:d,valueMin:f,valueNow:u}=Xr({layout:s,panelsArray:r,pivotIndices:[o,o+1]}),h=c[o];if(h!=null){const m=r[o];V(m,`No panel data found for index "${o}"`),h.setAttribute("aria-controls",m.id),h.setAttribute("aria-valuemax",""+Math.round(d)),h.setAttribute("aria-valuemin",""+Math.round(f)),h.setAttribute("aria-valuenow",u!=null?""+Math.round(u):"")}}return()=>{c.forEach((o,d)=>{o.removeAttribute("aria-controls"),o.removeAttribute("aria-valuemax"),o.removeAttribute("aria-valuemin"),o.removeAttribute("aria-valuenow")})}},[t,s,r,i]),N.useEffect(()=>{if(!i)return;const c=e.current;V(c,"Eager values not found");const{panelDataArray:o}=c,d=ss(t,i);V(d!=null,`No group found for id "${t}"`);const f=et(t,i);V(f,`No resize handles found for group id "${t}"`);const u=f.map(h=>{const m=h.getAttribute(te.resizeHandleId);V(m,"Resize handle element has no handle id attribute");const[p,x]=Qr(t,m,o,i);if(p==null||x==null)return()=>{};const b=y=>{if(!y.defaultPrevented)switch(y.key){case"Enter":{y.preventDefault();const j=o.findIndex(k=>k.id===p);if(j>=0){const k=o[j];V(k,`No panel data found for index ${j}`);const C=s[j],{collapsedSize:S=0,collapsible:v,minSize:g=0}=k.constraints;if(C!=null&&v){const $=We({delta:xe(C,S)?g-S:S-C,initialLayout:s,panelConstraints:o.map(W=>W.constraints),pivotIndices:ns(t,m,i),prevLayout:s,trigger:"keyboard"});s!==$&&a($)}}break}}};return h.addEventListener("keydown",b),()=>{h.removeEventListener("keydown",b)}});return()=>{u.forEach(h=>h())}},[i,n,e,t,s,r,a])}function on(n,e){if(n.length!==e.length)return!1;for(let t=0;t<n.length;t++)if(n[t]!==e[t])return!1;return!0}function rs(n,e){const t=n==="horizontal",{x:s,y:r}=wt(e);return t?s:r}function Zr(n,e,t,s,r){const i=t==="horizontal",a=kt(e,r);V(a,`No resize handle element found for id "${e}"`);const c=a.getAttribute(te.groupId);V(c,"Resize handle element has no group id attribute");let{initialCursorPosition:o}=s;const d=rs(t,n),f=ss(c,r);V(f,`No group element found for id "${c}"`);const u=f.getBoundingClientRect(),h=i?u.width:u.height;return(d-o)/h*100}function Jr(n,e,t,s,r,i){if(Wn(n)){const a=t==="horizontal";let c=0;n.shiftKey?c=100:r!=null?c=r:c=10;let o=0;switch(n.key){case"ArrowDown":o=a?0:c;break;case"ArrowLeft":o=a?-c:0;break;case"ArrowRight":o=a?c:0;break;case"ArrowUp":o=a?0:-c;break;case"End":o=100;break;case"Home":o=-100;break}return o}else return s==null?0:Zr(n,e,t,s,i)}function el({panelDataArray:n}){const e=Array(n.length),t=n.map(i=>i.constraints);let s=0,r=100;for(let i=0;i<n.length;i++){const a=t[i];V(a,`Panel constraints not found for index ${i}`);const{defaultSize:c}=a;c!=null&&(s++,e[i]=c,r-=c)}for(let i=0;i<n.length;i++){const a=t[i];V(a,`Panel constraints not found for index ${i}`);const{defaultSize:c}=a;if(c!=null)continue;const o=n.length-s,d=r/o;s++,e[i]=d,r-=d}return e}function Oe(n,e,t){e.forEach((s,r)=>{const i=n[r];V(i,`Panel data not found for index ${r}`);const{callbacks:a,constraints:c,id:o}=i,{collapsedSize:d=0,collapsible:f}=c,u=t[o];if(u==null||s!==u){t[o]=s;const{onCollapse:h,onExpand:m,onResize:p}=a;p&&p(s,u),f&&(h||m)&&(m&&(u==null||ke(u,d))&&!ke(s,d)&&m(),h&&(u==null||!ke(u,d))&&ke(s,d)&&h())}})}function ut(n,e){if(n.length!==e.length)return!1;for(let t=0;t<n.length;t++)if(n[t]!=e[t])return!1;return!0}function tl({defaultSize:n,dragState:e,layout:t,panelData:s,panelIndex:r,precision:i=3}){const a=t[r];let c;return a==null?c=n!=null?n.toPrecision(i):"1":s.length===1?c="1":c=a.toPrecision(i),{flexBasis:0,flexGrow:c,flexShrink:1,overflow:"hidden",pointerEvents:e!==null?"none":void 0}}function nl(n,e=10){let t=null;return(...r)=>{t!==null&&clearTimeout(t),t=setTimeout(()=>{n(...r)},e)}}function cn(n){try{if(typeof localStorage<"u")n.getItem=e=>localStorage.getItem(e),n.setItem=(e,t)=>{localStorage.setItem(e,t)};else throw new Error("localStorage not supported in this environment")}catch(e){console.error(e),n.getItem=()=>null,n.setItem=()=>{}}}function ls(n){return`react-resizable-panels:${n}`}function is(n){return n.map(e=>{const{constraints:t,id:s,idIsFromProps:r,order:i}=e;return r?s:i?`${i}:${JSON.stringify(t)}`:JSON.stringify(t)}).sort((e,t)=>e.localeCompare(t)).join(",")}function as(n,e){try{const t=ls(n),s=e.getItem(t);if(s){const r=JSON.parse(s);if(typeof r=="object"&&r!=null)return r}}catch{}return null}function sl(n,e,t){var s,r;const i=(s=as(n,t))!==null&&s!==void 0?s:{},a=is(e);return(r=i[a])!==null&&r!==void 0?r:null}function rl(n,e,t,s,r){var i;const a=ls(n),c=is(e),o=(i=as(n,r))!==null&&i!==void 0?i:{};o[c]={expandToSizes:Object.fromEntries(t.entries()),layout:s};try{r.setItem(a,JSON.stringify(o))}catch(d){console.error(d)}}function dn({layout:n,panelConstraints:e}){const t=[...n],s=t.reduce((i,a)=>i+a,0);if(t.length!==e.length)throw Error(`Invalid ${e.length} panel layout: ${t.map(i=>`${i}%`).join(", ")}`);if(!xe(s,100)&&t.length>0)for(let i=0;i<e.length;i++){const a=t[i];V(a!=null,`No layout data found for index ${i}`);const c=100/s*a;t[i]=c}let r=0;for(let i=0;i<e.length;i++){const a=t[i];V(a!=null,`No layout data found for index ${i}`);const c=_e({panelConstraints:e,panelIndex:i,size:a});a!=c&&(r+=a-c,t[i]=c)}if(!xe(r,0))for(let i=0;i<e.length;i++){const a=t[i];V(a!=null,`No layout data found for index ${i}`);const c=a+r,o=_e({panelConstraints:e,panelIndex:i,size:c});if(a!==o&&(r-=o-a,t[i]=o,xe(r,0)))break}return t}const ll=100,Ve={getItem:n=>(cn(Ve),Ve.getItem(n)),setItem:(n,e)=>{cn(Ve),Ve.setItem(n,e)}},un={};function os({autoSaveId:n=null,children:e,className:t="",direction:s,forwardedRef:r,id:i=null,onLayout:a=null,keyboardResizeBy:c=null,storage:o=Ve,style:d,tagName:f="div",...u}){const h=Xt(i),m=N.useRef(null),[p,x]=N.useState(null),[b,y]=N.useState([]),j=Vr(),k=N.useRef({}),C=N.useRef(new Map),S=N.useRef(0),v=N.useRef({autoSaveId:n,direction:s,dragState:p,id:h,keyboardResizeBy:c,onLayout:a,storage:o}),g=N.useRef({layout:b,panelDataArray:[],panelDataArrayChanged:!1});N.useRef({didLogIdAndOrderWarning:!1,didLogPanelConstraintsWarning:!1,prevPanelIds:[]}),N.useImperativeHandle(r,()=>({getId:()=>v.current.id,getLayout:()=>{const{layout:P}=g.current;return P},setLayout:P=>{const{onLayout:I}=v.current,{layout:O,panelDataArray:F}=g.current,T=dn({layout:P,panelConstraints:F.map(R=>R.constraints)});on(O,T)||(y(T),g.current.layout=T,I&&I(T),Oe(F,T,k.current))}}),[]),Fe(()=>{v.current.autoSaveId=n,v.current.direction=s,v.current.dragState=p,v.current.id=h,v.current.onLayout=a,v.current.storage=o}),Yr({committedValuesRef:v,eagerValuesRef:g,groupId:h,layout:b,panelDataArray:g.current.panelDataArray,setLayout:y,panelGroupElement:m.current}),N.useEffect(()=>{const{panelDataArray:P}=g.current;if(n){if(b.length===0||b.length!==P.length)return;let I=un[n];I==null&&(I=nl(rl,ll),un[n]=I);const O=[...P],F=new Map(C.current);I(n,O,F,b,o)}},[n,b,o]),N.useEffect(()=>{});const $=N.useCallback(P=>{const{onLayout:I}=v.current,{layout:O,panelDataArray:F}=g.current;if(P.constraints.collapsible){const T=F.map(me=>me.constraints),{collapsedSize:R=0,panelSize:Y,pivotIndices:ee}=De(F,P,O);if(V(Y!=null,`Panel size not found for panel "${P.id}"`),!ke(Y,R)){C.current.set(P.id,Y);const pe=Re(F,P)===F.length-1?Y-R:R-Y,z=We({delta:pe,initialLayout:O,panelConstraints:T,pivotIndices:ee,prevLayout:O,trigger:"imperative-api"});ut(O,z)||(y(z),g.current.layout=z,I&&I(z),Oe(F,z,k.current))}}},[]),W=N.useCallback((P,I)=>{const{onLayout:O}=v.current,{layout:F,panelDataArray:T}=g.current;if(P.constraints.collapsible){const R=T.map(J=>J.constraints),{collapsedSize:Y=0,panelSize:ee=0,minSize:me=0,pivotIndices:pe}=De(T,P,F),z=I??me;if(ke(ee,Y)){const J=C.current.get(P.id),ie=J!=null&&J>=z?J:z,$e=Re(T,P)===T.length-1?ee-ie:ie-ee,ae=We({delta:$e,initialLayout:F,panelConstraints:R,pivotIndices:pe,prevLayout:F,trigger:"imperative-api"});ut(F,ae)||(y(ae),g.current.layout=ae,O&&O(ae),Oe(T,ae,k.current))}}},[]),M=N.useCallback(P=>{const{layout:I,panelDataArray:O}=g.current,{panelSize:F}=De(O,P,I);return V(F!=null,`Panel size not found for panel "${P.id}"`),F},[]),A=N.useCallback((P,I)=>{const{panelDataArray:O}=g.current,F=Re(O,P);return tl({defaultSize:I,dragState:p,layout:b,panelData:O,panelIndex:F})},[p,b]),w=N.useCallback(P=>{const{layout:I,panelDataArray:O}=g.current,{collapsedSize:F=0,collapsible:T,panelSize:R}=De(O,P,I);return V(R!=null,`Panel size not found for panel "${P.id}"`),T===!0&&ke(R,F)},[]),G=N.useCallback(P=>{const{layout:I,panelDataArray:O}=g.current,{collapsedSize:F=0,collapsible:T,panelSize:R}=De(O,P,I);return V(R!=null,`Panel size not found for panel "${P.id}"`),!T||Le(R,F)>0},[]),q=N.useCallback(P=>{const{panelDataArray:I}=g.current;I.push(P),I.sort((O,F)=>{const T=O.order,R=F.order;return T==null&&R==null?0:T==null?-1:R==null?1:T-R}),g.current.panelDataArrayChanged=!0,j()},[j]);Fe(()=>{if(g.current.panelDataArrayChanged){g.current.panelDataArrayChanged=!1;const{autoSaveId:P,onLayout:I,storage:O}=v.current,{layout:F,panelDataArray:T}=g.current;let R=null;if(P){const ee=sl(P,T,O);ee&&(C.current=new Map(Object.entries(ee.expandToSizes)),R=ee.layout)}R==null&&(R=el({panelDataArray:T}));const Y=dn({layout:R,panelConstraints:T.map(ee=>ee.constraints)});on(F,Y)||(y(Y),g.current.layout=Y,I&&I(Y),Oe(T,Y,k.current))}}),Fe(()=>{const P=g.current;return()=>{P.layout=[]}},[]);const K=N.useCallback(P=>{let I=!1;const O=m.current;return O&&window.getComputedStyle(O,null).getPropertyValue("direction")==="rtl"&&(I=!0),function(T){T.preventDefault();const R=m.current;if(!R)return()=>null;const{direction:Y,dragState:ee,id:me,keyboardResizeBy:pe,onLayout:z}=v.current,{layout:J,panelDataArray:ie}=g.current,{initialLayout:ye}=ee??{},$e=ns(me,P,R);let ae=Jr(T,P,Y,ee,pe,R);const Ke=Y==="horizontal";Ke&&I&&(ae=-ae);const $t=ie.map(Et=>Et.constraints),Ee=We({delta:ae,initialLayout:ye??J,panelConstraints:$t,pivotIndices:$e,prevLayout:J,trigger:Wn(T)?"keyboard":"mouse-or-touch"}),ot=!ut(J,Ee);(Vn(T)||Gn(T))&&S.current!=ae&&(S.current=ae,!ot&&ae!==0?Ke?Lt(P,ae<0?Qn:Yn):Lt(P,ae<0?Zn:Jn):Lt(P,0)),ot&&(y(Ee),g.current.layout=Ee,z&&z(Ee),Oe(ie,Ee,k.current))}},[]),U=N.useCallback((P,I)=>{const{onLayout:O}=v.current,{layout:F,panelDataArray:T}=g.current,R=T.map(J=>J.constraints),{panelSize:Y,pivotIndices:ee}=De(T,P,F);V(Y!=null,`Panel size not found for panel "${P.id}"`);const pe=Re(T,P)===T.length-1?Y-I:I-Y,z=We({delta:pe,initialLayout:F,panelConstraints:R,pivotIndices:ee,prevLayout:F,trigger:"imperative-api"});ut(F,z)||(y(z),g.current.layout=z,O&&O(z),Oe(T,z,k.current))},[]),H=N.useCallback((P,I)=>{const{layout:O,panelDataArray:F}=g.current,{collapsedSize:T=0,collapsible:R}=I,{collapsedSize:Y=0,collapsible:ee,maxSize:me=100,minSize:pe=0}=P.constraints,{panelSize:z}=De(F,P,O);z!=null&&(R&&ee&&ke(z,T)?ke(T,Y)||U(P,Y):z<pe?U(P,pe):z>me&&U(P,me))},[U]),_=N.useCallback((P,I)=>{const{direction:O}=v.current,{layout:F}=g.current;if(!m.current)return;const T=kt(P,m.current);V(T,`Drag handle element not found for id "${P}"`);const R=rs(O,I);x({dragHandleId:P,dragHandleRect:T.getBoundingClientRect(),initialCursorPosition:R,initialLayout:F})},[]),Q=N.useCallback(()=>{x(null)},[]),le=N.useCallback(P=>{const{panelDataArray:I}=g.current,O=Re(I,P);O>=0&&(I.splice(O,1),delete k.current[P.id],g.current.panelDataArrayChanged=!0,j())},[j]),D=N.useMemo(()=>({collapsePanel:$,direction:s,dragState:p,expandPanel:W,getPanelSize:M,getPanelStyle:A,groupId:h,isPanelCollapsed:w,isPanelExpanded:G,reevaluatePanelConstraints:H,registerPanel:q,registerResizeHandle:K,resizePanel:U,startDragging:_,stopDragging:Q,unregisterPanel:le,panelGroupElement:m.current}),[$,p,s,W,M,A,h,w,G,H,q,K,U,_,Q,le]),B={display:"flex",flexDirection:s==="horizontal"?"row":"column",height:"100%",overflow:"hidden",width:"100%"};return N.createElement(vt.Provider,{value:D},N.createElement(f,{...u,children:e,className:t,id:i,ref:m,style:{...B,...d},[te.group]:"",[te.groupDirection]:s,[te.groupId]:h}))}const cs=N.forwardRef((n,e)=>N.createElement(os,{...n,forwardedRef:e}));os.displayName="PanelGroup";cs.displayName="forwardRef(PanelGroup)";function Re(n,e){return n.findIndex(t=>t===e||t.id===e.id)}function De(n,e,t){const s=Re(n,e),i=s===n.length-1?[s-1,s]:[s,s+1],a=t[s];return{...e.constraints,panelSize:a,pivotIndices:i}}function il({disabled:n,handleId:e,resizeHandler:t,panelGroupElement:s}){N.useEffect(()=>{if(n||t==null||s==null)return;const r=kt(e,s);if(r==null)return;const i=a=>{if(!a.defaultPrevented)switch(a.key){case"ArrowDown":case"ArrowLeft":case"ArrowRight":case"ArrowUp":case"End":case"Home":{a.preventDefault(),t(a);break}case"F6":{a.preventDefault();const c=r.getAttribute(te.groupId);V(c,`No group element found for id "${c}"`);const o=et(c,s),d=ts(c,e,s);V(d!==null,`No resize element found for id "${e}"`);const f=a.shiftKey?d>0?d-1:o.length-1:d+1<o.length?d+1:0;o[f].focus();break}}};return r.addEventListener("keydown",i),()=>{r.removeEventListener("keydown",i)}},[s,n,e,t])}function ds({children:n=null,className:e="",disabled:t=!1,hitAreaMargins:s,id:r,onBlur:i,onClick:a,onDragging:c,onFocus:o,onPointerDown:d,onPointerUp:f,style:u={},tabIndex:h=0,tagName:m="div",...p}){var x,b;const y=N.useRef(null),j=N.useRef({onClick:a,onDragging:c,onPointerDown:d,onPointerUp:f});N.useEffect(()=>{j.current.onClick=a,j.current.onDragging=c,j.current.onPointerDown=d,j.current.onPointerUp=f});const k=N.useContext(vt);if(k===null)throw Error("PanelResizeHandle components must be rendered within a PanelGroup container");const{direction:C,groupId:S,registerResizeHandle:v,startDragging:g,stopDragging:$,panelGroupElement:W}=k,M=Xt(r),[A,w]=N.useState("inactive"),[G,q]=N.useState(!1),[K,U]=N.useState(null),H=N.useRef({state:A});Fe(()=>{H.current.state=A}),N.useEffect(()=>{if(t)U(null);else{const D=v(M);U(()=>D)}},[t,M,v]);const _=(x=s?.coarse)!==null&&x!==void 0?x:15,Q=(b=s?.fine)!==null&&b!==void 0?b:5;N.useEffect(()=>{if(t||K==null)return;const D=y.current;V(D,"Element ref not attached");let B=!1;return qr(M,D,C,{coarse:_,fine:Q},(I,O,F)=>{if(!O){w("inactive");return}switch(I){case"down":{w("drag"),B=!1,V(F,'Expected event to be defined for "down" action'),g(M,F);const{onDragging:T,onPointerDown:R}=j.current;T?.(!0),R?.();break}case"move":{const{state:T}=H.current;B=!0,T!=="drag"&&w("hover"),V(F,'Expected event to be defined for "move" action'),K(F);break}case"up":{w("hover"),$();const{onClick:T,onDragging:R,onPointerUp:Y}=j.current;R?.(!1),Y?.(),B||T?.();break}}})},[_,C,t,Q,v,M,K,g,$]),il({disabled:t,handleId:M,resizeHandler:K,panelGroupElement:W});const le={touchAction:"none",userSelect:"none"};return N.createElement(m,{...p,children:n,className:e,id:r,onBlur:()=>{q(!1),i?.()},onFocus:()=>{q(!0),o?.()},ref:y,role:"separator",style:{...le,...u},tabIndex:h,[te.groupDirection]:C,[te.groupId]:S,[te.resizeHandle]:"",[te.resizeHandleActive]:A==="drag"?"pointer":G?"keyboard":void 0,[te.resizeHandleEnabled]:!t,[te.resizeHandleId]:M,[te.resizeHandleState]:A})}ds.displayName="PanelResizeHandle";function al(n){const e=E.c(10);let t,s,r;e[0]!==n?({className:t,ref:r,...s}=n,e[0]=n,e[1]=t,e[2]=s,e[3]=r):(t=e[1],s=e[2],r=e[3]);let i;e[4]!==t?(i=de("flex h-full w-full data-[panel-group-direction=vertical]:flex-col",t),e[4]=t,e[5]=i):i=e[5];let a;return e[6]!==s||e[7]!==r||e[8]!==i?(a=l.jsx(cs,{ref:r,"data-slot":"resizable-panel-group",className:i,...s}),e[6]=s,e[7]=r,e[8]=i,e[9]=a):a=e[9],a}function fn(n){const e=E.c(4);let t;e[0]!==n?({...t}=n,e[0]=n,e[1]=t):t=e[1];let s;return e[2]!==t?(s=l.jsx(qn,{"data-slot":"resizable-panel",...t}),e[2]=t,e[3]=s):s=e[3],s}function ol(n){const e=E.c(12);let t,s,r;e[0]!==n?({withHandle:r,className:t,...s}=n,e[0]=n,e[1]=t,e[2]=s,e[3]=r):(t=e[1],s=e[2],r=e[3]);let i;e[4]!==t?(i=de("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 data-[panel-group-direction=vertical]:h-px data-[panel-group-direction=vertical]:w-full data-[panel-group-direction=vertical]:after:left-0 data-[panel-group-direction=vertical]:after:h-1 data-[panel-group-direction=vertical]:after:w-full data-[panel-group-direction=vertical]:after:-translate-y-1/2 data-[panel-group-direction=vertical]:after:translate-x-0 [&[data-panel-group-direction=vertical]>div]:rotate-90",t),e[4]=t,e[5]=i):i=e[5];let a;e[6]!==r?(a=r&&l.jsx("div",{className:"bg-border z-10 flex h-4 w-3 items-center justify-center rounded-xs border",children:l.jsx(Zs,{className:"size-2.5"})}),e[6]=r,e[7]=a):a=e[7];let c;return e[8]!==s||e[9]!==i||e[10]!==a?(c=l.jsx(ds,{"data-slot":"resizable-handle",className:i,...s,children:a}),e[8]=s,e[9]=i,e[10]=a,e[11]=c):c=e[11],c}function cl(n){if(!n||n.includes("\\")||n.includes("..")||n.includes("\0"))return!0;try{const e=decodeURIComponent(n);if(e.includes("\\")||e.includes("..")||e.includes("\0"))return!0;if(e!==n&&e.includes("/")){const t=(n.match(/\//g)??[]).length;if((e.match(/\//g)??[]).length>t)return!0}return!1}catch{return!0}}function dl(n){if(cl(n))throw new Error(`Invalid block key: ${n||"(empty)"}`)}function ul(n){try{return decodeURIComponent(n)}catch{return n}}function fl(n){return dl(n),encodeURIComponent(n)}function hl(n){return`.deco/blocks/${fl(n)}.json`}function Ua(n){return`/${hl(n)}`}const Ha=1e4,ml=3;function _t(n){return n.trim()?(n.startsWith("/")?n:`/${n}`).replace(/\/+/g,"/"):"/"}function St(n){return n.startsWith("/")?n.slice(1):n}function Ka(n){const e=St(n);return!e||e.includes("..")||e.includes("\\")?!1:e.startsWith(".deco/blocks/")||!e.startsWith("/")&&!e.includes("://")}function He(n){return n.trim()?n.startsWith("/")?n:`/${n}`:"/"}function pl(n){const e=He(n);if(e==="/")return"/";const t=e.split("/").filter(Boolean);return t.pop(),t.length===0?"/":`/${t.join("/")}`}function qa(n,e){const t=e.replace(/^\/+|\/+$/g,"");return He(t?`${n==="/"?"":n}/${t}`:n)}function Wa(n,e){return e==="directory"?n:pl(n)}function Va(n){const e=n.trim();return e?e.includes("/")||e.includes("\\")||e.includes("..")||e.includes("\0")?"Name cannot contain /, \\, or ..":null:"Name is required"}function xl(n){const e=St(n);return e?e.split("/").filter(Boolean).length:0}function Ga(n,e,t,s=!1){return{files:[...new Set([...n,...t.files])],directories:[...new Set([...e,...t.directories??[]])],truncated:s||!!t.truncated}}function Xa(n,e){return xl(n)>=ml&&!e.has(n)}function Qa(n,e,t=[]){const s=St(n);if(e.includes(s)||t.includes(s))return!0;if(!s)return!1;const r=`${s}/`;return e.some(i=>i.startsWith(r))||t.some(i=>i.startsWith(r))}function Ya(n){const e=St(n),t=".deco/blocks/";if(!e.startsWith(t)||!e.endsWith(".json"))return null;const s=e.slice(t.length,-5);return ul(s)}function bl(n){if(!n)return"plaintext";const e=n.toLowerCase();return e.endsWith(".tsx")||e.endsWith(".ts")?"typescript":e.endsWith(".jsx")||e.endsWith(".js")||e.endsWith(".mjs")||e.endsWith(".cjs")?"javascript":e.endsWith(".json")?"json":e.endsWith(".md")||e.endsWith(".mdx")?"markdown":e.endsWith(".css")?"css":e.endsWith(".scss")?"scss":e.endsWith(".html")?"html":e.endsWith(".yaml")||e.endsWith(".yml")?"yaml":e.endsWith(".xml")||e.endsWith(".svg")?"xml":e.endsWith(".py")?"python":e.endsWith(".sql")?"sql":e.endsWith(".sh")?"shell":"plaintext"}const gl="#94a3b8";function Za(n){const e=n.toLowerCase();return e.endsWith(".tsx")||e.endsWith(".ts")?{Icon:dt,color:"#3b82f6"}:e.endsWith(".jsx")||e.endsWith(".js")||e.endsWith(".mjs")||e.endsWith(".cjs")?{Icon:dt,color:"#d9a441"}:e.endsWith(".json")?{Icon:Js,color:"#cb9b3f"}:e.endsWith(".css")||e.endsWith(".scss")?{Icon:dt,color:"#06b6d4"}:e.endsWith(".html")||e.endsWith(".xml")?{Icon:dt,color:"#f97316"}:/\.(png|jpe?g|gif|webp|avif|ico|svg)$/.test(e)?{Icon:pr,color:"#a855f7"}:e.endsWith(".md")||e.endsWith(".mdx")?{Icon:nn,color:"#64748b"}:{Icon:nn,color:gl}}function Ja(n){const e=_t(n).split("/").filter(Boolean),t=["/"];let s="";for(const r of e.slice(0,-1))s+=`/${r}`,t.push(s);return t}function eo(n,e=[]){const t={path:"/",children:[]},s=new Map,r=c=>{let o=s.get(c.path);return o||(o=new Map,s.set(c.path,o)),o},i=c=>{const d=_t(c).split("/").filter(Boolean);let f=t,u="";for(const h of d){u+=`/${h}`;const m=r(f);let p=m.get(h);p?p.kind==="file"&&(p.kind="directory"):(p={name:h,path:u,kind:"directory",children:[]},f.children.push(p),m.set(h,p)),f=p}};for(const c of n){const d=_t(c).split("/").filter(Boolean);let f=t,u="";d.forEach((h,m)=>{u+=`/${h}`;const p=m===d.length-1,x=r(f);let b=x.get(h);b||(b={name:h,path:u,kind:p?"file":"directory",children:[]},f.children.push(b),x.set(h,b)),f=b})}for(const c of e)i(He(c));const a=c=>{c.sort((o,d)=>o.kind!==d.kind?o.kind==="directory"?-1:1:o.name.localeCompare(d.name));for(const o of c)o.children.length>0&&a(o.children)};return a(t.children),t.children}function yl(n,e,t=0){const s=[];for(const r of n)r.name!==".gitkeep"&&(s.push({node:r,depth:t}),r.kind==="directory"&&r.children.length>0&&e.has(r.path)&&s.push(...yl(r.children,e,t+1)));return s}function to(n){const e=[];for(const t of n.split(`
2
2
  `)){if(!t)continue;const s=t.indexOf(":");if(s<0)continue;const r=t.indexOf(":",s+1);if(r<0)continue;const i=Number.parseInt(t.slice(s+1,r),10);Number.isFinite(i)&&e.push({path:He(t.slice(0,s)),line:i,text:t.slice(r+1)})}return e}function no(n,e,t){const s=e.trim().toLowerCase();if(!s)return[];const r=[];for(const i of n)if((i.split("/").pop()??i).toLowerCase().includes(s)&&(r.push(He(i)),r.length>=t))break;return r}const hn=24;function so(n,e){const t=n.replace(/^\s+/,""),s=e.trim().toLowerCase();if(!s)return{leadingEllipsis:!1,segments:[{text:t,match:!1}]};const r=t.toLowerCase().indexOf(s);if(r<0)return{leadingEllipsis:!1,segments:[{text:t,match:!1}]};const i=r>hn,a=i?t.slice(r-hn):t,c=a.toLowerCase(),o=[];let d=0;for(;;){const f=c.indexOf(s,d);if(f<0){d<a.length&&o.push({text:a.slice(d),match:!1});break}f>d&&o.push({text:a.slice(d,f),match:!1}),o.push({text:a.slice(f,f+s.length),match:!0}),d=f+s.length}return{leadingEllipsis:i,segments:o}}function ro(n){const e=[],t=new Map;for(const s of n){let r=t.get(s.path);r||(r={path:s.path,matches:[]},t.set(s.path,r),e.push(r)),r.matches.push(s)}return e}function lo(n){return n.split(`
3
3
  `).map(e=>e.replace(/^\d+\t/,"")).join(`
4
4
  `)}hr.config({paths:{vs:"https://cdn.jsdelivr.net/npm/monaco-editor@0.52.0/min/vs"}});function vl(n){const e=E.c(11),{value:t,filename:s}=n,[r]=Ds(),i=r.theme==="dark"||r.theme==="system"&&typeof window<"u"&&window.matchMedia("(prefers-color-scheme: dark)").matches;let a;e[0]!==s?(a=bl(s),e[0]=s,e[1]=a):a=e[1];const c=i?"vs-dark":"light";let o;e[2]===Symbol.for("react.memo_cache_sentinel")?(o=l.jsx("div",{className:"flex h-full w-full items-center justify-center",children:l.jsx(Ts,{size:20,className:"animate-spin text-muted-foreground"})}),e[2]=o):o=e[2];let d,f;e[3]===Symbol.for("react.memo_cache_sentinel")?(d={enabled:!1},f={top:12,bottom:12},e[3]=d,e[4]=f):(d=e[3],f=e[4]);let u;e[5]===Symbol.for("react.memo_cache_sentinel")?(u={readOnly:!0,domReadOnly:!0,fontSize:13,scrollBeyondLastLine:!1,automaticLayout:!0,lineNumbersMinChars:3,wordWrap:"on",minimap:d,padding:f,renderLineHighlight:"none",scrollbar:{vertical:"auto",horizontal:"auto",verticalScrollbarSize:8,horizontalScrollbarSize:8}},e[5]=u):u=e[5];let h;return e[6]!==s||e[7]!==a||e[8]!==c||e[9]!==t?(h=l.jsx(mr,{path:s,language:a,value:t,theme:c,loading:o,options:u},s),e[6]=s,e[7]=a,e[8]=c,e[9]=t,e[10]=h):h=e[10],h}function us(n){return n<1024?`${n} B`:n<1024*1024?`${(n/1024).toFixed(1)} KB`:`${(n/(1024*1024)).toFixed(1)} MB`}const wl=new Set(["png","jpg","jpeg","gif","webp","svg","avif"]),jl=new Set(["txt","json","csv","tsv","log","yaml","yml","xml","toml","ts","tsx","js","jsx","py","rb","go","rs","java","sh","sql"]),mn=2*1024*1024;function kl(n,e){const t=n.split(".").pop()?.toLowerCase()??"";return wl.has(t)?"image":t==="pdf"?"pdf":t==="html"||t==="htm"?"html":t==="md"||t==="markdown"?e<=mn?"markdown":"download":jl.has(t)&&e<=mn?"text":"download"}function fs(){const n=E.c(2);let e;n[0]===Symbol.for("react.memo_cache_sentinel")?(e=l.jsx(ce,{className:"h-6 w-2/3"}),n[0]=e):e=n[0];let t;return n[1]===Symbol.for("react.memo_cache_sentinel")?(t=l.jsx("div",{className:"flex h-full w-full items-center justify-center",children:l.jsxs("div",{className:"flex w-3/4 max-w-md flex-col gap-3 p-6",children:[e,l.jsxs("div",{className:"flex flex-col gap-1.5",children:[l.jsx(ce,{className:"h-3 w-full"}),l.jsx(ce,{className:"h-3 w-5/6"}),l.jsx(ce,{className:"h-3 w-2/3"})]})]})}),n[1]=t):t=n[1],t}function hs(n){const e=E.c(20),{file:t,note:s}=n;let r;e[0]!==t.filename?(r=l.jsx(Ne,{filename:t.filename,className:"h-12 w-10"}),e[0]=t.filename,e[1]=r):r=e[1];let i;e[2]!==t.filename?(i=l.jsx("span",{className:"text-sm font-medium text-foreground",children:t.filename}),e[2]=t.filename,e[3]=i):i=e[3];let a;e[4]!==t.size?(a=us(t.size),e[4]=t.size,e[5]=a):a=e[5];const c=s?` · ${s}`:"";let o;e[6]!==a||e[7]!==c?(o=l.jsxs("span",{className:"text-xs text-muted-foreground",children:[a,c]}),e[6]=a,e[7]=c,e[8]=o):o=e[8];let d;e[9]!==i||e[10]!==o?(d=l.jsxs("div",{className:"flex flex-col items-center gap-0.5",children:[i,o]}),e[9]=i,e[10]=o,e[11]=d):d=e[11];let f;e[12]===Symbol.for("react.memo_cache_sentinel")?(f=l.jsx(Ze,{size:14}),e[12]=f):f=e[12];let u;e[13]!==t.downloadUrl||e[14]!==t.filename?(u=l.jsx(Z,{asChild:!0,variant:"outline",size:"sm",children:l.jsxs("a",{href:t.downloadUrl,download:t.filename,children:[f,"Download"]})}),e[13]=t.downloadUrl,e[14]=t.filename,e[15]=u):u=e[15];let h;return e[16]!==r||e[17]!==d||e[18]!==u?(h=l.jsx("div",{className:"flex h-full w-full items-center justify-center",children:l.jsxs("div",{className:"flex flex-col items-center gap-3 rounded-xl border border-border bg-muted/30 px-10 py-8",children:[r,d,u]})}),e[16]=r,e[17]=d,e[18]=u,e[19]=h):h=e[19],h}function pn(n){const e=E.c(16),{file:t,markdown:s}=n;let r;e[0]!==t.downloadUrl?(r=X.fileText(t.downloadUrl),e[0]=t.downloadUrl,e[1]=r):r=e[1];let i;e[2]!==t.downloadUrl?(i=async()=>{const u=await fetch(t.downloadUrl,{credentials:"include"});if(!u.ok)throw new Error(`fetch failed: ${u.status}`);return u.text()},e[2]=t.downloadUrl,e[3]=i):i=e[3];let a;e[4]!==r||e[5]!==i?(a={queryKey:r,queryFn:i,staleTime:6e4,retry:!1},e[4]=r,e[5]=i,e[6]=a):a=e[6];const{data:c,isPending:o,isError:d}=oe(a);if(o){let u;return e[7]===Symbol.for("react.memo_cache_sentinel")?(u=l.jsx(fs,{}),e[7]=u):u=e[7],u}if(d||c===void 0){let u;return e[8]!==t?(u=l.jsx(hs,{file:t,note:"preview unavailable"}),e[8]=t,e[9]=u):u=e[9],u}if(s){const u=`file-preview-${t.key}`;let h;return e[10]!==c||e[11]!==u?(h=l.jsx("div",{className:"h-full overflow-y-auto",children:l.jsx("div",{className:"prose prose-sm dark:prose-invert mx-auto max-w-3xl px-6 py-6",children:l.jsx(Ht,{id:u,text:c})})}),e[10]=c,e[11]=u,e[12]=h):h=e[12],h}let f;return e[13]!==c||e[14]!==t.filename?(f=l.jsx(vl,{value:c,filename:t.filename}),e[13]=c,e[14]=t.filename,e[15]=f):f=e[15],f}function ms(n){const e=E.c(15),{file:t}=n;switch(kl(t.filename,t.size)){case"image":{let r;return e[0]!==t.downloadUrl||e[1]!==t.filename?(r=l.jsx("div",{className:"flex h-full w-full items-center justify-center overflow-auto bg-muted/30 p-4",children:l.jsx("img",{src:t.downloadUrl,alt:t.filename,className:"max-h-full max-w-full rounded-lg object-contain"})}),e[0]=t.downloadUrl,e[1]=t.filename,e[2]=r):r=e[2],r}case"pdf":{let r;return e[3]!==t.downloadUrl||e[4]!==t.filename?(r=l.jsx("iframe",{src:t.downloadUrl,title:t.filename,className:"block h-full w-full bg-white"}),e[3]=t.downloadUrl,e[4]=t.filename,e[5]=r):r=e[5],r}case"html":{let r;return e[6]!==t.downloadUrl||e[7]!==t.filename?(r=l.jsx("iframe",{src:t.downloadUrl,title:t.filename,sandbox:"allow-scripts",className:"block h-full w-full bg-white"}),e[6]=t.downloadUrl,e[7]=t.filename,e[8]=r):r=e[8],r}case"markdown":{let r;return e[9]!==t?(r=l.jsx(pn,{file:t,markdown:!0}),e[9]=t,e[10]=r):r=e[10],r}case"text":{let r;return e[11]!==t?(r=l.jsx(pn,{file:t,markdown:!1}),e[11]=t,e[12]=r):r=e[12],r}default:{let r;return e[13]!==t?(r=l.jsx(hs,{file:t}),e[13]=t,e[14]=r):r=e[14],r}}}function Sl(n){const e=E.c(52),{readUrl:t,editor:s,downloadName:r,trailing:i}=n,a=se();let c;e[0]!==t?(c=new URL(t,window.location.origin).toString(),e[0]=t,e[1]=c):c=e[1];const o=c;let d;e[2]!==s||e[3]!==a?(d=s.deckDetected&&l.jsxs(ve,{children:[l.jsx(we,{asChild:!0,children:l.jsx(Z,{variant:s.railOpen?"secondary":"ghost",size:"icon","aria-label":s.railOpen?a("deck.deckToolbar.hideSlideList"):a("deck.deckToolbar.showSlideList"),onClick:()=>s.setRailOpen(!s.railOpen),children:l.jsx(xr,{size:14})})}),l.jsx(je,{side:"bottom",children:s.railOpen?a("deck.deckToolbar.hideSlideList"):a("deck.deckToolbar.showSlideList")})]}),e[2]=s,e[3]=a,e[4]=d):d=e[4];let f;e[5]!==o?(f=()=>window.open(o,"_blank","noopener"),e[5]=o,e[6]=f):f=e[6];let u;e[7]!==o?(u=l.jsx("span",{className:"truncate",children:o}),e[7]=o,e[8]=u):u=e[8];let h;e[9]!==o||e[10]!==f||e[11]!==u?(h=l.jsx("button",{type:"button",onClick:f,className:"flex min-w-0 flex-1 items-center rounded-md px-2 py-1 text-left text-xs text-muted-foreground transition-colors hover:bg-muted hover:text-foreground",title:o,children:u}),e[9]=o,e[10]=f,e[11]=u,e[12]=h):h=e[12];let m;e[13]!==s.agentUpdated||e[14]!==s.reload||e[15]!==a?(m=s.agentUpdated&&l.jsxs(ve,{children:[l.jsx(we,{asChild:!0,children:l.jsxs(Z,{variant:"outline",size:"sm",className:"h-7 gap-1 text-xs",onClick:s.reload,children:[l.jsx(Sn,{size:12}),a("deck.deckToolbar.agentUpdatedReload")]})}),l.jsx(je,{side:"bottom",children:a("deck.deckToolbar.agentRewriteWarning")})]}),e[13]=s.agentUpdated,e[14]=s.reload,e[15]=a,e[16]=m):m=e[16];let p;e[17]!==s.saving||e[18]!==a?(p=s.saving&&l.jsx("span",{className:"px-1 text-xs text-muted-foreground",children:a("deck.deckToolbar.saving")}),e[17]=s.saving,e[18]=a,e[19]=p):p=e[19];let x;e[20]!==s||e[21]!==a?(x=s.deckDetected&&s.writable&&l.jsxs(ve,{children:[l.jsx(we,{asChild:!0,children:l.jsx(Z,{variant:s.editMode?"secondary":"ghost",size:"icon","aria-label":s.editMode?a("deck.deckToolbar.doneEditing"):a("deck.deckToolbar.editInline"),className:de(s.editMode&&"text-primary"),onClick:()=>s.setEditMode(!s.editMode),children:l.jsx(er,{size:14})})}),l.jsx(je,{side:"bottom",children:s.editMode?a("deck.deckToolbar.doneEditing"):a("deck.deckToolbar.editInlineTooltip")})]}),e[20]=s,e[21]=a,e[22]=x):x=e[22];let b;e[23]!==o||e[24]!==r||e[25]!==s.deckDetected||e[26]!==a?(b=s.deckDetected?l.jsxs(Kt,{children:[l.jsx(qt,{asChild:!0,children:l.jsx(Z,{variant:"ghost",size:"icon","aria-label":a("deck.deckToolbar.download"),children:l.jsx(Ze,{size:14})})}),l.jsxs(Wt,{align:"end",children:[l.jsxs(Ie,{onClick:()=>window.open(`${o}#print`,"_blank","noopener"),children:[l.jsx(tr,{size:14}),a("deck.deckToolbar.exportAsPdf")]}),l.jsx(Ie,{asChild:!0,children:l.jsxs("a",{href:o,download:r,children:[l.jsx(nr,{size:14}),a("deck.deckToolbar.downloadHtml")]})})]})]}):l.jsxs(ve,{children:[l.jsx(we,{asChild:!0,children:l.jsx(Z,{variant:"ghost",size:"icon","aria-label":a("deck.deckToolbar.download"),asChild:!0,children:l.jsx("a",{href:o,download:r,children:l.jsx(Ze,{size:14})})})}),l.jsx(je,{side:"bottom",children:a("deck.deckToolbar.download")})]}),e[23]=o,e[24]=r,e[25]=s.deckDetected,e[26]=a,e[27]=b):b=e[27];let y;e[28]!==a?(y=a("deck.deckToolbar.openInNewTab"),e[28]=a,e[29]=y):y=e[29];let j;e[30]!==o?(j=()=>window.open(o,"_blank","noopener"),e[30]=o,e[31]=j):j=e[31];let k;e[32]===Symbol.for("react.memo_cache_sentinel")?(k=l.jsx(On,{size:14}),e[32]=k):k=e[32];let C;e[33]!==y||e[34]!==j?(C=l.jsx(we,{asChild:!0,children:l.jsx(Z,{variant:"ghost",size:"icon","aria-label":y,onClick:j,children:k})}),e[33]=y,e[34]=j,e[35]=C):C=e[35];let S;e[36]!==a?(S=a("deck.deckToolbar.openInNewTab"),e[36]=a,e[37]=S):S=e[37];let v;e[38]!==S?(v=l.jsx(je,{side:"bottom",children:S}),e[38]=S,e[39]=v):v=e[39];let g;e[40]!==C||e[41]!==v?(g=l.jsxs(ve,{children:[C,v]}),e[40]=C,e[41]=v,e[42]=g):g=e[42];let $;return e[43]!==g||e[44]!==d||e[45]!==h||e[46]!==m||e[47]!==p||e[48]!==x||e[49]!==b||e[50]!==i?($=l.jsxs("div",{className:"flex h-9 shrink-0 items-center gap-1 border-b border-border/60 px-2",children:[d,h,m,p,x,b,g,i]}),e[43]=g,e[44]=d,e[45]=h,e[46]=m,e[47]=p,e[48]=x,e[49]=b,e[50]=i,e[51]=$):$=e[51],$}const Ae=1;function Nl(n){if(typeof n!="object"||n===null||n.v!==Ae||n.source!=="deck-viewer")return null;const e=n;return e.type==="ready"||e.type==="state"||e.type==="op"&&typeof e.opId=="string"&&e.op?e:null}class Pe extends Error{constructor(e,t){super(e),this.code=t,this.name="DeckOpError"}code}function ps(n){return[...n.children].filter(e=>!/^(TEMPLATE|SCRIPT|STYLE)$/.test(e.tagName))}function Pl(n){const t=new DOMParser().parseFromString(n,"text/html").querySelector("deck-viewer");return t?ps(t).length:null}function Cl(n,e){const t=new DOMParser().parseFromString(n,"text/html"),s=t.querySelector("deck-viewer");if(!s)throw new Pe("no <deck-viewer> element in source","no-viewer");const r=ps(s),i=e.kind==="move"?e.from:e.at,a=r[i];if(!a)throw new Pe(`slide index ${i} out of range (${r.length})`,"stale-index");switch(e.kind){case"remove":{if(r.length<=1)throw new Pe("cannot remove the last slide","bad-op");a.remove();break}case"duplicate":{const o=a.cloneNode(!0);o.removeAttribute("id");for(const d of o.querySelectorAll("[id]"))d.removeAttribute("id");a.after(o);break}case"move":{if(e.to<0||e.to>=r.length)throw new Pe(`move target ${e.to} out of range`,"stale-index");if(e.to!==e.from){const o=e.to<e.from?r[e.to]:r[e.to].nextSibling;s.insertBefore(a,o)}break}case"set-attr":{if(!/^[a-zA-Z][\w-]*$/.test(e.name))throw new Pe(`invalid attribute name: ${e.name}`,"bad-op");a.setAttribute(e.name,e.value);break}case"remove-attr":{a.removeAttribute(e.name);break}case"replace":{const d=new DOMParser().parseFromString(e.html,"text/html").body.firstElementChild;if(!d)throw new Pe("replace html has no root element","bad-op");a.replaceWith(t.importNode(d,!0));break}default:throw new Pe(`unknown op kind: ${e.kind}`,"bad-op")}return`${n.trimStart().toLowerCase().startsWith("<!doctype")?`<!DOCTYPE html>
@@ -1,4 +1,4 @@
1
- import{r as a,aN as R}from"./index-B3mw6d9V.js";function re(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function me(e){if(Array.isArray(e))return e}function be(e,t,r){return(t=Se(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function ye(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,o,i,c,s=[],f=!0,p=!1;try{if(i=(r=r.call(e)).next,t!==0)for(;!(f=(n=i.call(r)).done)&&(s.push(n.value),s.length!==t);f=!0);}catch(j){p=!0,o=j}finally{try{if(!f&&r.return!=null&&(c=r.return(),Object(c)!==c))return}finally{if(p)throw o}}return s}}function we(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
1
+ import{r as a,aN as R}from"./index-DFdG3_6f.js";function re(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function me(e){if(Array.isArray(e))return e}function be(e,t,r){return(t=Se(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function ye(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,o,i,c,s=[],f=!0,p=!1;try{if(i=(r=r.call(e)).next,t!==0)for(;!(f=(n=i.call(r)).done)&&(s.push(n.value),s.length!==t);f=!0);}catch(j){p=!0,o=j}finally{try{if(!f&&r.return!=null&&(c=r.return(),Object(c)!==c))return}finally{if(p)throw o}}return s}}function we(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
2
2
  In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function ne(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,n)}return r}function oe(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?ne(Object(r),!0).forEach(function(n){be(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ne(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Oe(e,t){if(e==null)return{};var r,n,o=je(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)===-1&&{}.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}function je(e,t){if(e==null)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.indexOf(n)!==-1)continue;r[n]=e[n]}return r}function Me(e,t){return me(e)||ye(e,t)||Ee(e,t)||we()}function Pe(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Se(e){var t=Pe(e,"string");return typeof t=="symbol"?t:t+""}function Ee(e,t){if(e){if(typeof e=="string")return re(e,t);var r={}.toString.call(e).slice(8,-1);return r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set"?Array.from(e):r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?re(e,t):void 0}}function Re(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function ie(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,n)}return r}function ae(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?ie(Object(r),!0).forEach(function(n){Re(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ie(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Ie(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return function(n){return t.reduceRight(function(o,i){return i(o)},n)}}function A(e){return function t(){for(var r=this,n=arguments.length,o=new Array(n),i=0;i<n;i++)o[i]=arguments[i];return o.length>=e.length?e.apply(this,o):function(){for(var c=arguments.length,s=new Array(c),f=0;f<c;f++)s[f]=arguments[f];return t.apply(r,[].concat(o,s))}}}function F(e){return{}.toString.call(e).includes("Object")}function Te(e){return!Object.keys(e).length}function D(e){return typeof e=="function"}function Ce(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function Le(e,t){return F(t)||P("changeType"),Object.keys(t).some(function(r){return!Ce(e,r)})&&P("changeField"),t}function Ae(e){D(e)||P("selectorType")}function $e(e){D(e)||F(e)||P("handlerType"),F(e)&&Object.values(e).some(function(t){return!D(t)})&&P("handlersType")}function De(e){e||P("initialIsRequired"),F(e)||P("initialType"),Te(e)&&P("initialContent")}function Ve(e,t){throw new Error(e[t]||e.default)}var xe={initialIsRequired:"initial state is required",initialType:"initial state should be an object",initialContent:"initial state shouldn't be an empty object",handlerType:"handler should be an object or a function",handlersType:"all handlers should be a functions",selectorType:"selector should be a function",changeType:"provided value of changes should be an object",changeField:'it seams you want to change a field in the state which is not specified in the "initial" state',default:"an unknown error accured in `state-local` package"},P=A(Ve)(xe),q={changes:Le,selector:Ae,handler:$e,initial:De};function Ne(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};q.initial(e),q.handler(t);var r={current:e},n=A(Fe)(r,t),o=A(ze)(r),i=A(q.changes)(e),c=A(qe)(r);function s(){var p=arguments.length>0&&arguments[0]!==void 0?arguments[0]:function(j){return j};return q.selector(p),p(r.current)}function f(p){Ie(n,o,i,c)(p)}return[s,f]}function qe(e,t){return D(t)?t(e.current):t}function ze(e,t){return e.current=ae(ae({},e.current),t),t}function Fe(e,t,r){return D(t)?t(e.current):Object.keys(r).forEach(function(n){var o;return(o=t[n])===null||o===void 0?void 0:o.call(t,e.current[n])}),r}var Ue={create:Ne},He={paths:{vs:"https://cdn.jsdelivr.net/npm/monaco-editor@0.55.1/min/vs"}};function We(e){return function t(){for(var r=this,n=arguments.length,o=new Array(n),i=0;i<n;i++)o[i]=arguments[i];return o.length>=e.length?e.apply(this,o):function(){for(var c=arguments.length,s=new Array(c),f=0;f<c;f++)s[f]=arguments[f];return t.apply(r,[].concat(o,s))}}}function Be(e){return{}.toString.call(e).includes("Object")}function Ke(e){return e||ue("configIsRequired"),Be(e)||ue("configType"),e.urls?(Ge(),{paths:{vs:e.urls.monacoBase}}):e}function Ge(){console.warn(ce.deprecation)}function Ye(e,t){throw new Error(e[t]||e.default)}var ce={configIsRequired:"the configuration object is required",configType:"the configuration object should be an object",default:"an unknown error accured in `@monaco-editor/loader` package",deprecation:`Deprecation warning!
3
3
  You are using deprecated way of configuration.
4
4
 
@@ -1 +1 @@
1
- import{c as g,e as p,j as s,k as u,N as a}from"./index-B3mw6d9V.js";import{a as x}from"./use-capability-agtn1o9e.js";import{C as j}from"./capability-load-error-CbA1NqWt.js";function v(){const t=g.c(21);let o;t[0]===Symbol.for("react.memo_cache_sentinel")?(o={from:"/shell/$org"},t[0]=o):o=t[0];const{org:r}=p(o),{capabilities:l,isPrivileged:m,loading:c,error:f}=x();if(c){let e;return t[1]===Symbol.for("react.memo_cache_sentinel")?(e=s.jsx("div",{className:"flex flex-1 items-center justify-center p-8",children:s.jsx(u,{size:20,className:"animate-spin text-muted-foreground"})}),t[1]=e):e=t[1],e}if(f){let e;return t[2]===Symbol.for("react.memo_cache_sentinel")?(e=s.jsx(j,{}),t[2]=e):e=t[2],e}const i=e=>m||l[e]===!0;if(i("org:manage")){let e;return t[3]!==r?(e=s.jsx(a,{to:"/$org/settings/general",params:{org:r},replace:!0}),t[3]=r,t[4]=e):e=t[4],e}if(i("ai-providers:manage")){let e;return t[5]!==r?(e=s.jsx(a,{to:"/$org/settings/ai-providers",params:{org:r},replace:!0}),t[5]=r,t[6]=e):e=t[6],e}if(i("secrets:manage")){let e;return t[7]!==r?(e=s.jsx(a,{to:"/$org/settings/secrets",params:{org:r},replace:!0}),t[7]=r,t[8]=e):e=t[8],e}if(i("file-configs:manage")){let e;return t[9]!==r?(e=s.jsx(a,{to:"/$org/settings/buckets",params:{org:r},replace:!0}),t[9]=r,t[10]=e):e=t[10],e}if(i("automations:manage")){let e;return t[11]!==r?(e=s.jsx(a,{to:"/$org/settings/automations",params:{org:r},replace:!0}),t[11]=r,t[12]=e):e=t[12],e}if(i("registry:manage")){let e;return t[13]!==r?(e=s.jsx(a,{to:"/$org/settings/store",params:{org:r},replace:!0}),t[13]=r,t[14]=e):e=t[14],e}if(i("monitoring:view")){let e;return t[15]!==r?(e=s.jsx(a,{to:"/$org/settings/monitor",params:{org:r},replace:!0}),t[15]=r,t[16]=e):e=t[16],e}if(i("members:manage")){let e;return t[17]!==r?(e=s.jsx(a,{to:"/$org/settings/members",params:{org:r},replace:!0}),t[17]=r,t[18]=e):e=t[18],e}let n;return t[19]!==r?(n=s.jsx(a,{to:"/$org/settings/profile",params:{org:r},replace:!0}),t[19]=r,t[20]=n):n=t[20],n}export{v as default};
1
+ import{c as g,e as p,j as s,k as u,N as a}from"./index-DFdG3_6f.js";import{a as x}from"./use-capability-C3wSODDi.js";import{C as j}from"./capability-load-error-BF8u5SIE.js";function v(){const t=g.c(21);let o;t[0]===Symbol.for("react.memo_cache_sentinel")?(o={from:"/shell/$org"},t[0]=o):o=t[0];const{org:r}=p(o),{capabilities:l,isPrivileged:m,loading:c,error:f}=x();if(c){let e;return t[1]===Symbol.for("react.memo_cache_sentinel")?(e=s.jsx("div",{className:"flex flex-1 items-center justify-center p-8",children:s.jsx(u,{size:20,className:"animate-spin text-muted-foreground"})}),t[1]=e):e=t[1],e}if(f){let e;return t[2]===Symbol.for("react.memo_cache_sentinel")?(e=s.jsx(j,{}),t[2]=e):e=t[2],e}const i=e=>m||l[e]===!0;if(i("org:manage")){let e;return t[3]!==r?(e=s.jsx(a,{to:"/$org/settings/general",params:{org:r},replace:!0}),t[3]=r,t[4]=e):e=t[4],e}if(i("ai-providers:manage")){let e;return t[5]!==r?(e=s.jsx(a,{to:"/$org/settings/ai-providers",params:{org:r},replace:!0}),t[5]=r,t[6]=e):e=t[6],e}if(i("secrets:manage")){let e;return t[7]!==r?(e=s.jsx(a,{to:"/$org/settings/secrets",params:{org:r},replace:!0}),t[7]=r,t[8]=e):e=t[8],e}if(i("file-configs:manage")){let e;return t[9]!==r?(e=s.jsx(a,{to:"/$org/settings/buckets",params:{org:r},replace:!0}),t[9]=r,t[10]=e):e=t[10],e}if(i("automations:manage")){let e;return t[11]!==r?(e=s.jsx(a,{to:"/$org/settings/automations",params:{org:r},replace:!0}),t[11]=r,t[12]=e):e=t[12],e}if(i("registry:manage")){let e;return t[13]!==r?(e=s.jsx(a,{to:"/$org/settings/store",params:{org:r},replace:!0}),t[13]=r,t[14]=e):e=t[14],e}if(i("monitoring:view")){let e;return t[15]!==r?(e=s.jsx(a,{to:"/$org/settings/monitor",params:{org:r},replace:!0}),t[15]=r,t[16]=e):e=t[16],e}if(i("members:manage")){let e;return t[17]!==r?(e=s.jsx(a,{to:"/$org/settings/members",params:{org:r},replace:!0}),t[17]=r,t[18]=e):e=t[18],e}let n;return t[19]!==r?(n=s.jsx(a,{to:"/$org/settings/profile",params:{org:r},replace:!0}),t[19]=r,t[20]=n):n=t[20],n}export{v as default};