decocms 2.304.11 → 2.304.12
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-DNXZvA9j.js → AlertCircle-DykTdePm.js} +1 -1
- package/dist/client/assets/{ArrowNarrowLeft-Gm4Xkvpy.js → ArrowNarrowLeft-BSnqV9Qp.js} +1 -1
- package/dist/client/assets/{ArrowUpRight-O3jikuh3.js → ArrowUpRight-BbCrxIiB.js} +1 -1
- package/dist/client/assets/{CheckCircle-H4V25dcS.js → CheckCircle-dpfQl31_.js} +1 -1
- package/dist/client/assets/{ChevronDown-Ce2OjGrT.js → ChevronDown-ChKIyEYX.js} +1 -1
- package/dist/client/assets/{ChevronRight-DM5N13PI.js → ChevronRight-CfxVPCJg.js} +1 -1
- package/dist/client/assets/{ChevronUp-CyPLVPf1.js → ChevronUp-DrgxDzSb.js} +1 -1
- package/dist/client/assets/{Container-COQnfxdW.js → Container-BmeFpotW.js} +1 -1
- package/dist/client/assets/{DotsVertical-CyXt8PT9.js → DotsVertical-Dpo2lfzf.js} +1 -1
- package/dist/client/assets/{LinkExternal01-foB2b2ju.js → LinkExternal01-BFenb5P9.js} +1 -1
- package/dist/client/assets/{Lock01-ucerLi_m.js → Lock01-D4wd-Mt0.js} +1 -1
- package/dist/client/assets/{Palette-CWS5P_Bb.js → Palette-DWycQqah.js} +1 -1
- package/dist/client/assets/{Play-B0qxiwIM.js → Play-3GU5tyK6.js} +1 -1
- package/dist/client/assets/{Plus-CXt-F95f.js → Plus-DNS-JW4m.js} +1 -1
- package/dist/client/assets/{RefreshCcw01-CvllgBGg.js → RefreshCcw01-U2jJl9XZ.js} +1 -1
- package/dist/client/assets/{SearchMd-mJ3-Y6pi.js → SearchMd-CJRrkj_7.js} +1 -1
- package/dist/client/assets/{Settings02-CZXBZ9dp.js → Settings02-BfZESxtt.js} +1 -1
- package/dist/client/assets/{Shield01-DSEVwFlT.js → Shield01-CuEoE6Cq.js} +1 -1
- package/dist/client/assets/{Star01-Kt9eAOrx.js → Star01-BIiXL1NH.js} +1 -1
- package/dist/client/assets/{Sun-DHxk_oDq.js → Sun-DJvU306F.js} +1 -1
- package/dist/client/assets/{Tool01-D7BUXrGA.js → Tool01-B3jB5-GF.js} +1 -1
- package/dist/client/assets/{Trash01-CpZ82qo1.js → Trash01-DygHC0Or.js} +1 -1
- package/dist/client/assets/{User01-BXHi1zAw.js → User01-XcdTTiqO.js} +1 -1
- package/dist/client/assets/{Users03-CxpjXo7-.js → Users03-CdkPI2qt.js} +1 -1
- package/dist/client/assets/{X-Cesxj0TS.js → X-CaSicsGt.js} +1 -1
- package/dist/client/assets/{XCircle-KN03fplT.js → XCircle-CAjnYXMv.js} +1 -1
- package/dist/client/assets/{XClose-DFrrxeI9.js → XClose-BD0-I41d.js} +1 -1
- package/dist/client/assets/{Zap-BBJ66Grg.js → Zap-DSo0BijB.js} +1 -1
- package/dist/client/assets/{ZapSquare-DQMHM_Az.js → ZapSquare-DJjYeaGT.js} +1 -1
- package/dist/client/assets/{accordion-ENyIrry_.js → accordion-NFEtlqmu.js} +1 -1
- package/dist/client/assets/{agent-icon-DH1erOLo.js → agent-icon-2WwvMIOR.js} +1 -1
- package/dist/client/assets/{agents-list-CRVayb3p.js → agents-list-B3NTdokI.js} +1 -1
- package/dist/client/assets/ai-providers-cvctUcOl.js +1 -0
- package/dist/client/assets/{alert-dialog-DisfPNds.js → alert-dialog-CczJ0CiT.js} +1 -1
- package/dist/client/assets/{auth-catchall-C7X3aqDL.js → auth-catchall-D2VjSNCY.js} +1 -1
- package/dist/client/assets/{automation-list-row-B6R4hbWU.js → automation-list-row-BM66xXdA.js} +1 -1
- package/dist/client/assets/{automations-B-eBYWeh.js → automations-CENOzqx0.js} +1 -1
- package/dist/client/assets/{avatar-BjZ78dvf.js → avatar-XLD41nT1.js} +1 -1
- package/dist/client/assets/{badge-Bu2pzpRI.js → badge-CqM8ft8a.js} +1 -1
- package/dist/client/assets/{brand-context-BRZXdXIg.js → brand-context-DawPDVwK.js} +1 -1
- package/dist/client/assets/{card-Di2QvueV.js → card-BromnR4D.js} +1 -1
- package/dist/client/assets/{chat-context-C7xeFwbj.js → chat-context-C1cX954x.js} +1 -1
- package/dist/client/assets/{checkbox-BLyNIdWA.js → checkbox-q02yCTCr.js} +1 -1
- package/dist/client/assets/{collection-detail-BubZksKa.js → collection-detail-CuW2SK0p.js} +1 -1
- package/dist/client/assets/{collection-display-button-Ig89UA5W.js → collection-display-button-Cz_4oQot.js} +1 -1
- package/dist/client/assets/{collection-search-73ZE_Rxd.js → collection-search-BwqJnK6o.js} +1 -1
- package/dist/client/assets/{collection-search-BjTSjOvQ.js → collection-search-l5AWFuzp.js} +1 -1
- package/dist/client/assets/{collection-table-wrapper-BDcCK68t.js → collection-table-wrapper-BlzCLLAo.js} +1 -1
- package/dist/client/assets/{collection-tabs-afccA05T.js → collection-tabs-yGBJSAc8.js} +1 -1
- package/dist/client/assets/{collections-BM6Z8nGc.js → collections-Bdy_Kvem.js} +1 -1
- package/dist/client/assets/{command-Dul__cSK.js → command-Dm5FUYzy.js} +1 -1
- package/dist/client/assets/{connection-card-bt811v_C.js → connection-card-Bpj8ZSs7.js} +1 -1
- package/dist/client/assets/{connection-detail-BvIlLD4t.js → connection-detail-w6Hswx6I.js} +1 -1
- package/dist/client/assets/{connection-form-helpers-DeGnXv9z.js → connection-form-helpers-_eiZ9Dyj.js} +1 -1
- package/dist/client/assets/{connections-Cvi8bJGK.js → connections-ZzdUySRj.js} +1 -1
- package/dist/client/assets/{constants-CCFSt8jO.js → constants-CqYb75aZ.js} +1 -1
- package/dist/client/assets/{constants-HOfKPHDy.js → constants-DoDQutb_.js} +1 -1
- package/dist/client/assets/{dialog-BHi9STqD.js → dialog-Cv4ROuD1.js} +1 -1
- package/dist/client/assets/{domain-settings-CJTT8u55.js → domain-settings-CcBopmCQ.js} +1 -1
- package/dist/client/assets/{drawer-CFPIi-pq.js → drawer-BvCmaZEN.js} +1 -1
- package/dist/client/assets/{dropdown-menu-ChEDfeWm.js → dropdown-menu-CXpZ_ns-.js} +1 -1
- package/dist/client/assets/{dynamic-plugin-layout-ChPVfvIn.js → dynamic-plugin-layout-DQ5UtKMf.js} +1 -1
- package/dist/client/assets/{empty-state-CgXa2kei.js → empty-state-BBjIyjuI.js} +1 -1
- package/dist/client/assets/{empty-state-ad634-a1.js → empty-state-BQm2cEn7.js} +1 -1
- package/dist/client/assets/{extract-connection-data-CNS4342G.js → extract-connection-data-DRmUoKq6.js} +1 -1
- package/dist/client/assets/{features-CBSonKCO.js → features-BN-47yPZ.js} +1 -1
- package/dist/client/assets/{form-O7o12XKC.js → form-vv7czlx-.js} +1 -1
- package/dist/client/assets/{general-Dwl_RFxT.js → general-GwVabcuc.js} +1 -1
- package/dist/client/assets/{index-BpQvm0m_.js → index-BTPvxzW6.js} +1 -1
- package/dist/client/assets/{index-DRxD_3cb.js → index-BizHATMB.js} +1 -1
- package/dist/client/assets/{index-CV1lFX-Z.js → index-Byh16eae.js} +2 -2
- package/dist/client/assets/{index-D-vg00dg.js → index-C89IjMPF.js} +1 -1
- package/dist/client/assets/{index-CG8wxlmz.js → index-CAszNWEi.js} +1 -1
- package/dist/client/assets/{index-CUeJKjUo.js → index-CO-xtUtF.js} +1 -1
- package/dist/client/assets/{index-BRREdYdm.js → index-ChEPbjgU.js} +1 -1
- package/dist/client/assets/{index-BQPKIoNa.js → index-D7GdEVK0.js} +1 -1
- package/dist/client/assets/{index-DBW0tfwB.js → index-DAmwYTvH.js} +1 -1
- package/dist/client/assets/index-DEcDMso8.js +1 -0
- package/dist/client/assets/{index-D7CuHsQA.js → index-DHQaot3v.js} +1 -1
- package/dist/client/assets/{index-CLd1VMk-.js → index-DIMB4WE0.js} +1 -1
- package/dist/client/assets/{index-D4EXGfoG.js → index-MijQYZKH.js} +3 -3
- package/dist/client/assets/{index-B4HzWryX.js → index-Qw9LGy6b.js} +1 -1
- package/dist/client/assets/{index-CP6bD0QO.js → index-YHRzikDj.js} +1 -1
- package/dist/client/assets/{index-Do1XArQs.js → index-ao7NoSNv.js} +1 -1
- package/dist/client/assets/{infiniteQueryObserver-BVAzy1Sk.js → infiniteQueryObserver-CeXFUdTd.js} +1 -1
- package/dist/client/assets/{input-CN-FAUiT.js → input-Vak5VRqX.js} +1 -1
- package/dist/client/assets/{integration-icon-tJ5Z1ZtK.js → integration-icon-qqFh_bDX.js} +1 -1
- package/dist/client/assets/{label-PUMmND_r.js → label-BNsXufvU.js} +1 -1
- package/dist/client/assets/{layout-Bqbj2wLY.js → layout-l92_NVlz.js} +1 -1
- package/dist/client/assets/{lean-canvas-recruit-modal-ywtX7ECZ.js → lean-canvas-recruit-modal-HYouwCHv.js} +1 -1
- package/dist/client/assets/{login-Mvzj8t4K.js → login-qRSyAZ_o.js} +1 -1
- package/dist/client/assets/{members-cTtXQ1OM.js → members-D4UY4ei6.js} +1 -1
- package/dist/client/assets/{monaco-editor-Dz10Y__a.js → monaco-editor-BOg-v1iU.js} +1 -1
- package/dist/client/assets/{monitoring-stats-row-B-cEMu_9.js → monitoring-stats-row-xiPLeKvD.js} +1 -1
- package/dist/client/assets/{oauth-callback-gQD649Ih.js → oauth-callback-D2FTNcui.js} +1 -1
- package/dist/client/assets/{oauth-callback-ai-provider-Chxdycb_.js → oauth-callback-ai-provider-Kb5ulQoF.js} +1 -1
- package/dist/client/assets/{onboarding-DQPmRIcx.js → onboarding-D5RrB-Tz.js} +1 -1
- package/dist/client/assets/{org-layout-Dn0dw0VQ.js → org-layout-WhfAqk0U.js} +1 -1
- package/dist/client/assets/{org-plugin-layout-CXdSKJr7.js → org-plugin-layout-C70m9fD9.js} +1 -1
- package/dist/client/assets/{pair-ByvRRfgF.js → pair-BozNTVaW.js} +1 -1
- package/dist/client/assets/{plugin-empty-state-BdyLNYrm.js → plugin-empty-state-BhaTB3gV.js} +1 -1
- package/dist/client/assets/{plugin-header-DFdSKbGT.js → plugin-header-CCyEhf-g.js} +1 -1
- package/dist/client/assets/{plugin-layout-BYyFiJQI.js → plugin-layout-kiqmZ4Ty.js} +1 -1
- package/dist/client/assets/{popover-Bb31RhES.js → popover-DsEUr0UP.js} +1 -1
- package/dist/client/assets/{profile-Dt2FmPx9.js → profile-OzTBu6o-.js} +1 -1
- package/dist/client/assets/{project-app-view-BRps_raG.js → project-app-view-CbPm1ZuF.js} +1 -1
- package/dist/client/assets/registry-CsXSm8-9.js +2 -0
- package/dist/client/assets/{registry-layout-CTsKpN8K.js → registry-layout-BpFNGTYZ.js} +1 -1
- package/dist/client/assets/{required-auth-layout-CUyvfcB4.js → required-auth-layout-DHh0SFyh.js} +1 -1
- package/dist/client/assets/{reset-password-D-ToySou.js → reset-password-9vHhhDeq.js} +1 -1
- package/dist/client/assets/{roles-CxEY0wcy.js → roles-D3OPlwRQ.js} +1 -1
- package/dist/client/assets/{scroll-area-CxdNBd0d.js → scroll-area-CSvHQmLp.js} +1 -1
- package/dist/client/assets/{search-input-CoXN7n1O.js → search-input-CQG6oP1I.js} +1 -1
- package/dist/client/assets/{select-CwP42l1t.js → select-CBnW7xgF.js} +1 -1
- package/dist/client/assets/{select-model-BeJoG9-P.js → select-model-CkVUDibB.js} +1 -1
- package/dist/client/assets/{settings-layout-DrKWvZnz.js → settings-layout-D4i1woj8.js} +1 -1
- package/dist/client/assets/{settings-section-Bi-8KbSP.js → settings-section-C2ru3Pcu.js} +1 -1
- package/dist/client/assets/{shell-layout-aUES-kFD.js → shell-layout-C--vXF8e.js} +1 -1
- package/dist/client/assets/{skeleton-DcjwowII.js → skeleton-DZE_Durz.js} +1 -1
- package/dist/client/assets/{sso-BGkz0eQv.js → sso-Dud_r3Fd.js} +1 -1
- package/dist/client/assets/{store-VBma9EJF.js → store-BxxFQfUe.js} +1 -1
- package/dist/client/assets/store-registry-c5WBQeKh.js +2 -0
- package/dist/client/assets/{switch-C5rJGOpi.js → switch-9ZAU9Wsd.js} +1 -1
- package/dist/client/assets/{table-KruF5l_B.js → table-DMcPz0bN.js} +1 -1
- package/dist/client/assets/{tabs-rlOqMpk_.js → tabs-DMO0mB-I.js} +1 -1
- package/dist/client/assets/{task-status-bebWweDN.js → task-status-DVZLBvKG.js} +1 -1
- package/dist/client/assets/{textarea-CxGYitYu.js → textarea-BCuCo32x.js} +1 -1
- package/dist/client/assets/{toggle-group-LdkT1Ecu.js → toggle-group-VxweZQrl.js} +1 -1
- package/dist/client/assets/{tools-list-BzZoS1K1.js → tools-list-DVh0mjAv.js} +1 -1
- package/dist/client/assets/{tooltip-7zLr-moN.js → tooltip-D6qvPlF4.js} +1 -1
- package/dist/client/assets/{types-DxqWkEtq.js → types-DCqv44Zz.js} +1 -1
- package/dist/client/assets/{use-ai-providers-mLoGEXc_.js → use-ai-providers-C0E0qH45.js} +1 -1
- package/dist/client/assets/{use-collections-u1h_t_JF.js → use-collections-BYyKflom.js} +1 -1
- package/dist/client/assets/{use-connection-DQwJCiIx.js → use-connection-kAb3_1aU.js} +1 -1
- package/dist/client/assets/{use-copy-C-S0osaU.js → use-copy-Dr24Lx_X.js} +1 -1
- package/dist/client/assets/{use-create-virtual-mcp-BruWfWOW.js → use-create-virtual-mcp-DL9XFAgg.js} +1 -1
- package/dist/client/assets/{use-decopilot-events-B4aVkVre.js → use-decopilot-events-BA7vVAsF.js} +1 -1
- package/dist/client/assets/{use-delete-connection-CilGQAHO.js → use-delete-connection-DOTVFlyu.js} +1 -1
- package/dist/client/assets/{use-infinite-scroll-C9RvfCBh.js → use-infinite-scroll-CeNFrFZw.js} +1 -1
- package/dist/client/assets/{use-list-state-DgGya_Kh.js → use-list-state-ChPE6VX_.js} +1 -1
- package/dist/client/assets/{use-mcp-tools-V6zce17I.js → use-mcp-tools-Bbkq91Xc.js} +1 -1
- package/dist/client/assets/{use-members-DzfmudDX.js → use-members-BbBWLiDA.js} +1 -1
- package/dist/client/assets/{use-navigate-to-agent-up8QETMW.js → use-navigate-to-agent-CiGytRqe.js} +1 -1
- package/dist/client/assets/{use-org-auth-client-Bv8qraCw.js → use-org-auth-client-Ctlksu1L.js} +1 -1
- package/dist/client/assets/{use-org-sso-D0kTPrgt.js → use-org-sso-Dtmr2O8h.js} +1 -1
- package/dist/client/assets/{use-organization-roles-vVY-U_lX.js → use-organization-roles-CYz2FAFR.js} +1 -1
- package/dist/client/assets/{use-organization-settings-W-mmflSy.js → use-organization-settings-CffFj1WY.js} +1 -1
- package/dist/client/assets/{use-registry-connections-BIZ2aNDt.js → use-registry-connections-Br5-A4Q9.js} +1 -1
- package/dist/client/assets/{use-status-sounds-YemQM946.js → use-status-sounds-C_N93Hgc.js} +1 -1
- package/dist/client/assets/{use-tasks-4FsSty5E.js → use-tasks-UUjCH1vs.js} +1 -1
- package/dist/client/assets/{use-view-mode-CLCiVZle.js → use-view-mode-BqPySn5U.js} +1 -1
- package/dist/client/assets/{use-virtual-mcp-CNRz_FcH.js → use-virtual-mcp-CriuigLx.js} +1 -1
- package/dist/client/assets/useInfiniteQuery-CXsqG0YB.js +1 -0
- package/dist/client/assets/useSuspenseInfiniteQuery-D0VeE26p.js +1 -0
- package/dist/client/assets/{user-DiQbbrAS.js → user-DfBEFCfL.js} +1 -1
- package/dist/client/assets/{view-mode-toggle-DWWeISWY.js → view-mode-toggle-YvwpFyqQ.js} +1 -1
- package/dist/client/assets/{workflow-CAX5kqLQ.js → workflow-DjrE6MxM.js} +1 -1
- package/dist/client/assets/workflow-detail-COUbvzSr.js +1 -0
- package/dist/client/index.html +1 -1
- package/dist/server/cli.js +1 -1
- package/package.json +1 -1
- package/dist/client/assets/ai-providers-ChfcKFAa.js +0 -1
- package/dist/client/assets/index-BXqhvHqj.js +0 -1
- package/dist/client/assets/registry-mlXjwmt-.js +0 -2
- package/dist/client/assets/store-registry-CvC5bBZ_.js +0 -2
- package/dist/client/assets/useInfiniteQuery-CSrqdvmh.js +0 -1
- package/dist/client/assets/useSuspenseInfiniteQuery-dLr5FZgz.js +0 -1
- package/dist/client/assets/workflow-detail-B07fAcdT.js +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/plugin-header-
|
|
1
|
+
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/plugin-header-CCyEhf-g.js","assets/ChevronDown-ChKIyEYX.js","assets/login-qRSyAZ_o.js","assets/input-Vak5VRqX.js","assets/reset-password-9vHhhDeq.js","assets/shell-layout-C--vXF8e.js","assets/dialog-Cv4ROuD1.js","assets/X-CaSicsGt.js","assets/required-auth-layout-DHh0SFyh.js","assets/use-tasks-UUjCH1vs.js","assets/use-collections-BYyKflom.js","assets/constants-DoDQutb_.js","assets/use-organization-settings-CffFj1WY.js","assets/use-org-sso-Dtmr2O8h.js","assets/Lock01-D4wd-Mt0.js","assets/onboarding-D5RrB-Tz.js","assets/label-BNsXufvU.js","assets/Users03-CdkPI2qt.js","assets/CheckCircle-dpfQl31_.js","assets/Palette-DWycQqah.js","assets/index-DEcDMso8.js","assets/index-CO-xtUtF.js","assets/tooltip-D6qvPlF4.js","assets/index-DHQaot3v.js","assets/agent-icon-2WwvMIOR.js","assets/AlertCircle-DykTdePm.js","assets/Tool01-B3jB5-GF.js","assets/XClose-BD0-I41d.js","assets/RefreshCcw01-U2jJl9XZ.js","assets/ArrowNarrowLeft-BSnqV9Qp.js","assets/XCircle-CAjnYXMv.js","assets/ArrowUpRight-BbCrxIiB.js","assets/ZapSquare-DJjYeaGT.js","assets/ChevronRight-CfxVPCJg.js","assets/ChevronUp-DrgxDzSb.js","assets/DotsVertical-Dpo2lfzf.js","assets/Container-BmeFpotW.js","assets/Star01-BIiXL1NH.js","assets/SearchMd-CJRrkj_7.js","assets/LinkExternal01-BFenb5P9.js","assets/Sun-DJvU306F.js","assets/Play-3GU5tyK6.js","assets/Plus-DNS-JW4m.js","assets/Settings02-BfZESxtt.js","assets/Shield01-CuEoE6Cq.js","assets/Trash01-DygHC0Or.js","assets/User01-XcdTTiqO.js","assets/Zap-DSo0BijB.js","assets/pair-BozNTVaW.js","assets/index-BTPvxzW6.js","assets/use-copy-Dr24Lx_X.js","assets/differenceInSeconds-NQ4PDo0z.js","assets/content-blocks-o63cs2vh.js","assets/types-DCqv44Zz.js","assets/chat-context-C1cX954x.js","assets/use-virtual-mcp-CriuigLx.js","assets/use-ai-providers-C0E0qH45.js","assets/use-decopilot-events-BA7vVAsF.js","assets/create-sse-subscription-CxkOgzKf.js","assets/integration-icon-qqFh_bDX.js","assets/skeleton-DZE_Durz.js","assets/popover-DsEUr0UP.js","assets/drawer-BvCmaZEN.js","assets/avatar-XLD41nT1.js","assets/alert-dialog-CczJ0CiT.js","assets/form-vv7czlx-.js","assets/index-ao7NoSNv.js","assets/use-mcp-tools-Bbkq91Xc.js","assets/index-DAmwYTvH.js","assets/switch-9ZAU9Wsd.js","assets/use-connection-kAb3_1aU.js","assets/lean-canvas-recruit-modal-HYouwCHv.js","assets/use-navigate-to-agent-CiGytRqe.js","assets/collection-search-l5AWFuzp.js","assets/checkbox-q02yCTCr.js","assets/extract-connection-data-DRmUoKq6.js","assets/constants-CqYb75aZ.js","assets/collections-Bdy_Kvem.js","assets/tabs-DMO0mB-I.js","assets/dropdown-menu-CXpZ_ns-.js","assets/select-CBnW7xgF.js","assets/toggle-group-VxweZQrl.js","assets/select-model-CkVUDibB.js","assets/ai-providers-logos-DD3qZ33J.js","assets/settings-section-C2ru3Pcu.js","assets/card-BromnR4D.js","assets/formatDistanceToNow-Cb2QZZJn.js","assets/unwrap-tool-result-BYXdCQMg.js","assets/index-DIMB4WE0.js","assets/question-004-sINsf4GQ.js","assets/connection-slug-eyAPH6o3.js","assets/connection-card-Bpj8ZSs7.js","assets/use-registry-connections-Br5-A4Q9.js","assets/useInfiniteQuery-CXsqG0YB.js","assets/infiniteQueryObserver-CeXFUdTd.js","assets/collection-tabs-yGBJSAc8.js","assets/badge-CqM8ft8a.js","assets/textarea-BCuCo32x.js","assets/connection-form-helpers-_eiZ9Dyj.js","assets/use-infinite-scroll-CeNFrFZw.js","assets/useSuspenseInfiniteQuery-D0VeE26p.js","assets/collection-search-BwqJnK6o.js","assets/use-create-virtual-mcp-DL9XFAgg.js","assets/empty-state-BBjIyjuI.js","assets/task-status-DVZLBvKG.js","assets/index-MijQYZKH.js","assets/command-Dm5FUYzy.js","assets/index-D7GdEVK0.js","assets/use-status-sounds-C_N93Hgc.js","assets/accordion-NFEtlqmu.js","assets/user-DfBEFCfL.js","assets/tools-list-DVh0mjAv.js","assets/scroll-area-CSvHQmLp.js","assets/view-mode-toggle-YvwpFyqQ.js","assets/automation-list-row-BM66xXdA.js","assets/search-input-CQG6oP1I.js","assets/index-DDGTF8rc.css","assets/index-ChEPbjgU.js","assets/settings-layout-D4i1woj8.js","assets/connections-ZzdUySRj.js","assets/collection-display-button-Cz_4oQot.js","assets/use-delete-connection-DOTVFlyu.js","assets/use-list-state-ChPE6VX_.js","assets/use-view-mode-BqPySn5U.js","assets/connection-detail-w6Hswx6I.js","assets/index-Qw9LGy6b.js","assets/index-CAszNWEi.js","assets/index-YHRzikDj.js","assets/use-members-BbBWLiDA.js","assets/use-org-auth-client-Ctlksu1L.js","assets/layout-l92_NVlz.js","assets/monitoring-stats-row-xiPLeKvD.js","assets/collection-detail-CuW2SK0p.js","assets/index-BizHATMB.js","assets/monaco-editor-BOg-v1iU.js","assets/empty-state-BQm2cEn7.js","assets/index-C89IjMPF.js","assets/table-DMcPz0bN.js","assets/general-GwVabcuc.js","assets/domain-settings-CcBopmCQ.js","assets/features-BN-47yPZ.js","assets/brand-context-DawPDVwK.js","assets/ai-providers-cvctUcOl.js","assets/members-D4UY4ei6.js","assets/collection-table-wrapper-BlzCLLAo.js","assets/use-organization-roles-CYz2FAFR.js","assets/roles-D3OPlwRQ.js","assets/sso-Dud_r3Fd.js","assets/profile-OzTBu6o-.js","assets/store-BxxFQfUe.js","assets/workflow-DjrE6MxM.js","assets/workflow-detail-COUbvzSr.js","assets/org-plugin-layout-C70m9fD9.js","assets/plugin-layout-kiqmZ4Ty.js","assets/agents-list-B3NTdokI.js","assets/automations-CENOzqx0.js","assets/dynamic-plugin-layout-DQ5UtKMf.js"])))=>i.map(i=>d[i]);
|
|
2
2
|
function z$(e,t){for(var n=0;n<t.length;n++){const r=t[n];if(typeof r!="string"&&!Array.isArray(r)){for(const i in r)if(i!=="default"&&!(i in e)){const s=Object.getOwnPropertyDescriptor(r,i);s&&Object.defineProperty(e,i,s.get?s:{enumerable:!0,get:()=>r[i]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const i of document.querySelectorAll('link[rel="modulepreload"]'))r(i);new MutationObserver(i=>{for(const s of i)if(s.type==="childList")for(const l of s.addedNodes)l.tagName==="LINK"&&l.rel==="modulepreload"&&r(l)}).observe(document,{childList:!0,subtree:!0});function n(i){const s={};return i.integrity&&(s.integrity=i.integrity),i.referrerPolicy&&(s.referrerPolicy=i.referrerPolicy),i.crossOrigin==="use-credentials"?s.credentials="include":i.crossOrigin==="anonymous"?s.credentials="omit":s.credentials="same-origin",s}function r(i){if(i.ep)return;i.ep=!0;const s=n(i);fetch(i.href,s)}})();const F$="modulepreload",B$=function(e){return"/"+e},X2={},At=function(t,n,r){let i=Promise.resolve();if(n&&n.length>0){let l=function(f){return Promise.all(f.map(m=>Promise.resolve(m).then(p=>({status:"fulfilled",value:p}),p=>({status:"rejected",reason:p}))))};document.getElementsByTagName("link");const c=document.querySelector("meta[property=csp-nonce]"),d=c?.nonce||c?.getAttribute("nonce");i=l(n.map(f=>{if(f=B$(f),f in X2)return;X2[f]=!0;const m=f.endsWith(".css"),p=m?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${f}"]${p}`))return;const g=document.createElement("link");if(g.rel=m?"stylesheet":F$,m||(g.as="script"),g.crossOrigin="",g.href=f,d&&g.setAttribute("nonce",d),document.head.appendChild(g),m)return new Promise((v,y)=>{g.addEventListener("load",v),g.addEventListener("error",()=>y(Error(`Unable to preload CSS for ${f}`)))})}))}function s(l){const c=new Event("vite:preloadError",{cancelable:!0});if(c.payload=l,window.dispatchEvent(c),!c.defaultPrevented)throw l}return i.then(l=>{for(const c of l||[])c.status==="rejected"&&s(c.reason);return t().catch(s)})};var ele=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function la(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var __={exports:{}},Bu={};var J2;function V$(){if(J2)return Bu;J2=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.fragment");function n(r,i,s){var l=null;if(s!==void 0&&(l=""+s),i.key!==void 0&&(l=""+i.key),"key"in i){s={};for(var c in i)c!=="key"&&(s[c]=i[c])}else s=i;return i=s.ref,{$$typeof:e,type:r,key:l,ref:i!==void 0?i:null,props:s}}return Bu.Fragment=t,Bu.jsx=n,Bu.jsxs=n,Bu}var eO;function q$(){return eO||(eO=1,__.exports=V$()),__.exports}var T=q$(),y_={exports:{}},Vu={},b_={exports:{}},w_={};var tO;function H$(){return tO||(tO=1,(function(e){function t(q,W){var ee=q.length;q.push(W);e:for(;0<ee;){var ae=ee-1>>>1,Q=q[ae];if(0<i(Q,W))q[ae]=W,q[ee]=Q,ee=ae;else break e}}function n(q){return q.length===0?null:q[0]}function r(q){if(q.length===0)return null;var W=q[0],ee=q.pop();if(ee!==W){q[0]=ee;e:for(var ae=0,Q=q.length,k=Q>>>1;ae<k;){var K=2*(ae+1)-1,V=q[K],D=K+1,F=q[D];if(0>i(V,ee))D<Q&&0>i(F,V)?(q[ae]=F,q[D]=ee,ae=D):(q[ae]=V,q[K]=ee,ae=K);else if(D<Q&&0>i(F,ee))q[ae]=F,q[D]=ee,ae=D;else break e}}return W}function i(q,W){var ee=q.sortIndex-W.sortIndex;return ee!==0?ee:q.id-W.id}if(e.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var s=performance;e.unstable_now=function(){return s.now()}}else{var l=Date,c=l.now();e.unstable_now=function(){return l.now()-c}}var d=[],f=[],m=1,p=null,g=3,v=!1,y=!1,b=!1,x=!1,S=typeof setTimeout=="function"?setTimeout:null,E=typeof clearTimeout=="function"?clearTimeout:null,R=typeof setImmediate<"u"?setImmediate:null;function C(q){for(var W=n(f);W!==null;){if(W.callback===null)r(f);else if(W.startTime<=q)r(f),W.sortIndex=W.expirationTime,t(d,W);else break;W=n(f)}}function O(q){if(b=!1,C(q),!y)if(n(d)!==null)y=!0,A||(A=!0,B());else{var W=n(f);W!==null&&re(O,W.startTime-q)}}var A=!1,M=-1,P=5,L=-1;function H(){return x?!0:!(e.unstable_now()-L<P)}function j(){if(x=!1,A){var q=e.unstable_now();L=q;var W=!0;try{e:{y=!1,b&&(b=!1,E(M),M=-1),v=!0;var ee=g;try{t:{for(C(q),p=n(d);p!==null&&!(p.expirationTime>q&&H());){var ae=p.callback;if(typeof ae=="function"){p.callback=null,g=p.priorityLevel;var Q=ae(p.expirationTime<=q);if(q=e.unstable_now(),typeof Q=="function"){p.callback=Q,C(q),W=!0;break t}p===n(d)&&r(d),C(q)}else r(d);p=n(d)}if(p!==null)W=!0;else{var k=n(f);k!==null&&re(O,k.startTime-q),W=!1}}break e}finally{p=null,g=ee,v=!1}W=void 0}}finally{W?B():A=!1}}}var B;if(typeof R=="function")B=function(){R(j)};else if(typeof MessageChannel<"u"){var U=new MessageChannel,Z=U.port2;U.port1.onmessage=j,B=function(){Z.postMessage(null)}}else B=function(){S(j,0)};function re(q,W){M=S(function(){q(e.unstable_now())},W)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(q){q.callback=null},e.unstable_forceFrameRate=function(q){0>q||125<q?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):P=0<q?Math.floor(1e3/q):5},e.unstable_getCurrentPriorityLevel=function(){return g},e.unstable_next=function(q){switch(g){case 1:case 2:case 3:var W=3;break;default:W=g}var ee=g;g=W;try{return q()}finally{g=ee}},e.unstable_requestPaint=function(){x=!0},e.unstable_runWithPriority=function(q,W){switch(q){case 1:case 2:case 3:case 4:case 5:break;default:q=3}var ee=g;g=q;try{return W()}finally{g=ee}},e.unstable_scheduleCallback=function(q,W,ee){var ae=e.unstable_now();switch(typeof ee=="object"&&ee!==null?(ee=ee.delay,ee=typeof ee=="number"&&0<ee?ae+ee:ae):ee=ae,q){case 1:var Q=-1;break;case 2:Q=250;break;case 5:Q=1073741823;break;case 4:Q=1e4;break;default:Q=5e3}return Q=ee+Q,q={id:m++,callback:W,priorityLevel:q,startTime:ee,expirationTime:Q,sortIndex:-1},ee>ae?(q.sortIndex=ee,t(f,q),n(d)===null&&q===n(f)&&(b?(E(M),M=-1):b=!0,re(O,ee-ae))):(q.sortIndex=Q,t(d,q),y||v||(y=!0,A||(A=!0,B()))),q},e.unstable_shouldYield=H,e.unstable_wrapCallback=function(q){var W=g;return function(){var ee=g;g=W;try{return q.apply(this,arguments)}finally{g=ee}}}})(w_)),w_}var nO;function G$(){return nO||(nO=1,b_.exports=H$()),b_.exports}var S_={exports:{}},rt={};var rO;function K$(){if(rO)return rt;rO=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),s=Symbol.for("react.consumer"),l=Symbol.for("react.context"),c=Symbol.for("react.forward_ref"),d=Symbol.for("react.suspense"),f=Symbol.for("react.memo"),m=Symbol.for("react.lazy"),p=Symbol.for("react.activity"),g=Symbol.iterator;function v(k){return k===null||typeof k!="object"?null:(k=g&&k[g]||k["@@iterator"],typeof k=="function"?k:null)}var y={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},b=Object.assign,x={};function S(k,K,V){this.props=k,this.context=K,this.refs=x,this.updater=V||y}S.prototype.isReactComponent={},S.prototype.setState=function(k,K){if(typeof k!="object"&&typeof k!="function"&&k!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,k,K,"setState")},S.prototype.forceUpdate=function(k){this.updater.enqueueForceUpdate(this,k,"forceUpdate")};function E(){}E.prototype=S.prototype;function R(k,K,V){this.props=k,this.context=K,this.refs=x,this.updater=V||y}var C=R.prototype=new E;C.constructor=R,b(C,S.prototype),C.isPureReactComponent=!0;var O=Array.isArray;function A(){}var M={H:null,A:null,T:null,S:null},P=Object.prototype.hasOwnProperty;function L(k,K,V){var D=V.ref;return{$$typeof:e,type:k,key:K,ref:D!==void 0?D:null,props:V}}function H(k,K){return L(k.type,K,k.props)}function j(k){return typeof k=="object"&&k!==null&&k.$$typeof===e}function B(k){var K={"=":"=0",":":"=2"};return"$"+k.replace(/[=:]/g,function(V){return K[V]})}var U=/\/+/g;function Z(k,K){return typeof k=="object"&&k!==null&&k.key!=null?B(""+k.key):K.toString(36)}function re(k){switch(k.status){case"fulfilled":return k.value;case"rejected":throw k.reason;default:switch(typeof k.status=="string"?k.then(A,A):(k.status="pending",k.then(function(K){k.status==="pending"&&(k.status="fulfilled",k.value=K)},function(K){k.status==="pending"&&(k.status="rejected",k.reason=K)})),k.status){case"fulfilled":return k.value;case"rejected":throw k.reason}}throw k}function q(k,K,V,D,F){var X=typeof k;(X==="undefined"||X==="boolean")&&(k=null);var fe=!1;if(k===null)fe=!0;else switch(X){case"bigint":case"string":case"number":fe=!0;break;case"object":switch(k.$$typeof){case e:case t:fe=!0;break;case m:return fe=k._init,q(fe(k._payload),K,V,D,F)}}if(fe)return F=F(k),fe=D===""?"."+Z(k,0):D,O(F)?(V="",fe!=null&&(V=fe.replace(U,"$&/")+"/"),q(F,K,V,"",function(Ue){return Ue})):F!=null&&(j(F)&&(F=H(F,V+(F.key==null||k&&k.key===F.key?"":(""+F.key).replace(U,"$&/")+"/")+fe)),K.push(F)),1;fe=0;var pe=D===""?".":D+":";if(O(k))for(var xe=0;xe<k.length;xe++)D=k[xe],X=pe+Z(D,xe),fe+=q(D,K,V,X,F);else if(xe=v(k),typeof xe=="function")for(k=xe.call(k),xe=0;!(D=k.next()).done;)D=D.value,X=pe+Z(D,xe++),fe+=q(D,K,V,X,F);else if(X==="object"){if(typeof k.then=="function")return q(re(k),K,V,D,F);throw K=String(k),Error("Objects are not valid as a React child (found: "+(K==="[object Object]"?"object with keys {"+Object.keys(k).join(", ")+"}":K)+"). If you meant to render a collection of children, use an array instead.")}return fe}function W(k,K,V){if(k==null)return k;var D=[],F=0;return q(k,D,"","",function(X){return K.call(V,X,F++)}),D}function ee(k){if(k._status===-1){var K=k._result;K=K(),K.then(function(V){(k._status===0||k._status===-1)&&(k._status=1,k._result=V)},function(V){(k._status===0||k._status===-1)&&(k._status=2,k._result=V)}),k._status===-1&&(k._status=0,k._result=K)}if(k._status===1)return k._result.default;throw k._result}var ae=typeof reportError=="function"?reportError:function(k){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var K=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof k=="object"&&k!==null&&typeof k.message=="string"?String(k.message):String(k),error:k});if(!window.dispatchEvent(K))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",k);return}console.error(k)},Q={map:W,forEach:function(k,K,V){W(k,function(){K.apply(this,arguments)},V)},count:function(k){var K=0;return W(k,function(){K++}),K},toArray:function(k){return W(k,function(K){return K})||[]},only:function(k){if(!j(k))throw Error("React.Children.only expected to receive a single React element child.");return k}};return rt.Activity=p,rt.Children=Q,rt.Component=S,rt.Fragment=n,rt.Profiler=i,rt.PureComponent=R,rt.StrictMode=r,rt.Suspense=d,rt.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=M,rt.__COMPILER_RUNTIME={__proto__:null,c:function(k){return M.H.useMemoCache(k)}},rt.cache=function(k){return function(){return k.apply(null,arguments)}},rt.cacheSignal=function(){return null},rt.cloneElement=function(k,K,V){if(k==null)throw Error("The argument must be a React element, but you passed "+k+".");var D=b({},k.props),F=k.key;if(K!=null)for(X in K.key!==void 0&&(F=""+K.key),K)!P.call(K,X)||X==="key"||X==="__self"||X==="__source"||X==="ref"&&K.ref===void 0||(D[X]=K[X]);var X=arguments.length-2;if(X===1)D.children=V;else if(1<X){for(var fe=Array(X),pe=0;pe<X;pe++)fe[pe]=arguments[pe+2];D.children=fe}return L(k.type,F,D)},rt.createContext=function(k){return k={$$typeof:l,_currentValue:k,_currentValue2:k,_threadCount:0,Provider:null,Consumer:null},k.Provider=k,k.Consumer={$$typeof:s,_context:k},k},rt.createElement=function(k,K,V){var D,F={},X=null;if(K!=null)for(D in K.key!==void 0&&(X=""+K.key),K)P.call(K,D)&&D!=="key"&&D!=="__self"&&D!=="__source"&&(F[D]=K[D]);var fe=arguments.length-2;if(fe===1)F.children=V;else if(1<fe){for(var pe=Array(fe),xe=0;xe<fe;xe++)pe[xe]=arguments[xe+2];F.children=pe}if(k&&k.defaultProps)for(D in fe=k.defaultProps,fe)F[D]===void 0&&(F[D]=fe[D]);return L(k,X,F)},rt.createRef=function(){return{current:null}},rt.forwardRef=function(k){return{$$typeof:c,render:k}},rt.isValidElement=j,rt.lazy=function(k){return{$$typeof:m,_payload:{_status:-1,_result:k},_init:ee}},rt.memo=function(k,K){return{$$typeof:f,type:k,compare:K===void 0?null:K}},rt.startTransition=function(k){var K=M.T,V={};M.T=V;try{var D=k(),F=M.S;F!==null&&F(V,D),typeof D=="object"&&D!==null&&typeof D.then=="function"&&D.then(A,ae)}catch(X){ae(X)}finally{K!==null&&V.types!==null&&(K.types=V.types),M.T=K}},rt.unstable_useCacheRefresh=function(){return M.H.useCacheRefresh()},rt.use=function(k){return M.H.use(k)},rt.useActionState=function(k,K,V){return M.H.useActionState(k,K,V)},rt.useCallback=function(k,K){return M.H.useCallback(k,K)},rt.useContext=function(k){return M.H.useContext(k)},rt.useDebugValue=function(){},rt.useDeferredValue=function(k,K){return M.H.useDeferredValue(k,K)},rt.useEffect=function(k,K){return M.H.useEffect(k,K)},rt.useEffectEvent=function(k){return M.H.useEffectEvent(k)},rt.useId=function(){return M.H.useId()},rt.useImperativeHandle=function(k,K,V){return M.H.useImperativeHandle(k,K,V)},rt.useInsertionEffect=function(k,K){return M.H.useInsertionEffect(k,K)},rt.useLayoutEffect=function(k,K){return M.H.useLayoutEffect(k,K)},rt.useMemo=function(k,K){return M.H.useMemo(k,K)},rt.useOptimistic=function(k,K){return M.H.useOptimistic(k,K)},rt.useReducer=function(k,K,V){return M.H.useReducer(k,K,V)},rt.useRef=function(k){return M.H.useRef(k)},rt.useState=function(k){return M.H.useState(k)},rt.useSyncExternalStore=function(k,K,V){return M.H.useSyncExternalStore(k,K,V)},rt.useTransition=function(){return M.H.useTransition()},rt.version="19.2.5",rt}var iO;function ca(){return iO||(iO=1,S_.exports=K$()),S_.exports}var E_={exports:{}},yr={};var oO;function Z$(){if(oO)return yr;oO=1;var e=ca();function t(d){var f="https://react.dev/errors/"+d;if(1<arguments.length){f+="?args[]="+encodeURIComponent(arguments[1]);for(var m=2;m<arguments.length;m++)f+="&args[]="+encodeURIComponent(arguments[m])}return"Minified React error #"+d+"; visit "+f+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function n(){}var r={d:{f:n,r:function(){throw Error(t(522))},D:n,C:n,L:n,m:n,X:n,S:n,M:n},p:0,findDOMNode:null},i=Symbol.for("react.portal");function s(d,f,m){var p=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:i,key:p==null?null:""+p,children:d,containerInfo:f,implementation:m}}var l=e.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function c(d,f){if(d==="font")return"";if(typeof f=="string")return f==="use-credentials"?f:""}return yr.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=r,yr.createPortal=function(d,f){var m=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!f||f.nodeType!==1&&f.nodeType!==9&&f.nodeType!==11)throw Error(t(299));return s(d,f,null,m)},yr.flushSync=function(d){var f=l.T,m=r.p;try{if(l.T=null,r.p=2,d)return d()}finally{l.T=f,r.p=m,r.d.f()}},yr.preconnect=function(d,f){typeof d=="string"&&(f?(f=f.crossOrigin,f=typeof f=="string"?f==="use-credentials"?f:"":void 0):f=null,r.d.C(d,f))},yr.prefetchDNS=function(d){typeof d=="string"&&r.d.D(d)},yr.preinit=function(d,f){if(typeof d=="string"&&f&&typeof f.as=="string"){var m=f.as,p=c(m,f.crossOrigin),g=typeof f.integrity=="string"?f.integrity:void 0,v=typeof f.fetchPriority=="string"?f.fetchPriority:void 0;m==="style"?r.d.S(d,typeof f.precedence=="string"?f.precedence:void 0,{crossOrigin:p,integrity:g,fetchPriority:v}):m==="script"&&r.d.X(d,{crossOrigin:p,integrity:g,fetchPriority:v,nonce:typeof f.nonce=="string"?f.nonce:void 0})}},yr.preinitModule=function(d,f){if(typeof d=="string")if(typeof f=="object"&&f!==null){if(f.as==null||f.as==="script"){var m=c(f.as,f.crossOrigin);r.d.M(d,{crossOrigin:m,integrity:typeof f.integrity=="string"?f.integrity:void 0,nonce:typeof f.nonce=="string"?f.nonce:void 0})}}else f==null&&r.d.M(d)},yr.preload=function(d,f){if(typeof d=="string"&&typeof f=="object"&&f!==null&&typeof f.as=="string"){var m=f.as,p=c(m,f.crossOrigin);r.d.L(d,m,{crossOrigin:p,integrity:typeof f.integrity=="string"?f.integrity:void 0,nonce:typeof f.nonce=="string"?f.nonce:void 0,type:typeof f.type=="string"?f.type:void 0,fetchPriority:typeof f.fetchPriority=="string"?f.fetchPriority:void 0,referrerPolicy:typeof f.referrerPolicy=="string"?f.referrerPolicy:void 0,imageSrcSet:typeof f.imageSrcSet=="string"?f.imageSrcSet:void 0,imageSizes:typeof f.imageSizes=="string"?f.imageSizes:void 0,media:typeof f.media=="string"?f.media:void 0})}},yr.preloadModule=function(d,f){if(typeof d=="string")if(f){var m=c(f.as,f.crossOrigin);r.d.m(d,{as:typeof f.as=="string"&&f.as!=="script"?f.as:void 0,crossOrigin:m,integrity:typeof f.integrity=="string"?f.integrity:void 0})}else r.d.m(d)},yr.requestFormReset=function(d){r.d.r(d)},yr.unstable_batchedUpdates=function(d,f){return d(f)},yr.useFormState=function(d,f,m){return l.H.useFormState(d,f,m)},yr.useFormStatus=function(){return l.H.useHostTransitionStatus()},yr.version="19.2.5",yr}var sO;function IM(){if(sO)return E_.exports;sO=1;function e(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}return e(),E_.exports=Z$(),E_.exports}var aO;function Y$(){if(aO)return Vu;aO=1;var e=G$(),t=ca(),n=IM();function r(o){var a="https://react.dev/errors/"+o;if(1<arguments.length){a+="?args[]="+encodeURIComponent(arguments[1]);for(var u=2;u<arguments.length;u++)a+="&args[]="+encodeURIComponent(arguments[u])}return"Minified React error #"+o+"; visit "+a+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function i(o){return!(!o||o.nodeType!==1&&o.nodeType!==9&&o.nodeType!==11)}function s(o){var a=o,u=o;if(o.alternate)for(;a.return;)a=a.return;else{o=a;do a=o,(a.flags&4098)!==0&&(u=a.return),o=a.return;while(o)}return a.tag===3?u:null}function l(o){if(o.tag===13){var a=o.memoizedState;if(a===null&&(o=o.alternate,o!==null&&(a=o.memoizedState)),a!==null)return a.dehydrated}return null}function c(o){if(o.tag===31){var a=o.memoizedState;if(a===null&&(o=o.alternate,o!==null&&(a=o.memoizedState)),a!==null)return a.dehydrated}return null}function d(o){if(s(o)!==o)throw Error(r(188))}function f(o){var a=o.alternate;if(!a){if(a=s(o),a===null)throw Error(r(188));return a!==o?null:o}for(var u=o,h=a;;){var _=u.return;if(_===null)break;var w=_.alternate;if(w===null){if(h=_.return,h!==null){u=h;continue}break}if(_.child===w.child){for(w=_.child;w;){if(w===u)return d(_),o;if(w===h)return d(_),a;w=w.sibling}throw Error(r(188))}if(u.return!==h.return)u=_,h=w;else{for(var N=!1,$=_.child;$;){if($===u){N=!0,u=_,h=w;break}if($===h){N=!0,h=_,u=w;break}$=$.sibling}if(!N){for($=w.child;$;){if($===u){N=!0,u=w,h=_;break}if($===h){N=!0,h=w,u=_;break}$=$.sibling}if(!N)throw Error(r(189))}}if(u.alternate!==h)throw Error(r(190))}if(u.tag!==3)throw Error(r(188));return u.stateNode.current===u?o:a}function m(o){var a=o.tag;if(a===5||a===26||a===27||a===6)return o;for(o=o.child;o!==null;){if(a=m(o),a!==null)return a;o=o.sibling}return null}var p=Object.assign,g=Symbol.for("react.element"),v=Symbol.for("react.transitional.element"),y=Symbol.for("react.portal"),b=Symbol.for("react.fragment"),x=Symbol.for("react.strict_mode"),S=Symbol.for("react.profiler"),E=Symbol.for("react.consumer"),R=Symbol.for("react.context"),C=Symbol.for("react.forward_ref"),O=Symbol.for("react.suspense"),A=Symbol.for("react.suspense_list"),M=Symbol.for("react.memo"),P=Symbol.for("react.lazy"),L=Symbol.for("react.activity"),H=Symbol.for("react.memo_cache_sentinel"),j=Symbol.iterator;function B(o){return o===null||typeof o!="object"?null:(o=j&&o[j]||o["@@iterator"],typeof o=="function"?o:null)}var U=Symbol.for("react.client.reference");function Z(o){if(o==null)return null;if(typeof o=="function")return o.$$typeof===U?null:o.displayName||o.name||null;if(typeof o=="string")return o;switch(o){case b:return"Fragment";case S:return"Profiler";case x:return"StrictMode";case O:return"Suspense";case A:return"SuspenseList";case L:return"Activity"}if(typeof o=="object")switch(o.$$typeof){case y:return"Portal";case R:return o.displayName||"Context";case E:return(o._context.displayName||"Context")+".Consumer";case C:var a=o.render;return o=o.displayName,o||(o=a.displayName||a.name||"",o=o!==""?"ForwardRef("+o+")":"ForwardRef"),o;case M:return a=o.displayName||null,a!==null?a:Z(o.type)||"Memo";case P:a=o._payload,o=o._init;try{return Z(o(a))}catch{}}return null}var re=Array.isArray,q=t.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,W=n.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,ee={pending:!1,data:null,method:null,action:null},ae=[],Q=-1;function k(o){return{current:o}}function K(o){0>Q||(o.current=ae[Q],ae[Q]=null,Q--)}function V(o,a){Q++,ae[Q]=o.current,o.current=a}var D=k(null),F=k(null),X=k(null),fe=k(null);function pe(o,a){switch(V(X,a),V(F,o),V(D,null),a.nodeType){case 9:case 11:o=(o=a.documentElement)&&(o=o.namespaceURI)?w2(o):0;break;default:if(o=a.tagName,a=a.namespaceURI)a=w2(a),o=S2(a,o);else switch(o){case"svg":o=1;break;case"math":o=2;break;default:o=0}}K(D),V(D,o)}function xe(){K(D),K(F),K(X)}function Ue(o){o.memoizedState!==null&&V(fe,o);var a=D.current,u=S2(a,o.type);a!==u&&(V(F,o),V(D,u))}function Y(o){F.current===o&&(K(D),K(F)),fe.current===o&&(K(fe),ju._currentValue=ee)}var te,ve;function se(o){if(te===void 0)try{throw Error()}catch(u){var a=u.stack.trim().match(/\n( *(at )?)/);te=a&&a[1]||"",ve=-1<u.stack.indexOf(`
|
|
3
3
|
at`)?" (<anonymous>)":-1<u.stack.indexOf("@")?"@unknown:0:0":""}return`
|
|
4
4
|
`+te+o+ve}var we=!1;function Oe(o,a){if(!o||we)return"";we=!0;var u=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var h={DetermineComponentFrameRoot:function(){try{if(a){var Se=function(){throw Error()};if(Object.defineProperty(Se.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(Se,[])}catch(ge){var he=ge}Reflect.construct(o,[],Se)}else{try{Se.call()}catch(ge){he=ge}o.call(Se.prototype)}}else{try{throw Error()}catch(ge){he=ge}(Se=o())&&typeof Se.catch=="function"&&Se.catch(function(){})}}catch(ge){if(ge&&he&&typeof ge.stack=="string")return[ge.stack,he.stack]}return[null,null]}};h.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var _=Object.getOwnPropertyDescriptor(h.DetermineComponentFrameRoot,"name");_&&_.configurable&&Object.defineProperty(h.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var w=h.DetermineComponentFrameRoot(),N=w[0],$=w[1];if(N&&$){var J=N.split(`
|
|
@@ -168,4 +168,4 @@ ${r}
|
|
|
168
168
|
${r}
|
|
169
169
|
}`)}if(n.length>0){const r=document.createElement("style");r.id="mesh-theme-overrides",r.textContent=n.join(`
|
|
170
170
|
|
|
171
|
-
`),document.head.appendChild(r)}}function Jse(e){const t=Ro.c(9),{children:n}=e;let r;t[0]===Symbol.for("react.memo_cache_sentinel")?(r={queryKey:GM.publicConfig(),queryFn:Qse,staleTime:1/0},t[0]=r):r=t[0];const{data:i}=HM(r),[s]=Yse();i.internalUrl&&Use(i.internalUrl);let l,c;t[1]!==i.theme?(l=()=>{Xse(i.theme)},c=[i.theme],t[1]=i.theme,t[2]=l,t[3]=c):(l=t[2],c=t[3]),I.useLayoutEffect(l,c);let d,f;t[4]!==s.theme?(d=()=>{const p=document.documentElement;if(s.theme==="dark"){p.classList.add("dark");return}if(s.theme==="light"){p.classList.remove("dark");return}const g=window.matchMedia("(prefers-color-scheme: dark)"),v=b=>p.classList.toggle("dark",b);v(g.matches);const y=b=>v(b.matches);return g.addEventListener("change",y),()=>g.removeEventListener("change",y)},f=[s.theme],t[4]=s.theme,t[5]=d,t[6]=f):(d=t[5],f=t[6]),I.useLayoutEffect(d,f);let m;return t[7]!==n?(m=T.jsx(T.Fragment,{children:n}),t[7]=n,t[8]=m):m=t[8],m}const eae=new bj({defaultOptions:{queries:{staleTime:6e4,refetchOnWindowFocus:!0,refetchOnMount:!0,retry:1,gcTime:300*1e3}}});function tae(e){const t=Ro.c(4),{children:n}=e;let r;t[0]===Symbol.for("react.memo_cache_sentinel")?(r=T.jsx(hH,{}),t[0]=r):r=t[0];let i;t[1]===Symbol.for("react.memo_cache_sentinel")?(i=T.jsx(jD,{}),t[1]=i):i=t[1];let s;return t[2]!==n?(s=T.jsxs(wj,{client:eae,children:[r,T.jsx(I.Suspense,{fallback:i,children:T.jsx(Jse,{children:T.jsx(Lj,{children:T.jsx(Fee,{children:T.jsx(Wne,{children:n})})})})})]}),t[2]=n,t[3]=s):s=t[3],s}function nae(...e){return BP(pw(e))}const rae=y4("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-lg text-sm transition-all disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4 shrink-0 [&_svg]:shrink-0 outline-none focus-visible:border-ring focus-visible:ring-ring/20 focus-visible:ring-[2px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive",{variants:{variant:{default:"bg-primary text-primary-foreground hover:bg-primary/80",destructive:"bg-destructive text-destructive-foreground hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/60",outline:"text-foreground bg-background hover:bg-accent hover:text-accent-foreground dark:bg-input/30 dark:hover:bg-input/50 card-shadow",secondary:"bg-secondary text-secondary-foreground hover:bg-secondary/80",success:"bg-success text-success-foreground hover:bg-success/90 focus-visible:ring-success/20 dark:focus-visible:ring-success/40",special:"bg-special text-special-foreground hover:bg-special/90 focus-visible:ring-special/20 dark:focus-visible:ring-special/40",ghost:"hover:bg-accent hover:text-accent-foreground dark:hover:bg-accent/50",link:"text-foreground/80 hover:text-foreground"},size:{default:"h-8 px-3 has-[>svg]:px-2.5",sm:"h-7 gap-1.5 px-2.5 has-[>svg]:px-2",xs:"h-6 gap-1 px-1.5 text-xs has-[>svg]:px-1",lg:"h-10 px-3.5 has-[>svg]:px-3",icon:"size-8","icon-sm":"size-7"}},defaultVariants:{variant:"default",size:"default"}});function W1(e){const t=Ro.c(14);let n,r,i,s,l;t[0]!==e?({className:n,variant:l,size:i,asChild:s,...r}=e,t[0]=e,t[1]=n,t[2]=r,t[3]=i,t[4]=s,t[5]=l):(n=t[1],r=t[2],i=t[3],s=t[4],l=t[5]);const d=(s===void 0?!1:s)?jw:"button";let f;t[6]!==n||t[7]!==i||t[8]!==l?(f=nae(rae({variant:l,size:i,className:n})),t[6]=n,t[7]=i,t[8]=l,t[9]=f):f=t[9];let m;return t[10]!==d||t[11]!==r||t[12]!==f?(m=T.jsx(d,{"data-slot":"button",className:f,...r}),t[10]=d,t[11]=r,t[12]=f,t[13]=m):m=t[13],m}const CM="__mesh_chunk_reload_ts";function AM(e){if(!e)return!1;const t=e.message||"";return t.includes("Failed to fetch dynamically imported module")||t.includes("Importing a module script failed")||t.includes("error loading dynamically imported module")||t.includes("Failed to fetch")&&e.name==="TypeError"}class ice extends I.Component{state={hasError:!1,error:null};static getDerivedStateFromError(t){return{hasError:!0,error:t}}componentDidCatch(t,n){console.error("Uncaught error:",t,n),kD(t,{boundary:"default",error_name:t.name,error_message:t.message,component_stack:n.componentStack??null,route:typeof window<"u"?window.location.pathname:null})}resetError=()=>{this.setState({hasError:!1,error:null})};render(){if(this.state.hasError){const{fallback:t}=this.props;return typeof t=="function"?t({error:this.state.error,resetError:this.resetError}):t!==void 0?t:T.jsxs("div",{className:"flex-1 flex flex-col items-center justify-center h-full p-6 text-center space-y-4",children:[T.jsx("div",{className:"bg-destructive/10 p-3 rounded-full",children:T.jsx(NS,{className:"h-6 w-6 text-destructive"})}),T.jsxs("div",{className:"space-y-2",children:[T.jsx("h3",{className:"text-lg font-medium",children:"Something went wrong"}),T.jsx("p",{className:"text-sm text-muted-foreground max-w-xs mx-auto",children:this.state.error?.message||"An unexpected error occurred"})]}),T.jsx(W1,{variant:"outline",onClick:this.resetError,children:"Try again"})]})}return this.props.children}}class iae extends I.Component{state={hasError:!1,error:null};static getDerivedStateFromError(t){return{hasError:!0,error:t}}componentDidCatch(t,n){console.error("Uncaught error:",t,n);const r=AM(t);if(kD(t,{boundary:"chunk_root",is_chunk_load_error:r,error_name:t.name,error_message:t.message,component_stack:n.componentStack??null,route:typeof window<"u"?window.location.pathname:null}),!r)return;const i=sessionStorage.getItem(CM),s=Date.now();(!i||s-Number(i)>1e4)&&(sessionStorage.setItem(CM,String(s)),window.location.reload())}render(){return this.state.hasError&&AM(this.state.error)?T.jsxs("div",{className:"flex min-h-dvh flex-col items-center justify-center p-6 text-center space-y-4",children:[T.jsx("div",{className:"bg-primary/10 p-3 rounded-full",children:T.jsx($D,{className:"h-6 w-6 text-primary"})}),T.jsxs("div",{className:"space-y-2",children:[T.jsx("h3",{className:"text-lg font-medium",children:"New version available"}),T.jsx("p",{className:"text-sm text-muted-foreground max-w-xs mx-auto",children:"A new version has been deployed. Refresh to continue."})]}),T.jsx(W1,{onClick:()=>window.location.reload(),children:"Refresh"})]}):this.state.hasError?T.jsxs("div",{className:"flex min-h-dvh flex-col items-center justify-center p-6 text-center space-y-4",children:[T.jsx("div",{className:"bg-destructive/10 p-3 rounded-full",children:T.jsx(NS,{className:"h-6 w-6 text-destructive"})}),T.jsxs("div",{className:"space-y-2",children:[T.jsx("h3",{className:"text-lg font-medium",children:"Something went wrong"}),T.jsx("p",{className:"text-sm text-muted-foreground max-w-xs mx-auto",children:this.state.error?.message||"An unexpected error occurred"})]}),T.jsx(W1,{variant:"outline",onClick:()=>this.setState({hasError:!1,error:null}),children:"Try again"})]}):this.props.children}}const oae="MCP Workflows",sae="Create workflows using your MCP tools",aae=I.lazy(()=>At(()=>import("./plugin-header-DFdSKbGT.js"),__vite__mapDeps([0,1]))),lae=I.lazy(()=>At(()=>import("./plugin-empty-state-BdyLNYrm.js"),[])),cae={id:oae,description:sae,bindingName:"WORKFLOW",renderHeader:e=>T.jsx(aae,{...e}),renderEmptyState:()=>T.jsx(lae,{}),setup:e=>{e.registerSettingsSidebarItem({key:"workflows",icon:T.jsx(DD,{size:14}),label:"MCP Workflows",to:"/$org/settings/workflows"})}},uae=[cae],ma=t7({component:()=>T.jsx(iae,{children:T.jsx(tae,{children:T.jsx(I.Suspense,{fallback:T.jsx(jD,{}),children:T.jsx(mP,{})})})})}),dae=mt({getParentRoute:()=>ma,path:"/login",component:It(()=>At(()=>import("./login-Mvzj8t4K.js"),__vite__mapDeps([2,3]))),validateSearch:ul(()=>Ee({next:z().optional(),client_id:z().optional(),redirect_uri:z().optional(),response_type:z().optional(),state:z().optional(),scope:z().optional(),code_challenge:z().optional(),code_challenge_method:z().optional()}))}),fae=mt({getParentRoute:()=>ma,path:"/reset-password",component:It(()=>At(()=>import("./reset-password-D-ToySou.js"),__vite__mapDeps([4,3]))),validateSearch:ul(()=>Ee({token:z().optional(),error:z().optional()}))}),hae=mt({getParentRoute:()=>ma,path:"/auth/$pathname",component:It(()=>At(()=>import("./auth-catchall-C7X3aqDL.js"),[]))}),pae=mt({getParentRoute:()=>ma,path:"/oauth/callback",component:It(()=>At(()=>import("./oauth-callback-gQD649Ih.js"),[]))}),mae=mt({getParentRoute:()=>ma,path:"/oauth/callback/ai-provider",component:It(()=>At(()=>import("./oauth-callback-ai-provider-Chxdycb_.js"),[]))}),rE=mt({getParentRoute:()=>ma,id:"shell",component:It(()=>At(()=>import("./shell-layout-aUES-kFD.js").then(e=>e.s),__vite__mapDeps([5,6,7,8,9,10,11,12,13,14])))}),gae=mt({getParentRoute:()=>rE,path:"/",beforeLoad:async()=>{const{data:e}=await Mg.organization.list();if(!e)return;const t=localStorage.getItem(Rg.lastOrgSlug());if(t){if(e.some(i=>i.slug===t))throw Oc({to:"/$org",params:{org:t}});localStorage.removeItem(Rg.lastOrgSlug())}const n=e[0];throw Oc(n?{to:"/$org",params:{org:n.slug}}:{to:"/onboarding"})}}),vae=mt({getParentRoute:()=>ma,path:"/onboarding",beforeLoad:async()=>{const{data:e}=await Mg.organization.list();if(e&&e.length>0)throw Oc({to:"/"})},component:It(()=>At(()=>import("./onboarding-DQPmRIcx.js"),__vite__mapDeps([15,8,3,16,17,18,19])))}),iE=mt({getParentRoute:()=>rE,path:"/$org",component:It(()=>At(()=>import("./org-layout-Dn0dw0VQ.js"),[]))}),oE=mt({getParentRoute:()=>iE,id:"org-shell",component:It(()=>At(()=>import("./index-BXqhvHqj.js"),__vite__mapDeps([20,21,22,7,23,24,25,26,27,28,29,30,31,32,17,18,1,33,34,35,36,37,19,38,39,14,40,41,42,43,44,45,46,47,5,6,8,9,10,11,12,13,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,16,3,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104])))}),sE=mt({getParentRoute:()=>oE,id:"agent-shell",component:It(()=>At(()=>import("./index-D4EXGfoG.js"),__vite__mapDeps([105,68,6,7,69,3,70,10,11,71,72,55,28,73,38,74,1,14,24,25,26,27,29,30,31,32,17,18,33,34,35,36,37,19,21,22,39,40,41,42,43,44,45,46,47,75,76,77,62,59,67,54,56,57,58,9,12,5,8,13,48,49,50,51,52,53,78,65,16,79,80,81,82,60,83,84,85,63,64,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,106,107,61,23,66,101,102,103,104,108,109,110,111,112,113,114,115,116])))}),_ae=Ee({virtualmcpid:z().optional(),tab:z().optional(),main:z().optional(),id:z().optional(),toolName:z().optional(),tasks:St().optional(),mainOpen:St().optional(),chat:St().optional(),autosend:z().optional()}),O6=mt({getParentRoute:()=>sE,path:"/$taskId",validateSearch:_ae,component:()=>null}),yae=mt({getParentRoute:()=>oE,path:"/",component:It(()=>At(()=>import("./index-BRREdYdm.js"),__vite__mapDeps([117,59,36,24,25,26,27,28,29,30,31,32,17,18,1,33,34,35,37,19,38,21,22,7,39,14,40,41,42,43,44,45,46,47,60,11,55,10,12,71,72,6,73,74,70,75,76,77,62,67,68,69,3,54,56,57,58,9,5,8,13,48,49,50,51,52,53,78,65,16,79,80,81,82,83,84,85,63,64,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,102])))}),Pn=mt({getParentRoute:()=>iE,path:"/settings",component:It(()=>At(()=>import("./settings-layout-DrKWvZnz.js"),__vite__mapDeps([118,21,22,7,29,32,17,33,14,44,46,47,108,89,57,58])))}),bae=mt({getParentRoute:()=>Pn,path:"/",beforeLoad:({params:e})=>{throw Oc({to:"/$org/settings/general",params:{org:e.org}})},component:()=>null}),wae=mt({getParentRoute:()=>Pn,path:"/connections",component:It(()=>At(()=>import("./connections-Cvi8bJGK.js"),__vite__mapDeps([119,76,77,120,79,1,33,35,27,22,113,96,115,38,95,91,90,92,70,10,11,12,93,94,75,85,59,36,24,25,26,28,29,30,31,32,17,18,34,37,19,21,7,39,14,40,41,42,43,44,45,46,47,103,121,64,99,122,123,74,6,62,65,16,3,80,97,55,98]))),validateSearch:ul(()=>Ee({action:dn(["create"]).optional(),tab:dn(["all","connected"]).optional()}))}),Sae=mt({getParentRoute:()=>Pn,path:"/connections/$appSlug",component:It(()=>At(()=>import("./connection-detail-BvIlLD4t.js"),__vite__mapDeps([124,76,77,103,98,3,42,45,125,11,67,24,25,26,27,28,29,30,31,32,17,18,1,33,34,35,36,37,19,38,21,22,7,39,14,40,41,43,44,46,47,70,10,126,127,75,92,12,80,107,61,55,102,72,111,96,53,128,129,63,78,59,65,16,121,64,130,131,90,73,85,79]))),validateSearch:ul(()=>Ee({tab:z().optional()}))}),Eae=mt({getParentRoute:()=>Pn,path:"/connections/$appSlug/$collectionName/$itemId",component:It(()=>At(()=>import("./collection-detail-BubZksKa.js"),__vite__mapDeps([132,103,10,11,65,16,3,97,130,21,22,7,133,126,77,127,55,134,49,109,24,25,26,27,28,29,30,31,32,17,18,1,33,34,35,36,37,19,38,39,14,40,41,42,43,44,45,46,47,96,80,113,70,67,6,88,79,59,112,66,135,58,53,125,75,76,92,12,107,61,102,72,90,111,52,54,56,57,9,5,8,13]))),validateSearch:ul(()=>Ee({replayId:z().optional()}))}),xae=mt({getParentRoute:()=>Pn,path:"/monitor",component:It(()=>At(()=>import("./index-D-vg00dg.js"),__vite__mapDeps([136,115,38,21,22,7,103,96,61,1,30,41,24,25,26,27,28,29,31,32,17,18,33,34,35,36,37,19,39,14,40,42,43,44,45,46,47,134,49,128,129,70,10,11,55,3,74,106,107,80,112,97,95,69,16,59,63,85,131,127,67,90,100,94,137,99,93,48,50,51,6,52,53,54,56,57,58,9,12,5,8,13,104]))),validateSearch:ul(()=>Ee({tab:dn(["overview","audit","threads"]).default("overview"),from:z().default("now-30m"),to:z().default("now"),connectionId:Ie(z()).optional().default([]),virtualMcpId:Ie(z()).optional().default([]),tool:z().default(""),status:dn(["all","success","errors"]).default("all"),search:z().default(""),page:St().optional(),streaming:Pt().default(!0),propertyFilters:z().default(""),hideSystem:Pt().default(!1)}))}),Rae=mt({getParentRoute:()=>Pn,path:"/general",component:It(()=>At(()=>import("./general-Dwl_RFxT.js"),__vite__mapDeps([138,21,22,7,129,63,46,3,84,85,31,139,87,11,69,101,38,55,10,61,60,24,25,26,27,28,29,30,32,17,18,1,33,34,35,36,37,19,39,14,40,41,42,43,44,45,47,59,12])))}),Oae=mt({getParentRoute:()=>Pn,path:"/features",component:It(()=>At(()=>import("./features-CBSonKCO.js"),__vite__mapDeps([140,21,22,7,12,11,69,36,84,85,31])))}),Tae=mt({getParentRoute:()=>Pn,path:"/brand-context",component:It(()=>At(()=>import("./brand-context-BRZXdXIg.js"),__vite__mapDeps([141,11,1,33,37,39,42,45,7,47,64,3,97,21,22,87])))}),Cae=mt({getParentRoute:()=>Pn,path:"/ai-providers",component:It(()=>At(()=>import("./ai-providers-ChfcKFAa.js"),__vite__mapDeps([142,82,74,1,3,6,7,62,22,80,34,60,26,28,38,43,56,11,54,55,10,57,58,9,12,83,47,25,18,45,21,84,85,31,69,81,63,46,64,86,51,87])))}),Aae=mt({getParentRoute:()=>Pn,path:"/members",component:It(()=>At(()=>import("./members-cTtXQ1OM.js"),__vite__mapDeps([143,120,79,1,33,35,27,22,113,96,115,38,21,7,144,137,103,6,65,16,80,34,97,129,145,128,11,64,63,46,85,44,45,74,106,107,61,42])))}),Iae=mt({getParentRoute:()=>Pn,path:"/roles",component:It(()=>At(()=>import("./roles-CxEY0wcy.js"),__vite__mapDeps([146,145,129,96,64,79,1,33,35,14,42,45,144,137,27,21,22,7,103,115,38,83,59,36,24,25,26,28,29,30,31,32,17,18,34,37,19,39,40,41,43,44,46,47,99,74,100,94,11,73,128,70,10,56,63,69,84,85]))),validateSearch:ul(()=>Ee({role:z().optional()}))}),Mae=mt({getParentRoute:()=>Pn,path:"/sso",component:It(()=>At(()=>import("./sso-BGkz0eQv.js"),__vite__mapDeps([147,139,87,11,69,84,85,31,21,22,7,3,13,45])))}),Pae=mt({getParentRoute:()=>Pn,path:"/profile",component:It(()=>At(()=>import("./profile-Dt2FmPx9.js"),__vite__mapDeps([148,21,22,7,63,46,69,80,1,34,81,3,40,41,89,66,84,85,31])))}),Nae=mt({getParentRoute:()=>Pn,path:"/store",component:It(()=>At(()=>import("./store-VBma9EJF.js"),__vite__mapDeps([149,25,33,42,45,3,69,60,63,46,61,70,10,11,21,22,7,92,12,84,85,31])))}),kae=mt({getParentRoute:()=>Pn,path:"/registry",component:It(()=>At(()=>import("./registry-mlXjwmt-.js"),[]))}),Dae=mt({getParentRoute:()=>Pn,path:"/store/registry",component:It(()=>At(()=>import("./store-registry-CvC5bBZ_.js"),[]))}),Lae=mt({getParentRoute:()=>Pn,path:"/workflows",component:It(()=>At(()=>import("./workflow-CAX5kqLQ.js"),__vite__mapDeps([150,11,76,77,120,79,1,33,35,27,22,113,96,73,38,85,59,36,24,25,26,28,29,30,31,32,17,18,34,37,19,21,7,39,14,40,41,42,43,44,45,46,47,144,137,135,110,63,103,122,123,90,64,10,70,130])))}),$ae=mt({getParentRoute:()=>Pn,path:"/workflows/$itemId",component:It(()=>At(()=>import("./workflow-detail-B07fAcdT.js"),__vite__mapDeps([151,133,126,11,77,127,55,10,134,49,109,24,25,26,27,28,29,30,31,32,17,18,1,33,34,35,36,37,19,38,21,22,7,39,14,40,41,42,43,44,45,46,47,96,80,113,130,70,67,6,88,79,59,112,66,135,58,3])))}),jae=mt({getParentRoute:()=>sE,path:"/plugins/$pluginId",component:It(()=>At(()=>import("./org-plugin-layout-CXdSKJr7.js"),__vite__mapDeps([152,153,70,10,11,43,21,22,7])))}),Uae=mt({getParentRoute:()=>Pn,path:"/agents",component:It(()=>At(()=>import("./agents-list-CRVayb3p.js"),__vite__mapDeps([154,79,1,33,35,17,71,11,72,55,10,6,7,28,73,38,74,70,14,24,25,26,27,29,30,31,32,18,34,36,37,19,21,22,39,40,41,42,43,44,45,46,47,75,76,77,62,59,67,85,86,51,103,102,64,115])))}),zae=mt({getParentRoute:()=>Pn,path:"/automations",component:It(()=>At(()=>import("./automations-B-eBYWeh.js"),__vite__mapDeps([155,42,47,115,38,21,22,7,103,114,64,79,1,33,35,24,25,26,27,28,29,30,31,32,17,18,34,36,37,19,39,14,40,41,43,44,45,46,55,10,11,72])))}),T6=mt({getParentRoute:()=>O6,path:"/$pluginId",component:It(()=>At(()=>import("./dynamic-plugin-layout-ChPVfvIn.js"),__vite__mapDeps([156,153,70,10,11,43,21,22,7])))}),Fae=[],Bae=[],Vae=[],C6=[];uae.forEach(e=>{if(!e.setup)return;const t={parentRoute:T6,routing:{createRoute:mt,lazyRouteComponent:It},registerRootSidebarItem:n=>Fae.push({pluginId:e.id,...n}),registerSidebarGroup:n=>Bae.push({pluginId:e.id,...n}),registerSettingsSidebarItem:n=>Vae.push({pluginId:e.id,...n}),registerPluginRoutes:n=>{C6.push(...n)}};e.setup(t)});const qae=T6.addChildren(C6),Hae=Pn.addChildren([bae,wae,Sae,Eae,Uae,zae,xae,Rae,Oae,Tae,Cae,Aae,Iae,Mae,Pae,Nae,Dae,kae,Lae,$ae]),Gae=O6.addChildren([qae]),Kae=sE.addChildren([Gae,jae]),Zae=oE.addChildren([yae,Kae]),Yae=iE.addChildren([Zae,Hae]),Wae=rE.addChildren([gae,Yae]),Qae=ma.addChildren([Wae,vae,dae,fae,hae,pae,mae]),Xae=u7({routeTree:Qae,defaultNotFoundComponent:()=>T.jsx("div",{className:"flex h-full items-center justify-center",children:T.jsxs("div",{className:"flex flex-col items-center gap-4 p-8",children:[T.jsx("h3",{className:"text-lg font-medium text-foreground",children:"Page not found"}),T.jsx("p",{className:"text-sm text-muted-foreground text-center max-w-[300px]",children:"The page you are looking for does not exist or has been moved."}),T.jsx("button",{type:"button",onClick:()=>window.history.back(),className:"text-sm text-primary hover:underline",children:"Go back"})]})})}),Jae=document.getElementById("root");Q$.createRoot(Jae).render(T.jsx(I.StrictMode,{children:T.jsx(h7,{router:Xae})}));export{KM as $,Mle as A,W1 as B,To as C,tG as D,ice as E,ece as F,nce as G,Ee as H,St as I,z as J,GM as K,fw as L,$D as M,cle as N,mP as O,Yse as P,Gse as Q,Rg as R,jD as S,LJ as T,Yr as U,Jle as V,Fae as W,Bae as X,oae as Y,DD as Z,At as _,kj as a,Ye as a$,sle as a0,xo as a1,eee as a2,ht as a3,no as a4,cW as a5,uW as a6,yn as a7,lt as a8,dW as a9,t3 as aA,sY as aB,cY as aC,aY as aD,ZZ as aE,Ole as aF,Vae as aG,tle as aH,Ut as aI,Xt as aJ,Ie as aK,JH as aL,Xle as aM,Qle as aN,HS as aO,vg as aP,DY as aQ,x3 as aR,X4 as aS,lf as aT,ta as aU,kY as aV,ds as aW,y4 as aX,jw as aY,Wr as aZ,Pt as a_,fW as aa,mW as ab,bW as ac,I3 as ad,fl as ae,hW as af,pW as ag,gW as ah,vW as ai,_W as aj,yW as ak,wW as al,EW as am,xW as an,Ig as ao,dn as ap,fC as aq,Q1 as ar,iY as as,ro as at,Kd as au,Ww as av,jc as aw,aa as ax,fs as ay,io as az,Mg as b,nZ as b$,RV as b0,BP as b1,pw as b2,Rk as b3,Tk as b4,YW as b5,Wn as b6,wQ as b7,d3 as b8,Q4 as b9,wre as bA,xre as bB,Dre as bC,Zre as bD,Qre as bE,bre as bF,Sre as bG,Rre as bH,Ore as bI,Lre as bJ,qre as bK,qle as bL,uae as bM,pV as bN,ule as bO,mle as bP,gq as bQ,ul as bR,VN as bS,GN as bT,fle as bU,rce as bV,rG as bW,nG as bX,u4 as bY,pf as bZ,eZ as b_,rae as ba,la as bb,ne as bc,ele as bd,iZ as be,Lle as bf,uP as bg,ca as bh,as as bi,Dle as bj,$le as bk,rn as bl,dle as bm,qN as bn,zre as bo,Fre as bp,VS as bq,l6 as br,qS as bs,nv as bt,GD as bu,tie as bv,ZD as bw,Wre as bx,cie as by,yre as bz,nae as c,n6 as c$,rZ as c0,af as c1,qM as c2,Aj as c3,S3 as c4,wY as c5,Fw as c6,h3 as c7,k4 as c8,Bw as c9,Wle as cA,eoe as cB,pt as cC,Hoe as cD,to as cE,XW as cF,fP as cG,Ale as cH,oZ as cI,sZ as cJ,tZ as cK,aZ as cL,Bz as cM,HD as cN,YD as cO,XD as cP,e6 as cQ,t6 as cR,r6 as cS,Ble as cT,Vle as cU,zle as cV,Fle as cW,Jne as cX,Ule as cY,WD as cZ,JD as c_,Gd as ca,R4 as cb,zw as cc,Uw as cd,SY as ce,EY as cf,oQ as cg,sQ as ch,iQ as ci,Or as cj,lle as ck,QH as cl,YH as cm,HH as cn,n4 as co,HV as cp,Sw as cq,EV as cr,hle as cs,ZV as ct,xw as cu,Ew as cv,XV as cw,ple as cx,Yle as cy,_se as cz,dw as d,Gle as d0,QD as d1,Zle as d2,kS as d3,fre as d4,jle as d5,qD as d6,Die as d7,Vre as d8,Kle as d9,Tie as da,Iie as db,die as dc,uie as dd,Hle as de,gle as df,BW as dg,VW as dh,GW as di,qW as dj,HW as dk,yle as dl,ble as dm,xle as dn,Rle as dp,Tle as dq,Ele as dr,Sle as ds,wle as dt,_le as du,vle as dv,UM as dw,yO as dx,rle as dy,nle as dz,Ro as e,rf as f,uw as g,Ple as h,Ile as i,T as j,Nle as k,LD as l,tce as m,Nj as n,nw as o,PM as p,Zn as q,I as r,Xne as s,kle as t,ale as u,ole as v,HM as w,RT as x,NS as y,Oo as z};
|
|
171
|
+
`),document.head.appendChild(r)}}function Jse(e){const t=Ro.c(9),{children:n}=e;let r;t[0]===Symbol.for("react.memo_cache_sentinel")?(r={queryKey:GM.publicConfig(),queryFn:Qse,staleTime:1/0},t[0]=r):r=t[0];const{data:i}=HM(r),[s]=Yse();i.internalUrl&&Use(i.internalUrl);let l,c;t[1]!==i.theme?(l=()=>{Xse(i.theme)},c=[i.theme],t[1]=i.theme,t[2]=l,t[3]=c):(l=t[2],c=t[3]),I.useLayoutEffect(l,c);let d,f;t[4]!==s.theme?(d=()=>{const p=document.documentElement;if(s.theme==="dark"){p.classList.add("dark");return}if(s.theme==="light"){p.classList.remove("dark");return}const g=window.matchMedia("(prefers-color-scheme: dark)"),v=b=>p.classList.toggle("dark",b);v(g.matches);const y=b=>v(b.matches);return g.addEventListener("change",y),()=>g.removeEventListener("change",y)},f=[s.theme],t[4]=s.theme,t[5]=d,t[6]=f):(d=t[5],f=t[6]),I.useLayoutEffect(d,f);let m;return t[7]!==n?(m=T.jsx(T.Fragment,{children:n}),t[7]=n,t[8]=m):m=t[8],m}const eae=new bj({defaultOptions:{queries:{staleTime:6e4,refetchOnWindowFocus:!0,refetchOnMount:!0,retry:1,gcTime:300*1e3}}});function tae(e){const t=Ro.c(4),{children:n}=e;let r;t[0]===Symbol.for("react.memo_cache_sentinel")?(r=T.jsx(hH,{}),t[0]=r):r=t[0];let i;t[1]===Symbol.for("react.memo_cache_sentinel")?(i=T.jsx(jD,{}),t[1]=i):i=t[1];let s;return t[2]!==n?(s=T.jsxs(wj,{client:eae,children:[r,T.jsx(I.Suspense,{fallback:i,children:T.jsx(Jse,{children:T.jsx(Lj,{children:T.jsx(Fee,{children:T.jsx(Wne,{children:n})})})})})]}),t[2]=n,t[3]=s):s=t[3],s}function nae(...e){return BP(pw(e))}const rae=y4("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-lg text-sm transition-all disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4 shrink-0 [&_svg]:shrink-0 outline-none focus-visible:border-ring focus-visible:ring-ring/20 focus-visible:ring-[2px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive",{variants:{variant:{default:"bg-primary text-primary-foreground hover:bg-primary/80",destructive:"bg-destructive text-destructive-foreground hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/60",outline:"text-foreground bg-background hover:bg-accent hover:text-accent-foreground dark:bg-input/30 dark:hover:bg-input/50 card-shadow",secondary:"bg-secondary text-secondary-foreground hover:bg-secondary/80",success:"bg-success text-success-foreground hover:bg-success/90 focus-visible:ring-success/20 dark:focus-visible:ring-success/40",special:"bg-special text-special-foreground hover:bg-special/90 focus-visible:ring-special/20 dark:focus-visible:ring-special/40",ghost:"hover:bg-accent hover:text-accent-foreground dark:hover:bg-accent/50",link:"text-foreground/80 hover:text-foreground"},size:{default:"h-8 px-3 has-[>svg]:px-2.5",sm:"h-7 gap-1.5 px-2.5 has-[>svg]:px-2",xs:"h-6 gap-1 px-1.5 text-xs has-[>svg]:px-1",lg:"h-10 px-3.5 has-[>svg]:px-3",icon:"size-8","icon-sm":"size-7"}},defaultVariants:{variant:"default",size:"default"}});function W1(e){const t=Ro.c(14);let n,r,i,s,l;t[0]!==e?({className:n,variant:l,size:i,asChild:s,...r}=e,t[0]=e,t[1]=n,t[2]=r,t[3]=i,t[4]=s,t[5]=l):(n=t[1],r=t[2],i=t[3],s=t[4],l=t[5]);const d=(s===void 0?!1:s)?jw:"button";let f;t[6]!==n||t[7]!==i||t[8]!==l?(f=nae(rae({variant:l,size:i,className:n})),t[6]=n,t[7]=i,t[8]=l,t[9]=f):f=t[9];let m;return t[10]!==d||t[11]!==r||t[12]!==f?(m=T.jsx(d,{"data-slot":"button",className:f,...r}),t[10]=d,t[11]=r,t[12]=f,t[13]=m):m=t[13],m}const CM="__mesh_chunk_reload_ts";function AM(e){if(!e)return!1;const t=e.message||"";return t.includes("Failed to fetch dynamically imported module")||t.includes("Importing a module script failed")||t.includes("error loading dynamically imported module")||t.includes("Failed to fetch")&&e.name==="TypeError"}class ice extends I.Component{state={hasError:!1,error:null};static getDerivedStateFromError(t){return{hasError:!0,error:t}}componentDidCatch(t,n){console.error("Uncaught error:",t,n),kD(t,{boundary:"default",error_name:t.name,error_message:t.message,component_stack:n.componentStack??null,route:typeof window<"u"?window.location.pathname:null})}resetError=()=>{this.setState({hasError:!1,error:null})};render(){if(this.state.hasError){const{fallback:t}=this.props;return typeof t=="function"?t({error:this.state.error,resetError:this.resetError}):t!==void 0?t:T.jsxs("div",{className:"flex-1 flex flex-col items-center justify-center h-full p-6 text-center space-y-4",children:[T.jsx("div",{className:"bg-destructive/10 p-3 rounded-full",children:T.jsx(NS,{className:"h-6 w-6 text-destructive"})}),T.jsxs("div",{className:"space-y-2",children:[T.jsx("h3",{className:"text-lg font-medium",children:"Something went wrong"}),T.jsx("p",{className:"text-sm text-muted-foreground max-w-xs mx-auto",children:this.state.error?.message||"An unexpected error occurred"})]}),T.jsx(W1,{variant:"outline",onClick:this.resetError,children:"Try again"})]})}return this.props.children}}class iae extends I.Component{state={hasError:!1,error:null};static getDerivedStateFromError(t){return{hasError:!0,error:t}}componentDidCatch(t,n){console.error("Uncaught error:",t,n);const r=AM(t);if(kD(t,{boundary:"chunk_root",is_chunk_load_error:r,error_name:t.name,error_message:t.message,component_stack:n.componentStack??null,route:typeof window<"u"?window.location.pathname:null}),!r)return;const i=sessionStorage.getItem(CM),s=Date.now();(!i||s-Number(i)>1e4)&&(sessionStorage.setItem(CM,String(s)),window.location.reload())}render(){return this.state.hasError&&AM(this.state.error)?T.jsxs("div",{className:"flex min-h-dvh flex-col items-center justify-center p-6 text-center space-y-4",children:[T.jsx("div",{className:"bg-primary/10 p-3 rounded-full",children:T.jsx($D,{className:"h-6 w-6 text-primary"})}),T.jsxs("div",{className:"space-y-2",children:[T.jsx("h3",{className:"text-lg font-medium",children:"New version available"}),T.jsx("p",{className:"text-sm text-muted-foreground max-w-xs mx-auto",children:"A new version has been deployed. Refresh to continue."})]}),T.jsx(W1,{onClick:()=>window.location.reload(),children:"Refresh"})]}):this.state.hasError?T.jsxs("div",{className:"flex min-h-dvh flex-col items-center justify-center p-6 text-center space-y-4",children:[T.jsx("div",{className:"bg-destructive/10 p-3 rounded-full",children:T.jsx(NS,{className:"h-6 w-6 text-destructive"})}),T.jsxs("div",{className:"space-y-2",children:[T.jsx("h3",{className:"text-lg font-medium",children:"Something went wrong"}),T.jsx("p",{className:"text-sm text-muted-foreground max-w-xs mx-auto",children:this.state.error?.message||"An unexpected error occurred"})]}),T.jsx(W1,{variant:"outline",onClick:()=>this.setState({hasError:!1,error:null}),children:"Try again"})]}):this.props.children}}const oae="MCP Workflows",sae="Create workflows using your MCP tools",aae=I.lazy(()=>At(()=>import("./plugin-header-CCyEhf-g.js"),__vite__mapDeps([0,1]))),lae=I.lazy(()=>At(()=>import("./plugin-empty-state-BhaTB3gV.js"),[])),cae={id:oae,description:sae,bindingName:"WORKFLOW",renderHeader:e=>T.jsx(aae,{...e}),renderEmptyState:()=>T.jsx(lae,{}),setup:e=>{e.registerSettingsSidebarItem({key:"workflows",icon:T.jsx(DD,{size:14}),label:"MCP Workflows",to:"/$org/settings/workflows"})}},uae=[cae],ma=t7({component:()=>T.jsx(iae,{children:T.jsx(tae,{children:T.jsx(I.Suspense,{fallback:T.jsx(jD,{}),children:T.jsx(mP,{})})})})}),dae=mt({getParentRoute:()=>ma,path:"/login",component:It(()=>At(()=>import("./login-qRSyAZ_o.js"),__vite__mapDeps([2,3]))),validateSearch:ul(()=>Ee({next:z().optional(),client_id:z().optional(),redirect_uri:z().optional(),response_type:z().optional(),state:z().optional(),scope:z().optional(),code_challenge:z().optional(),code_challenge_method:z().optional()}))}),fae=mt({getParentRoute:()=>ma,path:"/reset-password",component:It(()=>At(()=>import("./reset-password-9vHhhDeq.js"),__vite__mapDeps([4,3]))),validateSearch:ul(()=>Ee({token:z().optional(),error:z().optional()}))}),hae=mt({getParentRoute:()=>ma,path:"/auth/$pathname",component:It(()=>At(()=>import("./auth-catchall-D2VjSNCY.js"),[]))}),pae=mt({getParentRoute:()=>ma,path:"/oauth/callback",component:It(()=>At(()=>import("./oauth-callback-D2FTNcui.js"),[]))}),mae=mt({getParentRoute:()=>ma,path:"/oauth/callback/ai-provider",component:It(()=>At(()=>import("./oauth-callback-ai-provider-Kb5ulQoF.js"),[]))}),rE=mt({getParentRoute:()=>ma,id:"shell",component:It(()=>At(()=>import("./shell-layout-C--vXF8e.js").then(e=>e.s),__vite__mapDeps([5,6,7,8,9,10,11,12,13,14])))}),gae=mt({getParentRoute:()=>rE,path:"/",beforeLoad:async()=>{const{data:e}=await Mg.organization.list();if(!e)return;const t=localStorage.getItem(Rg.lastOrgSlug());if(t){if(e.some(i=>i.slug===t))throw Oc({to:"/$org",params:{org:t}});localStorage.removeItem(Rg.lastOrgSlug())}const n=e[0];throw Oc(n?{to:"/$org",params:{org:n.slug}}:{to:"/onboarding"})}}),vae=mt({getParentRoute:()=>ma,path:"/onboarding",beforeLoad:async()=>{const{data:e}=await Mg.organization.list();if(e&&e.length>0)throw Oc({to:"/"})},component:It(()=>At(()=>import("./onboarding-D5RrB-Tz.js"),__vite__mapDeps([15,8,3,16,17,18,19])))}),iE=mt({getParentRoute:()=>rE,path:"/$org",component:It(()=>At(()=>import("./org-layout-WhfAqk0U.js"),[]))}),oE=mt({getParentRoute:()=>iE,id:"org-shell",component:It(()=>At(()=>import("./index-DEcDMso8.js"),__vite__mapDeps([20,21,22,7,23,24,25,26,27,28,29,30,31,32,17,18,1,33,34,35,36,37,19,38,39,14,40,41,42,43,44,45,46,47,5,6,8,9,10,11,12,13,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,16,3,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104])))}),sE=mt({getParentRoute:()=>oE,id:"agent-shell",component:It(()=>At(()=>import("./index-MijQYZKH.js"),__vite__mapDeps([105,68,6,7,69,3,70,10,11,71,72,55,28,73,38,74,1,14,24,25,26,27,29,30,31,32,17,18,33,34,35,36,37,19,21,22,39,40,41,42,43,44,45,46,47,75,76,77,62,59,67,54,56,57,58,9,12,5,8,13,48,49,50,51,52,53,78,65,16,79,80,81,82,60,83,84,85,63,64,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,106,107,61,23,66,101,102,103,104,108,109,110,111,112,113,114,115,116])))}),_ae=Ee({virtualmcpid:z().optional(),tab:z().optional(),main:z().optional(),id:z().optional(),toolName:z().optional(),tasks:St().optional(),mainOpen:St().optional(),chat:St().optional(),autosend:z().optional()}),O6=mt({getParentRoute:()=>sE,path:"/$taskId",validateSearch:_ae,component:()=>null}),yae=mt({getParentRoute:()=>oE,path:"/",component:It(()=>At(()=>import("./index-ChEPbjgU.js"),__vite__mapDeps([117,59,36,24,25,26,27,28,29,30,31,32,17,18,1,33,34,35,37,19,38,21,22,7,39,14,40,41,42,43,44,45,46,47,60,11,55,10,12,71,72,6,73,74,70,75,76,77,62,67,68,69,3,54,56,57,58,9,5,8,13,48,49,50,51,52,53,78,65,16,79,80,81,82,83,84,85,63,64,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,102])))}),Pn=mt({getParentRoute:()=>iE,path:"/settings",component:It(()=>At(()=>import("./settings-layout-D4i1woj8.js"),__vite__mapDeps([118,21,22,7,29,32,17,33,14,44,46,47,108,89,57,58])))}),bae=mt({getParentRoute:()=>Pn,path:"/",beforeLoad:({params:e})=>{throw Oc({to:"/$org/settings/general",params:{org:e.org}})},component:()=>null}),wae=mt({getParentRoute:()=>Pn,path:"/connections",component:It(()=>At(()=>import("./connections-ZzdUySRj.js"),__vite__mapDeps([119,76,77,120,79,1,33,35,27,22,113,96,115,38,95,91,90,92,70,10,11,12,93,94,75,85,59,36,24,25,26,28,29,30,31,32,17,18,34,37,19,21,7,39,14,40,41,42,43,44,45,46,47,103,121,64,99,122,123,74,6,62,65,16,3,80,97,55,98]))),validateSearch:ul(()=>Ee({action:dn(["create"]).optional(),tab:dn(["all","connected"]).optional()}))}),Sae=mt({getParentRoute:()=>Pn,path:"/connections/$appSlug",component:It(()=>At(()=>import("./connection-detail-w6Hswx6I.js"),__vite__mapDeps([124,76,77,103,98,3,42,45,125,11,67,24,25,26,27,28,29,30,31,32,17,18,1,33,34,35,36,37,19,38,21,22,7,39,14,40,41,43,44,46,47,70,10,126,127,75,92,12,80,107,61,55,102,72,111,96,53,128,129,63,78,59,65,16,121,64,130,131,90,73,85,79]))),validateSearch:ul(()=>Ee({tab:z().optional()}))}),Eae=mt({getParentRoute:()=>Pn,path:"/connections/$appSlug/$collectionName/$itemId",component:It(()=>At(()=>import("./collection-detail-CuW2SK0p.js"),__vite__mapDeps([132,103,10,11,65,16,3,97,130,21,22,7,133,126,77,127,55,134,49,109,24,25,26,27,28,29,30,31,32,17,18,1,33,34,35,36,37,19,38,39,14,40,41,42,43,44,45,46,47,96,80,113,70,67,6,88,79,59,112,66,135,58,53,125,75,76,92,12,107,61,102,72,90,111,52,54,56,57,9,5,8,13]))),validateSearch:ul(()=>Ee({replayId:z().optional()}))}),xae=mt({getParentRoute:()=>Pn,path:"/monitor",component:It(()=>At(()=>import("./index-C89IjMPF.js"),__vite__mapDeps([136,115,38,21,22,7,103,96,61,1,30,41,24,25,26,27,28,29,31,32,17,18,33,34,35,36,37,19,39,14,40,42,43,44,45,46,47,134,49,128,129,70,10,11,55,3,74,106,107,80,112,97,95,69,16,59,63,85,131,127,67,90,100,94,137,99,93,48,50,51,6,52,53,54,56,57,58,9,12,5,8,13,104]))),validateSearch:ul(()=>Ee({tab:dn(["overview","audit","threads"]).default("overview"),from:z().default("now-30m"),to:z().default("now"),connectionId:Ie(z()).optional().default([]),virtualMcpId:Ie(z()).optional().default([]),tool:z().default(""),status:dn(["all","success","errors"]).default("all"),search:z().default(""),page:St().optional(),streaming:Pt().default(!0),propertyFilters:z().default(""),hideSystem:Pt().default(!1)}))}),Rae=mt({getParentRoute:()=>Pn,path:"/general",component:It(()=>At(()=>import("./general-GwVabcuc.js"),__vite__mapDeps([138,21,22,7,129,63,46,3,84,85,31,139,87,11,69,101,38,55,10,61,60,24,25,26,27,28,29,30,32,17,18,1,33,34,35,36,37,19,39,14,40,41,42,43,44,45,47,59,12])))}),Oae=mt({getParentRoute:()=>Pn,path:"/features",component:It(()=>At(()=>import("./features-BN-47yPZ.js"),__vite__mapDeps([140,21,22,7,12,11,69,36,84,85,31])))}),Tae=mt({getParentRoute:()=>Pn,path:"/brand-context",component:It(()=>At(()=>import("./brand-context-DawPDVwK.js"),__vite__mapDeps([141,11,1,33,37,39,42,45,7,47,64,3,97,21,22,87])))}),Cae=mt({getParentRoute:()=>Pn,path:"/ai-providers",component:It(()=>At(()=>import("./ai-providers-cvctUcOl.js"),__vite__mapDeps([142,82,74,1,3,6,7,62,22,80,34,60,26,28,38,43,56,11,54,55,10,57,58,9,12,83,47,25,18,45,21,84,85,31,69,81,63,46,64,86,51,87])))}),Aae=mt({getParentRoute:()=>Pn,path:"/members",component:It(()=>At(()=>import("./members-D4UY4ei6.js"),__vite__mapDeps([143,120,79,1,33,35,27,22,113,96,115,38,21,7,144,137,103,6,65,16,80,34,97,129,145,128,11,64,63,46,85,44,45,74,106,107,61,42])))}),Iae=mt({getParentRoute:()=>Pn,path:"/roles",component:It(()=>At(()=>import("./roles-D3OPlwRQ.js"),__vite__mapDeps([146,145,129,96,64,79,1,33,35,14,42,45,144,137,27,21,22,7,103,115,38,83,59,36,24,25,26,28,29,30,31,32,17,18,34,37,19,39,40,41,43,44,46,47,99,74,100,94,11,73,128,70,10,56,63,69,84,85]))),validateSearch:ul(()=>Ee({role:z().optional()}))}),Mae=mt({getParentRoute:()=>Pn,path:"/sso",component:It(()=>At(()=>import("./sso-Dud_r3Fd.js"),__vite__mapDeps([147,139,87,11,69,84,85,31,21,22,7,3,13,45])))}),Pae=mt({getParentRoute:()=>Pn,path:"/profile",component:It(()=>At(()=>import("./profile-OzTBu6o-.js"),__vite__mapDeps([148,21,22,7,63,46,69,80,1,34,81,3,40,41,89,66,84,85,31])))}),Nae=mt({getParentRoute:()=>Pn,path:"/store",component:It(()=>At(()=>import("./store-BxxFQfUe.js"),__vite__mapDeps([149,25,33,42,45,3,69,60,63,46,61,70,10,11,21,22,7,92,12,84,85,31])))}),kae=mt({getParentRoute:()=>Pn,path:"/registry",component:It(()=>At(()=>import("./registry-CsXSm8-9.js"),[]))}),Dae=mt({getParentRoute:()=>Pn,path:"/store/registry",component:It(()=>At(()=>import("./store-registry-c5WBQeKh.js"),[]))}),Lae=mt({getParentRoute:()=>Pn,path:"/workflows",component:It(()=>At(()=>import("./workflow-DjrE6MxM.js"),__vite__mapDeps([150,11,76,77,120,79,1,33,35,27,22,113,96,73,38,85,59,36,24,25,26,28,29,30,31,32,17,18,34,37,19,21,7,39,14,40,41,42,43,44,45,46,47,144,137,135,110,63,103,122,123,90,64,10,70,130])))}),$ae=mt({getParentRoute:()=>Pn,path:"/workflows/$itemId",component:It(()=>At(()=>import("./workflow-detail-COUbvzSr.js"),__vite__mapDeps([151,133,126,11,77,127,55,10,134,49,109,24,25,26,27,28,29,30,31,32,17,18,1,33,34,35,36,37,19,38,21,22,7,39,14,40,41,42,43,44,45,46,47,96,80,113,130,70,67,6,88,79,59,112,66,135,58,3])))}),jae=mt({getParentRoute:()=>sE,path:"/plugins/$pluginId",component:It(()=>At(()=>import("./org-plugin-layout-C70m9fD9.js"),__vite__mapDeps([152,153,70,10,11,43,21,22,7])))}),Uae=mt({getParentRoute:()=>Pn,path:"/agents",component:It(()=>At(()=>import("./agents-list-B3NTdokI.js"),__vite__mapDeps([154,79,1,33,35,17,71,11,72,55,10,6,7,28,73,38,74,70,14,24,25,26,27,29,30,31,32,18,34,36,37,19,21,22,39,40,41,42,43,44,45,46,47,75,76,77,62,59,67,85,86,51,103,102,64,115])))}),zae=mt({getParentRoute:()=>Pn,path:"/automations",component:It(()=>At(()=>import("./automations-CENOzqx0.js"),__vite__mapDeps([155,42,47,115,38,21,22,7,103,114,64,79,1,33,35,24,25,26,27,28,29,30,31,32,17,18,34,36,37,19,39,14,40,41,43,44,45,46,55,10,11,72])))}),T6=mt({getParentRoute:()=>O6,path:"/$pluginId",component:It(()=>At(()=>import("./dynamic-plugin-layout-DQ5UtKMf.js"),__vite__mapDeps([156,153,70,10,11,43,21,22,7])))}),Fae=[],Bae=[],Vae=[],C6=[];uae.forEach(e=>{if(!e.setup)return;const t={parentRoute:T6,routing:{createRoute:mt,lazyRouteComponent:It},registerRootSidebarItem:n=>Fae.push({pluginId:e.id,...n}),registerSidebarGroup:n=>Bae.push({pluginId:e.id,...n}),registerSettingsSidebarItem:n=>Vae.push({pluginId:e.id,...n}),registerPluginRoutes:n=>{C6.push(...n)}};e.setup(t)});const qae=T6.addChildren(C6),Hae=Pn.addChildren([bae,wae,Sae,Eae,Uae,zae,xae,Rae,Oae,Tae,Cae,Aae,Iae,Mae,Pae,Nae,Dae,kae,Lae,$ae]),Gae=O6.addChildren([qae]),Kae=sE.addChildren([Gae,jae]),Zae=oE.addChildren([yae,Kae]),Yae=iE.addChildren([Zae,Hae]),Wae=rE.addChildren([gae,Yae]),Qae=ma.addChildren([Wae,vae,dae,fae,hae,pae,mae]),Xae=u7({routeTree:Qae,defaultNotFoundComponent:()=>T.jsx("div",{className:"flex h-full items-center justify-center",children:T.jsxs("div",{className:"flex flex-col items-center gap-4 p-8",children:[T.jsx("h3",{className:"text-lg font-medium text-foreground",children:"Page not found"}),T.jsx("p",{className:"text-sm text-muted-foreground text-center max-w-[300px]",children:"The page you are looking for does not exist or has been moved."}),T.jsx("button",{type:"button",onClick:()=>window.history.back(),className:"text-sm text-primary hover:underline",children:"Go back"})]})})}),Jae=document.getElementById("root");Q$.createRoot(Jae).render(T.jsx(I.StrictMode,{children:T.jsx(h7,{router:Xae})}));export{KM as $,Mle as A,W1 as B,To as C,tG as D,ice as E,ece as F,nce as G,Ee as H,St as I,z as J,GM as K,fw as L,$D as M,cle as N,mP as O,Yse as P,Gse as Q,Rg as R,jD as S,LJ as T,Yr as U,Jle as V,Fae as W,Bae as X,oae as Y,DD as Z,At as _,kj as a,Ye as a$,sle as a0,xo as a1,eee as a2,ht as a3,no as a4,cW as a5,uW as a6,yn as a7,lt as a8,dW as a9,t3 as aA,sY as aB,cY as aC,aY as aD,ZZ as aE,Ole as aF,Vae as aG,tle as aH,Ut as aI,Xt as aJ,Ie as aK,JH as aL,Xle as aM,Qle as aN,HS as aO,vg as aP,DY as aQ,x3 as aR,X4 as aS,lf as aT,ta as aU,kY as aV,ds as aW,y4 as aX,jw as aY,Wr as aZ,Pt as a_,fW as aa,mW as ab,bW as ac,I3 as ad,fl as ae,hW as af,pW as ag,gW as ah,vW as ai,_W as aj,yW as ak,wW as al,EW as am,xW as an,Ig as ao,dn as ap,fC as aq,Q1 as ar,iY as as,ro as at,Kd as au,Ww as av,jc as aw,aa as ax,fs as ay,io as az,Mg as b,nZ as b$,RV as b0,BP as b1,pw as b2,Rk as b3,Tk as b4,YW as b5,Wn as b6,wQ as b7,d3 as b8,Q4 as b9,wre as bA,xre as bB,Dre as bC,Zre as bD,Qre as bE,bre as bF,Sre as bG,Rre as bH,Ore as bI,Lre as bJ,qre as bK,qle as bL,uae as bM,pV as bN,ule as bO,mle as bP,gq as bQ,ul as bR,VN as bS,GN as bT,fle as bU,rce as bV,rG as bW,nG as bX,u4 as bY,pf as bZ,eZ as b_,rae as ba,la as bb,ne as bc,ele as bd,iZ as be,Lle as bf,uP as bg,ca as bh,as as bi,Dle as bj,$le as bk,rn as bl,dle as bm,qN as bn,zre as bo,Fre as bp,VS as bq,l6 as br,qS as bs,nv as bt,GD as bu,tie as bv,ZD as bw,Wre as bx,cie as by,yre as bz,nae as c,n6 as c$,rZ as c0,af as c1,qM as c2,Aj as c3,S3 as c4,wY as c5,Fw as c6,h3 as c7,k4 as c8,Bw as c9,Wle as cA,eoe as cB,pt as cC,Hoe as cD,to as cE,XW as cF,fP as cG,Ale as cH,oZ as cI,sZ as cJ,tZ as cK,aZ as cL,Bz as cM,HD as cN,YD as cO,XD as cP,e6 as cQ,t6 as cR,r6 as cS,Ble as cT,Vle as cU,zle as cV,Fle as cW,Jne as cX,Ule as cY,WD as cZ,JD as c_,Gd as ca,R4 as cb,zw as cc,Uw as cd,SY as ce,EY as cf,oQ as cg,sQ as ch,iQ as ci,Or as cj,lle as ck,QH as cl,YH as cm,HH as cn,n4 as co,HV as cp,Sw as cq,EV as cr,hle as cs,ZV as ct,xw as cu,Ew as cv,XV as cw,ple as cx,Yle as cy,_se as cz,dw as d,Gle as d0,QD as d1,Zle as d2,kS as d3,fre as d4,jle as d5,qD as d6,Die as d7,Vre as d8,Kle as d9,Tie as da,Iie as db,die as dc,uie as dd,Hle as de,gle as df,BW as dg,VW as dh,GW as di,qW as dj,HW as dk,yle as dl,ble as dm,xle as dn,Rle as dp,Tle as dq,Ele as dr,Sle as ds,wle as dt,_le as du,vle as dv,UM as dw,yO as dx,rle as dy,nle as dz,Ro as e,rf as f,uw as g,Ple as h,Ile as i,T as j,Nle as k,LD as l,tce as m,Nj as n,nw as o,PM as p,Zn as q,I as r,Xne as s,kle as t,ale as u,ole as v,HM as w,RT as x,NS as y,Oo as z};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{e as ae,r as R,f as cn,s as lt,j as s,B as ne,x as qe,c as le,ba as Rn,n as Ys,K as At,E as os,d as zs,t as Bt}from"./index-
|
|
1
|
+
import{e as ae,r as R,f as cn,s as lt,j as s,B as ne,x as qe,c as le,ba as Rn,n as Ys,K as At,E as os,d as zs,t as Bt}from"./index-Byh16eae.js";import{S as Bs}from"./search-input-CQG6oP1I.js";import{r as is,c as ls,d as cs,e as ds,P as Ue}from"./index-CO-xtUtF.js";import{E as dn}from"./empty-state-BBjIyjuI.js";import{B as Ke}from"./badge-CqM8ft8a.js";import{b as ct,P as dt,a as ut}from"./popover-DsEUr0UP.js";import{T as Mt,a as kt,b as Ct}from"./tooltip-D6qvPlF4.js";import{i as Ht,t as gt}from"./ChevronDown-ChKIyEYX.js";import{e as un,c as _t,n as Wn}from"./XCircle-CAjnYXMv.js";import{a as Hs}from"./SearchMd-CJRrkj_7.js";import{i as qs}from"./Play-3GU5tyK6.js";import{Y as Vs,Z as Us,x as Ks,X as Gs}from"./agent-icon-2WwvMIOR.js";import{M as An}from"./monaco-editor-BOg-v1iU.js";import{u as Qs}from"./use-members-BbBWLiDA.js";import{u as $n}from"./use-connection-kAb3_1aU.js";import{S as mn,u as fn,i as Js,g as Xs,d as Zs}from"./constants-DoDQutb_.js";import{b as ea}from"./use-virtual-mcp-CriuigLx.js";import{n as Ge}from"./Container-BmeFpotW.js";import{c as ta}from"./XClose-BD0-I41d.js";import{s as na}from"./Plus-DNS-JW4m.js";import{s as sa}from"./Trash01-DygHC0Or.js";import{I as pt}from"./input-Vak5VRqX.js";import{C as Yn}from"./checkbox-q02yCTCr.js";import{d as aa,C as ra,b as zn,e as oa,a as ia,f as la}from"./command-Dm5FUYzy.js";import{a as Pt,b as Tt,c as Ot,d as Re,S as Ft}from"./select-CBnW7xgF.js";import{S as ca}from"./scroll-area-CSvHQmLp.js";import{n as da}from"./ZapSquare-DJjYeaGT.js";import{i as ua}from"./ChevronRight-CfxVPCJg.js";import{T as ma}from"./textarea-BCuCo32x.js";import{C as us}from"./collection-tabs-yGBJSAc8.js";import{S as fa}from"./switch-9ZAU9Wsd.js";import{L as ha}from"./label-BNsXufvU.js";import{I as ze}from"./integration-icon-qqFh_bDX.js";import{A as $t}from"./avatar-XLD41nT1.js";import{C as ms}from"./card-BromnR4D.js";import{K as st}from"./monitoring-stats-row-xiPLeKvD.js";import{c as fs}from"./use-mcp-tools-Bbkq91Xc.js";import{g as xa}from"./connection-slug-eyAPH6o3.js";import{u as hs}from"./useSuspenseInfiniteQuery-D0VeE26p.js";import{T as ke,a as mt,b as hn,c as xn,d as pn,e as ce}from"./table-DMcPz0bN.js";import{n as xs}from"./ChevronUp-DrgxDzSb.js";import{u as gn}from"./use-infinite-scroll-CeNFrFZw.js";import{u as pa}from"./useInfiniteQuery-CXsqG0YB.js";import{w as ga,x as va}from"./pair-BozNTVaW.js";import{S as Lt}from"./task-status-DVZLBvKG.js";import"./X-CaSicsGt.js";import"./AlertCircle-DykTdePm.js";import"./Tool01-B3jB5-GF.js";import"./RefreshCcw01-U2jJl9XZ.js";import"./ArrowNarrowLeft-BSnqV9Qp.js";import"./ArrowUpRight-BbCrxIiB.js";import"./Users03-CdkPI2qt.js";import"./CheckCircle-dpfQl31_.js";import"./DotsVertical-Dpo2lfzf.js";import"./Star01-BIiXL1NH.js";import"./Palette-DWycQqah.js";import"./LinkExternal01-BFenb5P9.js";import"./Lock01-D4wd-Mt0.js";import"./Sun-DJvU306F.js";import"./Settings02-BfZESxtt.js";import"./Shield01-CuEoE6Cq.js";import"./User01-XcdTTiqO.js";import"./Zap-DSo0BijB.js";import"./index-BTPvxzW6.js";import"./use-org-auth-client-Ctlksu1L.js";import"./use-collections-BYyKflom.js";import"./index-D7GdEVK0.js";import"./index-YHRzikDj.js";import"./infiniteQueryObserver-CeXFUdTd.js";import"./use-copy-Dr24Lx_X.js";import"./differenceInSeconds-NQ4PDo0z.js";import"./dialog-Cv4ROuD1.js";import"./content-blocks-o63cs2vh.js";import"./types-DCqv44Zz.js";import"./chat-context-C1cX954x.js";import"./use-ai-providers-C0E0qH45.js";import"./use-decopilot-events-BA7vVAsF.js";import"./create-sse-subscription-CxkOgzKf.js";import"./use-tasks-UUjCH1vs.js";import"./use-organization-settings-CffFj1WY.js";import"./shell-layout-C--vXF8e.js";import"./required-auth-layout-DHh0SFyh.js";import"./use-org-sso-Dtmr2O8h.js";const tn={maxJsonRenderSize:5e4,pageSize:50,streamingRefetchInterval:3e3};function Qe(t){return t.filter(e=>e.key.trim()).map(e=>{const n=encodeURIComponent(e.key.trim()),a=encodeURIComponent(e.value||"");return`${n}:${e.operator}:${a}`}).join(",")}function ba(t){return t?t.split(",").map(e=>{const[n,a,...r]=e.split(":");return{key:decodeURIComponent(n||""),operator:a||"eq",value:decodeURIComponent(r.join(":")||"")}}):[]}function St(t){return t.filter(e=>e.key.trim()).map(e=>{switch(e.operator){case"eq":return`${e.key}=${e.value}`;case"contains":return`${e.key}~${e.value}`;case"exists":return`${e.key}?`;case"in":return`${e.key}@${e.value}`}}).join(`
|
|
2
2
|
`)}function Bn(t){return t.trim()?t.split(`
|
|
3
3
|
`).map(e=>e.trim()).filter(e=>e.length>0).map(e=>{if(e.endsWith("?"))return{key:e.slice(0,-1),operator:"exists",value:""};if(e.includes("=")){const[n,...a]=e.split("=");return{key:n||"",operator:"eq",value:a.join("=")}}if(e.includes("~")){const[n,...a]=e.split("~");return{key:n||"",operator:"contains",value:a.join("~")}}if(e.includes("@")){const[n,...a]=e.split("@");return{key:n||"",operator:"in",value:a.join("@")}}return{key:e,operator:"exists",value:""}}):[]}function ya(t){const e={},n={},a=[],r={};for(const o of t)if(o.key.trim())switch(o.operator){case"eq":o.value&&(e[o.key]=o.value);break;case"contains":o.value&&(n[o.key]=`%${o.value}%`);break;case"exists":a.push(o.key);break;case"in":o.value&&(r[o.key]=o.value);break}return{properties:Object.keys(e).length>0?e:void 0,propertyPatterns:Object.keys(n).length>0?n:void 0,propertyKeys:a.length>0?a:void 0,propertyInValues:Object.keys(r).length>0?r:void 0}}function Hn(t){if(!t)return{content:"null",isTruncated:!1,originalSize:4};if(typeof t._decocms_truncated=="string")return{content:t._decocms_truncated,isTruncated:!0,originalSize:t._decocms_truncated.length};const e=JSON.stringify(t,null,2),n=e.length;return n<=tn.maxJsonRenderSize?{content:e,isTruncated:!1,originalSize:n}:{content:e.slice(0,tn.maxJsonRenderSize)+`
|
|
4
4
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{cp as Fe,bn as Os,J as oe,I as ge,a_ as ti,bS as _i,aK as Ie,bl as mt,a$ as qe,ap as mr,cq as rn,H as _e,cr as Ii,cs as ws,ct as ec,bQ as tc,cu as ia,cv as nc,cw as rc,cx as ic,cy as fn,cz as Tr,cA as xs,bL as sa,bD as sc,aJ as ze,bR as oc,aI as On,bb as Ci,cB as ac,r as N,j as w,cC as oa,cD as lc}from"./index-CV1lFX-Z.js";import{e as cc,f as uc,n as fc,h as dc,C as hc,A as pc}from"./constants-HOfKPHDy.js";import{B as Ti,c as Pi}from"./collections-BM6Z8nGc.js";import{R as Es}from"./index-CP6bD0QO.js";var mc=class{apply(e,t){if(!t.type)return;const n=Array.isArray(t.type)?t.type:[t.type],r=new Set(n);if(r.has("string")||(e.string=!1),!r.has("number")&&!r.has("integer")&&(e.number=!1),r.has("boolean")||(e.boolean=!1),r.has("null")||(e.null=!1),r.has("array")||(e.array=!1),r.has("object")||(e.object=!1),r.has("integer")&&e.number!==!1){const i=e.number||ge();i instanceof rn&&(e.number=i.int())}}},yc=class{apply(e,t){if(t.const===void 0)return;const n=t.const;e.string=!1,e.number=!1,e.boolean=!1,e.null=!1,e.array=!1,e.object=!1,typeof n=="string"?e.string=qe(n):typeof n=="number"?e.number=qe(n):typeof n=="boolean"?e.boolean=qe(n):n===null?e.null=_i():Array.isArray(n)?e.array=void 0:typeof n=="object"&&(e.object=void 0)}},gc=class{apply(e,t){if(!t.enum)return;if(t.enum.length===0){t.type||(e.string=!1,e.number=!1,e.boolean=!1,e.null=!1,e.array=!1,e.object=!1);return}const n={string:t.enum.filter(r=>typeof r=="string"),number:t.enum.filter(r=>typeof r=="number"),boolean:t.enum.filter(r=>typeof r=="boolean"),null:t.enum.filter(r=>r===null),array:t.enum.filter(r=>Array.isArray(r)),object:t.enum.filter(r=>typeof r=="object"&&r!==null&&!Array.isArray(r))};e.string=this.createTypeSchema(n.string,"string"),e.number=this.createTypeSchema(n.number,"number"),e.boolean=this.createTypeSchema(n.boolean,"boolean"),e.null=n.null.length>0?_i():!1,e.array=n.array.length>0?void 0:!1,e.object=n.object.length>0?void 0:!1}createTypeSchema(e,t){if(e.length===0)return!1;if(e.length===1)return qe(e[0]);if(t==="string")return mr(e);if(t==="number"){const[n,r,...i]=e;return mt([qe(n),qe(r),...i.map(s=>qe(s))])}return t==="boolean"?mt([qe(!0),qe(!1)]):!1}},bc=class{apply(e,t){const n=t;if(n.type==="string"&&n.format==="binary"&&n.contentEncoding==="binary"){let r=ic();n.minLength!==void 0&&(r=r.min(n.minLength)),n.maxLength!==void 0&&(r=r.max(n.maxLength)),n.contentMediaType!==void 0&&(r=r.mime(n.contentMediaType)),e.file=r,e.string=!1}}},Sc=class{apply(e,t){const n=t;t.type===void 0&&(n.minLength!==void 0||n.maxLength!==void 0||n.pattern!==void 0)&&e.string===void 0&&(e.string=oe())}},vc=class{apply(e,t){const n=t;if(n.minLength!==void 0&&e.string!==!1){const r=e.string||oe();r instanceof Ii&&(e.string=r.refine(i=>Array.from(i).length>=n.minLength,{message:`String must be at least ${n.minLength} characters long`}))}}},Oc=class{apply(e,t){const n=t;if(n.maxLength!==void 0&&e.string!==!1){const r=e.string||oe();r instanceof Ii&&(e.string=r.refine(i=>Array.from(i).length<=n.maxLength,{message:`String must be at most ${n.maxLength} characters long`}))}}},wc=class{apply(e,t){const n=t;if(n.pattern&&e.string!==!1){const r=e.string||oe();if(r instanceof Ii){const i=new RegExp(n.pattern);e.string=r.regex(i)}}}},xc=class{apply(e,t){const n=t;if(n.minimum!==void 0&&e.number!==!1){const r=e.number||ge();r instanceof rn&&(e.number=r.min(n.minimum))}}},Ec=class{apply(e,t){const n=t;if(n.maximum!==void 0&&e.number!==!1){const r=e.number||ge();r instanceof rn&&(e.number=r.max(n.maximum))}}},Ac=class{apply(e,t){const n=t;if(n.exclusiveMinimum!==void 0&&e.number!==!1){const r=e.number||ge();r instanceof rn&&(typeof n.exclusiveMinimum=="number"?e.number=r.gt(n.exclusiveMinimum):e.number=!1)}}},_c=class{apply(e,t){const n=t;if(n.exclusiveMaximum!==void 0&&e.number!==!1){const r=e.number||ge();r instanceof rn&&(typeof n.exclusiveMaximum=="number"?e.number=r.lt(n.exclusiveMaximum):e.number=!1)}}},Ic=class{apply(e,t){const n=t;if(n.multipleOf!==void 0&&e.number!==!1){const r=e.number||ge();r instanceof rn&&(e.number=r.refine(i=>{if(n.multipleOf===0)return!1;const s=i/n.multipleOf,o=Math.round(s),a=Math.min(Math.abs(i)*Number.EPSILON*10,Math.abs(n.multipleOf)*Number.EPSILON*10);return Math.abs(s-o)<=a/Math.abs(n.multipleOf)},{message:`Must be a multiple of ${n.multipleOf}`}))}}},Cc=class{apply(e,t){const n=t;t.type===void 0&&(n.minItems!==void 0||n.maxItems!==void 0||n.items!==void 0||n.prefixItems!==void 0)&&e.array===void 0&&(e.array=Ie(Fe()))}},Tc=class{apply(e,t){const n=t;n.minItems!==void 0&&e.array!==!1&&(e.array=(e.array||Ie(Fe())).min(n.minItems))}},Pc=class{apply(e,t){const n=t;n.maxItems!==void 0&&e.array!==!1&&(e.array=(e.array||Ie(Fe())).max(n.maxItems))}},Fc=class{apply(e,t){const n=t;if(e.array!==!1)if(Array.isArray(n.items))e.array=e.array||Ie(Fe());else if(n.items&&typeof n.items!="boolean"&&!n.prefixItems){const r=Ae(n.items);let i=Ie(r);if(e.array&&e.array instanceof ec){const s=e.array._def;s.checks&&s.checks.forEach(o=>{if(o._zod&&o._zod.def){const a=o._zod.def;a.check==="min_length"&&a.minimum!==void 0?i=i.min(a.minimum):a.check==="max_length"&&a.maximum!==void 0&&(i=i.max(a.maximum))}})}e.array=i}else typeof n.items=="boolean"&&n.items===!1?n.prefixItems?e.array=e.array||Ie(Fe()):e.array=Ie(Fe()).max(0):typeof n.items=="boolean"&&n.items===!0?e.array=e.array||Ie(Fe()):n.prefixItems&&(e.array=e.array||Ie(Fe()))}},jc=class{apply(e,t){if(t.type!=="array")return;const n=t;if(!Array.isArray(n.items)||e.array===!1)return;const r=n.items.map(s=>Ae(s));let i;r.length===0?i=ws([]):i=ws(r),n.minItems!==void 0&&n.minItems>r.length&&(i=!1),n.maxItems!==void 0&&n.maxItems<r.length&&(i=!1),e.tuple=i,e.array=!1}},$c=class{apply(e,t){const n=t;e.object!==!1&&(n.properties||n.required||n.additionalProperties!==void 0)&&(e.object=e.object||_e({}).passthrough())}},Dc=class{apply(e,t){const n=t;t.type===void 0&&(n.maxProperties!==void 0||n.minProperties!==void 0)&&e.object===void 0&&(e.object=_e({}).passthrough())}},Nc=class{apply(e,t){const n=t;if(n.maxProperties!==void 0&&e.object!==!1){const r=e.object||_e({}).passthrough();e.object=r.refine(i=>Object.keys(i).length<=n.maxProperties,{message:`Object must have at most ${n.maxProperties} properties`})}}},Rc=class{apply(e,t){const n=t;if(n.minProperties!==void 0&&e.object!==!1){const r=e.object||_e({}).passthrough();e.object=r.refine(i=>Object.keys(i).length>=n.minProperties,{message:`Object must have at least ${n.minProperties} properties`})}}};function Tn(e,t){if(e===t)return!0;if(e==null||t==null)return e===t;if(typeof e!=typeof t)return!1;if(Array.isArray(e)&&Array.isArray(t))return e.length!==t.length?!1:e.every((n,r)=>Tn(n,t[r]));if(typeof e=="object"&&typeof t=="object"){const n=Object.keys(e),r=Object.keys(t);return n.length!==r.length?!1:n.every(i=>r.includes(i)&&Tn(e[i],t[i]))}return!1}function Mc(){return e=>{if(!Array.isArray(e))return!0;const t=[];return e.every(n=>t.some(i=>Tn(n,i))?!1:(t.push(n),!0))}}function cr(e,t){return e.safeParse(t).success}var Uc=class{apply(e,t){if(!t.not)return e;const n=Ae(t.not);return e.refine(r=>!cr(n,r),{message:"Value must not match the 'not' schema"})}},kc=class{apply(e,t){return t.uniqueItems!==!0?e:e.refine(Mc(),{message:"Array items must be unique"})}},Lc=class{apply(e,t){return!t.allOf||t.allOf.length===0?e:t.allOf.map(r=>Ae(r)).reduce((r,i)=>ia(r,i),e)}},Bc=class{apply(e,t){if(!t.anyOf||t.anyOf.length===0)return e;const n=t.anyOf.length===1?Ae(t.anyOf[0]):mt([Ae(t.anyOf[0]),Ae(t.anyOf[1]),...t.anyOf.slice(2).map(r=>Ae(r))]);return ia(e,n)}},Wc=class{apply(e,t){if(!t.oneOf||t.oneOf.length===0)return e;const n=t.oneOf.map(r=>Ae(r));return e.refine(r=>{let i=0;for(const s of n)if(s.safeParse(r).success&&(i++,i>1))return!1;return i===1},{message:"Value must match exactly one of the oneOf schemas"})}},qc=class{apply(e,t){const n=t;if(n.prefixItems&&Array.isArray(n.prefixItems)){const i=n.prefixItems.map(s=>Ae(s));return e.refine(s=>{if(!Array.isArray(s))return!0;for(let o=0;o<Math.min(s.length,i.length);o++)if(!cr(i[o],s[o]))return!1;if(s.length>i.length){if(typeof n.items=="boolean"&&n.items===!1)return!1;if(n.items&&typeof n.items=="object"&&!Array.isArray(n.items)){const o=Ae(n.items);for(let a=i.length;a<s.length;a++)if(!cr(o,s[a]))return!1}}return!0},{message:"Array does not match prefixItems schema"})}return e}},Vc=class{apply(e,t){const n=t;if(!n.properties&&!n.required&&n.additionalProperties!==!1)return e;if(e instanceof nc||e instanceof rc){const r={};if(n.properties)for(const[i,s]of Object.entries(n.properties))s!==void 0&&(r[i]=Ae(s));if(n.required&&Array.isArray(n.required)){const i=new Set(n.required);for(const s of Object.keys(r))i.has(s)||(r[s]=r[s].optional())}else for(const i of Object.keys(r))r[i]=r[i].optional();return n.additionalProperties===!1?_e(r):_e(r).passthrough()}return e.refine(r=>{if(typeof r!="object"||r===null||Array.isArray(r))return!0;if(n.properties){for(const[i,s]of Object.entries(n.properties))if(s!==void 0&&Object.getOwnPropertyDescriptor(r,i)!==void 0&&!Ae(s).safeParse(r[i]).success)return!1}if(n.required&&Array.isArray(n.required)){for(const i of n.required)if(!(Object.getOwnPropertyDescriptor(r,i)!==void 0))return!1}if(n.additionalProperties===!1&&n.properties){const i=new Set(Object.keys(n.properties));for(const s in r)if(!i.has(s))return!1}return!0},{message:"Object constraints validation failed"})}},Hc=class{apply(e,t){if(!t.enum||t.enum.length===0)return e;const n=t.enum.filter(r=>Array.isArray(r)||typeof r=="object"&&r!==null);return n.length===0?e:e.refine(r=>typeof r!="object"||r===null?!0:n.some(i=>Tn(r,i)),{message:"Value must match one of the enum values"})}},Kc=class{apply(e,t){if(t.const===void 0)return e;const n=t.const;return typeof n!="object"||n===null?e:e.refine(r=>Tn(r,n),{message:"Value must equal the const value"})}},Gc=class{apply(e,t){return t.description&&(e=e.describe(t.description)),e}},zc=class{apply(e,t){var n;const r=t;return!((n=r.required)!=null&&n.includes("__proto__"))||t.type!==void 0?e:Fe().refine(i=>this.validateRequired(i,r.required),{message:"Missing required properties"})}validateRequired(e,t){return typeof e!="object"||e===null||Array.isArray(e)?!0:t.every(n=>Object.prototype.hasOwnProperty.call(e,n))}},Yc=class{apply(e,t){var n;const r=t;if(r.contains===void 0)return e;const i=Ae(r.contains),s=(n=r.minContains)!=null?n:1,o=r.maxContains;return e.refine(a=>{if(!Array.isArray(a))return!0;let l=0;for(const c of a)cr(i,c)&&l++;return!(l<s||o!==void 0&&l>o)},{message:"Array must contain required items matching the schema"})}},Jc=class{apply(e,t){const{default:n}=t;return n===void 0||!e.safeParse(n).success?e:e.default(n)}},Zc=[new yc,new gc,new mc,new bc,new Sc,new Cc,new Dc,new vc,new Oc,new wc,new xc,new Ec,new Ac,new _c,new Ic,new jc,new Tc,new Pc,new Fc,new Nc,new Rc,new $c],Xc=[new zc,new Hc,new Kc,new Lc,new Bc,new Wc,new qc,new Vc,new Yc,new Uc,new kc,new Jc,new Gc];function Ae(e){if(typeof e=="boolean")return e?Fe():Os();const t={};for(const i of Zc)i.apply(t,e);const n=[];if(t.string!==!1&&n.push(t.string||oe()),t.number!==!1&&n.push(t.number||ge()),t.boolean!==!1&&n.push(t.boolean||ti()),t.null!==!1&&n.push(t.null||_i()),t.array!==!1&&n.push(t.array||Ie(Fe())),t.tuple!==!1&&t.tuple!==void 0&&n.push(t.tuple),t.object!==!1)if(t.object)n.push(t.object);else{const i=tc(s=>typeof s=="object"&&s!==null&&!Array.isArray(s),"Must be an object, not an array");n.push(i)}t.file!==!1&&t.file!==void 0&&n.push(t.file);let r;n.length===0?r=Os():n.length===1?r=n[0]:Object.keys(e).some(s=>s!=="$schema"&&s!=="title"&&s!=="description")?r=mt(n):r=Fe();for(const i of Xc)r=i.apply(r,e);return r}class As extends Event{constructor(t,n){var r,i;super(t),this.code=(r=n?.code)!=null?r:void 0,this.message=(i=n?.message)!=null?i:void 0}[Symbol.for("nodejs.util.inspect.custom")](t,n,r){return r(_s(this),n)}[Symbol.for("Deno.customInspect")](t,n){return t(_s(this),n)}}function Qc(e){const t=globalThis.DOMException;return typeof t=="function"?new t(e,"SyntaxError"):new SyntaxError(e)}function ni(e){return e instanceof Error?"errors"in e&&Array.isArray(e.errors)?e.errors.map(ni).join(", "):"cause"in e&&e.cause instanceof Error?`${e}: ${ni(e.cause)}`:e.message:`${e}`}function _s(e){return{type:e.type,message:e.message,code:e.code,defaultPrevented:e.defaultPrevented,cancelable:e.cancelable,timeStamp:e.timeStamp}}var aa=e=>{throw TypeError(e)},Fi=(e,t,n)=>t.has(e)||aa("Cannot "+n),G=(e,t,n)=>(Fi(e,t,"read from private field"),n?n.call(e):t.get(e)),Se=(e,t,n)=>t.has(e)?aa("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,n),he=(e,t,n,r)=>(Fi(e,t,"write to private field"),t.set(e,n),n),Qe=(e,t,n)=>(Fi(e,t,"access private method"),n),Ce,Et,kt,Qn,ur,wn,qt,xn,ct,Lt,Gt,Bt,mn,Re,ri,ii,si,Is,oi,ai,yn,li,ci;class er extends EventTarget{constructor(t,n){var r,i;super(),Se(this,Re),this.CONNECTING=0,this.OPEN=1,this.CLOSED=2,Se(this,Ce),Se(this,Et),Se(this,kt),Se(this,Qn),Se(this,ur),Se(this,wn),Se(this,qt),Se(this,xn,null),Se(this,ct),Se(this,Lt),Se(this,Gt,null),Se(this,Bt,null),Se(this,mn,null),Se(this,ii,async s=>{var o;G(this,Lt).reset();const{body:a,redirected:l,status:c,headers:u}=s;if(c===204){Qe(this,Re,yn).call(this,"Server sent HTTP 204, not reconnecting",204),this.close();return}if(l?he(this,kt,new URL(s.url)):he(this,kt,void 0),c!==200){Qe(this,Re,yn).call(this,`Non-200 status code (${c})`,c);return}if(!(u.get("content-type")||"").startsWith("text/event-stream")){Qe(this,Re,yn).call(this,'Invalid content type, expected "text/event-stream"',c);return}if(G(this,Ce)===this.CLOSED)return;he(this,Ce,this.OPEN);const f=new Event("open");if((o=G(this,mn))==null||o.call(this,f),this.dispatchEvent(f),typeof a!="object"||!a||!("getReader"in a)){Qe(this,Re,yn).call(this,"Invalid response body, expected a web ReadableStream",c),this.close();return}const h=new TextDecoder,m=a.getReader();let d=!0;do{const{done:p,value:y}=await m.read();y&&G(this,Lt).feed(h.decode(y,{stream:!p})),p&&(d=!1,G(this,Lt).reset(),Qe(this,Re,li).call(this))}while(d)}),Se(this,si,s=>{he(this,ct,void 0),!(s.name==="AbortError"||s.type==="aborted")&&Qe(this,Re,li).call(this,ni(s))}),Se(this,oi,s=>{typeof s.id=="string"&&he(this,xn,s.id);const o=new MessageEvent(s.event||"message",{data:s.data,origin:G(this,kt)?G(this,kt).origin:G(this,Et).origin,lastEventId:s.id||""});G(this,Bt)&&(!s.event||s.event==="message")&&G(this,Bt).call(this,o),this.dispatchEvent(o)}),Se(this,ai,s=>{he(this,wn,s)}),Se(this,ci,()=>{he(this,qt,void 0),G(this,Ce)===this.CONNECTING&&Qe(this,Re,ri).call(this)});try{if(t instanceof URL)he(this,Et,t);else if(typeof t=="string")he(this,Et,new URL(t,eu()));else throw new Error("Invalid URL")}catch{throw Qc("An invalid or illegal string was specified")}he(this,Lt,cc({onEvent:G(this,oi),onRetry:G(this,ai)})),he(this,Ce,this.CONNECTING),he(this,wn,3e3),he(this,ur,(r=n?.fetch)!=null?r:globalThis.fetch),he(this,Qn,(i=n?.withCredentials)!=null?i:!1),Qe(this,Re,ri).call(this)}get readyState(){return G(this,Ce)}get url(){return G(this,Et).href}get withCredentials(){return G(this,Qn)}get onerror(){return G(this,Gt)}set onerror(t){he(this,Gt,t)}get onmessage(){return G(this,Bt)}set onmessage(t){he(this,Bt,t)}get onopen(){return G(this,mn)}set onopen(t){he(this,mn,t)}addEventListener(t,n,r){const i=n;super.addEventListener(t,i,r)}removeEventListener(t,n,r){const i=n;super.removeEventListener(t,i,r)}close(){G(this,qt)&&clearTimeout(G(this,qt)),G(this,Ce)!==this.CLOSED&&(G(this,ct)&&G(this,ct).abort(),he(this,Ce,this.CLOSED),he(this,ct,void 0))}}Ce=new WeakMap,Et=new WeakMap,kt=new WeakMap,Qn=new WeakMap,ur=new WeakMap,wn=new WeakMap,qt=new WeakMap,xn=new WeakMap,ct=new WeakMap,Lt=new WeakMap,Gt=new WeakMap,Bt=new WeakMap,mn=new WeakMap,Re=new WeakSet,ri=function(){he(this,Ce,this.CONNECTING),he(this,ct,new AbortController),G(this,ur)(G(this,Et),Qe(this,Re,Is).call(this)).then(G(this,ii)).catch(G(this,si))},ii=new WeakMap,si=new WeakMap,Is=function(){var e;const t={mode:"cors",redirect:"follow",headers:{Accept:"text/event-stream",...G(this,xn)?{"Last-Event-ID":G(this,xn)}:void 0},cache:"no-store",signal:(e=G(this,ct))==null?void 0:e.signal};return"window"in globalThis&&(t.credentials=this.withCredentials?"include":"same-origin"),t},oi=new WeakMap,ai=new WeakMap,yn=function(e,t){var n;G(this,Ce)!==this.CLOSED&&he(this,Ce,this.CLOSED);const r=new As("error",{code:t,message:e});(n=G(this,Gt))==null||n.call(this,r),this.dispatchEvent(r)},li=function(e,t){var n;if(G(this,Ce)===this.CLOSED)return;he(this,Ce,this.CONNECTING);const r=new As("error",{code:t,message:e});(n=G(this,Gt))==null||n.call(this,r),this.dispatchEvent(r),he(this,qt,setTimeout(G(this,ci),G(this,wn)))},ci=new WeakMap,er.CONNECTING=0,er.OPEN=1,er.CLOSED=2;function eu(){const e="document"in globalThis?globalThis.document:void 0;return e&&typeof e=="object"&&"baseURI"in e&&typeof e.baseURI=="string"?e.baseURI:void 0}class tu extends Error{constructor(t,n,r){super(`SSE error: ${n}`),this.code=t,this.event=r}}class nu{constructor(t,n){this._url=t,this._resourceMetadataUrl=void 0,this._scope=void 0,this._eventSourceInit=n?.eventSourceInit,this._requestInit=n?.requestInit,this._authProvider=n?.authProvider,this._fetch=n?.fetch,this._fetchWithInit=uc(n?.fetch,n?.requestInit)}async _authThenStart(){if(!this._authProvider)throw new fn("No auth provider");let t;try{t=await Tr(this._authProvider,{serverUrl:this._url,resourceMetadataUrl:this._resourceMetadataUrl,scope:this._scope,fetchFn:this._fetchWithInit})}catch(n){throw this.onerror?.(n),n}if(t!=="AUTHORIZED")throw new fn;return await this._startOrAuth()}async _commonHeaders(){const t={};if(this._authProvider){const r=await this._authProvider.tokens();r&&(t.Authorization=`Bearer ${r.access_token}`)}this._protocolVersion&&(t["mcp-protocol-version"]=this._protocolVersion);const n=fc(this._requestInit?.headers);return new Headers({...t,...n})}_startOrAuth(){const t=this?._eventSourceInit?.fetch??this._fetch??fetch;return new Promise((n,r)=>{this._eventSource=new er(this._url.href,{...this._eventSourceInit,fetch:async(i,s)=>{const o=await this._commonHeaders();o.set("Accept","text/event-stream");const a=await t(i,{...s,headers:o});if(a.status===401&&a.headers.has("www-authenticate")){const{resourceMetadataUrl:l,scope:c}=xs(a);this._resourceMetadataUrl=l,this._scope=c}return a}}),this._abortController=new AbortController,this._eventSource.onerror=i=>{if(i.code===401&&this._authProvider){this._authThenStart().then(n,r);return}const s=new tu(i.code,i.message,i);r(s),this.onerror?.(s)},this._eventSource.onopen=()=>{},this._eventSource.addEventListener("endpoint",i=>{const s=i;try{if(this._endpoint=new URL(s.data,this._url),this._endpoint.origin!==this._url.origin)throw new Error(`Endpoint origin does not match connection origin: ${this._endpoint.origin}`)}catch(o){r(o),this.onerror?.(o),this.close();return}n()}),this._eventSource.onmessage=i=>{const s=i;let o;try{o=sa.parse(JSON.parse(s.data))}catch(a){this.onerror?.(a);return}this.onmessage?.(o)}})}async start(){if(this._eventSource)throw new Error("SSEClientTransport already started! If using Client class, note that connect() calls start() automatically.");return await this._startOrAuth()}async finishAuth(t){if(!this._authProvider)throw new fn("No auth provider");if(await Tr(this._authProvider,{serverUrl:this._url,authorizationCode:t,resourceMetadataUrl:this._resourceMetadataUrl,scope:this._scope,fetchFn:this._fetchWithInit})!=="AUTHORIZED")throw new fn("Failed to authorize")}async close(){this._abortController?.abort(),this._eventSource?.close(),this.onclose?.()}async send(t){if(!this._endpoint)throw new Error("Not connected");try{const n=await this._commonHeaders();n.set("content-type","application/json");const r={...this._requestInit,method:"POST",headers:n,body:JSON.stringify(t),signal:this._abortController?.signal},i=await(this._fetch??fetch)(this._endpoint,r);if(!i.ok){const s=await i.text().catch(()=>null);if(i.status===401&&this._authProvider){const{resourceMetadataUrl:o,scope:a}=xs(i);if(this._resourceMetadataUrl=o,this._scope=a,await Tr(this._authProvider,{serverUrl:this._url,resourceMetadataUrl:this._resourceMetadataUrl,scope:this._scope,fetchFn:this._fetchWithInit})!=="AUTHORIZED")throw new fn;return this.send(t)}throw new Error(`Error POSTing to endpoint (HTTP ${i.status}): ${s}`)}await i.body?.cancel()}catch(n){throw this.onerror?.(n),n}}setProtocolVersion(t){this._protocolVersion=t}}const ru="mcp";class iu{constructor(t){this._url=t}start(){if(this._socket)throw new Error("WebSocketClientTransport already started! If using Client class, note that connect() calls start() automatically.");return new Promise((t,n)=>{this._socket=new WebSocket(this._url,ru),this._socket.onerror=r=>{const i="error"in r?r.error:new Error(`WebSocket error: ${JSON.stringify(r)}`);n(i),this.onerror?.(i)},this._socket.onopen=()=>{t()},this._socket.onclose=()=>{this.onclose?.()},this._socket.onmessage=r=>{let i;try{i=sa.parse(JSON.parse(r.data))}catch(s){this.onerror?.(s);return}this.onmessage?.(i)}})}async close(){this._socket?.close()}send(t){return new Promise((n,r)=>{if(!this._socket){r(new Error("Not connected"));return}this._socket?.send(JSON.stringify(t)),n()})}}class su extends dc{constructor(t,n){super(t,n)}send(t,n){const r=ou(t);return r?.type==="emit"?(this.onmessage?.(r.message),Promise.resolve()):r?.type==="suppress"?Promise.resolve():super.send(t,n)}}function ou(e){const t=e;if(!t||typeof t!="object"||!("method"in t))return null;switch(t.method){case"initialize":{const n=t?.params?.protocolVersion;return n?{type:"emit",message:{result:{protocolVersion:n,capabilities:{tools:{}},serverInfo:{name:"deco-chat-server",version:"1.0.0"}},jsonrpc:t.jsonrpc??"2.0",id:t.id}}:null}case"notifications/roots/list_changed":case"notifications/initialized":case"notifications/cancelled":case"notifications/progress":return{type:"suppress"};default:return null}}class au extends hc{constructor(t,n){super(t,n)}async listTools(t,n){return await this.request({method:"tools/list",params:t},sc,n)}}const lu=async(e,t,n)=>{const r=cu(e.connection,t,n);if(!r)throw new Error("Unknown MCP connection type");const i=new au({name:e?.name??"MCP Client",version:"1.0.0"});return await i.connect(r),{client:i}},cu=(e,t,n)=>{if(e.type==="Websocket")return new iu(new URL(e.url));if(e.type!=="SSE"&&e.type!=="HTTP")return null;const i={...e.token?{authorization:`Bearer ${e.token}`}:{},...n??{},..."headers"in e?e.headers||{}:{}};if(e.type==="SSE"){const s={requestInit:{headers:i,signal:t}};return e.token&&(s.eventSourceInit={fetch:(o,a)=>fetch(o,{...a,headers:{...i,Accept:"text/event-stream"},signal:t})}),new nu(new URL(e.url),s)}return new su(new URL(e.url),{requestInit:{headers:i,signal:t,credentials:"include"}})},Cs=e=>{try{return JSON.parse(e)}catch{return e}},zn=new Map,Ts=(e,t)=>({...e,id:e.name,inputSchema:e.inputSchema?Ae(e.inputSchema):void 0,outputSchema:e.outputSchema?Ae(e.outputSchema):void 0,execute:n=>t(n.context,e.name)});function uu(e){const t=n=>"connection"in e?lu({connection:e.connection},void 0,n):e.client;return new Proxy({},{get(n,r){if(r==="toJSON")return null;if(typeof r!="string")throw new Error("Name must be a string");if(r==="listTools")return a;async function i(l,c=r){const u=e?.debugId?.(),f=u?{"x-trace-debug-id":u}:void 0,{client:h}=await t(f),{structuredContent:m,isError:d,content:p}=await h.callTool({name:String(c),arguments:l});if(d){const S=p?.[0]?.text,O=typeof S=="string"?Cs(S):null,E=O?.code&&typeof e?.getErrorByStatusCode=="function"?e.getErrorByStatusCode(O.code,O.message,O.traceId):null;throw E||new Error(`Tool ${String(c)} returned an error: ${JSON.stringify(m??p)}`)}if(m!==void 0)return m;const y=p?.[0]?.text;return typeof y=="string"?Cs(y):void 0}async function s(){const{client:l}=await t(),{tools:c}=await l.listTools();return c}async function o(){if(!("connection"in e))return s();const l=e.connection,c=JSON.stringify(l);try{return zn.has(c)||zn.set(c,s()),await zn.get(c)}catch(u){console.error("Failed to list tools",u),zn.delete(c);return}}async function a(){return(await o()??[]).map(c=>Ts(c,i))}return i.asTool=async()=>{const c=(await o()??[]).find(u=>u.name===r);if(!c)throw new Error(`Tool ${r} not found`);return Ts(c,i)},i}})}new Proxy({},{get(e,t){return t==="toJSON"?null:t==="forConnection"?n=>fu({connection:n}):global[t]}});function fu(e){return uu(e)}const du=_e({toolName:oe().describe("Name of the tool to invoke on that connection"),transformCode:oe().optional().describe("Pure TypeScript function for data transformation of the tool call result. Must be a TypeScript file that declares the Output interface and exports a default function: `interface Output { ... } export default async function(stepInput): Output { ... }`\n The stepInput will match with the tool call outputSchema. If transformCode is not provided, the tool call result will be used as the step output.\n Providing an transformCode is recommended because it both allows you to transform the data and validate it against a JSON Schema - tools are ephemeral and may return unexpected data.")}),hu=_e({code:oe().describe(`Pure TypeScript function for data transformation. Useful to merge data from multiple steps and transform it. Must be a TypeScript file that declares the Output interface and exports a default function: \`interface Output { ... } export default async function(stepInput): Output { ... }\`
|
|
1
|
+
import{cp as Fe,bn as Os,J as oe,I as ge,a_ as ti,bS as _i,aK as Ie,bl as mt,a$ as qe,ap as mr,cq as rn,H as _e,cr as Ii,cs as ws,ct as ec,bQ as tc,cu as ia,cv as nc,cw as rc,cx as ic,cy as fn,cz as Tr,cA as xs,bL as sa,bD as sc,aJ as ze,bR as oc,aI as On,bb as Ci,cB as ac,r as N,j as w,cC as oa,cD as lc}from"./index-Byh16eae.js";import{e as cc,f as uc,n as fc,h as dc,C as hc,A as pc}from"./constants-DoDQutb_.js";import{B as Ti,c as Pi}from"./collections-Bdy_Kvem.js";import{R as Es}from"./index-YHRzikDj.js";var mc=class{apply(e,t){if(!t.type)return;const n=Array.isArray(t.type)?t.type:[t.type],r=new Set(n);if(r.has("string")||(e.string=!1),!r.has("number")&&!r.has("integer")&&(e.number=!1),r.has("boolean")||(e.boolean=!1),r.has("null")||(e.null=!1),r.has("array")||(e.array=!1),r.has("object")||(e.object=!1),r.has("integer")&&e.number!==!1){const i=e.number||ge();i instanceof rn&&(e.number=i.int())}}},yc=class{apply(e,t){if(t.const===void 0)return;const n=t.const;e.string=!1,e.number=!1,e.boolean=!1,e.null=!1,e.array=!1,e.object=!1,typeof n=="string"?e.string=qe(n):typeof n=="number"?e.number=qe(n):typeof n=="boolean"?e.boolean=qe(n):n===null?e.null=_i():Array.isArray(n)?e.array=void 0:typeof n=="object"&&(e.object=void 0)}},gc=class{apply(e,t){if(!t.enum)return;if(t.enum.length===0){t.type||(e.string=!1,e.number=!1,e.boolean=!1,e.null=!1,e.array=!1,e.object=!1);return}const n={string:t.enum.filter(r=>typeof r=="string"),number:t.enum.filter(r=>typeof r=="number"),boolean:t.enum.filter(r=>typeof r=="boolean"),null:t.enum.filter(r=>r===null),array:t.enum.filter(r=>Array.isArray(r)),object:t.enum.filter(r=>typeof r=="object"&&r!==null&&!Array.isArray(r))};e.string=this.createTypeSchema(n.string,"string"),e.number=this.createTypeSchema(n.number,"number"),e.boolean=this.createTypeSchema(n.boolean,"boolean"),e.null=n.null.length>0?_i():!1,e.array=n.array.length>0?void 0:!1,e.object=n.object.length>0?void 0:!1}createTypeSchema(e,t){if(e.length===0)return!1;if(e.length===1)return qe(e[0]);if(t==="string")return mr(e);if(t==="number"){const[n,r,...i]=e;return mt([qe(n),qe(r),...i.map(s=>qe(s))])}return t==="boolean"?mt([qe(!0),qe(!1)]):!1}},bc=class{apply(e,t){const n=t;if(n.type==="string"&&n.format==="binary"&&n.contentEncoding==="binary"){let r=ic();n.minLength!==void 0&&(r=r.min(n.minLength)),n.maxLength!==void 0&&(r=r.max(n.maxLength)),n.contentMediaType!==void 0&&(r=r.mime(n.contentMediaType)),e.file=r,e.string=!1}}},Sc=class{apply(e,t){const n=t;t.type===void 0&&(n.minLength!==void 0||n.maxLength!==void 0||n.pattern!==void 0)&&e.string===void 0&&(e.string=oe())}},vc=class{apply(e,t){const n=t;if(n.minLength!==void 0&&e.string!==!1){const r=e.string||oe();r instanceof Ii&&(e.string=r.refine(i=>Array.from(i).length>=n.minLength,{message:`String must be at least ${n.minLength} characters long`}))}}},Oc=class{apply(e,t){const n=t;if(n.maxLength!==void 0&&e.string!==!1){const r=e.string||oe();r instanceof Ii&&(e.string=r.refine(i=>Array.from(i).length<=n.maxLength,{message:`String must be at most ${n.maxLength} characters long`}))}}},wc=class{apply(e,t){const n=t;if(n.pattern&&e.string!==!1){const r=e.string||oe();if(r instanceof Ii){const i=new RegExp(n.pattern);e.string=r.regex(i)}}}},xc=class{apply(e,t){const n=t;if(n.minimum!==void 0&&e.number!==!1){const r=e.number||ge();r instanceof rn&&(e.number=r.min(n.minimum))}}},Ec=class{apply(e,t){const n=t;if(n.maximum!==void 0&&e.number!==!1){const r=e.number||ge();r instanceof rn&&(e.number=r.max(n.maximum))}}},Ac=class{apply(e,t){const n=t;if(n.exclusiveMinimum!==void 0&&e.number!==!1){const r=e.number||ge();r instanceof rn&&(typeof n.exclusiveMinimum=="number"?e.number=r.gt(n.exclusiveMinimum):e.number=!1)}}},_c=class{apply(e,t){const n=t;if(n.exclusiveMaximum!==void 0&&e.number!==!1){const r=e.number||ge();r instanceof rn&&(typeof n.exclusiveMaximum=="number"?e.number=r.lt(n.exclusiveMaximum):e.number=!1)}}},Ic=class{apply(e,t){const n=t;if(n.multipleOf!==void 0&&e.number!==!1){const r=e.number||ge();r instanceof rn&&(e.number=r.refine(i=>{if(n.multipleOf===0)return!1;const s=i/n.multipleOf,o=Math.round(s),a=Math.min(Math.abs(i)*Number.EPSILON*10,Math.abs(n.multipleOf)*Number.EPSILON*10);return Math.abs(s-o)<=a/Math.abs(n.multipleOf)},{message:`Must be a multiple of ${n.multipleOf}`}))}}},Cc=class{apply(e,t){const n=t;t.type===void 0&&(n.minItems!==void 0||n.maxItems!==void 0||n.items!==void 0||n.prefixItems!==void 0)&&e.array===void 0&&(e.array=Ie(Fe()))}},Tc=class{apply(e,t){const n=t;n.minItems!==void 0&&e.array!==!1&&(e.array=(e.array||Ie(Fe())).min(n.minItems))}},Pc=class{apply(e,t){const n=t;n.maxItems!==void 0&&e.array!==!1&&(e.array=(e.array||Ie(Fe())).max(n.maxItems))}},Fc=class{apply(e,t){const n=t;if(e.array!==!1)if(Array.isArray(n.items))e.array=e.array||Ie(Fe());else if(n.items&&typeof n.items!="boolean"&&!n.prefixItems){const r=Ae(n.items);let i=Ie(r);if(e.array&&e.array instanceof ec){const s=e.array._def;s.checks&&s.checks.forEach(o=>{if(o._zod&&o._zod.def){const a=o._zod.def;a.check==="min_length"&&a.minimum!==void 0?i=i.min(a.minimum):a.check==="max_length"&&a.maximum!==void 0&&(i=i.max(a.maximum))}})}e.array=i}else typeof n.items=="boolean"&&n.items===!1?n.prefixItems?e.array=e.array||Ie(Fe()):e.array=Ie(Fe()).max(0):typeof n.items=="boolean"&&n.items===!0?e.array=e.array||Ie(Fe()):n.prefixItems&&(e.array=e.array||Ie(Fe()))}},jc=class{apply(e,t){if(t.type!=="array")return;const n=t;if(!Array.isArray(n.items)||e.array===!1)return;const r=n.items.map(s=>Ae(s));let i;r.length===0?i=ws([]):i=ws(r),n.minItems!==void 0&&n.minItems>r.length&&(i=!1),n.maxItems!==void 0&&n.maxItems<r.length&&(i=!1),e.tuple=i,e.array=!1}},$c=class{apply(e,t){const n=t;e.object!==!1&&(n.properties||n.required||n.additionalProperties!==void 0)&&(e.object=e.object||_e({}).passthrough())}},Dc=class{apply(e,t){const n=t;t.type===void 0&&(n.maxProperties!==void 0||n.minProperties!==void 0)&&e.object===void 0&&(e.object=_e({}).passthrough())}},Nc=class{apply(e,t){const n=t;if(n.maxProperties!==void 0&&e.object!==!1){const r=e.object||_e({}).passthrough();e.object=r.refine(i=>Object.keys(i).length<=n.maxProperties,{message:`Object must have at most ${n.maxProperties} properties`})}}},Rc=class{apply(e,t){const n=t;if(n.minProperties!==void 0&&e.object!==!1){const r=e.object||_e({}).passthrough();e.object=r.refine(i=>Object.keys(i).length>=n.minProperties,{message:`Object must have at least ${n.minProperties} properties`})}}};function Tn(e,t){if(e===t)return!0;if(e==null||t==null)return e===t;if(typeof e!=typeof t)return!1;if(Array.isArray(e)&&Array.isArray(t))return e.length!==t.length?!1:e.every((n,r)=>Tn(n,t[r]));if(typeof e=="object"&&typeof t=="object"){const n=Object.keys(e),r=Object.keys(t);return n.length!==r.length?!1:n.every(i=>r.includes(i)&&Tn(e[i],t[i]))}return!1}function Mc(){return e=>{if(!Array.isArray(e))return!0;const t=[];return e.every(n=>t.some(i=>Tn(n,i))?!1:(t.push(n),!0))}}function cr(e,t){return e.safeParse(t).success}var Uc=class{apply(e,t){if(!t.not)return e;const n=Ae(t.not);return e.refine(r=>!cr(n,r),{message:"Value must not match the 'not' schema"})}},kc=class{apply(e,t){return t.uniqueItems!==!0?e:e.refine(Mc(),{message:"Array items must be unique"})}},Lc=class{apply(e,t){return!t.allOf||t.allOf.length===0?e:t.allOf.map(r=>Ae(r)).reduce((r,i)=>ia(r,i),e)}},Bc=class{apply(e,t){if(!t.anyOf||t.anyOf.length===0)return e;const n=t.anyOf.length===1?Ae(t.anyOf[0]):mt([Ae(t.anyOf[0]),Ae(t.anyOf[1]),...t.anyOf.slice(2).map(r=>Ae(r))]);return ia(e,n)}},Wc=class{apply(e,t){if(!t.oneOf||t.oneOf.length===0)return e;const n=t.oneOf.map(r=>Ae(r));return e.refine(r=>{let i=0;for(const s of n)if(s.safeParse(r).success&&(i++,i>1))return!1;return i===1},{message:"Value must match exactly one of the oneOf schemas"})}},qc=class{apply(e,t){const n=t;if(n.prefixItems&&Array.isArray(n.prefixItems)){const i=n.prefixItems.map(s=>Ae(s));return e.refine(s=>{if(!Array.isArray(s))return!0;for(let o=0;o<Math.min(s.length,i.length);o++)if(!cr(i[o],s[o]))return!1;if(s.length>i.length){if(typeof n.items=="boolean"&&n.items===!1)return!1;if(n.items&&typeof n.items=="object"&&!Array.isArray(n.items)){const o=Ae(n.items);for(let a=i.length;a<s.length;a++)if(!cr(o,s[a]))return!1}}return!0},{message:"Array does not match prefixItems schema"})}return e}},Vc=class{apply(e,t){const n=t;if(!n.properties&&!n.required&&n.additionalProperties!==!1)return e;if(e instanceof nc||e instanceof rc){const r={};if(n.properties)for(const[i,s]of Object.entries(n.properties))s!==void 0&&(r[i]=Ae(s));if(n.required&&Array.isArray(n.required)){const i=new Set(n.required);for(const s of Object.keys(r))i.has(s)||(r[s]=r[s].optional())}else for(const i of Object.keys(r))r[i]=r[i].optional();return n.additionalProperties===!1?_e(r):_e(r).passthrough()}return e.refine(r=>{if(typeof r!="object"||r===null||Array.isArray(r))return!0;if(n.properties){for(const[i,s]of Object.entries(n.properties))if(s!==void 0&&Object.getOwnPropertyDescriptor(r,i)!==void 0&&!Ae(s).safeParse(r[i]).success)return!1}if(n.required&&Array.isArray(n.required)){for(const i of n.required)if(!(Object.getOwnPropertyDescriptor(r,i)!==void 0))return!1}if(n.additionalProperties===!1&&n.properties){const i=new Set(Object.keys(n.properties));for(const s in r)if(!i.has(s))return!1}return!0},{message:"Object constraints validation failed"})}},Hc=class{apply(e,t){if(!t.enum||t.enum.length===0)return e;const n=t.enum.filter(r=>Array.isArray(r)||typeof r=="object"&&r!==null);return n.length===0?e:e.refine(r=>typeof r!="object"||r===null?!0:n.some(i=>Tn(r,i)),{message:"Value must match one of the enum values"})}},Kc=class{apply(e,t){if(t.const===void 0)return e;const n=t.const;return typeof n!="object"||n===null?e:e.refine(r=>Tn(r,n),{message:"Value must equal the const value"})}},Gc=class{apply(e,t){return t.description&&(e=e.describe(t.description)),e}},zc=class{apply(e,t){var n;const r=t;return!((n=r.required)!=null&&n.includes("__proto__"))||t.type!==void 0?e:Fe().refine(i=>this.validateRequired(i,r.required),{message:"Missing required properties"})}validateRequired(e,t){return typeof e!="object"||e===null||Array.isArray(e)?!0:t.every(n=>Object.prototype.hasOwnProperty.call(e,n))}},Yc=class{apply(e,t){var n;const r=t;if(r.contains===void 0)return e;const i=Ae(r.contains),s=(n=r.minContains)!=null?n:1,o=r.maxContains;return e.refine(a=>{if(!Array.isArray(a))return!0;let l=0;for(const c of a)cr(i,c)&&l++;return!(l<s||o!==void 0&&l>o)},{message:"Array must contain required items matching the schema"})}},Jc=class{apply(e,t){const{default:n}=t;return n===void 0||!e.safeParse(n).success?e:e.default(n)}},Zc=[new yc,new gc,new mc,new bc,new Sc,new Cc,new Dc,new vc,new Oc,new wc,new xc,new Ec,new Ac,new _c,new Ic,new jc,new Tc,new Pc,new Fc,new Nc,new Rc,new $c],Xc=[new zc,new Hc,new Kc,new Lc,new Bc,new Wc,new qc,new Vc,new Yc,new Uc,new kc,new Jc,new Gc];function Ae(e){if(typeof e=="boolean")return e?Fe():Os();const t={};for(const i of Zc)i.apply(t,e);const n=[];if(t.string!==!1&&n.push(t.string||oe()),t.number!==!1&&n.push(t.number||ge()),t.boolean!==!1&&n.push(t.boolean||ti()),t.null!==!1&&n.push(t.null||_i()),t.array!==!1&&n.push(t.array||Ie(Fe())),t.tuple!==!1&&t.tuple!==void 0&&n.push(t.tuple),t.object!==!1)if(t.object)n.push(t.object);else{const i=tc(s=>typeof s=="object"&&s!==null&&!Array.isArray(s),"Must be an object, not an array");n.push(i)}t.file!==!1&&t.file!==void 0&&n.push(t.file);let r;n.length===0?r=Os():n.length===1?r=n[0]:Object.keys(e).some(s=>s!=="$schema"&&s!=="title"&&s!=="description")?r=mt(n):r=Fe();for(const i of Xc)r=i.apply(r,e);return r}class As extends Event{constructor(t,n){var r,i;super(t),this.code=(r=n?.code)!=null?r:void 0,this.message=(i=n?.message)!=null?i:void 0}[Symbol.for("nodejs.util.inspect.custom")](t,n,r){return r(_s(this),n)}[Symbol.for("Deno.customInspect")](t,n){return t(_s(this),n)}}function Qc(e){const t=globalThis.DOMException;return typeof t=="function"?new t(e,"SyntaxError"):new SyntaxError(e)}function ni(e){return e instanceof Error?"errors"in e&&Array.isArray(e.errors)?e.errors.map(ni).join(", "):"cause"in e&&e.cause instanceof Error?`${e}: ${ni(e.cause)}`:e.message:`${e}`}function _s(e){return{type:e.type,message:e.message,code:e.code,defaultPrevented:e.defaultPrevented,cancelable:e.cancelable,timeStamp:e.timeStamp}}var aa=e=>{throw TypeError(e)},Fi=(e,t,n)=>t.has(e)||aa("Cannot "+n),G=(e,t,n)=>(Fi(e,t,"read from private field"),n?n.call(e):t.get(e)),Se=(e,t,n)=>t.has(e)?aa("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,n),he=(e,t,n,r)=>(Fi(e,t,"write to private field"),t.set(e,n),n),Qe=(e,t,n)=>(Fi(e,t,"access private method"),n),Ce,Et,kt,Qn,ur,wn,qt,xn,ct,Lt,Gt,Bt,mn,Re,ri,ii,si,Is,oi,ai,yn,li,ci;class er extends EventTarget{constructor(t,n){var r,i;super(),Se(this,Re),this.CONNECTING=0,this.OPEN=1,this.CLOSED=2,Se(this,Ce),Se(this,Et),Se(this,kt),Se(this,Qn),Se(this,ur),Se(this,wn),Se(this,qt),Se(this,xn,null),Se(this,ct),Se(this,Lt),Se(this,Gt,null),Se(this,Bt,null),Se(this,mn,null),Se(this,ii,async s=>{var o;G(this,Lt).reset();const{body:a,redirected:l,status:c,headers:u}=s;if(c===204){Qe(this,Re,yn).call(this,"Server sent HTTP 204, not reconnecting",204),this.close();return}if(l?he(this,kt,new URL(s.url)):he(this,kt,void 0),c!==200){Qe(this,Re,yn).call(this,`Non-200 status code (${c})`,c);return}if(!(u.get("content-type")||"").startsWith("text/event-stream")){Qe(this,Re,yn).call(this,'Invalid content type, expected "text/event-stream"',c);return}if(G(this,Ce)===this.CLOSED)return;he(this,Ce,this.OPEN);const f=new Event("open");if((o=G(this,mn))==null||o.call(this,f),this.dispatchEvent(f),typeof a!="object"||!a||!("getReader"in a)){Qe(this,Re,yn).call(this,"Invalid response body, expected a web ReadableStream",c),this.close();return}const h=new TextDecoder,m=a.getReader();let d=!0;do{const{done:p,value:y}=await m.read();y&&G(this,Lt).feed(h.decode(y,{stream:!p})),p&&(d=!1,G(this,Lt).reset(),Qe(this,Re,li).call(this))}while(d)}),Se(this,si,s=>{he(this,ct,void 0),!(s.name==="AbortError"||s.type==="aborted")&&Qe(this,Re,li).call(this,ni(s))}),Se(this,oi,s=>{typeof s.id=="string"&&he(this,xn,s.id);const o=new MessageEvent(s.event||"message",{data:s.data,origin:G(this,kt)?G(this,kt).origin:G(this,Et).origin,lastEventId:s.id||""});G(this,Bt)&&(!s.event||s.event==="message")&&G(this,Bt).call(this,o),this.dispatchEvent(o)}),Se(this,ai,s=>{he(this,wn,s)}),Se(this,ci,()=>{he(this,qt,void 0),G(this,Ce)===this.CONNECTING&&Qe(this,Re,ri).call(this)});try{if(t instanceof URL)he(this,Et,t);else if(typeof t=="string")he(this,Et,new URL(t,eu()));else throw new Error("Invalid URL")}catch{throw Qc("An invalid or illegal string was specified")}he(this,Lt,cc({onEvent:G(this,oi),onRetry:G(this,ai)})),he(this,Ce,this.CONNECTING),he(this,wn,3e3),he(this,ur,(r=n?.fetch)!=null?r:globalThis.fetch),he(this,Qn,(i=n?.withCredentials)!=null?i:!1),Qe(this,Re,ri).call(this)}get readyState(){return G(this,Ce)}get url(){return G(this,Et).href}get withCredentials(){return G(this,Qn)}get onerror(){return G(this,Gt)}set onerror(t){he(this,Gt,t)}get onmessage(){return G(this,Bt)}set onmessage(t){he(this,Bt,t)}get onopen(){return G(this,mn)}set onopen(t){he(this,mn,t)}addEventListener(t,n,r){const i=n;super.addEventListener(t,i,r)}removeEventListener(t,n,r){const i=n;super.removeEventListener(t,i,r)}close(){G(this,qt)&&clearTimeout(G(this,qt)),G(this,Ce)!==this.CLOSED&&(G(this,ct)&&G(this,ct).abort(),he(this,Ce,this.CLOSED),he(this,ct,void 0))}}Ce=new WeakMap,Et=new WeakMap,kt=new WeakMap,Qn=new WeakMap,ur=new WeakMap,wn=new WeakMap,qt=new WeakMap,xn=new WeakMap,ct=new WeakMap,Lt=new WeakMap,Gt=new WeakMap,Bt=new WeakMap,mn=new WeakMap,Re=new WeakSet,ri=function(){he(this,Ce,this.CONNECTING),he(this,ct,new AbortController),G(this,ur)(G(this,Et),Qe(this,Re,Is).call(this)).then(G(this,ii)).catch(G(this,si))},ii=new WeakMap,si=new WeakMap,Is=function(){var e;const t={mode:"cors",redirect:"follow",headers:{Accept:"text/event-stream",...G(this,xn)?{"Last-Event-ID":G(this,xn)}:void 0},cache:"no-store",signal:(e=G(this,ct))==null?void 0:e.signal};return"window"in globalThis&&(t.credentials=this.withCredentials?"include":"same-origin"),t},oi=new WeakMap,ai=new WeakMap,yn=function(e,t){var n;G(this,Ce)!==this.CLOSED&&he(this,Ce,this.CLOSED);const r=new As("error",{code:t,message:e});(n=G(this,Gt))==null||n.call(this,r),this.dispatchEvent(r)},li=function(e,t){var n;if(G(this,Ce)===this.CLOSED)return;he(this,Ce,this.CONNECTING);const r=new As("error",{code:t,message:e});(n=G(this,Gt))==null||n.call(this,r),this.dispatchEvent(r),he(this,qt,setTimeout(G(this,ci),G(this,wn)))},ci=new WeakMap,er.CONNECTING=0,er.OPEN=1,er.CLOSED=2;function eu(){const e="document"in globalThis?globalThis.document:void 0;return e&&typeof e=="object"&&"baseURI"in e&&typeof e.baseURI=="string"?e.baseURI:void 0}class tu extends Error{constructor(t,n,r){super(`SSE error: ${n}`),this.code=t,this.event=r}}class nu{constructor(t,n){this._url=t,this._resourceMetadataUrl=void 0,this._scope=void 0,this._eventSourceInit=n?.eventSourceInit,this._requestInit=n?.requestInit,this._authProvider=n?.authProvider,this._fetch=n?.fetch,this._fetchWithInit=uc(n?.fetch,n?.requestInit)}async _authThenStart(){if(!this._authProvider)throw new fn("No auth provider");let t;try{t=await Tr(this._authProvider,{serverUrl:this._url,resourceMetadataUrl:this._resourceMetadataUrl,scope:this._scope,fetchFn:this._fetchWithInit})}catch(n){throw this.onerror?.(n),n}if(t!=="AUTHORIZED")throw new fn;return await this._startOrAuth()}async _commonHeaders(){const t={};if(this._authProvider){const r=await this._authProvider.tokens();r&&(t.Authorization=`Bearer ${r.access_token}`)}this._protocolVersion&&(t["mcp-protocol-version"]=this._protocolVersion);const n=fc(this._requestInit?.headers);return new Headers({...t,...n})}_startOrAuth(){const t=this?._eventSourceInit?.fetch??this._fetch??fetch;return new Promise((n,r)=>{this._eventSource=new er(this._url.href,{...this._eventSourceInit,fetch:async(i,s)=>{const o=await this._commonHeaders();o.set("Accept","text/event-stream");const a=await t(i,{...s,headers:o});if(a.status===401&&a.headers.has("www-authenticate")){const{resourceMetadataUrl:l,scope:c}=xs(a);this._resourceMetadataUrl=l,this._scope=c}return a}}),this._abortController=new AbortController,this._eventSource.onerror=i=>{if(i.code===401&&this._authProvider){this._authThenStart().then(n,r);return}const s=new tu(i.code,i.message,i);r(s),this.onerror?.(s)},this._eventSource.onopen=()=>{},this._eventSource.addEventListener("endpoint",i=>{const s=i;try{if(this._endpoint=new URL(s.data,this._url),this._endpoint.origin!==this._url.origin)throw new Error(`Endpoint origin does not match connection origin: ${this._endpoint.origin}`)}catch(o){r(o),this.onerror?.(o),this.close();return}n()}),this._eventSource.onmessage=i=>{const s=i;let o;try{o=sa.parse(JSON.parse(s.data))}catch(a){this.onerror?.(a);return}this.onmessage?.(o)}})}async start(){if(this._eventSource)throw new Error("SSEClientTransport already started! If using Client class, note that connect() calls start() automatically.");return await this._startOrAuth()}async finishAuth(t){if(!this._authProvider)throw new fn("No auth provider");if(await Tr(this._authProvider,{serverUrl:this._url,authorizationCode:t,resourceMetadataUrl:this._resourceMetadataUrl,scope:this._scope,fetchFn:this._fetchWithInit})!=="AUTHORIZED")throw new fn("Failed to authorize")}async close(){this._abortController?.abort(),this._eventSource?.close(),this.onclose?.()}async send(t){if(!this._endpoint)throw new Error("Not connected");try{const n=await this._commonHeaders();n.set("content-type","application/json");const r={...this._requestInit,method:"POST",headers:n,body:JSON.stringify(t),signal:this._abortController?.signal},i=await(this._fetch??fetch)(this._endpoint,r);if(!i.ok){const s=await i.text().catch(()=>null);if(i.status===401&&this._authProvider){const{resourceMetadataUrl:o,scope:a}=xs(i);if(this._resourceMetadataUrl=o,this._scope=a,await Tr(this._authProvider,{serverUrl:this._url,resourceMetadataUrl:this._resourceMetadataUrl,scope:this._scope,fetchFn:this._fetchWithInit})!=="AUTHORIZED")throw new fn;return this.send(t)}throw new Error(`Error POSTing to endpoint (HTTP ${i.status}): ${s}`)}await i.body?.cancel()}catch(n){throw this.onerror?.(n),n}}setProtocolVersion(t){this._protocolVersion=t}}const ru="mcp";class iu{constructor(t){this._url=t}start(){if(this._socket)throw new Error("WebSocketClientTransport already started! If using Client class, note that connect() calls start() automatically.");return new Promise((t,n)=>{this._socket=new WebSocket(this._url,ru),this._socket.onerror=r=>{const i="error"in r?r.error:new Error(`WebSocket error: ${JSON.stringify(r)}`);n(i),this.onerror?.(i)},this._socket.onopen=()=>{t()},this._socket.onclose=()=>{this.onclose?.()},this._socket.onmessage=r=>{let i;try{i=sa.parse(JSON.parse(r.data))}catch(s){this.onerror?.(s);return}this.onmessage?.(i)}})}async close(){this._socket?.close()}send(t){return new Promise((n,r)=>{if(!this._socket){r(new Error("Not connected"));return}this._socket?.send(JSON.stringify(t)),n()})}}class su extends dc{constructor(t,n){super(t,n)}send(t,n){const r=ou(t);return r?.type==="emit"?(this.onmessage?.(r.message),Promise.resolve()):r?.type==="suppress"?Promise.resolve():super.send(t,n)}}function ou(e){const t=e;if(!t||typeof t!="object"||!("method"in t))return null;switch(t.method){case"initialize":{const n=t?.params?.protocolVersion;return n?{type:"emit",message:{result:{protocolVersion:n,capabilities:{tools:{}},serverInfo:{name:"deco-chat-server",version:"1.0.0"}},jsonrpc:t.jsonrpc??"2.0",id:t.id}}:null}case"notifications/roots/list_changed":case"notifications/initialized":case"notifications/cancelled":case"notifications/progress":return{type:"suppress"};default:return null}}class au extends hc{constructor(t,n){super(t,n)}async listTools(t,n){return await this.request({method:"tools/list",params:t},sc,n)}}const lu=async(e,t,n)=>{const r=cu(e.connection,t,n);if(!r)throw new Error("Unknown MCP connection type");const i=new au({name:e?.name??"MCP Client",version:"1.0.0"});return await i.connect(r),{client:i}},cu=(e,t,n)=>{if(e.type==="Websocket")return new iu(new URL(e.url));if(e.type!=="SSE"&&e.type!=="HTTP")return null;const i={...e.token?{authorization:`Bearer ${e.token}`}:{},...n??{},..."headers"in e?e.headers||{}:{}};if(e.type==="SSE"){const s={requestInit:{headers:i,signal:t}};return e.token&&(s.eventSourceInit={fetch:(o,a)=>fetch(o,{...a,headers:{...i,Accept:"text/event-stream"},signal:t})}),new nu(new URL(e.url),s)}return new su(new URL(e.url),{requestInit:{headers:i,signal:t,credentials:"include"}})},Cs=e=>{try{return JSON.parse(e)}catch{return e}},zn=new Map,Ts=(e,t)=>({...e,id:e.name,inputSchema:e.inputSchema?Ae(e.inputSchema):void 0,outputSchema:e.outputSchema?Ae(e.outputSchema):void 0,execute:n=>t(n.context,e.name)});function uu(e){const t=n=>"connection"in e?lu({connection:e.connection},void 0,n):e.client;return new Proxy({},{get(n,r){if(r==="toJSON")return null;if(typeof r!="string")throw new Error("Name must be a string");if(r==="listTools")return a;async function i(l,c=r){const u=e?.debugId?.(),f=u?{"x-trace-debug-id":u}:void 0,{client:h}=await t(f),{structuredContent:m,isError:d,content:p}=await h.callTool({name:String(c),arguments:l});if(d){const S=p?.[0]?.text,O=typeof S=="string"?Cs(S):null,E=O?.code&&typeof e?.getErrorByStatusCode=="function"?e.getErrorByStatusCode(O.code,O.message,O.traceId):null;throw E||new Error(`Tool ${String(c)} returned an error: ${JSON.stringify(m??p)}`)}if(m!==void 0)return m;const y=p?.[0]?.text;return typeof y=="string"?Cs(y):void 0}async function s(){const{client:l}=await t(),{tools:c}=await l.listTools();return c}async function o(){if(!("connection"in e))return s();const l=e.connection,c=JSON.stringify(l);try{return zn.has(c)||zn.set(c,s()),await zn.get(c)}catch(u){console.error("Failed to list tools",u),zn.delete(c);return}}async function a(){return(await o()??[]).map(c=>Ts(c,i))}return i.asTool=async()=>{const c=(await o()??[]).find(u=>u.name===r);if(!c)throw new Error(`Tool ${r} not found`);return Ts(c,i)},i}})}new Proxy({},{get(e,t){return t==="toJSON"?null:t==="forConnection"?n=>fu({connection:n}):global[t]}});function fu(e){return uu(e)}const du=_e({toolName:oe().describe("Name of the tool to invoke on that connection"),transformCode:oe().optional().describe("Pure TypeScript function for data transformation of the tool call result. Must be a TypeScript file that declares the Output interface and exports a default function: `interface Output { ... } export default async function(stepInput): Output { ... }`\n The stepInput will match with the tool call outputSchema. If transformCode is not provided, the tool call result will be used as the step output.\n Providing an transformCode is recommended because it both allows you to transform the data and validate it against a JSON Schema - tools are ephemeral and may return unexpected data.")}),hu=_e({code:oe().describe(`Pure TypeScript function for data transformation. Useful to merge data from multiple steps and transform it. Must be a TypeScript file that declares the Output interface and exports a default function: \`interface Output { ... } export default async function(stepInput): Output { ... }\`
|
|
2
2
|
The stepInput is the resolved value of the references in the input field. Example:
|
|
3
3
|
{
|
|
4
4
|
"input": {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as y,e as m,c as b,j as n,cI as W,b_ as V,be as q,cJ as G,b$ as F,cL as J,c0 as X,aY as Y,aX as Z,B as K}from"./index-CV1lFX-Z.js";import{u as Q,c as z,b as D,a as E,T as I}from"./tooltip-7zLr-moN.js";import{i as U}from"./X-Cesxj0TS.js";const O=({size:i=24,color:e="currentColor",...t})=>y.createElement("svg",{viewBox:"0 0 24 24",width:i,height:i,stroke:e,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...t},y.createElement("path",{d:"M9 3v18M7.8 3h8.4c1.68 0 2.52 0 3.162.327a3 3 0 0 1 1.311 1.311C21 5.28 21 6.12 21 7.8v8.4c0 1.68 0 2.52-.327 3.162a3 3 0 0 1-1.311 1.311C18.72 21 17.88 21 16.2 21H7.8c-1.68 0-2.52 0-3.162-.327a3 3 0 0 1-1.311-1.311C3 18.72 3 17.88 3 16.2V7.8c0-1.68 0-2.52.327-3.162a3 3 0 0 1 1.311-1.311C5.28 3 6.12 3 7.8 3Z"}));O.displayName="LayoutLeft";function ee(i){const e=m.c(4);let t;e[0]!==i?({...t}=i,e[0]=i,e[1]=t):t=e[1];let s;return e[2]!==t?(s=n.jsx(V,{"data-slot":"sheet",...t}),e[2]=t,e[3]=s):s=e[3],s}function te(i){const e=m.c(4);let t;e[0]!==i?({...t}=i,e[0]=i,e[1]=t):t=e[1];let s;return e[2]!==t?(s=n.jsx(F,{"data-slot":"sheet-portal",...t}),e[2]=t,e[3]=s):s=e[3],s}function se(i){const e=m.c(8);let t,s;e[0]!==i?({className:t,...s}=i,e[0]=i,e[1]=t,e[2]=s):(t=e[1],s=e[2]);let a;e[3]!==t?(a=b("data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-50 bg-black/50",t),e[3]=t,e[4]=a):a=e[4];let l;return e[5]!==s||e[6]!==a?(l=n.jsx(X,{"data-slot":"sheet-overlay",className:a,...s}),e[5]=s,e[6]=a,e[7]=l):l=e[7],l}function ae(i){const e=m.c(20);let t,s,a,l,o;e[0]!==i?({className:s,children:t,side:l,hideCloseButton:o,...a}=i,e[0]=i,e[1]=t,e[2]=s,e[3]=a,e[4]=l,e[5]=o):(t=e[1],s=e[2],a=e[3],l=e[4],o=e[5]);const r=l===void 0?"right":l,d=o===void 0?!1:o;let u;e[6]===Symbol.for("react.memo_cache_sentinel")?(u=n.jsx(se,{}),e[6]=u):u=e[6];const c=r==="right"&&"data-[state=closed]:slide-out-to-right data-[state=open]:slide-in-from-right inset-y-0 right-0 h-full w-3/4 border-l sm:max-w-sm",p=r==="left"&&"data-[state=closed]:slide-out-to-left data-[state=open]:slide-in-from-left inset-y-0 left-0 h-full w-3/4 border-r sm:max-w-sm",f=r==="top"&&"data-[state=closed]:slide-out-to-top data-[state=open]:slide-in-from-top inset-x-0 top-0 h-auto border-b",x=r==="bottom"&&"data-[state=closed]:slide-out-to-bottom data-[state=open]:slide-in-from-bottom inset-x-0 bottom-0 h-auto border-t";let g;e[7]!==s||e[8]!==c||e[9]!==p||e[10]!==f||e[11]!==x?(g=b("bg-background data-[state=open]:animate-in data-[state=closed]:animate-out fixed z-50 flex flex-col gap-4 shadow-lg transition ease-in-out data-[state=closed]:duration-200 data-[state=open]:duration-200",c,p,f,x,s),e[7]=s,e[8]=c,e[9]=p,e[10]=f,e[11]=x,e[12]=g):g=e[12];let h;e[13]!==d?(h=!d&&n.jsxs(J,{className:"ring-offset-background focus:ring-ring data-[state=open]:bg-secondary absolute top-4 right-4 rounded-xs opacity-70 transition-opacity hover:opacity-100 focus:ring-2 focus:ring-offset-2 focus:outline-hidden disabled:pointer-events-none",children:[n.jsx(U,{className:"size-4"}),n.jsx("span",{className:"sr-only",children:"Close"})]}),e[13]=d,e[14]=h):h=e[14];let v;return e[15]!==t||e[16]!==a||e[17]!==g||e[18]!==h?(v=n.jsxs(te,{children:[u,n.jsxs(q,{"data-slot":"sheet-content",className:g,...a,children:[t,h]})]}),e[15]=t,e[16]=a,e[17]=g,e[18]=h,e[19]=v):v=e[19],v}function le(i){const e=m.c(8);let t,s;e[0]!==i?({className:t,...s}=i,e[0]=i,e[1]=t,e[2]=s):(t=e[1],s=e[2]);let a;e[3]!==t?(a=b("flex flex-col gap-1.5 p-4",t),e[3]=t,e[4]=a):a=e[4];let l;return e[5]!==s||e[6]!==a?(l=n.jsx("div",{"data-slot":"sheet-header",className:a,...s}),e[5]=s,e[6]=a,e[7]=l):l=e[7],l}function ie(i){const e=m.c(8);let t,s;e[0]!==i?({className:t,...s}=i,e[0]=i,e[1]=t,e[2]=s):(t=e[1],s=e[2]);let a;e[3]!==t?(a=b("text-foreground font-semibold",t),e[3]=t,e[4]=a):a=e[4];let l;return e[5]!==s||e[6]!==a?(l=n.jsx(W,{"data-slot":"sheet-title",className:a,...s}),e[5]=s,e[6]=a,e[7]=l):l=e[7],l}function ne(i){const e=m.c(8);let t,s;e[0]!==i?({className:t,...s}=i,e[0]=i,e[1]=t,e[2]=s):(t=e[1],s=e[2]);let a;e[3]!==t?(a=b("text-muted-foreground text-sm",t),e[3]=t,e[4]=a):a=e[4];let l;return e[5]!==s||e[6]!==a?(l=n.jsx(G,{"data-slot":"sheet-description",className:a,...s}),e[5]=s,e[6]=a,e[7]=l):l=e[7],l}const oe="15rem",re="18rem",de="4.5rem",H=y.createContext(null);function M(){const i=y.useContext(H);if(!i)throw new Error("useSidebar must be used within a SidebarProvider.");return i}function Se(i){const e=m.c(13),{children:t,defaultOpen:s}=i,a=s===void 0?!1:s,l=Q(),[o,r]=y.useState(!1);let d;e[0]!==l?(d=()=>{l&&r(fe)},e[0]=l,e[1]=d):d=e[1];const u=d,c=a?"expanded":"collapsed";let p;e[2]!==a||e[3]!==l||e[4]!==o||e[5]!==c||e[6]!==u?(p={state:c,open:a,setOpen:ce,isMobile:l,openMobile:o,setOpenMobile:r,toggleSidebar:u},e[2]=a,e[3]=l,e[4]=o,e[5]=c,e[6]=u,e[7]=p):p=e[7];const f=p;let x;e[8]!==t?(x=n.jsx(z,{delayDuration:0,children:t}),e[8]=t,e[9]=x):x=e[9];let g;return e[10]!==f||e[11]!==x?(g=n.jsx(H.Provider,{value:f,children:x}),e[10]=f,e[11]=x,e[12]=g):g=e[12],g}function ce(){}function fe(i){return!i}function ye(i){const e=m.c(14);let t,s,a,l;e[0]!==i?({className:s,style:l,children:t,...a}=i,e[0]=i,e[1]=t,e[2]=s,e[3]=a,e[4]=l):(t=e[1],s=e[2],a=e[3],l=e[4]);let o;e[5]!==l?(o={"--sidebar-width":oe,"--sidebar-width-icon":de,...l},e[5]=l,e[6]=o):o=e[6];const r=o;let d;e[7]!==s?(d=b("group/sidebar-wrapper has-data-[variant=inset]:bg-sidebar flex h-full w-full",s),e[7]=s,e[8]=d):d=e[8];let u;return e[9]!==t||e[10]!==a||e[11]!==r||e[12]!==d?(u=n.jsx("div",{"data-slot":"sidebar-wrapper",style:r,className:d,...a,children:t}),e[9]=t,e[10]=a,e[11]=r,e[12]=d,e[13]=u):u=e[13],u}function Ce(i){const e=m.c(36);let t,s,a,l,o;e[0]!==i?({side:l,variant:o,className:s,children:t,...a}=i,e[0]=i,e[1]=t,e[2]=s,e[3]=a,e[4]=l,e[5]=o):(t=e[1],s=e[2],a=e[3],l=e[4],o=e[5]);const r=l===void 0?"left":l,d=o===void 0?"sidebar":o,{isMobile:u,state:c,openMobile:p,setOpenMobile:f}=M();if(u){let P;e[6]===Symbol.for("react.memo_cache_sentinel")?(P={"--sidebar-width":re},e[6]=P):P=e[6];let k;e[7]===Symbol.for("react.memo_cache_sentinel")?(k=n.jsxs(le,{className:"sr-only",children:[n.jsx(ie,{children:"Sidebar"}),n.jsx(ne,{children:"Displays the mobile sidebar."})]}),e[7]=k):k=e[7];let $;e[8]!==t?($=n.jsx("div",{className:"flex h-full w-full flex-col",children:t}),e[8]=t,e[9]=$):$=e[9];let _;e[10]!==r||e[11]!==$?(_=n.jsxs(ae,{"data-sidebar":"sidebar","data-slot":"sidebar","data-mobile":"true",className:"bg-sidebar text-sidebar-foreground w-(--sidebar-width) p-0 [&>button]:hidden",style:P,side:r,children:[k,$]}),e[10]=r,e[11]=$,e[12]=_):_=e[12];let T;return e[13]!==p||e[14]!==a||e[15]!==f||e[16]!==_?(T=n.jsx(ee,{open:p,onOpenChange:f,...a,children:_}),e[13]=p,e[14]=a,e[15]=f,e[16]=_,e[17]=T):T=e[17],T}const x=c==="expanded",g=x?"w-(--sidebar-width)":"w-(--sidebar-width-icon)";let h;e[18]!==g?(h=b("group/sidebar peer text-sidebar-foreground hidden md:flex flex-col shrink-0 overflow-hidden",g),e[18]=g,e[19]=h):h=e[19];const v=x?void 0:"icon",C=x?"w-(--sidebar-width)":"w-(--sidebar-width-icon)";let N;e[20]!==s||e[21]!==C?(N=b("flex flex-col h-full",C,s),e[20]=s,e[21]=C,e[22]=N):N=e[22];let j;e[23]!==t?(j=n.jsx("div",{"data-sidebar":"sidebar","data-slot":"sidebar-inner",className:"bg-sidebar flex h-full w-full flex-col",children:t}),e[23]=t,e[24]=j):j=e[24];let w;e[25]!==a||e[26]!==N||e[27]!==j?(w=n.jsx("div",{"data-slot":"sidebar-container",className:N,...a,children:j}),e[25]=a,e[26]=N,e[27]=j,e[28]=w):w=e[28];let S;return e[29]!==r||e[30]!==c||e[31]!==h||e[32]!==v||e[33]!==w||e[34]!==d?(S=n.jsx("div",{className:h,"data-state":c,"data-collapsible":v,"data-variant":d,"data-side":r,"data-slot":"sidebar",children:w}),e[29]=r,e[30]=c,e[31]=h,e[32]=v,e[33]=w,e[34]=d,e[35]=S):S=e[35],S}function ue(i){const e=m.c(18);let t,s,a;e[0]!==i?({className:t,onClick:s,...a}=i,e[0]=i,e[1]=t,e[2]=s,e[3]=a):(t=e[1],s=e[2],a=e[3]);const{toggleSidebar:l}=M();let o;e[4]!==t?(o=b("size-7",t),e[4]=t,e[5]=o):o=e[5];let r;e[6]!==s||e[7]!==l?(r=x=>{s?.(x),l()},e[6]=s,e[7]=l,e[8]=r):r=e[8];let d,u;e[9]===Symbol.for("react.memo_cache_sentinel")?(d=n.jsx(O,{}),u=n.jsx("span",{className:"sr-only",children:"Toggle Sidebar"}),e[9]=d,e[10]=u):(d=e[9],u=e[10]);let c;e[11]!==a||e[12]!==o||e[13]!==r?(c=n.jsx(E,{asChild:!0,children:n.jsxs(K,{"data-sidebar":"trigger","data-slot":"sidebar-trigger",variant:"ghost",size:"icon",className:o,onClick:r,...a,children:[d,u]})}),e[11]=a,e[12]=o,e[13]=r,e[14]=c):c=e[14];let p;e[15]===Symbol.for("react.memo_cache_sentinel")?(p=n.jsxs(D,{side:"bottom",className:"flex items-center gap-1.5",children:["Collapse sidebar",n.jsx("span",{className:"flex items-center gap-0.5",children:["⌘","B"].map(pe)})]}),e[15]=p):p=e[15];let f;return e[16]!==c?(f=n.jsx(z,{delayDuration:300,children:n.jsxs(I,{children:[c,p]})}),e[16]=c,e[17]=f):f=e[17],f}function pe(i){return n.jsx("kbd",{className:"inline-flex items-center justify-center min-w-5 h-5 px-1 rounded-sm border border-white/20 bg-white/10 text-white/70 text-xs font-mono",children:i},i)}function $e(i){const e=m.c(8);let t,s;e[0]!==i?({className:t,...s}=i,e[0]=i,e[1]=t,e[2]=s):(t=e[1],s=e[2]);let a;e[3]!==t?(a=b("bg-background relative flex w-full flex-1 flex-col min-w-0","md:peer-data-[variant=inset]:m-2 md:peer-data-[variant=inset]:ml-0 md:peer-data-[variant=inset]:rounded-xl md:peer-data-[variant=inset]:shadow-sm md:peer-data-[variant=inset]:peer-data-[state=collapsed]:ml-2",t),e[3]=t,e[4]=a):a=e[4];let l;return e[5]!==s||e[6]!==a?(l=n.jsx("main",{"data-slot":"sidebar-inset",className:a,...s}),e[5]=s,e[6]=a,e[7]=l):l=e[7],l}function _e(i){const e=m.c(8);let t,s;e[0]!==i?({className:t,...s}=i,e[0]=i,e[1]=t,e[2]=s):(t=e[1],s=e[2]);let a;e[3]!==t?(a=b("flex flex-col gap-2 p-2",t),e[3]=t,e[4]=a):a=e[4];let l;return e[5]!==s||e[6]!==a?(l=n.jsx("div",{"data-slot":"sidebar-header","data-sidebar":"header",className:a,...s}),e[5]=s,e[6]=a,e[7]=l):l=e[7],l}function Pe(i){const e=m.c(8);let t,s;e[0]!==i?({className:t,...s}=i,e[0]=i,e[1]=t,e[2]=s):(t=e[1],s=e[2]);let a;e[3]!==t?(a=b("flex flex-col gap-2 p-2",t),e[3]=t,e[4]=a):a=e[4];let l;return e[5]!==s||e[6]!==a?(l=n.jsx("div",{"data-slot":"sidebar-footer","data-sidebar":"footer",className:a,...s}),e[5]=s,e[6]=a,e[7]=l):l=e[7],l}function ke(i){const e=m.c(8);let t,s;e[0]!==i?({className:t,...s}=i,e[0]=i,e[1]=t,e[2]=s):(t=e[1],s=e[2]);let a;e[3]!==t?(a=b("h-4 m-0! w-full",t),e[3]=t,e[4]=a):a=e[4];let l;return e[5]!==s||e[6]!==a?(l=n.jsx("div",{"data-sidebar":"separator",className:a,...s}),e[5]=s,e[6]=a,e[7]=l):l=e[7],l}function Te(i){const e=m.c(8);let t,s;e[0]!==i?({className:t,...s}=i,e[0]=i,e[1]=t,e[2]=s):(t=e[1],s=e[2]);let a;e[3]!==t?(a=b("flex min-h-0 flex-1 flex-col gap-2",t),e[3]=t,e[4]=a):a=e[4];let l;return e[5]!==s||e[6]!==a?(l=n.jsx("div",{"data-slot":"sidebar-content","data-sidebar":"content",className:a,...s}),e[5]=s,e[6]=a,e[7]=l):l=e[7],l}function Me(i){const e=m.c(8);let t,s;e[0]!==i?({className:t,...s}=i,e[0]=i,e[1]=t,e[2]=s):(t=e[1],s=e[2]);let a;e[3]!==t?(a=b("relative flex w-full min-w-0 flex-col px-2 py-2 md:py-0",t),e[3]=t,e[4]=a):a=e[4];let l;return e[5]!==s||e[6]!==a?(l=n.jsx("div",{"data-slot":"sidebar-group","data-sidebar":"group",className:a,...s}),e[5]=s,e[6]=a,e[7]=l):l=e[7],l}function Be(i){const e=m.c(8);let t,s;e[0]!==i?({className:t,...s}=i,e[0]=i,e[1]=t,e[2]=s):(t=e[1],s=e[2]);let a;e[3]!==t?(a=b("w-full text-sm overflow-visible",t),e[3]=t,e[4]=a):a=e[4];let l;return e[5]!==s||e[6]!==a?(l=n.jsx("div",{"data-slot":"sidebar-group-content","data-sidebar":"group-content",className:a,...s}),e[5]=s,e[6]=a,e[7]=l):l=e[7],l}function ze(i){const e=m.c(8);let t,s;e[0]!==i?({className:t,...s}=i,e[0]=i,e[1]=t,e[2]=s):(t=e[1],s=e[2]);let a;e[3]!==t?(a=b("flex w-full min-w-0 flex-col gap-1 group-data-[state=collapsed]/sidebar:items-center",t),e[3]=t,e[4]=a):a=e[4];let l;return e[5]!==s||e[6]!==a?(l=n.jsx("ul",{"data-slot":"sidebar-menu","data-sidebar":"menu",className:a,...s}),e[5]=s,e[6]=a,e[7]=l):l=e[7],l}function De(i){const e=m.c(8);let t,s;e[0]!==i?({className:t,...s}=i,e[0]=i,e[1]=t,e[2]=s):(t=e[1],s=e[2]);let a;e[3]!==t?(a=b("group/menu-item relative w-full",t),e[3]=t,e[4]=a):a=e[4];let l;return e[5]!==s||e[6]!==a?(l=n.jsx("li",{"data-slot":"sidebar-menu-item","data-sidebar":"menu-item",className:a,...s}),e[5]=s,e[6]=a,e[7]=l):l=e[7],l}const me=Z("peer/menu-button flex w-full items-center gap-2 overflow-hidden rounded-lg py-0 pr-0.5 pl-1.5 text-left text-sm outline-0 outline-sidebar-ring transition-[width,height,padding] focus-visible:outline-2 focus-visible:-outline-offset-2 active:bg-sidebar-accent active:text-sidebar-accent-foreground disabled:pointer-events-none disabled:opacity-50 group-has-data-[sidebar=menu-action]/menu-item:pr-8 aria-disabled:pointer-events-none aria-disabled:opacity-50 data-[active=true]:bg-sidebar-accent data-[active=true]:text-sidebar-accent-foreground data-[state=open]:hover:bg-sidebar-accent data-[state=open]:hover:text-sidebar-accent-foreground [&>span:last-child]:truncate [&>svg]:size-4 [&>svg]:shrink-0 [&_svg]:opacity-60 hover:[&_svg]:opacity-100",{variants:{variant:{default:"hover:bg-sidebar-accent hover:text-sidebar-accent-foreground",outline:"bg-background ring-1 ring-sidebar-border hover:bg-sidebar-accent hover:text-sidebar-accent-foreground hover:ring-sidebar-accent"},size:{default:"group-data-[state=expanded]/sidebar:h-8 group-data-[state=expanded]/sidebar:px-2 group-data-[state=collapsed]/sidebar:w-full! group-data-[state=collapsed]/sidebar:aspect-square! group-data-[state=collapsed]/sidebar:h-auto! group-data-[state=collapsed]/sidebar:p-0! group-data-[state=collapsed]/sidebar:justify-center text-sm",sm:"h-7 text-xs",lg:"h-12 text-sm p-0!"}},defaultVariants:{variant:"default",size:"default"}});function Ee(i){const e=m.c(28);let t,s,a,l,o,r,d;e[0]!==i?({asChild:a,isActive:l,variant:o,size:r,tooltip:d,className:t,...s}=i,e[0]=i,e[1]=t,e[2]=s,e[3]=a,e[4]=l,e[5]=o,e[6]=r,e[7]=d):(t=e[1],s=e[2],a=e[3],l=e[4],o=e[5],r=e[6],d=e[7]);const u=a===void 0?!1:a,c=l===void 0?!1:l,p=o===void 0?"default":o,f=r===void 0?"default":r,x=u?Y:"button",{isMobile:g}=M();let h;e[8]!==t||e[9]!==f||e[10]!==p?(h=b(me({variant:p,size:f}),t),e[8]=t,e[9]=f,e[10]=p,e[11]=h):h=e[11];let v;e[12]!==x||e[13]!==c||e[14]!==s||e[15]!==f||e[16]!==h?(v=n.jsx(x,{"data-slot":"sidebar-menu-button","data-sidebar":"menu-button","data-size":f,"data-active":c,className:h,...s}),e[12]=x,e[13]=c,e[14]=s,e[15]=f,e[16]=h,e[17]=v):v=e[17];const C=v;if(!d)return C;if(typeof d=="string"){let S;e[18]!==d?(S={children:d},e[18]=d,e[19]=S):S=e[19],d=S}let N;e[20]!==C?(N=n.jsx(E,{asChild:!0,children:C}),e[20]=C,e[21]=N):N=e[21];let j;e[22]!==g||e[23]!==d?(j=n.jsx(D,{side:"right",align:"center",hidden:g,...d}),e[22]=g,e[23]=d,e[24]=j):j=e[24];let w;return e[25]!==N||e[26]!==j?(w=n.jsxs(I,{children:[N,j]}),e[25]=N,e[26]=j,e[27]=w):w=e[27],w}const L=y.createContext(void 0),Ie=L.Provider;function B(i,e){const t=y.Children.toArray(i);for(const s of t)if(y.isValidElement(s)&&s.type===e)return s;return null}function be(i){const e=m.c(5),{children:t,className:s}=i;let a;e[0]!==s?(a=b("flex flex-col h-full w-full bg-background overflow-hidden",s),e[0]=s,e[1]=a):a=e[1];let l;return e[2]!==t||e[3]!==a?(l=n.jsx("div",{className:a,children:t}),e[2]=t,e[3]=a,e[4]=l):l=e[4],l}function xe(i){const e=m.c(17),{children:t,className:s,hideSidebarTrigger:a}=i;let l;e[0]!==t?(l=B(t,R),e[0]=t,e[1]=l):l=e[1];const o=l;let r;e[2]!==t?(r=B(t,A),e[2]=t,e[3]=r):r=e[3];const d=r;let u;e[4]!==s?(u=b("shrink-0 w-full border-b border-border/50 h-11","flex items-center justify-between gap-3 pr-2 pl-2 md:pl-4",s),e[4]=s,e[5]=u):u=e[5];let c;e[6]!==a?(c=!a&&n.jsx(ue,{className:"md:hidden shrink-0"}),e[6]=a,e[7]=c):c=e[7];let p;e[8]!==o||e[9]!==c?(p=n.jsxs("div",{className:"flex items-center gap-1 min-w-0 flex-1",children:[c,o]}),e[8]=o,e[9]=c,e[10]=p):p=e[10];let f;e[11]!==d?(f=n.jsx("div",{className:"flex items-center",children:d}),e[11]=d,e[12]=f):f=e[12];let x;return e[13]!==u||e[14]!==p||e[15]!==f?(x=n.jsxs("div",{className:u,children:[p,f]}),e[13]=u,e[14]=p,e[15]=f,e[16]=x):x=e[16],x}function R(i){const e=m.c(5),{children:t,className:s}=i;let a;e[0]!==s?(a=b("flex items-center gap-2 min-w-0 overflow-hidden",s),e[0]=s,e[1]=a):a=e[1];let l;return e[2]!==t||e[3]!==a?(l=n.jsx("div",{className:a,children:t}),e[2]=t,e[3]=a,e[4]=l):l=e[4],l}function A(i){const e=m.c(5),{children:t,className:s}=i;let a;e[0]!==s?(a=b("flex items-center gap-2 shrink-0 overflow-hidden",s),e[0]=s,e[1]=a):a=e[1];let l;return e[2]!==t||e[3]!==a?(l=n.jsx("div",{className:a,children:t}),e[2]=t,e[3]=a,e[4]=l):l=e[4],l}function he(i){const e=m.c(6),{children:t,className:s}=i,a=y.useContext(L);let l;e[0]!==s||e[1]!==a?(l=b("flex-1 overflow-auto",a,s),e[0]=s,e[1]=a,e[2]=l):l=e[2];let o;return e[3]!==t||e[4]!==l?(o=n.jsx("div",{className:l,children:t}),e[3]=t,e[4]=l,e[5]=o):o=e[5],o}function ge(i){const e=m.c(10),{children:t,actions:s,className:a}=i;let l;e[0]!==a?(l=b("flex flex-wrap items-center justify-between gap-3",a),e[0]=a,e[1]=l):l=e[1];let o;e[2]!==t?(o=n.jsx("div",{className:"text-xl font-medium min-w-0",children:t}),e[2]=t,e[3]=o):o=e[3];let r;e[4]!==s?(r=s&&n.jsx("div",{className:"flex items-center gap-2",children:s}),e[4]=s,e[5]=r):r=e[5];let d;return e[6]!==l||e[7]!==o||e[8]!==r?(d=n.jsxs("div",{className:l,children:[o,r]}),e[6]=l,e[7]=o,e[8]=r,e[9]=d):d=e[9],d}function ve(i){const e=m.c(6),{children:t,className:s,maxWidth:a}=i,l=a===void 0?"max-w-[1200px]":a;let o;e[0]!==s||e[1]!==l?(o=b("mx-auto w-full px-4 pt-8 pb-6 md:px-10 md:pt-12 md:pb-10",l,s),e[0]=s,e[1]=l,e[2]=o):o=e[2];let r;return e[3]!==t||e[4]!==o?(r=n.jsx("div",{className:o,children:t}),e[3]=t,e[4]=o,e[5]=r):r=e[5],r}const Oe=Object.assign(be,{Header:Object.assign(xe,{Left:R,Right:A}),Content:he,Title:ge,Body:ve});export{Oe as P,Se as S,ye as a,$e as b,ie as c,ae as d,ee as e,Me as f,Be as g,ze as h,O as i,Ee as j,De as k,ke as l,Te as m,Ce as n,_e as o,Pe as p,Ie as q,le as r,ne as s,M as u};
|
|
1
|
+
import{r as y,e as m,c as b,j as n,cI as W,b_ as V,be as q,cJ as G,b$ as F,cL as J,c0 as X,aY as Y,aX as Z,B as K}from"./index-Byh16eae.js";import{u as Q,c as z,b as D,a as E,T as I}from"./tooltip-D6qvPlF4.js";import{i as U}from"./X-CaSicsGt.js";const O=({size:i=24,color:e="currentColor",...t})=>y.createElement("svg",{viewBox:"0 0 24 24",width:i,height:i,stroke:e,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...t},y.createElement("path",{d:"M9 3v18M7.8 3h8.4c1.68 0 2.52 0 3.162.327a3 3 0 0 1 1.311 1.311C21 5.28 21 6.12 21 7.8v8.4c0 1.68 0 2.52-.327 3.162a3 3 0 0 1-1.311 1.311C18.72 21 17.88 21 16.2 21H7.8c-1.68 0-2.52 0-3.162-.327a3 3 0 0 1-1.311-1.311C3 18.72 3 17.88 3 16.2V7.8c0-1.68 0-2.52.327-3.162a3 3 0 0 1 1.311-1.311C5.28 3 6.12 3 7.8 3Z"}));O.displayName="LayoutLeft";function ee(i){const e=m.c(4);let t;e[0]!==i?({...t}=i,e[0]=i,e[1]=t):t=e[1];let s;return e[2]!==t?(s=n.jsx(V,{"data-slot":"sheet",...t}),e[2]=t,e[3]=s):s=e[3],s}function te(i){const e=m.c(4);let t;e[0]!==i?({...t}=i,e[0]=i,e[1]=t):t=e[1];let s;return e[2]!==t?(s=n.jsx(F,{"data-slot":"sheet-portal",...t}),e[2]=t,e[3]=s):s=e[3],s}function se(i){const e=m.c(8);let t,s;e[0]!==i?({className:t,...s}=i,e[0]=i,e[1]=t,e[2]=s):(t=e[1],s=e[2]);let a;e[3]!==t?(a=b("data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-50 bg-black/50",t),e[3]=t,e[4]=a):a=e[4];let l;return e[5]!==s||e[6]!==a?(l=n.jsx(X,{"data-slot":"sheet-overlay",className:a,...s}),e[5]=s,e[6]=a,e[7]=l):l=e[7],l}function ae(i){const e=m.c(20);let t,s,a,l,o;e[0]!==i?({className:s,children:t,side:l,hideCloseButton:o,...a}=i,e[0]=i,e[1]=t,e[2]=s,e[3]=a,e[4]=l,e[5]=o):(t=e[1],s=e[2],a=e[3],l=e[4],o=e[5]);const r=l===void 0?"right":l,d=o===void 0?!1:o;let u;e[6]===Symbol.for("react.memo_cache_sentinel")?(u=n.jsx(se,{}),e[6]=u):u=e[6];const c=r==="right"&&"data-[state=closed]:slide-out-to-right data-[state=open]:slide-in-from-right inset-y-0 right-0 h-full w-3/4 border-l sm:max-w-sm",p=r==="left"&&"data-[state=closed]:slide-out-to-left data-[state=open]:slide-in-from-left inset-y-0 left-0 h-full w-3/4 border-r sm:max-w-sm",f=r==="top"&&"data-[state=closed]:slide-out-to-top data-[state=open]:slide-in-from-top inset-x-0 top-0 h-auto border-b",x=r==="bottom"&&"data-[state=closed]:slide-out-to-bottom data-[state=open]:slide-in-from-bottom inset-x-0 bottom-0 h-auto border-t";let g;e[7]!==s||e[8]!==c||e[9]!==p||e[10]!==f||e[11]!==x?(g=b("bg-background data-[state=open]:animate-in data-[state=closed]:animate-out fixed z-50 flex flex-col gap-4 shadow-lg transition ease-in-out data-[state=closed]:duration-200 data-[state=open]:duration-200",c,p,f,x,s),e[7]=s,e[8]=c,e[9]=p,e[10]=f,e[11]=x,e[12]=g):g=e[12];let h;e[13]!==d?(h=!d&&n.jsxs(J,{className:"ring-offset-background focus:ring-ring data-[state=open]:bg-secondary absolute top-4 right-4 rounded-xs opacity-70 transition-opacity hover:opacity-100 focus:ring-2 focus:ring-offset-2 focus:outline-hidden disabled:pointer-events-none",children:[n.jsx(U,{className:"size-4"}),n.jsx("span",{className:"sr-only",children:"Close"})]}),e[13]=d,e[14]=h):h=e[14];let v;return e[15]!==t||e[16]!==a||e[17]!==g||e[18]!==h?(v=n.jsxs(te,{children:[u,n.jsxs(q,{"data-slot":"sheet-content",className:g,...a,children:[t,h]})]}),e[15]=t,e[16]=a,e[17]=g,e[18]=h,e[19]=v):v=e[19],v}function le(i){const e=m.c(8);let t,s;e[0]!==i?({className:t,...s}=i,e[0]=i,e[1]=t,e[2]=s):(t=e[1],s=e[2]);let a;e[3]!==t?(a=b("flex flex-col gap-1.5 p-4",t),e[3]=t,e[4]=a):a=e[4];let l;return e[5]!==s||e[6]!==a?(l=n.jsx("div",{"data-slot":"sheet-header",className:a,...s}),e[5]=s,e[6]=a,e[7]=l):l=e[7],l}function ie(i){const e=m.c(8);let t,s;e[0]!==i?({className:t,...s}=i,e[0]=i,e[1]=t,e[2]=s):(t=e[1],s=e[2]);let a;e[3]!==t?(a=b("text-foreground font-semibold",t),e[3]=t,e[4]=a):a=e[4];let l;return e[5]!==s||e[6]!==a?(l=n.jsx(W,{"data-slot":"sheet-title",className:a,...s}),e[5]=s,e[6]=a,e[7]=l):l=e[7],l}function ne(i){const e=m.c(8);let t,s;e[0]!==i?({className:t,...s}=i,e[0]=i,e[1]=t,e[2]=s):(t=e[1],s=e[2]);let a;e[3]!==t?(a=b("text-muted-foreground text-sm",t),e[3]=t,e[4]=a):a=e[4];let l;return e[5]!==s||e[6]!==a?(l=n.jsx(G,{"data-slot":"sheet-description",className:a,...s}),e[5]=s,e[6]=a,e[7]=l):l=e[7],l}const oe="15rem",re="18rem",de="4.5rem",H=y.createContext(null);function M(){const i=y.useContext(H);if(!i)throw new Error("useSidebar must be used within a SidebarProvider.");return i}function Se(i){const e=m.c(13),{children:t,defaultOpen:s}=i,a=s===void 0?!1:s,l=Q(),[o,r]=y.useState(!1);let d;e[0]!==l?(d=()=>{l&&r(fe)},e[0]=l,e[1]=d):d=e[1];const u=d,c=a?"expanded":"collapsed";let p;e[2]!==a||e[3]!==l||e[4]!==o||e[5]!==c||e[6]!==u?(p={state:c,open:a,setOpen:ce,isMobile:l,openMobile:o,setOpenMobile:r,toggleSidebar:u},e[2]=a,e[3]=l,e[4]=o,e[5]=c,e[6]=u,e[7]=p):p=e[7];const f=p;let x;e[8]!==t?(x=n.jsx(z,{delayDuration:0,children:t}),e[8]=t,e[9]=x):x=e[9];let g;return e[10]!==f||e[11]!==x?(g=n.jsx(H.Provider,{value:f,children:x}),e[10]=f,e[11]=x,e[12]=g):g=e[12],g}function ce(){}function fe(i){return!i}function ye(i){const e=m.c(14);let t,s,a,l;e[0]!==i?({className:s,style:l,children:t,...a}=i,e[0]=i,e[1]=t,e[2]=s,e[3]=a,e[4]=l):(t=e[1],s=e[2],a=e[3],l=e[4]);let o;e[5]!==l?(o={"--sidebar-width":oe,"--sidebar-width-icon":de,...l},e[5]=l,e[6]=o):o=e[6];const r=o;let d;e[7]!==s?(d=b("group/sidebar-wrapper has-data-[variant=inset]:bg-sidebar flex h-full w-full",s),e[7]=s,e[8]=d):d=e[8];let u;return e[9]!==t||e[10]!==a||e[11]!==r||e[12]!==d?(u=n.jsx("div",{"data-slot":"sidebar-wrapper",style:r,className:d,...a,children:t}),e[9]=t,e[10]=a,e[11]=r,e[12]=d,e[13]=u):u=e[13],u}function Ce(i){const e=m.c(36);let t,s,a,l,o;e[0]!==i?({side:l,variant:o,className:s,children:t,...a}=i,e[0]=i,e[1]=t,e[2]=s,e[3]=a,e[4]=l,e[5]=o):(t=e[1],s=e[2],a=e[3],l=e[4],o=e[5]);const r=l===void 0?"left":l,d=o===void 0?"sidebar":o,{isMobile:u,state:c,openMobile:p,setOpenMobile:f}=M();if(u){let P;e[6]===Symbol.for("react.memo_cache_sentinel")?(P={"--sidebar-width":re},e[6]=P):P=e[6];let k;e[7]===Symbol.for("react.memo_cache_sentinel")?(k=n.jsxs(le,{className:"sr-only",children:[n.jsx(ie,{children:"Sidebar"}),n.jsx(ne,{children:"Displays the mobile sidebar."})]}),e[7]=k):k=e[7];let $;e[8]!==t?($=n.jsx("div",{className:"flex h-full w-full flex-col",children:t}),e[8]=t,e[9]=$):$=e[9];let _;e[10]!==r||e[11]!==$?(_=n.jsxs(ae,{"data-sidebar":"sidebar","data-slot":"sidebar","data-mobile":"true",className:"bg-sidebar text-sidebar-foreground w-(--sidebar-width) p-0 [&>button]:hidden",style:P,side:r,children:[k,$]}),e[10]=r,e[11]=$,e[12]=_):_=e[12];let T;return e[13]!==p||e[14]!==a||e[15]!==f||e[16]!==_?(T=n.jsx(ee,{open:p,onOpenChange:f,...a,children:_}),e[13]=p,e[14]=a,e[15]=f,e[16]=_,e[17]=T):T=e[17],T}const x=c==="expanded",g=x?"w-(--sidebar-width)":"w-(--sidebar-width-icon)";let h;e[18]!==g?(h=b("group/sidebar peer text-sidebar-foreground hidden md:flex flex-col shrink-0 overflow-hidden",g),e[18]=g,e[19]=h):h=e[19];const v=x?void 0:"icon",C=x?"w-(--sidebar-width)":"w-(--sidebar-width-icon)";let N;e[20]!==s||e[21]!==C?(N=b("flex flex-col h-full",C,s),e[20]=s,e[21]=C,e[22]=N):N=e[22];let j;e[23]!==t?(j=n.jsx("div",{"data-sidebar":"sidebar","data-slot":"sidebar-inner",className:"bg-sidebar flex h-full w-full flex-col",children:t}),e[23]=t,e[24]=j):j=e[24];let w;e[25]!==a||e[26]!==N||e[27]!==j?(w=n.jsx("div",{"data-slot":"sidebar-container",className:N,...a,children:j}),e[25]=a,e[26]=N,e[27]=j,e[28]=w):w=e[28];let S;return e[29]!==r||e[30]!==c||e[31]!==h||e[32]!==v||e[33]!==w||e[34]!==d?(S=n.jsx("div",{className:h,"data-state":c,"data-collapsible":v,"data-variant":d,"data-side":r,"data-slot":"sidebar",children:w}),e[29]=r,e[30]=c,e[31]=h,e[32]=v,e[33]=w,e[34]=d,e[35]=S):S=e[35],S}function ue(i){const e=m.c(18);let t,s,a;e[0]!==i?({className:t,onClick:s,...a}=i,e[0]=i,e[1]=t,e[2]=s,e[3]=a):(t=e[1],s=e[2],a=e[3]);const{toggleSidebar:l}=M();let o;e[4]!==t?(o=b("size-7",t),e[4]=t,e[5]=o):o=e[5];let r;e[6]!==s||e[7]!==l?(r=x=>{s?.(x),l()},e[6]=s,e[7]=l,e[8]=r):r=e[8];let d,u;e[9]===Symbol.for("react.memo_cache_sentinel")?(d=n.jsx(O,{}),u=n.jsx("span",{className:"sr-only",children:"Toggle Sidebar"}),e[9]=d,e[10]=u):(d=e[9],u=e[10]);let c;e[11]!==a||e[12]!==o||e[13]!==r?(c=n.jsx(E,{asChild:!0,children:n.jsxs(K,{"data-sidebar":"trigger","data-slot":"sidebar-trigger",variant:"ghost",size:"icon",className:o,onClick:r,...a,children:[d,u]})}),e[11]=a,e[12]=o,e[13]=r,e[14]=c):c=e[14];let p;e[15]===Symbol.for("react.memo_cache_sentinel")?(p=n.jsxs(D,{side:"bottom",className:"flex items-center gap-1.5",children:["Collapse sidebar",n.jsx("span",{className:"flex items-center gap-0.5",children:["⌘","B"].map(pe)})]}),e[15]=p):p=e[15];let f;return e[16]!==c?(f=n.jsx(z,{delayDuration:300,children:n.jsxs(I,{children:[c,p]})}),e[16]=c,e[17]=f):f=e[17],f}function pe(i){return n.jsx("kbd",{className:"inline-flex items-center justify-center min-w-5 h-5 px-1 rounded-sm border border-white/20 bg-white/10 text-white/70 text-xs font-mono",children:i},i)}function $e(i){const e=m.c(8);let t,s;e[0]!==i?({className:t,...s}=i,e[0]=i,e[1]=t,e[2]=s):(t=e[1],s=e[2]);let a;e[3]!==t?(a=b("bg-background relative flex w-full flex-1 flex-col min-w-0","md:peer-data-[variant=inset]:m-2 md:peer-data-[variant=inset]:ml-0 md:peer-data-[variant=inset]:rounded-xl md:peer-data-[variant=inset]:shadow-sm md:peer-data-[variant=inset]:peer-data-[state=collapsed]:ml-2",t),e[3]=t,e[4]=a):a=e[4];let l;return e[5]!==s||e[6]!==a?(l=n.jsx("main",{"data-slot":"sidebar-inset",className:a,...s}),e[5]=s,e[6]=a,e[7]=l):l=e[7],l}function _e(i){const e=m.c(8);let t,s;e[0]!==i?({className:t,...s}=i,e[0]=i,e[1]=t,e[2]=s):(t=e[1],s=e[2]);let a;e[3]!==t?(a=b("flex flex-col gap-2 p-2",t),e[3]=t,e[4]=a):a=e[4];let l;return e[5]!==s||e[6]!==a?(l=n.jsx("div",{"data-slot":"sidebar-header","data-sidebar":"header",className:a,...s}),e[5]=s,e[6]=a,e[7]=l):l=e[7],l}function Pe(i){const e=m.c(8);let t,s;e[0]!==i?({className:t,...s}=i,e[0]=i,e[1]=t,e[2]=s):(t=e[1],s=e[2]);let a;e[3]!==t?(a=b("flex flex-col gap-2 p-2",t),e[3]=t,e[4]=a):a=e[4];let l;return e[5]!==s||e[6]!==a?(l=n.jsx("div",{"data-slot":"sidebar-footer","data-sidebar":"footer",className:a,...s}),e[5]=s,e[6]=a,e[7]=l):l=e[7],l}function ke(i){const e=m.c(8);let t,s;e[0]!==i?({className:t,...s}=i,e[0]=i,e[1]=t,e[2]=s):(t=e[1],s=e[2]);let a;e[3]!==t?(a=b("h-4 m-0! w-full",t),e[3]=t,e[4]=a):a=e[4];let l;return e[5]!==s||e[6]!==a?(l=n.jsx("div",{"data-sidebar":"separator",className:a,...s}),e[5]=s,e[6]=a,e[7]=l):l=e[7],l}function Te(i){const e=m.c(8);let t,s;e[0]!==i?({className:t,...s}=i,e[0]=i,e[1]=t,e[2]=s):(t=e[1],s=e[2]);let a;e[3]!==t?(a=b("flex min-h-0 flex-1 flex-col gap-2",t),e[3]=t,e[4]=a):a=e[4];let l;return e[5]!==s||e[6]!==a?(l=n.jsx("div",{"data-slot":"sidebar-content","data-sidebar":"content",className:a,...s}),e[5]=s,e[6]=a,e[7]=l):l=e[7],l}function Me(i){const e=m.c(8);let t,s;e[0]!==i?({className:t,...s}=i,e[0]=i,e[1]=t,e[2]=s):(t=e[1],s=e[2]);let a;e[3]!==t?(a=b("relative flex w-full min-w-0 flex-col px-2 py-2 md:py-0",t),e[3]=t,e[4]=a):a=e[4];let l;return e[5]!==s||e[6]!==a?(l=n.jsx("div",{"data-slot":"sidebar-group","data-sidebar":"group",className:a,...s}),e[5]=s,e[6]=a,e[7]=l):l=e[7],l}function Be(i){const e=m.c(8);let t,s;e[0]!==i?({className:t,...s}=i,e[0]=i,e[1]=t,e[2]=s):(t=e[1],s=e[2]);let a;e[3]!==t?(a=b("w-full text-sm overflow-visible",t),e[3]=t,e[4]=a):a=e[4];let l;return e[5]!==s||e[6]!==a?(l=n.jsx("div",{"data-slot":"sidebar-group-content","data-sidebar":"group-content",className:a,...s}),e[5]=s,e[6]=a,e[7]=l):l=e[7],l}function ze(i){const e=m.c(8);let t,s;e[0]!==i?({className:t,...s}=i,e[0]=i,e[1]=t,e[2]=s):(t=e[1],s=e[2]);let a;e[3]!==t?(a=b("flex w-full min-w-0 flex-col gap-1 group-data-[state=collapsed]/sidebar:items-center",t),e[3]=t,e[4]=a):a=e[4];let l;return e[5]!==s||e[6]!==a?(l=n.jsx("ul",{"data-slot":"sidebar-menu","data-sidebar":"menu",className:a,...s}),e[5]=s,e[6]=a,e[7]=l):l=e[7],l}function De(i){const e=m.c(8);let t,s;e[0]!==i?({className:t,...s}=i,e[0]=i,e[1]=t,e[2]=s):(t=e[1],s=e[2]);let a;e[3]!==t?(a=b("group/menu-item relative w-full",t),e[3]=t,e[4]=a):a=e[4];let l;return e[5]!==s||e[6]!==a?(l=n.jsx("li",{"data-slot":"sidebar-menu-item","data-sidebar":"menu-item",className:a,...s}),e[5]=s,e[6]=a,e[7]=l):l=e[7],l}const me=Z("peer/menu-button flex w-full items-center gap-2 overflow-hidden rounded-lg py-0 pr-0.5 pl-1.5 text-left text-sm outline-0 outline-sidebar-ring transition-[width,height,padding] focus-visible:outline-2 focus-visible:-outline-offset-2 active:bg-sidebar-accent active:text-sidebar-accent-foreground disabled:pointer-events-none disabled:opacity-50 group-has-data-[sidebar=menu-action]/menu-item:pr-8 aria-disabled:pointer-events-none aria-disabled:opacity-50 data-[active=true]:bg-sidebar-accent data-[active=true]:text-sidebar-accent-foreground data-[state=open]:hover:bg-sidebar-accent data-[state=open]:hover:text-sidebar-accent-foreground [&>span:last-child]:truncate [&>svg]:size-4 [&>svg]:shrink-0 [&_svg]:opacity-60 hover:[&_svg]:opacity-100",{variants:{variant:{default:"hover:bg-sidebar-accent hover:text-sidebar-accent-foreground",outline:"bg-background ring-1 ring-sidebar-border hover:bg-sidebar-accent hover:text-sidebar-accent-foreground hover:ring-sidebar-accent"},size:{default:"group-data-[state=expanded]/sidebar:h-8 group-data-[state=expanded]/sidebar:px-2 group-data-[state=collapsed]/sidebar:w-full! group-data-[state=collapsed]/sidebar:aspect-square! group-data-[state=collapsed]/sidebar:h-auto! group-data-[state=collapsed]/sidebar:p-0! group-data-[state=collapsed]/sidebar:justify-center text-sm",sm:"h-7 text-xs",lg:"h-12 text-sm p-0!"}},defaultVariants:{variant:"default",size:"default"}});function Ee(i){const e=m.c(28);let t,s,a,l,o,r,d;e[0]!==i?({asChild:a,isActive:l,variant:o,size:r,tooltip:d,className:t,...s}=i,e[0]=i,e[1]=t,e[2]=s,e[3]=a,e[4]=l,e[5]=o,e[6]=r,e[7]=d):(t=e[1],s=e[2],a=e[3],l=e[4],o=e[5],r=e[6],d=e[7]);const u=a===void 0?!1:a,c=l===void 0?!1:l,p=o===void 0?"default":o,f=r===void 0?"default":r,x=u?Y:"button",{isMobile:g}=M();let h;e[8]!==t||e[9]!==f||e[10]!==p?(h=b(me({variant:p,size:f}),t),e[8]=t,e[9]=f,e[10]=p,e[11]=h):h=e[11];let v;e[12]!==x||e[13]!==c||e[14]!==s||e[15]!==f||e[16]!==h?(v=n.jsx(x,{"data-slot":"sidebar-menu-button","data-sidebar":"menu-button","data-size":f,"data-active":c,className:h,...s}),e[12]=x,e[13]=c,e[14]=s,e[15]=f,e[16]=h,e[17]=v):v=e[17];const C=v;if(!d)return C;if(typeof d=="string"){let S;e[18]!==d?(S={children:d},e[18]=d,e[19]=S):S=e[19],d=S}let N;e[20]!==C?(N=n.jsx(E,{asChild:!0,children:C}),e[20]=C,e[21]=N):N=e[21];let j;e[22]!==g||e[23]!==d?(j=n.jsx(D,{side:"right",align:"center",hidden:g,...d}),e[22]=g,e[23]=d,e[24]=j):j=e[24];let w;return e[25]!==N||e[26]!==j?(w=n.jsxs(I,{children:[N,j]}),e[25]=N,e[26]=j,e[27]=w):w=e[27],w}const L=y.createContext(void 0),Ie=L.Provider;function B(i,e){const t=y.Children.toArray(i);for(const s of t)if(y.isValidElement(s)&&s.type===e)return s;return null}function be(i){const e=m.c(5),{children:t,className:s}=i;let a;e[0]!==s?(a=b("flex flex-col h-full w-full bg-background overflow-hidden",s),e[0]=s,e[1]=a):a=e[1];let l;return e[2]!==t||e[3]!==a?(l=n.jsx("div",{className:a,children:t}),e[2]=t,e[3]=a,e[4]=l):l=e[4],l}function xe(i){const e=m.c(17),{children:t,className:s,hideSidebarTrigger:a}=i;let l;e[0]!==t?(l=B(t,R),e[0]=t,e[1]=l):l=e[1];const o=l;let r;e[2]!==t?(r=B(t,A),e[2]=t,e[3]=r):r=e[3];const d=r;let u;e[4]!==s?(u=b("shrink-0 w-full border-b border-border/50 h-11","flex items-center justify-between gap-3 pr-2 pl-2 md:pl-4",s),e[4]=s,e[5]=u):u=e[5];let c;e[6]!==a?(c=!a&&n.jsx(ue,{className:"md:hidden shrink-0"}),e[6]=a,e[7]=c):c=e[7];let p;e[8]!==o||e[9]!==c?(p=n.jsxs("div",{className:"flex items-center gap-1 min-w-0 flex-1",children:[c,o]}),e[8]=o,e[9]=c,e[10]=p):p=e[10];let f;e[11]!==d?(f=n.jsx("div",{className:"flex items-center",children:d}),e[11]=d,e[12]=f):f=e[12];let x;return e[13]!==u||e[14]!==p||e[15]!==f?(x=n.jsxs("div",{className:u,children:[p,f]}),e[13]=u,e[14]=p,e[15]=f,e[16]=x):x=e[16],x}function R(i){const e=m.c(5),{children:t,className:s}=i;let a;e[0]!==s?(a=b("flex items-center gap-2 min-w-0 overflow-hidden",s),e[0]=s,e[1]=a):a=e[1];let l;return e[2]!==t||e[3]!==a?(l=n.jsx("div",{className:a,children:t}),e[2]=t,e[3]=a,e[4]=l):l=e[4],l}function A(i){const e=m.c(5),{children:t,className:s}=i;let a;e[0]!==s?(a=b("flex items-center gap-2 shrink-0 overflow-hidden",s),e[0]=s,e[1]=a):a=e[1];let l;return e[2]!==t||e[3]!==a?(l=n.jsx("div",{className:a,children:t}),e[2]=t,e[3]=a,e[4]=l):l=e[4],l}function he(i){const e=m.c(6),{children:t,className:s}=i,a=y.useContext(L);let l;e[0]!==s||e[1]!==a?(l=b("flex-1 overflow-auto",a,s),e[0]=s,e[1]=a,e[2]=l):l=e[2];let o;return e[3]!==t||e[4]!==l?(o=n.jsx("div",{className:l,children:t}),e[3]=t,e[4]=l,e[5]=o):o=e[5],o}function ge(i){const e=m.c(10),{children:t,actions:s,className:a}=i;let l;e[0]!==a?(l=b("flex flex-wrap items-center justify-between gap-3",a),e[0]=a,e[1]=l):l=e[1];let o;e[2]!==t?(o=n.jsx("div",{className:"text-xl font-medium min-w-0",children:t}),e[2]=t,e[3]=o):o=e[3];let r;e[4]!==s?(r=s&&n.jsx("div",{className:"flex items-center gap-2",children:s}),e[4]=s,e[5]=r):r=e[5];let d;return e[6]!==l||e[7]!==o||e[8]!==r?(d=n.jsxs("div",{className:l,children:[o,r]}),e[6]=l,e[7]=o,e[8]=r,e[9]=d):d=e[9],d}function ve(i){const e=m.c(6),{children:t,className:s,maxWidth:a}=i,l=a===void 0?"max-w-[1200px]":a;let o;e[0]!==s||e[1]!==l?(o=b("mx-auto w-full px-4 pt-8 pb-6 md:px-10 md:pt-12 md:pb-10",l,s),e[0]=s,e[1]=l,e[2]=o):o=e[2];let r;return e[3]!==t||e[4]!==o?(r=n.jsx("div",{className:o,children:t}),e[3]=t,e[4]=o,e[5]=r):r=e[5],r}const Oe=Object.assign(be,{Header:Object.assign(xe,{Left:R,Right:A}),Content:he,Title:ge,Body:ve});export{Oe as P,Se as S,ye as a,$e as b,ie as c,ae as d,ee as e,Me as f,Be as g,ze as h,O as i,Ee as j,De as k,ke as l,Te as m,Ce as n,_e as o,Pe as p,Ie as q,le as r,ne as s,M as u};
|