decocms 4.513.4 → 4.513.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/client/assets/{ActiveShapeUtils-CAxkWTE7.js → ActiveShapeUtils-ZRNWCZWq.js} +1 -1
- package/dist/client/assets/{AlertCircle-iwRSZJFi.js → AlertCircle-CcVhl96j.js} +1 -1
- package/dist/client/assets/{AreaChart-BCUK2U_v.js → AreaChart-BlLvjs0A.js} +1 -1
- package/dist/client/assets/{ArrowLeft-_QxYwR3P.js → ArrowLeft-Bph0OW09.js} +1 -1
- package/dist/client/assets/{ArrowUp-CWx4kMsV.js → ArrowUp-DHpvU3H5.js} +1 -1
- package/dist/client/assets/{BarChart-BFfaTlE7.js → BarChart-CLaD079J.js} +1 -1
- package/dist/client/assets/{Building02-Dcs_HLaa.js → Building02-C1Q8doPE.js} +1 -1
- package/dist/client/assets/{CartesianChart-DxoYDxJN.js → CartesianChart-B72NH8Np.js} +1 -1
- package/dist/client/assets/{CategoricalChart-BWxwmOFO.js → CategoricalChart-DG6BKu5a.js} +1 -1
- package/dist/client/assets/{CheckCircle-X3D4eq-V.js → CheckCircle-CQsC-Pz6.js} +1 -1
- package/dist/client/assets/{ChevronSelectorVertical-7X_EL11G.js → ChevronSelectorVertical-CaNDzI1v.js} +1 -1
- package/dist/client/assets/{ChevronUp-BlFhjumO.js → ChevronUp-BruZRzgU.js} +1 -1
- package/dist/client/assets/{Copy01-CsyaL0tc.js → Copy01-XsrxN5V9.js} +1 -1
- package/dist/client/assets/{CreditCard01-DZn9m-o1.js → CreditCard01-DD6f0NE9.js} +1 -1
- package/dist/client/assets/{DotsVertical-H16dBinG.js → DotsVertical-DdEm5Yv0.js} +1 -1
- package/dist/client/assets/{ErrorBarContext-IXpluzmX.js → ErrorBarContext-D6UYrmJv.js} +1 -1
- package/dist/client/assets/{Globe04-B5AbE2NG.js → Globe04-BHgzUZy8.js} +1 -1
- package/dist/client/assets/{Image01-C-r__mWH.js → Image01-Ca0i2mzS.js} +1 -1
- package/dist/client/assets/{Key01-D8PhPz3k.js → Key01-Bv_pipnz.js} +1 -1
- package/dist/client/assets/{Link01-BZlTJYwG.js → Link01-vSc5x3Bn.js} +1 -1
- package/dist/client/assets/{LinkBroken01-y64X2SC-.js → LinkBroken01-C8p4Wo5b.js} +1 -1
- package/dist/client/assets/{Monitor01-Ccoz_3RV.js → Monitor01--o8UwWGt.js} +1 -1
- package/dist/client/assets/{Play-B8dkIMIB.js → Play-Cf-3VNEt.js} +1 -1
- package/dist/client/assets/{Plus-D_siv_aA.js → Plus-BPcCtngU.js} +1 -1
- package/dist/client/assets/{ReferenceLine-DBHRjJZR.js → ReferenceLine-CZu5hBwf.js} +1 -1
- package/dist/client/assets/{SearchMd-KKuAy3kv.js → SearchMd-DqEK_DOV.js} +1 -1
- package/dist/client/assets/{Sector-BpwYW3Qx.js → Sector-DdZAGjV7.js} +1 -1
- package/dist/client/assets/{ShoppingBag01-COYAkOJY.js → ShoppingBag01-PFUS9e0t.js} +1 -1
- package/dist/client/assets/{Sun-s_f7cajm.js → Sun-eU5CLU87.js} +1 -1
- package/dist/client/assets/{SwitchHorizontal01-ZjaXGph0.js → SwitchHorizontal01-BGjFR9KE.js} +1 -1
- package/dist/client/assets/{Tool01-Bsd9MAXv.js → Tool01-Ug2p294_.js} +1 -1
- package/dist/client/assets/{Trash01-CqbCnp4Y.js → Trash01-Xpxk5zpI.js} +1 -1
- package/dist/client/assets/{Upload01-BuL02EP8.js → Upload01-D14Q1k_-.js} +1 -1
- package/dist/client/assets/{User01-DOqRt8wn.js → User01-tGRdCp2F.js} +1 -1
- package/dist/client/assets/{UserSquare-CEX9DbWl.js → UserSquare-C_0nfX2V.js} +1 -1
- package/dist/client/assets/{Users01-n5qz8jdG.js → Users01-DxA_yIKK.js} +1 -1
- package/dist/client/assets/{XClose-BQ9Dlu1I.js → XClose-CRuXcWlf.js} +1 -1
- package/dist/client/assets/{ZoomOut-CYcrWaFo.js → ZoomOut-BKkBz5Lz.js} +1 -1
- package/dist/client/assets/{access-gate-CCU3Jeds.js → access-gate-DQGa34O6.js} +1 -1
- package/dist/client/assets/{add-connection-dialog-CJKZey2r.js → add-connection-dialog-CrxqWLHC.js} +1 -1
- package/dist/client/assets/{agent-analytics-BpgXx7qA.js → agent-analytics-BsXr7E0h.js} +1 -1
- package/dist/client/assets/agent-app-CScNEVjT.js +1 -0
- package/dist/client/assets/{agent-assets-BsicbZIc.js → agent-assets-Nmgl0Bht.js} +1 -1
- package/dist/client/assets/{agent-automation-BSqPTL3r.js → agent-automation-KIw24kwd.js} +1 -1
- package/dist/client/assets/{agent-automations-CORWjDg5.js → agent-automations-DzZ1KR2l.js} +1 -1
- package/dist/client/assets/{agent-connect-sources-nNFgzgd5.js → agent-connect-sources-CS1Fawlh.js} +1 -1
- package/dist/client/assets/agent-deck-DnVf6eXY.js +1 -0
- package/dist/client/assets/{agent-e2e-Q2mMYbFI.js → agent-e2e-jRzRvCKY.js} +1 -1
- package/dist/client/assets/{agent-experiments-GpUhBLmP.js → agent-experiments-B-k5fGOU.js} +1 -1
- package/dist/client/assets/agent-file-alt93QCe.js +1 -0
- package/dist/client/assets/{agent-hosting-B2Nl1zb-.js → agent-hosting-BPzlodMl.js} +1 -1
- package/dist/client/assets/{agent-icon-DMH8Ftve.js → agent-icon-DeF-Pwnu.js} +1 -1
- package/dist/client/assets/agent-library-e6Q9kL87.js +1 -0
- package/dist/client/assets/agent-library-file-DuAVI14c.js +1 -0
- package/dist/client/assets/{agent-monitor-CvRpbef5.js → agent-monitor-CIHPsQTo.js} +1 -1
- package/dist/client/assets/{agent-overview-CIwIxcfm.js → agent-overview-yYINKyA5.js} +1 -1
- package/dist/client/assets/{agent-releases-BX6W8KKx.js → agent-releases-DsfoHksu.js} +1 -1
- package/dist/client/assets/agent-settings-CsjZAmMJ.js +1 -0
- package/dist/client/assets/agent-site-editor-code-CTL6nplL.js +2 -0
- package/dist/client/assets/agent-site-editor-content-DyDxJPiY.js +1 -0
- package/dist/client/assets/agent-site-editor-preview-sckNqSpj.js +1 -0
- package/dist/client/assets/{agent-site-editor-0D-T7ieN.js → agent-site-editor-ucf0POve.js} +1 -1
- package/dist/client/assets/agent-view-CSLmaEfT.js +1 -0
- package/dist/client/assets/{agent-view-guard-DG6ZTgu0.js → agent-view-guard-CalJ4-cy.js} +1 -1
- package/dist/client/assets/{agents-list-DJAFMczy.js → agents-list-DGfxOrSx.js} +1 -1
- package/dist/client/assets/{ai-providers-CkTtAKoL.js → ai-providers-BNG3Pq5o.js} +1 -1
- package/dist/client/assets/{alert-BpKmtk7d.js → alert-Doqmk56v.js} +1 -1
- package/dist/client/assets/{alert-dialog-CgRaXWeG.js → alert-dialog-DlwY2mBI.js} +1 -1
- package/dist/client/assets/{analytics-sections-DmbiPFV0.js → analytics-sections-Dd9YiSBR.js} +1 -1
- package/dist/client/assets/{api-keys-B8qmKYTS.js → api-keys-1ccIE6pI.js} +1 -1
- package/dist/client/assets/api-keys-B0NOOdkt.js +1 -0
- package/dist/client/assets/{app-editor-BQE1NaFI.js → app-editor-BIue3kOR.js} +1 -1
- package/dist/client/assets/{asset-utils-CW4a0Tss.js → asset-utils-2OOO4Yxi.js} +1 -1
- package/dist/client/assets/{auth-Bjnc521y.js → auth-BdGh-8AS.js} +1 -1
- package/dist/client/assets/{auth-catchall-CJDXycwe.js → auth-catchall-eV8hRYix.js} +1 -1
- package/dist/client/assets/{auth-entry-DKyMW2UQ.js → auth-entry-CWOOzYKd.js} +1 -1
- package/dist/client/assets/{auth-split-layout-BJfKUnO6.js → auth-split-layout-DU8QZJ8d.js} +1 -1
- package/dist/client/assets/{authenticate-and-persist-oauth-DK-E6e3Z.js → authenticate-and-persist-oauth-nsYJn_2g.js} +1 -1
- package/dist/client/assets/{automation-list-row-DybT-MIG.js → automation-list-row-19GG3R6A.js} +1 -1
- package/dist/client/assets/{automation-runs-DvbgOsZD.js → automation-runs-dSOAvyQz.js} +1 -1
- package/dist/client/assets/{automations-DEtpbM4Z.js → automations-DNcjd_bB.js} +1 -1
- package/dist/client/assets/{autosend-D1RPfsoi.js → autosend-BtiCWD94.js} +1 -1
- package/dist/client/assets/{avatar-B2nFfSHv.js → avatar-DQNWmybT.js} +1 -1
- package/dist/client/assets/{badge-CRNAVwfV.js → badge-MCqrr8fM.js} +1 -1
- package/dist/client/assets/{block-document-9nzhTDhY.js → block-document-DQPZERUD.js} +1 -1
- package/dist/client/assets/{blocks-preview-workspace-context-BGEsHkZW.js → blocks-preview-workspace-context-DVjcSoNC.js} +1 -1
- package/dist/client/assets/{blocks-tab-states-7xd0L-RH.js → blocks-tab-states-DzpOdO2C.js} +3 -3
- package/dist/client/assets/{blog-schema-CPbtg-YY.js → blog-schema-aRJCR6HM.js} +1 -1
- package/dist/client/assets/{board-analytics-DfcXMGIx.js → board-analytics-BI7gAn9b.js} +1 -1
- package/dist/client/assets/{buckets-CmybaOoN.js → buckets-VKui74jg.js} +1 -1
- package/dist/client/assets/{build-improve-prompt-doc-C4jIZJDS.js → build-improve-prompt-doc-B5xD6YpI.js} +1 -1
- package/dist/client/assets/{calendar-CBcRt8Oe.js → calendar-NDXBts7_.js} +1 -1
- package/dist/client/assets/{capability-load-error-CKIgKs8S.js → capability-load-error-BuYxZf-L.js} +1 -1
- package/dist/client/assets/{category-editor-WcaRs-tk.js → category-editor-DaVXWcjz.js} +1 -1
- package/dist/client/assets/{chart-k_AUhfu2.js → chart-BQCQoKhk.js} +1 -1
- package/dist/client/assets/{chat-context-70xHoaxp.js → chat-context-CGgDKLoI.js} +1 -1
- package/dist/client/assets/{chat-draft-Nb1SIeYI.js → chat-draft-BLQR50du.js} +1 -1
- package/dist/client/assets/{checkbox-CwspTWv-.js → checkbox-Dkp4p5XQ.js} +1 -1
- package/dist/client/assets/{choose-editor-B_p_lpqj.js → choose-editor-Dl5YQ9PQ.js} +1 -1
- package/dist/client/assets/{cli-auth-success-DWqeUnva.js → cli-auth-success-yfNGYJu1.js} +1 -1
- package/dist/client/assets/{client-icons-DYkySYk1.js → client-icons-B_zKBg36.js} +1 -1
- package/dist/client/assets/cms-settings-editor-BN72z7zx.js +1 -0
- package/dist/client/assets/{collapsible-CKlYJ7JC.js → collapsible-DC7y5Los.js} +1 -1
- package/dist/client/assets/{collection-detail-FEHQdrUM.js → collection-detail-DlDT6vQ9.js} +1 -1
- package/dist/client/assets/{collection-display-button-CEiwIbk0.js → collection-display-button-CLVPueRo.js} +1 -1
- package/dist/client/assets/{collection-search-ZGgli3wR.js → collection-search-By8NjPfM.js} +1 -1
- package/dist/client/assets/{collection-table-wrapper-BJKQfvlr.js → collection-table-wrapper-B4h8x2dc.js} +1 -1
- package/dist/client/assets/{collection-tabs-C331r2n4.js → collection-tabs-mcOoP5Dy.js} +1 -1
- package/dist/client/assets/{column-rules-CoEiTMWe.js → column-rules-CsMTnhOl.js} +1 -1
- package/dist/client/assets/{combobox-D7TXxp7o.js → combobox-ub2_k_zt.js} +1 -1
- package/dist/client/assets/{coming-soon-page-CUty8r32.js → coming-soon-page-BYV_n6px.js} +1 -1
- package/dist/client/assets/{command-CAYMLhJL.js → command-D4hDkkTy.js} +1 -1
- package/dist/client/assets/{companion-mcps-section-BHQ5YIJi.js → companion-mcps-section-BSAJrsSk.js} +1 -1
- package/dist/client/assets/{config-B5hUFPIX.js → config-YgZ-3rie.js} +1 -1
- package/dist/client/assets/{connect-Cj4-EZJC.js → connect-Ye3vTIux.js} +1 -1
- package/dist/client/assets/{connect-layout-CmN5RxRi.js → connect-layout-B_22_91k.js} +1 -1
- package/dist/client/assets/{connection-CEjWhO8M.js → connection-L0IOnxQL.js} +1 -1
- package/dist/client/assets/{connection-card-Qtm3n_hS.js → connection-card-VTqJv3VR.js} +1 -1
- package/dist/client/assets/{connection-detail-Du-3dW0g.js → connection-detail-Cq27HXRr.js} +1 -1
- package/dist/client/assets/{connection-form-helpers-C8PcIQLm.js → connection-form-helpers-CGHpR5fJ.js} +1 -1
- package/dist/client/assets/{connections-CrNA73Wo.js → connections-7gS929_D.js} +1 -1
- package/dist/client/assets/{content-tab-CRvcTJJ2.js → content-tab-aADEXlYN.js} +3 -3
- package/dist/client/assets/{context-BqWdy054.js → context-D0MYn7m7.js} +1 -1
- package/dist/client/assets/{context-menu-CdwmTDFy.js → context-menu-o9g6FS55.js} +1 -1
- package/dist/client/assets/{context-shell-CwudT8OH.js → context-shell-CGEiLl4q.js} +3 -3
- package/dist/client/assets/{core.esm-uZtRM3l4.js → core.esm-BjDph18k.js} +1 -1
- package/dist/client/assets/{create-organization-dialog-CJin8Jxw.js → create-organization-dialog-DGSfBHq9.js} +1 -1
- package/dist/client/assets/{daily-pulse-DTkBeVsw.js → daily-pulse-B8CfUsCm.js} +1 -1
- package/dist/client/assets/{discover-DGpiIGQv.js → discover-8XW9Qw09.js} +1 -1
- package/dist/client/assets/{domain-settings-BmE4V_Yd.js → domain-settings-D0GFJxX4.js} +1 -1
- package/dist/client/assets/{drawer-CkgkUBCk.js → drawer-DlCF45Q0.js} +1 -1
- package/dist/client/assets/{editor-B2CFLfaQ.js → editor-BdcTVQDa.js} +1 -1
- package/dist/client/assets/{editor-classes-DcYQ4Aap.js → editor-classes-DZr3o3GG.js} +1 -1
- package/dist/client/assets/{empty-state-BZa0U-xG.js → empty-state-CGdhhxwn.js} +1 -1
- package/dist/client/assets/{empty-state-DAdNQg6Y.js → empty-state-gAZRZ0i8.js} +1 -1
- package/dist/client/assets/{extract-connection-data-BpdUae_j.js → extract-connection-data-DXn9w9lL.js} +1 -1
- package/dist/client/assets/{feature-gate-DKD0xNwQ.js → feature-gate-Bri_WNYh.js} +1 -1
- package/dist/client/assets/{feature-paywall-BqNVafLn.js → feature-paywall-oJbClSRc.js} +1 -1
- package/dist/client/assets/{file-explorer-BrcXVEUy.js → file-explorer-DU2mc2Lb.js} +1 -1
- package/dist/client/assets/{file-preview-pejw4DEs.js → file-preview-D_biMFJs.js} +1 -1
- package/dist/client/assets/{file-share-button-AFuoJHS8.js → file-share-button-Ciq5jDCO.js} +1 -1
- package/dist/client/assets/{file-type-icon-2Asg9IKB.js → file-type-icon-YdZxxv_V.js} +1 -1
- package/dist/client/assets/flat-project-B6LNuW-w.js +1 -0
- package/dist/client/assets/{folder-icon-DqT7qo5j.js → folder-icon-CM4478FY.js} +1 -1
- package/dist/client/assets/{form-DidHa5sD.js → form-PY0dh9eA.js} +1 -1
- package/dist/client/assets/{general-BF4C2ZJb.js → general-BBEU5SQb.js} +1 -1
- package/dist/client/assets/{home-fSRcvGJQ.js → home-CRzzoJc4.js} +1 -1
- package/dist/client/assets/{hosted-publish-feedback-DbuE45Er.js → hosted-publish-feedback-B8yni-1P.js} +1 -1
- package/dist/client/assets/{icon-button-iwZ3O0_B.js → icon-button-bWdE1kh9.js} +1 -1
- package/dist/client/assets/{index-DL_AHT72.js → index-2uTSdbBq.js} +1 -1
- package/dist/client/assets/{index-lwornGU3.js → index-B95goRjI.js} +1 -1
- package/dist/client/assets/{index-BdqfOdIE.js → index-BRQYvW_2.js} +1 -1
- package/dist/client/assets/{index-DhA7J1aJ.js → index-BiYLgE9h.js} +1 -1
- package/dist/client/assets/{index-CUOlm63w.js → index-C-FWiUeO.js} +3 -3
- package/dist/client/assets/{index-B2vL4Txo.js → index-CHynF4t3.js} +1 -1
- package/dist/client/assets/{index-D-4AgGmD.js → index-CJni2i7d.js} +1 -1
- package/dist/client/assets/{index-DVqdGkOX.js → index-CV3tbWK4.js} +1 -1
- package/dist/client/assets/{index-D69M9S-D.js → index-CoRXAeTB.js} +1 -1
- package/dist/client/assets/{index-Cex7aoHx.js → index-D43cboe_.js} +1 -1
- package/dist/client/assets/{index-CzrtR5Z7.js → index-DIHkisxi.js} +1 -1
- package/dist/client/assets/{index-Cmhl3zNb.js → index-DjAPw3FZ.js} +2 -2
- package/dist/client/assets/{index-DNlGRld6.js → index-bCTed2tb.js} +1 -1
- package/dist/client/assets/{index-D2R52OCR.js → index-d6hp7-E7.js} +1 -1
- package/dist/client/assets/{index-BpuRA4Yb.js → index-fwWRoUIR.js} +1 -1
- package/dist/client/assets/{index-redirect-CZXJxQAy.js → index-redirect-CDsFqeNY.js} +1 -1
- package/dist/client/assets/{index-BjUY_TPp.js → index-vepJw596.js} +1 -1
- package/dist/client/assets/{infiniteQueryObserver-978TY1hh.js → infiniteQueryObserver-4ZDstsFa.js} +1 -1
- package/dist/client/assets/{infra-billing-C59D5YaM.js → infra-billing-C2Fx7aIm.js} +1 -1
- package/dist/client/assets/{input-CbMPZsxE.js → input-CMWKaQuM.js} +1 -1
- package/dist/client/assets/{input-DVPmZILt.js → input-DiIRBTgb.js} +3 -3
- package/dist/client/assets/{integration-icon-CktagpLu.js → integration-icon-7gJWUFS2.js} +1 -1
- package/dist/client/assets/{jira-icon-eYd_xfOx.js → jira-icon-m-27rEgi.js} +1 -1
- package/dist/client/assets/{label-COA0amPU.js → label-D4JBPN7q.js} +1 -1
- package/dist/client/assets/{layout-C-tE3imG.js → layout-D-WO_5nK.js} +1 -1
- package/dist/client/assets/{legacy-agents-deep-CPmss93q.js → legacy-agents-deep-Byg7XYZi.js} +1 -1
- package/dist/client/assets/{legacy-main-redirect-B8hjRkjB.js → legacy-main-redirect-C0KkBzuS.js} +1 -1
- package/dist/client/assets/library-Do1cxIgP.js +1 -0
- package/dist/client/assets/{library-tab-CHu062C1.js → library-tab-nnHKU6n2.js} +1 -1
- package/dist/client/assets/{login-BN5lalgG.js → login-DsUB3uQj.js} +1 -1
- package/dist/client/assets/{markdown-DntfPEgK.js → markdown-Bj3WyP0d.js} +1 -1
- package/dist/client/assets/{mcp-app-renderer-CFqAYLtv.js → mcp-app-renderer-cIFgImrX.js} +1 -1
- package/dist/client/assets/{mcp-oauth-DqjrYGbv.js → mcp-oauth-DXt2H3qs.js} +1 -1
- package/dist/client/assets/{mcp-oauth-jIbhs8wE.js → mcp-oauth-ubL7A6O8.js} +1 -1
- package/dist/client/assets/{members-CikLEMEO.js → members-CvgFB3s-.js} +1 -1
- package/dist/client/assets/{memory-CTulcnPs.js → memory-BF1uVIim.js} +1 -1
- package/dist/client/assets/{mini-report-page-C4z6zUee.js → mini-report-page-y5KfS4tn.js} +1 -1
- package/dist/client/assets/{mock-board-C-bx3LOx.js → mock-board-BKG-LWFe.js} +1 -1
- package/dist/client/assets/{monaco-editor-94ag9h78.js → monaco-editor-CKrlIC9T.js} +1 -1
- package/dist/client/assets/monitoring-BPhxBDd5.js +1 -0
- package/dist/client/assets/{monitoring-stats-row-BiBXmqEX.js → monitoring-stats-row-HV07Y8PZ.js} +1 -1
- package/dist/client/assets/{multi-select-CknX6tqH.js → multi-select-DD-AQA0o.js} +1 -1
- package/dist/client/assets/{mustache-CHjvX4mG.js → mustache-DEGJahrS.js} +1 -1
- package/dist/client/assets/{new-project-dialog-Y_XjAxS_.js → new-project-dialog-DRh9zuKa.js} +1 -1
- package/dist/client/assets/{oauth-callback-CuyXteK1.js → oauth-callback-DZJS_AT0.js} +1 -1
- package/dist/client/assets/{oauth-callback-ai-provider-mmuJSvU9.js → oauth-callback-ai-provider-BJubcWsa.js} +1 -1
- package/dist/client/assets/{onboarding-rJV8oAVf.js → onboarding-Cd27VqU6.js} +1 -1
- package/dist/client/assets/{openai-conversation-DMiHuV_M.js → openai-conversation-UxlPvOfF.js} +1 -1
- package/dist/client/assets/{optimistic-project-sidebar-views-CGSVQMMQ.js → optimistic-project-sidebar-views-Dv80C_rk.js} +1 -1
- package/dist/client/assets/{order-monitor-day-BYmFkC3g.js → order-monitor-day-EUZZaMp3.js} +1 -1
- package/dist/client/assets/{organization-choice-uNKN81tq.js → organization-choice-BGM_rbWT.js} +1 -1
- package/dist/client/assets/{orgs-DsslXidX.js → orgs-BV_vEF7j.js} +1 -1
- package/dist/client/assets/{page-seo-form-ysYceart.js → page-seo-form-BH-BJ6qw.js} +1 -1
- package/dist/client/assets/{pair-CCzeqHVB.js → pair-DC812Nih.js} +1 -1
- package/dist/client/assets/plan-05_HVNuz.js +1 -0
- package/dist/client/assets/{plan-ladder-DYIZDWtc.js → plan-ladder-PV6fdtQs.js} +1 -1
- package/dist/client/assets/{popover-YaXt6bOC.js → popover-fq0tjxPf.js} +1 -1
- package/dist/client/assets/{post-calendar-BT_Rw0Q6.js → post-calendar-BRi-XhNu.js} +1 -1
- package/dist/client/assets/{post-editor-COleSFOD.js → post-editor-HjQ5CpOo.js} +1 -1
- package/dist/client/assets/{preview-content-C1Rk597M.js → preview-content-BIaRb_kp.js} +1 -1
- package/dist/client/assets/{preview-dialog-BTsQwEhu.js → preview-dialog-DRTfEqCp.js} +1 -1
- package/dist/client/assets/{preview-panel-HJZsRhmr.js → preview-panel-Cic9CX2M.js} +1 -1
- package/dist/client/assets/{preview-tab-DVJzXKEK.js → preview-tab-C83Vx0Mi.js} +3 -3
- package/dist/client/assets/{product-picker-dialog-B0S08IE6.js → product-picker-dialog-Bals-alJ.js} +1 -1
- package/dist/client/assets/{profile-BAcwiajI.js → profile-D5xJAT34.js} +1 -1
- package/dist/client/assets/{project-app-view-e6WdBuWR.js → project-app-view-Cj07pABw.js} +1 -1
- package/dist/client/assets/{project-apps-bT8vigK2.js → project-apps-D71RwGSP.js} +1 -1
- package/dist/client/assets/{project-feed-qY5aN-GD.js → project-feed-1ErfglDo.js} +1 -1
- package/dist/client/assets/{project-icon-CIzqFWaQ.js → project-icon-CZlCW1ie.js} +1 -1
- package/dist/client/assets/project-reports-D49xSOrs.js +1 -0
- package/dist/client/assets/project-tasks-WMe77gba.js +1 -0
- package/dist/client/assets/{projects-empty-state-Bw7Hl-T4.js → projects-empty-state-ComKFNOr.js} +1 -1
- package/dist/client/assets/{projects-BsK-2g1X.js → projects-utpjVaXN.js} +1 -1
- package/dist/client/assets/{prompts-BN3p2ELV.js → prompts-D3kehQbi.js} +1 -1
- package/dist/client/assets/record-editor-DBsKbQap.js +1 -0
- package/dist/client/assets/{redirect-editor-CVdnjBHw.js → redirect-editor-CjT7iAl-.js} +1 -1
- package/dist/client/assets/{reports-DB2vUJ0m.js → reports-C4Lk2vHf.js} +1 -1
- package/dist/client/assets/reports-DWVNCveo.js +1 -0
- package/dist/client/assets/{reports-onboarding-DG16InmK.js → reports-onboarding-CZWTNr3A.js} +1 -1
- package/dist/client/assets/{reports-tab-CiJ9MhGs.js → reports-tab-DSPAWkBb.js} +2 -2
- package/dist/client/assets/{repositories-DVlGH0wi.js → repositories-8h94CkIp.js} +1 -1
- package/dist/client/assets/repositories-BOZH7UzC.js +1 -0
- package/dist/client/assets/{repository-binding-X3TRktCN.js → repository-binding-Dd_B1wfM.js} +1 -1
- package/dist/client/assets/{repository-import-picker-DVf3Vnm6.js → repository-import-picker-BrYPIHbh.js} +1 -1
- package/dist/client/assets/{repository-picker-B8x2K0Wa.js → repository-picker-1MzRX-H7.js} +1 -1
- package/dist/client/assets/{require-capability-sXOC3J02.js → require-capability-yDcZ2JQa.js} +1 -1
- package/dist/client/assets/{required-auth-layout-Dxnpn4YU.js → required-auth-layout-BxVO9mgl.js} +1 -1
- package/dist/client/assets/{reset-password-CZ33ExeQ.js → reset-password-C49JkdXA.js} +1 -1
- package/dist/client/assets/{resizable-DKp6vSsG.js → resizable-D_ipbPgS.js} +1 -1
- package/dist/client/assets/{resolve-tab-icon-SxG6TPRU.js → resolve-tab-icon-Byb93xhw.js} +1 -1
- package/dist/client/assets/{review-settings-g25PFo2o.js → review-settings-C6E-Bw8y.js} +1 -1
- package/dist/client/assets/{roles-C_YmoM1c.js → roles-CAwPb5fO.js} +1 -1
- package/dist/client/assets/route-BTQLh0S6.js +1 -0
- package/dist/client/assets/{route-DKuH8vLv.js → route-BmBKnc7t.js} +1 -1
- package/dist/client/assets/{route-DeOeP4Wq.js → route-CBMvGMnA.js} +1 -1
- package/dist/client/assets/{sandbox-lifecycle-context-CrtkjvLt.js → sandbox-lifecycle-context-BzWTxRjc.js} +1 -1
- package/dist/client/assets/{schema-ChwlN9B2.js → schema-CEZ3_pMV.js} +1 -1
- package/dist/client/assets/{schema-nN2fVtd3.js → schema-CTZ2buw6.js} +1 -1
- package/dist/client/assets/{scroll-area-DDy8s3Ss.js → scroll-area-C7CRSfWv.js} +1 -1
- package/dist/client/assets/{search-input-DBKGcZuw.js → search-input-D_LVZNpa.js} +1 -1
- package/dist/client/assets/{search-toggle-CLG4gmKJ.js → search-toggle-BPTT4hLg.js} +1 -1
- package/dist/client/assets/{secret-ciphertext-COE-QTj7.js → secret-ciphertext-D4M9tY0M.js} +1 -1
- package/dist/client/assets/{secret-picker-DHJiW7t8.js → secret-picker-CvHiZDPS.js} +1 -1
- package/dist/client/assets/{secrets-Br2wfWxI.js → secrets-RdCGJOsH.js} +1 -1
- package/dist/client/assets/{sections-DeEHL6VG.js → sections-CWZ2z5m1.js} +1 -1
- package/dist/client/assets/{sections-editor-A_RH8q6f.js → sections-editor-BxvR-YOF.js} +1 -1
- package/dist/client/assets/{select-BFXL8R1G.js → select-CowaxA54.js} +1 -1
- package/dist/client/assets/{select-model-BEL7Tbo9.js → select-model-9jlQrG56.js} +1 -1
- package/dist/client/assets/{seo-editor--98cMxSm.js → seo-editor-dhnPdQ71.js} +1 -1
- package/dist/client/assets/{separator-gsO2sYby.js → separator-CXpOKLhH.js} +1 -1
- package/dist/client/assets/settings-tab-cH5EHrjn.js +1 -0
- package/dist/client/assets/{sheet-CYoLylxA.js → sheet-DJxxN2qW.js} +1 -1
- package/dist/client/assets/{shell-layout-CtdsDlSz.js → shell-layout-CCXDhne-.js} +1 -1
- package/dist/client/assets/site-editor-Dgv3Mgur.js +1 -0
- package/dist/client/assets/{site-editor-toast-g-4xfmJ4.js → site-editor-toast-yWBrscDo.js} +1 -1
- package/dist/client/assets/{skills-BRiGDde6.js → skills-BlaOj1S-.js} +1 -1
- package/dist/client/assets/{slider-CpXtUVDi.js → slider-BNL65434.js} +1 -1
- package/dist/client/assets/{sortable.esm-CwAjqrb2.js → sortable.esm-CffOom9k.js} +1 -1
- package/dist/client/assets/{sso-D0IDI51o.js → sso-tXxuMVkw.js} +1 -1
- package/dist/client/assets/{suggestion-Bv3b6MxU.js → suggestion-CuYIU5Nv.js} +1 -1
- package/dist/client/assets/{switch-CvZlxlV0.js → switch-jFgl7iT_.js} +1 -1
- package/dist/client/assets/{symbol-BmpW8_Es.js → symbol-CLrIFhMo.js} +1 -1
- package/dist/client/assets/{synced-repos-_e-rYrNS.js → synced-repos-CpEKcy1N.js} +1 -1
- package/dist/client/assets/{tab-icon-glyph-CHxD5oom.js → tab-icon-glyph-hHd2Az-Y.js} +1 -1
- package/dist/client/assets/{table-B26a0ePo.js → table-piPFXrR-.js} +1 -1
- package/dist/client/assets/{tabs-BEPPtBqO.js → tabs-D3aHw45h.js} +1 -1
- package/dist/client/assets/{task-assignee-avatar-BUQ0pMCX.js → task-assignee-avatar-BhSmfeHE.js} +1 -1
- package/dist/client/assets/{task-board-C1s59vKR.js → task-board-jGxaINzs.js} +1 -1
- package/dist/client/assets/{task-route-BzBoe3sC.js → task-route-C1NRExZ4.js} +1 -1
- package/dist/client/assets/{task-status-CErsPlHV.js → task-status-Dgc_qXrK.js} +1 -1
- package/dist/client/assets/taskboard-analytics-Cc7xLiYJ.js +1 -0
- package/dist/client/assets/{tasks-tr_d8SW4.js → tasks-74e9M9v_.js} +1 -1
- package/dist/client/assets/tasks-q5I9pn3S.js +1 -0
- package/dist/client/assets/{textarea-CMJRBl6x.js → textarea-g4W4EEJV.js} +1 -1
- package/dist/client/assets/{thread-analytics-CeNaBD4e.js → thread-analytics-BeecXXf9.js} +1 -1
- package/dist/client/assets/{thread-intent-CCu0BEYJ.js → thread-intent-U667QxJn.js} +1 -1
- package/dist/client/assets/{thread-route-C2rii--a.js → thread-route-BXNLST2v.js} +1 -1
- package/dist/client/assets/{thread-route--bdvrJML.js → thread-route-_azg3sPx.js} +1 -1
- package/dist/client/assets/{thread-sheet-body-BVs76jnQ.js → thread-sheet-body-BLZwnPMr.js} +1 -1
- package/dist/client/assets/{time-range-picker-CMbmxxqv.js → time-range-picker-BpCt7APB.js} +1 -1
- package/dist/client/assets/{toggle-group-a7j08s-f.js → toggle-group-CUDFWI8h.js} +1 -1
- package/dist/client/assets/{tool-namespace-CRTO9xOA.js → tool-namespace-WBa95YMk.js} +1 -1
- package/dist/client/assets/{toolbar-icon-button-BsOv6rvJ.js → toolbar-icon-button-CTdoQK-j.js} +1 -1
- package/dist/client/assets/{tooltip-kZk2wAMk.js → tooltip-Cn8xKOs3.js} +1 -1
- package/dist/client/assets/{tooltipContext-DIsnCXpc.js → tooltipContext-DPfTt5uJ.js} +1 -1
- package/dist/client/assets/{track-C_ZVQYs-.js → track-CKD_o69Z.js} +1 -1
- package/dist/client/assets/{types-CD9jRVDk.js → types-C_3VJftQ.js} +1 -1
- package/dist/client/assets/{url-slug-CXYaPIEX.js → url-slug-CDSsr_-I.js} +1 -1
- package/dist/client/assets/{usage-stats-B3aY2c0l.js → usage-stats-Cgvbigdd.js} +1 -1
- package/dist/client/assets/{use-ai-providers-D84PtMSN.js → use-ai-providers-CcMoAKt2.js} +1 -1
- package/dist/client/assets/{use-automations-CAJcdhxV.js → use-automations-CyRwkMiw.js} +1 -1
- package/dist/client/assets/{use-autosave-Cve7LmNN.js → use-autosave-o1UGCuaC.js} +1 -1
- package/dist/client/assets/{use-chat-layout-state-4I8rtQwF.js → use-chat-layout-state-CjcoHJNS.js} +1 -1
- package/dist/client/assets/{use-clock-tick-CgUj6u2i.js → use-clock-tick-Ba-YyXfj.js} +1 -1
- package/dist/client/assets/{use-connect-companion-CCaa-yxn.js → use-connect-companion-Qyek3iaQ.js} +1 -1
- package/dist/client/assets/{use-connection-CikB9KcW.js → use-connection-K7ZRp1go.js} +1 -1
- package/dist/client/assets/{use-content-sync-DX7UAl_W.js → use-content-sync-C7GSdrCv.js} +1 -1
- package/dist/client/assets/{use-copy-DzgBkNLT.js → use-copy-B2CiMRws.js} +1 -1
- package/dist/client/assets/{use-create-virtual-mcp-BCKaQYpl.js → use-create-virtual-mcp-Be-PSH8v.js} +1 -1
- package/dist/client/assets/{use-date-fns-locale-Dy4Oeqx-.js → use-date-fns-locale-BtERR385.js} +1 -1
- package/dist/client/assets/{use-debounced-autosave-DR5Ahrkc.js → use-debounced-autosave-C7gpczsa.js} +1 -1
- package/dist/client/assets/{use-debounced-value-C7Ih1llI.js → use-debounced-value-B8h9GHgw.js} +1 -1
- package/dist/client/assets/{use-deco-credits-ByP4Of99.js → use-deco-credits-BLtT_99v.js} +1 -1
- package/dist/client/assets/{use-decopilot-events-CBhHAjRY.js → use-decopilot-events-tAuPN_q4.js} +1 -1
- package/dist/client/assets/{use-delete-connection-CjpOj4k7.js → use-delete-connection-DdA2eUwf.js} +1 -1
- package/dist/client/assets/{use-deployment-admin-CqgXaT_z.js → use-deployment-admin-B-AsTGAj.js} +1 -1
- package/dist/client/assets/{use-ensure-project-folder-BzFrwFoN.js → use-ensure-project-folder-1zJV-ebL.js} +1 -1
- package/dist/client/assets/{use-fast-preview-draft-url-R7ofHb_D.js → use-fast-preview-draft-url-CudEspao.js} +1 -1
- package/dist/client/assets/{use-file-configs-DhEp4msd.js → use-file-configs-C_QUQ8GN.js} +1 -1
- package/dist/client/assets/{use-inbox-feed-CZjjQk7K.js → use-inbox-feed-20OcgQCQ.js} +1 -1
- package/dist/client/assets/{use-infinite-scroll-DQl4a0Bs.js → use-infinite-scroll-BP0LI3QU.js} +1 -1
- package/dist/client/assets/{use-join-requests-BIuh8dt2.js → use-join-requests-CKw0dC-f.js} +1 -1
- package/dist/client/assets/{use-main-panel-tabs-BS-Dp3CX.js → use-main-panel-tabs-BLDJnI0j.js} +1 -1
- package/dist/client/assets/{use-main-schema-v8-DmthzehD.js → use-main-schema-v8-CyJzgrXz.js} +1 -1
- package/dist/client/assets/{use-mcp-auth-status-BQFxszTc.js → use-mcp-auth-status-Dy1xU38X.js} +1 -1
- package/dist/client/assets/{use-mcp-client-CedU4dWV.js → use-mcp-client-CS_M4RkG.js} +1 -1
- package/dist/client/assets/{use-mcp-prompts-CdDNTlaE.js → use-mcp-prompts-CPyQYK7C.js} +1 -1
- package/dist/client/assets/{use-mcp-tools-CcHLNRd3.js → use-mcp-tools-D9Ee_oS_.js} +1 -1
- package/dist/client/assets/{use-members-BI_Z9G2i.js → use-members-BBgUoW6G.js} +1 -1
- package/dist/client/assets/{use-mobile-CY0Djv_M.js → use-mobile-BKCNcL5w.js} +1 -1
- package/dist/client/assets/{use-navigate-to-agent-cdHnGUXB.js → use-navigate-to-agent-BRsDJt0-.js} +1 -1
- package/dist/client/assets/{use-open-billing-url-C9VcD5z_.js → use-open-billing-url-BT_PQxjy.js} +1 -1
- package/dist/client/assets/{use-org-auth-client-Cy7UT2_Z.js → use-org-auth-client-DboLlm0U.js} +1 -1
- package/dist/client/assets/{use-org-fs-BzlMLYdA.js → use-org-fs-CqBTb_bN.js} +1 -1
- package/dist/client/assets/{use-org-repo-syncs-Bbiq7vxl.js → use-org-repo-syncs-CrHKManu.js} +1 -1
- package/dist/client/assets/{use-org-sso-Dz08CIcx.js → use-org-sso-CPfWfgUD.js} +1 -1
- package/dist/client/assets/{use-organization-roles-D5QmscBE.js → use-organization-roles-GM12gN8m.js} +1 -1
- package/dist/client/assets/{use-organization-settings-BhbyABaR.js → use-organization-settings-KcG74cJs.js} +1 -1
- package/dist/client/assets/{use-panel-navigate-Cs4na-V_.js → use-panel-navigate-BnKH_DED.js} +1 -1
- package/dist/client/assets/{use-project-native-view-presence-F2BIVVKN.js → use-project-native-view-presence-6zlafMD0.js} +1 -1
- package/dist/client/assets/{use-project-scope-COiEpk7r.js → use-project-scope-DLt89uaH.js} +1 -1
- package/dist/client/assets/{use-recent-apps-CQPv5LK_.js → use-recent-apps-Beh0P-eJ.js} +1 -1
- package/dist/client/assets/{use-releases-CYsXvho_.js → use-releases-CLwewD1A.js} +1 -1
- package/dist/client/assets/{use-reports-diagnostic-D9AFmVnx.js → use-reports-diagnostic-BWqDIpUl.js} +1 -1
- package/dist/client/assets/{use-secrets-C4QpZA2A.js → use-secrets-BWS1Znk9.js} +1 -1
- package/dist/client/assets/{use-section-preview-base-Dp3nLlkj.js → use-section-preview-base-8d2ycoZ0.js} +1 -1
- package/dist/client/assets/{use-sidebar-collapsed-BdewWuhH.js → use-sidebar-collapsed-DQVR9tzU.js} +1 -1
- package/dist/client/assets/{use-tags-B1Z7-48J.js → use-tags-DLPMXTJ_.js} +1 -1
- package/dist/client/assets/{use-task-board-analytics-G6UBxSrP.js → use-task-board-analytics-CtHDTWzg.js} +1 -1
- package/dist/client/assets/{use-task-board-events-CQVfQw81.js → use-task-board-events-3Dkuwhd-.js} +1 -1
- package/dist/client/assets/{use-task-board-item-prs-CTNtD0OU.js → use-task-board-item-prs-C-xbnweQ.js} +1 -1
- package/dist/client/assets/{use-task-metadata-2qdE9S5L.js → use-task-metadata-rKLv0cZj.js} +1 -1
- package/dist/client/assets/{use-thread-analytics-C0QELsJp.js → use-thread-analytics-CoAOmWMe.js} +1 -1
- package/dist/client/assets/{use-thread-outputs-BRiZLmB3.js → use-thread-outputs-BvzhiS4m.js} +1 -1
- package/dist/client/assets/useInfiniteQuery-DwZtx0VJ.js +1 -0
- package/dist/client/assets/{useQueries-BaTjPT3P.js → useQueries-7fETpNi-.js} +1 -1
- package/dist/client/assets/useSuspenseInfiniteQuery-C9cYPm72.js +1 -0
- package/dist/client/assets/{users-hzXXTZtN.js → users-WRigaqVb.js} +1 -1
- package/dist/client/assets/{utils-D_iIHZov.js → utils-Bv54OqIc.js} +1 -1
- package/dist/client/assets/{variant-calendar-BsY2CF48.js → variant-calendar-3vABqSwV.js} +1 -1
- package/dist/client/assets/{variant-draft-pointer-Di3PGFGj.js → variant-draft-pointer-BkoaUnwP.js} +1 -1
- package/dist/client/assets/{view-mode-toggle-dGCnwIOo.js → view-mode-toggle-B_PFkRZ8.js} +1 -1
- package/dist/client/assets/{virtual-mcp-Cm_JxjLS.js → virtual-mcp-I0mUiSD3.js} +1 -1
- package/dist/client/assets/{watch-sse-pool-DnJO6AZk.js → watch-sse-pool-GA-vauaD.js} +1 -1
- package/dist/client/index.html +1 -1
- package/dist/server/server.js +2 -2
- package/package.json +1 -1
- package/dist/client/assets/agent-app-DDRmQd75.js +0 -1
- package/dist/client/assets/agent-deck-sUBVFl57.js +0 -1
- package/dist/client/assets/agent-file-Ay2rdSNY.js +0 -1
- package/dist/client/assets/agent-library-DQTTsoBq.js +0 -1
- package/dist/client/assets/agent-library-file-CoPN3Dl5.js +0 -1
- package/dist/client/assets/agent-settings-Da0_9JGD.js +0 -1
- package/dist/client/assets/agent-site-editor-code-B98Bnadv.js +0 -2
- package/dist/client/assets/agent-site-editor-content-87ZLW9rs.js +0 -1
- package/dist/client/assets/agent-site-editor-preview-DD0qYhLr.js +0 -1
- package/dist/client/assets/agent-view-BPSlOxjt.js +0 -1
- package/dist/client/assets/api-keys-CigsOsqY.js +0 -1
- package/dist/client/assets/cms-settings-editor-BGIEXOlq.js +0 -1
- package/dist/client/assets/flat-project-COKm-_lB.js +0 -1
- package/dist/client/assets/library-OhQHeeUu.js +0 -1
- package/dist/client/assets/monitoring-zFjmyWaK.js +0 -1
- package/dist/client/assets/plan-DirWo8wP.js +0 -1
- package/dist/client/assets/project-reports-DQGUzueG.js +0 -1
- package/dist/client/assets/project-tasks-B1VrMiAq.js +0 -1
- package/dist/client/assets/record-editor-DD50VfEv.js +0 -1
- package/dist/client/assets/reports-DCFnios-.js +0 -1
- package/dist/client/assets/repositories-CuvgQNAy.js +0 -1
- package/dist/client/assets/route-BsG_rQz2.js +0 -1
- package/dist/client/assets/settings-tab-BXdif76g.js +0 -1
- package/dist/client/assets/site-editor-BojLUeGp.js +0 -1
- package/dist/client/assets/taskboard-analytics-h_2DA62k.js +0 -1
- package/dist/client/assets/tasks-BkgOKiT9.js +0 -1
- package/dist/client/assets/useInfiniteQuery-BLA_teXl.js +0 -1
- package/dist/client/assets/useSuspenseInfiniteQuery-Cu40gYv3.js +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/login-BN5lalgG.js","assets/auth-entry-DKyMW2UQ.js","assets/backoff-CrEUbyZT.js","assets/delay-CnY5UFtP.js","assets/auth-split-layout-BJfKUnO6.js","assets/cli-auth-success-DWqeUnva.js","assets/oauth-callback-CuyXteK1.js","assets/mcp-oauth-jIbhs8wE.js","assets/auth-Bjnc521y.js","assets/layout-C-tE3imG.js","assets/required-auth-layout-Dxnpn4YU.js","assets/use-deployment-admin-CqgXaT_z.js","assets/users-hzXXTZtN.js","assets/collection-table-wrapper-BJKQfvlr.js","assets/table-B26a0ePo.js","assets/ArrowUp-CWx4kMsV.js","assets/empty-state-BZa0U-xG.js","assets/search-input-DBKGcZuw.js","assets/SearchMd-KKuAy3kv.js","assets/avatar-B2nFfSHv.js","assets/User01-DOqRt8wn.js","assets/badge-CRNAVwfV.js","assets/use-debounced-value-C7Ih1llI.js","assets/admin-fetch-BhTJlAsX.js","assets/format-time-Cq80KKvY.js","assets/differenceInSeconds-C3x8sHUj.js","assets/get-initials-D-f_fDFw.js","assets/orgs-DsslXidX.js","assets/label-COA0amPU.js","assets/select-BFXL8R1G.js","assets/index-BdQq_4o_.js","assets/index-D69M9S-D.js","assets/ChevronUp-BlFhjumO.js","assets/switch-CvZlxlV0.js","assets/textarea-CMJRBl6x.js","assets/schema-nN2fVtd3.js","assets/site-slug-DebpOoQq.js","assets/prompts-BN3p2ELV.js","assets/shell-layout-CtdsDlSz.js","assets/Building02-Dcs_HLaa.js","assets/UserSquare-CEX9DbWl.js","assets/agent-icon-DMH8Ftve.js","assets/AlertCircle-iwRSZJFi.js","assets/Tool01-Bsd9MAXv.js","assets/ArrowLeft-_QxYwR3P.js","assets/LinkBroken01-y64X2SC-.js","assets/ShoppingBag01-COYAkOJY.js","assets/ZoomOut-CYcrWaFo.js","assets/CheckCircle-X3D4eq-V.js","assets/ChevronSelectorVertical-7X_EL11G.js","assets/Copy01-CsyaL0tc.js","assets/CreditCard01-DZn9m-o1.js","assets/DotsVertical-H16dBinG.js","assets/Image01-C-r__mWH.js","assets/Globe04-B5AbE2NG.js","assets/SwitchHorizontal01-ZjaXGph0.js","assets/Key01-D8PhPz3k.js","assets/Link01-BZlTJYwG.js","assets/Monitor01-Ccoz_3RV.js","assets/Sun-s_f7cajm.js","assets/Play-B8dkIMIB.js","assets/Plus-D_siv_aA.js","assets/Trash01-CqbCnp4Y.js","assets/Upload01-BuL02EP8.js","assets/Users01-n5qz8jdG.js","assets/XClose-BQ9Dlu1I.js","assets/use-project-scope-COiEpk7r.js","assets/repository-binding-X3TRktCN.js","assets/use-mcp-client-CedU4dWV.js","assets/use-panel-navigate-Cs4na-V_.js","assets/thread-route-C2rii--a.js","assets/use-clock-tick-CgUj6u2i.js","assets/command-CAYMLhJL.js","assets/index-B2vL4Txo.js","assets/integration-icon-CktagpLu.js","assets/project-icon-CIzqFWaQ.js","assets/new-project-dialog-Y_XjAxS_.js","assets/repository-import-picker-DVf3Vnm6.js","assets/use-navigate-to-agent-cdHnGUXB.js","assets/thread-intent-CCu0BEYJ.js","assets/watch-sse-pool-DnJO6AZk.js","assets/task-board-C1s59vKR.js","assets/slugify-CEUa2lfQ.js","assets/repository-picker-B8x2K0Wa.js","assets/tooltip-kZk2wAMk.js","assets/useInfiniteQuery-BLA_teXl.js","assets/infiniteQueryObserver-978TY1hh.js","assets/collection-search-ZGgli3wR.js","assets/use-organization-settings-BhbyABaR.js","assets/autosend-D1RPfsoi.js","assets/use-org-sso-Dz08CIcx.js","assets/shell-layout-CE2Eihra.css","assets/onboarding-rJV8oAVf.js","assets/organization-choice-uNKN81tq.js","assets/reports-onboarding-DG16InmK.js","assets/site-url-en5df9c-.js","assets/create-organization-dialog-CJin8Jxw.js","assets/alert-dialog-CgRaXWeG.js","assets/form-DidHa5sD.js","assets/companion-mcps-section-BHQ5YIJi.js","assets/use-connect-companion-CCaa-yxn.js","assets/companions-core-DzyeM-yJ.js","assets/metadata-D72DunRR.js","assets/github-repo-scope-ByTYKy_L.js","assets/provision-repo-scoped-github-connection-lckxpDHD.js","assets/useQueries-BaTjPT3P.js","assets/authenticate-and-persist-oauth-DK-E6e3Z.js","assets/mcp-oauth-DqjrYGbv.js","assets/track-C_ZVQYs-.js","assets/extract-connection-data-BpdUae_j.js","assets/connection-CEjWhO8M.js","assets/url-slug-CXYaPIEX.js","assets/self-tool-result-8OxPN9Nm.js","assets/site-error-Da6iapvu.js","assets/choose-editor-B_p_lpqj.js","assets/site-editor-BojLUeGp.js","assets/chat-context-70xHoaxp.js","assets/use-decopilot-events-CBhHAjRY.js","assets/use-ai-providers-D84PtMSN.js","assets/location-BjlyegC2.js","assets/index-lwornGU3.js","assets/use-mobile-CY0Djv_M.js","assets/use-sidebar-collapsed-BdewWuhH.js","assets/use-chat-layout-state-4I8rtQwF.js","assets/toolbar-icon-button-BsOv6rvJ.js","assets/sheet-CYoLylxA.js","assets/resizable-DKp6vSsG.js","assets/index-CzrtR5Z7.js","assets/core.esm-uZtRM3l4.js","assets/sortable.esm-CwAjqrb2.js","assets/context-menu-CdwmTDFy.js","assets/project-apps-bT8vigK2.js","assets/use-project-native-view-presence-F2BIVVKN.js","assets/match-site-slug-config-D3fUJ6vX.js","assets/use-file-configs-DhEp4msd.js","assets/use-main-schema-v8-DmthzehD.js","assets/use-recent-apps-CQPv5LK_.js","assets/blocks-preview-workspace-context-BGEsHkZW.js","assets/site-editor-toast-g-4xfmJ4.js","assets/input-DVPmZILt.js","assets/usage-stats-B3aY2c0l.js","assets/tool-namespace-CRTO9xOA.js","assets/utils-CVEq3hMx.js","assets/markdown-DntfPEgK.js","assets/use-copy-DzgBkNLT.js","assets/icon-button-iwZ3O0_B.js","assets/file-type-icon-2Asg9IKB.js","assets/chat-draft-Nb1SIeYI.js","assets/tabs-BEPPtBqO.js","assets/use-deco-credits-ByP4Of99.js","assets/toggle-group-a7j08s-f.js","assets/use-open-billing-url-C9VcD5z_.js","assets/index-DVqdGkOX.js","assets/checkbox-CwspTWv-.js","assets/ai-providers-logos-DD3qZ33J.js","assets/popover-YaXt6bOC.js","assets/drawer-CkgkUBCk.js","assets/input-CbMPZsxE.js","assets/suggestion-Bv3b6MxU.js","assets/use-mcp-prompts-CdDNTlaE.js","assets/use-org-fs-BzlMLYdA.js","assets/question-004-sINsf4GQ.js","assets/use-members-BI_Z9G2i.js","assets/use-org-auth-client-Cy7UT2_Z.js","assets/feature-paywall-BqNVafLn.js","assets/plan-ladder-DYIZDWtc.js","assets/add-connection-dialog-CJKZey2r.js","assets/connection-card-Qtm3n_hS.js","assets/connection-slug-CITJ0kGN.js","assets/use-connection-CikB9KcW.js","assets/schema-ChwlN9B2.js","assets/connection-form-helpers-C8PcIQLm.js","assets/collection-tabs-C331r2n4.js","assets/use-infinite-scroll-DQl4a0Bs.js","assets/useSuspenseInfiniteQuery-Cu40gYv3.js","assets/use-task-board-events-CQVfQw81.js","assets/input-Bwd_JSM8.css","assets/sandbox-url-D3mC8qhT.js","assets/utils-D_iIHZov.js","assets/index-DNlGRld6.js","assets/pair-CCzeqHVB.js","assets/collapsible-CKlYJ7JC.js","assets/content-blocks-o63cs2vh.js","assets/mcp-app-renderer-CFqAYLtv.js","assets/types-CD9jRVDk.js","assets/omit-sandbox-map-jj4lCB2U.js","assets/use-thread-outputs-BRiZLmB3.js","assets/sandbox-git-api-CRxdlhrN.js","assets/preview-tab-DVJzXKEK.js","assets/blocks-tab-states-7xd0L-RH.js","assets/sandbox-start-errors-BK_aDCyt.js","assets/secret-ciphertext-COE-QTj7.js","assets/alert-BpKmtk7d.js","assets/scroll-area-DDy8s3Ss.js","assets/monaco-editor-94ag9h78.js","assets/editor-B2CFLfaQ.js","assets/calendar-CBcRt8Oe.js","assets/editor-classes-DcYQ4Aap.js","assets/view-mode-toggle-dGCnwIOo.js","assets/combobox-D7TXxp7o.js","assets/asset-utils-CW4a0Tss.js","assets/sandbox-lifecycle-context-CrtkjvLt.js","assets/variant-draft-pointer-Di3PGFGj.js","assets/section-preview-url-7zfngvgW.js","assets/use-fast-preview-draft-url-R7ofHb_D.js","assets/device-hint-SeLRi17j.js","assets/virtual-mcp-Cm_JxjLS.js","assets/preview-source-BsRLGWUP.js","assets/use-task-metadata-2qdE9S5L.js","assets/content-tab-CRvcTJJ2.js","assets/mustache-CHjvX4mG.js","assets/use-content-sync-DX7UAl_W.js","assets/empty-state-DAdNQg6Y.js","assets/tab-icon-glyph-CHxD5oom.js","assets/resolve-tab-icon-SxG6TPRU.js","assets/agent-site-editor-0D-T7ieN.js","assets/separator-gsO2sYby.js","assets/use-releases-CYsXvho_.js","assets/serial-task-queue-CGOeQgpr.js","assets/hosted-publish-feedback-DbuE45Er.js","assets/save-changes-debug-nBi-n9eV.js","assets/agent-site-editor-DDGTF8rc.css","assets/reports-DB2vUJ0m.js","assets/reports-Dl0n8WK0.css","assets/route-DKuH8vLv.js","assets/use-join-requests-BIuh8dt2.js","assets/use-organization-roles-D5QmscBE.js","assets/use-inbox-feed-CZjjQk7K.js","assets/task-key-BCHdFiOO.js","assets/daily-pulse-DTkBeVsw.js","assets/config-B5hUFPIX.js","assets/use-thread-analytics-C0QELsJp.js","assets/project-profile-Cc4MG3QN.js","assets/optimistic-project-sidebar-views-CGSVQMMQ.js","assets/task-route-BzBoe3sC.js","assets/thread-route--bdvrJML.js","assets/use-reports-diagnostic-D9AFmVnx.js","assets/connect-layout-CmN5RxRi.js","assets/route-DeOeP4Wq.js","assets/task-status-CErsPlHV.js","assets/use-main-panel-tabs-BS-Dp3CX.js","assets/use-mcp-tools-CcHLNRd3.js","assets/legacy-main-redirect-B8hjRkjB.js","assets/preview-dialog-BTsQwEhu.js","assets/preview-content-C1Rk597M.js","assets/file-share-button-AFuoJHS8.js","assets/file-preview-pejw4DEs.js","assets/home-fSRcvGJQ.js","assets/project-feed-qY5aN-GD.js","assets/client-icons-DYkySYk1.js","assets/chart-k_AUhfu2.js","assets/index-BdqfOdIE.js","assets/symbol-BmpW8_Es.js","assets/CategoricalChart-BWxwmOFO.js","assets/ReferenceLine-DBHRjJZR.js","assets/CartesianChart-DxoYDxJN.js","assets/BarChart-BFfaTlE7.js","assets/tooltipContext-DIsnCXpc.js","assets/ActiveShapeUtils-CAxkWTE7.js","assets/Sector-BpwYW3Qx.js","assets/ErrorBarContext-IXpluzmX.js","assets/task-assignee-avatar-BUQ0pMCX.js","assets/projects-empty-state-Bw7Hl-T4.js","assets/flat-project-COKm-_lB.js","assets/index-CUOlm63w.js","assets/use-task-board-analytics-G6UBxSrP.js","assets/column-rules-CoEiTMWe.js","assets/use-automations-CAJcdhxV.js","assets/search-toggle-CLG4gmKJ.js","assets/use-tags-B1Z7-48J.js","assets/index-D2R52OCR.js","assets/index-Cex7aoHx.js","assets/use-task-board-item-prs-CTNtD0OU.js","assets/thread-sheet-body-BVs76jnQ.js","assets/board-analytics-DfcXMGIx.js","assets/time-range-picker-CMbmxxqv.js","assets/analytics-sections-DmbiPFV0.js","assets/AreaChart-BCUK2U_v.js","assets/library-tab-CHu062C1.js","assets/use-org-repo-syncs-Bbiq7vxl.js","assets/folder-icon-DqT7qo5j.js","assets/use-ensure-project-folder-BzFrwFoN.js","assets/agent-overview-CIwIxcfm.js","assets/mini-report-page-C4z6zUee.js","assets/project-tasks-B1VrMiAq.js","assets/feature-gate-DKD0xNwQ.js","assets/mock-board-C-bx3LOx.js","assets/project-reports-DQGUzueG.js","assets/reports-tab-CiJ9MhGs.js","assets/agent-site-editor-preview-DD0qYhLr.js","assets/agent-view-guard-DG6ZTgu0.js","assets/agent-site-editor-content-87ZLW9rs.js","assets/agent-site-editor-code-B98Bnadv.js","assets/agent-automations-CORWjDg5.js","assets/automation-list-row-DybT-MIG.js","assets/agent-automation-BSqPTL3r.js","assets/select-model-BEL7Tbo9.js","assets/build-improve-prompt-doc-C4jIZJDS.js","assets/use-debounced-autosave-DR5Ahrkc.js","assets/jira-icon-eYd_xfOx.js","assets/multi-select-CknX6tqH.js","assets/automation-runs-DvbgOsZD.js","assets/agent-settings-Da0_9JGD.js","assets/settings-tab-BXdif76g.js","assets/index-BjUY_TPp.js","assets/use-date-fns-locale-Dy4Oeqx-.js","assets/use-mcp-auth-status-BQFxszTc.js","assets/sections-DeEHL6VG.js","assets/secret-picker-DHJiW7t8.js","assets/use-secrets-C4QpZA2A.js","assets/agent-library-DQTTsoBq.js","assets/context-shell-CwudT8OH.js","assets/require-capability-sXOC3J02.js","assets/access-gate-CCU3Jeds.js","assets/capability-load-error-CKIgKs8S.js","assets/agent-assets-BsicbZIc.js","assets/agent-releases-BX6W8KKx.js","assets/agent-hosting-B2Nl1zb-.js","assets/agent-e2e-Q2mMYbFI.js","assets/agent-analytics-BpgXx7qA.js","assets/taskboard-analytics-h_2DA62k.js","assets/agent-experiments-GpUhBLmP.js","assets/slider-CpXtUVDi.js","assets/index-DhA7J1aJ.js","assets/agent-monitor-CvRpbef5.js","assets/order-monitor-day-BYmFkC3g.js","assets/agent-app-DDRmQd75.js","assets/project-app-view-e6WdBuWR.js","assets/agent-view-BPSlOxjt.js","assets/agent-file-Ay2rdSNY.js","assets/agent-deck-sUBVFl57.js","assets/agent-library-file-CoPN3Dl5.js","assets/preview-panel-HJZsRhmr.js","assets/agent-connect-sources-nNFgzgd5.js","assets/legacy-agents-deep-CPmss93q.js","assets/tasks-BkgOKiT9.js","assets/thread-analytics-CeNaBD4e.js","assets/reports-DCFnios-.js","assets/library-OhQHeeUu.js","assets/plan-DirWo8wP.js","assets/coming-soon-page-CUty8r32.js","assets/monitoring-zFjmyWaK.js","assets/discover-DGpiIGQv.js","assets/index-DL_AHT72.js","assets/route-BsG_rQz2.js","assets/index-redirect-CZXJxQAy.js","assets/connections-CrNA73Wo.js","assets/collection-display-button-CEiwIbk0.js","assets/use-delete-connection-CjpOj4k7.js","assets/connection-detail-Du-3dW0g.js","assets/index-BpuRA4Yb.js","assets/use-create-virtual-mcp-BCKaQYpl.js","assets/monitoring-stats-row-BiBXmqEX.js","assets/collection-detail-FEHQdrUM.js","assets/index-D-4AgGmD.js","assets/general-BF4C2ZJb.js","assets/review-settings-g25PFo2o.js","assets/domain-settings-BmE4V_Yd.js","assets/connect-Cj4-EZJC.js","assets/api-keys-B8qmKYTS.js","assets/ai-providers-CkTtAKoL.js","assets/infra-billing-C59D5YaM.js","assets/secrets-Br2wfWxI.js","assets/api-keys-CigsOsqY.js","assets/buckets-CmybaOoN.js","assets/repositories-CuvgQNAy.js","assets/repositories-DVlGH0wi.js","assets/synced-repos-_e-rYrNS.js","assets/tasks-tr_d8SW4.js","assets/projects-BsK-2g1X.js","assets/members-CikLEMEO.js","assets/role-color-Dn2tXDDF.js","assets/roles-C_YmoM1c.js","assets/sso-D0IDI51o.js","assets/profile-BAcwiajI.js","assets/agents-list-DJAFMczy.js","assets/automations-DEtpbM4Z.js","assets/skills-BRiGDde6.js","assets/memory-CTulcnPs.js"])))=>i.map(i=>d[i]);
|
|
1
|
+
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/login-DsUB3uQj.js","assets/auth-entry-CWOOzYKd.js","assets/backoff-CrEUbyZT.js","assets/delay-CnY5UFtP.js","assets/auth-split-layout-DU8QZJ8d.js","assets/cli-auth-success-yfNGYJu1.js","assets/oauth-callback-DZJS_AT0.js","assets/mcp-oauth-ubL7A6O8.js","assets/auth-BdGh-8AS.js","assets/layout-D-WO_5nK.js","assets/required-auth-layout-BxVO9mgl.js","assets/use-deployment-admin-B-AsTGAj.js","assets/users-WRigaqVb.js","assets/collection-table-wrapper-B4h8x2dc.js","assets/table-piPFXrR-.js","assets/ArrowUp-DHpvU3H5.js","assets/empty-state-CGdhhxwn.js","assets/search-input-D_LVZNpa.js","assets/SearchMd-DqEK_DOV.js","assets/avatar-DQNWmybT.js","assets/User01-tGRdCp2F.js","assets/badge-MCqrr8fM.js","assets/use-debounced-value-B8h9GHgw.js","assets/admin-fetch-BhTJlAsX.js","assets/format-time-Cq80KKvY.js","assets/differenceInSeconds-C3x8sHUj.js","assets/get-initials-D-f_fDFw.js","assets/orgs-BV_vEF7j.js","assets/label-D4JBPN7q.js","assets/select-CowaxA54.js","assets/index-BdQq_4o_.js","assets/index-CoRXAeTB.js","assets/ChevronUp-BruZRzgU.js","assets/switch-jFgl7iT_.js","assets/textarea-g4W4EEJV.js","assets/schema-CTZ2buw6.js","assets/site-slug-DebpOoQq.js","assets/prompts-D3kehQbi.js","assets/shell-layout-CCXDhne-.js","assets/Building02-C1Q8doPE.js","assets/UserSquare-C_0nfX2V.js","assets/agent-icon-DeF-Pwnu.js","assets/AlertCircle-CcVhl96j.js","assets/Tool01-Ug2p294_.js","assets/ArrowLeft-Bph0OW09.js","assets/LinkBroken01-C8p4Wo5b.js","assets/ShoppingBag01-PFUS9e0t.js","assets/ZoomOut-BKkBz5Lz.js","assets/CheckCircle-CQsC-Pz6.js","assets/ChevronSelectorVertical-CaNDzI1v.js","assets/Copy01-XsrxN5V9.js","assets/CreditCard01-DD6f0NE9.js","assets/DotsVertical-DdEm5Yv0.js","assets/Image01-Ca0i2mzS.js","assets/Globe04-BHgzUZy8.js","assets/SwitchHorizontal01-BGjFR9KE.js","assets/Key01-Bv_pipnz.js","assets/Link01-vSc5x3Bn.js","assets/Monitor01--o8UwWGt.js","assets/Sun-eU5CLU87.js","assets/Play-Cf-3VNEt.js","assets/Plus-BPcCtngU.js","assets/Trash01-Xpxk5zpI.js","assets/Upload01-D14Q1k_-.js","assets/Users01-DxA_yIKK.js","assets/XClose-CRuXcWlf.js","assets/use-project-scope-DLt89uaH.js","assets/repository-binding-Dd_B1wfM.js","assets/use-mcp-client-CS_M4RkG.js","assets/use-panel-navigate-BnKH_DED.js","assets/thread-route-BXNLST2v.js","assets/use-clock-tick-Ba-YyXfj.js","assets/command-D4hDkkTy.js","assets/index-CHynF4t3.js","assets/integration-icon-7gJWUFS2.js","assets/project-icon-CZlCW1ie.js","assets/new-project-dialog-DRh9zuKa.js","assets/repository-import-picker-BrYPIHbh.js","assets/use-navigate-to-agent-BRsDJt0-.js","assets/thread-intent-U667QxJn.js","assets/watch-sse-pool-GA-vauaD.js","assets/task-board-jGxaINzs.js","assets/slugify-CEUa2lfQ.js","assets/repository-picker-1MzRX-H7.js","assets/tooltip-Cn8xKOs3.js","assets/useInfiniteQuery-DwZtx0VJ.js","assets/infiniteQueryObserver-4ZDstsFa.js","assets/collection-search-By8NjPfM.js","assets/use-organization-settings-KcG74cJs.js","assets/autosend-BtiCWD94.js","assets/use-org-sso-CPfWfgUD.js","assets/shell-layout-CE2Eihra.css","assets/onboarding-Cd27VqU6.js","assets/organization-choice-BGM_rbWT.js","assets/reports-onboarding-CZWTNr3A.js","assets/site-url-en5df9c-.js","assets/create-organization-dialog-DGSfBHq9.js","assets/alert-dialog-DlwY2mBI.js","assets/form-PY0dh9eA.js","assets/companion-mcps-section-BSAJrsSk.js","assets/use-connect-companion-Qyek3iaQ.js","assets/companions-core-DzyeM-yJ.js","assets/metadata-D72DunRR.js","assets/github-repo-scope-ByTYKy_L.js","assets/provision-repo-scoped-github-connection-lckxpDHD.js","assets/useQueries-7fETpNi-.js","assets/authenticate-and-persist-oauth-nsYJn_2g.js","assets/mcp-oauth-DXt2H3qs.js","assets/track-CKD_o69Z.js","assets/extract-connection-data-DXn9w9lL.js","assets/connection-L0IOnxQL.js","assets/url-slug-CDSsr_-I.js","assets/self-tool-result-8OxPN9Nm.js","assets/site-error-Da6iapvu.js","assets/choose-editor-Dl5YQ9PQ.js","assets/site-editor-Dgv3Mgur.js","assets/chat-context-CGgDKLoI.js","assets/use-decopilot-events-tAuPN_q4.js","assets/use-ai-providers-CcMoAKt2.js","assets/location-BjlyegC2.js","assets/index-B95goRjI.js","assets/use-mobile-BKCNcL5w.js","assets/use-sidebar-collapsed-DQVR9tzU.js","assets/use-chat-layout-state-CjcoHJNS.js","assets/toolbar-icon-button-CTdoQK-j.js","assets/sheet-DJxxN2qW.js","assets/resizable-D_ipbPgS.js","assets/index-DIHkisxi.js","assets/core.esm-BjDph18k.js","assets/sortable.esm-CffOom9k.js","assets/context-menu-o9g6FS55.js","assets/project-apps-D71RwGSP.js","assets/use-project-native-view-presence-6zlafMD0.js","assets/match-site-slug-config-D3fUJ6vX.js","assets/use-file-configs-C_QUQ8GN.js","assets/use-main-schema-v8-CyJzgrXz.js","assets/use-recent-apps-Beh0P-eJ.js","assets/blocks-preview-workspace-context-DVjcSoNC.js","assets/site-editor-toast-yWBrscDo.js","assets/input-DiIRBTgb.js","assets/usage-stats-Cgvbigdd.js","assets/tool-namespace-WBa95YMk.js","assets/utils-CVEq3hMx.js","assets/markdown-Bj3WyP0d.js","assets/use-copy-B2CiMRws.js","assets/icon-button-bWdE1kh9.js","assets/file-type-icon-YdZxxv_V.js","assets/chat-draft-BLQR50du.js","assets/tabs-D3aHw45h.js","assets/use-deco-credits-BLtT_99v.js","assets/toggle-group-CUDFWI8h.js","assets/use-open-billing-url-BT_PQxjy.js","assets/index-CV3tbWK4.js","assets/checkbox-Dkp4p5XQ.js","assets/ai-providers-logos-DD3qZ33J.js","assets/popover-fq0tjxPf.js","assets/drawer-DlCF45Q0.js","assets/input-CMWKaQuM.js","assets/suggestion-CuYIU5Nv.js","assets/use-mcp-prompts-CPyQYK7C.js","assets/use-org-fs-CqBTb_bN.js","assets/question-004-sINsf4GQ.js","assets/use-members-BBgUoW6G.js","assets/use-org-auth-client-DboLlm0U.js","assets/feature-paywall-oJbClSRc.js","assets/plan-ladder-PV6fdtQs.js","assets/add-connection-dialog-CrxqWLHC.js","assets/connection-card-VTqJv3VR.js","assets/connection-slug-CITJ0kGN.js","assets/use-connection-K7ZRp1go.js","assets/schema-CEZ3_pMV.js","assets/connection-form-helpers-CGHpR5fJ.js","assets/collection-tabs-mcOoP5Dy.js","assets/use-infinite-scroll-BP0LI3QU.js","assets/useSuspenseInfiniteQuery-C9cYPm72.js","assets/use-task-board-events-3Dkuwhd-.js","assets/input-Bwd_JSM8.css","assets/sandbox-url-D3mC8qhT.js","assets/utils-Bv54OqIc.js","assets/index-bCTed2tb.js","assets/pair-DC812Nih.js","assets/collapsible-DC7y5Los.js","assets/content-blocks-o63cs2vh.js","assets/mcp-app-renderer-cIFgImrX.js","assets/types-C_3VJftQ.js","assets/omit-sandbox-map-jj4lCB2U.js","assets/use-thread-outputs-BvzhiS4m.js","assets/sandbox-git-api-CRxdlhrN.js","assets/preview-tab-C83Vx0Mi.js","assets/blocks-tab-states-DzpOdO2C.js","assets/sandbox-start-errors-BK_aDCyt.js","assets/secret-ciphertext-D4M9tY0M.js","assets/alert-Doqmk56v.js","assets/scroll-area-C7CRSfWv.js","assets/monaco-editor-CKrlIC9T.js","assets/editor-BdcTVQDa.js","assets/calendar-NDXBts7_.js","assets/editor-classes-DZr3o3GG.js","assets/view-mode-toggle-B_PFkRZ8.js","assets/combobox-ub2_k_zt.js","assets/asset-utils-2OOO4Yxi.js","assets/sandbox-lifecycle-context-BzWTxRjc.js","assets/variant-draft-pointer-BkoaUnwP.js","assets/section-preview-url-7zfngvgW.js","assets/use-fast-preview-draft-url-CudEspao.js","assets/device-hint-SeLRi17j.js","assets/virtual-mcp-I0mUiSD3.js","assets/preview-source-BsRLGWUP.js","assets/use-task-metadata-rKLv0cZj.js","assets/content-tab-aADEXlYN.js","assets/mustache-DEGJahrS.js","assets/use-content-sync-C7GSdrCv.js","assets/empty-state-gAZRZ0i8.js","assets/tab-icon-glyph-hHd2Az-Y.js","assets/resolve-tab-icon-Byb93xhw.js","assets/agent-site-editor-ucf0POve.js","assets/separator-CXpOKLhH.js","assets/use-releases-CLwewD1A.js","assets/serial-task-queue-CGOeQgpr.js","assets/hosted-publish-feedback-B8yni-1P.js","assets/save-changes-debug-nBi-n9eV.js","assets/agent-site-editor-DDGTF8rc.css","assets/reports-C4Lk2vHf.js","assets/reports-Dl0n8WK0.css","assets/route-BmBKnc7t.js","assets/use-join-requests-CKw0dC-f.js","assets/use-organization-roles-GM12gN8m.js","assets/use-inbox-feed-20OcgQCQ.js","assets/task-key-BCHdFiOO.js","assets/daily-pulse-B8CfUsCm.js","assets/config-YgZ-3rie.js","assets/use-thread-analytics-CoAOmWMe.js","assets/project-profile-Cc4MG3QN.js","assets/optimistic-project-sidebar-views-Dv80C_rk.js","assets/task-route-C1NRExZ4.js","assets/thread-route-_azg3sPx.js","assets/use-reports-diagnostic-BWqDIpUl.js","assets/connect-layout-B_22_91k.js","assets/route-CBMvGMnA.js","assets/task-status-Dgc_qXrK.js","assets/use-main-panel-tabs-BLDJnI0j.js","assets/use-mcp-tools-D9Ee_oS_.js","assets/legacy-main-redirect-C0KkBzuS.js","assets/preview-dialog-DRTfEqCp.js","assets/preview-content-BIaRb_kp.js","assets/file-share-button-Ciq5jDCO.js","assets/file-preview-D_biMFJs.js","assets/home-CRzzoJc4.js","assets/project-feed-1ErfglDo.js","assets/client-icons-B_zKBg36.js","assets/chart-BQCQoKhk.js","assets/index-BRQYvW_2.js","assets/symbol-CLrIFhMo.js","assets/CategoricalChart-DG6BKu5a.js","assets/ReferenceLine-CZu5hBwf.js","assets/CartesianChart-B72NH8Np.js","assets/BarChart-CLaD079J.js","assets/tooltipContext-DPfTt5uJ.js","assets/ActiveShapeUtils-ZRNWCZWq.js","assets/Sector-DdZAGjV7.js","assets/ErrorBarContext-D6UYrmJv.js","assets/task-assignee-avatar-BhSmfeHE.js","assets/projects-empty-state-ComKFNOr.js","assets/flat-project-B6LNuW-w.js","assets/index-C-FWiUeO.js","assets/use-task-board-analytics-CtHDTWzg.js","assets/column-rules-CsMTnhOl.js","assets/use-automations-CyRwkMiw.js","assets/search-toggle-BPTT4hLg.js","assets/use-tags-DLPMXTJ_.js","assets/index-d6hp7-E7.js","assets/index-D43cboe_.js","assets/use-task-board-item-prs-C-xbnweQ.js","assets/thread-sheet-body-BLZwnPMr.js","assets/board-analytics-BI7gAn9b.js","assets/time-range-picker-BpCt7APB.js","assets/analytics-sections-Dd9YiSBR.js","assets/AreaChart-BlLvjs0A.js","assets/library-tab-nnHKU6n2.js","assets/use-org-repo-syncs-CrHKManu.js","assets/folder-icon-CM4478FY.js","assets/use-ensure-project-folder-1zJV-ebL.js","assets/agent-overview-yYINKyA5.js","assets/mini-report-page-y5KfS4tn.js","assets/project-tasks-WMe77gba.js","assets/feature-gate-Bri_WNYh.js","assets/mock-board-BKG-LWFe.js","assets/project-reports-D49xSOrs.js","assets/reports-tab-DSPAWkBb.js","assets/agent-site-editor-preview-sckNqSpj.js","assets/agent-view-guard-CalJ4-cy.js","assets/agent-site-editor-content-DyDxJPiY.js","assets/agent-site-editor-code-CTL6nplL.js","assets/agent-automations-DzZ1KR2l.js","assets/automation-list-row-19GG3R6A.js","assets/agent-automation-KIw24kwd.js","assets/select-model-9jlQrG56.js","assets/build-improve-prompt-doc-B5xD6YpI.js","assets/use-debounced-autosave-C7gpczsa.js","assets/jira-icon-m-27rEgi.js","assets/multi-select-DD-AQA0o.js","assets/automation-runs-dSOAvyQz.js","assets/agent-settings-CsjZAmMJ.js","assets/settings-tab-cH5EHrjn.js","assets/index-vepJw596.js","assets/use-date-fns-locale-BtERR385.js","assets/use-mcp-auth-status-Dy1xU38X.js","assets/sections-CWZ2z5m1.js","assets/secret-picker-CvHiZDPS.js","assets/use-secrets-BWS1Znk9.js","assets/agent-library-e6Q9kL87.js","assets/context-shell-CGEiLl4q.js","assets/require-capability-yDcZ2JQa.js","assets/access-gate-DQGa34O6.js","assets/capability-load-error-BuYxZf-L.js","assets/agent-assets-Nmgl0Bht.js","assets/agent-releases-DsfoHksu.js","assets/agent-hosting-BPzlodMl.js","assets/agent-e2e-jRzRvCKY.js","assets/agent-analytics-BsXr7E0h.js","assets/taskboard-analytics-Cc7xLiYJ.js","assets/agent-experiments-B-k5fGOU.js","assets/slider-BNL65434.js","assets/index-BiYLgE9h.js","assets/agent-monitor-CIHPsQTo.js","assets/order-monitor-day-EUZZaMp3.js","assets/agent-app-CScNEVjT.js","assets/project-app-view-Cj07pABw.js","assets/agent-view-CSLmaEfT.js","assets/agent-file-alt93QCe.js","assets/agent-deck-DnVf6eXY.js","assets/agent-library-file-DuAVI14c.js","assets/preview-panel-Cic9CX2M.js","assets/agent-connect-sources-CS1Fawlh.js","assets/legacy-agents-deep-Byg7XYZi.js","assets/tasks-q5I9pn3S.js","assets/thread-analytics-BeecXXf9.js","assets/reports-DWVNCveo.js","assets/library-Do1cxIgP.js","assets/plan-05_HVNuz.js","assets/coming-soon-page-BYV_n6px.js","assets/monitoring-BPhxBDd5.js","assets/discover-8XW9Qw09.js","assets/index-2uTSdbBq.js","assets/route-BTQLh0S6.js","assets/index-redirect-CDsFqeNY.js","assets/connections-7gS929_D.js","assets/collection-display-button-CLVPueRo.js","assets/use-delete-connection-DdA2eUwf.js","assets/connection-detail-Cq27HXRr.js","assets/index-fwWRoUIR.js","assets/use-create-virtual-mcp-Be-PSH8v.js","assets/monitoring-stats-row-HV07Y8PZ.js","assets/collection-detail-DlDT6vQ9.js","assets/index-CJni2i7d.js","assets/general-BBEU5SQb.js","assets/review-settings-C6E-Bw8y.js","assets/domain-settings-D0GFJxX4.js","assets/connect-Ye3vTIux.js","assets/api-keys-1ccIE6pI.js","assets/ai-providers-BNG3Pq5o.js","assets/infra-billing-C2Fx7aIm.js","assets/secrets-RdCGJOsH.js","assets/api-keys-B0NOOdkt.js","assets/buckets-VKui74jg.js","assets/repositories-BOZH7UzC.js","assets/repositories-8h94CkIp.js","assets/synced-repos-CpEKcy1N.js","assets/tasks-74e9M9v_.js","assets/projects-utpjVaXN.js","assets/members-CvgFB3s-.js","assets/role-color-Dn2tXDDF.js","assets/roles-CAwPb5fO.js","assets/sso-tXxuMVkw.js","assets/profile-D5xJAT34.js","assets/agents-list-DGfxOrSx.js","assets/automations-DNcjd_bB.js","assets/skills-BlaOj1S-.js","assets/memory-BF1uVIim.js"])))=>i.map(i=>d[i]);
|
|
2
2
|
function Uz(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)}})();var Nfe=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Ol(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var bS={exports:{}},_u={};var T1;function qz(){if(T1)return _u;T1=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 _u.Fragment=t,_u.jsx=o,_u.jsxs=o,_u}var x1;function $z(){return x1||(x1=1,bS.exports=qz()),bS.exports}var w=$z(),yS={exports:{}},ct={};var k1;function Vz(){if(k1)return ct;k1=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"),d=Symbol.for("react.suspense"),p=Symbol.for("react.memo"),m=Symbol.for("react.lazy"),h=Symbol.for("react.activity"),f=Symbol.iterator;function v(N){return N===null||typeof N!="object"?null:(N=f&&N[f]||N["@@iterator"],typeof N=="function"?N:null)}var b={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},S=Object.assign,k={};function T(N,G,V){this.props=N,this.context=G,this.refs=k,this.updater=V||b}T.prototype.isReactComponent={},T.prototype.setState=function(N,G){if(typeof N!="object"&&typeof N!="function"&&N!=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,N,G,"setState")},T.prototype.forceUpdate=function(N){this.updater.enqueueForceUpdate(this,N,"forceUpdate")};function x(){}x.prototype=T.prototype;function E(N,G,V){this.props=N,this.context=G,this.refs=k,this.updater=V||b}var C=E.prototype=new x;C.constructor=E,S(C,T.prototype),C.isPureReactComponent=!0;var P=Array.isArray;function R(){}var D={H:null,A:null,T:null,S:null},O=Object.prototype.hasOwnProperty;function L(N,G,V){var I=V.ref;return{$$typeof:e,type:N,key:G,ref:I!==void 0?I:null,props:V}}function q(N,G){return L(N.type,G,N.props)}function B(N){return typeof N=="object"&&N!==null&&N.$$typeof===e}function U(N){var G={"=":"=0",":":"=2"};return"$"+N.replace(/[=:]/g,function(V){return G[V]})}var F=/\/+/g;function W(N,G){return typeof N=="object"&&N!==null&&N.key!=null?U(""+N.key):G.toString(36)}function ae(N){switch(N.status){case"fulfilled":return N.value;case"rejected":throw N.reason;default:switch(typeof N.status=="string"?N.then(R,R):(N.status="pending",N.then(function(G){N.status==="pending"&&(N.status="fulfilled",N.value=G)},function(G){N.status==="pending"&&(N.status="rejected",N.reason=G)})),N.status){case"fulfilled":return N.value;case"rejected":throw N.reason}}throw N}function H(N,G,V,I,z){var X=typeof N;(X==="undefined"||X==="boolean")&&(N=null);var pe=!1;if(N===null)pe=!0;else switch(X){case"bigint":case"string":case"number":pe=!0;break;case"object":switch(N.$$typeof){case e:case t:pe=!0;break;case m:return pe=N._init,H(pe(N._payload),G,V,I,z)}}if(pe)return z=z(N),pe=I===""?"."+W(N,0):I,P(z)?(V="",pe!=null&&(V=pe.replace(F,"$&/")+"/"),H(z,G,V,"",function(qe){return qe})):z!=null&&(B(z)&&(z=q(z,V+(z.key==null||N&&N.key===z.key?"":(""+z.key).replace(F,"$&/")+"/")+pe)),G.push(z)),1;pe=0;var he=I===""?".":I+":";if(P(N))for(var ke=0;ke<N.length;ke++)I=N[ke],X=he+W(I,ke),pe+=H(I,G,V,X,z);else if(ke=v(N),typeof ke=="function")for(N=ke.call(N),ke=0;!(I=N.next()).done;)I=I.value,X=he+W(I,ke++),pe+=H(I,G,V,X,z);else if(X==="object"){if(typeof N.then=="function")return H(ae(N),G,V,I,z);throw G=String(N),Error("Objects are not valid as a React child (found: "+(G==="[object Object]"?"object with keys {"+Object.keys(N).join(", ")+"}":G)+"). If you meant to render a collection of children, use an array instead.")}return pe}function K(N,G,V){if(N==null)return N;var I=[],z=0;return H(N,I,"","",function(X){return G.call(V,X,z++)}),I}function J(N){if(N._status===-1){var G=N._result;G=G(),G.then(function(V){(N._status===0||N._status===-1)&&(N._status=1,N._result=V)},function(V){(N._status===0||N._status===-1)&&(N._status=2,N._result=V)}),N._status===-1&&(N._status=0,N._result=G)}if(N._status===1)return N._result.default;throw N._result}var le=typeof reportError=="function"?reportError:function(N){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var G=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof N=="object"&&N!==null&&typeof N.message=="string"?String(N.message):String(N),error:N});if(!window.dispatchEvent(G))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",N);return}console.error(N)},Q={map:K,forEach:function(N,G,V){K(N,function(){G.apply(this,arguments)},V)},count:function(N){var G=0;return K(N,function(){G++}),G},toArray:function(N){return K(N,function(G){return G})||[]},only:function(N){if(!B(N))throw Error("React.Children.only expected to receive a single React element child.");return N}};return ct.Activity=h,ct.Children=Q,ct.Component=T,ct.Fragment=o,ct.Profiler=n,ct.PureComponent=E,ct.StrictMode=a,ct.Suspense=d,ct.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=D,ct.__COMPILER_RUNTIME={__proto__:null,c:function(N){return D.H.useMemoCache(N)}},ct.cache=function(N){return function(){return N.apply(null,arguments)}},ct.cacheSignal=function(){return null},ct.cloneElement=function(N,G,V){if(N==null)throw Error("The argument must be a React element, but you passed "+N+".");var I=S({},N.props),z=N.key;if(G!=null)for(X in G.key!==void 0&&(z=""+G.key),G)!O.call(G,X)||X==="key"||X==="__self"||X==="__source"||X==="ref"&&G.ref===void 0||(I[X]=G[X]);var X=arguments.length-2;if(X===1)I.children=V;else if(1<X){for(var pe=Array(X),he=0;he<X;he++)pe[he]=arguments[he+2];I.children=pe}return L(N.type,z,I)},ct.createContext=function(N){return N={$$typeof:l,_currentValue:N,_currentValue2:N,_threadCount:0,Provider:null,Consumer:null},N.Provider=N,N.Consumer={$$typeof:i,_context:N},N},ct.createElement=function(N,G,V){var I,z={},X=null;if(G!=null)for(I in G.key!==void 0&&(X=""+G.key),G)O.call(G,I)&&I!=="key"&&I!=="__self"&&I!=="__source"&&(z[I]=G[I]);var pe=arguments.length-2;if(pe===1)z.children=V;else if(1<pe){for(var he=Array(pe),ke=0;ke<pe;ke++)he[ke]=arguments[ke+2];z.children=he}if(N&&N.defaultProps)for(I in pe=N.defaultProps,pe)z[I]===void 0&&(z[I]=pe[I]);return L(N,X,z)},ct.createRef=function(){return{current:null}},ct.forwardRef=function(N){return{$$typeof:c,render:N}},ct.isValidElement=B,ct.lazy=function(N){return{$$typeof:m,_payload:{_status:-1,_result:N},_init:J}},ct.memo=function(N,G){return{$$typeof:p,type:N,compare:G===void 0?null:G}},ct.startTransition=function(N){var G=D.T,V={};D.T=V;try{var I=N(),z=D.S;z!==null&&z(V,I),typeof I=="object"&&I!==null&&typeof I.then=="function"&&I.then(R,le)}catch(X){le(X)}finally{G!==null&&V.types!==null&&(G.types=V.types),D.T=G}},ct.unstable_useCacheRefresh=function(){return D.H.useCacheRefresh()},ct.use=function(N){return D.H.use(N)},ct.useActionState=function(N,G,V){return D.H.useActionState(N,G,V)},ct.useCallback=function(N,G){return D.H.useCallback(N,G)},ct.useContext=function(N){return D.H.useContext(N)},ct.useDebugValue=function(){},ct.useDeferredValue=function(N,G){return D.H.useDeferredValue(N,G)},ct.useEffect=function(N,G){return D.H.useEffect(N,G)},ct.useEffectEvent=function(N){return D.H.useEffectEvent(N)},ct.useId=function(){return D.H.useId()},ct.useImperativeHandle=function(N,G,V){return D.H.useImperativeHandle(N,G,V)},ct.useInsertionEffect=function(N,G){return D.H.useInsertionEffect(N,G)},ct.useLayoutEffect=function(N,G){return D.H.useLayoutEffect(N,G)},ct.useMemo=function(N,G){return D.H.useMemo(N,G)},ct.useOptimistic=function(N,G){return D.H.useOptimistic(N,G)},ct.useReducer=function(N,G,V){return D.H.useReducer(N,G,V)},ct.useRef=function(N){return D.H.useRef(N)},ct.useState=function(N){return D.H.useState(N)},ct.useSyncExternalStore=function(N,G,V){return D.H.useSyncExternalStore(N,G,V)},ct.useTransition=function(){return D.H.useTransition()},ct.version="19.2.6",ct}var _1;function Is(){return _1||(_1=1,yS.exports=Vz()),yS.exports}var A=Is();const ee=Ol(A),Sx=Uz({__proto__:null,default:ee},[A]);var SS={exports:{}},Cu={},wS={exports:{}},TS={};var C1;function Hz(){return C1||(C1=1,(function(e){function t(H,K){var J=H.length;H.push(K);e:for(;0<J;){var le=J-1>>>1,Q=H[le];if(0<n(Q,K))H[le]=K,H[J]=Q,J=le;else break e}}function o(H){return H.length===0?null:H[0]}function a(H){if(H.length===0)return null;var K=H[0],J=H.pop();if(J!==K){H[0]=J;e:for(var le=0,Q=H.length,N=Q>>>1;le<N;){var G=2*(le+1)-1,V=H[G],I=G+1,z=H[I];if(0>n(V,J))I<Q&&0>n(z,V)?(H[le]=z,H[I]=J,le=I):(H[le]=V,H[G]=J,le=G);else if(I<Q&&0>n(z,J))H[le]=z,H[I]=J,le=I;else break e}}return K}function n(H,K){var J=H.sortIndex-K.sortIndex;return J!==0?J:H.id-K.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 d=[],p=[],m=1,h=null,f=3,v=!1,b=!1,S=!1,k=!1,T=typeof setTimeout=="function"?setTimeout:null,x=typeof clearTimeout=="function"?clearTimeout:null,E=typeof setImmediate<"u"?setImmediate:null;function C(H){for(var K=o(p);K!==null;){if(K.callback===null)a(p);else if(K.startTime<=H)a(p),K.sortIndex=K.expirationTime,t(d,K);else break;K=o(p)}}function P(H){if(S=!1,C(H),!b)if(o(d)!==null)b=!0,R||(R=!0,U());else{var K=o(p);K!==null&&ae(P,K.startTime-H)}}var R=!1,D=-1,O=5,L=-1;function q(){return k?!0:!(e.unstable_now()-L<O)}function B(){if(k=!1,R){var H=e.unstable_now();L=H;var K=!0;try{e:{b=!1,S&&(S=!1,x(D),D=-1),v=!0;var J=f;try{t:{for(C(H),h=o(d);h!==null&&!(h.expirationTime>H&&q());){var le=h.callback;if(typeof le=="function"){h.callback=null,f=h.priorityLevel;var Q=le(h.expirationTime<=H);if(H=e.unstable_now(),typeof Q=="function"){h.callback=Q,C(H),K=!0;break t}h===o(d)&&a(d),C(H)}else a(d);h=o(d)}if(h!==null)K=!0;else{var N=o(p);N!==null&&ae(P,N.startTime-H),K=!1}}break e}finally{h=null,f=J,v=!1}K=void 0}}finally{K?U():R=!1}}}var U;if(typeof E=="function")U=function(){E(B)};else if(typeof MessageChannel<"u"){var F=new MessageChannel,W=F.port2;F.port1.onmessage=B,U=function(){W.postMessage(null)}}else U=function(){T(B,0)};function ae(H,K){D=T(function(){H(e.unstable_now())},K)}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 K=3;break;default:K=f}var J=f;f=K;try{return H()}finally{f=J}},e.unstable_requestPaint=function(){k=!0},e.unstable_runWithPriority=function(H,K){switch(H){case 1:case 2:case 3:case 4:case 5:break;default:H=3}var J=f;f=H;try{return K()}finally{f=J}},e.unstable_scheduleCallback=function(H,K,J){var le=e.unstable_now();switch(typeof J=="object"&&J!==null?(J=J.delay,J=typeof J=="number"&&0<J?le+J:le):J=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=J+Q,H={id:m++,callback:K,priorityLevel:H,startTime:J,expirationTime:Q,sortIndex:-1},J>le?(H.sortIndex=J,t(p,H),o(d)===null&&H===o(p)&&(S?(x(D),D=-1):S=!0,ae(P,J-le))):(H.sortIndex=Q,t(d,H),b||v||(b=!0,R||(R=!0,U()))),H},e.unstable_shouldYield=q,e.unstable_wrapCallback=function(H){var K=f;return function(){var J=f;f=K;try{return H.apply(this,arguments)}finally{f=J}}}})(TS)),TS}var P1;function Gz(){return P1||(P1=1,wS.exports=Hz()),wS.exports}var xS={exports:{}},Ra={};var E1;function Wz(){if(E1)return Ra;E1=1;var e=Is();function t(d){var p="https://react.dev/errors/"+d;if(1<arguments.length){p+="?args[]="+encodeURIComponent(arguments[1]);for(var m=2;m<arguments.length;m++)p+="&args[]="+encodeURIComponent(arguments[m])}return"Minified React error #"+d+"; 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(d,p,m){var h=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:n,key:h==null?null:""+h,children:d,containerInfo:p,implementation:m}}var l=e.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function c(d,p){if(d==="font")return"";if(typeof p=="string")return p==="use-credentials"?p:""}return Ra.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=a,Ra.createPortal=function(d,p){var m=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(d,p,null,m)},Ra.flushSync=function(d){var p=l.T,m=a.p;try{if(l.T=null,a.p=2,d)return d()}finally{l.T=p,a.p=m,a.d.f()}},Ra.preconnect=function(d,p){typeof d=="string"&&(p?(p=p.crossOrigin,p=typeof p=="string"?p==="use-credentials"?p:"":void 0):p=null,a.d.C(d,p))},Ra.prefetchDNS=function(d){typeof d=="string"&&a.d.D(d)},Ra.preinit=function(d,p){if(typeof d=="string"&&p&&typeof p.as=="string"){var m=p.as,h=c(m,p.crossOrigin),f=typeof p.integrity=="string"?p.integrity:void 0,v=typeof p.fetchPriority=="string"?p.fetchPriority:void 0;m==="style"?a.d.S(d,typeof p.precedence=="string"?p.precedence:void 0,{crossOrigin:h,integrity:f,fetchPriority:v}):m==="script"&&a.d.X(d,{crossOrigin:h,integrity:f,fetchPriority:v,nonce:typeof p.nonce=="string"?p.nonce:void 0})}},Ra.preinitModule=function(d,p){if(typeof d=="string")if(typeof p=="object"&&p!==null){if(p.as==null||p.as==="script"){var m=c(p.as,p.crossOrigin);a.d.M(d,{crossOrigin:m,integrity:typeof p.integrity=="string"?p.integrity:void 0,nonce:typeof p.nonce=="string"?p.nonce:void 0})}}else p==null&&a.d.M(d)},Ra.preload=function(d,p){if(typeof d=="string"&&typeof p=="object"&&p!==null&&typeof p.as=="string"){var m=p.as,h=c(m,p.crossOrigin);a.d.L(d,m,{crossOrigin:h,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})}},Ra.preloadModule=function(d,p){if(typeof d=="string")if(p){var m=c(p.as,p.crossOrigin);a.d.m(d,{as:typeof p.as=="string"&&p.as!=="script"?p.as:void 0,crossOrigin:m,integrity:typeof p.integrity=="string"?p.integrity:void 0})}else a.d.m(d)},Ra.requestFormReset=function(d){a.d.r(d)},Ra.unstable_batchedUpdates=function(d,p){return d(p)},Ra.useFormState=function(d,p,m){return l.H.useFormState(d,p,m)},Ra.useFormStatus=function(){return l.H.useHostTransitionStatus()},Ra.version="19.2.6",Ra}var A1;function nM(){if(A1)return xS.exports;A1=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(),xS.exports=Wz(),xS.exports}var R1;function Kz(){if(R1)return Cu;R1=1;var e=Gz(),t=Is(),o=nM();function a(r){var s="https://react.dev/errors/"+r;if(1<arguments.length){s+="?args[]="+encodeURIComponent(arguments[1]);for(var u=2;u<arguments.length;u++)s+="&args[]="+encodeURIComponent(arguments[u])}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,u=r;if(r.alternate)for(;s.return;)s=s.return;else{r=s;do s=r,(s.flags&4098)!==0&&(u=s.return),r=s.return;while(r)}return s.tag===3?u: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 d(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 u=r,g=s;;){var y=u.return;if(y===null)break;var _=y.alternate;if(_===null){if(g=y.return,g!==null){u=g;continue}break}if(y.child===_.child){for(_=y.child;_;){if(_===u)return d(y),r;if(_===g)return d(y),s;_=_.sibling}throw Error(a(188))}if(u.return!==g.return)u=y,g=_;else{for(var M=!1,j=y.child;j;){if(j===u){M=!0,u=y,g=_;break}if(j===g){M=!0,g=y,u=_;break}j=j.sibling}if(!M){for(j=_.child;j;){if(j===u){M=!0,u=_,g=y;break}if(j===g){M=!0,g=_,u=y;break}j=j.sibling}if(!M)throw Error(a(189))}}if(u.alternate!==g)throw Error(a(190))}if(u.tag!==3)throw Error(a(188));return u.stateNode.current===u?r:s}function m(r){var s=r.tag;if(s===5||s===26||s===27||s===6)return r;for(r=r.child;r!==null;){if(s=m(r),s!==null)return s;r=r.sibling}return null}var h=Object.assign,f=Symbol.for("react.element"),v=Symbol.for("react.transitional.element"),b=Symbol.for("react.portal"),S=Symbol.for("react.fragment"),k=Symbol.for("react.strict_mode"),T=Symbol.for("react.profiler"),x=Symbol.for("react.consumer"),E=Symbol.for("react.context"),C=Symbol.for("react.forward_ref"),P=Symbol.for("react.suspense"),R=Symbol.for("react.suspense_list"),D=Symbol.for("react.memo"),O=Symbol.for("react.lazy"),L=Symbol.for("react.activity"),q=Symbol.for("react.memo_cache_sentinel"),B=Symbol.iterator;function U(r){return r===null||typeof r!="object"?null:(r=B&&r[B]||r["@@iterator"],typeof r=="function"?r:null)}var F=Symbol.for("react.client.reference");function W(r){if(r==null)return null;if(typeof r=="function")return r.$$typeof===F?null:r.displayName||r.name||null;if(typeof r=="string")return r;switch(r){case S:return"Fragment";case T:return"Profiler";case k:return"StrictMode";case P:return"Suspense";case R:return"SuspenseList";case L:return"Activity"}if(typeof r=="object")switch(r.$$typeof){case b:return"Portal";case E:return r.displayName||"Context";case x:return(r._context.displayName||"Context")+".Consumer";case C: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:W(r.type)||"Memo";case O:s=r._payload,r=r._init;try{return W(r(s))}catch{}}return null}var ae=Array.isArray,H=t.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,K=o.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,J={pending:!1,data:null,method:null,action:null},le=[],Q=-1;function N(r){return{current:r}}function G(r){0>Q||(r.current=le[Q],le[Q]=null,Q--)}function V(r,s){Q++,le[Q]=r.current,r.current=s}var I=N(null),z=N(null),X=N(null),pe=N(null);function he(r,s){switch(V(X,s),V(z,r),V(I,null),s.nodeType){case 9:case 11:r=(r=s.documentElement)&&(r=r.namespaceURI)?HE(r):0;break;default:if(r=s.tagName,s=s.namespaceURI)s=HE(s),r=GE(s,r);else switch(r){case"svg":r=1;break;case"math":r=2;break;default:r=0}}G(I),V(I,r)}function ke(){G(I),G(z),G(X)}function qe(r){r.memoizedState!==null&&V(pe,r);var s=I.current,u=GE(s,r.type);s!==u&&(V(z,r),V(I,u))}function Z(r){z.current===r&&(G(I),G(z)),pe.current===r&&(G(pe),wu._currentValue=J)}var ne,ve;function ie(r){if(ne===void 0)try{throw Error()}catch(u){var s=u.stack.trim().match(/\n( *(at )?)/);ne=s&&s[1]||"",ve=-1<u.stack.indexOf(`
|
|
3
3
|
at`)?" (<anonymous>)":-1<u.stack.indexOf("@")?"@unknown:0:0":""}return`
|
|
4
4
|
`+ne+r+ve}var Te=!1;function Ce(r,s){if(!r||Te)return"";Te=!0;var u=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var g={DetermineComponentFrameRoot:function(){try{if(s){var xe=function(){throw Error()};if(Object.defineProperty(xe.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(xe,[])}catch(fe){var me=fe}Reflect.construct(r,[],xe)}else{try{xe.call()}catch(fe){me=fe}r.call(xe.prototype)}}else{try{throw Error()}catch(fe){me=fe}(xe=r())&&typeof xe.catch=="function"&&xe.catch(function(){})}}catch(fe){if(fe&&me&&typeof fe.stack=="string")return[fe.stack,me.stack]}return[null,null]}};g.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var y=Object.getOwnPropertyDescriptor(g.DetermineComponentFrameRoot,"name");y&&y.configurable&&Object.defineProperty(g.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var _=g.DetermineComponentFrameRoot(),M=_[0],j=_[1];if(M&&j){var te=M.split(`
|
|
@@ -165,7 +165,7 @@ Este site ainda não reporta sections de post — quando reportar, cite elas aqu
|
|
|
165
165
|
.block-interactivity-`.concat(e,` {pointer-events: none;}
|
|
166
166
|
.allow-interactivity-`).concat(e,` {pointer-events: all;}
|
|
167
167
|
`)},oae=0,Nc=[];function aae(e){var t=A.useRef([]),o=A.useRef([0,0]),a=A.useRef(),n=A.useState(oae++)[0],i=A.useState(xB)[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=koe([e.lockRef.current],(e.shards||[]).map(WD),!0).filter(Boolean);return S.forEach(function(k){return k.classList.add("allow-interactivity-".concat(n))}),function(){document.body.classList.remove("block-interactivity-".concat(n)),S.forEach(function(k){return k.classList.remove("allow-interactivity-".concat(n))})}}},[e.inert,e.lockRef.current,e.shards]);var c=A.useCallback(function(S,k){if("touches"in S&&S.touches.length===2||S.type==="wheel"&&S.ctrlKey)return!l.current.allowPinchZoom;var T=Og(S),x=o.current,E="deltaX"in S?S.deltaX:x[0]-T[0],C="deltaY"in S?S.deltaY:x[1]-T[1],P,R=S.target,D=Math.abs(E)>Math.abs(C)?"h":"v";if("touches"in S&&D==="h"&&R.type==="range")return!1;var O=window.getSelection(),L=O&&O.anchorNode,q=L?L===R||L.contains(R):!1;if(q)return!1;var B=HD(D,R);if(!B)return!0;if(B?P=D:(P=D==="v"?"h":"v",B=HD(D,R)),!B)return!1;if(!a.current&&"changedTouches"in S&&(E||C)&&(a.current=P),!P)return!0;var U=a.current||P;return Xoe(U,k,S,U==="h"?E:C)},[]),d=A.useCallback(function(S){var k=S;if(!(!Nc.length||Nc[Nc.length-1]!==i)){var T="deltaY"in k?GD(k):Og(k),x=t.current.filter(function(P){return P.name===k.type&&(P.target===k.target||k.target===P.shadowParent)&&eae(P.delta,T)})[0];if(x&&x.should){k.cancelable&&k.preventDefault();return}if(!x){var E=(l.current.shards||[]).map(WD).filter(Boolean).filter(function(P){return P.contains(k.target)}),C=E.length>0?c(k,E[0]):!l.current.noIsolation;C&&k.cancelable&&k.preventDefault()}}},[]),p=A.useCallback(function(S,k,T,x){var E={name:S,delta:k,target:T,should:x,shadowParent:nae(T)};t.current.push(E),setTimeout(function(){t.current=t.current.filter(function(C){return C!==E})},1)},[]),m=A.useCallback(function(S){o.current=Og(S),a.current=void 0},[]),h=A.useCallback(function(S){p(S.type,GD(S),S.target,c(S,e.lockRef.current))},[]),f=A.useCallback(function(S){p(S.type,Og(S),S.target,c(S,e.lockRef.current))},[]);A.useEffect(function(){return Nc.push(i),e.setCallbacks({onScrollCapture:h,onWheelCapture:h,onTouchMoveCapture:f}),document.addEventListener("wheel",d,Mc),document.addEventListener("touchmove",d,Mc),document.addEventListener("touchstart",m,Mc),function(){Nc=Nc.filter(function(S){return S!==i}),document.removeEventListener("wheel",d,Mc),document.removeEventListener("touchmove",d,Mc),document.removeEventListener("touchstart",m,Mc)}},[]);var v=e.removeScrollBar,b=e.inert;return A.createElement(A.Fragment,null,b?A.createElement(i,{styles:tae(n)}):null,v?A.createElement(Goe,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function nae(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const rae=Moe(TB,aae);var Ek=A.forwardRef(function(e,t){return A.createElement(Fv,zr({},e,{ref:t,sideCar:rae}))});Ek.classNames=Fv.classNames;var dT=["Enter"," "],iae=["ArrowDown","PageUp","Home"],PB=["ArrowUp","PageDown","End"],sae=[...iae,...PB],lae={ltr:[...dT,"ArrowRight"],rtl:[...dT,"ArrowLeft"]},cae={ltr:["ArrowLeft"],rtl:["ArrowRight"]},am="Menu",[Dp,dae,uae]=NL(am),[jl,EB]=Fl(am,[uae,oB,mB]),nm=oB(),AB=mB(),[RB,zs]=jl(am),[pae,rm]=jl(am),DB=e=>{const{__scopeMenu:t,open:o=!1,children:a,dir:n,onOpenChange:i,modal:l=!0}=e,c=nm(t),[d,p]=A.useState(null),m=A.useRef(!1),h=Sr(i),f=IL(n);return A.useEffect(()=>{const v=()=>{m.current=!0,document.addEventListener("pointerdown",b,{capture:!0,once:!0}),document.addEventListener("pointermove",b,{capture:!0,once:!0})},b=()=>m.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})}},[]),w.jsx(uB,{...c,children:w.jsx(RB,{scope:t,open:o,onOpenChange:h,content:d,onContentChange:p,children:w.jsx(pae,{scope:t,onClose:A.useCallback(()=>h(!1),[h]),isUsingKeyboardRef:m,dir:f,modal:l,children:a})})})};DB.displayName=am;var mae="MenuAnchor",Ak=A.forwardRef((e,t)=>{const{__scopeMenu:o,...a}=e,n=nm(o);return w.jsx(ooe,{...n,...a,ref:t})});Ak.displayName=mae;var Rk="MenuPortal",[hae,OB]=jl(Rk,{forceMount:void 0}),MB=e=>{const{__scopeMenu:t,forceMount:o,children:a,container:n}=e,i=zs(Rk,t);return w.jsx(hae,{scope:t,forceMount:o,children:w.jsx(Mi,{present:o||i.open,children:w.jsx(Pk,{asChild:!0,container:n,children:a})})})};MB.displayName=Rk;var Qn="MenuContent",[gae,Dk]=jl(Qn),NB=A.forwardRef((e,t)=>{const o=OB(Qn,e.__scopeMenu),{forceMount:a=o.forceMount,...n}=e,i=zs(Qn,e.__scopeMenu),l=rm(Qn,e.__scopeMenu);return w.jsx(Dp.Provider,{scope:e.__scopeMenu,children:w.jsx(Mi,{present:a||i.open,children:w.jsx(Dp.Slot,{scope:e.__scopeMenu,children:l.modal?w.jsx(fae,{...n,ref:t}):w.jsx(vae,{...n,ref:t})})})})}),fae=A.forwardRef((e,t)=>{const o=zs(Qn,e.__scopeMenu),a=A.useRef(null),n=sa(t,a);return A.useEffect(()=>{const i=a.current;if(i)return yB(i)},[]),w.jsx(Ok,{...e,ref:n,trapFocus:o.open,disableOutsidePointerEvents:o.open,disableOutsideScroll:!0,onFocusOutside:mt(e.onFocusOutside,i=>i.preventDefault(),{checkForDefaultPrevented:!1}),onDismiss:()=>o.onOpenChange(!1)})}),vae=A.forwardRef((e,t)=>{const o=zs(Qn,e.__scopeMenu);return w.jsx(Ok,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,disableOutsideScroll:!1,onDismiss:()=>o.onOpenChange(!1)})}),bae=Ap("MenuContent.ScrollLock"),Ok=A.forwardRef((e,t)=>{const{__scopeMenu:o,loop:a=!1,trapFocus:n,onOpenAutoFocus:i,onCloseAutoFocus:l,disableOutsidePointerEvents:c,onEntryFocus:d,onEscapeKeyDown:p,onPointerDownOutside:m,onFocusOutside:h,onInteractOutside:f,onDismiss:v,disableOutsideScroll:b,...S}=e,k=zs(Qn,o),T=rm(Qn,o),x=nm(o),E=AB(o),C=dae(o),[P,R]=A.useState(null),D=A.useRef(null),O=sa(t,D,k.onContentChange),L=A.useRef(0),q=A.useRef(""),B=A.useRef(0),U=A.useRef(null),F=A.useRef("right"),W=A.useRef(0),ae=b?Ek:A.Fragment,H=b?{as:bae,allowPinchZoom:!0}:void 0,K=le=>{const Q=q.current+le,N=C().filter(pe=>!pe.disabled),G=document.activeElement,V=N.find(pe=>pe.ref.current===G)?.textValue,I=N.map(pe=>pe.textValue),z=Rae(I,Q,V),X=N.find(pe=>pe.textValue===z)?.ref.current;(function pe(he){q.current=he,window.clearTimeout(L.current),he!==""&&(L.current=window.setTimeout(()=>pe(""),1e3))})(Q),X&&setTimeout(()=>X.focus())};A.useEffect(()=>()=>window.clearTimeout(L.current),[]),FL();const J=A.useCallback(le=>F.current===U.current?.side&&Oae(le,U.current?.area),[]);return w.jsx(gae,{scope:o,searchRef:q,onItemEnter:A.useCallback(le=>{J(le)&&le.preventDefault()},[J]),onItemLeave:A.useCallback(le=>{J(le)||(D.current?.focus(),R(null))},[J]),onTriggerLeave:A.useCallback(le=>{J(le)&&le.preventDefault()},[J]),pointerGraceTimerRef:B,onPointerGraceIntentChange:A.useCallback(le=>{U.current=le},[]),children:w.jsx(ae,{...H,children:w.jsx(vk,{asChild:!0,trapped:n,onMountAutoFocus:mt(i,le=>{le.preventDefault(),D.current?.focus({preventScroll:!0})}),onUnmountAutoFocus:l,children:w.jsx(fk,{asChild:!0,disableOutsidePointerEvents:c,onEscapeKeyDown:p,onPointerDownOutside:m,onFocusOutside:h,onInteractOutside:f,onDismiss:v,children:w.jsx(yoe,{asChild:!0,...E,dir:T.dir,orientation:"vertical",loop:a,currentTabStopId:P,onCurrentTabStopIdChange:R,onEntryFocus:mt(d,le=>{T.isUsingKeyboardRef.current||le.preventDefault()}),preventScrollOnEntryFocus:!0,children:w.jsx(aoe,{role:"menu","aria-orientation":"vertical","data-state":QB(k.open),"data-radix-menu-content":"",dir:T.dir,...x,...S,ref:O,style:{outline:"none",...S.style},onKeyDown:mt(S.onKeyDown,le=>{const N=le.target.closest("[data-radix-menu-content]")===le.currentTarget,G=le.ctrlKey||le.altKey||le.metaKey,V=le.key.length===1;N&&(le.key==="Tab"&&le.preventDefault(),!G&&V&&K(le.key));const I=D.current;if(le.target!==I||!sae.includes(le.key))return;le.preventDefault();const X=C().filter(pe=>!pe.disabled).map(pe=>pe.ref.current);PB.includes(le.key)&&X.reverse(),Eae(X)}),onBlur:mt(e.onBlur,le=>{le.currentTarget.contains(le.target)||(window.clearTimeout(L.current),q.current="")}),onPointerMove:mt(e.onPointerMove,Op(le=>{const Q=le.target,N=W.current!==le.clientX;if(le.currentTarget.contains(Q)&&N){const G=le.clientX>W.current?"right":"left";F.current=G,W.current=le.clientX}}))})})})})})})});NB.displayName=Qn;var yae="MenuGroup",Mk=A.forwardRef((e,t)=>{const{__scopeMenu:o,...a}=e;return w.jsx(Ro.div,{role:"group",...a,ref:t})});Mk.displayName=yae;var Sae="MenuLabel",IB=A.forwardRef((e,t)=>{const{__scopeMenu:o,...a}=e;return w.jsx(Ro.div,{...a,ref:t})});IB.displayName=Sae;var If="MenuItem",KD="menu.itemSelect",jv=A.forwardRef((e,t)=>{const{disabled:o=!1,onSelect:a,...n}=e,i=A.useRef(null),l=rm(If,e.__scopeMenu),c=Dk(If,e.__scopeMenu),d=sa(t,i),p=A.useRef(!1),m=()=>{const h=i.current;if(!o&&h){const f=new CustomEvent(KD,{bubbles:!0,cancelable:!0});h.addEventListener(KD,v=>a?.(v),{once:!0}),ML(h,f),f.defaultPrevented?p.current=!1:l.onClose()}};return w.jsx(LB,{...n,ref:d,disabled:o,onClick:mt(e.onClick,m),onPointerDown:h=>{e.onPointerDown?.(h),p.current=!0},onPointerUp:mt(e.onPointerUp,h=>{p.current||h.currentTarget?.click()}),onKeyDown:mt(e.onKeyDown,h=>{const f=c.searchRef.current!=="";o||f&&h.key===" "||dT.includes(h.key)&&(h.currentTarget.click(),h.preventDefault())})})});jv.displayName=If;var LB=A.forwardRef((e,t)=>{const{__scopeMenu:o,disabled:a=!1,textValue:n,...i}=e,l=Dk(If,o),c=AB(o),d=A.useRef(null),p=sa(t,d),[m,h]=A.useState(!1),[f,v]=A.useState("");return A.useEffect(()=>{const b=d.current;b&&v((b.textContent??"").trim())},[i.children]),w.jsx(Dp.ItemSlot,{scope:o,disabled:a,textValue:n??f,children:w.jsx(Soe,{asChild:!0,...c,focusable:!a,children:w.jsx(Ro.div,{role:"menuitem","data-highlighted":m?"":void 0,"aria-disabled":a||void 0,"data-disabled":a?"":void 0,...i,ref:p,onPointerMove:mt(e.onPointerMove,Op(b=>{a?l.onItemLeave(b):(l.onItemEnter(b),b.defaultPrevented||b.currentTarget.focus({preventScroll:!0}))})),onPointerLeave:mt(e.onPointerLeave,Op(b=>l.onItemLeave(b))),onFocus:mt(e.onFocus,()=>h(!0)),onBlur:mt(e.onBlur,()=>h(!1))})})})}),wae="MenuCheckboxItem",BB=A.forwardRef((e,t)=>{const{checked:o=!1,onCheckedChange:a,...n}=e;return w.jsx(qB,{scope:e.__scopeMenu,checked:o,children:w.jsx(jv,{role:"menuitemcheckbox","aria-checked":Lf(o)?"mixed":o,...n,ref:t,"data-state":Lk(o),onSelect:mt(n.onSelect,()=>a?.(Lf(o)?!0:!o),{checkForDefaultPrevented:!1})})})});BB.displayName=wae;var FB="MenuRadioGroup",[Tae,xae]=jl(FB,{value:void 0,onValueChange:()=>{}}),jB=A.forwardRef((e,t)=>{const{value:o,onValueChange:a,...n}=e,i=Sr(a);return w.jsx(Tae,{scope:e.__scopeMenu,value:o,onValueChange:i,children:w.jsx(Mk,{...n,ref:t})})});jB.displayName=FB;var zB="MenuRadioItem",UB=A.forwardRef((e,t)=>{const{value:o,...a}=e,n=xae(zB,e.__scopeMenu),i=o===n.value;return w.jsx(qB,{scope:e.__scopeMenu,checked:i,children:w.jsx(jv,{role:"menuitemradio","aria-checked":i,...a,ref:t,"data-state":Lk(i),onSelect:mt(a.onSelect,()=>n.onValueChange?.(o),{checkForDefaultPrevented:!1})})})});UB.displayName=zB;var Nk="MenuItemIndicator",[qB,kae]=jl(Nk,{checked:!1}),$B=A.forwardRef((e,t)=>{const{__scopeMenu:o,forceMount:a,...n}=e,i=kae(Nk,o);return w.jsx(Mi,{present:a||Lf(i.checked)||i.checked===!0,children:w.jsx(Ro.span,{...n,ref:t,"data-state":Lk(i.checked)})})});$B.displayName=Nk;var _ae="MenuSeparator",VB=A.forwardRef((e,t)=>{const{__scopeMenu:o,...a}=e;return w.jsx(Ro.div,{role:"separator","aria-orientation":"horizontal",...a,ref:t})});VB.displayName=_ae;var Cae="MenuArrow",HB=A.forwardRef((e,t)=>{const{__scopeMenu:o,...a}=e,n=nm(o);return w.jsx(noe,{...n,...a,ref:t})});HB.displayName=Cae;var Ik="MenuSub",[Pae,GB]=jl(Ik),WB=e=>{const{__scopeMenu:t,children:o,open:a=!1,onOpenChange:n}=e,i=zs(Ik,t),l=nm(t),[c,d]=A.useState(null),[p,m]=A.useState(null),h=Sr(n);return A.useEffect(()=>(i.open===!1&&h(!1),()=>h(!1)),[i.open,h]),w.jsx(uB,{...l,children:w.jsx(RB,{scope:t,open:a,onOpenChange:h,content:p,onContentChange:m,children:w.jsx(Pae,{scope:t,contentId:As(),triggerId:As(),trigger:c,onTriggerChange:d,children:o})})})};WB.displayName=Ik;var Xu="MenuSubTrigger",KB=A.forwardRef((e,t)=>{const o=zs(Xu,e.__scopeMenu),a=rm(Xu,e.__scopeMenu),n=GB(Xu,e.__scopeMenu),i=Dk(Xu,e.__scopeMenu),l=A.useRef(null),{pointerGraceTimerRef:c,onPointerGraceIntentChange:d}=i,p={__scopeMenu:e.__scopeMenu},m=A.useCallback(()=>{l.current&&window.clearTimeout(l.current),l.current=null},[]);return A.useEffect(()=>m,[m]),A.useEffect(()=>{const h=c.current;return()=>{window.clearTimeout(h),d(null)}},[c,d]),w.jsx(Ak,{asChild:!0,...p,children:w.jsx(LB,{id:n.triggerId,"aria-haspopup":"menu","aria-expanded":o.open,"aria-controls":n.contentId,"data-state":QB(o.open),...e,ref:Xp(t,n.onTriggerChange),onClick:h=>{e.onClick?.(h),!(e.disabled||h.defaultPrevented)&&(h.currentTarget.focus(),o.open||o.onOpenChange(!0))},onPointerMove:mt(e.onPointerMove,Op(h=>{i.onItemEnter(h),!h.defaultPrevented&&!e.disabled&&!o.open&&!l.current&&(i.onPointerGraceIntentChange(null),l.current=window.setTimeout(()=>{o.onOpenChange(!0),m()},100))})),onPointerLeave:mt(e.onPointerLeave,Op(h=>{m();const f=o.content?.getBoundingClientRect();if(f){const v=o.content?.dataset.side,b=v==="right",S=b?-5:5,k=f[b?"left":"right"],T=f[b?"right":"left"];i.onPointerGraceIntentChange({area:[{x:h.clientX+S,y:h.clientY},{x:k,y:f.top},{x:T,y:f.top},{x:T,y:f.bottom},{x:k,y:f.bottom}],side:v}),window.clearTimeout(c.current),c.current=window.setTimeout(()=>i.onPointerGraceIntentChange(null),300)}else{if(i.onTriggerLeave(h),h.defaultPrevented)return;i.onPointerGraceIntentChange(null)}})),onKeyDown:mt(e.onKeyDown,h=>{const f=i.searchRef.current!=="";e.disabled||f&&h.key===" "||lae[a.dir].includes(h.key)&&(o.onOpenChange(!0),o.content?.focus(),h.preventDefault())})})})});KB.displayName=Xu;var YB="MenuSubContent",ZB=A.forwardRef((e,t)=>{const o=OB(Qn,e.__scopeMenu),{forceMount:a=o.forceMount,...n}=e,i=zs(Qn,e.__scopeMenu),l=rm(Qn,e.__scopeMenu),c=GB(YB,e.__scopeMenu),d=A.useRef(null),p=sa(t,d);return w.jsx(Dp.Provider,{scope:e.__scopeMenu,children:w.jsx(Mi,{present:a||i.open,children:w.jsx(Dp.Slot,{scope:e.__scopeMenu,children:w.jsx(Ok,{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:m=>{l.isUsingKeyboardRef.current&&d.current?.focus(),m.preventDefault()},onCloseAutoFocus:m=>m.preventDefault(),onFocusOutside:mt(e.onFocusOutside,m=>{m.target!==c.trigger&&i.onOpenChange(!1)}),onEscapeKeyDown:mt(e.onEscapeKeyDown,m=>{l.onClose(),m.preventDefault()}),onKeyDown:mt(e.onKeyDown,m=>{const h=m.currentTarget.contains(m.target),f=cae[l.dir].includes(m.key);h&&f&&(i.onOpenChange(!1),c.trigger?.focus(),m.preventDefault())})})})})})});ZB.displayName=YB;function QB(e){return e?"open":"closed"}function Lf(e){return e==="indeterminate"}function Lk(e){return Lf(e)?"indeterminate":e?"checked":"unchecked"}function Eae(e){const t=document.activeElement;for(const o of e)if(o===t||(o.focus(),document.activeElement!==t))return}function Aae(e,t){return e.map((o,a)=>e[(t+a)%e.length])}function Rae(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=Aae(e,Math.max(i,0));n.length===1&&(l=l.filter(p=>p!==o));const d=l.find(p=>p.toLowerCase().startsWith(n.toLowerCase()));return d!==o?d:void 0}function Dae(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],d=t[l],p=c.x,m=c.y,h=d.x,f=d.y;m>a!=f>a&&o<(h-p)*(a-m)/(f-m)+p&&(n=!n)}return n}function Oae(e,t){if(!t)return!1;const o={x:e.clientX,y:e.clientY};return Dae(o,t)}function Op(e){return t=>t.pointerType==="mouse"?e(t):void 0}var Mae=DB,Nae=Ak,Iae=MB,Lae=NB,Bae=Mk,Fae=IB,jae=jv,zae=BB,Uae=jB,qae=UB,$ae=$B,Vae=VB,Hae=HB,Gae=WB,Wae=KB,Kae=ZB,zv="DropdownMenu",[Yae]=Fl(zv,[EB]),ja=EB(),[Zae,JB]=Yae(zv),XB=e=>{const{__scopeDropdownMenu:t,children:o,dir:a,open:n,defaultOpen:i,onOpenChange:l,modal:c=!0}=e,d=ja(t),p=A.useRef(null),[m,h]=em({prop:n,defaultProp:i??!1,onChange:l,caller:zv});return w.jsx(Zae,{scope:t,triggerId:As(),triggerRef:p,contentId:As(),open:m,onOpenChange:h,onOpenToggle:A.useCallback(()=>h(f=>!f),[h]),modal:c,children:w.jsx(Mae,{...d,open:m,onOpenChange:h,dir:a,modal:c,children:o})})};XB.displayName=zv;var eF="DropdownMenuTrigger",tF=A.forwardRef((e,t)=>{const{__scopeDropdownMenu:o,disabled:a=!1,...n}=e,i=JB(eF,o),l=ja(o);return w.jsx(Nae,{asChild:!0,...l,children:w.jsx(Ro.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:Xp(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())})})})});tF.displayName=eF;var Qae="DropdownMenuPortal",oF=e=>{const{__scopeDropdownMenu:t,...o}=e,a=ja(t);return w.jsx(Iae,{...a,...o})};oF.displayName=Qae;var aF="DropdownMenuContent",nF=A.forwardRef((e,t)=>{const{__scopeDropdownMenu:o,...a}=e,n=JB(aF,o),i=ja(o),l=A.useRef(!1);return w.jsx(Lae,{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 d=c.detail.originalEvent,p=d.button===0&&d.ctrlKey===!0,m=d.button===2||p;(!n.modal||m)&&(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)"}})});nF.displayName=aF;var Jae="DropdownMenuGroup",Xae=A.forwardRef((e,t)=>{const{__scopeDropdownMenu:o,...a}=e,n=ja(o);return w.jsx(Bae,{...n,...a,ref:t})});Xae.displayName=Jae;var ene="DropdownMenuLabel",rF=A.forwardRef((e,t)=>{const{__scopeDropdownMenu:o,...a}=e,n=ja(o);return w.jsx(Fae,{...n,...a,ref:t})});rF.displayName=ene;var tne="DropdownMenuItem",iF=A.forwardRef((e,t)=>{const{__scopeDropdownMenu:o,...a}=e,n=ja(o);return w.jsx(jae,{...n,...a,ref:t})});iF.displayName=tne;var one="DropdownMenuCheckboxItem",sF=A.forwardRef((e,t)=>{const{__scopeDropdownMenu:o,...a}=e,n=ja(o);return w.jsx(zae,{...n,...a,ref:t})});sF.displayName=one;var ane="DropdownMenuRadioGroup",lF=A.forwardRef((e,t)=>{const{__scopeDropdownMenu:o,...a}=e,n=ja(o);return w.jsx(Uae,{...n,...a,ref:t})});lF.displayName=ane;var nne="DropdownMenuRadioItem",cF=A.forwardRef((e,t)=>{const{__scopeDropdownMenu:o,...a}=e,n=ja(o);return w.jsx(qae,{...n,...a,ref:t})});cF.displayName=nne;var rne="DropdownMenuItemIndicator",dF=A.forwardRef((e,t)=>{const{__scopeDropdownMenu:o,...a}=e,n=ja(o);return w.jsx($ae,{...n,...a,ref:t})});dF.displayName=rne;var ine="DropdownMenuSeparator",uF=A.forwardRef((e,t)=>{const{__scopeDropdownMenu:o,...a}=e,n=ja(o);return w.jsx(Vae,{...n,...a,ref:t})});uF.displayName=ine;var sne="DropdownMenuArrow",lne=A.forwardRef((e,t)=>{const{__scopeDropdownMenu:o,...a}=e,n=ja(o);return w.jsx(Hae,{...n,...a,ref:t})});lne.displayName=sne;var cne=e=>{const{__scopeDropdownMenu:t,children:o,open:a,onOpenChange:n,defaultOpen:i}=e,l=ja(t),[c,d]=em({prop:a,defaultProp:i??!1,onChange:n,caller:"DropdownMenuSub"});return w.jsx(Gae,{...l,open:c,onOpenChange:d,children:o})},dne="DropdownMenuSubTrigger",pF=A.forwardRef((e,t)=>{const{__scopeDropdownMenu:o,...a}=e,n=ja(o);return w.jsx(Wae,{...n,...a,ref:t})});pF.displayName=dne;var une="DropdownMenuSubContent",mF=A.forwardRef((e,t)=>{const{__scopeDropdownMenu:o,...a}=e,n=ja(o);return w.jsx(Kae,{...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)"}})});mF.displayName=une;var hF=XB,gF=tF,fF=oF,vF=nF,pne=rF,bF=iF,mne=sF,hne=lF,gne=cF,yF=dF,fne=uF,vne=cne,bne=pF,yne=mF;const Bk=({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"}));Bk.displayName="AlertTriangle";const SF=({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"}));SF.displayName="Archive";const wF=({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"}));wF.displayName="ArrowUpRight";const TF=({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"}));TF.displayName="Check";const Fk=({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"}));Fk.displayName="ChevronRight";const xF=({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"}));xF.displayName="Circle";const kF=({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"}));kF.displayName="CpuChip01";const _F=({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"}));_F.displayName="DotsHorizontal";const CF=({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"}));CF.displayName="GitBranch01";const PF=({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"}));PF.displayName="HardDrive";const EF=({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 9V3m0 0h-6m6 0-8 8m-3-6H7.8c-1.68 0-2.52 0-3.162.327a3 3 0 0 0-1.311 1.311C3 7.28 3 8.12 3 9.8v6.4c0 1.68 0 2.52.327 3.162a3 3 0 0 0 1.311 1.311C5.28 21 6.12 21 7.8 21h6.4c1.68 0 2.52 0 3.162-.327a3 3 0 0 0 1.311-1.311C19 18.72 19 17.88 19 16.2V14"}));EF.displayName="LinkExternal01";const AF=({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"}));AF.displayName="Lock01";const RF=({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"}));RF.displayName="RefreshCw01";const DF=({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"}));DF.displayName="Server01";const OF=({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"}));OF.displayName="Shield01";const MF=({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"}));MF.displayName="Users03";const NF=({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 7 7 17M7 7l10 10"}));NF.displayName="X";function Sne(e){const t=Re.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=w.jsx(hF,{"data-slot":"dropdown-menu",...o}),t[2]=o,t[3]=a):a=t[3],a}function wne(e){const t=Re.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=w.jsx(gF,{"data-slot":"dropdown-menu-trigger",...o}),t[2]=o,t[3]=a):a=t[3],a}function Tne(e){const t=Re.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=ht("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=w.jsx(fF,{children:w.jsx(vF,{"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 xne(e){const t=Re.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=ht("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 d;return t[7]!==a||t[8]!==n||t[9]!==c||t[10]!==l?(d=w.jsx(bF,{"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]=d):d=t[11],d}function Gve(e){const t=Re.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=ht("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=w.jsx("span",{className:"pointer-events-none absolute left-2 flex size-3.5 items-center justify-center",children:w.jsx(yF,{children:w.jsx(TF,{className:"size-4"})})}),t[7]=c):c=t[7];let d;return t[8]!==o||t[9]!==a||t[10]!==i||t[11]!==l?(d=w.jsxs(mne,{"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]=d):d=t[12],d}function Wve(e){const t=Re.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=w.jsx(hne,{"data-slot":"dropdown-menu-radio-group",...o}),t[2]=o,t[3]=a):a=t[3],a}function Kve(e){const t=Re.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=ht("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=w.jsx("span",{className:"pointer-events-none absolute left-2 flex size-3.5 items-center justify-center",children:w.jsx(yF,{children:w.jsx(xF,{className:"size-2 fill-current"})})}),t[6]=l):l=t[6];let c;return t[7]!==o||t[8]!==n||t[9]!==i?(c=w.jsxs(gne,{"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 Yve(e){const t=Re.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=ht("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=w.jsx(pne,{"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 Zve(e){const t=Re.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=ht("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=w.jsx(fne,{"data-slot":"dropdown-menu-separator",className:n,...a}),t[5]=a,t[6]=n,t[7]=i):i=t[7],i}function Qve(e){const t=Re.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=w.jsx(vne,{"data-slot":"dropdown-menu-sub",...o}),t[2]=o,t[3]=a):a=t[3],a}function Jve(e){const t=Re.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=ht("focus:bg-accent focus:text-accent-foreground data-[state=open]:bg-accent data-[state=open]:text-accent-foreground [&_svg:not([class*='text-'])]:text-muted-foreground flex cursor-default 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",a),t[5]=a,t[6]=l):l=t[6];let c;t[7]===Symbol.for("react.memo_cache_sentinel")?(c=w.jsx(Fk,{className:"ml-auto size-4"}),t[7]=c):c=t[7];let d;return t[8]!==o||t[9]!==n||t[10]!==i||t[11]!==l?(d=w.jsxs(bne,{"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]=d):d=t[12],d}function Xve(e){const t=Re.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=ht("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=w.jsx(yne,{"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 kne(){const e=Re.c(3),[t,o]=A.useState(-1);let a;e[0]===Symbol.for("react.memo_cache_sentinel")?(a=l=>{if(!l)return;const c=()=>o(l.clientWidth);c();const d=new ResizeObserver(c);return d.observe(l),()=>d.disconnect()},e[0]=a):a=e[0];const n=a;let i;return e[1]!==t?(i=[t,n],e[1]=t,e[2]=i):i=e[2],i}function _ne(){let e=new Map;const t=new Set,o=()=>t.forEach(a=>a());return{getSnapshot:()=>e,subscribe(a){return t.add(a),()=>{t.delete(a)}},register(a){if(e.has(a.after))throw new Error(`Two components extend breadcrumb: ${a.after}`);return e=new Map(e).set(a.after,a),o(),()=>{if(e.get(a.after)!==a)return;const n=new Map(e);n.delete(a.after),e=n,o()}}}}const jk=A.createContext(null);function Cne(e){const t=Re.c(3),{children:o}=e,[a]=A.useState(_ne);let n;return t[0]!==o||t[1]!==a?(n=w.jsx(jk,{value:a,children:o}),t[0]=o,t[1]=a,t[2]=n):n=t[2],n}function Pne(e){const t=Re.c(2),{children:o}=e;let a;return t[0]!==o?(a=w.jsx(jk,{value:null,children:o}),t[0]=o,t[1]=a):a=t[1],a}function Uv(){return A.use(jk)}function IF(e){const t=Re.c(3),o=Uv();if(!o)throw new Error("Breadcrumb contributions require Page.Breadcrumbs.Provider");let a;return t[0]!==e||t[1]!==o?(a=w.jsx("span",{hidden:!0,ref:n=>n?o.register(e):void 0}),t[0]=e,t[1]=o,t[2]=a):a=t[2],a}function Ene(e,t){const o=new Set,a=n=>{if(o.has(n.key))throw new Error(`Duplicate breadcrumb key: ${n.key}`);o.add(n.key);const i=t.get(n.key);return[{...n,...i?.parent},...i?.items?.flatMap(a)??[]]};return e.flatMap(a)}function Ane(e,t){const o=e.map(a=>a.label).filter(a=>typeof a=="string").reverse();return t&&o.push(t),o.map(a=>a.trim()).filter(Boolean).join(" · ")}const LF=5;function Rne(e,t=!1,o=LF){const a=e.map(l=>({type:"item",item:l}));if(e.length<=(t?1:o))return a;const n=t?0:1,i=e.length-(t?1:2);return a.splice(n,i-n,{type:"menu",items:e.slice(n,i)}),a}const BF=k8(function(t){return w.jsx("a",{...t,"aria-current":void 0})});function Dne(e){const t=Re.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=w.jsx(_F,{"aria-hidden":"true",className:"size-4"}),t[2]=i):i=t[2];let l;t[3]!==n?(l=w.jsx(wne,{asChild:!0,children:w.jsx(Ai,{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(One),t[5]=o,t[6]=c):c=t[6];let d;t[7]!==c?(d=w.jsx(Tne,{align:"start",children:c}),t[7]=c,t[8]=d):d=t[8];let p;return t[9]!==l||t[10]!==d?(p=w.jsxs(Sne,{children:[l,d]}),t[9]=l,t[10]=d,t[11]=p):p=t[11],p}function One(e){const t=w.jsx("span",{className:"max-w-64 truncate",title:typeof e.label=="string"?e.label:void 0,children:e.label});return w.jsx(xne,{asChild:!!e.link&&!e.onSelect,onSelect:e.onSelect,disabled:!e.onSelect&&!e.link,children:e.link&&!e.onSelect?w.jsx(BF,{...e.link,children:t}):t},e.key)}function Mne(e){const t=Re.c(14),{item:o,current:a}=e,n=typeof o.label=="string"?o.label:void 0;if(a){let l;return t[0]!==o.label||t[1]!==n?(l=w.jsx("h1",{"data-slot":"page-title","aria-current":"page",title:n,className:"truncate text-sm font-medium text-foreground",children:o.label}),t[0]=o.label,t[1]=n,t[2]=l):l=t[2],l}if(o.onSelect){let l;return t[3]!==o.label||t[4]!==o.onSelect||t[5]!==n?(l=w.jsx("button",{type:"button",onClick:o.onSelect,title:n,className:"block max-w-40 truncate rounded-lg hover:text-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",children:o.label}),t[3]=o.label,t[4]=o.onSelect,t[5]=n,t[6]=l):l=t[6],l}if(o.link){let l;return t[7]!==o.label||t[8]!==o.link||t[9]!==n?(l=w.jsx(BF,{...o.link,title:n,className:"block max-w-40 truncate rounded-lg hover:text-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",children:o.label}),t[7]=o.label,t[8]=o.link,t[9]=n,t[10]=l):l=t[10],l}let i;return t[11]!==o.label||t[12]!==n?(i=w.jsx("span",{title:n,className:"block max-w-40 truncate",children:o.label}),t[11]=o.label,t[12]=n,t[13]=i):i=t[13],i}function FF(e){const t=Re.c(21),{items:o}=e,a=ar(),[n,i]=kne();let l,c,d,p,m,h;if(t[0]!==o||t[1]!==i||t[2]!==a||t[3]!==n){const b=Rne(o,n>=0&&n<320,LF);p=i,t[10]!==a?(m=a("page.breadcrumbs"),t[10]=a,t[11]=m):m=t[11],h="min-w-0 flex-1",l="page-breadcrumbs",c="flex min-w-0 items-center gap-2 text-sm text-muted-foreground",d=b.map((S,k)=>w.jsxs("li",{className:ht("flex min-w-0 items-center gap-2",k>0&&"min-w-5",S.type==="item"?"last:min-w-16 last:flex-[1_1_auto]":"shrink-0"),children:[k>0&&w.jsx(Fk,{"aria-hidden":"true",className:"size-3 shrink-0 text-muted-foreground/60"}),S.type==="item"?w.jsx(Mne,{item:S.item,current:k===b.length-1}):w.jsx(Dne,{items:S.items})]},S.type==="item"?`item:${S.item.key}`:"menu")),t[0]=o,t[1]=i,t[2]=a,t[3]=n,t[4]=l,t[5]=c,t[6]=d,t[7]=p,t[8]=m,t[9]=h}else l=t[4],c=t[5],d=t[6],p=t[7],m=t[8],h=t[9];let f;t[12]!==l||t[13]!==c||t[14]!==d?(f=w.jsx("ol",{"data-slot":l,className:c,children:d}),t[12]=l,t[13]=c,t[14]=d,t[15]=f):f=t[15];let v;return t[16]!==p||t[17]!==m||t[18]!==h||t[19]!==f?(v=w.jsx("nav",{ref:p,"aria-label":m,className:h,children:f}),t[16]=p,t[17]=m,t[18]=h,t[19]=f,t[20]=v):v=t[20],v}function Nne(e){const t=Re.c(12),{items:o,scope:a}=e,n=Uv();if(!n)throw new Error("Page.Header requires Page.Breadcrumbs.Provider");const i=A.useSyncExternalStore(n.subscribe,n.getSnapshot,n.getSnapshot);let l,c;t[0]!==i||t[1]!==o||t[2]!==a?(l=Ene(o,i),c=Ane(l,a),t[0]=i,t[1]=o,t[2]=a,t[3]=l,t[4]=c):(l=t[3],c=t[4]);const d=c;let p;t[5]!==d?(p=d&&w.jsx("title",{children:d}),t[5]=d,t[6]=p):p=t[6];let m;t[7]!==l?(m=w.jsx(FF,{items:l}),t[7]=l,t[8]=m):m=t[8];let h;return t[9]!==p||t[10]!==m?(h=w.jsxs(w.Fragment,{children:[p,m]}),t[9]=p,t[10]=m,t[11]=h):h=t[11],h}function Ine(e){const t=Re.c(3),o=Uv();let a;return t[0]!==e||t[1]!==o?(a=o?w.jsx(IF,{...e}):w.jsx("div",{className:"min-w-0 shrink-0 border-b px-3 py-2",children:w.jsx(FF,{items:e.items??[]})}),t[0]=e,t[1]=o,t[2]=a):a=t[2],a}const Lne=Object.assign(Ine,{Provider:Cne,Detached:Pne});function Bne(e){const t=Re.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=ht("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=w.jsx("div",{...a,"data-slot":"page",className:n}),t[5]=a,t[6]=n,t[7]=i):i=t[7],i}function Fne(e){const t=Re.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=ht("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=w.jsx("div",{...a,"data-slot":"page-content",className:n}),t[5]=a,t[6]=n,t[7]=i):i=t[7],i}const jne={reading:"max-w-[720px]",standard:"max-w-5xl",wide:"max-w-[1200px]",fluid:"max-w-none"},zne="px-4 md:pl-6 md:pr-8",jF=A.createContext(!1);function Une(e){const t=Re.c(12);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=A.use(jF);let c;t[4]!==o||t[5]!==l||t[6]!==i?(c=ht("w-full",l?ht(zne,"pt-4 pb-8"):"mx-auto px-4 py-6 md:px-8 md:py-8",jne[i],o),t[4]=o,t[5]=l,t[6]=i,t[7]=c):c=t[7];let d;return t[8]!==a||t[9]!==c||t[10]!==i?(d=w.jsx("div",{...a,"data-slot":"page-container","data-width":i,className:c}),t[8]=a,t[9]=c,t[10]=i,t[11]=d):d=t[11],d}function qne(e){const t=Re.c(9),{children:o,actions:a,className:n}=e,i=Uv();let l;t[0]!==o||t[1]!==n||t[2]!==i?(l=i?w.jsx(IF,{after:"page",parent:{label:o}}):w.jsx("div",{"data-slot":"page-title",className:ht("flex flex-wrap items-center justify-between gap-3",n),children:w.jsx("h1",{className:"min-w-0 text-xl font-medium",children:o})}),t[0]=o,t[1]=n,t[2]=i,t[3]=l):l=t[3];let c;t[4]!==a?(c=a&&w.jsx(zF,{children:a}),t[4]=a,t[5]=c):c=t[5];let d;return t[6]!==l||t[7]!==c?(d=w.jsxs(w.Fragment,{children:[l,c]}),t[6]=l,t[7]=c,t[8]=d):d=t[8],d}function zF(e){const t=Re.c(3),{children:o,secondary:a}=e;let n;if(t[0]!==o||t[1]!==a){const i=w.jsxs("div",{"data-slot":"page-actions",className:"flex shrink-0 items-center gap-2",children:[a,o]});n=w.jsx(sn.Topbar.Right.Portal,{fallback:i,children:i}),t[0]=o,t[1]=a,t[2]=n}else n=t[2];return n}function $ne(e){const t=Re.c(28),{breadcrumbs:o,scope:a,leading:n,actions:i,navigation:l,trailingActions:c}=e;let d;t[0]!==o||t[1]!==a?(d=w.jsx(Nne,{items:o,scope:a}),t[0]=o,t[1]=a,t[2]=d):d=t[2];let p;t[3]===Symbol.for("react.memo_cache_sentinel")?(p=w.jsx(sn.Topbar.Left.Target,{}),t[3]=p):p=t[3];let m;t[4]!==n||t[5]!==d?(m=w.jsxs(sn.Topbar.Left,{className:"flex-1 gap-2",children:[n,d,p]}),t[4]=n,t[5]=d,t[6]=m):m=t[6];let h;t[7]!==i?(h=w.jsx("div",{className:"peer flex min-w-0 items-center gap-2 empty:hidden",children:i}),t[7]=i,t[8]=h):h=t[8];let f;t[9]===Symbol.for("react.memo_cache_sentinel")?(f=w.jsx(sn.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[9]=f):f=t[9];let v;t[10]!==h||t[11]!==c?(v=w.jsxs(sn.Topbar.Right,{className:"shrink-0 gap-2",children:[h,f,c]}),t[10]=h,t[11]=c,t[12]=v):v=t[12];let b;t[13]!==m||t[14]!==v?(b=w.jsxs(sn.Topbar,{className:"gap-3 border-b border-border/60 px-3","data-testid":"page-header",children:[m,v]}),t[13]=m,t[14]=v,t[15]=b):b=t[15];let S;t[16]!==l?(S=w.jsx("div",{"data-toolbar-content":"",className:"min-w-0 empty:hidden",children:l}),t[16]=l,t[17]=S):S=t[17];let k;t[18]===Symbol.for("react.memo_cache_sentinel")?(k=w.jsx(sn.Toolbar.Left.Target,{}),t[18]=k):k=t[18];let T;t[19]!==S?(T=w.jsxs(sn.Toolbar.Left,{children:[S,k]}),t[19]=S,t[20]=T):T=t[20];let x;t[21]===Symbol.for("react.memo_cache_sentinel")?(x=w.jsx(sn.Toolbar.Center,{className:"@max-xl/panel-toolbar:order-last @max-xl/panel-toolbar:basis-full [&:not(:has([data-toolbar-content]:not(:empty)))]:hidden",children:w.jsx(sn.Toolbar.Center.Target,{})}),t[21]=x):x=t[21];let E;t[22]===Symbol.for("react.memo_cache_sentinel")?(E=w.jsx(sn.Toolbar.Right,{children:w.jsx(sn.Toolbar.Right.Target,{})}),t[22]=E):E=t[22];let C;t[23]!==T?(C=w.jsxs(sn.Toolbar,{children:[T,x,E]}),t[23]=T,t[24]=C):C=t[24];let P;return t[25]!==C||t[26]!==b?(P=w.jsxs(w.Fragment,{children:[b,C]}),t[25]=C,t[26]=b,t[27]=P):P=t[27],P}function Vne(e){const t=Re.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=ht("-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=w.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 Hne(e){const t=Re.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",d=l&&o?"page":void 0,p=l?void 0:o;let m;t[5]!==a?(m=ht("shrink-0",a),t[5]=a,t[6]=m):m=t[6];let h;return t[7]!==l||t[8]!==n||t[9]!==c||t[10]!==d||t[11]!==p||t[12]!==m?(h=w.jsx(Ai,{asChild:l,variant:"tab",size:"sm",...n,type:c,"aria-current":d,"aria-pressed":p,"data-slot":"page-tab",className:m}),t[7]=l,t[8]=n,t[9]=c,t[10]=d,t[11]=p,t[12]=m,t[13]=h):h=t[13],h}const sd=Object.assign(Bne,{Header:$ne,Tabs:Vne,Tab:Hne,Actions:zF,Content:Fne,Container:Object.assign(Une,{Inset:jF}),Title:qne,Breadcrumbs:Lne});var ge=typeof window<"u"?window:void 0,ia=typeof globalThis<"u"?globalThis:ge;typeof self>"u"&&(ia.self=ia),typeof File>"u"&&(ia.File=function(){});var En=ia?.navigator,ze=ia?.document,wa=ia?.location,uT=ia?.fetch,pT=ia!=null&&ia.XMLHttpRequest&&"withCredentials"in new ia.XMLHttpRequest?ia.XMLHttpRequest:void 0,YD=ia?.AbortController,Gne=ia?.CompressionStream,ln=En?.userAgent,et=ge??{},ZD="1.372.3",Ga={DEBUG:!1,LIB_VERSION:ZD,LIB_NAME:"web",JS_SDK_VERSION:ZD};function QD(e,t,o,a,n,i,l){try{var c=e[i](l),d=c.value}catch(p){return void o(p)}c.done?t(d):Promise.resolve(d).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(d){QD(i,a,n,l,c,"next",d)}function c(d){QD(i,a,n,l,c,"throw",d)}l(void 0)}))}}function Ne(){return Ne=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},Ne.apply(null,arguments)}function UF(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 mT(){return mT=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 d=Kn((function*(p){try{yield n.abort(p)}catch{}throw p}));return function(p){return d.apply(this,arguments)}})()),l=new Response(a.readable).blob(),[c]=yield Promise.all([l,i]);return c}catch(d){if(o!=null&&o.rethrow)throw d;return t&&console.error("Failed to gzip compress data",d),null}})),mT.apply(this,arguments)}var Wne=["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"],JD=function(e,t){if(t===void 0&&(t=[]),!e)return!1;var o=e.toLowerCase();return Wne.concat(t).some((a=>{var n=a.toLowerCase();return o.indexOf(n)!==-1}))},Kne=["$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 _t(e,t){return e.indexOf(t)!==-1}var qv=function(e){return e.trim()},hT=function(e){return e.replace(/^\$/,"")},qF=Object.prototype,$F=qF.hasOwnProperty,$v=qF.toString,Lt=Array.isArray||function(e){return $v.call(e)==="[object Array]"},xi=e=>typeof e=="function",Bo=e=>e===Object(e)&&!Lt(e),Xc=e=>{if(Bo(e)){for(var t in e)if($F.call(e,t))return!1;return!0}return!1},$e=e=>e===void 0,Co=e=>$v.call(e)=="[object String]",af=e=>Co(e)&&e.trim().length===0,Ni=e=>e===null,Ct=e=>$e(e)||Ni(e),Xn=e=>$v.call(e)=="[object Number]"&&e==e,Gc=e=>Xn(e)&&e>0,qr=e=>$v.call(e)==="[object Boolean]",Yne=e=>e instanceof FormData,Zne=e=>_t(Kne,e);function VF(e){return e===null||typeof e!="object"}function Bf(e,t){return{}.toString.call(e)==="[object "+t+"]"}function zk(e){return typeof Event<"u"&&(function(t,o){try{return t instanceof o}catch{return!1}})(e,Event)}var Qne=[!0,"true",1,"1","yes"],v0=e=>_t(Qne,e),Jne=[!1,"false",0,"0","no"];function $r(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),$r(n||o,t,o,a))}let Xne=class{constructor(t){this.$t={},this.zt=t.zt,this.Ut=$r(t.bucketSize,0,100,t.Gt),this.Wt=$r(t.refillRate,0,this.Ut,t.Gt),this.Xt=$r(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 Mg,XD,b0,Rn="Mobile",Ff="iOS",Pi="Android",wd="Tablet",HF=Pi+" "+wd,GF="iPad",WF="Apple",KF=WF+" Watch",dp="Safari",Td="BlackBerry",YF="Samsung",ZF=YF+"Browser",QF=YF+" Internet",_l="Chrome",ere=_l+" OS",JF=_l+" "+Ff,Uk="Internet Explorer",XF=Uk+" "+Rn,qk="Opera",tre=qk+" Mini",$k="Edge",ej="Microsoft "+$k,ld="Firefox",tj=ld+" "+Ff,Mp="Nintendo",Np="PlayStation",cd="Xbox",oj=Pi+" "+Rn,aj=Rn+" "+dp,ep="Windows",gT=ep+" Phone",eO="Nokia",fT="Ouya",nj="Generic",ore=nj+" "+Rn.toLowerCase(),rj=nj+" "+wd.toLowerCase(),vT="Konqueror",Ha="(\\d+(\\.\\d+)?)",y0=new RegExp("Version/"+Ha),are=new RegExp(cd,"i"),nre=new RegExp(Np+" \\w+","i"),rre=new RegExp(Mp+" \\w+","i"),Vk=new RegExp(Td+"|PlayBook|BB10","i"),ire={"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"},ij=function(e,t){return t=t||"",_t(e," OPR/")&&_t(e,"Mini")?tre:_t(e," OPR/")?qk:Vk.test(e)?Td:_t(e,"IE"+Rn)||_t(e,"WPDesktop")?XF:_t(e,ZF)?QF:_t(e,$k)||_t(e,"Edg/")?ej:_t(e,"FBIOS")?"Facebook "+Rn:_t(e,"UCWEB")||_t(e,"UCBrowser")?"UC Browser":_t(e,"CriOS")?JF:_t(e,"CrMo")||_t(e,_l)?_l:_t(e,Pi)&&_t(e,dp)?oj:_t(e,"FxiOS")?tj:_t(e.toLowerCase(),vT.toLowerCase())?vT:((o,a)=>a&&_t(a,WF)||(function(n){return _t(n,dp)&&!_t(n,_l)&&!_t(n,Pi)})(o))(e,t)?_t(e,Rn)?aj:dp:_t(e,ld)?ld:_t(e,"MSIE")||_t(e,"Trident/")?Uk:_t(e,"Gecko")?ld:""},sre={[XF]:[new RegExp("rv:"+Ha)],[ej]:[new RegExp($k+"?\\/"+Ha)],[_l]:[new RegExp("("+_l+"|CrMo)\\/"+Ha)],[JF]:[new RegExp("CriOS\\/"+Ha)],"UC Browser":[new RegExp("(UCBrowser|UCWEB)\\/"+Ha)],[dp]:[y0],[aj]:[y0],[qk]:[new RegExp("(Opera|OPR)\\/"+Ha)],[ld]:[new RegExp(ld+"\\/"+Ha)],[tj]:[new RegExp("FxiOS\\/"+Ha)],[vT]:[new RegExp("Konqueror[:/]?"+Ha,"i")],[Td]:[new RegExp(Td+" "+Ha),y0],[oj]:[new RegExp("android\\s"+Ha,"i")],[QF]:[new RegExp(ZF+"\\/"+Ha)],[Uk]:[new RegExp("(rv:|MSIE )"+Ha)],Mozilla:[new RegExp("rv:"+Ha)]},lre=function(e,t){var o=ij(e,t),a=sre[o];if($e(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},tO=[[new RegExp(cd+"; "+cd+" (.*?)[);]","i"),e=>[cd,e&&e[1]||""]],[new RegExp(Mp,"i"),[Mp,""]],[new RegExp(Np,"i"),[Np,""]],[Vk,[Td,""]],[new RegExp(ep,"i"),(e,t)=>{if(/Phone/.test(t)||/WPDesktop/.test(t))return[gT,""];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=ire[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]?[Ff,[e[3],e[4],e[5]||"0"].join(".")]:[Ff,""]],[/(watch.*\/(\d+\.\d+\.\d+)|watch os,(\d+\.\d+),)/i,e=>{var t="";return e&&e.length>=3&&(t=$e(e[2])?e[3]:e[2]),["watchOS",t]}],[new RegExp("("+Pi+" (\\d+)\\.(\\d+)\\.?(\\d+)?|"+Pi+")","i"),e=>e&&e[2]?[Pi,[e[2],e[3],e[4]||"0"].join(".")]:[Pi,""]],[/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/,[ere,""]],[/Linux|debian/i,["Linux",""]]],oO=function(e){return rre.test(e)?Mp:nre.test(e)?Np:are.test(e)?cd:new RegExp(fT,"i").test(e)?fT:new RegExp("("+gT+"|WPDesktop)","i").test(e)?gT:/iPad/.test(e)?GF:/iPod/.test(e)?"iPod Touch":/iPhone/.test(e)?"iPhone":/(watch)(?: ?os[,/]|\d,\d\/)[\d.]+/i.test(e)?KF:Vk.test(e)?Td:/(kobo)\s(ereader|touch)/i.test(e)?"Kobo":new RegExp(eO,"i").test(e)?eO:/(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)?Pi:HF:new RegExp("(pda|"+Rn+")","i").test(e)?ore:new RegExp(wd,"i").test(e)&&!new RegExp(wd+" pc","i").test(e)?rj:""},cre=e=>e instanceof Error,sj={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}},dre=sj.info;function lj(e){if(qr(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(Lt(e))return{arrayValue:{values:e.map((t=>lj(t)))}};try{return{stringValue:JSON.stringify(e)}}catch{return{stringValue:String(e)}}}function aO(e){var t=[];for(var o in e){var a=e[o];Ni(a)||$e(a)||t.push({key:o,value:lj(a)})}return t}function ure(e){var t=globalThis._posthogChunkIds;if(t){var o=Object.keys(t);return b0&&o.length===XD||(XD=o.length,b0=o.reduce(((a,n)=>{Mg||(Mg={});var i=Mg[n];if(i)a[i[0]]=i[1];else for(var l=e(n),c=l.length-1;c>=0;c--){var d=l[c],p=d?.filename,m=t[n];if(p&&m){a[p]=m,Mg[n]=[p,m];break}}return a}),{})),b0}}class pre{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&&Lt(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)),Ne({},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,Ne({},o,{handled:!0}))),c}buildParsingContext(t){var o;return{chunkIdMap:ure(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 Ne({},o,{syntheticException:a==0?o.syntheticException:void 0,mechanism:t,apply:i=>n(i,a),next:i=>n(i,a+1)})}}var xd="?";function bT(e,t,o,a,n){var i={platform:e,filename:t,function:o==="<anonymous>"?xd:o,in_app:!0};return $e(a)||(i.lineno=a),$e(n)||(i.colno=n),i}var cj=(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]:xd,o?"safari-extension:"+t:"safari-web-extension:"+t]:[e,t]},mre=/^\s*at (\S+?)(?::(\d+))(?::(\d+))\s*$/i,hre=/^\s*at (?:(.+?\)(?: \[.+\])?|.*?) ?\((?:address at )?)?(?:async )?((?:<anonymous>|[-a-z]+:|.*bundle|\/)?.*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,gre=/\((\S*)(?::(\d+))(?::(\d+))\)/,fre=(e,t)=>{var o=mre.exec(e);if(o){var[,a,n,i]=o;return bT(t,a,xd,+n,+i)}var l=hre.exec(e);if(l){if(l[2]&&l[2].indexOf("eval")===0){var c=gre.exec(l[2]);c&&(l[2]=c[1],l[3]=c[2],l[4]=c[3])}var[d,p]=cj(l[1]||xd,l[2]);return bT(t,p,d,l[3]?+l[3]:void 0,l[4]?+l[4]:void 0)}},vre=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:[-a-z]+)?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js)|\/[\w\-. /=]+)(?::(\d+))?(?::(\d+))?\s*$/i,bre=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i,yre=(e,t)=>{var o=vre.exec(e);if(o){if(o[3]&&o[3].indexOf(" > eval")>-1){var a=bre.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]||xd;return[i,n]=cj(i,n),bT(t,n,i,o[4]?+o[4]:void 0,o[5]?+o[5]:void 0)}},nO=/\(error: (.*)\)/;let Sre=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 Bf(t,"DOMException")}isDOMError(t){return Bf(t,"DOMError")}};class wre{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 Tre=class{constructor(){}match(t){return Bf(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 xre=/^(?:[Uu]ncaught (?:exception: )?)?(?:((?:Eval|Internal|Range|Reference|Syntax|Type|URI|)Error): )?(.*)$/i;let kre=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(xre);return n&&(o=n[1],a=n[2]),[o,a]}};var _re=["fatal","error","warning","log","info","debug"];function dj(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 Cre=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 zk(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: "+dj(t)}isSeverityLevel(t){return Co(t)&&!af(t)&&_re.indexOf(t)>=0}getErrorPropertyFromObject(t){for(var o in t)if({}.hasOwnProperty.call(t,o)){var a=t[o];if(cre(a))return a}}getObjectClassName(t){try{var o=Object.getPrototypeOf(t);return o?o.constructor.name:void 0}catch{return}}},Pre=class{match(t){return zk(t)}coerce(t,o){var a,n=t.constructor.name;return{type:n,value:n+" captured as exception with keys: "+dj(t),stack:(a=o.syntheticException)==null?void 0:a.stack,synthetic:!0}}},Ere=class{match(t){return VF(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}}},Are=class{match(t){return Bf(t,"PromiseRejectionEvent")||this.isCustomEventWrappingRejection(t)}isCustomEventWrappingRejection(t){if(!zk(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 VF(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 jf="$message",zf="$timestamp",Rre=new Set([jf,zf]),S0={enabled:!0,max_bytes:32768};function Uf(e){var t;return e?{enabled:(t=e.enabled)!==null&&t!==void 0?t:S0.enabled,max_bytes:Ore(e.max_bytes,S0.max_bytes)}:Ne({},S0)}let Dre=class{constructor(t){this.Kt=[],this.Qt=0,this.Bt=Uf(t)}setConfig(t){this.Bt=Uf(t),this.er()}add(t){var o=(function(n){var i=(function(m){var h=new WeakSet;try{return JSON.stringify(m,((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(h.has(v))return"[Circular]";h.add(v)}return v}}))}catch{return}})(n);if(i)try{var l=JSON.parse(i);if(!Bo(l))return;var c=l,d=c[jf],p=c[zf];return!Co(d)||d.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 Ore(e,t){if(!Xn(e)||e===1/0||e===-1/0)return t;var o=Math.floor(e);return 0>o?t:o}var uj=function(e,t){var{debugEnabled:o}=t===void 0?{}:t,a={C(n){if(ge&&(Ga.DEBUG||et.POSTHOG_DEBUG||o)&&!$e(ge.console)&&ge.console){for(var i=("__rrweb_original__"in ge.console[n])?ge.console[n].__rrweb_original__:ge.console[n],l=arguments.length,c=new Array(l>1?l-1:0),d=1;l>d;d++)c[d-1]=arguments[d];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)=>uj(e+" "+n,i)};return a},Ue=uj("[PostHog.js]"),To=Ue.createLogger,Mre=To("[ExternalScriptsLoader]"),w0=(e,t,o)=>{if(e.config.disable_external_dependency_loading)return Mre.warn(t+" was requested but loading of external scripts is disabled."),o("Loading of external scripts is disabled");var a=ze?.querySelectorAll("script");if(a){for(var n,i=function(){if(a[l].src===t){var d=a[l];return d.__posthog_loading_callback_fired?{v:o()}:(d.addEventListener("load",(p=>{d.__posthog_loading_callback_fired=!0,o(void 0,p)})),d.onerror=p=>o(p),{v:void 0})}},l=0;a.length>l;l++)if(n=i())return n.v}var c=()=>{if(!ze)return o("document not found");var d=ze.createElement("script");if(d.type="text/javascript",d.crossOrigin="anonymous",d.src=t,d.onload=h=>{d.__posthog_loading_callback_fired=!0,o(void 0,h)},d.onerror=h=>o(h),e.config.prepare_external_dependency_script&&(d=e.config.prepare_external_dependency_script(d)),!d)return o("prepare_external_dependency_script returned null");if(e.config.external_scripts_inject_target==="head")ze.head.appendChild(d);else{var p,m=ze.querySelectorAll("body > script");m.length>0?(p=m[0].parentNode)==null||p.insertBefore(d,m[0]):ze.body.appendChild(d)}};ze!=null&&ze.body?c():ze?.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)}w0(e,a,o)}else{var l=e.requestRouter.endpointFor("assets","/array/"+e.config.token+"/config.js");w0(e,l,o)}},et.__PosthogExtensions__.loadSiteApp=(e,t,o)=>{var a=e.requestRouter.endpointFor("api",t);w0(e,a,o)};var pj="$people_distinct_id",qf="$device_id",tp="__alias",op="__timers",yT="$autocapture_disabled_server_side",ST="$heatmaps_enabled_server_side",wT="$exception_capture_enabled_server_side",TT="$error_tracking_suppression_rules",xT="$error_tracking_capture_extension_exceptions",kT="$web_vitals_enabled_server_side",Hk="$dead_clicks_enabled_server_side",_T="$product_tours_enabled_server_side",CT="$web_vitals_allowed_metrics",ap="$session_recording_remote_config",mj="$replay_override_sampling",hj="$replay_override_linked_flag",gj="$replay_override_url_trigger",fj="$replay_override_event_trigger",$f="$sesid",Gk="$session_is_sampled",ed="$enabled_feature_flags",nf="$active_feature_flags",np="$early_access_features",PT="$feature_flag_details",ET="$feature_flag_payloads",AT="$feature_flag_request_id",Ti="$override_feature_flags",Wc="$override_feature_flag_payloads",rp="$stored_person_properties",gl="$stored_group_properties",RT="$surveys",DT="$surveys_activated",rf="ph_product_tours",up="$flag_call_reported",OT="$flag_call_reported_session_id",MT="$feature_flag_errors",Vf="$feature_flag_evaluated_at",pr="$user_state",NT="$client_session_props",IT="$capture_rate_limit",LT="$initial_campaign_params",BT="$initial_referrer_info",Hf="$initial_person_info",Gf="$epp",vj="__POSTHOG_TOOLBAR__",Ng="$posthog_cookieless",bj="$sdk_debug_extensions_init_method",yj="$sdk_debug_extensions_init_time_ms",Sj="$sdk_debug_recording_script_not_loaded",Wk="PostHog loadExternalDependency extension not found.",fl="on_reject",ki="always",Ic="anonymous",Lc="identified",FT="identified_only",Wf="visibilitychange",Kf="beforeunload",Kc="$pageview",T0="$pageleave",x0="$identify",rO="$groupidentify";function Ig(e,t){Lt(e)&&e.forEach(t)}function vo(e,t){if(!Ct(e))if(Lt(e))e.forEach(t);else if(Yne(e))e.forEach(((a,n)=>t(a,n)));else for(var o in e)$F.call(e,o)&&t(e[o],o)}var Mo=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 sf(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 iO=function(e){try{return e()}catch{return}},Nre=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){Ue.critical("Implementation error. Please turn on debug mode and open a ticket on https://app.posthog.com/home#panel=support%3Asupport%3A."),Ue.critical(n)}}},Kk=function(e){var t={};return vo(e,(function(o,a){(Co(o)&&o.length>0||Xn(o))&&(t[a]=o)})),t},Ire=["herokuapp.com","vercel.app","netlify.app"];function Lre(e){var t=e?.hostname;if(!Co(t))return!1;var o=t.split(".").slice(-2).join(".");for(var a of Ire)if(o===a)return!1;return!0}function Zo(e,t,o,a){var{capture:n=!1,passive:i=!0}=a??{};e?.addEventListener(t,o,{capture:n,passive:i})}function wj(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 Yf{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 Yf(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 Yf(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 Bre{constructor(){this.I=0,this.S=0,this.k=new Fre}generate(){var t=this.generateOrAbort();if($e(t)){this.I=0;var o=this.generateOrAbort();if($e(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 Yf.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 sO,Tj=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};ge&&!$e(ge.crypto)&&crypto.getRandomValues&&(Tj=e=>crypto.getRandomValues(e));class Fre{constructor(){this.T=new Uint32Array(8),this.N=1/0}nextUint32(){return this.T.length>this.N||(Tj(this.T),this.N=0),this.T[this.N++]}}var ws=()=>jre().toString(),jre=()=>(sO||(sO=new Bre)).generate(),Bu="",zre=/[a-z0-9][a-z0-9-]+\.[a-z]{2,}$/i,Ur={R:()=>!!ze,B(e){Ue.error("cookieStore error: "+e)},O(e){if(ze){try{for(var t=e+"=",o=ze.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(Ur.O(e))||{}}catch{}return t},M(e,t,o,a,n){if(ze)try{var i="",l="",c=(function(m,h){if(h){var f=(function(b,S){if(S===void 0&&(S=ze),Bu)return Bu;if(!S||["localhost","127.0.0.1"].includes(b))return"";for(var k=b.split("."),T=Math.min(k.length,8),x="dmn_chk_"+ws();!Bu&&T--;){var E=k.slice(T).join("."),C=x+"=1;domain=."+E+";path=/";S.cookie=C+";max-age=3",S.cookie.includes(x)&&(S.cookie=C+";max-age=0",Bu=E)}return Bu})(m);if(!f){var v=(b=>{var S=b.match(zre);return S?S[0]:""})(m);v!==f&&Ue.info("Warning: cookie subdomain discovery mismatch",v,f),f=v}return f?"; domain=."+f:""}return""})(ze.location.hostname,a);if(o){var d=new Date;d.setTime(d.getTime()+864e5*o),i="; expires="+d.toUTCString()}n&&(l="; secure");var p=e+"="+encodeURIComponent(JSON.stringify(t))+i+"; SameSite=Lax; path=/"+c+l;return p.length>3686.4&&Ue.warn("cookieStore warning: large cookie, len="+p.length),ze.cookie=p,p}catch{return}},F(e,t){if(ze!=null&&ze.cookie)try{Ur.M(e,"",-1,t)}catch{return}}},k0=null,_o={R(){if(!Ni(k0))return k0;var e=!0;if($e(ge))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||Ue.error("localStorage unsupported; falling back to cookie store"),k0=e,e},B(e){Ue.error("localStorage error: "+e)},O(e){try{return ge?.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{ge?.localStorage.setItem(e,JSON.stringify(t))}catch(o){_o.B(o)}},F(e){try{ge?.localStorage.removeItem(e)}catch(t){_o.B(t)}}},Ure=[qf,"distinct_id",$f,Gk,Gf,Hf,pr],Lg={},qre={R:()=>!0,B(e){Ue.error("memoryStorage error: "+e)},O:e=>Lg[e]||null,Z:e=>Lg[e]||null,M(e,t){Lg[e]=t},F(e){delete Lg[e]}},dl=null,Ta={R(){if(!Ni(dl))return dl;if(dl=!0,$e(ge))dl=!1;else try{var e="__support__";Ta.M(e,"xyz"),Ta.O(e)!=='"xyz"'&&(dl=!1),Ta.F(e)}catch{dl=!1}return dl},B(e){Ue.error("sessionStorage error: ",e)},O(e){try{return ge?.sessionStorage.getItem(e)}catch(t){Ta.B(t)}return null},Z(e){try{return JSON.parse(Ta.O(e))||null}catch{}return null},M(e,t){try{ge?.sessionStorage.setItem(e,JSON.stringify(t))}catch(o){Ta.B(o)}},F(e){try{ge?.sessionStorage.removeItem(e)}catch(t){Ta.B(t)}}};class $re{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===ki||this.isRejected()||this.consent===-1&&this.Bt.cookieless_mode===fl}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 v0(t)?1:_t(Jne,t)?0:-1}get nr(){var t=this.Bt.opt_out_capturing_persistence_type,o=t==="localStorage"?_o:Ur;if(!this.ar||this.ar!==o){this.ar=o;var a=t==="localStorage"?Ur:_o;a.O(this.sr)&&(this.ar.O(this.sr)||this.optInOut(v0(a.O(this.sr))),a.F(this.sr,this.Bt.cross_subdomain_cookie))}return this.ar}rr(){return!!this.Bt.respect_dnt&&[En?.doNotTrack,En?.msDoNotTrack,et.doNotTrack].some((t=>v0(t)))}}var Bg=To("[Dead Clicks]"),Vre=()=>!0,Hre=e=>{var t,o=!((t=e.instance.persistence)==null||!t.get_property(Hk)),a=e.instance.config.capture_dead_clicks;return qr(a)?a:!!Bo(a)||o};class lO{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({[Hk]: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?Bg.error("failed to load script",n):t()}))}hr(){var t;if(ze){if(!this.lr&&(t=et.__PosthogExtensions__)!=null&&t.initDeadClicksAutocapture){var o=Bo(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(ze),Bg.info("starting...")}}else Bg.error("`document` not found. Cannot start.")}stop(){this.lr&&(this.lr.stop(),this.lr=void 0,Bg.info("stopping..."))}}var _0=To("[SegmentIntegration]"),xj="posthog-js";function kj(e,t){var{organization:o,projectId:a,prefix:n,severityAllowList:i=["error"],sendExceptionsToPostHog:l=!0}=t===void 0?{}:t;return c=>{var d,p,m,h,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=((d=c.exception)==null?void 0:d.values)||[],k=S.map((x=>Ne({},x,{stacktrace:x.stacktrace?Ne({},x.stacktrace,{type:"raw",frames:(x.stacktrace.frames||[]).map((E=>Ne({},E,{platform:"web:javascript"})))}):void 0}))),T={$exception_message:((p=S[0])==null?void 0:p.value)||c.message,$exception_type:(m=S[0])==null?void 0:m.type,$exception_level:c.level,$exception_list:k,$sentry_event_id:c.event_id,$sentry_exception:c.exception,$sentry_exception_message:((h=S[0])==null?void 0:h.value)||c.message,$sentry_exception_type:(f=S[0])==null?void 0:f.type,$sentry_tags:c.tags};return o&&a&&(T.$sentry_url=(n||"https://sentry.io/organizations/")+o+"/issues/?project="+a+"&query="+c.event_id),l&&((b=e.exceptions)==null||b.sendExceptionEvent(T)),c}}class Gre{constructor(t,o,a,n,i,l){this.name=xj,this.setupOnce=function(c){c(kj(t,{organization:o,projectId:a,prefix:n,severityAllowList:i,sendExceptionsToPostHog:l==null||l}))}}}class cO{constructor(t){this.cr=(o,a,n)=>{n&&(n.noSessionId||n.activityTimeout||n.sessionPastMaximumLength)&&(Ue.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=ge?.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:d,maxContentHeight:p,lastContentY:m,maxContentY:h}=i;if(!($e(l)||$e(c)||$e(d)||$e(p)||$e(m)||$e(h))){l=Math.ceil(l),c=Math.ceil(c),d=Math.ceil(d),p=Math.ceil(p),m=Math.ceil(m),h=Math.ceil(h);var f=l>1?$r(c/l,0,1,Ue):1,v=l>1?$r(d/l,0,1,Ue):1,b=p>1?$r(m/p,0,1,Ue):1,S=p>1?$r(h/p,0,1,Ue):1;n=Mo(n,{$prev_pageview_last_scroll:c,$prev_pageview_last_scroll_percentage:f,$prev_pageview_max_scroll:d,$prev_pageview_max_scroll_percentage:v,$prev_pageview_last_content:m,$prev_pageview_last_content_percentage:b,$prev_pageview_max_content:h,$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 Wre={[pj]:{exposure:"hidden"},[tp]:{exposure:"hidden"},__cmpns:{exposure:"hidden"},[op]:{exposure:"hidden"},[yT]:{exposure:"event"},[ST]:{exposure:"hidden"},[wT]:{exposure:"event"},[TT]:{exposure:"hidden"},[xT]:{exposure:"event"},[kT]:{exposure:"event"},[Hk]:{exposure:"event"},[_T]:{exposure:"hidden"},[CT]:{exposure:"event"},[ap]:{exposure:"hidden"},$session_recording_enabled_server_side:{exposure:"hidden"},[$f]:{exposure:"hidden"},[Gk]:{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(!Bo(e))return{};for(var t={},o=Object.keys(e),a=0;o.length>a;a++)t["$feature/"+o[a]]=e[o[a]];return t}},[nf]:{exposure:"event"},[np]:{exposure:"hidden"},[PT]:{exposure:"hidden"},[ET]:{exposure:"event"},[AT]:{exposure:"event"},[Ti]:{exposure:"event"},[Wc]:{exposure:"hidden"},[rp]:{exposure:"hidden"},[gl]:{exposure:"hidden"},[RT]:{exposure:"hidden"},[DT]:{exposure:"event"},[rf]:{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"},[OT]:{exposure:"hidden"},[MT]:{exposure:"hidden"},[Vf]:{exposure:"hidden"},[pr]:{exposure:"hidden"},[NT]:{exposure:"hidden"},[IT]:{exposure:"hidden"},[LT]:{exposure:"hidden"},[BT]:{exposure:"hidden"},[Hf]:{exposure:"hidden"},[Gf]:{exposure:"hidden"},[mj]:{exposure:"event"},[hj]:{exposure:"event"},[gj]:{exposure:"event"},[fj]:{exposure:"event"},[bj]:{exposure:"event"},[yj]:{exposure:"event"},[Sj]:{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"}},Kre=[["$posthog_sr_group_event_trigger_",{exposure:"hidden"}],["$posthog_sr_group_url_trigger_",{exposure:"hidden"}],["$posthog_sr_group_sampling_",{exposure:"hidden"}]],Zf=e=>{var t=ze?.createElement("a");return $e(t)?null:(t.href=e,t)},Qf=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(!Lt(o)||2>o.length)return"";var l=o[1];try{l=decodeURIComponent(l)}catch{Ue.error("Skipping decoding for malformed query param: "+l)}return l.replace(/\+/g," ")},Ip=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],d=(l||"").split("&"),p=[],m=0;d.length>m;m++){var h=d[m].split("=");Lt(h)&&(t.includes(h[0])?p.push(h[0]+"="+o):p.push(d[m]))}var f=c;return l!=null&&(f+="?"+p.join("&")),n!=null&&(f+="#"+n),f},Jf=function(e,t){var o=e.match(new RegExp(t+"=([^&]*)"));return o?o[1]:null},Fg="https?://(.*)",kd=["gclid","gclsrc","dclid","gbraid","wbraid","fbclid","msclkid","twclid","li_fat_id","igshid","ttclid","rdt_cid","epik","qclid","sccid","irclid","_kx"],Yre=["utm_source","utm_medium","utm_campaign","utm_content","utm_term","gad_source","mc_cid",...kd],Lp="<masked>",Zre=["li_fat_id"];function _j(e,t,o){if(!ze)return{};var a,n=t?[...kd,...o||[]]:[],i=Cj(Ip(ze.URL,n,Lp),e),l=(a={},vo(Zre,(function(c){var d=Ur.O(c);a[c]=d||null})),a);return Mo(l,i)}function Cj(e,t){var o=Yre.concat(t||[]),a={};return vo(o,(function(n){var i=Qf(e,n);a[n]=i||null})),a}function Pj(e){var t=(function(i){return i?i.search(Fg+"google.([^/?]*)")===0?"google":i.search(Fg+"bing.com")===0?"bing":i.search(Fg+"yahoo.com")===0?"yahoo":i.search(Fg+"duckduckgo.com")===0?"duckduckgo":null:null})(e),o=t!="yahoo"?"q":"p",a={};if(!Ni(t)){a.$search_engine=t;var n=ze?Qf(ze.referrer,o):"";n.length&&(a.ph_keyword=n)}return a}function dO(){return navigator.language||navigator.userLanguage}var Xf="$direct";function Ej(){return ze?.referrer||Xf}function Aj(e,t){var o=e?[...kd,...t||[]]:[],a=wa?.href.substring(0,1e3);return{r:Ej().substring(0,1e3),u:a?Ip(a,o,Lp):void 0}}function Rj(e){var t,{r:o,u:a}=e,n={$referrer:o,$referring_domain:o==null?void 0:o==Xf?Xf:(t=Zf(o))==null?void 0:t.host};if(a){n.$current_url=a;var i=Zf(a);n.$host=i?.host,n.$pathname=i?.pathname;var l=Cj(a);Mo(n,l)}if(o){var c=Pj(o);Mo(n,c)}return n}function Dj(){try{return Intl.DateTimeFormat().resolvedOptions().timeZone}catch{return}}function Qre(){try{return new Date().getTimezoneOffset()}catch{return}}var Jre=["cookie","localstorage","localstorage+cookie","sessionstorage","memory"];class C0{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&&Ue.info("Persistence loaded",t.persistence,Ne({},this.props)),this.update_config(t,t,o),this.save()}isDisabled(){return!!this._r}br(t){Jre.indexOf(t.persistence.toLowerCase())===-1&&(Ue.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=[...Ure,...n];return Ne({},_o,{Z(l){try{var c={};try{c=Ur.Z(l)||{}}catch{}var d=Mo(c,JSON.parse(_o.O(l)||"{}"));return _o.M(l,d),d}catch{}return null},M(l,c,d,p,m,h){try{_o.M(l,c,void 0,void 0,h);var f={};i.forEach((v=>{c[v]&&(f[v]=c[v])})),Object.keys(f).length&&Ur.M(l,f,d,p,m,h)}catch(v){_o.B(v)}},F(l,c){try{ge?.localStorage.removeItem(l),Ur.F(l,c)}catch(d){_o.B(d)}}})})(t.cookie_persisted_properties||[]),a=t.persistence.toLowerCase();return a==="localstorage"&&_o.R()?_o:a==="localstorage+cookie"&&o.R()?o:a==="sessionstorage"&&Ta.R()?Ta:a==="memory"?qre:a==="cookie"?Ur:o.R()?o:Ur}wr(t){var o=t??this.Bt.feature_flag_cache_ttl_ms;if(!o||0>=o)return!1;var a=this.props[Vf];return!a||typeof a!="number"||Date.now()-a>o}properties(){var t={};return vo(this.props,((o,a)=>{var n=(i=>{var l=Wre[i];if(l)return l;for(var[c,d]of Kre)if(i.indexOf(c)===0)return d})(a);if(n?.exposure==="derived"){if(n.shouldSkipFromEventProperties!=null&&n.shouldSkipFromEventProperties(o,a===ed?()=>this.wr():()=>!1))return;n.transformToEventProperties&&Mo(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=Mo({},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(Bo(t)){$e(o)&&(o="None"),this.Ir=$e(a)?this.kr:a;var n=!1;if(vo(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(Bo(t)){this.Ir=$e(o)?this.kr:o;var a=!1;if(vo(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=_j(this.Bt.custom_campaign_params,this.Bt.mask_personal_data_properties,this.Bt.custom_personal_data_properties);Xc(Kk(t))||this.register(t),this.mr=!0}}update_search_keyword(){var t;this.register((t=ze?.referrer)?Pj(t):{})}update_referrer_info(){var t;this.register_once({$referrer:Ej(),$referring_domain:ze!=null&&ze.referrer&&((t=Zf(ze.referrer))==null?void 0:t.host)||Xf},void 0)}set_initial_person_info(){this.props[LT]||this.props[BT]||this.register_once({[Hf]:Aj(this.Bt.mask_personal_data_properties,this.Bt.custom_personal_data_properties)},void 0)}get_initial_props(){var t={};vo([BT,LT],(l=>{var c=this.props[l];c&&vo(c,(function(d,p){t["$initial_"+hT(p)]=d}))}));var o,a,n=this.props[Hf];if(n){var i=(o=Rj(n),a={},vo(o,(function(l,c){a["$initial_"+hT(c)]=l})),a);Mo(t,i)}return t}safe_merge(t){return vo(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 d=[...l].sort(),p=[...c].sort();return d.every(((m,h)=>m===p[h]))})(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 $e(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 Fu={Activation:"events",Cancellation:"cancelEvents"},P0={Popover:"popover",API:"api",Widget:"widget"},ip={SHOWN:"survey shown",DISMISSED:"survey dismissed",SENT:"survey sent"},E0={SURVEY_ID:"$survey_id",SURVEY_ITERATION:"$survey_iteration",SURVEY_LAST_SEEN_DATE:"$survey_last_seen_date"},jT={Popover:"popover",Inline:"inline"},Xre={SHOWN:"product tour shown"},uO={TOUR_LAST_SEEN_DATE:"$product_tour_last_seen_date",TOUR_TYPE:"$product_tour_type"},pO=To("[RateLimiter]");class eie{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=>{pO.info((n||"events")+" is quota limited."),this.serverLimits[n]=new Date().getTime()+6e4}))}catch(n){return void pO.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(),d=(o=(a=this.instance.persistence)==null?void 0:a.get_property(IT))!==null&&o!==void 0?o:{tokens:i,last:c};d.tokens+=(c-d.last)/1e3*l,d.last=c,d.tokens>i&&(d.tokens=i);var p=1>d.tokens;return p||t||(d.tokens=Math.max(0,d.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(IT,d),{isRateLimited:p,remainingTokens:d.tokens}}isServerRateLimited(t){var o=this.serverLimits[t||"events"]||!1;return o!==!1&&new Date().getTime()<o}}var ju=To("[RemoteConfig]");class Oj{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()||ze?.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 Lr={GZipJS:"gzip-js",Base64:"base64"},Jn=Uint8Array,un=Uint16Array,_d=Uint32Array,Yk=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]),Zk=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]),mO=new Jn([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),Mj=function(e,t){for(var o=new un(31),a=0;31>a;++a)o[a]=t+=1<<e[a-1];var n=new _d(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]},Nj=Mj(Yk,2),zT=Nj[1];Nj[0][28]=258,zT[258]=28;for(var hO=Mj(Zk,0)[1],Ij=new un(32768),bo=0;32768>bo;++bo){var Bc=(43690&bo)>>>1|(21845&bo)<<1;Ij[bo]=((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 un(t);a>n;++n)++i[e[n]-1];var l,c=new un(t);for(n=0;t>n;++n)c[n]=c[n-1]+i[n-1]<<1;for(l=new un(a),n=0;a>n;++n)l[n]=Ij[c[e[n]-1]++]>>>15-e[n];return l},Al=new Jn(288);for(bo=0;144>bo;++bo)Al[bo]=8;for(bo=144;256>bo;++bo)Al[bo]=9;for(bo=256;280>bo;++bo)Al[bo]=7;for(bo=280;288>bo;++bo)Al[bo]=8;var ev=new Jn(32);for(bo=0;32>bo;++bo)ev[bo]=5;var tie=pp(Al,9),oie=pp(ev,5),Lj=function(e){return(e/8>>0)+(7&e&&1)},Bj=function(e,t,o){(o==null||o>e.length)&&(o=e.length);var a=new(e instanceof un?un:e instanceof _d?_d:Jn)(o-t);return a.set(e.subarray(t,o)),a},Si=function(e,t,o){var a=t/8>>0;e[a]|=o<<=7&t,e[a+1]|=o>>>8},zu=function(e,t,o){var a=t/8>>0;e[a]|=o<<=7&t,e[a+1]|=o>>>8,e[a+2]|=o>>>16},A0=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(P,R){return P.f-R.f})),o.push({s:-1,f:25001});var c=o[0],d=o[1],p=0,m=1,h=2;for(o[0]={s:-1,f:c.f+d.f,l:c,r:d};m!=n-1;)c=o[o[h].f>o[p].f?p++:h++],d=o[p!=m&&o[h].f>o[p].f?p++:h++],o[m++]={s:-1,f:c.f+d.f,l:c,r:d};var f=i[0].s;for(a=1;n>a;++a)i[a].s>f&&(f=i[a].s);var v=new un(f+1),b=UT(o[m-1],v,0);if(b>t){a=0;var S=0,k=b-t,T=1<<k;for(i.sort((function(P,R){return v[R.s]-v[P.s]||P.f-R.f}));n>a;++a){var x=i[a].s;if(t>=v[x])break;S+=T-(1<<b-v[x]),v[x]=t}for(S>>>=k;S>0;){var E=i[a].s;t>v[E]?S-=1<<t-v[E]++-1:++a}for(;a>=0&&S;--a){var C=i[a].s;v[C]==t&&(--v[C],++S)}b=t}return[new Jn(v),b]},UT=function(e,t,o){return e.s==-1?Math.max(UT(e.l,t,o+1),UT(e.r,t,o+1)):t[e.s]=o},gO=function(e){for(var t=e.length;t&&!e[--t];);for(var o=new un(++t),a=0,n=e[0],i=1,l=function(d){o[a++]=d},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]},Uu=function(e,t){for(var o=0,a=0;t.length>a;++a)o+=e[a]*t[a];return o},qT=function(e,t,o){var a=o.length,n=Lj(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)},fO=function(e,t,o,a,n,i,l,c,d,p,m){Si(t,m++,o),++n[256];for(var h=A0(n,15),f=h[0],v=h[1],b=A0(i,15),S=b[0],k=b[1],T=gO(f),x=T[0],E=T[1],C=gO(S),P=C[0],R=C[1],D=new un(19),O=0;x.length>O;++O)D[31&x[O]]++;for(O=0;P.length>O;++O)D[31&P[O]]++;for(var L=A0(D,7),q=L[0],B=L[1],U=19;U>4&&!q[mO[U-1]];--U);var F,W,ae,H,K=p+5<<3,J=Uu(n,Al)+Uu(i,ev)+l,le=Uu(n,f)+Uu(i,S)+l+14+3*U+Uu(D,q)+(2*D[16]+3*D[17]+7*D[18]);if(J>=K&&le>=K)return qT(t,m,e.subarray(d,d+p));if(Si(t,m,1+(J>le)),m+=2,J>le){F=pp(f,v),W=f,ae=pp(S,k),H=S;var Q=pp(q,B);for(Si(t,m,E-257),Si(t,m+5,R-1),Si(t,m+10,U-4),m+=14,O=0;U>O;++O)Si(t,m+3*O,q[mO[O]]);m+=3*U;for(var N=[x,P],G=0;2>G;++G){var V=N[G];for(O=0;V.length>O;++O)Si(t,m,Q[I=31&V[O]]),m+=q[I],I>15&&(Si(t,m,V[O]>>>5&127),m+=V[O]>>>12)}}else F=tie,W=Al,ae=oie,H=ev;for(O=0;c>O;++O)if(a[O]>255){var I;zu(t,m,F[257+(I=a[O]>>>18&31)]),m+=W[I+257],I>7&&(Si(t,m,a[O]>>>23&31),m+=Yk[I]);var z=31&a[O];zu(t,m,ae[z]),m+=H[z],z>3&&(zu(t,m,a[O]>>>5&8191),m+=Zk[z])}else zu(t,m,F[a[O]]),m+=W[a[O]];return zu(t,m,F[256]),m+W[256]},aie=new _d([65540,131080,131088,131104,262176,1048704,1048832,2114560,2117632]),nie=(function(){for(var e=new _d(256),t=0;256>t;++t){for(var o=t,a=9;--a;)o=(1&o&&3988292384)^o>>>1;e[t]=o}return e})(),R0=function(e,t,o){for(;o;++t)e[t]=o,o>>>=8};function rie(e,t){t===void 0&&(t={});var o=(function(){var h=4294967295;return{p(f){for(var v=h,b=0;f.length>b;++b)v=nie[255&v^f[b]]^v>>>8;h=v},d(){return 4294967295^h}}})(),a=e.length;o.p(e);var n,i,l,c,d,p=(c=10+((n=t).filename&&n.filename.length+1||0),d=8,(function(h,f,v,b,S,k){var T=h.length,x=new Jn(b+T+5*(1+Math.floor(T/7e3))+S),E=x.subarray(b,x.length-S),C=0;if(!f||8>T)for(var P=0;T>=P;P+=65535){var R=P+65535;T>R?C=qT(E,C,h.subarray(P,R)):(E[P]=!0,C=qT(E,C,h.subarray(P,T)))}else{for(var D=aie[f-1],O=D>>>13,L=8191&D,q=(1<<v)-1,B=new un(32768),U=new un(q+1),F=Math.ceil(v/3),W=2*F,ae=function(He){return(h[He]^h[He+1]<<F^h[He+2]<<W)&q},H=new _d(25e3),K=new un(288),J=new un(32),le=0,Q=0,N=(P=0,0),G=0,V=0;T>P;++P){var I=ae(P),z=32767&P,X=U[I];if(B[z]=X,U[I]=z,P>=G){var pe=T-P;if((le>7e3||N>24576)&&pe>423){C=fO(h,E,0,H,K,J,Q,N,V,P-V,C),N=le=Q=0,V=P;for(var he=0;286>he;++he)K[he]=0;for(he=0;30>he;++he)J[he]=0}var ke=2,qe=0,Z=L,ne=z-X&32767;if(pe>2&&I==ae(P-ne))for(var ve=Math.min(O,pe)-1,ie=Math.min(32767,P),Te=Math.min(258,pe);ie>=ne&&--Z&&z!=X;){if(h[P+ke]==h[P+ke-ne]){for(var Ce=0;Te>Ce&&h[P+Ce]==h[P+Ce-ne];++Ce);if(Ce>ke){if(ke=Ce,qe=ne,Ce>ve)break;var it=Math.min(ne,Ce-2),lt=0;for(he=0;it>he;++he){var Ge=P-ne+he+32768&32767,tt=Ge-B[Ge]+32768&32767;tt>lt&&(lt=tt,X=Ge)}}}ne+=(z=X)-(X=B[z])+32768&32767}if(qe){H[N++]=268435456|zT[ke]<<18|hO[qe];var Me=31&zT[ke],Oe=31&hO[qe];Q+=Yk[Me]+Zk[Oe],++K[257+Me],++J[Oe],G=P+ke,++le}else H[N++]=h[P],++K[h[P]]}}C=fO(h,E,!0,H,K,J,Q,N,V,P-V,C)}return Bj(x,0,b+Lj(C)+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,d)),m=p.length;return(function(h,f){var v=f.filename;if(h[0]=31,h[1]=139,h[2]=8,h[8]=2>f.level?4:f.level==9?2:0,h[9]=3,f.mtime!=0&&R0(h,4,Math.floor(new Date(f.mtime||Date.now())/1e3)),v){h[3]=8;for(var b=0;v.length>=b;++b)h[b+10]=v.charCodeAt(b)}})(p,t),R0(p,m-8,o.d()),R0(p,m-4,a),p}var iie=!!pT||!!uT,Fj="text/plain",vO=!1,Vv=function(e,t,o){var a;o===void 0&&(o=!0);var[n,i]=e.split("?"),l=Ne({},t),c=(a=i?.split("&").map((p=>{var m,[h,f]=p.split("="),v=o&&(m=l[h])!==null&&m!==void 0?m:f;return delete l[h],h+"="+v})))!==null&&a!==void 0?a:[],d=(function(p,m){var h,f;m===void 0&&(m="&");var v=[];return vo(p,(function(b,S){$e(b)||$e(S)||S==="undefined"||(h=encodeURIComponent((k=>k instanceof File)(b)?b.name:b.toString()),f=encodeURIComponent(S),v[v.length]=f+"="+h)})),v.join(m)})(l);return d&&c.push(d),n+"?"+c.join("&")},td=(e,t)=>JSON.stringify(e,((o,a)=>typeof a=="bigint"?a.toString():a),t),D0=e=>{if(e.tr)return e.tr;var{data:t,compression:o}=e;if(t){if(o===Lr.GZipJS){var a=rie((function(c,d){var p=c.length;if(typeof TextEncoder<"u")return new TextEncoder().encode(c);for(var m=new Jn(c.length+(c.length>>>1)),h=0,f=function(k){m[h++]=k},v=0;p>v;++v){if(h+5>m.length){var b=new Jn(h+8+(p-v<<1));b.set(m),m=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 Bj(m,0,h)})(td(t)),{mtime:0});return{contentType:Fj,body:a.buffer.slice(a.byteOffset,a.byteOffset+a.byteLength),estimatedSize:a.byteLength}}if(o===Lr.Base64){var n=(function(c){return c&&btoa(encodeURIComponent(c).replace(/%([0-9A-F]{2})/g,((d,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}}},sie=(function(){var e=Kn((function*(t){var o=td(t.data),a=yield(function(i,l,c){return mT.apply(this,arguments)})(o,Ga.DEBUG,{rethrow:!0});if(!a)return t;var n=yield a.arrayBuffer();return Ne({},t,{tr:{contentType:Fj,body:n,estimatedSize:n.byteLength}})}));return function(t){return e.apply(this,arguments)}})(),bO=(e,t)=>Vv(e,{_:new Date().getTime().toString(),ver:Ga.JS_SDK_VERSION,compression:t}),lf=[];uT&&lf.push({transport:"fetch",method(e){var t,o,{contentType:a,body:n,estimatedSize:i}=(t=D0(e))!==null&&t!==void 0?t:{},l=new Headers;vo(e.headers,(function(m,h){l.append(h,m)})),a&&l.append("Content-Type",a);var c=e.url,d=null;if(YD){var p=new YD;d={signal:p.signal,timeout:setTimeout((()=>p.abort()),e.timeout)}}uT(c,Ne({method:e?.method||"GET",headers:l,keepalive:e.method==="POST"&&52428.8>(i||0),body:n,signal:(o=d)==null?void 0:o.signal},e.fetchOptions)).then((m=>m.text().then((h=>{var f={statusCode:m.status,text:h};if(m.status===200)try{f.json=JSON.parse(h)}catch(v){Ue.error(v)}e.callback==null||e.callback(f)})))).catch((m=>{Ue.error(m),e.callback==null||e.callback({statusCode:0,error:m})})).finally((()=>d?clearTimeout(d.timeout):null))}}),pT&&lf.push({transport:"XHR",method(e){var t,o=new pT;o.open(e.method||"GET",e.url,!0);var{contentType:a,body:n}=(t=D0(e))!==null&&t!==void 0?t:{};vo(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)}}),En!=null&&En.sendBeacon&&lf.push({transport:"sendBeacon",method(e){var t=Vv(e.url,{beacon:"1"});try{var o,{contentType:a,body:n}=(o=D0(e))!==null&&o!==void 0?o:{};if(!n)return;var i=n instanceof Blob?n:new Blob([n],{type:a});En.sendBeacon(t,i)}catch{}}});var $T=3e3;class lie{constructor(t,o){this.Pr=!0,this.Lr=[],this.Dr=$r(o?.flush_interval_ms||$T,250,5e3,Ue.createLogger("flush interval"),$T),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(Ne({},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&&Lt(i.data)&&vo(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 vo(this.Lr,(o=>{var a,n=o,i=(n?n.batchKey:null)||n.url;$e(t[i])&&(t[i]=Ne({},n,{data:[]})),(a=t[i].data)==null||a.push(n.data)})),this.Lr=[],t}}var cie=["retriesPerformedSoFar"];class die{constructor(t){this.Vr=!1,this.Hr=3e3,this.Lr=[],this._instance=t,this.Lr=[],this.zr=!0,!$e(ge)&&"onLine"in ge.navigator&&(this.zr=ge.navigator.onLine,this.Ur=()=>{this.zr=!0,this.Yr()},this.Gr=()=>{this.zr=!1},Zo(ge,"online",this.Ur),Zo(ge,"offline",this.Gr))}get length(){return this.Lr.length}retriableRequest(t){var{retriesPerformedSoFar:o}=t,a=UF(t,cie);Gc(o)&&(a.url=Vv(a.url,{retry_count:o})),this._instance._send_request(Ne({},a,{callback:n=>{n.statusCode===200||n.statusCode>=400&&500>n.statusCode||(o??0)>=10?a.callback==null||a.callback(n):this.Wr(Ne({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),d=c/2,p=Math.min(18e5,c),m=Math.random()-.5;return Math.ceil(p+m*(p-d))})(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)"),Ue.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,$e(ge)||(this.Ur&&(ge.removeEventListener("online",this.Ur),this.Ur=void 0),this.Gr&&(ge.removeEventListener("offline",this.Gr),this.Gr=void 0)),this.Lr))try{this._instance._send_request(Ne({},t,{transport:"sendBeacon"}))}catch(o){Ue.error(o)}this.Lr=[]}}class uie{constructor(t){this.Kr=()=>{var o,a,n,i;this.Qr||(this.Qr={});var l=this.scrollElement(),c=this.scrollY(),d=l?Math.max(0,l.scrollHeight-l.clientHeight):0,p=c+(l?.clientHeight||0),m=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(d,(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(m,(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(){Zo(ge,"scroll",this.Kr,{capture:!0}),Zo(ge,"scrollend",this.Kr,{capture:!0}),Zo(ge,"resize",this.Kr)}scrollElement(){if(!this.ei)return ge?.document.documentElement;var t=Lt(this.ei)?this.ei:[this.ei];for(var o of t){var a=ge?.document.querySelector(o);if(a)return a}}scrollY(){if(this.ei){var t=this.scrollElement();return t&&t.scrollTop||0}return ge&&(ge.scrollY||ge.pageYOffset||ge.document.documentElement.scrollTop)||0}scrollX(){if(this.ei){var t=this.scrollElement();return t&&t.scrollLeft||0}return ge&&(ge.scrollX||ge.pageXOffset||ge.document.documentElement.scrollLeft)||0}}var pie=e=>Aj(e?.config.mask_personal_data_properties,e?.config.custom_personal_data_properties);class yO{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({[NT]:c})}},this._instance=t,this.si=o,this.ni=a,this.ii=n||pie,this.si.onSessionId(this.ti)}ri(){return this.ni.props[NT]}getSetOnceProps(){var t,o=(t=this.ri())==null?void 0:t.props;return o?"r"in o?Rj(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 vo(Kk(this.getSetOnceProps()),((o,a)=>{a==="$current_url"&&(a="url"),t["$session_entry_"+hT(a)]=o})),t}}class Qk{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 O0=To("[SessionId]");class SO{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 Qk,this.hi=(p,m)=>!(!Gc(p)||!Gc(m))&&Math.abs(p-m)>this.sessionTimeoutMs,!t.persistence)throw new Error("SessionIdManager requires a PostHogPersistence instance");if(t.config.cookieless_mode===ki)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*$r(this.Bt.session_idle_timeout_seconds||1800,60,36e3,O0.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=Ta.Z(this.gi),c=Ta.Z(this.mi);l&&!c?this.ci=l:Ta.F(this.gi),Ta.M(this.mi,!0)}if((n=this.Bt.bootstrap)!=null&&n.sessionID)try{var d=(p=>{var m=this.Bt.bootstrap.sessionID.replace(/-/g,"");if(m.length!==32)throw new Error("Not a valid UUID");if(m[12]!=="7")throw new Error("Not a UUIDv7");return parseInt(m.substring(0,12),16)})();this.bi(this.Bt.bootstrap.sessionID,new Date().getTime(),d)}catch(p){O0.error("Invalid sessionID in bootstrap",p)}this.wi()}get sessionTimeoutMs(){return this._sessionTimeoutMs}onSessionId(t){return $e(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&&Ta.R()}Ii(t){t!==this.ci&&(this.ci=t,this.yi()&&Ta.M(this.gi,t))}Ci(){return this.ci?this.ci:this.yi()?Ta.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({[$f]:[o,t,a]}))}Si(){var t=this.ni.props[$f];return Lt(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&&ge&&(ge.removeEventListener(Kf,this.ui,{capture:!1}),this.ui=void 0),this.li=[]}wi(){this.ui=()=>{this.yi()&&Ta.F(this.mi)},Zo(ge,Kf,this.ui,{capture:!1})}checkAndGetSessionAndWindowId(t,o){if(t===void 0&&(t=!1),o===void 0&&(o=null),this.Bt.cookieless_mode===ki)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(),d=Gc(l)&&Math.abs(a-l)>864e5,p=!1,m=!i,h=!m&&!t&&this.hi(a,n);m||h||d?(i=this.vi(),c=this.fi(),O0.info("new session ID generated",{sessionId:i,windowId:c,changeReason:{noSessionId:m,activityTimeout:h,sessionPastMaximumLength:d}}),l=a,p=!0):c||(c=this.fi(),p=!0);var f=Gc(n)&&t&&!d?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:m,activityTimeout:h,sessionPastMaximumLength:d}:void 0))),{sessionId:i,windowId:c,sessionStartTimestamp:v,changeReason:p?{noSessionId:m,activityTimeout:h,sessionPastMaximumLength:d}: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 jj=function(e,t){if(!e)return!1;var o=e.userAgent;if(o&&JD(o,t))return!0;try{var a=e?.userAgentData;if(a!=null&&a.brands&&a.brands.some((n=>JD(n?.brand,t))))return!0}catch{}return!!e.webdriver},tv=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 wO(e,t,o){return td({distinct_id:e,userPropertiesToSet:t,userPropertiesToSetOnce:o})}var zj={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=>tv(o,a))))),not_regex:(e,t)=>t.every((o=>e.every((a=>!tv(o,a))))),icontains:(e,t)=>t.map(jg).some((o=>e.map(jg).some((a=>o.includes(a))))),not_icontains:(e,t)=>t.map(jg).every((o=>e.map(jg).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)))}))},jg=e=>e.toLowerCase();function Uj(e,t){return!e||Object.entries(e).every((o=>{var[a,n]=o,i=t?.[a];if($e(i)||Ni(i))return!1;var l=[String(i)],c=zj[n.operator];return!!c&&c(n.values,l)}))}var VT="custom",TO="i.posthog.com",mie=/^\/static\//;class hie{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("."+TO,".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":VT),this.ki[this.apiHost]}Ti(t){var o=this.instance.config.__preview_external_dependency_versioned_paths;if(typeof o=="string"&&mie.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===VT)return this.apiHost+o;var n=TO+o;switch(t){case"assets":return"https://"+this.region+"-assets."+n;case"api":return"https://"+this.region+"."+n}}}var oo=To("[Surveys]"),HT="seenSurvey_",gie=[P0.Popover,P0.Widget,P0.API],fie={ignoreConditions:!1,ignoreDelay:!1,displayType:jT.Popover},vie=To("[PostHog ExternalIntegrations]"),bie={intercom:"intercom-integration",crispChat:"crisp-chat-integration"};class yie{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 vie.error("failed to load script",n);o()}))}startIfEnabledOrStop(){var t=this,o=function(l){var c,d,p;!n||(c=et.__PosthogExtensions__)!=null&&(c=c.integrations)!=null&&c[l]||t.ur(bie[l],(()=>{var m;(m=et.__PosthogExtensions__)==null||(m=m.integrations)==null||(m=m[l])==null||m.start(t._instance)})),!n&&(d=et.__PosthogExtensions__)!=null&&(d=d.integrations)!=null&&d[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 Fc,mp={},M0=0,GT=()=>{},xO='Consent opt in/out is not valid with cookieless_mode="always" and will be ignored',qu="Surveys module not available",kO="sanitize_properties is deprecated. Use before_send instead",qj="Invalid value for property_denylist config: ",Yc="posthog",$j=!iie&&ln?.indexOf("MSIE")===-1&&ln?.indexOf("Mozilla")===-1,_O=e=>{var t;return Ne({api_host:"https://us.i.posthog.com",flags_api_host:null,ui_host:null,token:"",autocapture:!0,cross_subdomain_cookie:Lre(ze?.location),persistence:"localStorage+cookie",persistence_name:"",cookie_persisted_properties:[],loaded:GT,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:(ge==null||(t=ge.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){Ue.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:FT,before_send:void 0,request_queue_config:{flush_interval_ms:$T},error_tracking:{},_onCapture:GT,__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))},Sie=[["process_person","person_profiles"],["xhr_headers","request_headers"],["cookie_name","persistence_name"],["disable_cookie","disable_persistence"],["store_google","save_campaign_params"],["verbose","debug"]],CO=e=>{var t={};for(var[o,a]of Sie)$e(e[o])||(t[a]=e[o]);var n=Mo({},t,e);return Lt(e.property_blacklist)&&($e(e.property_denylist)?n.property_denylist=e.property_blacklist:Lt(e.property_denylist)?n.property_denylist=[...e.property_blacklist,...e.property_denylist]:Ue.error(qj+e.property_denylist)),n};class wie{constructor(){this.__forceAllowLocalhost=!1}get Ai(){return this.__forceAllowLocalhost}set Ai(t){Ue.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===ki||this.config.cookieless_mode===fl&&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 wie,this.Mi=!1,this.version=Ga.LIB_VERSION,this.Fi=new Qk,this.Ri=[],this._calculate_event_properties=this.calculateEventProperties.bind(this),this.config=_O(),this.SentryIntegration=Gre,this.sentryIntegration=a=>(function(n,i){var l=kj(n,i);return{name:xj,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 uie(this),this.pageViewManager=new cO(this),this.rateLimiter=new eie(this),this.requestRouter=new hie(this),this.consent=new $re(this),this.externalIntegrations=new yie(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=>Ue.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={}),$e(t)||af(t))return Ue.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(Mo({},_O(o.defaults),CO(o),{name:a,token:t})),this.config.on_xhr_error&&Ue.error("on_xhr_error is deprecated. Use on_request_error instead"),this.compression=o.disable_compression?void 0:Lr.GZipJS;var l=this.qi();this.persistence=new C0(this.config,l),this.sessionPersistence=this.config.persistence==="sessionStorage"||this.config.persistence==="memory"?this.persistence:new C0(Ne({},this.config,{persistence:"sessionStorage"}),l);var c=Ne({},this.persistence.props),d=Ne({},this.sessionPersistence.props);this.register({$initialization_time:new Date().toISOString()}),this.Zi=new lie((k=>this.Vi(k)),this.config.request_queue_config),this.Hi=new die(this),this.__request_queue=[];var p=this.Ni();if(p||(this.sessionManager=new SO(this),this.sessionPropsManager=new yO(this,this.sessionManager,this.persistence)),this.config.__preview_deferred_init_extensions?(Ue.info("Deferring extension initialization to improve startup performance"),setTimeout((()=>{this.zi(p)}),0)):(Ue.info("Initializing extensions synchronously"),this.zi(p)),Ga.DEBUG=Ga.DEBUG||this.config.debug,Ga.DEBUG&&Ue.info("Starting in debug mode",{this:this,config:o,thisC:Ne({},this.config),p:c,s:d}),!this.config.identity_distinct_id||(n=o.bootstrap)!=null&&n.distinctID||(o.bootstrap=Ne({},o.bootstrap,{distinctID:this.config.identity_distinct_id,isIdentifiedID:!0})),((i=o.bootstrap)==null?void 0:i.distinctID)!==void 0){var m=o.bootstrap.distinctID,h=this.get_distinct_id(),f=this.persistence.get_property(pr);if(o.bootstrap.isIdentifiedID&&h!=null&&h!==m&&f===Ic)this.identify(m);else if(o.bootstrap.isIdentifiedID&&h!=null&&h!==m&&f===Lc)Ue.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:m;this.persistence.set_property(pr,o.bootstrap.isIdentifiedID?Lc:Ic),this.register({distinct_id:m,$device_id:b})}}if(p)this.register_once({distinct_id:Ng,$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(pr,Ic)}return Zo(ge,"onpagehide"in self?"pagehide":"unload",this._handle_unload.bind(this),{passive:!1}),o.segment?(function(k,T){var x=k.config.segment;if(!x)return T();(function(E,C){var P=E.config.segment;if(!P)return C();var R=O=>{var L=()=>O.anonymousId()||ws();E.config.get_device_id=L,O.id()&&(E.register({distinct_id:O.id(),$device_id:L()}),E.persistence.set_property(pr,Lc)),C()},D=P.user();"then"in D&&xi(D.then)?D.then(R):R(D)})(k,(()=>{x.register((E=>{Promise&&Promise.resolve||_0.warn("This browser does not have Promise support, and can not use the segment integration");var C=(P,R)=>{if(!R)return P;P.event.userId||P.event.anonymousId===E.get_distinct_id()||(_0.info("No userId set, resetting PostHog"),E.reset()),P.event.userId&&P.event.userId!==E.get_distinct_id()&&(_0.info("UserId set, identifying with PostHog"),E.identify(P.event.userId));var D=E.calculateEventProperties(R,P.event.properties);return P.event.properties=Object.assign({},D,P.event.properties),P};return{name:"PostHog JS",type:"enrichment",version:"1.0.0",isLoaded:()=>!0,load:()=>Promise.resolve(),track:P=>C(P,P.event.event),page:P=>C(P,Kc),identify:P=>C(P,x0),screen:P=>C(P,"$screen")}})(k)).then((()=>{T()}))}))})(this,(()=>this.Ui())):this.Ui(),xi(this.config._onCapture)&&this.config._onCapture!==GT&&(Ue.warn("onCapture is deprecated. Please use `before_send` instead"),this.on("eventCaptured",(k=>this.config._onCapture(k.event,k)))),this.config.ip&&Ue.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,d,p=performance.now(),m=Ne({},Yn.__defaultExtensionClasses,this.config.__extensionClasses),h=[];m.featureFlags&&this.Ri.push(this.featureFlags=(o=this.featureFlags)!==null&&o!==void 0?o:new m.featureFlags(this)),m.exceptions&&this.Ri.push(this.exceptions=(a=this.exceptions)!==null&&a!==void 0?a:new m.exceptions(this)),m.historyAutocapture&&this.Ri.push(this.historyAutocapture=new m.historyAutocapture(this)),m.tracingHeaders&&this.Ri.push(new m.tracingHeaders(this)),m.siteApps&&this.Ri.push(this.siteApps=new m.siteApps(this)),m.sessionRecording&&!t&&this.Ri.push(this.sessionRecording=new m.sessionRecording(this)),this.config.disable_scroll_properties||h.push((()=>{this.scrollManager.startMeasuringScrollPosition()})),m.autocapture&&this.Ri.push(this.autocapture=new m.autocapture(this)),m.surveys&&this.Ri.push(this.surveys=(n=this.surveys)!==null&&n!==void 0?n:new m.surveys(this)),m.logs&&this.Ri.push(this.logs=(i=this.logs)!==null&&i!==void 0?i:new m.logs(this)),m.conversations&&this.Ri.push(this.conversations=(l=this.conversations)!==null&&l!==void 0?l:new m.conversations(this)),m.productTours&&this.Ri.push(this.productTours=new m.productTours(this)),m.heatmaps&&this.Ri.push(this.heatmaps=new m.heatmaps(this)),m.webVitalsAutocapture&&this.Ri.push(this.webVitalsAutocapture=new m.webVitalsAutocapture(this)),m.exceptionObserver&&this.Ri.push(this.exceptionObserver=new m.exceptionObserver(this)),m.deadClicksAutocapture&&this.Ri.push(this.deadClicksAutocapture=new m.deadClicksAutocapture(this,Hre)),m.toolbar&&this.Ri.push(this.toolbar=(c=this.toolbar)!==null&&c!==void 0?c:new m.toolbar(this)),m.experiments&&this.Ri.push(this.experiments=(d=this.experiments)!==null&&d!==void 0?d:new m.experiments(this)),this.Ri.forEach((f=>{f.initialize&&h.push((()=>{f.initialize==null||f.initialize()}))})),h.push((()=>{if(this.Yi){var f=this.Yi;this.Yi=void 0,this.Nr(f)}})),this.Gi(h,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){Ue.error("Error initializing extension:",i)}}var n=Math.round(performance.now()-o);this.register_for_session({[bj]:this.config.__preview_deferred_init_extensions?"deferred":"synchronous",[yj]:n}),this.config.__preview_deferred_init_extensions&&Ue.info("PostHog extensions initialized ("+n+"ms)")}Nr(t){var o;if(!ze||!ze.body)return Ue.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=_t(t.supportedCompression,Lr.GZipJS)?Lr.GZipJS:_t(t.supportedCompression,Lr.Base64)?Lr.Base64:void 0),(o=t.analytics)!=null&&o.endpoint&&(this.analyticsDefaultEndpoint=t.analytics.endpoint),this.set_config({person_profiles:this.Li?this.Li:FT}),this.Ri.forEach((a=>a.onRemoteConfig==null?void 0:a.onRemoteConfig(t)))}Ui(){try{this.config.loaded(this)}catch(a){Ue.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 Oj(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()&&Ig(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(T0),(o=this.logs)==null||o.flushLogs("sendBeacon"),(a=this.Zi)==null||a.unload(),(n=this.Hi)==null||n.unload()):this.Qi()&&this.capture(T0,null,{transport:"sendBeacon"})}_send_request(t){this.__loaded&&($j?this.__request_queue.push(t):this.rateLimiter.isServerRateLimited(t.batchKey)||(t.transport=t.transport||this.config.api_transport,t.url=Vv(t.url,{ip:this.config.ip?1:0}),t.headers=Ne({},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=Ne({},o);l.timeout=l.timeout||6e4,l.url=bO(l.url,l.compression);var c=(a=l.transport)!==null&&a!==void 0?a:"fetch",d=lf.filter((m=>!l.disableTransport||!m.transport||!l.disableTransport.includes(m.transport))),p=(n=(i=(function(m,h){for(var f=0;m.length>f;f++)if(m[f].transport===c)return m[f]})(d))==null?void 0:i.method)!==null&&n!==void 0?n:d[0].method;if(!p)throw new Error("No available transport method");c!=="sendBeacon"&&l.data&&l.compression===Lr.GZipJS&&Gne&&!vO?sie(l).then((m=>{p(m)})).catch((m=>{if((h=>!(!h||typeof h!="object")&&("name"in h?String(h.name):"")==="NotReadableError")(m))return vO=!0,void p(Ne({},l,{compression:void 0,url:bO(o.url,void 0)}));p(l)})):p(l)})(Ne({},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){M0++;try{var o,a=[],n=[],i=[];Ig(t,(c=>{c&&(Lt(o=c[0])?i.push(c):xi(c)?c.call(this):Lt(c)&&o==="alias"?a.push(c):Lt(c)&&o.indexOf("capture")!==-1&&xi(this[o])?i.push(c):n.push(c))}));var l=function(c,d){Ig(c,(function(p){if(Lt(p[0])){var m=d;vo(p,(function(h){m=m[h[0]].apply(m,h.slice(1))}))}else d[p[0]].apply(d,p.slice(1))}))};l(a,this),l(n,this),l(i,this)}finally{M0--}}push(t){if(M0>0&&Lt(t)&&Co(t[0])){var o=Yn.prototype[t[0]];xi(o)&&o.apply(this,t.slice(1))}else this._execute_array([t])}capture(t,o,a){var n,i,l,c,d;if(this.__loaded&&this.persistence&&this.sessionPersistence&&this.Zi){if(this.is_capturing())if(!$e(t)&&Co(t)){var p=!this.config.opt_out_useragent_filter&&this._is_bot();if(!p||this.config.__preview_capture_bot_pageviews){var m=a!=null&&a.skip_client_rate_limiting?void 0:this.rateLimiter.clientRateLimitContext();if(m==null||!m.isRateLimited){o!=null&&o.$current_url&&!Co(o?.$current_url)&&(Ue.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||Ue.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 h=new Date,f=a?.timestamp||h,v=ws(),b={uuid:v,event:t,properties:this.calculateEventProperties(t,o||{},f,v)};t===Kc&&this.config.__preview_capture_bot_pageviews&&p&&(b.event="$bot_pageview",b.properties.$browser_type="bot"),m&&(b.properties.$lib_rate_limit_remaining_tokens=m.remainingTokens),a?.$set&&(b.$set=a?.$set);var S,k,T,x=this.tn(a?.$set_once,t!==rO,t===x0);if(x&&(b.$set_once=x),a!=null&&a._noTruncate||(i=this.config.properties_string_max_length,l=b,c=L=>Co(L)?L.slice(0,i):L,d=new Set,b=(function L(q,B){return q!==Object(q)?c?c(q):q:d.has(q)?void 0:(d.add(q),Lt(q)?(U=[],Ig(q,(F=>{U.push(L(F))}))):(U={},vo(q,((F,W)=>{d.has(F)||(U[W]=L(F))}))),U);var U})(l)),b.timestamp=f,$e(a?.timestamp)||(b.properties.$event_time_override_provided=!0,b.properties.$event_time_override_system_time=h),t===ip.DISMISSED||t===ip.SENT){var E=o?.[E0.SURVEY_ID],C=o?.[E0.SURVEY_ITERATION];(L=>{try{var q=(B=>((U,F)=>{var W=""+HT+F.id;return F.current_iteration&&F.current_iteration>0&&(W=""+HT+F.id+"_"+F.current_iteration),W})(0,B))(L);if(localStorage.getItem(q))return;localStorage.setItem(q,"true")}catch(B){oo.error("Failed to persist survey seen state",B)}})({id:E,current_iteration:C}),b.$set=Ne({},b.$set,{[(S={id:E,current_iteration:C},k=t===ip.SENT?"responded":"dismissed",T="$survey_"+k+"/"+S.id,S.current_iteration&&S.current_iteration>0&&(T="$survey_"+k+"/"+S.id+"/"+S.current_iteration),T)]:!0})}else t===ip.SHOWN&&(b.$set=Ne({},b.$set,{[E0.SURVEY_LAST_SEEN_DATE]:new Date().toISOString()}));if(t===Xre.SHOWN){var P=o?.[uO.TOUR_TYPE];P&&(b.$set=Ne({},b.$set,{[uO.TOUR_LAST_SEEN_DATE+"/"+P]:new Date().toISOString()}))}var R=Ne({},b.properties.$set,b.$set);if(Xc(R)||this.setPersonPropertiesForFlags(R),!Ct(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}Ue.critical("This capture call is ignored due to client rate limiting.")}}else Ue.error("No event name provided to posthog.capture")}else Ue.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=Ne({},o);if(c.token=this.config.token,c.$config_defaults=this.config.defaults,this.Ni()&&(c.$cookieless_mode=!0),t==="$snapshot"){var d=Ne({},this.persistence.properties(),this.sessionPersistence.properties());return c.distinct_id=d.distinct_id,(!Co(c.distinct_id)&&!Xn(c.distinct_id)||af(c.distinct_id))&&Ue.error("Invalid distinct_id for replay event. This indicates a bug in your implementation"),c}var p,m=(function(T,x){var E,C,P,R;if(!ln)return{};var D,O,L,q,B,U,F,W,ae=T?[...kd,...x||[]]:[],[H,K]=(function(J){for(var le=0;tO.length>le;le++){var[Q,N]=tO[le],G=Q.exec(J),V=G&&(xi(N)?N(G,J):N);if(V)return V}return["",""]})(ln);return Mo(Kk({$os:H,$os_version:K,$browser:ij(ln,navigator.vendor),$device:oO(ln),$device_type:(O=ln,L={userAgentDataPlatform:(E=navigator)==null||(E=E.userAgentData)==null?void 0:E.platform,maxTouchPoints:(C=navigator)==null?void 0:C.maxTouchPoints,screenWidth:ge==null||(P=ge.screen)==null?void 0:P.width,screenHeight:ge==null||(R=ge.screen)==null?void 0:R.height,devicePixelRatio:ge?.devicePixelRatio},W=oO(O),W===GF||W===HF||W==="Kobo"||W==="Kindle Fire"||W===rj?wd:W===Mp||W===cd||W===Np||W===fT?"Console":W===KF?"Wearable":W?Rn:L?.userAgentDataPlatform==="Android"&&((q=L?.maxTouchPoints)!==null&&q!==void 0?q:0)>0?600>Math.min((B=L?.screenWidth)!==null&&B!==void 0?B:0,(U=L?.screenHeight)!==null&&U!==void 0?U:0)/((F=L?.devicePixelRatio)!==null&&F!==void 0?F:1)?Rn:wd:"Desktop"),$timezone:Dj(),$timezone_offset:Qre()}),{$current_url:Ip(wa?.href,ae,Lp),$host:wa?.host,$pathname:wa?.pathname,$raw_user_agent:ln.length>1e3?ln.substring(0,997)+"...":ln,$browser_version:lre(ln,navigator.vendor),$browser_language:dO(),$browser_language_prefix:(D=dO(),typeof D=="string"?D.split("-")[0]:void 0),$screen_height:ge?.screen.height,$screen_width:ge?.screen.width,$viewport_height:ge?.innerHeight,$viewport_width:ge?.innerWidth,$lib:Ga.LIB_NAME,$lib_version:Ga.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:h,windowId:f}=this.sessionManager.checkAndGetSessionAndWindowId(i,a.getTime());c.$session_id=h,c.$window_id=f}this.sessionPropsManager&&Mo(c,this.sessionPropsManager.getSessionProps());try{var v;this.sessionRecording&&Mo(c,this.sessionRecording.sdkDebugProperties),c.$sdk_debug_retry_queue_size=(v=this.Hi)==null?void 0:v.length}catch(T){c.$sdk_debug_error_capturing_properties=String(T)}if(this.requestRouter.region===VT&&(c.$lib_custom_api_host=this.config.api_host),p=t!==Kc||i?t!==T0||i?this.pageViewManager.doEvent():this.pageViewManager.doPageLeave(a):this.pageViewManager.doPageView(a,n),c=Mo(c,p),t===Kc&&ze&&(c.title=ze.title),!$e(l)){var b=a.getTime()-l;c.$duration=parseFloat((b/1e3).toFixed(3))}ln&&this.config.opt_out_useragent_filter&&(c.$browser_type=this._is_bot()?"bot":"browser"),(c=Mo({},m,this.persistence.properties(),this.sessionPersistence.properties(),c)).$is_identified=this._isIdentified(),Lt(this.config.property_denylist)?vo(this.config.property_denylist,(function(T){delete c[T]})):Ue.error(qj+this.config.property_denylist+" or property_blacklist config: "+this.config.property_blacklist);var S=this.config.sanitize_properties;S&&(Ue.error(kO),c=S(c,t));var k=this.nn();return c.$process_person_profile=k,k&&!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=Mo({},i,l||{},t||{}),d=this.config.sanitize_properties;return d&&(Ue.error(kO),c=d(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:qu}),()=>{})}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:qu})}getActiveMatchingSurveys(t,o){o===void 0&&(o=!1),this.surveys?this.surveys.getActiveMatchingSurveys(t,o):t([],{isLoaded:!1,error:qu})}renderSurvey(t,o){var a;(a=this.surveys)==null||a.renderSurvey(t,o)}displaySurvey(t,o){var a;o===void 0&&(o=fie),(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:qu}}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:qu})}ln(t){return!t||af(t)?(Ue.critical("Unique user id has not been set in posthog.identify"),!1):t===Ng?(Ue.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())||(Ue.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 Ue.uninitializedWarning("posthog.identify");if(Xn(t)&&(t=t.toString(),Ue.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(qf)||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(pr)||Ic)===Ic;t!==n&&l?(this.persistence.set_property(pr,Lc),this.setPersonPropertiesForFlags({$set:o||{},$set_once:a||{}},!1),this.capture(x0,{distinct_id:t,$anon_distinct_id:n},{$set:o||{},$set_once:a||{}}),this.Di=wO(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=wO(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):Ue.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:Ne({},n,{[t]:o})}),i||a){var l={$group_type:t,$group_key:o};a&&(l.$group_set=a),this.capture(rO,l)}a&&this.setGroupPropertiesForFlags({[t]:a}),i&&!a&&this.reloadFeatureFlags()}else Ue.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,d,p;if(Ue.info("reset"),!this.__loaded)return Ue.uninitializedWarning("posthog.reset");var m=this.get_property(qf);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(),(d=this.persistence)==null||d.set_property(pr,Ic),(p=this.sessionManager)==null||p.resetSessionId(),this.Di=null,this.config.cookieless_mode===ki)this.register_once({distinct_id:Ng,$device_id:null},"");else{var h=this.config.get_device_id(ws());this.register_once({distinct_id:h,$device_id:t?h:m},"")}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(pj)?(Ue.critical("Attempting to create alias for existing People user - aborting."),-2):this.sn("posthog.alias")?($e(o)&&(o=this.get_distinct_id()),t!==o?(this.an(tp,t),this.capture("$create_alias",{alias:t,distinct_id:o})):(Ue.warn("alias matches current distinct_id - skipping api call."),this.identify(t),-1)):void 0}set_config(t){var o=Ne({},this.config);if(Bo(t)){var a,n,i,l,c,d,p,m,h,f;Mo(this.config,CO(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 C0(Ne({},this.config,{persistence:"sessionStorage"}),v);var b=this.Bi(this.config.debug);qr(b)&&(this.config.debug=b),qr(this.config.debug)&&(this.config.debug?(Ga.DEBUG=!0,_o.R()&&_o.M("ph_debug",!0),Ue.info("set_config",{config:t,oldConfig:o,newConfig:Ne({},this.config)})):(Ga.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(),(d=this.heatmaps)==null||d.startIfEnabled(),(p=this.exceptionObserver)==null||p.startIfEnabledOrStop(),(m=this.deadClicksAutocapture)==null||m.startIfEnabledOrStop(),(h=this.surveys)==null||h.loadIfEnabled(),this.cn(),(f=this.externalIntegrations)==null||f.startIfEnabledOrStop()}}_overrideSDKInfo(t,o){Ga.LIB_NAME=t,Ga.LIB_VERSION=o}startSessionRecording(t){var o,a,n,i,l,c=t===!0,d={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(d).some(Boolean)&&((o=this.sessionManager)==null||o.checkAndGetSessionAndWindowId(),d.sampling&&((a=this.sessionRecording)==null||a.overrideSampling()),d.linked_flag&&((n=this.sessionRecording)==null||n.overrideLinkedFlag()),d.url_trigger&&((i=this.sessionRecording)==null||i.overrideTrigger("url")),d.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(Ne({},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(pr))===Lc||((o=this.sessionPersistence)==null?void 0:o.get_property(pr))===Lc}nn(){var t,o;return!(this.config.person_profiles==="never"||this.config.person_profiles===FT&&!this._isIdentified()&&Xc(this.getGroups())&&((t=this.persistence)==null||(t=t.props)==null||!t[tp])&&((o=this.persistence)==null||(o=o.props)==null||!o[Gf]))}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"?(Ue.error(t+' was called, but process_person is set to "never". This call will be ignored.'),!1):(this.an(Gf,!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!==fl)}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!==ki){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 SO(this),this.pageViewManager=new cO(this),this.persistence&&(this.sessionPropsManager=new yO(this,this.sessionManager,this.persistence));var d,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&&((d=this.sessionRecording)==null||d.onRemoteConfig==null||d.onRemoteConfig(this.Wi)))}var m,h;this.consent.optInOut(!0),this.cn(),this.Xi(),(o=this.sessionRecording)==null||o.startIfEnabledOrStop(),this.config.cookieless_mode==fl&&((m=this.surveys)==null||m.loadIfEnabled()),($e(t?.captureEventName)||t!=null&&t.captureEventName)&&this.capture((h=t?.captureEventName)!==null&&h!==void 0?h:"$opt_in",t?.captureProperties,{send_instantly:!0}),this.config.capture_pageview&&this.Ji()}else Ue.warn(xO)}opt_out_capturing(){var t,o,a;this.config.cookieless_mode!==ki?(this.config.cookieless_mode===fl&&this.consent.isOptedIn()&&this.reset(!0),this.consent.optInOut(!1),this.cn(),this.config.cookieless_mode===fl&&(this.register({distinct_id:Ng,$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())):Ue.warn(xO)}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===ki||(this.config.cookieless_mode===fl?this.consent.isRejected()||this.consent.isOptedIn():!this.has_opted_out_capturing())}clear_opt_in_out_capturing(){this.consent.reset(),this.cn()}_is_bot(){return En?jj(En,this.config.custom_blocked_useragents):void 0}Ji(){ze&&(ze.visibilityState==="visible"?this.Oi||(this.Oi=!0,this.capture(Kc,{title:ze.title},{send_instantly:!0}),this.Pi&&(ze.removeEventListener(Wf,this.Pi),this.Pi=null)):this.Pi||(this.Pi=this.Ji.bind(this),Zo(ze,Wf,this.Pi)))}debug(t){t===!1?(ge?.console.log("You've disabled debug mode."),this.set_config({debug:!1})):(ge?.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?(Ue.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=Ue,i=(o="advanced_disable_flags")in(t=c)&&!Ct(t[o]),l=a in t&&!Ct(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(Ct(this.config.before_send))return t;var o=Lt(this.config.before_send)?this.config.before_send:[this.config.before_send],a=t;for(var n of o){if(a=n(a),Ct(a)){var i="Event '"+t.event+"' was rejected in beforeSend function";return Zne(t.event)?Ue.warn(i+". This can cause unexpected behavior."):Ue.info(i),null}a.properties&&!Xc(a.properties)||Ue.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=qr(t)&&!t,a=_o.R()&&_o.O("ph_debug")==="true";return!o&&(!!a||t)}}function PO(e){return e instanceof Element&&(e.id===vj||!(e.closest==null||!e.closest(".toolbar-global-fade-container")))}function Hv(e){return!!e&&e.nodeType===1}function Rs(e,t){return!!e&&!!e.tagName&&e.tagName.toLowerCase()===t.toLowerCase()}function Vj(e){return!!e&&e.nodeType===3}function Hj(e){return!!e&&e.nodeType===11}function Jk(e){return e?qv(e).split(/\s+/):[]}function EO(e){var t=ge?.location.href;return!!(t&&e&&e.some((o=>t.match(o))))}function ov(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 Jk(t)}function Gj(e){return Ct(e)?null:qv(e).split(/(\s+)/).filter((t=>hp(t))).join("").replace(/[\r\n]/g," ").replace(/[ ]+/g," ").substring(0,255)}function Bp(e){var t="";return KT(e)&&!Kj(e)&&e.childNodes&&e.childNodes.length&&vo(e.childNodes,(function(o){var a;Vj(o)&&o.textContent&&(t+=(a=Gj(o.textContent))!==null&&a!==void 0?a:"")})),qv(t)}function AO(e){return $e(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:Fc=()=>{},debug:Fc,info:Fc,warn:Fc,error:Fc,fatal:Fc},(function(e,t){for(var o=0;t.length>o;o++)e.prototype[t[o]]=Nre(e.prototype[t[o]])})(Yn,["identify"]);var Xk=["a","button","form","input","select","textarea","label"];function RO(e,t){if($e(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 Wj(e){var t=e.parentNode;return!(!t||!Hv(t))&&t}var Tie=["next","previous","prev",">","<"],DO=[".ph-no-rageclick",".ph-no-capture"],WT=e=>!e||Rs(e,"html")||!Hv(e),OO=(e,t)=>{if(!ge||WT(e))return{parentIsUsefulElement:!1,targetElementList:[]};for(var o=!1,a=[e],n=e;n.parentNode&&!Rs(n,"body");)if(Hj(n.parentNode))a.push(n.parentNode.host),n=n.parentNode.host;else{var i=Wj(n);if(!i)break;if(t||Xk.indexOf(i.tagName.toLowerCase())>-1)o=!0;else{var l=ge.getComputedStyle(i);l&&l.getPropertyValue("cursor")==="pointer"&&(o=!0)}a.push(i),n=i}return{parentIsUsefulElement:o,targetElementList:a}};function KT(e){for(var t=e;t.parentNode&&!Rs(t,"body");t=t.parentNode){var o=ov(t);if(_t(o,"ph-sensitive")||_t(o,"ph-no-capture"))return!1}if(_t(ov(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 Kj(e){return!!(Rs(e,"input")&&!["button","checkbox","submit","reset"].includes(e.type)||Rs(e,"select")||Rs(e,"textarea")||e.getAttribute("contenteditable")==="true")}var Yj="(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})",xie=new RegExp("^(?:"+Yj+")$"),kie=new RegExp(Yj),Zj="\\d{3}-?\\d{2}-?\\d{4}",_ie=new RegExp("^("+Zj+")$"),Cie=new RegExp("("+Zj+")");function hp(e,t){return t===void 0&&(t=!0),!(Ct(e)||Co(e)&&(e=qv(e),(t?xie:kie).test((e||"").replace(/[- ]/g,""))||(t?_ie:Cie).test(e)))}function MO(e){var t=Bp(e);return hp(t=(t+" "+Qj(e)).trim())?t:""}function Qj(e){var t="";return e&&e.childNodes&&e.childNodes.length&&vo(e.childNodes,(function(o){var a;if(o&&((a=o.tagName)==null?void 0:a.toLowerCase())==="span")try{var n=Bp(o);t=(t+" "+n).trim(),o.childNodes&&o.childNodes.length&&(t=(t+" "+Qj(o)).trim())}catch(i){Ue.error("[AutoCapture]",i)}})),t}function NO(e){return e.replace(/"|\\"/g,'\\"')}function Pie(e){var t=e.attr__class;return t?Lt(t)?t:Jk(t):void 0}class IO{constructor(t){this.disabled=t===!1;var o=Bo(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 N0="$copy_autocapture",LO=To("[AutoCapture]");function I0(e,t){return t.length>e?t.slice(0,e)+"...":t}function Eie(e){if(e.previousElementSibling)return e.previousElementSibling;var t=e;do t=t.previousSibling;while(t&&!Hv(t));return t}function Aie(e,t){for(var o,a,{e:n,maskAllElementAttributes:i,maskAllText:l,elementAttributeIgnoreList:c,elementsChainAsString:d}=t,p=[e],m=e;m.parentNode&&!Rs(m,"body");)Hj(m.parentNode)?(p.push(m.parentNode.host),m=m.parentNode.host):(p.push(m.parentNode),m=m.parentNode);var h,f,v=[],b={},S=!1,k=!1;if(vo(p,(P=>{var R=KT(P);P.tagName.toLowerCase()==="a"&&(S=P.getAttribute("href"),S=R&&S&&hp(S)&&S),_t(ov(P),"ph-no-capture")&&(k=!0),v.push((function(O,L,q,B){var U=O.tagName.toLowerCase(),F={tag_name:U};Xk.indexOf(U)>-1&&!q&&(F.$el_text=U.toLowerCase()==="a"||U.toLowerCase()==="button"?I0(1024,MO(O)):I0(1024,Bp(O)));var W=ov(O);W.length>0&&(F.classes=W.filter((function(J){return J!==""}))),vo(O.attributes,(function(J){var le;if((!Kj(O)||["name","id","class","aria-label"].indexOf(J.name)!==-1)&&(B==null||!B.includes(J.name))&&!L&&hp(J.value)&&(!Co(le=J.name)||le.substring(0,10)!=="_ngcontent"&&le.substring(0,7)!=="_nghost")){var Q=J.value;J.name==="class"&&(Q=Jk(Q).join(" ")),F["attr__"+J.name]=I0(1024,Q)}}));for(var ae=1,H=1,K=O;K=Eie(K);)ae++,K.tagName===O.tagName&&H++;return F.nth_child=ae,F.nth_of_type=H,F})(P,i,l,c));var D=(function(O){if(!KT(O))return{};var L={};return vo(O.attributes,(function(q){if(q.name&&q.name.indexOf("data-ph-capture-attribute")===0){var B=q.name.replace("data-ph-capture-attribute-",""),U=q.value;B&&U&&hp(U)&&(L[B]=U)}})),L})(P);Mo(b,D)})),k)return{props:{},explicitNoCapture:k};if(l||(v[0].$el_text=e.tagName.toLowerCase()==="a"||e.tagName.toLowerCase()==="button"?MO(e):Bp(e)),S){var T,x;v[0].attr__href=S;var E=(T=Zf(S))==null?void 0:T.host,C=ge==null||(x=ge.location)==null?void 0:x.host;E&&C&&E!==C&&(h=S)}return{props:Mo({$event_type:n.type,$ce_version:1},d?{}:{$elements:v},{$elements_chain:(f=v,(function(P){return P.map((R=>{var D,O,L="";if(R.tag_name&&(L+=R.tag_name),R.attr_class)for(var q of(R.attr_class.sort(),R.attr_class))L+="."+q.replace(/"/g,"");var B=Ne({},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),U={};return sf(B).sort(((F,W)=>{var[ae]=F,[H]=W;return ae.localeCompare(H)})).forEach((F=>{var[W,ae]=F;return U[NO(W.toString())]=NO(ae.toString())})),(L+=":")+sf(U).map((F=>{var[W,ae]=F;return W+'="'+ae+'"'})).join("")})).join(";")})((function(P){return P.map((R=>{var D,O,L={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:Pie(R),attr_id:R.attr__id,nth_child:R.nth_child,nth_of_type:R.nth_of_type,attributes:{}};return sf(R).filter((q=>{var[B]=q;return B.indexOf("attr__")===0})).forEach((q=>{var[B,U]=q;return L.attributes[B]=U})),L}))})(f)))},(o=v[0])!=null&&o.$el_text?{$el_text:(a=v[0])==null?void 0:a.$el_text}:{},h&&n.type==="click"?{$external_click_url:h}:{},b)}}var $u=To("[ExceptionAutocapture]");function BO(e,t,o){try{if(!(t in e))return()=>{};var a=e[t],n=o(a);return xi(n)&&(n.prototype=n.prototype||{},Object.defineProperties(n,{__posthog_wrapped__:{enumerable:!1,value:!0}})),e[t]=n,()=>{e[t]=a}}catch{return()=>{}}}var Rie=To("[TracingHeaders]"),us=To("[Web Vitals]"),FO=9e5,jO="disabled",zO="lazy_loading",Vu="awaiting_config",zg="missing_config";To("[SessionRecording]"),To("[SessionRecording]");var YT="[SessionRecording]",ps=To(YT),Die=To("[Heatmaps]");function UO(e){return Bo(e)&&"clientX"in e&&"clientY"in e&&Xn(e.clientX)&&Xn(e.clientY)}var qO=To("[Product Tours]"),Oie=["$set_once","$set"],ms=To("[SiteApps]"),$O="Error while initializing PostHog app with config id ";function jc(e,t,o){if(Ct(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 Mie{constructor(t){this.vn=new Qk,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;$e((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(!$e((o=this._instance)==null?void 0:o._addCaptureHook)&&(t.forEach((l=>{var c,d;(c=this._n)==null||c.add(l),(d=l.steps)==null||d.forEach((p=>{var m;(m=this.bn)==null||m.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((d=>{d!=null&&d.selector&&i.add(d?.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"||!jc(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=>jc(c.href,o.href,o.href_matching||"exact")));var i,l=(t==null||(a=t.properties)==null?void 0:a.$elements_chain)||"";return!!l&&jc((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=>jc(p.text,o.text,o.text_matching||"exact")||jc(p.$el_text,o.text,o.text_matching||"exact")));var i,l,c,d=(t==null||(a=t.properties)==null?void 0:a.$elements_chain)||"";return!!d&&(i=(function(p){for(var m,h=[],f=/(?::|")text="(.*?)"/g;!Ct(m=f.exec(p));)h.includes(m[1])||h.push(m[1]);return h})(d),l=o.text,c=o.text_matching||"exact",i.some((p=>jc(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||Uj(o.properties.reduce(((a,n)=>{var i=Lt(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 Nie{constructor(t){this._instance=t,this.Tn=new Map,this.An=new Map,this.En=new Map}Rn(t,o){return!!t&&Uj(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===Fu.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,d=(c=l.conditions)==null||(c=c[a])==null||(c=c.values)==null?void 0:c.find((p=>p.name===t));return this.Rn(d,o)}))}register(t){var o;$e((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 Mie(this._instance),this.Ln.init(),this.Ln.In((a=>{this.onAction(a)}))),o.forEach((a=>{var n,i,l,c,d;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),(d=a.conditions)==null||(d=d.actions)==null||(d=d.values)==null||d.forEach((p=>{if(p&&p.name){var m=this.En.get(p.name);m&&m.push(a.id),this.En.set(p.name,m||[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,Fu.Activation),this.An=this.Nn(t,Fu.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 d,p;n.info("event matched, removing item from activated items",{event:t,eventPayload:o,existingActivatedItems:c});var m=(o==null||(d=o.properties)==null?void 0:d.$survey_id)||(o==null||(p=o.properties)==null?void 0:p.$product_tour_id);if(m){var h=c.indexOf(m);0>h||(c.splice(h,1),this.jn(c))}}else{if(this.An.has(t)){var f=this.Mn(t,o,Fu.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,Fu.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 Iie extends Nie{constructor(t){super(t)}Dn(){return DT}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 oo}Zn(t){var o;(o=this._instance)==null||(o=o.persistence)==null||o.register({[DT]:t})}qn(){return!1}getSurveys(){return this.getActivatedIds()}getEventToSurveys(){return this.getEventToItemsMap()}}var L0="SDK is not enabled or survey functionality is not yet loaded",VO="Disabled. Not loading surveys.",Lie=ge!=null&&ge.location?Jf(ge.location.hash,"__posthog")||Jf(location.hash,"state"):null,HO="_postHogToolbarParams",GO=To("[Toolbar]"),$a=To("[FeatureFlags]"),ul=To("[FeatureFlags]",{debugEnabled:!0}),B0=`" failed. Feature flags didn't load in time.`,WO=e=>{for(var t={},o=0;e.length>o;o++)t[e[o]]=!0;return t},KO=e=>{var t={};for(var[o,a]of sf(e||{}))a&&(t[o]=a);return t},wi=To("[Error tracking]"),YO="Refusing to render web experiment since the viewer is a likely bot",Bie={icontains:(e,t)=>!!ge&&t.href.toLowerCase().indexOf(e.toLowerCase())>-1,not_icontains:(e,t)=>!!ge&&t.href.toLowerCase().indexOf(e.toLowerCase())===-1,regex:(e,t)=>!!ge&&tv(t.href,e),not_regex:(e,t)=>!!ge&&!tv(t.href,e),exact:(e,t)=>t.href===e,is_not:(e,t)=>t.href!==e};class Oa{get Bt(){return this._instance.config}constructor(t){var o=this;this.getWebExperimentsAndEvaluateDisplayLogic=function(a){a===void 0&&(a=!1),o.getWebExperiments((n=>{Oa.Hn("retrieved web experiments from the server"),o.zn=new Map,n.forEach((i=>{if(i.feature_flag_key){var l;o.zn&&(Oa.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 d in i.variants){var p=i.variants[d];Oa.Yn(p)&&o.Un(i.name,d,p.transforms)}}))}),a)},this._instance=t,this._instance.onFeatureFlags((a=>{this.onFeatureFlags(a)}))}initialize(){}onFeatureFlags(t){if(this._is_bot())Oa.Hn(YO);else if(!this.Bt.disable_web_experiments){if(Ct(this.zn))return this.zn=new Map,this.loadIfEnabled(),void this.previewWebExperiment();Oa.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=Oa.getWindowLocation();if(t!=null&&t.search){var o=Qf(t?.search,"__experiment_id"),a=Qf(t?.search,"__experiment_variant");o&&a&&(Oa.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&&(Oa.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!Ct(t.conditions)&&Oa.Wn(t)&&Oa.Xn(t)}static Wn(t){var o;if(Ct(t.conditions)||Ct((o=t.conditions)==null?void 0:o.url))return!0;var a,n,i,l=Oa.getWindowLocation();return!!l&&((a=t.conditions)==null||!a.url||Bie[(n=(i=t.conditions)==null?void 0:i.urlMatchType)!==null&&n!==void 0?n:"icontains"](t.conditions.url,l))}static getWindowLocation(){return ge?.location}static Xn(t){var o;if(Ct(t.conditions)||Ct((o=t.conditions)==null?void 0:o.utm))return!0;var a=_j();if(a.utm_source){var n,i,l,c,d,p,m,h,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=(d=t.conditions)==null||(d=d.utm)==null||!d.utm_medium||((p=t.conditions)==null||(p=p.utm)==null?void 0:p.utm_medium)==a.utm_medium,S=(m=t.conditions)==null||(m=m.utm)==null||!m.utm_term||((h=t.conditions)==null||(h=h.utm)==null?void 0:h.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];Ue.info("[WebExperiments] "+t,a)}Un(t,o,a){this._is_bot()?Oa.Hn(YO):o!=="control"?a.forEach((n=>{if(n.selector){var i;Oa.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 d=c;n.html&&(d.innerHTML=n.html),n.css&&d.setAttribute("style",n.css)}))}})):Oa.Hn("Control variants leave the page unmodified.")}_is_bot(){return En&&this._instance?jj(En,this.Bt.custom_blocked_useragents):void 0}}var Hn=To("[Conversations]"),pl="Conversations not available yet.",Gv={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,$a.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||($a.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||$a.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,m)=>(p[m]=a[m]||!1,p)),{}),d=Object.keys(l).filter((p=>c[p])).reduce(((p,m)=>(l[m]&&(p[m]=l[m]),p)),{});this.receivedFeatureFlags({featureFlags:c,featureFlagPayloads:d})}}updateFlags(e,t,o){var a=o!=null&&o.merge?this.getFlagVariants():{},n=o!=null&&o.merge?this.getFlagPayloads():{},i=Ne({},a,e),l=Ne({},n,t),c={};for(var[d,p]of Object.entries(i)){var m=typeof p=="string";c[d]={key:d,enabled:!!m||!!p,variant:m?p:void 0,reason:void 0,metadata:$e(l?.[d])?void 0:{id:0,version:void 0,description:void 0,payload:l[d]}}}this.receivedFeatureFlags({flags:c})}get hasLoadedFlags(){return this.Kn}getFlags(){return Object.keys(this.getFlagVariants())}getFlagsWithDetails(){var e=this.os(PT),t=this.os(Ti),o=this.os(Wc);if(!o&&!t)return e||{};var a=Mo({},e||{}),n=[...new Set([...Object.keys(o||{}),...Object.keys(t||{})])];for(var i of n){var l,c,d=a[i],p=t?.[i],m=$e(p)?(l=d?.enabled)!==null&&l!==void 0&&l:!!p,h=$e(p)?d.variant:typeof p=="string"?p:void 0,f=o?.[i],v=Ne({},d,{enabled:m,variant:m?h??d?.variant:void 0});m!==d?.enabled&&(v.original_enabled=d?.enabled),h!==d?.variant&&(v.original_variant=d?.variant),f&&(v.metadata=Ne({},d?.metadata,{payload:f,original_payload:d==null||(c=d.metadata)==null?void 0:c.payload})),a[i]=v}return this.Jn||($a.warn(" Overriding feature flag details!",{flagDetails:e,overriddenPayloads:o,finalDetails:a}),this.Jn=!0),a}getFlagVariants(){var e=this.os(ed),t=this.os(Ti);if(!t)return e||{};for(var o=Mo({},e),a=Object.keys(t),n=0;a.length>n;n++)o[a[n]]=t[a[n]];return this.Jn||($a.warn(" Overriding feature flags!",{enabledFlags:e,overriddenFlags:t,finalFlags:o}),this.Jn=!0),o}getFlagPayloads(){var e=this.os(ET),t=this.os(Wc);if(!t)return e||{};for(var o=Mo({},e||{}),a=Object.keys(t),n=0;a.length>n;n++)o[a[n]]=t[a[n]];return this.Jn||($a.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(qf),n={token:o,distinct_id:this._instance.get_distinct_id(),groups:this._instance.getGroups(),$anon_distinct_id:this.$anon_distinct_id,person_properties:Ne({},((t=this.ni)==null?void 0:t.get_initial_props())||{},this.os(rp)||{}),group_properties:this.os(gl),timezone:Dj()};Ni(a)||$e(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:Lr.Base64,timeout:this.Bt.feature_flag_request_timeout_ms,callback:l=>{var c,d,p,m=!0;if(l.statusCode===200&&(this.ts||(this.$anon_distinct_id=void 0),m=!1),this.Qn=!1,!n.disable_flags||this.ts){this.rs=!m;var h=[];l.error?l.error instanceof Error?h.push(l.error.name==="AbortError"?"timeout":"connection_error"):h.push("unknown_error"):l.statusCode!==200&&h.push("api_error_"+l.statusCode),(c=l.json)!=null&&c.errorsWhileComputingFlags&&h.push("errors_while_computing_flags");var f,v=!((d=l.json)==null||(d=d.quotaLimited)==null||!d.includes("feature_flags"));v&&h.push("quota_limited"),(p=this.ni)==null||p.register({[MT]:h}),v?$a.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:{},m,{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 $a.warn('getFeatureFlag for key "'+e+B0)}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(AT)||void 0,d=this.os(Vf)||void 0,p=this.os(up)||{};if(this.Bt.advanced_feature_flags_dedup_per_session){var m,h=this._instance.get_session_id(),f=this.os(OT);h&&h!==f&&(p={},(m=this.ni)==null||m.register({[up]:p,[OT]:h}))}if((t.send_event||!("send_event"in t))&&(!(e in p)||!p[e].includes(l))){var v,b,S,k,T,x,E,C,P,R;Lt(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(MT))!==null&&b!==void 0?b:[]];$e(n)&&O.push("flag_missing");var L={$feature_flag:e,$feature_flag_response:n,$feature_flag_payload:i||null,$feature_flag_request_id:c,$feature_flag_evaluated_at:d,$feature_flag_bootstrapped_response:((S=this.Bt.bootstrap)==null||(S=S.featureFlags)==null?void 0:S[e])||null,$feature_flag_bootstrapped_payload:((k=this.Bt.bootstrap)==null||(k=k.featureFlagPayloads)==null?void 0:k[e])||null,$used_bootstrap_value:!this.rs};$e(D==null||(T=D.metadata)==null?void 0:T.version)||(L.$feature_flag_version=D.metadata.version);var q,B=(x=D==null||(E=D.reason)==null?void 0:E.description)!==null&&x!==void 0?x:D==null||(C=D.reason)==null?void 0:C.code;B&&(L.$feature_flag_reason=B),D!=null&&(P=D.metadata)!=null&&P.id&&(L.$feature_flag_id=D.metadata.id),$e(D?.original_variant)&&$e(D?.original_enabled)||(L.$feature_flag_original_response=$e(D.original_variant)?D.original_enabled:D.original_variant),D!=null&&(R=D.metadata)!=null&&R.original_payload&&(L.$feature_flag_original_payload=D==null||(q=D.metadata)==null?void 0:q.original_payload),O.length&&(L.$feature_flag_error=O.join(",")),this._instance.capture("$feature_flag_called",L)}if(a){var U=i;if(!$e(i))try{U=JSON.parse(i)}catch{}return{key:e,enabled:!!n,variant:typeof n=="string"?n:void 0,payload:U}}}}else $a.warn('getFeatureFlagResult for key "'+e+B0)}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:Lr.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 $e(o)?void 0:!!o}$a.warn('isFeatureEnabled for key "'+e+B0)}}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,d,p,m,h){d===void 0&&(d={}),p===void 0&&(p={}),m===void 0&&(m={});var f=(O=>{var L=O.flags;return L?(O.featureFlags=Object.fromEntries(Object.keys(L).map((q=>{var B;return[q,(B=L[q].variant)!==null&&B!==void 0?B:L[q].enabled]}))),O.featureFlagPayloads=Object.fromEntries(Object.keys(L).filter((q=>L[q].enabled)).filter((q=>{var B;return(B=L[q].metadata)==null?void 0:B.payload})).map((q=>{var B;return[q,(B=L[q].metadata)==null?void 0:B.payload]})))):$a.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 k=l.requestId,T=l.evaluatedAt;if(Lt(b)){$a.warn("v1 of the feature flags endpoint is deprecated. Please use the latest version.");var x={};if(b)for(var E=0;b.length>E;E++)x[b[E]]=!0;c&&c.register({[nf]:b,[ed]:x})}else{var C=b,P=S,R=v;if(h!=null&&h.partialResponse)C=Ne({},d,C),P=Ne({},p,P),R=Ne({},m,R);else if(l.errorsWhileComputingFlags)if(v){var D=new Set(Object.keys(v).filter((O=>{var L;return!((L=v[O])!=null&&L.failed)})));C=Ne({},d,Object.fromEntries(Object.entries(C).filter((O=>{var[L]=O;return D.has(L)})))),P=Ne({},p,Object.fromEntries(Object.entries(P||{}).filter((O=>{var[L]=O;return D.has(L)})))),R=Ne({},m,Object.fromEntries(Object.entries(R||{}).filter((O=>{var[L]=O;return D.has(L)}))))}else C=Ne({},d,C),P=Ne({},p,P),R=Ne({},m,R);c&&c.register(Ne({[nf]:Object.keys(KO(C)),[ed]:C||{},[ET]:P||{},[PT]:R||{}},k?{[AT]:k}:{},T?{[Vf]:T}:{}))}}})(e,this.ni,a,n,i,o),t||(this.ss=!1),this.ps(t)}}override(e,t){t===void 0&&(t=!1),$a.warn("override is deprecated. Please use overrideFeatureFlags instead."),this.overrideFeatureFlags({flags:e,suppressWarning:t})}overrideFeatureFlags(e){if(!this._instance.__loaded||!this.ni)return $a.uninitializedWarning("posthog.featureFlags.overrideFeatureFlags");if(e===!1)return this.ni.unregister(Ti),this.ni.unregister(Wc),this.ps(),ul.info("All overrides cleared");if(Lt(e)){var t=WO(e);return this.ni.register({[Ti]:t}),this.ps(),ul.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(Ti),ul.info("Flag overrides cleared");else if(a.flags){if(Lt(a.flags)){var n=WO(a.flags);this.ni.register({[Ti]:n})}else this.ni.register({[Ti]:a.flags});ul.info("Flag overrides set",{flags:a.flags})}}return"payloads"in a&&(a.payloads===!1?(this.ni.unregister(Wc),ul.info("Payload overrides cleared")):a.payloads&&(this.ni.register({[Wc]:a.payloads}),ul.info("Payload overrides set",{payloads:a.payloads}))),void this.ps()}if(e&&typeof e=="object")return this.ni.register({[Ti]:e}),this.ps(),ul.info("Flag overrides set",{flags:e});$a.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((d=>d.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=Ne({},this.getFlagVariants(),{[e]:t});(a=this.ni)==null||a.register({[nf]:Object.keys(KO(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 d=i.json.earlyAccessFeatures;return(l=this.ni)==null||l.unregister(np),(c=this.ni)==null||c.register({[np]:d}),e(d)}}})}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]:Ne({},o,i,a)}),t&&this._instance.reloadFeatureFlags()}resetPersonPropertiesForFlags(){this._instance.unregister(rp)}setGroupPropertiesForFlags(e,t){t===void 0&&(t=!0);var o=this.os(gl)||{};Object.keys(o).length!==0&&Object.keys(o).forEach((a=>{o[a]=Ne({},o[a],e[a]),delete e[a]})),this._instance.register({[gl]:Ne({},o,e)}),t&&this._instance.reloadFeatureFlags()}resetGroupPropertiesForFlags(e){if(e){var t=this.os(gl)||{};this._instance.register({[gl]:Ne({},t,{[e]:{}})})}else this._instance.unregister(gl)}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}}},Fie={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===zg?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=jO,this._s=void 0,this._instance=e,!this._instance.sessionManager)throw ps.error("started without valid sessionManager"),new Error(YT+" started without valid sessionManager. This is a bug.");if(this.Bt.cookieless_mode===ki)throw new Error(YT+' 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 ge&&t&&o&&!a}startIfEnabledOrStop(e){var t;if(!this.ws||(t=this.ys)==null||!t.isStarted){var o=!$e(Object.assign)&&!$e(Array.from);this.ws&&o?(this.Is(e),ps.info("starting")):(this.bs=jO,this.stopRecording())}}Is(e){var t,o,a;this.ws&&(this.bs!==Vu&&this.bs!==zg&&(this.bs=zO),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 ps.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(Gk)}Ts(e,t){if(Ct(e))return null;var o,a=Xn(e)?e:parseFloat(e);return typeof(o=a)!="number"||!Number.isFinite(o)||0>o||o>1?(ps.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"),d=this.Ts(l?.sampleRate,"remote config sampleRate"),p=c??d;Ct(p)&&this.ks();var m=l?.minimumDurationMilliseconds;a.register({[ap]:Ne({cache_timestamp:Date.now(),enabled:!!l},l,{networkPayloadCapture:Ne({capturePerformance:e.capturePerformance},l?.networkPayloadCapture),canvasRecording:{enabled:l?.recordCanvas,fps:l?.canvasFps,quality:l?.canvasQuality},sampleRate:p,minimumDurationMilliseconds:$e(m)?null:m,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=zg,ps.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):ps.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 ps.warn("Called on script loaded before session recording is available. This can be caused by adblockers."),void this._instance.register_for_session({[Sj]:!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===zg||this.bs===Vu?void 0:(this.bs=Vu,ps.info("persisted remote config is stale, requesting fresh config before starting"),void new Oj(this._instance).load());this.bs=zO,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({[hj]:!0}),(e=this.ys)==null||e.overrideLinkedFlag()}overrideSampling(){var e,t;this.ys||(t=this.ni)==null||t.register({[mj]:!0}),(e=this.ys)==null||e.overrideSampling()}overrideTrigger(e){var t,o;this.ys||(o=this.ni)==null||o.register({[e==="url"?gj:fj]:!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))}}},jie={autocapture:class{constructor(e){this.Rs=!1,this.Ns=null,this.Ms=!1,this.instance=e,this.rageclicks=new IO(e.config.rageclick),this.Fs=null}initialize(){this.startIfEnabled()}get Bt(){var e,t,o=Bo(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(ge&&ze){var e=o=>{o=o||ge?.event;try{this.Ps(o)}catch(a){LO.error("Failed to capture event",a)}};if(Zo(ze,"submit",e,{capture:!0}),Zo(ze,"change",e,{capture:!0}),Zo(ze,"click",e,{capture:!0}),this.Bt.capture_copied_text){var t=o=>{this.Ps(o=o||ge?.event,N0)};Zo(ze,"copy",t,{capture:!0}),Zo(ze,"cut",t,{capture:!0})}}}else LO.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({[yT]:!!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=ze?.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[yT];if(Ni(this.Ns)&&!qr(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=AO(e);Vj(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(h,f){if(!ge||WT(h))return!1;var v,b,S;if(qr(f)?(v=!!f&&DO,b=void 0):(v=(S=f?.css_selector_ignorelist)!==null&&S!==void 0?S:DO,b=f?.content_ignorelist),v===!1)return!1;var{targetElementList:k}=OO(h,!1);return!(function(T,x){if(T===!1||$e(T))return!1;var E;if(T===!0)E=Tie;else{if(!Lt(T))return!1;if(T.length>10)return Ue.error("[PostHog] content_ignorelist array cannot exceed 10 items. Use css_selector_ignorelist for more complex matching."),!1;E=T.map((C=>C.toLowerCase()))}return x.some((C=>{var{safeText:P,ariaLabel:R}=C;return E.some((D=>P.includes(D)||R.includes(D)))}))})(b,k.map((T=>{var x;return{safeText:Bp(T).toLowerCase(),ariaLabel:((x=T.getAttribute("aria-label"))==null?void 0:x.toLowerCase().trim())||""}})))&&!RO(k,v)})(a,this.instance.config.rageclick)&&this.Ps(e,"$rageclick");var n=t===N0;if(a&&(function(h,f,v,b,S){var k,T,x,E;if(v===void 0&&(v=void 0),!ge||WT(h)||(k=v)!=null&&k.url_allowlist&&!EO(v.url_allowlist)||(T=v)!=null&&T.url_ignorelist&&EO(v.url_ignorelist))return!1;if((x=v)!=null&&x.dom_event_allowlist){var C=v.dom_event_allowlist;if(C&&!C.some((L=>f.type===L)))return!1}var{parentIsUsefulElement:P,targetElementList:R}=OO(h,b);if(!(function(L,q){var B=q?.element_allowlist;if($e(B))return!0;var U,F=function(ae){if(B.some((H=>ae.tagName.toLowerCase()===H)))return{v:!0}};for(var W of L)if(U=F(W))return U.v;return!1})(R,v)||!RO(R,(E=v)==null?void 0:E.css_selector_allowlist))return!1;var D=ge.getComputedStyle(h);if(D&&D.getPropertyValue("cursor")==="pointer"&&f.type==="click")return!0;var O=h.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 P?(S||["click"]).indexOf(f.type)>=0:(S||["click"]).indexOf(f.type)>=0&&(Xk.indexOf(O)>-1||h.getAttribute("contenteditable")==="true")}})(a,e,this.Bt,n,n?["copy","cut"]:void 0)){var{props:i,explicitNoCapture:l}=Aie(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===N0){var d,p=Gj(ge==null||(d=ge.getSelection())==null?void 0:d.toString()),m=e.type||"clipboard";if(!p)return!1;i.$selected_content=p,i.$copy_type=m}return this.instance.capture(t,i),!0}}}isBrowserSupported(){return xi(ze?.querySelectorAll)}},historyAutocapture:class{constructor(e){var t;this._instance=e,this.Ls=(ge==null||(t=ge.location)==null?void 0:t.pathname)||""}initialize(){this.startIfEnabled()}get isEnabled(){return this._instance.config.capture_pageview==="history_change"}startIfEnabled(){this.isEnabled&&(Ue.info("History API monitoring enabled, starting..."),this.monitorHistoryChanges())}stop(){this.Ds&&this.Ds(),this.Ds=void 0,Ue.info("History API monitoring stopped")}monitorHistoryChanges(){var e,t;if(ge&&ge.history){var o=this;(e=ge.history.pushState)!=null&&e.__posthog_wrapped__||BO(ge.history,"pushState",(a=>function(n,i,l){a.call(this,n,i,l),o.Bs("pushState")})),(t=ge.history.replaceState)!=null&&t.__posthog_wrapped__||BO(ge.history,"replaceState",(a=>function(n,i,l){a.call(this,n,i,l),o.Bs("replaceState")})),this.js()}}Bs(e){try{var t,o=ge==null||(t=ge.location)==null?void 0:t.pathname;if(!o)return;o!==this.Ls&&this.isEnabled&&this._instance.capture(Kc,{navigation_type:e}),this.Ls=o}catch(a){Ue.error("Error capturing "+e+" pageview",a)}}js(){if(!this.Ds){var e=()=>{this.Bs("popstate")};Zo(ge,"popstate",e),this.Ds=()=>{ge&&ge.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[ST]),this.rageclicks=new IO(e.config.rageclick)}initialize(){this.startIfEnabled()}get flushIntervalMilliseconds(){var e=5e3;return Bo(this.Bt.capture_heatmaps)&&this.Bt.capture_heatmaps.flush_interval_milliseconds&&(e=this.Bt.capture_heatmaps.flush_interval_milliseconds),e}get isEnabled(){return Ct(this.Bt.capture_heatmaps)?Ct(this.Bt.enable_heatmaps)?this.$s:this.Bt.enable_heatmaps:this.Bt.capture_heatmaps!==!1}startIfEnabled(){if(this.isEnabled){if(this.Rs)return;Die.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({[ST]: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=ze?.visibilityState==="visible"?setInterval(this.Yr.bind(this),this.flushIntervalMilliseconds):null}Zs(){ge&&ze&&(this.zs=this.Yr.bind(this),Zo(ge,Kf,this.zs),this.Us=e=>this.Tt(e||ge?.event),Zo(ze,"click",this.Us,{capture:!0}),this.Ys=e=>this.Gs(e||ge?.event),Zo(ze,"mousemove",this.Ys,{capture:!0}),this.Ws=new lO(this.instance,Vre,this.Hs.bind(this)),this.Ws.startIfEnabledOrStop(),this.Xs=this.Ft.bind(this),Zo(ze,Wf,this.Xs),this.Rs=!0)}Vs(){var e;ge&&ze&&(this.zs&&ge.removeEventListener(Kf,this.zs),this.Us&&ze.removeEventListener("click",this.Us,{capture:!0}),this.Ys&&ze.removeEventListener("mousemove",this.Ys,{capture:!0}),this.Xs&&ze.removeEventListener(Wf,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,d){for(var p=l;p&&Hv(p)&&!Rs(p,"body");){if(p===d)return!1;if(_t(c,ge?.getComputedStyle(p).position))return!0;p=Wj(p)}return!1})(AO(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"),!PO(e.target)&&UO(e)){var a=this.Ks(e,t);(o=this.rageclicks)!=null&&o.isRageClick(e.clientX,e.clientY,new Date().getTime())&&this.Qs(Ne({},a,{type:"rageclick"})),this.Qs(a)}}Gs(e){!PO(e.target)&&UO(e)&&(clearTimeout(this.Js),this.Js=setTimeout((()=>{this.Qs(this.Ks(e,"mousemove"))}),500))}Qs(e){if(ge){var t=ge.location.href,o=this.Bt.custom_personal_data_properties,a=this.Bt.mask_personal_data_properties?[...kd,...o||[]]:[],n=Ip(t,a,Lp);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:lO,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)=>Ne({},o,{["$web_vitals_"+a.name+"_event"]:Ne({},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($e(n))us.error("Could not read session ID. Dropping metrics!");else{this.T=this.T||{url:void 0,metrics:[],firstMetricTimestamp:void 0};var i=this.io();$e(i)||(Ct(o?.name)||Ct(o?.value)?us.error("Invalid metric received",o):!this.no||this.no>o.value?(this.T.url!==i&&(this.eo(),this.ro=setTimeout(this.eo,this.flushToCaptureTimeoutMs)),$e(this.T.url)&&(this.T.url=i),this.T.firstMetricTimestamp=$e(this.T.firstMetricTimestamp)?Date.now():this.T.firstMetricTimestamp,o.attribution&&o.attribution.interactionTargetElement&&(o.attribution.interactionTargetElement=void 0),this.T.metrics.push(Ne({},o,{$current_url:i,$session_id:n.sessionId,$window_id:n.windowId,timestamp:Date.now()})),this.T.metrics.length===this.allowedMetrics.length&&this.eo()):us.error("Ignoring metric with value >= "+this.no,o))}},this.so=()=>{if(!this.Rs){var o,a,n,i,l=et.__PosthogExtensions__;$e(l)||$e(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):us.error("web vitals callbacks not loaded - not starting")}},this._instance=e,this.$s=!((t=this._instance.persistence)==null||!t.props[kT]),this.startIfEnabled()}get oo(){return this._instance.config.capture_performance}get allowedMetrics(){var e,t,o=Bo(this.oo)?(e=this.oo)==null?void 0:e.web_vitals_allowed_metrics:void 0;return Ct(o)?((t=this._instance.persistence)==null?void 0:t.props[CT])||["CLS","FCP","INP","LCP"]:o}get flushToCaptureTimeoutMs(){return(Bo(this.oo)?this.oo.web_vitals_delayed_flush_ms:void 0)||5e3}get useAttribution(){var e=Bo(this.oo)?this.oo.web_vitals_attribution:void 0;return e!=null&&e}get no(){var e=Bo(this.oo)&&Xn(this.oo.__web_vitals_max_value)?this.oo.__web_vitals_max_value:FO;return e>0&&6e4>=e?FO:e}get isEnabled(){var e=wa?.protocol;if(e!=="http:"&&e!=="https:")return us.info("Web Vitals are disabled on non-http/https protocols"),!1;var t=Bo(this.oo)?this.oo.web_vitals:qr(this.oo)?this.oo:void 0;return qr(t)?t:this.$s}startIfEnabled(){this.isEnabled&&!this.Rs&&(us.info("enabled, starting..."),this.ur(this.so))}onRemoteConfig(e){if("capturePerformance"in e){var t=Bo(e.capturePerformance)&&!!e.capturePerformance.web_vitals,o=Bo(e.capturePerformance)?e.capturePerformance.web_vitals_allowed_metrics:void 0;this._instance.persistence&&(this._instance.persistence.register({[kT]:t}),this._instance.persistence.register({[CT]: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?us.error("failed to load script",a):e()}))}io(){var e=ge?ge.location.href:void 0;if(e){var t=this._instance.config.custom_personal_data_properties,o=this._instance.config.mask_personal_data_properties?[...kd,...t||[]]:[];return Ip(e,o,Lp)}us.error("Could not determine current URL")}}},zie={exceptionObserver:class{constructor(e){var t,o,a;this.so=()=>{var n;if(ge&&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(d){$u.error("failed to start",d),this.ho()}}},this._instance=e,this.co=!((t=this._instance.persistence)==null||!t.props[wT]),this.do=new Xne({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:$u}),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 Bo(e)?t=Ne({},t,e):($e(e)?this.co:e)&&(t=Ne({},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?($u.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 $u.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({[wT]: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)?$u.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 pre([new Sre,new Are,new Tre,new wre,new Pre,new Cre,new kre,new Ere],(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,d){d===void 0&&(d=0);for(var p=[],m=c.split(`
|
|
168
|
-
`),h=d;m.length>h;h++){var f=m[h];if(1024>=f.length){var v=nO.test(f)?f.replace(nO,"$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(k){if(!k.length)return[];var T=Array.from(k);return T.reverse(),T.slice(0,50).map((x=>{return Ne({},x,{filename:x.filename||(E=T,E[E.length-1]||{}).filename,function:x.function||xd});var E}))})(p)}})("web:javascript",fre,yre)),this._instance=e,this.fo=(t=(o=this._instance.persistence)==null?void 0:o.get_property(TT))!==null&&t!==void 0?t:[],this.mo=Uf(this.yo()),this.bo=new Dre(this.mo)}onConfigChange(){this.mo=Uf(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({[TT]:this.fo,[xT]:i})}}get _o(){var e,t=!!this._instance.get_property(xT),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,d)=>Rre.has(d)?(l.push(d),c):(c[d]=i[d],c)),{}),droppedKeys:l}})(o);n.length>0&&wi.warn("Ignoring reserved exception step fields",{droppedKeys:n}),this.bo.add(Ne({[jf]:e,[zf]: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&&Ct(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:Ne({},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({[jf]:e,[zf]:new Date().toISOString()})}wo(e){return Bo(e)?Ne({},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=zj[n.operator],c=Lt(n.value)?n.value:[n.value],d=(i=t[n.key])!==null&&i!==void 0?i:[];return c.length>0&&l(c,d)}));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!Ct(e)&&Lt(e)}}},Uie=Ne({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({[_T]:!!e.productTours}),this.loadIfEnabled())}loadIfEnabled(){var e,t;this.Ao||(e=this._instance).config.disable_product_tours||(t=e.persistence)==null||!t.get_property(_T)||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?qO.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),!Lt(this.Eo)||t){var o=this.ni;if(o){var a=o.props[rf];if(Lt(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 qO.error(l),void e([],{isLoaded:!1,error:l})}var c=Lt(n.json.product_tours)?n.json.product_tours:[];this.Eo=c,o&&o.register({[rf]:c}),e(c,{isLoaded:!0})}})}else e(this.Eo,{isLoaded:!0})}getActiveProductTours(e){Ct(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(rf)}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)}}},Gv),qie={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 d={},p=this._instance.get_property("$groups")||[],m=this._instance.get_property("$stored_group_properties")||{};for(var[h,f]of Object.entries(m))d[h]={id:p[h],type:h,properties:f};var{$set_once:v,$set:b}=e;return{event:Ne({},UF(e,Oie),{properties:Ne({},e.properties,b?{$set:Ne({},(t=(o=e.properties)==null?void 0:o.$set)!==null&&t!==void 0?t:{},b)}:{},v?{$set_once:Ne({},(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:d}}setupSiteApp(e){var t=this.apps[e.id],o=()=>{var l;!t.errored&&this.No.length&&(ms.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,ms.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){ms.error($O+e.id,l),n(!1)}if(a&&t.loaded)try{o()}catch(l){ms.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){ms.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",(d=>this.Po(d)))):void ms.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(d){var p;et["__$$ph_site_app_"+d]=n._instance,(p=et.__PosthogExtensions__)==null||p.loadSiteApp==null||p.loadSiteApp(n._instance,c,(m=>{if(m)return ms.error($O+d,m)}))};for(var{id:l,url:c}of e.siteApps)i(l)}else ms.error('PostHog site apps are disabled. Enable the "opt_in_site_apps" config to proceed.')}}},$ie={tracingHeaders:class{constructor(e){this.Lo=void 0,this.Do=void 0,this.so=()=>{var t,o,a=this.Bo()||[];$e(this.Lo)&&((t=et.__PosthogExtensions__)==null||(t=t.tracingHeadersPatchFns)==null||t._patchXHR(a,this._instance.get_distinct_id(),this._instance.sessionManager)),$e(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 Rie.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)}}},Vie=Ne({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(Ct(t))return oo.warn("Flags not loaded yet. Not loading surveys.");var o=Lt(t);this.jo=o?t.length>0:t,oo.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(HT)||o!=null&&o.startsWith("inProgressSurvey_"))&&e.push(o)}e.forEach((a=>localStorage.removeItem(a)))}loadIfEnabled(){if(!this._surveyManager)if(this.$o)oo.info("Already initializing surveys, skipping...");else if(this.Bt.disable_surveys)oo.info(VO);else if(this.Bt.cookieless_mode&&this._instance.consent.isOptedOut())oo.info("Not loading surveys in cookieless mode without consent.");else{var e=et?.__PosthogExtensions__;if(e){if(!$e(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(Wk);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 oo.error("PostHog Extensions not found.")}}Vo(e,t){this._surveyManager=e(this._instance,t),this._surveyEventReceiver=new Iie(this._instance),oo.info("Surveys loaded successfully"),this.zo({isLoaded:!0})}Ho(e,t){oo.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 oo.info(VO),e([]);var o,a=this._instance.get_property(RT);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;oo.error(c);var d={isLoaded:!1,error:c};return e([],d),void(o==null||o({surveys:[],context:d}))}var p,m=n.json.surveys||[],h=m.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))));h.length>0&&((p=this._surveyEventReceiver)==null||p.register(h)),(i=this._instance.persistence)==null||i.register({[RT]:m});var f={isLoaded:!0};e(m,f),o?.({surveys:m,context:f})}}))}zo(e){for(var t of this.qo)try{if(!e.isLoaded)return t([],e);this.getSurveys(t)}catch(o){oo.error("Error in survey callback",o)}}getActiveMatchingSurveys(e,t){if(t===void 0&&(t=!1),!Ct(this._surveyManager))return this._surveyManager.getActiveMatchingSurveys(e,t);oo.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(Ct(this._surveyManager))return{eligible:!1,reason:L0};var t=typeof e=="string"?this.Uo(e):e;return t?this._surveyManager.checkSurveyEligibility(t):{eligible:!1,reason:"Survey not found"}}canRenderSurvey(e){if(Ct(this._surveyManager))return oo.warn("init was not called"),{visible:!1,disabledReason:L0};var t=this.Yo(e);return{visible:t.eligible,disabledReason:t.reason}}canRenderSurveyAsync(e,t){return Ct(this._surveyManager)?(oo.warn("init was not called"),Promise.resolve({visible:!1,disabledReason:L0})):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(Ct(this._surveyManager))oo.warn("init was not called");else{var n=typeof e=="string"?this.Uo(e):e;if(n!=null&&n.id)if(gie.includes(n.type)){var i=ze?.querySelector(t);if(i)return(a=n.appearance)!=null&&a.surveyPopupDelaySeconds?(oo.info("Rendering survey "+n.id+" with delay of "+n.appearance.surveyPopupDelaySeconds+" seconds"),void setTimeout((()=>{var l,c;oo.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),oo.info("Survey "+n.id+" rendered")}),1e3*n.appearance.surveyPopupDelaySeconds)):void this._surveyManager.renderSurvey(n,i,o);oo.warn("Survey element not found")}else oo.warn("Surveys of type "+n.type+" cannot be rendered in the app");else oo.warn("Survey not found")}}displaySurvey(e,t){var o;if(Ct(this._surveyManager))oo.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=Ne({},a,{appearance:Ne({},a.appearance,{surveyPopupDelaySeconds:0})})),t.displayType!==jT.Popover&&t.initialResponses&&oo.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 oo.warn("Survey is not eligible to be displayed: ",i.disabledReason)}t.displayType!==jT.Inline?this._surveyManager.handlePopoverSurvey(n,t):this.renderSurvey(n,t.selector,t.properties)}else oo.warn("Survey not found")}}cancelPendingSurvey(e){Ct(this._surveyManager)?oo.warn("init was not called"):this._surveyManager.cancelSurvey(e)}handlePageUnload(){var e;(e=this._surveyManager)==null||e.handlePageUnload()}}},Gv),Hie={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),wj(this.instance.config)||!ge||!ze)return!1;e=e??ge.location,o=o??ge.history;try{if(!t){try{ge.localStorage.setItem("test","test"),ge.localStorage.removeItem("test")}catch{return!1}t=ge?.localStorage}var a,n=Lie||Jf(e.hash,"__posthog")||Jf(e.hash,"state"),i=n?iO((()=>JSON.parse(atob(decodeURIComponent(n)))))||iO((()=>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(HO)||"{}")).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;!Ct(t)&&xi(t)?t(e,this.instance):GO.warn("No toolbar load function found")}loadToolbar(e){var t=!(ze==null||!ze.getElementById(vj));if(!ge||t)return!1;var o=this.instance.requestRouter.region==="custom"&&this.instance.config.advanced_disable_toolbar_metrics,a=Ne({token:this.instance.config.token},e,{apiURL:this.instance.requestRouter.endpointFor("ui")},o?{instrument:!1}:{});if(ge.localStorage.setItem(HO,JSON.stringify(Ne({},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 GO.error("[Toolbar] Failed to load",i),void this.Go(0);this.Go(2),this.Xo(a)})),Zo(ge,"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)}}},Gie=Ne({experiments:Oa},Gv),Wie={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;Ct(t)||(qr(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||wj(this._instance.config)||this._instance.config.cookieless_mode&&this._instance.consent.isOptedOut())){var e=et?.__PosthogExtensions__;if(e&&!$e(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(Wk);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 Hn.error("Conversations enabled but missing token in remote config.")}}ta(e){if(this.ea)try{this._conversationsManager=e(this.ea,this._instance),Hn.info("Conversations loaded successfully")}catch(t){this.ra("Error completing conversations initialization",t)}else Hn.error("Cannot complete initialization: remote config is null")}ra(e,t){Hn.error(e,t),this._conversationsManager=null,this.Qo=!1}show(){this._conversationsManager?this._conversationsManager.show():Hn.warn("Conversations not loaded yet.")}hide(){this._conversationsManager&&this._conversationsManager.hide()}isAvailable(){return this.Ko===!0&&!Ni(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):(Hn.warn(pl),null)}))()}getMessages(e,t){var o=this;return Kn((function*(){return o._conversationsManager?o._conversationsManager.getMessages(e,t):(Hn.warn(pl),null)}))()}markAsRead(e){var t=this;return Kn((function*(){return t._conversationsManager?t._conversationsManager.markAsRead(e):(Hn.warn(pl),null)}))()}getTickets(e){var t=this;return Kn((function*(){return t._conversationsManager?t._conversationsManager.getTickets(e):(Hn.warn(pl),null)}))()}requestRestoreLink(e){var t=this;return Kn((function*(){return t._conversationsManager?t._conversationsManager.requestRestoreLink(e):(Hn.warn(pl),null)}))()}restoreFromToken(e){var t=this;return Kn((function*(){return t._conversationsManager?t._conversationsManager.restoreFromToken(e):(Hn.warn(pl),null)}))()}restoreFromUrlToken(){var e=this;return Kn((function*(){return e._conversationsManager?e._conversationsManager.restoreFromUrlToken():(Hn.warn(pl),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()}}},Kie={logs:class{constructor(e){var t;this.ia=!1,this.na=!1,this.Gt=To("[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;!Ct(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(Wk)}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,d=(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),d>this.oa){this.oa++;var m=(function(h,f){var v=h.level||"info",{text:b,number:S}=sj[v]||dre,k=String(Date.now())+"000000",T={};f.distinctId&&(T.posthogDistinctId=f.distinctId),f.sessionId&&(T.sessionId=f.sessionId),f.currentUrl&&(T["url.full"]=f.currentUrl),f.screenName&&(T["screen.name"]=f.screenName),f.appState&&(T["app.state"]=f.appState),f.activeFeatureFlags&&f.activeFeatureFlags.length>0&&(T.feature_flags=f.activeFeatureFlags);var x=Ne({},T,h.attributes||{}),E={timeUnixNano:k,observedTimeUnixNano:k,severityNumber:S,severityText:b,body:{stringValue:h.body},attributes:aO(x)};return h.trace_id&&(E.traceId=h.trace_id),h.span_id&&(E.spanId=h.span_id),$e(h.trace_flags)||(E.flags=h.trace_flags),E})(e,this.ua());this.sa.push({record:m}),((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 "+d+" 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=Ne({"service.name":o?.serviceName||"unknown_service"},o?.environment&&{"deployment.environment":o.environment},o?.serviceVersion&&{"service.version":o.serviceVersion},o?.resourceAttributes),n=(function(l,c,d,p){return{resourceLogs:[{resource:{attributes:aO(c)},scopeLogs:[{scope:{name:d,version:p},logRecords:l}]}]}})(t.map((l=>l.record)),a,Ga.LIB_NAME,Ga.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}}},Yie=Ne({},Gv,Fie,jie,zie,Uie,qie,Vie,$ie,Hie,Gie,Wie,Kie);Yn.__defaultExtensionClasses=Ne({},Yie);var ZO,Ii=(ZO=mp[Yc]=new Yn,(function(){function e(){e.done||(e.done=!0,$j=!1,vo(mp,(function(t){t._dom_loaded()})))}ze!=null&&ze.addEventListener?ze.readyState==="complete"?e():Zo(ze,"DOMContentLoaded",e,{capture:!1}):ge&&Ue.error("Browser doesn't support `document.addEventListener` so PostHog couldn't be initialized")})(),ZO);const Zie="studio-ui-resources",av="html",Qie=10080*60*1e3,Jie=50,Xie=16*1024*1024;function ese(e){return e[0]==="mcp"&&e[1]===VI}function Wv(){return new Promise((e,t)=>{const o=indexedDB.open(Zie,1);o.onupgradeneeded=()=>{o.result.objectStoreNames.contains(av)||o.result.createObjectStore(av)},o.onsuccess=()=>e(o.result),o.onerror=()=>t(o.error)})}function Cd(e,t){return e.transaction(av,t).objectStore(av)}function ZT(e){return new Promise((t,o)=>{e.onsuccess=()=>t(e.result),e.onerror=()=>o(e.error)})}async function tse(e){if(!(typeof indexedDB>"u"))try{const t=await Wv(),o=Cd(t,"readonly"),a=await ZT(o.getAllKeys()),n=await ZT(o.getAll()),i=Date.now(),l=a.map((p,m)=>({key:p,value:n[m]})).sort((p,m)=>(m.value?.updatedAt??0)-(p.value?.updatedAt??0)),c=[];let d=0;for(const{key:p,value:m}of l){if(!m||i-m.updatedAt>Qie||d>=Jie){c.push(p);continue}d++;try{const f=JSON.parse(String(p));e.getQueryData(f)===void 0&&e.setQueryData(f,m.html,{updatedAt:0})}catch{c.push(p)}}if(c.length>0){const p=Cd(t,"readwrite");for(const m of c)p.delete(m)}}catch{}}function ose(e){if(typeof indexedDB>"u")return()=>{};const t=Wv().catch(()=>null);return e.getQueryCache().subscribe(o=>{const a=o.query;if(!Array.isArray(a.queryKey)||!ese(a.queryKey)||a.state.status!=="success")return;const n=a.state.data;typeof n!="string"||n.length>Xie||t.then(i=>{if(i)try{Cd(i,"readwrite").put({html:n,updatedAt:Date.now()},JSON.stringify(a.queryKey))}catch{}})})}function ase(){typeof indexedDB>"u"||Wv().then(e=>Cd(e,"readwrite").clear()).catch(()=>{})}async function cbe(e){if(!(typeof indexedDB>"u"))try{const t=await Wv(),o=await ZT(Cd(t,"readonly").getAllKeys()),a=Cd(t,"readwrite");for(const n of o)try{const i=JSON.parse(String(n));i[1]===VI&&i[3]===e&&a.delete(n)}catch{}}catch{}}const nv="studio:rq-cache",e_=1440*60*1e3,nse=1e3,rse=new Set(["publicConfig","ai-provider-keys","organization-settings","home-next-actions"]),ise=new Set(["VIRTUAL_MCP","CONNECTIONS"]);let Jj=!1,Xj=!1;function sse(e){const t=e[0];return typeof t=="string"&&rse.has(t)?!0:e[3]==="collection"&&typeof e[4]=="string"&&ise.has(e[4])}function lse(e){if(!(typeof window>"u"))try{const t=window.localStorage.getItem(nv);if(!t)return;const o=JSON.parse(t),a=!o.timestamp||Date.now()-o.timestamp>e_;if(o.buster!=="4.513.4"||a||!o.state){window.localStorage.removeItem(nv);return}dq(e,o.state),e.invalidateQueries({queryKey:Mn.publicConfig(),refetchType:"none"}),Jj=!0}catch{pse()}}function cse(e){if(typeof window>"u")return()=>{};let t=null;const o=()=>{t=null;try{const i=cq(e,{shouldDehydrateQuery:l=>l.state.status==="success"&&sse(l.queryKey)});window.localStorage.setItem(nv,JSON.stringify({buster:"4.513.4",timestamp:Date.now(),state:i}))}catch{}},a=e.getQueryCache().subscribe(()=>{t==null&&(t=setTimeout(o,nse))}),n=()=>{t!=null&&(clearTimeout(t),o())};return window.addEventListener("pagehide",n),()=>{t!=null&&clearTimeout(t),window.removeEventListener("pagehide",n),a()}}const e3="studio:org-cache:",dse=20;function use(e){const t=Date.now(),o=Object.entries(e).filter(([,a])=>t-a.updatedAt<=e_);for(o.sort(([,a],[,n])=>a.updatedAt-n.updatedAt);o.length>dse;)o.shift();return Object.fromEntries(o)}function t3(e){return`${e3}${e}`}function dbe(e,t){if(typeof window>"u")return null;try{const o=window.localStorage.getItem(t3(e));if(!o)return null;const a=JSON.parse(o)[t];return!a||Date.now()-a.updatedAt>e_?null:(Xj=!0,a)}catch{return null}}function ube(e,t,o){if(!(typeof window>"u"))try{const a=t3(e),n=window.localStorage.getItem(a),i=n?JSON.parse(n):{};i[t]={data:o,updatedAt:Date.now()},window.localStorage.setItem(a,JSON.stringify(use(i)))}catch{}}function pse(){if(ase(),!(typeof window>"u"))try{window.localStorage.removeItem(nv);for(let e=window.localStorage.length-1;e>=0;e--){const t=window.localStorage.key(e);t?.startsWith(e3)&&window.localStorage.removeItem(t)}}catch{}}function mse(){return Jj}function hse(){return Xj}let Ri=!1,QT=null,QO=!1;const t_="studio:lp-distinct-id",o3="mesh:lp-distinct-id",F0="/api/_reports/link-token/",gse=1440*60*1e3;function a3(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(F0)&&n.pathname!==F0&&(n.pathname=`${F0}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 j0(e){return Object.fromEntries(Object.entries(e).map(([t,o])=>[t,typeof o=="string"?a3(o):o]))}const fse=e=>e?(e.properties=j0(e.properties),e.$set&&(e.$set=j0(e.$set)),e.$set_once&&(e.$set_once=j0(e.$set_once)),e):null;function n3(){try{const e=window.localStorage.getItem(t_)??window.localStorage.getItem(o3);if(!e)return;const{id:t,ts:o}=JSON.parse(e);return typeof t!="string"||!t||typeof o!="number"?void 0:Date.now()-o<=gse?t:void 0}catch{return}}function vse(){try{window.localStorage.removeItem(t_),window.localStorage.removeItem(o3)}catch{}}function bse(){try{const e=new URL(window.location.href),t=e.searchParams.get("ph_did");t&&(window.localStorage.setItem(t_,JSON.stringify({id:t,ts:Date.now()})),e.searchParams.delete("ph_did"),window.history.replaceState(window.history.state,"",e.toString()));const o=t??n3();return o?Object.keys(window.localStorage).some(n=>n.startsWith("ph_")&&n.endsWith("_posthog"))?void 0:o:void 0}catch{return}}function yse(e){const t=n3();if(t&&(vse(),t!==e))try{Ii.alias(t)}catch{}}function Sse(e,t){if(Ri||typeof window>"u")return;const o=bse();Ii.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:fse,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:a3(a.name)}:{}})},person_profiles:"identified_only"}),Ri=!0}function wse(e,t){Ri&&(Ii.identify(e,t),yse(e))}function Tse(){Ri&&(Ii.reset(),QT=null)}function r3(e,t){Ri&&Ii.capture(e,t)}function pbe(){return Ri}function mbe(){if(!Ri||QO||typeof performance>"u")return;QO=!0;const e=performance.getEntriesByType("navigation")[0],t=o=>{const a=performance.getEntriesByName(o,"measure")[0];return a?Math.round(a.duration):void 0};r3("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:mse(),org_cache_restored:hse()})}function hbe(e,t){Ri&&e!==QT&&(Ii.group("organization",e,t),QT=e)}function i3(e,t){if(Ri)try{Ii.captureException(e,t)}catch{}}const xse=["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 kse(e){const t=Re.c(3),{children:o}=e;let a;t[0]===Symbol.for("react.memo_cache_sentinel")?(a=w.jsx("div",{className:"absolute inset-0 pointer-events-none",style:{backgroundImage:xse}}),t[0]=a):a=t[0];let n;return t[1]!==o?(n=w.jsxs("div",{className:"relative flex items-center justify-center min-h-screen bg-background overflow-hidden",children:[a,w.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 s3(e){const t=Re.c(20),{orgName:o}=e,a=ar(),n=_se;let i;t[0]===Symbol.for("react.memo_cache_sentinel")?(i=w.jsx("div",{className:"bg-muted p-3 rounded-full","aria-hidden":"true",children:w.jsx(SF,{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=w.jsx("h3",{className:"text-lg font-medium",children:l}),t[3]=l,t[4]=c):c=t[4];let d;t[5]!==o||t[6]!==a?(d=o?a("common.archivedOrgScreen.deletedWithName",{orgName:o}):a("common.archivedOrgScreen.deletedGeneric"),t[5]=o,t[6]=a,t[7]=d):d=t[7];let p;t[8]!==d?(p=w.jsx("p",{className:"text-sm text-muted-foreground",children:d}),t[8]=d,t[9]=p):p=t[9];let m;t[10]!==c||t[11]!==p?(m=w.jsxs("div",{className:"space-y-2",children:[c,p]}),t[10]=c,t[11]=p,t[12]=m):m=t[12];let h;t[13]!==a?(h=a("common.goHome"),t[13]=a,t[14]=h):h=t[14];let f;t[15]!==h?(f=w.jsx(Ai,{onClick:n,children:h}),t[15]=h,t[16]=f):f=t[16];let v;return t[17]!==m||t[18]!==f?(v=w.jsxs(kse,{children:[i,m,f]}),t[17]=m,t[18]=f,t[19]=v):v=t[19],v}function _se(){window.location.href="/"}function Cse(){const e=Re.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}=$p(t);let a;return e[1]!==o?(a=w.jsx(Ai,{variant:"outline",size:"sm",asChild:!0,children:w.jsx(Ml,{to:"/$org/settings/profile",params:{org:o},children:"Go to your profile"})}),e[1]=o,e[2]=a):a=e[2],a}function Pse(e){const t=Re.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=w.jsx("div",{className:"flex h-16 w-16 items-center justify-center rounded-full bg-muted text-muted-foreground",children:w.jsx(AF,{size:28})}),t[0]=c):c=t[0];let d;t[1]!==i?(d=w.jsx("h3",{className:"text-lg font-medium",children:i}),t[1]=i,t[2]=d):d=t[2];let p;t[3]!==l?(p=w.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 m;t[5]!==d||t[6]!==p?(m=w.jsxs("div",{className:"space-y-1",children:[d,p]}),t[5]=d,t[6]=p,t[7]=m):m=t[7];let h;t[8]!==n?(h=n??w.jsx(Cse,{}),t[8]=n,t[9]=h):h=t[9];let f;return t[10]!==m||t[11]!==h?(f=w.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,m,h]}),t[10]=m,t[11]=h,t[12]=f):f=t[12],f}const JO="__studio_chunk_reload_ts";function l3(e){return e?.message===nQ}function Ese(e){return!!e?.message?.includes("Access denied")}function XO(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 Ase 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),i3(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:l3(this.state.error)?w.jsx(s3,{}):Ese(this.state.error)?w.jsx(Pse,{}):w.jsxs("div",{className:"flex-1 flex flex-col items-center justify-center h-full p-6 text-center space-y-4",children:[w.jsx("div",{className:"bg-destructive/10 p-3 rounded-full",children:w.jsx(Bk,{className:"h-6 w-6 text-destructive"})}),w.jsxs("div",{className:"space-y-2",children:[w.jsx("h3",{className:"text-lg font-medium",children:o("common.errorBoundary.somethingWentWrong")}),w.jsx("p",{className:"text-sm text-muted-foreground max-w-xs mx-auto",children:this.state.error?.message||o("common.errorBoundary.unexpectedError")})]}),w.jsx(Ai,{variant:"outline",onClick:this.resetError,children:o("common.errorBoundary.tryAgain")})]})}return this.props.children}}function Rse(e){const t=Re.c(3),o=ar();let a;return t[0]!==e||t[1]!==o?(a=w.jsx(Ase,{...e,t:o}),t[0]=e,t[1]=o,t[2]=a):a=t[2],a}class Dse 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=XO(t);if(i3(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(JO),i=Date.now();(!n||i-Number(n)>1e4)&&(sessionStorage.setItem(JO,String(i)),window.location.reload())}render(){const{t}=this.props;return this.state.hasError&&XO(this.state.error)?w.jsxs("div",{className:"flex min-h-dvh flex-col items-center justify-center p-6 text-center space-y-4",children:[w.jsx("div",{className:"bg-primary/10 p-3 rounded-full",children:w.jsx(RF,{className:"h-6 w-6 text-primary"})}),w.jsxs("div",{className:"space-y-2",children:[w.jsx("h3",{className:"text-lg font-medium",children:t("common.errorBoundary.newVersionAvailable")}),w.jsx("p",{className:"text-sm text-muted-foreground max-w-xs mx-auto",children:t("common.errorBoundary.newVersionDeployed")})]}),w.jsx(Ai,{onClick:()=>window.location.reload(),children:t("common.errorBoundary.refresh")})]}):this.state.hasError?l3(this.state.error)?w.jsx(s3,{}):w.jsxs("div",{className:"flex min-h-dvh flex-col items-center justify-center p-6 text-center space-y-4",children:[w.jsx("div",{className:"bg-destructive/10 p-3 rounded-full",children:w.jsx(Bk,{className:"h-6 w-6 text-destructive"})}),w.jsxs("div",{className:"space-y-2",children:[w.jsx("h3",{className:"text-lg font-medium",children:t("common.errorBoundary.somethingWentWrong")}),w.jsx("p",{className:"text-sm text-muted-foreground max-w-xs mx-auto",children:this.state.error?.message||t("common.errorBoundary.unexpectedError")})]}),w.jsx(Ai,{variant:"outline",onClick:()=>this.setState({hasError:!1,error:null}),children:t("common.errorBoundary.tryAgain")})]}):this.props.children}}function Ose(e){const t=Re.c(3),o=ar();let a;return t[0]!==e||t[1]!==o?(a=w.jsx(Dse,{...e,t:o}),t[0]=e,t[1]=o,t[2]=a):a=t[2],a}function Mse(e){const t=Re.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=ht("surface flex flex-col gap-6",o),t[3]=o,t[4]=n):n=t[4];let i;return t[5]!==a||t[6]!==n?(i=w.jsx("div",{"data-slot":"card",className:n,...a}),t[5]=a,t[6]=n,t[7]=i):i=t[7],i}function gbe(e){const t=Re.c(12),{title:o,description:a,docsHref:n,actions:i,className:l,headerClassName:c,children:d}=e;let p;t[0]!==l?(p=ht("flex flex-col gap-3",l),t[0]=l,t[1]=p):p=t[1];let m;t[2]!==i||t[3]!==a||t[4]!==n||t[5]!==c||t[6]!==o?(m=(o||a||n||i)&&w.jsxs("div",{className:ht("flex items-center justify-between gap-3 px-4",c),children:[w.jsxs("div",{className:"flex flex-col gap-1 min-w-0",children:[o&&w.jsx("h2",{className:"text-[15px] font-medium leading-tight",children:o}),(a||n)&&w.jsxs("p",{className:"text-sm text-muted-foreground leading-snug",children:[a,n&&w.jsxs("a",{href:n,target:"_blank",rel:"noreferrer",className:"inline-flex items-center gap-0.5 ml-1 text-foreground hover:underline",children:["Docs ",w.jsx(wF,{size:12})]})]})]}),i&&w.jsx("div",{className:"shrink-0",children:i})]}),t[2]=i,t[3]=a,t[4]=n,t[5]=c,t[6]=o,t[7]=m):m=t[7];let h;return t[8]!==d||t[9]!==p||t[10]!==m?(h=w.jsxs("section",{className:p,children:[m,d]}),t[8]=d,t[9]=p,t[10]=m,t[11]=h):h=t[11],h}function fbe(e){const t=Re.c(11),{className:o,children:a}=e;let n,i,l;if(t[0]!==a||t[1]!==o){const d=A.Children.toArray(a).filter(A.isValidElement);n=Mse,t[5]!==o?(i=ht("p-0 gap-0 overflow-hidden",o),t[5]=o,t[6]=i):i=t[6],l=d.map(Nse),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=w.jsx(n,{className:i,children:l}),t[7]=n,t[8]=i,t[9]=l,t[10]=c):c=t[10],c}function Nse(e,t){return w.jsxs("div",{children:[t>0&&w.jsx("div",{className:"h-px bg-border mx-5"}),e]},t)}function vbe(e){const t=Re.c(27),{icon:o,title:a,description:n,action:i,onClick:l,className:c,children:d}=e,p=d?"flex items-start gap-3 px-4 py-4":"flex items-center gap-3 px-4 py-4",m=l&&"hover:bg-muted/50 cursor-pointer";let h;t[0]!==c||t[1]!==p||t[2]!==m?(h=ht(p,m,c),t[0]=c,t[1]=p,t[2]=m,t[3]=h):h=t[3];const f=l?"button":void 0,v=l?0:void 0;let b;t[4]!==l?(b=l?P=>{P.target===P.currentTarget&&(P.key==="Enter"||P.key===" ")&&(P.preventDefault(),l())}:void 0,t[4]=l,t[5]=b):b=t[5];let S;t[6]!==o?(S=o&&w.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 k;t[8]!==a?(k=w.jsx("div",{className:"text-sm font-medium",children:a}),t[8]=a,t[9]=k):k=t[9];let T;t[10]!==n?(T=n&&w.jsx("p",{className:"text-xs text-muted-foreground mt-0.5 leading-relaxed",children:n}),t[10]=n,t[11]=T):T=t[11];let x;t[12]!==d||t[13]!==k||t[14]!==T?(x=w.jsxs("div",{className:"flex-1 min-w-0",children:[k,T,d]}),t[12]=d,t[13]=k,t[14]=T,t[15]=x):x=t[15];let E;t[16]!==i?(E=i&&w.jsx("div",{className:"shrink-0",onClick:Ise,children:i}),t[16]=i,t[17]=E):E=t[17];let C;return t[18]!==l||t[19]!==x||t[20]!==E||t[21]!==h||t[22]!==f||t[23]!==v||t[24]!==b||t[25]!==S?(C=w.jsxs("div",{className:h,onClick:l,role:f,tabIndex:v,onKeyDown:b,children:[S,x,E]}),t[18]=l,t[19]=x,t[20]=E,t[21]=h,t[22]=f,t[23]=v,t[24]=b,t[25]=S,t[26]=C):C=t[26],C}function Ise(e){return e.stopPropagation()}function bbe(e){const t=Re.c(5),{className:o,children:a}=e;let n;t[0]!==o?(n=ht("px-4 py-4",o),t[0]=o,t[1]=n):n=t[1];let i;return t[2]!==a||t[3]!==n?(i=w.jsx("div",{className:n,children:a}),t[2]=a,t[3]=n,t[4]=i):i=t[4],i}function ybe(e){const t=Re.c(5),{children:o,className:a}=e;let n;t[0]!==a?(n=ht("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=w.jsx("div",{className:n,children:o}),t[2]=o,t[3]=n,t[4]=i):i=t[4],i}function Lse(e){const t=Re.c(5),{className:o,children:a}=e;let n;t[0]!==o?(n=ht("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=w.jsx("div",{className:n,children:a}),t[2]=a,t[3]=n,t[4]=i):i=t[4],i}const Kv={connect:{key:"connect",titleKey:"settings.connectClients.pageTitle",tabs:[],ownedRoutes:["/$org/settings/api-keys"]},members:{key:"members",titleKey:"orgs.members.title",tabs:[{key:"members",icon:MF,labelKey:"orgs.members.title",to:"/$org/settings/members",requires:"members:manage"},{key:"roles",icon:OF,labelKey:"settings.roles.pageTitle",to:"/$org/settings/roles",privilegedOnly:!0}]},billing:{key:"billing",titleKey:"settings.nav.billing",tabs:[{key:"ai-providers",icon:kF,labelKey:"settings.nav.aiProviders",to:"/$org/settings/ai-providers",requires:"ai-providers:manage"},{key:"infra",icon:DF,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:PF,labelKey:"settings.nav.buckets",to:"/$org/settings/buckets",requires:"file-configs:manage"},{key:"synced-repos",icon:CF,labelKey:"settings.nav.syncedRepos",to:"/$org/settings/synced-repos",requires:"file-configs:manage"}]}};function Sbe(e){const t=Kv[e];return[...t.tabs.map(o=>o.to),...t.ownedRoutes??[]]}function wbe(e){return Kv[e].tabs.length>0}const Bse=new Set(["owner","admin"]);function c3(){const e=Re.c(11),{org:t,locator:o}=Jp();let a;e[0]!==o?(a=Mn.myCapabilities(o),e[0]=o,e[1]=a):a=e[1];let n;e[2]!==t?(n=async()=>{const m=await fetch(`/api/auth/custom/my-capabilities/${encodeURIComponent(t.slug)}`,{credentials:"include"});if(!m.ok)throw new Error(`my-capabilities request failed: ${m.status}`);return await m.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:d}=Rd(i);let p;return e[7]!==l||e[8]!==d||e[9]!==c?(p={data:l,loading:c,error:d},e[7]=l,e[8]=d,e[9]=c,e[10]=p):p=e[10],p}function Tbe(e){const t=Re.c(8),{data:o,loading:a,error:n}=c3();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 d;return t[5]!==l||t[6]!==c?(d={granted:l,loading:!1,error:!1,reason:c},t[5]=l,t[6]=c,t[7]=d):d=t[7],d}function d3(){const e=Re.c(10),{data:t,loading:o,error:a}=c3(),n=t?.role??void 0;let i;e[0]!==n?(i=n?Bse.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 d=c;let p;return e[4]!==a||e[5]!==l||e[6]!==o||e[7]!==n||e[8]!==d?(p={capabilities:d,loading:o,error:a,isPrivileged:l,roleSlug:n},e[4]=a,e[5]=l,e[6]=o,e[7]=n,e[8]=d,e[9]=p):p=e[9],p}function Fse(){const e=Re.c(13),{org:t}=Jp(),o=ik(),{capabilities:a,isPrivileged:n}=d3(),i=n||!!a["members:manage"];let l;e[0]!==t.id?(l=Mn.infraBillingSites(t.id),e[0]=t.id,e[1]=l):l=e[1];const c=!!t.id&&i;let d;e[2]!==o?(d=()=>o.call("INFRA_BILLING_SITES_LIST",{}),e[2]=o,e[3]=d):d=e[3];let p;e[4]!==l||e[5]!==c||e[6]!==d?(p={queryKey:l,staleTime:3e5,enabled:c,queryFn:d},e[4]=l,e[5]=c,e[6]=d,e[7]=p):p=e[7];const{data:m,isLoading:h}=Rd(p);let f;e[8]!==m?.sites?(f=m?.sites.map(jse)??[],e[8]=m?.sites,e[9]=f):f=e[9];let v;return e[10]!==h||e[11]!==f?(v={sites:f,isLoading:h},e[10]=h,e[11]=f,e[12]=v):v=e[12],v}function jse(e){return e.slug}function xbe(){const e=Re.c(7),t=ik(),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=>bd.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:zse,onError:n},e[4]=a,e[5]=n,e[6]=i):i=e[6],lp(i)}function zse(e){const{url:t}=e;return window.open(t,"_blank","noopener,noreferrer")}function kbe(e,t){const o=Re.c(14),{org:a}=Jp(),n=ik();let i,l,c;o[0]!==a.id||o[1]!==t||o[2]!==e?(i=[...e].sort(),c=Rd,l=Mn.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 d=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 m;return o[10]!==l||o[11]!==d||o[12]!==p?(m={queryKey:l,enabled:d,staleTime:6e4,queryFn:p},o[10]=l,o[11]=d,o[12]=p,o[13]=m):m=o[13],c(m)}function Use(){const e=Re.c(7),{capabilities:t,isPrivileged:o,loading:a,error:n}=d3(),{sites:i,isLoading:l}=Fse(),c=i.length>0;let d;if(e[0]!==t||e[1]!==n||e[2]!==o||e[3]!==a||e[4]!==c||e[5]!==l){const p=m=>m.requiresOwnedSites&&!c&&!l?!1:a||n?!0:m.privilegedOnly?o:m.requires?o||t[m.requires]:!0;d=Object.fromEntries(Object.values(Kv).map(m=>[m.key,m.tabs.filter(p)])),e[0]=t,e[1]=n,e[2]=o,e[3]=a,e[4]=c,e[5]=l,e[6]=d}else d=e[6];return d}function qse(e){const t=Re.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}=$p(n);let l;t[1]===Symbol.for("react.memo_cache_sentinel")?(l={select:$se},t[1]=l):l=t[1];const c=Dx(l),d=Use()[o],{titleKey:p}=Kv[o];let m;t[2]!==a||t[3]!==p?(m=a(p),t[2]=a,t[3]=p,t[4]=m):m=t[4];let h;t[5]!==m?(h=w.jsx(sd.Title,{children:m}),t[5]=m,t[6]=h):h=t[6];let f;t[7]!==o||t[8]!==i||t[9]!==c||t[10]!==a||t[11]!==d?(f=d.length>1&&w.jsx(sn.Toolbar.Left.Portal,{children:w.jsx(sd.Tabs,{"data-testid":"settings-subnav","aria-label":a("settings.subnav.ariaLabel"),children:d.map(b=>{const S=b.to.replace("$org",i),k=c===S||c.startsWith(`${S}/`);return w.jsx(sd.Tab,{active:k,asChild:!0,children:w.jsx(Ml,{to:b.to,params:{org:i},onClick:()=>r3("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]=d,t[12]=f):f=t[12];let v;return t[13]!==h||t[14]!==f?(v=w.jsxs(w.Fragment,{children:[h,f]}),t[13]=h,t[14]=f,t[15]=v):v=t[15],v}function $se(e){return e.location.pathname}function u3(){const e=Re.c(1);let t;return e[0]===Symbol.for("react.memo_cache_sentinel")?(t=w.jsxs("div",{"data-testid":"settings-content-loading",className:"flex flex-col gap-4",children:[w.jsx(wD,{className:"h-32 w-full"}),w.jsx(wD,{className:"h-32 w-full"})]}),e[0]=t):t=e[0],t}function Vse(e){const t=Re.c(14),{group:o,fallback:a,errorFallback:n,className:i,children:l}=e;let c;t[0]!==o?(c=w.jsx(qse,{group:o}),t[0]=o,t[1]=c):c=t[1];let d;t[2]!==a?(d=a??w.jsx(u3,{}),t[2]=a,t[3]=d):d=t[3];let p;t[4]!==l||t[5]!==d?(p=w.jsx(A.Suspense,{fallback:d,children:l}),t[4]=l,t[5]=d,t[6]=p):p=t[6];let m;t[7]!==n||t[8]!==p?(m=w.jsx(Rse,{fallback:n,children:p}),t[7]=n,t[8]=p,t[9]=m):m=t[9];let h;return t[10]!==i||t[11]!==c||t[12]!==m?(h=w.jsx(sd,{children:w.jsx(sd.Content,{children:w.jsx(sd.Container,{children:w.jsxs(Lse,{className:i,children:[c,m]})})})}),t[10]=i,t[11]=c,t[12]=m,t[13]=h):h=t[13],h}function Li(e){return function(){return w.jsx(Vse,{group:e,children:w.jsx(u3,{})})}}function Hse(e){try{localStorage.setItem(Ll.lastLocation(),JSON.stringify(e))}catch{}}function Gse(){try{const e=localStorage.getItem(Ll.lastLocation());if(!e)return null;const t=JSON.parse(e);if(typeof t?.org=="string")return{org:t.org}}catch{}return null}function _be(){try{localStorage.removeItem(Ll.lastLocation())}catch{}}const Nt={home:"/$org/home",projects:"/$org/projects/$agentId",tasks:"/$org/tasks/{-$taskKey}",reports:"/$org/reports",library:"/$org/library",threadAnalytics:"/$org/thread-analytics",discover:"/$org/discover",plan:"/$org/plan",monitoring:"/$org/monitoring",orgIndex:"/$org/"},nt={root:Nt.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",library:"/$org/projects/$agentId/library",libraryFile:"/$org/projects/$agentId/library/file",connectSources:"/$org/projects/$agentId/connect-sources",settings:"/$org/projects/$agentId/settings",assets:"/$org/projects/$agentId/assets",releases:"/$org/projects/$agentId/releases",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",plan:"/$org/projects/$agentId/plan",monitoring:"/$org/projects/$agentId/monitoring"};function Cbe(){const e=Re.c(1);let t;return e[0]===Symbol.for("react.memo_cache_sentinel")?(t={select:Wse},e[0]=t):t=e[0],Dx(t)}function Wse(e){return e.matches.at(-1)?.fullPath??""}const Kse=new Map([[Nt.reports,"project-only"],[Nt.library,"org-only"],[Nt.threadAnalytics,"org-only"]]);function Pbe(e,t){const o=Kse.get(e);return o===void 0?!0:o==="project-only"?t!==null:t===null}function Ebe(){const e=Re.c(1);let t;return e[0]===Symbol.for("react.memo_cache_sentinel")?(t={select:Yse},e[0]=t):t=e[0],Dx(t)}function Yse(e){return e.matches.findLast(Zse)?.staticData.mainView}function Zse(e){return e.staticData.mainView}function cf(e){return`agent-view:${encodeURIComponent(e)}`}function Qse(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 p3(e){if(!e||!e.startsWith("automation:"))return null;const t=e.slice(11);return t?{id:t}:null}function o_(e,t){return`app:${e}:${t}`}function Jse(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 m3(e){return`deck:${encodeURIComponent(e)}`}function Xse(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 h3(e){return`file:${encodeURIComponent(e)}`}function ele(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 g3(e){return`library-file:${encodeURIComponent(e)}`}function tle(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 f3(e){return`code:${encodeURIComponent(e)}`}function ole(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 v3=["overview","settings","automations","site-editor","code","content","assets","hosting","e2e","analytics","cdn"],ale=new Set(v3),b3=new Set(["hosting","e2e","analytics","cdn"]),nle=new Set(["board","files","connect-sources","reports"]);function Abe(e){return e.startsWith("app:")||e.startsWith("automation:")||e.startsWith("file:")||e.startsWith("deck:")||e.startsWith("library-file:")||e.startsWith("code:")}const rle=new Map([["preview","site-editor"],["git","site-editor"]]);function Yv(e){return rle.get(e)??e}const a_=new Set(["instructions","connections","layout","settings"]);function ile(e){return!!e&&a_.has(e)}const sle=new Set(["overview","board","reports"]);function Rbe(e){const t=e?.defaultMainView??null;if(!(!t||t.type==="chat"))return y3(e??null)}function y3(e){const t=e?.defaultMainView??null;if(!t)return"settings";const o=Yv(t.type);if(a_.has(o))return"settings";if(ale.has(o)||sle.has(o))return o;if(o==="ext-app"||o==="ext-apps"){if(t.id&&t.toolName)return o_(t.id,t.toolName);const n=e?.tabs?.map(i=>i.id)??[];return t.id&&n.includes(t.id)?cf(t.id):n[0]?cf(n[0]):"settings"}const a=e?.tabs?.[0]?.id;return a?cf(a):"settings"}function Dbe(e){const t=e.routeDefaultMain||y3(e.metadata),o=e.panelTabId&&a_.has(e.panelTabId)?"settings":e.panelTabId?Yv(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 Obe(e){return e.mainOpen&&e.clickedId===e.activeTab?{close:!0}:{tabId:e.clickedId}}function Mbe(e){return e.mainOpen?e.activeTab==="automations"?!0:p3(e.activeTab)!==null:!1}const lle=new Set([...v3.filter(e=>!b3.has(e)),...nle,"app","file","deck","library-file","connect-sources","instructions","connections","layout","preview","discover"]);function cle(e){return!!e&&lle.has(e)}function dle(e,t){if(e)switch(e){case"app":return t.connection&&t.tool?o_(t.connection,t.tool):void 0;case"automations":return t.automation?`automation:${t.automation}`:"automations";case"file":return t.key?h3(t.key):void 0;case"deck":return t.deck?m3(t.deck):void 0;case"library-file":return t.path?g3(t.path):void 0;case"code":return t.file?f3(t.file):"code";default:{const o=Yv(e);return o==="site-editor"&&t.main==="content"?"content":o}}}function Nbe(e){const t=e.params??{},o=e.search??{};if(e.siteEditorView==="content")return"content";if(e.siteEditorView==="code")return o.file?f3(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?o_(t.connectionId,t.toolName):void 0;case"view":return t.viewId?cf(t.viewId):void 0;case"file":return o.key?h3(o.key):void 0;case"deck":return o.path?m3(o.path):void 0;case"library-file":return o.path?g3(o.path):void 0;default:return e.mainView}}const ule={files:"library",discover:"discover"},ple={board:"tasks",reports:"reports"},mle={settings:"settings",assets:"assets",releases:"releases",hosting:"hosting",e2e:"e2e",analytics:"analytics",experiments:"experiments",cdn:"monitor"};function S3(e){const t=Qse(e);if(t)return{kind:"agent-view",viewId:t.id};const o=Jse(e);if(o)return{kind:"app",connectionId:o.connectionId,toolName:o.toolName};const a=p3(e);if(a)return{kind:"automations",automationId:a.id};const n=ele(e);if(n)return{kind:"output-file",key:n.key};const i=Xse(e);if(i)return{kind:"output-deck",path:i.path};const l=tle(e);if(l)return{kind:"library-file",path:l.path};const c=ole(e);if(c)return{kind:"site-editor",view:"code",...c.path?{file:c.path}:{}};if(ile(e))return{kind:"agent-section",section:"settings"};const d=Yv(e);if(d==="overview")return{kind:"agent-overview"};if(d==="site-editor")return{kind:"site-editor",view:"preview"};if(d==="content")return{kind:"site-editor",view:"content"};if(d==="automations")return{kind:"automations"};if(d==="connect-sources")return{kind:"connect-sources"};const p=ple[d];if(p)return{kind:"project-destination",destination:p};const m=ule[d];if(m)return{kind:"org-destination",destination:m};const h=mle[d];return h?{kind:"agent-section",section:h}:{kind:"agent-view",viewId:d}}function Rl(e){const{org:t,agentId:o}=e,a={org:t,agentId:o},n=S3(e.tabId);switch(n.kind){case"project-destination":return e.destinationScope==="organization"?n.destination==="tasks"?{to:Nt.tasks,params:{org:t,taskKey:e.taskKey},search:{}}:{to:Nt.reports,params:{org:t},search:{}}:n.destination==="tasks"?{to:nt.tasks,params:{...a,taskKey:e.taskKey},search:{}}:{to:nt.reports,params:a,search:{}};case"org-destination":switch(n.destination){case"home":return{to:Nt.home,params:{org:t},search:{}};case"discover":return{to:Nt.discover,params:{org:t},search:{}};case"library":return{to:Nt.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 Ibe(e){if(!e.agentId||e.agentId===e.superAgentId&&(e.tabId===void 0||e.tabId==="overview"))return{to:Nt.home,params:{org:e.org},search:{}};const t=e.tabId??"overview",o=e.agentId!==e.superAgentId&&S3(t).kind==="org-destination"?"overview":t;return Rl({org:e.org,agentId:e.agentId,tabId:o,destinationScope:e.agentId===e.superAgentId?"organization":"project"})}function hle(e,t,o={}){const a=i=>({...o.search?.(i)??{},...t.search}),n=o.replace??!0;switch(t.to){case Nt.tasks:e({to:Nt.tasks,params:t.params,search:a,replace:n});return;case Nt.home:e({to:Nt.home,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.discover:e({to:Nt.discover,params:t.params,search:a,replace:n});return;case Nt.library:e({to:Nt.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.releases: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 Lbe(e,t){hle(e,Rl(t),t)}function gle(e){const t=/^(\/[^/]+)\/agents(?=\/|$)/.exec(e);return t?.[1]?`${t[1]}/projects${e.slice(t[0].length)}`:null}function fle(e){const t=e.split("/").filter(Boolean);return(t[1]==="projects"||t[1]==="agents")&&t.length>3}const vle=new Set(["main","virtualmcpid","file","key","deck","path","connection","tool","automation"]),w3=new Set(["main"]),ble=new Set(["virtualmcpid"]);function Zv(e,t){return Object.fromEntries(Object.entries(e).filter(([o])=>!t.has(o)))}function Cl(e,t){return{...Zv(e,vle),...t.search}}function yle(e){return Zv(e,ble)}function Bbe(e){if(e.search.virtualmcpid===void 0)return null;const t=br(e.search.virtualmcpid);if(t){const o=e.routePath===Nt.tasks?"board":e.routePath===Nt.reports?"reports":null;if(e.routePath===Nt.home||o){const a=o?Rl({org:e.org,agentId:t,tabId:o}):Pd(e.org,t);return{kind:"canonical",route:a,search:Cl(e.search,a)}}}return e.routePath===Nt.home||e.routePath===Nt.tasks||e.routePath===Nt.reports||e.routePath===Nt.library?{kind:"same-route",search:yle(e.search)}:null}function br(e){return e?.trim()||void 0}function T3(e){return cle(e)||e!==void 0&&b3.has(e)}function x3(e){const t=br(e);return t?t.startsWith("vir_")&&t.length>4||RI(t)!==null||xW(t)!==null||kW(t)!==null||OI(t)||MI(t):!1}function Sle(e){const t=br(e.agentIdParam),o=T3(t);return t&&!o?t:br(e.virtualMcpIdSearch)??br(e.fallbackAgentId)}function Fbe(e){const t=e.pathAgentId;if(t&&e.pathLegacyView){const l=JT({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||fle(e.pathname))return null;const o=e.search.virtualmcpid!==void 0&&!x3(t);if(!(T3(t)||o))return null;const n=Sle({agentIdParam:o?void 0:t,virtualMcpIdSearch:e.search.virtualmcpid,fallbackAgentId:e.fallbackAgentId}),i=JT({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 wle(e,t,o,a){const n=br(a);switch(e){case"board":return n?Rl({org:t,agentId:n,tabId:"board"}):{to:Nt.tasks,params:{org:t,taskKey:void 0},search:{}};case"files":{const i=bs(o.path);return{to:Nt.library,params:{org:t},search:i?{path:i}:{}}}case"reports":return n?Rl({org:t,agentId:n,tabId:"reports"}):{to:Nt.reports,params:{org:t},search:{}};case"overview":return{to:Nt.home,params:{org:t},search:{}};case"discover":return{to:Nt.discover,params:{org:t},search:{}};default:return null}}function Fp(e){const t=wle(e.tabId,e.org,e.search,e.agentId);if(t)return t;if(e.tabId==="chat")return Pd(e.org,e.agentId);const o=br(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:{}}:Rl({org:e.org,agentId:o,tabId:e.tabId}):null}function Pd(e,t){const o=br(t);return o?{to:nt.root,params:{org:e,agentId:o},search:{}}:{to:Nt.home,params:{org:e},search:{}}}function Tle(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:{...Zv(o,w3),mainpanel:!1}};if(t==="chat"){const n=Pd(e.org,e.agentId);return{kind:"canonical",route:n,search:{...Cl(o,n),sidepanel:!0,mainpanel:!1}}}const a=Fp({org:e.org,agentId:e.agentId,tabId:t,search:o});return a?{kind:"canonical",route:a,search:Cl(o,a)}:null}function bs(e){return typeof e=="string"&&e.length>0?e:void 0}function JT(e){const t=e.search??{};if((t.main===0||t.main==="0")&&e.panel){const l=JT({...e,search:Zv(t,w3)});return l?.kind!=="canonical"?l:{...l,search:{...l.search,mainpanel:!1}}}if(t.main!==void 0)return Tle({org:e.org,agentId:e.agentId,main:t.main,search:t});const o=br(e.agentId),a=e.panel;if(!a){const l=Pd(e.org,o);return{kind:"canonical",route:l,search:Cl(t,l)}}const n=dle(a,{file:bs(t.file),key:bs(t.key),deck:bs(t.deck),path:bs(t.path),connection:bs(t.connection),tool:bs(t.tool),automation:bs(t.automation)}),i=n?e.source==="project-first"&&n==="overview"&&o?Rl({org:e.org,agentId:o,tabId:n}):Fp({org:e.org,agentId:o,tabId:n,search:t}):Fp({org:e.org,agentId:o,tabId:"",search:t});return i?{kind:"canonical",route:i,search:n==="chat"?{...Cl(t,i),sidepanel:!0,mainpanel:!1}:Cl(t,i)}:null}function jbe(e){const t=e.search??{},o=br(t.virtualmcpid),a=br(e.fallbackAgentId),n=t.main;let i;if(n==="chat")i=Pd(e.org,o);else if(n!==void 0&&n!==0&&n!=="0"){const l=Fp({org:e.org,agentId:o,tabId:n,search:t}),c=!l&&n.trim().length>0&&a?Fp({org:e.org,agentId:a,tabId:n,search:t}):null;i=l??c??{to:Nt.home,params:{org:e.org},search:{}}}else i=Pd(e.org,o);return{route:i,search:{...Cl(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 k3(e,t){if(t.task===void 0)return null;const{task:o,...a}=t;return{taskKey:e??(o.trim()||void 0),search:a}}const xle={contentPageId:$().optional(),contentPath:$().optional(),contentPathTemplate:$().optional(),contentCollection:$().optional(),contentItem:$().optional()},_3=xle,n_={view:$().optional(),group:$().optional(),subgroup:$().optional(),sort:$().optional(),dir:$().optional(),q:$().optional(),assignee:$().optional(),priority:$().optional(),due:$().optional(),tags:$().optional(),repo:$().optional(),sprint:$().optional(),boardOrg:$().optional()},kle=["files","brand","connections","repositories","skills","memory","instructions","general","site"],rv={fileView:co(["all","documents","media"]).catch("all").optional(),modified:co(["any","today","week","month"]).catch("any").optional(),layout:co(["list","grid"]).catch("list").optional(),sort:co(["name","updated","size"]).catch("name").optional(),path:$().optional(),preview:$().optional(),expanded:Cp().optional().catch(void 0),skill:$().optional(),brand:$().optional(),section:co(kle).catch("files").optional(),scope:co(["user"]).optional().catch(void 0),action:co(["create"]).optional().catch(void 0)},_le={file:$().optional(),key:$().optional(),deck:$().optional(),path:$().optional(),connection:$().optional(),tool:$().optional(),automation:$().optional(),section:$().optional(),preview:$().optional(),autosend:$().optional(),connect:Cv().optional(),siteUrl:$().optional(),..._3},C3={..._le,task:$().optional(),project:$().optional(),...n_,skill:rv.skill,brand:rv.brand},im=we(C3),Ka=A8({component:()=>w.jsx(Ose,{children:w.jsx(Rx,{})})}),Cle=De({getParentRoute:()=>Ka,path:"/login",component:Ie(()=>Le(()=>import("./login-BN5lalgG.js"),__vite__mapDeps([0,1,2,3,4]))),validateSearch:Hr(()=>we({next:$().optional(),client_id:$().optional(),redirect_uri:$().optional(),response_type:$().optional(),state:$().optional(),scope:$().optional(),code_challenge:$().optional(),code_challenge_method:$().optional(),src:$().optional(),ref:$().optional()}))}),Ple=De({getParentRoute:()=>Ka,path:"/cli/auth-success",component:Ie(()=>Le(()=>import("./cli-auth-success-DWqeUnva.js"),__vite__mapDeps([5,4])))}),Ele=De({getParentRoute:()=>Ka,path:"/reset-password",component:Ie(()=>Le(()=>import("./reset-password-CZ33ExeQ.js"),[])),validateSearch:Hr(()=>we({token:$().optional(),error:$().optional()}))}),Ale=De({getParentRoute:()=>Ka,path:"/auth/$pathname",component:Ie(()=>Le(()=>import("./auth-catchall-CJDXycwe.js"),[]))}),Rle=De({getParentRoute:()=>Ka,path:"/oauth/callback",component:Ie(()=>Le(()=>import("./oauth-callback-CuyXteK1.js"),__vite__mapDeps([6,7,8])))}),Dle=De({getParentRoute:()=>Ka,path:"/oauth/callback/ai-provider",component:Ie(()=>Le(()=>import("./oauth-callback-ai-provider-mmuJSvU9.js"),[]))}),sm=De({getParentRoute:()=>Ka,path:"/_admin",component:Ie(()=>Le(()=>import("./layout-C-tE3imG.js"),__vite__mapDeps([9,10,11])))}),Ole=De({getParentRoute:()=>sm,path:"/",beforeLoad:()=>{throw Jo({to:"/_admin/users"})}}),Mle=De({getParentRoute:()=>sm,path:"/users",component:Ie(()=>Le(()=>import("./users-hzXXTZtN.js"),__vite__mapDeps([12,13,14,15,16,17,18,19,20,21,22,23,24,25,26])))}),Nle=De({getParentRoute:()=>sm,path:"/orgs",component:Ie(()=>Le(()=>import("./orgs-DsslXidX.js"),__vite__mapDeps([27,13,14,15,16,17,18,28,22,29,30,31,32,33,34,21,35,36,23,24,25])))}),Ile=De({getParentRoute:()=>sm,path:"/prompts",component:Ie(()=>Le(()=>import("./prompts-BN3p2ELV.js"),__vite__mapDeps([37,16,28,34,23])))}),Lle=sm.addChildren([Ole,Mle,Nle,Ile]),r_=De({getParentRoute:()=>Ka,id:"shell",component:Ie(()=>Le(()=>import("./shell-layout-CtdsDlSz.js").then(e=>e.g),__vite__mapDeps([38,19,20,39,40,41,42,43,15,44,45,46,47,48,32,49,50,51,52,53,54,55,56,57,58,59,60,61,18,62,63,64,65,66,67,68,8,69,70,71,72,73,74,75,76,28,77,78,79,3,2,80,81,35,82,83,84,31,85,86,87,22,88,10,89,90,91])))}),Ble=De({getParentRoute:()=>r_,path:"/",beforeLoad:async()=>{const e=Gse();if(e)throw Jo({to:"/$org",params:{org:e.org}});const t=localStorage.getItem(Ll.lastOrgSlug());if(t)throw Jo({to:"/$org",params:{org:t}});const{data:o}=await sL();if(!o)return;const a=o[0];throw Jo(a?{to:"/$org",params:{org:a.slug}}:{to:"/onboarding"})}}),Fle=De({getParentRoute:()=>Ka,path:"/onboarding",beforeLoad:async()=>{const{data:e}=await sL();if(e&&e.length>0)throw Jo({to:"/"})},component:Ie(()=>Le(()=>import("./onboarding-rJV8oAVf.js"),__vite__mapDeps([92,10,4,93,19,20,61,28,33,39,48,54,63])))}),P3=Hr(()=>we({org:$().optional(),siteUrl:$().optional(),fix:$().optional()})),jle=De({getParentRoute:()=>Ka,path:"/reports-onboarding",component:Ie(()=>Le(()=>import("./reports-onboarding-DG16InmK.js"),__vite__mapDeps([94,95,1,2,3,4,93,19,20,61,96,97,98,28,99,68,8,100,74,45,41,42,43,15,44,46,47,39,48,32,49,40,50,51,52,53,54,55,56,57,58,59,60,18,62,63,64,65,84,31,101,102,103,22,104,105,106,107,7,108,109,110,111,112,113]))),validateSearch:P3}),zle=De({getParentRoute:()=>Ka,path:"/commerce-onboarding",validateSearch:P3,beforeLoad:({search:e})=>{throw Jo({to:"/reports-onboarding",search:e})}}),Ule=De({getParentRoute:()=>Ka,path:"/choose-editor",component:Ie(()=>Le(()=>import("./choose-editor-B_p_lpqj.js"),__vite__mapDeps([114,41,42,43,15,44,45,46,47,39,48,32,49,40,50,51,52,53,54,55,56,57,58,59,60,61,18,62,63,20,64,65,10]))),validateSearch:Hr(()=>we({site:$().optional(),domain:$().optional(),pageId:$().optional(),path:$().optional(),pathTemplate:$().optional()}))}),i_=De({getParentRoute:()=>Ka,path:"/site-editor",staticData:{pageTitle:"sidebar.projectNav.siteEditor"},component:Ie(()=>Le(()=>import("./site-editor-BojLUeGp.js"),__vite__mapDeps([115,116,69,70,66,67,68,8,89,79,3,2,80,81,35,82,117,118,119,88,120,121,122,123,41,42,43,15,44,45,46,47,39,48,32,49,40,50,51,52,53,54,55,56,57,58,59,60,61,18,62,63,20,64,65,84,31,124,38,19,71,72,73,74,75,76,28,77,78,83,85,86,87,22,10,90,91,125,126,127,128,129,130,96,97,98,131,132,133,134,135,36,136,137,138,139,140,141,142,143,144,24,25,145,146,147,29,30,148,149,150,151,152,153,154,155,156,157,158,159,160,161,162,163,164,165,166,109,102,110,111,167,168,34,169,170,171,106,107,7,172,21,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,33,193,194,195,196,197,198,199,17,200,16,201,202,203,204,105,205,206,207,208,209,210,211,212,213,214,215,216,217,218,219,220,221])))}),qle=De({getParentRoute:()=>i_,path:"/",staticData:{mainView:"site-editor",siteEditorView:"preview",local:!0},component:Ie(()=>Le(()=>import("./site-editor-BojLUeGp.js"),__vite__mapDeps([115,116,69,70,66,67,68,8,89,79,3,2,80,81,35,82,117,118,119,88,120,121,122,123,41,42,43,15,44,45,46,47,39,48,32,49,40,50,51,52,53,54,55,56,57,58,59,60,61,18,62,63,20,64,65,84,31,124,38,19,71,72,73,74,75,76,28,77,78,83,85,86,87,22,10,90,91,125,126,127,128,129,130,96,97,98,131,132,133,134,135,36,136,137,138,139,140,141,142,143,144,24,25,145,146,147,29,30,148,149,150,151,152,153,154,155,156,157,158,159,160,161,162,163,164,165,166,109,102,110,111,167,168,34,169,170,171,106,107,7,172,21,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,33,193,194,195,196,197,198,199,17,200,16,201,202,203,204,105,205,206,207,208,209,210,211,212,213,214,215,216,217,218,219,220,221])),"SiteEditorPreview")}),$le=De({getParentRoute:()=>i_,path:"/content",staticData:{mainView:"content",siteEditorView:"content",local:!0},component:Ie(()=>Le(()=>import("./site-editor-BojLUeGp.js"),__vite__mapDeps([115,116,69,70,66,67,68,8,89,79,3,2,80,81,35,82,117,118,119,88,120,121,122,123,41,42,43,15,44,45,46,47,39,48,32,49,40,50,51,52,53,54,55,56,57,58,59,60,61,18,62,63,20,64,65,84,31,124,38,19,71,72,73,74,75,76,28,77,78,83,85,86,87,22,10,90,91,125,126,127,128,129,130,96,97,98,131,132,133,134,135,36,136,137,138,139,140,141,142,143,144,24,25,145,146,147,29,30,148,149,150,151,152,153,154,155,156,157,158,159,160,161,162,163,164,165,166,109,102,110,111,167,168,34,169,170,171,106,107,7,172,21,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,33,193,194,195,196,197,198,199,17,200,16,201,202,203,204,105,205,206,207,208,209,210,211,212,213,214,215,216,217,218,219,220,221])),"SiteEditorContent")}),Vle=De({getParentRoute:()=>Ka,path:"/report/$domain",component:Ie(()=>Le(()=>import("./reports-DB2vUJ0m.js"),__vite__mapDeps([222,108,3,1,2,223])))}),Qv=De({getParentRoute:()=>r_,path:"/$org",beforeLoad:({params:e})=>{Hse({org:e.org})},component:Ie(()=>Le(()=>import("./route-DKuH8vLv.js"),__vite__mapDeps([224,127,122,123,70,69,66,67,68,8,79,3,2,80,81,35,82,41,42,43,15,44,45,46,47,39,48,32,49,40,50,51,52,53,54,55,56,57,58,59,60,61,18,62,63,20,64,65,84,31,124,38,19,71,72,73,74,75,76,28,77,78,83,85,86,87,22,88,10,89,90,91,121,125,128,129,130,96,97,98,131,132,133,134,135,36,136,155,156,11,225,29,30,34,163,226,149,118,117,165,193,227,228,229,175,230,26,24,25,21,231,232,233,214,213,234,153,145,33,161])))}),Jv=De({getParentRoute:()=>Qv,id:"org-shell",pendingComponent:Nd,component:Ie(()=>Le(()=>import("./thread-route--bdvrJML.js"),__vite__mapDeps([235,116,69,70,66,67,68,8,89,79,3,2,80,81,35,82,117,118,119,88,95,236,101,102,103,45,99,100,74,41,42,43,15,44,46,47,39,48,32,49,40,50,51,52,53,54,55,56,57,58,59,60,61,18,62,63,20,64,65,84,31,98,28,22,104,105,106,107,7,108,109,110,111,237,112])))}),Hle=we({sidepanel:EL,mainpanel:AL,main:io([$(),Ze(0)]).optional(),thread:$().optional(),autosend:$().optional(),preview:$().optional(),virtualmcpid:$().optional()}),Ya=De({getParentRoute:()=>Jv,id:"agent-shell",validateSearch:Hle,search:{middlewares:[XU(["sidepanel"])]},pendingComponent:Nd,component:Ie(()=>Le(()=>import("./route-DeOeP4Wq.js"),__vite__mapDeps([238,42,41,43,15,44,45,46,47,39,48,32,49,40,50,51,52,53,54,55,56,57,58,59,60,61,18,62,63,20,64,65,122,123,70,69,66,67,68,8,79,3,2,80,81,35,82,84,31,124,38,19,71,72,73,74,75,76,28,77,78,83,85,86,87,22,88,10,89,90,91,121,125,179,116,117,118,119,177,141,156,159,140,98,142,143,144,24,25,139,145,146,147,29,30,148,149,150,151,152,153,154,155,157,158,160,161,162,163,164,165,166,109,102,110,111,167,168,34,169,170,171,106,107,7,172,21,173,174,175,176,180,181,182,183,184,185,186,135,217,218,201,190,16,120,126,239,240,241,214,208,207,132,133,134,36,206,213,131,242,243,244,245,246,178,195,137])))}),Gle=im.extend({virtualmcpid:$().optional()}),Wle=De({getParentRoute:()=>Ya,path:"/$taskId",validateSearch:Gle,component:()=>null}),Ft=Ie(()=>Le(()=>import("./index-lwornGU3.js").then(e=>e.i),__vite__mapDeps([120,121,122,123,70,69,66,67,68,8,79,3,2,80,81,35,82,41,42,43,15,44,45,46,47,39,48,32,49,40,50,51,52,53,54,55,56,57,58,59,60,61,18,62,63,20,64,65,84,31,124,38,19,71,72,73,74,75,76,28,77,78,83,85,86,87,22,88,10,89,90,91,125,126])),"ChatLayoutPending"),It=Ie(()=>Le(()=>import("./index-lwornGU3.js").then(e=>e.i),__vite__mapDeps([120,121,122,123,70,69,66,67,68,8,79,3,2,80,81,35,82,41,42,43,15,44,45,46,47,39,48,32,49,40,50,51,52,53,54,55,56,57,58,59,60,61,18,62,63,20,64,65,84,31,124,38,19,71,72,73,74,75,76,28,77,78,83,85,86,87,22,88,10,89,90,91,125,126])),"ChatLayoutError"),Kle=De({pendingComponent:Ft,errorComponent:It,getParentRoute:()=>Ya,path:"/home",staticData:{pageTitle:"sidebar.navDestinations.home",defaultMain:"overview",mainView:"overview"},validateSearch:we({connect:Cv().optional(),siteUrl:$().optional()}),component:Ie(()=>Le(()=>import("./home-fSRcvGJQ.js"),__vite__mapDeps([247,120,121,122,123,70,69,66,67,68,8,79,3,2,80,81,35,82,41,42,43,15,44,45,46,47,39,48,32,49,40,50,51,52,53,54,55,56,57,58,59,60,61,18,62,63,20,64,65,84,31,124,38,19,71,72,73,74,75,76,28,77,78,83,85,86,87,22,88,10,89,90,91,125,126,139,140,141,98,142,143,144,119,24,25,117,116,118,145,146,147,29,30,148,149,150,151,152,153,154,155,156,157,158,159,160,161,162,163,164,165,166,109,102,110,111,167,168,34,169,170,171,106,107,7,172,21,173,174,175,176,248,249,229,230,128,250,251,252,253,131,132,133,134,135,36,26,234,228,254,255,256,257,258,259,260,261,262,227,136,16,232])))}),Yle=De({getParentRoute:()=>Ya,path:"/projects",staticData:{pageTitle:"projects.settings.title",defaultMain:"board"},validateSearch:im.extend({files:Cp().optional().catch(void 0),analytics:Cp().optional().catch(void 0)}),component:Ie(()=>Le(()=>import("./flat-project-COKm-_lB.js"),__vite__mapDeps([263,41,42,43,15,44,45,46,47,39,48,32,49,40,50,51,52,53,54,55,56,57,58,59,60,61,18,62,63,20,64,65,198,84,31,120,121,122,123,70,69,66,67,68,8,79,3,2,80,81,35,82,124,38,19,71,72,73,74,75,76,28,77,78,83,85,86,87,22,88,10,89,90,91,125,126,131,132,133,134,135,36,262,264,128,129,265,199,155,140,141,98,142,143,144,119,24,25,117,116,118,158,266,21,145,33,34,160,267,26,268,229,175,230,162,163,29,30,234,228,261,269,196,192,181,270,197,271,190,272,169,103,273,174,180,182,183,184,185,159,186,146,173,239,151,147,216,274,172,275,193,276,250,251,252,253,14,256,257,258,259,260,255,277,278,17,97,279,245,243,244,246,178,195,280,212,281]))),beforeLoad:({params:e,search:t})=>{if(t.project?.trim())return;const o=t.virtualmcpid?.trim();throw Jo(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})}}),mo=De({errorComponent:It,getParentRoute:()=>Ya,path:"/projects/$agentId",validateSearch:im,component:Rx}),Zle=De({pendingComponent:Ft,errorComponent:It,getParentRoute:()=>mo,path:"/",staticData:{pageTitle:"page.overview",defaultMain:"overview",mainView:"overview"},component:Ie(()=>Le(()=>import("./agent-overview-CIwIxcfm.js"),__vite__mapDeps([282,120,121,122,123,70,69,66,67,68,8,79,3,2,80,81,35,82,41,42,43,15,44,45,46,47,39,48,32,49,40,50,51,52,53,54,55,56,57,58,59,60,61,18,62,63,20,64,65,84,31,124,38,19,71,72,73,74,75,76,28,77,78,83,85,86,87,22,88,10,89,90,91,125,126,116,117,118,119,139,140,141,98,142,143,144,24,25,145,146,147,29,30,148,149,150,151,152,153,154,155,156,157,158,159,160,161,162,163,164,165,166,109,102,110,111,167,168,34,169,170,171,106,107,7,172,21,173,174,175,176,248,249,229,230,128,250,251,252,253,131,132,133,134,135,36,26,234,228,254,255,256,257,258,259,260,261,227,236,101,103,283])))}),Qle=De({pendingComponent:Ft,errorComponent:It,getParentRoute:()=>mo,path:"/tasks/{-$taskKey}",staticData:{pageTitle:"sidebar.navDestinations.tasks",defaultMain:"board",mainView:"board"},validateSearch:we({task:$().optional(),...n_}),beforeLoad:({params:e,search:t})=>{const o=k3(e.taskKey,t);if(o)throw Jo({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:Ie(()=>Le(()=>import("./project-tasks-B1VrMiAq.js"),__vite__mapDeps([284,120,121,122,123,70,69,66,67,68,8,79,3,2,80,81,35,82,41,42,43,15,44,45,46,47,39,48,32,49,40,50,51,52,53,54,55,56,57,58,59,60,61,18,62,63,20,64,65,84,31,124,38,19,71,72,73,74,75,76,28,77,78,83,85,86,87,22,88,10,89,90,91,125,126,264,128,129,265,199,155,140,141,98,142,143,144,119,24,25,117,116,118,158,266,21,145,33,34,160,267,26,268,229,175,230,162,163,29,30,234,228,261,269,196,192,181,270,197,271,190,272,169,103,273,174,180,182,183,184,185,159,186,146,173,239,151,147,216,285,164,165,286])))}),Jle=De({pendingComponent:Ft,errorComponent:It,getParentRoute:()=>mo,path:"/reports",staticData:{pageTitle:"sidebar.navDestinations.reports",defaultMain:"reports",mainView:"reports"},validateSearch:we({connect:Cv().optional(),siteUrl:$().optional()}),component:Ie(()=>Le(()=>import("./project-reports-DQGUzueG.js"),__vite__mapDeps([287,120,121,122,123,70,69,66,67,68,8,79,3,2,80,81,35,82,41,42,43,15,44,45,46,47,39,48,32,49,40,50,51,52,53,54,55,56,57,58,59,60,61,18,62,63,20,64,65,84,31,124,38,19,71,72,73,74,75,76,28,77,78,83,85,86,87,22,88,10,89,90,91,125,126,288,95,236,101,102,103,283,112,113,262,232])))}),Xv=De({pendingComponent:Ft,errorComponent:It,getParentRoute:()=>mo,path:"/site-editor",staticData:{pageTitle:"sidebar.projectNav.siteEditor",defaultMain:"site-editor",mainView:"site-editor"},validateSearch:we({autosend:$().optional(),..._3}),component:Ie(()=>Le(()=>import("./agent-site-editor-0D-T7ieN.js"),__vite__mapDeps([215,216,116,69,70,66,67,68,8,89,79,3,2,80,81,35,82,117,118,119,88,138,139,140,141,98,28,142,143,144,50,47,121,84,31,41,42,43,15,44,45,46,39,48,32,49,40,51,52,53,54,55,56,57,58,59,60,61,18,62,63,20,64,65,24,25,145,146,38,19,71,72,73,74,75,76,77,78,83,85,86,87,22,10,90,91,147,29,30,148,149,150,151,152,153,154,155,156,157,158,159,160,161,162,163,164,165,166,109,102,110,111,167,168,34,169,170,171,106,107,7,172,21,173,174,175,123,176,135,177,178,179,180,181,182,183,184,185,125,186,187,124,97,217,218,206,204,203,191,192,205,195,211,219,220,201,190,120,122,126,221])))}),Xle=De({getParentRoute:()=>Xv,path:"/",staticData:{defaultMain:"site-editor",mainView:"site-editor",siteEditorView:"preview"},component:Ie(()=>Le(()=>import("./agent-site-editor-preview-DD0qYhLr.js"),__vite__mapDeps([289,290,240,123,70,69,66,67,68,8,79,3,2,80,81,35,82,41,42,43,15,44,45,46,47,39,48,32,49,40,50,51,52,53,54,55,56,57,58,59,60,61,18,62,63,20,64,65,169,241,184,142,135,179,116,89,117,118,119,88,177,141,84,31,156,87,121,159,140,98,28,143,144,24,25,139,145,146,38,19,71,72,73,74,75,76,77,78,83,85,86,22,10,90,91,147,29,30,148,149,150,151,152,153,154,155,157,158,160,161,162,163,164,165,166,109,102,110,111,167,168,34,170,171,106,107,7,172,21,173,174,175,176,180,181,182,183,185,125,186,214,208,207,132,133,134,36,206,285,188,189,138,178,187,190,191,192,33,193,194,195,196,197,128,129,198,199,97,17,200,16,201,124,202,203,204,105,137,126,205])))}),ece=De({getParentRoute:()=>Xv,path:"/content",staticData:{defaultMain:"content",mainView:"content",siteEditorView:"content"},component:Ie(()=>Le(()=>import("./agent-site-editor-content-87ZLW9rs.js"),__vite__mapDeps([291,290,240,123,70,69,66,67,68,8,79,3,2,80,81,35,82,41,42,43,15,44,45,46,47,39,48,32,49,40,50,51,52,53,54,55,56,57,58,59,60,61,18,62,63,20,64,65,169,241,184,142,135,179,116,89,117,118,119,88,177,141,84,31,156,87,121,159,140,98,28,143,144,24,25,139,145,146,38,19,71,72,73,74,75,76,77,78,83,85,86,22,10,90,91,147,29,30,148,149,150,151,152,153,154,155,157,158,160,161,162,163,164,165,166,109,102,110,111,167,168,34,170,171,106,107,7,172,21,173,174,175,176,180,181,182,183,185,125,186,214,208,207,132,133,134,36,206,285,209,97,193,138,178,187,189,190,191,192,33,194,195,196,197,128,129,198,199,17,200,16,210,211,201,212])))}),tce=De({getParentRoute:()=>Xv,path:"/code",staticData:{defaultMain:"code",mainView:"code",siteEditorView:"code"},validateSearch:we({file:$().optional()}),component:Ie(()=>Le(()=>import("./agent-site-editor-code-B98Bnadv.js"),__vite__mapDeps([292,290,240,123,70,69,66,67,68,8,79,3,2,80,81,35,82,41,42,43,15,44,45,46,47,39,48,32,49,40,50,51,52,53,54,55,56,57,58,59,60,61,18,62,63,20,64,65,169,241,184,142,135,179,116,89,117,118,119,88,177,141,84,31,156,87,121,159,140,98,28,143,144,24,25,139,145,146,38,19,71,72,73,74,75,76,77,78,83,85,86,22,10,90,91,147,29,30,148,149,150,151,152,153,154,155,157,158,160,161,162,163,164,165,166,109,102,110,111,167,168,34,170,171,106,107,7,172,21,173,174,175,176,180,181,182,183,185,125,186,214,208,207,132,133,134,36,206,285,16])))}),oce=De({pendingComponent:Ft,errorComponent:It,getParentRoute:()=>mo,path:"/automations",staticData:{pageTitle:"settings.nav.automations",defaultMain:"automations",mainView:"automations"},beforeLoad:({params:e,search:t})=>{const o=t.automation;if(o)throw Jo({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:Ie(()=>Le(()=>import("./agent-automations-CORWjDg5.js"),__vite__mapDeps([293,120,121,122,123,70,69,66,67,68,8,79,3,2,80,81,35,82,41,42,43,15,44,45,46,47,39,48,32,49,40,50,51,52,53,54,55,56,57,58,59,60,61,18,62,63,20,64,65,84,31,124,38,19,71,72,73,74,75,76,28,77,78,83,85,86,87,22,88,10,89,90,91,125,126,17,16,267,294,21,97])))}),ace=De({pendingComponent:Ft,errorComponent:It,getParentRoute:()=>mo,path:"/automations/$automationId",staticData:{pageTitle:"settings.nav.automations",defaultMain:"automations",mainView:"automation"},validateSearch:we({automationView:co(["settings","runs"]).optional()}),component:Ie(()=>Le(()=>import("./agent-automation-BSqPTL3r.js"),__vite__mapDeps([295,120,121,122,123,70,69,66,67,68,8,79,3,2,80,81,35,82,41,42,43,15,44,45,46,47,39,48,32,49,40,50,51,52,53,54,55,56,57,58,59,60,61,18,62,63,20,64,65,84,31,124,38,19,71,72,73,74,75,76,28,77,78,83,85,86,87,22,88,10,89,90,91,125,126,21,153,33,155,141,169,241,296,156,116,117,118,119,152,29,30,154,297,267,181,298,157,158,140,98,142,143,144,24,25,159,160,299,230,128,300,148,194,195,97,301,14,16,173,162,163,239,273,174,180,182,183,184,185,186,146,172])))}),nce=De({pendingComponent:Ft,errorComponent:It,getParentRoute:()=>mo,path:"/settings",staticData:{pageTitle:"sidebar.navDestinations.settings",defaultMain:"settings",mainView:"settings"},component:Ie(()=>Le(()=>import("./agent-settings-Da0_9JGD.js"),__vite__mapDeps([302,120,121,122,123,70,69,66,67,68,8,79,3,2,80,81,35,82,41,42,43,15,44,45,46,47,39,48,32,49,40,50,51,52,53,54,55,56,57,58,59,60,61,18,62,63,20,64,65,84,31,124,38,19,71,72,73,74,75,76,28,77,78,83,85,86,87,22,88,10,89,90,91,125,126,303,304,109,102,110,111,116,117,118,119,297,16,305,25,107,7,97,34,169,298,166,167,168,156,98,29,30,170,171,106,172,21,173,174,146,160,153,17,306,184,241,159,142,33,155,193,135,132,133,134,36,233,307,24,144,206,177,308,309,185,218])))}),rce=De({pendingComponent:Ft,errorComponent:It,getParentRoute:()=>mo,path:"/library",staticData:{pageTitle:"sidebar.navDestinations.library",defaultMain:"files",mainView:"files"},validateSearch:we(rv),component:Ie(()=>Le(()=>import("./agent-library-DQTTsoBq.js"),__vite__mapDeps([310,120,121,122,123,70,69,66,67,68,8,79,3,2,80,81,35,82,41,42,43,15,44,45,46,47,39,48,32,49,40,50,51,52,53,54,55,56,57,58,59,60,61,18,62,63,20,64,65,84,31,124,38,19,71,72,73,74,75,76,28,77,78,83,85,86,87,22,88,10,89,90,91,125,126,278,145,17,268,97,119,116,117,118,160,279,34,143,144,245,155,243,244,246,178,195,146,280,212,198,24,25,14,162,163,281,311,312,313,314,307,16,304,109,102,110,111,297,305,107,7,169,298,166,167,168,156,98,29,30,170,171,106,172,21,173,174,153,306,184,241,159,142,33,193,135,132,133,134,36,233,206,177,308,309,185,218])))}),ice=De({pendingComponent:Ft,errorComponent:It,getParentRoute:()=>mo,path:"/assets",staticData:{pageTitle:"common.mainPanelTabs.assets",defaultMain:"assets",mainView:"assets"},component:Ie(()=>Le(()=>import("./agent-assets-BsicbZIc.js"),__vite__mapDeps([315,120,121,122,123,70,69,66,67,68,8,79,3,2,80,81,35,82,41,42,43,15,44,45,46,47,39,48,32,49,40,50,51,52,53,54,55,56,57,58,59,60,61,18,62,63,20,64,65,84,31,124,38,19,71,72,73,74,75,76,28,77,78,83,85,86,87,22,88,10,89,90,91,125,126,290,240,169,241,184,142,135,179,116,117,118,119,177,141,156,159,140,98,143,144,24,25,139,145,146,147,29,30,148,149,150,151,152,153,154,155,157,158,160,161,162,163,164,165,166,109,102,110,111,167,168,34,170,171,106,107,7,172,21,173,174,175,176,180,181,182,183,185,186,214,208,207,132,133,134,36,206,97,17,200])))}),sce=De({pendingComponent:Ft,errorComponent:It,getParentRoute:()=>mo,path:"/releases",staticData:{pageTitle:"common.mainPanelTabs.releases",defaultMain:"releases",mainView:"releases"},component:Ie(()=>Le(()=>import("./agent-releases-BX6W8KKx.js"),__vite__mapDeps([316,120,121,122,123,70,69,66,67,68,8,79,3,2,80,81,35,82,41,42,43,15,44,45,46,47,39,48,32,49,40,50,51,52,53,54,55,56,57,58,59,60,61,18,62,63,20,64,65,84,31,124,38,19,71,72,73,74,75,76,28,77,78,83,85,86,87,22,88,10,89,90,91,125,126,290,240,169,241,184,142,135,179,116,117,118,119,177,141,156,159,140,98,143,144,24,25,139,145,146,147,29,30,148,149,150,151,152,153,154,155,157,158,160,161,162,163,164,165,166,109,102,110,111,167,168,34,170,171,106,107,7,172,21,173,174,175,176,180,181,182,183,185,186,214,208,207,132,133,134,36,206,97,138,178,187,219,211])))}),lce=De({pendingComponent:Ft,errorComponent:It,getParentRoute:()=>mo,path:"/hosting",staticData:{pageTitle:"common.mainPanelTabs.hosting",defaultMain:"hosting",mainView:"hosting"},component:Ie(()=>Le(()=>import("./agent-hosting-B2Nl1zb-.js"),__vite__mapDeps([317,120,121,122,123,70,69,66,67,68,8,79,3,2,80,81,35,82,41,42,43,15,44,45,46,47,39,48,32,49,40,50,51,52,53,54,55,56,57,58,59,60,61,18,62,63,20,64,65,84,31,124,38,19,71,72,73,74,75,76,28,77,78,83,85,86,87,22,88,10,89,90,91,125,126,21,212,36,97,145,14,181,29,30,303,304,109,102,110,111,116,117,118,119,297,16,305,25,107,7,34,169,298,166,167,168,156,98,170,171,106,172,173,174,146,160,153,17,306,184,241,159,142,33,155,193,135,132,133,134,233,307,24,144,206,177,308,309,185,218])))}),cce=De({pendingComponent:Ft,errorComponent:It,getParentRoute:()=>mo,path:"/e2e",staticData:{pageTitle:"common.mainPanelTabs.e2e",defaultMain:"e2e",mainView:"e2e"},component:Ie(()=>Le(()=>import("./agent-e2e-Q2mMYbFI.js"),__vite__mapDeps([318,120,121,122,123,70,69,66,67,68,8,79,3,2,80,81,35,82,41,42,43,15,44,45,46,47,39,48,32,49,40,50,51,52,53,54,55,56,57,58,59,60,61,18,62,63,20,64,65,84,31,124,38,19,71,72,73,74,75,76,28,77,78,83,85,86,87,22,88,10,89,90,91,125,126,21,97,29,30,14,212,36,181,148,303,304,109,102,110,111,116,117,118,119,297,16,305,25,107,7,34,169,298,166,167,168,156,98,170,171,106,172,173,174,146,160,153,17,306,184,241,159,142,33,155,193,135,132,133,134,233,307,24,144,206,177,308,309,185,218])))}),dce=De({pendingComponent:Ft,errorComponent:It,getParentRoute:()=>mo,path:"/analytics",staticData:{pageTitle:"common.mainPanelTabs.analytics",defaultMain:"analytics",mainView:"analytics"},validateSearch:we({view:$().optional()}),component:Ie(()=>Le(()=>import("./agent-analytics-BpgXx7qA.js"),__vite__mapDeps([319,120,121,122,123,70,69,66,67,68,8,79,3,2,80,81,35,82,41,42,43,15,44,45,46,47,39,48,32,49,40,50,51,52,53,54,55,56,57,58,59,60,61,18,62,63,20,64,65,84,31,124,38,19,71,72,73,74,75,76,28,77,78,83,85,86,87,22,88,10,89,90,91,125,126,21,153,14,250,251,252,253,97,212,36,277,255,303,304,109,102,110,111,116,117,118,119,297,16,305,25,107,7,34,169,298,166,167,168,156,98,29,30,170,171,106,172,173,174,146,160,17,306,184,241,159,142,33,155,193,135,132,133,134,233,307,24,144,206,177,308,309,185,218])))}),uce=De({pendingComponent:Ft,errorComponent:It,getParentRoute:()=>mo,path:"/taskboard-analytics",staticData:{pageTitle:"taskBoard.analytics.title",defaultMain:"board",mainView:"board"},component:Ie(()=>Le(()=>import("./taskboard-analytics-h_2DA62k.js"),__vite__mapDeps([320,120,121,122,123,70,69,66,67,68,8,79,3,2,80,81,35,82,41,42,43,15,44,45,46,47,39,48,32,49,40,50,51,52,53,54,55,56,57,58,59,60,61,18,62,63,20,64,65,84,31,124,38,19,71,72,73,74,75,76,28,77,78,83,85,86,87,22,88,10,89,90,91,125,126,274,172,21,265,275,155,193,30,196,276,250,251,252,253,14,198,24,25,230,128,256,257,258,259,260,255,277,234,228,199])))}),pce=De({pendingComponent:Ft,errorComponent:It,getParentRoute:()=>mo,path:"/experiments",staticData:{pageTitle:"common.mainPanelTabs.experiments",defaultMain:"experiments",mainView:"experiments"},validateSearch:we({ui:Ze("legacy").optional()}),component:Ie(()=>Le(()=>import("./agent-experiments-GpUhBLmP.js"),__vite__mapDeps([321,120,121,122,123,70,69,66,67,68,8,79,3,2,80,81,35,82,41,42,43,15,44,45,46,47,39,48,32,49,40,50,51,52,53,54,55,56,57,58,59,60,61,18,62,63,20,64,65,84,31,124,38,19,71,72,73,74,75,76,28,77,78,83,85,86,87,22,88,10,89,90,91,125,126,21,14,29,30,212,36,145,322,323,34,97,268,272,257,253,251,258,259,252,303,304,109,102,110,111,116,117,118,119,297,16,305,25,107,7,169,298,166,167,168,156,98,170,171,106,172,173,174,146,160,153,17,306,184,241,159,142,33,155,193,135,132,133,134,233,307,24,144,206,177,308,309,185,218])))}),mce=De({pendingComponent:Ft,errorComponent:It,getParentRoute:()=>mo,path:"/cdn",staticData:{pageTitle:"common.mainPanelTabs.cdn",defaultMain:"cdn",mainView:"cdn"},component:Ie(()=>Le(()=>import("./agent-monitor-CvRpbef5.js"),__vite__mapDeps([324,120,121,122,123,70,69,66,67,68,8,79,3,2,80,81,35,82,41,42,43,15,44,45,46,47,39,48,32,49,40,50,51,52,53,54,55,56,57,58,59,60,61,18,62,63,20,64,65,84,31,124,38,19,71,72,73,74,75,76,28,77,78,83,85,86,87,22,88,10,89,90,91,125,126,250,251,252,253,212,155,36,135,277,255,254,325,21,260,258,259,303,304,109,102,110,111,116,117,118,119,297,16,305,25,107,7,97,34,169,298,166,167,168,156,98,29,30,170,171,106,172,173,174,146,160,153,17,306,184,241,159,142,33,193,132,133,134,233,307,24,144,206,177,308,309,185,218,285,164,165])))}),hce=De({pendingComponent:Ft,errorComponent:It,getParentRoute:()=>mo,path:"/apps/$connectionId/$toolName",staticData:{pageTitle:"page.app",defaultMain:"app",mainView:"app"},component:Ie(()=>Le(()=>import("./agent-app-DDRmQd75.js"),__vite__mapDeps([326,120,121,122,123,70,69,66,67,68,8,79,3,2,80,81,35,82,41,42,43,15,44,45,46,47,39,48,32,49,40,50,51,52,53,54,55,56,57,58,59,60,61,18,62,63,20,64,65,84,31,124,38,19,71,72,73,74,75,76,28,77,78,83,85,86,87,22,88,10,89,90,91,125,126,208,327,141,241,182,183,184,116,117,118,119,234,228,128,95,100,101,102,103,98,104,105,106,107,7,108,109,110,111])))}),gce=De({pendingComponent:Ft,errorComponent:It,getParentRoute:()=>mo,path:"/views/$viewId",staticData:{pageTitle:"page.view",defaultMain:"view",mainView:"view"},component:Ie(()=>Le(()=>import("./agent-view-BPSlOxjt.js"),__vite__mapDeps([328,120,121,122,123,70,69,66,67,68,8,79,3,2,80,81,35,82,41,42,43,15,44,45,46,47,39,48,32,49,40,50,51,52,53,54,55,56,57,58,59,60,61,18,62,63,20,64,65,84,31,124,38,19,71,72,73,74,75,76,28,77,78,83,85,86,87,22,88,10,89,90,91,125,126,327,141,241,182,183,184,116,117,118,119,234,228,128,95,100,101,102,103,98,104,105,106,107,7,108,109,110,111,303,304,297,16,305,25,97,34,169,298,166,167,168,156,29,30,170,171,172,21,173,174,146,160,153,17,306,159,142,33,155,193,135,132,133,134,36,233,307,24,144,206,177,308,309,185,218])))}),fce=De({pendingComponent:Ft,errorComponent:It,getParentRoute:()=>mo,path:"/outputs/file",staticData:{pageTitle:"page.file",defaultMain:"file",mainView:"file"},validateSearch:we({key:$().optional()}),component:Ie(()=>Le(()=>import("./agent-file-Ay2rdSNY.js"),__vite__mapDeps([329,120,121,122,123,70,69,66,67,68,8,79,3,2,80,81,35,82,41,42,43,15,44,45,46,47,39,48,32,49,40,50,51,52,53,54,55,56,57,58,59,60,61,18,62,63,20,64,65,84,31,124,38,19,71,72,73,74,75,76,28,77,78,83,85,86,87,22,88,10,89,90,91,125,126,146,246,160,178,195,143,144,119,186,116,117,118,303,304,109,102,110,111,297,16,305,25,107,7,97,34,169,298,166,167,168,156,98,29,30,170,171,106,172,21,173,174,153,17,306,184,241,159,142,33,155,193,135,132,133,134,36,233,307,24,206,177,308,309,185,218])))}),vce=De({pendingComponent:Ft,errorComponent:It,getParentRoute:()=>mo,path:"/outputs/deck",staticData:{pageTitle:"page.document",defaultMain:"deck",mainView:"deck"},validateSearch:we({path:$().optional()}),component:Ie(()=>Le(()=>import("./agent-deck-sUBVFl57.js"),__vite__mapDeps([330,120,121,122,123,70,69,66,67,68,8,79,3,2,80,81,35,82,41,42,43,15,44,45,46,47,39,48,32,49,40,50,51,52,53,54,55,56,57,58,59,60,61,18,62,63,20,64,65,84,31,124,38,19,71,72,73,74,75,76,28,77,78,83,85,86,87,22,88,10,89,90,91,125,126,245,160,155,303,304,109,102,110,111,116,117,118,119,297,16,305,25,107,7,97,34,169,298,166,167,168,156,98,29,30,170,171,106,172,21,173,174,146,153,17,306,184,241,159,142,33,193,135,132,133,134,36,233,307,24,144,206,177,308,309,185,218])))}),bce=De({pendingComponent:Ft,errorComponent:It,getParentRoute:()=>mo,path:"/library/file",staticData:{pageTitle:"page.file",defaultMain:"library-file",mainView:"library-file"},validateSearch:we({path:$().optional()}),component:Ie(()=>Le(()=>import("./agent-library-file-CoPN3Dl5.js"),__vite__mapDeps([331,120,121,122,123,70,69,66,67,68,8,79,3,2,80,81,35,82,41,42,43,15,44,45,46,47,39,48,32,49,40,50,51,52,53,54,55,56,57,58,59,60,61,18,62,63,20,64,65,84,31,124,38,19,71,72,73,74,75,76,28,77,78,83,85,86,87,22,88,10,89,90,91,125,126,332,244,145,245,160,155,246,178,195,146,143,144,119,303,304,109,102,110,111,116,117,118,297,16,305,25,107,7,97,34,169,298,166,167,168,156,98,29,30,170,171,106,172,21,173,174,153,17,306,184,241,159,142,33,193,135,132,133,134,36,233,307,24,206,177,308,309,185,218])))}),yce=De({pendingComponent:Ft,errorComponent:It,getParentRoute:()=>mo,path:"/connect-sources",staticData:{pageTitle:"settings.nav.connect",defaultMain:"connect-sources",mainView:"connect-sources"},component:Ie(()=>Le(()=>import("./agent-connect-sources-nNFgzgd5.js"),__vite__mapDeps([333,120,121,122,123,70,69,66,67,68,8,79,3,2,80,81,35,82,41,42,43,15,44,45,46,47,39,48,32,49,40,50,51,52,53,54,55,56,57,58,59,60,61,18,62,63,20,64,65,84,31,124,38,19,71,72,73,74,75,76,28,77,78,83,85,86,87,22,88,10,89,90,91,125,126,99,95,100,101,102,103,98,104,105,106,107,7,108,109,110,111,237,112])))}),Sce=De({getParentRoute:()=>mo,path:"/$legacyView",component:()=>null}),wce=De({getParentRoute:()=>Ya,path:"/agents",validateSearch:im,beforeLoad:({params:e,search:t})=>{const o=t.virtualmcpid?.trim();throw Jo(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})}}),Tce=De({getParentRoute:()=>Ya,path:"/agents/$",validateSearch:im,beforeLoad:({params:e,location:t})=>{const o=e._splat?.split("/").find(Boolean);if(!x3(o))return;const a=gle(t.pathname);if(!a)return;const n=t.hash?`#${t.hash}`:"";throw Jo({href:`${a}${t.searchStr}${n}`,replace:!0})},component:Ie(()=>Le(()=>import("./legacy-agents-deep-CPmss93q.js"),__vite__mapDeps([334,242,70])))}),xce=De({pendingComponent:Ft,errorComponent:It,getParentRoute:()=>Ya,path:"/tasks/{-$taskKey}",staticData:{pageTitle:"sidebar.navDestinations.tasks",defaultMain:"board",mainView:"board"},validateSearch:we({task:$().optional(),...n_}),beforeLoad:({params:e,search:t})=>{const o=k3(e.taskKey,t);if(o)throw Jo({to:"/$org/tasks/{-$taskKey}",params:{org:e.org,taskKey:o.taskKey},search:o.search,hash:!0,replace:!0})},component:Ie(()=>Le(()=>import("./tasks-BkgOKiT9.js"),__vite__mapDeps([335,120,121,122,123,70,69,66,67,68,8,79,3,2,80,81,35,82,41,42,43,15,44,45,46,47,39,48,32,49,40,50,51,52,53,54,55,56,57,58,59,60,61,18,62,63,20,64,65,84,31,124,38,19,71,72,73,74,75,76,28,77,78,83,85,86,87,22,88,10,89,90,91,125,126,264,128,129,265,199,155,140,141,98,142,143,144,119,24,25,117,116,118,158,266,21,145,33,34,160,267,26,268,229,175,230,162,163,29,30,234,228,261,269,196,192,181,270,197,271,190,272,169,103,273,174,180,182,183,184,185,159,186,146,173,239,151,147,216,285,164,165,286])))}),kce=De({pendingComponent:Ft,errorComponent:It,getParentRoute:()=>Ya,path:"/taskboard-analytics",staticData:{defaultMain:"board",mainView:"board"},component:Ie(()=>Le(()=>import("./taskboard-analytics-h_2DA62k.js"),__vite__mapDeps([320,120,121,122,123,70,69,66,67,68,8,79,3,2,80,81,35,82,41,42,43,15,44,45,46,47,39,48,32,49,40,50,51,52,53,54,55,56,57,58,59,60,61,18,62,63,20,64,65,84,31,124,38,19,71,72,73,74,75,76,28,77,78,83,85,86,87,22,88,10,89,90,91,125,126,274,172,21,265,275,155,193,30,196,276,250,251,252,253,14,198,24,25,230,128,256,257,258,259,260,255,277,234,228,199])))}),_ce=De({pendingComponent:Ft,errorComponent:It,getParentRoute:()=>Ya,path:"/thread-analytics",staticData:{defaultMain:"board",mainView:"board"},component:Ie(()=>Le(()=>import("./thread-analytics-CeNaBD4e.js"),__vite__mapDeps([336,120,121,122,123,70,69,66,67,68,8,79,3,2,80,81,35,82,41,42,43,15,44,45,46,47,39,48,32,49,40,50,51,52,53,54,55,56,57,58,59,60,61,18,62,63,20,64,65,84,31,124,38,19,71,72,73,74,75,76,28,77,78,83,85,86,87,22,88,10,89,90,91,125,126,276,250,251,252,253,14,198,24,25,21,230,128,256,257,258,259,260,255,277,231,199,155,29,30,148,273,174,180,181,144,140,141,98,142,143,119,117,116,118,182,183,184,185,169,159,186,146,173,239])))}),Cce=De({pendingComponent:Ft,errorComponent:It,getParentRoute:()=>Ya,path:"/reports",staticData:{pageTitle:"sidebar.navDestinations.reports",defaultMain:"reports",mainView:"reports"},validateSearch:we({connect:Cv().optional(),siteUrl:$().optional()}),component:Ie(()=>Le(()=>import("./reports-DCFnios-.js"),__vite__mapDeps([337,120,121,122,123,70,69,66,67,68,8,79,3,2,80,81,35,82,41,42,43,15,44,45,46,47,39,48,32,49,40,50,51,52,53,54,55,56,57,58,59,60,61,18,62,63,20,64,65,84,31,124,38,19,71,72,73,74,75,76,28,77,78,83,85,86,87,22,88,10,89,90,91,125,126,288,95,236,101,102,103,283,112,113,262,232])))}),Pce=De({pendingComponent:Ft,errorComponent:It,getParentRoute:()=>Ya,path:"/library",staticData:{pageTitle:"sidebar.navDestinations.library",defaultMain:"files",mainView:"files"},validateSearch:we(rv),component:Ie(()=>Le(()=>import("./library-OhQHeeUu.js"),__vite__mapDeps([338,119,121,120,122,123,70,69,66,67,68,8,79,3,2,80,81,35,82,41,42,43,15,44,45,46,47,39,48,32,49,40,50,51,52,53,54,55,56,57,58,59,60,61,18,62,63,20,64,65,84,31,124,38,19,71,72,73,74,75,76,28,77,78,83,85,86,87,22,88,10,89,90,91,125,126,311,312,313,314,307,34,16,116,117,118,160,278,145,17,268,97,279,143,144,245,155,243,244,246,178,195,146,280,212,198,24,25,14,162,163,332])))}),Ece=De({pendingComponent:Ft,errorComponent:It,getParentRoute:()=>Ya,path:"/plan",staticData:{pageTitle:"sidebar.navDestinations.plan",defaultMain:"plan",mainView:"plan"},component:Ie(()=>Le(()=>import("./plan-DirWo8wP.js"),__vite__mapDeps([339,120,121,122,123,70,69,66,67,68,8,79,3,2,80,81,35,82,41,42,43,15,44,45,46,47,39,48,32,49,40,50,51,52,53,54,55,56,57,58,59,60,61,18,62,63,20,64,65,84,31,124,38,19,71,72,73,74,75,76,28,77,78,83,85,86,87,22,88,10,89,90,91,125,126,340,21])))}),Ace=De({pendingComponent:Ft,errorComponent:It,getParentRoute:()=>Ya,path:"/monitoring",staticData:{pageTitle:"sidebar.navDestinations.monitor",defaultMain:"monitoring",mainView:"monitoring"},component:Ie(()=>Le(()=>import("./monitoring-zFjmyWaK.js"),__vite__mapDeps([341,120,121,122,123,70,69,66,67,68,8,79,3,2,80,81,35,82,41,42,43,15,44,45,46,47,39,48,32,49,40,50,51,52,53,54,55,56,57,58,59,60,61,18,62,63,20,64,65,84,31,124,38,19,71,72,73,74,75,76,28,77,78,83,85,86,87,22,88,10,89,90,91,125,126,340,21])))}),Rce=De({pendingComponent:Ft,errorComponent:It,getParentRoute:()=>mo,path:"/plan",staticData:{pageTitle:"sidebar.navDestinations.plan",defaultMain:"plan",mainView:"plan"},component:Ie(()=>Le(()=>import("./plan-DirWo8wP.js"),__vite__mapDeps([339,120,121,122,123,70,69,66,67,68,8,79,3,2,80,81,35,82,41,42,43,15,44,45,46,47,39,48,32,49,40,50,51,52,53,54,55,56,57,58,59,60,61,18,62,63,20,64,65,84,31,124,38,19,71,72,73,74,75,76,28,77,78,83,85,86,87,22,88,10,89,90,91,125,126,340,21])))}),Dce=De({pendingComponent:Ft,errorComponent:It,getParentRoute:()=>mo,path:"/monitoring",staticData:{pageTitle:"sidebar.navDestinations.monitor",defaultMain:"monitoring",mainView:"monitoring"},component:Ie(()=>Le(()=>import("./monitoring-zFjmyWaK.js"),__vite__mapDeps([341,120,121,122,123,70,69,66,67,68,8,79,3,2,80,81,35,82,41,42,43,15,44,45,46,47,39,48,32,49,40,50,51,52,53,54,55,56,57,58,59,60,61,18,62,63,20,64,65,84,31,124,38,19,71,72,73,74,75,76,28,77,78,83,85,86,87,22,88,10,89,90,91,125,126,340,21])))}),Oce=De({pendingComponent:Ft,errorComponent:It,getParentRoute:()=>Ya,path:"/discover",staticData:{pageTitle:"sidebar.navDestinations.discover",defaultMain:"discover",mainView:"discover"},component:Ie(()=>Le(()=>import("./discover-DGpiIGQv.js"),__vite__mapDeps([342,120,121,122,123,70,69,66,67,68,8,79,3,2,80,81,35,82,41,42,43,15,44,45,46,47,39,48,32,49,40,50,51,52,53,54,55,56,57,58,59,60,61,18,62,63,20,64,65,84,31,124,38,19,71,72,73,74,75,76,28,77,78,83,85,86,87,22,88,10,89,90,91,125,126,169,162,163,134,133,36,206,111])))}),Mce=De({getParentRoute:()=>Qv,path:"/members",beforeLoad:({params:e})=>{throw Jo({to:"/$org/settings/members",params:{org:e.org}})}}),Nce=we({main:io([$(),Ze(0)]).optional(),virtualmcpid:$().optional(),...C3,sidepanel:EL,mainpanel:AL,thread:$().optional()}),Ice=De({getParentRoute:()=>Jv,path:"/",validateSearch:Nce,pendingComponent:Nd,component:Ie(()=>Le(()=>import("./index-DL_AHT72.js"),__vite__mapDeps([343,242,70])))}),Lce=De({getParentRoute:()=>Jv,path:"/t/$taskKey",beforeLoad:({params:e})=>{throw Jo({to:"/$org/tasks/{-$taskKey}",params:{org:e.org,taskKey:e.taskKey},search:t=>t,hash:!0,replace:!0})}}),so=De({staticData:{pageTitle:"sidebar.navDestinations.settings"},getParentRoute:()=>Qv,path:"/settings",pendingComponent:Nd,component:Ie(()=>Le(()=>import("./route-BsG_rQz2.js"),__vite__mapDeps([344,121,120,122,123,70,69,66,67,68,8,79,3,2,80,81,35,82,41,42,43,15,44,45,46,47,39,48,32,49,40,50,51,52,53,54,55,56,57,58,59,60,61,18,62,63,20,64,65,84,31,124,38,19,71,72,73,74,75,76,28,77,78,83,85,86,87,22,88,10,89,90,91,125,126])))}),Bce=De({getParentRoute:()=>so,path:"/",component:Ie(()=>Le(()=>import("./index-redirect-CZXJxQAy.js"),__vite__mapDeps([345,314])))}),Fce=De({staticData:{pageTitle:"settings.nav.connections"},getParentRoute:()=>so,path:"/connections",component:Ie(()=>Le(()=>import("./connections-CrNA73Wo.js"),__vite__mapDeps([346,109,102,110,111,347,15,55,84,31,198,21,17,18,268,145,172,167,85,86,168,82,74,45,41,42,43,44,46,47,39,48,32,49,40,50,51,52,53,54,56,57,58,59,60,61,62,63,20,64,65,16,348,97,173,121,156,98,28,29,30,34,169,68,8,67,184,66,170,171,106,107,7,153]))),validateSearch:Hr(()=>we({action:co(["create"]).optional(),tab:co(["all","connected"]).optional()}))}),jce=De({staticData:{pageTitle:"settings.nav.connections"},getParentRoute:()=>so,path:"/connections/$appSlug",component:Ie(()=>Le(()=>import("./connection-detail-Du-3dW0g.js"),__vite__mapDeps([349,109,102,110,111,16,171,61,62,350,68,8,241,41,42,43,15,44,45,46,47,39,48,32,49,40,50,51,52,53,54,55,56,57,58,59,60,18,63,20,64,65,169,29,30,31,251,323,73,155,84,67,121,351,78,79,3,2,80,81,35,82,170,306,21,184,7,162,163,19,107,74,125,98,28,159,348,97,352,250,252,253,255,277,257,256,258,259,260,148,168,183,87]))),validateSearch:Hr(()=>we({tab:$().optional()}))}),zce=De({staticData:{pageTitle:"page.item"},getParentRoute:()=>so,path:"/connections/$appSlug/$collectionName/$itemId",component:Ie(()=>Le(()=>import("./collection-detail-FEHQdrUM.js"),__vite__mapDeps([353,16,68,8,98,28,34,350,241,41,42,43,15,44,45,46,47,39,48,32,49,40,50,51,52,53,54,55,56,57,58,59,60,61,18,62,63,20,64,65,169,109,102,110,111,29,30,31,251,323,73,155,84,67,121,351,78,79,3,2,80,81,35,82,170,183,184,192,168,306,21,7,182,74,116,69,70,66,89,117,118,119,88,38,19,71,72,75,76,77,83,85,86,87,22,10,90,91,194,195,212]))),validateSearch:Hr(()=>we({replayId:$().optional()}))}),Uce=De({staticData:{pageTitle:"orgs.monitoring.title"},getParentRoute:()=>so,path:"/monitor",component:Ie(()=>Le(()=>import("./index-D-4AgGmD.js"),__vite__mapDeps([354,17,18,16,312,313,314,180,41,42,43,15,44,45,46,47,39,48,32,49,40,50,51,52,53,54,55,56,57,58,59,60,61,62,63,20,64,65,24,25,181,144,140,141,98,28,142,143,119,121,69,70,66,67,68,8,84,31,117,79,3,2,80,81,35,82,116,89,118,88,71,182,183,184,185,38,19,72,73,74,75,76,77,78,83,85,86,87,22,10,90,91,125,169,159,186,146,168,21,155,194,195,162,163,300,153,29,30,275,193,196,34,172,33,192,352,250,251,252,253,255,277,257,256,258,259,260,273,174,173,239,14,301,267,212,228,325,254,285,164,165]))),validateSearch:Hr(()=>we({tab:co(["overview","audit","dashboards","threads","automations","stores"]).default("threads"),store:$().optional(),at:$().optional(),from:$().default("now-24h"),to:$().default("now"),connectionId:je($()).optional().default([]),virtualMcpId:je($()).optional().default([]),tool:$().default(""),status:co(["all","success","errors"]).default("all"),search:$().default(""),page:Mt().optional(),streaming:Vt().default(!0),propertyFilters:$().default(""),hideSystem:Vt().default(!1)}))}),qce=De({staticData:{pageTitle:"settings.nav.general"},getParentRoute:()=>so,path:"/general",component:Ie(()=>Le(()=>import("./general-BF4C2ZJb.js"),__vite__mapDeps([355,163,298,19,20,356,33,40,88,35,81,169,68,8,357,21,29,30,31,32,97,314])))}),$ce=De({staticData:{pageTitle:"settings.nav.connect"},getParentRoute:()=>so,path:"/connect",pendingComponent:Li("connect"),component:Ie(()=>Le(()=>import("./connect-Cj4-EZJC.js"),__vite__mapDeps([358,192,21,29,30,31,32,148,144,50,56,57,249,359,42,61,62,97,28,68,8,312,313,314])))}),Vce=De({staticData:{pageTitle:"settings.nav.billing"},getParentRoute:()=>so,path:"/ai-providers",pendingComponent:Li("billing"),component:Ie(()=>Le(()=>import("./ai-providers-CkTtAKoL.js"),__vite__mapDeps([360,42,118,48,88,35,81,296,156,121,116,69,70,66,67,68,8,89,79,3,2,80,82,117,119,152,153,29,30,31,32,44,49,56,43,18,154,58,19,20,53,298,150,97,151,165,61,62,305,25,33,312,313,314])))}),Hce=De({staticData:{pageTitle:"settings.nav.billing"},getParentRoute:()=>so,path:"/billing",beforeLoad:({params:e})=>{throw Jo({to:"/$org/settings/ai-providers",params:{org:e.org}})}}),Gce=De({staticData:{pageTitle:"settings.nav.billing"},getParentRoute:()=>so,path:"/infra-billing",pendingComponent:Li("billing"),component:Ie(()=>Le(()=>import("./infra-billing-C59D5YaM.js"),__vite__mapDeps([361,51,21,300,153,32,72,73,18,155,29,30,31,14,255,253,251,259,277,312,313,314])))}),Wce=De({staticData:{pageTitle:"settings.nav.secrets"},getParentRoute:()=>so,path:"/secrets",component:Ie(()=>Le(()=>import("./secrets-Br2wfWxI.js"),__vite__mapDeps([362,42,61,20,64,28,29,30,31,32,34,309,312,313,314])))}),Kce=De({staticData:{pageTitle:"settings.nav.connect"},getParentRoute:()=>so,path:"/api-keys",pendingComponent:Li("connect"),component:Ie(()=>Le(()=>import("./api-keys-CigsOsqY.js"),__vite__mapDeps([363,359,42,50,56,61,62,97,28,68,8,312,313,314])))}),Yce=De({staticData:{pageTitle:"settings.nav.storage"},getParentRoute:()=>so,path:"/buckets",pendingComponent:Li("storage"),component:Ie(()=>Le(()=>import("./buckets-CmybaOoN.js"),__vite__mapDeps([364,42,61,62,97,28,29,30,31,32,33,34,134,312,313,314])))}),Zce=De({staticData:{pageTitle:"settings.nav.repositories"},getParentRoute:()=>so,path:"/repositories",validateSearch:we({git_error:$().optional().catch(void 0),git_flow:$().uuid().optional().catch(void 0),git_installation:Mt().int().positive().safe().optional().catch(void 0),git_return:Vt().optional().catch(void 0)}),pendingComponent:Li("repositories"),component:Ie(()=>Le(()=>import("./repositories-CuvgQNAy.js"),__vite__mapDeps([365,366,83,44,61,84,31,28,85,86,87,18,46,19,20,22,88,35,81,45,153,64,97,21,192,145,181,29,30,32,34,62,308,309,312,313,314])))}),Qce=De({staticData:{pageTitle:"settings.nav.storage"},getParentRoute:()=>so,path:"/synced-repos",pendingComponent:Li("storage"),component:Ie(()=>Le(()=>import("./synced-repos-_e-rYrNS.js"),__vite__mapDeps([367,61,97,83,44,84,31,28,85,86,87,18,46,19,20,22,88,35,81,279,24,25,312,313,314])))}),Jce=De({staticData:{pageTitle:"settings.nav.tasks"},getParentRoute:()=>so,path:"/task-board",component:Ie(()=>Le(()=>import("./tasks-tr_d8SW4.js"),__vite__mapDeps([368,153,34,49,60,61,199,72,73,18,155,300,21,32,29,30,31,33,97,299,356,40,88,35,81,169,68,8,22,267,266,65,145,84,125,160,85,86,80,2,312,313,314])))}),Xce=De({getParentRoute:()=>so,path:"/tasks",beforeLoad:({params:e})=>{throw Jo({to:"/$org/settings/task-board",params:{org:e.org}})}}),ede=De({staticData:{pageTitle:"projects.settings.title"},getParentRoute:()=>so,path:"/projects",component:Ie(()=>Le(()=>import("./projects-BsK-2g1X.js"),__vite__mapDeps([369,41,42,43,15,44,45,46,47,39,48,32,49,40,50,51,52,53,54,55,56,57,58,59,60,61,18,62,63,20,64,65,21,17,76,28,77,68,8,78,67,79,3,2,80,81,35,82,83,84,31,85,86,87,19,22,88,262,305,25,236,101,102,103,232,66,169])))}),tde=De({staticData:{pageTitle:"settings.nav.members"},getParentRoute:()=>so,path:"/members",pendingComponent:Li("members"),component:Ie(()=>Le(()=>import("./members-CikLEMEO.js"),__vite__mapDeps([370,347,15,55,84,31,198,21,17,18,13,14,16,225,98,28,29,30,32,34,163,226,19,20,24,25,26,162,371,97,52,56,62,65,153,72,73,155,61,269,312,313,314])))}),ode=De({staticData:{pageTitle:"settings.nav.members"},getParentRoute:()=>so,path:"/roles",pendingComponent:Li("members"),component:Ie(()=>Le(()=>import("./roles-C_YmoM1c.js"),__vite__mapDeps([372,226,163,371,21,97,52,61,62,13,14,15,16,17,18,154,74,45,41,42,43,44,46,47,39,48,32,49,40,50,51,53,54,55,56,57,58,59,60,63,20,64,65,173,153,174,86,68,8,87,110,111,162,26,169,67,118,19,33,84,31,75,66,313,314]))),validateSearch:Hr(()=>we({role:$().optional()}))}),ade=De({staticData:{pageTitle:"settings.nav.security"},getParentRoute:()=>so,path:"/sso",component:Ie(()=>Le(()=>import("./sso-D0IDI51o.js"),__vite__mapDeps([373,357,21,29,30,31,32,97,33,90,62,312,313,314])))}),nde=De({staticData:{pageTitle:"settings.nav.profile"},getParentRoute:()=>so,path:"/profile",component:Ie(()=>Le(()=>import("./profile-BAcwiajI.js"),__vite__mapDeps([374,19,20,322,323,30,62,63,33,29,31,32,150,58,59,60,298,161])))}),rde=De({staticData:{pageTitle:"settings.nav.agents"},getParentRoute:()=>so,path:"/agents",component:Ie(()=>Le(()=>import("./agents-list-DJAFMczy.js"),__vite__mapDeps([375,67,68,8,52,43,62,41,42,15,44,45,46,47,39,48,32,49,40,50,51,53,54,55,56,57,58,59,60,61,18,63,20,64,65,305,25,78,79,3,2,80,81,35,82,88,16,351,169,106,107,7,109,102,110,111,83,84,31,28,85,86,87,19,22,103,104,97,17,77])))}),ide=De({staticData:{pageTitle:"settings.nav.automations"},getParentRoute:()=>so,path:"/automations",component:Ie(()=>Le(()=>import("./automations-DEtpbM4Z.js"),__vite__mapDeps([376,61,47,17,18,16,267,68,8,78,67,79,3,2,80,81,35,82,294,21,97,41,42,43,15,44,45,46,39,48,32,49,40,50,51,52,53,54,55,56,57,58,59,60,62,63,20,64,65,312,313,314])))}),sde=De({staticData:{pageTitle:"settings.nav.skills"},getParentRoute:()=>so,path:"/skills",component:Ie(()=>Le(()=>import("./skills-BRiGDde6.js"),__vite__mapDeps([377,52,47,62,63,17,18,268,145,84,31,97,16,172,21,280,143,144,50,119,121,69,70,66,67,68,8,246,160,85,86,178,53,195,146])))}),lde=De({staticData:{pageTitle:"settings.nav.memory"},getParentRoute:()=>so,path:"/memory",component:Ie(()=>Le(()=>import("./memory-CTulcnPs.js"),__vite__mapDeps([378,39,20,192,84,31,172,21,16,71,160,85,86]))),validateSearch:Hr(()=>we({scope:co(["user"]).optional()}))}),cde=so.addChildren([Bce,Fce,jce,zce,rde,ide,sde,lde,Uce,qce,$ce,Vce,Hce,Gce,Wce,Kce,Yce,Zce,Qce,Jce,Xce,ede,tde,ode,ade,nde]),dde=Xv.addChildren([Xle,ece,tce]),ude=mo.addChildren([Zle,Qle,Jle,dde,oce,ace,nce,rce,ice,sce,lce,cce,dce,uce,pce,mce,hce,gce,fce,vce,bce,yce,Sce,Rce,Dce]),pde=Ya.addChildren([Wle,Kle,Yle,ude,wce,Tce,xce,kce,_ce,Cce,Pce,Oce,Ece,Ace]),mde=Jv.addChildren([Ice,Lce,pde]),hde=Qv.addChildren([mde,Mce,cde]),gde=r_.addChildren([Ble,hde]),fde=Ka.addChildren([gde,Lle,Fle,jle,zle,Ule,i_.addChildren([qle,$le]),Vle,Cle,Ple,Ele,Ale,Rle,Dle]);function vde(){const e=Re.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=w.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=w.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.goBack"),e[8]=t,e[9]=l):l=e[9];let c;e[10]!==l?(c=w.jsx("button",{type:"button",onClick:bde,className:"text-sm text-primary hover:underline",children:l}),e[10]=l,e[11]=c):c=e[11];let d;return e[12]!==a||e[13]!==i||e[14]!==c?(d=w.jsx("div",{className:"flex h-full items-center justify-center",children:w.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]=d):d=e[15],d}function bde(){return window.history.back()}const eb=z8({routeTree:fde,defaultPendingComponent:Nd,defaultPendingMs:200,defaultPendingMinMs:500,defaultNotFoundComponent:vde});function Pe(...e){return PL(uk(e))}function yde(e){return/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(e)}function qo({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 zl(e){return typeof window<"u"?new URLSearchParams(window.location.search).get(e):null}function XT(e,t){for(const o in e)if(e[o]===t)return o}function jp(e,t){let o=$().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 Sde={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"},wde={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"},Tde={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."},xde={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."},kde={VERIFICATION_FAILED:"Captcha verification failed",MISSING_RESPONSE:"Missing CAPTCHA response",UNKNOWN_ERROR:"Something went wrong"},_de={MISSING_SECRET_KEY:"Missing secret key",SERVICE_UNAVAILABLE:"CAPTCHA service unavailable"},Cde={...kde,..._de},Pde={OTP_EXPIRED:"otp expired",INVALID_OTP:"Invalid OTP",INVALID_EMAIL:"Invalid email",USER_NOT_FOUND:"User not found",TOO_MANY_ATTEMPTS:"Too many attempts"},Ede={INVALID_OAUTH_CONFIGURATION:"Invalid OAuth configuration"},Ade={PASSWORD_COMPROMISED:"The password you entered has been compromised. Please choose a different password."},Rde={INVALID_SESSION_TOKEN:"Invalid session token"},Dde={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"},Ode={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"},Mde={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"},Nde={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"},Ide={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"},Lde={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"},Bde={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"},Fde={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",...xde,...Sde,...wde,...Tde,...Cde,...Pde,...Ede,...Ade,...Rde,...Dde,...Ode,...Mde,...Nde,...Ide,...Lde,...Bde},jde={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"},e2={SETTINGS:"settings",SECURITY:"security",TEAMS:"teams",API_KEYS:"api-keys",ORGANIZATIONS:"organizations"},t2={SETTINGS:"settings",MEMBERS:"members",TEAMS:"teams",API_KEYS:"api-keys"};const E3=A.createContext({});function A3(){return A.useContext(E3)}var z0,o2;function zde(){if(o2)return z0;o2=1;var e=function(){};return z0=e,z0}var Ude=zde();const qde=Ol(Ude);function $de({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 Vde=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 gp=null,zp=!1;const iv=new Set,sv=new Set,Hde=typeof window<"u",dd="___grecaptcha_cfg",R3=`onLoadCallback_${Math.random().toString(36).slice(2)}`;function Gde(){if(!Hde)return;function e(o){if(zp)o();else{window[dd]||(window[dd]={});const a=window[dd];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(){zp=!0;for(const o of sv)o();sv.clear()}window[R3]=t}function Wde({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 Kde({language:e,render:t,scriptProps:o,useEnterprise:a,useRecaptchaNet:n}){const i={id:"google-recaptcha-v3"},l=Wde({language:e,onLoadCallbackName:R3,render:t,useEnterprise:a,useRecaptchaNet:n});if(gp){if(gp!==l)throw new Error("reCAPTCHA has already been loaded with different parameters. Remove the existing script and load it again.");return}gp=l,$de(Object.assign(Object.assign(Object.assign({},i),o),{src:l}))}function Yde(e){if(!window[dd])return;const t=window[dd];t.clients&&delete t.clients[e]}function Zde(e,t){var{onLoadCallback:o,onLoadCallbackName:a}=t,n=Vde(t,["onLoadCallback","onLoadCallbackName"]);if(iv.size===0&&Gde(),Kde(n),iv.add(e),o&&(zp?o():sv.add(o)),a){let i=function(){if(!a)return;const l=window[a];typeof l=="function"&&l()};zp?i():sv.add(i)}}function Qde(e){var t,o,a;iv.delete(e),iv.size===0&&(window.grecaptcha=void 0,window[dd]=void 0,(t=document.querySelector(".grecaptcha-badge"))===null||t===void 0||t.remove(),(o=document.querySelector(`script[src="${gp}"]`))===null||o===void 0||o.remove(),(a=document.querySelector('script[src^="https://www.gstatic.com/recaptcha/releases"]'))===null||a===void 0||a.remove(),gp=null,zp=!1)}let a2=!1;function Jde({container:e,children:t,language:o,reCaptchaKey:a,scriptProps:n,useEnterprise:i,useRecaptchaNet:l}){var c,d,p,m,h,f,v;const b=A.useId(),[S,k]=A.useState(null),[T,x]=A.useState(null),E=A.useRef(!1);A.useEffect(()=>{function D(){var O;const L=i?(O=window.grecaptcha)===null||O===void 0?void 0:O.enterprise:window.grecaptcha;if(!L)throw new Error("reCAPTCHA not found");if(!L.ready)throw new Error("reCAPTCHA ready callback not found");L.ready(()=>{k(L)})}return Zde(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}),()=>{Qde(b),k(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,L;if(!e?.element||!S?.render)return;const q={"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},B=typeof e?.element=="string"?document.getElementById(e.element):e?.element;if(!B)throw new Error("reCAPTCHA container element not found");const U=S.render(B,q);return!((O=e?.parameters)===null||O===void 0)&&O.hidden&&(a2||(qde(!1,"reCAPTCHA badge hidden. See https://cloud.google.com/recaptcha/docs/faq#id_like_to_hide_the_badge_what_is_allowed for more information."),a2=!0),(L=B.querySelector(".grecaptcha-badge"))===null||L===void 0||L.style.setProperty("display","none")),x(U),E.current=!0,()=>{x(null),E.current=!1,Yde(U),B.innerHTML=""}},[e?.element,(c=e?.parameters)===null||c===void 0?void 0:c.badge,(d=e?.parameters)===null||d===void 0?void 0:d.hidden,(p=e?.parameters)===null||p===void 0?void 0:p.callback,(m=e?.parameters)===null||m===void 0?void 0:m.errorCallback,(h=e?.parameters)===null||h===void 0?void 0:h.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 C=!!e?.element,P=C?T:a,R=A.useMemo(()=>P!==null&&S?.execute?D=>{if(P===null||!S?.execute)throw new Error("reCAPTCHA has not been loaded");return C&&!E.current?(console.warn("Client ID not mounted"),null):S.execute(P,{action:D})}:void 0,[P,S,C]);return w.jsx(E3.Provider,{value:{container:e?.element,executeRecaptcha:R,reCaptchaInstance:S},children:t})}var Xde=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()}}},Gn=new Xde;function eue(){return()=>{}}function Bi(){return A.useSyncExternalStore(eue,()=>!0,()=>!1)}function D3(){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 s_(){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 tue({children:e}){const t=Bi(),{captcha:o}=A.useContext(St);return o?.provider!=="google-recaptcha-v3"?e:w.jsxs(Jde,{reCaptchaKey:o.siteKey,useEnterprise:o.enterprise,useRecaptchaNet:o.recaptchaNet,children:[t&&w.jsx("style",{children:`
|
|
168
|
+
`),h=d;m.length>h;h++){var f=m[h];if(1024>=f.length){var v=nO.test(f)?f.replace(nO,"$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(k){if(!k.length)return[];var T=Array.from(k);return T.reverse(),T.slice(0,50).map((x=>{return Ne({},x,{filename:x.filename||(E=T,E[E.length-1]||{}).filename,function:x.function||xd});var E}))})(p)}})("web:javascript",fre,yre)),this._instance=e,this.fo=(t=(o=this._instance.persistence)==null?void 0:o.get_property(TT))!==null&&t!==void 0?t:[],this.mo=Uf(this.yo()),this.bo=new Dre(this.mo)}onConfigChange(){this.mo=Uf(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({[TT]:this.fo,[xT]:i})}}get _o(){var e,t=!!this._instance.get_property(xT),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,d)=>Rre.has(d)?(l.push(d),c):(c[d]=i[d],c)),{}),droppedKeys:l}})(o);n.length>0&&wi.warn("Ignoring reserved exception step fields",{droppedKeys:n}),this.bo.add(Ne({[jf]:e,[zf]: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&&Ct(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:Ne({},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({[jf]:e,[zf]:new Date().toISOString()})}wo(e){return Bo(e)?Ne({},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=zj[n.operator],c=Lt(n.value)?n.value:[n.value],d=(i=t[n.key])!==null&&i!==void 0?i:[];return c.length>0&&l(c,d)}));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!Ct(e)&&Lt(e)}}},Uie=Ne({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({[_T]:!!e.productTours}),this.loadIfEnabled())}loadIfEnabled(){var e,t;this.Ao||(e=this._instance).config.disable_product_tours||(t=e.persistence)==null||!t.get_property(_T)||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?qO.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),!Lt(this.Eo)||t){var o=this.ni;if(o){var a=o.props[rf];if(Lt(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 qO.error(l),void e([],{isLoaded:!1,error:l})}var c=Lt(n.json.product_tours)?n.json.product_tours:[];this.Eo=c,o&&o.register({[rf]:c}),e(c,{isLoaded:!0})}})}else e(this.Eo,{isLoaded:!0})}getActiveProductTours(e){Ct(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(rf)}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)}}},Gv),qie={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 d={},p=this._instance.get_property("$groups")||[],m=this._instance.get_property("$stored_group_properties")||{};for(var[h,f]of Object.entries(m))d[h]={id:p[h],type:h,properties:f};var{$set_once:v,$set:b}=e;return{event:Ne({},UF(e,Oie),{properties:Ne({},e.properties,b?{$set:Ne({},(t=(o=e.properties)==null?void 0:o.$set)!==null&&t!==void 0?t:{},b)}:{},v?{$set_once:Ne({},(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:d}}setupSiteApp(e){var t=this.apps[e.id],o=()=>{var l;!t.errored&&this.No.length&&(ms.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,ms.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){ms.error($O+e.id,l),n(!1)}if(a&&t.loaded)try{o()}catch(l){ms.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){ms.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",(d=>this.Po(d)))):void ms.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(d){var p;et["__$$ph_site_app_"+d]=n._instance,(p=et.__PosthogExtensions__)==null||p.loadSiteApp==null||p.loadSiteApp(n._instance,c,(m=>{if(m)return ms.error($O+d,m)}))};for(var{id:l,url:c}of e.siteApps)i(l)}else ms.error('PostHog site apps are disabled. Enable the "opt_in_site_apps" config to proceed.')}}},$ie={tracingHeaders:class{constructor(e){this.Lo=void 0,this.Do=void 0,this.so=()=>{var t,o,a=this.Bo()||[];$e(this.Lo)&&((t=et.__PosthogExtensions__)==null||(t=t.tracingHeadersPatchFns)==null||t._patchXHR(a,this._instance.get_distinct_id(),this._instance.sessionManager)),$e(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 Rie.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)}}},Vie=Ne({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(Ct(t))return oo.warn("Flags not loaded yet. Not loading surveys.");var o=Lt(t);this.jo=o?t.length>0:t,oo.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(HT)||o!=null&&o.startsWith("inProgressSurvey_"))&&e.push(o)}e.forEach((a=>localStorage.removeItem(a)))}loadIfEnabled(){if(!this._surveyManager)if(this.$o)oo.info("Already initializing surveys, skipping...");else if(this.Bt.disable_surveys)oo.info(VO);else if(this.Bt.cookieless_mode&&this._instance.consent.isOptedOut())oo.info("Not loading surveys in cookieless mode without consent.");else{var e=et?.__PosthogExtensions__;if(e){if(!$e(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(Wk);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 oo.error("PostHog Extensions not found.")}}Vo(e,t){this._surveyManager=e(this._instance,t),this._surveyEventReceiver=new Iie(this._instance),oo.info("Surveys loaded successfully"),this.zo({isLoaded:!0})}Ho(e,t){oo.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 oo.info(VO),e([]);var o,a=this._instance.get_property(RT);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;oo.error(c);var d={isLoaded:!1,error:c};return e([],d),void(o==null||o({surveys:[],context:d}))}var p,m=n.json.surveys||[],h=m.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))));h.length>0&&((p=this._surveyEventReceiver)==null||p.register(h)),(i=this._instance.persistence)==null||i.register({[RT]:m});var f={isLoaded:!0};e(m,f),o?.({surveys:m,context:f})}}))}zo(e){for(var t of this.qo)try{if(!e.isLoaded)return t([],e);this.getSurveys(t)}catch(o){oo.error("Error in survey callback",o)}}getActiveMatchingSurveys(e,t){if(t===void 0&&(t=!1),!Ct(this._surveyManager))return this._surveyManager.getActiveMatchingSurveys(e,t);oo.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(Ct(this._surveyManager))return{eligible:!1,reason:L0};var t=typeof e=="string"?this.Uo(e):e;return t?this._surveyManager.checkSurveyEligibility(t):{eligible:!1,reason:"Survey not found"}}canRenderSurvey(e){if(Ct(this._surveyManager))return oo.warn("init was not called"),{visible:!1,disabledReason:L0};var t=this.Yo(e);return{visible:t.eligible,disabledReason:t.reason}}canRenderSurveyAsync(e,t){return Ct(this._surveyManager)?(oo.warn("init was not called"),Promise.resolve({visible:!1,disabledReason:L0})):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(Ct(this._surveyManager))oo.warn("init was not called");else{var n=typeof e=="string"?this.Uo(e):e;if(n!=null&&n.id)if(gie.includes(n.type)){var i=ze?.querySelector(t);if(i)return(a=n.appearance)!=null&&a.surveyPopupDelaySeconds?(oo.info("Rendering survey "+n.id+" with delay of "+n.appearance.surveyPopupDelaySeconds+" seconds"),void setTimeout((()=>{var l,c;oo.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),oo.info("Survey "+n.id+" rendered")}),1e3*n.appearance.surveyPopupDelaySeconds)):void this._surveyManager.renderSurvey(n,i,o);oo.warn("Survey element not found")}else oo.warn("Surveys of type "+n.type+" cannot be rendered in the app");else oo.warn("Survey not found")}}displaySurvey(e,t){var o;if(Ct(this._surveyManager))oo.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=Ne({},a,{appearance:Ne({},a.appearance,{surveyPopupDelaySeconds:0})})),t.displayType!==jT.Popover&&t.initialResponses&&oo.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 oo.warn("Survey is not eligible to be displayed: ",i.disabledReason)}t.displayType!==jT.Inline?this._surveyManager.handlePopoverSurvey(n,t):this.renderSurvey(n,t.selector,t.properties)}else oo.warn("Survey not found")}}cancelPendingSurvey(e){Ct(this._surveyManager)?oo.warn("init was not called"):this._surveyManager.cancelSurvey(e)}handlePageUnload(){var e;(e=this._surveyManager)==null||e.handlePageUnload()}}},Gv),Hie={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),wj(this.instance.config)||!ge||!ze)return!1;e=e??ge.location,o=o??ge.history;try{if(!t){try{ge.localStorage.setItem("test","test"),ge.localStorage.removeItem("test")}catch{return!1}t=ge?.localStorage}var a,n=Lie||Jf(e.hash,"__posthog")||Jf(e.hash,"state"),i=n?iO((()=>JSON.parse(atob(decodeURIComponent(n)))))||iO((()=>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(HO)||"{}")).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;!Ct(t)&&xi(t)?t(e,this.instance):GO.warn("No toolbar load function found")}loadToolbar(e){var t=!(ze==null||!ze.getElementById(vj));if(!ge||t)return!1;var o=this.instance.requestRouter.region==="custom"&&this.instance.config.advanced_disable_toolbar_metrics,a=Ne({token:this.instance.config.token},e,{apiURL:this.instance.requestRouter.endpointFor("ui")},o?{instrument:!1}:{});if(ge.localStorage.setItem(HO,JSON.stringify(Ne({},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 GO.error("[Toolbar] Failed to load",i),void this.Go(0);this.Go(2),this.Xo(a)})),Zo(ge,"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)}}},Gie=Ne({experiments:Oa},Gv),Wie={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;Ct(t)||(qr(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||wj(this._instance.config)||this._instance.config.cookieless_mode&&this._instance.consent.isOptedOut())){var e=et?.__PosthogExtensions__;if(e&&!$e(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(Wk);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 Hn.error("Conversations enabled but missing token in remote config.")}}ta(e){if(this.ea)try{this._conversationsManager=e(this.ea,this._instance),Hn.info("Conversations loaded successfully")}catch(t){this.ra("Error completing conversations initialization",t)}else Hn.error("Cannot complete initialization: remote config is null")}ra(e,t){Hn.error(e,t),this._conversationsManager=null,this.Qo=!1}show(){this._conversationsManager?this._conversationsManager.show():Hn.warn("Conversations not loaded yet.")}hide(){this._conversationsManager&&this._conversationsManager.hide()}isAvailable(){return this.Ko===!0&&!Ni(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):(Hn.warn(pl),null)}))()}getMessages(e,t){var o=this;return Kn((function*(){return o._conversationsManager?o._conversationsManager.getMessages(e,t):(Hn.warn(pl),null)}))()}markAsRead(e){var t=this;return Kn((function*(){return t._conversationsManager?t._conversationsManager.markAsRead(e):(Hn.warn(pl),null)}))()}getTickets(e){var t=this;return Kn((function*(){return t._conversationsManager?t._conversationsManager.getTickets(e):(Hn.warn(pl),null)}))()}requestRestoreLink(e){var t=this;return Kn((function*(){return t._conversationsManager?t._conversationsManager.requestRestoreLink(e):(Hn.warn(pl),null)}))()}restoreFromToken(e){var t=this;return Kn((function*(){return t._conversationsManager?t._conversationsManager.restoreFromToken(e):(Hn.warn(pl),null)}))()}restoreFromUrlToken(){var e=this;return Kn((function*(){return e._conversationsManager?e._conversationsManager.restoreFromUrlToken():(Hn.warn(pl),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()}}},Kie={logs:class{constructor(e){var t;this.ia=!1,this.na=!1,this.Gt=To("[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;!Ct(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(Wk)}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,d=(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),d>this.oa){this.oa++;var m=(function(h,f){var v=h.level||"info",{text:b,number:S}=sj[v]||dre,k=String(Date.now())+"000000",T={};f.distinctId&&(T.posthogDistinctId=f.distinctId),f.sessionId&&(T.sessionId=f.sessionId),f.currentUrl&&(T["url.full"]=f.currentUrl),f.screenName&&(T["screen.name"]=f.screenName),f.appState&&(T["app.state"]=f.appState),f.activeFeatureFlags&&f.activeFeatureFlags.length>0&&(T.feature_flags=f.activeFeatureFlags);var x=Ne({},T,h.attributes||{}),E={timeUnixNano:k,observedTimeUnixNano:k,severityNumber:S,severityText:b,body:{stringValue:h.body},attributes:aO(x)};return h.trace_id&&(E.traceId=h.trace_id),h.span_id&&(E.spanId=h.span_id),$e(h.trace_flags)||(E.flags=h.trace_flags),E})(e,this.ua());this.sa.push({record:m}),((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 "+d+" 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=Ne({"service.name":o?.serviceName||"unknown_service"},o?.environment&&{"deployment.environment":o.environment},o?.serviceVersion&&{"service.version":o.serviceVersion},o?.resourceAttributes),n=(function(l,c,d,p){return{resourceLogs:[{resource:{attributes:aO(c)},scopeLogs:[{scope:{name:d,version:p},logRecords:l}]}]}})(t.map((l=>l.record)),a,Ga.LIB_NAME,Ga.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}}},Yie=Ne({},Gv,Fie,jie,zie,Uie,qie,Vie,$ie,Hie,Gie,Wie,Kie);Yn.__defaultExtensionClasses=Ne({},Yie);var ZO,Ii=(ZO=mp[Yc]=new Yn,(function(){function e(){e.done||(e.done=!0,$j=!1,vo(mp,(function(t){t._dom_loaded()})))}ze!=null&&ze.addEventListener?ze.readyState==="complete"?e():Zo(ze,"DOMContentLoaded",e,{capture:!1}):ge&&Ue.error("Browser doesn't support `document.addEventListener` so PostHog couldn't be initialized")})(),ZO);const Zie="studio-ui-resources",av="html",Qie=10080*60*1e3,Jie=50,Xie=16*1024*1024;function ese(e){return e[0]==="mcp"&&e[1]===VI}function Wv(){return new Promise((e,t)=>{const o=indexedDB.open(Zie,1);o.onupgradeneeded=()=>{o.result.objectStoreNames.contains(av)||o.result.createObjectStore(av)},o.onsuccess=()=>e(o.result),o.onerror=()=>t(o.error)})}function Cd(e,t){return e.transaction(av,t).objectStore(av)}function ZT(e){return new Promise((t,o)=>{e.onsuccess=()=>t(e.result),e.onerror=()=>o(e.error)})}async function tse(e){if(!(typeof indexedDB>"u"))try{const t=await Wv(),o=Cd(t,"readonly"),a=await ZT(o.getAllKeys()),n=await ZT(o.getAll()),i=Date.now(),l=a.map((p,m)=>({key:p,value:n[m]})).sort((p,m)=>(m.value?.updatedAt??0)-(p.value?.updatedAt??0)),c=[];let d=0;for(const{key:p,value:m}of l){if(!m||i-m.updatedAt>Qie||d>=Jie){c.push(p);continue}d++;try{const f=JSON.parse(String(p));e.getQueryData(f)===void 0&&e.setQueryData(f,m.html,{updatedAt:0})}catch{c.push(p)}}if(c.length>0){const p=Cd(t,"readwrite");for(const m of c)p.delete(m)}}catch{}}function ose(e){if(typeof indexedDB>"u")return()=>{};const t=Wv().catch(()=>null);return e.getQueryCache().subscribe(o=>{const a=o.query;if(!Array.isArray(a.queryKey)||!ese(a.queryKey)||a.state.status!=="success")return;const n=a.state.data;typeof n!="string"||n.length>Xie||t.then(i=>{if(i)try{Cd(i,"readwrite").put({html:n,updatedAt:Date.now()},JSON.stringify(a.queryKey))}catch{}})})}function ase(){typeof indexedDB>"u"||Wv().then(e=>Cd(e,"readwrite").clear()).catch(()=>{})}async function cbe(e){if(!(typeof indexedDB>"u"))try{const t=await Wv(),o=await ZT(Cd(t,"readonly").getAllKeys()),a=Cd(t,"readwrite");for(const n of o)try{const i=JSON.parse(String(n));i[1]===VI&&i[3]===e&&a.delete(n)}catch{}}catch{}}const nv="studio:rq-cache",e_=1440*60*1e3,nse=1e3,rse=new Set(["publicConfig","ai-provider-keys","organization-settings","home-next-actions"]),ise=new Set(["VIRTUAL_MCP","CONNECTIONS"]);let Jj=!1,Xj=!1;function sse(e){const t=e[0];return typeof t=="string"&&rse.has(t)?!0:e[3]==="collection"&&typeof e[4]=="string"&&ise.has(e[4])}function lse(e){if(!(typeof window>"u"))try{const t=window.localStorage.getItem(nv);if(!t)return;const o=JSON.parse(t),a=!o.timestamp||Date.now()-o.timestamp>e_;if(o.buster!=="4.513.5"||a||!o.state){window.localStorage.removeItem(nv);return}dq(e,o.state),e.invalidateQueries({queryKey:Mn.publicConfig(),refetchType:"none"}),Jj=!0}catch{pse()}}function cse(e){if(typeof window>"u")return()=>{};let t=null;const o=()=>{t=null;try{const i=cq(e,{shouldDehydrateQuery:l=>l.state.status==="success"&&sse(l.queryKey)});window.localStorage.setItem(nv,JSON.stringify({buster:"4.513.5",timestamp:Date.now(),state:i}))}catch{}},a=e.getQueryCache().subscribe(()=>{t==null&&(t=setTimeout(o,nse))}),n=()=>{t!=null&&(clearTimeout(t),o())};return window.addEventListener("pagehide",n),()=>{t!=null&&clearTimeout(t),window.removeEventListener("pagehide",n),a()}}const e3="studio:org-cache:",dse=20;function use(e){const t=Date.now(),o=Object.entries(e).filter(([,a])=>t-a.updatedAt<=e_);for(o.sort(([,a],[,n])=>a.updatedAt-n.updatedAt);o.length>dse;)o.shift();return Object.fromEntries(o)}function t3(e){return`${e3}${e}`}function dbe(e,t){if(typeof window>"u")return null;try{const o=window.localStorage.getItem(t3(e));if(!o)return null;const a=JSON.parse(o)[t];return!a||Date.now()-a.updatedAt>e_?null:(Xj=!0,a)}catch{return null}}function ube(e,t,o){if(!(typeof window>"u"))try{const a=t3(e),n=window.localStorage.getItem(a),i=n?JSON.parse(n):{};i[t]={data:o,updatedAt:Date.now()},window.localStorage.setItem(a,JSON.stringify(use(i)))}catch{}}function pse(){if(ase(),!(typeof window>"u"))try{window.localStorage.removeItem(nv);for(let e=window.localStorage.length-1;e>=0;e--){const t=window.localStorage.key(e);t?.startsWith(e3)&&window.localStorage.removeItem(t)}}catch{}}function mse(){return Jj}function hse(){return Xj}let Ri=!1,QT=null,QO=!1;const t_="studio:lp-distinct-id",o3="mesh:lp-distinct-id",F0="/api/_reports/link-token/",gse=1440*60*1e3;function a3(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(F0)&&n.pathname!==F0&&(n.pathname=`${F0}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 j0(e){return Object.fromEntries(Object.entries(e).map(([t,o])=>[t,typeof o=="string"?a3(o):o]))}const fse=e=>e?(e.properties=j0(e.properties),e.$set&&(e.$set=j0(e.$set)),e.$set_once&&(e.$set_once=j0(e.$set_once)),e):null;function n3(){try{const e=window.localStorage.getItem(t_)??window.localStorage.getItem(o3);if(!e)return;const{id:t,ts:o}=JSON.parse(e);return typeof t!="string"||!t||typeof o!="number"?void 0:Date.now()-o<=gse?t:void 0}catch{return}}function vse(){try{window.localStorage.removeItem(t_),window.localStorage.removeItem(o3)}catch{}}function bse(){try{const e=new URL(window.location.href),t=e.searchParams.get("ph_did");t&&(window.localStorage.setItem(t_,JSON.stringify({id:t,ts:Date.now()})),e.searchParams.delete("ph_did"),window.history.replaceState(window.history.state,"",e.toString()));const o=t??n3();return o?Object.keys(window.localStorage).some(n=>n.startsWith("ph_")&&n.endsWith("_posthog"))?void 0:o:void 0}catch{return}}function yse(e){const t=n3();if(t&&(vse(),t!==e))try{Ii.alias(t)}catch{}}function Sse(e,t){if(Ri||typeof window>"u")return;const o=bse();Ii.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:fse,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:a3(a.name)}:{}})},person_profiles:"identified_only"}),Ri=!0}function wse(e,t){Ri&&(Ii.identify(e,t),yse(e))}function Tse(){Ri&&(Ii.reset(),QT=null)}function r3(e,t){Ri&&Ii.capture(e,t)}function pbe(){return Ri}function mbe(){if(!Ri||QO||typeof performance>"u")return;QO=!0;const e=performance.getEntriesByType("navigation")[0],t=o=>{const a=performance.getEntriesByName(o,"measure")[0];return a?Math.round(a.duration):void 0};r3("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:mse(),org_cache_restored:hse()})}function hbe(e,t){Ri&&e!==QT&&(Ii.group("organization",e,t),QT=e)}function i3(e,t){if(Ri)try{Ii.captureException(e,t)}catch{}}const xse=["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 kse(e){const t=Re.c(3),{children:o}=e;let a;t[0]===Symbol.for("react.memo_cache_sentinel")?(a=w.jsx("div",{className:"absolute inset-0 pointer-events-none",style:{backgroundImage:xse}}),t[0]=a):a=t[0];let n;return t[1]!==o?(n=w.jsxs("div",{className:"relative flex items-center justify-center min-h-screen bg-background overflow-hidden",children:[a,w.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 s3(e){const t=Re.c(20),{orgName:o}=e,a=ar(),n=_se;let i;t[0]===Symbol.for("react.memo_cache_sentinel")?(i=w.jsx("div",{className:"bg-muted p-3 rounded-full","aria-hidden":"true",children:w.jsx(SF,{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=w.jsx("h3",{className:"text-lg font-medium",children:l}),t[3]=l,t[4]=c):c=t[4];let d;t[5]!==o||t[6]!==a?(d=o?a("common.archivedOrgScreen.deletedWithName",{orgName:o}):a("common.archivedOrgScreen.deletedGeneric"),t[5]=o,t[6]=a,t[7]=d):d=t[7];let p;t[8]!==d?(p=w.jsx("p",{className:"text-sm text-muted-foreground",children:d}),t[8]=d,t[9]=p):p=t[9];let m;t[10]!==c||t[11]!==p?(m=w.jsxs("div",{className:"space-y-2",children:[c,p]}),t[10]=c,t[11]=p,t[12]=m):m=t[12];let h;t[13]!==a?(h=a("common.goHome"),t[13]=a,t[14]=h):h=t[14];let f;t[15]!==h?(f=w.jsx(Ai,{onClick:n,children:h}),t[15]=h,t[16]=f):f=t[16];let v;return t[17]!==m||t[18]!==f?(v=w.jsxs(kse,{children:[i,m,f]}),t[17]=m,t[18]=f,t[19]=v):v=t[19],v}function _se(){window.location.href="/"}function Cse(){const e=Re.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}=$p(t);let a;return e[1]!==o?(a=w.jsx(Ai,{variant:"outline",size:"sm",asChild:!0,children:w.jsx(Ml,{to:"/$org/settings/profile",params:{org:o},children:"Go to your profile"})}),e[1]=o,e[2]=a):a=e[2],a}function Pse(e){const t=Re.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=w.jsx("div",{className:"flex h-16 w-16 items-center justify-center rounded-full bg-muted text-muted-foreground",children:w.jsx(AF,{size:28})}),t[0]=c):c=t[0];let d;t[1]!==i?(d=w.jsx("h3",{className:"text-lg font-medium",children:i}),t[1]=i,t[2]=d):d=t[2];let p;t[3]!==l?(p=w.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 m;t[5]!==d||t[6]!==p?(m=w.jsxs("div",{className:"space-y-1",children:[d,p]}),t[5]=d,t[6]=p,t[7]=m):m=t[7];let h;t[8]!==n?(h=n??w.jsx(Cse,{}),t[8]=n,t[9]=h):h=t[9];let f;return t[10]!==m||t[11]!==h?(f=w.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,m,h]}),t[10]=m,t[11]=h,t[12]=f):f=t[12],f}const JO="__studio_chunk_reload_ts";function l3(e){return e?.message===nQ}function Ese(e){return!!e?.message?.includes("Access denied")}function XO(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 Ase 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),i3(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:l3(this.state.error)?w.jsx(s3,{}):Ese(this.state.error)?w.jsx(Pse,{}):w.jsxs("div",{className:"flex-1 flex flex-col items-center justify-center h-full p-6 text-center space-y-4",children:[w.jsx("div",{className:"bg-destructive/10 p-3 rounded-full",children:w.jsx(Bk,{className:"h-6 w-6 text-destructive"})}),w.jsxs("div",{className:"space-y-2",children:[w.jsx("h3",{className:"text-lg font-medium",children:o("common.errorBoundary.somethingWentWrong")}),w.jsx("p",{className:"text-sm text-muted-foreground max-w-xs mx-auto",children:this.state.error?.message||o("common.errorBoundary.unexpectedError")})]}),w.jsx(Ai,{variant:"outline",onClick:this.resetError,children:o("common.errorBoundary.tryAgain")})]})}return this.props.children}}function Rse(e){const t=Re.c(3),o=ar();let a;return t[0]!==e||t[1]!==o?(a=w.jsx(Ase,{...e,t:o}),t[0]=e,t[1]=o,t[2]=a):a=t[2],a}class Dse 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=XO(t);if(i3(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(JO),i=Date.now();(!n||i-Number(n)>1e4)&&(sessionStorage.setItem(JO,String(i)),window.location.reload())}render(){const{t}=this.props;return this.state.hasError&&XO(this.state.error)?w.jsxs("div",{className:"flex min-h-dvh flex-col items-center justify-center p-6 text-center space-y-4",children:[w.jsx("div",{className:"bg-primary/10 p-3 rounded-full",children:w.jsx(RF,{className:"h-6 w-6 text-primary"})}),w.jsxs("div",{className:"space-y-2",children:[w.jsx("h3",{className:"text-lg font-medium",children:t("common.errorBoundary.newVersionAvailable")}),w.jsx("p",{className:"text-sm text-muted-foreground max-w-xs mx-auto",children:t("common.errorBoundary.newVersionDeployed")})]}),w.jsx(Ai,{onClick:()=>window.location.reload(),children:t("common.errorBoundary.refresh")})]}):this.state.hasError?l3(this.state.error)?w.jsx(s3,{}):w.jsxs("div",{className:"flex min-h-dvh flex-col items-center justify-center p-6 text-center space-y-4",children:[w.jsx("div",{className:"bg-destructive/10 p-3 rounded-full",children:w.jsx(Bk,{className:"h-6 w-6 text-destructive"})}),w.jsxs("div",{className:"space-y-2",children:[w.jsx("h3",{className:"text-lg font-medium",children:t("common.errorBoundary.somethingWentWrong")}),w.jsx("p",{className:"text-sm text-muted-foreground max-w-xs mx-auto",children:this.state.error?.message||t("common.errorBoundary.unexpectedError")})]}),w.jsx(Ai,{variant:"outline",onClick:()=>this.setState({hasError:!1,error:null}),children:t("common.errorBoundary.tryAgain")})]}):this.props.children}}function Ose(e){const t=Re.c(3),o=ar();let a;return t[0]!==e||t[1]!==o?(a=w.jsx(Dse,{...e,t:o}),t[0]=e,t[1]=o,t[2]=a):a=t[2],a}function Mse(e){const t=Re.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=ht("surface flex flex-col gap-6",o),t[3]=o,t[4]=n):n=t[4];let i;return t[5]!==a||t[6]!==n?(i=w.jsx("div",{"data-slot":"card",className:n,...a}),t[5]=a,t[6]=n,t[7]=i):i=t[7],i}function gbe(e){const t=Re.c(12),{title:o,description:a,docsHref:n,actions:i,className:l,headerClassName:c,children:d}=e;let p;t[0]!==l?(p=ht("flex flex-col gap-3",l),t[0]=l,t[1]=p):p=t[1];let m;t[2]!==i||t[3]!==a||t[4]!==n||t[5]!==c||t[6]!==o?(m=(o||a||n||i)&&w.jsxs("div",{className:ht("flex items-center justify-between gap-3 px-4",c),children:[w.jsxs("div",{className:"flex flex-col gap-1 min-w-0",children:[o&&w.jsx("h2",{className:"text-[15px] font-medium leading-tight",children:o}),(a||n)&&w.jsxs("p",{className:"text-sm text-muted-foreground leading-snug",children:[a,n&&w.jsxs("a",{href:n,target:"_blank",rel:"noreferrer",className:"inline-flex items-center gap-0.5 ml-1 text-foreground hover:underline",children:["Docs ",w.jsx(wF,{size:12})]})]})]}),i&&w.jsx("div",{className:"shrink-0",children:i})]}),t[2]=i,t[3]=a,t[4]=n,t[5]=c,t[6]=o,t[7]=m):m=t[7];let h;return t[8]!==d||t[9]!==p||t[10]!==m?(h=w.jsxs("section",{className:p,children:[m,d]}),t[8]=d,t[9]=p,t[10]=m,t[11]=h):h=t[11],h}function fbe(e){const t=Re.c(11),{className:o,children:a}=e;let n,i,l;if(t[0]!==a||t[1]!==o){const d=A.Children.toArray(a).filter(A.isValidElement);n=Mse,t[5]!==o?(i=ht("p-0 gap-0 overflow-hidden",o),t[5]=o,t[6]=i):i=t[6],l=d.map(Nse),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=w.jsx(n,{className:i,children:l}),t[7]=n,t[8]=i,t[9]=l,t[10]=c):c=t[10],c}function Nse(e,t){return w.jsxs("div",{children:[t>0&&w.jsx("div",{className:"h-px bg-border mx-5"}),e]},t)}function vbe(e){const t=Re.c(27),{icon:o,title:a,description:n,action:i,onClick:l,className:c,children:d}=e,p=d?"flex items-start gap-3 px-4 py-4":"flex items-center gap-3 px-4 py-4",m=l&&"hover:bg-muted/50 cursor-pointer";let h;t[0]!==c||t[1]!==p||t[2]!==m?(h=ht(p,m,c),t[0]=c,t[1]=p,t[2]=m,t[3]=h):h=t[3];const f=l?"button":void 0,v=l?0:void 0;let b;t[4]!==l?(b=l?P=>{P.target===P.currentTarget&&(P.key==="Enter"||P.key===" ")&&(P.preventDefault(),l())}:void 0,t[4]=l,t[5]=b):b=t[5];let S;t[6]!==o?(S=o&&w.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 k;t[8]!==a?(k=w.jsx("div",{className:"text-sm font-medium",children:a}),t[8]=a,t[9]=k):k=t[9];let T;t[10]!==n?(T=n&&w.jsx("p",{className:"text-xs text-muted-foreground mt-0.5 leading-relaxed",children:n}),t[10]=n,t[11]=T):T=t[11];let x;t[12]!==d||t[13]!==k||t[14]!==T?(x=w.jsxs("div",{className:"flex-1 min-w-0",children:[k,T,d]}),t[12]=d,t[13]=k,t[14]=T,t[15]=x):x=t[15];let E;t[16]!==i?(E=i&&w.jsx("div",{className:"shrink-0",onClick:Ise,children:i}),t[16]=i,t[17]=E):E=t[17];let C;return t[18]!==l||t[19]!==x||t[20]!==E||t[21]!==h||t[22]!==f||t[23]!==v||t[24]!==b||t[25]!==S?(C=w.jsxs("div",{className:h,onClick:l,role:f,tabIndex:v,onKeyDown:b,children:[S,x,E]}),t[18]=l,t[19]=x,t[20]=E,t[21]=h,t[22]=f,t[23]=v,t[24]=b,t[25]=S,t[26]=C):C=t[26],C}function Ise(e){return e.stopPropagation()}function bbe(e){const t=Re.c(5),{className:o,children:a}=e;let n;t[0]!==o?(n=ht("px-4 py-4",o),t[0]=o,t[1]=n):n=t[1];let i;return t[2]!==a||t[3]!==n?(i=w.jsx("div",{className:n,children:a}),t[2]=a,t[3]=n,t[4]=i):i=t[4],i}function ybe(e){const t=Re.c(5),{children:o,className:a}=e;let n;t[0]!==a?(n=ht("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=w.jsx("div",{className:n,children:o}),t[2]=o,t[3]=n,t[4]=i):i=t[4],i}function Lse(e){const t=Re.c(5),{className:o,children:a}=e;let n;t[0]!==o?(n=ht("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=w.jsx("div",{className:n,children:a}),t[2]=a,t[3]=n,t[4]=i):i=t[4],i}const Kv={connect:{key:"connect",titleKey:"settings.connectClients.pageTitle",tabs:[],ownedRoutes:["/$org/settings/api-keys"]},members:{key:"members",titleKey:"orgs.members.title",tabs:[{key:"members",icon:MF,labelKey:"orgs.members.title",to:"/$org/settings/members",requires:"members:manage"},{key:"roles",icon:OF,labelKey:"settings.roles.pageTitle",to:"/$org/settings/roles",privilegedOnly:!0}]},billing:{key:"billing",titleKey:"settings.nav.billing",tabs:[{key:"ai-providers",icon:kF,labelKey:"settings.nav.aiProviders",to:"/$org/settings/ai-providers",requires:"ai-providers:manage"},{key:"infra",icon:DF,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:PF,labelKey:"settings.nav.buckets",to:"/$org/settings/buckets",requires:"file-configs:manage"},{key:"synced-repos",icon:CF,labelKey:"settings.nav.syncedRepos",to:"/$org/settings/synced-repos",requires:"file-configs:manage"}]}};function Sbe(e){const t=Kv[e];return[...t.tabs.map(o=>o.to),...t.ownedRoutes??[]]}function wbe(e){return Kv[e].tabs.length>0}const Bse=new Set(["owner","admin"]);function c3(){const e=Re.c(11),{org:t,locator:o}=Jp();let a;e[0]!==o?(a=Mn.myCapabilities(o),e[0]=o,e[1]=a):a=e[1];let n;e[2]!==t?(n=async()=>{const m=await fetch(`/api/auth/custom/my-capabilities/${encodeURIComponent(t.slug)}`,{credentials:"include"});if(!m.ok)throw new Error(`my-capabilities request failed: ${m.status}`);return await m.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:d}=Rd(i);let p;return e[7]!==l||e[8]!==d||e[9]!==c?(p={data:l,loading:c,error:d},e[7]=l,e[8]=d,e[9]=c,e[10]=p):p=e[10],p}function Tbe(e){const t=Re.c(8),{data:o,loading:a,error:n}=c3();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 d;return t[5]!==l||t[6]!==c?(d={granted:l,loading:!1,error:!1,reason:c},t[5]=l,t[6]=c,t[7]=d):d=t[7],d}function d3(){const e=Re.c(10),{data:t,loading:o,error:a}=c3(),n=t?.role??void 0;let i;e[0]!==n?(i=n?Bse.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 d=c;let p;return e[4]!==a||e[5]!==l||e[6]!==o||e[7]!==n||e[8]!==d?(p={capabilities:d,loading:o,error:a,isPrivileged:l,roleSlug:n},e[4]=a,e[5]=l,e[6]=o,e[7]=n,e[8]=d,e[9]=p):p=e[9],p}function Fse(){const e=Re.c(13),{org:t}=Jp(),o=ik(),{capabilities:a,isPrivileged:n}=d3(),i=n||!!a["members:manage"];let l;e[0]!==t.id?(l=Mn.infraBillingSites(t.id),e[0]=t.id,e[1]=l):l=e[1];const c=!!t.id&&i;let d;e[2]!==o?(d=()=>o.call("INFRA_BILLING_SITES_LIST",{}),e[2]=o,e[3]=d):d=e[3];let p;e[4]!==l||e[5]!==c||e[6]!==d?(p={queryKey:l,staleTime:3e5,enabled:c,queryFn:d},e[4]=l,e[5]=c,e[6]=d,e[7]=p):p=e[7];const{data:m,isLoading:h}=Rd(p);let f;e[8]!==m?.sites?(f=m?.sites.map(jse)??[],e[8]=m?.sites,e[9]=f):f=e[9];let v;return e[10]!==h||e[11]!==f?(v={sites:f,isLoading:h},e[10]=h,e[11]=f,e[12]=v):v=e[12],v}function jse(e){return e.slug}function xbe(){const e=Re.c(7),t=ik(),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=>bd.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:zse,onError:n},e[4]=a,e[5]=n,e[6]=i):i=e[6],lp(i)}function zse(e){const{url:t}=e;return window.open(t,"_blank","noopener,noreferrer")}function kbe(e,t){const o=Re.c(14),{org:a}=Jp(),n=ik();let i,l,c;o[0]!==a.id||o[1]!==t||o[2]!==e?(i=[...e].sort(),c=Rd,l=Mn.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 d=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 m;return o[10]!==l||o[11]!==d||o[12]!==p?(m={queryKey:l,enabled:d,staleTime:6e4,queryFn:p},o[10]=l,o[11]=d,o[12]=p,o[13]=m):m=o[13],c(m)}function Use(){const e=Re.c(7),{capabilities:t,isPrivileged:o,loading:a,error:n}=d3(),{sites:i,isLoading:l}=Fse(),c=i.length>0;let d;if(e[0]!==t||e[1]!==n||e[2]!==o||e[3]!==a||e[4]!==c||e[5]!==l){const p=m=>m.requiresOwnedSites&&!c&&!l?!1:a||n?!0:m.privilegedOnly?o:m.requires?o||t[m.requires]:!0;d=Object.fromEntries(Object.values(Kv).map(m=>[m.key,m.tabs.filter(p)])),e[0]=t,e[1]=n,e[2]=o,e[3]=a,e[4]=c,e[5]=l,e[6]=d}else d=e[6];return d}function qse(e){const t=Re.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}=$p(n);let l;t[1]===Symbol.for("react.memo_cache_sentinel")?(l={select:$se},t[1]=l):l=t[1];const c=Dx(l),d=Use()[o],{titleKey:p}=Kv[o];let m;t[2]!==a||t[3]!==p?(m=a(p),t[2]=a,t[3]=p,t[4]=m):m=t[4];let h;t[5]!==m?(h=w.jsx(sd.Title,{children:m}),t[5]=m,t[6]=h):h=t[6];let f;t[7]!==o||t[8]!==i||t[9]!==c||t[10]!==a||t[11]!==d?(f=d.length>1&&w.jsx(sn.Toolbar.Left.Portal,{children:w.jsx(sd.Tabs,{"data-testid":"settings-subnav","aria-label":a("settings.subnav.ariaLabel"),children:d.map(b=>{const S=b.to.replace("$org",i),k=c===S||c.startsWith(`${S}/`);return w.jsx(sd.Tab,{active:k,asChild:!0,children:w.jsx(Ml,{to:b.to,params:{org:i},onClick:()=>r3("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]=d,t[12]=f):f=t[12];let v;return t[13]!==h||t[14]!==f?(v=w.jsxs(w.Fragment,{children:[h,f]}),t[13]=h,t[14]=f,t[15]=v):v=t[15],v}function $se(e){return e.location.pathname}function u3(){const e=Re.c(1);let t;return e[0]===Symbol.for("react.memo_cache_sentinel")?(t=w.jsxs("div",{"data-testid":"settings-content-loading",className:"flex flex-col gap-4",children:[w.jsx(wD,{className:"h-32 w-full"}),w.jsx(wD,{className:"h-32 w-full"})]}),e[0]=t):t=e[0],t}function Vse(e){const t=Re.c(14),{group:o,fallback:a,errorFallback:n,className:i,children:l}=e;let c;t[0]!==o?(c=w.jsx(qse,{group:o}),t[0]=o,t[1]=c):c=t[1];let d;t[2]!==a?(d=a??w.jsx(u3,{}),t[2]=a,t[3]=d):d=t[3];let p;t[4]!==l||t[5]!==d?(p=w.jsx(A.Suspense,{fallback:d,children:l}),t[4]=l,t[5]=d,t[6]=p):p=t[6];let m;t[7]!==n||t[8]!==p?(m=w.jsx(Rse,{fallback:n,children:p}),t[7]=n,t[8]=p,t[9]=m):m=t[9];let h;return t[10]!==i||t[11]!==c||t[12]!==m?(h=w.jsx(sd,{children:w.jsx(sd.Content,{children:w.jsx(sd.Container,{children:w.jsxs(Lse,{className:i,children:[c,m]})})})}),t[10]=i,t[11]=c,t[12]=m,t[13]=h):h=t[13],h}function Li(e){return function(){return w.jsx(Vse,{group:e,children:w.jsx(u3,{})})}}function Hse(e){try{localStorage.setItem(Ll.lastLocation(),JSON.stringify(e))}catch{}}function Gse(){try{const e=localStorage.getItem(Ll.lastLocation());if(!e)return null;const t=JSON.parse(e);if(typeof t?.org=="string")return{org:t.org}}catch{}return null}function _be(){try{localStorage.removeItem(Ll.lastLocation())}catch{}}const Nt={home:"/$org/home",projects:"/$org/projects/$agentId",tasks:"/$org/tasks/{-$taskKey}",reports:"/$org/reports",library:"/$org/library",threadAnalytics:"/$org/thread-analytics",discover:"/$org/discover",plan:"/$org/plan",monitoring:"/$org/monitoring",orgIndex:"/$org/"},nt={root:Nt.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",library:"/$org/projects/$agentId/library",libraryFile:"/$org/projects/$agentId/library/file",connectSources:"/$org/projects/$agentId/connect-sources",settings:"/$org/projects/$agentId/settings",assets:"/$org/projects/$agentId/assets",releases:"/$org/projects/$agentId/releases",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",plan:"/$org/projects/$agentId/plan",monitoring:"/$org/projects/$agentId/monitoring"};function Cbe(){const e=Re.c(1);let t;return e[0]===Symbol.for("react.memo_cache_sentinel")?(t={select:Wse},e[0]=t):t=e[0],Dx(t)}function Wse(e){return e.matches.at(-1)?.fullPath??""}const Kse=new Map([[Nt.reports,"project-only"],[Nt.library,"org-only"],[Nt.threadAnalytics,"org-only"]]);function Pbe(e,t){const o=Kse.get(e);return o===void 0?!0:o==="project-only"?t!==null:t===null}function Ebe(){const e=Re.c(1);let t;return e[0]===Symbol.for("react.memo_cache_sentinel")?(t={select:Yse},e[0]=t):t=e[0],Dx(t)}function Yse(e){return e.matches.findLast(Zse)?.staticData.mainView}function Zse(e){return e.staticData.mainView}function cf(e){return`agent-view:${encodeURIComponent(e)}`}function Qse(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 p3(e){if(!e||!e.startsWith("automation:"))return null;const t=e.slice(11);return t?{id:t}:null}function o_(e,t){return`app:${e}:${t}`}function Jse(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 m3(e){return`deck:${encodeURIComponent(e)}`}function Xse(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 h3(e){return`file:${encodeURIComponent(e)}`}function ele(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 g3(e){return`library-file:${encodeURIComponent(e)}`}function tle(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 f3(e){return`code:${encodeURIComponent(e)}`}function ole(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 v3=["overview","settings","automations","site-editor","code","content","assets","hosting","e2e","analytics","cdn"],ale=new Set(v3),b3=new Set(["hosting","e2e","analytics","cdn"]),nle=new Set(["board","files","connect-sources","reports"]);function Abe(e){return e.startsWith("app:")||e.startsWith("automation:")||e.startsWith("file:")||e.startsWith("deck:")||e.startsWith("library-file:")||e.startsWith("code:")}const rle=new Map([["preview","site-editor"],["git","site-editor"]]);function Yv(e){return rle.get(e)??e}const a_=new Set(["instructions","connections","layout","settings"]);function ile(e){return!!e&&a_.has(e)}const sle=new Set(["overview","board","reports"]);function Rbe(e){const t=e?.defaultMainView??null;if(!(!t||t.type==="chat"))return y3(e??null)}function y3(e){const t=e?.defaultMainView??null;if(!t)return"settings";const o=Yv(t.type);if(a_.has(o))return"settings";if(ale.has(o)||sle.has(o))return o;if(o==="ext-app"||o==="ext-apps"){if(t.id&&t.toolName)return o_(t.id,t.toolName);const n=e?.tabs?.map(i=>i.id)??[];return t.id&&n.includes(t.id)?cf(t.id):n[0]?cf(n[0]):"settings"}const a=e?.tabs?.[0]?.id;return a?cf(a):"settings"}function Dbe(e){const t=e.routeDefaultMain||y3(e.metadata),o=e.panelTabId&&a_.has(e.panelTabId)?"settings":e.panelTabId?Yv(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 Obe(e){return e.mainOpen&&e.clickedId===e.activeTab?{close:!0}:{tabId:e.clickedId}}function Mbe(e){return e.mainOpen?e.activeTab==="automations"?!0:p3(e.activeTab)!==null:!1}const lle=new Set([...v3.filter(e=>!b3.has(e)),...nle,"app","file","deck","library-file","connect-sources","instructions","connections","layout","preview","discover"]);function cle(e){return!!e&&lle.has(e)}function dle(e,t){if(e)switch(e){case"app":return t.connection&&t.tool?o_(t.connection,t.tool):void 0;case"automations":return t.automation?`automation:${t.automation}`:"automations";case"file":return t.key?h3(t.key):void 0;case"deck":return t.deck?m3(t.deck):void 0;case"library-file":return t.path?g3(t.path):void 0;case"code":return t.file?f3(t.file):"code";default:{const o=Yv(e);return o==="site-editor"&&t.main==="content"?"content":o}}}function Nbe(e){const t=e.params??{},o=e.search??{};if(e.siteEditorView==="content")return"content";if(e.siteEditorView==="code")return o.file?f3(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?o_(t.connectionId,t.toolName):void 0;case"view":return t.viewId?cf(t.viewId):void 0;case"file":return o.key?h3(o.key):void 0;case"deck":return o.path?m3(o.path):void 0;case"library-file":return o.path?g3(o.path):void 0;default:return e.mainView}}const ule={files:"library",discover:"discover"},ple={board:"tasks",reports:"reports"},mle={settings:"settings",assets:"assets",releases:"releases",hosting:"hosting",e2e:"e2e",analytics:"analytics",experiments:"experiments",cdn:"monitor"};function S3(e){const t=Qse(e);if(t)return{kind:"agent-view",viewId:t.id};const o=Jse(e);if(o)return{kind:"app",connectionId:o.connectionId,toolName:o.toolName};const a=p3(e);if(a)return{kind:"automations",automationId:a.id};const n=ele(e);if(n)return{kind:"output-file",key:n.key};const i=Xse(e);if(i)return{kind:"output-deck",path:i.path};const l=tle(e);if(l)return{kind:"library-file",path:l.path};const c=ole(e);if(c)return{kind:"site-editor",view:"code",...c.path?{file:c.path}:{}};if(ile(e))return{kind:"agent-section",section:"settings"};const d=Yv(e);if(d==="overview")return{kind:"agent-overview"};if(d==="site-editor")return{kind:"site-editor",view:"preview"};if(d==="content")return{kind:"site-editor",view:"content"};if(d==="automations")return{kind:"automations"};if(d==="connect-sources")return{kind:"connect-sources"};const p=ple[d];if(p)return{kind:"project-destination",destination:p};const m=ule[d];if(m)return{kind:"org-destination",destination:m};const h=mle[d];return h?{kind:"agent-section",section:h}:{kind:"agent-view",viewId:d}}function Rl(e){const{org:t,agentId:o}=e,a={org:t,agentId:o},n=S3(e.tabId);switch(n.kind){case"project-destination":return e.destinationScope==="organization"?n.destination==="tasks"?{to:Nt.tasks,params:{org:t,taskKey:e.taskKey},search:{}}:{to:Nt.reports,params:{org:t},search:{}}:n.destination==="tasks"?{to:nt.tasks,params:{...a,taskKey:e.taskKey},search:{}}:{to:nt.reports,params:a,search:{}};case"org-destination":switch(n.destination){case"home":return{to:Nt.home,params:{org:t},search:{}};case"discover":return{to:Nt.discover,params:{org:t},search:{}};case"library":return{to:Nt.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 Ibe(e){if(!e.agentId||e.agentId===e.superAgentId&&(e.tabId===void 0||e.tabId==="overview"))return{to:Nt.home,params:{org:e.org},search:{}};const t=e.tabId??"overview",o=e.agentId!==e.superAgentId&&S3(t).kind==="org-destination"?"overview":t;return Rl({org:e.org,agentId:e.agentId,tabId:o,destinationScope:e.agentId===e.superAgentId?"organization":"project"})}function hle(e,t,o={}){const a=i=>({...o.search?.(i)??{},...t.search}),n=o.replace??!0;switch(t.to){case Nt.tasks:e({to:Nt.tasks,params:t.params,search:a,replace:n});return;case Nt.home:e({to:Nt.home,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.discover:e({to:Nt.discover,params:t.params,search:a,replace:n});return;case Nt.library:e({to:Nt.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.releases: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 Lbe(e,t){hle(e,Rl(t),t)}function gle(e){const t=/^(\/[^/]+)\/agents(?=\/|$)/.exec(e);return t?.[1]?`${t[1]}/projects${e.slice(t[0].length)}`:null}function fle(e){const t=e.split("/").filter(Boolean);return(t[1]==="projects"||t[1]==="agents")&&t.length>3}const vle=new Set(["main","virtualmcpid","file","key","deck","path","connection","tool","automation"]),w3=new Set(["main"]),ble=new Set(["virtualmcpid"]);function Zv(e,t){return Object.fromEntries(Object.entries(e).filter(([o])=>!t.has(o)))}function Cl(e,t){return{...Zv(e,vle),...t.search}}function yle(e){return Zv(e,ble)}function Bbe(e){if(e.search.virtualmcpid===void 0)return null;const t=br(e.search.virtualmcpid);if(t){const o=e.routePath===Nt.tasks?"board":e.routePath===Nt.reports?"reports":null;if(e.routePath===Nt.home||o){const a=o?Rl({org:e.org,agentId:t,tabId:o}):Pd(e.org,t);return{kind:"canonical",route:a,search:Cl(e.search,a)}}}return e.routePath===Nt.home||e.routePath===Nt.tasks||e.routePath===Nt.reports||e.routePath===Nt.library?{kind:"same-route",search:yle(e.search)}:null}function br(e){return e?.trim()||void 0}function T3(e){return cle(e)||e!==void 0&&b3.has(e)}function x3(e){const t=br(e);return t?t.startsWith("vir_")&&t.length>4||RI(t)!==null||xW(t)!==null||kW(t)!==null||OI(t)||MI(t):!1}function Sle(e){const t=br(e.agentIdParam),o=T3(t);return t&&!o?t:br(e.virtualMcpIdSearch)??br(e.fallbackAgentId)}function Fbe(e){const t=e.pathAgentId;if(t&&e.pathLegacyView){const l=JT({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||fle(e.pathname))return null;const o=e.search.virtualmcpid!==void 0&&!x3(t);if(!(T3(t)||o))return null;const n=Sle({agentIdParam:o?void 0:t,virtualMcpIdSearch:e.search.virtualmcpid,fallbackAgentId:e.fallbackAgentId}),i=JT({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 wle(e,t,o,a){const n=br(a);switch(e){case"board":return n?Rl({org:t,agentId:n,tabId:"board"}):{to:Nt.tasks,params:{org:t,taskKey:void 0},search:{}};case"files":{const i=bs(o.path);return{to:Nt.library,params:{org:t},search:i?{path:i}:{}}}case"reports":return n?Rl({org:t,agentId:n,tabId:"reports"}):{to:Nt.reports,params:{org:t},search:{}};case"overview":return{to:Nt.home,params:{org:t},search:{}};case"discover":return{to:Nt.discover,params:{org:t},search:{}};default:return null}}function Fp(e){const t=wle(e.tabId,e.org,e.search,e.agentId);if(t)return t;if(e.tabId==="chat")return Pd(e.org,e.agentId);const o=br(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:{}}:Rl({org:e.org,agentId:o,tabId:e.tabId}):null}function Pd(e,t){const o=br(t);return o?{to:nt.root,params:{org:e,agentId:o},search:{}}:{to:Nt.home,params:{org:e},search:{}}}function Tle(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:{...Zv(o,w3),mainpanel:!1}};if(t==="chat"){const n=Pd(e.org,e.agentId);return{kind:"canonical",route:n,search:{...Cl(o,n),sidepanel:!0,mainpanel:!1}}}const a=Fp({org:e.org,agentId:e.agentId,tabId:t,search:o});return a?{kind:"canonical",route:a,search:Cl(o,a)}:null}function bs(e){return typeof e=="string"&&e.length>0?e:void 0}function JT(e){const t=e.search??{};if((t.main===0||t.main==="0")&&e.panel){const l=JT({...e,search:Zv(t,w3)});return l?.kind!=="canonical"?l:{...l,search:{...l.search,mainpanel:!1}}}if(t.main!==void 0)return Tle({org:e.org,agentId:e.agentId,main:t.main,search:t});const o=br(e.agentId),a=e.panel;if(!a){const l=Pd(e.org,o);return{kind:"canonical",route:l,search:Cl(t,l)}}const n=dle(a,{file:bs(t.file),key:bs(t.key),deck:bs(t.deck),path:bs(t.path),connection:bs(t.connection),tool:bs(t.tool),automation:bs(t.automation)}),i=n?e.source==="project-first"&&n==="overview"&&o?Rl({org:e.org,agentId:o,tabId:n}):Fp({org:e.org,agentId:o,tabId:n,search:t}):Fp({org:e.org,agentId:o,tabId:"",search:t});return i?{kind:"canonical",route:i,search:n==="chat"?{...Cl(t,i),sidepanel:!0,mainpanel:!1}:Cl(t,i)}:null}function jbe(e){const t=e.search??{},o=br(t.virtualmcpid),a=br(e.fallbackAgentId),n=t.main;let i;if(n==="chat")i=Pd(e.org,o);else if(n!==void 0&&n!==0&&n!=="0"){const l=Fp({org:e.org,agentId:o,tabId:n,search:t}),c=!l&&n.trim().length>0&&a?Fp({org:e.org,agentId:a,tabId:n,search:t}):null;i=l??c??{to:Nt.home,params:{org:e.org},search:{}}}else i=Pd(e.org,o);return{route:i,search:{...Cl(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 k3(e,t){if(t.task===void 0)return null;const{task:o,...a}=t;return{taskKey:e??(o.trim()||void 0),search:a}}const xle={contentPageId:$().optional(),contentPath:$().optional(),contentPathTemplate:$().optional(),contentCollection:$().optional(),contentItem:$().optional()},_3=xle,n_={view:$().optional(),group:$().optional(),subgroup:$().optional(),sort:$().optional(),dir:$().optional(),q:$().optional(),assignee:$().optional(),priority:$().optional(),due:$().optional(),tags:$().optional(),repo:$().optional(),sprint:$().optional(),boardOrg:$().optional()},kle=["files","brand","connections","repositories","skills","memory","instructions","general","site"],rv={fileView:co(["all","documents","media"]).catch("all").optional(),modified:co(["any","today","week","month"]).catch("any").optional(),layout:co(["list","grid"]).catch("list").optional(),sort:co(["name","updated","size"]).catch("name").optional(),path:$().optional(),preview:$().optional(),expanded:Cp().optional().catch(void 0),skill:$().optional(),brand:$().optional(),section:co(kle).catch("files").optional(),scope:co(["user"]).optional().catch(void 0),action:co(["create"]).optional().catch(void 0)},_le={file:$().optional(),key:$().optional(),deck:$().optional(),path:$().optional(),connection:$().optional(),tool:$().optional(),automation:$().optional(),section:$().optional(),preview:$().optional(),autosend:$().optional(),connect:Cv().optional(),siteUrl:$().optional(),..._3},C3={..._le,task:$().optional(),project:$().optional(),...n_,skill:rv.skill,brand:rv.brand},im=we(C3),Ka=A8({component:()=>w.jsx(Ose,{children:w.jsx(Rx,{})})}),Cle=De({getParentRoute:()=>Ka,path:"/login",component:Ie(()=>Le(()=>import("./login-DsUB3uQj.js"),__vite__mapDeps([0,1,2,3,4]))),validateSearch:Hr(()=>we({next:$().optional(),client_id:$().optional(),redirect_uri:$().optional(),response_type:$().optional(),state:$().optional(),scope:$().optional(),code_challenge:$().optional(),code_challenge_method:$().optional(),src:$().optional(),ref:$().optional()}))}),Ple=De({getParentRoute:()=>Ka,path:"/cli/auth-success",component:Ie(()=>Le(()=>import("./cli-auth-success-yfNGYJu1.js"),__vite__mapDeps([5,4])))}),Ele=De({getParentRoute:()=>Ka,path:"/reset-password",component:Ie(()=>Le(()=>import("./reset-password-C49JkdXA.js"),[])),validateSearch:Hr(()=>we({token:$().optional(),error:$().optional()}))}),Ale=De({getParentRoute:()=>Ka,path:"/auth/$pathname",component:Ie(()=>Le(()=>import("./auth-catchall-eV8hRYix.js"),[]))}),Rle=De({getParentRoute:()=>Ka,path:"/oauth/callback",component:Ie(()=>Le(()=>import("./oauth-callback-DZJS_AT0.js"),__vite__mapDeps([6,7,8])))}),Dle=De({getParentRoute:()=>Ka,path:"/oauth/callback/ai-provider",component:Ie(()=>Le(()=>import("./oauth-callback-ai-provider-BJubcWsa.js"),[]))}),sm=De({getParentRoute:()=>Ka,path:"/_admin",component:Ie(()=>Le(()=>import("./layout-D-WO_5nK.js"),__vite__mapDeps([9,10,11])))}),Ole=De({getParentRoute:()=>sm,path:"/",beforeLoad:()=>{throw Jo({to:"/_admin/users"})}}),Mle=De({getParentRoute:()=>sm,path:"/users",component:Ie(()=>Le(()=>import("./users-WRigaqVb.js"),__vite__mapDeps([12,13,14,15,16,17,18,19,20,21,22,23,24,25,26])))}),Nle=De({getParentRoute:()=>sm,path:"/orgs",component:Ie(()=>Le(()=>import("./orgs-BV_vEF7j.js"),__vite__mapDeps([27,13,14,15,16,17,18,28,22,29,30,31,32,33,34,21,35,36,23,24,25])))}),Ile=De({getParentRoute:()=>sm,path:"/prompts",component:Ie(()=>Le(()=>import("./prompts-D3kehQbi.js"),__vite__mapDeps([37,16,28,34,23])))}),Lle=sm.addChildren([Ole,Mle,Nle,Ile]),r_=De({getParentRoute:()=>Ka,id:"shell",component:Ie(()=>Le(()=>import("./shell-layout-CCXDhne-.js").then(e=>e.g),__vite__mapDeps([38,19,20,39,40,41,42,43,15,44,45,46,47,48,32,49,50,51,52,53,54,55,56,57,58,59,60,61,18,62,63,64,65,66,67,68,8,69,70,71,72,73,74,75,76,28,77,78,79,3,2,80,81,35,82,83,84,31,85,86,87,22,88,10,89,90,91])))}),Ble=De({getParentRoute:()=>r_,path:"/",beforeLoad:async()=>{const e=Gse();if(e)throw Jo({to:"/$org",params:{org:e.org}});const t=localStorage.getItem(Ll.lastOrgSlug());if(t)throw Jo({to:"/$org",params:{org:t}});const{data:o}=await sL();if(!o)return;const a=o[0];throw Jo(a?{to:"/$org",params:{org:a.slug}}:{to:"/onboarding"})}}),Fle=De({getParentRoute:()=>Ka,path:"/onboarding",beforeLoad:async()=>{const{data:e}=await sL();if(e&&e.length>0)throw Jo({to:"/"})},component:Ie(()=>Le(()=>import("./onboarding-Cd27VqU6.js"),__vite__mapDeps([92,10,4,93,19,20,61,28,33,39,48,54,63])))}),P3=Hr(()=>we({org:$().optional(),siteUrl:$().optional(),fix:$().optional()})),jle=De({getParentRoute:()=>Ka,path:"/reports-onboarding",component:Ie(()=>Le(()=>import("./reports-onboarding-CZWTNr3A.js"),__vite__mapDeps([94,95,1,2,3,4,93,19,20,61,96,97,98,28,99,68,8,100,74,45,41,42,43,15,44,46,47,39,48,32,49,40,50,51,52,53,54,55,56,57,58,59,60,18,62,63,64,65,84,31,101,102,103,22,104,105,106,107,7,108,109,110,111,112,113]))),validateSearch:P3}),zle=De({getParentRoute:()=>Ka,path:"/commerce-onboarding",validateSearch:P3,beforeLoad:({search:e})=>{throw Jo({to:"/reports-onboarding",search:e})}}),Ule=De({getParentRoute:()=>Ka,path:"/choose-editor",component:Ie(()=>Le(()=>import("./choose-editor-Dl5YQ9PQ.js"),__vite__mapDeps([114,41,42,43,15,44,45,46,47,39,48,32,49,40,50,51,52,53,54,55,56,57,58,59,60,61,18,62,63,20,64,65,10]))),validateSearch:Hr(()=>we({site:$().optional(),domain:$().optional(),pageId:$().optional(),path:$().optional(),pathTemplate:$().optional()}))}),i_=De({getParentRoute:()=>Ka,path:"/site-editor",staticData:{pageTitle:"sidebar.projectNav.siteEditor"},component:Ie(()=>Le(()=>import("./site-editor-Dgv3Mgur.js"),__vite__mapDeps([115,116,69,70,66,67,68,8,89,79,3,2,80,81,35,82,117,118,119,88,120,121,122,123,41,42,43,15,44,45,46,47,39,48,32,49,40,50,51,52,53,54,55,56,57,58,59,60,61,18,62,63,20,64,65,84,31,124,38,19,71,72,73,74,75,76,28,77,78,83,85,86,87,22,10,90,91,125,126,127,128,129,130,96,97,98,131,132,133,134,135,36,136,137,138,139,140,141,142,143,144,24,25,145,146,147,29,30,148,149,150,151,152,153,154,155,156,157,158,159,160,161,162,163,164,165,166,109,102,110,111,167,168,34,169,170,171,106,107,7,172,21,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,33,193,194,195,196,197,198,199,17,200,16,201,202,203,204,105,205,206,207,208,209,210,211,212,213,214,215,216,217,218,219,220,221])))}),qle=De({getParentRoute:()=>i_,path:"/",staticData:{mainView:"site-editor",siteEditorView:"preview",local:!0},component:Ie(()=>Le(()=>import("./site-editor-Dgv3Mgur.js"),__vite__mapDeps([115,116,69,70,66,67,68,8,89,79,3,2,80,81,35,82,117,118,119,88,120,121,122,123,41,42,43,15,44,45,46,47,39,48,32,49,40,50,51,52,53,54,55,56,57,58,59,60,61,18,62,63,20,64,65,84,31,124,38,19,71,72,73,74,75,76,28,77,78,83,85,86,87,22,10,90,91,125,126,127,128,129,130,96,97,98,131,132,133,134,135,36,136,137,138,139,140,141,142,143,144,24,25,145,146,147,29,30,148,149,150,151,152,153,154,155,156,157,158,159,160,161,162,163,164,165,166,109,102,110,111,167,168,34,169,170,171,106,107,7,172,21,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,33,193,194,195,196,197,198,199,17,200,16,201,202,203,204,105,205,206,207,208,209,210,211,212,213,214,215,216,217,218,219,220,221])),"SiteEditorPreview")}),$le=De({getParentRoute:()=>i_,path:"/content",staticData:{mainView:"content",siteEditorView:"content",local:!0},component:Ie(()=>Le(()=>import("./site-editor-Dgv3Mgur.js"),__vite__mapDeps([115,116,69,70,66,67,68,8,89,79,3,2,80,81,35,82,117,118,119,88,120,121,122,123,41,42,43,15,44,45,46,47,39,48,32,49,40,50,51,52,53,54,55,56,57,58,59,60,61,18,62,63,20,64,65,84,31,124,38,19,71,72,73,74,75,76,28,77,78,83,85,86,87,22,10,90,91,125,126,127,128,129,130,96,97,98,131,132,133,134,135,36,136,137,138,139,140,141,142,143,144,24,25,145,146,147,29,30,148,149,150,151,152,153,154,155,156,157,158,159,160,161,162,163,164,165,166,109,102,110,111,167,168,34,169,170,171,106,107,7,172,21,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,33,193,194,195,196,197,198,199,17,200,16,201,202,203,204,105,205,206,207,208,209,210,211,212,213,214,215,216,217,218,219,220,221])),"SiteEditorContent")}),Vle=De({getParentRoute:()=>Ka,path:"/report/$domain",component:Ie(()=>Le(()=>import("./reports-C4Lk2vHf.js"),__vite__mapDeps([222,108,3,1,2,223])))}),Qv=De({getParentRoute:()=>r_,path:"/$org",beforeLoad:({params:e})=>{Hse({org:e.org})},component:Ie(()=>Le(()=>import("./route-BmBKnc7t.js"),__vite__mapDeps([224,127,122,123,70,69,66,67,68,8,79,3,2,80,81,35,82,41,42,43,15,44,45,46,47,39,48,32,49,40,50,51,52,53,54,55,56,57,58,59,60,61,18,62,63,20,64,65,84,31,124,38,19,71,72,73,74,75,76,28,77,78,83,85,86,87,22,88,10,89,90,91,121,125,128,129,130,96,97,98,131,132,133,134,135,36,136,155,156,11,225,29,30,34,163,226,149,118,117,165,193,227,228,229,175,230,26,24,25,21,231,232,233,214,213,234,153,145,33,161])))}),Jv=De({getParentRoute:()=>Qv,id:"org-shell",pendingComponent:Nd,component:Ie(()=>Le(()=>import("./thread-route-_azg3sPx.js"),__vite__mapDeps([235,116,69,70,66,67,68,8,89,79,3,2,80,81,35,82,117,118,119,88,95,236,101,102,103,45,99,100,74,41,42,43,15,44,46,47,39,48,32,49,40,50,51,52,53,54,55,56,57,58,59,60,61,18,62,63,20,64,65,84,31,98,28,22,104,105,106,107,7,108,109,110,111,237,112])))}),Hle=we({sidepanel:EL,mainpanel:AL,main:io([$(),Ze(0)]).optional(),thread:$().optional(),autosend:$().optional(),preview:$().optional(),virtualmcpid:$().optional()}),Ya=De({getParentRoute:()=>Jv,id:"agent-shell",validateSearch:Hle,search:{middlewares:[XU(["sidepanel"])]},pendingComponent:Nd,component:Ie(()=>Le(()=>import("./route-CBMvGMnA.js"),__vite__mapDeps([238,42,41,43,15,44,45,46,47,39,48,32,49,40,50,51,52,53,54,55,56,57,58,59,60,61,18,62,63,20,64,65,122,123,70,69,66,67,68,8,79,3,2,80,81,35,82,84,31,124,38,19,71,72,73,74,75,76,28,77,78,83,85,86,87,22,88,10,89,90,91,121,125,179,116,117,118,119,177,141,156,159,140,98,142,143,144,24,25,139,145,146,147,29,30,148,149,150,151,152,153,154,155,157,158,160,161,162,163,164,165,166,109,102,110,111,167,168,34,169,170,171,106,107,7,172,21,173,174,175,176,180,181,182,183,184,185,186,135,217,218,201,190,16,120,126,239,240,241,214,208,207,132,133,134,36,206,213,131,242,243,244,245,246,178,195,137])))}),Gle=im.extend({virtualmcpid:$().optional()}),Wle=De({getParentRoute:()=>Ya,path:"/$taskId",validateSearch:Gle,component:()=>null}),Ft=Ie(()=>Le(()=>import("./index-B95goRjI.js").then(e=>e.i),__vite__mapDeps([120,121,122,123,70,69,66,67,68,8,79,3,2,80,81,35,82,41,42,43,15,44,45,46,47,39,48,32,49,40,50,51,52,53,54,55,56,57,58,59,60,61,18,62,63,20,64,65,84,31,124,38,19,71,72,73,74,75,76,28,77,78,83,85,86,87,22,88,10,89,90,91,125,126])),"ChatLayoutPending"),It=Ie(()=>Le(()=>import("./index-B95goRjI.js").then(e=>e.i),__vite__mapDeps([120,121,122,123,70,69,66,67,68,8,79,3,2,80,81,35,82,41,42,43,15,44,45,46,47,39,48,32,49,40,50,51,52,53,54,55,56,57,58,59,60,61,18,62,63,20,64,65,84,31,124,38,19,71,72,73,74,75,76,28,77,78,83,85,86,87,22,88,10,89,90,91,125,126])),"ChatLayoutError"),Kle=De({pendingComponent:Ft,errorComponent:It,getParentRoute:()=>Ya,path:"/home",staticData:{pageTitle:"sidebar.navDestinations.home",defaultMain:"overview",mainView:"overview"},validateSearch:we({connect:Cv().optional(),siteUrl:$().optional()}),component:Ie(()=>Le(()=>import("./home-CRzzoJc4.js"),__vite__mapDeps([247,120,121,122,123,70,69,66,67,68,8,79,3,2,80,81,35,82,41,42,43,15,44,45,46,47,39,48,32,49,40,50,51,52,53,54,55,56,57,58,59,60,61,18,62,63,20,64,65,84,31,124,38,19,71,72,73,74,75,76,28,77,78,83,85,86,87,22,88,10,89,90,91,125,126,139,140,141,98,142,143,144,119,24,25,117,116,118,145,146,147,29,30,148,149,150,151,152,153,154,155,156,157,158,159,160,161,162,163,164,165,166,109,102,110,111,167,168,34,169,170,171,106,107,7,172,21,173,174,175,176,248,249,229,230,128,250,251,252,253,131,132,133,134,135,36,26,234,228,254,255,256,257,258,259,260,261,262,227,136,16,232])))}),Yle=De({getParentRoute:()=>Ya,path:"/projects",staticData:{pageTitle:"projects.settings.title",defaultMain:"board"},validateSearch:im.extend({files:Cp().optional().catch(void 0),analytics:Cp().optional().catch(void 0)}),component:Ie(()=>Le(()=>import("./flat-project-B6LNuW-w.js"),__vite__mapDeps([263,41,42,43,15,44,45,46,47,39,48,32,49,40,50,51,52,53,54,55,56,57,58,59,60,61,18,62,63,20,64,65,198,84,31,120,121,122,123,70,69,66,67,68,8,79,3,2,80,81,35,82,124,38,19,71,72,73,74,75,76,28,77,78,83,85,86,87,22,88,10,89,90,91,125,126,131,132,133,134,135,36,262,264,128,129,265,199,155,140,141,98,142,143,144,119,24,25,117,116,118,158,266,21,145,33,34,160,267,26,268,229,175,230,162,163,29,30,234,228,261,269,196,192,181,270,197,271,190,272,169,103,273,174,180,182,183,184,185,159,186,146,173,239,151,147,216,274,172,275,193,276,250,251,252,253,14,256,257,258,259,260,255,277,278,17,97,279,245,243,244,246,178,195,280,212,281]))),beforeLoad:({params:e,search:t})=>{if(t.project?.trim())return;const o=t.virtualmcpid?.trim();throw Jo(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})}}),mo=De({errorComponent:It,getParentRoute:()=>Ya,path:"/projects/$agentId",validateSearch:im,component:Rx}),Zle=De({pendingComponent:Ft,errorComponent:It,getParentRoute:()=>mo,path:"/",staticData:{pageTitle:"page.overview",defaultMain:"overview",mainView:"overview"},component:Ie(()=>Le(()=>import("./agent-overview-yYINKyA5.js"),__vite__mapDeps([282,120,121,122,123,70,69,66,67,68,8,79,3,2,80,81,35,82,41,42,43,15,44,45,46,47,39,48,32,49,40,50,51,52,53,54,55,56,57,58,59,60,61,18,62,63,20,64,65,84,31,124,38,19,71,72,73,74,75,76,28,77,78,83,85,86,87,22,88,10,89,90,91,125,126,116,117,118,119,139,140,141,98,142,143,144,24,25,145,146,147,29,30,148,149,150,151,152,153,154,155,156,157,158,159,160,161,162,163,164,165,166,109,102,110,111,167,168,34,169,170,171,106,107,7,172,21,173,174,175,176,248,249,229,230,128,250,251,252,253,131,132,133,134,135,36,26,234,228,254,255,256,257,258,259,260,261,227,236,101,103,283])))}),Qle=De({pendingComponent:Ft,errorComponent:It,getParentRoute:()=>mo,path:"/tasks/{-$taskKey}",staticData:{pageTitle:"sidebar.navDestinations.tasks",defaultMain:"board",mainView:"board"},validateSearch:we({task:$().optional(),...n_}),beforeLoad:({params:e,search:t})=>{const o=k3(e.taskKey,t);if(o)throw Jo({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:Ie(()=>Le(()=>import("./project-tasks-WMe77gba.js"),__vite__mapDeps([284,120,121,122,123,70,69,66,67,68,8,79,3,2,80,81,35,82,41,42,43,15,44,45,46,47,39,48,32,49,40,50,51,52,53,54,55,56,57,58,59,60,61,18,62,63,20,64,65,84,31,124,38,19,71,72,73,74,75,76,28,77,78,83,85,86,87,22,88,10,89,90,91,125,126,264,128,129,265,199,155,140,141,98,142,143,144,119,24,25,117,116,118,158,266,21,145,33,34,160,267,26,268,229,175,230,162,163,29,30,234,228,261,269,196,192,181,270,197,271,190,272,169,103,273,174,180,182,183,184,185,159,186,146,173,239,151,147,216,285,164,165,286])))}),Jle=De({pendingComponent:Ft,errorComponent:It,getParentRoute:()=>mo,path:"/reports",staticData:{pageTitle:"sidebar.navDestinations.reports",defaultMain:"reports",mainView:"reports"},validateSearch:we({connect:Cv().optional(),siteUrl:$().optional()}),component:Ie(()=>Le(()=>import("./project-reports-D49xSOrs.js"),__vite__mapDeps([287,120,121,122,123,70,69,66,67,68,8,79,3,2,80,81,35,82,41,42,43,15,44,45,46,47,39,48,32,49,40,50,51,52,53,54,55,56,57,58,59,60,61,18,62,63,20,64,65,84,31,124,38,19,71,72,73,74,75,76,28,77,78,83,85,86,87,22,88,10,89,90,91,125,126,288,95,236,101,102,103,283,112,113,262,232])))}),Xv=De({pendingComponent:Ft,errorComponent:It,getParentRoute:()=>mo,path:"/site-editor",staticData:{pageTitle:"sidebar.projectNav.siteEditor",defaultMain:"site-editor",mainView:"site-editor"},validateSearch:we({autosend:$().optional(),..._3}),component:Ie(()=>Le(()=>import("./agent-site-editor-ucf0POve.js"),__vite__mapDeps([215,216,116,69,70,66,67,68,8,89,79,3,2,80,81,35,82,117,118,119,88,138,139,140,141,98,28,142,143,144,50,47,121,84,31,41,42,43,15,44,45,46,39,48,32,49,40,51,52,53,54,55,56,57,58,59,60,61,18,62,63,20,64,65,24,25,145,146,38,19,71,72,73,74,75,76,77,78,83,85,86,87,22,10,90,91,147,29,30,148,149,150,151,152,153,154,155,156,157,158,159,160,161,162,163,164,165,166,109,102,110,111,167,168,34,169,170,171,106,107,7,172,21,173,174,175,123,176,135,177,178,179,180,181,182,183,184,185,125,186,187,124,97,217,218,206,204,203,191,192,205,195,211,219,220,201,190,120,122,126,221])))}),Xle=De({getParentRoute:()=>Xv,path:"/",staticData:{defaultMain:"site-editor",mainView:"site-editor",siteEditorView:"preview"},component:Ie(()=>Le(()=>import("./agent-site-editor-preview-sckNqSpj.js"),__vite__mapDeps([289,290,240,123,70,69,66,67,68,8,79,3,2,80,81,35,82,41,42,43,15,44,45,46,47,39,48,32,49,40,50,51,52,53,54,55,56,57,58,59,60,61,18,62,63,20,64,65,169,241,184,142,135,179,116,89,117,118,119,88,177,141,84,31,156,87,121,159,140,98,28,143,144,24,25,139,145,146,38,19,71,72,73,74,75,76,77,78,83,85,86,22,10,90,91,147,29,30,148,149,150,151,152,153,154,155,157,158,160,161,162,163,164,165,166,109,102,110,111,167,168,34,170,171,106,107,7,172,21,173,174,175,176,180,181,182,183,185,125,186,214,208,207,132,133,134,36,206,285,188,189,138,178,187,190,191,192,33,193,194,195,196,197,128,129,198,199,97,17,200,16,201,124,202,203,204,105,137,126,205])))}),ece=De({getParentRoute:()=>Xv,path:"/content",staticData:{defaultMain:"content",mainView:"content",siteEditorView:"content"},component:Ie(()=>Le(()=>import("./agent-site-editor-content-DyDxJPiY.js"),__vite__mapDeps([291,290,240,123,70,69,66,67,68,8,79,3,2,80,81,35,82,41,42,43,15,44,45,46,47,39,48,32,49,40,50,51,52,53,54,55,56,57,58,59,60,61,18,62,63,20,64,65,169,241,184,142,135,179,116,89,117,118,119,88,177,141,84,31,156,87,121,159,140,98,28,143,144,24,25,139,145,146,38,19,71,72,73,74,75,76,77,78,83,85,86,22,10,90,91,147,29,30,148,149,150,151,152,153,154,155,157,158,160,161,162,163,164,165,166,109,102,110,111,167,168,34,170,171,106,107,7,172,21,173,174,175,176,180,181,182,183,185,125,186,214,208,207,132,133,134,36,206,285,209,97,193,138,178,187,189,190,191,192,33,194,195,196,197,128,129,198,199,17,200,16,210,211,201,212])))}),tce=De({getParentRoute:()=>Xv,path:"/code",staticData:{defaultMain:"code",mainView:"code",siteEditorView:"code"},validateSearch:we({file:$().optional()}),component:Ie(()=>Le(()=>import("./agent-site-editor-code-CTL6nplL.js"),__vite__mapDeps([292,290,240,123,70,69,66,67,68,8,79,3,2,80,81,35,82,41,42,43,15,44,45,46,47,39,48,32,49,40,50,51,52,53,54,55,56,57,58,59,60,61,18,62,63,20,64,65,169,241,184,142,135,179,116,89,117,118,119,88,177,141,84,31,156,87,121,159,140,98,28,143,144,24,25,139,145,146,38,19,71,72,73,74,75,76,77,78,83,85,86,22,10,90,91,147,29,30,148,149,150,151,152,153,154,155,157,158,160,161,162,163,164,165,166,109,102,110,111,167,168,34,170,171,106,107,7,172,21,173,174,175,176,180,181,182,183,185,125,186,214,208,207,132,133,134,36,206,285,16])))}),oce=De({pendingComponent:Ft,errorComponent:It,getParentRoute:()=>mo,path:"/automations",staticData:{pageTitle:"settings.nav.automations",defaultMain:"automations",mainView:"automations"},beforeLoad:({params:e,search:t})=>{const o=t.automation;if(o)throw Jo({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:Ie(()=>Le(()=>import("./agent-automations-DzZ1KR2l.js"),__vite__mapDeps([293,120,121,122,123,70,69,66,67,68,8,79,3,2,80,81,35,82,41,42,43,15,44,45,46,47,39,48,32,49,40,50,51,52,53,54,55,56,57,58,59,60,61,18,62,63,20,64,65,84,31,124,38,19,71,72,73,74,75,76,28,77,78,83,85,86,87,22,88,10,89,90,91,125,126,17,16,267,294,21,97])))}),ace=De({pendingComponent:Ft,errorComponent:It,getParentRoute:()=>mo,path:"/automations/$automationId",staticData:{pageTitle:"settings.nav.automations",defaultMain:"automations",mainView:"automation"},validateSearch:we({automationView:co(["settings","runs"]).optional()}),component:Ie(()=>Le(()=>import("./agent-automation-KIw24kwd.js"),__vite__mapDeps([295,120,121,122,123,70,69,66,67,68,8,79,3,2,80,81,35,82,41,42,43,15,44,45,46,47,39,48,32,49,40,50,51,52,53,54,55,56,57,58,59,60,61,18,62,63,20,64,65,84,31,124,38,19,71,72,73,74,75,76,28,77,78,83,85,86,87,22,88,10,89,90,91,125,126,21,153,33,155,141,169,241,296,156,116,117,118,119,152,29,30,154,297,267,181,298,157,158,140,98,142,143,144,24,25,159,160,299,230,128,300,148,194,195,97,301,14,16,173,162,163,239,273,174,180,182,183,184,185,186,146,172])))}),nce=De({pendingComponent:Ft,errorComponent:It,getParentRoute:()=>mo,path:"/settings",staticData:{pageTitle:"sidebar.navDestinations.settings",defaultMain:"settings",mainView:"settings"},component:Ie(()=>Le(()=>import("./agent-settings-CsjZAmMJ.js"),__vite__mapDeps([302,120,121,122,123,70,69,66,67,68,8,79,3,2,80,81,35,82,41,42,43,15,44,45,46,47,39,48,32,49,40,50,51,52,53,54,55,56,57,58,59,60,61,18,62,63,20,64,65,84,31,124,38,19,71,72,73,74,75,76,28,77,78,83,85,86,87,22,88,10,89,90,91,125,126,303,304,109,102,110,111,116,117,118,119,297,16,305,25,107,7,97,34,169,298,166,167,168,156,98,29,30,170,171,106,172,21,173,174,146,160,153,17,306,184,241,159,142,33,155,193,135,132,133,134,36,233,307,24,144,206,177,308,309,185,218])))}),rce=De({pendingComponent:Ft,errorComponent:It,getParentRoute:()=>mo,path:"/library",staticData:{pageTitle:"sidebar.navDestinations.library",defaultMain:"files",mainView:"files"},validateSearch:we(rv),component:Ie(()=>Le(()=>import("./agent-library-e6Q9kL87.js"),__vite__mapDeps([310,120,121,122,123,70,69,66,67,68,8,79,3,2,80,81,35,82,41,42,43,15,44,45,46,47,39,48,32,49,40,50,51,52,53,54,55,56,57,58,59,60,61,18,62,63,20,64,65,84,31,124,38,19,71,72,73,74,75,76,28,77,78,83,85,86,87,22,88,10,89,90,91,125,126,278,145,17,268,97,119,116,117,118,160,279,34,143,144,245,155,243,244,246,178,195,146,280,212,198,24,25,14,162,163,281,311,312,313,314,307,16,304,109,102,110,111,297,305,107,7,169,298,166,167,168,156,98,29,30,170,171,106,172,21,173,174,153,306,184,241,159,142,33,193,135,132,133,134,36,233,206,177,308,309,185,218])))}),ice=De({pendingComponent:Ft,errorComponent:It,getParentRoute:()=>mo,path:"/assets",staticData:{pageTitle:"common.mainPanelTabs.assets",defaultMain:"assets",mainView:"assets"},component:Ie(()=>Le(()=>import("./agent-assets-Nmgl0Bht.js"),__vite__mapDeps([315,120,121,122,123,70,69,66,67,68,8,79,3,2,80,81,35,82,41,42,43,15,44,45,46,47,39,48,32,49,40,50,51,52,53,54,55,56,57,58,59,60,61,18,62,63,20,64,65,84,31,124,38,19,71,72,73,74,75,76,28,77,78,83,85,86,87,22,88,10,89,90,91,125,126,290,240,169,241,184,142,135,179,116,117,118,119,177,141,156,159,140,98,143,144,24,25,139,145,146,147,29,30,148,149,150,151,152,153,154,155,157,158,160,161,162,163,164,165,166,109,102,110,111,167,168,34,170,171,106,107,7,172,21,173,174,175,176,180,181,182,183,185,186,214,208,207,132,133,134,36,206,97,17,200])))}),sce=De({pendingComponent:Ft,errorComponent:It,getParentRoute:()=>mo,path:"/releases",staticData:{pageTitle:"common.mainPanelTabs.releases",defaultMain:"releases",mainView:"releases"},component:Ie(()=>Le(()=>import("./agent-releases-DsfoHksu.js"),__vite__mapDeps([316,120,121,122,123,70,69,66,67,68,8,79,3,2,80,81,35,82,41,42,43,15,44,45,46,47,39,48,32,49,40,50,51,52,53,54,55,56,57,58,59,60,61,18,62,63,20,64,65,84,31,124,38,19,71,72,73,74,75,76,28,77,78,83,85,86,87,22,88,10,89,90,91,125,126,290,240,169,241,184,142,135,179,116,117,118,119,177,141,156,159,140,98,143,144,24,25,139,145,146,147,29,30,148,149,150,151,152,153,154,155,157,158,160,161,162,163,164,165,166,109,102,110,111,167,168,34,170,171,106,107,7,172,21,173,174,175,176,180,181,182,183,185,186,214,208,207,132,133,134,36,206,97,138,178,187,219,211])))}),lce=De({pendingComponent:Ft,errorComponent:It,getParentRoute:()=>mo,path:"/hosting",staticData:{pageTitle:"common.mainPanelTabs.hosting",defaultMain:"hosting",mainView:"hosting"},component:Ie(()=>Le(()=>import("./agent-hosting-BPzlodMl.js"),__vite__mapDeps([317,120,121,122,123,70,69,66,67,68,8,79,3,2,80,81,35,82,41,42,43,15,44,45,46,47,39,48,32,49,40,50,51,52,53,54,55,56,57,58,59,60,61,18,62,63,20,64,65,84,31,124,38,19,71,72,73,74,75,76,28,77,78,83,85,86,87,22,88,10,89,90,91,125,126,21,212,36,97,145,14,181,29,30,303,304,109,102,110,111,116,117,118,119,297,16,305,25,107,7,34,169,298,166,167,168,156,98,170,171,106,172,173,174,146,160,153,17,306,184,241,159,142,33,155,193,135,132,133,134,233,307,24,144,206,177,308,309,185,218])))}),cce=De({pendingComponent:Ft,errorComponent:It,getParentRoute:()=>mo,path:"/e2e",staticData:{pageTitle:"common.mainPanelTabs.e2e",defaultMain:"e2e",mainView:"e2e"},component:Ie(()=>Le(()=>import("./agent-e2e-jRzRvCKY.js"),__vite__mapDeps([318,120,121,122,123,70,69,66,67,68,8,79,3,2,80,81,35,82,41,42,43,15,44,45,46,47,39,48,32,49,40,50,51,52,53,54,55,56,57,58,59,60,61,18,62,63,20,64,65,84,31,124,38,19,71,72,73,74,75,76,28,77,78,83,85,86,87,22,88,10,89,90,91,125,126,21,97,29,30,14,212,36,181,148,303,304,109,102,110,111,116,117,118,119,297,16,305,25,107,7,34,169,298,166,167,168,156,98,170,171,106,172,173,174,146,160,153,17,306,184,241,159,142,33,155,193,135,132,133,134,233,307,24,144,206,177,308,309,185,218])))}),dce=De({pendingComponent:Ft,errorComponent:It,getParentRoute:()=>mo,path:"/analytics",staticData:{pageTitle:"common.mainPanelTabs.analytics",defaultMain:"analytics",mainView:"analytics"},validateSearch:we({view:$().optional()}),component:Ie(()=>Le(()=>import("./agent-analytics-BsXr7E0h.js"),__vite__mapDeps([319,120,121,122,123,70,69,66,67,68,8,79,3,2,80,81,35,82,41,42,43,15,44,45,46,47,39,48,32,49,40,50,51,52,53,54,55,56,57,58,59,60,61,18,62,63,20,64,65,84,31,124,38,19,71,72,73,74,75,76,28,77,78,83,85,86,87,22,88,10,89,90,91,125,126,21,153,14,250,251,252,253,97,212,36,277,255,303,304,109,102,110,111,116,117,118,119,297,16,305,25,107,7,34,169,298,166,167,168,156,98,29,30,170,171,106,172,173,174,146,160,17,306,184,241,159,142,33,155,193,135,132,133,134,233,307,24,144,206,177,308,309,185,218])))}),uce=De({pendingComponent:Ft,errorComponent:It,getParentRoute:()=>mo,path:"/taskboard-analytics",staticData:{pageTitle:"taskBoard.analytics.title",defaultMain:"board",mainView:"board"},component:Ie(()=>Le(()=>import("./taskboard-analytics-Cc7xLiYJ.js"),__vite__mapDeps([320,120,121,122,123,70,69,66,67,68,8,79,3,2,80,81,35,82,41,42,43,15,44,45,46,47,39,48,32,49,40,50,51,52,53,54,55,56,57,58,59,60,61,18,62,63,20,64,65,84,31,124,38,19,71,72,73,74,75,76,28,77,78,83,85,86,87,22,88,10,89,90,91,125,126,274,172,21,265,275,155,193,30,196,276,250,251,252,253,14,198,24,25,230,128,256,257,258,259,260,255,277,234,228,199])))}),pce=De({pendingComponent:Ft,errorComponent:It,getParentRoute:()=>mo,path:"/experiments",staticData:{pageTitle:"common.mainPanelTabs.experiments",defaultMain:"experiments",mainView:"experiments"},validateSearch:we({ui:Ze("legacy").optional()}),component:Ie(()=>Le(()=>import("./agent-experiments-B-k5fGOU.js"),__vite__mapDeps([321,120,121,122,123,70,69,66,67,68,8,79,3,2,80,81,35,82,41,42,43,15,44,45,46,47,39,48,32,49,40,50,51,52,53,54,55,56,57,58,59,60,61,18,62,63,20,64,65,84,31,124,38,19,71,72,73,74,75,76,28,77,78,83,85,86,87,22,88,10,89,90,91,125,126,21,14,29,30,212,36,145,322,323,34,97,268,272,257,253,251,258,259,252,303,304,109,102,110,111,116,117,118,119,297,16,305,25,107,7,169,298,166,167,168,156,98,170,171,106,172,173,174,146,160,153,17,306,184,241,159,142,33,155,193,135,132,133,134,233,307,24,144,206,177,308,309,185,218])))}),mce=De({pendingComponent:Ft,errorComponent:It,getParentRoute:()=>mo,path:"/cdn",staticData:{pageTitle:"common.mainPanelTabs.cdn",defaultMain:"cdn",mainView:"cdn"},component:Ie(()=>Le(()=>import("./agent-monitor-CIHPsQTo.js"),__vite__mapDeps([324,120,121,122,123,70,69,66,67,68,8,79,3,2,80,81,35,82,41,42,43,15,44,45,46,47,39,48,32,49,40,50,51,52,53,54,55,56,57,58,59,60,61,18,62,63,20,64,65,84,31,124,38,19,71,72,73,74,75,76,28,77,78,83,85,86,87,22,88,10,89,90,91,125,126,250,251,252,253,212,155,36,135,277,255,254,325,21,260,258,259,303,304,109,102,110,111,116,117,118,119,297,16,305,25,107,7,97,34,169,298,166,167,168,156,98,29,30,170,171,106,172,173,174,146,160,153,17,306,184,241,159,142,33,193,132,133,134,233,307,24,144,206,177,308,309,185,218,285,164,165])))}),hce=De({pendingComponent:Ft,errorComponent:It,getParentRoute:()=>mo,path:"/apps/$connectionId/$toolName",staticData:{pageTitle:"page.app",defaultMain:"app",mainView:"app"},component:Ie(()=>Le(()=>import("./agent-app-CScNEVjT.js"),__vite__mapDeps([326,120,121,122,123,70,69,66,67,68,8,79,3,2,80,81,35,82,41,42,43,15,44,45,46,47,39,48,32,49,40,50,51,52,53,54,55,56,57,58,59,60,61,18,62,63,20,64,65,84,31,124,38,19,71,72,73,74,75,76,28,77,78,83,85,86,87,22,88,10,89,90,91,125,126,208,327,141,241,182,183,184,116,117,118,119,234,228,128,95,100,101,102,103,98,104,105,106,107,7,108,109,110,111])))}),gce=De({pendingComponent:Ft,errorComponent:It,getParentRoute:()=>mo,path:"/views/$viewId",staticData:{pageTitle:"page.view",defaultMain:"view",mainView:"view"},component:Ie(()=>Le(()=>import("./agent-view-CSLmaEfT.js"),__vite__mapDeps([328,120,121,122,123,70,69,66,67,68,8,79,3,2,80,81,35,82,41,42,43,15,44,45,46,47,39,48,32,49,40,50,51,52,53,54,55,56,57,58,59,60,61,18,62,63,20,64,65,84,31,124,38,19,71,72,73,74,75,76,28,77,78,83,85,86,87,22,88,10,89,90,91,125,126,327,141,241,182,183,184,116,117,118,119,234,228,128,95,100,101,102,103,98,104,105,106,107,7,108,109,110,111,303,304,297,16,305,25,97,34,169,298,166,167,168,156,29,30,170,171,172,21,173,174,146,160,153,17,306,159,142,33,155,193,135,132,133,134,36,233,307,24,144,206,177,308,309,185,218])))}),fce=De({pendingComponent:Ft,errorComponent:It,getParentRoute:()=>mo,path:"/outputs/file",staticData:{pageTitle:"page.file",defaultMain:"file",mainView:"file"},validateSearch:we({key:$().optional()}),component:Ie(()=>Le(()=>import("./agent-file-alt93QCe.js"),__vite__mapDeps([329,120,121,122,123,70,69,66,67,68,8,79,3,2,80,81,35,82,41,42,43,15,44,45,46,47,39,48,32,49,40,50,51,52,53,54,55,56,57,58,59,60,61,18,62,63,20,64,65,84,31,124,38,19,71,72,73,74,75,76,28,77,78,83,85,86,87,22,88,10,89,90,91,125,126,146,246,160,178,195,143,144,119,186,116,117,118,303,304,109,102,110,111,297,16,305,25,107,7,97,34,169,298,166,167,168,156,98,29,30,170,171,106,172,21,173,174,153,17,306,184,241,159,142,33,155,193,135,132,133,134,36,233,307,24,206,177,308,309,185,218])))}),vce=De({pendingComponent:Ft,errorComponent:It,getParentRoute:()=>mo,path:"/outputs/deck",staticData:{pageTitle:"page.document",defaultMain:"deck",mainView:"deck"},validateSearch:we({path:$().optional()}),component:Ie(()=>Le(()=>import("./agent-deck-DnVf6eXY.js"),__vite__mapDeps([330,120,121,122,123,70,69,66,67,68,8,79,3,2,80,81,35,82,41,42,43,15,44,45,46,47,39,48,32,49,40,50,51,52,53,54,55,56,57,58,59,60,61,18,62,63,20,64,65,84,31,124,38,19,71,72,73,74,75,76,28,77,78,83,85,86,87,22,88,10,89,90,91,125,126,245,160,155,303,304,109,102,110,111,116,117,118,119,297,16,305,25,107,7,97,34,169,298,166,167,168,156,98,29,30,170,171,106,172,21,173,174,146,153,17,306,184,241,159,142,33,193,135,132,133,134,36,233,307,24,144,206,177,308,309,185,218])))}),bce=De({pendingComponent:Ft,errorComponent:It,getParentRoute:()=>mo,path:"/library/file",staticData:{pageTitle:"page.file",defaultMain:"library-file",mainView:"library-file"},validateSearch:we({path:$().optional()}),component:Ie(()=>Le(()=>import("./agent-library-file-DuAVI14c.js"),__vite__mapDeps([331,120,121,122,123,70,69,66,67,68,8,79,3,2,80,81,35,82,41,42,43,15,44,45,46,47,39,48,32,49,40,50,51,52,53,54,55,56,57,58,59,60,61,18,62,63,20,64,65,84,31,124,38,19,71,72,73,74,75,76,28,77,78,83,85,86,87,22,88,10,89,90,91,125,126,332,244,145,245,160,155,246,178,195,146,143,144,119,303,304,109,102,110,111,116,117,118,297,16,305,25,107,7,97,34,169,298,166,167,168,156,98,29,30,170,171,106,172,21,173,174,153,17,306,184,241,159,142,33,193,135,132,133,134,36,233,307,24,206,177,308,309,185,218])))}),yce=De({pendingComponent:Ft,errorComponent:It,getParentRoute:()=>mo,path:"/connect-sources",staticData:{pageTitle:"settings.nav.connect",defaultMain:"connect-sources",mainView:"connect-sources"},component:Ie(()=>Le(()=>import("./agent-connect-sources-CS1Fawlh.js"),__vite__mapDeps([333,120,121,122,123,70,69,66,67,68,8,79,3,2,80,81,35,82,41,42,43,15,44,45,46,47,39,48,32,49,40,50,51,52,53,54,55,56,57,58,59,60,61,18,62,63,20,64,65,84,31,124,38,19,71,72,73,74,75,76,28,77,78,83,85,86,87,22,88,10,89,90,91,125,126,99,95,100,101,102,103,98,104,105,106,107,7,108,109,110,111,237,112])))}),Sce=De({getParentRoute:()=>mo,path:"/$legacyView",component:()=>null}),wce=De({getParentRoute:()=>Ya,path:"/agents",validateSearch:im,beforeLoad:({params:e,search:t})=>{const o=t.virtualmcpid?.trim();throw Jo(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})}}),Tce=De({getParentRoute:()=>Ya,path:"/agents/$",validateSearch:im,beforeLoad:({params:e,location:t})=>{const o=e._splat?.split("/").find(Boolean);if(!x3(o))return;const a=gle(t.pathname);if(!a)return;const n=t.hash?`#${t.hash}`:"";throw Jo({href:`${a}${t.searchStr}${n}`,replace:!0})},component:Ie(()=>Le(()=>import("./legacy-agents-deep-Byg7XYZi.js"),__vite__mapDeps([334,242,70])))}),xce=De({pendingComponent:Ft,errorComponent:It,getParentRoute:()=>Ya,path:"/tasks/{-$taskKey}",staticData:{pageTitle:"sidebar.navDestinations.tasks",defaultMain:"board",mainView:"board"},validateSearch:we({task:$().optional(),...n_}),beforeLoad:({params:e,search:t})=>{const o=k3(e.taskKey,t);if(o)throw Jo({to:"/$org/tasks/{-$taskKey}",params:{org:e.org,taskKey:o.taskKey},search:o.search,hash:!0,replace:!0})},component:Ie(()=>Le(()=>import("./tasks-q5I9pn3S.js"),__vite__mapDeps([335,120,121,122,123,70,69,66,67,68,8,79,3,2,80,81,35,82,41,42,43,15,44,45,46,47,39,48,32,49,40,50,51,52,53,54,55,56,57,58,59,60,61,18,62,63,20,64,65,84,31,124,38,19,71,72,73,74,75,76,28,77,78,83,85,86,87,22,88,10,89,90,91,125,126,264,128,129,265,199,155,140,141,98,142,143,144,119,24,25,117,116,118,158,266,21,145,33,34,160,267,26,268,229,175,230,162,163,29,30,234,228,261,269,196,192,181,270,197,271,190,272,169,103,273,174,180,182,183,184,185,159,186,146,173,239,151,147,216,285,164,165,286])))}),kce=De({pendingComponent:Ft,errorComponent:It,getParentRoute:()=>Ya,path:"/taskboard-analytics",staticData:{defaultMain:"board",mainView:"board"},component:Ie(()=>Le(()=>import("./taskboard-analytics-Cc7xLiYJ.js"),__vite__mapDeps([320,120,121,122,123,70,69,66,67,68,8,79,3,2,80,81,35,82,41,42,43,15,44,45,46,47,39,48,32,49,40,50,51,52,53,54,55,56,57,58,59,60,61,18,62,63,20,64,65,84,31,124,38,19,71,72,73,74,75,76,28,77,78,83,85,86,87,22,88,10,89,90,91,125,126,274,172,21,265,275,155,193,30,196,276,250,251,252,253,14,198,24,25,230,128,256,257,258,259,260,255,277,234,228,199])))}),_ce=De({pendingComponent:Ft,errorComponent:It,getParentRoute:()=>Ya,path:"/thread-analytics",staticData:{defaultMain:"board",mainView:"board"},component:Ie(()=>Le(()=>import("./thread-analytics-BeecXXf9.js"),__vite__mapDeps([336,120,121,122,123,70,69,66,67,68,8,79,3,2,80,81,35,82,41,42,43,15,44,45,46,47,39,48,32,49,40,50,51,52,53,54,55,56,57,58,59,60,61,18,62,63,20,64,65,84,31,124,38,19,71,72,73,74,75,76,28,77,78,83,85,86,87,22,88,10,89,90,91,125,126,276,250,251,252,253,14,198,24,25,21,230,128,256,257,258,259,260,255,277,231,199,155,29,30,148,273,174,180,181,144,140,141,98,142,143,119,117,116,118,182,183,184,185,169,159,186,146,173,239])))}),Cce=De({pendingComponent:Ft,errorComponent:It,getParentRoute:()=>Ya,path:"/reports",staticData:{pageTitle:"sidebar.navDestinations.reports",defaultMain:"reports",mainView:"reports"},validateSearch:we({connect:Cv().optional(),siteUrl:$().optional()}),component:Ie(()=>Le(()=>import("./reports-DWVNCveo.js"),__vite__mapDeps([337,120,121,122,123,70,69,66,67,68,8,79,3,2,80,81,35,82,41,42,43,15,44,45,46,47,39,48,32,49,40,50,51,52,53,54,55,56,57,58,59,60,61,18,62,63,20,64,65,84,31,124,38,19,71,72,73,74,75,76,28,77,78,83,85,86,87,22,88,10,89,90,91,125,126,288,95,236,101,102,103,283,112,113,262,232])))}),Pce=De({pendingComponent:Ft,errorComponent:It,getParentRoute:()=>Ya,path:"/library",staticData:{pageTitle:"sidebar.navDestinations.library",defaultMain:"files",mainView:"files"},validateSearch:we(rv),component:Ie(()=>Le(()=>import("./library-Do1cxIgP.js"),__vite__mapDeps([338,119,121,120,122,123,70,69,66,67,68,8,79,3,2,80,81,35,82,41,42,43,15,44,45,46,47,39,48,32,49,40,50,51,52,53,54,55,56,57,58,59,60,61,18,62,63,20,64,65,84,31,124,38,19,71,72,73,74,75,76,28,77,78,83,85,86,87,22,88,10,89,90,91,125,126,311,312,313,314,307,34,16,116,117,118,160,278,145,17,268,97,279,143,144,245,155,243,244,246,178,195,146,280,212,198,24,25,14,162,163,332])))}),Ece=De({pendingComponent:Ft,errorComponent:It,getParentRoute:()=>Ya,path:"/plan",staticData:{pageTitle:"sidebar.navDestinations.plan",defaultMain:"plan",mainView:"plan"},component:Ie(()=>Le(()=>import("./plan-05_HVNuz.js"),__vite__mapDeps([339,120,121,122,123,70,69,66,67,68,8,79,3,2,80,81,35,82,41,42,43,15,44,45,46,47,39,48,32,49,40,50,51,52,53,54,55,56,57,58,59,60,61,18,62,63,20,64,65,84,31,124,38,19,71,72,73,74,75,76,28,77,78,83,85,86,87,22,88,10,89,90,91,125,126,340,21])))}),Ace=De({pendingComponent:Ft,errorComponent:It,getParentRoute:()=>Ya,path:"/monitoring",staticData:{pageTitle:"sidebar.navDestinations.monitor",defaultMain:"monitoring",mainView:"monitoring"},component:Ie(()=>Le(()=>import("./monitoring-BPhxBDd5.js"),__vite__mapDeps([341,120,121,122,123,70,69,66,67,68,8,79,3,2,80,81,35,82,41,42,43,15,44,45,46,47,39,48,32,49,40,50,51,52,53,54,55,56,57,58,59,60,61,18,62,63,20,64,65,84,31,124,38,19,71,72,73,74,75,76,28,77,78,83,85,86,87,22,88,10,89,90,91,125,126,340,21])))}),Rce=De({pendingComponent:Ft,errorComponent:It,getParentRoute:()=>mo,path:"/plan",staticData:{pageTitle:"sidebar.navDestinations.plan",defaultMain:"plan",mainView:"plan"},component:Ie(()=>Le(()=>import("./plan-05_HVNuz.js"),__vite__mapDeps([339,120,121,122,123,70,69,66,67,68,8,79,3,2,80,81,35,82,41,42,43,15,44,45,46,47,39,48,32,49,40,50,51,52,53,54,55,56,57,58,59,60,61,18,62,63,20,64,65,84,31,124,38,19,71,72,73,74,75,76,28,77,78,83,85,86,87,22,88,10,89,90,91,125,126,340,21])))}),Dce=De({pendingComponent:Ft,errorComponent:It,getParentRoute:()=>mo,path:"/monitoring",staticData:{pageTitle:"sidebar.navDestinations.monitor",defaultMain:"monitoring",mainView:"monitoring"},component:Ie(()=>Le(()=>import("./monitoring-BPhxBDd5.js"),__vite__mapDeps([341,120,121,122,123,70,69,66,67,68,8,79,3,2,80,81,35,82,41,42,43,15,44,45,46,47,39,48,32,49,40,50,51,52,53,54,55,56,57,58,59,60,61,18,62,63,20,64,65,84,31,124,38,19,71,72,73,74,75,76,28,77,78,83,85,86,87,22,88,10,89,90,91,125,126,340,21])))}),Oce=De({pendingComponent:Ft,errorComponent:It,getParentRoute:()=>Ya,path:"/discover",staticData:{pageTitle:"sidebar.navDestinations.discover",defaultMain:"discover",mainView:"discover"},component:Ie(()=>Le(()=>import("./discover-8XW9Qw09.js"),__vite__mapDeps([342,120,121,122,123,70,69,66,67,68,8,79,3,2,80,81,35,82,41,42,43,15,44,45,46,47,39,48,32,49,40,50,51,52,53,54,55,56,57,58,59,60,61,18,62,63,20,64,65,84,31,124,38,19,71,72,73,74,75,76,28,77,78,83,85,86,87,22,88,10,89,90,91,125,126,169,162,163,134,133,36,206,111])))}),Mce=De({getParentRoute:()=>Qv,path:"/members",beforeLoad:({params:e})=>{throw Jo({to:"/$org/settings/members",params:{org:e.org}})}}),Nce=we({main:io([$(),Ze(0)]).optional(),virtualmcpid:$().optional(),...C3,sidepanel:EL,mainpanel:AL,thread:$().optional()}),Ice=De({getParentRoute:()=>Jv,path:"/",validateSearch:Nce,pendingComponent:Nd,component:Ie(()=>Le(()=>import("./index-2uTSdbBq.js"),__vite__mapDeps([343,242,70])))}),Lce=De({getParentRoute:()=>Jv,path:"/t/$taskKey",beforeLoad:({params:e})=>{throw Jo({to:"/$org/tasks/{-$taskKey}",params:{org:e.org,taskKey:e.taskKey},search:t=>t,hash:!0,replace:!0})}}),so=De({staticData:{pageTitle:"sidebar.navDestinations.settings"},getParentRoute:()=>Qv,path:"/settings",pendingComponent:Nd,component:Ie(()=>Le(()=>import("./route-BTQLh0S6.js"),__vite__mapDeps([344,121,120,122,123,70,69,66,67,68,8,79,3,2,80,81,35,82,41,42,43,15,44,45,46,47,39,48,32,49,40,50,51,52,53,54,55,56,57,58,59,60,61,18,62,63,20,64,65,84,31,124,38,19,71,72,73,74,75,76,28,77,78,83,85,86,87,22,88,10,89,90,91,125,126])))}),Bce=De({getParentRoute:()=>so,path:"/",component:Ie(()=>Le(()=>import("./index-redirect-CDsFqeNY.js"),__vite__mapDeps([345,314])))}),Fce=De({staticData:{pageTitle:"settings.nav.connections"},getParentRoute:()=>so,path:"/connections",component:Ie(()=>Le(()=>import("./connections-7gS929_D.js"),__vite__mapDeps([346,109,102,110,111,347,15,55,84,31,198,21,17,18,268,145,172,167,85,86,168,82,74,45,41,42,43,44,46,47,39,48,32,49,40,50,51,52,53,54,56,57,58,59,60,61,62,63,20,64,65,16,348,97,173,121,156,98,28,29,30,34,169,68,8,67,184,66,170,171,106,107,7,153]))),validateSearch:Hr(()=>we({action:co(["create"]).optional(),tab:co(["all","connected"]).optional()}))}),jce=De({staticData:{pageTitle:"settings.nav.connections"},getParentRoute:()=>so,path:"/connections/$appSlug",component:Ie(()=>Le(()=>import("./connection-detail-Cq27HXRr.js"),__vite__mapDeps([349,109,102,110,111,16,171,61,62,350,68,8,241,41,42,43,15,44,45,46,47,39,48,32,49,40,50,51,52,53,54,55,56,57,58,59,60,18,63,20,64,65,169,29,30,31,251,323,73,155,84,67,121,351,78,79,3,2,80,81,35,82,170,306,21,184,7,162,163,19,107,74,125,98,28,159,348,97,352,250,252,253,255,277,257,256,258,259,260,148,168,183,87]))),validateSearch:Hr(()=>we({tab:$().optional()}))}),zce=De({staticData:{pageTitle:"page.item"},getParentRoute:()=>so,path:"/connections/$appSlug/$collectionName/$itemId",component:Ie(()=>Le(()=>import("./collection-detail-DlDT6vQ9.js"),__vite__mapDeps([353,16,68,8,98,28,34,350,241,41,42,43,15,44,45,46,47,39,48,32,49,40,50,51,52,53,54,55,56,57,58,59,60,61,18,62,63,20,64,65,169,109,102,110,111,29,30,31,251,323,73,155,84,67,121,351,78,79,3,2,80,81,35,82,170,183,184,192,168,306,21,7,182,74,116,69,70,66,89,117,118,119,88,38,19,71,72,75,76,77,83,85,86,87,22,10,90,91,194,195,212]))),validateSearch:Hr(()=>we({replayId:$().optional()}))}),Uce=De({staticData:{pageTitle:"orgs.monitoring.title"},getParentRoute:()=>so,path:"/monitor",component:Ie(()=>Le(()=>import("./index-CJni2i7d.js"),__vite__mapDeps([354,17,18,16,312,313,314,180,41,42,43,15,44,45,46,47,39,48,32,49,40,50,51,52,53,54,55,56,57,58,59,60,61,62,63,20,64,65,24,25,181,144,140,141,98,28,142,143,119,121,69,70,66,67,68,8,84,31,117,79,3,2,80,81,35,82,116,89,118,88,71,182,183,184,185,38,19,72,73,74,75,76,77,78,83,85,86,87,22,10,90,91,125,169,159,186,146,168,21,155,194,195,162,163,300,153,29,30,275,193,196,34,172,33,192,352,250,251,252,253,255,277,257,256,258,259,260,273,174,173,239,14,301,267,212,228,325,254,285,164,165]))),validateSearch:Hr(()=>we({tab:co(["overview","audit","dashboards","threads","automations","stores"]).default("threads"),store:$().optional(),at:$().optional(),from:$().default("now-24h"),to:$().default("now"),connectionId:je($()).optional().default([]),virtualMcpId:je($()).optional().default([]),tool:$().default(""),status:co(["all","success","errors"]).default("all"),search:$().default(""),page:Mt().optional(),streaming:Vt().default(!0),propertyFilters:$().default(""),hideSystem:Vt().default(!1)}))}),qce=De({staticData:{pageTitle:"settings.nav.general"},getParentRoute:()=>so,path:"/general",component:Ie(()=>Le(()=>import("./general-BBEU5SQb.js"),__vite__mapDeps([355,163,298,19,20,356,33,40,88,35,81,169,68,8,357,21,29,30,31,32,97,314])))}),$ce=De({staticData:{pageTitle:"settings.nav.connect"},getParentRoute:()=>so,path:"/connect",pendingComponent:Li("connect"),component:Ie(()=>Le(()=>import("./connect-Ye3vTIux.js"),__vite__mapDeps([358,192,21,29,30,31,32,148,144,50,56,57,249,359,42,61,62,97,28,68,8,312,313,314])))}),Vce=De({staticData:{pageTitle:"settings.nav.billing"},getParentRoute:()=>so,path:"/ai-providers",pendingComponent:Li("billing"),component:Ie(()=>Le(()=>import("./ai-providers-BNG3Pq5o.js"),__vite__mapDeps([360,42,118,48,88,35,81,296,156,121,116,69,70,66,67,68,8,89,79,3,2,80,82,117,119,152,153,29,30,31,32,44,49,56,43,18,154,58,19,20,53,298,150,97,151,165,61,62,305,25,33,312,313,314])))}),Hce=De({staticData:{pageTitle:"settings.nav.billing"},getParentRoute:()=>so,path:"/billing",beforeLoad:({params:e})=>{throw Jo({to:"/$org/settings/ai-providers",params:{org:e.org}})}}),Gce=De({staticData:{pageTitle:"settings.nav.billing"},getParentRoute:()=>so,path:"/infra-billing",pendingComponent:Li("billing"),component:Ie(()=>Le(()=>import("./infra-billing-C2Fx7aIm.js"),__vite__mapDeps([361,51,21,300,153,32,72,73,18,155,29,30,31,14,255,253,251,259,277,312,313,314])))}),Wce=De({staticData:{pageTitle:"settings.nav.secrets"},getParentRoute:()=>so,path:"/secrets",component:Ie(()=>Le(()=>import("./secrets-RdCGJOsH.js"),__vite__mapDeps([362,42,61,20,64,28,29,30,31,32,34,309,312,313,314])))}),Kce=De({staticData:{pageTitle:"settings.nav.connect"},getParentRoute:()=>so,path:"/api-keys",pendingComponent:Li("connect"),component:Ie(()=>Le(()=>import("./api-keys-B0NOOdkt.js"),__vite__mapDeps([363,359,42,50,56,61,62,97,28,68,8,312,313,314])))}),Yce=De({staticData:{pageTitle:"settings.nav.storage"},getParentRoute:()=>so,path:"/buckets",pendingComponent:Li("storage"),component:Ie(()=>Le(()=>import("./buckets-VKui74jg.js"),__vite__mapDeps([364,42,61,62,97,28,29,30,31,32,33,34,134,312,313,314])))}),Zce=De({staticData:{pageTitle:"settings.nav.repositories"},getParentRoute:()=>so,path:"/repositories",validateSearch:we({git_error:$().optional().catch(void 0),git_flow:$().uuid().optional().catch(void 0),git_installation:Mt().int().positive().safe().optional().catch(void 0),git_return:Vt().optional().catch(void 0)}),pendingComponent:Li("repositories"),component:Ie(()=>Le(()=>import("./repositories-BOZH7UzC.js"),__vite__mapDeps([365,366,83,44,61,84,31,28,85,86,87,18,46,19,20,22,88,35,81,45,153,64,97,21,192,145,181,29,30,32,34,62,308,309,312,313,314])))}),Qce=De({staticData:{pageTitle:"settings.nav.storage"},getParentRoute:()=>so,path:"/synced-repos",pendingComponent:Li("storage"),component:Ie(()=>Le(()=>import("./synced-repos-CpEKcy1N.js"),__vite__mapDeps([367,61,97,83,44,84,31,28,85,86,87,18,46,19,20,22,88,35,81,279,24,25,312,313,314])))}),Jce=De({staticData:{pageTitle:"settings.nav.tasks"},getParentRoute:()=>so,path:"/task-board",component:Ie(()=>Le(()=>import("./tasks-74e9M9v_.js"),__vite__mapDeps([368,153,34,49,60,61,199,72,73,18,155,300,21,32,29,30,31,33,97,299,356,40,88,35,81,169,68,8,22,267,266,65,145,84,125,160,85,86,80,2,312,313,314])))}),Xce=De({getParentRoute:()=>so,path:"/tasks",beforeLoad:({params:e})=>{throw Jo({to:"/$org/settings/task-board",params:{org:e.org}})}}),ede=De({staticData:{pageTitle:"projects.settings.title"},getParentRoute:()=>so,path:"/projects",component:Ie(()=>Le(()=>import("./projects-utpjVaXN.js"),__vite__mapDeps([369,41,42,43,15,44,45,46,47,39,48,32,49,40,50,51,52,53,54,55,56,57,58,59,60,61,18,62,63,20,64,65,21,17,76,28,77,68,8,78,67,79,3,2,80,81,35,82,83,84,31,85,86,87,19,22,88,262,305,25,236,101,102,103,232,66,169])))}),tde=De({staticData:{pageTitle:"settings.nav.members"},getParentRoute:()=>so,path:"/members",pendingComponent:Li("members"),component:Ie(()=>Le(()=>import("./members-CvgFB3s-.js"),__vite__mapDeps([370,347,15,55,84,31,198,21,17,18,13,14,16,225,98,28,29,30,32,34,163,226,19,20,24,25,26,162,371,97,52,56,62,65,153,72,73,155,61,269,312,313,314])))}),ode=De({staticData:{pageTitle:"settings.nav.members"},getParentRoute:()=>so,path:"/roles",pendingComponent:Li("members"),component:Ie(()=>Le(()=>import("./roles-CAwPb5fO.js"),__vite__mapDeps([372,226,163,371,21,97,52,61,62,13,14,15,16,17,18,154,74,45,41,42,43,44,46,47,39,48,32,49,40,50,51,53,54,55,56,57,58,59,60,63,20,64,65,173,153,174,86,68,8,87,110,111,162,26,169,67,118,19,33,84,31,75,66,313,314]))),validateSearch:Hr(()=>we({role:$().optional()}))}),ade=De({staticData:{pageTitle:"settings.nav.security"},getParentRoute:()=>so,path:"/sso",component:Ie(()=>Le(()=>import("./sso-tXxuMVkw.js"),__vite__mapDeps([373,357,21,29,30,31,32,97,33,90,62,312,313,314])))}),nde=De({staticData:{pageTitle:"settings.nav.profile"},getParentRoute:()=>so,path:"/profile",component:Ie(()=>Le(()=>import("./profile-D5xJAT34.js"),__vite__mapDeps([374,19,20,322,323,30,62,63,33,29,31,32,150,58,59,60,298,161])))}),rde=De({staticData:{pageTitle:"settings.nav.agents"},getParentRoute:()=>so,path:"/agents",component:Ie(()=>Le(()=>import("./agents-list-DGfxOrSx.js"),__vite__mapDeps([375,67,68,8,52,43,62,41,42,15,44,45,46,47,39,48,32,49,40,50,51,53,54,55,56,57,58,59,60,61,18,63,20,64,65,305,25,78,79,3,2,80,81,35,82,88,16,351,169,106,107,7,109,102,110,111,83,84,31,28,85,86,87,19,22,103,104,97,17,77])))}),ide=De({staticData:{pageTitle:"settings.nav.automations"},getParentRoute:()=>so,path:"/automations",component:Ie(()=>Le(()=>import("./automations-DNcjd_bB.js"),__vite__mapDeps([376,61,47,17,18,16,267,68,8,78,67,79,3,2,80,81,35,82,294,21,97,41,42,43,15,44,45,46,39,48,32,49,40,50,51,52,53,54,55,56,57,58,59,60,62,63,20,64,65,312,313,314])))}),sde=De({staticData:{pageTitle:"settings.nav.skills"},getParentRoute:()=>so,path:"/skills",component:Ie(()=>Le(()=>import("./skills-BlaOj1S-.js"),__vite__mapDeps([377,52,47,62,63,17,18,268,145,84,31,97,16,172,21,280,143,144,50,119,121,69,70,66,67,68,8,246,160,85,86,178,53,195,146])))}),lde=De({staticData:{pageTitle:"settings.nav.memory"},getParentRoute:()=>so,path:"/memory",component:Ie(()=>Le(()=>import("./memory-BF1uVIim.js"),__vite__mapDeps([378,39,20,192,84,31,172,21,16,71,160,85,86]))),validateSearch:Hr(()=>we({scope:co(["user"]).optional()}))}),cde=so.addChildren([Bce,Fce,jce,zce,rde,ide,sde,lde,Uce,qce,$ce,Vce,Hce,Gce,Wce,Kce,Yce,Zce,Qce,Jce,Xce,ede,tde,ode,ade,nde]),dde=Xv.addChildren([Xle,ece,tce]),ude=mo.addChildren([Zle,Qle,Jle,dde,oce,ace,nce,rce,ice,sce,lce,cce,dce,uce,pce,mce,hce,gce,fce,vce,bce,yce,Sce,Rce,Dce]),pde=Ya.addChildren([Wle,Kle,Yle,ude,wce,Tce,xce,kce,_ce,Cce,Pce,Oce,Ece,Ace]),mde=Jv.addChildren([Ice,Lce,pde]),hde=Qv.addChildren([mde,Mce,cde]),gde=r_.addChildren([Ble,hde]),fde=Ka.addChildren([gde,Lle,Fle,jle,zle,Ule,i_.addChildren([qle,$le]),Vle,Cle,Ple,Ele,Ale,Rle,Dle]);function vde(){const e=Re.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=w.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=w.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.goBack"),e[8]=t,e[9]=l):l=e[9];let c;e[10]!==l?(c=w.jsx("button",{type:"button",onClick:bde,className:"text-sm text-primary hover:underline",children:l}),e[10]=l,e[11]=c):c=e[11];let d;return e[12]!==a||e[13]!==i||e[14]!==c?(d=w.jsx("div",{className:"flex h-full items-center justify-center",children:w.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]=d):d=e[15],d}function bde(){return window.history.back()}const eb=z8({routeTree:fde,defaultPendingComponent:Nd,defaultPendingMs:200,defaultPendingMinMs:500,defaultNotFoundComponent:vde});function Pe(...e){return PL(uk(e))}function yde(e){return/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(e)}function qo({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 zl(e){return typeof window<"u"?new URLSearchParams(window.location.search).get(e):null}function XT(e,t){for(const o in e)if(e[o]===t)return o}function jp(e,t){let o=$().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 Sde={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"},wde={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"},Tde={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."},xde={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."},kde={VERIFICATION_FAILED:"Captcha verification failed",MISSING_RESPONSE:"Missing CAPTCHA response",UNKNOWN_ERROR:"Something went wrong"},_de={MISSING_SECRET_KEY:"Missing secret key",SERVICE_UNAVAILABLE:"CAPTCHA service unavailable"},Cde={...kde,..._de},Pde={OTP_EXPIRED:"otp expired",INVALID_OTP:"Invalid OTP",INVALID_EMAIL:"Invalid email",USER_NOT_FOUND:"User not found",TOO_MANY_ATTEMPTS:"Too many attempts"},Ede={INVALID_OAUTH_CONFIGURATION:"Invalid OAuth configuration"},Ade={PASSWORD_COMPROMISED:"The password you entered has been compromised. Please choose a different password."},Rde={INVALID_SESSION_TOKEN:"Invalid session token"},Dde={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"},Ode={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"},Mde={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"},Nde={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"},Ide={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"},Lde={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"},Bde={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"},Fde={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",...xde,...Sde,...wde,...Tde,...Cde,...Pde,...Ede,...Ade,...Rde,...Dde,...Ode,...Mde,...Nde,...Ide,...Lde,...Bde},jde={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"},e2={SETTINGS:"settings",SECURITY:"security",TEAMS:"teams",API_KEYS:"api-keys",ORGANIZATIONS:"organizations"},t2={SETTINGS:"settings",MEMBERS:"members",TEAMS:"teams",API_KEYS:"api-keys"};const E3=A.createContext({});function A3(){return A.useContext(E3)}var z0,o2;function zde(){if(o2)return z0;o2=1;var e=function(){};return z0=e,z0}var Ude=zde();const qde=Ol(Ude);function $de({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 Vde=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 gp=null,zp=!1;const iv=new Set,sv=new Set,Hde=typeof window<"u",dd="___grecaptcha_cfg",R3=`onLoadCallback_${Math.random().toString(36).slice(2)}`;function Gde(){if(!Hde)return;function e(o){if(zp)o();else{window[dd]||(window[dd]={});const a=window[dd];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(){zp=!0;for(const o of sv)o();sv.clear()}window[R3]=t}function Wde({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 Kde({language:e,render:t,scriptProps:o,useEnterprise:a,useRecaptchaNet:n}){const i={id:"google-recaptcha-v3"},l=Wde({language:e,onLoadCallbackName:R3,render:t,useEnterprise:a,useRecaptchaNet:n});if(gp){if(gp!==l)throw new Error("reCAPTCHA has already been loaded with different parameters. Remove the existing script and load it again.");return}gp=l,$de(Object.assign(Object.assign(Object.assign({},i),o),{src:l}))}function Yde(e){if(!window[dd])return;const t=window[dd];t.clients&&delete t.clients[e]}function Zde(e,t){var{onLoadCallback:o,onLoadCallbackName:a}=t,n=Vde(t,["onLoadCallback","onLoadCallbackName"]);if(iv.size===0&&Gde(),Kde(n),iv.add(e),o&&(zp?o():sv.add(o)),a){let i=function(){if(!a)return;const l=window[a];typeof l=="function"&&l()};zp?i():sv.add(i)}}function Qde(e){var t,o,a;iv.delete(e),iv.size===0&&(window.grecaptcha=void 0,window[dd]=void 0,(t=document.querySelector(".grecaptcha-badge"))===null||t===void 0||t.remove(),(o=document.querySelector(`script[src="${gp}"]`))===null||o===void 0||o.remove(),(a=document.querySelector('script[src^="https://www.gstatic.com/recaptcha/releases"]'))===null||a===void 0||a.remove(),gp=null,zp=!1)}let a2=!1;function Jde({container:e,children:t,language:o,reCaptchaKey:a,scriptProps:n,useEnterprise:i,useRecaptchaNet:l}){var c,d,p,m,h,f,v;const b=A.useId(),[S,k]=A.useState(null),[T,x]=A.useState(null),E=A.useRef(!1);A.useEffect(()=>{function D(){var O;const L=i?(O=window.grecaptcha)===null||O===void 0?void 0:O.enterprise:window.grecaptcha;if(!L)throw new Error("reCAPTCHA not found");if(!L.ready)throw new Error("reCAPTCHA ready callback not found");L.ready(()=>{k(L)})}return Zde(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}),()=>{Qde(b),k(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,L;if(!e?.element||!S?.render)return;const q={"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},B=typeof e?.element=="string"?document.getElementById(e.element):e?.element;if(!B)throw new Error("reCAPTCHA container element not found");const U=S.render(B,q);return!((O=e?.parameters)===null||O===void 0)&&O.hidden&&(a2||(qde(!1,"reCAPTCHA badge hidden. See https://cloud.google.com/recaptcha/docs/faq#id_like_to_hide_the_badge_what_is_allowed for more information."),a2=!0),(L=B.querySelector(".grecaptcha-badge"))===null||L===void 0||L.style.setProperty("display","none")),x(U),E.current=!0,()=>{x(null),E.current=!1,Yde(U),B.innerHTML=""}},[e?.element,(c=e?.parameters)===null||c===void 0?void 0:c.badge,(d=e?.parameters)===null||d===void 0?void 0:d.hidden,(p=e?.parameters)===null||p===void 0?void 0:p.callback,(m=e?.parameters)===null||m===void 0?void 0:m.errorCallback,(h=e?.parameters)===null||h===void 0?void 0:h.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 C=!!e?.element,P=C?T:a,R=A.useMemo(()=>P!==null&&S?.execute?D=>{if(P===null||!S?.execute)throw new Error("reCAPTCHA has not been loaded");return C&&!E.current?(console.warn("Client ID not mounted"),null):S.execute(P,{action:D})}:void 0,[P,S,C]);return w.jsx(E3.Provider,{value:{container:e?.element,executeRecaptcha:R,reCaptchaInstance:S},children:t})}var Xde=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()}}},Gn=new Xde;function eue(){return()=>{}}function Bi(){return A.useSyncExternalStore(eue,()=>!0,()=>!1)}function D3(){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 s_(){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 tue({children:e}){const t=Bi(),{captcha:o}=A.useContext(St);return o?.provider!=="google-recaptcha-v3"?e:w.jsxs(Jde,{reCaptchaKey:o.siteKey,useEnterprise:o.enterprise,useRecaptchaNet:o.recaptchaNet,children:[t&&w.jsx("style",{children:`
|
|
169
169
|
.grecaptcha-badge {
|
|
170
170
|
visibility: hidden;
|
|
171
171
|
border-radius: var(--radius) !important;
|