decocms 4.373.2 → 4.373.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/client/assets/{AlertCircle-D0XfIdP3.js → AlertCircle-NKpIdBKl.js} +1 -1
- package/dist/client/assets/{AreaChart-BahcMnDC.js → AreaChart-Bm-WOd7b.js} +1 -1
- package/dist/client/assets/{ArrowLeft-COesgQ7q.js → ArrowLeft-BKx_QTJr.js} +1 -1
- package/dist/client/assets/{ArrowRight-CnMpegh6.js → ArrowRight-8mLQGGMI.js} +1 -1
- package/dist/client/assets/{ArrowUp-17ZWJBkC.js → ArrowUp-BgjnqmUz.js} +1 -1
- package/dist/client/assets/{CartesianChart-DqSaDs52.js → CartesianChart-CyfhriNO.js} +1 -1
- package/dist/client/assets/{CheckCircle-GwUJIVVh.js → CheckCircle-DBlA9wkb.js} +1 -1
- package/dist/client/assets/{ChevronUp-CodzCI7T.js → ChevronUp-BAQXOf5D.js} +1 -1
- package/dist/client/assets/{Copy01-CrFZhFXo.js → Copy01-wurPIobv.js} +1 -1
- package/dist/client/assets/{CreditCard01-DDojC3kk.js → CreditCard01-DjPXzBq6.js} +1 -1
- package/dist/client/assets/{DotsVertical-DMzYFBsd.js → DotsVertical-Bx5qjzcz.js} +1 -1
- package/dist/client/assets/{Download01-B93GUT2-.js → Download01-BWFtS53v.js} +1 -1
- package/dist/client/assets/{ErrorBarContext-BUk8y7Bj.js → ErrorBarContext-DQtaxwUD.js} +1 -1
- package/dist/client/assets/{Eye-Bxxku7SE.js → Eye-BD0ZbSdl.js} +1 -1
- package/dist/client/assets/{Globe01-DjdW3vEO.js → Globe01-0DpEacUx.js} +1 -1
- package/dist/client/assets/{Globe04-1G-_QSZW.js → Globe04-D59f7pGB.js} +1 -1
- package/dist/client/assets/{Image01-DPvj49a-.js → Image01-BUYhMNkS.js} +1 -1
- package/dist/client/assets/{Key01-O_Ykzy8v.js → Key01-BvLdmCTc.js} +1 -1
- package/dist/client/assets/{LayoutLeft-Cr5_A1QG.js → LayoutLeft-CyJFqp-6.js} +1 -1
- package/dist/client/assets/{Line-aFR7lShe.js → Line-BeN-bY3Y.js} +1 -1
- package/dist/client/assets/{Link01-D8T6mRIR.js → Link01-qIayyFAq.js} +1 -1
- package/dist/client/assets/{LinkExternal01-CWPNoGQ_.js → LinkExternal01-hkxOMKQE.js} +1 -1
- package/dist/client/assets/{Monitor01-CQaKbr3c.js → Monitor01-DyfIXCt5.js} +1 -1
- package/dist/client/assets/{Package-Cd3aVeK8.js → Package-EQg-wMAD.js} +1 -1
- package/dist/client/assets/{Palette-HRmzWYeK.js → Palette-DI15yG1R.js} +1 -1
- package/dist/client/assets/{Play-CaxaoMwA.js → Play-Cg9yqLoQ.js} +1 -1
- package/dist/client/assets/{Plus-BjOenFFb.js → Plus-BKjrQCsd.js} +1 -1
- package/dist/client/assets/{SearchLg-CT-Vntfj.js → SearchLg-RqwylEUM.js} +1 -1
- package/dist/client/assets/{SearchMd-C6gkQ2l2.js → SearchMd-I-u-Ppkp.js} +1 -1
- package/dist/client/assets/{Sector-B-fHBulW.js → Sector-C46Vk0wT.js} +1 -1
- package/dist/client/assets/{Settings02-DH86cX_B.js → Settings02-DJVGKnwW.js} +1 -1
- package/dist/client/assets/{Share07-Bw4Wicv2.js → Share07-adzWfg3s.js} +1 -1
- package/dist/client/assets/{Stars01-B1kYoDFp.js → Stars01-BEbgNJbY.js} +1 -1
- package/dist/client/assets/{Sun-kycCorOO.js → Sun-YVYc7YRc.js} +1 -1
- package/dist/client/assets/{Tool01-iak9ZtFE.js → Tool01-DDTjazFm.js} +1 -1
- package/dist/client/assets/{Tool02-CFu103hl.js → Tool02-BLokvBBs.js} +1 -1
- package/dist/client/assets/{Trash01-CpN6r-a0.js → Trash01-VGFb49EH.js} +1 -1
- package/dist/client/assets/{TrendUp01-DlYmFZ7k.js → TrendUp01-BPu5TWOk.js} +1 -1
- package/dist/client/assets/{Upload01-DkDsqCWe.js → Upload01-Cv7tN2NN.js} +1 -1
- package/dist/client/assets/{User01-CmNzW4kH.js → User01-BI5R-4Xj.js} +1 -1
- package/dist/client/assets/{UserSquare-1_FC93GE.js → UserSquare-C_kKkH0n.js} +1 -1
- package/dist/client/assets/{Users01-CVhfgklM.js → Users01-DVg45Kv0.js} +1 -1
- package/dist/client/assets/{X-DTaqHNcB.js → X-CvjnZl5e.js} +1 -1
- package/dist/client/assets/{XCircle-BR8ZZHlj.js → XCircle-CB3Q-O1t.js} +1 -1
- package/dist/client/assets/{XClose-VLid_ZSM.js → XClose-l9OyLGUl.js} +1 -1
- package/dist/client/assets/{Zap-D3d1wpzw.js → Zap-UqD0_RZa.js} +1 -1
- package/dist/client/assets/{ZoomOut-B3S7N50e.js → ZoomOut-Cq1zMqoM.js} +1 -1
- package/dist/client/assets/{access-gate-DAO7tJ5A.js → access-gate-eZrCTx42.js} +1 -1
- package/dist/client/assets/{add-connection-dialog-CaHZ3eeK.js → add-connection-dialog-CCnr4x54.js} +1 -1
- package/dist/client/assets/{agent-analytics-CzbWclRj.js → agent-analytics-BHAmS_Vv.js} +1 -1
- package/dist/client/assets/agent-app-0Lj8xuLI.js +1 -0
- package/dist/client/assets/{agent-assets-Dfpjbzyj.js → agent-assets-Dl566Cx2.js} +1 -1
- package/dist/client/assets/{agent-automation-C8r5_lAR.js → agent-automation-ZRwCzRyz.js} +1 -1
- package/dist/client/assets/{agent-automations-BSaV8k3Y.js → agent-automations-CcGv--oW.js} +1 -1
- package/dist/client/assets/{agent-connect-sources-AkHuiIU0.js → agent-connect-sources-DOCL0L4U.js} +1 -1
- package/dist/client/assets/agent-deck-EC_2q0-4.js +1 -0
- package/dist/client/assets/{agent-e2e-CjCqLXH1.js → agent-e2e-BheTu3sG.js} +1 -1
- package/dist/client/assets/{agent-experiments-4inK9Pvj.js → agent-experiments-DySEMnSa.js} +1 -1
- package/dist/client/assets/agent-file-CDMSSq77.js +1 -0
- package/dist/client/assets/{agent-git-BZmL1C91.js → agent-git-CGVI6Aq_.js} +1 -1
- package/dist/client/assets/{agent-hosting-CP9gImki.js → agent-hosting-CuK5vWln.js} +1 -1
- package/dist/client/assets/{agent-icon-D5Ih-I28.js → agent-icon-Du4foZ5w.js} +1 -1
- package/dist/client/assets/agent-library-file-CVu7KBHy.js +1 -0
- package/dist/client/assets/{agent-monitor-D7bE1AUL.js → agent-monitor-GtldlQaQ.js} +1 -1
- package/dist/client/assets/{agent-overview-C5zU0xJO.js → agent-overview-CV_KF9Yq.js} +1 -1
- package/dist/client/assets/agent-settings-S0BObv95.js +1 -0
- package/dist/client/assets/{agent-site-editor-BRzwUORk.js → agent-site-editor-DwI3mXwZ.js} +1 -1
- package/dist/client/assets/agent-site-editor-code-DHn9ldlr.js +2 -0
- package/dist/client/assets/{agent-site-editor-content-Da0JfE-w.js → agent-site-editor-content-B-s4vnUX.js} +2 -2
- package/dist/client/assets/{agent-site-editor-preview-DqMQfEJz.js → agent-site-editor-preview-BUdForMN.js} +3 -3
- package/dist/client/assets/agent-view-CMVA1gTC.js +1 -0
- package/dist/client/assets/{agent-view-guard-CmXIeKCe.js → agent-view-guard-O3WyIY56.js} +1 -1
- package/dist/client/assets/{agents-list-wHHXJTl8.js → agents-list-Bb_RX3Ji.js} +1 -1
- package/dist/client/assets/{ai-providers-COexxMGY.js → ai-providers-DDzOPCjm.js} +1 -1
- package/dist/client/assets/{alert-C_EPjsLF.js → alert-CXDlDd5b.js} +1 -1
- package/dist/client/assets/{alert-dialog-D6rlFoy0.js → alert-dialog-D2J-kRAV.js} +1 -1
- package/dist/client/assets/api-keys-CKnoL6XY.js +1 -0
- package/dist/client/assets/{api-keys-o45lgGkw.js → api-keys-DOy--osE.js} +1 -1
- package/dist/client/assets/app-editor-BHGu8CuE.js +1 -0
- package/dist/client/assets/{asset-utils-BG24FUsq.js → asset-utils-Bl8mgxfa.js} +1 -1
- package/dist/client/assets/{auth-B_QE3yd2.js → auth-DoQ4Nalq.js} +1 -1
- package/dist/client/assets/{auth-catchall-BM8U6OhG.js → auth-catchall-D5w-ZyXF.js} +1 -1
- package/dist/client/assets/{auth-entry-CdieewWf.js → auth-entry-DBl5DaPH.js} +1 -1
- package/dist/client/assets/{auth-split-layout-rKTEf0Lh.js → auth-split-layout-BgPxcBcB.js} +1 -1
- package/dist/client/assets/{authenticate-and-persist-oauth-Cm242zr2.js → authenticate-and-persist-oauth-CMWIzBXQ.js} +1 -1
- package/dist/client/assets/{automation-list-row-DDeJYMHS.js → automation-list-row-CdHBSjU2.js} +1 -1
- package/dist/client/assets/{automation-runs-BGXJk3-4.js → automation-runs-DkQGSYfz.js} +1 -1
- package/dist/client/assets/{automations-BhhOtnrs.js → automations-rIGMTqYL.js} +1 -1
- package/dist/client/assets/{autosend-DtYV6o0l.js → autosend-Bln98kNi.js} +1 -1
- package/dist/client/assets/{avatar-Dwn9Bjsb.js → avatar-1Yn634Bu.js} +1 -1
- package/dist/client/assets/{badge-BSirYRuD.js → badge-BMrNoDQF.js} +1 -1
- package/dist/client/assets/{block-document-DjxI0Nln.js → block-document-B0bO5MdC.js} +1 -1
- package/dist/client/assets/{blocks-preview-workspace-context-BwjlsTrq.js → blocks-preview-workspace-context-okcOywiO.js} +1 -1
- package/dist/client/assets/{breadcrumb-BpbnoaV3.js → breadcrumb-CzmrQK1U.js} +1 -1
- package/dist/client/assets/{buckets-DdptE4Pj.js → buckets-D85bhcTG.js} +1 -1
- package/dist/client/assets/{build-improve-prompt-doc-CIkgt5Ml.js → build-improve-prompt-doc-Jx4Nw8lc.js} +1 -1
- package/dist/client/assets/{bulk-category-panel-BUvAK76e.js → bulk-category-panel-Cpa3qfBq.js} +1 -1
- package/dist/client/assets/{calendar-Bhg3W8Dv.js → calendar-CDf47KON.js} +1 -1
- package/dist/client/assets/{capability-load-error-l-yxDu1W.js → capability-load-error-CG1OQua7.js} +1 -1
- package/dist/client/assets/category-editor-BzcQSv3B.js +1 -0
- package/dist/client/assets/{chart-B7hxFGKr.js → chart-Bcix-phJ.js} +1 -1
- package/dist/client/assets/{chat-context-CVZ1rNGo.js → chat-context-WkB72QDr.js} +1 -1
- package/dist/client/assets/{chat-draft-UIE-uNFd.js → chat-draft-anvjkrXf.js} +1 -1
- package/dist/client/assets/{checkbox-VSstjUSb.js → checkbox-Yo-_CoUr.js} +1 -1
- package/dist/client/assets/{choose-editor-DD3-fBUp.js → choose-editor-j32E7S6T.js} +1 -1
- package/dist/client/assets/{cli-auth-success-LIJhoLzG.js → cli-auth-success-Bz3RxiUp.js} +1 -1
- package/dist/client/assets/{client-icons-D8SzN11F.js → client-icons-BL2yc5kE.js} +1 -1
- package/dist/client/assets/{collapsible-BX137q_-.js → collapsible-Cz7g8j4s.js} +1 -1
- package/dist/client/assets/{collection-detail-Brbyx-hM.js → collection-detail-ChcpgbQd.js} +1 -1
- package/dist/client/assets/{collection-display-button-LAyYKy93.js → collection-display-button-Cqq95Rk5.js} +1 -1
- package/dist/client/assets/{collection-search-Dvf73igt.js → collection-search-DFM5AYUG.js} +1 -1
- package/dist/client/assets/{collection-table-wrapper-_ZnQA9Nx.js → collection-table-wrapper-DxZT2IDQ.js} +1 -1
- package/dist/client/assets/{collection-tabs-BW0egx-_.js → collection-tabs-CU5BwvHd.js} +1 -1
- package/dist/client/assets/{combobox-D6GclaQ-.js → combobox-5QbF4j2b.js} +1 -1
- package/dist/client/assets/{command-Dsz0XoYc.js → command-CY_32gBM.js} +1 -1
- package/dist/client/assets/{companion-mcps-section-D7ntAaGF.js → companion-mcps-section-C5Ce-Ae8.js} +1 -1
- package/dist/client/assets/{connect-ChX83wmI.js → connect-VHpAEDVp.js} +1 -1
- package/dist/client/assets/{connect-layout-SP9zSVi3.js → connect-layout-DosY7Ren.js} +1 -1
- package/dist/client/assets/{connection-2MR1zroe.js → connection-BtAmcsWV.js} +1 -1
- package/dist/client/assets/{connection-card-B5yTdNvS.js → connection-card-DNLyrdBM.js} +1 -1
- package/dist/client/assets/{connection-detail-DKOxQWbq.js → connection-detail-ByWc2VaQ.js} +1 -1
- package/dist/client/assets/{connection-form-helpers-PrMbwr2L.js → connection-form-helpers-pqXyLS21.js} +1 -1
- package/dist/client/assets/{connections-lQVX-uGO.js → connections-BLrf_knq.js} +1 -1
- package/dist/client/assets/{create-organization-dialog-Ccojws8S.js → create-organization-dialog-DqGp97lF.js} +1 -1
- package/dist/client/assets/{decofile-api-DygXY02K.js → decofile-api-C6MVAHgF.js} +1 -1
- package/dist/client/assets/{decopilot-rj_BJ_Z1.js → decopilot-C2LtkKnC.js} +1 -1
- package/dist/client/assets/{dialog-BKhaq-Xf.js → dialog-uPTcsM6n.js} +1 -1
- package/dist/client/assets/{discover-C_imFiZx.js → discover-D15TnXT7.js} +1 -1
- package/dist/client/assets/{domain-settings-CUKpZjNV.js → domain-settings-C4iSYJi_.js} +1 -1
- package/dist/client/assets/{download-app-dialog-wNu8nmu1.js → download-app-dialog-CSAHR0v5.js} +1 -1
- package/dist/client/assets/{drawer-CCmZWflK.js → drawer-CJhbJSjB.js} +1 -1
- package/dist/client/assets/{editor-DMij_Pa1.js → editor-DhWDdB15.js} +1 -1
- package/dist/client/assets/{empty-state-BDpfsfUL.js → empty-state-CvynDoal.js} +1 -1
- package/dist/client/assets/{empty-state-DiRnF-wA.js → empty-state-DATmbbqz.js} +1 -1
- package/dist/client/assets/{extract-connection-data-Bdk8iF2q.js → extract-connection-data-C-_k_HrX.js} +1 -1
- package/dist/client/assets/{feature-gate-KPNWzkBp.js → feature-gate-NGY-PlEE.js} +1 -1
- package/dist/client/assets/{feature-paywall-B3_no1lb.js → feature-paywall-C-R3YJVm.js} +1 -1
- package/dist/client/assets/{file-explorer-oIhs2jyB.js → file-explorer-CBVvygyV.js} +1 -1
- package/dist/client/assets/{file-preview-BFDgPeRr.js → file-preview-BQWchARE.js} +1 -1
- package/dist/client/assets/{file-share-button-7xy_ju8b.js → file-share-button-D6ndnz7e.js} +1 -1
- package/dist/client/assets/{file-type-icon-Co9lETmZ.js → file-type-icon-x1wD28_F.js} +1 -1
- package/dist/client/assets/{folder-icon-CPH1Bszw.js → folder-icon-BsGi9z8O.js} +1 -1
- package/dist/client/assets/{form-CxKBX2E3.js → form-CzXfgfFr.js} +1 -1
- package/dist/client/assets/{gateway-client-B8HHtBA6.js → gateway-client-_lcPratN.js} +1 -1
- package/dist/client/assets/{general-BXQ_6idC.js → general-CLxa6dw_.js} +1 -1
- package/dist/client/assets/{github-icon-DSeg1rga.js → github-icon-DD7YJLb0.js} +1 -1
- package/dist/client/assets/{home-FAOklPf6.js → home-Cc_gG_k0.js} +1 -1
- package/dist/client/assets/{hooks-CFjlhRX0.js → hooks-BDNT0Adb.js} +1 -1
- package/dist/client/assets/{hooks-BFlZlUD7.js → hooks-DdW3hvoh.js} +1 -1
- package/dist/client/assets/{icon-button-_3vMPXZp.js → icon-button-B9TVjSua.js} +1 -1
- package/dist/client/assets/{index-B3clFfYi.js → index--5W-89Xn.js} +1 -1
- package/dist/client/assets/{index-Coo4IGyG.js → index-Bb2NSQTG.js} +1 -1
- package/dist/client/assets/{index-BwwpOrcS.js → index-C5oMfVw1.js} +1 -1
- package/dist/client/assets/{index-CV2G6XgT.js → index-CQcZAkPo.js} +1 -1
- package/dist/client/assets/{index-DZmKVVGY.js → index-CdCeTCag.js} +1 -1
- package/dist/client/assets/{index-CC7J7MsT.js → index-DXBmCj7V.js} +2 -2
- package/dist/client/assets/{index-BrLZxE6-.js → index-DlTwltzZ.js} +1 -1
- package/dist/client/assets/{index-DoCuIH7r.js → index-DuEn4YkZ.js} +1 -1
- package/dist/client/assets/{index-Ci8CqfCi.js → index-Dud89Ecl.js} +1 -1
- package/dist/client/assets/{index-zFkCX32V.js → index-Oih4fNwt.js} +1 -1
- package/dist/client/assets/{index-D2HOssRq.js → index-U6uQHeCm.js} +1 -1
- package/dist/client/assets/{index-BcfYNZk_.js → index-VAuix8Ds.js} +1 -1
- package/dist/client/assets/{index-WfTG300W.js → index-VD5I0PAu.js} +1 -1
- package/dist/client/assets/{index-CxsDd08k.js → index-_1eIUhNB.js} +1 -1
- package/dist/client/assets/{index-redirect-BV59ZcWQ.js → index-redirect-BhYkN3DP.js} +1 -1
- package/dist/client/assets/{infiniteQueryObserver-CKT-6XMq.js → infiniteQueryObserver-DhQG5Ba-.js} +1 -1
- package/dist/client/assets/{infra-billing-RcXbwjta.js → infra-billing-CIY_y-NM.js} +1 -1
- package/dist/client/assets/{input-DSV_9cOM.js → input-CA3NO5_t.js} +1 -1
- package/dist/client/assets/{input-QKe7l082.js → input-Cl33QWb6.js} +1 -1
- package/dist/client/assets/{input-X38P96BY.js → input-DJ90IYpm.js} +1 -1
- package/dist/client/assets/{integration-icon-BARnXRTY.js → integration-icon-CAyUCGPQ.js} +1 -1
- package/dist/client/assets/{label-YKssz_GS.js → label-C_cX51We.js} +1 -1
- package/dist/client/assets/{last-preview-page-D5EFEwR4.js → last-preview-page-DolafzDL.js} +1 -1
- package/dist/client/assets/{layout-UcqeKFE9.js → layout-BDvTf5Y1.js} +1 -1
- package/dist/client/assets/{legacy-agents-deep-BYo-BuCs.js → legacy-agents-deep-CovYAG5o.js} +1 -1
- package/dist/client/assets/{legacy-main-redirect-NyVTUirL.js → legacy-main-redirect-DakI8WgO.js} +1 -1
- package/dist/client/assets/{library-FX2TKWir.js → library-CQOC6rOe.js} +1 -1
- package/dist/client/assets/{login-gigmbDXu.js → login-CzeMsg8T.js} +1 -1
- package/dist/client/assets/{markdown-tOSThun8.js → markdown-CqOP0_5N.js} +1 -1
- package/dist/client/assets/{mcp-app-renderer-c3JU3ROq.js → mcp-app-renderer-BrIoKm0G.js} +1 -1
- package/dist/client/assets/{mcp-oauth-Cr_ZflCp.js → mcp-oauth-ZZeDQKuh.js} +1 -1
- package/dist/client/assets/{members-Cd4baVfz.js → members-8jDg9Gt8.js} +1 -1
- package/dist/client/assets/{message-templates-Pr7m4Pgn.js → message-templates-D5TTMXdz.js} +1 -1
- package/dist/client/assets/{mini-report-page-0G8UQBMn.js → mini-report-page-VIPIzU0p.js} +1 -1
- package/dist/client/assets/{mock-board-Dw3AKqte.js → mock-board-DNOBo32D.js} +3 -3
- package/dist/client/assets/{monaco-editor-BhkNNN8A.js → monaco-editor-D3gyKeW5.js} +1 -1
- package/dist/client/assets/{monitoring-stats-row-D3wuHD5K.js → monitoring-stats-row-B2mHnjHP.js} +1 -1
- package/dist/client/assets/{multi-select-Bw9uE0vh.js → multi-select-DWjNtzij.js} +1 -1
- package/dist/client/assets/{mustache-BMe4E-3i.js → mustache-ChbLhy-e.js} +1 -1
- package/dist/client/assets/{oauth-callback-Ckn9o5ws.js → oauth-callback-PixJQkgi.js} +1 -1
- package/dist/client/assets/{oauth-callback-ai-provider-B7dYzzRe.js → oauth-callback-ai-provider-Bo-B7c2F.js} +1 -1
- package/dist/client/assets/{onboarding-BtLLloCy.js → onboarding-Ci-02n6u.js} +1 -1
- package/dist/client/assets/{optimistic-project-sidebar-views-8yO8-q3h.js → optimistic-project-sidebar-views-DXHATWeY.js} +1 -1
- package/dist/client/assets/{org-file-open-context-k2zY7W2A.js → org-file-open-context-B3uxBbrN.js} +1 -1
- package/dist/client/assets/{organization-choice-oi5kPDHh.js → organization-choice-DTNV4OA3.js} +1 -1
- package/dist/client/assets/{orgs-C8VfgzyW.js → orgs-T1j1ZJVH.js} +1 -1
- package/dist/client/assets/{page-seo-form-D-yemID7.js → page-seo-form-CEP8eX1I.js} +1 -1
- package/dist/client/assets/{pair-CbUh0olY.js → pair-BFIjmC4W.js} +1 -1
- package/dist/client/assets/{plan-ladder-DR8Snnfh.js → plan-ladder-BGfca4Fl.js} +1 -1
- package/dist/client/assets/{popover-tYq49O5I.js → popover-B1-bCr3Y.js} +1 -1
- package/dist/client/assets/{post-calendar-n3g3NXQN.js → post-calendar-BJNEmWBL.js} +1 -1
- package/dist/client/assets/{post-editor-BCki1XwL.js → post-editor-CXDWBybn.js} +1 -1
- package/dist/client/assets/{preview-content-BEe_g5h_.js → preview-content-BJxZz0wL.js} +1 -1
- package/dist/client/assets/{preview-dialog-B88KWjD7.js → preview-dialog-tXexYYvy.js} +1 -1
- package/dist/client/assets/{primitives-DvNXO9ko.js → primitives-CVINQDcd.js} +1 -1
- package/dist/client/assets/{profile-Dn8W-1_J.js → profile-BDVO0CZL.js} +1 -1
- package/dist/client/assets/{project-app-view-CHIgEuQJ.js → project-app-view-D5WewSj0.js} +1 -1
- package/dist/client/assets/{project-feed-BeVLcst-.js → project-feed-BJK1cP5l.js} +1 -1
- package/dist/client/assets/{project-icon-BuTPt9Ec.js → project-icon-I77gr-pK.js} +1 -1
- package/dist/client/assets/project-reports-C-M11Ewx.js +1 -0
- package/dist/client/assets/project-tasks-DTM5l8Na.js +1 -0
- package/dist/client/assets/{prompts-BrLG0HnD.js → prompts-CMF-VFXI.js} +1 -1
- package/dist/client/assets/record-editor-D668-cnv.js +1 -0
- package/dist/client/assets/{redirect-editor-DQh1NXo4.js → redirect-editor-DIpeG6wi.js} +1 -1
- package/dist/client/assets/registry-BL1mut8w.js +2 -0
- package/dist/client/assets/{registry-layout-tLc7-FpU.js → registry-layout-BmUtYGzz.js} +1 -1
- package/dist/client/assets/{reports-Bgxd82xF.js → reports-B5M0xDyn.js} +1 -1
- package/dist/client/assets/reports-DZF0Eu6T.js +1 -0
- package/dist/client/assets/{reports-onboarding-BORIliYh.js → reports-onboarding-pRaIN0gW.js} +1 -1
- package/dist/client/assets/{reports-tab-3yvhtU-e.js → reports-tab-b87PNkNv.js} +2 -2
- package/dist/client/assets/{repositories-DnQQ93Vy.js → repositories-J4P1iWK3.js} +1 -1
- package/dist/client/assets/{repository-import-picker-B1zE1wEx.js → repository-import-picker-CxfUH2IT.js} +1 -1
- package/dist/client/assets/{repository-picker-DMUsWfjy.js → repository-picker-C84r9pEi.js} +1 -1
- package/dist/client/assets/{require-capability-B9l2cjC7.js → require-capability-nXjtpUGm.js} +1 -1
- package/dist/client/assets/{required-auth-layout-qQ6V67AS.js → required-auth-layout-D6L2B3lC.js} +1 -1
- package/dist/client/assets/{reset-password-CzGwWM54.js → reset-password-CnmRONVL.js} +1 -1
- package/dist/client/assets/{resizable-c-JEmBrU.js → resizable-DGvuTNz4.js} +1 -1
- package/dist/client/assets/{review-settings-CBDmCs9f.js → review-settings-0gzJBFQk.js} +1 -1
- package/dist/client/assets/{rich-text-link-control-B4QybUls.js → rich-text-link-control-D1jkHV9n.js} +1 -1
- package/dist/client/assets/{roles-9Q5Zr1_l.js → roles-D0xiAKmZ.js} +1 -1
- package/dist/client/assets/{route-D9feMXoH.js → route-BXepAEc1.js} +1 -1
- package/dist/client/assets/{route-Cyp-PzpR.js → route-CRwg4ev7.js} +1 -1
- package/dist/client/assets/{route-DrZOVBG5.js → route-D4AIZCoB.js} +1 -1
- package/dist/client/assets/{route-page-header-BzWw0nja.js → route-page-header-DPnz1U8f.js} +1 -1
- package/dist/client/assets/{runnable-block-editor-nQ69L6jb.js → runnable-block-editor-DPGvOiWb.js} +1 -1
- package/dist/client/assets/{sandbox-lifecycle-context-DLKr6QBG.js → sandbox-lifecycle-context-BrifGyM7.js} +1 -1
- package/dist/client/assets/{schema-CStbpjQf.js → schema-CQ48zDTU.js} +1 -1
- package/dist/client/assets/{scroll-area-BLDUQh9N.js → scroll-area-SUblEurA.js} +1 -1
- package/dist/client/assets/{search-input-MlNEh696.js → search-input-DN1HxMQM.js} +1 -1
- package/dist/client/assets/{search-toggle-SUy-5Oe0.js → search-toggle-0BP5lkY1.js} +1 -1
- package/dist/client/assets/{secrets-CEw0kB_t.js → secrets-BaKuwycc.js} +1 -1
- package/dist/client/assets/{sections-editor-l8Cc724N.js → sections-editor-AVazcTA0.js} +1 -1
- package/dist/client/assets/{select-C_C7jdl-.js → select-DOrOm388.js} +1 -1
- package/dist/client/assets/{select-model-FW_XGeEU.js → select-model-BYr7h8L7.js} +1 -1
- package/dist/client/assets/{seo-editor-BhZJvD6-.js → seo-editor-Byp247PA.js} +1 -1
- package/dist/client/assets/{separator-D-DaNCb-.js → separator-CId9iV2J.js} +1 -1
- package/dist/client/assets/{settings-tab-DhuuexRq.js → settings-tab-BG8Rq5w6.js} +1 -1
- package/dist/client/assets/{sheet-B5ncClVO.js → sheet-DlPfrw9X.js} +1 -1
- package/dist/client/assets/{shell-layout-p-WJ7uxl.js → shell-layout-BDka9RLc.js} +1 -1
- package/dist/client/assets/{sidebar-BlfpAzXY.js → sidebar-6rO43IUN.js} +1 -1
- package/dist/client/assets/{skill-preview-CeIBKDR2.js → skill-preview-Co5VzFcl.js} +1 -1
- package/dist/client/assets/{skills-Cpf0zAbB.js → skills-BjII2RGG.js} +1 -1
- package/dist/client/assets/{sso-CYe8kGWS.js → sso-DisHvnNZ.js} +1 -1
- package/dist/client/assets/{store-DDl3lPqK.js → store-CFvcGu_A.js} +1 -1
- package/dist/client/assets/store-registry-ap1IeTES.js +2 -0
- package/dist/client/assets/{switch-C_FmZ5Us.js → switch-BV-MyRQN.js} +1 -1
- package/dist/client/assets/{synced-repos-DHbM7OOb.js → synced-repos-DQ8WQsrQ.js} +1 -1
- package/dist/client/assets/{table-mH2G1tkg.js → table-zCmjz1mf.js} +1 -1
- package/dist/client/assets/{tabs-jjUOgDeE.js → tabs-tFCunu6d.js} +1 -1
- package/dist/client/assets/{task-board-BtEMyO1f.js → task-board-D3lC_1Th.js} +1 -1
- package/dist/client/assets/{task-route-BaALoopn.js → task-route-Bcy3o1uq.js} +1 -1
- package/dist/client/assets/{task-status-CCMsckzm.js → task-status-DZ2zcnv8.js} +1 -1
- package/dist/client/assets/{taskboard-analytics-CzQSxt8I.js → taskboard-analytics-DN3ZXOV0.js} +1 -1
- package/dist/client/assets/tasks-C6FPIHKX.js +1 -0
- package/dist/client/assets/{tasks-K4e2STZ0.js → tasks-fYEHHw5V.js} +1 -1
- package/dist/client/assets/{textarea-B7wqTmSc.js → textarea-D-6K9r19.js} +1 -1
- package/dist/client/assets/{thread-button-B9U3gqvP.js → thread-button-DD23ms1j.js} +1 -1
- package/dist/client/assets/{thread-intent-DZx7N_NL.js → thread-intent-vrMbWjYP.js} +1 -1
- package/dist/client/assets/{thread-route-B3hhxYHj.js → thread-route-BSTJ2qPY.js} +1 -1
- package/dist/client/assets/{thread-route-DnE31jZ2.js → thread-route-QtII8A2p.js} +1 -1
- package/dist/client/assets/{thread-sheet-body-D_py0jIP.js → thread-sheet-body-KQlmfRxf.js} +1 -1
- package/dist/client/assets/{toggle-group-C-J6fFSZ.js → toggle-group-XcXQjaHX.js} +1 -1
- package/dist/client/assets/{toolbar-icon-button-DQAUOhdv.js → toolbar-icon-button-BIBFTsar.js} +1 -1
- package/dist/client/assets/{tooltip-DSCGYdw1.js → tooltip-rAdo_tRS.js} +1 -1
- package/dist/client/assets/{track-BWEjISsx.js → track-DmnUsSfo.js} +1 -1
- package/dist/client/assets/{types-BQYrCHfb.js → types-CzTQ99AX.js} +1 -1
- package/dist/client/assets/{usage-stats-CH100JwP.js → usage-stats-CYrj10jy.js} +1 -1
- package/dist/client/assets/{use-ai-providers-DPIPADTm.js → use-ai-providers-BwceVIHL.js} +1 -1
- package/dist/client/assets/{use-automations-Cm_whz3Q.js → use-automations-LlaDJlNA.js} +1 -1
- package/dist/client/assets/{use-autosave-C09DCahC.js → use-autosave-DVR2xqFT.js} +1 -1
- package/dist/client/assets/{use-connect-companion-D45RJA2C.js → use-connect-companion-C-xpH0dL.js} +1 -1
- package/dist/client/assets/{use-connection-DAR6kA6F.js → use-connection-BN3cT5kd.js} +1 -1
- package/dist/client/assets/{use-copy-CLZ5Gmjm.js → use-copy-Dcx9tDN2.js} +1 -1
- package/dist/client/assets/{use-create-virtual-mcp-DlDbTDWh.js → use-create-virtual-mcp-9-NMNx3_.js} +1 -1
- package/dist/client/assets/{use-date-fns-locale-4a1GuGUG.js → use-date-fns-locale-CDbheytD.js} +1 -1
- package/dist/client/assets/{use-debounced-autosave-s6ooboiq.js → use-debounced-autosave-DvQCb6wJ.js} +1 -1
- package/dist/client/assets/{use-debounced-value-C7PP6GCc.js → use-debounced-value-CfEN0fzg.js} +1 -1
- package/dist/client/assets/{use-deco-credits-C78gqYYg.js → use-deco-credits-6yJRZ2JQ.js} +1 -1
- package/dist/client/assets/{use-decopilot-events-DDN9tgML.js → use-decopilot-events-R9ZDtZrh.js} +1 -1
- package/dist/client/assets/{use-delete-connection-DT4K_5dd.js → use-delete-connection-BodmL1FQ.js} +1 -1
- package/dist/client/assets/{use-deployment-admin-mukdSbJI.js → use-deployment-admin-C884vS-k.js} +1 -1
- package/dist/client/assets/{use-entitlements-CsT7-WMV.js → use-entitlements-Dx7XqEcC.js} +1 -1
- package/dist/client/assets/{use-fast-preview-draft-url-BofBOVEy.js → use-fast-preview-draft-url-CAOVYx78.js} +1 -1
- package/dist/client/assets/{use-file-configs-DT6Slpub.js → use-file-configs-BJjPt2Ut.js} +1 -1
- package/dist/client/assets/{use-in-settings-BuwNY17C.js → use-in-settings-Bx-OzfKC.js} +1 -1
- package/dist/client/assets/{use-infinite-scroll-BEJH1fno.js → use-infinite-scroll-CWWIqkZ2.js} +1 -1
- package/dist/client/assets/{use-join-requests-CRlXrVsN.js → use-join-requests-gm28lnmh.js} +1 -1
- package/dist/client/assets/{use-main-panel-tabs-CHXW72tt.js → use-main-panel-tabs-Dcfn9hBK.js} +1 -1
- package/dist/client/assets/{use-mcp-auth-status-BUHt6LYh.js → use-mcp-auth-status-CwUBv4Hm.js} +1 -1
- package/dist/client/assets/{use-mcp-client-jmamuSRM.js → use-mcp-client-BtmoWWkf.js} +1 -1
- package/dist/client/assets/{use-mcp-prompts-Cb12ACl6.js → use-mcp-prompts-BkeLGKHx.js} +1 -1
- package/dist/client/assets/{use-mcp-tools-U5kwqIN7.js → use-mcp-tools-B84418Zt.js} +1 -1
- package/dist/client/assets/{use-members-CZk_logh.js → use-members-DOLKWeYn.js} +1 -1
- package/dist/client/assets/{use-mobile-X_9uHXB5.js → use-mobile-CRuuooNM.js} +1 -1
- package/dist/client/assets/{use-navigate-to-agent-XZHI0vTx.js → use-navigate-to-agent-DIpRW39A.js} +1 -1
- package/dist/client/assets/{use-open-billing-url-BygdFnSn.js → use-open-billing-url-C5SPvsb8.js} +1 -1
- package/dist/client/assets/{use-org-auth-client-6spdYft8.js → use-org-auth-client-TdQ8MWNM.js} +1 -1
- package/dist/client/assets/{use-org-fs-C4AEj3YR.js → use-org-fs-DnKhdb5t.js} +1 -1
- package/dist/client/assets/{use-org-repo-syncs-D5-YS2q1.js → use-org-repo-syncs-DJd41R4N.js} +1 -1
- package/dist/client/assets/{use-org-sso-CbtWg6df.js → use-org-sso-D6hDWGLC.js} +1 -1
- package/dist/client/assets/{use-organization-roles-B2NYy6qP.js → use-organization-roles-BXwewduE.js} +1 -1
- package/dist/client/assets/{use-organization-settings-DiOLzOn-.js → use-organization-settings-yjdHHrMs.js} +1 -1
- package/dist/client/assets/{use-panel-navigate-YnjVvVnu.js → use-panel-navigate-DEBeb2CL.js} +1 -1
- package/dist/client/assets/{use-project-native-view-presence-S2GuqygD.js → use-project-native-view-presence-CHdUtv7D.js} +1 -1
- package/dist/client/assets/{use-project-scope-azWGklpf.js → use-project-scope-DHl6lLqa.js} +1 -1
- package/dist/client/assets/{use-registry-connections-Dr6Tl0jy.js → use-registry-connections-B13lXSQz.js} +1 -1
- package/dist/client/assets/{use-releases-sRilJRv7.js → use-releases-CASa78Vi.js} +1 -1
- package/dist/client/assets/{use-reports-diagnostic-b56ze7yP.js → use-reports-diagnostic-jdgV6F3e.js} +1 -1
- package/dist/client/assets/{use-route-default-main-DAXdKSA3.js → use-route-default-main-DSxGO_aw.js} +1 -1
- package/dist/client/assets/{use-secrets-BD25jCAi.js → use-secrets-B-9J9EkQ.js} +1 -1
- package/dist/client/assets/{use-section-preview-base-CfKeOl7s.js → use-section-preview-base-Di3xgtD1.js} +1 -1
- package/dist/client/assets/{use-session-runtime-D8PgcjtK.js → use-session-runtime-Dc42TY0X.js} +1 -1
- package/dist/client/assets/{use-tags-DMzy8m-k.js → use-tags-CCJJRf2p.js} +1 -1
- package/dist/client/assets/{use-task-board-analytics-BXM0SDto.js → use-task-board-analytics-CK3_uAaU.js} +1 -1
- package/dist/client/assets/{use-task-metadata-IzJB5PVG.js → use-task-metadata-jNANkRmK.js} +1 -1
- package/dist/client/assets/{use-thread-outputs-BhhE_Gkc.js → use-thread-outputs-BoiojEnU.js} +1 -1
- package/dist/client/assets/{use-view-mode-CUHkIbeG.js → use-view-mode-D8IEchi6.js} +1 -1
- package/dist/client/assets/{use-virtual-mcp-Bt7oX0ej.js → use-virtual-mcp-2UFz9K4W.js} +1 -1
- package/dist/client/assets/useInfiniteQuery-Bvk6obSJ.js +1 -0
- package/dist/client/assets/{useQueries-D7ondynP.js → useQueries-thkmee8L.js} +1 -1
- package/dist/client/assets/useSuspenseInfiniteQuery-7JvmV8My.js +1 -0
- package/dist/client/assets/{users-CP4Dfulp.js → users-BGtd_KGY.js} +1 -1
- package/dist/client/assets/{utils-CcX7wgow.js → utils-1s66UjII.js} +1 -1
- package/dist/client/assets/{variant-calendar-BYxVe-PM.js → variant-calendar-Dg9C2UkW.js} +1 -1
- package/dist/client/assets/{variant-matcher-override-CgX58Kkx.js → variant-matcher-override-DquKUvoE.js} +1 -1
- package/dist/client/assets/{view-mode-toggle-CRnJAx40.js → view-mode-toggle-CJQ43vUA.js} +1 -1
- package/dist/client/assets/{virtual-mcp-BWl8nlWy.js → virtual-mcp-Be7V69gW.js} +1 -1
- package/dist/client/index.html +1 -1
- package/dist/server/cli.js +597 -597
- package/dist/server/server.js +392 -392
- package/package.json +1 -1
- package/dist/client/assets/agent-app-DqzssWfL.js +0 -1
- package/dist/client/assets/agent-deck-BQOqb5JA.js +0 -1
- package/dist/client/assets/agent-file-CN4CJx4b.js +0 -1
- package/dist/client/assets/agent-library-file-CMtJlgeS.js +0 -1
- package/dist/client/assets/agent-settings-G7qQl7Yj.js +0 -1
- package/dist/client/assets/agent-site-editor-code-BV4iQvoi.js +0 -2
- package/dist/client/assets/agent-view-BinIwia6.js +0 -1
- package/dist/client/assets/api-keys-CN-jy2XH.js +0 -1
- package/dist/client/assets/app-editor-BPKOcfIg.js +0 -1
- package/dist/client/assets/category-editor-Crlp5xLx.js +0 -1
- package/dist/client/assets/project-reports-EFWj1j4Z.js +0 -1
- package/dist/client/assets/project-tasks-DGYfz1Ev.js +0 -1
- package/dist/client/assets/record-editor-AST5wQoO.js +0 -1
- package/dist/client/assets/registry-FGkay0Wa.js +0 -2
- package/dist/client/assets/reports-CqtPOzss.js +0 -1
- package/dist/client/assets/store-registry-DUH5xq3l.js +0 -2
- package/dist/client/assets/tasks-CI20rxb_.js +0 -1
- package/dist/client/assets/useInfiniteQuery-zZoTJbYm.js +0 -1
- package/dist/client/assets/useSuspenseInfiniteQuery-BvOl5Id0.js +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/login-gigmbDXu.js","assets/auth-entry-CdieewWf.js","assets/input-DSV_9cOM.js","assets/use-is-desktop-app-BNujXJc_.js","assets/retry-i8LvYSZg.js","assets/backoff-8mStPHYB.js","assets/auth-split-layout-rKTEf0Lh.js","assets/cli-auth-success-LIJhoLzG.js","assets/reset-password-CzGwWM54.js","assets/oauth-callback-Ckn9o5ws.js","assets/mcp-oauth-Cr_ZflCp.js","assets/auth-B_QE3yd2.js","assets/layout-UcqeKFE9.js","assets/required-auth-layout-qQ6V67AS.js","assets/use-deployment-admin-mukdSbJI.js","assets/users-CP4Dfulp.js","assets/collection-table-wrapper-_ZnQA9Nx.js","assets/table-mH2G1tkg.js","assets/ArrowUp-17ZWJBkC.js","assets/empty-state-DiRnF-wA.js","assets/search-input-MlNEh696.js","assets/SearchMd-C6gkQ2l2.js","assets/avatar-Dwn9Bjsb.js","assets/User01-CmNzW4kH.js","assets/badge-BSirYRuD.js","assets/use-debounced-value-C7PP6GCc.js","assets/admin-fetch-CCSvjTk1.js","assets/format-time-BtXRrtv4.js","assets/differenceInSeconds-C3x8sHUj.js","assets/get-initials-D-f_fDFw.js","assets/orgs-C8VfgzyW.js","assets/label-YKssz_GS.js","assets/dialog-BKhaq-Xf.js","assets/X-DTaqHNcB.js","assets/select-C_C7jdl-.js","assets/index-D2HOssRq.js","assets/ChevronUp-CodzCI7T.js","assets/switch-C_FmZ5Us.js","assets/textarea-B7wqTmSc.js","assets/schema-CStbpjQf.js","assets/site-slug-uya6Wp4-.js","assets/prompts-BrLG0HnD.js","assets/shell-layout-p-WJ7uxl.js","assets/Globe04-1G-_QSZW.js","assets/SearchLg-CT-Vntfj.js","assets/agent-icon-D5Ih-I28.js","assets/AlertCircle-D0XfIdP3.js","assets/Tool01-iak9ZtFE.js","assets/ArrowLeft-COesgQ7q.js","assets/Tool02-CFu103hl.js","assets/ArrowRight-CnMpegh6.js","assets/TrendUp01-DlYmFZ7k.js","assets/ZoomOut-B3S7N50e.js","assets/CheckCircle-GwUJIVVh.js","assets/UserSquare-1_FC93GE.js","assets/Copy01-CrFZhFXo.js","assets/CreditCard01-DDojC3kk.js","assets/DotsVertical-DMzYFBsd.js","assets/Download01-B93GUT2-.js","assets/Settings02-DH86cX_B.js","assets/Eye-Bxxku7SE.js","assets/Share07-Bw4Wicv2.js","assets/Globe01-DjdW3vEO.js","assets/XClose-VLid_ZSM.js","assets/Image01-DPvj49a-.js","assets/Key01-O_Ykzy8v.js","assets/LayoutLeft-Cr5_A1QG.js","assets/Link01-D8T6mRIR.js","assets/LinkExternal01-CWPNoGQ_.js","assets/Monitor01-CQaKbr3c.js","assets/Sun-kycCorOO.js","assets/Package-Cd3aVeK8.js","assets/Palette-HRmzWYeK.js","assets/Play-CaxaoMwA.js","assets/Plus-BjOenFFb.js","assets/Stars01-B1kYoDFp.js","assets/Trash01-CpN6r-a0.js","assets/Upload01-DkDsqCWe.js","assets/Users01-CVhfgklM.js","assets/XCircle-BR8ZZHlj.js","assets/Zap-D3d1wpzw.js","assets/download-app-dialog-wNu8nmu1.js","assets/use-project-scope-azWGklpf.js","assets/use-virtual-mcp-Bt7oX0ej.js","assets/use-mcp-client-jmamuSRM.js","assets/github-repo-BknN0SVI.js","assets/use-panel-navigate-YnjVvVnu.js","assets/thread-route-DnE31jZ2.js","assets/command-Dsz0XoYc.js","assets/index-BrLZxE6-.js","assets/integration-icon-BARnXRTY.js","assets/project-icon-BuTPt9Ec.js","assets/hooks-BFlZlUD7.js","assets/task-board-BtEMyO1f.js","assets/autosend-DtYV6o0l.js","assets/use-organization-settings-DiOLzOn-.js","assets/use-org-sso-CbtWg6df.js","assets/shell-layout-CE2Eihra.css","assets/onboarding-BtLLloCy.js","assets/organization-choice-oi5kPDHh.js","assets/reports-onboarding-BORIliYh.js","assets/site-url-en5df9c-.js","assets/create-organization-dialog-Ccojws8S.js","assets/alert-dialog-D6rlFoy0.js","assets/form-CxKBX2E3.js","assets/companion-mcps-section-D7ntAaGF.js","assets/use-connect-companion-D45RJA2C.js","assets/tooltip-DSCGYdw1.js","assets/companions-core-WMNDPuPs.js","assets/github-D4UJ99TO.js","assets/github-repo-scope-C8GSbvaz.js","assets/metadata-dUsYcpuu.js","assets/provision-repo-scoped-github-connection-B6zdkC6p.js","assets/extract-connection-data-Bdk8iF2q.js","assets/connection-2MR1zroe.js","assets/useQueries-D7ondynP.js","assets/authenticate-and-persist-oauth-Cm242zr2.js","assets/track-BWEjISsx.js","assets/self-tool-result-8OxPN9Nm.js","assets/site-error-Da6iapvu.js","assets/choose-editor-DD3-fBUp.js","assets/reports-Bgxd82xF.js","assets/reports-DH10I8_D.css","assets/route-DrZOVBG5.js","assets/sidebar-BlfpAzXY.js","assets/use-mobile-X_9uHXB5.js","assets/sheet-B5ncClVO.js","assets/toolbar-icon-button-DQAUOhdv.js","assets/use-in-settings-BuwNY17C.js","assets/thread-button-B9U3gqvP.js","assets/use-route-default-main-DAXdKSA3.js","assets/popover-tYq49O5I.js","assets/drawer-CCmZWflK.js","assets/use-join-requests-CRlXrVsN.js","assets/use-org-auth-client-6spdYft8.js","assets/use-organization-roles-B2NYy6qP.js","assets/use-deco-credits-C78gqYYg.js","assets/use-ai-providers-DPIPADTm.js","assets/use-entitlements-CsT7-WMV.js","assets/plan-ladder-DR8Snnfh.js","assets/scroll-area-BLDUQh9N.js","assets/useInfiniteQuery-zZoTJbYm.js","assets/infiniteQueryObserver-CKT-6XMq.js","assets/task-route-BaALoopn.js","assets/use-decopilot-events-DDN9tgML.js","assets/use-project-native-view-presence-S2GuqygD.js","assets/match-site-slug-config-D3fUJ6vX.js","assets/use-file-configs-DT6Slpub.js","assets/optimistic-project-sidebar-views-8yO8-q3h.js","assets/use-navigate-to-agent-XZHI0vTx.js","assets/thread-intent-DZx7N_NL.js","assets/slugify-CEUa2lfQ.js","assets/repository-import-picker-B1zE1wEx.js","assets/repository-picker-DMUsWfjy.js","assets/github-icon-DSeg1rga.js","assets/collection-search-Dvf73igt.js","assets/question-004-sINsf4GQ.js","assets/thread-route-B3hhxYHj.js","assets/chat-context-CVZ1rNGo.js","assets/location-oTTXFrSF.js","assets/use-reports-diagnostic-b56ze7yP.js","assets/connect-layout-SP9zSVi3.js","assets/route-Cyp-PzpR.js","assets/index-CV2G6XgT.js","assets/gateway-client-B8HHtBA6.js","assets/use-mcp-prompts-Cb12ACl6.js","assets/index-BcfYNZk_.js","assets/utils-CVEq3hMx.js","assets/org-file-open-context-k2zY7W2A.js","assets/input-X38P96BY.js","assets/chat-draft-UIE-uNFd.js","assets/use-session-runtime-D8PgcjtK.js","assets/usage-stats-CH100JwP.js","assets/use-copy-CLZ5Gmjm.js","assets/markdown-tOSThun8.js","assets/tabs-jjUOgDeE.js","assets/toggle-group-C-J6fFSZ.js","assets/tool-namespace-DmnQIdtF.js","assets/use-open-billing-url-BygdFnSn.js","assets/decopilot-rj_BJ_Z1.js","assets/checkbox-VSstjUSb.js","assets/ai-providers-logos-DD3qZ33J.js","assets/index-DZmKVVGY.js","assets/input-QKe7l082.js","assets/hooks-CFjlhRX0.js","assets/use-org-fs-C4AEj3YR.js","assets/use-members-CZk_logh.js","assets/feature-paywall-B3_no1lb.js","assets/add-connection-dialog-CaHZ3eeK.js","assets/connection-card-B5yTdNvS.js","assets/use-registry-connections-Dr6Tl0jy.js","assets/use-connection-DAR6kA6F.js","assets/connection-slug-CITJ0kGN.js","assets/connection-form-helpers-PrMbwr2L.js","assets/collection-tabs-BW0egx-_.js","assets/use-infinite-scroll-BEJH1fno.js","assets/useSuspenseInfiniteQuery-BvOl5Id0.js","assets/pair-CbUh0olY.js","assets/collapsible-BX137q_-.js","assets/content-blocks-o63cs2vh.js","assets/mcp-app-renderer-c3JU3ROq.js","assets/types-BQYrCHfb.js","assets/omit-sandbox-map-jj4lCB2U.js","assets/use-thread-outputs-BhhE_Gkc.js","assets/file-type-icon-Co9lETmZ.js","assets/decofile-api-DygXY02K.js","assets/use-releases-sRilJRv7.js","assets/serial-task-queue-CGOeQgpr.js","assets/sandbox-lifecycle-context-DLKr6QBG.js","assets/sandbox-url-D3mC8qhT.js","assets/sandbox-start-errors-BK_aDCyt.js","assets/index-Coo4IGyG.js","assets/resizable-c-JEmBrU.js","assets/route-page-header-BzWw0nja.js","assets/task-status-CCMsckzm.js","assets/use-main-panel-tabs-CHXW72tt.js","assets/use-mcp-tools-U5kwqIN7.js","assets/use-task-metadata-IzJB5PVG.js","assets/virtual-mcp-BWl8nlWy.js","assets/legacy-main-redirect-NyVTUirL.js","assets/preview-dialog-B88KWjD7.js","assets/preview-content-BEe_g5h_.js","assets/file-preview-BFDgPeRr.js","assets/utils-CcX7wgow.js","assets/editor-DMij_Pa1.js","assets/file-share-button-7xy_ju8b.js","assets/blocks-preview-workspace-context-BwjlsTrq.js","assets/home-FAOklPf6.js","assets/client-icons-D8SzN11F.js","assets/project-feed-BeVLcst-.js","assets/agent-overview-C5zU0xJO.js","assets/mini-report-page-0G8UQBMn.js","assets/project-tasks-DGYfz1Ev.js","assets/mock-board-Dw3AKqte.js","assets/rich-text-link-control-B4QybUls.js","assets/use-task-board-analytics-BXM0SDto.js","assets/combobox-D6GclaQ-.js","assets/search-toggle-SUy-5Oe0.js","assets/icon-button-_3vMPXZp.js","assets/use-tags-DMzy8m-k.js","assets/breadcrumb-BpbnoaV3.js","assets/calendar-Bhg3W8Dv.js","assets/alert-C_EPjsLF.js","assets/index-DoCuIH7r.js","assets/thread-sheet-body-D_py0jIP.js","assets/separator-D-DaNCb-.js","assets/feature-gate-KPNWzkBp.js","assets/project-reports-EFWj1j4Z.js","assets/reports-tab-3yvhtU-e.js","assets/agent-site-editor-BRzwUORk.js","assets/message-templates-Pr7m4Pgn.js","assets/last-preview-page-D5EFEwR4.js","assets/use-fast-preview-draft-url-BofBOVEy.js","assets/section-preview-url-Csj0_ZDg.js","assets/claim-phase-copy-0btUuJoC.js","assets/sandbox-git-api-CMdpE2TE.js","assets/save-changes-debug-nBi-n9eV.js","assets/agent-site-editor-DDGTF8rc.css","assets/agent-site-editor-preview-DqMQfEJz.js","assets/agent-view-guard-CmXIeKCe.js","assets/runnable-block-editor-nQ69L6jb.js","assets/monaco-editor-BhkNNN8A.js","assets/safe-image-url-D5z803Ot.js","assets/asset-utils-BG24FUsq.js","assets/variant-matcher-override-CgX58Kkx.js","assets/agent-site-editor-content-Da0JfE-w.js","assets/mustache-BMe4E-3i.js","assets/agent-site-editor-code-BV4iQvoi.js","assets/agent-automations-BSaV8k3Y.js","assets/use-automations-Cm_whz3Q.js","assets/automation-list-row-DDeJYMHS.js","assets/agent-automation-C8r5_lAR.js","assets/select-model-FW_XGeEU.js","assets/build-improve-prompt-doc-CIkgt5Ml.js","assets/use-debounced-autosave-s6ooboiq.js","assets/automation-runs-BGXJk3-4.js","assets/agent-settings-G7qQl7Yj.js","assets/settings-tab-DhuuexRq.js","assets/use-date-fns-locale-4a1GuGUG.js","assets/use-mcp-auth-status-BUHt6LYh.js","assets/use-secrets-BD25jCAi.js","assets/agent-assets-Dfpjbzyj.js","assets/agent-git-BZmL1C91.js","assets/agent-hosting-CP9gImki.js","assets/empty-state-BDpfsfUL.js","assets/agent-e2e-CjCqLXH1.js","assets/agent-analytics-CzbWclRj.js","assets/chart-B7hxFGKr.js","assets/index-BwwpOrcS.js","assets/CartesianChart-DqSaDs52.js","assets/AreaChart-BahcMnDC.js","assets/agent-experiments-4inK9Pvj.js","assets/agent-monitor-D7bE1AUL.js","assets/Line-aFR7lShe.js","assets/ErrorBarContext-BUk8y7Bj.js","assets/Sector-B-fHBulW.js","assets/agent-app-DqzssWfL.js","assets/project-app-view-CHIgEuQJ.js","assets/agent-view-BinIwia6.js","assets/agent-file-CN4CJx4b.js","assets/agent-deck-BQOqb5JA.js","assets/agent-library-file-CMtJlgeS.js","assets/agent-connect-sources-AkHuiIU0.js","assets/legacy-agents-deep-BYo-BuCs.js","assets/tasks-CI20rxb_.js","assets/taskboard-analytics-CzQSxt8I.js","assets/reports-CqtPOzss.js","assets/library-FX2TKWir.js","assets/use-org-repo-syncs-D5-YS2q1.js","assets/folder-icon-CPH1Bszw.js","assets/skill-md-ChfVs4uF.js","assets/skill-preview-CeIBKDR2.js","assets/discover-C_imFiZx.js","assets/index-CxsDd08k.js","assets/route-D9feMXoH.js","assets/index-redirect-BV59ZcWQ.js","assets/capability-load-error-l-yxDu1W.js","assets/connections-lQVX-uGO.js","assets/collection-display-button-LAyYKy93.js","assets/view-mode-toggle-CRnJAx40.js","assets/use-delete-connection-DT4K_5dd.js","assets/use-view-mode-CUHkIbeG.js","assets/connection-detail-DKOxQWbq.js","assets/index-zFkCX32V.js","assets/index-WfTG300W.js","assets/index-Ci8CqfCi.js","assets/use-create-virtual-mcp-DlDbTDWh.js","assets/monitoring-stats-row-D3wuHD5K.js","assets/collection-detail-Brbyx-hM.js","assets/index-B3clFfYi.js","assets/require-capability-B9l2cjC7.js","assets/access-gate-DAO7tJ5A.js","assets/multi-select-Bw9uE0vh.js","assets/general-BXQ_6idC.js","assets/review-settings-CBDmCs9f.js","assets/domain-settings-CUKpZjNV.js","assets/connect-ChX83wmI.js","assets/api-keys-o45lgGkw.js","assets/ai-providers-COexxMGY.js","assets/infra-billing-RcXbwjta.js","assets/secrets-CEw0kB_t.js","assets/api-keys-CN-jy2XH.js","assets/buckets-DdptE4Pj.js","assets/repositories-DnQQ93Vy.js","assets/synced-repos-DHbM7OOb.js","assets/tasks-K4e2STZ0.js","assets/members-Cd4baVfz.js","assets/role-color-Dn2tXDDF.js","assets/roles-9Q5Zr1_l.js","assets/sso-CYe8kGWS.js","assets/profile-Dn8W-1_J.js","assets/store-DDl3lPqK.js","assets/registry-FGkay0Wa.js","assets/store-registry-DUH5xq3l.js","assets/agents-list-wHHXJTl8.js","assets/automations-BhhOtnrs.js","assets/skills-Cpf0zAbB.js"])))=>i.map(i=>d[i]);
|
|
1
|
+
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/login-CzeMsg8T.js","assets/auth-entry-DBl5DaPH.js","assets/input-CA3NO5_t.js","assets/use-is-desktop-app-BNujXJc_.js","assets/retry-i8LvYSZg.js","assets/backoff-8mStPHYB.js","assets/auth-split-layout-BgPxcBcB.js","assets/cli-auth-success-Bz3RxiUp.js","assets/reset-password-CnmRONVL.js","assets/oauth-callback-PixJQkgi.js","assets/mcp-oauth-ZZeDQKuh.js","assets/auth-DoQ4Nalq.js","assets/layout-BDvTf5Y1.js","assets/required-auth-layout-D6L2B3lC.js","assets/use-deployment-admin-C884vS-k.js","assets/users-BGtd_KGY.js","assets/collection-table-wrapper-DxZT2IDQ.js","assets/table-zCmjz1mf.js","assets/ArrowUp-BgjnqmUz.js","assets/empty-state-DATmbbqz.js","assets/search-input-DN1HxMQM.js","assets/SearchMd-I-u-Ppkp.js","assets/avatar-1Yn634Bu.js","assets/User01-BI5R-4Xj.js","assets/badge-BMrNoDQF.js","assets/use-debounced-value-CfEN0fzg.js","assets/admin-fetch-CCSvjTk1.js","assets/format-time-BtXRrtv4.js","assets/differenceInSeconds-C3x8sHUj.js","assets/get-initials-D-f_fDFw.js","assets/orgs-T1j1ZJVH.js","assets/label-C_cX51We.js","assets/dialog-uPTcsM6n.js","assets/X-CvjnZl5e.js","assets/select-DOrOm388.js","assets/index-U6uQHeCm.js","assets/ChevronUp-BAQXOf5D.js","assets/switch-BV-MyRQN.js","assets/textarea-D-6K9r19.js","assets/schema-CQ48zDTU.js","assets/site-slug-uya6Wp4-.js","assets/prompts-CMF-VFXI.js","assets/shell-layout-BDka9RLc.js","assets/Globe04-D59f7pGB.js","assets/SearchLg-RqwylEUM.js","assets/agent-icon-Du4foZ5w.js","assets/AlertCircle-NKpIdBKl.js","assets/Tool01-DDTjazFm.js","assets/ArrowLeft-BKx_QTJr.js","assets/Tool02-BLokvBBs.js","assets/ArrowRight-8mLQGGMI.js","assets/TrendUp01-BPu5TWOk.js","assets/ZoomOut-Cq1zMqoM.js","assets/CheckCircle-DBlA9wkb.js","assets/UserSquare-C_kKkH0n.js","assets/Copy01-wurPIobv.js","assets/CreditCard01-DjPXzBq6.js","assets/DotsVertical-Bx5qjzcz.js","assets/Download01-BWFtS53v.js","assets/Settings02-DJVGKnwW.js","assets/Eye-BD0ZbSdl.js","assets/Share07-adzWfg3s.js","assets/Globe01-0DpEacUx.js","assets/XClose-l9OyLGUl.js","assets/Image01-BUYhMNkS.js","assets/Key01-BvLdmCTc.js","assets/LayoutLeft-CyJFqp-6.js","assets/Link01-qIayyFAq.js","assets/LinkExternal01-hkxOMKQE.js","assets/Monitor01-DyfIXCt5.js","assets/Sun-YVYc7YRc.js","assets/Package-EQg-wMAD.js","assets/Palette-DI15yG1R.js","assets/Play-Cg9yqLoQ.js","assets/Plus-BKjrQCsd.js","assets/Stars01-BEbgNJbY.js","assets/Trash01-VGFb49EH.js","assets/Upload01-Cv7tN2NN.js","assets/Users01-DVg45Kv0.js","assets/XCircle-CB3Q-O1t.js","assets/Zap-UqD0_RZa.js","assets/download-app-dialog-CSAHR0v5.js","assets/use-project-scope-DHl6lLqa.js","assets/use-virtual-mcp-2UFz9K4W.js","assets/use-mcp-client-BtmoWWkf.js","assets/github-repo-BknN0SVI.js","assets/use-panel-navigate-DEBeb2CL.js","assets/thread-route-QtII8A2p.js","assets/command-CY_32gBM.js","assets/index-DlTwltzZ.js","assets/integration-icon-CAyUCGPQ.js","assets/project-icon-I77gr-pK.js","assets/hooks-DdW3hvoh.js","assets/task-board-D3lC_1Th.js","assets/autosend-Bln98kNi.js","assets/use-organization-settings-yjdHHrMs.js","assets/use-org-sso-D6hDWGLC.js","assets/shell-layout-CE2Eihra.css","assets/onboarding-Ci-02n6u.js","assets/organization-choice-DTNV4OA3.js","assets/reports-onboarding-pRaIN0gW.js","assets/site-url-en5df9c-.js","assets/create-organization-dialog-DqGp97lF.js","assets/alert-dialog-D2J-kRAV.js","assets/form-CzXfgfFr.js","assets/companion-mcps-section-C5Ce-Ae8.js","assets/use-connect-companion-C-xpH0dL.js","assets/tooltip-rAdo_tRS.js","assets/companions-core-WMNDPuPs.js","assets/github-D4UJ99TO.js","assets/github-repo-scope-C8GSbvaz.js","assets/metadata-dUsYcpuu.js","assets/provision-repo-scoped-github-connection-B6zdkC6p.js","assets/extract-connection-data-C-_k_HrX.js","assets/connection-BtAmcsWV.js","assets/useQueries-thkmee8L.js","assets/authenticate-and-persist-oauth-CMWIzBXQ.js","assets/track-DmnUsSfo.js","assets/self-tool-result-8OxPN9Nm.js","assets/site-error-Da6iapvu.js","assets/choose-editor-j32E7S6T.js","assets/reports-B5M0xDyn.js","assets/reports-DH10I8_D.css","assets/route-D4AIZCoB.js","assets/sidebar-6rO43IUN.js","assets/use-mobile-CRuuooNM.js","assets/sheet-DlPfrw9X.js","assets/toolbar-icon-button-BIBFTsar.js","assets/use-in-settings-Bx-OzfKC.js","assets/thread-button-DD23ms1j.js","assets/use-route-default-main-DSxGO_aw.js","assets/popover-B1-bCr3Y.js","assets/drawer-CJhbJSjB.js","assets/use-join-requests-gm28lnmh.js","assets/use-org-auth-client-TdQ8MWNM.js","assets/use-organization-roles-BXwewduE.js","assets/use-deco-credits-6yJRZ2JQ.js","assets/use-ai-providers-BwceVIHL.js","assets/use-entitlements-Dx7XqEcC.js","assets/plan-ladder-BGfca4Fl.js","assets/scroll-area-SUblEurA.js","assets/useInfiniteQuery-Bvk6obSJ.js","assets/infiniteQueryObserver-DhQG5Ba-.js","assets/task-route-Bcy3o1uq.js","assets/use-decopilot-events-R9ZDtZrh.js","assets/use-project-native-view-presence-CHdUtv7D.js","assets/match-site-slug-config-D3fUJ6vX.js","assets/use-file-configs-BJjPt2Ut.js","assets/optimistic-project-sidebar-views-DXHATWeY.js","assets/use-navigate-to-agent-DIpRW39A.js","assets/thread-intent-vrMbWjYP.js","assets/slugify-CEUa2lfQ.js","assets/repository-import-picker-CxfUH2IT.js","assets/repository-picker-C84r9pEi.js","assets/github-icon-DD7YJLb0.js","assets/collection-search-DFM5AYUG.js","assets/question-004-sINsf4GQ.js","assets/thread-route-BSTJ2qPY.js","assets/chat-context-WkB72QDr.js","assets/location-oTTXFrSF.js","assets/use-reports-diagnostic-jdgV6F3e.js","assets/connect-layout-DosY7Ren.js","assets/route-CRwg4ev7.js","assets/index-CQcZAkPo.js","assets/gateway-client-_lcPratN.js","assets/use-mcp-prompts-BkeLGKHx.js","assets/index-VAuix8Ds.js","assets/utils-CVEq3hMx.js","assets/org-file-open-context-B3uxBbrN.js","assets/input-DJ90IYpm.js","assets/chat-draft-anvjkrXf.js","assets/use-session-runtime-Dc42TY0X.js","assets/usage-stats-CYrj10jy.js","assets/use-copy-Dcx9tDN2.js","assets/markdown-CqOP0_5N.js","assets/tabs-tFCunu6d.js","assets/toggle-group-XcXQjaHX.js","assets/tool-namespace-DmnQIdtF.js","assets/use-open-billing-url-C5SPvsb8.js","assets/decopilot-C2LtkKnC.js","assets/checkbox-Yo-_CoUr.js","assets/ai-providers-logos-DD3qZ33J.js","assets/index-CdCeTCag.js","assets/input-Cl33QWb6.js","assets/hooks-BDNT0Adb.js","assets/use-org-fs-DnKhdb5t.js","assets/use-members-DOLKWeYn.js","assets/feature-paywall-C-R3YJVm.js","assets/add-connection-dialog-CCnr4x54.js","assets/connection-card-DNLyrdBM.js","assets/use-registry-connections-B13lXSQz.js","assets/use-connection-BN3cT5kd.js","assets/connection-slug-CITJ0kGN.js","assets/connection-form-helpers-pqXyLS21.js","assets/collection-tabs-CU5BwvHd.js","assets/use-infinite-scroll-CWWIqkZ2.js","assets/useSuspenseInfiniteQuery-7JvmV8My.js","assets/pair-BFIjmC4W.js","assets/collapsible-Cz7g8j4s.js","assets/content-blocks-o63cs2vh.js","assets/mcp-app-renderer-BrIoKm0G.js","assets/types-CzTQ99AX.js","assets/omit-sandbox-map-jj4lCB2U.js","assets/use-thread-outputs-BoiojEnU.js","assets/file-type-icon-x1wD28_F.js","assets/decofile-api-C6MVAHgF.js","assets/use-releases-CASa78Vi.js","assets/serial-task-queue-CGOeQgpr.js","assets/sandbox-lifecycle-context-BrifGyM7.js","assets/sandbox-url-D3mC8qhT.js","assets/sandbox-start-errors-BK_aDCyt.js","assets/index-Bb2NSQTG.js","assets/resizable-DGvuTNz4.js","assets/route-page-header-DPnz1U8f.js","assets/task-status-DZ2zcnv8.js","assets/use-main-panel-tabs-Dcfn9hBK.js","assets/use-mcp-tools-B84418Zt.js","assets/use-task-metadata-jNANkRmK.js","assets/virtual-mcp-Be7V69gW.js","assets/legacy-main-redirect-DakI8WgO.js","assets/preview-dialog-tXexYYvy.js","assets/preview-content-BJxZz0wL.js","assets/file-preview-BQWchARE.js","assets/utils-1s66UjII.js","assets/editor-DhWDdB15.js","assets/file-share-button-D6ndnz7e.js","assets/blocks-preview-workspace-context-okcOywiO.js","assets/home-Cc_gG_k0.js","assets/client-icons-BL2yc5kE.js","assets/project-feed-BJK1cP5l.js","assets/agent-overview-CV_KF9Yq.js","assets/mini-report-page-VIPIzU0p.js","assets/project-tasks-DTM5l8Na.js","assets/mock-board-DNOBo32D.js","assets/rich-text-link-control-D1jkHV9n.js","assets/use-task-board-analytics-CK3_uAaU.js","assets/combobox-5QbF4j2b.js","assets/search-toggle-0BP5lkY1.js","assets/icon-button-B9TVjSua.js","assets/use-tags-CCJJRf2p.js","assets/breadcrumb-CzmrQK1U.js","assets/calendar-CDf47KON.js","assets/alert-CXDlDd5b.js","assets/index-DuEn4YkZ.js","assets/thread-sheet-body-KQlmfRxf.js","assets/separator-CId9iV2J.js","assets/feature-gate-NGY-PlEE.js","assets/project-reports-C-M11Ewx.js","assets/reports-tab-b87PNkNv.js","assets/agent-site-editor-DwI3mXwZ.js","assets/message-templates-D5TTMXdz.js","assets/last-preview-page-DolafzDL.js","assets/use-fast-preview-draft-url-CAOVYx78.js","assets/section-preview-url-Csj0_ZDg.js","assets/claim-phase-copy-0btUuJoC.js","assets/sandbox-git-api-CMdpE2TE.js","assets/save-changes-debug-nBi-n9eV.js","assets/agent-site-editor-DDGTF8rc.css","assets/agent-site-editor-preview-BUdForMN.js","assets/agent-view-guard-O3WyIY56.js","assets/runnable-block-editor-DPGvOiWb.js","assets/monaco-editor-D3gyKeW5.js","assets/safe-image-url-D5z803Ot.js","assets/asset-utils-Bl8mgxfa.js","assets/variant-matcher-override-DquKUvoE.js","assets/agent-site-editor-content-B-s4vnUX.js","assets/mustache-ChbLhy-e.js","assets/agent-site-editor-code-DHn9ldlr.js","assets/agent-automations-CcGv--oW.js","assets/use-automations-LlaDJlNA.js","assets/automation-list-row-CdHBSjU2.js","assets/agent-automation-ZRwCzRyz.js","assets/select-model-BYr7h8L7.js","assets/build-improve-prompt-doc-Jx4Nw8lc.js","assets/use-debounced-autosave-DvQCb6wJ.js","assets/automation-runs-DkQGSYfz.js","assets/agent-settings-S0BObv95.js","assets/settings-tab-BG8Rq5w6.js","assets/use-date-fns-locale-CDbheytD.js","assets/use-mcp-auth-status-CwUBv4Hm.js","assets/use-secrets-B-9J9EkQ.js","assets/agent-assets-Dl566Cx2.js","assets/agent-git-CGVI6Aq_.js","assets/agent-hosting-CuK5vWln.js","assets/empty-state-CvynDoal.js","assets/agent-e2e-BheTu3sG.js","assets/agent-analytics-BHAmS_Vv.js","assets/chart-Bcix-phJ.js","assets/index-C5oMfVw1.js","assets/CartesianChart-CyfhriNO.js","assets/AreaChart-Bm-WOd7b.js","assets/agent-experiments-DySEMnSa.js","assets/agent-monitor-GtldlQaQ.js","assets/Line-BeN-bY3Y.js","assets/ErrorBarContext-DQtaxwUD.js","assets/Sector-C46Vk0wT.js","assets/agent-app-0Lj8xuLI.js","assets/project-app-view-D5WewSj0.js","assets/agent-view-CMVA1gTC.js","assets/agent-file-CDMSSq77.js","assets/agent-deck-EC_2q0-4.js","assets/agent-library-file-CVu7KBHy.js","assets/agent-connect-sources-DOCL0L4U.js","assets/legacy-agents-deep-CovYAG5o.js","assets/tasks-C6FPIHKX.js","assets/taskboard-analytics-DN3ZXOV0.js","assets/reports-DZF0Eu6T.js","assets/library-CQOC6rOe.js","assets/use-org-repo-syncs-DJd41R4N.js","assets/folder-icon-BsGi9z8O.js","assets/skill-md-ChfVs4uF.js","assets/skill-preview-Co5VzFcl.js","assets/discover-D15TnXT7.js","assets/index-_1eIUhNB.js","assets/route-BXepAEc1.js","assets/index-redirect-BhYkN3DP.js","assets/capability-load-error-CG1OQua7.js","assets/connections-BLrf_knq.js","assets/collection-display-button-Cqq95Rk5.js","assets/view-mode-toggle-CJQ43vUA.js","assets/use-delete-connection-BodmL1FQ.js","assets/use-view-mode-D8IEchi6.js","assets/connection-detail-ByWc2VaQ.js","assets/index-Oih4fNwt.js","assets/index-VD5I0PAu.js","assets/index-Dud89Ecl.js","assets/use-create-virtual-mcp-9-NMNx3_.js","assets/monitoring-stats-row-B2mHnjHP.js","assets/collection-detail-ChcpgbQd.js","assets/index--5W-89Xn.js","assets/require-capability-nXjtpUGm.js","assets/access-gate-eZrCTx42.js","assets/multi-select-DWjNtzij.js","assets/general-CLxa6dw_.js","assets/review-settings-0gzJBFQk.js","assets/domain-settings-C4iSYJi_.js","assets/connect-VHpAEDVp.js","assets/api-keys-DOy--osE.js","assets/ai-providers-DDzOPCjm.js","assets/infra-billing-CIY_y-NM.js","assets/secrets-BaKuwycc.js","assets/api-keys-CKnoL6XY.js","assets/buckets-D85bhcTG.js","assets/repositories-J4P1iWK3.js","assets/synced-repos-DQ8WQsrQ.js","assets/tasks-fYEHHw5V.js","assets/members-8jDg9Gt8.js","assets/role-color-Dn2tXDDF.js","assets/roles-D0xiAKmZ.js","assets/sso-DisHvnNZ.js","assets/profile-BDVO0CZL.js","assets/store-CFvcGu_A.js","assets/registry-BL1mut8w.js","assets/store-registry-ap1IeTES.js","assets/agents-list-Bb_RX3Ji.js","assets/automations-rIGMTqYL.js","assets/skills-BjII2RGG.js"])))=>i.map(i=>d[i]);
|
|
2
2
|
function yU(e,t){for(var o=0;o<t.length;o++){const a=t[o];if(typeof a!="string"&&!Array.isArray(a)){for(const n in a)if(n!=="default"&&!(n in e)){const i=Object.getOwnPropertyDescriptor(a,n);i&&Object.defineProperty(e,n,i.get?i:{enumerable:!0,get:()=>a[n]})}}}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 n of document.querySelectorAll('link[rel="modulepreload"]'))a(n);new MutationObserver(n=>{for(const i of n)if(i.type==="childList")for(const l of i.addedNodes)l.tagName==="LINK"&&l.rel==="modulepreload"&&a(l)}).observe(document,{childList:!0,subtree:!0});function o(n){const i={};return n.integrity&&(i.integrity=n.integrity),n.referrerPolicy&&(i.referrerPolicy=n.referrerPolicy),n.crossOrigin==="use-credentials"?i.credentials="include":n.crossOrigin==="anonymous"?i.credentials="omit":i.credentials="same-origin",i}function a(n){if(n.ep)return;n.ep=!0;const i=o(n);fetch(n.href,i)}})();const SU="modulepreload",TU=function(e){return"/"+e},v1={},je=function(t,o,a){let n=Promise.resolve();if(o&&o.length>0){let l=function(p){return Promise.all(p.map(g=>Promise.resolve(g).then(m=>({status:"fulfilled",value:m}),m=>({status:"rejected",reason:m}))))};document.getElementsByTagName("link");const c=document.querySelector("meta[property=csp-nonce]"),u=c?.nonce||c?.getAttribute("nonce");n=l(o.map(p=>{if(p=TU(p),p in v1)return;v1[p]=!0;const g=p.endsWith(".css"),m=g?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${p}"]${m}`))return;const f=document.createElement("link");if(f.rel=g?"stylesheet":SU,g||(f.as="script"),f.crossOrigin="",f.href=p,u&&f.setAttribute("nonce",u),document.head.appendChild(f),g)return new Promise((v,b)=>{f.addEventListener("load",v),f.addEventListener("error",()=>b(Error(`Unable to preload CSS for ${p}`)))})}))}function i(l){const c=new Event("vite:preloadError",{cancelable:!0});if(c.payload=l,window.dispatchEvent(c),!c.defaultPrevented)throw l}return n.then(l=>{for(const c of l||[])c.status==="rejected"&&i(c.reason);return t().catch(i)})};var Ohe=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Ll(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var mS={exports:{}},Pu={};var b1;function wU(){if(b1)return Pu;b1=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.fragment");function o(a,n,i){var l=null;if(i!==void 0&&(l=""+i),n.key!==void 0&&(l=""+n.key),"key"in n){i={};for(var c in n)c!=="key"&&(i[c]=n[c])}else i=n;return n=i.ref,{$$typeof:e,type:a,key:l,ref:n!==void 0?n:null,props:i}}return Pu.Fragment=t,Pu.jsx=o,Pu.jsxs=o,Pu}var y1;function _U(){return y1||(y1=1,mS.exports=wU()),mS.exports}var T=_U(),gS={exports:{}},ct={};var S1;function CU(){if(S1)return ct;S1=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.portal"),o=Symbol.for("react.fragment"),a=Symbol.for("react.strict_mode"),n=Symbol.for("react.profiler"),i=Symbol.for("react.consumer"),l=Symbol.for("react.context"),c=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),p=Symbol.for("react.memo"),g=Symbol.for("react.lazy"),m=Symbol.for("react.activity"),f=Symbol.iterator;function v(M){return M===null||typeof M!="object"?null:(M=f&&M[f]||M["@@iterator"],typeof M=="function"?M:null)}var b={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},S=Object.assign,C={};function w(M,G,q){this.props=M,this.context=G,this.refs=C,this.updater=q||b}w.prototype.isReactComponent={},w.prototype.setState=function(M,G){if(typeof M!="object"&&typeof M!="function"&&M!=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,M,G,"setState")},w.prototype.forceUpdate=function(M){this.updater.enqueueForceUpdate(this,M,"forceUpdate")};function _(){}_.prototype=w.prototype;function E(M,G,q){this.props=M,this.context=G,this.refs=C,this.updater=q||b}var x=E.prototype=new _;x.constructor=E,S(x,w.prototype),x.isPureReactComponent=!0;var k=Array.isArray;function R(){}var D={H:null,A:null,T:null,S:null},O=Object.prototype.hasOwnProperty;function N(M,G,q){var L=q.ref;return{$$typeof:e,type:M,key:G,ref:L!==void 0?L:null,props:q}}function $(M,G){return N(M.type,G,M.props)}function F(M){return typeof M=="object"&&M!==null&&M.$$typeof===e}function z(M){var G={"=":"=0",":":"=2"};return"$"+M.replace(/[=:]/g,function(q){return G[q]})}var j=/\/+/g;function K(M,G){return typeof M=="object"&&M!==null&&M.key!=null?z(""+M.key):G.toString(36)}function ne(M){switch(M.status){case"fulfilled":return M.value;case"rejected":throw M.reason;default:switch(typeof M.status=="string"?M.then(R,R):(M.status="pending",M.then(function(G){M.status==="pending"&&(M.status="fulfilled",M.value=G)},function(G){M.status==="pending"&&(M.status="rejected",M.reason=G)})),M.status){case"fulfilled":return M.value;case"rejected":throw M.reason}}throw M}function H(M,G,q,L,U){var J=typeof M;(J==="undefined"||J==="boolean")&&(M=null);var pe=!1;if(M===null)pe=!0;else switch(J){case"bigint":case"string":case"number":pe=!0;break;case"object":switch(M.$$typeof){case e:case t:pe=!0;break;case g:return pe=M._init,H(pe(M._payload),G,q,L,U)}}if(pe)return U=U(M),pe=L===""?"."+K(M,0):L,k(U)?(q="",pe!=null&&(q=pe.replace(j,"$&/")+"/"),H(U,G,q,"",function($e){return $e})):U!=null&&(F(U)&&(U=$(U,q+(U.key==null||M&&M.key===U.key?"":(""+U.key).replace(j,"$&/")+"/")+pe)),G.push(U)),1;pe=0;var ge=L===""?".":L+":";if(k(M))for(var Ce=0;Ce<M.length;Ce++)L=M[Ce],J=ge+K(L,Ce),pe+=H(L,G,q,J,U);else if(Ce=v(M),typeof Ce=="function")for(M=Ce.call(M),Ce=0;!(L=M.next()).done;)L=L.value,J=ge+K(L,Ce++),pe+=H(L,G,q,J,U);else if(J==="object"){if(typeof M.then=="function")return H(ne(M),G,q,L,U);throw G=String(M),Error("Objects are not valid as a React child (found: "+(G==="[object Object]"?"object with keys {"+Object.keys(M).join(", ")+"}":G)+"). If you meant to render a collection of children, use an array instead.")}return pe}function Z(M,G,q){if(M==null)return M;var L=[],U=0;return H(M,L,"","",function(J){return G.call(q,J,U++)}),L}function te(M){if(M._status===-1){var G=M._result;G=G(),G.then(function(q){(M._status===0||M._status===-1)&&(M._status=1,M._result=q)},function(q){(M._status===0||M._status===-1)&&(M._status=2,M._result=q)}),M._status===-1&&(M._status=0,M._result=G)}if(M._status===1)return M._result.default;throw M._result}var le=typeof reportError=="function"?reportError:function(M){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var G=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof M=="object"&&M!==null&&typeof M.message=="string"?String(M.message):String(M),error:M});if(!window.dispatchEvent(G))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",M);return}console.error(M)},Q={map:Z,forEach:function(M,G,q){Z(M,function(){G.apply(this,arguments)},q)},count:function(M){var G=0;return Z(M,function(){G++}),G},toArray:function(M){return Z(M,function(G){return G})||[]},only:function(M){if(!F(M))throw Error("React.Children.only expected to receive a single React element child.");return M}};return ct.Activity=m,ct.Children=Q,ct.Component=w,ct.Fragment=o,ct.Profiler=n,ct.PureComponent=E,ct.StrictMode=a,ct.Suspense=u,ct.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=D,ct.__COMPILER_RUNTIME={__proto__:null,c:function(M){return D.H.useMemoCache(M)}},ct.cache=function(M){return function(){return M.apply(null,arguments)}},ct.cacheSignal=function(){return null},ct.cloneElement=function(M,G,q){if(M==null)throw Error("The argument must be a React element, but you passed "+M+".");var L=S({},M.props),U=M.key;if(G!=null)for(J in G.key!==void 0&&(U=""+G.key),G)!O.call(G,J)||J==="key"||J==="__self"||J==="__source"||J==="ref"&&G.ref===void 0||(L[J]=G[J]);var J=arguments.length-2;if(J===1)L.children=q;else if(1<J){for(var pe=Array(J),ge=0;ge<J;ge++)pe[ge]=arguments[ge+2];L.children=pe}return N(M.type,U,L)},ct.createContext=function(M){return M={$$typeof:l,_currentValue:M,_currentValue2:M,_threadCount:0,Provider:null,Consumer:null},M.Provider=M,M.Consumer={$$typeof:i,_context:M},M},ct.createElement=function(M,G,q){var L,U={},J=null;if(G!=null)for(L in G.key!==void 0&&(J=""+G.key),G)O.call(G,L)&&L!=="key"&&L!=="__self"&&L!=="__source"&&(U[L]=G[L]);var pe=arguments.length-2;if(pe===1)U.children=q;else if(1<pe){for(var ge=Array(pe),Ce=0;Ce<pe;Ce++)ge[Ce]=arguments[Ce+2];U.children=ge}if(M&&M.defaultProps)for(L in pe=M.defaultProps,pe)U[L]===void 0&&(U[L]=pe[L]);return N(M,J,U)},ct.createRef=function(){return{current:null}},ct.forwardRef=function(M){return{$$typeof:c,render:M}},ct.isValidElement=F,ct.lazy=function(M){return{$$typeof:g,_payload:{_status:-1,_result:M},_init:te}},ct.memo=function(M,G){return{$$typeof:p,type:M,compare:G===void 0?null:G}},ct.startTransition=function(M){var G=D.T,q={};D.T=q;try{var L=M(),U=D.S;U!==null&&U(q,L),typeof L=="object"&&L!==null&&typeof L.then=="function"&&L.then(R,le)}catch(J){le(J)}finally{G!==null&&q.types!==null&&(G.types=q.types),D.T=G}},ct.unstable_useCacheRefresh=function(){return D.H.useCacheRefresh()},ct.use=function(M){return D.H.use(M)},ct.useActionState=function(M,G,q){return D.H.useActionState(M,G,q)},ct.useCallback=function(M,G){return D.H.useCallback(M,G)},ct.useContext=function(M){return D.H.useContext(M)},ct.useDebugValue=function(){},ct.useDeferredValue=function(M,G){return D.H.useDeferredValue(M,G)},ct.useEffect=function(M,G){return D.H.useEffect(M,G)},ct.useEffectEvent=function(M){return D.H.useEffectEvent(M)},ct.useId=function(){return D.H.useId()},ct.useImperativeHandle=function(M,G,q){return D.H.useImperativeHandle(M,G,q)},ct.useInsertionEffect=function(M,G){return D.H.useInsertionEffect(M,G)},ct.useLayoutEffect=function(M,G){return D.H.useLayoutEffect(M,G)},ct.useMemo=function(M,G){return D.H.useMemo(M,G)},ct.useOptimistic=function(M,G){return D.H.useOptimistic(M,G)},ct.useReducer=function(M,G,q){return D.H.useReducer(M,G,q)},ct.useRef=function(M){return D.H.useRef(M)},ct.useState=function(M){return D.H.useState(M)},ct.useSyncExternalStore=function(M,G,q){return D.H.useSyncExternalStore(M,G,q)},ct.useTransition=function(){return D.H.useTransition()},ct.version="19.2.6",ct}var T1;function Ns(){return T1||(T1=1,gS.exports=CU()),gS.exports}var A=Ns();const X=Ll(A),f_=yU({__proto__:null,default:X},[A]);var hS={exports:{}},xu={},fS={exports:{}},vS={};var w1;function PU(){return w1||(w1=1,(function(e){function t(H,Z){var te=H.length;H.push(Z);e:for(;0<te;){var le=te-1>>>1,Q=H[le];if(0<n(Q,Z))H[le]=Z,H[te]=Q,te=le;else break e}}function o(H){return H.length===0?null:H[0]}function a(H){if(H.length===0)return null;var Z=H[0],te=H.pop();if(te!==Z){H[0]=te;e:for(var le=0,Q=H.length,M=Q>>>1;le<M;){var G=2*(le+1)-1,q=H[G],L=G+1,U=H[L];if(0>n(q,te))L<Q&&0>n(U,q)?(H[le]=U,H[L]=te,le=L):(H[le]=q,H[G]=te,le=G);else if(L<Q&&0>n(U,te))H[le]=U,H[L]=te,le=L;else break e}}return Z}function n(H,Z){var te=H.sortIndex-Z.sortIndex;return te!==0?te:H.id-Z.id}if(e.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var i=performance;e.unstable_now=function(){return i.now()}}else{var l=Date,c=l.now();e.unstable_now=function(){return l.now()-c}}var u=[],p=[],g=1,m=null,f=3,v=!1,b=!1,S=!1,C=!1,w=typeof setTimeout=="function"?setTimeout:null,_=typeof clearTimeout=="function"?clearTimeout:null,E=typeof setImmediate<"u"?setImmediate:null;function x(H){for(var Z=o(p);Z!==null;){if(Z.callback===null)a(p);else if(Z.startTime<=H)a(p),Z.sortIndex=Z.expirationTime,t(u,Z);else break;Z=o(p)}}function k(H){if(S=!1,x(H),!b)if(o(u)!==null)b=!0,R||(R=!0,z());else{var Z=o(p);Z!==null&&ne(k,Z.startTime-H)}}var R=!1,D=-1,O=5,N=-1;function $(){return C?!0:!(e.unstable_now()-N<O)}function F(){if(C=!1,R){var H=e.unstable_now();N=H;var Z=!0;try{e:{b=!1,S&&(S=!1,_(D),D=-1),v=!0;var te=f;try{t:{for(x(H),m=o(u);m!==null&&!(m.expirationTime>H&&$());){var le=m.callback;if(typeof le=="function"){m.callback=null,f=m.priorityLevel;var Q=le(m.expirationTime<=H);if(H=e.unstable_now(),typeof Q=="function"){m.callback=Q,x(H),Z=!0;break t}m===o(u)&&a(u),x(H)}else a(u);m=o(u)}if(m!==null)Z=!0;else{var M=o(p);M!==null&&ne(k,M.startTime-H),Z=!1}}break e}finally{m=null,f=te,v=!1}Z=void 0}}finally{Z?z():R=!1}}}var z;if(typeof E=="function")z=function(){E(F)};else if(typeof MessageChannel<"u"){var j=new MessageChannel,K=j.port2;j.port1.onmessage=F,z=function(){K.postMessage(null)}}else z=function(){w(F,0)};function ne(H,Z){D=w(function(){H(e.unstable_now())},Z)}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(H){H.callback=null},e.unstable_forceFrameRate=function(H){0>H||125<H?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):O=0<H?Math.floor(1e3/H):5},e.unstable_getCurrentPriorityLevel=function(){return f},e.unstable_next=function(H){switch(f){case 1:case 2:case 3:var Z=3;break;default:Z=f}var te=f;f=Z;try{return H()}finally{f=te}},e.unstable_requestPaint=function(){C=!0},e.unstable_runWithPriority=function(H,Z){switch(H){case 1:case 2:case 3:case 4:case 5:break;default:H=3}var te=f;f=H;try{return Z()}finally{f=te}},e.unstable_scheduleCallback=function(H,Z,te){var le=e.unstable_now();switch(typeof te=="object"&&te!==null?(te=te.delay,te=typeof te=="number"&&0<te?le+te:le):te=le,H){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=te+Q,H={id:g++,callback:Z,priorityLevel:H,startTime:te,expirationTime:Q,sortIndex:-1},te>le?(H.sortIndex=te,t(p,H),o(u)===null&&H===o(p)&&(S?(_(D),D=-1):S=!0,ne(k,te-le))):(H.sortIndex=Q,t(u,H),b||v||(b=!0,R||(R=!0,z()))),H},e.unstable_shouldYield=$,e.unstable_wrapCallback=function(H){var Z=f;return function(){var te=f;f=Z;try{return H.apply(this,arguments)}finally{f=te}}}})(vS)),vS}var _1;function xU(){return _1||(_1=1,fS.exports=PU()),fS.exports}var bS={exports:{}},Da={};var C1;function kU(){if(C1)return Da;C1=1;var e=Ns();function t(u){var p="https://react.dev/errors/"+u;if(1<arguments.length){p+="?args[]="+encodeURIComponent(arguments[1]);for(var g=2;g<arguments.length;g++)p+="&args[]="+encodeURIComponent(arguments[g])}return"Minified React error #"+u+"; visit "+p+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function o(){}var a={d:{f:o,r:function(){throw Error(t(522))},D:o,C:o,L:o,m:o,X:o,S:o,M:o},p:0,findDOMNode:null},n=Symbol.for("react.portal");function i(u,p,g){var m=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:n,key:m==null?null:""+m,children:u,containerInfo:p,implementation:g}}var l=e.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function c(u,p){if(u==="font")return"";if(typeof p=="string")return p==="use-credentials"?p:""}return Da.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=a,Da.createPortal=function(u,p){var g=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!p||p.nodeType!==1&&p.nodeType!==9&&p.nodeType!==11)throw Error(t(299));return i(u,p,null,g)},Da.flushSync=function(u){var p=l.T,g=a.p;try{if(l.T=null,a.p=2,u)return u()}finally{l.T=p,a.p=g,a.d.f()}},Da.preconnect=function(u,p){typeof u=="string"&&(p?(p=p.crossOrigin,p=typeof p=="string"?p==="use-credentials"?p:"":void 0):p=null,a.d.C(u,p))},Da.prefetchDNS=function(u){typeof u=="string"&&a.d.D(u)},Da.preinit=function(u,p){if(typeof u=="string"&&p&&typeof p.as=="string"){var g=p.as,m=c(g,p.crossOrigin),f=typeof p.integrity=="string"?p.integrity:void 0,v=typeof p.fetchPriority=="string"?p.fetchPriority:void 0;g==="style"?a.d.S(u,typeof p.precedence=="string"?p.precedence:void 0,{crossOrigin:m,integrity:f,fetchPriority:v}):g==="script"&&a.d.X(u,{crossOrigin:m,integrity:f,fetchPriority:v,nonce:typeof p.nonce=="string"?p.nonce:void 0})}},Da.preinitModule=function(u,p){if(typeof u=="string")if(typeof p=="object"&&p!==null){if(p.as==null||p.as==="script"){var g=c(p.as,p.crossOrigin);a.d.M(u,{crossOrigin:g,integrity:typeof p.integrity=="string"?p.integrity:void 0,nonce:typeof p.nonce=="string"?p.nonce:void 0})}}else p==null&&a.d.M(u)},Da.preload=function(u,p){if(typeof u=="string"&&typeof p=="object"&&p!==null&&typeof p.as=="string"){var g=p.as,m=c(g,p.crossOrigin);a.d.L(u,g,{crossOrigin:m,integrity:typeof p.integrity=="string"?p.integrity:void 0,nonce:typeof p.nonce=="string"?p.nonce:void 0,type:typeof p.type=="string"?p.type:void 0,fetchPriority:typeof p.fetchPriority=="string"?p.fetchPriority:void 0,referrerPolicy:typeof p.referrerPolicy=="string"?p.referrerPolicy:void 0,imageSrcSet:typeof p.imageSrcSet=="string"?p.imageSrcSet:void 0,imageSizes:typeof p.imageSizes=="string"?p.imageSizes:void 0,media:typeof p.media=="string"?p.media:void 0})}},Da.preloadModule=function(u,p){if(typeof u=="string")if(p){var g=c(p.as,p.crossOrigin);a.d.m(u,{as:typeof p.as=="string"&&p.as!=="script"?p.as:void 0,crossOrigin:g,integrity:typeof p.integrity=="string"?p.integrity:void 0})}else a.d.m(u)},Da.requestFormReset=function(u){a.d.r(u)},Da.unstable_batchedUpdates=function(u,p){return u(p)},Da.useFormState=function(u,p,g){return l.H.useFormState(u,p,g)},Da.useFormStatus=function(){return l.H.useHostTransitionStatus()},Da.version="19.2.6",Da}var P1;function tI(){if(P1)return bS.exports;P1=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(),bS.exports=kU(),bS.exports}var x1;function EU(){if(x1)return xu;x1=1;var e=xU(),t=Ns(),o=tI();function a(r){var s="https://react.dev/errors/"+r;if(1<arguments.length){s+="?args[]="+encodeURIComponent(arguments[1]);for(var d=2;d<arguments.length;d++)s+="&args[]="+encodeURIComponent(arguments[d])}return"Minified React error #"+r+"; visit "+s+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function n(r){return!(!r||r.nodeType!==1&&r.nodeType!==9&&r.nodeType!==11)}function i(r){var s=r,d=r;if(r.alternate)for(;s.return;)s=s.return;else{r=s;do s=r,(s.flags&4098)!==0&&(d=s.return),r=s.return;while(r)}return s.tag===3?d:null}function l(r){if(r.tag===13){var s=r.memoizedState;if(s===null&&(r=r.alternate,r!==null&&(s=r.memoizedState)),s!==null)return s.dehydrated}return null}function c(r){if(r.tag===31){var s=r.memoizedState;if(s===null&&(r=r.alternate,r!==null&&(s=r.memoizedState)),s!==null)return s.dehydrated}return null}function u(r){if(i(r)!==r)throw Error(a(188))}function p(r){var s=r.alternate;if(!s){if(s=i(r),s===null)throw Error(a(188));return s!==r?null:r}for(var d=r,h=s;;){var y=d.return;if(y===null)break;var P=y.alternate;if(P===null){if(h=y.return,h!==null){d=h;continue}break}if(y.child===P.child){for(P=y.child;P;){if(P===d)return u(y),r;if(P===h)return u(y),s;P=P.sibling}throw Error(a(188))}if(d.return!==h.return)d=y,h=P;else{for(var I=!1,B=y.child;B;){if(B===d){I=!0,d=y,h=P;break}if(B===h){I=!0,h=y,d=P;break}B=B.sibling}if(!I){for(B=P.child;B;){if(B===d){I=!0,d=P,h=y;break}if(B===h){I=!0,h=P,d=y;break}B=B.sibling}if(!I)throw Error(a(189))}}if(d.alternate!==h)throw Error(a(190))}if(d.tag!==3)throw Error(a(188));return d.stateNode.current===d?r:s}function g(r){var s=r.tag;if(s===5||s===26||s===27||s===6)return r;for(r=r.child;r!==null;){if(s=g(r),s!==null)return s;r=r.sibling}return null}var m=Object.assign,f=Symbol.for("react.element"),v=Symbol.for("react.transitional.element"),b=Symbol.for("react.portal"),S=Symbol.for("react.fragment"),C=Symbol.for("react.strict_mode"),w=Symbol.for("react.profiler"),_=Symbol.for("react.consumer"),E=Symbol.for("react.context"),x=Symbol.for("react.forward_ref"),k=Symbol.for("react.suspense"),R=Symbol.for("react.suspense_list"),D=Symbol.for("react.memo"),O=Symbol.for("react.lazy"),N=Symbol.for("react.activity"),$=Symbol.for("react.memo_cache_sentinel"),F=Symbol.iterator;function z(r){return r===null||typeof r!="object"?null:(r=F&&r[F]||r["@@iterator"],typeof r=="function"?r:null)}var j=Symbol.for("react.client.reference");function K(r){if(r==null)return null;if(typeof r=="function")return r.$$typeof===j?null:r.displayName||r.name||null;if(typeof r=="string")return r;switch(r){case S:return"Fragment";case w:return"Profiler";case C:return"StrictMode";case k:return"Suspense";case R:return"SuspenseList";case N:return"Activity"}if(typeof r=="object")switch(r.$$typeof){case b:return"Portal";case E:return r.displayName||"Context";case _:return(r._context.displayName||"Context")+".Consumer";case x:var s=r.render;return r=r.displayName,r||(r=s.displayName||s.name||"",r=r!==""?"ForwardRef("+r+")":"ForwardRef"),r;case D:return s=r.displayName||null,s!==null?s:K(r.type)||"Memo";case O:s=r._payload,r=r._init;try{return K(r(s))}catch{}}return null}var ne=Array.isArray,H=t.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,Z=o.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,te={pending:!1,data:null,method:null,action:null},le=[],Q=-1;function M(r){return{current:r}}function G(r){0>Q||(r.current=le[Q],le[Q]=null,Q--)}function q(r,s){Q++,le[Q]=r.current,r.current=s}var L=M(null),U=M(null),J=M(null),pe=M(null);function ge(r,s){switch(q(J,s),q(U,r),q(L,null),s.nodeType){case 9:case 11:r=(r=s.documentElement)&&(r=r.namespaceURI)?UE(r):0;break;default:if(r=s.tagName,s=s.namespaceURI)s=UE(s),r=zE(s,r);else switch(r){case"svg":r=1;break;case"math":r=2;break;default:r=0}}G(L),q(L,r)}function Ce(){G(L),G(U),G(J)}function $e(r){r.memoizedState!==null&&q(pe,r);var s=L.current,d=zE(s,r.type);s!==d&&(q(U,r),q(L,d))}function Y(r){U.current===r&&(G(L),G(U)),pe.current===r&&(G(pe),Tu._currentValue=te)}var ae,ve;function ie(r){if(ae===void 0)try{throw Error()}catch(d){var s=d.stack.trim().match(/\n( *(at )?)/);ae=s&&s[1]||"",ve=-1<d.stack.indexOf(`
|
|
3
3
|
at`)?" (<anonymous>)":-1<d.stack.indexOf("@")?"@unknown:0:0":""}return`
|
|
4
4
|
`+ae+r+ve}var Te=!1;function xe(r,s){if(!r||Te)return"";Te=!0;var d=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var h={DetermineComponentFrameRoot:function(){try{if(s){var we=function(){throw Error()};if(Object.defineProperty(we.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(we,[])}catch(fe){var me=fe}Reflect.construct(r,[],we)}else{try{we.call()}catch(fe){me=fe}r.call(we.prototype)}}else{try{throw Error()}catch(fe){me=fe}(we=r())&&typeof we.catch=="function"&&we.catch(function(){})}}catch(fe){if(fe&&me&&typeof fe.stack=="string")return[fe.stack,me.stack]}return[null,null]}};h.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var y=Object.getOwnPropertyDescriptor(h.DetermineComponentFrameRoot,"name");y&&y.configurable&&Object.defineProperty(h.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var P=h.DetermineComponentFrameRoot(),I=P[0],B=P[1];if(I&&B){var ee=I.split(`
|
|
@@ -157,7 +157,7 @@ ou um por linha`,"common.inviteMemberDialog.errorFailedInvite":"Falha ao convida
|
|
|
157
157
|
.block-interactivity-`.concat(e,` {pointer-events: none;}
|
|
158
158
|
.allow-interactivity-`).concat(e,` {pointer-events: all;}
|
|
159
159
|
`)},woe=0,Lc=[];function _oe(e){var t=A.useRef([]),o=A.useRef([0,0]),a=A.useRef(),n=A.useState(woe++)[0],i=A.useState(vF)[0],l=A.useRef(e);A.useEffect(function(){l.current=e},[e]),A.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(n));var S=Vte([e.lockRef.current],(e.shards||[]).map(qD),!0).filter(Boolean);return S.forEach(function(C){return C.classList.add("allow-interactivity-".concat(n))}),function(){document.body.classList.remove("block-interactivity-".concat(n)),S.forEach(function(C){return C.classList.remove("allow-interactivity-".concat(n))})}}},[e.inert,e.lockRef.current,e.shards]);var c=A.useCallback(function(S,C){if("touches"in S&&S.touches.length===2||S.type==="wheel"&&S.ctrlKey)return!l.current.allowPinchZoom;var w=Ah(S),_=o.current,E="deltaX"in S?S.deltaX:_[0]-w[0],x="deltaY"in S?S.deltaY:_[1]-w[1],k,R=S.target,D=Math.abs(E)>Math.abs(x)?"h":"v";if("touches"in S&&D==="h"&&R.type==="range")return!1;var O=window.getSelection(),N=O&&O.anchorNode,$=N?N===R||N.contains(R):!1;if($)return!1;var F=zD(D,R);if(!F)return!0;if(F?k=D:(k=D==="v"?"h":"v",F=zD(D,R)),!F)return!1;if(!a.current&&"changedTouches"in S&&(E||x)&&(a.current=k),!k)return!0;var z=a.current||k;return yoe(z,C,S,z==="h"?E:x)},[]),u=A.useCallback(function(S){var C=S;if(!(!Lc.length||Lc[Lc.length-1]!==i)){var w="deltaY"in C?$D(C):Ah(C),_=t.current.filter(function(k){return k.name===C.type&&(k.target===C.target||C.target===k.shadowParent)&&Soe(k.delta,w)})[0];if(_&&_.should){C.cancelable&&C.preventDefault();return}if(!_){var E=(l.current.shards||[]).map(qD).filter(Boolean).filter(function(k){return k.contains(C.target)}),x=E.length>0?c(C,E[0]):!l.current.noIsolation;x&&C.cancelable&&C.preventDefault()}}},[]),p=A.useCallback(function(S,C,w,_){var E={name:S,delta:C,target:w,should:_,shadowParent:Coe(w)};t.current.push(E),setTimeout(function(){t.current=t.current.filter(function(x){return x!==E})},1)},[]),g=A.useCallback(function(S){o.current=Ah(S),a.current=void 0},[]),m=A.useCallback(function(S){p(S.type,$D(S),S.target,c(S,e.lockRef.current))},[]),f=A.useCallback(function(S){p(S.type,Ah(S),S.target,c(S,e.lockRef.current))},[]);A.useEffect(function(){return Lc.push(i),e.setCallbacks({onScrollCapture:m,onWheelCapture:m,onTouchMoveCapture:f}),document.addEventListener("wheel",u,Mc),document.addEventListener("touchmove",u,Mc),document.addEventListener("touchstart",g,Mc),function(){Lc=Lc.filter(function(S){return S!==i}),document.removeEventListener("wheel",u,Mc),document.removeEventListener("touchmove",u,Mc),document.removeEventListener("touchstart",g,Mc)}},[]);var v=e.removeScrollBar,b=e.inert;return A.createElement(A.Fragment,null,b?A.createElement(i,{styles:Toe(n)}):null,v?A.createElement(poe,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function Coe(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const Poe=Xte(fF,_oe);var PC=A.forwardRef(function(e,t){return A.createElement(Lv,Ur({},e,{ref:t,sideCar:Poe}))});PC.classNames=Lv.classNames;var sw=["Enter"," "],xoe=["ArrowDown","PageUp","Home"],TF=["ArrowUp","PageDown","End"],koe=[...xoe,...TF],Eoe={ltr:[...sw,"ArrowRight"],rtl:[...sw,"ArrowLeft"]},Roe={ltr:["ArrowLeft"],rtl:["ArrowRight"]},em="Menu",[Ep,Aoe,Doe]=EN(em),[$l,wF]=zl(em,[Doe,ZN,sF]),tm=ZN(),_F=sF(),[CF,zs]=$l(em),[Ooe,om]=$l(em),PF=e=>{const{__scopeMenu:t,open:o=!1,children:a,dir:n,onOpenChange:i,modal:l=!0}=e,c=tm(t),[u,p]=A.useState(null),g=A.useRef(!1),m=Tr(i),f=RN(n);return A.useEffect(()=>{const v=()=>{g.current=!0,document.addEventListener("pointerdown",b,{capture:!0,once:!0}),document.addEventListener("pointermove",b,{capture:!0,once:!0})},b=()=>g.current=!1;return document.addEventListener("keydown",v,{capture:!0}),()=>{document.removeEventListener("keydown",v,{capture:!0}),document.removeEventListener("pointerdown",b,{capture:!0}),document.removeEventListener("pointermove",b,{capture:!0})}},[]),T.jsx(rF,{...c,children:T.jsx(CF,{scope:t,open:o,onOpenChange:m,content:u,onContentChange:p,children:T.jsx(Ooe,{scope:t,onClose:A.useCallback(()=>m(!1),[m]),isUsingKeyboardRef:g,dir:f,modal:l,children:a})})})};PF.displayName=em;var Ioe="MenuAnchor",xC=A.forwardRef((e,t)=>{const{__scopeMenu:o,...a}=e,n=tm(o);return T.jsx(wte,{...n,...a,ref:t})});xC.displayName=Ioe;var kC="MenuPortal",[Moe,xF]=$l(kC,{forceMount:void 0}),kF=e=>{const{__scopeMenu:t,forceMount:o,children:a,container:n}=e,i=zs(kC,t);return T.jsx(Moe,{scope:t,forceMount:o,children:T.jsx(Ii,{present:o||i.open,children:T.jsx(CC,{asChild:!0,container:n,children:a})})})};kF.displayName=kC;var Qn="MenuContent",[Loe,EC]=$l(Qn),EF=A.forwardRef((e,t)=>{const o=xF(Qn,e.__scopeMenu),{forceMount:a=o.forceMount,...n}=e,i=zs(Qn,e.__scopeMenu),l=om(Qn,e.__scopeMenu);return T.jsx(Ep.Provider,{scope:e.__scopeMenu,children:T.jsx(Ii,{present:a||i.open,children:T.jsx(Ep.Slot,{scope:e.__scopeMenu,children:l.modal?T.jsx(Noe,{...n,ref:t}):T.jsx(Foe,{...n,ref:t})})})})}),Noe=A.forwardRef((e,t)=>{const o=zs(Qn,e.__scopeMenu),a=A.useRef(null),n=la(t,a);return A.useEffect(()=>{const i=a.current;if(i)return mF(i)},[]),T.jsx(RC,{...e,ref:n,trapFocus:o.open,disableOutsidePointerEvents:o.open,disableOutsideScroll:!0,onFocusOutside:mt(e.onFocusOutside,i=>i.preventDefault(),{checkForDefaultPrevented:!1}),onDismiss:()=>o.onOpenChange(!1)})}),Foe=A.forwardRef((e,t)=>{const o=zs(Qn,e.__scopeMenu);return T.jsx(RC,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,disableOutsideScroll:!1,onDismiss:()=>o.onOpenChange(!1)})}),Boe=xp("MenuContent.ScrollLock"),RC=A.forwardRef((e,t)=>{const{__scopeMenu:o,loop:a=!1,trapFocus:n,onOpenAutoFocus:i,onCloseAutoFocus:l,disableOutsidePointerEvents:c,onEntryFocus:u,onEscapeKeyDown:p,onPointerDownOutside:g,onFocusOutside:m,onInteractOutside:f,onDismiss:v,disableOutsideScroll:b,...S}=e,C=zs(Qn,o),w=om(Qn,o),_=tm(o),E=_F(o),x=Aoe(o),[k,R]=A.useState(null),D=A.useRef(null),O=la(t,D,C.onContentChange),N=A.useRef(0),$=A.useRef(""),F=A.useRef(0),z=A.useRef(null),j=A.useRef("right"),K=A.useRef(0),ne=b?PC:A.Fragment,H=b?{as:Boe,allowPinchZoom:!0}:void 0,Z=le=>{const Q=$.current+le,M=x().filter(pe=>!pe.disabled),G=document.activeElement,q=M.find(pe=>pe.ref.current===G)?.textValue,L=M.map(pe=>pe.textValue),U=Zoe(L,Q,q),J=M.find(pe=>pe.textValue===U)?.ref.current;(function pe(ge){$.current=ge,window.clearTimeout(N.current),ge!==""&&(N.current=window.setTimeout(()=>pe(""),1e3))})(Q),J&&setTimeout(()=>J.focus())};A.useEffect(()=>()=>window.clearTimeout(N.current),[]),ON();const te=A.useCallback(le=>j.current===z.current?.side&&Joe(le,z.current?.area),[]);return T.jsx(Loe,{scope:o,searchRef:$,onItemEnter:A.useCallback(le=>{te(le)&&le.preventDefault()},[te]),onItemLeave:A.useCallback(le=>{te(le)||(D.current?.focus(),R(null))},[te]),onTriggerLeave:A.useCallback(le=>{te(le)&&le.preventDefault()},[te]),pointerGraceTimerRef:F,onPointerGraceIntentChange:A.useCallback(le=>{z.current=le},[]),children:T.jsx(ne,{...H,children:T.jsx(gC,{asChild:!0,trapped:n,onMountAutoFocus:mt(i,le=>{le.preventDefault(),D.current?.focus({preventScroll:!0})}),onUnmountAutoFocus:l,children:T.jsx(mC,{asChild:!0,disableOutsidePointerEvents:c,onEscapeKeyDown:p,onPointerDownOutside:g,onFocusOutside:m,onInteractOutside:f,onDismiss:v,children:T.jsx(jte,{asChild:!0,...E,dir:w.dir,orientation:"vertical",loop:a,currentTabStopId:k,onCurrentTabStopIdChange:R,onEntryFocus:mt(u,le=>{w.isUsingKeyboardRef.current||le.preventDefault()}),preventScrollOnEntryFocus:!0,children:T.jsx(_te,{role:"menu","aria-orientation":"vertical","data-state":HF(C.open),"data-radix-menu-content":"",dir:w.dir,..._,...S,ref:O,style:{outline:"none",...S.style},onKeyDown:mt(S.onKeyDown,le=>{const M=le.target.closest("[data-radix-menu-content]")===le.currentTarget,G=le.ctrlKey||le.altKey||le.metaKey,q=le.key.length===1;M&&(le.key==="Tab"&&le.preventDefault(),!G&&q&&Z(le.key));const L=D.current;if(le.target!==L||!koe.includes(le.key))return;le.preventDefault();const J=x().filter(pe=>!pe.disabled).map(pe=>pe.ref.current);TF.includes(le.key)&&J.reverse(),Woe(J)}),onBlur:mt(e.onBlur,le=>{le.currentTarget.contains(le.target)||(window.clearTimeout(N.current),$.current="")}),onPointerMove:mt(e.onPointerMove,Rp(le=>{const Q=le.target,M=K.current!==le.clientX;if(le.currentTarget.contains(Q)&&M){const G=le.clientX>K.current?"right":"left";j.current=G,K.current=le.clientX}}))})})})})})})});EF.displayName=Qn;var joe="MenuGroup",AC=A.forwardRef((e,t)=>{const{__scopeMenu:o,...a}=e;return T.jsx(Eo.div,{role:"group",...a,ref:t})});AC.displayName=joe;var Uoe="MenuLabel",RF=A.forwardRef((e,t)=>{const{__scopeMenu:o,...a}=e;return T.jsx(Eo.div,{...a,ref:t})});RF.displayName=Uoe;var Of="MenuItem",VD="menu.itemSelect",Nv=A.forwardRef((e,t)=>{const{disabled:o=!1,onSelect:a,...n}=e,i=A.useRef(null),l=om(Of,e.__scopeMenu),c=EC(Of,e.__scopeMenu),u=la(t,i),p=A.useRef(!1),g=()=>{const m=i.current;if(!o&&m){const f=new CustomEvent(VD,{bubbles:!0,cancelable:!0});m.addEventListener(VD,v=>a?.(v),{once:!0}),kN(m,f),f.defaultPrevented?p.current=!1:l.onClose()}};return T.jsx(AF,{...n,ref:u,disabled:o,onClick:mt(e.onClick,g),onPointerDown:m=>{e.onPointerDown?.(m),p.current=!0},onPointerUp:mt(e.onPointerUp,m=>{p.current||m.currentTarget?.click()}),onKeyDown:mt(e.onKeyDown,m=>{const f=c.searchRef.current!=="";o||f&&m.key===" "||sw.includes(m.key)&&(m.currentTarget.click(),m.preventDefault())})})});Nv.displayName=Of;var AF=A.forwardRef((e,t)=>{const{__scopeMenu:o,disabled:a=!1,textValue:n,...i}=e,l=EC(Of,o),c=_F(o),u=A.useRef(null),p=la(t,u),[g,m]=A.useState(!1),[f,v]=A.useState("");return A.useEffect(()=>{const b=u.current;b&&v((b.textContent??"").trim())},[i.children]),T.jsx(Ep.ItemSlot,{scope:o,disabled:a,textValue:n??f,children:T.jsx(Ute,{asChild:!0,...c,focusable:!a,children:T.jsx(Eo.div,{role:"menuitem","data-highlighted":g?"":void 0,"aria-disabled":a||void 0,"data-disabled":a?"":void 0,...i,ref:p,onPointerMove:mt(e.onPointerMove,Rp(b=>{a?l.onItemLeave(b):(l.onItemEnter(b),b.defaultPrevented||b.currentTarget.focus({preventScroll:!0}))})),onPointerLeave:mt(e.onPointerLeave,Rp(b=>l.onItemLeave(b))),onFocus:mt(e.onFocus,()=>m(!0)),onBlur:mt(e.onBlur,()=>m(!1))})})})}),zoe="MenuCheckboxItem",DF=A.forwardRef((e,t)=>{const{checked:o=!1,onCheckedChange:a,...n}=e;return T.jsx(NF,{scope:e.__scopeMenu,checked:o,children:T.jsx(Nv,{role:"menuitemcheckbox","aria-checked":If(o)?"mixed":o,...n,ref:t,"data-state":IC(o),onSelect:mt(n.onSelect,()=>a?.(If(o)?!0:!o),{checkForDefaultPrevented:!1})})})});DF.displayName=zoe;var OF="MenuRadioGroup",[$oe,qoe]=$l(OF,{value:void 0,onValueChange:()=>{}}),IF=A.forwardRef((e,t)=>{const{value:o,onValueChange:a,...n}=e,i=Tr(a);return T.jsx($oe,{scope:e.__scopeMenu,value:o,onValueChange:i,children:T.jsx(AC,{...n,ref:t})})});IF.displayName=OF;var MF="MenuRadioItem",LF=A.forwardRef((e,t)=>{const{value:o,...a}=e,n=qoe(MF,e.__scopeMenu),i=o===n.value;return T.jsx(NF,{scope:e.__scopeMenu,checked:i,children:T.jsx(Nv,{role:"menuitemradio","aria-checked":i,...a,ref:t,"data-state":IC(i),onSelect:mt(a.onSelect,()=>n.onValueChange?.(o),{checkForDefaultPrevented:!1})})})});LF.displayName=MF;var DC="MenuItemIndicator",[NF,Voe]=$l(DC,{checked:!1}),FF=A.forwardRef((e,t)=>{const{__scopeMenu:o,forceMount:a,...n}=e,i=Voe(DC,o);return T.jsx(Ii,{present:a||If(i.checked)||i.checked===!0,children:T.jsx(Eo.span,{...n,ref:t,"data-state":IC(i.checked)})})});FF.displayName=DC;var Hoe="MenuSeparator",BF=A.forwardRef((e,t)=>{const{__scopeMenu:o,...a}=e;return T.jsx(Eo.div,{role:"separator","aria-orientation":"horizontal",...a,ref:t})});BF.displayName=Hoe;var Goe="MenuArrow",jF=A.forwardRef((e,t)=>{const{__scopeMenu:o,...a}=e,n=tm(o);return T.jsx(Cte,{...n,...a,ref:t})});jF.displayName=Goe;var OC="MenuSub",[Koe,UF]=$l(OC),zF=e=>{const{__scopeMenu:t,children:o,open:a=!1,onOpenChange:n}=e,i=zs(OC,t),l=tm(t),[c,u]=A.useState(null),[p,g]=A.useState(null),m=Tr(n);return A.useEffect(()=>(i.open===!1&&m(!1),()=>m(!1)),[i.open,m]),T.jsx(rF,{...l,children:T.jsx(CF,{scope:t,open:a,onOpenChange:m,content:p,onContentChange:g,children:T.jsx(Koe,{scope:t,contentId:As(),triggerId:As(),trigger:c,onTriggerChange:u,children:o})})})};zF.displayName=OC;var Xu="MenuSubTrigger",$F=A.forwardRef((e,t)=>{const o=zs(Xu,e.__scopeMenu),a=om(Xu,e.__scopeMenu),n=UF(Xu,e.__scopeMenu),i=EC(Xu,e.__scopeMenu),l=A.useRef(null),{pointerGraceTimerRef:c,onPointerGraceIntentChange:u}=i,p={__scopeMenu:e.__scopeMenu},g=A.useCallback(()=>{l.current&&window.clearTimeout(l.current),l.current=null},[]);return A.useEffect(()=>g,[g]),A.useEffect(()=>{const m=c.current;return()=>{window.clearTimeout(m),u(null)}},[c,u]),T.jsx(xC,{asChild:!0,...p,children:T.jsx(AF,{id:n.triggerId,"aria-haspopup":"menu","aria-expanded":o.open,"aria-controls":n.contentId,"data-state":HF(o.open),...e,ref:Zp(t,n.onTriggerChange),onClick:m=>{e.onClick?.(m),!(e.disabled||m.defaultPrevented)&&(m.currentTarget.focus(),o.open||o.onOpenChange(!0))},onPointerMove:mt(e.onPointerMove,Rp(m=>{i.onItemEnter(m),!m.defaultPrevented&&!e.disabled&&!o.open&&!l.current&&(i.onPointerGraceIntentChange(null),l.current=window.setTimeout(()=>{o.onOpenChange(!0),g()},100))})),onPointerLeave:mt(e.onPointerLeave,Rp(m=>{g();const f=o.content?.getBoundingClientRect();if(f){const v=o.content?.dataset.side,b=v==="right",S=b?-5:5,C=f[b?"left":"right"],w=f[b?"right":"left"];i.onPointerGraceIntentChange({area:[{x:m.clientX+S,y:m.clientY},{x:C,y:f.top},{x:w,y:f.top},{x:w,y:f.bottom},{x:C,y:f.bottom}],side:v}),window.clearTimeout(c.current),c.current=window.setTimeout(()=>i.onPointerGraceIntentChange(null),300)}else{if(i.onTriggerLeave(m),m.defaultPrevented)return;i.onPointerGraceIntentChange(null)}})),onKeyDown:mt(e.onKeyDown,m=>{const f=i.searchRef.current!=="";e.disabled||f&&m.key===" "||Eoe[a.dir].includes(m.key)&&(o.onOpenChange(!0),o.content?.focus(),m.preventDefault())})})})});$F.displayName=Xu;var qF="MenuSubContent",VF=A.forwardRef((e,t)=>{const o=xF(Qn,e.__scopeMenu),{forceMount:a=o.forceMount,...n}=e,i=zs(Qn,e.__scopeMenu),l=om(Qn,e.__scopeMenu),c=UF(qF,e.__scopeMenu),u=A.useRef(null),p=la(t,u);return T.jsx(Ep.Provider,{scope:e.__scopeMenu,children:T.jsx(Ii,{present:a||i.open,children:T.jsx(Ep.Slot,{scope:e.__scopeMenu,children:T.jsx(RC,{id:c.contentId,"aria-labelledby":c.triggerId,...n,ref:p,align:"start",side:l.dir==="rtl"?"left":"right",disableOutsidePointerEvents:!1,disableOutsideScroll:!1,trapFocus:!1,onOpenAutoFocus:g=>{l.isUsingKeyboardRef.current&&u.current?.focus(),g.preventDefault()},onCloseAutoFocus:g=>g.preventDefault(),onFocusOutside:mt(e.onFocusOutside,g=>{g.target!==c.trigger&&i.onOpenChange(!1)}),onEscapeKeyDown:mt(e.onEscapeKeyDown,g=>{l.onClose(),g.preventDefault()}),onKeyDown:mt(e.onKeyDown,g=>{const m=g.currentTarget.contains(g.target),f=Roe[l.dir].includes(g.key);m&&f&&(i.onOpenChange(!1),c.trigger?.focus(),g.preventDefault())})})})})})});VF.displayName=qF;function HF(e){return e?"open":"closed"}function If(e){return e==="indeterminate"}function IC(e){return If(e)?"indeterminate":e?"checked":"unchecked"}function Woe(e){const t=document.activeElement;for(const o of e)if(o===t||(o.focus(),document.activeElement!==t))return}function Yoe(e,t){return e.map((o,a)=>e[(t+a)%e.length])}function Zoe(e,t,o){const n=t.length>1&&Array.from(t).every(p=>p===t[0])?t[0]:t,i=o?e.indexOf(o):-1;let l=Yoe(e,Math.max(i,0));n.length===1&&(l=l.filter(p=>p!==o));const u=l.find(p=>p.toLowerCase().startsWith(n.toLowerCase()));return u!==o?u:void 0}function Qoe(e,t){const{x:o,y:a}=e;let n=!1;for(let i=0,l=t.length-1;i<t.length;l=i++){const c=t[i],u=t[l],p=c.x,g=c.y,m=u.x,f=u.y;g>a!=f>a&&o<(m-p)*(a-g)/(f-g)+p&&(n=!n)}return n}function Joe(e,t){if(!t)return!1;const o={x:e.clientX,y:e.clientY};return Qoe(o,t)}function Rp(e){return t=>t.pointerType==="mouse"?e(t):void 0}var Xoe=PF,eae=xC,tae=kF,oae=EF,aae=AC,nae=RF,rae=Nv,iae=DF,sae=IF,lae=LF,cae=FF,dae=BF,uae=jF,pae=zF,mae=$F,gae=VF,Fv="DropdownMenu",[hae]=zl(Fv,[wF]),Ua=wF(),[fae,GF]=hae(Fv),KF=e=>{const{__scopeDropdownMenu:t,children:o,dir:a,open:n,defaultOpen:i,onOpenChange:l,modal:c=!0}=e,u=Ua(t),p=A.useRef(null),[g,m]=Qp({prop:n,defaultProp:i??!1,onChange:l,caller:Fv});return T.jsx(fae,{scope:t,triggerId:As(),triggerRef:p,contentId:As(),open:g,onOpenChange:m,onOpenToggle:A.useCallback(()=>m(f=>!f),[m]),modal:c,children:T.jsx(Xoe,{...u,open:g,onOpenChange:m,dir:a,modal:c,children:o})})};KF.displayName=Fv;var WF="DropdownMenuTrigger",YF=A.forwardRef((e,t)=>{const{__scopeDropdownMenu:o,disabled:a=!1,...n}=e,i=GF(WF,o),l=Ua(o);return T.jsx(eae,{asChild:!0,...l,children:T.jsx(Eo.button,{type:"button",id:i.triggerId,"aria-haspopup":"menu","aria-expanded":i.open,"aria-controls":i.open?i.contentId:void 0,"data-state":i.open?"open":"closed","data-disabled":a?"":void 0,disabled:a,...n,ref:Zp(t,i.triggerRef),onPointerDown:mt(e.onPointerDown,c=>{!a&&c.button===0&&c.ctrlKey===!1&&(i.onOpenToggle(),i.open||c.preventDefault())}),onKeyDown:mt(e.onKeyDown,c=>{a||(["Enter"," "].includes(c.key)&&i.onOpenToggle(),c.key==="ArrowDown"&&i.onOpenChange(!0),["Enter"," ","ArrowDown"].includes(c.key)&&c.preventDefault())})})})});YF.displayName=WF;var vae="DropdownMenuPortal",ZF=e=>{const{__scopeDropdownMenu:t,...o}=e,a=Ua(t);return T.jsx(tae,{...a,...o})};ZF.displayName=vae;var QF="DropdownMenuContent",JF=A.forwardRef((e,t)=>{const{__scopeDropdownMenu:o,...a}=e,n=GF(QF,o),i=Ua(o),l=A.useRef(!1);return T.jsx(oae,{id:n.contentId,"aria-labelledby":n.triggerId,...i,...a,ref:t,onCloseAutoFocus:mt(e.onCloseAutoFocus,c=>{l.current||n.triggerRef.current?.focus(),l.current=!1,c.preventDefault()}),onInteractOutside:mt(e.onInteractOutside,c=>{const u=c.detail.originalEvent,p=u.button===0&&u.ctrlKey===!0,g=u.button===2||p;(!n.modal||g)&&(l.current=!0)}),style:{...e.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}})});JF.displayName=QF;var bae="DropdownMenuGroup",yae=A.forwardRef((e,t)=>{const{__scopeDropdownMenu:o,...a}=e,n=Ua(o);return T.jsx(aae,{...n,...a,ref:t})});yae.displayName=bae;var Sae="DropdownMenuLabel",XF=A.forwardRef((e,t)=>{const{__scopeDropdownMenu:o,...a}=e,n=Ua(o);return T.jsx(nae,{...n,...a,ref:t})});XF.displayName=Sae;var Tae="DropdownMenuItem",eB=A.forwardRef((e,t)=>{const{__scopeDropdownMenu:o,...a}=e,n=Ua(o);return T.jsx(rae,{...n,...a,ref:t})});eB.displayName=Tae;var wae="DropdownMenuCheckboxItem",tB=A.forwardRef((e,t)=>{const{__scopeDropdownMenu:o,...a}=e,n=Ua(o);return T.jsx(iae,{...n,...a,ref:t})});tB.displayName=wae;var _ae="DropdownMenuRadioGroup",oB=A.forwardRef((e,t)=>{const{__scopeDropdownMenu:o,...a}=e,n=Ua(o);return T.jsx(sae,{...n,...a,ref:t})});oB.displayName=_ae;var Cae="DropdownMenuRadioItem",aB=A.forwardRef((e,t)=>{const{__scopeDropdownMenu:o,...a}=e,n=Ua(o);return T.jsx(lae,{...n,...a,ref:t})});aB.displayName=Cae;var Pae="DropdownMenuItemIndicator",nB=A.forwardRef((e,t)=>{const{__scopeDropdownMenu:o,...a}=e,n=Ua(o);return T.jsx(cae,{...n,...a,ref:t})});nB.displayName=Pae;var xae="DropdownMenuSeparator",rB=A.forwardRef((e,t)=>{const{__scopeDropdownMenu:o,...a}=e,n=Ua(o);return T.jsx(dae,{...n,...a,ref:t})});rB.displayName=xae;var kae="DropdownMenuArrow",Eae=A.forwardRef((e,t)=>{const{__scopeDropdownMenu:o,...a}=e,n=Ua(o);return T.jsx(uae,{...n,...a,ref:t})});Eae.displayName=kae;var Rae=e=>{const{__scopeDropdownMenu:t,children:o,open:a,onOpenChange:n,defaultOpen:i}=e,l=Ua(t),[c,u]=Qp({prop:a,defaultProp:i??!1,onChange:n,caller:"DropdownMenuSub"});return T.jsx(pae,{...l,open:c,onOpenChange:u,children:o})},Aae="DropdownMenuSubTrigger",iB=A.forwardRef((e,t)=>{const{__scopeDropdownMenu:o,...a}=e,n=Ua(o);return T.jsx(mae,{...n,...a,ref:t})});iB.displayName=Aae;var Dae="DropdownMenuSubContent",sB=A.forwardRef((e,t)=>{const{__scopeDropdownMenu:o,...a}=e,n=Ua(o);return T.jsx(gae,{...n,...a,ref:t,style:{...e.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}})});sB.displayName=Dae;var lB=KF,cB=YF,dB=ZF,uB=JF,Oae=XF,pB=eB,Iae=tB,Mae=oB,Lae=aB,mB=nB,Nae=rB,Fae=Rae,Bae=iB,jae=sB;const MC=({size:e=24,color:t="currentColor",...o})=>A.createElement("svg",{viewBox:"0 0 24 24",width:e,height:e,stroke:t,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...o},A.createElement("path",{d:"M12 9v4m0 4h.01M10.615 3.892 2.39 18.098c-.456.788-.684 1.182-.65 1.506a1 1 0 0 0 .406.705c.263.191.718.191 1.629.191h16.45c.91 0 1.365 0 1.628-.191a1 1 0 0 0 .407-.705c.034-.324-.195-.718-.65-1.506L13.383 3.892c-.454-.785-.681-1.178-.978-1.31a1 1 0 0 0-.813 0c-.296.132-.523.525-.978 1.31Z"}));MC.displayName="AlertTriangle";const gB=({size:e=24,color:t="currentColor",...o})=>A.createElement("svg",{viewBox:"0 0 24 24",width:e,height:e,stroke:t,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...o},A.createElement("path",{d:"M4 7.997a2.295 2.295 0 0 1-.39-.035A2 2 0 0 1 2.038 6.39C2 6.197 2 5.965 2 5.5s0-.697.038-.89A2 2 0 0 1 3.61 3.038C3.803 3 4.035 3 4.5 3h15c.465 0 .697 0 .89.038a2 2 0 0 1 1.572 1.572c.038.193.038.425.038.89s0 .697-.038.89a2 2 0 0 1-1.572 1.572c-.107.02-.226.03-.39.035M10 13h4M4 8h16v8.2c0 1.68 0 2.52-.327 3.162a3 3 0 0 1-1.311 1.311C17.72 21 16.88 21 15.2 21H8.8c-1.68 0-2.52 0-3.162-.327a3 3 0 0 1-1.311-1.311C4 18.72 4 17.88 4 16.2V8Z"}));gB.displayName="Archive";const hB=({size:e=24,color:t="currentColor",...o})=>A.createElement("svg",{viewBox:"0 0 24 24",width:e,height:e,stroke:t,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...o},A.createElement("path",{d:"M7 17 17 7m0 0H7m10 0v10"}));hB.displayName="ArrowUpRight";const fB=({size:e=24,color:t="currentColor",...o})=>A.createElement("svg",{viewBox:"0 0 24 24",width:e,height:e,stroke:t,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...o},A.createElement("path",{d:"M20 6 9 17l-5-5"}));fB.displayName="Check";const LC=({size:e=24,color:t="currentColor",...o})=>A.createElement("svg",{viewBox:"0 0 24 24",width:e,height:e,stroke:t,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...o},A.createElement("path",{d:"m9 18 6-6-6-6"}));LC.displayName="ChevronRight";const vB=({size:e=24,color:t="currentColor",...o})=>A.createElement("svg",{viewBox:"0 0 24 24",width:e,height:e,stroke:t,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...o},A.createElement("path",{d:"M12 22c5.523 0 10-4.477 10-10S17.523 2 12 2 2 6.477 2 12s4.477 10 10 10Z"}));vB.displayName="Circle";const bB=({size:e=24,color:t="currentColor",...o})=>A.createElement("svg",{viewBox:"0 0 24 24",width:e,height:e,stroke:t,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...o},A.createElement("path",{d:"M9 2v2m6-2v2M9 20v2m6-2v2m5-13h2m-2 5h2M2 9h2m-2 5h2m4.8 6h6.4c1.68 0 2.52 0 3.162-.327a3 3 0 0 0 1.311-1.311C20 17.72 20 16.88 20 15.2V8.8c0-1.68 0-2.52-.327-3.162a3 3 0 0 0-1.311-1.311C17.72 4 16.88 4 15.2 4H8.8c-1.68 0-2.52 0-3.162.327a3 3 0 0 0-1.311 1.311C4 6.28 4 7.12 4 8.8v6.4c0 1.68 0 2.52.327 3.162a3 3 0 0 0 1.311 1.311C6.28 20 7.12 20 8.8 20Zm1.8-5h2.8c.56 0 .84 0 1.054-.109a1 1 0 0 0 .437-.437C15 14.24 15 13.96 15 13.4v-2.8c0-.56 0-.84-.109-1.054a1 1 0 0 0-.437-.437C14.24 9 13.96 9 13.4 9h-2.8c-.56 0-.84 0-1.054.109a1 1 0 0 0-.437.437C9 9.76 9 10.04 9 10.6v2.8c0 .56 0 .84.109 1.054a1 1 0 0 0 .437.437C9.76 15 10.04 15 10.6 15Z"}));bB.displayName="CpuChip01";const yB=({size:e=24,color:t="currentColor",...o})=>A.createElement("svg",{viewBox:"0 0 24 24",width:e,height:e,stroke:t,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...o},A.createElement("path",{d:"M12 13a1 1 0 1 0 0-2 1 1 0 0 0 0 2Zm7 0a1 1 0 1 0 0-2 1 1 0 0 0 0 2ZM5 13a1 1 0 1 0 0-2 1 1 0 0 0 0 2Z"}));yB.displayName="DotsHorizontal";const SB=({size:e=24,color:t="currentColor",...o})=>A.createElement("svg",{viewBox:"0 0 24 24",width:e,height:e,stroke:t,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...o},A.createElement("path",{d:"M3 3v10.2c0 1.68 0 2.52.327 3.162a3 3 0 0 0 1.311 1.311C5.28 18 6.12 18 7.8 18H15m0 0a3 3 0 1 0 6 0 3 3 0 0 0-6 0ZM3 8h12m0 0a3 3 0 1 0 6 0 3 3 0 0 0-6 0Z"}));SB.displayName="GitBranch01";const TB=({size:e=24,color:t="currentColor",...o})=>A.createElement("svg",{viewBox:"0 0 24 24",width:e,height:e,stroke:t,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...o},A.createElement("path",{d:"M2.5 12h19M6 16h4M8.967 4h6.066c1.077 0 1.616 0 2.091.164a3 3 0 0 1 1.121.693c.36.352.6.833 1.082 1.796l2.166 4.333c.19.378.284.567.35.765.06.177.102.357.128.541.029.207.029.418.029.841V15.2c0 1.68 0 2.52-.327 3.162a3 3 0 0 1-1.311 1.311C19.72 20 18.88 20 17.2 20H6.8c-1.68 0-2.52 0-3.162-.327a3 3 0 0 1-1.311-1.311C2 17.72 2 16.88 2 15.2v-2.067c0-.422 0-.634.029-.84.026-.184.068-.365.128-.541.066-.199.16-.388.35-.766l2.166-4.333c.482-.963.723-1.444 1.082-1.796a3 3 0 0 1 1.12-.693C7.352 4 7.89 4 8.968 4Z"}));TB.displayName="HardDrive";const wB=({size:e=24,color:t="currentColor",...o})=>A.createElement("svg",{viewBox:"0 0 24 24",width:e,height:e,stroke:t,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...o},A.createElement("path",{d:"M17 10V8A5 5 0 0 0 7 8v2m5 4.5v2M8.8 21h6.4c1.68 0 2.52 0 3.162-.327a3 3 0 0 0 1.311-1.311C20 18.72 20 17.88 20 16.2v-1.4c0-1.68 0-2.52-.327-3.162a3 3 0 0 0-1.311-1.311C17.72 10 16.88 10 15.2 10H8.8c-1.68 0-2.52 0-3.162.327a3 3 0 0 0-1.311 1.311C4 12.28 4 13.12 4 14.8v1.4c0 1.68 0 2.52.327 3.162a3 3 0 0 0 1.311 1.311C6.28 21 7.12 21 8.8 21Z"}));wB.displayName="Lock01";const _B=({size:e=24,color:t="currentColor",...o})=>A.createElement("svg",{viewBox:"0 0 24 24",width:e,height:e,stroke:t,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...o},A.createElement("path",{d:"M21 10s-2.005-2.732-3.634-4.362a9 9 0 1 0 2.282 8.862M21 10V4m0 6h-6"}));_B.displayName="RefreshCw01";const CB=({size:e=24,color:t="currentColor",...o})=>A.createElement("svg",{viewBox:"0 0 24 24",width:e,height:e,stroke:t,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...o},A.createElement("path",{d:"M6 6h.01M6 18h.01m-.81-8h13.6c1.12 0 1.68 0 2.108-.218a2 2 0 0 0 .874-.874C22 8.48 22 7.92 22 6.8V5.2c0-1.12 0-1.68-.218-2.108a2 2 0 0 0-.874-.874C20.48 2 19.92 2 18.8 2H5.2c-1.12 0-1.68 0-2.108.218a2 2 0 0 0-.874.874C2 3.52 2 4.08 2 5.2v1.6c0 1.12 0 1.68.218 2.108a2 2 0 0 0 .874.874C3.52 10 4.08 10 5.2 10Zm0 12h13.6c1.12 0 1.68 0 2.108-.218a2 2 0 0 0 .874-.874C22 20.48 22 19.92 22 18.8v-1.6c0-1.12 0-1.68-.218-2.108a2 2 0 0 0-.874-.874C20.48 14 19.92 14 18.8 14H5.2c-1.12 0-1.68 0-2.108.218a2 2 0 0 0-.874.874C2 15.52 2 16.08 2 17.2v1.6c0 1.12 0 1.68.218 2.108a2 2 0 0 0 .874.874C3.52 22 4.08 22 5.2 22Z"}));CB.displayName="Server01";const PB=({size:e=24,color:t="currentColor",...o})=>A.createElement("svg",{viewBox:"0 0 24 24",width:e,height:e,stroke:t,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...o},A.createElement("path",{d:"M11.302 21.615c.221.129.332.194.488.227.122.026.298.026.42 0 .156-.034.267-.098.488-.227C14.646 20.478 20 16.908 20 12V7.217c0-.799 0-1.199-.13-1.542a2 2 0 0 0-.548-.79c-.275-.243-.65-.383-1.398-.664l-5.362-2.01c-.208-.078-.312-.117-.419-.133a1 1 0 0 0-.286 0c-.107.016-.21.055-.419.133L6.076 4.22c-.748.28-1.122.421-1.398.664a2 2 0 0 0-.547.79C4 6.018 4 6.418 4 7.217V12c0 4.908 5.354 8.478 7.302 9.615Z"}));PB.displayName="Shield01";const xB=({size:e=24,color:t="currentColor",...o})=>A.createElement("svg",{viewBox:"0 0 24 24",width:e,height:e,stroke:t,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...o},A.createElement("path",{d:"M18 15.837c1.456.731 2.704 1.905 3.615 3.373.18.29.27.436.302.637.063.409-.216.912-.597 1.073-.188.08-.398.08-.82.08M16 11.532a4.5 4.5 0 0 0 0-8.064M14 7.5a4.5 4.5 0 1 1-9 0 4.5 4.5 0 0 1 9 0ZM2.56 18.938C4.153 16.545 6.67 15 9.5 15s5.346 1.545 6.94 3.938c.35.525.525.787.505 1.122-.016.26-.187.58-.396.738-.267.202-.635.202-1.371.202H3.822c-.736 0-1.104 0-1.372-.202a1.109 1.109 0 0 1-.395-.738c-.02-.335.155-.597.504-1.122Z"}));xB.displayName="Users03";function Uae(e){const t=Ne.c(4);let o;t[0]!==e?({...o}=e,t[0]=e,t[1]=o):o=t[1];let a;return t[2]!==o?(a=T.jsx(lB,{"data-slot":"dropdown-menu",...o}),t[2]=o,t[3]=a):a=t[3],a}function zae(e){const t=Ne.c(4);let o;t[0]!==e?({...o}=e,t[0]=e,t[1]=o):o=t[1];let a;return t[2]!==o?(a=T.jsx(cB,{"data-slot":"dropdown-menu-trigger",...o}),t[2]=o,t[3]=a):a=t[3],a}function $ae(e){const t=Ne.c(10);let o,a,n;t[0]!==e?({className:o,sideOffset:n,...a}=e,t[0]=e,t[1]=o,t[2]=a,t[3]=n):(o=t[1],a=t[2],n=t[3]);const i=n===void 0?4:n;let l;t[4]!==o?(l=Nt("notranslate bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 max-h-(--radix-dropdown-menu-content-available-height) min-w-[8rem] origin-(--radix-dropdown-menu-content-transform-origin) overflow-x-hidden overflow-y-auto rounded-lg border p-1 shadow-md",o),t[4]=o,t[5]=l):l=t[5];let c;return t[6]!==a||t[7]!==i||t[8]!==l?(c=T.jsx(dB,{children:T.jsx(uB,{"data-slot":"dropdown-menu-content",sideOffset:i,translate:"no",className:l,...a})}),t[6]=a,t[7]=i,t[8]=l,t[9]=c):c=t[9],c}function qae(e){const t=Ne.c(12);let o,a,n,i;t[0]!==e?({className:o,inset:a,variant:i,...n}=e,t[0]=e,t[1]=o,t[2]=a,t[3]=n,t[4]=i):(o=t[1],a=t[2],n=t[3],i=t[4]);const l=i===void 0?"default":i;let c;t[5]!==o?(c=Nt("focus:bg-accent focus:text-accent-foreground data-[variant=destructive]:text-destructive data-[variant=destructive]:focus:bg-destructive/10 dark:data-[variant=destructive]:focus:bg-destructive/20 data-[variant=destructive]:focus:text-destructive data-[variant=destructive]:*:[svg]:!text-destructive [&_svg:not([class*='text-'])]:text-muted-foreground relative flex cursor-pointer items-center gap-2 rounded-lg px-2 py-1.5 text-sm outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 data-[inset]:pl-8 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",o),t[5]=o,t[6]=c):c=t[6];let u;return t[7]!==a||t[8]!==n||t[9]!==c||t[10]!==l?(u=T.jsx(pB,{"data-slot":"dropdown-menu-item","data-inset":a,"data-variant":l,className:c,...n}),t[7]=a,t[8]=n,t[9]=c,t[10]=l,t[11]=u):u=t[11],u}function qfe(e){const t=Ne.c(13);let o,a,n,i;t[0]!==e?({className:n,children:a,checked:o,...i}=e,t[0]=e,t[1]=o,t[2]=a,t[3]=n,t[4]=i):(o=t[1],a=t[2],n=t[3],i=t[4]);let l;t[5]!==n?(l=Nt("focus:bg-accent focus:text-accent-foreground relative flex cursor-default items-center gap-2 rounded-lg py-1.5 pr-2 pl-8 text-sm outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",n),t[5]=n,t[6]=l):l=t[6];let c;t[7]===Symbol.for("react.memo_cache_sentinel")?(c=T.jsx("span",{className:"pointer-events-none absolute left-2 flex size-3.5 items-center justify-center",children:T.jsx(mB,{children:T.jsx(fB,{className:"size-4"})})}),t[7]=c):c=t[7];let u;return t[8]!==o||t[9]!==a||t[10]!==i||t[11]!==l?(u=T.jsxs(Iae,{"data-slot":"dropdown-menu-checkbox-item",className:l,checked:o,...i,children:[c,a]}),t[8]=o,t[9]=a,t[10]=i,t[11]=l,t[12]=u):u=t[12],u}function Vfe(e){const t=Ne.c(4);let o;t[0]!==e?({...o}=e,t[0]=e,t[1]=o):o=t[1];let a;return t[2]!==o?(a=T.jsx(Mae,{"data-slot":"dropdown-menu-radio-group",...o}),t[2]=o,t[3]=a):a=t[3],a}function Hfe(e){const t=Ne.c(11);let o,a,n;t[0]!==e?({className:a,children:o,...n}=e,t[0]=e,t[1]=o,t[2]=a,t[3]=n):(o=t[1],a=t[2],n=t[3]);let i;t[4]!==a?(i=Nt("focus:bg-accent focus:text-accent-foreground relative flex cursor-default items-center gap-2 rounded-lg py-1.5 pr-2 pl-8 text-sm outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",a),t[4]=a,t[5]=i):i=t[5];let l;t[6]===Symbol.for("react.memo_cache_sentinel")?(l=T.jsx("span",{className:"pointer-events-none absolute left-2 flex size-3.5 items-center justify-center",children:T.jsx(mB,{children:T.jsx(vB,{className:"size-2 fill-current"})})}),t[6]=l):l=t[6];let c;return t[7]!==o||t[8]!==n||t[9]!==i?(c=T.jsxs(Lae,{"data-slot":"dropdown-menu-radio-item",className:i,...n,children:[l,o]}),t[7]=o,t[8]=n,t[9]=i,t[10]=c):c=t[10],c}function Gfe(e){const t=Ne.c(10);let o,a,n;t[0]!==e?({className:o,inset:a,...n}=e,t[0]=e,t[1]=o,t[2]=a,t[3]=n):(o=t[1],a=t[2],n=t[3]);let i;t[4]!==o?(i=Nt("px-2 py-1.5 text-sm font-medium data-[inset]:pl-8",o),t[4]=o,t[5]=i):i=t[5];let l;return t[6]!==a||t[7]!==n||t[8]!==i?(l=T.jsx(Oae,{"data-slot":"dropdown-menu-label","data-inset":a,className:i,...n}),t[6]=a,t[7]=n,t[8]=i,t[9]=l):l=t[9],l}function Kfe(e){const t=Ne.c(8);let o,a;t[0]!==e?({className:o,...a}=e,t[0]=e,t[1]=o,t[2]=a):(o=t[1],a=t[2]);let n;t[3]!==o?(n=Nt("bg-border -mx-1 my-1 h-px",o),t[3]=o,t[4]=n):n=t[4];let i;return t[5]!==a||t[6]!==n?(i=T.jsx(Nae,{"data-slot":"dropdown-menu-separator",className:n,...a}),t[5]=a,t[6]=n,t[7]=i):i=t[7],i}function Wfe(e){const t=Ne.c(4);let o;t[0]!==e?({...o}=e,t[0]=e,t[1]=o):o=t[1];let a;return t[2]!==o?(a=T.jsx(Fae,{"data-slot":"dropdown-menu-sub",...o}),t[2]=o,t[3]=a):a=t[3],a}function Yfe(e){const t=Ne.c(13);let o,a,n,i;t[0]!==e?({className:a,inset:n,children:o,...i}=e,t[0]=e,t[1]=o,t[2]=a,t[3]=n,t[4]=i):(o=t[1],a=t[2],n=t[3],i=t[4]);let l;t[5]!==a?(l=Nt("focus:bg-accent focus:text-accent-foreground data-[state=open]:bg-accent data-[state=open]:text-accent-foreground flex cursor-default items-center rounded-lg px-2 py-1.5 text-sm outline-hidden select-none data-[inset]:pl-8",a),t[5]=a,t[6]=l):l=t[6];let c;t[7]===Symbol.for("react.memo_cache_sentinel")?(c=T.jsx(LC,{className:"ml-auto size-4"}),t[7]=c):c=t[7];let u;return t[8]!==o||t[9]!==n||t[10]!==i||t[11]!==l?(u=T.jsxs(Bae,{"data-slot":"dropdown-menu-sub-trigger","data-inset":n,className:l,...i,children:[o,c]}),t[8]=o,t[9]=n,t[10]=i,t[11]=l,t[12]=u):u=t[12],u}function Zfe(e){const t=Ne.c(8);let o,a;t[0]!==e?({className:o,...a}=e,t[0]=e,t[1]=o,t[2]=a):(o=t[1],a=t[2]);let n;t[3]!==o?(n=Nt("notranslate bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 min-w-[8rem] origin-(--radix-dropdown-menu-content-transform-origin) overflow-hidden rounded-md border p-1 shadow-lg",o),t[3]=o,t[4]=n):n=t[4];let i;return t[5]!==a||t[6]!==n?(i=T.jsx(jae,{"data-slot":"dropdown-menu-sub-content",translate:"no",className:n,...a}),t[5]=a,t[6]=n,t[7]=i):i=t[7],i}function p0(){const e=Ne.c(1);let t;return e[0]===Symbol.for("react.memo_cache_sentinel")?(t=T.jsx(LC,{"aria-hidden":"true",className:"size-3 shrink-0 text-muted-foreground/60"}),e[0]=t):t=e[0],t}function HD(e){const t=Ne.c(12),{items:o}=e,a=ar();let n;t[0]!==a?(n=a("page.breadcrumbMenu"),t[0]=a,t[1]=n):n=t[1];let i;t[2]===Symbol.for("react.memo_cache_sentinel")?(i=T.jsx(yB,{"aria-hidden":"true",className:"size-4"}),t[2]=i):i=t[2];let l;t[3]!==n?(l=T.jsx(zae,{asChild:!0,children:T.jsx(Al,{variant:"ghost",size:"icon-sm",className:"size-6 shrink-0","aria-label":n,children:i})}),t[3]=n,t[4]=l):l=t[4];let c;t[5]!==o?(c=o.map(Vae),t[5]=o,t[6]=c):c=t[6];let u;t[7]!==c?(u=T.jsx($ae,{align:"start",children:c}),t[7]=c,t[8]=u):u=t[8];let p;return t[9]!==l||t[10]!==u?(p=T.jsxs(Uae,{children:[l,u]}),t[9]=l,t[10]=u,t[11]=p):p=t[11],p}function Vae(e){return T.jsx(qae,{onSelect:e.onClick,children:T.jsx("span",{className:"max-w-64 truncate",title:e.label,children:e.label})},e.key)}function Hae(e){const t=Ne.c(21),{items:o}=e;if(o.length===0)return null;let a,n,i,l,c;if(t[0]!==o){let g;t[6]!==o.length?(g=(C,w)=>w===0||w===o.length-1,t[6]=o.length,t[7]=g):g=t[7];const m=o.filter(g),f=o.slice(1,-1);i="page-breadcrumbs",l="flex min-w-0 shrink items-center gap-2 text-sm text-muted-foreground";const v=T.jsx(HD,{items:o});let b;t[8]===Symbol.for("react.memo_cache_sentinel")?(b=T.jsx(p0,{}),t[8]=b):b=t[8],t[9]!==v?(c=T.jsxs("div",{className:"flex items-center gap-2 @min-3xl/panel-header:hidden",children:[v,b]}),t[9]=v,t[10]=c):c=t[10],a="hidden min-w-0 items-center gap-2 @min-3xl/panel-header:flex";let S;t[11]!==f?(S=(C,w)=>T.jsxs(A.Fragment,{children:[w===1&&f.length>0&&T.jsxs(T.Fragment,{children:[T.jsx(HD,{items:f}),T.jsx(p0,{})]}),T.jsx("button",{type:"button",onClick:C.onClick,title:C.label,className:"max-w-32 truncate rounded-lg hover:text-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",children:C.label}),T.jsx(p0,{})]},C.key),t[11]=f,t[12]=S):S=t[12],n=m.map(S),t[0]=o,t[1]=a,t[2]=n,t[3]=i,t[4]=l,t[5]=c}else a=t[1],n=t[2],i=t[3],l=t[4],c=t[5];let u;t[13]!==a||t[14]!==n?(u=T.jsx("div",{className:a,children:n}),t[13]=a,t[14]=n,t[15]=u):u=t[15];let p;if(t[16]!==i||t[17]!==l||t[18]!==c||t[19]!==u){const g=T.jsxs("div",{"data-slot":i,className:l,children:[c,u]});p=T.jsx(ea.Topbar.Breadcrumbs.Portal,{fallback:g,children:g}),t[16]=i,t[17]=l,t[18]=c,t[19]=u,t[20]=p}else p=t[20];return p}function Gae(e){const t=Ne.c(8);let o,a;t[0]!==e?({className:o,...a}=e,t[0]=e,t[1]=o,t[2]=a):(o=t[1],a=t[2]);let n;t[3]!==o?(n=Nt("flex h-full min-h-0 min-w-0 w-full flex-col overflow-hidden",o),t[3]=o,t[4]=n):n=t[4];let i;return t[5]!==a||t[6]!==n?(i=T.jsx("div",{...a,"data-slot":"page",className:n}),t[5]=a,t[6]=n,t[7]=i):i=t[7],i}function Kae(e){const t=Ne.c(8);let o,a;t[0]!==e?({className:o,...a}=e,t[0]=e,t[1]=o,t[2]=a):(o=t[1],a=t[2]);let n;t[3]!==o?(n=Nt("min-h-0 min-w-0 flex-1 overflow-auto",o),t[3]=o,t[4]=n):n=t[4];let i;return t[5]!==a||t[6]!==n?(i=T.jsx("div",{...a,"data-slot":"page-content",className:n}),t[5]=a,t[6]=n,t[7]=i):i=t[7],i}const Wae={reading:"max-w-[720px]",standard:"max-w-5xl",wide:"max-w-[1200px]",fluid:"max-w-none"};function Yae(e){const t=Ne.c(11);let o,a,n;t[0]!==e?({className:o,width:n,...a}=e,t[0]=e,t[1]=o,t[2]=a,t[3]=n):(o=t[1],a=t[2],n=t[3]);const i=n===void 0?"wide":n,l=Wae[i];let c;t[4]!==o||t[5]!==l?(c=Nt("mx-auto w-full px-4 classic:pt-8 classic:pb-6 classic:md:px-10 classic:md:pt-12 classic:md:pb-10 compact:py-6 compact:md:px-8 compact:md:py-8",l,o),t[4]=o,t[5]=l,t[6]=c):c=t[6];let u;return t[7]!==a||t[8]!==c||t[9]!==i?(u=T.jsx("div",{...a,"data-slot":"page-container","data-width":i,className:c}),t[7]=a,t[8]=c,t[9]=i,t[10]=u):u=t[10],u}function Zae(e){const t=Ne.c(28),{children:o,actions:a,className:n}=e;if(!sC()){let b;t[0]!==n?(b=Nt("flex flex-wrap items-center justify-between gap-3",n),t[0]=n,t[1]=b):b=t[1];let S;t[2]!==o?(S=T.jsx("h1",{className:"min-w-0 text-xl font-medium",children:o}),t[2]=o,t[3]=S):S=t[3];let C;t[4]!==a?(C=a&&T.jsx("div",{className:"flex items-center gap-2",children:a}),t[4]=a,t[5]=C):C=t[5];let w;return t[6]!==b||t[7]!==S||t[8]!==C?(w=T.jsxs("div",{"data-slot":"page-title",className:b,children:[S,C]}),t[6]=b,t[7]=S,t[8]=C,t[9]=w):w=t[9],w}let l;t[10]!==n?(l=Nt("flex flex-wrap items-center justify-between gap-3",n),t[10]=n,t[11]=l):l=t[11];let c;t[12]!==o?(c=T.jsx("h1",{className:"min-w-0 text-xl font-medium",children:o}),t[12]=o,t[13]=c):c=t[13];let u;t[14]!==l||t[15]!==c?(u=T.jsx("div",{"data-slot":"page-title",className:l,children:c}),t[14]=l,t[15]=c,t[16]=u):u=t[16];const p=typeof o=="string"?o:void 0;let g;t[17]!==o||t[18]!==p?(g=T.jsx("h1",{"data-slot":"page-title","aria-current":"page",title:p,className:"min-w-0 truncate text-sm font-medium",children:o}),t[17]=o,t[18]=p,t[19]=g):g=t[19];let m;t[20]!==u||t[21]!==g?(m=T.jsx(ea.Topbar.Title.Portal,{fallback:u,children:g}),t[20]=u,t[21]=g,t[22]=m):m=t[22];let f;t[23]!==a?(f=a&&T.jsx(kB,{children:a}),t[23]=a,t[24]=f):f=t[24];let v;return t[25]!==m||t[26]!==f?(v=T.jsxs(T.Fragment,{children:[m,f]}),t[25]=m,t[26]=f,t[27]=v):v=t[27],v}function kB(e){const t=Ne.c(5),{children:o,secondary:a}=e,n=sC();let i;t[0]!==o||t[1]!==a?(i=T.jsxs("div",{"data-slot":"page-actions",className:"flex shrink-0 items-center gap-2",children:[a,o]}),t[0]=o,t[1]=a,t[2]=i):i=t[2];const l=i;if(!n)return l;let c;return t[3]!==l?(c=T.jsx(ea.Topbar.Right.Portal,{fallback:l,children:l}),t[3]=l,t[4]=c):c=t[4],c}function Qae(e){const t=Ne.c(33),{title:o,breadcrumbs:a,leading:n,actions:i,navigation:l}=e,c=ar();let u;t[0]!==c?(u=c("page.breadcrumbs"),t[0]=c,t[1]=u):u=t[1];let p;t[2]===Symbol.for("react.memo_cache_sentinel")?(p=T.jsx(ea.Topbar.Breadcrumbs.Target,{}),t[2]=p):p=t[2];let g;t[3]!==o?(g=T.jsx(ea.Topbar.Title,{className:"min-w-12 flex-1",children:T.jsx(ea.Topbar.Title.Target,{fallback:T.jsx("h1",{"aria-current":"page",className:"truncate text-sm font-medium",children:o})})}),t[3]=o,t[4]=g):g=t[4];let m;t[5]!==a||t[6]!==u||t[7]!==g?(m=T.jsxs("nav",{"aria-label":u,className:"flex min-w-0 flex-1 items-center gap-2",children:[a,p,g]}),t[5]=a,t[6]=u,t[7]=g,t[8]=m):m=t[8];let f;t[9]===Symbol.for("react.memo_cache_sentinel")?(f=T.jsx(ea.Topbar.Left.Target,{}),t[9]=f):f=t[9];let v;t[10]!==n||t[11]!==m?(v=T.jsxs(ea.Topbar.Left,{className:"flex-1 gap-2",children:[n,m,f]}),t[10]=n,t[11]=m,t[12]=v):v=t[12];let b;t[13]!==i?(b=T.jsx("div",{className:"peer flex min-w-0 items-center gap-2 empty:hidden",children:i}),t[13]=i,t[14]=b):b=t[14];let S;t[15]===Symbol.for("react.memo_cache_sentinel")?(S=T.jsx(ea.Topbar.Right.Target,{className:"flex items-center gap-2 before:hidden before:h-4 before:w-px before:shrink-0 before:bg-border peer-[:not(:empty)]:before:block"}),t[15]=S):S=t[15];let C;t[16]!==b?(C=T.jsxs(ea.Topbar.Right,{className:"shrink-0 gap-2",children:[b,S]}),t[16]=b,t[17]=C):C=t[17];let w;t[18]!==v||t[19]!==C?(w=T.jsxs(ea.Topbar,{className:"gap-3 border-b border-border/60 px-3","data-testid":"page-header",children:[v,C]}),t[18]=v,t[19]=C,t[20]=w):w=t[20];let _;t[21]!==l?(_=T.jsx("div",{"data-toolbar-content":"",className:"min-w-0 empty:hidden",children:l}),t[21]=l,t[22]=_):_=t[22];let E;t[23]===Symbol.for("react.memo_cache_sentinel")?(E=T.jsx(ea.Toolbar.Left.Target,{}),t[23]=E):E=t[23];let x;t[24]!==_?(x=T.jsxs(ea.Toolbar.Left,{children:[_,E]}),t[24]=_,t[25]=x):x=t[25];let k;t[26]===Symbol.for("react.memo_cache_sentinel")?(k=T.jsx(ea.Toolbar.Center,{className:"@max-xl/panel-toolbar:order-last @max-xl/panel-toolbar:basis-full [&:not(:has([data-toolbar-content]:not(:empty)))]:hidden",children:T.jsx(ea.Toolbar.Center.Target,{})}),t[26]=k):k=t[26];let R;t[27]===Symbol.for("react.memo_cache_sentinel")?(R=T.jsx(ea.Toolbar.Right,{children:T.jsx(ea.Toolbar.Right.Target,{})}),t[27]=R):R=t[27];let D;t[28]!==x?(D=T.jsxs(ea.Toolbar,{children:[x,k,R]}),t[28]=x,t[29]=D):D=t[29];let O;return t[30]!==w||t[31]!==D?(O=T.jsxs(T.Fragment,{children:[w,D]}),t[30]=w,t[31]=D,t[32]=O):O=t[32],O}function Jae(e){const t=Ne.c(11);let o,a;t[0]!==e?({className:o,...a}=e,t[0]=e,t[1]=o,t[2]=a):(o=t[1],a=t[2]);const n=ar();let i;t[3]!==n?(i=n("page.views"),t[3]=n,t[4]=i):i=t[4];let l;t[5]!==o?(l=Nt("-m-2 flex min-w-0 items-center gap-1 overflow-x-auto p-2 no-scrollbar",o),t[5]=o,t[6]=l):l=t[6];let c;return t[7]!==a||t[8]!==i||t[9]!==l?(c=T.jsx("nav",{"aria-label":i,...a,"data-slot":"page-tabs",className:l}),t[7]=a,t[8]=i,t[9]=l,t[10]=c):c=t[10],c}function Xae(e){const t=Ne.c(14);let o,a,n,i;t[0]!==e?({active:o,asChild:i,className:a,...n}=e,t[0]=e,t[1]=o,t[2]=a,t[3]=n,t[4]=i):(o=t[1],a=t[2],n=t[3],i=t[4]);const l=i===void 0?!1:i,c=l?void 0:"button",u=l&&o?"page":void 0,p=l?void 0:o;let g;t[5]!==a?(g=Nt("shrink-0",a),t[5]=a,t[6]=g):g=t[6];let m;return t[7]!==l||t[8]!==n||t[9]!==c||t[10]!==u||t[11]!==p||t[12]!==g?(m=T.jsx(Al,{asChild:l,variant:"tab",size:"sm",...n,type:c,"aria-current":u,"aria-pressed":p,"data-slot":"page-tab",className:g}),t[7]=l,t[8]=n,t[9]=c,t[10]=u,t[11]=p,t[12]=g,t[13]=m):m=t[13],m}const xl=Object.assign(Gae,{Header:Qae,Tabs:Jae,Tab:Xae,Actions:kB,Content:Kae,Container:Yae,Title:Zae,Breadcrumbs:Hae});var he=typeof window<"u"?window:void 0,ia=typeof globalThis<"u"?globalThis:he;typeof self>"u"&&(ia.self=ia),typeof File>"u"&&(ia.File=function(){});var kn=ia?.navigator,Be=ia?.document,wa=ia?.location,lw=ia?.fetch,cw=ia!=null&&ia.XMLHttpRequest&&"withCredentials"in new ia.XMLHttpRequest?ia.XMLHttpRequest:void 0,GD=ia?.AbortController,ene=ia?.CompressionStream,rn=kn?.userAgent,et=he??{},KD="1.372.3",Ka={DEBUG:!1,LIB_VERSION:KD,LIB_NAME:"web",JS_SDK_VERSION:KD};function WD(e,t,o,a,n,i,l){try{var c=e[i](l),u=c.value}catch(p){return void o(p)}c.done?t(u):Promise.resolve(u).then(a,n)}function Kn(e){return function(){var t=this,o=arguments;return new Promise((function(a,n){var i=e.apply(t,o);function l(u){WD(i,a,n,l,c,"next",u)}function c(u){WD(i,a,n,l,c,"throw",u)}l(void 0)}))}}function Oe(){return Oe=Object.assign?Object.assign.bind():function(e){for(var t=1;arguments.length>t;t++){var o=arguments[t];for(var a in o)({}).hasOwnProperty.call(o,a)&&(e[a]=o[a])}return e},Oe.apply(null,arguments)}function EB(e,t){if(e==null)return{};var o={};for(var a in e)if({}.hasOwnProperty.call(e,a)){if(t.indexOf(a)!==-1)continue;o[a]=e[a]}return o}function dw(){return dw=Kn((function*(e,t,o){t===void 0&&(t=!0);try{var a=new CompressionStream("gzip"),n=a.writable.getWriter(),i=n.write(new TextEncoder().encode(e)).then((()=>n.close())).catch((function(){var u=Kn((function*(p){try{yield n.abort(p)}catch{}throw p}));return function(p){return u.apply(this,arguments)}})()),l=new Response(a.readable).blob(),[c]=yield Promise.all([l,i]);return c}catch(u){if(o!=null&&o.rethrow)throw u;return t&&console.error("Failed to gzip compress data",u),null}})),dw.apply(this,arguments)}var tne=["amazonbot","amazonproductbot","app.hypefactors.com","applebot","archive.org_bot","awariobot","backlinksextendedbot","baiduspider","bingbot","bingpreview","chrome-lighthouse","dataforseobot","deepscan","duckduckbot","facebookexternal","facebookcatalog","http://yandex.com/bots","hubspot","ia_archiver","leikibot","linkedinbot","meta-externalagent","mj12bot","msnbot","nessus","petalbot","pinterest","prerender","rogerbot","screaming frog","sebot-wa","sitebulb","slackbot","slurp","trendictionbot","turnitin","twitterbot","vercel-screenshot","vercelbot","yahoo! slurp","yandexbot","zoombot","bot.htm","bot.php","(bot;","bot/","crawler","ahrefsbot","ahrefssiteaudit","semrushbot","siteauditbot","splitsignalbot","gptbot","oai-searchbot","chatgpt-user","perplexitybot","better uptime bot","sentryuptimebot","uptimerobot","headlesschrome","cypress","google-hoteladsverifier","adsbot-google","apis-google","duplexweb-google","feedfetcher-google","google favicon","google web preview","google-read-aloud","googlebot","googleother","google-cloudvertexbot","googleweblight","mediapartners-google","storebot-google","google-inspectiontool","bytespider"],YD=function(e,t){if(t===void 0&&(t=[]),!e)return!1;var o=e.toLowerCase();return tne.concat(t).some((a=>{var n=a.toLowerCase();return o.indexOf(n)!==-1}))},one=["$snapshot","$pageview","$pageleave","$set","survey dismissed","survey sent","survey shown","$identify","$groupidentify","$create_alias","$$client_ingestion_warning","$web_experiment_applied","$feature_enrollment_update","$feature_flag_called"];function Ct(e,t){return e.indexOf(t)!==-1}var Bv=function(e){return e.trim()},uw=function(e){return e.replace(/^\$/,"")},RB=Object.prototype,AB=RB.hasOwnProperty,jv=RB.toString,It=Array.isArray||function(e){return jv.call(e)==="[object Array]"},Ci=e=>typeof e=="function",No=e=>e===Object(e)&&!It(e),Xc=e=>{if(No(e)){for(var t in e)if(AB.call(e,t))return!1;return!0}return!1},Ve=e=>e===void 0,Co=e=>jv.call(e)=="[object String]",tf=e=>Co(e)&&e.trim().length===0,Mi=e=>e===null,Pt=e=>Ve(e)||Mi(e),Xn=e=>jv.call(e)=="[object Number]"&&e==e,Gc=e=>Xn(e)&&e>0,$r=e=>jv.call(e)==="[object Boolean]",ane=e=>e instanceof FormData,nne=e=>Ct(one,e);function DB(e){return e===null||typeof e!="object"}function Mf(e,t){return{}.toString.call(e)==="[object "+t+"]"}function NC(e){return typeof Event<"u"&&(function(t,o){try{return t instanceof o}catch{return!1}})(e,Event)}var rne=[!0,"true",1,"1","yes"],m0=e=>Ct(rne,e),ine=[!1,"false",0,"0","no"];function qr(e,t,o,a,n){return t>o&&(a.warn("min cannot be greater than max."),t=o),Xn(e)?e>o?(a.warn(" cannot be greater than max: "+o+". Using max value instead."),o):t>e?(a.warn(" cannot be less than min: "+t+". Using min value instead."),t):e:(a.warn(" must be a number. using max or fallback. max: "+o+", fallback: "+n),qr(n||o,t,o,a))}let sne=class{constructor(t){this.$t={},this.zt=t.zt,this.Ut=qr(t.bucketSize,0,100,t.Gt),this.Wt=qr(t.refillRate,0,this.Ut,t.Gt),this.Xt=qr(t.refillInterval,0,864e5,t.Gt)}Jt(t,o){var a=Math.floor((o-t.lastAccess)/this.Xt);a>0&&(t.tokens=Math.min(t.tokens+a*this.Wt,this.Ut),t.lastAccess=t.lastAccess+a*this.Xt)}consumeRateLimit(t){var o,a=Date.now(),n=String(t),i=this.$t[n];return i?this.Jt(i,a):this.$t[n]=i={tokens:this.Ut,lastAccess:a},i.tokens===0||(i.tokens--,i.tokens===0&&((o=this.zt)==null||o.call(this,t)),i.tokens===0)}stop(){this.$t={}}};var Dh,ZD,g0,Rn="Mobile",Lf="iOS",Ei="Android",Td="Tablet",OB=Ei+" "+Td,IB="iPad",MB="Apple",LB=MB+" Watch",dp="Safari",wd="BlackBerry",NB="Samsung",FB=NB+"Browser",BB=NB+" Internet",kl="Chrome",lne=kl+" OS",jB=kl+" "+Lf,FC="Internet Explorer",UB=FC+" "+Rn,BC="Opera",cne=BC+" Mini",jC="Edge",zB="Microsoft "+jC,cd="Firefox",$B=cd+" "+Lf,Ap="Nintendo",Dp="PlayStation",dd="Xbox",qB=Ei+" "+Rn,VB=Rn+" "+dp,ep="Windows",pw=ep+" Phone",QD="Nokia",mw="Ouya",HB="Generic",dne=HB+" "+Rn.toLowerCase(),GB=HB+" "+Td.toLowerCase(),gw="Konqueror",Ga="(\\d+(\\.\\d+)?)",h0=new RegExp("Version/"+Ga),une=new RegExp(dd,"i"),pne=new RegExp(Dp+" \\w+","i"),mne=new RegExp(Ap+" \\w+","i"),UC=new RegExp(wd+"|PlayBook|BB10","i"),gne={"NT3.51":"NT 3.11","NT4.0":"NT 4.0","5.0":"2000",5.1:"XP",5.2:"XP","6.0":"Vista",6.1:"7",6.2:"8",6.3:"8.1",6.4:"10","10.0":"10"},KB=function(e,t){return t=t||"",Ct(e," OPR/")&&Ct(e,"Mini")?cne:Ct(e," OPR/")?BC:UC.test(e)?wd:Ct(e,"IE"+Rn)||Ct(e,"WPDesktop")?UB:Ct(e,FB)?BB:Ct(e,jC)||Ct(e,"Edg/")?zB:Ct(e,"FBIOS")?"Facebook "+Rn:Ct(e,"UCWEB")||Ct(e,"UCBrowser")?"UC Browser":Ct(e,"CriOS")?jB:Ct(e,"CrMo")||Ct(e,kl)?kl:Ct(e,Ei)&&Ct(e,dp)?qB:Ct(e,"FxiOS")?$B:Ct(e.toLowerCase(),gw.toLowerCase())?gw:((o,a)=>a&&Ct(a,MB)||(function(n){return Ct(n,dp)&&!Ct(n,kl)&&!Ct(n,Ei)})(o))(e,t)?Ct(e,Rn)?VB:dp:Ct(e,cd)?cd:Ct(e,"MSIE")||Ct(e,"Trident/")?FC:Ct(e,"Gecko")?cd:""},hne={[UB]:[new RegExp("rv:"+Ga)],[zB]:[new RegExp(jC+"?\\/"+Ga)],[kl]:[new RegExp("("+kl+"|CrMo)\\/"+Ga)],[jB]:[new RegExp("CriOS\\/"+Ga)],"UC Browser":[new RegExp("(UCBrowser|UCWEB)\\/"+Ga)],[dp]:[h0],[VB]:[h0],[BC]:[new RegExp("(Opera|OPR)\\/"+Ga)],[cd]:[new RegExp(cd+"\\/"+Ga)],[$B]:[new RegExp("FxiOS\\/"+Ga)],[gw]:[new RegExp("Konqueror[:/]?"+Ga,"i")],[wd]:[new RegExp(wd+" "+Ga),h0],[qB]:[new RegExp("android\\s"+Ga,"i")],[BB]:[new RegExp(FB+"\\/"+Ga)],[FC]:[new RegExp("(rv:|MSIE )"+Ga)],Mozilla:[new RegExp("rv:"+Ga)]},fne=function(e,t){var o=KB(e,t),a=hne[o];if(Ve(a))return null;for(var n=0;a.length>n;n++){var i=e.match(a[n]);if(i)return parseFloat(i[i.length-2])}return null},JD=[[new RegExp(dd+"; "+dd+" (.*?)[);]","i"),e=>[dd,e&&e[1]||""]],[new RegExp(Ap,"i"),[Ap,""]],[new RegExp(Dp,"i"),[Dp,""]],[UC,[wd,""]],[new RegExp(ep,"i"),(e,t)=>{if(/Phone/.test(t)||/WPDesktop/.test(t))return[pw,""];if(new RegExp(Rn).test(t)&&!/IEMobile\b/.test(t))return[ep+" "+Rn,""];var o=/Windows NT ([0-9.]+)/i.exec(t);if(o&&o[1]){var a=gne[o[1]]||"";return/arm/i.test(t)&&(a="RT"),[ep,a]}return[ep,""]}],[/((iPhone|iPad|iPod).*?OS (\d+)_(\d+)_?(\d+)?|iPhone)/,e=>e&&e[3]?[Lf,[e[3],e[4],e[5]||"0"].join(".")]:[Lf,""]],[/(watch.*\/(\d+\.\d+\.\d+)|watch os,(\d+\.\d+),)/i,e=>{var t="";return e&&e.length>=3&&(t=Ve(e[2])?e[3]:e[2]),["watchOS",t]}],[new RegExp("("+Ei+" (\\d+)\\.(\\d+)\\.?(\\d+)?|"+Ei+")","i"),e=>e&&e[2]?[Ei,[e[2],e[3],e[4]||"0"].join(".")]:[Ei,""]],[/Mac OS X (\d+)[_.](\d+)[_.]?(\d+)?/i,e=>{var t=["Mac OS X",""];return e&&e[1]&&(t[1]=[e[1],e[2],e[3]||"0"].join(".")),t}],[/Mac/i,["Mac OS X",""]],[/CrOS/,[lne,""]],[/Linux|debian/i,["Linux",""]]],XD=function(e){return mne.test(e)?Ap:pne.test(e)?Dp:une.test(e)?dd:new RegExp(mw,"i").test(e)?mw:new RegExp("("+pw+"|WPDesktop)","i").test(e)?pw:/iPad/.test(e)?IB:/iPod/.test(e)?"iPod Touch":/iPhone/.test(e)?"iPhone":/(watch)(?: ?os[,/]|\d,\d\/)[\d.]+/i.test(e)?LB:UC.test(e)?wd:/(kobo)\s(ereader|touch)/i.test(e)?"Kobo":new RegExp(QD,"i").test(e)?QD:/(kf[a-z]{2}wi|aeo[c-r]{2})( bui|\))/i.test(e)||/(kf[a-z]+)( bui|\)).+silk\//i.test(e)?"Kindle Fire":/(Android|ZTE)/i.test(e)?new RegExp(Rn).test(e)&&!/(9138B|TB782B|Nexus [97]|pixel c|HUAWEISHT|BTV|noble nook|smart ultra 6)/i.test(e)||/pixel[\daxl ]{1,6}/i.test(e)&&!/pixel c/i.test(e)||/(huaweimed-al00|tah-|APA|SM-G92|i980|zte|U304AA)/i.test(e)||/lmy47v/i.test(e)&&!/QTAQZ3/i.test(e)?Ei:OB:new RegExp("(pda|"+Rn+")","i").test(e)?dne:new RegExp(Td,"i").test(e)&&!new RegExp(Td+" pc","i").test(e)?GB:""},vne=e=>e instanceof Error,WB={trace:{text:"TRACE",number:1},debug:{text:"DEBUG",number:5},info:{text:"INFO",number:9},warn:{text:"WARN",number:13},error:{text:"ERROR",number:17},fatal:{text:"FATAL",number:21}},bne=WB.info;function YB(e){if($r(e))return{boolValue:e};if(typeof e=="number")return Number.isFinite(e)?Number.isInteger(e)?{intValue:e}:{doubleValue:e}:{stringValue:String(e)};if(typeof e=="string")return{stringValue:e};if(It(e))return{arrayValue:{values:e.map((t=>YB(t)))}};try{return{stringValue:JSON.stringify(e)}}catch{return{stringValue:String(e)}}}function eO(e){var t=[];for(var o in e){var a=e[o];Mi(a)||Ve(a)||t.push({key:o,value:YB(a)})}return t}function yne(e){var t=globalThis._posthogChunkIds;if(t){var o=Object.keys(t);return g0&&o.length===ZD||(ZD=o.length,g0=o.reduce(((a,n)=>{Dh||(Dh={});var i=Dh[n];if(i)a[i[0]]=i[1];else for(var l=e(n),c=l.length-1;c>=0;c--){var u=l[c],p=u?.filename,g=t[n];if(p&&g){a[p]=g,Dh[n]=[p,g];break}}return a}),{})),g0}}class Sne{constructor(t,o,a){a===void 0&&(a=[]),this.coercers=t,this.stackParser=o,this.modifiers=a}buildFromUnknown(t,o){o===void 0&&(o={});var a=o&&o.mechanism||{handled:!0,type:"generic"},n=this.buildCoercingContext(a,o,0).apply(t),i=this.buildParsingContext(o),l=this.parseStacktrace(n,i);return{$exception_list:this.convertToExceptionList(l,a),$exception_level:"error"}}modifyFrames(t){var o=this;return Kn((function*(){for(var a of t)a.stacktrace&&a.stacktrace.frames&&It(a.stacktrace.frames)&&(a.stacktrace.frames=yield o.applyModifiers(a.stacktrace.frames));return t}))()}coerceFallback(t){var o;return{type:"Error",value:"Unknown error",stack:(o=t.syntheticException)==null?void 0:o.stack,synthetic:!0}}parseStacktrace(t,o){var a,n;return t.cause!=null&&(a=this.parseStacktrace(t.cause,o)),t.stack!=""&&t.stack!=null&&(n=this.applyChunkIds(this.stackParser(t.stack,t.synthetic?o.skipFirstLines:0),o.chunkIdMap)),Oe({},t,{cause:a,stack:n})}applyChunkIds(t,o){return t.map((a=>(a.filename&&o&&(a.chunk_id=o[a.filename]),a)))}applyCoercers(t,o){for(var a of this.coercers)if(a.match(t))return a.coerce(t,o);return this.coerceFallback(o)}applyModifiers(t){var o=this;return Kn((function*(){var a=t;for(var n of o.modifiers)a=yield n(a);return a}))()}convertToExceptionList(t,o){var a,n,i,l={type:t.type,value:t.value,mechanism:{type:(a=o.type)!==null&&a!==void 0?a:"generic",handled:(n=o.handled)===null||n===void 0||n,synthetic:(i=t.synthetic)!==null&&i!==void 0&&i}};t.stack&&(l.stacktrace={type:"raw",frames:t.stack});var c=[l];return t.cause!=null&&c.push(...this.convertToExceptionList(t.cause,Oe({},o,{handled:!0}))),c}buildParsingContext(t){var o;return{chunkIdMap:yne(this.stackParser),skipFirstLines:(o=t.skipFirstLines)!==null&&o!==void 0?o:1}}buildCoercingContext(t,o,a){a===void 0&&(a=0);var n=(i,l)=>{if(4>=l){var c=this.buildCoercingContext(t,o,l);return this.applyCoercers(i,c)}};return Oe({},o,{syntheticException:a==0?o.syntheticException:void 0,mechanism:t,apply:i=>n(i,a),next:i=>n(i,a+1)})}}var _d="?";function hw(e,t,o,a,n){var i={platform:e,filename:t,function:o==="<anonymous>"?_d:o,in_app:!0};return Ve(a)||(i.lineno=a),Ve(n)||(i.colno=n),i}var ZB=(e,t)=>{var o=e.indexOf("safari-extension")!==-1,a=e.indexOf("safari-web-extension")!==-1;return o||a?[e.indexOf("@")!==-1?e.split("@")[0]:_d,o?"safari-extension:"+t:"safari-web-extension:"+t]:[e,t]},Tne=/^\s*at (\S+?)(?::(\d+))(?::(\d+))\s*$/i,wne=/^\s*at (?:(.+?\)(?: \[.+\])?|.*?) ?\((?:address at )?)?(?:async )?((?:<anonymous>|[-a-z]+:|.*bundle|\/)?.*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,_ne=/\((\S*)(?::(\d+))(?::(\d+))\)/,Cne=(e,t)=>{var o=Tne.exec(e);if(o){var[,a,n,i]=o;return hw(t,a,_d,+n,+i)}var l=wne.exec(e);if(l){if(l[2]&&l[2].indexOf("eval")===0){var c=_ne.exec(l[2]);c&&(l[2]=c[1],l[3]=c[2],l[4]=c[3])}var[u,p]=ZB(l[1]||_d,l[2]);return hw(t,p,u,l[3]?+l[3]:void 0,l[4]?+l[4]:void 0)}},Pne=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:[-a-z]+)?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js)|\/[\w\-. /=]+)(?::(\d+))?(?::(\d+))?\s*$/i,xne=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i,kne=(e,t)=>{var o=Pne.exec(e);if(o){if(o[3]&&o[3].indexOf(" > eval")>-1){var a=xne.exec(o[3]);a&&(o[1]=o[1]||"eval",o[3]=a[1],o[4]=a[2],o[5]="")}var n=o[3],i=o[1]||_d;return[i,n]=ZB(i,n),hw(t,n,i,o[4]?+o[4]:void 0,o[5]?+o[5]:void 0)}},tO=/\(error: (.*)\)/;let Ene=class{match(t){return this.isDOMException(t)||this.isDOMError(t)}coerce(t,o){var a=Co(t.stack);return{type:this.getType(t),value:this.getValue(t),stack:a?t.stack:void 0,cause:t.cause?o.next(t.cause):void 0,synthetic:!1}}getType(t){return this.isDOMError(t)?"DOMError":"DOMException"}getValue(t){var o=t.name||(this.isDOMError(t)?"DOMError":"DOMException");return t.message?o+": "+t.message:o}isDOMException(t){return Mf(t,"DOMException")}isDOMError(t){return Mf(t,"DOMError")}};class Rne{match(t){return(o=>o instanceof Error)(t)}coerce(t,o){return{type:this.getType(t),value:this.getMessage(t,o),stack:this.getStack(t),cause:t.cause?o.next(t.cause):void 0,synthetic:!1}}getType(t){return t.name||t.constructor.name}getMessage(t,o){var a=t.message;return String(a.error&&typeof a.error.message=="string"?a.error.message:a)}getStack(t){return t.stacktrace||t.stack||void 0}}let Ane=class{constructor(){}match(t){return Mf(t,"ErrorEvent")&&t.error!=null}coerce(t,o){var a;return o.apply(t.error)||{type:"ErrorEvent",value:t.message,stack:(a=o.syntheticException)==null?void 0:a.stack,synthetic:!0}}};var Dne=/^(?:[Uu]ncaught (?:exception: )?)?(?:((?:Eval|Internal|Range|Reference|Syntax|Type|URI|)Error): )?(.*)$/i;let One=class{match(t){return typeof t=="string"}coerce(t,o){var a,[n,i]=this.getInfos(t);return{type:n??"Error",value:i??t,stack:(a=o.syntheticException)==null?void 0:a.stack,synthetic:!0}}getInfos(t){var o="Error",a=t,n=t.match(Dne);return n&&(o=n[1],a=n[2]),[o,a]}};var Ine=["fatal","error","warning","log","info","debug"];function QB(e,t){t===void 0&&(t=40);var o=Object.keys(e);if(o.sort(),!o.length)return"[object has no keys]";for(var a=o.length;a>0;a--){var n=o.slice(0,a).join(", ");if(t>=n.length)return a===o.length?n:n.length>t?n.slice(0,t)+"...":n}return""}let Mne=class{match(t){return typeof t=="object"&&t!==null}coerce(t,o){var a,n=this.getErrorPropertyFromObject(t);return n?o.apply(n):{type:this.getType(t),value:this.getValue(t),stack:(a=o.syntheticException)==null?void 0:a.stack,level:this.isSeverityLevel(t.level)?t.level:"error",synthetic:!0}}getType(t){return NC(t)?t.constructor.name:"Error"}getValue(t){if("name"in t&&typeof t.name=="string"){var o="'"+t.name+"' captured as exception";return"message"in t&&typeof t.message=="string"&&(o+=" with message: '"+t.message+"'"),o}if("message"in t&&typeof t.message=="string")return t.message;var a=this.getObjectClassName(t);return(a&&a!=="Object"?"'"+a+"'":"Object")+" captured as exception with keys: "+QB(t)}isSeverityLevel(t){return Co(t)&&!tf(t)&&Ine.indexOf(t)>=0}getErrorPropertyFromObject(t){for(var o in t)if({}.hasOwnProperty.call(t,o)){var a=t[o];if(vne(a))return a}}getObjectClassName(t){try{var o=Object.getPrototypeOf(t);return o?o.constructor.name:void 0}catch{return}}},Lne=class{match(t){return NC(t)}coerce(t,o){var a,n=t.constructor.name;return{type:n,value:n+" captured as exception with keys: "+QB(t),stack:(a=o.syntheticException)==null?void 0:a.stack,synthetic:!0}}},Nne=class{match(t){return DB(t)}coerce(t,o){var a;return{type:"Error",value:"Primitive value captured as exception: "+String(t),stack:(a=o.syntheticException)==null?void 0:a.stack,synthetic:!0}}},Fne=class{match(t){return Mf(t,"PromiseRejectionEvent")||this.isCustomEventWrappingRejection(t)}isCustomEventWrappingRejection(t){if(!NC(t))return!1;try{var o=t.detail;return o!=null&&typeof o=="object"&&"reason"in o}catch{return!1}}coerce(t,o){var a,n=this.getUnhandledRejectionReason(t);return DB(n)?{type:"UnhandledRejection",value:"Non-Error promise rejection captured with value: "+String(n),stack:(a=o.syntheticException)==null?void 0:a.stack,synthetic:!0}:o.apply(n)}getUnhandledRejectionReason(t){try{if("reason"in t)return t.reason;if("detail"in t&&t.detail!=null&&typeof t.detail=="object"&&"reason"in t.detail)return t.detail.reason}catch{}return t}};var Nf="$message",Ff="$timestamp",Bne=new Set([Nf,Ff]),f0={enabled:!0,max_bytes:32768};function Bf(e){var t;return e?{enabled:(t=e.enabled)!==null&&t!==void 0?t:f0.enabled,max_bytes:Une(e.max_bytes,f0.max_bytes)}:Oe({},f0)}let jne=class{constructor(t){this.Kt=[],this.Qt=0,this.Bt=Bf(t)}setConfig(t){this.Bt=Bf(t),this.er()}add(t){var o=(function(n){var i=(function(g){var m=new WeakSet;try{return JSON.stringify(g,((f,v)=>{if(typeof v=="bigint")return v.toString();if(typeof v!="function"&&typeof v!="symbol"){if(v instanceof Date)return v.toISOString();if(v instanceof Error)return{name:v.name,message:v.message,stack:v.stack};if(v&&typeof v=="object"){if(m.has(v))return"[Circular]";m.add(v)}return v}}))}catch{return}})(n);if(i)try{var l=JSON.parse(i);if(!No(l))return;var c=l,u=c[Nf],p=c[Ff];return!Co(u)||u.trim().length===0||!Co(p)&&!Xn(p)?void 0:{step:c,json:i}}catch{return}})(t);if(o){var a=(function(n){if(typeof TextEncoder<"u")return new TextEncoder().encode(n).length;for(var i=encodeURIComponent(n),l=0,c=0;i.length>c;c++)i[c]==="%"?(l+=1,c+=2):l+=1;return l})(o.json);a>this.Bt.max_bytes||(this.Kt.push({step:o.step,bytes:a}),this.Qt+=a,this.er())}}getAttachable(){return this.Kt.map((t=>t.step))}clear(){this.Kt=[],this.Qt=0}size(){return this.Kt.length}er(){for(;this.Qt>this.Bt.max_bytes&&this.Kt.length>0;){var t=this.Kt.shift();t&&(this.Qt-=t.bytes)}}};function Une(e,t){if(!Xn(e)||e===1/0||e===-1/0)return t;var o=Math.floor(e);return 0>o?t:o}var JB=function(e,t){var{debugEnabled:o}=t===void 0?{}:t,a={C(n){if(he&&(Ka.DEBUG||et.POSTHOG_DEBUG||o)&&!Ve(he.console)&&he.console){for(var i=("__rrweb_original__"in he.console[n])?he.console[n].__rrweb_original__:he.console[n],l=arguments.length,c=new Array(l>1?l-1:0),u=1;l>u;u++)c[u-1]=arguments[u];i(e,...c)}},info(){for(var n=arguments.length,i=new Array(n),l=0;n>l;l++)i[l]=arguments[l];a.C("log",...i)},warn(){for(var n=arguments.length,i=new Array(n),l=0;n>l;l++)i[l]=arguments[l];a.C("warn",...i)},error(){for(var n=arguments.length,i=new Array(n),l=0;n>l;l++)i[l]=arguments[l];a.C("error",...i)},critical(){for(var n=arguments.length,i=new Array(n),l=0;n>l;l++)i[l]=arguments[l];console.error(e,...i)},uninitializedWarning(n){a.error("You must initialize PostHog before calling "+n)},createLogger:(n,i)=>JB(e+" "+n,i)};return a},ze=JB("[PostHog.js]"),So=ze.createLogger,zne=So("[ExternalScriptsLoader]"),v0=(e,t,o)=>{if(e.config.disable_external_dependency_loading)return zne.warn(t+" was requested but loading of external scripts is disabled."),o("Loading of external scripts is disabled");var a=Be?.querySelectorAll("script");if(a){for(var n,i=function(){if(a[l].src===t){var u=a[l];return u.__posthog_loading_callback_fired?{v:o()}:(u.addEventListener("load",(p=>{u.__posthog_loading_callback_fired=!0,o(void 0,p)})),u.onerror=p=>o(p),{v:void 0})}},l=0;a.length>l;l++)if(n=i())return n.v}var c=()=>{if(!Be)return o("document not found");var u=Be.createElement("script");if(u.type="text/javascript",u.crossOrigin="anonymous",u.src=t,u.onload=m=>{u.__posthog_loading_callback_fired=!0,o(void 0,m)},u.onerror=m=>o(m),e.config.prepare_external_dependency_script&&(u=e.config.prepare_external_dependency_script(u)),!u)return o("prepare_external_dependency_script returned null");if(e.config.external_scripts_inject_target==="head")Be.head.appendChild(u);else{var p,g=Be.querySelectorAll("body > script");g.length>0?(p=g[0].parentNode)==null||p.insertBefore(u,g[0]):Be.body.appendChild(u)}};Be!=null&&Be.body?c():Be?.addEventListener("DOMContentLoaded",c)};et.__PosthogExtensions__=et.__PosthogExtensions__||{},et.__PosthogExtensions__.loadExternalDependency=(e,t,o)=>{if(t!=="remote-config"){var a;if(e.config.__preview_external_dependency_versioned_paths)a=e.requestRouter.endpointFor("assets","/static/"+e.version+"/"+t+".js");else{var n="/static/"+t+".js?v="+e.version;if(t==="toolbar"){var i=3e5;n=n+"&t="+Math.floor(Date.now()/i)*i}a=e.requestRouter.endpointFor("assets",n)}v0(e,a,o)}else{var l=e.requestRouter.endpointFor("assets","/array/"+e.config.token+"/config.js");v0(e,l,o)}},et.__PosthogExtensions__.loadSiteApp=(e,t,o)=>{var a=e.requestRouter.endpointFor("api",t);v0(e,a,o)};var XB="$people_distinct_id",jf="$device_id",tp="__alias",op="__timers",fw="$autocapture_disabled_server_side",vw="$heatmaps_enabled_server_side",bw="$exception_capture_enabled_server_side",yw="$error_tracking_suppression_rules",Sw="$error_tracking_capture_extension_exceptions",Tw="$web_vitals_enabled_server_side",zC="$dead_clicks_enabled_server_side",ww="$product_tours_enabled_server_side",_w="$web_vitals_allowed_metrics",ap="$session_recording_remote_config",e3="$replay_override_sampling",t3="$replay_override_linked_flag",o3="$replay_override_url_trigger",a3="$replay_override_event_trigger",Uf="$sesid",$C="$session_is_sampled",ed="$enabled_feature_flags",of="$active_feature_flags",np="$early_access_features",Cw="$feature_flag_details",Pw="$feature_flag_payloads",xw="$feature_flag_request_id",_i="$override_feature_flags",Kc="$override_feature_flag_payloads",rp="$stored_person_properties",vl="$stored_group_properties",kw="$surveys",Ew="$surveys_activated",af="ph_product_tours",up="$flag_call_reported",Rw="$flag_call_reported_session_id",Aw="$feature_flag_errors",zf="$feature_flag_evaluated_at",mr="$user_state",Dw="$client_session_props",Ow="$capture_rate_limit",Iw="$initial_campaign_params",Mw="$initial_referrer_info",$f="$initial_person_info",qf="$epp",n3="__POSTHOG_TOOLBAR__",Oh="$posthog_cookieless",r3="$sdk_debug_extensions_init_method",i3="$sdk_debug_extensions_init_time_ms",s3="$sdk_debug_recording_script_not_loaded",qC="PostHog loadExternalDependency extension not found.",bl="on_reject",Pi="always",Nc="anonymous",Fc="identified",Lw="identified_only",Vf="visibilitychange",Hf="beforeunload",Wc="$pageview",b0="$pageleave",y0="$identify",oO="$groupidentify";function Ih(e,t){It(e)&&e.forEach(t)}function ho(e,t){if(!Pt(e))if(It(e))e.forEach(t);else if(ane(e))e.forEach(((a,n)=>t(a,n)));else for(var o in e)AB.call(e,o)&&t(e[o],o)}var Do=function(e){for(var t=arguments.length,o=new Array(t>1?t-1:0),a=1;t>a;a++)o[a-1]=arguments[a];for(var n of o)for(var i in n)n[i]!==void 0&&(e[i]=n[i]);return e};function nf(e){for(var t=Object.keys(e),o=t.length,a=new Array(o);o--;)a[o]=[t[o],e[t[o]]];return a}var aO=function(e){try{return e()}catch{return}},$ne=function(e){return function(){try{for(var t=arguments.length,o=new Array(t),a=0;t>a;a++)o[a]=arguments[a];return e.apply(this,o)}catch(n){ze.critical("Implementation error. Please turn on debug mode and open a ticket on https://app.posthog.com/home#panel=support%3Asupport%3A."),ze.critical(n)}}},VC=function(e){var t={};return ho(e,(function(o,a){(Co(o)&&o.length>0||Xn(o))&&(t[a]=o)})),t},qne=["herokuapp.com","vercel.app","netlify.app"];function Vne(e){var t=e?.hostname;if(!Co(t))return!1;var o=t.split(".").slice(-2).join(".");for(var a of qne)if(o===a)return!1;return!0}function Yo(e,t,o,a){var{capture:n=!1,passive:i=!0}=a??{};e?.addEventListener(t,o,{capture:n,passive:i})}function l3(e){return e.name==="ph_toolbar_internal"}Math.trunc||(Math.trunc=function(e){return 0>e?Math.ceil(e):Math.floor(e)}),Number.isInteger||(Number.isInteger=function(e){return Xn(e)&&isFinite(e)&&Math.floor(e)===e});class Gf{constructor(t){if(this.bytes=t,t.length!==16)throw new TypeError("not 128-bit length")}static fromFieldsV7(t,o,a,n){if(!Number.isInteger(t)||!Number.isInteger(o)||!Number.isInteger(a)||!Number.isInteger(n)||0>t||0>o||0>a||0>n||t>0xffffffffffff||o>4095||a>1073741823||n>4294967295)throw new RangeError("invalid field value");var i=new Uint8Array(16);return i[0]=t/Math.pow(2,40),i[1]=t/Math.pow(2,32),i[2]=t/Math.pow(2,24),i[3]=t/Math.pow(2,16),i[4]=t/Math.pow(2,8),i[5]=t,i[6]=112|o>>>8,i[7]=o,i[8]=128|a>>>24,i[9]=a>>>16,i[10]=a>>>8,i[11]=a,i[12]=n>>>24,i[13]=n>>>16,i[14]=n>>>8,i[15]=n,new Gf(i)}toString(){for(var t="",o=0;this.bytes.length>o;o++)t=t+(this.bytes[o]>>>4).toString(16)+(15&this.bytes[o]).toString(16),o!==3&&o!==5&&o!==7&&o!==9||(t+="-");if(t.length!==36)throw new Error("Invalid UUIDv7 was generated");return t}clone(){return new Gf(this.bytes.slice(0))}equals(t){return this.compareTo(t)===0}compareTo(t){for(var o=0;16>o;o++){var a=this.bytes[o]-t.bytes[o];if(a!==0)return Math.sign(a)}return 0}}class Hne{constructor(){this.I=0,this.S=0,this.k=new Gne}generate(){var t=this.generateOrAbort();if(Ve(t)){this.I=0;var o=this.generateOrAbort();if(Ve(o))throw new Error("Could not generate UUID after timestamp reset");return o}return t}generateOrAbort(){var t=Date.now();if(t>this.I)this.I=t,this.A();else{if(this.I>=t+1e4)return;this.S++,this.S>4398046511103&&(this.I++,this.A())}return Gf.fromFieldsV7(this.I,Math.trunc(this.S/Math.pow(2,30)),this.S&Math.pow(2,30)-1,this.k.nextUint32())}A(){this.S=1024*this.k.nextUint32()+(1023&this.k.nextUint32())}}var nO,c3=e=>{if(typeof UUIDV7_DENY_WEAK_RNG<"u"&&UUIDV7_DENY_WEAK_RNG)throw new Error("no cryptographically strong RNG available");for(var t=0;e.length>t;t++)e[t]=65536*Math.trunc(65536*Math.random())+Math.trunc(65536*Math.random());return e};he&&!Ve(he.crypto)&&crypto.getRandomValues&&(c3=e=>crypto.getRandomValues(e));class Gne{constructor(){this.T=new Uint32Array(8),this.N=1/0}nextUint32(){return this.T.length>this.N||(c3(this.T),this.N=0),this.T[this.N++]}}var ws=()=>Kne().toString(),Kne=()=>(nO||(nO=new Hne)).generate(),Fu="",Wne=/[a-z0-9][a-z0-9-]+\.[a-z]{2,}$/i,zr={R:()=>!!Be,B(e){ze.error("cookieStore error: "+e)},O(e){if(Be){try{for(var t=e+"=",o=Be.cookie.split(";").filter((i=>i.length)),a=0;o.length>a;a++){for(var n=o[a];n.charAt(0)==" ";)n=n.substring(1,n.length);if(n.indexOf(t)===0)return decodeURIComponent(n.substring(t.length,n.length))}}catch{}return null}},Z(e){var t;try{t=JSON.parse(zr.O(e))||{}}catch{}return t},M(e,t,o,a,n){if(Be)try{var i="",l="",c=(function(g,m){if(m){var f=(function(b,S){if(S===void 0&&(S=Be),Fu)return Fu;if(!S||["localhost","127.0.0.1"].includes(b))return"";for(var C=b.split("."),w=Math.min(C.length,8),_="dmn_chk_"+ws();!Fu&&w--;){var E=C.slice(w).join("."),x=_+"=1;domain=."+E+";path=/";S.cookie=x+";max-age=3",S.cookie.includes(_)&&(S.cookie=x+";max-age=0",Fu=E)}return Fu})(g);if(!f){var v=(b=>{var S=b.match(Wne);return S?S[0]:""})(g);v!==f&&ze.info("Warning: cookie subdomain discovery mismatch",v,f),f=v}return f?"; domain=."+f:""}return""})(Be.location.hostname,a);if(o){var u=new Date;u.setTime(u.getTime()+864e5*o),i="; expires="+u.toUTCString()}n&&(l="; secure");var p=e+"="+encodeURIComponent(JSON.stringify(t))+i+"; SameSite=Lax; path=/"+c+l;return p.length>3686.4&&ze.warn("cookieStore warning: large cookie, len="+p.length),Be.cookie=p,p}catch{return}},F(e,t){if(Be!=null&&Be.cookie)try{zr.M(e,"",-1,t)}catch{return}}},S0=null,_o={R(){if(!Mi(S0))return S0;var e=!0;if(Ve(he))e=!1;else try{var t="__mplssupport__";_o.M(t,"xyz"),_o.O(t)!=='"xyz"'&&(e=!1),_o.F(t)}catch{e=!1}return e||ze.error("localStorage unsupported; falling back to cookie store"),S0=e,e},B(e){ze.error("localStorage error: "+e)},O(e){try{return he?.localStorage.getItem(e)}catch(t){_o.B(t)}return null},Z(e){try{return JSON.parse(_o.O(e))||{}}catch{}return null},M(e,t){try{he?.localStorage.setItem(e,JSON.stringify(t))}catch(o){_o.B(o)}},F(e){try{he?.localStorage.removeItem(e)}catch(t){_o.B(t)}}},Yne=[jf,"distinct_id",Uf,$C,qf,$f,mr],Mh={},Zne={R:()=>!0,B(e){ze.error("memoryStorage error: "+e)},O:e=>Mh[e]||null,Z:e=>Mh[e]||null,M(e,t){Mh[e]=t},F(e){delete Mh[e]}},ul=null,_a={R(){if(!Mi(ul))return ul;if(ul=!0,Ve(he))ul=!1;else try{var e="__support__";_a.M(e,"xyz"),_a.O(e)!=='"xyz"'&&(ul=!1),_a.F(e)}catch{ul=!1}return ul},B(e){ze.error("sessionStorage error: ",e)},O(e){try{return he?.sessionStorage.getItem(e)}catch(t){_a.B(t)}return null},Z(e){try{return JSON.parse(_a.O(e))||null}catch{}return null},M(e,t){try{he?.sessionStorage.setItem(e,JSON.stringify(t))}catch(o){_a.B(o)}},F(e){try{he?.sessionStorage.removeItem(e)}catch(t){_a.B(t)}}};class Qne{constructor(t){this._instance=t}get Bt(){return this._instance.config}get consent(){return this.rr()?0:this.ir}isOptedOut(){return this.Bt.cookieless_mode===Pi||this.isRejected()||this.consent===-1&&this.Bt.cookieless_mode===bl}isOptedIn(){return!this.isOptedOut()}isExplicitlyOptedOut(){return this.consent===0}isRejected(){return this.consent===0||this.consent===-1&&this.Bt.opt_out_capturing_by_default}optInOut(t){this.nr.M(this.sr,t?1:0,this.Bt.cookie_expiration,this.Bt.cross_subdomain_cookie,this.Bt.secure_cookie)}reset(){this.nr.F(this.sr,this.Bt.cross_subdomain_cookie)}get sr(){var{token:t,opt_out_capturing_cookie_prefix:o,consent_persistence_name:a}=this._instance.config;return a||(o?o+t:"__ph_opt_in_out_"+t)}get ir(){var t=this.nr.O(this.sr);return m0(t)?1:Ct(ine,t)?0:-1}get nr(){var t=this.Bt.opt_out_capturing_persistence_type,o=t==="localStorage"?_o:zr;if(!this.ar||this.ar!==o){this.ar=o;var a=t==="localStorage"?zr:_o;a.O(this.sr)&&(this.ar.O(this.sr)||this.optInOut(m0(a.O(this.sr))),a.F(this.sr,this.Bt.cross_subdomain_cookie))}return this.ar}rr(){return!!this.Bt.respect_dnt&&[kn?.doNotTrack,kn?.msDoNotTrack,et.doNotTrack].some((t=>m0(t)))}}var Lh=So("[Dead Clicks]"),Jne=()=>!0,Xne=e=>{var t,o=!((t=e.instance.persistence)==null||!t.get_property(zC)),a=e.instance.config.capture_dead_clicks;return $r(a)?a:!!No(a)||o};class rO{get lazyLoadedDeadClicksAutocapture(){return this.lr}constructor(t,o,a){this.instance=t,this.isEnabled=o,this.onCapture=a,this.startIfEnabledOrStop()}onRemoteConfig(t){"captureDeadClicks"in t&&(this.instance.persistence&&this.instance.persistence.register({[zC]:t.captureDeadClicks}),this.startIfEnabledOrStop())}startIfEnabledOrStop(){this.isEnabled(this)?this.ur((()=>{this.hr()})):this.stop()}ur(t){var o,a;(o=et.__PosthogExtensions__)!=null&&o.initDeadClicksAutocapture&&t(),(a=et.__PosthogExtensions__)==null||a.loadExternalDependency==null||a.loadExternalDependency(this.instance,"dead-clicks-autocapture",(n=>{n?Lh.error("failed to load script",n):t()}))}hr(){var t;if(Be){if(!this.lr&&(t=et.__PosthogExtensions__)!=null&&t.initDeadClicksAutocapture){var o=No(this.instance.config.capture_dead_clicks)?this.instance.config.capture_dead_clicks:{};o.__onCapture=this.onCapture,this.lr=et.__PosthogExtensions__.initDeadClicksAutocapture(this.instance,o),this.lr.start(Be),Lh.info("starting...")}}else Lh.error("`document` not found. Cannot start.")}stop(){this.lr&&(this.lr.stop(),this.lr=void 0,Lh.info("stopping..."))}}var T0=So("[SegmentIntegration]"),d3="posthog-js";function u3(e,t){var{organization:o,projectId:a,prefix:n,severityAllowList:i=["error"],sendExceptionsToPostHog:l=!0}=t===void 0?{}:t;return c=>{var u,p,g,m,f;if(i!=="*"&&!i.includes(c.level)||!e.__loaded)return c;c.tags||(c.tags={});var v=e.requestRouter.endpointFor("ui","/project/"+e.config.token+"/person/"+e.get_distinct_id());c.tags["PostHog Person URL"]=v,e.sessionRecordingStarted()&&(c.tags["PostHog Recording URL"]=e.get_session_replay_url({withTimestamp:!0}));var b,S=((u=c.exception)==null?void 0:u.values)||[],C=S.map((_=>Oe({},_,{stacktrace:_.stacktrace?Oe({},_.stacktrace,{type:"raw",frames:(_.stacktrace.frames||[]).map((E=>Oe({},E,{platform:"web:javascript"})))}):void 0}))),w={$exception_message:((p=S[0])==null?void 0:p.value)||c.message,$exception_type:(g=S[0])==null?void 0:g.type,$exception_level:c.level,$exception_list:C,$sentry_event_id:c.event_id,$sentry_exception:c.exception,$sentry_exception_message:((m=S[0])==null?void 0:m.value)||c.message,$sentry_exception_type:(f=S[0])==null?void 0:f.type,$sentry_tags:c.tags};return o&&a&&(w.$sentry_url=(n||"https://sentry.io/organizations/")+o+"/issues/?project="+a+"&query="+c.event_id),l&&((b=e.exceptions)==null||b.sendExceptionEvent(w)),c}}class ere{constructor(t,o,a,n,i,l){this.name=d3,this.setupOnce=function(c){c(u3(t,{organization:o,projectId:a,prefix:n,severityAllowList:i,sendExceptionsToPostHog:l==null||l}))}}}class iO{constructor(t){this.cr=(o,a,n)=>{n&&(n.noSessionId||n.activityTimeout||n.sessionPastMaximumLength)&&(ze.info("[PageViewManager] Session rotated, clearing pageview state",{sessionId:o,changeReason:n}),this.dr=void 0,this._instance.scrollManager.resetContext())},this._instance=t,this.vr()}vr(){var t;this.pr=(t=this._instance.sessionManager)==null?void 0:t.onSessionId(this.cr)}destroy(){var t;(t=this.pr)==null||t.call(this),this.pr=void 0}doPageView(t,o){var a,n=this.gr(t,o);return this.dr={pathname:(a=he?.location.pathname)!==null&&a!==void 0?a:"",pageViewId:o,timestamp:t},this._instance.scrollManager.resetContext(),n}doPageLeave(t){var o;return this.gr(t,(o=this.dr)==null?void 0:o.pageViewId)}doEvent(){var t;return{$pageview_id:(t=this.dr)==null?void 0:t.pageViewId}}gr(t,o){var a=this.dr;if(!a)return{$pageview_id:o};var n={$pageview_id:o,$prev_pageview_id:a.pageViewId},i=this._instance.scrollManager.getContext();if(i&&!this._instance.config.disable_scroll_properties){var{maxScrollHeight:l,lastScrollY:c,maxScrollY:u,maxContentHeight:p,lastContentY:g,maxContentY:m}=i;if(!(Ve(l)||Ve(c)||Ve(u)||Ve(p)||Ve(g)||Ve(m))){l=Math.ceil(l),c=Math.ceil(c),u=Math.ceil(u),p=Math.ceil(p),g=Math.ceil(g),m=Math.ceil(m);var f=l>1?qr(c/l,0,1,ze):1,v=l>1?qr(u/l,0,1,ze):1,b=p>1?qr(g/p,0,1,ze):1,S=p>1?qr(m/p,0,1,ze):1;n=Do(n,{$prev_pageview_last_scroll:c,$prev_pageview_last_scroll_percentage:f,$prev_pageview_max_scroll:u,$prev_pageview_max_scroll_percentage:v,$prev_pageview_last_content:g,$prev_pageview_last_content_percentage:b,$prev_pageview_max_content:m,$prev_pageview_max_content_percentage:S})}}return a.pathname&&(n.$prev_pageview_pathname=a.pathname),a.timestamp&&(n.$prev_pageview_duration=(t.getTime()-a.timestamp.getTime())/1e3),n}}var tre={[XB]:{exposure:"hidden"},[tp]:{exposure:"hidden"},__cmpns:{exposure:"hidden"},[op]:{exposure:"hidden"},[fw]:{exposure:"event"},[vw]:{exposure:"hidden"},[bw]:{exposure:"event"},[yw]:{exposure:"hidden"},[Sw]:{exposure:"event"},[Tw]:{exposure:"event"},[zC]:{exposure:"event"},[ww]:{exposure:"hidden"},[_w]:{exposure:"event"},[ap]:{exposure:"hidden"},$session_recording_enabled_server_side:{exposure:"hidden"},[Uf]:{exposure:"hidden"},[$C]:{exposure:"event"},$session_past_minimum_duration:{exposure:"event"},$session_recording_url_trigger_activated_session:{exposure:"event"},$session_recording_event_trigger_activated_session:{exposure:"event"},$debug_first_full_snapshot_timestamp:{exposure:"event"},[ed]:{exposure:"derived",shouldSkipFromEventProperties:(e,t)=>t(),transformToEventProperties(e){if(!No(e))return{};for(var t={},o=Object.keys(e),a=0;o.length>a;a++)t["$feature/"+o[a]]=e[o[a]];return t}},[of]:{exposure:"event"},[np]:{exposure:"hidden"},[Cw]:{exposure:"hidden"},[Pw]:{exposure:"event"},[xw]:{exposure:"event"},[_i]:{exposure:"event"},[Kc]:{exposure:"hidden"},[rp]:{exposure:"hidden"},[vl]:{exposure:"hidden"},[kw]:{exposure:"hidden"},[Ew]:{exposure:"event"},[af]:{exposure:"hidden"},$product_tours_activated:{exposure:"hidden"},$conversations_widget_session_id:{exposure:"event"},$conversations_ticket_id:{exposure:"event"},$conversations_widget_state:{exposure:"event"},$conversations_user_traits:{exposure:"event"},[up]:{exposure:"hidden"},[Rw]:{exposure:"hidden"},[Aw]:{exposure:"hidden"},[zf]:{exposure:"hidden"},[mr]:{exposure:"hidden"},[Dw]:{exposure:"hidden"},[Ow]:{exposure:"hidden"},[Iw]:{exposure:"hidden"},[Mw]:{exposure:"hidden"},[$f]:{exposure:"hidden"},[qf]:{exposure:"hidden"},[e3]:{exposure:"event"},[t3]:{exposure:"event"},[o3]:{exposure:"event"},[a3]:{exposure:"event"},[r3]:{exposure:"event"},[i3]:{exposure:"event"},[s3]:{exposure:"event"},$sdk_debug_replay_event_trigger_status:{exposure:"event"},$sdk_debug_replay_linked_flag_trigger_status:{exposure:"event"},$sdk_debug_replay_matched_recording_trigger_groups:{exposure:"event"},$sdk_debug_replay_remote_trigger_matching_config:{exposure:"event"},$sdk_debug_replay_trigger_groups_count:{exposure:"event"},$sdk_debug_replay_url_trigger_status:{exposure:"event"},$session_recording_start_reason:{exposure:"event"}},ore=[["$posthog_sr_group_event_trigger_",{exposure:"hidden"}],["$posthog_sr_group_url_trigger_",{exposure:"hidden"}],["$posthog_sr_group_sampling_",{exposure:"hidden"}]],Kf=e=>{var t=Be?.createElement("a");return Ve(t)?null:(t.href=e,t)},Wf=function(e,t){for(var o,a=((e.split("#")[0]||"").split(/\?(.*)/)[1]||"").replace(/^\?+/g,"").split("&"),n=0;a.length>n;n++){var i=a[n].split("=");if(i[0]===t){o=i;break}}if(!It(o)||2>o.length)return"";var l=o[1];try{l=decodeURIComponent(l)}catch{ze.error("Skipping decoding for malformed query param: "+l)}return l.replace(/\+/g," ")},Op=function(e,t,o){if(!e||!t||!t.length)return e;for(var a=e.split("#"),n=a[1],i=(a[0]||"").split("?"),l=i[1],c=i[0],u=(l||"").split("&"),p=[],g=0;u.length>g;g++){var m=u[g].split("=");It(m)&&(t.includes(m[0])?p.push(m[0]+"="+o):p.push(u[g]))}var f=c;return l!=null&&(f+="?"+p.join("&")),n!=null&&(f+="#"+n),f},Yf=function(e,t){var o=e.match(new RegExp(t+"=([^&]*)"));return o?o[1]:null},Nh="https?://(.*)",Cd=["gclid","gclsrc","dclid","gbraid","wbraid","fbclid","msclkid","twclid","li_fat_id","igshid","ttclid","rdt_cid","epik","qclid","sccid","irclid","_kx"],are=["utm_source","utm_medium","utm_campaign","utm_content","utm_term","gad_source","mc_cid",...Cd],Ip="<masked>",nre=["li_fat_id"];function p3(e,t,o){if(!Be)return{};var a,n=t?[...Cd,...o||[]]:[],i=m3(Op(Be.URL,n,Ip),e),l=(a={},ho(nre,(function(c){var u=zr.O(c);a[c]=u||null})),a);return Do(l,i)}function m3(e,t){var o=are.concat(t||[]),a={};return ho(o,(function(n){var i=Wf(e,n);a[n]=i||null})),a}function g3(e){var t=(function(i){return i?i.search(Nh+"google.([^/?]*)")===0?"google":i.search(Nh+"bing.com")===0?"bing":i.search(Nh+"yahoo.com")===0?"yahoo":i.search(Nh+"duckduckgo.com")===0?"duckduckgo":null:null})(e),o=t!="yahoo"?"q":"p",a={};if(!Mi(t)){a.$search_engine=t;var n=Be?Wf(Be.referrer,o):"";n.length&&(a.ph_keyword=n)}return a}function sO(){return navigator.language||navigator.userLanguage}var Zf="$direct";function h3(){return Be?.referrer||Zf}function f3(e,t){var o=e?[...Cd,...t||[]]:[],a=wa?.href.substring(0,1e3);return{r:h3().substring(0,1e3),u:a?Op(a,o,Ip):void 0}}function v3(e){var t,{r:o,u:a}=e,n={$referrer:o,$referring_domain:o==null?void 0:o==Zf?Zf:(t=Kf(o))==null?void 0:t.host};if(a){n.$current_url=a;var i=Kf(a);n.$host=i?.host,n.$pathname=i?.pathname;var l=m3(a);Do(n,l)}if(o){var c=g3(o);Do(n,c)}return n}function b3(){try{return Intl.DateTimeFormat().resolvedOptions().timeZone}catch{return}}function rre(){try{return new Date().getTimezoneOffset()}catch{return}}var ire=["cookie","localstorage","localstorage+cookie","sessionstorage","memory"];class w0{constructor(t,o){this.Bt=t,this.props={},this.mr=!1,this.yr=(a=>{var n="";return a.token&&(n=a.token.replace(/\+/g,"PL").replace(/\//g,"SL").replace(/=/g,"EQ")),a.persistence_name?"ph_"+a.persistence_name:"ph_"+n+"_posthog"})(t),this.nr=this.br(t),this.load(),t.debug&&ze.info("Persistence loaded",t.persistence,Oe({},this.props)),this.update_config(t,t,o),this.save()}isDisabled(){return!!this._r}br(t){ire.indexOf(t.persistence.toLowerCase())===-1&&(ze.critical("Unknown persistence type "+t.persistence+"; falling back to localStorage+cookie"),t.persistence="localStorage+cookie");var o=(function(n){n===void 0&&(n=[]);var i=[...Yne,...n];return Oe({},_o,{Z(l){try{var c={};try{c=zr.Z(l)||{}}catch{}var u=Do(c,JSON.parse(_o.O(l)||"{}"));return _o.M(l,u),u}catch{}return null},M(l,c,u,p,g,m){try{_o.M(l,c,void 0,void 0,m);var f={};i.forEach((v=>{c[v]&&(f[v]=c[v])})),Object.keys(f).length&&zr.M(l,f,u,p,g,m)}catch(v){_o.B(v)}},F(l,c){try{he?.localStorage.removeItem(l),zr.F(l,c)}catch(u){_o.B(u)}}})})(t.cookie_persisted_properties||[]),a=t.persistence.toLowerCase();return a==="localstorage"&&_o.R()?_o:a==="localstorage+cookie"&&o.R()?o:a==="sessionstorage"&&_a.R()?_a:a==="memory"?Zne:a==="cookie"?zr:o.R()?o:zr}wr(t){var o=t??this.Bt.feature_flag_cache_ttl_ms;if(!o||0>=o)return!1;var a=this.props[zf];return!a||typeof a!="number"||Date.now()-a>o}properties(){var t={};return ho(this.props,((o,a)=>{var n=(i=>{var l=tre[i];if(l)return l;for(var[c,u]of ore)if(i.indexOf(c)===0)return u})(a);if(n?.exposure==="derived"){if(n.shouldSkipFromEventProperties!=null&&n.shouldSkipFromEventProperties(o,a===ed?()=>this.wr():()=>!1))return;n.transformToEventProperties&&Do(t,n.transformToEventProperties(o))}else n&&n.exposure!=="event"||(t[a]=o)})),t}load(){if(!this._r){var t=this.nr.Z(this.yr);t&&(this.props=Do({},t))}}save(){this._r||this.nr.M(this.yr,this.props,this.Ir,this.Cr,this.Sr,this.Bt.debug)}remove(){this.nr.F(this.yr,!1),this.nr.F(this.yr,!0)}clear(){this.remove(),this.props={}}register_once(t,o,a){if(No(t)){Ve(o)&&(o="None"),this.Ir=Ve(a)?this.kr:a;var n=!1;if(ho(t,((i,l)=>{this.props.hasOwnProperty(l)&&this.props[l]!==o||(this.Tr(l,i),n=!0)})),n)return this.save(),!0}return!1}register(t,o){if(No(t)){this.Ir=Ve(o)?this.kr:o;var a=!1;if(ho(t,((n,i)=>{t.hasOwnProperty(i)&&this.props[i]!==n&&(this.Tr(i,n),a=!0)})),a)return this.save(),!0}return!1}unregister(t){t in this.props&&(this.Ar(t),this.save())}update_campaign_params(){if(!this.mr){var t=p3(this.Bt.custom_campaign_params,this.Bt.mask_personal_data_properties,this.Bt.custom_personal_data_properties);Xc(VC(t))||this.register(t),this.mr=!0}}update_search_keyword(){var t;this.register((t=Be?.referrer)?g3(t):{})}update_referrer_info(){var t;this.register_once({$referrer:h3(),$referring_domain:Be!=null&&Be.referrer&&((t=Kf(Be.referrer))==null?void 0:t.host)||Zf},void 0)}set_initial_person_info(){this.props[Iw]||this.props[Mw]||this.register_once({[$f]:f3(this.Bt.mask_personal_data_properties,this.Bt.custom_personal_data_properties)},void 0)}get_initial_props(){var t={};ho([Mw,Iw],(l=>{var c=this.props[l];c&&ho(c,(function(u,p){t["$initial_"+uw(p)]=u}))}));var o,a,n=this.props[$f];if(n){var i=(o=v3(n),a={},ho(o,(function(l,c){a["$initial_"+uw(c)]=l})),a);Do(t,i)}return t}safe_merge(t){return ho(this.props,(function(o,a){a in t||(t[a]=o)})),t}update_config(t,o,a){if(this.kr=this.Ir=t.cookie_expiration,this.set_disabled(t.disable_persistence||!!a),this.set_cross_subdomain(t.cross_subdomain_cookie),this.set_secure(t.secure_cookie),t.persistence!==o.persistence||!((l,c)=>{if(l.length!==c.length)return!1;var u=[...l].sort(),p=[...c].sort();return u.every(((g,m)=>g===p[m]))})(t.cookie_persisted_properties||[],o.cookie_persisted_properties||[])){var n=this.br(t),i=this.props;this.clear(),this.nr=n,this.props=i,this.save()}}set_disabled(t){this._r=t,this._r?this.remove():this.save()}set_cross_subdomain(t){t!==this.Cr&&(this.Cr=t,this.remove(),this.save())}set_secure(t){t!==this.Sr&&(this.Sr=t,this.remove(),this.save())}set_event_timer(t,o){var a=this.props[op]||{};a[t]=o,this.Tr(op,a),this.save()}remove_event_timer(t){var o=this.props[op]||{},a=o[t];return Ve(a)||(delete o[t],this.Tr(op,o),this.save()),a}get_property(t){return this.props[t]}set_property(t,o){this.Tr(t,o),this.save()}Tr(t,o){this.props[t]=o}Ar(t){delete this.props[t]}}var Bu={Activation:"events",Cancellation:"cancelEvents"},_0={Popover:"popover",API:"api",Widget:"widget"},ip={SHOWN:"survey shown",DISMISSED:"survey dismissed",SENT:"survey sent"},C0={SURVEY_ID:"$survey_id",SURVEY_ITERATION:"$survey_iteration",SURVEY_LAST_SEEN_DATE:"$survey_last_seen_date"},Nw={Popover:"popover",Inline:"inline"},sre={SHOWN:"product tour shown"},lO={TOUR_LAST_SEEN_DATE:"$product_tour_last_seen_date",TOUR_TYPE:"$product_tour_type"},cO=So("[RateLimiter]");class lre{constructor(t){this.serverLimits={},this.lastEventRateLimited=!1,this.checkForLimiting=o=>{var a=o.text;if(a&&a.length)try{(JSON.parse(a).quota_limited||[]).forEach((n=>{cO.info((n||"events")+" is quota limited."),this.serverLimits[n]=new Date().getTime()+6e4}))}catch(n){return void cO.warn('could not rate limit - continuing. Error: "'+n?.message+'"',{text:a})}},this.instance=t,this.lastEventRateLimited=this.clientRateLimitContext(!0).isRateLimited}get captureEventsPerSecond(){var t;return((t=this.instance.config.rate_limiting)==null?void 0:t.events_per_second)||10}get captureEventsBurstLimit(){var t;return Math.max(((t=this.instance.config.rate_limiting)==null?void 0:t.events_burst_limit)||10*this.captureEventsPerSecond,this.captureEventsPerSecond)}clientRateLimitContext(t){var o,a,n;t===void 0&&(t=!1);var{captureEventsBurstLimit:i,captureEventsPerSecond:l}=this,c=new Date().getTime(),u=(o=(a=this.instance.persistence)==null?void 0:a.get_property(Ow))!==null&&o!==void 0?o:{tokens:i,last:c};u.tokens+=(c-u.last)/1e3*l,u.last=c,u.tokens>i&&(u.tokens=i);var p=1>u.tokens;return p||t||(u.tokens=Math.max(0,u.tokens-1)),!p||this.lastEventRateLimited||t||this.instance.capture("$$client_ingestion_warning",{$$client_ingestion_warning_message:"posthog-js client rate limited. Config is set to "+l+" events per second and "+i+" events burst limit."},{skip_client_rate_limiting:!0}),this.lastEventRateLimited=p,(n=this.instance.persistence)==null||n.set_property(Ow,u),{isRateLimited:p,remainingTokens:u.tokens}}isServerRateLimited(t){var o=this.serverLimits[t||"events"]||!1;return o!==!1&&new Date().getTime()<o}}var ju=So("[RemoteConfig]");class y3{constructor(t){this._instance=t}get remoteConfig(){var t;return(t=et._POSTHOG_REMOTE_CONFIG)==null||(t=t[this._instance.config.token])==null?void 0:t.config}Er(t){var o,a;(o=et.__PosthogExtensions__)!=null&&o.loadExternalDependency?(a=et.__PosthogExtensions__)==null||a.loadExternalDependency==null||a.loadExternalDependency(this._instance,"remote-config",(()=>t(this.remoteConfig))):t()}Rr(t){this._instance._send_request({method:"GET",url:this._instance.requestRouter.endpointFor("assets","/array/"+this._instance.config.token+"/config"),callback(o){t(o.json)}})}load(){try{if(this.remoteConfig)return ju.info("Using preloaded remote config",this.remoteConfig),this.Nr(this.remoteConfig),void this.Mr();if(this._instance.Fr())return void ju.warn("Remote config is disabled. Falling back to local config.");this.Er((t=>{if(!t)return ju.info("No config found after loading remote JS config. Falling back to JSON."),void this.Rr((o=>{this.Nr(o),this.Mr()}));this.Nr(t),this.Mr()}))}catch(t){ju.error("Error loading remote config",t)}}stop(){this.Or&&(clearInterval(this.Or),this.Or=void 0)}refresh(){this._instance.Fr()||Be?.visibilityState==="hidden"||this._instance.reloadFeatureFlags()}Mr(){var t;if(!this.Or){var o=(t=this._instance.config.remote_config_refresh_interval_ms)!==null&&t!==void 0?t:3e5;o!==0&&(this.Or=setInterval((()=>{this.refresh()}),o))}}Nr(t){var o;t||ju.error("Failed to fetch remote config from PostHog."),this._instance.Nr(t??{}),t?.hasFeatureFlags!==!1&&(this._instance.config.advanced_disable_feature_flags_on_first_load||(o=this._instance.featureFlags)==null||o.ensureFlagsLoaded())}}var Fr={GZipJS:"gzip-js",Base64:"base64"},Jn=Uint8Array,cn=Uint16Array,Pd=Uint32Array,HC=new Jn([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0,0,0,0]),GC=new Jn([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13,0,0]),dO=new Jn([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),S3=function(e,t){for(var o=new cn(31),a=0;31>a;++a)o[a]=t+=1<<e[a-1];var n=new Pd(o[30]);for(a=1;30>a;++a)for(var i=o[a];o[a+1]>i;++i)n[i]=i-o[a]<<5|a;return[o,n]},T3=S3(HC,2),Fw=T3[1];T3[0][28]=258,Fw[258]=28;for(var uO=S3(GC,0)[1],w3=new cn(32768),fo=0;32768>fo;++fo){var Bc=(43690&fo)>>>1|(21845&fo)<<1;w3[fo]=((65280&(Bc=(61680&(Bc=(52428&Bc)>>>2|(13107&Bc)<<2))>>>4|(3855&Bc)<<4))>>>8|(255&Bc)<<8)>>>1}var pp=function(e,t,o){for(var a=e.length,n=0,i=new cn(t);a>n;++n)++i[e[n]-1];var l,c=new cn(t);for(n=0;t>n;++n)c[n]=c[n-1]+i[n-1]<<1;for(l=new cn(a),n=0;a>n;++n)l[n]=w3[c[e[n]-1]++]>>>15-e[n];return l},Ol=new Jn(288);for(fo=0;144>fo;++fo)Ol[fo]=8;for(fo=144;256>fo;++fo)Ol[fo]=9;for(fo=256;280>fo;++fo)Ol[fo]=7;for(fo=280;288>fo;++fo)Ol[fo]=8;var Qf=new Jn(32);for(fo=0;32>fo;++fo)Qf[fo]=5;var cre=pp(Ol,9),dre=pp(Qf,5),_3=function(e){return(e/8>>0)+(7&e&&1)},C3=function(e,t,o){(o==null||o>e.length)&&(o=e.length);var a=new(e instanceof cn?cn:e instanceof Pd?Pd:Jn)(o-t);return a.set(e.subarray(t,o)),a},Ti=function(e,t,o){var a=t/8>>0;e[a]|=o<<=7&t,e[a+1]|=o>>>8},Uu=function(e,t,o){var a=t/8>>0;e[a]|=o<<=7&t,e[a+1]|=o>>>8,e[a+2]|=o>>>16},P0=function(e,t){for(var o=[],a=0;e.length>a;++a)e[a]&&o.push({s:a,f:e[a]});var n=o.length,i=o.slice();if(!n)return[new Jn(0),0];if(n==1){var l=new Jn(o[0].s+1);return l[o[0].s]=1,[l,1]}o.sort((function(k,R){return k.f-R.f})),o.push({s:-1,f:25001});var c=o[0],u=o[1],p=0,g=1,m=2;for(o[0]={s:-1,f:c.f+u.f,l:c,r:u};g!=n-1;)c=o[o[m].f>o[p].f?p++:m++],u=o[p!=g&&o[m].f>o[p].f?p++:m++],o[g++]={s:-1,f:c.f+u.f,l:c,r:u};var f=i[0].s;for(a=1;n>a;++a)i[a].s>f&&(f=i[a].s);var v=new cn(f+1),b=Bw(o[g-1],v,0);if(b>t){a=0;var S=0,C=b-t,w=1<<C;for(i.sort((function(k,R){return v[R.s]-v[k.s]||k.f-R.f}));n>a;++a){var _=i[a].s;if(t>=v[_])break;S+=w-(1<<b-v[_]),v[_]=t}for(S>>>=C;S>0;){var E=i[a].s;t>v[E]?S-=1<<t-v[E]++-1:++a}for(;a>=0&&S;--a){var x=i[a].s;v[x]==t&&(--v[x],++S)}b=t}return[new Jn(v),b]},Bw=function(e,t,o){return e.s==-1?Math.max(Bw(e.l,t,o+1),Bw(e.r,t,o+1)):t[e.s]=o},pO=function(e){for(var t=e.length;t&&!e[--t];);for(var o=new cn(++t),a=0,n=e[0],i=1,l=function(u){o[a++]=u},c=1;t>=c;++c)if(e[c]==n&&c!=t)++i;else{if(!n&&i>2){for(;i>138;i-=138)l(32754);i>2&&(l(i>10?i-11<<5|28690:i-3<<5|12305),i=0)}else if(i>3){for(l(n),--i;i>6;i-=6)l(8304);i>2&&(l(i-3<<5|8208),i=0)}for(;i--;)l(n);i=1,n=e[c]}return[o.subarray(0,a),t]},zu=function(e,t){for(var o=0,a=0;t.length>a;++a)o+=e[a]*t[a];return o},jw=function(e,t,o){var a=o.length,n=_3(t+2);e[n]=255&a,e[n+1]=a>>>8,e[n+2]=255^e[n],e[n+3]=255^e[n+1];for(var i=0;a>i;++i)e[n+i+4]=o[i];return 8*(n+4+a)},mO=function(e,t,o,a,n,i,l,c,u,p,g){Ti(t,g++,o),++n[256];for(var m=P0(n,15),f=m[0],v=m[1],b=P0(i,15),S=b[0],C=b[1],w=pO(f),_=w[0],E=w[1],x=pO(S),k=x[0],R=x[1],D=new cn(19),O=0;_.length>O;++O)D[31&_[O]]++;for(O=0;k.length>O;++O)D[31&k[O]]++;for(var N=P0(D,7),$=N[0],F=N[1],z=19;z>4&&!$[dO[z-1]];--z);var j,K,ne,H,Z=p+5<<3,te=zu(n,Ol)+zu(i,Qf)+l,le=zu(n,f)+zu(i,S)+l+14+3*z+zu(D,$)+(2*D[16]+3*D[17]+7*D[18]);if(te>=Z&&le>=Z)return jw(t,g,e.subarray(u,u+p));if(Ti(t,g,1+(te>le)),g+=2,te>le){j=pp(f,v),K=f,ne=pp(S,C),H=S;var Q=pp($,F);for(Ti(t,g,E-257),Ti(t,g+5,R-1),Ti(t,g+10,z-4),g+=14,O=0;z>O;++O)Ti(t,g+3*O,$[dO[O]]);g+=3*z;for(var M=[_,k],G=0;2>G;++G){var q=M[G];for(O=0;q.length>O;++O)Ti(t,g,Q[L=31&q[O]]),g+=$[L],L>15&&(Ti(t,g,q[O]>>>5&127),g+=q[O]>>>12)}}else j=cre,K=Ol,ne=dre,H=Qf;for(O=0;c>O;++O)if(a[O]>255){var L;Uu(t,g,j[257+(L=a[O]>>>18&31)]),g+=K[L+257],L>7&&(Ti(t,g,a[O]>>>23&31),g+=HC[L]);var U=31&a[O];Uu(t,g,ne[U]),g+=H[U],U>3&&(Uu(t,g,a[O]>>>5&8191),g+=GC[U])}else Uu(t,g,j[a[O]]),g+=K[a[O]];return Uu(t,g,j[256]),g+K[256]},ure=new Pd([65540,131080,131088,131104,262176,1048704,1048832,2114560,2117632]),pre=(function(){for(var e=new Pd(256),t=0;256>t;++t){for(var o=t,a=9;--a;)o=(1&o&&3988292384)^o>>>1;e[t]=o}return e})(),x0=function(e,t,o){for(;o;++t)e[t]=o,o>>>=8};function mre(e,t){t===void 0&&(t={});var o=(function(){var m=4294967295;return{p(f){for(var v=m,b=0;f.length>b;++b)v=pre[255&v^f[b]]^v>>>8;m=v},d(){return 4294967295^m}}})(),a=e.length;o.p(e);var n,i,l,c,u,p=(c=10+((n=t).filename&&n.filename.length+1||0),u=8,(function(m,f,v,b,S,C){var w=m.length,_=new Jn(b+w+5*(1+Math.floor(w/7e3))+S),E=_.subarray(b,_.length-S),x=0;if(!f||8>w)for(var k=0;w>=k;k+=65535){var R=k+65535;w>R?x=jw(E,x,m.subarray(k,R)):(E[k]=!0,x=jw(E,x,m.subarray(k,w)))}else{for(var D=ure[f-1],O=D>>>13,N=8191&D,$=(1<<v)-1,F=new cn(32768),z=new cn($+1),j=Math.ceil(v/3),K=2*j,ne=function(He){return(m[He]^m[He+1]<<j^m[He+2]<<K)&$},H=new Pd(25e3),Z=new cn(288),te=new cn(32),le=0,Q=0,M=(k=0,0),G=0,q=0;w>k;++k){var L=ne(k),U=32767&k,J=z[L];if(F[U]=J,z[L]=U,k>=G){var pe=w-k;if((le>7e3||M>24576)&&pe>423){x=mO(m,E,0,H,Z,te,Q,M,q,k-q,x),M=le=Q=0,q=k;for(var ge=0;286>ge;++ge)Z[ge]=0;for(ge=0;30>ge;++ge)te[ge]=0}var Ce=2,$e=0,Y=N,ae=U-J&32767;if(pe>2&&L==ne(k-ae))for(var ve=Math.min(O,pe)-1,ie=Math.min(32767,k),Te=Math.min(258,pe);ie>=ae&&--Y&&U!=J;){if(m[k+Ce]==m[k+Ce-ae]){for(var xe=0;Te>xe&&m[k+xe]==m[k+xe-ae];++xe);if(xe>Ce){if(Ce=xe,$e=ae,xe>ve)break;var it=Math.min(ae,xe-2),lt=0;for(ge=0;it>ge;++ge){var Ge=k-ae+ge+32768&32767,tt=Ge-F[Ge]+32768&32767;tt>lt&&(lt=tt,J=Ge)}}}ae+=(U=J)-(J=F[U])+32768&32767}if($e){H[M++]=268435456|Fw[Ce]<<18|uO[$e];var De=31&Fw[Ce],Ae=31&uO[$e];Q+=HC[De]+GC[Ae],++Z[257+De],++te[Ae],G=k+Ce,++le}else H[M++]=m[k],++Z[m[k]]}}x=mO(m,E,!0,H,Z,te,Q,M,q,k-q,x)}return C3(_,0,b+_3(x)+S)})(i=e,(l=t).level==null?6:l.level,l.mem==null?Math.ceil(1.5*Math.max(8,Math.min(13,Math.log(i.length)))):12+l.mem,c,u)),g=p.length;return(function(m,f){var v=f.filename;if(m[0]=31,m[1]=139,m[2]=8,m[8]=2>f.level?4:f.level==9?2:0,m[9]=3,f.mtime!=0&&x0(m,4,Math.floor(new Date(f.mtime||Date.now())/1e3)),v){m[3]=8;for(var b=0;v.length>=b;++b)m[b+10]=v.charCodeAt(b)}})(p,t),x0(p,g-8,o.d()),x0(p,g-4,a),p}var gre=!!cw||!!lw,P3="text/plain",gO=!1,Uv=function(e,t,o){var a;o===void 0&&(o=!0);var[n,i]=e.split("?"),l=Oe({},t),c=(a=i?.split("&").map((p=>{var g,[m,f]=p.split("="),v=o&&(g=l[m])!==null&&g!==void 0?g:f;return delete l[m],m+"="+v})))!==null&&a!==void 0?a:[],u=(function(p,g){var m,f;g===void 0&&(g="&");var v=[];return ho(p,(function(b,S){Ve(b)||Ve(S)||S==="undefined"||(m=encodeURIComponent((C=>C instanceof File)(b)?b.name:b.toString()),f=encodeURIComponent(S),v[v.length]=f+"="+m)})),v.join(g)})(l);return u&&c.push(u),n+"?"+c.join("&")},td=(e,t)=>JSON.stringify(e,((o,a)=>typeof a=="bigint"?a.toString():a),t),k0=e=>{if(e.tr)return e.tr;var{data:t,compression:o}=e;if(t){if(o===Fr.GZipJS){var a=mre((function(c,u){var p=c.length;if(typeof TextEncoder<"u")return new TextEncoder().encode(c);for(var g=new Jn(c.length+(c.length>>>1)),m=0,f=function(C){g[m++]=C},v=0;p>v;++v){if(m+5>g.length){var b=new Jn(m+8+(p-v<<1));b.set(g),g=b}var S=c.charCodeAt(v);128>S?f(S):2048>S?(f(192|S>>>6),f(128|63&S)):S>55295&&57344>S?(f(240|(S=65536+(1047552&S)|1023&c.charCodeAt(++v))>>>18),f(128|S>>>12&63),f(128|S>>>6&63),f(128|63&S)):(f(224|S>>>12),f(128|S>>>6&63),f(128|63&S))}return C3(g,0,m)})(td(t)),{mtime:0});return{contentType:P3,body:a.buffer.slice(a.byteOffset,a.byteOffset+a.byteLength),estimatedSize:a.byteLength}}if(o===Fr.Base64){var n=(function(c){return c&&btoa(encodeURIComponent(c).replace(/%([0-9A-F]{2})/g,((u,p)=>String.fromCharCode(parseInt(p,16)))))})(td(t)),i=(c=>"data="+encodeURIComponent(typeof c=="string"?c:td(c)))(n);return{contentType:"application/x-www-form-urlencoded",body:i,estimatedSize:new Blob([i]).size}}var l=td(t);return{contentType:"application/json",body:l,estimatedSize:new Blob([l]).size}}},hre=(function(){var e=Kn((function*(t){var o=td(t.data),a=yield(function(i,l,c){return dw.apply(this,arguments)})(o,Ka.DEBUG,{rethrow:!0});if(!a)return t;var n=yield a.arrayBuffer();return Oe({},t,{tr:{contentType:P3,body:n,estimatedSize:n.byteLength}})}));return function(t){return e.apply(this,arguments)}})(),hO=(e,t)=>Uv(e,{_:new Date().getTime().toString(),ver:Ka.JS_SDK_VERSION,compression:t}),rf=[];lw&&rf.push({transport:"fetch",method(e){var t,o,{contentType:a,body:n,estimatedSize:i}=(t=k0(e))!==null&&t!==void 0?t:{},l=new Headers;ho(e.headers,(function(g,m){l.append(m,g)})),a&&l.append("Content-Type",a);var c=e.url,u=null;if(GD){var p=new GD;u={signal:p.signal,timeout:setTimeout((()=>p.abort()),e.timeout)}}lw(c,Oe({method:e?.method||"GET",headers:l,keepalive:e.method==="POST"&&52428.8>(i||0),body:n,signal:(o=u)==null?void 0:o.signal},e.fetchOptions)).then((g=>g.text().then((m=>{var f={statusCode:g.status,text:m};if(g.status===200)try{f.json=JSON.parse(m)}catch(v){ze.error(v)}e.callback==null||e.callback(f)})))).catch((g=>{ze.error(g),e.callback==null||e.callback({statusCode:0,error:g})})).finally((()=>u?clearTimeout(u.timeout):null))}}),cw&&rf.push({transport:"XHR",method(e){var t,o=new cw;o.open(e.method||"GET",e.url,!0);var{contentType:a,body:n}=(t=k0(e))!==null&&t!==void 0?t:{};ho(e.headers,(function(i,l){o.setRequestHeader(l,i)})),a&&o.setRequestHeader("Content-Type",a),e.timeout&&(o.timeout=e.timeout),e.disableXHRCredentials||(o.withCredentials=!0),o.onreadystatechange=()=>{if(o.readyState===4){var i={statusCode:o.status,text:o.responseText};if(o.status===200)try{i.json=JSON.parse(o.responseText)}catch{}e.callback==null||e.callback(i)}},o.send(n)}}),kn!=null&&kn.sendBeacon&&rf.push({transport:"sendBeacon",method(e){var t=Uv(e.url,{beacon:"1"});try{var o,{contentType:a,body:n}=(o=k0(e))!==null&&o!==void 0?o:{};if(!n)return;var i=n instanceof Blob?n:new Blob([n],{type:a});kn.sendBeacon(t,i)}catch{}}});var Uw=3e3;class fre{constructor(t,o){this.Pr=!0,this.Lr=[],this.Dr=qr(o?.flush_interval_ms||Uw,250,5e3,ze.createLogger("flush interval"),Uw),this.Br=t}enqueue(t){this.Lr.push(t),this.jr||this.$r()}unload(){this.qr();var t=this.Lr.length>0?this.Zr():{},o=Object.values(t);[...o.filter((a=>a.url.indexOf("/e")===0)),...o.filter((a=>a.url.indexOf("/e")!==0))].map((a=>{this.Br(Oe({},a,{transport:"sendBeacon"}))}))}enable(){this.Pr=!1,this.$r()}$r(){var t=this;this.Pr||(this.jr=setTimeout((()=>{if(this.qr(),this.Lr.length>0){var o=this.Zr(),a=function(){var i=o[n],l=new Date().getTime();i.data&&It(i.data)&&ho(i.data,(c=>{c.offset=Math.abs(c.timestamp-l),delete c.timestamp})),t.Br(i)};for(var n in o)a()}}),this.Dr))}qr(){clearTimeout(this.jr),this.jr=void 0}Zr(){var t={};return ho(this.Lr,(o=>{var a,n=o,i=(n?n.batchKey:null)||n.url;Ve(t[i])&&(t[i]=Oe({},n,{data:[]})),(a=t[i].data)==null||a.push(n.data)})),this.Lr=[],t}}var vre=["retriesPerformedSoFar"];class bre{constructor(t){this.Vr=!1,this.Hr=3e3,this.Lr=[],this._instance=t,this.Lr=[],this.zr=!0,!Ve(he)&&"onLine"in he.navigator&&(this.zr=he.navigator.onLine,this.Ur=()=>{this.zr=!0,this.Yr()},this.Gr=()=>{this.zr=!1},Yo(he,"online",this.Ur),Yo(he,"offline",this.Gr))}get length(){return this.Lr.length}retriableRequest(t){var{retriesPerformedSoFar:o}=t,a=EB(t,vre);Gc(o)&&(a.url=Uv(a.url,{retry_count:o})),this._instance._send_request(Oe({},a,{callback:n=>{n.statusCode===200||n.statusCode>=400&&500>n.statusCode||(o??0)>=10?a.callback==null||a.callback(n):this.Wr(Oe({retriesPerformedSoFar:o},a))}}))}Wr(t){var o=t.retriesPerformedSoFar||0;t.retriesPerformedSoFar=o+1;var a=(function(l){var c=3e3*Math.pow(2,l),u=c/2,p=Math.min(18e5,c),g=Math.random()-.5;return Math.ceil(p+g*(p-u))})(o),n=Date.now()+a;this.Lr.push({retryAt:n,requestOptions:t});var i="Enqueued failed request for retry in "+a;navigator.onLine||(i+=" (Browser is offline)"),ze.warn(i),this.Vr||(this.Vr=!0,this.Xr())}Xr(){if(this.Jr&&clearTimeout(this.Jr),this.Lr.length===0)return this.Vr=!1,void(this.Jr=void 0);this.Jr=setTimeout((()=>{this.zr&&this.Lr.length>0&&this.Yr(),this.Xr()}),this.Hr)}Yr(){var t=Date.now(),o=[],a=this.Lr.filter((i=>t>i.retryAt||(o.push(i),!1)));if(this.Lr=o,a.length>0)for(var{requestOptions:n}of a)this.retriableRequest(n)}unload(){for(var{requestOptions:t}of(this.Jr&&(clearTimeout(this.Jr),this.Jr=void 0),this.Vr=!1,Ve(he)||(this.Ur&&(he.removeEventListener("online",this.Ur),this.Ur=void 0),this.Gr&&(he.removeEventListener("offline",this.Gr),this.Gr=void 0)),this.Lr))try{this._instance._send_request(Oe({},t,{transport:"sendBeacon"}))}catch(o){ze.error(o)}this.Lr=[]}}class yre{constructor(t){this.Kr=()=>{var o,a,n,i;this.Qr||(this.Qr={});var l=this.scrollElement(),c=this.scrollY(),u=l?Math.max(0,l.scrollHeight-l.clientHeight):0,p=c+(l?.clientHeight||0),g=l?.scrollHeight||0;this.Qr.lastScrollY=Math.ceil(c),this.Qr.maxScrollY=Math.max(c,(o=this.Qr.maxScrollY)!==null&&o!==void 0?o:0),this.Qr.maxScrollHeight=Math.max(u,(a=this.Qr.maxScrollHeight)!==null&&a!==void 0?a:0),this.Qr.lastContentY=p,this.Qr.maxContentY=Math.max(p,(n=this.Qr.maxContentY)!==null&&n!==void 0?n:0),this.Qr.maxContentHeight=Math.max(g,(i=this.Qr.maxContentHeight)!==null&&i!==void 0?i:0)},this._instance=t}get ei(){return this._instance.config.scroll_root_selector}getContext(){return this.Qr}resetContext(){var t=this.Qr;return setTimeout(this.Kr,0),t}startMeasuringScrollPosition(){Yo(he,"scroll",this.Kr,{capture:!0}),Yo(he,"scrollend",this.Kr,{capture:!0}),Yo(he,"resize",this.Kr)}scrollElement(){if(!this.ei)return he?.document.documentElement;var t=It(this.ei)?this.ei:[this.ei];for(var o of t){var a=he?.document.querySelector(o);if(a)return a}}scrollY(){if(this.ei){var t=this.scrollElement();return t&&t.scrollTop||0}return he&&(he.scrollY||he.pageYOffset||he.document.documentElement.scrollTop)||0}scrollX(){if(this.ei){var t=this.scrollElement();return t&&t.scrollLeft||0}return he&&(he.scrollX||he.pageXOffset||he.document.documentElement.scrollLeft)||0}}var Sre=e=>f3(e?.config.mask_personal_data_properties,e?.config.custom_personal_data_properties);class fO{constructor(t,o,a,n){this.ti=i=>{var l=this.ri();if(!l||l.sessionId!==i){var c={sessionId:i,props:this.ii(this._instance)};this.ni.register({[Dw]:c})}},this._instance=t,this.si=o,this.ni=a,this.ii=n||Sre,this.si.onSessionId(this.ti)}ri(){return this.ni.props[Dw]}getSetOnceProps(){var t,o=(t=this.ri())==null?void 0:t.props;return o?"r"in o?v3(o):{$referring_domain:o.referringDomain,$pathname:o.initialPathName,utm_source:o.utm_source,utm_campaign:o.utm_campaign,utm_medium:o.utm_medium,utm_content:o.utm_content,utm_term:o.utm_term}:{}}getSessionProps(){var t={};return ho(VC(this.getSetOnceProps()),((o,a)=>{a==="$current_url"&&(a="url"),t["$session_entry_"+uw(a)]=o})),t}}class KC{constructor(){this.oi={}}on(t,o){return this.oi[t]||(this.oi[t]=[]),this.oi[t].push(o),()=>{this.oi[t]=this.oi[t].filter((a=>a!==o))}}emit(t,o){for(var a of this.oi[t]||[])a(o);for(var n of this.oi["*"]||[])n(t,o)}}var E0=So("[SessionId]");class vO{on(t,o){return this.ai.on(t,o)}constructor(t,o,a){var n;if(this.li=[],this.ui=void 0,this.ai=new KC,this.hi=(p,g)=>!(!Gc(p)||!Gc(g))&&Math.abs(p-g)>this.sessionTimeoutMs,!t.persistence)throw new Error("SessionIdManager requires a PostHogPersistence instance");if(t.config.cookieless_mode===Pi)throw new Error('SessionIdManager cannot be used with cookieless_mode="always"');this.Bt=t.config,this.ni=t.persistence,this.ci=void 0,this.di=void 0,this._sessionStartTimestamp=null,this._sessionActivityTimestamp=null,this.vi=o||ws,this.fi=a||ws;var i=this.Bt.persistence_name||this.Bt.token;if(this._sessionTimeoutMs=1e3*qr(this.Bt.session_idle_timeout_seconds||1800,60,36e3,E0.createLogger("session_idle_timeout_seconds"),1800),t.register({$configured_session_timeout_ms:this._sessionTimeoutMs}),this.pi(),this.gi="ph_"+i+"_window_id",this.mi="ph_"+i+"_primary_window_exists",this.yi()){var l=_a.Z(this.gi),c=_a.Z(this.mi);l&&!c?this.ci=l:_a.F(this.gi),_a.M(this.mi,!0)}if((n=this.Bt.bootstrap)!=null&&n.sessionID)try{var u=(p=>{var g=this.Bt.bootstrap.sessionID.replace(/-/g,"");if(g.length!==32)throw new Error("Not a valid UUID");if(g[12]!=="7")throw new Error("Not a UUIDv7");return parseInt(g.substring(0,12),16)})();this.bi(this.Bt.bootstrap.sessionID,new Date().getTime(),u)}catch(p){E0.error("Invalid sessionID in bootstrap",p)}this.wi()}get sessionTimeoutMs(){return this._sessionTimeoutMs}onSessionId(t){return Ve(this.li)&&(this.li=[]),this.li.push(t),this.di&&t(this.di,this.ci),()=>{this.li=this.li.filter((o=>o!==t))}}yi(){return this.Bt.persistence!=="memory"&&!this.ni._r&&_a.R()}Ii(t){t!==this.ci&&(this.ci=t,this.yi()&&_a.M(this.gi,t))}Ci(){return this.ci?this.ci:this.yi()?_a.Z(this.gi):null}bi(t,o,a){t===this.di&&o===this._sessionActivityTimestamp&&a===this._sessionStartTimestamp||(this._sessionStartTimestamp=a,this._sessionActivityTimestamp=o,this.di=t,this.ni.register({[Uf]:[o,t,a]}))}Si(){var t=this.ni.props[Uf];return It(t)&&t.length===2&&t.push(t[0]),t||[0,null,0]}resetSessionId(){this.bi(null,null,null)}destroy(){clearTimeout(this.xi),this.xi=void 0,this.ui&&he&&(he.removeEventListener(Hf,this.ui,{capture:!1}),this.ui=void 0),this.li=[]}wi(){this.ui=()=>{this.yi()&&_a.F(this.mi)},Yo(he,Hf,this.ui,{capture:!1})}checkAndGetSessionAndWindowId(t,o){if(t===void 0&&(t=!1),o===void 0&&(o=null),this.Bt.cookieless_mode===Pi)throw new Error('checkAndGetSessionAndWindowId should not be called with cookieless_mode="always"');var a=o||new Date().getTime(),[n,i,l]=this.Si(),c=this.Ci(),u=Gc(l)&&Math.abs(a-l)>864e5,p=!1,g=!i,m=!g&&!t&&this.hi(a,n);g||m||u?(i=this.vi(),c=this.fi(),E0.info("new session ID generated",{sessionId:i,windowId:c,changeReason:{noSessionId:g,activityTimeout:m,sessionPastMaximumLength:u}}),l=a,p=!0):c||(c=this.fi(),p=!0);var f=Gc(n)&&t&&!u?n:a,v=Gc(l)?l:new Date().getTime();return this.Ii(c),this.bi(i,f,v),t||this.pi(),p&&this.li.forEach((b=>b(i,c,p?{noSessionId:g,activityTimeout:m,sessionPastMaximumLength:u}:void 0))),{sessionId:i,windowId:c,sessionStartTimestamp:v,changeReason:p?{noSessionId:g,activityTimeout:m,sessionPastMaximumLength:u}:void 0,lastActivityTimestamp:n}}pi(){clearTimeout(this.xi),this.xi=setTimeout((()=>{var[t]=this.Si();if(this.hi(new Date().getTime(),t)){var o=this.di;this.resetSessionId(),this.ai.emit("forcedIdleReset",{idleSessionId:o})}}),1.1*this.sessionTimeoutMs)}}var x3=function(e,t){if(!e)return!1;var o=e.userAgent;if(o&&YD(o,t))return!0;try{var a=e?.userAgentData;if(a!=null&&a.brands&&a.brands.some((n=>YD(n?.brand,t))))return!0}catch{}return!!e.webdriver},Jf=function(e,t){if(!(function(o){try{new RegExp(o)}catch{return!1}return!0})(t))return!1;try{return new RegExp(t).test(e)}catch{return!1}};function bO(e,t,o){return td({distinct_id:e,userPropertiesToSet:t,userPropertiesToSetOnce:o})}var k3={exact:(e,t)=>t.some((o=>e.some((a=>o===a)))),is_not:(e,t)=>t.every((o=>e.every((a=>o!==a)))),regex:(e,t)=>t.some((o=>e.some((a=>Jf(o,a))))),not_regex:(e,t)=>t.every((o=>e.every((a=>!Jf(o,a))))),icontains:(e,t)=>t.map(Fh).some((o=>e.map(Fh).some((a=>o.includes(a))))),not_icontains:(e,t)=>t.map(Fh).every((o=>e.map(Fh).every((a=>!o.includes(a))))),gt:(e,t)=>t.some((o=>{var a=parseFloat(o);return!isNaN(a)&&e.some((n=>a>parseFloat(n)))})),lt:(e,t)=>t.some((o=>{var a=parseFloat(o);return!isNaN(a)&&e.some((n=>a<parseFloat(n)))}))},Fh=e=>e.toLowerCase();function E3(e,t){return!e||Object.entries(e).every((o=>{var[a,n]=o,i=t?.[a];if(Ve(i)||Mi(i))return!1;var l=[String(i)],c=k3[n.operator];return!!c&&c(n.values,l)}))}var zw="custom",yO="i.posthog.com",Tre=/^\/static\//;class wre{constructor(t){this.ki={},this.instance=t}get apiHost(){var t=this.instance.config.api_host.trim().replace(/\/$/,"");return t==="https://app.posthog.com"?"https://us.i.posthog.com":t}get flagsApiHost(){var t=this.instance.config.flags_api_host;return t?t.trim().replace(/\/$/,""):this.apiHost}get uiHost(){var t,o=(t=this.instance.config.ui_host)==null?void 0:t.replace(/\/$/,"");return o||(o=this.apiHost.replace("."+yO,".posthog.com")),o==="https://app.posthog.com"?"https://us.posthog.com":o}get region(){return this.ki[this.apiHost]||(this.ki[this.apiHost]=/https:\/\/(app|us|us-assets)(\.i)?\.posthog\.com/i.test(this.apiHost)?"us":/https:\/\/(eu|eu-assets)(\.i)?\.posthog\.com/i.test(this.apiHost)?"eu":zw),this.ki[this.apiHost]}Ti(t){var o=this.instance.config.__preview_external_dependency_versioned_paths;if(typeof o=="string"&&Tre.test(t))return o.trim().replace(/\/$/,"")||void 0}endpointFor(t,o){if(o===void 0&&(o=""),o&&(o=o[0]==="/"?o:"/"+o),t==="ui")return this.uiHost+o;if(t==="flags")return this.flagsApiHost+o;if(t==="assets"){var a=this.Ti(o);if(a)return""+a+o}if(this.region===zw)return this.apiHost+o;var n=yO+o;switch(t){case"assets":return"https://"+this.region+"-assets."+n;case"api":return"https://"+this.region+"."+n}}}var eo=So("[Surveys]"),$w="seenSurvey_",_re=[_0.Popover,_0.Widget,_0.API],Cre={ignoreConditions:!1,ignoreDelay:!1,displayType:Nw.Popover},Pre=So("[PostHog ExternalIntegrations]"),xre={intercom:"intercom-integration",crispChat:"crisp-chat-integration"};class kre{constructor(t){this._instance=t}ur(t,o){var a;(a=et.__PosthogExtensions__)==null||a.loadExternalDependency==null||a.loadExternalDependency(this._instance,t,(n=>{if(n)return Pre.error("failed to load script",n);o()}))}startIfEnabledOrStop(){var t=this,o=function(l){var c,u,p;!n||(c=et.__PosthogExtensions__)!=null&&(c=c.integrations)!=null&&c[l]||t.ur(xre[l],(()=>{var g;(g=et.__PosthogExtensions__)==null||(g=g.integrations)==null||(g=g[l])==null||g.start(t._instance)})),!n&&(u=et.__PosthogExtensions__)!=null&&(u=u.integrations)!=null&&u[l]&&((p=et.__PosthogExtensions__)==null||(p=p.integrations)==null||(p=p[l])==null||p.stop())};for(var[a,n]of Object.entries((i=this._instance.config.integrations)!==null&&i!==void 0?i:{})){var i;o(a)}}}var jc,mp={},R0=0,qw=()=>{},SO='Consent opt in/out is not valid with cookieless_mode="always" and will be ignored',$u="Surveys module not available",TO="sanitize_properties is deprecated. Use before_send instead",R3="Invalid value for property_denylist config: ",Yc="posthog",A3=!gre&&rn?.indexOf("MSIE")===-1&&rn?.indexOf("Mozilla")===-1,wO=e=>{var t;return Oe({api_host:"https://us.i.posthog.com",flags_api_host:null,ui_host:null,token:"",autocapture:!0,cross_subdomain_cookie:Vne(Be?.location),persistence:"localStorage+cookie",persistence_name:"",cookie_persisted_properties:[],loaded:qw,save_campaign_params:!0,custom_campaign_params:[],custom_blocked_useragents:[],save_referrer:!0,capture_pageleave:"if_capture_pageview",defaults:e??"unset",__preview_deferred_init_extensions:!1,__preview_external_dependency_versioned_paths:!1,debug:wa&&Co(wa?.search)&&wa.search.indexOf("__posthog_debug=true")!==-1||!1,cookie_expiration:365,upgrade:!1,disable_session_recording:!1,disable_persistence:!1,disable_web_experiments:!0,disable_surveys:!1,disable_surveys_automatic_display:!1,disable_conversations:!1,disable_product_tours:!1,disable_external_dependency_loading:!1,enable_recording_console_log:void 0,secure_cookie:(he==null||(t=he.location)==null?void 0:t.protocol)==="https:",ip:!1,opt_out_capturing_by_default:!1,opt_out_persistence_by_default:!1,opt_out_useragent_filter:!1,opt_out_capturing_persistence_type:"localStorage",consent_persistence_name:null,opt_out_capturing_cookie_prefix:null,opt_in_site_apps:!1,property_denylist:[],respect_dnt:!1,sanitize_properties:null,request_headers:{},request_batching:!0,properties_string_max_length:65535,mask_all_element_attributes:!1,mask_all_text:!1,mask_personal_data_properties:!1,custom_personal_data_properties:[],advanced_disable_flags:!1,advanced_disable_decide:!1,advanced_disable_feature_flags:!1,advanced_disable_feature_flags_on_first_load:!1,advanced_only_evaluate_survey_feature_flags:!1,advanced_feature_flags_dedup_per_session:!1,advanced_enable_surveys:!1,advanced_disable_toolbar_metrics:!1,feature_flag_request_timeout_ms:3e3,surveys_request_timeout_ms:1e4,on_request_error(o){ze.error("Bad HTTP status: "+o.statusCode+" "+o.text)},get_device_id:o=>o,capture_performance:void 0,name:"posthog",bootstrap:{},disable_compression:!1,session_idle_timeout_seconds:1800,person_profiles:Lw,before_send:void 0,request_queue_config:{flush_interval_ms:Uw},error_tracking:{},_onCapture:qw,__preview_eager_load_replay:!1},(o=>({rageclick:!o||"2025-11-30">o||{content_ignorelist:!0},capture_pageview:!o||"2025-05-24">o||"history_change",session_recording:o&&o>="2025-11-30"?{strictMinimumDuration:!0}:{},external_scripts_inject_target:o&&o>="2026-01-30"?"head":"body",internal_or_test_user_hostname:o&&o>="2026-01-30"?/^(localhost|127\.0\.0\.1)$/:void 0}))(e))},Ere=[["process_person","person_profiles"],["xhr_headers","request_headers"],["cookie_name","persistence_name"],["disable_cookie","disable_persistence"],["store_google","save_campaign_params"],["verbose","debug"]],_O=e=>{var t={};for(var[o,a]of Ere)Ve(e[o])||(t[a]=e[o]);var n=Do({},t,e);return It(e.property_blacklist)&&(Ve(e.property_denylist)?n.property_denylist=e.property_blacklist:It(e.property_denylist)?n.property_denylist=[...e.property_blacklist,...e.property_denylist]:ze.error(R3+e.property_denylist)),n};class Rre{constructor(){this.__forceAllowLocalhost=!1}get Ai(){return this.__forceAllowLocalhost}set Ai(t){ze.error("WebPerformanceObserver is deprecated and has no impact on network capture. Use `_forceAllowLocalhostNetworkCapture` on `posthog.sessionRecording`"),this.__forceAllowLocalhost=t}}class Yn{Ei(t,o){if(t){var a=this.Ri.indexOf(t);a!==-1&&this.Ri.splice(a,1)}return this.Ri.push(o),o.initialize==null||o.initialize(),o}Ni(){return this.config.cookieless_mode===Pi||this.config.cookieless_mode===bl&&this.consent.isRejected()}get decideEndpointWasHit(){var t,o;return(t=(o=this.featureFlags)==null?void 0:o.hasLoadedFlags)!==null&&t!==void 0&&t}get flagsEndpointWasHit(){var t,o;return(t=(o=this.featureFlags)==null?void 0:o.hasLoadedFlags)!==null&&t!==void 0&&t}constructor(){var t;this.webPerformance=new Rre,this.Mi=!1,this.version=Ka.LIB_VERSION,this.Fi=new KC,this.Ri=[],this._calculate_event_properties=this.calculateEventProperties.bind(this),this.config=wO(),this.SentryIntegration=ere,this.sentryIntegration=a=>(function(n,i){var l=u3(n,i);return{name:d3,processEvent:c=>l(c)}})(this,a),this.__request_queue=[],this.__loaded=!1,this.analyticsDefaultEndpoint="/e/",this.Oi=!1,this.Pi=null,this.Li=null,this.Di=null,this.scrollManager=new yre(this),this.pageViewManager=new iO(this),this.rateLimiter=new lre(this),this.requestRouter=new wre(this),this.consent=new Qne(this),this.externalIntegrations=new kre(this);var o=(t=Yn.__defaultExtensionClasses)!==null&&t!==void 0?t:{};this.featureFlags=o.featureFlags&&new o.featureFlags(this),this.toolbar=o.toolbar&&new o.toolbar(this),this.surveys=o.surveys&&new o.surveys(this),this.conversations=o.conversations&&new o.conversations(this),this.logs=o.logs&&new o.logs(this),this.experiments=o.experiments&&new o.experiments(this),this.exceptions=o.exceptions&&new o.exceptions(this),this.people={set:(a,n,i)=>{var l=Co(a)?{[a]:n}:a;this.setPersonProperties(l),i?.({})},set_once:(a,n,i)=>{var l=Co(a)?{[a]:n}:a;this.setPersonProperties(void 0,l),i?.({})}},this.on("eventCaptured",(a=>ze.info('send "'+a?.event+'"',a)))}init(t,o,a){if(a&&a!==Yc){var n,i=(n=mp[a])!==null&&n!==void 0?n:new Yn;return i._init(t,o,a),mp[a]=i,mp[Yc][a]=i,i}return this._init(t,o,a)}_init(t,o,a){var n,i;if(o===void 0&&(o={}),Ve(t)||tf(t))return ze.critical("PostHog was initialized without a token. This likely indicates a misconfiguration. Please check the first argument passed to posthog.init()"),this;if(this.__loaded)return console.warn("[PostHog.js]","You have already initialized PostHog! Re-initializing is a no-op"),this;this.__loaded=!0,this.config={},o.debug=this.Bi(o.debug),this.ji=o,this.$i=[],o.person_profiles?this.Li=o.person_profiles:o.process_person&&(this.Li=o.process_person),this.set_config(Do({},wO(o.defaults),_O(o),{name:a,token:t})),this.config.on_xhr_error&&ze.error("on_xhr_error is deprecated. Use on_request_error instead"),this.compression=o.disable_compression?void 0:Fr.GZipJS;var l=this.qi();this.persistence=new w0(this.config,l),this.sessionPersistence=this.config.persistence==="sessionStorage"||this.config.persistence==="memory"?this.persistence:new w0(Oe({},this.config,{persistence:"sessionStorage"}),l);var c=Oe({},this.persistence.props),u=Oe({},this.sessionPersistence.props);this.register({$initialization_time:new Date().toISOString()}),this.Zi=new fre((C=>this.Vi(C)),this.config.request_queue_config),this.Hi=new bre(this),this.__request_queue=[];var p=this.Ni();if(p||(this.sessionManager=new vO(this),this.sessionPropsManager=new fO(this,this.sessionManager,this.persistence)),this.config.__preview_deferred_init_extensions?(ze.info("Deferring extension initialization to improve startup performance"),setTimeout((()=>{this.zi(p)}),0)):(ze.info("Initializing extensions synchronously"),this.zi(p)),Ka.DEBUG=Ka.DEBUG||this.config.debug,Ka.DEBUG&&ze.info("Starting in debug mode",{this:this,config:o,thisC:Oe({},this.config),p:c,s:u}),!this.config.identity_distinct_id||(n=o.bootstrap)!=null&&n.distinctID||(o.bootstrap=Oe({},o.bootstrap,{distinctID:this.config.identity_distinct_id,isIdentifiedID:!0})),((i=o.bootstrap)==null?void 0:i.distinctID)!==void 0){var g=o.bootstrap.distinctID,m=this.get_distinct_id(),f=this.persistence.get_property(mr);if(o.bootstrap.isIdentifiedID&&m!=null&&m!==g&&f===Nc)this.identify(g);else if(o.bootstrap.isIdentifiedID&&m!=null&&m!==g&&f===Fc)ze.warn("Bootstrap distinctID differs from an already-identified user. The existing identity is preserved. Call reset() before reinitializing if you intend to switch users.");else{var v=this.config.get_device_id(ws()),b=o.bootstrap.isIdentifiedID?v:g;this.persistence.set_property(mr,o.bootstrap.isIdentifiedID?Fc:Nc),this.register({distinct_id:g,$device_id:b})}}if(p)this.register_once({distinct_id:Oh,$device_id:null},"");else if(!this.get_distinct_id()){var S=this.config.get_device_id(ws());this.register_once({distinct_id:S,$device_id:S},""),this.persistence.set_property(mr,Nc)}return Yo(he,"onpagehide"in self?"pagehide":"unload",this._handle_unload.bind(this),{passive:!1}),o.segment?(function(C,w){var _=C.config.segment;if(!_)return w();(function(E,x){var k=E.config.segment;if(!k)return x();var R=O=>{var N=()=>O.anonymousId()||ws();E.config.get_device_id=N,O.id()&&(E.register({distinct_id:O.id(),$device_id:N()}),E.persistence.set_property(mr,Fc)),x()},D=k.user();"then"in D&&Ci(D.then)?D.then(R):R(D)})(C,(()=>{_.register((E=>{Promise&&Promise.resolve||T0.warn("This browser does not have Promise support, and can not use the segment integration");var x=(k,R)=>{if(!R)return k;k.event.userId||k.event.anonymousId===E.get_distinct_id()||(T0.info("No userId set, resetting PostHog"),E.reset()),k.event.userId&&k.event.userId!==E.get_distinct_id()&&(T0.info("UserId set, identifying with PostHog"),E.identify(k.event.userId));var D=E.calculateEventProperties(R,k.event.properties);return k.event.properties=Object.assign({},D,k.event.properties),k};return{name:"PostHog JS",type:"enrichment",version:"1.0.0",isLoaded:()=>!0,load:()=>Promise.resolve(),track:k=>x(k,k.event.event),page:k=>x(k,Wc),identify:k=>x(k,y0),screen:k=>x(k,"$screen")}})(C)).then((()=>{w()}))}))})(this,(()=>this.Ui())):this.Ui(),Ci(this.config._onCapture)&&this.config._onCapture!==qw&&(ze.warn("onCapture is deprecated. Please use `before_send` instead"),this.on("eventCaptured",(C=>this.config._onCapture(C.event,C)))),this.config.ip&&ze.warn('The `ip` config option has NO EFFECT AT ALL and has been deprecated. Use a custom transformation or "Discard IP data" project setting instead. See https://posthog.com/tutorials/web-redact-properties#hiding-customer-ip-address for more information.'),this}zi(t){var o,a,n,i,l,c,u,p=performance.now(),g=Oe({},Yn.__defaultExtensionClasses,this.config.__extensionClasses),m=[];g.featureFlags&&this.Ri.push(this.featureFlags=(o=this.featureFlags)!==null&&o!==void 0?o:new g.featureFlags(this)),g.exceptions&&this.Ri.push(this.exceptions=(a=this.exceptions)!==null&&a!==void 0?a:new g.exceptions(this)),g.historyAutocapture&&this.Ri.push(this.historyAutocapture=new g.historyAutocapture(this)),g.tracingHeaders&&this.Ri.push(new g.tracingHeaders(this)),g.siteApps&&this.Ri.push(this.siteApps=new g.siteApps(this)),g.sessionRecording&&!t&&this.Ri.push(this.sessionRecording=new g.sessionRecording(this)),this.config.disable_scroll_properties||m.push((()=>{this.scrollManager.startMeasuringScrollPosition()})),g.autocapture&&this.Ri.push(this.autocapture=new g.autocapture(this)),g.surveys&&this.Ri.push(this.surveys=(n=this.surveys)!==null&&n!==void 0?n:new g.surveys(this)),g.logs&&this.Ri.push(this.logs=(i=this.logs)!==null&&i!==void 0?i:new g.logs(this)),g.conversations&&this.Ri.push(this.conversations=(l=this.conversations)!==null&&l!==void 0?l:new g.conversations(this)),g.productTours&&this.Ri.push(this.productTours=new g.productTours(this)),g.heatmaps&&this.Ri.push(this.heatmaps=new g.heatmaps(this)),g.webVitalsAutocapture&&this.Ri.push(this.webVitalsAutocapture=new g.webVitalsAutocapture(this)),g.exceptionObserver&&this.Ri.push(this.exceptionObserver=new g.exceptionObserver(this)),g.deadClicksAutocapture&&this.Ri.push(this.deadClicksAutocapture=new g.deadClicksAutocapture(this,Xne)),g.toolbar&&this.Ri.push(this.toolbar=(c=this.toolbar)!==null&&c!==void 0?c:new g.toolbar(this)),g.experiments&&this.Ri.push(this.experiments=(u=this.experiments)!==null&&u!==void 0?u:new g.experiments(this)),this.Ri.forEach((f=>{f.initialize&&m.push((()=>{f.initialize==null||f.initialize()}))})),m.push((()=>{if(this.Yi){var f=this.Yi;this.Yi=void 0,this.Nr(f)}})),this.Gi(m,p)}Gi(t,o){for(;t.length>0;){if(this.config.__preview_deferred_init_extensions&&performance.now()-o>=30&&t.length>0)return void setTimeout((()=>{this.Gi(t,o)}),0);var a=t.shift();if(a)try{a()}catch(i){ze.error("Error initializing extension:",i)}}var n=Math.round(performance.now()-o);this.register_for_session({[r3]:this.config.__preview_deferred_init_extensions?"deferred":"synchronous",[i3]:n}),this.config.__preview_deferred_init_extensions&&ze.info("PostHog extensions initialized ("+n+"ms)")}Nr(t){var o;if(!Be||!Be.body)return ze.info("document not ready yet, trying again in 500 milliseconds..."),void setTimeout((()=>{this.Nr(t)}),500);this.config.__preview_deferred_init_extensions&&(this.Yi=t),this.Wi=t,this.compression=void 0,t.supportedCompression&&!this.config.disable_compression&&(this.compression=Ct(t.supportedCompression,Fr.GZipJS)?Fr.GZipJS:Ct(t.supportedCompression,Fr.Base64)?Fr.Base64:void 0),(o=t.analytics)!=null&&o.endpoint&&(this.analyticsDefaultEndpoint=t.analytics.endpoint),this.set_config({person_profiles:this.Li?this.Li:Lw}),this.Ri.forEach((a=>a.onRemoteConfig==null?void 0:a.onRemoteConfig(t)))}Ui(){try{this.config.loaded(this)}catch(a){ze.critical("`loaded` function failed",a)}if(this.Xi(),this.config.internal_or_test_user_hostname&&wa!=null&&wa.hostname){var t=wa.hostname,o=this.config.internal_or_test_user_hostname;(typeof o=="string"?t===o:o.test(t))&&this.setInternalOrTestUser()}this.config.capture_pageview&&setTimeout((()=>{(this.consent.isOptedIn()||this.Ni())&&this.Ji()}),1),this.Ki=new y3(this),this.Ki.load()}Xi(){var t;this.is_capturing()&&this.config.request_batching&&((t=this.Zi)==null||t.enable())}_dom_loaded(){this.is_capturing()&&Ih(this.__request_queue,(t=>this.Vi(t))),this.__request_queue=[],this.Xi()}_handle_unload(){var t,o,a,n;(t=this.surveys)==null||t.handlePageUnload(),this.config.request_batching?(this.Qi()&&this.capture(b0),(o=this.logs)==null||o.flushLogs("sendBeacon"),(a=this.Zi)==null||a.unload(),(n=this.Hi)==null||n.unload()):this.Qi()&&this.capture(b0,null,{transport:"sendBeacon"})}_send_request(t){this.__loaded&&(A3?this.__request_queue.push(t):this.rateLimiter.isServerRateLimited(t.batchKey)||(t.transport=t.transport||this.config.api_transport,t.url=Uv(t.url,{ip:this.config.ip?1:0}),t.headers=Oe({},this.config.request_headers,t.headers),t.compression=t.compression==="best-available"?this.compression:t.compression,t.disableXHRCredentials=this.config.__preview_disable_xhr_credentials,this.config.__preview_disable_beacon&&(t.disableTransport=["sendBeacon"]),t.fetchOptions=t.fetchOptions||this.config.fetch_options,(o=>{var a,n,i,l=Oe({},o);l.timeout=l.timeout||6e4,l.url=hO(l.url,l.compression);var c=(a=l.transport)!==null&&a!==void 0?a:"fetch",u=rf.filter((g=>!l.disableTransport||!g.transport||!l.disableTransport.includes(g.transport))),p=(n=(i=(function(g,m){for(var f=0;g.length>f;f++)if(g[f].transport===c)return g[f]})(u))==null?void 0:i.method)!==null&&n!==void 0?n:u[0].method;if(!p)throw new Error("No available transport method");c!=="sendBeacon"&&l.data&&l.compression===Fr.GZipJS&&ene&&!gO?hre(l).then((g=>{p(g)})).catch((g=>{if((m=>!(!m||typeof m!="object")&&("name"in m?String(m.name):"")==="NotReadableError")(g))return gO=!0,void p(Oe({},l,{compression:void 0,url:hO(o.url,void 0)}));p(l)})):p(l)})(Oe({},t,{callback:o=>{var a,n;this.rateLimiter.checkForLimiting(o),400>o.statusCode||(a=(n=this.config).on_request_error)==null||a.call(n,o),t.callback==null||t.callback(o)}}))))}Vi(t){this.Hi?this.Hi.retriableRequest(t):this._send_request(t)}_execute_array(t){R0++;try{var o,a=[],n=[],i=[];Ih(t,(c=>{c&&(It(o=c[0])?i.push(c):Ci(c)?c.call(this):It(c)&&o==="alias"?a.push(c):It(c)&&o.indexOf("capture")!==-1&&Ci(this[o])?i.push(c):n.push(c))}));var l=function(c,u){Ih(c,(function(p){if(It(p[0])){var g=u;ho(p,(function(m){g=g[m[0]].apply(g,m.slice(1))}))}else u[p[0]].apply(u,p.slice(1))}))};l(a,this),l(n,this),l(i,this)}finally{R0--}}push(t){if(R0>0&&It(t)&&Co(t[0])){var o=Yn.prototype[t[0]];Ci(o)&&o.apply(this,t.slice(1))}else this._execute_array([t])}capture(t,o,a){var n,i,l,c,u;if(this.__loaded&&this.persistence&&this.sessionPersistence&&this.Zi){if(this.is_capturing())if(!Ve(t)&&Co(t)){var p=!this.config.opt_out_useragent_filter&&this._is_bot();if(!p||this.config.__preview_capture_bot_pageviews){var g=a!=null&&a.skip_client_rate_limiting?void 0:this.rateLimiter.clientRateLimitContext();if(g==null||!g.isRateLimited){o!=null&&o.$current_url&&!Co(o?.$current_url)&&(ze.error("Invalid `$current_url` property provided to `posthog.capture`. Input must be a string. Ignoring provided value."),o==null||delete o.$current_url),t!=="$exception"||a!=null&&a.en||ze.warn("Using `posthog.capture('$exception')` is unreliable because it does not attach required metadata. Use `posthog.captureException(error)` instead, which attaches required metadata automatically."),this.sessionPersistence.update_search_keyword(),this.config.save_campaign_params&&this.sessionPersistence.update_campaign_params(),this.config.save_referrer&&this.sessionPersistence.update_referrer_info(),(this.config.save_campaign_params||this.config.save_referrer)&&this.persistence.set_initial_person_info();var m=new Date,f=a?.timestamp||m,v=ws(),b={uuid:v,event:t,properties:this.calculateEventProperties(t,o||{},f,v)};t===Wc&&this.config.__preview_capture_bot_pageviews&&p&&(b.event="$bot_pageview",b.properties.$browser_type="bot"),g&&(b.properties.$lib_rate_limit_remaining_tokens=g.remainingTokens),a?.$set&&(b.$set=a?.$set);var S,C,w,_=this.tn(a?.$set_once,t!==oO,t===y0);if(_&&(b.$set_once=_),a!=null&&a._noTruncate||(i=this.config.properties_string_max_length,l=b,c=N=>Co(N)?N.slice(0,i):N,u=new Set,b=(function N($,F){return $!==Object($)?c?c($):$:u.has($)?void 0:(u.add($),It($)?(z=[],Ih($,(j=>{z.push(N(j))}))):(z={},ho($,((j,K)=>{u.has(j)||(z[K]=N(j))}))),z);var z})(l)),b.timestamp=f,Ve(a?.timestamp)||(b.properties.$event_time_override_provided=!0,b.properties.$event_time_override_system_time=m),t===ip.DISMISSED||t===ip.SENT){var E=o?.[C0.SURVEY_ID],x=o?.[C0.SURVEY_ITERATION];(N=>{try{var $=(F=>((z,j)=>{var K=""+$w+j.id;return j.current_iteration&&j.current_iteration>0&&(K=""+$w+j.id+"_"+j.current_iteration),K})(0,F))(N);if(localStorage.getItem($))return;localStorage.setItem($,"true")}catch(F){eo.error("Failed to persist survey seen state",F)}})({id:E,current_iteration:x}),b.$set=Oe({},b.$set,{[(S={id:E,current_iteration:x},C=t===ip.SENT?"responded":"dismissed",w="$survey_"+C+"/"+S.id,S.current_iteration&&S.current_iteration>0&&(w="$survey_"+C+"/"+S.id+"/"+S.current_iteration),w)]:!0})}else t===ip.SHOWN&&(b.$set=Oe({},b.$set,{[C0.SURVEY_LAST_SEEN_DATE]:new Date().toISOString()}));if(t===sre.SHOWN){var k=o?.[lO.TOUR_TYPE];k&&(b.$set=Oe({},b.$set,{[lO.TOUR_LAST_SEEN_DATE+"/"+k]:new Date().toISOString()}))}var R=Oe({},b.properties.$set,b.$set);if(Xc(R)||this.setPersonPropertiesForFlags(R),!Pt(this.config.before_send)){var D=this.rn(b);if(!D)return;b=D}this.Fi.emit("eventCaptured",b);var O={method:"POST",url:(n=a?._url)!==null&&n!==void 0?n:this.requestRouter.endpointFor("api",this.analyticsDefaultEndpoint),data:b,compression:"best-available",batchKey:a?._batchKey};return!this.config.request_batching||a&&(a==null||!a._batchKey)||a!=null&&a.send_instantly?this.Vi(O):this.Zi.enqueue(O),b}ze.critical("This capture call is ignored due to client rate limiting.")}}else ze.error("No event name provided to posthog.capture")}else ze.uninitializedWarning("posthog.capture")}_addCaptureHook(t){return this.on("eventCaptured",(o=>t(o.event,o)))}calculateEventProperties(t,o,a,n,i){if(a=a||new Date,!this.persistence||!this.sessionPersistence)return o;var l=i?void 0:this.persistence.remove_event_timer(t),c=Oe({},o);if(c.token=this.config.token,c.$config_defaults=this.config.defaults,this.Ni()&&(c.$cookieless_mode=!0),t==="$snapshot"){var u=Oe({},this.persistence.properties(),this.sessionPersistence.properties());return c.distinct_id=u.distinct_id,(!Co(c.distinct_id)&&!Xn(c.distinct_id)||tf(c.distinct_id))&&ze.error("Invalid distinct_id for replay event. This indicates a bug in your implementation"),c}var p,g=(function(w,_){var E,x,k,R;if(!rn)return{};var D,O,N,$,F,z,j,K,ne=w?[...Cd,..._||[]]:[],[H,Z]=(function(te){for(var le=0;JD.length>le;le++){var[Q,M]=JD[le],G=Q.exec(te),q=G&&(Ci(M)?M(G,te):M);if(q)return q}return["",""]})(rn);return Do(VC({$os:H,$os_version:Z,$browser:KB(rn,navigator.vendor),$device:XD(rn),$device_type:(O=rn,N={userAgentDataPlatform:(E=navigator)==null||(E=E.userAgentData)==null?void 0:E.platform,maxTouchPoints:(x=navigator)==null?void 0:x.maxTouchPoints,screenWidth:he==null||(k=he.screen)==null?void 0:k.width,screenHeight:he==null||(R=he.screen)==null?void 0:R.height,devicePixelRatio:he?.devicePixelRatio},K=XD(O),K===IB||K===OB||K==="Kobo"||K==="Kindle Fire"||K===GB?Td:K===Ap||K===dd||K===Dp||K===mw?"Console":K===LB?"Wearable":K?Rn:N?.userAgentDataPlatform==="Android"&&(($=N?.maxTouchPoints)!==null&&$!==void 0?$:0)>0?600>Math.min((F=N?.screenWidth)!==null&&F!==void 0?F:0,(z=N?.screenHeight)!==null&&z!==void 0?z:0)/((j=N?.devicePixelRatio)!==null&&j!==void 0?j:1)?Rn:Td:"Desktop"),$timezone:b3(),$timezone_offset:rre()}),{$current_url:Op(wa?.href,ne,Ip),$host:wa?.host,$pathname:wa?.pathname,$raw_user_agent:rn.length>1e3?rn.substring(0,997)+"...":rn,$browser_version:fne(rn,navigator.vendor),$browser_language:sO(),$browser_language_prefix:(D=sO(),typeof D=="string"?D.split("-")[0]:void 0),$screen_height:he?.screen.height,$screen_width:he?.screen.width,$viewport_height:he?.innerHeight,$viewport_width:he?.innerWidth,$lib:Ka.LIB_NAME,$lib_version:Ka.LIB_VERSION,$insert_id:Math.random().toString(36).substring(2,10)+Math.random().toString(36).substring(2,10),$time:Date.now()/1e3})})(this.config.mask_personal_data_properties,this.config.custom_personal_data_properties);if(this.sessionManager){var{sessionId:m,windowId:f}=this.sessionManager.checkAndGetSessionAndWindowId(i,a.getTime());c.$session_id=m,c.$window_id=f}this.sessionPropsManager&&Do(c,this.sessionPropsManager.getSessionProps());try{var v;this.sessionRecording&&Do(c,this.sessionRecording.sdkDebugProperties),c.$sdk_debug_retry_queue_size=(v=this.Hi)==null?void 0:v.length}catch(w){c.$sdk_debug_error_capturing_properties=String(w)}if(this.requestRouter.region===zw&&(c.$lib_custom_api_host=this.config.api_host),p=t!==Wc||i?t!==b0||i?this.pageViewManager.doEvent():this.pageViewManager.doPageLeave(a):this.pageViewManager.doPageView(a,n),c=Do(c,p),t===Wc&&Be&&(c.title=Be.title),!Ve(l)){var b=a.getTime()-l;c.$duration=parseFloat((b/1e3).toFixed(3))}rn&&this.config.opt_out_useragent_filter&&(c.$browser_type=this._is_bot()?"bot":"browser"),(c=Do({},g,this.persistence.properties(),this.sessionPersistence.properties(),c)).$is_identified=this._isIdentified(),It(this.config.property_denylist)?ho(this.config.property_denylist,(function(w){delete c[w]})):ze.error(R3+this.config.property_denylist+" or property_blacklist config: "+this.config.property_blacklist);var S=this.config.sanitize_properties;S&&(ze.error(TO),c=S(c,t));var C=this.nn();return c.$process_person_profile=C,C&&!i&&this.sn("_calculate_event_properties"),c}tn(t,o,a){var n;if(o===void 0&&(o=!0),a===void 0&&(a=!1),!this.persistence||!this.nn()||this.Mi&&!a)return t;var i=this.persistence.get_initial_props(),l=(n=this.sessionPropsManager)==null?void 0:n.getSetOnceProps(),c=Do({},i,l||{},t||{}),u=this.config.sanitize_properties;return u&&(ze.error(TO),c=u(c,"$set_once")),o&&(this.Mi=!0),Xc(c)?void 0:c}register(t,o){var a;(a=this.persistence)==null||a.register(t,o)}register_once(t,o,a){var n;(n=this.persistence)==null||n.register_once(t,o,a)}register_for_session(t){var o;(o=this.sessionPersistence)==null||o.register(t)}unregister(t){var o;(o=this.persistence)==null||o.unregister(t)}unregister_for_session(t){var o;(o=this.sessionPersistence)==null||o.unregister(t)}an(t,o){this.register({[t]:o})}getFeatureFlag(t,o){var a;return(a=this.featureFlags)==null?void 0:a.getFeatureFlag(t,o)}getFeatureFlagPayload(t){var o;return(o=this.featureFlags)==null?void 0:o.getFeatureFlagPayload(t)}getFeatureFlagResult(t,o){var a;return(a=this.featureFlags)==null?void 0:a.getFeatureFlagResult(t,o)}isFeatureEnabled(t,o){var a;return(a=this.featureFlags)==null?void 0:a.isFeatureEnabled(t,o)}reloadFeatureFlags(){var t;(t=this.featureFlags)==null||t.reloadFeatureFlags()}updateFlags(t,o,a){var n;(n=this.featureFlags)==null||n.updateFlags(t,o,a)}updateEarlyAccessFeatureEnrollment(t,o,a){var n;(n=this.featureFlags)==null||n.updateEarlyAccessFeatureEnrollment(t,o,a)}getEarlyAccessFeatures(t,o,a){var n;return o===void 0&&(o=!1),(n=this.featureFlags)==null?void 0:n.getEarlyAccessFeatures(t,o,a)}on(t,o){return this.Fi.on(t,o)}onFeatureFlags(t){return this.featureFlags?this.featureFlags.onFeatureFlags(t):(t([],{},{errorsLoading:!0}),()=>{})}onSurveysLoaded(t){return this.surveys?this.surveys.onSurveysLoaded(t):(t([],{isLoaded:!1,error:$u}),()=>{})}onSessionId(t){var o,a;return(o=(a=this.sessionManager)==null?void 0:a.onSessionId(t))!==null&&o!==void 0?o:()=>{}}getSurveys(t,o){o===void 0&&(o=!1),this.surveys?this.surveys.getSurveys(t,o):t([],{isLoaded:!1,error:$u})}getActiveMatchingSurveys(t,o){o===void 0&&(o=!1),this.surveys?this.surveys.getActiveMatchingSurveys(t,o):t([],{isLoaded:!1,error:$u})}renderSurvey(t,o){var a;(a=this.surveys)==null||a.renderSurvey(t,o)}displaySurvey(t,o){var a;o===void 0&&(o=Cre),(a=this.surveys)==null||a.displaySurvey(t,o)}cancelPendingSurvey(t){var o;(o=this.surveys)==null||o.cancelPendingSurvey(t)}canRenderSurvey(t){var o,a;return(o=(a=this.surveys)==null?void 0:a.canRenderSurvey(t))!==null&&o!==void 0?o:{visible:!1,disabledReason:$u}}canRenderSurveyAsync(t,o){var a,n;return o===void 0&&(o=!1),(a=(n=this.surveys)==null?void 0:n.canRenderSurveyAsync(t,o))!==null&&a!==void 0?a:Promise.resolve({visible:!1,disabledReason:$u})}ln(t){return!t||tf(t)?(ze.critical("Unique user id has not been set in posthog.identify"),!1):t===Oh?(ze.critical('The string "'+t+'" was set in posthog.identify which indicates an error. This ID is only used as a sentinel value.'),!1):!["distinct_id","distinctid"].includes(t.toLowerCase())&&!["undefined","null"].includes(t.toLowerCase())||(ze.critical('The string "'+t+'" was set in posthog.identify which indicates an error. This ID should be unique to the user and not a hardcoded string.'),!1)}identify(t,o,a){if(!this.__loaded||!this.persistence)return ze.uninitializedWarning("posthog.identify");if(Xn(t)&&(t=t.toString(),ze.warn("The first argument to posthog.identify was a number, but it should be a string. It has been converted to a string.")),this.ln(t)&&this.sn("posthog.identify")){var n=this.get_distinct_id();this.register({$user_id:t}),this.get_property(jf)||this.register_once({$had_persisted_distinct_id:!0,$device_id:n},""),t!==n&&t!==this.get_property(tp)&&(this.unregister(tp),this.register({distinct_id:t}));var i,l=(this.persistence.get_property(mr)||Nc)===Nc;t!==n&&l?(this.persistence.set_property(mr,Fc),this.setPersonPropertiesForFlags({$set:o||{},$set_once:a||{}},!1),this.capture(y0,{distinct_id:t,$anon_distinct_id:n},{$set:o||{},$set_once:a||{}}),this.Di=bO(t,o,a),(i=this.featureFlags)==null||i.setAnonymousDistinctId(n)):(o||a)&&this.setPersonProperties(o,a),t!==n&&(this.reloadFeatureFlags(),this.unregister(up))}}setPersonProperties(t,o){if((t||o)&&this.sn("posthog.setPersonProperties")){var a=bO(this.get_distinct_id(),t,o);this.Di!==a?(this.setPersonPropertiesForFlags({$set:t||{},$set_once:o||{}},!0),this.capture("$set",{$set:t||{},$set_once:o||{}}),this.Di=a):ze.info("A duplicate setPersonProperties call was made with the same properties. It has been ignored.")}}group(t,o,a){if(t&&o){var n=this.getGroups(),i=n[t]!==o;if(i&&this.resetGroupPropertiesForFlags(t),this.register({$groups:Oe({},n,{[t]:o})}),i||a){var l={$group_type:t,$group_key:o};a&&(l.$group_set=a),this.capture(oO,l)}a&&this.setGroupPropertiesForFlags({[t]:a}),i&&!a&&this.reloadFeatureFlags()}else ze.error("posthog.group requires a group type and group key")}resetGroups(){this.register({$groups:{}}),this.resetGroupPropertiesForFlags(),this.reloadFeatureFlags()}setPersonPropertiesForFlags(t,o){var a;o===void 0&&(o=!0),(a=this.featureFlags)==null||a.setPersonPropertiesForFlags(t,o)}resetPersonPropertiesForFlags(){var t;(t=this.featureFlags)==null||t.resetPersonPropertiesForFlags()}setGroupPropertiesForFlags(t,o){var a;o===void 0&&(o=!0),this.sn("posthog.setGroupPropertiesForFlags")&&((a=this.featureFlags)==null||a.setGroupPropertiesForFlags(t,o))}resetGroupPropertiesForFlags(t){var o;(o=this.featureFlags)==null||o.resetGroupPropertiesForFlags(t)}reset(t){var o,a,n,i,l,c,u,p;if(ze.info("reset"),!this.__loaded)return ze.uninitializedWarning("posthog.reset");var g=this.get_property(jf);if(this.consent.reset(),(o=this.persistence)==null||o.clear(),(a=this.sessionPersistence)==null||a.clear(),(n=this.surveys)==null||n.reset(),(i=this.Ki)==null||i.stop(),(l=this.featureFlags)==null||l.reset(),(c=this.conversations)==null||c.reset(),(u=this.persistence)==null||u.set_property(mr,Nc),(p=this.sessionManager)==null||p.resetSessionId(),this.Di=null,this.config.cookieless_mode===Pi)this.register_once({distinct_id:Oh,$device_id:null},"");else{var m=this.config.get_device_id(ws());this.register_once({distinct_id:m,$device_id:t?m:g},"")}this.register({$last_posthog_reset:new Date().toISOString()},1),delete this.config.identity_distinct_id,delete this.config.identity_hash,this.reloadFeatureFlags()}setIdentity(t,o){var a;this.config.identity_distinct_id=t,this.config.identity_hash=o,this.alias(t),(a=this.conversations)==null||a.un()}clearIdentity(){var t;delete this.config.identity_distinct_id,delete this.config.identity_hash,(t=this.conversations)==null||t.hn()}get_distinct_id(){return this.get_property("distinct_id")}getGroups(){return this.get_property("$groups")||{}}get_session_id(){var t,o;return(t=(o=this.sessionManager)==null?void 0:o.checkAndGetSessionAndWindowId(!0).sessionId)!==null&&t!==void 0?t:""}get_session_replay_url(t){if(!this.sessionManager)return"";var{sessionId:o,sessionStartTimestamp:a}=this.sessionManager.checkAndGetSessionAndWindowId(!0),n=this.requestRouter.endpointFor("ui","/project/"+this.config.token+"/replay/"+o);if(t!=null&&t.withTimestamp&&a){var i,l=(i=t.timestampLookBack)!==null&&i!==void 0?i:10;if(!a)return n;n+="?t="+Math.max(Math.floor((new Date().getTime()-a)/1e3)-l,0)}return n}alias(t,o){return t===this.get_property(XB)?(ze.critical("Attempting to create alias for existing People user - aborting."),-2):this.sn("posthog.alias")?(Ve(o)&&(o=this.get_distinct_id()),t!==o?(this.an(tp,t),this.capture("$create_alias",{alias:t,distinct_id:o})):(ze.warn("alias matches current distinct_id - skipping api call."),this.identify(t),-1)):void 0}set_config(t){var o=Oe({},this.config);if(No(t)){var a,n,i,l,c,u,p,g,m,f;Do(this.config,_O(t));var v=this.qi();(a=this.persistence)==null||a.update_config(this.config,o,v),this.sessionPersistence=this.config.persistence==="sessionStorage"||this.config.persistence==="memory"?this.persistence:new w0(Oe({},this.config,{persistence:"sessionStorage"}),v);var b=this.Bi(this.config.debug);$r(b)&&(this.config.debug=b),$r(this.config.debug)&&(this.config.debug?(Ka.DEBUG=!0,_o.R()&&_o.M("ph_debug",!0),ze.info("set_config",{config:t,oldConfig:o,newConfig:Oe({},this.config)})):(Ka.DEBUG=!1,_o.R()&&_o.F("ph_debug"))),(n=this.exceptionObserver)==null||n.onConfigChange(),(i=this.exceptions)==null||i.onConfigChange(),(l=this.sessionRecording)==null||l.startIfEnabledOrStop(),(c=this.autocapture)==null||c.startIfEnabled(),(u=this.heatmaps)==null||u.startIfEnabled(),(p=this.exceptionObserver)==null||p.startIfEnabledOrStop(),(g=this.deadClicksAutocapture)==null||g.startIfEnabledOrStop(),(m=this.surveys)==null||m.loadIfEnabled(),this.cn(),(f=this.externalIntegrations)==null||f.startIfEnabledOrStop()}}_overrideSDKInfo(t,o){Ka.LIB_NAME=t,Ka.LIB_VERSION=o}startSessionRecording(t){var o,a,n,i,l,c=t===!0,u={sampling:c||!(t==null||!t.sampling),linked_flag:c||!(t==null||!t.linked_flag),url_trigger:c||!(t==null||!t.url_trigger),event_trigger:c||!(t==null||!t.event_trigger)};Object.values(u).some(Boolean)&&((o=this.sessionManager)==null||o.checkAndGetSessionAndWindowId(),u.sampling&&((a=this.sessionRecording)==null||a.overrideSampling()),u.linked_flag&&((n=this.sessionRecording)==null||n.overrideLinkedFlag()),u.url_trigger&&((i=this.sessionRecording)==null||i.overrideTrigger("url")),u.event_trigger&&((l=this.sessionRecording)==null||l.overrideTrigger("event"))),this.set_config({disable_session_recording:!1})}stopSessionRecording(){this.set_config({disable_session_recording:!0})}sessionRecordingStarted(){var t;return!((t=this.sessionRecording)==null||!t.started)}captureException(t,o){if(this.exceptions){var a=new Error("PostHog syntheticException"),n=this.exceptions.buildProperties(t,{handled:!0,syntheticException:a});return this.exceptions.sendExceptionEvent(Oe({},n,o))}}addExceptionStep(t,o){var a;(a=this.exceptions)==null||a.addExceptionStep(t,o)}captureLog(t){var o;(o=this.logs)==null||o.captureLog(t)}get logger(){var t,o;return(t=(o=this.logs)==null?void 0:o.logger)!==null&&t!==void 0?t:Yn.dn}startExceptionAutocapture(t){this.set_config({capture_exceptions:t==null||t})}stopExceptionAutocapture(){this.set_config({capture_exceptions:!1})}loadToolbar(t){var o,a;return(o=(a=this.toolbar)==null?void 0:a.loadToolbar(t))!==null&&o!==void 0&&o}get_property(t){var o;return(o=this.persistence)==null?void 0:o.props[t]}getSessionProperty(t){var o;return(o=this.sessionPersistence)==null?void 0:o.props[t]}toString(){var t,o=(t=this.config.name)!==null&&t!==void 0?t:Yc;return o!==Yc&&(o=Yc+"."+o),o}_isIdentified(){var t,o;return((t=this.persistence)==null?void 0:t.get_property(mr))===Fc||((o=this.sessionPersistence)==null?void 0:o.get_property(mr))===Fc}nn(){var t,o;return!(this.config.person_profiles==="never"||this.config.person_profiles===Lw&&!this._isIdentified()&&Xc(this.getGroups())&&((t=this.persistence)==null||(t=t.props)==null||!t[tp])&&((o=this.persistence)==null||(o=o.props)==null||!o[qf]))}Qi(){return this.config.capture_pageleave===!0||this.config.capture_pageleave==="if_capture_pageview"&&(this.config.capture_pageview===!0||this.config.capture_pageview==="history_change")}createPersonProfile(){this.nn()||this.sn("posthog.createPersonProfile")&&this.setPersonProperties({},{})}setInternalOrTestUser(){this.sn("posthog.setInternalOrTestUser")&&this.setPersonProperties({$internal_or_test_user:!0})}sn(t){return this.config.person_profiles==="never"?(ze.error(t+' was called, but process_person is set to "never". This call will be ignored.'),!1):(this.an(qf,!0),!0)}qi(){if(this.config.cookieless_mode==="always")return!0;var t=this.consent.isOptedOut();return this.config.disable_persistence||t&&!(!this.config.opt_out_persistence_by_default&&this.config.cookieless_mode!==bl)}cn(){var t,o,a,n,i=this.qi();return((t=this.persistence)==null?void 0:t._r)!==i&&((a=this.persistence)==null||a.set_disabled(i)),((o=this.sessionPersistence)==null?void 0:o._r)!==i&&((n=this.sessionPersistence)==null||n.set_disabled(i)),i}opt_in_capturing(t){var o;if(this.config.cookieless_mode!==Pi){if(this.Ni()){var a,n,i,l,c;this.reset(!0),(a=this.sessionManager)==null||a.destroy(),(n=this.pageViewManager)==null||n.destroy(),this.sessionManager=new vO(this),this.pageViewManager=new iO(this),this.persistence&&(this.sessionPropsManager=new fO(this,this.sessionManager,this.persistence));var u,p=(i=(l=this.config.__extensionClasses)==null?void 0:l.sessionRecording)!==null&&i!==void 0?i:(c=Yn.__defaultExtensionClasses)==null?void 0:c.sessionRecording;p&&(this.sessionRecording=this.Ei(this.sessionRecording,new p(this)),this.Wi&&((u=this.sessionRecording)==null||u.onRemoteConfig==null||u.onRemoteConfig(this.Wi)))}var g,m;this.consent.optInOut(!0),this.cn(),this.Xi(),(o=this.sessionRecording)==null||o.startIfEnabledOrStop(),this.config.cookieless_mode==bl&&((g=this.surveys)==null||g.loadIfEnabled()),(Ve(t?.captureEventName)||t!=null&&t.captureEventName)&&this.capture((m=t?.captureEventName)!==null&&m!==void 0?m:"$opt_in",t?.captureProperties,{send_instantly:!0}),this.config.capture_pageview&&this.Ji()}else ze.warn(SO)}opt_out_capturing(){var t,o,a;this.config.cookieless_mode!==Pi?(this.config.cookieless_mode===bl&&this.consent.isOptedIn()&&this.reset(!0),this.consent.optInOut(!1),this.cn(),this.config.cookieless_mode===bl&&(this.register({distinct_id:Oh,$device_id:null}),(t=this.sessionManager)==null||t.destroy(),(o=this.pageViewManager)==null||o.destroy(),this.sessionManager=void 0,this.sessionPropsManager=void 0,(a=this.sessionRecording)==null||a.stopRecording(),this.sessionRecording=void 0,this.Ji())):ze.warn(SO)}has_opted_in_capturing(){return this.consent.isOptedIn()}has_opted_out_capturing(){return this.consent.isOptedOut()}get_explicit_consent_status(){var t=this.consent.consent;return t===1?"granted":t===0?"denied":"pending"}is_capturing(){return this.config.cookieless_mode===Pi||(this.config.cookieless_mode===bl?this.consent.isRejected()||this.consent.isOptedIn():!this.has_opted_out_capturing())}clear_opt_in_out_capturing(){this.consent.reset(),this.cn()}_is_bot(){return kn?x3(kn,this.config.custom_blocked_useragents):void 0}Ji(){Be&&(Be.visibilityState==="visible"?this.Oi||(this.Oi=!0,this.capture(Wc,{title:Be.title},{send_instantly:!0}),this.Pi&&(Be.removeEventListener(Vf,this.Pi),this.Pi=null)):this.Pi||(this.Pi=this.Ji.bind(this),Yo(Be,Vf,this.Pi)))}debug(t){t===!1?(he?.console.log("You've disabled debug mode."),this.set_config({debug:!1})):(he?.console.log("You're now in debug mode. All calls to PostHog will be logged in your console.\nYou can disable this with `posthog.debug(false)`."),this.set_config({debug:!0}))}Fr(){var t,o,a,n,i,l,c=this.ji||{};return"advanced_disable_flags"in c?!!c.advanced_disable_flags:this.config.advanced_disable_flags!==!1?!!this.config.advanced_disable_flags:this.config.advanced_disable_decide===!0?(ze.warn("Config field 'advanced_disable_decide' is deprecated. Please use 'advanced_disable_flags' instead. The old field will be removed in a future major version."),!0):(a="advanced_disable_decide",n=ze,i=(o="advanced_disable_flags")in(t=c)&&!Pt(t[o]),l=a in t&&!Pt(t[a]),i?t[o]:!!l&&(n&&n.warn("Config field '"+a+"' is deprecated. Please use '"+o+"' instead. The old field will be removed in a future major version."),t[a]))}rn(t){if(Pt(this.config.before_send))return t;var o=It(this.config.before_send)?this.config.before_send:[this.config.before_send],a=t;for(var n of o){if(a=n(a),Pt(a)){var i="Event '"+t.event+"' was rejected in beforeSend function";return nne(t.event)?ze.warn(i+". This can cause unexpected behavior."):ze.info(i),null}a.properties&&!Xc(a.properties)||ze.warn("Event '"+t.event+"' has no properties after beforeSend function, this is likely an error.")}return a}getPageViewId(){var t;return(t=this.pageViewManager.dr)==null?void 0:t.pageViewId}captureTraceFeedback(t,o){this.capture("$ai_feedback",{$ai_trace_id:String(t),$ai_feedback_text:o})}captureTraceMetric(t,o,a){this.capture("$ai_metric",{$ai_trace_id:String(t),$ai_metric_name:o,$ai_metric_value:String(a)})}Bi(t){var o=$r(t)&&!t,a=_o.R()&&_o.O("ph_debug")==="true";return!o&&(!!a||t)}}function CO(e){return e instanceof Element&&(e.id===n3||!(e.closest==null||!e.closest(".toolbar-global-fade-container")))}function zv(e){return!!e&&e.nodeType===1}function Ds(e,t){return!!e&&!!e.tagName&&e.tagName.toLowerCase()===t.toLowerCase()}function D3(e){return!!e&&e.nodeType===3}function O3(e){return!!e&&e.nodeType===11}function WC(e){return e?Bv(e).split(/\s+/):[]}function PO(e){var t=he?.location.href;return!!(t&&e&&e.some((o=>t.match(o))))}function Xf(e){var t="";switch(typeof e.className){case"string":t=e.className;break;case"object":t=(e.className&&"baseVal"in e.className?e.className.baseVal:null)||e.getAttribute("class")||"";break;default:t=""}return WC(t)}function I3(e){return Pt(e)?null:Bv(e).split(/(\s+)/).filter((t=>gp(t))).join("").replace(/[\r\n]/g," ").replace(/[ ]+/g," ").substring(0,255)}function Mp(e){var t="";return Hw(e)&&!L3(e)&&e.childNodes&&e.childNodes.length&&ho(e.childNodes,(function(o){var a;D3(o)&&o.textContent&&(t+=(a=I3(o.textContent))!==null&&a!==void 0?a:"")})),Bv(t)}function xO(e){return Ve(e.target)?e.srcElement||null:(t=e.target)!=null&&t.shadowRoot?e.composedPath()[0]||null:e.target||null;var t}Yn.__defaultExtensionClasses={},Yn.dn={trace:jc=()=>{},debug:jc,info:jc,warn:jc,error:jc,fatal:jc},(function(e,t){for(var o=0;t.length>o;o++)e.prototype[t[o]]=$ne(e.prototype[t[o]])})(Yn,["identify"]);var YC=["a","button","form","input","select","textarea","label"];function kO(e,t){if(Ve(t))return!0;var o,a=function(i){if(t.some((l=>i.matches(l))))return{v:!0}};for(var n of e)if(o=a(n))return o.v;return!1}function M3(e){var t=e.parentNode;return!(!t||!zv(t))&&t}var Are=["next","previous","prev",">","<"],EO=[".ph-no-rageclick",".ph-no-capture"],Vw=e=>!e||Ds(e,"html")||!zv(e),RO=(e,t)=>{if(!he||Vw(e))return{parentIsUsefulElement:!1,targetElementList:[]};for(var o=!1,a=[e],n=e;n.parentNode&&!Ds(n,"body");)if(O3(n.parentNode))a.push(n.parentNode.host),n=n.parentNode.host;else{var i=M3(n);if(!i)break;if(t||YC.indexOf(i.tagName.toLowerCase())>-1)o=!0;else{var l=he.getComputedStyle(i);l&&l.getPropertyValue("cursor")==="pointer"&&(o=!0)}a.push(i),n=i}return{parentIsUsefulElement:o,targetElementList:a}};function Hw(e){for(var t=e;t.parentNode&&!Ds(t,"body");t=t.parentNode){var o=Xf(t);if(Ct(o,"ph-sensitive")||Ct(o,"ph-no-capture"))return!1}if(Ct(Xf(e),"ph-include"))return!0;var a=e.type||"";if(Co(a))switch(a.toLowerCase()){case"hidden":case"password":return!1}var n=e.name||e.id||"";return!Co(n)||!/^cc|cardnum|ccnum|creditcard|csc|cvc|cvv|exp|pass|pwd|routing|seccode|securitycode|securitynum|socialsec|socsec|ssn/i.test(n.replace(/[^a-zA-Z0-9]/g,""))}function L3(e){return!!(Ds(e,"input")&&!["button","checkbox","submit","reset"].includes(e.type)||Ds(e,"select")||Ds(e,"textarea")||e.getAttribute("contenteditable")==="true")}var N3="(4[0-9]{12}(?:[0-9]{3})?)|(5[1-5][0-9]{14})|(6(?:011|5[0-9]{2})[0-9]{12})|(3[47][0-9]{13})|(3(?:0[0-5]|[68][0-9])[0-9]{11})|((?:2131|1800|35[0-9]{3})[0-9]{11})",Dre=new RegExp("^(?:"+N3+")$"),Ore=new RegExp(N3),F3="\\d{3}-?\\d{2}-?\\d{4}",Ire=new RegExp("^("+F3+")$"),Mre=new RegExp("("+F3+")");function gp(e,t){return t===void 0&&(t=!0),!(Pt(e)||Co(e)&&(e=Bv(e),(t?Dre:Ore).test((e||"").replace(/[- ]/g,""))||(t?Ire:Mre).test(e)))}function AO(e){var t=Mp(e);return gp(t=(t+" "+B3(e)).trim())?t:""}function B3(e){var t="";return e&&e.childNodes&&e.childNodes.length&&ho(e.childNodes,(function(o){var a;if(o&&((a=o.tagName)==null?void 0:a.toLowerCase())==="span")try{var n=Mp(o);t=(t+" "+n).trim(),o.childNodes&&o.childNodes.length&&(t=(t+" "+B3(o)).trim())}catch(i){ze.error("[AutoCapture]",i)}})),t}function DO(e){return e.replace(/"|\\"/g,'\\"')}function Lre(e){var t=e.attr__class;return t?It(t)?t:WC(t):void 0}class OO{constructor(t){this.disabled=t===!1;var o=No(t)?t:{};this.thresholdPx=o.threshold_px||30,this.timeoutMs=o.timeout_ms||1e3,this.clickCount=o.click_count||3,this.clicks=[]}isRageClick(t,o,a){if(this.disabled)return!1;var n=this.clicks[this.clicks.length-1];if(n&&Math.abs(t-n.x)+Math.abs(o-n.y)<this.thresholdPx&&this.timeoutMs>a-n.timestamp){if(this.clicks.push({x:t,y:o,timestamp:a}),this.clicks.length===this.clickCount)return!0}else this.clicks=[{x:t,y:o,timestamp:a}];return!1}}var A0="$copy_autocapture",IO=So("[AutoCapture]");function D0(e,t){return t.length>e?t.slice(0,e)+"...":t}function Nre(e){if(e.previousElementSibling)return e.previousElementSibling;var t=e;do t=t.previousSibling;while(t&&!zv(t));return t}function Fre(e,t){for(var o,a,{e:n,maskAllElementAttributes:i,maskAllText:l,elementAttributeIgnoreList:c,elementsChainAsString:u}=t,p=[e],g=e;g.parentNode&&!Ds(g,"body");)O3(g.parentNode)?(p.push(g.parentNode.host),g=g.parentNode.host):(p.push(g.parentNode),g=g.parentNode);var m,f,v=[],b={},S=!1,C=!1;if(ho(p,(k=>{var R=Hw(k);k.tagName.toLowerCase()==="a"&&(S=k.getAttribute("href"),S=R&&S&&gp(S)&&S),Ct(Xf(k),"ph-no-capture")&&(C=!0),v.push((function(O,N,$,F){var z=O.tagName.toLowerCase(),j={tag_name:z};YC.indexOf(z)>-1&&!$&&(j.$el_text=z.toLowerCase()==="a"||z.toLowerCase()==="button"?D0(1024,AO(O)):D0(1024,Mp(O)));var K=Xf(O);K.length>0&&(j.classes=K.filter((function(te){return te!==""}))),ho(O.attributes,(function(te){var le;if((!L3(O)||["name","id","class","aria-label"].indexOf(te.name)!==-1)&&(F==null||!F.includes(te.name))&&!N&&gp(te.value)&&(!Co(le=te.name)||le.substring(0,10)!=="_ngcontent"&&le.substring(0,7)!=="_nghost")){var Q=te.value;te.name==="class"&&(Q=WC(Q).join(" ")),j["attr__"+te.name]=D0(1024,Q)}}));for(var ne=1,H=1,Z=O;Z=Nre(Z);)ne++,Z.tagName===O.tagName&&H++;return j.nth_child=ne,j.nth_of_type=H,j})(k,i,l,c));var D=(function(O){if(!Hw(O))return{};var N={};return ho(O.attributes,(function($){if($.name&&$.name.indexOf("data-ph-capture-attribute")===0){var F=$.name.replace("data-ph-capture-attribute-",""),z=$.value;F&&z&&gp(z)&&(N[F]=z)}})),N})(k);Do(b,D)})),C)return{props:{},explicitNoCapture:C};if(l||(v[0].$el_text=e.tagName.toLowerCase()==="a"||e.tagName.toLowerCase()==="button"?AO(e):Mp(e)),S){var w,_;v[0].attr__href=S;var E=(w=Kf(S))==null?void 0:w.host,x=he==null||(_=he.location)==null?void 0:_.host;E&&x&&E!==x&&(m=S)}return{props:Do({$event_type:n.type,$ce_version:1},u?{}:{$elements:v},{$elements_chain:(f=v,(function(k){return k.map((R=>{var D,O,N="";if(R.tag_name&&(N+=R.tag_name),R.attr_class)for(var $ of(R.attr_class.sort(),R.attr_class))N+="."+$.replace(/"/g,"");var F=Oe({},R.text?{text:R.text}:{},{"nth-child":(D=R.nth_child)!==null&&D!==void 0?D:0,"nth-of-type":(O=R.nth_of_type)!==null&&O!==void 0?O:0},R.href?{href:R.href}:{},R.attr_id?{attr_id:R.attr_id}:{},R.attributes),z={};return nf(F).sort(((j,K)=>{var[ne]=j,[H]=K;return ne.localeCompare(H)})).forEach((j=>{var[K,ne]=j;return z[DO(K.toString())]=DO(ne.toString())})),(N+=":")+nf(z).map((j=>{var[K,ne]=j;return K+'="'+ne+'"'})).join("")})).join(";")})((function(k){return k.map((R=>{var D,O,N={text:(D=R.$el_text)==null?void 0:D.slice(0,400),tag_name:R.tag_name,href:(O=R.attr__href)==null?void 0:O.slice(0,2048),attr_class:Lre(R),attr_id:R.attr__id,nth_child:R.nth_child,nth_of_type:R.nth_of_type,attributes:{}};return nf(R).filter(($=>{var[F]=$;return F.indexOf("attr__")===0})).forEach(($=>{var[F,z]=$;return N.attributes[F]=z})),N}))})(f)))},(o=v[0])!=null&&o.$el_text?{$el_text:(a=v[0])==null?void 0:a.$el_text}:{},m&&n.type==="click"?{$external_click_url:m}:{},b)}}var qu=So("[ExceptionAutocapture]");function MO(e,t,o){try{if(!(t in e))return()=>{};var a=e[t],n=o(a);return Ci(n)&&(n.prototype=n.prototype||{},Object.defineProperties(n,{__posthog_wrapped__:{enumerable:!1,value:!0}})),e[t]=n,()=>{e[t]=a}}catch{return()=>{}}}var Bre=So("[TracingHeaders]"),ps=So("[Web Vitals]"),LO=9e5,NO="disabled",FO="lazy_loading",Vu="awaiting_config",Bh="missing_config";So("[SessionRecording]"),So("[SessionRecording]");var Gw="[SessionRecording]",ms=So(Gw),jre=So("[Heatmaps]");function BO(e){return No(e)&&"clientX"in e&&"clientY"in e&&Xn(e.clientX)&&Xn(e.clientY)}var jO=So("[Product Tours]"),Ure=["$set_once","$set"],gs=So("[SiteApps]"),UO="Error while initializing PostHog app with config id ";function Uc(e,t,o){if(Pt(e))return!1;switch(o){case"exact":return e===t;case"contains":var a=t.replace(/[.*+?^${}()|[\]\\]/g,"\\$&").replace(/_/g,".").replace(/%/g,".*");return new RegExp(a,"i").test(e);case"regex":try{return new RegExp(t).test(e)}catch{return!1}default:return!1}}class zre{constructor(t){this.vn=new KC,this.fn=(o,a)=>this.pn(o,a)&&this.gn(o,a)&&this.mn(o,a)&&this.yn(o,a),this.pn=(o,a)=>a==null||!a.event||o?.event===a?.event,this._instance=t,this.bn=new Set,this._n=new Set}init(){var t,o;Ve((t=this._instance)==null?void 0:t._addCaptureHook)||(o=this._instance)==null||o._addCaptureHook(((a,n)=>{this.on(a,n)}))}register(t){var o,a;if(!Ve((o=this._instance)==null?void 0:o._addCaptureHook)&&(t.forEach((l=>{var c,u;(c=this._n)==null||c.add(l),(u=l.steps)==null||u.forEach((p=>{var g;(g=this.bn)==null||g.add(p?.event||"")}))})),(a=this._instance)!=null&&a.autocapture)){var n,i=new Set;t.forEach((l=>{var c;(c=l.steps)==null||c.forEach((u=>{u!=null&&u.selector&&i.add(u?.selector)}))})),(n=this._instance)==null||n.autocapture.setElementSelectors(i)}}on(t,o){var a;o!=null&&t.length!=0&&(this.bn.has(t)||this.bn.has(o?.event))&&this._n&&((a=this._n)==null?void 0:a.size)>0&&this._n.forEach((n=>{this.wn(o,n)&&this.vn.emit("actionCaptured",n.name)}))}In(t){this.onAction("actionCaptured",(o=>t(o)))}wn(t,o){if(o?.steps==null)return!1;for(var a of o.steps)if(this.fn(t,a))return!0;return!1}onAction(t,o){return this.vn.on(t,o)}gn(t,o){if(o!=null&&o.url){var a,n=t==null||(a=t.properties)==null?void 0:a.$current_url;if(!n||typeof n!="string"||!Uc(n,o.url,o.url_matching||"contains"))return!1}return!0}mn(t,o){return!!this.Cn(t,o)&&!!this.Sn(t,o)&&!!this.xn(t,o)}Cn(t,o){var a;if(o==null||!o.href)return!0;var n=this.kn(t);if(n.length>0)return n.some((c=>Uc(c.href,o.href,o.href_matching||"exact")));var i,l=(t==null||(a=t.properties)==null?void 0:a.$elements_chain)||"";return!!l&&Uc((i=l.match(/(?::|")href="(.*?)"/))?i[1]:"",o.href,o.href_matching||"exact")}Sn(t,o){var a;if(o==null||!o.text)return!0;var n=this.kn(t);if(n.length>0)return n.some((p=>Uc(p.text,o.text,o.text_matching||"exact")||Uc(p.$el_text,o.text,o.text_matching||"exact")));var i,l,c,u=(t==null||(a=t.properties)==null?void 0:a.$elements_chain)||"";return!!u&&(i=(function(p){for(var g,m=[],f=/(?::|")text="(.*?)"/g;!Pt(g=f.exec(p));)m.includes(g[1])||m.push(g[1]);return m})(u),l=o.text,c=o.text_matching||"exact",i.some((p=>Uc(p,l,c))))}xn(t,o){var a,n;if(o==null||!o.selector)return!0;var i=t==null||(a=t.properties)==null?void 0:a.$element_selectors;if(i!=null&&i.includes(o.selector))return!0;var l=(t==null||(n=t.properties)==null?void 0:n.$elements_chain)||"";if(o.selector_regex&&l)try{return new RegExp(o.selector_regex).test(l)}catch{return!1}return!1}kn(t){var o;return(t==null||(o=t.properties)==null?void 0:o.$elements)==null?[]:t?.properties.$elements}yn(t,o){return o==null||!o.properties||o.properties.length===0||E3(o.properties.reduce(((a,n)=>{var i=It(n.value)?n.value.map(String):n.value!=null?[String(n.value)]:[];return a[n.key]={values:i,operator:n.operator||"exact"},a}),{}),t?.properties)}}class $re{constructor(t){this._instance=t,this.Tn=new Map,this.An=new Map,this.En=new Map}Rn(t,o){return!!t&&E3(t.propertyFilters,o?.properties)}Nn(t,o){var a=new Map;return t.forEach((n=>{var i;(i=n.conditions)==null||(i=i[o])==null||(i=i.values)==null||i.forEach((l=>{if(l!=null&&l.name){var c=a.get(l.name)||[];c.push(n.id),a.set(l.name,c)}}))})),a}Mn(t,o,a){var n=(a===Bu.Activation?this.Tn:this.An).get(t),i=[];return this.Fn((l=>{i=l.filter((c=>n?.includes(c.id)))})),i.filter((l=>{var c,u=(c=l.conditions)==null||(c=c[a])==null||(c=c.values)==null?void 0:c.find((p=>p.name===t));return this.Rn(u,o)}))}register(t){var o;Ve((o=this._instance)==null?void 0:o._addCaptureHook)||(this.On(t),this.Pn(t))}Pn(t){var o=t.filter((a=>{var n,i;return((n=a.conditions)==null?void 0:n.actions)&&((i=a.conditions)==null||(i=i.actions)==null||(i=i.values)==null?void 0:i.length)>0}));o.length!==0&&(this.Ln==null&&(this.Ln=new zre(this._instance),this.Ln.init(),this.Ln.In((a=>{this.onAction(a)}))),o.forEach((a=>{var n,i,l,c,u;a.conditions&&(n=a.conditions)!=null&&n.actions&&(i=a.conditions)!=null&&(i=i.actions)!=null&&i.values&&((l=a.conditions)==null||(l=l.actions)==null||(l=l.values)==null?void 0:l.length)>0&&((c=this.Ln)==null||c.register(a.conditions.actions.values),(u=a.conditions)==null||(u=u.actions)==null||(u=u.values)==null||u.forEach((p=>{if(p&&p.name){var g=this.En.get(p.name);g&&g.push(a.id),this.En.set(p.name,g||[a.id])}})))})))}On(t){var o,a=t.filter((i=>{var l,c;return((l=i.conditions)==null?void 0:l.events)&&((c=i.conditions)==null||(c=c.events)==null||(c=c.values)==null?void 0:c.length)>0})),n=t.filter((i=>{var l,c;return((l=i.conditions)==null?void 0:l.cancelEvents)&&((c=i.conditions)==null||(c=c.cancelEvents)==null||(c=c.values)==null?void 0:c.length)>0}));a.length===0&&n.length===0||((o=this._instance)==null||o._addCaptureHook(((i,l)=>{this.onEvent(i,l)})),this.Tn=this.Nn(t,Bu.Activation),this.An=this.Nn(t,Bu.Cancellation))}onEvent(t,o){var a,n=this.le(),i=this.Dn(),l=this.Bn(),c=((a=this._instance)==null||(a=a.persistence)==null?void 0:a.props[i])||[];if(l===t&&o&&c.length>0){var u,p;n.info("event matched, removing item from activated items",{event:t,eventPayload:o,existingActivatedItems:c});var g=(o==null||(u=o.properties)==null?void 0:u.$survey_id)||(o==null||(p=o.properties)==null?void 0:p.$product_tour_id);if(g){var m=c.indexOf(g);0>m||(c.splice(m,1),this.jn(c))}}else{if(this.An.has(t)){var f=this.Mn(t,o,Bu.Cancellation);f.length>0&&(n.info("cancel event matched, cancelling items",{event:t,itemsToCancel:f.map((b=>b.id))}),f.forEach((b=>{var S=c.indexOf(b.id);0>S||c.splice(S,1),this.$n(b.id)})),this.jn(c))}if(this.Tn.has(t)){n.info("event name matched",{event:t,eventPayload:o,items:this.Tn.get(t)});var v=this.Mn(t,o,Bu.Activation);this.jn(c.concat(v.map((b=>b.id))||[]))}}}onAction(t){var o,a=this.Dn(),n=((o=this._instance)==null||(o=o.persistence)==null?void 0:o.props[a])||[];this.En.has(t)&&this.jn(n.concat(this.En.get(t)||[]))}jn(t){var o=this.le(),a=[...new Set(t)].filter((n=>!this.qn(n)));o.info("updating activated items",{activatedItems:a}),this.Zn(a)}getActivatedIds(){var t,o=this.Dn();return((t=this._instance)==null||(t=t.persistence)==null?void 0:t.props[o])||[]}getEventToItemsMap(){return this.Tn}Vn(){return this.Ln}}class qre extends $re{constructor(t){super(t)}Dn(){return Ew}Bn(){return ip.SHOWN}Fn(t){var o;(o=this._instance)==null||o.getSurveys(t)}$n(t){var o;(o=this._instance)==null||o.cancelPendingSurvey(t)}le(){return eo}Zn(t){var o;(o=this._instance)==null||(o=o.persistence)==null||o.register({[Ew]:t})}qn(){return!1}getSurveys(){return this.getActivatedIds()}getEventToSurveys(){return this.getEventToItemsMap()}}var O0="SDK is not enabled or survey functionality is not yet loaded",zO="Disabled. Not loading surveys.",Vre=he!=null&&he.location?Yf(he.location.hash,"__posthog")||Yf(location.hash,"state"):null,$O="_postHogToolbarParams",qO=So("[Toolbar]"),Va=So("[FeatureFlags]"),pl=So("[FeatureFlags]",{debugEnabled:!0}),I0=`" failed. Feature flags didn't load in time.`,VO=e=>{for(var t={},o=0;e.length>o;o++)t[e[o]]=!0;return t},HO=e=>{var t={};for(var[o,a]of nf(e||{}))a&&(t[o]=a);return t},wi=So("[Error tracking]"),GO="Refusing to render web experiment since the viewer is a likely bot",Hre={icontains:(e,t)=>!!he&&t.href.toLowerCase().indexOf(e.toLowerCase())>-1,not_icontains:(e,t)=>!!he&&t.href.toLowerCase().indexOf(e.toLowerCase())===-1,regex:(e,t)=>!!he&&Jf(t.href,e),not_regex:(e,t)=>!!he&&!Jf(t.href,e),exact:(e,t)=>t.href===e,is_not:(e,t)=>t.href!==e};class Ia{get Bt(){return this._instance.config}constructor(t){var o=this;this.getWebExperimentsAndEvaluateDisplayLogic=function(a){a===void 0&&(a=!1),o.getWebExperiments((n=>{Ia.Hn("retrieved web experiments from the server"),o.zn=new Map,n.forEach((i=>{if(i.feature_flag_key){var l;o.zn&&(Ia.Hn("setting flag key ",i.feature_flag_key," to web experiment ",i),(l=o.zn)==null||l.set(i.feature_flag_key,i));var c=o._instance.getFeatureFlag(i.feature_flag_key);Co(c)&&i.variants[c]&&o.Un(i.name,c,i.variants[c].transforms)}else if(i.variants)for(var u in i.variants){var p=i.variants[u];Ia.Yn(p)&&o.Un(i.name,u,p.transforms)}}))}),a)},this._instance=t,this._instance.onFeatureFlags((a=>{this.onFeatureFlags(a)}))}initialize(){}onFeatureFlags(t){if(this._is_bot())Ia.Hn(GO);else if(!this.Bt.disable_web_experiments){if(Pt(this.zn))return this.zn=new Map,this.loadIfEnabled(),void this.previewWebExperiment();Ia.Hn("applying feature flags",t),t.forEach((o=>{var a;if(this.zn&&(a=this.zn)!=null&&a.has(o)){var n,i=this._instance.getFeatureFlag(o),l=(n=this.zn)==null?void 0:n.get(o);i&&l!=null&&l.variants[i]&&this.Un(l.name,i,l.variants[i].transforms)}}))}}previewWebExperiment(){var t=Ia.getWindowLocation();if(t!=null&&t.search){var o=Wf(t?.search,"__experiment_id"),a=Wf(t?.search,"__experiment_variant");o&&a&&(Ia.Hn("previewing web experiments "+o+" && "+a),this.getWebExperiments((n=>{this.Gn(parseInt(o),a,n)}),!1,!0))}}loadIfEnabled(){this.Bt.disable_web_experiments||this.getWebExperimentsAndEvaluateDisplayLogic()}getWebExperiments(t,o,a){if(this.Bt.disable_web_experiments&&!a)return t([]);var n=this._instance.get_property("$web_experiments");if(n&&!o)return t(n);this._instance._send_request({url:this._instance.requestRouter.endpointFor("api","/api/web_experiments/?token="+this.Bt.token),method:"GET",callback:i=>t(i.statusCode===200&&i.json&&i.json.experiments||[])})}Gn(t,o,a){var n=a.filter((i=>i.id===t));n&&n.length>0&&(Ia.Hn("Previewing web experiment ["+n[0].name+"] with variant ["+o+"]"),this.Un(n[0].name,o,n[0].variants[o].transforms))}static Yn(t){return!Pt(t.conditions)&&Ia.Wn(t)&&Ia.Xn(t)}static Wn(t){var o;if(Pt(t.conditions)||Pt((o=t.conditions)==null?void 0:o.url))return!0;var a,n,i,l=Ia.getWindowLocation();return!!l&&((a=t.conditions)==null||!a.url||Hre[(n=(i=t.conditions)==null?void 0:i.urlMatchType)!==null&&n!==void 0?n:"icontains"](t.conditions.url,l))}static getWindowLocation(){return he?.location}static Xn(t){var o;if(Pt(t.conditions)||Pt((o=t.conditions)==null?void 0:o.utm))return!0;var a=p3();if(a.utm_source){var n,i,l,c,u,p,g,m,f=(n=t.conditions)==null||(n=n.utm)==null||!n.utm_campaign||((i=t.conditions)==null||(i=i.utm)==null?void 0:i.utm_campaign)==a.utm_campaign,v=(l=t.conditions)==null||(l=l.utm)==null||!l.utm_source||((c=t.conditions)==null||(c=c.utm)==null?void 0:c.utm_source)==a.utm_source,b=(u=t.conditions)==null||(u=u.utm)==null||!u.utm_medium||((p=t.conditions)==null||(p=p.utm)==null?void 0:p.utm_medium)==a.utm_medium,S=(g=t.conditions)==null||(g=g.utm)==null||!g.utm_term||((m=t.conditions)==null||(m=m.utm)==null?void 0:m.utm_term)==a.utm_term;return f&&b&&S&&v}return!1}static Hn(t){for(var o=arguments.length,a=new Array(o>1?o-1:0),n=1;o>n;n++)a[n-1]=arguments[n];ze.info("[WebExperiments] "+t,a)}Un(t,o,a){this._is_bot()?Ia.Hn(GO):o!=="control"?a.forEach((n=>{if(n.selector){var i;Ia.Hn("applying transform of variant "+o+" for experiment "+t+" ",n);var l=(i=document)==null?void 0:i.querySelectorAll(n.selector);l?.forEach((c=>{var u=c;n.html&&(u.innerHTML=n.html),n.css&&u.setAttribute("style",n.css)}))}})):Ia.Hn("Control variants leave the page unmodified.")}_is_bot(){return kn&&this._instance?x3(kn,this.Bt.custom_blocked_useragents):void 0}}var Vn=So("[Conversations]"),ml="Conversations not available yet.",$v={featureFlags:class{constructor(e){this.Jn=!1,this.Kn=!1,this.Qn=!1,this.es=!1,this.ts=!1,this.rs=!1,this.ns=!1,this.ss=!1,this._instance=e,this.featureFlagEventHandlers=[]}get Bt(){return this._instance.config}get ni(){return this._instance.persistence}os(e){return this._instance.get_property(e)}ls(){var e,t;return(e=(t=this.ni)==null?void 0:t.wr(this.Bt.feature_flag_cache_ttl_ms))!==null&&e!==void 0&&e}us(){return!!this.ls()&&(this.ss||this.Qn||(this.ss=!0,Va.warn("Feature flag cache is stale, triggering refresh..."),this.reloadFeatureFlags()),!0)}hs(){var e,t=(e=this.Bt.evaluation_contexts)!==null&&e!==void 0?e:this.Bt.evaluation_environments;return!this.Bt.evaluation_environments||this.Bt.evaluation_contexts||this.ns||(Va.warn("evaluation_environments is deprecated. Use evaluation_contexts instead. evaluation_environments will be removed in a future version."),this.ns=!0),t!=null&&t.length?t.filter((o=>{var a=o&&typeof o=="string"&&o.trim().length>0;return a||Va.error("Invalid evaluation context found:",o,"Expected non-empty string"),a})):[]}cs(){return this.hs().length>0}initialize(){var e,t,{config:o}=this._instance,a=(e=(t=o.bootstrap)==null?void 0:t.featureFlags)!==null&&e!==void 0?e:{};if(Object.keys(a).length){var n,i,l=(n=(i=o.bootstrap)==null?void 0:i.featureFlagPayloads)!==null&&n!==void 0?n:{},c=Object.keys(a).filter((p=>!!a[p])).reduce(((p,g)=>(p[g]=a[g]||!1,p)),{}),u=Object.keys(l).filter((p=>c[p])).reduce(((p,g)=>(l[g]&&(p[g]=l[g]),p)),{});this.receivedFeatureFlags({featureFlags:c,featureFlagPayloads:u})}}updateFlags(e,t,o){var a=o!=null&&o.merge?this.getFlagVariants():{},n=o!=null&&o.merge?this.getFlagPayloads():{},i=Oe({},a,e),l=Oe({},n,t),c={};for(var[u,p]of Object.entries(i)){var g=typeof p=="string";c[u]={key:u,enabled:!!g||!!p,variant:g?p:void 0,reason:void 0,metadata:Ve(l?.[u])?void 0:{id:0,version:void 0,description:void 0,payload:l[u]}}}this.receivedFeatureFlags({flags:c})}get hasLoadedFlags(){return this.Kn}getFlags(){return Object.keys(this.getFlagVariants())}getFlagsWithDetails(){var e=this.os(Cw),t=this.os(_i),o=this.os(Kc);if(!o&&!t)return e||{};var a=Do({},e||{}),n=[...new Set([...Object.keys(o||{}),...Object.keys(t||{})])];for(var i of n){var l,c,u=a[i],p=t?.[i],g=Ve(p)?(l=u?.enabled)!==null&&l!==void 0&&l:!!p,m=Ve(p)?u.variant:typeof p=="string"?p:void 0,f=o?.[i],v=Oe({},u,{enabled:g,variant:g?m??u?.variant:void 0});g!==u?.enabled&&(v.original_enabled=u?.enabled),m!==u?.variant&&(v.original_variant=u?.variant),f&&(v.metadata=Oe({},u?.metadata,{payload:f,original_payload:u==null||(c=u.metadata)==null?void 0:c.payload})),a[i]=v}return this.Jn||(Va.warn(" Overriding feature flag details!",{flagDetails:e,overriddenPayloads:o,finalDetails:a}),this.Jn=!0),a}getFlagVariants(){var e=this.os(ed),t=this.os(_i);if(!t)return e||{};for(var o=Do({},e),a=Object.keys(t),n=0;a.length>n;n++)o[a[n]]=t[a[n]];return this.Jn||(Va.warn(" Overriding feature flags!",{enabledFlags:e,overriddenFlags:t,finalFlags:o}),this.Jn=!0),o}getFlagPayloads(){var e=this.os(Pw),t=this.os(Kc);if(!t)return e||{};for(var o=Do({},e||{}),a=Object.keys(t),n=0;a.length>n;n++)o[a[n]]=t[a[n]];return this.Jn||(Va.warn(" Overriding feature flag payloads!",{flagPayloads:e,overriddenPayloads:t,finalPayloads:o}),this.Jn=!0),o}reloadFeatureFlags(){this.es||this.Bt.advanced_disable_feature_flags||this.ds||(this._instance.Fi.emit("featureFlagsReloading",!0),this.ds=setTimeout((()=>{this.vs()}),5))}fs(){clearTimeout(this.ds),this.ds=void 0}ensureFlagsLoaded(){this.Kn||this.Qn||this.ds||this.reloadFeatureFlags()}setAnonymousDistinctId(e){this.$anon_distinct_id=e}setReloadingPaused(e){this.es=e}vs(e){var t;if(this.fs(),!this._instance.Fr())if(this.Qn)this.ts=!0;else{var o=this.Bt.token,a=this.os(jf),n={token:o,distinct_id:this._instance.get_distinct_id(),groups:this._instance.getGroups(),$anon_distinct_id:this.$anon_distinct_id,person_properties:Oe({},((t=this.ni)==null?void 0:t.get_initial_props())||{},this.os(rp)||{}),group_properties:this.os(vl),timezone:b3()};Mi(a)||Ve(a)||(n.$device_id=a),(e!=null&&e.disableFlags||this.Bt.advanced_disable_feature_flags)&&(n.disable_flags=!0),this.cs()&&(n.evaluation_contexts=this.hs());var i=this._instance.requestRouter.endpointFor("flags","/flags/?v=2"+(this.Bt.advanced_only_evaluate_survey_feature_flags?"&only_evaluate_survey_feature_flags=true":""));this.Qn=!0,this._instance._send_request({method:"POST",url:i,data:n,compression:this.Bt.disable_compression?void 0:Fr.Base64,timeout:this.Bt.feature_flag_request_timeout_ms,callback:l=>{var c,u,p,g=!0;if(l.statusCode===200&&(this.ts||(this.$anon_distinct_id=void 0),g=!1),this.Qn=!1,!n.disable_flags||this.ts){this.rs=!g;var m=[];l.error?l.error instanceof Error?m.push(l.error.name==="AbortError"?"timeout":"connection_error"):m.push("unknown_error"):l.statusCode!==200&&m.push("api_error_"+l.statusCode),(c=l.json)!=null&&c.errorsWhileComputingFlags&&m.push("errors_while_computing_flags");var f,v=!((u=l.json)==null||(u=u.quotaLimited)==null||!u.includes("feature_flags"));v&&m.push("quota_limited"),(p=this.ni)==null||p.register({[Aw]:m}),v?Va.warn("You have hit your feature flags quota limit, and will not be able to load feature flags until the quota is reset. Please visit https://posthog.com/docs/billing/limits-alerts to learn more."):(n.disable_flags||this.receivedFeatureFlags((f=l.json)!==null&&f!==void 0?f:{},g,{partialResponse:!!this.Bt.advanced_only_evaluate_survey_feature_flags}),this.ts&&(this.ts=!1,this.vs()))}}})}}getFeatureFlag(e,t){var o;if(t===void 0&&(t={}),!t.fresh||this.rs)if(this.Kn||this.getFlags()&&this.getFlags().length>0){if(!this.us()){var a=this.getFeatureFlagResult(e,t);return(o=a?.variant)!==null&&o!==void 0?o:a?.enabled}}else Va.warn('getFeatureFlag for key "'+e+I0)}getFeatureFlagDetails(e){return this.getFlagsWithDetails()[e]}getFeatureFlagPayload(e){var t=this.getFeatureFlagResult(e,{send_event:!1});return t?.payload}getFeatureFlagResult(e,t){if(t===void 0&&(t={}),!t.fresh||this.rs)if(this.Kn||this.getFlags()&&this.getFlags().length>0){if(!this.us()){var o=this.getFlagVariants(),a=e in o,n=o[e],i=this.getFlagPayloads()[e],l=String(n),c=this.os(xw)||void 0,u=this.os(zf)||void 0,p=this.os(up)||{};if(this.Bt.advanced_feature_flags_dedup_per_session){var g,m=this._instance.get_session_id(),f=this.os(Rw);m&&m!==f&&(p={},(g=this.ni)==null||g.register({[up]:p,[Rw]:m}))}if((t.send_event||!("send_event"in t))&&(!(e in p)||!p[e].includes(l))){var v,b,S,C,w,_,E,x,k,R;It(p[e])?p[e].push(l):p[e]=[l],(v=this.ni)==null||v.register({[up]:p});var D=this.getFeatureFlagDetails(e),O=[...(b=this.os(Aw))!==null&&b!==void 0?b:[]];Ve(n)&&O.push("flag_missing");var N={$feature_flag:e,$feature_flag_response:n,$feature_flag_payload:i||null,$feature_flag_request_id:c,$feature_flag_evaluated_at:u,$feature_flag_bootstrapped_response:((S=this.Bt.bootstrap)==null||(S=S.featureFlags)==null?void 0:S[e])||null,$feature_flag_bootstrapped_payload:((C=this.Bt.bootstrap)==null||(C=C.featureFlagPayloads)==null?void 0:C[e])||null,$used_bootstrap_value:!this.rs};Ve(D==null||(w=D.metadata)==null?void 0:w.version)||(N.$feature_flag_version=D.metadata.version);var $,F=(_=D==null||(E=D.reason)==null?void 0:E.description)!==null&&_!==void 0?_:D==null||(x=D.reason)==null?void 0:x.code;F&&(N.$feature_flag_reason=F),D!=null&&(k=D.metadata)!=null&&k.id&&(N.$feature_flag_id=D.metadata.id),Ve(D?.original_variant)&&Ve(D?.original_enabled)||(N.$feature_flag_original_response=Ve(D.original_variant)?D.original_enabled:D.original_variant),D!=null&&(R=D.metadata)!=null&&R.original_payload&&(N.$feature_flag_original_payload=D==null||($=D.metadata)==null?void 0:$.original_payload),O.length&&(N.$feature_flag_error=O.join(",")),this._instance.capture("$feature_flag_called",N)}if(a){var z=i;if(!Ve(i))try{z=JSON.parse(i)}catch{}return{key:e,enabled:!!n,variant:typeof n=="string"?n:void 0,payload:z}}}}else Va.warn('getFeatureFlagResult for key "'+e+I0)}getRemoteConfigPayload(e,t){var o=this.Bt.token,a={distinct_id:this._instance.get_distinct_id(),token:o};this.cs()&&(a.evaluation_contexts=this.hs()),this._instance._send_request({method:"POST",url:this._instance.requestRouter.endpointFor("flags","/flags/?v=2"),data:a,compression:this.Bt.disable_compression?void 0:Fr.Base64,timeout:this.Bt.feature_flag_request_timeout_ms,callback(n){var i,l=(i=n.json)==null?void 0:i.featureFlagPayloads;t(l?.[e]||void 0)}})}isFeatureEnabled(e,t){if(t===void 0&&(t={}),!t.fresh||this.rs){if(this.Kn||this.getFlags()&&this.getFlags().length>0){var o=this.getFeatureFlag(e,t);return Ve(o)?void 0:!!o}Va.warn('isFeatureEnabled for key "'+e+I0)}}addFeatureFlagsHandler(e){this.featureFlagEventHandlers.push(e)}removeFeatureFlagsHandler(e){this.featureFlagEventHandlers=this.featureFlagEventHandlers.filter((t=>t!==e))}receivedFeatureFlags(e,t,o){if(this.ni){this.Kn=!0;var a=this.getFlagVariants(),n=this.getFlagPayloads(),i=this.getFlagsWithDetails();(function(l,c,u,p,g,m){u===void 0&&(u={}),p===void 0&&(p={}),g===void 0&&(g={});var f=(O=>{var N=O.flags;return N?(O.featureFlags=Object.fromEntries(Object.keys(N).map(($=>{var F;return[$,(F=N[$].variant)!==null&&F!==void 0?F:N[$].enabled]}))),O.featureFlagPayloads=Object.fromEntries(Object.keys(N).filter(($=>N[$].enabled)).filter(($=>{var F;return(F=N[$].metadata)==null?void 0:F.payload})).map(($=>{var F;return[$,(F=N[$].metadata)==null?void 0:F.payload]})))):Va.warn("Using an older version of the feature flags endpoint. Please upgrade your PostHog server to the latest version"),O})(l),v=f.flags,b=f.featureFlags,S=f.featureFlagPayloads;if(b){var C=l.requestId,w=l.evaluatedAt;if(It(b)){Va.warn("v1 of the feature flags endpoint is deprecated. Please use the latest version.");var _={};if(b)for(var E=0;b.length>E;E++)_[b[E]]=!0;c&&c.register({[of]:b,[ed]:_})}else{var x=b,k=S,R=v;if(m!=null&&m.partialResponse)x=Oe({},u,x),k=Oe({},p,k),R=Oe({},g,R);else if(l.errorsWhileComputingFlags)if(v){var D=new Set(Object.keys(v).filter((O=>{var N;return!((N=v[O])!=null&&N.failed)})));x=Oe({},u,Object.fromEntries(Object.entries(x).filter((O=>{var[N]=O;return D.has(N)})))),k=Oe({},p,Object.fromEntries(Object.entries(k||{}).filter((O=>{var[N]=O;return D.has(N)})))),R=Oe({},g,Object.fromEntries(Object.entries(R||{}).filter((O=>{var[N]=O;return D.has(N)}))))}else x=Oe({},u,x),k=Oe({},p,k),R=Oe({},g,R);c&&c.register(Oe({[of]:Object.keys(HO(x)),[ed]:x||{},[Pw]:k||{},[Cw]:R||{}},C?{[xw]:C}:{},w?{[zf]:w}:{}))}}})(e,this.ni,a,n,i,o),t||(this.ss=!1),this.ps(t)}}override(e,t){t===void 0&&(t=!1),Va.warn("override is deprecated. Please use overrideFeatureFlags instead."),this.overrideFeatureFlags({flags:e,suppressWarning:t})}overrideFeatureFlags(e){if(!this._instance.__loaded||!this.ni)return Va.uninitializedWarning("posthog.featureFlags.overrideFeatureFlags");if(e===!1)return this.ni.unregister(_i),this.ni.unregister(Kc),this.ps(),pl.info("All overrides cleared");if(It(e)){var t=VO(e);return this.ni.register({[_i]:t}),this.ps(),pl.info("Flag overrides set",{flags:e})}if(e&&typeof e=="object"&&("flags"in e||"payloads"in e)){var o,a=e;if(this.Jn=!!((o=a.suppressWarning)!==null&&o!==void 0&&o),"flags"in a){if(a.flags===!1)this.ni.unregister(_i),pl.info("Flag overrides cleared");else if(a.flags){if(It(a.flags)){var n=VO(a.flags);this.ni.register({[_i]:n})}else this.ni.register({[_i]:a.flags});pl.info("Flag overrides set",{flags:a.flags})}}return"payloads"in a&&(a.payloads===!1?(this.ni.unregister(Kc),pl.info("Payload overrides cleared")):a.payloads&&(this.ni.register({[Kc]:a.payloads}),pl.info("Payload overrides set",{payloads:a.payloads}))),void this.ps()}if(e&&typeof e=="object")return this.ni.register({[_i]:e}),this.ps(),pl.info("Flag overrides set",{flags:e});Va.warn("Invalid overrideOptions provided to overrideFeatureFlags",{overrideOptions:e})}onFeatureFlags(e){if(this.addFeatureFlagsHandler(e),this.Kn){var{flags:t,flagVariants:o}=this.gs();e(t,o)}return()=>this.removeFeatureFlagsHandler(e)}updateEarlyAccessFeatureEnrollment(e,t,o){var a,n=(this.os(np)||[]).find((u=>u.flagKey===e)),i={["$feature_enrollment/"+e]:t},l={$feature_flag:e,$feature_enrollment:t,$set:i};n&&(l.$early_access_feature_name=n.name),o&&(l.$feature_enrollment_stage=o),this._instance.capture("$feature_enrollment_update",l),this.setPersonPropertiesForFlags(i,!1);var c=Oe({},this.getFlagVariants(),{[e]:t});(a=this.ni)==null||a.register({[of]:Object.keys(HO(c)),[ed]:c}),this.ps()}getEarlyAccessFeatures(e,t,o){t===void 0&&(t=!1);var a=this.os(np),n=o?"&"+o.map((i=>"stage="+i)).join("&"):"";if(a&&!t)return e(a);this._instance._send_request({url:this._instance.requestRouter.endpointFor("api","/api/early_access_features/?token="+this.Bt.token+n),method:"GET",callback:i=>{var l,c;if(i.json){var u=i.json.earlyAccessFeatures;return(l=this.ni)==null||l.unregister(np),(c=this.ni)==null||c.register({[np]:u}),e(u)}}})}gs(){var e=this.getFlags(),t=this.getFlagVariants();return{flags:e.filter((o=>t[o])),flagVariants:Object.keys(t).filter((o=>t[o])).reduce(((o,a)=>(o[a]=t[a],o)),{})}}ps(e){var{flags:t,flagVariants:o}=this.gs();this.featureFlagEventHandlers.forEach((a=>a(t,o,{errorsLoading:e})))}setPersonPropertiesForFlags(e,t){t===void 0&&(t=!0);var o=this.os(rp)||{},a=e?.$set||(e!=null&&e.$set_once?{}:e),n=e?.$set_once,i={};if(n)for(var l in n)({}).hasOwnProperty.call(n,l)&&(l in o||(i[l]=n[l]));this._instance.register({[rp]:Oe({},o,i,a)}),t&&this._instance.reloadFeatureFlags()}resetPersonPropertiesForFlags(){this._instance.unregister(rp)}setGroupPropertiesForFlags(e,t){t===void 0&&(t=!0);var o=this.os(vl)||{};Object.keys(o).length!==0&&Object.keys(o).forEach((a=>{o[a]=Oe({},o[a],e[a]),delete e[a]})),this._instance.register({[vl]:Oe({},o,e)}),t&&this._instance.reloadFeatureFlags()}resetGroupPropertiesForFlags(e){if(e){var t=this.os(vl)||{};this._instance.register({[vl]:Oe({},t,{[e]:{}})})}else this._instance.unregister(vl)}reset(){this.Kn=!1,this.Qn=!1,this.es=!1,this.ts=!1,this.rs=!1,this.$anon_distinct_id=void 0,this.fs(),this.Jn=!1}}},Gre={sessionRecording:class{get Bt(){return this._instance.config}get ni(){return this._instance.persistence}get started(){var e;return!((e=this.ys)==null||!e.isStarted)}get status(){var e,t;return this.bs===Vu||this.bs===Bh?this.bs:(e=(t=this.ys)==null?void 0:t.status)!==null&&e!==void 0?e:this.bs}constructor(e){if(this._forceAllowLocalhostNetworkCapture=!1,this.bs=NO,this._s=void 0,this._instance=e,!this._instance.sessionManager)throw ms.error("started without valid sessionManager"),new Error(Gw+" started without valid sessionManager. This is a bug.");if(this.Bt.cookieless_mode===Pi)throw new Error(Gw+' cannot be used with cookieless_mode="always"')}initialize(){this.startIfEnabledOrStop()}get ws(){var e,t=!((e=this._instance.get_property(ap))==null||!e.enabled),o=!this.Bt.disable_session_recording,a=this.Bt.disable_session_recording||this._instance.consent.isOptedOut();return he&&t&&o&&!a}startIfEnabledOrStop(e){var t;if(!this.ws||(t=this.ys)==null||!t.isStarted){var o=!Ve(Object.assign)&&!Ve(Array.from);this.ws&&o?(this.Is(e),ms.info("starting")):(this.bs=NO,this.stopRecording())}}Is(e){var t,o,a;this.ws&&(this.bs!==Vu&&this.bs!==Bh&&(this.bs=FO),et!=null&&(t=et.__PosthogExtensions__)!=null&&(t=t.rrweb)!=null&&t.record&&(o=et.__PosthogExtensions__)!=null&&o.initSessionRecording?this.Cs(e):(a=et.__PosthogExtensions__)==null||a.loadExternalDependency==null||a.loadExternalDependency(this._instance,this.Ss,(n=>{if(n)return ms.error("could not load recorder",n);this.Cs(e)})))}stopRecording(){var e,t;(e=this._s)==null||e.call(this),this._s=void 0,(t=this.ys)==null||t.stop()}xs(){var e,t;(e=this._s)==null||e.call(this),this._s=void 0,(t=this.ys)==null||t.discard()}ks(){var e;(e=this.ni)==null||e.unregister($C)}Ts(e,t){if(Pt(e))return null;var o,a=Xn(e)?e:parseFloat(e);return typeof(o=a)!="number"||!Number.isFinite(o)||0>o||o>1?(ms.warn(t+" must be between 0 and 1. Ignoring invalid value:",e),null):a}As(e){if(this.ni){var t,o,a=this.ni,n=()=>{var i,l=e.sessionRecording===!1?void 0:e.sessionRecording,c=this.Ts((i=this.Bt.session_recording)==null?void 0:i.sampleRate,"session_recording.sampleRate"),u=this.Ts(l?.sampleRate,"remote config sampleRate"),p=c??u;Pt(p)&&this.ks();var g=l?.minimumDurationMilliseconds;a.register({[ap]:Oe({cache_timestamp:Date.now(),enabled:!!l},l,{networkPayloadCapture:Oe({capturePerformance:e.capturePerformance},l?.networkPayloadCapture),canvasRecording:{enabled:l?.recordCanvas,fps:l?.canvasFps,quality:l?.canvasQuality},sampleRate:p,minimumDurationMilliseconds:Ve(g)?null:g,endpoint:l?.endpoint,triggerMatchType:l?.triggerMatchType,masking:l?.masking,urlTriggers:l?.urlTriggers,version:l?.version,triggerGroups:l?.triggerGroups})})};n(),(t=this._s)==null||t.call(this),this._s=(o=this._instance.sessionManager)==null?void 0:o.onSessionId(n)}}onRemoteConfig(e){return"sessionRecording"in e?e.sessionRecording===!1?(this.As(e),void this.xs()):(this.As(e),void this.startIfEnabledOrStop()):(this.bs===Vu&&(this.bs=Bh,ms.warn("config refresh failed, recording will not start until page reload")),void this.startIfEnabledOrStop())}log(e,t){var o;t===void 0&&(t="log"),(o=this.ys)!=null&&o.log?this.ys.log(e,t):ms.warn("log called before recorder was ready")}get Ss(){var e,t,o=(e=this._instance)==null||(e=e.persistence)==null?void 0:e.get_property(ap);return(o==null||(t=o.scriptConfig)==null?void 0:t.script)||"lazy-recorder"}Es(){var e,t=this._instance.get_property(ap);if(!t)return!1;var o=(e=(typeof t=="object"?t:JSON.parse(t)).cache_timestamp)!==null&&e!==void 0?e:Date.now();return 36e5>=Date.now()-o}Cs(e){var t,o;if((t=et.__PosthogExtensions__)==null||!t.initSessionRecording)return ms.warn("Called on script loaded before session recording is available. This can be caused by adblockers."),void this._instance.register_for_session({[s3]:!0});if(this.ys||(this.ys=(o=et.__PosthogExtensions__)==null?void 0:o.initSessionRecording(this._instance),this.ys._forceAllowLocalhostNetworkCapture=this._forceAllowLocalhostNetworkCapture),!this.Es())return this.bs===Bh||this.bs===Vu?void 0:(this.bs=Vu,ms.info("persisted remote config is stale, requesting fresh config before starting"),void new y3(this._instance).load());this.bs=FO,this.ys.start(e)}onRRwebEmit(e){var t;(t=this.ys)==null||t.onRRwebEmit==null||t.onRRwebEmit(e)}overrideLinkedFlag(){var e,t;this.ys||(t=this.ni)==null||t.register({[t3]:!0}),(e=this.ys)==null||e.overrideLinkedFlag()}overrideSampling(){var e,t;this.ys||(t=this.ni)==null||t.register({[e3]:!0}),(e=this.ys)==null||e.overrideSampling()}overrideTrigger(e){var t,o;this.ys||(o=this.ni)==null||o.register({[e==="url"?o3:a3]:!0}),(t=this.ys)==null||t.overrideTrigger(e)}get sdkDebugProperties(){var e;return((e=this.ys)==null?void 0:e.sdkDebugProperties)||{$recording_status:this.status}}tryAddCustomEvent(e,t){var o;return!((o=this.ys)==null||!o.tryAddCustomEvent(e,t))}}},Kre={autocapture:class{constructor(e){this.Rs=!1,this.Ns=null,this.Ms=!1,this.instance=e,this.rageclicks=new OO(e.config.rageclick),this.Fs=null}initialize(){this.startIfEnabled()}get Bt(){var e,t,o=No(this.instance.config.autocapture)?this.instance.config.autocapture:{};return o.url_allowlist=(e=o.url_allowlist)==null?void 0:e.map((a=>new RegExp(a))),o.url_ignorelist=(t=o.url_ignorelist)==null?void 0:t.map((a=>new RegExp(a))),o}Os(){if(this.isBrowserSupported()){if(he&&Be){var e=o=>{o=o||he?.event;try{this.Ps(o)}catch(a){IO.error("Failed to capture event",a)}};if(Yo(Be,"submit",e,{capture:!0}),Yo(Be,"change",e,{capture:!0}),Yo(Be,"click",e,{capture:!0}),this.Bt.capture_copied_text){var t=o=>{this.Ps(o=o||he?.event,A0)};Yo(Be,"copy",t,{capture:!0}),Yo(Be,"cut",t,{capture:!0})}}}else IO.info("Disabling Automatic Event Collection because this browser is not supported")}startIfEnabled(){this.isEnabled&&!this.Rs&&(this.Os(),this.Rs=!0)}onRemoteConfig(e){e.elementsChainAsString&&(this.Ms=e.elementsChainAsString),this.instance.persistence&&this.instance.persistence.register({[fw]:!!e.autocapture_opt_out}),this.Ns=!!e.autocapture_opt_out,this.startIfEnabled()}setElementSelectors(e){this.Fs=e}getElementSelectors(e){var t,o=[];return(t=this.Fs)==null||t.forEach((a=>{var n=Be?.querySelectorAll(a);n?.forEach((i=>{e===i&&o.push(a)}))})),o}get isEnabled(){var e,t,o=(e=this.instance.persistence)==null?void 0:e.props[fw];if(Mi(this.Ns)&&!$r(o)&&!this.instance.Fr())return!1;var a=(t=this.Ns)!==null&&t!==void 0?t:!!o;return!!this.instance.config.autocapture&&!a}Ps(e,t){if(t===void 0&&(t="$autocapture"),this.isEnabled){var o,a=xO(e);D3(a)&&(a=a.parentNode||null),t==="$autocapture"&&e.type==="click"&&e instanceof MouseEvent&&this.instance.config.rageclick&&(o=this.rageclicks)!=null&&o.isRageClick(e.clientX,e.clientY,e.timeStamp||new Date().getTime())&&(function(m,f){if(!he||Vw(m))return!1;var v,b,S;if($r(f)?(v=!!f&&EO,b=void 0):(v=(S=f?.css_selector_ignorelist)!==null&&S!==void 0?S:EO,b=f?.content_ignorelist),v===!1)return!1;var{targetElementList:C}=RO(m,!1);return!(function(w,_){if(w===!1||Ve(w))return!1;var E;if(w===!0)E=Are;else{if(!It(w))return!1;if(w.length>10)return ze.error("[PostHog] content_ignorelist array cannot exceed 10 items. Use css_selector_ignorelist for more complex matching."),!1;E=w.map((x=>x.toLowerCase()))}return _.some((x=>{var{safeText:k,ariaLabel:R}=x;return E.some((D=>k.includes(D)||R.includes(D)))}))})(b,C.map((w=>{var _;return{safeText:Mp(w).toLowerCase(),ariaLabel:((_=w.getAttribute("aria-label"))==null?void 0:_.toLowerCase().trim())||""}})))&&!kO(C,v)})(a,this.instance.config.rageclick)&&this.Ps(e,"$rageclick");var n=t===A0;if(a&&(function(m,f,v,b,S){var C,w,_,E;if(v===void 0&&(v=void 0),!he||Vw(m)||(C=v)!=null&&C.url_allowlist&&!PO(v.url_allowlist)||(w=v)!=null&&w.url_ignorelist&&PO(v.url_ignorelist))return!1;if((_=v)!=null&&_.dom_event_allowlist){var x=v.dom_event_allowlist;if(x&&!x.some((N=>f.type===N)))return!1}var{parentIsUsefulElement:k,targetElementList:R}=RO(m,b);if(!(function(N,$){var F=$?.element_allowlist;if(Ve(F))return!0;var z,j=function(ne){if(F.some((H=>ne.tagName.toLowerCase()===H)))return{v:!0}};for(var K of N)if(z=j(K))return z.v;return!1})(R,v)||!kO(R,(E=v)==null?void 0:E.css_selector_allowlist))return!1;var D=he.getComputedStyle(m);if(D&&D.getPropertyValue("cursor")==="pointer"&&f.type==="click")return!0;var O=m.tagName.toLowerCase();switch(O){case"html":return!1;case"form":return(S||["submit"]).indexOf(f.type)>=0;case"input":case"select":case"textarea":return(S||["change","click"]).indexOf(f.type)>=0;default:return k?(S||["click"]).indexOf(f.type)>=0:(S||["click"]).indexOf(f.type)>=0&&(YC.indexOf(O)>-1||m.getAttribute("contenteditable")==="true")}})(a,e,this.Bt,n,n?["copy","cut"]:void 0)){var{props:i,explicitNoCapture:l}=Fre(a,{e,maskAllElementAttributes:this.instance.config.mask_all_element_attributes,maskAllText:this.instance.config.mask_all_text,elementAttributeIgnoreList:this.Bt.element_attribute_ignorelist,elementsChainAsString:this.Ms});if(l)return!1;var c=this.getElementSelectors(a);if(c&&c.length>0&&(i.$element_selectors=c),t===A0){var u,p=I3(he==null||(u=he.getSelection())==null?void 0:u.toString()),g=e.type||"clipboard";if(!p)return!1;i.$selected_content=p,i.$copy_type=g}return this.instance.capture(t,i),!0}}}isBrowserSupported(){return Ci(Be?.querySelectorAll)}},historyAutocapture:class{constructor(e){var t;this._instance=e,this.Ls=(he==null||(t=he.location)==null?void 0:t.pathname)||""}initialize(){this.startIfEnabled()}get isEnabled(){return this._instance.config.capture_pageview==="history_change"}startIfEnabled(){this.isEnabled&&(ze.info("History API monitoring enabled, starting..."),this.monitorHistoryChanges())}stop(){this.Ds&&this.Ds(),this.Ds=void 0,ze.info("History API monitoring stopped")}monitorHistoryChanges(){var e,t;if(he&&he.history){var o=this;(e=he.history.pushState)!=null&&e.__posthog_wrapped__||MO(he.history,"pushState",(a=>function(n,i,l){a.call(this,n,i,l),o.Bs("pushState")})),(t=he.history.replaceState)!=null&&t.__posthog_wrapped__||MO(he.history,"replaceState",(a=>function(n,i,l){a.call(this,n,i,l),o.Bs("replaceState")})),this.js()}}Bs(e){try{var t,o=he==null||(t=he.location)==null?void 0:t.pathname;if(!o)return;o!==this.Ls&&this.isEnabled&&this._instance.capture(Wc,{navigation_type:e}),this.Ls=o}catch(a){ze.error("Error capturing "+e+" pageview",a)}}js(){if(!this.Ds){var e=()=>{this.Bs("popstate")};Yo(he,"popstate",e),this.Ds=()=>{he&&he.removeEventListener("popstate",e)}}}},heatmaps:class{get Bt(){return this.instance.config}constructor(e){var t;this.$s=!1,this.Rs=!1,this.qs=null,this.instance=e,this.$s=!((t=this.instance.persistence)==null||!t.props[vw]),this.rageclicks=new OO(e.config.rageclick)}initialize(){this.startIfEnabled()}get flushIntervalMilliseconds(){var e=5e3;return No(this.Bt.capture_heatmaps)&&this.Bt.capture_heatmaps.flush_interval_milliseconds&&(e=this.Bt.capture_heatmaps.flush_interval_milliseconds),e}get isEnabled(){return Pt(this.Bt.capture_heatmaps)?Pt(this.Bt.enable_heatmaps)?this.$s:this.Bt.enable_heatmaps:this.Bt.capture_heatmaps!==!1}startIfEnabled(){if(this.isEnabled){if(this.Rs)return;jre.info("starting..."),this.Zs(),this.Ft()}else{var e;clearInterval((e=this.qs)!==null&&e!==void 0?e:void 0),this.Vs(),this.getAndClearBuffer()}}onRemoteConfig(e){if("heatmaps"in e){var t=!!e.heatmaps;this.instance.persistence&&this.instance.persistence.register({[vw]:t}),this.$s=t,this.startIfEnabled()}}getAndClearBuffer(){var e=this.T;return this.T=void 0,e}Hs(e){this.Tt(e.originalEvent,"deadclick")}Ft(){this.qs&&clearInterval(this.qs),this.qs=Be?.visibilityState==="visible"?setInterval(this.Yr.bind(this),this.flushIntervalMilliseconds):null}Zs(){he&&Be&&(this.zs=this.Yr.bind(this),Yo(he,Hf,this.zs),this.Us=e=>this.Tt(e||he?.event),Yo(Be,"click",this.Us,{capture:!0}),this.Ys=e=>this.Gs(e||he?.event),Yo(Be,"mousemove",this.Ys,{capture:!0}),this.Ws=new rO(this.instance,Jne,this.Hs.bind(this)),this.Ws.startIfEnabledOrStop(),this.Xs=this.Ft.bind(this),Yo(Be,Vf,this.Xs),this.Rs=!0)}Vs(){var e;he&&Be&&(this.zs&&he.removeEventListener(Hf,this.zs),this.Us&&Be.removeEventListener("click",this.Us,{capture:!0}),this.Ys&&Be.removeEventListener("mousemove",this.Ys,{capture:!0}),this.Xs&&Be.removeEventListener(Vf,this.Xs),clearTimeout(this.Js),(e=this.Ws)==null||e.stop(),this.Rs=!1)}Ks(e,t){var o=this.instance.scrollManager.scrollY(),a=this.instance.scrollManager.scrollX(),n=this.instance.scrollManager.scrollElement(),i=(function(l,c,u){for(var p=l;p&&zv(p)&&!Ds(p,"body");){if(p===u)return!1;if(Ct(c,he?.getComputedStyle(p).position))return!0;p=M3(p)}return!1})(xO(e),["fixed","sticky"],n);return{x:e.clientX+(i?0:a),y:e.clientY+(i?0:o),target_fixed:i,type:t}}Tt(e,t){var o;if(t===void 0&&(t="click"),!CO(e.target)&&BO(e)){var a=this.Ks(e,t);(o=this.rageclicks)!=null&&o.isRageClick(e.clientX,e.clientY,new Date().getTime())&&this.Qs(Oe({},a,{type:"rageclick"})),this.Qs(a)}}Gs(e){!CO(e.target)&&BO(e)&&(clearTimeout(this.Js),this.Js=setTimeout((()=>{this.Qs(this.Ks(e,"mousemove"))}),500))}Qs(e){if(he){var t=he.location.href,o=this.Bt.custom_personal_data_properties,a=this.Bt.mask_personal_data_properties?[...Cd,...o||[]]:[],n=Op(t,a,Ip);this.T=this.T||{},this.T[n]||(this.T[n]=[]),this.T[n].push(e)}}Yr(){this.T&&!Xc(this.T)&&this.instance.capture("$$heatmap",{$heatmap_data:this.getAndClearBuffer()})}},deadClicksAutocapture:rO,webVitalsAutocapture:class{constructor(e){var t;this.$s=!1,this.Rs=!1,this.T={url:void 0,metrics:[],firstMetricTimestamp:void 0},this.eo=()=>{clearTimeout(this.ro),this.T.metrics.length!==0&&(this._instance.capture("$web_vitals",this.T.metrics.reduce(((o,a)=>Oe({},o,{["$web_vitals_"+a.name+"_event"]:Oe({},a),["$web_vitals_"+a.name+"_value"]:a.value})),{})),this.T={url:void 0,metrics:[],firstMetricTimestamp:void 0})},this.ht=o=>{var a,n=(a=this._instance.sessionManager)==null?void 0:a.checkAndGetSessionAndWindowId(!0);if(Ve(n))ps.error("Could not read session ID. Dropping metrics!");else{this.T=this.T||{url:void 0,metrics:[],firstMetricTimestamp:void 0};var i=this.io();Ve(i)||(Pt(o?.name)||Pt(o?.value)?ps.error("Invalid metric received",o):!this.no||this.no>o.value?(this.T.url!==i&&(this.eo(),this.ro=setTimeout(this.eo,this.flushToCaptureTimeoutMs)),Ve(this.T.url)&&(this.T.url=i),this.T.firstMetricTimestamp=Ve(this.T.firstMetricTimestamp)?Date.now():this.T.firstMetricTimestamp,o.attribution&&o.attribution.interactionTargetElement&&(o.attribution.interactionTargetElement=void 0),this.T.metrics.push(Oe({},o,{$current_url:i,$session_id:n.sessionId,$window_id:n.windowId,timestamp:Date.now()})),this.T.metrics.length===this.allowedMetrics.length&&this.eo()):ps.error("Ignoring metric with value >= "+this.no,o))}},this.so=()=>{if(!this.Rs){var o,a,n,i,l=et.__PosthogExtensions__;Ve(l)||Ve(l.postHogWebVitalsCallbacks)||({onLCP:o,onCLS:a,onFCP:n,onINP:i}=l.postHogWebVitalsCallbacks),o&&a&&n&&i?(this.allowedMetrics.indexOf("LCP")>-1&&o(this.ht.bind(this)),this.allowedMetrics.indexOf("CLS")>-1&&a(this.ht.bind(this)),this.allowedMetrics.indexOf("FCP")>-1&&n(this.ht.bind(this)),this.allowedMetrics.indexOf("INP")>-1&&i(this.ht.bind(this)),this.Rs=!0):ps.error("web vitals callbacks not loaded - not starting")}},this._instance=e,this.$s=!((t=this._instance.persistence)==null||!t.props[Tw]),this.startIfEnabled()}get oo(){return this._instance.config.capture_performance}get allowedMetrics(){var e,t,o=No(this.oo)?(e=this.oo)==null?void 0:e.web_vitals_allowed_metrics:void 0;return Pt(o)?((t=this._instance.persistence)==null?void 0:t.props[_w])||["CLS","FCP","INP","LCP"]:o}get flushToCaptureTimeoutMs(){return(No(this.oo)?this.oo.web_vitals_delayed_flush_ms:void 0)||5e3}get useAttribution(){var e=No(this.oo)?this.oo.web_vitals_attribution:void 0;return e!=null&&e}get no(){var e=No(this.oo)&&Xn(this.oo.__web_vitals_max_value)?this.oo.__web_vitals_max_value:LO;return e>0&&6e4>=e?LO:e}get isEnabled(){var e=wa?.protocol;if(e!=="http:"&&e!=="https:")return ps.info("Web Vitals are disabled on non-http/https protocols"),!1;var t=No(this.oo)?this.oo.web_vitals:$r(this.oo)?this.oo:void 0;return $r(t)?t:this.$s}startIfEnabled(){this.isEnabled&&!this.Rs&&(ps.info("enabled, starting..."),this.ur(this.so))}onRemoteConfig(e){if("capturePerformance"in e){var t=No(e.capturePerformance)&&!!e.capturePerformance.web_vitals,o=No(e.capturePerformance)?e.capturePerformance.web_vitals_allowed_metrics:void 0;this._instance.persistence&&(this._instance.persistence.register({[Tw]:t}),this._instance.persistence.register({[_w]:o})),this.$s=t,this.startIfEnabled()}}ur(e){var t,o;(t=et.__PosthogExtensions__)!=null&&t.postHogWebVitalsCallbacks?e():(o=et.__PosthogExtensions__)==null||o.loadExternalDependency==null||o.loadExternalDependency(this._instance,this.useAttribution?"web-vitals-with-attribution":"web-vitals",(a=>{a?ps.error("failed to load script",a):e()}))}io(){var e=he?he.location.href:void 0;if(e){var t=this._instance.config.custom_personal_data_properties,o=this._instance.config.mask_personal_data_properties?[...Cd,...t||[]]:[];return Op(e,o,Ip)}ps.error("Could not determine current URL")}}},Wre={exceptionObserver:class{constructor(e){var t,o,a;this.so=()=>{var n;if(he&&this.isEnabled&&(n=et.__PosthogExtensions__)!=null&&n.errorWrappingFunctions){var i=et.__PosthogExtensions__.errorWrappingFunctions.wrapOnError,l=et.__PosthogExtensions__.errorWrappingFunctions.wrapUnhandledRejection,c=et.__PosthogExtensions__.errorWrappingFunctions.wrapConsoleError;try{!this.ao&&this.Bt.capture_unhandled_errors&&(this.ao=i(this.captureException.bind(this))),!this.lo&&this.Bt.capture_unhandled_rejections&&(this.lo=l(this.captureException.bind(this))),!this.uo&&this.Bt.capture_console_errors&&(this.uo=c(this.captureException.bind(this)))}catch(u){qu.error("failed to start",u),this.ho()}}},this._instance=e,this.co=!((t=this._instance.persistence)==null||!t.props[bw]),this.do=new sne({refillRate:(o=this._instance.config.error_tracking.__exceptionRateLimiterRefillRate)!==null&&o!==void 0?o:1,bucketSize:(a=this._instance.config.error_tracking.__exceptionRateLimiterBucketSize)!==null&&a!==void 0?a:10,refillInterval:1e4,Gt:qu}),this.Bt=this.vo(),this.startIfEnabledOrStop()}vo(){var e=this._instance.config.capture_exceptions,t={capture_unhandled_errors:!1,capture_unhandled_rejections:!1,capture_console_errors:!1};return No(e)?t=Oe({},t,e):(Ve(e)?this.co:e)&&(t=Oe({},t,{capture_unhandled_errors:!0,capture_unhandled_rejections:!0})),t}get isEnabled(){return this.Bt.capture_console_errors||this.Bt.capture_unhandled_errors||this.Bt.capture_unhandled_rejections}startIfEnabledOrStop(){this.isEnabled?(qu.info("enabled"),this.ho(),this.ur(this.so)):this.ho()}ur(e){var t,o;(t=et.__PosthogExtensions__)!=null&&t.errorWrappingFunctions&&e(),(o=et.__PosthogExtensions__)==null||o.loadExternalDependency==null||o.loadExternalDependency(this._instance,"exception-autocapture",(a=>{if(a)return qu.error("failed to load script",a);e()}))}ho(){var e,t,o;(e=this.ao)==null||e.call(this),this.ao=void 0,(t=this.lo)==null||t.call(this),this.lo=void 0,(o=this.uo)==null||o.call(this),this.uo=void 0}onRemoteConfig(e){"autocaptureExceptions"in e&&(this.co=!!e.autocaptureExceptions||!1,this._instance.persistence&&this._instance.persistence.register({[bw]:this.co}),this.Bt=this.vo(),this.startIfEnabledOrStop())}onConfigChange(){this.Bt=this.vo()}captureException(e){var t,o,a,n=(t=e==null||(o=e.$exception_list)==null||(o=o[0])==null?void 0:o.type)!==null&&t!==void 0?t:"Exception";this.do.consumeRateLimit(n)?qu.info("Skipping exception capture because of client rate limiting.",{exception:n}):(a=this._instance.exceptions)==null||a.sendExceptionEvent(e)}},exceptions:class{constructor(e){var t,o;this.fo=[],this.po=new Sne([new Ene,new Fne,new Ane,new Rne,new Lne,new Mne,new One,new Nne],(function(a){for(var n=arguments.length,i=new Array(n>1?n-1:0),l=1;n>l;l++)i[l-1]=arguments[l];return function(c,u){u===void 0&&(u=0);for(var p=[],g=c.split(`
|
|
160
|
-
`),m=u;g.length>m;m++){var f=g[m];if(1024>=f.length){var v=tO.test(f)?f.replace(tO,"$1"):f;if(!v.match(/\S*Error: /)){for(var b of i){var S=b(v,a);if(S){p.push(S);break}}if(p.length>=50)break}}}return(function(C){if(!C.length)return[];var w=Array.from(C);return w.reverse(),w.slice(0,50).map((_=>{return Oe({},_,{filename:_.filename||(E=w,E[E.length-1]||{}).filename,function:_.function||_d});var E}))})(p)}})("web:javascript",Cne,kne)),this._instance=e,this.fo=(t=(o=this._instance.persistence)==null?void 0:o.get_property(yw))!==null&&t!==void 0?t:[],this.mo=Bf(this.yo()),this.bo=new jne(this.mo)}onConfigChange(){this.mo=Bf(this.yo()),this.bo.setConfig(this.mo)}onRemoteConfig(e){var t,o,a;if("errorTracking"in e){var n=(t=(o=e.errorTracking)==null?void 0:o.suppressionRules)!==null&&t!==void 0?t:[],i=(a=e.errorTracking)==null?void 0:a.captureExtensionExceptions;this.fo=n,this._instance.persistence&&this._instance.persistence.register({[yw]:this.fo,[Sw]:i})}}get _o(){var e,t=!!this._instance.get_property(Sw),o=this._instance.config.error_tracking.captureExtensionExceptions;return(e=o??t)!==null&&e!==void 0&&e}buildProperties(e,t){return this.po.buildFromUnknown(e,{syntheticException:t?.syntheticException,mechanism:{handled:t?.handled}})}addExceptionStep(e,t){if(this.mo.enabled)try{if(!Co(e)||e.trim().length===0)return void wi.warn("Ignoring exception step because message must be a non-empty string");var o=this.wo(t),{sanitizedProperties:a,droppedKeys:n}=(function(i){if(!i)return{sanitizedProperties:{},droppedKeys:[]};var l=[];return{sanitizedProperties:Object.keys(i).reduce(((c,u)=>Bne.has(u)?(l.push(u),c):(c[u]=i[u],c)),{}),droppedKeys:l}})(o);n.length>0&&wi.warn("Ignoring reserved exception step fields",{droppedKeys:n}),this.bo.add(Oe({[Nf]:e,[Ff]:new Date().toISOString()},a))}catch(i){wi.error("Failed to add exception step. Ignoring breadcrumb.",i)}}sendExceptionEvent(e){try{var t=e.$exception_list;if(this.Io(t)){if(this.Co(t))return this.So("Exception dropped: matched a suppression rule"),void wi.info("Skipping exception capture because a suppression rule matched");if(!this._o&&this.xo(t))return this.So("Exception dropped: thrown by a browser extension"),void wi.info("Skipping exception capture because it was thrown by an extension");if(!this._instance.config.error_tracking.__capturePostHogExceptions&&this.ko(t))return this.So("Exception dropped: thrown by the PostHog SDK"),void wi.info("Skipping exception capture because it was thrown by the PostHog SDK")}var o=this.mo.enabled&&Pt(e.$exception_steps)?this.To(e):e;try{var a=this._instance.capture("$exception",o,{_noTruncate:!0,_batchKey:"exceptionEvent",en:!0});return a&&this.bo.clear(),a}catch(n){return wi.error("Failed to capture exception event. Dropping this exception.",n),void this.bo.clear()}}catch(n){return void wi.error("Failed to process exception event. Ignoring this exception.",n)}}To(e){try{var t=this.bo.getAttachable();return t.length===0?e:Oe({},e,{$exception_steps:t})}catch(o){return wi.error("Failed to read buffered exception steps. Capturing exception without steps.",o),e}}So(e){this.mo.enabled&&this.bo.add({[Nf]:e,[Ff]:new Date().toISOString()})}wo(e){return No(e)?Oe({},e):{}}yo(){var e,t;return(e=(t=this._instance.config.error_tracking)==null?void 0:t.exception_steps)!==null&&e!==void 0?e:{}}Co(e){if(e.length===0)return!1;var t=e.reduce(((o,a)=>{var{type:n,value:i}=a;return Co(n)&&n.length>0&&o.$exception_types.push(n),Co(i)&&i.length>0&&o.$exception_values.push(i),o}),{$exception_types:[],$exception_values:[]});return this.fo.some((o=>{var a=o.values.map((n=>{var i,l=k3[n.operator],c=It(n.value)?n.value:[n.value],u=(i=t[n.key])!==null&&i!==void 0?i:[];return c.length>0&&l(c,u)}));return o.type==="OR"?a.some(Boolean):a.every(Boolean)}))}xo(e){return e.flatMap((t=>{var o,a;return(o=(a=t.stacktrace)==null?void 0:a.frames)!==null&&o!==void 0?o:[]})).some((t=>t.filename&&t.filename.startsWith("chrome-extension://")))}ko(e){if(e.length>0){var t,o,a,n,i=(t=(o=e[0].stacktrace)==null?void 0:o.frames)!==null&&t!==void 0?t:[],l=i[i.length-1];return(a=l==null||(n=l.filename)==null?void 0:n.includes("posthog.com/static"))!==null&&a!==void 0&&a}return!1}Io(e){return!Pt(e)&&It(e)}}},Yre=Oe({productTours:class{get ni(){return this._instance.persistence}constructor(e){this.Ao=null,this.Eo=null,this._instance=e}initialize(){this.loadIfEnabled()}onRemoteConfig(e){"productTours"in e&&(this.ni&&this.ni.register({[ww]:!!e.productTours}),this.loadIfEnabled())}loadIfEnabled(){var e,t;this.Ao||(e=this._instance).config.disable_product_tours||(t=e.persistence)==null||!t.get_property(ww)||this.ur((()=>this.Ro()))}ur(e){var t,o;(t=et.__PosthogExtensions__)!=null&&t.generateProductTours?e():(o=et.__PosthogExtensions__)==null||o.loadExternalDependency==null||o.loadExternalDependency(this._instance,"product-tours",(a=>{a?jO.error("Could not load product tours script",a):e()}))}Ro(){var e;!this.Ao&&(e=et.__PosthogExtensions__)!=null&&e.generateProductTours&&(this.Ao=et.__PosthogExtensions__.generateProductTours(this._instance,!0))}getProductTours(e,t){if(t===void 0&&(t=!1),!It(this.Eo)||t){var o=this.ni;if(o){var a=o.props[af];if(It(a)&&!t)return this.Eo=a,void e(a,{isLoaded:!0})}this._instance._send_request({url:this._instance.requestRouter.endpointFor("api","/api/product_tours/?token="+this._instance.config.token),method:"GET",callback:n=>{var i=n.statusCode;if(i!==200||!n.json){var l="Product Tours API could not be loaded, status: "+i;return jO.error(l),void e([],{isLoaded:!1,error:l})}var c=It(n.json.product_tours)?n.json.product_tours:[];this.Eo=c,o&&o.register({[af]:c}),e(c,{isLoaded:!0})}})}else e(this.Eo,{isLoaded:!0})}getActiveProductTours(e){Pt(this.Ao)?e([],{isLoaded:!1,error:"Product tours not loaded"}):this.Ao.getActiveProductTours(e)}showProductTour(e){var t;(t=this.Ao)==null||t.showTourById(e)}previewTour(e){this.Ao?this.Ao.previewTour(e):this.ur((()=>{var t;this.Ro(),(t=this.Ao)==null||t.previewTour(e)}))}dismissProductTour(){var e;(e=this.Ao)==null||e.dismissTour("user_clicked_skip")}nextStep(){var e;(e=this.Ao)==null||e.nextStep()}previousStep(){var e;(e=this.Ao)==null||e.previousStep()}clearCache(){var e;this.Eo=null,(e=this.ni)==null||e.unregister(af)}resetTour(e){var t;(t=this.Ao)==null||t.resetTour(e)}resetAllTours(){var e;(e=this.Ao)==null||e.resetAllTours()}cancelPendingTour(e){var t;(t=this.Ao)==null||t.cancelPendingTour(e)}}},$v),Zre={siteApps:class{constructor(e){this._instance=e,this.No=[],this.apps={}}get isEnabled(){return!!this._instance.config.opt_in_site_apps}Mo(e,t){if(t){var o=this.globalsForEvent(t);this.No.push(o),this.No.length>1e3&&(this.No=this.No.slice(10))}}get siteAppLoaders(){var e;return(e=et._POSTHOG_REMOTE_CONFIG)==null||(e=e[this._instance.config.token])==null?void 0:e.siteApps}initialize(){if(this.isEnabled){var e=this._instance._addCaptureHook(this.Mo.bind(this));this.Fo=()=>{e(),this.No=[],this.Fo=void 0}}}globalsForEvent(e){var t,o,a,n,i,l,c;if(!e)throw new Error("Event payload is required");var u={},p=this._instance.get_property("$groups")||[],g=this._instance.get_property("$stored_group_properties")||{};for(var[m,f]of Object.entries(g))u[m]={id:p[m],type:m,properties:f};var{$set_once:v,$set:b}=e;return{event:Oe({},EB(e,Ure),{properties:Oe({},e.properties,b?{$set:Oe({},(t=(o=e.properties)==null?void 0:o.$set)!==null&&t!==void 0?t:{},b)}:{},v?{$set_once:Oe({},(a=(n=e.properties)==null?void 0:n.$set_once)!==null&&a!==void 0?a:{},v)}:{}),elements_chain:(i=(l=e.properties)==null?void 0:l.$elements_chain)!==null&&i!==void 0?i:"",distinct_id:(c=e.properties)==null?void 0:c.distinct_id}),person:{properties:this._instance.get_property("$stored_person_properties")},groups:u}}setupSiteApp(e){var t=this.apps[e.id],o=()=>{var l;!t.errored&&this.No.length&&(gs.info("Processing "+this.No.length+" events for site app with id "+e.id),this.No.forEach((c=>t.processEvent==null?void 0:t.processEvent(c))),t.processedBuffer=!0),Object.values(this.apps).every((c=>c.processedBuffer||c.errored))&&((l=this.Fo)==null||l.call(this))},a=!1,n=l=>{t.errored=!l,t.loaded=!0,gs.info("Site app with id "+e.id+" "+(l?"loaded":"errored")),a&&o()};try{var{processEvent:i}=e.init({posthog:this._instance,callback(l){n(l)}});i&&(t.processEvent=i),a=!0}catch(l){gs.error(UO+e.id,l),n(!1)}if(a&&t.loaded)try{o()}catch(l){gs.error("Error while processing buffered events PostHog app with config id "+e.id,l),t.errored=!0}}Oo(){var e=this.siteAppLoaders||[];for(var t of e)this.apps[t.id]={id:t.id,loaded:!1,errored:!1,processedBuffer:!1};for(var o of e)this.setupSiteApp(o)}Po(e){if(Object.keys(this.apps).length!==0){var t=this.globalsForEvent(e);for(var o of Object.values(this.apps))try{o.processEvent==null||o.processEvent(t)}catch(a){gs.error("Error while processing event "+e.event+" for site app "+o.id,a)}}}onRemoteConfig(e){var t,o,a,n=this;if((t=this.siteAppLoaders)!=null&&t.length)return this.isEnabled?(this.Oo(),void this._instance.on("eventCaptured",(u=>this.Po(u)))):void gs.error('PostHog site apps are disabled. Enable the "opt_in_site_apps" config to proceed.');if((o=this.Fo)==null||o.call(this),(a=e.siteApps)!=null&&a.length)if(this.isEnabled){var i=function(u){var p;et["__$$ph_site_app_"+u]=n._instance,(p=et.__PosthogExtensions__)==null||p.loadSiteApp==null||p.loadSiteApp(n._instance,c,(g=>{if(g)return gs.error(UO+u,g)}))};for(var{id:l,url:c}of e.siteApps)i(l)}else gs.error('PostHog site apps are disabled. Enable the "opt_in_site_apps" config to proceed.')}}},Qre={tracingHeaders:class{constructor(e){this.Lo=void 0,this.Do=void 0,this.so=()=>{var t,o,a=this.Bo()||[];Ve(this.Lo)&&((t=et.__PosthogExtensions__)==null||(t=t.tracingHeadersPatchFns)==null||t._patchXHR(a,this._instance.get_distinct_id(),this._instance.sessionManager)),Ve(this.Do)&&((o=et.__PosthogExtensions__)==null||(o=o.tracingHeadersPatchFns)==null||o._patchFetch(a,this._instance.get_distinct_id(),this._instance.sessionManager))},this._instance=e}initialize(){this.startIfEnabledOrStop()}ur(e){var t,o;(t=et.__PosthogExtensions__)!=null&&t.tracingHeadersPatchFns&&e(),(o=et.__PosthogExtensions__)==null||o.loadExternalDependency==null||o.loadExternalDependency(this._instance,"tracing-headers",(a=>{if(a)return Bre.error("failed to load script",a);e()}))}Bo(){var e;return(e=this._instance.config.addTracingHeaders)!==null&&e!==void 0?e:this._instance.config.__add_tracing_headers}startIfEnabledOrStop(){var e,t;this.Bo()?this.ur(this.so):((e=this.Lo)==null||e.call(this),(t=this.Do)==null||t.call(this),this.Lo=void 0,this.Do=void 0)}}},Jre=Oe({surveys:class{get Bt(){return this._instance.config}constructor(e){this.jo=void 0,this._surveyManager=null,this.$o=!1,this.qo=[],this.Zo=null,this._instance=e,this._surveyEventReceiver=null}initialize(){this.loadIfEnabled()}onRemoteConfig(e){if(!this.Bt.disable_surveys){var t=e.surveys;if(Pt(t))return eo.warn("Flags not loaded yet. Not loading surveys.");var o=It(t);this.jo=o?t.length>0:t,eo.info("flags response received, isSurveysEnabled: "+this.jo),this.loadIfEnabled()}}reset(){localStorage.removeItem("lastSeenSurveyDate");for(var e=[],t=0;t<localStorage.length;t++){var o=localStorage.key(t);(o!=null&&o.startsWith($w)||o!=null&&o.startsWith("inProgressSurvey_"))&&e.push(o)}e.forEach((a=>localStorage.removeItem(a)))}loadIfEnabled(){if(!this._surveyManager)if(this.$o)eo.info("Already initializing surveys, skipping...");else if(this.Bt.disable_surveys)eo.info(zO);else if(this.Bt.cookieless_mode&&this._instance.consent.isOptedOut())eo.info("Not loading surveys in cookieless mode without consent.");else{var e=et?.__PosthogExtensions__;if(e){if(!Ve(this.jo)||this.Bt.advanced_enable_surveys){var t=this.jo||this.Bt.advanced_enable_surveys;this.$o=!0;try{var o=e.generateSurveys;if(o)return void this.Vo(o,t);var a=e.loadExternalDependency;if(!a)return void this.Ho(qC);a(this._instance,"surveys",(n=>{n||!e.generateSurveys?this.Ho("Could not load surveys script",n):this.Vo(e.generateSurveys,t)}))}catch(n){throw this.Ho("Error initializing surveys",n),n}finally{this.$o=!1}}}else eo.error("PostHog Extensions not found.")}}Vo(e,t){this._surveyManager=e(this._instance,t),this._surveyEventReceiver=new qre(this._instance),eo.info("Surveys loaded successfully"),this.zo({isLoaded:!0})}Ho(e,t){eo.error(e,t),this.zo({isLoaded:!1,error:e})}onSurveysLoaded(e){return this.qo.push(e),this._surveyManager&&this.zo({isLoaded:!0}),()=>{this.qo=this.qo.filter((t=>t!==e))}}getSurveys(e,t){if(t===void 0&&(t=!1),this.Bt.disable_surveys)return eo.info(zO),e([]);var o,a=this._instance.get_property(kw);if(a&&!t)return e(a,{isLoaded:!0});typeof Promise<"u"&&this.Zo?this.Zo.then((n=>{var{surveys:i,context:l}=n;return e(i,l)})):(typeof Promise<"u"&&(this.Zo=new Promise((n=>{o=n}))),this._instance._send_request({url:this._instance.requestRouter.endpointFor("api","/api/surveys/?token="+this.Bt.token),method:"GET",timeout:this.Bt.surveys_request_timeout_ms,callback:n=>{var i;this.Zo=null;var l=n.statusCode;if(l!==200||!n.json){var c="Surveys API could not be loaded, status: "+l;eo.error(c);var u={isLoaded:!1,error:c};return e([],u),void(o==null||o({surveys:[],context:u}))}var p,g=n.json.surveys||[],m=g.filter((v=>(function(b){return!(!b.start_date||b.end_date)})(v)&&((function(b){var S;return!((S=b.conditions)==null||(S=S.events)==null||(S=S.values)==null||!S.length)})(v)||(function(b){var S;return!((S=b.conditions)==null||(S=S.actions)==null||(S=S.values)==null||!S.length)})(v))));m.length>0&&((p=this._surveyEventReceiver)==null||p.register(m)),(i=this._instance.persistence)==null||i.register({[kw]:g});var f={isLoaded:!0};e(g,f),o?.({surveys:g,context:f})}}))}zo(e){for(var t of this.qo)try{if(!e.isLoaded)return t([],e);this.getSurveys(t)}catch(o){eo.error("Error in survey callback",o)}}getActiveMatchingSurveys(e,t){if(t===void 0&&(t=!1),!Pt(this._surveyManager))return this._surveyManager.getActiveMatchingSurveys(e,t);eo.warn("init was not called")}Uo(e){var t=null;return this.getSurveys((o=>{var a;t=(a=o.find((n=>n.id===e)))!==null&&a!==void 0?a:null})),t}Yo(e){if(Pt(this._surveyManager))return{eligible:!1,reason:O0};var t=typeof e=="string"?this.Uo(e):e;return t?this._surveyManager.checkSurveyEligibility(t):{eligible:!1,reason:"Survey not found"}}canRenderSurvey(e){if(Pt(this._surveyManager))return eo.warn("init was not called"),{visible:!1,disabledReason:O0};var t=this.Yo(e);return{visible:t.eligible,disabledReason:t.reason}}canRenderSurveyAsync(e,t){return Pt(this._surveyManager)?(eo.warn("init was not called"),Promise.resolve({visible:!1,disabledReason:O0})):new Promise((o=>{this.getSurveys((a=>{var n,i=(n=a.find((c=>c.id===e)))!==null&&n!==void 0?n:null;if(i){var l=this.Yo(i);o({visible:l.eligible,disabledReason:l.reason})}else o({visible:!1,disabledReason:"Survey not found"})}),t)}))}renderSurvey(e,t,o){var a;if(Pt(this._surveyManager))eo.warn("init was not called");else{var n=typeof e=="string"?this.Uo(e):e;if(n!=null&&n.id)if(_re.includes(n.type)){var i=Be?.querySelector(t);if(i)return(a=n.appearance)!=null&&a.surveyPopupDelaySeconds?(eo.info("Rendering survey "+n.id+" with delay of "+n.appearance.surveyPopupDelaySeconds+" seconds"),void setTimeout((()=>{var l,c;eo.info("Rendering survey "+n.id+" with delay of "+((l=n.appearance)==null?void 0:l.surveyPopupDelaySeconds)+" seconds"),(c=this._surveyManager)==null||c.renderSurvey(n,i,o),eo.info("Survey "+n.id+" rendered")}),1e3*n.appearance.surveyPopupDelaySeconds)):void this._surveyManager.renderSurvey(n,i,o);eo.warn("Survey element not found")}else eo.warn("Surveys of type "+n.type+" cannot be rendered in the app");else eo.warn("Survey not found")}}displaySurvey(e,t){var o;if(Pt(this._surveyManager))eo.warn("init was not called");else{var a=this.Uo(e);if(a){var n=a;if((o=a.appearance)!=null&&o.surveyPopupDelaySeconds&&t.ignoreDelay&&(n=Oe({},a,{appearance:Oe({},a.appearance,{surveyPopupDelaySeconds:0})})),t.displayType!==Nw.Popover&&t.initialResponses&&eo.warn("initialResponses is only supported for popover surveys. prefill will not be applied."),t.ignoreConditions===!1){var i=this.canRenderSurvey(a);if(!i.visible)return void eo.warn("Survey is not eligible to be displayed: ",i.disabledReason)}t.displayType!==Nw.Inline?this._surveyManager.handlePopoverSurvey(n,t):this.renderSurvey(n,t.selector,t.properties)}else eo.warn("Survey not found")}}cancelPendingSurvey(e){Pt(this._surveyManager)?eo.warn("init was not called"):this._surveyManager.cancelSurvey(e)}handlePageUnload(){var e;(e=this._surveyManager)==null||e.handlePageUnload()}}},$v),Xre={toolbar:class{constructor(e){this.instance=e}Go(e){et.ph_toolbar_state=e}Wo(){var e;return(e=et.ph_toolbar_state)!==null&&e!==void 0?e:0}initialize(){return this.maybeLoadToolbar()}maybeLoadToolbar(e,t,o){if(e===void 0&&(e=void 0),t===void 0&&(t=void 0),o===void 0&&(o=void 0),l3(this.instance.config)||!he||!Be)return!1;e=e??he.location,o=o??he.history;try{if(!t){try{he.localStorage.setItem("test","test"),he.localStorage.removeItem("test")}catch{return!1}t=he?.localStorage}var a,n=Vre||Yf(e.hash,"__posthog")||Yf(e.hash,"state"),i=n?aO((()=>JSON.parse(atob(decodeURIComponent(n)))))||aO((()=>JSON.parse(decodeURIComponent(n)))):null;return i&&i.action==="ph_authorize"?((a=i).source="url",a&&Object.keys(a).length>0&&(i.desiredHash?e.hash=i.desiredHash:o?o.replaceState(o.state,"",e.pathname+e.search):e.hash="")):((a=JSON.parse(t.getItem($O)||"{}")).source="localstorage",delete a.userIntent),!(!a.token||this.instance.config.token!==a.token||(this.loadToolbar(a),0))}catch{return!1}}Xo(e){var t=et.ph_load_toolbar||et.ph_load_editor;!Pt(t)&&Ci(t)?t(e,this.instance):qO.warn("No toolbar load function found")}loadToolbar(e){var t=!(Be==null||!Be.getElementById(n3));if(!he||t)return!1;var o=this.instance.requestRouter.region==="custom"&&this.instance.config.advanced_disable_toolbar_metrics,a=Oe({token:this.instance.config.token},e,{apiURL:this.instance.requestRouter.endpointFor("ui")},o?{instrument:!1}:{});if(he.localStorage.setItem($O,JSON.stringify(Oe({},a,{source:void 0}))),this.Wo()===2)this.Xo(a);else if(this.Wo()===0){var n;this.Go(1),(n=et.__PosthogExtensions__)==null||n.loadExternalDependency==null||n.loadExternalDependency(this.instance,"toolbar",(i=>{if(i)return qO.error("[Toolbar] Failed to load",i),void this.Go(0);this.Go(2),this.Xo(a)})),Yo(he,"turbolinks:load",(()=>{this.Go(0),this.loadToolbar(a)}))}return!0}Jo(e){return this.loadToolbar(e)}maybeLoadEditor(e,t,o){return e===void 0&&(e=void 0),t===void 0&&(t=void 0),o===void 0&&(o=void 0),this.maybeLoadToolbar(e,t,o)}}},eie=Oe({experiments:Ia},$v),tie={conversations:class{constructor(e){this.Ko=void 0,this._conversationsManager=null,this.Qo=!1,this.ea=null,this._instance=e}initialize(){this.loadIfEnabled()}onRemoteConfig(e){if(!this._instance.config.disable_conversations){var t=e.conversations;Pt(t)||($r(t)?this.Ko=t:(this.Ko=t.enabled,this.ea=t),this.loadIfEnabled())}}reset(){var e;(e=this._conversationsManager)==null||e.reset(),this._conversationsManager=null,this.Ko=void 0,this.ea=null}loadIfEnabled(){if(!(this._conversationsManager||this.Qo||this._instance.config.disable_conversations||l3(this._instance.config)||this._instance.config.cookieless_mode&&this._instance.consent.isOptedOut())){var e=et?.__PosthogExtensions__;if(e&&!Ve(this.Ko)&&this.Ko)if(this.ea&&this.ea.token){this.Qo=!0;try{var t=e.initConversations;if(t)return this.ta(t),void(this.Qo=!1);var o=e.loadExternalDependency;if(!o)return void this.ra(qC);o(this._instance,"conversations",(a=>{a||!e.initConversations?this.ra("Could not load conversations script",a):this.ta(e.initConversations),this.Qo=!1}))}catch(a){this.ra("Error initializing conversations",a),this.Qo=!1}}else Vn.error("Conversations enabled but missing token in remote config.")}}ta(e){if(this.ea)try{this._conversationsManager=e(this.ea,this._instance),Vn.info("Conversations loaded successfully")}catch(t){this.ra("Error completing conversations initialization",t)}else Vn.error("Cannot complete initialization: remote config is null")}ra(e,t){Vn.error(e,t),this._conversationsManager=null,this.Qo=!1}show(){this._conversationsManager?this._conversationsManager.show():Vn.warn("Conversations not loaded yet.")}hide(){this._conversationsManager&&this._conversationsManager.hide()}isAvailable(){return this.Ko===!0&&!Mi(this._conversationsManager)}isVisible(){var e,t;return(e=(t=this._conversationsManager)==null?void 0:t.isVisible())!==null&&e!==void 0&&e}sendMessage(e,t,o){var a=this;return Kn((function*(){return a._conversationsManager?a._conversationsManager.sendMessage(e,t,o):(Vn.warn(ml),null)}))()}getMessages(e,t){var o=this;return Kn((function*(){return o._conversationsManager?o._conversationsManager.getMessages(e,t):(Vn.warn(ml),null)}))()}markAsRead(e){var t=this;return Kn((function*(){return t._conversationsManager?t._conversationsManager.markAsRead(e):(Vn.warn(ml),null)}))()}getTickets(e){var t=this;return Kn((function*(){return t._conversationsManager?t._conversationsManager.getTickets(e):(Vn.warn(ml),null)}))()}requestRestoreLink(e){var t=this;return Kn((function*(){return t._conversationsManager?t._conversationsManager.requestRestoreLink(e):(Vn.warn(ml),null)}))()}restoreFromToken(e){var t=this;return Kn((function*(){return t._conversationsManager?t._conversationsManager.restoreFromToken(e):(Vn.warn(ml),null)}))()}restoreFromUrlToken(){var e=this;return Kn((function*(){return e._conversationsManager?e._conversationsManager.restoreFromUrlToken():(Vn.warn(ml),null)}))()}getCurrentTicketId(){var e,t;return(e=(t=this._conversationsManager)==null?void 0:t.getCurrentTicketId())!==null&&e!==void 0?e:null}getWidgetSessionId(){var e,t;return(e=(t=this._conversationsManager)==null?void 0:t.getWidgetSessionId())!==null&&e!==void 0?e:null}un(){var e;(e=this._conversationsManager)==null||e.setIdentity()}hn(){var e;(e=this._conversationsManager)==null||e.clearIdentity()}}},oie={logs:class{constructor(e){var t;this.ia=!1,this.na=!1,this.Gt=So("[logs]"),this.sa=[],this.oa=0,this.aa=0,this.la=!1,this._instance=e,this._instance&&(t=this._instance.config.logs)!=null&&t.captureConsoleLogs&&(this.ia=!0)}initialize(){this.loadIfEnabled()}onRemoteConfig(e){var t,o=(t=e.logs)==null?void 0:t.captureConsoleLogs;!Pt(o)&&o&&(this.ia=!0,this.loadIfEnabled())}reset(){this.sa=[],this.jr&&(clearTimeout(this.jr),this.jr=void 0),this.oa=0,this.aa=0,this.la=!1}loadIfEnabled(){if(this.ia&&!this.na){var e=et?.__PosthogExtensions__;if(e){var t=e.loadExternalDependency;t?t(this._instance,"logs",(o=>{var a;o||(a=e.logs)==null||!a.initializeLogs?this.Gt.error("Could not load logs script",o):(e.logs.initializeLogs(this._instance),this.na=!0)})):this.Gt.error(qC)}else this.Gt.error("PostHog Extensions not found.")}}captureLog(e){var t,o,a,n,i,l;if(this._instance.is_capturing())if(e&&e.body){var c=(t=(o=this._instance.config.logs)==null?void 0:o.flushIntervalMs)!==null&&t!==void 0?t:3e3,u=(a=(n=this._instance.config.logs)==null?void 0:n.maxLogsPerInterval)!==null&&a!==void 0?a:1e3,p=Date.now();if(c>p-this.aa||(this.aa=p,this.oa=0,this.la=!1),u>this.oa){this.oa++;var g=(function(m,f){var v=m.level||"info",{text:b,number:S}=WB[v]||bne,C=String(Date.now())+"000000",w={};f.distinctId&&(w.posthogDistinctId=f.distinctId),f.sessionId&&(w.sessionId=f.sessionId),f.currentUrl&&(w["url.full"]=f.currentUrl),f.screenName&&(w["screen.name"]=f.screenName),f.appState&&(w["app.state"]=f.appState),f.activeFeatureFlags&&f.activeFeatureFlags.length>0&&(w.feature_flags=f.activeFeatureFlags);var _=Oe({},w,m.attributes||{}),E={timeUnixNano:C,observedTimeUnixNano:C,severityNumber:S,severityText:b,body:{stringValue:m.body},attributes:eO(_)};return m.trace_id&&(E.traceId=m.trace_id),m.span_id&&(E.spanId=m.span_id),Ve(m.trace_flags)||(E.flags=m.trace_flags),E})(e,this.ua());this.sa.push({record:g}),((i=(l=this._instance.config.logs)==null?void 0:l.maxBufferSize)!==null&&i!==void 0?i:100)>this.sa.length?this.ha():this.flushLogs()}else this.la||(this.Gt.warn("captureLog dropping logs: exceeded "+u+" logs per "+c+"ms"),this.la=!0)}else this.Gt.warn("captureLog requires a body")}get logger(){return this.ca||(this.ca={trace:(e,t)=>this.captureLog({body:e,level:"trace",attributes:t}),debug:(e,t)=>this.captureLog({body:e,level:"debug",attributes:t}),info:(e,t)=>this.captureLog({body:e,level:"info",attributes:t}),warn:(e,t)=>this.captureLog({body:e,level:"warn",attributes:t}),error:(e,t)=>this.captureLog({body:e,level:"error",attributes:t}),fatal:(e,t)=>this.captureLog({body:e,level:"fatal",attributes:t})}),this.ca}flushLogs(e){if(this.jr&&(clearTimeout(this.jr),this.jr=void 0),this.sa.length!==0){var t=this.sa;this.sa=[];var o=this._instance.config.logs,a=Oe({"service.name":o?.serviceName||"unknown_service"},o?.environment&&{"deployment.environment":o.environment},o?.serviceVersion&&{"service.version":o.serviceVersion},o?.resourceAttributes),n=(function(l,c,u,p){return{resourceLogs:[{resource:{attributes:eO(c)},scopeLogs:[{scope:{name:u,version:p},logRecords:l}]}]}})(t.map((l=>l.record)),a,Ka.LIB_NAME,Ka.LIB_VERSION),i=this._instance.requestRouter.endpointFor("api","/i/v1/logs")+"?token="+encodeURIComponent(this._instance.config.token);this._instance.Vi({method:"POST",url:i,data:n,compression:"best-available",batchKey:"logs",transport:e})}}ha(){var e,t;this.jr||(this.jr=setTimeout((()=>{this.jr=void 0,this.flushLogs()}),(e=(t=this._instance.config.logs)==null?void 0:t.flushIntervalMs)!==null&&e!==void 0?e:3e3))}ua(){var e,t={};if(t.distinctId=this._instance.get_distinct_id(),this._instance.sessionManager){var{sessionId:o}=this._instance.sessionManager.checkAndGetSessionAndWindowId(!0);t.sessionId=o}if(et!=null&&(e=et.location)!=null&&e.href&&(t.currentUrl=et.location.href),this._instance.featureFlags){var a=this._instance.featureFlags.getFlags();a&&a.length>0&&(t.activeFeatureFlags=a)}return t}}},aie=Oe({},$v,Gre,Kre,Wre,Yre,Zre,Jre,Qre,Xre,eie,tie,oie);Yn.__defaultExtensionClasses=Oe({},aie);var KO,Li=(KO=mp[Yc]=new Yn,(function(){function e(){e.done||(e.done=!0,A3=!1,ho(mp,(function(t){t._dom_loaded()})))}Be!=null&&Be.addEventListener?Be.readyState==="complete"?e():Yo(Be,"DOMContentLoaded",e,{capture:!1}):he&&ze.error("Browser doesn't support `document.addEventListener` so PostHog couldn't be initialized")})(),KO);const nie="studio-ui-resources",ev="html",rie=10080*60*1e3,iie=50,sie=16*1024*1024;function lie(e){return e[0]==="mcp"&&e[1]===BL}function qv(){return new Promise((e,t)=>{const o=indexedDB.open(nie,1);o.onupgradeneeded=()=>{o.result.objectStoreNames.contains(ev)||o.result.createObjectStore(ev)},o.onsuccess=()=>e(o.result),o.onerror=()=>t(o.error)})}function xd(e,t){return e.transaction(ev,t).objectStore(ev)}function Kw(e){return new Promise((t,o)=>{e.onsuccess=()=>t(e.result),e.onerror=()=>o(e.error)})}async function cie(e){if(!(typeof indexedDB>"u"))try{const t=await qv(),o=xd(t,"readonly"),a=await Kw(o.getAllKeys()),n=await Kw(o.getAll()),i=Date.now(),l=a.map((p,g)=>({key:p,value:n[g]})).sort((p,g)=>(g.value?.updatedAt??0)-(p.value?.updatedAt??0)),c=[];let u=0;for(const{key:p,value:g}of l){if(!g||i-g.updatedAt>rie||u>=iie){c.push(p);continue}u++;try{const f=JSON.parse(String(p));e.getQueryData(f)===void 0&&e.setQueryData(f,g.html,{updatedAt:0})}catch{c.push(p)}}if(c.length>0){const p=xd(t,"readwrite");for(const g of c)p.delete(g)}}catch{}}function die(e){if(typeof indexedDB>"u")return()=>{};const t=qv().catch(()=>null);return e.getQueryCache().subscribe(o=>{const a=o.query;if(!Array.isArray(a.queryKey)||!lie(a.queryKey)||a.state.status!=="success")return;const n=a.state.data;typeof n!="string"||n.length>sie||t.then(i=>{if(i)try{xd(i,"readwrite").put({html:n,updatedAt:Date.now()},JSON.stringify(a.queryKey))}catch{}})})}function uie(){typeof indexedDB>"u"||qv().then(e=>xd(e,"readwrite").clear()).catch(()=>{})}async function ive(e){if(!(typeof indexedDB>"u"))try{const t=await qv(),o=await Kw(xd(t,"readonly").getAllKeys()),a=xd(t,"readwrite");for(const n of o)try{const i=JSON.parse(String(n));i[1]===BL&&i[3]===e&&a.delete(n)}catch{}}catch{}}const tv="studio:rq-cache",ZC=1440*60*1e3,pie=1e3,mie=new Set(["publicConfig","ai-provider-keys","organization-settings","home-next-actions"]),gie=new Set(["VIRTUAL_MCP","CONNECTIONS"]);let j3=!1,U3=!1;function hie(e){const t=e[0];return typeof t=="string"&&mie.has(t)?!0:e[3]==="collection"&&typeof e[4]=="string"&&gie.has(e[4])}function fie(e){if(!(typeof window>"u"))try{const t=window.localStorage.getItem(tv);if(!t)return;const o=JSON.parse(t),a=!o.timestamp||Date.now()-o.timestamp>ZC;if(o.buster!=="4.373.2"||a||!o.state){window.localStorage.removeItem(tv);return}q$(e,o.state),e.invalidateQueries({queryKey:On.publicConfig(),refetchType:"none"}),j3=!0}catch{Sie()}}function vie(e){if(typeof window>"u")return()=>{};let t=null;const o=()=>{t=null;try{const i=$$(e,{shouldDehydrateQuery:l=>l.state.status==="success"&&hie(l.queryKey)});window.localStorage.setItem(tv,JSON.stringify({buster:"4.373.2",timestamp:Date.now(),state:i}))}catch{}},a=e.getQueryCache().subscribe(()=>{t==null&&(t=setTimeout(o,pie))}),n=()=>{t!=null&&(clearTimeout(t),o())};return window.addEventListener("pagehide",n),()=>{t!=null&&clearTimeout(t),window.removeEventListener("pagehide",n),a()}}const z3="studio:org-cache:",bie=20;function yie(e){const t=Date.now(),o=Object.entries(e).filter(([,a])=>t-a.updatedAt<=ZC);for(o.sort(([,a],[,n])=>a.updatedAt-n.updatedAt);o.length>bie;)o.shift();return Object.fromEntries(o)}function $3(e){return`${z3}${e}`}function sve(e,t){if(typeof window>"u")return null;try{const o=window.localStorage.getItem($3(e));if(!o)return null;const a=JSON.parse(o)[t];return!a||Date.now()-a.updatedAt>ZC?null:(U3=!0,a)}catch{return null}}function lve(e,t,o){if(!(typeof window>"u"))try{const a=$3(e),n=window.localStorage.getItem(a),i=n?JSON.parse(n):{};i[t]={data:o,updatedAt:Date.now()},window.localStorage.setItem(a,JSON.stringify(yie(i)))}catch{}}function Sie(){if(uie(),!(typeof window>"u"))try{window.localStorage.removeItem(tv);for(let e=window.localStorage.length-1;e>=0;e--){const t=window.localStorage.key(e);t?.startsWith(z3)&&window.localStorage.removeItem(t)}}catch{}}function Tie(){return j3}function wie(){return U3}let Ai=!1,Ww=null,WO=!1;const QC="studio:lp-distinct-id",q3="mesh:lp-distinct-id",M0="/api/_reports/link-token/",_ie=1440*60*1e3;function V3(e){const t="https://analytics.invalid",o=/^[a-z][a-z\d+.-]*:\/\//i.test(e),a=e.startsWith("//");try{const n=new URL(e,t);let i=!1;for(const l of["key","d"])n.searchParams.has(l)&&(n.searchParams.delete(l),i=!0);return n.pathname.startsWith(M0)&&n.pathname!==M0&&(n.pathname=`${M0}redacted`,i=!0),i?o?n.toString():a?`//${n.host}${n.pathname}${n.search}${n.hash}`:`${n.pathname}${n.search}${n.hash}`:e}catch{return e}}function L0(e){return Object.fromEntries(Object.entries(e).map(([t,o])=>[t,typeof o=="string"?V3(o):o]))}const Cie=e=>e?(e.properties=L0(e.properties),e.$set&&(e.$set=L0(e.$set)),e.$set_once&&(e.$set_once=L0(e.$set_once)),e):null;function H3(){try{const e=window.localStorage.getItem(QC)??window.localStorage.getItem(q3);if(!e)return;const{id:t,ts:o}=JSON.parse(e);return typeof t!="string"||!t||typeof o!="number"?void 0:Date.now()-o<=_ie?t:void 0}catch{return}}function Pie(){try{window.localStorage.removeItem(QC),window.localStorage.removeItem(q3)}catch{}}function xie(){try{const e=new URL(window.location.href),t=e.searchParams.get("ph_did");t&&(window.localStorage.setItem(QC,JSON.stringify({id:t,ts:Date.now()})),e.searchParams.delete("ph_did"),window.history.replaceState(window.history.state,"",e.toString()));const o=t??H3();return o?Object.keys(window.localStorage).some(n=>n.startsWith("ph_")&&n.endsWith("_posthog"))?void 0:o:void 0}catch{return}}function kie(e){const t=H3();if(t&&(Pie(),t!==e))try{Li.alias(t)}catch{}}function Eie(e,t){if(Ai||typeof window>"u")return;const o=xie();Li.init(e,{api_host:t,ui_host:"https://us.posthog.com",cross_subdomain_cookie:!0,...o?{bootstrap:{distinctID:o}}:{},capture_pageview:"history_change",capture_pageleave:!0,autocapture:!0,before_send:Cie,capture_performance:{web_vitals:!0,network_timing:!0},capture_exceptions:!0,session_recording:{maskAllInputs:!0,blockClass:"ph-no-capture",maskCapturedNetworkRequestFn:a=>({...a,...typeof a.name=="string"?{name:V3(a.name)}:{}})},person_profiles:"identified_only"}),Ai=!0}function Rie(e,t){Ai&&(Li.identify(e,t),kie(e))}function Aie(){Ai&&(Li.reset(),Ww=null)}function JC(e,t){Ai&&Li.capture(e,t)}function cve(){return Ai}function dve(){if(!Ai||WO||typeof performance>"u")return;WO=!0;const e=performance.getEntriesByType("navigation")[0],t=o=>{const a=performance.getEntriesByName(o,"measure")[0];return a?Math.round(a.duration):void 0};JC("perf_app_bootstrap",{nav_type:e?.type,ttfb_ms:e?Math.round(e.responseStart):void 0,dom_interactive_ms:e?Math.round(e.domInteractive):void 0,dom_content_loaded_ms:e?Math.round(e.domContentLoadedEventEnd):void 0,config_fetch_ms:t("studio:config-fetch"),active_org_fetch_ms:t("studio:active-org-fetch"),time_to_shell_ms:Math.round(performance.now()),cache_restored:Tie(),org_cache_restored:wie()})}function uve(e,t){Ai&&e!==Ww&&(Li.group("organization",e,t),Ww=e)}function G3(e,t){if(Ai)try{Li.captureException(e,t)}catch{}}const Die=["radial-gradient(ellipse 85% 85% at 0% 0%, rgba(165,149,255,0.6) 0%, transparent 72%)","radial-gradient(ellipse 85% 85% at 100% 100%, rgba(208,236,26,0.52) 0%, transparent 72%)","radial-gradient(ellipse 85% 85% at 0% 100%, rgba(255,193,22,0.48) 0%, transparent 72%)"].join(", ");function Oie(e){const t=Ne.c(3),{children:o}=e;let a;t[0]===Symbol.for("react.memo_cache_sentinel")?(a=T.jsx("div",{className:"absolute inset-0 pointer-events-none",style:{backgroundImage:Die}}),t[0]=a):a=t[0];let n;return t[1]!==o?(n=T.jsxs("div",{className:"relative flex items-center justify-center min-h-screen bg-background overflow-hidden",children:[a,T.jsx("div",{className:"relative flex flex-col items-center text-center space-y-4 max-w-sm px-6",children:o})]}),t[1]=o,t[2]=n):n=t[2],n}function K3(e){const t=Ne.c(20),{orgName:o}=e,a=ar(),n=Iie;let i;t[0]===Symbol.for("react.memo_cache_sentinel")?(i=T.jsx("div",{className:"bg-muted p-3 rounded-full",children:T.jsx(gB,{className:"h-6 w-6 text-muted-foreground"})}),t[0]=i):i=t[0];let l;t[1]!==a?(l=a("common.archivedOrgScreen.orgUnavailable"),t[1]=a,t[2]=l):l=t[2];let c;t[3]!==l?(c=T.jsx("h3",{className:"text-lg font-medium",children:l}),t[3]=l,t[4]=c):c=t[4];let u;t[5]!==o||t[6]!==a?(u=o?a("common.archivedOrgScreen.deletedWithName",{orgName:o}):a("common.archivedOrgScreen.deletedGeneric"),t[5]=o,t[6]=a,t[7]=u):u=t[7];let p;t[8]!==u?(p=T.jsx("p",{className:"text-sm text-muted-foreground",children:u}),t[8]=u,t[9]=p):p=t[9];let g;t[10]!==c||t[11]!==p?(g=T.jsxs("div",{className:"space-y-2",children:[c,p]}),t[10]=c,t[11]=p,t[12]=g):g=t[12];let m;t[13]!==a?(m=a("common.archivedOrgScreen.goHome"),t[13]=a,t[14]=m):m=t[14];let f;t[15]!==m?(f=T.jsx(Al,{onClick:n,children:m}),t[15]=m,t[16]=f):f=t[16];let v;return t[17]!==g||t[18]!==f?(v=T.jsxs(Oie,{children:[i,g,f]}),t[17]=g,t[18]=f,t[19]=v):v=t[19],v}function Iie(){window.location.href="/"}function Mie(){const e=Ne.c(3);let t;e[0]===Symbol.for("react.memo_cache_sentinel")?(t={from:"/shell/$org"},e[0]=t):t=e[0];const{org:o}=Rd(t);let a;return e[1]!==o?(a=T.jsx(Al,{variant:"outline",size:"sm",asChild:!0,children:T.jsx(Nl,{to:"/$org/settings/profile",params:{org:o},children:"Go to your profile"})}),e[1]=o,e[2]=a):a=e[2],a}function Lie(e){const t=Ne.c(13),{area:o,description:a,action:n}=e,i=o?`No access to ${o}`:"No access",l=a??"Your role doesn't include permission for this section. Ask an organization admin to update your role if you need it.";let c;t[0]===Symbol.for("react.memo_cache_sentinel")?(c=T.jsx("div",{className:"flex h-16 w-16 items-center justify-center rounded-full bg-muted text-muted-foreground",children:T.jsx(wB,{size:28})}),t[0]=c):c=t[0];let u;t[1]!==i?(u=T.jsx("h3",{className:"text-lg font-medium",children:i}),t[1]=i,t[2]=u):u=t[2];let p;t[3]!==l?(p=T.jsx("p",{className:"mx-auto max-w-sm text-sm text-muted-foreground",children:l}),t[3]=l,t[4]=p):p=t[4];let g;t[5]!==u||t[6]!==p?(g=T.jsxs("div",{className:"space-y-1",children:[u,p]}),t[5]=u,t[6]=p,t[7]=g):g=t[7];let m;t[8]!==n?(m=n??T.jsx(Mie,{}),t[8]=n,t[9]=m):m=t[9];let f;return t[10]!==g||t[11]!==m?(f=T.jsxs("div",{className:"flex h-full min-h-[60vh] flex-1 flex-col items-center justify-center gap-4 p-6 text-center",children:[c,g,m]}),t[10]=g,t[11]=m,t[12]=f):f=t[12],f}const YO="__studio_chunk_reload_ts";function W3(e){return e?.message==="Organization is archived"}function Nie(e){return!!e?.message?.includes("Access denied")}function ZO(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 Fie extends A.Component{state={hasError:!1,error:null};static getDerivedStateFromError(t){return{hasError:!0,error:t}}componentDidCatch(t,o){console.error("Uncaught error:",t,o),G3(t,{boundary:"default",error_name:t.name,error_message:t.message,component_stack:o.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,t:o}=this.props;return typeof t=="function"?t({error:this.state.error,resetError:this.resetError}):t!==void 0?t:W3(this.state.error)?T.jsx(K3,{}):Nie(this.state.error)?T.jsx(Lie,{}):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(MC,{className:"h-6 w-6 text-destructive"})}),T.jsxs("div",{className:"space-y-2",children:[T.jsx("h3",{className:"text-lg font-medium",children:o("common.errorBoundary.somethingWentWrong")}),T.jsx("p",{className:"text-sm text-muted-foreground max-w-xs mx-auto",children:this.state.error?.message||o("common.errorBoundary.unexpectedError")})]}),T.jsx(Al,{variant:"outline",onClick:this.resetError,children:o("common.errorBoundary.tryAgain")})]})}return this.props.children}}function Bie(e){const t=Ne.c(3),o=ar();let a;return t[0]!==e||t[1]!==o?(a=T.jsx(Fie,{...e,t:o}),t[0]=e,t[1]=o,t[2]=a):a=t[2],a}class jie extends A.Component{state={hasError:!1,error:null};static getDerivedStateFromError(t){return{hasError:!0,error:t}}componentDidCatch(t,o){console.error("Uncaught error:",t,o);const a=ZO(t);if(G3(t,{boundary:"chunk_root",is_chunk_load_error:a,error_name:t.name,error_message:t.message,component_stack:o.componentStack??null,route:typeof window<"u"?window.location.pathname:null}),!a)return;const n=sessionStorage.getItem(YO),i=Date.now();(!n||i-Number(n)>1e4)&&(sessionStorage.setItem(YO,String(i)),window.location.reload())}render(){const{t}=this.props;return this.state.hasError&&ZO(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(_B,{className:"h-6 w-6 text-primary"})}),T.jsxs("div",{className:"space-y-2",children:[T.jsx("h3",{className:"text-lg font-medium",children:t("common.errorBoundary.newVersionAvailable")}),T.jsx("p",{className:"text-sm text-muted-foreground max-w-xs mx-auto",children:t("common.errorBoundary.newVersionDeployed")})]}),T.jsx(Al,{onClick:()=>window.location.reload(),children:t("common.errorBoundary.refresh")})]}):this.state.hasError?W3(this.state.error)?T.jsx(K3,{}):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(MC,{className:"h-6 w-6 text-destructive"})}),T.jsxs("div",{className:"space-y-2",children:[T.jsx("h3",{className:"text-lg font-medium",children:t("common.errorBoundary.somethingWentWrong")}),T.jsx("p",{className:"text-sm text-muted-foreground max-w-xs mx-auto",children:this.state.error?.message||t("common.errorBoundary.unexpectedError")})]}),T.jsx(Al,{variant:"outline",onClick:()=>this.setState({hasError:!1,error:null}),children:t("common.errorBoundary.tryAgain")})]}):this.props.children}}function Uie(e){const t=Ne.c(3),o=ar();let a;return t[0]!==e||t[1]!==o?(a=T.jsx(jie,{...e,t:o}),t[0]=e,t[1]=o,t[2]=a):a=t[2],a}function zie(e){const t=Ne.c(8);let o,a;t[0]!==e?({className:o,...a}=e,t[0]=e,t[1]=o,t[2]=a):(o=t[1],a=t[2]);let n;t[3]!==o?(n=Nt("bg-card text-card-foreground flex flex-col gap-6 rounded-xl card-shadow",o),t[3]=o,t[4]=n):n=t[4];let i;return t[5]!==a||t[6]!==n?(i=T.jsx("div",{"data-slot":"card",className:n,...a}),t[5]=a,t[6]=n,t[7]=i):i=t[7],i}function pve(e){const t=Ne.c(4);let o;t[0]!==e?({...o}=e,t[0]=e,t[1]=o):o=t[1];let a;return t[2]!==o?(a=T.jsx("div",{"data-slot":"card-content",...o}),t[2]=o,t[3]=a):a=t[3],a}function mve(e){const t=Ne.c(12),{title:o,description:a,docsHref:n,actions:i,className:l,headerClassName:c,children:u}=e;let p;t[0]!==l?(p=Nt("flex flex-col gap-3",l),t[0]=l,t[1]=p):p=t[1];let g;t[2]!==i||t[3]!==a||t[4]!==n||t[5]!==c||t[6]!==o?(g=(o||a||n||i)&&T.jsxs("div",{className:Nt("flex items-center justify-between gap-3 px-4",c),children:[T.jsxs("div",{className:"flex flex-col gap-1 min-w-0",children:[o&&T.jsx("h2",{className:"text-[15px] font-medium leading-tight",children:o}),(a||n)&&T.jsxs("p",{className:"text-sm text-muted-foreground leading-snug",children:[a,n&&T.jsxs("a",{href:n,target:"_blank",rel:"noreferrer",className:"inline-flex items-center gap-0.5 ml-1 text-foreground hover:underline",children:["Docs ",T.jsx(hB,{size:12})]})]})]}),i&&T.jsx("div",{className:"shrink-0",children:i})]}),t[2]=i,t[3]=a,t[4]=n,t[5]=c,t[6]=o,t[7]=g):g=t[7];let m;return t[8]!==u||t[9]!==p||t[10]!==g?(m=T.jsxs("section",{className:p,children:[g,u]}),t[8]=u,t[9]=p,t[10]=g,t[11]=m):m=t[11],m}function gve(e){const t=Ne.c(11),{className:o,children:a}=e;let n,i,l;if(t[0]!==a||t[1]!==o){const u=A.Children.toArray(a).filter(A.isValidElement);n=zie,t[5]!==o?(i=Nt("p-0 gap-0 overflow-hidden",o),t[5]=o,t[6]=i):i=t[6],l=u.map($ie),t[0]=a,t[1]=o,t[2]=n,t[3]=i,t[4]=l}else n=t[2],i=t[3],l=t[4];let c;return t[7]!==n||t[8]!==i||t[9]!==l?(c=T.jsx(n,{className:i,children:l}),t[7]=n,t[8]=i,t[9]=l,t[10]=c):c=t[10],c}function $ie(e,t){return T.jsxs("div",{children:[t>0&&T.jsx("div",{className:"h-px bg-border mx-5"}),e]},t)}function hve(e){const t=Ne.c(27),{icon:o,title:a,description:n,action:i,onClick:l,className:c,children:u}=e,p=u?"flex items-start gap-3 px-4 py-4":"flex items-center gap-3 px-4 py-4",g=l&&"hover:bg-muted/50 cursor-pointer";let m;t[0]!==c||t[1]!==p||t[2]!==g?(m=Nt(p,g,c),t[0]=c,t[1]=p,t[2]=g,t[3]=m):m=t[3];const f=l?"button":void 0,v=l?0:void 0;let b;t[4]!==l?(b=l?k=>{k.target===k.currentTarget&&(k.key==="Enter"||k.key===" ")&&(k.preventDefault(),l())}:void 0,t[4]=l,t[5]=b):b=t[5];let S;t[6]!==o?(S=o&&T.jsx("div",{className:"size-8 shrink-0 rounded-lg bg-muted/60 flex items-center justify-center text-muted-foreground",children:o}),t[6]=o,t[7]=S):S=t[7];let C;t[8]!==a?(C=T.jsx("div",{className:"text-sm font-medium",children:a}),t[8]=a,t[9]=C):C=t[9];let w;t[10]!==n?(w=n&&T.jsx("p",{className:"text-xs text-muted-foreground mt-0.5 leading-relaxed",children:n}),t[10]=n,t[11]=w):w=t[11];let _;t[12]!==u||t[13]!==C||t[14]!==w?(_=T.jsxs("div",{className:"flex-1 min-w-0",children:[C,w,u]}),t[12]=u,t[13]=C,t[14]=w,t[15]=_):_=t[15];let E;t[16]!==i?(E=i&&T.jsx("div",{className:"shrink-0",onClick:qie,children:i}),t[16]=i,t[17]=E):E=t[17];let x;return t[18]!==l||t[19]!==_||t[20]!==E||t[21]!==m||t[22]!==f||t[23]!==v||t[24]!==b||t[25]!==S?(x=T.jsxs("div",{className:m,onClick:l,role:f,tabIndex:v,onKeyDown:b,children:[S,_,E]}),t[18]=l,t[19]=_,t[20]=E,t[21]=m,t[22]=f,t[23]=v,t[24]=b,t[25]=S,t[26]=x):x=t[26],x}function qie(e){return e.stopPropagation()}function fve(e){const t=Ne.c(5),{className:o,children:a}=e;let n;t[0]!==o?(n=Nt("px-4 py-4",o),t[0]=o,t[1]=n):n=t[1];let i;return t[2]!==a||t[3]!==n?(i=T.jsx("div",{className:n,children:a}),t[2]=a,t[3]=n,t[4]=i):i=t[4],i}function vve(e){const t=Ne.c(5),{children:o,className:a}=e;let n;t[0]!==a?(n=Nt("flex items-center justify-end gap-2 px-4 py-4",a),t[0]=a,t[1]=n):n=t[1];let i;return t[2]!==o||t[3]!==n?(i=T.jsx("div",{className:n,children:o}),t[2]=o,t[3]=n,t[4]=i):i=t[4],i}function Vie(e){const t=Ne.c(5),{className:o,children:a}=e;let n;t[0]!==o?(n=Nt("flex flex-col gap-10",o),t[0]=o,t[1]=n):n=t[1];let i;return t[2]!==a||t[3]!==n?(i=T.jsx("div",{className:n,children:a}),t[2]=a,t[3]=n,t[4]=i):i=t[4],i}const am={connect:{key:"connect",titleKey:"settings.connectClients.pageTitle",tabs:[],ownedRoutes:["/$org/settings/api-keys"]},members:{key:"members",titleKey:"orgs.members.title",tabs:[{key:"members",icon:xB,labelKey:"orgs.members.title",to:"/$org/settings/members",requires:"members:manage"},{key:"roles",icon:PB,labelKey:"settings.roles.pageTitle",to:"/$org/settings/roles",privilegedOnly:!0}]},billing:{key:"billing",titleKey:"settings.nav.billing",tabs:[{key:"ai-providers",icon:bB,labelKey:"settings.nav.aiProviders",to:"/$org/settings/ai-providers",requires:"ai-providers:manage"},{key:"infra",icon:CB,labelKey:"settings.subnav.infrastructure",to:"/$org/settings/infra-billing",requires:"members:manage",requiresOwnedSites:!0}]},repositories:{key:"repositories",titleKey:"settings.nav.repositories",tabs:[],ownedRoutes:["/$org/settings/repositories"]},storage:{key:"storage",titleKey:"settings.nav.storage",tabs:[{key:"buckets",icon:TB,labelKey:"settings.nav.buckets",to:"/$org/settings/buckets",requires:"file-configs:manage"},{key:"synced-repos",icon:SB,labelKey:"settings.nav.syncedRepos",to:"/$org/settings/synced-repos",requires:"file-configs:manage"}]}};function bve(e){const t=am[e];return[...t.tabs.map(o=>o.to),...t.ownedRoutes??[]]}function yve(e){return am[e].tabs.length>0}const Hie=new Set(["owner","admin"]);function Y3(){const e=Ne.c(11),{org:t,locator:o}=Wp();let a;e[0]!==o?(a=On.myCapabilities(o),e[0]=o,e[1]=a):a=e[1];let n;e[2]!==t?(n=async()=>{const g=await fetch(`/api/auth/custom/my-capabilities/${encodeURIComponent(t.slug)}`,{credentials:"include"});if(!g.ok)throw new Error(`my-capabilities request failed: ${g.status}`);return await g.json()},e[2]=t,e[3]=n):n=e[3];let i;e[4]!==a||e[5]!==n?(i={queryKey:a,queryFn:n,staleTime:3e4,retry:2},e[4]=a,e[5]=n,e[6]=i):i=e[6];const{data:l,isLoading:c,isError:u}=Dd(i);let p;return e[7]!==l||e[8]!==u||e[9]!==c?(p={data:l,loading:c,error:u},e[7]=l,e[8]=u,e[9]=c,e[10]=p):p=e[10],p}function Sve(e){const t=Ne.c(8),{data:o,loading:a,error:n}=Y3();if(a){let p;return t[0]===Symbol.for("react.memo_cache_sentinel")?(p={granted:!1,loading:!0,error:!1,reason:"loading"},t[0]=p):p=t[0],p}if(n){let p;return t[1]===Symbol.for("react.memo_cache_sentinel")?(p={granted:!1,loading:!1,error:!0,reason:"error"},t[1]=p):p=t[1],p}const i=o?.role??null;if(!i){let p;return t[2]===Symbol.for("react.memo_cache_sentinel")?(p={granted:!1,loading:!1,error:!1,reason:"denied"},t[2]=p):p=t[2],p}if(i==="owner"){let p;return t[3]===Symbol.for("react.memo_cache_sentinel")?(p={granted:!0,loading:!1,error:!1,reason:"owner"},t[3]=p):p=t[3],p}if(i==="admin"){let p;return t[4]===Symbol.for("react.memo_cache_sentinel")?(p={granted:!0,loading:!1,error:!1,reason:"admin"},t[4]=p):p=t[4],p}const l=o?.capabilities?.[e]===!0,c=l?"role":"denied";let u;return t[5]!==l||t[6]!==c?(u={granted:l,loading:!1,error:!1,reason:c},t[5]=l,t[6]=c,t[7]=u):u=t[7],u}function Z3(){const e=Ne.c(10),{data:t,loading:o,error:a}=Y3(),n=t?.role??void 0;let i;e[0]!==n?(i=n?Hie.has(n):!1,e[0]=n,e[1]=i):i=e[1];const l=i;let c;e[2]!==t?.capabilities?(c=t?.capabilities??{},e[2]=t?.capabilities,e[3]=c):c=e[3];const u=c;let p;return e[4]!==a||e[5]!==l||e[6]!==o||e[7]!==n||e[8]!==u?(p={capabilities:u,loading:o,error:a,isPrivileged:l,roleSlug:n},e[4]=a,e[5]=l,e[6]=o,e[7]=n,e[8]=u,e[9]=p):p=e[9],p}function Gie(){const e=Ne.c(13),{org:t}=Wp(),o=oC(),{capabilities:a,isPrivileged:n}=Z3(),i=n||!!a["members:manage"];let l;e[0]!==t.id?(l=On.infraBillingSites(t.id),e[0]=t.id,e[1]=l):l=e[1];const c=!!t.id&&i;let u;e[2]!==o?(u=()=>o.call("INFRA_BILLING_SITES_LIST",{}),e[2]=o,e[3]=u):u=e[3];let p;e[4]!==l||e[5]!==c||e[6]!==u?(p={queryKey:l,staleTime:3e5,enabled:c,queryFn:u},e[4]=l,e[5]=c,e[6]=u,e[7]=p):p=e[7];const{data:g,isLoading:m}=Dd(p);let f;e[8]!==g?.sites?(f=g?.sites.map(Kie)??[],e[8]=g?.sites,e[9]=f):f=e[9];let v;return e[10]!==m||e[11]!==f?(v={sites:f,isLoading:m},e[10]=m,e[11]=f,e[12]=v):v=e[12],v}function Kie(e){return e.slug}function Tve(){const e=Ne.c(7),t=oC(),o=ar();let a;e[0]!==t?(a=l=>t.call("INFRA_BILLING_PORTAL",{siteSlugs:l}),e[0]=t,e[1]=a):a=e[1];let n;e[2]!==o?(n=l=>Vr.error(o("settings.infraBilling.portalError",{message:l.message})),e[2]=o,e[3]=n):n=e[3];let i;return e[4]!==a||e[5]!==n?(i={mutationFn:a,onSuccess:Wie,onError:n},e[4]=a,e[5]=n,e[6]=i):i=e[6],lp(i)}function Wie(e){const{url:t}=e;return window.open(t,"_blank","noopener,noreferrer")}function wve(e,t){const o=Ne.c(14),{org:a}=Wp(),n=oC();let i,l,c;o[0]!==a.id||o[1]!==t||o[2]!==e?(i=[...e].sort(),c=Dd,l=On.infraBilling(a.id,i.join(","),t),o[0]=a.id,o[1]=t,o[2]=e,o[3]=i,o[4]=l,o[5]=c):(i=o[3],l=o[4],c=o[5]);const u=i.length>0;let p;o[6]!==t||o[7]!==i||o[8]!==n?(p=()=>n.call("INFRA_BILLING_GET",{siteSlugs:i,period:t}),o[6]=t,o[7]=i,o[8]=n,o[9]=p):p=o[9];let g;return o[10]!==l||o[11]!==u||o[12]!==p?(g={queryKey:l,enabled:u,staleTime:6e4,queryFn:p},o[10]=l,o[11]=u,o[12]=p,o[13]=g):g=o[13],c(g)}function Q3(){const e=Ne.c(7),{capabilities:t,isPrivileged:o,loading:a,error:n}=Z3(),{sites:i,isLoading:l}=Gie(),c=i.length>0;let u;if(e[0]!==t||e[1]!==n||e[2]!==o||e[3]!==a||e[4]!==c||e[5]!==l){const p=g=>g.requiresOwnedSites&&!c&&!l?!1:a||n?!0:g.privilegedOnly?o:g.requires?o||t[g.requires]:!0;u=Object.fromEntries(Object.values(am).map(g=>[g.key,g.tabs.filter(p)])),e[0]=t,e[1]=n,e[2]=o,e[3]=a,e[4]=c,e[5]=l,e[6]=u}else u=e[6];return u}function Yie(e){const t=Ne.c(16),{group:o}=e,a=ar();let n;t[0]===Symbol.for("react.memo_cache_sentinel")?(n={from:"/shell/$org"},t[0]=n):n=t[0];const{org:i}=Rd(n);let l;t[1]===Symbol.for("react.memo_cache_sentinel")?(l={select:Zie},t[1]=l):l=t[1];const c=gv(l),u=Q3()[o],{titleKey:p}=am[o];let g;t[2]!==a||t[3]!==p?(g=a(p),t[2]=a,t[3]=p,t[4]=g):g=t[4];let m;t[5]!==g?(m=T.jsx(xl.Title,{children:g}),t[5]=g,t[6]=m):m=t[6];let f;t[7]!==o||t[8]!==i||t[9]!==c||t[10]!==a||t[11]!==u?(f=u.length>1&&T.jsx(ea.Toolbar.Left.Portal,{children:T.jsx(xl.Tabs,{"data-testid":"settings-subnav","aria-label":a("settings.subnav.ariaLabel"),children:u.map(b=>{const S=b.to.replace("$org",i),C=c===S||c.startsWith(`${S}/`);return T.jsx(xl.Tab,{active:C,asChild:!0,children:T.jsx(Nl,{to:b.to,params:{org:i},onClick:()=>JC("settings_subnav_clicked",{group_key:o,tab_key:b.key}),children:a(b.labelKey)})},b.key)})})}),t[7]=o,t[8]=i,t[9]=c,t[10]=a,t[11]=u,t[12]=f):f=t[12];let v;return t[13]!==m||t[14]!==f?(v=T.jsxs(T.Fragment,{children:[m,f]}),t[13]=m,t[14]=f,t[15]=v):v=t[15],v}function Zie(e){return e.location.pathname}function Qie(e){const t=Ne.c(16),{group:o}=e,a=ar();let n;t[0]===Symbol.for("react.memo_cache_sentinel")?(n={from:"/shell/$org"},t[0]=n):n=t[0];const{org:i}=Rd(n);let l;t[1]===Symbol.for("react.memo_cache_sentinel")?(l={select:Jie},t[1]=l):l=t[1];const c=gv(l),u=Q3()[o],{titleKey:p}=am[o];let g;t[2]!==a||t[3]!==p?(g=a(p),t[2]=a,t[3]=p,t[4]=g):g=t[4];let m;t[5]!==g?(m=T.jsx(xl.Title,{children:g}),t[5]=g,t[6]=m):m=t[6];let f;t[7]!==o||t[8]!==i||t[9]!==c||t[10]!==a||t[11]!==u?(f=u.length>1&&T.jsx("nav",{"data-slot":"settings-subnav","aria-label":a("settings.subnav.ariaLabel"),className:"bg-muted inline-flex h-10 w-fit items-center rounded-xl p-[3px] gap-0.5",children:u.map(b=>{const S=b.to.replace("$org",i),C=c===S||c.startsWith(`${S}/`);return T.jsx(Nl,{to:b.to,params:{org:i},onClick:()=>JC("settings_subnav_clicked",{group_key:o,tab_key:b.key}),className:Nt("inline-flex h-full items-center justify-center rounded-lg border border-transparent px-3 text-sm font-medium whitespace-nowrap transition-[color,box-shadow]",C?"bg-background text-foreground shadow-sm":"text-muted-foreground hover:text-foreground"),children:a(b.labelKey)},b.key)})}),t[7]=o,t[8]=i,t[9]=c,t[10]=a,t[11]=u,t[12]=f):f=t[12];let v;return t[13]!==m||t[14]!==f?(v=T.jsxs("div",{"data-slot":"settings-heading",className:"flex flex-col gap-4",children:[m,f]}),t[13]=m,t[14]=f,t[15]=v):v=t[15],v}function Jie(e){return e.location.pathname}function Xie(e){const t=Ne.c(3),o=sC();let a;return t[0]!==o||t[1]!==e?(a=o?T.jsx(Yie,{...e}):T.jsx(Qie,{...e}),t[0]=o,t[1]=e,t[2]=a):a=t[2],a}function J3(){const e=Ne.c(1);let t;return e[0]===Symbol.for("react.memo_cache_sentinel")?(t=T.jsxs("div",{"data-testid":"settings-content-loading",className:"flex flex-col gap-4",children:[T.jsx(vD,{className:"h-32 w-full"}),T.jsx(vD,{className:"h-32 w-full"})]}),e[0]=t):t=e[0],t}function ese(e){const t=Ne.c(14),{group:o,fallback:a,errorFallback:n,className:i,children:l}=e;let c;t[0]!==o?(c=T.jsx(Xie,{group:o}),t[0]=o,t[1]=c):c=t[1];let u;t[2]!==a?(u=a??T.jsx(J3,{}),t[2]=a,t[3]=u):u=t[3];let p;t[4]!==l||t[5]!==u?(p=T.jsx(A.Suspense,{fallback:u,children:l}),t[4]=l,t[5]=u,t[6]=p):p=t[6];let g;t[7]!==n||t[8]!==p?(g=T.jsx(Bie,{fallback:n,children:p}),t[7]=n,t[8]=p,t[9]=g):g=t[9];let m;return t[10]!==i||t[11]!==c||t[12]!==g?(m=T.jsx(xl,{children:T.jsx(xl.Content,{children:T.jsx(xl.Container,{children:T.jsxs(Vie,{className:i,children:[c,g]})})})}),t[10]=i,t[11]=c,t[12]=g,t[13]=m):m=t[13],m}function Ni(e){return function(){return T.jsx(ese,{group:e,children:T.jsx(J3,{})})}}function tse(e){try{localStorage.setItem(jl.lastLocation(),JSON.stringify(e))}catch{}}function ose(){try{const e=localStorage.getItem(jl.lastLocation());if(!e)return null;const t=JSON.parse(e);if(typeof t?.org=="string")return{org:t.org,taskId:typeof t.taskId=="string"?t.taskId:void 0,virtualmcpid:typeof t.virtualmcpid=="string"?t.virtualmcpid:void 0}}catch{}return null}function _ve(){try{localStorage.removeItem(jl.lastLocation())}catch{}}const Ot={home:"/$org/home",projects:"/$org/projects/$agentId",tasks:"/$org/tasks/{-$taskKey}",reports:"/$org/reports",library:"/$org/library",discover:"/$org/discover",orgIndex:"/$org/"},nt={root:Ot.projects,tasks:"/$org/projects/$agentId/tasks/{-$taskKey}",reports:"/$org/projects/$agentId/reports",siteEditor:"/$org/projects/$agentId/site-editor",siteEditorContent:"/$org/projects/$agentId/site-editor/content",siteEditorCode:"/$org/projects/$agentId/site-editor/code",automations:"/$org/projects/$agentId/automations",automation:"/$org/projects/$agentId/automations/$automationId",app:"/$org/projects/$agentId/apps/$connectionId/$toolName",view:"/$org/projects/$agentId/views/$viewId",outputFile:"/$org/projects/$agentId/outputs/file",outputDeck:"/$org/projects/$agentId/outputs/deck",libraryFile:"/$org/projects/$agentId/library/file",connectSources:"/$org/projects/$agentId/connect-sources",settings:"/$org/projects/$agentId/settings",assets:"/$org/projects/$agentId/assets",git:"/$org/projects/$agentId/git",hosting:"/$org/projects/$agentId/hosting",e2e:"/$org/projects/$agentId/e2e",analytics:"/$org/projects/$agentId/analytics",experiments:"/$org/projects/$agentId/experiments",monitor:"/$org/projects/$agentId/cdn"};function Cve(){const e=Ne.c(1);let t;return e[0]===Symbol.for("react.memo_cache_sentinel")?(t={select:ase},e[0]=t):t=e[0],gv(t)}function ase(e){return e.matches.at(-1)?.fullPath??""}const nse=new Map([[Ot.reports,"project-only"],[Ot.library,"org-only"]]);function Pve(e,t){const o=nse.get(e);return o===void 0?!0:o==="project-only"?t!==null:t===null}function xve(){const e=Ne.c(1);let t;return e[0]===Symbol.for("react.memo_cache_sentinel")?(t={select:rse},e[0]=t):t=e[0],gv(t)}function rse(e){return e.matches.findLast(ise)?.staticData.mainView}function ise(e){return e.staticData.mainView}function sf(e){return`agent-view:${encodeURIComponent(e)}`}function sse(e){if(!e?.startsWith("agent-view:"))return null;const t=e.slice(11);if(!t)return null;try{const o=decodeURIComponent(t);return o?{id:o}:null}catch{return null}}function X3(e){if(!e||!e.startsWith("automation:"))return null;const t=e.slice(11);return t?{id:t}:null}function XC(e,t){return`app:${e}:${t}`}function lse(e){if(!e||!e.startsWith("app:"))return null;const t=e.slice(4),o=t.indexOf(":");if(o<=0)return null;const a=t.slice(0,o),n=t.slice(o+1);return!a||!n?null:{connectionId:a,toolName:n}}function e4(e){return`deck:${encodeURIComponent(e)}`}function cse(e){if(!e||!e.startsWith("deck:"))return null;const t=e.slice(5);if(!t)return null;try{return{path:decodeURIComponent(t)}}catch{return null}}function t4(e){return`file:${encodeURIComponent(e)}`}function dse(e){if(!e||!e.startsWith("file:"))return null;const t=e.slice(5);if(!t)return null;try{return{key:decodeURIComponent(t)}}catch{return null}}function o4(e){return`library-file:${encodeURIComponent(e)}`}function use(e){if(!e||!e.startsWith("library-file:"))return null;const t=e.slice(13);if(!t)return null;try{return{path:decodeURIComponent(t)}}catch{return null}}function a4(e){return`code:${encodeURIComponent(e)}`}function pse(e){if(!e)return null;if(e==="code")return{path:null};if(!e.startsWith("code:"))return null;const t=e.slice(5);if(!t)return null;try{return{path:decodeURIComponent(t)}}catch{return null}}const n4=["overview","settings","automations","site-editor","code","content","assets","hosting","e2e","analytics","cdn","git"],mse=new Set(n4),r4=new Set(["hosting","e2e","analytics","cdn"]),gse=new Set(["board","files","connect-sources","reports"]);function kve(e){return e.startsWith("app:")||e.startsWith("automation:")||e.startsWith("file:")||e.startsWith("deck:")||e.startsWith("library-file:")||e.startsWith("code:")}const hse=new Map([["preview","site-editor"]]);function Vv(e){return hse.get(e)??e}const eP=new Set(["instructions","connections","layout","settings"]);function fse(e){return!!e&&eP.has(e)}const vse=new Set(["overview","board","reports"]);function Eve(e){const t=e?.defaultMainView??null;if(!(!t||t.type==="chat"))return i4(e??null)}function i4(e){const t=e?.defaultMainView??null;if(!t)return"settings";const o=Vv(t.type);if(eP.has(o))return"settings";if(mse.has(o)||vse.has(o))return o;if(o==="ext-app"||o==="ext-apps"){if(t.id&&t.toolName)return XC(t.id,t.toolName);const n=e?.tabs?.map(i=>i.id)??[];return t.id&&n.includes(t.id)?sf(t.id):n[0]?sf(n[0]):"settings"}const a=e?.tabs?.[0]?.id;return a?sf(a):"settings"}function Rve(e){const t=e.routeDefaultMain||i4(e.metadata),o=e.panelTabId&&eP.has(e.panelTabId)?"settings":e.panelTabId?Vv(e.panelTabId):e.panelTabId,a=e.metadata?.defaultMainView??null,n=a==null||a.type==="chat";return{mainOpen:e.mainPanelParam??(!!o||!!e.routeDefaultMain||!n),activeTab:o??t}}function Ave(e){return e.mainOpen&&e.clickedId===e.activeTab?{close:!0}:{tabId:e.clickedId}}function Dve(e){return e.mainOpen?e.activeTab==="automations"?!0:X3(e.activeTab)!==null:!1}function Ove(e){return e.mainOpen&&e.activeTab==="automations"?{close:!0}:{tabId:"automations"}}const bse=new Set([...n4.filter(e=>!r4.has(e)),...gse,"app","file","deck","library-file","connect-sources","instructions","connections","layout","preview","discover"]);function yse(e){return!!e&&bse.has(e)}function Sse(e,t){if(e)switch(e){case"app":return t.connection&&t.tool?XC(t.connection,t.tool):void 0;case"automations":return t.automation?`automation:${t.automation}`:"automations";case"file":return t.key?t4(t.key):void 0;case"deck":return t.deck?e4(t.deck):void 0;case"library-file":return t.path?o4(t.path):void 0;case"code":return t.file?a4(t.file):"code";default:{const o=Vv(e);return o==="site-editor"&&t.main==="content"?"content":o}}}function Ive(e){const t=e.params??{},o=e.search??{};if(e.siteEditorView==="content")return"content";if(e.siteEditorView==="code")return o.file?a4(o.file):"code";if(e.siteEditorView==="preview")return"site-editor";switch(e.mainView){case"automation":return t.automationId?`automation:${t.automationId}`:"automations";case"app":return t.connectionId&&t.toolName?XC(t.connectionId,t.toolName):void 0;case"view":return t.viewId?sf(t.viewId):void 0;case"file":return o.key?t4(o.key):void 0;case"deck":return o.path?e4(o.path):void 0;case"library-file":return o.path?o4(o.path):void 0;default:return e.mainView}}const Tse={files:"library",discover:"discover"},wse={board:"tasks",reports:"reports"},_se={settings:"settings",assets:"assets",git:"git",hosting:"hosting",e2e:"e2e",analytics:"analytics",experiments:"experiments",cdn:"monitor"};function s4(e){const t=sse(e);if(t)return{kind:"agent-view",viewId:t.id};const o=lse(e);if(o)return{kind:"app",connectionId:o.connectionId,toolName:o.toolName};const a=X3(e);if(a)return{kind:"automations",automationId:a.id};const n=dse(e);if(n)return{kind:"output-file",key:n.key};const i=cse(e);if(i)return{kind:"output-deck",path:i.path};const l=use(e);if(l)return{kind:"library-file",path:l.path};const c=pse(e);if(c)return{kind:"site-editor",view:"code",...c.path?{file:c.path}:{}};if(fse(e))return{kind:"agent-section",section:"settings"};const u=Vv(e);if(u==="overview")return{kind:"agent-overview"};if(u==="site-editor")return{kind:"site-editor",view:"preview"};if(u==="content")return{kind:"site-editor",view:"content"};if(u==="automations")return{kind:"automations"};if(u==="connect-sources")return{kind:"connect-sources"};const p=wse[u];if(p)return{kind:"project-destination",destination:p};const g=Tse[u];if(g)return{kind:"org-destination",destination:g};const m=_se[u];return m?{kind:"agent-section",section:m}:{kind:"agent-view",viewId:u}}function Il(e){const{org:t,agentId:o}=e,a={org:t,agentId:o},n=s4(e.tabId);switch(n.kind){case"project-destination":return e.destinationScope==="organization"?n.destination==="tasks"?{to:Ot.tasks,params:{org:t,taskKey:void 0},search:{}}:{to:Ot.reports,params:{org:t},search:{}}:n.destination==="tasks"?{to:nt.tasks,params:{...a,taskKey:void 0},search:{}}:{to:nt.reports,params:a,search:{}};case"org-destination":switch(n.destination){case"home":return{to:Ot.home,params:{org:t},search:{}};case"discover":return{to:Ot.discover,params:{org:t},search:{}};case"library":return{to:Ot.library,params:{org:t},search:{}}}case"agent-overview":return{to:nt.root,params:a,search:{}};case"site-editor":return n.view==="content"?{to:nt.siteEditorContent,params:a,search:{}}:n.view==="code"?{to:nt.siteEditorCode,params:a,search:{file:n.file}}:{to:nt.siteEditor,params:a,search:{}};case"agent-section":return{to:nt[n.section],params:a,search:{}};case"automations":return n.automationId?{to:nt.automation,params:{...a,automationId:n.automationId},search:{}}:{to:nt.automations,params:a,search:{}};case"app":return{to:nt.app,params:{...a,connectionId:n.connectionId,toolName:n.toolName},search:{}};case"agent-view":return{to:nt.view,params:{...a,viewId:n.viewId},search:{}};case"output-file":return{to:nt.outputFile,params:a,search:{key:n.key}};case"output-deck":return{to:nt.outputDeck,params:a,search:{path:n.path}};case"library-file":return{to:nt.libraryFile,params:a,search:{path:n.path}};case"connect-sources":return{to:nt.connectSources,params:a,search:{}}}}function Mve(e){if(!e.agentId||e.agentId===e.superAgentId&&(e.tabId===void 0||e.tabId==="overview"))return{to:Ot.home,params:{org:e.org},search:{}};const t=e.tabId??"overview",o=e.agentId!==e.superAgentId&&s4(t).kind==="org-destination"?"overview":t;return Il({org:e.org,agentId:e.agentId,tabId:o,destinationScope:e.agentId===e.superAgentId?"organization":"project"})}function Cse(e,t,o={}){const a=i=>({...o.search?.(i)??{},...t.search}),n=o.replace??!0;switch(t.to){case Ot.tasks:e({to:Ot.tasks,params:t.params,search:a,replace:n});return;case Ot.home:e({to:Ot.home,params:t.params,search:a,replace:n});return;case Ot.reports:e({to:Ot.reports,params:t.params,search:a,replace:n});return;case Ot.discover:e({to:Ot.discover,params:t.params,search:a,replace:n});return;case Ot.library:e({to:Ot.library,params:t.params,search:a,replace:n});return;case nt.root:e({to:nt.root,params:t.params,search:a,replace:n});return;case nt.tasks:e({to:nt.tasks,params:t.params,search:a,replace:n});return;case nt.reports:e({to:nt.reports,params:t.params,search:a,replace:n});return;case nt.siteEditor:e({to:nt.siteEditor,params:t.params,search:a,replace:n});return;case nt.siteEditorContent:e({to:nt.siteEditorContent,params:t.params,search:a,replace:n});return;case nt.siteEditorCode:e({to:nt.siteEditorCode,params:t.params,search:a,replace:n});return;case nt.automations:e({to:nt.automations,params:t.params,search:a,replace:n});return;case nt.automation:e({to:nt.automation,params:t.params,search:a,replace:n});return;case nt.app:e({to:nt.app,params:t.params,search:a,replace:n});return;case nt.view:e({to:nt.view,params:t.params,search:a,replace:n});return;case nt.outputFile:e({to:nt.outputFile,params:t.params,search:a,replace:n});return;case nt.outputDeck:e({to:nt.outputDeck,params:t.params,search:a,replace:n});return;case nt.libraryFile:e({to:nt.libraryFile,params:t.params,search:a,replace:n});return;case nt.connectSources:e({to:nt.connectSources,params:t.params,search:a,replace:n});return;case nt.settings:case nt.assets:case nt.git:case nt.hosting:case nt.e2e:case nt.analytics:case nt.experiments:case nt.monitor:e({to:t.to,params:t.params,search:a,replace:n})}}function Lve(e,t){Cse(e,Il(t),t)}function Pse(e){const t=/^(\/[^/]+)\/agents(?=\/|$)/.exec(e);return t?.[1]?`${t[1]}/projects${e.slice(t[0].length)}`:null}function xse(e){const t=e.split("/").filter(Boolean);return(t[1]==="projects"||t[1]==="agents")&&t.length>3}const kse=new Set(["main","virtualmcpid","file","key","deck","path","connection","tool","automation"]),l4=new Set(["main"]),Ese=new Set(["virtualmcpid"]);function Hv(e,t){return Object.fromEntries(Object.entries(e).filter(([o])=>!t.has(o)))}function El(e,t){return{...Hv(e,kse),...t.search}}function Rse(e){return Hv(e,Ese)}function Nve(e){if(e.search.virtualmcpid===void 0)return null;const t=yr(e.search.virtualmcpid);if(t){const o=e.routePath===Ot.tasks?"board":e.routePath===Ot.reports?"reports":null;if(e.routePath===Ot.home||o){const a=o?Il({org:e.org,agentId:t,tabId:o}):kd(e.org,t);return{kind:"canonical",route:a,search:El(e.search,a)}}}return e.routePath===Ot.home||e.routePath===Ot.tasks||e.routePath===Ot.reports||e.routePath===Ot.library?{kind:"same-route",search:Rse(e.search)}:null}function yr(e){return e?.trim()||void 0}function c4(e){return yse(e)||e!==void 0&&r4.has(e)}function d4(e){const t=yr(e);return t?t.startsWith("vir_")&&t.length>4||QG(t)!==null||oK(t)!==null||nK(t)!==null||rK(t)!==null||iK(t)||cK(t):!1}function Ase(e){const t=yr(e.agentIdParam),o=c4(t);return t&&!o?t:yr(e.virtualMcpIdSearch)??yr(e.fallbackAgentId)}function Fve(e){const t=e.pathAgentId;if(t&&e.pathLegacyView){const l=Yw({org:e.org,agentId:t,panel:e.pathLegacyView,source:"project-first",search:e.search});return l?.kind==="canonical"?{route:l.route,search:l.search}:null}if(!t||xse(e.pathname))return null;const o=e.search.virtualmcpid!==void 0&&!d4(t);if(!(c4(t)||o))return null;const n=Ase({agentIdParam:o?void 0:t,virtualMcpIdSearch:e.search.virtualmcpid,fallbackAgentId:e.fallbackAgentId}),i=Yw({org:e.org,agentId:n,panel:t,source:"view-first",search:e.search});return i?.kind==="canonical"?{route:i.route,search:i.search}:null}function Dse(e,t,o,a){const n=yr(a);switch(e){case"board":return n?Il({org:t,agentId:n,tabId:"board"}):{to:Ot.tasks,params:{org:t,taskKey:void 0},search:{}};case"files":{const i=ys(o.path);return{to:Ot.library,params:{org:t},search:i?{path:i}:{}}}case"reports":return n?Il({org:t,agentId:n,tabId:"reports"}):{to:Ot.reports,params:{org:t},search:{}};case"overview":return{to:Ot.home,params:{org:t},search:{}};case"discover":return{to:Ot.discover,params:{org:t},search:{}};default:return null}}function Lp(e){const t=Dse(e.tabId,e.org,e.search,e.agentId);if(t)return t;if(e.tabId==="chat")return kd(e.org,e.agentId);const o=yr(e.agentId);return o?e.tabId==="app"||e.tabId==="file"||e.tabId==="deck"||e.tabId==="library-file"||e.tabId.trim()===""?{to:nt.root,params:{org:e.org,agentId:o},search:{}}:Il({org:e.org,agentId:o,tabId:e.tabId}):null}function kd(e,t){const o=yr(t);return o?{to:nt.root,params:{org:e,agentId:o},search:{}}:{to:Ot.home,params:{org:e},search:{}}}function Ose(e){const{main:t}=e;if(t===void 0)return null;const o=e.search??{};if(t===0||t==="0")return{kind:"same-route",search:{...Hv(o,l4),mainpanel:!1}};if(t==="chat"){const n=kd(e.org,e.agentId);return{kind:"canonical",route:n,search:{...El(o,n),sidepanel:!0,mainpanel:!1}}}const a=Lp({org:e.org,agentId:e.agentId,tabId:t,search:o});return a?{kind:"canonical",route:a,search:El(o,a)}:null}function ys(e){return typeof e=="string"&&e.length>0?e:void 0}function Yw(e){const t=e.search??{};if((t.main===0||t.main==="0")&&e.panel){const l=Yw({...e,search:Hv(t,l4)});return l?.kind!=="canonical"?l:{...l,search:{...l.search,mainpanel:!1}}}if(t.main!==void 0)return Ose({org:e.org,agentId:e.agentId,main:t.main,search:t});const o=yr(e.agentId),a=e.panel;if(!a){const l=kd(e.org,o);return{kind:"canonical",route:l,search:El(t,l)}}const n=Sse(a,{file:ys(t.file),key:ys(t.key),deck:ys(t.deck),path:ys(t.path),connection:ys(t.connection),tool:ys(t.tool),automation:ys(t.automation)}),i=n?e.source==="project-first"&&n==="overview"&&o?Il({org:e.org,agentId:o,tabId:n}):Lp({org:e.org,agentId:o,tabId:n,search:t}):Lp({org:e.org,agentId:o,tabId:"",search:t});return i?{kind:"canonical",route:i,search:n==="chat"?{...El(t,i),sidepanel:!0,mainpanel:!1}:El(t,i)}:null}function Bve(e){const t=e.search??{},o=yr(t.virtualmcpid),a=yr(e.fallbackAgentId),n=t.main;let i;if(n==="chat")i=kd(e.org,o);else if(n!==void 0&&n!==0&&n!=="0"){const l=Lp({org:e.org,agentId:o,tabId:n,search:t}),c=!l&&n.trim().length>0&&a?Lp({org:e.org,agentId:a,tabId:n,search:t}):null;i=l??c??{to:Ot.home,params:{org:e.org},search:{}}}else i=kd(e.org,o);return{route:i,search:{...El(t,i),...n===void 0&&t.sidepanel===void 0?{sidepanel:!0}:{},...n===0||n==="0"?{mainpanel:!1}:{},...n==="chat"?{sidepanel:!0,mainpanel:!1}:{},thread:e.taskId}}}function u4(e,t){if(t.task===void 0)return null;const{task:o,...a}=t;return{taskKey:e??(o.trim()||void 0),search:a}}const Ise={contentPageId:V().optional(),contentPath:V().optional(),contentPathTemplate:V().optional(),contentCollection:V().optional(),contentItem:V().optional()},p4=Ise,tP={view:V().optional(),q:V().optional(),assignee:V().optional(),priority:V().optional(),due:V().optional(),tags:V().optional(),repo:V().optional(),boardOrg:V().optional()},Zw={fileView:sa(["all","documents","media"]).catch("all").optional(),path:V().optional(),preview:V().optional(),skill:V().optional(),brand:V().optional()},Mse={file:V().optional(),key:V().optional(),deck:V().optional(),path:V().optional(),connection:V().optional(),tool:V().optional(),automation:V().optional(),section:V().optional(),preview:V().optional(),autosend:V().optional(),connect:_v().optional(),siteUrl:V().optional(),...p4},m4={...Mse,task:V().optional(),...tP,skill:Zw.skill,brand:Zw.brand},nm=_e(m4),pn=l$({component:()=>T.jsx(Uie,{children:T.jsx(x_,{})})}),Lse=Ie({getParentRoute:()=>pn,path:"/login",component:Ue(()=>je(()=>import("./login-gigmbDXu.js"),__vite__mapDeps([0,1,2,3,4,5,6]))),validateSearch:Gr(()=>_e({next:V().optional(),client_id:V().optional(),redirect_uri:V().optional(),response_type:V().optional(),state:V().optional(),scope:V().optional(),code_challenge:V().optional(),code_challenge_method:V().optional(),src:V().optional(),ref:V().optional()}))}),Nse=Ie({getParentRoute:()=>pn,path:"/cli/auth-success",component:Ue(()=>je(()=>import("./cli-auth-success-LIJhoLzG.js"),__vite__mapDeps([7,6])))}),Fse=Ie({getParentRoute:()=>pn,path:"/reset-password",component:Ue(()=>je(()=>import("./reset-password-CzGwWM54.js"),__vite__mapDeps([8,2]))),validateSearch:Gr(()=>_e({token:V().optional(),error:V().optional()}))}),Bse=Ie({getParentRoute:()=>pn,path:"/auth/$pathname",component:Ue(()=>je(()=>import("./auth-catchall-BM8U6OhG.js"),[]))}),jse=Ie({getParentRoute:()=>pn,path:"/oauth/callback",component:Ue(()=>je(()=>import("./oauth-callback-Ckn9o5ws.js"),__vite__mapDeps([9,10,11])))}),Use=Ie({getParentRoute:()=>pn,path:"/oauth/callback/ai-provider",component:Ue(()=>je(()=>import("./oauth-callback-ai-provider-B7dYzzRe.js"),[]))}),rm=Ie({getParentRoute:()=>pn,path:"/_admin",component:Ue(()=>je(()=>import("./layout-UcqeKFE9.js"),__vite__mapDeps([12,13,14])))}),zse=Ie({getParentRoute:()=>rm,path:"/",beforeLoad:()=>{throw Qo({to:"/_admin/users"})}}),$se=Ie({getParentRoute:()=>rm,path:"/users",component:Ue(()=>je(()=>import("./users-CP4Dfulp.js"),__vite__mapDeps([15,16,17,18,19,20,21,22,23,24,25,26,27,28,29])))}),qse=Ie({getParentRoute:()=>rm,path:"/orgs",component:Ue(()=>je(()=>import("./orgs-C8VfgzyW.js"),__vite__mapDeps([30,16,17,18,19,20,21,2,31,25,32,33,34,35,36,37,38,24,39,40,26,27,28])))}),Vse=Ie({getParentRoute:()=>rm,path:"/prompts",component:Ue(()=>je(()=>import("./prompts-BrLG0HnD.js"),__vite__mapDeps([41,19,2,31,38,26])))}),Hse=rm.addChildren([zse,$se,qse,Vse]),oP=Ie({getParentRoute:()=>pn,id:"shell",component:Ue(()=>je(()=>import("./shell-layout-p-WJ7uxl.js").then(e=>e.e),__vite__mapDeps([42,22,23,43,44,45,46,47,18,48,49,50,51,52,53,36,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,21,75,76,77,78,79,33,80,81,32,82,83,84,11,85,86,87,88,89,90,91,92,5,93,39,3,13,94,95,96,97])))}),Gse=Ie({getParentRoute:()=>oP,path:"/",beforeLoad:async()=>{const e=ose();if(e)throw Qo({to:"/$org",params:{org:e.org}});const t=localStorage.getItem(jl.lastOrgSlug());if(t)throw Qo({to:"/$org",params:{org:t}});const{data:o}=await tN();if(!o)return;const a=o[0];throw Qo(a?{to:"/$org",params:{org:a.slug}}:{to:"/onboarding"})}}),Kse=Ie({getParentRoute:()=>pn,path:"/onboarding",beforeLoad:async()=>{const{data:e}=await tN();if(e&&e.length>0)throw Qo({to:"/"})},component:Ue(()=>je(()=>import("./onboarding-BtLLloCy.js"),__vite__mapDeps([98,13,6,99,22,23,74,2,31,37,43,53,72,77])))}),g4=Gr(()=>_e({org:V().optional(),siteUrl:V().optional()})),Wse=Ie({getParentRoute:()=>pn,path:"/reports-onboarding",component:Ue(()=>je(()=>import("./reports-onboarding-BORIliYh.js"),__vite__mapDeps([100,101,1,2,3,4,5,6,99,22,23,74,102,103,104,31,105,84,11,106,90,49,45,46,47,18,48,50,51,52,43,53,36,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,44,21,75,76,77,78,79,33,80,32,107,35,108,109,110,111,25,112,113,114,115,116,10,117,118,119]))),validateSearch:g4}),Yse=Ie({getParentRoute:()=>pn,path:"/commerce-onboarding",validateSearch:g4,beforeLoad:({search:e})=>{throw Qo({to:"/reports-onboarding",search:e})}}),Zse=Ie({getParentRoute:()=>pn,path:"/choose-editor",component:Ue(()=>je(()=>import("./choose-editor-DD3-fBUp.js"),__vite__mapDeps([120,45,46,47,18,48,49,50,51,52,43,53,36,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,44,21,75,76,77,23,78,79,33,80,13]))),validateSearch:Gr(()=>_e({site:V().optional(),domain:V().optional(),pageId:V().optional(),path:V().optional(),pathTemplate:V().optional()}))}),Qse=Ie({getParentRoute:()=>pn,path:"/report/$domain",component:Ue(()=>je(()=>import("./reports-Bgxd82xF.js"),__vite__mapDeps([121,1,2,3,4,5,117,46,18,50,51,53,60,67,71,44,75,79,80,122]))),validateSearch:Gr(()=>_e({key:V().optional()}))}),Gv=Ie({getParentRoute:()=>oP,path:"/$org",beforeLoad:({params:e})=>{tse({org:e.org})},component:Ue(()=>je(()=>import("./route-DrZOVBG5.js"),__vite__mapDeps([123,124,66,125,126,33,107,35,127,128,129,87,86,82,83,84,11,85,130,92,5,93,39,45,46,47,18,48,49,50,51,52,43,53,36,54,55,56,57,58,59,60,61,62,63,64,65,67,68,69,70,71,72,73,74,44,21,75,76,77,23,78,79,80,42,22,81,32,88,89,90,91,3,13,94,95,96,97,131,132,14,133,104,31,34,38,134,135,136,137,138,139,140,141,142,143,144,29,27,28,102,103,2,145,146,147,40,148,149,150,151,152,153,154,155,25,156])))}),Kv=Ie({getParentRoute:()=>Gv,id:"org-shell",pendingComponent:Md,component:Ue(()=>je(()=>import("./thread-route-B3hhxYHj.js"),__vite__mapDeps([157,158,86,87,82,83,84,11,85,94,150,151,92,5,93,39,3,138,137,159,144,95,101,32,33,160,108,109,110,111,50,105,106,90,49,45,46,47,18,48,51,52,43,53,36,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,44,21,75,76,77,23,78,79,80,107,35,104,31,2,25,112,113,114,115,116,10,117,161,118])))}),Jse=_e({sidepanel:wN,mainpanel:_N,main:ro([V(),Ze(0)]).optional(),thread:V().optional(),autosend:V().optional(),preview:V().optional(),virtualmcpid:V().optional()}),nr=Ie({getParentRoute:()=>Kv,id:"agent-shell",validateSearch:Jse,search:{middlewares:[Iz(["sidepanel"])]},pendingComponent:Md,component:Ue(()=>je(()=>import("./route-Cyp-PzpR.js"),__vite__mapDeps([162,46,66,124,125,126,33,107,35,127,163,18,158,86,87,82,83,84,11,85,94,150,151,92,5,93,39,3,138,137,159,144,95,164,32,132,155,21,165,166,104,31,2,167,168,169,42,22,23,43,44,45,47,48,49,50,51,52,53,36,54,55,56,57,58,59,60,61,62,63,64,65,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,88,89,90,91,13,96,97,170,171,34,172,173,174,27,28,175,136,176,177,178,179,180,181,131,182,183,184,185,156,186,134,187,139,188,113,111,109,114,189,190,191,141,142,4,192,38,193,116,10,194,24,195,196,197,198,199,200,201,202,149,203,204,205,206,207,208,209,210,19,129,130,128,211,212,213,103,214,215,216,217,145,146,147,40,218,219,220,221,222,223,224,225,226])))}),Xse=nm.extend({virtualmcpid:V().optional()}),ele=Ie({getParentRoute:()=>nr,path:"/$taskId",validateSearch:Xse,component:()=>null}),uo=Ue(()=>je(()=>import("./index-Coo4IGyG.js").then(e=>e.i),__vite__mapDeps([211,125,129,124,66,126,33,107,35,87,86,82,83,84,11,85,130,92,5,93,39,45,46,47,18,48,49,50,51,52,43,53,36,54,55,56,57,58,59,60,61,62,63,64,65,67,68,69,70,71,72,73,74,44,21,75,76,77,23,78,79,80,127,128,42,22,81,32,88,89,90,91,3,13,94,95,96,97,212,213])),"ChatLayoutPending"),io=Ue(()=>je(()=>import("./index-Coo4IGyG.js").then(e=>e.i),__vite__mapDeps([211,125,129,124,66,126,33,107,35,87,86,82,83,84,11,85,130,92,5,93,39,45,46,47,18,48,49,50,51,52,43,53,36,54,55,56,57,58,59,60,61,62,63,64,65,67,68,69,70,71,72,73,74,44,21,75,76,77,23,78,79,80,127,128,42,22,81,32,88,89,90,91,3,13,94,95,96,97,212,213])),"ChatLayoutError"),tle=Ie({pendingComponent:uo,errorComponent:io,getParentRoute:()=>nr,path:"/home",staticData:{pageTitle:"sidebar.navDestinations.home",defaultMain:"overview",mainView:"overview"},validateSearch:_e({connect:_v().optional(),siteUrl:V().optional()}),component:Ue(()=>je(()=>import("./home-FAOklPf6.js"),__vite__mapDeps([227,211,125,129,124,66,126,33,107,35,87,86,82,83,84,11,85,130,92,5,93,39,45,46,47,18,48,49,50,51,52,43,53,36,54,55,56,57,58,59,60,61,62,63,64,65,67,68,69,70,71,72,73,74,44,21,75,76,77,23,78,79,80,127,128,42,22,81,32,88,89,90,91,3,13,94,95,96,97,212,213,169,166,164,104,31,2,167,168,170,171,150,151,158,138,137,159,144,34,172,173,174,27,28,175,136,176,177,178,179,180,181,131,132,182,183,184,165,185,156,186,134,187,139,188,155,113,111,109,114,189,190,191,141,142,4,192,38,193,116,10,194,24,195,196,19,152,149,153,154,25,228,229,143,29])))}),ole=Ie({getParentRoute:()=>nr,path:"/projects",validateSearch:nm,beforeLoad:({params:e,search:t})=>{const o=t.virtualmcpid?.trim();throw Qo(o?{to:"/$org/projects/$agentId",params:{org:e.org,agentId:o},search:a=>({...a,virtualmcpid:void 0}),hash:!0,replace:!0}:{to:"/$org/home",params:{org:e.org},search:a=>({...a,virtualmcpid:void 0}),hash:!0,replace:!0})}}),Oo=Ie({errorComponent:io,getParentRoute:()=>nr,path:"/projects/$agentId",validateSearch:nm,component:x_}),ale=Ie({pendingComponent:uo,errorComponent:io,getParentRoute:()=>Oo,path:"/",staticData:{pageTitle:"page.overview",defaultMain:"overview",mainView:"overview"},component:Ue(()=>je(()=>import("./agent-overview-C5zU0xJO.js"),__vite__mapDeps([230,211,125,129,124,66,126,33,107,35,87,86,82,83,84,11,85,130,92,5,93,39,45,46,47,18,48,49,50,51,52,43,53,36,54,55,56,57,58,59,60,61,62,63,64,65,67,68,69,70,71,72,73,74,44,21,75,76,77,23,78,79,80,127,128,42,22,81,32,88,89,90,91,3,13,94,95,96,97,212,213,160,108,109,110,111,231,143,144,229,154,149,150,151,29,186,134,27,28])))}),nle=Ie({pendingComponent:uo,errorComponent:io,getParentRoute:()=>Oo,path:"/tasks/{-$taskKey}",staticData:{pageTitle:"sidebar.navDestinations.tasks",defaultMain:"board",mainView:"board"},validateSearch:_e({task:V().optional(),...tP}),beforeLoad:({params:e,search:t})=>{const o=u4(e.taskKey,t);if(o)throw Qo({to:"/$org/projects/$agentId/tasks/{-$taskKey}",params:{org:e.org,agentId:e.agentId,taskKey:o?.taskKey??e.taskKey},search:o.search,hash:!0,replace:!0})},component:Ue(()=>je(()=>import("./project-tasks-DGYfz1Ev.js"),__vite__mapDeps([232,211,125,129,124,66,126,33,107,35,87,86,82,83,84,11,85,130,92,5,93,39,45,46,47,18,48,49,50,51,52,43,53,36,54,55,56,57,58,59,60,61,62,63,64,65,67,68,69,70,71,72,73,74,44,21,75,76,77,23,78,79,80,127,128,42,22,81,32,88,89,90,91,3,13,94,95,96,97,212,213,233,132,131,143,144,154,29,234,235,236,237,238,152,149,150,151,153,2,31,141,142,155,25,186,134,27,28,239,240,241,242,198,173,174,168,166,164,104,167,243,184,185,210,191,110,244,196,197,172,138,158,137,159,199,200,201,202,177,165,203,204,195,214,178,170,24,245,246,187,139])))}),rle=Ie({pendingComponent:uo,errorComponent:io,getParentRoute:()=>Oo,path:"/reports",staticData:{pageTitle:"sidebar.navDestinations.reports",defaultMain:"reports",mainView:"reports"},validateSearch:_e({connect:_v().optional(),siteUrl:V().optional()}),component:Ue(()=>je(()=>import("./project-reports-EFWj1j4Z.js"),__vite__mapDeps([247,211,125,129,124,66,126,33,107,35,87,86,82,83,84,11,85,130,92,5,93,39,45,46,47,18,48,49,50,51,52,43,53,36,54,55,56,57,58,59,60,61,62,63,64,65,67,68,69,70,71,72,73,74,44,21,75,76,77,23,78,79,80,127,128,42,22,81,32,88,89,90,91,3,13,94,95,96,97,212,213,248,101,2,160,108,109,110,111,231,118,119])))}),Wv=Ie({pendingComponent:uo,errorComponent:io,getParentRoute:()=>Oo,path:"/site-editor",staticData:{pageTitle:"sidebar.projectNav.siteEditor",defaultMain:"site-editor",mainView:"site-editor"},validateSearch:_e({autosend:V().optional(),...p4}),component:Ue(()=>je(()=>import("./agent-site-editor-BRzwUORk.js"),__vite__mapDeps([249,245,158,86,87,82,83,84,11,85,94,150,151,92,5,93,39,3,138,137,159,144,95,42,22,23,43,44,45,46,47,18,48,49,50,51,52,53,36,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,21,75,76,77,78,79,33,80,81,32,88,89,90,91,13,96,97,127,131,107,35,103,175,206,207,250,224,223,25,141,142,149,154,171,251,208,209,210,205,252,253,254,163,164,132,155,125,165,166,104,31,2,167,168,169,170,34,172,173,174,27,28,136,176,177,178,179,180,181,182,183,184,185,156,186,134,187,139,188,113,111,109,114,189,190,191,4,192,38,193,116,10,194,24,195,196,197,198,199,200,201,202,126,203,204,255,256,211,129,124,130,128,212,213,257])))}),ile=Ie({getParentRoute:()=>Wv,path:"/",staticData:{defaultMain:"site-editor",mainView:"site-editor",siteEditorView:"preview"},component:Ue(()=>je(()=>import("./agent-site-editor-preview-DqMQfEJz.js"),__vite__mapDeps([258,259,215,130,62,69,191,84,11,216,83,201,167,82,85,163,18,158,86,87,94,150,151,92,5,93,39,3,138,137,159,144,95,164,107,35,32,33,132,155,21,125,165,166,104,31,2,168,169,42,22,23,43,44,45,46,47,48,49,50,51,52,53,36,54,55,56,57,58,59,60,61,63,64,65,66,67,68,70,71,72,73,74,75,76,77,78,79,80,81,88,89,90,91,13,96,97,170,171,34,172,173,174,27,28,175,136,176,177,178,179,180,181,131,182,183,184,185,156,186,134,187,139,188,113,111,109,114,189,190,141,142,4,192,38,193,116,10,194,24,195,196,197,198,199,200,202,126,149,203,204,208,209,210,217,145,146,147,40,218,246,127,260,205,223,254,140,261,224,241,234,37,262,20,25,263,103,255,264,253,252,251,115,226,19,212,154,152,153])))}),sle=Ie({getParentRoute:()=>Wv,path:"/content",staticData:{defaultMain:"content",mainView:"content",siteEditorView:"content"},component:Ue(()=>je(()=>import("./agent-site-editor-content-Da0JfE-w.js").then(e=>e.C),__vite__mapDeps([265,259,215,130,62,69,191,84,11,216,83,201,167,82,85,163,18,158,86,87,94,150,151,92,5,93,39,3,138,137,159,144,95,164,107,35,32,33,132,155,21,125,165,166,104,31,2,168,169,42,22,23,43,44,45,46,47,48,49,50,51,52,53,36,54,55,56,57,58,59,60,61,63,64,65,66,67,68,70,71,72,73,74,75,76,77,78,79,80,81,88,89,90,91,13,96,97,170,171,34,172,173,174,27,28,175,136,176,177,178,179,180,181,131,182,183,184,185,156,186,134,187,139,188,113,111,109,114,189,190,141,142,4,192,38,193,116,10,194,24,195,196,197,198,199,200,202,126,149,203,204,208,209,210,217,145,146,147,40,218,246,103,140,260,205,223,254,261,224,241,234,37,262,20,25,263,255,266,19,154,152,153])))}),lle=Ie({getParentRoute:()=>Wv,path:"/code",staticData:{defaultMain:"code",mainView:"code",siteEditorView:"code"},validateSearch:_e({file:V().optional()}),component:Ue(()=>je(()=>import("./agent-site-editor-code-BV4iQvoi.js"),__vite__mapDeps([267,259,215,130,62,69,191,84,11,216,83,201,167,82,85,163,18,158,86,87,94,150,151,92,5,93,39,3,138,137,159,144,95,164,107,35,32,33,132,155,21,125,165,166,104,31,2,168,169,42,22,23,43,44,45,46,47,48,49,50,51,52,53,36,54,55,56,57,58,59,60,61,63,64,65,66,67,68,70,71,72,73,74,75,76,77,78,79,80,81,88,89,90,91,13,96,97,170,171,34,172,173,174,27,28,175,136,176,177,178,179,180,181,131,182,183,184,185,156,186,134,187,139,188,113,111,109,114,189,190,141,142,4,192,38,193,116,10,194,24,195,196,197,198,199,200,202,126,149,203,204,208,209,210,217,145,146,147,40,218,246,19])))}),cle=Ie({pendingComponent:uo,errorComponent:io,getParentRoute:()=>Oo,path:"/automations",staticData:{pageTitle:"settings.nav.automations",defaultMain:"automations",mainView:"automations"},beforeLoad:({params:e,search:t})=>{const o=t.automation;if(o)throw Qo({to:"/$org/projects/$agentId/automations/$automationId",params:{org:e.org,agentId:e.agentId,automationId:o},search:a=>({...a,automation:void 0}),hash:!0,replace:!0})},component:Ue(()=>je(()=>import("./agent-automations-BSaV8k3Y.js"),__vite__mapDeps([268,211,125,129,124,66,126,33,107,35,87,86,82,83,84,11,85,130,92,5,93,39,45,46,47,18,48,49,50,51,52,43,53,36,54,55,56,57,58,59,60,61,62,63,64,65,67,68,69,70,71,72,73,74,44,21,75,76,77,23,78,79,80,127,128,42,22,81,32,88,89,90,91,3,13,94,95,96,97,212,213,20,19,269,270,103])))}),dle=Ie({pendingComponent:uo,errorComponent:io,getParentRoute:()=>Oo,path:"/automations/$automationId",staticData:{pageTitle:"settings.nav.automations",defaultMain:"automations",mainView:"automation"},validateSearch:_e({automationView:sa(["settings","runs"]).optional()}),component:Ue(()=>je(()=>import("./agent-automation-C8r5_lAR.js"),__vite__mapDeps([271,211,125,129,124,66,126,33,107,35,87,86,82,83,84,11,85,130,92,5,93,39,45,46,47,18,48,49,50,51,52,43,53,36,54,55,56,57,58,59,60,61,62,63,64,65,67,68,69,70,71,72,73,74,44,21,75,76,77,23,78,79,80,127,128,42,22,81,32,88,89,90,91,3,13,94,95,96,97,212,213,24,180,37,131,164,191,216,272,132,158,150,151,138,137,159,144,179,2,34,181,182,273,269,198,274,183,184,166,104,31,167,168,165,185,175,261,224,103,275,141,142,17,19,195,186,134,214,244,196,197,27,28,173,172,174,199,200,201,202,177,149,203,204,194])))}),ule=Ie({pendingComponent:uo,errorComponent:io,getParentRoute:()=>Oo,path:"/settings",staticData:{pageTitle:"sidebar.navDestinations.settings",defaultMain:"settings",mainView:"settings"},component:Ue(()=>je(()=>import("./agent-settings-G7qQl7Yj.js"),__vite__mapDeps([276,211,125,129,124,66,126,33,107,35,87,86,82,83,84,11,85,130,92,5,93,39,45,46,47,18,48,49,50,51,52,43,53,36,54,55,56,57,58,59,60,61,62,63,64,65,67,68,69,70,71,72,73,74,44,21,75,76,77,23,78,79,80,127,128,42,22,81,32,88,89,90,91,3,13,94,95,96,97,212,213,277,2,131,140,34,240,113,111,109,114,158,150,151,138,137,159,144,273,19,278,28,191,10,103,38,274,188,155,189,190,141,142,4,192,132,104,31,193,116,194,24,195,196,204,185,180,20,279,201,216,165,167,37,145,146,147,40,148,218,152,149,153,154,25,209,280,202,207])))}),ple=Ie({pendingComponent:uo,errorComponent:io,getParentRoute:()=>Oo,path:"/assets",staticData:{pageTitle:"common.mainPanelTabs.assets",defaultMain:"assets",mainView:"assets"},component:Ue(()=>je(()=>import("./agent-assets-Dfpjbzyj.js"),__vite__mapDeps([281,211,125,129,124,66,126,33,107,35,87,86,82,83,84,11,85,130,92,5,93,39,45,46,47,18,48,49,50,51,52,43,53,36,54,55,56,57,58,59,60,61,62,63,64,65,67,68,69,70,71,72,73,74,44,21,75,76,77,23,78,79,80,127,128,42,22,81,32,88,89,90,91,3,13,94,95,96,97,212,213,259,215,191,216,201,167,163,158,150,151,138,137,159,144,164,132,155,165,166,104,31,2,168,169,170,171,34,172,173,174,27,28,175,136,176,177,178,179,180,181,131,182,183,184,185,156,186,134,187,139,188,113,111,109,114,189,190,141,142,4,192,38,193,116,10,194,24,195,196,197,198,199,200,202,149,203,204,208,209,210,217,145,146,147,40,218,103,20,25,263])))}),mle=Ie({pendingComponent:uo,errorComponent:io,getParentRoute:()=>Oo,path:"/git",staticData:{pageTitle:"common.mainPanelTabs.reviewChanges",defaultMain:"git",mainView:"git"},component:Ue(()=>je(()=>import("./agent-git-BZmL1C91.js"),__vite__mapDeps([282,211,125,129,124,66,126,33,107,35,87,86,82,83,84,11,85,130,92,5,93,39,45,46,47,18,48,49,50,51,52,43,53,36,54,55,56,57,58,59,60,61,62,63,64,65,67,68,69,70,71,72,73,74,44,21,75,76,77,23,78,79,80,127,128,42,22,81,32,88,89,90,91,3,13,94,95,96,97,212,213,259,215,191,216,201,167,163,158,150,151,138,137,159,144,164,132,155,165,166,104,31,2,168,169,170,171,34,172,173,174,27,28,175,136,176,177,178,179,180,181,131,182,183,184,185,156,186,134,187,139,188,113,111,109,114,189,190,141,142,4,192,38,193,116,10,194,24,195,196,197,198,199,200,202,149,203,204,208,209,210,217,145,146,147,40,218,250,224,223,255])))}),gle=Ie({pendingComponent:uo,errorComponent:io,getParentRoute:()=>Oo,path:"/hosting",staticData:{pageTitle:"common.mainPanelTabs.hosting",defaultMain:"hosting",mainView:"hosting"},component:Ue(()=>je(()=>import("./agent-hosting-CP9gImki.js"),__vite__mapDeps([283,211,125,129,124,66,126,33,107,35,87,86,82,83,84,11,85,130,92,5,93,39,45,46,47,18,48,49,50,51,52,43,53,36,54,55,56,57,58,59,60,61,62,63,64,65,67,68,69,70,71,72,73,74,44,21,75,76,77,23,78,79,80,127,128,42,22,81,32,88,89,90,91,3,13,94,95,96,97,212,213,24,284,40,103,238,17,198,2,31,34,277,131,140,240,113,111,109,114,158,150,151,138,137,159,144,273,19,278,28,191,10,38,274,188,155,189,190,141,142,4,192,132,104,193,116,194,195,196,204,185,180,20,279,201,216,165,167,37,145,146,147,148,218,152,149,153,154,25,209,280,202,207])))}),hle=Ie({pendingComponent:uo,errorComponent:io,getParentRoute:()=>Oo,path:"/e2e",staticData:{pageTitle:"common.mainPanelTabs.e2e",defaultMain:"e2e",mainView:"e2e"},component:Ue(()=>je(()=>import("./agent-e2e-CjCqLXH1.js"),__vite__mapDeps([285,211,125,129,124,66,126,33,107,35,87,86,82,83,84,11,85,130,92,5,93,39,45,46,47,18,48,49,50,51,52,43,53,36,54,55,56,57,58,59,60,61,62,63,64,65,67,68,69,70,71,72,73,74,44,21,75,76,77,23,78,79,80,127,128,42,22,81,32,88,89,90,91,3,13,94,95,96,97,212,213,24,2,31,103,34,17,284,40,198,175,277,131,140,240,113,111,109,114,158,150,151,138,137,159,144,273,19,278,28,191,10,38,274,188,155,189,190,141,142,4,192,132,104,193,116,194,195,196,204,185,180,20,279,201,216,165,167,37,145,146,147,148,218,152,149,153,154,25,209,280,202,207])))}),fle=Ie({pendingComponent:uo,errorComponent:io,getParentRoute:()=>Oo,path:"/analytics",staticData:{pageTitle:"common.mainPanelTabs.analytics",defaultMain:"analytics",mainView:"analytics"},component:Ue(()=>je(()=>import("./agent-analytics-CzbWclRj.js"),__vite__mapDeps([286,211,125,129,124,66,126,33,107,35,87,86,82,83,84,11,85,130,92,5,93,39,45,46,47,18,48,49,50,51,52,43,53,36,54,55,56,57,58,59,60,61,62,63,64,65,67,68,69,70,71,72,73,74,44,21,75,76,77,23,78,79,80,127,128,42,22,81,32,88,89,90,91,3,13,94,95,96,97,212,213,24,180,2,31,17,287,288,289,103,284,40,290,277,131,140,34,240,113,111,109,114,158,150,151,138,137,159,144,273,19,278,28,191,10,38,274,188,155,189,190,141,142,4,192,132,104,193,116,194,195,196,204,185,20,279,201,216,165,167,37,145,146,147,148,218,152,149,153,154,25,209,280,202,207])))}),vle=Ie({pendingComponent:uo,errorComponent:io,getParentRoute:()=>Oo,path:"/experiments",staticData:{defaultMain:"experiments",mainView:"experiments"},component:Ue(()=>je(()=>import("./agent-experiments-4inK9Pvj.js"),__vite__mapDeps([291,211,125,129,124,66,126,33,107,35,87,86,82,83,84,11,85,130,92,5,93,39,45,46,47,18,48,49,50,51,52,43,53,36,54,55,56,57,58,59,60,61,62,63,64,65,67,68,69,70,71,72,73,74,44,21,75,76,77,23,78,79,80,127,128,42,22,81,32,88,89,90,91,3,13,94,95,96,97,212,213,24,2,31,17,34,284,40,277,131,140,240,113,111,109,114,158,150,151,138,137,159,144,273,19,278,28,191,10,103,38,274,188,155,189,190,141,142,4,192,132,104,193,116,194,195,196,204,185,180,20,279,201,216,165,167,37,145,146,147,148,218,152,149,153,154,25,209,280,202,207])))}),ble=Ie({pendingComponent:uo,errorComponent:io,getParentRoute:()=>Oo,path:"/cdn",staticData:{pageTitle:"common.mainPanelTabs.cdn",defaultMain:"cdn",mainView:"cdn"},component:Ue(()=>je(()=>import("./agent-monitor-D7bE1AUL.js"),__vite__mapDeps([292,211,125,129,124,66,126,33,107,35,87,86,82,83,84,11,85,130,92,5,93,39,45,46,47,18,48,49,50,51,52,43,53,36,54,55,56,57,58,59,60,61,62,63,64,65,67,68,69,70,71,72,73,74,44,21,75,76,77,23,78,79,80,127,128,42,22,81,32,88,89,90,91,3,13,94,95,96,97,212,213,287,288,289,284,131,40,290,293,294,295,277,2,140,34,240,113,111,109,114,158,150,151,138,137,159,144,273,19,278,28,191,10,103,38,274,188,155,189,190,141,142,4,192,132,104,31,193,116,194,24,195,196,204,185,180,20,279,201,216,165,167,37,145,146,147,148,218,152,149,153,154,25,209,280,202,207,246,187,139])))}),yle=Ie({pendingComponent:uo,errorComponent:io,getParentRoute:()=>Oo,path:"/apps/$connectionId/$toolName",staticData:{pageTitle:"page.app",defaultMain:"app",mainView:"app"},component:Ue(()=>je(()=>import("./agent-app-DqzssWfL.js"),__vite__mapDeps([296,211,125,129,124,66,126,33,107,35,87,86,82,83,84,11,85,130,92,5,93,39,45,46,47,18,48,49,50,51,52,43,53,36,54,55,56,57,58,59,60,61,62,63,64,65,67,68,69,70,71,72,73,74,44,21,75,76,77,23,78,79,80,127,128,42,22,81,32,88,89,90,91,3,13,94,95,96,97,212,213,217,297,164,177,216,208,171,150,151,158,138,137,159,144,209,210,199,200,201,101,106,108,109,110,111,104,31,2,25,112,113,114,115,116,10,117])))}),Sle=Ie({pendingComponent:uo,errorComponent:io,getParentRoute:()=>Oo,path:"/views/$viewId",staticData:{pageTitle:"page.view",defaultMain:"view",mainView:"view"},component:Ue(()=>je(()=>import("./agent-view-BinIwia6.js"),__vite__mapDeps([298,211,125,129,124,66,126,33,107,35,87,86,82,83,84,11,85,130,92,5,93,39,45,46,47,18,48,49,50,51,52,43,53,36,54,55,56,57,58,59,60,61,62,63,64,65,67,68,69,70,71,72,73,74,44,21,75,76,77,23,78,79,80,127,128,42,22,81,32,88,89,90,91,3,13,94,95,96,97,212,213,297,164,177,216,208,171,150,151,158,138,137,159,144,209,210,199,200,201,101,106,108,109,110,111,104,31,2,25,112,113,114,115,116,10,117,277,131,140,34,240,273,19,278,28,191,103,38,274,188,155,189,190,141,142,4,192,132,193,194,24,195,196,204,185,180,20,279,165,167,37,145,146,147,40,148,218,152,149,153,154,280,202,207])))}),Tle=Ie({pendingComponent:uo,errorComponent:io,getParentRoute:()=>Oo,path:"/outputs/file",staticData:{pageTitle:"page.file",defaultMain:"file",mainView:"file"},validateSearch:_e({key:V().optional()}),component:Ue(()=>je(()=>import("./agent-file-CN4CJx4b.js"),__vite__mapDeps([299,211,125,129,124,66,126,33,107,35,87,86,82,83,84,11,85,130,92,5,93,39,45,46,47,18,48,49,50,51,52,43,53,36,54,55,56,57,58,59,60,61,62,63,64,65,67,68,69,70,71,72,73,74,44,21,75,76,77,23,78,79,80,127,128,42,22,81,32,88,89,90,91,3,13,94,95,96,97,212,213,204,222,185,223,224,174,168,203,158,150,151,138,137,159,144,277,2,131,140,34,240,113,111,109,114,273,19,278,28,191,10,103,38,274,188,155,189,190,141,142,4,192,132,104,31,193,116,194,24,195,196,180,20,279,201,216,165,167,37,145,146,147,40,148,218,152,149,153,154,25,209,280,202,207])))}),wle=Ie({pendingComponent:uo,errorComponent:io,getParentRoute:()=>Oo,path:"/outputs/deck",staticData:{pageTitle:"page.document",defaultMain:"deck",mainView:"deck"},validateSearch:_e({path:V().optional()}),component:Ue(()=>je(()=>import("./agent-deck-BQOqb5JA.js"),__vite__mapDeps([300,211,125,129,124,66,126,33,107,35,87,86,82,83,84,11,85,130,92,5,93,39,45,46,47,18,48,49,50,51,52,43,53,36,54,55,56,57,58,59,60,61,62,63,64,65,67,68,69,70,71,72,73,74,44,21,75,76,77,23,78,79,80,127,128,42,22,81,32,88,89,90,91,3,13,94,95,96,97,212,213,225,185,2,131,277,140,34,240,113,111,109,114,158,150,151,138,137,159,144,273,19,278,28,191,10,103,38,274,188,155,189,190,141,142,4,192,132,104,31,193,116,194,24,195,196,204,180,20,279,201,216,165,167,37,145,146,147,40,148,218,152,149,153,154,25,209,280,202,207])))}),_le=Ie({pendingComponent:uo,errorComponent:io,getParentRoute:()=>Oo,path:"/library/file",staticData:{pageTitle:"page.file",defaultMain:"library-file",mainView:"library-file"},validateSearch:_e({path:V().optional()}),component:Ue(()=>je(()=>import("./agent-library-file-CMtJlgeS.js"),__vite__mapDeps([301,211,125,129,124,66,126,33,107,35,87,86,82,83,84,11,85,130,92,5,93,39,45,46,47,18,48,49,50,51,52,43,53,36,54,55,56,57,58,59,60,61,62,63,64,65,67,68,69,70,71,72,73,74,44,21,75,76,77,23,78,79,80,127,128,42,22,81,32,88,89,90,91,3,13,94,95,96,97,212,213,221,222,185,223,224,204,174,168,225,2,131,159,277,140,34,240,113,111,109,114,158,150,151,138,137,144,273,19,278,28,191,10,103,38,274,188,155,189,190,141,142,4,192,132,104,31,193,116,194,24,195,196,180,20,279,201,216,165,167,37,145,146,147,40,148,218,152,149,153,154,25,209,280,202,207])))}),Cle=Ie({pendingComponent:uo,errorComponent:io,getParentRoute:()=>Oo,path:"/connect-sources",staticData:{pageTitle:"settings.nav.connect",defaultMain:"connect-sources",mainView:"connect-sources"},component:Ue(()=>je(()=>import("./agent-connect-sources-AkHuiIU0.js"),__vite__mapDeps([302,211,125,129,124,66,126,33,107,35,87,86,82,83,84,11,85,130,92,5,93,39,45,46,47,18,48,49,50,51,52,43,53,36,54,55,56,57,58,59,60,61,62,63,64,65,67,68,69,70,71,72,73,74,44,21,75,76,77,23,78,79,80,127,128,42,22,81,32,88,89,90,91,3,13,94,95,96,97,212,213,105,101,106,108,109,110,111,104,31,2,25,112,113,114,115,116,10,117,161,118])))}),Ple=Ie({getParentRoute:()=>Oo,path:"/$legacyView",component:()=>null}),xle=Ie({getParentRoute:()=>nr,path:"/agents",validateSearch:nm,beforeLoad:({params:e,search:t})=>{const o=t.virtualmcpid?.trim();throw Qo(o?{to:"/$org/projects/$agentId",params:{org:e.org,agentId:o},search:a=>a,hash:!0,replace:!0}:{to:"/$org/projects",params:{org:e.org},search:a=>a,hash:!0,replace:!0})}}),kle=Ie({getParentRoute:()=>nr,path:"/agents/$",validateSearch:nm,beforeLoad:({params:e,location:t})=>{const o=e._splat?.split("/").find(Boolean);if(!d4(o))return;const a=Pse(t.pathname);if(!a)return;const n=t.hash?`#${t.hash}`:"";throw Qo({href:`${a}${t.searchStr}${n}`,replace:!0})},component:Ue(()=>je(()=>import("./legacy-agents-deep-BYo-BuCs.js"),__vite__mapDeps([303,219,87])))}),Ele=Ie({pendingComponent:uo,errorComponent:io,getParentRoute:()=>nr,path:"/tasks/{-$taskKey}",staticData:{pageTitle:"sidebar.navDestinations.tasks",defaultMain:"board",mainView:"board"},validateSearch:_e({task:V().optional(),...tP}),beforeLoad:({params:e,search:t})=>{const o=u4(e.taskKey,t);if(o)throw Qo({to:"/$org/tasks/{-$taskKey}",params:{org:e.org,taskKey:o.taskKey},search:o.search,hash:!0,replace:!0})},component:Ue(()=>je(()=>import("./tasks-CI20rxb_.js"),__vite__mapDeps([304,211,125,129,124,66,126,33,107,35,87,86,82,83,84,11,85,130,92,5,93,39,45,46,47,18,48,49,50,51,52,43,53,36,54,55,56,57,58,59,60,61,62,63,64,65,67,68,69,70,71,72,73,74,44,21,75,76,77,23,78,79,80,127,128,42,22,81,32,88,89,90,91,3,13,94,95,96,97,212,213,233,132,131,143,144,154,29,234,235,236,237,238,152,149,150,151,153,2,31,141,142,155,25,186,134,27,28,239,240,241,242,198,173,174,168,166,164,104,167,243,184,185,210,191,110,244,196,197,172,138,158,137,159,199,200,201,202,177,165,203,204,195,214,178,170,24,245,246,187,139])))}),Rle=Ie({pendingComponent:uo,errorComponent:io,getParentRoute:()=>nr,path:"/taskboard-analytics",staticData:{defaultMain:"board",mainView:"board"},component:Ue(()=>je(()=>import("./taskboard-analytics-CzQSxt8I.js"),__vite__mapDeps([305,211,125,129,124,66,126,33,107,35,87,86,82,83,84,11,85,130,92,5,93,39,45,46,47,18,48,49,50,51,52,43,53,36,54,55,56,57,58,59,60,61,62,63,64,65,67,68,69,70,71,72,73,74,44,21,75,76,77,23,78,79,80,127,128,42,22,81,32,88,89,90,91,3,13,94,95,96,97,212,213,287,288,289,17,293,294,295,235,236,131,34,175])))}),Ale=Ie({pendingComponent:uo,errorComponent:io,getParentRoute:()=>nr,path:"/reports",staticData:{pageTitle:"sidebar.navDestinations.reports",defaultMain:"reports",mainView:"reports"},validateSearch:_e({connect:_v().optional(),siteUrl:V().optional()}),component:Ue(()=>je(()=>import("./reports-CqtPOzss.js"),__vite__mapDeps([306,211,125,129,124,66,126,33,107,35,87,86,82,83,84,11,85,130,92,5,93,39,45,46,47,18,48,49,50,51,52,43,53,36,54,55,56,57,58,59,60,61,62,63,64,65,67,68,69,70,71,72,73,74,44,21,75,76,77,23,78,79,80,127,128,42,22,81,32,88,89,90,91,3,13,94,95,96,97,212,213,248,101,2,160,108,109,110,111,231,118,119])))}),Dle=Ie({pendingComponent:uo,errorComponent:io,getParentRoute:()=>nr,path:"/library",staticData:{pageTitle:"sidebar.navDestinations.library",defaultMain:"files",mainView:"files"},validateSearch:_e(Zw),component:Ue(()=>je(()=>import("./library-FX2TKWir.js"),__vite__mapDeps([307,211,125,129,124,66,126,33,107,35,87,86,82,83,84,11,85,130,92,5,93,39,45,46,47,18,48,49,50,51,52,43,53,36,54,55,56,57,58,59,60,61,62,63,64,65,67,68,69,70,71,72,73,74,44,21,75,76,77,23,78,79,80,127,128,42,22,81,32,88,89,90,91,3,13,94,95,96,97,212,213,159,185,308,204,309,310,238,237,103,2,25,38,174,168,225,131,220,221,222,223,224,311])))}),Ole=Ie({pendingComponent:uo,errorComponent:io,getParentRoute:()=>nr,path:"/discover",staticData:{pageTitle:"sidebar.navDestinations.discover",defaultMain:"discover",mainView:"discover"},component:Ue(()=>je(()=>import("./discover-C_imFiZx.js"),__vite__mapDeps([312,211,125,129,124,66,126,33,107,35,87,86,82,83,84,11,85,130,92,5,93,39,45,46,47,18,48,49,50,51,52,43,53,36,54,55,56,57,58,59,60,61,62,63,64,65,67,68,69,70,71,72,73,74,44,21,75,76,77,23,78,79,80,127,128,42,22,81,32,88,89,90,91,3,13,94,95,96,97,212,213,154,191,186,134,147,146,40,218])))}),Ile=Ie({getParentRoute:()=>Gv,path:"/members",beforeLoad:({params:e})=>{throw Qo({to:"/$org/settings/members",params:{org:e.org}})}}),Mle=_e({main:ro([V(),Ze(0)]).optional(),virtualmcpid:V().optional(),...m4,sidepanel:wN,mainpanel:_N,thread:V().optional()}),Lle=Ie({getParentRoute:()=>Kv,path:"/",validateSearch:Mle,pendingComponent:Md,component:Ue(()=>je(()=>import("./index-CxsDd08k.js"),__vite__mapDeps([313,219,87])))}),Nle=Ie({getParentRoute:()=>Kv,path:"/t/$taskKey",beforeLoad:({params:e})=>{throw Qo({to:"/$org/tasks/{-$taskKey}",params:{org:e.org,taskKey:e.taskKey},search:t=>t,hash:!0,replace:!0})}}),to=Ie({staticData:{pageTitle:"sidebar.navDestinations.settings"},getParentRoute:()=>Gv,path:"/settings",pendingComponent:Md,component:Ue(()=>je(()=>import("./route-D9feMXoH.js"),__vite__mapDeps([314,125,213,66,124,126,33,107,35,127,128,82,83,84,11,85])))}),Fle=Ie({getParentRoute:()=>to,path:"/",component:Ue(()=>je(()=>import("./index-redirect-BV59ZcWQ.js"),__vite__mapDeps([315,316])))}),Ble=Ie({staticData:{pageTitle:"settings.nav.connections"},getParentRoute:()=>to,path:"/connections",component:Ue(()=>je(()=>import("./connections-lQVX-uGO.js"),__vite__mapDeps([317,113,111,109,84,11,114,318,18,63,107,35,319,24,20,21,194,189,190,191,95,39,93,141,142,4,5,192,151,90,49,45,46,47,48,50,51,52,43,53,36,54,55,56,57,58,59,60,61,62,64,65,66,67,68,69,70,71,72,73,74,44,75,76,77,23,78,79,33,80,19,320,103,195,321,125,32,132,104,31,2,34,38,83,201,193,116,10,180]))),validateSearch:Gr(()=>_e({action:sa(["create"]).optional(),tab:sa(["all","connected"]).optional()}))}),jle=Ie({staticData:{pageTitle:"settings.nav.connections"},getParentRoute:()=>to,path:"/connections/$appSlug",component:Ue(()=>je(()=>import("./connection-detail-DKOxQWbq.js"),__vite__mapDeps([322,113,111,109,84,11,114,19,193,2,74,76,323,124,66,125,126,33,107,35,216,45,46,47,18,48,49,50,51,52,43,53,36,54,55,56,57,58,59,60,61,62,63,64,65,67,68,69,70,71,72,73,44,21,75,77,23,78,79,80,191,190,95,39,93,34,288,324,325,89,131,83,326,149,92,5,150,151,85,279,24,201,10,186,134,22,165,90,104,31,320,103,327,287,289,290,294,295,175,192,200,155]))),validateSearch:Gr(()=>_e({tab:V().optional()}))}),Ule=Ie({staticData:{pageTitle:"page.item"},getParentRoute:()=>to,path:"/connections/$appSlug/$collectionName/$itemId",component:Ue(()=>je(()=>import("./collection-detail-Brbyx-hM.js"),__vite__mapDeps([328,19,84,11,104,31,2,38,323,124,66,125,126,33,107,35,216,45,46,47,18,48,49,50,51,52,43,53,36,54,55,56,57,58,59,60,61,62,63,64,65,67,68,69,70,71,72,73,74,44,21,75,76,77,23,78,79,80,191,113,111,109,114,190,95,39,93,34,288,324,325,89,131,83,326,149,92,5,150,151,85,200,201,242,240,192,279,24,10,199,90,158,86,87,82,94,3,138,137,159,144,42,22,81,32,88,91,13,96,97,261,224,284]))),validateSearch:Gr(()=>_e({replayId:V().optional()}))}),zle=Ie({staticData:{pageTitle:"orgs.monitoring.title"},getParentRoute:()=>to,path:"/monitor",component:Ue(()=>je(()=>import("./index-B3clFfYi.js"),__vite__mapDeps([329,20,21,19,330,331,316,197,45,46,47,18,48,49,50,51,52,43,53,36,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,44,75,76,77,23,78,79,33,80,27,28,198,173,172,174,32,168,125,86,87,82,83,84,11,85,107,35,138,158,94,150,151,92,5,93,39,3,137,159,144,95,199,200,201,202,164,177,167,42,22,81,88,89,90,91,13,96,97,126,191,149,165,166,104,31,2,203,204,192,24,131,261,224,186,134,332,180,34,140,241,38,194,37,242,327,287,288,289,290,294,295,244,196,142,195,214,17,275,141,269]))),validateSearch:Gr(()=>_e({tab:sa(["overview","audit","dashboards","threads","automations"]).default("overview"),from:V().default("now-30m"),to:V().default("now"),connectionId:Fe(V()).optional().default([]),virtualMcpId:Fe(V()).optional().default([]),tool:V().default(""),status:sa(["all","success","errors"]).default("all"),search:V().default(""),page:Mt().optional(),streaming:$t().default(!0),propertyFilters:V().default(""),hideSystem:$t().default(!1)}))}),$le=Ie({staticData:{pageTitle:"settings.nav.general"},getParentRoute:()=>to,path:"/general",component:Ue(()=>je(()=>import("./general-BXQ_6idC.js"),__vite__mapDeps([333,134,274,22,23,2,334,37,54,44,95,39,93,191,84,11,335,24,34,35,36,103,330,331,316])))}),qle=Ie({staticData:{pageTitle:"settings.nav.connect"},getParentRoute:()=>to,path:"/connect",pendingComponent:Ni("connect"),component:Ue(()=>je(()=>import("./connect-ChX83wmI.js"),__vite__mapDeps([336,242,34,35,36,175,173,55,65,67,228,337,46,74,76,103,32,33,2,31,84,11,330,331,316])))}),Vle=Ie({staticData:{pageTitle:"settings.nav.billing"},getParentRoute:()=>to,path:"/ai-providers",pendingComponent:Ni("billing"),component:Ue(()=>je(()=>import("./ai-providers-COexxMGY.js"),__vite__mapDeps([338,46,137,53,95,39,93,272,32,33,132,125,158,86,87,82,83,84,11,85,94,150,151,92,5,3,138,159,144,179,180,2,34,35,36,48,47,65,59,21,181,69,22,23,60,81,55,58,64,75,182,274,176,103,178,139,74,76,278,28,330,331,316])))}),Hle=Ie({staticData:{pageTitle:"settings.nav.billing"},getParentRoute:()=>to,path:"/billing",beforeLoad:({params:e})=>{throw Qo({to:"/$org/settings/ai-providers",params:{org:e.org}})}}),Gle=Ie({staticData:{pageTitle:"settings.nav.billing"},getParentRoute:()=>to,path:"/infra-billing",pendingComponent:Ni("billing"),component:Ue(()=>je(()=>import("./infra-billing-RcXbwjta.js"),__vite__mapDeps([339,56,68,24,332,180,36,88,89,32,33,21,131,34,35,17,289,288,295,290,330,331,316])))}),Kle=Ie({staticData:{pageTitle:"settings.nav.secrets"},getParentRoute:()=>to,path:"/secrets",component:Ue(()=>je(()=>import("./secrets-CEw0kB_t.js"),__vite__mapDeps([340,46,74,23,78,32,33,2,31,34,35,36,38,280,330,331,316])))}),Wle=Ie({staticData:{pageTitle:"settings.nav.connect"},getParentRoute:()=>to,path:"/api-keys",pendingComponent:Ni("connect"),component:Ue(()=>je(()=>import("./api-keys-CN-jy2XH.js"),__vite__mapDeps([341,337,46,55,65,74,76,103,32,33,2,31,84,11,330,331,316])))}),Yle=Ie({staticData:{pageTitle:"settings.nav.storage"},getParentRoute:()=>to,path:"/buckets",pendingComponent:Ni("storage"),component:Ue(()=>je(()=>import("./buckets-DdptE4Pj.js"),__vite__mapDeps([342,46,74,76,103,32,33,2,31,34,35,36,37,38,147,330,331,316])))}),Zle=Ie({staticData:{pageTitle:"settings.nav.repositories"},getParentRoute:()=>to,path:"/repositories",validateSearch:_e({git_error:V().optional().catch(void 0),git_flow:V().uuid().optional().catch(void 0),git_return:$t().optional().catch(void 0)}),pendingComponent:Ni("repositories"),component:Ue(()=>je(()=>import("./repositories-DnQQ93Vy.js"),__vite__mapDeps([343,153,48,68,74,107,35,32,33,2,31,154,141,142,22,23,155,21,25,50,180,103,24,242,330,331,316])))}),Qle=Ie({staticData:{pageTitle:"settings.nav.storage"},getParentRoute:()=>to,path:"/synced-repos",pendingComponent:Ni("storage"),component:Ue(()=>je(()=>import("./synced-repos-DHbM7OOb.js"),__vite__mapDeps([344,74,103,32,33,2,153,48,68,107,35,31,154,141,142,22,23,155,21,25,308,185,57,58,61,62,65,72,76,80,204,309,60,310,330,331,316])))}),Jle=Ie({staticData:{pageTitle:"settings.nav.tasks"},getParentRoute:()=>to,path:"/task-board",component:Ue(()=>je(()=>import("./tasks-K4e2STZ0.js"),__vite__mapDeps([345,2,47,73,74,76,236,88,89,32,33,21,131,37,183,184,166,164,104,31,167,168,125,86,87,82,83,84,11,85,107,35,45,46,18,48,49,50,51,52,43,53,36,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,44,75,77,23,78,79,80,158,94,150,151,92,5,93,39,3,138,137,159,144,95,179,180,34,181,22,81,165,185,310,103,334,191,38,330,331,316])))}),Xle=Ie({getParentRoute:()=>to,path:"/tasks",beforeLoad:({params:e})=>{throw Qo({to:"/$org/settings/task-board",params:{org:e.org}})}}),ece=Ie({staticData:{pageTitle:"settings.nav.members"},getParentRoute:()=>to,path:"/members",pendingComponent:Ni("members"),component:Ue(()=>je(()=>import("./members-Cd4baVfz.js"),__vite__mapDeps([346,318,18,63,107,35,319,24,20,21,16,17,19,133,32,33,104,31,34,36,38,134,135,22,23,27,28,29,186,347,103,57,65,76,180,88,89,131,74,239,330,331,316])))}),tce=Ie({staticData:{pageTitle:"settings.nav.members"},getParentRoute:()=>to,path:"/roles",pendingComponent:Ni("members"),component:Ue(()=>je(()=>import("./roles-9Q5Zr1_l.js"),__vite__mapDeps([348,135,134,347,24,103,57,74,76,16,17,18,19,20,21,181,90,49,45,46,47,48,50,51,52,43,53,36,54,55,56,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,44,75,77,23,78,79,33,80,195,180,196,142,84,11,155,114,186,29,191,83,137,22,37,107,35,91,82,85,331,316]))),validateSearch:Gr(()=>_e({role:V().optional()}))}),oce=Ie({staticData:{pageTitle:"settings.nav.security"},getParentRoute:()=>to,path:"/sso",component:Ue(()=>je(()=>import("./sso-CYe8kGWS.js"),__vite__mapDeps([349,335,24,2,34,35,36,103,37,96,76,330,331,316])))}),ace=Ie({staticData:{pageTitle:"settings.nav.profile"},getParentRoute:()=>to,path:"/profile",component:Ue(()=>je(()=>import("./profile-Dn8W-1_J.js"),__vite__mapDeps([350,22,23,32,33,325,34,35,36,76,77,37,176,2,69,70,73,274,156])))}),nce=Ie({staticData:{pageTitle:"settings.nav.store"},getParentRoute:()=>to,path:"/store",component:Ue(()=>je(()=>import("./store-DDl3lPqK.js"),__vite__mapDeps([351,46,74,76,2,37,22,23,131,191,84,11,190,95,39,93,330,331,316])))}),rce=Ie({staticData:{pageTitle:"settings.nav.store"},getParentRoute:()=>to,path:"/registry",component:Ue(()=>je(()=>import("./registry-FGkay0Wa.js"),__vite__mapDeps([352,330,331,316])))}),ice=Ie({staticData:{pageTitle:"settings.nav.store"},getParentRoute:()=>to,path:"/store/registry",component:Ue(()=>je(()=>import("./store-registry-DUH5xq3l.js"),__vite__mapDeps([353,330,331,316])))}),sce=Ie({staticData:{pageTitle:"settings.nav.agents"},getParentRoute:()=>to,path:"/agents",component:Ue(()=>je(()=>import("./agents-list-wHHXJTl8.js"),__vite__mapDeps([354,83,84,11,57,59,76,45,46,47,18,48,49,50,51,52,43,53,36,54,55,56,58,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,44,21,75,77,23,78,79,33,80,278,28,149,92,5,93,39,150,151,85,95,19,326,191,116,10,216,113,111,109,114,110,112,32,155,154,103,20,152,153,107,35,2,31,141,142,22,25])))}),lce=Ie({staticData:{pageTitle:"settings.nav.automations"},getParentRoute:()=>to,path:"/automations",component:Ue(()=>je(()=>import("./automations-BhhOtnrs.js"),__vite__mapDeps([355,74,80,20,21,19,269,84,11,149,83,92,5,93,39,150,151,85,270,103,45,46,47,18,48,49,50,51,52,43,53,36,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,44,75,76,77,23,78,79,33,330,331,316])))}),cce=Ie({staticData:{pageTitle:"settings.nav.skills"},getParentRoute:()=>to,path:"/skills",component:Ue(()=>je(()=>import("./skills-Cpf0zAbB.js"),__vite__mapDeps([356,57,71,76,77,80,20,21,103,19,194,24,309,60,185,159,311,32,33,174,55,58,52,168,125,86,87,82,83,84,11,85,222,223,64,224,204,310])))}),dce=to.addChildren([Fle,Ble,jle,Ule,sce,lce,cce,zle,$le,qle,Vle,Hle,Gle,Kle,Wle,Yle,Zle,Qle,Jle,Xle,ece,tce,oce,ace,nce,ice,rce]),uce=Wv.addChildren([ile,sle,lle]),pce=Oo.addChildren([ale,nle,rle,uce,cle,dle,ule,ple,mle,gle,hle,fle,vle,ble,yle,Sle,Tle,wle,_le,Cle,Ple]),mce=nr.addChildren([ele,tle,ole,pce,xle,kle,Ele,Rle,Ale,Dle,Ole]),gce=Kv.addChildren([Lle,Nle,mce]),hce=Gv.addChildren([gce,Ile,dce]),fce=oP.addChildren([Gse,hce]),vce=pn.addChildren([fce,Hse,Kse,Wse,Yse,Zse,Qse,Lse,Nse,Fse,Bse,jse,Use]);function bce(){const e=Ne.c(16),t=ar();let o;e[0]!==t?(o=t("common.index.pageNotFound"),e[0]=t,e[1]=o):o=e[1];let a;e[2]!==o?(a=T.jsx("h3",{className:"text-lg font-medium text-foreground",children:o}),e[2]=o,e[3]=a):a=e[3];let n;e[4]!==t?(n=t("common.index.pageNotFoundDescription"),e[4]=t,e[5]=n):n=e[5];let i;e[6]!==n?(i=T.jsx("p",{className:"text-sm text-muted-foreground text-center max-w-[300px]",children:n}),e[6]=n,e[7]=i):i=e[7];let l;e[8]!==t?(l=t("common.index.goBack"),e[8]=t,e[9]=l):l=e[9];let c;e[10]!==l?(c=T.jsx("button",{type:"button",onClick:yce,className:"text-sm text-primary hover:underline",children:l}),e[10]=l,e[11]=c):c=e[11];let u;return e[12]!==a||e[13]!==i||e[14]!==c?(u=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:[a,i,c]})}),e[12]=a,e[13]=i,e[14]=c,e[15]=u):u=e[15],u}function yce(){return window.history.back()}const Yv=y$({routeTree:vce,defaultPendingComponent:Md,defaultPendingMs:200,defaultPendingMinMs:500,defaultNotFoundComponent:bce});function ke(...e){return TN(lC(e))}function Sce(e){return/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(e)}function zo({error:e,localization:t,localizeErrors:o=!0}){var a;const n="Request failed";if(!o)return e?.message?e.message:(a=e?.error)!=null&&a.message?e.error.message:n;if(typeof e=="string"&&t?.[e])return t[e];if(e?.error){if(e.error.code){const i=e.error.code;if(t?.[i])return t[i]}return e.error.message||e.error.code||e.error.statusText||t?.REQUEST_FAILED}return e?.message||t?.REQUEST_FAILED||n}function ql(e){return typeof window<"u"?new URLSearchParams(window.location.search).get(e):null}function Qw(e,t){for(const o in e)if(e[o]===t)return o}function Np(e,t){let o=V().min(1,{message:t?.PASSWORD_REQUIRED});return e?.minLength&&(o=o.min(e.minLength,{message:t?.PASSWORD_TOO_SHORT})),e?.maxLength&&(o=o.max(e.maxLength,{message:t?.PASSWORD_TOO_LONG})),e?.regex&&(o=o.regex(e.regex,{message:t?.INVALID_PASSWORD})),o}var Tce={FAILED_TO_CREATE_USER:"Failed to create user",USER_ALREADY_EXISTS:"User already exists",YOU_CANNOT_BAN_YOURSELF:"You cannot ban yourself",YOU_ARE_NOT_ALLOWED_TO_CHANGE_USERS_ROLE:"You are not allowed to change users role",YOU_ARE_NOT_ALLOWED_TO_CREATE_USERS:"You are not allowed to create users",YOU_ARE_NOT_ALLOWED_TO_LIST_USERS:"You are not allowed to list users",YOU_ARE_NOT_ALLOWED_TO_LIST_USERS_SESSIONS:"You are not allowed to list users sessions",YOU_ARE_NOT_ALLOWED_TO_BAN_USERS:"You are not allowed to ban users",YOU_ARE_NOT_ALLOWED_TO_IMPERSONATE_USERS:"You are not allowed to impersonate users",YOU_ARE_NOT_ALLOWED_TO_REVOKE_USERS_SESSIONS:"You are not allowed to revoke users sessions",YOU_ARE_NOT_ALLOWED_TO_DELETE_USERS:"You are not allowed to delete users",YOU_ARE_NOT_ALLOWED_TO_SET_USERS_PASSWORD:"You are not allowed to set users password",BANNED_USER:"You have been banned from this application"},wce={FAILED_TO_CREATE_USER:"Failed to create user",COULD_NOT_CREATE_SESSION:"Could not create session",ANONYMOUS_USERS_CANNOT_SIGN_IN_AGAIN_ANONYMOUSLY:"Anonymous users cannot sign in again anonymously"},_ce={INVALID_METADATA_TYPE:"metadata must be an object or undefined",REFILL_AMOUNT_AND_INTERVAL_REQUIRED:"refillAmount is required when refillInterval is provided",REFILL_INTERVAL_AND_AMOUNT_REQUIRED:"refillInterval is required when refillAmount is provided",USER_BANNED:"User is banned",UNAUTHORIZED_SESSION:"Unauthorized or invalid session",KEY_NOT_FOUND:"API Key not found",KEY_DISABLED:"API Key is disabled",KEY_EXPIRED:"API Key has expired",USAGE_EXCEEDED:"API Key has reached its usage limit",KEY_NOT_RECOVERABLE:"API Key is not recoverable",EXPIRES_IN_IS_TOO_SMALL:"The expiresIn is smaller than the predefined minimum value.",EXPIRES_IN_IS_TOO_LARGE:"The expiresIn is larger than the predefined maximum value.",INVALID_REMAINING:"The remaining count is either too large or too small.",INVALID_PREFIX_LENGTH:"The prefix length is either too large or too small.",INVALID_NAME_LENGTH:"The name length is either too large or too small.",METADATA_DISABLED:"Metadata is disabled.",RATE_LIMIT_EXCEEDED:"Rate limit exceeded.",NO_VALUES_TO_UPDATE:"No values to update.",KEY_DISABLED_EXPIRATION:"Custom key expiration values are disabled.",INVALID_API_KEY:"Invalid API key.",INVALID_USER_ID_FROM_API_KEY:"The user id from the API key is invalid.",INVALID_API_KEY_GETTER_RETURN_TYPE:"API Key getter returned an invalid key type. Expected string.",SERVER_ONLY_PROPERTY:"The property you're trying to set can only be set from the server auth instance only."},Cce={USER_NOT_FOUND:"User not found",FAILED_TO_CREATE_USER:"Failed to create user",FAILED_TO_CREATE_SESSION:"Failed to create session",FAILED_TO_UPDATE_USER:"Failed to update user",FAILED_TO_GET_SESSION:"Failed to get session",INVALID_PASSWORD:"Invalid password",INVALID_EMAIL:"Invalid email",INVALID_EMAIL_OR_PASSWORD:"Invalid email or password",SOCIAL_ACCOUNT_ALREADY_LINKED:"Social account already linked",PROVIDER_NOT_FOUND:"Provider not found",INVALID_TOKEN:"Invalid token",ID_TOKEN_NOT_SUPPORTED:"id_token not supported",FAILED_TO_GET_USER_INFO:"Failed to get user info",USER_EMAIL_NOT_FOUND:"User email not found",EMAIL_NOT_VERIFIED:"Email not verified",PASSWORD_TOO_SHORT:"Password too short",PASSWORD_TOO_LONG:"Password too long",USER_ALREADY_EXISTS:"User already exists",EMAIL_CAN_NOT_BE_UPDATED:"Email can not be updated",CREDENTIAL_ACCOUNT_NOT_FOUND:"Credential account not found",SESSION_EXPIRED:"Session expired. Re-authenticate to perform this action.",FAILED_TO_UNLINK_LAST_ACCOUNT:"You can't unlink your last account",ACCOUNT_NOT_FOUND:"Account not found",USER_ALREADY_HAS_PASSWORD:"User already has a password. Provide that to delete the account."},Pce={VERIFICATION_FAILED:"Captcha verification failed",MISSING_RESPONSE:"Missing CAPTCHA response",UNKNOWN_ERROR:"Something went wrong"},xce={MISSING_SECRET_KEY:"Missing secret key",SERVICE_UNAVAILABLE:"CAPTCHA service unavailable"},kce={...Pce,...xce},Ece={OTP_EXPIRED:"otp expired",INVALID_OTP:"Invalid OTP",INVALID_EMAIL:"Invalid email",USER_NOT_FOUND:"User not found",TOO_MANY_ATTEMPTS:"Too many attempts"},Rce={INVALID_OAUTH_CONFIGURATION:"Invalid OAuth configuration"},Ace={PASSWORD_COMPROMISED:"The password you entered has been compromised. Please choose a different password."},Dce={INVALID_SESSION_TOKEN:"Invalid session token"},Oce={YOU_ARE_NOT_ALLOWED_TO_CREATE_A_NEW_ORGANIZATION:"You are not allowed to create a new organization",YOU_HAVE_REACHED_THE_MAXIMUM_NUMBER_OF_ORGANIZATIONS:"You have reached the maximum number of organizations",ORGANIZATION_ALREADY_EXISTS:"Organization already exists",ORGANIZATION_NOT_FOUND:"Organization not found",USER_IS_NOT_A_MEMBER_OF_THE_ORGANIZATION:"User is not a member of the organization",YOU_ARE_NOT_ALLOWED_TO_UPDATE_THIS_ORGANIZATION:"You are not allowed to update this organization",YOU_ARE_NOT_ALLOWED_TO_DELETE_THIS_ORGANIZATION:"You are not allowed to delete this organization",NO_ACTIVE_ORGANIZATION:"No active organization",USER_IS_ALREADY_A_MEMBER_OF_THIS_ORGANIZATION:"User is already a member of this organization",MEMBER_NOT_FOUND:"Member not found",ROLE_NOT_FOUND:"Role not found",YOU_ARE_NOT_ALLOWED_TO_CREATE_A_NEW_TEAM:"You are not allowed to create a new team",TEAM_ALREADY_EXISTS:"Team already exists",TEAM_NOT_FOUND:"Team not found",YOU_CANNOT_LEAVE_THE_ORGANIZATION_AS_THE_ONLY_OWNER:"You cannot leave the organization as the only owner",YOU_ARE_NOT_ALLOWED_TO_DELETE_THIS_MEMBER:"You are not allowed to delete this member",YOU_ARE_NOT_ALLOWED_TO_INVITE_USERS_TO_THIS_ORGANIZATION:"You are not allowed to invite users to this organization",USER_IS_ALREADY_INVITED_TO_THIS_ORGANIZATION:"User is already invited to this organization",INVITATION_NOT_FOUND:"Invitation not found",YOU_ARE_NOT_THE_RECIPIENT_OF_THE_INVITATION:"You are not the recipient of the invitation",YOU_ARE_NOT_ALLOWED_TO_CANCEL_THIS_INVITATION:"You are not allowed to cancel this invitation",INVITER_IS_NO_LONGER_A_MEMBER_OF_THE_ORGANIZATION:"Inviter is no longer a member of the organization",YOU_ARE_NOT_ALLOWED_TO_INVITE_USER_WITH_THIS_ROLE:"you are not allowed to invite user with this role",FAILED_TO_RETRIEVE_INVITATION:"Failed to retrieve invitation",YOU_HAVE_REACHED_THE_MAXIMUM_NUMBER_OF_TEAMS:"You have reached the maximum number of teams",UNABLE_TO_REMOVE_LAST_TEAM:"Unable to remove last team",YOU_ARE_NOT_ALLOWED_TO_UPDATE_THIS_MEMBER:"You are not allowed to update this member",ORGANIZATION_MEMBERSHIP_LIMIT_REACHED:"Organization membership limit reached",YOU_ARE_NOT_ALLOWED_TO_CREATE_TEAMS_IN_THIS_ORGANIZATION:"You are not allowed to create teams in this organization",YOU_ARE_NOT_ALLOWED_TO_DELETE_TEAMS_IN_THIS_ORGANIZATION:"You are not allowed to delete teams in this organization",YOU_ARE_NOT_ALLOWED_TO_UPDATE_THIS_TEAM:"You are not allowed to update this team",YOU_ARE_NOT_ALLOWED_TO_DELETE_THIS_TEAM:"You are not allowed to delete this team",INVITATION_LIMIT_REACHED:"Invitation limit reached"},Ice={CHALLENGE_NOT_FOUND:"Challenge not found",YOU_ARE_NOT_ALLOWED_TO_REGISTER_THIS_PASSKEY:"You are not allowed to register this passkey",FAILED_TO_VERIFY_REGISTRATION:"Failed to verify registration",PASSKEY_NOT_FOUND:"Passkey not found",AUTHENTICATION_FAILED:"Authentication failed",UNABLE_TO_CREATE_SESSION:"Unable to create session",FAILED_TO_UPDATE_PASSKEY:"Failed to update passkey"},Mce={INVALID_PHONE_NUMBER:"Invalid phone number",PHONE_NUMBER_EXIST:"Phone number already exists",INVALID_PHONE_NUMBER_OR_PASSWORD:"Invalid phone number or password",UNEXPECTED_ERROR:"Unexpected error",OTP_NOT_FOUND:"OTP not found",OTP_EXPIRED:"OTP expired",INVALID_OTP:"Invalid OTP",PHONE_NUMBER_NOT_VERIFIED:"Phone number not verified"},Lce={SUBSCRIPTION_NOT_FOUND:"Subscription not found",SUBSCRIPTION_PLAN_NOT_FOUND:"Subscription plan not found",ALREADY_SUBSCRIBED_PLAN:"You're already subscribed to this plan",UNABLE_TO_CREATE_CUSTOMER:"Unable to create customer",FAILED_TO_FETCH_PLANS:"Failed to fetch plans",EMAIL_VERIFICATION_REQUIRED:"Email verification is required before you can subscribe to a plan",SUBSCRIPTION_NOT_ACTIVE:"Subscription is not active",SUBSCRIPTION_NOT_SCHEDULED_FOR_CANCELLATION:"Subscription is not scheduled for cancellation"},Nce={TEAM_LIMIT_REACHED:"Team limit reached for this organization",TEAM_MEMBER_LIMIT_REACHED:"Team member limit reached for this team",TEAM_NOT_FOUND:"Team not found",TEAM_MEMBER_NOT_FOUND:"Team member not found",TEAM_NAME_TOO_LONG:"Team name is too long",CANNOT_REMOVE_LAST_TEAM:"Cannot remove the last team",NOT_ORGANIZATION_MEMBER:"User is not a member of the organization",ALREADY_TEAM_MEMBER:"User is already a member of this team",INSUFFICIENT_TEAM_PERMISSIONS:"Insufficient permissions to perform this action on team"},Fce={OTP_NOT_ENABLED:"OTP not enabled",OTP_HAS_EXPIRED:"OTP has expired",TOTP_NOT_ENABLED:"TOTP not enabled",TWO_FACTOR_NOT_ENABLED:"Two factor isn't enabled",BACKUP_CODES_NOT_ENABLED:"Backup codes aren't enabled",INVALID_BACKUP_CODE:"Invalid backup code",INVALID_CODE:"Invalid code",TOO_MANY_ATTEMPTS_REQUEST_NEW_CODE:"Too many attempts. Please request a new code.",INVALID_TWO_FACTOR_COOKIE:"Invalid two factor cookie"},Bce={INVALID_USERNAME_OR_PASSWORD:"invalid username or password",EMAIL_NOT_VERIFIED:"email not verified",UNEXPECTED_ERROR:"unexpected error",USERNAME_IS_ALREADY_TAKEN:"username is already taken. please try another.",USERNAME_TOO_SHORT:"username is too short",USERNAME_TOO_LONG:"username is too long",INVALID_USERNAME:"username is invalid"},jce={APP:"App",ACCOUNT:"Account",ACCOUNTS:"Accounts",ACCOUNTS_DESCRIPTION:"Switch between your currently signed in accounts.",ACCOUNTS_INSTRUCTIONS:"Sign in to an additional account.",ADD_ACCOUNT:"Add Account",ADD_PASSKEY:"Add Passkey",ALREADY_HAVE_AN_ACCOUNT:"Already have an account?",AVATAR:"Avatar",AVATAR_DESCRIPTION:"Click on the avatar to upload a custom one from your files.",AVATAR_INSTRUCTIONS:"An avatar is optional but strongly recommended.",BACKUP_CODE_REQUIRED:"Backup code is required",BACKUP_CODES:"Backup Codes",BACKUP_CODES_DESCRIPTION:"Save these backup codes in a secure place. You can use them to access your account if you lose your two-factor authentication method.",BACKUP_CODE_PLACEHOLDER:"Backup Code",BACKUP_CODE:"Backup Code",CANCEL:"Cancel",CHANGE_PASSWORD:"Change Password",CHANGE_PASSWORD_DESCRIPTION:"Enter your current password and a new password.",CHANGE_PASSWORD_INSTRUCTIONS:"Please use 8 characters at minimum.",CHANGE_PASSWORD_SUCCESS:"Your password has been changed.",CONFIRM_PASSWORD:"Confirm Password",CONFIRM_PASSWORD_PLACEHOLDER:"Confirm Password",CONFIRM_PASSWORD_REQUIRED:"Confirm password is required",CONTINUE_WITH_AUTHENTICATOR:"Continue with Authenticator",COPIED_TO_CLIPBOARD:"Copied to clipboard",COPY_TO_CLIPBOARD:"Copy to clipboard",COPY_ALL_CODES:"Copy all codes",CONTINUE:"Continue",CURRENT_PASSWORD:"Current Password",CURRENT_PASSWORD_PLACEHOLDER:"Current Password",CURRENT_SESSION:"Current Session",UPDATE:"Update",DELETE:"Delete",DELETE_AVATAR:"Delete Avatar",DELETE_ACCOUNT:"Delete Account",DELETE_ACCOUNT_DESCRIPTION:"Permanently remove your account and all of its contents. This action is not reversible, so please continue with caution.",DELETE_ACCOUNT_INSTRUCTIONS:"Please confirm the deletion of your account. This action is not reversible, so please continue with caution.",DELETE_ACCOUNT_VERIFY:"Please check your email to verify the deletion of your account.",DELETE_ACCOUNT_SUCCESS:"Your account has been deleted.",DISABLE_TWO_FACTOR:"Disable Two-Factor",DISABLED_CREDENTIALS_DESCRIPTION:"Choose a provider to login to your account",DONT_HAVE_AN_ACCOUNT:"Don't have an account?",DONE:"Done",EMAIL:"Email",EMAIL_DESCRIPTION:"Enter the email address you want to use to log in.",EMAIL_INSTRUCTIONS:"Please enter a valid email address.",EMAIL_IS_THE_SAME:"Email is the same",EMAIL_PLACEHOLDER:"m@example.com",EMAIL_REQUIRED:"Email address is required",EMAIL_VERIFY_CHANGE:"Please check your email to verify the change.",EMAIL_VERIFICATION:"Email Verification",EMAIL_VERIFICATION_DESCRIPTION:"Please check your email for the verification code to complete your registration.",EMAIL_VERIFICATION_SUCCESS:"Email verification successful.",ENABLE_TWO_FACTOR:"Enable Two-Factor",IS_INVALID:"is invalid",IS_REQUIRED:"is required",IS_THE_SAME:"is the same",FORGOT_AUTHENTICATOR:"Forgot authenticator?",FORGOT_PASSWORD:"Forgot Password",FORGOT_PASSWORD_ACTION:"Send reset link",FORGOT_PASSWORD_DESCRIPTION:"Enter your email to reset your password",FORGOT_PASSWORD_EMAIL:"Check your email for the password reset link.",FORGOT_PASSWORD_LINK:"Forgot your password?",LINK:"Link",MAGIC_LINK:"Magic Link",MAGIC_LINK_ACTION:"Send magic link",MAGIC_LINK_DESCRIPTION:"Enter your email to receive a magic link",MAGIC_LINK_EMAIL:"Check your email for the magic link",EMAIL_OTP:"Email Code",EMAIL_OTP_SEND_ACTION:"Send code",EMAIL_OTP_VERIFY_ACTION:"Verify code",EMAIL_OTP_DESCRIPTION:"Enter your email to receive a code",EMAIL_OTP_VERIFICATION_SENT:"Please check your email for the verification code.",NAME:"Name",NAME_DESCRIPTION:"Please enter your full name, or a display name.",NAME_INSTRUCTIONS:"Please use 32 characters at maximum.",NAME_PLACEHOLDER:"Name",NEW_PASSWORD:"New Password",NEW_PASSWORD_PLACEHOLDER:"New Password",NEW_PASSWORD_REQUIRED:"New password is required",ONE_TIME_PASSWORD:"One-Time Password",OR_CONTINUE_WITH:"Or continue with",PASSKEY:"Passkey",PASSKEYS:"Passkeys",PASSKEYS_DESCRIPTION:"Manage your passkeys for secure access.",PASSKEYS_INSTRUCTIONS:"Securely access your account without a password.",PERSONAL_ACCOUNT:"Personal Account",API_KEYS:"API Keys",API_KEYS_DESCRIPTION:"Manage your API keys for secure access.",API_KEYS_INSTRUCTIONS:"Generate API keys to access your account programmatically.",CREATE_API_KEY:"Create API Key",CREATE_API_KEY_DESCRIPTION:"Enter a unique name for your API key to differentiate it from other keys.",API_KEY_NAME_PLACEHOLDER:"New API Key",API_KEY_CREATED:"API Key Created",CREATE_API_KEY_SUCCESS:"Please copy your API key and store it in a safe place. For security reasons we cannot show it again.",NEVER_EXPIRES:"Never Expires",EXPIRES:"Expires",NO_EXPIRATION:"No Expiration",CREATE_ORGANIZATION:"Create Organization",ORGANIZATION:"Organization",ORGANIZATION_NAME:"Name",ORGANIZATION_NAME_PLACEHOLDER:"Acme Inc.",ORGANIZATION_NAME_DESCRIPTION:"This is your organization's visible name.",ORGANIZATION_NAME_INSTRUCTIONS:"Please use 32 characters at maximum.",ORGANIZATION_SLUG:"Slug URL",ORGANIZATION_SLUG_DESCRIPTION:"This is your organization's URL namespace.",ORGANIZATION_SLUG_INSTRUCTIONS:"Please use 48 characters at maximum.",ORGANIZATION_SLUG_PLACEHOLDER:"acme-inc",CREATE_ORGANIZATION_SUCCESS:"Organization created successfully",PASSWORD:"Password",PASSWORD_PLACEHOLDER:"Password",PASSWORD_REQUIRED:"Password is required",PASSWORDS_DO_NOT_MATCH:"Passwords do not match",PROVIDERS:"Providers",PROVIDERS_DESCRIPTION:"Connect your account with a third-party service.",RECOVER_ACCOUNT:"Recover Account",RECOVER_ACCOUNT_ACTION:"Recover account",RECOVER_ACCOUNT_DESCRIPTION:"Please enter a backup code to access your account",REMEMBER_ME:"Remember me",RESEND_CODE:"Resend code",RESEND_VERIFICATION_EMAIL:"Resend Verification Email",RESET_PASSWORD:"Reset Password",RESET_PASSWORD_ACTION:"Save new password",RESET_PASSWORD_DESCRIPTION:"Enter your new password below",RESET_PASSWORD_SUCCESS:"Password reset successfully",REQUEST_FAILED:"Request failed",REVOKE:"Revoke",DELETE_API_KEY:"Delete API Key",DELETE_API_KEY_CONFIRM:"Are you sure you want to delete this API key?",API_KEY:"API Key",SIGN_IN:"Sign In",SIGN_IN_ACTION:"Login",SIGN_IN_DESCRIPTION:"Enter your email below to login to your account",SIGN_IN_USERNAME_DESCRIPTION:"Enter your username or email to login to your account",SIGN_IN_WITH:"Sign in with",SIGN_OUT:"Sign Out",SIGN_UP:"Sign Up",SIGN_UP_ACTION:"Create an account",SIGN_UP_DESCRIPTION:"Enter your information to create an account",SIGN_UP_EMAIL:"Check your email for the verification link.",SESSIONS:"Sessions",SESSIONS_DESCRIPTION:"Manage your active sessions and revoke access.",SET_PASSWORD:"Set Password",SET_PASSWORD_DESCRIPTION:"Click the button below to receive an email to set up a password for your account.",SETTINGS:"Settings",SAVE:"Save",SECURITY:"Security",SWITCH_ACCOUNT:"Switch Account",TRUST_DEVICE:"Trust this device",TWO_FACTOR:"Two-Factor",TWO_FACTOR_ACTION:"Verify code",TWO_FACTOR_DESCRIPTION:"Please enter your one-time password to continue",TWO_FACTOR_CARD_DESCRIPTION:"Add an extra layer of security to your account.",TWO_FACTOR_DISABLE_INSTRUCTIONS:"Please enter your password to disable 2FA.",TWO_FACTOR_ENABLE_INSTRUCTIONS:"Please enter your password to enable 2FA.",TWO_FACTOR_ENABLED:"Two-factor authentication has been enabled",TWO_FACTOR_DISABLED:"Two-Factor Authentication has been disabled",TWO_FACTOR_PROMPT:"Two-Factor Authentication",TWO_FACTOR_TOTP_LABEL:"Scan the QR Code with your Authenticator",SEND_VERIFICATION_CODE:"Send verification code",UNLINK:"Unlink",UPDATED_SUCCESSFULLY:"updated successfully",USERNAME:"Username",USERNAME_DESCRIPTION:"Enter the username you want to use to log in.",USERNAME_INSTRUCTIONS:"Please use 32 characters at maximum.",USERNAME_PLACEHOLDER:"Username",OPTIONAL_BRACKETS:"(Optional)",SIGN_IN_USERNAME_PLACEHOLDER:"Username or email",VERIFY_YOUR_EMAIL:"Verify Your Email",VERIFY_YOUR_EMAIL_DESCRIPTION:"Please verify your email address. Check your inbox for the verification email. If you haven't received the email, click the button below to resend.",GO_BACK:"Go back",SESSION_NOT_FRESH:"Your session is not fresh. Please sign in again.",UPLOAD_AVATAR:"Upload Avatar",LOGO:"Logo",LOGO_DESCRIPTION:"Click on the logo to upload a custom one from your files.",LOGO_INSTRUCTIONS:"A logo is optional but strongly recommended.",UPLOAD:"Upload",UPLOAD_LOGO:"Upload Logo",DELETE_LOGO:"Delete Logo",PRIVACY_POLICY:"Privacy Policy",TERMS_OF_SERVICE:"Terms of Service",PROTECTED_BY_RECAPTCHA:"This site is protected by reCAPTCHA.",BY_CONTINUING_YOU_AGREE:"By continuing, you agree to the",USER:"User",ORGANIZATIONS:"Organizations",ORGANIZATIONS_DESCRIPTION:"Manage your organizations and memberships.",ORGANIZATIONS_INSTRUCTIONS:"Create an organization to collaborate with other users.",LEAVE_ORGANIZATION:"Leave Organization",LEAVE_ORGANIZATION_CONFIRM:"Are you sure you want to leave this organization?",LEAVE_ORGANIZATION_SUCCESS:"You have successfully left the organization.",MANAGE_ORGANIZATION:"Manage Organization",REMOVE_MEMBER:"Remove Member",REMOVE_MEMBER_CONFIRM:"Are you sure you want to remove this member from the organization?",REMOVE_MEMBER_SUCCESS:"Member removed successfully",INVITE_MEMBER:"Invite Member",MEMBERS:"Members",MEMBERS_DESCRIPTION:"Add or remove members and manage their roles.",MEMBERS_INSTRUCTIONS:"Invite new members to your organization.",INVITE_MEMBER_DESCRIPTION:"Send an invitation to add a new member to your organization.",ROLE:"Role",SELECT_ROLE:"Select a role",ADMIN:"Admin",MEMBER:"Member",GUEST:"Guest",OWNER:"Owner",UPDATE_ROLE_DESCRIPTION:"Update the role for this member",UPDATE_ROLE:"Update Role",MEMBER_ROLE_UPDATED:"Member role updated successfully",SEND_INVITATION:"Send Invitation",SEND_INVITATION_SUCCESS:"Invitation sent successfully",PENDING_INVITATIONS:"Pending Invitations",PENDING_INVITATIONS_DESCRIPTION:"Manage pending invitations to your organization.",PENDING_USER_INVITATIONS_DESCRIPTION:"Invitations you've received from organizations.",CANCEL_INVITATION:"Cancel Invitation",INVITATION_CANCELLED:"Invitation cancelled successfully",ACCEPT_INVITATION:"Accept Invitation",ACCEPT_INVITATION_DESCRIPTION:"You have been invited to join an organization.",INVITATION_ACCEPTED:"Invitation accepted successfully",INVITATION_REJECTED:"Invitation rejected successfully",ACCEPT:"Accept",REJECT:"Reject",INVITATION_EXPIRED:"This invitation has expired",DELETE_ORGANIZATION:"Delete Organization",DELETE_ORGANIZATION_DESCRIPTION:"Permanently remove your organization and all of its contents. This action is not reversible — please continue with caution.",DELETE_ORGANIZATION_SUCCESS:"Organization deleted successfully",DELETE_ORGANIZATION_INSTRUCTIONS:"Enter the organization slug to continue:",SLUG_REQUIRED:"Organization slug is required",SLUG_DOES_NOT_MATCH:"The slug does not match",TEAM:"Team",TEAMS:"Teams",TEAM_ACTIVE:"Active",TEAM_SET_ACTIVE:"Set Active",CREATE_TEAM:"Create Team",CREATE_TEAM_SUCCESS:"Team created successfully",UPDATE_TEAM:"Update Team",UPDATE_TEAMS:"Update Teams",SELECT_TEAMS:"Select teams",ADD:"Add",REMOVE:"Remove",UPDATE_TEAM_DESCRIPTION:"Update the name for this team",UPDATE_TEAMS_DESCRIPTION:"Add or remove teams for this member",REMOVE_TEAM_CONFIRM:"Are you sure you want to remove this team from the organization?",CREATE_TEAM_INSTRUCTIONS:"Add new team to your organization.",TEAM_NAME:"Team Name",TEAM_NAME_PLACEHOLDER:"Engineering Team",TEAM_NAME_DESCRIPTION:"This is your team's visible name.",TEAM_NAME_INSTRUCTIONS:"Please use 64 characters at maximum.",TEAMS_DESCRIPTION:"Manage your teams within your organization.",USER_TEAMS_DESCRIPTION:"You are a member of the following teams.",DELETE_TEAM:"Delete Team",DELETE_TEAM_DESCRIPTION:"Permanently remove this team and all of its contents.",DELETE_TEAM_SUCCESS:"Team deleted successfully",DELETE_TEAM_INSTRUCTIONS:"Enter the team name to continue:",TEAM_NAME_REQUIRED:"Team name is required",TEAM_NAME_DOES_NOT_MATCH:"The team name does not match",TEAM_MEMBERS:"Team Members",TEAM_MEMBERS_DESCRIPTION:"Manage your team members and their roles.",ADD_TEAM_MEMBER:"Add Team Member",REMOVE_TEAM_MEMBER:"Remove Team Member",REMOVE_TEAM_MEMBER_CONFIRM:"Are you sure you want to remove this member from the team?",REMOVE_TEAM_MEMBER_SUCCESS:"Team member removed successfully",ADD_TEAM_MEMBER_SUCCESS:"Team member added successfully",UPDATE_TEAM_SUCCESS:"Team updated successfully",MANAGE_TEAM_MEMBERS:"Manage Team Members",MANAGE_TEAM_MEMBERS_DESCRIPTION:"Search and add organization members to this team.",NO_TEAMS_FOUND:"No teams found",MEMBER_SINGULAR:"member",MEMBER_PLURAL:"members",UNKNOWN:"Unknown",...Cce,...Tce,...wce,..._ce,...kce,...Ece,...Rce,...Ace,...Dce,...Oce,...Ice,...Mce,...Lce,...Nce,...Fce,...Bce},Uce={CALLBACK:"callback",EMAIL_OTP:"email-otp",EMAIL_VERIFICATION:"email-verification",FORGOT_PASSWORD:"forgot-password",MAGIC_LINK:"magic-link",RECOVER_ACCOUNT:"recover-account",RESET_PASSWORD:"reset-password",SIGN_IN:"sign-in",SIGN_OUT:"sign-out",SIGN_UP:"sign-up",TWO_FACTOR:"two-factor",ACCEPT_INVITATION:"accept-invitation"},QO={SETTINGS:"settings",SECURITY:"security",TEAMS:"teams",API_KEYS:"api-keys",ORGANIZATIONS:"organizations"},JO={SETTINGS:"settings",MEMBERS:"members",TEAMS:"teams",API_KEYS:"api-keys"};const h4=A.createContext({});function f4(){return A.useContext(h4)}var N0,XO;function zce(){if(XO)return N0;XO=1;var e=function(){};return N0=e,N0}var $ce=zce();const qce=Ll($ce);function Vce({async:e,appendTo:t,defer:o,id:a,nonce:n,src:i}){const l=document.createElement("script");e!==void 0&&(l.async=e),o!==void 0&&(l.defer=o),a&&(l.id=a),n&&l.setAttribute("nonce",n),l.src=i,(t==="head"?document.head:document.body).appendChild(l)}var Hce=function(e,t){var o={};for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&t.indexOf(a)<0&&(o[a]=e[a]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var n=0,a=Object.getOwnPropertySymbols(e);n<a.length;n++)t.indexOf(a[n])<0&&Object.prototype.propertyIsEnumerable.call(e,a[n])&&(o[a[n]]=e[a[n]]);return o};let hp=null,Fp=!1;const ov=new Set,av=new Set,Gce=typeof window<"u",ud="___grecaptcha_cfg",v4=`onLoadCallback_${Math.random().toString(36).slice(2)}`;function Kce(){if(!Gce)return;function e(o){if(Fp)o();else{window[ud]||(window[ud]={});const a=window[ud];a.fns||(a.fns=[]),a.fns.push(o)}}window.grecaptcha||(window.grecaptcha={}),window.grecaptcha.enterprise||(window.grecaptcha.enterprise={}),window.grecaptcha.ready=e,window.grecaptcha.enterprise.ready=e;function t(){Fp=!0;for(const o of av)o();av.clear()}window[v4]=t}function Wce({language:e,onLoadCallbackName:t,render:o,useEnterprise:a=!1,useRecaptchaNet:n=!1}){const i=n?"recaptcha.net":"google.com",l=a?"enterprise.js":"api.js",c=new URLSearchParams({render:o});return t&&c.set("onload",t),e&&c.set("hl",e),`https://www.${i}/recaptcha/${l}?${c.toString()}`}function Yce({language:e,render:t,scriptProps:o,useEnterprise:a,useRecaptchaNet:n}){const i={id:"google-recaptcha-v3"},l=Wce({language:e,onLoadCallbackName:v4,render:t,useEnterprise:a,useRecaptchaNet:n});if(hp){if(hp!==l)throw new Error("reCAPTCHA has already been loaded with different parameters. Remove the existing script and load it again.");return}hp=l,Vce(Object.assign(Object.assign(Object.assign({},i),o),{src:l}))}function Zce(e){if(!window[ud])return;const t=window[ud];t.clients&&delete t.clients[e]}function Qce(e,t){var{onLoadCallback:o,onLoadCallbackName:a}=t,n=Hce(t,["onLoadCallback","onLoadCallbackName"]);if(ov.size===0&&Kce(),Yce(n),ov.add(e),o&&(Fp?o():av.add(o)),a){let i=function(){if(!a)return;const l=window[a];typeof l=="function"&&l()};Fp?i():av.add(i)}}function Jce(e){var t,o,a;ov.delete(e),ov.size===0&&(window.grecaptcha=void 0,window[ud]=void 0,(t=document.querySelector(".grecaptcha-badge"))===null||t===void 0||t.remove(),(o=document.querySelector(`script[src="${hp}"]`))===null||o===void 0||o.remove(),(a=document.querySelector('script[src^="https://www.gstatic.com/recaptcha/releases"]'))===null||a===void 0||a.remove(),hp=null,Fp=!1)}let e2=!1;function Xce({container:e,children:t,language:o,reCaptchaKey:a,scriptProps:n,useEnterprise:i,useRecaptchaNet:l}){var c,u,p,g,m,f,v;const b=A.useId(),[S,C]=A.useState(null),[w,_]=A.useState(null),E=A.useRef(!1);A.useEffect(()=>{function D(){var O;const N=i?(O=window.grecaptcha)===null||O===void 0?void 0:O.enterprise:window.grecaptcha;if(!N)throw new Error("reCAPTCHA not found");if(!N.ready)throw new Error("reCAPTCHA ready callback not found");N.ready(()=>{C(N)})}return Qce(b,{language:o,onLoadCallback:D,onLoadCallbackName:n?.onLoadCallbackName,render:e?.element?"explicit":a,scriptProps:{appendTo:n?.appendTo,async:n?.async,defer:n?.defer,id:n?.id,nonce:n?.nonce},useEnterprise:i,useRecaptchaNet:l}),()=>{Jce(b),C(null)}},[e?.element,b,o,a,n?.appendTo,n?.async,n?.defer,n?.id,n?.nonce,n?.onLoadCallbackName,i,l]),A.useEffect(()=>{var D,O,N;if(!e?.element||!S?.render)return;const $={"error-callback":e.parameters.errorCallback,"expired-callback":e.parameters.expiredCallback,badge:((D=e.parameters)===null||D===void 0?void 0:D.badge)||"inline",callback:e.parameters.callback,sitekey:a,size:"invisible",tabindex:e.parameters.tabindex,theme:e.parameters.theme},F=typeof e?.element=="string"?document.getElementById(e.element):e?.element;if(!F)throw new Error("reCAPTCHA container element not found");const z=S.render(F,$);return!((O=e?.parameters)===null||O===void 0)&&O.hidden&&(e2||(qce(!1,"reCAPTCHA badge hidden. See https://cloud.google.com/recaptcha/docs/faq#id_like_to_hide_the_badge_what_is_allowed for more information."),e2=!0),(N=F.querySelector(".grecaptcha-badge"))===null||N===void 0||N.style.setProperty("display","none")),_(z),E.current=!0,()=>{_(null),E.current=!1,Zce(z),F.innerHTML=""}},[e?.element,(c=e?.parameters)===null||c===void 0?void 0:c.badge,(u=e?.parameters)===null||u===void 0?void 0:u.hidden,(p=e?.parameters)===null||p===void 0?void 0:p.callback,(g=e?.parameters)===null||g===void 0?void 0:g.errorCallback,(m=e?.parameters)===null||m===void 0?void 0:m.expiredCallback,(f=e?.parameters)===null||f===void 0?void 0:f.tabindex,(v=e?.parameters)===null||v===void 0?void 0:v.theme,S,a]);const x=!!e?.element,k=x?w:a,R=A.useMemo(()=>k!==null&&S?.execute?D=>{if(k===null||!S?.execute)throw new Error("reCAPTCHA has not been loaded");return x&&!E.current?(console.warn("Client ID not mounted"),null):S.execute(k,{action:D})}:void 0,[k,S,x]);return T.jsx(h4.Provider,{value:{container:e?.element,executeRecaptcha:R,reCaptchaInstance:S},children:t})}var ede=class{cache=new Map;listeners=new Map;inFlightRequests=new Map;get(e){return this.cache.get(e)}set(e,t){const o={data:t,timestamp:Date.now(),isRefetching:!1};this.cache.set(e,o),this.notify(e)}setRefetching(e,t){const o=this.cache.get(e);o&&(o.isRefetching=t,this.notify(e))}clear(e){if(e)this.cache.delete(e),this.inFlightRequests.delete(e),this.notify(e);else{this.cache.clear(),this.inFlightRequests.clear();const t=Array.from(this.listeners.keys());for(const o of t)this.notify(o)}}getInFlightRequest(e){return this.inFlightRequests.get(e)}setInFlightRequest(e,t){this.inFlightRequests.set(e,t)}removeInFlightRequest(e){this.inFlightRequests.delete(e)}subscribe(e,t){return this.listeners.has(e)||this.listeners.set(e,new Set),this.listeners.get(e).add(t),()=>{const o=this.listeners.get(e);o&&(o.delete(t),o.size===0&&this.listeners.delete(e))}}notify(e){const t=this.listeners.get(e);if(t){const o=Array.from(t);for(const a of o)a()}}},Hn=new ede;function tde(){return()=>{}}function Fi(){return A.useSyncExternalStore(tde,()=>!0,()=>!1)}function b4(){const[e,t]=A.useState();return A.useEffect(()=>{const o=()=>{const n=document.documentElement.getAttribute("lang");t(n??void 0)};o();const a=new MutationObserver(n=>{for(const i of n)i.attributeName==="lang"&&o()});return a.observe(document.documentElement,{attributes:!0}),()=>{a.disconnect()}},[]),{lang:e}}function aP(){const[e,t]=A.useState("light");return A.useEffect(()=>{const o=()=>{var n;const i=document.documentElement.classList.contains("dark")||((n=document.documentElement.getAttribute("style"))==null?void 0:n.includes("color-scheme: dark"));t(i?"dark":"light")};o();const a=new MutationObserver(n=>{for(const i of n)(i.attributeName==="style"||i.attributeName==="class")&&o()});return a.observe(document.documentElement,{attributes:!0}),()=>{a.disconnect()}},[]),{theme:e}}function ode({children:e}){const t=Fi(),{captcha:o}=A.useContext(yt);return o?.provider!=="google-recaptcha-v3"?e:T.jsxs(Xce,{reCaptchaKey:o.siteKey,useEnterprise:o.enterprise,useRecaptchaNet:o.recaptchaNet,children:[t&&T.jsx("style",{children:`
|
|
160
|
+
`),m=u;g.length>m;m++){var f=g[m];if(1024>=f.length){var v=tO.test(f)?f.replace(tO,"$1"):f;if(!v.match(/\S*Error: /)){for(var b of i){var S=b(v,a);if(S){p.push(S);break}}if(p.length>=50)break}}}return(function(C){if(!C.length)return[];var w=Array.from(C);return w.reverse(),w.slice(0,50).map((_=>{return Oe({},_,{filename:_.filename||(E=w,E[E.length-1]||{}).filename,function:_.function||_d});var E}))})(p)}})("web:javascript",Cne,kne)),this._instance=e,this.fo=(t=(o=this._instance.persistence)==null?void 0:o.get_property(yw))!==null&&t!==void 0?t:[],this.mo=Bf(this.yo()),this.bo=new jne(this.mo)}onConfigChange(){this.mo=Bf(this.yo()),this.bo.setConfig(this.mo)}onRemoteConfig(e){var t,o,a;if("errorTracking"in e){var n=(t=(o=e.errorTracking)==null?void 0:o.suppressionRules)!==null&&t!==void 0?t:[],i=(a=e.errorTracking)==null?void 0:a.captureExtensionExceptions;this.fo=n,this._instance.persistence&&this._instance.persistence.register({[yw]:this.fo,[Sw]:i})}}get _o(){var e,t=!!this._instance.get_property(Sw),o=this._instance.config.error_tracking.captureExtensionExceptions;return(e=o??t)!==null&&e!==void 0&&e}buildProperties(e,t){return this.po.buildFromUnknown(e,{syntheticException:t?.syntheticException,mechanism:{handled:t?.handled}})}addExceptionStep(e,t){if(this.mo.enabled)try{if(!Co(e)||e.trim().length===0)return void wi.warn("Ignoring exception step because message must be a non-empty string");var o=this.wo(t),{sanitizedProperties:a,droppedKeys:n}=(function(i){if(!i)return{sanitizedProperties:{},droppedKeys:[]};var l=[];return{sanitizedProperties:Object.keys(i).reduce(((c,u)=>Bne.has(u)?(l.push(u),c):(c[u]=i[u],c)),{}),droppedKeys:l}})(o);n.length>0&&wi.warn("Ignoring reserved exception step fields",{droppedKeys:n}),this.bo.add(Oe({[Nf]:e,[Ff]:new Date().toISOString()},a))}catch(i){wi.error("Failed to add exception step. Ignoring breadcrumb.",i)}}sendExceptionEvent(e){try{var t=e.$exception_list;if(this.Io(t)){if(this.Co(t))return this.So("Exception dropped: matched a suppression rule"),void wi.info("Skipping exception capture because a suppression rule matched");if(!this._o&&this.xo(t))return this.So("Exception dropped: thrown by a browser extension"),void wi.info("Skipping exception capture because it was thrown by an extension");if(!this._instance.config.error_tracking.__capturePostHogExceptions&&this.ko(t))return this.So("Exception dropped: thrown by the PostHog SDK"),void wi.info("Skipping exception capture because it was thrown by the PostHog SDK")}var o=this.mo.enabled&&Pt(e.$exception_steps)?this.To(e):e;try{var a=this._instance.capture("$exception",o,{_noTruncate:!0,_batchKey:"exceptionEvent",en:!0});return a&&this.bo.clear(),a}catch(n){return wi.error("Failed to capture exception event. Dropping this exception.",n),void this.bo.clear()}}catch(n){return void wi.error("Failed to process exception event. Ignoring this exception.",n)}}To(e){try{var t=this.bo.getAttachable();return t.length===0?e:Oe({},e,{$exception_steps:t})}catch(o){return wi.error("Failed to read buffered exception steps. Capturing exception without steps.",o),e}}So(e){this.mo.enabled&&this.bo.add({[Nf]:e,[Ff]:new Date().toISOString()})}wo(e){return No(e)?Oe({},e):{}}yo(){var e,t;return(e=(t=this._instance.config.error_tracking)==null?void 0:t.exception_steps)!==null&&e!==void 0?e:{}}Co(e){if(e.length===0)return!1;var t=e.reduce(((o,a)=>{var{type:n,value:i}=a;return Co(n)&&n.length>0&&o.$exception_types.push(n),Co(i)&&i.length>0&&o.$exception_values.push(i),o}),{$exception_types:[],$exception_values:[]});return this.fo.some((o=>{var a=o.values.map((n=>{var i,l=k3[n.operator],c=It(n.value)?n.value:[n.value],u=(i=t[n.key])!==null&&i!==void 0?i:[];return c.length>0&&l(c,u)}));return o.type==="OR"?a.some(Boolean):a.every(Boolean)}))}xo(e){return e.flatMap((t=>{var o,a;return(o=(a=t.stacktrace)==null?void 0:a.frames)!==null&&o!==void 0?o:[]})).some((t=>t.filename&&t.filename.startsWith("chrome-extension://")))}ko(e){if(e.length>0){var t,o,a,n,i=(t=(o=e[0].stacktrace)==null?void 0:o.frames)!==null&&t!==void 0?t:[],l=i[i.length-1];return(a=l==null||(n=l.filename)==null?void 0:n.includes("posthog.com/static"))!==null&&a!==void 0&&a}return!1}Io(e){return!Pt(e)&&It(e)}}},Yre=Oe({productTours:class{get ni(){return this._instance.persistence}constructor(e){this.Ao=null,this.Eo=null,this._instance=e}initialize(){this.loadIfEnabled()}onRemoteConfig(e){"productTours"in e&&(this.ni&&this.ni.register({[ww]:!!e.productTours}),this.loadIfEnabled())}loadIfEnabled(){var e,t;this.Ao||(e=this._instance).config.disable_product_tours||(t=e.persistence)==null||!t.get_property(ww)||this.ur((()=>this.Ro()))}ur(e){var t,o;(t=et.__PosthogExtensions__)!=null&&t.generateProductTours?e():(o=et.__PosthogExtensions__)==null||o.loadExternalDependency==null||o.loadExternalDependency(this._instance,"product-tours",(a=>{a?jO.error("Could not load product tours script",a):e()}))}Ro(){var e;!this.Ao&&(e=et.__PosthogExtensions__)!=null&&e.generateProductTours&&(this.Ao=et.__PosthogExtensions__.generateProductTours(this._instance,!0))}getProductTours(e,t){if(t===void 0&&(t=!1),!It(this.Eo)||t){var o=this.ni;if(o){var a=o.props[af];if(It(a)&&!t)return this.Eo=a,void e(a,{isLoaded:!0})}this._instance._send_request({url:this._instance.requestRouter.endpointFor("api","/api/product_tours/?token="+this._instance.config.token),method:"GET",callback:n=>{var i=n.statusCode;if(i!==200||!n.json){var l="Product Tours API could not be loaded, status: "+i;return jO.error(l),void e([],{isLoaded:!1,error:l})}var c=It(n.json.product_tours)?n.json.product_tours:[];this.Eo=c,o&&o.register({[af]:c}),e(c,{isLoaded:!0})}})}else e(this.Eo,{isLoaded:!0})}getActiveProductTours(e){Pt(this.Ao)?e([],{isLoaded:!1,error:"Product tours not loaded"}):this.Ao.getActiveProductTours(e)}showProductTour(e){var t;(t=this.Ao)==null||t.showTourById(e)}previewTour(e){this.Ao?this.Ao.previewTour(e):this.ur((()=>{var t;this.Ro(),(t=this.Ao)==null||t.previewTour(e)}))}dismissProductTour(){var e;(e=this.Ao)==null||e.dismissTour("user_clicked_skip")}nextStep(){var e;(e=this.Ao)==null||e.nextStep()}previousStep(){var e;(e=this.Ao)==null||e.previousStep()}clearCache(){var e;this.Eo=null,(e=this.ni)==null||e.unregister(af)}resetTour(e){var t;(t=this.Ao)==null||t.resetTour(e)}resetAllTours(){var e;(e=this.Ao)==null||e.resetAllTours()}cancelPendingTour(e){var t;(t=this.Ao)==null||t.cancelPendingTour(e)}}},$v),Zre={siteApps:class{constructor(e){this._instance=e,this.No=[],this.apps={}}get isEnabled(){return!!this._instance.config.opt_in_site_apps}Mo(e,t){if(t){var o=this.globalsForEvent(t);this.No.push(o),this.No.length>1e3&&(this.No=this.No.slice(10))}}get siteAppLoaders(){var e;return(e=et._POSTHOG_REMOTE_CONFIG)==null||(e=e[this._instance.config.token])==null?void 0:e.siteApps}initialize(){if(this.isEnabled){var e=this._instance._addCaptureHook(this.Mo.bind(this));this.Fo=()=>{e(),this.No=[],this.Fo=void 0}}}globalsForEvent(e){var t,o,a,n,i,l,c;if(!e)throw new Error("Event payload is required");var u={},p=this._instance.get_property("$groups")||[],g=this._instance.get_property("$stored_group_properties")||{};for(var[m,f]of Object.entries(g))u[m]={id:p[m],type:m,properties:f};var{$set_once:v,$set:b}=e;return{event:Oe({},EB(e,Ure),{properties:Oe({},e.properties,b?{$set:Oe({},(t=(o=e.properties)==null?void 0:o.$set)!==null&&t!==void 0?t:{},b)}:{},v?{$set_once:Oe({},(a=(n=e.properties)==null?void 0:n.$set_once)!==null&&a!==void 0?a:{},v)}:{}),elements_chain:(i=(l=e.properties)==null?void 0:l.$elements_chain)!==null&&i!==void 0?i:"",distinct_id:(c=e.properties)==null?void 0:c.distinct_id}),person:{properties:this._instance.get_property("$stored_person_properties")},groups:u}}setupSiteApp(e){var t=this.apps[e.id],o=()=>{var l;!t.errored&&this.No.length&&(gs.info("Processing "+this.No.length+" events for site app with id "+e.id),this.No.forEach((c=>t.processEvent==null?void 0:t.processEvent(c))),t.processedBuffer=!0),Object.values(this.apps).every((c=>c.processedBuffer||c.errored))&&((l=this.Fo)==null||l.call(this))},a=!1,n=l=>{t.errored=!l,t.loaded=!0,gs.info("Site app with id "+e.id+" "+(l?"loaded":"errored")),a&&o()};try{var{processEvent:i}=e.init({posthog:this._instance,callback(l){n(l)}});i&&(t.processEvent=i),a=!0}catch(l){gs.error(UO+e.id,l),n(!1)}if(a&&t.loaded)try{o()}catch(l){gs.error("Error while processing buffered events PostHog app with config id "+e.id,l),t.errored=!0}}Oo(){var e=this.siteAppLoaders||[];for(var t of e)this.apps[t.id]={id:t.id,loaded:!1,errored:!1,processedBuffer:!1};for(var o of e)this.setupSiteApp(o)}Po(e){if(Object.keys(this.apps).length!==0){var t=this.globalsForEvent(e);for(var o of Object.values(this.apps))try{o.processEvent==null||o.processEvent(t)}catch(a){gs.error("Error while processing event "+e.event+" for site app "+o.id,a)}}}onRemoteConfig(e){var t,o,a,n=this;if((t=this.siteAppLoaders)!=null&&t.length)return this.isEnabled?(this.Oo(),void this._instance.on("eventCaptured",(u=>this.Po(u)))):void gs.error('PostHog site apps are disabled. Enable the "opt_in_site_apps" config to proceed.');if((o=this.Fo)==null||o.call(this),(a=e.siteApps)!=null&&a.length)if(this.isEnabled){var i=function(u){var p;et["__$$ph_site_app_"+u]=n._instance,(p=et.__PosthogExtensions__)==null||p.loadSiteApp==null||p.loadSiteApp(n._instance,c,(g=>{if(g)return gs.error(UO+u,g)}))};for(var{id:l,url:c}of e.siteApps)i(l)}else gs.error('PostHog site apps are disabled. Enable the "opt_in_site_apps" config to proceed.')}}},Qre={tracingHeaders:class{constructor(e){this.Lo=void 0,this.Do=void 0,this.so=()=>{var t,o,a=this.Bo()||[];Ve(this.Lo)&&((t=et.__PosthogExtensions__)==null||(t=t.tracingHeadersPatchFns)==null||t._patchXHR(a,this._instance.get_distinct_id(),this._instance.sessionManager)),Ve(this.Do)&&((o=et.__PosthogExtensions__)==null||(o=o.tracingHeadersPatchFns)==null||o._patchFetch(a,this._instance.get_distinct_id(),this._instance.sessionManager))},this._instance=e}initialize(){this.startIfEnabledOrStop()}ur(e){var t,o;(t=et.__PosthogExtensions__)!=null&&t.tracingHeadersPatchFns&&e(),(o=et.__PosthogExtensions__)==null||o.loadExternalDependency==null||o.loadExternalDependency(this._instance,"tracing-headers",(a=>{if(a)return Bre.error("failed to load script",a);e()}))}Bo(){var e;return(e=this._instance.config.addTracingHeaders)!==null&&e!==void 0?e:this._instance.config.__add_tracing_headers}startIfEnabledOrStop(){var e,t;this.Bo()?this.ur(this.so):((e=this.Lo)==null||e.call(this),(t=this.Do)==null||t.call(this),this.Lo=void 0,this.Do=void 0)}}},Jre=Oe({surveys:class{get Bt(){return this._instance.config}constructor(e){this.jo=void 0,this._surveyManager=null,this.$o=!1,this.qo=[],this.Zo=null,this._instance=e,this._surveyEventReceiver=null}initialize(){this.loadIfEnabled()}onRemoteConfig(e){if(!this.Bt.disable_surveys){var t=e.surveys;if(Pt(t))return eo.warn("Flags not loaded yet. Not loading surveys.");var o=It(t);this.jo=o?t.length>0:t,eo.info("flags response received, isSurveysEnabled: "+this.jo),this.loadIfEnabled()}}reset(){localStorage.removeItem("lastSeenSurveyDate");for(var e=[],t=0;t<localStorage.length;t++){var o=localStorage.key(t);(o!=null&&o.startsWith($w)||o!=null&&o.startsWith("inProgressSurvey_"))&&e.push(o)}e.forEach((a=>localStorage.removeItem(a)))}loadIfEnabled(){if(!this._surveyManager)if(this.$o)eo.info("Already initializing surveys, skipping...");else if(this.Bt.disable_surveys)eo.info(zO);else if(this.Bt.cookieless_mode&&this._instance.consent.isOptedOut())eo.info("Not loading surveys in cookieless mode without consent.");else{var e=et?.__PosthogExtensions__;if(e){if(!Ve(this.jo)||this.Bt.advanced_enable_surveys){var t=this.jo||this.Bt.advanced_enable_surveys;this.$o=!0;try{var o=e.generateSurveys;if(o)return void this.Vo(o,t);var a=e.loadExternalDependency;if(!a)return void this.Ho(qC);a(this._instance,"surveys",(n=>{n||!e.generateSurveys?this.Ho("Could not load surveys script",n):this.Vo(e.generateSurveys,t)}))}catch(n){throw this.Ho("Error initializing surveys",n),n}finally{this.$o=!1}}}else eo.error("PostHog Extensions not found.")}}Vo(e,t){this._surveyManager=e(this._instance,t),this._surveyEventReceiver=new qre(this._instance),eo.info("Surveys loaded successfully"),this.zo({isLoaded:!0})}Ho(e,t){eo.error(e,t),this.zo({isLoaded:!1,error:e})}onSurveysLoaded(e){return this.qo.push(e),this._surveyManager&&this.zo({isLoaded:!0}),()=>{this.qo=this.qo.filter((t=>t!==e))}}getSurveys(e,t){if(t===void 0&&(t=!1),this.Bt.disable_surveys)return eo.info(zO),e([]);var o,a=this._instance.get_property(kw);if(a&&!t)return e(a,{isLoaded:!0});typeof Promise<"u"&&this.Zo?this.Zo.then((n=>{var{surveys:i,context:l}=n;return e(i,l)})):(typeof Promise<"u"&&(this.Zo=new Promise((n=>{o=n}))),this._instance._send_request({url:this._instance.requestRouter.endpointFor("api","/api/surveys/?token="+this.Bt.token),method:"GET",timeout:this.Bt.surveys_request_timeout_ms,callback:n=>{var i;this.Zo=null;var l=n.statusCode;if(l!==200||!n.json){var c="Surveys API could not be loaded, status: "+l;eo.error(c);var u={isLoaded:!1,error:c};return e([],u),void(o==null||o({surveys:[],context:u}))}var p,g=n.json.surveys||[],m=g.filter((v=>(function(b){return!(!b.start_date||b.end_date)})(v)&&((function(b){var S;return!((S=b.conditions)==null||(S=S.events)==null||(S=S.values)==null||!S.length)})(v)||(function(b){var S;return!((S=b.conditions)==null||(S=S.actions)==null||(S=S.values)==null||!S.length)})(v))));m.length>0&&((p=this._surveyEventReceiver)==null||p.register(m)),(i=this._instance.persistence)==null||i.register({[kw]:g});var f={isLoaded:!0};e(g,f),o?.({surveys:g,context:f})}}))}zo(e){for(var t of this.qo)try{if(!e.isLoaded)return t([],e);this.getSurveys(t)}catch(o){eo.error("Error in survey callback",o)}}getActiveMatchingSurveys(e,t){if(t===void 0&&(t=!1),!Pt(this._surveyManager))return this._surveyManager.getActiveMatchingSurveys(e,t);eo.warn("init was not called")}Uo(e){var t=null;return this.getSurveys((o=>{var a;t=(a=o.find((n=>n.id===e)))!==null&&a!==void 0?a:null})),t}Yo(e){if(Pt(this._surveyManager))return{eligible:!1,reason:O0};var t=typeof e=="string"?this.Uo(e):e;return t?this._surveyManager.checkSurveyEligibility(t):{eligible:!1,reason:"Survey not found"}}canRenderSurvey(e){if(Pt(this._surveyManager))return eo.warn("init was not called"),{visible:!1,disabledReason:O0};var t=this.Yo(e);return{visible:t.eligible,disabledReason:t.reason}}canRenderSurveyAsync(e,t){return Pt(this._surveyManager)?(eo.warn("init was not called"),Promise.resolve({visible:!1,disabledReason:O0})):new Promise((o=>{this.getSurveys((a=>{var n,i=(n=a.find((c=>c.id===e)))!==null&&n!==void 0?n:null;if(i){var l=this.Yo(i);o({visible:l.eligible,disabledReason:l.reason})}else o({visible:!1,disabledReason:"Survey not found"})}),t)}))}renderSurvey(e,t,o){var a;if(Pt(this._surveyManager))eo.warn("init was not called");else{var n=typeof e=="string"?this.Uo(e):e;if(n!=null&&n.id)if(_re.includes(n.type)){var i=Be?.querySelector(t);if(i)return(a=n.appearance)!=null&&a.surveyPopupDelaySeconds?(eo.info("Rendering survey "+n.id+" with delay of "+n.appearance.surveyPopupDelaySeconds+" seconds"),void setTimeout((()=>{var l,c;eo.info("Rendering survey "+n.id+" with delay of "+((l=n.appearance)==null?void 0:l.surveyPopupDelaySeconds)+" seconds"),(c=this._surveyManager)==null||c.renderSurvey(n,i,o),eo.info("Survey "+n.id+" rendered")}),1e3*n.appearance.surveyPopupDelaySeconds)):void this._surveyManager.renderSurvey(n,i,o);eo.warn("Survey element not found")}else eo.warn("Surveys of type "+n.type+" cannot be rendered in the app");else eo.warn("Survey not found")}}displaySurvey(e,t){var o;if(Pt(this._surveyManager))eo.warn("init was not called");else{var a=this.Uo(e);if(a){var n=a;if((o=a.appearance)!=null&&o.surveyPopupDelaySeconds&&t.ignoreDelay&&(n=Oe({},a,{appearance:Oe({},a.appearance,{surveyPopupDelaySeconds:0})})),t.displayType!==Nw.Popover&&t.initialResponses&&eo.warn("initialResponses is only supported for popover surveys. prefill will not be applied."),t.ignoreConditions===!1){var i=this.canRenderSurvey(a);if(!i.visible)return void eo.warn("Survey is not eligible to be displayed: ",i.disabledReason)}t.displayType!==Nw.Inline?this._surveyManager.handlePopoverSurvey(n,t):this.renderSurvey(n,t.selector,t.properties)}else eo.warn("Survey not found")}}cancelPendingSurvey(e){Pt(this._surveyManager)?eo.warn("init was not called"):this._surveyManager.cancelSurvey(e)}handlePageUnload(){var e;(e=this._surveyManager)==null||e.handlePageUnload()}}},$v),Xre={toolbar:class{constructor(e){this.instance=e}Go(e){et.ph_toolbar_state=e}Wo(){var e;return(e=et.ph_toolbar_state)!==null&&e!==void 0?e:0}initialize(){return this.maybeLoadToolbar()}maybeLoadToolbar(e,t,o){if(e===void 0&&(e=void 0),t===void 0&&(t=void 0),o===void 0&&(o=void 0),l3(this.instance.config)||!he||!Be)return!1;e=e??he.location,o=o??he.history;try{if(!t){try{he.localStorage.setItem("test","test"),he.localStorage.removeItem("test")}catch{return!1}t=he?.localStorage}var a,n=Vre||Yf(e.hash,"__posthog")||Yf(e.hash,"state"),i=n?aO((()=>JSON.parse(atob(decodeURIComponent(n)))))||aO((()=>JSON.parse(decodeURIComponent(n)))):null;return i&&i.action==="ph_authorize"?((a=i).source="url",a&&Object.keys(a).length>0&&(i.desiredHash?e.hash=i.desiredHash:o?o.replaceState(o.state,"",e.pathname+e.search):e.hash="")):((a=JSON.parse(t.getItem($O)||"{}")).source="localstorage",delete a.userIntent),!(!a.token||this.instance.config.token!==a.token||(this.loadToolbar(a),0))}catch{return!1}}Xo(e){var t=et.ph_load_toolbar||et.ph_load_editor;!Pt(t)&&Ci(t)?t(e,this.instance):qO.warn("No toolbar load function found")}loadToolbar(e){var t=!(Be==null||!Be.getElementById(n3));if(!he||t)return!1;var o=this.instance.requestRouter.region==="custom"&&this.instance.config.advanced_disable_toolbar_metrics,a=Oe({token:this.instance.config.token},e,{apiURL:this.instance.requestRouter.endpointFor("ui")},o?{instrument:!1}:{});if(he.localStorage.setItem($O,JSON.stringify(Oe({},a,{source:void 0}))),this.Wo()===2)this.Xo(a);else if(this.Wo()===0){var n;this.Go(1),(n=et.__PosthogExtensions__)==null||n.loadExternalDependency==null||n.loadExternalDependency(this.instance,"toolbar",(i=>{if(i)return qO.error("[Toolbar] Failed to load",i),void this.Go(0);this.Go(2),this.Xo(a)})),Yo(he,"turbolinks:load",(()=>{this.Go(0),this.loadToolbar(a)}))}return!0}Jo(e){return this.loadToolbar(e)}maybeLoadEditor(e,t,o){return e===void 0&&(e=void 0),t===void 0&&(t=void 0),o===void 0&&(o=void 0),this.maybeLoadToolbar(e,t,o)}}},eie=Oe({experiments:Ia},$v),tie={conversations:class{constructor(e){this.Ko=void 0,this._conversationsManager=null,this.Qo=!1,this.ea=null,this._instance=e}initialize(){this.loadIfEnabled()}onRemoteConfig(e){if(!this._instance.config.disable_conversations){var t=e.conversations;Pt(t)||($r(t)?this.Ko=t:(this.Ko=t.enabled,this.ea=t),this.loadIfEnabled())}}reset(){var e;(e=this._conversationsManager)==null||e.reset(),this._conversationsManager=null,this.Ko=void 0,this.ea=null}loadIfEnabled(){if(!(this._conversationsManager||this.Qo||this._instance.config.disable_conversations||l3(this._instance.config)||this._instance.config.cookieless_mode&&this._instance.consent.isOptedOut())){var e=et?.__PosthogExtensions__;if(e&&!Ve(this.Ko)&&this.Ko)if(this.ea&&this.ea.token){this.Qo=!0;try{var t=e.initConversations;if(t)return this.ta(t),void(this.Qo=!1);var o=e.loadExternalDependency;if(!o)return void this.ra(qC);o(this._instance,"conversations",(a=>{a||!e.initConversations?this.ra("Could not load conversations script",a):this.ta(e.initConversations),this.Qo=!1}))}catch(a){this.ra("Error initializing conversations",a),this.Qo=!1}}else Vn.error("Conversations enabled but missing token in remote config.")}}ta(e){if(this.ea)try{this._conversationsManager=e(this.ea,this._instance),Vn.info("Conversations loaded successfully")}catch(t){this.ra("Error completing conversations initialization",t)}else Vn.error("Cannot complete initialization: remote config is null")}ra(e,t){Vn.error(e,t),this._conversationsManager=null,this.Qo=!1}show(){this._conversationsManager?this._conversationsManager.show():Vn.warn("Conversations not loaded yet.")}hide(){this._conversationsManager&&this._conversationsManager.hide()}isAvailable(){return this.Ko===!0&&!Mi(this._conversationsManager)}isVisible(){var e,t;return(e=(t=this._conversationsManager)==null?void 0:t.isVisible())!==null&&e!==void 0&&e}sendMessage(e,t,o){var a=this;return Kn((function*(){return a._conversationsManager?a._conversationsManager.sendMessage(e,t,o):(Vn.warn(ml),null)}))()}getMessages(e,t){var o=this;return Kn((function*(){return o._conversationsManager?o._conversationsManager.getMessages(e,t):(Vn.warn(ml),null)}))()}markAsRead(e){var t=this;return Kn((function*(){return t._conversationsManager?t._conversationsManager.markAsRead(e):(Vn.warn(ml),null)}))()}getTickets(e){var t=this;return Kn((function*(){return t._conversationsManager?t._conversationsManager.getTickets(e):(Vn.warn(ml),null)}))()}requestRestoreLink(e){var t=this;return Kn((function*(){return t._conversationsManager?t._conversationsManager.requestRestoreLink(e):(Vn.warn(ml),null)}))()}restoreFromToken(e){var t=this;return Kn((function*(){return t._conversationsManager?t._conversationsManager.restoreFromToken(e):(Vn.warn(ml),null)}))()}restoreFromUrlToken(){var e=this;return Kn((function*(){return e._conversationsManager?e._conversationsManager.restoreFromUrlToken():(Vn.warn(ml),null)}))()}getCurrentTicketId(){var e,t;return(e=(t=this._conversationsManager)==null?void 0:t.getCurrentTicketId())!==null&&e!==void 0?e:null}getWidgetSessionId(){var e,t;return(e=(t=this._conversationsManager)==null?void 0:t.getWidgetSessionId())!==null&&e!==void 0?e:null}un(){var e;(e=this._conversationsManager)==null||e.setIdentity()}hn(){var e;(e=this._conversationsManager)==null||e.clearIdentity()}}},oie={logs:class{constructor(e){var t;this.ia=!1,this.na=!1,this.Gt=So("[logs]"),this.sa=[],this.oa=0,this.aa=0,this.la=!1,this._instance=e,this._instance&&(t=this._instance.config.logs)!=null&&t.captureConsoleLogs&&(this.ia=!0)}initialize(){this.loadIfEnabled()}onRemoteConfig(e){var t,o=(t=e.logs)==null?void 0:t.captureConsoleLogs;!Pt(o)&&o&&(this.ia=!0,this.loadIfEnabled())}reset(){this.sa=[],this.jr&&(clearTimeout(this.jr),this.jr=void 0),this.oa=0,this.aa=0,this.la=!1}loadIfEnabled(){if(this.ia&&!this.na){var e=et?.__PosthogExtensions__;if(e){var t=e.loadExternalDependency;t?t(this._instance,"logs",(o=>{var a;o||(a=e.logs)==null||!a.initializeLogs?this.Gt.error("Could not load logs script",o):(e.logs.initializeLogs(this._instance),this.na=!0)})):this.Gt.error(qC)}else this.Gt.error("PostHog Extensions not found.")}}captureLog(e){var t,o,a,n,i,l;if(this._instance.is_capturing())if(e&&e.body){var c=(t=(o=this._instance.config.logs)==null?void 0:o.flushIntervalMs)!==null&&t!==void 0?t:3e3,u=(a=(n=this._instance.config.logs)==null?void 0:n.maxLogsPerInterval)!==null&&a!==void 0?a:1e3,p=Date.now();if(c>p-this.aa||(this.aa=p,this.oa=0,this.la=!1),u>this.oa){this.oa++;var g=(function(m,f){var v=m.level||"info",{text:b,number:S}=WB[v]||bne,C=String(Date.now())+"000000",w={};f.distinctId&&(w.posthogDistinctId=f.distinctId),f.sessionId&&(w.sessionId=f.sessionId),f.currentUrl&&(w["url.full"]=f.currentUrl),f.screenName&&(w["screen.name"]=f.screenName),f.appState&&(w["app.state"]=f.appState),f.activeFeatureFlags&&f.activeFeatureFlags.length>0&&(w.feature_flags=f.activeFeatureFlags);var _=Oe({},w,m.attributes||{}),E={timeUnixNano:C,observedTimeUnixNano:C,severityNumber:S,severityText:b,body:{stringValue:m.body},attributes:eO(_)};return m.trace_id&&(E.traceId=m.trace_id),m.span_id&&(E.spanId=m.span_id),Ve(m.trace_flags)||(E.flags=m.trace_flags),E})(e,this.ua());this.sa.push({record:g}),((i=(l=this._instance.config.logs)==null?void 0:l.maxBufferSize)!==null&&i!==void 0?i:100)>this.sa.length?this.ha():this.flushLogs()}else this.la||(this.Gt.warn("captureLog dropping logs: exceeded "+u+" logs per "+c+"ms"),this.la=!0)}else this.Gt.warn("captureLog requires a body")}get logger(){return this.ca||(this.ca={trace:(e,t)=>this.captureLog({body:e,level:"trace",attributes:t}),debug:(e,t)=>this.captureLog({body:e,level:"debug",attributes:t}),info:(e,t)=>this.captureLog({body:e,level:"info",attributes:t}),warn:(e,t)=>this.captureLog({body:e,level:"warn",attributes:t}),error:(e,t)=>this.captureLog({body:e,level:"error",attributes:t}),fatal:(e,t)=>this.captureLog({body:e,level:"fatal",attributes:t})}),this.ca}flushLogs(e){if(this.jr&&(clearTimeout(this.jr),this.jr=void 0),this.sa.length!==0){var t=this.sa;this.sa=[];var o=this._instance.config.logs,a=Oe({"service.name":o?.serviceName||"unknown_service"},o?.environment&&{"deployment.environment":o.environment},o?.serviceVersion&&{"service.version":o.serviceVersion},o?.resourceAttributes),n=(function(l,c,u,p){return{resourceLogs:[{resource:{attributes:eO(c)},scopeLogs:[{scope:{name:u,version:p},logRecords:l}]}]}})(t.map((l=>l.record)),a,Ka.LIB_NAME,Ka.LIB_VERSION),i=this._instance.requestRouter.endpointFor("api","/i/v1/logs")+"?token="+encodeURIComponent(this._instance.config.token);this._instance.Vi({method:"POST",url:i,data:n,compression:"best-available",batchKey:"logs",transport:e})}}ha(){var e,t;this.jr||(this.jr=setTimeout((()=>{this.jr=void 0,this.flushLogs()}),(e=(t=this._instance.config.logs)==null?void 0:t.flushIntervalMs)!==null&&e!==void 0?e:3e3))}ua(){var e,t={};if(t.distinctId=this._instance.get_distinct_id(),this._instance.sessionManager){var{sessionId:o}=this._instance.sessionManager.checkAndGetSessionAndWindowId(!0);t.sessionId=o}if(et!=null&&(e=et.location)!=null&&e.href&&(t.currentUrl=et.location.href),this._instance.featureFlags){var a=this._instance.featureFlags.getFlags();a&&a.length>0&&(t.activeFeatureFlags=a)}return t}}},aie=Oe({},$v,Gre,Kre,Wre,Yre,Zre,Jre,Qre,Xre,eie,tie,oie);Yn.__defaultExtensionClasses=Oe({},aie);var KO,Li=(KO=mp[Yc]=new Yn,(function(){function e(){e.done||(e.done=!0,A3=!1,ho(mp,(function(t){t._dom_loaded()})))}Be!=null&&Be.addEventListener?Be.readyState==="complete"?e():Yo(Be,"DOMContentLoaded",e,{capture:!1}):he&&ze.error("Browser doesn't support `document.addEventListener` so PostHog couldn't be initialized")})(),KO);const nie="studio-ui-resources",ev="html",rie=10080*60*1e3,iie=50,sie=16*1024*1024;function lie(e){return e[0]==="mcp"&&e[1]===BL}function qv(){return new Promise((e,t)=>{const o=indexedDB.open(nie,1);o.onupgradeneeded=()=>{o.result.objectStoreNames.contains(ev)||o.result.createObjectStore(ev)},o.onsuccess=()=>e(o.result),o.onerror=()=>t(o.error)})}function xd(e,t){return e.transaction(ev,t).objectStore(ev)}function Kw(e){return new Promise((t,o)=>{e.onsuccess=()=>t(e.result),e.onerror=()=>o(e.error)})}async function cie(e){if(!(typeof indexedDB>"u"))try{const t=await qv(),o=xd(t,"readonly"),a=await Kw(o.getAllKeys()),n=await Kw(o.getAll()),i=Date.now(),l=a.map((p,g)=>({key:p,value:n[g]})).sort((p,g)=>(g.value?.updatedAt??0)-(p.value?.updatedAt??0)),c=[];let u=0;for(const{key:p,value:g}of l){if(!g||i-g.updatedAt>rie||u>=iie){c.push(p);continue}u++;try{const f=JSON.parse(String(p));e.getQueryData(f)===void 0&&e.setQueryData(f,g.html,{updatedAt:0})}catch{c.push(p)}}if(c.length>0){const p=xd(t,"readwrite");for(const g of c)p.delete(g)}}catch{}}function die(e){if(typeof indexedDB>"u")return()=>{};const t=qv().catch(()=>null);return e.getQueryCache().subscribe(o=>{const a=o.query;if(!Array.isArray(a.queryKey)||!lie(a.queryKey)||a.state.status!=="success")return;const n=a.state.data;typeof n!="string"||n.length>sie||t.then(i=>{if(i)try{xd(i,"readwrite").put({html:n,updatedAt:Date.now()},JSON.stringify(a.queryKey))}catch{}})})}function uie(){typeof indexedDB>"u"||qv().then(e=>xd(e,"readwrite").clear()).catch(()=>{})}async function ive(e){if(!(typeof indexedDB>"u"))try{const t=await qv(),o=await Kw(xd(t,"readonly").getAllKeys()),a=xd(t,"readwrite");for(const n of o)try{const i=JSON.parse(String(n));i[1]===BL&&i[3]===e&&a.delete(n)}catch{}}catch{}}const tv="studio:rq-cache",ZC=1440*60*1e3,pie=1e3,mie=new Set(["publicConfig","ai-provider-keys","organization-settings","home-next-actions"]),gie=new Set(["VIRTUAL_MCP","CONNECTIONS"]);let j3=!1,U3=!1;function hie(e){const t=e[0];return typeof t=="string"&&mie.has(t)?!0:e[3]==="collection"&&typeof e[4]=="string"&&gie.has(e[4])}function fie(e){if(!(typeof window>"u"))try{const t=window.localStorage.getItem(tv);if(!t)return;const o=JSON.parse(t),a=!o.timestamp||Date.now()-o.timestamp>ZC;if(o.buster!=="4.373.3"||a||!o.state){window.localStorage.removeItem(tv);return}q$(e,o.state),e.invalidateQueries({queryKey:On.publicConfig(),refetchType:"none"}),j3=!0}catch{Sie()}}function vie(e){if(typeof window>"u")return()=>{};let t=null;const o=()=>{t=null;try{const i=$$(e,{shouldDehydrateQuery:l=>l.state.status==="success"&&hie(l.queryKey)});window.localStorage.setItem(tv,JSON.stringify({buster:"4.373.3",timestamp:Date.now(),state:i}))}catch{}},a=e.getQueryCache().subscribe(()=>{t==null&&(t=setTimeout(o,pie))}),n=()=>{t!=null&&(clearTimeout(t),o())};return window.addEventListener("pagehide",n),()=>{t!=null&&clearTimeout(t),window.removeEventListener("pagehide",n),a()}}const z3="studio:org-cache:",bie=20;function yie(e){const t=Date.now(),o=Object.entries(e).filter(([,a])=>t-a.updatedAt<=ZC);for(o.sort(([,a],[,n])=>a.updatedAt-n.updatedAt);o.length>bie;)o.shift();return Object.fromEntries(o)}function $3(e){return`${z3}${e}`}function sve(e,t){if(typeof window>"u")return null;try{const o=window.localStorage.getItem($3(e));if(!o)return null;const a=JSON.parse(o)[t];return!a||Date.now()-a.updatedAt>ZC?null:(U3=!0,a)}catch{return null}}function lve(e,t,o){if(!(typeof window>"u"))try{const a=$3(e),n=window.localStorage.getItem(a),i=n?JSON.parse(n):{};i[t]={data:o,updatedAt:Date.now()},window.localStorage.setItem(a,JSON.stringify(yie(i)))}catch{}}function Sie(){if(uie(),!(typeof window>"u"))try{window.localStorage.removeItem(tv);for(let e=window.localStorage.length-1;e>=0;e--){const t=window.localStorage.key(e);t?.startsWith(z3)&&window.localStorage.removeItem(t)}}catch{}}function Tie(){return j3}function wie(){return U3}let Ai=!1,Ww=null,WO=!1;const QC="studio:lp-distinct-id",q3="mesh:lp-distinct-id",M0="/api/_reports/link-token/",_ie=1440*60*1e3;function V3(e){const t="https://analytics.invalid",o=/^[a-z][a-z\d+.-]*:\/\//i.test(e),a=e.startsWith("//");try{const n=new URL(e,t);let i=!1;for(const l of["key","d"])n.searchParams.has(l)&&(n.searchParams.delete(l),i=!0);return n.pathname.startsWith(M0)&&n.pathname!==M0&&(n.pathname=`${M0}redacted`,i=!0),i?o?n.toString():a?`//${n.host}${n.pathname}${n.search}${n.hash}`:`${n.pathname}${n.search}${n.hash}`:e}catch{return e}}function L0(e){return Object.fromEntries(Object.entries(e).map(([t,o])=>[t,typeof o=="string"?V3(o):o]))}const Cie=e=>e?(e.properties=L0(e.properties),e.$set&&(e.$set=L0(e.$set)),e.$set_once&&(e.$set_once=L0(e.$set_once)),e):null;function H3(){try{const e=window.localStorage.getItem(QC)??window.localStorage.getItem(q3);if(!e)return;const{id:t,ts:o}=JSON.parse(e);return typeof t!="string"||!t||typeof o!="number"?void 0:Date.now()-o<=_ie?t:void 0}catch{return}}function Pie(){try{window.localStorage.removeItem(QC),window.localStorage.removeItem(q3)}catch{}}function xie(){try{const e=new URL(window.location.href),t=e.searchParams.get("ph_did");t&&(window.localStorage.setItem(QC,JSON.stringify({id:t,ts:Date.now()})),e.searchParams.delete("ph_did"),window.history.replaceState(window.history.state,"",e.toString()));const o=t??H3();return o?Object.keys(window.localStorage).some(n=>n.startsWith("ph_")&&n.endsWith("_posthog"))?void 0:o:void 0}catch{return}}function kie(e){const t=H3();if(t&&(Pie(),t!==e))try{Li.alias(t)}catch{}}function Eie(e,t){if(Ai||typeof window>"u")return;const o=xie();Li.init(e,{api_host:t,ui_host:"https://us.posthog.com",cross_subdomain_cookie:!0,...o?{bootstrap:{distinctID:o}}:{},capture_pageview:"history_change",capture_pageleave:!0,autocapture:!0,before_send:Cie,capture_performance:{web_vitals:!0,network_timing:!0},capture_exceptions:!0,session_recording:{maskAllInputs:!0,blockClass:"ph-no-capture",maskCapturedNetworkRequestFn:a=>({...a,...typeof a.name=="string"?{name:V3(a.name)}:{}})},person_profiles:"identified_only"}),Ai=!0}function Rie(e,t){Ai&&(Li.identify(e,t),kie(e))}function Aie(){Ai&&(Li.reset(),Ww=null)}function JC(e,t){Ai&&Li.capture(e,t)}function cve(){return Ai}function dve(){if(!Ai||WO||typeof performance>"u")return;WO=!0;const e=performance.getEntriesByType("navigation")[0],t=o=>{const a=performance.getEntriesByName(o,"measure")[0];return a?Math.round(a.duration):void 0};JC("perf_app_bootstrap",{nav_type:e?.type,ttfb_ms:e?Math.round(e.responseStart):void 0,dom_interactive_ms:e?Math.round(e.domInteractive):void 0,dom_content_loaded_ms:e?Math.round(e.domContentLoadedEventEnd):void 0,config_fetch_ms:t("studio:config-fetch"),active_org_fetch_ms:t("studio:active-org-fetch"),time_to_shell_ms:Math.round(performance.now()),cache_restored:Tie(),org_cache_restored:wie()})}function uve(e,t){Ai&&e!==Ww&&(Li.group("organization",e,t),Ww=e)}function G3(e,t){if(Ai)try{Li.captureException(e,t)}catch{}}const Die=["radial-gradient(ellipse 85% 85% at 0% 0%, rgba(165,149,255,0.6) 0%, transparent 72%)","radial-gradient(ellipse 85% 85% at 100% 100%, rgba(208,236,26,0.52) 0%, transparent 72%)","radial-gradient(ellipse 85% 85% at 0% 100%, rgba(255,193,22,0.48) 0%, transparent 72%)"].join(", ");function Oie(e){const t=Ne.c(3),{children:o}=e;let a;t[0]===Symbol.for("react.memo_cache_sentinel")?(a=T.jsx("div",{className:"absolute inset-0 pointer-events-none",style:{backgroundImage:Die}}),t[0]=a):a=t[0];let n;return t[1]!==o?(n=T.jsxs("div",{className:"relative flex items-center justify-center min-h-screen bg-background overflow-hidden",children:[a,T.jsx("div",{className:"relative flex flex-col items-center text-center space-y-4 max-w-sm px-6",children:o})]}),t[1]=o,t[2]=n):n=t[2],n}function K3(e){const t=Ne.c(20),{orgName:o}=e,a=ar(),n=Iie;let i;t[0]===Symbol.for("react.memo_cache_sentinel")?(i=T.jsx("div",{className:"bg-muted p-3 rounded-full",children:T.jsx(gB,{className:"h-6 w-6 text-muted-foreground"})}),t[0]=i):i=t[0];let l;t[1]!==a?(l=a("common.archivedOrgScreen.orgUnavailable"),t[1]=a,t[2]=l):l=t[2];let c;t[3]!==l?(c=T.jsx("h3",{className:"text-lg font-medium",children:l}),t[3]=l,t[4]=c):c=t[4];let u;t[5]!==o||t[6]!==a?(u=o?a("common.archivedOrgScreen.deletedWithName",{orgName:o}):a("common.archivedOrgScreen.deletedGeneric"),t[5]=o,t[6]=a,t[7]=u):u=t[7];let p;t[8]!==u?(p=T.jsx("p",{className:"text-sm text-muted-foreground",children:u}),t[8]=u,t[9]=p):p=t[9];let g;t[10]!==c||t[11]!==p?(g=T.jsxs("div",{className:"space-y-2",children:[c,p]}),t[10]=c,t[11]=p,t[12]=g):g=t[12];let m;t[13]!==a?(m=a("common.archivedOrgScreen.goHome"),t[13]=a,t[14]=m):m=t[14];let f;t[15]!==m?(f=T.jsx(Al,{onClick:n,children:m}),t[15]=m,t[16]=f):f=t[16];let v;return t[17]!==g||t[18]!==f?(v=T.jsxs(Oie,{children:[i,g,f]}),t[17]=g,t[18]=f,t[19]=v):v=t[19],v}function Iie(){window.location.href="/"}function Mie(){const e=Ne.c(3);let t;e[0]===Symbol.for("react.memo_cache_sentinel")?(t={from:"/shell/$org"},e[0]=t):t=e[0];const{org:o}=Rd(t);let a;return e[1]!==o?(a=T.jsx(Al,{variant:"outline",size:"sm",asChild:!0,children:T.jsx(Nl,{to:"/$org/settings/profile",params:{org:o},children:"Go to your profile"})}),e[1]=o,e[2]=a):a=e[2],a}function Lie(e){const t=Ne.c(13),{area:o,description:a,action:n}=e,i=o?`No access to ${o}`:"No access",l=a??"Your role doesn't include permission for this section. Ask an organization admin to update your role if you need it.";let c;t[0]===Symbol.for("react.memo_cache_sentinel")?(c=T.jsx("div",{className:"flex h-16 w-16 items-center justify-center rounded-full bg-muted text-muted-foreground",children:T.jsx(wB,{size:28})}),t[0]=c):c=t[0];let u;t[1]!==i?(u=T.jsx("h3",{className:"text-lg font-medium",children:i}),t[1]=i,t[2]=u):u=t[2];let p;t[3]!==l?(p=T.jsx("p",{className:"mx-auto max-w-sm text-sm text-muted-foreground",children:l}),t[3]=l,t[4]=p):p=t[4];let g;t[5]!==u||t[6]!==p?(g=T.jsxs("div",{className:"space-y-1",children:[u,p]}),t[5]=u,t[6]=p,t[7]=g):g=t[7];let m;t[8]!==n?(m=n??T.jsx(Mie,{}),t[8]=n,t[9]=m):m=t[9];let f;return t[10]!==g||t[11]!==m?(f=T.jsxs("div",{className:"flex h-full min-h-[60vh] flex-1 flex-col items-center justify-center gap-4 p-6 text-center",children:[c,g,m]}),t[10]=g,t[11]=m,t[12]=f):f=t[12],f}const YO="__studio_chunk_reload_ts";function W3(e){return e?.message==="Organization is archived"}function Nie(e){return!!e?.message?.includes("Access denied")}function ZO(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 Fie extends A.Component{state={hasError:!1,error:null};static getDerivedStateFromError(t){return{hasError:!0,error:t}}componentDidCatch(t,o){console.error("Uncaught error:",t,o),G3(t,{boundary:"default",error_name:t.name,error_message:t.message,component_stack:o.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,t:o}=this.props;return typeof t=="function"?t({error:this.state.error,resetError:this.resetError}):t!==void 0?t:W3(this.state.error)?T.jsx(K3,{}):Nie(this.state.error)?T.jsx(Lie,{}):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(MC,{className:"h-6 w-6 text-destructive"})}),T.jsxs("div",{className:"space-y-2",children:[T.jsx("h3",{className:"text-lg font-medium",children:o("common.errorBoundary.somethingWentWrong")}),T.jsx("p",{className:"text-sm text-muted-foreground max-w-xs mx-auto",children:this.state.error?.message||o("common.errorBoundary.unexpectedError")})]}),T.jsx(Al,{variant:"outline",onClick:this.resetError,children:o("common.errorBoundary.tryAgain")})]})}return this.props.children}}function Bie(e){const t=Ne.c(3),o=ar();let a;return t[0]!==e||t[1]!==o?(a=T.jsx(Fie,{...e,t:o}),t[0]=e,t[1]=o,t[2]=a):a=t[2],a}class jie extends A.Component{state={hasError:!1,error:null};static getDerivedStateFromError(t){return{hasError:!0,error:t}}componentDidCatch(t,o){console.error("Uncaught error:",t,o);const a=ZO(t);if(G3(t,{boundary:"chunk_root",is_chunk_load_error:a,error_name:t.name,error_message:t.message,component_stack:o.componentStack??null,route:typeof window<"u"?window.location.pathname:null}),!a)return;const n=sessionStorage.getItem(YO),i=Date.now();(!n||i-Number(n)>1e4)&&(sessionStorage.setItem(YO,String(i)),window.location.reload())}render(){const{t}=this.props;return this.state.hasError&&ZO(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(_B,{className:"h-6 w-6 text-primary"})}),T.jsxs("div",{className:"space-y-2",children:[T.jsx("h3",{className:"text-lg font-medium",children:t("common.errorBoundary.newVersionAvailable")}),T.jsx("p",{className:"text-sm text-muted-foreground max-w-xs mx-auto",children:t("common.errorBoundary.newVersionDeployed")})]}),T.jsx(Al,{onClick:()=>window.location.reload(),children:t("common.errorBoundary.refresh")})]}):this.state.hasError?W3(this.state.error)?T.jsx(K3,{}):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(MC,{className:"h-6 w-6 text-destructive"})}),T.jsxs("div",{className:"space-y-2",children:[T.jsx("h3",{className:"text-lg font-medium",children:t("common.errorBoundary.somethingWentWrong")}),T.jsx("p",{className:"text-sm text-muted-foreground max-w-xs mx-auto",children:this.state.error?.message||t("common.errorBoundary.unexpectedError")})]}),T.jsx(Al,{variant:"outline",onClick:()=>this.setState({hasError:!1,error:null}),children:t("common.errorBoundary.tryAgain")})]}):this.props.children}}function Uie(e){const t=Ne.c(3),o=ar();let a;return t[0]!==e||t[1]!==o?(a=T.jsx(jie,{...e,t:o}),t[0]=e,t[1]=o,t[2]=a):a=t[2],a}function zie(e){const t=Ne.c(8);let o,a;t[0]!==e?({className:o,...a}=e,t[0]=e,t[1]=o,t[2]=a):(o=t[1],a=t[2]);let n;t[3]!==o?(n=Nt("bg-card text-card-foreground flex flex-col gap-6 rounded-xl card-shadow",o),t[3]=o,t[4]=n):n=t[4];let i;return t[5]!==a||t[6]!==n?(i=T.jsx("div",{"data-slot":"card",className:n,...a}),t[5]=a,t[6]=n,t[7]=i):i=t[7],i}function pve(e){const t=Ne.c(4);let o;t[0]!==e?({...o}=e,t[0]=e,t[1]=o):o=t[1];let a;return t[2]!==o?(a=T.jsx("div",{"data-slot":"card-content",...o}),t[2]=o,t[3]=a):a=t[3],a}function mve(e){const t=Ne.c(12),{title:o,description:a,docsHref:n,actions:i,className:l,headerClassName:c,children:u}=e;let p;t[0]!==l?(p=Nt("flex flex-col gap-3",l),t[0]=l,t[1]=p):p=t[1];let g;t[2]!==i||t[3]!==a||t[4]!==n||t[5]!==c||t[6]!==o?(g=(o||a||n||i)&&T.jsxs("div",{className:Nt("flex items-center justify-between gap-3 px-4",c),children:[T.jsxs("div",{className:"flex flex-col gap-1 min-w-0",children:[o&&T.jsx("h2",{className:"text-[15px] font-medium leading-tight",children:o}),(a||n)&&T.jsxs("p",{className:"text-sm text-muted-foreground leading-snug",children:[a,n&&T.jsxs("a",{href:n,target:"_blank",rel:"noreferrer",className:"inline-flex items-center gap-0.5 ml-1 text-foreground hover:underline",children:["Docs ",T.jsx(hB,{size:12})]})]})]}),i&&T.jsx("div",{className:"shrink-0",children:i})]}),t[2]=i,t[3]=a,t[4]=n,t[5]=c,t[6]=o,t[7]=g):g=t[7];let m;return t[8]!==u||t[9]!==p||t[10]!==g?(m=T.jsxs("section",{className:p,children:[g,u]}),t[8]=u,t[9]=p,t[10]=g,t[11]=m):m=t[11],m}function gve(e){const t=Ne.c(11),{className:o,children:a}=e;let n,i,l;if(t[0]!==a||t[1]!==o){const u=A.Children.toArray(a).filter(A.isValidElement);n=zie,t[5]!==o?(i=Nt("p-0 gap-0 overflow-hidden",o),t[5]=o,t[6]=i):i=t[6],l=u.map($ie),t[0]=a,t[1]=o,t[2]=n,t[3]=i,t[4]=l}else n=t[2],i=t[3],l=t[4];let c;return t[7]!==n||t[8]!==i||t[9]!==l?(c=T.jsx(n,{className:i,children:l}),t[7]=n,t[8]=i,t[9]=l,t[10]=c):c=t[10],c}function $ie(e,t){return T.jsxs("div",{children:[t>0&&T.jsx("div",{className:"h-px bg-border mx-5"}),e]},t)}function hve(e){const t=Ne.c(27),{icon:o,title:a,description:n,action:i,onClick:l,className:c,children:u}=e,p=u?"flex items-start gap-3 px-4 py-4":"flex items-center gap-3 px-4 py-4",g=l&&"hover:bg-muted/50 cursor-pointer";let m;t[0]!==c||t[1]!==p||t[2]!==g?(m=Nt(p,g,c),t[0]=c,t[1]=p,t[2]=g,t[3]=m):m=t[3];const f=l?"button":void 0,v=l?0:void 0;let b;t[4]!==l?(b=l?k=>{k.target===k.currentTarget&&(k.key==="Enter"||k.key===" ")&&(k.preventDefault(),l())}:void 0,t[4]=l,t[5]=b):b=t[5];let S;t[6]!==o?(S=o&&T.jsx("div",{className:"size-8 shrink-0 rounded-lg bg-muted/60 flex items-center justify-center text-muted-foreground",children:o}),t[6]=o,t[7]=S):S=t[7];let C;t[8]!==a?(C=T.jsx("div",{className:"text-sm font-medium",children:a}),t[8]=a,t[9]=C):C=t[9];let w;t[10]!==n?(w=n&&T.jsx("p",{className:"text-xs text-muted-foreground mt-0.5 leading-relaxed",children:n}),t[10]=n,t[11]=w):w=t[11];let _;t[12]!==u||t[13]!==C||t[14]!==w?(_=T.jsxs("div",{className:"flex-1 min-w-0",children:[C,w,u]}),t[12]=u,t[13]=C,t[14]=w,t[15]=_):_=t[15];let E;t[16]!==i?(E=i&&T.jsx("div",{className:"shrink-0",onClick:qie,children:i}),t[16]=i,t[17]=E):E=t[17];let x;return t[18]!==l||t[19]!==_||t[20]!==E||t[21]!==m||t[22]!==f||t[23]!==v||t[24]!==b||t[25]!==S?(x=T.jsxs("div",{className:m,onClick:l,role:f,tabIndex:v,onKeyDown:b,children:[S,_,E]}),t[18]=l,t[19]=_,t[20]=E,t[21]=m,t[22]=f,t[23]=v,t[24]=b,t[25]=S,t[26]=x):x=t[26],x}function qie(e){return e.stopPropagation()}function fve(e){const t=Ne.c(5),{className:o,children:a}=e;let n;t[0]!==o?(n=Nt("px-4 py-4",o),t[0]=o,t[1]=n):n=t[1];let i;return t[2]!==a||t[3]!==n?(i=T.jsx("div",{className:n,children:a}),t[2]=a,t[3]=n,t[4]=i):i=t[4],i}function vve(e){const t=Ne.c(5),{children:o,className:a}=e;let n;t[0]!==a?(n=Nt("flex items-center justify-end gap-2 px-4 py-4",a),t[0]=a,t[1]=n):n=t[1];let i;return t[2]!==o||t[3]!==n?(i=T.jsx("div",{className:n,children:o}),t[2]=o,t[3]=n,t[4]=i):i=t[4],i}function Vie(e){const t=Ne.c(5),{className:o,children:a}=e;let n;t[0]!==o?(n=Nt("flex flex-col gap-10",o),t[0]=o,t[1]=n):n=t[1];let i;return t[2]!==a||t[3]!==n?(i=T.jsx("div",{className:n,children:a}),t[2]=a,t[3]=n,t[4]=i):i=t[4],i}const am={connect:{key:"connect",titleKey:"settings.connectClients.pageTitle",tabs:[],ownedRoutes:["/$org/settings/api-keys"]},members:{key:"members",titleKey:"orgs.members.title",tabs:[{key:"members",icon:xB,labelKey:"orgs.members.title",to:"/$org/settings/members",requires:"members:manage"},{key:"roles",icon:PB,labelKey:"settings.roles.pageTitle",to:"/$org/settings/roles",privilegedOnly:!0}]},billing:{key:"billing",titleKey:"settings.nav.billing",tabs:[{key:"ai-providers",icon:bB,labelKey:"settings.nav.aiProviders",to:"/$org/settings/ai-providers",requires:"ai-providers:manage"},{key:"infra",icon:CB,labelKey:"settings.subnav.infrastructure",to:"/$org/settings/infra-billing",requires:"members:manage",requiresOwnedSites:!0}]},repositories:{key:"repositories",titleKey:"settings.nav.repositories",tabs:[],ownedRoutes:["/$org/settings/repositories"]},storage:{key:"storage",titleKey:"settings.nav.storage",tabs:[{key:"buckets",icon:TB,labelKey:"settings.nav.buckets",to:"/$org/settings/buckets",requires:"file-configs:manage"},{key:"synced-repos",icon:SB,labelKey:"settings.nav.syncedRepos",to:"/$org/settings/synced-repos",requires:"file-configs:manage"}]}};function bve(e){const t=am[e];return[...t.tabs.map(o=>o.to),...t.ownedRoutes??[]]}function yve(e){return am[e].tabs.length>0}const Hie=new Set(["owner","admin"]);function Y3(){const e=Ne.c(11),{org:t,locator:o}=Wp();let a;e[0]!==o?(a=On.myCapabilities(o),e[0]=o,e[1]=a):a=e[1];let n;e[2]!==t?(n=async()=>{const g=await fetch(`/api/auth/custom/my-capabilities/${encodeURIComponent(t.slug)}`,{credentials:"include"});if(!g.ok)throw new Error(`my-capabilities request failed: ${g.status}`);return await g.json()},e[2]=t,e[3]=n):n=e[3];let i;e[4]!==a||e[5]!==n?(i={queryKey:a,queryFn:n,staleTime:3e4,retry:2},e[4]=a,e[5]=n,e[6]=i):i=e[6];const{data:l,isLoading:c,isError:u}=Dd(i);let p;return e[7]!==l||e[8]!==u||e[9]!==c?(p={data:l,loading:c,error:u},e[7]=l,e[8]=u,e[9]=c,e[10]=p):p=e[10],p}function Sve(e){const t=Ne.c(8),{data:o,loading:a,error:n}=Y3();if(a){let p;return t[0]===Symbol.for("react.memo_cache_sentinel")?(p={granted:!1,loading:!0,error:!1,reason:"loading"},t[0]=p):p=t[0],p}if(n){let p;return t[1]===Symbol.for("react.memo_cache_sentinel")?(p={granted:!1,loading:!1,error:!0,reason:"error"},t[1]=p):p=t[1],p}const i=o?.role??null;if(!i){let p;return t[2]===Symbol.for("react.memo_cache_sentinel")?(p={granted:!1,loading:!1,error:!1,reason:"denied"},t[2]=p):p=t[2],p}if(i==="owner"){let p;return t[3]===Symbol.for("react.memo_cache_sentinel")?(p={granted:!0,loading:!1,error:!1,reason:"owner"},t[3]=p):p=t[3],p}if(i==="admin"){let p;return t[4]===Symbol.for("react.memo_cache_sentinel")?(p={granted:!0,loading:!1,error:!1,reason:"admin"},t[4]=p):p=t[4],p}const l=o?.capabilities?.[e]===!0,c=l?"role":"denied";let u;return t[5]!==l||t[6]!==c?(u={granted:l,loading:!1,error:!1,reason:c},t[5]=l,t[6]=c,t[7]=u):u=t[7],u}function Z3(){const e=Ne.c(10),{data:t,loading:o,error:a}=Y3(),n=t?.role??void 0;let i;e[0]!==n?(i=n?Hie.has(n):!1,e[0]=n,e[1]=i):i=e[1];const l=i;let c;e[2]!==t?.capabilities?(c=t?.capabilities??{},e[2]=t?.capabilities,e[3]=c):c=e[3];const u=c;let p;return e[4]!==a||e[5]!==l||e[6]!==o||e[7]!==n||e[8]!==u?(p={capabilities:u,loading:o,error:a,isPrivileged:l,roleSlug:n},e[4]=a,e[5]=l,e[6]=o,e[7]=n,e[8]=u,e[9]=p):p=e[9],p}function Gie(){const e=Ne.c(13),{org:t}=Wp(),o=oC(),{capabilities:a,isPrivileged:n}=Z3(),i=n||!!a["members:manage"];let l;e[0]!==t.id?(l=On.infraBillingSites(t.id),e[0]=t.id,e[1]=l):l=e[1];const c=!!t.id&&i;let u;e[2]!==o?(u=()=>o.call("INFRA_BILLING_SITES_LIST",{}),e[2]=o,e[3]=u):u=e[3];let p;e[4]!==l||e[5]!==c||e[6]!==u?(p={queryKey:l,staleTime:3e5,enabled:c,queryFn:u},e[4]=l,e[5]=c,e[6]=u,e[7]=p):p=e[7];const{data:g,isLoading:m}=Dd(p);let f;e[8]!==g?.sites?(f=g?.sites.map(Kie)??[],e[8]=g?.sites,e[9]=f):f=e[9];let v;return e[10]!==m||e[11]!==f?(v={sites:f,isLoading:m},e[10]=m,e[11]=f,e[12]=v):v=e[12],v}function Kie(e){return e.slug}function Tve(){const e=Ne.c(7),t=oC(),o=ar();let a;e[0]!==t?(a=l=>t.call("INFRA_BILLING_PORTAL",{siteSlugs:l}),e[0]=t,e[1]=a):a=e[1];let n;e[2]!==o?(n=l=>Vr.error(o("settings.infraBilling.portalError",{message:l.message})),e[2]=o,e[3]=n):n=e[3];let i;return e[4]!==a||e[5]!==n?(i={mutationFn:a,onSuccess:Wie,onError:n},e[4]=a,e[5]=n,e[6]=i):i=e[6],lp(i)}function Wie(e){const{url:t}=e;return window.open(t,"_blank","noopener,noreferrer")}function wve(e,t){const o=Ne.c(14),{org:a}=Wp(),n=oC();let i,l,c;o[0]!==a.id||o[1]!==t||o[2]!==e?(i=[...e].sort(),c=Dd,l=On.infraBilling(a.id,i.join(","),t),o[0]=a.id,o[1]=t,o[2]=e,o[3]=i,o[4]=l,o[5]=c):(i=o[3],l=o[4],c=o[5]);const u=i.length>0;let p;o[6]!==t||o[7]!==i||o[8]!==n?(p=()=>n.call("INFRA_BILLING_GET",{siteSlugs:i,period:t}),o[6]=t,o[7]=i,o[8]=n,o[9]=p):p=o[9];let g;return o[10]!==l||o[11]!==u||o[12]!==p?(g={queryKey:l,enabled:u,staleTime:6e4,queryFn:p},o[10]=l,o[11]=u,o[12]=p,o[13]=g):g=o[13],c(g)}function Q3(){const e=Ne.c(7),{capabilities:t,isPrivileged:o,loading:a,error:n}=Z3(),{sites:i,isLoading:l}=Gie(),c=i.length>0;let u;if(e[0]!==t||e[1]!==n||e[2]!==o||e[3]!==a||e[4]!==c||e[5]!==l){const p=g=>g.requiresOwnedSites&&!c&&!l?!1:a||n?!0:g.privilegedOnly?o:g.requires?o||t[g.requires]:!0;u=Object.fromEntries(Object.values(am).map(g=>[g.key,g.tabs.filter(p)])),e[0]=t,e[1]=n,e[2]=o,e[3]=a,e[4]=c,e[5]=l,e[6]=u}else u=e[6];return u}function Yie(e){const t=Ne.c(16),{group:o}=e,a=ar();let n;t[0]===Symbol.for("react.memo_cache_sentinel")?(n={from:"/shell/$org"},t[0]=n):n=t[0];const{org:i}=Rd(n);let l;t[1]===Symbol.for("react.memo_cache_sentinel")?(l={select:Zie},t[1]=l):l=t[1];const c=gv(l),u=Q3()[o],{titleKey:p}=am[o];let g;t[2]!==a||t[3]!==p?(g=a(p),t[2]=a,t[3]=p,t[4]=g):g=t[4];let m;t[5]!==g?(m=T.jsx(xl.Title,{children:g}),t[5]=g,t[6]=m):m=t[6];let f;t[7]!==o||t[8]!==i||t[9]!==c||t[10]!==a||t[11]!==u?(f=u.length>1&&T.jsx(ea.Toolbar.Left.Portal,{children:T.jsx(xl.Tabs,{"data-testid":"settings-subnav","aria-label":a("settings.subnav.ariaLabel"),children:u.map(b=>{const S=b.to.replace("$org",i),C=c===S||c.startsWith(`${S}/`);return T.jsx(xl.Tab,{active:C,asChild:!0,children:T.jsx(Nl,{to:b.to,params:{org:i},onClick:()=>JC("settings_subnav_clicked",{group_key:o,tab_key:b.key}),children:a(b.labelKey)})},b.key)})})}),t[7]=o,t[8]=i,t[9]=c,t[10]=a,t[11]=u,t[12]=f):f=t[12];let v;return t[13]!==m||t[14]!==f?(v=T.jsxs(T.Fragment,{children:[m,f]}),t[13]=m,t[14]=f,t[15]=v):v=t[15],v}function Zie(e){return e.location.pathname}function Qie(e){const t=Ne.c(16),{group:o}=e,a=ar();let n;t[0]===Symbol.for("react.memo_cache_sentinel")?(n={from:"/shell/$org"},t[0]=n):n=t[0];const{org:i}=Rd(n);let l;t[1]===Symbol.for("react.memo_cache_sentinel")?(l={select:Jie},t[1]=l):l=t[1];const c=gv(l),u=Q3()[o],{titleKey:p}=am[o];let g;t[2]!==a||t[3]!==p?(g=a(p),t[2]=a,t[3]=p,t[4]=g):g=t[4];let m;t[5]!==g?(m=T.jsx(xl.Title,{children:g}),t[5]=g,t[6]=m):m=t[6];let f;t[7]!==o||t[8]!==i||t[9]!==c||t[10]!==a||t[11]!==u?(f=u.length>1&&T.jsx("nav",{"data-slot":"settings-subnav","aria-label":a("settings.subnav.ariaLabel"),className:"bg-muted inline-flex h-10 w-fit items-center rounded-xl p-[3px] gap-0.5",children:u.map(b=>{const S=b.to.replace("$org",i),C=c===S||c.startsWith(`${S}/`);return T.jsx(Nl,{to:b.to,params:{org:i},onClick:()=>JC("settings_subnav_clicked",{group_key:o,tab_key:b.key}),className:Nt("inline-flex h-full items-center justify-center rounded-lg border border-transparent px-3 text-sm font-medium whitespace-nowrap transition-[color,box-shadow]",C?"bg-background text-foreground shadow-sm":"text-muted-foreground hover:text-foreground"),children:a(b.labelKey)},b.key)})}),t[7]=o,t[8]=i,t[9]=c,t[10]=a,t[11]=u,t[12]=f):f=t[12];let v;return t[13]!==m||t[14]!==f?(v=T.jsxs("div",{"data-slot":"settings-heading",className:"flex flex-col gap-4",children:[m,f]}),t[13]=m,t[14]=f,t[15]=v):v=t[15],v}function Jie(e){return e.location.pathname}function Xie(e){const t=Ne.c(3),o=sC();let a;return t[0]!==o||t[1]!==e?(a=o?T.jsx(Yie,{...e}):T.jsx(Qie,{...e}),t[0]=o,t[1]=e,t[2]=a):a=t[2],a}function J3(){const e=Ne.c(1);let t;return e[0]===Symbol.for("react.memo_cache_sentinel")?(t=T.jsxs("div",{"data-testid":"settings-content-loading",className:"flex flex-col gap-4",children:[T.jsx(vD,{className:"h-32 w-full"}),T.jsx(vD,{className:"h-32 w-full"})]}),e[0]=t):t=e[0],t}function ese(e){const t=Ne.c(14),{group:o,fallback:a,errorFallback:n,className:i,children:l}=e;let c;t[0]!==o?(c=T.jsx(Xie,{group:o}),t[0]=o,t[1]=c):c=t[1];let u;t[2]!==a?(u=a??T.jsx(J3,{}),t[2]=a,t[3]=u):u=t[3];let p;t[4]!==l||t[5]!==u?(p=T.jsx(A.Suspense,{fallback:u,children:l}),t[4]=l,t[5]=u,t[6]=p):p=t[6];let g;t[7]!==n||t[8]!==p?(g=T.jsx(Bie,{fallback:n,children:p}),t[7]=n,t[8]=p,t[9]=g):g=t[9];let m;return t[10]!==i||t[11]!==c||t[12]!==g?(m=T.jsx(xl,{children:T.jsx(xl.Content,{children:T.jsx(xl.Container,{children:T.jsxs(Vie,{className:i,children:[c,g]})})})}),t[10]=i,t[11]=c,t[12]=g,t[13]=m):m=t[13],m}function Ni(e){return function(){return T.jsx(ese,{group:e,children:T.jsx(J3,{})})}}function tse(e){try{localStorage.setItem(jl.lastLocation(),JSON.stringify(e))}catch{}}function ose(){try{const e=localStorage.getItem(jl.lastLocation());if(!e)return null;const t=JSON.parse(e);if(typeof t?.org=="string")return{org:t.org,taskId:typeof t.taskId=="string"?t.taskId:void 0,virtualmcpid:typeof t.virtualmcpid=="string"?t.virtualmcpid:void 0}}catch{}return null}function _ve(){try{localStorage.removeItem(jl.lastLocation())}catch{}}const Ot={home:"/$org/home",projects:"/$org/projects/$agentId",tasks:"/$org/tasks/{-$taskKey}",reports:"/$org/reports",library:"/$org/library",discover:"/$org/discover",orgIndex:"/$org/"},nt={root:Ot.projects,tasks:"/$org/projects/$agentId/tasks/{-$taskKey}",reports:"/$org/projects/$agentId/reports",siteEditor:"/$org/projects/$agentId/site-editor",siteEditorContent:"/$org/projects/$agentId/site-editor/content",siteEditorCode:"/$org/projects/$agentId/site-editor/code",automations:"/$org/projects/$agentId/automations",automation:"/$org/projects/$agentId/automations/$automationId",app:"/$org/projects/$agentId/apps/$connectionId/$toolName",view:"/$org/projects/$agentId/views/$viewId",outputFile:"/$org/projects/$agentId/outputs/file",outputDeck:"/$org/projects/$agentId/outputs/deck",libraryFile:"/$org/projects/$agentId/library/file",connectSources:"/$org/projects/$agentId/connect-sources",settings:"/$org/projects/$agentId/settings",assets:"/$org/projects/$agentId/assets",git:"/$org/projects/$agentId/git",hosting:"/$org/projects/$agentId/hosting",e2e:"/$org/projects/$agentId/e2e",analytics:"/$org/projects/$agentId/analytics",experiments:"/$org/projects/$agentId/experiments",monitor:"/$org/projects/$agentId/cdn"};function Cve(){const e=Ne.c(1);let t;return e[0]===Symbol.for("react.memo_cache_sentinel")?(t={select:ase},e[0]=t):t=e[0],gv(t)}function ase(e){return e.matches.at(-1)?.fullPath??""}const nse=new Map([[Ot.reports,"project-only"],[Ot.library,"org-only"]]);function Pve(e,t){const o=nse.get(e);return o===void 0?!0:o==="project-only"?t!==null:t===null}function xve(){const e=Ne.c(1);let t;return e[0]===Symbol.for("react.memo_cache_sentinel")?(t={select:rse},e[0]=t):t=e[0],gv(t)}function rse(e){return e.matches.findLast(ise)?.staticData.mainView}function ise(e){return e.staticData.mainView}function sf(e){return`agent-view:${encodeURIComponent(e)}`}function sse(e){if(!e?.startsWith("agent-view:"))return null;const t=e.slice(11);if(!t)return null;try{const o=decodeURIComponent(t);return o?{id:o}:null}catch{return null}}function X3(e){if(!e||!e.startsWith("automation:"))return null;const t=e.slice(11);return t?{id:t}:null}function XC(e,t){return`app:${e}:${t}`}function lse(e){if(!e||!e.startsWith("app:"))return null;const t=e.slice(4),o=t.indexOf(":");if(o<=0)return null;const a=t.slice(0,o),n=t.slice(o+1);return!a||!n?null:{connectionId:a,toolName:n}}function e4(e){return`deck:${encodeURIComponent(e)}`}function cse(e){if(!e||!e.startsWith("deck:"))return null;const t=e.slice(5);if(!t)return null;try{return{path:decodeURIComponent(t)}}catch{return null}}function t4(e){return`file:${encodeURIComponent(e)}`}function dse(e){if(!e||!e.startsWith("file:"))return null;const t=e.slice(5);if(!t)return null;try{return{key:decodeURIComponent(t)}}catch{return null}}function o4(e){return`library-file:${encodeURIComponent(e)}`}function use(e){if(!e||!e.startsWith("library-file:"))return null;const t=e.slice(13);if(!t)return null;try{return{path:decodeURIComponent(t)}}catch{return null}}function a4(e){return`code:${encodeURIComponent(e)}`}function pse(e){if(!e)return null;if(e==="code")return{path:null};if(!e.startsWith("code:"))return null;const t=e.slice(5);if(!t)return null;try{return{path:decodeURIComponent(t)}}catch{return null}}const n4=["overview","settings","automations","site-editor","code","content","assets","hosting","e2e","analytics","cdn","git"],mse=new Set(n4),r4=new Set(["hosting","e2e","analytics","cdn"]),gse=new Set(["board","files","connect-sources","reports"]);function kve(e){return e.startsWith("app:")||e.startsWith("automation:")||e.startsWith("file:")||e.startsWith("deck:")||e.startsWith("library-file:")||e.startsWith("code:")}const hse=new Map([["preview","site-editor"]]);function Vv(e){return hse.get(e)??e}const eP=new Set(["instructions","connections","layout","settings"]);function fse(e){return!!e&&eP.has(e)}const vse=new Set(["overview","board","reports"]);function Eve(e){const t=e?.defaultMainView??null;if(!(!t||t.type==="chat"))return i4(e??null)}function i4(e){const t=e?.defaultMainView??null;if(!t)return"settings";const o=Vv(t.type);if(eP.has(o))return"settings";if(mse.has(o)||vse.has(o))return o;if(o==="ext-app"||o==="ext-apps"){if(t.id&&t.toolName)return XC(t.id,t.toolName);const n=e?.tabs?.map(i=>i.id)??[];return t.id&&n.includes(t.id)?sf(t.id):n[0]?sf(n[0]):"settings"}const a=e?.tabs?.[0]?.id;return a?sf(a):"settings"}function Rve(e){const t=e.routeDefaultMain||i4(e.metadata),o=e.panelTabId&&eP.has(e.panelTabId)?"settings":e.panelTabId?Vv(e.panelTabId):e.panelTabId,a=e.metadata?.defaultMainView??null,n=a==null||a.type==="chat";return{mainOpen:e.mainPanelParam??(!!o||!!e.routeDefaultMain||!n),activeTab:o??t}}function Ave(e){return e.mainOpen&&e.clickedId===e.activeTab?{close:!0}:{tabId:e.clickedId}}function Dve(e){return e.mainOpen?e.activeTab==="automations"?!0:X3(e.activeTab)!==null:!1}function Ove(e){return e.mainOpen&&e.activeTab==="automations"?{close:!0}:{tabId:"automations"}}const bse=new Set([...n4.filter(e=>!r4.has(e)),...gse,"app","file","deck","library-file","connect-sources","instructions","connections","layout","preview","discover"]);function yse(e){return!!e&&bse.has(e)}function Sse(e,t){if(e)switch(e){case"app":return t.connection&&t.tool?XC(t.connection,t.tool):void 0;case"automations":return t.automation?`automation:${t.automation}`:"automations";case"file":return t.key?t4(t.key):void 0;case"deck":return t.deck?e4(t.deck):void 0;case"library-file":return t.path?o4(t.path):void 0;case"code":return t.file?a4(t.file):"code";default:{const o=Vv(e);return o==="site-editor"&&t.main==="content"?"content":o}}}function Ive(e){const t=e.params??{},o=e.search??{};if(e.siteEditorView==="content")return"content";if(e.siteEditorView==="code")return o.file?a4(o.file):"code";if(e.siteEditorView==="preview")return"site-editor";switch(e.mainView){case"automation":return t.automationId?`automation:${t.automationId}`:"automations";case"app":return t.connectionId&&t.toolName?XC(t.connectionId,t.toolName):void 0;case"view":return t.viewId?sf(t.viewId):void 0;case"file":return o.key?t4(o.key):void 0;case"deck":return o.path?e4(o.path):void 0;case"library-file":return o.path?o4(o.path):void 0;default:return e.mainView}}const Tse={files:"library",discover:"discover"},wse={board:"tasks",reports:"reports"},_se={settings:"settings",assets:"assets",git:"git",hosting:"hosting",e2e:"e2e",analytics:"analytics",experiments:"experiments",cdn:"monitor"};function s4(e){const t=sse(e);if(t)return{kind:"agent-view",viewId:t.id};const o=lse(e);if(o)return{kind:"app",connectionId:o.connectionId,toolName:o.toolName};const a=X3(e);if(a)return{kind:"automations",automationId:a.id};const n=dse(e);if(n)return{kind:"output-file",key:n.key};const i=cse(e);if(i)return{kind:"output-deck",path:i.path};const l=use(e);if(l)return{kind:"library-file",path:l.path};const c=pse(e);if(c)return{kind:"site-editor",view:"code",...c.path?{file:c.path}:{}};if(fse(e))return{kind:"agent-section",section:"settings"};const u=Vv(e);if(u==="overview")return{kind:"agent-overview"};if(u==="site-editor")return{kind:"site-editor",view:"preview"};if(u==="content")return{kind:"site-editor",view:"content"};if(u==="automations")return{kind:"automations"};if(u==="connect-sources")return{kind:"connect-sources"};const p=wse[u];if(p)return{kind:"project-destination",destination:p};const g=Tse[u];if(g)return{kind:"org-destination",destination:g};const m=_se[u];return m?{kind:"agent-section",section:m}:{kind:"agent-view",viewId:u}}function Il(e){const{org:t,agentId:o}=e,a={org:t,agentId:o},n=s4(e.tabId);switch(n.kind){case"project-destination":return e.destinationScope==="organization"?n.destination==="tasks"?{to:Ot.tasks,params:{org:t,taskKey:void 0},search:{}}:{to:Ot.reports,params:{org:t},search:{}}:n.destination==="tasks"?{to:nt.tasks,params:{...a,taskKey:void 0},search:{}}:{to:nt.reports,params:a,search:{}};case"org-destination":switch(n.destination){case"home":return{to:Ot.home,params:{org:t},search:{}};case"discover":return{to:Ot.discover,params:{org:t},search:{}};case"library":return{to:Ot.library,params:{org:t},search:{}}}case"agent-overview":return{to:nt.root,params:a,search:{}};case"site-editor":return n.view==="content"?{to:nt.siteEditorContent,params:a,search:{}}:n.view==="code"?{to:nt.siteEditorCode,params:a,search:{file:n.file}}:{to:nt.siteEditor,params:a,search:{}};case"agent-section":return{to:nt[n.section],params:a,search:{}};case"automations":return n.automationId?{to:nt.automation,params:{...a,automationId:n.automationId},search:{}}:{to:nt.automations,params:a,search:{}};case"app":return{to:nt.app,params:{...a,connectionId:n.connectionId,toolName:n.toolName},search:{}};case"agent-view":return{to:nt.view,params:{...a,viewId:n.viewId},search:{}};case"output-file":return{to:nt.outputFile,params:a,search:{key:n.key}};case"output-deck":return{to:nt.outputDeck,params:a,search:{path:n.path}};case"library-file":return{to:nt.libraryFile,params:a,search:{path:n.path}};case"connect-sources":return{to:nt.connectSources,params:a,search:{}}}}function Mve(e){if(!e.agentId||e.agentId===e.superAgentId&&(e.tabId===void 0||e.tabId==="overview"))return{to:Ot.home,params:{org:e.org},search:{}};const t=e.tabId??"overview",o=e.agentId!==e.superAgentId&&s4(t).kind==="org-destination"?"overview":t;return Il({org:e.org,agentId:e.agentId,tabId:o,destinationScope:e.agentId===e.superAgentId?"organization":"project"})}function Cse(e,t,o={}){const a=i=>({...o.search?.(i)??{},...t.search}),n=o.replace??!0;switch(t.to){case Ot.tasks:e({to:Ot.tasks,params:t.params,search:a,replace:n});return;case Ot.home:e({to:Ot.home,params:t.params,search:a,replace:n});return;case Ot.reports:e({to:Ot.reports,params:t.params,search:a,replace:n});return;case Ot.discover:e({to:Ot.discover,params:t.params,search:a,replace:n});return;case Ot.library:e({to:Ot.library,params:t.params,search:a,replace:n});return;case nt.root:e({to:nt.root,params:t.params,search:a,replace:n});return;case nt.tasks:e({to:nt.tasks,params:t.params,search:a,replace:n});return;case nt.reports:e({to:nt.reports,params:t.params,search:a,replace:n});return;case nt.siteEditor:e({to:nt.siteEditor,params:t.params,search:a,replace:n});return;case nt.siteEditorContent:e({to:nt.siteEditorContent,params:t.params,search:a,replace:n});return;case nt.siteEditorCode:e({to:nt.siteEditorCode,params:t.params,search:a,replace:n});return;case nt.automations:e({to:nt.automations,params:t.params,search:a,replace:n});return;case nt.automation:e({to:nt.automation,params:t.params,search:a,replace:n});return;case nt.app:e({to:nt.app,params:t.params,search:a,replace:n});return;case nt.view:e({to:nt.view,params:t.params,search:a,replace:n});return;case nt.outputFile:e({to:nt.outputFile,params:t.params,search:a,replace:n});return;case nt.outputDeck:e({to:nt.outputDeck,params:t.params,search:a,replace:n});return;case nt.libraryFile:e({to:nt.libraryFile,params:t.params,search:a,replace:n});return;case nt.connectSources:e({to:nt.connectSources,params:t.params,search:a,replace:n});return;case nt.settings:case nt.assets:case nt.git:case nt.hosting:case nt.e2e:case nt.analytics:case nt.experiments:case nt.monitor:e({to:t.to,params:t.params,search:a,replace:n})}}function Lve(e,t){Cse(e,Il(t),t)}function Pse(e){const t=/^(\/[^/]+)\/agents(?=\/|$)/.exec(e);return t?.[1]?`${t[1]}/projects${e.slice(t[0].length)}`:null}function xse(e){const t=e.split("/").filter(Boolean);return(t[1]==="projects"||t[1]==="agents")&&t.length>3}const kse=new Set(["main","virtualmcpid","file","key","deck","path","connection","tool","automation"]),l4=new Set(["main"]),Ese=new Set(["virtualmcpid"]);function Hv(e,t){return Object.fromEntries(Object.entries(e).filter(([o])=>!t.has(o)))}function El(e,t){return{...Hv(e,kse),...t.search}}function Rse(e){return Hv(e,Ese)}function Nve(e){if(e.search.virtualmcpid===void 0)return null;const t=yr(e.search.virtualmcpid);if(t){const o=e.routePath===Ot.tasks?"board":e.routePath===Ot.reports?"reports":null;if(e.routePath===Ot.home||o){const a=o?Il({org:e.org,agentId:t,tabId:o}):kd(e.org,t);return{kind:"canonical",route:a,search:El(e.search,a)}}}return e.routePath===Ot.home||e.routePath===Ot.tasks||e.routePath===Ot.reports||e.routePath===Ot.library?{kind:"same-route",search:Rse(e.search)}:null}function yr(e){return e?.trim()||void 0}function c4(e){return yse(e)||e!==void 0&&r4.has(e)}function d4(e){const t=yr(e);return t?t.startsWith("vir_")&&t.length>4||QG(t)!==null||oK(t)!==null||nK(t)!==null||rK(t)!==null||iK(t)||cK(t):!1}function Ase(e){const t=yr(e.agentIdParam),o=c4(t);return t&&!o?t:yr(e.virtualMcpIdSearch)??yr(e.fallbackAgentId)}function Fve(e){const t=e.pathAgentId;if(t&&e.pathLegacyView){const l=Yw({org:e.org,agentId:t,panel:e.pathLegacyView,source:"project-first",search:e.search});return l?.kind==="canonical"?{route:l.route,search:l.search}:null}if(!t||xse(e.pathname))return null;const o=e.search.virtualmcpid!==void 0&&!d4(t);if(!(c4(t)||o))return null;const n=Ase({agentIdParam:o?void 0:t,virtualMcpIdSearch:e.search.virtualmcpid,fallbackAgentId:e.fallbackAgentId}),i=Yw({org:e.org,agentId:n,panel:t,source:"view-first",search:e.search});return i?.kind==="canonical"?{route:i.route,search:i.search}:null}function Dse(e,t,o,a){const n=yr(a);switch(e){case"board":return n?Il({org:t,agentId:n,tabId:"board"}):{to:Ot.tasks,params:{org:t,taskKey:void 0},search:{}};case"files":{const i=ys(o.path);return{to:Ot.library,params:{org:t},search:i?{path:i}:{}}}case"reports":return n?Il({org:t,agentId:n,tabId:"reports"}):{to:Ot.reports,params:{org:t},search:{}};case"overview":return{to:Ot.home,params:{org:t},search:{}};case"discover":return{to:Ot.discover,params:{org:t},search:{}};default:return null}}function Lp(e){const t=Dse(e.tabId,e.org,e.search,e.agentId);if(t)return t;if(e.tabId==="chat")return kd(e.org,e.agentId);const o=yr(e.agentId);return o?e.tabId==="app"||e.tabId==="file"||e.tabId==="deck"||e.tabId==="library-file"||e.tabId.trim()===""?{to:nt.root,params:{org:e.org,agentId:o},search:{}}:Il({org:e.org,agentId:o,tabId:e.tabId}):null}function kd(e,t){const o=yr(t);return o?{to:nt.root,params:{org:e,agentId:o},search:{}}:{to:Ot.home,params:{org:e},search:{}}}function Ose(e){const{main:t}=e;if(t===void 0)return null;const o=e.search??{};if(t===0||t==="0")return{kind:"same-route",search:{...Hv(o,l4),mainpanel:!1}};if(t==="chat"){const n=kd(e.org,e.agentId);return{kind:"canonical",route:n,search:{...El(o,n),sidepanel:!0,mainpanel:!1}}}const a=Lp({org:e.org,agentId:e.agentId,tabId:t,search:o});return a?{kind:"canonical",route:a,search:El(o,a)}:null}function ys(e){return typeof e=="string"&&e.length>0?e:void 0}function Yw(e){const t=e.search??{};if((t.main===0||t.main==="0")&&e.panel){const l=Yw({...e,search:Hv(t,l4)});return l?.kind!=="canonical"?l:{...l,search:{...l.search,mainpanel:!1}}}if(t.main!==void 0)return Ose({org:e.org,agentId:e.agentId,main:t.main,search:t});const o=yr(e.agentId),a=e.panel;if(!a){const l=kd(e.org,o);return{kind:"canonical",route:l,search:El(t,l)}}const n=Sse(a,{file:ys(t.file),key:ys(t.key),deck:ys(t.deck),path:ys(t.path),connection:ys(t.connection),tool:ys(t.tool),automation:ys(t.automation)}),i=n?e.source==="project-first"&&n==="overview"&&o?Il({org:e.org,agentId:o,tabId:n}):Lp({org:e.org,agentId:o,tabId:n,search:t}):Lp({org:e.org,agentId:o,tabId:"",search:t});return i?{kind:"canonical",route:i,search:n==="chat"?{...El(t,i),sidepanel:!0,mainpanel:!1}:El(t,i)}:null}function Bve(e){const t=e.search??{},o=yr(t.virtualmcpid),a=yr(e.fallbackAgentId),n=t.main;let i;if(n==="chat")i=kd(e.org,o);else if(n!==void 0&&n!==0&&n!=="0"){const l=Lp({org:e.org,agentId:o,tabId:n,search:t}),c=!l&&n.trim().length>0&&a?Lp({org:e.org,agentId:a,tabId:n,search:t}):null;i=l??c??{to:Ot.home,params:{org:e.org},search:{}}}else i=kd(e.org,o);return{route:i,search:{...El(t,i),...n===void 0&&t.sidepanel===void 0?{sidepanel:!0}:{},...n===0||n==="0"?{mainpanel:!1}:{},...n==="chat"?{sidepanel:!0,mainpanel:!1}:{},thread:e.taskId}}}function u4(e,t){if(t.task===void 0)return null;const{task:o,...a}=t;return{taskKey:e??(o.trim()||void 0),search:a}}const Ise={contentPageId:V().optional(),contentPath:V().optional(),contentPathTemplate:V().optional(),contentCollection:V().optional(),contentItem:V().optional()},p4=Ise,tP={view:V().optional(),q:V().optional(),assignee:V().optional(),priority:V().optional(),due:V().optional(),tags:V().optional(),repo:V().optional(),boardOrg:V().optional()},Zw={fileView:sa(["all","documents","media"]).catch("all").optional(),path:V().optional(),preview:V().optional(),skill:V().optional(),brand:V().optional()},Mse={file:V().optional(),key:V().optional(),deck:V().optional(),path:V().optional(),connection:V().optional(),tool:V().optional(),automation:V().optional(),section:V().optional(),preview:V().optional(),autosend:V().optional(),connect:_v().optional(),siteUrl:V().optional(),...p4},m4={...Mse,task:V().optional(),...tP,skill:Zw.skill,brand:Zw.brand},nm=_e(m4),pn=l$({component:()=>T.jsx(Uie,{children:T.jsx(x_,{})})}),Lse=Ie({getParentRoute:()=>pn,path:"/login",component:Ue(()=>je(()=>import("./login-CzeMsg8T.js"),__vite__mapDeps([0,1,2,3,4,5,6]))),validateSearch:Gr(()=>_e({next:V().optional(),client_id:V().optional(),redirect_uri:V().optional(),response_type:V().optional(),state:V().optional(),scope:V().optional(),code_challenge:V().optional(),code_challenge_method:V().optional(),src:V().optional(),ref:V().optional()}))}),Nse=Ie({getParentRoute:()=>pn,path:"/cli/auth-success",component:Ue(()=>je(()=>import("./cli-auth-success-Bz3RxiUp.js"),__vite__mapDeps([7,6])))}),Fse=Ie({getParentRoute:()=>pn,path:"/reset-password",component:Ue(()=>je(()=>import("./reset-password-CnmRONVL.js"),__vite__mapDeps([8,2]))),validateSearch:Gr(()=>_e({token:V().optional(),error:V().optional()}))}),Bse=Ie({getParentRoute:()=>pn,path:"/auth/$pathname",component:Ue(()=>je(()=>import("./auth-catchall-D5w-ZyXF.js"),[]))}),jse=Ie({getParentRoute:()=>pn,path:"/oauth/callback",component:Ue(()=>je(()=>import("./oauth-callback-PixJQkgi.js"),__vite__mapDeps([9,10,11])))}),Use=Ie({getParentRoute:()=>pn,path:"/oauth/callback/ai-provider",component:Ue(()=>je(()=>import("./oauth-callback-ai-provider-Bo-B7c2F.js"),[]))}),rm=Ie({getParentRoute:()=>pn,path:"/_admin",component:Ue(()=>je(()=>import("./layout-BDvTf5Y1.js"),__vite__mapDeps([12,13,14])))}),zse=Ie({getParentRoute:()=>rm,path:"/",beforeLoad:()=>{throw Qo({to:"/_admin/users"})}}),$se=Ie({getParentRoute:()=>rm,path:"/users",component:Ue(()=>je(()=>import("./users-BGtd_KGY.js"),__vite__mapDeps([15,16,17,18,19,20,21,22,23,24,25,26,27,28,29])))}),qse=Ie({getParentRoute:()=>rm,path:"/orgs",component:Ue(()=>je(()=>import("./orgs-T1j1ZJVH.js"),__vite__mapDeps([30,16,17,18,19,20,21,2,31,25,32,33,34,35,36,37,38,24,39,40,26,27,28])))}),Vse=Ie({getParentRoute:()=>rm,path:"/prompts",component:Ue(()=>je(()=>import("./prompts-CMF-VFXI.js"),__vite__mapDeps([41,19,2,31,38,26])))}),Hse=rm.addChildren([zse,$se,qse,Vse]),oP=Ie({getParentRoute:()=>pn,id:"shell",component:Ue(()=>je(()=>import("./shell-layout-BDka9RLc.js").then(e=>e.e),__vite__mapDeps([42,22,23,43,44,45,46,47,18,48,49,50,51,52,53,36,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,21,75,76,77,78,79,33,80,81,32,82,83,84,11,85,86,87,88,89,90,91,92,5,93,39,3,13,94,95,96,97])))}),Gse=Ie({getParentRoute:()=>oP,path:"/",beforeLoad:async()=>{const e=ose();if(e)throw Qo({to:"/$org",params:{org:e.org}});const t=localStorage.getItem(jl.lastOrgSlug());if(t)throw Qo({to:"/$org",params:{org:t}});const{data:o}=await tN();if(!o)return;const a=o[0];throw Qo(a?{to:"/$org",params:{org:a.slug}}:{to:"/onboarding"})}}),Kse=Ie({getParentRoute:()=>pn,path:"/onboarding",beforeLoad:async()=>{const{data:e}=await tN();if(e&&e.length>0)throw Qo({to:"/"})},component:Ue(()=>je(()=>import("./onboarding-Ci-02n6u.js"),__vite__mapDeps([98,13,6,99,22,23,74,2,31,37,43,53,72,77])))}),g4=Gr(()=>_e({org:V().optional(),siteUrl:V().optional()})),Wse=Ie({getParentRoute:()=>pn,path:"/reports-onboarding",component:Ue(()=>je(()=>import("./reports-onboarding-pRaIN0gW.js"),__vite__mapDeps([100,101,1,2,3,4,5,6,99,22,23,74,102,103,104,31,105,84,11,106,90,49,45,46,47,18,48,50,51,52,43,53,36,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,44,21,75,76,77,78,79,33,80,32,107,35,108,109,110,111,25,112,113,114,115,116,10,117,118,119]))),validateSearch:g4}),Yse=Ie({getParentRoute:()=>pn,path:"/commerce-onboarding",validateSearch:g4,beforeLoad:({search:e})=>{throw Qo({to:"/reports-onboarding",search:e})}}),Zse=Ie({getParentRoute:()=>pn,path:"/choose-editor",component:Ue(()=>je(()=>import("./choose-editor-j32E7S6T.js"),__vite__mapDeps([120,45,46,47,18,48,49,50,51,52,43,53,36,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,44,21,75,76,77,23,78,79,33,80,13]))),validateSearch:Gr(()=>_e({site:V().optional(),domain:V().optional(),pageId:V().optional(),path:V().optional(),pathTemplate:V().optional()}))}),Qse=Ie({getParentRoute:()=>pn,path:"/report/$domain",component:Ue(()=>je(()=>import("./reports-B5M0xDyn.js"),__vite__mapDeps([121,1,2,3,4,5,117,46,18,50,51,53,60,67,71,44,75,79,80,122]))),validateSearch:Gr(()=>_e({key:V().optional()}))}),Gv=Ie({getParentRoute:()=>oP,path:"/$org",beforeLoad:({params:e})=>{tse({org:e.org})},component:Ue(()=>je(()=>import("./route-D4AIZCoB.js"),__vite__mapDeps([123,124,66,125,126,33,107,35,127,128,129,87,86,82,83,84,11,85,130,92,5,93,39,45,46,47,18,48,49,50,51,52,43,53,36,54,55,56,57,58,59,60,61,62,63,64,65,67,68,69,70,71,72,73,74,44,21,75,76,77,23,78,79,80,42,22,81,32,88,89,90,91,3,13,94,95,96,97,131,132,14,133,104,31,34,38,134,135,136,137,138,139,140,141,142,143,144,29,27,28,102,103,2,145,146,147,40,148,149,150,151,152,153,154,155,25,156])))}),Kv=Ie({getParentRoute:()=>Gv,id:"org-shell",pendingComponent:Md,component:Ue(()=>je(()=>import("./thread-route-BSTJ2qPY.js"),__vite__mapDeps([157,158,86,87,82,83,84,11,85,94,150,151,92,5,93,39,3,138,137,159,144,95,101,32,33,160,108,109,110,111,50,105,106,90,49,45,46,47,18,48,51,52,43,53,36,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,44,21,75,76,77,23,78,79,80,107,35,104,31,2,25,112,113,114,115,116,10,117,161,118])))}),Jse=_e({sidepanel:wN,mainpanel:_N,main:ro([V(),Ze(0)]).optional(),thread:V().optional(),autosend:V().optional(),preview:V().optional(),virtualmcpid:V().optional()}),nr=Ie({getParentRoute:()=>Kv,id:"agent-shell",validateSearch:Jse,search:{middlewares:[Iz(["sidepanel"])]},pendingComponent:Md,component:Ue(()=>je(()=>import("./route-CRwg4ev7.js"),__vite__mapDeps([162,46,66,124,125,126,33,107,35,127,163,18,158,86,87,82,83,84,11,85,94,150,151,92,5,93,39,3,138,137,159,144,95,164,32,132,155,21,165,166,104,31,2,167,168,169,42,22,23,43,44,45,47,48,49,50,51,52,53,36,54,55,56,57,58,59,60,61,62,63,64,65,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,88,89,90,91,13,96,97,170,171,34,172,173,174,27,28,175,136,176,177,178,179,180,181,131,182,183,184,185,156,186,134,187,139,188,113,111,109,114,189,190,191,141,142,4,192,38,193,116,10,194,24,195,196,197,198,199,200,201,202,149,203,204,205,206,207,208,209,210,19,129,130,128,211,212,213,103,214,215,216,217,145,146,147,40,218,219,220,221,222,223,224,225,226])))}),Xse=nm.extend({virtualmcpid:V().optional()}),ele=Ie({getParentRoute:()=>nr,path:"/$taskId",validateSearch:Xse,component:()=>null}),uo=Ue(()=>je(()=>import("./index-Bb2NSQTG.js").then(e=>e.i),__vite__mapDeps([211,125,129,124,66,126,33,107,35,87,86,82,83,84,11,85,130,92,5,93,39,45,46,47,18,48,49,50,51,52,43,53,36,54,55,56,57,58,59,60,61,62,63,64,65,67,68,69,70,71,72,73,74,44,21,75,76,77,23,78,79,80,127,128,42,22,81,32,88,89,90,91,3,13,94,95,96,97,212,213])),"ChatLayoutPending"),io=Ue(()=>je(()=>import("./index-Bb2NSQTG.js").then(e=>e.i),__vite__mapDeps([211,125,129,124,66,126,33,107,35,87,86,82,83,84,11,85,130,92,5,93,39,45,46,47,18,48,49,50,51,52,43,53,36,54,55,56,57,58,59,60,61,62,63,64,65,67,68,69,70,71,72,73,74,44,21,75,76,77,23,78,79,80,127,128,42,22,81,32,88,89,90,91,3,13,94,95,96,97,212,213])),"ChatLayoutError"),tle=Ie({pendingComponent:uo,errorComponent:io,getParentRoute:()=>nr,path:"/home",staticData:{pageTitle:"sidebar.navDestinations.home",defaultMain:"overview",mainView:"overview"},validateSearch:_e({connect:_v().optional(),siteUrl:V().optional()}),component:Ue(()=>je(()=>import("./home-Cc_gG_k0.js"),__vite__mapDeps([227,211,125,129,124,66,126,33,107,35,87,86,82,83,84,11,85,130,92,5,93,39,45,46,47,18,48,49,50,51,52,43,53,36,54,55,56,57,58,59,60,61,62,63,64,65,67,68,69,70,71,72,73,74,44,21,75,76,77,23,78,79,80,127,128,42,22,81,32,88,89,90,91,3,13,94,95,96,97,212,213,169,166,164,104,31,2,167,168,170,171,150,151,158,138,137,159,144,34,172,173,174,27,28,175,136,176,177,178,179,180,181,131,132,182,183,184,165,185,156,186,134,187,139,188,155,113,111,109,114,189,190,191,141,142,4,192,38,193,116,10,194,24,195,196,19,152,149,153,154,25,228,229,143,29])))}),ole=Ie({getParentRoute:()=>nr,path:"/projects",validateSearch:nm,beforeLoad:({params:e,search:t})=>{const o=t.virtualmcpid?.trim();throw Qo(o?{to:"/$org/projects/$agentId",params:{org:e.org,agentId:o},search:a=>({...a,virtualmcpid:void 0}),hash:!0,replace:!0}:{to:"/$org/home",params:{org:e.org},search:a=>({...a,virtualmcpid:void 0}),hash:!0,replace:!0})}}),Oo=Ie({errorComponent:io,getParentRoute:()=>nr,path:"/projects/$agentId",validateSearch:nm,component:x_}),ale=Ie({pendingComponent:uo,errorComponent:io,getParentRoute:()=>Oo,path:"/",staticData:{pageTitle:"page.overview",defaultMain:"overview",mainView:"overview"},component:Ue(()=>je(()=>import("./agent-overview-CV_KF9Yq.js"),__vite__mapDeps([230,211,125,129,124,66,126,33,107,35,87,86,82,83,84,11,85,130,92,5,93,39,45,46,47,18,48,49,50,51,52,43,53,36,54,55,56,57,58,59,60,61,62,63,64,65,67,68,69,70,71,72,73,74,44,21,75,76,77,23,78,79,80,127,128,42,22,81,32,88,89,90,91,3,13,94,95,96,97,212,213,160,108,109,110,111,231,143,144,229,154,149,150,151,29,186,134,27,28])))}),nle=Ie({pendingComponent:uo,errorComponent:io,getParentRoute:()=>Oo,path:"/tasks/{-$taskKey}",staticData:{pageTitle:"sidebar.navDestinations.tasks",defaultMain:"board",mainView:"board"},validateSearch:_e({task:V().optional(),...tP}),beforeLoad:({params:e,search:t})=>{const o=u4(e.taskKey,t);if(o)throw Qo({to:"/$org/projects/$agentId/tasks/{-$taskKey}",params:{org:e.org,agentId:e.agentId,taskKey:o?.taskKey??e.taskKey},search:o.search,hash:!0,replace:!0})},component:Ue(()=>je(()=>import("./project-tasks-DTM5l8Na.js"),__vite__mapDeps([232,211,125,129,124,66,126,33,107,35,87,86,82,83,84,11,85,130,92,5,93,39,45,46,47,18,48,49,50,51,52,43,53,36,54,55,56,57,58,59,60,61,62,63,64,65,67,68,69,70,71,72,73,74,44,21,75,76,77,23,78,79,80,127,128,42,22,81,32,88,89,90,91,3,13,94,95,96,97,212,213,233,132,131,143,144,154,29,234,235,236,237,238,152,149,150,151,153,2,31,141,142,155,25,186,134,27,28,239,240,241,242,198,173,174,168,166,164,104,167,243,184,185,210,191,110,244,196,197,172,138,158,137,159,199,200,201,202,177,165,203,204,195,214,178,170,24,245,246,187,139])))}),rle=Ie({pendingComponent:uo,errorComponent:io,getParentRoute:()=>Oo,path:"/reports",staticData:{pageTitle:"sidebar.navDestinations.reports",defaultMain:"reports",mainView:"reports"},validateSearch:_e({connect:_v().optional(),siteUrl:V().optional()}),component:Ue(()=>je(()=>import("./project-reports-C-M11Ewx.js"),__vite__mapDeps([247,211,125,129,124,66,126,33,107,35,87,86,82,83,84,11,85,130,92,5,93,39,45,46,47,18,48,49,50,51,52,43,53,36,54,55,56,57,58,59,60,61,62,63,64,65,67,68,69,70,71,72,73,74,44,21,75,76,77,23,78,79,80,127,128,42,22,81,32,88,89,90,91,3,13,94,95,96,97,212,213,248,101,2,160,108,109,110,111,231,118,119])))}),Wv=Ie({pendingComponent:uo,errorComponent:io,getParentRoute:()=>Oo,path:"/site-editor",staticData:{pageTitle:"sidebar.projectNav.siteEditor",defaultMain:"site-editor",mainView:"site-editor"},validateSearch:_e({autosend:V().optional(),...p4}),component:Ue(()=>je(()=>import("./agent-site-editor-DwI3mXwZ.js"),__vite__mapDeps([249,245,158,86,87,82,83,84,11,85,94,150,151,92,5,93,39,3,138,137,159,144,95,42,22,23,43,44,45,46,47,18,48,49,50,51,52,53,36,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,21,75,76,77,78,79,33,80,81,32,88,89,90,91,13,96,97,127,131,107,35,103,175,206,207,250,224,223,25,141,142,149,154,171,251,208,209,210,205,252,253,254,163,164,132,155,125,165,166,104,31,2,167,168,169,170,34,172,173,174,27,28,136,176,177,178,179,180,181,182,183,184,185,156,186,134,187,139,188,113,111,109,114,189,190,191,4,192,38,193,116,10,194,24,195,196,197,198,199,200,201,202,126,203,204,255,256,211,129,124,130,128,212,213,257])))}),ile=Ie({getParentRoute:()=>Wv,path:"/",staticData:{defaultMain:"site-editor",mainView:"site-editor",siteEditorView:"preview"},component:Ue(()=>je(()=>import("./agent-site-editor-preview-BUdForMN.js"),__vite__mapDeps([258,259,215,130,62,69,191,84,11,216,83,201,167,82,85,163,18,158,86,87,94,150,151,92,5,93,39,3,138,137,159,144,95,164,107,35,32,33,132,155,21,125,165,166,104,31,2,168,169,42,22,23,43,44,45,46,47,48,49,50,51,52,53,36,54,55,56,57,58,59,60,61,63,64,65,66,67,68,70,71,72,73,74,75,76,77,78,79,80,81,88,89,90,91,13,96,97,170,171,34,172,173,174,27,28,175,136,176,177,178,179,180,181,131,182,183,184,185,156,186,134,187,139,188,113,111,109,114,189,190,141,142,4,192,38,193,116,10,194,24,195,196,197,198,199,200,202,126,149,203,204,208,209,210,217,145,146,147,40,218,246,127,260,205,223,254,140,261,224,241,234,37,262,20,25,263,103,255,264,253,252,251,115,226,19,212,154,152,153])))}),sle=Ie({getParentRoute:()=>Wv,path:"/content",staticData:{defaultMain:"content",mainView:"content",siteEditorView:"content"},component:Ue(()=>je(()=>import("./agent-site-editor-content-B-s4vnUX.js").then(e=>e.C),__vite__mapDeps([265,259,215,130,62,69,191,84,11,216,83,201,167,82,85,163,18,158,86,87,94,150,151,92,5,93,39,3,138,137,159,144,95,164,107,35,32,33,132,155,21,125,165,166,104,31,2,168,169,42,22,23,43,44,45,46,47,48,49,50,51,52,53,36,54,55,56,57,58,59,60,61,63,64,65,66,67,68,70,71,72,73,74,75,76,77,78,79,80,81,88,89,90,91,13,96,97,170,171,34,172,173,174,27,28,175,136,176,177,178,179,180,181,131,182,183,184,185,156,186,134,187,139,188,113,111,109,114,189,190,141,142,4,192,38,193,116,10,194,24,195,196,197,198,199,200,202,126,149,203,204,208,209,210,217,145,146,147,40,218,246,103,140,260,205,223,254,261,224,241,234,37,262,20,25,263,255,266,19,154,152,153])))}),lle=Ie({getParentRoute:()=>Wv,path:"/code",staticData:{defaultMain:"code",mainView:"code",siteEditorView:"code"},validateSearch:_e({file:V().optional()}),component:Ue(()=>je(()=>import("./agent-site-editor-code-DHn9ldlr.js"),__vite__mapDeps([267,259,215,130,62,69,191,84,11,216,83,201,167,82,85,163,18,158,86,87,94,150,151,92,5,93,39,3,138,137,159,144,95,164,107,35,32,33,132,155,21,125,165,166,104,31,2,168,169,42,22,23,43,44,45,46,47,48,49,50,51,52,53,36,54,55,56,57,58,59,60,61,63,64,65,66,67,68,70,71,72,73,74,75,76,77,78,79,80,81,88,89,90,91,13,96,97,170,171,34,172,173,174,27,28,175,136,176,177,178,179,180,181,131,182,183,184,185,156,186,134,187,139,188,113,111,109,114,189,190,141,142,4,192,38,193,116,10,194,24,195,196,197,198,199,200,202,126,149,203,204,208,209,210,217,145,146,147,40,218,246,19])))}),cle=Ie({pendingComponent:uo,errorComponent:io,getParentRoute:()=>Oo,path:"/automations",staticData:{pageTitle:"settings.nav.automations",defaultMain:"automations",mainView:"automations"},beforeLoad:({params:e,search:t})=>{const o=t.automation;if(o)throw Qo({to:"/$org/projects/$agentId/automations/$automationId",params:{org:e.org,agentId:e.agentId,automationId:o},search:a=>({...a,automation:void 0}),hash:!0,replace:!0})},component:Ue(()=>je(()=>import("./agent-automations-CcGv--oW.js"),__vite__mapDeps([268,211,125,129,124,66,126,33,107,35,87,86,82,83,84,11,85,130,92,5,93,39,45,46,47,18,48,49,50,51,52,43,53,36,54,55,56,57,58,59,60,61,62,63,64,65,67,68,69,70,71,72,73,74,44,21,75,76,77,23,78,79,80,127,128,42,22,81,32,88,89,90,91,3,13,94,95,96,97,212,213,20,19,269,270,103])))}),dle=Ie({pendingComponent:uo,errorComponent:io,getParentRoute:()=>Oo,path:"/automations/$automationId",staticData:{pageTitle:"settings.nav.automations",defaultMain:"automations",mainView:"automation"},validateSearch:_e({automationView:sa(["settings","runs"]).optional()}),component:Ue(()=>je(()=>import("./agent-automation-ZRwCzRyz.js"),__vite__mapDeps([271,211,125,129,124,66,126,33,107,35,87,86,82,83,84,11,85,130,92,5,93,39,45,46,47,18,48,49,50,51,52,43,53,36,54,55,56,57,58,59,60,61,62,63,64,65,67,68,69,70,71,72,73,74,44,21,75,76,77,23,78,79,80,127,128,42,22,81,32,88,89,90,91,3,13,94,95,96,97,212,213,24,180,37,131,164,191,216,272,132,158,150,151,138,137,159,144,179,2,34,181,182,273,269,198,274,183,184,166,104,31,167,168,165,185,175,261,224,103,275,141,142,17,19,195,186,134,214,244,196,197,27,28,173,172,174,199,200,201,202,177,149,203,204,194])))}),ule=Ie({pendingComponent:uo,errorComponent:io,getParentRoute:()=>Oo,path:"/settings",staticData:{pageTitle:"sidebar.navDestinations.settings",defaultMain:"settings",mainView:"settings"},component:Ue(()=>je(()=>import("./agent-settings-S0BObv95.js"),__vite__mapDeps([276,211,125,129,124,66,126,33,107,35,87,86,82,83,84,11,85,130,92,5,93,39,45,46,47,18,48,49,50,51,52,43,53,36,54,55,56,57,58,59,60,61,62,63,64,65,67,68,69,70,71,72,73,74,44,21,75,76,77,23,78,79,80,127,128,42,22,81,32,88,89,90,91,3,13,94,95,96,97,212,213,277,2,131,140,34,240,113,111,109,114,158,150,151,138,137,159,144,273,19,278,28,191,10,103,38,274,188,155,189,190,141,142,4,192,132,104,31,193,116,194,24,195,196,204,185,180,20,279,201,216,165,167,37,145,146,147,40,148,218,152,149,153,154,25,209,280,202,207])))}),ple=Ie({pendingComponent:uo,errorComponent:io,getParentRoute:()=>Oo,path:"/assets",staticData:{pageTitle:"common.mainPanelTabs.assets",defaultMain:"assets",mainView:"assets"},component:Ue(()=>je(()=>import("./agent-assets-Dl566Cx2.js"),__vite__mapDeps([281,211,125,129,124,66,126,33,107,35,87,86,82,83,84,11,85,130,92,5,93,39,45,46,47,18,48,49,50,51,52,43,53,36,54,55,56,57,58,59,60,61,62,63,64,65,67,68,69,70,71,72,73,74,44,21,75,76,77,23,78,79,80,127,128,42,22,81,32,88,89,90,91,3,13,94,95,96,97,212,213,259,215,191,216,201,167,163,158,150,151,138,137,159,144,164,132,155,165,166,104,31,2,168,169,170,171,34,172,173,174,27,28,175,136,176,177,178,179,180,181,131,182,183,184,185,156,186,134,187,139,188,113,111,109,114,189,190,141,142,4,192,38,193,116,10,194,24,195,196,197,198,199,200,202,149,203,204,208,209,210,217,145,146,147,40,218,103,20,25,263])))}),mle=Ie({pendingComponent:uo,errorComponent:io,getParentRoute:()=>Oo,path:"/git",staticData:{pageTitle:"common.mainPanelTabs.reviewChanges",defaultMain:"git",mainView:"git"},component:Ue(()=>je(()=>import("./agent-git-CGVI6Aq_.js"),__vite__mapDeps([282,211,125,129,124,66,126,33,107,35,87,86,82,83,84,11,85,130,92,5,93,39,45,46,47,18,48,49,50,51,52,43,53,36,54,55,56,57,58,59,60,61,62,63,64,65,67,68,69,70,71,72,73,74,44,21,75,76,77,23,78,79,80,127,128,42,22,81,32,88,89,90,91,3,13,94,95,96,97,212,213,259,215,191,216,201,167,163,158,150,151,138,137,159,144,164,132,155,165,166,104,31,2,168,169,170,171,34,172,173,174,27,28,175,136,176,177,178,179,180,181,131,182,183,184,185,156,186,134,187,139,188,113,111,109,114,189,190,141,142,4,192,38,193,116,10,194,24,195,196,197,198,199,200,202,149,203,204,208,209,210,217,145,146,147,40,218,250,224,223,255])))}),gle=Ie({pendingComponent:uo,errorComponent:io,getParentRoute:()=>Oo,path:"/hosting",staticData:{pageTitle:"common.mainPanelTabs.hosting",defaultMain:"hosting",mainView:"hosting"},component:Ue(()=>je(()=>import("./agent-hosting-CuK5vWln.js"),__vite__mapDeps([283,211,125,129,124,66,126,33,107,35,87,86,82,83,84,11,85,130,92,5,93,39,45,46,47,18,48,49,50,51,52,43,53,36,54,55,56,57,58,59,60,61,62,63,64,65,67,68,69,70,71,72,73,74,44,21,75,76,77,23,78,79,80,127,128,42,22,81,32,88,89,90,91,3,13,94,95,96,97,212,213,24,284,40,103,238,17,198,2,31,34,277,131,140,240,113,111,109,114,158,150,151,138,137,159,144,273,19,278,28,191,10,38,274,188,155,189,190,141,142,4,192,132,104,193,116,194,195,196,204,185,180,20,279,201,216,165,167,37,145,146,147,148,218,152,149,153,154,25,209,280,202,207])))}),hle=Ie({pendingComponent:uo,errorComponent:io,getParentRoute:()=>Oo,path:"/e2e",staticData:{pageTitle:"common.mainPanelTabs.e2e",defaultMain:"e2e",mainView:"e2e"},component:Ue(()=>je(()=>import("./agent-e2e-BheTu3sG.js"),__vite__mapDeps([285,211,125,129,124,66,126,33,107,35,87,86,82,83,84,11,85,130,92,5,93,39,45,46,47,18,48,49,50,51,52,43,53,36,54,55,56,57,58,59,60,61,62,63,64,65,67,68,69,70,71,72,73,74,44,21,75,76,77,23,78,79,80,127,128,42,22,81,32,88,89,90,91,3,13,94,95,96,97,212,213,24,2,31,103,34,17,284,40,198,175,277,131,140,240,113,111,109,114,158,150,151,138,137,159,144,273,19,278,28,191,10,38,274,188,155,189,190,141,142,4,192,132,104,193,116,194,195,196,204,185,180,20,279,201,216,165,167,37,145,146,147,148,218,152,149,153,154,25,209,280,202,207])))}),fle=Ie({pendingComponent:uo,errorComponent:io,getParentRoute:()=>Oo,path:"/analytics",staticData:{pageTitle:"common.mainPanelTabs.analytics",defaultMain:"analytics",mainView:"analytics"},component:Ue(()=>je(()=>import("./agent-analytics-BHAmS_Vv.js"),__vite__mapDeps([286,211,125,129,124,66,126,33,107,35,87,86,82,83,84,11,85,130,92,5,93,39,45,46,47,18,48,49,50,51,52,43,53,36,54,55,56,57,58,59,60,61,62,63,64,65,67,68,69,70,71,72,73,74,44,21,75,76,77,23,78,79,80,127,128,42,22,81,32,88,89,90,91,3,13,94,95,96,97,212,213,24,180,2,31,17,287,288,289,103,284,40,290,277,131,140,34,240,113,111,109,114,158,150,151,138,137,159,144,273,19,278,28,191,10,38,274,188,155,189,190,141,142,4,192,132,104,193,116,194,195,196,204,185,20,279,201,216,165,167,37,145,146,147,148,218,152,149,153,154,25,209,280,202,207])))}),vle=Ie({pendingComponent:uo,errorComponent:io,getParentRoute:()=>Oo,path:"/experiments",staticData:{defaultMain:"experiments",mainView:"experiments"},component:Ue(()=>je(()=>import("./agent-experiments-DySEMnSa.js"),__vite__mapDeps([291,211,125,129,124,66,126,33,107,35,87,86,82,83,84,11,85,130,92,5,93,39,45,46,47,18,48,49,50,51,52,43,53,36,54,55,56,57,58,59,60,61,62,63,64,65,67,68,69,70,71,72,73,74,44,21,75,76,77,23,78,79,80,127,128,42,22,81,32,88,89,90,91,3,13,94,95,96,97,212,213,24,2,31,17,34,284,40,277,131,140,240,113,111,109,114,158,150,151,138,137,159,144,273,19,278,28,191,10,103,38,274,188,155,189,190,141,142,4,192,132,104,193,116,194,195,196,204,185,180,20,279,201,216,165,167,37,145,146,147,148,218,152,149,153,154,25,209,280,202,207])))}),ble=Ie({pendingComponent:uo,errorComponent:io,getParentRoute:()=>Oo,path:"/cdn",staticData:{pageTitle:"common.mainPanelTabs.cdn",defaultMain:"cdn",mainView:"cdn"},component:Ue(()=>je(()=>import("./agent-monitor-GtldlQaQ.js"),__vite__mapDeps([292,211,125,129,124,66,126,33,107,35,87,86,82,83,84,11,85,130,92,5,93,39,45,46,47,18,48,49,50,51,52,43,53,36,54,55,56,57,58,59,60,61,62,63,64,65,67,68,69,70,71,72,73,74,44,21,75,76,77,23,78,79,80,127,128,42,22,81,32,88,89,90,91,3,13,94,95,96,97,212,213,287,288,289,284,131,40,290,293,294,295,277,2,140,34,240,113,111,109,114,158,150,151,138,137,159,144,273,19,278,28,191,10,103,38,274,188,155,189,190,141,142,4,192,132,104,31,193,116,194,24,195,196,204,185,180,20,279,201,216,165,167,37,145,146,147,148,218,152,149,153,154,25,209,280,202,207,246,187,139])))}),yle=Ie({pendingComponent:uo,errorComponent:io,getParentRoute:()=>Oo,path:"/apps/$connectionId/$toolName",staticData:{pageTitle:"page.app",defaultMain:"app",mainView:"app"},component:Ue(()=>je(()=>import("./agent-app-0Lj8xuLI.js"),__vite__mapDeps([296,211,125,129,124,66,126,33,107,35,87,86,82,83,84,11,85,130,92,5,93,39,45,46,47,18,48,49,50,51,52,43,53,36,54,55,56,57,58,59,60,61,62,63,64,65,67,68,69,70,71,72,73,74,44,21,75,76,77,23,78,79,80,127,128,42,22,81,32,88,89,90,91,3,13,94,95,96,97,212,213,217,297,164,177,216,208,171,150,151,158,138,137,159,144,209,210,199,200,201,101,106,108,109,110,111,104,31,2,25,112,113,114,115,116,10,117])))}),Sle=Ie({pendingComponent:uo,errorComponent:io,getParentRoute:()=>Oo,path:"/views/$viewId",staticData:{pageTitle:"page.view",defaultMain:"view",mainView:"view"},component:Ue(()=>je(()=>import("./agent-view-CMVA1gTC.js"),__vite__mapDeps([298,211,125,129,124,66,126,33,107,35,87,86,82,83,84,11,85,130,92,5,93,39,45,46,47,18,48,49,50,51,52,43,53,36,54,55,56,57,58,59,60,61,62,63,64,65,67,68,69,70,71,72,73,74,44,21,75,76,77,23,78,79,80,127,128,42,22,81,32,88,89,90,91,3,13,94,95,96,97,212,213,297,164,177,216,208,171,150,151,158,138,137,159,144,209,210,199,200,201,101,106,108,109,110,111,104,31,2,25,112,113,114,115,116,10,117,277,131,140,34,240,273,19,278,28,191,103,38,274,188,155,189,190,141,142,4,192,132,193,194,24,195,196,204,185,180,20,279,165,167,37,145,146,147,40,148,218,152,149,153,154,280,202,207])))}),Tle=Ie({pendingComponent:uo,errorComponent:io,getParentRoute:()=>Oo,path:"/outputs/file",staticData:{pageTitle:"page.file",defaultMain:"file",mainView:"file"},validateSearch:_e({key:V().optional()}),component:Ue(()=>je(()=>import("./agent-file-CDMSSq77.js"),__vite__mapDeps([299,211,125,129,124,66,126,33,107,35,87,86,82,83,84,11,85,130,92,5,93,39,45,46,47,18,48,49,50,51,52,43,53,36,54,55,56,57,58,59,60,61,62,63,64,65,67,68,69,70,71,72,73,74,44,21,75,76,77,23,78,79,80,127,128,42,22,81,32,88,89,90,91,3,13,94,95,96,97,212,213,204,222,185,223,224,174,168,203,158,150,151,138,137,159,144,277,2,131,140,34,240,113,111,109,114,273,19,278,28,191,10,103,38,274,188,155,189,190,141,142,4,192,132,104,31,193,116,194,24,195,196,180,20,279,201,216,165,167,37,145,146,147,40,148,218,152,149,153,154,25,209,280,202,207])))}),wle=Ie({pendingComponent:uo,errorComponent:io,getParentRoute:()=>Oo,path:"/outputs/deck",staticData:{pageTitle:"page.document",defaultMain:"deck",mainView:"deck"},validateSearch:_e({path:V().optional()}),component:Ue(()=>je(()=>import("./agent-deck-EC_2q0-4.js"),__vite__mapDeps([300,211,125,129,124,66,126,33,107,35,87,86,82,83,84,11,85,130,92,5,93,39,45,46,47,18,48,49,50,51,52,43,53,36,54,55,56,57,58,59,60,61,62,63,64,65,67,68,69,70,71,72,73,74,44,21,75,76,77,23,78,79,80,127,128,42,22,81,32,88,89,90,91,3,13,94,95,96,97,212,213,225,185,2,131,277,140,34,240,113,111,109,114,158,150,151,138,137,159,144,273,19,278,28,191,10,103,38,274,188,155,189,190,141,142,4,192,132,104,31,193,116,194,24,195,196,204,180,20,279,201,216,165,167,37,145,146,147,40,148,218,152,149,153,154,25,209,280,202,207])))}),_le=Ie({pendingComponent:uo,errorComponent:io,getParentRoute:()=>Oo,path:"/library/file",staticData:{pageTitle:"page.file",defaultMain:"library-file",mainView:"library-file"},validateSearch:_e({path:V().optional()}),component:Ue(()=>je(()=>import("./agent-library-file-CVu7KBHy.js"),__vite__mapDeps([301,211,125,129,124,66,126,33,107,35,87,86,82,83,84,11,85,130,92,5,93,39,45,46,47,18,48,49,50,51,52,43,53,36,54,55,56,57,58,59,60,61,62,63,64,65,67,68,69,70,71,72,73,74,44,21,75,76,77,23,78,79,80,127,128,42,22,81,32,88,89,90,91,3,13,94,95,96,97,212,213,221,222,185,223,224,204,174,168,225,2,131,159,277,140,34,240,113,111,109,114,158,150,151,138,137,144,273,19,278,28,191,10,103,38,274,188,155,189,190,141,142,4,192,132,104,31,193,116,194,24,195,196,180,20,279,201,216,165,167,37,145,146,147,40,148,218,152,149,153,154,25,209,280,202,207])))}),Cle=Ie({pendingComponent:uo,errorComponent:io,getParentRoute:()=>Oo,path:"/connect-sources",staticData:{pageTitle:"settings.nav.connect",defaultMain:"connect-sources",mainView:"connect-sources"},component:Ue(()=>je(()=>import("./agent-connect-sources-DOCL0L4U.js"),__vite__mapDeps([302,211,125,129,124,66,126,33,107,35,87,86,82,83,84,11,85,130,92,5,93,39,45,46,47,18,48,49,50,51,52,43,53,36,54,55,56,57,58,59,60,61,62,63,64,65,67,68,69,70,71,72,73,74,44,21,75,76,77,23,78,79,80,127,128,42,22,81,32,88,89,90,91,3,13,94,95,96,97,212,213,105,101,106,108,109,110,111,104,31,2,25,112,113,114,115,116,10,117,161,118])))}),Ple=Ie({getParentRoute:()=>Oo,path:"/$legacyView",component:()=>null}),xle=Ie({getParentRoute:()=>nr,path:"/agents",validateSearch:nm,beforeLoad:({params:e,search:t})=>{const o=t.virtualmcpid?.trim();throw Qo(o?{to:"/$org/projects/$agentId",params:{org:e.org,agentId:o},search:a=>a,hash:!0,replace:!0}:{to:"/$org/projects",params:{org:e.org},search:a=>a,hash:!0,replace:!0})}}),kle=Ie({getParentRoute:()=>nr,path:"/agents/$",validateSearch:nm,beforeLoad:({params:e,location:t})=>{const o=e._splat?.split("/").find(Boolean);if(!d4(o))return;const a=Pse(t.pathname);if(!a)return;const n=t.hash?`#${t.hash}`:"";throw Qo({href:`${a}${t.searchStr}${n}`,replace:!0})},component:Ue(()=>je(()=>import("./legacy-agents-deep-CovYAG5o.js"),__vite__mapDeps([303,219,87])))}),Ele=Ie({pendingComponent:uo,errorComponent:io,getParentRoute:()=>nr,path:"/tasks/{-$taskKey}",staticData:{pageTitle:"sidebar.navDestinations.tasks",defaultMain:"board",mainView:"board"},validateSearch:_e({task:V().optional(),...tP}),beforeLoad:({params:e,search:t})=>{const o=u4(e.taskKey,t);if(o)throw Qo({to:"/$org/tasks/{-$taskKey}",params:{org:e.org,taskKey:o.taskKey},search:o.search,hash:!0,replace:!0})},component:Ue(()=>je(()=>import("./tasks-C6FPIHKX.js"),__vite__mapDeps([304,211,125,129,124,66,126,33,107,35,87,86,82,83,84,11,85,130,92,5,93,39,45,46,47,18,48,49,50,51,52,43,53,36,54,55,56,57,58,59,60,61,62,63,64,65,67,68,69,70,71,72,73,74,44,21,75,76,77,23,78,79,80,127,128,42,22,81,32,88,89,90,91,3,13,94,95,96,97,212,213,233,132,131,143,144,154,29,234,235,236,237,238,152,149,150,151,153,2,31,141,142,155,25,186,134,27,28,239,240,241,242,198,173,174,168,166,164,104,167,243,184,185,210,191,110,244,196,197,172,138,158,137,159,199,200,201,202,177,165,203,204,195,214,178,170,24,245,246,187,139])))}),Rle=Ie({pendingComponent:uo,errorComponent:io,getParentRoute:()=>nr,path:"/taskboard-analytics",staticData:{defaultMain:"board",mainView:"board"},component:Ue(()=>je(()=>import("./taskboard-analytics-DN3ZXOV0.js"),__vite__mapDeps([305,211,125,129,124,66,126,33,107,35,87,86,82,83,84,11,85,130,92,5,93,39,45,46,47,18,48,49,50,51,52,43,53,36,54,55,56,57,58,59,60,61,62,63,64,65,67,68,69,70,71,72,73,74,44,21,75,76,77,23,78,79,80,127,128,42,22,81,32,88,89,90,91,3,13,94,95,96,97,212,213,287,288,289,17,293,294,295,235,236,131,34,175])))}),Ale=Ie({pendingComponent:uo,errorComponent:io,getParentRoute:()=>nr,path:"/reports",staticData:{pageTitle:"sidebar.navDestinations.reports",defaultMain:"reports",mainView:"reports"},validateSearch:_e({connect:_v().optional(),siteUrl:V().optional()}),component:Ue(()=>je(()=>import("./reports-DZF0Eu6T.js"),__vite__mapDeps([306,211,125,129,124,66,126,33,107,35,87,86,82,83,84,11,85,130,92,5,93,39,45,46,47,18,48,49,50,51,52,43,53,36,54,55,56,57,58,59,60,61,62,63,64,65,67,68,69,70,71,72,73,74,44,21,75,76,77,23,78,79,80,127,128,42,22,81,32,88,89,90,91,3,13,94,95,96,97,212,213,248,101,2,160,108,109,110,111,231,118,119])))}),Dle=Ie({pendingComponent:uo,errorComponent:io,getParentRoute:()=>nr,path:"/library",staticData:{pageTitle:"sidebar.navDestinations.library",defaultMain:"files",mainView:"files"},validateSearch:_e(Zw),component:Ue(()=>je(()=>import("./library-CQOC6rOe.js"),__vite__mapDeps([307,211,125,129,124,66,126,33,107,35,87,86,82,83,84,11,85,130,92,5,93,39,45,46,47,18,48,49,50,51,52,43,53,36,54,55,56,57,58,59,60,61,62,63,64,65,67,68,69,70,71,72,73,74,44,21,75,76,77,23,78,79,80,127,128,42,22,81,32,88,89,90,91,3,13,94,95,96,97,212,213,159,185,308,204,309,310,238,237,103,2,25,38,174,168,225,131,220,221,222,223,224,311])))}),Ole=Ie({pendingComponent:uo,errorComponent:io,getParentRoute:()=>nr,path:"/discover",staticData:{pageTitle:"sidebar.navDestinations.discover",defaultMain:"discover",mainView:"discover"},component:Ue(()=>je(()=>import("./discover-D15TnXT7.js"),__vite__mapDeps([312,211,125,129,124,66,126,33,107,35,87,86,82,83,84,11,85,130,92,5,93,39,45,46,47,18,48,49,50,51,52,43,53,36,54,55,56,57,58,59,60,61,62,63,64,65,67,68,69,70,71,72,73,74,44,21,75,76,77,23,78,79,80,127,128,42,22,81,32,88,89,90,91,3,13,94,95,96,97,212,213,154,191,186,134,147,146,40,218])))}),Ile=Ie({getParentRoute:()=>Gv,path:"/members",beforeLoad:({params:e})=>{throw Qo({to:"/$org/settings/members",params:{org:e.org}})}}),Mle=_e({main:ro([V(),Ze(0)]).optional(),virtualmcpid:V().optional(),...m4,sidepanel:wN,mainpanel:_N,thread:V().optional()}),Lle=Ie({getParentRoute:()=>Kv,path:"/",validateSearch:Mle,pendingComponent:Md,component:Ue(()=>je(()=>import("./index-_1eIUhNB.js"),__vite__mapDeps([313,219,87])))}),Nle=Ie({getParentRoute:()=>Kv,path:"/t/$taskKey",beforeLoad:({params:e})=>{throw Qo({to:"/$org/tasks/{-$taskKey}",params:{org:e.org,taskKey:e.taskKey},search:t=>t,hash:!0,replace:!0})}}),to=Ie({staticData:{pageTitle:"sidebar.navDestinations.settings"},getParentRoute:()=>Gv,path:"/settings",pendingComponent:Md,component:Ue(()=>je(()=>import("./route-BXepAEc1.js"),__vite__mapDeps([314,125,213,66,124,126,33,107,35,127,128,82,83,84,11,85])))}),Fle=Ie({getParentRoute:()=>to,path:"/",component:Ue(()=>je(()=>import("./index-redirect-BhYkN3DP.js"),__vite__mapDeps([315,316])))}),Ble=Ie({staticData:{pageTitle:"settings.nav.connections"},getParentRoute:()=>to,path:"/connections",component:Ue(()=>je(()=>import("./connections-BLrf_knq.js"),__vite__mapDeps([317,113,111,109,84,11,114,318,18,63,107,35,319,24,20,21,194,189,190,191,95,39,93,141,142,4,5,192,151,90,49,45,46,47,48,50,51,52,43,53,36,54,55,56,57,58,59,60,61,62,64,65,66,67,68,69,70,71,72,73,74,44,75,76,77,23,78,79,33,80,19,320,103,195,321,125,32,132,104,31,2,34,38,83,201,193,116,10,180]))),validateSearch:Gr(()=>_e({action:sa(["create"]).optional(),tab:sa(["all","connected"]).optional()}))}),jle=Ie({staticData:{pageTitle:"settings.nav.connections"},getParentRoute:()=>to,path:"/connections/$appSlug",component:Ue(()=>je(()=>import("./connection-detail-ByWc2VaQ.js"),__vite__mapDeps([322,113,111,109,84,11,114,19,193,2,74,76,323,124,66,125,126,33,107,35,216,45,46,47,18,48,49,50,51,52,43,53,36,54,55,56,57,58,59,60,61,62,63,64,65,67,68,69,70,71,72,73,44,21,75,77,23,78,79,80,191,190,95,39,93,34,288,324,325,89,131,83,326,149,92,5,150,151,85,279,24,201,10,186,134,22,165,90,104,31,320,103,327,287,289,290,294,295,175,192,200,155]))),validateSearch:Gr(()=>_e({tab:V().optional()}))}),Ule=Ie({staticData:{pageTitle:"page.item"},getParentRoute:()=>to,path:"/connections/$appSlug/$collectionName/$itemId",component:Ue(()=>je(()=>import("./collection-detail-ChcpgbQd.js"),__vite__mapDeps([328,19,84,11,104,31,2,38,323,124,66,125,126,33,107,35,216,45,46,47,18,48,49,50,51,52,43,53,36,54,55,56,57,58,59,60,61,62,63,64,65,67,68,69,70,71,72,73,74,44,21,75,76,77,23,78,79,80,191,113,111,109,114,190,95,39,93,34,288,324,325,89,131,83,326,149,92,5,150,151,85,200,201,242,240,192,279,24,10,199,90,158,86,87,82,94,3,138,137,159,144,42,22,81,32,88,91,13,96,97,261,224,284]))),validateSearch:Gr(()=>_e({replayId:V().optional()}))}),zle=Ie({staticData:{pageTitle:"orgs.monitoring.title"},getParentRoute:()=>to,path:"/monitor",component:Ue(()=>je(()=>import("./index--5W-89Xn.js"),__vite__mapDeps([329,20,21,19,330,331,316,197,45,46,47,18,48,49,50,51,52,43,53,36,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,44,75,76,77,23,78,79,33,80,27,28,198,173,172,174,32,168,125,86,87,82,83,84,11,85,107,35,138,158,94,150,151,92,5,93,39,3,137,159,144,95,199,200,201,202,164,177,167,42,22,81,88,89,90,91,13,96,97,126,191,149,165,166,104,31,2,203,204,192,24,131,261,224,186,134,332,180,34,140,241,38,194,37,242,327,287,288,289,290,294,295,244,196,142,195,214,17,275,141,269]))),validateSearch:Gr(()=>_e({tab:sa(["overview","audit","dashboards","threads","automations"]).default("overview"),from:V().default("now-30m"),to:V().default("now"),connectionId:Fe(V()).optional().default([]),virtualMcpId:Fe(V()).optional().default([]),tool:V().default(""),status:sa(["all","success","errors"]).default("all"),search:V().default(""),page:Mt().optional(),streaming:$t().default(!0),propertyFilters:V().default(""),hideSystem:$t().default(!1)}))}),$le=Ie({staticData:{pageTitle:"settings.nav.general"},getParentRoute:()=>to,path:"/general",component:Ue(()=>je(()=>import("./general-CLxa6dw_.js"),__vite__mapDeps([333,134,274,22,23,2,334,37,54,44,95,39,93,191,84,11,335,24,34,35,36,103,330,331,316])))}),qle=Ie({staticData:{pageTitle:"settings.nav.connect"},getParentRoute:()=>to,path:"/connect",pendingComponent:Ni("connect"),component:Ue(()=>je(()=>import("./connect-VHpAEDVp.js"),__vite__mapDeps([336,242,34,35,36,175,173,55,65,67,228,337,46,74,76,103,32,33,2,31,84,11,330,331,316])))}),Vle=Ie({staticData:{pageTitle:"settings.nav.billing"},getParentRoute:()=>to,path:"/ai-providers",pendingComponent:Ni("billing"),component:Ue(()=>je(()=>import("./ai-providers-DDzOPCjm.js"),__vite__mapDeps([338,46,137,53,95,39,93,272,32,33,132,125,158,86,87,82,83,84,11,85,94,150,151,92,5,3,138,159,144,179,180,2,34,35,36,48,47,65,59,21,181,69,22,23,60,81,55,58,64,75,182,274,176,103,178,139,74,76,278,28,330,331,316])))}),Hle=Ie({staticData:{pageTitle:"settings.nav.billing"},getParentRoute:()=>to,path:"/billing",beforeLoad:({params:e})=>{throw Qo({to:"/$org/settings/ai-providers",params:{org:e.org}})}}),Gle=Ie({staticData:{pageTitle:"settings.nav.billing"},getParentRoute:()=>to,path:"/infra-billing",pendingComponent:Ni("billing"),component:Ue(()=>je(()=>import("./infra-billing-CIY_y-NM.js"),__vite__mapDeps([339,56,68,24,332,180,36,88,89,32,33,21,131,34,35,17,289,288,295,290,330,331,316])))}),Kle=Ie({staticData:{pageTitle:"settings.nav.secrets"},getParentRoute:()=>to,path:"/secrets",component:Ue(()=>je(()=>import("./secrets-BaKuwycc.js"),__vite__mapDeps([340,46,74,23,78,32,33,2,31,34,35,36,38,280,330,331,316])))}),Wle=Ie({staticData:{pageTitle:"settings.nav.connect"},getParentRoute:()=>to,path:"/api-keys",pendingComponent:Ni("connect"),component:Ue(()=>je(()=>import("./api-keys-CKnoL6XY.js"),__vite__mapDeps([341,337,46,55,65,74,76,103,32,33,2,31,84,11,330,331,316])))}),Yle=Ie({staticData:{pageTitle:"settings.nav.storage"},getParentRoute:()=>to,path:"/buckets",pendingComponent:Ni("storage"),component:Ue(()=>je(()=>import("./buckets-D85bhcTG.js"),__vite__mapDeps([342,46,74,76,103,32,33,2,31,34,35,36,37,38,147,330,331,316])))}),Zle=Ie({staticData:{pageTitle:"settings.nav.repositories"},getParentRoute:()=>to,path:"/repositories",validateSearch:_e({git_error:V().optional().catch(void 0),git_flow:V().uuid().optional().catch(void 0),git_return:$t().optional().catch(void 0)}),pendingComponent:Ni("repositories"),component:Ue(()=>je(()=>import("./repositories-J4P1iWK3.js"),__vite__mapDeps([343,153,48,68,74,107,35,32,33,2,31,154,141,142,22,23,155,21,25,50,180,103,24,242,330,331,316])))}),Qle=Ie({staticData:{pageTitle:"settings.nav.storage"},getParentRoute:()=>to,path:"/synced-repos",pendingComponent:Ni("storage"),component:Ue(()=>je(()=>import("./synced-repos-DQ8WQsrQ.js"),__vite__mapDeps([344,74,103,32,33,2,153,48,68,107,35,31,154,141,142,22,23,155,21,25,308,185,57,58,61,62,65,72,76,80,204,309,60,310,330,331,316])))}),Jle=Ie({staticData:{pageTitle:"settings.nav.tasks"},getParentRoute:()=>to,path:"/task-board",component:Ue(()=>je(()=>import("./tasks-fYEHHw5V.js"),__vite__mapDeps([345,2,47,73,74,76,236,88,89,32,33,21,131,37,183,184,166,164,104,31,167,168,125,86,87,82,83,84,11,85,107,35,45,46,18,48,49,50,51,52,43,53,36,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,44,75,77,23,78,79,80,158,94,150,151,92,5,93,39,3,138,137,159,144,95,179,180,34,181,22,81,165,185,310,103,334,191,38,330,331,316])))}),Xle=Ie({getParentRoute:()=>to,path:"/tasks",beforeLoad:({params:e})=>{throw Qo({to:"/$org/settings/task-board",params:{org:e.org}})}}),ece=Ie({staticData:{pageTitle:"settings.nav.members"},getParentRoute:()=>to,path:"/members",pendingComponent:Ni("members"),component:Ue(()=>je(()=>import("./members-8jDg9Gt8.js"),__vite__mapDeps([346,318,18,63,107,35,319,24,20,21,16,17,19,133,32,33,104,31,34,36,38,134,135,22,23,27,28,29,186,347,103,57,65,76,180,88,89,131,74,239,330,331,316])))}),tce=Ie({staticData:{pageTitle:"settings.nav.members"},getParentRoute:()=>to,path:"/roles",pendingComponent:Ni("members"),component:Ue(()=>je(()=>import("./roles-D0xiAKmZ.js"),__vite__mapDeps([348,135,134,347,24,103,57,74,76,16,17,18,19,20,21,181,90,49,45,46,47,48,50,51,52,43,53,36,54,55,56,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,44,75,77,23,78,79,33,80,195,180,196,142,84,11,155,114,186,29,191,83,137,22,37,107,35,91,82,85,331,316]))),validateSearch:Gr(()=>_e({role:V().optional()}))}),oce=Ie({staticData:{pageTitle:"settings.nav.security"},getParentRoute:()=>to,path:"/sso",component:Ue(()=>je(()=>import("./sso-DisHvnNZ.js"),__vite__mapDeps([349,335,24,2,34,35,36,103,37,96,76,330,331,316])))}),ace=Ie({staticData:{pageTitle:"settings.nav.profile"},getParentRoute:()=>to,path:"/profile",component:Ue(()=>je(()=>import("./profile-BDVO0CZL.js"),__vite__mapDeps([350,22,23,32,33,325,34,35,36,76,77,37,176,2,69,70,73,274,156])))}),nce=Ie({staticData:{pageTitle:"settings.nav.store"},getParentRoute:()=>to,path:"/store",component:Ue(()=>je(()=>import("./store-CFvcGu_A.js"),__vite__mapDeps([351,46,74,76,2,37,22,23,131,191,84,11,190,95,39,93,330,331,316])))}),rce=Ie({staticData:{pageTitle:"settings.nav.store"},getParentRoute:()=>to,path:"/registry",component:Ue(()=>je(()=>import("./registry-BL1mut8w.js"),__vite__mapDeps([352,330,331,316])))}),ice=Ie({staticData:{pageTitle:"settings.nav.store"},getParentRoute:()=>to,path:"/store/registry",component:Ue(()=>je(()=>import("./store-registry-ap1IeTES.js"),__vite__mapDeps([353,330,331,316])))}),sce=Ie({staticData:{pageTitle:"settings.nav.agents"},getParentRoute:()=>to,path:"/agents",component:Ue(()=>je(()=>import("./agents-list-Bb_RX3Ji.js"),__vite__mapDeps([354,83,84,11,57,59,76,45,46,47,18,48,49,50,51,52,43,53,36,54,55,56,58,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,44,21,75,77,23,78,79,33,80,278,28,149,92,5,93,39,150,151,85,95,19,326,191,116,10,216,113,111,109,114,110,112,32,155,154,103,20,152,153,107,35,2,31,141,142,22,25])))}),lce=Ie({staticData:{pageTitle:"settings.nav.automations"},getParentRoute:()=>to,path:"/automations",component:Ue(()=>je(()=>import("./automations-rIGMTqYL.js"),__vite__mapDeps([355,74,80,20,21,19,269,84,11,149,83,92,5,93,39,150,151,85,270,103,45,46,47,18,48,49,50,51,52,43,53,36,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,44,75,76,77,23,78,79,33,330,331,316])))}),cce=Ie({staticData:{pageTitle:"settings.nav.skills"},getParentRoute:()=>to,path:"/skills",component:Ue(()=>je(()=>import("./skills-BjII2RGG.js"),__vite__mapDeps([356,57,71,76,77,80,20,21,103,19,194,24,309,60,185,159,311,32,33,174,55,58,52,168,125,86,87,82,83,84,11,85,222,223,64,224,204,310])))}),dce=to.addChildren([Fle,Ble,jle,Ule,sce,lce,cce,zle,$le,qle,Vle,Hle,Gle,Kle,Wle,Yle,Zle,Qle,Jle,Xle,ece,tce,oce,ace,nce,ice,rce]),uce=Wv.addChildren([ile,sle,lle]),pce=Oo.addChildren([ale,nle,rle,uce,cle,dle,ule,ple,mle,gle,hle,fle,vle,ble,yle,Sle,Tle,wle,_le,Cle,Ple]),mce=nr.addChildren([ele,tle,ole,pce,xle,kle,Ele,Rle,Ale,Dle,Ole]),gce=Kv.addChildren([Lle,Nle,mce]),hce=Gv.addChildren([gce,Ile,dce]),fce=oP.addChildren([Gse,hce]),vce=pn.addChildren([fce,Hse,Kse,Wse,Yse,Zse,Qse,Lse,Nse,Fse,Bse,jse,Use]);function bce(){const e=Ne.c(16),t=ar();let o;e[0]!==t?(o=t("common.index.pageNotFound"),e[0]=t,e[1]=o):o=e[1];let a;e[2]!==o?(a=T.jsx("h3",{className:"text-lg font-medium text-foreground",children:o}),e[2]=o,e[3]=a):a=e[3];let n;e[4]!==t?(n=t("common.index.pageNotFoundDescription"),e[4]=t,e[5]=n):n=e[5];let i;e[6]!==n?(i=T.jsx("p",{className:"text-sm text-muted-foreground text-center max-w-[300px]",children:n}),e[6]=n,e[7]=i):i=e[7];let l;e[8]!==t?(l=t("common.index.goBack"),e[8]=t,e[9]=l):l=e[9];let c;e[10]!==l?(c=T.jsx("button",{type:"button",onClick:yce,className:"text-sm text-primary hover:underline",children:l}),e[10]=l,e[11]=c):c=e[11];let u;return e[12]!==a||e[13]!==i||e[14]!==c?(u=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:[a,i,c]})}),e[12]=a,e[13]=i,e[14]=c,e[15]=u):u=e[15],u}function yce(){return window.history.back()}const Yv=y$({routeTree:vce,defaultPendingComponent:Md,defaultPendingMs:200,defaultPendingMinMs:500,defaultNotFoundComponent:bce});function ke(...e){return TN(lC(e))}function Sce(e){return/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(e)}function zo({error:e,localization:t,localizeErrors:o=!0}){var a;const n="Request failed";if(!o)return e?.message?e.message:(a=e?.error)!=null&&a.message?e.error.message:n;if(typeof e=="string"&&t?.[e])return t[e];if(e?.error){if(e.error.code){const i=e.error.code;if(t?.[i])return t[i]}return e.error.message||e.error.code||e.error.statusText||t?.REQUEST_FAILED}return e?.message||t?.REQUEST_FAILED||n}function ql(e){return typeof window<"u"?new URLSearchParams(window.location.search).get(e):null}function Qw(e,t){for(const o in e)if(e[o]===t)return o}function Np(e,t){let o=V().min(1,{message:t?.PASSWORD_REQUIRED});return e?.minLength&&(o=o.min(e.minLength,{message:t?.PASSWORD_TOO_SHORT})),e?.maxLength&&(o=o.max(e.maxLength,{message:t?.PASSWORD_TOO_LONG})),e?.regex&&(o=o.regex(e.regex,{message:t?.INVALID_PASSWORD})),o}var Tce={FAILED_TO_CREATE_USER:"Failed to create user",USER_ALREADY_EXISTS:"User already exists",YOU_CANNOT_BAN_YOURSELF:"You cannot ban yourself",YOU_ARE_NOT_ALLOWED_TO_CHANGE_USERS_ROLE:"You are not allowed to change users role",YOU_ARE_NOT_ALLOWED_TO_CREATE_USERS:"You are not allowed to create users",YOU_ARE_NOT_ALLOWED_TO_LIST_USERS:"You are not allowed to list users",YOU_ARE_NOT_ALLOWED_TO_LIST_USERS_SESSIONS:"You are not allowed to list users sessions",YOU_ARE_NOT_ALLOWED_TO_BAN_USERS:"You are not allowed to ban users",YOU_ARE_NOT_ALLOWED_TO_IMPERSONATE_USERS:"You are not allowed to impersonate users",YOU_ARE_NOT_ALLOWED_TO_REVOKE_USERS_SESSIONS:"You are not allowed to revoke users sessions",YOU_ARE_NOT_ALLOWED_TO_DELETE_USERS:"You are not allowed to delete users",YOU_ARE_NOT_ALLOWED_TO_SET_USERS_PASSWORD:"You are not allowed to set users password",BANNED_USER:"You have been banned from this application"},wce={FAILED_TO_CREATE_USER:"Failed to create user",COULD_NOT_CREATE_SESSION:"Could not create session",ANONYMOUS_USERS_CANNOT_SIGN_IN_AGAIN_ANONYMOUSLY:"Anonymous users cannot sign in again anonymously"},_ce={INVALID_METADATA_TYPE:"metadata must be an object or undefined",REFILL_AMOUNT_AND_INTERVAL_REQUIRED:"refillAmount is required when refillInterval is provided",REFILL_INTERVAL_AND_AMOUNT_REQUIRED:"refillInterval is required when refillAmount is provided",USER_BANNED:"User is banned",UNAUTHORIZED_SESSION:"Unauthorized or invalid session",KEY_NOT_FOUND:"API Key not found",KEY_DISABLED:"API Key is disabled",KEY_EXPIRED:"API Key has expired",USAGE_EXCEEDED:"API Key has reached its usage limit",KEY_NOT_RECOVERABLE:"API Key is not recoverable",EXPIRES_IN_IS_TOO_SMALL:"The expiresIn is smaller than the predefined minimum value.",EXPIRES_IN_IS_TOO_LARGE:"The expiresIn is larger than the predefined maximum value.",INVALID_REMAINING:"The remaining count is either too large or too small.",INVALID_PREFIX_LENGTH:"The prefix length is either too large or too small.",INVALID_NAME_LENGTH:"The name length is either too large or too small.",METADATA_DISABLED:"Metadata is disabled.",RATE_LIMIT_EXCEEDED:"Rate limit exceeded.",NO_VALUES_TO_UPDATE:"No values to update.",KEY_DISABLED_EXPIRATION:"Custom key expiration values are disabled.",INVALID_API_KEY:"Invalid API key.",INVALID_USER_ID_FROM_API_KEY:"The user id from the API key is invalid.",INVALID_API_KEY_GETTER_RETURN_TYPE:"API Key getter returned an invalid key type. Expected string.",SERVER_ONLY_PROPERTY:"The property you're trying to set can only be set from the server auth instance only."},Cce={USER_NOT_FOUND:"User not found",FAILED_TO_CREATE_USER:"Failed to create user",FAILED_TO_CREATE_SESSION:"Failed to create session",FAILED_TO_UPDATE_USER:"Failed to update user",FAILED_TO_GET_SESSION:"Failed to get session",INVALID_PASSWORD:"Invalid password",INVALID_EMAIL:"Invalid email",INVALID_EMAIL_OR_PASSWORD:"Invalid email or password",SOCIAL_ACCOUNT_ALREADY_LINKED:"Social account already linked",PROVIDER_NOT_FOUND:"Provider not found",INVALID_TOKEN:"Invalid token",ID_TOKEN_NOT_SUPPORTED:"id_token not supported",FAILED_TO_GET_USER_INFO:"Failed to get user info",USER_EMAIL_NOT_FOUND:"User email not found",EMAIL_NOT_VERIFIED:"Email not verified",PASSWORD_TOO_SHORT:"Password too short",PASSWORD_TOO_LONG:"Password too long",USER_ALREADY_EXISTS:"User already exists",EMAIL_CAN_NOT_BE_UPDATED:"Email can not be updated",CREDENTIAL_ACCOUNT_NOT_FOUND:"Credential account not found",SESSION_EXPIRED:"Session expired. Re-authenticate to perform this action.",FAILED_TO_UNLINK_LAST_ACCOUNT:"You can't unlink your last account",ACCOUNT_NOT_FOUND:"Account not found",USER_ALREADY_HAS_PASSWORD:"User already has a password. Provide that to delete the account."},Pce={VERIFICATION_FAILED:"Captcha verification failed",MISSING_RESPONSE:"Missing CAPTCHA response",UNKNOWN_ERROR:"Something went wrong"},xce={MISSING_SECRET_KEY:"Missing secret key",SERVICE_UNAVAILABLE:"CAPTCHA service unavailable"},kce={...Pce,...xce},Ece={OTP_EXPIRED:"otp expired",INVALID_OTP:"Invalid OTP",INVALID_EMAIL:"Invalid email",USER_NOT_FOUND:"User not found",TOO_MANY_ATTEMPTS:"Too many attempts"},Rce={INVALID_OAUTH_CONFIGURATION:"Invalid OAuth configuration"},Ace={PASSWORD_COMPROMISED:"The password you entered has been compromised. Please choose a different password."},Dce={INVALID_SESSION_TOKEN:"Invalid session token"},Oce={YOU_ARE_NOT_ALLOWED_TO_CREATE_A_NEW_ORGANIZATION:"You are not allowed to create a new organization",YOU_HAVE_REACHED_THE_MAXIMUM_NUMBER_OF_ORGANIZATIONS:"You have reached the maximum number of organizations",ORGANIZATION_ALREADY_EXISTS:"Organization already exists",ORGANIZATION_NOT_FOUND:"Organization not found",USER_IS_NOT_A_MEMBER_OF_THE_ORGANIZATION:"User is not a member of the organization",YOU_ARE_NOT_ALLOWED_TO_UPDATE_THIS_ORGANIZATION:"You are not allowed to update this organization",YOU_ARE_NOT_ALLOWED_TO_DELETE_THIS_ORGANIZATION:"You are not allowed to delete this organization",NO_ACTIVE_ORGANIZATION:"No active organization",USER_IS_ALREADY_A_MEMBER_OF_THIS_ORGANIZATION:"User is already a member of this organization",MEMBER_NOT_FOUND:"Member not found",ROLE_NOT_FOUND:"Role not found",YOU_ARE_NOT_ALLOWED_TO_CREATE_A_NEW_TEAM:"You are not allowed to create a new team",TEAM_ALREADY_EXISTS:"Team already exists",TEAM_NOT_FOUND:"Team not found",YOU_CANNOT_LEAVE_THE_ORGANIZATION_AS_THE_ONLY_OWNER:"You cannot leave the organization as the only owner",YOU_ARE_NOT_ALLOWED_TO_DELETE_THIS_MEMBER:"You are not allowed to delete this member",YOU_ARE_NOT_ALLOWED_TO_INVITE_USERS_TO_THIS_ORGANIZATION:"You are not allowed to invite users to this organization",USER_IS_ALREADY_INVITED_TO_THIS_ORGANIZATION:"User is already invited to this organization",INVITATION_NOT_FOUND:"Invitation not found",YOU_ARE_NOT_THE_RECIPIENT_OF_THE_INVITATION:"You are not the recipient of the invitation",YOU_ARE_NOT_ALLOWED_TO_CANCEL_THIS_INVITATION:"You are not allowed to cancel this invitation",INVITER_IS_NO_LONGER_A_MEMBER_OF_THE_ORGANIZATION:"Inviter is no longer a member of the organization",YOU_ARE_NOT_ALLOWED_TO_INVITE_USER_WITH_THIS_ROLE:"you are not allowed to invite user with this role",FAILED_TO_RETRIEVE_INVITATION:"Failed to retrieve invitation",YOU_HAVE_REACHED_THE_MAXIMUM_NUMBER_OF_TEAMS:"You have reached the maximum number of teams",UNABLE_TO_REMOVE_LAST_TEAM:"Unable to remove last team",YOU_ARE_NOT_ALLOWED_TO_UPDATE_THIS_MEMBER:"You are not allowed to update this member",ORGANIZATION_MEMBERSHIP_LIMIT_REACHED:"Organization membership limit reached",YOU_ARE_NOT_ALLOWED_TO_CREATE_TEAMS_IN_THIS_ORGANIZATION:"You are not allowed to create teams in this organization",YOU_ARE_NOT_ALLOWED_TO_DELETE_TEAMS_IN_THIS_ORGANIZATION:"You are not allowed to delete teams in this organization",YOU_ARE_NOT_ALLOWED_TO_UPDATE_THIS_TEAM:"You are not allowed to update this team",YOU_ARE_NOT_ALLOWED_TO_DELETE_THIS_TEAM:"You are not allowed to delete this team",INVITATION_LIMIT_REACHED:"Invitation limit reached"},Ice={CHALLENGE_NOT_FOUND:"Challenge not found",YOU_ARE_NOT_ALLOWED_TO_REGISTER_THIS_PASSKEY:"You are not allowed to register this passkey",FAILED_TO_VERIFY_REGISTRATION:"Failed to verify registration",PASSKEY_NOT_FOUND:"Passkey not found",AUTHENTICATION_FAILED:"Authentication failed",UNABLE_TO_CREATE_SESSION:"Unable to create session",FAILED_TO_UPDATE_PASSKEY:"Failed to update passkey"},Mce={INVALID_PHONE_NUMBER:"Invalid phone number",PHONE_NUMBER_EXIST:"Phone number already exists",INVALID_PHONE_NUMBER_OR_PASSWORD:"Invalid phone number or password",UNEXPECTED_ERROR:"Unexpected error",OTP_NOT_FOUND:"OTP not found",OTP_EXPIRED:"OTP expired",INVALID_OTP:"Invalid OTP",PHONE_NUMBER_NOT_VERIFIED:"Phone number not verified"},Lce={SUBSCRIPTION_NOT_FOUND:"Subscription not found",SUBSCRIPTION_PLAN_NOT_FOUND:"Subscription plan not found",ALREADY_SUBSCRIBED_PLAN:"You're already subscribed to this plan",UNABLE_TO_CREATE_CUSTOMER:"Unable to create customer",FAILED_TO_FETCH_PLANS:"Failed to fetch plans",EMAIL_VERIFICATION_REQUIRED:"Email verification is required before you can subscribe to a plan",SUBSCRIPTION_NOT_ACTIVE:"Subscription is not active",SUBSCRIPTION_NOT_SCHEDULED_FOR_CANCELLATION:"Subscription is not scheduled for cancellation"},Nce={TEAM_LIMIT_REACHED:"Team limit reached for this organization",TEAM_MEMBER_LIMIT_REACHED:"Team member limit reached for this team",TEAM_NOT_FOUND:"Team not found",TEAM_MEMBER_NOT_FOUND:"Team member not found",TEAM_NAME_TOO_LONG:"Team name is too long",CANNOT_REMOVE_LAST_TEAM:"Cannot remove the last team",NOT_ORGANIZATION_MEMBER:"User is not a member of the organization",ALREADY_TEAM_MEMBER:"User is already a member of this team",INSUFFICIENT_TEAM_PERMISSIONS:"Insufficient permissions to perform this action on team"},Fce={OTP_NOT_ENABLED:"OTP not enabled",OTP_HAS_EXPIRED:"OTP has expired",TOTP_NOT_ENABLED:"TOTP not enabled",TWO_FACTOR_NOT_ENABLED:"Two factor isn't enabled",BACKUP_CODES_NOT_ENABLED:"Backup codes aren't enabled",INVALID_BACKUP_CODE:"Invalid backup code",INVALID_CODE:"Invalid code",TOO_MANY_ATTEMPTS_REQUEST_NEW_CODE:"Too many attempts. Please request a new code.",INVALID_TWO_FACTOR_COOKIE:"Invalid two factor cookie"},Bce={INVALID_USERNAME_OR_PASSWORD:"invalid username or password",EMAIL_NOT_VERIFIED:"email not verified",UNEXPECTED_ERROR:"unexpected error",USERNAME_IS_ALREADY_TAKEN:"username is already taken. please try another.",USERNAME_TOO_SHORT:"username is too short",USERNAME_TOO_LONG:"username is too long",INVALID_USERNAME:"username is invalid"},jce={APP:"App",ACCOUNT:"Account",ACCOUNTS:"Accounts",ACCOUNTS_DESCRIPTION:"Switch between your currently signed in accounts.",ACCOUNTS_INSTRUCTIONS:"Sign in to an additional account.",ADD_ACCOUNT:"Add Account",ADD_PASSKEY:"Add Passkey",ALREADY_HAVE_AN_ACCOUNT:"Already have an account?",AVATAR:"Avatar",AVATAR_DESCRIPTION:"Click on the avatar to upload a custom one from your files.",AVATAR_INSTRUCTIONS:"An avatar is optional but strongly recommended.",BACKUP_CODE_REQUIRED:"Backup code is required",BACKUP_CODES:"Backup Codes",BACKUP_CODES_DESCRIPTION:"Save these backup codes in a secure place. You can use them to access your account if you lose your two-factor authentication method.",BACKUP_CODE_PLACEHOLDER:"Backup Code",BACKUP_CODE:"Backup Code",CANCEL:"Cancel",CHANGE_PASSWORD:"Change Password",CHANGE_PASSWORD_DESCRIPTION:"Enter your current password and a new password.",CHANGE_PASSWORD_INSTRUCTIONS:"Please use 8 characters at minimum.",CHANGE_PASSWORD_SUCCESS:"Your password has been changed.",CONFIRM_PASSWORD:"Confirm Password",CONFIRM_PASSWORD_PLACEHOLDER:"Confirm Password",CONFIRM_PASSWORD_REQUIRED:"Confirm password is required",CONTINUE_WITH_AUTHENTICATOR:"Continue with Authenticator",COPIED_TO_CLIPBOARD:"Copied to clipboard",COPY_TO_CLIPBOARD:"Copy to clipboard",COPY_ALL_CODES:"Copy all codes",CONTINUE:"Continue",CURRENT_PASSWORD:"Current Password",CURRENT_PASSWORD_PLACEHOLDER:"Current Password",CURRENT_SESSION:"Current Session",UPDATE:"Update",DELETE:"Delete",DELETE_AVATAR:"Delete Avatar",DELETE_ACCOUNT:"Delete Account",DELETE_ACCOUNT_DESCRIPTION:"Permanently remove your account and all of its contents. This action is not reversible, so please continue with caution.",DELETE_ACCOUNT_INSTRUCTIONS:"Please confirm the deletion of your account. This action is not reversible, so please continue with caution.",DELETE_ACCOUNT_VERIFY:"Please check your email to verify the deletion of your account.",DELETE_ACCOUNT_SUCCESS:"Your account has been deleted.",DISABLE_TWO_FACTOR:"Disable Two-Factor",DISABLED_CREDENTIALS_DESCRIPTION:"Choose a provider to login to your account",DONT_HAVE_AN_ACCOUNT:"Don't have an account?",DONE:"Done",EMAIL:"Email",EMAIL_DESCRIPTION:"Enter the email address you want to use to log in.",EMAIL_INSTRUCTIONS:"Please enter a valid email address.",EMAIL_IS_THE_SAME:"Email is the same",EMAIL_PLACEHOLDER:"m@example.com",EMAIL_REQUIRED:"Email address is required",EMAIL_VERIFY_CHANGE:"Please check your email to verify the change.",EMAIL_VERIFICATION:"Email Verification",EMAIL_VERIFICATION_DESCRIPTION:"Please check your email for the verification code to complete your registration.",EMAIL_VERIFICATION_SUCCESS:"Email verification successful.",ENABLE_TWO_FACTOR:"Enable Two-Factor",IS_INVALID:"is invalid",IS_REQUIRED:"is required",IS_THE_SAME:"is the same",FORGOT_AUTHENTICATOR:"Forgot authenticator?",FORGOT_PASSWORD:"Forgot Password",FORGOT_PASSWORD_ACTION:"Send reset link",FORGOT_PASSWORD_DESCRIPTION:"Enter your email to reset your password",FORGOT_PASSWORD_EMAIL:"Check your email for the password reset link.",FORGOT_PASSWORD_LINK:"Forgot your password?",LINK:"Link",MAGIC_LINK:"Magic Link",MAGIC_LINK_ACTION:"Send magic link",MAGIC_LINK_DESCRIPTION:"Enter your email to receive a magic link",MAGIC_LINK_EMAIL:"Check your email for the magic link",EMAIL_OTP:"Email Code",EMAIL_OTP_SEND_ACTION:"Send code",EMAIL_OTP_VERIFY_ACTION:"Verify code",EMAIL_OTP_DESCRIPTION:"Enter your email to receive a code",EMAIL_OTP_VERIFICATION_SENT:"Please check your email for the verification code.",NAME:"Name",NAME_DESCRIPTION:"Please enter your full name, or a display name.",NAME_INSTRUCTIONS:"Please use 32 characters at maximum.",NAME_PLACEHOLDER:"Name",NEW_PASSWORD:"New Password",NEW_PASSWORD_PLACEHOLDER:"New Password",NEW_PASSWORD_REQUIRED:"New password is required",ONE_TIME_PASSWORD:"One-Time Password",OR_CONTINUE_WITH:"Or continue with",PASSKEY:"Passkey",PASSKEYS:"Passkeys",PASSKEYS_DESCRIPTION:"Manage your passkeys for secure access.",PASSKEYS_INSTRUCTIONS:"Securely access your account without a password.",PERSONAL_ACCOUNT:"Personal Account",API_KEYS:"API Keys",API_KEYS_DESCRIPTION:"Manage your API keys for secure access.",API_KEYS_INSTRUCTIONS:"Generate API keys to access your account programmatically.",CREATE_API_KEY:"Create API Key",CREATE_API_KEY_DESCRIPTION:"Enter a unique name for your API key to differentiate it from other keys.",API_KEY_NAME_PLACEHOLDER:"New API Key",API_KEY_CREATED:"API Key Created",CREATE_API_KEY_SUCCESS:"Please copy your API key and store it in a safe place. For security reasons we cannot show it again.",NEVER_EXPIRES:"Never Expires",EXPIRES:"Expires",NO_EXPIRATION:"No Expiration",CREATE_ORGANIZATION:"Create Organization",ORGANIZATION:"Organization",ORGANIZATION_NAME:"Name",ORGANIZATION_NAME_PLACEHOLDER:"Acme Inc.",ORGANIZATION_NAME_DESCRIPTION:"This is your organization's visible name.",ORGANIZATION_NAME_INSTRUCTIONS:"Please use 32 characters at maximum.",ORGANIZATION_SLUG:"Slug URL",ORGANIZATION_SLUG_DESCRIPTION:"This is your organization's URL namespace.",ORGANIZATION_SLUG_INSTRUCTIONS:"Please use 48 characters at maximum.",ORGANIZATION_SLUG_PLACEHOLDER:"acme-inc",CREATE_ORGANIZATION_SUCCESS:"Organization created successfully",PASSWORD:"Password",PASSWORD_PLACEHOLDER:"Password",PASSWORD_REQUIRED:"Password is required",PASSWORDS_DO_NOT_MATCH:"Passwords do not match",PROVIDERS:"Providers",PROVIDERS_DESCRIPTION:"Connect your account with a third-party service.",RECOVER_ACCOUNT:"Recover Account",RECOVER_ACCOUNT_ACTION:"Recover account",RECOVER_ACCOUNT_DESCRIPTION:"Please enter a backup code to access your account",REMEMBER_ME:"Remember me",RESEND_CODE:"Resend code",RESEND_VERIFICATION_EMAIL:"Resend Verification Email",RESET_PASSWORD:"Reset Password",RESET_PASSWORD_ACTION:"Save new password",RESET_PASSWORD_DESCRIPTION:"Enter your new password below",RESET_PASSWORD_SUCCESS:"Password reset successfully",REQUEST_FAILED:"Request failed",REVOKE:"Revoke",DELETE_API_KEY:"Delete API Key",DELETE_API_KEY_CONFIRM:"Are you sure you want to delete this API key?",API_KEY:"API Key",SIGN_IN:"Sign In",SIGN_IN_ACTION:"Login",SIGN_IN_DESCRIPTION:"Enter your email below to login to your account",SIGN_IN_USERNAME_DESCRIPTION:"Enter your username or email to login to your account",SIGN_IN_WITH:"Sign in with",SIGN_OUT:"Sign Out",SIGN_UP:"Sign Up",SIGN_UP_ACTION:"Create an account",SIGN_UP_DESCRIPTION:"Enter your information to create an account",SIGN_UP_EMAIL:"Check your email for the verification link.",SESSIONS:"Sessions",SESSIONS_DESCRIPTION:"Manage your active sessions and revoke access.",SET_PASSWORD:"Set Password",SET_PASSWORD_DESCRIPTION:"Click the button below to receive an email to set up a password for your account.",SETTINGS:"Settings",SAVE:"Save",SECURITY:"Security",SWITCH_ACCOUNT:"Switch Account",TRUST_DEVICE:"Trust this device",TWO_FACTOR:"Two-Factor",TWO_FACTOR_ACTION:"Verify code",TWO_FACTOR_DESCRIPTION:"Please enter your one-time password to continue",TWO_FACTOR_CARD_DESCRIPTION:"Add an extra layer of security to your account.",TWO_FACTOR_DISABLE_INSTRUCTIONS:"Please enter your password to disable 2FA.",TWO_FACTOR_ENABLE_INSTRUCTIONS:"Please enter your password to enable 2FA.",TWO_FACTOR_ENABLED:"Two-factor authentication has been enabled",TWO_FACTOR_DISABLED:"Two-Factor Authentication has been disabled",TWO_FACTOR_PROMPT:"Two-Factor Authentication",TWO_FACTOR_TOTP_LABEL:"Scan the QR Code with your Authenticator",SEND_VERIFICATION_CODE:"Send verification code",UNLINK:"Unlink",UPDATED_SUCCESSFULLY:"updated successfully",USERNAME:"Username",USERNAME_DESCRIPTION:"Enter the username you want to use to log in.",USERNAME_INSTRUCTIONS:"Please use 32 characters at maximum.",USERNAME_PLACEHOLDER:"Username",OPTIONAL_BRACKETS:"(Optional)",SIGN_IN_USERNAME_PLACEHOLDER:"Username or email",VERIFY_YOUR_EMAIL:"Verify Your Email",VERIFY_YOUR_EMAIL_DESCRIPTION:"Please verify your email address. Check your inbox for the verification email. If you haven't received the email, click the button below to resend.",GO_BACK:"Go back",SESSION_NOT_FRESH:"Your session is not fresh. Please sign in again.",UPLOAD_AVATAR:"Upload Avatar",LOGO:"Logo",LOGO_DESCRIPTION:"Click on the logo to upload a custom one from your files.",LOGO_INSTRUCTIONS:"A logo is optional but strongly recommended.",UPLOAD:"Upload",UPLOAD_LOGO:"Upload Logo",DELETE_LOGO:"Delete Logo",PRIVACY_POLICY:"Privacy Policy",TERMS_OF_SERVICE:"Terms of Service",PROTECTED_BY_RECAPTCHA:"This site is protected by reCAPTCHA.",BY_CONTINUING_YOU_AGREE:"By continuing, you agree to the",USER:"User",ORGANIZATIONS:"Organizations",ORGANIZATIONS_DESCRIPTION:"Manage your organizations and memberships.",ORGANIZATIONS_INSTRUCTIONS:"Create an organization to collaborate with other users.",LEAVE_ORGANIZATION:"Leave Organization",LEAVE_ORGANIZATION_CONFIRM:"Are you sure you want to leave this organization?",LEAVE_ORGANIZATION_SUCCESS:"You have successfully left the organization.",MANAGE_ORGANIZATION:"Manage Organization",REMOVE_MEMBER:"Remove Member",REMOVE_MEMBER_CONFIRM:"Are you sure you want to remove this member from the organization?",REMOVE_MEMBER_SUCCESS:"Member removed successfully",INVITE_MEMBER:"Invite Member",MEMBERS:"Members",MEMBERS_DESCRIPTION:"Add or remove members and manage their roles.",MEMBERS_INSTRUCTIONS:"Invite new members to your organization.",INVITE_MEMBER_DESCRIPTION:"Send an invitation to add a new member to your organization.",ROLE:"Role",SELECT_ROLE:"Select a role",ADMIN:"Admin",MEMBER:"Member",GUEST:"Guest",OWNER:"Owner",UPDATE_ROLE_DESCRIPTION:"Update the role for this member",UPDATE_ROLE:"Update Role",MEMBER_ROLE_UPDATED:"Member role updated successfully",SEND_INVITATION:"Send Invitation",SEND_INVITATION_SUCCESS:"Invitation sent successfully",PENDING_INVITATIONS:"Pending Invitations",PENDING_INVITATIONS_DESCRIPTION:"Manage pending invitations to your organization.",PENDING_USER_INVITATIONS_DESCRIPTION:"Invitations you've received from organizations.",CANCEL_INVITATION:"Cancel Invitation",INVITATION_CANCELLED:"Invitation cancelled successfully",ACCEPT_INVITATION:"Accept Invitation",ACCEPT_INVITATION_DESCRIPTION:"You have been invited to join an organization.",INVITATION_ACCEPTED:"Invitation accepted successfully",INVITATION_REJECTED:"Invitation rejected successfully",ACCEPT:"Accept",REJECT:"Reject",INVITATION_EXPIRED:"This invitation has expired",DELETE_ORGANIZATION:"Delete Organization",DELETE_ORGANIZATION_DESCRIPTION:"Permanently remove your organization and all of its contents. This action is not reversible — please continue with caution.",DELETE_ORGANIZATION_SUCCESS:"Organization deleted successfully",DELETE_ORGANIZATION_INSTRUCTIONS:"Enter the organization slug to continue:",SLUG_REQUIRED:"Organization slug is required",SLUG_DOES_NOT_MATCH:"The slug does not match",TEAM:"Team",TEAMS:"Teams",TEAM_ACTIVE:"Active",TEAM_SET_ACTIVE:"Set Active",CREATE_TEAM:"Create Team",CREATE_TEAM_SUCCESS:"Team created successfully",UPDATE_TEAM:"Update Team",UPDATE_TEAMS:"Update Teams",SELECT_TEAMS:"Select teams",ADD:"Add",REMOVE:"Remove",UPDATE_TEAM_DESCRIPTION:"Update the name for this team",UPDATE_TEAMS_DESCRIPTION:"Add or remove teams for this member",REMOVE_TEAM_CONFIRM:"Are you sure you want to remove this team from the organization?",CREATE_TEAM_INSTRUCTIONS:"Add new team to your organization.",TEAM_NAME:"Team Name",TEAM_NAME_PLACEHOLDER:"Engineering Team",TEAM_NAME_DESCRIPTION:"This is your team's visible name.",TEAM_NAME_INSTRUCTIONS:"Please use 64 characters at maximum.",TEAMS_DESCRIPTION:"Manage your teams within your organization.",USER_TEAMS_DESCRIPTION:"You are a member of the following teams.",DELETE_TEAM:"Delete Team",DELETE_TEAM_DESCRIPTION:"Permanently remove this team and all of its contents.",DELETE_TEAM_SUCCESS:"Team deleted successfully",DELETE_TEAM_INSTRUCTIONS:"Enter the team name to continue:",TEAM_NAME_REQUIRED:"Team name is required",TEAM_NAME_DOES_NOT_MATCH:"The team name does not match",TEAM_MEMBERS:"Team Members",TEAM_MEMBERS_DESCRIPTION:"Manage your team members and their roles.",ADD_TEAM_MEMBER:"Add Team Member",REMOVE_TEAM_MEMBER:"Remove Team Member",REMOVE_TEAM_MEMBER_CONFIRM:"Are you sure you want to remove this member from the team?",REMOVE_TEAM_MEMBER_SUCCESS:"Team member removed successfully",ADD_TEAM_MEMBER_SUCCESS:"Team member added successfully",UPDATE_TEAM_SUCCESS:"Team updated successfully",MANAGE_TEAM_MEMBERS:"Manage Team Members",MANAGE_TEAM_MEMBERS_DESCRIPTION:"Search and add organization members to this team.",NO_TEAMS_FOUND:"No teams found",MEMBER_SINGULAR:"member",MEMBER_PLURAL:"members",UNKNOWN:"Unknown",...Cce,...Tce,...wce,..._ce,...kce,...Ece,...Rce,...Ace,...Dce,...Oce,...Ice,...Mce,...Lce,...Nce,...Fce,...Bce},Uce={CALLBACK:"callback",EMAIL_OTP:"email-otp",EMAIL_VERIFICATION:"email-verification",FORGOT_PASSWORD:"forgot-password",MAGIC_LINK:"magic-link",RECOVER_ACCOUNT:"recover-account",RESET_PASSWORD:"reset-password",SIGN_IN:"sign-in",SIGN_OUT:"sign-out",SIGN_UP:"sign-up",TWO_FACTOR:"two-factor",ACCEPT_INVITATION:"accept-invitation"},QO={SETTINGS:"settings",SECURITY:"security",TEAMS:"teams",API_KEYS:"api-keys",ORGANIZATIONS:"organizations"},JO={SETTINGS:"settings",MEMBERS:"members",TEAMS:"teams",API_KEYS:"api-keys"};const h4=A.createContext({});function f4(){return A.useContext(h4)}var N0,XO;function zce(){if(XO)return N0;XO=1;var e=function(){};return N0=e,N0}var $ce=zce();const qce=Ll($ce);function Vce({async:e,appendTo:t,defer:o,id:a,nonce:n,src:i}){const l=document.createElement("script");e!==void 0&&(l.async=e),o!==void 0&&(l.defer=o),a&&(l.id=a),n&&l.setAttribute("nonce",n),l.src=i,(t==="head"?document.head:document.body).appendChild(l)}var Hce=function(e,t){var o={};for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&t.indexOf(a)<0&&(o[a]=e[a]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var n=0,a=Object.getOwnPropertySymbols(e);n<a.length;n++)t.indexOf(a[n])<0&&Object.prototype.propertyIsEnumerable.call(e,a[n])&&(o[a[n]]=e[a[n]]);return o};let hp=null,Fp=!1;const ov=new Set,av=new Set,Gce=typeof window<"u",ud="___grecaptcha_cfg",v4=`onLoadCallback_${Math.random().toString(36).slice(2)}`;function Kce(){if(!Gce)return;function e(o){if(Fp)o();else{window[ud]||(window[ud]={});const a=window[ud];a.fns||(a.fns=[]),a.fns.push(o)}}window.grecaptcha||(window.grecaptcha={}),window.grecaptcha.enterprise||(window.grecaptcha.enterprise={}),window.grecaptcha.ready=e,window.grecaptcha.enterprise.ready=e;function t(){Fp=!0;for(const o of av)o();av.clear()}window[v4]=t}function Wce({language:e,onLoadCallbackName:t,render:o,useEnterprise:a=!1,useRecaptchaNet:n=!1}){const i=n?"recaptcha.net":"google.com",l=a?"enterprise.js":"api.js",c=new URLSearchParams({render:o});return t&&c.set("onload",t),e&&c.set("hl",e),`https://www.${i}/recaptcha/${l}?${c.toString()}`}function Yce({language:e,render:t,scriptProps:o,useEnterprise:a,useRecaptchaNet:n}){const i={id:"google-recaptcha-v3"},l=Wce({language:e,onLoadCallbackName:v4,render:t,useEnterprise:a,useRecaptchaNet:n});if(hp){if(hp!==l)throw new Error("reCAPTCHA has already been loaded with different parameters. Remove the existing script and load it again.");return}hp=l,Vce(Object.assign(Object.assign(Object.assign({},i),o),{src:l}))}function Zce(e){if(!window[ud])return;const t=window[ud];t.clients&&delete t.clients[e]}function Qce(e,t){var{onLoadCallback:o,onLoadCallbackName:a}=t,n=Hce(t,["onLoadCallback","onLoadCallbackName"]);if(ov.size===0&&Kce(),Yce(n),ov.add(e),o&&(Fp?o():av.add(o)),a){let i=function(){if(!a)return;const l=window[a];typeof l=="function"&&l()};Fp?i():av.add(i)}}function Jce(e){var t,o,a;ov.delete(e),ov.size===0&&(window.grecaptcha=void 0,window[ud]=void 0,(t=document.querySelector(".grecaptcha-badge"))===null||t===void 0||t.remove(),(o=document.querySelector(`script[src="${hp}"]`))===null||o===void 0||o.remove(),(a=document.querySelector('script[src^="https://www.gstatic.com/recaptcha/releases"]'))===null||a===void 0||a.remove(),hp=null,Fp=!1)}let e2=!1;function Xce({container:e,children:t,language:o,reCaptchaKey:a,scriptProps:n,useEnterprise:i,useRecaptchaNet:l}){var c,u,p,g,m,f,v;const b=A.useId(),[S,C]=A.useState(null),[w,_]=A.useState(null),E=A.useRef(!1);A.useEffect(()=>{function D(){var O;const N=i?(O=window.grecaptcha)===null||O===void 0?void 0:O.enterprise:window.grecaptcha;if(!N)throw new Error("reCAPTCHA not found");if(!N.ready)throw new Error("reCAPTCHA ready callback not found");N.ready(()=>{C(N)})}return Qce(b,{language:o,onLoadCallback:D,onLoadCallbackName:n?.onLoadCallbackName,render:e?.element?"explicit":a,scriptProps:{appendTo:n?.appendTo,async:n?.async,defer:n?.defer,id:n?.id,nonce:n?.nonce},useEnterprise:i,useRecaptchaNet:l}),()=>{Jce(b),C(null)}},[e?.element,b,o,a,n?.appendTo,n?.async,n?.defer,n?.id,n?.nonce,n?.onLoadCallbackName,i,l]),A.useEffect(()=>{var D,O,N;if(!e?.element||!S?.render)return;const $={"error-callback":e.parameters.errorCallback,"expired-callback":e.parameters.expiredCallback,badge:((D=e.parameters)===null||D===void 0?void 0:D.badge)||"inline",callback:e.parameters.callback,sitekey:a,size:"invisible",tabindex:e.parameters.tabindex,theme:e.parameters.theme},F=typeof e?.element=="string"?document.getElementById(e.element):e?.element;if(!F)throw new Error("reCAPTCHA container element not found");const z=S.render(F,$);return!((O=e?.parameters)===null||O===void 0)&&O.hidden&&(e2||(qce(!1,"reCAPTCHA badge hidden. See https://cloud.google.com/recaptcha/docs/faq#id_like_to_hide_the_badge_what_is_allowed for more information."),e2=!0),(N=F.querySelector(".grecaptcha-badge"))===null||N===void 0||N.style.setProperty("display","none")),_(z),E.current=!0,()=>{_(null),E.current=!1,Zce(z),F.innerHTML=""}},[e?.element,(c=e?.parameters)===null||c===void 0?void 0:c.badge,(u=e?.parameters)===null||u===void 0?void 0:u.hidden,(p=e?.parameters)===null||p===void 0?void 0:p.callback,(g=e?.parameters)===null||g===void 0?void 0:g.errorCallback,(m=e?.parameters)===null||m===void 0?void 0:m.expiredCallback,(f=e?.parameters)===null||f===void 0?void 0:f.tabindex,(v=e?.parameters)===null||v===void 0?void 0:v.theme,S,a]);const x=!!e?.element,k=x?w:a,R=A.useMemo(()=>k!==null&&S?.execute?D=>{if(k===null||!S?.execute)throw new Error("reCAPTCHA has not been loaded");return x&&!E.current?(console.warn("Client ID not mounted"),null):S.execute(k,{action:D})}:void 0,[k,S,x]);return T.jsx(h4.Provider,{value:{container:e?.element,executeRecaptcha:R,reCaptchaInstance:S},children:t})}var ede=class{cache=new Map;listeners=new Map;inFlightRequests=new Map;get(e){return this.cache.get(e)}set(e,t){const o={data:t,timestamp:Date.now(),isRefetching:!1};this.cache.set(e,o),this.notify(e)}setRefetching(e,t){const o=this.cache.get(e);o&&(o.isRefetching=t,this.notify(e))}clear(e){if(e)this.cache.delete(e),this.inFlightRequests.delete(e),this.notify(e);else{this.cache.clear(),this.inFlightRequests.clear();const t=Array.from(this.listeners.keys());for(const o of t)this.notify(o)}}getInFlightRequest(e){return this.inFlightRequests.get(e)}setInFlightRequest(e,t){this.inFlightRequests.set(e,t)}removeInFlightRequest(e){this.inFlightRequests.delete(e)}subscribe(e,t){return this.listeners.has(e)||this.listeners.set(e,new Set),this.listeners.get(e).add(t),()=>{const o=this.listeners.get(e);o&&(o.delete(t),o.size===0&&this.listeners.delete(e))}}notify(e){const t=this.listeners.get(e);if(t){const o=Array.from(t);for(const a of o)a()}}},Hn=new ede;function tde(){return()=>{}}function Fi(){return A.useSyncExternalStore(tde,()=>!0,()=>!1)}function b4(){const[e,t]=A.useState();return A.useEffect(()=>{const o=()=>{const n=document.documentElement.getAttribute("lang");t(n??void 0)};o();const a=new MutationObserver(n=>{for(const i of n)i.attributeName==="lang"&&o()});return a.observe(document.documentElement,{attributes:!0}),()=>{a.disconnect()}},[]),{lang:e}}function aP(){const[e,t]=A.useState("light");return A.useEffect(()=>{const o=()=>{var n;const i=document.documentElement.classList.contains("dark")||((n=document.documentElement.getAttribute("style"))==null?void 0:n.includes("color-scheme: dark"));t(i?"dark":"light")};o();const a=new MutationObserver(n=>{for(const i of n)(i.attributeName==="style"||i.attributeName==="class")&&o()});return a.observe(document.documentElement,{attributes:!0}),()=>{a.disconnect()}},[]),{theme:e}}function ode({children:e}){const t=Fi(),{captcha:o}=A.useContext(yt);return o?.provider!=="google-recaptcha-v3"?e:T.jsxs(Xce,{reCaptchaKey:o.siteKey,useEnterprise:o.enterprise,useRecaptchaNet:o.recaptchaNet,children:[t&&T.jsx("style",{children:`
|
|
161
161
|
.grecaptcha-badge {
|
|
162
162
|
visibility: hidden;
|
|
163
163
|
border-radius: var(--radius) !important;
|