decocms 4.263.2 → 4.263.4
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-DL3U1yq7.js → AlertCircle-BTYGLFie.js} +1 -1
- package/dist/client/assets/{AreaChart-DTwkuP_y.js → AreaChart-jerPjG-w.js} +1 -1
- package/dist/client/assets/{ArrowLeft-BDtQVDZJ.js → ArrowLeft-BajYEy7J.js} +1 -1
- package/dist/client/assets/{ArrowUp-DUua93WQ.js → ArrowUp-fnzebitz.js} +1 -1
- package/dist/client/assets/{Check-CFdAuLVR.js → Check-CJxsk2cd.js} +1 -1
- package/dist/client/assets/{CheckCircle-Ccs86bUg.js → CheckCircle-D8lsJrHv.js} +1 -1
- package/dist/client/assets/{ChevronDown-Bh9AZv82.js → ChevronDown-Chn5-yQ3.js} +1 -1
- package/dist/client/assets/{ChevronRight-Bt0Ps5hy.js → ChevronRight-BUEJ-jyA.js} +1 -1
- package/dist/client/assets/{ChevronSelectorVertical-CbP69kXl.js → ChevronSelectorVertical-DuwT0Cdn.js} +1 -1
- package/dist/client/assets/{ChevronUp-CYbM4ZwP.js → ChevronUp-Bis3nYDt.js} +1 -1
- package/dist/client/assets/{Copy01-CKmyRUyl.js → Copy01-oY33F6A4.js} +1 -1
- package/dist/client/assets/{CreditCard01-DXJKk1Wt.js → CreditCard01-BEFAf8Rs.js} +1 -1
- package/dist/client/assets/{DotsVertical-C5qhPHKZ.js → DotsVertical-CmNP1NFD.js} +1 -1
- package/dist/client/assets/{Download01-DZdiDQUS.js → Download01-BOB13r_i.js} +1 -1
- package/dist/client/assets/{Eye-DFHNhYtx.js → Eye-BQM4yrzA.js} +1 -1
- package/dist/client/assets/{FilterLines-C01-F8gV.js → FilterLines-CM6IqjC1.js} +1 -1
- package/dist/client/assets/{Globe01-qBOiIpcJ.js → Globe01-BLkvMUGE.js} +1 -1
- package/dist/client/assets/{Globe04-DyPo8R4R.js → Globe04-CJdUUoxg.js} +1 -1
- package/dist/client/assets/{HardDrive-DMA6WwJi.js → HardDrive-BFDRJjzR.js} +1 -1
- package/dist/client/assets/{Key01-CQ2Pckpa.js → Key01-B5VoA08Z.js} +1 -1
- package/dist/client/assets/{LinkExternal01-CDWxDAhW.js → LinkExternal01-bgUoyTwQ.js} +1 -1
- package/dist/client/assets/{LockUnlocked01-BJDlnHNP.js → LockUnlocked01-o0Eo7MuU.js} +1 -1
- package/dist/client/assets/{LogOut01-DYTwrIyB.js → LogOut01-CKpl9BLq.js} +1 -1
- package/dist/client/assets/{Monitor01-CW9D8oQR.js → Monitor01-BHWFnGlJ.js} +1 -1
- package/dist/client/assets/{Palette-CYMwYnzJ.js → Palette-DAsj4nYm.js} +1 -1
- package/dist/client/assets/{Play-D5VBgg81.js → Play-Ir6C5jzg.js} +1 -1
- package/dist/client/assets/{Plus-DJBOKCXM.js → Plus-CySlFZzQ.js} +1 -1
- package/dist/client/assets/{SearchLg-D05XfMH4.js → SearchLg-BevUi4lQ.js} +1 -1
- package/dist/client/assets/{SearchMd-Bvk6cmtM.js → SearchMd-CUh5hEpd.js} +1 -1
- package/dist/client/assets/{Settings02-BXfVk1mb.js → Settings02-DxEKOFeo.js} +1 -1
- package/dist/client/assets/{Share07-DRhhhSu7.js → Share07-BAxn1THr.js} +1 -1
- package/dist/client/assets/{Shield01--vYJckXn.js → Shield01-Br0XuRfn.js} +1 -1
- package/dist/client/assets/{Stars01-Cfn7XpKF.js → Stars01-DGSNhagZ.js} +1 -1
- package/dist/client/assets/{Stars02-BEZaBHTc.js → Stars02-DNyS1gcT.js} +1 -1
- package/dist/client/assets/{Sun-CxlEqCDi.js → Sun-CSIUl7xv.js} +1 -1
- package/dist/client/assets/{SwitchHorizontal01-BPoIdNhd.js → SwitchHorizontal01-C8-bgNQy.js} +1 -1
- package/dist/client/assets/{Tool01-D15DzDIB.js → Tool01-BjI8gxt5.js} +1 -1
- package/dist/client/assets/{Tool02-DcVuymPV.js → Tool02-Ct3UvI4j.js} +1 -1
- package/dist/client/assets/{Trash01-rd-vb1MA.js → Trash01-lppJr9kF.js} +1 -1
- package/dist/client/assets/{TrendUp01-BBA3UF71.js → TrendUp01-vMMFYqH0.js} +1 -1
- package/dist/client/assets/{Upload01-CURnTiOx.js → Upload01-CePHCnzY.js} +1 -1
- package/dist/client/assets/{User01-CGWss5jM.js → User01-BqNQxSWl.js} +1 -1
- package/dist/client/assets/{UserSquare-DNzPXyDT.js → UserSquare-kfbSM3R7.js} +1 -1
- package/dist/client/assets/{Users01-B043Q3B_.js → Users01-GyxqhIQS.js} +1 -1
- package/dist/client/assets/{Users03-CeFJXyBc.js → Users03-C8z46zgV.js} +1 -1
- package/dist/client/assets/{XCircle-vpb-OIYV.js → XCircle-BMgdweBK.js} +1 -1
- package/dist/client/assets/{XClose-Ca1B07wN.js → XClose-DnnJN04M.js} +1 -1
- package/dist/client/assets/{YAxis-CEmbkD2K.js → YAxis-CFtxNrGp.js} +1 -1
- package/dist/client/assets/{Zap-DoBPpnDg.js → Zap-f9eGztfW.js} +1 -1
- package/dist/client/assets/{ZapSquare-B52zBMI0.js → ZapSquare-Z5gRSAcI.js} +1 -1
- package/dist/client/assets/{access-gate-BT3_V_pA.js → access-gate-CESQMRUh.js} +1 -1
- package/dist/client/assets/{agent-icon-Dt8TTBNR.js → agent-icon-BpKbS82g.js} +1 -1
- package/dist/client/assets/{agents-list-BVmLhzQp.js → agents-list-DisSvTPm.js} +1 -1
- package/dist/client/assets/{ai-providers-nCIA03hu.js → ai-providers-DvMfqbG9.js} +1 -1
- package/dist/client/assets/{alert-CVrfLuO_.js → alert-Cjb2EB7F.js} +1 -1
- package/dist/client/assets/{alert-dialog-COKsRPdB.js → alert-dialog-_waxzl9D.js} +1 -1
- package/dist/client/assets/{api-keys-B2kzULLm.js → api-keys-DMd6myi1.js} +1 -1
- package/dist/client/assets/{app-editor-Bq3jQAI6.js → app-editor-BITYEeNm.js} +1 -1
- package/dist/client/assets/{auth-Dff1xvcy.js → auth-B5QCuHwo.js} +1 -1
- package/dist/client/assets/{auth-catchall-BXu-XwcE.js → auth-catchall-Db5A8udm.js} +1 -1
- package/dist/client/assets/{auth-entry-BjUIXBC9.js → auth-entry-orPtywn8.js} +1 -1
- package/dist/client/assets/{auth-split-layout-DyTFtZvs.js → auth-split-layout-BSXvcLZl.js} +1 -1
- package/dist/client/assets/{authenticate-and-persist-oauth-BpXFlbw1.js → authenticate-and-persist-oauth-CxmxlpAo.js} +1 -1
- package/dist/client/assets/{automation-list-row-BcptvIDe.js → automation-list-row-kxVusV6D.js} +1 -1
- package/dist/client/assets/{automation-runs-l52V2CDe.js → automation-runs-aScQH7yb.js} +1 -1
- package/dist/client/assets/{automations-A1r9cPLm.js → automations-DFz--AKt.js} +1 -1
- package/dist/client/assets/{avatar-CKLVepem.js → avatar-BYLlYMrS.js} +1 -1
- package/dist/client/assets/{badge-B2mtA9Oj.js → badge-DYcNbwP1.js} +1 -1
- package/dist/client/assets/{block-document-CTUlzaXj.js → block-document-8DQ-Aj-N.js} +1 -1
- package/dist/client/assets/{buckets-CqwW0fPK.js → buckets-CsXTuRWK.js} +1 -1
- package/dist/client/assets/{bulk-category-panel-DOf0qDJu.js → bulk-category-panel-0Znxf5_5.js} +1 -1
- package/dist/client/assets/{capability-load-error-Bu1DMqyM.js → capability-load-error-CDe54R-X.js} +1 -1
- package/dist/client/assets/{cards-CnXEidEU.js → cards-DOZsSvdL.js} +1 -1
- package/dist/client/assets/{category-editor-C2Penmxb.js → category-editor-CxuIuX9c.js} +1 -1
- package/dist/client/assets/{chart-mQfq8dm_.js → chart-CoRPyY38.js} +1 -1
- package/dist/client/assets/{chat-context-IctGRlpl.js → chat-context-Cdt5JBGq.js} +1 -1
- package/dist/client/assets/{checkbox-DjvUsSry.js → checkbox-Z9SepXvp.js} +1 -1
- package/dist/client/assets/{choose-editor-D2hlr7Vq.js → choose-editor-CHzYYlGa.js} +1 -1
- package/dist/client/assets/{cli-auth-success-odBhJDfC.js → cli-auth-success-DJY05d2g.js} +1 -1
- package/dist/client/assets/{collection-detail-EdlXGuH5.js → collection-detail-BqqcCOIU.js} +1 -1
- package/dist/client/assets/{collection-display-button-BeWwcB8v.js → collection-display-button-BEoC7J9b.js} +1 -1
- package/dist/client/assets/{collection-search-BcNT9wqV.js → collection-search-BQ3PDw8g.js} +1 -1
- package/dist/client/assets/{collection-table-wrapper-DEX-95qA.js → collection-table-wrapper-CTaHHWBu.js} +1 -1
- package/dist/client/assets/{collection-tabs-QBx9fiO8.js → collection-tabs-BHE3DhBM.js} +1 -1
- package/dist/client/assets/{command-Bciip2fK.js → command-Cj_b6QuL.js} +1 -1
- package/dist/client/assets/{commerce-onboarding-BrgV_E6e.js → commerce-onboarding-DwEGH-Pm.js} +1 -1
- package/dist/client/assets/{connect-CJeRXYpO.js → connect-DoOLtkHq.js} +1 -1
- package/dist/client/assets/{connection-CIVlVP4z.js → connection-Bxg7evEC.js} +1 -1
- package/dist/client/assets/{connection-card-DLmi_xFL.js → connection-card-Bwep8BgY.js} +1 -1
- package/dist/client/assets/{connection-detail-DLHrsg7S.js → connection-detail-vMhRTHvc.js} +1 -1
- package/dist/client/assets/{connection-form-helpers-Bd1zJpcE.js → connection-form-helpers-ChTIA9-X.js} +1 -1
- package/dist/client/assets/{connections-CaZTNlzO.js → connections-DABID4YF.js} +1 -1
- package/dist/client/assets/{decopilot-sse-pool-0EWVughz.js → decopilot-sse-pool-CMc1xBx0.js} +1 -1
- package/dist/client/assets/{dialog-BVOhf6JL.js → dialog-K8-1cCDF.js} +1 -1
- package/dist/client/assets/{domain-settings-1pFiPcDs.js → domain-settings-CTNhof1S.js} +1 -1
- package/dist/client/assets/{drawer-ygpURzdE.js → drawer-ClBcSM08.js} +1 -1
- package/dist/client/assets/{dropdown-menu-BpdWhSA7.js → dropdown-menu-C-7wwHBe.js} +1 -1
- package/dist/client/assets/{empty-state-CMCoRH7w.js → empty-state-CSKHHWG6.js} +1 -1
- package/dist/client/assets/{extract-connection-data-BRWpOoZu.js → extract-connection-data-C1XM4jmB.js} +1 -1
- package/dist/client/assets/{file-explorer-DLBtkOjU.js → file-explorer-BCiGm1Z3.js} +1 -1
- package/dist/client/assets/{file-type-icon-DQDAdTqu.js → file-type-icon-BrVi1nrA.js} +1 -1
- package/dist/client/assets/{form-DJoSkHk7.js → form-Cv16yv_N.js} +1 -1
- package/dist/client/assets/{general-CBRT6s1c.js → general-DD84yKYj.js} +1 -1
- package/dist/client/assets/{github-repo-picker-CPPjWOCA.js → github-repo-picker-DEedlZZB.js} +1 -1
- package/dist/client/assets/{hooks-CtnSCLIe.js → hooks-BsA5QClW.js} +1 -1
- package/dist/client/assets/{index-fZpMDfe6.js → index-BAzBxxL9.js} +3 -3
- package/dist/client/assets/{index-Bks1FS3f.js → index-BL55GcNa.js} +1 -1
- package/dist/client/assets/{index-D9nsJyXn.js → index-Bsu_VttZ.js} +43 -43
- package/dist/client/assets/{index-BJiFP4oP.js → index-CiZciEsK.js} +1 -1
- package/dist/client/assets/{index-DTM9lZbn.js → index-D00QDYEH.js} +1 -1
- package/dist/client/assets/{index-xXm-vpSs.js → index-D6BHz3vf.js} +1 -1
- package/dist/client/assets/{index-DZsKkAKU.js → index-DJjhCQSJ.js} +1 -1
- package/dist/client/assets/{index-CVkGlHYs.js → index-DgS45S3b.js} +1 -1
- package/dist/client/assets/{index-AZvP0lkz.js → index-DwV5rndB.js} +1 -1
- package/dist/client/assets/{index-BeW-gOXM.js → index-Rsz-z5IL.js} +1 -1
- package/dist/client/assets/{index-redirect-iRkpwVGO.js → index-redirect-CbiwayST.js} +1 -1
- package/dist/client/assets/{infra-billing-DFpE7R9j.js → infra-billing-DTpLPCfp.js} +1 -1
- package/dist/client/assets/{input-v4c8p5Ob.js → input-CvrE4LEJ.js} +1 -1
- package/dist/client/assets/{integration-icon-DKqG-Mpx.js → integration-icon-BnqPyHmt.js} +1 -1
- package/dist/client/assets/{invite-member-dialog-3-Aihs7O.js → invite-member-dialog-CzYyGuZd.js} +1 -1
- package/dist/client/assets/{label-DOL_dkX5.js → label-CXiyMNnc.js} +1 -1
- package/dist/client/assets/{layout-DHLrZup9.js → layout-CsrmRfJK.js} +1 -1
- package/dist/client/assets/login-BM_k5b-A.js +1 -0
- package/dist/client/assets/{mcp-oauth-MtFdjicX.js → mcp-oauth-BY7cxtZI.js} +1 -1
- package/dist/client/assets/{members-jHzwIadJ.js → members-Bee-glAy.js} +1 -1
- package/dist/client/assets/{monaco-editor-DOnHAZIR.js → monaco-editor-ywPI1t16.js} +1 -1
- package/dist/client/assets/{monitoring-stats-row-8XgEvO3D.js → monitoring-stats-row-q0lDnj97.js} +1 -1
- package/dist/client/assets/{multi-select-DxScFuSI.js → multi-select-6289Ji5Q.js} +1 -1
- package/dist/client/assets/{oauth-callback-DTWHq_Fr.js → oauth-callback-BI2EXPp9.js} +1 -1
- package/dist/client/assets/{oauth-callback-ai-provider-DjoClVq8.js → oauth-callback-ai-provider-CPN_n1pK.js} +1 -1
- package/dist/client/assets/{onboarding-CyYYA_IO.js → onboarding-B1OeoqRD.js} +1 -1
- package/dist/client/assets/{org-layout-DsGm5b87.js → org-layout-CJfUhWa8.js} +1 -1
- package/dist/client/assets/{organization-choice-WY-H2NEY.js → organization-choice-BI4eKBGM.js} +1 -1
- package/dist/client/assets/{orgs-DggiyP30.js → orgs-DA0vFIQ1.js} +1 -1
- package/dist/client/assets/{page-seo-form-BoZrAFLO.js → page-seo-form-jRWN82Bz.js} +1 -1
- package/dist/client/assets/{popover-DSZP75un.js → popover-wGCNVbgm.js} +1 -1
- package/dist/client/assets/{post-calendar-BTuD64kJ.js → post-calendar-pijaG7Tm.js} +1 -1
- package/dist/client/assets/{post-editor-Dwh3Mrlh.js → post-editor-B-3AULjS.js} +1 -1
- package/dist/client/assets/{primitives-aZbwao0Z.js → primitives-Do4YdhnP.js} +1 -1
- package/dist/client/assets/{profile-B_6pDwzu.js → profile-GePno2yS.js} +1 -1
- package/dist/client/assets/{project-app-view-LijoL6le.js → project-app-view-CYxJURVY.js} +1 -1
- package/dist/client/assets/record-editor-CnkB9zNF.js +1 -0
- package/dist/client/assets/{redirect-editor-bt0UR5sd.js → redirect-editor-DJr4emyY.js} +1 -1
- package/dist/client/assets/registry-Br8pQVRC.js +2 -0
- package/dist/client/assets/{registry-layout-Da3tVRcY.js → registry-layout-BB4KsmkV.js} +1 -1
- package/dist/client/assets/{reports-DjBTZdT2.js → reports-DzSMI3MZ.js} +1 -1
- package/dist/client/assets/{require-capability-CF9r_mzF.js → require-capability-Cr0gRW-f.js} +1 -1
- package/dist/client/assets/{required-auth-layout-XqEbPK8M.js → required-auth-layout-ykPgRGg9.js} +1 -1
- package/dist/client/assets/{reset-password-DEL_G7hS.js → reset-password-CWtcCFTs.js} +1 -1
- package/dist/client/assets/{roles-DDOKq874.js → roles-Cy9PVzUY.js} +1 -1
- package/dist/client/assets/{search-input-4SLm_iMt.js → search-input-DzsO4XKy.js} +1 -1
- package/dist/client/assets/{secrets-CJLKcRa3.js → secrets-DlU_ZsyZ.js} +1 -1
- package/dist/client/assets/{sections-editor-CLwG1W2k.js → sections-editor-Cj6XZcig.js} +1 -1
- package/dist/client/assets/{select-D9OtHuoQ.js → select-B2e4NALY.js} +1 -1
- package/dist/client/assets/{select-model-pYcHYqNY.js → select-model-BsIRDtab.js} +1 -1
- package/dist/client/assets/{self-tool-result-C2SaSBOS.js → self-tool-result-BBoUTXvN.js} +1 -1
- package/dist/client/assets/{seo-editor-DGd5xF_D.js → seo-editor-NyY02_7W.js} +1 -1
- package/dist/client/assets/{settings-layout-UMPp-PK8.js → settings-layout-DdXTfyPZ.js} +1 -1
- package/dist/client/assets/{shell-controls-CEjTnZRA.js → shell-controls-DQlWaCbv.js} +1 -1
- package/dist/client/assets/{shell-layout-0_Y9WTC5.js → shell-layout-BH-NXnM4.js} +1 -1
- package/dist/client/assets/{spinner-DnK6LAO-.js → spinner-Bb-1R-dk.js} +1 -1
- package/dist/client/assets/{sprints-DTKQS9tP.js → sprints-C6bMPt1I.js} +1 -1
- package/dist/client/assets/{sso-Bj9k9yp_.js → sso-Dvg67Md-.js} +1 -1
- package/dist/client/assets/{store-DofhpRf4.js → store-DpbTTyvZ.js} +1 -1
- package/dist/client/assets/store-registry-BRvvONYG.js +2 -0
- package/dist/client/assets/{switch-Dd8SWBtK.js → switch-BvYQVlYb.js} +1 -1
- package/dist/client/assets/{synced-repos-0UH9NuJE.js → synced-repos-4t6ZPuYG.js} +1 -1
- package/dist/client/assets/{tab-id-W4sfonX1.js → tab-id-DMd10Dlk.js} +1 -1
- package/dist/client/assets/{table-B28U6WCV.js → table-rERv-Q2u.js} +1 -1
- package/dist/client/assets/{tabs-CNvz9wkq.js → tabs-C3QvtS8u.js} +1 -1
- package/dist/client/assets/{task-key-CTiJU5_h.js → task-key-sEZ4dWP_.js} +1 -1
- package/dist/client/assets/{tasks-BsRXKJkD.js → tasks-Rs06jPVw.js} +1 -1
- package/dist/client/assets/{textarea-BmWik9O5.js → textarea-DZcoj6k2.js} +1 -1
- package/dist/client/assets/{toggle-group-B1ujv-Tj.js → toggle-group-CT-LedBS.js} +1 -1
- package/dist/client/assets/{toolbar-Cos-gS1a.js → toolbar-DDbKD-Ay.js} +1 -1
- package/dist/client/assets/{track-Cth4u5b_.js → track-BoWa7pFa.js} +1 -1
- package/dist/client/assets/{types-Da-6shE5.js → types-CHsUC77L.js} +1 -1
- package/dist/client/assets/{use-ai-providers-bDkOAByr.js → use-ai-providers-vhWA7gSP.js} +1 -1
- package/dist/client/assets/{use-api-keys-Bi2l36nz.js → use-api-keys-CwfibyAQ.js} +1 -1
- package/dist/client/assets/{use-automations-BeKjYp7F.js → use-automations-CqECqdXg.js} +1 -1
- package/dist/client/assets/{use-autosave-ImljMikW.js → use-autosave-CTd3ujOq.js} +1 -1
- package/dist/client/assets/{use-clock-tick-BIn9fxJl.js → use-clock-tick-c_pjCx_y.js} +1 -1
- package/dist/client/assets/{use-commerce-diagnostic-UqRl5JGR.js → use-commerce-diagnostic-BpYk1Ih5.js} +1 -1
- package/dist/client/assets/{use-connection-DJ5BvXkS.js → use-connection-Brp0ROSB.js} +1 -1
- package/dist/client/assets/{use-copy-BHeXFKUG.js → use-copy-JYzS-t0x.js} +1 -1
- package/dist/client/assets/{use-create-virtual-mcp-CTghZh27.js → use-create-virtual-mcp-T4W7BRl2.js} +1 -1
- package/dist/client/assets/{use-debounced-autosave-BEoE5zu3.js → use-debounced-autosave-Lcvsez5G.js} +1 -1
- package/dist/client/assets/{use-debounced-value-d2xvAJAf.js → use-debounced-value-CHx-_V6p.js} +1 -1
- package/dist/client/assets/{use-decopilot-events-U00f_DNo.js → use-decopilot-events-EyNfu7Kq.js} +1 -1
- package/dist/client/assets/{use-delete-connection-KttG6pDD.js → use-delete-connection-9tv1jgN0.js} +1 -1
- package/dist/client/assets/{use-deployment-admin-BxGtVq0R.js → use-deployment-admin-BH2VfdtE.js} +1 -1
- package/dist/client/assets/{use-file-configs-ivKLtwVT.js → use-file-configs-EX9fsqJc.js} +1 -1
- package/dist/client/assets/{use-infinite-scroll-C3woVgJJ.js → use-infinite-scroll-BwpbIlWm.js} +1 -1
- package/dist/client/assets/{use-join-requests-Ce2D10xE.js → use-join-requests-D3OvgAR4.js} +1 -1
- package/dist/client/assets/{use-mcp-client-BixLZLmc.js → use-mcp-client-DP99b3Me.js} +1 -1
- package/dist/client/assets/{use-mcp-tools-DhYUR3cu.js → use-mcp-tools-CjeO7xTP.js} +1 -1
- package/dist/client/assets/{use-members-DqBCB9wB.js → use-members-Fg8xu9zL.js} +1 -1
- package/dist/client/assets/{use-navigate-to-agent-COcz3Nee.js → use-navigate-to-agent-B3WHCfCa.js} +1 -1
- package/dist/client/assets/{use-org-auth-client-Bm7ydyvS.js → use-org-auth-client-CbgB99m_.js} +1 -1
- package/dist/client/assets/{use-org-repo-syncs-B_4SIVWY.js → use-org-repo-syncs-mnINiKx8.js} +1 -1
- package/dist/client/assets/{use-org-sso-9a_THghN.js → use-org-sso-JpsBVP_t.js} +1 -1
- package/dist/client/assets/{use-organization-roles-CNEl3NFe.js → use-organization-roles-SDielVSw.js} +1 -1
- package/dist/client/assets/{use-organization-settings-B4nKr0f2.js → use-organization-settings-CjuBssHq.js} +1 -1
- package/dist/client/assets/{use-registry-connections-C7LyRS1M.js → use-registry-connections-DYlN_mpo.js} +1 -1
- package/dist/client/assets/{use-secrets-Chh3ojOY.js → use-secrets-BFX9kjjo.js} +1 -1
- package/dist/client/assets/{use-section-preview-base-Db24sM6t.js → use-section-preview-base-CMJMRXCJ.js} +1 -1
- package/dist/client/assets/{use-status-sounds-DFis4MWx.js → use-status-sounds-YIMtdt9I.js} +1 -1
- package/dist/client/assets/{use-tags-DSiXReOW.js → use-tags-CGvsLsNg.js} +1 -1
- package/dist/client/assets/{use-view-mode-5S7L8whl.js → use-view-mode-DcnCbu_t.js} +1 -1
- package/dist/client/assets/{use-virtual-mcp-CxECG99q.js → use-virtual-mcp-Dg7xWNG-.js} +1 -1
- package/dist/client/assets/useInfiniteQuery-oSGVjzuL.js +1 -0
- package/dist/client/assets/useSuspenseInfiniteQuery-Cu_rUEsy.js +1 -0
- package/dist/client/assets/{users-DegqgBxw.js → users-H55pONgO.js} +1 -1
- package/dist/client/assets/{variant-calendar-Ca_JbtN7.js → variant-calendar-B3KUJEEH.js} +1 -1
- package/dist/client/assets/{view-mode-toggle-rkJlH4vl.js → view-mode-toggle-CVgUIU1G.js} +1 -1
- package/dist/client/index.html +1 -1
- package/dist/server/cli.js +456 -452
- package/dist/server/migrate.js +113 -109
- package/dist/server/server.js +4 -4
- package/package.json +1 -1
- package/dist/client/assets/login-BAB1aLje.js +0 -1
- package/dist/client/assets/record-editor-BJycqOk0.js +0 -1
- package/dist/client/assets/registry-D7lhOlQc.js +0 -2
- package/dist/client/assets/store-registry-Cuo4Kfxl.js +0 -2
- package/dist/client/assets/useInfiniteQuery-D6nR9UJf.js +0 -1
- package/dist/client/assets/useSuspenseInfiniteQuery-BfIWoPo8.js +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{c as oe,o as yu,cv as bu,cw as _u,z as gu,K as $o,cr as ce,c9 as k,cd as he,aY as B,r as F,n as z,j as D}from"./index-fZpMDfe6.js";import"./index-DTM9lZbn.js";async function Uo(r){if(!r.getServerCapabilities()?.prompts)return{prompts:[]};try{return await r.listPrompts()}catch(t){if(t instanceof bu&&t.code===_u.MethodNotFound)return{prompts:[]};throw t}}async function Lf(r,e,t){if(!r.getServerCapabilities()?.prompts)throw new Error("Prompts capability not supported");return await r.getPrompt({name:e,arguments:t??{}})}function Ff(r){const e=oe.c(12);let t,n;e[0]!==r?({client:t,...n}=r,e[0]=r,e[1]=t,e[2]=n):(t=e[1],n=e[2]);let a;e[3]!==t?(a=$o.mcpPromptsList(t),e[3]=t,e[4]=a):a=e[4];let i;e[5]!==t?(i=()=>Uo(t),e[5]=t,e[6]=i):i=e[6];const o=n.staleTime??3e4;let u;return e[7]!==n||e[8]!==a||e[9]!==i||e[10]!==o?(u={...n,queryKey:a,queryFn:i,staleTime:o,retry:!1},e[7]=n,e[8]=a,e[9]=i,e[10]=o,e[11]=u):u=e[11],gu(u)}function Hf(r){const e=oe.c(12);let t,n;e[0]!==r?({client:t,...n}=r,e[0]=r,e[1]=t,e[2]=n):(t=e[1],n=e[2]);let a;e[3]!==t?(a=$o.mcpPromptsList(t),e[3]=t,e[4]=a):a=e[4];let i;e[5]!==t?(i=()=>Uo(t),e[5]=t,e[6]=i):i=e[6];const o=n.staleTime??3e4;let u;return e[7]!==n||e[8]!==a||e[9]!==i||e[10]!==o?(u={...n,queryKey:a,queryFn:i,staleTime:o,retry:!1},e[7]=n,e[8]=a,e[9]=i,e[10]=o,e[11]=u):u=e[11],yu(u)}var Oe,Bn;function K(){if(Bn)return Oe;Bn=1;var r=Array.isArray;return Oe=r,Oe}var Te,Mn;function ko(){if(Mn)return Te;Mn=1;var r=typeof ce=="object"&&ce&&ce.Object===Object&&ce;return Te=r,Te}var Pe,Ln;function $(){if(Ln)return Pe;Ln=1;var r=ko(),e=typeof self=="object"&&self&&self.Object===Object&&self,t=r||e||Function("return this")();return Pe=t,Pe}var Re,Fn;function ue(){if(Fn)return Re;Fn=1;var r=$(),e=r.Symbol;return Re=e,Re}var xe,Hn;function mu(){if(Hn)return xe;Hn=1;var r=ue(),e=Object.prototype,t=e.hasOwnProperty,n=e.toString,a=r?r.toStringTag:void 0;function i(o){var u=t.call(o,a),s=o[a];try{o[a]=void 0;var c=!0}catch{}var f=n.call(o);return c&&(u?o[a]=s:delete o[a]),f}return xe=i,xe}var Ae,Kn;function qu(){if(Kn)return Ae;Kn=1;var r=Object.prototype,e=r.toString;function t(n){return e.call(n)}return Ae=t,Ae}var Ce,Gn;function V(){if(Gn)return Ce;Gn=1;var r=ue(),e=mu(),t=qu(),n="[object Null]",a="[object Undefined]",i=r?r.toStringTag:void 0;function o(u){return u==null?u===void 0?a:n:i&&i in Object(u)?e(u):t(u)}return Ce=o,Ce}var Ee,$n;function X(){if($n)return Ee;$n=1;function r(e){return e!=null&&typeof e=="object"}return Ee=r,Ee}var Ie,Un;function se(){if(Un)return Ie;Un=1;var r=V(),e=X(),t="[object Symbol]";function n(a){return typeof a=="symbol"||e(a)&&r(a)==t}return Ie=n,Ie}var je,kn;function Sn(){if(kn)return je;kn=1;var r=K(),e=se(),t=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,n=/^\w*$/;function a(i,o){if(r(i))return!1;var u=typeof i;return u=="number"||u=="symbol"||u=="boolean"||i==null||e(i)?!0:n.test(i)||!t.test(i)||o!=null&&i in Object(o)}return je=a,je}var Ne,Wn;function W(){if(Wn)return Ne;Wn=1;function r(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}return Ne=r,Ne}var De,zn;function On(){if(zn)return De;zn=1;var r=V(),e=W(),t="[object AsyncFunction]",n="[object Function]",a="[object GeneratorFunction]",i="[object Proxy]";function o(u){if(!e(u))return!1;var s=r(u);return s==n||s==a||s==t||s==i}return De=o,De}var Be,Vn;function wu(){if(Vn)return Be;Vn=1;var r=$(),e=r["__core-js_shared__"];return Be=e,Be}var Me,Xn;function Su(){if(Xn)return Me;Xn=1;var r=wu(),e=(function(){var n=/[^.]+$/.exec(r&&r.keys&&r.keys.IE_PROTO||"");return n?"Symbol(src)_1."+n:""})();function t(n){return!!e&&e in n}return Me=t,Me}var Le,Yn;function Wo(){if(Yn)return Le;Yn=1;var r=Function.prototype,e=r.toString;function t(n){if(n!=null){try{return e.call(n)}catch{}try{return n+""}catch{}}return""}return Le=t,Le}var Fe,Jn;function Ou(){if(Jn)return Fe;Jn=1;var r=On(),e=Su(),t=W(),n=Wo(),a=/[\\^$.*+?()[\]{}|]/g,i=/^\[object .+?Constructor\]$/,o=Function.prototype,u=Object.prototype,s=o.toString,c=u.hasOwnProperty,f=RegExp("^"+s.call(c).replace(a,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function l(h){if(!t(h)||e(h))return!1;var v=r(h)?f:i;return v.test(n(h))}return Fe=l,Fe}var He,Zn;function Tu(){if(Zn)return He;Zn=1;function r(e,t){return e?.[t]}return He=r,He}var Ke,Qn;function Y(){if(Qn)return Ke;Qn=1;var r=Ou(),e=Tu();function t(n,a){var i=e(n,a);return r(i)?i:void 0}return Ke=t,Ke}var Ge,ea;function be(){if(ea)return Ge;ea=1;var r=Y(),e=r(Object,"create");return Ge=e,Ge}var $e,ra;function Pu(){if(ra)return $e;ra=1;var r=be();function e(){this.__data__=r?r(null):{},this.size=0}return $e=e,$e}var Ue,ta;function Ru(){if(ta)return Ue;ta=1;function r(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}return Ue=r,Ue}var ke,na;function xu(){if(na)return ke;na=1;var r=be(),e="__lodash_hash_undefined__",t=Object.prototype,n=t.hasOwnProperty;function a(i){var o=this.__data__;if(r){var u=o[i];return u===e?void 0:u}return n.call(o,i)?o[i]:void 0}return ke=a,ke}var We,aa;function Au(){if(aa)return We;aa=1;var r=be(),e=Object.prototype,t=e.hasOwnProperty;function n(a){var i=this.__data__;return r?i[a]!==void 0:t.call(i,a)}return We=n,We}var ze,ia;function Cu(){if(ia)return ze;ia=1;var r=be(),e="__lodash_hash_undefined__";function t(n,a){var i=this.__data__;return this.size+=this.has(n)?0:1,i[n]=r&&a===void 0?e:a,this}return ze=t,ze}var Ve,oa;function Eu(){if(oa)return Ve;oa=1;var r=Pu(),e=Ru(),t=xu(),n=Au(),a=Cu();function i(o){var u=-1,s=o==null?0:o.length;for(this.clear();++u<s;){var c=o[u];this.set(c[0],c[1])}}return i.prototype.clear=r,i.prototype.delete=e,i.prototype.get=t,i.prototype.has=n,i.prototype.set=a,Ve=i,Ve}var Xe,ua;function Iu(){if(ua)return Xe;ua=1;function r(){this.__data__=[],this.size=0}return Xe=r,Xe}var Ye,sa;function Tn(){if(sa)return Ye;sa=1;function r(e,t){return e===t||e!==e&&t!==t}return Ye=r,Ye}var Je,ca;function _e(){if(ca)return Je;ca=1;var r=Tn();function e(t,n){for(var a=t.length;a--;)if(r(t[a][0],n))return a;return-1}return Je=e,Je}var Ze,fa;function ju(){if(fa)return Ze;fa=1;var r=_e(),e=Array.prototype,t=e.splice;function n(a){var i=this.__data__,o=r(i,a);if(o<0)return!1;var u=i.length-1;return o==u?i.pop():t.call(i,o,1),--this.size,!0}return Ze=n,Ze}var Qe,la;function Nu(){if(la)return Qe;la=1;var r=_e();function e(t){var n=this.__data__,a=r(n,t);return a<0?void 0:n[a][1]}return Qe=e,Qe}var er,da;function Du(){if(da)return er;da=1;var r=_e();function e(t){return r(this.__data__,t)>-1}return er=e,er}var rr,ha;function Bu(){if(ha)return rr;ha=1;var r=_e();function e(t,n){var a=this.__data__,i=r(a,t);return i<0?(++this.size,a.push([t,n])):a[i][1]=n,this}return rr=e,rr}var tr,va;function ge(){if(va)return tr;va=1;var r=Iu(),e=ju(),t=Nu(),n=Du(),a=Bu();function i(o){var u=-1,s=o==null?0:o.length;for(this.clear();++u<s;){var c=o[u];this.set(c[0],c[1])}}return i.prototype.clear=r,i.prototype.delete=e,i.prototype.get=t,i.prototype.has=n,i.prototype.set=a,tr=i,tr}var nr,pa;function Pn(){if(pa)return nr;pa=1;var r=Y(),e=$(),t=r(e,"Map");return nr=t,nr}var ar,ya;function Mu(){if(ya)return ar;ya=1;var r=Eu(),e=ge(),t=Pn();function n(){this.size=0,this.__data__={hash:new r,map:new(t||e),string:new r}}return ar=n,ar}var ir,ba;function Lu(){if(ba)return ir;ba=1;function r(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}return ir=r,ir}var or,_a;function me(){if(_a)return or;_a=1;var r=Lu();function e(t,n){var a=t.__data__;return r(n)?a[typeof n=="string"?"string":"hash"]:a.map}return or=e,or}var ur,ga;function Fu(){if(ga)return ur;ga=1;var r=me();function e(t){var n=r(this,t).delete(t);return this.size-=n?1:0,n}return ur=e,ur}var sr,ma;function Hu(){if(ma)return sr;ma=1;var r=me();function e(t){return r(this,t).get(t)}return sr=e,sr}var cr,qa;function Ku(){if(qa)return cr;qa=1;var r=me();function e(t){return r(this,t).has(t)}return cr=e,cr}var fr,wa;function Gu(){if(wa)return fr;wa=1;var r=me();function e(t,n){var a=r(this,t),i=a.size;return a.set(t,n),this.size+=a.size==i?0:1,this}return fr=e,fr}var lr,Sa;function Rn(){if(Sa)return lr;Sa=1;var r=Mu(),e=Fu(),t=Hu(),n=Ku(),a=Gu();function i(o){var u=-1,s=o==null?0:o.length;for(this.clear();++u<s;){var c=o[u];this.set(c[0],c[1])}}return i.prototype.clear=r,i.prototype.delete=e,i.prototype.get=t,i.prototype.has=n,i.prototype.set=a,lr=i,lr}var dr,Oa;function $u(){if(Oa)return dr;Oa=1;var r=Rn(),e="Expected a function";function t(n,a){if(typeof n!="function"||a!=null&&typeof a!="function")throw new TypeError(e);var i=function(){var o=arguments,u=a?a.apply(this,o):o[0],s=i.cache;if(s.has(u))return s.get(u);var c=n.apply(this,o);return i.cache=s.set(u,c)||s,c};return i.cache=new(t.Cache||r),i}return t.Cache=r,dr=t,dr}var hr,Ta;function Uu(){if(Ta)return hr;Ta=1;var r=$u(),e=500;function t(n){var a=r(n,function(o){return i.size===e&&i.clear(),o}),i=a.cache;return a}return hr=t,hr}var vr,Pa;function ku(){if(Pa)return vr;Pa=1;var r=Uu(),e=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,t=/\\(\\)?/g,n=r(function(a){var i=[];return a.charCodeAt(0)===46&&i.push(""),a.replace(e,function(o,u,s,c){i.push(s?c.replace(t,"$1"):u||o)}),i});return vr=n,vr}var pr,Ra;function zo(){if(Ra)return pr;Ra=1;function r(e,t){for(var n=-1,a=e==null?0:e.length,i=Array(a);++n<a;)i[n]=t(e[n],n,e);return i}return pr=r,pr}var yr,xa;function Wu(){if(xa)return yr;xa=1;var r=ue(),e=zo(),t=K(),n=se(),a=r?r.prototype:void 0,i=a?a.toString:void 0;function o(u){if(typeof u=="string")return u;if(t(u))return e(u,o)+"";if(n(u))return i?i.call(u):"";var s=u+"";return s=="0"&&1/u==-1/0?"-0":s}return yr=o,yr}var br,Aa;function zu(){if(Aa)return br;Aa=1;var r=Wu();function e(t){return t==null?"":r(t)}return br=e,br}var _r,Ca;function Vo(){if(Ca)return _r;Ca=1;var r=K(),e=Sn(),t=ku(),n=zu();function a(i,o){return r(i)?i:e(i,o)?[i]:t(n(i))}return _r=a,_r}var gr,Ea;function qe(){if(Ea)return gr;Ea=1;var r=se();function e(t){if(typeof t=="string"||r(t))return t;var n=t+"";return n=="0"&&1/t==-1/0?"-0":n}return gr=e,gr}var mr,Ia;function xn(){if(Ia)return mr;Ia=1;var r=Vo(),e=qe();function t(n,a){a=r(a,n);for(var i=0,o=a.length;n!=null&&i<o;)n=n[e(a[i++])];return i&&i==o?n:void 0}return mr=t,mr}var qr,ja;function Xo(){if(ja)return qr;ja=1;var r=xn();function e(t,n,a){var i=t==null?void 0:r(t,n);return i===void 0?a:i}return qr=e,qr}Xo();var wr,Na;function Vu(){if(Na)return wr;Na=1;function r(e){return e==null}return wr=r,wr}var Xu=Vu();const Yu=k(Xu);var Sr,Da;function Ju(){if(Da)return Sr;Da=1;var r=V(),e=K(),t=X(),n="[object String]";function a(i){return typeof i=="string"||!e(i)&&t(i)&&r(i)==n}return Sr=a,Sr}var Zu=Ju();const Yo=k(Zu);var Qu=On();const es=k(Qu);W();var Or,Ba;function Jo(){if(Ba)return Or;Ba=1;var r=V(),e=X(),t="[object Number]";function n(a){return typeof a=="number"||e(a)&&r(a)==t}return Or=n,Or}var Tr,Ma;function rs(){if(Ma)return Tr;Ma=1;var r=Jo();function e(t){return r(t)&&t!=+t}return Tr=e,Tr}var ts=rs();const ns=k(ts);var as=Jo();const is=k(as);var fe=function(e){return Yo(e)&&e.indexOf("%")===e.length-1},G=function(e){return is(e)&&!ns(e)},ve=function(e){return G(e)||Yo(e)},os=function(e){return typeof e=="string"?e:e?e.displayName||e.name||"Component":""},Pr=function(e,t){for(var n=arguments.length,a=new Array(n>2?n-2:0),i=2;i<n;i++)a[i-2]=arguments[i]},Rr,La;function us(){if(La)return Rr;La=1;var r=ge();function e(){this.__data__=new r,this.size=0}return Rr=e,Rr}var xr,Fa;function ss(){if(Fa)return xr;Fa=1;function r(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}return xr=r,xr}var Ar,Ha;function cs(){if(Ha)return Ar;Ha=1;function r(e){return this.__data__.get(e)}return Ar=r,Ar}var Cr,Ka;function fs(){if(Ka)return Cr;Ka=1;function r(e){return this.__data__.has(e)}return Cr=r,Cr}var Er,Ga;function ls(){if(Ga)return Er;Ga=1;var r=ge(),e=Pn(),t=Rn(),n=200;function a(i,o){var u=this.__data__;if(u instanceof r){var s=u.__data__;if(!e||s.length<n-1)return s.push([i,o]),this.size=++u.size,this;u=this.__data__=new t(s)}return u.set(i,o),this.size=u.size,this}return Er=a,Er}var Ir,$a;function Zo(){if($a)return Ir;$a=1;var r=ge(),e=us(),t=ss(),n=cs(),a=fs(),i=ls();function o(u){var s=this.__data__=new r(u);this.size=s.size}return o.prototype.clear=e,o.prototype.delete=t,o.prototype.get=n,o.prototype.has=a,o.prototype.set=i,Ir=o,Ir}var jr,Ua;function ds(){if(Ua)return jr;Ua=1;var r="__lodash_hash_undefined__";function e(t){return this.__data__.set(t,r),this}return jr=e,jr}var Nr,ka;function hs(){if(ka)return Nr;ka=1;function r(e){return this.__data__.has(e)}return Nr=r,Nr}var Dr,Wa;function Qo(){if(Wa)return Dr;Wa=1;var r=Rn(),e=ds(),t=hs();function n(a){var i=-1,o=a==null?0:a.length;for(this.__data__=new r;++i<o;)this.add(a[i])}return n.prototype.add=n.prototype.push=e,n.prototype.has=t,Dr=n,Dr}var Br,za;function vs(){if(za)return Br;za=1;function r(e,t){for(var n=-1,a=e==null?0:e.length;++n<a;)if(t(e[n],n,e))return!0;return!1}return Br=r,Br}var Mr,Va;function eu(){if(Va)return Mr;Va=1;function r(e,t){return e.has(t)}return Mr=r,Mr}var Lr,Xa;function ru(){if(Xa)return Lr;Xa=1;var r=Qo(),e=vs(),t=eu(),n=1,a=2;function i(o,u,s,c,f,l){var h=s&n,v=o.length,b=u.length;if(v!=b&&!(h&&b>v))return!1;var d=l.get(o),p=l.get(u);if(d&&p)return d==u&&p==o;var q=-1,y=!0,O=s&a?new r:void 0;for(l.set(o,u),l.set(u,o);++q<v;){var _=o[q],P=u[q];if(c)var w=h?c(P,_,q,u,o,l):c(_,P,q,o,u,l);if(w!==void 0){if(w)continue;y=!1;break}if(O){if(!e(u,function(g,x){if(!t(O,x)&&(_===g||f(_,g,s,c,l)))return O.push(x)})){y=!1;break}}else if(!(_===P||f(_,P,s,c,l))){y=!1;break}}return l.delete(o),l.delete(u),y}return Lr=i,Lr}var Fr,Ya;function ps(){if(Ya)return Fr;Ya=1;var r=$(),e=r.Uint8Array;return Fr=e,Fr}var Hr,Ja;function ys(){if(Ja)return Hr;Ja=1;function r(e){var t=-1,n=Array(e.size);return e.forEach(function(a,i){n[++t]=[i,a]}),n}return Hr=r,Hr}var Kr,Za;function An(){if(Za)return Kr;Za=1;function r(e){var t=-1,n=Array(e.size);return e.forEach(function(a){n[++t]=a}),n}return Kr=r,Kr}var Gr,Qa;function bs(){if(Qa)return Gr;Qa=1;var r=ue(),e=ps(),t=Tn(),n=ru(),a=ys(),i=An(),o=1,u=2,s="[object Boolean]",c="[object Date]",f="[object Error]",l="[object Map]",h="[object Number]",v="[object RegExp]",b="[object Set]",d="[object String]",p="[object Symbol]",q="[object ArrayBuffer]",y="[object DataView]",O=r?r.prototype:void 0,_=O?O.valueOf:void 0;function P(w,g,x,A,E,T,I){switch(x){case y:if(w.byteLength!=g.byteLength||w.byteOffset!=g.byteOffset)return!1;w=w.buffer,g=g.buffer;case q:return!(w.byteLength!=g.byteLength||!T(new e(w),new e(g)));case s:case c:case h:return t(+w,+g);case f:return w.name==g.name&&w.message==g.message;case v:case d:return w==g+"";case l:var m=a;case b:var S=A&o;if(m||(m=i),w.size!=g.size&&!S)return!1;var R=I.get(w);if(R)return R==g;A|=u,I.set(w,g);var C=n(m(w),m(g),A,E,T,I);return I.delete(w),C;case p:if(_)return _.call(w)==_.call(g)}return!1}return Gr=P,Gr}var $r,ei;function tu(){if(ei)return $r;ei=1;function r(e,t){for(var n=-1,a=t.length,i=e.length;++n<a;)e[i+n]=t[n];return e}return $r=r,$r}var Ur,ri;function _s(){if(ri)return Ur;ri=1;var r=tu(),e=K();function t(n,a,i){var o=a(n);return e(n)?o:r(o,i(n))}return Ur=t,Ur}var kr,ti;function gs(){if(ti)return kr;ti=1;function r(e,t){for(var n=-1,a=e==null?0:e.length,i=0,o=[];++n<a;){var u=e[n];t(u,n,e)&&(o[i++]=u)}return o}return kr=r,kr}var Wr,ni;function ms(){if(ni)return Wr;ni=1;function r(){return[]}return Wr=r,Wr}var zr,ai;function qs(){if(ai)return zr;ai=1;var r=gs(),e=ms(),t=Object.prototype,n=t.propertyIsEnumerable,a=Object.getOwnPropertySymbols,i=a?function(o){return o==null?[]:(o=Object(o),r(a(o),function(u){return n.call(o,u)}))}:e;return zr=i,zr}var Vr,ii;function ws(){if(ii)return Vr;ii=1;function r(e,t){for(var n=-1,a=Array(e);++n<e;)a[n]=t(n);return a}return Vr=r,Vr}var Xr,oi;function Ss(){if(oi)return Xr;oi=1;var r=V(),e=X(),t="[object Arguments]";function n(a){return e(a)&&r(a)==t}return Xr=n,Xr}var Yr,ui;function Cn(){if(ui)return Yr;ui=1;var r=Ss(),e=X(),t=Object.prototype,n=t.hasOwnProperty,a=t.propertyIsEnumerable,i=r((function(){return arguments})())?r:function(o){return e(o)&&n.call(o,"callee")&&!a.call(o,"callee")};return Yr=i,Yr}var re={exports:{}},Jr,si;function Os(){if(si)return Jr;si=1;function r(){return!1}return Jr=r,Jr}re.exports;var ci;function nu(){return ci||(ci=1,(function(r,e){var t=$(),n=Os(),a=e&&!e.nodeType&&e,i=a&&!0&&r&&!r.nodeType&&r,o=i&&i.exports===a,u=o?t.Buffer:void 0,s=u?u.isBuffer:void 0,c=s||n;r.exports=c})(re,re.exports)),re.exports}var Zr,fi;function En(){if(fi)return Zr;fi=1;var r=9007199254740991,e=/^(?:0|[1-9]\d*)$/;function t(n,a){var i=typeof n;return a=a??r,!!a&&(i=="number"||i!="symbol"&&e.test(n))&&n>-1&&n%1==0&&n<a}return Zr=t,Zr}var Qr,li;function In(){if(li)return Qr;li=1;var r=9007199254740991;function e(t){return typeof t=="number"&&t>-1&&t%1==0&&t<=r}return Qr=e,Qr}var et,di;function Ts(){if(di)return et;di=1;var r=V(),e=In(),t=X(),n="[object Arguments]",a="[object Array]",i="[object Boolean]",o="[object Date]",u="[object Error]",s="[object Function]",c="[object Map]",f="[object Number]",l="[object Object]",h="[object RegExp]",v="[object Set]",b="[object String]",d="[object WeakMap]",p="[object ArrayBuffer]",q="[object DataView]",y="[object Float32Array]",O="[object Float64Array]",_="[object Int8Array]",P="[object Int16Array]",w="[object Int32Array]",g="[object Uint8Array]",x="[object Uint8ClampedArray]",A="[object Uint16Array]",E="[object Uint32Array]",T={};T[y]=T[O]=T[_]=T[P]=T[w]=T[g]=T[x]=T[A]=T[E]=!0,T[n]=T[a]=T[p]=T[i]=T[q]=T[o]=T[u]=T[s]=T[c]=T[f]=T[l]=T[h]=T[v]=T[b]=T[d]=!1;function I(m){return t(m)&&e(m.length)&&!!T[r(m)]}return et=I,et}var rt,hi;function au(){if(hi)return rt;hi=1;function r(e){return function(t){return e(t)}}return rt=r,rt}var te={exports:{}};te.exports;var vi;function Ps(){return vi||(vi=1,(function(r,e){var t=ko(),n=e&&!e.nodeType&&e,a=n&&!0&&r&&!r.nodeType&&r,i=a&&a.exports===n,o=i&&t.process,u=(function(){try{var s=a&&a.require&&a.require("util").types;return s||o&&o.binding&&o.binding("util")}catch{}})();r.exports=u})(te,te.exports)),te.exports}var tt,pi;function iu(){if(pi)return tt;pi=1;var r=Ts(),e=au(),t=Ps(),n=t&&t.isTypedArray,a=n?e(n):r;return tt=a,tt}var nt,yi;function Rs(){if(yi)return nt;yi=1;var r=ws(),e=Cn(),t=K(),n=nu(),a=En(),i=iu(),o=Object.prototype,u=o.hasOwnProperty;function s(c,f){var l=t(c),h=!l&&e(c),v=!l&&!h&&n(c),b=!l&&!h&&!v&&i(c),d=l||h||v||b,p=d?r(c.length,String):[],q=p.length;for(var y in c)(f||u.call(c,y))&&!(d&&(y=="length"||v&&(y=="offset"||y=="parent")||b&&(y=="buffer"||y=="byteLength"||y=="byteOffset")||a(y,q)))&&p.push(y);return p}return nt=s,nt}var at,bi;function xs(){if(bi)return at;bi=1;var r=Object.prototype;function e(t){var n=t&&t.constructor,a=typeof n=="function"&&n.prototype||r;return t===a}return at=e,at}var it,_i;function As(){if(_i)return it;_i=1;function r(e,t){return function(n){return e(t(n))}}return it=r,it}var ot,gi;function Cs(){if(gi)return ot;gi=1;var r=As(),e=r(Object.keys,Object);return ot=e,ot}var ut,mi;function Es(){if(mi)return ut;mi=1;var r=xs(),e=Cs(),t=Object.prototype,n=t.hasOwnProperty;function a(i){if(!r(i))return e(i);var o=[];for(var u in Object(i))n.call(i,u)&&u!="constructor"&&o.push(u);return o}return ut=a,ut}var st,qi;function we(){if(qi)return st;qi=1;var r=On(),e=In();function t(n){return n!=null&&e(n.length)&&!r(n)}return st=t,st}var ct,wi;function jn(){if(wi)return ct;wi=1;var r=Rs(),e=Es(),t=we();function n(a){return t(a)?r(a):e(a)}return ct=n,ct}var ft,Si;function Is(){if(Si)return ft;Si=1;var r=_s(),e=qs(),t=jn();function n(a){return r(a,t,e)}return ft=n,ft}var lt,Oi;function js(){if(Oi)return lt;Oi=1;var r=Is(),e=1,t=Object.prototype,n=t.hasOwnProperty;function a(i,o,u,s,c,f){var l=u&e,h=r(i),v=h.length,b=r(o),d=b.length;if(v!=d&&!l)return!1;for(var p=v;p--;){var q=h[p];if(!(l?q in o:n.call(o,q)))return!1}var y=f.get(i),O=f.get(o);if(y&&O)return y==o&&O==i;var _=!0;f.set(i,o),f.set(o,i);for(var P=l;++p<v;){q=h[p];var w=i[q],g=o[q];if(s)var x=l?s(g,w,q,o,i,f):s(w,g,q,i,o,f);if(!(x===void 0?w===g||c(w,g,u,s,f):x)){_=!1;break}P||(P=q=="constructor")}if(_&&!P){var A=i.constructor,E=o.constructor;A!=E&&"constructor"in i&&"constructor"in o&&!(typeof A=="function"&&A instanceof A&&typeof E=="function"&&E instanceof E)&&(_=!1)}return f.delete(i),f.delete(o),_}return lt=a,lt}var dt,Ti;function Ns(){if(Ti)return dt;Ti=1;var r=Y(),e=$(),t=r(e,"DataView");return dt=t,dt}var ht,Pi;function Ds(){if(Pi)return ht;Pi=1;var r=Y(),e=$(),t=r(e,"Promise");return ht=t,ht}var vt,Ri;function ou(){if(Ri)return vt;Ri=1;var r=Y(),e=$(),t=r(e,"Set");return vt=t,vt}var pt,xi;function Bs(){if(xi)return pt;xi=1;var r=Y(),e=$(),t=r(e,"WeakMap");return pt=t,pt}var yt,Ai;function Ms(){if(Ai)return yt;Ai=1;var r=Ns(),e=Pn(),t=Ds(),n=ou(),a=Bs(),i=V(),o=Wo(),u="[object Map]",s="[object Object]",c="[object Promise]",f="[object Set]",l="[object WeakMap]",h="[object DataView]",v=o(r),b=o(e),d=o(t),p=o(n),q=o(a),y=i;return(r&&y(new r(new ArrayBuffer(1)))!=h||e&&y(new e)!=u||t&&y(t.resolve())!=c||n&&y(new n)!=f||a&&y(new a)!=l)&&(y=function(O){var _=i(O),P=_==s?O.constructor:void 0,w=P?o(P):"";if(w)switch(w){case v:return h;case b:return u;case d:return c;case p:return f;case q:return l}return _}),yt=y,yt}var bt,Ci;function Ls(){if(Ci)return bt;Ci=1;var r=Zo(),e=ru(),t=bs(),n=js(),a=Ms(),i=K(),o=nu(),u=iu(),s=1,c="[object Arguments]",f="[object Array]",l="[object Object]",h=Object.prototype,v=h.hasOwnProperty;function b(d,p,q,y,O,_){var P=i(d),w=i(p),g=P?f:a(d),x=w?f:a(p);g=g==c?l:g,x=x==c?l:x;var A=g==l,E=x==l,T=g==x;if(T&&o(d)){if(!o(p))return!1;P=!0,A=!1}if(T&&!A)return _||(_=new r),P||u(d)?e(d,p,q,y,O,_):t(d,p,g,q,y,O,_);if(!(q&s)){var I=A&&v.call(d,"__wrapped__"),m=E&&v.call(p,"__wrapped__");if(I||m){var S=I?d.value():d,R=m?p.value():p;return _||(_=new r),O(S,R,q,y,_)}}return T?(_||(_=new r),n(d,p,q,y,O,_)):!1}return bt=b,bt}var _t,Ei;function uu(){if(Ei)return _t;Ei=1;var r=Ls(),e=X();function t(n,a,i,o,u){return n===a?!0:n==null||a==null||!e(n)&&!e(a)?n!==n&&a!==a:r(n,a,i,o,t,u)}return _t=t,_t}var gt,Ii;function Fs(){if(Ii)return gt;Ii=1;var r=Zo(),e=uu(),t=1,n=2;function a(i,o,u,s){var c=u.length,f=c,l=!s;if(i==null)return!f;for(i=Object(i);c--;){var h=u[c];if(l&&h[2]?h[1]!==i[h[0]]:!(h[0]in i))return!1}for(;++c<f;){h=u[c];var v=h[0],b=i[v],d=h[1];if(l&&h[2]){if(b===void 0&&!(v in i))return!1}else{var p=new r;if(s)var q=s(b,d,v,i,o,p);if(!(q===void 0?e(d,b,t|n,s,p):q))return!1}}return!0}return gt=a,gt}var mt,ji;function su(){if(ji)return mt;ji=1;var r=W();function e(t){return t===t&&!r(t)}return mt=e,mt}var qt,Ni;function Hs(){if(Ni)return qt;Ni=1;var r=su(),e=jn();function t(n){for(var a=e(n),i=a.length;i--;){var o=a[i],u=n[o];a[i]=[o,u,r(u)]}return a}return qt=t,qt}var wt,Di;function cu(){if(Di)return wt;Di=1;function r(e,t){return function(n){return n==null?!1:n[e]===t&&(t!==void 0||e in Object(n))}}return wt=r,wt}var St,Bi;function Ks(){if(Bi)return St;Bi=1;var r=Fs(),e=Hs(),t=cu();function n(a){var i=e(a);return i.length==1&&i[0][2]?t(i[0][0],i[0][1]):function(o){return o===a||r(o,a,i)}}return St=n,St}var Ot,Mi;function Gs(){if(Mi)return Ot;Mi=1;function r(e,t){return e!=null&&t in Object(e)}return Ot=r,Ot}var Tt,Li;function $s(){if(Li)return Tt;Li=1;var r=Vo(),e=Cn(),t=K(),n=En(),a=In(),i=qe();function o(u,s,c){s=r(s,u);for(var f=-1,l=s.length,h=!1;++f<l;){var v=i(s[f]);if(!(h=u!=null&&c(u,v)))break;u=u[v]}return h||++f!=l?h:(l=u==null?0:u.length,!!l&&a(l)&&n(v,l)&&(t(u)||e(u)))}return Tt=o,Tt}var Pt,Fi;function Us(){if(Fi)return Pt;Fi=1;var r=Gs(),e=$s();function t(n,a){return n!=null&&e(n,a,r)}return Pt=t,Pt}var Rt,Hi;function ks(){if(Hi)return Rt;Hi=1;var r=uu(),e=Xo(),t=Us(),n=Sn(),a=su(),i=cu(),o=qe(),u=1,s=2;function c(f,l){return n(f)&&a(l)?i(o(f),l):function(h){var v=e(h,f);return v===void 0&&v===l?t(h,f):r(l,v,u|s)}}return Rt=c,Rt}var xt,Ki;function Se(){if(Ki)return xt;Ki=1;function r(e){return e}return xt=r,xt}var At,Gi;function Ws(){if(Gi)return At;Gi=1;function r(e){return function(t){return t?.[e]}}return At=r,At}var Ct,$i;function zs(){if($i)return Ct;$i=1;var r=xn();function e(t){return function(n){return r(n,t)}}return Ct=e,Ct}var Et,Ui;function Vs(){if(Ui)return Et;Ui=1;var r=Ws(),e=zs(),t=Sn(),n=qe();function a(i){return t(i)?r(n(i)):e(i)}return Et=a,Et}var It,ki;function fu(){if(ki)return It;ki=1;var r=Ks(),e=ks(),t=Se(),n=K(),a=Vs();function i(o){return typeof o=="function"?o:o==null?t:typeof o=="object"?n(o)?e(o[0],o[1]):r(o):a(o)}return It=i,It}var jt,Wi;function Xs(){if(Wi)return jt;Wi=1;function r(e,t,n,a){for(var i=e.length,o=n+(a?1:-1);a?o--:++o<i;)if(t(e[o],o,e))return o;return-1}return jt=r,jt}var Nt,zi;function Ys(){if(zi)return Nt;zi=1;function r(e){return e!==e}return Nt=r,Nt}var Dt,Vi;function Js(){if(Vi)return Dt;Vi=1;function r(e,t,n){for(var a=n-1,i=e.length;++a<i;)if(e[a]===t)return a;return-1}return Dt=r,Dt}var Bt,Xi;function Zs(){if(Xi)return Bt;Xi=1;var r=Xs(),e=Ys(),t=Js();function n(a,i,o){return i===i?t(a,i,o):r(a,e,o)}return Bt=n,Bt}var Mt,Yi;function Qs(){if(Yi)return Mt;Yi=1;var r=Zs();function e(t,n){var a=t==null?0:t.length;return!!a&&r(t,n,0)>-1}return Mt=e,Mt}var Lt,Ji;function ec(){if(Ji)return Lt;Ji=1;function r(e,t,n){for(var a=-1,i=e==null?0:e.length;++a<i;)if(n(t,e[a]))return!0;return!1}return Lt=r,Lt}var Ft,Zi;function rc(){if(Zi)return Ft;Zi=1;function r(){}return Ft=r,Ft}var Ht,Qi;function tc(){if(Qi)return Ht;Qi=1;var r=ou(),e=rc(),t=An(),n=1/0,a=r&&1/t(new r([,-0]))[1]==n?function(i){return new r(i)}:e;return Ht=a,Ht}var Kt,eo;function nc(){if(eo)return Kt;eo=1;var r=Qo(),e=Qs(),t=ec(),n=eu(),a=tc(),i=An(),o=200;function u(s,c,f){var l=-1,h=e,v=s.length,b=!0,d=[],p=d;if(f)b=!1,h=t;else if(v>=o){var q=c?null:a(s);if(q)return i(q);b=!1,h=n,p=new r}else p=c?[]:d;e:for(;++l<v;){var y=s[l],O=c?c(y):y;if(y=f||y!==0?y:0,b&&O===O){for(var _=p.length;_--;)if(p[_]===O)continue e;c&&p.push(O),d.push(y)}else h(p,O,f)||(p!==d&&p.push(O),d.push(y))}return d}return Kt=u,Kt}var Gt,ro;function ac(){if(ro)return Gt;ro=1;var r=fu(),e=nc();function t(n,a){return n&&n.length?e(n,r(a,2)):[]}return Gt=t,Gt}var ic=ac();const to=k(ic);function oc(r,e,t){return e===!0?to(r,t):es(e)?to(r,e):r}var $t,no;function uc(){if(no)return $t;no=1;var r=ue(),e=Cn(),t=K(),n=r?r.isConcatSpreadable:void 0;function a(i){return t(i)||e(i)||!!(n&&i&&i[n])}return $t=a,$t}var Ut,ao;function sc(){if(ao)return Ut;ao=1;var r=tu(),e=uc();function t(n,a,i,o,u){var s=-1,c=n.length;for(i||(i=e),u||(u=[]);++s<c;){var f=n[s];a>0&&i(f)?a>1?t(f,a-1,i,o,u):r(u,f):o||(u[u.length]=f)}return u}return Ut=t,Ut}var kt,io;function cc(){if(io)return kt;io=1;function r(e){return function(t,n,a){for(var i=-1,o=Object(t),u=a(t),s=u.length;s--;){var c=u[e?s:++i];if(n(o[c],c,o)===!1)break}return t}}return kt=r,kt}var Wt,oo;function fc(){if(oo)return Wt;oo=1;var r=cc(),e=r();return Wt=e,Wt}var zt,uo;function lc(){if(uo)return zt;uo=1;var r=fc(),e=jn();function t(n,a){return n&&r(n,a,e)}return zt=t,zt}var Vt,so;function dc(){if(so)return Vt;so=1;var r=we();function e(t,n){return function(a,i){if(a==null)return a;if(!r(a))return t(a,i);for(var o=a.length,u=n?o:-1,s=Object(a);(n?u--:++u<o)&&i(s[u],u,s)!==!1;);return a}}return Vt=e,Vt}var Xt,co;function hc(){if(co)return Xt;co=1;var r=lc(),e=dc(),t=e(r);return Xt=t,Xt}var Yt,fo;function vc(){if(fo)return Yt;fo=1;var r=hc(),e=we();function t(n,a){var i=-1,o=e(n)?Array(n.length):[];return r(n,function(u,s,c){o[++i]=a(u,s,c)}),o}return Yt=t,Yt}var Jt,lo;function pc(){if(lo)return Jt;lo=1;function r(e,t){var n=e.length;for(e.sort(t);n--;)e[n]=e[n].value;return e}return Jt=r,Jt}var Zt,ho;function yc(){if(ho)return Zt;ho=1;var r=se();function e(t,n){if(t!==n){var a=t!==void 0,i=t===null,o=t===t,u=r(t),s=n!==void 0,c=n===null,f=n===n,l=r(n);if(!c&&!l&&!u&&t>n||u&&s&&f&&!c&&!l||i&&s&&f||!a&&f||!o)return 1;if(!i&&!u&&!l&&t<n||l&&a&&o&&!i&&!u||c&&a&&o||!s&&o||!f)return-1}return 0}return Zt=e,Zt}var Qt,vo;function bc(){if(vo)return Qt;vo=1;var r=yc();function e(t,n,a){for(var i=-1,o=t.criteria,u=n.criteria,s=o.length,c=a.length;++i<s;){var f=r(o[i],u[i]);if(f){if(i>=c)return f;var l=a[i];return f*(l=="desc"?-1:1)}}return t.index-n.index}return Qt=e,Qt}var en,po;function _c(){if(po)return en;po=1;var r=zo(),e=xn(),t=fu(),n=vc(),a=pc(),i=au(),o=bc(),u=Se(),s=K();function c(f,l,h){l.length?l=r(l,function(d){return s(d)?function(p){return e(p,d.length===1?d[0]:d)}:d}):l=[u];var v=-1;l=r(l,i(t));var b=n(f,function(d,p,q){var y=r(l,function(O){return O(d)});return{criteria:y,index:++v,value:d}});return a(b,function(d,p){return o(d,p,h)})}return en=c,en}var rn,yo;function gc(){if(yo)return rn;yo=1;function r(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}return rn=r,rn}var tn,bo;function mc(){if(bo)return tn;bo=1;var r=gc(),e=Math.max;function t(n,a,i){return a=e(a===void 0?n.length-1:a,0),function(){for(var o=arguments,u=-1,s=e(o.length-a,0),c=Array(s);++u<s;)c[u]=o[a+u];u=-1;for(var f=Array(a+1);++u<a;)f[u]=o[u];return f[a]=i(c),r(n,this,f)}}return tn=t,tn}var nn,_o;function qc(){if(_o)return nn;_o=1;function r(e){return function(){return e}}return nn=r,nn}var an,go;function wc(){if(go)return an;go=1;var r=Y(),e=(function(){try{var t=r(Object,"defineProperty");return t({},"",{}),t}catch{}})();return an=e,an}var on,mo;function Sc(){if(mo)return on;mo=1;var r=qc(),e=wc(),t=Se(),n=e?function(a,i){return e(a,"toString",{configurable:!0,enumerable:!1,value:r(i),writable:!0})}:t;return on=n,on}var un,qo;function Oc(){if(qo)return un;qo=1;var r=800,e=16,t=Date.now;function n(a){var i=0,o=0;return function(){var u=t(),s=e-(u-o);if(o=u,s>0){if(++i>=r)return arguments[0]}else i=0;return a.apply(void 0,arguments)}}return un=n,un}var sn,wo;function Tc(){if(wo)return sn;wo=1;var r=Sc(),e=Oc(),t=e(r);return sn=t,sn}var cn,So;function Pc(){if(So)return cn;So=1;var r=Se(),e=mc(),t=Tc();function n(a,i){return t(e(a,i,r),a+"")}return cn=n,cn}var fn,Oo;function Rc(){if(Oo)return fn;Oo=1;var r=Tn(),e=we(),t=En(),n=W();function a(i,o,u){if(!n(u))return!1;var s=typeof o;return(s=="number"?e(u)&&t(o,u.length):s=="string"&&o in u)?r(u[o],i):!1}return fn=a,fn}var ln,To;function xc(){if(To)return ln;To=1;var r=sc(),e=_c(),t=Pc(),n=Rc(),a=t(function(i,o){if(i==null)return[];var u=o.length;return u>1&&n(i,o[0],o[1])?o=[]:u>2&&n(o[0],o[1],o[2])&&(o=[o[0]]),e(i,r(o,1),[])});return ln=a,ln}var Ac=xc();const Cc=k(Ac);function ne(r){"@babel/helpers - typeof";return ne=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},ne(r)}function gn(){return gn=Object.assign?Object.assign.bind():function(r){for(var e=1;e<arguments.length;e++){var t=arguments[e];for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(r[n]=t[n])}return r},gn.apply(this,arguments)}function Ec(r,e){return Dc(r)||Nc(r,e)||jc(r,e)||Ic()}function Ic(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
1
|
+
import{c as oe,o as yu,cv as bu,cw as _u,z as gu,K as $o,cr as ce,c9 as k,cd as he,aY as B,r as F,n as z,j as D}from"./index-BAzBxxL9.js";import"./index-D00QDYEH.js";async function Uo(r){if(!r.getServerCapabilities()?.prompts)return{prompts:[]};try{return await r.listPrompts()}catch(t){if(t instanceof bu&&t.code===_u.MethodNotFound)return{prompts:[]};throw t}}async function Lf(r,e,t){if(!r.getServerCapabilities()?.prompts)throw new Error("Prompts capability not supported");return await r.getPrompt({name:e,arguments:t??{}})}function Ff(r){const e=oe.c(12);let t,n;e[0]!==r?({client:t,...n}=r,e[0]=r,e[1]=t,e[2]=n):(t=e[1],n=e[2]);let a;e[3]!==t?(a=$o.mcpPromptsList(t),e[3]=t,e[4]=a):a=e[4];let i;e[5]!==t?(i=()=>Uo(t),e[5]=t,e[6]=i):i=e[6];const o=n.staleTime??3e4;let u;return e[7]!==n||e[8]!==a||e[9]!==i||e[10]!==o?(u={...n,queryKey:a,queryFn:i,staleTime:o,retry:!1},e[7]=n,e[8]=a,e[9]=i,e[10]=o,e[11]=u):u=e[11],gu(u)}function Hf(r){const e=oe.c(12);let t,n;e[0]!==r?({client:t,...n}=r,e[0]=r,e[1]=t,e[2]=n):(t=e[1],n=e[2]);let a;e[3]!==t?(a=$o.mcpPromptsList(t),e[3]=t,e[4]=a):a=e[4];let i;e[5]!==t?(i=()=>Uo(t),e[5]=t,e[6]=i):i=e[6];const o=n.staleTime??3e4;let u;return e[7]!==n||e[8]!==a||e[9]!==i||e[10]!==o?(u={...n,queryKey:a,queryFn:i,staleTime:o,retry:!1},e[7]=n,e[8]=a,e[9]=i,e[10]=o,e[11]=u):u=e[11],yu(u)}var Oe,Bn;function K(){if(Bn)return Oe;Bn=1;var r=Array.isArray;return Oe=r,Oe}var Te,Mn;function ko(){if(Mn)return Te;Mn=1;var r=typeof ce=="object"&&ce&&ce.Object===Object&&ce;return Te=r,Te}var Pe,Ln;function $(){if(Ln)return Pe;Ln=1;var r=ko(),e=typeof self=="object"&&self&&self.Object===Object&&self,t=r||e||Function("return this")();return Pe=t,Pe}var Re,Fn;function ue(){if(Fn)return Re;Fn=1;var r=$(),e=r.Symbol;return Re=e,Re}var xe,Hn;function mu(){if(Hn)return xe;Hn=1;var r=ue(),e=Object.prototype,t=e.hasOwnProperty,n=e.toString,a=r?r.toStringTag:void 0;function i(o){var u=t.call(o,a),s=o[a];try{o[a]=void 0;var c=!0}catch{}var f=n.call(o);return c&&(u?o[a]=s:delete o[a]),f}return xe=i,xe}var Ae,Kn;function qu(){if(Kn)return Ae;Kn=1;var r=Object.prototype,e=r.toString;function t(n){return e.call(n)}return Ae=t,Ae}var Ce,Gn;function V(){if(Gn)return Ce;Gn=1;var r=ue(),e=mu(),t=qu(),n="[object Null]",a="[object Undefined]",i=r?r.toStringTag:void 0;function o(u){return u==null?u===void 0?a:n:i&&i in Object(u)?e(u):t(u)}return Ce=o,Ce}var Ee,$n;function X(){if($n)return Ee;$n=1;function r(e){return e!=null&&typeof e=="object"}return Ee=r,Ee}var Ie,Un;function se(){if(Un)return Ie;Un=1;var r=V(),e=X(),t="[object Symbol]";function n(a){return typeof a=="symbol"||e(a)&&r(a)==t}return Ie=n,Ie}var je,kn;function Sn(){if(kn)return je;kn=1;var r=K(),e=se(),t=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,n=/^\w*$/;function a(i,o){if(r(i))return!1;var u=typeof i;return u=="number"||u=="symbol"||u=="boolean"||i==null||e(i)?!0:n.test(i)||!t.test(i)||o!=null&&i in Object(o)}return je=a,je}var Ne,Wn;function W(){if(Wn)return Ne;Wn=1;function r(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}return Ne=r,Ne}var De,zn;function On(){if(zn)return De;zn=1;var r=V(),e=W(),t="[object AsyncFunction]",n="[object Function]",a="[object GeneratorFunction]",i="[object Proxy]";function o(u){if(!e(u))return!1;var s=r(u);return s==n||s==a||s==t||s==i}return De=o,De}var Be,Vn;function wu(){if(Vn)return Be;Vn=1;var r=$(),e=r["__core-js_shared__"];return Be=e,Be}var Me,Xn;function Su(){if(Xn)return Me;Xn=1;var r=wu(),e=(function(){var n=/[^.]+$/.exec(r&&r.keys&&r.keys.IE_PROTO||"");return n?"Symbol(src)_1."+n:""})();function t(n){return!!e&&e in n}return Me=t,Me}var Le,Yn;function Wo(){if(Yn)return Le;Yn=1;var r=Function.prototype,e=r.toString;function t(n){if(n!=null){try{return e.call(n)}catch{}try{return n+""}catch{}}return""}return Le=t,Le}var Fe,Jn;function Ou(){if(Jn)return Fe;Jn=1;var r=On(),e=Su(),t=W(),n=Wo(),a=/[\\^$.*+?()[\]{}|]/g,i=/^\[object .+?Constructor\]$/,o=Function.prototype,u=Object.prototype,s=o.toString,c=u.hasOwnProperty,f=RegExp("^"+s.call(c).replace(a,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function l(h){if(!t(h)||e(h))return!1;var v=r(h)?f:i;return v.test(n(h))}return Fe=l,Fe}var He,Zn;function Tu(){if(Zn)return He;Zn=1;function r(e,t){return e?.[t]}return He=r,He}var Ke,Qn;function Y(){if(Qn)return Ke;Qn=1;var r=Ou(),e=Tu();function t(n,a){var i=e(n,a);return r(i)?i:void 0}return Ke=t,Ke}var Ge,ea;function be(){if(ea)return Ge;ea=1;var r=Y(),e=r(Object,"create");return Ge=e,Ge}var $e,ra;function Pu(){if(ra)return $e;ra=1;var r=be();function e(){this.__data__=r?r(null):{},this.size=0}return $e=e,$e}var Ue,ta;function Ru(){if(ta)return Ue;ta=1;function r(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}return Ue=r,Ue}var ke,na;function xu(){if(na)return ke;na=1;var r=be(),e="__lodash_hash_undefined__",t=Object.prototype,n=t.hasOwnProperty;function a(i){var o=this.__data__;if(r){var u=o[i];return u===e?void 0:u}return n.call(o,i)?o[i]:void 0}return ke=a,ke}var We,aa;function Au(){if(aa)return We;aa=1;var r=be(),e=Object.prototype,t=e.hasOwnProperty;function n(a){var i=this.__data__;return r?i[a]!==void 0:t.call(i,a)}return We=n,We}var ze,ia;function Cu(){if(ia)return ze;ia=1;var r=be(),e="__lodash_hash_undefined__";function t(n,a){var i=this.__data__;return this.size+=this.has(n)?0:1,i[n]=r&&a===void 0?e:a,this}return ze=t,ze}var Ve,oa;function Eu(){if(oa)return Ve;oa=1;var r=Pu(),e=Ru(),t=xu(),n=Au(),a=Cu();function i(o){var u=-1,s=o==null?0:o.length;for(this.clear();++u<s;){var c=o[u];this.set(c[0],c[1])}}return i.prototype.clear=r,i.prototype.delete=e,i.prototype.get=t,i.prototype.has=n,i.prototype.set=a,Ve=i,Ve}var Xe,ua;function Iu(){if(ua)return Xe;ua=1;function r(){this.__data__=[],this.size=0}return Xe=r,Xe}var Ye,sa;function Tn(){if(sa)return Ye;sa=1;function r(e,t){return e===t||e!==e&&t!==t}return Ye=r,Ye}var Je,ca;function _e(){if(ca)return Je;ca=1;var r=Tn();function e(t,n){for(var a=t.length;a--;)if(r(t[a][0],n))return a;return-1}return Je=e,Je}var Ze,fa;function ju(){if(fa)return Ze;fa=1;var r=_e(),e=Array.prototype,t=e.splice;function n(a){var i=this.__data__,o=r(i,a);if(o<0)return!1;var u=i.length-1;return o==u?i.pop():t.call(i,o,1),--this.size,!0}return Ze=n,Ze}var Qe,la;function Nu(){if(la)return Qe;la=1;var r=_e();function e(t){var n=this.__data__,a=r(n,t);return a<0?void 0:n[a][1]}return Qe=e,Qe}var er,da;function Du(){if(da)return er;da=1;var r=_e();function e(t){return r(this.__data__,t)>-1}return er=e,er}var rr,ha;function Bu(){if(ha)return rr;ha=1;var r=_e();function e(t,n){var a=this.__data__,i=r(a,t);return i<0?(++this.size,a.push([t,n])):a[i][1]=n,this}return rr=e,rr}var tr,va;function ge(){if(va)return tr;va=1;var r=Iu(),e=ju(),t=Nu(),n=Du(),a=Bu();function i(o){var u=-1,s=o==null?0:o.length;for(this.clear();++u<s;){var c=o[u];this.set(c[0],c[1])}}return i.prototype.clear=r,i.prototype.delete=e,i.prototype.get=t,i.prototype.has=n,i.prototype.set=a,tr=i,tr}var nr,pa;function Pn(){if(pa)return nr;pa=1;var r=Y(),e=$(),t=r(e,"Map");return nr=t,nr}var ar,ya;function Mu(){if(ya)return ar;ya=1;var r=Eu(),e=ge(),t=Pn();function n(){this.size=0,this.__data__={hash:new r,map:new(t||e),string:new r}}return ar=n,ar}var ir,ba;function Lu(){if(ba)return ir;ba=1;function r(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}return ir=r,ir}var or,_a;function me(){if(_a)return or;_a=1;var r=Lu();function e(t,n){var a=t.__data__;return r(n)?a[typeof n=="string"?"string":"hash"]:a.map}return or=e,or}var ur,ga;function Fu(){if(ga)return ur;ga=1;var r=me();function e(t){var n=r(this,t).delete(t);return this.size-=n?1:0,n}return ur=e,ur}var sr,ma;function Hu(){if(ma)return sr;ma=1;var r=me();function e(t){return r(this,t).get(t)}return sr=e,sr}var cr,qa;function Ku(){if(qa)return cr;qa=1;var r=me();function e(t){return r(this,t).has(t)}return cr=e,cr}var fr,wa;function Gu(){if(wa)return fr;wa=1;var r=me();function e(t,n){var a=r(this,t),i=a.size;return a.set(t,n),this.size+=a.size==i?0:1,this}return fr=e,fr}var lr,Sa;function Rn(){if(Sa)return lr;Sa=1;var r=Mu(),e=Fu(),t=Hu(),n=Ku(),a=Gu();function i(o){var u=-1,s=o==null?0:o.length;for(this.clear();++u<s;){var c=o[u];this.set(c[0],c[1])}}return i.prototype.clear=r,i.prototype.delete=e,i.prototype.get=t,i.prototype.has=n,i.prototype.set=a,lr=i,lr}var dr,Oa;function $u(){if(Oa)return dr;Oa=1;var r=Rn(),e="Expected a function";function t(n,a){if(typeof n!="function"||a!=null&&typeof a!="function")throw new TypeError(e);var i=function(){var o=arguments,u=a?a.apply(this,o):o[0],s=i.cache;if(s.has(u))return s.get(u);var c=n.apply(this,o);return i.cache=s.set(u,c)||s,c};return i.cache=new(t.Cache||r),i}return t.Cache=r,dr=t,dr}var hr,Ta;function Uu(){if(Ta)return hr;Ta=1;var r=$u(),e=500;function t(n){var a=r(n,function(o){return i.size===e&&i.clear(),o}),i=a.cache;return a}return hr=t,hr}var vr,Pa;function ku(){if(Pa)return vr;Pa=1;var r=Uu(),e=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,t=/\\(\\)?/g,n=r(function(a){var i=[];return a.charCodeAt(0)===46&&i.push(""),a.replace(e,function(o,u,s,c){i.push(s?c.replace(t,"$1"):u||o)}),i});return vr=n,vr}var pr,Ra;function zo(){if(Ra)return pr;Ra=1;function r(e,t){for(var n=-1,a=e==null?0:e.length,i=Array(a);++n<a;)i[n]=t(e[n],n,e);return i}return pr=r,pr}var yr,xa;function Wu(){if(xa)return yr;xa=1;var r=ue(),e=zo(),t=K(),n=se(),a=r?r.prototype:void 0,i=a?a.toString:void 0;function o(u){if(typeof u=="string")return u;if(t(u))return e(u,o)+"";if(n(u))return i?i.call(u):"";var s=u+"";return s=="0"&&1/u==-1/0?"-0":s}return yr=o,yr}var br,Aa;function zu(){if(Aa)return br;Aa=1;var r=Wu();function e(t){return t==null?"":r(t)}return br=e,br}var _r,Ca;function Vo(){if(Ca)return _r;Ca=1;var r=K(),e=Sn(),t=ku(),n=zu();function a(i,o){return r(i)?i:e(i,o)?[i]:t(n(i))}return _r=a,_r}var gr,Ea;function qe(){if(Ea)return gr;Ea=1;var r=se();function e(t){if(typeof t=="string"||r(t))return t;var n=t+"";return n=="0"&&1/t==-1/0?"-0":n}return gr=e,gr}var mr,Ia;function xn(){if(Ia)return mr;Ia=1;var r=Vo(),e=qe();function t(n,a){a=r(a,n);for(var i=0,o=a.length;n!=null&&i<o;)n=n[e(a[i++])];return i&&i==o?n:void 0}return mr=t,mr}var qr,ja;function Xo(){if(ja)return qr;ja=1;var r=xn();function e(t,n,a){var i=t==null?void 0:r(t,n);return i===void 0?a:i}return qr=e,qr}Xo();var wr,Na;function Vu(){if(Na)return wr;Na=1;function r(e){return e==null}return wr=r,wr}var Xu=Vu();const Yu=k(Xu);var Sr,Da;function Ju(){if(Da)return Sr;Da=1;var r=V(),e=K(),t=X(),n="[object String]";function a(i){return typeof i=="string"||!e(i)&&t(i)&&r(i)==n}return Sr=a,Sr}var Zu=Ju();const Yo=k(Zu);var Qu=On();const es=k(Qu);W();var Or,Ba;function Jo(){if(Ba)return Or;Ba=1;var r=V(),e=X(),t="[object Number]";function n(a){return typeof a=="number"||e(a)&&r(a)==t}return Or=n,Or}var Tr,Ma;function rs(){if(Ma)return Tr;Ma=1;var r=Jo();function e(t){return r(t)&&t!=+t}return Tr=e,Tr}var ts=rs();const ns=k(ts);var as=Jo();const is=k(as);var fe=function(e){return Yo(e)&&e.indexOf("%")===e.length-1},G=function(e){return is(e)&&!ns(e)},ve=function(e){return G(e)||Yo(e)},os=function(e){return typeof e=="string"?e:e?e.displayName||e.name||"Component":""},Pr=function(e,t){for(var n=arguments.length,a=new Array(n>2?n-2:0),i=2;i<n;i++)a[i-2]=arguments[i]},Rr,La;function us(){if(La)return Rr;La=1;var r=ge();function e(){this.__data__=new r,this.size=0}return Rr=e,Rr}var xr,Fa;function ss(){if(Fa)return xr;Fa=1;function r(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}return xr=r,xr}var Ar,Ha;function cs(){if(Ha)return Ar;Ha=1;function r(e){return this.__data__.get(e)}return Ar=r,Ar}var Cr,Ka;function fs(){if(Ka)return Cr;Ka=1;function r(e){return this.__data__.has(e)}return Cr=r,Cr}var Er,Ga;function ls(){if(Ga)return Er;Ga=1;var r=ge(),e=Pn(),t=Rn(),n=200;function a(i,o){var u=this.__data__;if(u instanceof r){var s=u.__data__;if(!e||s.length<n-1)return s.push([i,o]),this.size=++u.size,this;u=this.__data__=new t(s)}return u.set(i,o),this.size=u.size,this}return Er=a,Er}var Ir,$a;function Zo(){if($a)return Ir;$a=1;var r=ge(),e=us(),t=ss(),n=cs(),a=fs(),i=ls();function o(u){var s=this.__data__=new r(u);this.size=s.size}return o.prototype.clear=e,o.prototype.delete=t,o.prototype.get=n,o.prototype.has=a,o.prototype.set=i,Ir=o,Ir}var jr,Ua;function ds(){if(Ua)return jr;Ua=1;var r="__lodash_hash_undefined__";function e(t){return this.__data__.set(t,r),this}return jr=e,jr}var Nr,ka;function hs(){if(ka)return Nr;ka=1;function r(e){return this.__data__.has(e)}return Nr=r,Nr}var Dr,Wa;function Qo(){if(Wa)return Dr;Wa=1;var r=Rn(),e=ds(),t=hs();function n(a){var i=-1,o=a==null?0:a.length;for(this.__data__=new r;++i<o;)this.add(a[i])}return n.prototype.add=n.prototype.push=e,n.prototype.has=t,Dr=n,Dr}var Br,za;function vs(){if(za)return Br;za=1;function r(e,t){for(var n=-1,a=e==null?0:e.length;++n<a;)if(t(e[n],n,e))return!0;return!1}return Br=r,Br}var Mr,Va;function eu(){if(Va)return Mr;Va=1;function r(e,t){return e.has(t)}return Mr=r,Mr}var Lr,Xa;function ru(){if(Xa)return Lr;Xa=1;var r=Qo(),e=vs(),t=eu(),n=1,a=2;function i(o,u,s,c,f,l){var h=s&n,v=o.length,b=u.length;if(v!=b&&!(h&&b>v))return!1;var d=l.get(o),p=l.get(u);if(d&&p)return d==u&&p==o;var q=-1,y=!0,O=s&a?new r:void 0;for(l.set(o,u),l.set(u,o);++q<v;){var _=o[q],P=u[q];if(c)var w=h?c(P,_,q,u,o,l):c(_,P,q,o,u,l);if(w!==void 0){if(w)continue;y=!1;break}if(O){if(!e(u,function(g,x){if(!t(O,x)&&(_===g||f(_,g,s,c,l)))return O.push(x)})){y=!1;break}}else if(!(_===P||f(_,P,s,c,l))){y=!1;break}}return l.delete(o),l.delete(u),y}return Lr=i,Lr}var Fr,Ya;function ps(){if(Ya)return Fr;Ya=1;var r=$(),e=r.Uint8Array;return Fr=e,Fr}var Hr,Ja;function ys(){if(Ja)return Hr;Ja=1;function r(e){var t=-1,n=Array(e.size);return e.forEach(function(a,i){n[++t]=[i,a]}),n}return Hr=r,Hr}var Kr,Za;function An(){if(Za)return Kr;Za=1;function r(e){var t=-1,n=Array(e.size);return e.forEach(function(a){n[++t]=a}),n}return Kr=r,Kr}var Gr,Qa;function bs(){if(Qa)return Gr;Qa=1;var r=ue(),e=ps(),t=Tn(),n=ru(),a=ys(),i=An(),o=1,u=2,s="[object Boolean]",c="[object Date]",f="[object Error]",l="[object Map]",h="[object Number]",v="[object RegExp]",b="[object Set]",d="[object String]",p="[object Symbol]",q="[object ArrayBuffer]",y="[object DataView]",O=r?r.prototype:void 0,_=O?O.valueOf:void 0;function P(w,g,x,A,E,T,I){switch(x){case y:if(w.byteLength!=g.byteLength||w.byteOffset!=g.byteOffset)return!1;w=w.buffer,g=g.buffer;case q:return!(w.byteLength!=g.byteLength||!T(new e(w),new e(g)));case s:case c:case h:return t(+w,+g);case f:return w.name==g.name&&w.message==g.message;case v:case d:return w==g+"";case l:var m=a;case b:var S=A&o;if(m||(m=i),w.size!=g.size&&!S)return!1;var R=I.get(w);if(R)return R==g;A|=u,I.set(w,g);var C=n(m(w),m(g),A,E,T,I);return I.delete(w),C;case p:if(_)return _.call(w)==_.call(g)}return!1}return Gr=P,Gr}var $r,ei;function tu(){if(ei)return $r;ei=1;function r(e,t){for(var n=-1,a=t.length,i=e.length;++n<a;)e[i+n]=t[n];return e}return $r=r,$r}var Ur,ri;function _s(){if(ri)return Ur;ri=1;var r=tu(),e=K();function t(n,a,i){var o=a(n);return e(n)?o:r(o,i(n))}return Ur=t,Ur}var kr,ti;function gs(){if(ti)return kr;ti=1;function r(e,t){for(var n=-1,a=e==null?0:e.length,i=0,o=[];++n<a;){var u=e[n];t(u,n,e)&&(o[i++]=u)}return o}return kr=r,kr}var Wr,ni;function ms(){if(ni)return Wr;ni=1;function r(){return[]}return Wr=r,Wr}var zr,ai;function qs(){if(ai)return zr;ai=1;var r=gs(),e=ms(),t=Object.prototype,n=t.propertyIsEnumerable,a=Object.getOwnPropertySymbols,i=a?function(o){return o==null?[]:(o=Object(o),r(a(o),function(u){return n.call(o,u)}))}:e;return zr=i,zr}var Vr,ii;function ws(){if(ii)return Vr;ii=1;function r(e,t){for(var n=-1,a=Array(e);++n<e;)a[n]=t(n);return a}return Vr=r,Vr}var Xr,oi;function Ss(){if(oi)return Xr;oi=1;var r=V(),e=X(),t="[object Arguments]";function n(a){return e(a)&&r(a)==t}return Xr=n,Xr}var Yr,ui;function Cn(){if(ui)return Yr;ui=1;var r=Ss(),e=X(),t=Object.prototype,n=t.hasOwnProperty,a=t.propertyIsEnumerable,i=r((function(){return arguments})())?r:function(o){return e(o)&&n.call(o,"callee")&&!a.call(o,"callee")};return Yr=i,Yr}var re={exports:{}},Jr,si;function Os(){if(si)return Jr;si=1;function r(){return!1}return Jr=r,Jr}re.exports;var ci;function nu(){return ci||(ci=1,(function(r,e){var t=$(),n=Os(),a=e&&!e.nodeType&&e,i=a&&!0&&r&&!r.nodeType&&r,o=i&&i.exports===a,u=o?t.Buffer:void 0,s=u?u.isBuffer:void 0,c=s||n;r.exports=c})(re,re.exports)),re.exports}var Zr,fi;function En(){if(fi)return Zr;fi=1;var r=9007199254740991,e=/^(?:0|[1-9]\d*)$/;function t(n,a){var i=typeof n;return a=a??r,!!a&&(i=="number"||i!="symbol"&&e.test(n))&&n>-1&&n%1==0&&n<a}return Zr=t,Zr}var Qr,li;function In(){if(li)return Qr;li=1;var r=9007199254740991;function e(t){return typeof t=="number"&&t>-1&&t%1==0&&t<=r}return Qr=e,Qr}var et,di;function Ts(){if(di)return et;di=1;var r=V(),e=In(),t=X(),n="[object Arguments]",a="[object Array]",i="[object Boolean]",o="[object Date]",u="[object Error]",s="[object Function]",c="[object Map]",f="[object Number]",l="[object Object]",h="[object RegExp]",v="[object Set]",b="[object String]",d="[object WeakMap]",p="[object ArrayBuffer]",q="[object DataView]",y="[object Float32Array]",O="[object Float64Array]",_="[object Int8Array]",P="[object Int16Array]",w="[object Int32Array]",g="[object Uint8Array]",x="[object Uint8ClampedArray]",A="[object Uint16Array]",E="[object Uint32Array]",T={};T[y]=T[O]=T[_]=T[P]=T[w]=T[g]=T[x]=T[A]=T[E]=!0,T[n]=T[a]=T[p]=T[i]=T[q]=T[o]=T[u]=T[s]=T[c]=T[f]=T[l]=T[h]=T[v]=T[b]=T[d]=!1;function I(m){return t(m)&&e(m.length)&&!!T[r(m)]}return et=I,et}var rt,hi;function au(){if(hi)return rt;hi=1;function r(e){return function(t){return e(t)}}return rt=r,rt}var te={exports:{}};te.exports;var vi;function Ps(){return vi||(vi=1,(function(r,e){var t=ko(),n=e&&!e.nodeType&&e,a=n&&!0&&r&&!r.nodeType&&r,i=a&&a.exports===n,o=i&&t.process,u=(function(){try{var s=a&&a.require&&a.require("util").types;return s||o&&o.binding&&o.binding("util")}catch{}})();r.exports=u})(te,te.exports)),te.exports}var tt,pi;function iu(){if(pi)return tt;pi=1;var r=Ts(),e=au(),t=Ps(),n=t&&t.isTypedArray,a=n?e(n):r;return tt=a,tt}var nt,yi;function Rs(){if(yi)return nt;yi=1;var r=ws(),e=Cn(),t=K(),n=nu(),a=En(),i=iu(),o=Object.prototype,u=o.hasOwnProperty;function s(c,f){var l=t(c),h=!l&&e(c),v=!l&&!h&&n(c),b=!l&&!h&&!v&&i(c),d=l||h||v||b,p=d?r(c.length,String):[],q=p.length;for(var y in c)(f||u.call(c,y))&&!(d&&(y=="length"||v&&(y=="offset"||y=="parent")||b&&(y=="buffer"||y=="byteLength"||y=="byteOffset")||a(y,q)))&&p.push(y);return p}return nt=s,nt}var at,bi;function xs(){if(bi)return at;bi=1;var r=Object.prototype;function e(t){var n=t&&t.constructor,a=typeof n=="function"&&n.prototype||r;return t===a}return at=e,at}var it,_i;function As(){if(_i)return it;_i=1;function r(e,t){return function(n){return e(t(n))}}return it=r,it}var ot,gi;function Cs(){if(gi)return ot;gi=1;var r=As(),e=r(Object.keys,Object);return ot=e,ot}var ut,mi;function Es(){if(mi)return ut;mi=1;var r=xs(),e=Cs(),t=Object.prototype,n=t.hasOwnProperty;function a(i){if(!r(i))return e(i);var o=[];for(var u in Object(i))n.call(i,u)&&u!="constructor"&&o.push(u);return o}return ut=a,ut}var st,qi;function we(){if(qi)return st;qi=1;var r=On(),e=In();function t(n){return n!=null&&e(n.length)&&!r(n)}return st=t,st}var ct,wi;function jn(){if(wi)return ct;wi=1;var r=Rs(),e=Es(),t=we();function n(a){return t(a)?r(a):e(a)}return ct=n,ct}var ft,Si;function Is(){if(Si)return ft;Si=1;var r=_s(),e=qs(),t=jn();function n(a){return r(a,t,e)}return ft=n,ft}var lt,Oi;function js(){if(Oi)return lt;Oi=1;var r=Is(),e=1,t=Object.prototype,n=t.hasOwnProperty;function a(i,o,u,s,c,f){var l=u&e,h=r(i),v=h.length,b=r(o),d=b.length;if(v!=d&&!l)return!1;for(var p=v;p--;){var q=h[p];if(!(l?q in o:n.call(o,q)))return!1}var y=f.get(i),O=f.get(o);if(y&&O)return y==o&&O==i;var _=!0;f.set(i,o),f.set(o,i);for(var P=l;++p<v;){q=h[p];var w=i[q],g=o[q];if(s)var x=l?s(g,w,q,o,i,f):s(w,g,q,i,o,f);if(!(x===void 0?w===g||c(w,g,u,s,f):x)){_=!1;break}P||(P=q=="constructor")}if(_&&!P){var A=i.constructor,E=o.constructor;A!=E&&"constructor"in i&&"constructor"in o&&!(typeof A=="function"&&A instanceof A&&typeof E=="function"&&E instanceof E)&&(_=!1)}return f.delete(i),f.delete(o),_}return lt=a,lt}var dt,Ti;function Ns(){if(Ti)return dt;Ti=1;var r=Y(),e=$(),t=r(e,"DataView");return dt=t,dt}var ht,Pi;function Ds(){if(Pi)return ht;Pi=1;var r=Y(),e=$(),t=r(e,"Promise");return ht=t,ht}var vt,Ri;function ou(){if(Ri)return vt;Ri=1;var r=Y(),e=$(),t=r(e,"Set");return vt=t,vt}var pt,xi;function Bs(){if(xi)return pt;xi=1;var r=Y(),e=$(),t=r(e,"WeakMap");return pt=t,pt}var yt,Ai;function Ms(){if(Ai)return yt;Ai=1;var r=Ns(),e=Pn(),t=Ds(),n=ou(),a=Bs(),i=V(),o=Wo(),u="[object Map]",s="[object Object]",c="[object Promise]",f="[object Set]",l="[object WeakMap]",h="[object DataView]",v=o(r),b=o(e),d=o(t),p=o(n),q=o(a),y=i;return(r&&y(new r(new ArrayBuffer(1)))!=h||e&&y(new e)!=u||t&&y(t.resolve())!=c||n&&y(new n)!=f||a&&y(new a)!=l)&&(y=function(O){var _=i(O),P=_==s?O.constructor:void 0,w=P?o(P):"";if(w)switch(w){case v:return h;case b:return u;case d:return c;case p:return f;case q:return l}return _}),yt=y,yt}var bt,Ci;function Ls(){if(Ci)return bt;Ci=1;var r=Zo(),e=ru(),t=bs(),n=js(),a=Ms(),i=K(),o=nu(),u=iu(),s=1,c="[object Arguments]",f="[object Array]",l="[object Object]",h=Object.prototype,v=h.hasOwnProperty;function b(d,p,q,y,O,_){var P=i(d),w=i(p),g=P?f:a(d),x=w?f:a(p);g=g==c?l:g,x=x==c?l:x;var A=g==l,E=x==l,T=g==x;if(T&&o(d)){if(!o(p))return!1;P=!0,A=!1}if(T&&!A)return _||(_=new r),P||u(d)?e(d,p,q,y,O,_):t(d,p,g,q,y,O,_);if(!(q&s)){var I=A&&v.call(d,"__wrapped__"),m=E&&v.call(p,"__wrapped__");if(I||m){var S=I?d.value():d,R=m?p.value():p;return _||(_=new r),O(S,R,q,y,_)}}return T?(_||(_=new r),n(d,p,q,y,O,_)):!1}return bt=b,bt}var _t,Ei;function uu(){if(Ei)return _t;Ei=1;var r=Ls(),e=X();function t(n,a,i,o,u){return n===a?!0:n==null||a==null||!e(n)&&!e(a)?n!==n&&a!==a:r(n,a,i,o,t,u)}return _t=t,_t}var gt,Ii;function Fs(){if(Ii)return gt;Ii=1;var r=Zo(),e=uu(),t=1,n=2;function a(i,o,u,s){var c=u.length,f=c,l=!s;if(i==null)return!f;for(i=Object(i);c--;){var h=u[c];if(l&&h[2]?h[1]!==i[h[0]]:!(h[0]in i))return!1}for(;++c<f;){h=u[c];var v=h[0],b=i[v],d=h[1];if(l&&h[2]){if(b===void 0&&!(v in i))return!1}else{var p=new r;if(s)var q=s(b,d,v,i,o,p);if(!(q===void 0?e(d,b,t|n,s,p):q))return!1}}return!0}return gt=a,gt}var mt,ji;function su(){if(ji)return mt;ji=1;var r=W();function e(t){return t===t&&!r(t)}return mt=e,mt}var qt,Ni;function Hs(){if(Ni)return qt;Ni=1;var r=su(),e=jn();function t(n){for(var a=e(n),i=a.length;i--;){var o=a[i],u=n[o];a[i]=[o,u,r(u)]}return a}return qt=t,qt}var wt,Di;function cu(){if(Di)return wt;Di=1;function r(e,t){return function(n){return n==null?!1:n[e]===t&&(t!==void 0||e in Object(n))}}return wt=r,wt}var St,Bi;function Ks(){if(Bi)return St;Bi=1;var r=Fs(),e=Hs(),t=cu();function n(a){var i=e(a);return i.length==1&&i[0][2]?t(i[0][0],i[0][1]):function(o){return o===a||r(o,a,i)}}return St=n,St}var Ot,Mi;function Gs(){if(Mi)return Ot;Mi=1;function r(e,t){return e!=null&&t in Object(e)}return Ot=r,Ot}var Tt,Li;function $s(){if(Li)return Tt;Li=1;var r=Vo(),e=Cn(),t=K(),n=En(),a=In(),i=qe();function o(u,s,c){s=r(s,u);for(var f=-1,l=s.length,h=!1;++f<l;){var v=i(s[f]);if(!(h=u!=null&&c(u,v)))break;u=u[v]}return h||++f!=l?h:(l=u==null?0:u.length,!!l&&a(l)&&n(v,l)&&(t(u)||e(u)))}return Tt=o,Tt}var Pt,Fi;function Us(){if(Fi)return Pt;Fi=1;var r=Gs(),e=$s();function t(n,a){return n!=null&&e(n,a,r)}return Pt=t,Pt}var Rt,Hi;function ks(){if(Hi)return Rt;Hi=1;var r=uu(),e=Xo(),t=Us(),n=Sn(),a=su(),i=cu(),o=qe(),u=1,s=2;function c(f,l){return n(f)&&a(l)?i(o(f),l):function(h){var v=e(h,f);return v===void 0&&v===l?t(h,f):r(l,v,u|s)}}return Rt=c,Rt}var xt,Ki;function Se(){if(Ki)return xt;Ki=1;function r(e){return e}return xt=r,xt}var At,Gi;function Ws(){if(Gi)return At;Gi=1;function r(e){return function(t){return t?.[e]}}return At=r,At}var Ct,$i;function zs(){if($i)return Ct;$i=1;var r=xn();function e(t){return function(n){return r(n,t)}}return Ct=e,Ct}var Et,Ui;function Vs(){if(Ui)return Et;Ui=1;var r=Ws(),e=zs(),t=Sn(),n=qe();function a(i){return t(i)?r(n(i)):e(i)}return Et=a,Et}var It,ki;function fu(){if(ki)return It;ki=1;var r=Ks(),e=ks(),t=Se(),n=K(),a=Vs();function i(o){return typeof o=="function"?o:o==null?t:typeof o=="object"?n(o)?e(o[0],o[1]):r(o):a(o)}return It=i,It}var jt,Wi;function Xs(){if(Wi)return jt;Wi=1;function r(e,t,n,a){for(var i=e.length,o=n+(a?1:-1);a?o--:++o<i;)if(t(e[o],o,e))return o;return-1}return jt=r,jt}var Nt,zi;function Ys(){if(zi)return Nt;zi=1;function r(e){return e!==e}return Nt=r,Nt}var Dt,Vi;function Js(){if(Vi)return Dt;Vi=1;function r(e,t,n){for(var a=n-1,i=e.length;++a<i;)if(e[a]===t)return a;return-1}return Dt=r,Dt}var Bt,Xi;function Zs(){if(Xi)return Bt;Xi=1;var r=Xs(),e=Ys(),t=Js();function n(a,i,o){return i===i?t(a,i,o):r(a,e,o)}return Bt=n,Bt}var Mt,Yi;function Qs(){if(Yi)return Mt;Yi=1;var r=Zs();function e(t,n){var a=t==null?0:t.length;return!!a&&r(t,n,0)>-1}return Mt=e,Mt}var Lt,Ji;function ec(){if(Ji)return Lt;Ji=1;function r(e,t,n){for(var a=-1,i=e==null?0:e.length;++a<i;)if(n(t,e[a]))return!0;return!1}return Lt=r,Lt}var Ft,Zi;function rc(){if(Zi)return Ft;Zi=1;function r(){}return Ft=r,Ft}var Ht,Qi;function tc(){if(Qi)return Ht;Qi=1;var r=ou(),e=rc(),t=An(),n=1/0,a=r&&1/t(new r([,-0]))[1]==n?function(i){return new r(i)}:e;return Ht=a,Ht}var Kt,eo;function nc(){if(eo)return Kt;eo=1;var r=Qo(),e=Qs(),t=ec(),n=eu(),a=tc(),i=An(),o=200;function u(s,c,f){var l=-1,h=e,v=s.length,b=!0,d=[],p=d;if(f)b=!1,h=t;else if(v>=o){var q=c?null:a(s);if(q)return i(q);b=!1,h=n,p=new r}else p=c?[]:d;e:for(;++l<v;){var y=s[l],O=c?c(y):y;if(y=f||y!==0?y:0,b&&O===O){for(var _=p.length;_--;)if(p[_]===O)continue e;c&&p.push(O),d.push(y)}else h(p,O,f)||(p!==d&&p.push(O),d.push(y))}return d}return Kt=u,Kt}var Gt,ro;function ac(){if(ro)return Gt;ro=1;var r=fu(),e=nc();function t(n,a){return n&&n.length?e(n,r(a,2)):[]}return Gt=t,Gt}var ic=ac();const to=k(ic);function oc(r,e,t){return e===!0?to(r,t):es(e)?to(r,e):r}var $t,no;function uc(){if(no)return $t;no=1;var r=ue(),e=Cn(),t=K(),n=r?r.isConcatSpreadable:void 0;function a(i){return t(i)||e(i)||!!(n&&i&&i[n])}return $t=a,$t}var Ut,ao;function sc(){if(ao)return Ut;ao=1;var r=tu(),e=uc();function t(n,a,i,o,u){var s=-1,c=n.length;for(i||(i=e),u||(u=[]);++s<c;){var f=n[s];a>0&&i(f)?a>1?t(f,a-1,i,o,u):r(u,f):o||(u[u.length]=f)}return u}return Ut=t,Ut}var kt,io;function cc(){if(io)return kt;io=1;function r(e){return function(t,n,a){for(var i=-1,o=Object(t),u=a(t),s=u.length;s--;){var c=u[e?s:++i];if(n(o[c],c,o)===!1)break}return t}}return kt=r,kt}var Wt,oo;function fc(){if(oo)return Wt;oo=1;var r=cc(),e=r();return Wt=e,Wt}var zt,uo;function lc(){if(uo)return zt;uo=1;var r=fc(),e=jn();function t(n,a){return n&&r(n,a,e)}return zt=t,zt}var Vt,so;function dc(){if(so)return Vt;so=1;var r=we();function e(t,n){return function(a,i){if(a==null)return a;if(!r(a))return t(a,i);for(var o=a.length,u=n?o:-1,s=Object(a);(n?u--:++u<o)&&i(s[u],u,s)!==!1;);return a}}return Vt=e,Vt}var Xt,co;function hc(){if(co)return Xt;co=1;var r=lc(),e=dc(),t=e(r);return Xt=t,Xt}var Yt,fo;function vc(){if(fo)return Yt;fo=1;var r=hc(),e=we();function t(n,a){var i=-1,o=e(n)?Array(n.length):[];return r(n,function(u,s,c){o[++i]=a(u,s,c)}),o}return Yt=t,Yt}var Jt,lo;function pc(){if(lo)return Jt;lo=1;function r(e,t){var n=e.length;for(e.sort(t);n--;)e[n]=e[n].value;return e}return Jt=r,Jt}var Zt,ho;function yc(){if(ho)return Zt;ho=1;var r=se();function e(t,n){if(t!==n){var a=t!==void 0,i=t===null,o=t===t,u=r(t),s=n!==void 0,c=n===null,f=n===n,l=r(n);if(!c&&!l&&!u&&t>n||u&&s&&f&&!c&&!l||i&&s&&f||!a&&f||!o)return 1;if(!i&&!u&&!l&&t<n||l&&a&&o&&!i&&!u||c&&a&&o||!s&&o||!f)return-1}return 0}return Zt=e,Zt}var Qt,vo;function bc(){if(vo)return Qt;vo=1;var r=yc();function e(t,n,a){for(var i=-1,o=t.criteria,u=n.criteria,s=o.length,c=a.length;++i<s;){var f=r(o[i],u[i]);if(f){if(i>=c)return f;var l=a[i];return f*(l=="desc"?-1:1)}}return t.index-n.index}return Qt=e,Qt}var en,po;function _c(){if(po)return en;po=1;var r=zo(),e=xn(),t=fu(),n=vc(),a=pc(),i=au(),o=bc(),u=Se(),s=K();function c(f,l,h){l.length?l=r(l,function(d){return s(d)?function(p){return e(p,d.length===1?d[0]:d)}:d}):l=[u];var v=-1;l=r(l,i(t));var b=n(f,function(d,p,q){var y=r(l,function(O){return O(d)});return{criteria:y,index:++v,value:d}});return a(b,function(d,p){return o(d,p,h)})}return en=c,en}var rn,yo;function gc(){if(yo)return rn;yo=1;function r(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}return rn=r,rn}var tn,bo;function mc(){if(bo)return tn;bo=1;var r=gc(),e=Math.max;function t(n,a,i){return a=e(a===void 0?n.length-1:a,0),function(){for(var o=arguments,u=-1,s=e(o.length-a,0),c=Array(s);++u<s;)c[u]=o[a+u];u=-1;for(var f=Array(a+1);++u<a;)f[u]=o[u];return f[a]=i(c),r(n,this,f)}}return tn=t,tn}var nn,_o;function qc(){if(_o)return nn;_o=1;function r(e){return function(){return e}}return nn=r,nn}var an,go;function wc(){if(go)return an;go=1;var r=Y(),e=(function(){try{var t=r(Object,"defineProperty");return t({},"",{}),t}catch{}})();return an=e,an}var on,mo;function Sc(){if(mo)return on;mo=1;var r=qc(),e=wc(),t=Se(),n=e?function(a,i){return e(a,"toString",{configurable:!0,enumerable:!1,value:r(i),writable:!0})}:t;return on=n,on}var un,qo;function Oc(){if(qo)return un;qo=1;var r=800,e=16,t=Date.now;function n(a){var i=0,o=0;return function(){var u=t(),s=e-(u-o);if(o=u,s>0){if(++i>=r)return arguments[0]}else i=0;return a.apply(void 0,arguments)}}return un=n,un}var sn,wo;function Tc(){if(wo)return sn;wo=1;var r=Sc(),e=Oc(),t=e(r);return sn=t,sn}var cn,So;function Pc(){if(So)return cn;So=1;var r=Se(),e=mc(),t=Tc();function n(a,i){return t(e(a,i,r),a+"")}return cn=n,cn}var fn,Oo;function Rc(){if(Oo)return fn;Oo=1;var r=Tn(),e=we(),t=En(),n=W();function a(i,o,u){if(!n(u))return!1;var s=typeof o;return(s=="number"?e(u)&&t(o,u.length):s=="string"&&o in u)?r(u[o],i):!1}return fn=a,fn}var ln,To;function xc(){if(To)return ln;To=1;var r=sc(),e=_c(),t=Pc(),n=Rc(),a=t(function(i,o){if(i==null)return[];var u=o.length;return u>1&&n(i,o[0],o[1])?o=[]:u>2&&n(o[0],o[1],o[2])&&(o=[o[0]]),e(i,r(o,1),[])});return ln=a,ln}var Ac=xc();const Cc=k(Ac);function ne(r){"@babel/helpers - typeof";return ne=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},ne(r)}function gn(){return gn=Object.assign?Object.assign.bind():function(r){for(var e=1;e<arguments.length;e++){var t=arguments[e];for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(r[n]=t[n])}return r},gn.apply(this,arguments)}function Ec(r,e){return Dc(r)||Nc(r,e)||jc(r,e)||Ic()}function Ic(){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 jc(r,e){if(r){if(typeof r=="string")return Po(r,e);var t=Object.prototype.toString.call(r).slice(8,-1);if(t==="Object"&&r.constructor&&(t=r.constructor.name),t==="Map"||t==="Set")return Array.from(r);if(t==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return Po(r,e)}}function Po(r,e){(e==null||e>r.length)&&(e=r.length);for(var t=0,n=new Array(e);t<e;t++)n[t]=r[t];return n}function Nc(r,e){var t=r==null?null:typeof Symbol<"u"&&r[Symbol.iterator]||r["@@iterator"];if(t!=null){var n,a,i,o,u=[],s=!0,c=!1;try{if(i=(t=t.call(r)).next,e!==0)for(;!(s=(n=i.call(t)).done)&&(u.push(n.value),u.length!==e);s=!0);}catch(f){c=!0,a=f}finally{try{if(!s&&t.return!=null&&(o=t.return(),Object(o)!==o))return}finally{if(c)throw a}}return u}}function Dc(r){if(Array.isArray(r))return r}function Ro(r,e){var t=Object.keys(r);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(r);e&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(r,a).enumerable})),t.push.apply(t,n)}return t}function dn(r){for(var e=1;e<arguments.length;e++){var t=arguments[e]!=null?arguments[e]:{};e%2?Ro(Object(t),!0).forEach(function(n){Bc(r,n,t[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(t)):Ro(Object(t)).forEach(function(n){Object.defineProperty(r,n,Object.getOwnPropertyDescriptor(t,n))})}return r}function Bc(r,e,t){return e=Mc(e),e in r?Object.defineProperty(r,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):r[e]=t,r}function Mc(r){var e=Lc(r,"string");return ne(e)=="symbol"?e:e+""}function Lc(r,e){if(ne(r)!="object"||!r)return r;var t=r[Symbol.toPrimitive];if(t!==void 0){var n=t.call(r,e);if(ne(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(r)}function Fc(r){return Array.isArray(r)&&ve(r[0])&&ve(r[1])?r.join(" ~ "):r}var Hc=function(e){var t=e.separator,n=t===void 0?" : ":t,a=e.contentStyle,i=a===void 0?{}:a,o=e.itemStyle,u=o===void 0?{}:o,s=e.labelStyle,c=s===void 0?{}:s,f=e.payload,l=e.formatter,h=e.itemSorter,v=e.wrapperClassName,b=e.labelClassName,d=e.label,p=e.labelFormatter,q=e.accessibilityLayer,y=q===void 0?!1:q,O=function(){if(f&&f.length){var I={padding:0,margin:0},m=(h?Cc(f,h):f).map(function(S,R){if(S.type==="none")return null;var C=dn({display:"block",paddingTop:4,paddingBottom:4,color:S.color||"#000"},u),j=S.formatter||l||Fc,N=S.value,U=S.name,M=N,L=U;if(j&&M!=null&&L!=null){var H=j(N,U,S,R,f);if(Array.isArray(H)){var Q=Ec(H,2);M=Q[0],L=Q[1]}else M=H}return B.createElement("li",{className:"recharts-tooltip-item",key:"tooltip-item-".concat(R),style:C},ve(L)?B.createElement("span",{className:"recharts-tooltip-item-name"},L):null,ve(L)?B.createElement("span",{className:"recharts-tooltip-item-separator"},n):null,B.createElement("span",{className:"recharts-tooltip-item-value"},M),B.createElement("span",{className:"recharts-tooltip-item-unit"},S.unit||""))});return B.createElement("ul",{className:"recharts-tooltip-item-list",style:I},m)}return null},_=dn({margin:0,padding:10,backgroundColor:"#fff",border:"1px solid #ccc",whiteSpace:"nowrap"},i),P=dn({margin:0},c),w=!Yu(d),g=w?d:"",x=he("recharts-default-tooltip",v),A=he("recharts-tooltip-label",b);w&&p&&f!==void 0&&f!==null&&(g=p(d,f));var E=y?{role:"status","aria-live":"assertive"}:{};return B.createElement("div",gn({className:x,style:_},E),B.createElement("p",{className:A,style:P},B.isValidElement(g)?g:"".concat(g)),O())};function ae(r){"@babel/helpers - typeof";return ae=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},ae(r)}function le(r,e,t){return e=Kc(e),e in r?Object.defineProperty(r,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):r[e]=t,r}function Kc(r){var e=Gc(r,"string");return ae(e)=="symbol"?e:e+""}function Gc(r,e){if(ae(r)!="object"||!r)return r;var t=r[Symbol.toPrimitive];if(t!==void 0){var n=t.call(r,e);if(ae(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(r)}var ee="recharts-tooltip-wrapper",$c={visibility:"hidden"};function Uc(r){var e=r.coordinate,t=r.translateX,n=r.translateY;return he(ee,le(le(le(le({},"".concat(ee,"-right"),G(t)&&e&&G(e.x)&&t>=e.x),"".concat(ee,"-left"),G(t)&&e&&G(e.x)&&t<e.x),"".concat(ee,"-bottom"),G(n)&&e&&G(e.y)&&n>=e.y),"".concat(ee,"-top"),G(n)&&e&&G(e.y)&&n<e.y))}function xo(r){var e=r.allowEscapeViewBox,t=r.coordinate,n=r.key,a=r.offsetTopLeft,i=r.position,o=r.reverseDirection,u=r.tooltipDimension,s=r.viewBox,c=r.viewBoxDimension;if(i&&G(i[n]))return i[n];var f=t[n]-u-a,l=t[n]+a;if(e[n])return o[n]?f:l;if(o[n]){var h=f,v=s[n];return h<v?Math.max(l,s[n]):Math.max(f,s[n])}var b=l+u,d=s[n]+c;return b>d?Math.max(f,s[n]):Math.max(l,s[n])}function kc(r){var e=r.translateX,t=r.translateY,n=r.useTranslate3d;return{transform:n?"translate3d(".concat(e,"px, ").concat(t,"px, 0)"):"translate(".concat(e,"px, ").concat(t,"px)")}}function Wc(r){var e=r.allowEscapeViewBox,t=r.coordinate,n=r.offsetTopLeft,a=r.position,i=r.reverseDirection,o=r.tooltipBox,u=r.useTranslate3d,s=r.viewBox,c,f,l;return o.height>0&&o.width>0&&t?(f=xo({allowEscapeViewBox:e,coordinate:t,key:"x",offsetTopLeft:n,position:a,reverseDirection:i,tooltipDimension:o.width,viewBox:s,viewBoxDimension:s.width}),l=xo({allowEscapeViewBox:e,coordinate:t,key:"y",offsetTopLeft:n,position:a,reverseDirection:i,tooltipDimension:o.height,viewBox:s,viewBoxDimension:s.height}),c=kc({translateX:f,translateY:l,useTranslate3d:u})):c=$c,{cssProperties:c,cssClasses:Uc({translateX:f,translateY:l,coordinate:t})}}function J(r){"@babel/helpers - typeof";return J=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},J(r)}function Ao(r,e){var t=Object.keys(r);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(r);e&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(r,a).enumerable})),t.push.apply(t,n)}return t}function Co(r){for(var e=1;e<arguments.length;e++){var t=arguments[e]!=null?arguments[e]:{};e%2?Ao(Object(t),!0).forEach(function(n){qn(r,n,t[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(t)):Ao(Object(t)).forEach(function(n){Object.defineProperty(r,n,Object.getOwnPropertyDescriptor(t,n))})}return r}function zc(r,e){if(!(r instanceof e))throw new TypeError("Cannot call a class as a function")}function Vc(r,e){for(var t=0;t<e.length;t++){var n=e[t];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(r,du(n.key),n)}}function Xc(r,e,t){return e&&Vc(r.prototype,e),Object.defineProperty(r,"prototype",{writable:!1}),r}function Yc(r,e,t){return e=pe(e),Jc(r,lu()?Reflect.construct(e,t||[],pe(r).constructor):e.apply(r,t))}function Jc(r,e){if(e&&(J(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Zc(r)}function Zc(r){if(r===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return r}function lu(){try{var r=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(lu=function(){return!!r})()}function pe(r){return pe=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},pe(r)}function Qc(r,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");r.prototype=Object.create(e&&e.prototype,{constructor:{value:r,writable:!0,configurable:!0}}),Object.defineProperty(r,"prototype",{writable:!1}),e&&mn(r,e)}function mn(r,e){return mn=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,a){return n.__proto__=a,n},mn(r,e)}function qn(r,e,t){return e=du(e),e in r?Object.defineProperty(r,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):r[e]=t,r}function du(r){var e=ef(r,"string");return J(e)=="symbol"?e:e+""}function ef(r,e){if(J(r)!="object"||!r)return r;var t=r[Symbol.toPrimitive];if(t!==void 0){var n=t.call(r,e);if(J(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(r)}var Eo=1,rf=(function(r){function e(){var t;zc(this,e);for(var n=arguments.length,a=new Array(n),i=0;i<n;i++)a[i]=arguments[i];return t=Yc(this,e,[].concat(a)),qn(t,"state",{dismissed:!1,dismissedAtCoordinate:{x:0,y:0},lastBoundingBox:{width:-1,height:-1}}),qn(t,"handleKeyDown",function(o){if(o.key==="Escape"){var u,s,c,f;t.setState({dismissed:!0,dismissedAtCoordinate:{x:(u=(s=t.props.coordinate)===null||s===void 0?void 0:s.x)!==null&&u!==void 0?u:0,y:(c=(f=t.props.coordinate)===null||f===void 0?void 0:f.y)!==null&&c!==void 0?c:0}})}}),t}return Qc(e,r),Xc(e,[{key:"updateBBox",value:function(){if(this.wrapperNode&&this.wrapperNode.getBoundingClientRect){var n=this.wrapperNode.getBoundingClientRect();(Math.abs(n.width-this.state.lastBoundingBox.width)>Eo||Math.abs(n.height-this.state.lastBoundingBox.height)>Eo)&&this.setState({lastBoundingBox:{width:n.width,height:n.height}})}else(this.state.lastBoundingBox.width!==-1||this.state.lastBoundingBox.height!==-1)&&this.setState({lastBoundingBox:{width:-1,height:-1}})}},{key:"componentDidMount",value:function(){document.addEventListener("keydown",this.handleKeyDown),this.updateBBox()}},{key:"componentWillUnmount",value:function(){document.removeEventListener("keydown",this.handleKeyDown)}},{key:"componentDidUpdate",value:function(){var n,a;this.props.active&&this.updateBBox(),this.state.dismissed&&(((n=this.props.coordinate)===null||n===void 0?void 0:n.x)!==this.state.dismissedAtCoordinate.x||((a=this.props.coordinate)===null||a===void 0?void 0:a.y)!==this.state.dismissedAtCoordinate.y)&&(this.state.dismissed=!1)}},{key:"render",value:function(){var n=this,a=this.props,i=a.active,o=a.allowEscapeViewBox,u=a.animationDuration,s=a.animationEasing,c=a.children,f=a.coordinate,l=a.hasPayload,h=a.isAnimationActive,v=a.offset,b=a.position,d=a.reverseDirection,p=a.useTranslate3d,q=a.viewBox,y=a.wrapperStyle,O=Wc({allowEscapeViewBox:o,coordinate:f,offsetTopLeft:v,position:b,reverseDirection:d,tooltipBox:this.state.lastBoundingBox,useTranslate3d:p,viewBox:q}),_=O.cssClasses,P=O.cssProperties,w=Co(Co({transition:h&&i?"transform ".concat(u,"ms ").concat(s):void 0},P),{},{pointerEvents:"none",visibility:!this.state.dismissed&&i&&l?"visible":"hidden",position:"absolute",top:0,left:0},y);return B.createElement("div",{tabIndex:-1,className:_,style:w,ref:function(x){n.wrapperNode=x}},c)}}])})(F.PureComponent),tf=function(){return!(typeof window<"u"&&window.document&&window.document.createElement&&window.setTimeout)},nf={isSsr:tf()};function Z(r){"@babel/helpers - typeof";return Z=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Z(r)}function Io(r,e){var t=Object.keys(r);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(r);e&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(r,a).enumerable})),t.push.apply(t,n)}return t}function jo(r){for(var e=1;e<arguments.length;e++){var t=arguments[e]!=null?arguments[e]:{};e%2?Io(Object(t),!0).forEach(function(n){Nn(r,n,t[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(t)):Io(Object(t)).forEach(function(n){Object.defineProperty(r,n,Object.getOwnPropertyDescriptor(t,n))})}return r}function af(r,e){if(!(r instanceof e))throw new TypeError("Cannot call a class as a function")}function of(r,e){for(var t=0;t<e.length;t++){var n=e[t];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(r,vu(n.key),n)}}function uf(r,e,t){return e&&of(r.prototype,e),Object.defineProperty(r,"prototype",{writable:!1}),r}function sf(r,e,t){return e=ye(e),cf(r,hu()?Reflect.construct(e,t||[],ye(r).constructor):e.apply(r,t))}function cf(r,e){if(e&&(Z(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return ff(r)}function ff(r){if(r===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return r}function hu(){try{var r=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(hu=function(){return!!r})()}function ye(r){return ye=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},ye(r)}function lf(r,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");r.prototype=Object.create(e&&e.prototype,{constructor:{value:r,writable:!0,configurable:!0}}),Object.defineProperty(r,"prototype",{writable:!1}),e&&wn(r,e)}function wn(r,e){return wn=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,a){return n.__proto__=a,n},wn(r,e)}function Nn(r,e,t){return e=vu(e),e in r?Object.defineProperty(r,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):r[e]=t,r}function vu(r){var e=df(r,"string");return Z(e)=="symbol"?e:e+""}function df(r,e){if(Z(r)!="object"||!r)return r;var t=r[Symbol.toPrimitive];if(t!==void 0){var n=t.call(r,e);if(Z(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(r)}function hf(r){return r.dataKey}function vf(r,e){return B.isValidElement(r)?B.cloneElement(r,e):typeof r=="function"?B.createElement(r,e):B.createElement(Hc,e)}var Dn=(function(r){function e(){return af(this,e),sf(this,e,arguments)}return lf(e,r),uf(e,[{key:"render",value:function(){var n=this,a=this.props,i=a.active,o=a.allowEscapeViewBox,u=a.animationDuration,s=a.animationEasing,c=a.content,f=a.coordinate,l=a.filterNull,h=a.isAnimationActive,v=a.offset,b=a.payload,d=a.payloadUniqBy,p=a.position,q=a.reverseDirection,y=a.useTranslate3d,O=a.viewBox,_=a.wrapperStyle,P=b??[];l&&P.length&&(P=oc(b.filter(function(g){return g.value!=null&&(g.hide!==!0||n.props.includeHidden)}),d,hf));var w=P.length>0;return B.createElement(rf,{allowEscapeViewBox:o,animationDuration:u,animationEasing:s,isAnimationActive:h,active:i,coordinate:f,hasPayload:w,offset:v,position:p,reverseDirection:q,useTranslate3d:y,viewBox:O,wrapperStyle:_},vf(c,jo(jo({},this.props),{},{payload:P})))}}])})(F.PureComponent);Nn(Dn,"displayName","Tooltip");Nn(Dn,"defaultProps",{accessibilityLayer:!1,allowEscapeViewBox:{x:!1,y:!1},animationDuration:400,animationEasing:"ease",contentStyle:{},coordinate:{x:0,y:0},cursor:!0,cursorStyle:{},filterNull:!0,isAnimationActive:!nf.isSsr,itemStyle:{},labelStyle:{},offset:10,reverseDirection:{x:!1,y:!1},separator:" : ",trigger:"hover",useTranslate3d:!1,viewBox:{x:0,y:0,height:0,width:0},wrapperStyle:{}});var hn,No;function pf(){if(No)return hn;No=1;var r=$(),e=function(){return r.Date.now()};return hn=e,hn}var vn,Do;function yf(){if(Do)return vn;Do=1;var r=/\s/;function e(t){for(var n=t.length;n--&&r.test(t.charAt(n)););return n}return vn=e,vn}var pn,Bo;function bf(){if(Bo)return pn;Bo=1;var r=yf(),e=/^\s+/;function t(n){return n&&n.slice(0,r(n)+1).replace(e,"")}return pn=t,pn}var yn,Mo;function _f(){if(Mo)return yn;Mo=1;var r=bf(),e=W(),t=se(),n=NaN,a=/^[-+]0x[0-9a-f]+$/i,i=/^0b[01]+$/i,o=/^0o[0-7]+$/i,u=parseInt;function s(c){if(typeof c=="number")return c;if(t(c))return n;if(e(c)){var f=typeof c.valueOf=="function"?c.valueOf():c;c=e(f)?f+"":f}if(typeof c!="string")return c===0?c:+c;c=r(c);var l=i.test(c);return l||o.test(c)?u(c.slice(2),l?2:8):a.test(c)?n:+c}return yn=s,yn}var bn,Lo;function gf(){if(Lo)return bn;Lo=1;var r=W(),e=pf(),t=_f(),n="Expected a function",a=Math.max,i=Math.min;function o(u,s,c){var f,l,h,v,b,d,p=0,q=!1,y=!1,O=!0;if(typeof u!="function")throw new TypeError(n);s=t(s)||0,r(c)&&(q=!!c.leading,y="maxWait"in c,h=y?a(t(c.maxWait)||0,s):h,O="trailing"in c?!!c.trailing:O);function _(m){var S=f,R=l;return f=l=void 0,p=m,v=u.apply(R,S),v}function P(m){return p=m,b=setTimeout(x,s),q?_(m):v}function w(m){var S=m-d,R=m-p,C=s-S;return y?i(C,h-R):C}function g(m){var S=m-d,R=m-p;return d===void 0||S>=s||S<0||y&&R>=h}function x(){var m=e();if(g(m))return A(m);b=setTimeout(x,w(m))}function A(m){return b=void 0,O&&f?_(m):(f=l=void 0,v)}function E(){b!==void 0&&clearTimeout(b),p=0,f=d=l=b=void 0}function T(){return b===void 0?v:A(e())}function I(){var m=e(),S=g(m);if(f=arguments,l=this,d=m,S){if(b===void 0)return P(d);if(y)return clearTimeout(b),b=setTimeout(x,s),_(d)}return b===void 0&&(b=setTimeout(x,s)),v}return I.cancel=E,I.flush=T,I}return bn=o,bn}var _n,Fo;function mf(){if(Fo)return _n;Fo=1;var r=gf(),e=W(),t="Expected a function";function n(a,i,o){var u=!0,s=!0;if(typeof a!="function")throw new TypeError(t);return e(o)&&(u="leading"in o?!!o.leading:u,s="trailing"in o?!!o.trailing:s),r(a,i,{leading:u,maxWait:i,trailing:s})}return _n=n,_n}var qf=mf();const wf=k(qf);function ie(r){"@babel/helpers - typeof";return ie=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},ie(r)}function Ho(r,e){var t=Object.keys(r);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(r);e&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(r,a).enumerable})),t.push.apply(t,n)}return t}function de(r){for(var e=1;e<arguments.length;e++){var t=arguments[e]!=null?arguments[e]:{};e%2?Ho(Object(t),!0).forEach(function(n){Sf(r,n,t[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(t)):Ho(Object(t)).forEach(function(n){Object.defineProperty(r,n,Object.getOwnPropertyDescriptor(t,n))})}return r}function Sf(r,e,t){return e=Of(e),e in r?Object.defineProperty(r,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):r[e]=t,r}function Of(r){var e=Tf(r,"string");return ie(e)=="symbol"?e:e+""}function Tf(r,e){if(ie(r)!="object"||!r)return r;var t=r[Symbol.toPrimitive];if(t!==void 0){var n=t.call(r,e);if(ie(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(r)}function Pf(r,e){return Cf(r)||Af(r,e)||xf(r,e)||Rf()}function Rf(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
3
3
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function xf(r,e){if(r){if(typeof r=="string")return Ko(r,e);var t=Object.prototype.toString.call(r).slice(8,-1);if(t==="Object"&&r.constructor&&(t=r.constructor.name),t==="Map"||t==="Set")return Array.from(r);if(t==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return Ko(r,e)}}function Ko(r,e){(e==null||e>r.length)&&(e=r.length);for(var t=0,n=new Array(e);t<e;t++)n[t]=r[t];return n}function Af(r,e){var t=r==null?null:typeof Symbol<"u"&&r[Symbol.iterator]||r["@@iterator"];if(t!=null){var n,a,i,o,u=[],s=!0,c=!1;try{if(i=(t=t.call(r)).next,e!==0)for(;!(s=(n=i.call(t)).done)&&(u.push(n.value),u.length!==e);s=!0);}catch(f){c=!0,a=f}finally{try{if(!s&&t.return!=null&&(o=t.return(),Object(o)!==o))return}finally{if(c)throw a}}return u}}function Cf(r){if(Array.isArray(r))return r}var Ef=F.forwardRef(function(r,e){var t=r.aspect,n=r.initialDimension,a=n===void 0?{width:-1,height:-1}:n,i=r.width,o=i===void 0?"100%":i,u=r.height,s=u===void 0?"100%":u,c=r.minWidth,f=c===void 0?0:c,l=r.minHeight,h=r.maxHeight,v=r.children,b=r.debounce,d=b===void 0?0:b,p=r.id,q=r.className,y=r.onResize,O=r.style,_=O===void 0?{}:O,P=F.useRef(null),w=F.useRef();w.current=y,F.useImperativeHandle(e,function(){return Object.defineProperty(P.current,"current",{get:function(){return console.warn("The usage of ref.current.current is deprecated and will no longer be supported."),P.current},configurable:!0})});var g=F.useState({containerWidth:a.width,containerHeight:a.height}),x=Pf(g,2),A=x[0],E=x[1],T=F.useCallback(function(m,S){E(function(R){var C=Math.round(m),j=Math.round(S);return R.containerWidth===C&&R.containerHeight===j?R:{containerWidth:C,containerHeight:j}})},[]);F.useEffect(function(){var m=function(U){var M,L=U[0].contentRect,H=L.width,Q=L.height;T(H,Q),(M=w.current)===null||M===void 0||M.call(w,H,Q)};d>0&&(m=wf(m,d,{trailing:!0,leading:!1}));var S=new ResizeObserver(m),R=P.current.getBoundingClientRect(),C=R.width,j=R.height;return T(C,j),S.observe(P.current),function(){S.disconnect()}},[T,d]);var I=F.useMemo(function(){var m=A.containerWidth,S=A.containerHeight;if(m<0||S<0)return null;Pr(fe(o)||fe(s),`The width(%s) and height(%s) are both fixed numbers,
|
|
4
4
|
maybe you don't need to use a ResponsiveContainer.`,o,s),Pr(!t||t>0,"The aspect(%s) must be greater than zero.",t);var R=fe(o)?m:o,C=fe(s)?S:s;t&&t>0&&(R?C=R/t:C&&(R=C*t),h&&C>h&&(C=h)),Pr(R>0||C>0,`The width(%s) and height(%s) of chart should be greater than 0,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{ak as S,al as C,ar as ee,am as r,an as me,aq as Ie,bl as Ce,de as Ct,bX as qe,bL as ht,I as ue,c as le,a4 as mt,u as Ve,p as Ke,H as te,K as he,t as pe,R as ye,d as ft,f as At,r as v,o as Pt,av as _t,e as Rt,aQ as Et,j as Me,b as De,a as Dt,x as $t,aw as Ut,q as Ot}from"./index-fZpMDfe6.js";import{e as Lt,t as Nt,A as bt,u as Ft,v as qt,q as jt,w as Ht}from"./tab-id-W4sfonX1.js";import{p as Vt}from"./session-runtime-wVXsCwcJ.js";import{S as Kt,s as Bt,c as Qt,f as Wt,i as zt,a as Gt}from"./hooks-CtnSCLIe.js";import{u as Xt}from"./use-is-desktop-app-BNujXJc_.js";import{u as Zt}from"./use-mcp-client-BixLZLmc.js";import{a as Yt,S as Jt}from"./constants-_08zpzmT.js";import{a as en}from"./use-virtual-mcp-CxECG99q.js";import{u as gt,p as tn,b as xe,i as nn,c as sn}from"./use-ai-providers-bDkOAByr.js";import{u as on}from"./use-decopilot-events-U00f_DNo.js";import{c as an}from"./use-organization-settings-B4nKr0f2.js";const we=S({connection_id:r().describe("Connection ID"),selected_tools:C(r()).nullable().describe("Selected tool names. null = all tools included, array = only these tools included"),selected_resources:C(r()).nullable().describe("Selected resource URIs or patterns. Supports * and ** wildcards for pattern matching. null = all resources included, array = only these resources included"),selected_prompts:C(r()).nullable().describe("Selected prompt names. null = all prompts included, array = only these prompts included")}),yt=we.extend({selected_tools:we.shape.selected_tools.optional(),selected_resources:we.shape.selected_resources.optional(),selected_prompts:we.shape.selected_prompts.optional()}),rn=S({connectionId:r(),toolName:r(),label:r(),icon:r().nullable().optional()}),ln=S({id:r().describe("Stable id; used as React key and ?tab= value"),title:r().describe("Tab label"),icon:r().optional().describe("Optional lucide icon name"),view:S({type:qe("ext-app"),appId:r(),args:Ie(r(),ht()).optional()})}),cn=S({defaultMainView:S({type:r(),id:r().optional(),toolName:r().optional()}).nullable().optional(),chatDefaultOpen:ee().nullable().optional(),cmsDefaultOpen:ee().nullable().optional(),tabs:C(ln).optional()}),at=S({tileId:r().optional(),connectionId:r().optional().describe("Connection that owns the resource — the host opens a direct MCP client to this connection so the iframe can call tools by their bare names."),resourceUri:r().describe("ui:// resource URI exposed by `connectionId`. Read on the home page and rendered via MCPAppRenderer."),toolName:r().optional().describe("Tool name — identifies which tool's inputSchema to display when editing tile props."),toolInput:Ie(r(),ht()).optional().describe("User-configured input props passed to MCPAppRenderer when rendering the tile."),minHeight:Ce().int().positive().optional(),maxHeight:Ce().int().positive().optional()}),Be=S({banner:r().nullable().optional(),bannerColor:r().nullable().optional(),icon:r().nullable().optional(),themeColor:r().nullable().optional(),pinnedViews:C(rn).nullable().optional(),layout:cn.nullable().optional(),homeTile:at.nullable().optional(),homeTiles:C(at).nullable().optional(),homePrompts:C(r()).nullable().optional()});function Ss(t){const e=t?.homeTiles;if(Array.isArray(e)&&e.length>0)return e;const n=t?.homeTile;return n?[n]:[]}const dn=/^[A-Za-z_][A-Za-z0-9_]*$/,rt=r().min(1).regex(dn,{message:"Env var key must start with a letter or underscore and contain only letters, digits, and underscores."}),un=Ct("kind",[S({key:rt,kind:qe("literal"),value:r()}),S({key:rt,kind:qe("secret"),secretId:r().min(1)})]),pn=/^[a-zA-Z0-9.-]+(?::[0-9]+)?$/,hn=S({host:r().min(1).regex(pn).describe("Submodule host, e.g. 'github.com' (bare hostname, no scheme)."),secretId:r().min(1).describe("Vault secret id holding the PAT used to fetch this host.")}),Qe=S({selected:r().nullable().optional().describe("User-selected package manager (npm | pnpm | yarn | bun | deno). Null/absent means autodetect on next SANDBOX_START."),port:r().nullable().optional().describe("User-selected dev server port as a string (allows '' / null for unset). Null/absent means autodetect."),path:r().nullable().optional().describe("Optional path (relative to repo root) to the directory containing package.json. Null/absent means repo root. Forwarded as `application.packageManager.path` to the daemon config."),env:C(un).nullable().optional().describe("Env vars injected on every SANDBOX_START. Literal entries inline their value; secret entries store a secretId that Studio resolves via the credential vault before posting /_sandbox/config."),submoduleCredentials:C(hn).nullable().optional().describe("Git submodule credentials injected on every SANDBOX_START. Each entry maps a host to a vault secret (PAT) that Studio resolves before posting /_sandbox/config; the daemon uses it to authenticate `git submodule update` for submodules on that host.")}),We=S({url:r().describe("GitHub repository URL"),owner:r().describe("Repository owner"),name:r().describe("Repository name"),installationId:Ce().optional().describe("GitHub App installation ID. Absent when the repo was linked without a GitHub connection (public-clone mode)."),connectionId:r().optional().describe("ID of the mcp-github connection used for authentication. Absent for public repos cloned without credentials.")}),mn=me(["agent-sandbox","user-desktop"]),fn=me(["agent-sandbox","user-desktop","cluster"]);function ze(t){return t==="cluster"?"agent-sandbox":t}const vt={sandboxHandle:r().describe("Provider-specific handle"),previewUrl:r().nullable().describe("URL where the sandbox's iframe-proxied UI is served, or null when the sandbox has no dev server (blank / tool sandboxes)."),sandboxApiUrl:r().nullable().optional().describe("Daemon's public URL — what cluster→daemon RPCs target. Equal to previewUrl for user-desktop; null/absent for the agent-sandbox provider (routes through hosted ingress)."),sandboxProviderKind:mn.optional(),createdAt:Ce().optional().describe("Epoch ms the entry was first written by SANDBOX_START. Used by the booting overlay to show a stable elapsed timer that survives browser reloads. Optional for backward compatibility with entries written before this field existed."),startedWith:S({packageManager:r().nullable().optional().describe("metadata.runtime.selected at the time of SANDBOX_START"),port:r().nullable().optional().describe("metadata.runtime.port at the time of SANDBOX_START"),path:r().nullable().optional().describe("metadata.runtime.path at the time of SANDBOX_START")}).optional().describe("Snapshot of metadata.runtime fields (selected/port/path) used at SANDBOX_START. The Preview tab compares the live metadata.runtime against this to decide if a restart is required to apply changes.")},St=S(vt),bn=S({...vt,sandboxProviderKind:fn.optional()});function gn(t){const e=bn.parse(t);return St.parse({...e,sandboxProviderKind:e.sandboxProviderKind?ze(e.sandboxProviderKind):void 0})}function ks(t){if(!t||typeof t!="object"||Array.isArray(t))return{};const e=t,n={};for(const[s,o]of Object.entries(e)){if(!o||typeof o!="object"||s!=="cluster"&&s!=="agent-sandbox"&&s!=="user-desktop")continue;const a=ze(s);try{if(s==="cluster"&&n[a])continue;n[a]=gn(o)}catch{}}return n}const Ge=Ie(r().describe("userId"),Ie(r().describe("branch"),Ie(r().describe("sandboxProviderKind"),St))),yn=S({id:r().describe("Stable identifier for this knowledge file"),name:r().describe("File name shown in the UI"),kind:me(["file","skill"]).optional().describe("'file' (a single document) or 'skill' (a Claude Code skill folder containing SKILL.md). Defaults to 'file'."),volume:r().describe("Org filesystem (Library) volume the file lives in"),path:r().describe("Path within the volume"),url:r().describe("Same-origin URL to read the file (display/download)"),contentType:r().nullable().optional().describe("MIME type, used to decide whether to inline the content"),size:Ce().nullable().optional().describe("File size in bytes"),addedAt:r().describe("ISO timestamp when the file was attached")}),Xe=C(yn).nullable().optional().describe("Files attached to the agent as reference knowledge. Surfaced in the system prompt: small text documents are inlined, others are listed as retrievable references."),vn=me(["smart","code-review","open"]),Ze=vn.nullable().optional().describe("Controls when this code agent's changes may be published directly vs. requiring PR review. 'smart' (default) uses AI to judge per change; 'code-review' requires review for any code; 'open' allows direct publish always."),Ye=ee().nullable().optional().describe("Enable Fast Preview (sandbox-less): render the draft instantly on the preview server's own page via a ?__draft pointer, with reads/writes served by the decofile API against GitHub. Requires previewServerUrl (or legacy productionUrl) to be set to take effect."),Je=r().nullable().optional().describe("Preview server URL — the deployment the CMS preview renders against (often the live site, e.g. https://acme.com). Painted in the preview iframe, and the render target for Fast Preview drafts. Supersedes the legacy productionUrl key."),xs=S({id:r().describe("Unique identifier"),title:r().describe("Human-readable name"),description:r().nullable().describe("Description"),icon:r().nullable().describe("Icon URL"),created_at:r().describe("Creation timestamp"),updated_at:r().describe("Last update timestamp"),created_by:r().describe("User ID who created this item"),updated_by:r().optional().describe("User ID who last updated this item"),organization_id:r().describe("Organization ID this item belongs to"),status:me(["active","inactive"]).describe("Current status"),pinned:ee().describe("Whether this space is pinned to the sidebar"),metadata:S({instructions:r().nullable().describe("Instructions also used as system prompt"),enabled_plugins:C(r()).nullable().optional().describe("List of enabled plugin IDs"),subAgents:C(r()).nullable().optional().describe("Allowlist of Virtual MCP (agent) or concrete MCP connection IDs this agent may delegate to via subtask. Concrete connections create ephemeral subagents. null/absent = all active org targets; empty array = itself only."),liveAgentId:r().nullable().optional().describe("ID of the live agent this (dev) agent develops. Set only on dev agents; powers the Develop/Live toggle. A dev agent is hidden from the sidebar (reached via the toggle on its live counterpart)."),ui:Be.nullable().optional().describe("UI customization settings"),githubRepo:We.nullable().optional().describe("Linked GitHub repository"),runtime:Qe.nullable().optional().describe("User-pinned runtime config (package manager, dev port). Empty fields = autodetect."),sandboxMap:Ge.optional().describe("Per-user, per-branch sandbox mapping: sandboxMap[userId][branch] -> { sandboxHandle, previewUrl }"),knowledge:Xe,siteSlug:r().nullable().optional().describe("Linked asset site slug (managed storage tenancy)"),publishPolicy:Ze,previewServerUrl:Je,productionUrl:r().nullable().optional().describe("Legacy key for previewServerUrl — still read as a fallback. New writes use previewServerUrl."),fieldDescriptionTooltips:ee().nullable().optional().describe("Blocks form: opt in to showing a field's schema description as a hover tooltip on its title, instead of the default inline text below the title."),fastPreview:Ye}).loose().describe("Metadata"),connections:C(we).describe("Connections with their selected tools, resources, and prompts")}),kt=S({title:r().min(1).max(120).describe("Short label shown on the chip"),description:r().max(280).optional().describe("One-line subtitle shown under the title"),text:r().min(1).describe("The message sent to the agent when the prompt is clicked")});S({title:r().min(1).max(255).describe("Name for the virtual MCP"),description:r().nullable().optional().describe("Optional description"),icon:r().nullish().describe("Optional icon URL"),status:me(["active","inactive"]).optional().default("active").describe("Initial status"),pinned:ee().optional().default(!1).describe("Pin to sidebar"),metadata:S({instructions:r().nullable().optional().describe("MCP server instructions"),enabled_plugins:C(r()).nullable().optional().describe("List of enabled plugin IDs"),subAgents:C(r()).nullable().optional().describe("Allowlist of Virtual MCP (agent) or concrete MCP connection IDs this agent may delegate to via subtask. Concrete connections create ephemeral subagents. null/absent = all active org targets; empty array = itself only."),liveAgentId:r().nullable().optional().describe("ID of the live agent this (dev) agent develops. Set only on dev agents; powers the Develop/Live toggle. A dev agent is hidden from the sidebar (reached via the toggle on its live counterpart)."),ui:Be.nullable().optional().describe("UI customization settings"),githubRepo:We.nullable().optional().describe("Linked GitHub repository"),runtime:Qe.nullable().optional().describe("User-pinned runtime config (package manager, dev port). Empty fields = autodetect."),sandboxMap:Ge.optional().describe("Per-user, per-branch sandbox mapping: sandboxMap[userId][branch] -> { sandboxHandle, previewUrl }"),knowledge:Xe,siteSlug:r().nullable().optional().describe("Linked asset site slug (managed storage tenancy)"),publishPolicy:Ze,previewServerUrl:Je,productionUrl:r().nullable().optional().describe("Legacy key for previewServerUrl — still read as a fallback. New writes use previewServerUrl."),fieldDescriptionTooltips:ee().nullable().optional().describe("Blocks form: opt in to showing a field's schema description as a hover tooltip on its title, instead of the default inline text below the title."),fastPreview:Ye}).loose().nullable().optional().describe("Additional metadata including MCP server instructions"),connections:C(yt).describe("Connections to include/exclude (can be empty for exclusion mode)"),prompts:C(kt).optional().describe("Optional kickstart prompts to seed on the agent. Each becomes a clickable conversation starter (icebreaker) on the agent. Author them from the agent's role and the tools it will have so they're coherent and immediately useful.")});S({title:r().min(1).max(255).optional().describe("New name"),description:r().nullable().optional().describe("New description (null to clear)"),icon:r().nullish().describe("New icon URL"),status:me(["active","inactive"]).optional().describe("New status"),pinned:ee().optional().describe("Pin/unpin from sidebar"),metadata:S({instructions:r().nullable().optional().describe("MCP server instructions"),enabled_plugins:C(r()).nullable().optional().describe("List of enabled plugin IDs"),subAgents:C(r()).nullable().optional().describe("Allowlist of Virtual MCP (agent) or concrete MCP connection IDs this agent may delegate to via subtask. Concrete connections create ephemeral subagents. null/absent = all active org targets; empty array = itself only."),liveAgentId:r().nullable().optional().describe("ID of the live agent this (dev) agent develops. Set only on dev agents; powers the Develop/Live toggle. A dev agent is hidden from the sidebar (reached via the toggle on its live counterpart)."),ui:Be.nullable().optional().describe("UI customization settings"),githubRepo:We.nullable().optional().describe("Linked GitHub repository"),runtime:Qe.nullable().optional().describe("User-pinned runtime config (package manager, dev port). Empty fields = autodetect."),sandboxMap:Ge.optional().describe("Per-user, per-branch sandbox mapping: sandboxMap[userId][branch] -> { sandboxHandle, previewUrl }"),knowledge:Xe,siteSlug:r().nullable().optional().describe("Linked asset site slug (managed storage tenancy)"),publishPolicy:Ze,previewServerUrl:Je,productionUrl:r().nullable().optional().describe("Legacy key for previewServerUrl — still read as a fallback. New writes use previewServerUrl."),fieldDescriptionTooltips:ee().nullable().optional().describe("Blocks form: opt in to showing a field's schema description as a hover tooltip on its title, instead of the default inline text below the title."),fastPreview:Ye}).loose().nullable().optional().describe("Additional metadata including MCP server instructions"),connections:C(yt).optional().describe("New connections (replaces existing)"),prompts:C(kt).optional().describe("Replace the agent's kickstart prompts with this full set. Omit to leave them unchanged; pass an empty array to remove all. Each becomes a clickable conversation starter (icebreaker).")});function et(t,e){return ue.chatThreadIntent(t,e)}function it(t,e,n,s){if(!(!s.runtime&&!s.branch))try{t.setItem(et(e,n),JSON.stringify(s))}catch{}}function lt(t,e,n){try{t.removeItem(et(e,n))}catch{}}function ws(t,e,n){const s=et(e,n);let o=null;try{o=t.getItem(s),t.removeItem(s)}catch{return{}}if(!o)return{};let a;try{a=JSON.parse(o)}catch{return{}}if(!a||typeof a!="object")return{};const i=a,l=Vt(i.runtime),u=typeof i.branch=="string"&&i.branch?i.branch:void 0;return{...l?{runtime:l}:{},...u?{branch:u}:{}}}function Sn(t,e=[]){return t==="stop"?"completed":t==="tool-calls"?e.some(s=>s.type==="tool-user_ask"&&s.state==="input-available"||s.state==="approval-requested")?"requires_action":"completed":"failed"}const je={decopilot:{harness:"decopilot",sandbox:"agent-sandbox"},"claude-code-desktop":{harness:"claude-code",sandbox:"user-desktop"},"codex-desktop":{harness:"codex",sandbox:"user-desktop"},"opencode-desktop":{harness:"opencode",sandbox:"user-desktop"}};function kn(t,e){if(!t)return null;const n=e?ze(e):null;if(t==="decopilot"&&(n===null||n==="user-desktop"))return"decopilot";for(const[s,o]of Object.entries(je))if(o.harness===t&&o.sandbox===n)return s;return null}function xn({pendingOption:t,lockedHarness:e}){return e==="claude-code"?"claude-code-desktop":e==="codex"?"codex-desktop":e==="opencode"?"opencode-desktop":t==="claude-code-desktop"||t==="codex-desktop"||t==="opencode-desktop"?t:null}function wn(t){return t.thread?.harness_id!=null?{}:{harnessId:"decopilot",sandboxProviderKind:"agent-sandbox",branch:t.globals.branch??null}}const In="home",Mn=new Set(["output","upload","public","home"]),Tn=/^[A-Za-z0-9][A-Za-z0-9._-]*$/;function Is(t){return Mn.has(t)||!Tn.test(t)?"home":t}function Cn(t){const e=t?t.split("/").filter(Boolean):[],n=e[0]==="public",s=n?e[1]??null:null,o=n?s?`public-${s}`:null:e[0]??null,a=(n?e.slice(2):e.slice(1)).join("/");return{segments:e,volume:o,dirPath:a,isPublic:n,publicSet:s,readOnly:n,isHomeRoot:o===In&&a===""}}function Ms(t){return t==="public"?"skills":t}function Ts(t,e){return t.isPublic&&t.publicSet?`public/${t.publicSet}/${e}`:t.volume?`${t.volume}/${e}`:e}const ct="public-";function xt(t){return t.startsWith(ct)?t.slice(ct.length):null}function Cs(t,e){const n=xt(t);return n?`public/${n}/${e}`:`${t}/${e}`}function An(t){const e=t.lastIndexOf("/");return e===-1?t:t.slice(e+1)}function Pn(t){const{volume:e,dirPath:n}=Cn(t);if(!e)return null;let s;if(e==="home")s="org/home";else if(e==="outputs")s="org/.outputs";else if(e==="uploads")s="org/.uploads";else{const o=xt(e);s=o?`org/public/${o}`:`org/${e}`}return n?`${s}/${n}`:s}function _n(t){const e=le.c(21);let n;e[0]===Symbol.for("react.memo_cache_sentinel")?(n={from:"/shell/$org/settings/connections/$appSlug/$collectionName/$itemId",shouldThrow:!1},e[0]=n):n=e[0];const s=mt(n);let o;e[1]===Symbol.for("react.memo_cache_sentinel")?(o={strict:!1},e[1]=o):o=e[1];const a=Ve(o);let i;e[2]!==a.brand||e[3]!==a.main||e[4]!==a.preview||e[5]!==a.skill?(i=(typeof a.main=="string"?Lt(a.main)?.path:void 0)??a.preview??a.skill??a.brand??null,e[2]=a.brand,e[3]=a.main,e[4]=a.preview,e[5]=a.skill,e[6]=i):i=e[6];const l=i;let u;if(e[7]!==s?.params.appSlug||e[8]!==s?.params.collectionName||e[9]!==s?.params.itemId||e[10]!==l||e[11]!==t){if(u=[],t&&u.push(`### Selected Agent
|
|
1
|
+
import{ak as S,al as C,ar as ee,am as r,an as me,aq as Ie,bl as Ce,de as Ct,bX as qe,bL as ht,I as ue,c as le,a4 as mt,u as Ve,p as Ke,H as te,K as he,t as pe,R as ye,d as ft,f as At,r as v,o as Pt,av as _t,e as Rt,aQ as Et,j as Me,b as De,a as Dt,x as $t,aw as Ut,q as Ot}from"./index-BAzBxxL9.js";import{e as Lt,t as Nt,A as bt,u as Ft,v as qt,q as jt,w as Ht}from"./tab-id-DMd10Dlk.js";import{p as Vt}from"./session-runtime-wVXsCwcJ.js";import{S as Kt,s as Bt,c as Qt,f as Wt,i as zt,a as Gt}from"./hooks-BsA5QClW.js";import{u as Xt}from"./use-is-desktop-app-BNujXJc_.js";import{u as Zt}from"./use-mcp-client-DP99b3Me.js";import{a as Yt,S as Jt}from"./constants-_08zpzmT.js";import{a as en}from"./use-virtual-mcp-Dg7xWNG-.js";import{u as gt,p as tn,b as xe,i as nn,c as sn}from"./use-ai-providers-vhWA7gSP.js";import{u as on}from"./use-decopilot-events-EyNfu7Kq.js";import{c as an}from"./use-organization-settings-CjuBssHq.js";const we=S({connection_id:r().describe("Connection ID"),selected_tools:C(r()).nullable().describe("Selected tool names. null = all tools included, array = only these tools included"),selected_resources:C(r()).nullable().describe("Selected resource URIs or patterns. Supports * and ** wildcards for pattern matching. null = all resources included, array = only these resources included"),selected_prompts:C(r()).nullable().describe("Selected prompt names. null = all prompts included, array = only these prompts included")}),yt=we.extend({selected_tools:we.shape.selected_tools.optional(),selected_resources:we.shape.selected_resources.optional(),selected_prompts:we.shape.selected_prompts.optional()}),rn=S({connectionId:r(),toolName:r(),label:r(),icon:r().nullable().optional()}),ln=S({id:r().describe("Stable id; used as React key and ?tab= value"),title:r().describe("Tab label"),icon:r().optional().describe("Optional lucide icon name"),view:S({type:qe("ext-app"),appId:r(),args:Ie(r(),ht()).optional()})}),cn=S({defaultMainView:S({type:r(),id:r().optional(),toolName:r().optional()}).nullable().optional(),chatDefaultOpen:ee().nullable().optional(),cmsDefaultOpen:ee().nullable().optional(),tabs:C(ln).optional()}),at=S({tileId:r().optional(),connectionId:r().optional().describe("Connection that owns the resource — the host opens a direct MCP client to this connection so the iframe can call tools by their bare names."),resourceUri:r().describe("ui:// resource URI exposed by `connectionId`. Read on the home page and rendered via MCPAppRenderer."),toolName:r().optional().describe("Tool name — identifies which tool's inputSchema to display when editing tile props."),toolInput:Ie(r(),ht()).optional().describe("User-configured input props passed to MCPAppRenderer when rendering the tile."),minHeight:Ce().int().positive().optional(),maxHeight:Ce().int().positive().optional()}),Be=S({banner:r().nullable().optional(),bannerColor:r().nullable().optional(),icon:r().nullable().optional(),themeColor:r().nullable().optional(),pinnedViews:C(rn).nullable().optional(),layout:cn.nullable().optional(),homeTile:at.nullable().optional(),homeTiles:C(at).nullable().optional(),homePrompts:C(r()).nullable().optional()});function Ss(t){const e=t?.homeTiles;if(Array.isArray(e)&&e.length>0)return e;const n=t?.homeTile;return n?[n]:[]}const dn=/^[A-Za-z_][A-Za-z0-9_]*$/,rt=r().min(1).regex(dn,{message:"Env var key must start with a letter or underscore and contain only letters, digits, and underscores."}),un=Ct("kind",[S({key:rt,kind:qe("literal"),value:r()}),S({key:rt,kind:qe("secret"),secretId:r().min(1)})]),pn=/^[a-zA-Z0-9.-]+(?::[0-9]+)?$/,hn=S({host:r().min(1).regex(pn).describe("Submodule host, e.g. 'github.com' (bare hostname, no scheme)."),secretId:r().min(1).describe("Vault secret id holding the PAT used to fetch this host.")}),Qe=S({selected:r().nullable().optional().describe("User-selected package manager (npm | pnpm | yarn | bun | deno). Null/absent means autodetect on next SANDBOX_START."),port:r().nullable().optional().describe("User-selected dev server port as a string (allows '' / null for unset). Null/absent means autodetect."),path:r().nullable().optional().describe("Optional path (relative to repo root) to the directory containing package.json. Null/absent means repo root. Forwarded as `application.packageManager.path` to the daemon config."),env:C(un).nullable().optional().describe("Env vars injected on every SANDBOX_START. Literal entries inline their value; secret entries store a secretId that Studio resolves via the credential vault before posting /_sandbox/config."),submoduleCredentials:C(hn).nullable().optional().describe("Git submodule credentials injected on every SANDBOX_START. Each entry maps a host to a vault secret (PAT) that Studio resolves before posting /_sandbox/config; the daemon uses it to authenticate `git submodule update` for submodules on that host.")}),We=S({url:r().describe("GitHub repository URL"),owner:r().describe("Repository owner"),name:r().describe("Repository name"),installationId:Ce().optional().describe("GitHub App installation ID. Absent when the repo was linked without a GitHub connection (public-clone mode)."),connectionId:r().optional().describe("ID of the mcp-github connection used for authentication. Absent for public repos cloned without credentials.")}),mn=me(["agent-sandbox","user-desktop"]),fn=me(["agent-sandbox","user-desktop","cluster"]);function ze(t){return t==="cluster"?"agent-sandbox":t}const vt={sandboxHandle:r().describe("Provider-specific handle"),previewUrl:r().nullable().describe("URL where the sandbox's iframe-proxied UI is served, or null when the sandbox has no dev server (blank / tool sandboxes)."),sandboxApiUrl:r().nullable().optional().describe("Daemon's public URL — what cluster→daemon RPCs target. Equal to previewUrl for user-desktop; null/absent for the agent-sandbox provider (routes through hosted ingress)."),sandboxProviderKind:mn.optional(),createdAt:Ce().optional().describe("Epoch ms the entry was first written by SANDBOX_START. Used by the booting overlay to show a stable elapsed timer that survives browser reloads. Optional for backward compatibility with entries written before this field existed."),startedWith:S({packageManager:r().nullable().optional().describe("metadata.runtime.selected at the time of SANDBOX_START"),port:r().nullable().optional().describe("metadata.runtime.port at the time of SANDBOX_START"),path:r().nullable().optional().describe("metadata.runtime.path at the time of SANDBOX_START")}).optional().describe("Snapshot of metadata.runtime fields (selected/port/path) used at SANDBOX_START. The Preview tab compares the live metadata.runtime against this to decide if a restart is required to apply changes.")},St=S(vt),bn=S({...vt,sandboxProviderKind:fn.optional()});function gn(t){const e=bn.parse(t);return St.parse({...e,sandboxProviderKind:e.sandboxProviderKind?ze(e.sandboxProviderKind):void 0})}function ks(t){if(!t||typeof t!="object"||Array.isArray(t))return{};const e=t,n={};for(const[s,o]of Object.entries(e)){if(!o||typeof o!="object"||s!=="cluster"&&s!=="agent-sandbox"&&s!=="user-desktop")continue;const a=ze(s);try{if(s==="cluster"&&n[a])continue;n[a]=gn(o)}catch{}}return n}const Ge=Ie(r().describe("userId"),Ie(r().describe("branch"),Ie(r().describe("sandboxProviderKind"),St))),yn=S({id:r().describe("Stable identifier for this knowledge file"),name:r().describe("File name shown in the UI"),kind:me(["file","skill"]).optional().describe("'file' (a single document) or 'skill' (a Claude Code skill folder containing SKILL.md). Defaults to 'file'."),volume:r().describe("Org filesystem (Library) volume the file lives in"),path:r().describe("Path within the volume"),url:r().describe("Same-origin URL to read the file (display/download)"),contentType:r().nullable().optional().describe("MIME type, used to decide whether to inline the content"),size:Ce().nullable().optional().describe("File size in bytes"),addedAt:r().describe("ISO timestamp when the file was attached")}),Xe=C(yn).nullable().optional().describe("Files attached to the agent as reference knowledge. Surfaced in the system prompt: small text documents are inlined, others are listed as retrievable references."),vn=me(["smart","code-review","open"]),Ze=vn.nullable().optional().describe("Controls when this code agent's changes may be published directly vs. requiring PR review. 'smart' (default) uses AI to judge per change; 'code-review' requires review for any code; 'open' allows direct publish always."),Ye=ee().nullable().optional().describe("Enable Fast Preview (sandbox-less): render the draft instantly on the preview server's own page via a ?__draft pointer, with reads/writes served by the decofile API against GitHub. Requires previewServerUrl (or legacy productionUrl) to be set to take effect."),Je=r().nullable().optional().describe("Preview server URL — the deployment the CMS preview renders against (often the live site, e.g. https://acme.com). Painted in the preview iframe, and the render target for Fast Preview drafts. Supersedes the legacy productionUrl key."),xs=S({id:r().describe("Unique identifier"),title:r().describe("Human-readable name"),description:r().nullable().describe("Description"),icon:r().nullable().describe("Icon URL"),created_at:r().describe("Creation timestamp"),updated_at:r().describe("Last update timestamp"),created_by:r().describe("User ID who created this item"),updated_by:r().optional().describe("User ID who last updated this item"),organization_id:r().describe("Organization ID this item belongs to"),status:me(["active","inactive"]).describe("Current status"),pinned:ee().describe("Whether this space is pinned to the sidebar"),metadata:S({instructions:r().nullable().describe("Instructions also used as system prompt"),enabled_plugins:C(r()).nullable().optional().describe("List of enabled plugin IDs"),subAgents:C(r()).nullable().optional().describe("Allowlist of Virtual MCP (agent) or concrete MCP connection IDs this agent may delegate to via subtask. Concrete connections create ephemeral subagents. null/absent = all active org targets; empty array = itself only."),liveAgentId:r().nullable().optional().describe("ID of the live agent this (dev) agent develops. Set only on dev agents; powers the Develop/Live toggle. A dev agent is hidden from the sidebar (reached via the toggle on its live counterpart)."),ui:Be.nullable().optional().describe("UI customization settings"),githubRepo:We.nullable().optional().describe("Linked GitHub repository"),runtime:Qe.nullable().optional().describe("User-pinned runtime config (package manager, dev port). Empty fields = autodetect."),sandboxMap:Ge.optional().describe("Per-user, per-branch sandbox mapping: sandboxMap[userId][branch] -> { sandboxHandle, previewUrl }"),knowledge:Xe,siteSlug:r().nullable().optional().describe("Linked asset site slug (managed storage tenancy)"),publishPolicy:Ze,previewServerUrl:Je,productionUrl:r().nullable().optional().describe("Legacy key for previewServerUrl — still read as a fallback. New writes use previewServerUrl."),fieldDescriptionTooltips:ee().nullable().optional().describe("Blocks form: opt in to showing a field's schema description as a hover tooltip on its title, instead of the default inline text below the title."),fastPreview:Ye}).loose().describe("Metadata"),connections:C(we).describe("Connections with their selected tools, resources, and prompts")}),kt=S({title:r().min(1).max(120).describe("Short label shown on the chip"),description:r().max(280).optional().describe("One-line subtitle shown under the title"),text:r().min(1).describe("The message sent to the agent when the prompt is clicked")});S({title:r().min(1).max(255).describe("Name for the virtual MCP"),description:r().nullable().optional().describe("Optional description"),icon:r().nullish().describe("Optional icon URL"),status:me(["active","inactive"]).optional().default("active").describe("Initial status"),pinned:ee().optional().default(!1).describe("Pin to sidebar"),metadata:S({instructions:r().nullable().optional().describe("MCP server instructions"),enabled_plugins:C(r()).nullable().optional().describe("List of enabled plugin IDs"),subAgents:C(r()).nullable().optional().describe("Allowlist of Virtual MCP (agent) or concrete MCP connection IDs this agent may delegate to via subtask. Concrete connections create ephemeral subagents. null/absent = all active org targets; empty array = itself only."),liveAgentId:r().nullable().optional().describe("ID of the live agent this (dev) agent develops. Set only on dev agents; powers the Develop/Live toggle. A dev agent is hidden from the sidebar (reached via the toggle on its live counterpart)."),ui:Be.nullable().optional().describe("UI customization settings"),githubRepo:We.nullable().optional().describe("Linked GitHub repository"),runtime:Qe.nullable().optional().describe("User-pinned runtime config (package manager, dev port). Empty fields = autodetect."),sandboxMap:Ge.optional().describe("Per-user, per-branch sandbox mapping: sandboxMap[userId][branch] -> { sandboxHandle, previewUrl }"),knowledge:Xe,siteSlug:r().nullable().optional().describe("Linked asset site slug (managed storage tenancy)"),publishPolicy:Ze,previewServerUrl:Je,productionUrl:r().nullable().optional().describe("Legacy key for previewServerUrl — still read as a fallback. New writes use previewServerUrl."),fieldDescriptionTooltips:ee().nullable().optional().describe("Blocks form: opt in to showing a field's schema description as a hover tooltip on its title, instead of the default inline text below the title."),fastPreview:Ye}).loose().nullable().optional().describe("Additional metadata including MCP server instructions"),connections:C(yt).describe("Connections to include/exclude (can be empty for exclusion mode)"),prompts:C(kt).optional().describe("Optional kickstart prompts to seed on the agent. Each becomes a clickable conversation starter (icebreaker) on the agent. Author them from the agent's role and the tools it will have so they're coherent and immediately useful.")});S({title:r().min(1).max(255).optional().describe("New name"),description:r().nullable().optional().describe("New description (null to clear)"),icon:r().nullish().describe("New icon URL"),status:me(["active","inactive"]).optional().describe("New status"),pinned:ee().optional().describe("Pin/unpin from sidebar"),metadata:S({instructions:r().nullable().optional().describe("MCP server instructions"),enabled_plugins:C(r()).nullable().optional().describe("List of enabled plugin IDs"),subAgents:C(r()).nullable().optional().describe("Allowlist of Virtual MCP (agent) or concrete MCP connection IDs this agent may delegate to via subtask. Concrete connections create ephemeral subagents. null/absent = all active org targets; empty array = itself only."),liveAgentId:r().nullable().optional().describe("ID of the live agent this (dev) agent develops. Set only on dev agents; powers the Develop/Live toggle. A dev agent is hidden from the sidebar (reached via the toggle on its live counterpart)."),ui:Be.nullable().optional().describe("UI customization settings"),githubRepo:We.nullable().optional().describe("Linked GitHub repository"),runtime:Qe.nullable().optional().describe("User-pinned runtime config (package manager, dev port). Empty fields = autodetect."),sandboxMap:Ge.optional().describe("Per-user, per-branch sandbox mapping: sandboxMap[userId][branch] -> { sandboxHandle, previewUrl }"),knowledge:Xe,siteSlug:r().nullable().optional().describe("Linked asset site slug (managed storage tenancy)"),publishPolicy:Ze,previewServerUrl:Je,productionUrl:r().nullable().optional().describe("Legacy key for previewServerUrl — still read as a fallback. New writes use previewServerUrl."),fieldDescriptionTooltips:ee().nullable().optional().describe("Blocks form: opt in to showing a field's schema description as a hover tooltip on its title, instead of the default inline text below the title."),fastPreview:Ye}).loose().nullable().optional().describe("Additional metadata including MCP server instructions"),connections:C(yt).optional().describe("New connections (replaces existing)"),prompts:C(kt).optional().describe("Replace the agent's kickstart prompts with this full set. Omit to leave them unchanged; pass an empty array to remove all. Each becomes a clickable conversation starter (icebreaker).")});function et(t,e){return ue.chatThreadIntent(t,e)}function it(t,e,n,s){if(!(!s.runtime&&!s.branch))try{t.setItem(et(e,n),JSON.stringify(s))}catch{}}function lt(t,e,n){try{t.removeItem(et(e,n))}catch{}}function ws(t,e,n){const s=et(e,n);let o=null;try{o=t.getItem(s),t.removeItem(s)}catch{return{}}if(!o)return{};let a;try{a=JSON.parse(o)}catch{return{}}if(!a||typeof a!="object")return{};const i=a,l=Vt(i.runtime),u=typeof i.branch=="string"&&i.branch?i.branch:void 0;return{...l?{runtime:l}:{},...u?{branch:u}:{}}}function Sn(t,e=[]){return t==="stop"?"completed":t==="tool-calls"?e.some(s=>s.type==="tool-user_ask"&&s.state==="input-available"||s.state==="approval-requested")?"requires_action":"completed":"failed"}const je={decopilot:{harness:"decopilot",sandbox:"agent-sandbox"},"claude-code-desktop":{harness:"claude-code",sandbox:"user-desktop"},"codex-desktop":{harness:"codex",sandbox:"user-desktop"},"opencode-desktop":{harness:"opencode",sandbox:"user-desktop"}};function kn(t,e){if(!t)return null;const n=e?ze(e):null;if(t==="decopilot"&&(n===null||n==="user-desktop"))return"decopilot";for(const[s,o]of Object.entries(je))if(o.harness===t&&o.sandbox===n)return s;return null}function xn({pendingOption:t,lockedHarness:e}){return e==="claude-code"?"claude-code-desktop":e==="codex"?"codex-desktop":e==="opencode"?"opencode-desktop":t==="claude-code-desktop"||t==="codex-desktop"||t==="opencode-desktop"?t:null}function wn(t){return t.thread?.harness_id!=null?{}:{harnessId:"decopilot",sandboxProviderKind:"agent-sandbox",branch:t.globals.branch??null}}const In="home",Mn=new Set(["output","upload","public","home"]),Tn=/^[A-Za-z0-9][A-Za-z0-9._-]*$/;function Is(t){return Mn.has(t)||!Tn.test(t)?"home":t}function Cn(t){const e=t?t.split("/").filter(Boolean):[],n=e[0]==="public",s=n?e[1]??null:null,o=n?s?`public-${s}`:null:e[0]??null,a=(n?e.slice(2):e.slice(1)).join("/");return{segments:e,volume:o,dirPath:a,isPublic:n,publicSet:s,readOnly:n,isHomeRoot:o===In&&a===""}}function Ms(t){return t==="public"?"skills":t}function Ts(t,e){return t.isPublic&&t.publicSet?`public/${t.publicSet}/${e}`:t.volume?`${t.volume}/${e}`:e}const ct="public-";function xt(t){return t.startsWith(ct)?t.slice(ct.length):null}function Cs(t,e){const n=xt(t);return n?`public/${n}/${e}`:`${t}/${e}`}function An(t){const e=t.lastIndexOf("/");return e===-1?t:t.slice(e+1)}function Pn(t){const{volume:e,dirPath:n}=Cn(t);if(!e)return null;let s;if(e==="home")s="org/home";else if(e==="outputs")s="org/.outputs";else if(e==="uploads")s="org/.uploads";else{const o=xt(e);s=o?`org/public/${o}`:`org/${e}`}return n?`${s}/${n}`:s}function _n(t){const e=le.c(21);let n;e[0]===Symbol.for("react.memo_cache_sentinel")?(n={from:"/shell/$org/settings/connections/$appSlug/$collectionName/$itemId",shouldThrow:!1},e[0]=n):n=e[0];const s=mt(n);let o;e[1]===Symbol.for("react.memo_cache_sentinel")?(o={strict:!1},e[1]=o):o=e[1];const a=Ve(o);let i;e[2]!==a.brand||e[3]!==a.main||e[4]!==a.preview||e[5]!==a.skill?(i=(typeof a.main=="string"?Lt(a.main)?.path:void 0)??a.preview??a.skill??a.brand??null,e[2]=a.brand,e[3]=a.main,e[4]=a.preview,e[5]=a.skill,e[6]=i):i=e[6];const l=i;let u;if(e[7]!==s?.params.appSlug||e[8]!==s?.params.collectionName||e[9]!==s?.params.itemId||e[10]!==l||e[11]!==t){if(u=[],t&&u.push(`### Selected Agent
|
|
2
2
|
- ID: ${t}`),l){let f;e[13]!==l?(f=Pn(l),e[13]=l,e[14]=f):f=e[14];const k=f;let M;e[15]!==l?(M=An(l),e[15]=l,e[16]=M):M=e[16],u.push(`### Currently Open File
|
|
3
3
|
The user has this file open in the Library and is most likely referring to it:
|
|
4
4
|
- Name: ${M}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as n,n as d,j as c,cf as l,cg as m}from"./index-
|
|
1
|
+
import{c as n,n as d,j as c,cf as l,cg as m}from"./index-BAzBxxL9.js";import{i as b}from"./Check-CJxsk2cd.js";function f(o){const e=n.c(9);let r,i;e[0]!==o?({className:r,...i}=o,e[0]=o,e[1]=r,e[2]=i):(r=e[1],i=e[2]);let a;e[3]!==r?(a=d("peer border-foreground dark:bg-input/30 data-[state=checked]:bg-primary data-[state=checked]:text-primary-foreground dark:data-[state=checked]:bg-primary data-[state=checked]:border-primary focus-visible:border-ring focus-visible:ring-ring/20 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive size-4 shrink-0 rounded-[4px] border shadow-xs transition-shadow outline-none focus-visible:ring-[2px] disabled:opacity-50",r),e[3]=r,e[4]=a):a=e[4];let t;e[5]===Symbol.for("react.memo_cache_sentinel")?(t=c.jsx(m,{"data-slot":"checkbox-indicator",className:"flex items-center justify-center text-primary-foreground transition-none",children:c.jsx(b,{className:"size-3.5"})}),e[5]=t):t=e[5];let s;return e[6]!==i||e[7]!==a?(s=c.jsx(l,{"data-slot":"checkbox",className:a,...i,children:t}),e[6]=i,e[7]=a,e[8]=s):s=e[8],s}export{f as C};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as y,j as s,u as K,b as S,d as N,B as v,r as I,N as k,o as w,K as R,k as C}from"./index-
|
|
1
|
+
import{c as y,j as s,u as K,b as S,d as N,B as v,r as I,N as k,o as w,K as R,k as C}from"./index-BAzBxxL9.js";import{A as T}from"./agent-icon-BpKbS82g.js";import{R as F}from"./required-auth-layout-ykPgRGg9.js";import"./AlertCircle-BTYGLFie.js";import"./Tool01-BjI8gxt5.js";import"./ArrowUp-fnzebitz.js";import"./ArrowLeft-BajYEy7J.js";import"./Tool02-Ct3UvI4j.js";import"./XCircle-BMgdweBK.js";import"./TrendUp01-vMMFYqH0.js";import"./ZapSquare-Z5gRSAcI.js";import"./Users03-C8z46zgV.js";import"./UserSquare-kfbSM3R7.js";import"./CheckCircle-D8lsJrHv.js";import"./Check-CJxsk2cd.js";import"./ChevronDown-Chn5-yQ3.js";import"./ChevronRight-BUEJ-jyA.js";import"./ChevronSelectorVertical-DuwT0Cdn.js";import"./ChevronUp-Bis3nYDt.js";import"./DotsVertical-CmNP1NFD.js";import"./Stars02-DNyS1gcT.js";import"./Copy01-oY33F6A4.js";import"./CreditCard01-BEFAf8Rs.js";import"./Download01-BOB13r_i.js";import"./Settings02-DxEKOFeo.js";import"./Eye-BQM4yrzA.js";import"./FilterLines-CM6IqjC1.js";import"./Share07-BAxn1THr.js";import"./Globe01-BLkvMUGE.js";import"./Globe04-CJdUUoxg.js";import"./SwitchHorizontal01-C8-bgNQy.js";import"./HardDrive-BFDRJjzR.js";import"./Key01-B5VoA08Z.js";import"./LinkExternal01-bgUoyTwQ.js";import"./LockUnlocked01-o0Eo7MuU.js";import"./LogOut01-CKpl9BLq.js";import"./Monitor01-BHWFnGlJ.js";import"./Sun-CSIUl7xv.js";import"./Palette-DAsj4nYm.js";import"./Play-Ir6C5jzg.js";import"./Plus-CySlFZzQ.js";import"./SearchLg-BevUi4lQ.js";import"./SearchMd-CUh5hEpd.js";import"./Shield01-Br0XuRfn.js";import"./Stars01-DGSNhagZ.js";import"./Trash01-lppJr9kF.js";import"./Upload01-CePHCnzY.js";import"./User01-BqNQxSWl.js";import"./Users01-GyxqhIQS.js";import"./XClose-DnnJN04M.js";import"./Zap-f9eGztfW.js";async function _(t){const e=new URLSearchParams({site:t}),l=await fetch(`/api/_editor-resolve?${e.toString()}`,{headers:{Accept:"application/json"}});if(!l.ok){const r=new Error(`editor-resolve HTTP ${l.status}`);throw r.status=l.status,r}return await l.json()}function $(t){const e=t?.status;return typeof e=="number"&&e>=400&&e<500}function A(t){return{...t.pageId?{contentPageId:t.pageId}:{},...t.path?{contentPath:t.path}:{},...t.pathTemplate?{contentPathTemplate:t.pathTemplate}:{}}}function b(t){const e=y.c(2),{children:l}=t;let r;return e[0]!==l?(r=s.jsx("div",{className:"flex min-h-screen w-full items-center justify-center bg-background p-6",children:s.jsx("div",{className:"flex w-full max-w-md flex-col items-center gap-6 text-center",children:l})}),e[0]=l,e[1]=r):r=e[1],r}function P(){const t=y.c(5),e=S();let l;t[0]===Symbol.for("react.memo_cache_sentinel")?(l=s.jsx(C,{size:24,className:"animate-spin text-muted-foreground"}),t[0]=l):l=t[0];let r;t[1]!==e?(r=e("chooseEditor.resolving"),t[1]=e,t[2]=r):r=t[2];let i;return t[3]!==r?(i=s.jsxs(b,{children:[l,s.jsx("p",{className:"text-sm text-muted-foreground",children:r})]}),t[3]=r,t[4]=i):i=t[4],i}function E(t){const e=y.c(29),{titleKey:l,descriptionKey:r,onRetry:i}=t,n=S(),p=N();let c;e[0]!==n||e[1]!==l?(c=n(l),e[0]=n,e[1]=l,e[2]=c):c=e[2];let m;e[3]!==c?(m=s.jsx("h1",{className:"text-lg font-medium text-foreground",children:c}),e[3]=c,e[4]=m):m=e[4];let f;e[5]!==r||e[6]!==n?(f=n(r),e[5]=r,e[6]=n,e[7]=f):f=e[7];let d;e[8]!==f?(d=s.jsx("p",{className:"text-sm text-muted-foreground",children:f}),e[8]=f,e[9]=d):d=e[9];let a;e[10]!==m||e[11]!==d?(a=s.jsxs("div",{className:"flex flex-col gap-2",children:[m,d]}),e[10]=m,e[11]=d,e[12]=a):a=e[12];let u;e[13]!==i||e[14]!==n?(u=i?s.jsx(v,{variant:"outline",onClick:i,children:n("chooseEditor.retry")}):null,e[13]=i,e[14]=n,e[15]=u):u=e[15];let o;e[16]!==p?(o=()=>p({to:"/"}),e[16]=p,e[17]=o):o=e[17];let g;e[18]!==n?(g=n("chooseEditor.backToStudio"),e[18]=n,e[19]=g):g=e[19];let j;e[20]!==o||e[21]!==g?(j=s.jsx(v,{onClick:o,children:g}),e[20]=o,e[21]=g,e[22]=j):j=e[22];let x;e[23]!==u||e[24]!==j?(x=s.jsxs("div",{className:"flex items-center gap-2",children:[u,j]}),e[23]=u,e[24]=j,e[25]=x):x=e[25];let h;return e[26]!==x||e[27]!==a?(h=s.jsxs(b,{children:[a,x]}),e[26]=x,e[27]=a,e[28]=h):h=e[28],h}function U(t){const e=y.c(9),{orgSlug:l,projectId:r,pageSearch:i}=t,[n]=I.useState(q);let p;e[0]!==l||e[1]!==n?(p={org:l,taskId:n},e[0]=l,e[1]=n,e[2]=p):p=e[2];let c;e[3]!==i||e[4]!==r?(c={virtualmcpid:r,main:"content",...i},e[3]=i,e[4]=r,e[5]=c):c=e[5];let m;return e[6]!==p||e[7]!==c?(m=s.jsx(k,{to:"/$org/$taskId",params:p,search:c,replace:!0}),e[6]=p,e[7]=c,e[8]=m):m=e[8],m}function q(){return crypto.randomUUID()}function D(t){const e=y.c(26),{matches:l,pageSearch:r}=t,i=S(),n=N();let p;e[0]!==n||e[1]!==r?(p=x=>{n({to:"/$org/$taskId",params:{org:x.orgSlug,taskId:crypto.randomUUID()},search:{virtualmcpid:x.project.id,main:"content",...r}})},e[0]=n,e[1]=r,e[2]=p):p=e[2];const c=p;let m;e[3]!==i?(m=i("chooseEditor.chooser.title"),e[3]=i,e[4]=m):m=e[4];let f;e[5]!==m?(f=s.jsx("h1",{className:"text-lg font-medium text-foreground",children:m}),e[5]=m,e[6]=f):f=e[6];let d;e[7]!==i?(d=i("chooseEditor.chooser.subtitle"),e[7]=i,e[8]=d):d=e[8];let a;e[9]!==d?(a=s.jsx("p",{className:"text-sm text-muted-foreground",children:d}),e[9]=d,e[10]=a):a=e[10];let u;e[11]!==f||e[12]!==a?(u=s.jsxs("div",{className:"flex flex-col gap-2",children:[f,a]}),e[11]=f,e[12]=a,e[13]=u):u=e[13];let o;if(e[14]!==l||e[15]!==c||e[16]!==i){let x;e[18]!==c||e[19]!==i?(x=h=>s.jsxs("button",{type:"button",onClick:()=>c(h),"aria-label":i("chooseEditor.chooser.openAriaLabel",{title:h.project.title,org:h.orgName}),className:"flex w-full items-center gap-3 rounded-lg border border-border bg-card p-3 text-left transition-colors hover:bg-accent",children:[s.jsx(T,{icon:h.project.icon,name:h.project.title,size:"sm"}),s.jsxs("div",{className:"flex min-w-0 flex-col",children:[s.jsx("span",{className:"truncate text-sm font-medium text-foreground",children:h.project.title}),s.jsx("span",{className:"truncate text-xs text-muted-foreground",children:h.orgName})]})]},`${h.orgSlug}/${h.project.id}`),e[18]=c,e[19]=i,e[20]=x):x=e[20],o=l.map(x),e[14]=l,e[15]=c,e[16]=i,e[17]=o}else o=e[17];let g;e[21]!==o?(g=s.jsx("div",{className:"flex w-full flex-col gap-2",children:o}),e[21]=o,e[22]=g):g=e[22];let j;return e[23]!==u||e[24]!==g?(j=s.jsxs(b,{children:[u,g]}),e[23]=u,e[24]=g,e[25]=j):j=e[25],j}function L(){const t=y.c(24);let e;t[0]===Symbol.for("react.memo_cache_sentinel")?(e={from:"/choose-editor"},t[0]=e):e=t[0];const l=K(e);let r,i,n,p;t[1]!==l?(i=l.site?.trim()??"",r=A(l),p=w,n=R.editorResolve(i),t[1]=l,t[2]=r,t[3]=i,t[4]=n,t[5]=p):(r=t[2],i=t[3],n=t[4],p=t[5]);let c;t[6]!==i?(c=()=>_(i),t[6]=i,t[7]=c):c=t[7];const m=i.length>0;let f;t[8]!==n||t[9]!==c||t[10]!==m?(f={queryKey:n,queryFn:c,enabled:m,staleTime:1/0,retry:z},t[8]=n,t[9]=c,t[10]=m,t[11]=f):f=t[11];const d=p(f);if(!i){let o;return t[12]===Symbol.for("react.memo_cache_sentinel")?(o=s.jsx(E,{titleKey:"chooseEditor.notFound.title",descriptionKey:"chooseEditor.notFound.description"}),t[12]=o):o=t[12],o}if(d.isError){let o;return t[13]!==d?(o=$(d.error)?s.jsx(E,{titleKey:"chooseEditor.notFound.title",descriptionKey:"chooseEditor.notFound.description"}):s.jsx(E,{titleKey:"chooseEditor.error.title",descriptionKey:"chooseEditor.error.description",onRetry:()=>d.refetch()}),t[13]=d,t[14]=o):o=t[14],o}if(!d.data){let o;return t[15]===Symbol.for("react.memo_cache_sentinel")?(o=s.jsx(P,{}),t[15]=o):o=t[15],o}const{matches:a}=d.data;if(a.length===0){let o;return t[16]===Symbol.for("react.memo_cache_sentinel")?(o=s.jsx(E,{titleKey:"chooseEditor.notFound.title",descriptionKey:"chooseEditor.notFound.description"}),t[16]=o):o=t[16],o}if(a.length===1&&a[0]){let o;return t[17]!==a[0].orgSlug||t[18]!==a[0].project.id||t[19]!==r?(o=s.jsx(U,{orgSlug:a[0].orgSlug,projectId:a[0].project.id,pageSearch:r}),t[17]=a[0].orgSlug,t[18]=a[0].project.id,t[19]=r,t[20]=o):o=t[20],o}let u;return t[21]!==a||t[22]!==r?(u=s.jsx(D,{matches:a,pageSearch:r}),t[21]=a,t[22]=r,t[23]=u):u=t[23],u}function z(t,e){return!$(e)&&t<2}function De(){const t=y.c(1);let e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=s.jsx(F,{children:s.jsx(L,{})}),t[0]=e):e=t[0],e}export{De as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as a,a as c,r as m,j as o}from"./index-
|
|
1
|
+
import{c as a,a as c,r as m,j as o}from"./index-BAzBxxL9.js";import{A as u}from"./auth-split-layout-BSXvcLZl.js";function p(){const e=a.c(8),i=c.useSession().data?.user?.email;let l;e[0]===Symbol.for("react.memo_cache_sentinel")?(l=[],e[0]=l):l=e[0],m.useEffect(f,l);let t;e[1]!==i?(t=i?o.jsxs(o.Fragment,{children:[" as ",i]}):"",e[1]=i,e[2]=t):t=e[2];let s;e[3]!==t?(s=o.jsxs("h1",{className:"text-3xl font-semibold tracking-tight",children:["You're logged in",t,"."]}),e[3]=t,e[4]=s):s=e[4];let n;e[5]===Symbol.for("react.memo_cache_sentinel")?(n=o.jsx("p",{className:"text-muted-foreground",children:"You can return to your terminal."}),e[5]=n):n=e[5];let r;return e[6]!==s?(r=o.jsx(u,{children:o.jsxs("div",{className:"space-y-3",children:[s,n]})}),e[6]=s,e[7]=r):r=e[7],r}function f(){window.close()}export{p as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as k,j as t,B as K,k as oe,ak as Ge,am as re,b as W,E as Ee,r as E,H as fe,bP as Xe,bQ as Oe,ao as Ze,n as Q,bR as et,u as tt,L as te,aa as st,ab as ye,a8 as we,a9 as Ce,t as lt,f as he,bS as Re}from"./index-fZpMDfe6.js";import{E as Fe}from"./empty-state-CMCoRH7w.js";import{u as ge}from"./use-mcp-client-BixLZLmc.js";import{d as ae,F as ot,a as ce,b as de}from"./form-DJoSkHk7.js";import{I as pe}from"./input-v4c8p5Ob.js";import{T as xe}from"./textarea-BmWik9O5.js";import{a as nt,b as it,V as je,O as rt,M as at}from"./index-AZvP0lkz.js";import{aO as ct,T as dt,aP as mt,al as ut,an as pt,aQ as xt,r as Ie}from"./agent-icon-Dt8TTBNR.js";import{g as ft,M as ht,a as $e}from"./types-Da-6shE5.js";import{A as gt,a as jt,b as bt}from"./alert-CVrfLuO_.js";import{S as Te,a as Pe,b as ke,c as Ae,d as me}from"./select-D9OtHuoQ.js";import{i as Nt}from"./AlertCircle-DL3U1yq7.js";import{s as vt}from"./Stars02-BEZaBHTc.js";import{a as St}from"./Copy01-CKmyRUyl.js";import{i as yt}from"./Play-D5VBgg81.js";import{i as wt}from"./ChevronRight-Bt0Ps5hy.js";import{g as Ct}from"./connection-slug-eyAPH6o3.js";import{u as It,T as $t}from"./index-CVkGlHYs.js";import{a as ze,u as Me}from"./use-connection-DJ5BvXkS.js";import{a as Tt}from"./use-mcp-tools-DhYUR3cu.js";import{M as Pt,c as kt}from"./monaco-editor-DOnHAZIR.js";import{I as De}from"./integration-icon-DKqG-Mpx.js";import{k as At,F as Dt}from"./chat-context-IctGRlpl.js";import{u as Et}from"./shell-layout-0_Y9WTC5.js";import{n as Ot}from"./Tool02-DcVuymPV.js";import"./constants-_08zpzmT.js";import"./auth-Dff1xvcy.js";import"./label-DOL_dkX5.js";import"./Key01-CQ2Pckpa.js";import"./extract-connection-data-BRWpOoZu.js";import"./metadata-dUsYcpuu.js";import"./use-registry-connections-C7LyRS1M.js";import"./use-organization-settings-B4nKr0f2.js";import"./Plus-DJBOKCXM.js";import"./index-DTM9lZbn.js";import"./index-BJiFP4oP.js";import"./popover-DSZP75un.js";import"./use-virtual-mcp-CxECG99q.js";import"./Check-CFdAuLVR.js";import"./SearchMd-Bvk6cmtM.js";import"./Users03-CeFJXyBc.js";import"./use-create-virtual-mcp-CTghZh27.js";import"./use-navigate-to-agent-COcz3Nee.js";import"./hooks-CtnSCLIe.js";import"./decopilot-sse-pool-0EWVughz.js";import"./backoff-CrEUbyZT.js";import"./delay-CnY5UFtP.js";import"./reusable-new-chat-CzvRy4Pe.js";import"./session-runtime-wVXsCwcJ.js";import"./Tool01-D15DzDIB.js";import"./ArrowUp-DUua93WQ.js";import"./ArrowLeft-BDtQVDZJ.js";import"./XCircle-vpb-OIYV.js";import"./TrendUp01-BBA3UF71.js";import"./ZapSquare-B52zBMI0.js";import"./UserSquare-DNzPXyDT.js";import"./CheckCircle-Ccs86bUg.js";import"./ChevronDown-Bh9AZv82.js";import"./ChevronSelectorVertical-CbP69kXl.js";import"./ChevronUp-CYbM4ZwP.js";import"./DotsVertical-C5qhPHKZ.js";import"./CreditCard01-DXJKk1Wt.js";import"./Download01-DZdiDQUS.js";import"./Settings02-BXfVk1mb.js";import"./Eye-DFHNhYtx.js";import"./FilterLines-C01-F8gV.js";import"./Share07-DRhhhSu7.js";import"./Globe01-qBOiIpcJ.js";import"./Globe04-DyPo8R4R.js";import"./SwitchHorizontal01-BPoIdNhd.js";import"./HardDrive-DMA6WwJi.js";import"./LinkExternal01-CDWxDAhW.js";import"./LockUnlocked01-BJDlnHNP.js";import"./LogOut01-DYTwrIyB.js";import"./Monitor01-CW9D8oQR.js";import"./Sun-CxlEqCDi.js";import"./Palette-CYMwYnzJ.js";import"./SearchLg-D05XfMH4.js";import"./Shield01--vYJckXn.js";import"./Stars01-Cfn7XpKF.js";import"./Trash01-rd-vb1MA.js";import"./Upload01-CURnTiOx.js";import"./User01-CGWss5jM.js";import"./Users01-B043Q3B_.js";import"./XClose-Ca1B07wN.js";import"./Zap-DoBPpnDg.js";import"./badge-B2mtA9Oj.js";import"./mcp-oauth-MtFdjicX.js";import"./spinner-DnK6LAO-.js";import"./tab-id-W4sfonX1.js";import"./dialog-BVOhf6JL.js";import"./use-is-desktop-app-BNujXJc_.js";import"./use-ai-providers-bDkOAByr.js";import"./use-decopilot-events-U00f_DNo.js";import"./avatar-CKLVepem.js";import"./required-auth-layout-XqEbPK8M.js";import"./use-org-sso-9a_THghN.js";function Rt(s){const e=k.c(15),{onSave:n,onUndo:l,isDirty:o,isSaving:i,saveLabel:r,undoLabel:c}=s,d=r===void 0?"Save":r,a=c===void 0?"Undo":c;if(!o)return null;let x;e[0]===Symbol.for("react.memo_cache_sentinel")?(x=t.jsx(ct,{size:14}),e[0]=x):x=e[0];let h;e[1]!==i||e[2]!==l||e[3]!==a?(h=t.jsxs(K,{variant:"outline",size:"sm",onClick:l,disabled:i,"aria-label":a,children:[x,a]}),e[1]=i,e[2]=l,e[3]=a,e[4]=h):h=e[4];let m;e[5]!==i?(m=i?t.jsx(oe,{size:14,className:"animate-spin"}):t.jsx(dt,{size:14}),e[5]=i,e[6]=m):m=e[6];let f;e[7]!==i||e[8]!==n||e[9]!==d||e[10]!==m?(f=t.jsxs(K,{variant:"default",size:"sm",onClick:n,disabled:i,"aria-label":d,children:[m,d]}),e[7]=i,e[8]=n,e[9]=d,e[10]=m,e[11]=f):f=e[11];let p;return e[12]!==h||e[13]!==f?(p=t.jsxs(t.Fragment,{children:[h,f]}),e[12]=h,e[13]=f,e[14]=p):p=e[14],p}Ge({title:re().min(1),description:re().nullable(),body:re()});function ue(s){for(const e of s.messages??[])if(e.role==="user"&&e.content?.type==="text")return e.content.text??"";return""}function Ft(){const s=window.location.pathname.split("/").filter(Boolean),e=s.findIndex(l=>l==="mcps"),n=e>=0?s[e+1]:void 0;return n?decodeURIComponent(n):void 0}function zt(s){const e=k.c(43),{form:n}=s,l=W();let o;e[0]!==l?(o=l("details.prompt.details"),e[0]=l,e[1]=o):o=e[1];let i;e[2]!==o?(i=t.jsx("div",{className:"text-sm font-medium text-foreground",children:o}),e[2]=o,e[3]=i):i=e[3];let r;e[4]!==l?(r=w=>{const{field:N}=w;return t.jsxs(ce,{children:[t.jsx("div",{className:"text-xs text-muted-foreground",children:l("details.prompt.title")}),t.jsx(de,{children:t.jsx(pe,{...N,placeholder:l("details.prompt.titlePlaceholder"),className:"h-9 rounded-lg border border-border bg-muted/20 shadow-none focus-visible:ring-0"})})]})},e[4]=l,e[5]=r):r=e[5];let c;e[6]!==n.control||e[7]!==r?(c=t.jsx(ae,{control:n.control,name:"title",render:r}),e[6]=n.control,e[7]=r,e[8]=c):c=e[8];let d;e[9]!==l?(d=w=>{const{field:N}=w;return t.jsxs(ce,{children:[t.jsx("div",{className:"text-xs text-muted-foreground",children:l("details.prompt.description")}),t.jsx(de,{children:t.jsx(pe,{...N,value:N.value??"",placeholder:l("details.prompt.descriptionPlaceholder"),className:"h-9 rounded-lg border border-border bg-muted/20 shadow-none focus-visible:ring-0"})})]})},e[9]=l,e[10]=d):d=e[10];let a;e[11]!==n.control||e[12]!==d?(a=t.jsx(ae,{control:n.control,name:"description",render:d}),e[11]=n.control,e[12]=d,e[13]=a):a=e[13];let x;e[14]!==c||e[15]!==a?(x=t.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-4",children:[c,a]}),e[14]=c,e[15]=a,e[16]=x):x=e[16];let h;e[17]!==i||e[18]!==x?(h=t.jsxs("div",{className:"flex flex-col gap-4",children:[i,x]}),e[17]=i,e[18]=x,e[19]=h):h=e[19];let m;e[20]!==l?(m=l("details.prompt.message"),e[20]=l,e[21]=m):m=e[21];let f;e[22]!==m?(f=t.jsx("div",{className:"text-sm font-medium text-foreground",children:m}),e[22]=m,e[23]=f):f=e[23];let p;e[24]!==l?(p=l("details.prompt.messageDescription"),e[24]=l,e[25]=p):p=e[25];let g;e[26]!==p?(g=t.jsx("div",{className:"text-xs text-muted-foreground",children:p}),e[26]=p,e[27]=g):g=e[27];let b;e[28]!==l?(b=w=>{const{field:N}=w;return t.jsx(ce,{children:t.jsx(de,{children:t.jsx(xe,{...N,value:N.value??"",placeholder:l("details.prompt.bodyPlaceholder"),className:"min-h-[240px] resize-none text-base leading-relaxed font-normal rounded-xl border border-border bg-muted/20 px-4 py-3 shadow-none focus-visible:ring-0"})})})},e[28]=l,e[29]=b):b=e[29];let S;e[30]!==n.control||e[31]!==b?(S=t.jsx(ae,{control:n.control,name:"body",render:b}),e[30]=n.control,e[31]=b,e[32]=S):S=e[32];let T;e[33]!==f||e[34]!==g||e[35]!==S?(T=t.jsxs("div",{className:"flex flex-col gap-2",children:[f,g,S]}),e[33]=f,e[34]=g,e[35]=S,e[36]=T):T=e[36];let y;e[37]!==T||e[38]!==h?(y=t.jsxs("div",{className:"h-full py-6 flex flex-col max-w-3xl mx-auto w-full min-w-0 gap-8 overflow-y-auto px-4",children:[h,T]}),e[37]=T,e[38]=h,e[39]=y):y=e[39];let P;return e[40]!==n||e[41]!==y?(P=t.jsx(ot,{...n,children:y}),e[40]=n,e[41]=y,e[42]=P):P=e[42],P}function Mt(s){const e=k.c(42),{providerId:n,promptId:l}=s,o=W(),{org:i}=fe(),r=n||null;let c;e[0]!==i.id||e[1]!==i.slug||e[2]!==r?(c={connectionId:r,orgId:i.id,orgSlug:i.slug},e[0]=i.id,e[1]=i.slug,e[2]=r,e[3]=c):c=e[3];const d=ge(c),a=Xe(n,"PROMPT",l,d),x=Oe(n,"PROMPT",d),h=x.update.isPending;let m;e[4]!==a?(m=a?{title:a.title,description:a.description??null,body:ue(a)}:void 0,e[4]=a,e[5]=m):m=e[5];let f;e[6]!==m?(f={values:m},e[6]=m,e[7]=f):f=e[7];const p=Ze(f);let g;e[8]!==p||e[9]!==a?(g=()=>{a&&p.reset({title:a.title,description:a.description??null,body:ue(a)})},e[8]=p,e[9]=a,e[10]=g):g=e[10];const b=g;let S;e[11]!==x.update||e[12]!==p||e[13]!==l?(S=p.handleSubmit(async C=>{const I=await x.update.mutateAsync({id:l,data:{title:C.title,description:C.description,arguments:[],icons:[],messages:[{role:"user",content:{type:"text",text:C.body}}]}});p.reset({title:I.title,description:I.description??null,body:ue(I)})}),e[11]=x.update,e[12]=p,e[13]=l,e[14]=S):S=e[14];const T=S;if(!a){let C;e[15]!==o?(C=o("details.prompt.notFoundTitle"),e[15]=o,e[16]=C):C=e[16];let I;e[17]!==o?(I=o("details.prompt.notFoundDescription"),e[17]=o,e[18]=I):I=e[18];let R;return e[19]!==C||e[20]!==I?(R=t.jsx("div",{className:"flex h-full w-full bg-background",children:t.jsx(Fe,{title:C,description:I})}),e[19]=C,e[20]=I,e[21]=R):R=e[21],R}let y;e[22]!==a.title?(y=t.jsx("span",{className:"text-sm font-medium text-foreground truncate",children:a.title}),e[22]=a.title,e[23]=y):y=e[23];let P;e[24]!==a.description?(P=a.description?t.jsxs(t.Fragment,{children:[t.jsx("span",{className:"text-xs text-muted-foreground font-normal",children:"•"}),t.jsx("span",{className:"text-xs text-muted-foreground font-normal truncate min-w-0 max-w-[20ch]",children:a.description})]}):null,e[24]=a.description,e[25]=P):P=e[25];let w;e[26]!==y||e[27]!==P?(w=t.jsx(it,{children:t.jsxs("div",{className:"flex items-center gap-2 min-w-0",children:[y,P]})}),e[26]=y,e[27]=P,e[28]=w):w=e[28];let N;e[29]!==T?(N=()=>{T()},e[29]=T,e[30]=N):N=e[30];let A;e[31]!==p.formState.isDirty||e[32]!==h||e[33]!==b||e[34]!==N?(A=t.jsx(nt,{children:t.jsx(Rt,{onSave:N,onUndo:b,isDirty:p.formState.isDirty,isSaving:h})}),e[31]=p.formState.isDirty,e[32]=h,e[33]=b,e[34]=N,e[35]=A):A=e[35];let D;e[36]!==p?(D=t.jsx("div",{className:"h-full",children:t.jsx(zt,{form:p})}),e[36]=p,e[37]=D):D=e[37];let O;return e[38]!==A||e[39]!==D||e[40]!==w?(O=t.jsxs(je,{children:[w,A,D]}),e[38]=A,e[39]=D,e[40]=w,e[41]=O):O=e[41],O}function Lt(s){const e=k.c(10),{itemId:n}=s,l=W();let o;e[0]===Symbol.for("react.memo_cache_sentinel")?(o=Ft(),e[0]=o):o=e[0];const i=o;if(!i){let c;e[1]!==l?(c=l("details.prompt.notFoundTitle"),e[1]=l,e[2]=c):c=e[2];let d;e[3]!==l?(d=l("details.prompt.missingConnectionDescription"),e[3]=l,e[4]=d):d=e[4];let a;return e[5]!==c||e[6]!==d?(a=t.jsx("div",{className:"flex h-full w-full bg-background",children:t.jsx(Fe,{title:c,description:d})}),e[5]=c,e[6]=d,e[7]=a):a=e[7],a}let r;return e[8]!==n?(r=t.jsx(Ee,{children:t.jsx(E.Suspense,{fallback:null,children:t.jsx(Mt,{providerId:i,promptId:n})})}),e[8]=n,e[9]=r):r=e[9],r}function Le(s){const e=k.c(8);let n,l;e[0]!==s?({className:n,...l}=s,e[0]=s,e[1]=n,e[2]=l):(n=e[1],l=e[2]);let o;e[3]!==n?(o=Q("min-w-0 overflow-hidden",n),e[3]=n,e[4]=o):o=e[4];let i;return e[5]!==l||e[6]!==o?(i=t.jsx("nav",{"aria-label":"breadcrumb","data-slot":"breadcrumb",className:o,...l}),e[5]=l,e[6]=o,e[7]=i):i=e[7],i}function Be(s){const e=k.c(8);let n,l;e[0]!==s?({className:n,...l}=s,e[0]=s,e[1]=n,e[2]=l):(n=e[1],l=e[2]);let o;e[3]!==n?(o=Q("flex items-center gap-1.5 text-sm sm:gap-2 overflow-hidden",n),e[3]=n,e[4]=o):o=e[4];let i;return e[5]!==l||e[6]!==o?(i=t.jsx("ol",{"data-slot":"breadcrumb-list",className:o,...l}),e[5]=l,e[6]=o,e[7]=i):i=e[7],i}function G(s){const e=k.c(8);let n,l;e[0]!==s?({className:n,...l}=s,e[0]=s,e[1]=n,e[2]=l):(n=e[1],l=e[2]);let o;e[3]!==n?(o=Q("inline-flex items-center gap-1.5 min-w-0",n),e[3]=n,e[4]=o):o=e[4];let i;return e[5]!==l||e[6]!==o?(i=t.jsx("li",{"data-slot":"breadcrumb-item",className:o,...l}),e[5]=l,e[6]=o,e[7]=i):i=e[7],i}function se(s){const e=k.c(10);let n,l,o;e[0]!==s?({asChild:n,className:l,...o}=s,e[0]=s,e[1]=n,e[2]=l,e[3]=o):(n=e[1],l=e[2],o=e[3]);const i=n?et:"a";let r;e[4]!==l?(r=Q("hover:text-foreground transition-colors truncate",l),e[4]=l,e[5]=r):r=e[5];let c;return e[6]!==i||e[7]!==o||e[8]!==r?(c=t.jsx(i,{"data-slot":"breadcrumb-link",className:r,...o}),e[6]=i,e[7]=o,e[8]=r,e[9]=c):c=e[9],c}function Ue(s){const e=k.c(8);let n,l;e[0]!==s?({className:n,...l}=s,e[0]=s,e[1]=n,e[2]=l):(n=e[1],l=e[2]);let o;e[3]!==n?(o=Q("text-foreground font-medium truncate",n),e[3]=n,e[4]=o):o=e[4];let i;return e[5]!==l||e[6]!==o?(i=t.jsx("span",{"data-slot":"breadcrumb-page",role:"link","aria-disabled":"true","aria-current":"page",className:o,...l}),e[5]=l,e[6]=o,e[7]=i):i=e[7],i}function le(s){const e=k.c(12);let n,l,o;e[0]!==s?({children:n,className:l,...o}=s,e[0]=s,e[1]=n,e[2]=l,e[3]=o):(n=e[1],l=e[2],o=e[3]);let i;e[4]!==l?(i=Q("[&>svg]:size-3.5 text-muted-foreground opacity-50 list-none shrink-0",l),e[4]=l,e[5]=i):i=e[5];let r;e[6]!==n?(r=n??t.jsx(wt,{}),e[6]=n,e[7]=r):r=e[7];let c;return e[8]!==o||e[9]!==i||e[10]!==r?(c=t.jsx("li",{"data-slot":"breadcrumb-separator",role:"presentation","aria-hidden":"true",className:i,...o,children:r}),e[8]=o,e[9]=i,e[10]=r,e[11]=c):c=e[11],c}const Bt=s=>s.replace(/_/g," ").replace(/\b\w/g,e=>e.toLocaleLowerCase());function Ut(s){const e=k.c(12),{toolName:n,connectionId:l,siblings:o,onSelectInstance:i,onBack:r}=s,c=W();let d;e[0]!==l?(d={connectionId:l},e[0]=l,e[1]=d):d=e[1];const a=It(d);if(!a.isAuthenticated){let m;return e[2]!==a.supportsOAuth||e[3]!==r||e[4]!==c?(m=t.jsx("div",{className:"flex h-full items-center justify-center",children:a.supportsOAuth?t.jsx(rt,{onAuthenticate:()=>r(),buttonText:c("details.tool.goBackToAuthenticate")}):t.jsx(at,{hasReadme:!1})}),e[2]=a.supportsOAuth,e[3]=r,e[4]=c,e[5]=m):m=e[5],m}const x=`${l}:${n}`;let h;return e[6]!==l||e[7]!==i||e[8]!==o||e[9]!==x||e[10]!==n?(h=t.jsx(Vt,{toolName:n,connectionId:l,siblings:o,onSelectInstance:i},x),e[6]=l,e[7]=i,e[8]=o,e[9]=x,e[10]=n,e[11]=h):h=e[11],h}function Vt({toolName:s,connectionId:e,siblings:n,onSelectInstance:l}){const o=W(),{replayId:i}=tt({strict:!1}),r=(()=>{if(!i)return null;const u=`replay-${i}`,j=sessionStorage.getItem(u);if(!j)return null;sessionStorage.removeItem(u);try{return JSON.parse(j)}catch{return null}})(),c=(()=>{if(!r)return null;const u={};for(const[j,$]of Object.entries(r))$!==null&&typeof $=="object"?u[j]=JSON.stringify($,null,2):u[j]=$;return u})(),[d,a]=E.useState(c??{}),[x,h]=E.useState(r?JSON.stringify(r,null,2):"{}"),[m,f]=E.useState(null),[p,g]=E.useState(null),[b,S]=E.useState(null),[T,y]=E.useState(null),[P,w]=E.useState(!1),[N,A]=E.useState(null),{org:D}=fe(),O=ze(e),C=At(),I=Dt(),{openSidePanel:R}=Et(),U=`${e}:${s}`,z=ge({connectionId:e,orgId:D.id,orgSlug:D.slug}),V=Tt({client:z}),v=V.data?.tools?.find(u=>u.name===s),F=ft(v?._meta),J=u=>{if(!C)return;const j=kt(u.content);j.content.length>0&&(R("chat"),C.sendMessage({tiptapDoc:j}))},[M,L]=E.useState("json"),[q,Y]=E.useState(!1);F&&!q&&(L("ui"),Y(!0));const _=v?.inputSchema?.properties,be=_?Object.keys(_):[],X=be.length>0,Z={};if(X&&v?.inputSchema?.properties)for(const u of be)Z[u]=v.inputSchema.required?.includes(u)?"":void 0;const ne=u=>Object.prototype.hasOwnProperty.call(d,u),Ve=async()=>{w(!0),y(null),f(null),g(null),S(null),A(null);const u=performance.now();try{if(!z)throw new Error("MCP client is not available");const j=X?{...Z,...d}:(()=>{const B=x.trim();if(!B)return{};const H=JSON.parse(B);if(H&&typeof H=="object")return H;throw new Error("Raw JSON input must be an object.")})();X&&v?.inputSchema?.properties&&Object.entries(v.inputSchema.properties).forEach(([B,H])=>{if((H.type==="object"||H.type==="array")&&typeof j[B]=="string")try{j[B]=JSON.parse(j[B])}catch{}else if((H.type==="number"||H.type==="integer")&&typeof j[B]=="string"&&j[B]!==""){const Se=Number(j[B]);Number.isNaN(Se)||(j[B]=Se)}});const $=await z.callTool({name:s,arguments:j}),ee=$.structuredContent??$,Qe=performance.now(),We=Math.round(Qe-u);f(ee),g($),S(j);const Ye=JSON.stringify(ee),ve=new TextEncoder().encode(Ye).length;A({duration:`${We}ms`,bytes:`${ve} bytes`,tokens:`~${Math.ceil(ve/4)} tokens`,cost:"$0.0000"})}catch(j){const $=j instanceof Error?j.message:String(j);y($||"Unknown error occurred");const ee=performance.now();A({duration:`${Math.round(ee-u)}ms`})}finally{w(!1)}},ie=(u,j)=>{a($=>({...$,[u]:j}))},_e=()=>{f(null),g(null),S(null),y(null),A(null)},Je=v?.name??Bt(s),qe=t.jsx(Le,{children:t.jsxs(Be,{children:[t.jsx(G,{children:t.jsx(se,{asChild:!0,children:t.jsx(te,{to:"/$org/settings/connections",params:{org:D.slug},children:o("details.tool.connections")})})}),t.jsx(le,{}),O&&t.jsxs(t.Fragment,{children:[t.jsx(G,{children:t.jsx(se,{asChild:!0,children:t.jsx(te,{to:"/$org/settings/connections/$appSlug",params:{org:D.slug,appSlug:Ct(O)},search:{tab:"tools"},children:O.title})})}),t.jsx(le,{})]}),t.jsx(G,{children:t.jsx(Ue,{children:Je})})]})}),Ne=n.length>1&&t.jsxs(Te,{value:e,onValueChange:l,children:[t.jsx(Pe,{className:"h-8 w-auto min-w-[200px]",children:t.jsx(ke,{})}),t.jsx(Ae,{children:n.map(u=>t.jsx(me,{value:u.id,children:t.jsxs("div",{className:"flex items-center gap-2",children:[t.jsx(De,{icon:u.icon,name:u.title,size:"xs",className:"shrink-0"}),u.title]})},u.id))})]}),He=t.jsxs("div",{className:"flex flex-col p-6 gap-4 overflow-auto",children:[t.jsxs("div",{className:"flex items-center justify-between",children:[t.jsx("h2",{className:"text-sm font-semibold text-foreground uppercase tracking-wide",children:o("details.tool.parameters")}),v?.inputSchema?.required&&v.inputSchema.required.length>0&&t.jsxs("span",{className:"text-xs text-muted-foreground",children:[t.jsx("span",{className:"text-destructive",children:"*"})," ",o("details.tool.required")]})]}),t.jsx("div",{className:"space-y-4",children:X&&v?.inputSchema?.properties?Object.entries(v.inputSchema.properties).map(([u,j])=>t.jsxs("div",{className:"space-y-2",children:[t.jsxs("div",{className:"flex items-center justify-between",children:[t.jsxs("label",{className:"text-sm font-medium leading-none flex items-center gap-1.5",children:[u,v.inputSchema?.required?.includes(u)&&t.jsx("span",{className:"text-destructive text-xs",children:"*"})]}),t.jsx("span",{className:"text-xs text-muted-foreground font-mono",children:j.type})]}),j.description&&t.jsx("p",{className:"text-xs text-muted-foreground leading-relaxed",children:j.description}),j.type==="object"||j.type==="array"?t.jsx(xe,{className:"font-mono text-xs",value:ne(u)?d[u]??"":Z[u]??"",onChange:$=>ie(u,$.target.value),placeholder:o("details.tool.enterAsJson",{key:u}),rows:3}):j.type==="boolean"?t.jsxs(Te,{value:ne(u)?String(d[u]??""):"",onValueChange:$=>ie(u,$==="true"),children:[t.jsx(Pe,{children:t.jsx(ke,{placeholder:o("details.tool.selectTrueOrFalse")})}),t.jsxs(Ae,{children:[t.jsx(me,{value:"true",children:"true"}),t.jsx(me,{value:"false",children:"false"})]})]}):t.jsx(pe,{value:ne(u)?d[u]??"":Z[u]??"",onChange:$=>ie(u,$.target.value),placeholder:o("details.tool.enter",{key:u})})]},u)):v?.inputSchema&&!X?t.jsxs("div",{className:"space-y-2",children:[t.jsx("label",{className:"text-sm font-medium",children:o("details.tool.rawJsonInput")}),t.jsx(xe,{className:"font-mono text-xs min-h-[120px]",value:x,onChange:u=>h(u.target.value),placeholder:o("details.tool.rawJsonExample")})]}):t.jsx("div",{className:"flex items-center justify-center p-8 bg-muted/30 rounded-lg border border-dashed border-border",children:t.jsx("p",{className:"text-sm text-muted-foreground",children:o("details.tool.noParametersRequired")})})}),t.jsx("div",{className:"flex items-center gap-2 pt-2",children:P?t.jsxs(K,{size:"sm",variant:"destructive",className:"h-8 gap-2",onClick:_e,children:[t.jsx(mt,{className:"h-3.5 w-3.5"}),o("details.tool.cancel")]}):t.jsxs(K,{size:"sm",variant:"default",className:"h-8 gap-2",onClick:Ve,children:[t.jsx(yt,{className:"h-3.5 w-3.5 fill-current"}),o("details.tool.executeTool")]})})]}),Ke=t.jsxs("div",{className:"flex flex-col @3xl:h-full @3xl:overflow-hidden",children:[t.jsxs("div",{className:"flex items-center justify-between px-4 h-14 border-b border-border bg-background",children:[t.jsx("h2",{className:"text-sm font-medium text-foreground uppercase tracking-wide",children:o("details.tool.result")}),t.jsxs("div",{className:"flex items-center gap-3",children:[N&&t.jsxs("div",{className:"flex items-center gap-3 text-xs",children:[t.jsxs("div",{className:"flex items-center gap-1.5",children:[t.jsx(vt,{className:"h-3 w-3 text-muted-foreground"}),t.jsx("span",{className:"font-mono text-foreground",children:N.duration})]}),N.tokens&&t.jsxs("div",{className:"flex items-center gap-1.5",children:[t.jsx(ut,{className:"h-3 w-3 text-muted-foreground"}),t.jsx("span",{className:"font-mono text-foreground",children:N.tokens})]}),N.bytes&&t.jsxs("div",{className:"flex items-center gap-1.5",children:[t.jsx(pt,{className:"h-3 w-3 text-muted-foreground"}),t.jsx("span",{className:"font-mono text-foreground",children:N.bytes})]}),N.cost&&t.jsx("div",{className:"flex items-center gap-1.5",children:t.jsx("span",{className:"font-mono text-foreground",children:N.cost})})]}),F&&t.jsx(st,{children:t.jsxs("div",{className:"flex items-center gap-1",children:[t.jsxs(ye,{children:[t.jsx(we,{asChild:!0,children:t.jsx(K,{size:"icon",variant:M==="ui"?"secondary":"ghost",className:"h-8 w-8",onClick:()=>L("ui"),children:t.jsx(xt,{size:14})})}),t.jsx(Ce,{children:o("details.tool.interactiveView")})]}),t.jsxs(ye,{children:[t.jsx(we,{asChild:!0,children:t.jsx(K,{size:"icon",variant:M==="json"?"secondary":"ghost",className:"h-8 w-8",onClick:()=>L("json"),children:t.jsx(Ie,{size:14})})}),t.jsx(Ce,{children:o("details.tool.jsonView")})]})]})})]})]}),T&&t.jsx("div",{className:"px-6 py-4 bg-background",children:t.jsx(gt,{variant:"destructive",children:t.jsxs("div",{className:"flex flex-col gap-2",children:[t.jsxs("div",{className:"flex items-center gap-2",children:[t.jsx(Nt,{className:"h-4 w-4"}),t.jsx(jt,{className:"mb-0",children:o("details.tool.executionFailed")})]}),t.jsx(bt,{className:"text-xs text-destructive",children:T})]})})}),t.jsx("div",{className:"relative flex-1 min-h-[400px] @3xl:min-h-0 @3xl:overflow-auto bg-muted/50",children:F&&M==="ui"&&z?t.jsx(E.Suspense,{fallback:t.jsx("div",{className:"flex items-center justify-center h-48",children:t.jsxs("div",{className:"flex items-center gap-2 text-muted-foreground",children:[t.jsx("div",{className:"size-4 border-2 border-current border-t-transparent rounded-full animate-spin"}),t.jsx("span",{className:"text-sm",children:o("details.tool.loadingApp")})]})}),children:t.jsx(ht,{resourceURI:F,toolInfo:v?{tool:v}:void 0,toolInput:b??void 0,toolResult:p??void 0,displayMode:"fullscreen",minHeight:$e.view.minHeight,maxHeight:$e.view.maxHeight,client:z,onMessage:J,onUpdateModelContext:u=>I?.setAppContext(U,u),onTeardown:()=>I?.clearAppContext(U),className:"h-full"})}):m?t.jsxs(t.Fragment,{children:[t.jsx(Pt,{code:JSON.stringify(m,null,2),language:"json",height:"100%",readOnly:!0}),t.jsx(K,{size:"icon",variant:"ghost",className:"absolute top-4 right-4 h-8 w-8 bg-background/80 hover:bg-background border border-border shadow-sm",onClick:()=>{navigator.clipboard.writeText(JSON.stringify(m,null,2)),lt.success(o("details.tool.copiedToClipboard"))},children:t.jsx(St,{className:"h-3.5 w-3.5"})})]}):t.jsxs("div",{className:"absolute inset-0 flex flex-col items-center justify-center text-muted-foreground",children:[t.jsx(Ie,{className:"h-12 w-12 mb-3 opacity-40"}),t.jsx("p",{className:"text-sm",children:o("details.tool.runToolToSeeResults")})]})})]});return t.jsx(je,{breadcrumb:qe,children:t.jsxs("div",{className:"flex flex-col h-full overflow-hidden @container",children:[t.jsxs("div",{className:"flex flex-col gap-3 py-7 px-8 bg-background border-b border-border shrink-0",children:[t.jsxs("div",{className:"flex items-center gap-4",children:[t.jsx(De,{icon:O?.icon||null,name:O?.title||s,size:"xl",className:"shrink-0"}),t.jsx("h1",{className:"text-xl font-semibold tracking-tight text-foreground leading-none truncate",children:s}),t.jsxs("div",{className:"flex items-center gap-2 px-2.5 py-1 bg-muted/50 rounded-md h-fit shrink-0",children:[V.isSuccess?t.jsx("div",{className:"h-1.5 w-1.5 rounded-full bg-success animate-pulse shrink-0"}):V.isLoading?t.jsx(oe,{size:10,className:"animate-spin text-warning shrink-0"}):t.jsx("div",{className:"h-1.5 w-1.5 rounded-full bg-destructive shrink-0"}),t.jsx("span",{className:"font-mono text-xs capitalize text-muted-foreground leading-none",children:V.isSuccess?"ready":V.isLoading?"connecting":"error"})]}),t.jsx($t,{annotations:v?.annotations,_meta:v?._meta}),t.jsx("div",{className:"hidden @3xl:flex items-center ml-auto shrink-0",children:Ne})]}),t.jsx("p",{className:"text-sm text-muted-foreground leading-relaxed",children:v?.description||"No description available"})]}),n.length>1&&t.jsxs("div",{className:"flex @3xl:hidden items-center gap-3 px-8 py-3 border-b border-border",children:[t.jsx("span",{className:"text-xs font-medium text-muted-foreground shrink-0",children:o("details.tool.instance")}),Ne]}),t.jsx("div",{className:"flex-1 overflow-auto @3xl:overflow-hidden",children:t.jsxs("div",{className:"grid grid-cols-1 @3xl:grid-cols-[minmax(0,2fr)_minmax(0,5fr)] @3xl:h-full @3xl:grid-rows-1",children:[t.jsx("div",{className:"@3xl:border-r border-border @3xl:overflow-auto",children:He}),Ke]})})]})})}function _t(s){const e=k.c(20),{itemId:n,siblings:l,onBack:o}=s,i=W(),[r,c]=E.useState(l[0]?.id??"");let d;e[0]!==r||e[1]!==l?(d=l.find(f=>f.id===r)?.id??l[0]?.id??"",e[0]=r,e[1]=l,e[2]=d):d=e[2];const a=d;if(!ze(a||void 0)||!a){let f;e[3]!==i?(f=i("details.tool.connectionNotFound"),e[3]=i,e[4]=f):f=e[4];let p;e[5]!==f?(p=t.jsx("h3",{className:"text-lg font-semibold",children:f}),e[5]=f,e[6]=p):p=e[6];let g;e[7]!==i?(g=i("details.tool.connectionNotFoundMessage"),e[7]=i,e[8]=g):g=e[8];let b;e[9]!==g?(b=t.jsx("p",{className:"text-sm text-muted-foreground",children:g}),e[9]=g,e[10]=b):b=e[10];let S;return e[11]!==p||e[12]!==b?(S=t.jsx("div",{className:"flex h-full items-center justify-center",children:t.jsxs("div",{className:"flex flex-col items-center gap-2 text-center",children:[p,b]})}),e[11]=p,e[12]=b,e[13]=S):S=e[13],S}let h;e[14]===Symbol.for("react.memo_cache_sentinel")?(h=t.jsx("div",{className:"flex h-full items-center justify-center",children:t.jsx(oe,{size:32,className:"animate-spin text-muted-foreground"})}),e[14]=h):h=e[14];let m;return e[15]!==a||e[16]!==o||e[17]!==l||e[18]!==n?(m=t.jsx(E.Suspense,{fallback:h,children:t.jsx(Ut,{toolName:n,connectionId:a,siblings:l,onSelectInstance:c,onBack:o})}),e[15]=a,e[16]=o,e[17]=l,e[18]=n,e[19]=m):m=e[19],m}function Jt(s){const e=k.c(21),{icon:n,illustration:l,title:o,description:i,buttonProps:r,buttonComponent:c,className:d,children:a}=s;let x;e[0]!==d?(x=Q("flex flex-col items-center justify-center py-16 text-center",d),e[0]=d,e[1]=x):x=e[1];let h;e[2]!==n||e[3]!==l?(h=l?t.jsx("div",{className:"mb-4 text-muted-foreground/50",children:l}):n?t.jsx("div",{className:"mb-4 flex h-12 w-12 items-center justify-center rounded-xl bg-muted/50 text-muted-foreground",children:n}):null,e[2]=n,e[3]=l,e[4]=h):h=e[4];let m;e[5]!==o?(m=t.jsx("h3",{className:"text-sm font-semibold text-foreground",children:o}),e[5]=o,e[6]=m):m=e[6];let f;e[7]!==i?(f=i&&t.jsx("div",{className:"text-sm text-muted-foreground",children:i}),e[7]=i,e[8]=f):f=e[8];let p;e[9]!==m||e[10]!==f?(p=t.jsxs("div",{className:"flex flex-col items-center gap-1 max-w-sm",children:[m,f]}),e[9]=m,e[10]=f,e[11]=p):p=e[11];let g;e[12]!==c||e[13]!==r?(g=(c??r)&&t.jsx("div",{className:"mt-4",children:c??(r&&t.jsx(K,{size:"sm",className:Q(r?.className),...r}))}),e[12]=c,e[13]=r,e[14]=g):g=e[14];let b;return e[15]!==a||e[16]!==x||e[17]!==h||e[18]!==p||e[19]!==g?(b=t.jsxs("div",{className:x,children:[h,p,g,a]}),e[15]=a,e[16]=x,e[17]=h,e[18]=p,e[19]=g,e[20]=b):b=e[20],b}const qt={prompt:Lt};function Ht(){const s=k.c(9),e=Re();let n;s[0]===Symbol.for("react.memo_cache_sentinel")?(n={from:"/shell/$org/settings/connections/$appSlug/$collectionName/$itemId"},s[0]=n):n=s[0];const l=he(n),o=decodeURIComponent(l.itemId);let i;s[1]!==l.appSlug?(i={slug:l.appSlug},s[1]=l.appSlug,s[2]=i):i=s[2];const r=Me(i);let c;s[3]!==e.history?(c=()=>{e.history.back()},s[3]=e.history,s[4]=c):c=s[4];const d=c,a=Kt;let x;return s[5]!==d||s[6]!==o||s[7]!==r?(x=t.jsx(_t,{itemId:o,siblings:r,onBack:d,onUpdate:a}),s[5]=d,s[6]=o,s[7]=r,s[8]=x):x=s[8],x}async function Kt(s){return Promise.resolve()}function Qt(s){return s.toLowerCase().split("_").map(e=>e.charAt(0).toUpperCase()+e.slice(1)).join(" ")}function Wt(){const s=k.c(52),e=Re();let n;s[0]===Symbol.for("react.memo_cache_sentinel")?(n={from:"/shell/$org/settings/connections/$appSlug/$collectionName/$itemId"},s[0]=n):n=s[0];const l=he(n),o=W(),i=decodeURIComponent(l.collectionName),r=decodeURIComponent(l.itemId);let c;s[1]!==e.history?(c=()=>{e.history.back()},s[1]=e.history,s[2]=c):c=s[2];const d=c,{org:a}=fe();let x;s[3]!==l.appSlug?(x={slug:l.appSlug},s[3]=l.appSlug,s[4]=x):x=s[4];const m=Me(x)[0]??null,f=m?.id??"",p=f||"no-connection",g=f??null;let b;s[5]!==a.id||s[6]!==a.slug||s[7]!==g?(b={connectionId:g,orgId:a.id,orgSlug:a.slug},s[5]=a.id,s[6]=a.slug,s[7]=g,s[8]=b):b=s[8];const S=ge(b),T=Oe(p,i,S);let y;s[9]!==T||s[10]!==r?(y=async _=>{r&&await T.update.mutateAsync({id:r,data:_})},s[9]=T,s[10]=r,s[11]=y):y=s[11];const P=y;let w;s[12]!==i?(w=i?.toLowerCase(),s[12]=i,s[13]=w):w=s[13];const N=w,A=N&&qt[N];let D;s[14]!==i?(D=Qt(i),s[14]=i,s[15]=D):D=s[15];const O=D;let C;s[16]!==a.slug?(C=t.jsx(G,{children:t.jsx(se,{asChild:!0,children:t.jsx(te,{to:"/$org/settings/connections",params:{org:a.slug},children:"Connections"})})}),s[16]=a.slug,s[17]=C):C=s[17];let I;s[18]===Symbol.for("react.memo_cache_sentinel")?(I=t.jsx(le,{}),s[18]=I):I=s[18];let R;s[19]!==i||s[20]!==m||s[21]!==a.slug||s[22]!==l.appSlug?(R=m&&t.jsxs(t.Fragment,{children:[t.jsx(G,{children:t.jsx(se,{asChild:!0,children:t.jsx(te,{to:"/$org/settings/connections/$appSlug",params:{org:a.slug,appSlug:l.appSlug},search:{tab:i},children:m.title})})}),t.jsx(le,{})]}),s[19]=i,s[20]=m,s[21]=a.slug,s[22]=l.appSlug,s[23]=R):R=s[23];let U;s[24]!==O?(U=t.jsx(G,{children:t.jsx(Ue,{children:O})}),s[24]=O,s[25]=U):U=s[25];let z;s[26]!==R||s[27]!==U||s[28]!==C?(z=t.jsx(Le,{children:t.jsxs(Be,{children:[C,I,R,U]})}),s[26]=R,s[27]=U,s[28]=C,s[29]=z):z=s[29];const V=z;if(A){let _;return s[30]!==A||s[31]!==d||s[32]!==P||s[33]!==r?(_=t.jsx(A,{itemId:r,onBack:d,onUpdate:P}),s[30]=A,s[31]=d,s[32]=P,s[33]=r,s[34]=_):_=s[34],_}let v;s[35]===Symbol.for("react.memo_cache_sentinel")?(v=t.jsx(Ot,{size:36,className:"text-muted-foreground"}),s[35]=v):v=s[35];let F;s[36]!==o?(F=o("orgs.collectionDetail.noComponentDefinedTitle"),s[36]=o,s[37]=F):F=s[37];let J;s[38]!==o?(J=o("orgs.collectionDetail.noComponentDefinedDescription"),s[38]=o,s[39]=J):J=s[39];let M;s[40]!==o?(M=o("orgs.collectionDetail.goBackButton"),s[40]=o,s[41]=M):M=s[41];let L;s[42]!==d||s[43]!==M?(L={onClick:d,children:M},s[42]=d,s[43]=M,s[44]=L):L=s[44];let q;s[45]!==F||s[46]!==J||s[47]!==L?(q=t.jsx(Jt,{icon:v,title:F,description:J,buttonProps:L}),s[45]=F,s[46]=J,s[47]=L,s[48]=q):q=s[48];let Y;return s[49]!==V||s[50]!==q?(Y=t.jsx(je,{breadcrumb:V,children:q}),s[49]=V,s[50]=q,s[51]=Y):Y=s[51],Y}function Yt(){const s=k.c(3);let e;s[0]===Symbol.for("react.memo_cache_sentinel")?(e={from:"/shell/$org/settings/connections/$appSlug/$collectionName/$itemId"},s[0]=e):e=s[0];const n=he(e);if(decodeURIComponent(n.collectionName)==="tools"){let r;return s[1]===Symbol.for("react.memo_cache_sentinel")?(r=t.jsx(Ht,{}),s[1]=r):r=s[1],r}let i;return s[2]===Symbol.for("react.memo_cache_sentinel")?(i=t.jsx(Wt,{}),s[2]=i):i=s[2],i}function Bl(){const s=k.c(7),e=W();let n;s[0]!==e?(n=e("orgs.collectionDetail.loadingAriaLabel"),s[0]=e,s[1]=n):n=s[1];let l;s[2]!==n?(l=t.jsx("div",{className:"flex h-full items-center justify-center",children:t.jsx(oe,{size:32,className:"animate-spin text-muted-foreground","aria-label":n})}),s[2]=n,s[3]=l):l=s[3];let o;s[4]===Symbol.for("react.memo_cache_sentinel")?(o=t.jsx(Yt,{}),s[4]=o):o=s[4];let i;return s[5]!==l?(i=t.jsx(Ee,{children:t.jsx(E.Suspense,{fallback:l,children:o})}),s[5]=l,s[6]=i):i=s[6],i}export{Bl as default};
|
|
1
|
+
import{c as k,j as t,B as K,k as oe,ak as Ge,am as re,b as W,E as Ee,r as E,H as fe,bP as Xe,bQ as Oe,ao as Ze,n as Q,bR as et,u as tt,L as te,aa as st,ab as ye,a8 as we,a9 as Ce,t as lt,f as he,bS as Re}from"./index-BAzBxxL9.js";import{E as Fe}from"./empty-state-CSKHHWG6.js";import{u as ge}from"./use-mcp-client-DP99b3Me.js";import{d as ae,F as ot,a as ce,b as de}from"./form-Cv16yv_N.js";import{I as pe}from"./input-CvrE4LEJ.js";import{T as xe}from"./textarea-DZcoj6k2.js";import{a as nt,b as it,V as je,O as rt,M as at}from"./index-DwV5rndB.js";import{aO as ct,T as dt,aP as mt,al as ut,an as pt,aQ as xt,r as Ie}from"./agent-icon-BpKbS82g.js";import{g as ft,M as ht,a as $e}from"./types-CHsUC77L.js";import{A as gt,a as jt,b as bt}from"./alert-Cjb2EB7F.js";import{S as Te,a as Pe,b as ke,c as Ae,d as me}from"./select-B2e4NALY.js";import{i as Nt}from"./AlertCircle-BTYGLFie.js";import{s as vt}from"./Stars02-DNyS1gcT.js";import{a as St}from"./Copy01-oY33F6A4.js";import{i as yt}from"./Play-Ir6C5jzg.js";import{i as wt}from"./ChevronRight-BUEJ-jyA.js";import{g as Ct}from"./connection-slug-eyAPH6o3.js";import{u as It,T as $t}from"./index-DgS45S3b.js";import{a as ze,u as Me}from"./use-connection-Brp0ROSB.js";import{a as Tt}from"./use-mcp-tools-CjeO7xTP.js";import{M as Pt,c as kt}from"./monaco-editor-ywPI1t16.js";import{I as De}from"./integration-icon-BnqPyHmt.js";import{k as At,F as Dt}from"./chat-context-Cdt5JBGq.js";import{u as Et}from"./shell-layout-BH-NXnM4.js";import{n as Ot}from"./Tool02-Ct3UvI4j.js";import"./constants-_08zpzmT.js";import"./auth-B5QCuHwo.js";import"./label-CXiyMNnc.js";import"./Key01-B5VoA08Z.js";import"./extract-connection-data-C1XM4jmB.js";import"./metadata-dUsYcpuu.js";import"./use-registry-connections-DYlN_mpo.js";import"./use-organization-settings-CjuBssHq.js";import"./Plus-CySlFZzQ.js";import"./index-D00QDYEH.js";import"./index-CiZciEsK.js";import"./popover-wGCNVbgm.js";import"./use-virtual-mcp-Dg7xWNG-.js";import"./Check-CJxsk2cd.js";import"./SearchMd-CUh5hEpd.js";import"./Users03-C8z46zgV.js";import"./use-create-virtual-mcp-T4W7BRl2.js";import"./use-navigate-to-agent-B3WHCfCa.js";import"./hooks-BsA5QClW.js";import"./decopilot-sse-pool-CMc1xBx0.js";import"./backoff-CrEUbyZT.js";import"./delay-CnY5UFtP.js";import"./reusable-new-chat-CzvRy4Pe.js";import"./session-runtime-wVXsCwcJ.js";import"./Tool01-BjI8gxt5.js";import"./ArrowUp-fnzebitz.js";import"./ArrowLeft-BajYEy7J.js";import"./XCircle-BMgdweBK.js";import"./TrendUp01-vMMFYqH0.js";import"./ZapSquare-Z5gRSAcI.js";import"./UserSquare-kfbSM3R7.js";import"./CheckCircle-D8lsJrHv.js";import"./ChevronDown-Chn5-yQ3.js";import"./ChevronSelectorVertical-DuwT0Cdn.js";import"./ChevronUp-Bis3nYDt.js";import"./DotsVertical-CmNP1NFD.js";import"./CreditCard01-BEFAf8Rs.js";import"./Download01-BOB13r_i.js";import"./Settings02-DxEKOFeo.js";import"./Eye-BQM4yrzA.js";import"./FilterLines-CM6IqjC1.js";import"./Share07-BAxn1THr.js";import"./Globe01-BLkvMUGE.js";import"./Globe04-CJdUUoxg.js";import"./SwitchHorizontal01-C8-bgNQy.js";import"./HardDrive-BFDRJjzR.js";import"./LinkExternal01-bgUoyTwQ.js";import"./LockUnlocked01-o0Eo7MuU.js";import"./LogOut01-CKpl9BLq.js";import"./Monitor01-BHWFnGlJ.js";import"./Sun-CSIUl7xv.js";import"./Palette-DAsj4nYm.js";import"./SearchLg-BevUi4lQ.js";import"./Shield01-Br0XuRfn.js";import"./Stars01-DGSNhagZ.js";import"./Trash01-lppJr9kF.js";import"./Upload01-CePHCnzY.js";import"./User01-BqNQxSWl.js";import"./Users01-GyxqhIQS.js";import"./XClose-DnnJN04M.js";import"./Zap-f9eGztfW.js";import"./badge-DYcNbwP1.js";import"./mcp-oauth-BY7cxtZI.js";import"./spinner-Bb-1R-dk.js";import"./tab-id-DMd10Dlk.js";import"./dialog-K8-1cCDF.js";import"./use-is-desktop-app-BNujXJc_.js";import"./use-ai-providers-vhWA7gSP.js";import"./use-decopilot-events-EyNfu7Kq.js";import"./avatar-BYLlYMrS.js";import"./required-auth-layout-ykPgRGg9.js";import"./use-org-sso-JpsBVP_t.js";function Rt(s){const e=k.c(15),{onSave:n,onUndo:l,isDirty:o,isSaving:i,saveLabel:r,undoLabel:c}=s,d=r===void 0?"Save":r,a=c===void 0?"Undo":c;if(!o)return null;let x;e[0]===Symbol.for("react.memo_cache_sentinel")?(x=t.jsx(ct,{size:14}),e[0]=x):x=e[0];let h;e[1]!==i||e[2]!==l||e[3]!==a?(h=t.jsxs(K,{variant:"outline",size:"sm",onClick:l,disabled:i,"aria-label":a,children:[x,a]}),e[1]=i,e[2]=l,e[3]=a,e[4]=h):h=e[4];let m;e[5]!==i?(m=i?t.jsx(oe,{size:14,className:"animate-spin"}):t.jsx(dt,{size:14}),e[5]=i,e[6]=m):m=e[6];let f;e[7]!==i||e[8]!==n||e[9]!==d||e[10]!==m?(f=t.jsxs(K,{variant:"default",size:"sm",onClick:n,disabled:i,"aria-label":d,children:[m,d]}),e[7]=i,e[8]=n,e[9]=d,e[10]=m,e[11]=f):f=e[11];let p;return e[12]!==h||e[13]!==f?(p=t.jsxs(t.Fragment,{children:[h,f]}),e[12]=h,e[13]=f,e[14]=p):p=e[14],p}Ge({title:re().min(1),description:re().nullable(),body:re()});function ue(s){for(const e of s.messages??[])if(e.role==="user"&&e.content?.type==="text")return e.content.text??"";return""}function Ft(){const s=window.location.pathname.split("/").filter(Boolean),e=s.findIndex(l=>l==="mcps"),n=e>=0?s[e+1]:void 0;return n?decodeURIComponent(n):void 0}function zt(s){const e=k.c(43),{form:n}=s,l=W();let o;e[0]!==l?(o=l("details.prompt.details"),e[0]=l,e[1]=o):o=e[1];let i;e[2]!==o?(i=t.jsx("div",{className:"text-sm font-medium text-foreground",children:o}),e[2]=o,e[3]=i):i=e[3];let r;e[4]!==l?(r=w=>{const{field:N}=w;return t.jsxs(ce,{children:[t.jsx("div",{className:"text-xs text-muted-foreground",children:l("details.prompt.title")}),t.jsx(de,{children:t.jsx(pe,{...N,placeholder:l("details.prompt.titlePlaceholder"),className:"h-9 rounded-lg border border-border bg-muted/20 shadow-none focus-visible:ring-0"})})]})},e[4]=l,e[5]=r):r=e[5];let c;e[6]!==n.control||e[7]!==r?(c=t.jsx(ae,{control:n.control,name:"title",render:r}),e[6]=n.control,e[7]=r,e[8]=c):c=e[8];let d;e[9]!==l?(d=w=>{const{field:N}=w;return t.jsxs(ce,{children:[t.jsx("div",{className:"text-xs text-muted-foreground",children:l("details.prompt.description")}),t.jsx(de,{children:t.jsx(pe,{...N,value:N.value??"",placeholder:l("details.prompt.descriptionPlaceholder"),className:"h-9 rounded-lg border border-border bg-muted/20 shadow-none focus-visible:ring-0"})})]})},e[9]=l,e[10]=d):d=e[10];let a;e[11]!==n.control||e[12]!==d?(a=t.jsx(ae,{control:n.control,name:"description",render:d}),e[11]=n.control,e[12]=d,e[13]=a):a=e[13];let x;e[14]!==c||e[15]!==a?(x=t.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-4",children:[c,a]}),e[14]=c,e[15]=a,e[16]=x):x=e[16];let h;e[17]!==i||e[18]!==x?(h=t.jsxs("div",{className:"flex flex-col gap-4",children:[i,x]}),e[17]=i,e[18]=x,e[19]=h):h=e[19];let m;e[20]!==l?(m=l("details.prompt.message"),e[20]=l,e[21]=m):m=e[21];let f;e[22]!==m?(f=t.jsx("div",{className:"text-sm font-medium text-foreground",children:m}),e[22]=m,e[23]=f):f=e[23];let p;e[24]!==l?(p=l("details.prompt.messageDescription"),e[24]=l,e[25]=p):p=e[25];let g;e[26]!==p?(g=t.jsx("div",{className:"text-xs text-muted-foreground",children:p}),e[26]=p,e[27]=g):g=e[27];let b;e[28]!==l?(b=w=>{const{field:N}=w;return t.jsx(ce,{children:t.jsx(de,{children:t.jsx(xe,{...N,value:N.value??"",placeholder:l("details.prompt.bodyPlaceholder"),className:"min-h-[240px] resize-none text-base leading-relaxed font-normal rounded-xl border border-border bg-muted/20 px-4 py-3 shadow-none focus-visible:ring-0"})})})},e[28]=l,e[29]=b):b=e[29];let S;e[30]!==n.control||e[31]!==b?(S=t.jsx(ae,{control:n.control,name:"body",render:b}),e[30]=n.control,e[31]=b,e[32]=S):S=e[32];let T;e[33]!==f||e[34]!==g||e[35]!==S?(T=t.jsxs("div",{className:"flex flex-col gap-2",children:[f,g,S]}),e[33]=f,e[34]=g,e[35]=S,e[36]=T):T=e[36];let y;e[37]!==T||e[38]!==h?(y=t.jsxs("div",{className:"h-full py-6 flex flex-col max-w-3xl mx-auto w-full min-w-0 gap-8 overflow-y-auto px-4",children:[h,T]}),e[37]=T,e[38]=h,e[39]=y):y=e[39];let P;return e[40]!==n||e[41]!==y?(P=t.jsx(ot,{...n,children:y}),e[40]=n,e[41]=y,e[42]=P):P=e[42],P}function Mt(s){const e=k.c(42),{providerId:n,promptId:l}=s,o=W(),{org:i}=fe(),r=n||null;let c;e[0]!==i.id||e[1]!==i.slug||e[2]!==r?(c={connectionId:r,orgId:i.id,orgSlug:i.slug},e[0]=i.id,e[1]=i.slug,e[2]=r,e[3]=c):c=e[3];const d=ge(c),a=Xe(n,"PROMPT",l,d),x=Oe(n,"PROMPT",d),h=x.update.isPending;let m;e[4]!==a?(m=a?{title:a.title,description:a.description??null,body:ue(a)}:void 0,e[4]=a,e[5]=m):m=e[5];let f;e[6]!==m?(f={values:m},e[6]=m,e[7]=f):f=e[7];const p=Ze(f);let g;e[8]!==p||e[9]!==a?(g=()=>{a&&p.reset({title:a.title,description:a.description??null,body:ue(a)})},e[8]=p,e[9]=a,e[10]=g):g=e[10];const b=g;let S;e[11]!==x.update||e[12]!==p||e[13]!==l?(S=p.handleSubmit(async C=>{const I=await x.update.mutateAsync({id:l,data:{title:C.title,description:C.description,arguments:[],icons:[],messages:[{role:"user",content:{type:"text",text:C.body}}]}});p.reset({title:I.title,description:I.description??null,body:ue(I)})}),e[11]=x.update,e[12]=p,e[13]=l,e[14]=S):S=e[14];const T=S;if(!a){let C;e[15]!==o?(C=o("details.prompt.notFoundTitle"),e[15]=o,e[16]=C):C=e[16];let I;e[17]!==o?(I=o("details.prompt.notFoundDescription"),e[17]=o,e[18]=I):I=e[18];let R;return e[19]!==C||e[20]!==I?(R=t.jsx("div",{className:"flex h-full w-full bg-background",children:t.jsx(Fe,{title:C,description:I})}),e[19]=C,e[20]=I,e[21]=R):R=e[21],R}let y;e[22]!==a.title?(y=t.jsx("span",{className:"text-sm font-medium text-foreground truncate",children:a.title}),e[22]=a.title,e[23]=y):y=e[23];let P;e[24]!==a.description?(P=a.description?t.jsxs(t.Fragment,{children:[t.jsx("span",{className:"text-xs text-muted-foreground font-normal",children:"•"}),t.jsx("span",{className:"text-xs text-muted-foreground font-normal truncate min-w-0 max-w-[20ch]",children:a.description})]}):null,e[24]=a.description,e[25]=P):P=e[25];let w;e[26]!==y||e[27]!==P?(w=t.jsx(it,{children:t.jsxs("div",{className:"flex items-center gap-2 min-w-0",children:[y,P]})}),e[26]=y,e[27]=P,e[28]=w):w=e[28];let N;e[29]!==T?(N=()=>{T()},e[29]=T,e[30]=N):N=e[30];let A;e[31]!==p.formState.isDirty||e[32]!==h||e[33]!==b||e[34]!==N?(A=t.jsx(nt,{children:t.jsx(Rt,{onSave:N,onUndo:b,isDirty:p.formState.isDirty,isSaving:h})}),e[31]=p.formState.isDirty,e[32]=h,e[33]=b,e[34]=N,e[35]=A):A=e[35];let D;e[36]!==p?(D=t.jsx("div",{className:"h-full",children:t.jsx(zt,{form:p})}),e[36]=p,e[37]=D):D=e[37];let O;return e[38]!==A||e[39]!==D||e[40]!==w?(O=t.jsxs(je,{children:[w,A,D]}),e[38]=A,e[39]=D,e[40]=w,e[41]=O):O=e[41],O}function Lt(s){const e=k.c(10),{itemId:n}=s,l=W();let o;e[0]===Symbol.for("react.memo_cache_sentinel")?(o=Ft(),e[0]=o):o=e[0];const i=o;if(!i){let c;e[1]!==l?(c=l("details.prompt.notFoundTitle"),e[1]=l,e[2]=c):c=e[2];let d;e[3]!==l?(d=l("details.prompt.missingConnectionDescription"),e[3]=l,e[4]=d):d=e[4];let a;return e[5]!==c||e[6]!==d?(a=t.jsx("div",{className:"flex h-full w-full bg-background",children:t.jsx(Fe,{title:c,description:d})}),e[5]=c,e[6]=d,e[7]=a):a=e[7],a}let r;return e[8]!==n?(r=t.jsx(Ee,{children:t.jsx(E.Suspense,{fallback:null,children:t.jsx(Mt,{providerId:i,promptId:n})})}),e[8]=n,e[9]=r):r=e[9],r}function Le(s){const e=k.c(8);let n,l;e[0]!==s?({className:n,...l}=s,e[0]=s,e[1]=n,e[2]=l):(n=e[1],l=e[2]);let o;e[3]!==n?(o=Q("min-w-0 overflow-hidden",n),e[3]=n,e[4]=o):o=e[4];let i;return e[5]!==l||e[6]!==o?(i=t.jsx("nav",{"aria-label":"breadcrumb","data-slot":"breadcrumb",className:o,...l}),e[5]=l,e[6]=o,e[7]=i):i=e[7],i}function Be(s){const e=k.c(8);let n,l;e[0]!==s?({className:n,...l}=s,e[0]=s,e[1]=n,e[2]=l):(n=e[1],l=e[2]);let o;e[3]!==n?(o=Q("flex items-center gap-1.5 text-sm sm:gap-2 overflow-hidden",n),e[3]=n,e[4]=o):o=e[4];let i;return e[5]!==l||e[6]!==o?(i=t.jsx("ol",{"data-slot":"breadcrumb-list",className:o,...l}),e[5]=l,e[6]=o,e[7]=i):i=e[7],i}function G(s){const e=k.c(8);let n,l;e[0]!==s?({className:n,...l}=s,e[0]=s,e[1]=n,e[2]=l):(n=e[1],l=e[2]);let o;e[3]!==n?(o=Q("inline-flex items-center gap-1.5 min-w-0",n),e[3]=n,e[4]=o):o=e[4];let i;return e[5]!==l||e[6]!==o?(i=t.jsx("li",{"data-slot":"breadcrumb-item",className:o,...l}),e[5]=l,e[6]=o,e[7]=i):i=e[7],i}function se(s){const e=k.c(10);let n,l,o;e[0]!==s?({asChild:n,className:l,...o}=s,e[0]=s,e[1]=n,e[2]=l,e[3]=o):(n=e[1],l=e[2],o=e[3]);const i=n?et:"a";let r;e[4]!==l?(r=Q("hover:text-foreground transition-colors truncate",l),e[4]=l,e[5]=r):r=e[5];let c;return e[6]!==i||e[7]!==o||e[8]!==r?(c=t.jsx(i,{"data-slot":"breadcrumb-link",className:r,...o}),e[6]=i,e[7]=o,e[8]=r,e[9]=c):c=e[9],c}function Ue(s){const e=k.c(8);let n,l;e[0]!==s?({className:n,...l}=s,e[0]=s,e[1]=n,e[2]=l):(n=e[1],l=e[2]);let o;e[3]!==n?(o=Q("text-foreground font-medium truncate",n),e[3]=n,e[4]=o):o=e[4];let i;return e[5]!==l||e[6]!==o?(i=t.jsx("span",{"data-slot":"breadcrumb-page",role:"link","aria-disabled":"true","aria-current":"page",className:o,...l}),e[5]=l,e[6]=o,e[7]=i):i=e[7],i}function le(s){const e=k.c(12);let n,l,o;e[0]!==s?({children:n,className:l,...o}=s,e[0]=s,e[1]=n,e[2]=l,e[3]=o):(n=e[1],l=e[2],o=e[3]);let i;e[4]!==l?(i=Q("[&>svg]:size-3.5 text-muted-foreground opacity-50 list-none shrink-0",l),e[4]=l,e[5]=i):i=e[5];let r;e[6]!==n?(r=n??t.jsx(wt,{}),e[6]=n,e[7]=r):r=e[7];let c;return e[8]!==o||e[9]!==i||e[10]!==r?(c=t.jsx("li",{"data-slot":"breadcrumb-separator",role:"presentation","aria-hidden":"true",className:i,...o,children:r}),e[8]=o,e[9]=i,e[10]=r,e[11]=c):c=e[11],c}const Bt=s=>s.replace(/_/g," ").replace(/\b\w/g,e=>e.toLocaleLowerCase());function Ut(s){const e=k.c(12),{toolName:n,connectionId:l,siblings:o,onSelectInstance:i,onBack:r}=s,c=W();let d;e[0]!==l?(d={connectionId:l},e[0]=l,e[1]=d):d=e[1];const a=It(d);if(!a.isAuthenticated){let m;return e[2]!==a.supportsOAuth||e[3]!==r||e[4]!==c?(m=t.jsx("div",{className:"flex h-full items-center justify-center",children:a.supportsOAuth?t.jsx(rt,{onAuthenticate:()=>r(),buttonText:c("details.tool.goBackToAuthenticate")}):t.jsx(at,{hasReadme:!1})}),e[2]=a.supportsOAuth,e[3]=r,e[4]=c,e[5]=m):m=e[5],m}const x=`${l}:${n}`;let h;return e[6]!==l||e[7]!==i||e[8]!==o||e[9]!==x||e[10]!==n?(h=t.jsx(Vt,{toolName:n,connectionId:l,siblings:o,onSelectInstance:i},x),e[6]=l,e[7]=i,e[8]=o,e[9]=x,e[10]=n,e[11]=h):h=e[11],h}function Vt({toolName:s,connectionId:e,siblings:n,onSelectInstance:l}){const o=W(),{replayId:i}=tt({strict:!1}),r=(()=>{if(!i)return null;const u=`replay-${i}`,j=sessionStorage.getItem(u);if(!j)return null;sessionStorage.removeItem(u);try{return JSON.parse(j)}catch{return null}})(),c=(()=>{if(!r)return null;const u={};for(const[j,$]of Object.entries(r))$!==null&&typeof $=="object"?u[j]=JSON.stringify($,null,2):u[j]=$;return u})(),[d,a]=E.useState(c??{}),[x,h]=E.useState(r?JSON.stringify(r,null,2):"{}"),[m,f]=E.useState(null),[p,g]=E.useState(null),[b,S]=E.useState(null),[T,y]=E.useState(null),[P,w]=E.useState(!1),[N,A]=E.useState(null),{org:D}=fe(),O=ze(e),C=At(),I=Dt(),{openSidePanel:R}=Et(),U=`${e}:${s}`,z=ge({connectionId:e,orgId:D.id,orgSlug:D.slug}),V=Tt({client:z}),v=V.data?.tools?.find(u=>u.name===s),F=ft(v?._meta),J=u=>{if(!C)return;const j=kt(u.content);j.content.length>0&&(R("chat"),C.sendMessage({tiptapDoc:j}))},[M,L]=E.useState("json"),[q,Y]=E.useState(!1);F&&!q&&(L("ui"),Y(!0));const _=v?.inputSchema?.properties,be=_?Object.keys(_):[],X=be.length>0,Z={};if(X&&v?.inputSchema?.properties)for(const u of be)Z[u]=v.inputSchema.required?.includes(u)?"":void 0;const ne=u=>Object.prototype.hasOwnProperty.call(d,u),Ve=async()=>{w(!0),y(null),f(null),g(null),S(null),A(null);const u=performance.now();try{if(!z)throw new Error("MCP client is not available");const j=X?{...Z,...d}:(()=>{const B=x.trim();if(!B)return{};const H=JSON.parse(B);if(H&&typeof H=="object")return H;throw new Error("Raw JSON input must be an object.")})();X&&v?.inputSchema?.properties&&Object.entries(v.inputSchema.properties).forEach(([B,H])=>{if((H.type==="object"||H.type==="array")&&typeof j[B]=="string")try{j[B]=JSON.parse(j[B])}catch{}else if((H.type==="number"||H.type==="integer")&&typeof j[B]=="string"&&j[B]!==""){const Se=Number(j[B]);Number.isNaN(Se)||(j[B]=Se)}});const $=await z.callTool({name:s,arguments:j}),ee=$.structuredContent??$,Qe=performance.now(),We=Math.round(Qe-u);f(ee),g($),S(j);const Ye=JSON.stringify(ee),ve=new TextEncoder().encode(Ye).length;A({duration:`${We}ms`,bytes:`${ve} bytes`,tokens:`~${Math.ceil(ve/4)} tokens`,cost:"$0.0000"})}catch(j){const $=j instanceof Error?j.message:String(j);y($||"Unknown error occurred");const ee=performance.now();A({duration:`${Math.round(ee-u)}ms`})}finally{w(!1)}},ie=(u,j)=>{a($=>({...$,[u]:j}))},_e=()=>{f(null),g(null),S(null),y(null),A(null)},Je=v?.name??Bt(s),qe=t.jsx(Le,{children:t.jsxs(Be,{children:[t.jsx(G,{children:t.jsx(se,{asChild:!0,children:t.jsx(te,{to:"/$org/settings/connections",params:{org:D.slug},children:o("details.tool.connections")})})}),t.jsx(le,{}),O&&t.jsxs(t.Fragment,{children:[t.jsx(G,{children:t.jsx(se,{asChild:!0,children:t.jsx(te,{to:"/$org/settings/connections/$appSlug",params:{org:D.slug,appSlug:Ct(O)},search:{tab:"tools"},children:O.title})})}),t.jsx(le,{})]}),t.jsx(G,{children:t.jsx(Ue,{children:Je})})]})}),Ne=n.length>1&&t.jsxs(Te,{value:e,onValueChange:l,children:[t.jsx(Pe,{className:"h-8 w-auto min-w-[200px]",children:t.jsx(ke,{})}),t.jsx(Ae,{children:n.map(u=>t.jsx(me,{value:u.id,children:t.jsxs("div",{className:"flex items-center gap-2",children:[t.jsx(De,{icon:u.icon,name:u.title,size:"xs",className:"shrink-0"}),u.title]})},u.id))})]}),He=t.jsxs("div",{className:"flex flex-col p-6 gap-4 overflow-auto",children:[t.jsxs("div",{className:"flex items-center justify-between",children:[t.jsx("h2",{className:"text-sm font-semibold text-foreground uppercase tracking-wide",children:o("details.tool.parameters")}),v?.inputSchema?.required&&v.inputSchema.required.length>0&&t.jsxs("span",{className:"text-xs text-muted-foreground",children:[t.jsx("span",{className:"text-destructive",children:"*"})," ",o("details.tool.required")]})]}),t.jsx("div",{className:"space-y-4",children:X&&v?.inputSchema?.properties?Object.entries(v.inputSchema.properties).map(([u,j])=>t.jsxs("div",{className:"space-y-2",children:[t.jsxs("div",{className:"flex items-center justify-between",children:[t.jsxs("label",{className:"text-sm font-medium leading-none flex items-center gap-1.5",children:[u,v.inputSchema?.required?.includes(u)&&t.jsx("span",{className:"text-destructive text-xs",children:"*"})]}),t.jsx("span",{className:"text-xs text-muted-foreground font-mono",children:j.type})]}),j.description&&t.jsx("p",{className:"text-xs text-muted-foreground leading-relaxed",children:j.description}),j.type==="object"||j.type==="array"?t.jsx(xe,{className:"font-mono text-xs",value:ne(u)?d[u]??"":Z[u]??"",onChange:$=>ie(u,$.target.value),placeholder:o("details.tool.enterAsJson",{key:u}),rows:3}):j.type==="boolean"?t.jsxs(Te,{value:ne(u)?String(d[u]??""):"",onValueChange:$=>ie(u,$==="true"),children:[t.jsx(Pe,{children:t.jsx(ke,{placeholder:o("details.tool.selectTrueOrFalse")})}),t.jsxs(Ae,{children:[t.jsx(me,{value:"true",children:"true"}),t.jsx(me,{value:"false",children:"false"})]})]}):t.jsx(pe,{value:ne(u)?d[u]??"":Z[u]??"",onChange:$=>ie(u,$.target.value),placeholder:o("details.tool.enter",{key:u})})]},u)):v?.inputSchema&&!X?t.jsxs("div",{className:"space-y-2",children:[t.jsx("label",{className:"text-sm font-medium",children:o("details.tool.rawJsonInput")}),t.jsx(xe,{className:"font-mono text-xs min-h-[120px]",value:x,onChange:u=>h(u.target.value),placeholder:o("details.tool.rawJsonExample")})]}):t.jsx("div",{className:"flex items-center justify-center p-8 bg-muted/30 rounded-lg border border-dashed border-border",children:t.jsx("p",{className:"text-sm text-muted-foreground",children:o("details.tool.noParametersRequired")})})}),t.jsx("div",{className:"flex items-center gap-2 pt-2",children:P?t.jsxs(K,{size:"sm",variant:"destructive",className:"h-8 gap-2",onClick:_e,children:[t.jsx(mt,{className:"h-3.5 w-3.5"}),o("details.tool.cancel")]}):t.jsxs(K,{size:"sm",variant:"default",className:"h-8 gap-2",onClick:Ve,children:[t.jsx(yt,{className:"h-3.5 w-3.5 fill-current"}),o("details.tool.executeTool")]})})]}),Ke=t.jsxs("div",{className:"flex flex-col @3xl:h-full @3xl:overflow-hidden",children:[t.jsxs("div",{className:"flex items-center justify-between px-4 h-14 border-b border-border bg-background",children:[t.jsx("h2",{className:"text-sm font-medium text-foreground uppercase tracking-wide",children:o("details.tool.result")}),t.jsxs("div",{className:"flex items-center gap-3",children:[N&&t.jsxs("div",{className:"flex items-center gap-3 text-xs",children:[t.jsxs("div",{className:"flex items-center gap-1.5",children:[t.jsx(vt,{className:"h-3 w-3 text-muted-foreground"}),t.jsx("span",{className:"font-mono text-foreground",children:N.duration})]}),N.tokens&&t.jsxs("div",{className:"flex items-center gap-1.5",children:[t.jsx(ut,{className:"h-3 w-3 text-muted-foreground"}),t.jsx("span",{className:"font-mono text-foreground",children:N.tokens})]}),N.bytes&&t.jsxs("div",{className:"flex items-center gap-1.5",children:[t.jsx(pt,{className:"h-3 w-3 text-muted-foreground"}),t.jsx("span",{className:"font-mono text-foreground",children:N.bytes})]}),N.cost&&t.jsx("div",{className:"flex items-center gap-1.5",children:t.jsx("span",{className:"font-mono text-foreground",children:N.cost})})]}),F&&t.jsx(st,{children:t.jsxs("div",{className:"flex items-center gap-1",children:[t.jsxs(ye,{children:[t.jsx(we,{asChild:!0,children:t.jsx(K,{size:"icon",variant:M==="ui"?"secondary":"ghost",className:"h-8 w-8",onClick:()=>L("ui"),children:t.jsx(xt,{size:14})})}),t.jsx(Ce,{children:o("details.tool.interactiveView")})]}),t.jsxs(ye,{children:[t.jsx(we,{asChild:!0,children:t.jsx(K,{size:"icon",variant:M==="json"?"secondary":"ghost",className:"h-8 w-8",onClick:()=>L("json"),children:t.jsx(Ie,{size:14})})}),t.jsx(Ce,{children:o("details.tool.jsonView")})]})]})})]})]}),T&&t.jsx("div",{className:"px-6 py-4 bg-background",children:t.jsx(gt,{variant:"destructive",children:t.jsxs("div",{className:"flex flex-col gap-2",children:[t.jsxs("div",{className:"flex items-center gap-2",children:[t.jsx(Nt,{className:"h-4 w-4"}),t.jsx(jt,{className:"mb-0",children:o("details.tool.executionFailed")})]}),t.jsx(bt,{className:"text-xs text-destructive",children:T})]})})}),t.jsx("div",{className:"relative flex-1 min-h-[400px] @3xl:min-h-0 @3xl:overflow-auto bg-muted/50",children:F&&M==="ui"&&z?t.jsx(E.Suspense,{fallback:t.jsx("div",{className:"flex items-center justify-center h-48",children:t.jsxs("div",{className:"flex items-center gap-2 text-muted-foreground",children:[t.jsx("div",{className:"size-4 border-2 border-current border-t-transparent rounded-full animate-spin"}),t.jsx("span",{className:"text-sm",children:o("details.tool.loadingApp")})]})}),children:t.jsx(ht,{resourceURI:F,toolInfo:v?{tool:v}:void 0,toolInput:b??void 0,toolResult:p??void 0,displayMode:"fullscreen",minHeight:$e.view.minHeight,maxHeight:$e.view.maxHeight,client:z,onMessage:J,onUpdateModelContext:u=>I?.setAppContext(U,u),onTeardown:()=>I?.clearAppContext(U),className:"h-full"})}):m?t.jsxs(t.Fragment,{children:[t.jsx(Pt,{code:JSON.stringify(m,null,2),language:"json",height:"100%",readOnly:!0}),t.jsx(K,{size:"icon",variant:"ghost",className:"absolute top-4 right-4 h-8 w-8 bg-background/80 hover:bg-background border border-border shadow-sm",onClick:()=>{navigator.clipboard.writeText(JSON.stringify(m,null,2)),lt.success(o("details.tool.copiedToClipboard"))},children:t.jsx(St,{className:"h-3.5 w-3.5"})})]}):t.jsxs("div",{className:"absolute inset-0 flex flex-col items-center justify-center text-muted-foreground",children:[t.jsx(Ie,{className:"h-12 w-12 mb-3 opacity-40"}),t.jsx("p",{className:"text-sm",children:o("details.tool.runToolToSeeResults")})]})})]});return t.jsx(je,{breadcrumb:qe,children:t.jsxs("div",{className:"flex flex-col h-full overflow-hidden @container",children:[t.jsxs("div",{className:"flex flex-col gap-3 py-7 px-8 bg-background border-b border-border shrink-0",children:[t.jsxs("div",{className:"flex items-center gap-4",children:[t.jsx(De,{icon:O?.icon||null,name:O?.title||s,size:"xl",className:"shrink-0"}),t.jsx("h1",{className:"text-xl font-semibold tracking-tight text-foreground leading-none truncate",children:s}),t.jsxs("div",{className:"flex items-center gap-2 px-2.5 py-1 bg-muted/50 rounded-md h-fit shrink-0",children:[V.isSuccess?t.jsx("div",{className:"h-1.5 w-1.5 rounded-full bg-success animate-pulse shrink-0"}):V.isLoading?t.jsx(oe,{size:10,className:"animate-spin text-warning shrink-0"}):t.jsx("div",{className:"h-1.5 w-1.5 rounded-full bg-destructive shrink-0"}),t.jsx("span",{className:"font-mono text-xs capitalize text-muted-foreground leading-none",children:V.isSuccess?"ready":V.isLoading?"connecting":"error"})]}),t.jsx($t,{annotations:v?.annotations,_meta:v?._meta}),t.jsx("div",{className:"hidden @3xl:flex items-center ml-auto shrink-0",children:Ne})]}),t.jsx("p",{className:"text-sm text-muted-foreground leading-relaxed",children:v?.description||"No description available"})]}),n.length>1&&t.jsxs("div",{className:"flex @3xl:hidden items-center gap-3 px-8 py-3 border-b border-border",children:[t.jsx("span",{className:"text-xs font-medium text-muted-foreground shrink-0",children:o("details.tool.instance")}),Ne]}),t.jsx("div",{className:"flex-1 overflow-auto @3xl:overflow-hidden",children:t.jsxs("div",{className:"grid grid-cols-1 @3xl:grid-cols-[minmax(0,2fr)_minmax(0,5fr)] @3xl:h-full @3xl:grid-rows-1",children:[t.jsx("div",{className:"@3xl:border-r border-border @3xl:overflow-auto",children:He}),Ke]})})]})})}function _t(s){const e=k.c(20),{itemId:n,siblings:l,onBack:o}=s,i=W(),[r,c]=E.useState(l[0]?.id??"");let d;e[0]!==r||e[1]!==l?(d=l.find(f=>f.id===r)?.id??l[0]?.id??"",e[0]=r,e[1]=l,e[2]=d):d=e[2];const a=d;if(!ze(a||void 0)||!a){let f;e[3]!==i?(f=i("details.tool.connectionNotFound"),e[3]=i,e[4]=f):f=e[4];let p;e[5]!==f?(p=t.jsx("h3",{className:"text-lg font-semibold",children:f}),e[5]=f,e[6]=p):p=e[6];let g;e[7]!==i?(g=i("details.tool.connectionNotFoundMessage"),e[7]=i,e[8]=g):g=e[8];let b;e[9]!==g?(b=t.jsx("p",{className:"text-sm text-muted-foreground",children:g}),e[9]=g,e[10]=b):b=e[10];let S;return e[11]!==p||e[12]!==b?(S=t.jsx("div",{className:"flex h-full items-center justify-center",children:t.jsxs("div",{className:"flex flex-col items-center gap-2 text-center",children:[p,b]})}),e[11]=p,e[12]=b,e[13]=S):S=e[13],S}let h;e[14]===Symbol.for("react.memo_cache_sentinel")?(h=t.jsx("div",{className:"flex h-full items-center justify-center",children:t.jsx(oe,{size:32,className:"animate-spin text-muted-foreground"})}),e[14]=h):h=e[14];let m;return e[15]!==a||e[16]!==o||e[17]!==l||e[18]!==n?(m=t.jsx(E.Suspense,{fallback:h,children:t.jsx(Ut,{toolName:n,connectionId:a,siblings:l,onSelectInstance:c,onBack:o})}),e[15]=a,e[16]=o,e[17]=l,e[18]=n,e[19]=m):m=e[19],m}function Jt(s){const e=k.c(21),{icon:n,illustration:l,title:o,description:i,buttonProps:r,buttonComponent:c,className:d,children:a}=s;let x;e[0]!==d?(x=Q("flex flex-col items-center justify-center py-16 text-center",d),e[0]=d,e[1]=x):x=e[1];let h;e[2]!==n||e[3]!==l?(h=l?t.jsx("div",{className:"mb-4 text-muted-foreground/50",children:l}):n?t.jsx("div",{className:"mb-4 flex h-12 w-12 items-center justify-center rounded-xl bg-muted/50 text-muted-foreground",children:n}):null,e[2]=n,e[3]=l,e[4]=h):h=e[4];let m;e[5]!==o?(m=t.jsx("h3",{className:"text-sm font-semibold text-foreground",children:o}),e[5]=o,e[6]=m):m=e[6];let f;e[7]!==i?(f=i&&t.jsx("div",{className:"text-sm text-muted-foreground",children:i}),e[7]=i,e[8]=f):f=e[8];let p;e[9]!==m||e[10]!==f?(p=t.jsxs("div",{className:"flex flex-col items-center gap-1 max-w-sm",children:[m,f]}),e[9]=m,e[10]=f,e[11]=p):p=e[11];let g;e[12]!==c||e[13]!==r?(g=(c??r)&&t.jsx("div",{className:"mt-4",children:c??(r&&t.jsx(K,{size:"sm",className:Q(r?.className),...r}))}),e[12]=c,e[13]=r,e[14]=g):g=e[14];let b;return e[15]!==a||e[16]!==x||e[17]!==h||e[18]!==p||e[19]!==g?(b=t.jsxs("div",{className:x,children:[h,p,g,a]}),e[15]=a,e[16]=x,e[17]=h,e[18]=p,e[19]=g,e[20]=b):b=e[20],b}const qt={prompt:Lt};function Ht(){const s=k.c(9),e=Re();let n;s[0]===Symbol.for("react.memo_cache_sentinel")?(n={from:"/shell/$org/settings/connections/$appSlug/$collectionName/$itemId"},s[0]=n):n=s[0];const l=he(n),o=decodeURIComponent(l.itemId);let i;s[1]!==l.appSlug?(i={slug:l.appSlug},s[1]=l.appSlug,s[2]=i):i=s[2];const r=Me(i);let c;s[3]!==e.history?(c=()=>{e.history.back()},s[3]=e.history,s[4]=c):c=s[4];const d=c,a=Kt;let x;return s[5]!==d||s[6]!==o||s[7]!==r?(x=t.jsx(_t,{itemId:o,siblings:r,onBack:d,onUpdate:a}),s[5]=d,s[6]=o,s[7]=r,s[8]=x):x=s[8],x}async function Kt(s){return Promise.resolve()}function Qt(s){return s.toLowerCase().split("_").map(e=>e.charAt(0).toUpperCase()+e.slice(1)).join(" ")}function Wt(){const s=k.c(52),e=Re();let n;s[0]===Symbol.for("react.memo_cache_sentinel")?(n={from:"/shell/$org/settings/connections/$appSlug/$collectionName/$itemId"},s[0]=n):n=s[0];const l=he(n),o=W(),i=decodeURIComponent(l.collectionName),r=decodeURIComponent(l.itemId);let c;s[1]!==e.history?(c=()=>{e.history.back()},s[1]=e.history,s[2]=c):c=s[2];const d=c,{org:a}=fe();let x;s[3]!==l.appSlug?(x={slug:l.appSlug},s[3]=l.appSlug,s[4]=x):x=s[4];const m=Me(x)[0]??null,f=m?.id??"",p=f||"no-connection",g=f??null;let b;s[5]!==a.id||s[6]!==a.slug||s[7]!==g?(b={connectionId:g,orgId:a.id,orgSlug:a.slug},s[5]=a.id,s[6]=a.slug,s[7]=g,s[8]=b):b=s[8];const S=ge(b),T=Oe(p,i,S);let y;s[9]!==T||s[10]!==r?(y=async _=>{r&&await T.update.mutateAsync({id:r,data:_})},s[9]=T,s[10]=r,s[11]=y):y=s[11];const P=y;let w;s[12]!==i?(w=i?.toLowerCase(),s[12]=i,s[13]=w):w=s[13];const N=w,A=N&&qt[N];let D;s[14]!==i?(D=Qt(i),s[14]=i,s[15]=D):D=s[15];const O=D;let C;s[16]!==a.slug?(C=t.jsx(G,{children:t.jsx(se,{asChild:!0,children:t.jsx(te,{to:"/$org/settings/connections",params:{org:a.slug},children:"Connections"})})}),s[16]=a.slug,s[17]=C):C=s[17];let I;s[18]===Symbol.for("react.memo_cache_sentinel")?(I=t.jsx(le,{}),s[18]=I):I=s[18];let R;s[19]!==i||s[20]!==m||s[21]!==a.slug||s[22]!==l.appSlug?(R=m&&t.jsxs(t.Fragment,{children:[t.jsx(G,{children:t.jsx(se,{asChild:!0,children:t.jsx(te,{to:"/$org/settings/connections/$appSlug",params:{org:a.slug,appSlug:l.appSlug},search:{tab:i},children:m.title})})}),t.jsx(le,{})]}),s[19]=i,s[20]=m,s[21]=a.slug,s[22]=l.appSlug,s[23]=R):R=s[23];let U;s[24]!==O?(U=t.jsx(G,{children:t.jsx(Ue,{children:O})}),s[24]=O,s[25]=U):U=s[25];let z;s[26]!==R||s[27]!==U||s[28]!==C?(z=t.jsx(Le,{children:t.jsxs(Be,{children:[C,I,R,U]})}),s[26]=R,s[27]=U,s[28]=C,s[29]=z):z=s[29];const V=z;if(A){let _;return s[30]!==A||s[31]!==d||s[32]!==P||s[33]!==r?(_=t.jsx(A,{itemId:r,onBack:d,onUpdate:P}),s[30]=A,s[31]=d,s[32]=P,s[33]=r,s[34]=_):_=s[34],_}let v;s[35]===Symbol.for("react.memo_cache_sentinel")?(v=t.jsx(Ot,{size:36,className:"text-muted-foreground"}),s[35]=v):v=s[35];let F;s[36]!==o?(F=o("orgs.collectionDetail.noComponentDefinedTitle"),s[36]=o,s[37]=F):F=s[37];let J;s[38]!==o?(J=o("orgs.collectionDetail.noComponentDefinedDescription"),s[38]=o,s[39]=J):J=s[39];let M;s[40]!==o?(M=o("orgs.collectionDetail.goBackButton"),s[40]=o,s[41]=M):M=s[41];let L;s[42]!==d||s[43]!==M?(L={onClick:d,children:M},s[42]=d,s[43]=M,s[44]=L):L=s[44];let q;s[45]!==F||s[46]!==J||s[47]!==L?(q=t.jsx(Jt,{icon:v,title:F,description:J,buttonProps:L}),s[45]=F,s[46]=J,s[47]=L,s[48]=q):q=s[48];let Y;return s[49]!==V||s[50]!==q?(Y=t.jsx(je,{breadcrumb:V,children:q}),s[49]=V,s[50]=q,s[51]=Y):Y=s[51],Y}function Yt(){const s=k.c(3);let e;s[0]===Symbol.for("react.memo_cache_sentinel")?(e={from:"/shell/$org/settings/connections/$appSlug/$collectionName/$itemId"},s[0]=e):e=s[0];const n=he(e);if(decodeURIComponent(n.collectionName)==="tools"){let r;return s[1]===Symbol.for("react.memo_cache_sentinel")?(r=t.jsx(Ht,{}),s[1]=r):r=s[1],r}let i;return s[2]===Symbol.for("react.memo_cache_sentinel")?(i=t.jsx(Wt,{}),s[2]=i):i=s[2],i}function Bl(){const s=k.c(7),e=W();let n;s[0]!==e?(n=e("orgs.collectionDetail.loadingAriaLabel"),s[0]=e,s[1]=n):n=s[1];let l;s[2]!==n?(l=t.jsx("div",{className:"flex h-full items-center justify-center",children:t.jsx(oe,{size:32,className:"animate-spin text-muted-foreground","aria-label":n})}),s[2]=n,s[3]=l):l=s[3];let o;s[4]===Symbol.for("react.memo_cache_sentinel")?(o=t.jsx(Yt,{}),s[4]=o):o=s[4];let i;return s[5]!==l?(i=t.jsx(Ee,{children:t.jsx(E.Suspense,{fallback:l,children:o})}),s[5]=l,s[6]=i):i=s[6],i}export{Bl as default};
|