decocms 4.66.4 → 4.66.5
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.
- package/dist/client/assets/{AlertCircle-DpGTDRiv.js → AlertCircle-D2e1IbQ9.js} +1 -1
- package/dist/client/assets/{AreaChart-CJ9jQsn1.js → AreaChart-BAThX5Fm.js} +1 -1
- package/dist/client/assets/{ArrowUp-DPYXbLT6.js → ArrowUp-BU-Z1jJQ.js} +1 -1
- package/dist/client/assets/{ArrowUpRight-CRVuBuqe.js → ArrowUpRight-CFaWue5d.js} +1 -1
- package/dist/client/assets/{Check-BNt9mk-D.js → Check-BeKF7ryP.js} +1 -1
- package/dist/client/assets/{CheckCircle-BNaQqVHQ.js → CheckCircle-DyouInVj.js} +1 -1
- package/dist/client/assets/{ChevronDown-DI7U8iFw.js → ChevronDown-B8tQZIrX.js} +1 -1
- package/dist/client/assets/{ChevronRight-Dezz-GKi.js → ChevronRight-DQSOBVvN.js} +1 -1
- package/dist/client/assets/{ChevronUp-BkYnqudq.js → ChevronUp-_KdOO2nH.js} +1 -1
- package/dist/client/assets/{Circle-D-7MB4wb.js → Circle-NxIvVe3Q.js} +1 -1
- package/dist/client/assets/{Copy01-ClGV_r78.js → Copy01-CI9b1UdY.js} +1 -1
- package/dist/client/assets/{DotsVertical-CyKDl1YT.js → DotsVertical-DIdj_9VP.js} +1 -1
- package/dist/client/assets/{Eye-tdnV7eeM.js → Eye-DXEAZ3hD.js} +1 -1
- package/dist/client/assets/{FilterLines-BVHN4U5j.js → FilterLines-Cxku2FA2.js} +1 -1
- package/dist/client/assets/{Flag01-D-oUUJHx.js → Flag01-CBmw0V-u.js} +1 -1
- package/dist/client/assets/{Globe01-Dm9PnK-F.js → Globe01-D7_tFNDx.js} +1 -1
- package/dist/client/assets/{Globe04-BnHgki8n.js → Globe04-CCHKXdFz.js} +1 -1
- package/dist/client/assets/{HardDrive-C9hGyouR.js → HardDrive-NYx78rMM.js} +1 -1
- package/dist/client/assets/{Key01-DJ0uZl34.js → Key01-BNLFmOh7.js} +1 -1
- package/dist/client/assets/{LayoutLeft-Bh6PRpti.js → LayoutLeft-NpY_J3Yc.js} +1 -1
- package/dist/client/assets/{LinkExternal01-DBj5TAG_.js → LinkExternal01-BryNA8iO.js} +1 -1
- package/dist/client/assets/{List-DCINwgvi.js → List-D0M5GuPZ.js} +1 -1
- package/dist/client/assets/{Monitor01-CoDTkC72.js → Monitor01-B04zhE1T.js} +1 -1
- package/dist/client/assets/{Package-DfoT3-RN.js → Package-CO7Xgr7_.js} +1 -1
- package/dist/client/assets/{Palette-2axWk8FI.js → Palette-Bex9htb6.js} +1 -1
- package/dist/client/assets/{Play-BHe7GD0W.js → Play-BXLvheWQ.js} +1 -1
- package/dist/client/assets/{Plus-CU016uRc.js → Plus-DxOiY_eh.js} +1 -1
- package/dist/client/assets/{SearchLg-veyGe5A6.js → SearchLg-C90ngNcG.js} +1 -1
- package/dist/client/assets/{SearchMd-CSef2ze8.js → SearchMd-m1D6VnPd.js} +1 -1
- package/dist/client/assets/{Settings02-BAUT75nK.js → Settings02-D429w86e.js} +1 -1
- package/dist/client/assets/{Shield01-DqRbrZUc.js → Shield01-onTg52oR.js} +1 -1
- package/dist/client/assets/{Star01-DB3fsZoO.js → Star01-DbkPcgcO.js} +1 -1
- package/dist/client/assets/{Stars01-BeIhlZl8.js → Stars01-cEC-ipPW.js} +1 -1
- package/dist/client/assets/{Stars02-BR5pCrPw.js → Stars02-BhJkKjOa.js} +1 -1
- package/dist/client/assets/{Sun-C2O7-ojf.js → Sun-ph1Yzoq6.js} +1 -1
- package/dist/client/assets/{SwitchHorizontal01-CZYm8hdk.js → SwitchHorizontal01-DU-_bgmk.js} +1 -1
- package/dist/client/assets/{Tool01-DLXAe-xu.js → Tool01-D3NLtNAy.js} +1 -1
- package/dist/client/assets/{Tool02-CmNp1W1N.js → Tool02-BP9ihXR0.js} +1 -1
- package/dist/client/assets/{Trash01-CRZOLNlS.js → Trash01-BhFFuLC_.js} +1 -1
- package/dist/client/assets/{TrendUp01-CWZyWRn8.js → TrendUp01-usXQKgTf.js} +1 -1
- package/dist/client/assets/{Upload01-CxyHrsNl.js → Upload01-C-B7_O9R.js} +1 -1
- package/dist/client/assets/{User01-VEYLZTRw.js → User01-CwQwHUho.js} +1 -1
- package/dist/client/assets/{UserPlus01-CtS37NN0.js → UserPlus01-Bs1eAsaN.js} +1 -1
- package/dist/client/assets/{Users01-_tZ3LlDE.js → Users01-D3-YPLiO.js} +1 -1
- package/dist/client/assets/{Users03-Ci9S1q-D.js → Users03-CM5WR9J0.js} +1 -1
- package/dist/client/assets/{X-BvELVEGU.js → X-ttpevcf5.js} +1 -1
- package/dist/client/assets/{XCircle-T22q35ry.js → XCircle-D5_mKo5Q.js} +1 -1
- package/dist/client/assets/{XClose-DR9RcI2R.js → XClose-DKgczF-K.js} +1 -1
- package/dist/client/assets/{Zap-DVZmu8Bo.js → Zap-DFeLoTKw.js} +1 -1
- package/dist/client/assets/{ZapSquare-CuMgm4nw.js → ZapSquare-NBl-MsGT.js} +1 -1
- package/dist/client/assets/{ZoomOut-DZqOKQbB.js → ZoomOut-Sz-YfsWa.js} +1 -1
- package/dist/client/assets/{access-gate-COReu7Sk.js → access-gate-B-X_WW-W.js} +1 -1
- package/dist/client/assets/{add-section-modal-0RgaYyQt.js → add-section-modal-Bnhnb5M_.js} +1 -1
- package/dist/client/assets/{agent-icon-BWKC1L_7.js → agent-icon-CYozvZkp.js} +1 -1
- package/dist/client/assets/{agents-list-BAMnr4Ss.js → agents-list-LED7A4SS.js} +1 -1
- package/dist/client/assets/{ai-providers-BU4uR4G2.js → ai-providers-De47EEnR.js} +1 -1
- package/dist/client/assets/{alert-Vvg1F_GR.js → alert-K9Z4DfYF.js} +1 -1
- package/dist/client/assets/{alert-dialog-B1epuIUZ.js → alert-dialog-D64TX1Dr.js} +1 -1
- package/dist/client/assets/{app-editor-CigdiQvN.js → app-editor-DJlrTm3g.js} +1 -1
- package/dist/client/assets/{auth-CwdsGzJ9.js → auth-Caj7GfBa.js} +1 -1
- package/dist/client/assets/{auth-catchall-Kvj_YNzP.js → auth-catchall-BtSuAFLx.js} +1 -1
- package/dist/client/assets/{auth-entry-0KQztvXC.js → auth-entry-CG_TOffC.js} +1 -1
- package/dist/client/assets/{auth-split-layout-Bt3fZ7ly.js → auth-split-layout-D0hQS6OF.js} +1 -1
- package/dist/client/assets/{authenticate-and-persist-oauth-ogIv-6iB.js → authenticate-and-persist-oauth-BepIZ0Zn.js} +1 -1
- package/dist/client/assets/{automation-list-row-DQVbWjc8.js → automation-list-row-QZ36RlHg.js} +1 -1
- package/dist/client/assets/{automation-runs-K-gWhYbg.js → automation-runs-DICSuD3X.js} +1 -1
- package/dist/client/assets/automations-uZc0Vln8.js +1 -0
- package/dist/client/assets/{autosend-yPjceYT9.js → autosend-BEmLSGjV.js} +1 -1
- package/dist/client/assets/{avatar-s80LQQMU.js → avatar-B6jcu2uy.js} +1 -1
- package/dist/client/assets/{badge-CpRsIVce.js → badge-DFucd4ZI.js} +1 -1
- package/dist/client/assets/{block-document-CdWS6jky.js → block-document-BAAUDw50.js} +1 -1
- package/dist/client/assets/{brand-context-B8DKEvAt.js → brand-context-D4t4WFEh.js} +1 -1
- package/dist/client/assets/{buckets-DwPVDh3s.js → buckets-BfEYC9ae.js} +1 -1
- package/dist/client/assets/{bulk-category-panel-CB4La6Xm.js → bulk-category-panel-BNVPzxJ7.js} +1 -1
- package/dist/client/assets/{calendar-BmnesvT_.js → calendar-CYm2qWyM.js} +1 -1
- package/dist/client/assets/{capability-load-error-Bz4xoPv-.js → capability-load-error-L_kyY8y5.js} +1 -1
- package/dist/client/assets/{card-B8KfPtAy.js → card-vhULQda7.js} +1 -1
- package/dist/client/assets/{category-editor-DDov18kX.js → category-editor-OJwo3Yrv.js} +1 -1
- package/dist/client/assets/{chat-context-C7iq1vcp.js → chat-context-DGz6N-ld.js} +1 -1
- package/dist/client/assets/{checkbox-BfgdvohV.js → checkbox-D3GWRkA8.js} +1 -1
- package/dist/client/assets/{cli-auth-success-CpvnjfQO.js → cli-auth-success-qwOxc4m-.js} +1 -1
- package/dist/client/assets/{collection-detail-mlpznRAH.js → collection-detail-BGeFLu8X.js} +1 -1
- package/dist/client/assets/{collection-display-button-jJjNo704.js → collection-display-button-B8q51yv5.js} +1 -1
- package/dist/client/assets/{collection-search-LCMjfwpW.js → collection-search-BkozLvuu.js} +1 -1
- package/dist/client/assets/{collection-table-wrapper-DiN-hXS4.js → collection-table-wrapper-BnGckrf0.js} +1 -1
- package/dist/client/assets/{collection-tabs-C8JEHcGI.js → collection-tabs-IHaOKYcu.js} +1 -1
- package/dist/client/assets/{command-CGHdQrlz.js → command-DdYpl-hF.js} +1 -1
- package/dist/client/assets/{commerce-onboarding-afuEPpKS.js → commerce-onboarding-CaqSq0sk.js} +1 -1
- package/dist/client/assets/{companions-core-CLeuVB2i.js → companions-core-DR2tRUTt.js} +1 -1
- package/dist/client/assets/{connect-desktop-dialog-BrdP9SkK.js → connect-desktop-dialog-B85UqNk0.js} +1 -1
- package/dist/client/assets/{connection-card-BlOPfYEx.js → connection-card-DGB5kRs6.js} +1 -1
- package/dist/client/assets/{connection-detail-D5SnRUG9.js → connection-detail-Dhis21Wt.js} +1 -1
- package/dist/client/assets/{connection-form-helpers-Ci0WPscN.js → connection-form-helpers-BlWWl1X3.js} +1 -1
- package/dist/client/assets/{connections-B9LOnq9V.js → connections-DT5Rz0fU.js} +1 -1
- package/dist/client/assets/{decopilot-sse-pool-DEyIV1RY.js → decopilot-sse-pool-DVF0brOv.js} +1 -1
- package/dist/client/assets/{dialog-Bv1rlXeZ.js → dialog-CEdNabKi.js} +1 -1
- package/dist/client/assets/{domain-settings-CbGOGvGD.js → domain-settings-B5G68LAh.js} +1 -1
- package/dist/client/assets/{drawer-O5-LKHko.js → drawer-DJy6v-hW.js} +1 -1
- package/dist/client/assets/{dropdown-menu-CPNMznXV.js → dropdown-menu-DNxglwfo.js} +1 -1
- package/dist/client/assets/{empty-state-VZsXEvTI.js → empty-state-PVe00vt9.js} +1 -1
- package/dist/client/assets/{extract-connection-data-CvD4-bq1.js → extract-connection-data-zSZwdTE6.js} +1 -1
- package/dist/client/assets/{file-explorer-DxcM-hkV.js → file-explorer-DJtjHPqx.js} +1 -1
- package/dist/client/assets/{file-type-icon-BmQjqKK5.js → file-type-icon-XEWyyoul.js} +1 -1
- package/dist/client/assets/{files-C9UZoRmO.js → files-DLD5DuBi.js} +1 -1
- package/dist/client/assets/{form-BunvkD4k.js → form-D3uYUa7k.js} +1 -1
- package/dist/client/assets/{general-ddvQoKOE.js → general-DwIrrmiH.js} +1 -1
- package/dist/client/assets/{github-repo-picker-DZdk8J1a.js → github-repo-picker-B-BbeN-y.js} +1 -1
- package/dist/client/assets/{hooks-XSTGd3D2.js → hooks-CBDw1Ecf.js} +1 -1
- package/dist/client/assets/{index-DqKCS1eR.js → index---n_MuMs.js} +1 -1
- package/dist/client/assets/{index-CHfXNR_K.js → index-B-KoQbra.js} +1 -1
- package/dist/client/assets/{index-DZC5b_pn.js → index-B5qSB2sm.js} +1 -1
- package/dist/client/assets/{index-Crwy_c_N.js → index-B6dQ2ALc.js} +5 -5
- package/dist/client/assets/{index-JMlbimZm.js → index-BHX9Y_tK.js} +1 -1
- package/dist/client/assets/{index-BVrSPPoe.js → index-BNG8dxUj.js} +1 -1
- package/dist/client/assets/{index-BfNgfRL0.js → index-BSGeg-97.js} +1 -1
- package/dist/client/assets/{index-BRCYx41U.js → index-Bq34u6mz.js} +1 -1
- package/dist/client/assets/{index-CvirpjtV.js → index-Ci5qa3_j.js} +1 -1
- package/dist/client/assets/{index-h0_Vt5m_.js → index-CivvBmoO.js} +1 -1
- package/dist/client/assets/{index-CLrLF84V.js → index-Cmuxb9zH.js} +1 -1
- package/dist/client/assets/index-D68_v4pD.js +2 -0
- package/dist/client/assets/{index-DiAIPfCX.js → index-DA_UAU1y.js} +1 -1
- package/dist/client/assets/{index-UBa5GKlY.js → index-DagCLY74.js} +3 -3
- package/dist/client/assets/{index-redirect-ByTUagFp.js → index-redirect-DiHhN3ub.js} +1 -1
- package/dist/client/assets/{input-ChBvxSlE.js → input-BBLoJ_rD.js} +1 -1
- package/dist/client/assets/{integration-icon-Dyv10eTU.js → integration-icon-C0eJpgC9.js} +1 -1
- package/dist/client/assets/{invite-member-dialog-AzN_pzFq.js → invite-member-dialog-CIHojM2s.js} +1 -1
- package/dist/client/assets/{label-RMk2eUhj.js → label-BP0To6VG.js} +1 -1
- package/dist/client/assets/{layout-fPwcqOil.js → layout-C1NAtmIA.js} +1 -1
- package/dist/client/assets/{login-D9RL171m.js → login-Z4VrliFE.js} +1 -1
- package/dist/client/assets/{mcp-oauth-Cv2VpcZd.js → mcp-oauth-D6yzbvBD.js} +1 -1
- package/dist/client/assets/{members-CvRhuTBv.js → members-5QHinBBw.js} +1 -1
- package/dist/client/assets/{monaco-editor-DM8Y_TwZ.js → monaco-editor-BAf0t1TY.js} +1 -1
- package/dist/client/assets/{monitoring-stats-row-CloQpBnq.js → monitoring-stats-row-CSBQpei0.js} +1 -1
- package/dist/client/assets/{oauth-callback-DQ44acUE.js → oauth-callback-CYLU0sKA.js} +1 -1
- package/dist/client/assets/{oauth-callback-ai-provider-1t_3jZo6.js → oauth-callback-ai-provider-p6gWhWSY.js} +1 -1
- package/dist/client/assets/{onboarding-B1jbvwmi.js → onboarding-CAufSDiu.js} +1 -1
- package/dist/client/assets/{org-install-C_99LG01.js → org-install-ChAraVbX.js} +1 -1
- package/dist/client/assets/{org-layout-hBMKefnk.js → org-layout-iLkiMkC8.js} +1 -1
- package/dist/client/assets/{organization-choice-D0hY6QFX.js → organization-choice-ybrk9Csk.js} +1 -1
- package/dist/client/assets/{orgs-CCkeM2y-.js → orgs-CNbiRe_0.js} +1 -1
- package/dist/client/assets/{page-seo-form-uVn6Xzil.js → page-seo-form-mDUOo6X9.js} +1 -1
- package/dist/client/assets/page-seo-sheet-B4QTpTxT.js +1 -0
- package/dist/client/assets/{popover-WOIryKEK.js → popover-Ca3OFWgd.js} +1 -1
- package/dist/client/assets/{post-editor-CsuSrZog.js → post-editor-BnOpfDrB.js} +1 -1
- package/dist/client/assets/{primitives-DKMourmq.js → primitives-Dq4XQfCJ.js} +1 -1
- package/dist/client/assets/{profile-BIpW-kWm.js → profile-C3hgqRtk.js} +1 -1
- package/dist/client/assets/project-app-view-DK1JmXSt.js +1 -0
- package/dist/client/assets/record-editor-CAw7fsBd.js +1 -0
- package/dist/client/assets/registry-D9o6OrS0.js +2 -0
- package/dist/client/assets/{registry-layout-DH0FQCyr.js → registry-layout-BgBjhil5.js} +1 -1
- package/dist/client/assets/{reports-BO6935cB.js → reports-CIaMDme4.js} +1 -1
- package/dist/client/assets/{require-capability-Ca9K6udY.js → require-capability-DYblqiPi.js} +1 -1
- package/dist/client/assets/{required-auth-layout-DtabBZu8.js → required-auth-layout-D-EPHIaz.js} +1 -1
- package/dist/client/assets/{reset-password-UGQNo4Iq.js → reset-password-DyBXzUf7.js} +1 -1
- package/dist/client/assets/{roles-XJBB4Fnc.js → roles-BxvXnMcs.js} +1 -1
- package/dist/client/assets/{search-input-CgFTlsws.js → search-input-BRjcOvpB.js} +1 -1
- package/dist/client/assets/{secrets-Di1XrrLP.js → secrets-BqDuR4td.js} +1 -1
- package/dist/client/assets/{sections-editor-qEsMgbAo.js → sections-editor-DfY0j0f4.js} +1 -1
- package/dist/client/assets/{select-OcL5kyLN.js → select-DTS49HHU.js} +1 -1
- package/dist/client/assets/{select-model-C-9lkKIf.js → select-model-mIfpn6-t.js} +1 -1
- package/dist/client/assets/{self-tool-result-Ckcd6JPH.js → self-tool-result-CUE4oWOH.js} +1 -1
- package/dist/client/assets/{seo-editor-d9sUg13R.js → seo-editor-tw_ZiWG5.js} +1 -1
- package/dist/client/assets/{settings-layout-CIOUvmGE.js → settings-layout-DiNtRA2q.js} +1 -1
- package/dist/client/assets/{settings-section--df0qKIZ.js → settings-section-NRl5pd54.js} +1 -1
- package/dist/client/assets/{shell-controls-DdOD_fga.js → shell-controls-BRETZBj4.js} +1 -1
- package/dist/client/assets/{shell-layout-CjihI-ec.js → shell-layout-DK-k4xlt.js} +1 -1
- package/dist/client/assets/{sidebar-fPX8oeYl.js → sidebar-DkdqXyM3.js} +1 -1
- package/dist/client/assets/{skeleton-BewuvCh8.js → skeleton-DQt9Jo4R.js} +1 -1
- package/dist/client/assets/{sso-SmKixbcU.js → sso-DSo5pRoF.js} +1 -1
- package/dist/client/assets/{store-S-0Ryayn.js → store-CbVK9aIX.js} +1 -1
- package/dist/client/assets/store-registry-CBAykOYc.js +2 -0
- package/dist/client/assets/{studio-tools-9cpKOV8e.js → studio-tools-C2NgOOtG.js} +1 -1
- package/dist/client/assets/{switch-CNRigQzx.js → switch-pCnkRDbX.js} +1 -1
- package/dist/client/assets/{table-D24qJKB5.js → table-DDhQjHuE.js} +1 -1
- package/dist/client/assets/{tabs-45uLEM9z.js → tabs-DYlEgz67.js} +1 -1
- package/dist/client/assets/{textarea-BKF-s45b.js → textarea-Ca5fCVqp.js} +1 -1
- package/dist/client/assets/{toggle-group-w90HgdAR.js → toggle-group-DUka6U62.js} +1 -1
- package/dist/client/assets/{toolbar-C45Hedmg.js → toolbar-D4a_v80C.js} +1 -1
- package/dist/client/assets/{toolbar-icon-button-D3NSPehp.js → toolbar-icon-button-CU32G5kc.js} +1 -1
- package/dist/client/assets/{tools-list-BFZj6fsp.js → tools-list-DC6ietE3.js} +1 -1
- package/dist/client/assets/{tooltip-BM2SjiEh.js → tooltip-UAPe-YqR.js} +1 -1
- package/dist/client/assets/{use-ai-providers-CJvTBSJD.js → use-ai-providers-BS6hitcO.js} +1 -1
- package/dist/client/assets/{use-automations-ClghXFan.js → use-automations-CKtvEvHJ.js} +1 -1
- package/dist/client/assets/{use-capability-BMG-8FQ4.js → use-capability-BhgsQeW9.js} +1 -1
- package/dist/client/assets/{use-clock-tick-D1ezHjSV.js → use-clock-tick-ovoAqz8x.js} +1 -1
- package/dist/client/assets/{use-collections-Dchww9Wv.js → use-collections-D1NOVf8w.js} +1 -1
- package/dist/client/assets/{use-connection-B7req-VS.js → use-connection-CvMzd-d2.js} +1 -1
- package/dist/client/assets/{use-copy-BYKeg81e.js → use-copy-DvQrS05Z.js} +1 -1
- package/dist/client/assets/{use-create-virtual-mcp-iJRUDmXn.js → use-create-virtual-mcp-Dfz4OYE0.js} +1 -1
- package/dist/client/assets/{use-debounced-autosave-BY2qDv0T.js → use-debounced-autosave-Bew81fTQ.js} +1 -1
- package/dist/client/assets/{use-debounced-value-Bb8CzcFh.js → use-debounced-value-DN8U_bzY.js} +1 -1
- package/dist/client/assets/{use-deco-credits-FgZ7Fvx-.js → use-deco-credits-1V1uGJDu.js} +1 -1
- package/dist/client/assets/{use-decopilot-events-Dsd3ggjA.js → use-decopilot-events-ks1hTRMq.js} +1 -1
- package/dist/client/assets/{use-delete-connection-BwgVQxRN.js → use-delete-connection-DjyJwqVI.js} +1 -1
- package/dist/client/assets/{use-deployment-admin-C6itdDcy.js → use-deployment-admin-D5-I5FPK.js} +1 -1
- package/dist/client/assets/{use-file-configs-B5F-xAMi.js → use-file-configs-CAv3D-tH.js} +1 -1
- package/dist/client/assets/{use-infinite-scroll-JaoIa7SF.js → use-infinite-scroll-BEf1mEYL.js} +1 -1
- package/dist/client/assets/{use-join-requests-rg1qQJc8.js → use-join-requests-D9FLX8N_.js} +1 -1
- package/dist/client/assets/{use-mcp-client-BOSoEcWZ.js → use-mcp-client-COWES9BB.js} +1 -1
- package/dist/client/assets/{use-mcp-tools-Co3mzzuY.js → use-mcp-tools-BuvDYc7H.js} +1 -1
- package/dist/client/assets/{use-members-BcSvQ5Nf.js → use-members-B4mBOyhx.js} +1 -1
- package/dist/client/assets/{use-mobile-i7lmwo7h.js → use-mobile-frKQAcEb.js} +1 -1
- package/dist/client/assets/{use-navigate-to-agent-CdtSsF8W.js → use-navigate-to-agent-CbS47Ko_.js} +1 -1
- package/dist/client/assets/{use-org-auth-client-P7auznxT.js → use-org-auth-client-DfrzzoWr.js} +1 -1
- package/dist/client/assets/{use-org-sso-Di1Y0iFW.js → use-org-sso-DRBTUgR7.js} +1 -1
- package/dist/client/assets/{use-organization-roles-BjSMWmWb.js → use-organization-roles-9KxUZ7jK.js} +1 -1
- package/dist/client/assets/{use-organization-settings-NiUPGTSo.js → use-organization-settings-DCSvytno.js} +1 -1
- package/dist/client/assets/{use-registry-connections-Chny7K7b.js → use-registry-connections-Cnp07PwB.js} +1 -1
- package/dist/client/assets/{use-secrets-BYjLHco5.js → use-secrets-FPS-k0pw.js} +1 -1
- package/dist/client/assets/{use-status-sounds-Cc-Rzepb.js → use-status-sounds-BMQAqgzk.js} +1 -1
- package/dist/client/assets/{use-view-mode-Dg8_p615.js → use-view-mode-BvHu3yPY.js} +1 -1
- package/dist/client/assets/{use-virtual-mcp-CnjOneSD.js → use-virtual-mcp-iDzufNLi.js} +1 -1
- package/dist/client/assets/useInfiniteQuery-CIH9os1B.js +1 -0
- package/dist/client/assets/{useRouterState-booqaG0d.js → useRouterState-n_tm0mk1.js} +1 -1
- package/dist/client/assets/useSuspenseInfiniteQuery-CIZCOuoc.js +1 -0
- package/dist/client/assets/{users-Blo8I7MI.js → users-ravxKvA_.js} +1 -1
- package/dist/client/assets/{variant-calendar-DAedzIfJ.js → variant-calendar-Bctd9TiU.js} +1 -1
- package/dist/client/assets/{view-mode-toggle-BTg7d0uS.js → view-mode-toggle-DQKVANDp.js} +1 -1
- package/dist/client/index.html +1 -1
- package/dist/server/cli.js +1 -1
- package/dist/server/server.js +1 -1
- package/package.json +1 -1
- package/dist/client/assets/automations-CN2MQqXc.js +0 -1
- package/dist/client/assets/index-BvGAeLY-.js +0 -1
- package/dist/client/assets/page-seo-sheet-BosEgq8A.js +0 -1
- package/dist/client/assets/project-app-view-BG9C52Fh.js +0 -1
- package/dist/client/assets/record-editor-D6z9Bc3M.js +0 -1
- package/dist/client/assets/registry-D769PBXR.js +0 -2
- package/dist/client/assets/store-registry-D5jf58k8.js +0 -2
- package/dist/client/assets/useInfiniteQuery-BtXi8EQa.js +0 -1
- package/dist/client/assets/useSuspenseInfiniteQuery-CNhoworc.js +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{bi as f,bj as t,ae as R,I as l,c2 as z,H as s,af as y,ac as g,aW as b,b3 as H,bg as V,c3 as ve,c4 as xe,c5 as K,c6 as W,c7 as we,c8 as Ce,c9 as Z,ca as ke,cb as Pe,cc as qe,cd as Te,ce as Ie,cf as Ee,cg as Le,ch as ze,bu as Ae,ci as De,cj as Ue,ck as Ne,cl as $e,cm as Oe,cn as je,co as Be,bt as Fe,r as oe,c as J,j as w,cp as Ve,cq as We,p as Ke,l as se,bx as Ze}from"./index-
|
|
1
|
+
import{bi as f,bj as t,ae as R,I as l,c2 as z,H as s,af as y,ac as g,aW as b,b3 as H,bg as V,c3 as ve,c4 as xe,c5 as K,c6 as W,c7 as we,c8 as Ce,c9 as Z,ca as ke,cb as Pe,cc as qe,cd as Te,ce as Ie,cf as Ee,cg as Le,ch as ze,bu as Ae,ci as De,cj as Ue,ck as Ne,cl as $e,cm as Oe,cn as je,co as Be,bt as Fe,r as oe,c as J,j as w,cp as Ve,cq as We,p as Ke,l as se,bx as Ze}from"./index-DagCLY74.js";import{P as Je}from"./use-mcp-client-COWES9BB.js";const de=["default-src 'none'","script-src 'unsafe-inline' 'unsafe-eval' 'wasm-unsafe-eval'","style-src 'unsafe-inline'","img-src * data: blob:","media-src * data: blob:","font-src data:","connect-src 'none'","frame-src 'none'","worker-src blob:","form-action 'none'","base-uri 'none'"].join("; ");function Ye(r,e={}){const i=`<meta http-equiv="Content-Security-Policy" content="${Ge(e)}">`,n=/<head(\s[^>]*)?>|<HEAD(\s[^>]*)?>/i,c=r.match(n);if(c){const m=(c.index??0)+c[0].length;return r.slice(0,m)+`
|
|
2
2
|
`+i+r.slice(m)}const d=/<html(\s[^>]*)?>|<HTML(\s[^>]*)?>/i,u=r.match(d);if(u){const m=(u.index??0)+u[0].length;return r.slice(0,m)+`
|
|
3
3
|
<head>
|
|
4
4
|
`+i+`
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as n,aV as V,dL as R,cM as Ee,cO as ke,cQ as Se,F as xe,dM as P}from"./index-UBa5GKlY.js";var de=1,Ie=.9,Ce=.8,Re=.17,Y=.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*=Ce,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*=Re,u>0&&(h*=Math.pow(Z,i-u))),t.charAt(i)!==l.charAt(c)&&(h*=Ae)),(h<Y&&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*Y>h&&(h=x*Y)),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 L='[cmdk-group=""]',_='[cmdk-group-items=""]',Ve='[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),j=()=>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:U=!1,vimBindings:A=!0,...O}=t,H=V(),ne=V(),N=V(),M=n.useRef(null),w=We();$(()=>{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(),W(),w(1,G);else if(e==="value"){if(document.activeElement.hasAttribute("cmdk-input")||document.activeElement.hasAttribute("cmdk-root")){let y=document.getElementById(N);y?y.focus():(a=document.getElementById(H))==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())}}),[]),T=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,()=>{W(),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(),W(),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:H,inputId:N,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 W(){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(`${L}[${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(L))==null?void 0:o.querySelector(Ve))==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 Q(e){let o=q()[e];o&&k.setState("value",o.getAttribute(F))}function X(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(L),a;for(;s&&!a;)s=e>0?Ne(s,L):Te(s,L),a=s?.querySelector(fe);a?k.setState("value",a.getAttribute(F)):X(e)}let ie=()=>Q(q().length-1),oe=e=>{e.preventDefault(),e.metaKey?ie():e.altKey?ue(1):X(1)},ce=e=>{e.preventDefault(),e.metaKey?Q(0):e.altKey?ue(-1):X(-1)};return n.createElement(R.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(),Q(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:T.inputId,id:T.labelId,style:Je},b),z(t,e=>n.createElement(he.Provider,{value:k},n.createElement(pe.Provider,{value:T},e))))}),Le=n.forwardRef((t,l)=>{var r,f;let u=V(),c=n.useRef(null),d=n.useContext(ge),v=j(),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=C(w=>w.value&&w.value===p.current),E=C(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;U(),(k=(w=b.current).onSelect)==null||k.call(w,p.current)}function U(){h.setState("value",p.current,!0)}if(!E)return null;let{disabled:A,value:O,onSelect:H,forceMount:ne,keywords:N,...M}=t;return n.createElement(R.div,{ref:P(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:U,onClick:A?void 0:I},t.children)}),Pe=n.forwardRef((t,l)=>{let{heading:r,children:f,forceMount:u,...c}=t,d=V(),v=n.useRef(null),b=n.useRef(null),i=V(),p=j(),h=C(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(R.div,{ref:P(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))))}),je=n.forwardRef((t,l)=>{let{alwaysRender:r,...f}=t,u=n.useRef(null),c=C(d=>!d.search);return!r&&!c?null:n.createElement(R.div,{ref:P(u,l),...f,"cmdk-separator":"",role:"separator"})}),Oe=n.forwardRef((t,l)=>{let{onValueChange:r,...f}=t,u=t.value!=null,c=re(),d=C(i=>i.search),v=C(i=>i.selectedItemId),b=j();return n.useEffect(()=>{t.value!=null&&c.setState("search",t.value)},[t.value]),n.createElement(R.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=C(i=>i.selectedItemId),b=j();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(R.div,{ref:P(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:P(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}))))}),Ue=n.forwardRef((t,l)=>C(r=>r.filtered.count===0)?n.createElement(R.div,{ref:l,...t,"cmdk-empty":"",role:"presentation"}):null),He=n.forwardRef((t,l)=>{let{progress:r,children:f,label:u="Loading...",...c}=t;return n.createElement(R.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)))}),Xe=Object.assign(be,{List:Be,Item:Le,Input:Oe,Group:Pe,Separator:je,Dialog:ze,Empty:Ue,Loading:He});function Ne(t,l){let r=t.nextElementSibling;for(;r;){if(r.matches(l))return r;r=r.nextElementSibling}}function Te(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 C(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=j();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 We=()=>{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{Xe as _};
|
|
1
|
+
import{r as n,aV as V,dL as R,cM as Ee,cO as ke,cQ as Se,F as xe,dM as P}from"./index-DagCLY74.js";var de=1,Ie=.9,Ce=.8,Re=.17,Y=.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*=Ce,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*=Re,u>0&&(h*=Math.pow(Z,i-u))),t.charAt(i)!==l.charAt(c)&&(h*=Ae)),(h<Y&&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*Y>h&&(h=x*Y)),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 L='[cmdk-group=""]',_='[cmdk-group-items=""]',Ve='[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),j=()=>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:U=!1,vimBindings:A=!0,...O}=t,H=V(),ne=V(),N=V(),M=n.useRef(null),w=We();$(()=>{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(),W(),w(1,G);else if(e==="value"){if(document.activeElement.hasAttribute("cmdk-input")||document.activeElement.hasAttribute("cmdk-root")){let y=document.getElementById(N);y?y.focus():(a=document.getElementById(H))==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())}}),[]),T=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,()=>{W(),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(),W(),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:H,inputId:N,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 W(){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(`${L}[${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(L))==null?void 0:o.querySelector(Ve))==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 Q(e){let o=q()[e];o&&k.setState("value",o.getAttribute(F))}function X(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(L),a;for(;s&&!a;)s=e>0?Ne(s,L):Te(s,L),a=s?.querySelector(fe);a?k.setState("value",a.getAttribute(F)):X(e)}let ie=()=>Q(q().length-1),oe=e=>{e.preventDefault(),e.metaKey?ie():e.altKey?ue(1):X(1)},ce=e=>{e.preventDefault(),e.metaKey?Q(0):e.altKey?ue(-1):X(-1)};return n.createElement(R.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(),Q(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:T.inputId,id:T.labelId,style:Je},b),z(t,e=>n.createElement(he.Provider,{value:k},n.createElement(pe.Provider,{value:T},e))))}),Le=n.forwardRef((t,l)=>{var r,f;let u=V(),c=n.useRef(null),d=n.useContext(ge),v=j(),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=C(w=>w.value&&w.value===p.current),E=C(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;U(),(k=(w=b.current).onSelect)==null||k.call(w,p.current)}function U(){h.setState("value",p.current,!0)}if(!E)return null;let{disabled:A,value:O,onSelect:H,forceMount:ne,keywords:N,...M}=t;return n.createElement(R.div,{ref:P(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:U,onClick:A?void 0:I},t.children)}),Pe=n.forwardRef((t,l)=>{let{heading:r,children:f,forceMount:u,...c}=t,d=V(),v=n.useRef(null),b=n.useRef(null),i=V(),p=j(),h=C(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(R.div,{ref:P(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))))}),je=n.forwardRef((t,l)=>{let{alwaysRender:r,...f}=t,u=n.useRef(null),c=C(d=>!d.search);return!r&&!c?null:n.createElement(R.div,{ref:P(u,l),...f,"cmdk-separator":"",role:"separator"})}),Oe=n.forwardRef((t,l)=>{let{onValueChange:r,...f}=t,u=t.value!=null,c=re(),d=C(i=>i.search),v=C(i=>i.selectedItemId),b=j();return n.useEffect(()=>{t.value!=null&&c.setState("search",t.value)},[t.value]),n.createElement(R.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=C(i=>i.selectedItemId),b=j();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(R.div,{ref:P(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:P(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}))))}),Ue=n.forwardRef((t,l)=>C(r=>r.filtered.count===0)?n.createElement(R.div,{ref:l,...t,"cmdk-empty":"",role:"presentation"}):null),He=n.forwardRef((t,l)=>{let{progress:r,children:f,label:u="Loading...",...c}=t;return n.createElement(R.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)))}),Xe=Object.assign(be,{List:Be,Item:Le,Input:Oe,Group:Pe,Separator:je,Dialog:ze,Empty:Ue,Loading:He});function Ne(t,l){let r=t.nextElementSibling;for(;r;){if(r.matches(l))return r;r=r.nextElementSibling}}function Te(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 C(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=j();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 We=()=>{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{Xe as _};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{r as a,aM as R}from"./index-
|
|
1
|
+
import{r as a,aM as R}from"./index-DagCLY74.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{r as h}from"./index-
|
|
1
|
+
import{r as h}from"./index-DagCLY74.js";var w=(o,i,l,s,c,t,m,d)=>{let r=document.documentElement,u=["light","dark"];function n(e){(Array.isArray(o)?o:[o]).forEach(a=>{let p=a==="class",S=p&&t?c.map(f=>t[f]||f):c;p?(r.classList.remove(...S),r.classList.add(t&&t[e]?t[e]:e)):r.setAttribute(a,e)}),y(e)}function y(e){d&&u.includes(e)&&(r.style.colorScheme=e)}function g(){return window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"}if(s)n(s);else try{let e=localStorage.getItem(i)||l,a=m&&e==="system"?g():e;n(a)}catch{}};h.createContext(void 0);h.memo(({forcedTheme:o,storageKey:i,attribute:l,enableSystem:s,enableColorScheme:c,defaultTheme:t,value:m,themes:d,nonce:r,scriptProps:u})=>{let n=JSON.stringify([l,i,t,o,d,m,s,c]).slice(1,-1);return h.createElement("script",{...u,suppressHydrationWarning:!0,nonce:typeof window>"u"?r:"",dangerouslySetInnerHTML:{__html:`(${w.toString()})(${n})`}})});
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{c as $,C as de,n as Ze,d as We,K as Q,m as ie,aY as kn,r as k,ap as Ss,l as ce,j as l,U as Ns,i as zs,B as Z,aL as Sn,t as ue,w as Cs,L as $s,e as Ps,b as Nn,u as zn,E as Tt}from"./index-UBa5GKlY.js";import{i as Es}from"./ChevronRight-Dezz-GKi.js";import{s as Cn}from"./Eye-tdnV7eeM.js";import{n as Ve,i as yt}from"./Globe01-Dm9PnK-F.js";import{b as Ds,c as Ts,e as Fs,i as Ms,f as $n,a as Ht,g as Is,d as Ls}from"./ZoomOut-DZqOKQbB.js";import{a as ht}from"./Palette-2axWk8FI.js";import{s as Os}from"./Plus-CU016uRc.js";import{i as Rs}from"./SearchLg-veyGe5A6.js";import{t as As}from"./Stars01-BeIhlZl8.js";import{i as mt}from"./Upload01-CxyHrsNl.js";import{s as Pn}from"./XClose-DR9RcI2R.js";import{i as qt}from"./Zap-DVZmu8Bo.js";import{u as En}from"./use-mobile-i7lmwo7h.js";import{f as _s,a as Us,b as Bs,c as Hs,d as qs,e as Ks,A as Ws,g as Gs}from"./alert-dialog-B1epuIUZ.js";import{D as Dn,a as Ue,d as Je,e as et,i as Tn,h as Vs,c as Xs}from"./dialog-Bv1rlXeZ.js";import{I as Xe}from"./input-ChBvxSlE.js";import{S as ae}from"./skeleton-BewuvCh8.js";import{F as Se,M as Kt,d as Fn}from"./file-type-icon-BmQjqKK5.js";import{T as Qs}from"./toolbar-C45Hedmg.js";import{a as Ys}from"./Package-DfoT3-RN.js";import{u as Zs}from"./use-debounced-value-Bb8CzcFh.js";import{i as vt}from"./DotsVertical-CyKDl1YT.js";import{i as Mn}from"./Key01-DJ0uZl34.js";import{s as wt}from"./Trash01-CRZOLNlS.js";import{D as tt,a as nt,c as st,d as be}from"./dropdown-menu-CPNMznXV.js";import{T as Js}from"./textarea-BKF-s45b.js";import{t as el}from"./ChevronDown-DI7U8iFw.js";import{n as tl}from"./ChevronUp-BkYnqudq.js";import{i as pt}from"./X-BvELVEGU.js";import{P as nl,b as sl,a as ll}from"./popover-WOIryKEK.js";import{b as ye,T as ve,a as we}from"./tooltip-BM2SjiEh.js";import{i as rl}from"./Check-BNt9mk-D.js";import{a as il}from"./Copy01-ClGV_r78.js";import{n as In}from"./LinkExternal01-DBj5TAG_.js";import{l as ol,F as al}from"./index-BfNgfRL0.js";import{i as cl}from"./LayoutLeft-Bh6PRpti.js";function Ln(n){return n.contentHash??`${n.size}-${n.updatedAt}`}function pe(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){const t=await fetch(n,e);if(!t.ok){let s="";try{s=(await t.json()).error??""}catch{}throw new Error(s||`HTTP ${t.status}`)}return t}function Wt(n,e){const t=$.c(11),{org:s}=de();let r;t[0]!==s.id||t[1]!==e||t[2]!==n?(r=Q.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(pe(s.slug,n,"list",{path:e}))).json()).entries.toSorted(dl),t[4]=s.slug,t[5]=e,t[6]=n,t[7]=i):i=t[7];let o;return t[8]!==r||t[9]!==i?(o={queryKey:r,placeholderData:kn,queryFn:i},t[8]=r,t[9]=i,t[10]=o):o=t[10],ie(o)}function dl(n,e){return n.kind!==e.kind?n.kind==="dir"?-1:1:n.path.localeCompare(e.path)}function On(n,e,t){const s=$.c(15),{org:r}=de();let i;s[0]!==r.id||s[1]!==e||s[2]!==n?(i=Q.orgFsStat(r.id,n??"",e),s[0]=r.id,s[1]=e,s[2]=n,s[3]=i):i=s[3];const o=n!==null;let a;s[4]!==t?(a=t?.refetchIntervalWhenAbsent?f=>f.state.data?!1:t.refetchIntervalWhenAbsent??!1:void 0,s[4]=t,s[5]=a):a=s[5];let c;s[6]!==r.slug||s[7]!==e||s[8]!==n?(c=async()=>{const f=await fetch(pe(r.slug,n??"","stat",{path:e}));if(f.status===404)return null;if(!f.ok)throw new Error(`HTTP ${f.status}`);return(await f.json()).entry},s[6]=r.slug,s[7]=e,s[8]=n,s[9]=c):c=s[9];let d;return s[10]!==i||s[11]!==o||s[12]!==a||s[13]!==c?(d={queryKey:i,enabled:o,refetchInterval:a,queryFn:c},s[10]=i,s[11]=o,s[12]=a,s[13]=c,s[14]=d):d=s[14],ie(d)}function ul(n){const e=$.c(9),{org:t}=de();let s;e[0]!==t.id||e[1]!==n?(s=Q.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(pe(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],ie(i)}function fl(n,e){const t=$.c(9),s=n===void 0?60:n,{org:r}=de();let i;t[0]!==r.id?(i=Q.orgFsRecent(r.id),t[0]=r.id,t[1]=i):i=t[1];const o=e?.enabled;let a;t[2]!==s||t[3]!==r.slug?(a=async()=>(await(await he(`/api/${encodeURIComponent(r.slug)}/fs/recent?limit=${s}`)).json()).entries,t[2]=s,t[3]=r.slug,t[4]=a):a=t[4];let c;return t[5]!==i||t[6]!==o||t[7]!==a?(c={queryKey:i,enabled:o,queryFn:a},t[5]=i,t[6]=o,t[7]=a,t[8]=c):c=t[8],ie(c)}function hl(n,e){const t=$.c(11),s=50,{org:r}=de();let i;t[0]!==r.id||t[1]!==n?(i=Q.orgFsSearch(r.id,n),t[0]=r.id,t[1]=n,t[2]=i):i=t[2];const o=n.length>0;let a;t[3]!==s||t[4]!==r.slug||t[5]!==n?(a=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]=a):a=t[6];let c;return t[7]!==i||t[8]!==o||t[9]!==a?(c={queryKey:i,enabled:o,placeholderData:kn,queryFn:a},t[7]=i,t[8]=o,t[9]=a,t[10]=c):c=t[10],ie(c)}function Fo(n){const e=$.c(8),{org:t}=de();let s;e[0]!==t.id?(s=Q.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 a=await he(`/api/${encodeURIComponent(t.slug)}/fs/skills`),{skills:c}=await a.json();return c.map(ml)},e[2]=t.slug,e[3]=i):i=e[3];let o;return e[4]!==s||e[5]!==r||e[6]!==i?(o={queryKey:s,enabled:r,queryFn:i},e[4]=s,e[5]=r,e[6]=i,e[7]=o):o=e[7],ie(o)}function ml(n){return{volume:n.volume,path:n.path}}async function Mo(n){const e=await he(`/api/${encodeURIComponent(n)}/fs/skills`),{skills:t}=await e.json();return t}async function pl(n,e,t){return(await he(pe(n,e,"read",{path:t}))).text()}const xl=new Set(["md","mdx","markdown","txt","text"]),gl=25,bl=64*1024,yl=256*1024,vl=4;function wl(n){const e=n.lastIndexOf(".");return e===-1?!1:xl.has(n.slice(e+1).toLowerCase())}async function Io(n,e,t){const s=t?`${t}/`:"",r=u=>u.startsWith(s)?u.slice(s.length):u,i=[],o=[],a=[{path:t,depth:0}];for(;a.length>0;){const u=a.shift();if(!u)break;let h;try{h=(await(await he(pe(n,e,"list",{path:u.path}))).json()).entries}catch{continue}for(const m of[...h].sort((p,g)=>p.path.localeCompare(g.path))){if(m.kind==="dir"){u.depth<vl&&a.push({path:m.path,depth:u.depth+1});continue}wl(m.path)&&m.size<=bl&&i.length<gl?i.push(m.path):o.push(r(m.path))}}const c=await Promise.all(i.map(u=>pl(n,e,u).catch(()=>null))),d=[];let f=0;return i.forEach((u,h)=>{const m=c[h];if(m==null||f+m.length>yl){o.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)),o.sort(),{files:d,omittedPaths:o}}function Rn(){const n=$.c(7),{org:e}=de();let t;n[0]!==e.id?(t=Q.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],ie(r)}function jl(n){const e=$.c(3),{org:t}=de();let s;return e[0]!==t.slug||e[1]!==n?(s=r=>pe(t.slug,n,"read",{path:r}),e[0]=t.slug,e[1]=n,e[2]=s):s=e[2],s}function lt(){const n=$.c(2),{org:e}=de();let t;return n[0]!==e.slug?(t=(s,r)=>pe(e.slug,s,"read",{path:r}),n[0]=e.slug,n[1]=t):t=n[1],t}function An(n){const e=$.c(3),{org:t}=de();let s;return e[0]!==t||e[1]!==n?(s={mutationFn:async r=>(await(await he(pe(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],We(s)}function kl(n){const e=$.c(18),{org:t}=de(),s=Ze();let r;e[0]!==t||e[1]!==n?(r=async d=>(await(await he(pe(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=Q.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 o;e[7]!==s?(o=(d,f,u)=>{u&&s.setQueryData(u.key,u.previous)},e[7]=s,e[8]=o):o=e[8];let a;e[9]!==t||e[10]!==s||e[11]!==n?(a=(d,f,u)=>{s.invalidateQueries({queryKey:Q.orgFsStat(t.id,n,u.path)}),s.invalidateQueries({queryKey:Q.orgFsVolume(t.id,n)}),s.invalidateQueries({queryKey:Q.orgFsRecent(t.id)}),s.invalidateQueries({queryKey:Q.orgFsSearchRoot(t.id)})},e[9]=t,e[10]=s,e[11]=n,e[12]=a):a=e[12];let c;return e[13]!==r||e[14]!==i||e[15]!==o||e[16]!==a?(c={mutationFn:r,onMutate:i,onError:o,onSettled:a},e[13]=r,e[14]=i,e[15]=o,e[16]=a,e[17]=c):c=e[17],We(c)}function At(n){const e=$.c(26),{org:t}=de(),s=Ze();let r;e[0]!==t||e[1]!==s||e[2]!==n?(r=()=>{s.invalidateQueries({queryKey:Q.orgFsVolume(t.id,n)}),s.invalidateQueries({queryKey:Q.orgFsRecent(t.id)}),s.invalidateQueries({queryKey:Q.orgFsSearchRoot(t.id)})},e[0]=t,e[1]=s,e[2]=n,e[3]=r):r=e[3];const i=r;let o;e[4]!==t||e[5]!==n?(o=async b=>{for(const x of b.files){const y=b.dir?`${b.dir}/${x.name}`:x.name;await he(pe(t.slug,n,"file",{path:y}),{method:"PUT",headers:{"content-type":x.type||"application/octet-stream"},body:x})}},e[4]=t,e[5]=n,e[6]=o):o=e[6];let a;e[7]!==i||e[8]!==o?(a={mutationFn:o,onSettled:i},e[7]=i,e[8]=o,e[9]=a):a=e[9];const c=We(a);let d;e[10]!==t||e[11]!==n?(d=async b=>{await he(pe(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=We(f);let h;e[16]!==t||e[17]!==n?(h=async b=>{await he(pe(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=We(m);let g;return e[22]!==u||e[23]!==p||e[24]!==c?(g={upload:c,mkdir:u,remove:p},e[22]=u,e[23]=p,e[24]=c,e[25]=g):g=e[25],g}const jt=k.createContext(null);jt.displayName="PanelGroupContext";const se={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=k.useLayoutEffect,sn=Ss.useId,Sl=typeof sn=="function"?sn:()=>null;let Nl=0;function Vt(n=null){const e=Sl(),t=k.useRef(n||e||null);return t.current===null&&(t.current=""+Nl++),n??t.current}function _n({children:n,className:e="",collapsedSize:t,collapsible:s,defaultSize:r,forwardedRef:i,id:o,maxSize:a,minSize:c,onCollapse:d,onExpand:f,onResize:u,order:h,style:m,tagName:p="div",...g}){const b=k.useContext(jt);if(b===null)throw Error("Panel components must be rendered within a PanelGroup container");const{collapsePanel:x,expandPanel:y,getPanelSize:j,getPanelStyle:N,groupId:z,isPanelCollapsed:C,reevaluatePanelConstraints:w,registerPanel:M,resizePanel:I,unregisterPanel:F}=b,v=Vt(o),P=k.useRef({callbacks:{onCollapse:d,onExpand:f,onResize:u},constraints:{collapsedSize:t,collapsible:s,defaultSize:r,maxSize:a,minSize:c},id:v,idIsFromProps:o!==void 0,order:h});k.useRef({didLogMissingDefaultSizeWarning:!1}),Fe(()=>{const{callbacks:A,constraints:_}=P.current,B={..._};P.current.id=v,P.current.idIsFromProps=o!==void 0,P.current.order=h,A.onCollapse=d,A.onExpand=f,A.onResize=u,_.collapsedSize=t,_.collapsible=s,_.defaultSize=r,_.maxSize=a,_.minSize=c,(B.collapsedSize!==_.collapsedSize||B.collapsible!==_.collapsible||B.maxSize!==_.maxSize||B.minSize!==_.minSize)&&w(P.current,B)}),Fe(()=>{const A=P.current;return M(A),()=>{F(A)}},[h,v,M,F]),k.useImperativeHandle(i,()=>({collapse:()=>{x(P.current)},expand:A=>{y(P.current,A)},getId(){return v},getSize(){return j(P.current)},isCollapsed(){return C(P.current)},isExpanded(){return!C(P.current)},resize:A=>{I(P.current,A)}}),[x,y,j,C,v,I]);const W=N(P.current,r);return k.createElement(p,{...g,children:n,className:e,id:v,style:{...W,...m},[se.groupId]:z,[se.panel]:"",[se.panelCollapsible]:s||void 0,[se.panelId]:v,[se.panelSize]:parseFloat(""+W.flexGrow).toFixed(1)})}const Un=k.forwardRef((n,e)=>k.createElement(_n,{...n,forwardedRef:e}));_n.displayName="Panel";Un.displayName="forwardRef(Panel)";let _t=null,ft=-1,Ce=null;function zl(n,e){if(e){const t=(e&Wn)!==0,s=(e&Gn)!==0,r=(e&Vn)!==0,i=(e&Xn)!==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 Cl(){Ce!==null&&(document.head.removeChild(Ce),_t=null,Ce=null,ft=-1)}function Ft(n,e){var t,s;const r=zl(n,e);if(_t!==r){if(_t=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 Bn(n){return n.type==="keydown"}function Hn(n){return n.type.startsWith("pointer")}function qn(n){return n.type.startsWith("mouse")}function kt(n){if(Hn(n)){if(n.isPrimary)return{x:n.clientX,y:n.clientY}}else if(qn(n))return{x:n.clientX,y:n.clientY};return{x:1/0,y:1/0}}function $l(){if(typeof matchMedia=="function")return matchMedia("(pointer:coarse)").matches?"coarse":"fine"}function Pl(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 El(n,e){if(n===e)throw new Error("Cannot compare node with itself");const t={a:on(n),b:on(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:rn(ln(t.a)),b:rn(ln(t.b))};if(r.a===r.b){const i=s.childNodes,o={a:t.a.at(-1),b:t.b.at(-1)};let a=i.length;for(;a--;){const c=i[a];if(c===o.a)return 1;if(c===o.b)return-1}}return Math.sign(r.a-r.b)}const Dl=/\b(?:position|zIndex|opacity|transform|webkitTransform|mixBlendMode|filter|webkitFilter|isolation)\b/;function Tl(n){var e;const t=getComputedStyle((e=Kn(n))!==null&&e!==void 0?e:n).display;return t==="flex"||t==="inline-flex"}function Fl(n){const e=getComputedStyle(n);return!!(e.position==="fixed"||e.zIndex!=="auto"&&(e.position!=="static"||Tl(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"||Dl.test(e.willChange)||e.webkitOverflowScrolling==="touch")}function ln(n){let e=n.length;for(;e--;){const t=n[e];if(V(t,"Missing node"),Fl(t))return t}return null}function rn(n){return n&&Number(getComputedStyle(n).zIndex)||0}function on(n){const e=[];for(;n;)e.push(n),n=Kn(n);return e}function Kn(n){const{parentNode:e}=n;return e&&e instanceof ShadowRoot?e.host:e}const Wn=1,Gn=2,Vn=4,Xn=8,Ml=$l()==="coarse";let xe=[],_e=!1,Te=new Map,St=new Map;const Qe=new Set;function Il(n,e,t,s,r){var i;const{ownerDocument:o}=e,a={direction:t,element:e,hitAreaMargins:s,setResizeHandlerState:r},c=(i=Te.get(o))!==null&&i!==void 0?i:0;return Te.set(o,c+1),Qe.add(a),xt(),function(){var f;St.delete(n),Qe.delete(a);const u=(f=Te.get(o))!==null&&f!==void 0?f:1;if(Te.set(o,u-1),xt(),u===1&&Te.delete(o),xe.includes(a)){const h=xe.indexOf(a);h>=0&&xe.splice(h,1),Qt(),r("up",!0,null)}}}function Ll(n){const{target:e}=n,{x:t,y:s}=kt(n);_e=!0,Xt({target:e,x:t,y:s}),xt(),xe.length>0&&(gt("down",n),n.preventDefault(),Qn(e)||n.stopImmediatePropagation())}function Mt(n){const{x:e,y:t}=kt(n);if(_e&&n.buttons===0&&(_e=!1,gt("up",n)),!_e){const{target:s}=n;Xt({target:s,x:e,y:t})}gt("move",n),Qt(),xe.length>0&&n.preventDefault()}function It(n){const{target:e}=n,{x:t,y:s}=kt(n);St.clear(),_e=!1,xe.length>0&&(n.preventDefault(),Qn(e)||n.stopImmediatePropagation()),gt("up",n),Xt({target:e,x:t,y:s}),Qt(),xt()}function Qn(n){let e=n;for(;e;){if(e.hasAttribute(se.resizeHandle))return!0;e=e.parentElement}return!1}function Xt({target:n,x:e,y:t}){xe.splice(0);let s=null;(n instanceof HTMLElement||n instanceof SVGElement)&&(s=n),Qe.forEach(r=>{const{element:i,hitAreaMargins:o}=r,a=i.getBoundingClientRect(),{bottom:c,left:d,right:f,top:u}=a,h=Ml?o.coarse:o.fine;if(e>=d-h&&e<=f+h&&t>=u-h&&t<=c+h){if(s!==null&&document.contains(s)&&i!==s&&!i.contains(s)&&!s.contains(i)&&El(s,i)>0){let p=s,g=!1;for(;p&&!p.contains(i);){if(Pl(p.getBoundingClientRect(),a)){g=!0;break}p=p.parentElement}if(g)return}xe.push(r)}})}function Lt(n,e){St.set(n,e)}function Qt(){let n=!1,e=!1;xe.forEach(s=>{const{direction:r}=s;r==="horizontal"?n=!0:e=!0});let t=0;St.forEach(s=>{t|=s}),n&&e?Ft("intersection",t):n?Ft("horizontal",t):e?Ft("vertical",t):Cl()}let Ot=new AbortController;function xt(){Ot.abort(),Ot=new AbortController;const n={capture:!0,signal:Ot.signal};Qe.size&&(_e?(xe.length>0&&Te.forEach((e,t)=>{const{body:s}=t;e>0&&(s.addEventListener("contextmenu",It,n),s.addEventListener("pointerleave",Mt,n),s.addEventListener("pointermove",Mt,n))}),window.addEventListener("pointerup",It,n),window.addEventListener("pointercancel",It,n)):Te.forEach((e,t)=>{const{body:s}=t;e>0&&(s.addEventListener("pointerdown",Ll,n),s.addEventListener("pointermove",Mt,n))}))}function gt(n,e){Qe.forEach(t=>{const{setResizeHandlerState:s}=t,r=xe.includes(t);s(n,r,e)})}function Ol(){const[n,e]=k.useState(0);return k.useCallback(()=>e(t=>t+1),[])}function V(n,e){if(!n)throw console.error(e),Error(e)}function Me(n,e,t=Gt){return n.toFixed(t)===e.toFixed(t)?0:n>e?1:-1}function je(n,e,t=Gt){return Me(n,e,t)===0}function me(n,e,t){return Me(n,e,t)===0}function Rl(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(!me(r,i,t))return!1}return!0}function Ae({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:o=100,minSize:a=0}=s;if(Me(t,a)<0)if(i){const c=(r+a)/2;Me(t,c)<0?t=r:t=a}else t=a;return t=Math.min(o,t),t=parseFloat(t.toFixed(Gt)),t}function He({delta:n,initialLayout:e,panelConstraints:t,pivotIndices:s,prevLayout:r,trigger:i}){if(me(n,0))return e;const o=[...e],[a,c]=s;V(a!=null,"Invalid first pivot index"),V(c!=null,"Invalid second pivot index");let d=0;if(i==="keyboard"){{const u=n<0?c:a,h=t[u];V(h,`Panel constraints not found for index ${u}`);const{collapsedSize:m=0,collapsible:p,minSize:g=0}=h;if(p){const b=e[u];if(V(b!=null,`Previous layout not found for panel index ${u}`),me(b,m)){const x=g-b;Me(x,Math.abs(n))>0&&(n=n<0?0-x:x)}}}{const u=n<0?a:c,h=t[u];V(h,`No panel constraints found for index ${u}`);const{collapsedSize:m=0,collapsible:p,minSize:g=0}=h;if(p){const b=e[u];if(V(b!=null,`Previous layout not found for panel index ${u}`),me(b,g)){const x=b-m;Me(x,Math.abs(n))>0&&(n=n<0?0-x:x)}}}}{const u=n<0?1:-1;let h=n<0?c:a,m=0;for(;;){const g=e[h];V(g!=null,`Previous layout not found for panel index ${h}`);const x=Ae({panelConstraints:t,panelIndex:h,size:100})-g;if(m+=x,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?a:c;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 g=p-m,b=Ae({panelConstraints:t,panelIndex:h,size:g});if(!me(p,b)&&(d+=p-b,o[h]=b,d.toPrecision(3).localeCompare(Math.abs(n).toPrecision(3),void 0,{numeric:!0})>=0))break;n<0?h--:h++}}if(Rl(r,o))return r;{const u=n<0?c:a,h=e[u];V(h!=null,`Previous layout not found for panel index ${u}`);const m=h+d,p=Ae({panelConstraints:t,panelIndex:u,size:m});if(o[u]=p,!me(p,m)){let g=m-p,x=n<0?c:a;for(;x>=0&&x<t.length;){const y=o[x];V(y!=null,`Previous layout not found for panel index ${x}`);const j=y+g,N=Ae({panelConstraints:t,panelIndex:x,size:j});if(me(y,N)||(g-=N-y,o[x]=N),me(g,0))break;n>0?x--:x++}}}const f=o.reduce((u,h)=>h+u,0);return me(f,100)?o:r}function Al({layout:n,panelsArray:e,pivotIndices:t}){let s=0,r=100,i=0,o=0;const a=t[0];V(a!=null,"No pivot index found"),e.forEach((u,h)=>{const{constraints:m}=u,{maxSize:p=100,minSize:g=0}=m;h===a?(s=g,r=p):(i+=g,o+=p)});const c=Math.min(r,100-i),d=Math.max(s,100-o),f=n[a];return{valueMax:c,valueMin:d,valueNow:f}}function Ye(n,e=document){return Array.from(e.querySelectorAll(`[${se.resizeHandleId}][data-panel-group-id="${n}"]`))}function Yn(n,e,t=document){const r=Ye(n,t).findIndex(i=>i.getAttribute(se.resizeHandleId)===e);return r??null}function Zn(n,e,t){const s=Yn(n,e,t);return s!=null?[s,s+1]:[-1,-1]}function Jn(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 Nt(n,e=document){const t=e.querySelector(`[${se.resizeHandleId}="${n}"]`);return t||null}function _l(n,e,t,s=document){var r,i,o,a;const c=Nt(e,s),d=Ye(n,s),f=c?d.indexOf(c):-1,u=(r=(i=t[f])===null||i===void 0?void 0:i.id)!==null&&r!==void 0?r:null,h=(o=(a=t[f+1])===null||a===void 0?void 0:a.id)!==null&&o!==void 0?o:null;return[u,h]}function Ul({committedValuesRef:n,eagerValuesRef:e,groupId:t,layout:s,panelDataArray:r,panelGroupElement:i,setLayout:o}){k.useRef({didWarnAboutMissingResizeHandle:!1}),Fe(()=>{if(!i)return;const a=Ye(t,i);for(let c=0;c<r.length-1;c++){const{valueMax:d,valueMin:f,valueNow:u}=Al({layout:s,panelsArray:r,pivotIndices:[c,c+1]}),h=a[c];if(h!=null){const m=r[c];V(m,`No panel data found for index "${c}"`),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()=>{a.forEach((c,d)=>{c.removeAttribute("aria-controls"),c.removeAttribute("aria-valuemax"),c.removeAttribute("aria-valuemin"),c.removeAttribute("aria-valuenow")})}},[t,s,r,i]),k.useEffect(()=>{if(!i)return;const a=e.current;V(a,"Eager values not found");const{panelDataArray:c}=a,d=Jn(t,i);V(d!=null,`No group found for id "${t}"`);const f=Ye(t,i);V(f,`No resize handles found for group id "${t}"`);const u=f.map(h=>{const m=h.getAttribute(se.resizeHandleId);V(m,"Resize handle element has no handle id attribute");const[p,g]=_l(t,m,c,i);if(p==null||g==null)return()=>{};const b=x=>{if(!x.defaultPrevented)switch(x.key){case"Enter":{x.preventDefault();const y=c.findIndex(j=>j.id===p);if(y>=0){const j=c[y];V(j,`No panel data found for index ${y}`);const N=s[y],{collapsedSize:z=0,collapsible:C,minSize:w=0}=j.constraints;if(N!=null&&C){const M=He({delta:me(N,z)?w-z:z-N,initialLayout:s,panelConstraints:c.map(I=>I.constraints),pivotIndices:Zn(t,m,i),prevLayout:s,trigger:"keyboard"});s!==M&&o(M)}}break}}};return h.addEventListener("keydown",b),()=>{h.removeEventListener("keydown",b)}});return()=>{u.forEach(h=>h())}},[i,n,e,t,s,r,o])}function an(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 es(n,e){const t=n==="horizontal",{x:s,y:r}=kt(e);return t?s:r}function Bl(n,e,t,s,r){const i=t==="horizontal",o=Nt(e,r);V(o,`No resize handle element found for id "${e}"`);const a=o.getAttribute(se.groupId);V(a,"Resize handle element has no group id attribute");let{initialCursorPosition:c}=s;const d=es(t,n),f=Jn(a,r);V(f,`No group element found for id "${a}"`);const u=f.getBoundingClientRect(),h=i?u.width:u.height;return(d-c)/h*100}function Hl(n,e,t,s,r,i){if(Bn(n)){const o=t==="horizontal";let a=0;n.shiftKey?a=100:r!=null?a=r:a=10;let c=0;switch(n.key){case"ArrowDown":c=o?0:a;break;case"ArrowLeft":c=o?-a:0;break;case"ArrowRight":c=o?a:0;break;case"ArrowUp":c=o?0:-a;break;case"End":c=100;break;case"Home":c=-100;break}return c}else return s==null?0:Bl(n,e,t,s,i)}function ql({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 o=t[i];V(o,`Panel constraints not found for index ${i}`);const{defaultSize:a}=o;a!=null&&(s++,e[i]=a,r-=a)}for(let i=0;i<n.length;i++){const o=t[i];V(o,`Panel constraints not found for index ${i}`);const{defaultSize:a}=o;if(a!=null)continue;const c=n.length-s,d=r/c;s++,e[i]=d,r-=d}return e}function Ie(n,e,t){e.forEach((s,r)=>{const i=n[r];V(i,`Panel data not found for index ${r}`);const{callbacks:o,constraints:a,id:c}=i,{collapsedSize:d=0,collapsible:f}=a,u=t[c];if(u==null||s!==u){t[c]=s;const{onCollapse:h,onExpand:m,onResize:p}=o;p&&p(s,u),f&&(h||m)&&(m&&(u==null||je(u,d))&&!je(s,d)&&m(),h&&(u==null||!je(u,d))&&je(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 Kl({defaultSize:n,dragState:e,layout:t,panelData:s,panelIndex:r,precision:i=3}){const o=t[r];let a;return o==null?a=n!=null?n.toPrecision(i):"1":s.length===1?a="1":a=o.toPrecision(i),{flexBasis:0,flexGrow:a,flexShrink:1,overflow:"hidden",pointerEvents:e!==null?"none":void 0}}function Wl(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 ts(n){return`react-resizable-panels:${n}`}function ns(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 ss(n,e){try{const t=ts(n),s=e.getItem(t);if(s){const r=JSON.parse(s);if(typeof r=="object"&&r!=null)return r}}catch{}return null}function Gl(n,e,t){var s,r;const i=(s=ss(n,t))!==null&&s!==void 0?s:{},o=ns(e);return(r=i[o])!==null&&r!==void 0?r:null}function Vl(n,e,t,s,r){var i;const o=ts(n),a=ns(e),c=(i=ss(n,r))!==null&&i!==void 0?i:{};c[a]={expandToSizes:Object.fromEntries(t.entries()),layout:s};try{r.setItem(o,JSON.stringify(c))}catch(d){console.error(d)}}function dn({layout:n,panelConstraints:e}){const t=[...n],s=t.reduce((i,o)=>i+o,0);if(t.length!==e.length)throw Error(`Invalid ${e.length} panel layout: ${t.map(i=>`${i}%`).join(", ")}`);if(!me(s,100)&&t.length>0)for(let i=0;i<e.length;i++){const o=t[i];V(o!=null,`No layout data found for index ${i}`);const a=100/s*o;t[i]=a}let r=0;for(let i=0;i<e.length;i++){const o=t[i];V(o!=null,`No layout data found for index ${i}`);const a=Ae({panelConstraints:e,panelIndex:i,size:o});o!=a&&(r+=o-a,t[i]=a)}if(!me(r,0))for(let i=0;i<e.length;i++){const o=t[i];V(o!=null,`No layout data found for index ${i}`);const a=o+r,c=Ae({panelConstraints:e,panelIndex:i,size:a});if(o!==c&&(r-=c-o,t[i]=c,me(r,0)))break}return t}const Xl=100,qe={getItem:n=>(cn(qe),qe.getItem(n)),setItem:(n,e)=>{cn(qe),qe.setItem(n,e)}},un={};function ls({autoSaveId:n=null,children:e,className:t="",direction:s,forwardedRef:r,id:i=null,onLayout:o=null,keyboardResizeBy:a=null,storage:c=qe,style:d,tagName:f="div",...u}){const h=Vt(i),m=k.useRef(null),[p,g]=k.useState(null),[b,x]=k.useState([]),y=Ol(),j=k.useRef({}),N=k.useRef(new Map),z=k.useRef(0),C=k.useRef({autoSaveId:n,direction:s,dragState:p,id:h,keyboardResizeBy:a,onLayout:o,storage:c}),w=k.useRef({layout:b,panelDataArray:[],panelDataArrayChanged:!1});k.useRef({didLogIdAndOrderWarning:!1,didLogPanelConstraintsWarning:!1,prevPanelIds:[]}),k.useImperativeHandle(r,()=>({getId:()=>C.current.id,getLayout:()=>{const{layout:S}=w.current;return S},setLayout:S=>{const{onLayout:O}=C.current,{layout:R,panelDataArray:U}=w.current,T=dn({layout:S,panelConstraints:U.map(H=>H.constraints)});an(R,T)||(x(T),w.current.layout=T,O&&O(T),Ie(U,T,j.current))}}),[]),Fe(()=>{C.current.autoSaveId=n,C.current.direction=s,C.current.dragState=p,C.current.id=h,C.current.onLayout=o,C.current.storage=c}),Ul({committedValuesRef:C,eagerValuesRef:w,groupId:h,layout:b,panelDataArray:w.current.panelDataArray,setLayout:x,panelGroupElement:m.current}),k.useEffect(()=>{const{panelDataArray:S}=w.current;if(n){if(b.length===0||b.length!==S.length)return;let O=un[n];O==null&&(O=Wl(Vl,Xl),un[n]=O);const R=[...S],U=new Map(N.current);O(n,R,U,b,c)}},[n,b,c]),k.useEffect(()=>{});const M=k.useCallback(S=>{const{onLayout:O}=C.current,{layout:R,panelDataArray:U}=w.current;if(S.constraints.collapsible){const T=U.map(fe=>fe.constraints),{collapsedSize:H=0,panelSize:Y,pivotIndices:te}=De(U,S,R);if(V(Y!=null,`Panel size not found for panel "${S.id}"`),!je(Y,H)){N.current.set(S.id,Y);const E=Oe(U,S)===U.length-1?Y-H:H-Y,X=He({delta:E,initialLayout:R,panelConstraints:T,pivotIndices:te,prevLayout:R,trigger:"imperative-api"});ut(R,X)||(x(X),w.current.layout=X,O&&O(X),Ie(U,X,j.current))}}},[]),I=k.useCallback((S,O)=>{const{onLayout:R}=C.current,{layout:U,panelDataArray:T}=w.current;if(S.constraints.collapsible){const H=T.map(ne=>ne.constraints),{collapsedSize:Y=0,panelSize:te=0,minSize:fe=0,pivotIndices:E}=De(T,S,U),X=O??fe;if(je(te,Y)){const ne=N.current.get(S.id),ge=ne!=null&&ne>=X?ne:X,Pe=Oe(T,S)===T.length-1?te-ge:ge-te,oe=He({delta:Pe,initialLayout:U,panelConstraints:H,pivotIndices:E,prevLayout:U,trigger:"imperative-api"});ut(U,oe)||(x(oe),w.current.layout=oe,R&&R(oe),Ie(T,oe,j.current))}}},[]),F=k.useCallback(S=>{const{layout:O,panelDataArray:R}=w.current,{panelSize:U}=De(R,S,O);return V(U!=null,`Panel size not found for panel "${S.id}"`),U},[]),v=k.useCallback((S,O)=>{const{panelDataArray:R}=w.current,U=Oe(R,S);return Kl({defaultSize:O,dragState:p,layout:b,panelData:R,panelIndex:U})},[p,b]),P=k.useCallback(S=>{const{layout:O,panelDataArray:R}=w.current,{collapsedSize:U=0,collapsible:T,panelSize:H}=De(R,S,O);return V(H!=null,`Panel size not found for panel "${S.id}"`),T===!0&&je(H,U)},[]),W=k.useCallback(S=>{const{layout:O,panelDataArray:R}=w.current,{collapsedSize:U=0,collapsible:T,panelSize:H}=De(R,S,O);return V(H!=null,`Panel size not found for panel "${S.id}"`),!T||Me(H,U)>0},[]),A=k.useCallback(S=>{const{panelDataArray:O}=w.current;O.push(S),O.sort((R,U)=>{const T=R.order,H=U.order;return T==null&&H==null?0:T==null?-1:H==null?1:T-H}),w.current.panelDataArrayChanged=!0,y()},[y]);Fe(()=>{if(w.current.panelDataArrayChanged){w.current.panelDataArrayChanged=!1;const{autoSaveId:S,onLayout:O,storage:R}=C.current,{layout:U,panelDataArray:T}=w.current;let H=null;if(S){const te=Gl(S,T,R);te&&(N.current=new Map(Object.entries(te.expandToSizes)),H=te.layout)}H==null&&(H=ql({panelDataArray:T}));const Y=dn({layout:H,panelConstraints:T.map(te=>te.constraints)});an(U,Y)||(x(Y),w.current.layout=Y,O&&O(Y),Ie(T,Y,j.current))}}),Fe(()=>{const S=w.current;return()=>{S.layout=[]}},[]);const _=k.useCallback(S=>{let O=!1;const R=m.current;return R&&window.getComputedStyle(R,null).getPropertyValue("direction")==="rtl"&&(O=!0),function(T){T.preventDefault();const H=m.current;if(!H)return()=>null;const{direction:Y,dragState:te,id:fe,keyboardResizeBy:E,onLayout:X}=C.current,{layout:ne,panelDataArray:ge}=w.current,{initialLayout:Ne}=te??{},Pe=Zn(fe,S,H);let oe=Hl(T,S,Y,te,E,H);const at=Y==="horizontal";at&&O&&(oe=-oe);const Et=ge.map(Dt=>Dt.constraints),Ee=He({delta:oe,initialLayout:Ne??ne,panelConstraints:Et,pivotIndices:Pe,prevLayout:ne,trigger:Bn(T)?"keyboard":"mouse-or-touch"}),ct=!ut(ne,Ee);(Hn(T)||qn(T))&&z.current!=oe&&(z.current=oe,!ct&&oe!==0?at?Lt(S,oe<0?Wn:Gn):Lt(S,oe<0?Vn:Xn):Lt(S,0)),ct&&(x(Ee),w.current.layout=Ee,X&&X(Ee),Ie(ge,Ee,j.current))}},[]),B=k.useCallback((S,O)=>{const{onLayout:R}=C.current,{layout:U,panelDataArray:T}=w.current,H=T.map(ne=>ne.constraints),{panelSize:Y,pivotIndices:te}=De(T,S,U);V(Y!=null,`Panel size not found for panel "${S.id}"`);const E=Oe(T,S)===T.length-1?Y-O:O-Y,X=He({delta:E,initialLayout:U,panelConstraints:H,pivotIndices:te,prevLayout:U,trigger:"imperative-api"});ut(U,X)||(x(X),w.current.layout=X,R&&R(X),Ie(T,X,j.current))},[]),G=k.useCallback((S,O)=>{const{layout:R,panelDataArray:U}=w.current,{collapsedSize:T=0,collapsible:H}=O,{collapsedSize:Y=0,collapsible:te,maxSize:fe=100,minSize:E=0}=S.constraints,{panelSize:X}=De(U,S,R);X!=null&&(H&&te&&je(X,T)?je(T,Y)||B(S,Y):X<E?B(S,E):X>fe&&B(S,fe))},[B]),q=k.useCallback((S,O)=>{const{direction:R}=C.current,{layout:U}=w.current;if(!m.current)return;const T=Nt(S,m.current);V(T,`Drag handle element not found for id "${S}"`);const H=es(R,O);g({dragHandleId:S,dragHandleRect:T.getBoundingClientRect(),initialCursorPosition:H,initialLayout:U})},[]),ee=k.useCallback(()=>{g(null)},[]),J=k.useCallback(S=>{const{panelDataArray:O}=w.current,R=Oe(O,S);R>=0&&(O.splice(R,1),delete j.current[S.id],w.current.panelDataArrayChanged=!0,y())},[y]),L=k.useMemo(()=>({collapsePanel:M,direction:s,dragState:p,expandPanel:I,getPanelSize:F,getPanelStyle:v,groupId:h,isPanelCollapsed:P,isPanelExpanded:W,reevaluatePanelConstraints:G,registerPanel:A,registerResizeHandle:_,resizePanel:B,startDragging:q,stopDragging:ee,unregisterPanel:J,panelGroupElement:m.current}),[M,p,s,I,F,v,h,P,W,G,A,_,B,q,ee,J]),K={display:"flex",flexDirection:s==="horizontal"?"row":"column",height:"100%",overflow:"hidden",width:"100%"};return k.createElement(jt.Provider,{value:L},k.createElement(f,{...u,children:e,className:t,id:i,ref:m,style:{...K,...d},[se.group]:"",[se.groupDirection]:s,[se.groupId]:h}))}const rs=k.forwardRef((n,e)=>k.createElement(ls,{...n,forwardedRef:e}));ls.displayName="PanelGroup";rs.displayName="forwardRef(PanelGroup)";function Oe(n,e){return n.findIndex(t=>t===e||t.id===e.id)}function De(n,e,t){const s=Oe(n,e),i=s===n.length-1?[s-1,s]:[s,s+1],o=t[s];return{...e.constraints,panelSize:o,pivotIndices:i}}function Ql({disabled:n,handleId:e,resizeHandler:t,panelGroupElement:s}){k.useEffect(()=>{if(n||t==null||s==null)return;const r=Nt(e,s);if(r==null)return;const i=o=>{if(!o.defaultPrevented)switch(o.key){case"ArrowDown":case"ArrowLeft":case"ArrowRight":case"ArrowUp":case"End":case"Home":{o.preventDefault(),t(o);break}case"F6":{o.preventDefault();const a=r.getAttribute(se.groupId);V(a,`No group element found for id "${a}"`);const c=Ye(a,s),d=Yn(a,e,s);V(d!==null,`No resize element found for id "${e}"`);const f=o.shiftKey?d>0?d-1:c.length-1:d+1<c.length?d+1:0;c[f].focus();break}}};return r.addEventListener("keydown",i),()=>{r.removeEventListener("keydown",i)}},[s,n,e,t])}function is({children:n=null,className:e="",disabled:t=!1,hitAreaMargins:s,id:r,onBlur:i,onClick:o,onDragging:a,onFocus:c,onPointerDown:d,onPointerUp:f,style:u={},tabIndex:h=0,tagName:m="div",...p}){var g,b;const x=k.useRef(null),y=k.useRef({onClick:o,onDragging:a,onPointerDown:d,onPointerUp:f});k.useEffect(()=>{y.current.onClick=o,y.current.onDragging=a,y.current.onPointerDown=d,y.current.onPointerUp=f});const j=k.useContext(jt);if(j===null)throw Error("PanelResizeHandle components must be rendered within a PanelGroup container");const{direction:N,groupId:z,registerResizeHandle:C,startDragging:w,stopDragging:M,panelGroupElement:I}=j,F=Vt(r),[v,P]=k.useState("inactive"),[W,A]=k.useState(!1),[_,B]=k.useState(null),G=k.useRef({state:v});Fe(()=>{G.current.state=v}),k.useEffect(()=>{if(t)B(null);else{const L=C(F);B(()=>L)}},[t,F,C]);const q=(g=s?.coarse)!==null&&g!==void 0?g:15,ee=(b=s?.fine)!==null&&b!==void 0?b:5;k.useEffect(()=>{if(t||_==null)return;const L=x.current;V(L,"Element ref not attached");let K=!1;return Il(F,L,N,{coarse:q,fine:ee},(O,R,U)=>{if(!R){P("inactive");return}switch(O){case"down":{P("drag"),K=!1,V(U,'Expected event to be defined for "down" action'),w(F,U);const{onDragging:T,onPointerDown:H}=y.current;T?.(!0),H?.();break}case"move":{const{state:T}=G.current;K=!0,T!=="drag"&&P("hover"),V(U,'Expected event to be defined for "move" action'),_(U);break}case"up":{P("hover"),M();const{onClick:T,onDragging:H,onPointerUp:Y}=y.current;H?.(!1),Y?.(),K||T?.();break}}})},[q,N,t,ee,C,F,_,w,M]),Ql({disabled:t,handleId:F,resizeHandler:_,panelGroupElement:I});const J={touchAction:"none",userSelect:"none"};return k.createElement(m,{...p,children:n,className:e,id:r,onBlur:()=>{A(!1),i?.()},onFocus:()=>{A(!0),c?.()},ref:x,role:"separator",style:{...J,...u},tabIndex:h,[se.groupDirection]:N,[se.groupId]:z,[se.resizeHandle]:"",[se.resizeHandleActive]:v==="drag"?"pointer":W?"keyboard":void 0,[se.resizeHandleEnabled]:!t,[se.resizeHandleId]:F,[se.resizeHandleState]:v})}is.displayName="PanelResizeHandle";function Yl(n){const 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=ce("flex h-full w-full data-[panel-group-direction=vertical]:flex-col",t),e[4]=t,e[5]=i):i=e[5];let o;return e[6]!==s||e[7]!==r||e[8]!==i?(o=l.jsx(rs,{ref:r,"data-slot":"resizable-panel-group",className:i,...s}),e[6]=s,e[7]=r,e[8]=i,e[9]=o):o=e[9],o}function fn(n){const 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(Un,{"data-slot":"resizable-panel",...t}),e[2]=t,e[3]=s):s=e[3],s}function Zl(n){const 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=ce("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 o;e[6]!==r?(o=r&&l.jsx("div",{className:"bg-border z-10 flex h-4 w-3 items-center justify-center rounded-xs border",children:l.jsx(Ds,{className:"size-2.5"})}),e[6]=r,e[7]=o):o=e[7];let a;return e[8]!==s||e[9]!==i||e[10]!==o?(a=l.jsx(is,{"data-slot":"resizable-handle",className:i,...s,children:o}),e[8]=s,e[9]=i,e[10]=o,e[11]=a):a=e[11],a}function Jl(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 er(n){if(Jl(n))throw new Error(`Invalid block key: ${n||"(empty)"}`)}function tr(n){try{return decodeURIComponent(n)}catch{return n}}function nr(n){return er(n),encodeURIComponent(n)}function sr(n){return`.deco/blocks/${nr(n)}.json`}function Lo(n){return`/${sr(n)}`}const Oo=1e4,lr=3;function Ut(n){return n.trim()?(n.startsWith("/")?n:`/${n}`).replace(/\/+/g,"/"):"/"}function Yt(n){return n.startsWith("/")?n.slice(1):n}function bt(n){return n.trim()?n.startsWith("/")?n:`/${n}`:"/"}function rr(n){const e=bt(n);if(e==="/")return"/";const t=e.split("/").filter(Boolean);return t.pop(),t.length===0?"/":`/${t.join("/")}`}function Ro(n,e){const t=e.replace(/^\/+|\/+$/g,"");return bt(t?`${n==="/"?"":n}/${t}`:n)}function Ao(n,e){return e==="directory"?n:rr(n)}function _o(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 ir(n){const e=Yt(n);return e?e.split("/").filter(Boolean).length:0}function Uo(n,e,t,s=!1){return{files:[...new Set([...n,...t.files])],directories:[...new Set([...e,...t.directories??[]])],truncated:s||!!t.truncated}}function Bo(n,e){return ir(n)>=lr&&!e.has(n)}function Ho(n,e,t=[]){const s=Yt(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 qo(n){const e=Yt(n),t=".deco/blocks/";if(!e.startsWith(t)||!e.endsWith(".json"))return null;const s=e.slice(t.length,-5);return tr(s)}function or(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"}function Ko(n){const e=Ut(n).split("/").filter(Boolean),t=["/"];let s="";for(const r of e.slice(0,-1))s+=`/${r}`,t.push(s);return t}function Wo(n,e=[]){const t={children:[]},s=i=>{const a=Ut(i).split("/").filter(Boolean);let c=t,d="";for(const f of a){d+=`/${f}`;let u=c.children.find(h=>h.name===f);u?u.kind==="file"&&(u.kind="directory"):(u={name:f,path:d,kind:"directory",children:[]},c.children.push(u)),c=u}};for(const i of n){const a=Ut(i).split("/").filter(Boolean);let c=t,d="";a.forEach((f,u)=>{d+=`/${f}`;const h=u===a.length-1;let m=c.children.find(p=>p.name===f);m||(m={name:f,path:d,kind:h?"file":"directory",children:[]},c.children.push(m)),c=m})}for(const i of e)s(bt(i));const r=i=>{i.sort((o,a)=>o.kind!==a.kind?o.kind==="directory"?-1:1:o.name.localeCompare(a.name));for(const o of i)o.children.length>0&&r(o.children)};return r(t.children),t.children}function ar(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(...ar(r.children,e,t+1)));return s}function Go(n){return n.split(`
|
|
1
|
+
import{c as $,C as de,n as Ze,d as We,K as Q,m as ie,aY as kn,r as k,ap as Ss,l as ce,j as l,U as Ns,i as zs,B as Z,aL as Sn,t as ue,w as Cs,L as $s,e as Ps,b as Nn,u as zn,E as Tt}from"./index-DagCLY74.js";import{i as Es}from"./ChevronRight-DQSOBVvN.js";import{s as Cn}from"./Eye-DXEAZ3hD.js";import{n as Ve,i as yt}from"./Globe01-D7_tFNDx.js";import{b as Ds,c as Ts,e as Fs,i as Ms,f as $n,a as Ht,g as Is,d as Ls}from"./ZoomOut-Sz-YfsWa.js";import{a as ht}from"./Palette-Bex9htb6.js";import{s as Os}from"./Plus-DxOiY_eh.js";import{i as Rs}from"./SearchLg-C90ngNcG.js";import{t as As}from"./Stars01-cEC-ipPW.js";import{i as mt}from"./Upload01-C-B7_O9R.js";import{s as Pn}from"./XClose-DKgczF-K.js";import{i as qt}from"./Zap-DFeLoTKw.js";import{u as En}from"./use-mobile-frKQAcEb.js";import{f as _s,a as Us,b as Bs,c as Hs,d as qs,e as Ks,A as Ws,g as Gs}from"./alert-dialog-D64TX1Dr.js";import{D as Dn,a as Ue,d as Je,e as et,i as Tn,h as Vs,c as Xs}from"./dialog-CEdNabKi.js";import{I as Xe}from"./input-BBLoJ_rD.js";import{S as ae}from"./skeleton-DQt9Jo4R.js";import{F as Se,M as Kt,d as Fn}from"./file-type-icon-XEWyyoul.js";import{T as Qs}from"./toolbar-D4a_v80C.js";import{a as Ys}from"./Package-CO7Xgr7_.js";import{u as Zs}from"./use-debounced-value-DN8U_bzY.js";import{i as vt}from"./DotsVertical-DIdj_9VP.js";import{i as Mn}from"./Key01-BNLFmOh7.js";import{s as wt}from"./Trash01-BhFFuLC_.js";import{D as tt,a as nt,c as st,d as be}from"./dropdown-menu-DNxglwfo.js";import{T as Js}from"./textarea-Ca5fCVqp.js";import{t as el}from"./ChevronDown-B8tQZIrX.js";import{n as tl}from"./ChevronUp-_KdOO2nH.js";import{i as pt}from"./X-ttpevcf5.js";import{P as nl,b as sl,a as ll}from"./popover-Ca3OFWgd.js";import{b as ye,T as ve,a as we}from"./tooltip-UAPe-YqR.js";import{i as rl}from"./Check-BeKF7ryP.js";import{a as il}from"./Copy01-CI9b1UdY.js";import{n as In}from"./LinkExternal01-BryNA8iO.js";import{l as ol,F as al}from"./index-BSGeg-97.js";import{i as cl}from"./LayoutLeft-NpY_J3Yc.js";function Ln(n){return n.contentHash??`${n.size}-${n.updatedAt}`}function pe(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){const t=await fetch(n,e);if(!t.ok){let s="";try{s=(await t.json()).error??""}catch{}throw new Error(s||`HTTP ${t.status}`)}return t}function Wt(n,e){const t=$.c(11),{org:s}=de();let r;t[0]!==s.id||t[1]!==e||t[2]!==n?(r=Q.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(pe(s.slug,n,"list",{path:e}))).json()).entries.toSorted(dl),t[4]=s.slug,t[5]=e,t[6]=n,t[7]=i):i=t[7];let o;return t[8]!==r||t[9]!==i?(o={queryKey:r,placeholderData:kn,queryFn:i},t[8]=r,t[9]=i,t[10]=o):o=t[10],ie(o)}function dl(n,e){return n.kind!==e.kind?n.kind==="dir"?-1:1:n.path.localeCompare(e.path)}function On(n,e,t){const s=$.c(15),{org:r}=de();let i;s[0]!==r.id||s[1]!==e||s[2]!==n?(i=Q.orgFsStat(r.id,n??"",e),s[0]=r.id,s[1]=e,s[2]=n,s[3]=i):i=s[3];const o=n!==null;let a;s[4]!==t?(a=t?.refetchIntervalWhenAbsent?f=>f.state.data?!1:t.refetchIntervalWhenAbsent??!1:void 0,s[4]=t,s[5]=a):a=s[5];let c;s[6]!==r.slug||s[7]!==e||s[8]!==n?(c=async()=>{const f=await fetch(pe(r.slug,n??"","stat",{path:e}));if(f.status===404)return null;if(!f.ok)throw new Error(`HTTP ${f.status}`);return(await f.json()).entry},s[6]=r.slug,s[7]=e,s[8]=n,s[9]=c):c=s[9];let d;return s[10]!==i||s[11]!==o||s[12]!==a||s[13]!==c?(d={queryKey:i,enabled:o,refetchInterval:a,queryFn:c},s[10]=i,s[11]=o,s[12]=a,s[13]=c,s[14]=d):d=s[14],ie(d)}function ul(n){const e=$.c(9),{org:t}=de();let s;e[0]!==t.id||e[1]!==n?(s=Q.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(pe(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],ie(i)}function fl(n,e){const t=$.c(9),s=n===void 0?60:n,{org:r}=de();let i;t[0]!==r.id?(i=Q.orgFsRecent(r.id),t[0]=r.id,t[1]=i):i=t[1];const o=e?.enabled;let a;t[2]!==s||t[3]!==r.slug?(a=async()=>(await(await he(`/api/${encodeURIComponent(r.slug)}/fs/recent?limit=${s}`)).json()).entries,t[2]=s,t[3]=r.slug,t[4]=a):a=t[4];let c;return t[5]!==i||t[6]!==o||t[7]!==a?(c={queryKey:i,enabled:o,queryFn:a},t[5]=i,t[6]=o,t[7]=a,t[8]=c):c=t[8],ie(c)}function hl(n,e){const t=$.c(11),s=50,{org:r}=de();let i;t[0]!==r.id||t[1]!==n?(i=Q.orgFsSearch(r.id,n),t[0]=r.id,t[1]=n,t[2]=i):i=t[2];const o=n.length>0;let a;t[3]!==s||t[4]!==r.slug||t[5]!==n?(a=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]=a):a=t[6];let c;return t[7]!==i||t[8]!==o||t[9]!==a?(c={queryKey:i,enabled:o,placeholderData:kn,queryFn:a},t[7]=i,t[8]=o,t[9]=a,t[10]=c):c=t[10],ie(c)}function Fo(n){const e=$.c(8),{org:t}=de();let s;e[0]!==t.id?(s=Q.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 a=await he(`/api/${encodeURIComponent(t.slug)}/fs/skills`),{skills:c}=await a.json();return c.map(ml)},e[2]=t.slug,e[3]=i):i=e[3];let o;return e[4]!==s||e[5]!==r||e[6]!==i?(o={queryKey:s,enabled:r,queryFn:i},e[4]=s,e[5]=r,e[6]=i,e[7]=o):o=e[7],ie(o)}function ml(n){return{volume:n.volume,path:n.path}}async function Mo(n){const e=await he(`/api/${encodeURIComponent(n)}/fs/skills`),{skills:t}=await e.json();return t}async function pl(n,e,t){return(await he(pe(n,e,"read",{path:t}))).text()}const xl=new Set(["md","mdx","markdown","txt","text"]),gl=25,bl=64*1024,yl=256*1024,vl=4;function wl(n){const e=n.lastIndexOf(".");return e===-1?!1:xl.has(n.slice(e+1).toLowerCase())}async function Io(n,e,t){const s=t?`${t}/`:"",r=u=>u.startsWith(s)?u.slice(s.length):u,i=[],o=[],a=[{path:t,depth:0}];for(;a.length>0;){const u=a.shift();if(!u)break;let h;try{h=(await(await he(pe(n,e,"list",{path:u.path}))).json()).entries}catch{continue}for(const m of[...h].sort((p,g)=>p.path.localeCompare(g.path))){if(m.kind==="dir"){u.depth<vl&&a.push({path:m.path,depth:u.depth+1});continue}wl(m.path)&&m.size<=bl&&i.length<gl?i.push(m.path):o.push(r(m.path))}}const c=await Promise.all(i.map(u=>pl(n,e,u).catch(()=>null))),d=[];let f=0;return i.forEach((u,h)=>{const m=c[h];if(m==null||f+m.length>yl){o.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)),o.sort(),{files:d,omittedPaths:o}}function Rn(){const n=$.c(7),{org:e}=de();let t;n[0]!==e.id?(t=Q.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],ie(r)}function jl(n){const e=$.c(3),{org:t}=de();let s;return e[0]!==t.slug||e[1]!==n?(s=r=>pe(t.slug,n,"read",{path:r}),e[0]=t.slug,e[1]=n,e[2]=s):s=e[2],s}function lt(){const n=$.c(2),{org:e}=de();let t;return n[0]!==e.slug?(t=(s,r)=>pe(e.slug,s,"read",{path:r}),n[0]=e.slug,n[1]=t):t=n[1],t}function An(n){const e=$.c(3),{org:t}=de();let s;return e[0]!==t||e[1]!==n?(s={mutationFn:async r=>(await(await he(pe(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],We(s)}function kl(n){const e=$.c(18),{org:t}=de(),s=Ze();let r;e[0]!==t||e[1]!==n?(r=async d=>(await(await he(pe(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=Q.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 o;e[7]!==s?(o=(d,f,u)=>{u&&s.setQueryData(u.key,u.previous)},e[7]=s,e[8]=o):o=e[8];let a;e[9]!==t||e[10]!==s||e[11]!==n?(a=(d,f,u)=>{s.invalidateQueries({queryKey:Q.orgFsStat(t.id,n,u.path)}),s.invalidateQueries({queryKey:Q.orgFsVolume(t.id,n)}),s.invalidateQueries({queryKey:Q.orgFsRecent(t.id)}),s.invalidateQueries({queryKey:Q.orgFsSearchRoot(t.id)})},e[9]=t,e[10]=s,e[11]=n,e[12]=a):a=e[12];let c;return e[13]!==r||e[14]!==i||e[15]!==o||e[16]!==a?(c={mutationFn:r,onMutate:i,onError:o,onSettled:a},e[13]=r,e[14]=i,e[15]=o,e[16]=a,e[17]=c):c=e[17],We(c)}function At(n){const e=$.c(26),{org:t}=de(),s=Ze();let r;e[0]!==t||e[1]!==s||e[2]!==n?(r=()=>{s.invalidateQueries({queryKey:Q.orgFsVolume(t.id,n)}),s.invalidateQueries({queryKey:Q.orgFsRecent(t.id)}),s.invalidateQueries({queryKey:Q.orgFsSearchRoot(t.id)})},e[0]=t,e[1]=s,e[2]=n,e[3]=r):r=e[3];const i=r;let o;e[4]!==t||e[5]!==n?(o=async b=>{for(const x of b.files){const y=b.dir?`${b.dir}/${x.name}`:x.name;await he(pe(t.slug,n,"file",{path:y}),{method:"PUT",headers:{"content-type":x.type||"application/octet-stream"},body:x})}},e[4]=t,e[5]=n,e[6]=o):o=e[6];let a;e[7]!==i||e[8]!==o?(a={mutationFn:o,onSettled:i},e[7]=i,e[8]=o,e[9]=a):a=e[9];const c=We(a);let d;e[10]!==t||e[11]!==n?(d=async b=>{await he(pe(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=We(f);let h;e[16]!==t||e[17]!==n?(h=async b=>{await he(pe(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=We(m);let g;return e[22]!==u||e[23]!==p||e[24]!==c?(g={upload:c,mkdir:u,remove:p},e[22]=u,e[23]=p,e[24]=c,e[25]=g):g=e[25],g}const jt=k.createContext(null);jt.displayName="PanelGroupContext";const se={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=k.useLayoutEffect,sn=Ss.useId,Sl=typeof sn=="function"?sn:()=>null;let Nl=0;function Vt(n=null){const e=Sl(),t=k.useRef(n||e||null);return t.current===null&&(t.current=""+Nl++),n??t.current}function _n({children:n,className:e="",collapsedSize:t,collapsible:s,defaultSize:r,forwardedRef:i,id:o,maxSize:a,minSize:c,onCollapse:d,onExpand:f,onResize:u,order:h,style:m,tagName:p="div",...g}){const b=k.useContext(jt);if(b===null)throw Error("Panel components must be rendered within a PanelGroup container");const{collapsePanel:x,expandPanel:y,getPanelSize:j,getPanelStyle:N,groupId:z,isPanelCollapsed:C,reevaluatePanelConstraints:w,registerPanel:M,resizePanel:I,unregisterPanel:F}=b,v=Vt(o),P=k.useRef({callbacks:{onCollapse:d,onExpand:f,onResize:u},constraints:{collapsedSize:t,collapsible:s,defaultSize:r,maxSize:a,minSize:c},id:v,idIsFromProps:o!==void 0,order:h});k.useRef({didLogMissingDefaultSizeWarning:!1}),Fe(()=>{const{callbacks:A,constraints:_}=P.current,B={..._};P.current.id=v,P.current.idIsFromProps=o!==void 0,P.current.order=h,A.onCollapse=d,A.onExpand=f,A.onResize=u,_.collapsedSize=t,_.collapsible=s,_.defaultSize=r,_.maxSize=a,_.minSize=c,(B.collapsedSize!==_.collapsedSize||B.collapsible!==_.collapsible||B.maxSize!==_.maxSize||B.minSize!==_.minSize)&&w(P.current,B)}),Fe(()=>{const A=P.current;return M(A),()=>{F(A)}},[h,v,M,F]),k.useImperativeHandle(i,()=>({collapse:()=>{x(P.current)},expand:A=>{y(P.current,A)},getId(){return v},getSize(){return j(P.current)},isCollapsed(){return C(P.current)},isExpanded(){return!C(P.current)},resize:A=>{I(P.current,A)}}),[x,y,j,C,v,I]);const W=N(P.current,r);return k.createElement(p,{...g,children:n,className:e,id:v,style:{...W,...m},[se.groupId]:z,[se.panel]:"",[se.panelCollapsible]:s||void 0,[se.panelId]:v,[se.panelSize]:parseFloat(""+W.flexGrow).toFixed(1)})}const Un=k.forwardRef((n,e)=>k.createElement(_n,{...n,forwardedRef:e}));_n.displayName="Panel";Un.displayName="forwardRef(Panel)";let _t=null,ft=-1,Ce=null;function zl(n,e){if(e){const t=(e&Wn)!==0,s=(e&Gn)!==0,r=(e&Vn)!==0,i=(e&Xn)!==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 Cl(){Ce!==null&&(document.head.removeChild(Ce),_t=null,Ce=null,ft=-1)}function Ft(n,e){var t,s;const r=zl(n,e);if(_t!==r){if(_t=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 Bn(n){return n.type==="keydown"}function Hn(n){return n.type.startsWith("pointer")}function qn(n){return n.type.startsWith("mouse")}function kt(n){if(Hn(n)){if(n.isPrimary)return{x:n.clientX,y:n.clientY}}else if(qn(n))return{x:n.clientX,y:n.clientY};return{x:1/0,y:1/0}}function $l(){if(typeof matchMedia=="function")return matchMedia("(pointer:coarse)").matches?"coarse":"fine"}function Pl(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 El(n,e){if(n===e)throw new Error("Cannot compare node with itself");const t={a:on(n),b:on(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:rn(ln(t.a)),b:rn(ln(t.b))};if(r.a===r.b){const i=s.childNodes,o={a:t.a.at(-1),b:t.b.at(-1)};let a=i.length;for(;a--;){const c=i[a];if(c===o.a)return 1;if(c===o.b)return-1}}return Math.sign(r.a-r.b)}const Dl=/\b(?:position|zIndex|opacity|transform|webkitTransform|mixBlendMode|filter|webkitFilter|isolation)\b/;function Tl(n){var e;const t=getComputedStyle((e=Kn(n))!==null&&e!==void 0?e:n).display;return t==="flex"||t==="inline-flex"}function Fl(n){const e=getComputedStyle(n);return!!(e.position==="fixed"||e.zIndex!=="auto"&&(e.position!=="static"||Tl(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"||Dl.test(e.willChange)||e.webkitOverflowScrolling==="touch")}function ln(n){let e=n.length;for(;e--;){const t=n[e];if(V(t,"Missing node"),Fl(t))return t}return null}function rn(n){return n&&Number(getComputedStyle(n).zIndex)||0}function on(n){const e=[];for(;n;)e.push(n),n=Kn(n);return e}function Kn(n){const{parentNode:e}=n;return e&&e instanceof ShadowRoot?e.host:e}const Wn=1,Gn=2,Vn=4,Xn=8,Ml=$l()==="coarse";let xe=[],_e=!1,Te=new Map,St=new Map;const Qe=new Set;function Il(n,e,t,s,r){var i;const{ownerDocument:o}=e,a={direction:t,element:e,hitAreaMargins:s,setResizeHandlerState:r},c=(i=Te.get(o))!==null&&i!==void 0?i:0;return Te.set(o,c+1),Qe.add(a),xt(),function(){var f;St.delete(n),Qe.delete(a);const u=(f=Te.get(o))!==null&&f!==void 0?f:1;if(Te.set(o,u-1),xt(),u===1&&Te.delete(o),xe.includes(a)){const h=xe.indexOf(a);h>=0&&xe.splice(h,1),Qt(),r("up",!0,null)}}}function Ll(n){const{target:e}=n,{x:t,y:s}=kt(n);_e=!0,Xt({target:e,x:t,y:s}),xt(),xe.length>0&&(gt("down",n),n.preventDefault(),Qn(e)||n.stopImmediatePropagation())}function Mt(n){const{x:e,y:t}=kt(n);if(_e&&n.buttons===0&&(_e=!1,gt("up",n)),!_e){const{target:s}=n;Xt({target:s,x:e,y:t})}gt("move",n),Qt(),xe.length>0&&n.preventDefault()}function It(n){const{target:e}=n,{x:t,y:s}=kt(n);St.clear(),_e=!1,xe.length>0&&(n.preventDefault(),Qn(e)||n.stopImmediatePropagation()),gt("up",n),Xt({target:e,x:t,y:s}),Qt(),xt()}function Qn(n){let e=n;for(;e;){if(e.hasAttribute(se.resizeHandle))return!0;e=e.parentElement}return!1}function Xt({target:n,x:e,y:t}){xe.splice(0);let s=null;(n instanceof HTMLElement||n instanceof SVGElement)&&(s=n),Qe.forEach(r=>{const{element:i,hitAreaMargins:o}=r,a=i.getBoundingClientRect(),{bottom:c,left:d,right:f,top:u}=a,h=Ml?o.coarse:o.fine;if(e>=d-h&&e<=f+h&&t>=u-h&&t<=c+h){if(s!==null&&document.contains(s)&&i!==s&&!i.contains(s)&&!s.contains(i)&&El(s,i)>0){let p=s,g=!1;for(;p&&!p.contains(i);){if(Pl(p.getBoundingClientRect(),a)){g=!0;break}p=p.parentElement}if(g)return}xe.push(r)}})}function Lt(n,e){St.set(n,e)}function Qt(){let n=!1,e=!1;xe.forEach(s=>{const{direction:r}=s;r==="horizontal"?n=!0:e=!0});let t=0;St.forEach(s=>{t|=s}),n&&e?Ft("intersection",t):n?Ft("horizontal",t):e?Ft("vertical",t):Cl()}let Ot=new AbortController;function xt(){Ot.abort(),Ot=new AbortController;const n={capture:!0,signal:Ot.signal};Qe.size&&(_e?(xe.length>0&&Te.forEach((e,t)=>{const{body:s}=t;e>0&&(s.addEventListener("contextmenu",It,n),s.addEventListener("pointerleave",Mt,n),s.addEventListener("pointermove",Mt,n))}),window.addEventListener("pointerup",It,n),window.addEventListener("pointercancel",It,n)):Te.forEach((e,t)=>{const{body:s}=t;e>0&&(s.addEventListener("pointerdown",Ll,n),s.addEventListener("pointermove",Mt,n))}))}function gt(n,e){Qe.forEach(t=>{const{setResizeHandlerState:s}=t,r=xe.includes(t);s(n,r,e)})}function Ol(){const[n,e]=k.useState(0);return k.useCallback(()=>e(t=>t+1),[])}function V(n,e){if(!n)throw console.error(e),Error(e)}function Me(n,e,t=Gt){return n.toFixed(t)===e.toFixed(t)?0:n>e?1:-1}function je(n,e,t=Gt){return Me(n,e,t)===0}function me(n,e,t){return Me(n,e,t)===0}function Rl(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(!me(r,i,t))return!1}return!0}function Ae({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:o=100,minSize:a=0}=s;if(Me(t,a)<0)if(i){const c=(r+a)/2;Me(t,c)<0?t=r:t=a}else t=a;return t=Math.min(o,t),t=parseFloat(t.toFixed(Gt)),t}function He({delta:n,initialLayout:e,panelConstraints:t,pivotIndices:s,prevLayout:r,trigger:i}){if(me(n,0))return e;const o=[...e],[a,c]=s;V(a!=null,"Invalid first pivot index"),V(c!=null,"Invalid second pivot index");let d=0;if(i==="keyboard"){{const u=n<0?c:a,h=t[u];V(h,`Panel constraints not found for index ${u}`);const{collapsedSize:m=0,collapsible:p,minSize:g=0}=h;if(p){const b=e[u];if(V(b!=null,`Previous layout not found for panel index ${u}`),me(b,m)){const x=g-b;Me(x,Math.abs(n))>0&&(n=n<0?0-x:x)}}}{const u=n<0?a:c,h=t[u];V(h,`No panel constraints found for index ${u}`);const{collapsedSize:m=0,collapsible:p,minSize:g=0}=h;if(p){const b=e[u];if(V(b!=null,`Previous layout not found for panel index ${u}`),me(b,g)){const x=b-m;Me(x,Math.abs(n))>0&&(n=n<0?0-x:x)}}}}{const u=n<0?1:-1;let h=n<0?c:a,m=0;for(;;){const g=e[h];V(g!=null,`Previous layout not found for panel index ${h}`);const x=Ae({panelConstraints:t,panelIndex:h,size:100})-g;if(m+=x,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?a:c;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 g=p-m,b=Ae({panelConstraints:t,panelIndex:h,size:g});if(!me(p,b)&&(d+=p-b,o[h]=b,d.toPrecision(3).localeCompare(Math.abs(n).toPrecision(3),void 0,{numeric:!0})>=0))break;n<0?h--:h++}}if(Rl(r,o))return r;{const u=n<0?c:a,h=e[u];V(h!=null,`Previous layout not found for panel index ${u}`);const m=h+d,p=Ae({panelConstraints:t,panelIndex:u,size:m});if(o[u]=p,!me(p,m)){let g=m-p,x=n<0?c:a;for(;x>=0&&x<t.length;){const y=o[x];V(y!=null,`Previous layout not found for panel index ${x}`);const j=y+g,N=Ae({panelConstraints:t,panelIndex:x,size:j});if(me(y,N)||(g-=N-y,o[x]=N),me(g,0))break;n>0?x--:x++}}}const f=o.reduce((u,h)=>h+u,0);return me(f,100)?o:r}function Al({layout:n,panelsArray:e,pivotIndices:t}){let s=0,r=100,i=0,o=0;const a=t[0];V(a!=null,"No pivot index found"),e.forEach((u,h)=>{const{constraints:m}=u,{maxSize:p=100,minSize:g=0}=m;h===a?(s=g,r=p):(i+=g,o+=p)});const c=Math.min(r,100-i),d=Math.max(s,100-o),f=n[a];return{valueMax:c,valueMin:d,valueNow:f}}function Ye(n,e=document){return Array.from(e.querySelectorAll(`[${se.resizeHandleId}][data-panel-group-id="${n}"]`))}function Yn(n,e,t=document){const r=Ye(n,t).findIndex(i=>i.getAttribute(se.resizeHandleId)===e);return r??null}function Zn(n,e,t){const s=Yn(n,e,t);return s!=null?[s,s+1]:[-1,-1]}function Jn(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 Nt(n,e=document){const t=e.querySelector(`[${se.resizeHandleId}="${n}"]`);return t||null}function _l(n,e,t,s=document){var r,i,o,a;const c=Nt(e,s),d=Ye(n,s),f=c?d.indexOf(c):-1,u=(r=(i=t[f])===null||i===void 0?void 0:i.id)!==null&&r!==void 0?r:null,h=(o=(a=t[f+1])===null||a===void 0?void 0:a.id)!==null&&o!==void 0?o:null;return[u,h]}function Ul({committedValuesRef:n,eagerValuesRef:e,groupId:t,layout:s,panelDataArray:r,panelGroupElement:i,setLayout:o}){k.useRef({didWarnAboutMissingResizeHandle:!1}),Fe(()=>{if(!i)return;const a=Ye(t,i);for(let c=0;c<r.length-1;c++){const{valueMax:d,valueMin:f,valueNow:u}=Al({layout:s,panelsArray:r,pivotIndices:[c,c+1]}),h=a[c];if(h!=null){const m=r[c];V(m,`No panel data found for index "${c}"`),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()=>{a.forEach((c,d)=>{c.removeAttribute("aria-controls"),c.removeAttribute("aria-valuemax"),c.removeAttribute("aria-valuemin"),c.removeAttribute("aria-valuenow")})}},[t,s,r,i]),k.useEffect(()=>{if(!i)return;const a=e.current;V(a,"Eager values not found");const{panelDataArray:c}=a,d=Jn(t,i);V(d!=null,`No group found for id "${t}"`);const f=Ye(t,i);V(f,`No resize handles found for group id "${t}"`);const u=f.map(h=>{const m=h.getAttribute(se.resizeHandleId);V(m,"Resize handle element has no handle id attribute");const[p,g]=_l(t,m,c,i);if(p==null||g==null)return()=>{};const b=x=>{if(!x.defaultPrevented)switch(x.key){case"Enter":{x.preventDefault();const y=c.findIndex(j=>j.id===p);if(y>=0){const j=c[y];V(j,`No panel data found for index ${y}`);const N=s[y],{collapsedSize:z=0,collapsible:C,minSize:w=0}=j.constraints;if(N!=null&&C){const M=He({delta:me(N,z)?w-z:z-N,initialLayout:s,panelConstraints:c.map(I=>I.constraints),pivotIndices:Zn(t,m,i),prevLayout:s,trigger:"keyboard"});s!==M&&o(M)}}break}}};return h.addEventListener("keydown",b),()=>{h.removeEventListener("keydown",b)}});return()=>{u.forEach(h=>h())}},[i,n,e,t,s,r,o])}function an(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 es(n,e){const t=n==="horizontal",{x:s,y:r}=kt(e);return t?s:r}function Bl(n,e,t,s,r){const i=t==="horizontal",o=Nt(e,r);V(o,`No resize handle element found for id "${e}"`);const a=o.getAttribute(se.groupId);V(a,"Resize handle element has no group id attribute");let{initialCursorPosition:c}=s;const d=es(t,n),f=Jn(a,r);V(f,`No group element found for id "${a}"`);const u=f.getBoundingClientRect(),h=i?u.width:u.height;return(d-c)/h*100}function Hl(n,e,t,s,r,i){if(Bn(n)){const o=t==="horizontal";let a=0;n.shiftKey?a=100:r!=null?a=r:a=10;let c=0;switch(n.key){case"ArrowDown":c=o?0:a;break;case"ArrowLeft":c=o?-a:0;break;case"ArrowRight":c=o?a:0;break;case"ArrowUp":c=o?0:-a;break;case"End":c=100;break;case"Home":c=-100;break}return c}else return s==null?0:Bl(n,e,t,s,i)}function ql({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 o=t[i];V(o,`Panel constraints not found for index ${i}`);const{defaultSize:a}=o;a!=null&&(s++,e[i]=a,r-=a)}for(let i=0;i<n.length;i++){const o=t[i];V(o,`Panel constraints not found for index ${i}`);const{defaultSize:a}=o;if(a!=null)continue;const c=n.length-s,d=r/c;s++,e[i]=d,r-=d}return e}function Ie(n,e,t){e.forEach((s,r)=>{const i=n[r];V(i,`Panel data not found for index ${r}`);const{callbacks:o,constraints:a,id:c}=i,{collapsedSize:d=0,collapsible:f}=a,u=t[c];if(u==null||s!==u){t[c]=s;const{onCollapse:h,onExpand:m,onResize:p}=o;p&&p(s,u),f&&(h||m)&&(m&&(u==null||je(u,d))&&!je(s,d)&&m(),h&&(u==null||!je(u,d))&&je(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 Kl({defaultSize:n,dragState:e,layout:t,panelData:s,panelIndex:r,precision:i=3}){const o=t[r];let a;return o==null?a=n!=null?n.toPrecision(i):"1":s.length===1?a="1":a=o.toPrecision(i),{flexBasis:0,flexGrow:a,flexShrink:1,overflow:"hidden",pointerEvents:e!==null?"none":void 0}}function Wl(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 ts(n){return`react-resizable-panels:${n}`}function ns(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 ss(n,e){try{const t=ts(n),s=e.getItem(t);if(s){const r=JSON.parse(s);if(typeof r=="object"&&r!=null)return r}}catch{}return null}function Gl(n,e,t){var s,r;const i=(s=ss(n,t))!==null&&s!==void 0?s:{},o=ns(e);return(r=i[o])!==null&&r!==void 0?r:null}function Vl(n,e,t,s,r){var i;const o=ts(n),a=ns(e),c=(i=ss(n,r))!==null&&i!==void 0?i:{};c[a]={expandToSizes:Object.fromEntries(t.entries()),layout:s};try{r.setItem(o,JSON.stringify(c))}catch(d){console.error(d)}}function dn({layout:n,panelConstraints:e}){const t=[...n],s=t.reduce((i,o)=>i+o,0);if(t.length!==e.length)throw Error(`Invalid ${e.length} panel layout: ${t.map(i=>`${i}%`).join(", ")}`);if(!me(s,100)&&t.length>0)for(let i=0;i<e.length;i++){const o=t[i];V(o!=null,`No layout data found for index ${i}`);const a=100/s*o;t[i]=a}let r=0;for(let i=0;i<e.length;i++){const o=t[i];V(o!=null,`No layout data found for index ${i}`);const a=Ae({panelConstraints:e,panelIndex:i,size:o});o!=a&&(r+=o-a,t[i]=a)}if(!me(r,0))for(let i=0;i<e.length;i++){const o=t[i];V(o!=null,`No layout data found for index ${i}`);const a=o+r,c=Ae({panelConstraints:e,panelIndex:i,size:a});if(o!==c&&(r-=c-o,t[i]=c,me(r,0)))break}return t}const Xl=100,qe={getItem:n=>(cn(qe),qe.getItem(n)),setItem:(n,e)=>{cn(qe),qe.setItem(n,e)}},un={};function ls({autoSaveId:n=null,children:e,className:t="",direction:s,forwardedRef:r,id:i=null,onLayout:o=null,keyboardResizeBy:a=null,storage:c=qe,style:d,tagName:f="div",...u}){const h=Vt(i),m=k.useRef(null),[p,g]=k.useState(null),[b,x]=k.useState([]),y=Ol(),j=k.useRef({}),N=k.useRef(new Map),z=k.useRef(0),C=k.useRef({autoSaveId:n,direction:s,dragState:p,id:h,keyboardResizeBy:a,onLayout:o,storage:c}),w=k.useRef({layout:b,panelDataArray:[],panelDataArrayChanged:!1});k.useRef({didLogIdAndOrderWarning:!1,didLogPanelConstraintsWarning:!1,prevPanelIds:[]}),k.useImperativeHandle(r,()=>({getId:()=>C.current.id,getLayout:()=>{const{layout:S}=w.current;return S},setLayout:S=>{const{onLayout:O}=C.current,{layout:R,panelDataArray:U}=w.current,T=dn({layout:S,panelConstraints:U.map(H=>H.constraints)});an(R,T)||(x(T),w.current.layout=T,O&&O(T),Ie(U,T,j.current))}}),[]),Fe(()=>{C.current.autoSaveId=n,C.current.direction=s,C.current.dragState=p,C.current.id=h,C.current.onLayout=o,C.current.storage=c}),Ul({committedValuesRef:C,eagerValuesRef:w,groupId:h,layout:b,panelDataArray:w.current.panelDataArray,setLayout:x,panelGroupElement:m.current}),k.useEffect(()=>{const{panelDataArray:S}=w.current;if(n){if(b.length===0||b.length!==S.length)return;let O=un[n];O==null&&(O=Wl(Vl,Xl),un[n]=O);const R=[...S],U=new Map(N.current);O(n,R,U,b,c)}},[n,b,c]),k.useEffect(()=>{});const M=k.useCallback(S=>{const{onLayout:O}=C.current,{layout:R,panelDataArray:U}=w.current;if(S.constraints.collapsible){const T=U.map(fe=>fe.constraints),{collapsedSize:H=0,panelSize:Y,pivotIndices:te}=De(U,S,R);if(V(Y!=null,`Panel size not found for panel "${S.id}"`),!je(Y,H)){N.current.set(S.id,Y);const E=Oe(U,S)===U.length-1?Y-H:H-Y,X=He({delta:E,initialLayout:R,panelConstraints:T,pivotIndices:te,prevLayout:R,trigger:"imperative-api"});ut(R,X)||(x(X),w.current.layout=X,O&&O(X),Ie(U,X,j.current))}}},[]),I=k.useCallback((S,O)=>{const{onLayout:R}=C.current,{layout:U,panelDataArray:T}=w.current;if(S.constraints.collapsible){const H=T.map(ne=>ne.constraints),{collapsedSize:Y=0,panelSize:te=0,minSize:fe=0,pivotIndices:E}=De(T,S,U),X=O??fe;if(je(te,Y)){const ne=N.current.get(S.id),ge=ne!=null&&ne>=X?ne:X,Pe=Oe(T,S)===T.length-1?te-ge:ge-te,oe=He({delta:Pe,initialLayout:U,panelConstraints:H,pivotIndices:E,prevLayout:U,trigger:"imperative-api"});ut(U,oe)||(x(oe),w.current.layout=oe,R&&R(oe),Ie(T,oe,j.current))}}},[]),F=k.useCallback(S=>{const{layout:O,panelDataArray:R}=w.current,{panelSize:U}=De(R,S,O);return V(U!=null,`Panel size not found for panel "${S.id}"`),U},[]),v=k.useCallback((S,O)=>{const{panelDataArray:R}=w.current,U=Oe(R,S);return Kl({defaultSize:O,dragState:p,layout:b,panelData:R,panelIndex:U})},[p,b]),P=k.useCallback(S=>{const{layout:O,panelDataArray:R}=w.current,{collapsedSize:U=0,collapsible:T,panelSize:H}=De(R,S,O);return V(H!=null,`Panel size not found for panel "${S.id}"`),T===!0&&je(H,U)},[]),W=k.useCallback(S=>{const{layout:O,panelDataArray:R}=w.current,{collapsedSize:U=0,collapsible:T,panelSize:H}=De(R,S,O);return V(H!=null,`Panel size not found for panel "${S.id}"`),!T||Me(H,U)>0},[]),A=k.useCallback(S=>{const{panelDataArray:O}=w.current;O.push(S),O.sort((R,U)=>{const T=R.order,H=U.order;return T==null&&H==null?0:T==null?-1:H==null?1:T-H}),w.current.panelDataArrayChanged=!0,y()},[y]);Fe(()=>{if(w.current.panelDataArrayChanged){w.current.panelDataArrayChanged=!1;const{autoSaveId:S,onLayout:O,storage:R}=C.current,{layout:U,panelDataArray:T}=w.current;let H=null;if(S){const te=Gl(S,T,R);te&&(N.current=new Map(Object.entries(te.expandToSizes)),H=te.layout)}H==null&&(H=ql({panelDataArray:T}));const Y=dn({layout:H,panelConstraints:T.map(te=>te.constraints)});an(U,Y)||(x(Y),w.current.layout=Y,O&&O(Y),Ie(T,Y,j.current))}}),Fe(()=>{const S=w.current;return()=>{S.layout=[]}},[]);const _=k.useCallback(S=>{let O=!1;const R=m.current;return R&&window.getComputedStyle(R,null).getPropertyValue("direction")==="rtl"&&(O=!0),function(T){T.preventDefault();const H=m.current;if(!H)return()=>null;const{direction:Y,dragState:te,id:fe,keyboardResizeBy:E,onLayout:X}=C.current,{layout:ne,panelDataArray:ge}=w.current,{initialLayout:Ne}=te??{},Pe=Zn(fe,S,H);let oe=Hl(T,S,Y,te,E,H);const at=Y==="horizontal";at&&O&&(oe=-oe);const Et=ge.map(Dt=>Dt.constraints),Ee=He({delta:oe,initialLayout:Ne??ne,panelConstraints:Et,pivotIndices:Pe,prevLayout:ne,trigger:Bn(T)?"keyboard":"mouse-or-touch"}),ct=!ut(ne,Ee);(Hn(T)||qn(T))&&z.current!=oe&&(z.current=oe,!ct&&oe!==0?at?Lt(S,oe<0?Wn:Gn):Lt(S,oe<0?Vn:Xn):Lt(S,0)),ct&&(x(Ee),w.current.layout=Ee,X&&X(Ee),Ie(ge,Ee,j.current))}},[]),B=k.useCallback((S,O)=>{const{onLayout:R}=C.current,{layout:U,panelDataArray:T}=w.current,H=T.map(ne=>ne.constraints),{panelSize:Y,pivotIndices:te}=De(T,S,U);V(Y!=null,`Panel size not found for panel "${S.id}"`);const E=Oe(T,S)===T.length-1?Y-O:O-Y,X=He({delta:E,initialLayout:U,panelConstraints:H,pivotIndices:te,prevLayout:U,trigger:"imperative-api"});ut(U,X)||(x(X),w.current.layout=X,R&&R(X),Ie(T,X,j.current))},[]),G=k.useCallback((S,O)=>{const{layout:R,panelDataArray:U}=w.current,{collapsedSize:T=0,collapsible:H}=O,{collapsedSize:Y=0,collapsible:te,maxSize:fe=100,minSize:E=0}=S.constraints,{panelSize:X}=De(U,S,R);X!=null&&(H&&te&&je(X,T)?je(T,Y)||B(S,Y):X<E?B(S,E):X>fe&&B(S,fe))},[B]),q=k.useCallback((S,O)=>{const{direction:R}=C.current,{layout:U}=w.current;if(!m.current)return;const T=Nt(S,m.current);V(T,`Drag handle element not found for id "${S}"`);const H=es(R,O);g({dragHandleId:S,dragHandleRect:T.getBoundingClientRect(),initialCursorPosition:H,initialLayout:U})},[]),ee=k.useCallback(()=>{g(null)},[]),J=k.useCallback(S=>{const{panelDataArray:O}=w.current,R=Oe(O,S);R>=0&&(O.splice(R,1),delete j.current[S.id],w.current.panelDataArrayChanged=!0,y())},[y]),L=k.useMemo(()=>({collapsePanel:M,direction:s,dragState:p,expandPanel:I,getPanelSize:F,getPanelStyle:v,groupId:h,isPanelCollapsed:P,isPanelExpanded:W,reevaluatePanelConstraints:G,registerPanel:A,registerResizeHandle:_,resizePanel:B,startDragging:q,stopDragging:ee,unregisterPanel:J,panelGroupElement:m.current}),[M,p,s,I,F,v,h,P,W,G,A,_,B,q,ee,J]),K={display:"flex",flexDirection:s==="horizontal"?"row":"column",height:"100%",overflow:"hidden",width:"100%"};return k.createElement(jt.Provider,{value:L},k.createElement(f,{...u,children:e,className:t,id:i,ref:m,style:{...K,...d},[se.group]:"",[se.groupDirection]:s,[se.groupId]:h}))}const rs=k.forwardRef((n,e)=>k.createElement(ls,{...n,forwardedRef:e}));ls.displayName="PanelGroup";rs.displayName="forwardRef(PanelGroup)";function Oe(n,e){return n.findIndex(t=>t===e||t.id===e.id)}function De(n,e,t){const s=Oe(n,e),i=s===n.length-1?[s-1,s]:[s,s+1],o=t[s];return{...e.constraints,panelSize:o,pivotIndices:i}}function Ql({disabled:n,handleId:e,resizeHandler:t,panelGroupElement:s}){k.useEffect(()=>{if(n||t==null||s==null)return;const r=Nt(e,s);if(r==null)return;const i=o=>{if(!o.defaultPrevented)switch(o.key){case"ArrowDown":case"ArrowLeft":case"ArrowRight":case"ArrowUp":case"End":case"Home":{o.preventDefault(),t(o);break}case"F6":{o.preventDefault();const a=r.getAttribute(se.groupId);V(a,`No group element found for id "${a}"`);const c=Ye(a,s),d=Yn(a,e,s);V(d!==null,`No resize element found for id "${e}"`);const f=o.shiftKey?d>0?d-1:c.length-1:d+1<c.length?d+1:0;c[f].focus();break}}};return r.addEventListener("keydown",i),()=>{r.removeEventListener("keydown",i)}},[s,n,e,t])}function is({children:n=null,className:e="",disabled:t=!1,hitAreaMargins:s,id:r,onBlur:i,onClick:o,onDragging:a,onFocus:c,onPointerDown:d,onPointerUp:f,style:u={},tabIndex:h=0,tagName:m="div",...p}){var g,b;const x=k.useRef(null),y=k.useRef({onClick:o,onDragging:a,onPointerDown:d,onPointerUp:f});k.useEffect(()=>{y.current.onClick=o,y.current.onDragging=a,y.current.onPointerDown=d,y.current.onPointerUp=f});const j=k.useContext(jt);if(j===null)throw Error("PanelResizeHandle components must be rendered within a PanelGroup container");const{direction:N,groupId:z,registerResizeHandle:C,startDragging:w,stopDragging:M,panelGroupElement:I}=j,F=Vt(r),[v,P]=k.useState("inactive"),[W,A]=k.useState(!1),[_,B]=k.useState(null),G=k.useRef({state:v});Fe(()=>{G.current.state=v}),k.useEffect(()=>{if(t)B(null);else{const L=C(F);B(()=>L)}},[t,F,C]);const q=(g=s?.coarse)!==null&&g!==void 0?g:15,ee=(b=s?.fine)!==null&&b!==void 0?b:5;k.useEffect(()=>{if(t||_==null)return;const L=x.current;V(L,"Element ref not attached");let K=!1;return Il(F,L,N,{coarse:q,fine:ee},(O,R,U)=>{if(!R){P("inactive");return}switch(O){case"down":{P("drag"),K=!1,V(U,'Expected event to be defined for "down" action'),w(F,U);const{onDragging:T,onPointerDown:H}=y.current;T?.(!0),H?.();break}case"move":{const{state:T}=G.current;K=!0,T!=="drag"&&P("hover"),V(U,'Expected event to be defined for "move" action'),_(U);break}case"up":{P("hover"),M();const{onClick:T,onDragging:H,onPointerUp:Y}=y.current;H?.(!1),Y?.(),K||T?.();break}}})},[q,N,t,ee,C,F,_,w,M]),Ql({disabled:t,handleId:F,resizeHandler:_,panelGroupElement:I});const J={touchAction:"none",userSelect:"none"};return k.createElement(m,{...p,children:n,className:e,id:r,onBlur:()=>{A(!1),i?.()},onFocus:()=>{A(!0),c?.()},ref:x,role:"separator",style:{...J,...u},tabIndex:h,[se.groupDirection]:N,[se.groupId]:z,[se.resizeHandle]:"",[se.resizeHandleActive]:v==="drag"?"pointer":W?"keyboard":void 0,[se.resizeHandleEnabled]:!t,[se.resizeHandleId]:F,[se.resizeHandleState]:v})}is.displayName="PanelResizeHandle";function Yl(n){const 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=ce("flex h-full w-full data-[panel-group-direction=vertical]:flex-col",t),e[4]=t,e[5]=i):i=e[5];let o;return e[6]!==s||e[7]!==r||e[8]!==i?(o=l.jsx(rs,{ref:r,"data-slot":"resizable-panel-group",className:i,...s}),e[6]=s,e[7]=r,e[8]=i,e[9]=o):o=e[9],o}function fn(n){const 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(Un,{"data-slot":"resizable-panel",...t}),e[2]=t,e[3]=s):s=e[3],s}function Zl(n){const 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=ce("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 o;e[6]!==r?(o=r&&l.jsx("div",{className:"bg-border z-10 flex h-4 w-3 items-center justify-center rounded-xs border",children:l.jsx(Ds,{className:"size-2.5"})}),e[6]=r,e[7]=o):o=e[7];let a;return e[8]!==s||e[9]!==i||e[10]!==o?(a=l.jsx(is,{"data-slot":"resizable-handle",className:i,...s,children:o}),e[8]=s,e[9]=i,e[10]=o,e[11]=a):a=e[11],a}function Jl(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 er(n){if(Jl(n))throw new Error(`Invalid block key: ${n||"(empty)"}`)}function tr(n){try{return decodeURIComponent(n)}catch{return n}}function nr(n){return er(n),encodeURIComponent(n)}function sr(n){return`.deco/blocks/${nr(n)}.json`}function Lo(n){return`/${sr(n)}`}const Oo=1e4,lr=3;function Ut(n){return n.trim()?(n.startsWith("/")?n:`/${n}`).replace(/\/+/g,"/"):"/"}function Yt(n){return n.startsWith("/")?n.slice(1):n}function bt(n){return n.trim()?n.startsWith("/")?n:`/${n}`:"/"}function rr(n){const e=bt(n);if(e==="/")return"/";const t=e.split("/").filter(Boolean);return t.pop(),t.length===0?"/":`/${t.join("/")}`}function Ro(n,e){const t=e.replace(/^\/+|\/+$/g,"");return bt(t?`${n==="/"?"":n}/${t}`:n)}function Ao(n,e){return e==="directory"?n:rr(n)}function _o(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 ir(n){const e=Yt(n);return e?e.split("/").filter(Boolean).length:0}function Uo(n,e,t,s=!1){return{files:[...new Set([...n,...t.files])],directories:[...new Set([...e,...t.directories??[]])],truncated:s||!!t.truncated}}function Bo(n,e){return ir(n)>=lr&&!e.has(n)}function Ho(n,e,t=[]){const s=Yt(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 qo(n){const e=Yt(n),t=".deco/blocks/";if(!e.startsWith(t)||!e.endsWith(".json"))return null;const s=e.slice(t.length,-5);return tr(s)}function or(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"}function Ko(n){const e=Ut(n).split("/").filter(Boolean),t=["/"];let s="";for(const r of e.slice(0,-1))s+=`/${r}`,t.push(s);return t}function Wo(n,e=[]){const t={children:[]},s=i=>{const a=Ut(i).split("/").filter(Boolean);let c=t,d="";for(const f of a){d+=`/${f}`;let u=c.children.find(h=>h.name===f);u?u.kind==="file"&&(u.kind="directory"):(u={name:f,path:d,kind:"directory",children:[]},c.children.push(u)),c=u}};for(const i of n){const a=Ut(i).split("/").filter(Boolean);let c=t,d="";a.forEach((f,u)=>{d+=`/${f}`;const h=u===a.length-1;let m=c.children.find(p=>p.name===f);m||(m={name:f,path:d,kind:h?"file":"directory",children:[]},c.children.push(m)),c=m})}for(const i of e)s(bt(i));const r=i=>{i.sort((o,a)=>o.kind!==a.kind?o.kind==="directory"?-1:1:o.name.localeCompare(a.name));for(const o of i)o.children.length>0&&r(o.children)};return r(t.children),t.children}function ar(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(...ar(r.children,e,t+1)));return s}function Go(n){return n.split(`
|
|
2
2
|
`).map(e=>{const t=e.match(/^\d+\t(.*)/);return t?t[1]:e}).join(`
|
|
3
3
|
`)}ol.config({paths:{vs:"https://cdn.jsdelivr.net/npm/monaco-editor@0.52.0/min/vs"}});function cr(n){const e=$.c(11),{value:t,filename:s}=n,[r]=Ns(),i=r.theme==="dark"||r.theme==="system"&&typeof window<"u"&&window.matchMedia("(prefers-color-scheme: dark)").matches;let o;e[0]!==s?(o=or(s),e[0]=s,e[1]=o):o=e[1];const a=i?"vs-dark":"light";let c;e[2]===Symbol.for("react.memo_cache_sentinel")?(c=l.jsx("div",{className:"flex h-full w-full items-center justify-center",children:l.jsx(zs,{size:20,className:"animate-spin text-muted-foreground"})}),e[2]=c):c=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]!==o||e[8]!==a||e[9]!==t?(h=l.jsx(al,{path:s,language:o,value:t,theme:a,loading:c,options:u},s),e[6]=s,e[7]=o,e[8]=a,e[9]=t,e[10]=h):h=e[10],h}function os(n){return n<1024?`${n} B`:n<1024*1024?`${(n/1024).toFixed(1)} KB`:`${(n/(1024*1024)).toFixed(1)} MB`}const dr=new Set(["png","jpg","jpeg","gif","webp","svg","avif"]),ur=new Set(["txt","json","csv","tsv","log","yaml","yml","xml","toml","ts","tsx","js","jsx","py","rb","go","rs","java","sh","sql"]),hn=2*1024*1024;function fr(n,e){const t=n.split(".").pop()?.toLowerCase()??"";return dr.has(t)?"image":t==="pdf"?"pdf":t==="html"||t==="htm"?"html":t==="md"||t==="markdown"?e<=hn?"markdown":"download":ur.has(t)&&e<=hn?"text":"download"}function as(){const n=$.c(2);let e;n[0]===Symbol.for("react.memo_cache_sentinel")?(e=l.jsx(ae,{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(ae,{className:"h-3 w-full"}),l.jsx(ae,{className:"h-3 w-5/6"}),l.jsx(ae,{className:"h-3 w-2/3"})]})]})}),n[1]=t):t=n[1],t}function cs(n){const e=$.c(20),{file:t,note:s}=n;let r;e[0]!==t.filename?(r=l.jsx(Se,{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 o;e[4]!==t.size?(o=os(t.size),e[4]=t.size,e[5]=o):o=e[5];const a=s?` · ${s}`:"";let c;e[6]!==o||e[7]!==a?(c=l.jsxs("span",{className:"text-xs text-muted-foreground",children:[o,a]}),e[6]=o,e[7]=a,e[8]=c):c=e[8];let d;e[9]!==i||e[10]!==c?(d=l.jsxs("div",{className:"flex flex-col items-center gap-0.5",children:[i,c]}),e[9]=i,e[10]=c,e[11]=d):d=e[11];let f;e[12]===Symbol.for("react.memo_cache_sentinel")?(f=l.jsx(Ve,{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 mn(n){const e=$.c(16),{file:t,markdown:s}=n;let r;e[0]!==t.downloadUrl?(r=Q.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 o;e[4]!==r||e[5]!==i?(o={queryKey:r,queryFn:i,staleTime:6e4,retry:!1},e[4]=r,e[5]=i,e[6]=o):o=e[6];const{data:a,isPending:c,isError:d}=ie(o);if(c){let u;return e[7]===Symbol.for("react.memo_cache_sentinel")?(u=l.jsx(as,{}),e[7]=u):u=e[7],u}if(d||a===void 0){let u;return e[8]!==t?(u=l.jsx(cs,{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]!==a||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(Kt,{id:u,text:a})})}),e[10]=a,e[11]=u,e[12]=h):h=e[12],h}let f;return e[13]!==a||e[14]!==t.filename?(f=l.jsx(cr,{value:a,filename:t.filename}),e[13]=a,e[14]=t.filename,e[15]=f):f=e[15],f}function ds(n){const e=$.c(15),{file:t}=n;switch(fr(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(mn,{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(mn,{file:t,markdown:!1}),e[11]=t,e[12]=r):r=e[12],r}default:{let r;return e[13]!==t?(r=l.jsx(cs,{file:t}),e[13]=t,e[14]=r):r=e[14],r}}}function hr(n){const e=$.c(40),{readUrl:t,editor:s,downloadName:r,trailing:i}=n;let o;e[0]!==t?(o=new URL(t,window.location.origin).toString(),e[0]=t,e[1]=o):o=e[1];const a=o;let c;e[2]!==s?(c=s.deckDetected&&l.jsxs(ye,{children:[l.jsx(ve,{asChild:!0,children:l.jsx(Z,{variant:s.railOpen?"secondary":"ghost",size:"icon","aria-label":s.railOpen?"Hide slide list":"Show slide list",onClick:()=>s.setRailOpen(!s.railOpen),children:l.jsx(cl,{size:14})})}),l.jsx(we,{side:"bottom",children:s.railOpen?"Hide slide list":"Show slide list"})]}),e[2]=s,e[3]=c):c=e[3];let d;e[4]!==a?(d=()=>window.open(a,"_blank","noopener"),e[4]=a,e[5]=d):d=e[5];let f;e[6]!==a?(f=l.jsx("span",{className:"truncate",children:a}),e[6]=a,e[7]=f):f=e[7];let u;e[8]!==a||e[9]!==d||e[10]!==f?(u=l.jsx("button",{type:"button",onClick:d,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:a,children:f}),e[8]=a,e[9]=d,e[10]=f,e[11]=u):u=e[11];let h;e[12]!==s.agentUpdated||e[13]!==s.reload?(h=s.agentUpdated&&l.jsxs(ye,{children:[l.jsx(ve,{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}),"Agent updated — reload"]})}),l.jsx(we,{side:"bottom",children:"The agent rewrote this deck while you were editing. Reloading discards unsaved differences."})]}),e[12]=s.agentUpdated,e[13]=s.reload,e[14]=h):h=e[14];let m;e[15]!==s.saving?(m=s.saving&&l.jsx("span",{className:"px-1 text-xs text-muted-foreground",children:"Saving…"}),e[15]=s.saving,e[16]=m):m=e[16];let p;e[17]!==s?(p=s.deckDetected&&s.writable&&l.jsxs(ye,{children:[l.jsx(ve,{asChild:!0,children:l.jsx(Z,{variant:s.editMode?"secondary":"ghost",size:"icon","aria-label":s.editMode?"Done editing":"Edit inline",className:ce(s.editMode&&"text-primary"),onClick:()=>s.setEditMode(!s.editMode),children:l.jsx(Ts,{size:14})})}),l.jsx(we,{side:"bottom",children:s.editMode?"Done editing":"Edit inline (text, reorder, delete)"})]}),e[17]=s,e[18]=p):p=e[18];let g;e[19]!==a||e[20]!==r||e[21]!==s.deckDetected?(g=s.deckDetected?l.jsxs(tt,{children:[l.jsx(nt,{asChild:!0,children:l.jsx(Z,{variant:"ghost",size:"icon","aria-label":"Download",children:l.jsx(Ve,{size:14})})}),l.jsxs(st,{align:"end",children:[l.jsxs(be,{onClick:()=>window.open(`${a}#print`,"_blank","noopener"),children:[l.jsx(Fs,{size:14}),"Export as PDF"]}),l.jsx(be,{asChild:!0,children:l.jsxs("a",{href:a,download:r,children:[l.jsx(Ms,{size:14}),"Download HTML"]})})]})]}):l.jsxs(ye,{children:[l.jsx(ve,{asChild:!0,children:l.jsx(Z,{variant:"ghost",size:"icon","aria-label":"Download",asChild:!0,children:l.jsx("a",{href:a,download:r,children:l.jsx(Ve,{size:14})})})}),l.jsx(we,{side:"bottom",children:"Download"})]}),e[19]=a,e[20]=r,e[21]=s.deckDetected,e[22]=g):g=e[22];let b;e[23]!==a?(b=()=>window.open(a,"_blank","noopener"),e[23]=a,e[24]=b):b=e[24];let x;e[25]===Symbol.for("react.memo_cache_sentinel")?(x=l.jsx(In,{size:14}),e[25]=x):x=e[25];let y;e[26]!==b?(y=l.jsx(ve,{asChild:!0,children:l.jsx(Z,{variant:"ghost",size:"icon","aria-label":"Open in new tab",onClick:b,children:x})}),e[26]=b,e[27]=y):y=e[27];let j;e[28]===Symbol.for("react.memo_cache_sentinel")?(j=l.jsx(we,{side:"bottom",children:"Open in new tab"}),e[28]=j):j=e[28];let N;e[29]!==y?(N=l.jsxs(ye,{children:[y,j]}),e[29]=y,e[30]=N):N=e[30];let z;return e[31]!==N||e[32]!==c||e[33]!==u||e[34]!==h||e[35]!==m||e[36]!==p||e[37]!==g||e[38]!==i?(z=l.jsxs("div",{className:"flex h-9 shrink-0 items-center gap-1 border-b border-border/60 px-2",children:[c,u,h,m,p,g,N,i]}),e[31]=N,e[32]=c,e[33]=u,e[34]=h,e[35]=m,e[36]=p,e[37]=g,e[38]=i,e[39]=z):z=e[39],z}const Re=1;function mr(n){if(typeof n!="object"||n===null||n.v!==Re||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 ze extends Error{constructor(e,t){super(e),this.code=t,this.name="DeckOpError"}code}function us(n){return[...n.children].filter(e=>!/^(TEMPLATE|SCRIPT|STYLE)$/.test(e.tagName))}function pr(n){const t=new DOMParser().parseFromString(n,"text/html").querySelector("deck-viewer");return t?us(t).length:null}function xr(n,e){const t=new DOMParser().parseFromString(n,"text/html"),s=t.querySelector("deck-viewer");if(!s)throw new ze("no <deck-viewer> element in source","no-viewer");const r=us(s),i=e.kind==="move"?e.from:e.at,o=r[i];if(!o)throw new ze(`slide index ${i} out of range (${r.length})`,"stale-index");switch(e.kind){case"remove":{if(r.length<=1)throw new ze("cannot remove the last slide","bad-op");o.remove();break}case"duplicate":{const c=o.cloneNode(!0);c.removeAttribute("id");for(const d of c.querySelectorAll("[id]"))d.removeAttribute("id");o.after(c);break}case"move":{if(e.to<0||e.to>=r.length)throw new ze(`move target ${e.to} out of range`,"stale-index");if(e.to!==e.from){const c=e.to<e.from?r[e.to]:r[e.to].nextSibling;s.insertBefore(o,c)}break}case"set-attr":{if(!/^[a-zA-Z][\w-]*$/.test(e.name))throw new ze(`invalid attribute name: ${e.name}`,"bad-op");o.setAttribute(e.name,e.value);break}case"remove-attr":{o.removeAttribute(e.name);break}case"replace":{const d=new DOMParser().parseFromString(e.html,"text/html").body.firstElementChild;if(!d)throw new ze("replace html has no root element","bad-op");o.replaceWith(t.importNode(d,!0));break}default:throw new ze(`unknown op kind: ${e.kind}`,"bad-op")}return`${n.trimStart().toLowerCase().startsWith("<!doctype")?`<!DOCTYPE html>
|
|
4
4
|
`:""}${t.documentElement.outerHTML}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as s,aT as L,aR as B,j as d,b9 as T,aO as x,aS as E,b7 as U,aU as C,b8 as _,ba as q,aQ as w,bI as K,bH as V}from"./index-
|
|
1
|
+
import{r as s,aT as L,aR as B,j as d,b9 as T,aO as x,aS as E,b7 as U,aU as C,b8 as _,ba as q,aQ as w,bI as K,bH as V}from"./index-DagCLY74.js";var I="Radio",[H,P]=w(I),[z,Q]=H(I),k=s.forwardRef((a,c)=>{const{__scopeRadio:o,name:n,checked:e=!1,required:r,disabled:t,value:l="on",onCheck:f,form:R,...v}=a,[p,m]=s.useState(null),i=E(c,h=>m(h)),u=s.useRef(!1),b=p?R||!!p.closest("form"):!0;return d.jsxs(z,{scope:o,checked:e,disabled:t,children:[d.jsx(x.button,{type:"button",role:"radio","aria-checked":e,"data-state":A(e),"data-disabled":t?"":void 0,disabled:t,value:l,...v,ref:i,onClick:C(a.onClick,h=>{e||f?.(),b&&(u.current=h.isPropagationStopped(),u.current||h.stopPropagation())})}),b&&d.jsx(G,{control:p,bubbles:!u.current,name:n,value:l,checked:e,required:r,disabled:t,form:R,style:{transform:"translateX(-100%)"}})]})});k.displayName=I;var S="RadioIndicator",g=s.forwardRef((a,c)=>{const{__scopeRadio:o,forceMount:n,...e}=a,r=Q(S,o);return d.jsx(q,{present:n||r.checked,children:d.jsx(x.span,{"data-state":A(r.checked),"data-disabled":r.disabled?"":void 0,...e,ref:c})})});g.displayName=S;var W="RadioBubbleInput",G=s.forwardRef(({__scopeRadio:a,control:c,checked:o,bubbles:n=!0,...e},r)=>{const t=s.useRef(null),l=E(t,r),f=K(o),R=V(c);return s.useEffect(()=>{const v=t.current;if(!v)return;const p=window.HTMLInputElement.prototype,i=Object.getOwnPropertyDescriptor(p,"checked").set;if(f!==o&&i){const u=new Event("click",{bubbles:n});i.call(v,o),v.dispatchEvent(u)}},[f,o,n]),d.jsx(x.input,{type:"radio","aria-hidden":!0,defaultChecked:o,...e,tabIndex:-1,ref:l,style:{...e.style,...R,position:"absolute",pointerEvents:"none",opacity:0,margin:0}})});G.displayName=W;function A(a){return a?"checked":"unchecked"}var X=["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"],y="RadioGroup",[Y]=w(y,[_,P]),j=_(),N=P(),[J,Z]=Y(y),D=s.forwardRef((a,c)=>{const{__scopeRadioGroup:o,name:n,defaultValue:e,value:r,required:t=!1,disabled:l=!1,orientation:f,dir:R,loop:v=!0,onValueChange:p,...m}=a,i=j(o),u=L(R),[b,h]=B({prop:r,defaultProp:e??null,onChange:p,caller:y});return d.jsx(J,{scope:o,name:n,required:t,disabled:l,value:b,onValueChange:h,children:d.jsx(T,{asChild:!0,...i,orientation:f,dir:u,loop:v,children:d.jsx(x.div,{role:"radiogroup","aria-required":t,"aria-orientation":f,"data-disabled":l?"":void 0,dir:u,...m,ref:c})})})});D.displayName=y;var M="RadioGroupItem",O=s.forwardRef((a,c)=>{const{__scopeRadioGroup:o,disabled:n,...e}=a,r=Z(M,o),t=r.disabled||n,l=j(o),f=N(o),R=s.useRef(null),v=E(c,R),p=r.value===e.value,m=s.useRef(!1);return s.useEffect(()=>{const i=b=>{X.includes(b.key)&&(m.current=!0)},u=()=>m.current=!1;return document.addEventListener("keydown",i),document.addEventListener("keyup",u),()=>{document.removeEventListener("keydown",i),document.removeEventListener("keyup",u)}},[]),d.jsx(U,{asChild:!0,...l,focusable:!t,active:p,children:d.jsx(k,{disabled:t,required:r.required,checked:p,...f,...e,name:r.name,ref:v,onCheck:()=>r.onValueChange(e.value),onKeyDown:C(i=>{i.key==="Enter"&&i.preventDefault()}),onFocus:C(e.onFocus,()=>{m.current&&R.current?.click()})})})});O.displayName=M;var $="RadioGroupIndicator",F=s.forwardRef((a,c)=>{const{__scopeRadioGroup:o,...n}=a,e=N(o);return d.jsx(g,{...e,...n,ref:c})});F.displayName=$;var oe=D,re=O,ae=F;export{re as I,oe as R,ae as a};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{c as oe,r as q,b as yt,C as Be,j as t,B as Z,t as Se,l as de,K as it,m as wt,x as rs,u as os,p as xt,E as ls}from"./index-
|
|
1
|
+
import{c as oe,r as q,b as yt,C as Be,j as t,B as Z,t as Se,l as de,K as it,m as wt,x as rs,u as os,p as xt,E as ls}from"./index-DagCLY74.js";import{S as as}from"./search-input-BRjcOvpB.js";import{P as De}from"./index---n_MuMs.js";import{E as St}from"./empty-state-PVe00vt9.js";import{R as ns}from"./require-capability-DYblqiPi.js";import{N as Tt,A as is,Q as cs,U as Mt,V as Ze,W as At,X as ft,Y as ds,Z as _t,_ as Pt,L as ms,$ as us,a0 as xs,a1 as pt}from"./automation-runs-DICSuD3X.js";import{u as vt}from"./use-connection-CvMzd-d2.js";import{g as Vt}from"./connection-slug-eyAPH6o3.js";import{B as rt}from"./badge-DFucd4ZI.js";import{b as ct,P as dt,a as mt}from"./popover-Ca3OFWgd.js";import{b as et,T as tt,a as st}from"./tooltip-UAPe-YqR.js";import{i as ht}from"./Check-BeKF7ryP.js";import{a as Xe}from"./Copy01-CI9b1UdY.js";import{n as Dt}from"./Globe01-D7_tFNDx.js";import{i as Ut}from"./FilterLines-Cxku2FA2.js";import{i as fs}from"./Key01-BNLFmOh7.js";import{i as ps}from"./Play-BXLvheWQ.js";import{aq as hs,W as gs}from"./agent-icon-CYozvZkp.js";import{M as Lt}from"./monaco-editor-BAf0t1TY.js";import{u as js}from"./use-members-B4mBOyhx.js";import{u as vs}from"./use-mcp-client-COWES9BB.js";import{u as Ns}from"./use-virtual-mcp-iDzufNLi.js";import{S as bs,W as ys}from"./constants-D_FQAPnt.js";import{n as Ge}from"./Tool02-BP9ihXR0.js";import{c as ws}from"./SwitchHorizontal01-DU-_bgmk.js";import{s as Ss}from"./Plus-DxOiY_eh.js";import{s as Is}from"./Trash01-BhFFuLC_.js";import{I as Qe}from"./input-BBLoJ_rD.js";import{a as ot,b as lt,c as at,d as $e,S as nt}from"./select-DTS49HHU.js";import{t as qt}from"./ChevronDown-B8tQZIrX.js";import{s as Cs}from"./Stars02-BhJkKjOa.js";import{C as ks}from"./calendar-CYm2qWyM.js";import{a as Ts}from"./UserPlus01-Bs1eAsaN.js";import{T as Ms}from"./textarea-Ca5fCVqp.js";import{C as Kt}from"./collection-tabs-IHaOKYcu.js";import{S as _s}from"./switch-pCnkRDbX.js";import{L as Ds}from"./label-BP0To6VG.js";import{I as Ke}from"./integration-icon-C0eJpgC9.js";import{A as Bt}from"./avatar-B6jcu2uy.js";import{A as Ls,a as Fs,b as Rs}from"./alert-K9Z4DfYF.js";import{C as Ht}from"./card-vhULQda7.js";import{K as Me}from"./monitoring-stats-row-CSBQpei0.js";import{u as Jt}from"./studio-tools-C2NgOOtG.js";import{u as $s}from"./useSuspenseInfiniteQuery-CIZCOuoc.js";import{o as zs,m as Os,p as Es,q as As}from"./sidebar-DkdqXyM3.js";import{T as Fe,a as ut,b as Qt,c as Gt,d as Wt,e as ae}from"./table-DDhQjHuE.js";import{n as Ps}from"./ChevronUp-_KdOO2nH.js";import{u as Vs}from"./use-infinite-scroll-BEf1mEYL.js";import{c as Us,b as qs}from"./use-automations-CKtvEvHJ.js";import"./SearchMd-m1D6VnPd.js";import"./use-capability-BhgsQeW9.js";import"./access-gate-B-X_WW-W.js";import"./capability-load-error-L_kyY8y5.js";import"./useInfiniteQuery-CIH9os1B.js";import"./use-clock-tick-ovoAqz8x.js";import"./AlertCircle-D2e1IbQ9.js";import"./CheckCircle-DyouInVj.js";import"./Circle-NxIvVe3Q.js";import"./XCircle-D5_mKo5Q.js";import"./checkbox-D3GWRkA8.js";import"./command-DdYpl-hF.js";import"./index-BNG8dxUj.js";import"./dialog-CEdNabKi.js";import"./X-ttpevcf5.js";import"./Stars01-cEC-ipPW.js";import"./ChevronRight-DQSOBVvN.js";import"./format-time-BnbuEtat.js";import"./differenceInSeconds-NQ4PDo0z.js";import"./use-copy-DvQrS05Z.js";import"./file-type-icon-XEWyyoul.js";import"./ZoomOut-Sz-YfsWa.js";import"./use-mobile-frKQAcEb.js";import"./tab-id-bb-jjgGv.js";import"./index-BHX9Y_tK.js";import"./chat-context-DGz6N-ld.js";import"./autosend-BEmLSGjV.js";import"./hooks-CBDw1Ecf.js";import"./decopilot-sse-pool-DVF0brOv.js";import"./backoff-CrEUbyZT.js";import"./delay-CnY5UFtP.js";import"./use-ai-providers-BS6hitcO.js";import"./use-decopilot-events-ks1hTRMq.js";import"./use-organization-settings-DCSvytno.js";import"./Eye-DXEAZ3hD.js";import"./Star01-DbkPcgcO.js";import"./XClose-DKgczF-K.js";import"./ZapSquare-NBl-MsGT.js";import"./Tool01-D3NLtNAy.js";import"./Monitor01-B04zhE1T.js";import"./Upload01-C-B7_O9R.js";import"./shell-layout-DK-k4xlt.js";import"./Users03-CM5WR9J0.js";import"./SearchLg-C90ngNcG.js";import"./Zap-DFeLoTKw.js";import"./alert-dialog-D64TX1Dr.js";import"./required-auth-layout-D-EPHIaz.js";import"./use-org-sso-DRBTUgR7.js";import"./LinkExternal01-BryNA8iO.js";import"./ArrowUpRight-CFaWue5d.js";import"./Palette-Bex9htb6.js";import"./use-navigate-to-agent-CbS47Ko_.js";import"./reusable-new-chat-CouMjkYR.js";import"./AreaChart-BAThX5Fm.js";import"./form-D3uYUa7k.js";import"./use-collections-D1NOVf8w.js";import"./ArrowUp-BU-Z1jJQ.js";import"./Settings02-D429w86e.js";import"./TrendUp01-usXQKgTf.js";import"./DotsVertical-DIdj_9VP.js";import"./Flag01-CBmw0V-u.js";import"./Globe04-CCHKXdFz.js";import"./HardDrive-NYx78rMM.js";import"./LayoutLeft-NpY_J3Yc.js";import"./List-D0M5GuPZ.js";import"./Sun-ph1Yzoq6.js";import"./Package-CO7Xgr7_.js";import"./Shield01-onTg52oR.js";import"./User01-CwQwHUho.js";import"./Users01-D3-YPLiO.js";import"./index-BSGeg-97.js";import"./use-org-auth-client-DfrzzoWr.js";import"./auth-Caj7GfBa.js";const Nt={maxJsonRenderSize:5e4,pageSize:50,streamingRefetchInterval:3e3};function Re(s){return s.filter(e=>e.key.trim()).map(e=>{const r=encodeURIComponent(e.key.trim()),o=encodeURIComponent(e.value||"");return`${r}:${e.operator}:${o}`}).join(",")}function Ks(s){return s?s.split(",").map(e=>{const[r,o,...a]=e.split(":");return{key:decodeURIComponent(r||""),operator:o||"eq",value:decodeURIComponent(a.join(":")||"")}}):[]}function Ye(s){return s.filter(e=>e.key.trim()).map(e=>{switch(e.operator){case"eq":return`${e.key}=${e.value}`;case"contains":return`${e.key}~${e.value}`;case"exists":return`${e.key}?`;case"in":return`${e.key}@${e.value}`}}).join(`
|
|
2
2
|
`)}function Ft(s){return s.trim()?s.split(`
|
|
3
3
|
`).map(e=>e.trim()).filter(e=>e.length>0).map(e=>{if(e.endsWith("?"))return{key:e.slice(0,-1),operator:"exists",value:""};if(e.includes("=")){const[r,...o]=e.split("=");return{key:r||"",operator:"eq",value:o.join("=")}}if(e.includes("~")){const[r,...o]=e.split("~");return{key:r||"",operator:"contains",value:o.join("~")}}if(e.includes("@")){const[r,...o]=e.split("@");return{key:r||"",operator:"in",value:o.join("@")}}return{key:e,operator:"exists",value:""}}):[]}function Bs(s){const e={},r={},o=[],a={};for(const l of s)if(l.key.trim())switch(l.operator){case"eq":l.value&&(e[l.key]=l.value);break;case"contains":l.value&&(r[l.key]=`%${l.value}%`);break;case"exists":o.push(l.key);break;case"in":l.value&&(a[l.key]=l.value);break}return{properties:Object.keys(e).length>0?e:void 0,propertyPatterns:Object.keys(r).length>0?r:void 0,propertyKeys:o.length>0?o:void 0,propertyInValues:Object.keys(a).length>0?a:void 0}}function Rt(s){if(!s)return{content:"null",isTruncated:!1,originalSize:4};if(typeof s._decocms_truncated=="string")return{content:s._decocms_truncated,isTruncated:!0,originalSize:s._decocms_truncated.length};const e=JSON.stringify(s,null,2),r=e.length;return r<=Nt.maxJsonRenderSize?{content:e,isTruncated:!1,originalSize:r}:{content:e.slice(0,Nt.maxJsonRenderSize)+`
|
|
4
4
|
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/index-B6dQ2ALc.js","assets/index-DagCLY74.js","assets/index-D4T-PPFj.css","assets/ArrowUp-BU-Z1jJQ.js","assets/chat-context-DGz6N-ld.js","assets/autosend-BEmLSGjV.js","assets/hooks-CBDw1Ecf.js","assets/use-mcp-client-COWES9BB.js","assets/constants-D_FQAPnt.js","assets/auth-Caj7GfBa.js","assets/decopilot-sse-pool-DVF0brOv.js","assets/backoff-CrEUbyZT.js","assets/delay-CnY5UFtP.js","assets/studio-tools-C2NgOOtG.js","assets/use-virtual-mcp-iDzufNLi.js","assets/use-collections-D1NOVf8w.js","assets/use-ai-providers-BS6hitcO.js","assets/use-decopilot-events-ks1hTRMq.js","assets/tab-id-bb-jjgGv.js","assets/use-organization-settings-DCSvytno.js","assets/automation-runs-DICSuD3X.js","assets/select-DTS49HHU.js","assets/tooltip-UAPe-YqR.js","assets/Check-BeKF7ryP.js","assets/ChevronDown-B8tQZIrX.js","assets/ChevronUp-_KdOO2nH.js","assets/useInfiniteQuery-CIH9os1B.js","assets/use-infinite-scroll-BEf1mEYL.js","assets/use-connection-CvMzd-d2.js","assets/card-vhULQda7.js","assets/sidebar-DkdqXyM3.js","assets/LayoutLeft-NpY_J3Yc.js","assets/use-mobile-frKQAcEb.js","assets/X-ttpevcf5.js","assets/table-DDhQjHuE.js","assets/empty-state-PVe00vt9.js","assets/use-members-B4mBOyhx.js","assets/use-org-auth-client-DfrzzoWr.js","assets/use-clock-tick-ovoAqz8x.js","assets/AlertCircle-D2e1IbQ9.js","assets/CheckCircle-DyouInVj.js","assets/Circle-NxIvVe3Q.js","assets/agent-icon-CYozvZkp.js","assets/UserPlus01-Bs1eAsaN.js","assets/Tool01-D3NLtNAy.js","assets/Settings02-D429w86e.js","assets/Tool02-BP9ihXR0.js","assets/XCircle-D5_mKo5Q.js","assets/ArrowUpRight-CFaWue5d.js","assets/TrendUp01-usXQKgTf.js","assets/ZapSquare-NBl-MsGT.js","assets/Users03-CM5WR9J0.js","assets/ChevronRight-DQSOBVvN.js","assets/Stars02-BhJkKjOa.js","assets/Copy01-CI9b1UdY.js","assets/ZoomOut-Sz-YfsWa.js","assets/DotsVertical-DIdj_9VP.js","assets/Globe01-D7_tFNDx.js","assets/Eye-DXEAZ3hD.js","assets/FilterLines-Cxku2FA2.js","assets/Flag01-CBmw0V-u.js","assets/Star01-DbkPcgcO.js","assets/Globe04-CCHKXdFz.js","assets/SwitchHorizontal01-DU-_bgmk.js","assets/HardDrive-NYx78rMM.js","assets/Key01-BNLFmOh7.js","assets/LinkExternal01-BryNA8iO.js","assets/List-D0M5GuPZ.js","assets/Monitor01-B04zhE1T.js","assets/Sun-ph1Yzoq6.js","assets/Package-CO7Xgr7_.js","assets/Palette-Bex9htb6.js","assets/Play-BXLvheWQ.js","assets/Plus-DxOiY_eh.js","assets/SearchLg-C90ngNcG.js","assets/SearchMd-m1D6VnPd.js","assets/Shield01-onTg52oR.js","assets/Stars01-cEC-ipPW.js","assets/Trash01-BhFFuLC_.js","assets/Upload01-C-B7_O9R.js","assets/User01-CwQwHUho.js","assets/Users01-D3-YPLiO.js","assets/XClose-DKgczF-K.js","assets/Zap-DFeLoTKw.js","assets/use-automations-CKtvEvHJ.js","assets/useSuspenseInfiniteQuery-CIZCOuoc.js","assets/badge-DFucd4ZI.js","assets/checkbox-D3GWRkA8.js","assets/command-DdYpl-hF.js","assets/index-BNG8dxUj.js","assets/dialog-CEdNabKi.js","assets/popover-Ca3OFWgd.js","assets/avatar-B6jcu2uy.js","assets/format-time-BnbuEtat.js","assets/differenceInSeconds-NQ4PDo0z.js","assets/use-copy-DvQrS05Z.js","assets/file-type-icon-XEWyyoul.js","assets/monaco-editor-BAf0t1TY.js","assets/index-BSGeg-97.js","assets/index-BHX9Y_tK.js","assets/shell-layout-DK-k4xlt.js","assets/alert-dialog-D64TX1Dr.js","assets/required-auth-layout-D-EPHIaz.js","assets/use-org-sso-DRBTUgR7.js","assets/integration-icon-C0eJpgC9.js","assets/use-navigate-to-agent-CbS47Ko_.js","assets/reusable-new-chat-CouMjkYR.js","assets/AreaChart-BAThX5Fm.js","assets/form-D3uYUa7k.js","assets/label-BP0To6VG.js","assets/input-BBLoJ_rD.js","assets/drawer-DJy6v-hW.js","assets/collection-search-BkozLvuu.js","assets/tabs-DYlEgz67.js","assets/toggle-group-DUka6U62.js","assets/use-deco-credits-1V1uGJDu.js","assets/connection-slug-eyAPH6o3.js","assets/connection-card-DGB5kRs6.js","assets/use-registry-connections-Cnp07PwB.js","assets/extract-connection-data-zSZwdTE6.js","assets/collection-tabs-IHaOKYcu.js","assets/textarea-Ca5fCVqp.js","assets/connection-form-helpers-BlWWl1X3.js","assets/authenticate-and-persist-oauth-BepIZ0Zn.js","assets/mcp-oauth-D6yzbvBD.js","assets/connect-desktop-dialog-B85UqNk0.js","assets/select-model-mIfpn6-t.js","assets/skeleton-DQt9Jo4R.js","assets/ai-providers-logos-DD3qZ33J.js","assets/settings-section-NRl5pd54.js","assets/dropdown-menu-DNxglwfo.js","assets/index-Ci5qa3_j.js","assets/toolbar-D4a_v80C.js","assets/use-debounced-value-DN8U_bzY.js","assets/question-004-sINsf4GQ.js","assets/use-status-sounds-BMQAqgzk.js","assets/use-mcp-tools-BuvDYc7H.js","assets/use-capability-BhgsQeW9.js","assets/tools-list-DC6ietE3.js","assets/switch-pCnkRDbX.js","assets/use-debounced-autosave-Bew81fTQ.js","assets/index---n_MuMs.js","assets/search-input-BRjcOvpB.js","assets/github-repo-picker-B-BbeN-y.js","assets/github-installations-ChFezl8I.js","assets/use-secrets-FPS-k0pw.js","assets/formatDistanceToNow-Cb2QZZJn.js","assets/companions-core-DR2tRUTt.js","assets/toolbar-icon-button-CU32G5kc.js","assets/calendar-CYm2qWyM.js","assets/use-file-configs-CAv3D-tH.js","assets/automation-list-row-QZ36RlHg.js","assets/index-DDGTF8rc.css"])))=>i.map(i=>d[i]);
|
|
2
|
+
import{c as O,l as w,j as s,r as z,C as Ft,n as Bt,m as as,d as jt,K as Rt,B as Ue,aX as rs,i as is}from"./index-DagCLY74.js";import{g as re}from"./get-initials-D-f_fDFw.js";import{A as ie}from"./avatar-B6jcu2uy.js";import{d as Mt,i as os,t as cs,a as Ke,s as ds,b as Pt,e as ms,c as us}from"./UserPlus01-Bs1eAsaN.js";import{i as fs}from"./List-D0M5GuPZ.js";import{s as Dt}from"./Plus-DxOiY_eh.js";import{e as xs}from"./constants-D_FQAPnt.js";import{u as Lt}from"./use-members-B4mBOyhx.js";import{u as Ut}from"./studio-tools-C2NgOOtG.js";import{t as ps,S as Qe}from"./decopilot-sse-pool-DVF0brOv.js";import{u as gs}from"./use-decopilot-events-ks1hTRMq.js";import{a as hs}from"./format-time-BnbuEtat.js";import{i as qt}from"./AlertCircle-D2e1IbQ9.js";import{i as Gt}from"./CheckCircle-DyouInVj.js";import{i as bs}from"./Circle-NxIvVe3Q.js";import{s as js}from"./Eye-DXEAZ3hD.js";import{a as Ns,d as ys,e as vs}from"./dialog-CEdNabKi.js";import{a as rt,c as it,d as qe,D as ot}from"./dropdown-menu-DNxglwfo.js";import{P as Nt,a as yt,b as vt}from"./popover-Ca3OFWgd.js";import{b as Kt,C as Qt,a as ue,e as ct,d as Yt,c as Ht}from"./command-DdYpl-hF.js";import{C as Ss}from"./calendar-CYm2qWyM.js";import{i as Cs}from"./ChevronRight-DQSOBVvN.js";import{s as St}from"./User01-CwQwHUho.js";import{i as It}from"./X-ttpevcf5.js";import{g as _s,b as Ds,e as ws,f as ks,a as Is,D as Ts}from"./drawer-DJy6v-hW.js";import{t as wt}from"./ChevronDown-B8tQZIrX.js";import{i as Vt}from"./FilterLines-Cxku2FA2.js";import{s as zs}from"./Flag01-CBmw0V-u.js";import{u as As}from"./shell-layout-DK-k4xlt.js";function me(t){const e=O.c(8),{size:l,className:a}=t,n=l===void 0?16:l;let r;e[0]!==n?(r={width:n,height:n},e[0]=n,e[1]=r):r=e[1];let o;e[2]!==a?(o=w("shrink-0 rounded-full object-cover",a),e[2]=a,e[3]=o):o=e[3];let c;return e[4]!==n||e[5]!==r||e[6]!==o?(c=s.jsx("img",{src:xs,alt:"Super Agent",width:n,height:n,style:r,className:o}),e[4]=n,e[5]=r,e[6]=o,e[7]=c):c=e[7],c}const Tt=()=>0;function Es(t){const{orgSlug:e,enabled:l=!0,onUpdate:a}=t,n=z.useRef(a);n.current=a;const r=z.useRef(null),o=z.useRef(l),c=z.useRef(e);(!r.current||o.current!==l||c.current!==e)&&(o.current=l,c.current=e,r.current=f=>{if(!l||!e)return()=>{};const m=p=>{let i;try{i=JSON.parse(p.data)}catch{return}i.data&&n.current(i.data),f()};return ps.subscribe(e,m)}),z.useSyncExternalStore(r.current,Tt,Tt)}function $s(){const t=O.c(25),{org:e,locator:l}=Ft(),a=Ut(),n=Bt();let r;t[0]!==l?(r=Rt.taskBoardItems(l),t[0]=l,t[1]=r):r=t[1];const o=r;let c;t[2]!==a?(c=async()=>(await a.call("TASK_BOARD_ITEM_LIST",{})).items,t[2]=a,t[3]=c):c=t[3];let d;t[4]!==o||t[5]!==c?(d={queryKey:o,queryFn:c},t[4]=o,t[5]=c,t[6]=d):d=t[6];const f=as(d);let m;t[7]!==n||t[8]!==o?(m=g=>{n.setQueryData(o,N=>{const b=N??[],j=g;return b.some(y=>y.id===j.id)?b.map(y=>y.id===j.id?j:y):[j,...b]})},t[7]=n,t[8]=o,t[9]=m):m=t[9];let p;t[10]!==e.slug||t[11]!==m?(p={orgSlug:e.slug,onUpdate:m},t[10]=e.slug,t[11]=m,t[12]=p):p=t[12],Es(p);let i;t[13]!==n||t[14]!==o?(i=g=>{const N=g.subject,b=g.data.status;n.setQueryData(o,j=>j?.map(y=>y.threads.some(S=>S.threadId===N)?{...y,threads:y.threads.map(S=>S.threadId===N?{...S,status:b}:S)}:y))},t[13]=n,t[14]=o,t[15]=i):i=t[15];let u;t[16]!==e.slug||t[17]!==i?(u={orgSlug:e.slug,onTaskStatus:i},t[16]=e.slug,t[17]=i,t[18]=u):u=t[18],gs(u);let x;t[19]!==f.data?(x=f.data??[],t[19]=f.data,t[20]=x):x=t[20];let h;return t[21]!==f.error||t[22]!==f.isLoading||t[23]!==x?(h={items:x,isLoading:f.isLoading,error:f.error},t[21]=f.error,t[22]=f.isLoading,t[23]=x,t[24]=h):h=t[24],h}function Os(){const t=O.c(30),{locator:e}=Ft(),l=Ut(),a=Bt();let n;t[0]!==e?(n=Rt.taskBoardItems(e),t[0]=e,t[1]=n):n=t[1];const r=n;let o;t[2]!==a||t[3]!==r?(o=()=>a.invalidateQueries({queryKey:r}),t[2]=a,t[3]=r,t[4]=o):o=t[4];const c=o;let d;t[5]!==l?(d=y=>l.call("TASK_BOARD_ITEM_CREATE",y),t[5]=l,t[6]=d):d=t[6];let f;t[7]!==c||t[8]!==d?(f={mutationFn:d,onSuccess:c},t[7]=c,t[8]=d,t[9]=f):f=t[9];const m=jt(f);let p;t[10]!==l?(p=y=>l.call("TASK_BOARD_ITEM_UPDATE",y),t[10]=l,t[11]=p):p=t[11];let i,u;t[12]!==a||t[13]!==r?(i=async y=>{await a.cancelQueries({queryKey:r});const S=a.getQueryData(r);return a.setQueryData(r,D=>D?.map(A=>A.id===y.id?{...A,...y}:A)),{previous:S}},u=(y,S,D)=>{D?.previous&&a.setQueryData(r,D.previous)},t[12]=a,t[13]=r,t[14]=i,t[15]=u):(i=t[14],u=t[15]);let x;t[16]!==c||t[17]!==p||t[18]!==i||t[19]!==u?(x={mutationFn:p,onMutate:i,onError:u,onSettled:c},t[16]=c,t[17]=p,t[18]=i,t[19]=u,t[20]=x):x=t[20];const h=jt(x);let g;t[21]!==l?(g=y=>l.call("TASK_BOARD_ITEM_DELETE",{id:y}),t[21]=l,t[22]=g):g=t[22];let N;t[23]!==c||t[24]!==g?(N={mutationFn:g,onSuccess:c},t[23]=c,t[24]=g,t[25]=N):N=t[25];const b=jt(N);let j;return t[26]!==m||t[27]!==b||t[28]!==h?(j={create:m,update:h,remove:b},t[26]=m,t[27]=b,t[28]=h,t[29]=j):j=t[29],j}function Ct(t){return t.threads.some(e=>e.status==="requires_action")}function Xt(t){return t.threads[0]}const Jt=["triage","todo","in_progress","in_review","done"],ae={triage:{label:"Backlog",icon:qt,iconClassName:"text-muted-foreground"},todo:{label:"To Do",icon:bs,iconClassName:"text-muted-foreground"},in_progress:{label:"In Progress",icon:Mt,iconClassName:"text-blue-500"},in_review:{label:"In Review",icon:js,iconClassName:"text-amber-500"},done:{label:"Done",icon:Gt,iconClassName:"text-green-600"}},Wt=["none","low","medium","high","urgent"],oe={none:{label:"No priority",flagClassName:"text-muted-foreground",dotClassName:"border border-muted-foreground/50"},low:{label:"Low",flagClassName:"text-muted-foreground",dotClassName:"bg-muted-foreground/40"},medium:{label:"Medium",flagClassName:"text-blue-500",dotClassName:"bg-blue-500"},high:{label:"High",flagClassName:"text-orange-500",dotClassName:"bg-orange-500"},urgent:{label:"Urgent",flagClassName:"text-red-500",dotClassName:"bg-red-500"}};function Fs(t){return new Date(t.getFullYear(),t.getMonth(),t.getDate(),23,59,59).toISOString()}function zt(t){if(!t)return null;const e=new Date(t);return Number.isNaN(e.getTime())?null:e}const Bs=new Intl.DateTimeFormat(void 0,{month:"short",day:"numeric"}),Ge="inline-flex h-9 items-center gap-2 rounded-lg border border-border px-3 text-sm font-medium text-foreground transition-colors hover:bg-muted sm:border-transparent",Rs={failed:{label:"Error",className:"text-red-600",icon:ms},requires_action:{label:"Needs input",className:"text-amber-600",icon:Pt},in_progress:{label:"Running",className:"text-blue-600",icon:Mt,spin:!0},completed:{label:"Completed",className:"text-green-600",icon:Gt},expired:{label:"Expired",className:"text-muted-foreground",icon:qt}};function Ms(t){const e=O.c(154),{open:l,onClose:a,item:n,defaultStatus:r,onSubmit:o,onDelete:c,onOpenThread:d,isSaving:f}=t,{data:m}=Lt();let p;e[0]!==m?.data?.members?(p=m?.data?.members??[],e[0]=m?.data?.members,e[1]=p):p=e[1];const i=p,[u,x]=z.useState(n?.title??""),[h,g]=z.useState(n?.description??""),[N,b]=z.useState(n?.status??r??"triage"),[j,y]=z.useState(n?.priority??"medium"),[S,D]=z.useState(n?.assigneeId??null),A=n?.dueDate;let F;e[2]!==A?(F=zt(A),e[2]=A,e[3]=F):F=e[3];const[k,K]=z.useState(F),[q,P]=z.useState(!1),[L,B]=z.useState(!1);let R;e[4]!==r||e[5]!==n?.assigneeId||e[6]!==n?.description||e[7]!==n?.dueDate||e[8]!==n?.priority||e[9]!==n?.status||e[10]!==n?.title?(R=()=>{x(n?.title??""),g(n?.description??""),b(n?.status??r??"triage"),y(n?.priority??"medium"),D(n?.assigneeId??null),K(zt(n?.dueDate))},e[4]=r,e[5]=n?.assigneeId,e[6]=n?.description,e[7]=n?.dueDate,e[8]=n?.priority,e[9]=n?.status,e[10]=n?.title,e[11]=R):R=e[11];const U=R;let I;e[12]!==a||e[13]!==U?(I=()=>{a(),U()},e[12]=a,e[13]=U,e[14]=I):I=e[14];const M=I;let G;e[15]!==S||e[16]!==h||e[17]!==k||e[18]!==o||e[19]!==j||e[20]!==N||e[21]!==u?(G=()=>{const v=u.trim();v&&o({title:v,description:h.trim()||null,status:N,priority:j,assigneeId:S,dueDate:k?Fs(k):null})},e[15]=S,e[16]=h,e[17]=k,e[18]=o,e[19]=j,e[20]=N,e[21]=u,e[22]=G):G=e[22];const T=G,C=S===Qe;let Q;if(e[23]!==S||e[24]!==i){let v;e[26]!==S?(v=H=>H.userId===S,e[26]=S,e[27]=v):v=e[27],Q=i.find(v),e[23]=S,e[24]=i,e[25]=Q}else Q=e[25];const $=Q;let ee;e[28]!==n||e[29]!==i?(ee=n?.assignedBy?i.find(v=>v.userId===n.assignedBy):void 0,e[28]=n,e[29]=i,e[30]=ee):ee=e[30];const E=ee,te=ae[N].icon;let V;e[31]!==n?(V=n?Xt(n):void 0,e[31]=n,e[32]=V):V=e[32];const ce=V;let X;e[33]!==M?(X=v=>!v&&M(),e[33]=M,e[34]=X):X=e[34];const se=n?"Edit task":"New task";let le;e[35]!==se?(le=s.jsx(Ns,{className:"sr-only",children:se}),e[35]=se,e[36]=le):le=e[36];let ne;e[37]===Symbol.for("react.memo_cache_sentinel")?(ne=s.jsx(It,{size:16}),e[37]=ne):ne=e[37];let Y;e[38]!==M?(Y=s.jsx("button",{type:"button","aria-label":"Close",onClick:M,className:"absolute right-2.5 top-2.5 z-10 flex size-10 items-center justify-center rounded-lg text-muted-foreground transition-colors hover:bg-muted hover:text-foreground",children:ne}),e[38]=M,e[39]=Y):Y=e[39];let J;e[40]===Symbol.for("react.memo_cache_sentinel")?(J=v=>x(v.target.value),e[40]=J):J=e[40];let W;e[41]!==u?(W=s.jsx("input",{value:u,onChange:J,placeholder:"Task title...",autoFocus:!0,className:"w-full border-0 bg-transparent text-xl font-medium text-foreground outline-none placeholder:text-foreground/30"}),e[41]=u,e[42]=W):W=e[42];let Z;e[43]===Symbol.for("react.memo_cache_sentinel")?(Z=v=>g(v.target.value),e[43]=Z):Z=e[43];let _;e[44]!==h?(_=s.jsx("textarea",{value:h,onChange:Z,placeholder:"Describe a task for an agent...",className:"min-h-[96px] w-full flex-1 resize-none border-0 bg-transparent text-[15px] leading-relaxed text-foreground outline-none placeholder:text-muted-foreground/50 sm:min-h-[120px]"}),e[44]=h,e[45]=_):_=e[45];let de;e[46]!==E||e[47]!==$||e[48]!==d||e[49]!==ce?(de=ce&&s.jsx(Ps,{thread:ce,startedBy:E??$,onOpen:d}),e[46]=E,e[47]=$,e[48]=d,e[49]=ce,e[50]=de):de=e[50];let fe;e[51]!==W||e[52]!==_||e[53]!==de?(fe=s.jsxs("div",{className:"flex min-w-0 flex-col gap-6 p-6 sm:flex-1 sm:overflow-y-auto sm:p-8",children:[W,_,de]}),e[51]=W,e[52]=_,e[53]=de,e[54]=fe):fe=e[54];let Ye;e[55]===Symbol.for("react.memo_cache_sentinel")?(Ye=s.jsx("span",{className:"hidden px-3 text-sm text-muted-foreground sm:block",children:"Properties"}),e[55]=Ye):Ye=e[55];const ut=ae[N];let xe;e[56]!==te||e[57]!==ut.iconClassName?(xe=s.jsx(te,{size:16,className:ut.iconClassName}),e[56]=te,e[57]=ut.iconClassName,e[58]=xe):xe=e[58];const ft=ae[N];let pe;e[59]!==xe||e[60]!==ft.label?(pe=s.jsx(rt,{asChild:!0,children:s.jsxs("button",{type:"button",className:Ge,children:[xe,ft.label]})}),e[59]=xe,e[60]=ft.label,e[61]=pe):pe=e[61];let He;e[62]===Symbol.for("react.memo_cache_sentinel")?(He=s.jsx(it,{align:"start",className:"w-44",children:Jt.map(v=>{const H=ae[v].icon;return s.jsxs(qe,{onSelect:()=>b(v),className:"gap-2",children:[s.jsx(H,{size:16,className:ae[v].iconClassName}),ae[v].label]},v)})}),e[62]=He):He=e[62];let ge;e[63]!==pe?(ge=s.jsxs(ot,{children:[pe,He]}),e[63]=pe,e[64]=ge):ge=e[64];const xt=j==="none"&&"text-muted-foreground";let he;e[65]!==xt?(he=w(Ge,xt),e[65]=xt,e[66]=he):he=e[66];let be;e[67]!==j?(be=j==="none"?s.jsxs(s.Fragment,{children:[s.jsx(os,{size:16}),"Set priority"]}):s.jsxs(s.Fragment,{children:[s.jsx("span",{className:w("size-2 rounded-full",oe[j].dotClassName)}),oe[j].label]}),e[67]=j,e[68]=be):be=e[68];let je;e[69]!==he||e[70]!==be?(je=s.jsx(rt,{asChild:!0,children:s.jsx("button",{type:"button",className:he,children:be})}),e[69]=he,e[70]=be,e[71]=je):je=e[71];let Ve;e[72]===Symbol.for("react.memo_cache_sentinel")?(Ve=s.jsx(it,{align:"start",className:"w-40",children:Wt.map(v=>s.jsxs(qe,{onSelect:()=>y(v),children:[s.jsx("span",{className:w("size-2 rounded-full",oe[v].dotClassName)}),oe[v].label]},v))}),e[72]=Ve):Ve=e[72];let Ne;e[73]!==je?(Ne=s.jsxs(ot,{children:[je,Ve]}),e[73]=je,e[74]=Ne):Ne=e[74];const pt=!S&&"text-muted-foreground";let ye;e[75]!==pt?(ye=w(Ge,pt),e[75]=pt,e[76]=ye):ye=e[76];let ve;e[77]!==E||e[78]!==$||e[79]!==C?(ve=C&&E?s.jsxs(s.Fragment,{children:[s.jsxs("span",{className:"hidden items-center gap-2 sm:flex",children:[s.jsx(ie,{url:E.user?.image??void 0,fallback:re(E.user?.name),shape:"circle",size:"2xs"}),s.jsx("span",{className:"truncate",children:E.user?.name??"Super Agent"})]}),s.jsxs("span",{className:"flex items-center gap-2 sm:hidden",children:[s.jsxs("span",{className:"inline-flex items-center",children:[s.jsx(ie,{url:E.user?.image??void 0,fallback:re(E.user?.name),shape:"circle",size:"2xs",className:"-mr-1.5 ring-2 ring-background"}),s.jsx(me,{size:16,className:"ring-2 ring-background"})]}),"Super Agent"]})]}):C?s.jsxs(s.Fragment,{children:[s.jsx(me,{size:16}),"Super Agent"]}):$?s.jsxs(s.Fragment,{children:[s.jsx(ie,{url:$.user?.image??void 0,fallback:re($.user?.name),shape:"circle",size:"2xs"}),s.jsx("span",{className:"truncate",children:$.user?.name??"Unassigned"})]}):s.jsxs(s.Fragment,{children:[s.jsx(cs,{size:16,className:"text-muted-foreground"}),"Assign"]}),e[77]=E,e[78]=$,e[79]=C,e[80]=ve):ve=e[80];let Se;e[81]!==ye||e[82]!==ve?(Se=s.jsx(Nt,{asChild:!0,children:s.jsx("button",{type:"button",className:ye,children:ve})}),e[81]=ye,e[82]=ve,e[83]=Se):Se=e[83];let Xe;e[84]===Symbol.for("react.memo_cache_sentinel")?(Xe=s.jsx(Kt,{placeholder:"Assign to…",className:"h-9"}),e[84]=Xe):Xe=e[84];let Je;e[85]===Symbol.for("react.memo_cache_sentinel")?(Je=s.jsx(Qt,{children:"No members found."}),e[85]=Je):Je=e[85];let We;e[86]===Symbol.for("react.memo_cache_sentinel")?(We=()=>{D(Qe),B(!1)},e[86]=We):We=e[86];let Ze;e[87]===Symbol.for("react.memo_cache_sentinel")?(Ze=s.jsxs(ue,{value:"Super Agent",onSelect:We,className:"gap-2",children:[s.jsx(me,{size:16}),s.jsx("span",{className:"truncate",children:"Super Agent"})]}),e[87]=Ze):Ze=e[87];let et;e[88]===Symbol.for("react.memo_cache_sentinel")?(et=()=>{D(null),B(!1)},e[88]=et):et=e[88];let tt;e[89]===Symbol.for("react.memo_cache_sentinel")?(tt=s.jsxs(ct,{children:[Ze,s.jsxs(ue,{value:"Unassigned",onSelect:et,className:"gap-2",children:[s.jsx(St,{size:16,className:"text-muted-foreground"}),s.jsx("span",{className:"truncate",children:"Unassigned"})]})]}),e[89]=tt):tt=e[89];let Ce;if(e[90]!==i){let v;e[92]===Symbol.for("react.memo_cache_sentinel")?(v=H=>s.jsxs(ue,{value:H.user?.name??H.userId,onSelect:()=>{D(H.userId),B(!1)},className:"gap-2",children:[s.jsx(ie,{url:H.user?.image??void 0,fallback:re(H.user?.name),shape:"circle",size:"2xs"}),s.jsx("span",{className:"truncate",children:H.user?.name??H.userId})]},H.userId),e[92]=v):v=e[92],Ce=i.map(v),e[90]=i,e[91]=Ce}else Ce=e[91];let _e;e[93]!==Ce?(_e=s.jsx(yt,{align:"start",className:"w-56 p-0",children:s.jsxs(Yt,{children:[Xe,s.jsxs(Ht,{children:[Je,tt,s.jsx(ct,{heading:"Members",children:Ce})]})]})}),e[93]=Ce,e[94]=_e):_e=e[94];let De;e[95]!==L||e[96]!==Se||e[97]!==_e?(De=s.jsxs(vt,{open:L,onOpenChange:B,children:[Se,_e]}),e[95]=L,e[96]=Se,e[97]=_e,e[98]=De):De=e[98];let we;e[99]!==E||e[100]!==C?(we=C&&E&&s.jsxs("div",{className:"relative mt-1.5 hidden items-center pl-5 sm:flex",children:[s.jsx("span",{className:"absolute -top-1.5 left-5 h-[calc(50%+0.375rem)] w-2.5 rounded-bl-md border-b border-l border-border"}),s.jsxs("span",{className:w(Ge,"pointer-events-none"),children:[s.jsx(me,{size:16}),"Super Agent"]})]}),e[99]=E,e[100]=C,e[101]=we):we=e[101];let ke;e[102]!==De||e[103]!==we?(ke=s.jsxs("div",{className:"flex flex-col",children:[De,we]}),e[102]=De,e[103]=we,e[104]=ke):ke=e[104];const gt=!k&&"text-muted-foreground";let Ie;e[105]!==gt?(Ie=w(Ge,gt),e[105]=gt,e[106]=Ie):Ie=e[106];let st;e[107]===Symbol.for("react.memo_cache_sentinel")?(st=s.jsx(Ke,{size:16,className:"text-muted-foreground"}),e[107]=st):st=e[107];let Te;e[108]!==k?(Te=k?Bs.format(k):"Due date",e[108]=k,e[109]=Te):Te=e[109];let ze;e[110]!==k?(ze=k&&s.jsx("span",{role:"button",tabIndex:0,"aria-label":"Clear due date",className:"-mr-1 ml-0.5 flex size-4 items-center justify-center rounded-sm text-muted-foreground hover:bg-muted hover:text-foreground",onClick:v=>{v.stopPropagation(),K(null)},onKeyDown:v=>{(v.key==="Enter"||v.key===" ")&&(v.preventDefault(),v.stopPropagation(),K(null))},children:s.jsx(It,{size:12})}),e[110]=k,e[111]=ze):ze=e[111];let Ae;e[112]!==Ie||e[113]!==Te||e[114]!==ze?(Ae=s.jsx(Nt,{asChild:!0,children:s.jsxs("button",{type:"button",className:Ie,children:[st,Te,ze]})}),e[112]=Ie,e[113]=Te,e[114]=ze,e[115]=Ae):Ae=e[115];const ht=k??void 0;let lt;e[116]===Symbol.for("react.memo_cache_sentinel")?(lt=v=>{K(v??null),v&&P(!1)},e[116]=lt):lt=e[116];let Ee;e[117]!==ht?(Ee=s.jsx(yt,{className:"w-auto p-0",align:"start",children:s.jsx(Ss,{mode:"single",selected:ht,onSelect:lt,initialFocus:!0})}),e[117]=ht,e[118]=Ee):Ee=e[118];let $e;e[119]!==q||e[120]!==Ae||e[121]!==Ee?($e=s.jsxs(vt,{open:q,onOpenChange:P,children:[Ae,Ee]}),e[119]=q,e[120]=Ae,e[121]=Ee,e[122]=$e):$e=e[122];let Oe;e[123]!==ge||e[124]!==Ne||e[125]!==ke||e[126]!==$e?(Oe=s.jsxs("div",{className:"flex w-full shrink-0 flex-col gap-4 border-t border-border p-6 sm:w-[220px] sm:border-t-0 sm:border-l sm:px-6 sm:py-10",children:[Ye,s.jsxs("div",{className:"flex flex-wrap gap-2 sm:flex-col",children:[ge,Ne,ke,$e]})]}),e[123]=ge,e[124]=Ne,e[125]=ke,e[126]=$e,e[127]=Oe):Oe=e[127];let Fe;e[128]!==fe||e[129]!==Oe?(Fe=s.jsxs("div",{className:"flex min-h-0 flex-1 flex-col overflow-y-auto sm:flex-row sm:overflow-hidden",children:[fe,Oe]}),e[128]=fe,e[129]=Oe,e[130]=Fe):Fe=e[130];let Be;e[131]!==n||e[132]!==c?(Be=n&&c?s.jsx(Ue,{variant:"ghost",size:"icon","aria-label":"Delete task",className:"size-10 text-muted-foreground hover:text-destructive",onClick:c,children:s.jsx(ds,{size:16})}):s.jsx("span",{}),e[131]=n,e[132]=c,e[133]=Be):Be=e[133];let Re;e[134]!==f||e[135]!==u?(Re=!u.trim()||f,e[134]=f,e[135]=u,e[136]=Re):Re=e[136];let nt;e[137]===Symbol.for("react.memo_cache_sentinel")?(nt=s.jsx(Dt,{size:16}),e[137]=nt):nt=e[137];const bt=n?"Save":"Create task";let Me;e[138]!==T||e[139]!==Re||e[140]!==bt?(Me=s.jsxs(Ue,{size:"sm",disabled:Re,onClick:T,children:[nt,bt]}),e[138]=T,e[139]=Re,e[140]=bt,e[141]=Me):Me=e[141];let Pe;e[142]!==Be||e[143]!==Me?(Pe=s.jsxs("div",{className:"flex h-16 items-center justify-between border-t border-border px-4",children:[Be,Me]}),e[142]=Be,e[143]=Me,e[144]=Pe):Pe=e[144];let Le;e[145]!==le||e[146]!==Y||e[147]!==Fe||e[148]!==Pe?(Le=s.jsxs(ys,{className:"flex max-h-[90vh] flex-col gap-0 overflow-hidden rounded-2xl p-0 sm:h-[85vh] sm:max-h-[640px] sm:max-w-[850px]",closeButtonClassName:"hidden",children:[le,Y,Fe,Pe]}),e[145]=le,e[146]=Y,e[147]=Fe,e[148]=Pe,e[149]=Le):Le=e[149];let at;return e[150]!==l||e[151]!==X||e[152]!==Le?(at=s.jsx(vs,{open:l,onOpenChange:X,children:Le}),e[150]=l,e[151]=X,e[152]=Le,e[153]=at):at=e[153],at}function Ps(t){const e=O.c(14),{thread:l,startedBy:a,onOpen:n}=t,r=l.status?Rs[l.status]:null,o=l.lastMessage??l.title;let c,d;e[0]===Symbol.for("react.memo_cache_sentinel")?(c=s.jsx(me,{size:16}),d=s.jsx("span",{className:"text-sm text-foreground",children:"Super Agent"}),e[0]=c,e[1]=d):(c=e[0],d=e[1]);let f;e[2]!==a?(f=a&&s.jsxs(s.Fragment,{children:[s.jsx("span",{className:"text-sm text-muted-foreground/50",children:"started by"}),s.jsx(ie,{url:a.user?.image??void 0,fallback:re(a.user?.name),shape:"circle",size:"2xs"}),s.jsx("span",{className:"truncate text-sm text-foreground",children:a.user?.name??"someone"})]}),e[2]=a,e[3]=f):f=e[3];let m;e[4]!==f?(m=s.jsxs("div",{className:"flex items-center gap-2 px-4 py-3.5",children:[c,d,f]}),e[4]=f,e[5]=m):m=e[5];let p;e[6]!==o||e[7]!==n||e[8]!==r||e[9]!==l?(p=r&&s.jsxs("button",{type:"button",disabled:!n,onClick:()=>n?.(l),className:"flex items-center gap-2 border-t border-border px-4 py-2 text-left transition-colors enabled:hover:bg-muted disabled:cursor-default",children:[s.jsxs("span",{className:w("flex items-center gap-1.5",r.className),children:[s.jsx(r.icon,{size:16,className:w(r.spin&&"animate-spin")}),s.jsx("span",{className:"text-sm",children:r.label})]}),o&&s.jsx("span",{className:"min-w-0 flex-1 truncate text-sm text-foreground",children:o}),n&&s.jsx(Cs,{size:16,className:"ml-auto shrink-0 text-muted-foreground"})]}),e[6]=o,e[7]=n,e[8]=r,e[9]=l,e[10]=p):p=e[10];let i;return e[11]!==m||e[12]!==p?(i=s.jsxs("div",{className:"flex flex-col overflow-hidden rounded-lg border border-border",children:[m,p]}),e[11]=m,e[12]=p,e[13]=i):i=e[13],i}const _t="__unassigned__",dt={assignee:null,priority:null,due:null};function Ls(t){return t.assignee!==null||t.priority!==null||t.due!==null}function Us(t){return(t.assignee!==null?1:0)+(t.priority!==null?1:0)+(t.due!==null?1:0)}const qs=864e5;function Gs(t,e){const l=new Date(t),a=new Date(e);return l.getFullYear()===a.getFullYear()&&l.getMonth()===a.getMonth()&&l.getDate()===a.getDate()}function Ks(t,e){if(e.assignee!==null){if(e.assignee===_t){if(t.assigneeId!==null)return!1}else if(t.assigneeId!==e.assignee)return!1}if(e.priority!==null&&t.priority!==e.priority)return!1;if(e.due!==null)if(e.due==="none"){if(t.dueDate)return!1}else{if(!t.dueDate)return!1;const l=new Date(t.dueDate).getTime(),a=Date.now();if(e.due==="overdue"&&l>=a||e.due==="today"&&!Gs(l,a)||e.due==="week"&&(l<a||l>a+7*qs))return!1}return!0}const At=[{value:"overdue",label:"Overdue"},{value:"today",label:"Due today"},{value:"week",label:"Due this week"},{value:"none",label:"No due date"}];function mt(t,e=!1){return w("inline-flex h-8 items-center gap-1.5 rounded-lg border px-2.5 text-xs font-medium outline-none transition-colors",e&&"h-10 w-full justify-start px-3 text-sm",t?"border-transparent bg-accent text-foreground":"border-border text-muted-foreground hover:bg-muted/60 hover:text-foreground")}function Qs(t){const e=O.c(62),{value:l,members:a,onChange:n,block:r}=t,[o,c]=z.useState(!1);let d;e[0]===Symbol.for("react.memo_cache_sentinel")?(d=s.jsx(St,{size:14,className:"shrink-0"}),e[0]=d):d=e[0];let f=d,m="Assignee";if(l===_t)m="Unassigned";else if(l===Qe){let T;e[1]===Symbol.for("react.memo_cache_sentinel")?(T=s.jsx(me,{size:14}),e[1]=T):T=e[1],f=T,m="Super Agent"}else if(l){let T,C,Q,$;if(e[2]!==a||e[3]!==l){let E;e[8]!==l?(E=te=>te.userId===l,e[8]=l,e[9]=E):E=e[9],C=a.find(E),T=ie,Q=C?.user?.image??void 0,$=re(C?.user?.name),e[2]=a,e[3]=l,e[4]=T,e[5]=C,e[6]=Q,e[7]=$}else T=e[4],C=e[5],Q=e[6],$=e[7];let ee;e[10]!==T||e[11]!==Q||e[12]!==$?(ee=s.jsx(T,{url:Q,fallback:$,shape:"circle",size:"2xs"}),e[10]=T,e[11]=Q,e[12]=$,e[13]=ee):ee=e[13],f=ee,m=C?.user?.name??"Member"}let p;e[14]!==n?(p=T=>{n(T),c(!1)},e[14]=n,e[15]=p):p=e[15];const i=p,u=l!==null;let x;e[16]!==r||e[17]!==u?(x=mt(u,r),e[16]=r,e[17]=u,e[18]=x):x=e[18];const h=x,g=r&&"ml-auto";let N;e[19]!==g?(N=w("shrink-0 opacity-60",g),e[19]=g,e[20]=N):N=e[20];const b=N;let j;e[21]!==m?(j=s.jsx("span",{className:"max-w-[10rem] truncate",children:m}),e[21]=m,e[22]=j):j=e[22];let y;e[23]!==b?(y=s.jsx(wt,{size:12,className:b}),e[23]=b,e[24]=y):y=e[24];let S;e[25]!==f||e[26]!==j||e[27]!==y||e[28]!==h?(S=s.jsx(Nt,{asChild:!0,children:s.jsxs("button",{type:"button",className:h,children:[f,j,y]})}),e[25]=f,e[26]=j,e[27]=y,e[28]=h,e[29]=S):S=e[29];let D;e[30]===Symbol.for("react.memo_cache_sentinel")?(D=s.jsx(Kt,{placeholder:"Filter by assignee…",className:"h-9"}),e[30]=D):D=e[30];let A;e[31]===Symbol.for("react.memo_cache_sentinel")?(A=s.jsx(Qt,{children:"No members found."}),e[31]=A):A=e[31];let F;e[32]!==i?(F=s.jsx(ue,{value:"Anyone",onSelect:()=>i(null),children:"Anyone"}),e[32]=i,e[33]=F):F=e[33];let k;e[34]!==i?(k=()=>i(_t),e[34]=i,e[35]=k):k=e[35];let K;e[36]===Symbol.for("react.memo_cache_sentinel")?(K=s.jsx(St,{size:16,className:"text-muted-foreground"}),e[36]=K):K=e[36];let q;e[37]!==k?(q=s.jsxs(ue,{value:"Unassigned",onSelect:k,className:"gap-2",children:[K,"Unassigned"]}),e[37]=k,e[38]=q):q=e[38];let P;e[39]!==i?(P=()=>i(Qe),e[39]=i,e[40]=P):P=e[40];let L;e[41]===Symbol.for("react.memo_cache_sentinel")?(L=s.jsx(me,{size:16}),e[41]=L):L=e[41];let B;e[42]!==P?(B=s.jsxs(ue,{value:"Super Agent",onSelect:P,className:"gap-2",children:[L,"Super Agent"]}),e[42]=P,e[43]=B):B=e[43];let R;e[44]!==F||e[45]!==q||e[46]!==B?(R=s.jsxs(ct,{children:[F,q,B]}),e[44]=F,e[45]=q,e[46]=B,e[47]=R):R=e[47];let U;if(e[48]!==a||e[49]!==i){let T;e[51]!==i?(T=C=>s.jsxs(ue,{value:C.user?.name??C.userId,onSelect:()=>i(C.userId),className:"gap-2",children:[s.jsx(ie,{url:C.user?.image??void 0,fallback:re(C.user?.name),shape:"circle",size:"2xs"}),s.jsx("span",{className:"truncate",children:C.user?.name??C.userId})]},C.userId),e[51]=i,e[52]=T):T=e[52],U=a.map(T),e[48]=a,e[49]=i,e[50]=U}else U=e[50];let I;e[53]!==U?(I=s.jsx(ct,{heading:"Members",children:U}),e[53]=U,e[54]=I):I=e[54];let M;e[55]!==R||e[56]!==I?(M=s.jsx(yt,{align:"start",className:"w-56 p-0",children:s.jsxs(Yt,{children:[D,s.jsxs(Ht,{children:[A,R,I]})]})}),e[55]=R,e[56]=I,e[57]=M):M=e[57];let G;return e[58]!==o||e[59]!==M||e[60]!==S?(G=s.jsxs(vt,{open:o,onOpenChange:c,children:[S,M]}),e[58]=o,e[59]=M,e[60]=S,e[61]=G):G=e[61],G}function Ys(t){const e=O.c(23),{value:l,onChange:a,block:n}=t,r=l!==null;let o;e[0]!==n||e[1]!==r?(o=mt(r,n),e[0]=n,e[1]=r,e[2]=o):o=e[2];const c=o,d=n&&"ml-auto";let f;e[3]!==d?(f=w("shrink-0 opacity-60",d),e[3]=d,e[4]=f):f=e[4];const m=f;let p;e[5]!==l?(p=l?s.jsx("span",{className:w("size-2 shrink-0 rounded-full",oe[l].dotClassName)}):s.jsx(zs,{size:14,className:"shrink-0"}),e[5]=l,e[6]=p):p=e[6];const i=l?oe[l].label:"Priority";let u;e[7]!==m?(u=s.jsx(wt,{size:12,className:m}),e[7]=m,e[8]=u):u=e[8];let x;e[9]!==p||e[10]!==i||e[11]!==u||e[12]!==c?(x=s.jsx(rt,{asChild:!0,children:s.jsxs("button",{type:"button",className:c,children:[p,i,u]})}),e[9]=p,e[10]=i,e[11]=u,e[12]=c,e[13]=x):x=e[13];let h,g;e[14]!==a?(g=s.jsx(qe,{onSelect:()=>a(null),children:"Any priority"}),h=Wt.map(j=>s.jsxs(qe,{onSelect:()=>a(j),className:"gap-2",children:[s.jsx("span",{className:w("size-2 rounded-full",oe[j].dotClassName)}),oe[j].label]},j)),e[14]=a,e[15]=h,e[16]=g):(h=e[15],g=e[16]);let N;e[17]!==h||e[18]!==g?(N=s.jsxs(it,{align:"start",className:"w-40",children:[g,h]}),e[17]=h,e[18]=g,e[19]=N):N=e[19];let b;return e[20]!==N||e[21]!==x?(b=s.jsxs(ot,{children:[x,N]}),e[20]=N,e[21]=x,e[22]=b):b=e[22],b}function Hs(t){const e=O.c(27),{value:l,onChange:a,block:n}=t;let r;e[0]!==l?(r=At.find(A=>A.value===l)?.label,e[0]=l,e[1]=r):r=e[1];const o=r,c=l!==null;let d;e[2]!==n||e[3]!==c?(d=mt(c,n),e[2]=n,e[3]=c,e[4]=d):d=e[4];const f=d,m=n&&"ml-auto";let p;e[5]!==m?(p=w("shrink-0 opacity-60",m),e[5]=m,e[6]=p):p=e[6];const i=p;let u;e[7]===Symbol.for("react.memo_cache_sentinel")?(u=s.jsx(Ke,{size:14,className:"shrink-0"}),e[7]=u):u=e[7];const x=o??"Due date";let h;e[8]!==i?(h=s.jsx(wt,{size:12,className:i}),e[8]=i,e[9]=h):h=e[9];let g;e[10]!==x||e[11]!==h||e[12]!==f?(g=s.jsx(rt,{asChild:!0,children:s.jsxs("button",{type:"button",className:f,children:[u,x,h]})}),e[10]=x,e[11]=h,e[12]=f,e[13]=g):g=e[13];let N;e[14]!==a?(N=()=>a(null),e[14]=a,e[15]=N):N=e[15];let b;e[16]===Symbol.for("react.memo_cache_sentinel")?(b=s.jsx(Ke,{size:16,className:"text-muted-foreground"}),e[16]=b):b=e[16];let j;e[17]!==N?(j=s.jsxs(qe,{onSelect:N,className:"gap-2",children:[b,"Any time"]}),e[17]=N,e[18]=j):j=e[18];let y;e[19]!==a?(y=At.map(A=>{const F=A.value==="overdue";return s.jsxs(qe,{onSelect:()=>a(A.value),className:w("gap-2",F&&"text-destructive"),children:[s.jsx(Ke,{size:16,className:w("shrink-0",F?"text-destructive":"text-muted-foreground")}),A.label]},A.value)}),e[19]=a,e[20]=y):y=e[20];let S;e[21]!==j||e[22]!==y?(S=s.jsxs(it,{align:"start",className:"w-44",children:[j,y]}),e[21]=j,e[22]=y,e[23]=S):S=e[23];let D;return e[24]!==S||e[25]!==g?(D=s.jsxs(ot,{children:[g,S]}),e[24]=S,e[25]=g,e[26]=D):D=e[26],D}function Zt(t){const e=O.c(26),{filters:l,members:a,onChange:n,block:r}=t;let o;e[0]!==l||e[1]!==n?(o=u=>n({...l,assignee:u}),e[0]=l,e[1]=n,e[2]=o):o=e[2];let c;e[3]!==r||e[4]!==l.assignee||e[5]!==a||e[6]!==o?(c=s.jsx(Qs,{block:r,value:l.assignee,members:a,onChange:o}),e[3]=r,e[4]=l.assignee,e[5]=a,e[6]=o,e[7]=c):c=e[7];let d;e[8]!==l||e[9]!==n?(d=u=>n({...l,priority:u}),e[8]=l,e[9]=n,e[10]=d):d=e[10];let f;e[11]!==r||e[12]!==l.priority||e[13]!==d?(f=s.jsx(Ys,{block:r,value:l.priority,onChange:d}),e[11]=r,e[12]=l.priority,e[13]=d,e[14]=f):f=e[14];let m;e[15]!==l||e[16]!==n?(m=u=>n({...l,due:u}),e[15]=l,e[16]=n,e[17]=m):m=e[17];let p;e[18]!==r||e[19]!==l.due||e[20]!==m?(p=s.jsx(Hs,{block:r,value:l.due,onChange:m}),e[18]=r,e[19]=l.due,e[20]=m,e[21]=p):p=e[21];let i;return e[22]!==c||e[23]!==f||e[24]!==p?(i=s.jsxs(s.Fragment,{children:[c,f,p]}),e[22]=c,e[23]=f,e[24]=p,e[25]=i):i=e[25],i}function Vs(t){const e=O.c(11),{filters:l,members:a,onChange:n}=t;let r;e[0]===Symbol.for("react.memo_cache_sentinel")?(r=s.jsx(Vt,{size:16,className:"mr-0.5 shrink-0 text-muted-foreground"}),e[0]=r):r=e[0];let o;e[1]!==l||e[2]!==a||e[3]!==n?(o=s.jsx(Zt,{filters:l,members:a,onChange:n}),e[1]=l,e[2]=a,e[3]=n,e[4]=o):o=e[4];let c;e[5]!==l||e[6]!==n?(c=Ls(l)&&s.jsx("button",{type:"button",onClick:()=>n(dt),className:"ml-1 text-xs font-medium text-muted-foreground transition-colors hover:text-foreground",children:"Clear"}),e[5]=l,e[6]=n,e[7]=c):c=e[7];let d;return e[8]!==o||e[9]!==c?(d=s.jsxs("div",{className:"flex flex-wrap items-center gap-2",children:[r,o,c]}),e[8]=o,e[9]=c,e[10]=d):d=e[10],d}function Xs(t){const e=O.c(26),{filters:l,members:a,onChange:n}=t,[r,o]=z.useState(!1),c=Us(l),d=c>0;let f;e[0]!==d?(f=mt(d),e[0]=d,e[1]=f):f=e[1];const m=f;let p;e[2]===Symbol.for("react.memo_cache_sentinel")?(p=s.jsx(Vt,{size:14,className:"shrink-0"}),e[2]=p):p=e[2];let i;e[3]!==c?(i=c>0&&s.jsx("span",{className:"ml-0.5 flex size-4 items-center justify-center rounded-full bg-foreground text-[10px] font-semibold text-background",children:c}),e[3]=c,e[4]=i):i=e[4];let u;e[5]!==i||e[6]!==m?(u=s.jsx(_s,{asChild:!0,children:s.jsxs("button",{type:"button",className:m,children:[p,"Filters",i]})}),e[5]=i,e[6]=m,e[7]=u):u=e[7];let x;e[8]===Symbol.for("react.memo_cache_sentinel")?(x=s.jsx(Ds,{className:"px-4 pt-4 text-base font-medium text-foreground",children:"Filters"}),e[8]=x):x=e[8];let h;e[9]!==l||e[10]!==a||e[11]!==n?(h=s.jsx("div",{className:"flex flex-col gap-2 p-4",children:s.jsx(Zt,{block:!0,filters:l,members:a,onChange:n})}),e[9]=l,e[10]=a,e[11]=n,e[12]=h):h=e[12];let g;e[13]!==c||e[14]!==n?(g=c>0&&s.jsx(Ue,{variant:"outline",className:"flex-1",onClick:()=>n(dt),children:"Clear all"}),e[13]=c,e[14]=n,e[15]=g):g=e[15];let N;e[16]===Symbol.for("react.memo_cache_sentinel")?(N=s.jsx(ws,{asChild:!0,children:s.jsx(Ue,{className:"flex-1",children:"Done"})}),e[16]=N):N=e[16];let b;e[17]!==g?(b=s.jsxs(ks,{className:"flex-row gap-2",children:[g,N]}),e[17]=g,e[18]=b):b=e[18];let j;e[19]!==b||e[20]!==h?(j=s.jsxs(Is,{className:"p-0",children:[x,h,b]}),e[19]=b,e[20]=h,e[21]=j):j=e[21];let y;return e[22]!==r||e[23]!==j||e[24]!==u?(y=s.jsxs(Ts,{open:r,onOpenChange:o,direction:"bottom",children:[u,j]}),e[22]=r,e[23]=j,e[24]=u,e[25]=y):y=e[25],y}const Et=380,Js=90,$t=5,Ws="cubic-bezier(0.22, 0.61, 0.36, 1)",Zs=8;function el(t,e){const l=z.useRef(new Map);z.useLayoutEffect(()=>{const a=t.current;if(!a)return;const n=a.querySelectorAll("[data-flip-id]"),r=l.current,o=new Map,c=typeof window<"u"&&window.matchMedia?.("(prefers-reduced-motion: reduce)").matches,d=[];for(const i of n){const u=i.dataset.flipId;if(!u)continue;const x=i.getBoundingClientRect();o.set(u,x);const h=r.get(u);if(!h)continue;const g=h.left-x.left,N=h.top-x.top;(g||N)&&d.push({el:i,dx:g,dy:N,lane:Math.abs(g)>Zs})}if(l.current=o,c||d.length===0)return;for(const i of d){const u=i.lane?` rotate(${i.dx>0?$t:-$t}deg)`:"";i.el.style.transition="none",i.el.style.transform=`translate(${i.dx}px, ${i.dy}px)${u}`,i.lane&&(i.el.style.zIndex="10")}let f=0;const m=[],p=requestAnimationFrame(()=>{for(const i of d){const u=i.lane?f++*Js:0;i.el.style.transition=`transform ${Et}ms ${Ws} ${u}ms`,i.el.style.transform="",m.push(window.setTimeout(()=>{i.el.style.transition="",i.el.style.transform="",i.el.style.zIndex=""},Et+u+30))}});return()=>{cancelAnimationFrame(p);for(const i of m)clearTimeout(i)}},[e,t])}rs(()=>import("./index-B6dQ2ALc.js").then(t=>t.aV),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,123,124,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152])).catch(()=>{});function tl(){const t=O.c(1);let e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=s.jsx("div",{className:"min-h-0 flex-1 pt-0 pr-1 pb-1 pl-0",children:s.jsx("div",{className:"h-full p-0.5 pt-0.25",children:s.jsx("div",{className:"card-shadow flex h-full flex-col overflow-hidden rounded-[0.75rem] bg-background",children:s.jsx(ns,{})})})}),t[0]=e):e=t[0],e}const sl=new Intl.DateTimeFormat(void 0,{month:"short",day:"numeric"});function ll(t){const e=new Date(t),l=e.getTime()<Date.now();return{label:sl.format(e),overdue:l}}const kt="inline-flex items-center gap-1.5 rounded-lg border border-border bg-background px-2 py-1 text-xs font-medium text-muted-foreground";function es(){const t=O.c(2);let e;t[0]===Symbol.for("react.memo_cache_sentinel")?(e=w(kt,"border-amber-500/30 text-amber-600"),t[0]=e):e=t[0];let l;return t[1]===Symbol.for("react.memo_cache_sentinel")?(l=s.jsxs("span",{className:e,title:"The agent is waiting for your input",children:[s.jsx(Pt,{size:14}),"Needs input"]}),t[1]=l):l=t[1],l}function ts(t){const e=O.c(7),{priority:l}=t,a=oe[l];let n;e[0]!==a.dotClassName?(n=w("size-2 rounded-full",a.dotClassName),e[0]=a.dotClassName,e[1]=n):n=e[1];let r;e[2]!==n?(r=s.jsx("span",{className:n}),e[2]=n,e[3]=r):r=e[3];let o;return e[4]!==a.label||e[5]!==r?(o=s.jsxs("span",{className:kt,children:[r,a.label]}),e[4]=a.label,e[5]=r,e[6]=o):o=e[6],o}function ss(t){const e=O.c(7),{iso:l}=t;let a,n;if(e[0]!==l){const{label:c,overdue:d}=ll(l);a=c,n=w(kt,d&&"border-destructive/30 text-destructive"),e[0]=l,e[1]=a,e[2]=n}else a=e[1],n=e[2];let r;e[3]===Symbol.for("react.memo_cache_sentinel")?(r=s.jsx(Ke,{size:14}),e[3]=r):r=e[3];let o;return e[4]!==a||e[5]!==n?(o=s.jsxs("span",{className:n,children:[r,a]}),e[4]=a,e[5]=n,e[6]=o):o=e[6],o}function ls(t){const e=O.c(11),{item:l,assignee:a,assignedBy:n}=t;if(l.assigneeId===Qe){const r=n?.user?.name?`Assigned to Super Agent by ${n.user.name}`:"Assigned to Super Agent";let o;e[0]!==n?(o=n&&s.jsx(ie,{url:n.user?.image??void 0,fallback:re(n.user?.name),shape:"circle",size:"2xs",className:"-mr-1.5 ring-2 ring-background"}),e[0]=n,e[1]=o):o=e[1];let c;e[2]===Symbol.for("react.memo_cache_sentinel")?(c=s.jsx(me,{size:16,className:"ring-2 ring-background"}),e[2]=c):c=e[2];let d;return e[3]!==r||e[4]!==o?(d=s.jsxs("span",{className:"inline-flex items-center",title:r,children:[o,c]}),e[3]=r,e[4]=o,e[5]=d):d=e[5],d}if(a){const r=a.user?.image??void 0,o=a.user?.name;let c;e[6]!==o?(c=re(o),e[6]=o,e[7]=c):c=e[7];let d;return e[8]!==r||e[9]!==c?(d=s.jsx(ie,{url:r,fallback:c,shape:"circle",size:"2xs"}),e[8]=r,e[9]=c,e[10]=d):d=e[10],d}return null}function ns(){const t=O.c(64),{items:e,isLoading:l}=$s(),a=Os(),{data:n}=Lt();let r,o;t[0]!==n?.data?.members?(r=n?.data?.members??[],o=new Map(r.map(nl)),t[0]=n?.data?.members,t[1]=r,t[2]=o):(r=t[1],o=t[2]);const c=o,[d,f]=z.useState("board"),[m,p]=z.useState(dt),[i,u]=z.useState(!1),[x,h]=z.useState(null),[g,N]=z.useState(null),{setTaskId:b}=As();let j,y,S,D;if(t[3]!==a||t[4]!==m||t[5]!==l||t[6]!==e||t[7]!==d||t[8]!==c||t[9]!==r){D=Symbol.for("react.early_return_sentinel");e:{let I;t[14]!==m?(I=_=>Ks(_,m),t[14]=m,t[15]=I):I=t[15];const M=e.filter(I);let G;t[16]===Symbol.for("react.memo_cache_sentinel")?(G=()=>{h(null),N(null),u(!0)},t[16]=G):G=t[16];const T=G;let C;t[17]===Symbol.for("react.memo_cache_sentinel")?(C=_=>{h(null),N(_),u(!0)},t[17]=C):C=t[17];const Q=C;let $;t[18]===Symbol.for("react.memo_cache_sentinel")?($=_=>{h(_),u(!0)},t[18]=$):$=t[18];const E=$;if(l&&e.length===0){let _;t[19]===Symbol.for("react.memo_cache_sentinel")?(_=s.jsx("div",{className:"flex flex-1 items-center justify-center",children:s.jsx(is,{size:20,className:"animate-spin text-muted-foreground"})}),t[19]=_):_=t[19],D=_;break e}j="mx-auto flex min-h-0 w-full max-w-[1680px] flex-1 flex-col";let te;t[20]===Symbol.for("react.memo_cache_sentinel")?(te=s.jsx("h1",{className:"text-xl font-medium text-foreground",children:"Tasks"}),t[20]=te):te=t[20];let V;t[21]!==m||t[22]!==e.length||t[23]!==r?(V=e.length>0&&s.jsxs(s.Fragment,{children:[s.jsx("div",{className:"sm:hidden",children:s.jsx(Xs,{filters:m,members:r,onChange:p})}),s.jsx("div",{className:"hidden sm:block",children:s.jsx(Vs,{filters:m,members:r,onChange:p})})]}),t[21]=m,t[22]=e.length,t[23]=r,t[24]=V):V=t[24];const ce=d==="list";let X;t[25]===Symbol.for("react.memo_cache_sentinel")?(X=()=>f("list"),t[25]=X):X=t[25];let se;t[26]!==ce?(se=s.jsx(Ot,{active:ce,onClick:X,icon:fs,label:"List"}),t[26]=ce,t[27]=se):se=t[27];const le=d==="board";let ne;t[28]===Symbol.for("react.memo_cache_sentinel")?(ne=()=>f("board"),t[28]=ne):ne=t[28];let Y;t[29]!==le?(Y=s.jsx(Ot,{active:le,onClick:ne,icon:us,label:"Board"}),t[29]=le,t[30]=Y):Y=t[30];let J;t[31]!==se||t[32]!==Y?(J=s.jsxs("div",{className:"inline-flex rounded-lg bg-muted p-0.5",children:[se,Y]}),t[31]=se,t[32]=Y,t[33]=J):J=t[33];let W;t[34]===Symbol.for("react.memo_cache_sentinel")?(W=s.jsxs(Ue,{size:"sm",onClick:T,children:[s.jsx(Dt,{size:16}),"New task"]}),t[34]=W):W=t[34];let Z;t[35]!==J?(Z=s.jsxs("div",{className:"ml-auto flex items-center gap-2",children:[J,W]}),t[35]=J,t[36]=Z):Z=t[36],t[37]!==V||t[38]!==Z?(y=s.jsxs("div",{className:"flex flex-col gap-4 px-4 pt-6 sm:px-8 sm:pt-8",children:[te,s.jsxs("div",{className:"flex flex-wrap items-center gap-2",children:[V,Z]})]}),t[37]=V,t[38]=Z,t[39]=y):y=t[39],S=e.length===0?s.jsx("div",{className:"px-4 pt-6 sm:px-8",children:s.jsx("div",{className:"rounded-xl bg-card px-4 py-12 text-center text-sm text-muted-foreground card-shadow",children:"No tasks yet. Start one with New task."})}):M.length===0?s.jsx("div",{className:"px-4 pt-6 sm:px-8",children:s.jsxs("div",{className:"flex flex-col items-center gap-3 rounded-xl bg-card px-4 py-12 text-center text-sm text-muted-foreground card-shadow",children:["No tasks match these filters.",s.jsx(Ue,{variant:"outline",size:"sm",onClick:()=>p(dt),children:"Clear filters"})]})}):d==="board"?s.jsx(al,{items:M,memberByUserId:c,onOpen:E,onCreate:Q,onMove:(_,de)=>a.update.mutate({id:_,status:de})}):s.jsx("div",{className:"min-h-0 flex-1 overflow-y-auto px-4 pt-6 pb-16 sm:px-8",children:s.jsx("div",{className:"mx-auto flex max-w-[820px] flex-col gap-2",children:M.map(_=>s.jsx(ol,{item:_,assignee:_.assigneeId?c.get(_.assigneeId):void 0,assignedBy:_.assignedBy?c.get(_.assignedBy):void 0,onOpen:()=>E(_)},_.id))})})}t[3]=a,t[4]=m,t[5]=l,t[6]=e,t[7]=d,t[8]=c,t[9]=r,t[10]=j,t[11]=y,t[12]=S,t[13]=D}else j=t[10],y=t[11],S=t[12],D=t[13];if(D!==Symbol.for("react.early_return_sentinel"))return D;const A=i?x?.id??`new-${g??"default"}`:"closed";let F;t[40]===Symbol.for("react.memo_cache_sentinel")?(F=()=>u(!1),t[40]=F):F=t[40];const k=x??void 0,K=g??void 0,q=a.create.isPending||a.update.isPending;let P;t[41]!==a.create||t[42]!==a.update||t[43]!==x?(P=I=>{x?a.update.mutate({id:x.id,...I}):a.create.mutate(I),u(!1)},t[41]=a.create,t[42]=a.update,t[43]=x,t[44]=P):P=t[44];let L;t[45]!==a.remove||t[46]!==x?(L=x?()=>{a.remove.mutate(x.id),u(!1)}:void 0,t[45]=a.remove,t[46]=x,t[47]=L):L=t[47];let B;t[48]!==b?(B=I=>{I.virtualMcpId&&(u(!1),b(I.threadId,I.virtualMcpId,{main:I.hasPreview?"preview":"board"}))},t[48]=b,t[49]=B):B=t[49];let R;t[50]!==i||t[51]!==P||t[52]!==L||t[53]!==B||t[54]!==A||t[55]!==k||t[56]!==K||t[57]!==q?(R=s.jsx(Ms,{open:i,onClose:F,item:k,defaultStatus:K,isSaving:q,onSubmit:P,onDelete:L,onOpenThread:B},A),t[50]=i,t[51]=P,t[52]=L,t[53]=B,t[54]=A,t[55]=k,t[56]=K,t[57]=q,t[58]=R):R=t[58];let U;return t[59]!==j||t[60]!==R||t[61]!==y||t[62]!==S?(U=s.jsxs("div",{className:j,children:[y,S,R]}),t[59]=j,t[60]=R,t[61]=y,t[62]=S,t[63]=U):U=t[63],U}function nl(t){return[t.userId,t]}function Ot(t){const e=O.c(11),{active:l,onClick:a,icon:n,label:r}=t,o=`${r} view`,c=l?"bg-background text-foreground shadow-sm":"text-muted-foreground hover:text-foreground";let d;e[0]!==c?(d=w("flex items-center gap-1.5 rounded-md px-2.5 py-1.5 text-xs font-medium transition-colors",c),e[0]=c,e[1]=d):d=e[1];let f;e[2]!==n?(f=s.jsx(n,{size:14}),e[2]=n,e[3]=f):f=e[3];let m;return e[4]!==l||e[5]!==r||e[6]!==a||e[7]!==o||e[8]!==d||e[9]!==f?(m=s.jsxs("button",{type:"button",onClick:a,"aria-label":o,"aria-pressed":l,className:d,children:[f,r]}),e[4]=l,e[5]=r,e[6]=a,e[7]=o,e[8]=d,e[9]=f,e[10]=m):m=e[10],m}function al(t){const e=O.c(11),{items:l,memberByUserId:a,onOpen:n,onCreate:r,onMove:o}=t,[c,d]=z.useState(null),f=z.useRef(null);let m;e[0]!==l?(m=l.map(rl).join(","),e[0]=l,e[1]=m):m=e[1],el(f,m);let i;e[2]!==l||e[3]!==a||e[4]!==r||e[5]!==o||e[6]!==n||e[7]!==c?(i=Jt.map(x=>{const h=l.filter(b=>b.status===x),g=ae[x],N=g.icon;return s.jsxs("div",{onDragOver:b=>{b.preventDefault(),d(x)},onDragLeave:b=>{b.currentTarget.contains(b.relatedTarget)||d(null)},onDrop:b=>{b.preventDefault();const j=b.dataTransfer.getData("text/plain");j&&o(j,x),d(null)},className:w("flex w-[300px] shrink-0 flex-col rounded-xl p-1 transition-colors",c===x&&"bg-muted/50"),children:[s.jsxs("div",{className:"flex items-center gap-2 px-2 py-1.5",children:[s.jsx(N,{size:15,className:w("shrink-0",g.iconClassName)}),s.jsx("span",{className:"text-sm font-medium text-foreground",children:g.label}),s.jsx("span",{className:"rounded-md bg-muted px-1.5 text-[11px] font-medium text-muted-foreground",children:h.length}),s.jsx("button",{type:"button","aria-label":`New task in ${g.label}`,title:`New task in ${g.label}`,onClick:()=>r(x),className:"ml-auto flex size-6 shrink-0 items-center justify-center rounded-md text-muted-foreground transition-colors hover:bg-muted hover:text-foreground",children:s.jsx(Dt,{size:15})})]}),s.jsx("div",{className:"flex min-h-12 flex-col gap-2 pt-1",children:h.map(b=>s.jsx(il,{item:b,assignee:b.assigneeId?a.get(b.assigneeId):void 0,assignedBy:b.assignedBy?a.get(b.assignedBy):void 0,onOpen:()=>n(b)},b.id))})]},x)}),e[2]=l,e[3]=a,e[4]=r,e[5]=o,e[6]=n,e[7]=c,e[8]=i):i=e[8];let u;return e[9]!==i?(u=s.jsx("div",{ref:f,className:"flex min-h-0 flex-1 gap-3 overflow-x-auto overflow-y-auto px-4 pt-6 pb-16 sm:px-8",children:i}),e[9]=i,e[10]=u):u=e[10],u}function rl(t){return`${t.id}:${t.status}`}function il(t){const e=O.c(29),{item:l,assignee:a,assignedBy:n,onOpen:r}=t,o=ae[l.status],c=o.icon,d=Xt(l)?.lastMessage,f=l.id;let m;e[0]!==l.id?(m=y=>{y.dataTransfer.setData("text/plain",l.id),y.dataTransfer.effectAllowed="move"},e[0]=l.id,e[1]=m):m=e[1];const p=l.title;let i;e[2]!==o.iconClassName?(i=w("mt-px shrink-0",o.iconClassName),e[2]=o.iconClassName,e[3]=i):i=e[3];let u;e[4]!==c||e[5]!==i?(u=s.jsx(c,{size:16,className:i}),e[4]=c,e[5]=i,e[6]=u):u=e[6];let x;e[7]!==l.title?(x=s.jsx("span",{className:"min-w-0 flex-1 text-sm font-medium leading-snug text-foreground line-clamp-2",children:l.title}),e[7]=l.title,e[8]=x):x=e[8];let h;e[9]!==n||e[10]!==a||e[11]!==l?(h=s.jsx(ls,{item:l,assignee:a,assignedBy:n}),e[9]=n,e[10]=a,e[11]=l,e[12]=h):h=e[12];let g;e[13]!==u||e[14]!==x||e[15]!==h?(g=s.jsxs("div",{className:"flex items-start gap-2",children:[u,x,h]}),e[13]=u,e[14]=x,e[15]=h,e[16]=g):g=e[16];let N;e[17]!==d?(N=d&&s.jsx("p",{className:"line-clamp-2 pl-6 text-xs leading-snug text-muted-foreground",children:d}),e[17]=d,e[18]=N):N=e[18];let b;e[19]!==l?(b=(Ct(l)||l.priority!=="none"||!!l.dueDate)&&s.jsxs("div",{className:"flex flex-wrap items-center gap-1.5 pl-6",children:[Ct(l)&&s.jsx(es,{}),l.priority!=="none"&&s.jsx(ts,{priority:l.priority}),l.dueDate&&s.jsx(ss,{iso:l.dueDate})]}),e[19]=l,e[20]=b):b=e[20];let j;return e[21]!==l.id||e[22]!==l.title||e[23]!==r||e[24]!==b||e[25]!==m||e[26]!==g||e[27]!==N?(j=s.jsxs("button",{type:"button",draggable:!0,"data-flip-id":f,onDragStart:m,onClick:r,className:"group flex cursor-grab flex-col gap-2 rounded-xl bg-card px-3 py-2.5 text-left card-shadow transition-colors will-change-transform hover:bg-accent/60 active:cursor-grabbing",title:p,children:[g,N,b]}),e[21]=l.id,e[22]=l.title,e[23]=r,e[24]=b,e[25]=m,e[26]=g,e[27]=N,e[28]=j):j=e[28],j}function ol(t){const e=O.c(30),{item:l,assignee:a,assignedBy:n,onOpen:r}=t,o=ae[l.status],c=o.icon;let d;e[0]!==o.iconClassName?(d=w("shrink-0",o.iconClassName),e[0]=o.iconClassName,e[1]=d):d=e[1];let f;e[2]!==c||e[3]!==d?(f=s.jsx(c,{size:16,className:d}),e[2]=c,e[3]=d,e[4]=f):f=e[4];let m;e[5]!==l.title?(m=s.jsx("span",{className:"min-w-0 flex-1 truncate text-sm font-medium text-foreground",children:l.title}),e[5]=l.title,e[6]=m):m=e[6];let p;e[7]!==l?(p=Ct(l)&&s.jsx(es,{}),e[7]=l,e[8]=p):p=e[8];let i;e[9]!==l.priority?(i=l.priority!=="none"&&s.jsx("span",{className:"hidden sm:inline-flex",children:s.jsx(ts,{priority:l.priority})}),e[9]=l.priority,e[10]=i):i=e[10];let u;e[11]!==l.dueDate?(u=l.dueDate&&s.jsx("span",{className:"hidden sm:inline-flex",children:s.jsx(ss,{iso:l.dueDate})}),e[11]=l.dueDate,e[12]=u):u=e[12];let x;e[13]!==n||e[14]!==a||e[15]!==l?(x=s.jsx(ls,{item:l,assignee:a,assignedBy:n}),e[13]=n,e[14]=a,e[15]=l,e[16]=x):x=e[16];let h;e[17]!==l.createdAt?(h=hs(new Date(l.createdAt)),e[17]=l.createdAt,e[18]=h):h=e[18];let g;e[19]!==h?(g=s.jsx("span",{className:"hidden shrink-0 text-[11px] text-muted-foreground/70 sm:inline",children:h}),e[19]=h,e[20]=g):g=e[20];let N;return e[21]!==r||e[22]!==f||e[23]!==m||e[24]!==p||e[25]!==i||e[26]!==u||e[27]!==x||e[28]!==g?(N=s.jsxs("button",{type:"button",onClick:r,className:"flex items-center gap-3 rounded-xl bg-card px-4 py-3 text-left card-shadow transition-colors hover:bg-accent/60",children:[f,m,p,i,u,x,g]}),e[21]=r,e[22]=f,e[23]=m,e[24]=p,e[25]=i,e[26]=u,e[27]=x,e[28]=g,e[29]=N):N=e[29],N}const Rl=Object.freeze(Object.defineProperty({__proto__:null,TaskBoardPage:ns,default:tl},Symbol.toStringTag,{value:"Module"}));export{oe as P,ae as S,Ms as T,Os as a,me as b,ns as c,Rl as i,$s as u};
|